diff --git a/assets/index-e0c2b131.js b/assets/index-0162c6a4.js similarity index 99% rename from assets/index-e0c2b131.js rename to assets/index-0162c6a4.js index 533e3f6e..a2df02b4 100644 --- a/assets/index-e0c2b131.js +++ b/assets/index-0162c6a4.js @@ -1340,7 +1340,7 @@ PERFORMANCE OF THIS SOFTWARE. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(b){return b instanceof this?b:new this(b)}static concat(b,...dt){const ct=new this(b);return dt.forEach(lt=>ct.set(lt)),ct}static accessor(b){const ct=(this[$internals$1]=this[$internals$1]={accessors:{}}).accessors,lt=this.prototype;function ht(mt){const vt=normalizeHeader$1(mt);ct[vt]||(buildAccessors$1(lt,mt),ct[vt]=!0)}return utils$F.isArray(b)?b.forEach(ht):ht(b),this}};AxiosHeaders$2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$F.reduceDescriptors(AxiosHeaders$2.prototype,({value:d},b)=>{let dt=b[0].toUpperCase()+b.slice(1);return{get:()=>d,set(ct){this[dt]=ct}}});utils$F.freezeMethods(AxiosHeaders$2);const AxiosHeaders$3=AxiosHeaders$2;function transformData$3(d,b){const dt=this||defaults$7,ct=b||dt,lt=AxiosHeaders$3.from(ct.headers);let ht=ct.data;return utils$F.forEach(d,function(vt){ht=vt.call(dt,ht,lt.normalize(),b?b.status:void 0)}),lt.normalize(),ht}function isCancel$3(d){return!!(d&&d.__CANCEL__)}function CanceledError$1(d,b,dt){AxiosError$1.call(this,d??"canceled",AxiosError$1.ERR_CANCELED,b,dt),this.name="CanceledError"}utils$F.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle$2(d,b,dt){const ct=dt.config.validateStatus;!dt.status||!ct||ct(dt.status)?d(dt):b(new AxiosError$1("Request failed with status code "+dt.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(dt.status/100)-4],dt.config,dt.request,dt))}const cookies$2=platform$2.isStandardBrowserEnv?function(){return{write:function(dt,ct,lt,ht,mt,vt){const kt=[];kt.push(dt+"="+encodeURIComponent(ct)),utils$F.isNumber(lt)&&kt.push("expires="+new Date(lt).toGMTString()),utils$F.isString(ht)&&kt.push("path="+ht),utils$F.isString(mt)&&kt.push("domain="+mt),vt===!0&&kt.push("secure"),document.cookie=kt.join("; ")},read:function(dt){const ct=document.cookie.match(new RegExp("(^|;\\s*)("+dt+")=([^;]*)"));return ct?decodeURIComponent(ct[3]):null},remove:function(dt){this.write(dt,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL$2(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function combineURLs$2(d,b){return b?d.replace(/\/+$/,"")+"/"+b.replace(/^\/+/,""):d}function buildFullPath$2(d,b){return d&&!isAbsoluteURL$2(b)?combineURLs$2(d,b):b}const isURLSameOrigin$2=platform$2.isStandardBrowserEnv?function(){const b=/(msie|trident)/i.test(navigator.userAgent),dt=document.createElement("a");let ct;function lt(ht){let mt=ht;return b&&(dt.setAttribute("href",mt),mt=dt.href),dt.setAttribute("href",mt),{href:dt.href,protocol:dt.protocol?dt.protocol.replace(/:$/,""):"",host:dt.host,search:dt.search?dt.search.replace(/^\?/,""):"",hash:dt.hash?dt.hash.replace(/^#/,""):"",hostname:dt.hostname,port:dt.port,pathname:dt.pathname.charAt(0)==="/"?dt.pathname:"/"+dt.pathname}}return ct=lt(window.location.href),function(mt){const vt=utils$F.isString(mt)?lt(mt):mt;return vt.protocol===ct.protocol&&vt.host===ct.host}}():function(){return function(){return!0}}();function parseProtocol$1(d){const b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return b&&b[1]||""}function speedometer$1(d,b){d=d||10;const dt=new Array(d),ct=new Array(d);let lt=0,ht=0,mt;return b=b!==void 0?b:1e3,function(kt){const Pt=Date.now(),Jt=ct[ht];mt||(mt=Pt),dt[lt]=kt,ct[lt]=Pt;let Zt=ht,Rt=0;for(;Zt!==lt;)Rt+=dt[Zt++],Zt=Zt%d;if(lt=(lt+1)%d,lt===ht&&(ht=(ht+1)%d),Pt-mt{const ht=lt.loaded,mt=lt.lengthComputable?lt.total:void 0,vt=ht-dt,kt=ct(vt),Pt=ht<=mt;dt=ht;const Jt={loaded:ht,total:mt,progress:mt?ht/mt:void 0,bytes:vt,rate:kt||void 0,estimated:kt&&mt&&Pt?(mt-ht)/kt:void 0,event:lt};Jt[b?"download":"upload"]=!0,d(Jt)}}const isXHRAdapterSupported$1=typeof XMLHttpRequest<"u",xhrAdapter$1=isXHRAdapterSupported$1&&function(d){return new Promise(function(dt,ct){let lt=d.data;const ht=AxiosHeaders$3.from(d.headers).normalize(),mt=d.responseType;let vt;function kt(){d.cancelToken&&d.cancelToken.unsubscribe(vt),d.signal&&d.signal.removeEventListener("abort",vt)}utils$F.isFormData(lt)&&(platform$2.isStandardBrowserEnv||platform$2.isStandardBrowserWebWorkerEnv?ht.setContentType(!1):ht.setContentType("multipart/form-data;",!1));let Pt=new XMLHttpRequest;if(d.auth){const nn=d.auth.username||"",Qt=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";ht.set("Authorization","Basic "+btoa(nn+":"+Qt))}const Jt=buildFullPath$2(d.baseURL,d.url);Pt.open(d.method.toUpperCase(),buildURL$3(Jt,d.params,d.paramsSerializer),!0),Pt.timeout=d.timeout;function Zt(){if(!Pt)return;const nn=AxiosHeaders$3.from("getAllResponseHeaders"in Pt&&Pt.getAllResponseHeaders()),wt={data:!mt||mt==="text"||mt==="json"?Pt.responseText:Pt.response,status:Pt.status,statusText:Pt.statusText,headers:nn,config:d,request:Pt};settle$2(function(xt){dt(xt),kt()},function(xt){ct(xt),kt()},wt),Pt=null}if("onloadend"in Pt?Pt.onloadend=Zt:Pt.onreadystatechange=function(){!Pt||Pt.readyState!==4||Pt.status===0&&!(Pt.responseURL&&Pt.responseURL.indexOf("file:")===0)||setTimeout(Zt)},Pt.onabort=function(){Pt&&(ct(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,d,Pt)),Pt=null)},Pt.onerror=function(){ct(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,d,Pt)),Pt=null},Pt.ontimeout=function(){let Qt=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded";const wt=d.transitional||transitionalDefaults$1;d.timeoutErrorMessage&&(Qt=d.timeoutErrorMessage),ct(new AxiosError$1(Qt,wt.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,d,Pt)),Pt=null},platform$2.isStandardBrowserEnv){const nn=(d.withCredentials||isURLSameOrigin$2(Jt))&&d.xsrfCookieName&&cookies$2.read(d.xsrfCookieName);nn&&ht.set(d.xsrfHeaderName,nn)}lt===void 0&&ht.setContentType(null),"setRequestHeader"in Pt&&utils$F.forEach(ht.toJSON(),function(Qt,wt){Pt.setRequestHeader(wt,Qt)}),utils$F.isUndefined(d.withCredentials)||(Pt.withCredentials=!!d.withCredentials),mt&&mt!=="json"&&(Pt.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&Pt.addEventListener("progress",progressEventReducer$1(d.onDownloadProgress,!0)),typeof d.onUploadProgress=="function"&&Pt.upload&&Pt.upload.addEventListener("progress",progressEventReducer$1(d.onUploadProgress)),(d.cancelToken||d.signal)&&(vt=nn=>{Pt&&(ct(!nn||nn.type?new CanceledError$1(null,d,Pt):nn),Pt.abort(),Pt=null)},d.cancelToken&&d.cancelToken.subscribe(vt),d.signal&&(d.signal.aborted?vt():d.signal.addEventListener("abort",vt)));const Rt=parseProtocol$1(Jt);if(Rt&&platform$2.protocols.indexOf(Rt)===-1){ct(new AxiosError$1("Unsupported protocol "+Rt+":",AxiosError$1.ERR_BAD_REQUEST,d));return}Pt.send(lt||null)})},knownAdapters$1={http:httpAdapter$1,xhr:xhrAdapter$1};utils$F.forEach(knownAdapters$1,(d,b)=>{if(d){try{Object.defineProperty(d,"name",{value:b})}catch{}Object.defineProperty(d,"adapterName",{value:b})}});const adapters$1={getAdapter:d=>{d=utils$F.isArray(d)?d:[d];const{length:b}=d;let dt,ct;for(let lt=0;ltd instanceof AxiosHeaders$3?d.toJSON():d;function mergeConfig$4(d,b){b=b||{};const dt={};function ct(Pt,Jt,Zt){return utils$F.isPlainObject(Pt)&&utils$F.isPlainObject(Jt)?utils$F.merge.call({caseless:Zt},Pt,Jt):utils$F.isPlainObject(Jt)?utils$F.merge({},Jt):utils$F.isArray(Jt)?Jt.slice():Jt}function lt(Pt,Jt,Zt){if(utils$F.isUndefined(Jt)){if(!utils$F.isUndefined(Pt))return ct(void 0,Pt,Zt)}else return ct(Pt,Jt,Zt)}function ht(Pt,Jt){if(!utils$F.isUndefined(Jt))return ct(void 0,Jt)}function mt(Pt,Jt){if(utils$F.isUndefined(Jt)){if(!utils$F.isUndefined(Pt))return ct(void 0,Pt)}else return ct(void 0,Jt)}function vt(Pt,Jt,Zt){if(Zt in b)return ct(Pt,Jt);if(Zt in d)return ct(void 0,Pt)}const kt={url:ht,method:ht,data:ht,baseURL:mt,transformRequest:mt,transformResponse:mt,paramsSerializer:mt,timeout:mt,timeoutMessage:mt,withCredentials:mt,adapter:mt,responseType:mt,xsrfCookieName:mt,xsrfHeaderName:mt,onUploadProgress:mt,onDownloadProgress:mt,decompress:mt,maxContentLength:mt,maxBodyLength:mt,beforeRedirect:mt,transport:mt,httpAgent:mt,httpsAgent:mt,cancelToken:mt,socketPath:mt,responseEncoding:mt,validateStatus:vt,headers:(Pt,Jt)=>lt(headersToObject$1(Pt),headersToObject$1(Jt),!0)};return utils$F.forEach(Object.keys(Object.assign({},d,b)),function(Jt){const Zt=kt[Jt]||lt,Rt=Zt(d[Jt],b[Jt],Jt);utils$F.isUndefined(Rt)&&Zt!==vt||(dt[Jt]=Rt)}),dt}const VERSION$1="1.5.0",validators$5={};["object","boolean","number","function","string","symbol"].forEach((d,b)=>{validators$5[d]=function(ct){return typeof ct===d||"a"+(b<1?"n ":" ")+d}});const deprecatedWarnings$2={};validators$5.transitional=function(b,dt,ct){function lt(ht,mt){return"[Axios v"+VERSION$1+"] Transitional option '"+ht+"'"+mt+(ct?". "+ct:"")}return(ht,mt,vt)=>{if(b===!1)throw new AxiosError$1(lt(mt," has been removed"+(dt?" in "+dt:"")),AxiosError$1.ERR_DEPRECATED);return dt&&!deprecatedWarnings$2[mt]&&(deprecatedWarnings$2[mt]=!0,console.warn(lt(mt," has been deprecated since v"+dt+" and will be removed in the near future"))),b?b(ht,mt,vt):!0}};function assertOptions$2(d,b,dt){if(typeof d!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const ct=Object.keys(d);let lt=ct.length;for(;lt-- >0;){const ht=ct[lt],mt=b[ht];if(mt){const vt=d[ht],kt=vt===void 0||mt(vt,ht,d);if(kt!==!0)throw new AxiosError$1("option "+ht+" must be "+kt,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(dt!==!0)throw new AxiosError$1("Unknown option "+ht,AxiosError$1.ERR_BAD_OPTION)}}const validator$5={assertOptions:assertOptions$2,validators:validators$5},validators$4=validator$5.validators;let Axios$4=class{constructor(b){this.defaults=b,this.interceptors={request:new InterceptorManager$5,response:new InterceptorManager$5}}request(b,dt){typeof b=="string"?(dt=dt||{},dt.url=b):dt=b||{},dt=mergeConfig$4(this.defaults,dt);const{transitional:ct,paramsSerializer:lt,headers:ht}=dt;ct!==void 0&&validator$5.assertOptions(ct,{silentJSONParsing:validators$4.transitional(validators$4.boolean),forcedJSONParsing:validators$4.transitional(validators$4.boolean),clarifyTimeoutError:validators$4.transitional(validators$4.boolean)},!1),lt!=null&&(utils$F.isFunction(lt)?dt.paramsSerializer={serialize:lt}:validator$5.assertOptions(lt,{encode:validators$4.function,serialize:validators$4.function},!0)),dt.method=(dt.method||this.defaults.method||"get").toLowerCase();let mt=ht&&utils$F.merge(ht.common,ht[dt.method]);ht&&utils$F.forEach(["delete","get","head","post","put","patch","common"],Qt=>{delete ht[Qt]}),dt.headers=AxiosHeaders$3.concat(mt,ht);const vt=[];let kt=!0;this.interceptors.request.forEach(function(wt){typeof wt.runWhen=="function"&&wt.runWhen(dt)===!1||(kt=kt&&wt.synchronous,vt.unshift(wt.fulfilled,wt.rejected))});const Pt=[];this.interceptors.response.forEach(function(wt){Pt.push(wt.fulfilled,wt.rejected)});let Jt,Zt=0,Rt;if(!kt){const Qt=[dispatchRequest$3.bind(this),void 0];for(Qt.unshift.apply(Qt,vt),Qt.push.apply(Qt,Pt),Rt=Qt.length,Jt=Promise.resolve(dt);Zt{if(!ct._listeners)return;let ht=ct._listeners.length;for(;ht-- >0;)ct._listeners[ht](lt);ct._listeners=null}),this.promise.then=lt=>{let ht;const mt=new Promise(vt=>{ct.subscribe(vt),ht=vt}).then(lt);return mt.cancel=function(){ct.unsubscribe(ht)},mt},b(function(ht,mt,vt){ct.reason||(ct.reason=new CanceledError$1(ht,mt,vt),dt(ct.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(b){if(this.reason){b(this.reason);return}this._listeners?this._listeners.push(b):this._listeners=[b]}unsubscribe(b){if(!this._listeners)return;const dt=this._listeners.indexOf(b);dt!==-1&&this._listeners.splice(dt,1)}static source(){let b;return{token:new h2(function(lt){b=lt}),cancel:b}}};const CancelToken$3=CancelToken$2;function spread$2(d){return function(dt){return d.apply(null,dt)}}function isAxiosError$2(d){return utils$F.isObject(d)&&d.isAxiosError===!0}const HttpStatusCode$2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$2).forEach(([d,b])=>{HttpStatusCode$2[b]=d});const HttpStatusCode$3=HttpStatusCode$2;function createInstance$2(d){const b=new Axios$5(d),dt=bind$6(Axios$5.prototype.request,b);return utils$F.extend(dt,Axios$5.prototype,b,{allOwnKeys:!0}),utils$F.extend(dt,b,null,{allOwnKeys:!0}),dt.create=function(lt){return createInstance$2(mergeConfig$4(d,lt))},dt}const axios$4=createInstance$2(defaults$7);axios$4.Axios=Axios$5;axios$4.CanceledError=CanceledError$1;axios$4.CancelToken=CancelToken$3;axios$4.isCancel=isCancel$3;axios$4.VERSION=VERSION$1;axios$4.toFormData=toFormData$1;axios$4.AxiosError=AxiosError$1;axios$4.Cancel=axios$4.CanceledError;axios$4.all=function(b){return Promise.all(b)};axios$4.spread=spread$2;axios$4.isAxiosError=isAxiosError$2;axios$4.mergeConfig=mergeConfig$4;axios$4.AxiosHeaders=AxiosHeaders$3;axios$4.formToJSON=d=>formDataToJSON$1(utils$F.isHTMLForm(d)?new FormData(d):d);axios$4.getAdapter=adapters$1.getAdapter;axios$4.HttpStatusCode=HttpStatusCode$3;axios$4.default=axios$4;const axios$5=axios$4;async function getPassport(d){return(await axios$5.get(`https://lcd.bostrom.cybernode.ai/cosmwasm/wasm/v1/contract/bostrom1xut80d09q0tgtch8p0z4k5f88d3uvt8cvtzm5h3tu3tsy4jk9xlsfzhxel/smart/${build$j.toBase64(build$j.toAscii(JSON.stringify(d)))}`)).data.data}function useCyberPassport({nickname:d,publicKey:b}){const[dt,ct]=reactExports.useState();console.log(d),reactExports.useEffect(()=>{ct(null)},[d]);function lt(ht){getPassport({passport_by_nickname:{nickname:ht||d}}).then(vt=>{ct(vt)}).catch(vt=>{console.log(vt),ct(null)})}return{fetchData:lt,data:dt}}const stars="_stars_myrvj_1",twinkl="_twinkl_myrvj_2",styles$e={stars,twinkl,"move-twink-back":"_move-twink-back_myrvj_1"};function Stars(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:styles$e.stars}),jsxRuntimeExports.jsx("div",{className:styles$e.twinkl})]})}const wrapper$7="_wrapper_ez7m7_1",vertical$1="_vertical_ez7m7_6",green$2="_green_ez7m7_6",blue$1="_blue_ez7m7_40",purple$1="_purple_ez7m7_74",white$1="_white_ez7m7_108",red$2="_red_ez7m7_142",yellow$2="_yellow_ez7m7_176",orange$1="_orange_ez7m7_210",left$1="_left_ez7m7_482",right$1="_right_ez7m7_489",noPaddingX$1="_noPaddingX_ez7m7_496",header$1="_header_ez7m7_501",withPaddingX$1="_withPaddingX_ez7m7_505",inner$1="_inner_ez7m7_509",styles$d={wrapper:wrapper$7,vertical:vertical$1,green:green$2,blue:blue$1,purple:purple$1,white:white$1,red:red$2,yellow:yellow$2,orange:orange$1,left:left$1,right:right$1,noPaddingX:noPaddingX$1,header:header$1,withPaddingX:withPaddingX$1,inner:inner$1};var Colors=(d=>(d.GREEN="green",d.BLUE="blue",d.PURPLE="purple",d.WHITE="white",d.RED="red",d.YELLOW="yellow",d.ORANGE="orange",d))(Colors||{});function Display({children:d,isVertical:b,title:dt,noPaddingX:ct,sideSaber:lt,color:ht=Colors.GREEN,status:mt}){const vt=ht||mt;return jsxRuntimeExports.jsxs("div",{className:cx(styles$d.wrapper,styles$d[vt],{[styles$d.vertical]:b,[styles$d.noPaddingX]:ct,[lt?styles$d[lt]:void 0]:lt}),children:[dt&&jsxRuntimeExports.jsx("header",{className:cx(styles$d.header,{[styles$d.withPaddingX]:ct}),children:React.cloneElement(dt,{inDisplay:!0})}),jsxRuntimeExports.jsx("div",{className:styles$d.inner,children:d})]})}const containerContent="_containerContent_1wd9n_1",noMaxWidth="_noMaxWidth_1wd9n_22",styles$c={containerContent,noMaxWidth};function MainContainer({children:d,minHeight:b="calc(100vh - 162px)",width:dt="62%",resetMaxWidth:ct}){return jsxRuntimeExports.jsx("main",{style:{minHeight:b,overflow:"hidden"},className:cx("block-body",{[styles$c.noMaxWidth]:ct}),children:jsxRuntimeExports.jsx("div",{style:{width:dt},className:styles$c.containerContent,children:d})})}function _extends(){return _extends=Object.assign?Object.assign.bind():function(d){for(var b=1;b=0)continue;dt[ct]=d[ct]}return dt}var index$2=reactExports.useLayoutEffect,useLatest=function(b){var dt=reactExports.useRef(b);return index$2(function(){dt.current=b}),dt},updateRef=function(b,dt){if(typeof b=="function"){b(dt);return}b.current=dt},useComposedRef=function(b,dt){var ct=reactExports.useRef();return reactExports.useCallback(function(lt){b.current=lt,ct.current&&updateRef(ct.current,null),ct.current=dt,dt&&updateRef(dt,lt)},[dt])},HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function(b){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(dt){b.style.setProperty(dt,HIDDEN_TEXTAREA_STYLE[dt],"important")})},forceHiddenStyles$1=forceHiddenStyles,hiddenTextarea=null,getHeight=function(b,dt){var ct=b.scrollHeight;return dt.sizingStyle.boxSizing==="border-box"?ct+dt.borderSize:ct-dt.paddingSize};function calculateNodeHeight(d,b,dt,ct){dt===void 0&&(dt=1),ct===void 0&&(ct=1/0),hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles$1(hiddenTextarea)),hiddenTextarea.parentNode===null&&document.body.appendChild(hiddenTextarea);var lt=d.paddingSize,ht=d.borderSize,mt=d.sizingStyle,vt=mt.boxSizing;Object.keys(mt).forEach(function(Rt){var nn=Rt;hiddenTextarea.style[nn]=mt[nn]}),forceHiddenStyles$1(hiddenTextarea),hiddenTextarea.value=b;var kt=getHeight(hiddenTextarea,d);hiddenTextarea.value=b,kt=getHeight(hiddenTextarea,d),hiddenTextarea.value="x";var Pt=hiddenTextarea.scrollHeight-lt,Jt=Pt*dt;vt==="border-box"&&(Jt=Jt+lt+ht),kt=Math.max(Jt,kt);var Zt=Pt*ct;return vt==="border-box"&&(Zt=Zt+lt+ht),kt=Math.min(Zt,kt),[kt,Pt]}var noop$6=function(){},pick=function(b,dt){return b.reduce(function(ct,lt){return ct[lt]=dt[lt],ct},{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE=!!document.documentElement.currentStyle,getSizingData=function(b){var dt=window.getComputedStyle(b);if(dt===null)return null;var ct=pick(SIZING_STYLE,dt),lt=ct.boxSizing;if(lt==="")return null;isIE&<==="border-box"&&(ct.width=parseFloat(ct.width)+parseFloat(ct.borderRightWidth)+parseFloat(ct.borderLeftWidth)+parseFloat(ct.paddingRight)+parseFloat(ct.paddingLeft)+"px");var ht=parseFloat(ct.paddingBottom)+parseFloat(ct.paddingTop),mt=parseFloat(ct.borderBottomWidth)+parseFloat(ct.borderTopWidth);return{sizingStyle:ct,paddingSize:ht,borderSize:mt}},getSizingData$1=getSizingData;function useListener(d,b,dt){var ct=useLatest(dt);reactExports.useLayoutEffect(function(){var lt=function(mt){return ct.current(mt)};if(d)return d.addEventListener(b,lt),function(){return d.removeEventListener(b,lt)}},[])}var useWindowResizeListener=function(b){useListener(window,"resize",b)},useFontsLoadedListener=function(b){useListener(document.fonts,"loadingdone",b)},_excluded=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],TextareaAutosize=function(b,dt){var ct=b.cacheMeasurements,lt=b.maxRows,ht=b.minRows,mt=b.onChange,vt=mt===void 0?noop$6:mt,kt=b.onHeightChange,Pt=kt===void 0?noop$6:kt,Jt=_objectWithoutPropertiesLoose(b,_excluded),Zt=Jt.value!==void 0,Rt=reactExports.useRef(null),nn=useComposedRef(Rt,dt),Qt=reactExports.useRef(0),wt=reactExports.useRef(),Nt=function(){var Bt=Rt.current,Tt=ct&&wt.current?wt.current:getSizingData$1(Bt);if(Tt){wt.current=Tt;var Mt=calculateNodeHeight(Tt,Bt.value||Bt.placeholder||"x",ht,lt),jt=Mt[0],Ht=Mt[1];Qt.current!==jt&&(Qt.current=jt,Bt.style.setProperty("height",jt+"px","important"),Pt(jt,{rowHeight:Ht}))}},xt=function(Bt){Zt||Nt(),vt(Bt)};return reactExports.useLayoutEffect(Nt),useWindowResizeListener(Nt),useFontsLoadedListener(Nt),reactExports.createElement("textarea",_extends({},Jt,{onChange:xt,ref:nn}))},index$1=reactExports.forwardRef(TextareaAutosize);const textbox$1="_textbox_4pphm_1",textarea="_textarea_4pphm_42",error="_error_4pphm_56",amount$1="_amount_4pphm_60",styles$b={textbox:textbox$1,textarea,error,amount:amount$1},wrapper$6="_wrapper_1yj84_1",textbox="_textbox_1yj84_12",textboxFace="_textboxFace_1yj84_18",textboxBottomGradient="_textboxBottomGradient_1yj84_23",textboxBottomLine="_textboxBottomLine_1yj84_31",active="_active_1yj84_43",pink="_pink_1yj84_50",yellow$1="_yellow_1yj84_53",red$1="_red_1yj84_56",black="_black_1yj84_59",green$1="_green_1yj84_62",styles$a={wrapper:wrapper$6,textbox,textboxFace,textboxBottomGradient,textboxBottomLine,active,pink,yellow:yellow$1,red:red$1,black,green:green$1};var Color=(d=>(d.Pink="pink",d.Yellow="yellow",d.Red="red",d.Black="black",d.Green="green",d))(Color||{});function LinearGradientContainer({active:d,color:b,title:dt,children:ct}){return jsxRuntimeExports.jsxs("div",{className:styles$a.wrapper,children:[jsxRuntimeExports.jsxs("div",{className:cx(styles$a.textbox,b&&styles$a[b],{[styles$a.active]:d}),children:[ct,jsxRuntimeExports.jsx("div",{className:cx(styles$a.textboxFace,styles$a.textboxBottomGradient)}),jsxRuntimeExports.jsx("div",{className:cx(styles$a.textboxFace,styles$a.textboxBottomLine)})]}),dt&&jsxRuntimeExports.jsx("p",{children:dt})]})}const dataPercentAttribute="data-percent",Input=React.forwardRef(({color:d,placeholder:b,onChange:dt,title:ct,width:lt,type:ht="text",value:mt,autoFocus:vt,disabled:kt,className:Pt,classNameTextbox:Jt,focusedProps:Zt,maxValue:Rt,isTextarea:nn,onBlurFnc:Qt,onFocusFnc:wt,error:Nt,...xt},Et)=>{const[Bt,Tt]=reactExports.useState(Zt||!1);reactExports.useEffect(()=>{Et!=null&&Et.current&&(Bt?Et.current.focus():Et.current.blur())},[Bt,Et]),reactExports.useEffect(()=>{typeof Zt=="boolean"&&Tt(Zt)},[Zt]);const Mt=nn?index$1:"input",jt=()=>{Tt(!0),wt&&wt()},Ht=()=>{Tt(!1),Qt&&Qt()};function an(yt){const Yt=yt.target.getAttribute(dataPercentAttribute),Kt=(Rt*Number(Yt)/100).toFixed(0);dt({target:{value:String(Kt),focus(){}}})}return jsxRuntimeExports.jsxs("div",{className:cx(styles$b.textbox,Bt&&styles$b.focused,nn&&styles$b.textarea,Jt),style:{width:lt},children:[jsxRuntimeExports.jsxs(LinearGradientContainer,{active:Zt||Bt,color:kt?Color.Black:d,title:ct,children:[Bt&&!!Rt&&jsxRuntimeExports.jsx("div",{className:styles$b.amount,children:[25,50,75,100].map(yt=>jsxRuntimeExports.jsx("button",{type:"button",onMouseDown:an,[dataPercentAttribute]:yt,children:yt===100?"max":`${yt}%`},yt))}),jsxRuntimeExports.jsx(Mt,{type:ht,ref:Et,value:mt,className:Pt,onChange:dt,disabled:kt,autoFocus:vt,onFocus:jt,onBlur:Ht,placeholder:b,autoComplete:"off",...xt})]}),Nt&&jsxRuntimeExports.jsx("div",{className:styles$b.error,children:Nt})]})});Input.displayName="Input";const wrapper$5="_wrapper_1wbna_1",vertical="_vertical_1wbna_6",green="_green_1wbna_6",blue="_blue_1wbna_40",purple="_purple_1wbna_74",white="_white_1wbna_108",red="_red_1wbna_142",yellow="_yellow_1wbna_176",orange="_orange_1wbna_210",left="_left_1wbna_482",right="_right_1wbna_489",noPaddingX="_noPaddingX_1wbna_496",header="_header_1wbna_501",withPaddingX="_withPaddingX_1wbna_505",inner="_inner_1wbna_509",noPaddingWrapper="_noPaddingWrapper_1wbna_514",displayTitle="_displayTitle_1wbna_520",displayTitleContent="_displayTitleContent_1wbna_655",content="_content_1wbna_665",displayTitleContententering="_displayTitleContententering_1wbna_668",displayTitleContententered="_displayTitleContententered_1wbna_672",displayTitleContentexiting="_displayTitleContentexiting_1wbna_675",displayTitleContentexited="_displayTitleContentexited_1wbna_679",imageWrapper="_imageWrapper_1wbna_683",large="_large_1wbna_688",styles$9={wrapper:wrapper$5,vertical,green,blue,purple,white,red,yellow,orange,left,right,noPaddingX,header,withPaddingX,inner,noPaddingWrapper,displayTitle,displayTitleContent,content,displayTitleContententering,displayTitleContententered,displayTitleContentexiting,displayTitleContentexited,imageWrapper,large};function DisplayTitle({title:d,children:b,color:dt="white",inDisplay:ct,image:lt,isImgLarge:ht,animationState:mt="entered"}){const vt=jsxRuntimeExports.jsx("div",{className:cx(styles$9.displayTitle,styles$9[dt]),children:jsxRuntimeExports.jsxs("div",{className:cx(styles$9.displayTitleContent,styles$9[`displayTitleContent${mt}`]),children:[lt&&jsxRuntimeExports.jsx("div",{className:cx(styles$9.imageWrapper,{[styles$9.large]:ht}),children:lt}),d,jsxRuntimeExports.jsx("div",{className:styles$9.content,children:b})]})});return ct?jsxRuntimeExports.jsx("div",{className:styles$9.noPaddingWrapper,children:vt}):vt}var build$i={},cyberclient={},build$h={},cosmwasmclient={},build$g={},ascii$5={};Object.defineProperty(ascii$5,"__esModule",{value:!0});ascii$5.fromAscii=ascii$5.toAscii=void 0;function toAscii$5(d){const b=dt=>dt.split("").map(ct=>{const lt=ct.charCodeAt(0);if(lt<32||lt>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+lt);return lt});return Uint8Array.from(b(d))}ascii$5.toAscii=toAscii$5;function fromAscii$5(d){return(dt=>dt.map(ct=>{if(ct<32||ct>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+ct);return String.fromCharCode(ct)}))(Array.from(d)).join("")}ascii$5.fromAscii=fromAscii$5;var base64$9={},__createBinding$I=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$I=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$I=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$I(b,d,dt);return __setModuleDefault$I(b,d),b};Object.defineProperty(base64$9,"__esModule",{value:!0});base64$9.fromBase64=base64$9.toBase64=void 0;const base64js$5=__importStar$I(base64Js);function toBase64$5(d){return base64js$5.fromByteArray(d)}base64$9.toBase64=toBase64$5;function fromBase64$5(d){if(!d.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return base64js$5.toByteArray(d)}base64$9.fromBase64=fromBase64$5;var bech32$b={},__createBinding$H=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$H=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$H=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$H(b,d,dt);return __setModuleDefault$H(b,d),b};Object.defineProperty(bech32$b,"__esModule",{value:!0});bech32$b.normalizeBech32=bech32$b.fromBech32=bech32$b.toBech32=void 0;const bech32$a=__importStar$H(bech32$d);function toBech32$5(d,b,dt){return bech32$a.encode(d,bech32$a.toWords(b),dt)}bech32$b.toBech32=toBech32$5;function fromBech32$5(d,b=1/0){const dt=bech32$a.decode(d,b);return{prefix:dt.prefix,data:new Uint8Array(bech32$a.fromWords(dt.words))}}bech32$b.fromBech32=fromBech32$5;function normalizeBech32$5(d){const{prefix:b,data:dt}=fromBech32$5(d);return toBech32$5(b,dt)}bech32$b.normalizeBech32=normalizeBech32$5;var hex$5={};Object.defineProperty(hex$5,"__esModule",{value:!0});hex$5.fromHex=hex$5.toHex=void 0;function toHex$6(d){let b="";for(const dt of d)b+=("0"+dt.toString(16)).slice(-2);return b}hex$5.toHex=toHex$6;function fromHex$5(d){if(d.length%2!==0)throw new Error("hex string length must be a multiple of 2");const b=new Uint8Array(d.length/2);for(let dt=0;dt0?It:Gt},ht.min=function(It,Gt){return It.cmp(Gt)<0?It:Gt},ht.prototype._init=function(It,Gt,Ut){if(typeof It=="number")return this._initNumber(It,Gt,Ut);if(typeof It=="object")return this._initArray(It,Gt,Ut);Gt==="hex"&&(Gt=16),ct(Gt===(Gt|0)&&Gt>=2&&Gt<=36),It=It.toString().replace(/\s+/g,"");var Vt=0;It[0]==="-"&&(Vt++,this.negative=1),Vt=0;Vt-=3)fn=It[Vt]|It[Vt-1]<<8|It[Vt-2]<<16,this.words[qt]|=fn<>>26-dn&67108863,dn+=24,dn>=26&&(dn-=26,qt++);else if(Ut==="le")for(Vt=0,qt=0;Vt>>26-dn&67108863,dn+=24,dn>=26&&(dn-=26,qt++);return this._strip()};function vt(St,It){var Gt=St.charCodeAt(It);if(Gt>=48&&Gt<=57)return Gt-48;if(Gt>=65&&Gt<=70)return Gt-55;if(Gt>=97&&Gt<=102)return Gt-87;ct(!1,"Invalid character in "+St)}function kt(St,It,Gt){var Ut=vt(St,Gt);return Gt-1>=It&&(Ut|=vt(St,Gt-1)<<4),Ut}ht.prototype._parseHex=function(It,Gt,Ut){this.length=Math.ceil((It.length-Gt)/6),this.words=new Array(this.length);for(var Vt=0;Vt=Gt;Vt-=2)dn=kt(It,Gt,Vt)<=18?(qt-=18,fn+=1,this.words[fn]|=dn>>>26):qt+=8;else{var Dt=It.length-Gt;for(Vt=Dt%2===0?Gt+1:Gt;Vt=18?(qt-=18,fn+=1,this.words[fn]|=dn>>>26):qt+=8}this._strip()};function Pt(St,It,Gt,Ut){for(var Vt=0,qt=0,fn=Math.min(St.length,Gt),dn=It;dn=49?qt=Dt-49+10:Dt>=17?qt=Dt-17+10:qt=Dt,ct(Dt>=0&&qt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ht.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{ht.prototype[Symbol.for("nodejs.util.inspect.custom")]=Zt}catch{ht.prototype.inspect=Zt}else ht.prototype.inspect=Zt;function Zt(){return(this.red?""}var Rt=["","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"],nn=[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],Qt=[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];ht.prototype.toString=function(It,Gt){It=It||10,Gt=Gt|0||1;var Ut;if(It===16||It==="hex"){Ut="";for(var Vt=0,qt=0,fn=0;fn>>24-Vt&16777215,Vt+=2,Vt>=26&&(Vt-=26,fn--),qt!==0||fn!==this.length-1?Ut=Rt[6-Dt.length]+Dt+Ut:Ut=Dt+Ut}for(qt!==0&&(Ut=qt.toString(16)+Ut);Ut.length%Gt!==0;)Ut="0"+Ut;return this.negative!==0&&(Ut="-"+Ut),Ut}if(It===(It|0)&&It>=2&&It<=36){var zt=nn[It],tn=Qt[It];Ut="";var An=this.clone();for(An.negative=0;!An.isZero();){var gn=An.modrn(tn).toString(It);An=An.idivn(tn),An.isZero()?Ut=gn+Ut:Ut=Rt[zt-gn.length]+gn+Ut}for(this.isZero()&&(Ut="0"+Ut);Ut.length%Gt!==0;)Ut="0"+Ut;return this.negative!==0&&(Ut="-"+Ut),Ut}ct(!1,"Base should be between 2 and 36")},ht.prototype.toNumber=function(){var It=this.words[0];return this.length===2?It+=this.words[1]*67108864:this.length===3&&this.words[2]===1?It+=4503599627370496+this.words[1]*67108864:this.length>2&&ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-It:It},ht.prototype.toJSON=function(){return this.toString(16,2)},mt&&(ht.prototype.toBuffer=function(It,Gt){return this.toArrayLike(mt,It,Gt)}),ht.prototype.toArray=function(It,Gt){return this.toArrayLike(Array,It,Gt)};var wt=function(It,Gt){return It.allocUnsafe?It.allocUnsafe(Gt):new It(Gt)};ht.prototype.toArrayLike=function(It,Gt,Ut){this._strip();var Vt=this.byteLength(),qt=Ut||Math.max(1,Vt);ct(Vt<=qt,"byte array longer than desired length"),ct(qt>0,"Requested array length <= 0");var fn=wt(It,qt),dn=Gt==="le"?"LE":"BE";return this["_toArrayLike"+dn](fn,Vt),fn},ht.prototype._toArrayLikeLE=function(It,Gt){for(var Ut=0,Vt=0,qt=0,fn=0;qt>8&255),Ut>16&255),fn===6?(Ut>24&255),Vt=0,fn=0):(Vt=dn>>>24,fn+=2)}if(Ut=0&&(It[Ut--]=dn>>8&255),Ut>=0&&(It[Ut--]=dn>>16&255),fn===6?(Ut>=0&&(It[Ut--]=dn>>24&255),Vt=0,fn=0):(Vt=dn>>>24,fn+=2)}if(Ut>=0)for(It[Ut--]=Vt;Ut>=0;)It[Ut--]=0},Math.clz32?ht.prototype._countBits=function(It){return 32-Math.clz32(It)}:ht.prototype._countBits=function(It){var Gt=It,Ut=0;return Gt>=4096&&(Ut+=13,Gt>>>=13),Gt>=64&&(Ut+=7,Gt>>>=7),Gt>=8&&(Ut+=4,Gt>>>=4),Gt>=2&&(Ut+=2,Gt>>>=2),Ut+Gt},ht.prototype._zeroBits=function(It){if(It===0)return 26;var Gt=It,Ut=0;return Gt&8191||(Ut+=13,Gt>>>=13),Gt&127||(Ut+=7,Gt>>>=7),Gt&15||(Ut+=4,Gt>>>=4),Gt&3||(Ut+=2,Gt>>>=2),Gt&1||Ut++,Ut},ht.prototype.bitLength=function(){var It=this.words[this.length-1],Gt=this._countBits(It);return(this.length-1)*26+Gt};function Nt(St){for(var It=new Array(St.bitLength()),Gt=0;Gt>>Vt&1}return It}ht.prototype.zeroBits=function(){if(this.isZero())return 0;for(var It=0,Gt=0;GtIt.length?this.clone().ior(It):It.clone().ior(this)},ht.prototype.uor=function(It){return this.length>It.length?this.clone().iuor(It):It.clone().iuor(this)},ht.prototype.iuand=function(It){var Gt;this.length>It.length?Gt=It:Gt=this;for(var Ut=0;UtIt.length?this.clone().iand(It):It.clone().iand(this)},ht.prototype.uand=function(It){return this.length>It.length?this.clone().iuand(It):It.clone().iuand(this)},ht.prototype.iuxor=function(It){var Gt,Ut;this.length>It.length?(Gt=this,Ut=It):(Gt=It,Ut=this);for(var Vt=0;VtIt.length?this.clone().ixor(It):It.clone().ixor(this)},ht.prototype.uxor=function(It){return this.length>It.length?this.clone().iuxor(It):It.clone().iuxor(this)},ht.prototype.inotn=function(It){ct(typeof It=="number"&&It>=0);var Gt=Math.ceil(It/26)|0,Ut=It%26;this._expand(Gt),Ut>0&&Gt--;for(var Vt=0;Vt0&&(this.words[Vt]=~this.words[Vt]&67108863>>26-Ut),this._strip()},ht.prototype.notn=function(It){return this.clone().inotn(It)},ht.prototype.setn=function(It,Gt){ct(typeof It=="number"&&It>=0);var Ut=It/26|0,Vt=It%26;return this._expand(Ut+1),Gt?this.words[Ut]=this.words[Ut]|1<It.length?(Ut=this,Vt=It):(Ut=It,Vt=this);for(var qt=0,fn=0;fn>>26;for(;qt!==0&&fn>>26;if(this.length=Ut.length,qt!==0)this.words[this.length]=qt,this.length++;else if(Ut!==this)for(;fnIt.length?this.clone().iadd(It):It.clone().iadd(this)},ht.prototype.isub=function(It){if(It.negative!==0){It.negative=0;var Gt=this.iadd(It);return It.negative=1,Gt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(It),this.negative=1,this._normSign();var Ut=this.cmp(It);if(Ut===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Vt,qt;Ut>0?(Vt=this,qt=It):(Vt=It,qt=this);for(var fn=0,dn=0;dn>26,this.words[dn]=Gt&67108863;for(;fn!==0&&dn>26,this.words[dn]=Gt&67108863;if(fn===0&&dn>>26,An=Dt&67108863,gn=Math.min(zt,It.length-1),Nn=Math.max(0,zt-St.length+1);Nn<=gn;Nn++){var wr=zt-Nn|0;Vt=St.words[wr]|0,qt=It.words[Nn]|0,fn=Vt*qt+An,tn+=fn/67108864|0,An=fn&67108863}Gt.words[zt]=An|0,Dt=tn|0}return Dt!==0?Gt.words[zt]=Dt|0:Gt.length--,Gt._strip()}var Et=function(It,Gt,Ut){var Vt=It.words,qt=Gt.words,fn=Ut.words,dn=0,Dt,zt,tn,An=Vt[0]|0,gn=An&8191,Nn=An>>>13,wr=Vt[1]|0,nr=wr&8191,fr=wr>>>13,xr=Vt[2]|0,zr=xr&8191,Jr=xr>>>13,ro=Vt[3]|0,xn=ro&8191,_o=ro>>>13,Mn=Vt[4]|0,Zn=Mn&8191,rr=Mn>>>13,mr=Vt[5]|0,pn=mr&8191,Hr=mr>>>13,ao=Vt[6]|0,No=ao&8191,Ro=ao>>>13,br=Vt[7]|0,yr=br&8191,Qr=br>>>13,Vr=Vt[8]|0,oo=Vr&8191,Lr=Vr>>>13,po=Vt[9]|0,fo=po&8191,bo=po>>>13,Lo=qt[0]|0,Zr=Lo&8191,Tr=Lo>>>13,sn=qt[1]|0,yn=sn&8191,Pn=sn>>>13,Gr=qt[2]|0,gr=Gr&8191,Wr=Gr>>>13,Zo=qt[3]|0,ba=Zo&8191,ga=Zo>>>13,cs=qt[4]|0,fs=cs&8191,as=cs>>>13,Ss=qt[5]|0,Qs=Ss&8191,us=Ss>>>13,$s=qt[6]|0,dr=$s&8191,vr=$s>>>13,Ir=qt[7]|0,Vn=Ir&8191,kr=Ir>>>13,uo=qt[8]|0,Ao=uo&8191,Un=uo>>>13,Go=qt[9]|0,Fn=Go&8191,Yn=Go>>>13;Ut.negative=It.negative^Gt.negative,Ut.length=19,Dt=Math.imul(gn,Zr),zt=Math.imul(gn,Tr),zt=zt+Math.imul(Nn,Zr)|0,tn=Math.imul(Nn,Tr);var qn=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(qn>>>26)|0,qn&=67108863,Dt=Math.imul(nr,Zr),zt=Math.imul(nr,Tr),zt=zt+Math.imul(fr,Zr)|0,tn=Math.imul(fr,Tr),Dt=Dt+Math.imul(gn,yn)|0,zt=zt+Math.imul(gn,Pn)|0,zt=zt+Math.imul(Nn,yn)|0,tn=tn+Math.imul(Nn,Pn)|0;var vn=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(vn>>>26)|0,vn&=67108863,Dt=Math.imul(zr,Zr),zt=Math.imul(zr,Tr),zt=zt+Math.imul(Jr,Zr)|0,tn=Math.imul(Jr,Tr),Dt=Dt+Math.imul(nr,yn)|0,zt=zt+Math.imul(nr,Pn)|0,zt=zt+Math.imul(fr,yn)|0,tn=tn+Math.imul(fr,Pn)|0,Dt=Dt+Math.imul(gn,gr)|0,zt=zt+Math.imul(gn,Wr)|0,zt=zt+Math.imul(Nn,gr)|0,tn=tn+Math.imul(Nn,Wr)|0;var Jn=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Dt=Math.imul(xn,Zr),zt=Math.imul(xn,Tr),zt=zt+Math.imul(_o,Zr)|0,tn=Math.imul(_o,Tr),Dt=Dt+Math.imul(zr,yn)|0,zt=zt+Math.imul(zr,Pn)|0,zt=zt+Math.imul(Jr,yn)|0,tn=tn+Math.imul(Jr,Pn)|0,Dt=Dt+Math.imul(nr,gr)|0,zt=zt+Math.imul(nr,Wr)|0,zt=zt+Math.imul(fr,gr)|0,tn=tn+Math.imul(fr,Wr)|0,Dt=Dt+Math.imul(gn,ba)|0,zt=zt+Math.imul(gn,ga)|0,zt=zt+Math.imul(Nn,ba)|0,tn=tn+Math.imul(Nn,ga)|0;var ir=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(ir>>>26)|0,ir&=67108863,Dt=Math.imul(Zn,Zr),zt=Math.imul(Zn,Tr),zt=zt+Math.imul(rr,Zr)|0,tn=Math.imul(rr,Tr),Dt=Dt+Math.imul(xn,yn)|0,zt=zt+Math.imul(xn,Pn)|0,zt=zt+Math.imul(_o,yn)|0,tn=tn+Math.imul(_o,Pn)|0,Dt=Dt+Math.imul(zr,gr)|0,zt=zt+Math.imul(zr,Wr)|0,zt=zt+Math.imul(Jr,gr)|0,tn=tn+Math.imul(Jr,Wr)|0,Dt=Dt+Math.imul(nr,ba)|0,zt=zt+Math.imul(nr,ga)|0,zt=zt+Math.imul(fr,ba)|0,tn=tn+Math.imul(fr,ga)|0,Dt=Dt+Math.imul(gn,fs)|0,zt=zt+Math.imul(gn,as)|0,zt=zt+Math.imul(Nn,fs)|0,tn=tn+Math.imul(Nn,as)|0;var _r=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(_r>>>26)|0,_r&=67108863,Dt=Math.imul(pn,Zr),zt=Math.imul(pn,Tr),zt=zt+Math.imul(Hr,Zr)|0,tn=Math.imul(Hr,Tr),Dt=Dt+Math.imul(Zn,yn)|0,zt=zt+Math.imul(Zn,Pn)|0,zt=zt+Math.imul(rr,yn)|0,tn=tn+Math.imul(rr,Pn)|0,Dt=Dt+Math.imul(xn,gr)|0,zt=zt+Math.imul(xn,Wr)|0,zt=zt+Math.imul(_o,gr)|0,tn=tn+Math.imul(_o,Wr)|0,Dt=Dt+Math.imul(zr,ba)|0,zt=zt+Math.imul(zr,ga)|0,zt=zt+Math.imul(Jr,ba)|0,tn=tn+Math.imul(Jr,ga)|0,Dt=Dt+Math.imul(nr,fs)|0,zt=zt+Math.imul(nr,as)|0,zt=zt+Math.imul(fr,fs)|0,tn=tn+Math.imul(fr,as)|0,Dt=Dt+Math.imul(gn,Qs)|0,zt=zt+Math.imul(gn,us)|0,zt=zt+Math.imul(Nn,Qs)|0,tn=tn+Math.imul(Nn,us)|0;var Sr=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,Dt=Math.imul(No,Zr),zt=Math.imul(No,Tr),zt=zt+Math.imul(Ro,Zr)|0,tn=Math.imul(Ro,Tr),Dt=Dt+Math.imul(pn,yn)|0,zt=zt+Math.imul(pn,Pn)|0,zt=zt+Math.imul(Hr,yn)|0,tn=tn+Math.imul(Hr,Pn)|0,Dt=Dt+Math.imul(Zn,gr)|0,zt=zt+Math.imul(Zn,Wr)|0,zt=zt+Math.imul(rr,gr)|0,tn=tn+Math.imul(rr,Wr)|0,Dt=Dt+Math.imul(xn,ba)|0,zt=zt+Math.imul(xn,ga)|0,zt=zt+Math.imul(_o,ba)|0,tn=tn+Math.imul(_o,ga)|0,Dt=Dt+Math.imul(zr,fs)|0,zt=zt+Math.imul(zr,as)|0,zt=zt+Math.imul(Jr,fs)|0,tn=tn+Math.imul(Jr,as)|0,Dt=Dt+Math.imul(nr,Qs)|0,zt=zt+Math.imul(nr,us)|0,zt=zt+Math.imul(fr,Qs)|0,tn=tn+Math.imul(fr,us)|0,Dt=Dt+Math.imul(gn,dr)|0,zt=zt+Math.imul(gn,vr)|0,zt=zt+Math.imul(Nn,dr)|0,tn=tn+Math.imul(Nn,vr)|0;var no=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(no>>>26)|0,no&=67108863,Dt=Math.imul(yr,Zr),zt=Math.imul(yr,Tr),zt=zt+Math.imul(Qr,Zr)|0,tn=Math.imul(Qr,Tr),Dt=Dt+Math.imul(No,yn)|0,zt=zt+Math.imul(No,Pn)|0,zt=zt+Math.imul(Ro,yn)|0,tn=tn+Math.imul(Ro,Pn)|0,Dt=Dt+Math.imul(pn,gr)|0,zt=zt+Math.imul(pn,Wr)|0,zt=zt+Math.imul(Hr,gr)|0,tn=tn+Math.imul(Hr,Wr)|0,Dt=Dt+Math.imul(Zn,ba)|0,zt=zt+Math.imul(Zn,ga)|0,zt=zt+Math.imul(rr,ba)|0,tn=tn+Math.imul(rr,ga)|0,Dt=Dt+Math.imul(xn,fs)|0,zt=zt+Math.imul(xn,as)|0,zt=zt+Math.imul(_o,fs)|0,tn=tn+Math.imul(_o,as)|0,Dt=Dt+Math.imul(zr,Qs)|0,zt=zt+Math.imul(zr,us)|0,zt=zt+Math.imul(Jr,Qs)|0,tn=tn+Math.imul(Jr,us)|0,Dt=Dt+Math.imul(nr,dr)|0,zt=zt+Math.imul(nr,vr)|0,zt=zt+Math.imul(fr,dr)|0,tn=tn+Math.imul(fr,vr)|0,Dt=Dt+Math.imul(gn,Vn)|0,zt=zt+Math.imul(gn,kr)|0,zt=zt+Math.imul(Nn,Vn)|0,tn=tn+Math.imul(Nn,kr)|0;var eo=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(eo>>>26)|0,eo&=67108863,Dt=Math.imul(oo,Zr),zt=Math.imul(oo,Tr),zt=zt+Math.imul(Lr,Zr)|0,tn=Math.imul(Lr,Tr),Dt=Dt+Math.imul(yr,yn)|0,zt=zt+Math.imul(yr,Pn)|0,zt=zt+Math.imul(Qr,yn)|0,tn=tn+Math.imul(Qr,Pn)|0,Dt=Dt+Math.imul(No,gr)|0,zt=zt+Math.imul(No,Wr)|0,zt=zt+Math.imul(Ro,gr)|0,tn=tn+Math.imul(Ro,Wr)|0,Dt=Dt+Math.imul(pn,ba)|0,zt=zt+Math.imul(pn,ga)|0,zt=zt+Math.imul(Hr,ba)|0,tn=tn+Math.imul(Hr,ga)|0,Dt=Dt+Math.imul(Zn,fs)|0,zt=zt+Math.imul(Zn,as)|0,zt=zt+Math.imul(rr,fs)|0,tn=tn+Math.imul(rr,as)|0,Dt=Dt+Math.imul(xn,Qs)|0,zt=zt+Math.imul(xn,us)|0,zt=zt+Math.imul(_o,Qs)|0,tn=tn+Math.imul(_o,us)|0,Dt=Dt+Math.imul(zr,dr)|0,zt=zt+Math.imul(zr,vr)|0,zt=zt+Math.imul(Jr,dr)|0,tn=tn+Math.imul(Jr,vr)|0,Dt=Dt+Math.imul(nr,Vn)|0,zt=zt+Math.imul(nr,kr)|0,zt=zt+Math.imul(fr,Vn)|0,tn=tn+Math.imul(fr,kr)|0,Dt=Dt+Math.imul(gn,Ao)|0,zt=zt+Math.imul(gn,Un)|0,zt=zt+Math.imul(Nn,Ao)|0,tn=tn+Math.imul(Nn,Un)|0;var mo=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(mo>>>26)|0,mo&=67108863,Dt=Math.imul(fo,Zr),zt=Math.imul(fo,Tr),zt=zt+Math.imul(bo,Zr)|0,tn=Math.imul(bo,Tr),Dt=Dt+Math.imul(oo,yn)|0,zt=zt+Math.imul(oo,Pn)|0,zt=zt+Math.imul(Lr,yn)|0,tn=tn+Math.imul(Lr,Pn)|0,Dt=Dt+Math.imul(yr,gr)|0,zt=zt+Math.imul(yr,Wr)|0,zt=zt+Math.imul(Qr,gr)|0,tn=tn+Math.imul(Qr,Wr)|0,Dt=Dt+Math.imul(No,ba)|0,zt=zt+Math.imul(No,ga)|0,zt=zt+Math.imul(Ro,ba)|0,tn=tn+Math.imul(Ro,ga)|0,Dt=Dt+Math.imul(pn,fs)|0,zt=zt+Math.imul(pn,as)|0,zt=zt+Math.imul(Hr,fs)|0,tn=tn+Math.imul(Hr,as)|0,Dt=Dt+Math.imul(Zn,Qs)|0,zt=zt+Math.imul(Zn,us)|0,zt=zt+Math.imul(rr,Qs)|0,tn=tn+Math.imul(rr,us)|0,Dt=Dt+Math.imul(xn,dr)|0,zt=zt+Math.imul(xn,vr)|0,zt=zt+Math.imul(_o,dr)|0,tn=tn+Math.imul(_o,vr)|0,Dt=Dt+Math.imul(zr,Vn)|0,zt=zt+Math.imul(zr,kr)|0,zt=zt+Math.imul(Jr,Vn)|0,tn=tn+Math.imul(Jr,kr)|0,Dt=Dt+Math.imul(nr,Ao)|0,zt=zt+Math.imul(nr,Un)|0,zt=zt+Math.imul(fr,Ao)|0,tn=tn+Math.imul(fr,Un)|0,Dt=Dt+Math.imul(gn,Fn)|0,zt=zt+Math.imul(gn,Yn)|0,zt=zt+Math.imul(Nn,Fn)|0,tn=tn+Math.imul(Nn,Yn)|0;var Bo=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(Bo>>>26)|0,Bo&=67108863,Dt=Math.imul(fo,yn),zt=Math.imul(fo,Pn),zt=zt+Math.imul(bo,yn)|0,tn=Math.imul(bo,Pn),Dt=Dt+Math.imul(oo,gr)|0,zt=zt+Math.imul(oo,Wr)|0,zt=zt+Math.imul(Lr,gr)|0,tn=tn+Math.imul(Lr,Wr)|0,Dt=Dt+Math.imul(yr,ba)|0,zt=zt+Math.imul(yr,ga)|0,zt=zt+Math.imul(Qr,ba)|0,tn=tn+Math.imul(Qr,ga)|0,Dt=Dt+Math.imul(No,fs)|0,zt=zt+Math.imul(No,as)|0,zt=zt+Math.imul(Ro,fs)|0,tn=tn+Math.imul(Ro,as)|0,Dt=Dt+Math.imul(pn,Qs)|0,zt=zt+Math.imul(pn,us)|0,zt=zt+Math.imul(Hr,Qs)|0,tn=tn+Math.imul(Hr,us)|0,Dt=Dt+Math.imul(Zn,dr)|0,zt=zt+Math.imul(Zn,vr)|0,zt=zt+Math.imul(rr,dr)|0,tn=tn+Math.imul(rr,vr)|0,Dt=Dt+Math.imul(xn,Vn)|0,zt=zt+Math.imul(xn,kr)|0,zt=zt+Math.imul(_o,Vn)|0,tn=tn+Math.imul(_o,kr)|0,Dt=Dt+Math.imul(zr,Ao)|0,zt=zt+Math.imul(zr,Un)|0,zt=zt+Math.imul(Jr,Ao)|0,tn=tn+Math.imul(Jr,Un)|0,Dt=Dt+Math.imul(nr,Fn)|0,zt=zt+Math.imul(nr,Yn)|0,zt=zt+Math.imul(fr,Fn)|0,tn=tn+Math.imul(fr,Yn)|0;var Ft=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,Dt=Math.imul(fo,gr),zt=Math.imul(fo,Wr),zt=zt+Math.imul(bo,gr)|0,tn=Math.imul(bo,Wr),Dt=Dt+Math.imul(oo,ba)|0,zt=zt+Math.imul(oo,ga)|0,zt=zt+Math.imul(Lr,ba)|0,tn=tn+Math.imul(Lr,ga)|0,Dt=Dt+Math.imul(yr,fs)|0,zt=zt+Math.imul(yr,as)|0,zt=zt+Math.imul(Qr,fs)|0,tn=tn+Math.imul(Qr,as)|0,Dt=Dt+Math.imul(No,Qs)|0,zt=zt+Math.imul(No,us)|0,zt=zt+Math.imul(Ro,Qs)|0,tn=tn+Math.imul(Ro,us)|0,Dt=Dt+Math.imul(pn,dr)|0,zt=zt+Math.imul(pn,vr)|0,zt=zt+Math.imul(Hr,dr)|0,tn=tn+Math.imul(Hr,vr)|0,Dt=Dt+Math.imul(Zn,Vn)|0,zt=zt+Math.imul(Zn,kr)|0,zt=zt+Math.imul(rr,Vn)|0,tn=tn+Math.imul(rr,kr)|0,Dt=Dt+Math.imul(xn,Ao)|0,zt=zt+Math.imul(xn,Un)|0,zt=zt+Math.imul(_o,Ao)|0,tn=tn+Math.imul(_o,Un)|0,Dt=Dt+Math.imul(zr,Fn)|0,zt=zt+Math.imul(zr,Yn)|0,zt=zt+Math.imul(Jr,Fn)|0,tn=tn+Math.imul(Jr,Yn)|0;var ut=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(ut>>>26)|0,ut&=67108863,Dt=Math.imul(fo,ba),zt=Math.imul(fo,ga),zt=zt+Math.imul(bo,ba)|0,tn=Math.imul(bo,ga),Dt=Dt+Math.imul(oo,fs)|0,zt=zt+Math.imul(oo,as)|0,zt=zt+Math.imul(Lr,fs)|0,tn=tn+Math.imul(Lr,as)|0,Dt=Dt+Math.imul(yr,Qs)|0,zt=zt+Math.imul(yr,us)|0,zt=zt+Math.imul(Qr,Qs)|0,tn=tn+Math.imul(Qr,us)|0,Dt=Dt+Math.imul(No,dr)|0,zt=zt+Math.imul(No,vr)|0,zt=zt+Math.imul(Ro,dr)|0,tn=tn+Math.imul(Ro,vr)|0,Dt=Dt+Math.imul(pn,Vn)|0,zt=zt+Math.imul(pn,kr)|0,zt=zt+Math.imul(Hr,Vn)|0,tn=tn+Math.imul(Hr,kr)|0,Dt=Dt+Math.imul(Zn,Ao)|0,zt=zt+Math.imul(Zn,Un)|0,zt=zt+Math.imul(rr,Ao)|0,tn=tn+Math.imul(rr,Un)|0,Dt=Dt+Math.imul(xn,Fn)|0,zt=zt+Math.imul(xn,Yn)|0,zt=zt+Math.imul(_o,Fn)|0,tn=tn+Math.imul(_o,Yn)|0;var bt=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(bt>>>26)|0,bt&=67108863,Dt=Math.imul(fo,fs),zt=Math.imul(fo,as),zt=zt+Math.imul(bo,fs)|0,tn=Math.imul(bo,as),Dt=Dt+Math.imul(oo,Qs)|0,zt=zt+Math.imul(oo,us)|0,zt=zt+Math.imul(Lr,Qs)|0,tn=tn+Math.imul(Lr,us)|0,Dt=Dt+Math.imul(yr,dr)|0,zt=zt+Math.imul(yr,vr)|0,zt=zt+Math.imul(Qr,dr)|0,tn=tn+Math.imul(Qr,vr)|0,Dt=Dt+Math.imul(No,Vn)|0,zt=zt+Math.imul(No,kr)|0,zt=zt+Math.imul(Ro,Vn)|0,tn=tn+Math.imul(Ro,kr)|0,Dt=Dt+Math.imul(pn,Ao)|0,zt=zt+Math.imul(pn,Un)|0,zt=zt+Math.imul(Hr,Ao)|0,tn=tn+Math.imul(Hr,Un)|0,Dt=Dt+Math.imul(Zn,Fn)|0,zt=zt+Math.imul(Zn,Yn)|0,zt=zt+Math.imul(rr,Fn)|0,tn=tn+Math.imul(rr,Yn)|0;var $a=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+($a>>>26)|0,$a&=67108863,Dt=Math.imul(fo,Qs),zt=Math.imul(fo,us),zt=zt+Math.imul(bo,Qs)|0,tn=Math.imul(bo,us),Dt=Dt+Math.imul(oo,dr)|0,zt=zt+Math.imul(oo,vr)|0,zt=zt+Math.imul(Lr,dr)|0,tn=tn+Math.imul(Lr,vr)|0,Dt=Dt+Math.imul(yr,Vn)|0,zt=zt+Math.imul(yr,kr)|0,zt=zt+Math.imul(Qr,Vn)|0,tn=tn+Math.imul(Qr,kr)|0,Dt=Dt+Math.imul(No,Ao)|0,zt=zt+Math.imul(No,Un)|0,zt=zt+Math.imul(Ro,Ao)|0,tn=tn+Math.imul(Ro,Un)|0,Dt=Dt+Math.imul(pn,Fn)|0,zt=zt+Math.imul(pn,Yn)|0,zt=zt+Math.imul(Hr,Fn)|0,tn=tn+Math.imul(Hr,Yn)|0;var vo=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(vo>>>26)|0,vo&=67108863,Dt=Math.imul(fo,dr),zt=Math.imul(fo,vr),zt=zt+Math.imul(bo,dr)|0,tn=Math.imul(bo,vr),Dt=Dt+Math.imul(oo,Vn)|0,zt=zt+Math.imul(oo,kr)|0,zt=zt+Math.imul(Lr,Vn)|0,tn=tn+Math.imul(Lr,kr)|0,Dt=Dt+Math.imul(yr,Ao)|0,zt=zt+Math.imul(yr,Un)|0,zt=zt+Math.imul(Qr,Ao)|0,tn=tn+Math.imul(Qr,Un)|0,Dt=Dt+Math.imul(No,Fn)|0,zt=zt+Math.imul(No,Yn)|0,zt=zt+Math.imul(Ro,Fn)|0,tn=tn+Math.imul(Ro,Yn)|0;var Io=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(Io>>>26)|0,Io&=67108863,Dt=Math.imul(fo,Vn),zt=Math.imul(fo,kr),zt=zt+Math.imul(bo,Vn)|0,tn=Math.imul(bo,kr),Dt=Dt+Math.imul(oo,Ao)|0,zt=zt+Math.imul(oo,Un)|0,zt=zt+Math.imul(Lr,Ao)|0,tn=tn+Math.imul(Lr,Un)|0,Dt=Dt+Math.imul(yr,Fn)|0,zt=zt+Math.imul(yr,Yn)|0,zt=zt+Math.imul(Qr,Fn)|0,tn=tn+Math.imul(Qr,Yn)|0;var ko=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(ko>>>26)|0,ko&=67108863,Dt=Math.imul(fo,Ao),zt=Math.imul(fo,Un),zt=zt+Math.imul(bo,Ao)|0,tn=Math.imul(bo,Un),Dt=Dt+Math.imul(oo,Fn)|0,zt=zt+Math.imul(oo,Yn)|0,zt=zt+Math.imul(Lr,Fn)|0,tn=tn+Math.imul(Lr,Yn)|0;var Wo=(dn+Dt|0)+((zt&8191)<<13)|0;dn=(tn+(zt>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,Dt=Math.imul(fo,Fn),zt=Math.imul(fo,Yn),zt=zt+Math.imul(bo,Fn)|0,tn=Math.imul(bo,Yn);var Jo=(dn+Dt|0)+((zt&8191)<<13)|0;return dn=(tn+(zt>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,fn[0]=qn,fn[1]=vn,fn[2]=Jn,fn[3]=ir,fn[4]=_r,fn[5]=Sr,fn[6]=no,fn[7]=eo,fn[8]=mo,fn[9]=Bo,fn[10]=Ft,fn[11]=ut,fn[12]=bt,fn[13]=$a,fn[14]=vo,fn[15]=Io,fn[16]=ko,fn[17]=Wo,fn[18]=Jo,dn!==0&&(fn[19]=dn,Ut.length++),Ut};Math.imul||(Et=xt);function Bt(St,It,Gt){Gt.negative=It.negative^St.negative,Gt.length=St.length+It.length;for(var Ut=0,Vt=0,qt=0;qt>>26)|0,Vt+=fn>>>26,fn&=67108863}Gt.words[qt]=dn,Ut=fn,fn=Vt}return Ut!==0?Gt.words[qt]=Ut:Gt.length--,Gt._strip()}function Tt(St,It,Gt){return Bt(St,It,Gt)}ht.prototype.mulTo=function(It,Gt){var Ut,Vt=this.length+It.length;return this.length===10&&It.length===10?Ut=Et(this,It,Gt):Vt<63?Ut=xt(this,It,Gt):Vt<1024?Ut=Bt(this,It,Gt):Ut=Tt(this,It,Gt),Ut},ht.prototype.mul=function(It){var Gt=new ht(null);return Gt.words=new Array(this.length+It.length),this.mulTo(It,Gt)},ht.prototype.mulf=function(It){var Gt=new ht(null);return Gt.words=new Array(this.length+It.length),Tt(this,It,Gt)},ht.prototype.imul=function(It){return this.clone().mulTo(It,this)},ht.prototype.imuln=function(It){var Gt=It<0;Gt&&(It=-It),ct(typeof It=="number"),ct(It<67108864);for(var Ut=0,Vt=0;Vt>=26,Ut+=qt/67108864|0,Ut+=fn>>>26,this.words[Vt]=fn&67108863}return Ut!==0&&(this.words[Vt]=Ut,this.length++),Gt?this.ineg():this},ht.prototype.muln=function(It){return this.clone().imuln(It)},ht.prototype.sqr=function(){return this.mul(this)},ht.prototype.isqr=function(){return this.imul(this.clone())},ht.prototype.pow=function(It){var Gt=Nt(It);if(Gt.length===0)return new ht(1);for(var Ut=this,Vt=0;Vt=0);var Gt=It%26,Ut=(It-Gt)/26,Vt=67108863>>>26-Gt<<26-Gt,qt;if(Gt!==0){var fn=0;for(qt=0;qt>>26-Gt}fn&&(this.words[qt]=fn,this.length++)}if(Ut!==0){for(qt=this.length-1;qt>=0;qt--)this.words[qt+Ut]=this.words[qt];for(qt=0;qt=0);var Vt;Gt?Vt=(Gt-Gt%26)/26:Vt=0;var qt=It%26,fn=Math.min((It-qt)/26,this.length),dn=67108863^67108863>>>qt<fn)for(this.length-=fn,zt=0;zt=0&&(tn!==0||zt>=Vt);zt--){var An=this.words[zt]|0;this.words[zt]=tn<<26-qt|An>>>qt,tn=An&dn}return Dt&&tn!==0&&(Dt.words[Dt.length++]=tn),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},ht.prototype.ishrn=function(It,Gt,Ut){return ct(this.negative===0),this.iushrn(It,Gt,Ut)},ht.prototype.shln=function(It){return this.clone().ishln(It)},ht.prototype.ushln=function(It){return this.clone().iushln(It)},ht.prototype.shrn=function(It){return this.clone().ishrn(It)},ht.prototype.ushrn=function(It){return this.clone().iushrn(It)},ht.prototype.testn=function(It){ct(typeof It=="number"&&It>=0);var Gt=It%26,Ut=(It-Gt)/26,Vt=1<=0);var Gt=It%26,Ut=(It-Gt)/26;if(ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Ut)return this;if(Gt!==0&&Ut++,this.length=Math.min(Ut,this.length),Gt!==0){var Vt=67108863^67108863>>>Gt<=67108864;Gt++)this.words[Gt]-=67108864,Gt===this.length-1?this.words[Gt+1]=1:this.words[Gt+1]++;return this.length=Math.max(this.length,Gt+1),this},ht.prototype.isubn=function(It){if(ct(typeof It=="number"),ct(It<67108864),It<0)return this.iaddn(-It);if(this.negative!==0)return this.negative=0,this.iaddn(It),this.negative=1,this;if(this.words[0]-=It,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Gt=0;Gt>26)-(Dt/67108864|0),this.words[qt+Ut]=fn&67108863}for(;qt>26,this.words[qt+Ut]=fn&67108863;if(dn===0)return this._strip();for(ct(dn===-1),dn=0,qt=0;qt>26,this.words[qt]=fn&67108863;return this.negative=1,this._strip()},ht.prototype._wordDiv=function(It,Gt){var Ut=this.length-It.length,Vt=this.clone(),qt=It,fn=qt.words[qt.length-1]|0,dn=this._countBits(fn);Ut=26-dn,Ut!==0&&(qt=qt.ushln(Ut),Vt.iushln(Ut),fn=qt.words[qt.length-1]|0);var Dt=Vt.length-qt.length,zt;if(Gt!=="mod"){zt=new ht(null),zt.length=Dt+1,zt.words=new Array(zt.length);for(var tn=0;tn=0;gn--){var Nn=(Vt.words[qt.length+gn]|0)*67108864+(Vt.words[qt.length+gn-1]|0);for(Nn=Math.min(Nn/fn|0,67108863),Vt._ishlnsubmul(qt,Nn,gn);Vt.negative!==0;)Nn--,Vt.negative=0,Vt._ishlnsubmul(qt,1,gn),Vt.isZero()||(Vt.negative^=1);zt&&(zt.words[gn]=Nn)}return zt&&zt._strip(),Vt._strip(),Gt!=="div"&&Ut!==0&&Vt.iushrn(Ut),{div:zt||null,mod:Vt}},ht.prototype.divmod=function(It,Gt,Ut){if(ct(!It.isZero()),this.isZero())return{div:new ht(0),mod:new ht(0)};var Vt,qt,fn;return this.negative!==0&&It.negative===0?(fn=this.neg().divmod(It,Gt),Gt!=="mod"&&(Vt=fn.div.neg()),Gt!=="div"&&(qt=fn.mod.neg(),Ut&&qt.negative!==0&&qt.iadd(It)),{div:Vt,mod:qt}):this.negative===0&&It.negative!==0?(fn=this.divmod(It.neg(),Gt),Gt!=="mod"&&(Vt=fn.div.neg()),{div:Vt,mod:fn.mod}):this.negative&It.negative?(fn=this.neg().divmod(It.neg(),Gt),Gt!=="div"&&(qt=fn.mod.neg(),Ut&&qt.negative!==0&&qt.isub(It)),{div:fn.div,mod:qt}):It.length>this.length||this.cmp(It)<0?{div:new ht(0),mod:this}:It.length===1?Gt==="div"?{div:this.divn(It.words[0]),mod:null}:Gt==="mod"?{div:null,mod:new ht(this.modrn(It.words[0]))}:{div:this.divn(It.words[0]),mod:new ht(this.modrn(It.words[0]))}:this._wordDiv(It,Gt)},ht.prototype.div=function(It){return this.divmod(It,"div",!1).div},ht.prototype.mod=function(It){return this.divmod(It,"mod",!1).mod},ht.prototype.umod=function(It){return this.divmod(It,"mod",!0).mod},ht.prototype.divRound=function(It){var Gt=this.divmod(It);if(Gt.mod.isZero())return Gt.div;var Ut=Gt.div.negative!==0?Gt.mod.isub(It):Gt.mod,Vt=It.ushrn(1),qt=It.andln(1),fn=Ut.cmp(Vt);return fn<0||qt===1&&fn===0?Gt.div:Gt.div.negative!==0?Gt.div.isubn(1):Gt.div.iaddn(1)},ht.prototype.modrn=function(It){var Gt=It<0;Gt&&(It=-It),ct(It<=67108863);for(var Ut=(1<<26)%It,Vt=0,qt=this.length-1;qt>=0;qt--)Vt=(Ut*Vt+(this.words[qt]|0))%It;return Gt?-Vt:Vt},ht.prototype.modn=function(It){return this.modrn(It)},ht.prototype.idivn=function(It){var Gt=It<0;Gt&&(It=-It),ct(It<=67108863);for(var Ut=0,Vt=this.length-1;Vt>=0;Vt--){var qt=(this.words[Vt]|0)+Ut*67108864;this.words[Vt]=qt/It|0,Ut=qt%It}return this._strip(),Gt?this.ineg():this},ht.prototype.divn=function(It){return this.clone().idivn(It)},ht.prototype.egcd=function(It){ct(It.negative===0),ct(!It.isZero());var Gt=this,Ut=It.clone();Gt.negative!==0?Gt=Gt.umod(It):Gt=Gt.clone();for(var Vt=new ht(1),qt=new ht(0),fn=new ht(0),dn=new ht(1),Dt=0;Gt.isEven()&&Ut.isEven();)Gt.iushrn(1),Ut.iushrn(1),++Dt;for(var zt=Ut.clone(),tn=Gt.clone();!Gt.isZero();){for(var An=0,gn=1;!(Gt.words[0]&gn)&&An<26;++An,gn<<=1);if(An>0)for(Gt.iushrn(An);An-- >0;)(Vt.isOdd()||qt.isOdd())&&(Vt.iadd(zt),qt.isub(tn)),Vt.iushrn(1),qt.iushrn(1);for(var Nn=0,wr=1;!(Ut.words[0]&wr)&&Nn<26;++Nn,wr<<=1);if(Nn>0)for(Ut.iushrn(Nn);Nn-- >0;)(fn.isOdd()||dn.isOdd())&&(fn.iadd(zt),dn.isub(tn)),fn.iushrn(1),dn.iushrn(1);Gt.cmp(Ut)>=0?(Gt.isub(Ut),Vt.isub(fn),qt.isub(dn)):(Ut.isub(Gt),fn.isub(Vt),dn.isub(qt))}return{a:fn,b:dn,gcd:Ut.iushln(Dt)}},ht.prototype._invmp=function(It){ct(It.negative===0),ct(!It.isZero());var Gt=this,Ut=It.clone();Gt.negative!==0?Gt=Gt.umod(It):Gt=Gt.clone();for(var Vt=new ht(1),qt=new ht(0),fn=Ut.clone();Gt.cmpn(1)>0&&Ut.cmpn(1)>0;){for(var dn=0,Dt=1;!(Gt.words[0]&Dt)&&dn<26;++dn,Dt<<=1);if(dn>0)for(Gt.iushrn(dn);dn-- >0;)Vt.isOdd()&&Vt.iadd(fn),Vt.iushrn(1);for(var zt=0,tn=1;!(Ut.words[0]&tn)&&zt<26;++zt,tn<<=1);if(zt>0)for(Ut.iushrn(zt);zt-- >0;)qt.isOdd()&&qt.iadd(fn),qt.iushrn(1);Gt.cmp(Ut)>=0?(Gt.isub(Ut),Vt.isub(qt)):(Ut.isub(Gt),qt.isub(Vt))}var An;return Gt.cmpn(1)===0?An=Vt:An=qt,An.cmpn(0)<0&&An.iadd(It),An},ht.prototype.gcd=function(It){if(this.isZero())return It.abs();if(It.isZero())return this.abs();var Gt=this.clone(),Ut=It.clone();Gt.negative=0,Ut.negative=0;for(var Vt=0;Gt.isEven()&&Ut.isEven();Vt++)Gt.iushrn(1),Ut.iushrn(1);do{for(;Gt.isEven();)Gt.iushrn(1);for(;Ut.isEven();)Ut.iushrn(1);var qt=Gt.cmp(Ut);if(qt<0){var fn=Gt;Gt=Ut,Ut=fn}else if(qt===0||Ut.cmpn(1)===0)break;Gt.isub(Ut)}while(!0);return Ut.iushln(Vt)},ht.prototype.invm=function(It){return this.egcd(It).a.umod(It)},ht.prototype.isEven=function(){return(this.words[0]&1)===0},ht.prototype.isOdd=function(){return(this.words[0]&1)===1},ht.prototype.andln=function(It){return this.words[0]&It},ht.prototype.bincn=function(It){ct(typeof It=="number");var Gt=It%26,Ut=(It-Gt)/26,Vt=1<>>26,dn&=67108863,this.words[fn]=dn}return qt!==0&&(this.words[fn]=qt,this.length++),this},ht.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ht.prototype.cmpn=function(It){var Gt=It<0;if(this.negative!==0&&!Gt)return-1;if(this.negative===0&&Gt)return 1;this._strip();var Ut;if(this.length>1)Ut=1;else{Gt&&(It=-It),ct(It<=67108863,"Number is too big");var Vt=this.words[0]|0;Ut=Vt===It?0:VtIt.length)return 1;if(this.length=0;Ut--){var Vt=this.words[Ut]|0,qt=It.words[Ut]|0;if(Vt!==qt){Vtqt&&(Gt=1);break}}return Gt},ht.prototype.gtn=function(It){return this.cmpn(It)===1},ht.prototype.gt=function(It){return this.cmp(It)===1},ht.prototype.gten=function(It){return this.cmpn(It)>=0},ht.prototype.gte=function(It){return this.cmp(It)>=0},ht.prototype.ltn=function(It){return this.cmpn(It)===-1},ht.prototype.lt=function(It){return this.cmp(It)===-1},ht.prototype.lten=function(It){return this.cmpn(It)<=0},ht.prototype.lte=function(It){return this.cmp(It)<=0},ht.prototype.eqn=function(It){return this.cmpn(It)===0},ht.prototype.eq=function(It){return this.cmp(It)===0},ht.red=function(It){return new Yt(It)},ht.prototype.toRed=function(It){return ct(!this.red,"Already a number in reduction context"),ct(this.negative===0,"red works only with positives"),It.convertTo(this)._forceRed(It)},ht.prototype.fromRed=function(){return ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ht.prototype._forceRed=function(It){return this.red=It,this},ht.prototype.forceRed=function(It){return ct(!this.red,"Already a number in reduction context"),this._forceRed(It)},ht.prototype.redAdd=function(It){return ct(this.red,"redAdd works only with red numbers"),this.red.add(this,It)},ht.prototype.redIAdd=function(It){return ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,It)},ht.prototype.redSub=function(It){return ct(this.red,"redSub works only with red numbers"),this.red.sub(this,It)},ht.prototype.redISub=function(It){return ct(this.red,"redISub works only with red numbers"),this.red.isub(this,It)},ht.prototype.redShl=function(It){return ct(this.red,"redShl works only with red numbers"),this.red.shl(this,It)},ht.prototype.redMul=function(It){return ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,It),this.red.mul(this,It)},ht.prototype.redIMul=function(It){return ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,It),this.red.imul(this,It)},ht.prototype.redSqr=function(){return ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ht.prototype.redISqr=function(){return ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ht.prototype.redSqrt=function(){return ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ht.prototype.redInvm=function(){return ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ht.prototype.redNeg=function(){return ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ht.prototype.redPow=function(It){return ct(this.red&&!It.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,It)};var Mt={k256:null,p224:null,p192:null,p25519:null};function jt(St,It){this.name=St,this.p=new ht(It,16),this.n=this.p.bitLength(),this.k=new ht(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var It=new ht(null);return It.words=new Array(Math.ceil(this.n/13)),It},jt.prototype.ireduce=function(It){var Gt=It,Ut;do this.split(Gt,this.tmp),Gt=this.imulK(Gt),Gt=Gt.iadd(this.tmp),Ut=Gt.bitLength();while(Ut>this.n);var Vt=Ut0?Gt.isub(this.p):Gt.strip!==void 0?Gt.strip():Gt._strip(),Gt},jt.prototype.split=function(It,Gt){It.iushrn(this.n,0,Gt)},jt.prototype.imulK=function(It){return It.imul(this.k)};function Ht(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}lt(Ht,jt),Ht.prototype.split=function(It,Gt){for(var Ut=4194303,Vt=Math.min(It.length,9),qt=0;qt>>22,fn=dn}fn>>>=22,It.words[qt-10]=fn,fn===0&&It.length>10?It.length-=10:It.length-=9},Ht.prototype.imulK=function(It){It.words[It.length]=0,It.words[It.length+1]=0,It.length+=2;for(var Gt=0,Ut=0;Ut>>=26,It.words[Ut]=qt,Gt=Vt}return Gt!==0&&(It.words[It.length++]=Gt),It},ht._prime=function(It){if(Mt[It])return Mt[It];var Gt;if(It==="k256")Gt=new Ht;else if(It==="p224")Gt=new an;else if(It==="p192")Gt=new yt;else if(It==="p25519")Gt=new $t;else throw new Error("Unknown prime "+It);return Mt[It]=Gt,Gt};function Yt(St){if(typeof St=="string"){var It=ht._prime(St);this.m=It.p,this.prime=It}else ct(St.gtn(1),"modulus must be greater than 1"),this.m=St,this.prime=null}Yt.prototype._verify1=function(It){ct(It.negative===0,"red works only with positives"),ct(It.red,"red works only with red numbers")},Yt.prototype._verify2=function(It,Gt){ct((It.negative|Gt.negative)===0,"red works only with positives"),ct(It.red&&It.red===Gt.red,"red works only with red numbers")},Yt.prototype.imod=function(It){return this.prime?this.prime.ireduce(It)._forceRed(this):(Jt(It,It.umod(this.m)._forceRed(this)),It)},Yt.prototype.neg=function(It){return It.isZero()?It.clone():this.m.sub(It)._forceRed(this)},Yt.prototype.add=function(It,Gt){this._verify2(It,Gt);var Ut=It.add(Gt);return Ut.cmp(this.m)>=0&&Ut.isub(this.m),Ut._forceRed(this)},Yt.prototype.iadd=function(It,Gt){this._verify2(It,Gt);var Ut=It.iadd(Gt);return Ut.cmp(this.m)>=0&&Ut.isub(this.m),Ut},Yt.prototype.sub=function(It,Gt){this._verify2(It,Gt);var Ut=It.sub(Gt);return Ut.cmpn(0)<0&&Ut.iadd(this.m),Ut._forceRed(this)},Yt.prototype.isub=function(It,Gt){this._verify2(It,Gt);var Ut=It.isub(Gt);return Ut.cmpn(0)<0&&Ut.iadd(this.m),Ut},Yt.prototype.shl=function(It,Gt){return this._verify1(It),this.imod(It.ushln(Gt))},Yt.prototype.imul=function(It,Gt){return this._verify2(It,Gt),this.imod(It.imul(Gt))},Yt.prototype.mul=function(It,Gt){return this._verify2(It,Gt),this.imod(It.mul(Gt))},Yt.prototype.isqr=function(It){return this.imul(It,It.clone())},Yt.prototype.sqr=function(It){return this.mul(It,It)},Yt.prototype.sqrt=function(It){if(It.isZero())return It.clone();var Gt=this.m.andln(3);if(ct(Gt%2===1),Gt===3){var Ut=this.m.add(new ht(1)).iushrn(2);return this.pow(It,Ut)}for(var Vt=this.m.subn(1),qt=0;!Vt.isZero()&&Vt.andln(1)===0;)qt++,Vt.iushrn(1);ct(!Vt.isZero());var fn=new ht(1).toRed(this),dn=fn.redNeg(),Dt=this.m.subn(1).iushrn(1),zt=this.m.bitLength();for(zt=new ht(2*zt*zt).toRed(this);this.pow(zt,Dt).cmp(dn)!==0;)zt.redIAdd(dn);for(var tn=this.pow(zt,Vt),An=this.pow(It,Vt.addn(1).iushrn(1)),gn=this.pow(It,Vt),Nn=qt;gn.cmp(fn)!==0;){for(var wr=gn,nr=0;wr.cmp(fn)!==0;nr++)wr=wr.redSqr();ct(nr=0;qt--){for(var tn=Gt.words[qt],An=zt-1;An>=0;An--){var gn=tn>>An&1;if(fn!==Vt[0]&&(fn=this.sqr(fn)),gn===0&&dn===0){Dt=0;continue}dn<<=1,dn|=gn,Dt++,!(Dt!==Ut&&(qt!==0||An!==0))&&(fn=this.mul(fn,Vt[dn]),Dt=0,dn=0)}zt=26}return fn},Yt.prototype.convertTo=function(It){var Gt=It.umod(this.m);return Gt===It?Gt.clone():Gt},Yt.prototype.convertFrom=function(It){var Gt=It.clone();return Gt.red=null,Gt},ht.mont=function(It){return new Kt(It)};function Kt(St){Yt.call(this,St),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ht(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)}lt(Kt,Yt),Kt.prototype.convertTo=function(It){return this.imod(It.ushln(this.shift))},Kt.prototype.convertFrom=function(It){var Gt=this.imod(It.mul(this.rinv));return Gt.red=null,Gt},Kt.prototype.imul=function(It,Gt){if(It.isZero()||Gt.isZero())return It.words[0]=0,It.length=1,It;var Ut=It.imul(Gt),Vt=Ut.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),qt=Ut.isub(Vt).iushrn(this.shift),fn=qt;return qt.cmp(this.m)>=0?fn=qt.isub(this.m):qt.cmpn(0)<0&&(fn=qt.iadd(this.m)),fn._forceRed(this)},Kt.prototype.mul=function(It,Gt){if(It.isZero()||Gt.isZero())return new ht(0)._forceRed(this);var Ut=It.mul(Gt),Vt=Ut.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),qt=Ut.isub(Vt).iushrn(this.shift),fn=qt;return qt.cmp(this.m)>=0?fn=qt.isub(this.m):qt.cmpn(0)<0&&(fn=qt.iadd(this.m)),fn._forceRed(this)},Kt.prototype.invm=function(It){var Gt=this.imod(It._invmp(this.m).mul(this.r2));return Gt._forceRed(this)}})(d,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,__importDefault$D=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(decimal,"__esModule",{value:!0});decimal.Decimal=void 0;const bn_js_1$2=__importDefault$D(bnExports$1),maxFractionalDigits=100;class Decimal{static fromUserInput(b,dt){Decimal.verifyFractionalDigits(dt);const ct=b.match(/[^0-9.]/);if(ct)throw new Error(`Invalid character at position ${ct.index+1}`);let lt,ht;if(b==="")lt="0",ht="";else if(b.search(/\./)===-1)lt=b,ht="";else{const vt=b.split(".");switch(vt.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!vt[1])throw new Error("Fractional part missing");lt=vt[0],ht=vt[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(ht.length>dt)throw new Error("Got more fractional digits than supported");const mt=`${lt}${ht.padEnd(dt,"0")}`;return new Decimal(mt,dt)}static fromAtomics(b,dt){return Decimal.verifyFractionalDigits(dt),new Decimal(b,dt)}static zero(b){return Decimal.verifyFractionalDigits(b),new Decimal("0",b)}static one(b){return Decimal.verifyFractionalDigits(b),new Decimal("1"+"0".repeat(b),b)}static verifyFractionalDigits(b){if(!Number.isInteger(b))throw new Error("Fractional digits is not an integer");if(b<0)throw new Error("Fractional digits must not be negative");if(b>maxFractionalDigits)throw new Error(`Fractional digits must not exceed ${maxFractionalDigits}`)}static compare(b,dt){if(b.fractionalDigits!==dt.fractionalDigits)throw new Error("Fractional digits do not match");return b.data.atomics.cmp(new bn_js_1$2.default(dt.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}constructor(b,dt){if(!b.match(/^[0-9]+$/))throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new bn_js_1$2.default(b),fractionalDigits:dt}}clone(){return new Decimal(this.atomics,this.fractionalDigits)}floor(){const b=new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)),dt=this.data.atomics.div(b);return this.data.atomics.mod(b).isZero()?this.clone():Decimal.fromAtomics(dt.mul(b).toString(),this.fractionalDigits)}ceil(){const b=new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)),dt=this.data.atomics.div(b);return this.data.atomics.mod(b).isZero()?this.clone():Decimal.fromAtomics(dt.addn(1).mul(b).toString(),this.fractionalDigits)}toString(){const b=new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)),dt=this.data.atomics.div(b),ct=this.data.atomics.mod(b);if(ct.isZero())return dt.toString();{const ht=ct.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${dt.toString()}.${ht}`}}toFloatApproximation(){const b=Number(this.toString());if(Number.isNaN(b))throw new Error("Conversion to number failed");return b}plus(b){if(this.fractionalDigits!==b.fractionalDigits)throw new Error("Fractional digits do not match");const dt=this.data.atomics.add(new bn_js_1$2.default(b.atomics));return new Decimal(dt.toString(),this.fractionalDigits)}minus(b){if(this.fractionalDigits!==b.fractionalDigits)throw new Error("Fractional digits do not match");const dt=this.data.atomics.sub(new bn_js_1$2.default(b.atomics));if(dt.ltn(0))throw new Error("Difference must not be negative");return new Decimal(dt.toString(),this.fractionalDigits)}multiply(b){const dt=this.data.atomics.mul(new bn_js_1$2.default(b.toString()));return new Decimal(dt.toString(),this.fractionalDigits)}equals(b){return Decimal.compare(this,b)===0}isLessThan(b){return Decimal.compare(this,b)<0}isLessThanOrEqual(b){return Decimal.compare(this,b)<=0}isGreaterThan(b){return Decimal.compare(this,b)>0}isGreaterThanOrEqual(b){return Decimal.compare(this,b)>=0}}decimal.Decimal=Decimal;var integers={},__importDefault$C=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(integers,"__esModule",{value:!0});integers.Uint64=integers.Uint53=integers.Int53=integers.Uint32=void 0;const bn_js_1$1=__importDefault$C(bnExports$1),uint64MaxValue=new bn_js_1$1.default("18446744073709551615",10,"be");class Uint32{static fromBigEndianBytes(b){return Uint32.fromBytes(b)}static fromBytes(b,dt="be"){if(b.length!==4)throw new Error("Invalid input length. Expected 4 bytes.");for(let lt=0;lt255||b[lt]<0)throw new Error("Invalid value in byte. Found: "+b[lt]);const ct=dt==="be"?b:Array.from(b).reverse();return new Uint32(ct[0]*2**24+ct[1]*2**16+ct[2]*2**8+ct[3])}static fromString(b){if(!b.match(/^[0-9]+$/))throw new Error("Invalid string format");return new Uint32(Number.parseInt(b,10))}constructor(b){if(Number.isNaN(b))throw new Error("Input is not a number");if(!Number.isInteger(b))throw new Error("Input is not an integer");if(b<0||b>4294967295)throw new Error("Input not in uint32 range: "+b.toString());this.data=b}toBytesBigEndian(){return new Uint8Array([Math.floor(this.data/2**24)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**0)&255])}toBytesLittleEndian(){return new Uint8Array([Math.floor(this.data/2**0)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**24)&255])}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}integers.Uint32=Uint32;class Int53{static fromString(b){if(!b.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new Int53(Number.parseInt(b,10))}constructor(b){if(Number.isNaN(b))throw new Error("Input is not a number");if(!Number.isInteger(b))throw new Error("Input is not an integer");if(bNumber.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+b.toString());this.data=b}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}integers.Int53=Int53;class Uint53{static fromString(b){const dt=Int53.fromString(b);return new Uint53(dt.toNumber())}constructor(b){const dt=new Int53(b);if(dt.toNumber()<0)throw new Error("Input is negative");this.data=dt}toNumber(){return this.data.toNumber()}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}integers.Uint53=Uint53;class Uint64{static fromBytesBigEndian(b){return Uint64.fromBytes(b)}static fromBytes(b,dt="be"){if(b.length!==8)throw new Error("Invalid input length. Expected 8 bytes.");for(let lt=0;lt255||b[lt]<0)throw new Error("Invalid value in byte. Found: "+b[lt]);const ct=dt==="be"?Array.from(b):Array.from(b).reverse();return new Uint64(new bn_js_1$1.default(ct))}static fromString(b){if(!b.match(/^[0-9]+$/))throw new Error("Invalid string format");return new Uint64(new bn_js_1$1.default(b,10,"be"))}static fromNumber(b){if(Number.isNaN(b))throw new Error("Input is not a number");if(!Number.isInteger(b))throw new Error("Input is not an integer");let dt;try{dt=new bn_js_1$1.default(b)}catch{throw new Error("Input is not a safe integer")}return new Uint64(dt)}constructor(b){if(b.isNeg())throw new Error("Input is negative");if(b.gt(uint64MaxValue))throw new Error("Input exceeds uint64 range");this.data=b}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toBigInt(){return BigInt(this.toString())}toNumber(){return this.data.toNumber()}}integers.Uint64=Uint64;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.Uint64=d.Uint53=d.Uint32=d.Int53=d.Decimal=void 0;var b=decimal;Object.defineProperty(d,"Decimal",{enumerable:!0,get:function(){return b.Decimal}});var dt=integers;Object.defineProperty(d,"Int53",{enumerable:!0,get:function(){return dt.Int53}}),Object.defineProperty(d,"Uint32",{enumerable:!0,get:function(){return dt.Uint32}}),Object.defineProperty(d,"Uint53",{enumerable:!0,get:function(){return dt.Uint53}}),Object.defineProperty(d,"Uint64",{enumerable:!0,get:function(){return dt.Uint64}})})(build$f);var build$e={},accounts={},build$d={},coins$2={};Object.defineProperty(coins$2,"__esModule",{value:!0});coins$2.parseCoins=void 0;function parseCoins$1(d){return d.replace(/\s/g,"").split(",").filter(Boolean).map(b=>{const dt=b.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!dt)throw new Error("Got an invalid coin string");return{amount:dt[1].replace(/^0+/,"")||"0",denom:dt[2]}})}coins$2.parseCoins=parseCoins$1;var decode$1={},tx$r={},any$1={},indexMinimal$2={},minimal$5={},aspromise=asPromise;function asPromise(d,b){for(var dt=new Array(arguments.length-1),ct=0,lt=2,ht=!0;lt1&&vt.charAt(kt)==="=";)++Pt;return Math.ceil(vt.length*3)/4-Pt};for(var dt=new Array(64),ct=new Array(123),lt=0;lt<64;)ct[dt[lt]=lt<26?lt+65:lt<52?lt+71:lt<62?lt-4:lt-59|43]=lt++;b.encode=function(vt,kt,Pt){for(var Jt=null,Zt=[],Rt=0,nn=0,Qt;kt>2],Qt=(wt&3)<<4,nn=1;break;case 1:Zt[Rt++]=dt[Qt|wt>>4],Qt=(wt&15)<<2,nn=2;break;case 2:Zt[Rt++]=dt[Qt|wt>>6],Zt[Rt++]=dt[wt&63],nn=0;break}Rt>8191&&((Jt||(Jt=[])).push(String.fromCharCode.apply(String,Zt)),Rt=0)}return nn&&(Zt[Rt++]=dt[Qt],Zt[Rt++]=61,nn===1&&(Zt[Rt++]=61)),Jt?(Rt&&Jt.push(String.fromCharCode.apply(String,Zt.slice(0,Rt))),Jt.join("")):String.fromCharCode.apply(String,Zt.slice(0,Rt))};var ht="invalid encoding";b.decode=function(vt,kt,Pt){for(var Jt=Pt,Zt=0,Rt,nn=0;nn1)break;if((Qt=ct[Qt])===void 0)throw Error(ht);switch(Zt){case 0:Rt=Qt,Zt=1;break;case 1:kt[Pt++]=Rt<<2|(Qt&48)>>4,Rt=Qt,Zt=2;break;case 2:kt[Pt++]=(Rt&15)<<4|(Qt&60)>>2,Rt=Qt,Zt=3;break;case 3:kt[Pt++]=(Rt&3)<<6|Qt,Zt=0;break}}if(Zt===1)throw Error(ht);return Pt-Jt},b.test=function(vt){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(vt)}})(base64$8);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(b,dt,ct){return(this._listeners[b]||(this._listeners[b]=[])).push({fn:dt,ctx:ct||this}),this};EventEmitter.prototype.off=function(b,dt){if(b===void 0)this._listeners={};else if(dt===void 0)this._listeners[b]=[];else for(var ct=this._listeners[b],lt=0;lt0?0:2147483648,ht,mt);else if(isNaN(lt))ct(2143289344,ht,mt);else if(lt>34028234663852886e22)ct((vt<<31|2139095040)>>>0,ht,mt);else if(lt<11754943508222875e-54)ct((vt<<31|Math.round(lt/1401298464324817e-60))>>>0,ht,mt);else{var kt=Math.floor(Math.log(lt)/Math.LN2),Pt=Math.round(lt*Math.pow(2,-kt)*8388608)&8388607;ct((vt<<31|kt+127<<23|Pt)>>>0,ht,mt)}}d.writeFloatLE=b.bind(null,writeUintLE),d.writeFloatBE=b.bind(null,writeUintBE);function dt(ct,lt,ht){var mt=ct(lt,ht),vt=(mt>>31)*2+1,kt=mt>>>23&255,Pt=mt&8388607;return kt===255?Pt?NaN:vt*(1/0):kt===0?vt*1401298464324817e-60*Pt:vt*Math.pow(2,kt-150)*(Pt+8388608)}d.readFloatLE=dt.bind(null,readUintLE),d.readFloatBE=dt.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var b=new Float64Array([-0]),dt=new Uint8Array(b.buffer),ct=dt[7]===128;function lt(kt,Pt,Jt){b[0]=kt,Pt[Jt]=dt[0],Pt[Jt+1]=dt[1],Pt[Jt+2]=dt[2],Pt[Jt+3]=dt[3],Pt[Jt+4]=dt[4],Pt[Jt+5]=dt[5],Pt[Jt+6]=dt[6],Pt[Jt+7]=dt[7]}function ht(kt,Pt,Jt){b[0]=kt,Pt[Jt]=dt[7],Pt[Jt+1]=dt[6],Pt[Jt+2]=dt[5],Pt[Jt+3]=dt[4],Pt[Jt+4]=dt[3],Pt[Jt+5]=dt[2],Pt[Jt+6]=dt[1],Pt[Jt+7]=dt[0]}d.writeDoubleLE=ct?lt:ht,d.writeDoubleBE=ct?ht:lt;function mt(kt,Pt){return dt[0]=kt[Pt],dt[1]=kt[Pt+1],dt[2]=kt[Pt+2],dt[3]=kt[Pt+3],dt[4]=kt[Pt+4],dt[5]=kt[Pt+5],dt[6]=kt[Pt+6],dt[7]=kt[Pt+7],b[0]}function vt(kt,Pt){return dt[7]=kt[Pt],dt[6]=kt[Pt+1],dt[5]=kt[Pt+2],dt[4]=kt[Pt+3],dt[3]=kt[Pt+4],dt[2]=kt[Pt+5],dt[1]=kt[Pt+6],dt[0]=kt[Pt+7],b[0]}d.readDoubleLE=ct?mt:vt,d.readDoubleBE=ct?vt:mt}():function(){function b(ct,lt,ht,mt,vt,kt){var Pt=mt<0?1:0;if(Pt&&(mt=-mt),mt===0)ct(0,vt,kt+lt),ct(1/mt>0?0:2147483648,vt,kt+ht);else if(isNaN(mt))ct(0,vt,kt+lt),ct(2146959360,vt,kt+ht);else if(mt>17976931348623157e292)ct(0,vt,kt+lt),ct((Pt<<31|2146435072)>>>0,vt,kt+ht);else{var Jt;if(mt<22250738585072014e-324)Jt=mt/5e-324,ct(Jt>>>0,vt,kt+lt),ct((Pt<<31|Jt/4294967296)>>>0,vt,kt+ht);else{var Zt=Math.floor(Math.log(mt)/Math.LN2);Zt===1024&&(Zt=1023),Jt=mt*Math.pow(2,-Zt),ct(Jt*4503599627370496>>>0,vt,kt+lt),ct((Pt<<31|Zt+1023<<20|Jt*1048576&1048575)>>>0,vt,kt+ht)}}}d.writeDoubleLE=b.bind(null,writeUintLE,0,4),d.writeDoubleBE=b.bind(null,writeUintBE,4,0);function dt(ct,lt,ht,mt,vt){var kt=ct(mt,vt+lt),Pt=ct(mt,vt+ht),Jt=(Pt>>31)*2+1,Zt=Pt>>>20&2047,Rt=4294967296*(Pt&1048575)+kt;return Zt===2047?Rt?NaN:Jt*(1/0):Zt===0?Jt*5e-324*Rt:Jt*Math.pow(2,Zt-1075)*(Rt+4503599627370496)}d.readDoubleLE=dt.bind(null,readUintLE,0,4),d.readDoubleBE=dt.bind(null,readUintBE,4,0)}(),d}function writeUintLE(d,b,dt){b[dt]=d&255,b[dt+1]=d>>>8&255,b[dt+2]=d>>>16&255,b[dt+3]=d>>>24}function writeUintBE(d,b,dt){b[dt]=d>>>24,b[dt+1]=d>>>16&255,b[dt+2]=d>>>8&255,b[dt+3]=d&255}function readUintLE(d,b){return(d[b]|d[b+1]<<8|d[b+2]<<16|d[b+3]<<24)>>>0}function readUintBE(d,b){return(d[b]<<24|d[b+1]<<16|d[b+2]<<8|d[b+3])>>>0}var inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(d){}return null}var utf8$b={};(function(d){var b=d;b.length=function(ct){for(var lt=0,ht=0,mt=0;mt191&&Jt<224?kt[Pt++]=(Jt&31)<<6|ct[lt++]&63:Jt>239&&Jt<365?(Jt=((Jt&7)<<18|(ct[lt++]&63)<<12|(ct[lt++]&63)<<6|ct[lt++]&63)-65536,kt[Pt++]=55296+(Jt>>10),kt[Pt++]=56320+(Jt&1023)):kt[Pt++]=(Jt&15)<<12|(ct[lt++]&63)<<6|ct[lt++]&63,Pt>8191&&((vt||(vt=[])).push(String.fromCharCode.apply(String,kt)),Pt=0);return vt?(Pt&&vt.push(String.fromCharCode.apply(String,kt.slice(0,Pt))),vt.join("")):String.fromCharCode.apply(String,kt.slice(0,Pt))},b.write=function(ct,lt,ht){for(var mt=ht,vt,kt,Pt=0;Pt>6|192,lt[ht++]=vt&63|128):(vt&64512)===55296&&((kt=ct.charCodeAt(Pt+1))&64512)===56320?(vt=65536+((vt&1023)<<10)+(kt&1023),++Pt,lt[ht++]=vt>>18|240,lt[ht++]=vt>>12&63|128,lt[ht++]=vt>>6&63|128,lt[ht++]=vt&63|128):(lt[ht++]=vt>>12|224,lt[ht++]=vt>>6&63|128,lt[ht++]=vt&63|128);return ht-mt}})(utf8$b);var pool_1=pool;function pool(d,b,dt){var ct=dt||8192,lt=ct>>>1,ht=null,mt=ct;return function(kt){if(kt<1||kt>lt)return d(kt);mt+kt>ct&&(ht=d(ct),mt=0);var Pt=b.call(ht,mt,mt+=kt);return mt&7&&(mt=(mt|7)+1),Pt}}var longbits$2,hasRequiredLongbits$2;function requireLongbits$2(){if(hasRequiredLongbits$2)return longbits$2;hasRequiredLongbits$2=1,longbits$2=b;var d=requireMinimal$2();function b(ht,mt){this.lo=ht>>>0,this.hi=mt>>>0}var dt=b.zero=new b(0,0);dt.toNumber=function(){return 0},dt.zzEncode=dt.zzDecode=function(){return this},dt.length=function(){return 1};var ct=b.zeroHash="\0\0\0\0\0\0\0\0";b.fromNumber=function(mt){if(mt===0)return dt;var vt=mt<0;vt&&(mt=-mt);var kt=mt>>>0,Pt=(mt-kt)/4294967296>>>0;return vt&&(Pt=~Pt>>>0,kt=~kt>>>0,++kt>4294967295&&(kt=0,++Pt>4294967295&&(Pt=0))),new b(kt,Pt)},b.from=function(mt){if(typeof mt=="number")return b.fromNumber(mt);if(d.isString(mt))if(d.Long)mt=d.Long.fromString(mt);else return b.fromNumber(parseInt(mt,10));return mt.low||mt.high?new b(mt.low>>>0,mt.high>>>0):dt},b.prototype.toNumber=function(mt){if(!mt&&this.hi>>>31){var vt=~this.lo+1>>>0,kt=~this.hi>>>0;return vt||(kt=kt+1>>>0),-(vt+kt*4294967296)}return this.lo+this.hi*4294967296},b.prototype.toLong=function(mt){return d.Long?new d.Long(this.lo|0,this.hi|0,!!mt):{low:this.lo|0,high:this.hi|0,unsigned:!!mt}};var lt=String.prototype.charCodeAt;return b.fromHash=function(mt){return mt===ct?dt:new b((lt.call(mt,0)|lt.call(mt,1)<<8|lt.call(mt,2)<<16|lt.call(mt,3)<<24)>>>0,(lt.call(mt,4)|lt.call(mt,5)<<8|lt.call(mt,6)<<16|lt.call(mt,7)<<24)>>>0)},b.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},b.prototype.zzEncode=function(){var mt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^mt)>>>0,this.lo=(this.lo<<1^mt)>>>0,this},b.prototype.zzDecode=function(){var mt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^mt)>>>0,this.hi=(this.hi>>>1^mt)>>>0,this},b.prototype.length=function(){var mt=this.lo,vt=(this.lo>>>28|this.hi<<4)>>>0,kt=this.hi>>>24;return kt===0?vt===0?mt<16384?mt<128?1:2:mt<2097152?3:4:vt<16384?vt<128?5:6:vt<2097152?7:8:kt<128?9:10},longbits$2}var hasRequiredMinimal$2;function requireMinimal$2(){return hasRequiredMinimal$2||(hasRequiredMinimal$2=1,function(d){var b=d;b.asPromise=aspromise,b.base64=base64$8,b.EventEmitter=eventemitter,b.float=float,b.inquire=inquire_1,b.utf8=utf8$b,b.pool=pool_1,b.LongBits=requireLongbits$2(),b.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),b.global=b.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,b.emptyArray=Object.freeze?Object.freeze([]):[],b.emptyObject=Object.freeze?Object.freeze({}):{},b.isInteger=Number.isInteger||function(ht){return typeof ht=="number"&&isFinite(ht)&&Math.floor(ht)===ht},b.isString=function(ht){return typeof ht=="string"||ht instanceof String},b.isObject=function(ht){return ht&&typeof ht=="object"},b.isset=b.isSet=function(ht,mt){var vt=ht[mt];return vt!=null&&ht.hasOwnProperty(mt)?typeof vt!="object"||(Array.isArray(vt)?vt.length:Object.keys(vt).length)>0:!1},b.Buffer=function(){try{var lt=b.inquire("buffer").Buffer;return lt.prototype.utf8Write?lt:null}catch{return null}}(),b._Buffer_from=null,b._Buffer_allocUnsafe=null,b.newBuffer=function(ht){return typeof ht=="number"?b.Buffer?b._Buffer_allocUnsafe(ht):new b.Array(ht):b.Buffer?b._Buffer_from(ht):typeof Uint8Array>"u"?ht:new Uint8Array(ht)},b.Array=typeof Uint8Array<"u"?Uint8Array:Array,b.Long=b.global.dcodeIO&&b.global.dcodeIO.Long||b.global.Long||b.inquire("long"),b.key2Re=/^true|false|0|1$/,b.key32Re=/^-?(?:0|[1-9][0-9]*)$/,b.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,b.longToHash=function(ht){return ht?b.LongBits.from(ht).toHash():b.LongBits.zeroHash},b.longFromHash=function(ht,mt){var vt=b.LongBits.fromHash(ht);return b.Long?b.Long.fromBits(vt.lo,vt.hi,mt):vt.toNumber(!!mt)};function dt(lt,ht,mt){for(var vt=Object.keys(ht),kt=0;kt-1;--Pt)if(mt[kt[Pt]]===1&&this[kt[Pt]]!==void 0&&this[kt[Pt]]!==null)return kt[Pt]}},b.oneOfSetter=function(ht){return function(mt){for(var vt=0;vt127;)b[dt++]=d&127|128,d>>>=7;b[dt]=d}function VarintOp$2(d,b){this.len=d,this.next=void 0,this.val=b}VarintOp$2.prototype=Object.create(Op$2.prototype);VarintOp$2.prototype.fn=writeVarint32$2;Writer$5.prototype.uint32=function d(b){return this.len+=(this.tail=this.tail.next=new VarintOp$2((b=b>>>0)<128?1:b<16384?2:b<2097152?3:b<268435456?4:5,b)).len,this};Writer$5.prototype.int32=function d(b){return b<0?this._push(writeVarint64$2,10,LongBits$5.fromNumber(b)):this.uint32(b)};Writer$5.prototype.sint32=function d(b){return this.uint32((b<<1^b>>31)>>>0)};function writeVarint64$2(d,b,dt){for(;d.hi;)b[dt++]=d.lo&127|128,d.lo=(d.lo>>>7|d.hi<<25)>>>0,d.hi>>>=7;for(;d.lo>127;)b[dt++]=d.lo&127|128,d.lo=d.lo>>>7;b[dt++]=d.lo}Writer$5.prototype.uint64=function d(b){var dt=LongBits$5.from(b);return this._push(writeVarint64$2,dt.length(),dt)};Writer$5.prototype.int64=Writer$5.prototype.uint64;Writer$5.prototype.sint64=function d(b){var dt=LongBits$5.from(b).zzEncode();return this._push(writeVarint64$2,dt.length(),dt)};Writer$5.prototype.bool=function d(b){return this._push(writeByte$2,1,b?1:0)};function writeFixed32$2(d,b,dt){b[dt]=d&255,b[dt+1]=d>>>8&255,b[dt+2]=d>>>16&255,b[dt+3]=d>>>24}Writer$5.prototype.fixed32=function d(b){return this._push(writeFixed32$2,4,b>>>0)};Writer$5.prototype.sfixed32=Writer$5.prototype.fixed32;Writer$5.prototype.fixed64=function d(b){var dt=LongBits$5.from(b);return this._push(writeFixed32$2,4,dt.lo)._push(writeFixed32$2,4,dt.hi)};Writer$5.prototype.sfixed64=Writer$5.prototype.fixed64;Writer$5.prototype.float=function d(b){return this._push(util$f.float.writeFloatLE,4,b)};Writer$5.prototype.double=function d(b){return this._push(util$f.float.writeDoubleLE,8,b)};var writeBytes$2=util$f.Array.prototype.set?function d(b,dt,ct){dt.set(b,ct)}:function d(b,dt,ct){for(var lt=0;lt>>0;if(!dt)return this._push(writeByte$2,1,0);if(util$f.isString(b)){var ct=Writer$5.alloc(dt=base64$7.length(b));base64$7.decode(b,ct,0),b=ct}return this.uint32(dt)._push(writeBytes$2,dt,b)};Writer$5.prototype.string=function d(b){var dt=utf8$a.length(b);return dt?this.uint32(dt)._push(utf8$a.write,dt,b):this._push(writeByte$2,1,0)};Writer$5.prototype.fork=function d(){return this.states=new State$2(this),this.head=this.tail=new Op$2(noop$5,0,0),this.len=0,this};Writer$5.prototype.reset=function d(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op$2(noop$5,0,0),this.len=0),this};Writer$5.prototype.ldelim=function d(){var b=this.head,dt=this.tail,ct=this.len;return this.reset().uint32(ct),ct&&(this.tail.next=b.next,this.tail=dt,this.len+=ct),this};Writer$5.prototype.finish=function d(){for(var b=this.head.next,dt=this.constructor.alloc(this.len),ct=0;b;)b.fn(b.val,dt,ct),ct+=b.len,b=b.next;return dt};Writer$5._configure=function(d){BufferWriter$5=d,Writer$5.create=create$5(),BufferWriter$5._configure()};var writer_buffer$2=BufferWriter$4,Writer$4=writer$2;(BufferWriter$4.prototype=Object.create(Writer$4.prototype)).constructor=BufferWriter$4;var util$e=requireMinimal$2();function BufferWriter$4(){Writer$4.call(this)}BufferWriter$4._configure=function(){BufferWriter$4.alloc=util$e._Buffer_allocUnsafe,BufferWriter$4.writeBytesBuffer=util$e.Buffer&&util$e.Buffer.prototype instanceof Uint8Array&&util$e.Buffer.prototype.set.name==="set"?function(b,dt,ct){dt.set(b,ct)}:function(b,dt,ct){if(b.copy)b.copy(dt,ct,0,b.length);else for(var lt=0;lt>>0;return this.uint32(dt),dt&&this._push(BufferWriter$4.writeBytesBuffer,dt,b),this};function writeStringBuffer$2(d,b,dt){d.length<40?util$e.utf8.write(d,b,dt):b.utf8Write?b.utf8Write(d,dt):b.write(d,dt)}BufferWriter$4.prototype.string=function d(b){var dt=util$e.Buffer.byteLength(b);return this.uint32(dt),dt&&this._push(writeStringBuffer$2,dt,b),this};BufferWriter$4._configure();var reader$3=Reader$5,util$d=requireMinimal$2(),BufferReader$5,LongBits$4=util$d.LongBits,utf8$9=util$d.utf8;function indexOutOfRange$2(d,b){return RangeError("index out of range: "+d.pos+" + "+(b||1)+" > "+d.len)}function Reader$5(d){this.buf=d,this.pos=0,this.len=d.length}var create_array$2=typeof Uint8Array<"u"?function d(b){if(b instanceof Uint8Array||Array.isArray(b))return new Reader$5(b);throw Error("illegal buffer")}:function d(b){if(Array.isArray(b))return new Reader$5(b);throw Error("illegal buffer")},create$4=function d(){return util$d.Buffer?function(dt){return(Reader$5.create=function(lt){return util$d.Buffer.isBuffer(lt)?new BufferReader$5(lt):create_array$2(lt)})(dt)}:create_array$2};Reader$5.create=create$4();Reader$5.prototype._slice=util$d.Array.prototype.subarray||util$d.Array.prototype.slice;Reader$5.prototype.uint32=function d(){var b=4294967295;return function(){if(b=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(b=(b|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return b;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange$2(this,10);return b}}();Reader$5.prototype.int32=function d(){return this.uint32()|0};Reader$5.prototype.sint32=function d(){var b=this.uint32();return b>>>1^-(b&1)|0};function readLongVarint$2(){var d=new LongBits$4(0,0),b=0;if(this.len-this.pos>4){for(;b<4;++b)if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d;if(d.lo=(d.lo|(this.buf[this.pos]&127)<<28)>>>0,d.hi=(d.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return d;b=0}else{for(;b<3;++b){if(this.pos>=this.len)throw indexOutOfRange$2(this);if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}return d.lo=(d.lo|(this.buf[this.pos++]&127)<>>0,d}if(this.len-this.pos>4){for(;b<5;++b)if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}else for(;b<5;++b){if(this.pos>=this.len)throw indexOutOfRange$2(this);if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}throw Error("invalid varint encoding")}Reader$5.prototype.bool=function d(){return this.uint32()!==0};function readFixed32_end$2(d,b){return(d[b-4]|d[b-3]<<8|d[b-2]<<16|d[b-1]<<24)>>>0}Reader$5.prototype.fixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange$2(this,4);return readFixed32_end$2(this.buf,this.pos+=4)};Reader$5.prototype.sfixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange$2(this,4);return readFixed32_end$2(this.buf,this.pos+=4)|0};function readFixed64$2(){if(this.pos+8>this.len)throw indexOutOfRange$2(this,8);return new LongBits$4(readFixed32_end$2(this.buf,this.pos+=4),readFixed32_end$2(this.buf,this.pos+=4))}Reader$5.prototype.float=function d(){if(this.pos+4>this.len)throw indexOutOfRange$2(this,4);var b=util$d.float.readFloatLE(this.buf,this.pos);return this.pos+=4,b};Reader$5.prototype.double=function d(){if(this.pos+8>this.len)throw indexOutOfRange$2(this,4);var b=util$d.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,b};Reader$5.prototype.bytes=function d(){var b=this.uint32(),dt=this.pos,ct=this.pos+b;if(ct>this.len)throw indexOutOfRange$2(this,b);return this.pos+=b,Array.isArray(this.buf)?this.buf.slice(dt,ct):dt===ct?new this.buf.constructor(0):this._slice.call(this.buf,dt,ct)};Reader$5.prototype.string=function d(){var b=this.bytes();return utf8$9.read(b,0,b.length)};Reader$5.prototype.skip=function d(b){if(typeof b=="number"){if(this.pos+b>this.len)throw indexOutOfRange$2(this,b);this.pos+=b}else do if(this.pos>=this.len)throw indexOutOfRange$2(this);while(this.buf[this.pos++]&128);return this};Reader$5.prototype.skipType=function(d){switch(d){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(d=this.uint32()&7)!==4;)this.skipType(d);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+d+" at offset "+this.pos)}return this};Reader$5._configure=function(d){BufferReader$5=d,Reader$5.create=create$4(),BufferReader$5._configure();var b=util$d.Long?"toLong":"toNumber";util$d.merge(Reader$5.prototype,{int64:function(){return readLongVarint$2.call(this)[b](!1)},uint64:function(){return readLongVarint$2.call(this)[b](!0)},sint64:function(){return readLongVarint$2.call(this).zzDecode()[b](!1)},fixed64:function(){return readFixed64$2.call(this)[b](!0)},sfixed64:function(){return readFixed64$2.call(this)[b](!1)}})};var reader_buffer$2=BufferReader$4,Reader$4=reader$3;(BufferReader$4.prototype=Object.create(Reader$4.prototype)).constructor=BufferReader$4;var util$c=requireMinimal$2();function BufferReader$4(d){Reader$4.call(this,d)}BufferReader$4._configure=function(){util$c.Buffer&&(BufferReader$4.prototype._slice=util$c.Buffer.prototype.slice)};BufferReader$4.prototype.string=function d(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))};BufferReader$4._configure();var rpc$2={},service$3=Service$2,util$b=requireMinimal$2();(Service$2.prototype=Object.create(util$b.EventEmitter.prototype)).constructor=Service$2;function Service$2(d,b,dt){if(typeof d!="function")throw TypeError("rpcImpl must be a function");util$b.EventEmitter.call(this),this.rpcImpl=d,this.requestDelimited=!!b,this.responseDelimited=!!dt}Service$2.prototype.rpcCall=function d(b,dt,ct,lt,ht){if(!lt)throw TypeError("request must be specified");var mt=this;if(!ht)return util$b.asPromise(d,mt,b,dt,ct,lt);if(!mt.rpcImpl){setTimeout(function(){ht(Error("already ended"))},0);return}try{return mt.rpcImpl(b,dt[mt.requestDelimited?"encodeDelimited":"encode"](lt).finish(),function(kt,Pt){if(kt)return mt.emit("error",kt,b),ht(kt);if(Pt===null){mt.end(!0);return}if(!(Pt instanceof ct))try{Pt=ct[mt.responseDelimited?"decodeDelimited":"decode"](Pt)}catch(Jt){return mt.emit("error",Jt,b),ht(Jt)}return mt.emit("data",Pt,b),ht(null,Pt)})}catch(vt){mt.emit("error",vt,b),setTimeout(function(){ht(vt)},0);return}};Service$2.prototype.end=function d(b){return this.rpcImpl&&(b||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(d){var b=d;b.Service=service$3})(rpc$2);var roots$2={};(function(d){var b=d;b.build="minimal",b.Writer=writer$2,b.BufferWriter=writer_buffer$2,b.Reader=reader$3,b.BufferReader=reader_buffer$2,b.util=requireMinimal$2(),b.rpc=rpc$2,b.roots=roots$2,b.configure=dt;function dt(){b.util._configure(),b.Writer._configure(b.BufferWriter),b.Reader._configure(b.BufferReader)}dt()})(indexMinimal$2);var minimal$4=indexMinimal$2,helpers$1={},long=Long,wasm=null;try{wasm=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(d){}function Long(d,b,dt){this.low=d|0,this.high=b|0,this.unsigned=!!dt}Long.prototype.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:!0});function isLong(d){return(d&&d.__isLong__)===!0}Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(d,b){var dt,ct,lt;return b?(d>>>=0,(lt=0<=d&&d<256)&&(ct=UINT_CACHE[d],ct)?ct:(dt=fromBits(d,(d|0)<0?-1:0,!0),lt&&(UINT_CACHE[d]=dt),dt)):(d|=0,(lt=-128<=d&&d<128)&&(ct=INT_CACHE[d],ct)?ct:(dt=fromBits(d,d<0?-1:0,!1),lt&&(INT_CACHE[d]=dt),dt))}Long.fromInt=fromInt;function fromNumber(d,b){if(isNaN(d))return b?UZERO:ZERO;if(b){if(d<0)return UZERO;if(d>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(d<=-TWO_PWR_63_DBL)return MIN_VALUE;if(d+1>=TWO_PWR_63_DBL)return MAX_VALUE}return d<0?fromNumber(-d,b).neg():fromBits(d%TWO_PWR_32_DBL|0,d/TWO_PWR_32_DBL|0,b)}Long.fromNumber=fromNumber;function fromBits(d,b,dt){return new Long(d,b,dt)}Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(d,b,dt){if(d.length===0)throw Error("empty string");if(d==="NaN"||d==="Infinity"||d==="+Infinity"||d==="-Infinity")return ZERO;if(typeof b=="number"?(dt=b,b=!1):b=!!b,dt=dt||10,dt<2||360)throw Error("interior hyphen");if(ct===0)return fromString(d.substring(1),b,dt).neg();for(var lt=fromNumber(pow_dbl(dt,8)),ht=ZERO,mt=0;mt>>0:this.low};LongPrototype.toNumber=function d(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)};LongPrototype.toString=function d(b){if(b=b||10,b<2||36>>0,Jt=Pt.toString(b);if(mt=kt,mt.isZero())return Jt+vt;for(;Jt.length<6;)Jt="0"+Jt;vt=""+Jt+vt}};LongPrototype.getHighBits=function d(){return this.high};LongPrototype.getHighBitsUnsigned=function d(){return this.high>>>0};LongPrototype.getLowBits=function d(){return this.low};LongPrototype.getLowBitsUnsigned=function d(){return this.low>>>0};LongPrototype.getNumBitsAbs=function d(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var b=this.high!=0?this.high:this.low,dt=31;dt>0&&!(b&1<=0};LongPrototype.isOdd=function d(){return(this.low&1)===1};LongPrototype.isEven=function d(){return(this.low&1)===0};LongPrototype.equals=function d(b){return isLong(b)||(b=fromValue(b)),this.unsigned!==b.unsigned&&this.high>>>31===1&&b.high>>>31===1?!1:this.high===b.high&&this.low===b.low};LongPrototype.eq=LongPrototype.equals;LongPrototype.notEquals=function d(b){return!this.eq(b)};LongPrototype.neq=LongPrototype.notEquals;LongPrototype.ne=LongPrototype.notEquals;LongPrototype.lessThan=function d(b){return this.comp(b)<0};LongPrototype.lt=LongPrototype.lessThan;LongPrototype.lessThanOrEqual=function d(b){return this.comp(b)<=0};LongPrototype.lte=LongPrototype.lessThanOrEqual;LongPrototype.le=LongPrototype.lessThanOrEqual;LongPrototype.greaterThan=function d(b){return this.comp(b)>0};LongPrototype.gt=LongPrototype.greaterThan;LongPrototype.greaterThanOrEqual=function d(b){return this.comp(b)>=0};LongPrototype.gte=LongPrototype.greaterThanOrEqual;LongPrototype.ge=LongPrototype.greaterThanOrEqual;LongPrototype.compare=function d(b){if(isLong(b)||(b=fromValue(b)),this.eq(b))return 0;var dt=this.isNegative(),ct=b.isNegative();return dt&&!ct?-1:!dt&&ct?1:this.unsigned?b.high>>>0>this.high>>>0||b.high===this.high&&b.low>>>0>this.low>>>0?-1:1:this.sub(b).isNegative()?-1:1};LongPrototype.comp=LongPrototype.compare;LongPrototype.negate=function d(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)};LongPrototype.neg=LongPrototype.negate;LongPrototype.add=function d(b){isLong(b)||(b=fromValue(b));var dt=this.high>>>16,ct=this.high&65535,lt=this.low>>>16,ht=this.low&65535,mt=b.high>>>16,vt=b.high&65535,kt=b.low>>>16,Pt=b.low&65535,Jt=0,Zt=0,Rt=0,nn=0;return nn+=ht+Pt,Rt+=nn>>>16,nn&=65535,Rt+=lt+kt,Zt+=Rt>>>16,Rt&=65535,Zt+=ct+vt,Jt+=Zt>>>16,Zt&=65535,Jt+=dt+mt,Jt&=65535,fromBits(Rt<<16|nn,Jt<<16|Zt,this.unsigned)};LongPrototype.subtract=function d(b){return isLong(b)||(b=fromValue(b)),this.add(b.neg())};LongPrototype.sub=LongPrototype.subtract;LongPrototype.multiply=function d(b){if(this.isZero())return ZERO;if(isLong(b)||(b=fromValue(b)),wasm){var dt=wasm.mul(this.low,this.high,b.low,b.high);return fromBits(dt,wasm.get_high(),this.unsigned)}if(b.isZero())return ZERO;if(this.eq(MIN_VALUE))return b.isOdd()?MIN_VALUE:ZERO;if(b.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return b.isNegative()?this.neg().mul(b.neg()):this.neg().mul(b).neg();if(b.isNegative())return this.mul(b.neg()).neg();if(this.lt(TWO_PWR_24)&&b.lt(TWO_PWR_24))return fromNumber(this.toNumber()*b.toNumber(),this.unsigned);var ct=this.high>>>16,lt=this.high&65535,ht=this.low>>>16,mt=this.low&65535,vt=b.high>>>16,kt=b.high&65535,Pt=b.low>>>16,Jt=b.low&65535,Zt=0,Rt=0,nn=0,Qt=0;return Qt+=mt*Jt,nn+=Qt>>>16,Qt&=65535,nn+=ht*Jt,Rt+=nn>>>16,nn&=65535,nn+=mt*Pt,Rt+=nn>>>16,nn&=65535,Rt+=lt*Jt,Zt+=Rt>>>16,Rt&=65535,Rt+=ht*Pt,Zt+=Rt>>>16,Rt&=65535,Rt+=mt*kt,Zt+=Rt>>>16,Rt&=65535,Zt+=ct*Jt+lt*Pt+ht*kt+mt*vt,Zt&=65535,fromBits(nn<<16|Qt,Zt<<16|Rt,this.unsigned)};LongPrototype.mul=LongPrototype.multiply;LongPrototype.divide=function d(b){if(isLong(b)||(b=fromValue(b)),b.isZero())throw Error("division by zero");if(wasm){if(!this.unsigned&&this.high===-2147483648&&b.low===-1&&b.high===-1)return this;var dt=(this.unsigned?wasm.div_u:wasm.div_s)(this.low,this.high,b.low,b.high);return fromBits(dt,wasm.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?UZERO:ZERO;var ct,lt,ht;if(this.unsigned){if(b.unsigned||(b=b.toUnsigned()),b.gt(this))return UZERO;if(b.gt(this.shru(1)))return UONE;ht=UZERO}else{if(this.eq(MIN_VALUE)){if(b.eq(ONE)||b.eq(NEG_ONE))return MIN_VALUE;if(b.eq(MIN_VALUE))return ONE;var mt=this.shr(1);return ct=mt.div(b).shl(1),ct.eq(ZERO)?b.isNegative()?ONE:NEG_ONE:(lt=this.sub(b.mul(ct)),ht=ct.add(lt.div(b)),ht)}else if(b.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return b.isNegative()?this.neg().div(b.neg()):this.neg().div(b).neg();if(b.isNegative())return this.div(b.neg()).neg();ht=ZERO}for(lt=this;lt.gte(b);){ct=Math.max(1,Math.floor(lt.toNumber()/b.toNumber()));for(var vt=Math.ceil(Math.log(ct)/Math.LN2),kt=vt<=48?1:pow_dbl(2,vt-48),Pt=fromNumber(ct),Jt=Pt.mul(b);Jt.isNegative()||Jt.gt(lt);)ct-=kt,Pt=fromNumber(ct,this.unsigned),Jt=Pt.mul(b);Pt.isZero()&&(Pt=ONE),ht=ht.add(Pt),lt=lt.sub(Jt)}return ht};LongPrototype.div=LongPrototype.divide;LongPrototype.modulo=function d(b){if(isLong(b)||(b=fromValue(b)),wasm){var dt=(this.unsigned?wasm.rem_u:wasm.rem_s)(this.low,this.high,b.low,b.high);return fromBits(dt,wasm.get_high(),this.unsigned)}return this.sub(this.div(b).mul(b))};LongPrototype.mod=LongPrototype.modulo;LongPrototype.rem=LongPrototype.modulo;LongPrototype.not=function d(){return fromBits(~this.low,~this.high,this.unsigned)};LongPrototype.and=function d(b){return isLong(b)||(b=fromValue(b)),fromBits(this.low&b.low,this.high&b.high,this.unsigned)};LongPrototype.or=function d(b){return isLong(b)||(b=fromValue(b)),fromBits(this.low|b.low,this.high|b.high,this.unsigned)};LongPrototype.xor=function d(b){return isLong(b)||(b=fromValue(b)),fromBits(this.low^b.low,this.high^b.high,this.unsigned)};LongPrototype.shiftLeft=function d(b){return isLong(b)&&(b=b.toInt()),(b&=63)===0?this:b<32?fromBits(this.low<>>32-b,this.unsigned):fromBits(0,this.low<>>b|this.high<<32-b,this.high>>b,this.unsigned):fromBits(this.high>>b-32,this.high>=0?0:-1,this.unsigned)};LongPrototype.shr=LongPrototype.shiftRight;LongPrototype.shiftRightUnsigned=function d(b){if(isLong(b)&&(b=b.toInt()),b&=63,b===0)return this;var dt=this.high;if(b<32){var ct=this.low;return fromBits(ct>>>b|dt<<32-b,dt>>>b,this.unsigned)}else return b===32?fromBits(dt,0,this.unsigned):fromBits(dt>>>b-32,0,this.unsigned)};LongPrototype.shru=LongPrototype.shiftRightUnsigned;LongPrototype.shr_u=LongPrototype.shiftRightUnsigned;LongPrototype.toSigned=function d(){return this.unsigned?fromBits(this.low,this.high,!1):this};LongPrototype.toUnsigned=function d(){return this.unsigned?this:fromBits(this.low,this.high,!0)};LongPrototype.toBytes=function d(b){return b?this.toBytesLE():this.toBytesBE()};LongPrototype.toBytesLE=function d(){var b=this.high,dt=this.low;return[dt&255,dt>>>8&255,dt>>>16&255,dt>>>24,b&255,b>>>8&255,b>>>16&255,b>>>24]};LongPrototype.toBytesBE=function d(){var b=this.high,dt=this.low;return[b>>>24,b>>>16&255,b>>>8&255,b&255,dt>>>24,dt>>>16&255,dt>>>8&255,dt&255]};Long.fromBytes=function d(b,dt,ct){return ct?Long.fromBytesLE(b,dt):Long.fromBytesBE(b,dt)};Long.fromBytesLE=function d(b,dt){return new Long(b[0]|b[1]<<8|b[2]<<16|b[3]<<24,b[4]|b[5]<<8|b[6]<<16|b[7]<<24,dt)};Long.fromBytesBE=function d(b,dt){return new Long(b[4]<<24|b[5]<<16|b[6]<<8|b[7],b[0]<<24|b[1]<<16|b[2]<<8|b[3],dt)};var __createBinding$G=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$G=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$G=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$G(b,d,dt);return __setModuleDefault$G(b,d),b},__importDefault$B=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(helpers$1,"__esModule",{value:!0});helpers$1.fromJsonTimestamp=helpers$1.fromTimestamp=helpers$1.toTimestamp=helpers$1.setPaginationParams=helpers$1.isObject=helpers$1.isSet=helpers$1.fromDuration=helpers$1.toDuration=helpers$1.omitDefault=helpers$1.base64FromBytes=helpers$1.bytesFromBase64=helpers$1.Long=void 0;const _m0$r=__importStar$G(minimal$4),long_1$m=__importDefault$B(long);helpers$1.Long=long_1$m.default;_m0$r.util.Long!==long_1$m.default&&(_m0$r.util.Long=long_1$m.default,_m0$r.configure());var globalThis$3=(()=>{if(typeof globalThis$3<"u")return globalThis$3;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();const atob$3=globalThis$3.atob||(d=>globalThis$3.Buffer.from(d,"base64").toString("binary"));function bytesFromBase64$2(d){const b=atob$3(d),dt=new Uint8Array(b.length);for(let ct=0;ctglobalThis$3.Buffer.from(d,"binary").toString("base64"));function base64FromBytes$2(d){const b=[];return d.forEach(dt=>{b.push(String.fromCharCode(dt))}),btoa$3(b.join(""))}helpers$1.base64FromBytes=base64FromBytes$2;function omitDefault$3(d){if(typeof d=="string")return d===""?void 0:d;if(typeof d=="number")return d===0?void 0:d;if(long_1$m.default.isLong(d))return d.isZero()?void 0:d;throw new Error(`Got unsupported type ${typeof d}`)}helpers$1.omitDefault=omitDefault$3;function toDuration$1(d){return{seconds:long_1$m.default.fromNumber(Math.floor(parseInt(d)/1e9)),nanos:parseInt(d)%1e9}}helpers$1.toDuration=toDuration$1;function fromDuration$1(d){return(parseInt(d.seconds.toString())*1e9+d.nanos).toString()}helpers$1.fromDuration=fromDuration$1;function isSet$7(d){return d!=null}helpers$1.isSet=isSet$7;function isObject$3(d){return typeof d=="object"&&d!==null}helpers$1.isObject=isObject$3;const setPaginationParams$1=(d,b)=>(b&&(typeof(b==null?void 0:b.countTotal)<"u"&&(d.params["pagination.count_total"]=b.countTotal),typeof(b==null?void 0:b.key)<"u"&&(d.params["pagination.key"]=Buffer$1.from(b.key).toString("base64")),typeof(b==null?void 0:b.limit)<"u"&&(d.params["pagination.limit"]=b.limit.toString()),typeof(b==null?void 0:b.offset)<"u"&&(d.params["pagination.offset"]=b.offset.toString()),typeof(b==null?void 0:b.reverse)<"u"&&(d.params["pagination.reverse"]=b.reverse)),d);helpers$1.setPaginationParams=setPaginationParams$1;function toTimestamp$1(d){const b=numberToLong$1(d.getTime()/1e3),dt=d.getTime()%1e3*1e6;return{seconds:b,nanos:dt}}helpers$1.toTimestamp=toTimestamp$1;function fromTimestamp$1(d){let b=d.seconds.toNumber()*1e3;return b+=d.nanos/1e6,new Date(b)}helpers$1.fromTimestamp=fromTimestamp$1;const timestampFromJSON$1=d=>({seconds:isSet$7(d.seconds)?long_1$m.default.fromValue(d.seconds):long_1$m.default.ZERO,nanos:isSet$7(d.nanos)?Number(d.nanos):0});function fromJsonTimestamp$1(d){return d instanceof Date?toTimestamp$1(d):typeof d=="string"?toTimestamp$1(new Date(d)):timestampFromJSON$1(d)}helpers$1.fromJsonTimestamp=fromJsonTimestamp$1;function numberToLong$1(d){return long_1$m.default.fromNumber(d)}var __createBinding$F=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$F=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$F=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$F(b,d,dt);return __setModuleDefault$F(b,d),b};Object.defineProperty(any$1,"__esModule",{value:!0});any$1.Any=any$1.protobufPackage=void 0;const _m0$q=__importStar$F(minimal$4),helpers_1$p=helpers$1;any$1.protobufPackage="google.protobuf";function createBaseAny$1(){return{typeUrl:"",value:new Uint8Array}}any$1.Any={encode(d,b=_m0$q.Writer.create()){return d.typeUrl!==""&&b.uint32(10).string(d.typeUrl),d.value.length!==0&&b.uint32(18).bytes(d.value),b},decode(d,b){const dt=d instanceof _m0$q.Reader?d:new _m0$q.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseAny$1();for(;dt.pos>>3){case 1:lt.typeUrl=dt.string();break;case 2:lt.value=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{typeUrl:(0,helpers_1$p.isSet)(d.typeUrl)?String(d.typeUrl):"",value:(0,helpers_1$p.isSet)(d.value)?(0,helpers_1$p.bytesFromBase64)(d.value):new Uint8Array}},toJSON(d){const b={};return d.typeUrl!==void 0&&(b.typeUrl=d.typeUrl),d.value!==void 0&&(b.value=(0,helpers_1$p.base64FromBytes)(d.value!==void 0?d.value:new Uint8Array)),b},fromPartial(d){const b=createBaseAny$1();return b.typeUrl=d.typeUrl??"",b.value=d.value??new Uint8Array,b}};var signing$2={},multisig$2={},__createBinding$E=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$E=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$E=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$E(b,d,dt);return __setModuleDefault$E(b,d),b};Object.defineProperty(multisig$2,"__esModule",{value:!0});multisig$2.CompactBitArray=multisig$2.MultiSignature=multisig$2.protobufPackage=void 0;const _m0$p=__importStar$E(minimal$4),helpers_1$o=helpers$1;multisig$2.protobufPackage="cosmos.crypto.multisig.v1beta1";function createBaseMultiSignature$1(){return{signatures:[]}}multisig$2.MultiSignature={encode(d,b=_m0$p.Writer.create()){for(const dt of d.signatures)b.uint32(10).bytes(dt);return b},decode(d,b){const dt=d instanceof _m0$p.Reader?d:new _m0$p.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMultiSignature$1();for(;dt.pos>>3){case 1:lt.signatures.push(dt.bytes());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{signatures:Array.isArray(d==null?void 0:d.signatures)?d.signatures.map(b=>(0,helpers_1$o.bytesFromBase64)(b)):[]}},toJSON(d){const b={};return d.signatures?b.signatures=d.signatures.map(dt=>(0,helpers_1$o.base64FromBytes)(dt!==void 0?dt:new Uint8Array)):b.signatures=[],b},fromPartial(d){var dt;const b=createBaseMultiSignature$1();return b.signatures=((dt=d.signatures)==null?void 0:dt.map(ct=>ct))||[],b}};function createBaseCompactBitArray$1(){return{extraBitsStored:0,elems:new Uint8Array}}multisig$2.CompactBitArray={encode(d,b=_m0$p.Writer.create()){return d.extraBitsStored!==0&&b.uint32(8).uint32(d.extraBitsStored),d.elems.length!==0&&b.uint32(18).bytes(d.elems),b},decode(d,b){const dt=d instanceof _m0$p.Reader?d:new _m0$p.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseCompactBitArray$1();for(;dt.pos>>3){case 1:lt.extraBitsStored=dt.uint32();break;case 2:lt.elems=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{extraBitsStored:(0,helpers_1$o.isSet)(d.extraBitsStored)?Number(d.extraBitsStored):0,elems:(0,helpers_1$o.isSet)(d.elems)?(0,helpers_1$o.bytesFromBase64)(d.elems):new Uint8Array}},toJSON(d){const b={};return d.extraBitsStored!==void 0&&(b.extraBitsStored=Math.round(d.extraBitsStored)),d.elems!==void 0&&(b.elems=(0,helpers_1$o.base64FromBytes)(d.elems!==void 0?d.elems:new Uint8Array)),b},fromPartial(d){const b=createBaseCompactBitArray$1();return b.extraBitsStored=d.extraBitsStored??0,b.elems=d.elems??new Uint8Array,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et);var Tt=Object.getOwnPropertyDescriptor(xt,Et);(!Tt||("get"in Tt?!xt.__esModule:Tt.writable||Tt.configurable))&&(Tt={enumerable:!0,get:function(){return xt[Et]}}),Object.defineProperty(Nt,Bt,Tt)}:function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et),Nt[Bt]=xt[Et]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,xt){Object.defineProperty(Nt,"default",{enumerable:!0,value:xt})}:function(Nt,xt){Nt.default=xt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var xt={};if(Nt!=null)for(var Et in Nt)Et!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Et)&&b(xt,Nt,Et);return dt(xt,Nt),xt};Object.defineProperty(d,"__esModule",{value:!0}),d.SignatureDescriptor_Data_Multi=d.SignatureDescriptor_Data_Single=d.SignatureDescriptor_Data=d.SignatureDescriptor=d.SignatureDescriptors=d.signModeToJSON=d.signModeFromJSON=d.SignMode=d.protobufPackage=void 0;const lt=multisig$2,ht=any$1,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.tx.signing.v1beta1";var kt;(function(Nt){Nt[Nt.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",Nt[Nt.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",Nt[Nt.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",Nt[Nt.SIGN_MODE_DIRECT_AUX=3]="SIGN_MODE_DIRECT_AUX",Nt[Nt.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",Nt[Nt.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",Nt[Nt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kt=d.SignMode||(d.SignMode={}));function Pt(Nt){switch(Nt){case 0:case"SIGN_MODE_UNSPECIFIED":return kt.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return kt.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return kt.SIGN_MODE_TEXTUAL;case 3:case"SIGN_MODE_DIRECT_AUX":return kt.SIGN_MODE_DIRECT_AUX;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return kt.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return kt.SIGN_MODE_EIP_191;case-1:case"UNRECOGNIZED":default:return kt.UNRECOGNIZED}}d.signModeFromJSON=Pt;function Jt(Nt){switch(Nt){case kt.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case kt.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case kt.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case kt.SIGN_MODE_DIRECT_AUX:return"SIGN_MODE_DIRECT_AUX";case kt.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case kt.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case kt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.signModeToJSON=Jt;function Zt(){return{signatures:[]}}d.SignatureDescriptors={encode(Nt,xt=vt.Writer.create()){for(const Et of Nt.signatures)d.SignatureDescriptor.encode(Et,xt.uint32(10).fork()).ldelim();return xt},decode(Nt,xt){const Et=Nt instanceof vt.Reader?Nt:new vt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Zt();for(;Et.pos>>3){case 1:Tt.signatures.push(d.SignatureDescriptor.decode(Et,Et.uint32()));break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{signatures:Array.isArray(Nt==null?void 0:Nt.signatures)?Nt.signatures.map(xt=>d.SignatureDescriptor.fromJSON(xt)):[]}},toJSON(Nt){const xt={};return Nt.signatures?xt.signatures=Nt.signatures.map(Et=>Et?d.SignatureDescriptor.toJSON(Et):void 0):xt.signatures=[],xt},fromPartial(Nt){var Et;const xt=Zt();return xt.signatures=((Et=Nt.signatures)==null?void 0:Et.map(Bt=>d.SignatureDescriptor.fromPartial(Bt)))||[],xt}};function Rt(){return{publicKey:void 0,data:void 0,sequence:mt.Long.UZERO}}d.SignatureDescriptor={encode(Nt,xt=vt.Writer.create()){return Nt.publicKey!==void 0&&ht.Any.encode(Nt.publicKey,xt.uint32(10).fork()).ldelim(),Nt.data!==void 0&&d.SignatureDescriptor_Data.encode(Nt.data,xt.uint32(18).fork()).ldelim(),Nt.sequence.isZero()||xt.uint32(24).uint64(Nt.sequence),xt},decode(Nt,xt){const Et=Nt instanceof vt.Reader?Nt:new vt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Rt();for(;Et.pos>>3){case 1:Tt.publicKey=ht.Any.decode(Et,Et.uint32());break;case 2:Tt.data=d.SignatureDescriptor_Data.decode(Et,Et.uint32());break;case 3:Tt.sequence=Et.uint64();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{publicKey:(0,mt.isSet)(Nt.publicKey)?ht.Any.fromJSON(Nt.publicKey):void 0,data:(0,mt.isSet)(Nt.data)?d.SignatureDescriptor_Data.fromJSON(Nt.data):void 0,sequence:(0,mt.isSet)(Nt.sequence)?mt.Long.fromValue(Nt.sequence):mt.Long.UZERO}},toJSON(Nt){const xt={};return Nt.publicKey!==void 0&&(xt.publicKey=Nt.publicKey?ht.Any.toJSON(Nt.publicKey):void 0),Nt.data!==void 0&&(xt.data=Nt.data?d.SignatureDescriptor_Data.toJSON(Nt.data):void 0),Nt.sequence!==void 0&&(xt.sequence=(Nt.sequence||mt.Long.UZERO).toString()),xt},fromPartial(Nt){const xt=Rt();return xt.publicKey=Nt.publicKey!==void 0&&Nt.publicKey!==null?ht.Any.fromPartial(Nt.publicKey):void 0,xt.data=Nt.data!==void 0&&Nt.data!==null?d.SignatureDescriptor_Data.fromPartial(Nt.data):void 0,xt.sequence=Nt.sequence!==void 0&&Nt.sequence!==null?mt.Long.fromValue(Nt.sequence):mt.Long.UZERO,xt}};function nn(){return{single:void 0,multi:void 0}}d.SignatureDescriptor_Data={encode(Nt,xt=vt.Writer.create()){return Nt.single!==void 0&&d.SignatureDescriptor_Data_Single.encode(Nt.single,xt.uint32(10).fork()).ldelim(),Nt.multi!==void 0&&d.SignatureDescriptor_Data_Multi.encode(Nt.multi,xt.uint32(18).fork()).ldelim(),xt},decode(Nt,xt){const Et=Nt instanceof vt.Reader?Nt:new vt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=nn();for(;Et.pos>>3){case 1:Tt.single=d.SignatureDescriptor_Data_Single.decode(Et,Et.uint32());break;case 2:Tt.multi=d.SignatureDescriptor_Data_Multi.decode(Et,Et.uint32());break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{single:(0,mt.isSet)(Nt.single)?d.SignatureDescriptor_Data_Single.fromJSON(Nt.single):void 0,multi:(0,mt.isSet)(Nt.multi)?d.SignatureDescriptor_Data_Multi.fromJSON(Nt.multi):void 0}},toJSON(Nt){const xt={};return Nt.single!==void 0&&(xt.single=Nt.single?d.SignatureDescriptor_Data_Single.toJSON(Nt.single):void 0),Nt.multi!==void 0&&(xt.multi=Nt.multi?d.SignatureDescriptor_Data_Multi.toJSON(Nt.multi):void 0),xt},fromPartial(Nt){const xt=nn();return xt.single=Nt.single!==void 0&&Nt.single!==null?d.SignatureDescriptor_Data_Single.fromPartial(Nt.single):void 0,xt.multi=Nt.multi!==void 0&&Nt.multi!==null?d.SignatureDescriptor_Data_Multi.fromPartial(Nt.multi):void 0,xt}};function Qt(){return{mode:0,signature:new Uint8Array}}d.SignatureDescriptor_Data_Single={encode(Nt,xt=vt.Writer.create()){return Nt.mode!==0&&xt.uint32(8).int32(Nt.mode),Nt.signature.length!==0&&xt.uint32(18).bytes(Nt.signature),xt},decode(Nt,xt){const Et=Nt instanceof vt.Reader?Nt:new vt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Qt();for(;Et.pos>>3){case 1:Tt.mode=Et.int32();break;case 2:Tt.signature=Et.bytes();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{mode:(0,mt.isSet)(Nt.mode)?Pt(Nt.mode):0,signature:(0,mt.isSet)(Nt.signature)?(0,mt.bytesFromBase64)(Nt.signature):new Uint8Array}},toJSON(Nt){const xt={};return Nt.mode!==void 0&&(xt.mode=Jt(Nt.mode)),Nt.signature!==void 0&&(xt.signature=(0,mt.base64FromBytes)(Nt.signature!==void 0?Nt.signature:new Uint8Array)),xt},fromPartial(Nt){const xt=Qt();return xt.mode=Nt.mode??0,xt.signature=Nt.signature??new Uint8Array,xt}};function wt(){return{bitarray:void 0,signatures:[]}}d.SignatureDescriptor_Data_Multi={encode(Nt,xt=vt.Writer.create()){Nt.bitarray!==void 0&<.CompactBitArray.encode(Nt.bitarray,xt.uint32(10).fork()).ldelim();for(const Et of Nt.signatures)d.SignatureDescriptor_Data.encode(Et,xt.uint32(18).fork()).ldelim();return xt},decode(Nt,xt){const Et=Nt instanceof vt.Reader?Nt:new vt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=wt();for(;Et.pos>>3){case 1:Tt.bitarray=lt.CompactBitArray.decode(Et,Et.uint32());break;case 2:Tt.signatures.push(d.SignatureDescriptor_Data.decode(Et,Et.uint32()));break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{bitarray:(0,mt.isSet)(Nt.bitarray)?lt.CompactBitArray.fromJSON(Nt.bitarray):void 0,signatures:Array.isArray(Nt==null?void 0:Nt.signatures)?Nt.signatures.map(xt=>d.SignatureDescriptor_Data.fromJSON(xt)):[]}},toJSON(Nt){const xt={};return Nt.bitarray!==void 0&&(xt.bitarray=Nt.bitarray?lt.CompactBitArray.toJSON(Nt.bitarray):void 0),Nt.signatures?xt.signatures=Nt.signatures.map(Et=>Et?d.SignatureDescriptor_Data.toJSON(Et):void 0):xt.signatures=[],xt},fromPartial(Nt){var Et;const xt=wt();return xt.bitarray=Nt.bitarray!==void 0&&Nt.bitarray!==null?lt.CompactBitArray.fromPartial(Nt.bitarray):void 0,xt.signatures=((Et=Nt.signatures)==null?void 0:Et.map(Bt=>d.SignatureDescriptor_Data.fromPartial(Bt)))||[],xt}}})(signing$2);var coin$3={},__createBinding$D=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$D=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$D=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$D(b,d,dt);return __setModuleDefault$D(b,d),b};Object.defineProperty(coin$3,"__esModule",{value:!0});coin$3.DecProto=coin$3.IntProto=coin$3.DecCoin=coin$3.Coin=coin$3.protobufPackage=void 0;const _m0$o=__importStar$D(minimal$4),helpers_1$n=helpers$1;coin$3.protobufPackage="cosmos.base.v1beta1";function createBaseCoin$1(){return{denom:"",amount:""}}coin$3.Coin={encode(d,b=_m0$o.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof _m0$o.Reader?d:new _m0$o.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseCoin$1();for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{denom:(0,helpers_1$n.isSet)(d.denom)?String(d.denom):"",amount:(0,helpers_1$n.isSet)(d.amount)?String(d.amount):""}},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b=createBaseCoin$1();return b.denom=d.denom??"",b.amount=d.amount??"",b}};function createBaseDecCoin$1(){return{denom:"",amount:""}}coin$3.DecCoin={encode(d,b=_m0$o.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof _m0$o.Reader?d:new _m0$o.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDecCoin$1();for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{denom:(0,helpers_1$n.isSet)(d.denom)?String(d.denom):"",amount:(0,helpers_1$n.isSet)(d.amount)?String(d.amount):""}},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b=createBaseDecCoin$1();return b.denom=d.denom??"",b.amount=d.amount??"",b}};function createBaseIntProto$1(){return{int:""}}coin$3.IntProto={encode(d,b=_m0$o.Writer.create()){return d.int!==""&&b.uint32(10).string(d.int),b},decode(d,b){const dt=d instanceof _m0$o.Reader?d:new _m0$o.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseIntProto$1();for(;dt.pos>>3){case 1:lt.int=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{int:(0,helpers_1$n.isSet)(d.int)?String(d.int):""}},toJSON(d){const b={};return d.int!==void 0&&(b.int=d.int),b},fromPartial(d){const b=createBaseIntProto$1();return b.int=d.int??"",b}};function createBaseDecProto$1(){return{dec:""}}coin$3.DecProto={encode(d,b=_m0$o.Writer.create()){return d.dec!==""&&b.uint32(10).string(d.dec),b},decode(d,b){const dt=d instanceof _m0$o.Reader?d:new _m0$o.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDecProto$1();for(;dt.pos>>3){case 1:lt.dec=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{dec:(0,helpers_1$n.isSet)(d.dec)?String(d.dec):""}},toJSON(d){const b={};return d.dec!==void 0&&(b.dec=d.dec),b},fromPartial(d){const b=createBaseDecProto$1();return b.dec=d.dec??"",b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ht,an,yt,$t){$t===void 0&&($t=yt);var Yt=Object.getOwnPropertyDescriptor(an,yt);(!Yt||("get"in Yt?!an.__esModule:Yt.writable||Yt.configurable))&&(Yt={enumerable:!0,get:function(){return an[yt]}}),Object.defineProperty(Ht,$t,Yt)}:function(Ht,an,yt,$t){$t===void 0&&($t=yt),Ht[$t]=an[yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Ht,an){Object.defineProperty(Ht,"default",{enumerable:!0,value:an})}:function(Ht,an){Ht.default=an}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Ht){if(Ht&&Ht.__esModule)return Ht;var an={};if(Ht!=null)for(var yt in Ht)yt!=="default"&&Object.prototype.hasOwnProperty.call(Ht,yt)&&b(an,Ht,yt);return dt(an,Ht),an};Object.defineProperty(d,"__esModule",{value:!0}),d.AuxSignerData=d.Tip=d.Fee=d.ModeInfo_Multi=d.ModeInfo_Single=d.ModeInfo=d.SignerInfo=d.AuthInfo=d.TxBody=d.SignDocDirectAux=d.SignDoc=d.TxRaw=d.Tx=d.protobufPackage=void 0;const lt=any$1,ht=signing$2,mt=multisig$2,vt=coin$3,kt=helpers$1,Pt=ct(minimal$4);d.protobufPackage="cosmos.tx.v1beta1";function Jt(){return{body:void 0,authInfo:void 0,signatures:[]}}d.Tx={encode(Ht,an=Pt.Writer.create()){Ht.body!==void 0&&d.TxBody.encode(Ht.body,an.uint32(10).fork()).ldelim(),Ht.authInfo!==void 0&&d.AuthInfo.encode(Ht.authInfo,an.uint32(18).fork()).ldelim();for(const yt of Ht.signatures)an.uint32(26).bytes(yt);return an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Jt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.body=d.TxBody.decode(yt,yt.uint32());break;case 2:Yt.authInfo=d.AuthInfo.decode(yt,yt.uint32());break;case 3:Yt.signatures.push(yt.bytes());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{body:(0,kt.isSet)(Ht.body)?d.TxBody.fromJSON(Ht.body):void 0,authInfo:(0,kt.isSet)(Ht.authInfo)?d.AuthInfo.fromJSON(Ht.authInfo):void 0,signatures:Array.isArray(Ht==null?void 0:Ht.signatures)?Ht.signatures.map(an=>(0,kt.bytesFromBase64)(an)):[]}},toJSON(Ht){const an={};return Ht.body!==void 0&&(an.body=Ht.body?d.TxBody.toJSON(Ht.body):void 0),Ht.authInfo!==void 0&&(an.authInfo=Ht.authInfo?d.AuthInfo.toJSON(Ht.authInfo):void 0),Ht.signatures?an.signatures=Ht.signatures.map(yt=>(0,kt.base64FromBytes)(yt!==void 0?yt:new Uint8Array)):an.signatures=[],an},fromPartial(Ht){var yt;const an=Jt();return an.body=Ht.body!==void 0&&Ht.body!==null?d.TxBody.fromPartial(Ht.body):void 0,an.authInfo=Ht.authInfo!==void 0&&Ht.authInfo!==null?d.AuthInfo.fromPartial(Ht.authInfo):void 0,an.signatures=((yt=Ht.signatures)==null?void 0:yt.map($t=>$t))||[],an}};function Zt(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}d.TxRaw={encode(Ht,an=Pt.Writer.create()){Ht.bodyBytes.length!==0&&an.uint32(10).bytes(Ht.bodyBytes),Ht.authInfoBytes.length!==0&&an.uint32(18).bytes(Ht.authInfoBytes);for(const yt of Ht.signatures)an.uint32(26).bytes(yt);return an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Zt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.bodyBytes=yt.bytes();break;case 2:Yt.authInfoBytes=yt.bytes();break;case 3:Yt.signatures.push(yt.bytes());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{bodyBytes:(0,kt.isSet)(Ht.bodyBytes)?(0,kt.bytesFromBase64)(Ht.bodyBytes):new Uint8Array,authInfoBytes:(0,kt.isSet)(Ht.authInfoBytes)?(0,kt.bytesFromBase64)(Ht.authInfoBytes):new Uint8Array,signatures:Array.isArray(Ht==null?void 0:Ht.signatures)?Ht.signatures.map(an=>(0,kt.bytesFromBase64)(an)):[]}},toJSON(Ht){const an={};return Ht.bodyBytes!==void 0&&(an.bodyBytes=(0,kt.base64FromBytes)(Ht.bodyBytes!==void 0?Ht.bodyBytes:new Uint8Array)),Ht.authInfoBytes!==void 0&&(an.authInfoBytes=(0,kt.base64FromBytes)(Ht.authInfoBytes!==void 0?Ht.authInfoBytes:new Uint8Array)),Ht.signatures?an.signatures=Ht.signatures.map(yt=>(0,kt.base64FromBytes)(yt!==void 0?yt:new Uint8Array)):an.signatures=[],an},fromPartial(Ht){var yt;const an=Zt();return an.bodyBytes=Ht.bodyBytes??new Uint8Array,an.authInfoBytes=Ht.authInfoBytes??new Uint8Array,an.signatures=((yt=Ht.signatures)==null?void 0:yt.map($t=>$t))||[],an}};function Rt(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:kt.Long.UZERO}}d.SignDoc={encode(Ht,an=Pt.Writer.create()){return Ht.bodyBytes.length!==0&&an.uint32(10).bytes(Ht.bodyBytes),Ht.authInfoBytes.length!==0&&an.uint32(18).bytes(Ht.authInfoBytes),Ht.chainId!==""&&an.uint32(26).string(Ht.chainId),Ht.accountNumber.isZero()||an.uint32(32).uint64(Ht.accountNumber),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Rt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.bodyBytes=yt.bytes();break;case 2:Yt.authInfoBytes=yt.bytes();break;case 3:Yt.chainId=yt.string();break;case 4:Yt.accountNumber=yt.uint64();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{bodyBytes:(0,kt.isSet)(Ht.bodyBytes)?(0,kt.bytesFromBase64)(Ht.bodyBytes):new Uint8Array,authInfoBytes:(0,kt.isSet)(Ht.authInfoBytes)?(0,kt.bytesFromBase64)(Ht.authInfoBytes):new Uint8Array,chainId:(0,kt.isSet)(Ht.chainId)?String(Ht.chainId):"",accountNumber:(0,kt.isSet)(Ht.accountNumber)?kt.Long.fromValue(Ht.accountNumber):kt.Long.UZERO}},toJSON(Ht){const an={};return Ht.bodyBytes!==void 0&&(an.bodyBytes=(0,kt.base64FromBytes)(Ht.bodyBytes!==void 0?Ht.bodyBytes:new Uint8Array)),Ht.authInfoBytes!==void 0&&(an.authInfoBytes=(0,kt.base64FromBytes)(Ht.authInfoBytes!==void 0?Ht.authInfoBytes:new Uint8Array)),Ht.chainId!==void 0&&(an.chainId=Ht.chainId),Ht.accountNumber!==void 0&&(an.accountNumber=(Ht.accountNumber||kt.Long.UZERO).toString()),an},fromPartial(Ht){const an=Rt();return an.bodyBytes=Ht.bodyBytes??new Uint8Array,an.authInfoBytes=Ht.authInfoBytes??new Uint8Array,an.chainId=Ht.chainId??"",an.accountNumber=Ht.accountNumber!==void 0&&Ht.accountNumber!==null?kt.Long.fromValue(Ht.accountNumber):kt.Long.UZERO,an}};function nn(){return{bodyBytes:new Uint8Array,publicKey:void 0,chainId:"",accountNumber:kt.Long.UZERO,sequence:kt.Long.UZERO,tip:void 0}}d.SignDocDirectAux={encode(Ht,an=Pt.Writer.create()){return Ht.bodyBytes.length!==0&&an.uint32(10).bytes(Ht.bodyBytes),Ht.publicKey!==void 0&<.Any.encode(Ht.publicKey,an.uint32(18).fork()).ldelim(),Ht.chainId!==""&&an.uint32(26).string(Ht.chainId),Ht.accountNumber.isZero()||an.uint32(32).uint64(Ht.accountNumber),Ht.sequence.isZero()||an.uint32(40).uint64(Ht.sequence),Ht.tip!==void 0&&d.Tip.encode(Ht.tip,an.uint32(50).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=nn();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.bodyBytes=yt.bytes();break;case 2:Yt.publicKey=lt.Any.decode(yt,yt.uint32());break;case 3:Yt.chainId=yt.string();break;case 4:Yt.accountNumber=yt.uint64();break;case 5:Yt.sequence=yt.uint64();break;case 6:Yt.tip=d.Tip.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{bodyBytes:(0,kt.isSet)(Ht.bodyBytes)?(0,kt.bytesFromBase64)(Ht.bodyBytes):new Uint8Array,publicKey:(0,kt.isSet)(Ht.publicKey)?lt.Any.fromJSON(Ht.publicKey):void 0,chainId:(0,kt.isSet)(Ht.chainId)?String(Ht.chainId):"",accountNumber:(0,kt.isSet)(Ht.accountNumber)?kt.Long.fromValue(Ht.accountNumber):kt.Long.UZERO,sequence:(0,kt.isSet)(Ht.sequence)?kt.Long.fromValue(Ht.sequence):kt.Long.UZERO,tip:(0,kt.isSet)(Ht.tip)?d.Tip.fromJSON(Ht.tip):void 0}},toJSON(Ht){const an={};return Ht.bodyBytes!==void 0&&(an.bodyBytes=(0,kt.base64FromBytes)(Ht.bodyBytes!==void 0?Ht.bodyBytes:new Uint8Array)),Ht.publicKey!==void 0&&(an.publicKey=Ht.publicKey?lt.Any.toJSON(Ht.publicKey):void 0),Ht.chainId!==void 0&&(an.chainId=Ht.chainId),Ht.accountNumber!==void 0&&(an.accountNumber=(Ht.accountNumber||kt.Long.UZERO).toString()),Ht.sequence!==void 0&&(an.sequence=(Ht.sequence||kt.Long.UZERO).toString()),Ht.tip!==void 0&&(an.tip=Ht.tip?d.Tip.toJSON(Ht.tip):void 0),an},fromPartial(Ht){const an=nn();return an.bodyBytes=Ht.bodyBytes??new Uint8Array,an.publicKey=Ht.publicKey!==void 0&&Ht.publicKey!==null?lt.Any.fromPartial(Ht.publicKey):void 0,an.chainId=Ht.chainId??"",an.accountNumber=Ht.accountNumber!==void 0&&Ht.accountNumber!==null?kt.Long.fromValue(Ht.accountNumber):kt.Long.UZERO,an.sequence=Ht.sequence!==void 0&&Ht.sequence!==null?kt.Long.fromValue(Ht.sequence):kt.Long.UZERO,an.tip=Ht.tip!==void 0&&Ht.tip!==null?d.Tip.fromPartial(Ht.tip):void 0,an}};function Qt(){return{messages:[],memo:"",timeoutHeight:kt.Long.UZERO,extensionOptions:[],nonCriticalExtensionOptions:[]}}d.TxBody={encode(Ht,an=Pt.Writer.create()){for(const yt of Ht.messages)lt.Any.encode(yt,an.uint32(10).fork()).ldelim();Ht.memo!==""&&an.uint32(18).string(Ht.memo),Ht.timeoutHeight.isZero()||an.uint32(24).uint64(Ht.timeoutHeight);for(const yt of Ht.extensionOptions)lt.Any.encode(yt,an.uint32(8186).fork()).ldelim();for(const yt of Ht.nonCriticalExtensionOptions)lt.Any.encode(yt,an.uint32(16378).fork()).ldelim();return an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Qt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.messages.push(lt.Any.decode(yt,yt.uint32()));break;case 2:Yt.memo=yt.string();break;case 3:Yt.timeoutHeight=yt.uint64();break;case 1023:Yt.extensionOptions.push(lt.Any.decode(yt,yt.uint32()));break;case 2047:Yt.nonCriticalExtensionOptions.push(lt.Any.decode(yt,yt.uint32()));break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{messages:Array.isArray(Ht==null?void 0:Ht.messages)?Ht.messages.map(an=>lt.Any.fromJSON(an)):[],memo:(0,kt.isSet)(Ht.memo)?String(Ht.memo):"",timeoutHeight:(0,kt.isSet)(Ht.timeoutHeight)?kt.Long.fromValue(Ht.timeoutHeight):kt.Long.UZERO,extensionOptions:Array.isArray(Ht==null?void 0:Ht.extensionOptions)?Ht.extensionOptions.map(an=>lt.Any.fromJSON(an)):[],nonCriticalExtensionOptions:Array.isArray(Ht==null?void 0:Ht.nonCriticalExtensionOptions)?Ht.nonCriticalExtensionOptions.map(an=>lt.Any.fromJSON(an)):[]}},toJSON(Ht){const an={};return Ht.messages?an.messages=Ht.messages.map(yt=>yt?lt.Any.toJSON(yt):void 0):an.messages=[],Ht.memo!==void 0&&(an.memo=Ht.memo),Ht.timeoutHeight!==void 0&&(an.timeoutHeight=(Ht.timeoutHeight||kt.Long.UZERO).toString()),Ht.extensionOptions?an.extensionOptions=Ht.extensionOptions.map(yt=>yt?lt.Any.toJSON(yt):void 0):an.extensionOptions=[],Ht.nonCriticalExtensionOptions?an.nonCriticalExtensionOptions=Ht.nonCriticalExtensionOptions.map(yt=>yt?lt.Any.toJSON(yt):void 0):an.nonCriticalExtensionOptions=[],an},fromPartial(Ht){var yt,$t,Yt;const an=Qt();return an.messages=((yt=Ht.messages)==null?void 0:yt.map(Kt=>lt.Any.fromPartial(Kt)))||[],an.memo=Ht.memo??"",an.timeoutHeight=Ht.timeoutHeight!==void 0&&Ht.timeoutHeight!==null?kt.Long.fromValue(Ht.timeoutHeight):kt.Long.UZERO,an.extensionOptions=(($t=Ht.extensionOptions)==null?void 0:$t.map(Kt=>lt.Any.fromPartial(Kt)))||[],an.nonCriticalExtensionOptions=((Yt=Ht.nonCriticalExtensionOptions)==null?void 0:Yt.map(Kt=>lt.Any.fromPartial(Kt)))||[],an}};function wt(){return{signerInfos:[],fee:void 0,tip:void 0}}d.AuthInfo={encode(Ht,an=Pt.Writer.create()){for(const yt of Ht.signerInfos)d.SignerInfo.encode(yt,an.uint32(10).fork()).ldelim();return Ht.fee!==void 0&&d.Fee.encode(Ht.fee,an.uint32(18).fork()).ldelim(),Ht.tip!==void 0&&d.Tip.encode(Ht.tip,an.uint32(26).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=wt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.signerInfos.push(d.SignerInfo.decode(yt,yt.uint32()));break;case 2:Yt.fee=d.Fee.decode(yt,yt.uint32());break;case 3:Yt.tip=d.Tip.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{signerInfos:Array.isArray(Ht==null?void 0:Ht.signerInfos)?Ht.signerInfos.map(an=>d.SignerInfo.fromJSON(an)):[],fee:(0,kt.isSet)(Ht.fee)?d.Fee.fromJSON(Ht.fee):void 0,tip:(0,kt.isSet)(Ht.tip)?d.Tip.fromJSON(Ht.tip):void 0}},toJSON(Ht){const an={};return Ht.signerInfos?an.signerInfos=Ht.signerInfos.map(yt=>yt?d.SignerInfo.toJSON(yt):void 0):an.signerInfos=[],Ht.fee!==void 0&&(an.fee=Ht.fee?d.Fee.toJSON(Ht.fee):void 0),Ht.tip!==void 0&&(an.tip=Ht.tip?d.Tip.toJSON(Ht.tip):void 0),an},fromPartial(Ht){var yt;const an=wt();return an.signerInfos=((yt=Ht.signerInfos)==null?void 0:yt.map($t=>d.SignerInfo.fromPartial($t)))||[],an.fee=Ht.fee!==void 0&&Ht.fee!==null?d.Fee.fromPartial(Ht.fee):void 0,an.tip=Ht.tip!==void 0&&Ht.tip!==null?d.Tip.fromPartial(Ht.tip):void 0,an}};function Nt(){return{publicKey:void 0,modeInfo:void 0,sequence:kt.Long.UZERO}}d.SignerInfo={encode(Ht,an=Pt.Writer.create()){return Ht.publicKey!==void 0&<.Any.encode(Ht.publicKey,an.uint32(10).fork()).ldelim(),Ht.modeInfo!==void 0&&d.ModeInfo.encode(Ht.modeInfo,an.uint32(18).fork()).ldelim(),Ht.sequence.isZero()||an.uint32(24).uint64(Ht.sequence),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Nt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.publicKey=lt.Any.decode(yt,yt.uint32());break;case 2:Yt.modeInfo=d.ModeInfo.decode(yt,yt.uint32());break;case 3:Yt.sequence=yt.uint64();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{publicKey:(0,kt.isSet)(Ht.publicKey)?lt.Any.fromJSON(Ht.publicKey):void 0,modeInfo:(0,kt.isSet)(Ht.modeInfo)?d.ModeInfo.fromJSON(Ht.modeInfo):void 0,sequence:(0,kt.isSet)(Ht.sequence)?kt.Long.fromValue(Ht.sequence):kt.Long.UZERO}},toJSON(Ht){const an={};return Ht.publicKey!==void 0&&(an.publicKey=Ht.publicKey?lt.Any.toJSON(Ht.publicKey):void 0),Ht.modeInfo!==void 0&&(an.modeInfo=Ht.modeInfo?d.ModeInfo.toJSON(Ht.modeInfo):void 0),Ht.sequence!==void 0&&(an.sequence=(Ht.sequence||kt.Long.UZERO).toString()),an},fromPartial(Ht){const an=Nt();return an.publicKey=Ht.publicKey!==void 0&&Ht.publicKey!==null?lt.Any.fromPartial(Ht.publicKey):void 0,an.modeInfo=Ht.modeInfo!==void 0&&Ht.modeInfo!==null?d.ModeInfo.fromPartial(Ht.modeInfo):void 0,an.sequence=Ht.sequence!==void 0&&Ht.sequence!==null?kt.Long.fromValue(Ht.sequence):kt.Long.UZERO,an}};function xt(){return{single:void 0,multi:void 0}}d.ModeInfo={encode(Ht,an=Pt.Writer.create()){return Ht.single!==void 0&&d.ModeInfo_Single.encode(Ht.single,an.uint32(10).fork()).ldelim(),Ht.multi!==void 0&&d.ModeInfo_Multi.encode(Ht.multi,an.uint32(18).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=xt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.single=d.ModeInfo_Single.decode(yt,yt.uint32());break;case 2:Yt.multi=d.ModeInfo_Multi.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{single:(0,kt.isSet)(Ht.single)?d.ModeInfo_Single.fromJSON(Ht.single):void 0,multi:(0,kt.isSet)(Ht.multi)?d.ModeInfo_Multi.fromJSON(Ht.multi):void 0}},toJSON(Ht){const an={};return Ht.single!==void 0&&(an.single=Ht.single?d.ModeInfo_Single.toJSON(Ht.single):void 0),Ht.multi!==void 0&&(an.multi=Ht.multi?d.ModeInfo_Multi.toJSON(Ht.multi):void 0),an},fromPartial(Ht){const an=xt();return an.single=Ht.single!==void 0&&Ht.single!==null?d.ModeInfo_Single.fromPartial(Ht.single):void 0,an.multi=Ht.multi!==void 0&&Ht.multi!==null?d.ModeInfo_Multi.fromPartial(Ht.multi):void 0,an}};function Et(){return{mode:0}}d.ModeInfo_Single={encode(Ht,an=Pt.Writer.create()){return Ht.mode!==0&&an.uint32(8).int32(Ht.mode),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Et();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.mode=yt.int32();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{mode:(0,kt.isSet)(Ht.mode)?(0,ht.signModeFromJSON)(Ht.mode):0}},toJSON(Ht){const an={};return Ht.mode!==void 0&&(an.mode=(0,ht.signModeToJSON)(Ht.mode)),an},fromPartial(Ht){const an=Et();return an.mode=Ht.mode??0,an}};function Bt(){return{bitarray:void 0,modeInfos:[]}}d.ModeInfo_Multi={encode(Ht,an=Pt.Writer.create()){Ht.bitarray!==void 0&&mt.CompactBitArray.encode(Ht.bitarray,an.uint32(10).fork()).ldelim();for(const yt of Ht.modeInfos)d.ModeInfo.encode(yt,an.uint32(18).fork()).ldelim();return an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Bt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.bitarray=mt.CompactBitArray.decode(yt,yt.uint32());break;case 2:Yt.modeInfos.push(d.ModeInfo.decode(yt,yt.uint32()));break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{bitarray:(0,kt.isSet)(Ht.bitarray)?mt.CompactBitArray.fromJSON(Ht.bitarray):void 0,modeInfos:Array.isArray(Ht==null?void 0:Ht.modeInfos)?Ht.modeInfos.map(an=>d.ModeInfo.fromJSON(an)):[]}},toJSON(Ht){const an={};return Ht.bitarray!==void 0&&(an.bitarray=Ht.bitarray?mt.CompactBitArray.toJSON(Ht.bitarray):void 0),Ht.modeInfos?an.modeInfos=Ht.modeInfos.map(yt=>yt?d.ModeInfo.toJSON(yt):void 0):an.modeInfos=[],an},fromPartial(Ht){var yt;const an=Bt();return an.bitarray=Ht.bitarray!==void 0&&Ht.bitarray!==null?mt.CompactBitArray.fromPartial(Ht.bitarray):void 0,an.modeInfos=((yt=Ht.modeInfos)==null?void 0:yt.map($t=>d.ModeInfo.fromPartial($t)))||[],an}};function Tt(){return{amount:[],gasLimit:kt.Long.UZERO,payer:"",granter:""}}d.Fee={encode(Ht,an=Pt.Writer.create()){for(const yt of Ht.amount)vt.Coin.encode(yt,an.uint32(10).fork()).ldelim();return Ht.gasLimit.isZero()||an.uint32(16).uint64(Ht.gasLimit),Ht.payer!==""&&an.uint32(26).string(Ht.payer),Ht.granter!==""&&an.uint32(34).string(Ht.granter),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Tt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.amount.push(vt.Coin.decode(yt,yt.uint32()));break;case 2:Yt.gasLimit=yt.uint64();break;case 3:Yt.payer=yt.string();break;case 4:Yt.granter=yt.string();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{amount:Array.isArray(Ht==null?void 0:Ht.amount)?Ht.amount.map(an=>vt.Coin.fromJSON(an)):[],gasLimit:(0,kt.isSet)(Ht.gasLimit)?kt.Long.fromValue(Ht.gasLimit):kt.Long.UZERO,payer:(0,kt.isSet)(Ht.payer)?String(Ht.payer):"",granter:(0,kt.isSet)(Ht.granter)?String(Ht.granter):""}},toJSON(Ht){const an={};return Ht.amount?an.amount=Ht.amount.map(yt=>yt?vt.Coin.toJSON(yt):void 0):an.amount=[],Ht.gasLimit!==void 0&&(an.gasLimit=(Ht.gasLimit||kt.Long.UZERO).toString()),Ht.payer!==void 0&&(an.payer=Ht.payer),Ht.granter!==void 0&&(an.granter=Ht.granter),an},fromPartial(Ht){var yt;const an=Tt();return an.amount=((yt=Ht.amount)==null?void 0:yt.map($t=>vt.Coin.fromPartial($t)))||[],an.gasLimit=Ht.gasLimit!==void 0&&Ht.gasLimit!==null?kt.Long.fromValue(Ht.gasLimit):kt.Long.UZERO,an.payer=Ht.payer??"",an.granter=Ht.granter??"",an}};function Mt(){return{amount:[],tipper:""}}d.Tip={encode(Ht,an=Pt.Writer.create()){for(const yt of Ht.amount)vt.Coin.encode(yt,an.uint32(10).fork()).ldelim();return Ht.tipper!==""&&an.uint32(18).string(Ht.tipper),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Mt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.amount.push(vt.Coin.decode(yt,yt.uint32()));break;case 2:Yt.tipper=yt.string();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{amount:Array.isArray(Ht==null?void 0:Ht.amount)?Ht.amount.map(an=>vt.Coin.fromJSON(an)):[],tipper:(0,kt.isSet)(Ht.tipper)?String(Ht.tipper):""}},toJSON(Ht){const an={};return Ht.amount?an.amount=Ht.amount.map(yt=>yt?vt.Coin.toJSON(yt):void 0):an.amount=[],Ht.tipper!==void 0&&(an.tipper=Ht.tipper),an},fromPartial(Ht){var yt;const an=Mt();return an.amount=((yt=Ht.amount)==null?void 0:yt.map($t=>vt.Coin.fromPartial($t)))||[],an.tipper=Ht.tipper??"",an}};function jt(){return{address:"",signDoc:void 0,mode:0,sig:new Uint8Array}}d.AuxSignerData={encode(Ht,an=Pt.Writer.create()){return Ht.address!==""&&an.uint32(10).string(Ht.address),Ht.signDoc!==void 0&&d.SignDocDirectAux.encode(Ht.signDoc,an.uint32(18).fork()).ldelim(),Ht.mode!==0&&an.uint32(24).int32(Ht.mode),Ht.sig.length!==0&&an.uint32(34).bytes(Ht.sig),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=jt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.address=yt.string();break;case 2:Yt.signDoc=d.SignDocDirectAux.decode(yt,yt.uint32());break;case 3:Yt.mode=yt.int32();break;case 4:Yt.sig=yt.bytes();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{address:(0,kt.isSet)(Ht.address)?String(Ht.address):"",signDoc:(0,kt.isSet)(Ht.signDoc)?d.SignDocDirectAux.fromJSON(Ht.signDoc):void 0,mode:(0,kt.isSet)(Ht.mode)?(0,ht.signModeFromJSON)(Ht.mode):0,sig:(0,kt.isSet)(Ht.sig)?(0,kt.bytesFromBase64)(Ht.sig):new Uint8Array}},toJSON(Ht){const an={};return Ht.address!==void 0&&(an.address=Ht.address),Ht.signDoc!==void 0&&(an.signDoc=Ht.signDoc?d.SignDocDirectAux.toJSON(Ht.signDoc):void 0),Ht.mode!==void 0&&(an.mode=(0,ht.signModeToJSON)(Ht.mode)),Ht.sig!==void 0&&(an.sig=(0,kt.base64FromBytes)(Ht.sig!==void 0?Ht.sig:new Uint8Array)),an},fromPartial(Ht){const an=jt();return an.address=Ht.address??"",an.signDoc=Ht.signDoc!==void 0&&Ht.signDoc!==null?d.SignDocDirectAux.fromPartial(Ht.signDoc):void 0,an.mode=Ht.mode??0,an.sig=Ht.sig??new Uint8Array,an}}})(tx$r);Object.defineProperty(decode$1,"__esModule",{value:!0});decode$1.decodeTxRaw=void 0;const tx_1$h=tx$r;function decodeTxRaw(d){const b=tx_1$h.TxRaw.decode(d);return{authInfo:tx_1$h.AuthInfo.decode(b.authInfoBytes),body:tx_1$h.TxBody.decode(b.bodyBytes),signatures:b.signatures}}decode$1.decodeTxRaw=decodeTxRaw;var directsecp256k1hdwallet={},build$c={},addresses$1={},build$b={},bip39={},build$a={},ascii$4={};Object.defineProperty(ascii$4,"__esModule",{value:!0});ascii$4.fromAscii=ascii$4.toAscii=void 0;function toAscii$4(d){const b=dt=>dt.split("").map(ct=>{const lt=ct.charCodeAt(0);if(lt<32||lt>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+lt);return lt});return Uint8Array.from(b(d))}ascii$4.toAscii=toAscii$4;function fromAscii$4(d){return(dt=>dt.map(ct=>{if(ct<32||ct>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+ct);return String.fromCharCode(ct)}))(Array.from(d)).join("")}ascii$4.fromAscii=fromAscii$4;var base64$6={},__createBinding$C=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$C=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$C=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$C(b,d,dt);return __setModuleDefault$C(b,d),b};Object.defineProperty(base64$6,"__esModule",{value:!0});base64$6.fromBase64=base64$6.toBase64=void 0;const base64js$4=__importStar$C(base64Js);function toBase64$4(d){return base64js$4.fromByteArray(d)}base64$6.toBase64=toBase64$4;function fromBase64$4(d){if(!d.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return base64js$4.toByteArray(d)}base64$6.fromBase64=fromBase64$4;var bech32$9={},__createBinding$B=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$B=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$B=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$B(b,d,dt);return __setModuleDefault$B(b,d),b};Object.defineProperty(bech32$9,"__esModule",{value:!0});bech32$9.normalizeBech32=bech32$9.fromBech32=bech32$9.toBech32=void 0;const bech32$8=__importStar$B(bech32$d);function toBech32$4(d,b,dt){return bech32$8.encode(d,bech32$8.toWords(b),dt)}bech32$9.toBech32=toBech32$4;function fromBech32$4(d,b=1/0){const dt=bech32$8.decode(d,b);return{prefix:dt.prefix,data:new Uint8Array(bech32$8.fromWords(dt.words))}}bech32$9.fromBech32=fromBech32$4;function normalizeBech32$4(d){const{prefix:b,data:dt}=fromBech32$4(d);return toBech32$4(b,dt)}bech32$9.normalizeBech32=normalizeBech32$4;var hex$4={};Object.defineProperty(hex$4,"__esModule",{value:!0});hex$4.fromHex=hex$4.toHex=void 0;function toHex$5(d){let b="";for(const dt of d)b+=("0"+dt.toString(16)).slice(-2);return b}hex$4.toHex=toHex$5;function fromHex$4(d){if(d.length%2!==0)throw new Error("hex string length must be a multiple of 2");const b=new Uint8Array(d.length/2);for(let dt=0;dtsetTimeout(b,d))}sleep$2.sleep=sleep$1;var typechecks={};Object.defineProperty(typechecks,"__esModule",{value:!0});typechecks.isDefined=typechecks.isUint8Array=typechecks.isNonNullObject=void 0;function isNonNullObject(d){return typeof d=="object"&&d!==null}typechecks.isNonNullObject=isNonNullObject;function isUint8Array(d){return!(!isNonNullObject(d)||Object.prototype.toString.call(d)!=="[object Uint8Array]"||typeof Buffer$1<"u"&&typeof Buffer$1.isBuffer<"u"&&Buffer$1.isBuffer(d))}typechecks.isUint8Array=isUint8Array;function isDefined(d){return d!==void 0}typechecks.isDefined=isDefined;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.isUint8Array=d.isNonNullObject=d.isDefined=d.sleep=d.assertDefinedAndNotNull=d.assertDefined=d.assert=d.arrayContentStartsWith=d.arrayContentEquals=void 0;var b=arrays;Object.defineProperty(d,"arrayContentEquals",{enumerable:!0,get:function(){return b.arrayContentEquals}}),Object.defineProperty(d,"arrayContentStartsWith",{enumerable:!0,get:function(){return b.arrayContentStartsWith}});var dt=assert$j;Object.defineProperty(d,"assert",{enumerable:!0,get:function(){return dt.assert}}),Object.defineProperty(d,"assertDefined",{enumerable:!0,get:function(){return dt.assertDefined}}),Object.defineProperty(d,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return dt.assertDefinedAndNotNull}});var ct=sleep$2;Object.defineProperty(d,"sleep",{enumerable:!0,get:function(){return ct.sleep}});var lt=typechecks;Object.defineProperty(d,"isDefined",{enumerable:!0,get:function(){return lt.isDefined}}),Object.defineProperty(d,"isNonNullObject",{enumerable:!0,get:function(){return lt.isNonNullObject}}),Object.defineProperty(d,"isUint8Array",{enumerable:!0,get:function(){return lt.isUint8Array}})})(build$9);var pbkdf2$1={},_assert$1={};Object.defineProperty(_assert$1,"__esModule",{value:!0});_assert$1.output=_assert$1.exists=_assert$1.hash=_assert$1.bytes=_assert$1.bool=_assert$1.number=_assert$1.isBytes=void 0;function number$1(d){if(!Number.isSafeInteger(d)||d<0)throw new Error(`positive integer expected, not ${d}`)}_assert$1.number=number$1;function bool$1(d){if(typeof d!="boolean")throw new Error(`boolean expected, not ${d}`)}_assert$1.bool=bool$1;function isBytes$1(d){return d instanceof Uint8Array||d!=null&&typeof d=="object"&&d.constructor.name==="Uint8Array"}_assert$1.isBytes=isBytes$1;function bytes$1(d,...b){if(!isBytes$1(d))throw new Error("Uint8Array expected");if(b.length>0&&!b.includes(d.length))throw new Error(`Uint8Array expected of length ${b}, not of length=${d.length}`)}_assert$1.bytes=bytes$1;function hash$5(d){if(typeof d!="function"||typeof d.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(d.outputLen),number$1(d.blockLen)}_assert$1.hash=hash$5;function exists$1(d,b=!0){if(d.destroyed)throw new Error("Hash instance has been destroyed");if(b&&d.finished)throw new Error("Hash#digest() has already been called")}_assert$1.exists=exists$1;function output$1(d,b){bytes$1(d);const dt=b.outputLen;if(d.lengthnew Uint8Array(Kt.buffer,Kt.byteOffset,Kt.byteLength);d.u8=lt;const ht=Kt=>new Uint32Array(Kt.buffer,Kt.byteOffset,Math.floor(Kt.byteLength/4));d.u32=ht;const mt=Kt=>new DataView(Kt.buffer,Kt.byteOffset,Kt.byteLength);d.createView=mt;const vt=(Kt,St)=>Kt<<32-St|Kt>>>St;d.rotr=vt;const kt=(Kt,St)=>Kt<>>32-St>>>0;d.rotl=kt,d.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const Pt=Kt=>Kt<<24&4278190080|Kt<<8&16711680|Kt>>>8&65280|Kt>>>24&255;d.byteSwap=Pt,d.byteSwapIfBE=d.isLE?Kt=>Kt:Kt=>(0,d.byteSwap)(Kt);function Jt(Kt){for(let St=0;StSt.toString(16).padStart(2,"0"));function Rt(Kt){(0,dt.bytes)(Kt);let St="";for(let It=0;It=nn._0&&Kt<=nn._9)return Kt-nn._0;if(Kt>=nn._A&&Kt<=nn._F)return Kt-(nn._A-10);if(Kt>=nn._a&&Kt<=nn._f)return Kt-(nn._a-10)}function wt(Kt){if(typeof Kt!="string")throw new Error("hex string expected, got "+typeof Kt);const St=Kt.length,It=St/2;if(St%2)throw new Error("padded hex string expected, got unpadded hex of length "+St);const Gt=new Uint8Array(It);for(let Ut=0,Vt=0;Ut{};d.nextTick=Nt;async function xt(Kt,St,It){let Gt=Date.now();for(let Ut=0;Ut=0&&VtKt().update(Bt(Gt)).digest(),It=Kt();return St.outputLen=It.outputLen,St.blockLen=It.blockLen,St.create=()=>Kt(),St}d.wrapConstructor=an;function yt(Kt){const St=(Gt,Ut)=>Kt(Ut).update(Bt(Gt)).digest(),It=Kt({});return St.outputLen=It.outputLen,St.blockLen=It.blockLen,St.create=Gt=>Kt(Gt),St}d.wrapConstructorWithOpts=yt;function $t(Kt){const St=(Gt,Ut)=>Kt(Ut).update(Bt(Gt)).digest(),It=Kt({});return St.outputLen=It.outputLen,St.blockLen=It.blockLen,St.create=Gt=>Kt(Gt),St}d.wrapXOFConstructorWithOpts=$t;function Yt(Kt=32){if(b.crypto&&typeof b.crypto.getRandomValues=="function")return b.crypto.getRandomValues(new Uint8Array(Kt));throw new Error("crypto.getRandomValues must be defined")}d.randomBytes=Yt})(utils$E);(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.hmac=d.HMAC=void 0;const b=_assert$1,dt=utils$E;class ct extends dt.Hash{constructor(mt,vt){super(),this.finished=!1,this.destroyed=!1,(0,b.hash)(mt);const kt=(0,dt.toBytes)(vt);if(this.iHash=mt.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const Pt=this.blockLen,Jt=new Uint8Array(Pt);Jt.set(kt.length>Pt?mt.create().update(kt).digest():kt);for(let Zt=0;Ztnew ct(ht,mt).update(vt).digest();d.hmac=lt,d.hmac.create=(ht,mt)=>new ct(ht,mt)})(hmac$2);Object.defineProperty(pbkdf2$1,"__esModule",{value:!0});pbkdf2$1.pbkdf2Async=pbkdf2$1.pbkdf2=void 0;const _assert_js_1$3=_assert$1,hmac_js_1=hmac$2,utils_js_1$9=utils$E;function pbkdf2Init(d,b,dt,ct){(0,_assert_js_1$3.hash)(d);const lt=(0,utils_js_1$9.checkOpts)({dkLen:32,asyncTick:10},ct),{c:ht,dkLen:mt,asyncTick:vt}=lt;if((0,_assert_js_1$3.number)(ht),(0,_assert_js_1$3.number)(mt),(0,_assert_js_1$3.number)(vt),ht<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const kt=(0,utils_js_1$9.toBytes)(b),Pt=(0,utils_js_1$9.toBytes)(dt),Jt=new Uint8Array(mt),Zt=hmac_js_1.hmac.create(d,kt),Rt=Zt._cloneInto().update(Pt);return{c:ht,dkLen:mt,asyncTick:vt,DK:Jt,PRF:Zt,PRFSalt:Rt}}function pbkdf2Output(d,b,dt,ct,lt){return d.destroy(),b.destroy(),ct&&ct.destroy(),lt.fill(0),dt}function pbkdf2(d,b,dt,ct){const{c:lt,dkLen:ht,DK:mt,PRF:vt,PRFSalt:kt}=pbkdf2Init(d,b,dt,ct);let Pt;const Jt=new Uint8Array(4),Zt=(0,utils_js_1$9.createView)(Jt),Rt=new Uint8Array(vt.outputLen);for(let nn=1,Qt=0;Qt{kt._cloneInto(Jt).update(nn).digestInto(nn);for(let xt=0;xt>lt&ht),vt=Number(dt&ht),kt=ct?4:0,Pt=ct?0:4;d.setUint32(b+kt,mt,ct),d.setUint32(b+Pt,vt,ct)}const Chi$1=(d,b,dt)=>d&b^~d&dt;_md$1.Chi=Chi$1;const Maj$1=(d,b,dt)=>d&b^d&dt^b&dt;_md$1.Maj=Maj$1;let HashMD$1=class extends utils_js_1$8.Hash{constructor(b,dt,ct,lt){super(),this.blockLen=b,this.outputLen=dt,this.padOffset=ct,this.isLE=lt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(b),this.view=(0,utils_js_1$8.createView)(this.buffer)}update(b){(0,_assert_js_1$2.exists)(this);const{view:dt,buffer:ct,blockLen:lt}=this;b=(0,utils_js_1$8.toBytes)(b);const ht=b.length;for(let mt=0;mtlt-mt&&(this.process(ct,0),mt=0);for(let Zt=mt;ZtJt.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;Zt>_32n$1&U32_MASK64$1)}:{h:Number(d>>_32n$1&U32_MASK64$1)|0,l:Number(d&U32_MASK64$1)|0}}_u64$1.fromBig=fromBig$1;function split$1(d,b=!1){let dt=new Uint32Array(d.length),ct=new Uint32Array(d.length);for(let lt=0;ltBigInt(d>>>0)<<_32n$1|BigInt(b>>>0);_u64$1.toBig=toBig$1;const shrSH$1=(d,b,dt)=>d>>>dt;_u64$1.shrSH=shrSH$1;const shrSL$1=(d,b,dt)=>d<<32-dt|b>>>dt;_u64$1.shrSL=shrSL$1;const rotrSH$1=(d,b,dt)=>d>>>dt|b<<32-dt;_u64$1.rotrSH=rotrSH$1;const rotrSL$1=(d,b,dt)=>d<<32-dt|b>>>dt;_u64$1.rotrSL=rotrSL$1;const rotrBH$1=(d,b,dt)=>d<<64-dt|b>>>dt-32;_u64$1.rotrBH=rotrBH$1;const rotrBL$1=(d,b,dt)=>d>>>dt-32|b<<64-dt;_u64$1.rotrBL=rotrBL$1;const rotr32H$1=(d,b)=>b;_u64$1.rotr32H=rotr32H$1;const rotr32L$1=(d,b)=>d;_u64$1.rotr32L=rotr32L$1;const rotlSH$1=(d,b,dt)=>d<>>32-dt;_u64$1.rotlSH=rotlSH$1;const rotlSL$1=(d,b,dt)=>b<>>32-dt;_u64$1.rotlSL=rotlSL$1;const rotlBH$1=(d,b,dt)=>b<>>64-dt;_u64$1.rotlBH=rotlBH$1;const rotlBL$1=(d,b,dt)=>d<>>64-dt;_u64$1.rotlBL=rotlBL$1;function add$1(d,b,dt,ct){const lt=(b>>>0)+(ct>>>0);return{h:d+dt+(lt/2**32|0)|0,l:lt|0}}_u64$1.add=add$1;const add3L$1=(d,b,dt)=>(d>>>0)+(b>>>0)+(dt>>>0);_u64$1.add3L=add3L$1;const add3H$1=(d,b,dt,ct)=>b+dt+ct+(d/2**32|0)|0;_u64$1.add3H=add3H$1;const add4L$1=(d,b,dt,ct)=>(d>>>0)+(b>>>0)+(dt>>>0)+(ct>>>0);_u64$1.add4L=add4L$1;const add4H$1=(d,b,dt,ct,lt)=>b+dt+ct+lt+(d/2**32|0)|0;_u64$1.add4H=add4H$1;const add5L$1=(d,b,dt,ct,lt)=>(d>>>0)+(b>>>0)+(dt>>>0)+(ct>>>0)+(lt>>>0);_u64$1.add5L=add5L$1;const add5H$1=(d,b,dt,ct,lt,ht)=>b+dt+ct+lt+ht+(d/2**32|0)|0;_u64$1.add5H=add5H$1;const u64$1={fromBig:fromBig$1,split:split$1,toBig:toBig$1,shrSH:shrSH$1,shrSL:shrSL$1,rotrSH:rotrSH$1,rotrSL:rotrSL$1,rotrBH:rotrBH$1,rotrBL:rotrBL$1,rotr32H:rotr32H$1,rotr32L:rotr32L$1,rotlSH:rotlSH$1,rotlSL:rotlSL$1,rotlBH:rotlBH$1,rotlBL:rotlBL$1,add:add$1,add3L:add3L$1,add3H:add3H$1,add4L:add4L$1,add4H:add4H$1,add5H:add5H$1,add5L:add5L$1};_u64$1.default=u64$1;Object.defineProperty(sha512$6,"__esModule",{value:!0});sha512$6.sha384=sha512$6.sha512_256=sha512$6.sha512_224=sha512$6.sha512=sha512$6.SHA512=void 0;const _md_js_1$5=_md$1,_u64_js_1$2=_u64$1,utils_js_1$7=utils$E,[SHA512_Kh$1,SHA512_Kl$1]=(()=>_u64_js_1$2.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(d=>BigInt(d))))(),SHA512_W_H$1=new Uint32Array(80),SHA512_W_L$1=new Uint32Array(80);let SHA512$3=class extends _md_js_1$5.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:b,Al:dt,Bh:ct,Bl:lt,Ch:ht,Cl:mt,Dh:vt,Dl:kt,Eh:Pt,El:Jt,Fh:Zt,Fl:Rt,Gh:nn,Gl:Qt,Hh:wt,Hl:Nt}=this;return[b,dt,ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt]}set(b,dt,ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt){this.Ah=b|0,this.Al=dt|0,this.Bh=ct|0,this.Bl=lt|0,this.Ch=ht|0,this.Cl=mt|0,this.Dh=vt|0,this.Dl=kt|0,this.Eh=Pt|0,this.El=Jt|0,this.Fh=Zt|0,this.Fl=Rt|0,this.Gh=nn|0,this.Gl=Qt|0,this.Hh=wt|0,this.Hl=Nt|0}process(b,dt){for(let Bt=0;Bt<16;Bt++,dt+=4)SHA512_W_H$1[Bt]=b.getUint32(dt),SHA512_W_L$1[Bt]=b.getUint32(dt+=4);for(let Bt=16;Bt<80;Bt++){const Tt=SHA512_W_H$1[Bt-15]|0,Mt=SHA512_W_L$1[Bt-15]|0,jt=_u64_js_1$2.default.rotrSH(Tt,Mt,1)^_u64_js_1$2.default.rotrSH(Tt,Mt,8)^_u64_js_1$2.default.shrSH(Tt,Mt,7),Ht=_u64_js_1$2.default.rotrSL(Tt,Mt,1)^_u64_js_1$2.default.rotrSL(Tt,Mt,8)^_u64_js_1$2.default.shrSL(Tt,Mt,7),an=SHA512_W_H$1[Bt-2]|0,yt=SHA512_W_L$1[Bt-2]|0,$t=_u64_js_1$2.default.rotrSH(an,yt,19)^_u64_js_1$2.default.rotrBH(an,yt,61)^_u64_js_1$2.default.shrSH(an,yt,6),Yt=_u64_js_1$2.default.rotrSL(an,yt,19)^_u64_js_1$2.default.rotrBL(an,yt,61)^_u64_js_1$2.default.shrSL(an,yt,6),Kt=_u64_js_1$2.default.add4L(Ht,Yt,SHA512_W_L$1[Bt-7],SHA512_W_L$1[Bt-16]),St=_u64_js_1$2.default.add4H(Kt,jt,$t,SHA512_W_H$1[Bt-7],SHA512_W_H$1[Bt-16]);SHA512_W_H$1[Bt]=St|0,SHA512_W_L$1[Bt]=Kt|0}let{Ah:ct,Al:lt,Bh:ht,Bl:mt,Ch:vt,Cl:kt,Dh:Pt,Dl:Jt,Eh:Zt,El:Rt,Fh:nn,Fl:Qt,Gh:wt,Gl:Nt,Hh:xt,Hl:Et}=this;for(let Bt=0;Bt<80;Bt++){const Tt=_u64_js_1$2.default.rotrSH(Zt,Rt,14)^_u64_js_1$2.default.rotrSH(Zt,Rt,18)^_u64_js_1$2.default.rotrBH(Zt,Rt,41),Mt=_u64_js_1$2.default.rotrSL(Zt,Rt,14)^_u64_js_1$2.default.rotrSL(Zt,Rt,18)^_u64_js_1$2.default.rotrBL(Zt,Rt,41),jt=Zt&nn^~Zt&wt,Ht=Rt&Qt^~Rt&Nt,an=_u64_js_1$2.default.add5L(Et,Mt,Ht,SHA512_Kl$1[Bt],SHA512_W_L$1[Bt]),yt=_u64_js_1$2.default.add5H(an,xt,Tt,jt,SHA512_Kh$1[Bt],SHA512_W_H$1[Bt]),$t=an|0,Yt=_u64_js_1$2.default.rotrSH(ct,lt,28)^_u64_js_1$2.default.rotrBH(ct,lt,34)^_u64_js_1$2.default.rotrBH(ct,lt,39),Kt=_u64_js_1$2.default.rotrSL(ct,lt,28)^_u64_js_1$2.default.rotrBL(ct,lt,34)^_u64_js_1$2.default.rotrBL(ct,lt,39),St=ct&ht^ct&vt^ht&vt,It=lt&mt^lt&kt^mt&kt;xt=wt|0,Et=Nt|0,wt=nn|0,Nt=Qt|0,nn=Zt|0,Qt=Rt|0,{h:Zt,l:Rt}=_u64_js_1$2.default.add(Pt|0,Jt|0,yt|0,$t|0),Pt=vt|0,Jt=kt|0,vt=ht|0,kt=mt|0,ht=ct|0,mt=lt|0;const Gt=_u64_js_1$2.default.add3L($t,Kt,It);ct=_u64_js_1$2.default.add3H(Gt,yt,Yt,St),lt=Gt|0}({h:ct,l:lt}=_u64_js_1$2.default.add(this.Ah|0,this.Al|0,ct|0,lt|0)),{h:ht,l:mt}=_u64_js_1$2.default.add(this.Bh|0,this.Bl|0,ht|0,mt|0),{h:vt,l:kt}=_u64_js_1$2.default.add(this.Ch|0,this.Cl|0,vt|0,kt|0),{h:Pt,l:Jt}=_u64_js_1$2.default.add(this.Dh|0,this.Dl|0,Pt|0,Jt|0),{h:Zt,l:Rt}=_u64_js_1$2.default.add(this.Eh|0,this.El|0,Zt|0,Rt|0),{h:nn,l:Qt}=_u64_js_1$2.default.add(this.Fh|0,this.Fl|0,nn|0,Qt|0),{h:wt,l:Nt}=_u64_js_1$2.default.add(this.Gh|0,this.Gl|0,wt|0,Nt|0),{h:xt,l:Et}=_u64_js_1$2.default.add(this.Hh|0,this.Hl|0,xt|0,Et|0),this.set(ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt,xt,Et)}roundClean(){SHA512_W_H$1.fill(0),SHA512_W_L$1.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};sha512$6.SHA512=SHA512$3;let SHA512_224$1=class extends SHA512$3{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}},SHA512_256$1=class extends SHA512$3{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}},SHA384$2=class extends SHA512$3{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};sha512$6.sha512=(0,utils_js_1$7.wrapConstructor)(()=>new SHA512$3);sha512$6.sha512_224=(0,utils_js_1$7.wrapConstructor)(()=>new SHA512_224$1);sha512$6.sha512_256=(0,utils_js_1$7.wrapConstructor)(()=>new SHA512_256$1);sha512$6.sha384=(0,utils_js_1$7.wrapConstructor)(()=>new SHA384$2);var __createBinding$A=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$A=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$A=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$A(b,d,dt);return __setModuleDefault$A(b,d),b};Object.defineProperty(pbkdf2$2,"__esModule",{value:!0});pbkdf2$2.pbkdf2Sha512=pbkdf2$2.pbkdf2Sha512Noble=pbkdf2$2.pbkdf2Sha512NodeCrypto=pbkdf2$2.pbkdf2Sha512Subtle=pbkdf2$2.getSubtle=pbkdf2$2.getNodeCrypto=void 0;const utils_1$n=build$9,pbkdf2_1$1=pbkdf2$1,sha512_1$2=sha512$6;async function getNodeCrypto(){try{const d=await Promise.resolve().then(()=>__importStar$A(require$$0$3));return typeof d=="object"&&Object.keys(d).length<=1?void 0:d}catch{return}}pbkdf2$2.getNodeCrypto=getNodeCrypto;async function getSubtle(){var b,dt,ct;let d=(b=globalThis==null?void 0:globalThis.crypto)==null?void 0:b.subtle;return d||(d=(ct=(dt=globalThis==null?void 0:globalThis.crypto)==null?void 0:dt.webcrypto)==null?void 0:ct.subtle),d}pbkdf2$2.getSubtle=getSubtle;async function pbkdf2Sha512Subtle(d,b,dt,ct,lt){return(0,utils_1$n.assert)(d,"Argument subtle is falsy"),(0,utils_1$n.assert)(typeof d=="object","Argument subtle is not of type object"),(0,utils_1$n.assert)(typeof d.importKey=="function","subtle.importKey is not a function"),(0,utils_1$n.assert)(typeof d.deriveBits=="function","subtle.deriveBits is not a function"),d.importKey("raw",b,{name:"PBKDF2"},!1,["deriveBits"]).then(ht=>d.deriveBits({name:"PBKDF2",salt:dt,iterations:ct,hash:{name:"SHA-512"}},ht,lt*8).then(mt=>new Uint8Array(mt)))}pbkdf2$2.pbkdf2Sha512Subtle=pbkdf2Sha512Subtle;async function pbkdf2Sha512NodeCrypto(d,b,dt,ct,lt){return(0,utils_1$n.assert)(d,"Argument nodeCrypto is falsy"),(0,utils_1$n.assert)(typeof d=="object","Argument nodeCrypto is not of type object"),(0,utils_1$n.assert)(typeof d.pbkdf2=="function","nodeCrypto.pbkdf2 is not a function"),new Promise((ht,mt)=>{d.pbkdf2(b,dt,ct,lt,"sha512",(vt,kt)=>{vt?mt(vt):ht(Uint8Array.from(kt))})})}pbkdf2$2.pbkdf2Sha512NodeCrypto=pbkdf2Sha512NodeCrypto;async function pbkdf2Sha512Noble(d,b,dt,ct){return(0,pbkdf2_1$1.pbkdf2Async)(sha512_1$2.sha512,d,b,{c:dt,dkLen:ct})}pbkdf2$2.pbkdf2Sha512Noble=pbkdf2Sha512Noble;async function pbkdf2Sha512(d,b,dt,ct){const lt=await getSubtle();if(lt)return pbkdf2Sha512Subtle(lt,d,b,dt,ct);{const ht=await getNodeCrypto();return ht?pbkdf2Sha512NodeCrypto(ht,d,b,dt,ct):pbkdf2Sha512Noble(d,b,dt,ct)}}pbkdf2$2.pbkdf2Sha512=pbkdf2Sha512;var sha$2={},sha256$6={};Object.defineProperty(sha256$6,"__esModule",{value:!0});sha256$6.sha224=sha256$6.sha256=void 0;const _md_js_1$4=_md$1,utils_js_1$6=utils$E,SHA256_K$1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),SHA256_IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$3=class extends _md_js_1$4.HashMD{constructor(){super(64,32,8,!1),this.A=SHA256_IV$1[0]|0,this.B=SHA256_IV$1[1]|0,this.C=SHA256_IV$1[2]|0,this.D=SHA256_IV$1[3]|0,this.E=SHA256_IV$1[4]|0,this.F=SHA256_IV$1[5]|0,this.G=SHA256_IV$1[6]|0,this.H=SHA256_IV$1[7]|0}get(){const{A:b,B:dt,C:ct,D:lt,E:ht,F:mt,G:vt,H:kt}=this;return[b,dt,ct,lt,ht,mt,vt,kt]}set(b,dt,ct,lt,ht,mt,vt,kt){this.A=b|0,this.B=dt|0,this.C=ct|0,this.D=lt|0,this.E=ht|0,this.F=mt|0,this.G=vt|0,this.H=kt|0}process(b,dt){for(let Zt=0;Zt<16;Zt++,dt+=4)SHA256_W$1[Zt]=b.getUint32(dt,!1);for(let Zt=16;Zt<64;Zt++){const Rt=SHA256_W$1[Zt-15],nn=SHA256_W$1[Zt-2],Qt=(0,utils_js_1$6.rotr)(Rt,7)^(0,utils_js_1$6.rotr)(Rt,18)^Rt>>>3,wt=(0,utils_js_1$6.rotr)(nn,17)^(0,utils_js_1$6.rotr)(nn,19)^nn>>>10;SHA256_W$1[Zt]=wt+SHA256_W$1[Zt-7]+Qt+SHA256_W$1[Zt-16]|0}let{A:ct,B:lt,C:ht,D:mt,E:vt,F:kt,G:Pt,H:Jt}=this;for(let Zt=0;Zt<64;Zt++){const Rt=(0,utils_js_1$6.rotr)(vt,6)^(0,utils_js_1$6.rotr)(vt,11)^(0,utils_js_1$6.rotr)(vt,25),nn=Jt+Rt+(0,_md_js_1$4.Chi)(vt,kt,Pt)+SHA256_K$1[Zt]+SHA256_W$1[Zt]|0,wt=((0,utils_js_1$6.rotr)(ct,2)^(0,utils_js_1$6.rotr)(ct,13)^(0,utils_js_1$6.rotr)(ct,22))+(0,_md_js_1$4.Maj)(ct,lt,ht)|0;Jt=Pt,Pt=kt,kt=vt,vt=mt+nn|0,mt=ht,ht=lt,lt=ct,ct=nn+wt|0}ct=ct+this.A|0,lt=lt+this.B|0,ht=ht+this.C|0,mt=mt+this.D|0,vt=vt+this.E|0,kt=kt+this.F|0,Pt=Pt+this.G|0,Jt=Jt+this.H|0,this.set(ct,lt,ht,mt,vt,kt,Pt,Jt)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},SHA224$2=class extends SHA256$3{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};sha256$6.sha256=(0,utils_js_1$6.wrapConstructor)(()=>new SHA256$3);sha256$6.sha224=(0,utils_js_1$6.wrapConstructor)(()=>new SHA224$2);var utils$D={};Object.defineProperty(utils$D,"__esModule",{value:!0});utils$D.toRealUint8Array=void 0;function toRealUint8Array(d){return d instanceof Uint8Array?d:Uint8Array.from(d)}utils$D.toRealUint8Array=toRealUint8Array;Object.defineProperty(sha$2,"__esModule",{value:!0});sha$2.sha512=sha$2.Sha512=sha$2.sha256=sha$2.Sha256=void 0;const sha256_1$1=sha256$6,sha512_1$1=sha512$6,utils_1$m=utils$D;class Sha256{constructor(b){this.blockSize=512/8,this.impl=sha256_1$1.sha256.create(),b&&this.update(b)}update(b){return this.impl.update((0,utils_1$m.toRealUint8Array)(b)),this}digest(){return this.impl.digest()}}sha$2.Sha256=Sha256;function sha256$5(d){return new Sha256(d).digest()}sha$2.sha256=sha256$5;class Sha512{constructor(b){this.blockSize=1024/8,this.impl=sha512_1$1.sha512.create(),b&&this.update(b)}update(b){return this.impl.update((0,utils_1$m.toRealUint8Array)(b)),this}digest(){return this.impl.digest()}}sha$2.Sha512=Sha512;function sha512$5(d){return new Sha512(d).digest()}sha$2.sha512=sha512$5;Object.defineProperty(bip39,"__esModule",{value:!0});bip39.Bip39=bip39.EnglishMnemonic=bip39.mnemonicToEntropy=bip39.entropyToMnemonic=void 0;const encoding_1$x=build$a,pbkdf2_1=pbkdf2$2,sha_1=sha$2,wordlist$2=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function bytesToBitstring(d){return Array.from(d).map(b=>b.toString(2).padStart(8,"0")).join("")}function deriveChecksumBits(d){const dt=d.length*8/32,ct=(0,sha_1.sha256)(d);return bytesToBitstring(ct).slice(0,dt)}function bitstringToByte(d){return parseInt(d,2)}const allowedEntropyLengths=[16,20,24,28,32],allowedWordLengths=[12,15,18,21,24];function entropyToMnemonic(d){if(allowedEntropyLengths.indexOf(d.length)===-1)throw new Error("invalid input length");const b=bytesToBitstring(d),dt=deriveChecksumBits(d);return(b+dt).match(/(.{11})/g).map(mt=>{const vt=bitstringToByte(mt);return wordlist$2[vt]}).join(" ")}bip39.entropyToMnemonic=entropyToMnemonic;const invalidNumberOfWorks="Invalid number of words",wordNotInWordlist="Found word that is not in the wordlist",invalidEntropy="Invalid entropy",invalidChecksum="Invalid mnemonic checksum";function normalize(d){return d.normalize("NFKD")}function mnemonicToEntropy$1(d){const b=normalize(d).split(" ");if(!allowedWordLengths.includes(b.length))throw new Error(invalidNumberOfWorks);const dt=b.map(Pt=>{const Jt=wordlist$2.indexOf(Pt);if(Jt===-1)throw new Error(wordNotInWordlist);return Jt.toString(2).padStart(11,"0")}).join(""),ct=Math.floor(dt.length/33)*32,lt=dt.slice(0,ct),ht=dt.slice(ct),mt=lt.match(/(.{1,8})/g).map(bitstringToByte);if(mt.length<16||mt.length>32||mt.length%4!==0)throw new Error(invalidEntropy);const vt=Uint8Array.from(mt);if(deriveChecksumBits(vt)!==ht)throw new Error(invalidChecksum);return vt}bip39.mnemonicToEntropy=mnemonicToEntropy$1;class EnglishMnemonic{constructor(b){if(!EnglishMnemonic.mnemonicMatcher.test(b))throw new Error("Invalid mnemonic format");const dt=b.split(" "),ct=[12,15,18,21,24];if(ct.indexOf(dt.length)===-1)throw new Error(`Invalid word count in mnemonic (allowed: ${ct} got: ${dt.length})`);for(const lt of dt)if(EnglishMnemonic.wordlist.indexOf(lt)===-1)throw new Error("Mnemonic contains invalid word");mnemonicToEntropy$1(b),this.data=b}toString(){return this.data}}bip39.EnglishMnemonic=EnglishMnemonic;EnglishMnemonic.wordlist=wordlist$2;EnglishMnemonic.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;class Bip39{static encode(b){return new EnglishMnemonic(entropyToMnemonic(b))}static decode(b){return mnemonicToEntropy$1(b.toString())}static async mnemonicToSeed(b,dt){const ct=(0,encoding_1$x.toUtf8)(normalize(b.toString())),lt="mnemonic"+(dt?normalize(dt):""),ht=(0,encoding_1$x.toUtf8)(lt);return(0,pbkdf2_1.pbkdf2Sha512)(ct,ht,2048,64)}}bip39.Bip39=Bip39;var hmac$1={};Object.defineProperty(hmac$1,"__esModule",{value:!0});hmac$1.Hmac=void 0;let Hmac$1=class{constructor(b,dt){const ct=new b().blockSize;this.hash=ht=>new b().update(ht).digest();let lt=dt;if(lt.length>ct&&(lt=this.hash(lt)),lt.lengthht^92),this.iKeyPad=lt.map(ht=>ht^54),this.messageHasher=new b,this.blockSize=ct,this.update(this.iKeyPad)}update(b){return this.messageHasher.update(b),this}digest(){const b=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...b]))}};hmac$1.Hmac=Hmac$1;var keccak={},sha3={};Object.defineProperty(sha3,"__esModule",{value:!0});sha3.shake256=sha3.shake128=sha3.keccak_512=sha3.keccak_384=sha3.keccak_256=sha3.keccak_224=sha3.sha3_512=sha3.sha3_384=sha3.sha3_256=sha3.sha3_224=sha3.Keccak=sha3.keccakP=void 0;const _assert_js_1$1=_assert$1,_u64_js_1$1=_u64$1,utils_js_1$5=utils$E,SHA3_PI=[],SHA3_ROTL=[],_SHA3_IOTA=[],_0n=BigInt(0),_1n=BigInt(1),_2n=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let d=0,b=_1n,dt=1,ct=0;d<24;d++){[dt,ct]=[ct,(2*dt+3*ct)%5],SHA3_PI.push(2*(5*ct+dt)),SHA3_ROTL.push((d+1)*(d+2)/2%64);let lt=_0n;for(let ht=0;ht<7;ht++)b=(b<<_1n^(b>>_7n)*_0x71n)%_256n,b&_2n&&(lt^=_1n<<(_1n<dt>32?(0,_u64_js_1$1.rotlBH)(d,b,dt):(0,_u64_js_1$1.rotlSH)(d,b,dt),rotlL=(d,b,dt)=>dt>32?(0,_u64_js_1$1.rotlBL)(d,b,dt):(0,_u64_js_1$1.rotlSL)(d,b,dt);function keccakP(d,b=24){const dt=new Uint32Array(10);for(let ct=24-b;ct<24;ct++){for(let mt=0;mt<10;mt++)dt[mt]=d[mt]^d[mt+10]^d[mt+20]^d[mt+30]^d[mt+40];for(let mt=0;mt<10;mt+=2){const vt=(mt+8)%10,kt=(mt+2)%10,Pt=dt[kt],Jt=dt[kt+1],Zt=rotlH(Pt,Jt,1)^dt[vt],Rt=rotlL(Pt,Jt,1)^dt[vt+1];for(let nn=0;nn<50;nn+=10)d[mt+nn]^=Zt,d[mt+nn+1]^=Rt}let lt=d[2],ht=d[3];for(let mt=0;mt<24;mt++){const vt=SHA3_ROTL[mt],kt=rotlH(lt,ht,vt),Pt=rotlL(lt,ht,vt),Jt=SHA3_PI[mt];lt=d[Jt],ht=d[Jt+1],d[Jt]=kt,d[Jt+1]=Pt}for(let mt=0;mt<50;mt+=10){for(let vt=0;vt<10;vt++)dt[vt]=d[mt+vt];for(let vt=0;vt<10;vt++)d[mt+vt]^=~dt[(vt+2)%10]&dt[(vt+4)%10]}d[0]^=SHA3_IOTA_H[ct],d[1]^=SHA3_IOTA_L[ct]}dt.fill(0)}sha3.keccakP=keccakP;class Keccak extends utils_js_1$5.Hash{constructor(b,dt,ct,lt=!1,ht=24){if(super(),this.blockLen=b,this.suffix=dt,this.outputLen=ct,this.enableXOF=lt,this.rounds=ht,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,_assert_js_1$1.number)(ct),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,utils_js_1$5.u32)(this.state)}keccak(){utils_js_1$5.isLE||(0,utils_js_1$5.byteSwap32)(this.state32),keccakP(this.state32,this.rounds),utils_js_1$5.isLE||(0,utils_js_1$5.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(b){(0,_assert_js_1$1.exists)(this);const{blockLen:dt,state:ct}=this;b=(0,utils_js_1$5.toBytes)(b);const lt=b.length;for(let ht=0;ht=ct&&this.keccak();const mt=Math.min(ct-this.posOut,ht-lt);b.set(dt.subarray(this.posOut,this.posOut+mt),lt),this.posOut+=mt,lt+=mt}return b}xofInto(b){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(b)}xof(b){return(0,_assert_js_1$1.number)(b),this.xofInto(new Uint8Array(b))}digestInto(b){if((0,_assert_js_1$1.output)(b,this),this.finished)throw new Error("digest() was already called");return this.writeInto(b),this.destroy(),b}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(b){const{blockLen:dt,suffix:ct,outputLen:lt,rounds:ht,enableXOF:mt}=this;return b||(b=new Keccak(dt,ct,lt,mt,ht)),b.state32.set(this.state32),b.pos=this.pos,b.posOut=this.posOut,b.finished=this.finished,b.rounds=ht,b.suffix=ct,b.outputLen=lt,b.enableXOF=mt,b.destroyed=this.destroyed,b}}sha3.Keccak=Keccak;const gen=(d,b,dt)=>(0,utils_js_1$5.wrapConstructor)(()=>new Keccak(b,d,dt));sha3.sha3_224=gen(6,144,224/8);sha3.sha3_256=gen(6,136,256/8);sha3.sha3_384=gen(6,104,384/8);sha3.sha3_512=gen(6,72,512/8);sha3.keccak_224=gen(1,144,224/8);sha3.keccak_256=gen(1,136,256/8);sha3.keccak_384=gen(1,104,384/8);sha3.keccak_512=gen(1,72,512/8);const genShake=(d,b,dt)=>(0,utils_js_1$5.wrapXOFConstructorWithOpts)((ct={})=>new Keccak(b,d,ct.dkLen===void 0?dt:ct.dkLen,!0));sha3.shake128=genShake(31,168,128/8);sha3.shake256=genShake(31,136,256/8);Object.defineProperty(keccak,"__esModule",{value:!0});keccak.keccak256=keccak.Keccak256=void 0;const sha3_1=sha3,utils_1$l=utils$D;class Keccak256{constructor(b){this.blockSize=512/8,this.impl=sha3_1.keccak_256.create(),b&&this.update(b)}update(b){return this.impl.update((0,utils_1$l.toRealUint8Array)(b)),this}digest(){return this.impl.digest()}}keccak.Keccak256=Keccak256;function keccak256(d){return new Keccak256(d).digest()}keccak.keccak256=keccak256;var libsodium={},libsodiumWrappers={};const __dirname="/home/runner/work/ton-connect-wasm/ton-connect-wasm/front/node_modules/libsodium-sumo/dist/modules-sumo";var libsodiumSumo={exports:{}},hasRequiredLibsodiumSumo;function requireLibsodiumSumo(){return hasRequiredLibsodiumSumo||(hasRequiredLibsodiumSumo=1,function(d,b){(function(dt){function ct(lt){var ht;(ht=lt)===void 0&&(ht={});var mt=ht;typeof mt.sodium!="object"&&(typeof commonjsGlobal=="object"?mt=commonjsGlobal:typeof window=="object"&&(mt=window));var vt=ht;return ht.ready=new Promise(function(kt,Pt){(Rt=vt).onAbort=Pt,Rt.print=function(Mn){},Rt.printErr=function(Mn){},Rt.onRuntimeInitialized=function(){try{Rt._crypto_secretbox_keybytes(),kt()}catch(Mn){Pt(Mn)}},Rt.useBackupModule=function(){return new Promise(function(Mn,Zn){(pn={}).onAbort=Zn,pn.onRuntimeInitialized=function(){Object.keys(vt).forEach(function(Fn){Fn!=="getRandomValue"&&delete vt[Fn]}),Object.keys(pn).forEach(function(Fn){vt[Fn]=pn[Fn]}),Mn()};var rr,mr,pn=pn!==void 0?pn:{},Hr=Object.assign({},pn),ao=typeof window=="object",No=typeof importScripts=="function",Ro=typeof browser$1$1=="object"&&typeof browser$1$1.versions=="object"&&typeof browser$1$1.versions.node=="string",br="";if(Ro){var yr=require$$0$3,Qr=require$$0$3;br=No?Qr.dirname(br)+"/":__dirname+"/",rr=(Fn,Yn)=>(Fn=function(qn){return qn.startsWith("file://")}(Fn)?new URL(Fn):Qr.normalize(Fn),yr.readFileSync(Fn,Yn?void 0:"utf8")),mr=Fn=>{var Yn=rr(Fn,!0);return Yn.buffer||(Yn=new Uint8Array(Yn)),Yn},!pn.thisProgram&&browser$1$1.argv.length>1&&browser$1$1.argv[1].replace(/\\/g,"/"),browser$1$1.argv.slice(2),d.exports=pn,pn.inspect=()=>"[Emscripten Module object]"}else(ao||No)&&(No?br=self.location.href:typeof document<"u"&&document.currentScript&&(br=document.currentScript.src),br=br.indexOf("blob:")!==0?br.substr(0,br.replace(/[?#].*/,"").lastIndexOf("/")+1):"",rr=Fn=>{var Yn=new XMLHttpRequest;return Yn.open("GET",Fn,!1),Yn.send(null),Yn.responseText},No&&(mr=Fn=>{var Yn=new XMLHttpRequest;return Yn.open("GET",Fn,!1),Yn.responseType="arraybuffer",Yn.send(null),new Uint8Array(Yn.response)}));pn.print;var Vr,oo=pn.printErr||void 0;Object.assign(pn,Hr),Hr=null,pn.arguments&&pn.arguments,pn.thisProgram&&pn.thisProgram,pn.quit&&pn.quit,pn.wasmBinary&&(Vr=pn.wasmBinary),pn.noExitRuntime;var Lr,po={Memory:function(Fn){this.buffer=new ArrayBuffer(65536*Fn.initial)},Module:function(Fn){},Instance:function(Fn,Yn){this.exports=function(qn){for(var vn,Jn=new Uint8Array(123),ir=25;ir>=0;--ir)Jn[48+ir]=52+ir,Jn[65+ir]=ir,Jn[97+ir]=26+ir;function _r(no,eo,mo){for(var Bo,Ft,ut=0,bt=eo,$a=mo.length,vo=eo+(3*$a>>2)-(mo[$a-2]=="=")-(mo[$a-1]=="=");ut<$a;ut+=4)Bo=Jn[mo.charCodeAt(ut+1)],Ft=Jn[mo.charCodeAt(ut+2)],no[bt++]=Jn[mo.charCodeAt(ut)]<<2|Bo>>4,bt>2),bt>>0>io>>>0?Ct+1|0:Ct)|0,Ct=(tr=(Lt=io)>>>0>(io=io+tr|0)>>>0?Ct+1|0:Ct)+Xo|0,Ar=Yo=io+Vo|0,Yo=Ct=Yo>>>0>>0?Ct+1|0:Ct,io=Tn(io^(bt[At+80|0]|bt[At+81|0]<<8|bt[At+82|0]<<16|bt[At+83|0]<<24)^-79577749,tr^(bt[At+84|0]|bt[At+85|0]<<8|bt[At+86|0]<<16|bt[At+87|0]<<24)^528734635,32),hs=Ct=ln,Ct=Ct+1013904242|0,tr=io,Wn=Ct=(io=io-23791573|0)>>>0<4271175723?Ct+1|0:Ct,Mo=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o+20|0])>>>16|0)|gt))<<29|(gt=(Wt<<=16)|Ar)>>>3,Gn=yo>>>3|0,In,0),pt=ln+pt|0,pt=At>>>0>(gt=At+_i|0)>>>0?pt+1|0:pt,At=Sn(_n,0,On,0),pt=ln+pt|0,Fo=pt=At>>>0>(qo=At+gt|0)>>>0?pt+1|0:pt,Xo=At=pt-((qo>>>0<4293918720)-1|0)|0,gt=(pt=At>>>21|0)+_t|0,_i=gt=(At=(2097151&At)<<11|(yo=qo- -1048576|0)>>>21)>>>0>(tr=At+tr|0)>>>0?gt+1|0:gt,xa=At=gt-((tr>>>0<4293918720)-1|0)|0,wo=(2097151&At)<<11|(Ar=tr- -1048576|0)>>>21,Wt=At>>>21|0,At=Sn(In,0,Cn,0),pt=ln,gt=At,At=Sn(rn,0,mn,0),pt=ln+pt|0,pt=At>>>0>(gt=gt+At|0)>>>0?pt+1|0:pt,na=(At=gt)+(gt=Sn(un,0,On,0))|0,At=ln+pt|0,At=gt>>>0>na>>>0?At+1|0:At,Br=na-(pt=-2097152&(gt=na- -1048576|0))|0,pt=(At-((131071&(_t=At-((na>>>0<4293918720)-1|0)|0))+(pt>>>0>na>>>0)|0)|0)+Wt|0,Er=pt=(At=Br+wo|0)>>>0
>>0?pt+1|0:pt,jr=At,Br=Sn(At,pt,470296,0),wo=ln,pt=Sn(rn,0,On,0),At=ln,Wt=pt,pt=Sn(un,0,In,0),At=ln+At|0,pt=pt>>>0>(Wt=Wt+pt|0)>>>0?At+1|0:At,At=_t>>>21|0,_t=(2097151&_t)<<11|gt>>>21,gt=At+pt|0,_s=_t=(gt=_t>>>0>(Wt=_t+Wt|0)>>>0?gt+1|0:gt)-((Wt>>>0<4293918720)-1|0)|0,At=Wt-(pt=-2097152&(ys=Wt- -1048576|0))|0,so=Wt=gt-((131071&_t)+(pt>>>0>Wt>>>0)|0)|0,pr=pt=tr-(gt=-2097152&Ar)|0,Or=_t=_i-((gt>>>0>tr>>>0)+xa|0)|0,io=At,gt=Sn(At,Wt,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t,At=Sn(ur,0,Mr,0),pt=ln+gt|0,At=At>>>0>(Vo=At+Vo|0)>>>0?pt+1|0:pt,_u=At=(Ks=Vo+Xo|0)>>>0>>0?At+1|0:At,jA=At=At-((Ks>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(mu=Ks- -1048576|0)>>>21,At=(At>>>21|0)+_t|0,Eu=At=gt>>>0>(wu=gt+na|0)>>>0?At+1|0:At,_h=At=At-((wu>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(nu=wu- -1048576|0)>>>21,At=(At>>>21|0)+Wt|0,pt=(gt>>>0>(_t=gt+is|0)>>>0?At+1|0:At)+Ar|0,Ar=(gt=_t+Fo|0)-(At=-2097152&tr)|0,Mo=At=(pt=gt>>>0<_t>>>0?pt+1|0:pt)-((At>>>0>gt>>>0)+Mo|0)|0,ep=At=At-((Ar>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(au=Ar- -1048576|0)>>>21,At=(At>>21)+Es|0,_t=At=gt>>>0>(Wt=gt+ds|0)>>>0?At+1|0:At,Vu=At=At-((Wt>>>0<4293918720)-1|0)|0,iu=(2097151&At)<<11|(is=Wt- -1048576|0)>>>21,Fo=At>>21,ks=xa-(At=-2097152&qo)|0,ls=wo-((At>>>0>xa>>>0)+ls|0)|0,At=Sn(rn,0,In,0),pu=pt=ln,ds=At,Vo=At- -1048576|0,js=pt=pt-((At>>>0<4293918720)-1|0)|0,Po=At=pt>>>21|0,At=Sn(hr=(2097151&pt)<<11|Vo>>>21,At,-683901,-1),pt=ln+_i|0,pt=At>>>0>(gt=At+yo|0)>>>0?pt+1|0:pt,qo=gt-(At=-2097152&Br)|0,tr=pt-((At>>>0>gt>>>0)+vs|0)|0,pt=Sn(Cn,0,er,0),At=ln,gt=pt,pt=Sn(rn,0,lr,0),At=ln+At|0,At=pt>>>0>(gt=gt+pt|0)>>>0?At+1|0:At,pt=Sn(un,0,ur,0),At=ln+At|0,At=pt>>>0>(gt=pt+gt|0)>>>0?At+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=(_i<<=16)|yo)>>>2),pt=gt,yo=At=_i+ls|0,_i=At>>>0<_i>>>0?pt+1|0:pt,ks=Sn(io,so,470296,0),ls=ln,At=(gt=(2097151&_s)<<11|ys>>>21)+(ds-(pt=-2097152&Vo)|0)|0,pt=pu-((524287&js)+(pt>>>0>ds>>>0)|0)+(_s>>>21)|0,Bn=pt=At>>>0>>0?pt+1|0:pt,Wn=At,pt=Sn(At,pt,666643,0),At=ln+ls|0,At=pt>>>0>(gt=pt+ks|0)>>>0?At+1|0:At,Vo=(pt=Sn(jr,Er,654183,0))+gt|0,gt=ln+At|0,gt=pt>>>0>Vo>>>0?gt+1|0:gt,pt=Sn(pr,Or,-997805,-1),At=ln+gt|0,At=pt>>>0>(Vo=pt+Vo|0)>>>0?At+1|0:At,gt=Sn(Eo,ho,136657,0),pt=ln+At|0,os=(At=(2097151&ts)<<11|os>>>21)+(Vo=gt+Vo|0)|0,pt=(ts>>>21|0)+(gt>>>0>Vo>>>0?pt+1|0:pt)|0,js=Vo=_i-((yo>>>0<4293918720)-1|0)|0,At=(At>>>0>os>>>0?pt+1|0:pt)+_i|0,pt=(_i=yo+os|0)-(gt=-2097152&(pu=yo- -1048576|0))|0,gt=(At=(At=_i>>>0>>0?At+1|0:At)-((gt>>>0>_i>>>0)+Vo|0)|0)+Fo|0,ks=_i=At-((pt>>>0<4293918720)-1|0)|0,ds=(gt=(yo=pt+iu|0)>>>0>>0?gt+1|0:gt)-(((pt=-2097152&(ls=pt- -1048576|0))>>>0>yo>>>0)+_i|0)|0,Ls=At=yo-pt|0,_i=Wt,Wt=_t,Nu=Es-(At=-2097152&tr)|0,Vo=qo-((At>>>0>Es>>>0)+Bu|0)|0,At=Sn(Wn,Bn,-683901,-1),pt=ln,_t=(gt=At)+(At=Sn(hr,Po,136657,0))|0,gt=ln+pt|0,pt=Br+(At>>>0>_t>>>0?gt+1|0:gt)|0,wo=(gt=_t+vs|0)-(At=-2097152&wo)|0,qo=(pt=gt>>>0>>0?pt+1|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1|0:At,pt=Sn(un,0,Pr,0),gt=ln+At|0,gt=pt>>>0>(Br=pt+Br|0)>>>0?gt+1|0:gt,At=Sn(er,0,ar,0),pt=ln+gt|0,pt=At>>>0>(Br=At+Br|0)>>>0?pt+1|0:pt,gt=Sn(Hn,Gn,ur,0),At=ln+pt|0,At=gt>>>0>(Br=gt+Br|0)>>>0?At+1|0:At,gt=Sn(Qn,Yo,Ln,0),pt=ln+At|0,pt=gt>>>0>(Br=gt+Br|0)>>>0?pt+1|0:pt,gt=Sn(mn,0,Dr,0),At=ln+pt|0,At=gt>>>0>(Br=gt+Br|0)>>>0?At+1|0:At,pt=Sn(hn,0,hs,0),gt=ln+At|0,gt=pt>>>0>(Br=pt+Br|0)>>>0?gt+1|0:gt,Br=(At=Sn(In,0,Mr,0))+Br|0,pt=ln+gt|0,gt=Sn(On,0,Fr,0),At=ln+(At>>>0>Br>>>0?pt+1|0:pt)|0,Es=At=gt>>>0>(Bu=gt+Br|0)>>>0?At+1|0:At,So=At=At-((Bu>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(_s=Bu- -1048576|0)>>>21,At=(At>>>21|0)+_t|0,ys=At=gt>>>0>(iu=gt+yo|0)>>>0?At+1|0:At,Qo=At=At-((iu>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(ts=iu- -1048576|0)>>>21,At=(At>>>21|0)+Fo|0,os=At=gt>>>0>(vs=gt+tr|0)>>>0?At+1|0:At,$o=At=At-((vs>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(Xo=vs- -1048576|0)>>>21,At=(At>>21)+qo|0,_t=At=gt>>>0>(tr=gt+wo|0)>>>0?At+1|0:At,qo=At=At-((tr>>>0<4293918720)-1|0)|0,Fo=(2097151&At)<<11|(gt=tr- -1048576|0)>>>21,At=(At>>21)+Vo|0,Ou=At=(yo=Fo+Nu|0)>>>0>>0?At+1|0:At,Gs=yo,At=Sn(yo,At,-683901,-1),pt=ln,yo=At,At=Sn(En,Do,136657,0),p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|0]|bt[Ct+11|0]<<8|bt[Ct+12|0]<<16|bt[Ct+13|0]<<24)>>>24,pt=2097151&((1&(pt|=gt=(At=bt[Ct+15|0])>>>16|0))<<31|(At=Ar|At<<16)>>>1),At=_t,tr=gt=pt+tr|0,_t=pt>>>0>gt>>>0?At+1|0:At,Ar=qo>>>4&2097151,At=Sn(zn,0,hs,0),pt=ln,gt=At,At=Sn(or,0,Dr,0),pt=ln+pt|0,pt=At>>>0>(gt=gt+At|0)>>>0?pt+1|0:pt,At=Sn(Cr,0,Mr,0),pt=ln+pt|0,pt=At>>>0>(gt=At+gt|0)>>>0?pt+1|0:pt,qo=(At=gt)+(gt=Sn(lr,0,qr,0))|0,At=ln+pt|0,At=gt>>>0>qo>>>0?At+1|0:At,pt=Sn(Pr,0,Fr,0),gt=ln+At|0,At=pt>>>0>(qo=pt+qo|0)>>>0?gt+1|0:gt,Mo=At=(mu=Ar+qo|0)>>>0>>0?At+1|0:At,To=At=At-((mu>>>0<4293918720)-1|0)|0,pt=(gt=At>>>21|0)+_t|0,xa=pt=(At=(2097151&At)<<11|(is=mu- -1048576|0)>>>21)>>>0>(Eu=At+tr|0)>>>0?pt+1|0:pt,xo=At=pt-((Eu>>>0<4293918720)-1|0)|0,pt=(2097151&At)<<11|(Br=Eu- -1048576|0)>>>21,At=(At>>>21|0)+na|0,qo=At=pt>>>0>(wo=pt+wo|0)>>>0?At+1|0:At,zo=At=At-((wo>>>0<4293918720)-1|0)|0,pt=(gt=At>>21)+Wt|0,jA=pt=(pt=(At=(2097151&At)<<11|(tr=wo- -1048576|0)>>>21)>>>0>(_t=At+Vo|0)>>>0?pt+1|0:pt)-(((gt=-2097152&nu)>>>0>_t>>>0)+_h|0)|0,nu=At=_t-gt|0,Ar=At- -1048576|0,_h=At=pt-((At>>>0<4293918720)-1|0)|0,gt=(pt=At>>21)+_i|0,pt=((At=(2097151&At)<<11|Ar>>>21)>>>0>(_t=At+Vu|0)>>>0?gt+1|0:gt)+yo|0,Ks=pt=(pt=(At=_t)>>>0>(_t=_t+Fo|0)>>>0?pt+1|0:pt)-(((gt=-2097152&au)>>>0>_t>>>0)+ep|0)|0,yo=At=_t-gt|0,Wt=At- -1048576|0,_u=At=pt-((At>>>0<4293918720)-1|0)|0,gt=(pt=At>>21)+np|0,au=At=(gt=(At=(2097151&At)<<11|Wt>>>21)>>>0>(_i=At+tp|0)>>>0?gt+1|0:gt)-((_i>>>0<4293918720)-1|0)|0,Vo=Ls- -1048576|0,na=ds-((Ls>>>0<4293918720)-1|0)|0,Fo=(2097151&At)<<11|(_t=_i- -1048576|0)>>>21,At=(At>>21)+ds|0,ep=(Ls=Fo+Ls|0)-(pt=-2097152&Vo)|0,tp=(Fo>>>0>Ls>>>0?At+1|0:At)-((pt>>>0>Ls>>>0)+na|0)|0,np=_i-(At=-2097152&_t)|0,Vu=gt-((At>>>0>_i>>>0)+au|0)|0,wu=yo-(At=-2097152&Wt)|0,Ls=Ks-((At>>>0>yo>>>0)+_u|0)|0,At=Sn(Gs,Ou,-997805,-1),pt=ln,gt=At,At=Sn(En,Do,654183,0),pt=ln+pt|0,pt=At>>>0>(gt=gt+At|0)>>>0?pt+1|0:pt,_t=(At=gt)+(gt=Sn(Nu,Yr,136657,0))|0,At=ln+pt|0,pt=jA+(gt>>>0>_t>>>0?At+1|0:At)|0,Ks=(gt=_t+nu|0)-(At=-2097152&Ar)|0,_u=(pt=gt>>>0>>0?pt+1|0:pt)-((At>>>0>gt>>>0)+_h|0)|0,nu=vs-(At=-2097152&Xo)|0,ds=os-((At>>>0>vs>>>0)+$o|0)|0,pt=Sn(Wn,Bn,-997805,-1),At=ln,gt=pt,pt=Sn(hr,Po,654183,0),At=ln+At|0,At=pt>>>0>(gt=gt+pt|0)>>>0?At+1|0:At,_t=(pt=gt)+(gt=Sn(io,so,136657,0))|0,pt=ln+At|0,pt=gt>>>0>_t>>>0?pt+1|0:pt,At=Sn(jr,Er,-683901,-1),gt=ln+pt|0,pt=ys+(At>>>0>(_t=At+_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gt=Sn(mn,0,Fr,0),At=ln+pt|0,At=gt>>>0>(_i=gt+_i|0)>>>0?At+1|0:At,gt=Sn(hn,0,Dr,0),pt=ln+At|0,pt=gt>>>0>(_i=gt+_i|0)>>>0?pt+1|0:pt,gt=Sn(In,0,qr,0),At=ln+pt|0,At=gt>>>0>(_i=gt+_i|0)>>>0?At+1|0:At,pt=Sn(On,0,Mr,0),gt=ln+At|0,pt=gt=pt>>>0>(_i=pt+_i|0)>>>0?gt+1|0:gt,ys=(gt=(2097151&js)<<11|pu>>>21)+(At=_t+_i|0)|0,At=(js>>>21|0)+(pt=At>>>0<_i>>>0?pt+1|0:pt)|0,Fo=At=gt>>>0>ys>>>0?At+1|0:At,au=pt=At-((ys>>>0<4293918720)-1|0)|0,gt=(At=pt>>>21|0)+Wt|0,yo=gt=(pt=(2097151&pt)<<11|(Yo=ys- -1048576|0)>>>21)>>>0>(ts=pt+Ar|0)>>>0?gt+1|0:gt,pu=pt=gt-((ts>>>0<4293918720)-1|0)|0,At=(At=pt>>21)+os|0,Ar=At=(pt=(2097151&pt)<<11|(_i=ts- -1048576|0)>>>21)>>>0>(Xo=pt+Xo|0)>>>0?At+1|0:At,_s=pt=At-((Xo>>>0<4293918720)-1|0)|0,gt=(At=pt>>21)+ds|0,js=gt=(pt=(_t=(2097151&pt)<<11|(Wt=Xo- -1048576|0)>>>21)+nu|0)>>>0<_t>>>0?gt+1|0:gt,ds=pt,At=Sn(pt,gt,-683901,-1),pt=ln+_u|0,os=gt=At+Ks|0,_t=At>>>0>gt>>>0?pt+1|0:pt,pt=Sn(En,Do,470296,0),At=ln+qo|0,At=pt>>>0>(wo=pt+wo|0)>>>0?At+1|0:At,pt=Sn(Gs,Ou,654183,0),At=ln+(At-(((gt=-2097152&tr)>>>0>wo>>>0)+zo|0)|0)|0,At=pt>>>0>(tr=pt+(wo-gt|0)|0)>>>0?At+1|0:At,gt=Sn(Nu,Yr,-997805,-1),pt=ln+At|0,pt=gt>>>0>(tr=gt+tr|0)>>>0?pt+1|0:pt,Es=gt=Xo-(At=-2097152&Wt)|0,hs=Ar=Ar-((At>>>0>Xo>>>0)+_s|0)|0,tr=(Wt=Sn(ds,js,136657,0))+tr|0,At=ln+pt|0,gt=Sn(gt,Ar,-683901,-1),pt=ln+(Wt>>>0>tr>>>0?At+1|0:At)|0,Ar=pt=gt>>>0>(qo=gt+tr|0)>>>0?pt+1|0:pt,_s=At=pt-((qo>>>0<4293918720)-1|0)|0,pt=(2097151&At)<<11|(Wt=qo- -1048576|0)>>>21,At=(At>>21)+_t|0,Xo=pt=(At=pt>>>0>(tr=pt+os|0)>>>0?At+1|0:At)-((tr>>>0<4293918720)-1|0)|0,wo=(2097151&pt)<<11|(_t=tr- -1048576|0)>>>21,pt=(pt>>21)+Ls|0,wu=os=wo+wu|0,os=wo>>>0>os>>>0?pt+1|0:pt,Ls=tr-(pt=-2097152&_t)|0,Bu=At-((pt>>>0>tr>>>0)+Xo|0)|0,Ks=qo-(At=-2097152&Wt)|0,_u=Ar-((At>>>0>qo>>>0)+_s|0)|0,At=Sn(En,Do,666643,0),gt=xa+ln|0,gt=(Wt=At+Eu|0)>>>0>>0?gt+1|0:gt,_t=(At=Sn(Gs,Ou,470296,0))+(Wt-(pt=-2097152&Br)|0)|0,pt=ln+(gt-((pt>>>0>Wt>>>0)+xo|0)|0)|0,pt=At>>>0>_t>>>0?pt+1|0:pt,gt=Sn(Nu,Yr,654183,0),At=ln+pt|0,tr=_t=gt+_t|0,_t=gt>>>0>_t>>>0?At+1|0:At,Wt=ts-(At=-2097152&_i)|0,Ar=yo-((At>>>0>ts>>>0)+pu|0)|0,At=Sn(Wn,Bn,470296,0),pt=ln,gt=At,At=Sn(hr,Po,666643,0),pt=ln+pt|0,pt=At>>>0>(gt=gt+At|0)>>>0?pt+1|0:pt,At=Sn(io,so,654183,0),pt=ln+pt|0,pt=At>>>0>(gt=At+gt|0)>>>0?pt+1|0:pt,_i=(At=gt)+(gt=Sn(jr,Er,-997805,-1))|0,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0,Fr,0),pt=ln,gt=At,At=Sn(or,0,Mr,0),pt=ln+pt|0,pt=At>>>0>(gt=gt+At|0)>>>0?pt+1|0:pt,_t=(At=gt)+(gt=Sn(Pr,0,qr,0))|0,At=ln+pt|0,Ar=_t,_t=gt>>>0>_t>>>0?At+1|0:At,At=(pt=bt[Ct+6|0])>>>24|0,Wt=pt<<8|(au=bt[Ct+2|0]|bt[Ct+3|0]<<8|bt[Ct+4|0]<<16|bt[Ct+5|0]<<24)>>>24,gt=At,pt=(At=bt[Ct+7|0])>>>16|0,pt|=gt,gt=_t,Wt=gt=(At=2097151&((3&pt)<<30|(At=At<<16|Wt)>>>2))>>>0>(Ar=At+Ar|0)>>>0?gt+1|0:gt,iu=At=gt-((Ar>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(xa=Ar- -1048576|0)>>>21,At=(At>>>21|0)+_i|0,wo=At=gt>>>0>(Mo=gt+Yo|0)>>>0?At+1|0:At,pu=At=At-((Mo>>>0<4293918720)-1|0)|0,gt=(pt=At>>>21|0)+Fo|0,gt=(At=(2097151&At)<<11|(qo=Mo- -1048576|0)>>>21)>>>0>(_t=At+tr|0)>>>0?gt+1|0:gt,pt=Sn(Gs,Ou,666643,0),At=ln+gt|0,At=pt>>>0>(_t=pt+_t|0)>>>0?At+1|0:At,pt=Sn(Nu,Yr,470296,0),At=ln+At|0,At=pt>>>0>(gt=pt+_t|0)>>>0?At+1|0:At,_t=(pt=gt)+(gt=Sn(ys,_s,136657,0))|0,pt=ln+At|0,pt=gt>>>0>_t>>>0?pt+1|0:pt,At=Sn(ds,js,654183,0),pt=ln+pt|0,pt=At>>>0>(gt=At+_t|0)>>>0?pt+1|0:pt,tr=(At=Sn(Es,hs,-997805,-1))+gt|0,gt=ln+pt|0,Fo=gt=At>>>0>tr>>>0?gt+1|0:gt,ks=At=gt-((tr>>>0<4293918720)-1|0)|0,gt=(2097151&At)<<11|(Yo=tr- -1048576|0)>>>21,At=(At>>21)+yo|0,ls=gt=(At=gt>>>0>(_t=gt+ls|0)>>>0?At+1|0:At)-((_t>>>0<4293918720)-1|0)|0,_i=(2097151>)<<11|(yo=_t- -1048576|0)>>>21,gt=(gt>>21)+_u|0,vs=is=_i+Ks|0,is=_i>>>0>is>>>0?gt+1|0:gt,_i=_t,pt=At,_t=(ts-(At=-2097152&Br)|0)+(Br=(2097151&na)<<11|Vo>>>21)|0,At=(Xo-((At>>>0>ts>>>0)+nu|0)|0)+(na>>21)|0,Vo=At=_t>>>0
>>0?At+1|0:At,Ks=At=At-((_t>>>0<4293918720)-1|0)|0,ts=gt=At>>21,At=Sn(Gs=(2097151&At)<<11|(na=_t- -1048576|0)>>>21,gt,-683901,-1),pt=ln+pt|0,pt=At>>>0>(gt=At+_i|0)>>>0?pt+1|0:pt,_u=gt-(At=-2097152&yo)|0,mu=pt-((At>>>0>gt>>>0)+ls|0)|0,pt=Sn(Gs,ts,136657,0),At=ln+Fo|0,At=pt>>>0>(gt=pt+tr|0)>>>0?At+1|0:At,Eu=gt-(pt=-2097152&Yo)|0,ks=At-((pt>>>0>gt>>>0)+ks|0)|0,pt=Sn(Nu,Yr,666643,0),At=ln+(wo-(((gt=-2097152&qo)>>>0>Mo>>>0)+pu|0)|0)|0,At=pt>>>0>(_i=pt+(Mo-gt|0)|0)>>>0?At+1|0:At,gt=Sn(ys,_s,-997805,-1),pt=ln+At|0,pt=gt>>>0>(_i=gt+_i|0)>>>0?pt+1|0:pt,At=Sn(ds,js,470296,0),gt=ln+pt|0,gt=At>>>0>(_i=At+_i|0)>>>0?gt+1|0:gt,pt=Sn(Es,hs,654183,0),At=ln+gt|0,ls=_i=pt+_i|0,Fo=pt>>>0>_i>>>0?At+1|0:At,gt=au>>>5&2097151,At=Sn(zn,0,Mr,0),pt=ln,yo=At,At=Sn(or,0,qr,0),pt=ln+pt|0,At=At>>>0>(_i=yo+At|0)>>>0?pt+1|0:pt,yo=pt=gt+_i|0,gt=At=pt>>>0<_i>>>0?At+1|0:At,Mo=(pt=Sn(zn,0,qr,0))+(At=(At=bt[Ct+2|0])<<16&2031616|bt[0|Ct]|bt[Ct+1|0]<<8)|0,pt=ln,Br=pt=At>>>0>Mo>>>0?pt+1|0:pt,nu=pt=pt-((Mo>>>0<4293918720)-1|0)|0,At=(At=pt>>>21|0)+gt|0,qo=At=(pt=(2097151&pt)<<11|(wo=Mo- -1048576|0)>>>21)>>>0>(Xo=pt+yo|0)>>>0?At+1|0:At,au=pt=At-((Xo>>>0<4293918720)-1|0)|0,gt=(2097151&pt)<<11|(tr=Xo- -1048576|0)>>>21,pt=(pt>>>21|0)+Wt|0,pt=gt>>>0>(_i=gt+Ar|0)>>>0?pt+1|0:pt,gt=Sn(ys,_s,654183,0),At=ln+(pt-(((Wt=-2097152&xa)>>>0>_i>>>0)+iu|0)|0)|0,At=gt>>>0>(Ar=gt+(_i-Wt|0)|0)>>>0?At+1|0:At,pt=Sn(ds,js,666643,0),At=ln+At|0,At=pt>>>0>(gt=pt+Ar|0)>>>0?At+1|0:At,Yo=(pt=gt)+(gt=Sn(Es,hs,470296,0))|0,pt=ln+At|0,yo=pt=gt>>>0>Yo>>>0?pt+1|0:pt,pu=pt=pt-((Yo>>>0<4293918720)-1|0)|0,gt=(At=pt>>21)+Fo|0,xa=pt=(gt=(pt=(2097151&pt)<<11|(_i=Yo- -1048576|0)>>>21)>>>0>(Ar=pt+ls|0)>>>0?gt+1|0:gt)-((Ar>>>0<4293918720)-1|0)|0,Fo=(2097151&pt)<<11|(Wt=Ar- -1048576|0)>>>21,pt=(pt>>21)+ks|0,js=ds=Fo+Eu|0,Fo=Fo>>>0>ds>>>0?pt+1|0:pt,At=Sn(Gs,ts,-997805,-1),pt=ln+gt|0,pt=At>>>0>(Ar=At+Ar|0)>>>0?pt+1|0:pt,ks=Ar-(At=-2097152&Wt)|0,ls=pt-((At>>>0>Ar>>>0)+xa|0)|0,pt=Sn(Gs,ts,654183,0),At=ln+yo|0,At=pt>>>0>(gt=pt+Yo|0)>>>0?At+1|0:At,ds=gt-(pt=-2097152&_i)|0,xa=At-((pt>>>0>gt>>>0)+pu|0)|0,At=Sn(ys,_s,470296,0),gt=ln+(qo-(((pt=-2097152&tr)>>>0>Xo>>>0)+au|0)|0)|0,gt=At>>>0>(Wt=At+(Xo-pt|0)|0)>>>0?gt+1|0:gt,pt=Sn(Es,hs,666643,0),At=ln+gt|0,Ar=Wt=pt+Wt|0,gt=pt>>>0>Wt>>>0?At+1|0:At,pt=Sn(ys,_s,666643,0),At=ln+(Br-((4095&nu)+((Wt=-2097152&wo)>>>0>Mo>>>0)|0)|0)|0,Yo=At=pt>>>0>(tr=pt+(Mo-Wt|0)|0)>>>0?At+1|0:At,Br=At=At-((tr>>>0<4293918720)-1|0)|0,Wt=(2097151&At)<<11|(yo=tr- -1048576|0)>>>21,At=(At>>21)+gt|0,gt=At=Wt>>>0>(_i=Wt+Ar|0)>>>0?At+1|0:At,wo=At=At-((_i>>>0<4293918720)-1|0)|0,Wt=(2097151&At)<<11|(Ar=_i- -1048576|0)>>>21,At=(At>>21)+xa|0,Wt=Wt>>>0>(qo=Wt+ds|0)>>>0?At+1|0:At,At=Sn(Gs,ts,470296,0),gt=ln+gt|0,gt=At>>>0>(pt=At+_i|0)>>>0?gt+1|0:gt,_i=pt-(At=-2097152&Ar)|0,Ar=gt-((At>>>0>pt>>>0)+wo|0)|0,pt=Sn(Gs,ts,666643,0),At=ln+(Yo-(((gt=-2097152&yo)>>>0>tr>>>0)+Br|0)|0)|0,pt=(gt=(At=pt>>>0>(Xo=pt+(tr-gt|0)|0)>>>0?At+1|0:At)>>21)+Ar|0,At=(At=(pt=(At=(2097151&At)<<11|Xo>>>21)>>>0>(xa=At+_i|0)>>>0?pt+1|0:pt)>>21)+Wt|0,pt=(pt=(At=(pt=(2097151&pt)<<11|xa>>>21)>>>0>(Br=pt+qo|0)>>>0?At+1|0:At)>>21)+ls|0,gt=(At=(pt=(At=(2097151&At)<<11|Br>>>21)>>>0>(Wt=At+ks|0)>>>0?pt+1|0:pt)>>21)+Fo|0,At=(pt=(gt=(pt=(2097151&pt)<<11|Wt>>>21)>>>0>(wo=pt+js|0)>>>0?gt+1|0:gt)>>21)+mu|0,pt=(gt=(At=(gt=(2097151>)<<11|wo>>>21)>>>0>(qo=gt+_u|0)>>>0?At+1|0:At)>>21)+is|0,At=(At=(pt=(At=(2097151&At)<<11|qo>>>21)>>>0>(tr=At+vs|0)>>>0?pt+1|0:pt)>>21)+Bu|0,pt=(pt=(At=(pt=(2097151&pt)<<11|tr>>>21)>>>0>(Fo=pt+Ls|0)>>>0?At+1|0:At)>>21)+os|0,gt=(At=(pt=(At=(2097151&At)<<11|Fo>>>21)>>>0>(Yo=At+wu|0)>>>0?pt+1|0:pt)>>21)+Vu|0,At=(pt=(gt=(pt=(2097151&pt)<<11|Yo>>>21)>>>0>(yo=pt+np|0)>>>0?gt+1|0:gt)>>21)+tp|0,Ar=(na=_t-(pt=-2097152&na)|0)+((2097151&(At=(gt=(2097151>)<<11|yo>>>21)>>>0>(_i=gt+ep|0)>>>0?At+1|0:At))<<11|_i>>>21)|0,At=(Vo-((pt>>>0>_t>>>0)+Ks|0)|0)+(At>>21)|0,na=pt=(At=Ar>>>0>>0?At+1|0:At)>>21,Xo=(At=Sn(is=(2097151&At)<<11|Ar>>>21,pt,666643,0))+(pt=2097151&Xo)|0,At=ln,_t=At=pt>>>0>Xo>>>0?At+1|0:At,Ft[0|Ot]=Xo,Ft[Ot+1|0]=(255&At)<<24|Xo>>>8,At=2097151&xa,pt=Sn(is,na,470296,0)+At|0,gt=ln,At=(_t>>21)+(At>>>0>pt>>>0?gt+1|0:gt)|0,At=(Vo=(2097151&_t)<<11|Xo>>>21)>>>0>(xa=Vo+pt|0)>>>0?At+1|0:At,Ft[Ot+4|0]=(2047&At)<<21|xa>>>11,pt=At,gt=xa,Ft[Ot+3|0]=(7&At)<<29|gt>>>3,Ft[Ot+2|0]=31&((65535&_t)<<16|Xo>>>16)|gt<<5,_t=2097151&Br,Br=Sn(is,na,654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>)<<30|Wt>>>2,pt=0,Ft[Ot+15|0]=pt<<17|(2064384&_t)>>>15|Wt<<6,At=gt>>21,At=(pt=(2097151>)<<11|Wt>>>21)>>>0>(gt=pt+(2097151&Fo)|0)>>>0?At+1|0:At,Ft[Ot+20|0]=(8191&At)<<19|gt>>>13,Ft[Ot+19|0]=(31&At)<<27|gt>>>5,_t=(pt=2097151&Yo)+(Yo=(2097151&At)<<11|gt>>>21)|0,pt=At>>21,pt=_t>>>0>>0?pt+1|0:pt,Yo=_t,Ft[Ot+21|0]=_t,Fo=0,Ft[Ot+18|0]=Fo<<14|(1835008&Wt)>>>18|gt<<3,Ft[Ot+22|0]=(255&pt)<<24|_t>>>8,gt=pt>>21,gt=(_t=(Wt=(2097151&pt)<<11|_t>>>21)+(2097151&yo)|0)>>>0>>0?gt+1|0:gt,Ft[Ot+25|0]=(2047>)<<21|_t>>>11,Ft[Ot+24|0]=(7>)<<29|_t>>>3,Ft[Ot+23|0]=31&((65535&pt)<<16|Yo>>>16)|_t<<5,At=gt>>21,At=(pt=(2097151>)<<11|_t>>>21)>>>0>(gt=pt+(2097151&_i)|0)>>>0?At+1|0:At,Ft[Ot+27|0]=(63&At)<<26|gt>>>6,Wt=0,Ft[Ot+26|0]=Wt<<13|(1572864&_t)>>>19|gt<<2,pt=At>>21,pt=(At=(_t=(2097151&At)<<11|gt>>>21)+(2097151&Ar)|0)>>>0<_t>>>0?pt+1|0:pt,Ft[Ot+31|0]=(131071&pt)<<15|At>>>17,Ft[Ot+30|0]=(511&pt)<<23|At>>>9,Ft[Ot+29|0]=(1&pt)<<31|At>>>1,_t=0,Ft[Ot+28|0]=_t<<18|(2080768>)>>>14|At<<7,Uo(Lt,64),Uo(Ct,64),ft&&(ut[ft>>2]=64,ut[ft+4>>2]=0),jn=Xt+560|0,0}function co(At,ft,pt){var gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n,In,On,Cn,Qn,Hn,Gn,er,ar,ur,Ln,zn,or,Cr,l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(Qo=Wn+Yr|0)>>>0?En+1|0:En,yo=En=En-((Qo>>>0<4293918720)-1|0)|0,Bn=(Bn=En>>>21|0)+To|0,wo=Wn=(Bn=(En=(2097151&En)<<11|(qo=Qo- -1048576|0)>>>21)>>>0>(So=En+So|0)>>>0?Bn+1|0:Bn)-((So>>>0<4293918720)-1|0)|0,Ar=So-(En=-2097152&(Fo=So- -1048576|0))|0,_i=Bn-((En>>>0>So>>>0)+Wn|0)|0,To=(Bn=bt[pt+27|0])<<8|zo>>>24,Wn=En=Bn>>>24|0,So=Sn(ar=2097151&((3&(Wn|=Bn=(En=bt[pt+28|0])>>>16|0))<<30|(Bn=(En<<=16)|To)>>>2),0,os=(bt[ft+28|0]|bt[ft+29|0]<<8|bt[ft+30|0]<<16|bt[ft+31|0]<<24)>>>7|0,0),To=ln,Bn=(En=bt[ft+27|0])>>>24|0,ft=Sn(ur=2097151&((3&(Bn|=Wn=(ft=bt[ft+28|0])>>>16|0))<<30|(En=En<<8|tr>>>24|ft<<16)>>>2),0,ds=(bt[pt+28|0]|bt[pt+29|0]<<8|bt[pt+30|0]<<16|bt[pt+31|0]<<24)>>>7|0,0),En=ln+To|0,En=ft>>>0>(pt=ft+So|0)>>>0?En+1|0:En,Wn=pt,ft=Sn(_t,0,ds,0),pt=ln,To=(Bn=ft)+(ft=Sn(ts,0,os,0))|0,Bn=ln+pt|0,Bn=ft>>>0>To>>>0?Bn+1|0:Bn,ft=Sn(ar,0,ur,0),Bn=ln+Bn|0,To=Bn=ft>>>0>(zo=ft+To|0)>>>0?Bn+1|0:Bn,$o=ft=Bn-((zo>>>0<4293918720)-1|0)|0,Bn=ft>>>21|0,So=(ft=(2097151&ft)<<11|(pt=zo- -1048576|0)>>>21)+Wn|0,Wn=Bn+En|0,Br=Bn=(Wn=ft>>>0>So>>>0?Wn+1|0:Wn)-((So>>>0<4293918720)-1|0)|0,ft=So-(En=-2097152&(xo=So- -1048576|0))|0,or=En=Wn-((131071&Bn)+(En>>>0>So>>>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0)|0,En=pt+(En=ft>>21)|0,To=En=(ft=(2097151&ft)<<11|($o=_s- -1048576|0)>>>21)>>>0>(Vo=ft+hs|0)>>>0?En+1|0:En,_u=ft=En-((Vo>>>0<4293918720)-1|0)|0,Bn=(En=ft>>21)+mu|0,Bn=(ft=(2097151&ft)<<11|(Qo=Vo- -1048576|0)>>>21)>>>0>(pt=ft+Vu|0)>>>0?Bn+1|0:Bn,ft=Sn(pu,so,-997805,-1),Wn=ln+Bn|0,Wn=ft>>>0>(En=ft+pt|0)>>>0?Wn+1|0:Wn,ks=ft=Xo-(pt=-2097152&Yr)|0,Or=Bn=zo-((pt>>>0>Xo>>>0)+Ou|0)|0,Yr=(pt=Sn(ls,pr,136657,0))+En|0,En=ln+Wn|0,ft=Sn(ft,Bn,-683901,-1),En=ln+(pt>>>0>Yr>>>0?En+1|0:En)|0,Yr=En=ft>>>0>(zo=ft+Yr|0)>>>0?En+1|0:En,vs=ft=En-((zo>>>0<4293918720)-1|0)|0,En=(Bn=ft>>21)+So|0,pt=En=(So=hs=(ft=(2097151&ft)<<11|(Wn=zo- -1048576|0)>>>21)+Nu|0)>>>0>>0?En+1|0:En,Xo=En=En-((So>>>0<4293918720)-1|0)|0,hs=(2097151&En)<<11|(ft=So- -1048576|0)>>>21,En=(En>>21)+Bu|0,Bu=mu=hs+io|0,hs=hs>>>0>mu>>>0?En+1|0:En,Ou=So-(ft&=-2097152)|0,Nu=pt-((ft>>>0>So>>>0)+Xo|0)|0,Vu=zo-(ft=-2097152&Wn)|0,mu=Yr-((ft>>>0>zo>>>0)+vs|0)|0,ft=Sn(pu,so,654183,0),Bn=ln+(To-(((pt=-2097152&Qo)>>>0>Vo>>>0)+_u|0)|0)|0,Bn=ft>>>0>(En=ft+(Vo-pt|0)|0)>>>0?Bn+1|0:Bn,pt=(ft=Sn(ls,pr,-997805,-1))+En|0,En=ln+Bn|0,En=ft>>>0>pt>>>0?En+1|0:En,ft=Sn(ks,Or,136657,0),En=ln+En|0,_u=pt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=21)|0,En=(ft=(Yr=Wn)+(Wn=(2097151&ft)<<11|pt>>>21)|0)>>>0>>0?En+1|0:En,Ft[At+14|0]=(127&En)<<25|ft>>>7,Bn=0,Ft[At+13|0]=Bn<<12|(1048576&pt)>>>20|ft<<1,Bn=En>>21,Bn=(pt=(En=(2097151&En)<<11|ft>>>21)+(2097151&xo)|0)>>>0>>0?Bn+1|0:Bn,Ft[At+17|0]=(1023&Bn)<<22|pt>>>10,Ft[At+16|0]=(3&Bn)<<30|pt>>>2,En=0,Ft[At+15|0]=En<<17|(2064384&ft)>>>15|pt<<6,ft=Bn,Bn>>=21,Wn=(ft=(En=(2097151&ft)<<11|pt>>>21)+(2097151&$o)|0)>>>0>>0?Bn+1|0:Bn,Ft[At+20|0]=(8191&Wn)<<19|ft>>>13,Ft[At+19|0]=(31&Wn)<<27|ft>>>5,En=Wn>>21,En=(Bn=(Yr=(2097151&Wn)<<11|ft>>>21)+(2097151&zo)|0)>>>0>>0?En+1|0:En,Yr=Bn,Ft[At+21|0]=Bn,Bn=0,Ft[At+18|0]=Bn<<14|(1835008&pt)>>>18|ft<<3,Ft[At+22|0]=(255&En)<<24|Yr>>>8,Bn=En>>21,Bn=(ft=(pt=(2097151&En)<<11|Yr>>>21)+(2097151&So)|0)>>>0>>0?Bn+1|0:Bn,Ft[At+25|0]=(2047&Bn)<<21|ft>>>11,Ft[At+24|0]=(7&Bn)<<29|ft>>>3,Ft[At+23|0]=31&((65535&En)<<16|Yr>>>16)|ft<<5,En=(2097151&Bn)<<11|ft>>>21,Bn>>=21,Bn=(pt=En+(2097151&To)|0)>>>0>>0?Bn+1|0:Bn,Ft[At+27|0]=(63&Bn)<<26|pt>>>6,En=0,Ft[At+26|0]=En<<13|(1572864&ft)>>>19|pt<<2,En=Bn>>21,En=(ft=(Bn=(2097151&Bn)<<11|pt>>>21)+(2097151&Qo)|0)>>>0>>0?En+1|0:En,Ft[At+31|0]=(131071&En)<<15|ft>>>17,Ft[At+30|0]=(511&En)<<23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0:ft,_t=ut[At+36>>2]+ut[gt+36>>2]|0,ft=(pt=ut[gt+32>>2])+ut[At+32>>2]|0,ut[At+32>>2]=ft,ut[At+36>>2]=ft>>>0>>0?_t+1|0:_t,ft=ut[At+44>>2]+ut[gt+44>>2]|0,pt=(_t=ut[gt+40>>2])+ut[At+40>>2]|0,ut[At+40>>2]=pt,ut[At+44>>2]=pt>>>0<_t>>>0?ft+1|0:ft,_t=ut[At+52>>2]+ut[gt+52>>2]|0,ft=(pt=ut[gt+48>>2])+ut[At+48>>2]|0,ut[At+48>>2]=ft,ut[At+52>>2]=ft>>>0>>0?_t+1|0:_t,_t=ut[At+60>>2]+ut[gt+60>>2]|0,ft=(pt=ut[gt+56>>2])+ut[At+56>>2]|0,ut[At+56>>2]=ft,ut[At+60>>2]=ft>>>0>>0?_t+1|0:_t}function Ns(At){var ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0,lr=0,Pr=0,Dr=0,Fr=0,qr=0,Mr=0,hr=0,Er=0,jr=0,so=0,pr=0,Or=0,io=0,ho=0,Eo=0,Po=0,Do=0,En=0,Bn=0,Wn=0,Yr=0;_n=(ar=bt[At+44|0]|bt[At+45|0]<<8|bt[At+46|0]<<16|bt[At+47|0]<<24)>>>5&2097151,mn=Sn(qr=(bt[At+60|0]|bt[At+61|0]<<8|bt[At+62|0]<<16|bt[At+63|0]<<24)>>>3|0,0,-683901,-1),un=(rn=bt[At+44|0])<<16&2031616|bt[At+42|0]|bt[At+43|0]<<8,rn=ln,Qn=rn=un>>>0>(Hn=mn+un|0)>>>0?rn+1|0:rn,or=rn=rn-((Hn>>>0<4293918720)-1|0)|0,mn=rn>>21,rn=(un=_n)+(_n=(2097151&rn)<<11|(On=Hn- -1048576|0)>>>21)|0,un=mn,io=un=rn>>>0<_n>>>0?un+1|0:un,ho=rn,Pr=Sn(rn,un,-683901,-1),Gn=ln,Cn=Sn(ft=(bt[At+49|0]|bt[At+50|0]<<8|bt[At+51|0]<<16|bt[At+52|0]<<24)>>>7&2097151,0,-997805,-1),mn=(rn=bt[At+27|0])>>>24|0,_n=rn<<8|(ur=bt[At+23|0]|bt[At+24|0]<<8|bt[At+25|0]<<16|bt[At+26|0]<<24)>>>24,un=(rn=bt[At+28|0])>>>16|0,un=2097151&((3&(un|=mn))<<30|(rn=_n|rn<<16)>>>2),rn=ln,rn=un>>>0>(mn=un+Cn|0)>>>0?rn+1|0:rn,un=Sn(so=(Ln=bt[At+52|0]|bt[At+53|0]<<8|bt[At+54|0]<<16|bt[At+55|0]<<24)>>>4&2097151,0,654183,0),rn=ln+rn|0,Cn=mn=un+mn|0,mn=un>>>0>mn>>>0?rn+1|0:rn,In=(un=bt[At+48|0])<<8|ar>>>24,un=rn=un>>>24|0,rn=Sn(pt=2097151&((3&(ar=(rn=(_n=bt[At+49|0])>>>16|0)|un))<<30|(un=(_n<<=16)|In)>>>2),0,136657,0),mn=ln+mn|0,mn=rn>>>0>(un=rn+Cn|0)>>>0?mn+1|0:mn,_n=(rn=Sn(gt=(bt[At+57|0]|bt[At+58|0]<<8|bt[At+59|0]<<16|bt[At+60|0]<<24)>>>6&2097151,0,666643,0))+un|0,un=ln+mn|0,Cn=_n,mn=rn>>>0>_n>>>0?un+1|0:un,un=(rn=bt[At+56|0])>>>24|0,In=rn<<8|Ln>>>24,un=Sn(_t=2097151&((1&(Ln=(rn=(_n=bt[At+57|0])>>>16|0)|un))<<31|(un=(_n<<=16)|In)>>>1),0,470296,0),rn=ln+mn|0,un=(rn=(mn=_n=un+Cn|0)>>>0>>0?rn+1|0:rn)+Gn|0,un=mn>>>0>(_n=mn+Pr|0)>>>0?un+1|0:un,Cr=mn- -1048576|0,lr=mn=rn-((mn>>>0<4293918720)-1|0)|0,Gn=_n-(rn=-2097152&Cr)|0,Pr=un-((rn>>>0>_n>>>0)+mn|0)|0,un=Sn(ft,0,654183,0),rn=ln,rn=un>>>0>(mn=un+(ur>>>5&2097151)|0)>>>0?rn+1|0:rn,_n=(un=mn)+(mn=Sn(so,0,470296,0))|0,un=ln+rn|0,un=mn>>>0>_n>>>0?un+1|0:un,rn=Sn(pt,Po,-997805,-1),un=ln+un|0,un=rn>>>0>(mn=rn+_n|0)>>>0?un+1|0:un,_n=(rn=mn)+(mn=Sn(_t,Do,666643,0))|0,rn=ln+un|0,In=_n,_n=mn>>>0>_n>>>0?rn+1|0:rn,Cn=(mn=Sn(ft,0,470296,0))+(rn=(rn=bt[At+23|0])<<16&2031616|bt[At+21|0]|bt[At+22|0]<<8)|0,mn=ln,mn=rn>>>0>Cn>>>0?mn+1|0:mn,Cn=(un=Sn(so,0,666643,0))+Cn|0,rn=ln+mn|0,mn=Sn(pt,Po,654183,0),un=ln+(un>>>0>Cn>>>0?rn+1|0:rn)|0,Ln=un=mn>>>0>(ur=mn+Cn|0)>>>0?un+1|0:un,jr=un=un-((ur>>>0<4293918720)-1|0)|0,rn=(rn=un>>>21|0)+_n|0,mn=rn=(un=(2097151&un)<<11|(Cn=ur- -1048576|0)>>>21)>>>0>(In=un+In|0)>>>0?rn+1|0:rn,er=un=rn-((In>>>0<4293918720)-1|0)|0,rn=Gn,Gn=(2097151&un)<<11|(_n=In- -1048576|0)>>>21,un=(un>>21)+Pr|0,ar=Gn=(un=Gn>>>0>(zn=rn+Gn|0)>>>0?un+1|0:un)-((zn>>>0<4293918720)-1|0)|0,pr=zn-(rn=-2097152&(Pr=zn- -1048576|0))|0,En=un-((rn>>>0>zn>>>0)+Gn|0)|0,rn=Sn(ho,io,136657,0),mn=ln+mn|0,mn=rn>>>0>(un=rn+In|0)>>>0?mn+1|0:mn,Fr=un-(rn=-2097152&_n)|0,Or=mn-((rn>>>0>un>>>0)+er|0)|0,zn=Hn-(rn=-2097152&On)|0,or=Qn-((rn>>>0>Hn>>>0)+or|0)|0,Qn=Sn(qr,0,136657,0),un=(rn=bt[At+40|0])>>>24|0,_n=rn<<8|(On=bt[At+36|0]|bt[At+37|0]<<8|bt[At+38|0]<<16|bt[At+39|0]<<24)>>>24,mn=(rn=bt[At+41|0])>>>16|0,un=(mn|=un)>>>3|0,mn=(7&mn)<<29|(rn=_n|rn<<16)>>>3,rn=un+ln|0,rn=mn>>>0>(_n=mn+Qn|0)>>>0?rn+1|0:rn,un=Sn(gt,0,-683901,-1),rn=ln+rn|0,rn=un>>>0>(mn=un+_n|0)>>>0?rn+1|0:rn,In=mn,un=Sn(qr,0,-997805,-1),mn=ln,mn=un>>>0>(_n=un+(On>>>6&2097151)|0)>>>0?mn+1|0:mn,On=(un=_n)+(_n=Sn(gt,0,136657,0))|0,un=ln+mn|0,mn=Sn(_t,Do,-683901,-1),un=ln+(_n>>>0>On>>>0?un+1|0:un)|0,Gn=un=mn>>>0>(Mr=mn+On|0)>>>0?un+1|0:un,Bn=mn=un-((Mr>>>0<4293918720)-1|0)|0,rn=rn+(un=mn>>21)|0,On=rn=(mn=(2097151&mn)<<11|(Hn=Mr- -1048576|0)>>>21)>>>0>(er=mn+In|0)>>>0?rn+1|0:rn,hr=rn=rn-((er>>>0<4293918720)-1|0)|0,un=(un=rn>>21)+or|0,Eo=un=(rn=(mn=(2097151&rn)<<11|(In=er- -1048576|0)>>>21)+zn|0)>>>0>>0?un+1|0:un,Er=rn,un=Sn(rn,un,-683901,-1),rn=ln+Or|0,Dr=mn=un+Fr|0,_n=un>>>0>mn>>>0?rn+1|0:rn,Or=ur-(rn=-2097152&Cn)|0,or=Ln-((4095&jr)+(rn>>>0>ur>>>0)|0)|0,ur=Sn(ft,0,666643,0),rn=(un=bt[At+19|0])>>>24|0,Cn=un<<8|(Ln=bt[At+15|0]|bt[At+16|0]<<8|bt[At+17|0]<<16|bt[At+18|0]<<24)>>>24,mn=rn,un=(7&(mn|=un=(rn=bt[At+20|0])>>>16|0))<<29|(un=(rn<<=16)|Cn)>>>3,mn=ln+(mn>>>3|0)|0,mn=un>>>0>(Cn=un+ur|0)>>>0?mn+1|0:mn,rn=Sn(pt,Po,470296,0),un=ln+mn|0,rn=rn>>>0>(Cn=rn+Cn|0)>>>0?un+1|0:un,mn=Sn(pt,Po,666643,0),un=ln,ur=un=mn>>>0>(Fr=mn+(Ln>>>6&2097151)|0)>>>0?un+1|0:un,Wn=mn=un-((Fr>>>0<4293918720)-1|0)|0,rn=rn+(un=mn>>>21|0)|0,Ln=rn=(mn=(2097151&mn)<<11|(Qn=Fr- -1048576|0)>>>21)>>>0>(zn=mn+Cn|0)>>>0?rn+1|0:rn,Yr=rn=rn-((zn>>>0<4293918720)-1|0)|0,un=(un=rn>>>21|0)+or|0,un=(rn=(2097151&rn)<<11|(Cn=zn- -1048576|0)>>>21)>>>0>(mn=rn+Or|0)>>>0?un+1|0:un,or=(rn=mn)+(mn=Sn(ho,io,-997805,-1))|0,rn=ln+un|0,rn=mn>>>0>or>>>0?rn+1|0:rn,jr=un=er-(mn=-2097152&In)|0,Ot=In=On-((mn>>>0>er>>>0)+hr|0)|0,mn=Sn(Er,Eo,136657,0),rn=ln+rn|0,rn=mn>>>0>(On=mn+or|0)>>>0?rn+1|0:rn,mn=Sn(un,In,-683901,-1),un=ln+rn|0,On=un=mn>>>0>(or=mn+On|0)>>>0?un+1|0:un,hr=rn=un-((or>>>0<4293918720)-1|0)|0,un=(2097151&rn)<<11|(In=or- -1048576|0)>>>21,rn=(rn>>21)+_n|0,Dr=un=(rn=un>>>0>(er=un+Dr|0)>>>0?rn+1|0:rn)-((er>>>0<4293918720)-1|0)|0,Or=(2097151&un)<<11|(_n=er- -1048576|0)>>>21,un=(un>>21)+En|0,Ct=pr=Or+pr|0,Or=pr>>>0>>0?un+1|0:un,Lt=er-(un=-2097152&_n)|0,Xt=rn-((un>>>0>er>>>0)+Dr|0)|0,pr=or-(rn=-2097152&In)|0,En=On-((rn>>>0>or>>>0)+hr|0)|0,mn=(rn=Sn(ho,io,654183,0))+(zn-(un=-2097152&Cn)|0)|0,un=ln+(Ln-((2147483647&Yr)+(un>>>0>zn>>>0)|0)|0)|0,un=rn>>>0>mn>>>0?un+1|0:un,rn=Sn(Er,Eo,-997805,-1),un=ln+un|0,un=rn>>>0>(mn=rn+mn|0)>>>0?un+1|0:un,_n=(rn=mn)+(mn=Sn(jr,Ot,136657,0))|0,rn=ln+un|0,Dr=_n,On=mn>>>0>_n>>>0?rn+1|0:rn,zn=Mr-(rn=-2097152&Hn)|0,er=Gn-((rn>>>0>Mr>>>0)+Bn|0)|0,Ln=Sn(so,0,-683901,-1),rn=(un=bt[At+35|0])>>>24|0,_n=un<<8|(Cn=bt[At+31|0]|bt[At+32|0]<<8|bt[At+33|0]<<16|bt[At+34|0]<<24)>>>24,mn=rn,un=(rn=bt[At+36|0])>>>16|0,un|=mn,mn=ln,mn=(rn=2097151&((1&un)<<31|(rn=rn<<16|_n)>>>1))>>>0>(un=rn+Ln|0)>>>0?mn+1|0:mn,_n=(rn=Sn(qr,0,654183,0))+un|0,un=ln+mn|0,un=rn>>>0>_n>>>0?un+1|0:un,mn=Sn(gt,0,-997805,-1),rn=ln+un|0,rn=mn>>>0>(_n=mn+_n|0)>>>0?rn+1|0:rn,un=Sn(_t,Do,136657,0),rn=ln+rn|0,In=mn=un+_n|0,_n=un>>>0>mn>>>0?rn+1|0:rn,rn=Sn(ft,0,-683901,-1),un=ln,un=rn>>>0>(mn=rn+(Cn>>>4&2097151)|0)>>>0?un+1|0:un,Cn=(rn=Sn(so,0,136657,0))+mn|0,mn=ln+un|0,mn=rn>>>0>Cn>>>0?mn+1|0:mn,rn=Sn(qr,0,470296,0),un=ln+mn|0,un=rn>>>0>(Cn=rn+Cn|0)>>>0?un+1|0:un,Cn=(mn=Sn(gt,0,654183,0))+Cn|0,rn=ln+un|0,un=Sn(_t,Do,-997805,-1),rn=ln+(mn>>>0>Cn>>>0?rn+1|0:rn)|0,Ln=rn=un>>>0>(Gn=un+Cn|0)>>>0?rn+1|0:rn,hn=un=rn-((Gn>>>0<4293918720)-1|0)|0,mn=(rn=un>>21)+_n|0,or=un=(mn=(un=(2097151&un)<<11|(Cn=Gn- -1048576|0)>>>21)>>>0>(Hn=un+In|0)>>>0?mn+1|0:mn)-((Hn>>>0<4293918720)-1|0)|0,rn=(rn=un>>21)+er|0,hr=rn=(un=(_n=(2097151&un)<<11|(In=Hn- -1048576|0)>>>21)+zn|0)>>>0<_n>>>0?rn+1|0:rn,_n=Dr,Dr=un,rn=Sn(un,rn,-683901,-1),un=ln+On|0,er=_n=_n+rn|0,_n=rn>>>0>_n>>>0?un+1|0:un,On=(rn=Sn(ho,io,470296,0))+(Fr-(un=-2097152&Qn)|0)|0,un=ln+(ur-((2047&Wn)+(un>>>0>Fr>>>0)|0)|0)|0,un=rn>>>0>On>>>0?un+1|0:un,Qn=(rn=On)+(On=Sn(Er,Eo,654183,0))|0,rn=ln+un|0,rn=On>>>0>Qn>>>0?rn+1|0:rn,On=Sn(jr,Ot,-997805,-1),un=ln+rn|0,un=On>>>0>(Qn=On+Qn|0)>>>0?un+1|0:un,Mr=In=Hn-(rn=-2097152&In)|0,Wt=On=mn-((rn>>>0>Hn>>>0)+or|0)|0,mn=Sn(Dr,hr,136657,0),rn=ln+un|0,rn=mn>>>0>(Qn=mn+Qn|0)>>>0?rn+1|0:rn,mn=Sn(In,On,-683901,-1),un=ln+rn|0,On=un=mn>>>0>(ur=mn+Qn|0)>>>0?un+1|0:un,or=rn=un-((ur>>>0<4293918720)-1|0)|0,un=(2097151&rn)<<11|(In=ur- -1048576|0)>>>21,rn=(rn>>21)+_n|0,er=un=(rn=un>>>0>(Qn=un+er|0)>>>0?rn+1|0:rn)-((Qn>>>0<4293918720)-1|0)|0,Hn=(2097151&un)<<11|(_n=Qn- -1048576|0)>>>21,un=(un>>21)+En|0,Bn=zn=Hn+pr|0,zn=Hn>>>0>zn>>>0?un+1|0:un,Wn=Qn-(un=-2097152&_n)|0,Yr=rn-((un>>>0>Qn>>>0)+er|0)|0,pr=ur-(rn=-2097152&In)|0,En=On-((rn>>>0>ur>>>0)+or|0)|0,On=Sn(ho,io,666643,0),rn=(un=bt[At+14|0])>>>24|0,_n=un<<8|(or=bt[At+10|0]|bt[At+11|0]<<8|bt[At+12|0]<<16|bt[At+13|0]<<24)>>>24,mn=rn,un=(rn=bt[At+15|0])>>>16|0,un|=mn,mn=ln,mn=(rn=2097151&((1&un)<<31|(rn=rn<<16|_n)>>>1))>>>0>(un=rn+On|0)>>>0?mn+1|0:mn,_n=(rn=un)+(un=Sn(Er,Eo,470296,0))|0,rn=ln+mn|0,rn=un>>>0>_n>>>0?rn+1|0:rn,un=Sn(jr,Ot,654183,0),rn=ln+rn|0,rn=un>>>0>(mn=un+_n|0)>>>0?rn+1|0:rn,_n=(un=mn)+(mn=Sn(Dr,hr,-997805,-1))|0,un=ln+rn|0,un=mn>>>0>_n>>>0?un+1|0:un,rn=Sn(Mr,Wt,136657,0),un=ln+un|0,ur=mn=rn+_n|0,_n=rn>>>0>mn>>>0?un+1|0:un,Cn=Gn-(rn=-2097152&Cn)|0,On=Ln-((rn>>>0>Gn>>>0)+hn|0)|0,mn=Sn(ft,0,136657,0),rn=ln,rn=(un=(bt[At+28|0]|bt[At+29|0]<<8|bt[At+30|0]<<16|bt[At+31|0]<<24)>>>7&2097151)>>>0>(mn=un+mn|0)>>>0?rn+1|0:rn,In=(un=mn)+(mn=Sn(so,0,-997805,-1))|0,un=ln+rn|0,un=mn>>>0>In>>>0?un+1|0:un,rn=Sn(pt,Po,-683901,-1),un=ln+un|0,un=rn>>>0>(mn=rn+In|0)>>>0?un+1|0:un,In=(rn=Sn(qr,0,666643,0))+mn|0,mn=ln+un|0,mn=rn>>>0>In>>>0?mn+1|0:mn,un=Sn(gt,0,470296,0),rn=ln+mn|0,rn=un>>>0>(In=un+In|0)>>>0?rn+1|0:rn,un=Sn(_t,Do,654183,0),rn=ln+rn|0,un=(lr>>21)+(un>>>0>(mn=un+In|0)>>>0?rn+1|0:rn)|0,Hn=un=(In=(2097151&lr)<<11|Cr>>>21)>>>0>(Cr=In+mn|0)>>>0?un+1|0:un,er=rn=un-((Cr>>>0<4293918720)-1|0)|0,In=(2097151&rn)<<11|(Qn=Cr- -1048576|0)>>>21,rn=(rn>>21)+On|0,Fr=rn=(un=In+Cn|0)>>>0>>0?rn+1|0:rn,lr=un,un=Sn(un,rn,-683901,-1),rn=ln+_n|0,In=mn=un+ur|0,_n=un>>>0>mn>>>0?rn+1|0:rn,rn=Sn(Er,Eo,666643,0),un=ln,un=rn>>>0>(mn=rn+(or>>>4&2097151)|0)>>>0?un+1|0:un,rn=Sn(jr,Ot,470296,0),un=ln+un|0,un=rn>>>0>(mn=rn+mn|0)>>>0?un+1|0:un,On=(rn=Sn(Dr,hr,654183,0))+mn|0,mn=ln+un|0,mn=rn>>>0>On>>>0?mn+1|0:mn,un=Sn(Mr,Wt,-997805,-1),rn=ln+mn|0,rn=un>>>0>(On=un+On|0)>>>0?rn+1|0:rn,un=Sn(lr,Fr,136657,0),rn=ln+rn|0,Ln=rn=un>>>0>(Gn=un+On|0)>>>0?rn+1|0:rn,io=un=rn-((Gn>>>0<4293918720)-1|0)|0,rn=In,In=(2097151&un)<<11|(Cn=Gn- -1048576|0)>>>21,un=(un>>21)+_n|0,Er=_n=(un=(mn=rn+In|0)>>>0>>0?un+1|0:un)-((mn>>>0<4293918720)-1|0)|0,rn=(rn=_n>>21)+En|0,ho=In=(_n=(2097151&_n)<<11|(On=mn- -1048576|0)>>>21)+pr|0,ur=_n>>>0>In>>>0?rn+1|0:rn,In=mn,mn=un,_n=(Cr-(un=-2097152&Qn)|0)+(Qn=(2097151&ar)<<11|Pr>>>21)|0,un=(Hn-((un>>>0>Cr>>>0)+er|0)|0)+(ar>>21)|0,or=un=_n>>>0>>0?un+1|0:un,so=un=un-((_n>>>0<4293918720)-1|0)|0,Pr=rn=un>>21,rn=Sn(qr=(2097151&un)<<11|(er=_n- -1048576|0)>>>21,rn,-683901,-1),mn=ln+mn|0,mn=rn>>>0>(un=rn+In|0)>>>0?mn+1|0:mn,Po=un-(rn=-2097152&On)|0,Do=mn-((rn>>>0>un>>>0)+Er|0)|0,rn=Sn(qr,Pr,136657,0),un=Ln+ln|0,Eo=(mn=rn+Gn|0)-(rn=-2097152&Cn)|0,Er=(un=mn>>>0>>0?un+1|0:un)-((rn>>>0>mn>>>0)+io|0)|0,un=Sn(jr,Ot,666643,0),mn=ln,mn=(rn=(bt[At+7|0]|bt[At+8|0]<<8|bt[At+9|0]<<16|bt[At+10|0]<<24)>>>7&2097151)>>>0>(un=rn+un|0)>>>0?mn+1|0:mn,In=(rn=Sn(Dr,hr,470296,0))+un|0,un=ln+mn|0,un=rn>>>0>In>>>0?un+1|0:un,rn=Sn(Mr,Wt,654183,0),un=ln+un|0,un=rn>>>0>(mn=rn+In|0)>>>0?un+1|0:un,In=(rn=mn)+(mn=Sn(lr,Fr,-997805,-1))|0,rn=ln+un|0,Qn=In,In=mn>>>0>In>>>0?rn+1|0:rn,Ln=Sn(Dr,hr,666643,0),rn=(un=bt[At+6|0])>>>24|0,On=un<<8|(Cr=bt[At+2|0]|bt[At+3|0]<<8|bt[At+4|0]<<16|bt[At+5|0]<<24)>>>24,mn=rn,un=(rn=bt[At+7|0])>>>16|0,un=2097151&((3&(un|=mn))<<30|(rn=rn<<16|On)>>>2),rn=ln,rn=un>>>0>(mn=un+Ln|0)>>>0?rn+1|0:rn,On=(un=Sn(Mr,Wt,470296,0))+mn|0,mn=ln+rn|0,mn=un>>>0>On>>>0?mn+1|0:mn,un=Sn(lr,Fr,654183,0),rn=ln+mn|0,Ln=rn=un>>>0>(Hn=un+On|0)>>>0?rn+1|0:rn,ar=rn=rn-((Hn>>>0<4293918720)-1|0)|0,un=(mn=rn>>21)+In|0,Gn=rn=(un=(rn=(2097151&rn)<<11|(Cn=Hn- -1048576|0)>>>21)>>>0>(On=rn+Qn|0)>>>0?un+1|0:un)-((On>>>0<4293918720)-1|0)|0,Qn=(2097151&rn)<<11|(In=On- -1048576|0)>>>21,rn=(rn>>21)+Er|0,Er=Dr=Qn+Eo|0,Qn=Qn>>>0>Dr>>>0?rn+1|0:rn,rn=Sn(qr,Pr,-997805,-1),un=ln+un|0,un=rn>>>0>(mn=rn+On|0)>>>0?un+1|0:un,jr=mn-(rn=-2097152&In)|0,hr=un-((rn>>>0>mn>>>0)+Gn|0)|0,un=Sn(qr,Pr,654183,0),rn=Ln+ln|0,Dr=(mn=un+Hn|0)-(un=-2097152&Cn)|0,ar=(rn=mn>>>0>>0?rn+1|0:rn)-((un>>>0>mn>>>0)+ar|0)|0,rn=Sn(Mr,Wt,666643,0),un=ln,un=rn>>>0>(mn=rn+(Cr>>>5&2097151)|0)>>>0?un+1|0:un,rn=Sn(lr,Fr,470296,0),un=ln+un|0,On=mn=rn+mn|0,mn=rn>>>0>mn>>>0?un+1|0:un,In=Sn(lr,Fr,666643,0),un=(rn=bt[At+2|0])<<16&2031616|bt[0|At]|bt[At+1|0]<<8,rn=ln,Ln=rn=un>>>0>(Gn=In+un|0)>>>0?rn+1|0:rn,Fr=rn=rn-((Gn>>>0<4293918720)-1|0)|0,In=(2097151&rn)<<11|(Cn=Gn- -1048576|0)>>>21,rn=(rn>>21)+mn|0,mn=rn=In>>>0>(Hn=In+On|0)>>>0?rn+1|0:rn,Cr=rn=rn-((Hn>>>0<4293918720)-1|0)|0,In=(2097151&rn)<<11|(On=Hn- -1048576|0)>>>21,rn=(rn>>21)+ar|0,In=In>>>0>(ar=lr=In+Dr|0)>>>0?rn+1|0:rn,rn=Sn(qr,Pr,470296,0),mn=mn+ln|0,mn=(un=rn+Hn|0)>>>0>>0?mn+1|0:mn,Hn=un-(rn=-2097152&On)|0,On=mn-((rn>>>0>un>>>0)+Cr|0)|0,un=Sn(qr,Pr,666643,0),rn=ln+(Ln-(((mn=-2097152&Cn)>>>0>Gn>>>0)+Fr|0)|0)|0,un=(mn=(rn=un>>>0>(lr=un+(Gn-mn|0)|0)>>>0?rn+1|0:rn)>>21)+On|0,rn=(rn=(un=(rn=(2097151&rn)<<11|lr>>>21)>>>0>(Cr=rn+Hn|0)>>>0?un+1|0:un)>>21)+In|0,un=(un=(rn=(un=(2097151&un)<<11|Cr>>>21)>>>0>(ar=un+ar|0)>>>0?rn+1|0:rn)>>21)+hr|0,mn=(rn=(un=(rn=(2097151&rn)<<11|ar>>>21)>>>0>(In=rn+jr|0)>>>0?un+1|0:un)>>21)+Qn|0,rn=(un=(mn=(un=(2097151&un)<<11|In>>>21)>>>0>(Pr=un+Er|0)>>>0?mn+1|0:mn)>>21)+Do|0,un=(mn=(rn=(mn=(2097151&mn)<<11|Pr>>>21)>>>0>(Gn=mn+Po|0)>>>0?rn+1|0:rn)>>21)+ur|0,rn=(rn=(un=(rn=(2097151&rn)<<11|Gn>>>21)>>>0>(Hn=rn+ho|0)>>>0?un+1|0:un)>>21)+Yr|0,un=(un=(rn=(un=(2097151&un)<<11|Hn>>>21)>>>0>(ur=un+Wn|0)>>>0?rn+1|0:rn)>>21)+zn|0,mn=(rn=(un=(rn=(2097151&rn)<<11|ur>>>21)>>>0>(Qn=rn+Bn|0)>>>0?un+1|0:un)>>21)+Xt|0,rn=(un=(mn=(un=(2097151&un)<<11|Qn>>>21)>>>0>(Ln=un+Lt|0)>>>0?mn+1|0:mn)>>21)+Or|0,On=(er=_n-(un=-2097152&er)|0)+((2097151&(rn=(mn=(2097151&mn)<<11|Ln>>>21)>>>0>(Cn=mn+Ct|0)>>>0?rn+1|0:rn))<<11|Cn>>>21)|0,rn=(or-((un>>>0>_n>>>0)+so|0)|0)+(rn>>21)|0,er=un=(rn=On>>>0>>0?rn+1|0:rn)>>21,lr=(rn=Sn(zn=(2097151&rn)<<11|On>>>21,un,666643,0))+(un=2097151&lr)|0,rn=ln,_n=rn=un>>>0>lr>>>0?rn+1|0:rn,Ft[0|At]=lr,Ft[At+1|0]=(255&rn)<<24|lr>>>8,rn=2097151&Cr,un=Sn(zn,er,470296,0)+rn|0,mn=ln,rn=(_n>>21)+(rn>>>0>un>>>0?mn+1|0:mn)|0,rn=(or=(2097151&_n)<<11|lr>>>21)>>>0>(Cr=or+un|0)>>>0?rn+1|0:rn,Ft[At+4|0]=(2047&rn)<<21|Cr>>>11,un=rn,mn=Cr,Ft[At+3|0]=(7&rn)<<29|mn>>>3,Ft[At+2|0]=31&((65535&_n)<<16|lr>>>16)|mn<<5,_n=2097151&ar,ar=Sn(zn,er,654183,0)+_n|0,rn=ln,Cr=(2097151&un)<<11|mn>>>21,un=(un>>21)+(_n=_n>>>0>ar>>>0?rn+1|0:rn)|0,rn=un=(ar=Cr+ar|0)>>>0>>0?un+1|0:un,Ft[At+6|0]=(63&rn)<<26|ar>>>6,_n=ar,ar=0,Ft[At+5|0]=ar<<13|(1572864&mn)>>>19|_n<<2,mn=2097151&In,In=Sn(zn,er,-997805,-1)+mn|0,un=ln,un=mn>>>0>In>>>0?un+1|0:un,ar=(2097151&(mn=rn))<<11|_n>>>21,mn=(rn>>=21)+un|0,mn=(In=ar+In|0)>>>0>>0?mn+1|0:mn,Ft[At+9|0]=(511&mn)<<23|In>>>9,Ft[At+8|0]=(1&mn)<<31|In>>>1,un=0,Ft[At+7|0]=un<<18|(2080768&_n)>>>14|In<<7,un=2097151&Pr,_n=Sn(zn,er,136657,0)+un|0,rn=ln,rn=un>>>0>_n>>>0?rn+1|0:rn,Pr=(2097151&(un=mn))<<11|In>>>21,un=rn+(mn=un>>21)|0,un=(_n=Pr+_n|0)>>>0>>0?un+1|0:un,Ft[At+12|0]=(4095&un)<<20|_n>>>12,mn=_n,Ft[At+11|0]=(15&un)<<28|mn>>>4,_n=0,Ft[At+10|0]=_n<<15|(1966080&In)>>>17|mn<<4,_n=2097151&Gn,In=Sn(zn,er,-683901,-1)+_n|0,rn=ln,rn=_n>>>0>In>>>0?rn+1|0:rn,_n=un,un=rn+(un>>=21)|0,un=(_n=(Dr=In)+(In=(2097151&_n)<<11|mn>>>21)|0)>>>0>>0?un+1|0:un,Ft[At+14|0]=(127&un)<<25|_n>>>7,In=0,Ft[At+13|0]=In<<12|(1048576&mn)>>>20|_n<<1,rn=un>>21,mn=(un=(2097151&un)<<11|_n>>>21)>>>0>(In=un+(2097151&Hn)|0)>>>0?rn+1|0:rn,Ft[At+17|0]=(1023&mn)<<22|In>>>10,Ft[At+16|0]=(3&mn)<<30|In>>>2,un=0,Ft[At+15|0]=un<<17|(2064384&_n)>>>15|In<<6,rn=mn>>21,rn=(un=(2097151&mn)<<11|In>>>21)>>>0>(mn=un+(2097151&ur)|0)>>>0?rn+1|0:rn,Ft[At+20|0]=(8191&rn)<<19|mn>>>13,Ft[At+19|0]=(31&rn)<<27|mn>>>5,_n=(un=2097151&Qn)+(Qn=(2097151&rn)<<11|mn>>>21)|0,un=rn>>21,un=_n>>>0>>0?un+1|0:un,Qn=_n,Ft[At+21|0]=_n,ur=0,Ft[At+18|0]=ur<<14|(1835008&In)>>>18|mn<<3,Ft[At+22|0]=(255&un)<<24|_n>>>8,mn=un>>21,mn=(_n=(In=(2097151&un)<<11|_n>>>21)+(2097151&Ln)|0)>>>0>>0?mn+1|0:mn,Ft[At+25|0]=(2047&mn)<<21|_n>>>11,Ft[At+24|0]=(7&mn)<<29|_n>>>3,Ft[At+23|0]=31&((65535&un)<<16|Qn>>>16)|_n<<5,rn=mn>>21,rn=(un=(2097151&mn)<<11|_n>>>21)>>>0>(mn=un+(2097151&Cn)|0)>>>0?rn+1|0:rn,Ft[At+27|0]=(63&rn)<<26|mn>>>6,In=0,Ft[At+26|0]=In<<13|(1572864&_n)>>>19|mn<<2,un=rn>>21,un=(rn=(_n=(2097151&rn)<<11|mn>>>21)+(2097151&On)|0)>>>0<_n>>>0?un+1|0:un,Ft[At+31|0]=(131071&un)<<15|rn>>>17,Ft[At+30|0]=(511&un)<<23|rn>>>9,Ft[At+29|0]=(1&un)<<31|rn>>>1,_n=0,Ft[At+28|0]=_n<<18|(2080768&mn)>>>14|rn<<7}function Rs(At,ft){var pt,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn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16|bt[At+19|0]<<24,Xt=bt[At+20|0]|bt[At+21|0]<<8|bt[At+22|0]<<16|bt[At+23|0]<<24,hn=bt[At+24|0]|bt[At+25|0]<<8|bt[At+26|0]<<16|bt[At+27|0]<<24,rn=bt[At+28|0]|bt[At+29|0]<<8|bt[At+30|0]<<16|bt[At+31|0]<<24,Hn=bt[0|ft]|bt[ft+1|0]<<8|bt[ft+2|0]<<16|bt[ft+3|0]<<24,ft=pt- -64|0,un=bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24,ut[ft>>2]=33620224^un,ut[pt+56>>2]=1496785429,ut[pt+60>>2]=1652156816,ut[(At=pt+48|0)>>2]=33620224,ut[At+4>>2]=218629379,ut[pt+40>>2]=1110511904,ut[pt+44>>2]=-584534669,ut[(_t=pt+32|0)>>2]=1427652059,ut[_t+4>>2]=-248528275,mn=Hn^un,ut[pt>>2]=mn,ut[pt+92>>2]=-584534669^rn,ut[pt+88>>2]=1110511904^hn,ut[pt+84>>2]=-248528275^Xt,ut[(Hn=pt+80|0)>>2]=1427652059^Lt,ut[pt+76>>2]=1652156816^Ct,ut[pt+72>>2]=1496785429^Wt,ut[pt+68>>2]=218629379^Ot,Cr^=rn,ut[pt+28>>2]=Cr,or^=hn,ut[pt+24>>2]=or,_n=Qn^Xt,ut[pt+20>>2]=_n,zn^=Lt,ut[(Qn=pt+16|0)>>2]=zn,Ln^=Ct,ut[pt+12>>2]=Ln,In=ar^Wt,ut[pt+8>>2]=In,On=Gn^Ot,ut[pt+4>>2]=On,ar=0;Gn=ut[Hn+12>>2],ut[gt+792>>2]=ut[Hn+8>>2],ut[gt+796>>2]=Gn,Gn=ut[Hn+4>>2],ut[gt+784>>2]=ut[Hn>>2],ut[gt+788>>2]=Gn,Gn=ut[ft+12>>2],ut[gt+760>>2]=ut[ft+8>>2],ut[gt+764>>2]=Gn,Gn=ut[ft+4>>2],ut[gt+752>>2]=ut[ft>>2],ut[gt+756>>2]=Gn,Gn=ut[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=bt[ft+16|0]|bt[ft+17|0]<<8|bt[ft+18|0]<<16|bt[ft+19|0]<<24,Ft[At+16|0]=zn,Ft[At+17|0]=zn>>>8,Ft[At+18|0]=zn>>>16,Ft[At+19|0]=zn>>>24,Ft[At+20|0]=or,Ft[At+21|0]=or>>>8,Ft[At+22|0]=or>>>16,Ft[At+23|0]=or>>>24,zn=bt[ft+12|0]|bt[ft+13|0]<<8|bt[ft+14|0]<<16|bt[ft+15|0]<<24,ft=bt[ft+8|0]|bt[ft+9|0]<<8|bt[ft+10|0]<<16|bt[ft+11|0]<<24,Ft[At+8|0]=ft,Ft[At+9|0]=ft>>>8,Ft[At+10|0]=ft>>>16,Ft[At+11|0]=ft>>>24,Ft[At+12|0]=zn,Ft[At+13|0]=zn>>>8,Ft[At+14|0]=zn>>>16,Ft[At+15|0]=zn>>>24,ft=bt[At+31|0],Ft[At+31|0]=127&ft,Al(pt,At),rn=128&ft,jn=ft=jn-960|0,hA(zn=ft+304|0,pt),ut[ft+304>>2]=ut[ft+304>>2]+1,_l(zn,zn),or=Sn(zn=ut[ft+340>>2],zn>>31,486662,0),zn=ln,Dr=(hr=or+16777216|0)>>>0<16777216?zn+1|0:zn,qr=or-(-33554432&hr)|0,Ln=Sn(zn=ut[ft+336>>2],zn>>31,486662,0),or=ln,Cr=Sn(zn=ut[ft+332>>2],zn>>31,486662,0),zn=ln,Fr=Ln,Ln=(Ln=(zn=(Pr=Cr+16777216|0)>>>0<16777216?zn+1|0:zn)>>25)+or|0,zn=(zn=(33554431&zn)<<7|Pr>>>25)>>>0>(lr=Fr+zn|0)>>>0?Ln+1|0:Ln,gt=((67108863&(zn=(or=lr+33554432|0)>>>0<33554432?zn+1|0:zn))<<6|or>>>26)+qr|0,ut[ft+292>>2]=0-gt,io=lr-(-67108864&or)|0,ut[ft+288>>2]=0-io,qr=Cr-(-33554432&Pr)|0,or=Sn(zn=ut[ft+328>>2],zn>>31,486662,0),zn=ln,Pr=Sn(Ln=ut[ft+324>>2],Ln>>31,486662,0),Ln=ln,Fr=or,zn=zn+(or=(Ln=(lr=Pr+16777216|0)>>>0<16777216?Ln+1|0:Ln)>>25)|0,zn=(Ln=Fr+(Cr=(33554431&Ln)<<7|lr>>>25)|0)>>>0>>0?zn+1|0:zn,_t=((67108863&(zn=(or=Ln+33554432|0)>>>0<33554432?zn+1|0:zn))<<6|or>>>26)+qr|0,ut[ft+284>>2]=0-_t,Ot=Ln-(-67108864&or)|0,ut[ft+280>>2]=0-Ot,qr=Pr-(-33554432&lr)|0,Ln=Sn(zn=ut[ft+320>>2],zn>>31,486662,0),zn=ln,Pr=Sn(or=ut[ft+316>>2],or>>31,486662,0),or=ln,Fr=Ln,zn=(Ln=(or=(lr=Pr+16777216|0)>>>0<16777216?or+1|0:or)>>25)+zn|0,Ln=zn=(or=Fr+(Cr=(33554431&or)<<7|lr>>>25)|0)>>>0>>0?zn+1|0:zn,Wt=((67108863&(Ln=(Cr=or+33554432|0)>>>0<33554432?Ln+1|0:Ln))<<6|Cr>>>26)+qr|0,ut[ft+276>>2]=0-Wt,Ct=or-(-67108864&Cr)|0,ut[ft+272>>2]=0-Ct,Fr=Pr-(-33554432&lr)|0,zn=Sn(zn=ut[ft+312>>2],zn>>31,486662,0),qr=ln,Cr=Sn(or=ut[ft+308>>2],or>>31,486662,0),Ln=ln,or=(33554431&(Ln=(Pr=Cr+16777216|0)>>>0<16777216?Ln+1|0:Ln))<<7|Pr>>>25,Ln=(Ln>>25)+qr|0,or=or>>>0>(lr=or+zn|0)>>>0?Ln+1|0:Ln,Lt=((67108863&(or=(zn=lr+33554432|0)>>>0<33554432?or+1|0:or))<<6|zn>>>26)+Fr|0,ut[ft+268>>2]=0-Lt,Xt=lr-(-67108864&zn)|0,ut[ft+264>>2]=0-Xt,lr=Cr-(-33554432&Pr)|0,or=Sn((33554431&Dr)<<7|hr>>>25,Dr>>25,19,0),zn=ln,Cr=or,or=Sn(Ln=ut[ft+304>>2],Ln>>31,486662,0),zn=ln+zn|0,or=(Ln=Cr+or|0)>>>0>>0?zn+1|0:zn,hn=((67108863&(or=(zn=Ln+33554432|0)>>>0<33554432?or+1|0:or))<<6|zn>>>26)+lr|0,ut[ft+260>>2]=0-hn,Mr=Ln-(-67108864&zn)|0,ut[ft+256>>2]=0-Mr,cr(or=ft+208|0,zn=ft+256|0),$r(ft+160|0,zn,or),un=ut[ft+196>>2],mn=ut[ft+160>>2],Er=ut[ft+208>>2],_n=ut[ft+164>>2],In=ut[ft+168>>2],jr=ut[ft+212>>2],so=ut[ft+216>>2],On=ut[ft+172>>2],Cn=ut[ft+176>>2],pr=ut[ft+220>>2],Or=ut[ft+224>>2],Qn=ut[ft+180>>2],Hn=ut[ft+184>>2],Fr=ut[ft+228>>2],qr=ut[ft+232>>2],Gn=ut[ft+188>>2],er=ut[ft+192>>2],or=Sn(zn=ut[ft+244>>2],zn>>31,486662,0),zn=ln,Dr=(hr=or+16777216|0)>>>0<16777216?zn+1|0:zn,ar=or-(-33554432&hr)|0,zn=Sn(zn=ut[ft+240>>2],zn>>31,486662,0),ur=ln,Cr=Sn(or=ut[ft+236>>2],or>>31,486662,0),Ln=ln,or=zn,zn=(33554431&(Ln=(Pr=Cr+16777216|0)>>>0<16777216?Ln+1|0:Ln))<<7|Pr>>>25,Ln=(Ln>>25)+ur|0,zn=zn>>>0>(lr=or+zn|0)>>>0?Ln+1|0:Ln,Ln=((67108863&(zn=(or=lr+33554432|0)>>>0<33554432?zn+1|0:zn))<<6|or>>>26)+ar|0,ut[ft+244>>2]=Ln,ut[ft+388>>2]=Ln+(un-gt|0),zn=lr-(-67108864&or)|0,ut[ft+240>>2]=zn,ut[ft+384>>2]=zn+(er-io|0),io=Cr-(-33554432&Pr)|0,zn=Sn(qr,qr>>31,486662,0),Cr=ln,Pr=Sn(Fr,Fr>>31,486662,0),or=ln,Fr=zn,zn=(zn=(or=(lr=Pr+16777216|0)>>>0<16777216?or+1|0:or)>>25)+Cr|0,Ln=zn=(Ln=(33554431&or)<<7|lr>>>25)>>>0>(or=Fr+Ln|0)>>>0?zn+1|0:zn,Cr=((67108863&(Ln=(Cr=or+33554432|0)>>>0<33554432?Ln+1|0:Ln))<<6|(zn=Cr)>>>26)+io|0,ut[ft+236>>2]=Cr,ut[ft+380>>2]=Cr+(Gn-_t|0),zn=or-(-67108864&zn)|0,ut[ft+232>>2]=zn,ut[ft+376>>2]=zn+(Hn-Ot|0),qr=Pr-(-33554432&lr)|0,Ln=Sn(Or,Or>>31,486662,0),or=ln,Cr=Sn(pr,pr>>31,486662,0),zn=ln,Fr=Ln,Ln=(Ln=(zn=(Pr=Cr+16777216|0)>>>0<16777216?zn+1|0:zn)>>25)+or|0,or=(zn=(33554431&zn)<<7|Pr>>>25)>>>0>(lr=Fr+zn|0)>>>0?Ln+1|0:Ln,Ln=((67108863&(or=(zn=lr+33554432|0)>>>0<33554432?or+1|0:or))<<6|zn>>>26)+qr|0,ut[ft+228>>2]=Ln,ut[ft+372>>2]=Ln+(Qn-Wt|0),zn=lr-(-67108864&zn)|0,ut[ft+224>>2]=zn,ut[ft+368>>2]=zn+(Cn-Ct|0),qr=Cr-(-33554432&Pr)|0,zn=Sn(so,so>>31,486662,0),or=ln,Pr=Sn(jr,jr>>31,486662,0),Ln=ln,Fr=zn,or=(zn=(Ln=(lr=Pr+16777216|0)>>>0<16777216?Ln+1|0:Ln)>>25)+or|0,zn=or=(Ln=Fr+(Cr=(33554431&Ln)<<7|lr>>>25)|0)>>>0>>0?or+1|0:or,Cr=((67108863&(zn=(Cr=Ln+33554432|0)>>>0<33554432?zn+1|0:zn))<<6|(or=Cr)>>>26)+qr|0,ut[ft+220>>2]=Cr,ut[ft+364>>2]=Cr+(On-Lt|0),zn=Ln-(-67108864&or)|0,ut[ft+216>>2]=zn,ut[ft+360>>2]=zn+(In-Xt|0),lr=Pr-(-33554432&lr)|0,or=Sn((33554431&Dr)<<7|hr>>>25,Dr>>25,19,0),zn=ln,Ln=or,or=Sn(Er,Er>>31,486662,0),zn=ln+zn|0,zn=(Ln=Ln+or|0)>>>0>>0?zn+1|0:zn,Dr=((67108863&(zn=(or=Ln+33554432|0)>>>0<33554432?zn+1|0:zn))<<6|or>>>26)+lr|0,ut[ft+212>>2]=Dr,ut[ft+356>>2]=Dr+(_n-hn|0),zn=Ln-(-67108864&or)|0,ut[ft+208>>2]=zn,ut[ft+352>>2]=zn+(mn-Mr|0),$r(zn=ft+624|0,or=ft+352|0,or),$r(ft,or,zn),cr(or=ft+784|0,ft),cr(or,or),$r(zn=ft+912|0,ft,or),cr(or=ft+576|0,zn),cr(or,or),cr(or,or),cr(or,or),$r(Ln=ft+528|0,zn,or),cr(Ln,Ln),cr(Ln,Ln),$r(Ln,Ln,ft),zn=ut[ft+564>>2],ut[ft+512>>2]=ut[ft+560>>2],ut[ft+516>>2]=zn,zn=ut[ft+556>>2],ut[ft+504>>2]=ut[ft+552>>2],ut[ft+508>>2]=zn,zn=ut[ft+548>>2],ut[ft+496>>2]=ut[ft+544>>2],ut[ft+500>>2]=zn,zn=ut[ft+540>>2],ut[ft+488>>2]=ut[ft+536>>2],ut[ft+492>>2]=zn,zn=ut[ft+532>>2],ut[ft+480>>2]=ut[ft+528>>2],ut[ft+484>>2]=zn,cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),$r(Ln,Ln,zn=ft+480|0),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),cr(Ln,Ln),$r(Ln,Ln,zn),zn=ut[ft+564>>2],ut[ft+464>>2]=ut[ft+560>>2],ut[ft+468>>2]=zn,zn=ut[ft+556>>2],ut[ft+456>>2]=ut[ft+552>>2],ut[ft+460>>2]=zn,zn=ut[ft+548>>2],ut[ft+448>>2]=ut[ft+544>>2],ut[ft+452>>2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zn,ut[ft+660>>2]=Fr,qr=or^Mr&(or^0-or),ut[ft+656>>2]=qr,hr=Ln^Mr&(Ln^0-Ln),ut[ft+652>>2]=hr,Cr=Dr^Mr&(Dr^0-Dr),ut[ft+648>>2]=Cr,Pr=lr^Mr&(lr^0-lr),ut[ft+644>>2]=Pr,lr=Or^Mr&(Or^0-Or),ut[ft+640>>2]=lr,Dr=pr^Mr&(pr^0-pr),ut[ft+636>>2]=Dr,Ln=so^Mr&(so^0-so),ut[ft+632>>2]=Ln,or=jr^Mr&(jr^0-jr),ut[ft+628>>2]=or,zn=(Er^Mr&(Er^0-Er))-(486662&Mr)|0,ut[ft+624>>2]=zn+1,ut[ft+820>>2]=Fr,ut[ft+816>>2]=qr,ut[ft+812>>2]=hr,ut[ft+808>>2]=Cr,ut[ft+804>>2]=Pr,ut[ft+800>>2]=lr,ut[ft+796>>2]=Dr,ut[ft+792>>2]=Ln,ut[ft+788>>2]=or,ut[ft+784>>2]=zn-1,_l(ft,ft+624|0),$r(zn=ft+912|0,ft+784|0,ft),sr(At,zn),Ft[At+31|0]=bt[At+31|0]|rn,yl(ft,At)&&(Jo(),Sr()),zn=ut[ft+36>>2],ut[ft+816>>2]=ut[ft+32>>2],ut[ft+820>>2]=zn,zn=ut[ft+28>>2],ut[ft+808>>2]=ut[ft+24>>2],ut[ft+812>>2]=zn,zn=ut[ft+20>>2],ut[ft+800>>2]=ut[ft+16>>2],ut[ft+804>>2]=zn,zn=ut[ft+12>>2],ut[ft+792>>2]=ut[ft+8>>2],ut[ft+796>>2]=zn,zn=ut[ft+52>>2],ut[ft+832>>2]=ut[ft+48>>2],ut[ft+836>>2]=zn,zn=ut[ft+60>>2],ut[ft+840>>2]=ut[ft+56>>2],ut[ft+844>>2]=zn,zn=ut[4+(or=ft- -64|0)>>2],ut[ft+848>>2]=ut[or>>2],ut[ft+852>>2]=zn,zn=ut[ft+76>>2],ut[ft+856>>2]=ut[ft+72>>2],ut[ft+860>>2]=zn,zn=ut[ft+4>>2],ut[ft+784>>2]=ut[ft>>2],ut[ft+788>>2]=zn,zn=ut[ft+44>>2],ut[ft+824>>2]=ut[ft+40>>2],ut[ft+828>>2]=zn,zn=ut[ft+116>>2],ut[ft+896>>2]=ut[ft+112>>2],ut[ft+900>>2]=zn,zn=ut[ft+108>>2],ut[ft+888>>2]=ut[ft+104>>2],ut[ft+892>>2]=zn,zn=ut[ft+100>>2],ut[ft+880>>2]=ut[ft+96>>2],ut[ft+884>>2]=zn,zn=ut[ft+92>>2],ut[ft+872>>2]=ut[ft+88>>2],ut[ft+876>>2]=zn,zn=ut[ft+84>>2],ut[ft+864>>2]=ut[ft+80>>2],ut[ft+868>>2]=zn,lu(Cr=ft+624|0,Pr=ft+784|0),$r(Pr,Cr,lr=ft+744|0),$r(or=ft+824|0,Ln=ft+664|0,Dr=ft+704|0),$r(zn=ft+864|0,Dr,lr),lu(Cr,Pr),$r(Pr,Cr,lr),$r(or,Ln,Dr),$r(zn,Dr,lr),lu(Cr,Pr),$r(ft,Cr,lr),$r(or=ft+40|0,Ln,Dr),$r(zn=ft+80|0,Dr,lr),$r(ft+120|0,Cr,Ln),_l(Cr,zn),$r(Pr,ft,Cr),$r(zn=ft+912|0,or,Cr),sr(At,zn),sr(ft+576|0,Pr),Ft[At+31|0]=bt[At+31|0]^bt[ft+576|0]<<7,jn=ft+960|0,jn=pt+48|0}function Ds(At){var ft,pt=0,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0;jn=ft=jn-16|0;e:{t:{n:{r:{i:{a:{d:{f:{o:{c:{l:{A:{h:{s:{if((At|=0)>>>0<=244){if(3&(pt=(Ct=ut[9393])>>>(gt=(Lt=At>>>0<11?16:At+11&-8)>>>3|0)|0)){pt=37612+(At=(gt=gt+(1&(-1^pt))|0)<<3)|0,_t=ut[At+37620>>2],(0|pt)!=(0|(At=ut[_t+8>>2]))?(ut[At+12>>2]=pt,ut[pt+8>>2]=At):(un=37572,mn=Nr(-2,gt)&Ct,ut[un>>2]=mn),At=_t+8|0,pt=gt<<3,ut[_t+4>>2]=3|pt,ut[4+(pt=pt+_t|0)>>2]=1|ut[pt+4>>2];break e}if((rn=ut[9395])>>>0>=Lt>>>0)break s;if(pt){pt=37612+(At=(_t=ZA((0-(At=2<>2],(0|pt)!=(0|(At=ut[Ot+8>>2]))?(ut[At+12>>2]=pt,ut[pt+8>>2]=At):(Ct=Nr(-2,_t)&Ct,ut[9393]=Ct),ut[Ot+4>>2]=3|Lt,_t=(At=_t<<3)-Lt|0,ut[4+(gt=Ot+Lt|0)>>2]=1|_t,ut[At+Ot>>2]=_t,rn&&(pt=37612+(-8&rn)|0,Wt=ut[9398],(At=1<<(rn>>>3))&Ct?At=ut[pt+8>>2]:(ut[9393]=At|Ct,At=pt),ut[pt+8>>2]=Wt,ut[At+12>>2]=Wt,ut[Wt+12>>2]=pt,ut[Wt+8>>2]=At),At=Ot+8|0,ut[9398]=gt,ut[9395]=_t;break e}if(!(hn=ut[9394]))break s;for(gt=ut[37876+(ZA(hn)<<2)>>2],Wt=(-8&ut[gt+4>>2])-Lt|0,pt=gt;(At=ut[pt+16>>2])||(At=ut[pt+20>>2]);)Wt=(_t=(pt=(-8&ut[At+4>>2])-Lt|0)>>>0>>0)?pt:Wt,gt=_t?At:gt,pt=At;if(Xt=ut[gt+24>>2],(0|(_t=ut[gt+12>>2]))!=(0|gt)){At=ut[gt+8>>2],ut[At+12>>2]=_t,ut[_t+8>>2]=At;break t}if(!(At=ut[(pt=gt+20|0)>>2])){if(!(At=ut[gt+16>>2]))break h;pt=gt+16|0}for(;Ot=pt,_t=At,(At=ut[(pt=At+20|0)>>2])||(pt=_t+16|0,At=ut[_t+16>>2]););ut[Ot>>2]=0;break t}if(Lt=-1,!(At>>>0>4294967231)&&(Lt=-8&(At=At+11|0),hn=ut[9394])){Wt=0-Lt|0,Ct=0,Lt>>>0<256||(Ct=31,Lt>>>0>16777215||(Ct=62+((Lt>>>38-(At=Io(At>>>8|0))&1)-(At<<1)|0)|0));u:{p:{if(pt=ut[37876+(Ct<<2)>>2])for(At=0,gt=Lt<<((0|Ct)!=31?25-(Ct>>>1|0)|0:0);;){if(!((Ot=(-8&ut[pt+4>>2])-Lt|0)>>>0>=Wt>>>0||(_t=pt,Wt=Ot,Ot))){Wt=0,At=pt;break p}if(Ot=ut[pt+20>>2],pt=ut[16+((gt>>>29&4)+pt|0)>>2],At=Ot?(0|Ot)==(0|pt)?At:Ot:At,gt<<=1,!pt)break}else At=0;if(!(At|_t)){if(_t=0,!(At=(0-(At=2<>2]}if(!At)break u}for(;Wt=(gt=(pt=(-8&ut[At+4>>2])-Lt|0)>>>0>>0)?pt:Wt,_t=gt?At:_t,At=(pt=ut[At+16>>2])||ut[At+20>>2];);}if(!(!_t|ut[9395]-Lt>>>0<=Wt>>>0)){if(Ct=ut[_t+24>>2],(0|_t)!=(0|(gt=ut[_t+12>>2]))){At=ut[_t+8>>2],ut[At+12>>2]=gt,ut[gt+8>>2]=At;break n}if(!(At=ut[(pt=_t+20|0)>>2])){if(!(At=ut[_t+16>>2]))break A;pt=_t+16|0}for(;Ot=pt,gt=At,(At=ut[(pt=At+20|0)>>2])||(pt=gt+16|0,At=ut[gt+16>>2]););ut[Ot>>2]=0;break n}}}if((At=ut[9395])>>>0>=Lt>>>0){_t=ut[9398],(pt=At-Lt|0)>>>0>=16?(ut[4+(gt=_t+Lt|0)>>2]=1|pt,ut[At+_t>>2]=pt,ut[_t+4>>2]=3|Lt):(ut[_t+4>>2]=3|At,ut[4+(At=At+_t|0)>>2]=1|ut[At+4>>2],gt=0,pt=0),ut[9395]=pt,ut[9398]=gt,At=_t+8|0;break e}if((Xt=ut[9396])>>>0>Lt>>>0){pt=Xt-Lt|0,ut[9396]=pt,At=(gt=ut[9399])+Lt|0,ut[9399]=At,ut[At+4>>2]=1|pt,ut[gt+4>>2]=3|Lt,At=gt+8|0;break e}if(At=0,hn=Lt+47|0,ut[9511]?gt=ut[9513]:(ut[9514]=-1,ut[9515]=-1,ut[9512]=4096,ut[9513]=4096,ut[9511]=ft+12&-16^1431655768,ut[9516]=0,ut[9504]=0,gt=4096),(pt=(Ot=hn+gt|0)&(Wt=0-gt|0))>>>0<=Lt>>>0||(_t=ut[9503])&&_t>>>0<(Ct=(gt=ut[9501])+pt|0)>>>0|gt>>>0>=Ct>>>0)break e;s:{if(!(4&bt[38016])){u:{p:{g:{m:{if(_t=ut[9399])for(At=38020;;){if((gt=ut[At>>2])>>>0<=_t>>>0&_t>>>0>2]>>>0)break m;if(!(At=ut[At+8>>2]))break}if((0|(gt=f0(0)))==-1||(Ct=pt,(At=(_t=ut[9512])-1|0)>&&(Ct=(pt-gt|0)+(At+gt&0-_t)|0),Ct>>>0<=Lt>>>0)||(_t=ut[9503])&&_t>>>0<(Wt=(At=ut[9501])+Ct|0)>>>0|At>>>0>=Wt>>>0)break u;if((0|gt)!=(0|(At=f0(Ct))))break g;break s}if((0|(gt=f0(Ct=Wt&Ot-Xt)))==(ut[At>>2]+ut[At+4>>2]|0))break p;At=gt}if((0|At)==-1)break u;if(Lt+48>>>0<=Ct>>>0){gt=At;break s}if((0|f0(gt=(gt=ut[9513])+(hn-Ct|0)&0-gt))==-1)break u;Ct=gt+Ct|0,gt=At;break s}if((0|gt)!=-1)break s}ut[9504]=4|ut[9504]}if((0|(gt=f0(pt)))==-1|(0|(At=f0(0)))==-1|At>>>0<=gt>>>0||(Ct=At-gt|0)>>>0<=Lt+40>>>0)break o}At=ut[9501]+Ct|0,ut[9501]=At,At>>>0>$a[9502]&&(ut[9502]=At);s:{if(Ot=ut[9399]){for(At=38020;;){if(((_t=ut[At>>2])+(pt=ut[At+4>>2])|0)==(0|gt))break s;if(!(At=ut[At+8>>2]))break}break l}for((At=ut[9397])>>>0<=gt>>>0&&At||(ut[9397]=gt),At=0,ut[9506]=Ct,ut[9505]=gt,ut[9401]=-1,ut[9402]=ut[9511],ut[9508]=0;pt=37612+(_t=At<<3)|0,ut[_t+37620>>2]=pt,ut[_t+37624>>2]=pt,(0|(At=At+1|0))!=32;);pt=(_t=Ct-40|0)-(At=-8-gt&7)|0,ut[9396]=pt,At=At+gt|0,ut[9399]=At,ut[At+4>>2]=1|pt,ut[4+(gt+_t|0)>>2]=40,ut[9400]=ut[9515];break c}if(8&ut[At+12>>2]|gt>>>0<=Ot>>>0|_t>>>0>Ot>>>0)break l;ut[At+4>>2]=pt+Ct,gt=(At=-8-Ot&7)+Ot|0,ut[9399]=gt,At=(pt=ut[9396]+Ct|0)-At|0,ut[9396]=At,ut[gt+4>>2]=1|At,ut[4+(pt+Ot|0)>>2]=40,ut[9400]=ut[9515];break c}_t=0;break t}gt=0;break n}$a[9397]>gt>>>0&&(ut[9397]=gt),pt=gt+Ct|0,At=38020;l:{A:{h:{for(;;){if((0|pt)!=ut[At>>2]){if(At=ut[At+8>>2])continue;break h}break}if(!(8&bt[At+12|0]))break A}for(At=38020;;){if((pt=ut[At>>2])>>>0<=Ot>>>0&&(Wt=pt+ut[At+4>>2]|0)>>>0>Ot>>>0)break l;At=ut[At+8>>2]}}if(ut[At>>2]=gt,ut[At+4>>2]=ut[At+4>>2]+Ct,ut[4+(hn=(-8-gt&7)+gt|0)>>2]=3|Lt,At=(Ct=pt+(-8-pt&7)|0)-(Xt=Lt+hn|0)|0,(0|Ot)==(0|Ct)){ut[9399]=Xt,At=ut[9396]+At|0,ut[9396]=At,ut[Xt+4>>2]=1|At;break r}if(ut[9398]==(0|Ct)){ut[9398]=Xt,At=ut[9395]+At|0,ut[9395]=At,ut[Xt+4>>2]=1|At,ut[At+Xt>>2]=At;break r}if((3&(Wt=ut[Ct+4>>2]))!=1)break i;if(Ot=-8&Wt,Wt>>>0<=255){if((0|(gt=ut[Ct+12>>2]))==(0|(pt=ut[Ct+8>>2]))){un=37572,mn=ut[9393]&Nr(-2,Wt>>>3|0),ut[un>>2]=mn;break a}ut[pt+12>>2]=gt,ut[gt+8>>2]=pt;break a}if(Lt=ut[Ct+24>>2],(0|Ct)!=(0|(gt=ut[Ct+12>>2]))){pt=ut[Ct+8>>2],ut[pt+12>>2]=gt,ut[gt+8>>2]=pt;break d}if(!(Wt=ut[(pt=Ct+20|0)>>2])){if(!(Wt=ut[Ct+16>>2]))break f;pt=Ct+16|0}for(;_t=pt,(Wt=ut[(pt=(gt=Wt)+20|0)>>2])||(pt=gt+16|0,Wt=ut[gt+16>>2]););ut[_t>>2]=0;break d}for(pt=(_t=Ct-40|0)-(At=-8-gt&7)|0,ut[9396]=pt,At=At+gt|0,ut[9399]=At,ut[At+4>>2]=1|pt,ut[4+(gt+_t|0)>>2]=40,ut[9400]=ut[9515],ut[(_t=(At=(Wt+(39-Wt&7)|0)-47|0)>>>0>>0?Ot:At)+4>>2]=27,At=ut[9508],ut[_t+16>>2]=ut[9507],ut[_t+20>>2]=At,At=ut[9506],ut[_t+8>>2]=ut[9505],ut[_t+12>>2]=At,ut[9507]=_t+8,ut[9506]=Ct,ut[9505]=gt,ut[9508]=0,At=_t+24|0;ut[At+4>>2]=7,pt=At+8|0,At=At+4|0,pt>>>0>>0;);if((0|_t)!=(0|Ot))if(ut[_t+4>>2]=-2&ut[_t+4>>2],Wt=_t-Ot|0,ut[Ot+4>>2]=1|Wt,ut[_t>>2]=Wt,Wt>>>0<=255)pt=37612+(-8&Wt)|0,(gt=ut[9393])&(At=1<<(Wt>>>3))?At=ut[pt+8>>2]:(ut[9393]=At|gt,At=pt),ut[pt+8>>2]=Ot,ut[At+12>>2]=Ot,ut[Ot+12>>2]=pt,ut[Ot+8>>2]=At;else{At=31,Wt>>>0<=16777215&&(At=62+((Wt>>>38-(At=Io(Wt>>>8|0))&1)-(At<<1)|0)|0),ut[Ot+28>>2]=At,ut[Ot+16>>2]=0,ut[Ot+20>>2]=0,pt=37876+(At<<2)|0;l:{if((_t=ut[9394])&(gt=1<>>1|0)|0:0),_t=ut[pt>>2];;){if((0|Wt)==(-8&ut[(pt=_t)+4>>2]))break l;if(gt=At>>>29|0,At<<=1,!(_t=ut[16+(gt=(4>)+pt|0)>>2]))break}ut[gt+16>>2]=Ot}else ut[9394]=gt|_t,ut[pt>>2]=Ot;ut[Ot+24>>2]=pt,ut[Ot+12>>2]=Ot,ut[Ot+8>>2]=Ot;break c}At=ut[pt+8>>2],ut[At+12>>2]=Ot,ut[pt+8>>2]=Ot,ut[Ot+24>>2]=0,ut[Ot+12>>2]=pt,ut[Ot+8>>2]=At}}if(!((At=ut[9396])>>>0<=Lt>>>0)){pt=At-Lt|0,ut[9396]=pt,At=(gt=ut[9399])+Lt|0,ut[9399]=At,ut[At+4>>2]=1|pt,ut[gt+4>>2]=3|Lt,At=gt+8|0;break e}}ut[9392]=48,At=0;break e}gt=0}if(Lt){_t=ut[Ct+28>>2];d:{if(ut[(pt=37876+(_t<<2)|0)>>2]==(0|Ct)){if(ut[pt>>2]=gt,gt)break d;un=37576,mn=ut[9394]&Nr(-2,_t),ut[un>>2]=mn;break a}if(ut[Lt+(ut[Lt+16>>2]==(0|Ct)?16:20)>>2]=gt,!gt)break a}ut[gt+24>>2]=Lt,(pt=ut[Ct+16>>2])&&(ut[gt+16>>2]=pt,ut[pt+24>>2]=gt),(pt=ut[Ct+20>>2])&&(ut[gt+20>>2]=pt,ut[pt+24>>2]=gt)}}At=At+Ot|0,Wt=ut[4+(Ct=Ot+Ct|0)>>2]}if(ut[Ct+4>>2]=-2&Wt,ut[Xt+4>>2]=1|At,ut[At+Xt>>2]=At,At>>>0<=255)pt=37612+(-8&At)|0,(gt=ut[9393])&(At=1<<(At>>>3))?At=ut[pt+8>>2]:(ut[9393]=At|gt,At=pt),ut[pt+8>>2]=Xt,ut[At+12>>2]=Xt,ut[Xt+12>>2]=pt,ut[Xt+8>>2]=At;else{Wt=31,At>>>0<=16777215&&(Wt=62+((At>>>38-(pt=Io(At>>>8|0))&1)-(pt<<1)|0)|0),ut[Xt+28>>2]=Wt,ut[Xt+16>>2]=0,ut[Xt+20>>2]=0,pt=37876+(Wt<<2)|0;i:{if((_t=ut[9394])&(gt=1<>>1|0)|0:0),gt=ut[pt>>2];;){if(pt=gt,(-8&ut[gt+4>>2])==(0|At))break i;if(_t=Wt>>>29|0,Wt<<=1,!(gt=ut[16+(_t=(4&_t)+gt|0)>>2]))break}ut[_t+16>>2]=Xt}else ut[9394]=gt|_t,ut[pt>>2]=Xt;ut[Xt+24>>2]=pt,ut[Xt+12>>2]=Xt,ut[Xt+8>>2]=Xt;break r}At=ut[pt+8>>2],ut[At+12>>2]=Xt,ut[pt+8>>2]=Xt,ut[Xt+24>>2]=0,ut[Xt+12>>2]=pt,ut[Xt+8>>2]=At}}At=hn+8|0;break e}n:if(Ct){pt=ut[_t+28>>2];r:{if(ut[(At=37876+(pt<<2)|0)>>2]==(0|_t)){if(ut[At>>2]=gt,gt)break r;hn=Nr(-2,pt)&hn,ut[9394]=hn;break n}if(ut[Ct+(ut[Ct+16>>2]==(0|_t)?16:20)>>2]=gt,!gt)break n}ut[gt+24>>2]=Ct,(At=ut[_t+16>>2])&&(ut[gt+16>>2]=At,ut[At+24>>2]=gt),(At=ut[_t+20>>2])&&(ut[gt+20>>2]=At,ut[At+24>>2]=gt)}n:if(Wt>>>0<=15)At=Wt+Lt|0,ut[_t+4>>2]=3|At,ut[4+(At=At+_t|0)>>2]=1|ut[At+4>>2];else if(ut[_t+4>>2]=3|Lt,ut[4+(Ot=_t+Lt|0)>>2]=1|Wt,ut[Ot+Wt>>2]=Wt,Wt>>>0<=255)pt=37612+(-8&Wt)|0,(gt=ut[9393])&(At=1<<(Wt>>>3))?At=ut[pt+8>>2]:(ut[9393]=At|gt,At=pt),ut[pt+8>>2]=Ot,ut[At+12>>2]=Ot,ut[Ot+12>>2]=pt,ut[Ot+8>>2]=At;else{At=31,Wt>>>0<=16777215&&(At=62+((Wt>>>38-(At=Io(Wt>>>8|0))&1)-(At<<1)|0)|0),ut[Ot+28>>2]=At,ut[Ot+16>>2]=0,ut[Ot+20>>2]=0,pt=37876+(At<<2)|0;r:{if((gt=1<>>1|0)|0:0),Lt=ut[pt>>2];;){if((-8&ut[(pt=Lt)+4>>2])==(0|Wt))break r;if(gt=At>>>29|0,At<<=1,!(Lt=ut[16+(gt=(4>)+pt|0)>>2]))break}ut[gt+16>>2]=Ot}else ut[9394]=gt|hn,ut[pt>>2]=Ot;ut[Ot+24>>2]=pt,ut[Ot+12>>2]=Ot,ut[Ot+8>>2]=Ot;break n}At=ut[pt+8>>2],ut[At+12>>2]=Ot,ut[pt+8>>2]=Ot,ut[Ot+24>>2]=0,ut[Ot+12>>2]=pt,ut[Ot+8>>2]=At}At=_t+8|0;break e}t:if(Xt){pt=ut[gt+28>>2];n:{if(ut[(At=37876+(pt<<2)|0)>>2]==(0|gt)){if(ut[At>>2]=_t,_t)break n;un=37576,mn=Nr(-2,pt)&hn,ut[un>>2]=mn;break t}if(ut[Xt+(ut[Xt+16>>2]==(0|gt)?16:20)>>2]=_t,!_t)break t}ut[_t+24>>2]=Xt,(At=ut[gt+16>>2])&&(ut[_t+16>>2]=At,ut[At+24>>2]=_t),(At=ut[gt+20>>2])&&(ut[_t+20>>2]=At,ut[At+24>>2]=_t)}Wt>>>0<=15?(At=Wt+Lt|0,ut[gt+4>>2]=3|At,ut[4+(At=At+gt|0)>>2]=1|ut[At+4>>2]):(ut[gt+4>>2]=3|Lt,ut[4+(_t=gt+Lt|0)>>2]=1|Wt,ut[_t+Wt>>2]=Wt,rn&&(pt=37612+(-8&rn)|0,Ot=ut[9398],(At=1<<(rn>>>3))&Ct?At=ut[pt+8>>2]:(ut[9393]=At|Ct,At=pt),ut[pt+8>>2]=Ot,ut[At+12>>2]=Ot,ut[Ot+12>>2]=pt,ut[Ot+8>>2]=At),ut[9398]=_t,ut[9395]=Wt),At=gt+8|0}return jn=ft+16|0,0|At}function qs(At,ft,pt,gt,_t,Ot){var Wt,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,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|hn]=0;if(!(Ot>>>0>252)){t:if(Lt=Ft[0|(hn=(_t=Ot+3|0)+(Ct+2016|0)|0)])if((0|(Lt=(un=Lt<<3)+(Xt=Ft[0|mn])|0))>=16){if((0|(Lt=Xt-un|0))<-15)break e;for(Ft[0|mn]=Lt;;){if(bt[0|(Lt=(Ct+2016|0)+_t|0)]){if(Ft[0|Lt]=0,Lt=_t>>>0<255,_t=_t+1|0,Lt)continue;break t}break}Ft[0|Lt]=1}else Ft[0|mn]=Lt,Ft[0|hn]=0;if(!(Ot>>>0>251)){t:if(Lt=Ft[0|(hn=(_t=Ot+4|0)+(Ct+2016|0)|0)])if((0|(Lt=(un=Lt<<4)+(Xt=Ft[0|mn])|0))>=16){if((0|(Lt=Xt-un|0))<-15)break e;for(Ft[0|mn]=Lt;;){if(bt[0|(Lt=(Ct+2016|0)+_t|0)]){if(Ft[0|Lt]=0,Lt=_t>>>0<255,_t=_t+1|0,Lt)continue;break t}break}Ft[0|Lt]=1}else Ft[0|mn]=Lt,Ft[0|hn]=0;if(!(Ot>>>0>250)){t:if(Lt=Ft[0|(hn=(_t=Ot+5|0)+(Ct+2016|0)|0)])if((0|(Lt=(un=Lt<<5)+(Xt=Ft[0|mn])|0))>=16){if((0|(Lt=Xt-un|0))<-15)break e;for(Ft[0|mn]=Lt;;){if(bt[0|(Lt=(Ct+2016|0)+_t|0)]){if(Ft[0|Lt]=0,Lt=_t>>>0<255,_t=_t+1|0,Lt)continue;break t}break}Ft[0|Lt]=1}else Ft[0|mn]=Lt,Ft[0|hn]=0;if(!(Ot>>>0>249)&&(Ot=Ft[0|(un=(_t=Ot+6|0)+(Ct+2016|0)|0)]))if((0|(Ot=(Xt=Ot<<6)+(Lt=Ft[0|mn])|0))>=16){if((0|(Ot=Lt-Xt|0))<-15)break e;for(Ft[0|mn]=Ot;;){if(bt[0|(Ot=(Ct+2016|0)+_t|0)]){if(Ft[0|Ot]=0,Ot=_t>>>0<255,_t=_t+1|0,Ot)continue;break e}break}Ft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;if(!(pt>>>0>251)){t:if(Ot=Ft[0|(un=(_t=pt+4|0)+(Ct+1760|0)|0)])if((0|(Ot=(Xt=Ot<<4)+(Lt=Ft[0|hn])|0))>=16){if((0|(Ot=Lt-Xt|0))<-15)break e;for(Ft[0|hn]=Ot;;){if(bt[0|(Ot=(Ct+1760|0)+_t|0)]){if(Ft[0|Ot]=0,Ot=_t>>>0<255,_t=_t+1|0,Ot)continue;break t}break}Ft[0|Ot]=1}else Ft[0|hn]=Ot,Ft[0|un]=0;if(!(pt>>>0>250)){t:if(Ot=Ft[0|(un=(_t=pt+5|0)+(Ct+1760|0)|0)])if((0|(Ot=(Xt=Ot<<5)+(Lt=Ft[0|hn])|0))>=16){if((0|(Ot=Lt-Xt|0))<-15)break e;for(Ft[0|hn]=Ot;;){if(bt[0|(Ot=(Ct+1760|0)+_t|0)]){if(Ft[0|Ot]=0,Ot=_t>>>0<255,_t=_t+1|0,Ot)continue;break t}break}Ft[0|Ot]=1}else Ft[0|hn]=Ot,Ft[0|un]=0;if(!(pt>>>0>249)&&(pt=Ft[0|(Xt=(_t=pt+6|0)+(Ct+1760|0)|0)]))if((0|(pt=(Lt=pt<<6)+(Ot=Ft[0|hn])|0))>=16){if((0|(pt=Ot-Lt|0))<-15)break e;for(Ft[0|hn]=pt;;){if(bt[0|(pt=(Ct+1760|0)+_t|0)]){if(Ft[0|pt]=0,pt=_t>>>0<255,_t=_t+1|0,pt)continue;break e}break}Ft[0|pt]=1}else Ft[0|hn]=pt,Ft[0|Xt]=0}}}}}if((0|ft)==256)break}for(Dn(_t=Ct+480|0,rn),ft=ut[rn+36>>2],ut[Ct+192>>2]=ut[rn+32>>2],ut[Ct+196>>2]=ft,ft=ut[rn+28>>2],ut[Ct+184>>2]=ut[rn+24>>2],ut[Ct+188>>2]=ft,ft=ut[rn+20>>2],ut[Ct+176>>2]=ut[rn+16>>2],ut[Ct+180>>2]=ft,ft=ut[rn+12>>2],ut[Ct+168>>2]=ut[rn+8>>2],ut[Ct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&ft)<<6|Fo>>>26)|0)>>>0>>0?tr+1|0:tr,tr=(ft=(pt=ft)+16777216|0)>>>0<16777216?tr+1|0:tr,ut[At+36>>2]=pt-(-33554432&ft),Br=Mo-(-33554432&Ls)|0,Ar=wo-(pt=-67108864&vs)|0,is=ys-((pt>>>0>wo>>>0)+_i|0)|0,ft=(pt=Sn((33554431&(pt=tr))<<7|ft>>>25,tr>>=25,19,0))+Ar|0,Ar=ln+is|0,tr=ft>>>0>>0?Ar+1|0:Ar,tr=((67108863&(tr=(ft=(pt=ft)+33554432|0)>>>0<33554432?tr+1|0:tr))<<6|ft>>>26)+Br|0,ut[At+4>>2]=tr,ut[At>>2]=pt-(-67108864&ft)}function Vs(At,ft,pt,gt,_t){var Ot,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0;for(jn=Ot=jn-288|0,_n=(bt[_t+44|0]|bt[_t+45|0]<<8|bt[_t+46|0]<<16|bt[_t+47|0]<<24)^gt>>>29,In=(bt[_t+40|0]|bt[_t+41|0]<<8|bt[_t+42|0]<<16|bt[_t+43|0]<<24)^gt<<3,On=(bt[_t+36|0]|bt[_t+37|0]<<8|bt[_t+38|0]<<16|bt[_t+39|0]<<24)^pt>>>29,gt=(bt[0|(Lt=_t+32|0)]|bt[Lt+1|0]<<8|bt[Lt+2|0]<<16|bt[Lt+3|0]<<24)^pt<<3,un=_t+16|0,hn=_t+48|0,Ct=_t- -64|0,rn=_t+80|0,Wt=_t+96|0,Xt=_t+112|0;pt=ut[Xt+12>>2],ut[Ot+280>>2]=ut[Xt+8>>2],ut[Ot+284>>2]=pt,pt=ut[Xt+4>>2],ut[Ot+272>>2]=ut[Xt>>2],ut[Ot+276>>2]=pt,pt=ut[Wt+12>>2],ut[Ot+248>>2]=ut[Wt+8>>2],ut[Ot+252>>2]=pt,pt=ut[Wt+4>>2],ut[Ot+240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|bt[_t+69|0]<<8|bt[_t+70|0]<<16|bt[_t+71|0]<<24),ut[_t+68>>2]=ur,Ln=In^(bt[_t+72|0]|bt[_t+73|0]<<8|bt[_t+74|0]<<16|bt[_t+75|0]<<24),ut[_t+72>>2]=Ln,zn=_n^(bt[_t+76|0]|bt[_t+77|0]<<8|bt[_t+78|0]<<16|bt[_t+79|0]<<24),ut[_t+76>>2]=zn,(0|(Cn=Cn+1|0))!=7;);e:{t:{n:{if(pt=ft-16|0){if((0|pt)==16)break n;break t}Ct=bt[_t+16|0]|bt[_t+17|0]<<8|bt[_t+18|0]<<16|bt[_t+19|0]<<24,Lt=bt[_t+48|0]|bt[_t+49|0]<<8|bt[_t+50|0]<<16|bt[_t+51|0]<<24,un=bt[_t+32|0]|bt[_t+33|0]<<8|bt[_t+34|0]<<16|bt[_t+35|0]<<24,hn=bt[_t+96|0]|bt[_t+97|0]<<8|bt[_t+98|0]<<16|bt[_t+99|0]<<24,rn=bt[_t+80|0]|bt[_t+81|0]<<8|bt[_t+82|0]<<16|bt[_t+83|0]<<24,Wt=bt[_t+20|0]|bt[_t+21|0]<<8|bt[_t+22|0]<<16|bt[_t+23|0]<<24,Xt=bt[_t+52|0]|bt[_t+53|0]<<8|bt[_t+54|0]<<16|bt[_t+55|0]<<24,mn=bt[_t+36|0]|bt[_t+37|0]<<8|bt[_t+38|0]<<16|bt[_t+39|0]<<24,_n=bt[_t+100|0]|bt[_t+101|0]<<8|bt[_t+102|0]<<16|bt[_t+103|0]<<24,In=bt[_t+84|0]|bt[_t+85|0]<<8|bt[_t+86|0]<<16|bt[_t+87|0]<<24,On=bt[_t+24|0]|bt[_t+25|0]<<8|bt[_t+26|0]<<16|bt[_t+27|0]<<24,Cn=bt[_t+56|0]|bt[_t+57|0]<<8|bt[_t+58|0]<<16|bt[_t+59|0]<<24,gt=bt[_t+40|0]|bt[_t+41|0]<<8|bt[_t+42|0]<<16|bt[_t+43|0]<<24,pt=bt[_t+104|0]|bt[_t+105|0]<<8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t[_t+71|0]<<24,In=bt[_t+116|0]|bt[_t+117|0]<<8|bt[_t+118|0]<<16|bt[_t+119|0]<<24,On=bt[_t+100|0]|bt[_t+101|0]<<8|bt[_t+102|0]<<16|bt[_t+103|0]<<24,Cn=bt[_t+88|0]|bt[_t+89|0]<<8|bt[_t+90|0]<<16|bt[_t+91|0]<<24,gt=bt[_t+72|0]|bt[_t+73|0]<<8|bt[_t+74|0]<<16|bt[_t+75|0]<<24,pt=bt[_t+120|0]|bt[_t+121|0]<<8|bt[_t+122|0]<<16|bt[_t+123|0]<<24,ft=bt[_t+104|0]|bt[_t+105|0]<<8|bt[_t+106|0]<<16|bt[_t+107|0]<<24,_t=(bt[_t+92|0]|bt[_t+93|0]<<8|bt[_t+94|0]<<16|bt[_t+95|0]<<24)^(bt[_t+76|0]|bt[_t+77|0]<<8|bt[_t+78|0]<<16|bt[_t+79|0]<<24)^(bt[_t+124|0]|bt[_t+125|0]<<8|bt[_t+126|0]<<16|bt[_t+127|0]<<24)^(bt[_t+108|0]|bt[_t+109|0]<<8|bt[_t+110|0]<<16|bt[_t+111|0]<<24),Ft[At+28|0]=_t,Ft[At+29|0]=_t>>>8,Ft[At+30|0]=_t>>>16,Ft[At+31|0]=_t>>>24,ft=Cn^gt^ft^pt,Ft[At+24|0]=ft,Ft[At+25|0]=ft>>>8,Ft[At+26|0]=ft>>>16,Ft[At+27|0]=ft>>>24,ft=mn^_n^In^On,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>>8,Ft[At+22|0]=ft>>>16,Ft[At+23|0]=ft>>>24,ft=hn^rn^Wt^Xt,Ft[At+16|0]=ft,Ft[At+17|0]=ft>>>8,Ft[At+18|0]=ft>>>16,Ft[At+19|0]=ft>>>24;break e}ms(At,0,ft)}jn=Ot+288|0}function zs(At,ft,pt,gt){var _t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0,lr=0,Pr=0,Dr=0;for(_t=bt[0|ft]|bt[ft+1|0]<<8|bt[ft+2|0]<<16|bt[ft+3|0]<<24,ut[pt>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+4|0]|bt[ft+5|0]<<8|bt[ft+6|0]<<16|bt[ft+7|0]<<24,ut[pt+4>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+8|0]|bt[ft+9|0]<<8|bt[ft+10|0]<<16|bt[ft+11|0]<<24,ut[pt+8>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+12|0]|bt[ft+13|0]<<8|bt[ft+14|0]<<16|bt[ft+15|0]<<24,ut[pt+12>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+16|0]|bt[ft+17|0]<<8|bt[ft+18|0]<<16|bt[ft+19|0]<<24,ut[pt+16>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+20|0]|bt[ft+21|0]<<8|bt[ft+22|0]<<16|bt[ft+23|0]<<24,ut[pt+20>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+24|0]|bt[ft+25|0]<<8|bt[ft+26|0]<<16|bt[ft+27|0]<<24,ut[pt+24>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+28|0]|bt[ft+29|0]<<8|bt[ft+30|0]<<16|bt[ft+31|0]<<24,ut[pt+28>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+32|0]|bt[ft+33|0]<<8|bt[ft+34|0]<<16|bt[ft+35|0]<<24,ut[pt+32>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+36|0]|bt[ft+37|0]<<8|bt[ft+38|0]<<16|bt[ft+39|0]<<24,ut[pt+36>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+40|0]|bt[ft+41|0]<<8|bt[ft+42|0]<<16|bt[ft+43|0]<<24,ut[pt+40>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+44|0]|bt[ft+45|0]<<8|bt[ft+46|0]<<16|bt[ft+47|0]<<24,ut[pt+44>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+48|0]|bt[ft+49|0]<<8|bt[ft+50|0]<<16|bt[ft+51|0]<<24,ut[pt+48>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+52|0]|bt[ft+53|0]<<8|bt[ft+54|0]<<16|bt[ft+55|0]<<24,ut[pt+52>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,_t=bt[ft+56|0]|bt[ft+57|0]<<8|bt[ft+58|0]<<16|bt[ft+59|0]<<24,ut[pt+56>>2]=_t<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,ft=bt[ft+60|0]|bt[ft+61|0]<<8|bt[ft+62|0]<<16|bt[ft+63|0]<<24,ut[pt+60>>2]=ft<<24|(65280&ft)<<8|ft>>>8&65280|ft>>>24,ft=ut[At+28>>2],ut[gt+24>>2]=ut[At+24>>2],ut[gt+28>>2]=ft,ft=ut[At+20>>2],ut[gt+16>>2]=ut[At+16>>2],ut[gt+20>>2]=ft,ft=ut[At+12>>2],ut[gt+8>>2]=ut[At+8>>2],ut[gt+12>>2]=ft,ft=ut[At+4>>2],ut[gt>>2]=ut[At>>2],ut[gt+4>>2]=ft;Lt=ut[gt+28>>2],_t=(ft=Gn<<2)+pt|0,Wt=ut[gt+16>>2],Xt=ut[_t>>2]+(Nr(Wt,26)^Nr(Wt,21)^Nr(Wt,7))|0,rn=(Lt=((Ot=ut[ft+34432>>2]+Xt|0)+(Wt&((Xt=ut[gt+24>>2])^(un=ut[gt+20>>2]))^Xt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=bt[pt+60|0]|bt[pt+61|0]<<8|bt[pt+62|0]<<16|bt[pt+63|0]<<24,Cr=bt[pt+32|0]|bt[pt+33|0]<<8|bt[pt+34|0]<<16|bt[pt+35|0]<<24,Fr=bt[pt+80|0]|bt[pt+81|0]<<8|bt[pt+82|0]<<16|bt[pt+83|0]<<24,Hn=bt[ft+16|0]|bt[ft+17|0]<<8|bt[ft+18|0]<<16|bt[ft+19|0]<<24,Gn=bt[pt+112|0]|bt[pt+113|0]<<8|bt[pt+114|0]<<16|bt[pt+115|0]<<24,or=bt[pt+96|0]|bt[pt+97|0]<<8|bt[pt+98|0]<<16|bt[pt+99|0]<<24,lr=bt[pt+36|0]|bt[pt+37|0]<<8|bt[pt+38|0]<<16|bt[pt+39|0]<<24,qr=bt[pt+84|0]|bt[pt+85|0]<<8|bt[pt+86|0]<<16|bt[pt+87|0]<<24,er=bt[ft+20|0]|bt[ft+21|0]<<8|bt[ft+22|0]<<16|bt[ft+23|0]<<24,ar=bt[pt+116|0]|bt[pt+117|0]<<8|bt[pt+118|0]<<16|bt[pt+119|0]<<24,Ot=bt[pt+100|0]|bt[pt+101|0]<<8|bt[pt+102|0]<<16|bt[pt+103|0]<<24,Pr=bt[pt+40|0]|bt[pt+41|0]<<8|bt[pt+42|0]<<16|bt[pt+43|0]<<24,Mr=bt[pt+88|0]|bt[pt+89|0]<<8|bt[pt+90|0]<<16|bt[pt+91|0]<<24,ur=bt[ft+24|0]|bt[ft+25|0]<<8|bt[ft+26|0]<<16|bt[ft+27|0]<<24,Ln=bt[pt+120|0]|bt[pt+121|0]<<8|bt[pt+122|0]<<16|bt[pt+123|0]<<24,Wt=bt[pt+104|0]|bt[pt+105|0]<<8|bt[pt+106|0]<<16|bt[pt+107|0]<<24,zn=bt[0|ft]|bt[ft+1|0]<<8|bt[ft+2|0]<<16|bt[ft+3|0]<<24,_t=(Ct=bt[pt+44|0]|bt[pt+45|0]<<8|bt[pt+46|0]<<16|bt[pt+47|0]<<24)^(Lt=bt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ut[pt+108>>2],ut[gt+248>>2]=ut[pt+104>>2],ut[gt+252>>2]=At,At=ut[pt+100>>2],ut[gt+240>>2]=ut[pt+96>>2],ut[gt+244>>2]=At,At=ut[pt+124>>2],ut[gt+232>>2]=ut[pt+120>>2],ut[gt+236>>2]=At,At=ut[pt+116>>2],ut[gt+224>>2]=ut[pt+112>>2],ut[gt+228>>2]=At,wn(ft=gt+256|0,gt+240|0,gt+224|0),At=ut[gt+268>>2],ut[pt+120>>2]=ut[gt+264>>2],ut[pt+124>>2]=At,At=ut[gt+260>>2],ut[pt+112>>2]=ut[gt+256>>2],ut[pt+116>>2]=At,At=ut[pt+92>>2],ut[gt+216>>2]=ut[pt+88>>2],ut[gt+220>>2]=At,At=ut[pt+84>>2],ut[gt+208>>2]=ut[pt+80>>2],ut[gt+212>>2]=At,At=ut[pt+108>>2],ut[gt+200>>2]=ut[pt+104>>2],ut[gt+204>>2]=At,At=ut[pt+100>>2],ut[gt+192>>2]=ut[pt+96>>2],ut[gt+196>>2]=At,wn(ft,gt+208|0,gt+192|0),At=ut[gt+268>>2],ut[pt+104>>2]=ut[gt+264>>2],ut[pt+108>>2]=At,At=ut[gt+260>>2],ut[pt+96>>2]=ut[gt+256>>2],ut[pt+100>>2]=At,At=ut[pt+76>>2],ut[gt+184>>2]=ut[pt+72>>2],ut[gt+188>>2]=At,or=ut[4+(At=pt- -64|0)>>2],ut[gt+176>>2]=ut[At>>2],ut[gt+180>>2]=or,or=ut[pt+92>>2],ut[gt+168>>2]=ut[pt+88>>2],ut[gt+172>>2]=or,or=ut[pt+84>>2],ut[gt+160>>2]=ut[pt+80>>2],ut[gt+164>>2]=or,wn(ft,gt+176|0,gt+160|0),or=ut[gt+268>>2],ut[pt+88>>2]=ut[gt+264>>2],ut[pt+92>>2]=or,or=ut[gt+260>>2],ut[pt+80>>2]=ut[gt+256>>2],ut[pt+84>>2]=or,or=ut[pt+60>>2],ut[gt+152>>2]=ut[pt+56>>2],ut[gt+156>>2]=or,or=ut[pt+52>>2],ut[gt+144>>2]=ut[pt+48>>2],ut[gt+148>>2]=or,or=ut[pt+76>>2],ut[gt+136>>2]=ut[pt+72>>2],ut[gt+140>>2]=or,or=ut[At+4>>2],ut[gt+128>>2]=ut[At>>2],ut[gt+132>>2]=or,wn(ft,gt+144|0,gt+128|0),or=ut[gt+268>>2],ut[pt+72>>2]=ut[gt+264>>2],ut[pt+76>>2]=or,or=ut[gt+260>>2],ut[At>>2]=ut[gt+256>>2],ut[At+4>>2]=or,or=ut[pt+44>>2],ut[gt+120>>2]=ut[pt+40>>2],ut[gt+124>>2]=or,or=ut[pt+36>>2],ut[gt+112>>2]=ut[pt+32>>2],ut[gt+116>>2]=or,or=ut[pt+60>>2],ut[gt+104>>2]=ut[pt+56>>2],ut[gt+108>>2]=or,or=ut[pt+52>>2],ut[gt+96>>2]=ut[pt+48>>2],ut[gt+100>>2]=or,wn(ft,gt+112|0,gt+96|0),or=ut[gt+268>>2],ut[pt+56>>2]=ut[gt+264>>2],ut[pt+60>>2]=or,or=ut[gt+260>>2],ut[pt+48>>2]=ut[gt+256>>2],ut[pt+52>>2]=or,or=ut[pt+28>>2],ut[gt+88>>2]=ut[pt+24>>2],ut[gt+92>>2]=or,or=ut[pt+20>>2],ut[gt+80>>2]=ut[pt+16>>2],ut[gt+84>>2]=or,or=ut[pt+44>>2],ut[gt+72>>2]=ut[pt+40>>2],ut[gt+76>>2]=or,or=ut[pt+36>>2],ut[gt+64>>2]=ut[pt+32>>2],ut[gt+68>>2]=or,wn(ft,gt+80|0,gt- -64|0),or=ut[gt+268>>2],ut[pt+40>>2]=ut[gt+264>>2],ut[pt+44>>2]=or,or=ut[gt+260>>2],ut[pt+32>>2]=ut[gt+256>>2],ut[pt+36>>2]=or,or=ut[pt+12>>2],ut[gt+56>>2]=ut[pt+8>>2],ut[gt+60>>2]=or,or=ut[pt+4>>2],ut[gt+48>>2]=ut[pt>>2],ut[gt+52>>2]=or,or=ut[pt+28>>2],ut[gt+40>>2]=ut[pt+24>>2],ut[gt+44>>2]=or,or=ut[pt+20>>2],ut[gt+32>>2]=ut[pt+16>>2],ut[gt+36>>2]=or,wn(ft,gt+48|0,gt+32|0),or=ut[gt+268>>2],ut[pt+24>>2]=ut[gt+264>>2],ut[pt+28>>2]=or,or=ut[gt+260>>2],ut[pt+16>>2]=ut[gt+256>>2],ut[pt+20>>2]=or,or=ut[gt+284>>2],ut[gt+24>>2]=ut[gt+280>>2],ut[gt+28>>2]=or,or=ut[gt+276>>2],ut[gt+16>>2]=ut[gt+272>>2],ut[gt+20>>2]=or,or=ut[pt+12>>2],ut[gt+8>>2]=ut[pt+8>>2],ut[gt+12>>2]=or,or=ut[pt+4>>2],ut[gt>>2]=ut[pt>>2],ut[gt+4>>2]=or,wn(ft,gt+16|0,gt),ft=ut[gt+268>>2],ut[pt+8>>2]=ut[gt+264>>2],ut[pt+12>>2]=ft,ft=ut[gt+260>>2],ut[pt>>2]=ut[gt+256>>2],ut[pt+4>>2]=ft,ut[pt+12>>2]=Dr^(bt[pt+12|0]|bt[pt+13|0]<<8|bt[pt+14|0]<<16|bt[pt+15|0]<<24),ut[pt+8>>2]=Pr^(bt[pt+8|0]|bt[pt+9|0]<<8|bt[pt+10|0]<<16|bt[pt+11|0]<<24),ut[pt+4>>2]=lr^(bt[pt+4|0]|bt[pt+5|0]<<8|bt[pt+6|0]<<16|bt[pt+7|0]<<24),ut[pt>>2]=Cr^(bt[0|pt]|bt[pt+1|0]<<8|bt[pt+2|0]<<16|bt[pt+3|0]<<24),ut[At>>2]=Fr^(bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24),ut[pt+68>>2]=qr^(bt[pt+68|0]|bt[pt+69|0]<<8|bt[pt+70|0]<<16|bt[pt+71|0]<<24),ut[pt+72>>2]=Mr^(bt[pt+72|0]|bt[pt+73|0]<<8|bt[pt+74|0]<<16|bt[pt+75|0]<<24),ut[pt+76>>2]=_t^(bt[pt+76|0]|bt[pt+77|0]<<8|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+96|0]|bt[pt+97|0]<<8|bt[pt+98|0]<<16|bt[pt+99|0]<<24,Xt=bt[pt+36|0]|bt[pt+37|0]<<8|bt[pt+38|0]<<16|bt[pt+39|0]<<24,hn=bt[ft+20|0]|bt[ft+21|0]<<8|bt[ft+22|0]<<16|bt[ft+23|0]<<24,Pr=bt[pt+84|0]|bt[pt+85|0]<<8|bt[pt+86|0]<<16|bt[pt+87|0]<<24,Dr=bt[pt+116|0]|bt[pt+117|0]<<8|bt[pt+118|0]<<16|bt[pt+119|0]<<24,rn=bt[pt+100|0]|bt[pt+101|0]<<8|bt[pt+102|0]<<16|bt[pt+103|0]<<24,un=bt[pt+40|0]|bt[pt+41|0]<<8|bt[pt+42|0]<<16|bt[pt+43|0]<<24,mn=bt[ft+24|0]|bt[ft+25|0]<<8|bt[ft+26|0]<<16|bt[ft+27|0]<<24,Fr=bt[pt+88|0]|bt[pt+89|0]<<8|bt[pt+90|0]<<16|bt[pt+91|0]<<24,qr=bt[pt+120|0]|bt[pt+121|0]<<8|bt[pt+122|0]<<16|bt[pt+123|0]<<24,_n=bt[pt+104|0]|bt[pt+105|0]<<8|bt[pt+106|0]<<16|bt[pt+107|0]<<24,In=bt[0|ft]|bt[ft+1|0]<<8|bt[ft+2|0]<<16|bt[ft+3|0]<<24,ft=(On=bt[pt+44|0]|bt[pt+45|0]<<8|bt[pt+46|0]<<16|bt[pt+47|0]<<24)^(Cn=bt[ft+28|0]|bt[ft+29|0]<<8|bt[ft+30|0]<<16|bt[ft+31|0]<<24)^(Qn=bt[pt+108|0]|bt[pt+109|0]<<8|bt[pt+110|0]<<16|bt[pt+111|0]<<24)&(bt[pt+124|0]|bt[pt+125|0]<<8|bt[pt+126|0]<<16|bt[pt+127|0]<<24)^(bt[pt+92|0]|bt[pt+93|0]<<8|bt[pt+94|0]<<16|bt[pt+95|0]<<24),Ft[At+28|0]=ft,Ft[At+29|0]=ft>>>8,Ft[At+30|0]=ft>>>16,Ft[At+31|0]=ft>>>24,ft=_n&qr^Fr^mn^un,Ft[At+24|0]=ft,Ft[At+25|0]=ft>>>8,Ft[At+26|0]=ft>>>16,Ft[At+27|0]=ft>>>24,ft=rn&Dr^Pr^hn^Xt,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>>8,Ft[At+22|0]=ft>>>16,Ft[At+23|0]=ft>>>24,ft=Mr^Lt&lr^Cr^Ct,Ft[At+16|0]=ft,Ft[At+17|0]=ft>>>8,Ft[At+18|0]=ft>>>16,Ft[At+19|0]=ft>>>24,ft=or&On^zn^Wt^Qn,Ft[At+12|0]=ft,Ft[At+13|0]=ft>>>8,Ft[At+14|0]=ft>>>16,Ft[At+15|0]=ft>>>24,ft=un&Ln^ur^Ot^_n,Ft[At+8|0]=ft,Ft[At+9|0]=ft>>>8,Ft[At+10|0]=ft>>>16,Ft[At+11|0]=ft>>>24,ft=Xt&ar^er^_t^rn,Ft[At+4|0]=ft,Ft[At+5|0]=ft>>>8,Ft[At+6|0]=ft>>>16,Ft[At+7|0]=ft>>>24,ft=Mr&Gn^Hn^In^Lt,Ft[0|At]=ft,Ft[At+1|0]=ft>>>8,Ft[At+2|0]=ft>>>16,Ft[At+3|0]=ft>>>24,At=ut[pt+124>>2],ut[gt+280>>2]=ut[pt+120>>2],ut[gt+284>>2]=At,At=ut[pt+116>>2],ut[gt+272>>2]=ut[pt+112>>2],ut[gt+276>>2]=At,At=ut[pt+108>>2],ut[gt+248>>2]=ut[pt+104>>2],ut[gt+252>>2]=At,At=ut[pt+100>>2],ut[gt+240>>2]=ut[pt+96>>2],ut[gt+244>>2]=At,At=ut[pt+124>>2],ut[gt+232>>2]=ut[pt+120>>2],ut[gt+236>>2]=At,At=ut[pt+116>>2],ut[gt+224>>2]=ut[pt+112>>2],ut[gt+228>>2]=At,wn(ft=gt+256|0,gt+240|0,gt+224|0),At=ut[gt+268>>2],ut[pt+120>>2]=ut[gt+264>>2],ut[pt+124>>2]=At,At=ut[gt+260>>2],ut[pt+112>>2]=ut[gt+256>>2],ut[pt+116>>2]=At,At=ut[pt+92>>2],ut[gt+216>>2]=ut[pt+88>>2],ut[gt+220>>2]=At,At=ut[pt+84>>2],ut[gt+208>>2]=ut[pt+80>>2],ut[gt+212>>2]=At,At=ut[pt+108>>2],ut[gt+200>>2]=ut[pt+104>>2],ut[gt+204>>2]=At,At=ut[pt+100>>2],ut[gt+192>>2]=ut[pt+96>>2],ut[gt+196>>2]=At,wn(ft,gt+208|0,gt+192|0),At=ut[gt+268>>2],ut[pt+104>>2]=ut[gt+264>>2],ut[pt+108>>2]=At,At=ut[gt+260>>2],ut[pt+96>>2]=ut[gt+256>>2],ut[pt+100>>2]=At,At=ut[pt+76>>2],ut[gt+184>>2]=ut[pt+72>>2],ut[gt+188>>2]=At,Mr=ut[4+(At=pt- -64|0)>>2],ut[gt+176>>2]=ut[At>>2],ut[gt+180>>2]=Mr,Mr=ut[pt+92>>2],ut[gt+168>>2]=ut[pt+88>>2],ut[gt+172>>2]=Mr,Mr=ut[pt+84>>2],ut[gt+160>>2]=ut[pt+80>>2],ut[gt+164>>2]=Mr,wn(ft,gt+176|0,gt+160|0),Mr=ut[gt+268>>2],ut[pt+88>>2]=ut[gt+264>>2],ut[pt+92>>2]=Mr,Mr=ut[gt+260>>2],ut[pt+80>>2]=ut[gt+256>>2],ut[pt+84>>2]=Mr,Mr=ut[pt+60>>2],ut[gt+152>>2]=ut[pt+56>>2],ut[gt+156>>2]=Mr,Mr=ut[pt+52>>2],ut[gt+144>>2]=ut[pt+48>>2],ut[gt+148>>2]=Mr,Mr=ut[pt+76>>2],ut[gt+136>>2]=ut[pt+72>>2],ut[gt+140>>2]=Mr,Mr=ut[At+4>>2],ut[gt+128>>2]=ut[At>>2],ut[gt+132>>2]=Mr,wn(ft,gt+144|0,gt+128|0),Mr=ut[gt+268>>2],ut[pt+72>>2]=ut[gt+264>>2],ut[pt+76>>2]=Mr,Mr=ut[gt+260>>2],ut[At>>2]=ut[gt+256>>2],ut[At+4>>2]=Mr,Mr=ut[pt+44>>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2],ut[Lt+4>>2]=hn,rn=ut[pt+12>>2],ut[(hn=gt+3816|0)>>2]=ut[pt+8>>2],ut[hn+4>>2]=rn,rn=ut[pt+4>>2],ut[gt+3808>>2]=ut[pt>>2],ut[gt+3812>>2]=rn,_n=ut[pt+52>>2],ut[(rn=gt+3856|0)>>2]=ut[pt+48>>2],ut[rn+4>>2]=_n,In=ut[pt+60>>2],ut[(_n=gt+3864|0)>>2]=ut[pt+56>>2],ut[_n+4>>2]=In,un=ut[4+(On=pt- -64|0)>>2],ut[(In=gt+3872|0)>>2]=ut[On>>2],ut[In+4>>2]=un,un=ut[pt+76>>2],ut[(On=gt+3880|0)>>2]=ut[pt+72>>2],ut[On+4>>2]=un,un=ut[pt+44>>2],ut[gt+3848>>2]=ut[pt+40>>2],ut[gt+3852>>2]=un,Qn=ut[pt+92>>2],ut[(un=gt+3896|0)>>2]=ut[pt+88>>2],ut[un+4>>2]=Qn,Hn=ut[pt+100>>2],ut[(Qn=gt+3904|0)>>2]=ut[pt+96>>2],ut[Qn+4>>2]=Hn,Gn=ut[pt+108>>2],ut[(Hn=gt+3912|0)>>2]=ut[pt+104>>2],ut[Hn+4>>2]=Gn,er=ut[pt+116>>2],ut[(Gn=gt+3920|0)>>2]=ut[pt+112>>2],ut[Gn+4>>2]=er,er=ut[pt+84>>2],ut[gt+3888>>2]=ut[pt+80>>2],ut[gt+3892>>2]=er,lu(_t=gt+3528|0,er=gt+3808|0),$r(Ot=gt+2408|0,_t,Xt=gt+3648|0),$r(gt+2448|0,mn=gt+3568|0,Cn=gt+3608|0),$r(gt+2488|0,Cn,Xt),$r(gt+2528|0,_t,mn),Dn(Xt=gt+320|0,Ot),Ys(_t=gt+3368|0,pt,Xt),$r(Ot=gt+2248|0,_t,Xt=gt+3488|0),$r(gt+2288|0,mn=gt+3408|0,Cn=gt+3448|0),$r(gt+2328|0,Cn,Xt),$r(gt+2368|0,_t,mn),Dn(gt+480|0,Ot),Ot=ut[4+(_t=gt+2440|0)>>2],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<24,mn=bt[gt+28|0]|bt[gt+29|0]<<8|bt[gt+30|0]<<16|bt[gt+31|0]<<24,_n=bt[gt+60|0]|bt[gt+61|0]<<8|bt[gt+62|0]<<16|bt[gt+63|0]<<24,ft=bt[gt+32|0]|bt[gt+33|0]<<8|bt[gt+34|0]<<16|bt[gt+35|0]<<24,In=bt[gt+80|0]|bt[gt+81|0]<<8|bt[gt+82|0]<<16|bt[gt+83|0]<<24,On=bt[gt+112|0]|bt[gt+113|0]<<8|bt[gt+114|0]<<16|bt[gt+115|0]<<24,Fr=bt[gt+96|0]|bt[gt+97|0]<<8|bt[gt+98|0]<<16|bt[gt+99|0]<<24,qr=bt[gt+36|0]|bt[gt+37|0]<<8|bt[gt+38|0]<<16|bt[gt+39|0]<<24,Cn=bt[gt+84|0]|bt[gt+85|0]<<8|bt[gt+86|0]<<16|bt[gt+87|0]<<24,Qn=bt[gt+116|0]|bt[gt+117|0]<<8|bt[gt+118|0]<<16|bt[gt+119|0]<<24,Mr=bt[gt+100|0]|bt[gt+101|0]<<8|bt[gt+102|0]<<16|bt[gt+103|0]<<24,hr=bt[gt+40|0]|bt[gt+41|0]<<8|bt[gt+42|0]<<16|bt[gt+43|0]<<24,Hn=bt[gt+88|0]|bt[gt+89|0]<<8|bt[gt+90|0]<<16|bt[gt+91|0]<<24,Gn=bt[gt+120|0]|bt[gt+121|0]<<8|bt[gt+122|0]<<16|bt[gt+123|0]<<24,Er=bt[gt+104|0]|bt[gt+105|0]<<8|bt[gt+106|0]<<16|bt[gt+107|0]<<24,er=ut[_t+256>>2],ar=ut[_t+260>>2],ur=ut[_t+264>>2],Ln=ut[_t+268>>2],zn=ut[_t+272>>2],or=ut[_t+276>>2],Cr=ut[_t+280>>2],Ot=bt[gt+44|0]|bt[gt+45|0]<<8|bt[gt+46|0]<<16|bt[gt+47|0]<<24,Wt=bt[gt+108|0]|bt[gt+109|0]<<8|bt[gt+110|0]<<16|bt[gt+111|0]<<24,ut[_t+284>>2]=Ot^Wt&(bt[gt+124|0]|bt[gt+125|0]<<8|bt[gt+126|0]<<16|bt[gt+127|0]<<24)^ut[_t+284>>2]^(bt[gt+92|0]|bt[gt+93|0]<<8|bt[gt+94|0]<<16|bt[gt+95|0]<<24),ut[_t+280>>2]=hr^Er&Gn^Hn^Cr,ut[_t+276>>2]=qr^Mr&Qn^Cn^or,ut[_t+272>>2]=ft^Fr&On^In^zn,ut[_t+268>>2]=_n&Ot^mn^Ln^Wt,ut[_t+264>>2]=Er^hr&un^rn^ur,ut[_t+260>>2]=Mr^qr&hn^Xt^ar,ut[_t+256>>2]=Fr^ft&Lt^Ct^er,ms(lr,0,Dr),ss(At,Pr,pt),pt=ut[_t+284>>2],Pr=ut[_t+280>>2],Fr=ut[_t+276>>2],qr=ut[_t+272>>2],Mr=ut[_t+256>>2],hr=ut[_t+260>>2],Er=ut[_t+264>>2],Dr=ut[_t+268>>2],At=ut[gt+124>>2],ut[_t+312>>2]=ut[gt+120>>2],ut[_t+316>>2]=At,At=ut[gt+116>>2],ut[_t+304>>2]=ut[gt+112>>2],ut[_t+308>>2]=At,At=ut[gt+108>>2],ut[_t+248>>2]=ut[gt+104>>2],ut[_t+252>>2]=At,At=ut[gt+100>>2],ut[_t+240>>2]=ut[gt+96>>2],ut[_t+244>>2]=At,At=ut[gt+124>>2],ut[_t+232>>2]=ut[gt+120>>2],ut[_t+236>>2]=At,At=ut[gt+116>>2],ut[_t+224>>2]=ut[gt+112>>2],ut[_t+228>>2]=At,wn(ft=_t+288|0,_t+240|0,_t+224|0),At=ut[_t+300>>2],ut[gt+120>>2]=ut[_t+296>>2],ut[gt+124>>2]=At,At=ut[_t+292>>2],ut[gt+112>>2]=ut[_t+288>>2],ut[gt+116>>2]=At,At=ut[gt+92>>2],ut[_t+216>>2]=ut[gt+88>>2],ut[_t+220>>2]=At,At=ut[gt+84>>2],ut[_t+208>>2]=ut[gt+80>>2],ut[_t+212>>2]=At,At=ut[gt+108>>2],ut[_t+200>>2]=ut[gt+104>>2],ut[_t+204>>2]=At,At=ut[gt+100>>2],ut[_t+192>>2]=ut[gt+96>>2],ut[_t+196>>2]=At,wn(ft,_t+208|0,_t+192|0),At=ut[_t+300>>2],ut[gt+104>>2]=ut[_t+296>>2],ut[gt+108>>2]=At,At=ut[_t+292>>2],ut[gt+96>>2]=ut[_t+288>>2],ut[gt+100>>2]=At,At=ut[gt+76>>2],ut[_t+184>>2]=ut[gt+72>>2],ut[_t+188>>2]=At,lr=ut[4+(At=gt- -64|0)>>2],ut[_t+176>>2]=ut[At>>2],ut[_t+180>>2]=lr,lr=ut[gt+92>>2],ut[_t+168>>2]=ut[gt+88>>2],ut[_t+172>>2]=lr,lr=ut[gt+84>>2],ut[_t+160>>2]=ut[gt+80>>2],ut[_t+164>>2]=lr,wn(ft,_t+176|0,_t+160|0),lr=ut[_t+300>>2],ut[gt+88>>2]=ut[_t+296>>2],ut[gt+92>>2]=lr,lr=ut[_t+292>>2],ut[gt+80>>2]=ut[_t+288>>2],ut[gt+84>>2]=lr,lr=ut[gt+60>>2],ut[_t+152>>2]=ut[gt+56>>2],ut[_t+156>>2]=lr,lr=ut[gt+52>>2],ut[_t+144>>2]=ut[gt+48>>2],ut[_t+148>>2]=lr,lr=ut[gt+76>>2],ut[_t+136>>2]=ut[gt+72>>2],ut[_t+140>>2]=lr,lr=ut[At+4>>2],ut[_t+128>>2]=ut[At>>2],ut[_t+132>>2]=lr,wn(ft,_t+144|0,_t+128|0),lr=ut[_t+300>>2],ut[gt+72>>2]=ut[_t+296>>2],ut[gt+76>>2]=lr,lr=ut[_t+292>>2],ut[At>>2]=ut[_t+288>>2],ut[At+4>>2]=lr,lr=ut[gt+44>>2],ut[_t+120>>2]=ut[gt+40>>2],ut[_t+124>>2]=lr,lr=ut[gt+36>>2],ut[_t+112>>2]=ut[gt+32>>2],ut[_t+116>>2]=lr,lr=ut[gt+60>>2],ut[_t+104>>2]=ut[gt+56>>2],ut[_t+108>>2]=lr,lr=ut[gt+52>>2],ut[_t+96>>2]=ut[gt+48>>2],ut[_t+100>>2]=lr,wn(ft,_t+112|0,_t+96|0),lr=ut[_t+300>>2],ut[gt+56>>2]=ut[_t+296>>2],ut[gt+60>>2]=lr,lr=ut[_t+292>>2],ut[gt+48>>2]=ut[_t+288>>2],ut[gt+52>>2]=lr,lr=ut[gt+28>>2],ut[_t+88>>2]=ut[gt+24>>2],ut[_t+92>>2]=lr,lr=ut[gt+20>>2],ut[_t+80>>2]=ut[gt+16>>2],ut[_t+84>>2]=lr,lr=ut[gt+44>>2],ut[_t+72>>2]=ut[gt+40>>2],ut[_t+76>>2]=lr,lr=ut[gt+36>>2],ut[_t+64>>2]=ut[gt+32>>2],ut[_t+68>>2]=lr,wn(ft,_t+80|0,_t- -64|0),lr=ut[_t+300>>2],ut[gt+40>>2]=ut[_t+296>>2],ut[gt+44>>2]=lr,lr=ut[_t+292>>2],ut[gt+32>>2]=ut[_t+288>>2],ut[gt+36>>2]=lr,lr=ut[gt+12>>2],ut[_t+56>>2]=ut[gt+8>>2],ut[_t+60>>2]=lr,lr=ut[gt+4>>2],ut[_t+48>>2]=ut[gt>>2],ut[_t+52>>2]=lr,lr=ut[gt+28>>2],ut[_t+40>>2]=ut[gt+24>>2],ut[_t+44>>2]=lr,lr=ut[gt+20>>2],ut[_t+32>>2]=ut[gt+16>>2],ut[_t+36>>2]=lr,wn(ft,_t+48|0,_t+32|0),lr=ut[_t+300>>2],ut[gt+24>>2]=ut[_t+296>>2],ut[gt+28>>2]=lr,lr=ut[_t+292>>2],ut[gt+16>>2]=ut[_t+288>>2],ut[gt+20>>2]=lr,lr=ut[_t+316>>2],ut[_t+24>>2]=ut[_t+312>>2],ut[_t+28>>2]=lr,lr=ut[_t+308>>2],ut[_t+16>>2]=ut[_t+304>>2],ut[_t+20>>2]=lr,lr=ut[gt+12>>2],ut[_t+8>>2]=ut[gt+8>>2],ut[_t+12>>2]=lr,lr=ut[gt+4>>2],ut[_t>>2]=ut[gt>>2],ut[_t+4>>2]=lr,wn(ft,_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t,Do=Pr,$o=Do>>31))+Or|0,Or=ln+ft|0,ft=pr,pr=(pr>>>0>>0?Or+1|0:Or)<<1|pr>>>31,Or=ft<<1,pr=(ft=io>>25)+pr|0,pr=(Or=Or+(io=(33554431&io)<<7|Eo>>>25)|0)>>>0>>0?pr+1|0:pr,Po=ft=Or+33554432|0,io=pr=ft>>>0<33554432?pr+1|0:pr,ut[At+32>>2]=Or-(-67108864&ft),pr=ho>>25,Or=(ho=(33554431&ho)<<7|En>>>25)+(ur-(ft=-67108864&qr)|0)|0,ft=pr+(Fr-((ft>>>0>ur>>>0)+Mr|0)|0)|0,ft=Or>>>0>>0?ft+1|0:ft,ho=Or,pr=ft,ft=((67108863&(pr=(Or=Or+33554432|0)>>>0<33554432?pr+1|0:pr))<<6|Or>>>26)+(_i=Ar-(-33554432&hr)|0)|0,ut[At+20>>2]=ft,ut[At+16>>2]=ho-(-67108864&Or),ft=Sn(gt,Ct,pt,rn),Or=ln,pr=(ho=Sn(hn,Hn,So,Cr))+ft|0,ft=ln+Or|0,ft=pr>>>0>>0?ft+1|0:ft,Or=(ho=Sn(Wn,In,un,ar))+pr|0,pr=ln+ft|0,pr=Or>>>0>>0?pr+1|0:pr,ft=(ho=Sn(Qo,_t,mn,Gn))+Or|0,Or=ln+pr|0,Or=ft>>>0>>0?Or+1|0:Or,ho=Sn(Yr,Ot,Do,$o),pr=ln+Or|0,pr=((ft=ho+ft|0)>>>0>>0?pr+1|0:pr)<<1|ft>>>31,ho=ft<<1,pr=pr+(Or=io>>26)|0,ft=(ft=(67108863&io)<<6|Po>>>26)>>>0>(io=ho+ft|0)>>>0?pr+1|0:pr,ft=(pr=io+16777216|0)>>>0<16777216?ft+1|0:ft,ut[At+36>>2]=io-(-33554432&pr),ho=Br-(-33554432&Bn)|0,io=lr-(Or=-67108864&Er)|0,Qo=zo-((Or>>>0>lr>>>0)+jr|0)|0,ft=Sn((33554431&ft)<<7|pr>>>25,ft>>25,19,0),Or=ln+Qo|0,io=pr=ft+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ft)+(ft=Sn(Po,Ot,io,Bn))|0,hr=ln+Er|0,hr=(ft=ft>>>0>jr>>>0?hr+1|0:hr)+(hr=so>>26)|0,ft=(Er=(so=(67108863&so)<<6|pr>>>26)+jr|0)>>>0>>0?hr+1|0:hr,ft=(hr=Er+16777216|0)>>>0<16777216?ft+1|0:ft,ut[At+36>>2]=Er-(-33554432&hr),so=Qo-(-33554432&_i)|0,jr=Or-(Er=-67108864&xo)|0,Eo=So-((Er>>>0>Or>>>0)+Mr|0)|0,ft=Sn((33554431&ft)<<7|hr>>>25,ft>>25,19,0),hr=ln+Eo|0,ft=ft>>>0>(Er=ft+jr|0)>>>0?hr+1|0:hr,ft=((67108863&(ft=(hr=Er+33554432|0)>>>0<33554432?ft+1|0:ft))<<6|hr>>>26)+so|0,ut[At+4>>2]=ft,ut[At>>2]=Er-(-67108864&hr)}function o0(At,ft){var pt,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0;if(jn=pt=jn-48|0,!((gt=ap(At))||(gt=-26,ft-3>>>0<4294967294))){Ot=ut[At+44>>2],gt=ut[At+48>>2],ut[pt+4>>2]=0,_t=ut[At+40>>2],ut[pt+32>>2]=gt,ut[pt+16>>2]=-1,ut[pt+12>>2]=_t,gt=((Lt=(_t=gt<<3)>>>0>>0?Ot:_t)>>>0)/((Ot=gt<<2)>>>0)|0,ut[pt+24>>2]=gt,ut[pt+28>>2]=gt<<2,ut[pt+20>>2]=vo(gt,Ot),gt=ut[At+52>>2],ut[pt+40>>2]=ft,ut[pt+36>>2]=gt,In=ft=jn,jn=gt=ft-1152&-64,ft=-25;e:{if(!(!(Ot=pt+4|0)|!At)&&(_t=Ds(ut[Ot+20>>2]<<3),ut[Ot+4>>2]=_t,ft=-22,_t)){t:{if((ft=ut[Ot+16>>2])&&(((_t=ft<<10)>>>0)/(ft>>>0)|0)==1024&&(ft=Ds(12),ut[Ot>>2]=ft,ft)){if(ut[ft>>2]=0,ut[ft+4>>2]=0,ft=Oo(gt+128|0,_t),ut[9392]=ft,ft)ut[gt+128>>2]=0;else if(ft=ut[gt+128>>2])break t;_d(ut[Ot>>2]),ut[Ot>>2]=0}Yp(Ot,ut[At+56>>2]),jn=In,ft=-22;break e}if(ut[ut[Ot>>2]>>2]=ft,ut[ut[Ot>>2]+4>>2]=ft,ut[ut[Ot>>2]+8>>2]=_t,un=ut[Ot+36>>2],Fl(ft=gt+128|0,0,0,64),ut[gt+124>>2]=ut[At+48>>2],fu(ft,_t=gt+124|0,4,0),ut[gt+124>>2]=ut[At+4>>2],fu(ft,_t,4,0),ut[gt+124>>2]=ut[At+44>>2],fu(ft,_t,4,0),ut[gt+124>>2]=ut[At+40>>2],fu(ft,_t,4,0),ut[gt+124>>2]=19,fu(gt+128|0,gt+124|0,4,0),ut[gt+124>>2]=un,fu(gt+128|0,gt+124|0,4,0),ut[gt+124>>2]=ut[At+12>>2],fu(gt+128|0,gt+124|0,4,0),(_t=ut[At+8>>2])&&(fu(ft,_t,ut[At+12>>2],0),1&Ft[At+56|0]&&(Uo(ut[At+8>>2],ut[At+12>>2]),ut[At+12>>2]=0)),ut[gt+124>>2]=ut[At+20>>2],fu(ft=gt+128|0,gt+124|0,4,0),(_t=ut[At+16>>2])&&fu(ft,_t,ut[At+20>>2],0),ut[gt+124>>2]=ut[At+28>>2],fu(ft=gt+128|0,gt+124|0,4,0),(_t=ut[At+24>>2])&&(fu(ft,_t,ut[At+28>>2],0),2&bt[At+56|0]&&(Uo(ut[At+24>>2],ut[At+28>>2]),ut[At+28>>2]=0)),ut[gt+124>>2]=ut[At+36>>2],fu(ft=gt+128|0,gt+124|0,4,0),(_t=ut[At+32>>2])&&fu(ft,_t,ut[At+36>>2],0),q0(gt+128|0,gt+48|0,64),Uo(gt+112|0,8),ut[Ot+28>>2])for(_t=0;;){for(ut[gt+112>>2]=0,ut[gt+116>>2]=_t,$0(gt+128|0,1024,gt+48|0,72),un=ut[ut[Ot>>2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[ft+64>>2]=hn,gt=0;ut[ft+76>>2]=0,_t=ut[ft+76>>2],ut[ft+56>>2]=ut[ft+72>>2],ut[ft+60>>2]=_t,ut[ft+68>>2]=gt,_t=ut[ft+68>>2],ut[ft+48>>2]=ut[ft+64>>2],ut[ft+52>>2]=_t,Rs(Ot,ft+48|0),(gt=gt+1|0)>>>0<(_t=ut[Ot+28>>2])>>>0;);if(Ft[ft+72|0]=1,_t){for(gt=0;ut[ft+76>>2]=0,_t=ut[ft+76>>2],ut[ft+40>>2]=ut[ft+72>>2],ut[ft+44>>2]=_t,ut[ft+68>>2]=gt,_t=ut[ft+68>>2],ut[ft+32>>2]=ut[ft+64>>2],ut[ft+36>>2]=_t,Rs(Ot,ft+32|0),(gt=gt+1|0)>>>0<(_t=ut[Ot+28>>2])>>>0;);if(Ft[ft+72|0]=2,_t){for(gt=0;ut[ft+76>>2]=0,_t=ut[ft+76>>2],ut[ft+24>>2]=ut[ft+72>>2],ut[ft+28>>2]=_t,ut[ft+68>>2]=gt,_t=ut[ft+68>>2],ut[ft+16>>2]=ut[ft+64>>2],ut[ft+20>>2]=_t,Rs(Ot,ft+16|0),(gt=gt+1|0)>>>0<(_t=ut[Ot+28>>2])>>>0;);if(Ft[ft+72|0]=3,_t)for(gt=0;ut[ft+76>>2]=0,_t=ut[ft+76>>2],ut[ft+8>>2]=ut[ft+72>>2],ut[ft+12>>2]=_t,ut[ft+68>>2]=gt,_t=ut[ft+68>>2],ut[ft>>2]=ut[ft+64>>2],ut[ft+4>>2]=_t,Rs(Ot,ft),(gt=gt+1|0)>>>0<$a[Ot+28>>2];);}}}if(jn=ft+80|0,!((hn=hn+1|0)>>>0<$a[pt+12>>2]))break}if(jn=ft=jn-2048|0,!(!At|!(gt=pt+4|0))){if(Wt=ut[gt>>2],In=ut[gt+24>>2],ss(ft+1024|0,(ut[Wt+4>>2]+(In<<10)|0)-1024|0,1024),(Xt=ut[gt+28>>2])>>>0>=2)for(mn=In-1|0,un=1;;){for(Ot=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,rn=bt[At+12|0]|bt[At+13|0]<<8|bt[At+14|0]<<16|bt[At+15|0]<<24,On=bt[0|ft]|bt[ft+1|0]<<8|bt[ft+2|0]<<16|bt[ft+3|0]<<24,ft=pt+112|0,At=33620224^(un=bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24),ut[ft>>2]=At,ut[(Ct=pt+96|0)>>2]=1427652059^un,ut[(Lt=pt+80|0)>>2]=At,Qn=un^On,ut[(At=pt- -64|0)>>2]=Qn,ut[pt+56>>2]=1110511904,ut[pt+60>>2]=-584534669,ut[(_t=pt+48|0)>>2]=1427652059,ut[_t+4>>2]=-248528275,ut[pt+40>>2]=1496785429,ut[pt+44>>2]=1652156816,ut[(Ot=pt+32|0)>>2]=33620224,ut[Ot+4>>2]=218629379,ut[pt+24>>2]=1110511904,ut[pt+28>>2]=-584534669,ut[(Wt=pt+16|0)>>2]=1427652059,ut[Wt+4>>2]=-248528275,ut[pt>>2]=Qn,Qn=1652156816^rn,ut[pt+124>>2]=Qn,Hn=1496785429^hn,ut[pt+120>>2]=Hn,Cn=218629379^Xt,ut[pt+116>>2]=Cn,ut[pt+108>>2]=-584534669^rn,ut[pt+104>>2]=1110511904^hn,ut[pt+100>>2]=-248528275^Xt,ut[pt+92>>2]=Qn,ut[pt+88>>2]=Hn,ut[pt+84>>2]=Cn,Qn=rn^In,ut[pt+76>>2]=Qn,Hn=hn^_n,ut[pt+72>>2]=Hn,Cn=Xt^mn,ut[pt+68>>2]=Cn,ut[pt+12>>2]=Qn,ut[pt+8>>2]=Hn,ut[pt+4>>2]=Cn,Hn=0;Qn=ut[ft+12>>2],ut[gt+280>>2]=ut[ft+8>>2],ut[gt+284>>2]=Qn,Qn=ut[ft+4>>2],ut[gt+272>>2]=ut[ft>>2],ut[gt+276>>2]=Qn,Qn=ut[Ct+12>>2],ut[gt+248>>2]=ut[Ct+8>>2],ut[gt+252>>2]=Qn,Qn=ut[Ct+4>>2],ut[gt+240>>2]=ut[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,Ft[Gn+10|0]=pt>>>16,Ft[Gn+11|0]=pt>>>24,pt=io^Pr+Qn,Ft[Gn+4|0]=pt,Ft[Gn+5|0]=pt>>>8,Ft[Gn+6|0]=pt>>>16,Ft[Gn+7|0]=pt>>>24,Or=!(pr=pr+1|0)+Or|0,!_t>>>>0<=64){if(!(!gt|!_t>>>>0>63|(0|_t)!=0))for(ar=0;Ft[ar+Do|0]=bt[Gn+ar|0],gt>>>0>(ar=ar+1|0)>>>0;);ut[At+52>>2]=Or,ut[At+48>>2]=pr;break}ft=ft- -64|0,pt=Gn- -64|0,_t=_t-1|0,_t=(gt=gt+-64|0)>>>0<4294967232?_t+1|0:_t}}function Cu(At,ft){ft|=0;var pt,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0;return jn=pt=jn-704|0,gt=80+((_t=ut[72+(At|=0)>>2]>>>3&127)+At|0)|0,_t>>>0>=112?(ss(gt,35456,128-_t|0),Ts(At,_t=At+80|0,pt,pt+640|0),ms(_t,0,112)):ss(gt,35456,112-_t|0),Lt=(Ot=ut[At+64>>2])<<24|(65280&Ot)<<8,_t=(Wt=16711680&Ot)>>>8|0,Xt=Wt<<24,Wt=(Ct=-16777216&Ot)>>>24|0,gt=Xt|Ct<<8|-16777216&((255&(gt=ut[At+68>>2]))<<24|Ot>>>8)|16711680&((16777215>)<<8|Ot>>>24)|gt>>>8&65280|gt>>>24,Ft[At+192|0]=gt,Ft[At+193|0]=gt>>>8,Ft[At+194|0]=gt>>>16,Ft[At+195|0]=gt>>>24,_t=(gt=_t|Wt|Lt)|(_t=0)|_t|0,Ft[At+196|0]=_t,Ft[At+197|0]=_t>>>8,Ft[At+198|0]=_t>>>16,Ft[At+199|0]=_t>>>24,Lt=(Ot=ut[At+72>>2])<<24|(65280&Ot)<<8,_t=(Wt=16711680&Ot)>>>8|0,Xt=Wt<<24,Wt=(Ct=-16777216&Ot)>>>24|0,gt=Xt|Ct<<8|-16777216&((255&(gt=ut[At+76>>2]))<<24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])<<24|(65280&Ot)<<8,_t=(Wt=16711680&Ot)>>>8|0,Xt=Wt<<24,Wt=(Ct=-16777216&Ot)>>>24|0,gt=Xt|Ct<<8|-16777216&((255&(gt=ut[At+44>>2]))<<24|Ot>>>8)|16711680&((16777215>)<<8|Ot>>>24)|gt>>>8&65280|gt>>>24,Ft[ft+40|0]=gt,Ft[ft+41|0]=gt>>>8,Ft[ft+42|0]=gt>>>16,Ft[ft+43|0]=gt>>>24,_t=(gt=_t|Wt|Lt)|(_t=0)|_t|0,Ft[ft+44|0]=_t,Ft[ft+45|0]=_t>>>8,Ft[ft+46|0]=_t>>>16,Ft[ft+47|0]=_t>>>24,Lt=(Ot=ut[At+48>>2])<<24|(65280&Ot)<<8,_t=(Wt=16711680&Ot)>>>8|0,Xt=Wt<<24,Wt=(Ct=-16777216&Ot)>>>24|0,gt=Xt|Ct<<8|-16777216&((255&(gt=ut[At+52>>2]))<<24|Ot>>>8)|16711680&((16777215>)<<8|Ot>>>24)|gt>>>8&65280|gt>>>24,Ft[ft+48|0]=gt,Ft[ft+49|0]=gt>>>8,Ft[ft+50|0]=gt>>>16,Ft[ft+51|0]=gt>>>24,_t=(gt=_t|Wt|Lt)|(_t=0)|_t|0,Ft[ft+52|0]=_t,Ft[ft+53|0]=_t>>>8,Ft[ft+54|0]=_t>>>16,Ft[ft+55|0]=_t>>>24,Lt=(Ot=ut[At+56>>2])<<24|(65280&Ot)<<8,_t=(Wt=16711680&Ot)>>>8|0,gt=ft,Xt=Wt<<24,Wt=(Ct=-16777216&Ot)>>>24|0,ft=Xt|Ct<<8|-16777216&((255&(ft=ut[At+60>>2]))<<24|Ot>>>8)|16711680&((16777215&ft)<<8|Ot>>>24)|ft>>>8&65280|ft>>>24,Ft[gt+56|0]=ft,Ft[gt+57|0]=ft>>>8,Ft[gt+58|0]=ft>>>16,Ft[gt+59|0]=ft>>>24,ft=(ft=_t|Wt|Lt)|(_t=0)|_t|0,Ft[gt+60|0]=ft,Ft[gt+61|0]=ft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+180>>2]=At,At=ut[pt+92>>2],ut[gt+168>>2]=ut[pt+88>>2],ut[gt+172>>2]=At,At=ut[pt+84>>2],ut[gt+160>>2]=ut[pt+80>>2],ut[gt+164>>2]=At,wn(At=gt+192|0,gt+176|0,gt+160|0),ft=ut[gt+204>>2],ut[pt+88>>2]=ut[gt+200>>2],ut[pt+92>>2]=ft,ft=ut[gt+196>>2],ut[pt+80>>2]=ut[gt+192>>2],ut[pt+84>>2]=ft,ft=ut[pt+60>>2],ut[gt+152>>2]=ut[pt+56>>2],ut[gt+156>>2]=ft,ft=ut[pt+52>>2],ut[gt+144>>2]=ut[pt+48>>2],ut[gt+148>>2]=ft,ft=ut[pt+76>>2],ut[gt+136>>2]=ut[pt+72>>2],ut[gt+140>>2]=ft,ft=ut[ur+4>>2],ut[gt+128>>2]=ut[ur>>2],ut[gt+132>>2]=ft,wn(At,gt+144|0,gt+128|0),ft=ut[gt+204>>2],ut[pt+72>>2]=ut[gt+200>>2],ut[pt+76>>2]=ft,ft=ut[gt+196>>2],ut[ur>>2]=ut[gt+192>>2],ut[ur+4>>2]=ft,ft=ut[pt+44>>2],ut[gt+120>>2]=ut[pt+40>>2],ut[gt+124>>2]=ft,ft=ut[pt+36>>2],ut[gt+112>>2]=ut[pt+32>>2],ut[gt+116>>2]=ft,ft=ut[pt+60>>2],ut[gt+104>>2]=ut[pt+56>>2],ut[gt+108>>2]=ft,ft=ut[pt+52>>2],ut[gt+96>>2]=ut[pt+48>>2],ut[gt+100>>2]=ft,wn(At,gt+112|0,gt+96|0),ft=ut[gt+204>>2],ut[pt+56>>2]=ut[gt+200>>2],ut[pt+60>>2]=ft,ft=ut[gt+196>>2],ut[pt+48>>2]=ut[gt+192>>2],ut[pt+52>>2]=ft,ft=ut[pt+28>>2],ut[gt+88>>2]=ut[pt+24>>2],ut[gt+92>>2]=ft,ft=ut[pt+20>>2],ut[gt+80>>2]=ut[pt+16>>2],ut[gt+84>>2]=ft,ft=ut[pt+44>>2],ut[gt+72>>2]=ut[pt+40>>2],ut[gt+76>>2]=ft,ft=ut[pt+36>>2],ut[gt+64>>2]=ut[pt+32>>2],ut[gt+68>>2]=ft,wn(At,gt+80|0,gt- -64|0),ft=ut[gt+204>>2],ut[pt+40>>2]=ut[gt+200>>2],ut[pt+44>>2]=ft,ft=ut[gt+196>>2],ut[pt+32>>2]=ut[gt+192>>2],ut[pt+36>>2]=ft,ft=ut[pt+12>>2],ut[gt+56>>2]=ut[pt+8>>2],ut[gt+60>>2]=ft,ft=ut[pt+4>>2],ut[gt+48>>2]=ut[pt>>2],ut[gt+52>>2]=ft,ft=ut[pt+28>>2],ut[gt+40>>2]=ut[pt+24>>2],ut[gt+44>>2]=ft,ft=ut[pt+20>>2],ut[gt+32>>2]=ut[pt+16>>2],ut[gt+36>>2]=ft,wn(At,gt+48|0,gt+32|0),ft=ut[gt+204>>2],ut[pt+24>>2]=ut[gt+200>>2],ut[pt+28>>2]=ft,ft=ut[gt+196>>2],ut[pt+16>>2]=ut[gt+192>>2],ut[pt+20>>2]=ft,ft=ut[gt+220>>2],ut[gt+24>>2]=ut[gt+216>>2],ut[gt+28>>2]=ft,ft=ut[gt+212>>2],ut[gt+16>>2]=ut[gt+208>>2],ut[gt+20>>2]=ft,ft=ut[pt+12>>2],ut[gt+8>>2]=ut[pt+8>>2],ut[gt+12>>2]=ft,ft=ut[pt+4>>2],ut[gt>>2]=ut[pt>>2],ut[gt+4>>2]=ft,wn(At,gt+16|0,gt),At=ut[gt+192>>2],ft=ut[gt+196>>2],ur=ut[gt+200>>2],ut[pt+12>>2]=Ct^ut[gt+204>>2],ut[pt+8>>2]=ur^Ot,ut[pt+4>>2]=ft^_t,ut[pt>>2]=At^Wt,jn=gt+224|0}function mA(At,ft,pt){var gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n,In,On,Cn,Qn=0,Hn=0,Gn=0,er=0,ar=0;jn=gt=jn-224|0,Gn=bt[pt+16|0]|bt[pt+17|0]<<8|bt[pt+18|0]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16|bt[pt+47|0]<<24)&(bt[pt+60|0]|bt[pt+61|0]<<8|bt[pt+62|0]<<16|bt[pt+63|0]<<24)^(bt[pt+28|0]|bt[pt+29|0]<<8|bt[pt+30|0]<<16|bt[pt+31|0]<<24)^(bt[pt+76|0]|bt[pt+77|0]<<8|bt[pt+78|0]<<16|bt[pt+79|0]<<24)^(bt[pt+92|0]|bt[pt+93|0]<<8|bt[pt+94|0]<<16|bt[pt+95|0]<<24)^(bt[ft+12|0]|bt[ft+13|0]<<8|bt[ft+14|0]<<16|bt[ft+15|0]<<24),Ft[At+12|0]=ft,Ft[At+13|0]=ft>>>8,Ft[At+14|0]=ft>>>16,Ft[At+15|0]=ft>>>24,ar=In&On^ar^mn^_n^un,Ft[At+8|0]=ar,Ft[At+9|0]=ar>>>8,Ft[At+10|0]=ar>>>16,Ft[At+11|0]=ar>>>24,er=hn&rn^er^Lt^Xt^Ct,Ft[At+4|0]=er,Ft[At+5|0]=er>>>8,Ft[At+6|0]=er>>>16,Ft[At+7|0]=er>>>24,Gn=Ot&Wt^Gn^Hn^_t^Cn,Ft[0|At]=Gn,Ft[At+1|0]=Gn>>>8,Ft[At+2|0]=Gn>>>16,Ft[At+3|0]=Gn>>>24,At=ut[pt+92>>2],ut[gt+216>>2]=ut[pt+88>>2],ut[gt+220>>2]=At,At=ut[pt+84>>2],ut[gt+208>>2]=ut[pt+80>>2],ut[gt+212>>2]=At,At=ut[pt+76>>2],ut[gt+184>>2]=ut[pt+72>>2],ut[gt+188>>2]=At,At=ut[Qn+4>>2],ut[gt+176>>2]=ut[Qn>>2],ut[gt+180>>2]=At,At=ut[pt+92>>2],ut[gt+168>>2]=ut[pt+88>>2],ut[gt+172>>2]=At,At=ut[pt+84>>2],ut[gt+160>>2]=ut[pt+80>>2],ut[gt+164>>2]=At,wn(At=gt+192|0,gt+176|0,gt+160|0),Hn=ut[gt+204>>2],ut[pt+88>>2]=ut[gt+200>>2],ut[pt+92>>2]=Hn,Hn=ut[gt+196>>2],ut[pt+80>>2]=ut[gt+192>>2],ut[pt+84>>2]=Hn,Hn=ut[pt+60>>2],ut[gt+152>>2]=ut[pt+56>>2],ut[gt+156>>2]=Hn,Hn=ut[pt+52>>2],ut[gt+144>>2]=ut[pt+48>>2],ut[gt+148>>2]=Hn,Hn=ut[pt+76>>2],ut[gt+136>>2]=ut[pt+72>>2],ut[gt+140>>2]=Hn,Hn=ut[Qn+4>>2],ut[gt+128>>2]=ut[Qn>>2],ut[gt+132>>2]=Hn,wn(At,gt+144|0,gt+128|0),Hn=ut[gt+204>>2],ut[pt+72>>2]=ut[gt+200>>2],ut[pt+76>>2]=Hn,Hn=ut[gt+196>>2],ut[Qn>>2]=ut[gt+192>>2],ut[Qn+4>>2]=Hn,Qn=ut[pt+44>>2],ut[gt+120>>2]=ut[pt+40>>2],ut[gt+124>>2]=Qn,Qn=ut[pt+36>>2],ut[gt+112>>2]=ut[pt+32>>2],ut[gt+116>>2]=Qn,Qn=ut[pt+60>>2],ut[gt+104>>2]=ut[pt+56>>2],ut[gt+108>>2]=Qn,Qn=ut[pt+52>>2],ut[gt+96>>2]=ut[pt+48>>2],ut[gt+100>>2]=Qn,wn(At,gt+112|0,gt+96|0),Qn=ut[gt+204>>2],ut[pt+56>>2]=ut[gt+200>>2],ut[pt+60>>2]=Qn,Qn=ut[gt+196>>2],ut[pt+48>>2]=ut[gt+192>>2],ut[pt+52>>2]=Qn,Qn=ut[pt+28>>2],ut[gt+88>>2]=ut[pt+24>>2],ut[gt+92>>2]=Qn,Qn=ut[pt+20>>2],ut[gt+80>>2]=ut[pt+16>>2],ut[gt+84>>2]=Qn,Qn=ut[pt+44>>2],ut[gt+72>>2]=ut[pt+40>>2],ut[gt+76>>2]=Qn,Qn=ut[pt+36>>2],ut[gt+64>>2]=ut[pt+32>>2],ut[gt+68>>2]=Qn,wn(At,gt+80|0,gt- -64|0),Qn=ut[gt+204>>2],ut[pt+40>>2]=ut[gt+200>>2],ut[pt+44>>2]=Qn,Qn=ut[gt+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=ut[ft+84>>2],Cn=ut[ft+48>>2],ar=ut[ft+88>>2],Qn=ut[ft+52>>2],zn=ut[ft+92>>2],ur=ut[ft+56>>2],or=ut[ft+96>>2],Cr=ut[ft+60>>2],lr=ut[ft+100>>2],Pr=ut[(Hn=ft- -64|0)>>2],Dr=ut[ft+104>>2],Fr=ut[ft+68>>2],qr=ut[ft+108>>2],Mr=ut[ft+72>>2],hr=ut[ft+112>>2],Gn=ut[ft+76>>2],er=ut[ft+116>>2],ut[pt+324>>2]=Gn+er,ut[pt+320>>2]=Mr+hr,ut[pt+316>>2]=Fr+qr,ut[pt+312>>2]=Pr+Dr,ut[pt+308>>2]=Cr+lr,ut[pt+304>>2]=ur+or,ut[pt+300>>2]=Qn+zn,ut[pt+296>>2]=Cn+ar,ut[pt+292>>2]=In+On,ut[pt+288>>2]=un+_n,ut[pt+36>>2]=er-Gn,ut[pt+32>>2]=hr-Mr,ut[pt+28>>2]=qr-Fr,ut[pt+24>>2]=Dr-Pr,ut[pt+20>>2]=lr-Cr,ut[pt+16>>2]=or-ur,ut[pt+12>>2]=zn-Qn,ut[pt+8>>2]=ar-Cn,ut[pt+4>>2]=On-In,ut[pt>>2]=_n-un,$r(un=pt+288|0,un,pt),$r(In=pt+240|0,ft,mn),cr(_n=pt+192|0,In),$r(_n,un,_n),ut[pt+452>>2]=0,ut[pt+456>>2]=0,ut[pt+460>>2]=0,ut[pt+464>>2]=0,ut[pt+468>>2]=0,ut[pt+436>>2]=0,ut[pt+440>>2]=0,ut[pt+444>>2]=0,ut[pt+448>>2]=0,ut[pt+432>>2]=1,U0(On=pt+576|0,pt+432|0,_n),$r(_n=pt+720|0,On,un),$r(zn=pt+672|0,On,In),$r(Qn=pt+48|0,_n,zn),$r(Qn,Qn,un=ft+120|0),$r(pt+528|0,ft,1648),$r(pt+480|0,mn,1648),$r(pt+624|0,_n,2960),$r(_n=pt+336|0,un,Qn),sr(ar=pt+384|0,_n),so=bt[pt+384|0],_n=ut[ft+36>>2],un=ut[ft+32>>2],ut[pt+176>>2]=un,ut[pt+180>>2]=_n,In=ut[ft+28>>2],_n=ut[ft+24>>2],ut[pt+168>>2]=_n,ut[pt+172>>2]=In,On=ut[ft+20>>2],In=ut[ft+16>>2],ut[pt+160>>2]=In,ut[pt+164>>2]=On,Cn=ut[ft+12>>2],On=ut[ft+8>>2],ut[pt+152>>2]=On,ut[pt+156>>2]=Cn,ur=ut[ft+4>>2],Cn=ut[ft>>2],ut[pt+144>>2]=Cn,ut[pt+148>>2]=ur,ur=ut[mn>>2],or=ut[ft+44>>2],Cr=ut[ft+48>>2],lr=ut[ft+52>>2],Pr=ut[ft+56>>2],Dr=ut[ft+60>>2],Fr=ut[Hn>>2],qr=ut[ft+68>>2],Mr=ut[ft+72>>2],hr=ut[ft+76>>2],pr=ut[pt+484>>2],Hn=ut[pt+148>>2],Or=ut[pt+492>>2],Gn=ut[pt+156>>2],io=ut[pt+500>>2],er=ut[pt+164>>2],ho=ut[pt+508>>2],Ln=ut[pt+172>>2],Eo=ut[pt+516>>2],jr=ut[pt+180>>2],Po=ut[pt+480>>2],Do=ut[pt+488>>2],En=ut[pt+496>>2],Er=ut[pt+504>>2],mn=0-(1&so)|0,ut[pt+176>>2]=un^mn&(un^ut[pt+512>>2]),ut[pt+168>>2]=_n^mn&(_n^Er),ut[pt+160>>2]=In^mn&(In^En),ut[pt+152>>2]=On^mn&(On^Do),ut[pt+144>>2]=Cn^mn&(Cn^Po),ut[pt+180>>2]=jr^mn&(jr^Eo),ut[pt+172>>2]=Ln^mn&(Ln^ho),ut[pt+164>>2]=er^mn&(er^io),ut[pt+156>>2]=Gn^mn&(Gn^Or),ut[pt+148>>2]=Hn^mn&(Hn^pr),jr=ut[pt+528>>2],so=ut[pt+532>>2],pr=ut[pt+536>>2],Or=ut[pt+540>>2],io=ut[pt+544>>2],ho=ut[pt+548>>2],Eo=ut[pt+552>>2],Po=ut[pt+556>>2],Do=ut[pt+560>>2],En=ut[pt+564>>2],un=ut[pt+672>>2],Er=ut[pt+624>>2],_n=ut[pt+676>>2],_t=ut[pt+628>>2],In=ut[pt+680>>2],Ot=ut[pt+632>>2],On=ut[pt+684>>2],Wt=ut[pt+636>>2],Cn=ut[pt+688>>2],Ct=ut[pt+640>>2],Hn=ut[pt+692>>2],Lt=ut[pt+644>>2],Gn=ut[pt+696>>2],Xt=ut[pt+648>>2],er=ut[pt+700>>2],hn=ut[pt+652>>2],Ln=ut[pt+704>>2],rn=ut[pt+656>>2],gt=ut[pt+708>>2],ut[pt+708>>2]=gt^mn&(ut[pt+660>>2]^gt),ut[pt+704>>2]=Ln^mn&(Ln^rn),ut[pt+700>>2]=er^mn&(er^hn),ut[pt+696>>2]=Gn^mn&(Gn^Xt),ut[pt+692>>2]=Hn^mn&(Hn^Lt),ut[pt+688>>2]=Cn^mn&(Cn^Ct),ut[pt+684>>2]=On^mn&(On^Wt),ut[pt+680>>2]=In^mn&(In^Ot),ut[pt+676>>2]=_n^mn&(_n^_t),ut[pt+672>>2]=un^mn&(un^Er),$r(un=pt+96|0,pt+144|0,Qn),sr(ar,un),_n=ut[ft+80>>2],In=ut[ft+84>>2],On=ut[ft+88>>2],Cn=ut[ft+92>>2],Qn=ut[ft+96>>2],Hn=ut[ft+100>>2],Gn=ut[ft+104>>2],er=ut[ft+108>>2],Ln=ut[ft+112>>2],Er=ut[ft+116>>2],ft=0-(1&Ft[pt+384|0])|0,un=hr^mn&(hr^En),ut[pt+420>>2]=Er-(ft&(0-un^un)^un),un=Mr^mn&(Mr^Do),ut[pt+416>>2]=Ln-(ft&(0-un^un)^un),un=qr^mn&(qr^Po),ut[pt+412>>2]=er-(ft&(0-un^un)^un),un=Fr^mn&(Fr^Eo),ut[pt+408>>2]=Gn-(ft&(0-un^un)^un),un=Dr^mn&(Dr^ho),ut[pt+404>>2]=Hn-(ft&(0-un^un)^un),un=Pr^mn&(Pr^io),ut[pt+400>>2]=Qn-(ft&(0-un^un)^un),un=lr^mn&(lr^Or),ut[pt+396>>2]=Cn-(ft&(0-un^un)^un),un=Cr^mn&(Cr^pr),ut[pt+392>>2]=On-(ft&(0-un^un)^un),un=or^mn&(or^so),ut[pt+388>>2]=In-(ft&(0-un^un)^un),un=ft,ft=ur^mn&(ur^jr),ut[pt+384>>2]=_n-(un&(0-ft^ft)^ft),$r(ar,zn,ar),sr(pt+768|0,ar),ft=0-(1&Ft[pt+768|0])|0,un=ut[pt+384>>2],ut[pt+384>>2]=ft&(0-un^un)^un,un=ut[pt+388>>2],ut[pt+388>>2]=ft&(0-un^un)^un,un=ut[pt+392>>2],ut[pt+392>>2]=ft&(0-un^un)^un,un=ut[pt+396>>2],ut[pt+396>>2]=ft&(0-un^un)^un,un=ut[pt+400>>2],ut[pt+400>>2]=ft&(0-un^un)^un,un=ut[pt+404>>2],ut[pt+404>>2]=ft&(0-un^un)^un,un=ut[pt+408>>2],ut[pt+408>>2]=ft&(0-un^un)^un,un=ut[pt+412>>2],ut[pt+412>>2]=ft&(0-un^un)^un,un=ut[pt+416>>2],ut[pt+416>>2]=ft&(0-un^un)^un,un=ft,ft=ut[pt+420>>2],ut[pt+420>>2]=un&(0-ft^ft)^ft,sr(At,ar),jn=pt+800|0}function s0(At,ft){var pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn=0,un=0;jn=pt=jn-288|0,gt=bt[At+28|0]|bt[At+29|0]<<8|bt[At+30|0]<<16|bt[At+31|0]<<24,_t=bt[At+24|0]|bt[At+25|0]<<8|bt[At+26|0]<<16|bt[At+27|0]<<24,Ot=bt[At+20|0]|bt[At+21|0]<<8|bt[At+22|0]<<16|bt[At+23|0]<<24,Wt=bt[At+16|0]|bt[At+17|0]<<8|bt[At+18|0]<<16|bt[At+19|0]<<24,Ct=bt[At+4|0]|bt[At+5|0]<<8|bt[At+6|0]<<16|bt[At+7|0]<<24,Lt=bt[At+8|0]|bt[At+9|0]<<8|bt[At+10|0]<<16|bt[At+11|0]<<24,Xt=bt[At+12|0]|bt[At+13|0]<<8|bt[At+14|0]<<16|bt[At+15|0]<<24,hn=bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24,At=ut[ft+124>>2],ut[pt+280>>2]=ut[ft+120>>2],ut[pt+284>>2]=At,At=ut[ft+116>>2],ut[pt+272>>2]=ut[ft+112>>2],ut[pt+276>>2]=At,At=ut[ft+108>>2],ut[pt+248>>2]=ut[ft+104>>2],ut[pt+252>>2]=At,At=ut[ft+100>>2],ut[pt+240>>2]=ut[ft+96>>2],ut[pt+244>>2]=At,At=ut[ft+124>>2],ut[pt+232>>2]=ut[ft+120>>2],ut[pt+236>>2]=At,At=ut[ft+116>>2],ut[pt+224>>2]=ut[ft+112>>2],ut[pt+228>>2]=At,wn(un=pt+256|0,pt+240|0,pt+224|0),At=ut[pt+268>>2],ut[ft+120>>2]=ut[pt+264>>2],ut[ft+124>>2]=At,At=ut[pt+260>>2],ut[ft+112>>2]=ut[pt+256>>2],ut[ft+116>>2]=At,At=ut[ft+92>>2],ut[pt+216>>2]=ut[ft+88>>2],ut[pt+220>>2]=At,At=ut[ft+84>>2],ut[pt+208>>2]=ut[ft+80>>2],ut[pt+212>>2]=At,At=ut[ft+108>>2],ut[pt+200>>2]=ut[ft+104>>2],ut[pt+204>>2]=At,At=ut[ft+100>>2],ut[pt+192>>2]=ut[ft+96>>2],ut[pt+196>>2]=At,wn(un,pt+208|0,pt+192|0),At=ut[pt+268>>2],ut[ft+104>>2]=ut[pt+264>>2],ut[ft+108>>2]=At,At=ut[pt+260>>2],ut[ft+96>>2]=ut[pt+256>>2],ut[ft+100>>2]=At,At=ut[ft+76>>2],ut[pt+184>>2]=ut[ft+72>>2],ut[pt+188>>2]=At,rn=ut[4+(At=ft- -64|0)>>2],ut[pt+176>>2]=ut[At>>2],ut[pt+180>>2]=rn,rn=ut[ft+92>>2],ut[pt+168>>2]=ut[ft+88>>2],ut[pt+172>>2]=rn,rn=ut[ft+84>>2],ut[pt+160>>2]=ut[ft+80>>2],ut[pt+164>>2]=rn,wn(un,pt+176|0,pt+160|0),rn=ut[pt+268>>2],ut[ft+88>>2]=ut[pt+264>>2],ut[ft+92>>2]=rn,rn=ut[pt+260>>2],ut[ft+80>>2]=ut[pt+256>>2],ut[ft+84>>2]=rn,rn=ut[ft+60>>2],ut[pt+152>>2]=ut[ft+56>>2],ut[pt+156>>2]=rn,rn=ut[ft+52>>2],ut[pt+144>>2]=ut[ft+48>>2],ut[pt+148>>2]=rn,rn=ut[ft+76>>2],ut[pt+136>>2]=ut[ft+72>>2],ut[pt+140>>2]=rn,rn=ut[At+4>>2],ut[pt+128>>2]=ut[At>>2],ut[pt+132>>2]=rn,wn(un,pt+144|0,pt+128|0),rn=ut[pt+268>>2],ut[ft+72>>2]=ut[pt+264>>2],ut[ft+76>>2]=rn,rn=ut[pt+260>>2],ut[At>>2]=ut[pt+256>>2],ut[At+4>>2]=rn,rn=ut[ft+44>>2],ut[pt+120>>2]=ut[ft+40>>2],ut[pt+124>>2]=rn,rn=ut[ft+36>>2],ut[pt+112>>2]=ut[ft+32>>2],ut[pt+116>>2]=rn,rn=ut[ft+60>>2],ut[pt+104>>2]=ut[ft+56>>2],ut[pt+108>>2]=rn,rn=ut[ft+52>>2],ut[pt+96>>2]=ut[ft+48>>2],ut[pt+100>>2]=rn,wn(un,pt+112|0,pt+96|0),rn=ut[pt+268>>2],ut[ft+56>>2]=ut[pt+264>>2],ut[ft+60>>2]=rn,rn=ut[pt+260>>2],ut[ft+48>>2]=ut[pt+256>>2],ut[ft+52>>2]=rn,rn=ut[ft+28>>2],ut[pt+88>>2]=ut[ft+24>>2],ut[pt+92>>2]=rn,rn=ut[ft+20>>2],ut[pt+80>>2]=ut[ft+16>>2],ut[pt+84>>2]=rn,rn=ut[ft+44>>2],ut[pt+72>>2]=ut[ft+40>>2],ut[pt+76>>2]=rn,rn=ut[ft+36>>2],ut[pt+64>>2]=ut[ft+32>>2],ut[pt+68>>2]=rn,wn(un,pt+80|0,pt- -64|0),rn=ut[pt+268>>2],ut[ft+40>>2]=ut[pt+264>>2],ut[ft+44>>2]=rn,rn=ut[pt+260>>2],ut[ft+32>>2]=ut[pt+256>>2],ut[ft+36>>2]=rn,rn=ut[ft+12>>2],ut[pt+56>>2]=ut[ft+8>>2],ut[pt+60>>2]=rn,rn=ut[ft+4>>2],ut[pt+48>>2]=ut[ft>>2],ut[pt+52>>2]=rn,rn=ut[ft+28>>2],ut[pt+40>>2]=ut[ft+24>>2],ut[pt+44>>2]=rn,rn=ut[ft+20>>2],ut[pt+32>>2]=ut[ft+16>>2],ut[pt+36>>2]=rn,wn(un,pt+48|0,pt+32|0),rn=ut[pt+268>>2],ut[ft+24>>2]=ut[pt+264>>2],ut[ft+28>>2]=rn,rn=ut[pt+260>>2],ut[ft+16>>2]=ut[pt+256>>2],ut[ft+20>>2]=rn,rn=ut[pt+284>>2],ut[pt+24>>2]=ut[pt+280>>2],ut[pt+28>>2]=rn,rn=ut[pt+276>>2],ut[pt+16>>2]=ut[pt+272>>2],ut[pt+20>>2]=rn,rn=ut[ft+12>>2],ut[pt+8>>2]=ut[ft+8>>2],ut[pt+12>>2]=rn,rn=ut[ft+4>>2],ut[pt>>2]=ut[ft>>2],ut[pt+4>>2]=rn,wn(un,pt+16|0,pt),un=ut[pt+268>>2],ut[ft+8>>2]=ut[pt+264>>2],ut[ft+12>>2]=un,un=ut[pt+260>>2],ut[ft>>2]=ut[pt+256>>2],ut[ft+4>>2]=un,ut[ft+12>>2]=(bt[ft+12|0]|bt[ft+13|0]<<8|bt[ft+14|0]<<16|bt[ft+15|0]<<24)^Xt,ut[ft+8>>2]=(bt[ft+8|0]|bt[ft+9|0]<<8|bt[ft+10|0]<<16|bt[ft+11|0]<<24)^Lt,ut[ft+4>>2]=(bt[ft+4|0]|bt[ft+5|0]<<8|bt[ft+6|0]<<16|bt[ft+7|0]<<24)^Ct,ut[ft>>2]=(bt[0|ft]|bt[ft+1|0]<<8|bt[ft+2|0]<<16|bt[ft+3|0]<<24)^hn,ut[At>>2]=(bt[0|At]|b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[gt+25|0]<<8|bt[gt+26|0]<<16|bt[gt+27|0]<<24,In=bt[gt+72|0]|bt[gt+73|0]<<8|bt[gt+74|0]<<16|bt[gt+75|0]<<24,On=bt[gt+88|0]|bt[gt+89|0]<<8|bt[gt+90|0]<<16|bt[gt+91|0]<<24,Cn=bt[gt+40|0]|bt[gt+41|0]<<8|bt[gt+42|0]<<16|bt[gt+43|0]<<24,Qn=bt[gt+56|0]|bt[gt+57|0]<<8|bt[gt+58|0]<<16|bt[gt+59|0]<<24,Hn=ut[_t+192>>2],Gn=ut[_t+196>>2],er=ut[_t+200>>2],ut[_t+204>>2]=(bt[gt+44|0]|bt[gt+45|0]<<8|bt[gt+46|0]<<16|bt[gt+47|0]<<24)&(bt[gt+60|0]|bt[gt+61|0]<<8|bt[gt+62|0]<<16|bt[gt+63|0]<<24)^(bt[gt+28|0]|bt[gt+29|0]<<8|bt[gt+30|0]<<16|bt[gt+31|0]<<24)^(bt[gt+76|0]|bt[gt+77|0]<<8|bt[gt+78|0]<<16|bt[gt+79|0]<<24)^ut[_t+204>>2]^(bt[gt+92|0]|bt[gt+93|0]<<8|bt[gt+94|0]<<16|bt[gt+95|0]<<24),ut[_t+200>>2]=Cn&Qn^On^er^In^_n,ut[_t+196>>2]=un&mn^rn^Gn^hn^Xt,ut[_t+192>>2]=Ct&Lt^ar^Ot^Wt^Hn,ms(zn,0,Ln),ss(At,ur,pt),pt=ut[_t+192>>2],ur=ut[_t+196>>2],Ln=ut[_t+200>>2],zn=ut[_t+204>>2],At=ut[gt+92>>2],ut[_t+232>>2]=ut[gt+88>>2],ut[_t+236>>2]=At,At=ut[gt+84>>2],ut[_t+224>>2]=ut[gt+80>>2],ut[_t+228>>2]=At,At=ut[gt+76>>2],ut[_t+184>>2]=ut[gt+72>>2],ut[_t+188>>2]=At,At=ut[ft+4>>2],ut[_t+176>>2]=ut[ft>>2],ut[_t+180>>2]=At,At=ut[gt+92>>2],ut[_t+168>>2]=ut[gt+88>>2],ut[_t+172>>2]=At,At=ut[gt+84>>2],ut[_t+160>>2]=ut[gt+80>>2],ut[_t+164>>2]=At,wn(At=_t+208|0,_t+176|0,_t+160|0),ar=ut[_t+220>>2],ut[gt+88>>2]=ut[_t+216>>2],ut[gt+92>>2]=ar,ar=ut[_t+212>>2],ut[gt+80>>2]=ut[_t+208>>2],ut[gt+84>>2]=ar,ar=ut[gt+60>>2],ut[_t+152>>2]=ut[gt+56>>2],ut[_t+156>>2]=ar,ar=ut[gt+52>>2],ut[_t+144>>2]=ut[gt+48>>2],ut[_t+148>>2]=ar,ar=ut[gt+76>>2],ut[_t+136>>2]=ut[gt+72>>2],ut[_t+140>>2]=ar,ar=ut[ft+4>>2],ut[_t+128>>2]=ut[ft>>2],ut[_t+132>>2]=ar,wn(At,_t+144|0,_t+128|0),ar=ut[_t+220>>2],ut[gt+72>>2]=ut[_t+216>>2],ut[gt+76>>2]=ar,ar=ut[_t+212>>2],ut[ft>>2]=ut[_t+208>>2],ut[ft+4>>2]=ar,ft=ut[gt+44>>2],ut[_t+120>>2]=ut[gt+40>>2],ut[_t+124>>2]=ft,ft=ut[gt+36>>2],ut[_t+112>>2]=ut[gt+32>>2],ut[_t+116>>2]=ft,ft=ut[gt+60>>2],ut[_t+104>>2]=ut[gt+56>>2],ut[_t+108>>2]=ft,ft=ut[gt+52>>2],ut[_t+96>>2]=ut[gt+48>>2],ut[_t+100>>2]=ft,wn(At,_t+112|0,_t+96|0),ft=ut[_t+220>>2],ut[gt+56>>2]=ut[_t+216>>2],ut[gt+60>>2]=ft,ft=ut[_t+212>>2],ut[gt+48>>2]=ut[_t+208>>2],ut[gt+52>>2]=ft,ft=ut[gt+28>>2],ut[_t+88>>2]=ut[gt+24>>2],ut[_t+92>>2]=ft,ft=ut[gt+20>>2],ut[_t+80>>2]=ut[gt+16>>2],ut[_t+84>>2]=ft,ft=ut[gt+44>>2],ut[_t+72>>2]=ut[gt+40>>2],ut[_t+76>>2]=ft,ft=ut[gt+36>>2],ut[_t+64>>2]=ut[gt+32>>2],ut[_t+68>>2]=ft,wn(At,_t+80|0,_t- -64|0),ft=ut[_t+220>>2],ut[gt+40>>2]=ut[_t+216>>2],ut[gt+44>>2]=ft,ft=ut[_t+212>>2],ut[gt+32>>2]=ut[_t+208>>2],ut[gt+36>>2]=ft,ft=ut[gt+12>>2],ut[_t+56>>2]=ut[gt+8>>2],ut[_t+60>>2]=ft,ft=ut[gt+4>>2],ut[_t+48>>2]=ut[gt>>2],ut[_t+52>>2]=ft,ft=ut[gt+28>>2],ut[_t+40>>2]=ut[gt+24>>2],ut[_t+44>>2]=ft,ft=ut[gt+20>>2],ut[_t+32>>2]=ut[gt+16>>2],ut[_t+36>>2]=ft,wn(At,_t+48|0,_t+32|0),ft=ut[_t+220>>2],ut[gt+24>>2]=ut[_t+216>>2],ut[gt+28>>2]=ft,ft=ut[_t+212>>2],ut[gt+16>>2]=ut[_t+208>>2],ut[gt+20>>2]=ft,ft=ut[_t+236>>2],ut[_t+24>>2]=ut[_t+232>>2],ut[_t+28>>2]=ft,ft=ut[_t+228>>2],ut[_t+16>>2]=ut[_t+224>>2],ut[_t+20>>2]=ft,ft=ut[gt+12>>2],ut[_t+8>>2]=ut[gt+8>>2],ut[_t+12>>2]=ft,ft=ut[gt+4>>2],ut[_t>>2]=ut[gt>>2],ut[_t+4>>2]=ft,wn(At,_t+16|0,_t),At=ut[_t+208>>2],ft=ut[_t+212>>2],ar=ut[_t+216>>2],ut[gt+12>>2]=ut[_t+220>>2]^zn,ut[gt+8>>2]=ar^Ln,ut[gt+4>>2]=ft^ur,ut[gt>>2]=At^pt,jn=_t+240|0}function _A(At,ft,pt,gt,_t){At|=0,ft|=0,pt|=0,gt|=0;var Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0;if(Lt=1886610805^(gt=bt[0|(_t|=0)]|bt[_t+1|0]<<8|bt[_t+2|0]<<16|bt[_t+3|0]<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+504>>2],ut[pt+264>>2]=un,mn=ut[pt+500>>2],ut[pt+260>>2]=mn,_n=ut[pt+496>>2],ut[pt+256>>2]=_n,In=ut[pt+492>>2],ut[pt+252>>2]=In,On=ut[pt+488>>2],ut[pt+248>>2]=On,Cn=ut[pt+484>>2],ut[pt+244>>2]=Cn,Hn=ut[pt+480>>2],ut[pt+240>>2]=Hn+1,$r(Lt=pt+240|0,Lt,33984),ut[pt+468>>2]=Xt-12055116,ut[pt+464>>2]=hn-18696448,ut[pt+460>>2]=rn-3247719,ut[pt+456>>2]=un-6275908,ut[pt+452>>2]=mn-8787816,ut[pt+448>>2]=_n+114729,ut[pt+444>>2]=In+6949391,ut[pt+440>>2]=On-15372611,ut[pt+436>>2]=Cn+13857413,ut[pt+432>>2]=Hn-10913610,$r(Qn=pt+192|0,Ct,1600),ut[pt+228>>2]=0-ut[pt+228>>2],ut[pt+224>>2]=0-ut[pt+224>>2],ut[pt+220>>2]=0-ut[pt+220>>2],ut[pt+216>>2]=0-ut[pt+216>>2],ut[pt+212>>2]=0-ut[pt+212>>2],ut[pt+208>>2]=0-ut[pt+208>>2],ut[pt+204>>2]=0-ut[pt+204>>2],ut[pt+200>>2]=0-ut[pt+200>>2],ut[pt+196>>2]=0-ut[pt+196>>2],ut[pt+192>>2]=-1^ut[pt+192>>2],$r(Qn,Qn,pt+432|0),Ct=U0(gt=pt+384|0,Lt,Qn),$r(Lt=pt+336|0,gt,ft),sr(_t=pt+576|0,Lt),Wt=bt[pt+576|0],Pr=ut[pt+420>>2],Lt=ut[pt+372>>2],Dr=ut[pt+416>>2],Gn=ut[pt+368>>2],Fr=ut[pt+412>>2],er=ut[pt+364>>2],qr=ut[pt+408>>2],ar=ut[pt+360>>2],Mr=ut[pt+404>>2],ur=ut[pt+356>>2],hr=ut[pt+400>>2],Ln=ut[pt+352>>2],Er=ut[pt+396>>2],zn=ut[pt+348>>2],jr=ut[pt+392>>2],or=ut[pt+344>>2],so=ut[pt+388>>2],Cr=ut[pt+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ut[pt+540>>2],Cn=ut[pt+208>>2],Hn=ut[pt+544>>2],Lt=ut[pt+212>>2],Pr=ut[pt+548>>2],Dr=ut[pt+216>>2],Fr=ut[pt+552>>2],qr=ut[pt+220>>2],Mr=ut[pt+556>>2],hr=ut[pt+224>>2],Er=ut[pt+560>>2],jr=ut[pt+228>>2],so=ut[pt+564>>2],ut[pt+180>>2]=Ct<<1,ut[pt+176>>2]=Gn<<1,ut[pt+172>>2]=er<<1,ut[pt+168>>2]=ar<<1,ut[pt+164>>2]=ur<<1,ut[pt+160>>2]=Ln<<1,ut[pt+156>>2]=zn<<1,ut[pt+152>>2]=or<<1,ut[pt+148>>2]=Cr<<1,ut[pt+144>>2]=lr<<1,ut[pt+564>>2]=so-jr,ut[pt+560>>2]=Er-hr,ut[pt+556>>2]=Mr-qr,ut[pt+552>>2]=Fr-Dr,ut[pt+548>>2]=Pr-Lt,ut[pt+544>>2]=Hn-Cn,ut[pt+540>>2]=On-In,ut[pt+536>>2]=_n-mn,ut[pt+532>>2]=un-rn,ut[pt+528>>2]=hn-Xt,$r(Ct=pt+144|0,Ct,Qn),$r(Qn=pt+96|0,ft,34080),cr(pt+288|0,gt),ft=ut[pt+324>>2],ut[pt+84>>2]=0-ft,Xt=ut[pt+320>>2],ut[pt+80>>2]=0-Xt,hn=ut[pt+316>>2],ut[pt+76>>2]=0-hn,rn=ut[pt+312>>2],ut[pt+72>>2]=0-rn,un=ut[pt+308>>2],ut[pt+68>>2]=0-un,mn=ut[pt+304>>2],ut[pt+64>>2]=0-mn,_n=ut[pt+300>>2],ut[pt+60>>2]=0-_n,In=ut[pt+296>>2],ut[pt+56>>2]=0-In,On=ut[pt+292>>2],ut[pt+52>>2]=0-On,Cn=ut[pt+288>>2],ut[pt+48>>2]=1-Cn,ut[pt+36>>2]=ft,ut[pt+32>>2]=Xt,ut[pt+28>>2]=hn,ut[pt+24>>2]=rn,ut[pt+20>>2]=un,ut[pt+16>>2]=mn,ut[pt+12>>2]=_n,ut[pt+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ft[At+85|0]=255,Ft[At+86|0]=255,Ft[At+87|0]=255,ms((_t=At+96|0)+Ct|0,0,256-Ct|0),Is(At,_t),Ot=bt[At+4|0]|bt[At+5|0]<<8|bt[At+6|0]<<16|bt[At+7|0]<<24,ut[gt>>2]=bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24,ut[gt+4>>2]=Ot,Ot=bt[At+12|0]|bt[At+13|0]<<8|bt[At+14|0]<<16|bt[At+15|0]<<24,ut[gt+8>>2]=bt[At+8|0]|bt[At+9|0]<<8|bt[At+10|0]<<16|bt[At+11|0]<<24,ut[gt+12>>2]=Ot,Ot=bt[At+20|0]|bt[At+21|0]<<8|bt[At+22|0]<<16|bt[At+23|0]<<24,ut[gt+16>>2]=bt[At+16|0]|bt[At+17|0]<<8|bt[At+18|0]<<16|bt[At+19|0]<<24,ut[gt+20>>2]=Ot,Ot=bt[At+28|0]|bt[At+29|0]<<8|bt[At+30|0]<<16|bt[At+31|0]<<24,ut[gt+24>>2]=bt[At+24|0]|bt[At+25|0]<<8|bt[At+26|0]<<16|bt[At+27|0]<<24,ut[gt+28>>2]=Ot,Ot=bt[At+36|0]|bt[At+37|0]<<8|bt[At+38|0]<<16|bt[At+39|0]<<24,ut[gt+32>>2]=bt[At+32|0]|bt[At+33|0]<<8|bt[At+34|0]<<16|bt[At+35|0]<<24,ut[gt+36>>2]=Ot,Ot=bt[At+44|0]|bt[At+45|0]<<8|bt[At+46|0]<<16|bt[At+47|0]<<24,ut[gt+40>>2]=bt[At+40|0]|bt[At+41|0]<<8|bt[At+42|0]<<16|bt[At+43|0]<<24,ut[gt+44>>2]=Ot,Ot=bt[At+52|0]|bt[At+53|0]<<8|bt[At+54|0]<<16|bt[At+55|0]<<24,ut[gt+48>>2]=bt[At+48|0]|bt[At+49|0]<<8|bt[At+50|0]<<16|bt[At+51|0]<<24,ut[gt+52>>2]=Ot,Ot=bt[At+60|0]|bt[At+61|0]<<8|bt[At+62|0]<<16|bt[At+63|0]<<24,ut[gt+56>>2]=bt[At+56|0]|bt[At+57|0]<<8|bt[At+58|0]<<16|bt[At+59|0]<<24,ut[gt+60>>2]=Ot,ss(ft,gt,pt),Uo(At,64),Uo(_t,256),_t=0}return jn=gt- -64|0,_t}Fs(),Sr()}Wo(1369,1217,306,1142),Sr()}function SA(At,ft,pt){At|=0,ft|=0,pt|=0;var gt,_t,Ot,Wt=0,Ct=0;jn=gt=jn-192|0,ut[gt+144>>2]=0,ut[gt+148>>2]=0,ut[gt+152>>2]=0,ut[gt+156>>2]=0,ut[gt+104>>2]=0,ut[gt+108>>2]=0,ut[gt+112>>2]=0,ut[gt+116>>2]=0,ut[gt+120>>2]=0,ut[gt+124>>2]=0,Wt=ut[8591],ut[gt+168>>2]=ut[8590],ut[gt+172>>2]=Wt,Wt=ut[8593],ut[gt+176>>2]=ut[8592],ut[gt+180>>2]=Wt,Wt=ut[8595],ut[gt+184>>2]=ut[8594],ut[gt+188>>2]=Wt,ut[gt+128>>2]=0,ut[gt+132>>2]=0,ut[gt+136>>2]=0,ut[gt+140>>2]=0,ut[gt+96>>2]=0,ut[gt+100>>2]=0,Wt=ut[8589],ut[gt+160>>2]=ut[8588],ut[gt+164>>2]=Wt,Wt=bt[pt+20|0]|bt[pt+21|0]<<8|bt[pt+22|0]<<16|bt[pt+23|0]<<24,ut[gt+80>>2]=bt[pt+16|0]|bt[pt+17|0]<<8|bt[pt+18|0]<<16|bt[pt+19|0]<<24,ut[gt+84>>2]=Wt,Wt=bt[pt+28|0]|bt[pt+29|0]<<8|bt[pt+30|0]<<16|bt[pt+31|0]<<24,ut[gt+88>>2]=bt[pt+24|0]|bt[pt+25|0]<<8|bt[pt+26|0]<<16|bt[pt+27|0]<<24,ut[gt+92>>2]=Wt,Wt=bt[pt+4|0]|bt[pt+5|0]<<8|bt[pt+6|0]<<16|bt[pt+7|0]<<24,ut[gt+64>>2]=bt[0|pt]|bt[pt+1|0]<<8|bt[pt+2|0]<<16|bt[pt+3|0]<<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=0,ut[gt+60>>2]=0,ut[gt+48>>2]=0,ut[gt+52>>2]=0,ut[gt+40>>2]=0,ut[gt+44>>2]=0,ut[gt+64>>2]=Ot,ut[gt+68>>2]=ft,ut[gt+72>>2]=Ct,ut[gt+76>>2]=_t,ut[gt+32>>2]=0,ut[gt+36>>2]=0,r1(Wt,gt),ft=ut[gt+124>>2],ut[gt+184>>2]=ut[gt+120>>2],ut[gt+188>>2]=ft,ft=ut[gt+116>>2],ut[gt+176>>2]=ut[gt+112>>2],ut[gt+180>>2]=ft,ft=ut[gt+108>>2],ut[gt+168>>2]=ut[gt+104>>2],ut[gt+172>>2]=ft,ft=ut[gt+100>>2],ut[gt+160>>2]=ut[gt+96>>2],ut[gt+164>>2]=ft,ft=ut[gt+92>>2],ut[gt+152>>2]=ut[gt+88>>2],ut[gt+156>>2]=ft,ft=ut[gt+84>>2],ut[gt+144>>2]=ut[gt+80>>2],ut[gt+148>>2]=ft,ft=ut[gt+76>>2],ut[gt+136>>2]=ut[gt+72>>2],ut[gt+140>>2]=ft,ft=ut[gt+68>>2],ut[gt+128>>2]=ut[gt+64>>2],ut[gt+132>>2]=ft,Ns(pt),ft=ut[gt+156>>2],Wt=ut[gt+152>>2],Ft[At+24|0]=Wt,Ft[At+25|0]=Wt>>>8,Ft[At+26|0]=Wt>>>16,Ft[At+27|0]=Wt>>>24,Ft[At+28|0]=ft,Ft[At+29|0]=ft>>>8,Ft[At+30|0]=ft>>>16,Ft[At+31|0]=ft>>>24,ft=ut[gt+148>>2],Wt=ut[gt+144>>2],Ft[At+16|0]=Wt,Ft[At+17|0]=Wt>>>8,Ft[At+18|0]=Wt>>>16,Ft[At+19|0]=Wt>>>24,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>>8,Ft[At+22|0]=ft>>>16,Ft[At+23|0]=ft>>>24,ft=ut[gt+140>>2],Wt=ut[gt+136>>2],Ft[At+8|0]=Wt,Ft[At+9|0]=Wt>>>8,Ft[At+10|0]=Wt>>>16,Ft[At+11|0]=Wt>>>24,Ft[At+12|0]=ft,Ft[At+13|0]=ft>>>8,Ft[At+14|0]=ft>>>16,Ft[At+15|0]=ft>>>24,ft=ut[gt+132>>2],Wt=ut[gt+128>>2],Ft[0|At]=Wt,Ft[At+1|0]=Wt>>>8,Ft[At+2|0]=Wt>>>16,Ft[At+3|0]=Wt>>>24,Ft[At+4|0]=ft,Ft[At+5|0]=ft>>>8,Ft[At+6|0]=ft>>>16,Ft[At+7|0]=ft>>>24,Uo(pt,64),jn=gt+192|0}function N0(At){var ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn=0,un=0,mn=0,_n=0,In=0;for(jn=ft=jn-2048|0,Dn(_n=ft+640|0,At),rn=ut[At+36>>2],ut[ft+352>>2]=ut[At+32>>2],ut[ft+356>>2]=rn,rn=ut[At+28>>2],ut[ft+344>>2]=ut[At+24>>2],ut[ft+348>>2]=rn,rn=ut[At+20>>2],ut[ft+336>>2]=ut[At+16>>2],ut[ft+340>>2]=rn,rn=ut[At+12>>2],ut[ft+328>>2]=ut[At+8>>2],ut[ft+332>>2]=rn,rn=ut[At+4>>2],ut[ft+320>>2]=ut[At>>2],ut[ft+324>>2]=rn,rn=ut[At+52>>2],ut[ft+368>>2]=ut[At+48>>2],ut[ft+372>>2]=rn,rn=ut[At+60>>2],ut[ft+376>>2]=ut[At+56>>2],ut[ft+380>>2]=rn,rn=ut[4+(mn=At- -64|0)>>2],ut[ft+384>>2]=ut[mn>>2],ut[ft+388>>2]=rn,rn=ut[At+76>>2],ut[ft+392>>2]=ut[At+72>>2],ut[ft+396>>2]=rn,rn=ut[At+44>>2],ut[ft+360>>2]=ut[At+40>>2],ut[ft+364>>2]=rn,rn=ut[At+92>>2],ut[ft+408>>2]=ut[At+88>>2],ut[ft+412>>2]=rn,rn=ut[At+100>>2],ut[ft+416>>2]=ut[At+96>>2],ut[ft+420>>2]=rn,rn=ut[At+108>>2],ut[ft+424>>2]=ut[At+104>>2],ut[ft+428>>2]=rn,rn=ut[At+116>>2],ut[ft+432>>2]=ut[At+112>>2],ut[ft+436>>2]=rn,rn=ut[At+84>>2],ut[ft+400>>2]=ut[At+80>>2],ut[ft+404>>2]=rn,lu(un=ft+480|0,mn=ft+320|0),$r(rn=ft+160|0,un,pt=ft+600|0),$r(ft+200|0,gt=ft+520|0,_t=ft+560|0),$r(ft+240|0,_t,pt),$r(ft+280|0,un,gt),Ys(un,rn,_n),$r(mn,un,pt),$r(Ct=ft+360|0,gt,_t),$r(Lt=ft+400|0,_t,pt),$r(Xt=ft+440|0,un,gt),Dn(At=ft+800|0,mn),Ys(un,rn,At),$r(mn,un,pt),$r(Ct,gt,_t),$r(Lt,_t,pt),$r(Xt,un,gt),Dn(At=ft+960|0,mn),Ys(un,rn,At),$r(mn,un,pt),$r(Ct,gt,_t),$r(Lt,_t,pt),$r(Xt,un,gt),Dn(At=ft+1120|0,mn),Ys(un,rn,At),$r(mn,un,pt),$r(Ct,gt,_t),$r(Lt,_t,pt),$r(Xt,un,gt),Dn(At=ft+1280|0,mn),Ys(un,rn,At),$r(mn,un,pt),$r(Ct,gt,_t),$r(Lt,_t,pt),$r(Xt,un,gt),Dn(At=ft+1440|0,mn),Ys(un,rn,At),$r(mn,un,pt),$r(Ct,gt,_t),$r(Lt,_t,pt),$r(Xt,un,gt),Dn(At=ft+1600|0,mn),Ys(un,rn,At),$r(mn,un,pt),$r(Ct,gt,_t),$r(Lt,_t,pt),$r(Xt,un,gt),Dn(ft+1760|0,mn),ut[ft+32>>2]=0,ut[ft+36>>2]=0,ut[ft+24>>2]=0,ut[ft+28>>2]=0,ut[ft+16>>2]=0,ut[ft+20>>2]=0,ut[ft+8>>2]=0,ut[ft+12>>2]=0,ut[ft+44>>2]=0,ut[ft+48>>2]=0,ut[ft+52>>2]=0,ut[ft+56>>2]=0,ut[ft+60>>2]=0,ut[ft+64>>2]=0,ut[ft+68>>2]=0,ut[ft+72>>2]=0,ut[ft+76>>2]=0,ut[ft+80>>2]=1,ut[ft>>2]=0,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,(ft+640|0)+vo((254&In)>>>1|0,160)|0)):(0|In)>=0||($r(At=ft+320|0,un=ft+480|0,pt),$r(Ct,gt,_t),$r(Lt,_t,pt),$r(Xt,un,gt),u0(un,At,(ft+640|0)+vo((0-In&254)>>>1|0,160)|0)),$r(ft,At=ft+480|0,pt),$r(mn,gt,_t),$r(_n,_t,pt),$r(hn,At,gt),At=rn-1|0,rn;);return sr(At=ft+640|0,ft),At=gu(At,32),jn=ft+2048|0,At}function _d(At){var ft=0,pt=0,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0;e:if(At|=0){Ot=(gt=At-8|0)+(At=-8&(ft=ut[At-4>>2]))|0;t:if(!(1&ft)){if(!(3&ft)||(gt=gt-(ft=ut[gt>>2])|0)>>>0<$a[9397])break e;At=At+ft|0;n:{r:{if(ut[9398]!=(0|gt)){if(ft>>>0<=255){if(_t=ft>>>3|0,(0|(ft=ut[gt+12>>2]))==(0|(pt=ut[gt+8>>2]))){Lt=37572,Xt=ut[9393]&Nr(-2,_t),ut[Lt>>2]=Xt;break t}ut[pt+12>>2]=ft,ut[ft+8>>2]=pt;break t}if(Ct=ut[gt+24>>2],(0|gt)!=(0|(ft=ut[gt+12>>2]))){pt=ut[gt+8>>2],ut[pt+12>>2]=ft,ut[ft+8>>2]=pt;break n}if(!(pt=ut[(_t=gt+20|0)>>2])){if(!(pt=ut[gt+16>>2]))break r;_t=gt+16|0}for(;Wt=_t,(pt=ut[(_t=(ft=pt)+20|0)>>2])||(_t=ft+16|0,pt=ut[ft+16>>2]););ut[Wt>>2]=0;break n}if((3&(ft=ut[Ot+4>>2]))!=3)break t;return ut[9395]=At,ut[Ot+4>>2]=-2&ft,ut[gt+4>>2]=1|At,void(ut[Ot>>2]=At)}ft=0}if(Ct){pt=ut[gt+28>>2];n:{if(ut[(_t=37876+(pt<<2)|0)>>2]==(0|gt)){if(ut[_t>>2]=ft,ft)break n;Lt=37576,Xt=ut[9394]&Nr(-2,pt),ut[Lt>>2]=Xt;break t}if(ut[Ct+(ut[Ct+16>>2]==(0|gt)?16:20)>>2]=ft,!ft)break t}ut[ft+24>>2]=Ct,(pt=ut[gt+16>>2])&&(ut[ft+16>>2]=pt,ut[pt+24>>2]=ft),(pt=ut[gt+20>>2])&&(ut[ft+20>>2]=pt,ut[pt+24>>2]=ft)}}if(!(gt>>>0>=Ot>>>0)&&1&(ft=ut[Ot+4>>2])){t:{n:{r:{i:{if(!(2&ft)){if(ut[9399]==(0|Ot)){if(ut[9399]=gt,At=ut[9396]+At|0,ut[9396]=At,ut[gt+4>>2]=1|At,ut[9398]!=(0|gt))break e;return ut[9395]=0,void(ut[9398]=0)}if(ut[9398]==(0|Ot))return ut[9398]=gt,At=ut[9395]+At|0,ut[9395]=At,ut[gt+4>>2]=1|At,void(ut[At+gt>>2]=At);if(At=(-8&ft)+At|0,ft>>>0<=255){if(_t=ft>>>3|0,(0|(ft=ut[Ot+12>>2]))==(0|(pt=ut[Ot+8>>2]))){Lt=37572,Xt=ut[9393]&Nr(-2,_t),ut[Lt>>2]=Xt;break n}ut[pt+12>>2]=ft,ut[ft+8>>2]=pt;break n}if(Ct=ut[Ot+24>>2],(0|Ot)!=(0|(ft=ut[Ot+12>>2]))){pt=ut[Ot+8>>2],ut[pt+12>>2]=ft,ut[ft+8>>2]=pt;break r}if(!(pt=ut[(_t=Ot+20|0)>>2])){if(!(pt=ut[Ot+16>>2]))break i;_t=Ot+16|0}for(;Wt=_t,(pt=ut[(_t=(ft=pt)+20|0)>>2])||(_t=ft+16|0,pt=ut[ft+16>>2]););ut[Wt>>2]=0;break r}ut[Ot+4>>2]=-2&ft,ut[gt+4>>2]=1|At,ut[At+gt>>2]=At;break t}ft=0}if(Ct){pt=ut[Ot+28>>2];r:{if(ut[(_t=37876+(pt<<2)|0)>>2]==(0|Ot)){if(ut[_t>>2]=ft,ft)break r;Lt=37576,Xt=ut[9394]&Nr(-2,pt),ut[Lt>>2]=Xt;break n}if(ut[Ct+(ut[Ct+16>>2]==(0|Ot)?16:20)>>2]=ft,!ft)break n}ut[ft+24>>2]=Ct,(pt=ut[Ot+16>>2])&&(ut[ft+16>>2]=pt,ut[pt+24>>2]=ft),(pt=ut[Ot+20>>2])&&(ut[ft+20>>2]=pt,ut[pt+24>>2]=ft)}}if(ut[gt+4>>2]=1|At,ut[At+gt>>2]=At,ut[9398]==(0|gt))return void(ut[9395]=At)}if(At>>>0<=255)return ft=37612+(-8&At)|0,(pt=ut[9393])&(At=1<<(At>>>3))?At=ut[ft+8>>2]:(ut[9393]=At|pt,At=ft),ut[ft+8>>2]=gt,ut[At+12>>2]=gt,ut[gt+12>>2]=ft,void(ut[gt+8>>2]=At);pt=31,At>>>0<=16777215&&(pt=62+((At>>>38-(ft=Io(At>>>8|0))&1)-(ft<<1)|0)|0),ut[gt+28>>2]=pt,ut[gt+16>>2]=0,ut[gt+20>>2]=0,ft=37876+(pt<<2)|0;t:{n:{if((_t=ut[9394])&(Wt=1<>>1|0)|0:0),ft=ut[ft>>2];;){if(_t=ft,(-8&ut[ft+4>>2])==(0|At))break n;if(Wt=pt>>>29|0,pt<<=1,!(ft=ut[16+(Wt=ft+(4&Wt)|0)>>2]))break}ut[Wt+16>>2]=gt,ut[gt+24>>2]=_t}else ut[9394]=_t|Wt,ut[ft>>2]=gt,ut[gt+24>>2]=ft;ut[gt+12>>2]=gt,ut[gt+8>>2]=gt;break t}At=ut[_t+8>>2],ut[At+12>>2]=gt,ut[_t+8>>2]=gt,ut[gt+24>>2]=0,ut[gt+12>>2]=_t,ut[gt+8>>2]=At}At=ut[9401]-1|0,ut[9401]=At||-1}}}function D0(At,ft,pt,gt,_t){var Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n,In,On,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0,lr=0,Pr=0,Dr=0,Fr=0,qr=0,Mr=0,hr=0,Er=0,jr=0,so=0,pr=0,Or=0,io=0;if(gt?(Mr=bt[gt+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pt>>>5>>>0<=(At=Wt?32768:At)>>>0|ft)return Wt=1,pt>>>0<4096||(Wt=2,pt>>>0<8192||(Wt=3,pt>>>0<16384||(Wt=4,pt>>>0<32768||(Wt=5,pt>>>0<65536||(Wt=6,pt>>>0<131072||(Wt=7,pt>>>0<262144||(Wt=8,pt>>>0<524288||(Wt=9,pt>>>0<1048576||(Wt=10,pt>>>0<2097152||(Wt=11,pt>>>0<4194304||(Wt=12,pt>>>0<8388608||(Wt=13,pt>>>0<16777216||(Wt=14,pt>>>0<33554432||(Wt=15,pt>>>0<67108864||(Wt=16,pt>>>0<134217728||(Wt=17,pt>>>0<268435456||(Wt=18,pt>>>0<536870912||(Wt=19,pt>>>0<1073741824||(Wt=(0|pt)>=0?20:21))))))))))))))))))),pt=Wt,ut[gt>>2]=pt,gt=ft>>>2|0,ft=(3&ft)<<30|At>>>2,At=31&pt,(63&pt)>>>0>=32?(pt=0,At=gt>>>At|0):(pt=gt>>>At|0,At=((1<>>At),void(ut[_t>>2]=((!pt&At>>>0>=1073741823|pt?1073741823:At)>>>0)/$a[Ot>>2]);ut[_t>>2]=1,ft=Xr(At,ft,ut[Ot>>2]<<2),pt=1,!(At=ln)&ft>>>0<4||(pt=2,!At&ft>>>0<8||(pt=3,!At&ft>>>0<16||(pt=4,!At&ft>>>0<32||(pt=5,!At&ft>>>0<64||(pt=6,!At&ft>>>0<128||(pt=7,!At&ft>>>0<256||(pt=8,!At&ft>>>0<512||(pt=9,!At&ft>>>0<1024||(pt=10,!At&ft>>>0<2048||(pt=11,!At&ft>>>0<4096||(pt=12,!At&ft>>>0<8192||(pt=13,!At&ft>>>0<16384||(pt=14,!At&ft>>>0<32768||(pt=15,!At&ft>>>0<65536||(pt=16,!At&ft>>>0<131072||(pt=17,!At&ft>>>0<262144||(pt=18,!At&ft>>>0<524288||(pt=19,!At&ft>>>0<1048576||(pt=20,!At&ft>>>0<2097152||(pt=21,!At&ft>>>0<4194304||(pt=22,!At&ft>>>0<8388608||(pt=23,!At&ft>>>0<16777216||(pt=24,!At&ft>>>0<33554432||(pt=25,!At&ft>>>0<67108864||(pt=26,!At&ft>>>0<134217728||(pt=27,!At&ft>>>0<268435456||(pt=28,!At&ft>>>0<536870912||(pt=29,!At&ft>>>0<1073741824||(pt=30,!At&ft>>>0<2147483648||(pt=31,At&&(pt=32,At>>>0<2||(pt=33,At>>>0<4||(pt=34,At>>>0<8||(pt=35,At>>>0<16||(pt=36,At>>>0<32||(pt=37,At>>>0<64||(pt=38,At>>>0<128||(pt=39,At>>>0<256||(pt=40,At>>>0<512||(pt=41,At>>>0<1024||(pt=42,At>>>0<2048||(pt=43,At>>>0<4096||(pt=44,At>>>0<8192||(pt=45,At>>>0<16384||(pt=46,At>>>0<32768||(pt=47,At>>>0<65536||(pt=48,At>>>0<131072||(pt=49,At>>>0<262144||(pt=50,At>>>0<524288||(pt=51,At>>>0<1048576||(pt=52,At>>>0<2097152||(pt=53,At>>>0<4194304||(pt=54,At>>>0<8388608||(pt=55,At>>>0<16777216||(pt=56,At>>>0<33554432||(pt=57,At>>>0<67108864||(pt=58,At>>>0<134217728||(pt=59,At>>>0<268435456||(pt=60,At>>>0<536870912||(pt=61,At>>>0<1073741824||(pt=(0|At)>0|(0|At)>=0?62:63))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))),ut[gt>>2]=pt}function bA(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt){var Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0;if(ft-65>>>0<4294967232|Wt>>>0>64)At=-1;else{On=Xt=jn,jn=Xt=Xt-512&-64;e:{t:if(!(!(!(gt|_t)|pt)|!At|((_n=255&ft)-65&255)>>>0<=191|!(!(ft=255&Wt)||Ot)|ft>>>0>=65)){if(ft){if(!Ot)break t;Ct?(hn=725511199^(bt[Ct+8|0]|bt[Ct+9|0]<<8|bt[Ct+10|0]<<16|bt[Ct+11|0]<<24),rn=-1694144372^(bt[Ct+12|0]|bt[Ct+13|0]<<8|bt[Ct+14|0]<<16|bt[Ct+15|0]<<24),Wt=-1377402159^(bt[0|Ct]|bt[Ct+1|0]<<8|bt[Ct+2|0]<<16|bt[Ct+3|0]<<24),Ct=1359893119^(bt[Ct+4|0]|bt[Ct+5|0]<<8|bt[Ct+6|0]<<16|bt[Ct+7|0]<<24)):(hn=725511199,rn=-1694144372,Wt=-1377402159,Ct=1359893119),Lt?(un=327033209^(bt[Lt+8|0]|bt[Lt+9|0]<<8|bt[Lt+10|0]<<16|bt[Lt+11|0]<<24),mn=1541459225^(bt[Lt+12|0]|bt[Lt+13|0]<<8|bt[Lt+14|0]<<16|bt[Lt+15|0]<<24),In=-79577749^(bt[0|Lt]|bt[Lt+1|0]<<8|bt[Lt+2|0]<<16|bt[Lt+3|0]<<24),Lt=528734635^(bt[Lt+4|0]|bt[Lt+5|0]<<8|bt[Lt+6|0]<<16|bt[Lt+7|0]<<24)):(un=327033209,mn=1541459225,In=-79577749,Lt=528734635),ms(Xt- -64|0,0,293),ut[Xt+56>>2]=un,ut[Xt+60>>2]=mn,ut[Xt+48>>2]=In,ut[Xt+52>>2]=Lt,ut[Xt+40>>2]=hn,ut[Xt+44>>2]=rn,ut[Xt+32>>2]=Wt,ut[Xt+36>>2]=Ct,ut[Xt+24>>2]=1595750129,ut[Xt+28>>2]=-1521486534,ut[Xt+16>>2]=-23791573,ut[Xt+20>>2]=1013904242,ut[Xt+8>>2]=-2067093701,ut[Xt+12>>2]=-1150833019,ut[Xt>>2]=-222443256^(ft<<8|_n),ut[Xt+4>>2]=ft>>>24^1779033703,ms((Wt=Xt+384|0)+ft|0,0,128-ft|0),ss(Wt,Ot,ft),ss(Xt+96|0,Wt,128),ut[Xt+352>>2]=128,Uo(Wt,128),ft=128}else Ct?(hn=725511199^(bt[Ct+8|0]|bt[Ct+9|0]<<8|bt[Ct+10|0]<<16|bt[Ct+11|0]<<24),rn=-1694144372^(bt[Ct+12|0]|bt[Ct+13|0]<<8|bt[Ct+14|0]<<16|bt[Ct+15|0]<<24),Ot=1359893119^(bt[Ct+4|0]|bt[Ct+5|0]<<8|bt[Ct+6|0]<<16|bt[Ct+7|0]<<24),ft=-1377402159^(bt[0|Ct]|bt[Ct+1|0]<<8|bt[Ct+2|0]<<16|bt[Ct+3|0]<<24)):(hn=725511199,rn=-1694144372,Ot=1359893119,ft=-1377402159),Lt?(un=327033209^(bt[Lt+8|0]|bt[Lt+9|0]<<8|bt[Lt+10|0]<<16|bt[Lt+11|0]<<24),mn=1541459225^(bt[Lt+12|0]|bt[Lt+13|0]<<8|bt[Lt+14|0]<<16|bt[Lt+15|0]<<24),Ct=528734635^(bt[Lt+4|0]|bt[Lt+5|0]<<8|bt[Lt+6|0]<<16|bt[Lt+7|0]<<24),Wt=-79577749^(bt[0|Lt]|bt[Lt+1|0]<<8|bt[Lt+2|0]<<16|bt[Lt+3|0]<<24)):(un=327033209,mn=1541459225,Ct=528734635,Wt=-79577749),ms(Xt- -64|0,0,293),ut[Xt+56>>2]=un,ut[Xt+60>>2]=mn,ut[Xt+48>>2]=Wt,ut[Xt+52>>2]=Ct,ut[Xt+40>>2]=hn,ut[Xt+44>>2]=rn,ut[Xt+32>>2]=ft,ut[Xt+36>>2]=Ot,ut[Xt+24>>2]=1595750129,ut[Xt+28>>2]=-1521486534,ut[Xt+16>>2]=-23791573,ut[Xt+20>>2]=1013904242,ut[Xt+8>>2]=-2067093701,ut[Xt+12>>2]=-1150833019,ut[Xt>>2]=-222443256^_n,ut[Xt+4>>2]=1779033703,ft=0;n:if(gt|_t)for(Lt=Xt+224|0,Ct=Xt+96|0;;){if(Wt=ft+Ct|0,!_t>>>>0<=(Ot=256-ft|0)>>>0){ss(Wt,pt,gt),ut[Xt+352>>2]=gt+ut[Xt+352>>2];break n}if(ss(Wt,pt,Ot),ut[Xt+352>>2]=Ot+ut[Xt+352>>2],hn=ft=ut[Xt+68>>2],ft=(rn=(Wt=ut[Xt+64>>2])+128|0)>>>0<128?ft+1|0:ft,ut[Xt+64>>2]=rn,ut[Xt+68>>2]=ft,ft=ut[Xt+76>>2],ft=(hn=Wt=(0|hn)==-1&Wt>>>0>4294967167)>>>0>(Wt=Wt+ut[Xt+72>>2]|0)>>>0?ft+1|0:ft,ut[Xt+72>>2]=Wt,ut[Xt+76>>2]=ft,Is(Xt,Ct),ss(Ct,Lt,128),ft=ut[Xt+352>>2]-128|0,ut[Xt+352>>2]=ft,pt=pt+Ot|0,!((_t=_t-(gt>>>0>>0)|0)|(gt=gt-Ot|0)))break}O0(Xt,At,_n),jn=On;break e}Fs(),Sr()}At=0}return At}function vA(At,ft){var pt,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0;pt=At+ft|0;e:{t:if(!(1&(gt=ut[At+4>>2]))){if(!(3>))break e;ft=(gt=ut[At>>2])+ft|0;n:{r:{i:{if((0|(At=At-gt|0))!=ut[9398]){if(gt>>>0<=255){if((0|(_t=ut[At+8>>2]))!=(0|(Ot=ut[At+12>>2])))break i;Lt=37572,Xt=ut[9393]&Nr(-2,gt>>>3|0),ut[Lt>>2]=Xt;break t}if(Ct=ut[At+24>>2],(0|(gt=ut[At+12>>2]))!=(0|At)){_t=ut[At+8>>2],ut[_t+12>>2]=gt,ut[gt+8>>2]=_t;break n}if(!(_t=ut[(Ot=At+20|0)>>2])){if(!(_t=ut[At+16>>2]))break r;Ot=At+16|0}for(;Wt=Ot,(_t=ut[(Ot=(gt=_t)+20|0)>>2])||(Ot=gt+16|0,_t=ut[gt+16>>2]););ut[Wt>>2]=0;break n}if((3&(gt=ut[pt+4>>2]))!=3)break t;return ut[9395]=ft,ut[pt+4>>2]=-2>,ut[At+4>>2]=1|ft,void(ut[pt>>2]=ft)}ut[_t+12>>2]=Ot,ut[Ot+8>>2]=_t;break t}gt=0}if(Ct){_t=ut[At+28>>2];n:{if(ut[(Ot=37876+(_t<<2)|0)>>2]==(0|At)){if(ut[Ot>>2]=gt,gt)break n;Lt=37576,Xt=ut[9394]&Nr(-2,_t),ut[Lt>>2]=Xt;break t}if(ut[Ct+(ut[Ct+16>>2]==(0|At)?16:20)>>2]=gt,!gt)break t}ut[gt+24>>2]=Ct,(_t=ut[At+16>>2])&&(ut[gt+16>>2]=_t,ut[_t+24>>2]=gt),(_t=ut[At+20>>2])&&(ut[gt+20>>2]=_t,ut[_t+24>>2]=gt)}}t:{n:{r:{i:{if(!(2&(gt=ut[pt+4>>2]))){if(ut[9399]==(0|pt)){if(ut[9399]=At,ft=ut[9396]+ft|0,ut[9396]=ft,ut[At+4>>2]=1|ft,ut[9398]!=(0|At))break e;return ut[9395]=0,void(ut[9398]=0)}if(ut[9398]==(0|pt))return ut[9398]=At,ft=ut[9395]+ft|0,ut[9395]=ft,ut[At+4>>2]=1|ft,void(ut[At+ft>>2]=ft);if(ft=(-8>)+ft|0,gt>>>0<=255){if(Ot=gt>>>3|0,(0|(gt=ut[pt+12>>2]))==(0|(_t=ut[pt+8>>2]))){Lt=37572,Xt=ut[9393]&Nr(-2,Ot),ut[Lt>>2]=Xt;break n}ut[_t+12>>2]=gt,ut[gt+8>>2]=_t;break n}if(Ct=ut[pt+24>>2],(0|pt)!=(0|(gt=ut[pt+12>>2]))){_t=ut[pt+8>>2],ut[_t+12>>2]=gt,ut[gt+8>>2]=_t;break r}if(!(_t=ut[(Ot=pt+20|0)>>2])){if(!(_t=ut[pt+16>>2]))break i;Ot=pt+16|0}for(;Wt=Ot,(_t=ut[(Ot=(gt=_t)+20|0)>>2])||(Ot=gt+16|0,_t=ut[gt+16>>2]););ut[Wt>>2]=0;break r}ut[pt+4>>2]=-2>,ut[At+4>>2]=1|ft,ut[At+ft>>2]=ft;break t}gt=0}if(Ct){_t=ut[pt+28>>2];r:{if(ut[(Ot=37876+(_t<<2)|0)>>2]==(0|pt)){if(ut[Ot>>2]=gt,gt)break r;Lt=37576,Xt=ut[9394]&Nr(-2,_t),ut[Lt>>2]=Xt;break n}if(ut[Ct+(ut[Ct+16>>2]==(0|pt)?16:20)>>2]=gt,!gt)break n}ut[gt+24>>2]=Ct,(_t=ut[pt+16>>2])&&(ut[gt+16>>2]=_t,ut[_t+24>>2]=gt),(_t=ut[pt+20>>2])&&(ut[gt+20>>2]=_t,ut[_t+24>>2]=gt)}}if(ut[At+4>>2]=1|ft,ut[At+ft>>2]=ft,ut[9398]==(0|At))return void(ut[9395]=ft)}if(ft>>>0<=255)return gt=37612+(-8&ft)|0,(_t=ut[9393])&(ft=1<<(ft>>>3))?ft=ut[gt+8>>2]:(ut[9393]=ft|_t,ft=gt),ut[gt+8>>2]=At,ut[ft+12>>2]=At,ut[At+12>>2]=gt,void(ut[At+8>>2]=ft);_t=31,ft>>>0<=16777215&&(_t=62+((ft>>>38-(gt=Io(ft>>>8|0))&1)-(gt<<1)|0)|0),ut[At+28>>2]=_t,ut[At+16>>2]=0,ut[At+20>>2]=0,gt=37876+(_t<<2)|0;t:{if((Ot=ut[9394])&(Wt=1<<_t)){for(_t=ft<<((0|_t)!=31?25-(_t>>>1|0)|0:0),gt=ut[gt>>2];;){if(Ot=gt,(-8&ut[gt+4>>2])==(0|ft))break t;if(Wt=_t>>>29|0,_t<<=1,!(gt=ut[16+(Wt=gt+(4&Wt)|0)>>2]))break}ut[Wt+16>>2]=At,ut[At+24>>2]=Ot}else ut[9394]=Ot|Wt,ut[gt>>2]=At,ut[At+24>>2]=gt;return ut[At+12>>2]=At,void(ut[At+8>>2]=At)}ft=ut[Ot+8>>2],ut[ft+12>>2]=At,ut[Ot+8>>2]=At,ut[At+24>>2]=0,ut[At+12>>2]=Ot,ut[At+8>>2]=ft}}function IA(At,ft,pt,gt,_t,Ot,Wt){var Ct,Lt,Xt=0,hn=0,rn=0;if(jn=Ct=jn+-64|0,Lt=Ds(32)){ut[Ct+36>>2]=0,ut[Ct+40>>2]=0,ut[Ct+28>>2]=0,ut[Ct+32>>2]=0,ut[Ct+24>>2]=16,ut[Ct+20>>2]=_t,ut[Ct+16>>2]=gt,ut[Ct+12>>2]=pt,ut[Ct+8>>2]=32,ut[Ct+4>>2]=Lt,ut[Ct+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|0]=49,Ft[_t+12|0]=57,(pt=pt+128|0)>>>0<=(At=$u(_t+11|0))>>>0)At=-31;else if(ft=ss(ft+Ot|0,_t+11|0,At+1|0),(hn=pt-At|0)>>>0<4)At=-31;else{for(Ft[0|(Wt=At+ft|0)]=36,Ft[Wt+1|0]=109,Ft[Wt+2|0]=61,Ft[Wt+3|0]=0,At=ut[Xt+44>>2],ft=10;pt=ft,gt=(At>>>0)/10|0,Ft[0|(rn=(ft=ft-1|0)+(_t+22|0)|0)]=At-vo(gt,10)|48,!(At>>>0<10)&&(At=gt,ft););if(ss(At=_t+11|0,rn,ft=11-pt|0),Ft[At+ft|0]=0,(ft=hn-3|0)>>>0<=(At=$u(At))>>>0)At=-31;else if(pt=ss(Wt+3|0,_t+11|0,At+1|0),(hn=ft-At|0)>>>0<4)At=-31;else{for(Ft[0|(Wt=At+pt|0)]=44,Ft[Wt+1|0]=116,Ft[Wt+2|0]=61,Ft[Wt+3|0]=0,At=ut[Xt+40>>2],ft=10;pt=ft,gt=(At>>>0)/10|0,Ft[0|(rn=(ft=ft-1|0)+(_t+22|0)|0)]=At-vo(gt,10)|48,!(At>>>0<10)&&(At=gt,ft););if(ss(At=_t+11|0,rn,ft=11-pt|0),Ft[At+ft|0]=0,(ft=hn-3|0)>>>0<=(At=$u(At))>>>0)At=-31;else if(pt=ss(Wt+3|0,_t+11|0,At+1|0),(hn=ft-At|0)>>>0<4)At=-31;else{for(Ft[0|(Wt=At+pt|0)]=44,Ft[Wt+1|0]=112,Ft[Wt+2|0]=61,Ft[Wt+3|0]=0,At=ut[Xt+48>>2],ft=10;pt=ft,gt=(At>>>0)/10|0,Ft[0|(rn=(ft=ft-1|0)+(_t+22|0)|0)]=At-vo(gt,10)|48,!(At>>>0<10)&&(At=gt,ft););ss(At=_t+11|0,rn,ft=11-pt|0),Ft[At+ft|0]=0,(ft=hn-3|0)>>>0<=(At=$u(At))>>>0?At=-31:(pt=ss(Wt+3|0,_t+11|0,At+1|0),(gt=ft-At|0)>>>0<2?At=-31:(Ft[0|(At=At+pt|0)]=36,Ft[At+1|0]=0,H0(ft=At+1|0,pt=gt-1|0,ut[Xt+16>>2],ut[Xt+20>>2],3)?(At=-31,(gt=(gt=pt)-(pt=$u(ft))|0)>>>0<2||(Ft[0|(At=ft+pt|0)]=36,Ft[At+1|0]=0,At=H0(At+1|0,gt-1|0,ut[Xt>>2],ut[Xt+4>>2],3)?0:-31)):At=-31))}}}}if(jn=_t+32|0,At){Uo(Lt,32),Uo(Ot,128),At=-31;break e}}Uo(Lt,32),At=0}_d(Lt)}else At=-22;return jn=Ct- -64|0,At}function Il(At,ft){var pt,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0;return jn=pt=jn-512|0,gt=-1,Ot=bt[ft+31|0],_t=bt[0|ft],1&(((255&(127&(-1^Ot)|bt[ft+1|0]&bt[ft+2|0]&bt[ft+3|0]&bt[ft+4|0]&bt[ft+5|0]&bt[ft+6|0]&bt[ft+7|0]&bt[ft+8|0]&bt[ft+9|0]&bt[ft+10|0]&bt[ft+11|0]&bt[ft+12|0]&bt[ft+13|0]&bt[ft+14|0]&bt[ft+15|0]&bt[ft+16|0]&bt[ft+17|0]&bt[ft+18|0]&bt[ft+19|0]&bt[ft+20|0]&bt[ft+21|0]&bt[ft+22|0]&bt[ft+23|0]&bt[ft+24|0]&bt[ft+25|0]&bt[ft+26|0]&bt[ft+27|0]&bt[ft+28|0]&bt[ft+29|0]&bt[ft+30|0]^-1))-1&236-_t)>>>8|_t|Ot>>>7)||(Al(Ot=pt+336|0,ft),cr(pt+288|0,Ot),ft=ut[pt+324>>2],ut[pt+276>>2]=0-ft,gt=ut[pt+320>>2],ut[pt+272>>2]=0-gt,_t=ut[pt+316>>2],ut[pt+268>>2]=0-_t,Wt=ut[pt+312>>2],ut[pt+264>>2]=0-Wt,Ct=ut[pt+308>>2],ut[pt+260>>2]=0-Ct,Lt=ut[pt+304>>2],ut[pt+256>>2]=0-Lt,Xt=ut[pt+300>>2],ut[pt+252>>2]=0-Xt,hn=ut[pt+296>>2],ut[pt+248>>2]=0-hn,rn=ut[pt+292>>2],ut[pt+244>>2]=0-rn,un=ut[pt+288>>2],ut[pt+240>>2]=1-un,cr(mn=pt+144|0,On=pt+240|0),ut[pt+228>>2]=ft,ut[pt+224>>2]=gt,ut[pt+220>>2]=_t,ut[pt+216>>2]=Wt,ut[pt+212>>2]=Ct,ut[pt+208>>2]=Lt,ut[pt+204>>2]=Xt,ut[pt+200>>2]=hn,ut[pt+196>>2]=rn,ut[pt+192>>2]=un+1,cr(gt=pt+96|0,Wt=pt+192|0),$r(ft=pt+48|0,1600,mn),_t=ut[pt+96>>2],Ct=ut[pt+48>>2],Lt=ut[pt+100>>2],Xt=ut[pt+52>>2],hn=ut[pt+104>>2],rn=ut[pt+56>>2],un=ut[pt+108>>2],mn=ut[pt+60>>2],_n=ut[pt+112>>2],In=ut[pt+64>>2],Cn=ut[pt+116>>2],Qn=ut[pt+68>>2],Hn=ut[pt+120>>2],Gn=ut[pt+72>>2],er=ut[pt+124>>2],ar=ut[pt+76>>2],ur=ut[pt+128>>2],Ln=ut[pt+80>>2],ut[pt+84>>2]=0-(ut[pt+84>>2]+ut[pt+132>>2]|0),ut[pt+80>>2]=0-(ur+Ln|0),ut[pt+76>>2]=0-(er+ar|0),ut[pt+72>>2]=0-(Hn+Gn|0),ut[pt+68>>2]=0-(Cn+Qn|0),ut[pt+64>>2]=0-(_n+In|0),ut[pt+60>>2]=0-(un+mn|0),ut[pt+56>>2]=0-(hn+rn|0),ut[pt+52>>2]=0-(Lt+Xt|0),ut[pt+48>>2]=0-(_t+Ct|0),$r(pt,ft,gt),ut[pt+404>>2]=0,ut[pt+408>>2]=0,ut[pt+412>>2]=0,ut[pt+416>>2]=0,ut[pt+420>>2]=0,ut[pt+388>>2]=0,ut[pt+392>>2]=0,ut[pt+384>>2]=1,ut[pt+396>>2]=0,ut[pt+400>>2]=0,In=U0(_t=pt+432|0,pt+384|0,pt),$r(At,_t,Wt),$r(gt=At+40|0,_t,At),$r(gt,gt,ft),$r(At,At,Ot),Ot=ut[At+36>>2]<<1,ut[At+36>>2]=Ot,_t=ut[At+32>>2]<<1,ut[At+32>>2]=_t,Wt=ut[At+28>>2]<<1,ut[At+28>>2]=Wt,Ct=ut[At+24>>2]<<1,ut[At+24>>2]=Ct,Lt=ut[At+20>>2]<<1,ut[At+20>>2]=Lt,Xt=ut[At+16>>2]<<1,ut[At+16>>2]=Xt,hn=ut[At+12>>2]<<1,ut[At+12>>2]=hn,rn=ut[At+8>>2]<<1,ut[At+8>>2]=rn,un=ut[At+4>>2]<<1,ut[At+4>>2]=un,mn=ut[At>>2]<<1,ut[At>>2]=mn,sr(_n=pt+480|0,At),ft=0-(1&Ft[pt+480|0])|0,ut[At+36>>2]=Ot^ft&(Ot^0-Ot),ut[At+32>>2]=_t^ft&(_t^0-_t),ut[At+28>>2]=Wt^ft&(Wt^0-Wt),ut[At+24>>2]=Ct^ft&(Ct^0-Ct),ut[At+20>>2]=Lt^ft&(Lt^0-Lt),ut[At+16>>2]=Xt^ft&(Xt^0-Xt),ut[At+12>>2]=hn^ft&(hn^0-hn),ut[At+8>>2]=rn^ft&(rn^0-rn),ut[At+4>>2]=un^ft&(un^0-un),ut[At>>2]=mn^ft&(mn^0-mn),$r(gt,On,gt),ut[At+84>>2]=0,ut[At+88>>2]=0,ut[At+80>>2]=1,ut[At+92>>2]=0,ut[At+96>>2]=0,ut[At+100>>2]=0,ut[At+104>>2]=0,ut[At+108>>2]=0,ut[At+112>>2]=0,ut[At+116>>2]=0,$r(ft=At+120|0,At,gt),sr(_n,ft),At=bt[pt+480|0],sr(_n,gt),gt=0-(gu(_n,32)|1-In|1&At)|0),jn=pt+512|0,gt}function $0(At,ft,pt,gt){var _t,Ot=0,Wt=0;_t=Ot=jn,jn=Ot=Ot-576&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ft[At+22|0]=pt>>>16,Ft[At+23|0]=pt>>>24,At=At+32|0,!((ft=ft-32|0)>>>0>64))break}pt=ut[Ot+172>>2],ut[Ot+104>>2]=ut[Ot+168>>2],ut[Ot+108>>2]=pt,pt=ut[Ot+164>>2],ut[Ot+96>>2]=ut[Ot+160>>2],ut[Ot+100>>2]=pt,pt=ut[Ot+156>>2],ut[Ot+88>>2]=ut[Ot+152>>2],ut[Ot+92>>2]=pt,pt=ut[Ot+148>>2],ut[Ot+80>>2]=ut[Ot+144>>2],ut[Ot+84>>2]=pt,pt=ut[Ot+140>>2],ut[Ot+72>>2]=ut[Ot+136>>2],ut[Ot+76>>2]=pt,gt=ut[Ot+132>>2],ut[(pt=Ot- -64|0)>>2]=ut[Ot+128>>2],ut[pt+4>>2]=gt,pt=ut[Ot+124>>2],ut[Ot+56>>2]=ut[Ot+120>>2],ut[Ot+60>>2]=pt,pt=ut[Ot+116>>2],ut[Ot+48>>2]=ut[Ot+112>>2],ut[Ot+52>>2]=pt,(0|L0(pt=Ot+112|0,ft,Ot+48|0,64,0,0,0))<0||ss(At,pt,ft)}Uo(Ot+192|0,384),jn=_t}function wA(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){var rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0;if(rn=Sn(Lt,0,Ct,0),!(un=ln)&rn>>>0>=1073741824|un||(0|Wt)==1|Wt>>>0>1)return ut[9392]=22,-1;for(rn=Ot,_n=Wt;rn|_n;)un=rn,rn&=rn-1,_n&=_n-!un,In=(On=On+1|0)?In:In+1|0;if(!(!(ln=In)&On>>>0<2&(!Wt&Ot>>>0>=2|(0|Wt)!=0))||!Lt||!Ct)return ut[9392]=28,-1;if(!(33554431/(Lt>>>0)>>>0>>0|Ct>>>0>16777215)&!Wt&Ot>>>0<=33554431/(Ct>>>0)>>>0&&!((Hn=vo(Qn=Ct<<7,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>>2]=bt[pt+24|0]|bt[pt+25|0]<<8|bt[pt+26|0]<<16|bt[pt+27|0]<<24,ut[gt+28>>2]=ft,ft=bt[pt+4|0]|bt[pt+5|0]<<8|bt[pt+6|0]<<16|bt[pt+7|0]<<24,ut[gt>>2]=bt[0|pt]|bt[pt+1|0]<<8|bt[pt+2|0]<<16|bt[pt+3|0]<<24,ut[gt+4>>2]=ft,ft=bt[pt+12|0]|bt[pt+13|0]<<8|bt[pt+14|0]<<16|bt[pt+15|0]<<24,ut[gt+8>>2]=bt[pt+8|0]|bt[pt+9|0]<<8|bt[pt+10|0]<<16|bt[pt+11|0]<<24,ut[gt+12>>2]=ft,r1(gt- -64|0,gt),pt=ut[gt+124>>2],ut[gt+184>>2]=ut[gt+120>>2],ut[gt+188>>2]=pt,ft=ut[gt+116>>2],ut[gt+176>>2]=ut[gt+112>>2],ut[gt+180>>2]=ft,ft=ut[gt+108>>2],ut[gt+168>>2]=ut[gt+104>>2],ut[gt+172>>2]=ft,ft=ut[gt+100>>2],ut[gt+160>>2]=ut[gt+96>>2],ut[gt+164>>2]=ft,ft=ut[gt+92>>2],ut[gt+152>>2]=ut[gt+88>>2],ut[gt+156>>2]=ft,ft=ut[gt+84>>2],ut[gt+144>>2]=ut[gt+80>>2],ut[gt+148>>2]=ft,ft=ut[gt+76>>2],ut[gt+136>>2]=ut[gt+72>>2],ut[gt+140>>2]=ft,ft=ut[gt+68>>2],ut[gt+128>>2]=ut[gt+64>>2],ut[gt+132>>2]=ft,Ns(ft=gt+128|0),Wt=ut[gt+156>>2],pt=ut[gt+152>>2],Ft[At+24|0]=pt,Ft[At+25|0]=pt>>>8,Ft[At+26|0]=pt>>>16,Ft[At+27|0]=pt>>>24,Ft[At+28|0]=Wt,Ft[At+29|0]=Wt>>>8,Ft[At+30|0]=Wt>>>16,Ft[At+31|0]=Wt>>>24,Wt=ut[gt+148>>2],pt=ut[gt+144>>2],Ft[At+16|0]=pt,Ft[At+17|0]=pt>>>8,Ft[At+18|0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,0,ar,0),_t=ln+_t|0,_t=(Wt=hn+Wt|0)>>>0>>0?_t+1|0:_t,hn=Sn(_n,0,zn,0),Ot=ln+_t|0,Ot=(Wt=hn+Wt|0)>>>0>>0?Ot+1|0:Ot,hn=Wt,_t=Xt,_t=(Wt=(mn=(67108863&Ot)<<6|Wt>>>26)+In|0)>>>0>>0?_t+1|0:_t,mn=Wt,un=(67108863&_t)<<6|Wt>>>26,_t=Ct,_t=(Wt=un+lr|0)>>>0>>0?_t+1|0:_t,un=Wt,Ot=Lt,_n=_t=(Wt=(67108863&_t)<<6|Wt>>>26)+Cr|0,Lt=(67108863&(Ot=_t>>>0>>0?Ot+1|0:Ot))<<6|_t>>>26,_t=rn,hn=(67108863&mn)+((_t=vo((67108863&((Wt=Lt+or|0)>>>0>>0?_t+1|0:_t))<<6|Wt>>>26,5)+(67108863&hn)|0)>>>26|0)|0,mn=67108863&un,un=67108863&_n,_n=67108863&Wt,rn=67108863&_t,ft=ft+16|0,!(gt=gt-(pt>>>0<16)|0)&(pt=pt-16|0)>>>0>15|gt;);ut[At+20>>2]=rn,ut[At+36>>2]=_n,ut[At+32>>2]=un,ut[At+28>>2]=mn,ut[At+24>>2]=hn}function Fl(At,ft,pt,gt){At|=0,ft|=0;var _t=0;return _t=-1,(gt|=0)-65>>>0<4294967232|(pt|=0)>>>0>64||(pt&&ft?(jn=_t=jn-128|0,!ft|((gt&=255)-65&255)>>>0<=191|((pt&=255)-65&255)>>>0<=191?(Fs(),Sr()):(ms(At- -64|0,0,293),Ft[At+56|0]=121,Ft[At+57|0]=33,Ft[At+58|0]=126,Ft[At+59|0]=19,Ft[At+60|0]=25,Ft[At+61|0]=205,Ft[At+62|0]=224,Ft[At+63|0]=91,Ft[At+48|0]=107,Ft[At+49|0]=189,Ft[At+50|0]=65,Ft[At+51|0]=251,Ft[At+52|0]=171,Ft[At+53|0]=217,Ft[At+54|0]=131,Ft[At+55|0]=31,Ft[At+40|0]=31,Ft[At+41|0]=108,Ft[At+42|0]=62,Ft[At+43|0]=43,Ft[At+44|0]=140,Ft[At+45|0]=104,Ft[At+46|0]=5,Ft[At+47|0]=155,Ft[At+32|0]=209,Ft[At+33|0]=130,Ft[At+34|0]=230,Ft[At+35|0]=173,Ft[At+36|0]=127,Ft[At+37|0]=82,Ft[At+38|0]=14,Ft[At+39|0]=81,Ft[At+24|0]=241,Ft[At+25|0]=54,Ft[At+26|0]=29,Ft[At+27|0]=95,Ft[At+28|0]=58,Ft[At+29|0]=245,Ft[At+30|0]=79,Ft[At+31|0]=165,Ft[At+16|0]=43,Ft[At+17|0]=248,Ft[At+18|0]=148,Ft[At+19|0]=254,Ft[At+20|0]=114,Ft[At+21|0]=243,Ft[At+22|0]=110,Ft[At+23|0]=60,Ft[At+8|0]=59,Ft[At+9|0]=167,Ft[At+10|0]=202,Ft[At+11|0]=132,Ft[At+12|0]=133,Ft[At+13|0]=174,Ft[At+14|0]=103,Ft[At+15|0]=187,gt=-222443256^(pt<<8|gt),Ft[0|At]=gt,Ft[At+1|0]=gt>>>8,Ft[At+2|0]=gt>>>16,Ft[At+3|0]=gt>>>24,gt=pt>>>24^1779033703,Ft[At+4|0]=gt,Ft[At+5|0]=gt>>>8,Ft[At+6|0]=gt>>>16,Ft[At+7|0]=gt>>>24,ms(pt+_t|0,0,pt<<24>>24>=0?128-pt|0:0),pt=ss(_t,ft,pt),ss(At+96|0,pt,128),ft=128+(bt[At+352|0]|bt[At+353|0]<<8|bt[At+354|0]<<16|bt[At+355|0]<<24)|0,Ft[At+352|0]=ft,Ft[At+353|0]=ft>>>8,Ft[At+354|0]=ft>>>16,Ft[At+355|0]=ft>>>24,Uo(pt,128),jn=pt+128|0)):(((ft=255>)-65&255)>>>0<=191&&(Fs(),Sr()),ms(At- -64|0,0,293),Ft[At+56|0]=121,Ft[At+57|0]=33,Ft[At+58|0]=126,Ft[At+59|0]=19,Ft[At+60|0]=25,Ft[At+61|0]=205,Ft[At+62|0]=224,Ft[At+63|0]=91,Ft[At+48|0]=107,Ft[At+49|0]=189,Ft[At+50|0]=65,Ft[At+51|0]=251,Ft[At+52|0]=171,Ft[At+53|0]=217,Ft[At+54|0]=131,Ft[At+55|0]=31,Ft[At+40|0]=31,Ft[At+41|0]=108,Ft[At+42|0]=62,Ft[At+43|0]=43,Ft[At+44|0]=140,Ft[At+45|0]=104,Ft[At+46|0]=5,Ft[At+47|0]=155,Ft[At+32|0]=209,Ft[At+33|0]=130,Ft[At+34|0]=230,Ft[At+35|0]=173,Ft[At+36|0]=127,Ft[At+37|0]=82,Ft[At+38|0]=14,Ft[At+39|0]=81,Ft[At+24|0]=241,Ft[At+25|0]=54,Ft[At+26|0]=29,Ft[At+27|0]=95,Ft[At+28|0]=58,Ft[At+29|0]=245,Ft[At+30|0]=79,Ft[At+31|0]=165,Ft[At+16|0]=43,Ft[At+17|0]=248,Ft[At+18|0]=148,Ft[At+19|0]=254,Ft[At+20|0]=114,Ft[At+21|0]=243,Ft[At+22|0]=110,Ft[At+23|0]=60,Ft[At+8|0]=59,Ft[At+9|0]=167,Ft[At+10|0]=202,Ft[At+11|0]=132,Ft[At+12|0]=133,Ft[At+13|0]=174,Ft[At+14|0]=103,Ft[At+15|0]=187,ft^=-222443256,Ft[0|At]=ft,Ft[At+1|0]=ft>>>8,Ft[At+2|0]=ft>>>16,Ft[At+3|0]=ft>>>24,Ft[At+4|0]=103,Ft[At+5|0]=230,Ft[At+6|0]=9,Ft[At+7|0]=106),_t=0),0|_t}function yu(At,ft,pt,gt){At|=0,ft|=0,pt|=0;var _t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0;for((gt|=0)?(Ot=bt[gt+8|0]|bt[gt+9|0]<<8|bt[gt+10|0]<<16|bt[gt+11|0]<<24,Wt=bt[gt+4|0]|bt[gt+5|0]<<8|bt[gt+6|0]<<16|bt[gt+7|0]<<24,_t=bt[0|gt]|bt[gt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r=ut[ft>>2],ut[At+76>>2]=ut[ft+76>>2]-ut[ft+36>>2],ut[At+72>>2]=Dr-Pr,ut[At+68>>2]=lr-In,ut[(In=At- -64|0)>>2]=On-Cr,ut[At+60>>2]=or-zn,ut[At+56>>2]=Ln-ur,ut[At+52>>2]=ar-er,ut[At+48>>2]=Gn-Hn,ut[At+44>>2]=Qn-_n,ut[(_n=At+40|0)>>2]=Cn-Fr,$r(At+80|0,At,pt),$r(_n,_n,pt+40|0),$r(At+120|0,pt+120|0,ft+120|0),$r(At,ft+80|0,pt+80|0),qr=ut[At+4>>2],Ot=ut[At+8>>2],Wt=ut[At+12>>2],Ct=ut[At+16>>2],Lt=ut[At+20>>2],Xt=ut[At+24>>2],hn=ut[At+28>>2],rn=ut[At+32>>2],un=ut[At+36>>2],ft=ut[_n>>2],pt=ut[At+80>>2],Cn=ut[At+44>>2],Qn=ut[At+84>>2],Hn=ut[At+48>>2],Gn=ut[At+88>>2],er=ut[At+52>>2],ar=ut[At+92>>2],ur=ut[At+56>>2],Ln=ut[At+96>>2],zn=ut[At+60>>2],or=ut[At+100>>2],On=ut[In>>2],Cr=ut[At+104>>2],lr=ut[At+68>>2],Pr=ut[At+108>>2],Dr=ut[At+72>>2],Fr=ut[At+112>>2],mn=ut[At>>2],gt=ut[At+76>>2],_t=ut[At+116>>2],ut[At+76>>2]=gt+_t,ut[At+72>>2]=Dr+Fr,ut[At+68>>2]=lr+Pr,ut[In>>2]=On+Cr,ut[At+60>>2]=zn+or,ut[At+56>>2]=ur+Ln,ut[At+52>>2]=er+ar,ut[At+48>>2]=Hn+Gn,ut[At+44>>2]=Cn+Qn,ut[_n>>2]=ft+pt,ut[At+36>>2]=_t-gt,ut[At+32>>2]=Fr-Dr,ut[At+28>>2]=Pr-lr,ut[At+24>>2]=Cr-On,ut[At+20>>2]=or-zn,ut[At+16>>2]=Ln-ur,ut[At+12>>2]=ar-er,ut[At+8>>2]=Gn-Hn,ut[At+4>>2]=Qn-Cn,ut[At>>2]=pt-ft,ft=un<<1,pt=ut[At+156>>2],ut[At+156>>2]=ft-pt,_n=rn<<1,In=ut[At+152>>2],ut[At+152>>2]=_n-In,Cn=hn<<1,Qn=ut[At+148>>2],ut[At+148>>2]=Cn-Qn,Hn=Xt<<1,Gn=ut[At+144>>2],ut[At+144>>2]=Hn-Gn,er=Lt<<1,ar=ut[At+140>>2],ut[At+140>>2]=er-ar,ur=Ct<<1,Ln=ut[At+136>>2],ut[At+136>>2]=ur-Ln,zn=Wt<<1,or=ut[At+132>>2],ut[At+132>>2]=zn-or,On=Ot<<1,Cr=ut[At+128>>2],ut[At+128>>2]=On-Cr,lr=qr<<1,Pr=ut[At+124>>2],ut[At+124>>2]=lr-Pr,Dr=mn<<1,Fr=ut[At+120>>2],ut[At+120>>2]=Dr-Fr,ut[At+112>>2]=_n+In,ut[At+108>>2]=Cn+Qn,ut[At+104>>2]=Hn+Gn,ut[At+100>>2]=er+ar,ut[At+96>>2]=ur+Ln,ut[At+92>>2]=zn+or,ut[At+88>>2]=On+Cr,ut[At+84>>2]=lr+Pr,ut[At+80>>2]=Dr+Fr,ut[At+116>>2]=ft+pt}function u0(At,ft,pt){var gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0,lr=0,Pr=0,Dr=0,Fr=0,qr=0;_n=ut[ft+40>>2],In=ut[ft+4>>2],Cn=ut[ft+44>>2],Qn=ut[ft+8>>2],Hn=ut[ft+48>>2],Gn=ut[ft+12>>2],er=ut[ft+52>>2],ar=ut[ft+16>>2],ur=ut[ft+56>>2],Ln=ut[ft+20>>2],zn=ut[ft+60>>2],or=ut[ft+24>>2],Cr=ut[(On=ft- -64|0)>>2],lr=ut[ft+28>>2],Pr=ut[ft+68>>2],Dr=ut[ft+32>>2],Fr=ut[ft+72>>2],qr=ut[ft>>2],ut[At+36>>2]=ut[ft+36>>2]+ut[ft+76>>2],ut[At+32>>2]=Dr+Fr,ut[At+28>>2]=lr+Pr,ut[At+24>>2]=or+Cr,ut[At+20>>2]=Ln+zn,ut[At+16>>2]=ar+ur,ut[At+12>>2]=Gn+er,ut[At+8>>2]=Qn+Hn,ut[At+4>>2]=In+Cn,ut[At>>2]=_n+qr,Cn=ut[ft+40>>2],_n=ut[ft+4>>2],Qn=ut[ft+44>>2],Hn=ut[ft+8>>2],Gn=ut[ft+48>>2],er=ut[ft+12>>2],ar=ut[ft+52>>2],ur=ut[ft+16>>2],Ln=ut[ft+56>>2],zn=ut[ft+20>>2],or=ut[ft+60>>2],Cr=ut[ft+24>>2],On=ut[On>>2],In=ut[ft+28>>2],lr=ut[ft+68>>2],Pr=ut[ft+32>>2],Dr=ut[ft+72>>2],Fr=ut[ft>>2],ut[At+76>>2]=ut[ft+76>>2]-ut[ft+36>>2],ut[At+72>>2]=Dr-Pr,ut[At+68>>2]=lr-In,ut[(In=At- -64|0)>>2]=On-Cr,ut[At+60>>2]=or-zn,ut[At+56>>2]=Ln-ur,ut[At+52>>2]=ar-er,ut[At+48>>2]=Gn-Hn,ut[At+44>>2]=Qn-_n,ut[(_n=At+40|0)>>2]=Cn-Fr,$r(At+80|0,At,pt+40|0),$r(_n,_n,pt),$r(At+120|0,pt+120|0,ft+120|0),$r(At,ft+80|0,pt+80|0),qr=ut[At+4>>2],Ot=ut[At+8>>2],Wt=ut[At+12>>2],Ct=ut[At+16>>2],Lt=ut[At+20>>2],Xt=ut[At+24>>2],hn=ut[At+28>>2],rn=ut[At+32>>2],un=ut[At+36>>2],ft=ut[_n>>2],pt=ut[At+80>>2],Cn=ut[At+44>>2],Qn=ut[At+84>>2],Hn=ut[At+48>>2],Gn=ut[At+88>>2],er=ut[At+52>>2],ar=ut[At+92>>2],ur=ut[At+56>>2],Ln=ut[At+96>>2],zn=ut[At+60>>2],or=ut[At+100>>2],On=ut[In>>2],Cr=ut[At+104>>2],lr=ut[At+68>>2],Pr=ut[At+108>>2],Dr=ut[At+72>>2],Fr=ut[At+112>>2],mn=ut[At>>2],gt=ut[At+76>>2],_t=ut[At+116>>2],ut[At+76>>2]=gt+_t,ut[At+72>>2]=Dr+Fr,ut[At+68>>2]=lr+Pr,ut[In>>2]=On+Cr,ut[At+60>>2]=zn+or,ut[At+56>>2]=ur+Ln,ut[At+52>>2]=er+ar,ut[At+48>>2]=Hn+Gn,ut[At+44>>2]=Cn+Qn,ut[_n>>2]=ft+pt,ut[At+36>>2]=_t-gt,ut[At+32>>2]=Fr-Dr,ut[At+28>>2]=Pr-lr,ut[At+24>>2]=Cr-On,ut[At+20>>2]=or-zn,ut[At+16>>2]=Ln-ur,ut[At+12>>2]=ar-er,ut[At+8>>2]=Gn-Hn,ut[At+4>>2]=Qn-Cn,ut[At>>2]=pt-ft,ft=ut[At+156>>2],pt=un<<1,ut[At+156>>2]=ft+pt,_n=ut[At+152>>2],In=rn<<1,ut[At+152>>2]=_n+In,Cn=ut[At+148>>2],Qn=hn<<1,ut[At+148>>2]=Cn+Qn,Hn=ut[At+144>>2],Gn=Xt<<1,ut[At+144>>2]=Hn+Gn,er=ut[At+140>>2],ar=Lt<<1,ut[At+140>>2]=er+ar,ur=ut[At+136>>2],Ln=Ct<<1,ut[At+136>>2]=ur+Ln,zn=ut[At+132>>2],or=Wt<<1,ut[At+132>>2]=zn+or,On=ut[At+128>>2],Cr=Ot<<1,ut[At+128>>2]=On+Cr,lr=ut[At+124>>2],Pr=qr<<1,ut[At+124>>2]=lr+Pr,Dr=ut[At+120>>2],Fr=mn<<1,ut[At+120>>2]=Dr+Fr,ut[At+112>>2]=In-_n,ut[At+108>>2]=Qn-Cn,ut[At+104>>2]=Gn-Hn,ut[At+100>>2]=ar-er,ut[At+96>>2]=Ln-ur,ut[At+92>>2]=or-zn,ut[At+88>>2]=Cr-On,ut[At+84>>2]=Pr-lr,ut[At+80>>2]=Fr-Dr,ut[At+116>>2]=pt-ft}function M0(At,ft,pt){var gt,_t,Ot,Wt,Ct,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cn-Fr,$r(At+80|0,At,pt),$r(_n,_n,pt+40|0),$r(At+120|0,pt+80|0,ft+120|0),qr=ut[ft+80>>2],Ot=ut[ft+84>>2],Wt=ut[ft+88>>2],Ct=ut[ft+92>>2],Lt=ut[ft+96>>2],Xt=ut[ft+100>>2],hn=ut[ft+104>>2],rn=ut[ft+108>>2],un=ut[ft+112>>2],mn=ut[ft+116>>2],ft=ut[_n>>2],pt=ut[At+80>>2],Cn=ut[At+44>>2],Qn=ut[At+84>>2],Hn=ut[At+48>>2],Gn=ut[At+88>>2],er=ut[At+52>>2],ar=ut[At+92>>2],ur=ut[At+56>>2],Ln=ut[At+96>>2],zn=ut[At+60>>2],or=ut[At+100>>2],On=ut[In>>2],Cr=ut[At+104>>2],lr=ut[At+68>>2],Pr=ut[At+108>>2],Dr=ut[At+72>>2],Fr=ut[At+112>>2],gt=ut[At+76>>2],_t=ut[At+116>>2],ut[At+76>>2]=gt+_t,ut[At+72>>2]=Dr+Fr,ut[At+68>>2]=lr+Pr,ut[In>>2]=On+Cr,ut[At+60>>2]=zn+or,ut[At+56>>2]=ur+Ln,ut[At+52>>2]=er+ar,ut[At+48>>2]=Hn+Gn,ut[At+44>>2]=Cn+Qn,ut[_n>>2]=ft+pt,ut[At+36>>2]=_t-gt,ut[At+32>>2]=Fr-Dr,ut[At+28>>2]=Pr-lr,ut[At+24>>2]=Cr-On,ut[At+20>>2]=or-zn,ut[At+16>>2]=Ln-ur,ut[At+12>>2]=ar-er,ut[At+8>>2]=Gn-Hn,ut[At+4>>2]=Qn-Cn,ut[At>>2]=pt-ft,ft=mn<<1,pt=ut[At+156>>2],ut[At+156>>2]=ft-pt,_n=un<<1,In=ut[At+152>>2],ut[At+152>>2]=_n-In,Cn=rn<<1,Qn=ut[At+148>>2],ut[At+148>>2]=Cn-Qn,Hn=hn<<1,Gn=ut[At+144>>2],ut[At+144>>2]=Hn-Gn,er=Xt<<1,ar=ut[At+140>>2],ut[At+140>>2]=er-ar,ur=Lt<<1,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=On,On=(33554431&(ft=(Ln=mn+16777216|0)>>>0<16777216?1:ft))<<7|Ln>>>25,ft=(ft>>>25|0)+Cn|0,On=(Cn=Gn=Gn+On|0)>>>0>>0?ft+1|0:ft,ft=(Gn=Cn+33554432|0)>>>0<33554432?On+1|0:On,ut[At+24>>2]=Cn-(-67108864&Gn),On=(Cn=Qn>>>27|0)|Hn>>>19|er>>>11,Cn=Qn=(Hn=er<<21|(Qn=Hn<<13|Qn<<5))+(Cn=(67108863&(Cn=ft))<<6|Gn>>>26)|0,ft=On,On=(Qn=Hn+16777216|0)>>>0<16777216?ft+1|0:ft,ut[At+28>>2]=Cn-(1040187392&Qn),Cn=(On=(ft=On)>>>25|0)+(Cn=zn>>>20|ur>>>28|ar>>>12)|0,ft=Cn=(On=Qn=(ft=(33554431&ft)<<7|Qn>>>25)+(zn<<12|ur<<4|ar<<20)|0)>>>0>>0?Cn+1|0:Cn,Qn=(ar=On+33554432|0)>>>0<33554432?ft+1|0:ft,ut[At+32>>2]=On-(-67108864&ar),Cn=hn>>>13|(On=or>>>21|Cr>>>29),ft=(Cn=(zn=16777216+(or=or<<11|Cr<<3|hn<<19)|0)>>>0<16777216?Cn+1|0:Cn)>>>25|0,Cn=(On=Hn=lr<<10|un<<2|rn<<18)+(Hn=(33554431&Cn)<<7|zn>>>25)|0,On=ft+(er=lr>>>22|un>>>30|rn>>>14)|0,ft=On=Cn>>>0>>0?On+1|0:On,Hn=((67108863&(ft=(Hn=Cn+33554432|0)>>>0<33554432?ft+1|0:ft))<<6|(On=Hn)>>>26)+(ur=mn-(-33554432&Ln)|0)|0,ut[At+20>>2]=Hn,ut[At+16>>2]=Cn-(-67108864&On),On=Ot>>>18|Wt>>>26|_t>>>10,Cn=(On=(ur=16777216+(Cr=Ot<<14|Wt<<6|_t<<22)|0)>>>0<16777216?On+1|0:On)>>>25|0,On=(ft=Hn=Lt<<13|Xt<<5|Ct<<21)+(Hn=(33554431&On)<<7|ur>>>25)|0,ft=Cn+(er=Lt>>>19|Xt>>>27|Ct>>>11)|0,ft=On>>>0>>0?ft+1|0:ft,Cn=(er=On+33554432|0)>>>0<33554432?ft+1|0:ft,ut[At+8>>2]=On-(-67108864&er),ar=(Qn=(67108863&Qn)<<6|ar>>>26)+(lr=_n<<18&33292288|pt<<10|gt<<2)|0,ft=On=pt>>>22|gt>>>30,On=(Qn=lr+16777216|0)>>>0<16777216?ft+1|0:ft,ut[At+36>>2]=ar-(33554432&Qn),Cn=or+((67108863&Cn)<<6|er>>>26)|0,ut[At+12>>2]=Cn-(234881024&zn),Hn=Cr-(2113929216&ur)|0,Cn=Sn((33554431&(ft=On))<<7|Qn>>>25,On=ft>>>25|0,19,0),ft=ln,Cn=(On=Cn+In|0)>>>0>>0?ft+1|0:ft,Qn=((67108863&(Cn=(ft=On+33554432|0)>>>0<33554432?Cn+1|0:Cn))<<6|ft>>>26)+Hn|0,ut[At+4>>2]=Qn,ut[At>>2]=On-(-67108864&ft)}function x0(At,ft,pt,gt,_t,Ot,Wt,Ct){At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0;var Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0;e:{t:{n:{r:{i:{a:{d:{f:{o:{c:{l:{if((-7&(Ct|=0))==1){if(hn=0,!gt)break f;if(4&Ct)break l;for(;;){hn=Xt;A:{h:{s:{u:{for(;;){if(Lt=(Lt=(rn=Ft[pt+hn|0])-65|0)&((90-rn^-1)&(-1^Lt))>>>8&255|rn+4&((rn+65488^-1)&(57-rn^-1))>>>8&255|rn+185&((rn+65439^-1)&(122-rn^-1))>>>8&255|(1+(16336^rn)^-1)>>>8&63|(1+(16340^rn)^-1)>>>8&62,(0|(Lt|=(Lt-1&1+(65470^rn))>>>8&255))!=255)break u;if(Lt=0,!_t)break o;if(!l0(_t,rn))break;if((hn=hn+1|0)>>>0>=gt>>>0)break s}Xt=hn;break o}if(_n=Lt+(_n<<6)|0,un>>>0>1)break h;un=un+6|0;break A}Xt=(At=Xt+1|0)>>>0>>0?gt:At;break o}if(un=un-2|0,ft>>>0<=mn>>>0)break c;Ft[At+mn|0]=_n>>>un,mn=mn+1|0}if(Lt=0,!((Xt=hn+1|0)>>>0>>0))break}break o}Fs(),Sr()}l:for(;;){for(hn=Xt;;){A:{if(Lt=(Lt=(rn=Ft[pt+hn|0])-65|0)&((90-rn^-1)&(-1^Lt))>>>8&255|rn+4&((rn+65488^-1)&(57-rn^-1))>>>8&255|rn+185&((rn+65439^-1)&(122-rn^-1))>>>8&255|(1+(16288^rn)^-1)>>>8&63|(1+(16338^rn)^-1)>>>8&62,(0|(Lt|=(Lt-1&1+(65470^rn))>>>8&255))==255){if(Lt=0,!_t)break o;if(l0(_t,rn))break A;Xt=hn;break o}if(_n=Lt+(_n<<6)|0,un>>>0<2)un=un+6|0;else{if(un=un-2|0,ft>>>0<=mn>>>0)break c;Ft[At+mn|0]=_n>>>un,mn=mn+1|0}if(Lt=0,(Xt=hn+1|0)>>>0>>0)continue l;break o}if(!((hn=hn+1|0)>>>0>>0))break}break}Xt=(At=Xt+1|0)>>>0>>0?gt:At;break o}Xt=hn,ut[9392]=68,Lt=1}if(un>>>0>4)break d;hn=Xt}if(At=hn,ft=-1,Lt){Xt=At;break e}if((-1<>>0<2){Ct=At;break i}if(Xt=At>>>0>gt>>>0?At:gt,hn=un>>>1|0,!_t)break a;for(Ct=At;;){if((0|Ct)==(0|Xt)){Lt=68;break r}if((0|(At=Ft[pt+Ct|0]))!=61){if(!l0(_t,At)){Lt=28,Xt=Ct;break r}}else hn=hn-1|0;if(Ct=Ct+1|0,!hn)break}break i}ft=-1;break e}if(Lt=68,At>>>0>=gt>>>0)break r;if(bt[At+pt|0]!=61){Xt=At,Lt=28;break r}if(Ct=At+hn|0,(0|hn)!=1){if((0|(un=At+1|0))==(0|Xt))break r;if(bt[pt+un|0]!=61){Xt=un,Lt=28;break r}if((0|hn)!=2&&((0|(At=At+2|0))==(0|Xt)||(Lt=28,Xt=At,bt[At+pt|0]!=61)))break r}}if(ft=0,_t)break n;break t}ut[9392]=Lt;break e}if(!(gt>>>0<=Ct>>>0)){for(;;){if(!l0(_t,Ft[pt+Ct|0]))break t;if((0|(Ct=Ct+1|0))==(0|gt))break}Ct=gt}}Xt=Ct,In=mn}return Wt?ut[Wt>>2]=pt+Xt:(0|gt)!=(0|Xt)&&(ut[9392]=28,ft=-1),Ot&&(ut[Ot>>2]=In),0|ft}function Uu(At,ft,pt,gt){At|=0,ft|=0,pt|=0;var _t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0;for((gt|=0)?(_t=bt[gt+12|0]|bt[gt+13|0]<<8|bt[gt+14|0]<<16|bt[gt+15|0]<<24,Lt=bt[gt+8|0]|bt[gt+9|0]<<8|bt[gt+10|0]<<16|bt[gt+11|0]<<24,Xt=bt[gt+4|0]|bt[gt+5|0]<<8|bt[gt+6|0]<<16|bt[gt+7|0]<<24,gt=bt[0|gt]|bt[gt+1|0]<<8|bt[gt+2|0]<<16|bt[gt+3|0]<<24):(_t=1797285236,Lt=2036477234,Xt=857760878,gt=1634760805),Ot=bt[ft+12|0]|bt[ft+13|0]<<8|bt[ft+14|0]<<16|bt[ft+15|0]<<24,Ct=bt[ft+8|0]|bt[ft+9|0]<<8|bt[ft+10|0]<<16|bt[ft+11|0]<<24,Wt=bt[ft+4|0]|bt[ft+5|0]<<8|bt[ft+6|0]<<16|bt[ft+7|0]<<24,Cn=bt[pt+28|0]|bt[pt+29|0]<<8|bt[pt+30|0]<<16|bt[pt+31|0]<<24,On=bt[pt+24|0]|bt[pt+25|0]<<8|bt[pt+26|0]<<16|bt[pt+27|0]<<24,Qn=20,_n=bt[pt+20|0]|bt[pt+21|0]<<8|bt[pt+22|0]<<16|bt[pt+23|0]<<24,In=bt[pt+16|0]|bt[pt+17|0]<<8|bt[pt+18|0]<<16|bt[pt+19|0]<<24,r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hn|0)]|0)|0,Ft[0|ft]=Ct-(240&Wt),Wt=8+(Ct=bt[ft+1|0]+(Wt<<24>>24>>4)|0)|0,Ft[ft+1|0]=Ct-(240&Wt),Wt=8+(Ct=bt[ft+2|0]+(Wt<<24>>24>>4)|0)|0,Ft[ft+2|0]=Ct-(240&Wt),ft=Wt<<24>>24>>4,(0|(hn=hn+3|0))!=63;);for(Ft[pt+351|0]=bt[pt+351|0]+ft,ut[At+32>>2]=0,ut[At+36>>2]=0,ut[At+24>>2]=0,ut[At+28>>2]=0,ut[At+16>>2]=0,ut[At+20>>2]=0,ut[At+8>>2]=0,ut[At+12>>2]=0,ut[At>>2]=0,ut[At+4>>2]=0,ut[At+44>>2]=0,ut[At+48>>2]=0,ut[(ft=At+40|0)>>2]=1,ut[At+52>>2]=0,ut[At+56>>2]=0,ut[At+60>>2]=0,ut[At+64>>2]=0,ut[At+68>>2]=0,ut[At+72>>2]=0,ut[At+76>>2]=0,ut[At+80>>2]=1,ms(At+84|0,0,76),_t=At+120|0,hn=At+80|0,Ct=pt+208|0,gt=pt+168|0,Lt=pt+248|0,Wt=1;$A(rn=pt+8|0,Wt>>>1|0,Ft[(pt+288|0)+Wt|0]),M0(Xt=pt+128|0,At,rn),$r(At,Xt,Lt),$r(ft,gt,Ct),$r(hn,Ct,Lt),$r(_t,Xt,gt),rn=Wt>>>0<62,Wt=Wt+2|0,rn;);for(Wt=ut[At+36>>2],ut[pt+392>>2]=ut[At+32>>2],ut[pt+396>>2]=Wt,Wt=ut[At+28>>2],ut[pt+384>>2]=ut[At+24>>2],ut[pt+388>>2]=Wt,Wt=ut[At+20>>2],ut[pt+376>>2]=ut[At+16>>2],ut[pt+380>>2]=Wt,Wt=ut[At+12>>2],ut[pt+368>>2]=ut[At+8>>2],ut[pt+372>>2]=Wt,Wt=ut[At+4>>2],ut[pt+360>>2]=ut[At>>2],ut[pt+364>>2]=Wt,Wt=ut[ft+12>>2],ut[pt+408>>2]=ut[ft+8>>2],ut[pt+412>>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+672|0,ft,Lt),co(Xt=pt+640|0,hn,hn),co(gt=pt+416|0,rn,Xt),co(rn=pt+320|0,ft,gt),co(Ct=pt+608|0,Xt,Xt),co(Xt=pt+288|0,rn,rn),co(un=pt+576|0,gt,Xt),co(Wt=pt+448|0,Ct,Xt),co(_t=pt+544|0,un,un),co(un=pt+384|0,Ct,_t),co(Ot=pt+352|0,Lt,un),co(Lt=pt+192|0,Ct,Ot),co(Ct=pt+160|0,hn,Lt),co(pt+96|0,hn,Ct),co(Lt=pt+512|0,_t,Ot),co(Ct=pt+480|0,hn,Lt),co(Lt=pt+256|0,Wt,Ct),co(pt+128|0,Xt,Lt),co(Xt=pt- -64|0,un,Ct),co(Ct=pt+32|0,hn,Xt),co(pt,gt,Ct),co(At,rn,pt),hn=0;co(At,At,At),(0|(hn=hn+1|0))!=126;);return co(At,At,pt+352|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+704|0),co(At,At,pt),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+160|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+256|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt- -64|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+96|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+320|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+512|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+192|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+480|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+128|0),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,At),co(At,At,pt+32|0),jn=pt+736|0,0-gu(ft,32)|0}function kA(At,ft,pt){At|=0;var gt,_t,Ot,Wt,Ct=0,Lt=0,Xt=0,hn=0,rn=0;return jn=Ot=jn-160|0,c0(ft|=0,pt|=0,32,0),Ft[0|ft]=248&bt[0|ft],Ft[ft+31|0]=63&bt[ft+31|0]|64,El(Ot,ft),Rl(At,Ot),Lt=bt[(_t=pt)+8|0]|bt[_t+9|0]<<8|bt[_t+10|0]<<16|bt[_t+11|0]<<24,Ct=bt[_t+12|0]|bt[_t+13|0]<<8|bt[_t+14|0]<<16|bt[_t+15|0]<<24,Xt=bt[_t+16|0]|bt[_t+17|0]<<8|bt[_t+18|0]<<16|bt[_t+19|0]<<24,hn=bt[_t+20|0]|bt[_t+21|0]<<8|bt[_t+22|0]<<16|bt[_t+23|0]<<24,rn=bt[0|_t]|bt[_t+1|0]<<8|bt[_t+2|0]<<16|bt[_t+3|0]<<24,pt=bt[_t+4|0]|bt[_t+5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16>>2],Hn=ut[ft+20>>2],Lt=ut[At+20>>2],Gn=ut[ft+24>>2],Xt=ut[At+24>>2],_n=ut[ft+28>>2],hn=ut[At+28>>2],er=ut[ft+32>>2],rn=ut[At+32>>2],ar=ut[ft+36>>2],un=ut[At+36>>2],pt=0-pt|0,mn=ut[At>>2],ut[At>>2]=pt&(mn^ut[ft>>2])^mn,ut[At+36>>2]=un^pt&(un^ar),ut[At+32>>2]=rn^pt&(rn^er),ut[At+28>>2]=hn^pt&(hn^_n),ut[At+24>>2]=Xt^pt&(Xt^Gn),ut[At+20>>2]=Lt^pt&(Lt^Hn),ut[At+16>>2]=Ct^pt&(Ct^Qn),ut[At+12>>2]=Wt^pt&(Wt^Cn),ut[At+8>>2]=Ot^pt&(Ot^On),ut[At+4>>2]=_t^pt&(_t^In),_t=ut[At+40>>2],In=ut[ft+40>>2],Ot=ut[At+44>>2],On=ut[ft+44>>2],Wt=ut[At+48>>2],Cn=ut[ft+48>>2],Ct=ut[At+52>>2],Qn=ut[ft+52>>2],Lt=ut[At+56>>2],Hn=ut[ft+56>>2],Xt=ut[At+60>>2],Gn=ut[ft+60>>2],hn=ut[(_n=At- -64|0)>>2],er=ut[ft- -64>>2],rn=ut[At+68>>2],ar=ut[ft+68>>2],un=ut[At+72>>2],mn=ut[ft+72>>2],gt=ut[At+76>>2],ut[At+76>>2]=gt^pt&(ut[ft+76>>2]^gt),ut[At+72>>2]=un^pt&(un^mn),ut[At+68>>2]=rn^pt&(rn^ar),ut[_n>>2]=hn^pt&(hn^er),ut[At+60>>2]=Xt^pt&(Xt^Gn),ut[At+56>>2]=Lt^pt&(Lt^Hn),ut[At+52>>2]=Ct^pt&(Ct^Qn),ut[At+48>>2]=Wt^pt&(Wt^Cn),ut[At+44>>2]=Ot^pt&(Ot^On),ut[At+40>>2]=_t^pt&(_t^In),_t=ut[At+80>>2],In=ut[ft+80>>2],Ot=ut[At+84>>2],On=ut[ft+84>>2],Wt=ut[At+88>>2],Cn=ut[ft+88>>2],Ct=ut[At+92>>2],Qn=ut[ft+92>>2],Lt=ut[At+96>>2],Hn=ut[ft+96>>2],Xt=ut[At+100>>2],Gn=ut[ft+100>>2],hn=ut[At+104>>2],_n=ut[ft+104>>2],rn=ut[At+108>>2],er=ut[ft+108>>2],un=ut[At+112>>2],ar=ut[ft+112>>2],mn=ut[At+116>>2],ut[At+116>>2]=pt&(mn^ut[ft+116>>2])^mn,ut[At+112>>2]=un^pt&(un^ar),ut[At+108>>2]=rn^pt&(rn^er),ut[At+104>>2]=hn^pt&(hn^_n),ut[At+100>>2]=Xt^pt&(Xt^Gn),ut[At+96>>2]=Lt^pt&(Lt^Hn),ut[At+92>>2]=Ct^pt&(Ct^Qn),ut[At+88>>2]=Wt^pt&(Wt^Cn),ut[At+84>>2]=Ot^pt&(Ot^On),ut[At+80>>2]=_t^pt&(_t^In),_t=ut[At+120>>2],In=ut[ft+120>>2],Ot=ut[At+124>>2],On=ut[ft+124>>2],Wt=ut[At+128>>2],Cn=ut[ft+128>>2],Ct=ut[At+132>>2],Qn=ut[ft+132>>2],Lt=ut[At+136>>2],Hn=ut[ft+136>>2],Xt=ut[At+140>>2],Gn=ut[ft+140>>2],hn=ut[At+144>>2],_n=ut[ft+144>>2],rn=ut[At+148>>2],er=ut[ft+148>>2],un=ut[At+152>>2],ar=ut[ft+152>>2],mn=ut[ft+156>>2],ft=ut[At+156>>2],ut[At+156>>2]=pt&(mn^ft)^ft,ut[At+152>>2]=un^pt&(un^ar),ut[At+148>>2]=rn^pt&(rn^er),ut[At+144>>2]=hn^pt&(hn^_n),ut[At+140>>2]=Xt^pt&(Xt^Gn),ut[At+136>>2]=Lt^pt&(Lt^Hn),ut[At+132>>2]=Ct^pt&(Ct^Qn),ut[At+128>>2]=Wt^pt&(Wt^Cn),ut[At+124>>2]=Ot^pt&(Ot^On),ut[At+120>>2]=_t^pt&(_t^In)}function U0(At,ft,pt){var gt,_t,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0;return jn=gt=jn-320|0,cr(Ot=gt+240|0,pt),$r(Ot,Ot,pt),cr(At,Ot),$r(At,At,pt),$r(At,At,ft),J0(At,At),$r(At,At,Ot),$r(At,At,ft),cr(Ot=gt+192|0,At),$r(Ot,Ot,pt),Wt=ut[ft+4>>2],_n=ut[ft+8>>2],On=ut[ft+12>>2],Cn=ut[ft+16>>2],Qn=ut[ft+20>>2],Hn=ut[ft+24>>2],Gn=ut[ft+28>>2],er=ut[ft+32>>2],ar=ut[ft>>2],pt=ut[gt+192>>2],Ot=ut[gt+196>>2],Ct=ut[gt+200>>2],Lt=ut[gt+204>>2],Xt=ut[gt+208>>2],hn=ut[gt+212>>2],rn=ut[gt+216>>2],un=ut[gt+220>>2],mn=ut[gt+224>>2],In=ut[gt+228>>2],ur=ut[ft+36>>2],ut[gt+180>>2]=In-ur,ut[gt+176>>2]=mn-er,ut[gt+172>>2]=un-Gn,ut[gt+168>>2]=rn-Hn,ut[gt+164>>2]=hn-Qn,ut[gt+160>>2]=Xt-Cn,ut[gt+156>>2]=Lt-On,ut[gt+152>>2]=Ct-_n,ut[gt+148>>2]=Ot-Wt,ut[gt+144>>2]=pt-ar,ut[gt+132>>2]=In+ur,ut[gt+128>>2]=mn+er,ut[gt+124>>2]=un+Gn,ut[gt+120>>2]=rn+Hn,ut[gt+116>>2]=hn+Qn,ut[gt+112>>2]=Xt+Cn,ut[gt+108>>2]=Lt+On,ut[gt+104>>2]=Ct+_n,ut[gt+100>>2]=Ot+Wt,ut[gt+96>>2]=pt+ar,$r(Wt=gt+48|0,ft,1648),ut[gt+84>>2]=In+ut[gt+84>>2],ut[gt+80>>2]=mn+ut[gt+80>>2],ut[gt+76>>2]=un+ut[gt+76>>2],ut[gt+72>>2]=rn+ut[gt+72>>2],ut[gt+68>>2]=hn+ut[gt+68>>2],ut[gt+64>>2]=Xt+ut[gt+64>>2],ut[g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0,(0|pt)!=(0|rn)|(0|gt)!=(0|Ot););}return jn=_t+288|0,0}function yl(At,ft){var pt,gt,_t,Ot,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0;return jn=pt=jn-320|0,Al(gt=At+40|0,ft),ut[At+84>>2]=0,ut[At+88>>2]=0,ut[At+80>>2]=1,ut[At+92>>2]=0,ut[At+96>>2]=0,ut[At+100>>2]=0,ut[At+104>>2]=0,ut[At+108>>2]=0,ut[At+112>>2]=0,ut[At+116>>2]=0,cr(Wt=pt+240|0,gt),$r(Ct=pt+192|0,Wt,1600),ut[pt+192>>2]=ut[pt+192>>2]+1,Lt=ut[pt+240>>2]-1|0,ut[pt+240>>2]=Lt,Xt=ut[pt+244>>2],hn=ut[pt+248>>2],rn=ut[pt+252>>2],un=ut[pt+256>>2],mn=ut[pt+260>>2],_n=ut[pt+264>>2],In=ut[pt+268>>2],On=ut[pt+272>>2],Cn=ut[pt+276>>2],$r(At,Wt,Ct),J0(At,At),$r(At,Wt,At),cr(Wt=pt+144|0,At),$r(Wt,Wt,Ct),Wt=ut[pt+180>>2],ut[pt+132>>2]=Wt-Cn,Ct=ut[pt+176>>2],ut[pt+128>>2]=Ct-On,Qn=ut[pt+172>>2],ut[pt+124>>2]=Qn-In,Hn=ut[pt+168>>2],ut[pt+120>>2]=Hn-_n,Gn=ut[pt+164>>2],ut[pt+116>>2]=Gn-mn,er=ut[pt+160>>2],ut[pt+112>>2]=er-un,ar=ut[pt+156>>2],ut[pt+108>>2]=ar-rn,ur=ut[pt+152>>2],ut[pt+104>>2]=ur-hn,Ln=ut[pt+148>>2],ut[pt+100>>2]=Ln-Xt,zn=ut[pt+144>>2],ut[pt+96>>2]=zn-Lt,ut[pt+84>>2]=Wt+Cn,ut[pt+80>>2]=Ct+On,ut[pt+76>>2]=In+Qn,ut[pt+72>>2]=_n+Hn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(In^0-In),ut[At>>2]=Wt^ft&(Wt^0-Wt),$r(At+120|0,At,gt),jn=pt+320|0,(On|Qn)-1|0}function lu(At,ft){var pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0,lr=0,Pr=0,Dr=0,Fr=0,qr=0,Mr=0;jn=pt=jn-48|0,cr(At,ft),cr(At+80|0,ft+40|0),hA(At+120|0,ft+80|0),Gn=ut[ft+40>>2],On=ut[ft+44>>2],In=ut[ft+4>>2],Cn=ut[ft+48>>2],er=ut[ft+8>>2],Qn=ut[ft+52>>2],ar=ut[ft+12>>2],Hn=ut[ft+56>>2],Cr=ut[ft+16>>2],ur=ut[ft+60>>2],lr=ut[ft+20>>2],Ln=ut[ft- -64>>2],Pr=ut[ft+24>>2],zn=ut[ft+68>>2],Dr=ut[ft+28>>2],or=ut[ft+72>>2],Fr=ut[ft+32>>2],Mr=ut[ft>>2],ut[At+76>>2]=ut[ft+76>>2]+ut[ft+36>>2],ut[At+72>>2]=or+Fr,ut[At+68>>2]=zn+Dr,ut[(gt=At- -64|0)>>2]=Ln+Pr,ut[At+60>>2]=ur+lr,ut[At+56>>2]=Hn+Cr,ut[At+52>>2]=Qn+ar,ut[At+48>>2]=Cn+er,ut[At+44>>2]=On+In,ut[(ft=At+40|0)>>2]=Gn+Mr,cr(pt,ft),Gn=ut[At+80>>2],On=ut[At+4>>2],In=ut[At+84>>2],Cn=ut[At+8>>2],er=ut[At+88>>2],Qn=ut[At+12>>2],ar=ut[At+92>>2],Hn=ut[At+16>>2],Cr=ut[At+96>>2],ur=ut[At+20>>2],lr=ut[At+100>>2],Ln=ut[At+24>>2],Pr=ut[At+104>>2],zn=ut[At+28>>2],Dr=ut[At+108>>2],or=ut[At+32>>2],Fr=ut[At+112>>2],Mr=ut[At>>2],Ot=(qr=ut[At+116>>2])-(_t=ut[At+36>>2])|0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ut[At+140>>2]=er-Xt,ut[At+136>>2]=Cn-hn,ut[At+132>>2]=In-rn,ut[At+128>>2]=On-un,ut[At+124>>2]=Gn-mn,ut[At+120>>2]=ft-_n,jn=pt+48|0}function RA(At,ft,pt){var gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn=0;jn=gt=jn-160|0,ut[At>>2]=1,ut[At+4>>2]=0,ut[At+8>>2]=0,ut[At+12>>2]=0,ut[At+16>>2]=0,ut[At+20>>2]=0,ut[At+24>>2]=0,ut[At+28>>2]=0,ut[At+32>>2]=0,ut[At+44>>2]=0,ut[At+48>>2]=0,ut[At+36>>2]=0,ut[At+40>>2]=1,ut[At+52>>2]=0,ut[At+56>>2]=0,ut[At+60>>2]=0,ut[At+64>>2]=0,ut[At+68>>2]=0,ut[At+72>>2]=0,ut[At+76>>2]=0,ut[At+80>>2]=1,ms(At+84|0,0,76),Lu(At,ft,(255&(1^(rn=pt-((pt>>31&pt)<<1)|0)))-1>>>31|0),Lu(At,ft+160|0,(255&(2^rn))-1>>>31|0),Lu(At,ft+320|0,(255&(3^rn))-1>>>31|0),Lu(At,ft+480|0,(255&(4^rn))-1>>>31|0),Lu(At,ft+640|0,(255&(5^rn))-1>>>31|0),Lu(At,ft+800|0,(255&(6^rn))-1>>>31|0),Lu(At,ft+960|0,(255&(7^rn))-1>>>31|0),Lu(At,ft+1120|0,(255&(8^rn))-1>>>31|0),ft=ut[At+76>>2],ut[gt+32>>2]=ut[At+72>>2],ut[gt+36>>2]=ft,rn=ut[4+(ft=At- -64|0)>>2],ut[gt+24>>2]=ut[ft>>2],ut[gt+28>>2]=rn,ft=ut[At+60>>2],ut[gt+16>>2]=ut[At+56>>2],ut[gt+20>>2]=ft,ft=ut[At+52>>2],ut[gt+8>>2]=ut[At+48>>2],ut[gt+12>>2]=ft,ft=ut[At+44>>2],ut[gt>>2]=ut[At+40>>2],ut[gt+4>>2]=ft,ft=ut[At+36>>2],ut[gt+72>>2]=ut[At+32>>2],ut[gt+76>>2]=ft,rn=ut[At+28>>2],ut[(ft=gt- -64|0)>>2]=ut[At+24>>2],ut[ft+4>>2]=rn,ft=ut[At+20>>2],ut[gt+56>>2]=ut[At+16>>2],ut[gt+60>>2]=ft,ft=ut[At+12>>2],ut[gt+48>>2]=ut[At+8>>2],ut[gt+52>>2]=ft,ft=ut[At+4>>2],ut[gt+40>>2]=ut[At>>2],ut[gt+44>>2]=ft,ft=ut[At+92>>2],ut[gt+88>>2]=ut[At+88>>2],ut[gt+92>>2]=ft,ft=ut[At+100>>2],ut[gt+96>>2]=ut[At+96>>2],ut[gt+100>>2]=ft,ft=ut[At+108>>2],ut[gt+104>>2]=ut[At+104>>2],ut[gt+108>>2]=ft,ft=ut[At+116>>2],ut[gt+112>>2]=ut[At+112>>2],ut[gt+116>>2]=ft,ft=ut[At+84>>2],ut[gt+80>>2]=ut[At+80>>2],ut[gt+84>>2]=ft,ft=ut[At+120>>2],rn=ut[At+124>>2],_t=ut[At+128>>2],Ot=ut[At+132>>2],Wt=ut[At+136>>2],Ct=ut[At+140>>2],Lt=ut[At+144>>2],Xt=ut[At+148>>2],hn=ut[At+152>>2],ut[gt+156>>2]=0-ut[At+156>>2],ut[gt+152>>2]=0-hn,ut[gt+148>>2]=0-Xt,ut[gt+144>>2]=0-Lt,ut[gt+140>>2]=0-Ct,ut[gt+136>>2]=0-Wt,ut[gt+132>>2]=0-Ot,ut[gt+128>>2]=0-_t,ut[gt+124>>2]=0-rn,ut[gt+120>>2]=0-ft,Lu(At,gt,(128&pt)>>>7|0),jn=gt+160|0}function PA(At,ft){At|=0,ft|=0;var pt,gt,_t,Ot,Wt,Ct=0,Lt=0,Xt=0;return jn=Lt=jn-192|0,hu(Lt,32),c0(ft,Lt,32,0),Ft[0|ft]=248&bt[0|ft],Ft[ft+31|0]=63&bt[ft+31|0]|64,El(Xt=Lt+32|0,ft),Rl(At,Xt),pt=Lt,Xt=ut[Lt+28>>2],Lt=ut[Lt+24>>2],Ft[ft+24|0]=Lt,Ft[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ut[At+60>>2]=0,ut[At+48>>2]=0,ut[At+52>>2]=0,ut[At+40>>2]=0,ut[At+44>>2]=0):ss(Ot,34688,56-_t|0),Wt=(_t=16711680&(Ot=ut[At+32>>2]))>>>8|0,Ct=_t<<24,gt=(_t=-16777216&Ot)>>>24|0,_t=(Ct|=_t<<8)|-16777216&((255&(_t=ut[At+36>>2]))<<24|Ot>>>8)|16711680&((16777215&_t)<<8|Ot>>>24)|_t>>>8&65280|_t>>>24,Ft[At+96|0]=_t,Ft[At+97|0]=_t>>>8,Ft[At+98|0]=_t>>>16,Ft[At+99|0]=_t>>>24,_t=(_t=Wt|gt|Ot<<24|(65280&Ot)<<8)|(Wt=0)|Wt,Ft[At+100|0]=_t,Ft[At+101|0]=_t>>>8,Ft[At+102|0]=_t>>>16,Ft[At+103|0]=_t>>>24,zs(At,At+40|0,pt,pt+256|0),_t=(_t=ut[At>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[0|ft]=_t,Ft[ft+1|0]=_t>>>8,Ft[ft+2|0]=_t>>>16,Ft[ft+3|0]=_t>>>24,_t=(_t=ut[At+4>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[ft+4|0]=_t,Ft[ft+5|0]=_t>>>8,Ft[ft+6|0]=_t>>>16,Ft[ft+7|0]=_t>>>24,_t=(_t=ut[At+8>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[ft+8|0]=_t,Ft[ft+9|0]=_t>>>8,Ft[ft+10|0]=_t>>>16,Ft[ft+11|0]=_t>>>24,_t=(_t=ut[At+12>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[ft+12|0]=_t,Ft[ft+13|0]=_t>>>8,Ft[ft+14|0]=_t>>>16,Ft[ft+15|0]=_t>>>24,_t=(_t=ut[At+16>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[ft+16|0]=_t,Ft[ft+17|0]=_t>>>8,Ft[ft+18|0]=_t>>>16,Ft[ft+19|0]=_t>>>24,_t=(_t=ut[At+20>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[ft+20|0]=_t,Ft[ft+21|0]=_t>>>8,Ft[ft+22|0]=_t>>>16,Ft[ft+23|0]=_t>>>24,_t=(_t=ut[At+24>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[ft+24|0]=_t,Ft[ft+25|0]=_t>>>8,Ft[ft+26|0]=_t>>>16,Ft[ft+27|0]=_t>>>24,_t=(_t=ut[At+28>>2])<<24|(65280&_t)<<8|_t>>>8&65280|_t>>>24,Ft[ft+28|0]=_t,Ft[ft+29|0]=_t>>>8,Ft[ft+30|0]=_t>>>16,Ft[ft+31|0]=_t>>>24,Uo(pt,288),Uo(At,104),jn=pt+288|0,0}function OA(At,ft){At|=0;var pt,gt=0;jn=pt=jn+-64|0,gt=bt[60+(ft|=0)|0]|bt[ft+61|0]<<8|bt[ft+62|0]<<16|bt[ft+63|0]<<24,ut[pt+56>>2]=bt[ft+56|0]|bt[ft+57|0]<<8|bt[ft+58|0]<<16|bt[ft+59|0]<<24,ut[pt+60>>2]=gt,gt=bt[ft+52|0]|bt[ft+53|0]<<8|bt[ft+54|0]<<16|bt[ft+55|0]<<24,ut[pt+48>>2]=bt[ft+48|0]|bt[ft+49|0]<<8|bt[ft+50|0]<<16|bt[ft+51|0]<<24,ut[pt+52>>2]=gt,gt=bt[ft+44|0]|bt[ft+45|0]<<8|bt[ft+46|0]<<16|bt[ft+47|0]<<24,ut[pt+40>>2]=bt[ft+40|0]|bt[ft+41|0]<<8|bt[ft+42|0]<<16|bt[ft+43|0]<<24,ut[pt+44>>2]=gt,gt=bt[ft+36|0]|bt[ft+37|0]<<8|bt[ft+38|0]<<16|bt[ft+39|0]<<24,ut[pt+32>>2]=bt[ft+32|0]|bt[ft+33|0]<<8|bt[ft+34|0]<<16|bt[ft+35|0]<<24,ut[pt+36>>2]=gt,gt=bt[ft+28|0]|bt[ft+29|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t+4>>2],gt=ut[pt>>2],Ft[0|At]=gt,Ft[At+1|0]=gt>>>8,Ft[At+2|0]=gt>>>16,Ft[At+3|0]=gt>>>24,Ft[At+4|0]=ft,Ft[At+5|0]=ft>>>8,Ft[At+6|0]=ft>>>16,Ft[At+7|0]=ft>>>24,Uo(pt,64),jn=pt- -64|0}function Wu(At,ft,pt){At|=0,ft|=0;var gt,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0;if(jn=gt=jn-96|0,(pt|=0)>>>0>=65&&(LA(At),Ru(At,ft,pt,0),Fu(At,gt),pt=32,ft=gt),LA(At),ut[gt+88>>2]=909522486,ut[gt+92>>2]=909522486,ut[gt+80>>2]=909522486,ut[gt+84>>2]=909522486,ut[gt+72>>2]=909522486,ut[gt+76>>2]=909522486,ut[(Wt=hn=gt- -64|0)>>2]=909522486,ut[Wt+4>>2]=909522486,ut[gt+56>>2]=909522486,ut[gt+60>>2]=909522486,ut[gt+48>>2]=909522486,ut[gt+52>>2]=909522486,ut[gt+40>>2]=909522486,ut[gt+44>>2]=909522486,ut[gt+32>>2]=909522486,ut[gt+36>>2]=909522486,pt){if(pt>>>0>=4)for(Ct=124&pt;Ft[0|(Ot=(Wt=gt+32|0)+_t|0)]=bt[0|Ot]^bt[ft+_t|0],Ft[0|(rn=(Ot=1|_t)+Wt|0)]=bt[0|rn]^bt[ft+Ot|0],Ft[0|(rn=(Ot=2|_t)+Wt|0)]=bt[0|rn]^bt[ft+Ot|0],Ft[0|(Ot=(Ot=Wt)+(Wt=3|_t)|0)]=bt[0|Ot]^bt[ft+Wt|0],_t=_t+4|0,(0|Ct)!=(0|(Lt=Lt+4|0)););if(Lt=3&pt)for(;Ft[0|(Wt=(gt+32|0)+_t|0)]=bt[0|Wt]^bt[ft+_t|0],_t=_t+1|0,(0|Lt)!=(0|(Xt=Xt+1|0)););}if(Ru(At,gt+32|0,64,0),LA(Wt=At+104|0),ut[gt+88>>2]=1549556828,ut[gt+92>>2]=1549556828,ut[gt+80>>2]=1549556828,ut[gt+84>>2]=1549556828,ut[gt+72>>2]=1549556828,ut[gt+76>>2]=1549556828,ut[hn>>2]=1549556828,ut[hn+4>>2]=1549556828,ut[gt+56>>2]=1549556828,ut[gt+60>>2]=1549556828,ut[gt+48>>2]=1549556828,ut[gt+52>>2]=1549556828,ut[gt+40>>2]=1549556828,ut[gt+44>>2]=1549556828,ut[gt+32>>2]=1549556828,ut[gt+36>>2]=1549556828,pt){if(Xt=0,_t=0,pt>>>0>=4)for(hn=124&pt,Lt=0;Ft[0|(Ct=(At=gt+32|0)+_t|0)]=bt[0|Ct]^bt[ft+_t|0],Ft[0|(Ot=(Ct=1|_t)+At|0)]=bt[0|Ot]^bt[ft+Ct|0],Ft[0|(Ot=(Ct=2|_t)+At|0)]=bt[0|Ot]^bt[ft+Ct|0],Ft[0|(Ct=(Ot=At)+(At=3|_t)|0)]=bt[0|Ct]^bt[At+ft|0],_t=_t+4|0,(0|hn)!=(0|(Lt=Lt+4|0)););if(At=3&pt)for(;Ft[0|(pt=(gt+32|0)+_t|0)]=bt[0|pt]^bt[ft+_t|0],_t=_t+1|0,(0|At)!=(0|(Xt=Xt+1|0)););}return Ru(Wt,At=gt+32|0,64,0),Uo(At,64),Uo(gt,32),jn=gt+96|0,0}function L0(At,ft,pt,gt,_t,Ot,Wt){var Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0;if(ft-65>>>0<4294967232|Wt>>>0>64)At=-1;else{un=Ct=jn,jn=Ct=Ct-512&-64;e:{t:if(!(!(!(gt|_t)|pt)|!At|((Lt=255&ft)-65&255)>>>0<=191|!(!(ft=255&Wt)||Ot)|ft>>>0>=65)){if(ft){if(!Ot)break t;ms(Ct- -64|0,0,293),ut[Ct+56>>2]=327033209,ut[Ct+60>>2]=1541459225,ut[Ct+48>>2]=-79577749,ut[Ct+52>>2]=528734635,ut[Ct+40>>2]=725511199,ut[Ct+44>>2]=-1694144372,ut[Ct+32>>2]=-1377402159,ut[Ct+36>>2]=1359893119,ut[Ct+24>>2]=1595750129,ut[Ct+28>>2]=-1521486534,ut[Ct+16>>2]=-23791573,ut[Ct+20>>2]=1013904242,ut[Ct+8>>2]=-2067093701,ut[Ct+12>>2]=-1150833019,ut[Ct>>2]=-222443256^(ft<<8|Lt),ut[Ct+4>>2]=ft>>>24^1779033703,ms((Wt=Ct+384|0)+ft|0,0,128-ft|0),ss(Wt,Ot,ft),ss(Ct+96|0,Wt,128),ut[Ct+352>>2]=128,Uo(Wt,128),ft=128}else ms(Ct- -64|0,0,293),ut[Ct+56>>2]=327033209,ut[Ct+60>>2]=1541459225,ut[Ct+48>>2]=-79577749,ut[Ct+52>>2]=528734635,ut[Ct+40>>2]=725511199,ut[Ct+44>>2]=-1694144372,ut[Ct+32>>2]=-1377402159,ut[Ct+36>>2]=1359893119,ut[Ct+24>>2]=1595750129,ut[Ct+28>>2]=-1521486534,ut[Ct+16>>2]=-23791573,ut[Ct+20>>2]=1013904242,ut[Ct+8>>2]=-2067093701,ut[Ct+12>>2]=-1150833019,ut[Ct>>2]=-222443256^Lt,ut[Ct+4>>2]=1779033703,ft=0;n:if(gt|_t)for(mn=Ct+224|0,Xt=Ct+96|0;;){if(Wt=ft+Xt|0,!_t>>>>0<=(Ot=256-ft|0)>>>0){ss(Wt,pt,gt),ut[Ct+352>>2]=gt+ut[Ct+352>>2];break n}if(ss(Wt,pt,Ot),ut[Ct+352>>2]=Ot+ut[Ct+352>>2],hn=ft=ut[Ct+68>>2],ft=(rn=(Wt=ut[Ct+64>>2])+128|0)>>>0<128?ft+1|0:ft,ut[Ct+64>>2]=rn,ut[Ct+68>>2]=ft,ft=ut[Ct+76>>2],ft=(hn=Wt=(0|hn)==-1&Wt>>>0>4294967167)>>>0>(Wt=Wt+ut[Ct+72>>2]|0)>>>0?ft+1|0:ft,ut[Ct+72>>2]=Wt,ut[Ct+76>>2]=ft,Is(Ct,Xt),ss(Xt,mn,128),ft=ut[Ct+352>>2]-128|0,ut[Ct+352>>2]=ft,pt=pt+Ot|0,!((_t=_t-(gt>>>0>>0)|0)|(gt=gt-Ot|0)))break}O0(Ct,At,Lt),jn=un;break e}Fs(),Sr()}At=0}return At}function NA(At,ft){At|=0,ft|=0;var pt,gt=0;jn=pt=jn-128|0,ut[pt+80>>2]=0,ut[pt+84>>2]=0,ut[pt+88>>2]=0,ut[pt+92>>2]=0,ut[pt+40>>2]=0,ut[pt+44>>2]=0,ut[pt+48>>2]=0,ut[pt+52>>2]=0,ut[pt+56>>2]=0,ut[pt+60>>2]=0,gt=ut[8591],ut[pt+104>>2]=ut[8590],ut[pt+108>>2]=gt,gt=ut[8593],ut[pt+112>>2]=ut[8592],ut[pt+116>>2]=gt,gt=ut[8595],ut[pt+120>>2]=ut[8594],ut[pt+124>>2]=gt,ut[pt+64>>2]=0,ut[pt+68>>2]=0,ut[pt+72>>2]=0,ut[pt+76>>2]=0,Ft[pt+64|0]=1,ut[pt+32>>2]=0,ut[pt+36>>2]=0,gt=ut[8589],ut[pt+96>>2]=ut[8588],ut[pt+100>>2]=gt,gt=bt[ft+28|0]|bt[ft+29|0]<<8|bt[ft+30|0]<<16|bt[ft+31|0]<<24,ut[pt+24>>2]=bt[ft+24|0]|bt[ft+25|0]<<8|bt[ft+26|0]<<16|bt[ft+27|0]<<24,ut[pt+28>>2]=gt,gt=bt[ft+20|0]|bt[ft+21|0]<<8|bt[ft+22|0]<<16|bt[ft+23|0]<<24,ut[pt+16>>2]=bt[ft+16|0]|bt[ft+17|0]<<8|bt[ft+18|0]<<16|bt[ft+19|0]<<24,ut[pt+20>>2]=gt,gt=bt[ft+12|0]|bt[ft+13|0]<<8|bt[ft+14|0]<<16|bt[ft+15|0]<<24,ut[pt+8>>2]=bt[ft+8|0]|bt[ft+9|0]<<8|bt[ft+10|0]<<16|bt[ft+11|0]<<24,ut[pt+12>>2]=gt,gt=bt[ft+4|0]|bt[ft+5|0]<<8|bt[ft+6|0]<<16|bt[ft+7|0]<<24,ut[pt>>2]=bt[0|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>16,Ft[At+7|0]=ft>>>24,jn=pt+128|0}function Hu(At,ft,pt){var gt,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0;In=ut[ft+4>>2],_t=ut[At+4>>2],On=ut[ft+8>>2],Ot=ut[At+8>>2],Cn=ut[ft+12>>2],Wt=ut[At+12>>2],Qn=ut[ft+16>>2],Ct=ut[At+16>>2],Hn=ut[ft+20>>2],Lt=ut[At+20>>2],Gn=ut[ft+24>>2],Xt=ut[At+24>>2],mn=ut[ft+28>>2],hn=ut[At+28>>2],er=ut[ft+32>>2],rn=ut[At+32>>2],ar=ut[ft+36>>2],un=ut[At+36>>2],pt=0-pt|0,_n=ut[At>>2],ut[At>>2]=pt&(_n^ut[ft>>2])^_n,ut[At+36>>2]=un^pt&(un^ar),ut[At+32>>2]=rn^pt&(rn^er),ut[At+28>>2]=hn^pt&(hn^mn),ut[At+24>>2]=Xt^pt&(Xt^Gn),ut[At+20>>2]=Lt^pt&(Lt^Hn),ut[At+16>>2]=Ct^pt&(Ct^Qn),ut[At+12>>2]=Wt^pt&(Wt^Cn),ut[At+8>>2]=Ot^pt&(Ot^On),ut[At+4>>2]=_t^pt&(_t^In),_t=ut[At+40>>2],In=ut[ft+40>>2],Ot=ut[At+44>>2],On=ut[ft+44>>2],Wt=ut[At+48>>2],Cn=ut[ft+48>>2],Ct=ut[At+52>>2],Qn=ut[ft+52>>2],Lt=ut[At+56>>2],Hn=ut[ft+56>>2],Xt=ut[At+60>>2],Gn=ut[ft+60>>2],hn=ut[(mn=At- -64|0)>>2],er=ut[ft- -64>>2],rn=ut[At+68>>2],ar=ut[ft+68>>2],un=ut[At+72>>2],_n=ut[ft+72>>2],gt=ut[At+76>>2],ut[At+76>>2]=gt^pt&(ut[ft+76>>2]^gt),ut[At+72>>2]=un^pt&(un^_n),ut[At+68>>2]=rn^pt&(rn^ar),ut[mn>>2]=hn^pt&(hn^er),ut[At+60>>2]=Xt^pt&(Xt^Gn),ut[At+56>>2]=Lt^pt&(Lt^Hn),ut[At+52>>2]=Ct^pt&(Ct^Qn),ut[At+48>>2]=Wt^pt&(Wt^Cn),ut[At+44>>2]=Ot^pt&(Ot^On),ut[At+40>>2]=_t^pt&(_t^In),_t=ut[At+80>>2],In=ut[ft+80>>2],Ot=ut[At+84>>2],On=ut[ft+84>>2],Wt=ut[At+88>>2],Cn=ut[ft+88>>2],Ct=ut[At+92>>2],Qn=ut[ft+92>>2],Lt=ut[At+96>>2],Hn=ut[ft+96>>2],Xt=ut[At+100>>2],Gn=ut[ft+100>>2],hn=ut[At+104>>2],mn=ut[ft+104>>2],rn=ut[At+108>>2],er=ut[ft+108>>2],un=ut[At+112>>2],ar=ut[ft+112>>2],_n=ut[ft+116>>2],ft=ut[At+116>>2],ut[At+116>>2]=pt&(_n^ft)^ft,ut[At+112>>2]=un^pt&(un^ar),ut[At+108>>2]=rn^pt&(rn^er),ut[At+104>>2]=hn^pt&(hn^mn),ut[At+100>>2]=Xt^pt&(Xt^Gn),ut[At+96>>2]=Lt^pt&(Lt^Hn),ut[At+92>>2]=Ct^pt&(Ct^Qn),ut[At+88>>2]=Wt^pt&(Wt^Cn),ut[At+84>>2]=Ot^pt&(Ot^On),ut[At+80>>2]=_t^pt&(_t^In)}function _l(At,ft){var pt,gt,_t=0;for(jn=pt=jn-192|0,cr(gt=pt+144|0,ft),cr(_t=pt+96|0,gt),cr(_t,_t),$r(_t,ft,_t),$r(gt,gt,_t),cr(ft=pt+48|0,gt),$r(_t,_t,ft),cr(ft,_t),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),$r(_t,ft,_t),cr(ft,_t),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),$r(ft,ft,_t),cr(pt,ft),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),$r(ft,pt,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),$r(_t,ft,_t),cr(ft,_t),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),$r(ft,ft,_t),cr(pt,ft),ft=1;cr(pt,pt),(0|(ft=ft+1|0))!=100;);$r(ft=pt+48|0,pt,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),cr(ft,ft),$r(_t=pt+96|0,ft,_t),cr(_t,_t),cr(_t,_t),cr(_t,_t),cr(_t,_t),cr(_t,_t),$r(At,_t,pt+144|0),jn=pt+192|0}function H0(At,ft,pt,gt,_t){At|=0,ft|=0,pt|=0,gt|=0;var Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0;e:{t:{n:{r:{i:{a:{d:{if((-7&(_t|=0))==1&&(Xt=(Wt=(gt>>>0)/3|0)<<2,(Wt=vo(Wt,-3)+gt|0)&&(Xt=2&_t?(2|Xt)+(Wt>>>1|0)|0:Xt+4|0),!(ft>>>0<=Xt>>>0))){if(!(4&_t)){if(!gt){_t=0;break r}_t=0;break d}if(!gt){_t=0;break r}for(_t=0;;){for(rn=(un=bt[pt+hn|0])|rn<<8,Wt=_t,_t=1+((((Lt|=8)-6>>>0)/6|0)+_t|0)|0;mn=65510+(Ct=rn>>>(Lt=(Ot=Lt)-6|0)&63)>>>8|0,_n=Ct+65484>>>8|0,Ft[At+Wt|0]=(1+(16321^Ct)^-1)>>>8&45|Ct+252&Ct+65474>>>8&(-1^_n)|(Ct+32705^-1)>>>8&95|mn&Ct+65|_n&Ct+71&(-1^mn),(0|(Wt=Wt+1|0))!=(0|_t););if((0|(hn=hn+1|0))==(0|gt))break}if(!Lt)break i;Wt=(gt=65510+(Ot=un<<12-Ot&63)>>>8|0)&Ot+65,Lt=Ot+252&Ot+65474>>>8&(-1^(pt=Ot+65484>>>8|0)),gt=pt&Ot+71&(-1^gt),hn=Ot+32705|0,rn=95,pt=(1+(16321^Ot)^-1)>>>8&45;break a}Fs(),Sr()}for(;;){for(rn=(un=bt[pt+hn|0])|rn<<8,Wt=_t,_t=1+((((Lt|=8)-6>>>0)/6|0)+_t|0)|0;mn=65510+(Ct=rn>>>(Lt=(Ot=Lt)-6|0)&63)>>>8|0,_n=Ct+65484>>>8|0,Ft[At+Wt|0]=(1+(16321^Ct)^-1)>>>8&43|Ct+252&Ct+65474>>>8&(-1^_n)|(Ct+16321^-1)>>>8&47|mn&Ct+65|_n&Ct+71&(-1^mn),(0|(Wt=Wt+1|0))!=(0|_t););if((0|(hn=hn+1|0))==(0|gt))break}if(!Lt)break i;Wt=(gt=65510+(Ot=un<<12-Ot&63)>>>8|0)&Ot+65,Lt=Ot+252&Ot+65474>>>8&(-1^(pt=Ot+65484>>>8|0)),gt=pt&Ot+71&(-1^gt),hn=Ot+16321|0,rn=47,pt=(1+(16321^Ot)^-1)>>>8&43}Ft[At+_t|0]=pt|(-1^hn)>>>8&rn|Wt|Lt|gt,_t=_t+1|0}if(_t>>>0>Xt>>>0)break n}if(_t>>>0>>0)break t;Xt=_t;break e}Wo(1104,1201,231,1505),Sr()}ms(At+_t|0,61,Xt-_t|0)}return ms(At+Xt|0,0,(ft>>>0>(pt=Xt+1|0)>>>0?ft:pt)-Xt|0),0|At}function J0(At,ft){var pt,gt=0,_t=0;for(jn=pt=jn-144|0,cr(_t=pt+96|0,ft),cr(gt=pt+48|0,_t),cr(gt,gt),$r(gt,ft,gt),$r(_t,_t,gt),cr(_t,_t),$r(_t,gt,_t),cr(gt,_t),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),$r(_t,gt,_t),cr(gt,_t),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),$r(gt,gt,_t),cr(pt,gt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),cr(pt,pt),$r(gt,pt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),$r(_t,gt,_t),cr(gt,_t),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),$r(gt,gt,_t),cr(pt,gt),gt=1;cr(pt,pt),(0|(gt=gt+1|0))!=100;);$r(gt=pt+48|0,pt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),cr(gt,gt),$r(_t=pt+96|0,gt,_t),cr(_t,_t),cr(_t,_t),$r(At,_t,ft),jn=pt+144|0}function QA(At,ft){var pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n,In,On,Cn,Qn,Hn,Gn,er=0,ar=0,ur=0,Ln=0;jn=pt=jn-320|0,Al(gt=At+40|0,ft),ut[At+84>>2]=0,ut[At+88>>2]=0,ut[At+80>>2]=1,ut[At+92>>2]=0,ut[At+96>>2]=0,ut[At+100>>2]=0,ut[At+104>>2]=0,ut[At+108>>2]=0,ut[At+112>>2]=0,ut[At+116>>2]=0,cr(ur=pt+240|0,gt),$r(ar=pt+192|0,ur,1600),Ln=-1,_t=ut[pt+240>>2]-1|0,ut[pt+240>>2]=_t,ut[pt+192>>2]=ut[pt+192>>2]+1,Ot=ut[pt+244>>2],Wt=ut[pt+248>>2],Ct=ut[pt+252>>2],Lt=ut[pt+256>>2],Xt=ut[pt+260>>2],hn=ut[pt+264>>2],rn=ut[pt+268>>2],un=ut[pt+272>>2],mn=ut[pt+276>>2],cr(er=pt+144|0,ar),$r(er,er,ar),cr(At,er),$r(At,At,ar),$r(At,At,ur),J0(At,At),$r(At,At,er),$r(At,At,ur),cr(er=pt+96|0,At),$r(er,er,ar),ar=ut[pt+132>>2],ut[pt+84>>2]=ar-mn,er=ut[pt+128>>2],ut[pt+80>>2]=er-un,ur=ut[pt+124>>2],ut[pt+76>>2]=ur-rn,_n=ut[pt+120>>2],ut[pt+72>>2]=_n-hn,In=ut[pt+116>>2],ut[pt+68>>2]=In-Xt,On=ut[pt+112>>2],ut[pt+64>>2]=On-Lt,Cn=ut[pt+108>>2],ut[pt+60>>2]=Cn-Ct,Qn=ut[pt+104>>2],ut[pt+56>>2]=Qn-Wt,Hn=ut[pt+100>>2],ut[pt+52>>2]=Hn-Ot,Gn=ut[pt+96>>2],ut[pt+48>>2]=Gn-_t,sr(pt,pt+48|0);e:{if(!gu(pt,32)){if(ut[pt+36>>2]=ar+mn,ut[pt+32>>2]=er+un,ut[pt+28>>2]=ur+rn,ut[pt+24>>2]=hn+_n,ut[pt+20>>2]=Xt+In,ut[pt+16>>2]=Lt+On,ut[pt+12>>2]=Ct+Cn,ut[pt+8>>2]=Wt+Qn,ut[pt+4>>2]=Ot+Hn,ut[pt>>2]=_t+Gn,sr(ar=pt+288|0,pt),!gu(ar,32))break e;$r(At,At,1648)}sr(pt+288|0,At),(1&Ft[pt+288|0])==(bt[ft+31|0]>>>7|0)&&(ut[At>>2]=0-ut[At>>2],ut[At+36>>2]=0-ut[At+36>>2],ut[At+32>>2]=0-ut[At+32>>2],ut[At+28>>2]=0-ut[At+28>>2],ut[At+24>>2]=0-ut[At+24>>2],ut[At+20>>2]=0-ut[At+20>>2],ut[At+16>>2]=0-ut[At+16>>2],ut[At+12>>2]=0-ut[At+12>>2],ut[At+8>>2]=0-ut[At+8>>2],ut[At+4>>2]=0-ut[At+4>>2]),$r(At+120|0,At,gt),Ln=0}return jn=pt+320|0,Ln}function $A(At,ft,pt){var gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn=0;jn=gt=jn-128|0,ut[At>>2]=1,ut[At+4>>2]=0,ut[At+8>>2]=0,ut[At+12>>2]=0,ut[At+16>>2]=0,ut[At+20>>2]=0,ut[At+24>>2]=0,ut[At+28>>2]=0,ut[At+32>>2]=0,ut[At+36>>2]=0,ut[At+40>>2]=1,ms(At+44|0,0,76),Hu(At,ft=vo(ft,960)+3008|0,(255&(1^(rn=pt-((pt>>31&pt)<<1)|0)))-1>>>31|0),Hu(At,ft+120|0,(255&(2^rn))-1>>>31|0),Hu(At,ft+240|0,(255&(3^rn))-1>>>31|0),Hu(At,ft+360|0,(255&(4^rn))-1>>>31|0),Hu(At,ft+480|0,(255&(5^rn))-1>>>31|0),Hu(At,ft+600|0,(255&(6^rn))-1>>>31|0),Hu(At,ft+720|0,(255&(7^rn))-1>>>31|0),Hu(At,ft+840|0,(255&(8^rn))-1>>>31|0),ft=ut[At+76>>2],ut[gt+40>>2]=ut[At+72>>2],ut[gt+44>>2]=ft,rn=ut[4+(ft=At- -64|0)>>2],ut[gt+32>>2]=ut[ft>>2],ut[gt+36>>2]=rn,ft=ut[At+60>>2],ut[gt+24>>2]=ut[At+56>>2],ut[gt+28>>2]=ft,ft=ut[At+52>>2],ut[gt+16>>2]=ut[At+48>>2],ut[gt+20>>2]=ft,ft=ut[At+44>>2],ut[gt+8>>2]=ut[At+40>>2],ut[gt+12>>2]=ft,ft=ut[At+12>>2],ut[gt+56>>2]=ut[At+8>>2],ut[gt+60>>2]=ft,rn=ut[At+20>>2],ut[(ft=gt- -64|0)>>2]=ut[At+16>>2],ut[ft+4>>2]=rn,ft=ut[At+28>>2],ut[gt+72>>2]=ut[At+24>>2],ut[gt+76>>2]=ft,ft=ut[At+36>>2],ut[gt+80>>2]=ut[At+32>>2],ut[gt+84>>2]=ft,ft=ut[At+4>>2],ut[gt+48>>2]=ut[At>>2],ut[gt+52>>2]=ft,ft=ut[At+80>>2],rn=ut[At+84>>2],_t=ut[At+88>>2],Ot=ut[At+92>>2],Wt=ut[At+96>>2],Ct=ut[At+100>>2],Lt=ut[At+104>>2],Xt=ut[At+108>>2],hn=ut[At+112>>2],ut[gt+124>>2]=0-ut[At+116>>2],ut[gt+120>>2]=0-hn,ut[gt+116>>2]=0-Xt,ut[gt+112>>2]=0-Lt,ut[gt+108>>2]=0-Ct,ut[gt+104>>2]=0-Wt,ut[gt+100>>2]=0-Ot,ut[gt+96>>2]=0-_t,ut[gt+92>>2]=0-rn,ut[gt+88>>2]=0-ft,Hu(At,gt+8|0,(128&pt)>>>7|0),jn=gt+128|0}function Hl(At){var ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0,lr=0;return jn=ft=jn-320|0,cr(hn=ft+240|0,At),cr(rn=ft+192|0,At+40|0),cr(Xt=ft+144|0,At+80|0),At=ut[ft+240>>2],un=ut[ft+192>>2],mn=ut[ft+244>>2],_n=ut[ft+196>>2],In=ut[ft+248>>2],On=ut[ft+200>>2],Cn=ut[ft+252>>2],Qn=ut[ft+204>>2],Hn=ut[ft+256>>2],Gn=ut[ft+208>>2],er=ut[ft+260>>2],ar=ut[ft+212>>2],ur=ut[ft+264>>2],Ln=ut[ft+216>>2],zn=ut[ft+268>>2],or=ut[ft+220>>2],Cr=ut[ft+272>>2],lr=ut[ft+224>>2],ut[ft+84>>2]=ut[ft+228>>2]-ut[ft+276>>2],ut[ft+80>>2]=lr-Cr,ut[ft+76>>2]=or-zn,ut[ft+72>>2]=Ln-ur,ut[ft+68>>2]=ar-er,ut[ft+64>>2]=Gn-Hn,ut[ft+60>>2]=Qn-Cn,ut[ft+56>>2]=On-In,ut[ft+52>>2]=_n-mn,ut[ft+48>>2]=un-At,$r(At=ft+48|0,At,Xt),$r(ft,hn,rn),$r(ft,ft,1600),cr(ft+96|0,Xt),Xt=ut[ft+48>>2],hn=ut[ft+96>>2],rn=ut[ft>>2],un=ut[ft+52>>2],mn=ut[ft+100>>2],_n=ut[ft+4>>2],In=ut[ft+56>>2],On=ut[ft+104>>2],Cn=ut[ft+8>>2],Qn=ut[ft+60>>2],Hn=ut[ft+108>>2],Gn=ut[ft+12>>2],er=ut[ft+64>>2],ar=ut[ft+112>>2],ur=ut[ft+16>>2],Ln=ut[ft+68>>2],zn=ut[ft+116>>2],or=ut[ft+20>>2],Cr=ut[ft+72>>2],lr=ut[ft+120>>2],pt=ut[ft+24>>2],gt=ut[ft+76>>2],_t=ut[ft+124>>2],Ot=ut[ft+28>>2],Wt=ut[ft+80>>2],Ct=ut[ft+128>>2],Lt=ut[ft+32>>2],ut[ft+84>>2]=ut[ft+84>>2]-(ut[ft+132>>2]+ut[ft+36>>2]|0),ut[ft+80>>2]=Wt-(Ct+Lt|0),ut[ft+76>>2]=gt-(_t+Ot|0),ut[ft+72>>2]=Cr-(lr+pt|0),ut[ft+68>>2]=Ln-(zn+or|0),ut[ft+64>>2]=er-(ar+ur|0),ut[ft+60>>2]=Qn-(Hn+Gn|0),ut[ft+56>>2]=In-(On+Cn|0),ut[ft+52>>2]=un-(mn+_n|0),ut[ft+48>>2]=Xt-(hn+rn|0),sr(Xt=ft+288|0,At),At=gu(Xt,32),jn=ft+320|0,At}function fu(At,ft,pt,gt){var _t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0;if(pt|gt)e:for(hn=At+224|0,Lt=At+96|0,Ot=bt[At+352|0]|bt[At+353|0]<<8|bt[At+354|0]<<16|bt[At+355|0]<<24;;){if(_t=Ot+Lt|0,!gt&pt>>>0<=(Wt=256-Ot|0)>>>0){ss(_t,ft,pt),ft=pt+(bt[At+352|0]|bt[At+353|0]<<8|bt[At+354|0]<<16|bt[At+355|0]<<24)|0,Ft[At+352|0]=ft,Ft[At+353|0]=ft>>>8,Ft[At+354|0]=ft>>>16,Ft[At+355|0]=ft>>>24;break e}if(ss(_t,ft,Wt),_t=(bt[At+352|0]|bt[At+353|0]<<8|bt[At+354|0]<<16|bt[At+355|0]<<24)+Wt|0,Ft[At+352|0]=_t,Ft[At+353|0]=_t>>>8,Ft[At+354|0]=_t>>>16,Ft[At+355|0]=_t>>>24,Xt=Ot=bt[At+68|0]|bt[At+69|0]<<8|bt[At+70|0]<<16|bt[At+71|0]<<24,Ot=(Ct=128+(_t=bt[At+64|0]|bt[At+65|0]<<8|bt[At+66|0]<<16|bt[At+67|0]<<24)|0)>>>0<128?Ot+1|0:Ot,Ft[At+64|0]=Ct,Ft[At+65|0]=Ct>>>8,Ft[At+66|0]=Ct>>>16,Ft[At+67|0]=Ct>>>24,Ft[At+68|0]=Ot,Ft[At+69|0]=Ot>>>8,Ft[At+70|0]=Ot>>>16,Ft[At+71|0]=Ot>>>24,Ot=bt[At+76|0]|bt[At+77|0]<<8|bt[At+78|0]<<16|bt[At+79|0]<<24,Ot=(Xt=_t=(0|Xt)==-1&_t>>>0>4294967167)>>>0>(_t=_t+(bt[At+72|0]|bt[At+73|0]<<8|bt[At+74|0]<<16|bt[At+75|0]<<24)|0)>>>0?Ot+1|0:Ot,Ft[At+72|0]=_t,Ft[At+73|0]=_t>>>8,Ft[At+74|0]=_t>>>16,Ft[At+75|0]=_t>>>24,Ft[At+76|0]=Ot,Ft[At+77|0]=Ot>>>8,Ft[At+78|0]=Ot>>>16,Ft[At+79|0]=Ot>>>24,Is(At,Lt),ss(Lt,hn,128),_t=Ot=(bt[At+352|0]|bt[At+353|0]<<8|bt[At+354|0]<<16|bt[At+355|0]<<24)-128|0,Ft[At+352|0]=_t,Ft[At+353|0]=_t>>>8,Ft[At+354|0]=_t>>>16,Ft[At+355|0]=_t>>>24,ft=ft+Wt|0,!((gt=gt-(pt>>>0>>0)|0)|(pt=pt-Wt|0)))break}return 0}function TA(At){var ft=0,pt=0,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0;for(pt=ut[At+60>>2],On=ut[At+56>>2],In=ut[At+52>>2],mn=ut[At+48>>2],ft=ut[At+44>>2],gt=ut[At+40>>2],Cn=ut[At+36>>2],un=ut[At+32>>2],_t=ut[At+28>>2],Ot=ut[At+24>>2],Wt=ut[At+20>>2],Ct=ut[At+16>>2],Lt=ut[At+12>>2],Xt=ut[At+8>>2],hn=ut[At+4>>2],rn=ut[At>>2];_n=Nr(Wt+hn|0,7)^Cn,Qn=Nr(_n+Wt|0,9)^In,Ct=Nr(rn+mn|0,7)^Ct,Hn=Nr(Ct+rn|0,9)^un,Gn=Nr(Hn+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]+pt}function MA(At,ft,pt,gt){var _t,Ot=0;return jn=_t=jn-320|0,Ot=-1,sp(pt)&&(G0(pt)||yl(_t,pt)||N0(_t)&&(Ft[0|At]=bt[0|ft],Ft[At+1|0]=bt[ft+1|0],Ft[At+2|0]=bt[ft+2|0],Ft[At+3|0]=bt[ft+3|0],Ft[At+4|0]=bt[ft+4|0],Ft[At+5|0]=bt[ft+5|0],Ft[At+6|0]=bt[ft+6|0],Ft[At+7|0]=bt[ft+7|0],Ft[At+8|0]=bt[ft+8|0],Ft[At+9|0]=bt[ft+9|0],Ft[At+10|0]=bt[ft+10|0],Ft[At+11|0]=bt[ft+11|0],Ft[At+12|0]=bt[ft+12|0],Ft[At+13|0]=bt[ft+13|0],Ft[At+14|0]=bt[ft+14|0],Ft[At+15|0]=bt[ft+15|0],Ft[At+16|0]=bt[ft+16|0],Ft[At+17|0]=bt[ft+17|0],Ft[At+18|0]=bt[ft+18|0],Ft[At+19|0]=bt[ft+19|0],Ft[At+20|0]=bt[ft+20|0],Ft[At+21|0]=bt[ft+21|0],Ft[At+22|0]=bt[ft+22|0],Ft[At+23|0]=bt[ft+23|0],Ft[At+24|0]=bt[ft+24|0],Ft[At+25|0]=bt[ft+25|0],Ft[At+26|0]=bt[ft+26|0],Ft[At+27|0]=bt[ft+27|0],Ft[At+28|0]=bt[ft+28|0],Ft[At+29|0]=bt[ft+29|0],Ft[At+30|0]=bt[ft+30|0],pt=bt[ft+31|0],gt&&(Ft[0|At]=248&bt[0|At],pt|=64),Ft[At+31|0]=127&pt,fA(pt=_t+160|0,At,_t),Rl(At,pt),(127&bt[At+31|0]|bt[At+30|0]|bt[At+29|0]|bt[At+28|0]|bt[At+27|0]|bt[At+26|0]|bt[At+25|0]|bt[At+24|0]|bt[At+23|0]|bt[At+22|0]|bt[At+21|0]|bt[At+20|0]|bt[At+19|0]|bt[At+18|0]|bt[At+17|0]|bt[At+16|0]|bt[At+15|0]|bt[At+14|0]|bt[At+13|0]|bt[At+12|0]|bt[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)==2)break e;if(Ft[At+2|0]=bt[1024+(_t>>>12&63)|0],ft=At+3|0,Xt){if((0|rn)==3)break e;Ft[At+3|0]=bt[1024+(_t>>>18|0)|0],ft=At+4|0}}if(rn=un-(_t=ft)|0,_t)continue}break}Uo(Ot+16|0,32),rn=0,!gt|gt>>>0>=Lt>>>0||(Ft[0|gt]=0,rn=Wt)}}return jn=Ot+48|0,rn}function Rn(At,ft,pt){var gt,_t,Ot,Wt=0,Ct=0,Lt=0,Xt=0;jn=gt=jn-16|0,_t=ut[At+20>>2],ut[At+20>>2]=0,Ot=ut[At+4>>2],ut[At+4>>2]=0,Wt=-26;e:{t:{n:{r:switch(pt-1|0){case 1:if(Wt=-32,zu(ft,1165,9))break e;ft=ft+9|0;break n;case 0:break r;default:break e}if(Wt=-32,zu(ft,1156,8))break e;ft=ft+8|0}if(!((Wt=zu(ft,1422,3))||((Ct=bt[0|(pt=ft+3|0)])-58&255)>>>0<246)){for(Xt=Wt?ft:pt,ft=0,Wt=Ct;;){if(Lt=pt,ft>>>0>429496729||(Wt=(255&Wt)-48|0)>>>0>(-1^(ft=vo(ft,10)))>>>0)break t;if(ft=ft+Wt|0,!(((Wt=bt[0|(pt=pt+1|0)])-58&255)>>>0>245))break}if(!((0|Ct)==48&(0|Xt)!=(0|Lt)|(0|pt)==(0|Xt))){if(Wt=-26,(0|ft)!=19)break e;if(!zu(pt,1434,3)&&(pt=dp(Lt+4|0,ft=gt+12|0))&&(ut[At+44>>2]=ut[gt+12>>2],!zu(pt,1426,3)&&(pt=dp(pt+3|0,ft))&&(ut[At+40>>2]=ut[gt+12>>2],!zu(pt,1430,3)&&(pt=dp(pt+3|0,ft))&&(Wt=ut[gt+12>>2],ut[At+48>>2]=Wt,ut[At+52>>2]=Wt,bt[0|pt]==36&&(ut[gt+12>>2]=_t,!x0(Wt=ut[At+16>>2],_t,Lt=pt=pt+1|0,Ct=$u(pt),0,ft,pt=gt+8|0,3)&&(ut[At+20>>2]=ut[gt+12>>2],Wt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ft+76>>2]-ut[ft+36>>2],ut[At+72>>2]=Hn-Qn,ut[At+68>>2]=Cn-On,ut[At- -64>>2]=_t-In,ut[At+60>>2]=_n-mn,ut[At+56>>2]=un-rn,ut[At+52>>2]=hn-Xt,ut[At+48>>2]=Lt-Ct,ut[At+44>>2]=Wt-Ot,ut[At+40>>2]=gt-Gn,gt=ut[ft+84>>2],ut[At+80>>2]=ut[ft+80>>2],ut[At+84>>2]=gt,gt=ut[ft+92>>2],ut[At+88>>2]=ut[ft+88>>2],ut[At+92>>2]=gt,gt=ut[ft+100>>2],ut[At+96>>2]=ut[ft+96>>2],ut[At+100>>2]=gt,gt=ut[ft+108>>2],ut[At+104>>2]=ut[ft+104>>2],ut[At+108>>2]=gt,gt=ut[ft+116>>2],ut[At+112>>2]=ut[ft+112>>2],ut[At+116>>2]=gt,$r(At+120|0,ft+120|0,1696)}function wn(At,ft,pt){var gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n,In=0,On=0,Cn=0,Qn=0,Hn=0;In=ut[ft+12>>2],On=ut[ft+8>>2],Cn=ut[ft+4>>2],gt=jn+-64&-64,ft=ut[ft>>2],ut[gt>>2]=ut[35760+((255&ft)<<2)>>2],ut[gt+4>>2]=ut[35760+(Cn>>>6&1020)>>2],ut[gt+8>>2]=ut[35760+(On>>>14&1020)>>2],ut[gt+12>>2]=ut[35760+(In>>>22&1020)>>2],ut[gt+16>>2]=ut[35760+((255&Cn)<<2)>>2],ut[gt+20>>2]=ut[35760+(On>>>6&1020)>>2],ut[gt+24>>2]=ut[35760+(In>>>14&1020)>>2],ut[gt+28>>2]=ut[35760+(ft>>>22&1020)>>2],ut[gt+32>>2]=ut[35760+((255&On)<<2)>>2],ut[gt+36>>2]=ut[35760+(In>>>6&1020)>>2],ut[gt+40>>2]=ut[35760+(ft>>>14&1020)>>2],ut[gt+44>>2]=ut[35760+(Cn>>>22&1020)>>2],ut[gt+48>>2]=ut[35760+((255&In)<<2)>>2],ut[gt+52>>2]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[At+19|0]=bt[ft+19|0],Ft[At+20|0]=bt[ft+20|0],Ft[At+21|0]=bt[ft+21|0],Ft[At+22|0]=bt[ft+22|0],Ft[At+23|0]=bt[ft+23|0],Ft[At+24|0]=bt[ft+24|0],Ft[At+25|0]=bt[ft+25|0],Ft[At+26|0]=bt[ft+26|0],Ft[At+27|0]=bt[ft+27|0],Ft[At+28|0]=bt[ft+28|0],Ft[At+29|0]=bt[ft+29|0],Ft[At+30|0]=bt[ft+30|0],_t=bt[ft+31|0],pt&&(Ft[0|At]=248&bt[0|At],_t|=64),Ft[At+31|0]=127&_t,El(gt,At),Rl(At,gt),pt=-1,(127&bt[At+31|0]|bt[At+30|0]|bt[At+29|0]|bt[At+28|0]|bt[At+27|0]|bt[At+26|0]|bt[At+25|0]|bt[At+24|0]|bt[At+23|0]|bt[At+22|0]|bt[At+21|0]|bt[At+20|0]|bt[At+19|0]|bt[At+18|0]|bt[At+17|0]|bt[At+16|0]|bt[At+15|0]|bt[At+14|0]|bt[At+13|0]|bt[At+12|0]|bt[At+11|0]|bt[At+10|0]|bt[At+9|0]|bt[At+8|0]|bt[At+7|0]|bt[At+6|0]|bt[At+5|0]|bt[At+4|0]|bt[At+3|0]|bt[At+2|0]|bt[At+1|0]|1^bt[0|At])-1&256||(pt=gu(ft,32)?-1:0),jn=gt+160|0,pt}function $n(At,ft){var pt,gt,_t,Ot,Wt,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0;(Ct=ut[At+56>>2])|(Lt=ut[At+60>>2])&&(Ft[(hn=At- -64|0)+Ct|0]=1,!((On=Ct+1|0)?Lt:Lt+1|0)&On>>>0<=15&&ms(65+(At+Ct|0)|0,0,15-Ct|0),Ft[At+80|0]=1,T0(At,hn,16,0)),On=ut[At+52>>2],_n=ut[At+48>>2],hn=ut[At+44>>2],Ct=ut[At+24>>2],rn=ut[At+28>>2]+(Ct>>>26|0)|0,Xt=ut[At+32>>2]+(rn>>>26|0)|0,pt=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15|0]=bt[0|At]|bt[gt+15|0],Ft[gt+15|0]=bt[At+1|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+2|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+3|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+4|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+5|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+6|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+7|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+8|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+9|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+10|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+11|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+12|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+13|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+14|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+15|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+16|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+17|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+18|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+19|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+20|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+21|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+22|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+23|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+24|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+25|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+26|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+27|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+28|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+29|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+30|0]|bt[gt+15|0],Ft[gt+15|0]=bt[At+31|0]|bt[gt+15|0],_t=(bt[gt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ut[pt+8>>2]+11|0],ut[pt+4>>2]=ut[pt+4>>2]|bt[ut[pt+12>>2]+12|0]^bt[ut[pt+8>>2]+12|0],ut[pt+4>>2]=ut[pt+4>>2]|bt[ut[pt+12>>2]+13|0]^bt[ut[pt+8>>2]+13|0],ut[pt+4>>2]=ut[pt+4>>2]|bt[ut[pt+12>>2]+14|0]^bt[ut[pt+8>>2]+14|0],ut[pt+4>>2]=ut[pt+4>>2]|bt[ut[pt+12>>2]+15|0]^bt[ut[pt+8>>2]+15|0],(ut[pt+4>>2]-1>>>8&1)-1|0}function Xr(At,ft,pt){var gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0;e:{t:{n:{r:{i:{a:{d:{f:{o:{if(ft){if(!pt)break o;break f}return gs=(ft=At)-vo(At=(At>>>0)/(pt>>>0)|0,pt)|0,bs=0,ln=0,At}if(!At)break d;break a}if(!((gt=pt-1|0)&pt))break i;Ot=0-(Wt=(Io(pt)+33|0)-Io(ft)|0)|0;break n}return gs=0,bs=ft-vo(At=(ft>>>0)/0|0,0)|0,ln=0,At}if((gt=32-Io(ft)|0)>>>0<31)break r;break t}if(gs=At>,bs=0,(0|pt)==1)break e;return pt=31&(gt=ZA(pt)),(63>)>>>0>=32?At=ft>>>pt|0:(_t=ft>>>pt|0,At=((1<>>pt),ln=_t,At}Wt=gt+1|0,Ot=63-gt|0}if(gt=31&(_t=63&Wt),_t>>>0>=32?(_t=0,Ct=ft>>>gt|0):(_t=ft>>>gt|0,Ct=((1<>>gt),gt=31&(Ot&=63),Ot>>>0>=32?(ft=At<>>32-gt|ft<>>31,Ct=(_t=Ct<<1|ft>>>31)-(Xt=pt&(Ot=hn-(Lt+(_t>>>0>gt>>>0)|0)>>31))|0,_t=Lt-(_t>>>0>>0)|0,ft=ft<<1|At>>>31,At=rn|At<<1,rn=Lt=1&Ot,Wt=Wt-1|0;);return gs=Ct,bs=_t,ln=ft<<1|At>>>31,Lt|At<<1}gs=At,bs=ft,At=0,ft=0}return ln=ft,At}function lo(At,ft,pt,gt,_t){var Ot;return At|=0,ft|=0,pt|=0,gt|=0,jn=Ot=jn-480|0,Rr(Ot,_t|=0,32),Gu(Ot,ft,pt,gt),Pl(Ot,Ot+416|0),ft=ut[Ot+444>>2],pt=ut[Ot+440>>2],Ft[At+24|0]=pt,Ft[At+25|0]=pt>>>8,Ft[At+26|0]=pt>>>16,Ft[At+27|0]=pt>>>24,Ft[At+28|0]=ft,Ft[At+29|0]=ft>>>8,Ft[At+30|0]=ft>>>16,Ft[At+31|0]=ft>>>24,ft=ut[Ot+436>>2],pt=ut[Ot+432>>2],Ft[At+16|0]=pt,Ft[At+17|0]=pt>>>8,Ft[At+18|0]=pt>>>16,Ft[At+19|0]=pt>>>24,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>>8,Ft[At+22|0]=ft>>>16,Ft[At+23|0]=ft>>>24,ft=ut[Ot+428>>2],pt=ut[Ot+424>>2],Ft[At+8|0]=pt,Ft[At+9|0]=pt>>>8,Ft[At+10|0]=pt>>>16,Ft[At+11|0]=pt>>>24,Ft[At+12|0]=ft,Ft[At+13|0]=ft>>>8,Ft[At+14|0]=ft>>>16,Ft[At+15|0]=ft>>>24,ft=ut[Ot+420>>2],pt=ut[Ot+416>>2],Ft[0|At]=pt,Ft[At+1|0]=pt>>>8,Ft[At+2|0]=pt>>>16,Ft[At+3|0]=pt>>>24,Ft[At+4|0]=ft,Ft[At+5|0]=ft>>>8,Ft[At+6|0]=ft>>>16,Ft[At+7|0]=ft>>>24,jn=Ot+480|0,0}function go(At,ft,pt){At|=0,ft|=0;var gt,_t=0;return jn=gt=jn+-64|0,c0(gt,pt|=0,32,0),pt=ut[gt+28>>2],_t=ut[gt+24>>2],Ft[ft+24|0]=_t,Ft[ft+25|0]=_t>>>8,Ft[ft+26|0]=_t>>>16,Ft[ft+27|0]=_t>>>24,Ft[ft+28|0]=pt,Ft[ft+29|0]=pt>>>8,Ft[ft+30|0]=pt>>>16,Ft[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t=-8&pt)>>>0<=Ot+16>>>0||(ut[ft+4>>2]=Ot|1&pt|2,pt=ft+Ot|0,Ot=gt-Ot|0,ut[pt+4>>2]=3|Ot,ut[4+(gt=ft+gt|0)>>2]=1|ut[gt+4>>2],vA(pt,Ot))),pt=ft+8|0)),!pt)return 48;ut[At>>2]=pt,At=0}return At}function Ho(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){var rn;if(rn=ms(At,0,ft),(0|pt)==1|pt>>>0>1)return ut[9392]=22,-1;if(!(!pt&ft>>>0<=15)){if(!(!(Ot|Lt)&Xt>>>0<2147483649))return ut[9392]=22,-1;if(!(!((!Lt&Ct>>>0>=3|(0|Lt)!=0)&Xt>>>0>8191)|(0|gt)==(0|rn)))return(0|hn)==1?(Ot=Xt>>>10|0,jn=At=jn+-64|0,rn&&hu(rn,ft),(pt=Ds(ft))?(ut[At+36>>2]=0,ut[At+40>>2]=0,ut[At+28>>2]=0,ut[At+32>>2]=0,ut[At+24>>2]=16,ut[At+20>>2]=Wt,ut[At+16>>2]=_t,ut[At+12>>2]=gt,ut[At+8>>2]=ft,ut[At+4>>2]=pt,ut[At+60>>2]=0,ut[At+56>>2]=1,ut[At+52>>2]=1,ut[At+48>>2]=Ot,ut[At+44>>2]=Ct,(gt=o0(At+4|0,1))|!rn||ss(rn,pt,ft),Uo(pt,ft),_d(pt)):gt=-22,jn=At- -64|0,gt?-1:0):(ut[9392]=28,-1)}return ut[9392]=28,-1}function jo(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){var rn;if(rn=ms(At,0,ft),(0|pt)==1|pt>>>0>1)return ut[9392]=22,-1;if(!(!pt&ft>>>0<=15)){if(!(!(Ot|Lt)&Xt>>>0<2147483649))return ut[9392]=22,-1;if(!(!(!!(Ct|Lt)&Xt>>>0>8191)|(0|gt)==(0|rn)))return(0|hn)==2?(Ot=Xt>>>10|0,jn=At=jn+-64|0,rn&&hu(rn,ft),(pt=Ds(ft))?(ut[At+36>>2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])return pt?-19:-6;if(ft=-6,!(pt>>>0<8)&&(ut[At+24>>2]||(ft=-20,!ut[At+28>>2]))&&(ut[At+32>>2]||(ft=-21,!ut[At+36>>2]))){if(!(pt=ut[At+48>>2]))return-16;if(ft=-17,!(pt>>>0>16777215||(ft=-14,(gt=ut[At+44>>2])>>>0<8||(ft=-15,gt>>>0>2097152||(ft=-14,pt<<3>>>0>gt>>>0))))){if(!ut[At+40>>2])return-12;if(!(At=ut[At+52>>2]))return-28;ft=At>>>0>16777215?-29:0}}}return ft}function Dp(At,ft,pt,gt,_t,Ot){var Wt,Ct,Lt=0;return jn=Wt=jn-32|0,Lt=-1,(Ct=pt>>>0<32)&!gt||(g1(Wt,32,0,_t,Ot),zA(ft+16|0,ft+32|0,pt-32|0,gt-Ct|0,Wt)||(lp(At,ft,pt,gt,_t,Ot),Ft[At+24|0]=0,Ft[At+25|0]=0,Ft[At+26|0]=0,Ft[At+27|0]=0,Ft[At+28|0]=0,Ft[At+29|0]=0,Ft[At+30|0]=0,Ft[At+31|0]=0,Ft[At+16|0]=0,Ft[At+17|0]=0,Ft[At+18|0]=0,Ft[At+19|0]=0,Ft[At+20|0]=0,Ft[At+21|0]=0,Ft[At+22|0]=0,Ft[At+23|0]=0,Ft[At+8|0]=0,Ft[At+9|0]=0,Ft[At+10|0]=0,Ft[At+11|0]=0,Ft[At+12|0]=0,Ft[At+13|0]=0,Ft[At+14|0]=0,Ft[At+15|0]=0,Ft[0|At]=0,Ft[At+1|0]=0,Ft[At+2|0]=0,Ft[At+3|0]=0,Ft[At+4|0]=0,Ft[At+5|0]=0,Ft[At+6|0]=0,Ft[At+7|0]=0,Lt=0)),jn=Wt+32|0,Lt}function Qp(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){var rn,un,mn;return jn=rn=jn-384|0,ut[rn+4>>2]=0,yu(un=rn+16|0,Xt,hn,0),hn=bt[Xt+20|0]|bt[Xt+21|0]<<8|bt[Xt+22|0]<<16|bt[Xt+23|0]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2]=ut[8690],ut[_t+12>>2]=Ot,Ot=ut[8693],ut[_t+16>>2]=ut[8692],ut[_t+20>>2]=Ot,Ot=ut[8695],ut[_t+24>>2]=ut[8694],ut[_t+28>>2]=Ot,Ot=ut[8697],ut[_t+32>>2]=ut[8696],ut[_t+36>>2]=Ot,Ot=ut[8699],ut[_t+40>>2]=ut[8698],ut[_t+44>>2]=Ot,Ot=ut[8701],ut[_t+48>>2]=ut[8700],ut[_t+52>>2]=Ot,Ot=ut[8703],ut[_t+56>>2]=ut[8702],ut[_t+60>>2]=Ot,ut[_t+64>>2]=0,ut[_t+68>>2]=0,Ot=ut[8689],ut[_t>>2]=ut[8688],ut[_t+4>>2]=Ot,tu(_t,ft,pt,gt),Cu(_t,At),jn=_t+208|0,0}function l0(At,ft){var pt=0,gt=0;e:if(gt=255&ft){if(3&At)for(;;){if(!(pt=bt[0|At])|(0|pt)==(255&ft))break e;if(!(3&(At=At+1|0)))break}t:if(!((-1^(pt=ut[At>>2]))&pt-16843009&-2139062144))for(gt=vo(gt,16843009);;){if((-1^(pt^=gt))&pt-16843009&-2139062144)break t;if(pt=ut[At+4>>2],At=At+4|0,pt-16843009&(-1^pt)&-2139062144)break}for(;pt=At,(gt=bt[0|At])&&(At=At+1|0,(0|gt)!=(255&ft)););At=pt}else At=$u(At)+At|0;return bt[0|At]==(255&ft)?At:0}function gu(At,ft){var pt,gt=0,_t=0,Ot=0;if(Ft[15+(pt=jn-16|0)|0]=0,ft){if(_t=3&ft,ft>>>0>=4)for(Ot=-4&ft,ft=0;Ft[pt+15|0]=bt[At+gt|0]|bt[pt+15|0],Ft[pt+15|0]=bt[(1|gt)+At|0]|bt[pt+15|0],Ft[pt+15|0]=bt[(2|gt)+At|0]|bt[pt+15|0],Ft[pt+15|0]=bt[(3|gt)+At|0]|bt[pt+15|0],gt=gt+4|0,(0|Ot)!=(0|(ft=ft+4|0)););if(_t)for(ft=0;Ft[pt+15|0]=bt[At+gt|0]|bt[pt+15|0],gt=gt+1|0,(0|_t)!=(0|(ft=ft+1|0)););}return bt[pt+15|0]-1>>>8&1}function Bl(At){var ft=0;return ut[64+(At|=0)>>2]=0,ut[At+68>>2]=0,ut[At+72>>2]=0,ut[At+76>>2]=0,ft=ut[8689],ut[At>>2]=ut[8688],ut[At+4>>2]=ft,ft=ut[8691],ut[At+8>>2]=ut[8690],ut[At+12>>2]=ft,ft=ut[8693],ut[At+16>>2]=ut[8692],ut[At+20>>2]=ft,ft=ut[8695],ut[At+24>>2]=ut[8694],ut[At+28>>2]=ft,ft=ut[8697],ut[At+32>>2]=ut[8696],ut[At+36>>2]=ft,ft=ut[8699],ut[At+40>>2]=ut[8698],ut[At+44>>2]=ft,ft=ut[8701],ut[At+48>>2]=ut[8700],ut[At+52>>2]=ft,ft=ut[8703],ut[At+56>>2]=ut[8702],ut[At+60>>2]=ft,0}function sp(At){return((127&(-1^bt[At+31|0])|bt[At+1|0]&bt[At+2|0]&bt[At+3|0]&bt[At+4|0]&bt[At+5|0]&bt[At+6|0]&bt[At+7|0]&bt[At+8|0]&bt[At+9|0]&bt[At+10|0]&bt[At+11|0]&bt[At+12|0]&bt[At+13|0]&bt[At+14|0]&bt[At+15|0]&bt[At+16|0]&bt[At+17|0]&bt[At+18|0]&bt[At+19|0]&bt[At+20|0]&bt[At+21|0]&bt[At+22|0]&bt[At+23|0]&bt[At+24|0]&bt[At+25|0]&bt[At+26|0]&bt[At+27|0]&bt[At+28|0]&bt[At+30|0]&bt[At+29|0]^255)-1&236-bt[0|At]^-1)>>>8&1}function Jl(At,ft,pt){var gt,_t=0,Ot=0;if(ut[12+(gt=jn-16|0)>>2]=At,ut[gt+8>>2]=ft,At=0,Ft[gt+7|0]=0,pt){if(ft=1&pt,(0|pt)!=1)for(Ot=-2&pt,pt=0;Ft[gt+7|0]=bt[gt+7|0]|bt[ut[gt+12>>2]+At|0]^bt[ut[gt+8>>2]+At|0],_t=1|At,Ft[gt+7|0]=bt[gt+7|0]|bt[_t+ut[gt+12>>2]|0]^bt[ut[gt+8>>2]+_t|0],At=At+2|0,(0|Ot)!=(0|(pt=pt+2|0)););ft&&(Ft[gt+7|0]=bt[gt+7|0]|bt[ut[gt+12>>2]+At|0]^bt[ut[gt+8>>2]+At|0])}return(bt[gt+7|0]-1>>>8&1)-1|0}function G0(At){for(var ft=0,pt=0,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0;_t=(pt=bt[At+gt|0])^bt[0|(ft=gt+2704|0)]|_t,Ot=pt^bt[ft+192|0]|Ot,Wt=pt^bt[ft+160|0]|Wt,Ct=pt^bt[ft+128|0]|Ct,Lt=pt^bt[ft+96|0]|Lt,Xt=pt^bt[ft- -64|0]|Xt,hn=pt^bt[ft+32|0]|hn,(0|(gt=gt+1|0))!=31;);return((255&((ft=127^(At=127&bt[At+31|0]))|Ot))-1|(255&(ft|Wt))-1|(255&(ft|Ct))-1|(255&(122^At|Lt))-1|(255&(5^At|Xt))-1|(255&(At|hn))-1|(255&(At|_t))-1)>>>8&1}function Tn(At,ft,pt){var gt=0,_t=0,Ot=0,Wt=0;return _t=31&(Ot=Wt=63&pt),Ot=Ot>>>0>=32?-1>>>_t|0:(gt=-1>>>_t|0)|(1<<_t)-1<<32-_t,Ot&=At,gt&=ft,_t=31&Wt,Wt>>>0>=32?(gt=Ot<<_t,Wt=0):(gt=(1<<_t)-1&Ot>>>32-_t|gt<<_t,Wt=Ot<<_t),Ot=gt,gt=31&(_t=0-pt&63),_t>>>0>=32?(gt=-1<>>32-gt,At&=pt,ft&=gt,gt=31&_t,_t>>>0>=32?(pt=0,At=ft>>>gt|0):(pt=ft>>>gt|0,At=((1<>>gt),ln=pt|Ot,At|Wt}function Tp(At,ft,pt,gt,_t,Ot){At|=0,ft|=0,pt|=0;var Wt=0,Ct=0;e:t:{n:{if(!(!(_t|=0)&(gt|=0)>>>0<64||(Ct=1+(_t=_t-1|0)|0,Wt=_t,!(gt=(_t=gt+-64|0)>>>0<4294967232?Ct:Wt)&_t>>>0>4294967231|gt))){if(!qs(Wt=pt,pt=pt- -64|0,_t,gt,Ot|=0,0))break n;At&&ms(At,0,_t)}if(gt=-1,!ft)break t;ut[ft>>2]=0,ut[ft+4>>2]=0,gt=-1;break e}ft&&(ut[ft>>2]=_t,ut[ft+4>>2]=gt),gt=0,At&&A0(At,pt,_t)}return 0|gt}function Mp(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt){var hn,rn,un;return jn=hn=jn-352|0,Ol(un=hn+32|0,64,0,Lt,Xt),Tu(rn=hn+96|0,un),Uo(un,64),Bs(rn,Ot,Wt,Ct),Bs(rn,35648,0-Wt&15,0),Bs(rn,ft,pt,gt),Bs(rn,35648,0-pt&15,0),ut[hn+24>>2]=Wt,ut[hn+28>>2]=Ct,Bs(rn,Ot=hn+24|0,8,0),ut[hn+24>>2]=pt,ut[hn+28>>2]=gt,Bs(rn,Ot,8,0),Mu(rn,hn),Uo(rn,256),Ot=Ur(hn,_t),Uo(hn,16),At&&(Ot?(ms(At,0,pt),Ot=-1):(Vl(At,ft,pt,gt,Lt,1,Xt),Ot=0)),jn=hn+352|0,Ot}function xp(At,ft,pt,gt,_t,Ot){var Wt,Ct;return At|=0,ft|=0,pt|=0,gt|=0,Ot|=0,jn=Wt=jn-32|0,Ct=bt[0|(_t|=0)]|bt[_t+1|0]<<8|bt[_t+2|0]<<16|bt[_t+3|0]<<24,_t=bt[_t+4|0]|bt[_t+5|0]<<8|bt[_t+6|0]<<16|bt[_t+7|0]<<24,ut[Wt+24>>2]=0,ut[Wt+28>>2]=0,ut[Wt+16>>2]=Ct,ut[Wt+20>>2]=_t,ut[Wt+8>>2]=0,ut[Wt+12>>2]=0,ut[Wt>>2]=pt,ut[Wt+4>>2]=gt,ft-65>>>0<=4294967246?(ut[9392]=28,At=-1):At=bA(At,ft,0,0,0,Ot,32,Wt,Wt+16|0),jn=Wt+32|0,0|At}function Up(At,ft,pt,gt,_t){var Ot,Wt;return At|=0,ft|=0,pt|=0,gt|=0,jn=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ft),Uo(un,256),pt&&(ut[pt>>2]=16,ut[pt+4>>2]=0),jn=rn+336|0,0}function dp(At,ft){var pt,gt=0,_t=0,Ot=0,Wt=0,Ct=0;e:if(!(((pt=bt[0|At])-58&255)>>>0<246)){for(gt=pt,_t=At;;){if(Wt=_t,Ot>>>0>429496729||(gt=(255>)-48|0)>>>0>(-1^(Ot=vo(Ot,10)))>>>0)break e;if(Ot=Ot+gt|0,!(((gt=bt[0|(_t=_t+1|0)])-58&255)>>>0>245))break}(0|pt)==48&(0|At)!=(0|Wt)|(0|At)==(0|_t)||(ut[ft>>2]=Ot,Ct=_t)}return Ct}function Gl(At){var ft=0,pt=0,gt=0,_t=0;ft=65,pt=1024;e:{t:{if((0|(gt=255&At))!=bt[1024])for(gt=vo(gt,16843009);;){if((-1^(_t=gt^ut[pt>>2]))&_t-16843009&-2139062144)break t;if(pt=pt+4|0,!((ft=ft-4|0)>>>0>3))break}if(!ft)break e}for(At&=255;;){if((0|At)==bt[0|pt])return pt;if(pt=pt+1|0,!(ft=ft-1|0))break}}return 0}function Hp(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){var rn,un,mn;return jn=rn=jn-336|0,V0(mn=rn+16|0,64,0,Xt,hn),Tu(un=rn+80|0,mn),Uo(mn,64),Bs(un,Wt,Ct,Lt),ut[rn+8>>2]=Ct,ut[rn+12>>2]=Lt,Bs(un,Wt=rn+8|0,8,0),Wl(At,gt,_t,Ot,Xt,1,0,hn),Bs(un,At,_t,Ot),ut[rn+8>>2]=_t,ut[rn+12>>2]=Ot,Bs(un,Wt,8,0),Mu(un,ft),Uo(un,256),pt&&(ut[pt>>2]=16,ut[pt+4>>2]=0),jn=rn+336|0,0}function Jp(At,ft,pt,gt,_t,Ot){return!gt&pt>>>0>=32|gt?(lp(At,ft,pt,gt,_t,Ot),Q1(At+16|0,At+32|0,pt-32|0,gt-(pt>>>0<32)|0,At),Ft[At+8|0]=0,Ft[At+9|0]=0,Ft[At+10|0]=0,Ft[At+11|0]=0,Ft[At+12|0]=0,Ft[At+13|0]=0,Ft[At+14|0]=0,Ft[At+15|0]=0,Ft[0|At]=0,Ft[At+1|0]=0,Ft[At+2|0]=0,Ft[At+3|0]=0,Ft[At+4|0]=0,Ft[At+5|0]=0,Ft[At+6|0]=0,Ft[At+7|0]=0,At=0):At=-1,At}function Gp(At,ft,pt,gt,_t,Ot){ft|=0,_t|=0,Ot|=0;var Wt,Ct=0;return jn=Wt=jn-16|0,to(At|=0,Wt+8|0,A0(At- -64|0,pt|=0,gt|=0),gt,_t,Ot,0),ut[Wt+12>>2]|ut[Wt+8>>2]!=64?(ft&&(ut[ft>>2]=0,ut[ft+4>>2]=0),ms(At,0,gt- -64|0),Ct=-1):ft&&(ut[ft>>2]=gt- -64,ut[ft+4>>2]=_t-((gt>>>0<4294967232)-1|0)),jn=Wt+16|0,0|Ct}function $u(At){var ft=0,pt=0,gt=0;e:{t:if(3&(ft=At)){if(!bt[0|ft])return 0;for(;;){if(!(3&(ft=ft+1|0)))break t;if(!bt[0|ft])break}break e}for(;pt=ft,ft=ft+4|0,!((-1^(gt=ut[pt>>2]))>-16843009&-2139062144););for(;pt=(ft=pt)+1|0,bt[0|ft];);}return ft-At|0}function UA(At,ft){var pt,gt=0,_t=0,Ot=0,Wt=0;return(pt=Gl(bt[0|ft]))&&(gt=Gl(bt[ft+1|0]))&&(_t=Gl(bt[ft+2|0]))&&(Ot=Gl(bt[ft+3|0]))&&(Wt=Gl(bt[ft+4|0]))?(ut[At>>2]=pt-1024|gt-1024<<6|_t-1024<<12|Ot-1024<<18|Wt-1024<<24,ft+5|0):(ut[At>>2]=0,0)}function qp(At,ft,pt){var gt;for(ut[12+(gt=jn-16|0)>>2]=At,ut[gt+8>>2]=ft,At=0,ut[gt+4>>2]=0;ut[gt+4>>2]=ut[gt+4>>2]|bt[ut[gt+12>>2]+At|0]^bt[ut[gt+8>>2]+At|0],ft=1|At,ut[gt+4>>2]=ut[gt+4>>2]|bt[ft+ut[gt+12>>2]|0]^bt[ft+ut[gt+8>>2]|0],(0|pt)!=(0|(At=At+2|0)););return(ut[gt+4>>2]-1>>>8&1)-1|0}function Vp(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){var rn=0,un=0,mn=0;return un=-1,(rn=gt>>>0<32)&!_t||!(rn=_t-rn|0)&(mn=gt-32|0)>>>0>4294967263|rn|!Ct&Wt>>>0>4294967263|Ct||(un=0|eu[ut[hn>>2]](At,pt,mn,(pt+gt|0)-32|0,32,Ot,Wt,Lt,Xt)),ft&&(ut[ft>>2]=un?0:gt-32|0,ut[ft+4>>2]=un?0:_t-(gt>>>0<32)|0),un}function Kp(At,ft){var pt,gt=0,_t=0,Ot=0;jn=pt=jn-896|0,Al(gt=pt+848|0,ft),Al(_t=pt+800|0,ft+32|0),CA(Ot=pt+320|0,gt),CA(ft=pt+160|0,_t),Dn(gt=pt+640|0,ft),Ys(ft=pt+480|0,Ot,gt),$r(pt,ft,gt=pt+600|0),$r(pt+40|0,_t=pt+520|0,Ot=pt+560|0),$r(pt+80|0,Ot,gt),$r(pt+120|0,ft,_t),Ll(At,pt),jn=pt+896|0}function Wp(At){var ft=0,pt=0,gt=0,_t=0;for(ft=1;ft=bt[0|(pt=At+gt|0)]+ft|0,Ft[0|pt]=ft,ft=bt[0|(pt=(1|gt)+At|0)]+(ft>>>8|0)|0,Ft[0|pt]=ft,ft=bt[0|(pt=(2|gt)+At|0)]+(ft>>>8|0)|0,Ft[0|pt]=ft,ft=bt[0|(pt=(3|gt)+At|0)]+(ft>>>8|0)|0,Ft[0|pt]=ft,ft=ft>>>8|0,gt=gt+4|0,(0|(_t=_t+4|0))!=4;);}function zp(At,ft,pt,gt,_t,Ot,Wt){var Ct;return jn=Ct=jn-16|0,At=ms(At,0,128),!(gt|Ot)&Wt>>>0<2147483649?(!Ot&_t>>>0>=3|(0|Ot)!=0)&Wt>>>0>8191?(hu(Ct,16),At=IA(_t,Wt>>>10|0,ft,pt,Ct,At,1)?-1:0):(ut[9392]=28,At=-1):(ut[9392]=22,At=-1),jn=Ct+16|0,At}function Yp(At,ft){var pt=0;4&ft&&((ft=ut[At>>2])&&Uo(ut[ft+4>>2],ut[At+16>>2]<<10),(ft=ut[At+4>>2])&&Uo(ft,ut[At+20>>2]<<3)),_d(ut[At+4>>2]),ut[At+4>>2]=0,(ft=ut[At>>2])&&(pt=ut[ft>>2])&&_d(pt),_d(ft),ut[At>>2]=0}function Zp(At){var ft=0,pt=0,gt=0,_t=0,Ot=0,Wt=0,Ct=0,Lt=0;for(ft=32,pt=1;Lt=(_t=bt[(gt=ft-2|0)+At|0])-(Ot=bt[gt+2928|0])>>8&(ft=((Wt=bt[2928+(ft=ft-1|0)|0])^(Ct=bt[At+ft|0]))-1>>8&pt)|255&(Ct-Wt>>>8&pt|Lt),pt=ft&(_t^Ot)-1>>8,ft=gt;);return(255&Lt)!=0}function Xp(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return!_t>>>>0>4294967263|(0|_t)!=0|!Ct&Wt>>>0>=4294967264|(0|Ct)!=0?(Fs(),Sr()):(At=0|eu[ut[hn>>2]](At,At+gt|0,32,pt,gt,Ot,Wt,Lt,Xt),ft&&(gt=(pt=gt+32|0)>>>0<32?_t+1|0:_t,ut[ft>>2]=At?0:pt,ut[ft+4>>2]=At?0:gt)),At}function jp(At,ft,pt,gt,_t,Ot,Wt){var Ct;return jn=Ct=jn-16|0,At=ms(At,0,128),!(gt|Ot)&Wt>>>0<2147483649?!!(_t|Ot)&Wt>>>0>8191?(hu(Ct,16),At=IA(_t,Wt>>>10|0,ft,pt,Ct,At,2)?-1:0):(ut[9392]=28,At=-1):(ut[9392]=22,At=-1),jn=Ct+16|0,At}function LA(At){var ft=0;return ut[32+(At|=0)>>2]=0,ut[At+36>>2]=0,ft=ut[8601],ut[At>>2]=ut[8600],ut[At+4>>2]=ft,ft=ut[8603],ut[At+8>>2]=ut[8602],ut[At+12>>2]=ft,ft=ut[8605],ut[At+16>>2]=ut[8604],ut[At+20>>2]=ft,ft=ut[8607],ut[At+24>>2]=ut[8606],ut[At+28>>2]=ft,0}function _g(At,ft,pt,gt,_t,Ot,Wt){var Ct,Lt,Xt=0,hn=0;return jn=Ct=jn+-64|0,Xt=-1,(Lt=pt>>>0<16)&!gt||Xn(hn=Ct+32|0,Wt,Ot)||yu(Ct,35584,hn,0)||(Xt=Js(At,ft+16|0,ft,pt-16|0,gt-Lt|0,_t,Ct),Uo(Ct,32)),jn=Ct- -64|0,Xt}function Sn(At,ft,pt,gt){var _t,Ot,Wt,Ct,Lt=0,Xt=0;return Ct=vo(Lt=pt>>>16|0,Xt=At>>>16|0),Lt=(65535&(Xt=((Wt=vo(_t=65535&pt,Ot=65535&At))>>>16|0)+vo(Xt,_t)|0))+vo(Lt,Ot)|0,ln=(vo(ft,pt)+Ct|0)+vo(At,gt)+(Xt>>>16)+(Lt>>>16)|0,65535&Wt|Lt<<16}function Vl(At,ft,pt,gt,_t,Ot,Wt){var Ct=0,Lt=0;if(Ct=gt,!((((Ct=(Lt=pt+63|0)>>>0<63?Ct+1|0:Ct)>>>6|0)+((0|(Ct=(63&Ct)<<26|Lt>>>6))!=0)|0)==1&Ot>>>0>(Lt=0-Ct|0)>>>0|(0|gt)==1|gt>>>0>1))return 0|eu[ut[8928]](At,ft,pt,gt,_t,Ot,Wt);Fs(),Sr()}function zu(At,ft,pt){var gt=0,_t=0;if(!pt)return 0;if(gt=bt[0|At])e:{for(;;){if((0|(_t=bt[0|ft]))!=(0|gt)|!_t||!(pt=pt-1|0))break e;if(ft=ft+1|0,gt=bt[At+1|0],At=At+1|0,!gt)break}gt=0}else gt=0;return gt-bt[0|ft]|0}function e1(At,ft,pt,gt,_t,Ot,Wt){var Ct;return At|=0,ft|=0,pt|=0,gt|=0,_t|=0,jn=Ct=jn+-64|0,Xn(Ct+32|0,Wt|=0,Ot|=0)?Ot=-1:(Ot=-1,Uu(Ct,35664,Ct+32|0,0)||(Ot=Dp(At,ft,pt,gt,_t,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jn=Ct=jn-32|0,Xt=-1,(Lt=pt>>>0<16)&!gt||Z0(Ct,Ot,Wt)||(Xt=As(At,ft+16|0,ft,pt-16|0,gt-Lt|0,_t,Ct),Uo(Ct,32)),jn=Ct+32|0,Xt}function f0(At){var ft,pt;return(At=(ft=ut[8924])+(pt=At+7&-8)|0)>>>0<=ft>>>0&&pt||At>>>0>i2()<<16>>>0&&!(0|Ko(0|At))?(ut[9392]=48,-1):(ut[8924]=At,ft)}function Rl(At,ft){var pt,gt,_t;jn=pt=jn-176|0,_l(gt=pt+96|0,ft+80|0),$r(_t=pt+48|0,ft,gt),$r(pt,ft+40|0,gt),sr(At,pt),sr(pt+144|0,_t),Ft[At+31|0]=bt[At+31|0]^bt[pt+144|0]<<7,jn=pt+176|0}function o1(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt){var hn,rn,un=0,mn=0,_n=0;return jn=hn=jn-16|0,un=-1,Ap(rn=hn+4|0)||(mn=-1,_n=wA(rn,At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt),un=GA(rn)?mn:_n),jn=hn+16|0,un}function a1(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn){return pt&&(ut[pt>>2]=32,ut[pt+4>>2]=0),!Lt&Ct>>>0<4294967264&!Ot&_t>>>0<=4294967263||(Fs(),Sr()),0|eu[ut[rn>>2]](At,ft,32,gt,_t,Wt,Ct,Xt,hn)}function A0(At,ft,pt){var gt=0;if(At>>>0>>0)return ss(At,ft,pt);if(pt)for(gt=At+pt|0,ft=ft+pt|0;ft=ft-1|0,Ft[0|(gt=gt-1|0)]=bt[0|ft],pt=pt-1|0;);return At}function s1(At,ft,pt,gt,_t,Ot,Wt){var Ct,Lt=0;if(jn=Ct=jn-32|0,!gt&pt>>>0<4294967280)return Lt=-1,Z0(Ct,Ot,Wt)||(Lt=es(At+16|0,At,ft,pt,gt,_t,Ct),Uo(Ct,32)),jn=Ct+32|0,Lt;Fs(),Sr()}function d1(At,ft,pt,gt,_t,Ot){return ft|=0,0|(!(gt|=0)&(pt|=0)>>>0>=16|gt?As(At|=0,ft+16|0,ft,pt-16|0,gt-(pt>>>0<16)|0,_t|=0,Ot|=0):-1)}function u1(At,ft,pt,gt,_t,Ot){return ft|=0,0|(!(gt|=0)&(pt|=0)>>>0>=16|gt?Js(At|=0,ft+16|0,ft,pt-16|0,gt-(pt>>>0<16)|0,_t|=0,Ot|=0):-1)}function c1(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return!gt&pt>>>0>4294967263|gt|!Ct&Wt>>>0>4294967263|Ct?-1:0|eu[ut[hn>>2]](At,ft,pt,_t,32,Ot,Wt,Lt,Xt)}function l1(At,ft,pt){At|=0;var gt,_t=0;return jn=gt=jn-32|0,_t=-1,Xn(gt,pt|=0,ft|=0)||(_t=Uu(At,35664,gt,0)),jn=gt+32|0,0|_t}function Pl(At,ft){var pt;return ft|=0,jn=pt=jn+-64|0,Cu(At|=0,pt),tu(At=At+208|0,pt,64,0),Cu(At,ft),Uo(pt,64),jn=pt- -64|0,0}function f1(At,ft,pt,gt){var _t;return ft|=0,pt|=0,gt|=0,jn=_t=jn+-64|0,Cu(At|=0,_t),At=to(ft,pt,_t,64,0,gt,1),jn=_t- -64|0,0|At}function FA(At,ft){var pt,gt,_t;$r(At,ft,pt=ft+120|0),$r(At+40|0,gt=ft+40|0,_t=ft+80|0),$r(At+80|0,_t,pt),$r(At+120|0,ft,gt)}function h0(At,ft){var pt;return ft|=0,jn=pt=jn-32|0,Fu(At|=0,pt),Ru(At=At+104|0,pt,32,0),Fu(At,ft),Uo(pt,32),jn=pt+32|0,0}function A1(At,ft,pt,gt,_t,Ot,Wt){return 0|jp(At|=0,ft|=0,(At=0)|(pt|=0),gt|=0,At|(_t|=0),Ot|=0,Wt|=0)}function ss(At,ft,pt){var gt=0;if(pt)for(gt=At;Ft[0|gt]=bt[0|ft],gt=gt+1|0,ft=ft+1|0,pt=pt-1|0;);return At}function lp(At,ft,pt,gt,_t,Ot){var Wt;return jn=Wt=jn-32|0,Uu(Wt,_t,Ot,0),At=Y0(At,ft,pt,gt,_t+16|0,0,0,Wt),Uo(Wt,32),jn=Wt+32|0,At}function h1(At){for(At|=0;hu(At,32),Ft[At+31|0]=31&bt[At+31|0],!Zp(At)||gu(At,32););}function p1(At,ft,pt){var gt;return ft|=0,pt|=0,jn=gt=jn+-64|0,Cu(At|=0,gt),At=qs(ft,gt,64,0,pt,1),jn=gt- -64|0,0|At}function g1(At,ft,pt,gt,_t){var Ot;return jn=Ot=jn-32|0,Uu(Ot,gt,_t,0),At=pp(At,ft,pt,gt+16|0,Ot),Uo(Ot,32),jn=Ot+32|0,At}function ms(At,ft,pt){var gt=0;if(pt)for(gt=At;Ft[0|gt]=ft,gt=gt+1|0,pt=pt-1|0;);return At}function q0(At,ft,pt){return At|=0,ft|=0,(pt|=0)>>>0>=256&&(Wo(1349,1262,107,1123),Sr()),0|O0(At,ft,255&pt)}function m1(At,ft,pt,gt,_t,Ot,Wt){return 0|es(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0)}function y1(At,ft,pt,gt,_t,Ot,Wt){return 0|As(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0)}function Wl(At,ft,pt,gt,_t,Ot,Wt,Ct){return(0|gt)==1|gt>>>0>1&&(Fs(),Sr()),0|eu[ut[8927]](At,ft,pt,gt,_t,Ot,Wt,Ct)}function C1(At,ft,pt,gt,_t,Ot,Wt){return 0|rs(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0)}function S1(At,ft,pt,gt,_t,Ot,Wt){return 0|Js(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0)}function HA(At,ft,pt,gt,_t,Ot){return(0|gt)==1|gt>>>0>1&&(Fs(),Sr()),0|eu[ut[8927]](At,ft,pt,gt,_t,0,0,Ot)}function JA(At,ft,pt,gt,_t,Ot){return(0|gt)==1|gt>>>0>1&&(Fs(),Sr()),0|eu[ut[8928]](At,ft,pt,gt,_t,0,Ot)}function b1(At,ft,pt,gt,_t,Ot){return to(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,0),0}function GA(At){var ft;return(ft=ut[At>>2])&&_d(ft),ut[At+8>>2]=0,ut[At>>2]=0,ut[At+4>>2]=0,0}function Nr(At,ft){var pt=0;return(-1>>>(pt=31&ft)&At)<>>At}function qA(At,ft,pt,gt,_t,Ot){return 0|Jp(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0)}function VA(At,ft,pt,gt,_t,Ot){return 0|Dp(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0)}function v1(At,ft,pt,gt,_t,Ot){return 0|lp(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0)}function V0(At,ft,pt,gt,_t){return(0|pt)==1|pt>>>0>1&&(Fs(),Sr()),0|eu[ut[8925]](At,ft,pt,gt,_t)}function Ol(At,ft,pt,gt,_t){return(0|pt)==1|pt>>>0>1&&(Fs(),Sr()),0|eu[ut[8926]](At,ft,pt,gt,_t)}function I1(At,ft,pt,gt,_t,Ot){(0|gt)==1|gt>>>0>1&&(Fs(),Sr()),eu[ut[8928]](At,ft,pt,gt,_t,1,Ot)}function w1(At,ft,pt,gt,_t){return 0|qs(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,0)}function E1(At,ft,pt,gt,_t){return 0|Q1(At|=0,ft|=0,pt|=0,gt|=0,_t|=0)}function B1(At,ft,pt,gt,_t){return 0|zA(At|=0,ft|=0,pt|=0,gt|=0,_t|=0)}function k1(At,ft,pt,gt,_t){return 0|g1(At|=0,ft|=0,pt|=0,gt|=0,_t|=0)}function R1(){var At;jn=At=jn-16|0,Ft[At+15|0]=0,ko(36836,At+15|0,0),jn=At+16|0}function K0(At,ft,pt,gt){return D0(At|=0,ft|=0,pt|=0,gt|=0,20),0}function W0(At,ft,pt,gt){return D0(At|=0,ft|=0,pt|=0,gt|=0,12),0}function z0(At,ft,pt,gt){return D0(At|=0,ft|=0,pt|=0,gt|=0,8),0}function P1(At,ft,pt,gt){return 0|c0(At|=0,ft|=0,pt|=0,gt|=0)}function O1(At,ft,pt,gt){return 0|Bs(At|=0,ft|=0,pt|=0,gt|=0)}function fp(At,ft,pt,gt){return 0|tu(At|=0,ft|=0,pt|=0,gt|=0)}function zl(At,ft,pt,gt){return 0|Fl(At|=0,ft|=0,pt|=0,gt|=0)}function Y0(At,ft,pt,gt,_t,Ot,Wt,Ct){return 0|eu[ut[8937]](At,ft,pt,gt,_t,Ot,Wt,Ct)}function N1(At,ft,pt,gt){return 0|Gu(At|=0,ft|=0,pt|=0,gt|=0)}function KA(At,ft,pt,gt,_t,Ot){return 0|eu[ut[8937]](At,ft,pt,gt,_t,0,0,Ot)}function Ap(At){return ut[At+8>>2]=0,ut[At>>2]=0,ut[At+4>>2]=0,0}function Z0(At,ft,pt){return 0|l1(At|=0,ft|=0,pt|=0)}function hp(At,ft,pt){return 0|Xn(At|=0,ft|=0,pt|=0)}function Yl(At,ft,pt){return 0|q0(At|=0,ft|=0,pt|=0)}function D1(At,ft,pt){return 0|Rr(At|=0,ft|=0,pt|=0)}function Fs(){var At;(At=ut[9526])&&eu[0|At](),Jo(),Sr()}function WA(At,ft){return At|=0,hu(ft|=0,32),0|YA(At,ft)}function Q1(At,ft,pt,gt,_t){return 0|eu[ut[8929]](At,ft,pt,gt,_t)}function zA(At,ft,pt,gt,_t){return 0|eu[ut[8930]](At,ft,pt,gt,_t)}function pp(At,ft,pt,gt,_t){return 0|eu[ut[8936]](At,ft,pt,gt,_t)}function YA(At,ft){return At|=0,ft|=0,0|eu[ut[8935]](At,ft)}function Tu(At,ft){return At|=0,ft|=0,0|eu[ut[8931]](At,ft)}function Mu(At,ft){return At|=0,ft|=0,0|eu[ut[8933]](At,ft)}function gp(At,ft,pt,gt,_t,Ot,Wt){return L0(At,ft,pt,gt,_t,Ot,Wt)}function ZA(At){return At?31-Io(At-1^At)|0:32}function Bs(At,ft,pt,gt){return 0|eu[ut[8932]](At,ft,pt,gt)}function p0(At,ft){return 0|qp(At|=0,ft|=0,32)}function $1(At,ft){return 0|qp(At|=0,ft|=0,64)}function T1(At,ft,pt){co(At|=0,ft|=0,pt|=0)}function mp(At,ft){return 0|YA(At|=0,ft|=0)}function M1(At,ft){return 0|WA(At|=0,ft|=0)}function x1(At,ft,pt,gt){return Kn(At,ft,pt,gt,2)}function Ju(At,ft,pt,gt){return Ru(At,ft,pt,gt),0}function Gu(At,ft,pt,gt){return tu(At,ft,pt,gt),0}function U1(At,ft,pt,gt){return Kn(At,ft,pt,gt,1)}function L1(At,ft,pt,gt){return $p(At,ft,pt,gt,1)}function F1(At,ft,pt,gt){return $p(At,ft,pt,gt,2)}function Su(At,ft,pt,gt){return fu(At,ft,pt,gt)}function J1(At){return Bl(At|=0),0}function yp(){return 1073741824}function _p(){return-2147483648}function G1(){return 268435456}function Xs(At){hu(At|=0,32)}function q1(){return 67108864}function V1(At){hu(At|=0,16)}function K1(){return 16777216}function W1(){return 33554432}function Uo(At,ft){ms(At,0,ft)}function z1(){return 1559}function Y1(){return 1321}function Cp(){return 8192}function Z1(){return 384}function X1(){return 416}function j1(){return 256}function Sp(){return 128}function X0(){return 208}function ou(){return 64}function Ps(){return 16}function ns(){return 32}function e2(){return 12}function t2(){return-65}function Cl(){return-17}function n2(){return 48}function r2(){return-33}function qu(){return 24}function bp(){return 4}function Au(){return-1}function g0(){return 1}function m0(){return 2}function XA(){return 3}function Yu(){return 8}function Pu(){return 0}_r(vn=bt,1024,"Li8wMTIzNDU2Nzg5QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5egBqcwByYW5kb21ieXRlcwBiNjRfcG9zIDw9IGI2NF9sZW4AY3J5cHRvX2dlbmVyaWNoYXNoX2JsYWtlMmJfZmluYWwAJGFyZ29uMmkAJGFyZ29uMmlkAHJhbmRvbWJ5dGVzL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x/13kqwDeuz///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ="),_r(vn,2959,"EP1AXQCgaj8AOdNX/gzSugBYvHT+QdgBAP/IPQHYQpT/APtcACSy4f8AAAAAAAAAAIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+AwfW//EyTf9Vy8X/04f6/xkwZP+71bT+EVhpAFPRngEFc2IABK48/qs3bv/ZtRH/FLyqAJKcZv5X1q7/cnqbAeksqgB/CO8B1uzqAK8F2wAxaj3/BkLQ/wJqbv9R6hP/12vA/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41QYgFM2/IAxqJyAC7amACbK/H+m6Bo/7IJ/P5kbtQADgWnAOnvo/8cl50BZZIK//6eRv5H+eQAWB4yAEQ6oP+/GGgBgUKB/8AyVf8Is4r/JvrJAHNQoACD5nEAfViTAFpExwD9TJ4AHP92AHH6/gBCSy4A5torAOV4ugGURCsAiHzuAbtrxf9UNfb/M3T+/zO7pQACEa8AQlSgAfc6HgAjQTX+Rey/AC2G9QGje90AIG4U/zQXpQC61kcA6bBgAPLvNgE5WYoAUwBU/4igZABcjnj+aHy+ALWxPv/6KVUAmIIqAWD89gCXlz/+74U+ACA4nAAtp73/joWzAYNW0wC7s5b++qoO/0RxFf/eujv/QgfxAUUGSABWnGz+N6dZAG002/4NsBf/xCxq/++VR/+kjH3/n60BADMp5wCRPiEAim9dAblTRQCQcy4AYZcQ/xjkGgAx2eIAcUvq/sGZDP+2M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L7f+RfsL/3Sr9/xljlwBh/d8BSnMx/wavSP87sMsAfLf5AeTkYwCBDM/+qMDD/8ywEP6Y6qsATSVV/yF4h/+OwuMBH9Y6ANW7ff/oLjz/vnQq/peyE/8zPu3+zOzBAMLoPACsIp3/vRC4/mcDX/+N6ST+KRkL/xXDpgB29S0AQ9WV/58MEv+7pOMBoBkFAAxOwwErxeEAMI4p/sSbPP/fxxIBkYicAPx1qf6R4u4A7xdrAG21vP/mcDH+Sart/+e34/9Q3BQAwmt/AX/NZQAuNMUB0qsk/1gDWv84l40AYLv//ypOyAD+RkYB9H2oAMxEigF810YAZkLI/hE05AB13I/+y/h7ADgSrv+6l6T/M+jQAaDkK//5HRkBRL4/AA0AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQ=="),_r(vn,33980,"AQAAAHbBXwBlcAL/UPyh/vJqxv+FBrIA5N9wAN/uVf4z8xoAPiuL/stBCg=="),_r(vn,34032,"M03tAJGqVv82JjP/8YBl/yl5Sv/sTpsAqZdp/pwpSADCZq//zqJl/wAAAAAAAAAAGy57ARKo/f/Tr5f+w9tgADh2vv7+0fX/mWR+/uiBFf81uPL/x6Td"),_r(vn,34160,"AQ=="),_r(vn,34192,"4Ot6fDtBuK4WVuP68Z/EatoJjeucMrH9hmIFFl9JuABfnJW8o1CMJLHQsVWcg+9bBERcxFgcjobYIk7d0J8RV+z///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ="),_r(vn,34383,"EA=="),_r(vn,34400,"Z+YJaoWuZ7ty8248OvVPpX9SDlGMaAWbq9mDHxnN4FuYL4pCkUQ3cc/7wLWl27XpW8JWOfER8Vmkgj+S1V4cq5iqB9gBW4MSvoUxJMN9DFV0X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bt[_t+31|0]<<24,Ft[Ot+80|0]=0,ut[Ot+56>>2]=0,ut[Ot+60>>2]=0,ut[Ot+52>>2]=_t,F0(Ot,ft,pt,gt),$n(Ot,At),jn=Wt,0},function(At,ft,pt,gt,_t){var Ot,Wt,Ct;return At|=0,ft|=0,pt|=0,gt|=0,_t|=0,jn=Ot=(Wt=jn)-192&-64,ut[Ot+64>>2]=67108863&(bt[0|_t]|bt[_t+1|0]<<8|bt[_t+2|0]<<16|bt[_t+3|0]<<24),ut[Ot+68>>2]=(bt[_t+3|0]|bt[_t+4|0]<<8|bt[_t+5|0]<<16|bt[_t+6|0]<<24)>>>2&67108611,ut[Ot+72>>2]=(bt[_t+6|0]|bt[_t+7|0]<<8|bt[_t+8|0]<<16|bt[_t+9|0]<<24)>>>4&67092735,ut[Ot+76>>2]=(bt[_t+9|0]|bt[_t+10|0]<<8|bt[_t+11|0]<<16|bt[_t+12|0]<<24)>>>6&66076671,Ct=bt[_t+12|0]|bt[_t+13|0]<<8|bt[_t+14|0]<<16|bt[_t+15|0]<<24,ut[Ot+84>>2]=0,ut[Ot+88>>2]=0,ut[Ot+92>>2]=0,ut[Ot+96>>2]=0,ut[Ot+100>>2]=0,ut[Ot+80>>2]=Ct>>>8&1048575,ut[Ot+104>>2]=bt[_t+16|0]|bt[_t+17|0]<<8|bt[_t+18|0]<<16|bt[_t+19|0]<<24,ut[Ot+108>>2]=bt[_t+20|0]|bt[_t+21|0]<<8|bt[_t+22|0]<<16|bt[_t+23|0]<<24,ut[Ot+112>>2]=bt[_t+24|0]|bt[_t+25|0]<<8|bt[_t+26|0]<<16|bt[_t+27|0]<<24,_t=bt[_t+28|0]|bt[_t+29|0]<<8|bt[_t+30|0]<<16|bt[_t+31|0]<<24,Ft[Ot+144|0]=0,ut[Ot+120>>2]=0,ut[Ot+124>>2]=0,ut[Ot+116>>2]=_t,F0(_t=Ot- -64|0,ft,pt,gt),$n(_t,ft=Ot+48|0),At=Ur(At,ft),jn=Wt,0|At},function(At,ft){var pt;return ft|=0,ut[(At|=0)>>2]=67108863&(bt[0|ft]|bt[ft+1|0]<<8|bt[ft+2|0]<<16|bt[ft+3|0]<<24),ut[At+4>>2]=(bt[ft+3|0]|bt[ft+4|0]<<8|bt[ft+5|0]<<16|bt[ft+6|0]<<24)>>>2&67108611,ut[At+8>>2]=(bt[ft+6|0]|bt[ft+7|0]<<8|bt[ft+8|0]<<16|bt[ft+9|0]<<24)>>>4&67092735,ut[At+12>>2]=(bt[ft+9|0]|bt[ft+10|0]<<8|bt[ft+11|0]<<16|bt[ft+12|0]<<24)>>>6&66076671,pt=bt[ft+12|0]|bt[ft+13|0]<<8|bt[ft+14|0]<<16|bt[ft+15|0]<<24,ut[At+20>>2]=0,ut[At+24>>2]=0,ut[At+28>>2]=0,ut[At+32>>2]=0,ut[At+36>>2]=0,ut[At+16>>2]=pt>>>8&1048575,ut[At+40>>2]=bt[ft+16|0]|bt[ft+17|0]<<8|bt[ft+18|0]<<16|bt[ft+19|0]<<24,ut[At+44>>2]=bt[ft+20|0]|bt[ft+21|0]<<8|bt[ft+22|0]<<16|bt[ft+23|0]<<24,ut[At+48>>2]=bt[ft+24|0]|bt[ft+25|0]<<8|bt[ft+26|0]<<16|bt[ft+27|0]<<24,ft=bt[ft+28|0]|bt[ft+29|0]<<8|bt[ft+30|0]<<16|bt[ft+31|0]<<24,Ft[At+80|0]=0,ut[At+56>>2]=0,ut[At+60>>2]=0,ut[At+52>>2]=ft,0},function(At,ft,pt,gt){return F0(At|=0,ft|=0,pt|=0,gt|=0),0},function(At,ft){return $n(At|=0,ft|=0),0},function(At,ft,pt){At|=0,ft|=0,pt|=0;var gt,_t=0,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0,er=0,ar=0,ur=0,Ln=0,zn=0,or=0,Cr=0,lr=0,Pr=0,Dr=0,Fr=0,qr=0,Mr=0,hr=0,Er=0,jr=0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t[_t+9|0]<<8|bt[_t+10|0]<<16|bt[_t+11|0]<<24,ut[gt+348>>2]=Ot,Ft[gt+336|0]=248&ft,Ft[gt+367|0]=63&bt[gt+367|0]|64,Al(gt+288|0,pt),ut[gt+260>>2]=0,ut[gt+264>>2]=0,ut[gt+268>>2]=0,ut[gt+272>>2]=0,ut[gt+276>>2]=0,ut[gt+208>>2]=0,ut[gt+212>>2]=0,ut[gt+216>>2]=0,ut[gt+220>>2]=0,ut[gt+224>>2]=0,ut[gt+228>>2]=0,ft=ut[gt+308>>2],ut[gt+160>>2]=ut[gt+304>>2],ut[gt+164>>2]=ft,ft=ut[gt+316>>2],ut[gt+168>>2]=ut[gt+312>>2],ut[gt+172>>2]=ft,ft=ut[gt+324>>2],ut[gt+176>>2]=ut[gt+320>>2],ut[gt+180>>2]=ft,ut[gt+244>>2]=0,ut[gt+248>>2]=0,ut[gt+240>>2]=1,ut[gt+252>>2]=0,ut[gt+256>>2]=0,ut[gt+192>>2]=0,ut[gt+196>>2]=0,ut[gt+200>>2]=0,ut[gt+204>>2]=0,ft=ut[gt+292>>2],ut[gt+144>>2]=ut[gt+288>>2],ut[gt+148>>2]=ft,ft=ut[gt+300>>2],ut[gt+152>>2]=ut[gt+296>>2],ut[gt+156>>2]=ft,ut[gt+116>>2]=0,ut[gt+120>>2]=0,ut[gt+124>>2]=0,ut[gt+128>>2]=0,ut[gt+132>>2]=0,ut[gt+100>>2]=0,ut[gt+104>>2]=0,ut[gt+96>>2]=1,ut[gt+108>>2]=0,ut[gt+112>>2]=0,pt=254;Do=ut[gt+276>>2],Wt=ut[gt+180>>2],En=ut[gt+96>>2],Bn=ut[gt+192>>2],Wn=ut[gt+144>>2],Yr=ut[gt+240>>2],So=ut[gt+100>>2],Qo=ut[gt+196>>2],$o=ut[gt+148>>2],To=ut[gt+244>>2],zn=ut[gt+104>>2],xo=ut[gt+200>>2],or=ut[gt+152>>2],zo=ut[gt+248>>2],Pr=ut[gt+108>>2],_i=ut[gt+204>>2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>2],Cn=ut[gt+104>>2],Qn=ut[gt+204>>2],In=ut[gt+108>>2],Lt=ut[gt+208>>2],Wt=ut[gt+112>>2],_n=ut[gt+212>>2],mn=ut[gt+116>>2],un=ut[gt+216>>2],rn=ut[gt+120>>2],Ct=ut[gt+220>>2],Xt=ut[gt+124>>2],Ot=ut[gt+224>>2],_t=ut[gt+128>>2],pt=ut[gt+228>>2],ft=ut[gt+132>>2],ut[gt+180>>2]=pt+ft,ut[gt+176>>2]=_t+Ot,ut[gt+172>>2]=Ct+Xt,ut[gt+168>>2]=rn+un,ut[gt+164>>2]=mn+_n,ut[gt+160>>2]=Wt+Lt,ut[gt+156>>2]=In+Qn,ut[gt+152>>2]=Cn+er,ut[gt+148>>2]=Gn+On,ut[gt+144>>2]=hn+Hn,ut[gt+228>>2]=ft-pt,ut[gt+224>>2]=_t-Ot,ut[gt+220>>2]=Xt-Ct,ut[gt+216>>2]=rn-un,ut[gt+212>>2]=mn-_n,ut[gt+208>>2]=Wt-Lt,ut[gt+204>>2]=In-Qn,ut[gt+200>>2]=Cn-er,ut[gt+196>>2]=On-Gn,ut[gt+192>>2]=Hn-hn,$r(Ln,gt,lr),qr=ut[gt+52>>2],In=ut[gt+4>>2],Mr=ut[gt+56>>2],Lt=ut[gt+8>>2],hr=ut[gt+64>>2],un=ut[gt+16>>2],jr=ut[gt+60>>2],rn=ut[gt+12>>2],so=ut[gt+72>>2],Ct=ut[gt+24>>2],pr=ut[gt+68>>2],Xt=ut[gt+20>>2],zn=ut[gt+80>>2],Ot=ut[gt+32>>2],or=ut[gt+76>>2],_t=ut[gt+28>>2],Or=ut[gt+84>>2],ft=ut[gt+36>>2],ho=ut[gt+48>>2],pt=ut[gt>>2]-ho|0,ut[gt>>2]=pt,ft=ft-Or|0,ut[gt+36>>2]=ft,Cr=_t-or|0,ut[gt+28>>2]=Cr,ur=Ot-zn|0,ut[gt+32>>2]=ur,Wt=Xt-pr|0,ut[gt+20>>2]=Wt,_n=Ct-so|0,ut[gt+24>>2]=_n,mn=rn-jr|0,ut[gt+12>>2]=mn,un=un-hr|0,ut[gt+16>>2]=un,rn=Lt-Mr|0,ut[gt+8>>2]=rn,Ot=In-qr|0,ut[gt+4>>2]=Ot,cr(ar,ar),ft=Sn(ft,ft>>31,121666,0),_t=ln,Eo=ft,ft=Sn((33554431&(_t=(hn=ft+16777216|0)>>>0<16777216?_t+1|0:_t))<<7|hn>>>25,_t>>25,19,0),Xt=ln,_t=ft,ft=Sn(pt,pt>>31,121666,0),Fr=ln+Xt|0,ft=ft>>>0>(_t=_t+ft|0)>>>0?Fr+1|0:Fr,pt=(Ct=_t+33554432|0)>>>0<33554432?ft+1|0:ft,Hn=_t-(-67108864&Ct)|0,ut[gt+96>>2]=Hn,Xt=Sn(Ot,Ot>>31,121666,0),_t=ln,_t=(Ot=Xt+16777216|0)>>>0<16777216?_t+1|0:_t,Gn=(Xt-(-33554432&Ot)|0)+((67108863&pt)<<6|Ct>>>26)|0,ut[gt+100>>2]=Gn,Fr=(ft=_t)>>25,_t=(33554431&ft)<<7|Ot>>>25,pt=Sn(rn,rn>>31,121666,0)+_t|0,ft=Fr+ln|0,ft=pt>>>0<_t>>>0?ft+1|0:ft,Xt=(On=pt+33554432|0)>>>0<33554432?ft+1|0:ft,er=pt-(-67108864&On)|0,ut[gt+104>>2]=er,_t=Sn(un,un>>31,121666,0),Ot=ln,pt=Sn(mn,mn>>31,121666,0),ft=ln,Er=_t,Pr=pt,_t=(33554431&(ft=(Cn=pt+16777216|0)>>>0<16777216?ft+1|0:ft))<<7|Cn>>>25,ft=(ft>>25)+Ot|0,ft=(pt=Er+_t|0)>>>0<_t>>>0?ft+1|0:ft,Ot=(Qn=pt+33554432|0)>>>0<33554432?ft+1|0:ft,In=pt-(-67108864&Qn)|0,ut[gt+112>>2]=In,_t=Sn(_n,_n>>31,121666,0),Ct=ln,pt=Sn(Wt,Wt>>31,121666,0),ft=ln,Er=_t,Dr=pt,_t=(33554431&(ft=(Lt=pt+16777216|0)>>>0<16777216?ft+1|0:ft))<<7|Lt>>>25,ft=(ft>>25)+Ct|0,ft=(pt=Er+_t|0)>>>0<_t>>>0?ft+1|0:ft,_t=(Wt=pt+33554432|0)>>>0<33554432?ft+1|0:ft,_n=pt-(-67108864&Wt)|0,ut[gt+120>>2]=_n,Ct=Sn(ur,ur>>31,121666,0),rn=ln,pt=Sn(Cr,Cr>>31,121666,0),ft=ln,ur=pt,pt=(33554431&(ft=(mn=pt+16777216|0)>>>0<16777216?ft+1|0:ft))<<7|mn>>>25,ft=(ft>>25)+rn|0,ft=pt>>>0>(Ct=pt+Ct|0)>>>0?ft+1|0:ft,pt=(un=Ct+33554432|0)>>>0<33554432?ft+1|0:ft,rn=Ct-(-67108864&un)|0,ut[gt+128>>2]=rn,Ct=(Xt=Pr+((67108863&Xt)<<6|On>>>26)|0)-(-33554432&Cn)|0,ut[gt+108>>2]=Ct,Xt=(Ot=Dr+((67108863&Ot)<<6|Qn>>>26)|0)-(-33554432&Lt)|0,ut[gt+116>>2]=Xt,Ot=(ft=ur+((67108863&_t)<<6|Wt>>>26)|0)-(-33554432&mn)|0,ut[gt+124>>2]=Ot,pt=(pt=Eo+((67108863&pt)<<6|un>>>26)|0)-(-33554432&hn)|0,ut[gt+132>>2]=pt,cr(ft=gt+144|0,ft),ut[gt+84>>2]=pt+Or,ut[gt+80>>2]=rn+zn,ut[gt+76>>2]=Ot+or,ut[gt+72>>2]=_n+so,ut[gt+68>>2]=Xt+pr,ut[gt+64>>2]=In+hr,ut[gt+60>>2]=Ct+jr,ut[gt+56>>2]=er+Mr,ut[gt+52>>2]=Gn+qr,ut[gt+48>>2]=Hn+ho,pt=Xo-1|0,$r(io,gt+288|0,ar),$r(ar,gt,lr),Xo;);_n=ut[gt+144>>2],Hn=ut[gt+240>>2],mn=ut[gt+148>>2],Gn=ut[gt+244>>2],un=ut[gt+152>>2],On=ut[gt+248>>2],rn=ut[gt+156>>2],er=ut[gt+252>>2],Ct=ut[gt+160>>2],Cn=ut[gt+256>>2],Xt=ut[gt+164>>2],Qn=ut[gt+260>>2],Ot=ut[gt+168>>2],In=ut[gt+264>>2],_t=ut[gt+172>>2],Lt=ut[gt+268>>2],pt=ut[gt+176>>2],Wt=ut[gt+272>>2],hn=0-Po|0,ft=ut[gt+276>>2],ut[gt+276>>2]=hn&(ft^ut[gt+180>>2])^ft,ut[gt+272>>2]=Wt^hn&(pt^Wt),ut[gt+268>>2]=Lt^hn&(_t^Lt),ut[gt+264>>2]=In^hn&(Ot^In),ut[gt+260>>2]=Qn^hn&(Xt^Qn),ut[gt+256>>2]=Cn^hn&(Ct^Cn),ut[gt+252>>2]=er^hn&(rn^er),ut[gt+248>>2]=On^hn&(un^On),ut[gt+244>>2]=Gn^hn&(mn^Gn),ut[gt+240>>2]=Hn^hn&(_n^Hn),Hn=ut[gt+192>>2],_n=ut[gt+96>>2],Gn=ut[gt+196>>2],mn=ut[gt+100>>2],On=ut[gt+200>>2],un=ut[gt+104>>2],er=ut[gt+204>>2],rn=ut[gt+108>>2],Cn=ut[gt+208>>2],Ct=ut[gt+112>>2],Qn=ut[gt+212>>2],Xt=ut[gt+116>>2],In=ut[gt+216>>2],Ot=ut[gt+120>>2],Lt=ut[gt+220>>2],_t=ut[gt+124>>2],Wt=ut[gt+224>>2],pt=ut[gt+128>>2],ft=ut[gt+228>>2],ut[gt+228>>2]=hn&(ft^ut[gt+132>>2])^ft,ut[gt+224>>2]=Wt^hn&(pt^Wt),ut[gt+220>>2]=Lt^hn&(_t^Lt),ut[gt+216>>2]=In^hn&(Ot^In),ut[gt+212>>2]=Qn^hn&(Xt^Qn),ut[gt+208>>2]=Cn^hn&(Ct^Cn),ut[gt+204>>2]=er^hn&(rn^er),ut[gt+200>>2]=On^hn&(un^On),ut[gt+196>>2]=Gn^hn&(mn^Gn),ut[gt+192>>2]=Hn^hn&(_n^Hn),_l(ar,ar),$r(Ln,Ln,ar),sr(At,Ln),Uo(na,32),_t=0}return jn=gt+368|0,0|_t},function(At,ft){var pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn,un,mn,_n,In,On,Cn,Qn,Hn,Gn,er;return ft|=0,jn=pt=jn-304|0,Ft[0|(At|=0)]=bt[0|ft],Ft[At+1|0]=bt[ft+1|0],Ft[At+2|0]=bt[ft+2|0],Ft[At+3|0]=bt[ft+3|0],Ft[At+4|0]=bt[ft+4|0],Ft[At+5|0]=bt[ft+5|0],Ft[At+6|0]=bt[ft+6|0],Ft[At+7|0]=bt[ft+7|0],Ft[At+8|0]=bt[ft+8|0],Ft[At+9|0]=bt[ft+9|0],Ft[At+10|0]=bt[ft+10|0],Ft[At+11|0]=bt[ft+11|0],Ft[At+12|0]=bt[ft+12|0],Ft[At+13|0]=bt[ft+13|0],Ft[At+14|0]=bt[ft+14|0],Ft[At+15|0]=bt[ft+15|0],Ft[At+16|0]=bt[ft+16|0],Ft[At+17|0]=bt[ft+17|0],Ft[At+18|0]=bt[ft+18|0],Ft[At+19|0]=bt[ft+19|0],Ft[At+20|0]=bt[ft+20|0],Ft[At+21|0]=bt[ft+21|0],Ft[At+22|0]=bt[ft+22|0],Ft[At+23|0]=bt[ft+23|0],Ft[At+24|0]=bt[ft+24|0],Ft[At+25|0]=bt[ft+25|0],Ft[At+26|0]=bt[ft+26|0],Ft[At+27|0]=bt[ft+27|0],Ft[At+28|0]=bt[ft+28|0],Ft[At+29|0]=bt[ft+29|0],Ft[At+30|0]=bt[ft+30|0],ft=bt[ft+31|0],Ft[0|At]=248&bt[0|At],Ft[At+31|0]=63&ft|64,El(pt+48|0,At),ft=ut[pt+132>>2],gt=ut[pt+92>>2],_t=ut[pt+136>>2],Ot=ut[pt+96>>2],Wt=ut[pt+140>>2],Ct=ut[pt+100>>2],Lt=ut[pt+144>>2],Xt=ut[pt+104>>2],hn=ut[pt+148>>2],rn=ut[pt+108>>2],un=ut[pt+152>>2],mn=ut[pt+112>>2],_n=ut[pt+156>>2],In=ut[pt+116>>2],On=ut[pt+160>>2],Cn=ut[pt+120>>2],Q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[Xt+452>>2],ut[Xt+32>>2]=ut[Xt+448>>2],ut[Xt+36>>2]=Ct,wn(Ot,Xt+48|0,Xt+32|0),Ct=ut[Xt+540>>2],ut[Xt+456>>2]=ut[Xt+536>>2],ut[Xt+460>>2]=Ct,Ct=ut[Xt+396>>2],ut[Xt+24>>2]=ut[Xt+392>>2],ut[Xt+28>>2]=Ct,Ct=ut[Xt+444>>2],ut[Xt+8>>2]=ut[Xt+440>>2],ut[Xt+12>>2]=Ct,Ct=ut[Xt+532>>2],ut[Xt+448>>2]=ut[Xt+528>>2],ut[Xt+452>>2]=Ct,Ct=ut[Xt+388>>2],ut[Xt+16>>2]=ut[Xt+384>>2],ut[Xt+20>>2]=Ct,Ct=ut[Xt+436>>2],ut[Xt>>2]=ut[Xt+432>>2],ut[Xt+4>>2]=Ct,wn(Ot,Xt+16|0,Xt),ut[Xt+444>>2]=_n^ut[Xt+540>>2],ut[Xt+440>>2]=mn^ut[Xt+536>>2],ut[Xt+436>>2]=rn^ut[Xt+532>>2],ut[Xt+432>>2]=Lt^ut[Xt+528>>2]);e:{t:{n:{r:{i:{if(At){if(Ot=16,pt>>>0<16)break i;for(Lt=0;mA(At+Lt|0,ft+Lt|0,Xt+432|0),Lt=Ct=Ot,(Ot=Ct+16|0)>>>0<=pt>>>0;);}else{if(Lt=16,pt>>>0<16)break n;for(Ot=0;mA(Xt+528|0,ft+Ot|0,Xt+432|0),Ot=Ct=Lt,(Lt=Ct+16|0)>>>0<=pt>>>0;);}if(!(Lt=15&pt))break e;if(At)break r;break t}if(Ct=0,!(Lt=pt))break e}yA(At+Ct|0,ft+Ct|0,Lt,Xt+432|0);break e}if(Ct=0,!(Lt=pt))break e}yA(Xt+528|0,ft+Ct|0,Lt,Xt+432|0)}cu(Xt+384|0,_t,Wt,pt,Xt+432|0),Ct=-1;e:{t:{if(ft=_t-16|0){if((0|ft)==16)break t;break e}Ct=Ur(Xt+384|0,gt);break e}Ct=p0(Xt+384|0,gt)}return!At|!Ct||ms(At,0,pt),jn=Xt+544|0,0|Ct}],j0.grow=function(At){var ft=this.length;return this.length=this.length+At,ft},j0.set=function(At,ft){this[At]=ft},j0.get=function(At){return this[At]},j0);function i2(){return Bo.byteLength/65536|0}return{f:function(){},g:Ps,h:Pu,i:Ps,j:ns,k:r2,l:V1,m:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return 0|Xp(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Xt|=0,hn|=0,36784)},n:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn){return 0|a1(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Lt|=0,hn|=0,rn|=0,36784)},o:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return 0|Vp(At|=0,ft|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Lt|=0,Xt|=0,hn|=0,36788)},p:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return 0|c1(At|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Lt|=0,Xt|=0,hn|=0,36788)},q:ns,r:Pu,s:ns,t:ns,u:r2,v:Xs,w:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return 0|Xp(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Xt|=0,hn|=0,36792)},x:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn,rn){return 0|a1(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Lt|=0,hn|=0,rn|=0,36792)},y:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return 0|Vp(At|=0,ft|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Lt|=0,Xt|=0,hn|=0,36796)},z:function(At,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511199^(bt[_t+8|0]|bt[_t+9|0]<<8|bt[_t+10|0]<<16|bt[_t+11|0]<<24),pt=-1694144372^(bt[_t+12|0]|bt[_t+13|0]<<8|bt[_t+14|0]<<16|bt[_t+15|0]<<24),ft=-1377402159^(bt[0|_t]|bt[_t+1|0]<<8|bt[_t+2|0]<<16|bt[_t+3|0]<<24),_t=1359893119^(bt[_t+4|0]|bt[_t+5|0]<<8|bt[_t+6|0]<<16|bt[_t+7|0]<<24)):(Ct=725511199,pt=-1694144372,ft=-1377402159,_t=1359893119),Ot?(Lt=327033209^(bt[Ot+8|0]|bt[Ot+9|0]<<8|bt[Ot+10|0]<<16|bt[Ot+11|0]<<24),gt=1541459225^(bt[Ot+12|0]|bt[Ot+13|0]<<8|bt[Ot+14|0]<<16|bt[Ot+15|0]<<24),Wt=-79577749^(bt[0|Ot]|bt[Ot+1|0]<<8|bt[Ot+2|0]<<16|bt[Ot+3|0]<<24),Ot=528734635^(bt[Ot+4|0]|bt[Ot+5|0]<<8|bt[Ot+6|0]<<16|bt[Ot+7|0]<<24)):(Lt=327033209,gt=1541459225,Wt=-79577749,Ot=528734635),ms(At- -64|0,0,293),Ft[At+56|0]=Lt,Ft[At+57|0]=Lt>>>8,Ft[At+58|0]=Lt>>>16,Ft[At+59|0]=Lt>>>24,Ft[At+60|0]=gt,Ft[At+61|0]=gt>>>8,Ft[At+62|0]=gt>>>16,Ft[At+63|0]=gt>>>24,Ft[At+48|0]=Wt,Ft[At+49|0]=Wt>>>8,Ft[At+50|0]=Wt>>>16,Ft[At+51|0]=Wt>>>24,Ft[At+52|0]=Ot,Ft[At+53|0]=Ot>>>8,Ft[At+54|0]=Ot>>>16,Ft[At+55|0]=Ot>>>24,Ft[At+40|0]=Ct,Ft[At+41|0]=Ct>>>8,Ft[At+42|0]=Ct>>>16,Ft[At+43|0]=Ct>>>24,Ft[At+44|0]=pt,Ft[At+45|0]=pt>>>8,Ft[At+46|0]=pt>>>16,Ft[At+47|0]=pt>>>24,Ft[At+32|0]=ft,Ft[At+33|0]=ft>>>8,Ft[At+34|0]=ft>>>16,Ft[At+35|0]=ft>>>24,Ft[At+36|0]=_t,Ft[At+37|0]=_t>>>8,Ft[At+38|0]=_t>>>16,Ft[At+39|0]=_t>>>24,Ft[At+24|0]=241,Ft[At+25|0]=54,Ft[At+26|0]=29,Ft[At+27|0]=95,Ft[At+28|0]=58,Ft[At+29|0]=245,Ft[At+30|0]=79,Ft[At+31|0]=165,Ft[At+16|0]=43,Ft[At+17|0]=248,Ft[At+18|0]=148,Ft[At+19|0]=254,Ft[At+20|0]=114,Ft[At+21|0]=243,Ft[At+22|0]=110,Ft[At+23|0]=60,Ft[At+8|0]=59,Ft[At+9|0]=167,Ft[At+10|0]=202,Ft[At+11|0]=132,Ft[At+12|0]=133,Ft[At+13|0]=174,Ft[At+14|0]=103,Ft[At+15|0]=187,ft=-222443256^Xt,Ft[0|At]=ft,Ft[At+1|0]=ft>>>8,Ft[At+2|0]=ft>>>16,Ft[At+3|0]=ft>>>24,Ft[At+4|0]=103,Ft[At+5|0]=230,Ft[At+6|0]=9,Ft[At+7|0]=106;break e}Fs(),Sr()}jn=rn=jn-128|0,!ft|((un=255>)-65&255)>>>0<=191|((Wt=255&pt)-65&255)>>>0<=191?(Fs(),Sr()):(_t?(Ct=725511199^(bt[_t+8|0]|bt[_t+9|0]<<8|bt[_t+10|0]<<16|bt[_t+11|0]<<24),pt=-1694144372^(bt[_t+12|0]|bt[_t+13|0]<<8|bt[_t+14|0]<<16|bt[_t+15|0]<<24),Xt=-1377402159^(bt[0|_t]|bt[_t+1|0]<<8|bt[_t+2|0]<<16|bt[_t+3|0]<<24),_t=1359893119^(bt[_t+4|0]|bt[_t+5|0]<<8|bt[_t+6|0]<<16|bt[_t+7|0]<<24)):(Ct=725511199,pt=-1694144372,Xt=-1377402159,_t=1359893119),Ot?(Lt=327033209^(bt[Ot+8|0]|bt[Ot+9|0]<<8|bt[Ot+10|0]<<16|bt[Ot+11|0]<<24),gt=1541459225^(bt[Ot+12|0]|bt[Ot+13|0]<<8|bt[Ot+14|0]<<16|bt[Ot+15|0]<<24),hn=-79577749^(bt[0|Ot]|bt[Ot+1|0]<<8|bt[Ot+2|0]<<16|bt[Ot+3|0]<<24),Ot=528734635^(bt[Ot+4|0]|bt[Ot+5|0]<<8|bt[Ot+6|0]<<16|bt[Ot+7|0]<<24)):(Lt=327033209,gt=1541459225,hn=-79577749,Ot=528734635),ms(At- -64|0,0,293),Ft[At+56|0]=Lt,Ft[At+57|0]=Lt>>>8,Ft[At+58|0]=Lt>>>16,Ft[At+59|0]=Lt>>>24,Ft[At+60|0]=gt,Ft[At+61|0]=gt>>>8,Ft[At+62|0]=gt>>>16,Ft[At+63|0]=gt>>>24,Ft[At+48|0]=hn,Ft[At+49|0]=hn>>>8,Ft[At+50|0]=hn>>>16,Ft[At+51|0]=hn>>>24,Ft[At+52|0]=Ot,Ft[At+53|0]=Ot>>>8,Ft[At+54|0]=Ot>>>16,Ft[At+55|0]=Ot>>>24,Ft[At+40|0]=Ct,Ft[At+41|0]=Ct>>>8,Ft[At+42|0]=Ct>>>16,Ft[At+43|0]=Ct>>>24,Ft[At+44|0]=pt,Ft[At+45|0]=pt>>>8,Ft[At+46|0]=pt>>>16,Ft[At+47|0]=pt>>>24,Ft[At+32|0]=Xt,Ft[At+33|0]=Xt>>>8,Ft[At+34|0]=Xt>>>16,Ft[At+35|0]=Xt>>>24,Ft[At+36|0]=_t,Ft[At+37|0]=_t>>>8,Ft[At+38|0]=_t>>>16,Ft[At+39|0]=_t>>>24,Ft[At+24|0]=241,Ft[At+25|0]=54,Ft[At+26|0]=29,Ft[At+27|0]=95,Ft[At+28|0]=58,Ft[At+29|0]=245,Ft[At+30|0]=79,Ft[At+31|0]=165,Ft[At+16|0]=43,Ft[At+17|0]=248,Ft[At+18|0]=148,Ft[At+19|0]=254,Ft[At+20|0]=114,Ft[At+21|0]=243,Ft[At+22|0]=110,Ft[At+23|0]=60,Ft[At+8|0]=59,Ft[At+9|0]=167,Ft[At+10|0]=202,Ft[At+11|0]=132,Ft[At+12|0]=133,Ft[At+13|0]=174,Ft[At+14|0]=103,Ft[At+15|0]=187,pt=-222443256^(Wt<<8|un),Ft[0|At]=pt,Ft[At+1|0]=pt>>>8,Ft[At+2|0]=pt>>>16,Ft[At+3|0]=pt>>>24,pt=Wt>>>24^1779033703,Ft[At+4|0]=pt,Ft[At+5|0]=pt>>>8,Ft[At+6|0]=pt>>>16,Ft[At+7|0]=pt>>>24,ms(Wt+rn|0,0,Wt<<24>>24>=0?128-Wt|0:0),pt=ss(rn,ft,Wt),ss(At+96|0,pt,128),ft=128+(bt[At+352|0]|bt[At+353|0]<<8|bt[At+354|0]<<16|bt[At+355|0]<<24)|0,Ft[At+352|0]=ft,Ft[At+353|0]=ft>>>8,Ft[At+354|0]=ft>>>16,Ft[At+355|0]=ft>>>24,Uo(pt,128),jn=pt+128|0)}Wt=0}return 0|Wt},xc:Su,yc:q0,zc:ou,Ac:P1,Bc:function(){return 1533},Cc:ns,Dc:function(){return 104},Ec:LA,Fc:function(At,ft,pt,gt){return 0|Ru(At|=0,ft|=0,pt|=0,gt|=0)},Gc:Fu,Hc:function(At,ft,pt,gt){At|=0,ft|=0,pt|=0,gt|=0;var _t,Ot=0;return jn=_t=jn-112|0,Ot=ut[8603],ut[_t+16>>2]=ut[8602],ut[_t+20>>2]=Ot,Ot=ut[8605],ut[_t+24>>2]=ut[8604],ut[_t+28>>2]=Ot,Ot=ut[8607],ut[_t+32>>2]=ut[8606],ut[_t+36>>2]=Ot,ut[_t+40>>2]=0,ut[_t+44>>2]=0,Ot=ut[8601],ut[_t+8>>2]=ut[8600],ut[_t+12>>2]=Ot,Ru(Ot=_t+8|0,ft,pt,gt),Fu(Ot,At),jn=_t+112|0,0},Ic:ou,Jc:X0,Kc:Bl,Lc:fp,Mc:Cu,Nc:P1,Oc:Ps,Pc:ou,Qc:Yu,Rc:ns,Sc:xp,Tc:Y1,Uc:Ps,Vc:ou,Wc:Yu,Xc:ns,Yc:xp,Zc:Xs,_c:function(At,ft,pt){return 0|Wu(At|=0,ft|=0,pt|=0)},$c:function(At,ft,pt){return 0|Ju(At|=0,ft|=0,pt|=0,0)},ad:function(At,ft){return h0(At|=0,ft|=0),Uo(At,4),0},bd:function(At,ft,pt,gt,_t){var Ot;return At|=0,gt|=0,_t|=0,jn=Ot=jn-208|0,Wu(Ot,ft|=0,pt|=0),Ju(Ot,gt,_t,0),h0(Ot,At),Uo(Ot,4),jn=Ot+208|0,0},cd:Xs,dd:function(At,ft,pt,gt,_t){At|=0,ft|=0,pt|=0,gt|=0,_t|=0;var Ot,Wt=0,Ct=0,Lt=0;if(jn=Ot=jn-256|0,Ft[Ot+15|0]=1,ft>>>0<=8160){if(ft>>>0>=32)for(Wt=32;Lt=Wt,Wu(Wt=Ot+48|0,_t,32),Ct&&Ju(Wt,(At+Ct|0)-32|0,32,0),Ju(Wt=Ot+48|0,pt,gt,0),Ju(Wt,Ot+15|0,1,0),h0(Wt,At+Ct|0),Ft[Ot+15|0]=bt[Ot+15|0]+1,(Wt=(Ct=Lt)+32|0)>>>0<=ft>>>0;);(Ct=31&ft)&&(Wu(ft=Ot+48|0,_t,32),Lt&&Ju(ft,(At+Lt|0)-32|0,32,0),Ju(ft=Ot+48|0,pt,gt,0),Ju(ft,Ot+15|0,1,0),h0(pt=ft,ft=Ot+16|0),ss(At+Lt|0,ft,Ct),Uo(ft,32)),Uo(Ot+48|0,208),At=0}else ut[9392]=28,At=-1;return jn=Ot+256|0,0|At},ed:ns,fd:Pu,gd:function(){return 8160},hd:X0,id:D1,jd:function(At,ft,pt){return 0|Gu(At|=0,ft|=0,pt|=0,0)},kd:function(At,ft){return Pl(At|=0,ft|=0),Uo(At,4),0},ld:function(At,ft,pt,gt,_t){var Ot;return At|=0,gt|=0,_t|=0,jn=Ot=jn-416|0,Rr(Ot,ft|=0,pt|=0),Gu(Ot,gt,_t,0),Pl(Ot,At),Uo(Ot,4),jn=Ot+416|0,0},md:function(At){hu(At|=0,64)},nd:function(At,ft,pt,gt,_t){At|=0,ft|=0,pt|=0,gt|=0,_t|=0;var Ot,Wt=0,Ct=0,Lt=0;if(jn=Ot=jn-496|0,Ft[Ot+15|0]=1,ft>>>0<=16320){if(ft>>>0>=64)for(Wt=64;Lt=Wt,Rr(Wt=Ot+80|0,_t,64),Ct&&Gu(Wt,(At+Ct|0)-64|0,64,0),Gu(Wt=Ot+80|0,pt,gt,0),Gu(Wt,Ot+15|0,1,0),Pl(Wt,At+Ct|0),Ft[Ot+15|0]=bt[Ot+15|0]+1,(Wt=(Ct=Lt)- -64|0)>>>0<=ft>>>0;);(Ct=63&ft)&&(Rr(ft=Ot+80|0,_t,64),Lt&&Gu(ft,(At+Lt|0)-64|0,64,0),Gu(ft=Ot+80|0,pt,gt,0),Gu(ft,Ot+15|0,1,0),Pl(pt=ft,ft=Ot+16|0),ss(At+Lt|0,ft,Ct),Uo(ft,64)),Uo(Ot+80|0,416),At=0}else ut[9392]=28,At=-1;return jn=Ot+496|0,0|At},od:ou,pd:Pu,qd:function(){return 16320},rd:function(At,ft,pt){return At|=0,gp(ft|=0,32,pt|=0,32,0,0,0),0|mp(At,ft)},sd:function(At,ft){return At|=0,hu(ft|=0,32),0|mp(At,ft)},td:function(At,ft,pt,gt,_t){ft|=0,pt|=0,gt|=0,_t|=0;var Ot,Wt,Ct=0,Lt=0,Xt=0;if(Wt=Ct=jn,jn=Ct=Ct-512&-64,Ot=(At|=0)||ft){if(Xt=-1,!hp(Lt=Ct+96|0,gt,_t)){for(gt=ft||At,At=0,zl(ft=Ct+128|0,0,0,64),Su(ft,Lt,32,0),Uo(Lt,32),Su(ft,pt,32,0),Su(ft,_t,32,0),Yl(ft,Ct+32|0,64),Uo(ft,384);pt=(ft=Ct+32|0)+At|0,Ft[At+Ot|0]=bt[0|pt],Ft[At+gt|0]=bt[pt+32|0],Ft[(_t=1|At)+Ot|0]=bt[ft+_t|0],Ft[gt+_t|0]=bt[pt+33|0],(0|(At=At+2|0))!=32;);Uo(ft,64),Xt=0}return jn=Wt,0|Xt}Fs(),Sr()},ud:function(At,ft,pt,gt,_t){ft|=0,pt|=0,gt|=0,_t|=0;var Ot,Wt,Ct=0,Lt=0,Xt=0;if(Wt=Ct=jn,jn=Ct=Ct-512&-64,Ot=(At|=0)||ft){if(Xt=-1,!hp(Lt=Ct+96|0,gt,_t)){for(gt=ft||At,At=0,zl(ft=Ct+128|0,0,0,64),Su(ft,Lt,32,0),Uo(Lt,32),Su(ft,_t,32,0),Su(ft,pt,32,0),Yl(ft,Ct+32|0,64),Uo(ft,384);pt=(ft=Ct+32|0)+At|0,Ft[At+gt|0]=bt[0|pt],Ft[At+Ot|0]=bt[pt+32|0],Ft[(_t=1|At)+gt|0]=bt[ft+_t|0],Ft[_t+Ot|0]=bt[pt+33|0],(0|(At=At+2|0))!=32;);Uo(ft,64),Xt=0}return jn=Wt,0|Xt}Fs(),Sr()},vd:ns,wd:ns,xd:ns,yd:ns,zd:function(){return 1315},Ad:j1,Bd:Ps,Cd:ns,Dd:E1,Ed:B1,Fd:function(At,ft){return 0|Tu(At|=0,ft|=0)},Gd:O1,Hd:function(At,ft){return 0|Mu(At|=0,ft|=0)},Id:function(){return 1496},Jd:Xs,Kd:E1,Ld:B1,Md:Tu,Nd:O1,Od:Mu,Pd:Ps,Qd:ns,Rd:j1,Sd:Xs,Td:g0,Ud:Ps,Vd:Au,Wd:Pu,Xd:Au,Yd:Ps,Zd:Sp,_d:function(){return 1549},$d:XA,ae:Au,be:Cp,ce:_p,de:bp,ee:W1,fe:function(){return 6},ge:function(){return 134217728},he:Yu,ie:function(){return 536870912},je:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return 0|Ho(At|=0,(At=0)|(ft|=0),pt|=0,gt|=0,At|(_t|=0),Ot|=0,Wt|=0,At|(Ct|=0),Lt|=0,Xt|=0,hn|=0)},ke:function(At,ft,pt,gt,_t,Ot,Wt){return 0|zp(At|=0,ft|=0,(At=0)|(pt|=0),gt|=0,At|(_t|=0),Ot|=0,Wt|=0)},le:function(At,ft,pt,gt){return 0|U1(At|=0,ft|=0,pt|=0,gt|=0)},me:function(At,ft,pt,gt){return 0|L1(At|=0,ft|=0,pt|=0,gt|=0)},ne:function(At,ft,pt,gt){return 0|F1(At|=0,ft|=0,pt|=0,gt|=0)},oe:m0,pe:Ps,qe:Au,re:Pu,se:Au,te:Ps,ue:Sp,ve:z1,we:g0,xe:Au,ye:Cp,ze:_p,Ae:m0,Be:q1,Ce:XA,De:G1,Ee:bp,Fe:yp,Ge:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){return 0|jo(At|=0,(At=0)|(ft|=0),pt|=0,gt|=0,At|(_t|=0),Ot|=0,Wt|=0,At|(Ct|=0),Lt|=0,Xt|=0,hn|=0)},He:A1,Ie:function(At,ft,pt,gt){return 0|x1(At|=0,ft|=0,pt|=0,gt|=0)},Je:g0,Ke:m0,Le:m0,Me:Ps,Ne:Au,Oe:Pu,Pe:Au,Qe:Ps,Re:Sp,Se:z1,Te:g0,Ue:Au,Ve:Cp,We:_p,Xe:m0,Ye:q1,Ze:XA,_e:G1,$e:bp,af:yp,bf:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,hn){At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Lt|=0,Xt|=0,ft|=0,_t|=0,Ct|=0;e:{switch((hn|=0)-1|0){case 0:At=Ho(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,1);break e;case 1:At=jo(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt,2);break e}ut[9392]=28,At=-1}return 0|At},cf:A1,df:function(At,ft,pt,gt,_t,Ot,Wt,Ct){At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,pt|=0,_t|=0;e:{switch((Ct|=0)-1|0){case 1:At=jp(At,ft,pt,gt,_t,Ot,Wt);break e;default:Fs(),Sr();case 0:}At=zp(At,ft,pt,gt,_t,Ot,Wt)}return 0|At},ef:function(At,ft,pt,gt){return ft|=0,pt|=0,gt|=0,zu(At|=0,1559,10)?zu(At,1549,9)?(ut[9392]=28,At=-1):At=U1(At,ft,pt,gt):At=x1(At,ft,pt,gt),0|At},ff:function(At,ft,pt,gt){return ft|=0,pt|=0,gt|=0,zu(At|=0,1559,10)?zu(At,1549,9)?(ut[9392]=28,At=-1):At=L1(At,ft,pt,gt):At=F1(At,ft,pt,gt),0|At},gf:function(){return 1157},hf:function(){return 1438},jf:mp,kf:hp,lf:ns,mf:ns,nf:Xn,of:YA,pf:ns,qf:ns,rf:ns,sf:qu,tf:ns,uf:Ps,vf:Ps,wf:Cl,xf:function(){return 1488},yf:qA,zf:VA,Af:Xs,Bf:m1,Cf:function(At,ft,pt,gt,_t,Ot){return At|=0,ft|=0,_t|=0,Ot|=0,!(gt|=0)&(pt|=0)>>>0>=4294967280|gt&&(Fs(),Sr()),es(At+16|0,At,ft,pt,gt,_t,Ot),0},Df:y1,Ef:d1,Ff:qA,Gf:VA,Hf:ns,If:qu,Jf:ns,Kf:Ps,Lf:Ps,Mf:Cl,Nf:Xs,Of:Xs,Pf:function(At,ft,pt){return At|=0,pt|=0,hu(ft|=0,24),yu(At,ft,pt,0),Ft[At+32|0]=1,Ft[At+33|0]=0,Ft[At+34|0]=0,Ft[At+35|0]=0,pt=bt[ft+16|0]|bt[ft+17|0]<<8|bt[ft+18|0]<<16|bt[ft+19|0]<<24,ft=bt[ft+20|0]|bt[ft+21|0]<<8|bt[ft+22|0]<<16|bt[ft+23|0]<<24,Ft[At+44|0]=0,Ft[At+45|0]=0,Ft[At+46|0]=0,Ft[At+47|0]=0,Ft[At+48|0]=0,Ft[At+49|0]=0,Ft[At+50|0]=0,Ft[At+51|0]=0,Ft[At+36|0]=pt,Ft[At+37|0]=pt>>>8,Ft[At+38|0]=pt>>>16,Ft[At+39|0]=pt>>>24,Ft[At+40|0]=ft,Ft[At+41|0]=ft>>>8,Ft[At+42|0]=ft>>>16,Ft[At+43|0]=ft>>>24,0},Qf:function(At,ft,pt){return yu(At|=0,ft|=0,pt|=0,0),Ft[At+32|0]=1,Ft[At+33|0]=0,Ft[At+34|0]=0,Ft[At+35|0]=0,pt=bt[ft+16|0]|bt[ft+17|0]<<8|bt[ft+18|0]<<16|bt[ft+19|0]<<24,ft=bt[ft+20|0]|bt[ft+21|0]<<8|bt[ft+22|0]<<16|bt[ft+23|0]<<24,Ft[At+44|0]=0,Ft[At+45|0]=0,Ft[At+46|0]=0,Ft[At+47|0]=0,Ft[At+48|0]=0,Ft[At+49|0]=0,Ft[At+50|0]=0,Ft[At+51|0]=0,Ft[At+36|0]=pt,Ft[At+37|0]=pt>>>8,Ft[At+38|0]=pt>>>16,Ft[At+39|0]=pt>>>24,Ft[At+40|0]=ft,Ft[At+41|0]=ft>>>8,Ft[At+42|0]=ft>>>16,Ft[At+43|0]=ft>>>24,0},Rf:function(At){var ft,pt=0,gt=0;jn=ft=jn-48|0,pt=bt[28+(At|=0)|0]|bt[At+29|0]<<8|bt[At+30|0]<<16|bt[At+31|0]<<24,ut[ft+24>>2]=bt[At+24|0]|bt[At+25|0]<<8|bt[At+26|0]<<16|bt[At+27|0]<<24,ut[ft+28>>2]=pt,pt=bt[At+20|0]|bt[At+21|0]<<8|bt[At+22|0]<<16|bt[At+23|0]<<24,ut[ft+16>>2]=bt[At+16|0]|bt[At+17|0]<<8|bt[At+18|0]<<16|bt[At+19|0]<<24,ut[ft+20>>2]=pt,pt=bt[At+4|0]|bt[At+5|0]<<8|bt[At+6|0]<<16|bt[At+7|0]<<24,ut[ft>>2]=bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24,ut[ft+4>>2]=pt,pt=bt[At+12|0]|bt[At+13|0]<<8|bt[At+14|0]<<16|bt[At+15|0]<<24,ut[ft+8>>2]=bt[At+8|0]|bt[At+9|0]<<8|bt[At+10|0]<<16|bt[At+11|0]<<24,ut[ft+12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+42|0]^bt[ft+6|0],Ft[At+43|0]=bt[At+43|0]^bt[ft+7|0],Wp(mn),(2&Xt||gu(mn,4))&&(ft=bt[At+28|0]|bt[At+29|0]<<8|bt[At+30|0]<<16|bt[At+31|0]<<24,ut[_t+360>>2]=bt[At+24|0]|bt[At+25|0]<<8|bt[At+26|0]<<16|bt[At+27|0]<<24,ut[_t+364>>2]=ft,ft=bt[At+20|0]|bt[At+21|0]<<8|bt[At+22|0]<<16|bt[At+23|0]<<24,ut[_t+352>>2]=bt[At+16|0]|bt[At+17|0]<<8|bt[At+18|0]<<16|bt[At+19|0]<<24,ut[_t+356>>2]=ft,ft=bt[At+4|0]|bt[At+5|0]<<8|bt[At+6|0]<<16|bt[At+7|0]<<24,ut[_t+336>>2]=bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24,ut[_t+340>>2]=ft,ft=bt[At+12|0]|bt[At+13|0]<<8|bt[At+14|0]<<16|bt[At+15|0]<<24,ut[_t+344>>2]=bt[At+8|0]|bt[At+9|0]<<8|bt[At+10|0]<<16|bt[At+11|0]<<24,ut[_t+348>>2]=ft,ft=bt[At+40|0]|bt[At+41|0]<<8|bt[At+42|0]<<16|bt[At+43|0]<<24,ut[_t+368>>2]=bt[At+36|0]|bt[At+37|0]<<8|bt[At+38|0]<<16|bt[At+39|0]<<24,ut[_t+372>>2]=ft,JA(ft=_t+336|0,ft,40,0,mn,At),ft=ut[_t+364>>2],gt=ut[_t+360>>2],Ft[At+24|0]=gt,Ft[At+25|0]=gt>>>8,Ft[At+26|0]=gt>>>16,Ft[At+27|0]=gt>>>24,Ft[At+28|0]=ft,Ft[At+29|0]=ft>>>8,Ft[At+30|0]=ft>>>16,Ft[At+31|0]=ft>>>24,ft=ut[_t+356>>2],gt=ut[_t+352>>2],Ft[At+16|0]=gt,Ft[At+17|0]=gt>>>8,Ft[At+18|0]=gt>>>16,Ft[At+19|0]=gt>>>24,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>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wt+380>>2]=ft,ft=bt[At+20|0]|bt[At+21|0]<<8|bt[At+22|0]<<16|bt[At+23|0]<<24,ut[Wt+368>>2]=bt[At+16|0]|bt[At+17|0]<<8|bt[At+18|0]<<16|bt[At+19|0]<<24,ut[Wt+372>>2]=ft,ft=bt[At+4|0]|bt[At+5|0]<<8|bt[At+6|0]<<16|bt[At+7|0]<<24,ut[Wt+352>>2]=bt[0|At]|bt[At+1|0]<<8|bt[At+2|0]<<16|bt[At+3|0]<<24,ut[Wt+356>>2]=ft,ft=bt[At+12|0]|bt[At+13|0]<<8|bt[At+14|0]<<16|bt[At+15|0]<<24,ut[Wt+360>>2]=bt[At+8|0]|bt[At+9|0]<<8|bt[At+10|0]<<16|bt[At+11|0]<<24,ut[Wt+364>>2]=ft,ft=bt[At+40|0]|bt[At+41|0]<<8|bt[At+42|0]<<16|bt[At+43|0]<<24,ut[Wt+384>>2]=bt[At+36|0]|bt[At+37|0]<<8|bt[At+38|0]<<16|bt[At+39|0]<<24,ut[Wt+388>>2]=ft,JA(ft=Wt+352|0,ft,40,0,_n,At),ft=ut[Wt+380>>2],_t=ut[Wt+376>>2],Ft[At+24|0]=_t,Ft[At+25|0]=_t>>>8,Ft[At+26|0]=_t>>>16,Ft[At+27|0]=_t>>>24,Ft[At+28|0]=ft,Ft[At+29|0]=ft>>>8,Ft[At+30|0]=ft>>>16,Ft[At+31|0]=ft>>>24,ft=ut[Wt+372>>2],_t=ut[Wt+368>>2],Ft[At+16|0]=_t,Ft[At+17|0]=_t>>>8,Ft[At+18|0]=_t>>>16,Ft[At+19|0]=_t>>>24,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>>8,Ft[At+22|0]=ft>>>16,Ft[At+23|0]=ft>>>24,ft=ut[Wt+364>>2],_t=ut[Wt+360>>2],Ft[At+8|0]=_t,Ft[At+9|0]=_t>>>8,Ft[At+10|0]=_t>>>16,Ft[At+11|0]=_t>>>24,Ft[At+12|0]=ft,Ft[At+13|0]=ft>>>8,Ft[At+14|0]=ft>>>16,Ft[At+15|0]=ft>>>24,ft=ut[Wt+356>>2],_t=ut[Wt+352>>2],Ft[0|At]=_t,Ft[At+1|0]=_t>>>8,Ft[At+2|0]=_t>>>16,Ft[At+3|0]=_t>>>24,Ft[At+4|0]=ft,Ft[At+5|0]=ft>>>8,Ft[At+6|0]=ft>>>16,Ft[At+7|0]=ft>>>24,ft=ut[Wt+384>>2],_t=ut[Wt+388>>2],Ft[At+32|0]=1,Ft[At+33|0]=0,Ft[At+34|0]=0,Ft[At+35|0]=0,Ft[At+36|0]=ft,Ft[At+37|0]=ft>>>8,Ft[At+38|0]=ft>>>16,Ft[At+39|0]=ft>>>24,Ft[At+40|0]=_t,Ft[At+41|0]=_t>>>8,Ft[At+42|0]=_t>>>16,Ft[At+43|0]=_t>>>24),pt&&(ut[pt>>2]=Lt,ut[pt+4>>2]=In),On=0,gt&&(Ft[0|gt]=Ct))}jn=Wt+400|0;break e}Fs(),Sr()}return 0|On},Uf:function(){return 52},Vf:function(){return 17},Wf:qu,Xf:ns,Yf:function(){return-18},Zf:Pu,_f:g0,$f:m0,ag:XA,bg:Yu,cg:Ps,dg:function(){return 1523},eg:_A,fg:V1,gg:Yu,hg:Ps,ig:_A,jg:X0,kg:ou,lg:ns,mg:ns,ng:ou,og:t2,pg:function(){return 1449},qg:function(At,ft,pt){return 0|kA(At|=0,ft|=0,pt|=0)},rg:function(At,ft){return 0|PA(At|=0,ft|=0)},sg:Gp,tg:Tp,ug:b1,vg:w1,wg:function(At){return 0|J1(At|=0)},xg:fp,yg:function(At,ft,pt,gt){return 0|f1(At|=0,ft|=0,pt|=0,gt|=0)},zg:function(At,ft,pt){return 0|p1(At|=0,ft|=0,pt|=0)},Ag:X0,Bg:ou,Cg:ns,Dg:ns,Eg:ou,Fg:t2,Gg:function(At,ft){At|=0;var pt,gt,_t,Ot,Wt,Ct,Lt=0;return pt=bt[8+(Lt=ft|=0)|0]|bt[Lt+9|0]<<8|bt[Lt+10|0]<<16|bt[L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0,ft=ft>>>0>(_t=ft+Ot|0)>>>0?gt+1|0:gt,ft=((67108863&(ft=(gt=_t+33554432|0)>>>0<33554432?ft+1|0:ft))<<6|gt>>>26)+Wt|0,ut[pt+52>>2]=ft,ut[pt+48>>2]=_t-(-67108864>),sr(At,pt+48|0)),jn=pt+256|0,0|hs},Pg:function(At,ft){At|=0;var pt,gt=0;return jn=pt=jn+-64|0,c0(pt,ft|=0,32,0),Ft[0|pt]=248&bt[0|pt],Ft[pt+31|0]=63&bt[pt+31|0]|64,ft=ut[pt+20>>2],gt=ut[pt+16>>2],Ft[At+16|0]=gt,Ft[At+17|0]=gt>>>8,Ft[At+18|0]=gt>>>16,Ft[At+19|0]=gt>>>24,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>>8,Ft[At+22|0]=ft>>>16,Ft[At+23|0]=ft>>>24,ft=ut[pt+12>>2],gt=ut[pt+8>>2],Ft[At+8|0]=gt,Ft[At+9|0]=gt>>>8,Ft[At+10|0]=gt>>>16,Ft[At+11|0]=gt>>>24,Ft[At+12|0]=ft,Ft[At+13|0]=ft>>>8,Ft[At+14|0]=ft>>>16,Ft[At+15|0]=ft>>>24,ft=ut[pt+4>>2],gt=ut[pt>>2],Ft[0|At]=gt,Ft[At+1|0]=gt>>>8,Ft[At+2|0]=gt>>>16,Ft[At+3|0]=gt>>>24,Ft[At+4|0]=ft,Ft[At+5|0]=ft>>>8,Ft[At+6|0]=ft>>>16,Ft[At+7|0]=ft>>>24,ft=ut[pt+28>>2],gt=ut[pt+24>>2],Ft[At+24|0]=gt,Ft[At+25|0]=gt>>>8,Ft[At+26|0]=gt>>>16,Ft[At+27|0]=gt>>>24,Ft[At+28|0]=ft,Ft[At+29|0]=ft>>>8,Ft[At+30|0]=ft>>>16,Ft[At+31|0]=ft>>>24,Uo(pt,64),jn=pt- -64|0,0},Qg:w1,Rg:Tp,Sg:b1,Tg:Gp,Ug:ns,Vg:Yu,Wg:Au,Xg:ns,Yg:e2,Zg:Au,_g:function(At,ft,pt,gt,_t){return 0|V0(At|=0,ft|=0,pt|=0,gt|=0,_t|=0)},$g:function(At,ft,pt,gt,_t,Ot,Wt,Ct){return 0|Wl(At|=0,ft|=0,(At=0)|(pt|=0),gt|=0,_t|=0,At|(Ot|=0),Wt|=0,Ct|=0)},ah:function(At,ft,pt,gt,_t,Ot){return 0|HA(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0)},bh:function(At,ft,pt,gt,_t){return 0|Ol(At|=0,ft|=0,pt|=0,gt|=0,_t|=0)},ch:function(At,ft,pt,gt,_t,Ot,Wt){return 0|Vl(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0)},dh:function(At,ft,pt,gt,_t,Ot){return 0|JA(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0)},eh:Xs,fh:Xs,gh:ns,hh:qu,ih:Au,jh:function(){return 1540},kh:k1,lh:v1,mh:Xs,nh:ns,oh:Yu,ph:Au,qh:function(At,ft,pt,gt,_t){return 0|pp(At|=0,ft|=0,pt|=0,gt|=0,_t|=0)},rh:function(At,ft,pt,gt,_t,Ot,Wt,Ct){return 0|Y0(At|=0,ft|=0,(At=0)|(pt|=0),gt|=0,_t|=0,At|(Ot|=0),Wt|=0,Ct|=0)},sh:function(At,ft,pt,gt,_t,Ot){return 0|KA(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0)},th:Xs,uh:k1,vh:function(At,ft,pt,gt,_t,Ot,Wt,Ct){var Lt;return At|=0,ft|=0,pt|=0,gt|=0,Ot|=0,Wt|=0,jn=Lt=jn-32|0,Uu(Lt,_t|=0,Ct|=0,0),At=Y0(Ct=At,ft,(At=0)|pt,gt,_t+16|0,At|Ot,Wt,Lt),Uo(Lt,32),jn=Lt+32|0,0|At},wh:v1,xh:ns,yh:qu,zh:Au,Ah:Xs,Bh:Ps,Ch:ns,Dh:ou,Eh:Ur,Fh:p0,Gh:$1,Hh:function(){return 1089},Ih:function(){var At,ft;return jn=At=jn-16|0,Ft[At+15|0]=0,ft=0|ko(36800,At+15|0,0),jn=At+16|0,0|ft},Jh:R1,Kh:function(At){var ft,pt=0,gt=0;if(jn=ft=jn-16|0,(At|=0)>>>0>=2){for(pt=(0-At>>>0)%(At>>>0)|0;Ft[ft+15|0]=0,pt>>>0>(gt=0|ko(36800,ft+15|0,0))>>>0;);pt=(gt>>>0)%(At>>>0)|0}return jn=ft+16|0,0|pt},Lh:hu,Mh:function(At,ft,pt){Ol(At|=0,ft|=0,0,1574,pt|=0)},Nh:ns,Oh:function(){var At=0,ft=0;return(At=ut[9524])&&(At=ut[At+20>>2])&&(ft=0|eu[0|At]()),0|ft},Ph:function(At,ft,pt){At|=0,ft|=0;var gt,_t=0,Ot=0,Wt=0;if(jn=gt=jn-16|0,pt|=0)Wo(1329,1175,197,1092),Sr();else{if(ft)for(;Ft[gt+15|0]=0,Ot=At+_t|0,Wt=0|ko(36800,gt+15|0,0),Ft[0|Ot]=Wt,(0|ft)!=(0|(_t=_t+1|0)););jn=gt+16|0}},Qh:function(At,ft,pt,gt){At|=0,pt|=0;var _t=0,Ot=0,Wt=0;if(!((gt|=0)>>>0>2147483646|gt<<1>>>0>=(ft|=0)>>>0)){if(ft=0,gt){for(;_t=(ft<<1)+At|0,Ot=15&(Wt=bt[ft+pt|0]),Ft[_t+1|0]=22272+((Ot<<8)+(Ot+65526&55552)|0)>>>8,Ot=_t,_t=Wt>>>4|0,Ft[0|Ot]=87+((_t+65526>>>8&217)+_t|0),(0|gt)!=(0|(ft=ft+1|0)););ft=gt<<1}else ft=0;return Ft[ft+At|0]=0,0|At}Fs(),Sr()},Rh:function(At,ft,pt,gt,_t,Ot,Wt){At|=0,ft|=0,pt|=0,_t|=0,Ot|=0,Wt|=0;var Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0;e:if(gt|=0){t:{n:{r:{i:{if(!_t){for(Lt=1,_t=0;;){if(!(255&((mn=(65526+(Xt=(223&(rn=bt[pt+Ct|0]))-55&255)^Xt+65520)>>>8|0)|(_n=65526+(rn^=48)>>>8|0))))break r;if(ft>>>0<=un>>>0)break i;if(Xt=Xt&mn|rn&_n,255&hn?(Ft[At+un|0]=_t|Xt,un=un+1|0):_t=Xt<<4,hn^=-1,(0|(Ct=Ct+1|0))==(0|gt))break}Ct=gt;break r}for(;;){a:{d:{f:{o:{c:{if(!(255&((rn=(65526+(Xt=(223&(Lt=bt[pt+Ct|0]))-55&255)^Xt+65520)>>>8|0)|(_n=65526+(mn=48^Lt)>>>8|0)))){if(255&hn)break n;if(!l0(_t,Lt))break e;if((Ct=hn=Ct+1|0)>>>0>>0)break c;break e}if(ft>>>0<=un>>>0)break i;if(Lt=Xt&rn|mn&_n,!(255&hn))break o;Ft[At+un|0]=Lt|On,un=un+1|0;break a}for(;;){if(!(255&((rn=(65526+(Xt=(223&(Lt=bt[pt+Ct|0]))-55&255)^Xt+65520)>>>8|0)|(_n=65526+(mn=48^Lt)>>>8|0)))){if(!l0(_t,Lt))break e;if((Ct=Ct+1|0)>>>0>>0)continue;break f}break}if(ft>>>0<=un>>>0)break d;Lt=Xt&rn|mn&_n}On=Lt<<4,hn=0;break a}Ct=gt>>>0>hn>>>0?gt:hn;break e}hn=0;break i}if(hn^=-1,Lt=1,!((Ct=Ct+1|0)>>>0>>0))break}break r}ut[9392]=68,Lt=0}if(!(255&hn))break t}ut[9392]=28,In=-1,Ct=Ct-1|0,un=0;break e}Lt||(un=0,In=-1)}return Wt?ut[Wt>>2]=pt+Ct:(0|gt)!=(0|Ct)&&(ut[9392]=28,In=-1),Ot&&(ut[Ot>>2]=un),0|In},Sh:function(At,ft){At|=0;var pt=0;return(-7&(ft|=0))!=1&&(Fs(),Sr()),1+((3&(pt=(pt=At)+vo(At=(At>>>0)/3|0,-3)|0)?2&ft?pt+1|0:4:0)+(At<<2)|0)|0},Th:H0,Uh:x0,Vh:function(){var At=0;return ut[9525]?At=1:(R1(),hu(38080,16),ut[9525]=1,At=0),0|At},Wh:function(At,ft,pt,gt,_t){At|=0,ft|=0,pt|=0,_t|=0;var Ot,Wt=0,Ct=0,Lt=0;jn=Ot=jn-16|0;e:{if(gt|=0){if((Wt=gt-1|0)>?(Ct=-1^pt,Wt=Wt-((pt>>>0)%(gt>>>0)|0)|0):Wt&=Ct=-1^pt,Ct>>>0<=Wt>>>0)break e;if(Ct=-1,!((pt=pt+Wt|0)>>>0>=_t>>>0))for(At&&(ut[At>>2]=pt+1),At=ft+pt|0,Ct=0,Ft[Ot+15|0]=0,pt=0;_t=ft=At-pt|0,Lt=bt[0|ft]&bt[Ot+15|0],ft=(pt^Wt)-1>>>24|0,Ft[0|_t]=Lt|128&ft,Ft[Ot+15|0]=ft|bt[Ot+15|0],(0|gt)!=(0|(pt=pt+1|0)););}else Ct=-1;return jn=Ot+16|0,0|Ct}Fs(),Sr()},Xh:function(At,ft,pt,gt){At|=0,ft|=0,pt|=0,gt|=0;var _t,Ot=0,Wt=0,Ct=0,Lt=0,Xt=0;if(ut[12+(_t=jn-16|0)>>2]=0,gt-1>>>0>>0){for(Xt=(Ot=pt-1|0)+ft|0,pt=0,ft=0;Lt=((128^(Wt=bt[Xt-pt|0]))-1&ut[_t+12>>2]-1&Ct-1)>>>8&1,ut[_t+12>>2]=ut[_t+12>>2]|0-Lt&pt,ft|=Lt,Ct|=Wt,(0|gt)!=(0|(pt=pt+1|0)););ut[At>>2]=Ot-ut[_t+12>>2],At=(255&ft)-1|0}else At=-1;return 0|At},Yh:function(){return 1457},Zh:function(){return 26},_h:g0,$h:Pu,ai:go,bi:WA,ci:function(At,ft,pt){At|=0;var gt,_t=0;return jn=gt=jn-32|0,_t=-1,Xn(gt,pt|=0,ft|=0)||(_t=yu(At,35584,gt,0)),jn=gt+32|0,0|_t},di:C1,ei:function(At,ft,pt,gt,_t,Ot,Wt,Ct){var Lt,Xt;return At|=0,ft|=0,pt|=0,Ot|=0,Xt=gt|=0,gt=_t|=0,jn=Lt=jn+-64|0,Xn(Lt+32|0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ft[At+29|0]=ft>>>8,Ft[At+30|0]=ft>>>16,Ft[At+31|0]=ft>>>24,ft=ut[Ot+84>>2],pt=ut[Ot+80>>2],Ft[At+16|0]=pt,Ft[At+17|0]=pt>>>8,Ft[At+18|0]=pt>>>16,Ft[At+19|0]=pt>>>24,Ft[At+20|0]=ft,Ft[At+21|0]=ft>>>8,Ft[At+22|0]=ft>>>16,Ft[At+23|0]=ft>>>24,ft=ut[Ot+76>>2],pt=ut[Ot+72>>2],Ft[At+8|0]=pt,Ft[At+9|0]=pt>>>8,Ft[At+10|0]=pt>>>16,Ft[At+11|0]=pt>>>24,Ft[At+12|0]=ft,Ft[At+13|0]=ft>>>8,Ft[At+14|0]=ft>>>16,Ft[At+15|0]=ft>>>24,ft=ut[Ot+68>>2],pt=ut[Ot+64>>2],Ft[0|At]=pt,Ft[At+1|0]=pt>>>8,Ft[At+2|0]=pt>>>16,Ft[At+3|0]=pt>>>24,Ft[At+4|0]=ft,Ft[At+5|0]=ft>>>8,Ft[At+6|0]=ft>>>16,Ft[At+7|0]=ft>>>24,Uo(Ct,32),Uo(Wt,32),Uo(hn,24)),jn=Xt,0|gt},ti:function(At,ft,pt,gt,_t,Ot){At|=0,ft|=0,_t|=0,Ot|=0;var Wt,Ct,Lt=0;return Ct=Lt=jn,jn=Wt=Lt-448&-64,Lt=-1,!(gt|=0)&(pt|=0)>>>0>=48|gt&&(zl(Lt=Wt- -64|0,0,0,24),Su(Lt,ft,32,0),Su(Lt,_t,32,0),Yl(Lt,_t=Wt+32|0,24),Lt=_g(At,ft+32|0,pt-32|0,gt-(pt>>>0<32)|0,_t,ft,Ot)),jn=Ct,0|Lt},ui:n2,vi:function(At){var ft,pt=0;return jn=ft=jn-160|0,sp(At|=0)&&(G0(At)||yl(ft,At)||Hl(ft)&&(pt=(0|N0(ft))!=0)),jn=ft+160|0,0|pt},wi:function(At,ft,pt){At|=0,pt|=0;var gt,_t,Ot=0;return jn=gt=jn-800|0,Ot=-1,yl(_t=gt+640|0,ft|=0)||Hl(_t)&&(yl(ft=gt+480|0,pt)||Hl(ft)&&(Dn(gt,ft),Ys(ft=gt+160|0,_t,gt),FA(pt=gt+320|0,ft),Rl(At,pt),Ot=0)),jn=gt+800|0,0|Ot},xi:function(At,ft,pt){At|=0,pt|=0;var gt,_t,Ot=0;return jn=gt=jn-800|0,Ot=-1,yl(_t=gt+640|0,ft|=0)||Hl(_t)&&(yl(ft=gt+480|0,pt)||Hl(ft)&&(Dn(gt,ft),u0(ft=gt+160|0,_t,gt),FA(pt=gt+320|0,ft),Rl(At,pt),Ot=0)),jn=gt+800|0,0|Ot},yi:function(At,ft){return Ws(At|=0,ft|=0),0},zi:function(At){var ft;At|=0,jn=ft=jn-32|0,hu(ft,32),Ws(At,ft),jn=ft+32|0},Ai:h1,Bi:BA,Ci:DA,Di:NA,Ei:EA,Fi:OA,Gi:SA,Hi:T1,Ii:ns,Ji:ou,Ki:ns,Li:ou,Mi:ns,Ni:function(At){var ft;return jn=ft=jn-160|0,At=Il(ft,At|=0),jn=ft+160|0,0|!At},Oi:function(At,ft,pt){At|=0,pt|=0;var gt,_t,Ot=0;return jn=gt=jn-800|0,Ot=-1,Il(_t=gt+640|0,ft|=0)||Il(ft=gt+480|0,pt)||(Dn(gt,ft),Ys(ft=gt+160|0,_t,gt),FA(pt=gt+320|0,ft),Ll(At,pt),Ot=0),jn=gt+800|0,0|Ot},Pi:function(At,ft,pt){At|=0,pt|=0;var gt,_t,Ot=0;return jn=gt=jn-800|0,Ot=-1,Il(_t=gt+640|0,ft|=0)||Il(ft=gt+480|0,pt)||(Dn(gt,ft),u0(ft=gt+160|0,_t,gt),FA(pt=gt+320|0,ft),Ll(At,pt),Ot=0),jn=gt+800|0,0|Ot},Qi:function(At,ft){return Kp(At|=0,ft|=0),0},Ri:function(At){var ft;At|=0,jn=ft=jn+-64|0,hu(ft,64),Kp(At,ft),jn=ft- -64|0},Si:function(At){h1(At|=0)},Ti:function(At,ft){return 0|BA(At|=0,ft|=0)},Ui:function(At,ft){DA(At|=0,ft|=0)},Vi:function(At,ft){NA(At|=0,ft|=0)},Wi:function(At,ft,pt){EA(At|=0,ft|=0,pt|=0)},Xi:function(At,ft,pt){SA(At|=0,ft|=0,pt|=0)},Yi:T1,Zi:function(At,ft){OA(At|=0,ft|=0)},_i:ns,$i:ou,aj:ou,bj:ns,cj:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt){return 0|o1(At|=0,ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Ct|=0,Lt|=0,Xt|=0)},dj:Ps,ej:Au,fj:Pu,gj:Au,hj:ns,ij:function(){return 102},jj:function(){return 1570},kj:function(){return 32768},lj:Au,mj:K1,nj:Au,oj:function(){return 524288},pj:K1,qj:W1,rj:yp,sj:function(At,ft,pt,gt,_t,Ot,Wt,Ct,Lt,Xt){var hn,rn,un;ft|=0,pt|=0,gt|=0,_t|=0,Ot|=0,Wt|=0,Lt|=0,Xt|=0,rn=0|(Ct|=0),jn=Ct=jn-16|0,un=ft|=0,hn=ms(At|=0,0,ft),At=0|_t;e:if((0|(_t=pt|Ot))==1|_t>>>0>1)ut[9392]=22,At=-1;else if(!pt&ft>>>0>=16|pt){if(Q0(rn,Lt,Xt,Ct+12|0,Ct+8|0,Ct+4|0),(0|gt)==(0|hn)){ut[9392]=28,At=-1;break e}_t=At,At=31&(ft=ut[Ct+12>>2]),(63&ft)>>>0>=32?(ft=1<>>32-At,At=o1(gt,_t,Wt,32,pt,ft,ut[Ct+4>>2],ut[Ct+8>>2],hn,un)}else ut[9392]=28,At=-1;return jn=Ct+16|0,0|At},tj:function(At,ft,pt,gt,_t,Ot,Wt){ft|=0,pt|=0,gt|=0,Ot|=0,Wt|=0;var Ct,Lt,Xt,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0;hn=_t|=0,hn|=_t=0,jn=Ct=jn-128|0,Lt=ms(At|=0,0,102),_n=22,Xt=pt|_t;e:{if(!gt){Q0(hn,Ot,Wt,Ct+16|0,Ct+12|0,Ct+8|0),hu(rn=Ct+96|0,32),_n=28,pt=Ct+32|0,Ot=ut[Ct+16>>2],Wt=Sn(At=ut[Ct+12>>2],0,gt=ut[Ct+8>>2],0);t:if(!(!(hn=ln)&Wt>>>0>1073741823|hn|Ot>>>0>63)&&(Ft[0|pt]=36,Ft[pt+1|0]=55,Ft[pt+2|0]=36,Ft[pt+3|0]=bt[Ot+1024|0],Ft[pt+4|0]=bt[1024+(63>)|0],Ft[pt+5|0]=bt[1024+(gt>>>6&63)|0],Ft[pt+6|0]=bt[1024+(gt>>>12&63)|0],Ft[pt+7|0]=bt[1024+(gt>>>18&63)|0],Ft[pt+8|0]=bt[1024+(gt>>>24&63)|0],(gt=pt+9|0)&&(0|gt)!=(0|(un=pt+58|0))&&(Ft[0|gt]=bt[1024+(63&At)|0],(0|(gt=un-gt|0))!=1&&(Ft[pt+10|0]=bt[1024+(At>>>6&63)|0],(0|gt)!=2&&(Ft[pt+11|0]=bt[1024+(At>>>12&63)|0],(0|gt)!=3&&(Ft[pt+12|0]=bt[1024+(At>>>18&63)|0],(0|gt)!=4&&(Ft[pt+13|0]=bt[1024+(At>>>24&63)|0],Ot=pt+14|0))))))){for(hn=un-Ot|0,At=0;;){if(gt=Ot,!(At>>>0>=32)){if(Ot=bt[At+rn|0],(In=(Wt=At+1|0)>>>0>=32)?mn=0:(Ot=bt[Wt+rn|0]<<8|Ot,(Wt=At+2|0)>>>0>=32?mn=0:(Ot=bt[Wt+rn|0]<<16|Ot,mn=1,Wt=At+3|0)),At=Wt,!hn||(Ft[0|gt]=bt[1024+(63&Ot)|0],(0|hn)==1))break t;if(Ft[gt+1|0]=bt[1024+(Ot>>>6&63)|0],On=gt+hn|0,Wt=gt+2|0,!In){if((0|hn)==2)break t;if(Ft[gt+2|0]=bt[1024+(Ot>>>12&63)|0],Wt=gt+3|0,mn){if((0|hn)==3)break t;Ft[gt+3|0]=bt[1024+(Ot>>>18|0)|0],Wt=gt+4|0}}if(hn=On-(Ot=Wt)|0,Ot)continue;break t}break}gt>>>0>=un>>>0||(Ft[0|gt]=0,_t=pt)}if(_t&&(At=-1,Ap(gt=Ct+20|0),ft=xA(gt,ft,Xt,pt,Lt),GA(gt),At=0,ft))break e}ut[9392]=_n,At=-1}return jn=Ct+128|0,0|At},uj:function(At,ft,pt,gt){ft|=0,gt|=0;var _t,Ot,Wt=0;_t=At|=0,Ot=pt|=0,pt=0,jn=gt=jn-128|0;e:{t:{for(;;){if(!bt[pt+_t|0]){At=pt;break t}if(!bt[_t+(At=pt+1|0)|0]||!bt[_t+(At=pt+2|0)|0])break t;if((0|(pt=pt+3|0))==102)break}pt=-1;break e}pt=-1,(0|At)==101&&(Ap(Wt=gt+4|0)||(ms(At=gt+16|0,0,102),ft=xA(Wt,ft,Ot,_t,At),GA(Wt),ft&&(pt=Jl(At,_t,102),Uo(At,102))))}return jn=gt+128|0,0|pt},vj:function(At,ft,pt,gt){var _t,Ot;Ot=At|=0,jn=_t=jn-32|0,Q0(ft|=0,pt|=0,gt|=0,_t+28|0,_t+20|0,_t+12|0),At=0;e:{t:{n:{for(;;){if(bt[At+Ot|0]){if(bt[Ot+(ft=At+1|0)|0]&&bt[Ot+(ft=At+2|0)|0]){if((0|(At=At+3|0))!=102)continue;break n}}else ft=At;break}if((0|ft)==101){if(pt=_t+8|0,gt=_t+16|0,At=0,bt[0|Ot]!=36|bt[Ot+1|0]!=55|bt[Ot+2|0]!=36||(ft=Gl(bt[Ot+3|0]),ut[_t+24>>2]=ft?ft-1024|0:0,ft&&(ft=UA(pt,Ot+4|0))&&(At=UA(gt,ft))),At)break t;ut[9392]=28,At=-1;break e}}ut[9392]=28,At=-1;break e}At=1,ut[_t+28>>2]!=ut[_t+24>>2]|ut[_t+12>>2]!=ut[_t+8>>2]||(At=ut[_t+20>>2]!=ut[_t+16>>2])}return jn=_t+32|0,0|At},wj:function(At,ft,pt){return 0|MA(At|=0,ft|=0,pt|=0,1)},xj:function(At,ft,pt){return 0|MA(At|=0,ft|=0,pt|=0,0)},yj:function(At,ft){return 0|kn(At|=0,ft|=0,1)},zj:function(At,ft){return 0|kn(At|=0,ft|=0,0)},Aj:ns,Bj:ns,Cj:function(At,ft,pt){At|=0,ft|=0;var gt,_t=0;return jn=gt=jn-320|0,_t=-1,Il(gt,pt|=0)||(Ft[0|At]=bt[0|ft],Ft[At+1|0]=bt[ft+1|0],Ft[At+2|0]=bt[ft+2|0],Ft[At+3|0]=bt[ft+3|0],Ft[At+4|0]=bt[ft+4|0],Ft[At+5|0]=bt[ft+5|0],Ft[At+6|0]=bt[ft+6|0],Ft[At+7|0]=bt[ft+7|0],Ft[At+8|0]=bt[ft+8|0],Ft[At+9|0]=bt[ft+9|0],Ft[At+10|0]=bt[ft+10|0],Ft[At+11|0]=bt[ft+11|0],Ft[At+12|0]=bt[ft+12|0],Ft[At+13|0]=bt[ft+13|0],Ft[At+14|0]=bt[ft+14|0],Ft[At+15|0]=bt[ft+15|0],Ft[At+16|0]=bt[ft+16|0],Ft[At+17|0]=bt[ft+17|0],Ft[At+18|0]=bt[ft+18|0],Ft[At+19|0]=bt[ft+19|0],Ft[At+20|0]=bt[ft+20|0],Ft[At+21|0]=bt[ft+21|0],Ft[At+22|0]=bt[ft+22|0],Ft[At+23|0]=bt[ft+23|0],Ft[At+24|0]=bt[ft+24|0],Ft[At+25|0]=bt[ft+25|0],Ft[At+26|0]=bt[ft+26|0],Ft[At+27|0]=bt[ft+27|0],Ft[At+28|0]=bt[ft+28|0],Ft[At+29|0]=bt[ft+29|0],Ft[At+30|0]=bt[ft+30|0],Ft[At+31|0]=127&bt[ft+31|0],fA(ft=gt+160|0,At,gt),Ll(At,ft),_t=gu(At,32)?-1:0),jn=gt+320|0,0|_t},Dj:function(At,ft){var pt;return ft|=0,jn=pt=jn-160|0,Ft[0|(At|=0)]=bt[0|ft],Ft[At+1|0]=bt[ft+1|0],Ft[At+2|0]=bt[ft+2|0],Ft[At+3|0]=bt[ft+3|0],Ft[At+4|0]=bt[ft+4|0],Ft[At+5|0]=bt[ft+5|0],Ft[At+6|0]=bt[ft+6|0],Ft[At+7|0]=bt[ft+7|0],Ft[At+8|0]=bt[ft+8|0],Ft[At+9|0]=bt[ft+9|0],Ft[At+10|0]=bt[ft+10|0],Ft[At+11|0]=bt[ft+11|0],Ft[At+12|0]=bt[ft+12|0],Ft[At+13|0]=bt[ft+13|0],Ft[At+14|0]=bt[ft+14|0],Ft[At+15|0]=bt[ft+15|0],Ft[At+16|0]=bt[ft+16|0],Ft[At+17|0]=bt[ft+17|0],Ft[At+18|0]=bt[ft+18|0],Ft[At+19|0]=bt[ft+19|0],Ft[At+20|0]=bt[ft+20|0],Ft[At+21|0]=bt[ft+21|0],Ft[At+22|0]=bt[ft+22|0],Ft[At+23|0]=bt[ft+23|0],Ft[At+24|0]=bt[ft+24|0],Ft[At+25|0]=bt[ft+25|0],Ft[At+26|0]=bt[ft+26|0],Ft[At+27|0]=bt[ft+27|0],Ft[At+28|0]=bt[ft+28|0],Ft[At+29|0]=bt[ft+29|0],Ft[At+30|0]=bt[ft+30|0],Ft[At+31|0]=127&bt[ft+31|0],El(pt,At),Ll(At,pt),At=gu(At,32),jn=pt+160|0,0|(At?-1:0)},Ej:ns,Fj:ns,Gj:C1,Hj:function(At,ft,pt,gt,_t,Ot){return At|=0,ft|=0,_t|=0,Ot|=0,!(gt|=0)&(pt|=0)>>>0>=4294967280|gt&&(Fs(),Sr()),rs(At+16|0,At,ft,pt,gt,_t,Ot),0},Ij:S1,Jj:u1,Kj:ns,Lj:qu,Mj:Ps,Nj:Cl,Oj:Ps,Pj:Ps,Qj:function(At,ft,pt,gt,_t){At|=0,ft|=0,pt|=0,gt|=0;var Ot,Wt=0,Ct=0,Lt=0,Xt=0,hn=0,rn=0,un=0,mn=0,_n=0,In=0,On=0,Cn=0,Qn=0,Hn=0,Gn=0;if(Hn=1886610805^(Ct=bt[0|(_t|=0)]|bt[_t+1|0]<<8|bt[_t+2|0]<<16|bt[_t+3|0]<<24),On=1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,pt,gt+16|0,Ot),jn=Ot+32|0,0|At},fk:function(At,ft,pt,gt,_t,Ot,Wt,Ct){var Lt;return At|=0,ft|=0,pt|=0,gt|=0,Ot|=0,Wt|=0,jn=Lt=jn-32|0,yu(Lt,_t|=0,Ct|=0,0),At=Wl(Ct=At,ft,(At=0)|pt,gt,_t+16|0,At|Ot,Wt,Lt),jn=Lt+32|0,0|At},gk:function(At,ft,pt,gt,_t,Ot){var Wt;return At|=0,ft|=0,pt|=0,gt|=0,jn=Wt=jn-32|0,yu(Wt,_t|=0,Ot|=0,0),At=Wl(At,ft,pt,gt,_t+16|0,0,0,Wt),jn=Wt+32|0,0|At},hk:Xs,ik:Ds,jk:_d,kk:eu}}(qn)}(Yn)},instantiate:function(Fn,Yn){return{then:function(qn){var vn=new po.Module(Fn);qn({instance:new po.Instance(vn,Yn)})}}},RuntimeError:Error};Vr=[],typeof po!="object"&&fs("no native wasm support detected");var fo,bo,Lo,Zr,Tr,sn,yn,Pn=!1;function Gr(){var Fn=Lr.buffer;pn.HEAP8=fo=new Int8Array(Fn),pn.HEAP16=Lo=new Int16Array(Fn),pn.HEAPU8=bo=new Uint8Array(Fn),pn.HEAPU16=new Uint16Array(Fn),pn.HEAP32=Zr=new Int32Array(Fn),pn.HEAPU32=Tr=new Uint32Array(Fn),pn.HEAPF32=sn=new Float32Array(Fn),pn.HEAPF64=yn=new Float64Array(Fn)}var gr=pn.INITIAL_MEMORY||50331648;gr>=65536||fs("INITIAL_MEMORY should be larger than STACK_SIZE, was "+gr+"! (STACK_SIZE=65536)"),Lr=pn.wasmMemory?pn.wasmMemory:new po.Memory({initial:gr/65536,maximum:32768}),Gr(),gr=Lr.buffer.byteLength;var Wr=[],Zo=[],ba=[],ga=0,cs=null;function fs(Fn){throw pn.onAbort&&pn.onAbort(Fn),oo(Fn="Aborted("+Fn+")"),Pn=!0,Fn+=". Build with -sASSERTIONS for more info.",new po.RuntimeError(Fn)}var as,Ss,Qs="data:application/octet-stream;base64,";function us(Fn){return Fn.startsWith(Qs)}us(as="<<< WASM_BINARY_FILE >>>")||(Ss=as,as=pn.locateFile?pn.locateFile(Ss,br):br+Ss);var $s,dr={36800:()=>pn.getRandomValue(),36836:()=>{if(pn.getRandomValue===void 0)try{var Fn=typeof window=="object"?window:self,Yn=Fn.crypto!==void 0?Fn.crypto:Fn.msCrypto,qn=function(){var ir=new Uint32Array(1);return Yn.getRandomValues(ir),ir[0]>>>0};qn(),pn.getRandomValue=qn}catch{try{var vn=require$$0$3,Jn=function(){var _r=vn.randomBytes(4);return(_r[0]<<24|_r[1]<<16|_r[2]<<8|_r[3])>>>0};Jn(),pn.getRandomValue=Jn}catch{throw"No secure random number generator found"}}}},vr=Fn=>{for(;Fn.length>0;)Fn.shift()(pn)},Ir=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Vn=(Fn,Yn)=>Fn?((qn,vn,Jn)=>{for(var ir=vn+Jn,_r=vn;qn[_r]&&!(_r>=ir);)++_r;if(_r-vn>16&&qn.buffer&&Ir)return Ir.decode(qn.subarray(vn,_r));for(var Sr="";vn<_r;){var no=qn[vn++];if(128&no){var eo=63&qn[vn++];if((224&no)!=192){var mo=63&qn[vn++];if((no=(240&no)==224?(15&no)<<12|eo<<6|mo:(7&no)<<18|eo<<12|mo<<6|63&qn[vn++])<65536)Sr+=String.fromCharCode(no);else{var Bo=no-65536;Sr+=String.fromCharCode(55296|Bo>>10,56320|1023&Bo)}}else Sr+=String.fromCharCode((31&no)<<6|eo)}else Sr+=String.fromCharCode(no)}return Sr})(bo,Fn,Yn):"",kr=[],uo=Fn=>{var Yn=(Fn-Lr.buffer.byteLength+65535)/65536;try{return Lr.grow(Yn),Gr(),1}catch{}},Ao={c:(Fn,Yn,qn,vn)=>{fs(`Assertion failed: ${Vn(Fn)}, at: `+[Yn?Vn(Yn):"unknown filename",qn,vn?Vn(vn):"unknown function"])},d:()=>{fs("")},b:(Fn,Yn,qn)=>((vn,Jn,ir)=>{var _r=((Sr,no)=>{var eo;for(kr.length=0;eo=bo[Sr++];)no+=eo!=105&&no%8?4:0,kr.push(eo==105?Zr[no>>2]:yn[no>>3]),no+=eo==105?4:8;return kr})(Jn,ir);return dr[vn].apply(null,_r)})(Fn,Yn,qn),e:Fn=>{var Yn=bo.length,qn=2147483648;if((Fn>>>=0)>qn)return!1;for(var vn,Jn=1;Jn<=4;Jn*=2){var ir=Yn*(1+.2/Jn);ir=Math.min(ir,Fn+100663296);var _r=Math.min(qn,(vn=Math.max(Fn,ir))+(65536-vn%65536)%65536);if(uo(_r))return!0}return!1},a:Lr},Un=function(){var Fn,Yn,qn={a:Ao};function vn(Jn,ir){var _r,Sr=Jn.exports;return(Un=Sr).kk,_r=Un.f,Zo.unshift(_r),function(no){if(ga--,pn.monitorRunDependencies&&pn.monitorRunDependencies(ga),ga==0&&cs){var eo=cs;cs=null,eo()}}(),Sr}if(ga++,pn.monitorRunDependencies&&pn.monitorRunDependencies(ga),pn.instantiateWasm)try{return pn.instantiateWasm(qn,vn)}catch(Jn){return oo(`Module.instantiateWasm callback failed with error: ${Jn}`),!1}return Fn=qn,Yn=function(Jn){vn(Jn.instance)},function(Jn){return Promise.resolve().then(()=>function(ir){if(ir==as&&Vr)return new Uint8Array(Vr);var _r=function(Sr){if(us(Sr))return function(no){if(Ro!==void 0&&Ro){var eo=Buffer$1.from(no,"base64");return new Uint8Array(eo.buffer,eo.byteOffset,eo.length)}try{for(var mo=atob(no),Bo=new Uint8Array(mo.length),Ft=0;Ftpo.instantiate(Jn,Fn)).then(Jn=>Jn).then(Yn,Jn=>{oo(`failed to asynchronously prepare wasm: ${Jn}`),fs(Jn)}),{}}();function Go(){function Fn(){$s||($s=!0,pn.calledRun=!0,Pn||(vr(Zo),pn.onRuntimeInitialized&&pn.onRuntimeInitialized(),function(){if(pn.postRun)for(typeof pn.postRun=="function"&&(pn.postRun=[pn.postRun]);pn.postRun.length;)Yn=pn.postRun.shift(),ba.unshift(Yn);var Yn;vr(ba)}()))}ga>0||(function(){if(pn.preRun)for(typeof pn.preRun=="function"&&(pn.preRun=[pn.preRun]);pn.preRun.length;)Yn=pn.preRun.shift(),Wr.unshift(Yn);var Yn;vr(Wr)}(),ga>0||(pn.setStatus?(pn.setStatus("Running..."),setTimeout(function(){setTimeout(function(){pn.setStatus("")},1),Fn()},1)):Fn()))}if(pn._crypto_aead_aegis128l_keybytes=()=>(pn._crypto_aead_aegis128l_keybytes=Un.g)(),pn._crypto_aead_aegis128l_nsecbytes=()=>(pn._crypto_aead_aegis128l_nsecbytes=Un.h)(),pn._crypto_aead_aegis128l_npubbytes=()=>(pn._crypto_aead_aegis128l_npubbytes=Un.i)(),pn._crypto_aead_aegis128l_abytes=()=>(pn._crypto_aead_aegis128l_abytes=Un.j)(),pn._crypto_aead_aegis128l_messagebytes_max=()=>(pn._crypto_aead_aegis128l_messagebytes_max=Un.k)(),pn._crypto_aead_aegis128l_keygen=Fn=>(pn._crypto_aead_aegis128l_keygen=Un.l)(Fn),pn._crypto_aead_aegis128l_encrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_aegis128l_encrypt=Un.m)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_aegis128l_encrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo)=>(pn._crypto_aead_aegis128l_encrypt_detached=Un.n)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo),pn._crypto_aead_aegis128l_decrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_aegis128l_decrypt=Un.o)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_aegis128l_decrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_aegis128l_decrypt_detached=Un.p)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_aegis256_keybytes=()=>(pn._crypto_aead_aegis256_keybytes=Un.q)(),pn._crypto_aead_aegis256_nsecbytes=()=>(pn._crypto_aead_aegis256_nsecbytes=Un.r)(),pn._crypto_aead_aegis256_npubbytes=()=>(pn._crypto_aead_aegis256_npubbytes=Un.s)(),pn._crypto_aead_aegis256_abytes=()=>(pn._crypto_aead_aegis256_abytes=Un.t)(),pn._crypto_aead_aegis256_messagebytes_max=()=>(pn._crypto_aead_aegis256_messagebytes_max=Un.u)(),pn._crypto_aead_aegis256_keygen=Fn=>(pn._crypto_aead_aegis256_keygen=Un.v)(Fn),pn._crypto_aead_aegis256_encrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_aegis256_encrypt=Un.w)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_aegis256_encrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo)=>(pn._crypto_aead_aegis256_encrypt_detached=Un.x)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo),pn._crypto_aead_aegis256_decrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_aegis256_decrypt=Un.y)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_aegis256_decrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_aegis256_decrypt_detached=Un.z)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_chacha20poly1305_encrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo)=>(pn._crypto_aead_chacha20poly1305_encrypt_detached=Un.A)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo),pn._crypto_aead_chacha20poly1305_encrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_chacha20poly1305_encrypt=Un.B)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_chacha20poly1305_ietf_encrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo)=>(pn._crypto_aead_chacha20poly1305_ietf_encrypt_detached=Un.C)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo),pn._crypto_aead_chacha20poly1305_ietf_encrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_chacha20poly1305_ietf_encrypt=Un.D)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_chacha20poly1305_decrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_chacha20poly1305_decrypt_detached=Un.E)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_chacha20poly1305_decrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_chacha20poly1305_decrypt=Un.F)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_chacha20poly1305_ietf_decrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_chacha20poly1305_ietf_decrypt_detached=Un.G)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_chacha20poly1305_ietf_decrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_chacha20poly1305_ietf_decrypt=Un.H)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_chacha20poly1305_ietf_keybytes=()=>(pn._crypto_aead_chacha20poly1305_ietf_keybytes=Un.I)(),pn._crypto_aead_chacha20poly1305_ietf_npubbytes=()=>(pn._crypto_aead_chacha20poly1305_ietf_npubbytes=Un.J)(),pn._crypto_aead_chacha20poly1305_ietf_nsecbytes=()=>(pn._crypto_aead_chacha20poly1305_ietf_nsecbytes=Un.K)(),pn._crypto_aead_chacha20poly1305_ietf_abytes=()=>(pn._crypto_aead_chacha20poly1305_ietf_abytes=Un.L)(),pn._crypto_aead_chacha20poly1305_ietf_messagebytes_max=()=>(pn._crypto_aead_chacha20poly1305_ietf_messagebytes_max=Un.M)(),pn._crypto_aead_chacha20poly1305_ietf_keygen=Fn=>(pn._crypto_aead_chacha20poly1305_ietf_keygen=Un.N)(Fn),pn._crypto_aead_chacha20poly1305_keybytes=()=>(pn._crypto_aead_chacha20poly1305_keybytes=Un.O)(),pn._crypto_aead_chacha20poly1305_npubbytes=()=>(pn._crypto_aead_chacha20poly1305_npubbytes=Un.P)(),pn._crypto_aead_chacha20poly1305_nsecbytes=()=>(pn._crypto_aead_chacha20poly1305_nsecbytes=Un.Q)(),pn._crypto_aead_chacha20poly1305_abytes=()=>(pn._crypto_aead_chacha20poly1305_abytes=Un.R)(),pn._crypto_aead_chacha20poly1305_messagebytes_max=()=>(pn._crypto_aead_chacha20poly1305_messagebytes_max=Un.S)(),pn._crypto_aead_chacha20poly1305_keygen=Fn=>(pn._crypto_aead_chacha20poly1305_keygen=Un.T)(Fn),pn._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo)=>(pn._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=Un.U)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo),pn._crypto_aead_xchacha20poly1305_ietf_encrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_xchacha20poly1305_ietf_encrypt=Un.V)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=Un.W)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_xchacha20poly1305_ietf_decrypt=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_aead_xchacha20poly1305_ietf_decrypt=Un.X)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_aead_xchacha20poly1305_ietf_keybytes=()=>(pn._crypto_aead_xchacha20poly1305_ietf_keybytes=Un.Y)(),pn._crypto_aead_xchacha20poly1305_ietf_npubbytes=()=>(pn._crypto_aead_xchacha20poly1305_ietf_npubbytes=Un.Z)(),pn._crypto_aead_xchacha20poly1305_ietf_nsecbytes=()=>(pn._crypto_aead_xchacha20poly1305_ietf_nsecbytes=Un._)(),pn._crypto_aead_xchacha20poly1305_ietf_abytes=()=>(pn._crypto_aead_xchacha20poly1305_ietf_abytes=Un.$)(),pn._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=()=>(pn._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=Un.aa)(),pn._crypto_aead_xchacha20poly1305_ietf_keygen=Fn=>(pn._crypto_aead_xchacha20poly1305_ietf_keygen=Un.ba)(Fn),pn._crypto_auth_bytes=()=>(pn._crypto_auth_bytes=Un.ca)(),pn._crypto_auth_keybytes=()=>(pn._crypto_auth_keybytes=Un.da)(),pn._crypto_auth_primitive=()=>(pn._crypto_auth_primitive=Un.ea)(),pn._crypto_auth=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth=Un.fa)(Fn,Yn,qn,vn,Jn),pn._crypto_auth_verify=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth_verify=Un.ga)(Fn,Yn,qn,vn,Jn),pn._crypto_auth_keygen=Fn=>(pn._crypto_auth_keygen=Un.ha)(Fn),pn._crypto_auth_hmacsha256_bytes=()=>(pn._crypto_auth_hmacsha256_bytes=Un.ia)(),pn._crypto_auth_hmacsha256_keybytes=()=>(pn._crypto_auth_hmacsha256_keybytes=Un.ja)(),pn._crypto_auth_hmacsha256_statebytes=()=>(pn._crypto_auth_hmacsha256_statebytes=Un.ka)(),pn._crypto_auth_hmacsha256_keygen=Fn=>(pn._crypto_auth_hmacsha256_keygen=Un.la)(Fn),pn._crypto_auth_hmacsha256_init=(Fn,Yn,qn)=>(pn._crypto_auth_hmacsha256_init=Un.ma)(Fn,Yn,qn),pn._crypto_auth_hmacsha256_update=(Fn,Yn,qn,vn)=>(pn._crypto_auth_hmacsha256_update=Un.na)(Fn,Yn,qn,vn),pn._crypto_auth_hmacsha256_final=(Fn,Yn)=>(pn._crypto_auth_hmacsha256_final=Un.oa)(Fn,Yn),pn._crypto_auth_hmacsha256=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth_hmacsha256=Un.pa)(Fn,Yn,qn,vn,Jn),pn._crypto_auth_hmacsha256_verify=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth_hmacsha256_verify=Un.qa)(Fn,Yn,qn,vn,Jn),pn._crypto_auth_hmacsha512_bytes=()=>(pn._crypto_auth_hmacsha512_bytes=Un.ra)(),pn._crypto_auth_hmacsha512_keybytes=()=>(pn._crypto_auth_hmacsha512_keybytes=Un.sa)(),pn._crypto_auth_hmacsha512_statebytes=()=>(pn._crypto_auth_hmacsha512_statebytes=Un.ta)(),pn._crypto_auth_hmacsha512_keygen=Fn=>(pn._crypto_auth_hmacsha512_keygen=Un.ua)(Fn),pn._crypto_auth_hmacsha512_init=(Fn,Yn,qn)=>(pn._crypto_auth_hmacsha512_init=Un.va)(Fn,Yn,qn),pn._crypto_auth_hmacsha512_update=(Fn,Yn,qn,vn)=>(pn._crypto_auth_hmacsha512_update=Un.wa)(Fn,Yn,qn,vn),pn._crypto_auth_hmacsha512_final=(Fn,Yn)=>(pn._crypto_auth_hmacsha512_final=Un.xa)(Fn,Yn),pn._crypto_auth_hmacsha512=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth_hmacsha512=Un.ya)(Fn,Yn,qn,vn,Jn),pn._crypto_auth_hmacsha512_verify=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth_hmacsha512_verify=Un.za)(Fn,Yn,qn,vn,Jn),pn._crypto_auth_hmacsha512256_bytes=()=>(pn._crypto_auth_hmacsha512256_bytes=Un.Aa)(),pn._crypto_auth_hmacsha512256_keybytes=()=>(pn._crypto_auth_hmacsha512256_keybytes=Un.Ba)(),pn._crypto_auth_hmacsha512256_statebytes=()=>(pn._crypto_auth_hmacsha512256_statebytes=Un.Ca)(),pn._crypto_auth_hmacsha512256_keygen=Fn=>(pn._crypto_auth_hmacsha512256_keygen=Un.Da)(Fn),pn._crypto_auth_hmacsha512256_init=(Fn,Yn,qn)=>(pn._crypto_auth_hmacsha512256_init=Un.Ea)(Fn,Yn,qn),pn._crypto_auth_hmacsha512256_update=(Fn,Yn,qn,vn)=>(pn._crypto_auth_hmacsha512256_update=Un.Fa)(Fn,Yn,qn,vn),pn._crypto_auth_hmacsha512256_final=(Fn,Yn)=>(pn._crypto_auth_hmacsha512256_final=Un.Ga)(Fn,Yn),pn._crypto_auth_hmacsha512256=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth_hmacsha512256=Un.Ha)(Fn,Yn,qn,vn,Jn),pn._crypto_auth_hmacsha512256_verify=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_auth_hmacsha512256_verify=Un.Ia)(Fn,Yn,qn,vn,Jn),pn._crypto_box_seedbytes=()=>(pn._crypto_box_seedbytes=Un.Ja)(),pn._crypto_box_publickeybytes=()=>(pn._crypto_box_publickeybytes=Un.Ka)(),pn._crypto_box_secretkeybytes=()=>(pn._crypto_box_secretkeybytes=Un.La)(),pn._crypto_box_beforenmbytes=()=>(pn._crypto_box_beforenmbytes=Un.Ma)(),pn._crypto_box_noncebytes=()=>(pn._crypto_box_noncebytes=Un.Na)(),pn._crypto_box_zerobytes=()=>(pn._crypto_box_zerobytes=Un.Oa)(),pn._crypto_box_boxzerobytes=()=>(pn._crypto_box_boxzerobytes=Un.Pa)(),pn._crypto_box_macbytes=()=>(pn._crypto_box_macbytes=Un.Qa)(),pn._crypto_box_messagebytes_max=()=>(pn._crypto_box_messagebytes_max=Un.Ra)(),pn._crypto_box_primitive=()=>(pn._crypto_box_primitive=Un.Sa)(),pn._crypto_box_seed_keypair=(Fn,Yn,qn)=>(pn._crypto_box_seed_keypair=Un.Ta)(Fn,Yn,qn),pn._crypto_box_keypair=(Fn,Yn)=>(pn._crypto_box_keypair=Un.Ua)(Fn,Yn),pn._crypto_box_beforenm=(Fn,Yn,qn)=>(pn._crypto_box_beforenm=Un.Va)(Fn,Yn,qn),pn._crypto_box_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_afternm=Un.Wa)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_open_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_open_afternm=Un.Xa)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box=Un.Ya)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_open=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_open=Un.Za)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_detached_afternm=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_detached_afternm=Un._a)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_box_detached=Un.$a)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_box_easy_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_easy_afternm=Un.ab)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_easy=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_easy=Un.bb)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_open_detached_afternm=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_open_detached_afternm=Un.cb)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_open_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_box_open_detached=Un.db)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_box_open_easy_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_open_easy_afternm=Un.eb)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_open_easy=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_open_easy=Un.fb)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_seal=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_box_seal=Un.gb)(Fn,Yn,qn,vn,Jn),pn._crypto_box_seal_open=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_seal_open=Un.hb)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_sealbytes=()=>(pn._crypto_box_sealbytes=Un.ib)(),pn._crypto_box_curve25519xsalsa20poly1305_seed_keypair=(Fn,Yn,qn)=>(pn._crypto_box_curve25519xsalsa20poly1305_seed_keypair=Un.jb)(Fn,Yn,qn),pn._crypto_box_curve25519xsalsa20poly1305_keypair=(Fn,Yn)=>(pn._crypto_box_curve25519xsalsa20poly1305_keypair=Un.kb)(Fn,Yn),pn._crypto_box_curve25519xsalsa20poly1305_beforenm=(Fn,Yn,qn)=>(pn._crypto_box_curve25519xsalsa20poly1305_beforenm=Un.lb)(Fn,Yn,qn),pn._crypto_box_curve25519xsalsa20poly1305_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_curve25519xsalsa20poly1305_afternm=Un.mb)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_curve25519xsalsa20poly1305_open_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_curve25519xsalsa20poly1305_open_afternm=Un.nb)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_curve25519xsalsa20poly1305=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_curve25519xsalsa20poly1305=Un.ob)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_curve25519xsalsa20poly1305_open=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_curve25519xsalsa20poly1305_open=Un.pb)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_curve25519xsalsa20poly1305_seedbytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_seedbytes=Un.qb)(),pn._crypto_box_curve25519xsalsa20poly1305_publickeybytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_publickeybytes=Un.rb)(),pn._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=Un.sb)(),pn._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=Un.tb)(),pn._crypto_box_curve25519xsalsa20poly1305_noncebytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_noncebytes=Un.ub)(),pn._crypto_box_curve25519xsalsa20poly1305_zerobytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_zerobytes=Un.vb)(),pn._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=Un.wb)(),pn._crypto_box_curve25519xsalsa20poly1305_macbytes=()=>(pn._crypto_box_curve25519xsalsa20poly1305_macbytes=Un.xb)(),pn._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=()=>(pn._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=Un.yb)(),pn._crypto_core_hchacha20=(Fn,Yn,qn,vn)=>(pn._crypto_core_hchacha20=Un.zb)(Fn,Yn,qn,vn),pn._crypto_core_hchacha20_outputbytes=()=>(pn._crypto_core_hchacha20_outputbytes=Un.Ab)(),pn._crypto_core_hchacha20_inputbytes=()=>(pn._crypto_core_hchacha20_inputbytes=Un.Bb)(),pn._crypto_core_hchacha20_keybytes=()=>(pn._crypto_core_hchacha20_keybytes=Un.Cb)(),pn._crypto_core_hchacha20_constbytes=()=>(pn._crypto_core_hchacha20_constbytes=Un.Db)(),pn._crypto_core_hsalsa20=(Fn,Yn,qn,vn)=>(pn._crypto_core_hsalsa20=Un.Eb)(Fn,Yn,qn,vn),pn._crypto_core_hsalsa20_outputbytes=()=>(pn._crypto_core_hsalsa20_outputbytes=Un.Fb)(),pn._crypto_core_hsalsa20_inputbytes=()=>(pn._crypto_core_hsalsa20_inputbytes=Un.Gb)(),pn._crypto_core_hsalsa20_keybytes=()=>(pn._crypto_core_hsalsa20_keybytes=Un.Hb)(),pn._crypto_core_hsalsa20_constbytes=()=>(pn._crypto_core_hsalsa20_constbytes=Un.Ib)(),pn._crypto_core_salsa20=(Fn,Yn,qn,vn)=>(pn._crypto_core_salsa20=Un.Jb)(Fn,Yn,qn,vn),pn._crypto_core_salsa20_outputbytes=()=>(pn._crypto_core_salsa20_outputbytes=Un.Kb)(),pn._crypto_core_salsa20_inputbytes=()=>(pn._crypto_core_salsa20_inputbytes=Un.Lb)(),pn._crypto_core_salsa20_keybytes=()=>(pn._crypto_core_salsa20_keybytes=Un.Mb)(),pn._crypto_core_salsa20_constbytes=()=>(pn._crypto_core_salsa20_constbytes=Un.Nb)(),pn._crypto_core_salsa2012=(Fn,Yn,qn,vn)=>(pn._crypto_core_salsa2012=Un.Ob)(Fn,Yn,qn,vn),pn._crypto_core_salsa2012_outputbytes=()=>(pn._crypto_core_salsa2012_outputbytes=Un.Pb)(),pn._crypto_core_salsa2012_inputbytes=()=>(pn._crypto_core_salsa2012_inputbytes=Un.Qb)(),pn._crypto_core_salsa2012_keybytes=()=>(pn._crypto_core_salsa2012_keybytes=Un.Rb)(),pn._crypto_core_salsa2012_constbytes=()=>(pn._crypto_core_salsa2012_constbytes=Un.Sb)(),pn._crypto_core_salsa208=(Fn,Yn,qn,vn)=>(pn._crypto_core_salsa208=Un.Tb)(Fn,Yn,qn,vn),pn._crypto_core_salsa208_outputbytes=()=>(pn._crypto_core_salsa208_outputbytes=Un.Ub)(),pn._crypto_core_salsa208_inputbytes=()=>(pn._crypto_core_salsa208_inputbytes=Un.Vb)(),pn._crypto_core_salsa208_keybytes=()=>(pn._crypto_core_salsa208_keybytes=Un.Wb)(),pn._crypto_core_salsa208_constbytes=()=>(pn._crypto_core_salsa208_constbytes=Un.Xb)(),pn._crypto_generichash_bytes_min=()=>(pn._crypto_generichash_bytes_min=Un.Yb)(),pn._crypto_generichash_bytes_max=()=>(pn._crypto_generichash_bytes_max=Un.Zb)(),pn._crypto_generichash_bytes=()=>(pn._crypto_generichash_bytes=Un._b)(),pn._crypto_generichash_keybytes_min=()=>(pn._crypto_generichash_keybytes_min=Un.$b)(),pn._crypto_generichash_keybytes_max=()=>(pn._crypto_generichash_keybytes_max=Un.ac)(),pn._crypto_generichash_keybytes=()=>(pn._crypto_generichash_keybytes=Un.bc)(),pn._crypto_generichash_primitive=()=>(pn._crypto_generichash_primitive=Un.cc)(),pn._crypto_generichash_statebytes=()=>(pn._crypto_generichash_statebytes=Un.dc)(),pn._crypto_generichash=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_generichash=Un.ec)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_generichash_init=(Fn,Yn,qn,vn)=>(pn._crypto_generichash_init=Un.fc)(Fn,Yn,qn,vn),pn._crypto_generichash_update=(Fn,Yn,qn,vn)=>(pn._crypto_generichash_update=Un.gc)(Fn,Yn,qn,vn),pn._crypto_generichash_final=(Fn,Yn,qn)=>(pn._crypto_generichash_final=Un.hc)(Fn,Yn,qn),pn._crypto_generichash_keygen=Fn=>(pn._crypto_generichash_keygen=Un.ic)(Fn),pn._crypto_generichash_blake2b_bytes_min=()=>(pn._crypto_generichash_blake2b_bytes_min=Un.jc)(),pn._crypto_generichash_blake2b_bytes_max=()=>(pn._crypto_generichash_blake2b_bytes_max=Un.kc)(),pn._crypto_generichash_blake2b_bytes=()=>(pn._crypto_generichash_blake2b_bytes=Un.lc)(),pn._crypto_generichash_blake2b_keybytes_min=()=>(pn._crypto_generichash_blake2b_keybytes_min=Un.mc)(),pn._crypto_generichash_blake2b_keybytes_max=()=>(pn._crypto_generichash_blake2b_keybytes_max=Un.nc)(),pn._crypto_generichash_blake2b_keybytes=()=>(pn._crypto_generichash_blake2b_keybytes=Un.oc)(),pn._crypto_generichash_blake2b_saltbytes=()=>(pn._crypto_generichash_blake2b_saltbytes=Un.pc)(),pn._crypto_generichash_blake2b_personalbytes=()=>(pn._crypto_generichash_blake2b_personalbytes=Un.qc)(),pn._crypto_generichash_blake2b_statebytes=()=>(pn._crypto_generichash_blake2b_statebytes=Un.rc)(),pn._crypto_generichash_blake2b_keygen=Fn=>(pn._crypto_generichash_blake2b_keygen=Un.sc)(Fn),pn._crypto_generichash_blake2b=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_generichash_blake2b=Un.tc)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_generichash_blake2b_salt_personal=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no)=>(pn._crypto_generichash_blake2b_salt_personal=Un.uc)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no),pn._crypto_generichash_blake2b_init=(Fn,Yn,qn,vn)=>(pn._crypto_generichash_blake2b_init=Un.vc)(Fn,Yn,qn,vn),pn._crypto_generichash_blake2b_init_salt_personal=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_generichash_blake2b_init_salt_personal=Un.wc)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_generichash_blake2b_update=(Fn,Yn,qn,vn)=>(pn._crypto_generichash_blake2b_update=Un.xc)(Fn,Yn,qn,vn),pn._crypto_generichash_blake2b_final=(Fn,Yn,qn)=>(pn._crypto_generichash_blake2b_final=Un.yc)(Fn,Yn,qn),pn._crypto_hash_bytes=()=>(pn._crypto_hash_bytes=Un.zc)(),pn._crypto_hash=(Fn,Yn,qn,vn)=>(pn._crypto_hash=Un.Ac)(Fn,Yn,qn,vn),pn._crypto_hash_primitive=()=>(pn._crypto_hash_primitive=Un.Bc)(),pn._crypto_hash_sha256_bytes=()=>(pn._crypto_hash_sha256_bytes=Un.Cc)(),pn._crypto_hash_sha256_statebytes=()=>(pn._crypto_hash_sha256_statebytes=Un.Dc)(),pn._crypto_hash_sha256_init=Fn=>(pn._crypto_hash_sha256_init=Un.Ec)(Fn),pn._crypto_hash_sha256_update=(Fn,Yn,qn,vn)=>(pn._crypto_hash_sha256_update=Un.Fc)(Fn,Yn,qn,vn),pn._crypto_hash_sha256_final=(Fn,Yn)=>(pn._crypto_hash_sha256_final=Un.Gc)(Fn,Yn),pn._crypto_hash_sha256=(Fn,Yn,qn,vn)=>(pn._crypto_hash_sha256=Un.Hc)(Fn,Yn,qn,vn),pn._crypto_hash_sha512_bytes=()=>(pn._crypto_hash_sha512_bytes=Un.Ic)(),pn._crypto_hash_sha512_statebytes=()=>(pn._crypto_hash_sha512_statebytes=Un.Jc)(),pn._crypto_hash_sha512_init=Fn=>(pn._crypto_hash_sha512_init=Un.Kc)(Fn),pn._crypto_hash_sha512_update=(Fn,Yn,qn,vn)=>(pn._crypto_hash_sha512_update=Un.Lc)(Fn,Yn,qn,vn),pn._crypto_hash_sha512_final=(Fn,Yn)=>(pn._crypto_hash_sha512_final=Un.Mc)(Fn,Yn),pn._crypto_hash_sha512=(Fn,Yn,qn,vn)=>(pn._crypto_hash_sha512=Un.Nc)(Fn,Yn,qn,vn),pn._crypto_kdf_blake2b_bytes_min=()=>(pn._crypto_kdf_blake2b_bytes_min=Un.Oc)(),pn._crypto_kdf_blake2b_bytes_max=()=>(pn._crypto_kdf_blake2b_bytes_max=Un.Pc)(),pn._crypto_kdf_blake2b_contextbytes=()=>(pn._crypto_kdf_blake2b_contextbytes=Un.Qc)(),pn._crypto_kdf_blake2b_keybytes=()=>(pn._crypto_kdf_blake2b_keybytes=Un.Rc)(),pn._crypto_kdf_blake2b_derive_from_key=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_kdf_blake2b_derive_from_key=Un.Sc)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_kdf_primitive=()=>(pn._crypto_kdf_primitive=Un.Tc)(),pn._crypto_kdf_bytes_min=()=>(pn._crypto_kdf_bytes_min=Un.Uc)(),pn._crypto_kdf_bytes_max=()=>(pn._crypto_kdf_bytes_max=Un.Vc)(),pn._crypto_kdf_contextbytes=()=>(pn._crypto_kdf_contextbytes=Un.Wc)(),pn._crypto_kdf_keybytes=()=>(pn._crypto_kdf_keybytes=Un.Xc)(),pn._crypto_kdf_derive_from_key=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_kdf_derive_from_key=Un.Yc)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_kdf_keygen=Fn=>(pn._crypto_kdf_keygen=Un.Zc)(Fn),pn._crypto_kdf_hkdf_sha256_extract_init=(Fn,Yn,qn)=>(pn._crypto_kdf_hkdf_sha256_extract_init=Un._c)(Fn,Yn,qn),pn._crypto_kdf_hkdf_sha256_extract_update=(Fn,Yn,qn)=>(pn._crypto_kdf_hkdf_sha256_extract_update=Un.$c)(Fn,Yn,qn),pn._crypto_kdf_hkdf_sha256_extract_final=(Fn,Yn)=>(pn._crypto_kdf_hkdf_sha256_extract_final=Un.ad)(Fn,Yn),pn._crypto_kdf_hkdf_sha256_extract=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_kdf_hkdf_sha256_extract=Un.bd)(Fn,Yn,qn,vn,Jn),pn._crypto_kdf_hkdf_sha256_keygen=Fn=>(pn._crypto_kdf_hkdf_sha256_keygen=Un.cd)(Fn),pn._crypto_kdf_hkdf_sha256_expand=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_kdf_hkdf_sha256_expand=Un.dd)(Fn,Yn,qn,vn,Jn),pn._crypto_kdf_hkdf_sha256_keybytes=()=>(pn._crypto_kdf_hkdf_sha256_keybytes=Un.ed)(),pn._crypto_kdf_hkdf_sha256_bytes_min=()=>(pn._crypto_kdf_hkdf_sha256_bytes_min=Un.fd)(),pn._crypto_kdf_hkdf_sha256_bytes_max=()=>(pn._crypto_kdf_hkdf_sha256_bytes_max=Un.gd)(),pn._crypto_kdf_hkdf_sha256_statebytes=()=>(pn._crypto_kdf_hkdf_sha256_statebytes=Un.hd)(),pn._crypto_kdf_hkdf_sha512_extract_init=(Fn,Yn,qn)=>(pn._crypto_kdf_hkdf_sha512_extract_init=Un.id)(Fn,Yn,qn),pn._crypto_kdf_hkdf_sha512_extract_update=(Fn,Yn,qn)=>(pn._crypto_kdf_hkdf_sha512_extract_update=Un.jd)(Fn,Yn,qn),pn._crypto_kdf_hkdf_sha512_extract_final=(Fn,Yn)=>(pn._crypto_kdf_hkdf_sha512_extract_final=Un.kd)(Fn,Yn),pn._crypto_kdf_hkdf_sha512_extract=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_kdf_hkdf_sha512_extract=Un.ld)(Fn,Yn,qn,vn,Jn),pn._crypto_kdf_hkdf_sha512_keygen=Fn=>(pn._crypto_kdf_hkdf_sha512_keygen=Un.md)(Fn),pn._crypto_kdf_hkdf_sha512_expand=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_kdf_hkdf_sha512_expand=Un.nd)(Fn,Yn,qn,vn,Jn),pn._crypto_kdf_hkdf_sha512_keybytes=()=>(pn._crypto_kdf_hkdf_sha512_keybytes=Un.od)(),pn._crypto_kdf_hkdf_sha512_bytes_min=()=>(pn._crypto_kdf_hkdf_sha512_bytes_min=Un.pd)(),pn._crypto_kdf_hkdf_sha512_bytes_max=()=>(pn._crypto_kdf_hkdf_sha512_bytes_max=Un.qd)(),pn._crypto_kx_seed_keypair=(Fn,Yn,qn)=>(pn._crypto_kx_seed_keypair=Un.rd)(Fn,Yn,qn),pn._crypto_kx_keypair=(Fn,Yn)=>(pn._crypto_kx_keypair=Un.sd)(Fn,Yn),pn._crypto_kx_client_session_keys=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_kx_client_session_keys=Un.td)(Fn,Yn,qn,vn,Jn),pn._crypto_kx_server_session_keys=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_kx_server_session_keys=Un.ud)(Fn,Yn,qn,vn,Jn),pn._crypto_kx_publickeybytes=()=>(pn._crypto_kx_publickeybytes=Un.vd)(),pn._crypto_kx_secretkeybytes=()=>(pn._crypto_kx_secretkeybytes=Un.wd)(),pn._crypto_kx_seedbytes=()=>(pn._crypto_kx_seedbytes=Un.xd)(),pn._crypto_kx_sessionkeybytes=()=>(pn._crypto_kx_sessionkeybytes=Un.yd)(),pn._crypto_kx_primitive=()=>(pn._crypto_kx_primitive=Un.zd)(),pn._crypto_onetimeauth_statebytes=()=>(pn._crypto_onetimeauth_statebytes=Un.Ad)(),pn._crypto_onetimeauth_bytes=()=>(pn._crypto_onetimeauth_bytes=Un.Bd)(),pn._crypto_onetimeauth_keybytes=()=>(pn._crypto_onetimeauth_keybytes=Un.Cd)(),pn._crypto_onetimeauth=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_onetimeauth=Un.Dd)(Fn,Yn,qn,vn,Jn),pn._crypto_onetimeauth_verify=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_onetimeauth_verify=Un.Ed)(Fn,Yn,qn,vn,Jn),pn._crypto_onetimeauth_init=(Fn,Yn)=>(pn._crypto_onetimeauth_init=Un.Fd)(Fn,Yn),pn._crypto_onetimeauth_update=(Fn,Yn,qn,vn)=>(pn._crypto_onetimeauth_update=Un.Gd)(Fn,Yn,qn,vn),pn._crypto_onetimeauth_final=(Fn,Yn)=>(pn._crypto_onetimeauth_final=Un.Hd)(Fn,Yn),pn._crypto_onetimeauth_primitive=()=>(pn._crypto_onetimeauth_primitive=Un.Id)(),pn._crypto_onetimeauth_keygen=Fn=>(pn._crypto_onetimeauth_keygen=Un.Jd)(Fn),pn._crypto_onetimeauth_poly1305=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_onetimeauth_poly1305=Un.Kd)(Fn,Yn,qn,vn,Jn),pn._crypto_onetimeauth_poly1305_verify=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_onetimeauth_poly1305_verify=Un.Ld)(Fn,Yn,qn,vn,Jn),pn._crypto_onetimeauth_poly1305_init=(Fn,Yn)=>(pn._crypto_onetimeauth_poly1305_init=Un.Md)(Fn,Yn),pn._crypto_onetimeauth_poly1305_update=(Fn,Yn,qn,vn)=>(pn._crypto_onetimeauth_poly1305_update=Un.Nd)(Fn,Yn,qn,vn),pn._crypto_onetimeauth_poly1305_final=(Fn,Yn)=>(pn._crypto_onetimeauth_poly1305_final=Un.Od)(Fn,Yn),pn._crypto_onetimeauth_poly1305_bytes=()=>(pn._crypto_onetimeauth_poly1305_bytes=Un.Pd)(),pn._crypto_onetimeauth_poly1305_keybytes=()=>(pn._crypto_onetimeauth_poly1305_keybytes=Un.Qd)(),pn._crypto_onetimeauth_poly1305_statebytes=()=>(pn._crypto_onetimeauth_poly1305_statebytes=Un.Rd)(),pn._crypto_onetimeauth_poly1305_keygen=Fn=>(pn._crypto_onetimeauth_poly1305_keygen=Un.Sd)(Fn),pn._crypto_pwhash_argon2i_alg_argon2i13=()=>(pn._crypto_pwhash_argon2i_alg_argon2i13=Un.Td)(),pn._crypto_pwhash_argon2i_bytes_min=()=>(pn._crypto_pwhash_argon2i_bytes_min=Un.Ud)(),pn._crypto_pwhash_argon2i_bytes_max=()=>(pn._crypto_pwhash_argon2i_bytes_max=Un.Vd)(),pn._crypto_pwhash_argon2i_passwd_min=()=>(pn._crypto_pwhash_argon2i_passwd_min=Un.Wd)(),pn._crypto_pwhash_argon2i_passwd_max=()=>(pn._crypto_pwhash_argon2i_passwd_max=Un.Xd)(),pn._crypto_pwhash_argon2i_saltbytes=()=>(pn._crypto_pwhash_argon2i_saltbytes=Un.Yd)(),pn._crypto_pwhash_argon2i_strbytes=()=>(pn._crypto_pwhash_argon2i_strbytes=Un.Zd)(),pn._crypto_pwhash_argon2i_strprefix=()=>(pn._crypto_pwhash_argon2i_strprefix=Un._d)(),pn._crypto_pwhash_argon2i_opslimit_min=()=>(pn._crypto_pwhash_argon2i_opslimit_min=Un.$d)(),pn._crypto_pwhash_argon2i_opslimit_max=()=>(pn._crypto_pwhash_argon2i_opslimit_max=Un.ae)(),pn._crypto_pwhash_argon2i_memlimit_min=()=>(pn._crypto_pwhash_argon2i_memlimit_min=Un.be)(),pn._crypto_pwhash_argon2i_memlimit_max=()=>(pn._crypto_pwhash_argon2i_memlimit_max=Un.ce)(),pn._crypto_pwhash_argon2i_opslimit_interactive=()=>(pn._crypto_pwhash_argon2i_opslimit_interactive=Un.de)(),pn._crypto_pwhash_argon2i_memlimit_interactive=()=>(pn._crypto_pwhash_argon2i_memlimit_interactive=Un.ee)(),pn._crypto_pwhash_argon2i_opslimit_moderate=()=>(pn._crypto_pwhash_argon2i_opslimit_moderate=Un.fe)(),pn._crypto_pwhash_argon2i_memlimit_moderate=()=>(pn._crypto_pwhash_argon2i_memlimit_moderate=Un.ge)(),pn._crypto_pwhash_argon2i_opslimit_sensitive=()=>(pn._crypto_pwhash_argon2i_opslimit_sensitive=Un.he)(),pn._crypto_pwhash_argon2i_memlimit_sensitive=()=>(pn._crypto_pwhash_argon2i_memlimit_sensitive=Un.ie)(),pn._crypto_pwhash_argon2i=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_pwhash_argon2i=Un.je)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_pwhash_argon2i_str=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_pwhash_argon2i_str=Un.ke)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_pwhash_argon2i_str_verify=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_argon2i_str_verify=Un.le)(Fn,Yn,qn,vn),pn._crypto_pwhash_argon2i_str_needs_rehash=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_argon2i_str_needs_rehash=Un.me)(Fn,Yn,qn,vn),pn._crypto_pwhash_argon2id_str_needs_rehash=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_argon2id_str_needs_rehash=Un.ne)(Fn,Yn,qn,vn),pn._crypto_pwhash_argon2id_alg_argon2id13=()=>(pn._crypto_pwhash_argon2id_alg_argon2id13=Un.oe)(),pn._crypto_pwhash_argon2id_bytes_min=()=>(pn._crypto_pwhash_argon2id_bytes_min=Un.pe)(),pn._crypto_pwhash_argon2id_bytes_max=()=>(pn._crypto_pwhash_argon2id_bytes_max=Un.qe)(),pn._crypto_pwhash_argon2id_passwd_min=()=>(pn._crypto_pwhash_argon2id_passwd_min=Un.re)(),pn._crypto_pwhash_argon2id_passwd_max=()=>(pn._crypto_pwhash_argon2id_passwd_max=Un.se)(),pn._crypto_pwhash_argon2id_saltbytes=()=>(pn._crypto_pwhash_argon2id_saltbytes=Un.te)(),pn._crypto_pwhash_argon2id_strbytes=()=>(pn._crypto_pwhash_argon2id_strbytes=Un.ue)(),pn._crypto_pwhash_argon2id_strprefix=()=>(pn._crypto_pwhash_argon2id_strprefix=Un.ve)(),pn._crypto_pwhash_argon2id_opslimit_min=()=>(pn._crypto_pwhash_argon2id_opslimit_min=Un.we)(),pn._crypto_pwhash_argon2id_opslimit_max=()=>(pn._crypto_pwhash_argon2id_opslimit_max=Un.xe)(),pn._crypto_pwhash_argon2id_memlimit_min=()=>(pn._crypto_pwhash_argon2id_memlimit_min=Un.ye)(),pn._crypto_pwhash_argon2id_memlimit_max=()=>(pn._crypto_pwhash_argon2id_memlimit_max=Un.ze)(),pn._crypto_pwhash_argon2id_opslimit_interactive=()=>(pn._crypto_pwhash_argon2id_opslimit_interactive=Un.Ae)(),pn._crypto_pwhash_argon2id_memlimit_interactive=()=>(pn._crypto_pwhash_argon2id_memlimit_interactive=Un.Be)(),pn._crypto_pwhash_argon2id_opslimit_moderate=()=>(pn._crypto_pwhash_argon2id_opslimit_moderate=Un.Ce)(),pn._crypto_pwhash_argon2id_memlimit_moderate=()=>(pn._crypto_pwhash_argon2id_memlimit_moderate=Un.De)(),pn._crypto_pwhash_argon2id_opslimit_sensitive=()=>(pn._crypto_pwhash_argon2id_opslimit_sensitive=Un.Ee)(),pn._crypto_pwhash_argon2id_memlimit_sensitive=()=>(pn._crypto_pwhash_argon2id_memlimit_sensitive=Un.Fe)(),pn._crypto_pwhash_argon2id=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_pwhash_argon2id=Un.Ge)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_pwhash_argon2id_str=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_pwhash_argon2id_str=Un.He)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_pwhash_argon2id_str_verify=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_argon2id_str_verify=Un.Ie)(Fn,Yn,qn,vn),pn._crypto_pwhash_alg_argon2i13=()=>(pn._crypto_pwhash_alg_argon2i13=Un.Je)(),pn._crypto_pwhash_alg_argon2id13=()=>(pn._crypto_pwhash_alg_argon2id13=Un.Ke)(),pn._crypto_pwhash_alg_default=()=>(pn._crypto_pwhash_alg_default=Un.Le)(),pn._crypto_pwhash_bytes_min=()=>(pn._crypto_pwhash_bytes_min=Un.Me)(),pn._crypto_pwhash_bytes_max=()=>(pn._crypto_pwhash_bytes_max=Un.Ne)(),pn._crypto_pwhash_passwd_min=()=>(pn._crypto_pwhash_passwd_min=Un.Oe)(),pn._crypto_pwhash_passwd_max=()=>(pn._crypto_pwhash_passwd_max=Un.Pe)(),pn._crypto_pwhash_saltbytes=()=>(pn._crypto_pwhash_saltbytes=Un.Qe)(),pn._crypto_pwhash_strbytes=()=>(pn._crypto_pwhash_strbytes=Un.Re)(),pn._crypto_pwhash_strprefix=()=>(pn._crypto_pwhash_strprefix=Un.Se)(),pn._crypto_pwhash_opslimit_min=()=>(pn._crypto_pwhash_opslimit_min=Un.Te)(),pn._crypto_pwhash_opslimit_max=()=>(pn._crypto_pwhash_opslimit_max=Un.Ue)(),pn._crypto_pwhash_memlimit_min=()=>(pn._crypto_pwhash_memlimit_min=Un.Ve)(),pn._crypto_pwhash_memlimit_max=()=>(pn._crypto_pwhash_memlimit_max=Un.We)(),pn._crypto_pwhash_opslimit_interactive=()=>(pn._crypto_pwhash_opslimit_interactive=Un.Xe)(),pn._crypto_pwhash_memlimit_interactive=()=>(pn._crypto_pwhash_memlimit_interactive=Un.Ye)(),pn._crypto_pwhash_opslimit_moderate=()=>(pn._crypto_pwhash_opslimit_moderate=Un.Ze)(),pn._crypto_pwhash_memlimit_moderate=()=>(pn._crypto_pwhash_memlimit_moderate=Un._e)(),pn._crypto_pwhash_opslimit_sensitive=()=>(pn._crypto_pwhash_opslimit_sensitive=Un.$e)(),pn._crypto_pwhash_memlimit_sensitive=()=>(pn._crypto_pwhash_memlimit_sensitive=Un.af)(),pn._crypto_pwhash=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo)=>(pn._crypto_pwhash=Un.bf)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo),pn._crypto_pwhash_str=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_pwhash_str=Un.cf)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_pwhash_str_alg=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_pwhash_str_alg=Un.df)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_pwhash_str_verify=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_str_verify=Un.ef)(Fn,Yn,qn,vn),pn._crypto_pwhash_str_needs_rehash=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_str_needs_rehash=Un.ff)(Fn,Yn,qn,vn),pn._crypto_pwhash_primitive=()=>(pn._crypto_pwhash_primitive=Un.gf)(),pn._crypto_scalarmult_primitive=()=>(pn._crypto_scalarmult_primitive=Un.hf)(),pn._crypto_scalarmult_base=(Fn,Yn)=>(pn._crypto_scalarmult_base=Un.jf)(Fn,Yn),pn._crypto_scalarmult=(Fn,Yn,qn)=>(pn._crypto_scalarmult=Un.kf)(Fn,Yn,qn),pn._crypto_scalarmult_bytes=()=>(pn._crypto_scalarmult_bytes=Un.lf)(),pn._crypto_scalarmult_scalarbytes=()=>(pn._crypto_scalarmult_scalarbytes=Un.mf)(),pn._crypto_scalarmult_curve25519=(Fn,Yn,qn)=>(pn._crypto_scalarmult_curve25519=Un.nf)(Fn,Yn,qn),pn._crypto_scalarmult_curve25519_base=(Fn,Yn)=>(pn._crypto_scalarmult_curve25519_base=Un.of)(Fn,Yn),pn._crypto_scalarmult_curve25519_bytes=()=>(pn._crypto_scalarmult_curve25519_bytes=Un.pf)(),pn._crypto_scalarmult_curve25519_scalarbytes=()=>(pn._crypto_scalarmult_curve25519_scalarbytes=Un.qf)(),pn._crypto_secretbox_keybytes=()=>(pn._crypto_secretbox_keybytes=Un.rf)(),pn._crypto_secretbox_noncebytes=()=>(pn._crypto_secretbox_noncebytes=Un.sf)(),pn._crypto_secretbox_zerobytes=()=>(pn._crypto_secretbox_zerobytes=Un.tf)(),pn._crypto_secretbox_boxzerobytes=()=>(pn._crypto_secretbox_boxzerobytes=Un.uf)(),pn._crypto_secretbox_macbytes=()=>(pn._crypto_secretbox_macbytes=Un.vf)(),pn._crypto_secretbox_messagebytes_max=()=>(pn._crypto_secretbox_messagebytes_max=Un.wf)(),pn._crypto_secretbox_primitive=()=>(pn._crypto_secretbox_primitive=Un.xf)(),pn._crypto_secretbox=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox=Un.yf)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_open=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox_open=Un.zf)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_keygen=Fn=>(pn._crypto_secretbox_keygen=Un.Af)(Fn),pn._crypto_secretbox_detached=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_secretbox_detached=Un.Bf)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_secretbox_easy=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox_easy=Un.Cf)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_open_detached=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_secretbox_open_detached=Un.Df)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_secretbox_open_easy=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox_open_easy=Un.Ef)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_xsalsa20poly1305=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox_xsalsa20poly1305=Un.Ff)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_xsalsa20poly1305_open=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox_xsalsa20poly1305_open=Un.Gf)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_xsalsa20poly1305_keybytes=()=>(pn._crypto_secretbox_xsalsa20poly1305_keybytes=Un.Hf)(),pn._crypto_secretbox_xsalsa20poly1305_noncebytes=()=>(pn._crypto_secretbox_xsalsa20poly1305_noncebytes=Un.If)(),pn._crypto_secretbox_xsalsa20poly1305_zerobytes=()=>(pn._crypto_secretbox_xsalsa20poly1305_zerobytes=Un.Jf)(),pn._crypto_secretbox_xsalsa20poly1305_boxzerobytes=()=>(pn._crypto_secretbox_xsalsa20poly1305_boxzerobytes=Un.Kf)(),pn._crypto_secretbox_xsalsa20poly1305_macbytes=()=>(pn._crypto_secretbox_xsalsa20poly1305_macbytes=Un.Lf)(),pn._crypto_secretbox_xsalsa20poly1305_messagebytes_max=()=>(pn._crypto_secretbox_xsalsa20poly1305_messagebytes_max=Un.Mf)(),pn._crypto_secretbox_xsalsa20poly1305_keygen=Fn=>(pn._crypto_secretbox_xsalsa20poly1305_keygen=Un.Nf)(Fn),pn._crypto_secretstream_xchacha20poly1305_keygen=Fn=>(pn._crypto_secretstream_xchacha20poly1305_keygen=Un.Of)(Fn),pn._crypto_secretstream_xchacha20poly1305_init_push=(Fn,Yn,qn)=>(pn._crypto_secretstream_xchacha20poly1305_init_push=Un.Pf)(Fn,Yn,qn),pn._crypto_secretstream_xchacha20poly1305_init_pull=(Fn,Yn,qn)=>(pn._crypto_secretstream_xchacha20poly1305_init_pull=Un.Qf)(Fn,Yn,qn),pn._crypto_secretstream_xchacha20poly1305_rekey=Fn=>(pn._crypto_secretstream_xchacha20poly1305_rekey=Un.Rf)(Fn),pn._crypto_secretstream_xchacha20poly1305_push=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo)=>(pn._crypto_secretstream_xchacha20poly1305_push=Un.Sf)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo),pn._crypto_secretstream_xchacha20poly1305_pull=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo)=>(pn._crypto_secretstream_xchacha20poly1305_pull=Un.Tf)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo),pn._crypto_secretstream_xchacha20poly1305_statebytes=()=>(pn._crypto_secretstream_xchacha20poly1305_statebytes=Un.Uf)(),pn._crypto_secretstream_xchacha20poly1305_abytes=()=>(pn._crypto_secretstream_xchacha20poly1305_abytes=Un.Vf)(),pn._crypto_secretstream_xchacha20poly1305_headerbytes=()=>(pn._crypto_secretstream_xchacha20poly1305_headerbytes=Un.Wf)(),pn._crypto_secretstream_xchacha20poly1305_keybytes=()=>(pn._crypto_secretstream_xchacha20poly1305_keybytes=Un.Xf)(),pn._crypto_secretstream_xchacha20poly1305_messagebytes_max=()=>(pn._crypto_secretstream_xchacha20poly1305_messagebytes_max=Un.Yf)(),pn._crypto_secretstream_xchacha20poly1305_tag_message=()=>(pn._crypto_secretstream_xchacha20poly1305_tag_message=Un.Zf)(),pn._crypto_secretstream_xchacha20poly1305_tag_push=()=>(pn._crypto_secretstream_xchacha20poly1305_tag_push=Un._f)(),pn._crypto_secretstream_xchacha20poly1305_tag_rekey=()=>(pn._crypto_secretstream_xchacha20poly1305_tag_rekey=Un.$f)(),pn._crypto_secretstream_xchacha20poly1305_tag_final=()=>(pn._crypto_secretstream_xchacha20poly1305_tag_final=Un.ag)(),pn._crypto_shorthash_bytes=()=>(pn._crypto_shorthash_bytes=Un.bg)(),pn._crypto_shorthash_keybytes=()=>(pn._crypto_shorthash_keybytes=Un.cg)(),pn._crypto_shorthash_primitive=()=>(pn._crypto_shorthash_primitive=Un.dg)(),pn._crypto_shorthash=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_shorthash=Un.eg)(Fn,Yn,qn,vn,Jn),pn._crypto_shorthash_keygen=Fn=>(pn._crypto_shorthash_keygen=Un.fg)(Fn),pn._crypto_shorthash_siphash24_bytes=()=>(pn._crypto_shorthash_siphash24_bytes=Un.gg)(),pn._crypto_shorthash_siphash24_keybytes=()=>(pn._crypto_shorthash_siphash24_keybytes=Un.hg)(),pn._crypto_shorthash_siphash24=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_shorthash_siphash24=Un.ig)(Fn,Yn,qn,vn,Jn),pn._crypto_sign_statebytes=()=>(pn._crypto_sign_statebytes=Un.jg)(),pn._crypto_sign_bytes=()=>(pn._crypto_sign_bytes=Un.kg)(),pn._crypto_sign_seedbytes=()=>(pn._crypto_sign_seedbytes=Un.lg)(),pn._crypto_sign_publickeybytes=()=>(pn._crypto_sign_publickeybytes=Un.mg)(),pn._crypto_sign_secretkeybytes=()=>(pn._crypto_sign_secretkeybytes=Un.ng)(),pn._crypto_sign_messagebytes_max=()=>(pn._crypto_sign_messagebytes_max=Un.og)(),pn._crypto_sign_primitive=()=>(pn._crypto_sign_primitive=Un.pg)(),pn._crypto_sign_seed_keypair=(Fn,Yn,qn)=>(pn._crypto_sign_seed_keypair=Un.qg)(Fn,Yn,qn),pn._crypto_sign_keypair=(Fn,Yn)=>(pn._crypto_sign_keypair=Un.rg)(Fn,Yn),pn._crypto_sign=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_sign=Un.sg)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_sign_open=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_sign_open=Un.tg)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_sign_detached=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_sign_detached=Un.ug)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_sign_verify_detached=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_sign_verify_detached=Un.vg)(Fn,Yn,qn,vn,Jn),pn._crypto_sign_init=Fn=>(pn._crypto_sign_init=Un.wg)(Fn),pn._crypto_sign_update=(Fn,Yn,qn,vn)=>(pn._crypto_sign_update=Un.xg)(Fn,Yn,qn,vn),pn._crypto_sign_final_create=(Fn,Yn,qn,vn)=>(pn._crypto_sign_final_create=Un.yg)(Fn,Yn,qn,vn),pn._crypto_sign_final_verify=(Fn,Yn,qn)=>(pn._crypto_sign_final_verify=Un.zg)(Fn,Yn,qn),pn._crypto_sign_ed25519ph_statebytes=()=>(pn._crypto_sign_ed25519ph_statebytes=Un.Ag)(),pn._crypto_sign_ed25519_bytes=()=>(pn._crypto_sign_ed25519_bytes=Un.Bg)(),pn._crypto_sign_ed25519_seedbytes=()=>(pn._crypto_sign_ed25519_seedbytes=Un.Cg)(),pn._crypto_sign_ed25519_publickeybytes=()=>(pn._crypto_sign_ed25519_publickeybytes=Un.Dg)(),pn._crypto_sign_ed25519_secretkeybytes=()=>(pn._crypto_sign_ed25519_secretkeybytes=Un.Eg)(),pn._crypto_sign_ed25519_messagebytes_max=()=>(pn._crypto_sign_ed25519_messagebytes_max=Un.Fg)(),pn._crypto_sign_ed25519_sk_to_seed=(Fn,Yn)=>(pn._crypto_sign_ed25519_sk_to_seed=Un.Gg)(Fn,Yn),pn._crypto_sign_ed25519_sk_to_pk=(Fn,Yn)=>(pn._crypto_sign_ed25519_sk_to_pk=Un.Hg)(Fn,Yn),pn._crypto_sign_ed25519ph_init=Fn=>(pn._crypto_sign_ed25519ph_init=Un.Ig)(Fn),pn._crypto_sign_ed25519ph_update=(Fn,Yn,qn,vn)=>(pn._crypto_sign_ed25519ph_update=Un.Jg)(Fn,Yn,qn,vn),pn._crypto_sign_ed25519ph_final_create=(Fn,Yn,qn,vn)=>(pn._crypto_sign_ed25519ph_final_create=Un.Kg)(Fn,Yn,qn,vn),pn._crypto_sign_ed25519ph_final_verify=(Fn,Yn,qn)=>(pn._crypto_sign_ed25519ph_final_verify=Un.Lg)(Fn,Yn,qn),pn._crypto_sign_ed25519_seed_keypair=(Fn,Yn,qn)=>(pn._crypto_sign_ed25519_seed_keypair=Un.Mg)(Fn,Yn,qn),pn._crypto_sign_ed25519_keypair=(Fn,Yn)=>(pn._crypto_sign_ed25519_keypair=Un.Ng)(Fn,Yn),pn._crypto_sign_ed25519_pk_to_curve25519=(Fn,Yn)=>(pn._crypto_sign_ed25519_pk_to_curve25519=Un.Og)(Fn,Yn),pn._crypto_sign_ed25519_sk_to_curve25519=(Fn,Yn)=>(pn._crypto_sign_ed25519_sk_to_curve25519=Un.Pg)(Fn,Yn),pn._crypto_sign_ed25519_verify_detached=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_sign_ed25519_verify_detached=Un.Qg)(Fn,Yn,qn,vn,Jn),pn._crypto_sign_ed25519_open=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_sign_ed25519_open=Un.Rg)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_sign_ed25519_detached=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_sign_ed25519_detached=Un.Sg)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_sign_ed25519=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_sign_ed25519=Un.Tg)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_chacha20_keybytes=()=>(pn._crypto_stream_chacha20_keybytes=Un.Ug)(),pn._crypto_stream_chacha20_noncebytes=()=>(pn._crypto_stream_chacha20_noncebytes=Un.Vg)(),pn._crypto_stream_chacha20_messagebytes_max=()=>(pn._crypto_stream_chacha20_messagebytes_max=Un.Wg)(),pn._crypto_stream_chacha20_ietf_keybytes=()=>(pn._crypto_stream_chacha20_ietf_keybytes=Un.Xg)(),pn._crypto_stream_chacha20_ietf_noncebytes=()=>(pn._crypto_stream_chacha20_ietf_noncebytes=Un.Yg)(),pn._crypto_stream_chacha20_ietf_messagebytes_max=()=>(pn._crypto_stream_chacha20_ietf_messagebytes_max=Un.Zg)(),pn._crypto_stream_chacha20=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream_chacha20=Un._g)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_chacha20_xor_ic=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_stream_chacha20_xor_ic=Un.$g)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_stream_chacha20_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_chacha20_xor=Un.ah)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_chacha20_ietf=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream_chacha20_ietf=Un.bh)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_chacha20_ietf_xor_ic=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_stream_chacha20_ietf_xor_ic=Un.ch)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_stream_chacha20_ietf_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_chacha20_ietf_xor=Un.dh)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_chacha20_ietf_keygen=Fn=>(pn._crypto_stream_chacha20_ietf_keygen=Un.eh)(Fn),pn._crypto_stream_chacha20_keygen=Fn=>(pn._crypto_stream_chacha20_keygen=Un.fh)(Fn),pn._crypto_stream_keybytes=()=>(pn._crypto_stream_keybytes=Un.gh)(),pn._crypto_stream_noncebytes=()=>(pn._crypto_stream_noncebytes=Un.hh)(),pn._crypto_stream_messagebytes_max=()=>(pn._crypto_stream_messagebytes_max=Un.ih)(),pn._crypto_stream_primitive=()=>(pn._crypto_stream_primitive=Un.jh)(),pn._crypto_stream=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream=Un.kh)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_xor=Un.lh)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_keygen=Fn=>(pn._crypto_stream_keygen=Un.mh)(Fn),pn._crypto_stream_salsa20_keybytes=()=>(pn._crypto_stream_salsa20_keybytes=Un.nh)(),pn._crypto_stream_salsa20_noncebytes=()=>(pn._crypto_stream_salsa20_noncebytes=Un.oh)(),pn._crypto_stream_salsa20_messagebytes_max=()=>(pn._crypto_stream_salsa20_messagebytes_max=Un.ph)(),pn._crypto_stream_salsa20=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream_salsa20=Un.qh)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_salsa20_xor_ic=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_stream_salsa20_xor_ic=Un.rh)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_stream_salsa20_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_salsa20_xor=Un.sh)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_salsa20_keygen=Fn=>(pn._crypto_stream_salsa20_keygen=Un.th)(Fn),pn._crypto_stream_xsalsa20=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream_xsalsa20=Un.uh)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_xsalsa20_xor_ic=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_stream_xsalsa20_xor_ic=Un.vh)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_stream_xsalsa20_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_xsalsa20_xor=Un.wh)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_xsalsa20_keybytes=()=>(pn._crypto_stream_xsalsa20_keybytes=Un.xh)(),pn._crypto_stream_xsalsa20_noncebytes=()=>(pn._crypto_stream_xsalsa20_noncebytes=Un.yh)(),pn._crypto_stream_xsalsa20_messagebytes_max=()=>(pn._crypto_stream_xsalsa20_messagebytes_max=Un.zh)(),pn._crypto_stream_xsalsa20_keygen=Fn=>(pn._crypto_stream_xsalsa20_keygen=Un.Ah)(Fn),pn._crypto_verify_16_bytes=()=>(pn._crypto_verify_16_bytes=Un.Bh)(),pn._crypto_verify_32_bytes=()=>(pn._crypto_verify_32_bytes=Un.Ch)(),pn._crypto_verify_64_bytes=()=>(pn._crypto_verify_64_bytes=Un.Dh)(),pn._crypto_verify_16=(Fn,Yn)=>(pn._crypto_verify_16=Un.Eh)(Fn,Yn),pn._crypto_verify_32=(Fn,Yn)=>(pn._crypto_verify_32=Un.Fh)(Fn,Yn),pn._crypto_verify_64=(Fn,Yn)=>(pn._crypto_verify_64=Un.Gh)(Fn,Yn),pn._randombytes_implementation_name=()=>(pn._randombytes_implementation_name=Un.Hh)(),pn._randombytes_random=()=>(pn._randombytes_random=Un.Ih)(),pn._randombytes_stir=()=>(pn._randombytes_stir=Un.Jh)(),pn._randombytes_uniform=Fn=>(pn._randombytes_uniform=Un.Kh)(Fn),pn._randombytes_buf=(Fn,Yn)=>(pn._randombytes_buf=Un.Lh)(Fn,Yn),pn._randombytes_buf_deterministic=(Fn,Yn,qn)=>(pn._randombytes_buf_deterministic=Un.Mh)(Fn,Yn,qn),pn._randombytes_seedbytes=()=>(pn._randombytes_seedbytes=Un.Nh)(),pn._randombytes_close=()=>(pn._randombytes_close=Un.Oh)(),pn._randombytes=(Fn,Yn,qn)=>(pn._randombytes=Un.Ph)(Fn,Yn,qn),pn._sodium_bin2hex=(Fn,Yn,qn,vn)=>(pn._sodium_bin2hex=Un.Qh)(Fn,Yn,qn,vn),pn._sodium_hex2bin=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._sodium_hex2bin=Un.Rh)(Fn,Yn,qn,vn,Jn,ir,_r),pn._sodium_base64_encoded_len=(Fn,Yn)=>(pn._sodium_base64_encoded_len=Un.Sh)(Fn,Yn),pn._sodium_bin2base64=(Fn,Yn,qn,vn,Jn)=>(pn._sodium_bin2base64=Un.Th)(Fn,Yn,qn,vn,Jn),pn._sodium_base642bin=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._sodium_base642bin=Un.Uh)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._sodium_init=()=>(pn._sodium_init=Un.Vh)(),pn._sodium_pad=(Fn,Yn,qn,vn,Jn)=>(pn._sodium_pad=Un.Wh)(Fn,Yn,qn,vn,Jn),pn._sodium_unpad=(Fn,Yn,qn,vn)=>(pn._sodium_unpad=Un.Xh)(Fn,Yn,qn,vn),pn._sodium_version_string=()=>(pn._sodium_version_string=Un.Yh)(),pn._sodium_library_version_major=()=>(pn._sodium_library_version_major=Un.Zh)(),pn._sodium_library_version_minor=()=>(pn._sodium_library_version_minor=Un._h)(),pn._sodium_library_minimal=()=>(pn._sodium_library_minimal=Un.$h)(),pn._crypto_box_curve25519xchacha20poly1305_seed_keypair=(Fn,Yn,qn)=>(pn._crypto_box_curve25519xchacha20poly1305_seed_keypair=Un.ai)(Fn,Yn,qn),pn._crypto_box_curve25519xchacha20poly1305_keypair=(Fn,Yn)=>(pn._crypto_box_curve25519xchacha20poly1305_keypair=Un.bi)(Fn,Yn),pn._crypto_box_curve25519xchacha20poly1305_beforenm=(Fn,Yn,qn)=>(pn._crypto_box_curve25519xchacha20poly1305_beforenm=Un.ci)(Fn,Yn,qn),pn._crypto_box_curve25519xchacha20poly1305_detached_afternm=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_curve25519xchacha20poly1305_detached_afternm=Un.di)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_curve25519xchacha20poly1305_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_box_curve25519xchacha20poly1305_detached=Un.ei)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_box_curve25519xchacha20poly1305_easy_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_curve25519xchacha20poly1305_easy_afternm=Un.fi)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_curve25519xchacha20poly1305_easy=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_curve25519xchacha20poly1305_easy=Un.gi)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=Un.hi)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_curve25519xchacha20poly1305_open_detached=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_box_curve25519xchacha20poly1305_open_detached=Un.ii)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=Un.ji)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_curve25519xchacha20poly1305_open_easy=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_box_curve25519xchacha20poly1305_open_easy=Un.ki)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_box_curve25519xchacha20poly1305_seedbytes=()=>(pn._crypto_box_curve25519xchacha20poly1305_seedbytes=Un.li)(),pn._crypto_box_curve25519xchacha20poly1305_publickeybytes=()=>(pn._crypto_box_curve25519xchacha20poly1305_publickeybytes=Un.mi)(),pn._crypto_box_curve25519xchacha20poly1305_secretkeybytes=()=>(pn._crypto_box_curve25519xchacha20poly1305_secretkeybytes=Un.ni)(),pn._crypto_box_curve25519xchacha20poly1305_beforenmbytes=()=>(pn._crypto_box_curve25519xchacha20poly1305_beforenmbytes=Un.oi)(),pn._crypto_box_curve25519xchacha20poly1305_noncebytes=()=>(pn._crypto_box_curve25519xchacha20poly1305_noncebytes=Un.pi)(),pn._crypto_box_curve25519xchacha20poly1305_macbytes=()=>(pn._crypto_box_curve25519xchacha20poly1305_macbytes=Un.qi)(),pn._crypto_box_curve25519xchacha20poly1305_messagebytes_max=()=>(pn._crypto_box_curve25519xchacha20poly1305_messagebytes_max=Un.ri)(),pn._crypto_box_curve25519xchacha20poly1305_seal=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_box_curve25519xchacha20poly1305_seal=Un.si)(Fn,Yn,qn,vn,Jn),pn._crypto_box_curve25519xchacha20poly1305_seal_open=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_box_curve25519xchacha20poly1305_seal_open=Un.ti)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_box_curve25519xchacha20poly1305_sealbytes=()=>(pn._crypto_box_curve25519xchacha20poly1305_sealbytes=Un.ui)(),pn._crypto_core_ed25519_is_valid_point=Fn=>(pn._crypto_core_ed25519_is_valid_point=Un.vi)(Fn),pn._crypto_core_ed25519_add=(Fn,Yn,qn)=>(pn._crypto_core_ed25519_add=Un.wi)(Fn,Yn,qn),pn._crypto_core_ed25519_sub=(Fn,Yn,qn)=>(pn._crypto_core_ed25519_sub=Un.xi)(Fn,Yn,qn),pn._crypto_core_ed25519_from_uniform=(Fn,Yn)=>(pn._crypto_core_ed25519_from_uniform=Un.yi)(Fn,Yn),pn._crypto_core_ed25519_random=Fn=>(pn._crypto_core_ed25519_random=Un.zi)(Fn),pn._crypto_core_ed25519_scalar_random=Fn=>(pn._crypto_core_ed25519_scalar_random=Un.Ai)(Fn),pn._crypto_core_ed25519_scalar_invert=(Fn,Yn)=>(pn._crypto_core_ed25519_scalar_invert=Un.Bi)(Fn,Yn),pn._crypto_core_ed25519_scalar_negate=(Fn,Yn)=>(pn._crypto_core_ed25519_scalar_negate=Un.Ci)(Fn,Yn),pn._crypto_core_ed25519_scalar_complement=(Fn,Yn)=>(pn._crypto_core_ed25519_scalar_complement=Un.Di)(Fn,Yn),pn._crypto_core_ed25519_scalar_add=(Fn,Yn,qn)=>(pn._crypto_core_ed25519_scalar_add=Un.Ei)(Fn,Yn,qn),pn._crypto_core_ed25519_scalar_reduce=(Fn,Yn)=>(pn._crypto_core_ed25519_scalar_reduce=Un.Fi)(Fn,Yn),pn._crypto_core_ed25519_scalar_sub=(Fn,Yn,qn)=>(pn._crypto_core_ed25519_scalar_sub=Un.Gi)(Fn,Yn,qn),pn._crypto_core_ed25519_scalar_mul=(Fn,Yn,qn)=>(pn._crypto_core_ed25519_scalar_mul=Un.Hi)(Fn,Yn,qn),pn._crypto_core_ed25519_bytes=()=>(pn._crypto_core_ed25519_bytes=Un.Ii)(),pn._crypto_core_ed25519_nonreducedscalarbytes=()=>(pn._crypto_core_ed25519_nonreducedscalarbytes=Un.Ji)(),pn._crypto_core_ed25519_uniformbytes=()=>(pn._crypto_core_ed25519_uniformbytes=Un.Ki)(),pn._crypto_core_ed25519_hashbytes=()=>(pn._crypto_core_ed25519_hashbytes=Un.Li)(),pn._crypto_core_ed25519_scalarbytes=()=>(pn._crypto_core_ed25519_scalarbytes=Un.Mi)(),pn._crypto_core_ristretto255_is_valid_point=Fn=>(pn._crypto_core_ristretto255_is_valid_point=Un.Ni)(Fn),pn._crypto_core_ristretto255_add=(Fn,Yn,qn)=>(pn._crypto_core_ristretto255_add=Un.Oi)(Fn,Yn,qn),pn._crypto_core_ristretto255_sub=(Fn,Yn,qn)=>(pn._crypto_core_ristretto255_sub=Un.Pi)(Fn,Yn,qn),pn._crypto_core_ristretto255_from_hash=(Fn,Yn)=>(pn._crypto_core_ristretto255_from_hash=Un.Qi)(Fn,Yn),pn._crypto_core_ristretto255_random=Fn=>(pn._crypto_core_ristretto255_random=Un.Ri)(Fn),pn._crypto_core_ristretto255_scalar_random=Fn=>(pn._crypto_core_ristretto255_scalar_random=Un.Si)(Fn),pn._crypto_core_ristretto255_scalar_invert=(Fn,Yn)=>(pn._crypto_core_ristretto255_scalar_invert=Un.Ti)(Fn,Yn),pn._crypto_core_ristretto255_scalar_negate=(Fn,Yn)=>(pn._crypto_core_ristretto255_scalar_negate=Un.Ui)(Fn,Yn),pn._crypto_core_ristretto255_scalar_complement=(Fn,Yn)=>(pn._crypto_core_ristretto255_scalar_complement=Un.Vi)(Fn,Yn),pn._crypto_core_ristretto255_scalar_add=(Fn,Yn,qn)=>(pn._crypto_core_ristretto255_scalar_add=Un.Wi)(Fn,Yn,qn),pn._crypto_core_ristretto255_scalar_sub=(Fn,Yn,qn)=>(pn._crypto_core_ristretto255_scalar_sub=Un.Xi)(Fn,Yn,qn),pn._crypto_core_ristretto255_scalar_mul=(Fn,Yn,qn)=>(pn._crypto_core_ristretto255_scalar_mul=Un.Yi)(Fn,Yn,qn),pn._crypto_core_ristretto255_scalar_reduce=(Fn,Yn)=>(pn._crypto_core_ristretto255_scalar_reduce=Un.Zi)(Fn,Yn),pn._crypto_core_ristretto255_bytes=()=>(pn._crypto_core_ristretto255_bytes=Un._i)(),pn._crypto_core_ristretto255_nonreducedscalarbytes=()=>(pn._crypto_core_ristretto255_nonreducedscalarbytes=Un.$i)(),pn._crypto_core_ristretto255_hashbytes=()=>(pn._crypto_core_ristretto255_hashbytes=Un.aj)(),pn._crypto_core_ristretto255_scalarbytes=()=>(pn._crypto_core_ristretto255_scalarbytes=Un.bj)(),pn._crypto_pwhash_scryptsalsa208sha256_ll=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo)=>(pn._crypto_pwhash_scryptsalsa208sha256_ll=Un.cj)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo),pn._crypto_pwhash_scryptsalsa208sha256_bytes_min=()=>(pn._crypto_pwhash_scryptsalsa208sha256_bytes_min=Un.dj)(),pn._crypto_pwhash_scryptsalsa208sha256_bytes_max=()=>(pn._crypto_pwhash_scryptsalsa208sha256_bytes_max=Un.ej)(),pn._crypto_pwhash_scryptsalsa208sha256_passwd_min=()=>(pn._crypto_pwhash_scryptsalsa208sha256_passwd_min=Un.fj)(),pn._crypto_pwhash_scryptsalsa208sha256_passwd_max=()=>(pn._crypto_pwhash_scryptsalsa208sha256_passwd_max=Un.gj)(),pn._crypto_pwhash_scryptsalsa208sha256_saltbytes=()=>(pn._crypto_pwhash_scryptsalsa208sha256_saltbytes=Un.hj)(),pn._crypto_pwhash_scryptsalsa208sha256_strbytes=()=>(pn._crypto_pwhash_scryptsalsa208sha256_strbytes=Un.ij)(),pn._crypto_pwhash_scryptsalsa208sha256_strprefix=()=>(pn._crypto_pwhash_scryptsalsa208sha256_strprefix=Un.jj)(),pn._crypto_pwhash_scryptsalsa208sha256_opslimit_min=()=>(pn._crypto_pwhash_scryptsalsa208sha256_opslimit_min=Un.kj)(),pn._crypto_pwhash_scryptsalsa208sha256_opslimit_max=()=>(pn._crypto_pwhash_scryptsalsa208sha256_opslimit_max=Un.lj)(),pn._crypto_pwhash_scryptsalsa208sha256_memlimit_min=()=>(pn._crypto_pwhash_scryptsalsa208sha256_memlimit_min=Un.mj)(),pn._crypto_pwhash_scryptsalsa208sha256_memlimit_max=()=>(pn._crypto_pwhash_scryptsalsa208sha256_memlimit_max=Un.nj)(),pn._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=()=>(pn._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=Un.oj)(),pn._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=()=>(pn._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=Un.pj)(),pn._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=()=>(pn._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=Un.qj)(),pn._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=()=>(pn._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=Un.rj)(),pn._crypto_pwhash_scryptsalsa208sha256=(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo)=>(pn._crypto_pwhash_scryptsalsa208sha256=Un.sj)(Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo),pn._crypto_pwhash_scryptsalsa208sha256_str=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_pwhash_scryptsalsa208sha256_str=Un.tj)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_pwhash_scryptsalsa208sha256_str_verify=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_scryptsalsa208sha256_str_verify=Un.uj)(Fn,Yn,qn,vn),pn._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=(Fn,Yn,qn,vn)=>(pn._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=Un.vj)(Fn,Yn,qn,vn),pn._crypto_scalarmult_ed25519=(Fn,Yn,qn)=>(pn._crypto_scalarmult_ed25519=Un.wj)(Fn,Yn,qn),pn._crypto_scalarmult_ed25519_noclamp=(Fn,Yn,qn)=>(pn._crypto_scalarmult_ed25519_noclamp=Un.xj)(Fn,Yn,qn),pn._crypto_scalarmult_ed25519_base=(Fn,Yn)=>(pn._crypto_scalarmult_ed25519_base=Un.yj)(Fn,Yn),pn._crypto_scalarmult_ed25519_base_noclamp=(Fn,Yn)=>(pn._crypto_scalarmult_ed25519_base_noclamp=Un.zj)(Fn,Yn),pn._crypto_scalarmult_ed25519_bytes=()=>(pn._crypto_scalarmult_ed25519_bytes=Un.Aj)(),pn._crypto_scalarmult_ed25519_scalarbytes=()=>(pn._crypto_scalarmult_ed25519_scalarbytes=Un.Bj)(),pn._crypto_scalarmult_ristretto255=(Fn,Yn,qn)=>(pn._crypto_scalarmult_ristretto255=Un.Cj)(Fn,Yn,qn),pn._crypto_scalarmult_ristretto255_base=(Fn,Yn)=>(pn._crypto_scalarmult_ristretto255_base=Un.Dj)(Fn,Yn),pn._crypto_scalarmult_ristretto255_bytes=()=>(pn._crypto_scalarmult_ristretto255_bytes=Un.Ej)(),pn._crypto_scalarmult_ristretto255_scalarbytes=()=>(pn._crypto_scalarmult_ristretto255_scalarbytes=Un.Fj)(),pn._crypto_secretbox_xchacha20poly1305_detached=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_secretbox_xchacha20poly1305_detached=Un.Gj)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_secretbox_xchacha20poly1305_easy=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox_xchacha20poly1305_easy=Un.Hj)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_xchacha20poly1305_open_detached=(Fn,Yn,qn,vn,Jn,ir,_r)=>(pn._crypto_secretbox_xchacha20poly1305_open_detached=Un.Ij)(Fn,Yn,qn,vn,Jn,ir,_r),pn._crypto_secretbox_xchacha20poly1305_open_easy=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_secretbox_xchacha20poly1305_open_easy=Un.Jj)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_secretbox_xchacha20poly1305_keybytes=()=>(pn._crypto_secretbox_xchacha20poly1305_keybytes=Un.Kj)(),pn._crypto_secretbox_xchacha20poly1305_noncebytes=()=>(pn._crypto_secretbox_xchacha20poly1305_noncebytes=Un.Lj)(),pn._crypto_secretbox_xchacha20poly1305_macbytes=()=>(pn._crypto_secretbox_xchacha20poly1305_macbytes=Un.Mj)(),pn._crypto_secretbox_xchacha20poly1305_messagebytes_max=()=>(pn._crypto_secretbox_xchacha20poly1305_messagebytes_max=Un.Nj)(),pn._crypto_shorthash_siphashx24_bytes=()=>(pn._crypto_shorthash_siphashx24_bytes=Un.Oj)(),pn._crypto_shorthash_siphashx24_keybytes=()=>(pn._crypto_shorthash_siphashx24_keybytes=Un.Pj)(),pn._crypto_shorthash_siphashx24=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_shorthash_siphashx24=Un.Qj)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_salsa2012=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream_salsa2012=Un.Rj)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_salsa2012_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_salsa2012_xor=Un.Sj)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_salsa2012_keybytes=()=>(pn._crypto_stream_salsa2012_keybytes=Un.Tj)(),pn._crypto_stream_salsa2012_noncebytes=()=>(pn._crypto_stream_salsa2012_noncebytes=Un.Uj)(),pn._crypto_stream_salsa2012_messagebytes_max=()=>(pn._crypto_stream_salsa2012_messagebytes_max=Un.Vj)(),pn._crypto_stream_salsa2012_keygen=Fn=>(pn._crypto_stream_salsa2012_keygen=Un.Wj)(Fn),pn._crypto_stream_salsa208=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream_salsa208=Un.Xj)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_salsa208_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_salsa208_xor=Un.Yj)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_salsa208_keybytes=()=>(pn._crypto_stream_salsa208_keybytes=Un.Zj)(),pn._crypto_stream_salsa208_noncebytes=()=>(pn._crypto_stream_salsa208_noncebytes=Un._j)(),pn._crypto_stream_salsa208_messagebytes_max=()=>(pn._crypto_stream_salsa208_messagebytes_max=Un.$j)(),pn._crypto_stream_salsa208_keygen=Fn=>(pn._crypto_stream_salsa208_keygen=Un.ak)(Fn),pn._crypto_stream_xchacha20_keybytes=()=>(pn._crypto_stream_xchacha20_keybytes=Un.bk)(),pn._crypto_stream_xchacha20_noncebytes=()=>(pn._crypto_stream_xchacha20_noncebytes=Un.ck)(),pn._crypto_stream_xchacha20_messagebytes_max=()=>(pn._crypto_stream_xchacha20_messagebytes_max=Un.dk)(),pn._crypto_stream_xchacha20=(Fn,Yn,qn,vn,Jn)=>(pn._crypto_stream_xchacha20=Un.ek)(Fn,Yn,qn,vn,Jn),pn._crypto_stream_xchacha20_xor_ic=(Fn,Yn,qn,vn,Jn,ir,_r,Sr)=>(pn._crypto_stream_xchacha20_xor_ic=Un.fk)(Fn,Yn,qn,vn,Jn,ir,_r,Sr),pn._crypto_stream_xchacha20_xor=(Fn,Yn,qn,vn,Jn,ir)=>(pn._crypto_stream_xchacha20_xor=Un.gk)(Fn,Yn,qn,vn,Jn,ir),pn._crypto_stream_xchacha20_keygen=Fn=>(pn._crypto_stream_xchacha20_keygen=Un.hk)(Fn),pn._malloc=Fn=>(pn._malloc=Un.ik)(Fn),pn._free=Fn=>(pn._free=Un.jk)(Fn),pn.setValue=function(Fn,Yn,qn="i8"){switch(qn.endsWith("*")&&(qn="*"),qn){case"i1":case"i8":fo[Fn>>0]=Yn;break;case"i16":Lo[Fn>>1]=Yn;break;case"i32":Zr[Fn>>2]=Yn;break;case"i64":fs("to do setValue(i64) use WASM_BIGINT");case"float":sn[Fn>>2]=Yn;break;case"double":yn[Fn>>3]=Yn;break;case"*":Tr[Fn>>2]=Yn;break;default:fs(`invalid type for setValue: ${qn}`)}},pn.getValue=function(Fn,Yn="i8"){switch(Yn.endsWith("*")&&(Yn="*"),Yn){case"i1":case"i8":return fo[Fn>>0];case"i16":return Lo[Fn>>1];case"i32":return Zr[Fn>>2];case"i64":fs("to do getValue(i64) use WASM_BIGINT");case"float":return sn[Fn>>2];case"double":return yn[Fn>>3];case"*":return Tr[Fn>>2];default:fs(`invalid type for getValue: ${Yn}`)}},pn.UTF8ToString=Vn,cs=function Fn(){$s||Go(),$s||(cs=Fn)},pn.preInit)for(typeof pn.preInit=="function"&&(pn.preInit=[pn.preInit]);pn.preInit.length>0;)pn.preInit.pop()();Go()})};var Jt,Zt,Rt=Rt!==void 0?Rt:{},nn=Object.assign({},Rt),Qt=typeof window=="object",wt=typeof importScripts=="function",Nt=typeof browser$1$1=="object"&&typeof browser$1$1.versions=="object"&&typeof browser$1$1.versions.node=="string",xt="";if(Nt){var Et=require$$0$3,Bt=require$$0$3;xt=wt?Bt.dirname(xt)+"/":__dirname+"/",Jt=(Mn,Zn)=>(Mn=function(rr){return rr.startsWith("file://")}(Mn)?new URL(Mn):Bt.normalize(Mn),Et.readFileSync(Mn,Zn?void 0:"utf8")),Zt=Mn=>{var Zn=Jt(Mn,!0);return Zn.buffer||(Zn=new Uint8Array(Zn)),Zn},!Rt.thisProgram&&browser$1$1.argv.length>1&&browser$1$1.argv[1].replace(/\\/g,"/"),browser$1$1.argv.slice(2),d.exports=Rt,Rt.inspect=()=>"[Emscripten Module object]"}else(Qt||wt)&&(wt?xt=self.location.href:typeof document<"u"&&document.currentScript&&(xt=document.currentScript.src),xt=xt.indexOf("blob:")!==0?xt.substr(0,xt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Jt=Mn=>{var Zn=new XMLHttpRequest;return Zn.open("GET",Mn,!1),Zn.send(null),Zn.responseText},wt&&(Zt=Mn=>{var Zn=new XMLHttpRequest;return Zn.open("GET",Mn,!1),Zn.responseType="arraybuffer",Zn.send(null),new Uint8Array(Zn.response)}));Rt.print;var Tt,Mt,jt=Rt.printErr||void 0;Object.assign(Rt,nn),nn=null,Rt.arguments&&Rt.arguments,Rt.thisProgram&&Rt.thisProgram,Rt.quit&&Rt.quit,Rt.wasmBinary&&(Tt=Rt.wasmBinary),Rt.noExitRuntime,typeof WebAssembly!="object"&&Dt("no native wasm support detected");var Ht,an,yt,$t,Yt,Kt,St,It=!1;function Gt(){var Mn=Mt.buffer;Rt.HEAP8=Ht=new Int8Array(Mn),Rt.HEAP16=yt=new Int16Array(Mn),Rt.HEAPU8=an=new Uint8Array(Mn),Rt.HEAPU16=new Uint16Array(Mn),Rt.HEAP32=$t=new Int32Array(Mn),Rt.HEAPU32=Yt=new Uint32Array(Mn),Rt.HEAPF32=Kt=new Float32Array(Mn),Rt.HEAPF64=St=new Float64Array(Mn)}var Ut=[],Vt=[],qt=[],fn=0,dn=null;function Dt(Mn){throw Rt.onAbort&&Rt.onAbort(Mn),jt(Mn="Aborted("+Mn+")"),It=!0,Mn+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(Mn)}var zt,tn,An="data:application/octet-stream;base64,";function gn(Mn){return Mn.startsWith(An)}gn(zt="data:application/octet-stream;base64,AGFzbQEAAAAB7QIoYAJ/fwF/YAABf2ADf39+AX9gA39/fwF/YAJ/fwBgBH9/f38Bf2AFf39/f38Bf2ADf39/AGAGf39/f39/AX9gAX8Bf2AHf39/f39/fwF/YAt/f39/f39/f39/fwF/YAZ/f35/fn8Bf2AJf39/f39/f39/AX9gAX8AYAR/fn9/AX9gBH9/fn8Bf2AGf39+f39/AX9gCH9/f39/f39/AX9gBX9/fn9/AX9gBH9/f38AYAZ/f39+f38Bf2AMf39/f39/f39/f39/AX9gAABgCn9/f39/f39/f38Bf2AFf39/f38AYAh/f35/f35/fwF/YAl/f39/fn9+f38Bf2AFf39/fn8Bf2ADf39+AGAFf39+fn8Bf2AIf35/fn9+f38Bf2ADf35/AX9gBH9/f34AYAV+f39/fwBgCX9/f39+f39/fwF/YAp/f39/f35/f39/AX9gBn9/f39/fwBgBX9/fn9/AGAIf39/fn9/f38BfwIfBQFhAWEAAwFhAWIAFAFhAWMAFwFhAWQACQFhAWUABwPLA8kDBAcHBAcBAwMBFwQEDgcOAQIBAgQEAAIFAAkBCQICAgEDAQMOBwcDBQEABA8ACQMABAQAEQkDBQwDAAQACQIDAAEBAAUFBQQJCQMPABUVAQMFBAcEEwAUCRMUFRUUCSEBAAQVBBkDCQkHBB0EHQgIAyITExMVEwMBAQEBAQASBgQJBxQDAAQEBAkEBwcHBAAAAQAAAAgKCggGBQYICAgGCgUGBggFCAoKCgoFBgYXGhsDEREDBQEjBg4kJSYAAwEVAQEaGhsbAwUJAQADAQ8REQIeHwEBAQEHBwQHBAQADiAPIAIeHwEFCgMEBCcOFAcZBwcOARQHGQcHAAMAAgAQCBASBggGCAYGCAUFChgYCAYKEgoIEgcSCBIGCAoGCBIGGBgICAgF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ImQhqHfCInQoCAgAh8IihCGYd8Ig8gD0KAgIAQfCIpQoCAgOAPg30+AgggACAGIAt+IAMgHn58IA0gGn58IAcgEH58IBEgG358IAggFn58IBwgIH58IAkgM6wiD358IAQgHX58IAUgCn58IBNCGod8IhMgE0KAgIAIfCITQoCAgPAPg30+AhwgACAIIAt+IAMgG358IA0gHH58IAkgEH58IBIgHX58IAogH358IA4gHn58IAYgDH58IAQgGn58IAUgB358IClCGod8IgQgBEKAgIAIfCIEQoCAgPAPg30+AgwgACALIBl+IAMgCn58IAYgDX58IBAgFH58IAcgEX58IBUgFn58IAggIH58IA8gF358IAkgNawiDH58IAUgGH58IBNCGYd8IgUgBUKAgIAQfCIFQoCAgOAPg30+AiAgACAkICVCgICA8A+DfSAiICNCgICAYIN9IARCGYd8IgRCgICAEHwiDkIaiHw+AhQgACAEIA5CgICA4A+DfT4CECAAIAogC34gAyAdfnwgDSAefnwgBiAQfnwgESAafnwgByAWfnwgGyAgfnwgCCAPfnwgDCAcfnwgCSACrH58IAVCGod8IgMgA0KAgIAIfCIDQoCAgPAPg30+AiQgACAnIChCgICA8A+DfSAhICZCgICAYIN9IANCGYdCE358IgNCgICAEHwiBkIaiHw+AgQgACADIAZCgICA4A+DfT4CAAvpHQI2fgV/IAAgAjMAACACMQACQhCGQoCA/ACDhCIFIAEoABciOkEFdkH///8Aca0iA34gATMAFSABMQAXQhCGQoCA/ACDhCIEIAIoAAIiOUEFdkH///8Aca0iDH58IAI1AAdCB4hC////AIMiCCABKAAPIjtBBnZB////AHGtIgZ+fCABKAAKIjxBGHatIAExAA5CCIaEIAExAA9CEIaEQgGIQv///wCDIgkgAigACiI9QQR2Qf///wBxrSINfnwgOUEYdq0gAjEABkIIhoQgAjEAB0IQhoRCAohC////AIMiDiA7QRh2rSABMQATQgiGhCABMQAUQhCGhEIDiCIKfnwgAigADyI5QQZ2Qf///wBxrSIHIAE1AAdCB4hC////AIMiD358ID1BGHatIAIxAA5CCIaEIAIxAA9CEIaEQgG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AAgDyAEIAVBCHdzIAZBEHdzIAFBGHdzczYCAAsEAEEgC4AEAQN/IAJBgARPBEAgACABIAIQBCAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAvyAgICfwF+AkAgAkUNACAAIAE6AAAgACACaiIDQQFrIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0EDayABOgAAIANBAmsgAToAACACQQdJDQAgACABOgADIANBBGsgAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkEEayABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBCGsgATYCACACQQxrIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQRBrIAE2AgAgAkEUayABNgIAIAJBGGsgATYCACACQRxrIAE2AgAgBCADQQRxQRhyIgRrIgJBIEkNACABrUKBgICAEH4hBSADIARqIQEDQCABIAU3AxggASAFNwMQIAEgBTcDCCABIAU3AwAgAUEgaiEBIAJBIGsiAkEfSw0ACwsgAAsEAEEQCxgBAX9B2KkCKAIAIgAEQCAAERcACxACAAufBAETfyABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSABQUBrIg4oAgAhDyABKAIcIRAgASgCRCERIAEoAiAhEiABKAJIIRMgASgCACEUIAAgASgCJCABKAJMajYCJCAAIBIgE2o2AiAgACAQIBFqNgIcIAAgDSAPajYCGCAAIAsgDGo2AhQgACAJIApqNgIQIAAgByAIajYCDCAAIAUgBmo2AgggACADIARqNgIEIAAgAiAUajYCACABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSAOKAIAIQ4gASgCHCEPIAEoAkQhECABKAIgIREgASgCSCESIAEoAgAhEyAAIAEoAkwgASgCJGs2AkwgACASIBFrNgJIIAAgECAPazYCRCAAQUBrIA4gDWs2AgAgACAMIAtrNgI8IAAgCiAJazYCOCAAIAggB2s2AjQgACAGIAVrNgIwIAAgBCADazYCLCAAIAIgE2s2AiggACABKQJQNwJQIAAgASkCWDcCWCAAIAEpAmA3AmAgACABKQJoNwJoIAAgASkCcDcCcCAAQfgAaiABQfgAakGgDRAGC+gEAQl/IAAgASgCICIFIAEoAhwiBiABKAIYIgcgASgCFCIIIAEoAhAiCSABKAIMIgogASgCCCIEIAEoAgQiAyABKAIAIgIgASgCJCIBQRNsQYCAgAhqQRl2akEadWpBGXVqQRp1akEZdWpBGnVqQRl1akEadWpBGXVqQRp1IAFqQRl1QRNsIAJqIgI6AAAgACACQRB2OgACIAAgAkEIdjoAASAAIAMgAkEadWoiA0EOdjoABSAAIANBBnY6AAQgACACQRh2QQNxIANBAnRyOgADI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ByAAQdAAaiEKA0AgCiADIAR8p2ogASADp2otAAA6AAAgCiADQgGEIgkgBHynaiABIAmnai0AADoAACAKIANCAoQiCSAEfKdqIAEgCadqLQAAOgAAIAogA0IDhCIJIAR8p2ogASAJp2otAAA6AAAgA0IEfCEDIAVCBHwiBSAHUg0ACwsgCEIDgyIFQgBSBEADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAVSDQALCyAAIABB0ABqIAwgDEGABWoiChBeIAEgCKdqIQEgAiAIfSICQv8AVgRAA0AgACABIAwgChBeIAFBgAFqIQEgAkKAAX0iAkL/AFYNAAsLAkAgAlANACACQgODIQRCACEGQgAhAyACQgRaBEAgAkJ8gyEFIABB0ABqIQpCACECA0AgCiADpyILaiABIAtqLQAAOgAAIAogC0EBciINaiABIA1qLQAAOgAAIAogC0ECciINaiABIA1qLQAAOgAAIAogC0EDciILaiABIAtqLQAAOgAAIANCBHwhAyACQgR8IgIgBVINAAsLIARQDQADQCAAIAOnIgpqIAEgCmotAAA6AFAgA0IBfCEDIAZCAXwiBiAEUg0ACwsgDEHABRAIDAELQgAhAyACQgRaBEAgAkJ8gyEIIABB0ABqIQoDQCAKIAMgBHynaiABIAOnai0AADoAACAKIANCAYQiByAEfKdqIAEgB6dqLQAAOgAAIAogA0IChCIHIAR8p2ogASAHp2otAAA6AAAgCiADQgOEIgcgBHynaiABIAenai0AADoAACADQgR8IQMgBUIEfCIFIAhSDQALCyACQgODIgJQDQADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAJSDQALCyAMQcAFaiQAQQALBABBfwvUAQIFfwJ+An8gAkIAUgRAIABB4AFqIQcgAEHgAGohAyAAKADgAiEEA0AgAyAEaiEGQYACIARrIgWtIgggAloEQCAGIAEgAqciARALGiAAIAAoAOACIAFqNgDgAkEADAMLIAYgASAFEAsaIAAgACgA4AIgBWo2AOACIAAgACkAQCIJQoABfDcAQCAAIAApAEggCUL/flatfDcASCAAIAMQViADI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hQgACALIAprNgIQIAAgCSAIazYCDCAAIAcgBms2AgggACAFIARrNgIEIAAgAyABazYCACAAKAJ4IQEgACgCfCEDIAAoAoABIQQgACgChAEhBSAAKAKIASEGIAAoAowBIQcgACgCkAEhCCAAKAKUASEJIAAoApgBIQogACAAKAKcASAYazYCnAEgACAKIBlrNgKYASAAIAkgGms2ApQBIAAgCCAbazYCkAEgACAHIBxrNgKMASAAIAYgHWs2AogBIAAgBSAeazYChAEgACAEIB9rNgKAASAAIAMgIGs2AnwgACABICFrNgJ4IAJBMGokAAtEAQJ/IwBBEGsiAiQAIAEEQANAIAJBADoADyAAIANqQcCfAiACQQ9qQQAQADoAACADQQFqIgMgAUcNAAsLIAJBEGokAAvdAQEEfyMAQRBrIgJBADoADwJAIAFFDQAgAUEDcSEEIAFBBE8EQCABQXxxIQVBACEBA0AgAiAAIANqLQAAIAItAA9yOgAPIAIgACADQQFyai0AACACLQAPcjoADyACIAAgA0ECcmotAAAgAi0AD3I6AA8gAiAAIANBA3JqLQAAIAItAA9yOgAPIANBBGohAyABQQRqIgEgBUcNAAsLIARFDQBBACEBA0AgAiAAIANqLQAAIAItAA9yOgAPIANBAWohAyABQQFqIgEgBEcNAAsLIAItAA9BAWtBCHZBAXELCgAgACABIAIQFwuOBQERfwJ/IANFBEBBstqIywchBkHuyIGZAyEHQeXwwYsGIQRB9MqB2QYMAQsgAygACCEGIAMoAAQhByADKAAAIQQgAygADAshDyABKAAMIQUgASgACCEMIAEoAAQhCCACKAAcIQogAigAGCELIAIoABQhECACKAAQIQ4gAigADCEDIAIoAAghDSACKAAEIQkgASgAACEBIAIoAAAhAgNAIAIgASACIARqIgJzQRB3IgEgDmoiBHNBDHciDiACaiIRIAFzQQh3IgEgBGoiBCAOc0EHdyICIAMgBSADIA9qIgNzQRB3IgUgCmoiCnNBDHciDiADaiIDaiIPIA0gDCAGIA1qIgZzQRB3IgwgC2oiDXNBDHciCyAGaiIGIAxzQQh3IhNzQRB3IgwgCSAIIAcgCWo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QIgBDYCAEHMpQIgAzYCAAsgAkEIaiEACyAKQRBqJAAgAAsEAEEAC3oBA38CQAJAIAAiAUEDcUUNACABLQAARQRAQQAPCwNAIAFBAWoiAUEDcUUNASABLQAADQALDAELA0AgASICQQRqIQEgAigCACIDQX9zIANBgYKECGtxQYCBgoR4cUUNAAsDQCACIgFBAWohAiABLQAADQALCyABIABrCw0AIAAgASACEBUaQQALDQAgACABIAIQIxpBAAv5BQIHfgR/IwBBoAJrIgwkAAJAIAJQDQAgACAAKQMgIgMgAkIDhnw3AyBCwAAgA0IDiEI/gyIEfSIIIAJYBEBCACEDIARCP4VCA1oEQCAIQvwAgyEHIABBKGohCgNAIAogAyAEfKdqIAEgA6dqLQAAOgAAIAogA0IBhCIJIAR8p2ogASAJp2otAAA6AAAgCiADQgKEIgkgBHynaiABIAmnai0AADoAACAKIANCA4QiCSAEfKdqIAEgCadqLQAAOgAAIANCBHwhAyAFQgR8IgUgB1INAAsLIAhCA4MiBUIAUgRAA0AgACADIAR8p2ogASADp2otAAA6ACggA0IBfCEDIAZCAXwiBiAFUg0ACwsgACAAQShqIAwgDEGAAmoiChBhIAEgCKdqIQEgAiAIfSICQj9WBEADQCAAIAEgDCAKEGEgAUFAayEBIAJCQHwiAkI/Vg0ACwsCQCACUA0AIAJCA4MhBEIAIQZCACEDIAJCBFoEQCACQnyDIQUgAEEoaiEKQgAhAgNAIAogA6ciC2ogASALai0AADoAACAKIAtBAXIiDWogASANai0AADoAACAKIAtBAnIiDWogASANai0AADoAACAKIAtBA3IiC2ogASALai0AADoAACADQgR8IQMgAkIEfCICIAVSDQALCyAEUA0AA0AgACADpyIKaiABIApqLQAAOgAoIANCAXwhAyAGQgF8IgYgBFINAAsLIAxBoAIQCAwBC0IAIQMgAkIEWgRAIAJCfIMhCCAAQShqIQoDQCAKIAMgBHynaiABIAOnai0AADoAACAKIANCAYQiByAEfKdqIAEgB6dqLQAAOgAAIAogA0IChCIHIAR8p2ogASAHp2otAAA6AAAgCiADQgO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XM2AlQgACADIAMgDHMgAnFzNgJQIAAoAnghAyABKAJ4IQwgACgCfCEEIAEoAnwhDSAAKAKAASEFIAEoAoABIQ4gACgChAEhBiABKAKEASEPIAAoAogBIQcgASgCiAEhECAAKAKMASEIIAEoAowBIREgACgCkAEhCSABKAKQASESIAAoApQBIQogASgClAEhEyAAKAKYASELIAEoApgBIRQgACAAKAKcASIVIAEoApwBcyACcSAVczYCnAEgACALIAsgFHMgAnFzNgKYASAAIAogCiATcyACcXM2ApQBIAAgCSAJIBJzIAJxczYCkAEgACAIIAggEXMgAnFzNgKMASAAIAcgByAQcyACcXM2AogBIAAgBiAGIA9zIAJxczYChAEgACAFIAUgDnMgAnFzNgKAASAAIAQgBCANcyACcXM2AnwgACADIAMgDHMgAnFzNgJ4C9oEAQh/IwBBwAFrIgUkACACQYEBTwRAIAAQMhogACABIAKtEBUaIAAgBRAdGkHAACECIAUhAQsgABAyGiAFQUBrQTZBgAEQDBoCQCACRQ0AIAJBBE8EQCACQfwBcSEKA0AgBUFAayIIIANqIgQgBC0AACABIANqLQAAczoAACAIIANBAXIiBGoiBiAGLQAAIAEgBGotAABzOgAAIAggA0ECciIEaiIGIAYtAAAgASAEai0AAHM6AAAgCCADQQNyIgRqIgYgBi0AACABIARqLQAAczoAACADQQRqIQMgB0EEaiIHIApHDQALCyACQQNxIgdFDQADQCAFQUBrIANqIgogCi0AACABIANqLQAAczoAACADQQFqIQMgCUEBaiIJIAdHDQALCyAAIAVBQGsiA0KAARAVGiAAQdABaiIAEDIaIANB3ABBgAEQDBoCQCACRQ0AQQAhCUEAIQMgAkEETwRAIAJB/AFxIQpBACEHA0AgBUFAayIIIANqIgQgBC0AACABIANqLQAAczoAACAIIANBAXIiBGoiBiAGLQAAIAEgBGotAABzOgAAIAggA0ECciIEaiIGIAYtAAAgASAEai0AAHM6AAAgCCADQQNyIgRqIgYgBi0AACABIARqLQAAczoAACADQQRqIQMgB0EEaiIHIApHDQALCyACQQNxIgJFDQADQCAFQUBrI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cSABLQAfQQd2c2siASANQQAgDWtzcSANczYCJCAAIAVBACAFa3MgAXEgBXM2AiAgACAGQQAgBmtzIAFxIAZzNgIcIAAgB0EAIAdrcyABcSAHczYCGCAAIAhBACAIa3MgAXEgCHM2AhQgACAJQQAgCWtzIAFxIAlzNgIQIAAgCkEAIAprcyABcSAKczYCDCAAIAtBACALa3MgAXEgC3M2AgggACAMQQAgDGtzIAFxIAxzNgIEIAAgA0EAIANrcyABcSADczYCACAAQfgAaiAAIBcQBiACQcACaiQAIAQgD3JBAWsLyggBA38jAEHAAWsiAiQAIAJBkAFqIgQgARAFIAJB4ABqIgMgBBAFIAMgAxAFIAMgASADEAYgBCAEIAMQBiACQTBqIgEgBBAFIAMgAyABEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgAyABIAMQBiABIAMQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEgAxAGIAIgARAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAEgAiABEAYgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgAyABIAMQBiABIAMQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEgAxAGIAIgARAFQQEhAQNAIAIgAhAFIAFBAWoiAUHkAEcNAAsgAkEwaiIBIAIgARAGIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAJB4ABqIgMgASADEAYgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgACADIAJBkAFqEAYgAkHAAWokAAv0BAEZfiABMQAfIQIgATEAHiEGIAExAB0hDiABMQAGIQcgATEABSEIIAExAAQhAyABMQAJIQ8gATEACCEQIAExAAchESABMQAMIQkgATEACyEKIAExAAohCyABMQAPIQwgATEADiESIAExAA0hEyABMQAcIQQgATEAGyEUIAExABohFSABMQAZIQUgATEAGCEWIAExABchFyABNQAAIRggACABMQAVQg+GIAExABRCB4aEIAExABZCF4aEIAE1ABAiGUKAgIAIfCIaQhmIfCINIA1CgICAEHwiDUKAgIDgD4N9PgIYIAAgFkINhiAXQgWGhCAFQhWGhCIFIA1CGoh8IAVCgICACHwiBUKAgIDwA4N9PgIcIAAgFEIMhiAVQgSGhCAEQhSGhCAFQhmIfCIEIARCgICAEHwiBEKAgIDgD4N9PgIgIAAgGSAaQoCAgPAPg30gEkIKhiATQgKGhCAMQhKGhCAKQguGIAtCA4aEIAlCE4aEIglCgICACHwiCkIZiHwiC0KA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AIANrcyABcSADczYCjAMgAiACKAKQAyIDQQAgA2tzIAFxIANzNgKQAyACIAIoApQDIgNBACADa3MgAXEgA3M2ApQDIAIgAigCmAMiA0EAIANrcyABcSADczYCmAMgAiACKAKcAyIDQQAgA2tzIAFxIANzNgKcAyACIAIoAqADIgNBACADa3MgAXEgA3M2AqADIAIgASACKAKkAyIBQQAgAWtzcSABczYCpAMgACAZEBAgAkGgBmokAAv4AQEKfwNAIAQgACADai0AACIBIANBkBVqIgItAABzciEEIAogASACLQDAAXNyIQogCSABIAItAKABc3IhCSAIIAEgAi0AgAFzciEIIAcgASACLQBgc3IhByAGIAEgAkFAay0AAHNyIQYgBSABIAItACBzciEFIANBAWoiA0EfRw0ACyAKIAAtAB9B/wBxIgBB/wBzIgFyQf8BcUEBayABIAlyQf8BcUEBayABIAhyQf8BcUEBayAHIABB+gBzckH/AXFBAWsgBiAAQQVzckH/AXFBAWsgACAFckH/AXFBAWsgACAEckH/AXFBAWtycnJycnJBCHZBAXELxQUBHX8jAEHAAmsiASQAIAFB8AFqIgMgABAFIAFBwAFqIgQgAEEoahAFIAFBkAFqIgIgAEHQAGoQBSABKALwASEAIAEoAsABIQUgASgC9AEhBiABKALEASEHIAEoAvgBIQggASgCyAEhCSABKAL8ASEKIAEoAswBIQsgASgCgAIhDCABKALQASENIAEoAoQCIQ4gASgC1AEhDyABKAKIAiEQIAEoAtgBIREgASgCjAIhEiABKALcASETIAEoApACIRQgASgC4AEhFSABIAEoAuQBIAEoApQCazYCVCABIBUgFGs2AlAgASATIBJrNgJMIAEgESAQazYCSCABIA8gDms2AkQgASANIAxrNgJAIAEgCyAKazYCPCABIAkgCGs2AjggASAHIAZrNgI0IAEgBSAAazYCMCABQTBqIhYgFiACEAYgASADIAQQBiABIAFBwAwQBiABQeAAaiACEAUgASgCMCEAIAEoAmAhBSABKAIAIQYgASgCNCEHIAEoAmQhCCABKAIEIQkgASgCOCEKIAEoAmghCyABKAIIIQwgASgCPCENIAEoAmwhDiABKAIMIQ8gASgCQCEQIAEoAnAhESABKAIQIRIgASgCRCETIAEoAnQhFCABKAIUIRUgASgCSCECIAEoAnghAyABKAIYIQQgASgCTCEXIAEoAnwhGCABKAIcIRkgASgCUCEaIAEoAoABIRsgASgCICEcIAEgASgCVCABKAKEASABKAIkams2AlQgASAaIBsgHGprNgJQIAEgFyAYIBlqazYCTCABIAIgAyAEams2AkggASATIBQgFWprNgJEIAEgECARIBJqazYCQCABIA0gDiAPams2AjwgASAKIAsgDGprNgI4IAEgByAIIAlqazYCNCABIAAgBSAGams2AjAgAUGgAmoiACAWEBAgAEEgEBohHSABQcACaiQAIB0LCwAgACABIAIQwgELIwAgAUKAgICAEFoEQBAOAAsgACABIAIgA0H0lgIoAgARDwALFgAgAUEgEBkgACABQZyXAigCABEAAAvGAgICfwF+IwBB4AJrIgYkACAGIAQgBUEAECwaAkAgACACSyAAIAJrrSADVHFFBEAgACACTw0BIAIgAGutIANaDQELIAAgAiADpxBDIQILIAZCADcDOCAGQgA3AzAgBkIANwMoIAZCADcDIEIgIAMgA0IgWhsiCFAiB0UEQCAGQUBrIAIgCKcQCxoLIAZBIGoiBSAFIAhCIHwgBEEQaiIEQgAgBkGklwIoAgARDAAaIAZB4ABqIAVBjJcCKAIAEQAAGiAHRQRAIAAgBkFAayAIpxALGgsgBkEgakHAABAIIANCIVoEQCAAIAinIgVqIAIgBWogAyAIfSAEQgEgBkGklwIoAgARDAAaCyAGQSAQCCAGQeAAaiICIAAgA0GQlwIoAgARAgAaIAIgAUGUlwIoAgARAAAaIAJBgAIQCCAGQeACaiQAQQALtAICAn8BfiMAQeACayIGJAAgBiAEIAVBABAcGgJAIAAgAksgACACa60gA1RxRQRAIAAgAk8NASACIABrrSADWg0BCyAAIAIgA6cQQyECCyAGQgA3AzggBkIANwMwIAZCADcDKCAGQgA3AyBCICADIANCIFobIghQIgdFBEAgBkFAayACIAinEAsaCyAGQSBqIgUgBSAIQiB8IARBEGoiBCAGEF0aIAZB4ABqIAVBjJcC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IIAxzQQh3IhAgFWoiDCACc0EHdyECIBZBAmsiFg0ACyABKAAEIRYgASgACCEVIAEoAAwhGSABKAAQIRogASgAFCEbIAEoABghHCABKAAcISwgASgAICEtIAEoACQhLiABKAAoIS8gASgALCEwIAEoADAhMSABKAA0ITIgASgAOCEzIAEoADwhNCAFIAEoAAAgCCAqanM2AAAgBSA0IBAgHWpzNgA8IAUgMyAXIB5qczYAOCAFIDIgEiAYanM2ADQgBSAxIA0gE2pzNgAwIAUgMCARIB9qczYALCAFIC8gDCAganM2ACggBSAuIA8gIWpzNgAkIAUgLSALICJqczYAICAFICwgByAjanM2ABwgBSAcIAYgJGpzNgAYIAUgGyACICVqczYAFCAFIBogBCAmanM2ABAgBSAZIBQgJ2pzNgAMIAUgFSAOIChqczYACCAFIBYgCiApanM2AAQgEiATQQFqIhNFaiESIANCwABYBEACQCADQj9WDQAgA6ciAUUNAEEAIQQDQCAEICtqIAQgBWotAAA6AAAgBEEBaiIEIAFJDQALCyAAIBI2AjQgACATNgIwBSABQUBrIQEgBUFAayECIANCQHwhAwwBCwsLBABBAwuzDwENfyMAQTBrIgYkAAJAIAAQhQEiAw0AQWYhAyABQQNrQX5JDQAgACgCLCECIAAoAjAhAyAGQQA2AgQgACgCKCEEIAYgAzYCICAGQX82AhAgBiAENgIMIAYgAiADQQN0IgQgAiAESxsgA0ECdCICbiIDNgIYIAYgA0ECdDYCHCAGIAIgA2w2AhQgACgCNCEDIAYgATYCKCAGIAM2AiQCfyMAIgEhCiABQYAJa0FAcSIBJABBZyECAkAgBkEEaiIDRQ0AIABFDQAgAyADKAIUQQN0EB4iBDYCBEFqIQIgBEUNAAJAAkAgAygCECICRQ0AIAJBCnQiBCACbkGACEcNACADQQwQHiICNgIAIAJFDQAgAkIANwIAQcClAiABQYABaiAEEJMBIgI2AgACQCACBEAgAUEANgKAAQwBCyABKAKAASICDQILIAMoAgAQEyADQQA2AgALIAMgACgCOBDuASAKJABBagwCCyADKAIAIAI2AgAgAygCACACNgI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A0AgBUGAGGogBEEHdGoiAiACKQM4IhcgAikDGCIYfCAYQgGGQv7///8fgyAXQv////8Pg358IhggAikDeIVCIIkiEyACKQNYIhZ8IBNC/////w+DIBZCAYZC/v///x+DfnwiFiAXhUIoiSIXIBh8IBdC/////w+DIBhCAYZC/v///x+DfnwiGCAThUIwiSITIAIpAygiFCACKQMIIhV8IBVCAYZC/v///x+DIBRC/////w+DfnwiFSACKQNohUIgiSIbIAIpA0giHHwgG0L/////D4MgHEIBhkL+////H4N+fCIcIBSFQiiJIhQgFXwgFEL/////D4MgFUIBhkL+////H4N+fCIVIBuFQjCJIhsgHHwgG0L/////D4MgHEIBhkL+////H4N+fCIcIBSFQgGJIhQgAikDICIfIAIpAwAiGnwgGkIBhkL+////H4MgH0L/////D4N+fCIaIAIpA2CFQiCJIiAgAkFAayIGKQMAIiN8ICBC/////w+DICNCAYZC/v///x+DfnwiIyAfhUIoiSIfIBp8IB9C/////w+DIBpCAYZC/v///x+DfnwiGnwgFEL/////D4MgGkIBhkL+////H4N+fCIZhUIgiSIkIAIpAzAiISACKQMQIh18IB1CAYZC/v///x+DICFC/////w+DfnwiHSACKQNwhUIgiSIiIAIpA1AiHnwgIkL/////D4MgHkIBhkL+////H4N+fCIeICGFQiiJIiEgHXwgIUL/////D4MgHUIBhkL+////H4N+fCIdICKFQjCJIiIgHnwgIkL/////D4MgHkIBhkL+////H4N+fCIefCAkQv////8PgyAeQgGGQv7///8fg358IiUgFIVCKIkiFCAZfCAUQv////8PgyAZQgGGQv7///8fg358Ihk3AwAgAiAZICSFQjCJIhk3A3ggAiAZICV8IBlC/////w+DICVCAYZC/v///x+DfnwiGTcDUCACIBQgGYVCAYk3AyggAiAeICGFQgGJIhQgFXwgFEL/////D4MgFUIBhkL+////H4N+fCIVIBogIIVCMIkiGoVCIIkiICATIBZ8IBNC/////w+DIBZCAYZC/v///x+DfnwiE3wgIEL/////D4MgE0IBhkL+////H4N+fCIWIBSFQiiJIhQgFXwgFEL/////D4MgFUIBhkL+////H4N+fCIZICCFQjCJIhU3A2AgAiAZNwMIIAIgFSAWfCAVQv////8PgyAWQgGGQv7///8fg358IhYgFIVCAYk3AzAgAiAWNwNYIAIgEyAXhUIBiSIXIB18IBdC/////w+DIB1CAYZC/v///x+DfnwiEyAbhUIgiSIWIBogI3wgGkL/////D4MgI0IBhkL+////H4N+fCIUfCAWQv////8PgyAUQgGGQv7///8fg358IhUgF4VCKIkiFyATfCAXQv////8PgyATQgGGQv7///8fg358IhM3AxAgAiATIBaFQjCJIhM3A2ggBiATIBV8IBNC/////w+DIBVCAYZC/v///x+DfnwiFTcDACACIBggFCAfhUIBiSITfCAYQgGGQv7///8fgyATQv////8Pg358IhggIoVCIIkiFiAcfCAWQv////8PgyAcQgGGQv7///8fg358IhQgE4VCKIkiEyAYfCATQv////8PgyAYQgGGQv7///8fg358IhsgFoVCMIkiGCAUfCAYQv////8PgyAUQgGGQv7///8fg358IhY3A0ggAiAYNwNwIAIgGzcDGCACIBUgF4VCAYk3AzggAiATIBaFQgGJNwMgIARBAWoiBEEIRw0ACwNAIAVBgBhqIANBBHRqIgIgAikDiAMiFyACKQOIASIYfCAYQgGGQv7///8fgyAXQv////8Pg358IhggAikDiAeFQiCJIhMgAikDiAUiFnwgE0L/////D4MgFkIBhkL+////H4N+fCIWIBeFQiiJIhcgGHwgF0L/////D4MgGEIBhkL+////H4N+fCIYIBOFQjCJIhMgAikDiAIiFCACKQMIIhV8IBVCAYZC/v///x+DIBRC/////w+DfnwiFSACKQOIBoVCIIkiGyACKQOIBCIcfCAbQv////8PgyAcQgGGQv7///8fg358IhwgFIVCKIkiFCAVfCAUQv////8PgyAVQgGGQv7///8fg358IhUgG4VCMIkiGyAcfCAbQv////8PgyAcQgGGQv7///8fg358IhwgFIVCAYkiFCACKQOAAiIfIAIpAwAiGnwgGkIBhkL+////H4MgH0L/////D4N+fCIaIAIpA4AGhUIgiSIgIAIpA4AEIiN8ICBC/////w+DICNCAYZC/v///x+DfnwiIyAfhUIoiSIfIBp8IB9C/////w+DIBpCAYZC/v///x+DfnwiGnwgFEL/////D4MgGkIBhkL+////H4N+fCIZhUIgiSIkIAIpA4ADIiEgAikDgAEiHXwgHUIBhkL+////H4MgIUL/////D4N+fCIdIAIpA4AHhUIgiSIiIAIpA4AFIh58ICJC/////w+DIB5CAYZC/v///x+DfnwiHiAhhUIoiSIhIB18ICFC/////w+DIB1CAYZC/v///x+DfnwiHSAihUIwiSIiIB58ICJC/////w+DIB5CAYZC/v///x+DfnwiHnwgJEL/////D4MgHkIBhkL+////H4N+fCIlIBSFQiiJIhQgGXwgFEL/////D4MgGUIBhkL+////H4N+fCIZNwMAIAIgGSAkhUIwiSIZNwOIByACIBkgJXwgGUL/////D4MgJUIBhkL+////H4N+fCIZNwOABSACIBQgGYVCAYk3A4gCIAIgHiAhhUIBiSIUIBV8IBRC/////w+DIBVCAYZC/v///x+DfnwiFSAaICCFQjCJIhqFQiCJIiAgEyAWfCATQv////8PgyAWQgGGQv7///8fg358IhN8ICBC/////w+DIBNCAYZC/v///x+DfnwiFiAUhUIoiSIUIBV8IBRC/////w+DIBVCAYZC/v///x+DfnwiGSAghUIwiSIVNwOABiACIBk3AwggAiAVIBZ8IBVC/////w+DIBZCAYZC/v///x+DfnwiFiAUhUIBiTcDgAMgAiAWNwOIBSACIBMgF4VCAYkiFyAdfCAXQv////8PgyAdQgGGQv7///8fg358IhMgG4VCIIkiFiAaICN8IBpC/////w+DICNCAYZC/v///x+DfnwiFHwgFkL/////D4MgFEIBhkL+////H4N+fCIVIBeFQiiJIhcgE3wgF0L/////D4MgE0IBhkL+////H4N+fCITNwOAASACIBMgFoVCMIkiEzcDiAYgAiATIBV8IBNC/////w+DIBVCAYZC/v///x+DfnwiFTcDgAQgAiAYIBQgH4VCAYkiE3wgGEIBhkL+////H4MgE0L/////D4N+fCIYICKFQiCJIhYgHHwgFkL/////D4MgHEIBhkL+////H4N+fCIUIBOFQiiJIhMgGHwgE0L/////D4MgGEIBhkL+////H4N+f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ohBQNAIAQgBWohCEGAAiAEayIGrSILIANaBEAgCCACIAOnIgIQCxogASABKALgAiACajYC4AIMAgsgCCACIAYQCxogASABKALgAiAGajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRBWIAUgCkGAARALGiABIAEoAuACQYABayIENgLgAiACIAZqIQIgAyALfSIDQgBSDQALCyABIAAgBxCIARogCSQAQQAMAQsQDgALIQcLIAcL0QYBCn8jAEGgAmsiAiQAIAAoABwhBCAAKAAYIQUgACgAFCEGIAAoABAhByAAKAAEIQggACgACCEJIAAoAAwhCiAAKAAAIQsgAiABKQJ4NwOYAiACIAEpAnA3A5ACIAIgASkCaDcD+AEgAiABKQJgNwPwASACIAEpAng3A+gBIAIgASkCcDcD4AEgAkGAAmoiAyACQfABaiACQeABahAJIAEgAikCiAI3AnggASACKQKAAjcCcCACIAEpAlg3A9gBIAIgASkCUDcD0AEgAiABKQJoNwPIASACIAEpAmA3A8ABIAMgAkHQAWogAkHAAWoQCSABIAIpAogCNwJoIAEgAikCgAI3AmAgAiABKQJINwO4ASACIAFBQGsiACkCADcDsAEgAiABKQJYNwOoASACIAEpAlA3A6ABIAMgAkGwAWogAkGgAWoQCSABIAIpAogCNwJYIAEgAikCgAI3AlAgAiABKQI4NwOYASACIAEpAjA3A5ABIAIgASkCSDcDiAEgAiAAKQIANwOAASADIAJBkAFqIAJBgAFqEAkgASACKQKIAjcCSCAAIAIpAoACNwIAIAIgASkCKDcDeCACIAEpAiA3A3AgAiABKQI4NwNoIAIgASkCMDcDYCADIAJB8ABqIAJB4ABqEAkgASACKQKIAjcCOCABIAIpAoACNwIwIAIgASkCGDcDWCACIAEpAhA3A1AgAiABKQIoNwNIIAIgASkCIDcDQCADIAJB0ABqIAJBQGsQCSABIAIpAogCNwIoIAEgAikCgAI3AiAgAiABKQIINwM4IAIgASkCADcDMCACIAEpAhg3AyggAiABKQIQNwMgIAMgAkEwaiACQSBqEAkgASACKQKIAjcCGCABIAIpAoACNwIQIAIgAikDmAI3AxggAiACKQOQAjcDECACIAEpAgg3AwggAiABKQIANwMAIAMgAkEQaiACEAkgASACKQKIAjcCCCABIAIpAoACNwIAIAEgCiABKAAMczYCDCABIAkgASgACHM2AgggASAIIAEoAARzNgIEIAEgCyABKAAAczYCACAAIAcgACgAAHM2AgAgASAGIAEoAERzNgJEIAEgBSABKABIczYCSCABIAQgASgATHM2AkwgAkGgAmokAAvkBQEkfwJ/IANFBEBB9MqB2QYhEkHl8MGLBiETQbLaiMsHIRRB7siBmQMMAQsgAygADCESIAMoAAghFCADKAAAIRMgAygABAshGCACKAAUIhkhAyACKAAYIhohDCACKAAcIhshESASIQ0gAigAECIcIQsgFCEOIAEoAAwiHSEGIAEoAAgiHiEPIAEoAAQiHyEHIAEoAAAiICEBIBghECACKAAMIiEhCiACKAAIIiIhBSACKAAEIiMhCCACKAAAIiQhAiATIQkgBEEASgRAA0AgAiAQakEHdyAGcyIVIBBqQQl3IAxzIiYgAyAJakEHdyAKcyIWIAlqQQl3IA9zIicgFmpBDXcgA3MiKCAFIAsgDWpBB3dzIhcgDWpBCXcgB3MiByAXakENdyALcyIFIAdqQRJ3IA1zIgogASAOakEHdyARcyIGakEHd3MiAyAKakEJd3MiDCADakENdyAGcyIRIAxqQRJ3IApzIQ0gBSAGIAYgDmpBCXcgCHMiCGpBDXcgAXMiASAIakESdyAOcyIFIBVqQQd3cyILIAVqQQl3ICdzIg8gC2pBDXcgFXMiBiAPakESdyAFcyEOICYgFSAmakENdyACcyICakESdyAQcyIFIBZqQQd3IAFzIgEgBWpBCXcgB3MiByABakENdyAWcyIKIAdqQRJ3IAVzIRAgJyAoakESdyAJcyIJIBdqQQd3IAJzIgIgCWpBCXcgCHMiCCACakENdyAXcyIFIAhqQRJ3IAlzIQkgJUECaiIlIARIDQALCyAAIA0gEmo2ADwgACARIBtqNgA4IAAgDCAaajYANCAAIAMgGWo2ADAgACALIBxqNgAsIAAgDiAUajYAKCAAIAYgHWo2ACQgACAPIB5qNgAgIAAgByAfajYAHCAAIAEgIGo2ABggACAQIBhqNgAUIAAgCiAhajYAECAAIAUgImo2AAwgACAIICNqNgAIIAAgAiAkajYABCAAIAkgE2o2AAALtgkBFX8jAEHAAmsiAyQAIANB8AFqIgQgAhAFIAQgBCACEAYgACAEEAUgACAAIAIQBiAAIAAgARAGIAAgABBuIAAgACAEEAYgACAAIAEQBiADQcABaiIEIAAQBSAEIAQgAhAGIAEoAgQhBSABKAIIIQ0gASgCDCEOIAEoAhAhDyABKAIUIRAgASgCGCERIAEoAhwhEiABKAIgIRMgASgCACEUIAMoAsABIQIgAygCxAEhBCADKALIASEGIAMoAswBIQcgAygC0AEhCCADKALUASEJIAMoAtgBIQogAygC3AEhCyADKALgASEMIAMgAygC5AEiFSABKAIkIhZrNgK0ASADIAwgE2s2ArABIAMgCyASazYCrAEgAyAKIBFrNgKoASADIAkgEGs2AqQBIAMgCCAPazYCoAEgAyAHIA5rNgKcASADIAYgDWs2ApgBIAMgBCAFazYClAEgAyACIBRrNgKQASADIBUgFmo2AoQBIAMgDCATajYCgAEgAyALIBJqNgJ8IAMgCiARajYCeCADIAkgEGo2AnQgAyAIIA9qNgJwIAMgByAOajYCbCADIAYgDWo2AmggAyAEIAVqNgJkIAMgAiAUajYCYCADQTBqIgUgAUHwDBAGIAMgFSADKAJUajYCVCADIAwgAygCUGo2AlAgAyALIAMoAkxqNgJMIAMgCiADKAJIajYCSCADIAkgAygCRGo2AkQgAyAIIAMoAkBqNgJAIAMgByADKAI8ajYCPCADIAYgAygCOGo2AjggAyAEIAMoAjRqNgI0IAMgAiADKAIwajYCMCADIANBkAFqEBAgA0EgEBohDiADIANB4ABqEBAgA0EgEBohDSADIAUQECADQSAQGiEBIAMgAEHwDBAGIAAoAgQhDCAAKAIIIQsgACgCDCEKIAAoAhAhCSAAKAIUIQggACgCGCEHIAAoAhwhBiAAKAIgIQQgACgCACEFIAMoAgAhDyADKAIEIRAgAygCCCERIAMoAgwhEiADKAIQIRM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ACEAUgAiACEAUgA0HgAGoiBCACIAQQBiAEIAQQBSAEIAQQBSAAIAQgARAGIANBkAFqJAALpgQCDn4KfyAAKAIkIRIgACgCICETIAAoAhwhFCAAKAIYIRUgACgCFCERIAJCEFoEQCAALQBQRUEYdCEWIAAoAhAiF60hDyAAKAIMIhitIQ0gACgCCCIZrSELIAAoAgQiGq0hCSAaQQVsrSEQIBlBBWytIQ4gGEEFbK0hDCAXQQVsrSEKIAA1AgAhCANAIAEoAANBAnZB////H3EgFWqtIgMgDX4gASgAAEH///8fcSARaq0iBCAPfnwgASgABkEEdkH///8fcSAUaq0iBSALfnwgASgACUEGdiATaq0iBiAJfnwgEiAWaiABKAAMQQh2aq0iByAIfnwgAyALfiAEIA1+fCAFIAl+fCAGIAh+fCAHIAp+fCADIAl+IAQgC358IAUgCH58IAYgCn58IAcgDH58IAMgCH4gBCAJfnwgBSAKfnwgBiAMfnwgByAOfnwgAyAKfiAEIAh+fCAFIAx+fCAGIA5+fCAHIBB+fCIDQhqIQv////8Pg3wiBEIaiEL/////D4N8IgVCGohC/////w+DfCIGQhqIQv////8Pg3wiB0IaiKdBBWwgA6dB////H3FqIhFBGnYgBKdB////H3FqIRUgBadB////H3EhFCAGp0H///8fcSETIAenQf///x9xIRIgEUH///8fcSERIAFBEGohASACQhB9IgJCD1YNAAsLIAAgETYCFCAAIBI2AiQgACATNgIgIAAgFDYCHCAAIBU2AhgLrQMCDH8DfiAAKQM4Ig5CAFIEQCAAQUBrIgIgDqciA2pBAToAACAOQgF8Qg9YBEAgACADakHBAGpBAEEPIANrEAwaCyAAQQE6AFAgACACQhAQbwsgADUCNCEOIAA1AjAhDyAANQIsIRAgASAAKAIUIAAoAiQgACgCICAAKAIcIAAoAhgiA0EadmoiAkEadmoiBkEadmoiCUEadkEFbGoiBEH///8fcSIFQQVqIgdBGnYgA0H///8fcSAEQRp2aiIEaiIIQRp2IAJB////H3EiCmoiC0EadiAGQf///x9xIgZqIgxBGnYgCUH///8fcWoiDUGA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JiAAQoCAgICAEFQNABpBJyAAQoCAgICAIFQNABpBKCAAQoCAgICAwABUDQAaQSkgAEKAgICAgIABVA0AGkEqIABCgICAgICAAlQNABpBKyAAQoCAgICAgARUDQAaQSwgAEKAgICAgIAIVA0AGkEtIABCgICAgICAEFQNABpBLiAAQoCAgICAgCBUDQAaQS8gAEKAgICAgIDAAFQNABpBMCAAQoCAgICAgIABVA0AGkExIABCgICAgICAgAJUDQAaQTIgAEKAgICAgICABFQNABpBMyAAQoCAgICAgIAIVA0AGkE0IABCgICAgICAgBBUDQAaQTUgAEKAgICAgICAIFQNABpBNiAAQoCAgICAgIDAAFQNABpBNyAAQoCAgICAgICAAVQNABpBOCAAQoCAgICAgICAAlQNABpBOSAAQoCAgICAgICABFQNABpBOiAAQoCAgICAgICACFQNABpBOyAAQoCAgICAgICAEFQNABpBPCAAQoCAgICAgICAIFQNABpBPSAAQoCAgICAgICAwABUDQAaQT5BPyAAQgBZGws2AgALegECfyMAQSBrIgUkAEF/IQYCQCACQiBUDQAgBUIgIAMgBBDSARogAUEQaiABQSBqIAJCIH0gBUGIlwIoAgAREAANACAAIAEgAiADIAQQehogAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAQQAhBgsgBUEgaiQAIAYLRgAgAkIgWgR/IAAgASACIAMgBBB6GiAAQRBqIABBIGogAkIgfSAAQYSXAigCABEQABogAEIANwAIIABCADcAAEEABUF/CwvOJAEzfyMAQdAEayIfJABBfyEGAkAgAEEgaiIHEI0BRQ0AIAAQTA0AIAMQa0UNACADEEwNACAfQYABaiIPIAMQlAENACAfQYADaiIGEDIaIAQEQCAGQZCWAkIiEBUaCyAGIABCIBAVGiAGIANCIBAVGiAGIAEgAhAVGiAGIB9BwAJqIgYQHRogBhAoIB9BCGohECAHIQRBACEDQQAhASMAQeARayIFJAADQCAFQeAPaiIKIANqIAYgA0EDdmoiCS0AACADQQZxdkEBcToAACAKIANBAXIiB2ogCS0AACAHQQdxdkEBcToAACADQQJqIgNBgAJHDQALA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AoAhhFBEBBbCAAKAIcDQEaCyAAKAIgRQRAQWsgACgCJA0BGgsgACgCMCIBRQRAQXAPC0FvIAFB////B0sNABpBciAAKAIsIgJBCEkNABpBcSACQYCAgAFLDQAaQXIgAiABQQN0SQ0AGiAAKAIoRQRAQXQPCyAAKAI0IgBFBEBBZA8LQWNBACAAQf///wdLGwsLpxkCE34FfyMAQYAQayIYJAAgGEGACGogAUGACBALGkEAIQEDQCABQQN0IhYgGEGACGoiGmoiFyAXKQMAIAAgFmopAwCFNwMAIBogFkEIciIXaiIZIBkpAwAgACAXaikDAIU3AwAgGiAWQRByIhdqIhkgGSkDACAAIBdqKQMAhTcDACAaIBZBGHIiFmoiFyAXKQMAIAAgFmopAwCFNwMAIAFBBGoiAUGAAUcNAAsgGCAaQYAIEAshGEEAIQBBACEBA0AgGCABQQN0IhZqIhcgFykDACACIBZqKQMAhTcDACAYIBZBCHIiF2oiGSAZKQMAIAIgF2opAwCFNwMAIBggFkEQciIXaiIZIBkpAwAgAiAXaikDAIU3AwAgGCAWQRhyIhZqIhcgFykDACACIBZqKQMAhTcDACABQQRqIgFBgAFHDQALA0AgGEGACGogAEEHdGoiASABKQM4IgggASkDGCIHfCAHQgGGQv7///8fgyAIQv////8Pg358IgcgASkDeIVCIIkiBCABKQNYIgV8IAVCAYZC/v///x+DIARC/////w+DfnwiBSAIhUIoiSIIIAd8IAhC/////w+DIAdCAYZC/v///x+DfnwiByAEhUIwiSIEIAEpAygiAyABKQMIIgZ8IAZCAYZC/v///x+DIANC/////w+DfnwiBiABKQNohUIgiSILIAEpA0giDHwgDEIBhkL+////H4MgC0L/////D4N+fCIMIAOFQiiJIgMgBnwgA0L/////D4MgBkIBhkL+////H4N+fCIGIAuFQjCJIgsgDHwgC0L/////D4MgDEIBhkL+////H4N+fCIMIAOFQgGJIgMgASkDICIPIAEpAwAiCnwgCkIBhkL+////H4MgD0L/////D4N+fCIKIAEpA2CFQiCJIhAgAUFAayIWKQMAIhN8IBNCAYZC/v///x+DIBBC/////w+DfnwiEyAPhUIoiSIPIAp8IA9C/////w+DIApCAYZC/v///x+DfnwiCnwgA0L/////D4MgCkIBhkL+////H4N+fCIJhUIgiSIUIAEpAzAiESABKQMQIg18IA1CAYZC/v///x+DIBFC/////w+DfnwiDSABKQNwhUIgiSISIAEpA1AiDnwgDkIBhkL+////H4MgEkL/////D4N+fCIOIBGFQiiJIhEgDXwgEUL/////D4MgDUIBhkL+////H4N+fCINIBKFQjCJIhIgDnwgEkL/////D4MgDkIBhkL+////H4N+fCIOfCAUQv////8PgyAOQgGGQv7///8fg358IhUgA4VCKIkiAyAJfCADQv////8PgyAJQgGGQv7///8fg358Igk3AwAgASAJIBSFQjCJIgk3A3ggASAJIBV8IAlC/////w+DIBVCAYZC/v///x+DfnwiCTcDUCABIAMgCYVCAYk3AyggASAEIAV8IARC/////w+DIAVCAYZC/v///x+DfnwiBCAOIBGFQgGJIgUgBnwgBUL/////D4MgBkIBhkL+////H4N+fCIDIAogEIVCMIkiBoVCIIkiCnwgBEIBhkL+////H4MgCkL/////D4N+fCIQIAWFQiiJIgUgA3wgBUL/////D4MgA0IBhkL+////H4N+fCIJIAqFQjCJIgM3A2AgASAJNwMIIAEgBSADIBB8IANC/////w+DIBBCAYZC/v///x+DfnwiBYVCAYk3AzAgASAFNwNYIAEgBCAIhUIBiSIIIA18IAhC/////w+DIA1CAYZC/v///x+DfnwiBCALhUIgiSIFIAYgE3wgBkL/////D4MgE0IBhkL+////H4N+fCIDfCAFQv////8PgyADQgGGQv7///8fg358IgYgCIVCKIkiCCAEfCAIQv////8PgyAEQgGGQv7///8fg358IgQ3AxAgASAEIAWFQjCJIgQ3A2ggFiAEIAZ8IARC/////w+DIAZCAYZC/v///x+DfnwiBjcDACABIAcgAyAPhUIBiSIEfCAHQgGGQv7///8fgyAEQv////8Pg358IgcgEoVCIIkiBSAMfCAFQv////8PgyAMQgGGQv7///8fg358IgMgBIVCKIkiBCAHfCAEQv////8PgyAHQgGGQv7///8fg358IgsgBYVCMIkiByADfCAHQv////8PgyADQgGGQv7///8fg358IgU3A0ggASAHNwNwIAEgCzcDGCABIAYgCIVCAYk3AzggASAEIAWFQgGJNwMgIABBAWoiAEEIRw0AC0EAIQADQCAYQYAIaiAAQQR0aiIBIAEpA4gDIgggASkDiAEiB3wgB0IBhkL+////H4MgCEL/////D4N+fCIHIAEpA4gHhUIgiSIEIAEpA4gFIgV8IAVCAYZC/v///x+DIARC/////w+DfnwiBSAIhUIoiSIIIAd8IAhC/////w+DIAdCAYZC/v///x+DfnwiByAEhUIwiSIEIAEpA4gCIgMgASkDCCIGfCAGQgGGQv7///8fgyADQv////8Pg358IgYgASkDiAaFQiCJIgsgASkDiAQiDHwgDEIBhkL+////H4MgC0L/////D4N+fCIMIAOFQiiJIgMgBnwgA0L/////D4MgBkIBhkL+////H4N+fCIGIAuFQjCJIgsgDHwgC0L/////D4MgDEIBhkL+////H4N+fCIMIAOFQgGJIgMgASkDgAIiDyABKQMAIgp8IApCAYZC/v///x+DIA9C/////w+DfnwiCiABKQOABoVCIIkiECABKQOABCITfCATQgGGQv7///8fgyAQQv////8Pg358IhMgD4VCKIkiDyAKfCAPQv////8PgyAKQgGGQv7///8fg358Igp8IANC/////w+DIApCAYZC/v///x+DfnwiCYVCIIkiFCABKQOAAyIRIAEpA4ABIg18IA1CAYZC/v///x+DIBFC/////w+DfnwiDSABKQOAB4VCIIkiEiABKQOABSIOfCAOQgGGQv7///8fgyASQv////8Pg358Ig4gEYVCKIkiESANfCARQv////8PgyANQgGGQv7///8fg358Ig0gEoVCMIkiEiAOfCASQv////8PgyAOQgGGQv7///8fg358Ig58IBRC/////w+DIA5CAYZC/v///x+DfnwiFSADhUIoiSIDIAl8IANC/////w+DIAlCAYZC/v///x+DfnwiCTcDACABIAkgFIVCMIkiCTcDiAcgASAJIBV8IAlC/////w+DIBVCAYZC/v///x+DfnwiCTcDgAUgASADIAmFQgGJNwOIAiABIAQgBXwgBEL/////D4MgBUIBhkL+////H4N+fCIEIA4gEYVCAYkiBSAGfCAFQv////8PgyAGQgGGQv7///8fg358IgMgCiAQhUIwiSIGhUIgiSIKfCAEQgGGQv7///8fgyAKQv////8Pg358IhAgBYVCKIkiBSADfCAFQv////8PgyADQgGGQv7///8fg358IgkgCoVCMIkiAzcDgAYgASAJNwMIIAEgBSADIBB8IANC/////w+DIBBCAYZC/v///x+DfnwiBYVCAYk3A4ADIAEgBTcDiAUgASAEIAiFQgGJIgggDXwgCEL/////D4MgDUIBhkL+////H4N+fCIEIAuFQiCJIgUgBiATfCAGQv////8PgyATQgGGQv7///8fg358IgN8IAVC/////w+DIANCAYZC/v///x+DfnwiBiAIhUIoiSIIIAR8IAhC/////w+DIARCAYZC/v///x+DfnwiBDcDgAEgASAEIAWFQjCJIgQ3A4gGIAEgBCAGfCAEQv////8PgyAGQgGGQv7///8fg358IgY3A4AEIAEgByADIA+FQgGJIgR8IAdCAYZC/v///x+DIARC/////w+DfnwiByAShUIgiSIFIAx8IAVC/////w+DIAxCAYZC/v///x+DfnwiAyAEhUIoiSIEIAd8IARC/////w+DIAdCAYZC/v///x+DfnwiCyAFhUIwiSIHIAN8IAdC/////w+DIANCAYZC/v///x+DfnwiBTcDiAQgASAHNwOAByABIAs3A4gBIAEgBiAIhUIBiTcDiAMgASAEIAWFQgGJNwOAAiAAQQFqIgBBCEcNAAsgAiAYQYAIEAshAUEAIQADQCABIABBA3QiAmoiFiAWKQMAIBhBgAhqIhkgAmopAwCFNwMAIAEgAkEIciIWaiIXIBcpAwAgFiAZaikDAIU3AwAgASACQRByIhZqIhcgFykDACAYQYAIaiAWaikDAIU3AwAgASACQRhyIgJqIhYgFikDACAYQYAIaiACaikDAIU3AwAgAEEEaiIAQYABRw0ACyAYQYAQaiQAC7QEAQR/IwAiBCEHIARBwARrQUBxIgQkACAEIAE2ArwBAkAgAUHAAE0EQCAEQcABaiIFQQBBACABEFVBAEgNASAFIARBvAFqQgQQF0EASA0BIAUgAiADrRAXQQBIDQEgBSAAIAEQVBoM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ACNALEAkKG2h1+IhpCgICACHwiHUIZh3wiG0KAgIAQfCIcQhqIfKciBWs2ApwCIAJBACAbIBxCgICA4A+DfaciBms2ApgCIAJBACAaIB1CgICA8A+DfSACNALAAkKG2h1+IAI0ArwCQobaHX4iGkKAgIAIfCIdQhmHfCIbQoCAgBB8IhxCGoh8pyIHazYClAIgAkEAIBsgHEKAgIDgD4N9pyIIazYCkAIgAkEAIBogHUKAgIDwD4N9IAI0ArgCQobaHX4gAjQCtAJChtodfiIaQoCAgAh8Ih1CGYd8IhtCgICAEHwiHEIaiHynIglrNgKMAiACQQAgGyAcQoCAgOAPg32nIgprNgKIAiACQQAgGiAdQoCAgPAPg30gHkIZh0ITfiACNAKwAkKG2h1+fCIeQoCAgBB8IhpCGoh8pyILazYChAIgAkEAIB4gGkKAgIDgD4N9pyIMazYCgAIgAkHQAWoiDiACQYACaiIPEAUgAkGgAWogDyAOEAYgAigCxAEhDiACKAKgASEPIAI0AtABIR4gAigCpAEhESACKAKoASESIAI0AtQBIRogAjQC2AEhHSACKAKsASETIAIoArABIRQgAjQC3AEhGyACNALgASEcIAIoArQBIRUgAigCuAEhFiACNALkASEfIAI0AugBISAgAigCvAEhFyACKALAASEYIAIgAjQC9AFChtodfiIhICFCgICACHwiIUKAgIDwD4N9IAI0AvABQobaHX4gAjQC7AFChtodfiIiQoCAgAh8IiNCGYd8IiRCgICAEHwiJUIaiHynIhk2AvQBIAIgDiABayAZajYChAMgAiAkICVCgICA4A+DfaciATYC8AEgAiAYIANrIAFqNgKAAyACICIgI0KAgIDwD4N9ICBChtodfiAfQobaHX4iH0KAgIAIfCIgQhmHfCIiQoCAgBB8IiNCGoh8pyIBNgLsASACIBcgBWsgAWo2AvwCIAIgIiAjQoCAgOAPg32nIgE2AugBIAIgFiAGayABajYC+AIgAiAfICBCgICA8A+DfSAcQobaHX4gG0KG2h1+IhtCgICACHwiHEIZh3wiH0KAgIAQfCIgQhqIfKciATYC5AEgAiAVIAdrIAFqNgL0AiACIB8gIEKAgIDgD4N9pyIBNgLgASACIBQgCGsgAWo2AvACIAIgGyAcQoCAgPAPg30gHUKG2h1+IBpChtodfiIaQoCAgAh8Ih1CGYd8IhtCgICAEHwiHEIaiHynIgE2AtwBIAIgEyAJayABajYC7AIgAiAbIBxCgICA4A+DfaciATYC2AEgAiASIAprIAFqNgLoAiACIBogHUKAgIDwD4N9ICFCGYdCE34gHkKG2h1+fCIeQoCAgBB8IhpCGoh8pyIBNgLUASACIBEgC2sgAWo2AuQCIAIgHiAaQoCAgOAPg32nIgE2AtABIAIgDyAMayABajYC4AIgAkHwBGoiAyACQeACaiIBIAEQBiACIAEgAxAGIAJBkAZqIgEgAhAFIAEgARAFIAJBkAdqIgUgAiABEAYgAkHABGoiAyAFEAUgAyADEAUgAyADEAUgAyADEAUgAkGQBGoiASAFIAMQBiABIAEQBSABIAEQBSABIAEgAhAGIAIgAikDsAQ3A4AEIAIgAikDqAQ3A/gDIAIgAikDoAQ3A/ADIAIgAikDmAQ3A+gDIAIgAikDkAQ3A+ADIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASACQeADaiIDEAYgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAIpA7AENwPQAyACIAIpA6gENwPIAyACIAIpA6AENwPAAyACIAIpA5gENwO4AyACIAIpA5AENwOwAyABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEgAkGwA2oiAxAGIAIgAikDsAQ3A9ADIAIgAikDqAQ3A8gDIAIgAikDoAQ3A8ADIAIgAikDmAQ3A7gDIAIgAikDkAQ3A7ADIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASADEAYgAiACKQOwBDcD0AMgAiACKQOoBDcDyAMgAiACKQOgBDcDwAMgAiACKQOYBDcDuAMgAiACKQOQBDcDsAMDQCACQZAEaiIBIAEQBSAEQQFqIgRB+ABHDQALIAEgASACQbADahAGIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASACQeADahAGIAEgARAFIAEgARAFIAEgARAFIAEgASACEAYgASABEAUgAkGQA2ogARAQIAIoAoACIQMgAigChAIhBCACKAKIAiEFIAIoAowCIQYgAigCkAIhByACKAKUAiEIIAIoApgCIQkgAigCnAIhCiACKAKgAiELIAJBACACLQCRA0EBcWsiASACKAKkAiIMQQAgDGtzcSAMcyIMNgKUBSACIAsgC0EAIAtrcyABcXMiCzYCkAUgAiAKIApBACAKa3MgAXFzIgo2AowFIAIgCSAJQQAgCWtzIAFxcyIJNgKIBSACIAggCEEAIAhrcyABcXMiCDYChAUgAiAHIAdBACAHa3MgAXFzIgc2AoAFIAIgBiAGQQAgBmtzIAFxcyIGNgL8BCACIAU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EhBiAAKAKIASEHIAAoAowBIQggACgCkAEhCSAAKAKUASEKIAAoApgBIQsgA0EAIAAoApwBazYCnAEgA0EAIAtrNgKYASADQQAgCms2ApQBIANBACAJazYCkAEgA0EAIAhrNgKMASADQQAgB2s2AogBIANBACAGazYChAEgA0EAIAVrNgKAASADQQAgBGs2AnwgA0EAIAFrNgJ4IAAgAyACQYABcUEHdhAqIANBoAFqJAALjBEBE38jAEHAH2siAyQAIANBoAFqIAIQDyADQYAeaiIGIAIpAiA3AwAgA0H4HWoiByACKQIYNwMAIANB8B1qIgkgAikCEDcDACADQegdaiIMIAIpAgg3AwAgAyACKQIANwPgHSADQZAeaiINIAIpAjA3AwAgA0GYHmoiDiACKQI4NwMAIANBoB5qIg8gAkFAaykCADcDACADQageaiIQIAIpAkg3AwAgAyACKQIoNwOIHiADQbgeaiIRIAIpAlg3AwAgA0HAHmoiEiACKQJgNwMAIANByB5qIhMgAikCaDcDACADQdAeaiIUIAIpAnA3AwAgAyACKQJQNwOwHiADQcgbaiIIIANB4B1qIhUQGCADQegSaiILIAggA0HAHGoiBBAGIANBkBNqIANB8BtqIgUgA0GYHGoiChAGIANBuBNqIAogBBAGIANB4BNqIAggBRAGIANBwAJqIgQgCxAPIANBqBpqIgggAiAEEBIgA0HIEWoiCyAIIANBoBtqIgQQBiADQfARaiADQdAaaiIFIANB+BpqIgoQBiADQZgSaiAKIAQQBiADQcASaiAIIAUQBiADQeADaiALEA8gBiADQYgTaikCADcDACAHIANBgBNqKQIANwMAIAkgA0H4EmopAgA3AwAgDCADQfASaikCADcDACANIANBmBNqKQIANwMAIA4gA0GgE2opAgA3AwAgDyADQagTaikCADcDACAQIANBsBNqKQIANwMAIAMgAykC6BI3A+AdIAMgAykCkBM3A4geIBQgA0HYE2opAgA3AwAgEyADQdATaikCADcDACASIANByBNqKQIANwMAIBEgA0HAE2opAgA3AwAgAyADKQK4EzcDsB4gA0GIGWoiCCAVEBggA0GoEGoiCyAIIANBgBpqIgQQBiADQdAQaiADQbAZaiIFIANB2BlqIgoQBiADQfgQaiAKIAQQBiADQaARaiAIIAUQBiADQYAFaiIEIAsQDyADQegXaiIIIAIgBBASIANBiA9qIgsgCCADQeAYaiIEEAYgA0GwD2ogA0GQGGoiBSADQbgYaiIKEAYgA0HYD2ogCiAEEAYgA0GAEGogCCAFEAYgA0GgBmogCxAPIAYgA0HoEWopAgA3AwAgByADQeARaikCADcDACAJIANB2BFqKQIANwMAIAwgA0HQEWopAgA3AwAgDSADQfgRaikCADcDACAOIANBgBJqKQIANwMAIA8gA0GIEmopAgA3AwAgECADQZASaikCADcDACADIAMpAsgRNwPgHSADIAMpAvARNwOIHiAUIANBuBJqKQIANwMAIBMgA0GwEmopAgA3AwAgEiADQagSaikCADcDACARIANBoBJqKQIANwMAIAMgAykCmBI3A7AeIANByBZqIgggFRAYIANB6A1qIgsgCCADQcAXaiIEEAYgA0GQDmogA0HwFmoiBSADQZgXaiIKEAYgA0G4DmogCiAEEAYgA0HgDmogCCAFEAYgA0HAB2oiBCALEA8gA0GoFWoiCiACIAQQEiADQcgMaiIIIAogA0GgFmoiAhAGIANB8AxqIANB0BVqIgQgA0H4FWoiBRAGIANBmA1qIAUgAhAGIANBwA1qIAogBBAGIANB4AhqIAgQDyAGIANByBBqKQIANwMAIAcgA0HAEGopAgA3AwAgCSADQbgQaikCADcDACAMIANBsBBqKQIANwMAIA0gA0HYEGopAgA3AwAgDiADQeAQaikCADcDACAPIANB6BBqKQIANwMAIBAgA0HwEGopAgA3AwAgAyADKQKoEDcD4B0gAyADKQLQEDcDiB4gFCADQZgRaikCADcDACATIANBkBFqKQIANwMAIBIgA0GIEWopAgA3AwAgESADQYARaikCADcDACADIAMpAvgQNwOwHiADQYgUaiIEIBUQGCADQagLaiIJIAQgA0GAFWoiAhAGIANB0AtqIANBsBRqIgYgA0HYFGoiBxAGIANB+AtqIAcgAhAGIANBoAxqIAQgBhAGIANBgApqIAkQD0EAIQZBACECA0AgA0GAH2oiBCACQQF0aiIHIA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HwDBAGCyACQaACaiAAEBAgAi0AoAJBAXEgAS0AH0EHdkYEQCAAQQAgACgCAGs2AgAgAEEAIAAoAiRrNgIkIABBACAAKAIgazYCICAAQQAgACgCHGs2AhwgAEEAIAAoAhhrNgIYIABBACAAKAIUazYCFCAAQQAgACgCEGs2AhAgAEEAIAAoAgxrNgIMIABBACAAKAIIazYCCCAAQQAgACgCBGs2AgQLIABB+ABqIAAgBhAGQQAhBwsgAkHAAmokACAHCwUAQYACCxAAIAAgAUGUlwIoAgARAAALEAAgACABQYyXAigCABEAAAuMAQEBfyMAQRBrIgIgADYCDCACIAE2AghBACEAIAJBADYCBANAIAIgAigCBCACKAIMIABqLQAAIAIoAgggAGotAABzcjYCBCACIAIoAgQgAEEBciIBIAIoAgxqLQAAIAIoAgggAWotAABzcjYCBCAAQQJqIgBBwABHDQALIAIoAgRBAWtBCHZBAXFBAWsLLQEBfiACrSADrUIghoQiBkIQWgR/IAAgAUEQaiABIAZCEH0gBCAFEGAFQX8LCxgAIAAgASACIAOtIAStQiCGhCAFIAYQYAsYACAAIAEgAiADrSAErUIghoQgBSAGEFILFgAgACABIAKtIAOtQiCGhCAEIAUQegsVACAAIAGtIAKtQiCGhCADIAQQ0gELEwAgACABIAKtIAOtQiCGhBCQAwsVACAAIAEgAq0gA61CIIaEIAQQlAMLFwAgACABIAIgA60gBK1CIIaEIAUQlgMLFwAgACABIAIgA60gBK1CIIaEIAUQkwMLFwAgACABIAIgA60gBK1CIIaEIAUQlQMLFQAgACABIAKtIAOtQiCGhCAEEPoCCx8AIAAgASACrSADrUIghoQgBK0gBa1CIIaEIAYQ1gELGgAgACABIAKtIAOtQiCGhEGQlwIoAgARAgALHAAgACABIAKtIAOtQiCGhCAEQYiXAigCABEQAAscACAAIAEgAq0gA61CIIaEIARBhJcCKAIAERAACxcAIAAgASACrSADrUIghoQgBCAFEPsCCxIAIAAgASACrSADrUIghoQQQgstAQF+IAKtIAOtQiCGhCIGQhBaBH8gACABQRBqIAEgBkIQ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EAABogB0GAAhAIIAIEQCACQhA3AwALIAlBEGpBIBAIIAlBgANqJABBAAsKACAAIAEgAhArC0oBAn8jAEEgayIGJABBfyEHAkAgAkIQVA0AIAYgBCAFEE4NACAAIAFBEGogASACQhB9IAMgBhBfIQcgBkEgEAgLIAZBIGokACAHC08BAn8jAEEgayIGJAAgAkLw////D1QEQEF/IQcgBiAEIAUQTkUEQCAAQRBqIAAgASACIAMgBhBRIQcgBkEgEAgLIAZBIGokACAHDwsQDgAL6AQBAn8jAEGgAWsiBCQAIAAgAS0AADoAACAAIAEtAAE6AAEgACABLQACOgACIAAgAS0AAzoAAyAAIAEtAAQ6AAQgACABLQAFOgAFIAAgAS0ABjoABiAAIAEtAAc6AAcgACABLQAIOgAIIAAgAS0ACToACSAAIAEtAAo6AAogACABLQALOgALIAAgAS0ADDoADCAAIAEtAA06AA0gACABLQAOOgAOIAAgAS0ADzoADyAAIAEtABA6ABAgACABLQAROgARIAAgAS0AEjoAEiAAIAEtABM6ABMgACABLQAUOgAUIAAgAS0AFToAFSAAIAEtABY6ABYgACABLQAXOgAXIAAgAS0AGDoAGCAAIAEtABk6ABkgACABLQAaOgAaIAAgAS0AGzoAGyAAIAEtABw6ABwgACABLQAdOgAdIAAgAS0AHjoAHiABLQAfIQMgACACBH8gACAALQAAQfgBcToAACADQcAAcgUgAwtB/wBxOgAfIAQgABA/IAAgBBAvQX8hAyAALQAfQf8AcSAALQAeIAAtAB0gAC0AHCAALQAbIAAtABogAC0AGSAALQAYIAAtABcgAC0AFiAALQAVIAAtABQgAC0AEyAALQASIAAtABEgAC0AECAALQAPIAAtAA4gAC0ADSAALQAMIAAtAAsgAC0ACiAALQAJIAAtAAggAC0AByAALQAGIAAtAAUgAC0ABCAALQADIAAtAAIgAC0AASAALQAAQQFzcnJycnJycnJycnJycnJycnJycnJycnJycnJycnJyckEBa0GAAnFFBEBBf0EAIAFBIBAaGyEDCyAEQaABaiQAIAMLjgUBAn8jAEHAAmsiBCQAQX8hBQJAIAIQa0UNACACEEwNACAEIAIQNA0AIAQQbEUNACAAIAEtAAA6AAAgACABLQABOgABIAAgAS0AAjoAAiAAIAEtAAM6AAMgACABLQAEOgAEIAAgAS0ABToABSAAIAEtAAY6AAYgACABLQAHOgAHIAAgAS0ACDoACCAAIAEtAAk6AAkgACABLQAKOgAKIAAgAS0ACzoACyAAIAEtAAw6AAwgACABLQANOgANIAAgAS0ADjoADiAAIAEtAA86AA8gACABLQAQOgAQIAAgAS0AEToAESAAIAEtABI6ABIgACABLQATOgATIAAgAS0AFDoAFCAAIAEtABU6ABUgACABLQAWOgAWIAAgAS0AFzoAFyAAIAEtABg6ABggACABLQAZOgAZIAAgAS0AGjoAGiAAIAEtABs6ABsgACABLQAcOgAcIAAgAS0AHToAHSAAIAEtAB46AB4gAS0AHyECIAAgAwR/IAAgAC0AAEH4AXE6AAAgAkHAAHIFIAILQf8AcToAHyAEQaABaiICIAAgBBCRASAAIAIQLyAALQAfQf8AcSAALQAeIAAtAB0gAC0AHCAALQAbIAAtABogAC0AGSAALQAYIAAtABcgAC0AFiAALQAVIAAtABQgAC0AEyAALQASIAAtABEgAC0AECAALQAPIAAtAA4gAC0ADSAALQAMIAAtAAsgAC0ACiAALQAJIAAtAAggAC0AByAALQAGIAAtAAUgAC0ABCAALQADIAAtAAIgAC0AASAALQAAQQFzcnJycnJycnJycnJycnJycnJycnJycnJycnJycnJyckEBa0GAAnENAEF/QQAgAUEgEBobIQULIARBwAJqJAAgBQsHAEGAgIAIC00BBH8jAEEQayILJABBfyEJIAtBBGoiCkEANgIIIApCADcCAEF/IAogACABIAIgAyAEIAUgBiAHIAgQvgEgChBcGyEMIAtBEGokACAMC9oEAQd/IwBBMGsiCCQAIAQEQCAEQeYAEBkLAkAgAy0AAEEkRw0AIAMtAAFBN0cNACADLQACQSRHDQAgAy0AAxA5IgtFDQAgCEEMaiADQQRqEFoiBUUNACAIQQhqIAUQWiIFRQ0AIAUgA2sCfwJ/IAUQIEEBaiEGA0BBACAGRQ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ARAgAaIAlBwJYCQgAgBH1CD4NBkJcCKAIAEQIAGiAKIAY3AwggCSAKQQhqIgBCCEGQlwIoAgARAgAaIAogBDcDCCAJIABCCEGQlwIoAgARAgAaIAkgAUGUlwIoAgARAAAaIAlBgAIQCCACBEAgAkIQNwMACyAKQdACaiQAQQALzQEBA38jAEHQAmsiCSQAIAlBEGoiC0LAACAHIAgQTxogCUHQAGoiCiALQYyXAigCABEAABogC0HAABAIIAogBSAGQZCXAigCABECABogCSAGNwMIIAogCUEIaiIFQghBkJcCKAIAEQIAGiAAIAMgBCAHQgEgCBA8GiAKIAAgBEGQlwIoAgARAgAaIAkgBDcDCCAKIAVCCEGQlwIoAgARAgAaIAogAUGUlwIoAgARAAAaIApBgAIQCCACBEAgAkIQNwMACyAJQdACaiQAQQALLAECfyMAQUBqIgMkACAAIAMQHRogASADQsAAIAJBARB4IQQgA0FAayQAIAQLLgECfyMAQUBqIgQkACAAIAQQHRogASACIARCwAAgA0EBEHkhBSAEQUBrJAAgBQsJACAAEDIaQQALBQBBv38LuwECAn8DfiMAQcABayICJAAgAkEgEBkgASACQiAQQhogASABLQAAQfgBcToAACABIAEtAB9BP3FBwAByOgAfIAJBIGoiAyABED8gACADEC8gASACKQMYNwAYIAEgAikDEDcAECABIAIpAwg3AAggASACKQMANwAAIAApAAghBCAAKQAQIQUgACkAACEGIAEgACkAGDcAOCABIAU3ADAgASAENwAoIAEgBjcAICACQSAQCCACQcABaiQAQQALtgECAX8DfiMAQaABayIDJAAgASACQiAQQhogASABLQAAQfgBcToAACABIAEtAB9BP3FBwAByOgAfIAMgARA/IAAgAxAvIAIpAAghBCACKQAQIQUgAikAACEGIAEgAikAGDcAGCABIAU3ABAgASAENwAIIAEgBjcAACAAKQAIIQQgACkAECEFIAApAAAhBiABIAApABg3ADggASAFNwAwIAEgBDcAKCABIAY3ACAgA0GgAWokAEEACwQAQQwLPgECfyMAQSBrIgQkACAEIAIgA0EAECwaIAAgASACQRBqIARBoJcCKAIAEQ8A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cL8AMCAn8CfiMAQcABayIDJAAgA0IANwOQASADQgA3A5gBIANCADcDaCADQgA3A3AgA0IANwN4IANBuIwCKQMANwOoASADQcCMAikDADcDsAEgA0HIjAIpAwA3A7gBIANCADcDgAEgA0IANwOIASADQgA3A2AgA0GwjAIpAwA3A6ABIAMgAikAEDcDUCADIAIpABg3A1ggAyACKQAANwNAIAMgAikACDcDSCADQYABaiICIANBQGsiBBCEASACECggAyADKQOYATcDGCADIAMpA5ABNwMQIAMgAykDiAE3AwggAyADKQOAATcDACADQgA3A3ggA0IANwNwIANCADcDaCADQgA3A2AgAyABKQAQNwNQIAMgASkAGDcDWCABKQAIIQUgASkAACEGIANCADcDOCADQgA3AzAgA0IANwMoIAMgBjcDQCADIAU3A0ggA0IANwMgIAQgAxDvASADIAMpA3g3A7gBIAMgAykDcDcDsAEgAyADKQNoNwOoASADIAMpA2A3A6ABIAMgAykDWDcDmAEgAyADKQNQNwOQASADIAMpA0g3A4gBIAMgAykDQDcDgAEgAhAoIAAgAykDmAE3ABggACADKQOQATcAECAAIAMpA4gBNwAIIAAgAykDgAE3AAAgAkHAABAIIANBwAFqJAALlwEBAX8jAEFAaiICJAAgAiABKQA4NwM4IAIgASkAMDcDMCACIAEpACg3AyggAiABKQAgNwMgIAIgASkAGDcDGCACIAEpABA3AxAgAiABKQAANwMAIAIgASkACDcDCCACECggACACKQMYNwAYIAAgAikDEDcAECAAIAIpAwg3AAggACACKQMANwAAIAJBwAAQCCACQUBrJAALxwICAX8CfiMAQcABayIDJAAgA0IANwNgIANCADcDaCADQgA3A3AgA0IANwN4IAMgASkAEDcDUCADIAEpABg3A1ggASkACCEEIAEpAAAhBSADQgA3AyggA0IANwMwIANCADcDOCADIAU3A0AgAyAENwNIIANCADcDICADIAIpABA3AxAgAyACKQAYNwMYIAMgAikAADcDACADIAIpAAg3AwggA0FAayADEO8BIAMgAykDeDcDuAEgAyADKQNwNwOwASADIAMpA2g3A6gBIAMgAykDYDcDoAEgAyADKQNYNwOYASADIAMpA1A3A5ABIAMgAykDSDcDiAEgAyADKQNANwOAASADQYABaiIBECggACADKQOYATcAGCAAIAMpA5ABNwAQIAAgAykDiAE3AAggACADKQOAATcAACABQcAAEAggA0HAAWokAAvlAQEBfyMAQYABayICJAAgAkIANwNQIAJCADcDWCACQgA3AyggAkIANwMwIAJCADcDOCACQbiMAikDADcDaCACQcCMAikDADcDcCACQciMAikDADcDeCACQgA3A0AgAkIANwNIIAJBAToAQCACQgA3AyAgAkGwjAIpAwA3A2AgAiABKQAYNwMYIAIgASkAEDcDECACIAEpAAg3AwggAiABKQAANwMAIAJBQGsiASACEIQBIAEQKCAAIAIpA1g3ABggACACKQNQNwAQIAAgAikDSDcACCAAIAIpA0A3AAAgAkGAAWokAAveAQEBfyMAQYABayICJAAgAkIANwNQIAJCADcDWCACQgA3AyggAkIANwMwIAJCADcDOCACQbiMAikDADcDaCACQcCMAikDADcDcCACQciMAikDADcDeCACQgA3A0AgAkIANwNIIAJCADcDICACQbCMAikDADcDYCACIAEpABA3AxAgAiABKQAYNwMYIAIgASkAADcDACACIAEpAAg3AwggAkFAayIBIAIQhAEgARAoIAAgAikDWDcAGCAAIAIpA1A3ABAgACACKQNINwAIIAAgAikDQDcAACACQYABaiQAC88LAQt/IwBB4AVrIgIkACACQcAFaiIHIAEgARAHIAJB4AFqIgYgASAHEAcgAkGgBWoiBCABIAYQByACQYAFaiIFIAQgBBAHIAJBoANqIgkgByAFEAcgAkHAAmoiByABIAkQByACQeAEaiIDIAUgBRAHIAJBoAJqIgUgByAHEAcgAkHABGoiCCAJIAUQByACQcADaiIMIAMgBRAHIAJBoARqIgogCCAIEAcgAkGAA2oiCCADIAoQByACQeACaiILIAYgCBAHIAJBwAFqIgYgAyALEAcgAkGgAWoiAyAEIAYQByACQeAAaiAEIAMQByACQYAEaiIGIAogCxAHIAJB4ANqIgMgBCAGEAcgAkGAAmoiBiAMIAMQByACQYABaiAFIAYQByACQUBrIgUgCCADEAcgAkEgaiIDIAQgBRAHIAIgCSADEAcgACAHIAIQB0EAIQQDQCAAIAAgABAHIARBAWoiBEH+AEcNAAsgACAAIAJB4AJqEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBwAVqEAcgACAAIAIQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQaABahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQYACahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkFAaxAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQeAAahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQcACahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkGABGoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQcABahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQeADahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAIQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBgAFqEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQSBqEAcgAkHgBWokAEEAIAFBIBAaawsoAANAIABBIBAZIAAgAC0AH0EfcToAHyAAEI0BRQ0AIABBIBAaDQALCw0AIAAgASACQQIQ5QELowICBH8BfiMAQUBqIgQkAAJAIAAQICIGQYABSSABQv////8PWHFFBEBBwKUCQRw2AgBBfyEADAELIARBADYCPCAEQgA3AjQgBEIANwIsAkACf0EAIAZFDQAaIAatIginIgUgBkEBckGAgARJDQAaQX8gBSAIQiCIpxsLIgcQHiIFRQ0AIAVBBGstAABBA3FFDQAgBUEAIAcQDBoLIAVFBEBBfyEADAELIARCADcCJCAEIAU2AgwgBCAFNgIUIAQgBjYCGCAEIAU2AgQgBCAGNgIQIARCADcCHCAEIAY2AggCfyAEQQRqIAAgAxDtAQRAQcClAkEcNgIAQX8MAQsgBCgCLCABp0cgBCgCMCACQQp2R3ILIQAgBRATCyAEQUBrJAAgAAsNACAAIAEgAkEBEOUBC0YAAkACQCACQoCAgIAQWgRAQcClAkEWNgIADAELIAAgASACp0EBEOsBIgFFDQEgAUFdRw0AQcClAkEcNgIAC0F/IQELIAELiwEBAn8jAEEQayIFJAAgAEEAQYABEAwhAAJ/IARBgYCAgHhJIAIgA4RC/////w9YcUUEQEHApQJBFjYCAEF/DAELIARB/z9LIANCA1pxRQRAQcClAkEcNgIAQX8MAQsgBUEQEBlBf0EAIAOnIARBCnYgASACpyAFIABBARDsAR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Cq/DT9K/uvLc8NwMQIAFCu86qptjQ67O7fzcDCCABIAitQoiS95X/zPmE6gCFNwMAQQALIQQCQCADUA0AIAFB4AFqIQkgAUHgAGohBQNAIAQgBWohB0GAAiAEayIGrSILIANaBEAgByACIAOnIgIQCxogASABKALgAiACajYC4AIMAgsgByACIAYQCxogASABKALgAiAGajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRBWIAUgCUGAARALGiABIAEoAuACQYABayIENgLgAiACIAZqIQIgAyALfSIDQgBSDQALCyABIAAgCBCIARogCiQAQQAMAQsQDgALIQgLIAgLhwEBBH9BASEBA0AgACADaiICIAEgAi0AAGoiAToAACAAIANBAXJqIgIgAi0AACABQQh2aiIBOgAAIAAgA0ECcmoiAiACLQAAIAFBCHZqIgE6AAAgACADQQNyaiICIAItAAAgAUEIdmoiAToAACABQQh2IQEgA0EEaiEDIARBBGoiBEEERw0ACwuGBwEXfyMAQfABayIEJAAgBEHAAWoiCSACakEAQRAgAmsiBkEAIAJBD00bEAwhGiAJIAEgAhALGiADKAAQIQUgA0FAayIBKAAAIQggAygAUCEKIAMoACAhCyADKAAwIQwgAygAFCENIAMoAEQhDiADKABUIQ8gAygAJCEQIAMoADQhESADKAAYIRIgAygASCETIAMoAFghFCADKAAoIRUgAygAOCEWIAQoAsABIRcgBCgCxAEhGCAEKALIASEZIAQgAygALCADKAA8cSADKAAcIAMoAEwgAygAXCAEKALMAXNzc3M2AswBIAQgFSAWcSASIBMgFCAZc3NzczYCyAEgBCAQIBFxIA0gDiAPIBhzc3NzNgLEASAEIAsgDHEgBSAIIAogF3Nzc3M2AsABIBpBACAGEAwaIAAgCSACEAsaIAQoAsABIQAgBCgCxAEhAiAEKALIASEGIAQoAswBIQcgBCADKQJYNwPoASAEIAMpAlA3A+ABIAQgAykCSDcDuAEgBCABKQIANwOwASAEIAMpAlg3A6gBIAQgAykCUDcDoAEgBEHQAWoiBSAEQbABaiAEQaABahAJIAMgBCkC2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gAigAVCEPIAIoACQhECACKAA0IREgASgACCEHIAIoABghEiACKABIIRMgAigAWCEUIAIoACghFSACKAA4IRYgASgAACEIIAAgASgADCIBIAIoACwgAigAPHEgAigAHCACKABcIAIoAExzc3NzNgAMIAAgByAVIBZxIBIgEyAUc3NzczYACCAAIAYgECARcSANIA4gD3Nzc3M2AAQgACAIIAsgDHEgBSAJIApzc3NzNgAAIAMgAikCWDcD2AEgAyACKQJQNwPQASADIAIpAkg3A7gBIAMgBCkCADcDsAEgAyACKQJYNwOoASADIAIpAlA3A6ABIANBwAFqIgAgA0GwAWogA0GgAWoQCSACIAMpAsgBNwJYIAIgAykCwAE3AlAgAyACKQI4NwOYASADIAIpAjA3A5ABIAMgAikCSDcDiAEgAyAEKQIANwOAASAAIANBkAFqIANBgAFqEAkgAiADKQLIATcCSCAEIAMpAsABNwIAIAMgAikCKDcDeCADIAIpAiA3A3AgAyACKQI4NwNoIAMgAikCMDcDYCAAIANB8ABqIANB4ABqEAkgAiADKQLIATcCOCACIAMpAsABNwIwIAMgAikCGDcDWCADIAIpAhA3A1AgAyACKQIoNwNIIAMgAikCIDcDQCAAIANB0ABqIANBQGsQCSACIAMpAsgBNwIoIAIgAykCwAE3AiAgAyACKQIINwM4IAMgAikCADcDMCADIAIpAhg3AyggAyACKQIQNwMgIAAgA0EwaiADQSBqEAkgAiADKQLIATcCGCACIAMpAsABNwIQIAMgAykD2AE3AxggAyADKQPQATcDECADIAIpAgg3AwggAyACKQIANwMAIAAgA0EQaiADEAkgAygCwAEhACADKALEASEEIAMoAsgBIQUgAiABIAMoAswBczYCDCACIAUgB3M2AgggAiAEIAZzNgIEIAIgACAIczYCACADQeABaiQAC/MUARl/IwBBoAZrIgMkACABKAAEIQsgASgACCEMIAEoAAwhDSABKAAQIQ4gASgAFCEEIAEoABghDyABKAAcIRAgACgABCERIAAoAAghEiAAKAAMIRMgACgAECEUIAAoABQhFSAAKAAYIRYgACgAHCEXIAEoAAAhBSACQUBrIgEgACgAACIYQ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IBFzNgIEIAIgCCAYczYCACADIAUpAgg3A5gGIAMgBSkCADcDkAYgAyABKQIINwO4BCADIAEpAgA3A7AEIAMgBSkCCDcDqAQgAyAFKQIANwOgBCAHIANBsARqIANBoARqEAkgBSADKQKIBjcCCCAFIAMpAoAGNwIAIAMgACkCCDcDmAQgAyAAKQIANwOQBCADIAEpAgg3A4gEIAMgASkCADcDgAQgByADQZAEaiADQYAEahAJIAEgAykCiAY3AgggASADKQKABjcCACADIAYpAgg3A/gDIAMgBikCADcD8AMgAyAAKQIINwPoAyADIAApAgA3A+ADIAcgA0HwA2ogA0HgA2oQCSAAIAMpAogGNwIIIAAgAykCgAY3AgAgAyAEKQIINwPYAyADIAQpAgA3A9ADIAMgBikCCDcDyAMgAyAGKQIANwPAAyAHIANB0ANqIANBwANqEAkgBiADKQKIBjcCCCAGIAMpAoAGNwIAIAMgAikCCDcDuAMgAyACKQIANwOwAyADIAQpAgg3A6gDIAMgBCkCADcDoAMgByADQbADaiADQaADahAJIAQgAykCiAY3AgggBCADKQKABjcCACADIAMpA5gGNwOYAyADIAMpA5AGNwOQAyADIAIpAgg3A4gDIAMgAikCADcDgAMgByADQZADaiADQYADahAJIAMoAoAGIQggAygChAYhCSADKAKIBiEKIAIgAygCjAYgF3M2AgwgAiAKIBZzNgIIIAIgCSAVczYCBCACIAggFHM2AgAgAyAFKQIINwOYBiADIAUpAgA3A5AGIAMgASkCCDcD+AIgAyABKQIANwPwAiADIAUpAgg3A+gCIAMgBSkCADcD4AIgByADQfACaiADQeACahAJIAUgAykCiAY3AgggBSADKQKABjcCACADIAApAgg3A9gCIAMgACkCADcD0AIgAyABKQIINwPIAiADIAEpAgA3A8ACIAcgA0HQAmogA0HAAmoQCSABIAMpAogGNwIIIAEgAykCgAY3AgAgAyAGKQIINwO4AiADIAYpAgA3A7ACIAMgACkCCDcDqAIgAyAAKQIANwOgAiAHIANBsAJqIANBoAJqEAkgACADKQKIBjcCCCAAIAMpAoAGNwIAIAMgBCkCCDcDmAIgAyAEKQIANwOQAiADIAYpAgg3A4gCIAMgBikCADcDgAIgByADQZACaiADQYACahAJIAYgAykCiAY3AgggBiADKQKABjcCACADIAIpAgg3A/gBIAMgAikCADcD8AEgAyAEKQIINwPoASADIAQpAgA3A+ABIAcgA0HwAWogA0HgAWoQCSAEIAMpAogGNwIIIAQgAykCgAY3AgAgAyADKQOYBjcD2AEgAyADKQOQBjcD0AEgAyACKQIINwPIASADIAIpAgA3A8ABIAcgA0HQAWogA0HAAWoQCSADKAKABiEIIAMoAoQGIQkgAygCiAYhCiACIAMoAowGIA1zNgIMIAIgCiAMczYCCCACIAkgG3M2AgQgAiAIIBlzNgIAIAMgBSkCCDcDmAYgAyAFKQIANwOQBiADIAEpAgg3A7gBIAMgASkCADcDsAEgAyAFKQIINwOoASADIAUpAgA3A6ABIAcgA0GwAWogA0GgAWoQCSAFIAMpAogGNwIIIAUgAykCgAY3AgAgAyAAKQIINwOYASADIAApAgA3A5ABIAMgASkCCDcDiAEgAyABKQIANwOAASAHIANBkAFqIANBgAFqEAkgASADKQKIBjcCCCABIAMpAoAGNwIAIAMgBikCCDcDeCADIAYpAgA3A3AgAyAAKQIINwNoIAMgACkCADcDYCAHIANB8ABqIANB4ABqEAkgACADKQKIBjcCCCAAIAMpAoAGNwIAIAMgBCkCCDcDWCADIAQpAgA3A1AgAyAGKQIINwNIIAMgBikCADcDQCAHIANB0ABqIANBQGsQCSAGIAMpAogGNwIIIAYgAykCgAY3AgAgAyACKQIINwM4IAMgAikCADcDMCADIAQpAgg3AyggAyAEKQIANwMgIAcgA0EwaiADQSBqEAkgBCADKQKIBjcCCCAEIAMpAoAGNwIAIAMgAykDmAY3AxggAyADKQOQBjcDECADIAIpAgg3AwggAyACKQIANwMAIAcgA0EQaiADEAkgAygCgAYhCCADKAKEBiEJIAMoAogGIQogAiADKAKMBiAQczYCDCACIAogD3M2AgggAiAJIBpzNgIEIAIgCCAOczYCACALQQFqIgtBBEcNAAsgA0GgBmokAAsIACAAQR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BCAAKQIANwOAASAFIARBkAFqIARBgAFqEAkgAyAEKQKoAjcCSCAAIAQpAqACNwIAIAQgAykCKDcDeCAEIAMpAiA3A3AgBCADKQI4NwNoIAQgAykCMDcDYCAFIARB8ABqIARB4ABqEAkgAyAEKQKoAjcCOCADIAQpAqACNwIwIAQgAykCGDcDWCAEIAMpAhA3A1AgBCADKQIoNwNIIAQgAykCIDcDQCAFIARB0ABqIARBQGsQCSADIAQpAqgCNwIoIAMgBCkCoAI3AiAgBCADKQIINwM4IAQgAykCADcDMCAEIAMpAhg3AyggBCADKQIQNwMgIAUgBEEwaiAEQSBqEAkgAyAEKQKoAjcCGCADIAQpAqACNwIQIAQgBCkDuAI3AxggBCAEKQOwAjcDECAEIAMpAgg3AwggBCADKQIANwMAIAUgBEEQaiAEEAkgAyAEKQKoAjcCCCADIAQpAqACNwIAIAMgCyADKAAMczYCDCADIAogAygACHM2AgggAyAJIAMoAARzNgIEIAMgCCADKAAAczYCACAAIAcgACgAAHM2AgAgAyAGIAMoAERzNgJEIAMgAiADKABIczYCSCADIAEgAygATHM2AkwgBEHAAmokAAuRCQEefyMAQaACayIDJAAgAigAECEOIAIoADAhDyACKAAUIRAgASgABCERIAIoADQhEiACKAAYIRMgASgACCEUIAIoADghFSACKAAcIQggASgADCEWIAIoADwhFyACKAAgIQUgAigAUCEJIAEoABAhGCACKABwIRkgAigAYCEEIAIoACQhBiACKABUIQogASgAFCEaIAIoAHQhGyACKABkIQwgAigAKCEHIAIoAFghCyABKAAYIRwgAigAeCEdIAIoAGghDSABKAAAIR4gACACKAAsIh8gAigAbCIgIAIoAHxxIAIoAFwgASgAHHNzcyIBNgAcIAAgByANIB1xIAsgHHNzcyILNgAYIAAgBiAMIBtxIAogGnNzcyIKNgAUIAAgBSAEIBlxIAkgGHNzcyIJNgAQIAAgICAXIB9xIAggFnNzcyIINgAMIAAgDSAHIBVxIBMgFHNzcyIHNgAIIAAgDCAGIBJxIBAgEXNzcyIGNgAEIAAgBCAFIA9xIA4gHnNzcyIFNgAAIAMgAikCeDcDmAIgAyACKQJwNwOQAiADIAIpAmg3A/gBIAMgAikCYDcD8AEgAyACKQJ4NwPoASADIAIpAnA3A+ABIANBgAJqIgQgA0HwAWogA0HgAWoQCSACIAMpAogCNwJ4IAIgAykCgAI3AnAgAyACKQJYNwPYASADIAIpAlA3A9ABIAMgAikCaDcDyAEgAyACKQJgNwPAASAEIANB0AFqIANBwAFqEAkgAiADKQKIAjcCaCACIAMpAoACNwJgIAMgAikCSDcDuAEgAyACQUBrIgApAgA3A7ABIAMgAikCWDcDqAEgAyACKQJQNwOgASAEIANBsAFqIANBoAFqEAkgAiADKQKIAjcCWCACIAMpAoACNwJQIAMgAikCODcDmAEgAyACKQIwNwOQASADIAIpAkg3A4gBIAMgACkCADcDgAEgBCADQZABaiADQYABahAJIAIgAykCiAI3AkggACADKQKAAjcCACADIAIpAig3A3ggAyACKQIgNwNwIAMgAikCODcDaCADIAIpAjA3A2AgBCADQfAAaiADQeAAahAJIAIgAykCiAI3AjggAiADKQKAAjcCMCADIAIpAhg3A1ggAyACKQIQNwNQIAMgAikCKDcDSCADIAIpAiA3A0AgBCADQdAAaiADQUBrEAkgAiADKQKIAjcCKCACIAMpAoACNwIgIAMgAikCCDcDOCADIAIpAgA3AzAgAyACKQIYNwMoIAMgAikCEDcDICAEIANBMGogA0EgahAJIAIgAykCiAI3AhggAiADKQKAAjcCECADIAMpA5gCNwMYIAMgAykDkAI3AxAgAyACKQIINwMIIAMgAikCADcDACAEIANBEGogAxAJIAIgAykCiAI3AgggAiADKQKAAjcCACACIAIoAAwgCHM2AgwgAiACKAAIIAdzNgIIIAIgAigABCAGczYCBCACIAIoAAAgBXM2AgAgACAAKAAAIAlzNgIAIAIgAigARCAKczYCRCACIAIoAEggC3M2AkggAiACKABMIAFzNgJMIANBoAJqJAAL0gsBFX8jAEGgAmsiBSQAIAQoACwgA0EddnMhDCAEKAAoIANBA3RzIQ0gBCgAJCACQR12cyEOIARBIGoiAygAAC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M2ABwgACANIA4gHSAPIB5xc3NzNgAYIAAgCiALIBsgDCAccXNzczYAFCAAIAQgCCAZIAkgGnFzc3M2ABAgACAgIAcgFyAYIB9xc3NzNgAMIAAgDyAGIBUgDSAWcXNzczYACCAAIAwgBSATIAogFHFzc3M2AAQgACAJIBAgESAEIBJxc3NzNgAAIAMgAikCeDcDmAIgAyACKQJwNwOQAiADIAIpAmg3A/gBIAMgAikCYDcD8AEgAyACKQJ4NwPoASADIAIpAnA3A+ABIANBgAJqIgQgA0HwAWogA0HgAWoQCSACIAMpAogCNwJ4IAIgAykCgAI3AnAgAyACKQJYNwPYASADIAIpAlA3A9ABIAMgAikCaDcDyAEgAyACKQJgNwPAASAEIANB0AFqIANBwAFqEAkgAiADKQKIAjcCaCACIAMpAoACNwJgIAMgAikCSDcDuAEgAyACQUBrIgApAgA3A7ABIAMgAikCWDcDqAEgAyACKQJQNwOgASAEIANBsAFqIANBoAFqEAkgAiADKQKIAjcCWCACIAMpAoACNwJQIAMgAikCODcDmAEgAyACKQIwNwOQASADIAIpAkg3A4gBIAMgACkCADcDgAEgBCADQZABaiADQYABahAJIAIgAykCiAI3AkggACADKQKAAjcCACADIAIpAig3A3ggAyACKQIgNwNwIAMgAikCODcDaCADIAIpAjA3A2AgBCADQfAAaiADQeAAahAJIAIgAykCiAI3AjggAiADKQKAAjcCMCADIAIpAhg3A1ggAyACKQIQNwNQIAMgAikCKDcDSCADIAIpAiA3A0AgBCADQdAAaiADQUBrEAkgAiADKQKIAjcCKCACIAMpAoACNwIgIAMgAikCCDcDOCADIAIpAgA3AzAgAyACKQIYNwMoIAMgAikCEDcDICAEIANBMGogA0EgahAJIAIgAykCiAI3AhggAiADKQKAAjcCECADIAMpA5gCNwMYIAMgAykDkAI3AxAgAyACKQIINwMIIAMgAikCADcDACAEIANBEGogAxAJIAIgAykCiAI3AgggAiADKQKAAjcCACACIAcgAigADHM2AgwgAiAGIAIoAAhzNgIIIAIgBSACKAAEczYCBCACIBAgAigAAHM2AgAgACAIIAAoAABzNgIAIAIgCyACKABEczYCRCACIA4gAigASHM2AkggAiABIAIoAExzNgJMIANBoAJqJAALvQkBEX8jAEGgAmsiAyQAIAEoAAQhECABKAAIIREgASgADCESIAAoAAQhCyAAKAAIIQwgACgADCENIAEoAAAhEyACQfAAaiIBIAAoAAAiDkGAgoQQcyIANgIAIAJB4ABqIgYgDkHb++CoBXM2AgAgAkHQAGoiByAANgIAIAJBQGsiACAOIBNzIgU2AgAgAkKgosSRtK6tlF03AjggAkEwaiIIQtv74KjVzfCXcTcCACACQpXE3MmFsvq84gA3AiggAkEgaiIJQoCChJCwoIGEDTcCACACQqCixJG0rq2UXTcCGCACQRBqIgpC2/vgqNXN8JdxNwIAIAIgBTYCACACIA1BkNPnkwZzIgU2AnwgAiAMQZXE3MkFcyIENgJ4IAIgC0GDiqDoAHMiDzYCdCACIA1B8+qi6X1zNgJsIAIgDEGgosSRBHM2AmggAiALQe2Ev4l/czYCZCACIAU2AlwgAiAENgJYIAIgDzYCVCACIA0gEnMiBTYCTCACIAwgEXMiBDYCSCACIAsgEHMiDzYCRCACIAU2AgwgAiAENgIIIAIgDzYCBEEAIQUDQCADIAEpAgg3A5gCIAMgASkCADcDkAIgAyAGKQIINwP4ASADIAYpAgA3A/ABIAMgASkCCDcD6AEgAyABKQIANwPgASADQYACaiIEIANB8AFqIANB4AFqEAkgASADKQKIAjcCCCABIAMpAoACNwIAIAMgBykCCDcD2AEgAyAHKQIANwPQASADIAYpAgg3A8gBIAMgBikCADcDwAEgBCADQdABaiADQcABahAJIAYgAykCiAI3AgggBiADKQKAAjcCACADIAApAgg3A7gBIAMgACkCADcDsAEgAyAHKQIINwOoASADIAcpAgA3A6ABIAQgA0GwAWogA0GgAWoQCSAHIAMpAogCNwIIIAcgAykCgAI3AgAgAyAIKQIINwOYASADIAgpAgA3A5ABIAMgACkCCDcDiAEgAyAAKQIANwOAASAEIANBkAFqIANBgAFqEAkgACADKQKIAjcCCCAAIAMpAoACNwIAIAMgCSkCCDcDeCADIAkpAgA3A3AgAyAIKQIINwNoIAMgCCkCADcDYCAEIANB8ABqIANB4ABqEAkgCCADKQKIAjcCCCAIIAMpAoACNwIAIAMgCikCCDcDWCADIAopAgA3A1AgAyAJKQIINwNIIAMgCSkCADcDQCAEIANB0ABqIANBQGsQCSAJIAMpAogCNwIIIAkgAykCgAI3AgAgAyACKQIINwM4IAMgAikCADcDMCADIAopAgg3AyggAyAKKQIANwMgIAQgA0EwaiADQSBqEAkgCiADKQKIAjcCCCAKIAMpAoACNwIAIAMgAykDmAI3AxggAyADKQOQAjcDECADIAIpAgg3AwggAyACKQIANwMAIAQgA0EQaiADEAkgAiADKQKIAjcCCCACIAMpAoACNwIAIAIgAigADCASczYCDCACIAIoAAggEXM2AgggAiACKAAEIBBzNgIEIAIgAigAACATczYCACAAIAAoAAAgDnM2AgAgAiACKABEIAtzNgJEIAIgAigASCAMczYCSCACIAIoAEwgDXM2AkwgBUEBaiIFQQpHDQALIANBoAJqJAALhgYBFH8jAEGwAmsiAiQAIAAgAS0AADoAACAAIAEtAAE6AAEgACABLQACOgACIAAgAS0AAzoAAyAAIAEtAAQ6AAQgACABLQAFOgAFIAAgAS0ABjoABiAAIAEtAAc6AAcgACABLQAIOgAIIAAgAS0ACToACSAAIAEtAAo6AAogACABLQALOgALIAAgAS0ADDoADCAAIAEtAA06AA0gACABLQAOOgAOIAAgAS0ADzoADyAAIAEtABA6ABAgACABLQAROgARIAAgAS0AEjoAEiAAIAEtABM6ABMgACABLQAUOgAUIAAgAS0AFToAFSAAIAEtABY6ABYgACABLQAXOgAXIAAgAS0AGDoAGCAAIAEtABk6ABkgACABLQAaOgAaIAAgAS0AGzoAGyAAIAEtABw6ABwgACABLQAdOgAdIAAgAS0AHjoAHiABLQAfIQEgACAALQAAQfgBcToAACAAIAFBP3FBwAByOgAfIAJBMGogABA/IAIoAoQBIQEgAigCXCEDIAIoAogBIQQgAigCYCEFIAIoAowBIQYgAigCZCEHIAIoApABIQggAigCa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ADIAMpA6gCNwOYASADQgA3AnQgA0IANwJ8IANBADYChAEgA0IANwJkIANBATYCYCADQgA3AmxB/gEhAkEAIQQDQCADKAKUAiEJIAMoArQBIQYgAygCYCEHIAMoAsABIQogAygCkAEhCyADKALwASENIAMoAmQhCCADKALEASEMIAMoApQBIQUgAygC9AEhECADKAJoIQ4gAygCyAEhESADKAKYASESIAMoAvgBIRMgAygCbCEPIAMoAswBIRQgAygCnAEhFSADKAL8ASEXIAMoAnAhGCADKALQASEcIAMoAqABIR0gAygCgAIhHiADKAJ0IRkgAygC1AEhHyADKAKkASEgIAMoAoQCISEgAygCeCEaIAMoAtgBISIgAygCqAEhIyADKAKIAiEkIAMoAnwhGyADKALcASElIAMoAqwBISYgAygCjAIhJyADKAKAASEWIAMoAuABISggAygCsAEhKSADKAKQAiEsIANBACAEIANB0AJqIi0gAiIBQQN2ai0AACACQQdxdkEBcSIEc2siAiADKAKEASIqIAMoAuQBIitzcSIuICpzIio2AoQBIAMgBiAGIAlzIAJxIi9zIjAgKms2AlQgAyAWIBYgKHMgAnEiMXMiBjYCgAEgAyApICkgLHMgAnEiFnMiKSAGazYCUCADIBsgGyAlcyACcSIycyIbNgJ8IAMgJiAmICdzIAJxIjNzIiYgG2s2AkwgAyAaIBogInMgAnEiNHMiGjYCeCADICMgIyAkcyACcSI1cyIjIBprNgJIIAMgGSAZIB9zIAJxIjZzIhk2AnQgAyAgICAgIXMgAnEiN3MiICAZazYCRCADIBggGCAccyACcSI4cyIYNgJwIAMgHSAdIB5zIAJxIjlzIh0gGGs2AkAgAyAPIA8gFHMgAnEiOnMiDzYCbCADIBUgFSAXcyACcSI7cyIVIA9rNgI8IAMgDiAOIBFzIAJxIjxzIg42AmggAyASIBIgE3MgAnEiPXMiEiAOazYCOCADIAggCCAMcyACcSI+cyIINgJkIAMgBSAFIBBzIAJxIj9zIgUgCGs2AjQgAyAHIAcgCnMgAnEiQHMiBzYCYCADIAsgCyANcyACcSICcyILIAdrNgIwIAMgCSAvcyIJICsgLnMiK2s2AiQgAyAWICxzIhYgKCAxcyIoazYCICADICcgM3MiJyAlIDJzIiVrNgIcIAMgJCA1cyIkICIgNHMiIms2AhggAyAhIDdzIiEgHyA2cyIfazYCFCADIB4gOXMiHiAcIDhzIhxrNgIQIAMgFyA7cyIXIBQgOnMiFGs2AgwgAyATID1zIhMgESA8cyIRazYCCCADIBAgP3MiECAMID5zIgxrNgIEIAMgAiANcyICIAogQHMiCms2AgAgAyAJICtqNgKUAiADIBYgKGo2ApACIAMgJSAnajYCjAIgAyAiICRqNgKIAiADIB8gIWo2AoQCIAMgHCAeajYCgAIgAyARIBNqNgL4ASADIAwgEGo2AvQBIAMgAiAKajYC8AEgAyAUIBdqNgL8ASADICogMGo2AuQBIAMgBiApajYC4AEgAyAbICZqNgLcASADIBogI2o2AtgBIAMgGSAgajYC1AEgAyAYIB1qNgLQASADIA8gFWo2AswBIAMgDiASajYCyAEgAyAFIAhqNgLEASADIAcgC2o2AsABIANB4ABqIhsgA0EwaiIaIANB8AFqIhkQBiADQcABaiIWIBYgAxAGIBogAxAFIAMgGRAFIAMoAsABIQIgAygCYCEJIAMoAsQBIQYgAygCZCEHIAMoAsgBIQogAygCaCELIAMoAswBIQ0gAygCbCEIIAMoAtABIQwgAygCcCEFIAMoAtQBIRAgAygCdCEOIAMoAtgBIREgAygCeCESIAMoAtwBIRMgAygCfCEPIAMoAuABIRQgAygCgAEhFSADIAMoAuQBIhcgAygChAEiGGo2ArQBIAMgFCAVajYCsAEgAyAPIBNqNgKsASADIBEgEmo2AqgBIAMgDiAQajYCpAEgAyAFIAxqNgKgASADIAggDWo2ApwBIAMgCiALajYCmAEgAyAGIAdqNgKUASADIAIgCWo2ApABIAMgGCAXazYC5AEgAyAVIBRrNgLgASADIA8gE2s2AtwBIAMgEiARazYC2AEgAyAOIBBrNgLUASADIAUgDGs2AtABIAMgCCANazYCzAEgAyALIAprNgLIASADIAcgBms2AsQBIAMgCSACazYCwAEgGSADIBoQBiADKAI0IQ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kAEhECADKALwASECIAMoApQBIQ4gAygC9AEhBiADKAKYASERIAMoAvgBIQcgAygCnAEhEiADKAL8ASEKIAMoAqABIRMgAygCgAIhCyADKAKkASEPIAMoAoQCIQ0gAygCqAEhFCADKAKIAiEIIAMoAqwBIRUgAygCjAIhDCADKAKwASEXIAMoApACIQUgA0EAIARrIgEgAygClAIiBCADKAK0AXNxIARzNgKUAiADIAUgBSAXcyABcXM2ApACIAMgDCAMIBVzIAFxczYCjAIgAyAIIAggFHMgAXFzNgKIAiADIA0gDSAPcyABcXM2AoQCIAMgCyALIBNzIAFxczYCgAIgAyAKIAogEnMgAXFzNgL8ASADIAcgByARcyABcXM2AvgBIAMgBiAGIA5zIAFxczYC9AEgAyACIAIgEHMgAXFzNgLwASADKALAASECIAMoAmAhBSADKALEASEEIAMoAmQhECADKALIASEGIAMoAmghDiADKALMASEHIAMoAmwhESADKALQASEKIAMoAnAhEiADKALUASELIAMoAnQhEyADKALYASENIAMoAnghDyADKALcASEIIAMoAnwhFCADKALgASEMIAMoAoABIRUgAyADKALkASIXIAMoAoQBcyABcSAXczYC5AEgAyAMIAwgFXMgAXFzNgLgASADIAggCCAUcyABcXM2AtwBIAMgDSANIA9zIAFxczYC2AEgAyALIAsgE3MgAXFzNgLUASADIAogCiAScyABcXM2AtABIAMgByAHIBFzIAFxczYCzAEgAyAGIAYgDnMgAXFzNgLIASADIAQgBCAQcyABcXM2AsQBIAMgAiACIAVzIAFxczYCwAEgFiAWEDUgGSAZIBYQBiAAIBkQECAtQSAQCEEAIQkLIANB8AJqJAAgCQsKACAAIAEQcEEACwwAIAAgASACEHFBAAu0AQEBfyAAIAEoAABB////H3E2AgAgACABKAADQQJ2QYP+/x9xNgIEIAAgASgABkEEdkH/gf8fcTYCCCAAIAEoAAlBBnZB///AH3E2AgwgASgADCECIABCADcCFCAAQgA3AhwgAEEANgIkIAAgAkEIdkH//z9xNgIQIAAgASgAEDYCKCAAIAEoABQ2AiwgACABKAAYNgIwIAEoABwhASA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IIaEIgtC8P///w9UBEAgACAAIAunakEAIAIgCyAFIAwgCSAKEMkBGiABBEAgASALQhB8NwMAC0EADAELEA4ACwsnACAAIAEgAiADIAStIAWtQiCGhCAGIAetIAitQiCGhCAKIAsQyQELWQECfgJ/IAatIAetQiCGhCEMIAOtIAStQiCGhCILQvD///8PVARAIAAgACALp2pBACACIAsgBSAMIAkgChDKARogAQRAIAEgC0IQfDcDAAtBAAwBCxAOAAsLJwAgACABIAIgAyAErSAFrUIghoQgBiAHrSAIrUIghoQgCiALEMoBC1kBAn4gB60gCK1CIIaEIQtBfyEBAkAgA60gBK1CIIaEIgxC3////w9WDQAgC0Lf////D1YNACAAIAIgDKcgBUEgIAYgC6cgCSAKQbyfAigCABENACEBCyABC4ABAQN+IAetIAitQiCGhCEMQX8hAgJAIAStIAWtQiCGhCILQiBUDQAgC0IgfSINQt////8PVg0AIAxC3////w9WDQAgACADIA2nIAMgC6dqQSBrQSAgBiAMpyAJIApBvJ8CKAIAEQ0AIQILIAEEQCABQgAgC0IgfSACGzcDAAsgAgtgAQJ+IAStIAWtQiCGhCEMIAetIAitQiCGhCENIAIEQCACQiA3AwALIA1C4P///w9UIAxC3////w9YcUUEQBAOAAsgACABQSAgAyAMpyAGIA2nIAogC0G4nwIoAgARDQALdgECfgJ/IAatIAetQiCGhCELAkAgA60gBK1CIIaEIgxC3////w9WDQAgC0Lg////D1oNACAAIAAgDKciA2pBICACIAMgBSALpyAJIApBuJ8CKAIAEQ0AIQAgAQRAIAFCACAMQiB8IAAbNwMACyAADAELEA4ACwssAQN/IwBBEGsiACQAIABBADoAD0HAnwIgAEEPakEAEAAhAiAAQRBqJAAgAgtZAQJ+IAetIAitQiCGhCELQX8hAQJAIAOtIAStQiCGhCIMQt////8PVg0AIAtC3////w9WDQAgACACIAynIAVBICAGIAunIAkgCkG0nwIoAgARDQAhAQsgAQuAAQEDfiAHrSAIrUIghoQhDEF/IQICQCAErSAFrUIghoQiC0IgVA0AIAtCIH0iDULf////D1YNACAMQt////8PVg0AIAAgAyANpyADIAunakEga0EgIAYgDKcgCSAKQbSfAigCABENACECCyABBEAgAUIAIAtCIH0gAhs3AwALIAILYAECfiAErSAFrUIghoQhDCAHrSAIrUIghoQhDSACBEAgAkIgNwMACyANQuD///8PVCAMQt////8PWHFFBEAQDgALIAAgAUEgIAMgDKcgBiANpyAKIAtBsJ8CKAIAEQ0AC3YBAn4CfyAGrSAHrUIghoQhCwJAIAOtIAStQiCGhCIMQt////8PVg0AIAtC4P///w9aDQAgACAAIAynIgNqQSAgAiADIAUgC6cgCSAKQbCfAigCABENACEAIAEEQCABQgAgDEIgfCAAGzcDAAsgAAwBCxAOAAsLBQBB6AALBABBGgsFAEGxCwsFAEGjCgv3AQEFfyMAIgUhCSAFQYAEa0FAcSIFJAAgACABIAAbIgcEQEF/IQYgBUHgAGoiCCADIAQQdEUEQCABIAAgARshAUEAIQAgBUGAAWoiA0EAQQBBwAAQOxogAyAIQiAQGxogCEEgEAggAyAEQiAQGxogAyACQiAQGxogAyAFQSBqQcAAEDoaIANBgAMQCANAIAAgAWogBUEgaiIEIABqIgItAAA6AAAgACAHaiACLQAgOgAAIAEgAEEBciIDaiADIARqLQAAOgAAIAMgB2ogAi0AIToAACAAQQJqIgBBIEcNAAsgBEHAABAIQQAhBgsgCSQAIAYPCxAOAAv3AQEFfyMAIgUhCSAFQYAEa0FAcSIFJAAgACABIAAbIgcEQEF/IQYgBUHgAGoiCCADIAQQdEUEQCABIAAgARshAUEAIQAgBUGAAWoiA0EAQQBBwAAQOxogAyAIQiAQGxogCEEgEAggAyACQiAQGxogAyAEQiAQGxogAyAFQSBqQcAAEDoaIANBgAMQCANAIAAgB2ogBUEgaiIEIABqIgItAAA6AAAgACABaiACLQAgOgAAIAcgAEEBciIDaiADIARqLQAAOgAAIAEgA2ogAi0AIToAACAAQQJqIgBBIEcNAAsgBEHAABAIQQAhBgsgCSQAIAYPCxAOAAsFAEHBCAsgACABQSAgAkIgQQBBABDEARogACABQZyXAigC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ZkDM3AgAgBCADKAAANgIQIAQgAygABDYCFCAEIAMoAAg2AhggBCADKAAMNgIcIAQgAygAEDYCICAEIAMoABQ2AiQgBCADKAAYNgIoIAMoABwhAyAEQQA2AjAgBCADNgIsIAQgAigAADYCNCAEIAIoAAQ2AjggBCACKAAINgI8IAQgAEEAIAGnEAwiACAAIAEQYyAEQcAAEAgLIARBQGskAEEACwkAIAAgARDeAQsLACAAIAEgAhDdAQsLACAAIAEgAhDfAQsJACAAIAEQ4AELCQAgACABEOEBCwkAIAAgARDiAQsHACAAEOMBCyIBAX8jAEFAaiIBJAAgAUHAABAZIAAgARCLASABQUBrJAALCwAgACABEIsBQQALZQEDfyMAQaAGayIDJABBfyEEAkAgA0GABWoiBSABED4NACADQeADaiIBIAIQPg0AIAMgARAPIANBoAFqIgEgBSADEFcgA0HAAmoiAiABEFggACACEEtBACEECyADQaAGaiQAIAQLZQEDfyMAQaAGayIDJABBfyEEAkAgA0GABWoiBSABED4NACADQeADaiIBIAIQPg0AIAMgARAPIANBoAFqIgEgBSADEBIgA0HAAmoiAiABEFggACACEEtBACEECyADQaAGaiQAIAQLIQECfyMAQaABayIBJAAgASAAED4hAiABQaABaiQAIAJFC8YBAQF/IwBBQGoiBCQAIAFCAFIEQCAEQrLaiMvHrpmQ6wA3AgggBELl8MGL5o2ZkDM3AgAgBCADKAAANgIQIAQgAygABDYCFCAEIAMoAAg2AhggBCADKAAMNgIcIAQgAygAEDYCICAEIAMoABQ2AiQgBCADKAAYNgIoIAMoABwhAyAEQgA3AjAgBCADNgIsIAQgAigAADYCOCAEIAIoAAQ2AjwgBCAAQQAgAacQDCIAIAAgARBjIARBwAAQCAsgBEFAayQAQQALIQEBfyMAQSBrIgEkACABQSAQGSAAIAEQjAEgAUEgaiQACwsAIAAgARCMAUEAC3MBA38jAEGgBmsiAyQAQX8hBAJAIANBgAVqIgUgARA0DQAgBRBNRQ0AIANB4ANqIgEgAhA0DQAgARBNRQ0AIAMgARAPIANBoAFqIgEgBSAD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KDa/5zuJf+z6s//xQCz/5qkjQDhxGgACiMZ/tHU8v9h/d7+uGXlAN4SfwGkiIf/Hs+M/pJh8wCBwBr+yVQh/28KTv+TUbL/BAQYAKHu1/8GjSEANdcO/ym10P/ni50As8vd//+5cQC94qz/cULW/8o+Lf9mQAj/Tq4Q/oV1RP8AQbAVCwEBAEHQFQuwASbolY/CsiewRcP0ifLvmPDV36wF08YzObE4AohtU/wFxxdqcD1N2E+6PAt2DRBnDyogU/osOczGTsf9d5KsA3rs////////////////////////////////////////f+3///////////////////////////////////////9/7v///////////////////////////////////////3/t0/VcGmMSWNac96Le+d4UAEGPFwus8QEQ/UBdAKBqPwA501f+DNK6AFi8dP5B2AEA/8g9AdhClP8A+1wAJLLh/wAAAAAAAAAAhTuMAb3xJP/4JcMBYNw3ALdMPv/DQj0AMkykAeGkTP9MPaP/dT4fAFGRQP92QQ4AonPW/waKLgB85vT/CoqPADQawgC49EwAgY8pAb70E/97qnr/YoFEAHnVkwBWZR7/oWebAIxZQ//v5b4BQwu1AMbwif7uRbz/6nE8/yX/Of9Fsrb+gNCzAHYaff4DB9b/8TJN/1XLxf/Th/r/GTBk/7vVtP4RWGkAU9GeAQVzYgAErjz+qzdu/9m1Ef8UvKoAkpxm/lfWrv9yepsB6SyqAH8I7wHW7OoArwXbADFqPf8GQtD/Ampu/1HqE//Xa8D/Q5fuABMqbP/lVXEBMkSH/xFqCQAyZwH/UAGoASOYHv8QqLkBOFno/2XS/AAp+kcAzKpP/w4u7/9QTe8AvdZL/xGN+QAmUEz/vlV1AFbkqgCc2NABw8+k/5ZCTP+v4RD/jVBiAUzb8gDGonIALtqYAJsr8f6boGj/sgn8/mRu1AAOBacA6e+j/xyXnQFlkgr//p5G/kf55ABYHjIARDqg/78YaAGBQoH/wDJV/wiziv8m+skAc1CgAIPmcQB9WJMAWkTHAP1MngAc/3YAcfr+AEJLLgDm2isA5Xi6AZREKwCIfO4Bu2vF/1Q19v8zdP7/M7ulAAIRrwBCVKAB9zoe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ACM+5//c+GwADOeyAI9QWwGDXWX/kCcCAf/6sgAFEez+iyAuAMy8Jv71czT/v3FJ/r9sRf8WRfUBF8uyAKpjqgBB+G8AJWyZ/0AlRQAAWD7+WZSQ/79E4AHxJzUAKcvt/5F+wv/dKv3/GWOXAGH93wFKczH/Bq9I/zuwywB8t/kB5ORjAIEMz/6owMP/zLAQ/pjqqwBNJVX/IXiH/47C4wEf1joA1bt9/+guPP++dCr+l7IT/zM+7f7M7MEAwug8AKwinf+9ELj+ZwNf/43pJP4pGQv/FcOmAHb1LQBD1ZX/nwwS/7uk4wGgGQUADE7DASvF4QAwjin+xJs8/9/HEgGRiJwA/HWp/pHi7gDvF2sAbbW8/+ZwMf5Jqu3/57fj/1DcFADCa38Bf81lAC40xQHSqyT/WANa/ziXjQBgu///Kk7IAP5GRgH0fagAzESKAXzXRgBmQsj+ETTkAHXcj/7L+HsAOBKu/7qXpP8z6NABoOQr//kdGQFEvj8ADQAAAAD/AAAAAPUAAAAAAAD7AAAAAAAA/QAAAADzAAAAAAcAAAAAAAMAAAAA8wAAAAAFAAAAAAAAAAALAAAAAAALAAAAAPMAAAAAAAD9AAAAAAD/AAAAAAMAAAAA9QAAAAAAAAAPAAAAAAD/AAAAAP8AAAAABwAAAAAFAEG8iQILKwEAAAB2wV8AZXAC/1D8of7yasb/hQayAOTfcADf7lX+M/MaAD4ri/7LQQoAQfCJAgtXM03tAJGqVv82JjP/8YBl/yl5Sv/sTpsAqZdp/pwpSADCZq//zqJl/wAAAAAAAAAAGy57ARKo/f/Tr5f+w9tgADh2vv7+0fX/mWR+/uiBFf81uPL/x6TdAEHwigILAQEAQZCLAguwAeDrenw7QbiuFlbj+vGfxGraCY3rnDKx/YZiBRZfSbgAX5yVvKNQjCSx0LFVnIPvWwREXMRYHI6G2CJO3dCfEVfs////////////////////////////////////////f+3///////////////////////////////////////9/7v///////////////////////////////////////3/t0/VcGmMSWNac96Le+d4UAEHPjAILARAAQeCMAguhAmfmCWqFrme7cvNuPDr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MDBQmExM1w+zsL75fX+E1l5eiiEREzC4XFzmTxMRXVaen8vx+foJ6PT1HyGRkrLpdXecyGRkr5nNzlcBgYKAZgYGYnk9P0aPc3H9EIiJmVCoqfjuQkKsLiIiDjEZGysfu7ilruLjTKBQUPKfe3nm8Xl7iFgsLHa3b23bb4OA7ZDIyVnQ6Ok4UCgoekklJ2wwGBgpIJCRsuFxc5J/Cwl2909NuQ6ys78RiYqY5kZGoMZWVpNPk5DfyeXmL1efnMovIyENuNzdZ2m1ttwGNjYyx1dVknE5O0kmpqeDYbGy0rFZW+vP09AfP6uolymVlr/R6eo5Hrq7pEAgIGG+6utXweHiISiUlb1wuLnI4HBwkV6am8XO0tMeXxsZRy+joI6Hd3XzodHScPh8fIZZLS91hvb3cDYuLhg+KioXgcHCQfD4+QnG1tcTMZmaqkEhI2AYDAwX39vYBHA4OEsJhYaNqNTVfrldX+Wm5udAXhoaRmcHBWDodHScnnp652eHhOOv4+BMrmJizIhERM9Jpabup2dlwB46OiTOUlKctm5u2PB4eIhWHh5LJ6ekgh87OSapVVf9QKCh4pd/fegOMjI9ZoaH4CYmJgBoNDRdlv7/a1+bmMYRCQsbQaGi4gkFBwymZmbBaLS13Hg8PEXuwsMuoVFT8bbu71iwWFjoOAAAADwAAABAAAAAR")||(tn=zt,zt=Rt.locateFile?Rt.locateFile(tn,xt):xt+tn);var Nn,wr={36800:()=>Rt.getRandomValue(),36836:()=>{if(Rt.getRandomValue===void 0)try{var Mn=typeof window=="object"?window:self,Zn=Mn.crypto!==void 0?Mn.crypto:Mn.msCrypto,rr=function(){var Hr=new Uint32Array(1);return Zn.getRandomValues(Hr),Hr[0]>>>0};rr(),Rt.getRandomValue=rr}catch{try{var mr=require$$0$3,pn=function(){var ao=mr.randomBytes(4);return(ao[0]<<24|ao[1]<<16|ao[2]<<8|ao[3])>>>0};pn(),Rt.getRandomValue=pn}catch{throw"No secure random number generator found"}}}},nr=Mn=>{for(;Mn.length>0;)Mn.shift()(Rt)},fr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,xr=(Mn,Zn)=>Mn?((rr,mr,pn)=>{for(var Hr=mr+pn,ao=mr;rr[ao]&&!(ao>=Hr);)++ao;if(ao-mr>16&&rr.buffer&&fr)return fr.decode(rr.subarray(mr,ao));for(var No="";mr>10,56320|1023&Qr)}}else No+=String.fromCharCode((31&Ro)<<6|br)}else No+=String.fromCharCode(Ro)}return No})(an,Mn,Zn):"",zr=[],Jr=Mn=>{var Zn=(Mn-Mt.buffer.byteLength+65535)/65536;try{return Mt.grow(Zn),Gt(),1}catch{}},ro={b:(Mn,Zn,rr,mr)=>{Dt(`Assertion failed: ${xr(Mn)}, at: `+[Zn?xr(Zn):"unknown filename",rr,mr?xr(mr):"unknown function"])},c:()=>{Dt("")},a:(Mn,Zn,rr)=>((mr,pn,Hr)=>{var ao=((No,Ro)=>{var br;for(zr.length=0;br=an[No++];)Ro+=br!=105&&Ro%8?4:0,zr.push(br==105?$t[Ro>>2]:St[Ro>>3]),Ro+=br==105?4:8;return zr})(pn,Hr);return wr[mr].apply(null,ao)})(Mn,Zn,rr),e:(Mn,Zn,rr)=>an.copyWithin(Mn,Zn,Zn+rr),d:Mn=>{var Zn=an.length,rr=2147483648;if((Mn>>>=0)>rr)return!1;for(var mr,pn=1;pn<=4;pn*=2){var Hr=Zn*(1+.2/pn);Hr=Math.min(Hr,Mn+100663296);var ao=Math.min(rr,(mr=Math.max(Mn,Hr))+(65536-mr%65536)%65536);if(Jr(ao))return!0}return!1}},xn=function(){var Mn,Zn,rr={a:ro};function mr(pn,Hr){var ao=pn.exports;return Mt=(xn=ao).f,Gt(),xn.kk,function(No){if(fn--,Rt.monitorRunDependencies&&Rt.monitorRunDependencies(fn),fn==0&&dn){var Ro=dn;dn=null,Ro()}}(),ao}if(fn++,Rt.monitorRunDependencies&&Rt.monitorRunDependencies(fn),Rt.instantiateWasm)try{return Rt.instantiateWasm(rr,mr)}catch(pn){return jt(`Module.instantiateWasm callback failed with error: ${pn}`),!1}return Mn=rr,Zn=function(pn){mr(pn.instance)},function(pn){return Promise.resolve().then(()=>function(Hr){if(Hr==zt&&Tt)return new Uint8Array(Tt);var ao=function(No){if(gn(No))return function(Ro){if(Nt!==void 0&&Nt){var br=Buffer$1.from(Ro,"base64");return new Uint8Array(br.buffer,br.byteOffset,br.length)}try{for(var yr=atob(Ro),Qr=new Uint8Array(yr.length),Vr=0;VrWebAssembly.instantiate(pn,Mn)).then(pn=>pn).then(Zn,pn=>{jt(`failed to asynchronously prepare wasm: ${pn}`),Dt(pn)}),{}}();function _o(){function Mn(){Nn||(Nn=!0,Rt.calledRun=!0,It||(nr(Vt),Rt.onRuntimeInitialized&&Rt.onRuntimeInitialized(),function(){if(Rt.postRun)for(typeof Rt.postRun=="function"&&(Rt.postRun=[Rt.postRun]);Rt.postRun.length;)Zn=Rt.postRun.shift(),qt.unshift(Zn);var Zn;nr(qt)}()))}fn>0||(function(){if(Rt.preRun)for(typeof Rt.preRun=="function"&&(Rt.preRun=[Rt.preRun]);Rt.preRun.length;)Zn=Rt.preRun.shift(),Ut.unshift(Zn);var Zn;nr(Ut)}(),fn>0||(Rt.setStatus?(Rt.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Rt.setStatus("")},1),Mn()},1)):Mn()))}if(Rt._crypto_aead_aegis128l_keybytes=()=>(Rt._crypto_aead_aegis128l_keybytes=xn.g)(),Rt._crypto_aead_aegis128l_nsecbytes=()=>(Rt._crypto_aead_aegis128l_nsecbytes=xn.h)(),Rt._crypto_aead_aegis128l_npubbytes=()=>(Rt._crypto_aead_aegis128l_npubbytes=xn.i)(),Rt._crypto_aead_aegis128l_abytes=()=>(Rt._crypto_aead_aegis128l_abytes=xn.j)(),Rt._crypto_aead_aegis128l_messagebytes_max=()=>(Rt._crypto_aead_aegis128l_messagebytes_max=xn.k)(),Rt._crypto_aead_aegis128l_keygen=Mn=>(Rt._crypto_aead_aegis128l_keygen=xn.l)(Mn),Rt._crypto_aead_aegis128l_encrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_aegis128l_encrypt=xn.m)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_aegis128l_encrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr)=>(Rt._crypto_aead_aegis128l_encrypt_detached=xn.n)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr),Rt._crypto_aead_aegis128l_decrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_aegis128l_decrypt=xn.o)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_aegis128l_decrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_aegis128l_decrypt_detached=xn.p)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_aegis256_keybytes=()=>(Rt._crypto_aead_aegis256_keybytes=xn.q)(),Rt._crypto_aead_aegis256_nsecbytes=()=>(Rt._crypto_aead_aegis256_nsecbytes=xn.r)(),Rt._crypto_aead_aegis256_npubbytes=()=>(Rt._crypto_aead_aegis256_npubbytes=xn.s)(),Rt._crypto_aead_aegis256_abytes=()=>(Rt._crypto_aead_aegis256_abytes=xn.t)(),Rt._crypto_aead_aegis256_messagebytes_max=()=>(Rt._crypto_aead_aegis256_messagebytes_max=xn.u)(),Rt._crypto_aead_aegis256_keygen=Mn=>(Rt._crypto_aead_aegis256_keygen=xn.v)(Mn),Rt._crypto_aead_aegis256_encrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_aegis256_encrypt=xn.w)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_aegis256_encrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr)=>(Rt._crypto_aead_aegis256_encrypt_detached=xn.x)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr),Rt._crypto_aead_aegis256_decrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_aegis256_decrypt=xn.y)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_aegis256_decrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_aegis256_decrypt_detached=xn.z)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_chacha20poly1305_encrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr)=>(Rt._crypto_aead_chacha20poly1305_encrypt_detached=xn.A)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr),Rt._crypto_aead_chacha20poly1305_encrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_chacha20poly1305_encrypt=xn.B)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_chacha20poly1305_ietf_encrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr)=>(Rt._crypto_aead_chacha20poly1305_ietf_encrypt_detached=xn.C)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr),Rt._crypto_aead_chacha20poly1305_ietf_encrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_chacha20poly1305_ietf_encrypt=xn.D)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_chacha20poly1305_decrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_chacha20poly1305_decrypt_detached=xn.E)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_chacha20poly1305_decrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_chacha20poly1305_decrypt=xn.F)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_chacha20poly1305_ietf_decrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_chacha20poly1305_ietf_decrypt_detached=xn.G)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_chacha20poly1305_ietf_decrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_chacha20poly1305_ietf_decrypt=xn.H)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_chacha20poly1305_ietf_keybytes=()=>(Rt._crypto_aead_chacha20poly1305_ietf_keybytes=xn.I)(),Rt._crypto_aead_chacha20poly1305_ietf_npubbytes=()=>(Rt._crypto_aead_chacha20poly1305_ietf_npubbytes=xn.J)(),Rt._crypto_aead_chacha20poly1305_ietf_nsecbytes=()=>(Rt._crypto_aead_chacha20poly1305_ietf_nsecbytes=xn.K)(),Rt._crypto_aead_chacha20poly1305_ietf_abytes=()=>(Rt._crypto_aead_chacha20poly1305_ietf_abytes=xn.L)(),Rt._crypto_aead_chacha20poly1305_ietf_messagebytes_max=()=>(Rt._crypto_aead_chacha20poly1305_ietf_messagebytes_max=xn.M)(),Rt._crypto_aead_chacha20poly1305_ietf_keygen=Mn=>(Rt._crypto_aead_chacha20poly1305_ietf_keygen=xn.N)(Mn),Rt._crypto_aead_chacha20poly1305_keybytes=()=>(Rt._crypto_aead_chacha20poly1305_keybytes=xn.O)(),Rt._crypto_aead_chacha20poly1305_npubbytes=()=>(Rt._crypto_aead_chacha20poly1305_npubbytes=xn.P)(),Rt._crypto_aead_chacha20poly1305_nsecbytes=()=>(Rt._crypto_aead_chacha20poly1305_nsecbytes=xn.Q)(),Rt._crypto_aead_chacha20poly1305_abytes=()=>(Rt._crypto_aead_chacha20poly1305_abytes=xn.R)(),Rt._crypto_aead_chacha20poly1305_messagebytes_max=()=>(Rt._crypto_aead_chacha20poly1305_messagebytes_max=xn.S)(),Rt._crypto_aead_chacha20poly1305_keygen=Mn=>(Rt._crypto_aead_chacha20poly1305_keygen=xn.T)(Mn),Rt._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr)=>(Rt._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=xn.U)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr),Rt._crypto_aead_xchacha20poly1305_ietf_encrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_xchacha20poly1305_ietf_encrypt=xn.V)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=xn.W)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_xchacha20poly1305_ietf_decrypt=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_aead_xchacha20poly1305_ietf_decrypt=xn.X)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_aead_xchacha20poly1305_ietf_keybytes=()=>(Rt._crypto_aead_xchacha20poly1305_ietf_keybytes=xn.Y)(),Rt._crypto_aead_xchacha20poly1305_ietf_npubbytes=()=>(Rt._crypto_aead_xchacha20poly1305_ietf_npubbytes=xn.Z)(),Rt._crypto_aead_xchacha20poly1305_ietf_nsecbytes=()=>(Rt._crypto_aead_xchacha20poly1305_ietf_nsecbytes=xn._)(),Rt._crypto_aead_xchacha20poly1305_ietf_abytes=()=>(Rt._crypto_aead_xchacha20poly1305_ietf_abytes=xn.$)(),Rt._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=()=>(Rt._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=xn.aa)(),Rt._crypto_aead_xchacha20poly1305_ietf_keygen=Mn=>(Rt._crypto_aead_xchacha20poly1305_ietf_keygen=xn.ba)(Mn),Rt._crypto_auth_bytes=()=>(Rt._crypto_auth_bytes=xn.ca)(),Rt._crypto_auth_keybytes=()=>(Rt._crypto_auth_keybytes=xn.da)(),Rt._crypto_auth_primitive=()=>(Rt._crypto_auth_primitive=xn.ea)(),Rt._crypto_auth=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth=xn.fa)(Mn,Zn,rr,mr,pn),Rt._crypto_auth_verify=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth_verify=xn.ga)(Mn,Zn,rr,mr,pn),Rt._crypto_auth_keygen=Mn=>(Rt._crypto_auth_keygen=xn.ha)(Mn),Rt._crypto_auth_hmacsha256_bytes=()=>(Rt._crypto_auth_hmacsha256_bytes=xn.ia)(),Rt._crypto_auth_hmacsha256_keybytes=()=>(Rt._crypto_auth_hmacsha256_keybytes=xn.ja)(),Rt._crypto_auth_hmacsha256_statebytes=()=>(Rt._crypto_auth_hmacsha256_statebytes=xn.ka)(),Rt._crypto_auth_hmacsha256_keygen=Mn=>(Rt._crypto_auth_hmacsha256_keygen=xn.la)(Mn),Rt._crypto_auth_hmacsha256_init=(Mn,Zn,rr)=>(Rt._crypto_auth_hmacsha256_init=xn.ma)(Mn,Zn,rr),Rt._crypto_auth_hmacsha256_update=(Mn,Zn,rr,mr)=>(Rt._crypto_auth_hmacsha256_update=xn.na)(Mn,Zn,rr,mr),Rt._crypto_auth_hmacsha256_final=(Mn,Zn)=>(Rt._crypto_auth_hmacsha256_final=xn.oa)(Mn,Zn),Rt._crypto_auth_hmacsha256=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth_hmacsha256=xn.pa)(Mn,Zn,rr,mr,pn),Rt._crypto_auth_hmacsha256_verify=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth_hmacsha256_verify=xn.qa)(Mn,Zn,rr,mr,pn),Rt._crypto_auth_hmacsha512_bytes=()=>(Rt._crypto_auth_hmacsha512_bytes=xn.ra)(),Rt._crypto_auth_hmacsha512_keybytes=()=>(Rt._crypto_auth_hmacsha512_keybytes=xn.sa)(),Rt._crypto_auth_hmacsha512_statebytes=()=>(Rt._crypto_auth_hmacsha512_statebytes=xn.ta)(),Rt._crypto_auth_hmacsha512_keygen=Mn=>(Rt._crypto_auth_hmacsha512_keygen=xn.ua)(Mn),Rt._crypto_auth_hmacsha512_init=(Mn,Zn,rr)=>(Rt._crypto_auth_hmacsha512_init=xn.va)(Mn,Zn,rr),Rt._crypto_auth_hmacsha512_update=(Mn,Zn,rr,mr)=>(Rt._crypto_auth_hmacsha512_update=xn.wa)(Mn,Zn,rr,mr),Rt._crypto_auth_hmacsha512_final=(Mn,Zn)=>(Rt._crypto_auth_hmacsha512_final=xn.xa)(Mn,Zn),Rt._crypto_auth_hmacsha512=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth_hmacsha512=xn.ya)(Mn,Zn,rr,mr,pn),Rt._crypto_auth_hmacsha512_verify=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth_hmacsha512_verify=xn.za)(Mn,Zn,rr,mr,pn),Rt._crypto_auth_hmacsha512256_bytes=()=>(Rt._crypto_auth_hmacsha512256_bytes=xn.Aa)(),Rt._crypto_auth_hmacsha512256_keybytes=()=>(Rt._crypto_auth_hmacsha512256_keybytes=xn.Ba)(),Rt._crypto_auth_hmacsha512256_statebytes=()=>(Rt._crypto_auth_hmacsha512256_statebytes=xn.Ca)(),Rt._crypto_auth_hmacsha512256_keygen=Mn=>(Rt._crypto_auth_hmacsha512256_keygen=xn.Da)(Mn),Rt._crypto_auth_hmacsha512256_init=(Mn,Zn,rr)=>(Rt._crypto_auth_hmacsha512256_init=xn.Ea)(Mn,Zn,rr),Rt._crypto_auth_hmacsha512256_update=(Mn,Zn,rr,mr)=>(Rt._crypto_auth_hmacsha512256_update=xn.Fa)(Mn,Zn,rr,mr),Rt._crypto_auth_hmacsha512256_final=(Mn,Zn)=>(Rt._crypto_auth_hmacsha512256_final=xn.Ga)(Mn,Zn),Rt._crypto_auth_hmacsha512256=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth_hmacsha512256=xn.Ha)(Mn,Zn,rr,mr,pn),Rt._crypto_auth_hmacsha512256_verify=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_auth_hmacsha512256_verify=xn.Ia)(Mn,Zn,rr,mr,pn),Rt._crypto_box_seedbytes=()=>(Rt._crypto_box_seedbytes=xn.Ja)(),Rt._crypto_box_publickeybytes=()=>(Rt._crypto_box_publickeybytes=xn.Ka)(),Rt._crypto_box_secretkeybytes=()=>(Rt._crypto_box_secretkeybytes=xn.La)(),Rt._crypto_box_beforenmbytes=()=>(Rt._crypto_box_beforenmbytes=xn.Ma)(),Rt._crypto_box_noncebytes=()=>(Rt._crypto_box_noncebytes=xn.Na)(),Rt._crypto_box_zerobytes=()=>(Rt._crypto_box_zerobytes=xn.Oa)(),Rt._crypto_box_boxzerobytes=()=>(Rt._crypto_box_boxzerobytes=xn.Pa)(),Rt._crypto_box_macbytes=()=>(Rt._crypto_box_macbytes=xn.Qa)(),Rt._crypto_box_messagebytes_max=()=>(Rt._crypto_box_messagebytes_max=xn.Ra)(),Rt._crypto_box_primitive=()=>(Rt._crypto_box_primitive=xn.Sa)(),Rt._crypto_box_seed_keypair=(Mn,Zn,rr)=>(Rt._crypto_box_seed_keypair=xn.Ta)(Mn,Zn,rr),Rt._crypto_box_keypair=(Mn,Zn)=>(Rt._crypto_box_keypair=xn.Ua)(Mn,Zn),Rt._crypto_box_beforenm=(Mn,Zn,rr)=>(Rt._crypto_box_beforenm=xn.Va)(Mn,Zn,rr),Rt._crypto_box_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_afternm=xn.Wa)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_open_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_open_afternm=xn.Xa)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box=xn.Ya)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_open=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_open=xn.Za)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_detached_afternm=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_detached_afternm=xn._a)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_box_detached=xn.$a)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_box_easy_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_easy_afternm=xn.ab)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_easy=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_easy=xn.bb)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_open_detached_afternm=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_open_detached_afternm=xn.cb)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_open_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_box_open_detached=xn.db)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_box_open_easy_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_open_easy_afternm=xn.eb)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_open_easy=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_open_easy=xn.fb)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_seal=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_box_seal=xn.gb)(Mn,Zn,rr,mr,pn),Rt._crypto_box_seal_open=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_seal_open=xn.hb)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_sealbytes=()=>(Rt._crypto_box_sealbytes=xn.ib)(),Rt._crypto_box_curve25519xsalsa20poly1305_seed_keypair=(Mn,Zn,rr)=>(Rt._crypto_box_curve25519xsalsa20poly1305_seed_keypair=xn.jb)(Mn,Zn,rr),Rt._crypto_box_curve25519xsalsa20poly1305_keypair=(Mn,Zn)=>(Rt._crypto_box_curve25519xsalsa20poly1305_keypair=xn.kb)(Mn,Zn),Rt._crypto_box_curve25519xsalsa20poly1305_beforenm=(Mn,Zn,rr)=>(Rt._crypto_box_curve25519xsalsa20poly1305_beforenm=xn.lb)(Mn,Zn,rr),Rt._crypto_box_curve25519xsalsa20poly1305_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_curve25519xsalsa20poly1305_afternm=xn.mb)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_curve25519xsalsa20poly1305_open_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_curve25519xsalsa20poly1305_open_afternm=xn.nb)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_curve25519xsalsa20poly1305=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_curve25519xsalsa20poly1305=xn.ob)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_curve25519xsalsa20poly1305_open=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_curve25519xsalsa20poly1305_open=xn.pb)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_curve25519xsalsa20poly1305_seedbytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_seedbytes=xn.qb)(),Rt._crypto_box_curve25519xsalsa20poly1305_publickeybytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_publickeybytes=xn.rb)(),Rt._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=xn.sb)(),Rt._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=xn.tb)(),Rt._crypto_box_curve25519xsalsa20poly1305_noncebytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_noncebytes=xn.ub)(),Rt._crypto_box_curve25519xsalsa20poly1305_zerobytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_zerobytes=xn.vb)(),Rt._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=xn.wb)(),Rt._crypto_box_curve25519xsalsa20poly1305_macbytes=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_macbytes=xn.xb)(),Rt._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=()=>(Rt._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=xn.yb)(),Rt._crypto_core_hchacha20=(Mn,Zn,rr,mr)=>(Rt._crypto_core_hchacha20=xn.zb)(Mn,Zn,rr,mr),Rt._crypto_core_hchacha20_outputbytes=()=>(Rt._crypto_core_hchacha20_outputbytes=xn.Ab)(),Rt._crypto_core_hchacha20_inputbytes=()=>(Rt._crypto_core_hchacha20_inputbytes=xn.Bb)(),Rt._crypto_core_hchacha20_keybytes=()=>(Rt._crypto_core_hchacha20_keybytes=xn.Cb)(),Rt._crypto_core_hchacha20_constbytes=()=>(Rt._crypto_core_hchacha20_constbytes=xn.Db)(),Rt._crypto_core_hsalsa20=(Mn,Zn,rr,mr)=>(Rt._crypto_core_hsalsa20=xn.Eb)(Mn,Zn,rr,mr),Rt._crypto_core_hsalsa20_outputbytes=()=>(Rt._crypto_core_hsalsa20_outputbytes=xn.Fb)(),Rt._crypto_core_hsalsa20_inputbytes=()=>(Rt._crypto_core_hsalsa20_inputbytes=xn.Gb)(),Rt._crypto_core_hsalsa20_keybytes=()=>(Rt._crypto_core_hsalsa20_keybytes=xn.Hb)(),Rt._crypto_core_hsalsa20_constbytes=()=>(Rt._crypto_core_hsalsa20_constbytes=xn.Ib)(),Rt._crypto_core_salsa20=(Mn,Zn,rr,mr)=>(Rt._crypto_core_salsa20=xn.Jb)(Mn,Zn,rr,mr),Rt._crypto_core_salsa20_outputbytes=()=>(Rt._crypto_core_salsa20_outputbytes=xn.Kb)(),Rt._crypto_core_salsa20_inputbytes=()=>(Rt._crypto_core_salsa20_inputbytes=xn.Lb)(),Rt._crypto_core_salsa20_keybytes=()=>(Rt._crypto_core_salsa20_keybytes=xn.Mb)(),Rt._crypto_core_salsa20_constbytes=()=>(Rt._crypto_core_salsa20_constbytes=xn.Nb)(),Rt._crypto_core_salsa2012=(Mn,Zn,rr,mr)=>(Rt._crypto_core_salsa2012=xn.Ob)(Mn,Zn,rr,mr),Rt._crypto_core_salsa2012_outputbytes=()=>(Rt._crypto_core_salsa2012_outputbytes=xn.Pb)(),Rt._crypto_core_salsa2012_inputbytes=()=>(Rt._crypto_core_salsa2012_inputbytes=xn.Qb)(),Rt._crypto_core_salsa2012_keybytes=()=>(Rt._crypto_core_salsa2012_keybytes=xn.Rb)(),Rt._crypto_core_salsa2012_constbytes=()=>(Rt._crypto_core_salsa2012_constbytes=xn.Sb)(),Rt._crypto_core_salsa208=(Mn,Zn,rr,mr)=>(Rt._crypto_core_salsa208=xn.Tb)(Mn,Zn,rr,mr),Rt._crypto_core_salsa208_outputbytes=()=>(Rt._crypto_core_salsa208_outputbytes=xn.Ub)(),Rt._crypto_core_salsa208_inputbytes=()=>(Rt._crypto_core_salsa208_inputbytes=xn.Vb)(),Rt._crypto_core_salsa208_keybytes=()=>(Rt._crypto_core_salsa208_keybytes=xn.Wb)(),Rt._crypto_core_salsa208_constbytes=()=>(Rt._crypto_core_salsa208_constbytes=xn.Xb)(),Rt._crypto_generichash_bytes_min=()=>(Rt._crypto_generichash_bytes_min=xn.Yb)(),Rt._crypto_generichash_bytes_max=()=>(Rt._crypto_generichash_bytes_max=xn.Zb)(),Rt._crypto_generichash_bytes=()=>(Rt._crypto_generichash_bytes=xn._b)(),Rt._crypto_generichash_keybytes_min=()=>(Rt._crypto_generichash_keybytes_min=xn.$b)(),Rt._crypto_generichash_keybytes_max=()=>(Rt._crypto_generichash_keybytes_max=xn.ac)(),Rt._crypto_generichash_keybytes=()=>(Rt._crypto_generichash_keybytes=xn.bc)(),Rt._crypto_generichash_primitive=()=>(Rt._crypto_generichash_primitive=xn.cc)(),Rt._crypto_generichash_statebytes=()=>(Rt._crypto_generichash_statebytes=xn.dc)(),Rt._crypto_generichash=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_generichash=xn.ec)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_generichash_init=(Mn,Zn,rr,mr)=>(Rt._crypto_generichash_init=xn.fc)(Mn,Zn,rr,mr),Rt._crypto_generichash_update=(Mn,Zn,rr,mr)=>(Rt._crypto_generichash_update=xn.gc)(Mn,Zn,rr,mr),Rt._crypto_generichash_final=(Mn,Zn,rr)=>(Rt._crypto_generichash_final=xn.hc)(Mn,Zn,rr),Rt._crypto_generichash_keygen=Mn=>(Rt._crypto_generichash_keygen=xn.ic)(Mn),Rt._crypto_generichash_blake2b_bytes_min=()=>(Rt._crypto_generichash_blake2b_bytes_min=xn.jc)(),Rt._crypto_generichash_blake2b_bytes_max=()=>(Rt._crypto_generichash_blake2b_bytes_max=xn.kc)(),Rt._crypto_generichash_blake2b_bytes=()=>(Rt._crypto_generichash_blake2b_bytes=xn.lc)(),Rt._crypto_generichash_blake2b_keybytes_min=()=>(Rt._crypto_generichash_blake2b_keybytes_min=xn.mc)(),Rt._crypto_generichash_blake2b_keybytes_max=()=>(Rt._crypto_generichash_blake2b_keybytes_max=xn.nc)(),Rt._crypto_generichash_blake2b_keybytes=()=>(Rt._crypto_generichash_blake2b_keybytes=xn.oc)(),Rt._crypto_generichash_blake2b_saltbytes=()=>(Rt._crypto_generichash_blake2b_saltbytes=xn.pc)(),Rt._crypto_generichash_blake2b_personalbytes=()=>(Rt._crypto_generichash_blake2b_personalbytes=xn.qc)(),Rt._crypto_generichash_blake2b_statebytes=()=>(Rt._crypto_generichash_blake2b_statebytes=xn.rc)(),Rt._crypto_generichash_blake2b_keygen=Mn=>(Rt._crypto_generichash_blake2b_keygen=xn.sc)(Mn),Rt._crypto_generichash_blake2b=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_generichash_blake2b=xn.tc)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_generichash_blake2b_salt_personal=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro)=>(Rt._crypto_generichash_blake2b_salt_personal=xn.uc)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro),Rt._crypto_generichash_blake2b_init=(Mn,Zn,rr,mr)=>(Rt._crypto_generichash_blake2b_init=xn.vc)(Mn,Zn,rr,mr),Rt._crypto_generichash_blake2b_init_salt_personal=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_generichash_blake2b_init_salt_personal=xn.wc)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_generichash_blake2b_update=(Mn,Zn,rr,mr)=>(Rt._crypto_generichash_blake2b_update=xn.xc)(Mn,Zn,rr,mr),Rt._crypto_generichash_blake2b_final=(Mn,Zn,rr)=>(Rt._crypto_generichash_blake2b_final=xn.yc)(Mn,Zn,rr),Rt._crypto_hash_bytes=()=>(Rt._crypto_hash_bytes=xn.zc)(),Rt._crypto_hash=(Mn,Zn,rr,mr)=>(Rt._crypto_hash=xn.Ac)(Mn,Zn,rr,mr),Rt._crypto_hash_primitive=()=>(Rt._crypto_hash_primitive=xn.Bc)(),Rt._crypto_hash_sha256_bytes=()=>(Rt._crypto_hash_sha256_bytes=xn.Cc)(),Rt._crypto_hash_sha256_statebytes=()=>(Rt._crypto_hash_sha256_statebytes=xn.Dc)(),Rt._crypto_hash_sha256_init=Mn=>(Rt._crypto_hash_sha256_init=xn.Ec)(Mn),Rt._crypto_hash_sha256_update=(Mn,Zn,rr,mr)=>(Rt._crypto_hash_sha256_update=xn.Fc)(Mn,Zn,rr,mr),Rt._crypto_hash_sha256_final=(Mn,Zn)=>(Rt._crypto_hash_sha256_final=xn.Gc)(Mn,Zn),Rt._crypto_hash_sha256=(Mn,Zn,rr,mr)=>(Rt._crypto_hash_sha256=xn.Hc)(Mn,Zn,rr,mr),Rt._crypto_hash_sha512_bytes=()=>(Rt._crypto_hash_sha512_bytes=xn.Ic)(),Rt._crypto_hash_sha512_statebytes=()=>(Rt._crypto_hash_sha512_statebytes=xn.Jc)(),Rt._crypto_hash_sha512_init=Mn=>(Rt._crypto_hash_sha512_init=xn.Kc)(Mn),Rt._crypto_hash_sha512_update=(Mn,Zn,rr,mr)=>(Rt._crypto_hash_sha512_update=xn.Lc)(Mn,Zn,rr,mr),Rt._crypto_hash_sha512_final=(Mn,Zn)=>(Rt._crypto_hash_sha512_final=xn.Mc)(Mn,Zn),Rt._crypto_hash_sha512=(Mn,Zn,rr,mr)=>(Rt._crypto_hash_sha512=xn.Nc)(Mn,Zn,rr,mr),Rt._crypto_kdf_blake2b_bytes_min=()=>(Rt._crypto_kdf_blake2b_bytes_min=xn.Oc)(),Rt._crypto_kdf_blake2b_bytes_max=()=>(Rt._crypto_kdf_blake2b_bytes_max=xn.Pc)(),Rt._crypto_kdf_blake2b_contextbytes=()=>(Rt._crypto_kdf_blake2b_contextbytes=xn.Qc)(),Rt._crypto_kdf_blake2b_keybytes=()=>(Rt._crypto_kdf_blake2b_keybytes=xn.Rc)(),Rt._crypto_kdf_blake2b_derive_from_key=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_kdf_blake2b_derive_from_key=xn.Sc)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_kdf_primitive=()=>(Rt._crypto_kdf_primitive=xn.Tc)(),Rt._crypto_kdf_bytes_min=()=>(Rt._crypto_kdf_bytes_min=xn.Uc)(),Rt._crypto_kdf_bytes_max=()=>(Rt._crypto_kdf_bytes_max=xn.Vc)(),Rt._crypto_kdf_contextbytes=()=>(Rt._crypto_kdf_contextbytes=xn.Wc)(),Rt._crypto_kdf_keybytes=()=>(Rt._crypto_kdf_keybytes=xn.Xc)(),Rt._crypto_kdf_derive_from_key=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_kdf_derive_from_key=xn.Yc)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_kdf_keygen=Mn=>(Rt._crypto_kdf_keygen=xn.Zc)(Mn),Rt._crypto_kdf_hkdf_sha256_extract_init=(Mn,Zn,rr)=>(Rt._crypto_kdf_hkdf_sha256_extract_init=xn._c)(Mn,Zn,rr),Rt._crypto_kdf_hkdf_sha256_extract_update=(Mn,Zn,rr)=>(Rt._crypto_kdf_hkdf_sha256_extract_update=xn.$c)(Mn,Zn,rr),Rt._crypto_kdf_hkdf_sha256_extract_final=(Mn,Zn)=>(Rt._crypto_kdf_hkdf_sha256_extract_final=xn.ad)(Mn,Zn),Rt._crypto_kdf_hkdf_sha256_extract=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_kdf_hkdf_sha256_extract=xn.bd)(Mn,Zn,rr,mr,pn),Rt._crypto_kdf_hkdf_sha256_keygen=Mn=>(Rt._crypto_kdf_hkdf_sha256_keygen=xn.cd)(Mn),Rt._crypto_kdf_hkdf_sha256_expand=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_kdf_hkdf_sha256_expand=xn.dd)(Mn,Zn,rr,mr,pn),Rt._crypto_kdf_hkdf_sha256_keybytes=()=>(Rt._crypto_kdf_hkdf_sha256_keybytes=xn.ed)(),Rt._crypto_kdf_hkdf_sha256_bytes_min=()=>(Rt._crypto_kdf_hkdf_sha256_bytes_min=xn.fd)(),Rt._crypto_kdf_hkdf_sha256_bytes_max=()=>(Rt._crypto_kdf_hkdf_sha256_bytes_max=xn.gd)(),Rt._crypto_kdf_hkdf_sha256_statebytes=()=>(Rt._crypto_kdf_hkdf_sha256_statebytes=xn.hd)(),Rt._crypto_kdf_hkdf_sha512_extract_init=(Mn,Zn,rr)=>(Rt._crypto_kdf_hkdf_sha512_extract_init=xn.id)(Mn,Zn,rr),Rt._crypto_kdf_hkdf_sha512_extract_update=(Mn,Zn,rr)=>(Rt._crypto_kdf_hkdf_sha512_extract_update=xn.jd)(Mn,Zn,rr),Rt._crypto_kdf_hkdf_sha512_extract_final=(Mn,Zn)=>(Rt._crypto_kdf_hkdf_sha512_extract_final=xn.kd)(Mn,Zn),Rt._crypto_kdf_hkdf_sha512_extract=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_kdf_hkdf_sha512_extract=xn.ld)(Mn,Zn,rr,mr,pn),Rt._crypto_kdf_hkdf_sha512_keygen=Mn=>(Rt._crypto_kdf_hkdf_sha512_keygen=xn.md)(Mn),Rt._crypto_kdf_hkdf_sha512_expand=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_kdf_hkdf_sha512_expand=xn.nd)(Mn,Zn,rr,mr,pn),Rt._crypto_kdf_hkdf_sha512_keybytes=()=>(Rt._crypto_kdf_hkdf_sha512_keybytes=xn.od)(),Rt._crypto_kdf_hkdf_sha512_bytes_min=()=>(Rt._crypto_kdf_hkdf_sha512_bytes_min=xn.pd)(),Rt._crypto_kdf_hkdf_sha512_bytes_max=()=>(Rt._crypto_kdf_hkdf_sha512_bytes_max=xn.qd)(),Rt._crypto_kx_seed_keypair=(Mn,Zn,rr)=>(Rt._crypto_kx_seed_keypair=xn.rd)(Mn,Zn,rr),Rt._crypto_kx_keypair=(Mn,Zn)=>(Rt._crypto_kx_keypair=xn.sd)(Mn,Zn),Rt._crypto_kx_client_session_keys=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_kx_client_session_keys=xn.td)(Mn,Zn,rr,mr,pn),Rt._crypto_kx_server_session_keys=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_kx_server_session_keys=xn.ud)(Mn,Zn,rr,mr,pn),Rt._crypto_kx_publickeybytes=()=>(Rt._crypto_kx_publickeybytes=xn.vd)(),Rt._crypto_kx_secretkeybytes=()=>(Rt._crypto_kx_secretkeybytes=xn.wd)(),Rt._crypto_kx_seedbytes=()=>(Rt._crypto_kx_seedbytes=xn.xd)(),Rt._crypto_kx_sessionkeybytes=()=>(Rt._crypto_kx_sessionkeybytes=xn.yd)(),Rt._crypto_kx_primitive=()=>(Rt._crypto_kx_primitive=xn.zd)(),Rt._crypto_onetimeauth_statebytes=()=>(Rt._crypto_onetimeauth_statebytes=xn.Ad)(),Rt._crypto_onetimeauth_bytes=()=>(Rt._crypto_onetimeauth_bytes=xn.Bd)(),Rt._crypto_onetimeauth_keybytes=()=>(Rt._crypto_onetimeauth_keybytes=xn.Cd)(),Rt._crypto_onetimeauth=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_onetimeauth=xn.Dd)(Mn,Zn,rr,mr,pn),Rt._crypto_onetimeauth_verify=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_onetimeauth_verify=xn.Ed)(Mn,Zn,rr,mr,pn),Rt._crypto_onetimeauth_init=(Mn,Zn)=>(Rt._crypto_onetimeauth_init=xn.Fd)(Mn,Zn),Rt._crypto_onetimeauth_update=(Mn,Zn,rr,mr)=>(Rt._crypto_onetimeauth_update=xn.Gd)(Mn,Zn,rr,mr),Rt._crypto_onetimeauth_final=(Mn,Zn)=>(Rt._crypto_onetimeauth_final=xn.Hd)(Mn,Zn),Rt._crypto_onetimeauth_primitive=()=>(Rt._crypto_onetimeauth_primitive=xn.Id)(),Rt._crypto_onetimeauth_keygen=Mn=>(Rt._crypto_onetimeauth_keygen=xn.Jd)(Mn),Rt._crypto_onetimeauth_poly1305=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_onetimeauth_poly1305=xn.Kd)(Mn,Zn,rr,mr,pn),Rt._crypto_onetimeauth_poly1305_verify=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_onetimeauth_poly1305_verify=xn.Ld)(Mn,Zn,rr,mr,pn),Rt._crypto_onetimeauth_poly1305_init=(Mn,Zn)=>(Rt._crypto_onetimeauth_poly1305_init=xn.Md)(Mn,Zn),Rt._crypto_onetimeauth_poly1305_update=(Mn,Zn,rr,mr)=>(Rt._crypto_onetimeauth_poly1305_update=xn.Nd)(Mn,Zn,rr,mr),Rt._crypto_onetimeauth_poly1305_final=(Mn,Zn)=>(Rt._crypto_onetimeauth_poly1305_final=xn.Od)(Mn,Zn),Rt._crypto_onetimeauth_poly1305_bytes=()=>(Rt._crypto_onetimeauth_poly1305_bytes=xn.Pd)(),Rt._crypto_onetimeauth_poly1305_keybytes=()=>(Rt._crypto_onetimeauth_poly1305_keybytes=xn.Qd)(),Rt._crypto_onetimeauth_poly1305_statebytes=()=>(Rt._crypto_onetimeauth_poly1305_statebytes=xn.Rd)(),Rt._crypto_onetimeauth_poly1305_keygen=Mn=>(Rt._crypto_onetimeauth_poly1305_keygen=xn.Sd)(Mn),Rt._crypto_pwhash_argon2i_alg_argon2i13=()=>(Rt._crypto_pwhash_argon2i_alg_argon2i13=xn.Td)(),Rt._crypto_pwhash_argon2i_bytes_min=()=>(Rt._crypto_pwhash_argon2i_bytes_min=xn.Ud)(),Rt._crypto_pwhash_argon2i_bytes_max=()=>(Rt._crypto_pwhash_argon2i_bytes_max=xn.Vd)(),Rt._crypto_pwhash_argon2i_passwd_min=()=>(Rt._crypto_pwhash_argon2i_passwd_min=xn.Wd)(),Rt._crypto_pwhash_argon2i_passwd_max=()=>(Rt._crypto_pwhash_argon2i_passwd_max=xn.Xd)(),Rt._crypto_pwhash_argon2i_saltbytes=()=>(Rt._crypto_pwhash_argon2i_saltbytes=xn.Yd)(),Rt._crypto_pwhash_argon2i_strbytes=()=>(Rt._crypto_pwhash_argon2i_strbytes=xn.Zd)(),Rt._crypto_pwhash_argon2i_strprefix=()=>(Rt._crypto_pwhash_argon2i_strprefix=xn._d)(),Rt._crypto_pwhash_argon2i_opslimit_min=()=>(Rt._crypto_pwhash_argon2i_opslimit_min=xn.$d)(),Rt._crypto_pwhash_argon2i_opslimit_max=()=>(Rt._crypto_pwhash_argon2i_opslimit_max=xn.ae)(),Rt._crypto_pwhash_argon2i_memlimit_min=()=>(Rt._crypto_pwhash_argon2i_memlimit_min=xn.be)(),Rt._crypto_pwhash_argon2i_memlimit_max=()=>(Rt._crypto_pwhash_argon2i_memlimit_max=xn.ce)(),Rt._crypto_pwhash_argon2i_opslimit_interactive=()=>(Rt._crypto_pwhash_argon2i_opslimit_interactive=xn.de)(),Rt._crypto_pwhash_argon2i_memlimit_interactive=()=>(Rt._crypto_pwhash_argon2i_memlimit_interactive=xn.ee)(),Rt._crypto_pwhash_argon2i_opslimit_moderate=()=>(Rt._crypto_pwhash_argon2i_opslimit_moderate=xn.fe)(),Rt._crypto_pwhash_argon2i_memlimit_moderate=()=>(Rt._crypto_pwhash_argon2i_memlimit_moderate=xn.ge)(),Rt._crypto_pwhash_argon2i_opslimit_sensitive=()=>(Rt._crypto_pwhash_argon2i_opslimit_sensitive=xn.he)(),Rt._crypto_pwhash_argon2i_memlimit_sensitive=()=>(Rt._crypto_pwhash_argon2i_memlimit_sensitive=xn.ie)(),Rt._crypto_pwhash_argon2i=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_pwhash_argon2i=xn.je)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_pwhash_argon2i_str=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_pwhash_argon2i_str=xn.ke)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_pwhash_argon2i_str_verify=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_argon2i_str_verify=xn.le)(Mn,Zn,rr,mr),Rt._crypto_pwhash_argon2i_str_needs_rehash=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_argon2i_str_needs_rehash=xn.me)(Mn,Zn,rr,mr),Rt._crypto_pwhash_argon2id_str_needs_rehash=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_argon2id_str_needs_rehash=xn.ne)(Mn,Zn,rr,mr),Rt._crypto_pwhash_argon2id_alg_argon2id13=()=>(Rt._crypto_pwhash_argon2id_alg_argon2id13=xn.oe)(),Rt._crypto_pwhash_argon2id_bytes_min=()=>(Rt._crypto_pwhash_argon2id_bytes_min=xn.pe)(),Rt._crypto_pwhash_argon2id_bytes_max=()=>(Rt._crypto_pwhash_argon2id_bytes_max=xn.qe)(),Rt._crypto_pwhash_argon2id_passwd_min=()=>(Rt._crypto_pwhash_argon2id_passwd_min=xn.re)(),Rt._crypto_pwhash_argon2id_passwd_max=()=>(Rt._crypto_pwhash_argon2id_passwd_max=xn.se)(),Rt._crypto_pwhash_argon2id_saltbytes=()=>(Rt._crypto_pwhash_argon2id_saltbytes=xn.te)(),Rt._crypto_pwhash_argon2id_strbytes=()=>(Rt._crypto_pwhash_argon2id_strbytes=xn.ue)(),Rt._crypto_pwhash_argon2id_strprefix=()=>(Rt._crypto_pwhash_argon2id_strprefix=xn.ve)(),Rt._crypto_pwhash_argon2id_opslimit_min=()=>(Rt._crypto_pwhash_argon2id_opslimit_min=xn.we)(),Rt._crypto_pwhash_argon2id_opslimit_max=()=>(Rt._crypto_pwhash_argon2id_opslimit_max=xn.xe)(),Rt._crypto_pwhash_argon2id_memlimit_min=()=>(Rt._crypto_pwhash_argon2id_memlimit_min=xn.ye)(),Rt._crypto_pwhash_argon2id_memlimit_max=()=>(Rt._crypto_pwhash_argon2id_memlimit_max=xn.ze)(),Rt._crypto_pwhash_argon2id_opslimit_interactive=()=>(Rt._crypto_pwhash_argon2id_opslimit_interactive=xn.Ae)(),Rt._crypto_pwhash_argon2id_memlimit_interactive=()=>(Rt._crypto_pwhash_argon2id_memlimit_interactive=xn.Be)(),Rt._crypto_pwhash_argon2id_opslimit_moderate=()=>(Rt._crypto_pwhash_argon2id_opslimit_moderate=xn.Ce)(),Rt._crypto_pwhash_argon2id_memlimit_moderate=()=>(Rt._crypto_pwhash_argon2id_memlimit_moderate=xn.De)(),Rt._crypto_pwhash_argon2id_opslimit_sensitive=()=>(Rt._crypto_pwhash_argon2id_opslimit_sensitive=xn.Ee)(),Rt._crypto_pwhash_argon2id_memlimit_sensitive=()=>(Rt._crypto_pwhash_argon2id_memlimit_sensitive=xn.Fe)(),Rt._crypto_pwhash_argon2id=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_pwhash_argon2id=xn.Ge)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_pwhash_argon2id_str=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_pwhash_argon2id_str=xn.He)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_pwhash_argon2id_str_verify=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_argon2id_str_verify=xn.Ie)(Mn,Zn,rr,mr),Rt._crypto_pwhash_alg_argon2i13=()=>(Rt._crypto_pwhash_alg_argon2i13=xn.Je)(),Rt._crypto_pwhash_alg_argon2id13=()=>(Rt._crypto_pwhash_alg_argon2id13=xn.Ke)(),Rt._crypto_pwhash_alg_default=()=>(Rt._crypto_pwhash_alg_default=xn.Le)(),Rt._crypto_pwhash_bytes_min=()=>(Rt._crypto_pwhash_bytes_min=xn.Me)(),Rt._crypto_pwhash_bytes_max=()=>(Rt._crypto_pwhash_bytes_max=xn.Ne)(),Rt._crypto_pwhash_passwd_min=()=>(Rt._crypto_pwhash_passwd_min=xn.Oe)(),Rt._crypto_pwhash_passwd_max=()=>(Rt._crypto_pwhash_passwd_max=xn.Pe)(),Rt._crypto_pwhash_saltbytes=()=>(Rt._crypto_pwhash_saltbytes=xn.Qe)(),Rt._crypto_pwhash_strbytes=()=>(Rt._crypto_pwhash_strbytes=xn.Re)(),Rt._crypto_pwhash_strprefix=()=>(Rt._crypto_pwhash_strprefix=xn.Se)(),Rt._crypto_pwhash_opslimit_min=()=>(Rt._crypto_pwhash_opslimit_min=xn.Te)(),Rt._crypto_pwhash_opslimit_max=()=>(Rt._crypto_pwhash_opslimit_max=xn.Ue)(),Rt._crypto_pwhash_memlimit_min=()=>(Rt._crypto_pwhash_memlimit_min=xn.Ve)(),Rt._crypto_pwhash_memlimit_max=()=>(Rt._crypto_pwhash_memlimit_max=xn.We)(),Rt._crypto_pwhash_opslimit_interactive=()=>(Rt._crypto_pwhash_opslimit_interactive=xn.Xe)(),Rt._crypto_pwhash_memlimit_interactive=()=>(Rt._crypto_pwhash_memlimit_interactive=xn.Ye)(),Rt._crypto_pwhash_opslimit_moderate=()=>(Rt._crypto_pwhash_opslimit_moderate=xn.Ze)(),Rt._crypto_pwhash_memlimit_moderate=()=>(Rt._crypto_pwhash_memlimit_moderate=xn._e)(),Rt._crypto_pwhash_opslimit_sensitive=()=>(Rt._crypto_pwhash_opslimit_sensitive=xn.$e)(),Rt._crypto_pwhash_memlimit_sensitive=()=>(Rt._crypto_pwhash_memlimit_sensitive=xn.af)(),Rt._crypto_pwhash=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr)=>(Rt._crypto_pwhash=xn.bf)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr),Rt._crypto_pwhash_str=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_pwhash_str=xn.cf)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_pwhash_str_alg=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_pwhash_str_alg=xn.df)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_pwhash_str_verify=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_str_verify=xn.ef)(Mn,Zn,rr,mr),Rt._crypto_pwhash_str_needs_rehash=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_str_needs_rehash=xn.ff)(Mn,Zn,rr,mr),Rt._crypto_pwhash_primitive=()=>(Rt._crypto_pwhash_primitive=xn.gf)(),Rt._crypto_scalarmult_primitive=()=>(Rt._crypto_scalarmult_primitive=xn.hf)(),Rt._crypto_scalarmult_base=(Mn,Zn)=>(Rt._crypto_scalarmult_base=xn.jf)(Mn,Zn),Rt._crypto_scalarmult=(Mn,Zn,rr)=>(Rt._crypto_scalarmult=xn.kf)(Mn,Zn,rr),Rt._crypto_scalarmult_bytes=()=>(Rt._crypto_scalarmult_bytes=xn.lf)(),Rt._crypto_scalarmult_scalarbytes=()=>(Rt._crypto_scalarmult_scalarbytes=xn.mf)(),Rt._crypto_scalarmult_curve25519=(Mn,Zn,rr)=>(Rt._crypto_scalarmult_curve25519=xn.nf)(Mn,Zn,rr),Rt._crypto_scalarmult_curve25519_base=(Mn,Zn)=>(Rt._crypto_scalarmult_curve25519_base=xn.of)(Mn,Zn),Rt._crypto_scalarmult_curve25519_bytes=()=>(Rt._crypto_scalarmult_curve25519_bytes=xn.pf)(),Rt._crypto_scalarmult_curve25519_scalarbytes=()=>(Rt._crypto_scalarmult_curve25519_scalarbytes=xn.qf)(),Rt._crypto_secretbox_keybytes=()=>(Rt._crypto_secretbox_keybytes=xn.rf)(),Rt._crypto_secretbox_noncebytes=()=>(Rt._crypto_secretbox_noncebytes=xn.sf)(),Rt._crypto_secretbox_zerobytes=()=>(Rt._crypto_secretbox_zerobytes=xn.tf)(),Rt._crypto_secretbox_boxzerobytes=()=>(Rt._crypto_secretbox_boxzerobytes=xn.uf)(),Rt._crypto_secretbox_macbytes=()=>(Rt._crypto_secretbox_macbytes=xn.vf)(),Rt._crypto_secretbox_messagebytes_max=()=>(Rt._crypto_secretbox_messagebytes_max=xn.wf)(),Rt._crypto_secretbox_primitive=()=>(Rt._crypto_secretbox_primitive=xn.xf)(),Rt._crypto_secretbox=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox=xn.yf)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_open=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox_open=xn.zf)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_keygen=Mn=>(Rt._crypto_secretbox_keygen=xn.Af)(Mn),Rt._crypto_secretbox_detached=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_secretbox_detached=xn.Bf)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_secretbox_easy=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox_easy=xn.Cf)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_open_detached=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_secretbox_open_detached=xn.Df)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_secretbox_open_easy=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox_open_easy=xn.Ef)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_xsalsa20poly1305=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox_xsalsa20poly1305=xn.Ff)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_xsalsa20poly1305_open=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox_xsalsa20poly1305_open=xn.Gf)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_xsalsa20poly1305_keybytes=()=>(Rt._crypto_secretbox_xsalsa20poly1305_keybytes=xn.Hf)(),Rt._crypto_secretbox_xsalsa20poly1305_noncebytes=()=>(Rt._crypto_secretbox_xsalsa20poly1305_noncebytes=xn.If)(),Rt._crypto_secretbox_xsalsa20poly1305_zerobytes=()=>(Rt._crypto_secretbox_xsalsa20poly1305_zerobytes=xn.Jf)(),Rt._crypto_secretbox_xsalsa20poly1305_boxzerobytes=()=>(Rt._crypto_secretbox_xsalsa20poly1305_boxzerobytes=xn.Kf)(),Rt._crypto_secretbox_xsalsa20poly1305_macbytes=()=>(Rt._crypto_secretbox_xsalsa20poly1305_macbytes=xn.Lf)(),Rt._crypto_secretbox_xsalsa20poly1305_messagebytes_max=()=>(Rt._crypto_secretbox_xsalsa20poly1305_messagebytes_max=xn.Mf)(),Rt._crypto_secretbox_xsalsa20poly1305_keygen=Mn=>(Rt._crypto_secretbox_xsalsa20poly1305_keygen=xn.Nf)(Mn),Rt._crypto_secretstream_xchacha20poly1305_keygen=Mn=>(Rt._crypto_secretstream_xchacha20poly1305_keygen=xn.Of)(Mn),Rt._crypto_secretstream_xchacha20poly1305_init_push=(Mn,Zn,rr)=>(Rt._crypto_secretstream_xchacha20poly1305_init_push=xn.Pf)(Mn,Zn,rr),Rt._crypto_secretstream_xchacha20poly1305_init_pull=(Mn,Zn,rr)=>(Rt._crypto_secretstream_xchacha20poly1305_init_pull=xn.Qf)(Mn,Zn,rr),Rt._crypto_secretstream_xchacha20poly1305_rekey=Mn=>(Rt._crypto_secretstream_xchacha20poly1305_rekey=xn.Rf)(Mn),Rt._crypto_secretstream_xchacha20poly1305_push=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br)=>(Rt._crypto_secretstream_xchacha20poly1305_push=xn.Sf)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br),Rt._crypto_secretstream_xchacha20poly1305_pull=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br)=>(Rt._crypto_secretstream_xchacha20poly1305_pull=xn.Tf)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br),Rt._crypto_secretstream_xchacha20poly1305_statebytes=()=>(Rt._crypto_secretstream_xchacha20poly1305_statebytes=xn.Uf)(),Rt._crypto_secretstream_xchacha20poly1305_abytes=()=>(Rt._crypto_secretstream_xchacha20poly1305_abytes=xn.Vf)(),Rt._crypto_secretstream_xchacha20poly1305_headerbytes=()=>(Rt._crypto_secretstream_xchacha20poly1305_headerbytes=xn.Wf)(),Rt._crypto_secretstream_xchacha20poly1305_keybytes=()=>(Rt._crypto_secretstream_xchacha20poly1305_keybytes=xn.Xf)(),Rt._crypto_secretstream_xchacha20poly1305_messagebytes_max=()=>(Rt._crypto_secretstream_xchacha20poly1305_messagebytes_max=xn.Yf)(),Rt._crypto_secretstream_xchacha20poly1305_tag_message=()=>(Rt._crypto_secretstream_xchacha20poly1305_tag_message=xn.Zf)(),Rt._crypto_secretstream_xchacha20poly1305_tag_push=()=>(Rt._crypto_secretstream_xchacha20poly1305_tag_push=xn._f)(),Rt._crypto_secretstream_xchacha20poly1305_tag_rekey=()=>(Rt._crypto_secretstream_xchacha20poly1305_tag_rekey=xn.$f)(),Rt._crypto_secretstream_xchacha20poly1305_tag_final=()=>(Rt._crypto_secretstream_xchacha20poly1305_tag_final=xn.ag)(),Rt._crypto_shorthash_bytes=()=>(Rt._crypto_shorthash_bytes=xn.bg)(),Rt._crypto_shorthash_keybytes=()=>(Rt._crypto_shorthash_keybytes=xn.cg)(),Rt._crypto_shorthash_primitive=()=>(Rt._crypto_shorthash_primitive=xn.dg)(),Rt._crypto_shorthash=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_shorthash=xn.eg)(Mn,Zn,rr,mr,pn),Rt._crypto_shorthash_keygen=Mn=>(Rt._crypto_shorthash_keygen=xn.fg)(Mn),Rt._crypto_shorthash_siphash24_bytes=()=>(Rt._crypto_shorthash_siphash24_bytes=xn.gg)(),Rt._crypto_shorthash_siphash24_keybytes=()=>(Rt._crypto_shorthash_siphash24_keybytes=xn.hg)(),Rt._crypto_shorthash_siphash24=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_shorthash_siphash24=xn.ig)(Mn,Zn,rr,mr,pn),Rt._crypto_sign_statebytes=()=>(Rt._crypto_sign_statebytes=xn.jg)(),Rt._crypto_sign_bytes=()=>(Rt._crypto_sign_bytes=xn.kg)(),Rt._crypto_sign_seedbytes=()=>(Rt._crypto_sign_seedbytes=xn.lg)(),Rt._crypto_sign_publickeybytes=()=>(Rt._crypto_sign_publickeybytes=xn.mg)(),Rt._crypto_sign_secretkeybytes=()=>(Rt._crypto_sign_secretkeybytes=xn.ng)(),Rt._crypto_sign_messagebytes_max=()=>(Rt._crypto_sign_messagebytes_max=xn.og)(),Rt._crypto_sign_primitive=()=>(Rt._crypto_sign_primitive=xn.pg)(),Rt._crypto_sign_seed_keypair=(Mn,Zn,rr)=>(Rt._crypto_sign_seed_keypair=xn.qg)(Mn,Zn,rr),Rt._crypto_sign_keypair=(Mn,Zn)=>(Rt._crypto_sign_keypair=xn.rg)(Mn,Zn),Rt._crypto_sign=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_sign=xn.sg)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_sign_open=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_sign_open=xn.tg)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_sign_detached=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_sign_detached=xn.ug)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_sign_verify_detached=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_sign_verify_detached=xn.vg)(Mn,Zn,rr,mr,pn),Rt._crypto_sign_init=Mn=>(Rt._crypto_sign_init=xn.wg)(Mn),Rt._crypto_sign_update=(Mn,Zn,rr,mr)=>(Rt._crypto_sign_update=xn.xg)(Mn,Zn,rr,mr),Rt._crypto_sign_final_create=(Mn,Zn,rr,mr)=>(Rt._crypto_sign_final_create=xn.yg)(Mn,Zn,rr,mr),Rt._crypto_sign_final_verify=(Mn,Zn,rr)=>(Rt._crypto_sign_final_verify=xn.zg)(Mn,Zn,rr),Rt._crypto_sign_ed25519ph_statebytes=()=>(Rt._crypto_sign_ed25519ph_statebytes=xn.Ag)(),Rt._crypto_sign_ed25519_bytes=()=>(Rt._crypto_sign_ed25519_bytes=xn.Bg)(),Rt._crypto_sign_ed25519_seedbytes=()=>(Rt._crypto_sign_ed25519_seedbytes=xn.Cg)(),Rt._crypto_sign_ed25519_publickeybytes=()=>(Rt._crypto_sign_ed25519_publickeybytes=xn.Dg)(),Rt._crypto_sign_ed25519_secretkeybytes=()=>(Rt._crypto_sign_ed25519_secretkeybytes=xn.Eg)(),Rt._crypto_sign_ed25519_messagebytes_max=()=>(Rt._crypto_sign_ed25519_messagebytes_max=xn.Fg)(),Rt._crypto_sign_ed25519_sk_to_seed=(Mn,Zn)=>(Rt._crypto_sign_ed25519_sk_to_seed=xn.Gg)(Mn,Zn),Rt._crypto_sign_ed25519_sk_to_pk=(Mn,Zn)=>(Rt._crypto_sign_ed25519_sk_to_pk=xn.Hg)(Mn,Zn),Rt._crypto_sign_ed25519ph_init=Mn=>(Rt._crypto_sign_ed25519ph_init=xn.Ig)(Mn),Rt._crypto_sign_ed25519ph_update=(Mn,Zn,rr,mr)=>(Rt._crypto_sign_ed25519ph_update=xn.Jg)(Mn,Zn,rr,mr),Rt._crypto_sign_ed25519ph_final_create=(Mn,Zn,rr,mr)=>(Rt._crypto_sign_ed25519ph_final_create=xn.Kg)(Mn,Zn,rr,mr),Rt._crypto_sign_ed25519ph_final_verify=(Mn,Zn,rr)=>(Rt._crypto_sign_ed25519ph_final_verify=xn.Lg)(Mn,Zn,rr),Rt._crypto_sign_ed25519_seed_keypair=(Mn,Zn,rr)=>(Rt._crypto_sign_ed25519_seed_keypair=xn.Mg)(Mn,Zn,rr),Rt._crypto_sign_ed25519_keypair=(Mn,Zn)=>(Rt._crypto_sign_ed25519_keypair=xn.Ng)(Mn,Zn),Rt._crypto_sign_ed25519_pk_to_curve25519=(Mn,Zn)=>(Rt._crypto_sign_ed25519_pk_to_curve25519=xn.Og)(Mn,Zn),Rt._crypto_sign_ed25519_sk_to_curve25519=(Mn,Zn)=>(Rt._crypto_sign_ed25519_sk_to_curve25519=xn.Pg)(Mn,Zn),Rt._crypto_sign_ed25519_verify_detached=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_sign_ed25519_verify_detached=xn.Qg)(Mn,Zn,rr,mr,pn),Rt._crypto_sign_ed25519_open=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_sign_ed25519_open=xn.Rg)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_sign_ed25519_detached=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_sign_ed25519_detached=xn.Sg)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_sign_ed25519=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_sign_ed25519=xn.Tg)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_chacha20_keybytes=()=>(Rt._crypto_stream_chacha20_keybytes=xn.Ug)(),Rt._crypto_stream_chacha20_noncebytes=()=>(Rt._crypto_stream_chacha20_noncebytes=xn.Vg)(),Rt._crypto_stream_chacha20_messagebytes_max=()=>(Rt._crypto_stream_chacha20_messagebytes_max=xn.Wg)(),Rt._crypto_stream_chacha20_ietf_keybytes=()=>(Rt._crypto_stream_chacha20_ietf_keybytes=xn.Xg)(),Rt._crypto_stream_chacha20_ietf_noncebytes=()=>(Rt._crypto_stream_chacha20_ietf_noncebytes=xn.Yg)(),Rt._crypto_stream_chacha20_ietf_messagebytes_max=()=>(Rt._crypto_stream_chacha20_ietf_messagebytes_max=xn.Zg)(),Rt._crypto_stream_chacha20=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream_chacha20=xn._g)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_chacha20_xor_ic=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_stream_chacha20_xor_ic=xn.$g)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_stream_chacha20_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_chacha20_xor=xn.ah)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_chacha20_ietf=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream_chacha20_ietf=xn.bh)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_chacha20_ietf_xor_ic=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_stream_chacha20_ietf_xor_ic=xn.ch)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_stream_chacha20_ietf_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_chacha20_ietf_xor=xn.dh)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_chacha20_ietf_keygen=Mn=>(Rt._crypto_stream_chacha20_ietf_keygen=xn.eh)(Mn),Rt._crypto_stream_chacha20_keygen=Mn=>(Rt._crypto_stream_chacha20_keygen=xn.fh)(Mn),Rt._crypto_stream_keybytes=()=>(Rt._crypto_stream_keybytes=xn.gh)(),Rt._crypto_stream_noncebytes=()=>(Rt._crypto_stream_noncebytes=xn.hh)(),Rt._crypto_stream_messagebytes_max=()=>(Rt._crypto_stream_messagebytes_max=xn.ih)(),Rt._crypto_stream_primitive=()=>(Rt._crypto_stream_primitive=xn.jh)(),Rt._crypto_stream=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream=xn.kh)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_xor=xn.lh)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_keygen=Mn=>(Rt._crypto_stream_keygen=xn.mh)(Mn),Rt._crypto_stream_salsa20_keybytes=()=>(Rt._crypto_stream_salsa20_keybytes=xn.nh)(),Rt._crypto_stream_salsa20_noncebytes=()=>(Rt._crypto_stream_salsa20_noncebytes=xn.oh)(),Rt._crypto_stream_salsa20_messagebytes_max=()=>(Rt._crypto_stream_salsa20_messagebytes_max=xn.ph)(),Rt._crypto_stream_salsa20=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream_salsa20=xn.qh)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_salsa20_xor_ic=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_stream_salsa20_xor_ic=xn.rh)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_stream_salsa20_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_salsa20_xor=xn.sh)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_salsa20_keygen=Mn=>(Rt._crypto_stream_salsa20_keygen=xn.th)(Mn),Rt._crypto_stream_xsalsa20=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream_xsalsa20=xn.uh)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_xsalsa20_xor_ic=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_stream_xsalsa20_xor_ic=xn.vh)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_stream_xsalsa20_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_xsalsa20_xor=xn.wh)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_xsalsa20_keybytes=()=>(Rt._crypto_stream_xsalsa20_keybytes=xn.xh)(),Rt._crypto_stream_xsalsa20_noncebytes=()=>(Rt._crypto_stream_xsalsa20_noncebytes=xn.yh)(),Rt._crypto_stream_xsalsa20_messagebytes_max=()=>(Rt._crypto_stream_xsalsa20_messagebytes_max=xn.zh)(),Rt._crypto_stream_xsalsa20_keygen=Mn=>(Rt._crypto_stream_xsalsa20_keygen=xn.Ah)(Mn),Rt._crypto_verify_16_bytes=()=>(Rt._crypto_verify_16_bytes=xn.Bh)(),Rt._crypto_verify_32_bytes=()=>(Rt._crypto_verify_32_bytes=xn.Ch)(),Rt._crypto_verify_64_bytes=()=>(Rt._crypto_verify_64_bytes=xn.Dh)(),Rt._crypto_verify_16=(Mn,Zn)=>(Rt._crypto_verify_16=xn.Eh)(Mn,Zn),Rt._crypto_verify_32=(Mn,Zn)=>(Rt._crypto_verify_32=xn.Fh)(Mn,Zn),Rt._crypto_verify_64=(Mn,Zn)=>(Rt._crypto_verify_64=xn.Gh)(Mn,Zn),Rt._randombytes_implementation_name=()=>(Rt._randombytes_implementation_name=xn.Hh)(),Rt._randombytes_random=()=>(Rt._randombytes_random=xn.Ih)(),Rt._randombytes_stir=()=>(Rt._randombytes_stir=xn.Jh)(),Rt._randombytes_uniform=Mn=>(Rt._randombytes_uniform=xn.Kh)(Mn),Rt._randombytes_buf=(Mn,Zn)=>(Rt._randombytes_buf=xn.Lh)(Mn,Zn),Rt._randombytes_buf_deterministic=(Mn,Zn,rr)=>(Rt._randombytes_buf_deterministic=xn.Mh)(Mn,Zn,rr),Rt._randombytes_seedbytes=()=>(Rt._randombytes_seedbytes=xn.Nh)(),Rt._randombytes_close=()=>(Rt._randombytes_close=xn.Oh)(),Rt._randombytes=(Mn,Zn,rr)=>(Rt._randombytes=xn.Ph)(Mn,Zn,rr),Rt._sodium_bin2hex=(Mn,Zn,rr,mr)=>(Rt._sodium_bin2hex=xn.Qh)(Mn,Zn,rr,mr),Rt._sodium_hex2bin=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._sodium_hex2bin=xn.Rh)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._sodium_base64_encoded_len=(Mn,Zn)=>(Rt._sodium_base64_encoded_len=xn.Sh)(Mn,Zn),Rt._sodium_bin2base64=(Mn,Zn,rr,mr,pn)=>(Rt._sodium_bin2base64=xn.Th)(Mn,Zn,rr,mr,pn),Rt._sodium_base642bin=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._sodium_base642bin=xn.Uh)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._sodium_init=()=>(Rt._sodium_init=xn.Vh)(),Rt._sodium_pad=(Mn,Zn,rr,mr,pn)=>(Rt._sodium_pad=xn.Wh)(Mn,Zn,rr,mr,pn),Rt._sodium_unpad=(Mn,Zn,rr,mr)=>(Rt._sodium_unpad=xn.Xh)(Mn,Zn,rr,mr),Rt._sodium_version_string=()=>(Rt._sodium_version_string=xn.Yh)(),Rt._sodium_library_version_major=()=>(Rt._sodium_library_version_major=xn.Zh)(),Rt._sodium_library_version_minor=()=>(Rt._sodium_library_version_minor=xn._h)(),Rt._sodium_library_minimal=()=>(Rt._sodium_library_minimal=xn.$h)(),Rt._crypto_box_curve25519xchacha20poly1305_seed_keypair=(Mn,Zn,rr)=>(Rt._crypto_box_curve25519xchacha20poly1305_seed_keypair=xn.ai)(Mn,Zn,rr),Rt._crypto_box_curve25519xchacha20poly1305_keypair=(Mn,Zn)=>(Rt._crypto_box_curve25519xchacha20poly1305_keypair=xn.bi)(Mn,Zn),Rt._crypto_box_curve25519xchacha20poly1305_beforenm=(Mn,Zn,rr)=>(Rt._crypto_box_curve25519xchacha20poly1305_beforenm=xn.ci)(Mn,Zn,rr),Rt._crypto_box_curve25519xchacha20poly1305_detached_afternm=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_curve25519xchacha20poly1305_detached_afternm=xn.di)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_curve25519xchacha20poly1305_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_box_curve25519xchacha20poly1305_detached=xn.ei)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_box_curve25519xchacha20poly1305_easy_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_curve25519xchacha20poly1305_easy_afternm=xn.fi)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_curve25519xchacha20poly1305_easy=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_curve25519xchacha20poly1305_easy=xn.gi)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=xn.hi)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_curve25519xchacha20poly1305_open_detached=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_box_curve25519xchacha20poly1305_open_detached=xn.ii)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=xn.ji)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_curve25519xchacha20poly1305_open_easy=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_box_curve25519xchacha20poly1305_open_easy=xn.ki)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_box_curve25519xchacha20poly1305_seedbytes=()=>(Rt._crypto_box_curve25519xchacha20poly1305_seedbytes=xn.li)(),Rt._crypto_box_curve25519xchacha20poly1305_publickeybytes=()=>(Rt._crypto_box_curve25519xchacha20poly1305_publickeybytes=xn.mi)(),Rt._crypto_box_curve25519xchacha20poly1305_secretkeybytes=()=>(Rt._crypto_box_curve25519xchacha20poly1305_secretkeybytes=xn.ni)(),Rt._crypto_box_curve25519xchacha20poly1305_beforenmbytes=()=>(Rt._crypto_box_curve25519xchacha20poly1305_beforenmbytes=xn.oi)(),Rt._crypto_box_curve25519xchacha20poly1305_noncebytes=()=>(Rt._crypto_box_curve25519xchacha20poly1305_noncebytes=xn.pi)(),Rt._crypto_box_curve25519xchacha20poly1305_macbytes=()=>(Rt._crypto_box_curve25519xchacha20poly1305_macbytes=xn.qi)(),Rt._crypto_box_curve25519xchacha20poly1305_messagebytes_max=()=>(Rt._crypto_box_curve25519xchacha20poly1305_messagebytes_max=xn.ri)(),Rt._crypto_box_curve25519xchacha20poly1305_seal=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_box_curve25519xchacha20poly1305_seal=xn.si)(Mn,Zn,rr,mr,pn),Rt._crypto_box_curve25519xchacha20poly1305_seal_open=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_box_curve25519xchacha20poly1305_seal_open=xn.ti)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_box_curve25519xchacha20poly1305_sealbytes=()=>(Rt._crypto_box_curve25519xchacha20poly1305_sealbytes=xn.ui)(),Rt._crypto_core_ed25519_is_valid_point=Mn=>(Rt._crypto_core_ed25519_is_valid_point=xn.vi)(Mn),Rt._crypto_core_ed25519_add=(Mn,Zn,rr)=>(Rt._crypto_core_ed25519_add=xn.wi)(Mn,Zn,rr),Rt._crypto_core_ed25519_sub=(Mn,Zn,rr)=>(Rt._crypto_core_ed25519_sub=xn.xi)(Mn,Zn,rr),Rt._crypto_core_ed25519_from_uniform=(Mn,Zn)=>(Rt._crypto_core_ed25519_from_uniform=xn.yi)(Mn,Zn),Rt._crypto_core_ed25519_random=Mn=>(Rt._crypto_core_ed25519_random=xn.zi)(Mn),Rt._crypto_core_ed25519_scalar_random=Mn=>(Rt._crypto_core_ed25519_scalar_random=xn.Ai)(Mn),Rt._crypto_core_ed25519_scalar_invert=(Mn,Zn)=>(Rt._crypto_core_ed25519_scalar_invert=xn.Bi)(Mn,Zn),Rt._crypto_core_ed25519_scalar_negate=(Mn,Zn)=>(Rt._crypto_core_ed25519_scalar_negate=xn.Ci)(Mn,Zn),Rt._crypto_core_ed25519_scalar_complement=(Mn,Zn)=>(Rt._crypto_core_ed25519_scalar_complement=xn.Di)(Mn,Zn),Rt._crypto_core_ed25519_scalar_add=(Mn,Zn,rr)=>(Rt._crypto_core_ed25519_scalar_add=xn.Ei)(Mn,Zn,rr),Rt._crypto_core_ed25519_scalar_reduce=(Mn,Zn)=>(Rt._crypto_core_ed25519_scalar_reduce=xn.Fi)(Mn,Zn),Rt._crypto_core_ed25519_scalar_sub=(Mn,Zn,rr)=>(Rt._crypto_core_ed25519_scalar_sub=xn.Gi)(Mn,Zn,rr),Rt._crypto_core_ed25519_scalar_mul=(Mn,Zn,rr)=>(Rt._crypto_core_ed25519_scalar_mul=xn.Hi)(Mn,Zn,rr),Rt._crypto_core_ed25519_bytes=()=>(Rt._crypto_core_ed25519_bytes=xn.Ii)(),Rt._crypto_core_ed25519_nonreducedscalarbytes=()=>(Rt._crypto_core_ed25519_nonreducedscalarbytes=xn.Ji)(),Rt._crypto_core_ed25519_uniformbytes=()=>(Rt._crypto_core_ed25519_uniformbytes=xn.Ki)(),Rt._crypto_core_ed25519_hashbytes=()=>(Rt._crypto_core_ed25519_hashbytes=xn.Li)(),Rt._crypto_core_ed25519_scalarbytes=()=>(Rt._crypto_core_ed25519_scalarbytes=xn.Mi)(),Rt._crypto_core_ristretto255_is_valid_point=Mn=>(Rt._crypto_core_ristretto255_is_valid_point=xn.Ni)(Mn),Rt._crypto_core_ristretto255_add=(Mn,Zn,rr)=>(Rt._crypto_core_ristretto255_add=xn.Oi)(Mn,Zn,rr),Rt._crypto_core_ristretto255_sub=(Mn,Zn,rr)=>(Rt._crypto_core_ristretto255_sub=xn.Pi)(Mn,Zn,rr),Rt._crypto_core_ristretto255_from_hash=(Mn,Zn)=>(Rt._crypto_core_ristretto255_from_hash=xn.Qi)(Mn,Zn),Rt._crypto_core_ristretto255_random=Mn=>(Rt._crypto_core_ristretto255_random=xn.Ri)(Mn),Rt._crypto_core_ristretto255_scalar_random=Mn=>(Rt._crypto_core_ristretto255_scalar_random=xn.Si)(Mn),Rt._crypto_core_ristretto255_scalar_invert=(Mn,Zn)=>(Rt._crypto_core_ristretto255_scalar_invert=xn.Ti)(Mn,Zn),Rt._crypto_core_ristretto255_scalar_negate=(Mn,Zn)=>(Rt._crypto_core_ristretto255_scalar_negate=xn.Ui)(Mn,Zn),Rt._crypto_core_ristretto255_scalar_complement=(Mn,Zn)=>(Rt._crypto_core_ristretto255_scalar_complement=xn.Vi)(Mn,Zn),Rt._crypto_core_ristretto255_scalar_add=(Mn,Zn,rr)=>(Rt._crypto_core_ristretto255_scalar_add=xn.Wi)(Mn,Zn,rr),Rt._crypto_core_ristretto255_scalar_sub=(Mn,Zn,rr)=>(Rt._crypto_core_ristretto255_scalar_sub=xn.Xi)(Mn,Zn,rr),Rt._crypto_core_ristretto255_scalar_mul=(Mn,Zn,rr)=>(Rt._crypto_core_ristretto255_scalar_mul=xn.Yi)(Mn,Zn,rr),Rt._crypto_core_ristretto255_scalar_reduce=(Mn,Zn)=>(Rt._crypto_core_ristretto255_scalar_reduce=xn.Zi)(Mn,Zn),Rt._crypto_core_ristretto255_bytes=()=>(Rt._crypto_core_ristretto255_bytes=xn._i)(),Rt._crypto_core_ristretto255_nonreducedscalarbytes=()=>(Rt._crypto_core_ristretto255_nonreducedscalarbytes=xn.$i)(),Rt._crypto_core_ristretto255_hashbytes=()=>(Rt._crypto_core_ristretto255_hashbytes=xn.aj)(),Rt._crypto_core_ristretto255_scalarbytes=()=>(Rt._crypto_core_ristretto255_scalarbytes=xn.bj)(),Rt._crypto_pwhash_scryptsalsa208sha256_ll=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br)=>(Rt._crypto_pwhash_scryptsalsa208sha256_ll=xn.cj)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br),Rt._crypto_pwhash_scryptsalsa208sha256_bytes_min=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_bytes_min=xn.dj)(),Rt._crypto_pwhash_scryptsalsa208sha256_bytes_max=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_bytes_max=xn.ej)(),Rt._crypto_pwhash_scryptsalsa208sha256_passwd_min=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_passwd_min=xn.fj)(),Rt._crypto_pwhash_scryptsalsa208sha256_passwd_max=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_passwd_max=xn.gj)(),Rt._crypto_pwhash_scryptsalsa208sha256_saltbytes=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_saltbytes=xn.hj)(),Rt._crypto_pwhash_scryptsalsa208sha256_strbytes=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_strbytes=xn.ij)(),Rt._crypto_pwhash_scryptsalsa208sha256_strprefix=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_strprefix=xn.jj)(),Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_min=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_min=xn.kj)(),Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_max=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_max=xn.lj)(),Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_min=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_min=xn.mj)(),Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_max=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_max=xn.nj)(),Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=xn.oj)(),Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=xn.pj)(),Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=xn.qj)(),Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=()=>(Rt._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=xn.rj)(),Rt._crypto_pwhash_scryptsalsa208sha256=(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br)=>(Rt._crypto_pwhash_scryptsalsa208sha256=xn.sj)(Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br),Rt._crypto_pwhash_scryptsalsa208sha256_str=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_pwhash_scryptsalsa208sha256_str=xn.tj)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_pwhash_scryptsalsa208sha256_str_verify=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_scryptsalsa208sha256_str_verify=xn.uj)(Mn,Zn,rr,mr),Rt._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=(Mn,Zn,rr,mr)=>(Rt._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=xn.vj)(Mn,Zn,rr,mr),Rt._crypto_scalarmult_ed25519=(Mn,Zn,rr)=>(Rt._crypto_scalarmult_ed25519=xn.wj)(Mn,Zn,rr),Rt._crypto_scalarmult_ed25519_noclamp=(Mn,Zn,rr)=>(Rt._crypto_scalarmult_ed25519_noclamp=xn.xj)(Mn,Zn,rr),Rt._crypto_scalarmult_ed25519_base=(Mn,Zn)=>(Rt._crypto_scalarmult_ed25519_base=xn.yj)(Mn,Zn),Rt._crypto_scalarmult_ed25519_base_noclamp=(Mn,Zn)=>(Rt._crypto_scalarmult_ed25519_base_noclamp=xn.zj)(Mn,Zn),Rt._crypto_scalarmult_ed25519_bytes=()=>(Rt._crypto_scalarmult_ed25519_bytes=xn.Aj)(),Rt._crypto_scalarmult_ed25519_scalarbytes=()=>(Rt._crypto_scalarmult_ed25519_scalarbytes=xn.Bj)(),Rt._crypto_scalarmult_ristretto255=(Mn,Zn,rr)=>(Rt._crypto_scalarmult_ristretto255=xn.Cj)(Mn,Zn,rr),Rt._crypto_scalarmult_ristretto255_base=(Mn,Zn)=>(Rt._crypto_scalarmult_ristretto255_base=xn.Dj)(Mn,Zn),Rt._crypto_scalarmult_ristretto255_bytes=()=>(Rt._crypto_scalarmult_ristretto255_bytes=xn.Ej)(),Rt._crypto_scalarmult_ristretto255_scalarbytes=()=>(Rt._crypto_scalarmult_ristretto255_scalarbytes=xn.Fj)(),Rt._crypto_secretbox_xchacha20poly1305_detached=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_secretbox_xchacha20poly1305_detached=xn.Gj)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_secretbox_xchacha20poly1305_easy=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox_xchacha20poly1305_easy=xn.Hj)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_xchacha20poly1305_open_detached=(Mn,Zn,rr,mr,pn,Hr,ao)=>(Rt._crypto_secretbox_xchacha20poly1305_open_detached=xn.Ij)(Mn,Zn,rr,mr,pn,Hr,ao),Rt._crypto_secretbox_xchacha20poly1305_open_easy=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_secretbox_xchacha20poly1305_open_easy=xn.Jj)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_secretbox_xchacha20poly1305_keybytes=()=>(Rt._crypto_secretbox_xchacha20poly1305_keybytes=xn.Kj)(),Rt._crypto_secretbox_xchacha20poly1305_noncebytes=()=>(Rt._crypto_secretbox_xchacha20poly1305_noncebytes=xn.Lj)(),Rt._crypto_secretbox_xchacha20poly1305_macbytes=()=>(Rt._crypto_secretbox_xchacha20poly1305_macbytes=xn.Mj)(),Rt._crypto_secretbox_xchacha20poly1305_messagebytes_max=()=>(Rt._crypto_secretbox_xchacha20poly1305_messagebytes_max=xn.Nj)(),Rt._crypto_shorthash_siphashx24_bytes=()=>(Rt._crypto_shorthash_siphashx24_bytes=xn.Oj)(),Rt._crypto_shorthash_siphashx24_keybytes=()=>(Rt._crypto_shorthash_siphashx24_keybytes=xn.Pj)(),Rt._crypto_shorthash_siphashx24=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_shorthash_siphashx24=xn.Qj)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_salsa2012=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream_salsa2012=xn.Rj)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_salsa2012_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_salsa2012_xor=xn.Sj)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_salsa2012_keybytes=()=>(Rt._crypto_stream_salsa2012_keybytes=xn.Tj)(),Rt._crypto_stream_salsa2012_noncebytes=()=>(Rt._crypto_stream_salsa2012_noncebytes=xn.Uj)(),Rt._crypto_stream_salsa2012_messagebytes_max=()=>(Rt._crypto_stream_salsa2012_messagebytes_max=xn.Vj)(),Rt._crypto_stream_salsa2012_keygen=Mn=>(Rt._crypto_stream_salsa2012_keygen=xn.Wj)(Mn),Rt._crypto_stream_salsa208=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream_salsa208=xn.Xj)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_salsa208_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_salsa208_xor=xn.Yj)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_salsa208_keybytes=()=>(Rt._crypto_stream_salsa208_keybytes=xn.Zj)(),Rt._crypto_stream_salsa208_noncebytes=()=>(Rt._crypto_stream_salsa208_noncebytes=xn._j)(),Rt._crypto_stream_salsa208_messagebytes_max=()=>(Rt._crypto_stream_salsa208_messagebytes_max=xn.$j)(),Rt._crypto_stream_salsa208_keygen=Mn=>(Rt._crypto_stream_salsa208_keygen=xn.ak)(Mn),Rt._crypto_stream_xchacha20_keybytes=()=>(Rt._crypto_stream_xchacha20_keybytes=xn.bk)(),Rt._crypto_stream_xchacha20_noncebytes=()=>(Rt._crypto_stream_xchacha20_noncebytes=xn.ck)(),Rt._crypto_stream_xchacha20_messagebytes_max=()=>(Rt._crypto_stream_xchacha20_messagebytes_max=xn.dk)(),Rt._crypto_stream_xchacha20=(Mn,Zn,rr,mr,pn)=>(Rt._crypto_stream_xchacha20=xn.ek)(Mn,Zn,rr,mr,pn),Rt._crypto_stream_xchacha20_xor_ic=(Mn,Zn,rr,mr,pn,Hr,ao,No)=>(Rt._crypto_stream_xchacha20_xor_ic=xn.fk)(Mn,Zn,rr,mr,pn,Hr,ao,No),Rt._crypto_stream_xchacha20_xor=(Mn,Zn,rr,mr,pn,Hr)=>(Rt._crypto_stream_xchacha20_xor=xn.gk)(Mn,Zn,rr,mr,pn,Hr),Rt._crypto_stream_xchacha20_keygen=Mn=>(Rt._crypto_stream_xchacha20_keygen=xn.hk)(Mn),Rt._malloc=Mn=>(Rt._malloc=xn.ik)(Mn),Rt._free=Mn=>(Rt._free=xn.jk)(Mn),Rt.setValue=function(Mn,Zn,rr="i8"){switch(rr.endsWith("*")&&(rr="*"),rr){case"i1":case"i8":Ht[Mn>>0]=Zn;break;case"i16":yt[Mn>>1]=Zn;break;case"i32":$t[Mn>>2]=Zn;break;case"i64":Dt("to do setValue(i64) use WASM_BIGINT");case"float":Kt[Mn>>2]=Zn;break;case"double":St[Mn>>3]=Zn;break;case"*":Yt[Mn>>2]=Zn;break;default:Dt(`invalid type for setValue: ${rr}`)}},Rt.getValue=function(Mn,Zn="i8"){switch(Zn.endsWith("*")&&(Zn="*"),Zn){case"i1":case"i8":return Ht[Mn>>0];case"i16":return yt[Mn>>1];case"i32":return $t[Mn>>2];case"i64":Dt("to do getValue(i64) use WASM_BIGINT");case"float":return Kt[Mn>>2];case"double":return St[Mn>>3];case"*":return Yt[Mn>>2];default:Dt(`invalid type for getValue: ${Zn}`)}},Rt.UTF8ToString=xr,dn=function Mn(){Nn||_o(),Nn||(dn=Mn)},Rt.preInit)for(typeof Rt.preInit=="function"&&(Rt.preInit=[Rt.preInit]);Rt.preInit.length>0;)Rt.preInit.pop()();_o()}).catch(function(){return vt.useBackupModule()}),ht}typeof b.nodeName!="string"?ct(b):dt.libsodium=ct(dt.libsodium_mod||(dt.commonJsStrict={}))})(commonjsGlobal)}(libsodiumSumo,libsodiumSumo.exports)),libsodiumSumo.exports}(function(d){(function(b){function dt(lt,ht){var mt,vt="uint8array",kt=ht.ready.then(function(){function Rn(){if(mt._sodium_init()!==0)throw new Error("libsodium was not correctly initialized.");for(var Kn=["crypto_aead_aegis128l_decrypt","crypto_aead_aegis128l_decrypt_detached","crypto_aead_aegis128l_encrypt","crypto_aead_aegis128l_encrypt_detached","crypto_aead_aegis128l_keygen","crypto_aead_aegis256_decrypt","crypto_aead_aegis256_decrypt_detached","crypto_aead_aegis256_encrypt","crypto_aead_aegis256_encrypt_detached","crypto_aead_aegis256_keygen","crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_beforenm","crypto_box_curve25519xchacha20poly1305_detached","crypto_box_curve25519xchacha20poly1305_detached_afternm","crypto_box_curve25519xchacha20poly1305_easy","crypto_box_curve25519xchacha20poly1305_easy_afternm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_open_detached","crypto_box_curve25519xchacha20poly1305_open_detached_afternm","crypto_box_curve25519xchacha20poly1305_open_easy","crypto_box_curve25519xchacha20poly1305_open_easy_afternm","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_curve25519xchacha20poly1305_seed_keypair","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa208sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_version_string"],sr=[$t,Yt,Kt,St,It,Gt,Ut,Vt,qt,fn,dn,Dt,zt,tn,An,gn,Nn,wr,nr,fr,xr,zr,Jr,ro,xn,_o,Mn,Zn,rr,mr,pn,Hr,ao,No,Ro,br,yr,Qr,Vr,oo,Lr,po,fo,bo,Lo,Zr,Tr,sn,yn,Pn,Gr,gr,Wr,Zo,ba,ga,cs,fs,as,Ss,Qs,us,$s,dr,vr,Ir,Vn,kr,uo,Ao,Un,Go,Fn,Yn,qn,vn,Jn,ir,_r,Sr,no,eo,mo,Bo,Ft,ut,bt,$a,vo,Io,ko,Wo,Jo,Ko,jn,gs,bs,ln,Is,to,co,Ts,Ns,Rs,Ms,Us,Ws,Ds,qs,$r,Vs,zs,du,uu,cu,fA,AA,hA,cr,o0,pA,a0,Cu,gA,mA,Ll,s0,yA,_A,CA,O0,SA,N0,_d,D0,Q0,bA,vA,IA,Il,$0,wA,EA,d0,T0,Fl,yu,Ys,u0,M0,Al,x0,Uu,tu,El,BA,kA,Lu,U0,Ru,yl,lu,RA,PA,Fu,OA,Wu,L0,NA,F0,DA,Hu,_l,H0,J0,QA,$A,Hl,fu,TA,MA,xA],Rr=0;Rr=240?(Ur=4,sr=!0):Xr>=224?(Ur=3,sr=!0):Xr>=192?(Ur=2,sr=!0):Xr<128&&(Ur=1,sr=!0)}while(!sr);for(var lo=Ur-(Kn.length-Rr),go=0;go>8&-39)<<8|87+(Dn=Rn[Xn]>>>4)+(Dn-10>>8&-39),$n+=String.fromCharCode(255&kn)+String.fromCharCode(kn>>>8);return $n}var Rt={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function nn(Rn){if(Rn==null)return Rt.URLSAFE_NO_PADDING;if(Rn!==Rt.ORIGINAL&&Rn!==Rt.ORIGINAL_NO_PADDING&&Rn!==Rt.URLSAFE&&Rn!=Rt.URLSAFE_NO_PADDING)throw new Error("unsupported base64 variant");return Rn}function Qt(Rn,Dn){Dn=nn(Dn),Rn=yt(kn,Rn,"input");var wn,kn=[],$n=0|Math.floor(Rn.length/3),Xn=Rn.length-3*$n,Kn=4*$n+(Xn!==0?2&Dn?2+(Xn>>>1):4:0),sr=new Et(Kn+1),Rr=Bt(Rn);return kn.push(Rr),kn.push(sr.address),mt._sodium_bin2base64(sr.address,sr.length,Rr,Rn.length,Dn)===0&&jt(kn,"conversion failed"),sr.length=Kn,wn=Jt(sr.to_Uint8Array()),Mt(kn),wn}function wt(Rn,Dn){var wn=Dn||vt;if(!Nt(wn))throw new Error(wn+" output format is not available");if(Rn instanceof Et){if(wn==="uint8array")return Rn.to_Uint8Array();if(wn==="text")return Jt(Rn.to_Uint8Array());if(wn==="hex")return Zt(Rn.to_Uint8Array());if(wn==="base64")return Qt(Rn.to_Uint8Array(),Rt.URLSAFE_NO_PADDING);throw new Error('What is output format "'+wn+'"?')}if(typeof Rn=="object"){for(var kn=Object.keys(Rn),$n={},Xn=0;Xn>>24>>>8,Kn,Rr);var go=wt(Xr,$n);return Mt(Xn),go}function $r(Rn){var Dn=[];xt(Rn);var wn=new Et(0|mt._crypto_kdf_keybytes()),kn=wn.address;Dn.push(kn),mt._crypto_kdf_keygen(kn);var $n=wt(wn,Rn);return Mt(Dn),$n}function Vs(Rn,Dn,wn,kn){var $n=[];xt(kn),Rn=yt($n,Rn,"clientPublicKey");var Xn,Kn=0|mt._crypto_kx_publickeybytes();Rn.length!==Kn&&Ht($n,"invalid clientPublicKey length"),Xn=Bt(Rn),$n.push(Xn),Dn=yt($n,Dn,"clientSecretKey");var sr,Rr=0|mt._crypto_kx_secretkeybytes();Dn.length!==Rr&&Ht($n,"invalid clientSecretKey length"),sr=Bt(Dn),$n.push(sr),wn=yt($n,wn,"serverPublicKey");var Ur,Xr=0|mt._crypto_kx_publickeybytes();wn.length!==Xr&&Ht($n,"invalid serverPublicKey length"),Ur=Bt(wn),$n.push(Ur);var lo=new Et(0|mt._crypto_kx_sessionkeybytes()),go=lo.address;$n.push(go);var Oo=new Et(0|mt._crypto_kx_sessionkeybytes()),Ho=Oo.address;if($n.push(Ho),(0|mt._crypto_kx_client_session_keys(go,Ho,Xn,sr,Ur))==0){var jo=wt({sharedRx:lo,sharedTx:Oo},kn);return Mt($n),jo}jt($n,"invalid usage")}function zs(Rn){var Dn=[];xt(Rn);var wn=new Et(0|mt._crypto_kx_publickeybytes()),kn=wn.address;Dn.push(kn);var $n=new Et(0|mt._crypto_kx_secretkeybytes()),Xn=$n.address;if(Dn.push(Xn),(0|mt._crypto_kx_keypair(kn,Xn))==0){var Kn={publicKey:wt(wn,Rn),privateKey:wt($n,Rn),keyType:"x25519"};return Mt(Dn),Kn}jt(Dn,"internal error")}function du(Rn,Dn){var wn=[];xt(Dn),Rn=yt(wn,Rn,"seed");var kn,$n=0|mt._crypto_kx_seedbytes();Rn.length!==$n&&Ht(wn,"invalid seed length"),kn=Bt(Rn),wn.push(kn);var Xn=new Et(0|mt._crypto_kx_publickeybytes()),Kn=Xn.address;wn.push(Kn);var sr=new Et(0|mt._crypto_kx_secretkeybytes()),Rr=sr.address;if(wn.push(Rr),(0|mt._crypto_kx_seed_keypair(Kn,Rr,kn))==0){var Ur={publicKey:wt(Xn,Dn),privateKey:wt(sr,Dn),keyType:"x25519"};return Mt(wn),Ur}jt(wn,"internal error")}function uu(Rn,Dn,wn,kn){var $n=[];xt(kn),Rn=yt($n,Rn,"serverPublicKey");var Xn,Kn=0|mt._crypto_kx_publickeybytes();Rn.length!==Kn&&Ht($n,"invalid serverPublicKey length"),Xn=Bt(Rn),$n.push(Xn),Dn=yt($n,Dn,"serverSecretKey");var sr,Rr=0|mt._crypto_kx_secretkeybytes();Dn.length!==Rr&&Ht($n,"invalid serverSecretKey length"),sr=Bt(Dn),$n.push(sr),wn=yt($n,wn,"clientPublicKey");var Ur,Xr=0|mt._crypto_kx_publickeybytes();wn.length!==Xr&&Ht($n,"invalid clientPublicKey length"),Ur=Bt(wn),$n.push(Ur);var lo=new Et(0|mt._crypto_kx_sessionkeybytes()),go=lo.address;$n.push(go);var Oo=new Et(0|mt._crypto_kx_sessionkeybytes()),Ho=Oo.address;if($n.push(Ho),(0|mt._crypto_kx_server_session_keys(go,Ho,Xn,sr,Ur))==0){var jo=wt({sharedRx:lo,sharedTx:Oo},kn);return Mt($n),jo}jt($n,"invalid usage")}function cu(Rn,Dn,wn){var kn=[];xt(wn);var $n=Bt(Rn=yt(kn,Rn,"message")),Xn=Rn.length;kn.push($n),Dn=yt(kn,Dn,"key");var Kn,sr=0|mt._crypto_onetimeauth_keybytes();Dn.length!==sr&&Ht(kn,"invalid key length"),Kn=Bt(Dn),kn.push(Kn);var Rr=new Et(0|mt._crypto_onetimeauth_bytes()),Ur=Rr.address;if(kn.push(Ur),(0|mt._crypto_onetimeauth(Ur,$n,Xn,0,Kn))==0){var Xr=wt(Rr,wn);return Mt(kn),Xr}jt(kn,"invalid usage")}function fA(Rn,Dn){var wn=[];xt(Dn),an(wn,Rn,"state_address");var kn=new Et(0|mt._crypto_onetimeauth_bytes()),$n=kn.address;if(wn.push($n),(0|mt._crypto_onetimeauth_final(Rn,$n))==0){var Xn=(mt._free(Rn),wt(kn,Dn));return Mt(wn),Xn}jt(wn,"invalid usage")}function AA(Rn,Dn){var wn=[];xt(Dn);var kn=null;Rn!=null&&(kn=Bt(Rn=yt(wn,Rn,"key")),Rn.length,wn.push(kn));var $n=new Et(144).address;if(!(0|mt._crypto_onetimeauth_init($n,kn))){var Xn=$n;return Mt(wn),Xn}jt(wn,"invalid usage")}function hA(Rn){var Dn=[];xt(Rn);var wn=new Et(0|mt._crypto_onetimeauth_keybytes()),kn=wn.address;Dn.push(kn),mt._crypto_onetimeauth_keygen(kn);var $n=wt(wn,Rn);return Mt(Dn),$n}function cr(Rn,Dn,wn){var kn=[];xt(wn),an(kn,Rn,"state_address");var $n=Bt(Dn=yt(kn,Dn,"message_chunk")),Xn=Dn.length;kn.push($n),0|mt._crypto_onetimeauth_update(Rn,$n,Xn)&&jt(kn,"invalid usage"),Mt(kn)}function o0(Rn,Dn,wn){var kn=[];Rn=yt(kn,Rn,"hash");var $n,Xn=0|mt._crypto_onetimeauth_bytes();Rn.length!==Xn&&Ht(kn,"invalid hash length"),$n=Bt(Rn),kn.push($n);var Kn=Bt(Dn=yt(kn,Dn,"message")),sr=Dn.length;kn.push(Kn),wn=yt(kn,wn,"key");var Rr,Ur=0|mt._crypto_onetimeauth_keybytes();wn.length!==Ur&&Ht(kn,"invalid key length"),Rr=Bt(wn),kn.push(Rr);var Xr=(0|mt._crypto_onetimeauth_verify($n,Kn,sr,0,Rr))==0;return Mt(kn),Xr}function pA(Rn,Dn,wn,kn,$n,Xn,Kn){var sr=[];xt(Kn),an(sr,Rn,"keyLength"),(typeof Rn!="number"||(0|Rn)!==Rn||Rn<0)&&Ht(sr,"keyLength must be an unsigned integer");var Rr=Bt(Dn=yt(sr,Dn,"password")),Ur=Dn.length;sr.push(Rr),wn=yt(sr,wn,"salt");var Xr,lo=0|mt._crypto_pwhash_saltbytes();wn.length!==lo&&Ht(sr,"invalid salt length"),Xr=Bt(wn),sr.push(Xr),an(sr,kn,"opsLimit"),(typeof kn!="number"||(0|kn)!==kn||kn<0)&&Ht(sr,"opsLimit must be an unsigned integer"),an(sr,$n,"memLimit"),(typeof $n!="number"||(0|$n)!==$n||$n<0)&&Ht(sr,"memLimit must be an unsigned integer"),an(sr,Xn,"algorithm"),(typeof Xn!="number"||(0|Xn)!==Xn||Xn<0)&&Ht(sr,"algorithm must be an unsigned integer");var go=new Et(0|Rn),Oo=go.address;if(sr.push(Oo),(0|mt._crypto_pwhash(Oo,Rn,0,Rr,Ur,0,Xr,kn,0,$n,Xn))==0){var Ho=wt(go,Kn);return Mt(sr),Ho}jt(sr,"invalid usage")}function a0(Rn,Dn,wn,kn,$n,Xn){var Kn=[];xt(Xn),an(Kn,Rn,"keyLength"),(typeof Rn!="number"||(0|Rn)!==Rn||Rn<0)&&Ht(Kn,"keyLength must be an unsigned integer");var sr=Bt(Dn=yt(Kn,Dn,"password")),Rr=Dn.length;Kn.push(sr),wn=yt(Kn,wn,"salt");var Ur,Xr=0|mt._crypto_pwhash_scryptsalsa208sha256_saltbytes();wn.length!==Xr&&Ht(Kn,"invalid salt length"),Ur=Bt(wn),Kn.push(Ur),an(Kn,kn,"opsLimit"),(typeof kn!="number"||(0|kn)!==kn||kn<0)&&Ht(Kn,"opsLimit must be an unsigned integer"),an(Kn,$n,"memLimit"),(typeof $n!="number"||(0|$n)!==$n||$n<0)&&Ht(Kn,"memLimit must be an unsigned integer");var lo=new Et(0|Rn),go=lo.address;if(Kn.push(go),(0|mt._crypto_pwhash_scryptsalsa208sha256(go,Rn,0,sr,Rr,0,Ur,kn,0,$n))==0){var Oo=wt(lo,Xn);return Mt(Kn),Oo}jt(Kn,"invalid usage")}function Cu(Rn,Dn,wn,kn,$n,Xn,Kn){var sr=[];xt(Kn);var Rr=Bt(Rn=yt(sr,Rn,"password")),Ur=Rn.length;sr.push(Rr);var Xr=Bt(Dn=yt(sr,Dn,"salt")),lo=Dn.length;sr.push(Xr),an(sr,wn,"opsLimit"),(typeof wn!="number"||(0|wn)!==wn||wn<0)&&Ht(sr,"opsLimit must be an unsigned integer"),an(sr,kn,"r"),(typeof kn!="number"||(0|kn)!==kn||kn<0)&&Ht(sr,"r must be an unsigned integer"),an(sr,$n,"p"),(typeof $n!="number"||(0|$n)!==$n||$n<0)&&Ht(sr,"p must be an unsigned integer"),an(sr,Xn,"keyLength"),(typeof Xn!="number"||(0|Xn)!==Xn||Xn<0)&&Ht(sr,"keyLength must be an unsigned integer");var go=new Et(0|Xn),Oo=go.address;if(sr.push(Oo),(0|mt._crypto_pwhash_scryptsalsa208sha256_ll(Rr,Ur,Xr,lo,wn,0,kn,$n,Oo,Xn))==0){var Ho=wt(go,Kn);return Mt(sr),Ho}jt(sr,"invalid usage")}function gA(Rn,Dn,wn,kn){var $n=[];xt(kn);var Xn=Bt(Rn=yt($n,Rn,"password")),Kn=Rn.length;$n.push(Xn),an($n,Dn,"opsLimit"),(typeof Dn!="number"||(0|Dn)!==Dn||Dn<0)&&Ht($n,"opsLimit must be an unsigned integer"),an($n,wn,"memLimit"),(typeof wn!="number"||(0|wn)!==wn||wn<0)&&Ht($n,"memLimit must be an unsigned integer");var sr=new Et(0|mt._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if($n.push(sr),(0|mt._crypto_pwhash_scryptsalsa208sha256_str(sr,Xn,Kn,0,Dn,0,wn))==0){var Rr=mt.UTF8ToString(sr);return Mt($n),Rr}jt($n,"invalid usage")}function mA(Rn,Dn,wn){var kn=[];xt(wn),typeof Rn!="string"&&Ht(kn,"hashed_password must be a string"),Rn=Pt(Rn+"\0"),Xn!=null&&Rn.length-1!==Xn&&Ht(kn,"invalid hashed_password length");var $n=Bt(Rn),Xn=Rn.length-1;kn.push($n);var Kn=Bt(Dn=yt(kn,Dn,"password")),sr=Dn.length;kn.push(Kn);var Rr=(0|mt._crypto_pwhash_scryptsalsa208sha256_str_verify($n,Kn,sr,0))==0;return Mt(kn),Rr}function Ll(Rn,Dn,wn,kn){var $n=[];xt(kn);var Xn=Bt(Rn=yt($n,Rn,"password")),Kn=Rn.length;$n.push(Xn),an($n,Dn,"opsLimit"),(typeof Dn!="number"||(0|Dn)!==Dn||Dn<0)&&Ht($n,"opsLimit must be an unsigned integer"),an($n,wn,"memLimit"),(typeof wn!="number"||(0|wn)!==wn||wn<0)&&Ht($n,"memLimit must be an unsigned integer");var sr=new Et(0|mt._crypto_pwhash_strbytes()).address;if($n.push(sr),(0|mt._crypto_pwhash_str(sr,Xn,Kn,0,Dn,0,wn))==0){var Rr=mt.UTF8ToString(sr);return Mt($n),Rr}jt($n,"invalid usage")}function s0(Rn,Dn,wn,kn){var $n=[];xt(kn),typeof Rn!="string"&&Ht($n,"hashed_password must be a string"),Rn=Pt(Rn+"\0"),Kn!=null&&Rn.length-1!==Kn&&Ht($n,"invalid hashed_password length");var Xn=Bt(Rn),Kn=Rn.length-1;$n.push(Xn),an($n,Dn,"opsLimit"),(typeof Dn!="number"||(0|Dn)!==Dn||Dn<0)&&Ht($n,"opsLimit must be an unsigned integer"),an($n,wn,"memLimit"),(typeof wn!="number"||(0|wn)!==wn||wn<0)&&Ht($n,"memLimit must be an unsigned integer");var sr=(0|mt._crypto_pwhash_str_needs_rehash(Xn,Dn,0,wn))!=0;return Mt($n),sr}function yA(Rn,Dn,wn){var kn=[];xt(wn),typeof Rn!="string"&&Ht(kn,"hashed_password must be a string"),Rn=Pt(Rn+"\0"),Xn!=null&&Rn.length-1!==Xn&&Ht(kn,"invalid hashed_password length");var $n=Bt(Rn),Xn=Rn.length-1;kn.push($n);var Kn=Bt(Dn=yt(kn,Dn,"password")),sr=Dn.length;kn.push(Kn);var Rr=(0|mt._crypto_pwhash_str_verify($n,Kn,sr,0))==0;return Mt(kn),Rr}function _A(Rn,Dn,wn){var kn=[];xt(wn),Rn=yt(kn,Rn,"privateKey");var $n,Xn=0|mt._crypto_scalarmult_scalarbytes();Rn.length!==Xn&&Ht(kn,"invalid privateKey length"),$n=Bt(Rn),kn.push($n),Dn=yt(kn,Dn,"publicKey");var Kn,sr=0|mt._crypto_scalarmult_bytes();Dn.length!==sr&&Ht(kn,"invalid publicKey length"),Kn=Bt(Dn),kn.push(Kn);var Rr=new Et(0|mt._crypto_scalarmult_bytes()),Ur=Rr.address;if(kn.push(Ur),(0|mt._crypto_scalarmult(Ur,$n,Kn))==0){var Xr=wt(Rr,wn);return Mt(kn),Xr}jt(kn,"weak public key")}function CA(Rn,Dn){var wn=[];xt(Dn),Rn=yt(wn,Rn,"privateKey");var kn,$n=0|mt._crypto_scalarmult_scalarbytes();Rn.length!==$n&&Ht(wn,"invalid privateKey length"),kn=Bt(Rn),wn.push(kn);var Xn=new Et(0|mt._crypto_scalarmult_bytes()),Kn=Xn.address;if(wn.push(Kn),(0|mt._crypto_scalarmult_base(Kn,kn))==0){var sr=wt(Xn,Dn);return Mt(wn),sr}jt(wn,"unknown error")}function O0(Rn,Dn,wn){var kn=[];xt(wn),Rn=yt(kn,Rn,"n");var $n,Xn=0|mt._crypto_scalarmult_ed25519_scalarbytes();Rn.length!==Xn&&Ht(kn,"invalid n length"),$n=Bt(Rn),kn.push($n),Dn=yt(kn,Dn,"p");var Kn,sr=0|mt._crypto_scalarmult_ed25519_bytes();Dn.length!==sr&&Ht(kn,"invalid p length"),Kn=Bt(Dn),kn.push(Kn);var Rr=new Et(0|mt._crypto_scalarmult_ed25519_bytes()),Ur=Rr.address;if(kn.push(Ur),(0|mt._crypto_scalarmult_ed25519(Ur,$n,Kn))==0){var Xr=wt(Rr,wn);return Mt(kn),Xr}jt(kn,"invalid point or scalar is 0")}function SA(Rn,Dn){var wn=[];xt(Dn),Rn=yt(wn,Rn,"scalar");var kn,$n=0|mt._crypto_scalarmult_ed25519_scalarbytes();Rn.length!==$n&&Ht(wn,"invalid scalar length"),kn=Bt(Rn),wn.push(kn);var Xn=new Et(0|mt._crypto_scalarmult_ed25519_bytes()),Kn=Xn.address;if(wn.push(Kn),(0|mt._crypto_scalarmult_ed25519_base(Kn,kn))==0){var sr=wt(Xn,Dn);return Mt(wn),sr}jt(wn,"scalar is 0")}function N0(Rn,Dn){var wn=[];xt(Dn),Rn=yt(wn,Rn,"scalar");var kn,$n=0|mt._crypto_scalarmult_ed25519_scalarbytes();Rn.length!==$n&&Ht(wn,"invalid scalar length"),kn=Bt(Rn),wn.push(kn);var Xn=new Et(0|mt._crypto_scalarmult_ed25519_bytes()),Kn=Xn.address;if(wn.push(Kn),(0|mt._crypto_scalarmult_ed25519_base_noclamp(Kn,kn))==0){var sr=wt(Xn,Dn);return Mt(wn),sr}jt(wn,"scalar is 0")}function _d(Rn,Dn,wn){var kn=[];xt(wn),Rn=yt(kn,Rn,"n");var $n,Xn=0|mt._crypto_scalarmult_ed25519_scalarbytes();Rn.length!==Xn&&Ht(kn,"invalid n length"),$n=Bt(Rn),kn.push($n),Dn=yt(kn,Dn,"p");var Kn,sr=0|mt._crypto_scalarmult_ed25519_bytes();Dn.length!==sr&&Ht(kn,"invalid p length"),Kn=Bt(Dn),kn.push(Kn);var Rr=new Et(0|mt._crypto_scalarmult_ed25519_bytes()),Ur=Rr.address;if(kn.push(Ur),(0|mt._crypto_scalarmult_ed25519_noclamp(Ur,$n,Kn))==0){var Xr=wt(Rr,wn);return Mt(kn),Xr}jt(kn,"invalid point or scalar is 0")}function D0(Rn,Dn,wn){var kn=[];xt(wn),Rn=yt(kn,Rn,"scalar");var $n,Xn=0|mt._crypto_scalarmult_ristretto255_scalarbytes();Rn.length!==Xn&&Ht(kn,"invalid scalar length"),$n=Bt(Rn),kn.push($n),Dn=yt(kn,Dn,"element");var Kn,sr=0|mt._crypto_scalarmult_ristretto255_bytes();Dn.length!==sr&&Ht(kn,"invalid element length"),Kn=Bt(Dn),kn.push(Kn);var Rr=new Et(0|mt._crypto_scalarmult_ristretto255_bytes()),Ur=Rr.address;if(kn.push(Ur),(0|mt._crypto_scalarmult_ristretto255(Ur,$n,Kn))==0){var Xr=wt(Rr,wn);return Mt(kn),Xr}jt(kn,"result is identity element")}function Q0(Rn,Dn){var wn=[];xt(Dn),Rn=yt(wn,Rn,"scalar");var kn,$n=0|mt._crypto_core_ristretto255_scalarbytes();Rn.length!==$n&&Ht(wn,"invalid scalar length"),kn=Bt(Rn),wn.push(kn);var Xn=new Et(0|mt._crypto_core_ristretto255_bytes()),Kn=Xn.address;if(wn.push(Kn),(0|mt._crypto_scalarmult_ristretto255_base(Kn,kn))==0){var sr=wt(Xn,Dn);return Mt(wn),sr}jt(wn,"scalar is 0")}function bA(Rn,Dn,wn,kn){var $n=[];xt(kn);var Xn=Bt(Rn=yt($n,Rn,"message")),Kn=Rn.length;$n.push(Xn),Dn=yt($n,Dn,"nonce");var sr,Rr=0|mt._crypto_secretbox_noncebytes();Dn.length!==Rr&&Ht($n,"invalid nonce length"),sr=Bt(Dn),$n.push(sr),wn=yt($n,wn,"key");var Ur,Xr=0|mt._crypto_secretbox_keybytes();wn.length!==Xr&&Ht($n,"invalid key length"),Ur=Bt(wn),$n.push(Ur);var lo=new Et(0|Kn),go=lo.address;$n.push(go);var Oo=new Et(0|mt._crypto_secretbox_macbytes()),Ho=Oo.address;if($n.push(Ho),(0|mt._crypto_secretbox_detached(go,Ho,Xn,Kn,0,sr,Ur))==0){var jo=wt({mac:Oo,cipher:lo},kn);return Mt($n),jo}jt($n,"invalid usage")}function vA(Rn,Dn,wn,kn){var $n=[];xt(kn);var Xn=Bt(Rn=yt($n,Rn,"message")),Kn=Rn.length;$n.push(Xn),Dn=yt($n,Dn,"nonce");var sr,Rr=0|mt._crypto_secretbox_noncebytes();Dn.length!==Rr&&Ht($n,"invalid nonce length"),sr=Bt(Dn),$n.push(sr),wn=yt($n,wn,"key");var Ur,Xr=0|mt._crypto_secretbox_keybytes();wn.length!==Xr&&Ht($n,"invalid key length"),Ur=Bt(wn),$n.push(Ur);var lo=new Et(Kn+mt._crypto_secretbox_macbytes()|0),go=lo.address;if($n.push(go),(0|mt._crypto_secretbox_easy(go,Xn,Kn,0,sr,Ur))==0){var Oo=wt(lo,kn);return Mt($n),Oo}jt($n,"invalid usage")}function IA(Rn){var Dn=[];xt(Rn);var wn=new Et(0|mt._crypto_secretbox_keybytes()),kn=wn.address;Dn.push(kn),mt._crypto_secretbox_keygen(kn);var $n=wt(wn,Rn);return Mt(Dn),$n}function Il(Rn,Dn,wn,kn,$n){var Xn=[];xt($n);var Kn=Bt(Rn=yt(Xn,Rn,"ciphertext")),sr=Rn.length;Xn.push(Kn),Dn=yt(Xn,Dn,"mac");var Rr,Ur=0|mt._crypto_secretbox_macbytes();Dn.length!==Ur&&Ht(Xn,"invalid mac length"),Rr=Bt(Dn),Xn.push(Rr),wn=yt(Xn,wn,"nonce");var Xr,lo=0|mt._crypto_secretbox_noncebytes();wn.length!==lo&&Ht(Xn,"invalid nonce length"),Xr=Bt(wn),Xn.push(Xr),kn=yt(Xn,kn,"key");var go,Oo=0|mt._crypto_secretbox_keybytes();kn.length!==Oo&&Ht(Xn,"invalid key length"),go=Bt(kn),Xn.push(go);var Ho=new Et(0|sr),jo=Ho.address;if(Xn.push(jo),(0|mt._crypto_secretbox_open_detached(jo,Kn,Rr,sr,0,Xr,go))==0){var rs=wt(Ho,$n);return Mt(Xn),rs}jt(Xn,"wrong secret key for the given ciphertext")}function $0(Rn,Dn,wn,kn){var $n=[];xt(kn),Rn=yt($n,Rn,"ciphertext");var Xn,Kn=mt._crypto_secretbox_macbytes(),sr=Rn.length;sr>>0;return Mt([]),Dn}function fu(Rn,Dn){var wn=[];xt(Dn);for(var kn=mt._malloc(24),$n=0;$n<6;$n++)mt.setValue(kn+4*$n,mt.Runtime.addFunction(Rn[["implementation_name","random","stir","uniform","buf","close"][$n]]),"i32");0|mt._randombytes_set_implementation(kn)&&jt(wn,"unsupported implementation"),Mt(wn)}function TA(Rn){xt(Rn),mt._randombytes_stir()}function MA(Rn,Dn){var wn=[];xt(Dn),an(wn,Rn,"upper_bound"),(typeof Rn!="number"||(0|Rn)!==Rn||Rn<0)&&Ht(wn,"upper_bound must be an unsigned integer");var kn=mt._randombytes_uniform(Rn)>>>0;return Mt(wn),kn}function xA(){var Rn=mt._sodium_version_string(),Dn=mt.UTF8ToString(Rn);return Mt([]),Dn}return Et.prototype.to_Uint8Array=function(){var Rn=new Uint8Array(this.length);return Rn.set(mt.HEAPU8.subarray(this.address,this.address+this.length)),Rn},lt.add=function(Rn,Dn){if(!(Rn instanceof Uint8Array&&Dn instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can added");var wn=Rn.length,kn=0,$n=0;if(Dn.length!=Rn.length)throw new TypeError("Arguments must have the same length");for($n=0;$n>=8,kn+=Rn[$n]+Dn[$n],Rn[$n]=255&kn},lt.base64_variants=Rt,lt.compare=function(Rn,Dn){if(!(Rn instanceof Uint8Array&&Dn instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(Rn.length!==Dn.length)throw new TypeError("Only instances of identical length can be compared");for(var wn=0,kn=1,$n=Rn.length;$n-- >0;)wn|=Dn[$n]-Rn[$n]>>8&kn,kn&=(Dn[$n]^Rn[$n])-1>>8;return wn+wn+kn-1},lt.from_base64=function(Rn,Dn){Dn=nn(Dn);var wn,kn=[],$n=new Et(3*(Rn=yt(kn,Rn,"input")).length/4),Xn=Bt(Rn),Kn=Tt(4),sr=Tt(4);return kn.push(Xn),kn.push($n.address),kn.push($n.result_bin_len_p),kn.push($n.b64_end_p),mt._sodium_base642bin($n.address,$n.length,Xn,Rn.length,0,Kn,sr,Dn)!==0&&jt(kn,"invalid input"),mt.getValue(sr,"i32")-Xn!==Rn.length&&jt(kn,"incomplete input"),$n.length=mt.getValue(Kn,"i32"),wn=$n.to_Uint8Array(),Mt(kn),wn},lt.from_hex=function(Rn){var Dn,wn=[],kn=new Et((Rn=yt(wn,Rn,"input")).length/2),$n=Bt(Rn),Xn=Tt(4);return wn.push($n),wn.push(kn.address),wn.push(kn.hex_end_p),mt._sodium_hex2bin(kn.address,kn.length,$n,Rn.length,0,0,Xn)!==0&&jt(wn,"invalid input"),mt.getValue(Xn,"i32")-$n!==Rn.length&&jt(wn,"incomplete input"),Dn=kn.to_Uint8Array(),Mt(wn),Dn},lt.from_string=Pt,lt.increment=function(Rn){if(!(Rn instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be incremented");for(var Dn=256,wn=0,kn=Rn.length;wn>=8,Dn+=Rn[wn],Rn[wn]=255&Dn},lt.is_zero=function(Rn){if(!(Rn instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be checked");for(var Dn=0,wn=0,kn=Rn.length;wn 0");var wn,kn=[],$n=Tt(4),Xn=1,Kn=0,sr=0|Rn.length,Rr=new Et(sr+Dn);kn.push($n),kn.push(Rr.address);for(var Ur=Rr.address,Xr=Rr.address+sr+Dn;Ur>>48|sr>>>32|sr>>>16|sr))-1>>16);return mt._sodium_pad($n,Rr.address,Rn.length,Dn,Rr.length)!==0&&jt(kn,"internal error"),Rr.length=mt.getValue($n,"i32"),wn=Rr.to_Uint8Array(),Mt(kn),wn},lt.unpad=function(Rn,Dn){if(!(Rn instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((Dn|=0)<=0)throw new Error("block size must be > 0");var wn=[],kn=Bt(Rn),$n=Tt(4);return wn.push(kn),wn.push($n),mt._sodium_unpad($n,kn,Rn.length,Dn)!==0&&jt(wn,"unsupported/invalid padding"),Rn=(Rn=new Uint8Array(Rn)).subarray(0,mt.getValue($n,"i32")),Mt(wn),Rn},lt.ready=kt,lt.symbols=function(){return Object.keys(lt).sort()},lt.to_base64=Qt,lt.to_hex=Zt,lt.to_string=Jt,lt}var ct=typeof b.sodium=="object"&&typeof b.sodium.onload=="function"?b.sodium.onload:null;typeof d.nodeName!="string"?dt(d,requireLibsodiumSumo()):b.sodium=dt(b.commonJsStrict={},b.libsodium),ct&&b.sodium.ready.then(function(){ct(b.sodium)})})(commonjsGlobal)})(libsodiumWrappers);var __importDefault$A=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(libsodium,"__esModule",{value:!0});libsodium.Xchacha20poly1305Ietf=libsodium.xchacha20NonceLength=libsodium.Ed25519=libsodium.Ed25519Keypair=libsodium.Argon2id=libsodium.isArgon2idOptions=void 0;const utils_1$k=build$9,libsodium_wrappers_sumo_1=__importDefault$A(libsodiumWrappers);function isArgon2idOptions(d){return!(!(0,utils_1$k.isNonNullObject)(d)||typeof d.outputLength!="number"||typeof d.opsLimit!="number"||typeof d.memLimitKib!="number")}libsodium.isArgon2idOptions=isArgon2idOptions;class Argon2id{static async execute(b,dt,ct){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_pwhash(ct.outputLength,b,dt,ct.opsLimit,ct.memLimitKib*1024,libsodium_wrappers_sumo_1.default.crypto_pwhash_ALG_ARGON2ID13)}}libsodium.Argon2id=Argon2id;class Ed25519Keypair{static fromLibsodiumPrivkey(b){if(b.length!==64)throw new Error(`Unexpected key length ${b.length}. Must be 64.`);return new Ed25519Keypair(b.slice(0,32),b.slice(32,64))}constructor(b,dt){this.privkey=b,this.pubkey=dt}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}libsodium.Ed25519Keypair=Ed25519Keypair;class Ed25519{static async makeKeypair(b){await libsodium_wrappers_sumo_1.default.ready;const dt=libsodium_wrappers_sumo_1.default.crypto_sign_seed_keypair(b);return Ed25519Keypair.fromLibsodiumPrivkey(dt.privateKey)}static async createSignature(b,dt){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_sign_detached(b,dt.toLibsodiumPrivkey())}static async verifySignature(b,dt,ct){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_sign_verify_detached(b,dt,ct)}}libsodium.Ed25519=Ed25519;libsodium.xchacha20NonceLength=24;class Xchacha20poly1305Ietf{static async encrypt(b,dt,ct){await libsodium_wrappers_sumo_1.default.ready;const lt=null;return libsodium_wrappers_sumo_1.default.crypto_aead_xchacha20poly1305_ietf_encrypt(b,lt,null,ct,dt)}static async decrypt(b,dt,ct){await libsodium_wrappers_sumo_1.default.ready;const lt=null;return libsodium_wrappers_sumo_1.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,b,lt,ct,dt)}}libsodium.Xchacha20poly1305Ietf=Xchacha20poly1305Ietf;var random={};Object.defineProperty(random,"__esModule",{value:!0});random.Random=void 0;class Random{static getBytes(b){try{const dt=typeof window=="object"?window:self,ct=typeof dt.crypto<"u"?dt.crypto:dt.msCrypto,lt=new Uint8Array(b);return ct.getRandomValues(lt),lt}catch{try{const dt=require$$0$3;return new Uint8Array([...dt.randomBytes(b)])}catch{throw new Error("No secure random number generator found")}}}}random.Random=Random;var ripemd$1={},ripemd160$2={};Object.defineProperty(ripemd160$2,"__esModule",{value:!0});ripemd160$2.ripemd160=ripemd160$2.RIPEMD160=void 0;const _md_js_1$3=_md$1,utils_js_1$4=utils$E,Rho$1=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id$1=new Uint8Array(new Array(16).fill(0).map((d,b)=>b)),Pi$1=Id$1.map(d=>(9*d+5)%16);let idxL$1=[Id$1],idxR$1=[Pi$1];for(let d=0;d<4;d++)for(let b of[idxL$1,idxR$1])b.push(b[d].map(dt=>Rho$1[dt]));const shifts$1=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(d=>new Uint8Array(d)),shiftsL$1=idxL$1.map((d,b)=>d.map(dt=>shifts$1[b][dt])),shiftsR$1=idxR$1.map((d,b)=>d.map(dt=>shifts$1[b][dt])),Kl$1=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr$1=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function f$2(d,b,dt,ct){return d===0?b^dt^ct:d===1?b&dt|~b&ct:d===2?(b|~dt)^ct:d===3?b&ct|dt&~ct:b^(dt|~ct)}const R_BUF$1=new Uint32Array(16);let RIPEMD160$2=class extends _md_js_1$3.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:b,h1:dt,h2:ct,h3:lt,h4:ht}=this;return[b,dt,ct,lt,ht]}set(b,dt,ct,lt,ht){this.h0=b|0,this.h1=dt|0,this.h2=ct|0,this.h3=lt|0,this.h4=ht|0}process(b,dt){for(let nn=0;nn<16;nn++,dt+=4)R_BUF$1[nn]=b.getUint32(dt,!0);let ct=this.h0|0,lt=ct,ht=this.h1|0,mt=ht,vt=this.h2|0,kt=vt,Pt=this.h3|0,Jt=Pt,Zt=this.h4|0,Rt=Zt;for(let nn=0;nn<5;nn++){const Qt=4-nn,wt=Kl$1[nn],Nt=Kr$1[nn],xt=idxL$1[nn],Et=idxR$1[nn],Bt=shiftsL$1[nn],Tt=shiftsR$1[nn];for(let Mt=0;Mt<16;Mt++){const jt=(0,utils_js_1$4.rotl)(ct+f$2(nn,ht,vt,Pt)+R_BUF$1[xt[Mt]]+wt,Bt[Mt])+Zt|0;ct=Zt,Zt=Pt,Pt=(0,utils_js_1$4.rotl)(vt,10)|0,vt=ht,ht=jt}for(let Mt=0;Mt<16;Mt++){const jt=(0,utils_js_1$4.rotl)(lt+f$2(Qt,mt,kt,Jt)+R_BUF$1[Et[Mt]]+Nt,Tt[Mt])+Rt|0;lt=Rt,Rt=Jt,Jt=(0,utils_js_1$4.rotl)(kt,10)|0,kt=mt,mt=jt}}this.set(this.h1+vt+Jt|0,this.h2+Pt+Rt|0,this.h3+Zt+lt|0,this.h4+ct+mt|0,this.h0+ht+kt|0)}roundClean(){R_BUF$1.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};ripemd160$2.RIPEMD160=RIPEMD160$2;ripemd160$2.ripemd160=(0,utils_js_1$4.wrapConstructor)(()=>new RIPEMD160$2);Object.defineProperty(ripemd$1,"__esModule",{value:!0});ripemd$1.ripemd160=ripemd$1.Ripemd160=void 0;const ripemd160_1$1=ripemd160$2,utils_1$j=utils$D;class Ripemd160{constructor(b){this.blockSize=512/8,this.impl=ripemd160_1$1.ripemd160.create(),b&&this.update(b)}update(b){return this.impl.update((0,utils_1$j.toRealUint8Array)(b)),this}digest(){return this.impl.digest()}}ripemd$1.Ripemd160=Ripemd160;function ripemd160$1(d){return new Ripemd160(d).digest()}ripemd$1.ripemd160=ripemd160$1;var secp256k1$2={},elliptic={};const name$3="elliptic",version$4="6.5.5",description$2="EC cryptography",main$3="lib/elliptic.js",files$2=["lib"],scripts$3={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository$3={type:"git",url:"git@github.com:indutny/elliptic"},keywords$1=["EC","Elliptic","curve","Cryptography"],author$3="Fedor Indutny ",license$3="MIT",bugs$2={url:"https://github.com/indutny/elliptic/issues"},homepage$2="https://github.com/indutny/elliptic",devDependencies$3={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies$3={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0$1={name:name$3,version:version$4,description:description$2,main:main$3,files:files$2,scripts:scripts$3,repository:repository$3,keywords:keywords$1,author:author$3,license:license$3,bugs:bugs$2,homepage:homepage$2,devDependencies:devDependencies$3,dependencies:dependencies$3};var utils$C={},bn={exports:{}};bn.exports;(function(d){(function(b,dt){function ct(Yt,Kt){if(!Yt)throw new Error(Kt||"Assertion failed")}function lt(Yt,Kt){Yt.super_=Kt;var St=function(){};St.prototype=Kt.prototype,Yt.prototype=new St,Yt.prototype.constructor=Yt}function ht(Yt,Kt,St){if(ht.isBN(Yt))return Yt;this.negative=0,this.words=null,this.length=0,this.red=null,Yt!==null&&((Kt==="le"||Kt==="be")&&(St=Kt,Kt=10),this._init(Yt||0,Kt||10,St||"be"))}typeof b=="object"?b.exports=ht:dt.BN=ht,ht.BN=ht,ht.wordSize=26;var mt;try{typeof window<"u"&&typeof window.Buffer<"u"?mt=window.Buffer:mt=require$$0$2.Buffer}catch{}ht.isBN=function(Kt){return Kt instanceof ht?!0:Kt!==null&&typeof Kt=="object"&&Kt.constructor.wordSize===ht.wordSize&&Array.isArray(Kt.words)},ht.max=function(Kt,St){return Kt.cmp(St)>0?Kt:St},ht.min=function(Kt,St){return Kt.cmp(St)<0?Kt:St},ht.prototype._init=function(Kt,St,It){if(typeof Kt=="number")return this._initNumber(Kt,St,It);if(typeof Kt=="object")return this._initArray(Kt,St,It);St==="hex"&&(St=16),ct(St===(St|0)&&St>=2&&St<=36),Kt=Kt.toString().replace(/\s+/g,"");var Gt=0;Kt[0]==="-"&&(Gt++,this.negative=1),Gt=0;Gt-=3)Vt=Kt[Gt]|Kt[Gt-1]<<8|Kt[Gt-2]<<16,this.words[Ut]|=Vt<>>26-qt&67108863,qt+=24,qt>=26&&(qt-=26,Ut++);else if(It==="le")for(Gt=0,Ut=0;Gt>>26-qt&67108863,qt+=24,qt>=26&&(qt-=26,Ut++);return this.strip()};function vt(Yt,Kt){var St=Yt.charCodeAt(Kt);return St>=65&&St<=70?St-55:St>=97&&St<=102?St-87:St-48&15}function kt(Yt,Kt,St){var It=vt(Yt,St);return St-1>=Kt&&(It|=vt(Yt,St-1)<<4),It}ht.prototype._parseHex=function(Kt,St,It){this.length=Math.ceil((Kt.length-St)/6),this.words=new Array(this.length);for(var Gt=0;Gt=St;Gt-=2)qt=kt(Kt,St,Gt)<=18?(Ut-=18,Vt+=1,this.words[Vt]|=qt>>>26):Ut+=8;else{var fn=Kt.length-St;for(Gt=fn%2===0?St+1:St;Gt=18?(Ut-=18,Vt+=1,this.words[Vt]|=qt>>>26):Ut+=8}this.strip()};function Pt(Yt,Kt,St,It){for(var Gt=0,Ut=Math.min(Yt.length,St),Vt=Kt;Vt=49?Gt+=qt-49+10:qt>=17?Gt+=qt-17+10:Gt+=qt}return Gt}ht.prototype._parseBase=function(Kt,St,It){this.words=[0],this.length=1;for(var Gt=0,Ut=1;Ut<=67108863;Ut*=St)Gt++;Gt--,Ut=Ut/St|0;for(var Vt=Kt.length-It,qt=Vt%Gt,fn=Math.min(Vt,Vt-qt)+It,dn=0,Dt=It;Dt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ht.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},ht.prototype.inspect=function(){return(this.red?""};var Jt=["","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"],Zt=[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],Rt=[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];ht.prototype.toString=function(Kt,St){Kt=Kt||10,St=St|0||1;var It;if(Kt===16||Kt==="hex"){It="";for(var Gt=0,Ut=0,Vt=0;Vt>>24-Gt&16777215,Ut!==0||Vt!==this.length-1?It=Jt[6-fn.length]+fn+It:It=fn+It,Gt+=2,Gt>=26&&(Gt-=26,Vt--)}for(Ut!==0&&(It=Ut.toString(16)+It);It.length%St!==0;)It="0"+It;return this.negative!==0&&(It="-"+It),It}if(Kt===(Kt|0)&&Kt>=2&&Kt<=36){var dn=Zt[Kt],Dt=Rt[Kt];It="";var zt=this.clone();for(zt.negative=0;!zt.isZero();){var tn=zt.modn(Dt).toString(Kt);zt=zt.idivn(Dt),zt.isZero()?It=tn+It:It=Jt[dn-tn.length]+tn+It}for(this.isZero()&&(It="0"+It);It.length%St!==0;)It="0"+It;return this.negative!==0&&(It="-"+It),It}ct(!1,"Base should be between 2 and 36")},ht.prototype.toNumber=function(){var Kt=this.words[0];return this.length===2?Kt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Kt+=4503599627370496+this.words[1]*67108864:this.length>2&&ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Kt:Kt},ht.prototype.toJSON=function(){return this.toString(16)},ht.prototype.toBuffer=function(Kt,St){return ct(typeof mt<"u"),this.toArrayLike(mt,Kt,St)},ht.prototype.toArray=function(Kt,St){return this.toArrayLike(Array,Kt,St)},ht.prototype.toArrayLike=function(Kt,St,It){var Gt=this.byteLength(),Ut=It||Math.max(1,Gt);ct(Gt<=Ut,"byte array longer than desired length"),ct(Ut>0,"Requested array length <= 0"),this.strip();var Vt=St==="le",qt=new Kt(Ut),fn,dn,Dt=this.clone();if(Vt){for(dn=0;!Dt.isZero();dn++)fn=Dt.andln(255),Dt.iushrn(8),qt[dn]=fn;for(;dn=4096&&(It+=13,St>>>=13),St>=64&&(It+=7,St>>>=7),St>=8&&(It+=4,St>>>=4),St>=2&&(It+=2,St>>>=2),It+St},ht.prototype._zeroBits=function(Kt){if(Kt===0)return 26;var St=Kt,It=0;return St&8191||(It+=13,St>>>=13),St&127||(It+=7,St>>>=7),St&15||(It+=4,St>>>=4),St&3||(It+=2,St>>>=2),St&1||It++,It},ht.prototype.bitLength=function(){var Kt=this.words[this.length-1],St=this._countBits(Kt);return(this.length-1)*26+St};function nn(Yt){for(var Kt=new Array(Yt.bitLength()),St=0;St>>Gt}return Kt}ht.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Kt=0,St=0;StKt.length?this.clone().ior(Kt):Kt.clone().ior(this)},ht.prototype.uor=function(Kt){return this.length>Kt.length?this.clone().iuor(Kt):Kt.clone().iuor(this)},ht.prototype.iuand=function(Kt){var St;this.length>Kt.length?St=Kt:St=this;for(var It=0;ItKt.length?this.clone().iand(Kt):Kt.clone().iand(this)},ht.prototype.uand=function(Kt){return this.length>Kt.length?this.clone().iuand(Kt):Kt.clone().iuand(this)},ht.prototype.iuxor=function(Kt){var St,It;this.length>Kt.length?(St=this,It=Kt):(St=Kt,It=this);for(var Gt=0;GtKt.length?this.clone().ixor(Kt):Kt.clone().ixor(this)},ht.prototype.uxor=function(Kt){return this.length>Kt.length?this.clone().iuxor(Kt):Kt.clone().iuxor(this)},ht.prototype.inotn=function(Kt){ct(typeof Kt=="number"&&Kt>=0);var St=Math.ceil(Kt/26)|0,It=Kt%26;this._expand(St),It>0&&St--;for(var Gt=0;Gt0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-It),this.strip()},ht.prototype.notn=function(Kt){return this.clone().inotn(Kt)},ht.prototype.setn=function(Kt,St){ct(typeof Kt=="number"&&Kt>=0);var It=Kt/26|0,Gt=Kt%26;return this._expand(It+1),St?this.words[It]=this.words[It]|1<Kt.length?(It=this,Gt=Kt):(It=Kt,Gt=this);for(var Ut=0,Vt=0;Vt>>26;for(;Ut!==0&&Vt>>26;if(this.length=It.length,Ut!==0)this.words[this.length]=Ut,this.length++;else if(It!==this)for(;VtKt.length?this.clone().iadd(Kt):Kt.clone().iadd(this)},ht.prototype.isub=function(Kt){if(Kt.negative!==0){Kt.negative=0;var St=this.iadd(Kt);return Kt.negative=1,St._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Kt),this.negative=1,this._normSign();var It=this.cmp(Kt);if(It===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Ut;It>0?(Gt=this,Ut=Kt):(Gt=Kt,Ut=this);for(var Vt=0,qt=0;qt>26,this.words[qt]=St&67108863;for(;Vt!==0&&qt>26,this.words[qt]=St&67108863;if(Vt===0&&qt>>26,zt=fn&67108863,tn=Math.min(dn,Kt.length-1),An=Math.max(0,dn-Yt.length+1);An<=tn;An++){var gn=dn-An|0;Gt=Yt.words[gn]|0,Ut=Kt.words[An]|0,Vt=Gt*Ut+zt,Dt+=Vt/67108864|0,zt=Vt&67108863}St.words[dn]=zt|0,fn=Dt|0}return fn!==0?St.words[dn]=fn|0:St.length--,St.strip()}var wt=function(Kt,St,It){var Gt=Kt.words,Ut=St.words,Vt=It.words,qt=0,fn,dn,Dt,zt=Gt[0]|0,tn=zt&8191,An=zt>>>13,gn=Gt[1]|0,Nn=gn&8191,wr=gn>>>13,nr=Gt[2]|0,fr=nr&8191,xr=nr>>>13,zr=Gt[3]|0,Jr=zr&8191,ro=zr>>>13,xn=Gt[4]|0,_o=xn&8191,Mn=xn>>>13,Zn=Gt[5]|0,rr=Zn&8191,mr=Zn>>>13,pn=Gt[6]|0,Hr=pn&8191,ao=pn>>>13,No=Gt[7]|0,Ro=No&8191,br=No>>>13,yr=Gt[8]|0,Qr=yr&8191,Vr=yr>>>13,oo=Gt[9]|0,Lr=oo&8191,po=oo>>>13,fo=Ut[0]|0,bo=fo&8191,Lo=fo>>>13,Zr=Ut[1]|0,Tr=Zr&8191,sn=Zr>>>13,yn=Ut[2]|0,Pn=yn&8191,Gr=yn>>>13,gr=Ut[3]|0,Wr=gr&8191,Zo=gr>>>13,ba=Ut[4]|0,ga=ba&8191,cs=ba>>>13,fs=Ut[5]|0,as=fs&8191,Ss=fs>>>13,Qs=Ut[6]|0,us=Qs&8191,$s=Qs>>>13,dr=Ut[7]|0,vr=dr&8191,Ir=dr>>>13,Vn=Ut[8]|0,kr=Vn&8191,uo=Vn>>>13,Ao=Ut[9]|0,Un=Ao&8191,Go=Ao>>>13;It.negative=Kt.negative^St.negative,It.length=19,fn=Math.imul(tn,bo),dn=Math.imul(tn,Lo),dn=dn+Math.imul(An,bo)|0,Dt=Math.imul(An,Lo);var Fn=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,fn=Math.imul(Nn,bo),dn=Math.imul(Nn,Lo),dn=dn+Math.imul(wr,bo)|0,Dt=Math.imul(wr,Lo),fn=fn+Math.imul(tn,Tr)|0,dn=dn+Math.imul(tn,sn)|0,dn=dn+Math.imul(An,Tr)|0,Dt=Dt+Math.imul(An,sn)|0;var Yn=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,fn=Math.imul(fr,bo),dn=Math.imul(fr,Lo),dn=dn+Math.imul(xr,bo)|0,Dt=Math.imul(xr,Lo),fn=fn+Math.imul(Nn,Tr)|0,dn=dn+Math.imul(Nn,sn)|0,dn=dn+Math.imul(wr,Tr)|0,Dt=Dt+Math.imul(wr,sn)|0,fn=fn+Math.imul(tn,Pn)|0,dn=dn+Math.imul(tn,Gr)|0,dn=dn+Math.imul(An,Pn)|0,Dt=Dt+Math.imul(An,Gr)|0;var qn=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(qn>>>26)|0,qn&=67108863,fn=Math.imul(Jr,bo),dn=Math.imul(Jr,Lo),dn=dn+Math.imul(ro,bo)|0,Dt=Math.imul(ro,Lo),fn=fn+Math.imul(fr,Tr)|0,dn=dn+Math.imul(fr,sn)|0,dn=dn+Math.imul(xr,Tr)|0,Dt=Dt+Math.imul(xr,sn)|0,fn=fn+Math.imul(Nn,Pn)|0,dn=dn+Math.imul(Nn,Gr)|0,dn=dn+Math.imul(wr,Pn)|0,Dt=Dt+Math.imul(wr,Gr)|0,fn=fn+Math.imul(tn,Wr)|0,dn=dn+Math.imul(tn,Zo)|0,dn=dn+Math.imul(An,Wr)|0,Dt=Dt+Math.imul(An,Zo)|0;var vn=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(vn>>>26)|0,vn&=67108863,fn=Math.imul(_o,bo),dn=Math.imul(_o,Lo),dn=dn+Math.imul(Mn,bo)|0,Dt=Math.imul(Mn,Lo),fn=fn+Math.imul(Jr,Tr)|0,dn=dn+Math.imul(Jr,sn)|0,dn=dn+Math.imul(ro,Tr)|0,Dt=Dt+Math.imul(ro,sn)|0,fn=fn+Math.imul(fr,Pn)|0,dn=dn+Math.imul(fr,Gr)|0,dn=dn+Math.imul(xr,Pn)|0,Dt=Dt+Math.imul(xr,Gr)|0,fn=fn+Math.imul(Nn,Wr)|0,dn=dn+Math.imul(Nn,Zo)|0,dn=dn+Math.imul(wr,Wr)|0,Dt=Dt+Math.imul(wr,Zo)|0,fn=fn+Math.imul(tn,ga)|0,dn=dn+Math.imul(tn,cs)|0,dn=dn+Math.imul(An,ga)|0,Dt=Dt+Math.imul(An,cs)|0;var Jn=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,fn=Math.imul(rr,bo),dn=Math.imul(rr,Lo),dn=dn+Math.imul(mr,bo)|0,Dt=Math.imul(mr,Lo),fn=fn+Math.imul(_o,Tr)|0,dn=dn+Math.imul(_o,sn)|0,dn=dn+Math.imul(Mn,Tr)|0,Dt=Dt+Math.imul(Mn,sn)|0,fn=fn+Math.imul(Jr,Pn)|0,dn=dn+Math.imul(Jr,Gr)|0,dn=dn+Math.imul(ro,Pn)|0,Dt=Dt+Math.imul(ro,Gr)|0,fn=fn+Math.imul(fr,Wr)|0,dn=dn+Math.imul(fr,Zo)|0,dn=dn+Math.imul(xr,Wr)|0,Dt=Dt+Math.imul(xr,Zo)|0,fn=fn+Math.imul(Nn,ga)|0,dn=dn+Math.imul(Nn,cs)|0,dn=dn+Math.imul(wr,ga)|0,Dt=Dt+Math.imul(wr,cs)|0,fn=fn+Math.imul(tn,as)|0,dn=dn+Math.imul(tn,Ss)|0,dn=dn+Math.imul(An,as)|0,Dt=Dt+Math.imul(An,Ss)|0;var ir=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(ir>>>26)|0,ir&=67108863,fn=Math.imul(Hr,bo),dn=Math.imul(Hr,Lo),dn=dn+Math.imul(ao,bo)|0,Dt=Math.imul(ao,Lo),fn=fn+Math.imul(rr,Tr)|0,dn=dn+Math.imul(rr,sn)|0,dn=dn+Math.imul(mr,Tr)|0,Dt=Dt+Math.imul(mr,sn)|0,fn=fn+Math.imul(_o,Pn)|0,dn=dn+Math.imul(_o,Gr)|0,dn=dn+Math.imul(Mn,Pn)|0,Dt=Dt+Math.imul(Mn,Gr)|0,fn=fn+Math.imul(Jr,Wr)|0,dn=dn+Math.imul(Jr,Zo)|0,dn=dn+Math.imul(ro,Wr)|0,Dt=Dt+Math.imul(ro,Zo)|0,fn=fn+Math.imul(fr,ga)|0,dn=dn+Math.imul(fr,cs)|0,dn=dn+Math.imul(xr,ga)|0,Dt=Dt+Math.imul(xr,cs)|0,fn=fn+Math.imul(Nn,as)|0,dn=dn+Math.imul(Nn,Ss)|0,dn=dn+Math.imul(wr,as)|0,Dt=Dt+Math.imul(wr,Ss)|0,fn=fn+Math.imul(tn,us)|0,dn=dn+Math.imul(tn,$s)|0,dn=dn+Math.imul(An,us)|0,Dt=Dt+Math.imul(An,$s)|0;var _r=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(_r>>>26)|0,_r&=67108863,fn=Math.imul(Ro,bo),dn=Math.imul(Ro,Lo),dn=dn+Math.imul(br,bo)|0,Dt=Math.imul(br,Lo),fn=fn+Math.imul(Hr,Tr)|0,dn=dn+Math.imul(Hr,sn)|0,dn=dn+Math.imul(ao,Tr)|0,Dt=Dt+Math.imul(ao,sn)|0,fn=fn+Math.imul(rr,Pn)|0,dn=dn+Math.imul(rr,Gr)|0,dn=dn+Math.imul(mr,Pn)|0,Dt=Dt+Math.imul(mr,Gr)|0,fn=fn+Math.imul(_o,Wr)|0,dn=dn+Math.imul(_o,Zo)|0,dn=dn+Math.imul(Mn,Wr)|0,Dt=Dt+Math.imul(Mn,Zo)|0,fn=fn+Math.imul(Jr,ga)|0,dn=dn+Math.imul(Jr,cs)|0,dn=dn+Math.imul(ro,ga)|0,Dt=Dt+Math.imul(ro,cs)|0,fn=fn+Math.imul(fr,as)|0,dn=dn+Math.imul(fr,Ss)|0,dn=dn+Math.imul(xr,as)|0,Dt=Dt+Math.imul(xr,Ss)|0,fn=fn+Math.imul(Nn,us)|0,dn=dn+Math.imul(Nn,$s)|0,dn=dn+Math.imul(wr,us)|0,Dt=Dt+Math.imul(wr,$s)|0,fn=fn+Math.imul(tn,vr)|0,dn=dn+Math.imul(tn,Ir)|0,dn=dn+Math.imul(An,vr)|0,Dt=Dt+Math.imul(An,Ir)|0;var Sr=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,fn=Math.imul(Qr,bo),dn=Math.imul(Qr,Lo),dn=dn+Math.imul(Vr,bo)|0,Dt=Math.imul(Vr,Lo),fn=fn+Math.imul(Ro,Tr)|0,dn=dn+Math.imul(Ro,sn)|0,dn=dn+Math.imul(br,Tr)|0,Dt=Dt+Math.imul(br,sn)|0,fn=fn+Math.imul(Hr,Pn)|0,dn=dn+Math.imul(Hr,Gr)|0,dn=dn+Math.imul(ao,Pn)|0,Dt=Dt+Math.imul(ao,Gr)|0,fn=fn+Math.imul(rr,Wr)|0,dn=dn+Math.imul(rr,Zo)|0,dn=dn+Math.imul(mr,Wr)|0,Dt=Dt+Math.imul(mr,Zo)|0,fn=fn+Math.imul(_o,ga)|0,dn=dn+Math.imul(_o,cs)|0,dn=dn+Math.imul(Mn,ga)|0,Dt=Dt+Math.imul(Mn,cs)|0,fn=fn+Math.imul(Jr,as)|0,dn=dn+Math.imul(Jr,Ss)|0,dn=dn+Math.imul(ro,as)|0,Dt=Dt+Math.imul(ro,Ss)|0,fn=fn+Math.imul(fr,us)|0,dn=dn+Math.imul(fr,$s)|0,dn=dn+Math.imul(xr,us)|0,Dt=Dt+Math.imul(xr,$s)|0,fn=fn+Math.imul(Nn,vr)|0,dn=dn+Math.imul(Nn,Ir)|0,dn=dn+Math.imul(wr,vr)|0,Dt=Dt+Math.imul(wr,Ir)|0,fn=fn+Math.imul(tn,kr)|0,dn=dn+Math.imul(tn,uo)|0,dn=dn+Math.imul(An,kr)|0,Dt=Dt+Math.imul(An,uo)|0;var no=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(no>>>26)|0,no&=67108863,fn=Math.imul(Lr,bo),dn=Math.imul(Lr,Lo),dn=dn+Math.imul(po,bo)|0,Dt=Math.imul(po,Lo),fn=fn+Math.imul(Qr,Tr)|0,dn=dn+Math.imul(Qr,sn)|0,dn=dn+Math.imul(Vr,Tr)|0,Dt=Dt+Math.imul(Vr,sn)|0,fn=fn+Math.imul(Ro,Pn)|0,dn=dn+Math.imul(Ro,Gr)|0,dn=dn+Math.imul(br,Pn)|0,Dt=Dt+Math.imul(br,Gr)|0,fn=fn+Math.imul(Hr,Wr)|0,dn=dn+Math.imul(Hr,Zo)|0,dn=dn+Math.imul(ao,Wr)|0,Dt=Dt+Math.imul(ao,Zo)|0,fn=fn+Math.imul(rr,ga)|0,dn=dn+Math.imul(rr,cs)|0,dn=dn+Math.imul(mr,ga)|0,Dt=Dt+Math.imul(mr,cs)|0,fn=fn+Math.imul(_o,as)|0,dn=dn+Math.imul(_o,Ss)|0,dn=dn+Math.imul(Mn,as)|0,Dt=Dt+Math.imul(Mn,Ss)|0,fn=fn+Math.imul(Jr,us)|0,dn=dn+Math.imul(Jr,$s)|0,dn=dn+Math.imul(ro,us)|0,Dt=Dt+Math.imul(ro,$s)|0,fn=fn+Math.imul(fr,vr)|0,dn=dn+Math.imul(fr,Ir)|0,dn=dn+Math.imul(xr,vr)|0,Dt=Dt+Math.imul(xr,Ir)|0,fn=fn+Math.imul(Nn,kr)|0,dn=dn+Math.imul(Nn,uo)|0,dn=dn+Math.imul(wr,kr)|0,Dt=Dt+Math.imul(wr,uo)|0,fn=fn+Math.imul(tn,Un)|0,dn=dn+Math.imul(tn,Go)|0,dn=dn+Math.imul(An,Un)|0,Dt=Dt+Math.imul(An,Go)|0;var eo=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(eo>>>26)|0,eo&=67108863,fn=Math.imul(Lr,Tr),dn=Math.imul(Lr,sn),dn=dn+Math.imul(po,Tr)|0,Dt=Math.imul(po,sn),fn=fn+Math.imul(Qr,Pn)|0,dn=dn+Math.imul(Qr,Gr)|0,dn=dn+Math.imul(Vr,Pn)|0,Dt=Dt+Math.imul(Vr,Gr)|0,fn=fn+Math.imul(Ro,Wr)|0,dn=dn+Math.imul(Ro,Zo)|0,dn=dn+Math.imul(br,Wr)|0,Dt=Dt+Math.imul(br,Zo)|0,fn=fn+Math.imul(Hr,ga)|0,dn=dn+Math.imul(Hr,cs)|0,dn=dn+Math.imul(ao,ga)|0,Dt=Dt+Math.imul(ao,cs)|0,fn=fn+Math.imul(rr,as)|0,dn=dn+Math.imul(rr,Ss)|0,dn=dn+Math.imul(mr,as)|0,Dt=Dt+Math.imul(mr,Ss)|0,fn=fn+Math.imul(_o,us)|0,dn=dn+Math.imul(_o,$s)|0,dn=dn+Math.imul(Mn,us)|0,Dt=Dt+Math.imul(Mn,$s)|0,fn=fn+Math.imul(Jr,vr)|0,dn=dn+Math.imul(Jr,Ir)|0,dn=dn+Math.imul(ro,vr)|0,Dt=Dt+Math.imul(ro,Ir)|0,fn=fn+Math.imul(fr,kr)|0,dn=dn+Math.imul(fr,uo)|0,dn=dn+Math.imul(xr,kr)|0,Dt=Dt+Math.imul(xr,uo)|0,fn=fn+Math.imul(Nn,Un)|0,dn=dn+Math.imul(Nn,Go)|0,dn=dn+Math.imul(wr,Un)|0,Dt=Dt+Math.imul(wr,Go)|0;var mo=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(mo>>>26)|0,mo&=67108863,fn=Math.imul(Lr,Pn),dn=Math.imul(Lr,Gr),dn=dn+Math.imul(po,Pn)|0,Dt=Math.imul(po,Gr),fn=fn+Math.imul(Qr,Wr)|0,dn=dn+Math.imul(Qr,Zo)|0,dn=dn+Math.imul(Vr,Wr)|0,Dt=Dt+Math.imul(Vr,Zo)|0,fn=fn+Math.imul(Ro,ga)|0,dn=dn+Math.imul(Ro,cs)|0,dn=dn+Math.imul(br,ga)|0,Dt=Dt+Math.imul(br,cs)|0,fn=fn+Math.imul(Hr,as)|0,dn=dn+Math.imul(Hr,Ss)|0,dn=dn+Math.imul(ao,as)|0,Dt=Dt+Math.imul(ao,Ss)|0,fn=fn+Math.imul(rr,us)|0,dn=dn+Math.imul(rr,$s)|0,dn=dn+Math.imul(mr,us)|0,Dt=Dt+Math.imul(mr,$s)|0,fn=fn+Math.imul(_o,vr)|0,dn=dn+Math.imul(_o,Ir)|0,dn=dn+Math.imul(Mn,vr)|0,Dt=Dt+Math.imul(Mn,Ir)|0,fn=fn+Math.imul(Jr,kr)|0,dn=dn+Math.imul(Jr,uo)|0,dn=dn+Math.imul(ro,kr)|0,Dt=Dt+Math.imul(ro,uo)|0,fn=fn+Math.imul(fr,Un)|0,dn=dn+Math.imul(fr,Go)|0,dn=dn+Math.imul(xr,Un)|0,Dt=Dt+Math.imul(xr,Go)|0;var Bo=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(Bo>>>26)|0,Bo&=67108863,fn=Math.imul(Lr,Wr),dn=Math.imul(Lr,Zo),dn=dn+Math.imul(po,Wr)|0,Dt=Math.imul(po,Zo),fn=fn+Math.imul(Qr,ga)|0,dn=dn+Math.imul(Qr,cs)|0,dn=dn+Math.imul(Vr,ga)|0,Dt=Dt+Math.imul(Vr,cs)|0,fn=fn+Math.imul(Ro,as)|0,dn=dn+Math.imul(Ro,Ss)|0,dn=dn+Math.imul(br,as)|0,Dt=Dt+Math.imul(br,Ss)|0,fn=fn+Math.imul(Hr,us)|0,dn=dn+Math.imul(Hr,$s)|0,dn=dn+Math.imul(ao,us)|0,Dt=Dt+Math.imul(ao,$s)|0,fn=fn+Math.imul(rr,vr)|0,dn=dn+Math.imul(rr,Ir)|0,dn=dn+Math.imul(mr,vr)|0,Dt=Dt+Math.imul(mr,Ir)|0,fn=fn+Math.imul(_o,kr)|0,dn=dn+Math.imul(_o,uo)|0,dn=dn+Math.imul(Mn,kr)|0,Dt=Dt+Math.imul(Mn,uo)|0,fn=fn+Math.imul(Jr,Un)|0,dn=dn+Math.imul(Jr,Go)|0,dn=dn+Math.imul(ro,Un)|0,Dt=Dt+Math.imul(ro,Go)|0;var Ft=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,fn=Math.imul(Lr,ga),dn=Math.imul(Lr,cs),dn=dn+Math.imul(po,ga)|0,Dt=Math.imul(po,cs),fn=fn+Math.imul(Qr,as)|0,dn=dn+Math.imul(Qr,Ss)|0,dn=dn+Math.imul(Vr,as)|0,Dt=Dt+Math.imul(Vr,Ss)|0,fn=fn+Math.imul(Ro,us)|0,dn=dn+Math.imul(Ro,$s)|0,dn=dn+Math.imul(br,us)|0,Dt=Dt+Math.imul(br,$s)|0,fn=fn+Math.imul(Hr,vr)|0,dn=dn+Math.imul(Hr,Ir)|0,dn=dn+Math.imul(ao,vr)|0,Dt=Dt+Math.imul(ao,Ir)|0,fn=fn+Math.imul(rr,kr)|0,dn=dn+Math.imul(rr,uo)|0,dn=dn+Math.imul(mr,kr)|0,Dt=Dt+Math.imul(mr,uo)|0,fn=fn+Math.imul(_o,Un)|0,dn=dn+Math.imul(_o,Go)|0,dn=dn+Math.imul(Mn,Un)|0,Dt=Dt+Math.imul(Mn,Go)|0;var ut=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(ut>>>26)|0,ut&=67108863,fn=Math.imul(Lr,as),dn=Math.imul(Lr,Ss),dn=dn+Math.imul(po,as)|0,Dt=Math.imul(po,Ss),fn=fn+Math.imul(Qr,us)|0,dn=dn+Math.imul(Qr,$s)|0,dn=dn+Math.imul(Vr,us)|0,Dt=Dt+Math.imul(Vr,$s)|0,fn=fn+Math.imul(Ro,vr)|0,dn=dn+Math.imul(Ro,Ir)|0,dn=dn+Math.imul(br,vr)|0,Dt=Dt+Math.imul(br,Ir)|0,fn=fn+Math.imul(Hr,kr)|0,dn=dn+Math.imul(Hr,uo)|0,dn=dn+Math.imul(ao,kr)|0,Dt=Dt+Math.imul(ao,uo)|0,fn=fn+Math.imul(rr,Un)|0,dn=dn+Math.imul(rr,Go)|0,dn=dn+Math.imul(mr,Un)|0,Dt=Dt+Math.imul(mr,Go)|0;var bt=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(bt>>>26)|0,bt&=67108863,fn=Math.imul(Lr,us),dn=Math.imul(Lr,$s),dn=dn+Math.imul(po,us)|0,Dt=Math.imul(po,$s),fn=fn+Math.imul(Qr,vr)|0,dn=dn+Math.imul(Qr,Ir)|0,dn=dn+Math.imul(Vr,vr)|0,Dt=Dt+Math.imul(Vr,Ir)|0,fn=fn+Math.imul(Ro,kr)|0,dn=dn+Math.imul(Ro,uo)|0,dn=dn+Math.imul(br,kr)|0,Dt=Dt+Math.imul(br,uo)|0,fn=fn+Math.imul(Hr,Un)|0,dn=dn+Math.imul(Hr,Go)|0,dn=dn+Math.imul(ao,Un)|0,Dt=Dt+Math.imul(ao,Go)|0;var $a=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+($a>>>26)|0,$a&=67108863,fn=Math.imul(Lr,vr),dn=Math.imul(Lr,Ir),dn=dn+Math.imul(po,vr)|0,Dt=Math.imul(po,Ir),fn=fn+Math.imul(Qr,kr)|0,dn=dn+Math.imul(Qr,uo)|0,dn=dn+Math.imul(Vr,kr)|0,Dt=Dt+Math.imul(Vr,uo)|0,fn=fn+Math.imul(Ro,Un)|0,dn=dn+Math.imul(Ro,Go)|0,dn=dn+Math.imul(br,Un)|0,Dt=Dt+Math.imul(br,Go)|0;var vo=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(vo>>>26)|0,vo&=67108863,fn=Math.imul(Lr,kr),dn=Math.imul(Lr,uo),dn=dn+Math.imul(po,kr)|0,Dt=Math.imul(po,uo),fn=fn+Math.imul(Qr,Un)|0,dn=dn+Math.imul(Qr,Go)|0,dn=dn+Math.imul(Vr,Un)|0,Dt=Dt+Math.imul(Vr,Go)|0;var Io=(qt+fn|0)+((dn&8191)<<13)|0;qt=(Dt+(dn>>>13)|0)+(Io>>>26)|0,Io&=67108863,fn=Math.imul(Lr,Un),dn=Math.imul(Lr,Go),dn=dn+Math.imul(po,Un)|0,Dt=Math.imul(po,Go);var ko=(qt+fn|0)+((dn&8191)<<13)|0;return qt=(Dt+(dn>>>13)|0)+(ko>>>26)|0,ko&=67108863,Vt[0]=Fn,Vt[1]=Yn,Vt[2]=qn,Vt[3]=vn,Vt[4]=Jn,Vt[5]=ir,Vt[6]=_r,Vt[7]=Sr,Vt[8]=no,Vt[9]=eo,Vt[10]=mo,Vt[11]=Bo,Vt[12]=Ft,Vt[13]=ut,Vt[14]=bt,Vt[15]=$a,Vt[16]=vo,Vt[17]=Io,Vt[18]=ko,qt!==0&&(Vt[19]=qt,It.length++),It};Math.imul||(wt=Qt);function Nt(Yt,Kt,St){St.negative=Kt.negative^Yt.negative,St.length=Yt.length+Kt.length;for(var It=0,Gt=0,Ut=0;Ut>>26)|0,Gt+=Vt>>>26,Vt&=67108863}St.words[Ut]=qt,It=Vt,Vt=Gt}return It!==0?St.words[Ut]=It:St.length--,St.strip()}function xt(Yt,Kt,St){var It=new Et;return It.mulp(Yt,Kt,St)}ht.prototype.mulTo=function(Kt,St){var It,Gt=this.length+Kt.length;return this.length===10&&Kt.length===10?It=wt(this,Kt,St):Gt<63?It=Qt(this,Kt,St):Gt<1024?It=Nt(this,Kt,St):It=xt(this,Kt,St),It};function Et(Yt,Kt){this.x=Yt,this.y=Kt}Et.prototype.makeRBT=function(Kt){for(var St=new Array(Kt),It=ht.prototype._countBits(Kt)-1,Gt=0;Gt>=1;return Gt},Et.prototype.permute=function(Kt,St,It,Gt,Ut,Vt){for(var qt=0;qt>>1)Ut++;return 1<>>13,It[2*Vt+1]=Ut&8191,Ut=Ut>>>13;for(Vt=2*St;Vt>=26,St+=Gt/67108864|0,St+=Ut>>>26,this.words[It]=Ut&67108863}return St!==0&&(this.words[It]=St,this.length++),this},ht.prototype.muln=function(Kt){return this.clone().imuln(Kt)},ht.prototype.sqr=function(){return this.mul(this)},ht.prototype.isqr=function(){return this.imul(this.clone())},ht.prototype.pow=function(Kt){var St=nn(Kt);if(St.length===0)return new ht(1);for(var It=this,Gt=0;Gt=0);var St=Kt%26,It=(Kt-St)/26,Gt=67108863>>>26-St<<26-St,Ut;if(St!==0){var Vt=0;for(Ut=0;Ut>>26-St}Vt&&(this.words[Ut]=Vt,this.length++)}if(It!==0){for(Ut=this.length-1;Ut>=0;Ut--)this.words[Ut+It]=this.words[Ut];for(Ut=0;Ut=0);var Gt;St?Gt=(St-St%26)/26:Gt=0;var Ut=Kt%26,Vt=Math.min((Kt-Ut)/26,this.length),qt=67108863^67108863>>>Ut<Vt)for(this.length-=Vt,dn=0;dn=0&&(Dt!==0||dn>=Gt);dn--){var zt=this.words[dn]|0;this.words[dn]=Dt<<26-Ut|zt>>>Ut,Dt=zt&qt}return fn&&Dt!==0&&(fn.words[fn.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},ht.prototype.ishrn=function(Kt,St,It){return ct(this.negative===0),this.iushrn(Kt,St,It)},ht.prototype.shln=function(Kt){return this.clone().ishln(Kt)},ht.prototype.ushln=function(Kt){return this.clone().iushln(Kt)},ht.prototype.shrn=function(Kt){return this.clone().ishrn(Kt)},ht.prototype.ushrn=function(Kt){return this.clone().iushrn(Kt)},ht.prototype.testn=function(Kt){ct(typeof Kt=="number"&&Kt>=0);var St=Kt%26,It=(Kt-St)/26,Gt=1<=0);var St=Kt%26,It=(Kt-St)/26;if(ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=It)return this;if(St!==0&&It++,this.length=Math.min(It,this.length),St!==0){var Gt=67108863^67108863>>>St<=67108864;St++)this.words[St]-=67108864,St===this.length-1?this.words[St+1]=1:this.words[St+1]++;return this.length=Math.max(this.length,St+1),this},ht.prototype.isubn=function(Kt){if(ct(typeof Kt=="number"),ct(Kt<67108864),Kt<0)return this.iaddn(-Kt);if(this.negative!==0)return this.negative=0,this.iaddn(Kt),this.negative=1,this;if(this.words[0]-=Kt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var St=0;St>26)-(fn/67108864|0),this.words[Ut+It]=Vt&67108863}for(;Ut>26,this.words[Ut+It]=Vt&67108863;if(qt===0)return this.strip();for(ct(qt===-1),qt=0,Ut=0;Ut>26,this.words[Ut]=Vt&67108863;return this.negative=1,this.strip()},ht.prototype._wordDiv=function(Kt,St){var It=this.length-Kt.length,Gt=this.clone(),Ut=Kt,Vt=Ut.words[Ut.length-1]|0,qt=this._countBits(Vt);It=26-qt,It!==0&&(Ut=Ut.ushln(It),Gt.iushln(It),Vt=Ut.words[Ut.length-1]|0);var fn=Gt.length-Ut.length,dn;if(St!=="mod"){dn=new ht(null),dn.length=fn+1,dn.words=new Array(dn.length);for(var Dt=0;Dt=0;tn--){var An=(Gt.words[Ut.length+tn]|0)*67108864+(Gt.words[Ut.length+tn-1]|0);for(An=Math.min(An/Vt|0,67108863),Gt._ishlnsubmul(Ut,An,tn);Gt.negative!==0;)An--,Gt.negative=0,Gt._ishlnsubmul(Ut,1,tn),Gt.isZero()||(Gt.negative^=1);dn&&(dn.words[tn]=An)}return dn&&dn.strip(),Gt.strip(),St!=="div"&&It!==0&&Gt.iushrn(It),{div:dn||null,mod:Gt}},ht.prototype.divmod=function(Kt,St,It){if(ct(!Kt.isZero()),this.isZero())return{div:new ht(0),mod:new ht(0)};var Gt,Ut,Vt;return this.negative!==0&&Kt.negative===0?(Vt=this.neg().divmod(Kt,St),St!=="mod"&&(Gt=Vt.div.neg()),St!=="div"&&(Ut=Vt.mod.neg(),It&&Ut.negative!==0&&Ut.iadd(Kt)),{div:Gt,mod:Ut}):this.negative===0&&Kt.negative!==0?(Vt=this.divmod(Kt.neg(),St),St!=="mod"&&(Gt=Vt.div.neg()),{div:Gt,mod:Vt.mod}):this.negative&Kt.negative?(Vt=this.neg().divmod(Kt.neg(),St),St!=="div"&&(Ut=Vt.mod.neg(),It&&Ut.negative!==0&&Ut.isub(Kt)),{div:Vt.div,mod:Ut}):Kt.length>this.length||this.cmp(Kt)<0?{div:new ht(0),mod:this}:Kt.length===1?St==="div"?{div:this.divn(Kt.words[0]),mod:null}:St==="mod"?{div:null,mod:new ht(this.modn(Kt.words[0]))}:{div:this.divn(Kt.words[0]),mod:new ht(this.modn(Kt.words[0]))}:this._wordDiv(Kt,St)},ht.prototype.div=function(Kt){return this.divmod(Kt,"div",!1).div},ht.prototype.mod=function(Kt){return this.divmod(Kt,"mod",!1).mod},ht.prototype.umod=function(Kt){return this.divmod(Kt,"mod",!0).mod},ht.prototype.divRound=function(Kt){var St=this.divmod(Kt);if(St.mod.isZero())return St.div;var It=St.div.negative!==0?St.mod.isub(Kt):St.mod,Gt=Kt.ushrn(1),Ut=Kt.andln(1),Vt=It.cmp(Gt);return Vt<0||Ut===1&&Vt===0?St.div:St.div.negative!==0?St.div.isubn(1):St.div.iaddn(1)},ht.prototype.modn=function(Kt){ct(Kt<=67108863);for(var St=(1<<26)%Kt,It=0,Gt=this.length-1;Gt>=0;Gt--)It=(St*It+(this.words[Gt]|0))%Kt;return It},ht.prototype.idivn=function(Kt){ct(Kt<=67108863);for(var St=0,It=this.length-1;It>=0;It--){var Gt=(this.words[It]|0)+St*67108864;this.words[It]=Gt/Kt|0,St=Gt%Kt}return this.strip()},ht.prototype.divn=function(Kt){return this.clone().idivn(Kt)},ht.prototype.egcd=function(Kt){ct(Kt.negative===0),ct(!Kt.isZero());var St=this,It=Kt.clone();St.negative!==0?St=St.umod(Kt):St=St.clone();for(var Gt=new ht(1),Ut=new ht(0),Vt=new ht(0),qt=new ht(1),fn=0;St.isEven()&&It.isEven();)St.iushrn(1),It.iushrn(1),++fn;for(var dn=It.clone(),Dt=St.clone();!St.isZero();){for(var zt=0,tn=1;!(St.words[0]&tn)&&zt<26;++zt,tn<<=1);if(zt>0)for(St.iushrn(zt);zt-- >0;)(Gt.isOdd()||Ut.isOdd())&&(Gt.iadd(dn),Ut.isub(Dt)),Gt.iushrn(1),Ut.iushrn(1);for(var An=0,gn=1;!(It.words[0]&gn)&&An<26;++An,gn<<=1);if(An>0)for(It.iushrn(An);An-- >0;)(Vt.isOdd()||qt.isOdd())&&(Vt.iadd(dn),qt.isub(Dt)),Vt.iushrn(1),qt.iushrn(1);St.cmp(It)>=0?(St.isub(It),Gt.isub(Vt),Ut.isub(qt)):(It.isub(St),Vt.isub(Gt),qt.isub(Ut))}return{a:Vt,b:qt,gcd:It.iushln(fn)}},ht.prototype._invmp=function(Kt){ct(Kt.negative===0),ct(!Kt.isZero());var St=this,It=Kt.clone();St.negative!==0?St=St.umod(Kt):St=St.clone();for(var Gt=new ht(1),Ut=new ht(0),Vt=It.clone();St.cmpn(1)>0&&It.cmpn(1)>0;){for(var qt=0,fn=1;!(St.words[0]&fn)&&qt<26;++qt,fn<<=1);if(qt>0)for(St.iushrn(qt);qt-- >0;)Gt.isOdd()&&Gt.iadd(Vt),Gt.iushrn(1);for(var dn=0,Dt=1;!(It.words[0]&Dt)&&dn<26;++dn,Dt<<=1);if(dn>0)for(It.iushrn(dn);dn-- >0;)Ut.isOdd()&&Ut.iadd(Vt),Ut.iushrn(1);St.cmp(It)>=0?(St.isub(It),Gt.isub(Ut)):(It.isub(St),Ut.isub(Gt))}var zt;return St.cmpn(1)===0?zt=Gt:zt=Ut,zt.cmpn(0)<0&&zt.iadd(Kt),zt},ht.prototype.gcd=function(Kt){if(this.isZero())return Kt.abs();if(Kt.isZero())return this.abs();var St=this.clone(),It=Kt.clone();St.negative=0,It.negative=0;for(var Gt=0;St.isEven()&&It.isEven();Gt++)St.iushrn(1),It.iushrn(1);do{for(;St.isEven();)St.iushrn(1);for(;It.isEven();)It.iushrn(1);var Ut=St.cmp(It);if(Ut<0){var Vt=St;St=It,It=Vt}else if(Ut===0||It.cmpn(1)===0)break;St.isub(It)}while(!0);return It.iushln(Gt)},ht.prototype.invm=function(Kt){return this.egcd(Kt).a.umod(Kt)},ht.prototype.isEven=function(){return(this.words[0]&1)===0},ht.prototype.isOdd=function(){return(this.words[0]&1)===1},ht.prototype.andln=function(Kt){return this.words[0]&Kt},ht.prototype.bincn=function(Kt){ct(typeof Kt=="number");var St=Kt%26,It=(Kt-St)/26,Gt=1<>>26,qt&=67108863,this.words[Vt]=qt}return Ut!==0&&(this.words[Vt]=Ut,this.length++),this},ht.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ht.prototype.cmpn=function(Kt){var St=Kt<0;if(this.negative!==0&&!St)return-1;if(this.negative===0&&St)return 1;this.strip();var It;if(this.length>1)It=1;else{St&&(Kt=-Kt),ct(Kt<=67108863,"Number is too big");var Gt=this.words[0]|0;It=Gt===Kt?0:GtKt.length)return 1;if(this.length=0;It--){var Gt=this.words[It]|0,Ut=Kt.words[It]|0;if(Gt!==Ut){GtUt&&(St=1);break}}return St},ht.prototype.gtn=function(Kt){return this.cmpn(Kt)===1},ht.prototype.gt=function(Kt){return this.cmp(Kt)===1},ht.prototype.gten=function(Kt){return this.cmpn(Kt)>=0},ht.prototype.gte=function(Kt){return this.cmp(Kt)>=0},ht.prototype.ltn=function(Kt){return this.cmpn(Kt)===-1},ht.prototype.lt=function(Kt){return this.cmp(Kt)===-1},ht.prototype.lten=function(Kt){return this.cmpn(Kt)<=0},ht.prototype.lte=function(Kt){return this.cmp(Kt)<=0},ht.prototype.eqn=function(Kt){return this.cmpn(Kt)===0},ht.prototype.eq=function(Kt){return this.cmp(Kt)===0},ht.red=function(Kt){return new yt(Kt)},ht.prototype.toRed=function(Kt){return ct(!this.red,"Already a number in reduction context"),ct(this.negative===0,"red works only with positives"),Kt.convertTo(this)._forceRed(Kt)},ht.prototype.fromRed=function(){return ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ht.prototype._forceRed=function(Kt){return this.red=Kt,this},ht.prototype.forceRed=function(Kt){return ct(!this.red,"Already a number in reduction context"),this._forceRed(Kt)},ht.prototype.redAdd=function(Kt){return ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Kt)},ht.prototype.redIAdd=function(Kt){return ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Kt)},ht.prototype.redSub=function(Kt){return ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Kt)},ht.prototype.redISub=function(Kt){return ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Kt)},ht.prototype.redShl=function(Kt){return ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Kt)},ht.prototype.redMul=function(Kt){return ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Kt),this.red.mul(this,Kt)},ht.prototype.redIMul=function(Kt){return ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Kt),this.red.imul(this,Kt)},ht.prototype.redSqr=function(){return ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ht.prototype.redISqr=function(){return ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ht.prototype.redSqrt=function(){return ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ht.prototype.redInvm=function(){return ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ht.prototype.redNeg=function(){return ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ht.prototype.redPow=function(Kt){return ct(this.red&&!Kt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Kt)};var Bt={k256:null,p224:null,p192:null,p25519:null};function Tt(Yt,Kt){this.name=Yt,this.p=new ht(Kt,16),this.n=this.p.bitLength(),this.k=new ht(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Tt.prototype._tmp=function(){var Kt=new ht(null);return Kt.words=new Array(Math.ceil(this.n/13)),Kt},Tt.prototype.ireduce=function(Kt){var St=Kt,It;do this.split(St,this.tmp),St=this.imulK(St),St=St.iadd(this.tmp),It=St.bitLength();while(It>this.n);var Gt=It0?St.isub(this.p):St.strip!==void 0?St.strip():St._strip(),St},Tt.prototype.split=function(Kt,St){Kt.iushrn(this.n,0,St)},Tt.prototype.imulK=function(Kt){return Kt.imul(this.k)};function Mt(){Tt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}lt(Mt,Tt),Mt.prototype.split=function(Kt,St){for(var It=4194303,Gt=Math.min(Kt.length,9),Ut=0;Ut>>22,Vt=qt}Vt>>>=22,Kt.words[Ut-10]=Vt,Vt===0&&Kt.length>10?Kt.length-=10:Kt.length-=9},Mt.prototype.imulK=function(Kt){Kt.words[Kt.length]=0,Kt.words[Kt.length+1]=0,Kt.length+=2;for(var St=0,It=0;It>>=26,Kt.words[It]=Ut,St=Gt}return St!==0&&(Kt.words[Kt.length++]=St),Kt},ht._prime=function(Kt){if(Bt[Kt])return Bt[Kt];var St;if(Kt==="k256")St=new Mt;else if(Kt==="p224")St=new jt;else if(Kt==="p192")St=new Ht;else if(Kt==="p25519")St=new an;else throw new Error("Unknown prime "+Kt);return Bt[Kt]=St,St};function yt(Yt){if(typeof Yt=="string"){var Kt=ht._prime(Yt);this.m=Kt.p,this.prime=Kt}else ct(Yt.gtn(1),"modulus must be greater than 1"),this.m=Yt,this.prime=null}yt.prototype._verify1=function(Kt){ct(Kt.negative===0,"red works only with positives"),ct(Kt.red,"red works only with red numbers")},yt.prototype._verify2=function(Kt,St){ct((Kt.negative|St.negative)===0,"red works only with positives"),ct(Kt.red&&Kt.red===St.red,"red works only with red numbers")},yt.prototype.imod=function(Kt){return this.prime?this.prime.ireduce(Kt)._forceRed(this):Kt.umod(this.m)._forceRed(this)},yt.prototype.neg=function(Kt){return Kt.isZero()?Kt.clone():this.m.sub(Kt)._forceRed(this)},yt.prototype.add=function(Kt,St){this._verify2(Kt,St);var It=Kt.add(St);return It.cmp(this.m)>=0&&It.isub(this.m),It._forceRed(this)},yt.prototype.iadd=function(Kt,St){this._verify2(Kt,St);var It=Kt.iadd(St);return It.cmp(this.m)>=0&&It.isub(this.m),It},yt.prototype.sub=function(Kt,St){this._verify2(Kt,St);var It=Kt.sub(St);return It.cmpn(0)<0&&It.iadd(this.m),It._forceRed(this)},yt.prototype.isub=function(Kt,St){this._verify2(Kt,St);var It=Kt.isub(St);return It.cmpn(0)<0&&It.iadd(this.m),It},yt.prototype.shl=function(Kt,St){return this._verify1(Kt),this.imod(Kt.ushln(St))},yt.prototype.imul=function(Kt,St){return this._verify2(Kt,St),this.imod(Kt.imul(St))},yt.prototype.mul=function(Kt,St){return this._verify2(Kt,St),this.imod(Kt.mul(St))},yt.prototype.isqr=function(Kt){return this.imul(Kt,Kt.clone())},yt.prototype.sqr=function(Kt){return this.mul(Kt,Kt)},yt.prototype.sqrt=function(Kt){if(Kt.isZero())return Kt.clone();var St=this.m.andln(3);if(ct(St%2===1),St===3){var It=this.m.add(new ht(1)).iushrn(2);return this.pow(Kt,It)}for(var Gt=this.m.subn(1),Ut=0;!Gt.isZero()&&Gt.andln(1)===0;)Ut++,Gt.iushrn(1);ct(!Gt.isZero());var Vt=new ht(1).toRed(this),qt=Vt.redNeg(),fn=this.m.subn(1).iushrn(1),dn=this.m.bitLength();for(dn=new ht(2*dn*dn).toRed(this);this.pow(dn,fn).cmp(qt)!==0;)dn.redIAdd(qt);for(var Dt=this.pow(dn,Gt),zt=this.pow(Kt,Gt.addn(1).iushrn(1)),tn=this.pow(Kt,Gt),An=Ut;tn.cmp(Vt)!==0;){for(var gn=tn,Nn=0;gn.cmp(Vt)!==0;Nn++)gn=gn.redSqr();ct(Nn=0;Ut--){for(var Dt=St.words[Ut],zt=dn-1;zt>=0;zt--){var tn=Dt>>zt&1;if(Vt!==Gt[0]&&(Vt=this.sqr(Vt)),tn===0&&qt===0){fn=0;continue}qt<<=1,qt|=tn,fn++,!(fn!==It&&(Ut!==0||zt!==0))&&(Vt=this.mul(Vt,Gt[qt]),fn=0,qt=0)}dn=26}return Vt},yt.prototype.convertTo=function(Kt){var St=Kt.umod(this.m);return St===Kt?St.clone():St},yt.prototype.convertFrom=function(Kt){var St=Kt.clone();return St.red=null,St},ht.mont=function(Kt){return new $t(Kt)};function $t(Yt){yt.call(this,Yt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ht(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)}lt($t,yt),$t.prototype.convertTo=function(Kt){return this.imod(Kt.ushln(this.shift))},$t.prototype.convertFrom=function(Kt){var St=this.imod(Kt.mul(this.rinv));return St.red=null,St},$t.prototype.imul=function(Kt,St){if(Kt.isZero()||St.isZero())return Kt.words[0]=0,Kt.length=1,Kt;var It=Kt.imul(St),Gt=It.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ut=It.isub(Gt).iushrn(this.shift),Vt=Ut;return Ut.cmp(this.m)>=0?Vt=Ut.isub(this.m):Ut.cmpn(0)<0&&(Vt=Ut.iadd(this.m)),Vt._forceRed(this)},$t.prototype.mul=function(Kt,St){if(Kt.isZero()||St.isZero())return new ht(0)._forceRed(this);var It=Kt.mul(St),Gt=It.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ut=It.isub(Gt).iushrn(this.shift),Vt=Ut;return Ut.cmp(this.m)>=0?Vt=Ut.isub(this.m):Ut.cmpn(0)<0&&(Vt=Ut.iadd(this.m)),Vt._forceRed(this)},$t.prototype.invm=function(Kt){var St=this.imod(Kt._invmp(this.m).mul(this.r2));return St._forceRed(this)}})(d,commonjsGlobal)})(bn);var bnExports=bn.exports,minimalisticAssert=assert$g;function assert$g(d,b){if(!d)throw new Error(b||"Assertion failed")}assert$g.equal=function d(b,dt,ct){if(b!=dt)throw new Error(ct||"Assertion failed: "+b+" != "+dt)};var utils$B={};(function(d){var b=d;function dt(ht,mt){if(Array.isArray(ht))return ht.slice();if(!ht)return[];var vt=[];if(typeof ht!="string"){for(var kt=0;kt>8,Zt=Pt&255;Jt?vt.push(Jt,Zt):vt.push(Zt)}return vt}b.toArray=dt;function ct(ht){return ht.length===1?"0"+ht:ht}b.zero2=ct;function lt(ht){for(var mt="",vt=0;vt(wt>>1)-1?xt=(wt>>1)-Et:xt=Et,Nt.isubn(xt)):xt=0,nn[Qt]=xt,Nt.iushrn(1)}return nn}b.getNAF=ht;function mt(Jt,Zt){var Rt=[[],[]];Jt=Jt.clone(),Zt=Zt.clone();for(var nn=0,Qt=0,wt;Jt.cmpn(-nn)>0||Zt.cmpn(-Qt)>0;){var Nt=Jt.andln(3)+nn&3,xt=Zt.andln(3)+Qt&3;Nt===3&&(Nt=-1),xt===3&&(xt=-1);var Et;Nt&1?(wt=Jt.andln(7)+nn&7,(wt===3||wt===5)&&xt===2?Et=-Nt:Et=Nt):Et=0,Rt[0].push(Et);var Bt;xt&1?(wt=Zt.andln(7)+Qt&7,(wt===3||wt===5)&&Nt===2?Bt=-xt:Bt=xt):Bt=0,Rt[1].push(Bt),2*nn===Et+1&&(nn=1-nn),2*Qt===Bt+1&&(Qt=1-Qt),Jt.iushrn(1),Zt.iushrn(1)}return Rt}b.getJSF=mt;function vt(Jt,Zt,Rt){var nn="_"+Zt;Jt.prototype[Zt]=function(){return this[nn]!==void 0?this[nn]:this[nn]=Rt.call(this)}}b.cachedProperty=vt;function kt(Jt){return typeof Jt=="string"?b.toArray(Jt,"hex"):Jt}b.parseBytes=kt;function Pt(Jt){return new dt(Jt,"hex","le")}b.intFromLE=Pt})(utils$C);var brorand={exports:{}},r$1;brorand.exports=function d(b){return r$1||(r$1=new Rand(null)),r$1.generate(b)};function Rand(d){this.rand=d}brorand.exports.Rand=Rand;Rand.prototype.generate=function d(b){return this._rand(b)};Rand.prototype._rand=function d(b){if(this.rand.getBytes)return this.rand.getBytes(b);for(var dt=new Uint8Array(b),ct=0;ct0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function d(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function d(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function d(b,dt){assert$f(b.precomputed);var ct=b._getDoubles(),lt=getNAF(dt,1,this._bitLength),ht=(1<=vt;Pt--)kt=(kt<<1)+lt[Pt];mt.push(kt)}for(var Jt=this.jpoint(null,null,null),Zt=this.jpoint(null,null,null),Rt=ht;Rt>0;Rt--){for(vt=0;vt=0;kt--){for(var Pt=0;kt>=0&&mt[kt]===0;kt--)Pt++;if(kt>=0&&Pt++,vt=vt.dblp(Pt),kt<0)break;var Jt=mt[kt];assert$f(Jt!==0),b.type==="affine"?Jt>0?vt=vt.mixedAdd(ht[Jt-1>>1]):vt=vt.mixedAdd(ht[-Jt-1>>1].neg()):Jt>0?vt=vt.add(ht[Jt-1>>1]):vt=vt.add(ht[-Jt-1>>1].neg())}return b.type==="affine"?vt.toP():vt};BaseCurve.prototype._wnafMulAdd=function d(b,dt,ct,lt,ht){var mt=this._wnafT1,vt=this._wnafT2,kt=this._wnafT3,Pt=0,Jt,Zt,Rt;for(Jt=0;Jt=1;Jt-=2){var Qt=Jt-1,wt=Jt;if(mt[Qt]!==1||mt[wt]!==1){kt[Qt]=getNAF(ct[Qt],mt[Qt],this._bitLength),kt[wt]=getNAF(ct[wt],mt[wt],this._bitLength),Pt=Math.max(kt[Qt].length,Pt),Pt=Math.max(kt[wt].length,Pt);continue}var Nt=[dt[Qt],null,null,dt[wt]];dt[Qt].y.cmp(dt[wt].y)===0?(Nt[1]=dt[Qt].add(dt[wt]),Nt[2]=dt[Qt].toJ().mixedAdd(dt[wt].neg())):dt[Qt].y.cmp(dt[wt].y.redNeg())===0?(Nt[1]=dt[Qt].toJ().mixedAdd(dt[wt]),Nt[2]=dt[Qt].add(dt[wt].neg())):(Nt[1]=dt[Qt].toJ().mixedAdd(dt[wt]),Nt[2]=dt[Qt].toJ().mixedAdd(dt[wt].neg()));var xt=[-3,-1,-5,-7,0,7,5,1,3],Et=getJSF(ct[Qt],ct[wt]);for(Pt=Math.max(Et[0].length,Pt),kt[Qt]=new Array(Pt),kt[wt]=new Array(Pt),Zt=0;Zt=0;Jt--){for(var Ht=0;Jt>=0;){var an=!0;for(Zt=0;Zt=0&&Ht++,Mt=Mt.dblp(Ht),Jt<0)break;for(Zt=0;Zt0?Rt=vt[Zt][yt-1>>1]:yt<0&&(Rt=vt[Zt][-yt-1>>1].neg()),Rt.type==="affine"?Mt=Mt.mixedAdd(Rt):Mt=Mt.add(Rt))}}for(Jt=0;Jt=Math.ceil((b.bitLength()+1)/dt.step):!1};BasePoint.prototype._getDoubles=function d(b,dt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var ct=[this],lt=this,ht=0;ht=0&&(nn=Pt,Qt=Jt),Zt.negative&&(Zt=Zt.neg(),Rt=Rt.neg()),nn.negative&&(nn=nn.neg(),Qt=Qt.neg()),[{a:Zt,b:Rt},{a:nn,b:Qt}]};ShortCurve.prototype._endoSplit=function d(b){var dt=this.endo.basis,ct=dt[0],lt=dt[1],ht=lt.b.mul(b).divRound(this.n),mt=ct.b.neg().mul(b).divRound(this.n),vt=ht.mul(ct.a),kt=mt.mul(lt.a),Pt=ht.mul(ct.b),Jt=mt.mul(lt.b),Zt=b.sub(vt).sub(kt),Rt=Pt.add(Jt).neg();return{k1:Zt,k2:Rt}};ShortCurve.prototype.pointFromX=function d(b,dt){b=new BN$6(b,16),b.red||(b=b.toRed(this.red));var ct=b.redSqr().redMul(b).redIAdd(b.redMul(this.a)).redIAdd(this.b),lt=ct.redSqrt();if(lt.redSqr().redSub(ct).cmp(this.zero)!==0)throw new Error("invalid point");var ht=lt.fromRed().isOdd();return(dt&&!ht||!dt&&ht)&&(lt=lt.redNeg()),this.point(b,lt)};ShortCurve.prototype.validate=function d(b){if(b.inf)return!0;var dt=b.x,ct=b.y,lt=this.a.redMul(dt),ht=dt.redSqr().redMul(dt).redIAdd(lt).redIAdd(this.b);return ct.redSqr().redISub(ht).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function d(b,dt,ct){for(var lt=this._endoWnafT1,ht=this._endoWnafT2,mt=0;mt":""};Point$2.prototype.isInfinity=function d(){return this.inf};Point$2.prototype.add=function d(b){if(this.inf)return b;if(b.inf)return this;if(this.eq(b))return this.dbl();if(this.neg().eq(b))return this.curve.point(null,null);if(this.x.cmp(b.x)===0)return this.curve.point(null,null);var dt=this.y.redSub(b.y);dt.cmpn(0)!==0&&(dt=dt.redMul(this.x.redSub(b.x).redInvm()));var ct=dt.redSqr().redISub(this.x).redISub(b.x),lt=dt.redMul(this.x.redSub(ct)).redISub(this.y);return this.curve.point(ct,lt)};Point$2.prototype.dbl=function d(){if(this.inf)return this;var b=this.y.redAdd(this.y);if(b.cmpn(0)===0)return this.curve.point(null,null);var dt=this.curve.a,ct=this.x.redSqr(),lt=b.redInvm(),ht=ct.redAdd(ct).redIAdd(ct).redIAdd(dt).redMul(lt),mt=ht.redSqr().redISub(this.x.redAdd(this.x)),vt=ht.redMul(this.x.redSub(mt)).redISub(this.y);return this.curve.point(mt,vt)};Point$2.prototype.getX=function d(){return this.x.fromRed()};Point$2.prototype.getY=function d(){return this.y.fromRed()};Point$2.prototype.mul=function d(b){return b=new BN$6(b,16),this.isInfinity()?this:this._hasDoubles(b)?this.curve._fixedNafMul(this,b):this.curve.endo?this.curve._endoWnafMulAdd([this],[b]):this.curve._wnafMul(this,b)};Point$2.prototype.mulAdd=function d(b,dt,ct){var lt=[this,dt],ht=[b,ct];return this.curve.endo?this.curve._endoWnafMulAdd(lt,ht):this.curve._wnafMulAdd(1,lt,ht,2)};Point$2.prototype.jmulAdd=function d(b,dt,ct){var lt=[this,dt],ht=[b,ct];return this.curve.endo?this.curve._endoWnafMulAdd(lt,ht,!0):this.curve._wnafMulAdd(1,lt,ht,2,!0)};Point$2.prototype.eq=function d(b){return this===b||this.inf===b.inf&&(this.inf||this.x.cmp(b.x)===0&&this.y.cmp(b.y)===0)};Point$2.prototype.neg=function d(b){if(this.inf)return this;var dt=this.curve.point(this.x,this.y.redNeg());if(b&&this.precomputed){var ct=this.precomputed,lt=function(ht){return ht.neg()};dt.precomputed={naf:ct.naf&&{wnd:ct.naf.wnd,points:ct.naf.points.map(lt)},doubles:ct.doubles&&{step:ct.doubles.step,points:ct.doubles.points.map(lt)}}}return dt};Point$2.prototype.toJ=function d(){if(this.inf)return this.curve.jpoint(null,null,null);var b=this.curve.jpoint(this.x,this.y,this.curve.one);return b};function JPoint(d,b,dt,ct){Base$2.BasePoint.call(this,d,"jacobian"),b===null&&dt===null&&ct===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$6(0)):(this.x=new BN$6(b,16),this.y=new BN$6(dt,16),this.z=new BN$6(ct,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}inherits$4(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function d(b,dt,ct){return new JPoint(this,b,dt,ct)};JPoint.prototype.toP=function d(){if(this.isInfinity())return this.curve.point(null,null);var b=this.z.redInvm(),dt=b.redSqr(),ct=this.x.redMul(dt),lt=this.y.redMul(dt).redMul(b);return this.curve.point(ct,lt)};JPoint.prototype.neg=function d(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function d(b){if(this.isInfinity())return b;if(b.isInfinity())return this;var dt=b.z.redSqr(),ct=this.z.redSqr(),lt=this.x.redMul(dt),ht=b.x.redMul(ct),mt=this.y.redMul(dt.redMul(b.z)),vt=b.y.redMul(ct.redMul(this.z)),kt=lt.redSub(ht),Pt=mt.redSub(vt);if(kt.cmpn(0)===0)return Pt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Jt=kt.redSqr(),Zt=Jt.redMul(kt),Rt=lt.redMul(Jt),nn=Pt.redSqr().redIAdd(Zt).redISub(Rt).redISub(Rt),Qt=Pt.redMul(Rt.redISub(nn)).redISub(mt.redMul(Zt)),wt=this.z.redMul(b.z).redMul(kt);return this.curve.jpoint(nn,Qt,wt)};JPoint.prototype.mixedAdd=function d(b){if(this.isInfinity())return b.toJ();if(b.isInfinity())return this;var dt=this.z.redSqr(),ct=this.x,lt=b.x.redMul(dt),ht=this.y,mt=b.y.redMul(dt).redMul(this.z),vt=ct.redSub(lt),kt=ht.redSub(mt);if(vt.cmpn(0)===0)return kt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Pt=vt.redSqr(),Jt=Pt.redMul(vt),Zt=ct.redMul(Pt),Rt=kt.redSqr().redIAdd(Jt).redISub(Zt).redISub(Zt),nn=kt.redMul(Zt.redISub(Rt)).redISub(ht.redMul(Jt)),Qt=this.z.redMul(vt);return this.curve.jpoint(Rt,nn,Qt)};JPoint.prototype.dblp=function d(b){if(b===0)return this;if(this.isInfinity())return this;if(!b)return this.dbl();var dt;if(this.curve.zeroA||this.curve.threeA){var ct=this;for(dt=0;dt=0)return!1;if(ct.redIAdd(ht),this.x.cmp(ct)===0)return!0}};JPoint.prototype.inspect=function d(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function d(){return this.z.cmpn(0)===0};var BN$5=bnExports,inherits$3=inherits_browserExports,Base$1=base$1,utils$y=utils$C;function MontCurve(d){Base$1.call(this,"mont",d),this.a=new BN$5(d.a,16).toRed(this.red),this.b=new BN$5(d.b,16).toRed(this.red),this.i4=new BN$5(4).toRed(this.red).redInvm(),this.two=new BN$5(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$3(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function d(b){var dt=b.normalize().x,ct=dt.redSqr(),lt=ct.redMul(dt).redAdd(ct.redMul(this.a)).redAdd(dt),ht=lt.redSqrt();return ht.redSqr().cmp(lt)===0};function Point$1(d,b,dt){Base$1.BasePoint.call(this,d,"projective"),b===null&&dt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$5(b,16),this.z=new BN$5(dt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$3(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function d(b,dt){return this.point(utils$y.toArray(b,dt),1)};MontCurve.prototype.point=function d(b,dt){return new Point$1(this,b,dt)};MontCurve.prototype.pointFromJSON=function d(b){return Point$1.fromJSON(this,b)};Point$1.prototype.precompute=function d(){};Point$1.prototype._encode=function d(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function d(b,dt){return new Point$1(b,dt[0],dt[1]||b.one)};Point$1.prototype.inspect=function d(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function d(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function d(){var b=this.x.redAdd(this.z),dt=b.redSqr(),ct=this.x.redSub(this.z),lt=ct.redSqr(),ht=dt.redSub(lt),mt=dt.redMul(lt),vt=ht.redMul(lt.redAdd(this.curve.a24.redMul(ht)));return this.curve.point(mt,vt)};Point$1.prototype.add=function d(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function d(b,dt){var ct=this.x.redAdd(this.z),lt=this.x.redSub(this.z),ht=b.x.redAdd(b.z),mt=b.x.redSub(b.z),vt=mt.redMul(ct),kt=ht.redMul(lt),Pt=dt.z.redMul(vt.redAdd(kt).redSqr()),Jt=dt.x.redMul(vt.redISub(kt).redSqr());return this.curve.point(Pt,Jt)};Point$1.prototype.mul=function d(b){for(var dt=b.clone(),ct=this,lt=this.curve.point(null,null),ht=this,mt=[];dt.cmpn(0)!==0;dt.iushrn(1))mt.push(dt.andln(1));for(var vt=mt.length-1;vt>=0;vt--)mt[vt]===0?(ct=ct.diffAdd(lt,ht),lt=lt.dbl()):(lt=ct.diffAdd(lt,ht),ct=ct.dbl());return lt};Point$1.prototype.mulAdd=function d(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function d(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function d(b){return this.getX().cmp(b.getX())===0};Point$1.prototype.normalize=function d(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function d(){return this.normalize(),this.x.fromRed()};var utils$x=utils$C,BN$4=bnExports,inherits$2=inherits_browserExports,Base=base$1,assert$d=utils$x.assert;function EdwardsCurve(d){this.twisted=(d.a|0)!==1,this.mOneA=this.twisted&&(d.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",d),this.a=new BN$4(d.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$4(d.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$4(d.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$d(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(d.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function d(b){return this.mOneA?b.redNeg():this.a.redMul(b)};EdwardsCurve.prototype._mulC=function d(b){return this.oneC?b:this.c.redMul(b)};EdwardsCurve.prototype.jpoint=function d(b,dt,ct,lt){return this.point(b,dt,ct,lt)};EdwardsCurve.prototype.pointFromX=function d(b,dt){b=new BN$4(b,16),b.red||(b=b.toRed(this.red));var ct=b.redSqr(),lt=this.c2.redSub(this.a.redMul(ct)),ht=this.one.redSub(this.c2.redMul(this.d).redMul(ct)),mt=lt.redMul(ht.redInvm()),vt=mt.redSqrt();if(vt.redSqr().redSub(mt).cmp(this.zero)!==0)throw new Error("invalid point");var kt=vt.fromRed().isOdd();return(dt&&!kt||!dt&&kt)&&(vt=vt.redNeg()),this.point(b,vt)};EdwardsCurve.prototype.pointFromY=function d(b,dt){b=new BN$4(b,16),b.red||(b=b.toRed(this.red));var ct=b.redSqr(),lt=ct.redSub(this.c2),ht=ct.redMul(this.d).redMul(this.c2).redSub(this.a),mt=lt.redMul(ht.redInvm());if(mt.cmp(this.zero)===0){if(dt)throw new Error("invalid point");return this.point(this.zero,b)}var vt=mt.redSqrt();if(vt.redSqr().redSub(mt).cmp(this.zero)!==0)throw new Error("invalid point");return vt.fromRed().isOdd()!==dt&&(vt=vt.redNeg()),this.point(vt,b)};EdwardsCurve.prototype.validate=function d(b){if(b.isInfinity())return!0;b.normalize();var dt=b.x.redSqr(),ct=b.y.redSqr(),lt=dt.redMul(this.a).redAdd(ct),ht=this.c2.redMul(this.one.redAdd(this.d.redMul(dt).redMul(ct)));return lt.cmp(ht)===0};function Point(d,b,dt,ct,lt){Base.BasePoint.call(this,d,"projective"),b===null&&dt===null&&ct===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$4(b,16),this.y=new BN$4(dt,16),this.z=ct?new BN$4(ct,16):this.curve.one,this.t=lt&&new BN$4(lt,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$2(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function d(b){return Point.fromJSON(this,b)};EdwardsCurve.prototype.point=function d(b,dt,ct,lt){return new Point(this,b,dt,ct,lt)};Point.fromJSON=function d(b,dt){return new Point(b,dt[0],dt[1],dt[2])};Point.prototype.inspect=function d(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function d(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function d(){var b=this.x.redSqr(),dt=this.y.redSqr(),ct=this.z.redSqr();ct=ct.redIAdd(ct);var lt=this.curve._mulA(b),ht=this.x.redAdd(this.y).redSqr().redISub(b).redISub(dt),mt=lt.redAdd(dt),vt=mt.redSub(ct),kt=lt.redSub(dt),Pt=ht.redMul(vt),Jt=mt.redMul(kt),Zt=ht.redMul(kt),Rt=vt.redMul(mt);return this.curve.point(Pt,Jt,Rt,Zt)};Point.prototype._projDbl=function d(){var b=this.x.redAdd(this.y).redSqr(),dt=this.x.redSqr(),ct=this.y.redSqr(),lt,ht,mt,vt,kt,Pt;if(this.curve.twisted){vt=this.curve._mulA(dt);var Jt=vt.redAdd(ct);this.zOne?(lt=b.redSub(dt).redSub(ct).redMul(Jt.redSub(this.curve.two)),ht=Jt.redMul(vt.redSub(ct)),mt=Jt.redSqr().redSub(Jt).redSub(Jt)):(kt=this.z.redSqr(),Pt=Jt.redSub(kt).redISub(kt),lt=b.redSub(dt).redISub(ct).redMul(Pt),ht=Jt.redMul(vt.redSub(ct)),mt=Jt.redMul(Pt))}else vt=dt.redAdd(ct),kt=this.curve._mulC(this.z).redSqr(),Pt=vt.redSub(kt).redSub(kt),lt=this.curve._mulC(b.redISub(vt)).redMul(Pt),ht=this.curve._mulC(vt).redMul(dt.redISub(ct)),mt=vt.redMul(Pt);return this.curve.point(lt,ht,mt)};Point.prototype.dbl=function d(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function d(b){var dt=this.y.redSub(this.x).redMul(b.y.redSub(b.x)),ct=this.y.redAdd(this.x).redMul(b.y.redAdd(b.x)),lt=this.t.redMul(this.curve.dd).redMul(b.t),ht=this.z.redMul(b.z.redAdd(b.z)),mt=ct.redSub(dt),vt=ht.redSub(lt),kt=ht.redAdd(lt),Pt=ct.redAdd(dt),Jt=mt.redMul(vt),Zt=kt.redMul(Pt),Rt=mt.redMul(Pt),nn=vt.redMul(kt);return this.curve.point(Jt,Zt,nn,Rt)};Point.prototype._projAdd=function d(b){var dt=this.z.redMul(b.z),ct=dt.redSqr(),lt=this.x.redMul(b.x),ht=this.y.redMul(b.y),mt=this.curve.d.redMul(lt).redMul(ht),vt=ct.redSub(mt),kt=ct.redAdd(mt),Pt=this.x.redAdd(this.y).redMul(b.x.redAdd(b.y)).redISub(lt).redISub(ht),Jt=dt.redMul(vt).redMul(Pt),Zt,Rt;return this.curve.twisted?(Zt=dt.redMul(kt).redMul(ht.redSub(this.curve._mulA(lt))),Rt=vt.redMul(kt)):(Zt=dt.redMul(kt).redMul(ht.redSub(lt)),Rt=this.curve._mulC(vt).redMul(kt)),this.curve.point(Jt,Zt,Rt)};Point.prototype.add=function d(b){return this.isInfinity()?b:b.isInfinity()?this:this.curve.extended?this._extAdd(b):this._projAdd(b)};Point.prototype.mul=function d(b){return this._hasDoubles(b)?this.curve._fixedNafMul(this,b):this.curve._wnafMul(this,b)};Point.prototype.mulAdd=function d(b,dt,ct){return this.curve._wnafMulAdd(1,[this,dt],[b,ct],2,!1)};Point.prototype.jmulAdd=function d(b,dt,ct){return this.curve._wnafMulAdd(1,[this,dt],[b,ct],2,!0)};Point.prototype.normalize=function d(){if(this.zOne)return this;var b=this.z.redInvm();return this.x=this.x.redMul(b),this.y=this.y.redMul(b),this.t&&(this.t=this.t.redMul(b)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function d(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function d(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function d(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function d(b){return this===b||this.getX().cmp(b.getX())===0&&this.getY().cmp(b.getY())===0};Point.prototype.eqXToP=function d(b){var dt=b.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(dt)===0)return!0;for(var ct=b.clone(),lt=this.curve.redN.redMul(this.z);;){if(ct.iadd(this.curve.n),ct.cmp(this.curve.p)>=0)return!1;if(dt.redIAdd(lt),this.x.cmp(dt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(d){var b=d;b.base=base$1,b.short=short,b.mont=mont,b.edwards=edwards})(curve);var curves$2={},hash$4={},utils$w={},assert$c=minimalisticAssert,inherits$1=inherits_browserExports;utils$w.inherits=inherits$1;function isSurrogatePair(d,b){return(d.charCodeAt(b)&64512)!==55296||b<0||b+1>=d.length?!1:(d.charCodeAt(b+1)&64512)===56320}function toArray$1(d,b){if(Array.isArray(d))return d.slice();if(!d)return[];var dt=[];if(typeof d=="string")if(b){if(b==="hex")for(d=d.replace(/[^a-z0-9]+/ig,""),d.length%2!==0&&(d="0"+d),lt=0;lt>6|192,dt[ct++]=ht&63|128):isSurrogatePair(d,lt)?(ht=65536+((ht&1023)<<10)+(d.charCodeAt(++lt)&1023),dt[ct++]=ht>>18|240,dt[ct++]=ht>>12&63|128,dt[ct++]=ht>>6&63|128,dt[ct++]=ht&63|128):(dt[ct++]=ht>>12|224,dt[ct++]=ht>>6&63|128,dt[ct++]=ht&63|128)}else for(lt=0;lt>>24|d>>>8&65280|d<<8&16711680|(d&255)<<24;return b>>>0}utils$w.htonl=htonl;function toHex32(d,b){for(var dt="",ct=0;ct>>0}return ht}utils$w.join32=join32;function split32(d,b){for(var dt=new Array(d.length*4),ct=0,lt=0;ct>>24,dt[lt+1]=ht>>>16&255,dt[lt+2]=ht>>>8&255,dt[lt+3]=ht&255):(dt[lt+3]=ht>>>24,dt[lt+2]=ht>>>16&255,dt[lt+1]=ht>>>8&255,dt[lt]=ht&255)}return dt}utils$w.split32=split32;function rotr32$1(d,b){return d>>>b|d<<32-b}utils$w.rotr32=rotr32$1;function rotl32$2(d,b){return d<>>32-b}utils$w.rotl32=rotl32$2;function sum32$3(d,b){return d+b>>>0}utils$w.sum32=sum32$3;function sum32_3$1(d,b,dt){return d+b+dt>>>0}utils$w.sum32_3=sum32_3$1;function sum32_4$2(d,b,dt,ct){return d+b+dt+ct>>>0}utils$w.sum32_4=sum32_4$2;function sum32_5$2(d,b,dt,ct,lt){return d+b+dt+ct+lt>>>0}utils$w.sum32_5=sum32_5$2;function sum64$1(d,b,dt,ct){var lt=d[b],ht=d[b+1],mt=ct+ht>>>0,vt=(mt>>0,d[b+1]=mt}utils$w.sum64=sum64$1;function sum64_hi$1(d,b,dt,ct){var lt=b+ct>>>0,ht=(lt>>0}utils$w.sum64_hi=sum64_hi$1;function sum64_lo$1(d,b,dt,ct){var lt=b+ct;return lt>>>0}utils$w.sum64_lo=sum64_lo$1;function sum64_4_hi$1(d,b,dt,ct,lt,ht,mt,vt){var kt=0,Pt=b;Pt=Pt+ct>>>0,kt+=Pt>>0,kt+=Pt>>0,kt+=Pt>>0}utils$w.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(d,b,dt,ct,lt,ht,mt,vt){var kt=b+ct+ht+vt;return kt>>>0}utils$w.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(d,b,dt,ct,lt,ht,mt,vt,kt,Pt){var Jt=0,Zt=b;Zt=Zt+ct>>>0,Jt+=Zt>>0,Jt+=Zt>>0,Jt+=Zt>>0,Jt+=Zt>>0}utils$w.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(d,b,dt,ct,lt,ht,mt,vt,kt,Pt){var Jt=b+ct+ht+vt+Pt;return Jt>>>0}utils$w.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(d,b,dt){var ct=b<<32-dt|d>>>dt;return ct>>>0}utils$w.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(d,b,dt){var ct=d<<32-dt|b>>>dt;return ct>>>0}utils$w.rotr64_lo=rotr64_lo$1;function shr64_hi$1(d,b,dt){return d>>>dt}utils$w.shr64_hi=shr64_hi$1;function shr64_lo$1(d,b,dt){var ct=d<<32-dt|b>>>dt;return ct>>>0}utils$w.shr64_lo=shr64_lo$1;var common$6={},utils$v=utils$w,assert$b=minimalisticAssert;function BlockHash$4(){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}common$6.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function d(b,dt){if(b=utils$v.toArray(b,dt),this.pending?this.pending=this.pending.concat(b):this.pending=b,this.pendingTotal+=b.length,this.pending.length>=this._delta8){b=this.pending;var ct=b.length%this._delta8;this.pending=b.slice(b.length-ct,b.length),this.pending.length===0&&(this.pending=null),b=utils$v.join32(b,0,b.length-ct,this.endian);for(var lt=0;lt>>24&255,lt[ht++]=b>>>16&255,lt[ht++]=b>>>8&255,lt[ht++]=b&255}else for(lt[ht++]=b&255,lt[ht++]=b>>>8&255,lt[ht++]=b>>>16&255,lt[ht++]=b>>>24&255,lt[ht++]=0,lt[ht++]=0,lt[ht++]=0,lt[ht++]=0,mt=8;mt>>3}common$5.g0_256=g0_256$1;function g1_256$1(d){return rotr32(d,17)^rotr32(d,19)^d>>>10}common$5.g1_256=g1_256$1;var utils$t=utils$w,common$4=common$6,shaCommon$1=common$5,rotl32$1=utils$t.rotl32,sum32$2=utils$t.sum32,sum32_5$1=utils$t.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$4.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$t.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function d(b,dt){for(var ct=this.W,lt=0;lt<16;lt++)ct[lt]=b[dt+lt];for(;ltthis.blockSize&&(b=new this.Hash().update(b).digest()),assert$8(b.length<=this.blockSize);for(var dt=b.length;dt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(b,dt,ct)}var hmacDrbg=HmacDRBG$1;HmacDRBG$1.prototype._init=function d(b,dt,ct){var lt=b.concat(dt).concat(ct);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var ht=0;ht=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(b.concat(ct||[])),this._reseed=1};HmacDRBG$1.prototype.generate=function d(b,dt,ct,lt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof dt!="string"&&(lt=ct,ct=dt,dt=null),ct&&(ct=utils$m.toArray(ct,lt||"hex"),this._update(ct));for(var ht=[];ht.length"};var BN$2=bnExports,utils$k=utils$C,assert$5=utils$k.assert;function Signature$3(d,b){if(d instanceof Signature$3)return d;this._importDER(d,b)||(assert$5(d.r&&d.s,"Signature without r or s"),this.r=new BN$2(d.r,16),this.s=new BN$2(d.s,16),d.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=d.recoveryParam)}var signature$2=Signature$3;function Position(){this.place=0}function getLength(d,b){var dt=d[b.place++];if(!(dt&128))return dt;var ct=dt&15;if(ct===0||ct>4)return!1;for(var lt=0,ht=0,mt=b.place;ht>>=0;return lt<=127?!1:(b.place=mt,lt)}function rmPadding(d){for(var b=0,dt=d.length-1;!d[b]&&!(d[b+1]&128)&&b>>3);for(d.push(dt|128);--dt;)d.push(b>>>(dt<<3)&255);d.push(b)}Signature$3.prototype.toDER=function d(b){var dt=this.r.toArray(),ct=this.s.toArray();for(dt[0]&128&&(dt=[0].concat(dt)),ct[0]&128&&(ct=[0].concat(ct)),dt=rmPadding(dt),ct=rmPadding(ct);!ct[0]&&!(ct[1]&128);)ct=ct.slice(1);var lt=[2];constructLength(lt,dt.length),lt=lt.concat(dt),lt.push(2),constructLength(lt,ct.length);var ht=lt.concat(ct),mt=[48];return constructLength(mt,ht.length),mt=mt.concat(ht),utils$k.encode(mt,b)};var BN$1=bnExports,HmacDRBG=hmacDrbg,utils$j=utils$C,curves$1=curves$2,rand=brorandExports,assert$4=utils$j.assert,KeyPair$2=key$1,Signature$2=signature$2;function EC(d){if(!(this instanceof EC))return new EC(d);typeof d=="string"&&(assert$4(Object.prototype.hasOwnProperty.call(curves$1,d),"Unknown curve "+d),d=curves$1[d]),d instanceof curves$1.PresetCurve&&(d={curve:d}),this.curve=d.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=d.curve.g,this.g.precompute(d.curve.n.bitLength()+1),this.hash=d.hash||d.curve.hash}var ec=EC;EC.prototype.keyPair=function d(b){return new KeyPair$2(this,b)};EC.prototype.keyFromPrivate=function d(b,dt){return KeyPair$2.fromPrivate(this,b,dt)};EC.prototype.keyFromPublic=function d(b,dt){return KeyPair$2.fromPublic(this,b,dt)};EC.prototype.genKeyPair=function d(b){b||(b={});for(var dt=new HmacDRBG({hash:this.hash,pers:b.pers,persEnc:b.persEnc||"utf8",entropy:b.entropy||rand(this.hash.hmacStrength),entropyEnc:b.entropy&&b.entropyEnc||"utf8",nonce:this.n.toArray()}),ct=this.n.byteLength(),lt=this.n.sub(new BN$1(2));;){var ht=new BN$1(dt.generate(ct));if(!(ht.cmp(lt)>0))return ht.iaddn(1),this.keyFromPrivate(ht)}};EC.prototype._truncateToN=function d(b,dt){var ct=b.byteLength()*8-this.n.bitLength();return ct>0&&(b=b.ushrn(ct)),!dt&&b.cmp(this.n)>=0?b.sub(this.n):b};EC.prototype.sign=function d(b,dt,ct,lt){typeof ct=="object"&&(lt=ct,ct=null),lt||(lt={}),dt=this.keyFromPrivate(dt,ct),b=this._truncateToN(new BN$1(b,16));for(var ht=this.n.byteLength(),mt=dt.getPrivate().toArray("be",ht),vt=b.toArray("be",ht),kt=new HmacDRBG({hash:this.hash,entropy:mt,nonce:vt,pers:lt.pers,persEnc:lt.persEnc||"utf8"}),Pt=this.n.sub(new BN$1(1)),Jt=0;;Jt++){var Zt=lt.k?lt.k(Jt):new BN$1(kt.generate(this.n.byteLength()));if(Zt=this._truncateToN(Zt,!0),!(Zt.cmpn(1)<=0||Zt.cmp(Pt)>=0)){var Rt=this.g.mul(Zt);if(!Rt.isInfinity()){var nn=Rt.getX(),Qt=nn.umod(this.n);if(Qt.cmpn(0)!==0){var wt=Zt.invm(this.n).mul(Qt.mul(dt.getPrivate()).iadd(b));if(wt=wt.umod(this.n),wt.cmpn(0)!==0){var Nt=(Rt.getY().isOdd()?1:0)|(nn.cmp(Qt)!==0?2:0);return lt.canonical&&wt.cmp(this.nh)>0&&(wt=this.n.sub(wt),Nt^=1),new Signature$2({r:Qt,s:wt,recoveryParam:Nt})}}}}}};EC.prototype.verify=function d(b,dt,ct,lt){b=this._truncateToN(new BN$1(b,16)),ct=this.keyFromPublic(ct,lt),dt=new Signature$2(dt,"hex");var ht=dt.r,mt=dt.s;if(ht.cmpn(1)<0||ht.cmp(this.n)>=0||mt.cmpn(1)<0||mt.cmp(this.n)>=0)return!1;var vt=mt.invm(this.n),kt=vt.mul(b).umod(this.n),Pt=vt.mul(ht).umod(this.n),Jt;return this.curve._maxwellTrick?(Jt=this.g.jmulAdd(kt,ct.getPublic(),Pt),Jt.isInfinity()?!1:Jt.eqXToP(ht)):(Jt=this.g.mulAdd(kt,ct.getPublic(),Pt),Jt.isInfinity()?!1:Jt.getX().umod(this.n).cmp(ht)===0)};EC.prototype.recoverPubKey=function(d,b,dt,ct){assert$4((3&dt)===dt,"The recovery param is more than two bits"),b=new Signature$2(b,ct);var lt=this.n,ht=new BN$1(d),mt=b.r,vt=b.s,kt=dt&1,Pt=dt>>1;if(mt.cmp(this.curve.p.umod(this.curve.n))>=0&&Pt)throw new Error("Unable to find sencond key candinate");Pt?mt=this.curve.pointFromX(mt.add(this.curve.n),kt):mt=this.curve.pointFromX(mt,kt);var Jt=b.r.invm(lt),Zt=lt.sub(ht).mul(Jt).umod(lt),Rt=vt.mul(Jt).umod(lt);return this.g.mulAdd(Zt,mt,Rt)};EC.prototype.getKeyRecoveryParam=function(d,b,dt,ct){if(b=new Signature$2(b,ct),b.recoveryParam!==null)return b.recoveryParam;for(var lt=0;lt<4;lt++){var ht;try{ht=this.recoverPubKey(d,b,lt)}catch{continue}if(ht.eq(dt))return lt}throw new Error("Unable to find valid recovery factor")};var utils$i=utils$C,assert$3=utils$i.assert,parseBytes$2=utils$i.parseBytes,cachedProperty$1=utils$i.cachedProperty;function KeyPair$1(d,b){this.eddsa=d,this._secret=parseBytes$2(b.secret),d.isPoint(b.pub)?this._pub=b.pub:this._pubBytes=parseBytes$2(b.pub)}KeyPair$1.fromPublic=function d(b,dt){return dt instanceof KeyPair$1?dt:new KeyPair$1(b,{pub:dt})};KeyPair$1.fromSecret=function d(b,dt){return dt instanceof KeyPair$1?dt:new KeyPair$1(b,{secret:dt})};KeyPair$1.prototype.secret=function d(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function d(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function d(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function d(){var b=this.eddsa,dt=this.hash(),ct=b.encodingLength-1,lt=dt.slice(0,b.encodingLength);return lt[0]&=248,lt[ct]&=127,lt[ct]|=64,lt});cachedProperty$1(KeyPair$1,"priv",function d(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function d(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function d(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function d(b){return assert$3(this._secret,"KeyPair can only verify"),this.eddsa.sign(b,this)};KeyPair$1.prototype.verify=function d(b,dt){return this.eddsa.verify(b,dt,this)};KeyPair$1.prototype.getSecret=function d(b){return assert$3(this._secret,"KeyPair is public only"),utils$i.encode(this.secret(),b)};KeyPair$1.prototype.getPublic=function d(b){return utils$i.encode(this.pubBytes(),b)};var key=KeyPair$1,BN=bnExports,utils$h=utils$C,assert$2=utils$h.assert,cachedProperty=utils$h.cachedProperty,parseBytes$1=utils$h.parseBytes;function Signature$1(d,b){this.eddsa=d,typeof b!="object"&&(b=parseBytes$1(b)),Array.isArray(b)&&(b={R:b.slice(0,d.encodingLength),S:b.slice(d.encodingLength)}),assert$2(b.R&&b.S,"Signature without R or S"),d.isPoint(b.R)&&(this._R=b.R),b.S instanceof BN&&(this._S=b.S),this._Rencoded=Array.isArray(b.R)?b.R:b.Rencoded,this._Sencoded=Array.isArray(b.S)?b.S:b.Sencoded}cachedProperty(Signature$1,"S",function d(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function d(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function d(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function d(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function d(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function d(){return utils$h.encode(this.toBytes(),"hex").toUpperCase()};var signature$1=Signature$1,hash$2=hash$4,curves=curves$2,utils$g=utils$C,assert$1=utils$g.assert,parseBytes=utils$g.parseBytes,KeyPair=key,Signature=signature$1;function EDDSA(d){if(assert$1(d==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(d);d=curves[d].curve,this.curve=d,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function d(b,dt){b=parseBytes(b);var ct=this.keyFromSecret(dt),lt=this.hashInt(ct.messagePrefix(),b),ht=this.g.mul(lt),mt=this.encodePoint(ht),vt=this.hashInt(mt,ct.pubBytes(),b).mul(ct.priv()),kt=lt.add(vt).umod(this.curve.n);return this.makeSignature({R:ht,S:kt,Rencoded:mt})};EDDSA.prototype.verify=function d(b,dt,ct){b=parseBytes(b),dt=this.makeSignature(dt);var lt=this.keyFromPublic(ct),ht=this.hashInt(dt.Rencoded(),lt.pubBytes(),b),mt=this.g.mul(dt.S()),vt=dt.R().add(lt.pub().mul(ht));return vt.eq(mt)};EDDSA.prototype.hashInt=function d(){for(var b=this.hash(),dt=0;dt=128)throw new Error("Decoding length values above 127 not supported");const mt=b.slice(dt,dt+ht);if(dt+=ht,b[dt++]!==derTagInteger)throw new Error("INTEGER tag expected");const kt=b[dt++];if(kt>=128)throw new Error("Decoding length values above 127 not supported");const Pt=b.slice(dt,dt+kt);return dt+=kt,new Secp256k1Signature(trimLeadingNullBytes(mt),trimLeadingNullBytes(Pt))}constructor(b,dt){if(b.length>32||b.length===0||b[0]===0)throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(dt.length>32||dt.length===0||dt[0]===0)throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:b,s:dt}}r(b){if(b===void 0)return this.data.r;{const dt=b-this.data.r.length;if(dt<0)throw new Error("Length too small to hold parameter r");const ct=new Uint8Array(dt);return new Uint8Array([...ct,...this.data.r])}}s(b){if(b===void 0)return this.data.s;{const dt=b-this.data.s.length;if(dt<0)throw new Error("Length too small to hold parameter s");const ct=new Uint8Array(dt);return new Uint8Array([...ct,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){const b=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,dt=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,ct=b.length,lt=dt.length,ht=new Uint8Array([derTagInteger,ct,...b,derTagInteger,lt,...dt]);return new Uint8Array([48,ht.length,...ht])}}secp256k1signature.Secp256k1Signature=Secp256k1Signature;class ExtendedSecp256k1Signature extends Secp256k1Signature{static fromFixedLength(b){if(b.length!==65)throw new Error(`Got invalid data length ${b.length}. Expected 32 + 32 + 1`);return new ExtendedSecp256k1Signature(trimLeadingNullBytes(b.slice(0,32)),trimLeadingNullBytes(b.slice(32,64)),b[64])}constructor(b,dt,ct){if(super(b,dt),!Number.isInteger(ct))throw new Error("The recovery parameter must be an integer.");if(ct<0||ct>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=ct}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}secp256k1signature.ExtendedSecp256k1Signature=ExtendedSecp256k1Signature;var __importDefault$z=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(secp256k1$2,"__esModule",{value:!0});secp256k1$2.Secp256k1=void 0;const encoding_1$w=build$a,bn_js_1=__importDefault$z(bnExports$1),elliptic_1=__importDefault$z(elliptic),secp256k1signature_1=secp256k1signature,secp256k1=new elliptic_1.default.ec("secp256k1"),secp256k1N=new bn_js_1.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");class Secp256k1{static async makeKeypair(b){if(b.length!==32)throw new Error("input data is not a valid secp256k1 private key");const dt=secp256k1.keyFromPrivate(b);if(dt.validate().result!==!0)throw new Error("input data is not a valid secp256k1 private key");if(new bn_js_1.default(b).gte(secp256k1N))throw new Error("input data is not a valid secp256k1 private key");return{privkey:(0,encoding_1$w.fromHex)(dt.getPrivate("hex")),pubkey:Uint8Array.from(dt.getPublic("array"))}}static async createSignature(b,dt){if(b.length===0)throw new Error("Message hash must not be empty");if(b.length>32)throw new Error("Message hash length must not exceed 32 bytes");const ct=secp256k1.keyFromPrivate(dt),{r:lt,s:ht,recoveryParam:mt}=ct.sign(b,{canonical:!0});if(typeof mt!="number")throw new Error("Recovery param missing");return new secp256k1signature_1.ExtendedSecp256k1Signature(Uint8Array.from(lt.toArray()),Uint8Array.from(ht.toArray()),mt)}static async verifySignature(b,dt,ct){if(dt.length===0)throw new Error("Message hash must not be empty");if(dt.length>32)throw new Error("Message hash length must not exceed 32 bytes");const lt=secp256k1.keyFromPublic(ct);try{return lt.verify(dt,b.toDer())}catch{return!1}}static recoverPubkey(b,dt){const ct={r:(0,encoding_1$w.toHex)(b.r()),s:(0,encoding_1$w.toHex)(b.s())},lt=secp256k1.recoverPubKey(dt,ct,b.recovery),ht=secp256k1.keyFromPublic(lt);return(0,encoding_1$w.fromHex)(ht.getPublic(!1,"hex"))}static compressPubkey(b){switch(b.length){case 33:return b;case 65:return Uint8Array.from(secp256k1.keyFromPublic(b).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}static uncompressPubkey(b){switch(b.length){case 33:return Uint8Array.from(secp256k1.keyFromPublic(b).getPublic(!1,"array"));case 65:return b;default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(b){switch(b.length){case 64:return b;case 65:return b.slice(0,64);default:throw new Error("Invalid signature length")}}}secp256k1$2.Secp256k1=Secp256k1;var slip10={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(wt){return wt&&wt.__esModule?wt:{default:wt}};Object.defineProperty(d,"__esModule",{value:!0}),d.stringToPath=d.pathToString=d.Slip10=d.Slip10RawIndex=d.slip10CurveFromString=d.Slip10Curve=void 0;const dt=build$a,ct=build$f,lt=b(bnExports$1),ht=b(elliptic),mt=hmac$1,vt=sha$2;var kt;(function(wt){wt.Secp256k1="Bitcoin seed",wt.Ed25519="ed25519 seed"})(kt=d.Slip10Curve||(d.Slip10Curve={}));function Pt(wt){switch(wt){case kt.Ed25519:return kt.Ed25519;case kt.Secp256k1:return kt.Secp256k1;default:throw new Error(`Unknown curve string: '${wt}'`)}}d.slip10CurveFromString=Pt;class Jt extends ct.Uint32{static hardened(Nt){return new Jt(Nt+2**31)}static normal(Nt){return new Jt(Nt)}isHardened(){return this.data>=2**31}}d.Slip10RawIndex=Jt;const Zt=new ht.default.ec("secp256k1");class Rt{static derivePath(Nt,xt,Et){let Bt=this.master(Nt,xt);for(const Tt of Et)Bt=this.child(Nt,Bt.privkey,Bt.chainCode,Tt);return Bt}static master(Nt,xt){const Et=new mt.Hmac(vt.Sha512,(0,dt.toAscii)(Nt)).update(xt).digest(),Bt=Et.slice(0,32),Tt=Et.slice(32,64);return Nt!==kt.Ed25519&&(this.isZero(Bt)||this.isGteN(Nt,Bt))?this.master(Nt,Et):{chainCode:Tt,privkey:Bt}}static child(Nt,xt,Et,Bt){let Tt;if(Bt.isHardened()){const Mt=new Uint8Array([0,...xt,...Bt.toBytesBigEndian()]);Tt=new mt.Hmac(vt.Sha512,Et).update(Mt).digest()}else{if(Nt===kt.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const Mt=new Uint8Array([...Rt.serializedPoint(Nt,new lt.default(xt)),...Bt.toBytesBigEndian()]);Tt=new mt.Hmac(vt.Sha512,Et).update(Mt).digest()}}return this.childImpl(Nt,xt,Et,Bt,Tt)}static serializedPoint(Nt,xt){switch(Nt){case kt.Secp256k1:return(0,dt.fromHex)(Zt.g.mul(xt).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(Nt,xt,Et,Bt,Tt){const Mt=Tt.slice(0,32),jt=Tt.slice(32,64),Ht=jt;if(Nt===kt.Ed25519)return{chainCode:Ht,privkey:Mt};const an=this.n(Nt),yt=new lt.default(Mt).add(new lt.default(xt)).mod(an),$t=Uint8Array.from(yt.toArray("be",32));if(this.isGteN(Nt,Mt)||this.isZero($t)){const Yt=new mt.Hmac(vt.Sha512,Et).update(new Uint8Array([1,...jt,...Bt.toBytesBigEndian()])).digest();return this.childImpl(Nt,xt,Et,Bt,Yt)}return{chainCode:Ht,privkey:$t}}static isZero(Nt){return Nt.every(xt=>xt===0)}static isGteN(Nt,xt){return new lt.default(xt).gte(this.n(Nt))}static n(Nt){switch(Nt){case kt.Secp256k1:return new lt.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}d.Slip10=Rt;function nn(wt){return wt.reduce((Nt,xt)=>{const Et=xt.isHardened()?`${xt.toNumber()-2147483648}'`:xt.toString();return Nt+"/"+Et},"m")}d.pathToString=nn;function Qt(wt){if(!wt.startsWith("m"))throw new Error("Path string must start with 'm'");let Nt=wt.slice(1);const xt=new Array;for(;Nt;){const Et=Nt.match(/^\/([0-9]+)('?)/);if(!Et)throw new Error("Syntax error while reading path component");const[Bt,Tt,Mt]=Et,jt=ct.Uint53.fromString(Tt).toNumber();if(jt>=2**31)throw new Error("Component value too high. Must not exceed 2**31-1.");Mt?xt.push(Jt.hardened(jt)):xt.push(Jt.normal(jt)),Nt=Nt.slice(Bt.length)}return xt}d.stringToPath=Qt})(slip10);(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.stringToPath=d.Slip10RawIndex=d.slip10CurveFromString=d.Slip10Curve=d.Slip10=d.pathToString=d.sha512=d.Sha512=d.sha256=d.Sha256=d.Secp256k1Signature=d.ExtendedSecp256k1Signature=d.Secp256k1=d.ripemd160=d.Ripemd160=d.Random=d.Xchacha20poly1305Ietf=d.xchacha20NonceLength=d.isArgon2idOptions=d.Ed25519Keypair=d.Ed25519=d.Argon2id=d.keccak256=d.Keccak256=d.Hmac=d.EnglishMnemonic=d.Bip39=void 0;var b=bip39;Object.defineProperty(d,"Bip39",{enumerable:!0,get:function(){return b.Bip39}}),Object.defineProperty(d,"EnglishMnemonic",{enumerable:!0,get:function(){return b.EnglishMnemonic}});var dt=hmac$1;Object.defineProperty(d,"Hmac",{enumerable:!0,get:function(){return dt.Hmac}});var ct=keccak;Object.defineProperty(d,"Keccak256",{enumerable:!0,get:function(){return ct.Keccak256}}),Object.defineProperty(d,"keccak256",{enumerable:!0,get:function(){return ct.keccak256}});var lt=libsodium;Object.defineProperty(d,"Argon2id",{enumerable:!0,get:function(){return lt.Argon2id}}),Object.defineProperty(d,"Ed25519",{enumerable:!0,get:function(){return lt.Ed25519}}),Object.defineProperty(d,"Ed25519Keypair",{enumerable:!0,get:function(){return lt.Ed25519Keypair}}),Object.defineProperty(d,"isArgon2idOptions",{enumerable:!0,get:function(){return lt.isArgon2idOptions}}),Object.defineProperty(d,"xchacha20NonceLength",{enumerable:!0,get:function(){return lt.xchacha20NonceLength}}),Object.defineProperty(d,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return lt.Xchacha20poly1305Ietf}});var ht=random;Object.defineProperty(d,"Random",{enumerable:!0,get:function(){return ht.Random}});var mt=ripemd$1;Object.defineProperty(d,"Ripemd160",{enumerable:!0,get:function(){return mt.Ripemd160}}),Object.defineProperty(d,"ripemd160",{enumerable:!0,get:function(){return mt.ripemd160}});var vt=secp256k1$2;Object.defineProperty(d,"Secp256k1",{enumerable:!0,get:function(){return vt.Secp256k1}});var kt=secp256k1signature;Object.defineProperty(d,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return kt.ExtendedSecp256k1Signature}}),Object.defineProperty(d,"Secp256k1Signature",{enumerable:!0,get:function(){return kt.Secp256k1Signature}});var Pt=sha$2;Object.defineProperty(d,"Sha256",{enumerable:!0,get:function(){return Pt.Sha256}}),Object.defineProperty(d,"sha256",{enumerable:!0,get:function(){return Pt.sha256}}),Object.defineProperty(d,"Sha512",{enumerable:!0,get:function(){return Pt.Sha512}}),Object.defineProperty(d,"sha512",{enumerable:!0,get:function(){return Pt.sha512}});var Jt=slip10;Object.defineProperty(d,"pathToString",{enumerable:!0,get:function(){return Jt.pathToString}}),Object.defineProperty(d,"Slip10",{enumerable:!0,get:function(){return Jt.Slip10}}),Object.defineProperty(d,"Slip10Curve",{enumerable:!0,get:function(){return Jt.Slip10Curve}}),Object.defineProperty(d,"slip10CurveFromString",{enumerable:!0,get:function(){return Jt.slip10CurveFromString}}),Object.defineProperty(d,"Slip10RawIndex",{enumerable:!0,get:function(){return Jt.Slip10RawIndex}}),Object.defineProperty(d,"stringToPath",{enumerable:!0,get:function(){return Jt.stringToPath}})})(build$b);var build$8={},ascii$3={};Object.defineProperty(ascii$3,"__esModule",{value:!0});ascii$3.fromAscii=ascii$3.toAscii=void 0;function toAscii$3(d){const b=dt=>dt.split("").map(ct=>{const lt=ct.charCodeAt(0);if(lt<32||lt>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+lt);return lt});return Uint8Array.from(b(d))}ascii$3.toAscii=toAscii$3;function fromAscii$3(d){return(dt=>dt.map(ct=>{if(ct<32||ct>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+ct);return String.fromCharCode(ct)}))(Array.from(d)).join("")}ascii$3.fromAscii=fromAscii$3;var base64$5={},__createBinding$z=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$z=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$z=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$z(b,d,dt);return __setModuleDefault$z(b,d),b};Object.defineProperty(base64$5,"__esModule",{value:!0});base64$5.fromBase64=base64$5.toBase64=void 0;const base64js$3=__importStar$z(base64Js);function toBase64$3(d){return base64js$3.fromByteArray(d)}base64$5.toBase64=toBase64$3;function fromBase64$3(d){if(!d.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return base64js$3.toByteArray(d)}base64$5.fromBase64=fromBase64$3;var bech32$7={},__createBinding$y=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$y=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$y=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$y(b,d,dt);return __setModuleDefault$y(b,d),b};Object.defineProperty(bech32$7,"__esModule",{value:!0});bech32$7.normalizeBech32=bech32$7.fromBech32=bech32$7.toBech32=void 0;const bech32$6=__importStar$y(bech32$d);function toBech32$3(d,b,dt){return bech32$6.encode(d,bech32$6.toWords(b),dt)}bech32$7.toBech32=toBech32$3;function fromBech32$3(d,b=1/0){const dt=bech32$6.decode(d,b);return{prefix:dt.prefix,data:new Uint8Array(bech32$6.fromWords(dt.words))}}bech32$7.fromBech32=fromBech32$3;function normalizeBech32$3(d){const{prefix:b,data:dt}=fromBech32$3(d);return toBech32$3(b,dt)}bech32$7.normalizeBech32=normalizeBech32$3;var hex$3={};Object.defineProperty(hex$3,"__esModule",{value:!0});hex$3.fromHex=hex$3.toHex=void 0;function toHex$3(d){let b="";for(const dt of d)b+=("0"+dt.toString(16)).slice(-2);return b}hex$3.toHex=toHex$3;function fromHex$3(d){if(d.length%2!==0)throw new Error("hex string length must be a multiple of 2");const b=new Uint8Array(d.length/2);for(let dt=0;dt127)throw new Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[d[0],1]}function decodeMultisigPubkey(d){const b=Array.from(d),dt=b.splice(0,pubkeyAminoPrefixMultisigThreshold.length);if(!(0,utils_1$i.arrayContentStartsWith)(dt,pubkeyAminoPrefixMultisigThreshold))throw new Error("Invalid multisig prefix.");if(b.shift()!=8)throw new Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");const[ct,lt]=decodeUvarint(b);b.splice(0,lt);const ht=[];for(;b.length>0;){if(b.shift()!=18)throw new Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");const[mt,vt]=decodeUvarint(b);if(b.splice(0,vt),b.length127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[b]}function encodeAminoPubkey(d){if((0,pubkeys_1$2.isMultisigThresholdPubkey)(d)){const b=Array.from(pubkeyAminoPrefixMultisigThreshold);b.push(8),b.push(...encodeUvarint$2(d.value.threshold));for(const dt of d.value.pubkeys.map(ct=>encodeAminoPubkey(ct)))b.push(18),b.push(...encodeUvarint$2(dt.length)),b.push(...dt);return new Uint8Array(b)}else{if((0,pubkeys_1$2.isEd25519Pubkey)(d))return new Uint8Array([...pubkeyAminoPrefixEd25519,...(0,encoding_1$v.fromBase64)(d.value)]);if((0,pubkeys_1$2.isSecp256k1Pubkey)(d))return new Uint8Array([...pubkeyAminoPrefixSecp256k1,...(0,encoding_1$v.fromBase64)(d.value)]);throw new Error("Unsupported pubkey type")}}encoding$1.encodeAminoPubkey=encodeAminoPubkey;function encodeBech32Pubkey(d,b){return(0,encoding_1$v.toBech32)(b,encodeAminoPubkey(d))}encoding$1.encodeBech32Pubkey=encodeBech32Pubkey;Object.defineProperty(addresses$1,"__esModule",{value:!0});addresses$1.pubkeyToAddress=addresses$1.pubkeyToRawAddress=addresses$1.rawSecp256k1PubkeyToRawAddress=addresses$1.rawEd25519PubkeyToRawAddress=void 0;const crypto_1$g=build$b,encoding_1$u=build$8,encoding_2$1=encoding$1,pubkeys_1$1=pubkeys;function rawEd25519PubkeyToRawAddress$1(d){if(d.length!==32)throw new Error(`Invalid Ed25519 pubkey length: ${d.length}`);return(0,crypto_1$g.sha256)(d).slice(0,20)}addresses$1.rawEd25519PubkeyToRawAddress=rawEd25519PubkeyToRawAddress$1;function rawSecp256k1PubkeyToRawAddress$1(d){if(d.length!==33)throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${d.length}`);return(0,crypto_1$g.ripemd160)((0,crypto_1$g.sha256)(d))}addresses$1.rawSecp256k1PubkeyToRawAddress=rawSecp256k1PubkeyToRawAddress$1;function pubkeyToRawAddress$1(d){if((0,pubkeys_1$1.isSecp256k1Pubkey)(d)){const b=(0,encoding_1$u.fromBase64)(d.value);return rawSecp256k1PubkeyToRawAddress$1(b)}else if((0,pubkeys_1$1.isEd25519Pubkey)(d)){const b=(0,encoding_1$u.fromBase64)(d.value);return rawEd25519PubkeyToRawAddress$1(b)}else if((0,pubkeys_1$1.isMultisigThresholdPubkey)(d)){const b=(0,encoding_2$1.encodeAminoPubkey)(d);return(0,crypto_1$g.sha256)(b).slice(0,20)}else throw new Error("Unsupported public key type")}addresses$1.pubkeyToRawAddress=pubkeyToRawAddress$1;function pubkeyToAddress$1(d,b){return(0,encoding_1$u.toBech32)(b,pubkeyToRawAddress$1(d))}addresses$1.pubkeyToAddress=pubkeyToAddress$1;var coins$1={};Object.defineProperty(coins$1,"__esModule",{value:!0});coins$1.addCoins=coins$1.parseCoins=coins$1.coins=coins$1.coin=void 0;const math_1$h=build$f;function coin$2(d,b){let dt;if(typeof d=="number")try{dt=new math_1$h.Uint53(d).toString()}catch{throw new Error("Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.")}else{if(!d.match(/^[0-9]+$/))throw new Error("Invalid unsigned integer string format");dt=d.replace(/^0*/,"")||"0"}return{amount:dt,denom:b}}coins$1.coin=coin$2;function coins(d,b){return[coin$2(d,b)]}coins$1.coins=coins;function parseCoins(d){return d.replace(/\s/g,"").split(",").filter(Boolean).map(b=>{const dt=b.match(/^([0-9]+)([a-zA-Z]+)/);if(!dt)throw new Error("Got an invalid coin string");return{amount:dt[1].replace(/^0+/,"")||"0",denom:dt[2]}})}coins$1.parseCoins=parseCoins;function addCoins(d,b){if(d.denom!==b.denom)throw new Error("Trying to add two coins with different denoms");return{amount:math_1$h.Decimal.fromAtomics(d.amount,0).plus(math_1$h.Decimal.fromAtomics(b.amount,0)).atomics,denom:d.denom}}coins$1.addCoins=addCoins;var multisig$1={};Object.defineProperty(multisig$1,"__esModule",{value:!0});multisig$1.createMultisigThresholdPubkey=multisig$1.compareArrays=void 0;const encoding_1$t=build$8,math_1$g=build$f,addresses_1$2=addresses$1;function compareArrays(d,b){const dt=(0,encoding_1$t.toHex)(d),ct=(0,encoding_1$t.toHex)(b);return dt===ct?0:dtd.length)throw new Error(`Threshold k = ${ct.toNumber()} exceeds number of keys n = ${d.length}`);const lt=dt?d:Array.from(d).sort((ht,mt)=>{const vt=(0,addresses_1$2.pubkeyToRawAddress)(ht),kt=(0,addresses_1$2.pubkeyToRawAddress)(mt);return compareArrays(vt,kt)});return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:ct.toString(),pubkeys:lt}}}multisig$1.createMultisigThresholdPubkey=createMultisigThresholdPubkey;var paths$1={};Object.defineProperty(paths$1,"__esModule",{value:!0});paths$1.makeCosmoshubPath=void 0;const crypto_1$f=build$b;function makeCosmoshubPath$1(d){return[crypto_1$f.Slip10RawIndex.hardened(44),crypto_1$f.Slip10RawIndex.hardened(118),crypto_1$f.Slip10RawIndex.hardened(0),crypto_1$f.Slip10RawIndex.normal(0),crypto_1$f.Slip10RawIndex.normal(d)]}paths$1.makeCosmoshubPath=makeCosmoshubPath$1;var secp256k1hdwallet={},signature={};Object.defineProperty(signature,"__esModule",{value:!0});signature.decodeSignature=signature.encodeSecp256k1Signature=void 0;const encoding_1$s=build$8,encoding_2=encoding$1,pubkeys_1=pubkeys;function encodeSecp256k1Signature(d,b){if(b.length!==64)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,encoding_2.encodeSecp256k1Pubkey)(d),signature:(0,encoding_1$s.toBase64)(b)}}signature.encodeSecp256k1Signature=encodeSecp256k1Signature;function decodeSignature(d){switch(d.pub_key.type){case pubkeys_1.pubkeyType.secp256k1:return{pubkey:(0,encoding_1$s.fromBase64)(d.pub_key.value),signature:(0,encoding_1$s.fromBase64)(d.signature)};default:throw new Error("Unsupported pubkey type")}}signature.decodeSignature=decodeSignature;var signdoc={};Object.defineProperty(signdoc,"__esModule",{value:!0});signdoc.serializeSignDoc=signdoc.escapeCharacters=signdoc.makeSignDoc=signdoc.sortedJsonStringify=void 0;const encoding_1$r=build$8,math_1$f=build$f;function sortedObject(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return d.map(sortedObject);const b=Object.keys(d).sort(),dt={};return b.forEach(ct=>{dt[ct]=sortedObject(d[ct])}),dt}function sortedJsonStringify(d){return JSON.stringify(sortedObject(d))}signdoc.sortedJsonStringify=sortedJsonStringify;function makeSignDoc$1(d,b,dt,ct,lt,ht){return{chain_id:dt,account_number:math_1$f.Uint53.fromString(lt.toString()).toString(),sequence:math_1$f.Uint53.fromString(ht.toString()).toString(),fee:b,msgs:d,memo:ct||""}}signdoc.makeSignDoc=makeSignDoc$1;function escapeCharacters(d){const b=/&/g,dt=//g;return d.replace(b,"\\u0026").replace(dt,"\\u003c").replace(ct,"\\u003e")}signdoc.escapeCharacters=escapeCharacters;function serializeSignDoc(d){const b=escapeCharacters(sortedJsonStringify(d));return(0,encoding_1$r.toUtf8)(b)}signdoc.serializeSignDoc=serializeSignDoc;var wallet$1={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.decrypt=d.encrypt=d.supportedAlgorithms=d.executeKdf=d.cosmjsSalt=void 0;const b=build$b,dt=build$8;d.cosmjsSalt=(0,dt.toAscii)("The CosmJS salt.");async function ct(mt,vt){switch(vt.algorithm){case"argon2id":{const kt=vt.params;if(!(0,b.isArgon2idOptions)(kt))throw new Error("Invalid format of argon2id params");return b.Argon2id.execute(mt,d.cosmjsSalt,kt)}default:throw new Error("Unsupported KDF algorithm")}}d.executeKdf=ct,d.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function lt(mt,vt,kt){switch(kt.algorithm){case d.supportedAlgorithms.xchacha20poly1305Ietf:{const Pt=b.Random.getBytes(b.xchacha20NonceLength);return new Uint8Array([...Pt,...await b.Xchacha20poly1305Ietf.encrypt(mt,vt,Pt)])}default:throw new Error(`Unsupported encryption algorithm: '${kt.algorithm}'`)}}d.encrypt=lt;async function ht(mt,vt,kt){switch(kt.algorithm){case d.supportedAlgorithms.xchacha20poly1305Ietf:{const Pt=mt.slice(0,b.xchacha20NonceLength);return b.Xchacha20poly1305Ietf.decrypt(mt.slice(b.xchacha20NonceLength),vt,Pt)}default:throw new Error(`Unsupported encryption algorithm: '${kt.algorithm}'`)}}d.decrypt=ht})(wallet$1);Object.defineProperty(secp256k1hdwallet,"__esModule",{value:!0});secp256k1hdwallet.Secp256k1HdWallet=secp256k1hdwallet.extractKdfConfiguration=void 0;const crypto_1$e=build$b,encoding_1$q=build$8,utils_1$h=build$9,addresses_1$1=addresses$1,paths_1=paths$1,signature_1$1=signature,signdoc_1$1=signdoc,wallet_1$1=wallet$1,serializationTypeV1$1="secp256k1wallet-v1",basicPasswordHashingOptions$1={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function isDerivationJson$1(d){return!(!(0,utils_1$h.isNonNullObject)(d)||typeof d.hdPath!="string"||typeof d.prefix!="string")}function extractKdfConfigurationV1$1(d){return d.kdf}function extractKdfConfiguration$1(d){const b=JSON.parse(d);if(!(0,utils_1$h.isNonNullObject)(b))throw new Error("Root document is not an object.");switch(b.type){case serializationTypeV1$1:return extractKdfConfigurationV1$1(b);default:throw new Error("Unsupported serialization type")}}secp256k1hdwallet.extractKdfConfiguration=extractKdfConfiguration$1;const defaultOptions$1={bip39Password:"",hdPaths:[(0,paths_1.makeCosmoshubPath)(0)],prefix:"cosmos"};class Secp256k1HdWallet{static async fromMnemonic(b,dt={}){const ct=new crypto_1$e.EnglishMnemonic(b),lt=await crypto_1$e.Bip39.mnemonicToSeed(ct,dt.bip39Password);return new Secp256k1HdWallet(ct,{...dt,seed:lt})}static async generate(b=12,dt={}){const ct=4*Math.floor(11*b/33),lt=crypto_1$e.Random.getBytes(ct),ht=crypto_1$e.Bip39.encode(lt);return Secp256k1HdWallet.fromMnemonic(ht.toString(),dt)}static async deserialize(b,dt){const ct=JSON.parse(b);if(!(0,utils_1$h.isNonNullObject)(ct))throw new Error("Root document is not an object.");switch(ct.type){case serializationTypeV1$1:return Secp256k1HdWallet.deserializeTypeV1(b,dt);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(b,dt){const ct=JSON.parse(b);if(!(0,utils_1$h.isNonNullObject)(ct))throw new Error("Root document is not an object.");const lt=ct;switch(lt.type){case serializationTypeV1$1:{const ht=await(0,wallet_1$1.decrypt)((0,encoding_1$q.fromBase64)(lt.data),dt,lt.encryption),mt=JSON.parse((0,encoding_1$q.fromUtf8)(ht)),{mnemonic:vt,accounts:kt}=mt;if((0,utils_1$h.assert)(typeof vt=="string"),!Array.isArray(kt))throw new Error("Property 'accounts' is not an array");if(!kt.every(Zt=>isDerivationJson$1(Zt)))throw new Error("Account is not in the correct format.");const Pt=kt[0].prefix;if(!kt.every(({prefix:Zt})=>Zt===Pt))throw new Error("Accounts do not all have the same prefix");const Jt=kt.map(({hdPath:Zt})=>(0,crypto_1$e.stringToPath)(Zt));return Secp256k1HdWallet.fromMnemonic(vt,{hdPaths:Jt,prefix:Pt})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(b,dt){const ct=JSON.parse(b);if(!(0,utils_1$h.isNonNullObject)(ct))throw new Error("Root document is not an object.");const lt=await(0,wallet_1$1.executeKdf)(dt,ct.kdf);return Secp256k1HdWallet.deserializeWithEncryptionKey(b,lt)}constructor(b,dt){const ct=dt.hdPaths??defaultOptions$1.hdPaths,lt=dt.prefix??defaultOptions$1.prefix;this.secret=b,this.seed=dt.seed,this.accounts=ct.map(ht=>({hdPath:ht,prefix:lt}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:dt,pubkey:ct,address:lt})=>({algo:dt,pubkey:ct,address:lt}))}async signAmino(b,dt){const lt=(await this.getAccountsWithPrivkeys()).find(({address:Jt})=>Jt===b);if(lt===void 0)throw new Error(`Address ${b} not found in wallet`);const{privkey:ht,pubkey:mt}=lt,vt=(0,crypto_1$e.sha256)((0,signdoc_1$1.serializeSignDoc)(dt)),kt=await crypto_1$e.Secp256k1.createSignature(vt,ht),Pt=new Uint8Array([...kt.r(32),...kt.s(32)]);return{signed:dt,signature:(0,signature_1$1.encodeSecp256k1Signature)(mt,Pt)}}async serialize(b){const dt=basicPasswordHashingOptions$1,ct=await(0,wallet_1$1.executeKdf)(b,dt);return this.serializeWithEncryptionKey(ct,dt)}async serializeWithEncryptionKey(b,dt){const ct={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:kt,prefix:Pt})=>({hdPath:(0,crypto_1$e.pathToString)(kt),prefix:Pt}))},lt=(0,encoding_1$q.toUtf8)(JSON.stringify(ct)),ht={algorithm:wallet_1$1.supportedAlgorithms.xchacha20poly1305Ietf},mt=await(0,wallet_1$1.encrypt)(lt,b,ht),vt={type:serializationTypeV1$1,kdf:dt,encryption:ht,data:(0,encoding_1$q.toBase64)(mt)};return JSON.stringify(vt)}async getKeyPair(b){const{privkey:dt}=crypto_1$e.Slip10.derivePath(crypto_1$e.Slip10Curve.Secp256k1,this.seed,b),{pubkey:ct}=await crypto_1$e.Secp256k1.makeKeypair(dt);return{privkey:dt,pubkey:crypto_1$e.Secp256k1.compressPubkey(ct)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:b,prefix:dt})=>{const{privkey:ct,pubkey:lt}=await this.getKeyPair(b),ht=(0,encoding_1$q.toBech32)(dt,(0,addresses_1$1.rawSecp256k1PubkeyToRawAddress)(lt));return{algo:"secp256k1",privkey:ct,pubkey:lt,address:ht}}))}}secp256k1hdwallet.Secp256k1HdWallet=Secp256k1HdWallet;var secp256k1wallet={};Object.defineProperty(secp256k1wallet,"__esModule",{value:!0});secp256k1wallet.Secp256k1Wallet=void 0;const crypto_1$d=build$b,encoding_1$p=build$8,addresses_1=addresses$1,signature_1=signature,signdoc_1=signdoc;class Secp256k1Wallet{static async fromKey(b,dt="cosmos"){const ct=(await crypto_1$d.Secp256k1.makeKeypair(b)).pubkey;return new Secp256k1Wallet(b,crypto_1$d.Secp256k1.compressPubkey(ct),dt)}constructor(b,dt,ct){this.privkey=b,this.pubkey=dt,this.prefix=ct}get address(){return(0,encoding_1$p.toBech32)(this.prefix,(0,addresses_1.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(b,dt){if(b!==this.address)throw new Error(`Address ${b} not found in wallet`);const ct=new crypto_1$d.Sha256((0,signdoc_1.serializeSignDoc)(dt)).digest(),lt=await crypto_1$d.Secp256k1.createSignature(ct,this.privkey),ht=new Uint8Array([...lt.r(32),...lt.s(32)]);return{signed:dt,signature:(0,signature_1.encodeSecp256k1Signature)(this.pubkey,ht)}}}secp256k1wallet.Secp256k1Wallet=Secp256k1Wallet;var stdtx={};Object.defineProperty(stdtx,"__esModule",{value:!0});stdtx.makeStdTx=stdtx.isStdTx=void 0;function isStdTx(d){const{memo:b,msg:dt,fee:ct,signatures:lt}=d;return typeof b=="string"&&Array.isArray(dt)&&typeof ct=="object"&&Array.isArray(lt)}stdtx.isStdTx=isStdTx;function makeStdTx(d,b){return{msg:d.msgs,fee:d.fee,memo:d.memo,signatures:Array.isArray(b)?b:[b]}}stdtx.makeStdTx=makeStdTx;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.executeKdf=d.makeStdTx=d.isStdTx=d.serializeSignDoc=d.makeSignDoc=d.encodeSecp256k1Signature=d.decodeSignature=d.Secp256k1Wallet=d.Secp256k1HdWallet=d.extractKdfConfiguration=d.pubkeyType=d.isSinglePubkey=d.isSecp256k1Pubkey=d.isMultisigThresholdPubkey=d.isEd25519Pubkey=d.makeCosmoshubPath=d.createMultisigThresholdPubkey=d.encodeSecp256k1Pubkey=d.encodeEd25519Pubkey=d.encodeBech32Pubkey=d.encodeAminoPubkey=d.decodeBech32Pubkey=d.decodeAminoPubkey=d.parseCoins=d.coins=d.coin=d.addCoins=d.rawSecp256k1PubkeyToRawAddress=d.rawEd25519PubkeyToRawAddress=d.pubkeyToRawAddress=d.pubkeyToAddress=void 0;var b=addresses$1;Object.defineProperty(d,"pubkeyToAddress",{enumerable:!0,get:function(){return b.pubkeyToAddress}}),Object.defineProperty(d,"pubkeyToRawAddress",{enumerable:!0,get:function(){return b.pubkeyToRawAddress}}),Object.defineProperty(d,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return b.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(d,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return b.rawSecp256k1PubkeyToRawAddress}});var dt=coins$1;Object.defineProperty(d,"addCoins",{enumerable:!0,get:function(){return dt.addCoins}}),Object.defineProperty(d,"coin",{enumerable:!0,get:function(){return dt.coin}}),Object.defineProperty(d,"coins",{enumerable:!0,get:function(){return dt.coins}}),Object.defineProperty(d,"parseCoins",{enumerable:!0,get:function(){return dt.parseCoins}});var ct=encoding$1;Object.defineProperty(d,"decodeAminoPubkey",{enumerable:!0,get:function(){return ct.decodeAminoPubkey}}),Object.defineProperty(d,"decodeBech32Pubkey",{enumerable:!0,get:function(){return ct.decodeBech32Pubkey}}),Object.defineProperty(d,"encodeAminoPubkey",{enumerable:!0,get:function(){return ct.encodeAminoPubkey}}),Object.defineProperty(d,"encodeBech32Pubkey",{enumerable:!0,get:function(){return ct.encodeBech32Pubkey}}),Object.defineProperty(d,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return ct.encodeEd25519Pubkey}}),Object.defineProperty(d,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return ct.encodeSecp256k1Pubkey}});var lt=multisig$1;Object.defineProperty(d,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return lt.createMultisigThresholdPubkey}});var ht=paths$1;Object.defineProperty(d,"makeCosmoshubPath",{enumerable:!0,get:function(){return ht.makeCosmoshubPath}});var mt=pubkeys;Object.defineProperty(d,"isEd25519Pubkey",{enumerable:!0,get:function(){return mt.isEd25519Pubkey}}),Object.defineProperty(d,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return mt.isMultisigThresholdPubkey}}),Object.defineProperty(d,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return mt.isSecp256k1Pubkey}}),Object.defineProperty(d,"isSinglePubkey",{enumerable:!0,get:function(){return mt.isSinglePubkey}}),Object.defineProperty(d,"pubkeyType",{enumerable:!0,get:function(){return mt.pubkeyType}});var vt=secp256k1hdwallet;Object.defineProperty(d,"extractKdfConfiguration",{enumerable:!0,get:function(){return vt.extractKdfConfiguration}}),Object.defineProperty(d,"Secp256k1HdWallet",{enumerable:!0,get:function(){return vt.Secp256k1HdWallet}});var kt=secp256k1wallet;Object.defineProperty(d,"Secp256k1Wallet",{enumerable:!0,get:function(){return kt.Secp256k1Wallet}});var Pt=signature;Object.defineProperty(d,"decodeSignature",{enumerable:!0,get:function(){return Pt.decodeSignature}}),Object.defineProperty(d,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return Pt.encodeSecp256k1Signature}});var Jt=signdoc;Object.defineProperty(d,"makeSignDoc",{enumerable:!0,get:function(){return Jt.makeSignDoc}}),Object.defineProperty(d,"serializeSignDoc",{enumerable:!0,get:function(){return Jt.serializeSignDoc}});var Zt=stdtx;Object.defineProperty(d,"isStdTx",{enumerable:!0,get:function(){return Zt.isStdTx}}),Object.defineProperty(d,"makeStdTx",{enumerable:!0,get:function(){return Zt.makeStdTx}});var Rt=wallet$1;Object.defineProperty(d,"executeKdf",{enumerable:!0,get:function(){return Rt.executeKdf}})})(build$c);var build$7={},ascii$2={};Object.defineProperty(ascii$2,"__esModule",{value:!0});ascii$2.fromAscii=ascii$2.toAscii=void 0;function toAscii$2(d){const b=dt=>dt.split("").map(ct=>{const lt=ct.charCodeAt(0);if(lt<32||lt>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+lt);return lt});return Uint8Array.from(b(d))}ascii$2.toAscii=toAscii$2;function fromAscii$2(d){return(dt=>dt.map(ct=>{if(ct<32||ct>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+ct);return String.fromCharCode(ct)}))(Array.from(d)).join("")}ascii$2.fromAscii=fromAscii$2;var base64$4={},__createBinding$x=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$x=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$x=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$x(b,d,dt);return __setModuleDefault$x(b,d),b};Object.defineProperty(base64$4,"__esModule",{value:!0});base64$4.fromBase64=base64$4.toBase64=void 0;const base64js$2=__importStar$x(base64Js);function toBase64$2(d){return base64js$2.fromByteArray(d)}base64$4.toBase64=toBase64$2;function fromBase64$2(d){if(!d.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return base64js$2.toByteArray(d)}base64$4.fromBase64=fromBase64$2;var bech32$5={},__createBinding$w=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$w=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$w=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$w(b,d,dt);return __setModuleDefault$w(b,d),b};Object.defineProperty(bech32$5,"__esModule",{value:!0});bech32$5.normalizeBech32=bech32$5.fromBech32=bech32$5.toBech32=void 0;const bech32$4=__importStar$w(bech32$d);function toBech32$2(d,b,dt){return bech32$4.encode(d,bech32$4.toWords(b),dt)}bech32$5.toBech32=toBech32$2;function fromBech32$2(d,b=1/0){const dt=bech32$4.decode(d,b);return{prefix:dt.prefix,data:new Uint8Array(bech32$4.fromWords(dt.words))}}bech32$5.fromBech32=fromBech32$2;function normalizeBech32$2(d){const{prefix:b,data:dt}=fromBech32$2(d);return toBech32$2(b,dt)}bech32$5.normalizeBech32=normalizeBech32$2;var hex$2={};Object.defineProperty(hex$2,"__esModule",{value:!0});hex$2.fromHex=hex$2.toHex=void 0;function toHex$2(d){let b="";for(const dt of d)b+=("0"+dt.toString(16)).slice(-2);return b}hex$2.toHex=toHex$2;function fromHex$2(d){if(d.length%2!==0)throw new Error("hex string length must be a multiple of 2");const b=new Uint8Array(d.length/2);for(let dt=0;dt({publicKey:dt,modeInfo:{single:{mode:b}},sequence:long_1$l.default.fromNumber(ct)}))}function makeAuthInfoBytes(d,b,dt,ct,lt,ht=signing_1$5.SignMode.SIGN_MODE_DIRECT){(0,utils_1$g.assert)(ct===void 0||typeof ct=="string","feeGranter must be undefined or string"),(0,utils_1$g.assert)(lt===void 0||typeof lt=="string","feePayer must be undefined or string");const mt=tx_1$g.AuthInfo.fromPartial({signerInfos:makeSignerInfos(d,ht),fee:{amount:[...b],gasLimit:long_1$l.default.fromNumber(dt),granter:ct,payer:lt}});return tx_1$g.AuthInfo.encode(mt).finish()}signing$1.makeAuthInfoBytes=makeAuthInfoBytes;function makeSignDoc(d,b,dt,ct){return{bodyBytes:d,authInfoBytes:b,chainId:dt,accountNumber:long_1$l.default.fromNumber(ct)}}signing$1.makeSignDoc=makeSignDoc;function makeSignBytes({accountNumber:d,authInfoBytes:b,bodyBytes:dt,chainId:ct}){const lt=tx_1$g.SignDoc.fromPartial({accountNumber:d,authInfoBytes:b,bodyBytes:dt,chainId:ct});return tx_1$g.SignDoc.encode(lt).finish()}signing$1.makeSignBytes=makeSignBytes;var wallet={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.decrypt=d.encrypt=d.supportedAlgorithms=d.executeKdf=d.cosmjsSalt=void 0;const b=build$b,dt=build$7;d.cosmjsSalt=(0,dt.toAscii)("The CosmJS salt.");async function ct(mt,vt){switch(vt.algorithm){case"argon2id":{const kt=vt.params;if(!(0,b.isArgon2idOptions)(kt))throw new Error("Invalid format of argon2id params");return b.Argon2id.execute(mt,d.cosmjsSalt,kt)}default:throw new Error("Unsupported KDF algorithm")}}d.executeKdf=ct,d.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function lt(mt,vt,kt){switch(kt.algorithm){case d.supportedAlgorithms.xchacha20poly1305Ietf:{const Pt=b.Random.getBytes(b.xchacha20NonceLength);return new Uint8Array([...Pt,...await b.Xchacha20poly1305Ietf.encrypt(mt,vt,Pt)])}default:throw new Error(`Unsupported encryption algorithm: '${kt.algorithm}'`)}}d.encrypt=lt;async function ht(mt,vt,kt){switch(kt.algorithm){case d.supportedAlgorithms.xchacha20poly1305Ietf:{const Pt=mt.slice(0,b.xchacha20NonceLength);return b.Xchacha20poly1305Ietf.decrypt(mt.slice(b.xchacha20NonceLength),vt,Pt)}default:throw new Error(`Unsupported encryption algorithm: '${kt.algorithm}'`)}}d.decrypt=ht})(wallet);Object.defineProperty(directsecp256k1hdwallet,"__esModule",{value:!0});directsecp256k1hdwallet.DirectSecp256k1HdWallet=directsecp256k1hdwallet.extractKdfConfiguration=void 0;const amino_1$5=build$c,crypto_1$c=build$b,encoding_1$o=build$7,utils_1$f=build$9,signing_1$4=signing$1,wallet_1=wallet,serializationTypeV1="directsecp256k1hdwallet-v1",basicPasswordHashingOptions={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function isDerivationJson(d){return!(!(0,utils_1$f.isNonNullObject)(d)||typeof d.hdPath!="string"||typeof d.prefix!="string")}function extractKdfConfigurationV1(d){return d.kdf}function extractKdfConfiguration(d){const b=JSON.parse(d);if(!(0,utils_1$f.isNonNullObject)(b))throw new Error("Root document is not an object.");switch(b.type){case serializationTypeV1:return extractKdfConfigurationV1(b);default:throw new Error("Unsupported serialization type")}}directsecp256k1hdwallet.extractKdfConfiguration=extractKdfConfiguration;const defaultOptions={bip39Password:"",hdPaths:[(0,amino_1$5.makeCosmoshubPath)(0)],prefix:"cosmos"};class DirectSecp256k1HdWallet{static async fromMnemonic(b,dt={}){const ct=new crypto_1$c.EnglishMnemonic(b),lt=await crypto_1$c.Bip39.mnemonicToSeed(ct,dt.bip39Password);return new DirectSecp256k1HdWallet(ct,{...dt,seed:lt})}static async generate(b=12,dt={}){const ct=4*Math.floor(11*b/33),lt=crypto_1$c.Random.getBytes(ct),ht=crypto_1$c.Bip39.encode(lt);return DirectSecp256k1HdWallet.fromMnemonic(ht.toString(),dt)}static async deserialize(b,dt){const ct=JSON.parse(b);if(!(0,utils_1$f.isNonNullObject)(ct))throw new Error("Root document is not an object.");switch(ct.type){case serializationTypeV1:return DirectSecp256k1HdWallet.deserializeTypeV1(b,dt);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(b,dt){const ct=JSON.parse(b);if(!(0,utils_1$f.isNonNullObject)(ct))throw new Error("Root document is not an object.");const lt=ct;switch(lt.type){case serializationTypeV1:{const ht=await(0,wallet_1.decrypt)((0,encoding_1$o.fromBase64)(lt.data),dt,lt.encryption),mt=JSON.parse((0,encoding_1$o.fromUtf8)(ht)),{mnemonic:vt,accounts:kt}=mt;if((0,utils_1$f.assert)(typeof vt=="string"),!Array.isArray(kt))throw new Error("Property 'accounts' is not an array");if(!kt.every(Zt=>isDerivationJson(Zt)))throw new Error("Account is not in the correct format.");const Pt=kt[0].prefix;if(!kt.every(({prefix:Zt})=>Zt===Pt))throw new Error("Accounts do not all have the same prefix");const Jt=kt.map(({hdPath:Zt})=>(0,crypto_1$c.stringToPath)(Zt));return DirectSecp256k1HdWallet.fromMnemonic(vt,{hdPaths:Jt,prefix:Pt})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(b,dt){const ct=JSON.parse(b);if(!(0,utils_1$f.isNonNullObject)(ct))throw new Error("Root document is not an object.");const lt=await(0,wallet_1.executeKdf)(dt,ct.kdf);return DirectSecp256k1HdWallet.deserializeWithEncryptionKey(b,lt)}constructor(b,dt){const ct=dt.prefix??defaultOptions.prefix,lt=dt.hdPaths??defaultOptions.hdPaths;this.secret=b,this.seed=dt.seed,this.accounts=lt.map(ht=>({hdPath:ht,prefix:ct}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:dt,pubkey:ct,address:lt})=>({algo:dt,pubkey:ct,address:lt}))}async signDirect(b,dt){const lt=(await this.getAccountsWithPrivkeys()).find(({address:Rt})=>Rt===b);if(lt===void 0)throw new Error(`Address ${b} not found in wallet`);const{privkey:ht,pubkey:mt}=lt,vt=(0,signing_1$4.makeSignBytes)(dt),kt=(0,crypto_1$c.sha256)(vt),Pt=await crypto_1$c.Secp256k1.createSignature(kt,ht),Jt=new Uint8Array([...Pt.r(32),...Pt.s(32)]),Zt=(0,amino_1$5.encodeSecp256k1Signature)(mt,Jt);return{signed:dt,signature:Zt}}async serialize(b){const dt=basicPasswordHashingOptions,ct=await(0,wallet_1.executeKdf)(b,dt);return this.serializeWithEncryptionKey(ct,dt)}async serializeWithEncryptionKey(b,dt){const ct={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:kt,prefix:Pt})=>({hdPath:(0,crypto_1$c.pathToString)(kt),prefix:Pt}))},lt=(0,encoding_1$o.toUtf8)(JSON.stringify(ct)),ht={algorithm:wallet_1.supportedAlgorithms.xchacha20poly1305Ietf},mt=await(0,wallet_1.encrypt)(lt,b,ht),vt={type:serializationTypeV1,kdf:dt,encryption:ht,data:(0,encoding_1$o.toBase64)(mt)};return JSON.stringify(vt)}async getKeyPair(b){const{privkey:dt}=crypto_1$c.Slip10.derivePath(crypto_1$c.Slip10Curve.Secp256k1,this.seed,b),{pubkey:ct}=await crypto_1$c.Secp256k1.makeKeypair(dt);return{privkey:dt,pubkey:crypto_1$c.Secp256k1.compressPubkey(ct)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:b,prefix:dt})=>{const{privkey:ct,pubkey:lt}=await this.getKeyPair(b),ht=(0,encoding_1$o.toBech32)(dt,(0,amino_1$5.rawSecp256k1PubkeyToRawAddress)(lt));return{algo:"secp256k1",privkey:ct,pubkey:lt,address:ht}}))}}directsecp256k1hdwallet.DirectSecp256k1HdWallet=DirectSecp256k1HdWallet;var directsecp256k1wallet={};Object.defineProperty(directsecp256k1wallet,"__esModule",{value:!0});directsecp256k1wallet.DirectSecp256k1Wallet=void 0;const amino_1$4=build$c,crypto_1$b=build$b,encoding_1$n=build$7,signing_1$3=signing$1;class DirectSecp256k1Wallet{static async fromKey(b,dt="cosmos"){const ct=(await crypto_1$b.Secp256k1.makeKeypair(b)).pubkey;return new DirectSecp256k1Wallet(b,crypto_1$b.Secp256k1.compressPubkey(ct),dt)}constructor(b,dt,ct){this.privkey=b,this.pubkey=dt,this.prefix=ct}get address(){return(0,encoding_1$n.toBech32)(this.prefix,(0,amino_1$4.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(b,dt){const ct=(0,signing_1$3.makeSignBytes)(dt);if(b!==this.address)throw new Error(`Address ${b} not found in wallet`);const lt=(0,crypto_1$b.sha256)(ct),ht=await crypto_1$b.Secp256k1.createSignature(lt,this.privkey),mt=new Uint8Array([...ht.r(32),...ht.s(32)]),vt=(0,amino_1$4.encodeSecp256k1Signature)(this.pubkey,mt);return{signed:dt,signature:vt}}}directsecp256k1wallet.DirectSecp256k1Wallet=DirectSecp256k1Wallet;var paths={};Object.defineProperty(paths,"__esModule",{value:!0});paths.makeCosmoshubPath=void 0;const crypto_1$a=build$b;function makeCosmoshubPath(d){return[crypto_1$a.Slip10RawIndex.hardened(44),crypto_1$a.Slip10RawIndex.hardened(118),crypto_1$a.Slip10RawIndex.hardened(0),crypto_1$a.Slip10RawIndex.normal(0),crypto_1$a.Slip10RawIndex.normal(d)]}paths.makeCosmoshubPath=makeCosmoshubPath;var pubkey={},keys$5={},__createBinding$v=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$v=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$v=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$v(b,d,dt);return __setModuleDefault$v(b,d),b};Object.defineProperty(keys$5,"__esModule",{value:!0});keys$5.PrivKey=keys$5.PubKey=keys$5.protobufPackage=void 0;const _m0$n=__importStar$v(minimal$4),helpers_1$m=helpers$1;keys$5.protobufPackage="cosmos.crypto.ed25519";function createBasePubKey$1(){return{key:new Uint8Array}}keys$5.PubKey={encode(d,b=_m0$n.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),b},decode(d,b){const dt=d instanceof _m0$n.Reader?d:new _m0$n.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePubKey$1();for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{key:(0,helpers_1$m.isSet)(d.key)?(0,helpers_1$m.bytesFromBase64)(d.key):new Uint8Array}},toJSON(d){const b={};return d.key!==void 0&&(b.key=(0,helpers_1$m.base64FromBytes)(d.key!==void 0?d.key:new Uint8Array)),b},fromPartial(d){const b=createBasePubKey$1();return b.key=d.key??new Uint8Array,b}};function createBasePrivKey$1(){return{key:new Uint8Array}}keys$5.PrivKey={encode(d,b=_m0$n.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),b},decode(d,b){const dt=d instanceof _m0$n.Reader?d:new _m0$n.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePrivKey$1();for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{key:(0,helpers_1$m.isSet)(d.key)?(0,helpers_1$m.bytesFromBase64)(d.key):new Uint8Array}},toJSON(d){const b={};return d.key!==void 0&&(b.key=(0,helpers_1$m.base64FromBytes)(d.key!==void 0?d.key:new Uint8Array)),b},fromPartial(d){const b=createBasePrivKey$1();return b.key=d.key??new Uint8Array,b}};var keys$4={},__createBinding$u=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$u=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$u=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$u(b,d,dt);return __setModuleDefault$u(b,d),b};Object.defineProperty(keys$4,"__esModule",{value:!0});keys$4.LegacyAminoPubKey=keys$4.protobufPackage=void 0;const any_1$5=any$1,_m0$m=__importStar$u(minimal$4),helpers_1$l=helpers$1;keys$4.protobufPackage="cosmos.crypto.multisig";function createBaseLegacyAminoPubKey(){return{threshold:0,publicKeys:[]}}keys$4.LegacyAminoPubKey={encode(d,b=_m0$m.Writer.create()){d.threshold!==0&&b.uint32(8).uint32(d.threshold);for(const dt of d.publicKeys)any_1$5.Any.encode(dt,b.uint32(18).fork()).ldelim();return b},decode(d,b){const dt=d instanceof _m0$m.Reader?d:new _m0$m.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseLegacyAminoPubKey();for(;dt.pos>>3){case 1:lt.threshold=dt.uint32();break;case 2:lt.publicKeys.push(any_1$5.Any.decode(dt,dt.uint32()));break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{threshold:(0,helpers_1$l.isSet)(d.threshold)?Number(d.threshold):0,publicKeys:Array.isArray(d==null?void 0:d.publicKeys)?d.publicKeys.map(b=>any_1$5.Any.fromJSON(b)):[]}},toJSON(d){const b={};return d.threshold!==void 0&&(b.threshold=Math.round(d.threshold)),d.publicKeys?b.publicKeys=d.publicKeys.map(dt=>dt?any_1$5.Any.toJSON(dt):void 0):b.publicKeys=[],b},fromPartial(d){var dt;const b=createBaseLegacyAminoPubKey();return b.threshold=d.threshold??0,b.publicKeys=((dt=d.publicKeys)==null?void 0:dt.map(ct=>any_1$5.Any.fromPartial(ct)))||[],b}};var keys$3={},__createBinding$t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$t=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$t=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$t(b,d,dt);return __setModuleDefault$t(b,d),b};Object.defineProperty(keys$3,"__esModule",{value:!0});keys$3.PrivKey=keys$3.PubKey=keys$3.protobufPackage=void 0;const _m0$l=__importStar$t(minimal$4),helpers_1$k=helpers$1;keys$3.protobufPackage="cosmos.crypto.secp256k1";function createBasePubKey(){return{key:new Uint8Array}}keys$3.PubKey={encode(d,b=_m0$l.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),b},decode(d,b){const dt=d instanceof _m0$l.Reader?d:new _m0$l.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePubKey();for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{key:(0,helpers_1$k.isSet)(d.key)?(0,helpers_1$k.bytesFromBase64)(d.key):new Uint8Array}},toJSON(d){const b={};return d.key!==void 0&&(b.key=(0,helpers_1$k.base64FromBytes)(d.key!==void 0?d.key:new Uint8Array)),b},fromPartial(d){const b=createBasePubKey();return b.key=d.key??new Uint8Array,b}};function createBasePrivKey(){return{key:new Uint8Array}}keys$3.PrivKey={encode(d,b=_m0$l.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),b},decode(d,b){const dt=d instanceof _m0$l.Reader?d:new _m0$l.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePrivKey();for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{key:(0,helpers_1$k.isSet)(d.key)?(0,helpers_1$k.bytesFromBase64)(d.key):new Uint8Array}},toJSON(d){const b={};return d.key!==void 0&&(b.key=(0,helpers_1$k.base64FromBytes)(d.key!==void 0?d.key:new Uint8Array)),b},fromPartial(d){const b=createBasePrivKey();return b.key=d.key??new Uint8Array,b}};Object.defineProperty(pubkey,"__esModule",{value:!0});pubkey.decodePubkey=pubkey.anyToSinglePubkey=pubkey.encodePubkey=void 0;const amino_1$3=build$c,encoding_1$m=build$7,math_1$e=build$f,keys_1=keys$5,keys_2=keys$4,keys_3=keys$3,any_1$4=any$1;function encodePubkey(d){if((0,amino_1$3.isSecp256k1Pubkey)(d)){const b=keys_3.PubKey.fromPartial({key:(0,encoding_1$m.fromBase64)(d.value)});return any_1$4.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(keys_3.PubKey.encode(b).finish())})}else if((0,amino_1$3.isEd25519Pubkey)(d)){const b=keys_1.PubKey.fromPartial({key:(0,encoding_1$m.fromBase64)(d.value)});return any_1$4.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(keys_1.PubKey.encode(b).finish())})}else if((0,amino_1$3.isMultisigThresholdPubkey)(d)){const b=keys_2.LegacyAminoPubKey.fromPartial({threshold:math_1$e.Uint53.fromString(d.value.threshold).toNumber(),publicKeys:d.value.pubkeys.map(encodePubkey)});return any_1$4.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(keys_2.LegacyAminoPubKey.encode(b).finish())})}else throw new Error(`Pubkey type ${d.type} not recognized`)}pubkey.encodePubkey=encodePubkey;function anyToSinglePubkey(d){switch(d.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{const{key:b}=keys_3.PubKey.decode(d.value);return(0,amino_1$3.encodeSecp256k1Pubkey)(b)}case"/cosmos.crypto.ed25519.PubKey":{const{key:b}=keys_1.PubKey.decode(d.value);return(0,amino_1$3.encodeEd25519Pubkey)(b)}default:throw new Error(`Pubkey type_url ${d.typeUrl} not recognized as single public key type`)}}pubkey.anyToSinglePubkey=anyToSinglePubkey;function decodePubkey$2(d){switch(d.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return anyToSinglePubkey(d);case"/cosmos.crypto.multisig.LegacyAminoPubKey":{const{threshold:b,publicKeys:dt}=keys_2.LegacyAminoPubKey.decode(d.value);return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:b.toString(),pubkeys:dt.map(anyToSinglePubkey)}}}default:throw new Error(`Pubkey type_url ${d.typeUrl} not recognized`)}}pubkey.decodePubkey=decodePubkey$2;var registry={},tx$q={},bank$1={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.Metadata=d.DenomUnit=d.Supply=d.Output=d.Input=d.SendEnabled=d.Params=d.protobufPackage=void 0;const lt=coin$3,ht=ct(minimal$4),mt=helpers$1;d.protobufPackage="cosmos.bank.v1beta1";function vt(){return{sendEnabled:[],defaultSendEnabled:!1}}d.Params={encode(Qt,wt=ht.Writer.create()){for(const Nt of Qt.sendEnabled)d.SendEnabled.encode(Nt,wt.uint32(10).fork()).ldelim();return Qt.defaultSendEnabled===!0&&wt.uint32(16).bool(Qt.defaultSendEnabled),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=vt();for(;Nt.pos>>3){case 1:Et.sendEnabled.push(d.SendEnabled.decode(Nt,Nt.uint32()));break;case 2:Et.defaultSendEnabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{sendEnabled:Array.isArray(Qt==null?void 0:Qt.sendEnabled)?Qt.sendEnabled.map(wt=>d.SendEnabled.fromJSON(wt)):[],defaultSendEnabled:(0,mt.isSet)(Qt.defaultSendEnabled)?!!Qt.defaultSendEnabled:!1}},toJSON(Qt){const wt={};return Qt.sendEnabled?wt.sendEnabled=Qt.sendEnabled.map(Nt=>Nt?d.SendEnabled.toJSON(Nt):void 0):wt.sendEnabled=[],Qt.defaultSendEnabled!==void 0&&(wt.defaultSendEnabled=Qt.defaultSendEnabled),wt},fromPartial(Qt){var Nt;const wt=vt();return wt.sendEnabled=((Nt=Qt.sendEnabled)==null?void 0:Nt.map(xt=>d.SendEnabled.fromPartial(xt)))||[],wt.defaultSendEnabled=Qt.defaultSendEnabled??!1,wt}};function kt(){return{denom:"",enabled:!1}}d.SendEnabled={encode(Qt,wt=ht.Writer.create()){return Qt.denom!==""&&wt.uint32(10).string(Qt.denom),Qt.enabled===!0&&wt.uint32(16).bool(Qt.enabled),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=kt();for(;Nt.pos>>3){case 1:Et.denom=Nt.string();break;case 2:Et.enabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{denom:(0,mt.isSet)(Qt.denom)?String(Qt.denom):"",enabled:(0,mt.isSet)(Qt.enabled)?!!Qt.enabled:!1}},toJSON(Qt){const wt={};return Qt.denom!==void 0&&(wt.denom=Qt.denom),Qt.enabled!==void 0&&(wt.enabled=Qt.enabled),wt},fromPartial(Qt){const wt=kt();return wt.denom=Qt.denom??"",wt.enabled=Qt.enabled??!1,wt}};function Pt(){return{address:"",coins:[]}}d.Input={encode(Qt,wt=ht.Writer.create()){Qt.address!==""&&wt.uint32(10).string(Qt.address);for(const Nt of Qt.coins)lt.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Pt();for(;Nt.pos>>3){case 1:Et.address=Nt.string();break;case 2:Et.coins.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{address:(0,mt.isSet)(Qt.address)?String(Qt.address):"",coins:Array.isArray(Qt==null?void 0:Qt.coins)?Qt.coins.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.address!==void 0&&(wt.address=Qt.address),Qt.coins?wt.coins=Qt.coins.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.coins=[],wt},fromPartial(Qt){var Nt;const wt=Pt();return wt.address=Qt.address??"",wt.coins=((Nt=Qt.coins)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Jt(){return{address:"",coins:[]}}d.Output={encode(Qt,wt=ht.Writer.create()){Qt.address!==""&&wt.uint32(10).string(Qt.address);for(const Nt of Qt.coins)lt.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Jt();for(;Nt.pos>>3){case 1:Et.address=Nt.string();break;case 2:Et.coins.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{address:(0,mt.isSet)(Qt.address)?String(Qt.address):"",coins:Array.isArray(Qt==null?void 0:Qt.coins)?Qt.coins.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.address!==void 0&&(wt.address=Qt.address),Qt.coins?wt.coins=Qt.coins.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.coins=[],wt},fromPartial(Qt){var Nt;const wt=Jt();return wt.address=Qt.address??"",wt.coins=((Nt=Qt.coins)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Zt(){return{total:[]}}d.Supply={encode(Qt,wt=ht.Writer.create()){for(const Nt of Qt.total)lt.Coin.encode(Nt,wt.uint32(10).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Zt();for(;Nt.pos>>3){case 1:Et.total.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{total:Array.isArray(Qt==null?void 0:Qt.total)?Qt.total.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.total?wt.total=Qt.total.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.total=[],wt},fromPartial(Qt){var Nt;const wt=Zt();return wt.total=((Nt=Qt.total)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Rt(){return{denom:"",exponent:0,aliases:[]}}d.DenomUnit={encode(Qt,wt=ht.Writer.create()){Qt.denom!==""&&wt.uint32(10).string(Qt.denom),Qt.exponent!==0&&wt.uint32(16).uint32(Qt.exponent);for(const Nt of Qt.aliases)wt.uint32(26).string(Nt);return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Rt();for(;Nt.pos>>3){case 1:Et.denom=Nt.string();break;case 2:Et.exponent=Nt.uint32();break;case 3:Et.aliases.push(Nt.string());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{denom:(0,mt.isSet)(Qt.denom)?String(Qt.denom):"",exponent:(0,mt.isSet)(Qt.exponent)?Number(Qt.exponent):0,aliases:Array.isArray(Qt==null?void 0:Qt.aliases)?Qt.aliases.map(wt=>String(wt)):[]}},toJSON(Qt){const wt={};return Qt.denom!==void 0&&(wt.denom=Qt.denom),Qt.exponent!==void 0&&(wt.exponent=Math.round(Qt.exponent)),Qt.aliases?wt.aliases=Qt.aliases.map(Nt=>Nt):wt.aliases=[],wt},fromPartial(Qt){var Nt;const wt=Rt();return wt.denom=Qt.denom??"",wt.exponent=Qt.exponent??0,wt.aliases=((Nt=Qt.aliases)==null?void 0:Nt.map(xt=>xt))||[],wt}};function nn(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol:"",uri:"",uriHash:""}}d.Metadata={encode(Qt,wt=ht.Writer.create()){Qt.description!==""&&wt.uint32(10).string(Qt.description);for(const Nt of Qt.denomUnits)d.DenomUnit.encode(Nt,wt.uint32(18).fork()).ldelim();return Qt.base!==""&&wt.uint32(26).string(Qt.base),Qt.display!==""&&wt.uint32(34).string(Qt.display),Qt.name!==""&&wt.uint32(42).string(Qt.name),Qt.symbol!==""&&wt.uint32(50).string(Qt.symbol),Qt.uri!==""&&wt.uint32(58).string(Qt.uri),Qt.uriHash!==""&&wt.uint32(66).string(Qt.uriHash),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=nn();for(;Nt.pos>>3){case 1:Et.description=Nt.string();break;case 2:Et.denomUnits.push(d.DenomUnit.decode(Nt,Nt.uint32()));break;case 3:Et.base=Nt.string();break;case 4:Et.display=Nt.string();break;case 5:Et.name=Nt.string();break;case 6:Et.symbol=Nt.string();break;case 7:Et.uri=Nt.string();break;case 8:Et.uriHash=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{description:(0,mt.isSet)(Qt.description)?String(Qt.description):"",denomUnits:Array.isArray(Qt==null?void 0:Qt.denomUnits)?Qt.denomUnits.map(wt=>d.DenomUnit.fromJSON(wt)):[],base:(0,mt.isSet)(Qt.base)?String(Qt.base):"",display:(0,mt.isSet)(Qt.display)?String(Qt.display):"",name:(0,mt.isSet)(Qt.name)?String(Qt.name):"",symbol:(0,mt.isSet)(Qt.symbol)?String(Qt.symbol):"",uri:(0,mt.isSet)(Qt.uri)?String(Qt.uri):"",uriHash:(0,mt.isSet)(Qt.uriHash)?String(Qt.uriHash):""}},toJSON(Qt){const wt={};return Qt.description!==void 0&&(wt.description=Qt.description),Qt.denomUnits?wt.denomUnits=Qt.denomUnits.map(Nt=>Nt?d.DenomUnit.toJSON(Nt):void 0):wt.denomUnits=[],Qt.base!==void 0&&(wt.base=Qt.base),Qt.display!==void 0&&(wt.display=Qt.display),Qt.name!==void 0&&(wt.name=Qt.name),Qt.symbol!==void 0&&(wt.symbol=Qt.symbol),Qt.uri!==void 0&&(wt.uri=Qt.uri),Qt.uriHash!==void 0&&(wt.uriHash=Qt.uriHash),wt},fromPartial(Qt){var Nt;const wt=nn();return wt.description=Qt.description??"",wt.denomUnits=((Nt=Qt.denomUnits)==null?void 0:Nt.map(xt=>d.DenomUnit.fromPartial(xt)))||[],wt.base=Qt.base??"",wt.display=Qt.display??"",wt.name=Qt.name??"",wt.symbol=Qt.symbol??"",wt.uri=Qt.uri??"",wt.uriHash=Qt.uriHash??"",wt}}})(bank$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,Et,Bt,Tt){Tt===void 0&&(Tt=Bt);var Mt=Object.getOwnPropertyDescriptor(Et,Bt);(!Mt||("get"in Mt?!Et.__esModule:Mt.writable||Mt.configurable))&&(Mt={enumerable:!0,get:function(){return Et[Bt]}}),Object.defineProperty(xt,Tt,Mt)}:function(xt,Et,Bt,Tt){Tt===void 0&&(Tt=Bt),xt[Tt]=Et[Bt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(xt,Et){Object.defineProperty(xt,"default",{enumerable:!0,value:Et})}:function(xt,Et){xt.default=Et}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(xt){if(xt&&xt.__esModule)return xt;var Et={};if(xt!=null)for(var Bt in xt)Bt!=="default"&&Object.prototype.hasOwnProperty.call(xt,Bt)&&b(Et,xt,Bt);return dt(Et,xt),Et};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgSetSendEnabledResponse=d.MsgSetSendEnabled=d.MsgUpdateParamsResponse=d.MsgUpdateParams=d.MsgMultiSendResponse=d.MsgMultiSend=d.MsgSendResponse=d.MsgSend=d.protobufPackage=void 0;const lt=coin$3,ht=bank$1,mt=ct(minimal$4),vt=helpers$1;d.protobufPackage="cosmos.bank.v1beta1";function kt(){return{fromAddress:"",toAddress:"",amount:[]}}d.MsgSend={encode(xt,Et=mt.Writer.create()){xt.fromAddress!==""&&Et.uint32(10).string(xt.fromAddress),xt.toAddress!==""&&Et.uint32(18).string(xt.toAddress);for(const Bt of xt.amount)lt.Coin.encode(Bt,Et.uint32(26).fork()).ldelim();return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=kt();for(;Bt.pos>>3){case 1:Mt.fromAddress=Bt.string();break;case 2:Mt.toAddress=Bt.string();break;case 3:Mt.amount.push(lt.Coin.decode(Bt,Bt.uint32()));break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{fromAddress:(0,vt.isSet)(xt.fromAddress)?String(xt.fromAddress):"",toAddress:(0,vt.isSet)(xt.toAddress)?String(xt.toAddress):"",amount:Array.isArray(xt==null?void 0:xt.amount)?xt.amount.map(Et=>lt.Coin.fromJSON(Et)):[]}},toJSON(xt){const Et={};return xt.fromAddress!==void 0&&(Et.fromAddress=xt.fromAddress),xt.toAddress!==void 0&&(Et.toAddress=xt.toAddress),xt.amount?Et.amount=xt.amount.map(Bt=>Bt?lt.Coin.toJSON(Bt):void 0):Et.amount=[],Et},fromPartial(xt){var Bt;const Et=kt();return Et.fromAddress=xt.fromAddress??"",Et.toAddress=xt.toAddress??"",Et.amount=((Bt=xt.amount)==null?void 0:Bt.map(Tt=>lt.Coin.fromPartial(Tt)))||[],Et}};function Pt(){return{}}d.MsgSendResponse={encode(xt,Et=mt.Writer.create()){return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Pt();for(;Bt.pos>>3){default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{}},toJSON(xt){return{}},fromPartial(xt){return Pt()}};function Jt(){return{inputs:[],outputs:[]}}d.MsgMultiSend={encode(xt,Et=mt.Writer.create()){for(const Bt of xt.inputs)ht.Input.encode(Bt,Et.uint32(10).fork()).ldelim();for(const Bt of xt.outputs)ht.Output.encode(Bt,Et.uint32(18).fork()).ldelim();return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Jt();for(;Bt.pos>>3){case 1:Mt.inputs.push(ht.Input.decode(Bt,Bt.uint32()));break;case 2:Mt.outputs.push(ht.Output.decode(Bt,Bt.uint32()));break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{inputs:Array.isArray(xt==null?void 0:xt.inputs)?xt.inputs.map(Et=>ht.Input.fromJSON(Et)):[],outputs:Array.isArray(xt==null?void 0:xt.outputs)?xt.outputs.map(Et=>ht.Output.fromJSON(Et)):[]}},toJSON(xt){const Et={};return xt.inputs?Et.inputs=xt.inputs.map(Bt=>Bt?ht.Input.toJSON(Bt):void 0):Et.inputs=[],xt.outputs?Et.outputs=xt.outputs.map(Bt=>Bt?ht.Output.toJSON(Bt):void 0):Et.outputs=[],Et},fromPartial(xt){var Bt,Tt;const Et=Jt();return Et.inputs=((Bt=xt.inputs)==null?void 0:Bt.map(Mt=>ht.Input.fromPartial(Mt)))||[],Et.outputs=((Tt=xt.outputs)==null?void 0:Tt.map(Mt=>ht.Output.fromPartial(Mt)))||[],Et}};function Zt(){return{}}d.MsgMultiSendResponse={encode(xt,Et=mt.Writer.create()){return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Zt();for(;Bt.pos>>3){default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{}},toJSON(xt){return{}},fromPartial(xt){return Zt()}};function Rt(){return{authority:"",params:void 0}}d.MsgUpdateParams={encode(xt,Et=mt.Writer.create()){return xt.authority!==""&&Et.uint32(10).string(xt.authority),xt.params!==void 0&&ht.Params.encode(xt.params,Et.uint32(18).fork()).ldelim(),Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Rt();for(;Bt.pos>>3){case 1:Mt.authority=Bt.string();break;case 2:Mt.params=ht.Params.decode(Bt,Bt.uint32());break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{authority:(0,vt.isSet)(xt.authority)?String(xt.authority):"",params:(0,vt.isSet)(xt.params)?ht.Params.fromJSON(xt.params):void 0}},toJSON(xt){const Et={};return xt.authority!==void 0&&(Et.authority=xt.authority),xt.params!==void 0&&(Et.params=xt.params?ht.Params.toJSON(xt.params):void 0),Et},fromPartial(xt){const Et=Rt();return Et.authority=xt.authority??"",Et.params=xt.params!==void 0&&xt.params!==null?ht.Params.fromPartial(xt.params):void 0,Et}};function nn(){return{}}d.MsgUpdateParamsResponse={encode(xt,Et=mt.Writer.create()){return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=nn();for(;Bt.pos>>3){default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{}},toJSON(xt){return{}},fromPartial(xt){return nn()}};function Qt(){return{authority:"",sendEnabled:[],useDefaultFor:[]}}d.MsgSetSendEnabled={encode(xt,Et=mt.Writer.create()){xt.authority!==""&&Et.uint32(10).string(xt.authority);for(const Bt of xt.sendEnabled)ht.SendEnabled.encode(Bt,Et.uint32(18).fork()).ldelim();for(const Bt of xt.useDefaultFor)Et.uint32(26).string(Bt);return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Qt();for(;Bt.pos>>3){case 1:Mt.authority=Bt.string();break;case 2:Mt.sendEnabled.push(ht.SendEnabled.decode(Bt,Bt.uint32()));break;case 3:Mt.useDefaultFor.push(Bt.string());break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{authority:(0,vt.isSet)(xt.authority)?String(xt.authority):"",sendEnabled:Array.isArray(xt==null?void 0:xt.sendEnabled)?xt.sendEnabled.map(Et=>ht.SendEnabled.fromJSON(Et)):[],useDefaultFor:Array.isArray(xt==null?void 0:xt.useDefaultFor)?xt.useDefaultFor.map(Et=>String(Et)):[]}},toJSON(xt){const Et={};return xt.authority!==void 0&&(Et.authority=xt.authority),xt.sendEnabled?Et.sendEnabled=xt.sendEnabled.map(Bt=>Bt?ht.SendEnabled.toJSON(Bt):void 0):Et.sendEnabled=[],xt.useDefaultFor?Et.useDefaultFor=xt.useDefaultFor.map(Bt=>Bt):Et.useDefaultFor=[],Et},fromPartial(xt){var Bt,Tt;const Et=Qt();return Et.authority=xt.authority??"",Et.sendEnabled=((Bt=xt.sendEnabled)==null?void 0:Bt.map(Mt=>ht.SendEnabled.fromPartial(Mt)))||[],Et.useDefaultFor=((Tt=xt.useDefaultFor)==null?void 0:Tt.map(Mt=>Mt))||[],Et}};function wt(){return{}}d.MsgSetSendEnabledResponse={encode(xt,Et=mt.Writer.create()){return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=wt();for(;Bt.pos>>3){default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{}},toJSON(xt){return{}},fromPartial(xt){return wt()}};class Nt{constructor(Et){this.rpc=Et,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.SetSendEnabled=this.SetSendEnabled.bind(this)}Send(Et){const Bt=d.MsgSend.encode(Et).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",Bt).then(Mt=>d.MsgSendResponse.decode(new mt.Reader(Mt)))}MultiSend(Et){const Bt=d.MsgMultiSend.encode(Et).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",Bt).then(Mt=>d.MsgMultiSendResponse.decode(new mt.Reader(Mt)))}UpdateParams(Et){const Bt=d.MsgUpdateParams.encode(Et).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","UpdateParams",Bt).then(Mt=>d.MsgUpdateParamsResponse.decode(new mt.Reader(Mt)))}SetSendEnabled(Et){const Bt=d.MsgSetSendEnabled.encode(Et).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","SetSendEnabled",Bt).then(Mt=>d.MsgSetSendEnabledResponse.decode(new mt.Reader(Mt)))}}d.MsgClientImpl=Nt})(tx$q);Object.defineProperty(registry,"__esModule",{value:!0});registry.Registry=registry.isTxBodyEncodeObject=registry.isPbjsGeneratedType=registry.isTsProtoGeneratedType=void 0;const tx_1$f=tx$q,coin_1$2=coin$3,tx_2$5=tx$r,any_1$3=any$1;function isTsProtoGeneratedType(d){return typeof d.fromPartial=="function"}registry.isTsProtoGeneratedType=isTsProtoGeneratedType;function isPbjsGeneratedType(d){return!isTsProtoGeneratedType(d)}registry.isPbjsGeneratedType=isPbjsGeneratedType;const defaultTypeUrls={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};function isTxBodyEncodeObject(d){return d.typeUrl==="/cosmos.tx.v1beta1.TxBody"}registry.isTxBodyEncodeObject=isTxBodyEncodeObject;class Registry{constructor(b){const{cosmosCoin:dt,cosmosMsgSend:ct}=defaultTypeUrls;this.types=b?new Map([...b]):new Map([[dt,coin_1$2.Coin],[ct,tx_1$f.MsgSend]])}register(b,dt){this.types.set(b,dt)}lookupType(b){return this.types.get(b)}lookupTypeWithError(b){const dt=this.lookupType(b);if(!dt)throw new Error(`Unregistered type url: ${b}`);return dt}encode(b){const{value:dt,typeUrl:ct}=b;if(isTxBodyEncodeObject(b))return this.encodeTxBody(dt);const lt=this.lookupTypeWithError(ct),ht=isTsProtoGeneratedType(lt)?lt.fromPartial(dt):lt.create(dt);return lt.encode(ht).finish()}encodeAsAny(b){const dt=this.encode(b);return any_1$3.Any.fromPartial({typeUrl:b.typeUrl,value:dt})}encodeTxBody(b){const dt=b.messages.map(lt=>this.encodeAsAny(lt)),ct=tx_2$5.TxBody.fromPartial({...b,messages:dt});return tx_2$5.TxBody.encode(ct).finish()}decode({typeUrl:b,value:dt}){if(b===defaultTypeUrls.cosmosTxBody)return this.decodeTxBody(dt);const lt=this.lookupTypeWithError(b).decode(dt);return Object.entries(lt).forEach(([ht,mt])=>{typeof Buffer$1<"u"&&typeof Buffer$1.isBuffer<"u"&&Buffer$1.isBuffer(mt)&&(lt[ht]=Uint8Array.from(mt))}),lt}decodeTxBody(b){const dt=tx_2$5.TxBody.decode(b);return{...dt,messages:dt.messages.map(({typeUrl:ct,value:lt})=>{if(!ct)throw new Error("Missing type_url in Any");if(!lt)throw new Error("Missing value in Any");return this.decode({typeUrl:ct,value:lt})})}}}registry.Registry=Registry;var signer={};Object.defineProperty(signer,"__esModule",{value:!0});signer.isOfflineDirectSigner=void 0;function isOfflineDirectSigner(d){return d.signDirect!==void 0}signer.isOfflineDirectSigner=isOfflineDirectSigner;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.coins=d.coin=d.executeKdf=d.makeSignDoc=d.makeSignBytes=d.makeAuthInfoBytes=d.isOfflineDirectSigner=d.Registry=d.isTxBodyEncodeObject=d.isTsProtoGeneratedType=d.isPbjsGeneratedType=d.encodePubkey=d.decodePubkey=d.anyToSinglePubkey=d.makeCosmoshubPath=d.DirectSecp256k1Wallet=d.extractKdfConfiguration=d.DirectSecp256k1HdWallet=d.decodeTxRaw=d.parseCoins=void 0;var b=coins$2;Object.defineProperty(d,"parseCoins",{enumerable:!0,get:function(){return b.parseCoins}});var dt=decode$1;Object.defineProperty(d,"decodeTxRaw",{enumerable:!0,get:function(){return dt.decodeTxRaw}});var ct=directsecp256k1hdwallet;Object.defineProperty(d,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return ct.DirectSecp256k1HdWallet}}),Object.defineProperty(d,"extractKdfConfiguration",{enumerable:!0,get:function(){return ct.extractKdfConfiguration}});var lt=directsecp256k1wallet;Object.defineProperty(d,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return lt.DirectSecp256k1Wallet}});var ht=paths;Object.defineProperty(d,"makeCosmoshubPath",{enumerable:!0,get:function(){return ht.makeCosmoshubPath}});var mt=pubkey;Object.defineProperty(d,"anyToSinglePubkey",{enumerable:!0,get:function(){return mt.anyToSinglePubkey}}),Object.defineProperty(d,"decodePubkey",{enumerable:!0,get:function(){return mt.decodePubkey}}),Object.defineProperty(d,"encodePubkey",{enumerable:!0,get:function(){return mt.encodePubkey}});var vt=registry;Object.defineProperty(d,"isPbjsGeneratedType",{enumerable:!0,get:function(){return vt.isPbjsGeneratedType}}),Object.defineProperty(d,"isTsProtoGeneratedType",{enumerable:!0,get:function(){return vt.isTsProtoGeneratedType}}),Object.defineProperty(d,"isTxBodyEncodeObject",{enumerable:!0,get:function(){return vt.isTxBodyEncodeObject}}),Object.defineProperty(d,"Registry",{enumerable:!0,get:function(){return vt.Registry}});var kt=signer;Object.defineProperty(d,"isOfflineDirectSigner",{enumerable:!0,get:function(){return kt.isOfflineDirectSigner}});var Pt=signing$1;Object.defineProperty(d,"makeAuthInfoBytes",{enumerable:!0,get:function(){return Pt.makeAuthInfoBytes}}),Object.defineProperty(d,"makeSignBytes",{enumerable:!0,get:function(){return Pt.makeSignBytes}}),Object.defineProperty(d,"makeSignDoc",{enumerable:!0,get:function(){return Pt.makeSignDoc}});var Jt=wallet;Object.defineProperty(d,"executeKdf",{enumerable:!0,get:function(){return Jt.executeKdf}});var Zt=build$c;Object.defineProperty(d,"coin",{enumerable:!0,get:function(){return Zt.coin}}),Object.defineProperty(d,"coins",{enumerable:!0,get:function(){return Zt.coins}})})(build$d);var auth={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn);var wt=Object.getOwnPropertyDescriptor(Rt,nn);(!wt||("get"in wt?!Rt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return Rt[nn]}}),Object.defineProperty(Zt,Qt,wt)}:function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn),Zt[Qt]=Rt[nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Zt,Rt){Object.defineProperty(Zt,"default",{enumerable:!0,value:Rt})}:function(Zt,Rt){Zt.default=Rt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Zt){if(Zt&&Zt.__esModule)return Zt;var Rt={};if(Zt!=null)for(var nn in Zt)nn!=="default"&&Object.prototype.hasOwnProperty.call(Zt,nn)&&b(Rt,Zt,nn);return dt(Rt,Zt),Rt};Object.defineProperty(d,"__esModule",{value:!0}),d.Params=d.ModuleCredential=d.ModuleAccount=d.BaseAccount=d.protobufPackage=void 0;const lt=any$1,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="cosmos.auth.v1beta1";function vt(){return{address:"",pubKey:void 0,accountNumber:ht.Long.UZERO,sequence:ht.Long.UZERO}}d.BaseAccount={encode(Zt,Rt=mt.Writer.create()){return Zt.address!==""&&Rt.uint32(10).string(Zt.address),Zt.pubKey!==void 0&<.Any.encode(Zt.pubKey,Rt.uint32(18).fork()).ldelim(),Zt.accountNumber.isZero()||Rt.uint32(24).uint64(Zt.accountNumber),Zt.sequence.isZero()||Rt.uint32(32).uint64(Zt.sequence),Rt},decode(Zt,Rt){const nn=Zt instanceof mt.Reader?Zt:new mt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=vt();for(;nn.pos>>3){case 1:wt.address=nn.string();break;case 2:wt.pubKey=lt.Any.decode(nn,nn.uint32());break;case 3:wt.accountNumber=nn.uint64();break;case 4:wt.sequence=nn.uint64();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{address:(0,ht.isSet)(Zt.address)?String(Zt.address):"",pubKey:(0,ht.isSet)(Zt.pubKey)?lt.Any.fromJSON(Zt.pubKey):void 0,accountNumber:(0,ht.isSet)(Zt.accountNumber)?ht.Long.fromValue(Zt.accountNumber):ht.Long.UZERO,sequence:(0,ht.isSet)(Zt.sequence)?ht.Long.fromValue(Zt.sequence):ht.Long.UZERO}},toJSON(Zt){const Rt={};return Zt.address!==void 0&&(Rt.address=Zt.address),Zt.pubKey!==void 0&&(Rt.pubKey=Zt.pubKey?lt.Any.toJSON(Zt.pubKey):void 0),Zt.accountNumber!==void 0&&(Rt.accountNumber=(Zt.accountNumber||ht.Long.UZERO).toString()),Zt.sequence!==void 0&&(Rt.sequence=(Zt.sequence||ht.Long.UZERO).toString()),Rt},fromPartial(Zt){const Rt=vt();return Rt.address=Zt.address??"",Rt.pubKey=Zt.pubKey!==void 0&&Zt.pubKey!==null?lt.Any.fromPartial(Zt.pubKey):void 0,Rt.accountNumber=Zt.accountNumber!==void 0&&Zt.accountNumber!==null?ht.Long.fromValue(Zt.accountNumber):ht.Long.UZERO,Rt.sequence=Zt.sequence!==void 0&&Zt.sequence!==null?ht.Long.fromValue(Zt.sequence):ht.Long.UZERO,Rt}};function kt(){return{baseAccount:void 0,name:"",permissions:[]}}d.ModuleAccount={encode(Zt,Rt=mt.Writer.create()){Zt.baseAccount!==void 0&&d.BaseAccount.encode(Zt.baseAccount,Rt.uint32(10).fork()).ldelim(),Zt.name!==""&&Rt.uint32(18).string(Zt.name);for(const nn of Zt.permissions)Rt.uint32(26).string(nn);return Rt},decode(Zt,Rt){const nn=Zt instanceof mt.Reader?Zt:new mt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=kt();for(;nn.pos>>3){case 1:wt.baseAccount=d.BaseAccount.decode(nn,nn.uint32());break;case 2:wt.name=nn.string();break;case 3:wt.permissions.push(nn.string());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{baseAccount:(0,ht.isSet)(Zt.baseAccount)?d.BaseAccount.fromJSON(Zt.baseAccount):void 0,name:(0,ht.isSet)(Zt.name)?String(Zt.name):"",permissions:Array.isArray(Zt==null?void 0:Zt.permissions)?Zt.permissions.map(Rt=>String(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.baseAccount!==void 0&&(Rt.baseAccount=Zt.baseAccount?d.BaseAccount.toJSON(Zt.baseAccount):void 0),Zt.name!==void 0&&(Rt.name=Zt.name),Zt.permissions?Rt.permissions=Zt.permissions.map(nn=>nn):Rt.permissions=[],Rt},fromPartial(Zt){var nn;const Rt=kt();return Rt.baseAccount=Zt.baseAccount!==void 0&&Zt.baseAccount!==null?d.BaseAccount.fromPartial(Zt.baseAccount):void 0,Rt.name=Zt.name??"",Rt.permissions=((nn=Zt.permissions)==null?void 0:nn.map(Qt=>Qt))||[],Rt}};function Pt(){return{moduleName:"",derivationKeys:[]}}d.ModuleCredential={encode(Zt,Rt=mt.Writer.create()){Zt.moduleName!==""&&Rt.uint32(10).string(Zt.moduleName);for(const nn of Zt.derivationKeys)Rt.uint32(18).bytes(nn);return Rt},decode(Zt,Rt){const nn=Zt instanceof mt.Reader?Zt:new mt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Pt();for(;nn.pos>>3){case 1:wt.moduleName=nn.string();break;case 2:wt.derivationKeys.push(nn.bytes());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{moduleName:(0,ht.isSet)(Zt.moduleName)?String(Zt.moduleName):"",derivationKeys:Array.isArray(Zt==null?void 0:Zt.derivationKeys)?Zt.derivationKeys.map(Rt=>(0,ht.bytesFromBase64)(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.moduleName!==void 0&&(Rt.moduleName=Zt.moduleName),Zt.derivationKeys?Rt.derivationKeys=Zt.derivationKeys.map(nn=>(0,ht.base64FromBytes)(nn!==void 0?nn:new Uint8Array)):Rt.derivationKeys=[],Rt},fromPartial(Zt){var nn;const Rt=Pt();return Rt.moduleName=Zt.moduleName??"",Rt.derivationKeys=((nn=Zt.derivationKeys)==null?void 0:nn.map(Qt=>Qt))||[],Rt}};function Jt(){return{maxMemoCharacters:ht.Long.UZERO,txSigLimit:ht.Long.UZERO,txSizeCostPerByte:ht.Long.UZERO,sigVerifyCostEd25519:ht.Long.UZERO,sigVerifyCostSecp256k1:ht.Long.UZERO}}d.Params={encode(Zt,Rt=mt.Writer.create()){return Zt.maxMemoCharacters.isZero()||Rt.uint32(8).uint64(Zt.maxMemoCharacters),Zt.txSigLimit.isZero()||Rt.uint32(16).uint64(Zt.txSigLimit),Zt.txSizeCostPerByte.isZero()||Rt.uint32(24).uint64(Zt.txSizeCostPerByte),Zt.sigVerifyCostEd25519.isZero()||Rt.uint32(32).uint64(Zt.sigVerifyCostEd25519),Zt.sigVerifyCostSecp256k1.isZero()||Rt.uint32(40).uint64(Zt.sigVerifyCostSecp256k1),Rt},decode(Zt,Rt){const nn=Zt instanceof mt.Reader?Zt:new mt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Jt();for(;nn.pos>>3){case 1:wt.maxMemoCharacters=nn.uint64();break;case 2:wt.txSigLimit=nn.uint64();break;case 3:wt.txSizeCostPerByte=nn.uint64();break;case 4:wt.sigVerifyCostEd25519=nn.uint64();break;case 5:wt.sigVerifyCostSecp256k1=nn.uint64();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{maxMemoCharacters:(0,ht.isSet)(Zt.maxMemoCharacters)?ht.Long.fromValue(Zt.maxMemoCharacters):ht.Long.UZERO,txSigLimit:(0,ht.isSet)(Zt.txSigLimit)?ht.Long.fromValue(Zt.txSigLimit):ht.Long.UZERO,txSizeCostPerByte:(0,ht.isSet)(Zt.txSizeCostPerByte)?ht.Long.fromValue(Zt.txSizeCostPerByte):ht.Long.UZERO,sigVerifyCostEd25519:(0,ht.isSet)(Zt.sigVerifyCostEd25519)?ht.Long.fromValue(Zt.sigVerifyCostEd25519):ht.Long.UZERO,sigVerifyCostSecp256k1:(0,ht.isSet)(Zt.sigVerifyCostSecp256k1)?ht.Long.fromValue(Zt.sigVerifyCostSecp256k1):ht.Long.UZERO}},toJSON(Zt){const Rt={};return Zt.maxMemoCharacters!==void 0&&(Rt.maxMemoCharacters=(Zt.maxMemoCharacters||ht.Long.UZERO).toString()),Zt.txSigLimit!==void 0&&(Rt.txSigLimit=(Zt.txSigLimit||ht.Long.UZERO).toString()),Zt.txSizeCostPerByte!==void 0&&(Rt.txSizeCostPerByte=(Zt.txSizeCostPerByte||ht.Long.UZERO).toString()),Zt.sigVerifyCostEd25519!==void 0&&(Rt.sigVerifyCostEd25519=(Zt.sigVerifyCostEd25519||ht.Long.UZERO).toString()),Zt.sigVerifyCostSecp256k1!==void 0&&(Rt.sigVerifyCostSecp256k1=(Zt.sigVerifyCostSecp256k1||ht.Long.UZERO).toString()),Rt},fromPartial(Zt){const Rt=Jt();return Rt.maxMemoCharacters=Zt.maxMemoCharacters!==void 0&&Zt.maxMemoCharacters!==null?ht.Long.fromValue(Zt.maxMemoCharacters):ht.Long.UZERO,Rt.txSigLimit=Zt.txSigLimit!==void 0&&Zt.txSigLimit!==null?ht.Long.fromValue(Zt.txSigLimit):ht.Long.UZERO,Rt.txSizeCostPerByte=Zt.txSizeCostPerByte!==void 0&&Zt.txSizeCostPerByte!==null?ht.Long.fromValue(Zt.txSizeCostPerByte):ht.Long.UZERO,Rt.sigVerifyCostEd25519=Zt.sigVerifyCostEd25519!==void 0&&Zt.sigVerifyCostEd25519!==null?ht.Long.fromValue(Zt.sigVerifyCostEd25519):ht.Long.UZERO,Rt.sigVerifyCostSecp256k1=Zt.sigVerifyCostSecp256k1!==void 0&&Zt.sigVerifyCostSecp256k1!==null?ht.Long.fromValue(Zt.sigVerifyCostSecp256k1):ht.Long.UZERO,Rt}}})(auth);var vesting={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.PermanentLockedAccount=d.PeriodicVestingAccount=d.Period=d.DelayedVestingAccount=d.ContinuousVestingAccount=d.BaseVestingAccount=d.protobufPackage=void 0;const lt=auth,ht=coin$3,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.vesting.v1beta1";function kt(){return{baseAccount:void 0,originalVesting:[],delegatedFree:[],delegatedVesting:[],endTime:mt.Long.ZERO}}d.BaseVestingAccount={encode(Qt,wt=vt.Writer.create()){Qt.baseAccount!==void 0&<.BaseAccount.encode(Qt.baseAccount,wt.uint32(10).fork()).ldelim();for(const Nt of Qt.originalVesting)ht.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();for(const Nt of Qt.delegatedFree)ht.Coin.encode(Nt,wt.uint32(26).fork()).ldelim();for(const Nt of Qt.delegatedVesting)ht.Coin.encode(Nt,wt.uint32(34).fork()).ldelim();return Qt.endTime.isZero()||wt.uint32(40).int64(Qt.endTime),wt},decode(Qt,wt){const Nt=Qt instanceof vt.Reader?Qt:new vt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=kt();for(;Nt.pos>>3){case 1:Et.baseAccount=lt.BaseAccount.decode(Nt,Nt.uint32());break;case 2:Et.originalVesting.push(ht.Coin.decode(Nt,Nt.uint32()));break;case 3:Et.delegatedFree.push(ht.Coin.decode(Nt,Nt.uint32()));break;case 4:Et.delegatedVesting.push(ht.Coin.decode(Nt,Nt.uint32()));break;case 5:Et.endTime=Nt.int64();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{baseAccount:(0,mt.isSet)(Qt.baseAccount)?lt.BaseAccount.fromJSON(Qt.baseAccount):void 0,originalVesting:Array.isArray(Qt==null?void 0:Qt.originalVesting)?Qt.originalVesting.map(wt=>ht.Coin.fromJSON(wt)):[],delegatedFree:Array.isArray(Qt==null?void 0:Qt.delegatedFree)?Qt.delegatedFree.map(wt=>ht.Coin.fromJSON(wt)):[],delegatedVesting:Array.isArray(Qt==null?void 0:Qt.delegatedVesting)?Qt.delegatedVesting.map(wt=>ht.Coin.fromJSON(wt)):[],endTime:(0,mt.isSet)(Qt.endTime)?mt.Long.fromValue(Qt.endTime):mt.Long.ZERO}},toJSON(Qt){const wt={};return Qt.baseAccount!==void 0&&(wt.baseAccount=Qt.baseAccount?lt.BaseAccount.toJSON(Qt.baseAccount):void 0),Qt.originalVesting?wt.originalVesting=Qt.originalVesting.map(Nt=>Nt?ht.Coin.toJSON(Nt):void 0):wt.originalVesting=[],Qt.delegatedFree?wt.delegatedFree=Qt.delegatedFree.map(Nt=>Nt?ht.Coin.toJSON(Nt):void 0):wt.delegatedFree=[],Qt.delegatedVesting?wt.delegatedVesting=Qt.delegatedVesting.map(Nt=>Nt?ht.Coin.toJSON(Nt):void 0):wt.delegatedVesting=[],Qt.endTime!==void 0&&(wt.endTime=(Qt.endTime||mt.Long.ZERO).toString()),wt},fromPartial(Qt){var Nt,xt,Et;const wt=kt();return wt.baseAccount=Qt.baseAccount!==void 0&&Qt.baseAccount!==null?lt.BaseAccount.fromPartial(Qt.baseAccount):void 0,wt.originalVesting=((Nt=Qt.originalVesting)==null?void 0:Nt.map(Bt=>ht.Coin.fromPartial(Bt)))||[],wt.delegatedFree=((xt=Qt.delegatedFree)==null?void 0:xt.map(Bt=>ht.Coin.fromPartial(Bt)))||[],wt.delegatedVesting=((Et=Qt.delegatedVesting)==null?void 0:Et.map(Bt=>ht.Coin.fromPartial(Bt)))||[],wt.endTime=Qt.endTime!==void 0&&Qt.endTime!==null?mt.Long.fromValue(Qt.endTime):mt.Long.ZERO,wt}};function Pt(){return{baseVestingAccount:void 0,startTime:mt.Long.ZERO}}d.ContinuousVestingAccount={encode(Qt,wt=vt.Writer.create()){return Qt.baseVestingAccount!==void 0&&d.BaseVestingAccount.encode(Qt.baseVestingAccount,wt.uint32(10).fork()).ldelim(),Qt.startTime.isZero()||wt.uint32(16).int64(Qt.startTime),wt},decode(Qt,wt){const Nt=Qt instanceof vt.Reader?Qt:new vt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Pt();for(;Nt.pos>>3){case 1:Et.baseVestingAccount=d.BaseVestingAccount.decode(Nt,Nt.uint32());break;case 2:Et.startTime=Nt.int64();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{baseVestingAccount:(0,mt.isSet)(Qt.baseVestingAccount)?d.BaseVestingAccount.fromJSON(Qt.baseVestingAccount):void 0,startTime:(0,mt.isSet)(Qt.startTime)?mt.Long.fromValue(Qt.startTime):mt.Long.ZERO}},toJSON(Qt){const wt={};return Qt.baseVestingAccount!==void 0&&(wt.baseVestingAccount=Qt.baseVestingAccount?d.BaseVestingAccount.toJSON(Qt.baseVestingAccount):void 0),Qt.startTime!==void 0&&(wt.startTime=(Qt.startTime||mt.Long.ZERO).toString()),wt},fromPartial(Qt){const wt=Pt();return wt.baseVestingAccount=Qt.baseVestingAccount!==void 0&&Qt.baseVestingAccount!==null?d.BaseVestingAccount.fromPartial(Qt.baseVestingAccount):void 0,wt.startTime=Qt.startTime!==void 0&&Qt.startTime!==null?mt.Long.fromValue(Qt.startTime):mt.Long.ZERO,wt}};function Jt(){return{baseVestingAccount:void 0}}d.DelayedVestingAccount={encode(Qt,wt=vt.Writer.create()){return Qt.baseVestingAccount!==void 0&&d.BaseVestingAccount.encode(Qt.baseVestingAccount,wt.uint32(10).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof vt.Reader?Qt:new vt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Jt();for(;Nt.pos>>3){case 1:Et.baseVestingAccount=d.BaseVestingAccount.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{baseVestingAccount:(0,mt.isSet)(Qt.baseVestingAccount)?d.BaseVestingAccount.fromJSON(Qt.baseVestingAccount):void 0}},toJSON(Qt){const wt={};return Qt.baseVestingAccount!==void 0&&(wt.baseVestingAccount=Qt.baseVestingAccount?d.BaseVestingAccount.toJSON(Qt.baseVestingAccount):void 0),wt},fromPartial(Qt){const wt=Jt();return wt.baseVestingAccount=Qt.baseVestingAccount!==void 0&&Qt.baseVestingAccount!==null?d.BaseVestingAccount.fromPartial(Qt.baseVestingAccount):void 0,wt}};function Zt(){return{length:mt.Long.ZERO,amount:[]}}d.Period={encode(Qt,wt=vt.Writer.create()){Qt.length.isZero()||wt.uint32(8).int64(Qt.length);for(const Nt of Qt.amount)ht.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof vt.Reader?Qt:new vt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Zt();for(;Nt.pos>>3){case 1:Et.length=Nt.int64();break;case 2:Et.amount.push(ht.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{length:(0,mt.isSet)(Qt.length)?mt.Long.fromValue(Qt.length):mt.Long.ZERO,amount:Array.isArray(Qt==null?void 0:Qt.amount)?Qt.amount.map(wt=>ht.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.length!==void 0&&(wt.length=(Qt.length||mt.Long.ZERO).toString()),Qt.amount?wt.amount=Qt.amount.map(Nt=>Nt?ht.Coin.toJSON(Nt):void 0):wt.amount=[],wt},fromPartial(Qt){var Nt;const wt=Zt();return wt.length=Qt.length!==void 0&&Qt.length!==null?mt.Long.fromValue(Qt.length):mt.Long.ZERO,wt.amount=((Nt=Qt.amount)==null?void 0:Nt.map(xt=>ht.Coin.fromPartial(xt)))||[],wt}};function Rt(){return{baseVestingAccount:void 0,startTime:mt.Long.ZERO,vestingPeriods:[]}}d.PeriodicVestingAccount={encode(Qt,wt=vt.Writer.create()){Qt.baseVestingAccount!==void 0&&d.BaseVestingAccount.encode(Qt.baseVestingAccount,wt.uint32(10).fork()).ldelim(),Qt.startTime.isZero()||wt.uint32(16).int64(Qt.startTime);for(const Nt of Qt.vestingPeriods)d.Period.encode(Nt,wt.uint32(26).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof vt.Reader?Qt:new vt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Rt();for(;Nt.pos>>3){case 1:Et.baseVestingAccount=d.BaseVestingAccount.decode(Nt,Nt.uint32());break;case 2:Et.startTime=Nt.int64();break;case 3:Et.vestingPeriods.push(d.Period.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{baseVestingAccount:(0,mt.isSet)(Qt.baseVestingAccount)?d.BaseVestingAccount.fromJSON(Qt.baseVestingAccount):void 0,startTime:(0,mt.isSet)(Qt.startTime)?mt.Long.fromValue(Qt.startTime):mt.Long.ZERO,vestingPeriods:Array.isArray(Qt==null?void 0:Qt.vestingPeriods)?Qt.vestingPeriods.map(wt=>d.Period.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.baseVestingAccount!==void 0&&(wt.baseVestingAccount=Qt.baseVestingAccount?d.BaseVestingAccount.toJSON(Qt.baseVestingAccount):void 0),Qt.startTime!==void 0&&(wt.startTime=(Qt.startTime||mt.Long.ZERO).toString()),Qt.vestingPeriods?wt.vestingPeriods=Qt.vestingPeriods.map(Nt=>Nt?d.Period.toJSON(Nt):void 0):wt.vestingPeriods=[],wt},fromPartial(Qt){var Nt;const wt=Rt();return wt.baseVestingAccount=Qt.baseVestingAccount!==void 0&&Qt.baseVestingAccount!==null?d.BaseVestingAccount.fromPartial(Qt.baseVestingAccount):void 0,wt.startTime=Qt.startTime!==void 0&&Qt.startTime!==null?mt.Long.fromValue(Qt.startTime):mt.Long.ZERO,wt.vestingPeriods=((Nt=Qt.vestingPeriods)==null?void 0:Nt.map(xt=>d.Period.fromPartial(xt)))||[],wt}};function nn(){return{baseVestingAccount:void 0}}d.PermanentLockedAccount={encode(Qt,wt=vt.Writer.create()){return Qt.baseVestingAccount!==void 0&&d.BaseVestingAccount.encode(Qt.baseVestingAccount,wt.uint32(10).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof vt.Reader?Qt:new vt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=nn();for(;Nt.pos>>3){case 1:Et.baseVestingAccount=d.BaseVestingAccount.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{baseVestingAccount:(0,mt.isSet)(Qt.baseVestingAccount)?d.BaseVestingAccount.fromJSON(Qt.baseVestingAccount):void 0}},toJSON(Qt){const wt={};return Qt.baseVestingAccount!==void 0&&(wt.baseVestingAccount=Qt.baseVestingAccount?d.BaseVestingAccount.toJSON(Qt.baseVestingAccount):void 0),wt},fromPartial(Qt){const wt=nn();return wt.baseVestingAccount=Qt.baseVestingAccount!==void 0&&Qt.baseVestingAccount!==null?d.BaseVestingAccount.fromPartial(Qt.baseVestingAccount):void 0,wt}}})(vesting);Object.defineProperty(accounts,"__esModule",{value:!0});accounts.accountFromAny=void 0;const math_1$d=build$f,proto_signing_1$5=build$d,utils_1$e=build$9,auth_1=auth,vesting_1=vesting;function uint64FromProto(d){return math_1$d.Uint64.fromString(d.toString())}function accountFromBaseAccount(d){const{address:b,pubKey:dt,accountNumber:ct,sequence:lt}=d,ht=dt?(0,proto_signing_1$5.decodePubkey)(dt):null;return{address:b,pubkey:ht,accountNumber:uint64FromProto(ct).toNumber(),sequence:uint64FromProto(lt).toNumber()}}function accountFromAny(d){var ct,lt,ht,mt,vt,kt,Pt;const{typeUrl:b,value:dt}=d;switch(b){case"/cosmos.auth.v1beta1.BaseAccount":return accountFromBaseAccount(auth_1.BaseAccount.decode(dt));case"/cosmos.auth.v1beta1.ModuleAccount":{const Jt=auth_1.ModuleAccount.decode(dt).baseAccount;return(0,utils_1$e.assert)(Jt),accountFromBaseAccount(Jt)}case"/cosmos.vesting.v1beta1.BaseVestingAccount":{const Jt=(ct=vesting_1.BaseVestingAccount.decode(dt))==null?void 0:ct.baseAccount;return(0,utils_1$e.assert)(Jt),accountFromBaseAccount(Jt)}case"/cosmos.vesting.v1beta1.ContinuousVestingAccount":{const Jt=(ht=(lt=vesting_1.ContinuousVestingAccount.decode(dt))==null?void 0:lt.baseVestingAccount)==null?void 0:ht.baseAccount;return(0,utils_1$e.assert)(Jt),accountFromBaseAccount(Jt)}case"/cosmos.vesting.v1beta1.DelayedVestingAccount":{const Jt=(vt=(mt=vesting_1.DelayedVestingAccount.decode(dt))==null?void 0:mt.baseVestingAccount)==null?void 0:vt.baseAccount;return(0,utils_1$e.assert)(Jt),accountFromBaseAccount(Jt)}case"/cosmos.vesting.v1beta1.PeriodicVestingAccount":{const Jt=(Pt=(kt=vesting_1.PeriodicVestingAccount.decode(dt))==null?void 0:kt.baseVestingAccount)==null?void 0:Pt.baseAccount;return(0,utils_1$e.assert)(Jt),accountFromBaseAccount(Jt)}default:throw new Error(`Unsupported type: '${b}'`)}}accounts.accountFromAny=accountFromAny;var aminotypes={};Object.defineProperty(aminotypes,"__esModule",{value:!0});aminotypes.AminoTypes=void 0;class AminoTypes{constructor(b){this.register=b}toAmino({typeUrl:b,value:dt}){const ct=this.register[b];if(!ct)throw new Error(`Type URL '${b}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);return{type:ct.aminoType,value:ct.toAmino(dt)}}fromAmino({type:b,value:dt}){const ct=Object.entries(this.register).filter(([lt,{aminoType:ht}])=>ht===b);switch(ct.length){case 0:throw new Error(`Amino type identifier '${b}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);case 1:{const[lt,ht]=ct[0];return{typeUrl:lt,value:ht.fromAmino(dt)}}default:throw new Error(`Multiple types are registered with Amino type identifier '${b}': '`+ct.map(([lt,ht])=>lt).sort().join("', '")+"'. Thus fromAmino cannot be performed.")}}}aminotypes.AminoTypes=AminoTypes;var events={},build$6={},ascii$1={};Object.defineProperty(ascii$1,"__esModule",{value:!0});ascii$1.fromAscii=ascii$1.toAscii=void 0;function toAscii$1(d){const b=dt=>dt.split("").map(ct=>{const lt=ct.charCodeAt(0);if(lt<32||lt>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+lt);return lt});return Uint8Array.from(b(d))}ascii$1.toAscii=toAscii$1;function fromAscii$1(d){return(dt=>dt.map(ct=>{if(ct<32||ct>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+ct);return String.fromCharCode(ct)}))(Array.from(d)).join("")}ascii$1.fromAscii=fromAscii$1;var base64$3={},__createBinding$s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$s=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$s=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$s(b,d,dt);return __setModuleDefault$s(b,d),b};Object.defineProperty(base64$3,"__esModule",{value:!0});base64$3.fromBase64=base64$3.toBase64=void 0;const base64js$1=__importStar$s(base64Js);function toBase64$1(d){return base64js$1.fromByteArray(d)}base64$3.toBase64=toBase64$1;function fromBase64$1(d){if(!d.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return base64js$1.toByteArray(d)}base64$3.fromBase64=fromBase64$1;var bech32$3={},__createBinding$r=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$r=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$r=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$r(b,d,dt);return __setModuleDefault$r(b,d),b};Object.defineProperty(bech32$3,"__esModule",{value:!0});bech32$3.normalizeBech32=bech32$3.fromBech32=bech32$3.toBech32=void 0;const bech32$2=__importStar$r(bech32$d);function toBech32$1(d,b,dt){return bech32$2.encode(d,bech32$2.toWords(b),dt)}bech32$3.toBech32=toBech32$1;function fromBech32$1(d,b=1/0){const dt=bech32$2.decode(d,b);return{prefix:dt.prefix,data:new Uint8Array(bech32$2.fromWords(dt.words))}}bech32$3.fromBech32=fromBech32$1;function normalizeBech32$1(d){const{prefix:b,data:dt}=fromBech32$1(d);return toBech32$1(b,dt)}bech32$3.normalizeBech32=normalizeBech32$1;var hex$1={};Object.defineProperty(hex$1,"__esModule",{value:!0});hex$1.fromHex=hex$1.toHex=void 0;function toHex$1(d){let b="";for(const dt of d)b+=("0"+dt.toString(16)).slice(-2);return b}hex$1.toHex=toHex$1;function fromHex$1(d){if(d.length%2!==0)throw new Error("hex string length must be a multiple of 2");const b=new Uint8Array(d.length/2);for(let dt=0;dt({key:typeof b.key=="string"?b.key:(0,encoding_1$l.fromUtf8)(b.key,!0),value:typeof b.value=="string"?b.value:(0,encoding_1$l.fromUtf8)(b.value,!0)}))}}events.fromTendermintEvent=fromTendermintEvent;var fee={};Object.defineProperty(fee,"__esModule",{value:!0});fee.calculateFee=fee.GasPrice=void 0;const math_1$c=build$f,proto_signing_1$4=build$d;function checkDenom(d){if(d.length<3||d.length>128)throw new Error("Denom must be between 3 and 128 characters")}class GasPrice{constructor(b,dt){this.amount=b,this.denom=dt}static fromString(b){const dt=b.match(/^([0-9.]+)([a-z][a-z0-9]*)$/i);if(!dt)throw new Error("Invalid gas price string");const[ct,lt,ht]=dt;checkDenom(ht);const mt=18,vt=math_1$c.Decimal.fromUserInput(lt,mt);return new GasPrice(vt,ht)}toString(){return this.amount.toString()+this.denom}}fee.GasPrice=GasPrice;function calculateFee(d,b){const dt=typeof b=="string"?GasPrice.fromString(b):b,{denom:ct,amount:lt}=dt,ht=lt.multiply(new math_1$c.Uint53(d)).ceil().toString();return{amount:(0,proto_signing_1$4.coins)(ht,ct),gas:d.toString()}}fee.calculateFee=calculateFee;var logs={};Object.defineProperty(logs,"__esModule",{value:!0});logs.findAttribute=logs.parseRawLog=logs.parseLogs=logs.parseLog=logs.parseEvent=logs.parseAttribute=void 0;const utils_1$d=build$9;function parseAttribute(d){if(!(0,utils_1$d.isNonNullObject)(d))throw new Error("Attribute must be a non-null object");const{key:b,value:dt}=d;if(typeof b!="string"||!b)throw new Error("Attribute's key must be a non-empty string");if(typeof dt!="string"&&typeof dt<"u")throw new Error("Attribute's value must be a string or unset");return{key:b,value:dt||""}}logs.parseAttribute=parseAttribute;function parseEvent(d){if(!(0,utils_1$d.isNonNullObject)(d))throw new Error("Event must be a non-null object");const{type:b,attributes:dt}=d;if(typeof b!="string"||b==="")throw new Error("Event type must be a non-empty string");if(!Array.isArray(dt))throw new Error("Event's attributes must be an array");return{type:b,attributes:dt.map(parseAttribute)}}logs.parseEvent=parseEvent;function parseLog(d){if(!(0,utils_1$d.isNonNullObject)(d))throw new Error("Log must be a non-null object");const{msg_index:b,log:dt,events:ct}=d;if(typeof b!="number")throw new Error("Log's msg_index must be a number");if(typeof dt!="string")throw new Error("Log's log must be a string");if(!Array.isArray(ct))throw new Error("Log's events must be an array");return{msg_index:b,log:dt,events:ct.map(parseEvent)}}logs.parseLog=parseLog;function parseLogs(d){if(!Array.isArray(d))throw new Error("Logs must be an array");return d.map(parseLog)}logs.parseLogs=parseLogs;function parseRawLog(d="[]"){const b=JSON.parse(d).map(({events:dt},ct)=>({msg_index:ct,events:dt,log:""}));return parseLogs(b)}logs.parseRawLog=parseRawLog;function findAttribute(d,b,dt){var ht;const ct=d.find(()=>!0),lt=(ht=ct==null?void 0:ct.events.find(mt=>mt.type===b))==null?void 0:ht.attributes.find(mt=>mt.key===dt);if(!lt)throw new Error(`Could not find attribute '${dt}' in first event of type '${b}' in first log.`);return lt}logs.findAttribute=findAttribute;var modules$1={},queries$c={},query$m={},pagination$3={},__createBinding$q=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$q=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$q=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$q(b,d,dt);return __setModuleDefault$q(b,d),b};Object.defineProperty(pagination$3,"__esModule",{value:!0});pagination$3.PageResponse=pagination$3.PageRequest=pagination$3.protobufPackage=void 0;const helpers_1$j=helpers$1,_m0$k=__importStar$q(minimal$4);pagination$3.protobufPackage="cosmos.base.query.v1beta1";function createBasePageRequest$2(){return{key:new Uint8Array,offset:helpers_1$j.Long.UZERO,limit:helpers_1$j.Long.UZERO,countTotal:!1,reverse:!1}}pagination$3.PageRequest={encode(d,b=_m0$k.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),d.offset.isZero()||b.uint32(16).uint64(d.offset),d.limit.isZero()||b.uint32(24).uint64(d.limit),d.countTotal===!0&&b.uint32(32).bool(d.countTotal),d.reverse===!0&&b.uint32(40).bool(d.reverse),b},decode(d,b){const dt=d instanceof _m0$k.Reader?d:new _m0$k.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageRequest$2();for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;case 2:lt.offset=dt.uint64();break;case 3:lt.limit=dt.uint64();break;case 4:lt.countTotal=dt.bool();break;case 5:lt.reverse=dt.bool();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{key:(0,helpers_1$j.isSet)(d.key)?(0,helpers_1$j.bytesFromBase64)(d.key):new Uint8Array,offset:(0,helpers_1$j.isSet)(d.offset)?helpers_1$j.Long.fromValue(d.offset):helpers_1$j.Long.UZERO,limit:(0,helpers_1$j.isSet)(d.limit)?helpers_1$j.Long.fromValue(d.limit):helpers_1$j.Long.UZERO,countTotal:(0,helpers_1$j.isSet)(d.countTotal)?!!d.countTotal:!1,reverse:(0,helpers_1$j.isSet)(d.reverse)?!!d.reverse:!1}},toJSON(d){const b={};return d.key!==void 0&&(b.key=(0,helpers_1$j.base64FromBytes)(d.key!==void 0?d.key:new Uint8Array)),d.offset!==void 0&&(b.offset=(d.offset||helpers_1$j.Long.UZERO).toString()),d.limit!==void 0&&(b.limit=(d.limit||helpers_1$j.Long.UZERO).toString()),d.countTotal!==void 0&&(b.countTotal=d.countTotal),d.reverse!==void 0&&(b.reverse=d.reverse),b},fromPartial(d){const b=createBasePageRequest$2();return b.key=d.key??new Uint8Array,b.offset=d.offset!==void 0&&d.offset!==null?helpers_1$j.Long.fromValue(d.offset):helpers_1$j.Long.UZERO,b.limit=d.limit!==void 0&&d.limit!==null?helpers_1$j.Long.fromValue(d.limit):helpers_1$j.Long.UZERO,b.countTotal=d.countTotal??!1,b.reverse=d.reverse??!1,b}};function createBasePageResponse$2(){return{nextKey:new Uint8Array,total:helpers_1$j.Long.UZERO}}pagination$3.PageResponse={encode(d,b=_m0$k.Writer.create()){return d.nextKey.length!==0&&b.uint32(10).bytes(d.nextKey),d.total.isZero()||b.uint32(16).uint64(d.total),b},decode(d,b){const dt=d instanceof _m0$k.Reader?d:new _m0$k.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageResponse$2();for(;dt.pos>>3){case 1:lt.nextKey=dt.bytes();break;case 2:lt.total=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{nextKey:(0,helpers_1$j.isSet)(d.nextKey)?(0,helpers_1$j.bytesFromBase64)(d.nextKey):new Uint8Array,total:(0,helpers_1$j.isSet)(d.total)?helpers_1$j.Long.fromValue(d.total):helpers_1$j.Long.UZERO}},toJSON(d){const b={};return d.nextKey!==void 0&&(b.nextKey=(0,helpers_1$j.base64FromBytes)(d.nextKey!==void 0?d.nextKey:new Uint8Array)),d.total!==void 0&&(b.total=(d.total||helpers_1$j.Long.UZERO).toString()),b},fromPartial(d){const b=createBasePageResponse$2();return b.nextKey=d.nextKey??new Uint8Array,b.total=d.total!==void 0&&d.total!==null?helpers_1$j.Long.fromValue(d.total):helpers_1$j.Long.UZERO,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(It,Gt,Ut,Vt){Vt===void 0&&(Vt=Ut);var qt=Object.getOwnPropertyDescriptor(Gt,Ut);(!qt||("get"in qt?!Gt.__esModule:qt.writable||qt.configurable))&&(qt={enumerable:!0,get:function(){return Gt[Ut]}}),Object.defineProperty(It,Vt,qt)}:function(It,Gt,Ut,Vt){Vt===void 0&&(Vt=Ut),It[Vt]=Gt[Ut]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(It,Gt){Object.defineProperty(It,"default",{enumerable:!0,value:Gt})}:function(It,Gt){It.default=Gt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(It){if(It&&It.__esModule)return It;var Gt={};if(It!=null)for(var Ut in It)Ut!=="default"&&Object.prototype.hasOwnProperty.call(It,Ut)&&b(Gt,It,Ut);return dt(Gt,It),Gt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryAccountInfoResponse=d.QueryAccountInfoRequest=d.QueryAccountAddressByIDResponse=d.QueryAccountAddressByIDRequest=d.AddressStringToBytesResponse=d.AddressStringToBytesRequest=d.AddressBytesToStringResponse=d.AddressBytesToStringRequest=d.Bech32PrefixResponse=d.Bech32PrefixRequest=d.QueryModuleAccountByNameResponse=d.QueryModuleAccountByNameRequest=d.QueryModuleAccountsResponse=d.QueryModuleAccountsRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryAccountResponse=d.QueryAccountRequest=d.QueryAccountsResponse=d.QueryAccountsRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=any$1,mt=auth,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="cosmos.auth.v1beta1";function Pt(){return{pagination:void 0}}d.QueryAccountsRequest={encode(It,Gt=kt.Writer.create()){return It.pagination!==void 0&<.PageRequest.encode(It.pagination,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Pt();for(;Ut.pos>>3){case 1:qt.pagination=lt.PageRequest.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{pagination:(0,vt.isSet)(It.pagination)?lt.PageRequest.fromJSON(It.pagination):void 0}},toJSON(It){const Gt={};return It.pagination!==void 0&&(Gt.pagination=It.pagination?lt.PageRequest.toJSON(It.pagination):void 0),Gt},fromPartial(It){const Gt=Pt();return Gt.pagination=It.pagination!==void 0&&It.pagination!==null?lt.PageRequest.fromPartial(It.pagination):void 0,Gt}};function Jt(){return{accounts:[],pagination:void 0}}d.QueryAccountsResponse={encode(It,Gt=kt.Writer.create()){for(const Ut of It.accounts)ht.Any.encode(Ut,Gt.uint32(10).fork()).ldelim();return It.pagination!==void 0&<.PageResponse.encode(It.pagination,Gt.uint32(18).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Jt();for(;Ut.pos>>3){case 1:qt.accounts.push(ht.Any.decode(Ut,Ut.uint32()));break;case 2:qt.pagination=lt.PageResponse.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{accounts:Array.isArray(It==null?void 0:It.accounts)?It.accounts.map(Gt=>ht.Any.fromJSON(Gt)):[],pagination:(0,vt.isSet)(It.pagination)?lt.PageResponse.fromJSON(It.pagination):void 0}},toJSON(It){const Gt={};return It.accounts?Gt.accounts=It.accounts.map(Ut=>Ut?ht.Any.toJSON(Ut):void 0):Gt.accounts=[],It.pagination!==void 0&&(Gt.pagination=It.pagination?lt.PageResponse.toJSON(It.pagination):void 0),Gt},fromPartial(It){var Ut;const Gt=Jt();return Gt.accounts=((Ut=It.accounts)==null?void 0:Ut.map(Vt=>ht.Any.fromPartial(Vt)))||[],Gt.pagination=It.pagination!==void 0&&It.pagination!==null?lt.PageResponse.fromPartial(It.pagination):void 0,Gt}};function Zt(){return{address:""}}d.QueryAccountRequest={encode(It,Gt=kt.Writer.create()){return It.address!==""&&Gt.uint32(10).string(It.address),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Zt();for(;Ut.pos>>3){case 1:qt.address=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{address:(0,vt.isSet)(It.address)?String(It.address):""}},toJSON(It){const Gt={};return It.address!==void 0&&(Gt.address=It.address),Gt},fromPartial(It){const Gt=Zt();return Gt.address=It.address??"",Gt}};function Rt(){return{account:void 0}}d.QueryAccountResponse={encode(It,Gt=kt.Writer.create()){return It.account!==void 0&&ht.Any.encode(It.account,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Rt();for(;Ut.pos>>3){case 1:qt.account=ht.Any.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{account:(0,vt.isSet)(It.account)?ht.Any.fromJSON(It.account):void 0}},toJSON(It){const Gt={};return It.account!==void 0&&(Gt.account=It.account?ht.Any.toJSON(It.account):void 0),Gt},fromPartial(It){const Gt=Rt();return Gt.account=It.account!==void 0&&It.account!==null?ht.Any.fromPartial(It.account):void 0,Gt}};function nn(){return{}}d.QueryParamsRequest={encode(It,Gt=kt.Writer.create()){return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=nn();for(;Ut.pos>>3){default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{}},toJSON(It){return{}},fromPartial(It){return nn()}};function Qt(){return{params:void 0}}d.QueryParamsResponse={encode(It,Gt=kt.Writer.create()){return It.params!==void 0&&mt.Params.encode(It.params,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Qt();for(;Ut.pos>>3){case 1:qt.params=mt.Params.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{params:(0,vt.isSet)(It.params)?mt.Params.fromJSON(It.params):void 0}},toJSON(It){const Gt={};return It.params!==void 0&&(Gt.params=It.params?mt.Params.toJSON(It.params):void 0),Gt},fromPartial(It){const Gt=Qt();return Gt.params=It.params!==void 0&&It.params!==null?mt.Params.fromPartial(It.params):void 0,Gt}};function wt(){return{}}d.QueryModuleAccountsRequest={encode(It,Gt=kt.Writer.create()){return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=wt();for(;Ut.pos>>3){default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{}},toJSON(It){return{}},fromPartial(It){return wt()}};function Nt(){return{accounts:[]}}d.QueryModuleAccountsResponse={encode(It,Gt=kt.Writer.create()){for(const Ut of It.accounts)ht.Any.encode(Ut,Gt.uint32(10).fork()).ldelim();return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Nt();for(;Ut.pos>>3){case 1:qt.accounts.push(ht.Any.decode(Ut,Ut.uint32()));break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{accounts:Array.isArray(It==null?void 0:It.accounts)?It.accounts.map(Gt=>ht.Any.fromJSON(Gt)):[]}},toJSON(It){const Gt={};return It.accounts?Gt.accounts=It.accounts.map(Ut=>Ut?ht.Any.toJSON(Ut):void 0):Gt.accounts=[],Gt},fromPartial(It){var Ut;const Gt=Nt();return Gt.accounts=((Ut=It.accounts)==null?void 0:Ut.map(Vt=>ht.Any.fromPartial(Vt)))||[],Gt}};function xt(){return{name:""}}d.QueryModuleAccountByNameRequest={encode(It,Gt=kt.Writer.create()){return It.name!==""&&Gt.uint32(10).string(It.name),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=xt();for(;Ut.pos>>3){case 1:qt.name=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{name:(0,vt.isSet)(It.name)?String(It.name):""}},toJSON(It){const Gt={};return It.name!==void 0&&(Gt.name=It.name),Gt},fromPartial(It){const Gt=xt();return Gt.name=It.name??"",Gt}};function Et(){return{account:void 0}}d.QueryModuleAccountByNameResponse={encode(It,Gt=kt.Writer.create()){return It.account!==void 0&&ht.Any.encode(It.account,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Et();for(;Ut.pos>>3){case 1:qt.account=ht.Any.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{account:(0,vt.isSet)(It.account)?ht.Any.fromJSON(It.account):void 0}},toJSON(It){const Gt={};return It.account!==void 0&&(Gt.account=It.account?ht.Any.toJSON(It.account):void 0),Gt},fromPartial(It){const Gt=Et();return Gt.account=It.account!==void 0&&It.account!==null?ht.Any.fromPartial(It.account):void 0,Gt}};function Bt(){return{}}d.Bech32PrefixRequest={encode(It,Gt=kt.Writer.create()){return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Bt();for(;Ut.pos>>3){default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{}},toJSON(It){return{}},fromPartial(It){return Bt()}};function Tt(){return{bech32Prefix:""}}d.Bech32PrefixResponse={encode(It,Gt=kt.Writer.create()){return It.bech32Prefix!==""&&Gt.uint32(10).string(It.bech32Prefix),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Tt();for(;Ut.pos>>3){case 1:qt.bech32Prefix=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{bech32Prefix:(0,vt.isSet)(It.bech32Prefix)?String(It.bech32Prefix):""}},toJSON(It){const Gt={};return It.bech32Prefix!==void 0&&(Gt.bech32Prefix=It.bech32Prefix),Gt},fromPartial(It){const Gt=Tt();return Gt.bech32Prefix=It.bech32Prefix??"",Gt}};function Mt(){return{addressBytes:new Uint8Array}}d.AddressBytesToStringRequest={encode(It,Gt=kt.Writer.create()){return It.addressBytes.length!==0&&Gt.uint32(10).bytes(It.addressBytes),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Mt();for(;Ut.pos>>3){case 1:qt.addressBytes=Ut.bytes();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{addressBytes:(0,vt.isSet)(It.addressBytes)?(0,vt.bytesFromBase64)(It.addressBytes):new Uint8Array}},toJSON(It){const Gt={};return It.addressBytes!==void 0&&(Gt.addressBytes=(0,vt.base64FromBytes)(It.addressBytes!==void 0?It.addressBytes:new Uint8Array)),Gt},fromPartial(It){const Gt=Mt();return Gt.addressBytes=It.addressBytes??new Uint8Array,Gt}};function jt(){return{addressString:""}}d.AddressBytesToStringResponse={encode(It,Gt=kt.Writer.create()){return It.addressString!==""&&Gt.uint32(10).string(It.addressString),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=jt();for(;Ut.pos>>3){case 1:qt.addressString=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{addressString:(0,vt.isSet)(It.addressString)?String(It.addressString):""}},toJSON(It){const Gt={};return It.addressString!==void 0&&(Gt.addressString=It.addressString),Gt},fromPartial(It){const Gt=jt();return Gt.addressString=It.addressString??"",Gt}};function Ht(){return{addressString:""}}d.AddressStringToBytesRequest={encode(It,Gt=kt.Writer.create()){return It.addressString!==""&&Gt.uint32(10).string(It.addressString),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Ht();for(;Ut.pos>>3){case 1:qt.addressString=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{addressString:(0,vt.isSet)(It.addressString)?String(It.addressString):""}},toJSON(It){const Gt={};return It.addressString!==void 0&&(Gt.addressString=It.addressString),Gt},fromPartial(It){const Gt=Ht();return Gt.addressString=It.addressString??"",Gt}};function an(){return{addressBytes:new Uint8Array}}d.AddressStringToBytesResponse={encode(It,Gt=kt.Writer.create()){return It.addressBytes.length!==0&&Gt.uint32(10).bytes(It.addressBytes),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=an();for(;Ut.pos>>3){case 1:qt.addressBytes=Ut.bytes();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{addressBytes:(0,vt.isSet)(It.addressBytes)?(0,vt.bytesFromBase64)(It.addressBytes):new Uint8Array}},toJSON(It){const Gt={};return It.addressBytes!==void 0&&(Gt.addressBytes=(0,vt.base64FromBytes)(It.addressBytes!==void 0?It.addressBytes:new Uint8Array)),Gt},fromPartial(It){const Gt=an();return Gt.addressBytes=It.addressBytes??new Uint8Array,Gt}};function yt(){return{id:vt.Long.ZERO,accountId:vt.Long.UZERO}}d.QueryAccountAddressByIDRequest={encode(It,Gt=kt.Writer.create()){return It.id.isZero()||Gt.uint32(8).int64(It.id),It.accountId.isZero()||Gt.uint32(16).uint64(It.accountId),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=yt();for(;Ut.pos>>3){case 1:qt.id=Ut.int64();break;case 2:qt.accountId=Ut.uint64();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{id:(0,vt.isSet)(It.id)?vt.Long.fromValue(It.id):vt.Long.ZERO,accountId:(0,vt.isSet)(It.accountId)?vt.Long.fromValue(It.accountId):vt.Long.UZERO}},toJSON(It){const Gt={};return It.id!==void 0&&(Gt.id=(It.id||vt.Long.ZERO).toString()),It.accountId!==void 0&&(Gt.accountId=(It.accountId||vt.Long.UZERO).toString()),Gt},fromPartial(It){const Gt=yt();return Gt.id=It.id!==void 0&&It.id!==null?vt.Long.fromValue(It.id):vt.Long.ZERO,Gt.accountId=It.accountId!==void 0&&It.accountId!==null?vt.Long.fromValue(It.accountId):vt.Long.UZERO,Gt}};function $t(){return{accountAddress:""}}d.QueryAccountAddressByIDResponse={encode(It,Gt=kt.Writer.create()){return It.accountAddress!==""&&Gt.uint32(10).string(It.accountAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=$t();for(;Ut.pos>>3){case 1:qt.accountAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{accountAddress:(0,vt.isSet)(It.accountAddress)?String(It.accountAddress):""}},toJSON(It){const Gt={};return It.accountAddress!==void 0&&(Gt.accountAddress=It.accountAddress),Gt},fromPartial(It){const Gt=$t();return Gt.accountAddress=It.accountAddress??"",Gt}};function Yt(){return{address:""}}d.QueryAccountInfoRequest={encode(It,Gt=kt.Writer.create()){return It.address!==""&&Gt.uint32(10).string(It.address),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Yt();for(;Ut.pos>>3){case 1:qt.address=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{address:(0,vt.isSet)(It.address)?String(It.address):""}},toJSON(It){const Gt={};return It.address!==void 0&&(Gt.address=It.address),Gt},fromPartial(It){const Gt=Yt();return Gt.address=It.address??"",Gt}};function Kt(){return{info:void 0}}d.QueryAccountInfoResponse={encode(It,Gt=kt.Writer.create()){return It.info!==void 0&&mt.BaseAccount.encode(It.info,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Kt();for(;Ut.pos>>3){case 1:qt.info=mt.BaseAccount.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{info:(0,vt.isSet)(It.info)?mt.BaseAccount.fromJSON(It.info):void 0}},toJSON(It){const Gt={};return It.info!==void 0&&(Gt.info=It.info?mt.BaseAccount.toJSON(It.info):void 0),Gt},fromPartial(It){const Gt=Kt();return Gt.info=It.info!==void 0&&It.info!==null?mt.BaseAccount.fromPartial(It.info):void 0,Gt}};class St{constructor(Gt){this.rpc=Gt,this.Accounts=this.Accounts.bind(this),this.Account=this.Account.bind(this),this.AccountAddressByID=this.AccountAddressByID.bind(this),this.Params=this.Params.bind(this),this.ModuleAccounts=this.ModuleAccounts.bind(this),this.ModuleAccountByName=this.ModuleAccountByName.bind(this),this.Bech32Prefix=this.Bech32Prefix.bind(this),this.AddressBytesToString=this.AddressBytesToString.bind(this),this.AddressStringToBytes=this.AddressStringToBytes.bind(this),this.AccountInfo=this.AccountInfo.bind(this)}Accounts(Gt={pagination:void 0}){const Ut=d.QueryAccountsRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Accounts",Ut).then(qt=>d.QueryAccountsResponse.decode(new kt.Reader(qt)))}Account(Gt){const Ut=d.QueryAccountRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Account",Ut).then(qt=>d.QueryAccountResponse.decode(new kt.Reader(qt)))}AccountAddressByID(Gt){const Ut=d.QueryAccountAddressByIDRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountAddressByID",Ut).then(qt=>d.QueryAccountAddressByIDResponse.decode(new kt.Reader(qt)))}Params(Gt={}){const Ut=d.QueryParamsRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Params",Ut).then(qt=>d.QueryParamsResponse.decode(new kt.Reader(qt)))}ModuleAccounts(Gt={}){const Ut=d.QueryModuleAccountsRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccounts",Ut).then(qt=>d.QueryModuleAccountsResponse.decode(new kt.Reader(qt)))}ModuleAccountByName(Gt){const Ut=d.QueryModuleAccountByNameRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccountByName",Ut).then(qt=>d.QueryModuleAccountByNameResponse.decode(new kt.Reader(qt)))}Bech32Prefix(Gt={}){const Ut=d.Bech32PrefixRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Bech32Prefix",Ut).then(qt=>d.Bech32PrefixResponse.decode(new kt.Reader(qt)))}AddressBytesToString(Gt){const Ut=d.AddressBytesToStringRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressBytesToString",Ut).then(qt=>d.AddressBytesToStringResponse.decode(new kt.Reader(qt)))}AddressStringToBytes(Gt){const Ut=d.AddressStringToBytesRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressStringToBytes",Ut).then(qt=>d.AddressStringToBytesResponse.decode(new kt.Reader(qt)))}AccountInfo(Gt){const Ut=d.QueryAccountInfoRequest.encode(Gt).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountInfo",Ut).then(qt=>d.QueryAccountInfoResponse.decode(new kt.Reader(qt)))}}d.QueryClientImpl=St})(query$m);var queryclient$1={},queryclient={},build$5={},$protobuf=minimal$4,$Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util,$root=$protobuf.roots.default||($protobuf.roots.default={});$root.ics23=function(){var d={};return d.HashOp=function(){var b={},dt=Object.create(b);return dt[b[0]="NO_HASH"]=0,dt[b[1]="SHA256"]=1,dt[b[2]="SHA512"]=2,dt[b[3]="KECCAK"]=3,dt[b[4]="RIPEMD160"]=4,dt[b[5]="BITCOIN"]=5,dt[b[6]="SHA512_256"]=6,dt}(),d.LengthOp=function(){var b={},dt=Object.create(b);return dt[b[0]="NO_PREFIX"]=0,dt[b[1]="VAR_PROTO"]=1,dt[b[2]="VAR_RLP"]=2,dt[b[3]="FIXED32_BIG"]=3,dt[b[4]="FIXED32_LITTLE"]=4,dt[b[5]="FIXED64_BIG"]=5,dt[b[6]="FIXED64_LITTLE"]=6,dt[b[7]="REQUIRE_32_BYTES"]=7,dt[b[8]="REQUIRE_64_BYTES"]=8,dt}(),d.ExistenceProof=function(){function b(dt){if(this.path=[],dt)for(var ct=Object.keys(dt),lt=0;lt>>3){case 1:mt.key=ct.bytes();break;case 2:mt.value=ct.bytes();break;case 3:mt.leaf=$root.ics23.LeafOp.decode(ct,ct.uint32());break;case 4:mt.path&&mt.path.length||(mt.path=[]),mt.path.push($root.ics23.InnerOp.decode(ct,ct.uint32()));break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.key!=null&&ct.hasOwnProperty("key")&&!(ct.key&&typeof ct.key.length=="number"||$util.isString(ct.key)))return"key: buffer expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&!(ct.value&&typeof ct.value.length=="number"||$util.isString(ct.value)))return"value: buffer expected";if(ct.leaf!=null&&ct.hasOwnProperty("leaf")){var lt=$root.ics23.LeafOp.verify(ct.leaf);if(lt)return"leaf."+lt}if(ct.path!=null&&ct.hasOwnProperty("path")){if(!Array.isArray(ct.path))return"path: array expected";for(var ht=0;ht>>3){case 1:mt.key=ct.bytes();break;case 2:mt.left=$root.ics23.ExistenceProof.decode(ct,ct.uint32());break;case 3:mt.right=$root.ics23.ExistenceProof.decode(ct,ct.uint32());break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.key!=null&&ct.hasOwnProperty("key")&&!(ct.key&&typeof ct.key.length=="number"||$util.isString(ct.key)))return"key: buffer expected";if(ct.left!=null&&ct.hasOwnProperty("left")){var lt=$root.ics23.ExistenceProof.verify(ct.left);if(lt)return"left."+lt}if(ct.right!=null&&ct.hasOwnProperty("right")){var lt=$root.ics23.ExistenceProof.verify(ct.right);if(lt)return"right."+lt}return null},b.fromObject=function(ct){if(ct instanceof $root.ics23.NonExistenceProof)return ct;var lt=new $root.ics23.NonExistenceProof;if(ct.key!=null&&(typeof ct.key=="string"?$util.base64.decode(ct.key,lt.key=$util.newBuffer($util.base64.length(ct.key)),0):ct.key.length&&(lt.key=ct.key)),ct.left!=null){if(typeof ct.left!="object")throw TypeError(".ics23.NonExistenceProof.left: object expected");lt.left=$root.ics23.ExistenceProof.fromObject(ct.left)}if(ct.right!=null){if(typeof ct.right!="object")throw TypeError(".ics23.NonExistenceProof.right: object expected");lt.right=$root.ics23.ExistenceProof.fromObject(ct.right)}return lt},b.toObject=function(ct,lt){lt||(lt={});var ht={};return lt.defaults&&(lt.bytes===String?ht.key="":(ht.key=[],lt.bytes!==Array&&(ht.key=$util.newBuffer(ht.key))),ht.left=null,ht.right=null),ct.key!=null&&ct.hasOwnProperty("key")&&(ht.key=lt.bytes===String?$util.base64.encode(ct.key,0,ct.key.length):lt.bytes===Array?Array.prototype.slice.call(ct.key):ct.key),ct.left!=null&&ct.hasOwnProperty("left")&&(ht.left=$root.ics23.ExistenceProof.toObject(ct.left,lt)),ct.right!=null&&ct.hasOwnProperty("right")&&(ht.right=$root.ics23.ExistenceProof.toObject(ct.right,lt)),ht},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d.CommitmentProof=function(){function b(ct){if(ct)for(var lt=Object.keys(ct),ht=0;ht>>3){case 1:vt.exist=$root.ics23.ExistenceProof.decode(lt,lt.uint32());break;case 2:vt.nonexist=$root.ics23.NonExistenceProof.decode(lt,lt.uint32());break;case 3:vt.batch=$root.ics23.BatchProof.decode(lt,lt.uint32());break;case 4:vt.compressed=$root.ics23.CompressedBatchProof.decode(lt,lt.uint32());break;default:lt.skipType(kt&7);break}}return vt},b.decodeDelimited=function(lt){return lt instanceof $Reader||(lt=new $Reader(lt)),this.decode(lt,lt.uint32())},b.verify=function(lt){if(typeof lt!="object"||lt===null)return"object expected";var ht={};if(lt.exist!=null&<.hasOwnProperty("exist")){ht.proof=1;{var mt=$root.ics23.ExistenceProof.verify(lt.exist);if(mt)return"exist."+mt}}if(lt.nonexist!=null&<.hasOwnProperty("nonexist")){if(ht.proof===1)return"proof: multiple values";ht.proof=1;{var mt=$root.ics23.NonExistenceProof.verify(lt.nonexist);if(mt)return"nonexist."+mt}}if(lt.batch!=null&<.hasOwnProperty("batch")){if(ht.proof===1)return"proof: multiple values";ht.proof=1;{var mt=$root.ics23.BatchProof.verify(lt.batch);if(mt)return"batch."+mt}}if(lt.compressed!=null&<.hasOwnProperty("compressed")){if(ht.proof===1)return"proof: multiple values";ht.proof=1;{var mt=$root.ics23.CompressedBatchProof.verify(lt.compressed);if(mt)return"compressed."+mt}}return null},b.fromObject=function(lt){if(lt instanceof $root.ics23.CommitmentProof)return lt;var ht=new $root.ics23.CommitmentProof;if(lt.exist!=null){if(typeof lt.exist!="object")throw TypeError(".ics23.CommitmentProof.exist: object expected");ht.exist=$root.ics23.ExistenceProof.fromObject(lt.exist)}if(lt.nonexist!=null){if(typeof lt.nonexist!="object")throw TypeError(".ics23.CommitmentProof.nonexist: object expected");ht.nonexist=$root.ics23.NonExistenceProof.fromObject(lt.nonexist)}if(lt.batch!=null){if(typeof lt.batch!="object")throw TypeError(".ics23.CommitmentProof.batch: object expected");ht.batch=$root.ics23.BatchProof.fromObject(lt.batch)}if(lt.compressed!=null){if(typeof lt.compressed!="object")throw TypeError(".ics23.CommitmentProof.compressed: object expected");ht.compressed=$root.ics23.CompressedBatchProof.fromObject(lt.compressed)}return ht},b.toObject=function(lt,ht){ht||(ht={});var mt={};return lt.exist!=null&<.hasOwnProperty("exist")&&(mt.exist=$root.ics23.ExistenceProof.toObject(lt.exist,ht),ht.oneofs&&(mt.proof="exist")),lt.nonexist!=null&<.hasOwnProperty("nonexist")&&(mt.nonexist=$root.ics23.NonExistenceProof.toObject(lt.nonexist,ht),ht.oneofs&&(mt.proof="nonexist")),lt.batch!=null&<.hasOwnProperty("batch")&&(mt.batch=$root.ics23.BatchProof.toObject(lt.batch,ht),ht.oneofs&&(mt.proof="batch")),lt.compressed!=null&<.hasOwnProperty("compressed")&&(mt.compressed=$root.ics23.CompressedBatchProof.toObject(lt.compressed,ht),ht.oneofs&&(mt.proof="compressed")),mt},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d.LeafOp=function(){function b(dt){if(dt)for(var ct=Object.keys(dt),lt=0;lt>>3){case 1:mt.hash=ct.int32();break;case 2:mt.prehashKey=ct.int32();break;case 3:mt.prehashValue=ct.int32();break;case 4:mt.length=ct.int32();break;case 5:mt.prefix=ct.bytes();break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.hash!=null&&ct.hasOwnProperty("hash"))switch(ct.hash){default:return"hash: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}if(ct.prehashKey!=null&&ct.hasOwnProperty("prehashKey"))switch(ct.prehashKey){default:return"prehashKey: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}if(ct.prehashValue!=null&&ct.hasOwnProperty("prehashValue"))switch(ct.prehashValue){default:return"prehashValue: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}if(ct.length!=null&&ct.hasOwnProperty("length"))switch(ct.length){default:return"length: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break}return ct.prefix!=null&&ct.hasOwnProperty("prefix")&&!(ct.prefix&&typeof ct.prefix.length=="number"||$util.isString(ct.prefix))?"prefix: buffer expected":null},b.fromObject=function(ct){if(ct instanceof $root.ics23.LeafOp)return ct;var lt=new $root.ics23.LeafOp;switch(ct.hash){case"NO_HASH":case 0:lt.hash=0;break;case"SHA256":case 1:lt.hash=1;break;case"SHA512":case 2:lt.hash=2;break;case"KECCAK":case 3:lt.hash=3;break;case"RIPEMD160":case 4:lt.hash=4;break;case"BITCOIN":case 5:lt.hash=5;break;case"SHA512_256":case 6:lt.hash=6;break}switch(ct.prehashKey){case"NO_HASH":case 0:lt.prehashKey=0;break;case"SHA256":case 1:lt.prehashKey=1;break;case"SHA512":case 2:lt.prehashKey=2;break;case"KECCAK":case 3:lt.prehashKey=3;break;case"RIPEMD160":case 4:lt.prehashKey=4;break;case"BITCOIN":case 5:lt.prehashKey=5;break;case"SHA512_256":case 6:lt.prehashKey=6;break}switch(ct.prehashValue){case"NO_HASH":case 0:lt.prehashValue=0;break;case"SHA256":case 1:lt.prehashValue=1;break;case"SHA512":case 2:lt.prehashValue=2;break;case"KECCAK":case 3:lt.prehashValue=3;break;case"RIPEMD160":case 4:lt.prehashValue=4;break;case"BITCOIN":case 5:lt.prehashValue=5;break;case"SHA512_256":case 6:lt.prehashValue=6;break}switch(ct.length){case"NO_PREFIX":case 0:lt.length=0;break;case"VAR_PROTO":case 1:lt.length=1;break;case"VAR_RLP":case 2:lt.length=2;break;case"FIXED32_BIG":case 3:lt.length=3;break;case"FIXED32_LITTLE":case 4:lt.length=4;break;case"FIXED64_BIG":case 5:lt.length=5;break;case"FIXED64_LITTLE":case 6:lt.length=6;break;case"REQUIRE_32_BYTES":case 7:lt.length=7;break;case"REQUIRE_64_BYTES":case 8:lt.length=8;break}return ct.prefix!=null&&(typeof ct.prefix=="string"?$util.base64.decode(ct.prefix,lt.prefix=$util.newBuffer($util.base64.length(ct.prefix)),0):ct.prefix.length&&(lt.prefix=ct.prefix)),lt},b.toObject=function(ct,lt){lt||(lt={});var ht={};return lt.defaults&&(ht.hash=lt.enums===String?"NO_HASH":0,ht.prehashKey=lt.enums===String?"NO_HASH":0,ht.prehashValue=lt.enums===String?"NO_HASH":0,ht.length=lt.enums===String?"NO_PREFIX":0,lt.bytes===String?ht.prefix="":(ht.prefix=[],lt.bytes!==Array&&(ht.prefix=$util.newBuffer(ht.prefix)))),ct.hash!=null&&ct.hasOwnProperty("hash")&&(ht.hash=lt.enums===String?$root.ics23.HashOp[ct.hash]:ct.hash),ct.prehashKey!=null&&ct.hasOwnProperty("prehashKey")&&(ht.prehashKey=lt.enums===String?$root.ics23.HashOp[ct.prehashKey]:ct.prehashKey),ct.prehashValue!=null&&ct.hasOwnProperty("prehashValue")&&(ht.prehashValue=lt.enums===String?$root.ics23.HashOp[ct.prehashValue]:ct.prehashValue),ct.length!=null&&ct.hasOwnProperty("length")&&(ht.length=lt.enums===String?$root.ics23.LengthOp[ct.length]:ct.length),ct.prefix!=null&&ct.hasOwnProperty("prefix")&&(ht.prefix=lt.bytes===String?$util.base64.encode(ct.prefix,0,ct.prefix.length):lt.bytes===Array?Array.prototype.slice.call(ct.prefix):ct.prefix),ht},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d.InnerOp=function(){function b(dt){if(dt)for(var ct=Object.keys(dt),lt=0;lt>>3){case 1:mt.hash=ct.int32();break;case 2:mt.prefix=ct.bytes();break;case 3:mt.suffix=ct.bytes();break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.hash!=null&&ct.hasOwnProperty("hash"))switch(ct.hash){default:return"hash: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}return ct.prefix!=null&&ct.hasOwnProperty("prefix")&&!(ct.prefix&&typeof ct.prefix.length=="number"||$util.isString(ct.prefix))?"prefix: buffer expected":ct.suffix!=null&&ct.hasOwnProperty("suffix")&&!(ct.suffix&&typeof ct.suffix.length=="number"||$util.isString(ct.suffix))?"suffix: buffer expected":null},b.fromObject=function(ct){if(ct instanceof $root.ics23.InnerOp)return ct;var lt=new $root.ics23.InnerOp;switch(ct.hash){case"NO_HASH":case 0:lt.hash=0;break;case"SHA256":case 1:lt.hash=1;break;case"SHA512":case 2:lt.hash=2;break;case"KECCAK":case 3:lt.hash=3;break;case"RIPEMD160":case 4:lt.hash=4;break;case"BITCOIN":case 5:lt.hash=5;break;case"SHA512_256":case 6:lt.hash=6;break}return ct.prefix!=null&&(typeof ct.prefix=="string"?$util.base64.decode(ct.prefix,lt.prefix=$util.newBuffer($util.base64.length(ct.prefix)),0):ct.prefix.length&&(lt.prefix=ct.prefix)),ct.suffix!=null&&(typeof ct.suffix=="string"?$util.base64.decode(ct.suffix,lt.suffix=$util.newBuffer($util.base64.length(ct.suffix)),0):ct.suffix.length&&(lt.suffix=ct.suffix)),lt},b.toObject=function(ct,lt){lt||(lt={});var ht={};return lt.defaults&&(ht.hash=lt.enums===String?"NO_HASH":0,lt.bytes===String?ht.prefix="":(ht.prefix=[],lt.bytes!==Array&&(ht.prefix=$util.newBuffer(ht.prefix))),lt.bytes===String?ht.suffix="":(ht.suffix=[],lt.bytes!==Array&&(ht.suffix=$util.newBuffer(ht.suffix)))),ct.hash!=null&&ct.hasOwnProperty("hash")&&(ht.hash=lt.enums===String?$root.ics23.HashOp[ct.hash]:ct.hash),ct.prefix!=null&&ct.hasOwnProperty("prefix")&&(ht.prefix=lt.bytes===String?$util.base64.encode(ct.prefix,0,ct.prefix.length):lt.bytes===Array?Array.prototype.slice.call(ct.prefix):ct.prefix),ct.suffix!=null&&ct.hasOwnProperty("suffix")&&(ht.suffix=lt.bytes===String?$util.base64.encode(ct.suffix,0,ct.suffix.length):lt.bytes===Array?Array.prototype.slice.call(ct.suffix):ct.suffix),ht},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d.ProofSpec=function(){function b(dt){if(dt)for(var ct=Object.keys(dt),lt=0;lt>>3){case 1:mt.leafSpec=$root.ics23.LeafOp.decode(ct,ct.uint32());break;case 2:mt.innerSpec=$root.ics23.InnerSpec.decode(ct,ct.uint32());break;case 3:mt.maxDepth=ct.int32();break;case 4:mt.minDepth=ct.int32();break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.leafSpec!=null&&ct.hasOwnProperty("leafSpec")){var lt=$root.ics23.LeafOp.verify(ct.leafSpec);if(lt)return"leafSpec."+lt}if(ct.innerSpec!=null&&ct.hasOwnProperty("innerSpec")){var lt=$root.ics23.InnerSpec.verify(ct.innerSpec);if(lt)return"innerSpec."+lt}return ct.maxDepth!=null&&ct.hasOwnProperty("maxDepth")&&!$util.isInteger(ct.maxDepth)?"maxDepth: integer expected":ct.minDepth!=null&&ct.hasOwnProperty("minDepth")&&!$util.isInteger(ct.minDepth)?"minDepth: integer expected":null},b.fromObject=function(ct){if(ct instanceof $root.ics23.ProofSpec)return ct;var lt=new $root.ics23.ProofSpec;if(ct.leafSpec!=null){if(typeof ct.leafSpec!="object")throw TypeError(".ics23.ProofSpec.leafSpec: object expected");lt.leafSpec=$root.ics23.LeafOp.fromObject(ct.leafSpec)}if(ct.innerSpec!=null){if(typeof ct.innerSpec!="object")throw TypeError(".ics23.ProofSpec.innerSpec: object expected");lt.innerSpec=$root.ics23.InnerSpec.fromObject(ct.innerSpec)}return ct.maxDepth!=null&&(lt.maxDepth=ct.maxDepth|0),ct.minDepth!=null&&(lt.minDepth=ct.minDepth|0),lt},b.toObject=function(ct,lt){lt||(lt={});var ht={};return lt.defaults&&(ht.leafSpec=null,ht.innerSpec=null,ht.maxDepth=0,ht.minDepth=0),ct.leafSpec!=null&&ct.hasOwnProperty("leafSpec")&&(ht.leafSpec=$root.ics23.LeafOp.toObject(ct.leafSpec,lt)),ct.innerSpec!=null&&ct.hasOwnProperty("innerSpec")&&(ht.innerSpec=$root.ics23.InnerSpec.toObject(ct.innerSpec,lt)),ct.maxDepth!=null&&ct.hasOwnProperty("maxDepth")&&(ht.maxDepth=ct.maxDepth),ct.minDepth!=null&&ct.hasOwnProperty("minDepth")&&(ht.minDepth=ct.minDepth),ht},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d.InnerSpec=function(){function b(dt){if(this.childOrder=[],dt)for(var ct=Object.keys(dt),lt=0;lt>>3){case 1:if(mt.childOrder&&mt.childOrder.length||(mt.childOrder=[]),(vt&7)===2)for(var kt=ct.uint32()+ct.pos;ct.pos>>3){case 1:mt.entries&&mt.entries.length||(mt.entries=[]),mt.entries.push($root.ics23.BatchEntry.decode(ct,ct.uint32()));break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.entries!=null&&ct.hasOwnProperty("entries")){if(!Array.isArray(ct.entries))return"entries: array expected";for(var lt=0;lt>>3){case 1:vt.exist=$root.ics23.ExistenceProof.decode(lt,lt.uint32());break;case 2:vt.nonexist=$root.ics23.NonExistenceProof.decode(lt,lt.uint32());break;default:lt.skipType(kt&7);break}}return vt},b.decodeDelimited=function(lt){return lt instanceof $Reader||(lt=new $Reader(lt)),this.decode(lt,lt.uint32())},b.verify=function(lt){if(typeof lt!="object"||lt===null)return"object expected";var ht={};if(lt.exist!=null&<.hasOwnProperty("exist")){ht.proof=1;{var mt=$root.ics23.ExistenceProof.verify(lt.exist);if(mt)return"exist."+mt}}if(lt.nonexist!=null&<.hasOwnProperty("nonexist")){if(ht.proof===1)return"proof: multiple values";ht.proof=1;{var mt=$root.ics23.NonExistenceProof.verify(lt.nonexist);if(mt)return"nonexist."+mt}}return null},b.fromObject=function(lt){if(lt instanceof $root.ics23.BatchEntry)return lt;var ht=new $root.ics23.BatchEntry;if(lt.exist!=null){if(typeof lt.exist!="object")throw TypeError(".ics23.BatchEntry.exist: object expected");ht.exist=$root.ics23.ExistenceProof.fromObject(lt.exist)}if(lt.nonexist!=null){if(typeof lt.nonexist!="object")throw TypeError(".ics23.BatchEntry.nonexist: object expected");ht.nonexist=$root.ics23.NonExistenceProof.fromObject(lt.nonexist)}return ht},b.toObject=function(lt,ht){ht||(ht={});var mt={};return lt.exist!=null&<.hasOwnProperty("exist")&&(mt.exist=$root.ics23.ExistenceProof.toObject(lt.exist,ht),ht.oneofs&&(mt.proof="exist")),lt.nonexist!=null&<.hasOwnProperty("nonexist")&&(mt.nonexist=$root.ics23.NonExistenceProof.toObject(lt.nonexist,ht),ht.oneofs&&(mt.proof="nonexist")),mt},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d.CompressedBatchProof=function(){function b(dt){if(this.entries=[],this.lookupInners=[],dt)for(var ct=Object.keys(dt),lt=0;lt>>3){case 1:mt.entries&&mt.entries.length||(mt.entries=[]),mt.entries.push($root.ics23.CompressedBatchEntry.decode(ct,ct.uint32()));break;case 2:mt.lookupInners&&mt.lookupInners.length||(mt.lookupInners=[]),mt.lookupInners.push($root.ics23.InnerOp.decode(ct,ct.uint32()));break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.entries!=null&&ct.hasOwnProperty("entries")){if(!Array.isArray(ct.entries))return"entries: array expected";for(var lt=0;lt>>3){case 1:vt.exist=$root.ics23.CompressedExistenceProof.decode(lt,lt.uint32());break;case 2:vt.nonexist=$root.ics23.CompressedNonExistenceProof.decode(lt,lt.uint32());break;default:lt.skipType(kt&7);break}}return vt},b.decodeDelimited=function(lt){return lt instanceof $Reader||(lt=new $Reader(lt)),this.decode(lt,lt.uint32())},b.verify=function(lt){if(typeof lt!="object"||lt===null)return"object expected";var ht={};if(lt.exist!=null&<.hasOwnProperty("exist")){ht.proof=1;{var mt=$root.ics23.CompressedExistenceProof.verify(lt.exist);if(mt)return"exist."+mt}}if(lt.nonexist!=null&<.hasOwnProperty("nonexist")){if(ht.proof===1)return"proof: multiple values";ht.proof=1;{var mt=$root.ics23.CompressedNonExistenceProof.verify(lt.nonexist);if(mt)return"nonexist."+mt}}return null},b.fromObject=function(lt){if(lt instanceof $root.ics23.CompressedBatchEntry)return lt;var ht=new $root.ics23.CompressedBatchEntry;if(lt.exist!=null){if(typeof lt.exist!="object")throw TypeError(".ics23.CompressedBatchEntry.exist: object expected");ht.exist=$root.ics23.CompressedExistenceProof.fromObject(lt.exist)}if(lt.nonexist!=null){if(typeof lt.nonexist!="object")throw TypeError(".ics23.CompressedBatchEntry.nonexist: object expected");ht.nonexist=$root.ics23.CompressedNonExistenceProof.fromObject(lt.nonexist)}return ht},b.toObject=function(lt,ht){ht||(ht={});var mt={};return lt.exist!=null&<.hasOwnProperty("exist")&&(mt.exist=$root.ics23.CompressedExistenceProof.toObject(lt.exist,ht),ht.oneofs&&(mt.proof="exist")),lt.nonexist!=null&<.hasOwnProperty("nonexist")&&(mt.nonexist=$root.ics23.CompressedNonExistenceProof.toObject(lt.nonexist,ht),ht.oneofs&&(mt.proof="nonexist")),mt},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d.CompressedExistenceProof=function(){function b(dt){if(this.path=[],dt)for(var ct=Object.keys(dt),lt=0;lt>>3){case 1:mt.key=ct.bytes();break;case 2:mt.value=ct.bytes();break;case 3:mt.leaf=$root.ics23.LeafOp.decode(ct,ct.uint32());break;case 4:if(mt.path&&mt.path.length||(mt.path=[]),(vt&7)===2)for(var kt=ct.uint32()+ct.pos;ct.pos>>3){case 1:mt.key=ct.bytes();break;case 2:mt.left=$root.ics23.CompressedExistenceProof.decode(ct,ct.uint32());break;case 3:mt.right=$root.ics23.CompressedExistenceProof.decode(ct,ct.uint32());break;default:ct.skipType(vt&7);break}}return mt},b.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},b.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.key!=null&&ct.hasOwnProperty("key")&&!(ct.key&&typeof ct.key.length=="number"||$util.isString(ct.key)))return"key: buffer expected";if(ct.left!=null&&ct.hasOwnProperty("left")){var lt=$root.ics23.CompressedExistenceProof.verify(ct.left);if(lt)return"left."+lt}if(ct.right!=null&&ct.hasOwnProperty("right")){var lt=$root.ics23.CompressedExistenceProof.verify(ct.right);if(lt)return"right."+lt}return null},b.fromObject=function(ct){if(ct instanceof $root.ics23.CompressedNonExistenceProof)return ct;var lt=new $root.ics23.CompressedNonExistenceProof;if(ct.key!=null&&(typeof ct.key=="string"?$util.base64.decode(ct.key,lt.key=$util.newBuffer($util.base64.length(ct.key)),0):ct.key.length&&(lt.key=ct.key)),ct.left!=null){if(typeof ct.left!="object")throw TypeError(".ics23.CompressedNonExistenceProof.left: object expected");lt.left=$root.ics23.CompressedExistenceProof.fromObject(ct.left)}if(ct.right!=null){if(typeof ct.right!="object")throw TypeError(".ics23.CompressedNonExistenceProof.right: object expected");lt.right=$root.ics23.CompressedExistenceProof.fromObject(ct.right)}return lt},b.toObject=function(ct,lt){lt||(lt={});var ht={};return lt.defaults&&(lt.bytes===String?ht.key="":(ht.key=[],lt.bytes!==Array&&(ht.key=$util.newBuffer(ht.key))),ht.left=null,ht.right=null),ct.key!=null&&ct.hasOwnProperty("key")&&(ht.key=lt.bytes===String?$util.base64.encode(ct.key,0,ct.key.length):lt.bytes===Array?Array.prototype.slice.call(ct.key):ct.key),ct.left!=null&&ct.hasOwnProperty("left")&&(ht.left=$root.ics23.CompressedExistenceProof.toObject(ct.left,lt)),ct.right!=null&&ct.hasOwnProperty("right")&&(ht.right=$root.ics23.CompressedExistenceProof.toObject(ct.right,lt)),ht},b.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},b}(),d}();var codecimpl=$root,ics23={},compress$1={};Object.defineProperty(compress$1,"__esModule",{value:!0});compress$1.decompress=compress$1.compress=void 0;const codecimpl_1$2=codecimpl;function compress(d){return d.batch?{compressed:compressBatch(d.batch)}:d}compress$1.compress=compress;function decompress(d){return d.compressed?{batch:decompressBatch(d.compressed)}:d}compress$1.decompress=decompress;function compressBatch(d){const b=[],dt=[],ct=new Map;for(const lt of d.entries)if(lt.exist){const ht={exist:compressExist(lt.exist,dt,ct)};b.push(ht)}else if(lt.nonexist){const ht=lt.nonexist,mt={nonexist:{key:ht.key,left:compressExist(ht.left,dt,ct),right:compressExist(ht.right,dt,ct)}};b.push(mt)}else throw new Error("Unexpected batch entry during compress");return{entries:b,lookupInners:dt}}function compressExist(d,b,dt){if(!d)return;const ct=d.path.map(lt=>{const ht=codecimpl_1$2.ics23.InnerOp.encode(lt).finish();let mt=dt.get(ht);return mt===void 0&&(mt=b.length,b.push(lt),dt.set(ht,mt)),mt});return{key:d.key,value:d.value,leaf:d.leaf,path:ct}}function decompressBatch(d){const b=d.lookupInners;return{entries:d.entries.map(ct=>{if(ct.exist)return{exist:decompressExist(ct.exist,b)};if(ct.nonexist){const lt=ct.nonexist;return{nonexist:{key:lt.key,left:decompressExist(lt.left,b),right:decompressExist(lt.right,b)}}}else throw new Error("Unexpected batch entry during compress")})}}function decompressExist(d,b){if(!d)return;const{key:dt,value:ct,leaf:lt,path:ht}=d,mt=(ht||[]).map(vt=>b[vt]);return{key:dt,value:ct,leaf:lt,path:mt}}var proofs$1={},ops={},ripemd160={},_md={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=_assert.isBytes=void 0;function number(d){if(!Number.isSafeInteger(d)||d<0)throw new Error(`positive integer expected, not ${d}`)}_assert.number=number;function bool(d){if(typeof d!="boolean")throw new Error(`boolean expected, not ${d}`)}_assert.bool=bool;function isBytes(d){return d instanceof Uint8Array||d!=null&&typeof d=="object"&&d.constructor.name==="Uint8Array"}_assert.isBytes=isBytes;function bytes(d,...b){if(!isBytes(d))throw new Error("Uint8Array expected");if(b.length>0&&!b.includes(d.length))throw new Error(`Uint8Array expected of length ${b}, not of length=${d.length}`)}_assert.bytes=bytes;function hash$1(d){if(typeof d!="function"||typeof d.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(d.outputLen),number(d.blockLen)}_assert.hash=hash$1;function exists(d,b=!0){if(d.destroyed)throw new Error("Hash instance has been destroyed");if(b&&d.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(d,b){bytes(d);const dt=b.outputLen;if(d.lengthnew Uint8Array(Kt.buffer,Kt.byteOffset,Kt.byteLength);d.u8=lt;const ht=Kt=>new Uint32Array(Kt.buffer,Kt.byteOffset,Math.floor(Kt.byteLength/4));d.u32=ht;const mt=Kt=>new DataView(Kt.buffer,Kt.byteOffset,Kt.byteLength);d.createView=mt;const vt=(Kt,St)=>Kt<<32-St|Kt>>>St;d.rotr=vt;const kt=(Kt,St)=>Kt<>>32-St>>>0;d.rotl=kt,d.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const Pt=Kt=>Kt<<24&4278190080|Kt<<8&16711680|Kt>>>8&65280|Kt>>>24&255;d.byteSwap=Pt,d.byteSwapIfBE=d.isLE?Kt=>Kt:Kt=>(0,d.byteSwap)(Kt);function Jt(Kt){for(let St=0;StSt.toString(16).padStart(2,"0"));function Rt(Kt){(0,dt.bytes)(Kt);let St="";for(let It=0;It=nn._0&&Kt<=nn._9)return Kt-nn._0;if(Kt>=nn._A&&Kt<=nn._F)return Kt-(nn._A-10);if(Kt>=nn._a&&Kt<=nn._f)return Kt-(nn._a-10)}function wt(Kt){if(typeof Kt!="string")throw new Error("hex string expected, got "+typeof Kt);const St=Kt.length,It=St/2;if(St%2)throw new Error("padded hex string expected, got unpadded hex of length "+St);const Gt=new Uint8Array(It);for(let Ut=0,Vt=0;Ut{};d.nextTick=Nt;async function xt(Kt,St,It){let Gt=Date.now();for(let Ut=0;Ut=0&&VtKt().update(Bt(Gt)).digest(),It=Kt();return St.outputLen=It.outputLen,St.blockLen=It.blockLen,St.create=()=>Kt(),St}d.wrapConstructor=an;function yt(Kt){const St=(Gt,Ut)=>Kt(Ut).update(Bt(Gt)).digest(),It=Kt({});return St.outputLen=It.outputLen,St.blockLen=It.blockLen,St.create=Gt=>Kt(Gt),St}d.wrapConstructorWithOpts=yt;function $t(Kt){const St=(Gt,Ut)=>Kt(Ut).update(Bt(Gt)).digest(),It=Kt({});return St.outputLen=It.outputLen,St.blockLen=It.blockLen,St.create=Gt=>Kt(Gt),St}d.wrapXOFConstructorWithOpts=$t;function Yt(Kt=32){if(b.crypto&&typeof b.crypto.getRandomValues=="function")return b.crypto.getRandomValues(new Uint8Array(Kt));throw new Error("crypto.getRandomValues must be defined")}d.randomBytes=Yt})(utils$f);Object.defineProperty(_md,"__esModule",{value:!0});_md.HashMD=_md.Maj=_md.Chi=void 0;const _assert_js_1=_assert,utils_js_1$3=utils$f;function setBigUint64(d,b,dt,ct){if(typeof d.setBigUint64=="function")return d.setBigUint64(b,dt,ct);const lt=BigInt(32),ht=BigInt(4294967295),mt=Number(dt>>lt&ht),vt=Number(dt&ht),kt=ct?4:0,Pt=ct?0:4;d.setUint32(b+kt,mt,ct),d.setUint32(b+Pt,vt,ct)}const Chi=(d,b,dt)=>d&b^~d&dt;_md.Chi=Chi;const Maj=(d,b,dt)=>d&b^d&dt^b&dt;_md.Maj=Maj;class HashMD extends utils_js_1$3.Hash{constructor(b,dt,ct,lt){super(),this.blockLen=b,this.outputLen=dt,this.padOffset=ct,this.isLE=lt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(b),this.view=(0,utils_js_1$3.createView)(this.buffer)}update(b){(0,_assert_js_1.exists)(this);const{view:dt,buffer:ct,blockLen:lt}=this;b=(0,utils_js_1$3.toBytes)(b);const ht=b.length;for(let mt=0;mtlt-mt&&(this.process(ct,0),mt=0);for(let Zt=mt;ZtJt.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;Ztb)),Pi=Id.map(d=>(9*d+5)%16);let idxL=[Id],idxR=[Pi];for(let d=0;d<4;d++)for(let b of[idxL,idxR])b.push(b[d].map(dt=>Rho[dt]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(d=>new Uint8Array(d)),shiftsL=idxL.map((d,b)=>d.map(dt=>shifts[b][dt])),shiftsR=idxR.map((d,b)=>d.map(dt=>shifts[b][dt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function f(d,b,dt,ct){return d===0?b^dt^ct:d===1?b&dt|~b&ct:d===2?(b|~dt)^ct:d===3?b&ct|dt&~ct:b^(dt|~ct)}const R_BUF=new Uint32Array(16);class RIPEMD160 extends _md_js_1$2.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:b,h1:dt,h2:ct,h3:lt,h4:ht}=this;return[b,dt,ct,lt,ht]}set(b,dt,ct,lt,ht){this.h0=b|0,this.h1=dt|0,this.h2=ct|0,this.h3=lt|0,this.h4=ht|0}process(b,dt){for(let nn=0;nn<16;nn++,dt+=4)R_BUF[nn]=b.getUint32(dt,!0);let ct=this.h0|0,lt=ct,ht=this.h1|0,mt=ht,vt=this.h2|0,kt=vt,Pt=this.h3|0,Jt=Pt,Zt=this.h4|0,Rt=Zt;for(let nn=0;nn<5;nn++){const Qt=4-nn,wt=Kl[nn],Nt=Kr[nn],xt=idxL[nn],Et=idxR[nn],Bt=shiftsL[nn],Tt=shiftsR[nn];for(let Mt=0;Mt<16;Mt++){const jt=(0,utils_js_1$2.rotl)(ct+f(nn,ht,vt,Pt)+R_BUF[xt[Mt]]+wt,Bt[Mt])+Zt|0;ct=Zt,Zt=Pt,Pt=(0,utils_js_1$2.rotl)(vt,10)|0,vt=ht,ht=jt}for(let Mt=0;Mt<16;Mt++){const jt=(0,utils_js_1$2.rotl)(lt+f(Qt,mt,kt,Jt)+R_BUF[Et[Mt]]+Nt,Tt[Mt])+Rt|0;lt=Rt,Rt=Jt,Jt=(0,utils_js_1$2.rotl)(kt,10)|0,kt=mt,mt=jt}}this.set(this.h1+vt+Jt|0,this.h2+Pt+Rt|0,this.h3+Zt+lt|0,this.h4+ct+mt|0,this.h0+ht+kt|0)}roundClean(){R_BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}ripemd160.RIPEMD160=RIPEMD160;ripemd160.ripemd160=(0,utils_js_1$2.wrapConstructor)(()=>new RIPEMD160);var sha256$4={};Object.defineProperty(sha256$4,"__esModule",{value:!0});sha256$4.sha224=sha256$4.sha256=void 0;const _md_js_1$1=_md,utils_js_1$1=utils$f,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),SHA256_IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends _md_js_1$1.HashMD{constructor(){super(64,32,8,!1),this.A=SHA256_IV[0]|0,this.B=SHA256_IV[1]|0,this.C=SHA256_IV[2]|0,this.D=SHA256_IV[3]|0,this.E=SHA256_IV[4]|0,this.F=SHA256_IV[5]|0,this.G=SHA256_IV[6]|0,this.H=SHA256_IV[7]|0}get(){const{A:b,B:dt,C:ct,D:lt,E:ht,F:mt,G:vt,H:kt}=this;return[b,dt,ct,lt,ht,mt,vt,kt]}set(b,dt,ct,lt,ht,mt,vt,kt){this.A=b|0,this.B=dt|0,this.C=ct|0,this.D=lt|0,this.E=ht|0,this.F=mt|0,this.G=vt|0,this.H=kt|0}process(b,dt){for(let Zt=0;Zt<16;Zt++,dt+=4)SHA256_W[Zt]=b.getUint32(dt,!1);for(let Zt=16;Zt<64;Zt++){const Rt=SHA256_W[Zt-15],nn=SHA256_W[Zt-2],Qt=(0,utils_js_1$1.rotr)(Rt,7)^(0,utils_js_1$1.rotr)(Rt,18)^Rt>>>3,wt=(0,utils_js_1$1.rotr)(nn,17)^(0,utils_js_1$1.rotr)(nn,19)^nn>>>10;SHA256_W[Zt]=wt+SHA256_W[Zt-7]+Qt+SHA256_W[Zt-16]|0}let{A:ct,B:lt,C:ht,D:mt,E:vt,F:kt,G:Pt,H:Jt}=this;for(let Zt=0;Zt<64;Zt++){const Rt=(0,utils_js_1$1.rotr)(vt,6)^(0,utils_js_1$1.rotr)(vt,11)^(0,utils_js_1$1.rotr)(vt,25),nn=Jt+Rt+(0,_md_js_1$1.Chi)(vt,kt,Pt)+SHA256_K[Zt]+SHA256_W[Zt]|0,wt=((0,utils_js_1$1.rotr)(ct,2)^(0,utils_js_1$1.rotr)(ct,13)^(0,utils_js_1$1.rotr)(ct,22))+(0,_md_js_1$1.Maj)(ct,lt,ht)|0;Jt=Pt,Pt=kt,kt=vt,vt=mt+nn|0,mt=ht,ht=lt,lt=ct,ct=nn+wt|0}ct=ct+this.A|0,lt=lt+this.B|0,ht=ht+this.C|0,mt=mt+this.D|0,vt=vt+this.E|0,kt=kt+this.F|0,Pt=Pt+this.G|0,Jt=Jt+this.H|0,this.set(ct,lt,ht,mt,vt,kt,Pt,Jt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}sha256$4.sha256=(0,utils_js_1$1.wrapConstructor)(()=>new SHA256);sha256$4.sha224=(0,utils_js_1$1.wrapConstructor)(()=>new SHA224);var sha512$4={},_u64={};Object.defineProperty(_u64,"__esModule",{value:!0});_u64.add5L=_u64.add5H=_u64.add4H=_u64.add4L=_u64.add3H=_u64.add3L=_u64.add=_u64.rotlBL=_u64.rotlBH=_u64.rotlSL=_u64.rotlSH=_u64.rotr32L=_u64.rotr32H=_u64.rotrBL=_u64.rotrBH=_u64.rotrSL=_u64.rotrSH=_u64.shrSL=_u64.shrSH=_u64.toBig=_u64.split=_u64.fromBig=void 0;const U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(d,b=!1){return b?{h:Number(d&U32_MASK64),l:Number(d>>_32n&U32_MASK64)}:{h:Number(d>>_32n&U32_MASK64)|0,l:Number(d&U32_MASK64)|0}}_u64.fromBig=fromBig;function split(d,b=!1){let dt=new Uint32Array(d.length),ct=new Uint32Array(d.length);for(let lt=0;ltBigInt(d>>>0)<<_32n|BigInt(b>>>0);_u64.toBig=toBig;const shrSH=(d,b,dt)=>d>>>dt;_u64.shrSH=shrSH;const shrSL=(d,b,dt)=>d<<32-dt|b>>>dt;_u64.shrSL=shrSL;const rotrSH=(d,b,dt)=>d>>>dt|b<<32-dt;_u64.rotrSH=rotrSH;const rotrSL=(d,b,dt)=>d<<32-dt|b>>>dt;_u64.rotrSL=rotrSL;const rotrBH=(d,b,dt)=>d<<64-dt|b>>>dt-32;_u64.rotrBH=rotrBH;const rotrBL=(d,b,dt)=>d>>>dt-32|b<<64-dt;_u64.rotrBL=rotrBL;const rotr32H=(d,b)=>b;_u64.rotr32H=rotr32H;const rotr32L=(d,b)=>d;_u64.rotr32L=rotr32L;const rotlSH=(d,b,dt)=>d<>>32-dt;_u64.rotlSH=rotlSH;const rotlSL=(d,b,dt)=>b<>>32-dt;_u64.rotlSL=rotlSL;const rotlBH=(d,b,dt)=>b<>>64-dt;_u64.rotlBH=rotlBH;const rotlBL=(d,b,dt)=>d<>>64-dt;_u64.rotlBL=rotlBL;function add(d,b,dt,ct){const lt=(b>>>0)+(ct>>>0);return{h:d+dt+(lt/2**32|0)|0,l:lt|0}}_u64.add=add;const add3L=(d,b,dt)=>(d>>>0)+(b>>>0)+(dt>>>0);_u64.add3L=add3L;const add3H=(d,b,dt,ct)=>b+dt+ct+(d/2**32|0)|0;_u64.add3H=add3H;const add4L=(d,b,dt,ct)=>(d>>>0)+(b>>>0)+(dt>>>0)+(ct>>>0);_u64.add4L=add4L;const add4H=(d,b,dt,ct,lt)=>b+dt+ct+lt+(d/2**32|0)|0;_u64.add4H=add4H;const add5L=(d,b,dt,ct,lt)=>(d>>>0)+(b>>>0)+(dt>>>0)+(ct>>>0)+(lt>>>0);_u64.add5L=add5L;const add5H=(d,b,dt,ct,lt,ht)=>b+dt+ct+lt+ht+(d/2**32|0)|0;_u64.add5H=add5H;const u64={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L};_u64.default=u64;Object.defineProperty(sha512$4,"__esModule",{value:!0});sha512$4.sha384=sha512$4.sha512_256=sha512$4.sha512_224=sha512$4.sha512=sha512$4.SHA512=void 0;const _md_js_1=_md,_u64_js_1=_u64,utils_js_1=utils$f,[SHA512_Kh,SHA512_Kl]=(()=>_u64_js_1.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(d=>BigInt(d))))(),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends _md_js_1.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:b,Al:dt,Bh:ct,Bl:lt,Ch:ht,Cl:mt,Dh:vt,Dl:kt,Eh:Pt,El:Jt,Fh:Zt,Fl:Rt,Gh:nn,Gl:Qt,Hh:wt,Hl:Nt}=this;return[b,dt,ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt]}set(b,dt,ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt){this.Ah=b|0,this.Al=dt|0,this.Bh=ct|0,this.Bl=lt|0,this.Ch=ht|0,this.Cl=mt|0,this.Dh=vt|0,this.Dl=kt|0,this.Eh=Pt|0,this.El=Jt|0,this.Fh=Zt|0,this.Fl=Rt|0,this.Gh=nn|0,this.Gl=Qt|0,this.Hh=wt|0,this.Hl=Nt|0}process(b,dt){for(let Bt=0;Bt<16;Bt++,dt+=4)SHA512_W_H[Bt]=b.getUint32(dt),SHA512_W_L[Bt]=b.getUint32(dt+=4);for(let Bt=16;Bt<80;Bt++){const Tt=SHA512_W_H[Bt-15]|0,Mt=SHA512_W_L[Bt-15]|0,jt=_u64_js_1.default.rotrSH(Tt,Mt,1)^_u64_js_1.default.rotrSH(Tt,Mt,8)^_u64_js_1.default.shrSH(Tt,Mt,7),Ht=_u64_js_1.default.rotrSL(Tt,Mt,1)^_u64_js_1.default.rotrSL(Tt,Mt,8)^_u64_js_1.default.shrSL(Tt,Mt,7),an=SHA512_W_H[Bt-2]|0,yt=SHA512_W_L[Bt-2]|0,$t=_u64_js_1.default.rotrSH(an,yt,19)^_u64_js_1.default.rotrBH(an,yt,61)^_u64_js_1.default.shrSH(an,yt,6),Yt=_u64_js_1.default.rotrSL(an,yt,19)^_u64_js_1.default.rotrBL(an,yt,61)^_u64_js_1.default.shrSL(an,yt,6),Kt=_u64_js_1.default.add4L(Ht,Yt,SHA512_W_L[Bt-7],SHA512_W_L[Bt-16]),St=_u64_js_1.default.add4H(Kt,jt,$t,SHA512_W_H[Bt-7],SHA512_W_H[Bt-16]);SHA512_W_H[Bt]=St|0,SHA512_W_L[Bt]=Kt|0}let{Ah:ct,Al:lt,Bh:ht,Bl:mt,Ch:vt,Cl:kt,Dh:Pt,Dl:Jt,Eh:Zt,El:Rt,Fh:nn,Fl:Qt,Gh:wt,Gl:Nt,Hh:xt,Hl:Et}=this;for(let Bt=0;Bt<80;Bt++){const Tt=_u64_js_1.default.rotrSH(Zt,Rt,14)^_u64_js_1.default.rotrSH(Zt,Rt,18)^_u64_js_1.default.rotrBH(Zt,Rt,41),Mt=_u64_js_1.default.rotrSL(Zt,Rt,14)^_u64_js_1.default.rotrSL(Zt,Rt,18)^_u64_js_1.default.rotrBL(Zt,Rt,41),jt=Zt&nn^~Zt&wt,Ht=Rt&Qt^~Rt&Nt,an=_u64_js_1.default.add5L(Et,Mt,Ht,SHA512_Kl[Bt],SHA512_W_L[Bt]),yt=_u64_js_1.default.add5H(an,xt,Tt,jt,SHA512_Kh[Bt],SHA512_W_H[Bt]),$t=an|0,Yt=_u64_js_1.default.rotrSH(ct,lt,28)^_u64_js_1.default.rotrBH(ct,lt,34)^_u64_js_1.default.rotrBH(ct,lt,39),Kt=_u64_js_1.default.rotrSL(ct,lt,28)^_u64_js_1.default.rotrBL(ct,lt,34)^_u64_js_1.default.rotrBL(ct,lt,39),St=ct&ht^ct&vt^ht&vt,It=lt&mt^lt&kt^mt&kt;xt=wt|0,Et=Nt|0,wt=nn|0,Nt=Qt|0,nn=Zt|0,Qt=Rt|0,{h:Zt,l:Rt}=_u64_js_1.default.add(Pt|0,Jt|0,yt|0,$t|0),Pt=vt|0,Jt=kt|0,vt=ht|0,kt=mt|0,ht=ct|0,mt=lt|0;const Gt=_u64_js_1.default.add3L($t,Kt,It);ct=_u64_js_1.default.add3H(Gt,yt,Yt,St),lt=Gt|0}({h:ct,l:lt}=_u64_js_1.default.add(this.Ah|0,this.Al|0,ct|0,lt|0)),{h:ht,l:mt}=_u64_js_1.default.add(this.Bh|0,this.Bl|0,ht|0,mt|0),{h:vt,l:kt}=_u64_js_1.default.add(this.Ch|0,this.Cl|0,vt|0,kt|0),{h:Pt,l:Jt}=_u64_js_1.default.add(this.Dh|0,this.Dl|0,Pt|0,Jt|0),{h:Zt,l:Rt}=_u64_js_1.default.add(this.Eh|0,this.El|0,Zt|0,Rt|0),{h:nn,l:Qt}=_u64_js_1.default.add(this.Fh|0,this.Fl|0,nn|0,Qt|0),{h:wt,l:Nt}=_u64_js_1.default.add(this.Gh|0,this.Gl|0,wt|0,Nt|0),{h:xt,l:Et}=_u64_js_1.default.add(this.Hh|0,this.Hl|0,xt|0,Et|0),this.set(ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt,xt,Et)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}sha512$4.SHA512=SHA512;class SHA512_224 extends SHA512{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class SHA512_256 extends SHA512{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class SHA384 extends SHA512{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}sha512$4.sha512=(0,utils_js_1.wrapConstructor)(()=>new SHA512);sha512$4.sha512_224=(0,utils_js_1.wrapConstructor)(()=>new SHA512_224);sha512$4.sha512_256=(0,utils_js_1.wrapConstructor)(()=>new SHA512_256);sha512$4.sha384=(0,utils_js_1.wrapConstructor)(()=>new SHA384);Object.defineProperty(ops,"__esModule",{value:!0});ops.doHash=ops.applyInner=ops.applyLeaf=void 0;const ripemd160_1=ripemd160,sha256_1=sha256$4,sha512_1=sha512$4,codecimpl_1$1=codecimpl;function applyLeaf(d,b,dt){if(b.length===0)throw new Error("Missing key");if(dt.length===0)throw new Error("Missing value");const ct=prepareLeafData(ensureHash(d.prehashKey),ensureLength(d.length),b),lt=prepareLeafData(ensureHash(d.prehashValue),ensureLength(d.length),dt),ht=new Uint8Array([...ensureBytes(d.prefix),...ct,...lt]);return doHash(ensureHash(d.hash),ht)}ops.applyLeaf=applyLeaf;function applyInner(d,b){if(b.length===0)throw new Error("Inner op needs child value");const dt=new Uint8Array([...ensureBytes(d.prefix),...b,...ensureBytes(d.suffix)]);return doHash(ensureHash(d.hash),dt)}ops.applyInner=applyInner;function ensure(d,b){return d??b}const ensureHash=d=>ensure(d,codecimpl_1$1.ics23.HashOp.NO_HASH),ensureLength=d=>ensure(d,codecimpl_1$1.ics23.LengthOp.NO_PREFIX),ensureBytes=d=>ensure(d,new Uint8Array([]));function prepareLeafData(d,b,dt){const ct=doHashOrNoop(d,dt);return doLengthOp(b,ct)}function doHashOrNoop(d,b){return d===codecimpl_1$1.ics23.HashOp.NO_HASH?b:doHash(d,b)}function doHash(d,b){switch(d){case codecimpl_1$1.ics23.HashOp.SHA256:return(0,sha256_1.sha256)(b);case codecimpl_1$1.ics23.HashOp.SHA512:return(0,sha512_1.sha512)(b);case codecimpl_1$1.ics23.HashOp.RIPEMD160:return(0,ripemd160_1.ripemd160)(b);case codecimpl_1$1.ics23.HashOp.BITCOIN:return(0,ripemd160_1.ripemd160)((0,sha256_1.sha256)(b));case codecimpl_1$1.ics23.HashOp.SHA512_256:return(0,sha512_1.sha512_256)(b)}throw new Error(`Unsupported hashop: ${d}`)}ops.doHash=doHash;function doLengthOp(d,b){switch(d){case codecimpl_1$1.ics23.LengthOp.NO_PREFIX:return b;case codecimpl_1$1.ics23.LengthOp.VAR_PROTO:return new Uint8Array([...encodeVarintProto(b.length),...b]);case codecimpl_1$1.ics23.LengthOp.REQUIRE_32_BYTES:if(b.length!==32)throw new Error(`Length is ${b.length}, not 32 bytes`);return b;case codecimpl_1$1.ics23.LengthOp.REQUIRE_64_BYTES:if(b.length!==64)throw new Error(`Length is ${b.length}, not 64 bytes`);return b;case codecimpl_1$1.ics23.LengthOp.FIXED32_LITTLE:return new Uint8Array([...encodeFixed32Le(b.length),...b])}throw new Error(`Unsupported lengthop: ${d}`)}function encodeVarintProto(d){let b=[],dt=d;for(;dt>=128;){const ct=dt%128+128;b=[...b,ct],dt=dt/128}return b=[...b,dt],new Uint8Array(b)}function encodeFixed32Le(d){const b=new Uint8Array(4);let dt=d;for(let ct=b.length;ct>0;ct--)b[Math.abs(ct-b.length)]=dt%256,dt=Math.floor(dt/256);return b}var specs={};Object.defineProperty(specs,"__esModule",{value:!0});specs.bytesBefore=specs.ensureBytesBefore=specs.bytesEqual=specs.ensureBytesEqual=specs.ensureInner=specs.ensureLeaf=void 0;function ensureLeaf(d,b){if(d.hash!==b.hash)throw new Error(`Unexpected hashOp: ${d.hash}`);if(d.prehashKey!==b.prehashKey)throw new Error(`Unexpected prehashKey: ${d.prehashKey}`);if(d.prehashValue!==b.prehashValue)throw new Error(`Unexpected prehashValue: ${d.prehashValue}`);if(d.length!==b.length)throw new Error(`Unexpected length op: ${d.length}`);ensurePrefix(d.prefix,b.prefix)}specs.ensureLeaf=ensureLeaf;function ensureInner(d,b,dt){if(d.hash!==dt.hash)throw new Error(`Unexpected hashOp: ${d.hash}`);if(!d.prefix)throw new Error("No prefix set for inner node");if(hasPrefix(d.prefix,b))throw new Error("Inner node has leaf prefix");if(d.prefix.length<(dt.minPrefixLength||0))throw new Error(`Prefix too short: ${d.prefix.length} bytes`);const ct=(dt.childOrder.length-1)*dt.childSize;if(d.prefix.length>(dt.maxPrefixLength||0)+ct)throw new Error(`Prefix too long: ${d.prefix.length} bytes`)}specs.ensureInner=ensureInner;function ensurePrefix(d,b){if(!(!b||b.length===0)){if(!d)throw new Error("Target bytes missing");ensureBytesEqual(b,d.slice(0,b.length))}}function ensureBytesEqual(d,b){if(d.length!==b.length)throw new Error(`Different lengths ${d.length} vs ${b.length}`);for(let dt=0;dtb[ct])return!1}return d.lengthb.maxDepth)throw new Error(`Too many inner nodes ${dt.length}`);for(const ct of dt)(0,specs_1$1.ensureInner)(ct,b.leafSpec.prefix,b.innerSpec)}proofs$1.ensureSpec=ensureSpec;function ensureLeftMost(d,b){const{minPrefix:dt,maxPrefix:ct,suffix:lt}=getPadding(d,0);for(const ht of b)if(!hasPadding(ht,dt,ct,lt))throw new Error("Step not leftmost")}function ensureRightMost(d,b){const dt=d.childOrder.length-1,{minPrefix:ct,maxPrefix:lt,suffix:ht}=getPadding(d,dt);for(const mt of b)if(!hasPadding(mt,ct,lt,ht))throw new Error("Step not leftmost")}function ensureLeftNeighbor(d,b,dt){const ct=[...b],lt=[...dt];let ht=ct.pop(),mt=lt.pop();for(;(0,specs_1$1.bytesEqual)(ht.prefix,mt.prefix)&&(0,specs_1$1.bytesEqual)(ht.suffix,mt.suffix);)ht=ct.pop(),mt=lt.pop();if(!isLeftStep(d,ht,mt))throw new Error("Not left neightbor at first divergent step");ensureRightMost(d,ct),ensureLeftMost(d,lt)}proofs$1.ensureLeftNeighbor=ensureLeftNeighbor;function isLeftStep(d,b,dt){const ct=orderFromPadding(d,b);return orderFromPadding(d,dt)===ct+1}function orderFromPadding(d,b){for(let dt=0;dtdt?!1:(d.suffix||[]).length===ct}function getPadding(d,b){const dt=getPosition(d.childOrder,b),ct=dt*d.childSize,lt=ct+d.minPrefixLength,ht=ct+d.maxPrefixLength,mt=(d.childOrder.length-1-dt)*d.childSize;return{minPrefix:lt,maxPrefix:ht,suffix:mt}}function getPosition(d,b){if(b<0||b>=d.length)throw new Error(`Invalid branch: ${b}`);return d.findIndex(dt=>dt===b)}Object.defineProperty(ics23,"__esModule",{value:!0});ics23.batchVerifyNonMembership=ics23.batchVerifyMembership=ics23.verifyNonMembership=ics23.verifyMembership=void 0;const compress_1=compress$1,proofs_1$1=proofs$1,specs_1=specs;function verifyMembership(d,b,dt,ct,lt){const ht=(0,compress_1.decompress)(d),mt=getExistForKey(ht,ct);if(!mt)return!1;try{return(0,proofs_1$1.verifyExistence)(mt,b,dt,ct,lt),!0}catch{return!1}}ics23.verifyMembership=verifyMembership;function verifyNonMembership(d,b,dt,ct){const lt=(0,compress_1.decompress)(d),ht=getNonExistForKey(lt,ct);if(!ht)return!1;try{return(0,proofs_1$1.verifyNonExistence)(ht,b,dt,ct),!0}catch{return!1}}ics23.verifyNonMembership=verifyNonMembership;function batchVerifyMembership(d,b,dt,ct){const lt=(0,compress_1.decompress)(d);for(const[ht,mt]of ct.entries())if(!verifyMembership(lt,b,dt,ht,mt))return!1;return!0}ics23.batchVerifyMembership=batchVerifyMembership;function batchVerifyNonMembership(d,b,dt,ct){const lt=(0,compress_1.decompress)(d);for(const ht of ct)if(!verifyNonMembership(lt,b,dt,ht))return!1;return!0}ics23.batchVerifyNonMembership=batchVerifyNonMembership;function getExistForKey(d,b){const dt=ct=>!!ct&&(0,specs_1.bytesEqual)(b,ct.key);if(dt(d.exist))return d.exist;if(d.batch)return d.batch.entries.map(ct=>ct.exist||null).find(dt)}function getNonExistForKey(d,b){const dt=ct=>!!ct&&(!ct.left||(0,specs_1.bytesBefore)(ct.left.key,b))&&(!ct.right||(0,specs_1.bytesBefore)(b,ct.right.key));if(dt(d.nonexist))return d.nonexist;if(d.batch)return d.batch.entries.map(ct=>ct.nonexist||null).find(dt)}(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.verifyNonExistence=d.verifyExistence=d.tendermintSpec=d.iavlSpec=d.calculateExistenceRoot=d.verifyNonMembership=d.verifyMembership=d.ics23=void 0;var b=codecimpl;Object.defineProperty(d,"ics23",{enumerable:!0,get:function(){return b.ics23}});var dt=ics23;Object.defineProperty(d,"verifyMembership",{enumerable:!0,get:function(){return dt.verifyMembership}}),Object.defineProperty(d,"verifyNonMembership",{enumerable:!0,get:function(){return dt.verifyNonMembership}});var ct=proofs$1;Object.defineProperty(d,"calculateExistenceRoot",{enumerable:!0,get:function(){return ct.calculateExistenceRoot}}),Object.defineProperty(d,"iavlSpec",{enumerable:!0,get:function(){return ct.iavlSpec}}),Object.defineProperty(d,"tendermintSpec",{enumerable:!0,get:function(){return ct.tendermintSpec}}),Object.defineProperty(d,"verifyExistence",{enumerable:!0,get:function(){return ct.verifyExistence}}),Object.defineProperty(d,"verifyNonExistence",{enumerable:!0,get:function(){return ct.verifyNonExistence}})})(build$5);var build$4={},concat$2={},xstream={},ponyfill$1={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=b;function b(dt){var ct,lt=dt.Symbol;if(typeof lt=="function")if(lt.observable)ct=lt.observable;else{ct=lt.for("https://github.com/benlesh/symbol-observable");try{lt.observable=ct}catch{}}else ct="@@observable";return ct}})(ponyfill$1);var ponyfill=ponyfill$1,toStr$2=Object.prototype.toString,isArguments=function d(b){var dt=toStr$2.call(b),ct=dt==="[object Arguments]";return ct||(ct=dt!=="[object Array]"&&b!==null&&typeof b=="object"&&typeof b.length=="number"&&b.length>=0&&toStr$2.call(b.callee)==="[object Function]"),ct},implementation$4,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation$4;hasRequiredImplementation=1;var d;if(!Object.keys){var b=Object.prototype.hasOwnProperty,dt=Object.prototype.toString,ct=isArguments,lt=Object.prototype.propertyIsEnumerable,ht=!lt.call({toString:null},"toString"),mt=lt.call(function(){},"prototype"),vt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],kt=function(Rt){var nn=Rt.constructor;return nn&&nn.prototype===Rt},Pt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Jt=function(){if(typeof window>"u")return!1;for(var Rt in window)try{if(!Pt["$"+Rt]&&b.call(window,Rt)&&window[Rt]!==null&&typeof window[Rt]=="object")try{kt(window[Rt])}catch{return!0}}catch{return!0}return!1}(),Zt=function(Rt){if(typeof window>"u"||!Jt)return kt(Rt);try{return kt(Rt)}catch{return!1}};d=function(nn){var Qt=nn!==null&&typeof nn=="object",wt=dt.call(nn)==="[object Function]",Nt=ct(nn),xt=Qt&&dt.call(nn)==="[object String]",Et=[];if(!Qt&&!wt&&!Nt)throw new TypeError("Object.keys called on a non-object");var Bt=mt&&wt;if(xt&&nn.length>0&&!b.call(nn,0))for(var Tt=0;Tt0)for(var Mt=0;Mt"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols$1&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols$1&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols$1||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols$1||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols$1&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols$1?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto)try{null.error}catch(d){var errorProto=getProto(getProto(d));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function d(b){var dt;if(b==="%AsyncFunction%")dt=getEvalledConstructor("async function () {}");else if(b==="%GeneratorFunction%")dt=getEvalledConstructor("function* () {}");else if(b==="%AsyncGeneratorFunction%")dt=getEvalledConstructor("async function* () {}");else if(b==="%AsyncGenerator%"){var ct=d("%AsyncGeneratorFunction%");ct&&(dt=ct.prototype)}else if(b==="%AsyncIteratorPrototype%"){var lt=d("%AsyncGenerator%");lt&&getProto&&(dt=getProto(lt.prototype))}return INTRINSICS[b]=dt,dt},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$4=functionBind,hasOwn=hasown,$concat=bind$4.call(Function.call,Array.prototype.concat),$spliceApply=bind$4.call(Function.apply,Array.prototype.splice),$replace=bind$4.call(Function.call,String.prototype.replace),$strSlice=bind$4.call(Function.call,String.prototype.slice),$exec=bind$4.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function d(b){var dt=$strSlice(b,0,1),ct=$strSlice(b,-1);if(dt==="%"&&ct!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(ct==="%"&&dt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var lt=[];return $replace(b,rePropName,function(ht,mt,vt,kt){lt[lt.length]=vt?$replace(kt,reEscapeChar,"$1"):mt||ht}),lt},getBaseIntrinsic=function d(b,dt){var ct=b,lt;if(hasOwn(LEGACY_ALIASES,ct)&&(lt=LEGACY_ALIASES[ct],ct="%"+lt[0]+"%"),hasOwn(INTRINSICS,ct)){var ht=INTRINSICS[ct];if(ht===needsEval&&(ht=doEval(ct)),typeof ht>"u"&&!dt)throw new $TypeError$1("intrinsic "+b+" exists, but is not available. Please file an issue!");return{alias:lt,name:ct,value:ht}}throw new $SyntaxError$1("intrinsic "+b+" does not exist!")},getIntrinsic=function d(b,dt){if(typeof b!="string"||b.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof dt!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,b)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ct=stringToPath(b),lt=ct.length>0?ct[0]:"",ht=getBaseIntrinsic("%"+lt+"%",dt),mt=ht.name,vt=ht.value,kt=!1,Pt=ht.alias;Pt&&(lt=Pt[0],$spliceApply(ct,$concat([0,1],Pt)));for(var Jt=1,Zt=!0;Jt=ct.length){var wt=$gOPD$1(vt,Rt);Zt=!!wt,Zt&&"get"in wt&&!("originalValue"in wt.get)?vt=wt.get:vt=vt[Rt]}else Zt=hasOwn(vt,Rt),vt=vt[Rt];Zt&&!kt&&(INTRINSICS[mt]=vt)}}return vt},GetIntrinsic$1=getIntrinsic,$defineProperty$2=GetIntrinsic$1("%Object.defineProperty%",!0)||!1;if($defineProperty$2)try{$defineProperty$2({},"a",{value:1})}catch{$defineProperty$2=!1}var esDefineProperty=$defineProperty$2,GetIntrinsic=getIntrinsic,$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=esDefineProperty,$SyntaxError=syntax,$TypeError=type,gopd=gopd$1,defineDataProperty$1=function d(b,dt,ct){if(!b||typeof b!="object"&&typeof b!="function")throw new $TypeError("`obj` must be an object or a function`");if(typeof dt!="string"&&typeof dt!="symbol")throw new $TypeError("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError("`loose`, if provided, must be a boolean");var lt=arguments.length>3?arguments[3]:null,ht=arguments.length>4?arguments[4]:null,mt=arguments.length>5?arguments[5]:null,vt=arguments.length>6?arguments[6]:!1,kt=!!gopd&&gopd(b,dt);if($defineProperty$1)$defineProperty$1(b,dt,{configurable:mt===null&&kt?kt.configurable:!mt,enumerable:lt===null&&kt?kt.enumerable:!lt,value:ct,writable:ht===null&&kt?kt.writable:!ht});else if(vt||!lt&&!ht&&!mt)b[dt]=ct;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=esDefineProperty,hasPropertyDescriptors=function d(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function d(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,keys$2=objectKeys,hasSymbols=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",toStr=Object.prototype.toString,concat$1=Array.prototype.concat,defineDataProperty=defineDataProperty$1,isFunction$2=function(d){return typeof d=="function"&&toStr.call(d)==="[object Function]"},supportsDescriptors=hasPropertyDescriptors_1(),defineProperty=function(d,b,dt,ct){if(b in d){if(ct===!0){if(d[b]===dt)return}else if(!isFunction$2(ct)||!ct())return}supportsDescriptors?defineDataProperty(d,b,dt,!0):defineDataProperty(d,b,dt)},defineProperties$1=function(d,b){var dt=arguments.length>2?arguments[2]:{},ct=keys$2(b);hasSymbols&&(ct=concat$1.call(ct,Object.getOwnPropertySymbols(b)));for(var lt=0;lt=this.max&&dt._n(b)},d.prototype._e=function(b){var dt=this.out;dt!==NO&&dt._e(b)},d.prototype._c=function(){var b=this.out;b!==NO&&b._c()},d}(),EndWhenListener=function(){function d(b,dt){this.out=b,this.op=dt}return d.prototype._n=function(){this.op.end()},d.prototype._e=function(b){this.out._e(b)},d.prototype._c=function(){this.op.end()},d}(),EndWhen=function(){function d(b,dt){this.type="endWhen",this.ins=dt,this.out=NO,this.o=b,this.oil=NO_IL}return d.prototype._start=function(b){this.out=b,this.o._add(this.oil=new EndWhenListener(b,this)),this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.o._remove(this.oil),this.out=NO,this.oil=NO_IL},d.prototype.end=function(){var b=this.out;b!==NO&&b._c()},d.prototype._n=function(b){var dt=this.out;dt!==NO&&dt._n(b)},d.prototype._e=function(b){var dt=this.out;dt!==NO&&dt._e(b)},d.prototype._c=function(){this.end()},d}(),Filter=function(){function d(b,dt){this.type="filter",this.ins=dt,this.out=NO,this.f=b}return d.prototype._start=function(b){this.out=b,this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.out=NO},d.prototype._n=function(b){var dt=this.out;if(dt!==NO){var ct=_try(this,b,dt);ct===NO||!ct||dt._n(b)}},d.prototype._e=function(b){var dt=this.out;dt!==NO&&dt._e(b)},d.prototype._c=function(){var b=this.out;b!==NO&&b._c()},d}(),FlattenListener=function(){function d(b,dt){this.out=b,this.op=dt}return d.prototype._n=function(b){this.out._n(b)},d.prototype._e=function(b){this.out._e(b)},d.prototype._c=function(){this.op.inner=NO,this.op.less()},d}(),Flatten=function(){function d(b){this.type="flatten",this.ins=b,this.out=NO,this.open=!0,this.inner=NO,this.il=NO_IL}return d.prototype._start=function(b){this.out=b,this.open=!0,this.inner=NO,this.il=NO_IL,this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.inner!==NO&&this.inner._remove(this.il),this.out=NO,this.open=!0,this.inner=NO,this.il=NO_IL},d.prototype.less=function(){var b=this.out;b!==NO&&!this.open&&this.inner===NO&&b._c()},d.prototype._n=function(b){var dt=this.out;if(dt!==NO){var ct=this,lt=ct.inner,ht=ct.il;lt!==NO&&ht!==NO_IL&<._remove(ht),(this.inner=b)._add(this.il=new FlattenListener(dt,this))}},d.prototype._e=function(b){var dt=this.out;dt!==NO&&dt._e(b)},d.prototype._c=function(){this.open=!1,this.less()},d}(),Fold=function(){function d(b,dt,ct){var lt=this;this.type="fold",this.ins=ct,this.out=NO,this.f=function(ht){return b(lt.acc,ht)},this.acc=this.seed=dt}return d.prototype._start=function(b){this.out=b,this.acc=this.seed,b._n(this.acc),this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.out=NO,this.acc=this.seed},d.prototype._n=function(b){var dt=this.out;if(dt!==NO){var ct=_try(this,b,dt);ct!==NO&&dt._n(this.acc=ct)}},d.prototype._e=function(b){var dt=this.out;dt!==NO&&dt._e(b)},d.prototype._c=function(){var b=this.out;b!==NO&&b._c()},d}(),Last=function(){function d(b){this.type="last",this.ins=b,this.out=NO,this.has=!1,this.val=NO}return d.prototype._start=function(b){this.out=b,this.has=!1,this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.out=NO,this.val=NO},d.prototype._n=function(b){this.has=!0,this.val=b},d.prototype._e=function(b){var dt=this.out;dt!==NO&&dt._e(b)},d.prototype._c=function(){var b=this.out;b!==NO&&(this.has?(b._n(this.val),b._c()):b._e(new Error("last() failed because input stream completed")))},d}(),MapOp=function(){function d(b,dt){this.type="map",this.ins=dt,this.out=NO,this.f=b}return d.prototype._start=function(b){this.out=b,this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.out=NO},d.prototype._n=function(b){var dt=this.out;if(dt!==NO){var ct=_try(this,b,dt);ct!==NO&&dt._n(ct)}},d.prototype._e=function(b){var dt=this.out;dt!==NO&&dt._e(b)},d.prototype._c=function(){var b=this.out;b!==NO&&b._c()},d}(),Remember=function(){function d(b){this.type="remember",this.ins=b,this.out=NO}return d.prototype._start=function(b){this.out=b,this.ins._add(b)},d.prototype._stop=function(){this.ins._remove(this.out),this.out=NO},d}(),ReplaceError=function(){function d(b,dt){this.type="replaceError",this.ins=dt,this.out=NO,this.f=b}return d.prototype._start=function(b){this.out=b,this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.out=NO},d.prototype._n=function(b){var dt=this.out;dt!==NO&&dt._n(b)},d.prototype._e=function(b){var dt=this.out;if(dt!==NO)try{this.ins._remove(this),(this.ins=this.f(b))._add(this)}catch(ct){dt._e(ct)}},d.prototype._c=function(){var b=this.out;b!==NO&&b._c()},d}(),StartWith=function(){function d(b,dt){this.type="startWith",this.ins=b,this.out=NO,this.val=dt}return d.prototype._start=function(b){this.out=b,this.out._n(this.val),this.ins._add(b)},d.prototype._stop=function(){this.ins._remove(this.out),this.out=NO},d}(),Take=function(){function d(b,dt){this.type="take",this.ins=dt,this.out=NO,this.max=b,this.taken=0}return d.prototype._start=function(b){this.out=b,this.taken=0,this.max<=0?b._c():this.ins._add(this)},d.prototype._stop=function(){this.ins._remove(this),this.out=NO},d.prototype._n=function(b){var dt=this.out;if(dt!==NO){var ct=++this.taken;ct1))if(this._stopID!==NO)clearTimeout(this._stopID),this._stopID=NO;else{var lt=this._prod;lt!==NO&<._start(this)}},d.prototype._remove=function(b){var dt=this,ct=this._target;if(ct)return ct._remove(b);var lt=this._ils,ht=lt.indexOf(b);ht>-1&&(lt.splice(ht,1),this._prod!==NO&<.length<=0?(this._err=NO,this._stopID=setTimeout(function(){return dt._stopNow()})):lt.length===1&&this._pruneCycles())},d.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])},d.prototype._hasNoSinks=function(b,dt){if(dt.indexOf(b)!==-1)return!0;if(b.out===this)return!0;if(b.out&&b.out!==NO)return this._hasNoSinks(b.out,dt.concat(b));if(b._ils){for(var ct=0,lt=b._ils.length;ct1){this._has&&dt._n(this._v);return}if(this._stopID!==NO)this._has&&dt._n(this._v),clearTimeout(this._stopID),this._stopID=NO;else if(this._has)dt._n(this._v);else{var ht=this._prod;ht!==NO&&ht._start(this)}},b.prototype._stopNow=function(){this._has=!1,d.prototype._stopNow.call(this)},b.prototype._x=function(){this._has=!1,d.prototype._x.call(this)},b.prototype.map=function(dt){return this._map(dt)},b.prototype.mapTo=function(dt){return d.prototype.mapTo.call(this,dt)},b.prototype.take=function(dt){return d.prototype.take.call(this,dt)},b.prototype.endWhen=function(dt){return d.prototype.endWhen.call(this,dt)},b.prototype.replaceError=function(dt){return d.prototype.replaceError.call(this,dt)},b.prototype.remember=function(){return this},b.prototype.debug=function(dt){return d.prototype.debug.call(this,dt)},b}(Stream);xstream.MemoryStream=MemoryStream;var xs=Stream;xstream.default=xs;Object.defineProperty(concat$2,"__esModule",{value:!0});concat$2.concat=void 0;const xstream_1$5=xstream;function concat(...d){const b=new Array,dt=new Array,ct=new Set;let lt=0;function ht(){for(;b.length>0;)b.shift().unsubscribe();dt.length=0,ct.clear(),lt=0}const mt={start:vt=>{d.forEach(Jt=>dt.push([]));function kt(Jt){for(;;){const Zt=dt[Jt].shift();if(Zt===void 0)return;vt.next(Zt)}}function Pt(){return lt>=d.length}if(Pt()){vt.complete();return}d.forEach((Jt,Zt)=>{b.push(Jt.subscribe({next:Rt=>{Zt===lt?vt.next(Rt):dt[Zt].push(Rt)},complete:()=>{for(ct.add(Zt);ct.has(lt);)kt(lt),lt++;Pt()?vt.complete():kt(lt)},error:Rt=>{vt.error(Rt),ht()}}))})},stop:()=>{ht()}};return xstream_1$5.Stream.create(mt)}concat$2.concat=concat;var defaultvalueproducer={};Object.defineProperty(defaultvalueproducer,"__esModule",{value:!0});defaultvalueproducer.DefaultValueProducer=void 0;class DefaultValueProducer{get value(){return this.internalValue}constructor(b,dt){this.callbacks=dt,this.internalValue=b}update(b){this.internalValue=b,this.listener&&this.listener.next(b)}error(b){this.listener&&this.listener.error(b)}start(b){this.listener=b,b.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}}defaultvalueproducer.DefaultValueProducer=DefaultValueProducer;var dropduplicates={};Object.defineProperty(dropduplicates,"__esModule",{value:!0});dropduplicates.dropDuplicates=void 0;function dropDuplicates(d){return dt=>{const ct=new Set;return dt.filter(ht=>!ct.has(d(ht))).debug(ht=>ct.add(d(ht)))}}dropduplicates.dropDuplicates=dropDuplicates;var promise={};Object.defineProperty(promise,"__esModule",{value:!0});promise.firstEvent=promise.toListPromise=promise.fromListPromise=void 0;const xstream_1$4=xstream;function fromListPromise(d){const b={start:dt=>{d.then(ct=>{for(const lt of ct)dt.next(lt);dt.complete()}).catch(ct=>dt.error(ct))},stop:()=>{}};return xstream_1$4.Stream.create(b)}promise.fromListPromise=fromListPromise;async function toListPromise(d,b){return new Promise((dt,ct)=>{if(b===0){dt([]);return}const lt=new Array;d.take(b).subscribe({next:ht=>{lt.push(ht),lt.length===b&&dt(lt)},complete:()=>{ct(`Stream completed before all events could be collected. Collected ${lt.length}, expected ${b}`)},error:ht=>ct(ht)})})}promise.toListPromise=toListPromise;async function firstEvent(d){return(await toListPromise(d,1))[0]}promise.firstEvent=firstEvent;var reducer={};Object.defineProperty(reducer,"__esModule",{value:!0});reducer.lastValue=reducer.asArray=reducer.countStream=reducer.Reducer=void 0;class Reducer{constructor(b,dt,ct){this.stream=b,this.reducer=dt,this.state=ct,this.completed=new Promise((lt,ht)=>{const mt=this.stream.subscribe({next:vt=>{this.state=this.reducer(this.state,vt)},complete:()=>{lt(),mt.unsubscribe()},error:vt=>{ht(vt),mt.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}}reducer.Reducer=Reducer;function increment(d,b){return d+1}function countStream(d){return new Reducer(d,increment,0)}reducer.countStream=countStream;function append(d,b){return[...d,b]}function asArray(d){return new Reducer(d,append,[])}reducer.asArray=asArray;function last(d,b){return b}function lastValue(d){return new Reducer(d,last,void 0)}reducer.lastValue=lastValue;var valueandupdates={};Object.defineProperty(valueandupdates,"__esModule",{value:!0});valueandupdates.ValueAndUpdates=void 0;const xstream_1$3=xstream;class ValueAndUpdates{get value(){return this.producer.value}constructor(b){this.producer=b,this.updates=xstream_1$3.MemoryStream.createWithMemory(this.producer)}async waitFor(b){const dt=typeof b=="function"?b:ct=>ct===b;return new Promise((ct,lt)=>{const ht=this.updates.subscribe({next:mt=>{dt(mt)&&(ct(mt),setTimeout(()=>ht.unsubscribe(),0))},complete:()=>{ht.unsubscribe(),lt("Update stream completed without expected value")},error:mt=>{lt(mt)}})})}}valueandupdates.ValueAndUpdates=ValueAndUpdates;(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(kt,Pt,Jt,Zt){Zt===void 0&&(Zt=Jt);var Rt=Object.getOwnPropertyDescriptor(Pt,Jt);(!Rt||("get"in Rt?!Pt.__esModule:Rt.writable||Rt.configurable))&&(Rt={enumerable:!0,get:function(){return Pt[Jt]}}),Object.defineProperty(kt,Zt,Rt)}:function(kt,Pt,Jt,Zt){Zt===void 0&&(Zt=Jt),kt[Zt]=Pt[Jt]}),dt=commonjsGlobal&&commonjsGlobal.__exportStar||function(kt,Pt){for(var Jt in kt)Jt!=="default"&&!Object.prototype.hasOwnProperty.call(Pt,Jt)&&b(Pt,kt,Jt)};Object.defineProperty(d,"__esModule",{value:!0}),d.ValueAndUpdates=d.toListPromise=d.fromListPromise=d.firstEvent=d.dropDuplicates=d.DefaultValueProducer=d.concat=void 0;var ct=concat$2;Object.defineProperty(d,"concat",{enumerable:!0,get:function(){return ct.concat}});var lt=defaultvalueproducer;Object.defineProperty(d,"DefaultValueProducer",{enumerable:!0,get:function(){return lt.DefaultValueProducer}});var ht=dropduplicates;Object.defineProperty(d,"dropDuplicates",{enumerable:!0,get:function(){return ht.dropDuplicates}});var mt=promise;Object.defineProperty(d,"firstEvent",{enumerable:!0,get:function(){return mt.firstEvent}}),Object.defineProperty(d,"fromListPromise",{enumerable:!0,get:function(){return mt.fromListPromise}}),Object.defineProperty(d,"toListPromise",{enumerable:!0,get:function(){return mt.toListPromise}}),dt(reducer,d);var vt=valueandupdates;Object.defineProperty(d,"ValueAndUpdates",{enumerable:!0,get:function(){return vt.ValueAndUpdates}})})(build$4);Object.defineProperty(queryclient,"__esModule",{value:!0});queryclient.QueryClient=void 0;const ics23_1=build$5,encoding_1$k=build$6,stream_1$2=build$4,utils_1$c=build$9;function checkAndParseOp(d,b,dt){if(d.type!==b)throw new Error(`Op expected to be ${b}, got "${d.type}`);if(!(0,utils_1$c.arrayContentEquals)(dt,d.key))throw new Error(`Proven key different than queried key. Query: ${(0,encoding_1$k.toHex)(dt)} Proven: ${(0,encoding_1$k.toHex)(d.key)}`);return ics23_1.ics23.CommitmentProof.decode(d.data)}let QueryClient$1=class p2{static withExtensions(b,...dt){const ct=new p2(b),lt=dt.map(ht=>ht(ct));for(const ht of lt){(0,utils_1$c.assert)((0,utils_1$c.isNonNullObject)(ht),"Extension must be a non-null object");for(const[mt,vt]of Object.entries(ht)){(0,utils_1$c.assert)((0,utils_1$c.isNonNullObject)(vt),`Module must be a non-null object. Found type ${typeof vt} for module "${mt}".`);const kt=ct[mt]||{};ct[mt]={...kt,...vt}}}return ct}constructor(b){this.tmClient=b}async queryStoreVerified(b,dt,ct){const{height:lt,proof:ht,key:mt,value:vt}=await this.queryRawProof(b,dt,ct),kt=checkAndParseOp(ht.ops[0],"ics23:iavl",dt),Pt=checkAndParseOp(ht.ops[1],"ics23:simple",(0,encoding_1$k.toAscii)(b));(0,utils_1$c.assert)(Pt.exist),(0,utils_1$c.assert)(Pt.exist.value),!vt||vt.length===0?((0,utils_1$c.assert)(kt.nonexist),(0,ics23_1.verifyNonExistence)(kt.nonexist,ics23_1.iavlSpec,Pt.exist.value,dt)):((0,utils_1$c.assert)(kt.exist),(0,utils_1$c.assert)(kt.exist.value),(0,ics23_1.verifyExistence)(kt.exist,ics23_1.iavlSpec,Pt.exist.value,dt,vt));const Jt=await this.getNextHeader(lt);return(0,ics23_1.verifyExistence)(Pt.exist,ics23_1.tendermintSpec,Jt.appHash,(0,encoding_1$k.toAscii)(b),Pt.exist.value),{key:mt,value:vt,height:lt}}async queryRawProof(b,dt,ct){const{key:lt,value:ht,height:mt,proof:vt,code:kt,log:Pt}=await this.tmClient.abciQuery({path:`/store/${b}/key`,data:dt,prove:!0,height:ct});if(kt)throw new Error(`Query failed with (${kt}): ${Pt}`);if(!(0,utils_1$c.arrayContentEquals)(dt,lt))throw new Error(`Response key ${(0,encoding_1$k.toHex)(lt)} doesn't match query key ${(0,encoding_1$k.toHex)(dt)}`);if(!mt)throw new Error("No query height returned");if(!vt||vt.ops.length!==2)throw new Error(`Expected 2 proof ops, got ${(vt==null?void 0:vt.ops.length)??0}. Are you using stargate?`);return checkAndParseOp(vt.ops[0],"ics23:iavl",lt),checkAndParseOp(vt.ops[1],"ics23:simple",(0,encoding_1$k.toAscii)(b)),{key:lt,value:ht,height:mt,proof:{ops:[...vt.ops]}}}async queryAbci(b,dt,ct){const lt=await this.tmClient.abciQuery({path:b,data:dt,prove:!1,height:ct});if(lt.code)throw new Error(`Query failed with (${lt.code}): ${lt.log}`);if(!lt.height)throw new Error("No query height returned");return{value:lt.value,height:lt.height}}async getNextHeader(b){if((0,utils_1$c.assertDefined)(b),b===0)throw new Error("Query returned height 0, cannot prove it");const dt=b+1;let ct,lt;try{lt=this.tmClient.subscribeNewBlockHeader()}catch{}if(lt){const ht=await(0,stream_1$2.firstEvent)(lt);ht.height===dt&&(ct=ht)}for(;!ct;){const ht=(await this.tmClient.blockchain(b,dt)).blockMetas.map(mt=>mt.header).find(mt=>mt.height===dt);ht?ct=ht:await(0,utils_1$c.sleep)(1e3)}return(0,utils_1$c.assert)(ct.height===dt,"Got wrong header. This is a bug in the logic above."),ct}};queryclient.QueryClient=QueryClient$1;var utils$e={},__importDefault$x=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(utils$e,"__esModule",{value:!0});utils$e.decodeCosmosSdkDecFromProto=utils$e.longify=utils$e.createProtobufRpcClient=utils$e.createPagination=utils$e.toAccAddress=void 0;const encoding_1$j=build$6,math_1$b=build$f,pagination_1=pagination$3,long_1$k=__importDefault$x(long);function toAccAddress(d){return(0,encoding_1$j.fromBech32)(d).data}utils$e.toAccAddress=toAccAddress;function createPagination$1(d){return d?pagination_1.PageRequest.fromPartial({key:d}):void 0}utils$e.createPagination=createPagination$1;function createProtobufRpcClient(d){return{request:async(b,dt,ct)=>{const lt=`/${b}/${dt}`;return(await d.queryAbci(lt,ct,void 0)).value}}}utils$e.createProtobufRpcClient=createProtobufRpcClient;function longify(d){const b=math_1$b.Uint64.fromString(d.toString());return long_1$k.default.fromBytesBE([...b.toBytesBigEndian()],!0)}utils$e.longify=longify;function decodeCosmosSdkDecFromProto(d){const b=typeof d=="string"?d:(0,encoding_1$j.fromAscii)(d);return math_1$b.Decimal.fromAtomics(b,18)}utils$e.decodeCosmosSdkDecFromProto=decodeCosmosSdkDecFromProto;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.longify=d.decodeCosmosSdkDecFromProto=d.createProtobufRpcClient=d.createPagination=d.QueryClient=void 0;var b=queryclient;Object.defineProperty(d,"QueryClient",{enumerable:!0,get:function(){return b.QueryClient}});var dt=utils$e;Object.defineProperty(d,"createPagination",{enumerable:!0,get:function(){return dt.createPagination}}),Object.defineProperty(d,"createProtobufRpcClient",{enumerable:!0,get:function(){return dt.createProtobufRpcClient}}),Object.defineProperty(d,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return dt.decodeCosmosSdkDecFromProto}}),Object.defineProperty(d,"longify",{enumerable:!0,get:function(){return dt.longify}})})(queryclient$1);Object.defineProperty(queries$c,"__esModule",{value:!0});queries$c.setupAuthExtension=void 0;const query_1$h=query$m,queryclient_1$d=queryclient$1;function setupAuthExtension(d){const b=(0,queryclient_1$d.createProtobufRpcClient)(d),dt=new query_1$h.QueryClientImpl(b);return{auth:{account:async ct=>{const{account:lt}=await dt.Account({address:ct});return lt??null}}}}queries$c.setupAuthExtension=setupAuthExtension;var aminomessages$c={};Object.defineProperty(aminomessages$c,"__esModule",{value:!0});aminomessages$c.createAuthzAminoConverters=void 0;function createAuthzAminoConverters(){return{}}aminomessages$c.createAuthzAminoConverters=createAuthzAminoConverters;var messages$a={},tx$p={},authz$1={},timestamp$1={},__createBinding$p=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$p=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$p=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$p(b,d,dt);return __setModuleDefault$p(b,d),b};Object.defineProperty(timestamp$1,"__esModule",{value:!0});timestamp$1.Timestamp=timestamp$1.protobufPackage=void 0;const helpers_1$i=helpers$1,_m0$j=__importStar$p(minimal$4);timestamp$1.protobufPackage="google.protobuf";function createBaseTimestamp$1(){return{seconds:helpers_1$i.Long.ZERO,nanos:0}}timestamp$1.Timestamp={encode(d,b=_m0$j.Writer.create()){return d.seconds.isZero()||b.uint32(8).int64(d.seconds),d.nanos!==0&&b.uint32(16).int32(d.nanos),b},decode(d,b){const dt=d instanceof _m0$j.Reader?d:new _m0$j.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseTimestamp$1();for(;dt.pos>>3){case 1:lt.seconds=dt.int64();break;case 2:lt.nanos=dt.int32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{seconds:(0,helpers_1$i.isSet)(d.seconds)?helpers_1$i.Long.fromValue(d.seconds):helpers_1$i.Long.ZERO,nanos:(0,helpers_1$i.isSet)(d.nanos)?Number(d.nanos):0}},toJSON(d){const b={};return d.seconds!==void 0&&(b.seconds=(d.seconds||helpers_1$i.Long.ZERO).toString()),d.nanos!==void 0&&(b.nanos=Math.round(d.nanos)),b},fromPartial(d){const b=createBaseTimestamp$1();return b.seconds=d.seconds!==void 0&&d.seconds!==null?helpers_1$i.Long.fromValue(d.seconds):helpers_1$i.Long.ZERO,b.nanos=d.nanos??0,b}};var __createBinding$o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$o=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$o=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$o(b,d,dt);return __setModuleDefault$o(b,d),b};Object.defineProperty(authz$1,"__esModule",{value:!0});authz$1.GrantQueueItem=authz$1.GrantAuthorization=authz$1.Grant=authz$1.GenericAuthorization=authz$1.protobufPackage=void 0;const any_1$2=any$1,timestamp_1$2=timestamp$1,_m0$i=__importStar$o(minimal$4),helpers_1$h=helpers$1;authz$1.protobufPackage="cosmos.authz.v1beta1";function createBaseGenericAuthorization$1(){return{msg:""}}authz$1.GenericAuthorization={encode(d,b=_m0$i.Writer.create()){return d.msg!==""&&b.uint32(10).string(d.msg),b},decode(d,b){const dt=d instanceof _m0$i.Reader?d:new _m0$i.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGenericAuthorization$1();for(;dt.pos>>3){case 1:lt.msg=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{msg:(0,helpers_1$h.isSet)(d.msg)?String(d.msg):""}},toJSON(d){const b={};return d.msg!==void 0&&(b.msg=d.msg),b},fromPartial(d){const b=createBaseGenericAuthorization$1();return b.msg=d.msg??"",b}};function createBaseGrant$1(){return{authorization:void 0,expiration:void 0}}authz$1.Grant={encode(d,b=_m0$i.Writer.create()){return d.authorization!==void 0&&any_1$2.Any.encode(d.authorization,b.uint32(10).fork()).ldelim(),d.expiration!==void 0&×tamp_1$2.Timestamp.encode(d.expiration,b.uint32(18).fork()).ldelim(),b},decode(d,b){const dt=d instanceof _m0$i.Reader?d:new _m0$i.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGrant$1();for(;dt.pos>>3){case 1:lt.authorization=any_1$2.Any.decode(dt,dt.uint32());break;case 2:lt.expiration=timestamp_1$2.Timestamp.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{authorization:(0,helpers_1$h.isSet)(d.authorization)?any_1$2.Any.fromJSON(d.authorization):void 0,expiration:(0,helpers_1$h.isSet)(d.expiration)?(0,helpers_1$h.fromJsonTimestamp)(d.expiration):void 0}},toJSON(d){const b={};return d.authorization!==void 0&&(b.authorization=d.authorization?any_1$2.Any.toJSON(d.authorization):void 0),d.expiration!==void 0&&(b.expiration=(0,helpers_1$h.fromTimestamp)(d.expiration).toISOString()),b},fromPartial(d){const b=createBaseGrant$1();return b.authorization=d.authorization!==void 0&&d.authorization!==null?any_1$2.Any.fromPartial(d.authorization):void 0,b.expiration=d.expiration!==void 0&&d.expiration!==null?timestamp_1$2.Timestamp.fromPartial(d.expiration):void 0,b}};function createBaseGrantAuthorization$1(){return{granter:"",grantee:"",authorization:void 0,expiration:void 0}}authz$1.GrantAuthorization={encode(d,b=_m0$i.Writer.create()){return d.granter!==""&&b.uint32(10).string(d.granter),d.grantee!==""&&b.uint32(18).string(d.grantee),d.authorization!==void 0&&any_1$2.Any.encode(d.authorization,b.uint32(26).fork()).ldelim(),d.expiration!==void 0&×tamp_1$2.Timestamp.encode(d.expiration,b.uint32(34).fork()).ldelim(),b},decode(d,b){const dt=d instanceof _m0$i.Reader?d:new _m0$i.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGrantAuthorization$1();for(;dt.pos>>3){case 1:lt.granter=dt.string();break;case 2:lt.grantee=dt.string();break;case 3:lt.authorization=any_1$2.Any.decode(dt,dt.uint32());break;case 4:lt.expiration=timestamp_1$2.Timestamp.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{granter:(0,helpers_1$h.isSet)(d.granter)?String(d.granter):"",grantee:(0,helpers_1$h.isSet)(d.grantee)?String(d.grantee):"",authorization:(0,helpers_1$h.isSet)(d.authorization)?any_1$2.Any.fromJSON(d.authorization):void 0,expiration:(0,helpers_1$h.isSet)(d.expiration)?(0,helpers_1$h.fromJsonTimestamp)(d.expiration):void 0}},toJSON(d){const b={};return d.granter!==void 0&&(b.granter=d.granter),d.grantee!==void 0&&(b.grantee=d.grantee),d.authorization!==void 0&&(b.authorization=d.authorization?any_1$2.Any.toJSON(d.authorization):void 0),d.expiration!==void 0&&(b.expiration=(0,helpers_1$h.fromTimestamp)(d.expiration).toISOString()),b},fromPartial(d){const b=createBaseGrantAuthorization$1();return b.granter=d.granter??"",b.grantee=d.grantee??"",b.authorization=d.authorization!==void 0&&d.authorization!==null?any_1$2.Any.fromPartial(d.authorization):void 0,b.expiration=d.expiration!==void 0&&d.expiration!==null?timestamp_1$2.Timestamp.fromPartial(d.expiration):void 0,b}};function createBaseGrantQueueItem(){return{msgTypeUrls:[]}}authz$1.GrantQueueItem={encode(d,b=_m0$i.Writer.create()){for(const dt of d.msgTypeUrls)b.uint32(10).string(dt);return b},decode(d,b){const dt=d instanceof _m0$i.Reader?d:new _m0$i.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGrantQueueItem();for(;dt.pos>>3){case 1:lt.msgTypeUrls.push(dt.string());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{msgTypeUrls:Array.isArray(d==null?void 0:d.msgTypeUrls)?d.msgTypeUrls.map(b=>String(b)):[]}},toJSON(d){const b={};return d.msgTypeUrls?b.msgTypeUrls=d.msgTypeUrls.map(dt=>dt):b.msgTypeUrls=[],b},fromPartial(d){var dt;const b=createBaseGrantQueueItem();return b.msgTypeUrls=((dt=d.msgTypeUrls)==null?void 0:dt.map(ct=>ct))||[],b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgRevokeResponse=d.MsgRevoke=d.MsgGrantResponse=d.MsgExec=d.MsgExecResponse=d.MsgGrant=d.protobufPackage=void 0;const lt=authz$1,ht=any$1,mt=ct(minimal$4),vt=helpers$1;d.protobufPackage="cosmos.authz.v1beta1";function kt(){return{granter:"",grantee:"",grant:void 0}}d.MsgGrant={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),wt.grant!==void 0&<.Grant.encode(wt.grant,Nt.uint32(26).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;case 3:Bt.grant=lt.Grant.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",grant:(0,vt.isSet)(wt.grant)?lt.Grant.fromJSON(wt.grant):void 0}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.grant!==void 0&&(Nt.grant=wt.grant?lt.Grant.toJSON(wt.grant):void 0),Nt},fromPartial(wt){const Nt=kt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt.grant=wt.grant!==void 0&&wt.grant!==null?lt.Grant.fromPartial(wt.grant):void 0,Nt}};function Pt(){return{results:[]}}d.MsgExecResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.results)Nt.uint32(10).bytes(xt);return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.results.push(xt.bytes());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{results:Array.isArray(wt==null?void 0:wt.results)?wt.results.map(Nt=>(0,vt.bytesFromBase64)(Nt)):[]}},toJSON(wt){const Nt={};return wt.results?Nt.results=wt.results.map(xt=>(0,vt.base64FromBytes)(xt!==void 0?xt:new Uint8Array)):Nt.results=[],Nt},fromPartial(wt){var xt;const Nt=Pt();return Nt.results=((xt=wt.results)==null?void 0:xt.map(Et=>Et))||[],Nt}};function Jt(){return{grantee:"",msgs:[]}}d.MsgExec={encode(wt,Nt=mt.Writer.create()){wt.grantee!==""&&Nt.uint32(10).string(wt.grantee);for(const xt of wt.msgs)ht.Any.encode(xt,Nt.uint32(18).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.grantee=xt.string();break;case 2:Bt.msgs.push(ht.Any.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",msgs:Array.isArray(wt==null?void 0:wt.msgs)?wt.msgs.map(Nt=>ht.Any.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.msgs?Nt.msgs=wt.msgs.map(xt=>xt?ht.Any.toJSON(xt):void 0):Nt.msgs=[],Nt},fromPartial(wt){var xt;const Nt=Jt();return Nt.grantee=wt.grantee??"",Nt.msgs=((xt=wt.msgs)==null?void 0:xt.map(Et=>ht.Any.fromPartial(Et)))||[],Nt}};function Zt(){return{}}d.MsgGrantResponse={encode(wt,Nt=mt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Zt()}};function Rt(){return{granter:"",grantee:"",msgTypeUrl:""}}d.MsgRevoke={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),wt.msgTypeUrl!==""&&Nt.uint32(26).string(wt.msgTypeUrl),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;case 3:Bt.msgTypeUrl=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",msgTypeUrl:(0,vt.isSet)(wt.msgTypeUrl)?String(wt.msgTypeUrl):""}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.msgTypeUrl!==void 0&&(Nt.msgTypeUrl=wt.msgTypeUrl),Nt},fromPartial(wt){const Nt=Rt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt.msgTypeUrl=wt.msgTypeUrl??"",Nt}};function nn(){return{}}d.MsgRevokeResponse={encode(wt,Nt=mt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return nn()}};class Qt{constructor(Nt){this.rpc=Nt,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(Nt){const xt=d.MsgGrant.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",xt).then(Bt=>d.MsgGrantResponse.decode(new mt.Reader(Bt)))}Exec(Nt){const xt=d.MsgExec.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",xt).then(Bt=>d.MsgExecResponse.decode(new mt.Reader(Bt)))}Revoke(Nt){const xt=d.MsgRevoke.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",xt).then(Bt=>d.MsgRevokeResponse.decode(new mt.Reader(Bt)))}}d.MsgClientImpl=Qt})(tx$p);Object.defineProperty(messages$a,"__esModule",{value:!0});messages$a.authzTypes=void 0;const tx_1$e=tx$p;messages$a.authzTypes=[["/cosmos.authz.v1beta1.MsgExec",tx_1$e.MsgExec],["/cosmos.authz.v1beta1.MsgGrant",tx_1$e.MsgGrant],["/cosmos.authz.v1beta1.MsgRevoke",tx_1$e.MsgRevoke]];var queries$b={},query$l={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryGranteeGrantsResponse=d.QueryGranteeGrantsRequest=d.QueryGranterGrantsResponse=d.QueryGranterGrantsRequest=d.QueryGrantsResponse=d.QueryGrantsRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=authz$1,mt=ct(minimal$4),vt=helpers$1;d.protobufPackage="cosmos.authz.v1beta1";function kt(){return{granter:"",grantee:"",msgTypeUrl:"",pagination:void 0}}d.QueryGrantsRequest={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),wt.msgTypeUrl!==""&&Nt.uint32(26).string(wt.msgTypeUrl),wt.pagination!==void 0&<.PageRequest.encode(wt.pagination,Nt.uint32(34).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;case 3:Bt.msgTypeUrl=xt.string();break;case 4:Bt.pagination=lt.PageRequest.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",msgTypeUrl:(0,vt.isSet)(wt.msgTypeUrl)?String(wt.msgTypeUrl):"",pagination:(0,vt.isSet)(wt.pagination)?lt.PageRequest.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.msgTypeUrl!==void 0&&(Nt.msgTypeUrl=wt.msgTypeUrl),wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageRequest.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){const Nt=kt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt.msgTypeUrl=wt.msgTypeUrl??"",Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageRequest.fromPartial(wt.pagination):void 0,Nt}};function Pt(){return{grants:[],pagination:void 0}}d.QueryGrantsResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.grants)ht.Grant.encode(xt,Nt.uint32(10).fork()).ldelim();return wt.pagination!==void 0&<.PageResponse.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.grants.push(ht.Grant.decode(xt,xt.uint32()));break;case 2:Bt.pagination=lt.PageResponse.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grants:Array.isArray(wt==null?void 0:wt.grants)?wt.grants.map(Nt=>ht.Grant.fromJSON(Nt)):[],pagination:(0,vt.isSet)(wt.pagination)?lt.PageResponse.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.grants?Nt.grants=wt.grants.map(xt=>xt?ht.Grant.toJSON(xt):void 0):Nt.grants=[],wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageResponse.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){var xt;const Nt=Pt();return Nt.grants=((xt=wt.grants)==null?void 0:xt.map(Et=>ht.Grant.fromPartial(Et)))||[],Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageResponse.fromPartial(wt.pagination):void 0,Nt}};function Jt(){return{granter:"",pagination:void 0}}d.QueryGranterGrantsRequest={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.pagination!==void 0&<.PageRequest.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.pagination=lt.PageRequest.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",pagination:(0,vt.isSet)(wt.pagination)?lt.PageRequest.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageRequest.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){const Nt=Jt();return Nt.granter=wt.granter??"",Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageRequest.fromPartial(wt.pagination):void 0,Nt}};function Zt(){return{grants:[],pagination:void 0}}d.QueryGranterGrantsResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.grants)ht.GrantAuthorization.encode(xt,Nt.uint32(10).fork()).ldelim();return wt.pagination!==void 0&<.PageResponse.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){case 1:Bt.grants.push(ht.GrantAuthorization.decode(xt,xt.uint32()));break;case 2:Bt.pagination=lt.PageResponse.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grants:Array.isArray(wt==null?void 0:wt.grants)?wt.grants.map(Nt=>ht.GrantAuthorization.fromJSON(Nt)):[],pagination:(0,vt.isSet)(wt.pagination)?lt.PageResponse.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.grants?Nt.grants=wt.grants.map(xt=>xt?ht.GrantAuthorization.toJSON(xt):void 0):Nt.grants=[],wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageResponse.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){var xt;const Nt=Zt();return Nt.grants=((xt=wt.grants)==null?void 0:xt.map(Et=>ht.GrantAuthorization.fromPartial(Et)))||[],Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageResponse.fromPartial(wt.pagination):void 0,Nt}};function Rt(){return{grantee:"",pagination:void 0}}d.QueryGranteeGrantsRequest={encode(wt,Nt=mt.Writer.create()){return wt.grantee!==""&&Nt.uint32(10).string(wt.grantee),wt.pagination!==void 0&<.PageRequest.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.grantee=xt.string();break;case 2:Bt.pagination=lt.PageRequest.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",pagination:(0,vt.isSet)(wt.pagination)?lt.PageRequest.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageRequest.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){const Nt=Rt();return Nt.grantee=wt.grantee??"",Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageRequest.fromPartial(wt.pagination):void 0,Nt}};function nn(){return{grants:[],pagination:void 0}}d.QueryGranteeGrantsResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.grants)ht.GrantAuthorization.encode(xt,Nt.uint32(10).fork()).ldelim();return wt.pagination!==void 0&<.PageResponse.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){case 1:Bt.grants.push(ht.GrantAuthorization.decode(xt,xt.uint32()));break;case 2:Bt.pagination=lt.PageResponse.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grants:Array.isArray(wt==null?void 0:wt.grants)?wt.grants.map(Nt=>ht.GrantAuthorization.fromJSON(Nt)):[],pagination:(0,vt.isSet)(wt.pagination)?lt.PageResponse.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.grants?Nt.grants=wt.grants.map(xt=>xt?ht.GrantAuthorization.toJSON(xt):void 0):Nt.grants=[],wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageResponse.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){var xt;const Nt=nn();return Nt.grants=((xt=wt.grants)==null?void 0:xt.map(Et=>ht.GrantAuthorization.fromPartial(Et)))||[],Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageResponse.fromPartial(wt.pagination):void 0,Nt}};class Qt{constructor(Nt){this.rpc=Nt,this.Grants=this.Grants.bind(this),this.GranterGrants=this.GranterGrants.bind(this),this.GranteeGrants=this.GranteeGrants.bind(this)}Grants(Nt){const xt=d.QueryGrantsRequest.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","Grants",xt).then(Bt=>d.QueryGrantsResponse.decode(new mt.Reader(Bt)))}GranterGrants(Nt){const xt=d.QueryGranterGrantsRequest.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranterGrants",xt).then(Bt=>d.QueryGranterGrantsResponse.decode(new mt.Reader(Bt)))}GranteeGrants(Nt){const xt=d.QueryGranteeGrantsRequest.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranteeGrants",xt).then(Bt=>d.QueryGranteeGrantsResponse.decode(new mt.Reader(Bt)))}}d.QueryClientImpl=Qt})(query$l);Object.defineProperty(queries$b,"__esModule",{value:!0});queries$b.setupAuthzExtension=void 0;const query_1$g=query$l,queryclient_1$c=queryclient$1;function setupAuthzExtension(d){const b=(0,queryclient_1$c.createProtobufRpcClient)(d),dt=new query_1$g.QueryClientImpl(b);return{authz:{grants:async(ct,lt,ht,mt)=>await dt.Grants({granter:ct,grantee:lt,msgTypeUrl:ht,pagination:(0,queryclient_1$c.createPagination)(mt)}),granteeGrants:async(ct,lt)=>await dt.GranteeGrants({grantee:ct,pagination:(0,queryclient_1$c.createPagination)(lt)}),granterGrants:async(ct,lt)=>await dt.GranterGrants({granter:ct,pagination:(0,queryclient_1$c.createPagination)(lt)})}}}queries$b.setupAuthzExtension=setupAuthzExtension;var aminomessages$b={};Object.defineProperty(aminomessages$b,"__esModule",{value:!0});aminomessages$b.createBankAminoConverters=aminomessages$b.isAminoMsgMultiSend=aminomessages$b.isAminoMsgSend=void 0;function isAminoMsgSend(d){return d.type==="cosmos-sdk/MsgSend"}aminomessages$b.isAminoMsgSend=isAminoMsgSend;function isAminoMsgMultiSend(d){return d.type==="cosmos-sdk/MsgMultiSend"}aminomessages$b.isAminoMsgMultiSend=isAminoMsgMultiSend;function createBankAminoConverters(){return{"/cosmos.bank.v1beta1.MsgSend":{aminoType:"cosmos-sdk/MsgSend",toAmino:({fromAddress:d,toAddress:b,amount:dt})=>({from_address:d,to_address:b,amount:[...dt]}),fromAmino:({from_address:d,to_address:b,amount:dt})=>({fromAddress:d,toAddress:b,amount:[...dt]})},"/cosmos.bank.v1beta1.MsgMultiSend":{aminoType:"cosmos-sdk/MsgMultiSend",toAmino:({inputs:d,outputs:b})=>({inputs:d.map(dt=>({address:dt.address,coins:[...dt.coins]})),outputs:b.map(dt=>({address:dt.address,coins:[...dt.coins]}))}),fromAmino:({inputs:d,outputs:b})=>({inputs:d.map(dt=>({address:dt.address,coins:[...dt.coins]})),outputs:b.map(dt=>({address:dt.address,coins:[...dt.coins]}))})}}}aminomessages$b.createBankAminoConverters=createBankAminoConverters;var messages$9={};Object.defineProperty(messages$9,"__esModule",{value:!0});messages$9.isMsgSendEncodeObject=messages$9.bankTypes=void 0;const tx_1$d=tx$q;messages$9.bankTypes=[["/cosmos.bank.v1beta1.MsgMultiSend",tx_1$d.MsgMultiSend],["/cosmos.bank.v1beta1.MsgSend",tx_1$d.MsgSend]];function isMsgSendEncodeObject(d){return d.typeUrl==="/cosmos.bank.v1beta1.MsgSend"}messages$9.isMsgSendEncodeObject=isMsgSendEncodeObject;var queries$a={},query$k={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Vt,qt,fn,dn){dn===void 0&&(dn=fn);var Dt=Object.getOwnPropertyDescriptor(qt,fn);(!Dt||("get"in Dt?!qt.__esModule:Dt.writable||Dt.configurable))&&(Dt={enumerable:!0,get:function(){return qt[fn]}}),Object.defineProperty(Vt,dn,Dt)}:function(Vt,qt,fn,dn){dn===void 0&&(dn=fn),Vt[dn]=qt[fn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Vt,qt){Object.defineProperty(Vt,"default",{enumerable:!0,value:qt})}:function(Vt,qt){Vt.default=qt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Vt){if(Vt&&Vt.__esModule)return Vt;var qt={};if(Vt!=null)for(var fn in Vt)fn!=="default"&&Object.prototype.hasOwnProperty.call(Vt,fn)&&b(qt,Vt,fn);return dt(qt,Vt),qt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QuerySendEnabledResponse=d.QuerySendEnabledRequest=d.QueryDenomOwnersResponse=d.DenomOwner=d.QueryDenomOwnersRequest=d.QueryDenomMetadataResponse=d.QueryDenomMetadataRequest=d.QueryDenomsMetadataResponse=d.QueryDenomsMetadataRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QuerySupplyOfResponse=d.QuerySupplyOfRequest=d.QueryTotalSupplyResponse=d.QueryTotalSupplyRequest=d.QuerySpendableBalanceByDenomResponse=d.QuerySpendableBalanceByDenomRequest=d.QuerySpendableBalancesResponse=d.QuerySpendableBalancesRequest=d.QueryAllBalancesResponse=d.QueryAllBalancesRequest=d.QueryBalanceResponse=d.QueryBalanceRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=coin$3,mt=bank$1,vt=ct(minimal$4),kt=helpers$1;d.protobufPackage="cosmos.bank.v1beta1";function Pt(){return{address:"",denom:""}}d.QueryBalanceRequest={encode(Vt,qt=vt.Writer.create()){return Vt.address!==""&&qt.uint32(10).string(Vt.address),Vt.denom!==""&&qt.uint32(18).string(Vt.denom),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Pt();for(;fn.pos>>3){case 1:Dt.address=fn.string();break;case 2:Dt.denom=fn.string();break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{address:(0,kt.isSet)(Vt.address)?String(Vt.address):"",denom:(0,kt.isSet)(Vt.denom)?String(Vt.denom):""}},toJSON(Vt){const qt={};return Vt.address!==void 0&&(qt.address=Vt.address),Vt.denom!==void 0&&(qt.denom=Vt.denom),qt},fromPartial(Vt){const qt=Pt();return qt.address=Vt.address??"",qt.denom=Vt.denom??"",qt}};function Jt(){return{balance:void 0}}d.QueryBalanceResponse={encode(Vt,qt=vt.Writer.create()){return Vt.balance!==void 0&&ht.Coin.encode(Vt.balance,qt.uint32(10).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Jt();for(;fn.pos>>3){case 1:Dt.balance=ht.Coin.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{balance:(0,kt.isSet)(Vt.balance)?ht.Coin.fromJSON(Vt.balance):void 0}},toJSON(Vt){const qt={};return Vt.balance!==void 0&&(qt.balance=Vt.balance?ht.Coin.toJSON(Vt.balance):void 0),qt},fromPartial(Vt){const qt=Jt();return qt.balance=Vt.balance!==void 0&&Vt.balance!==null?ht.Coin.fromPartial(Vt.balance):void 0,qt}};function Zt(){return{address:"",pagination:void 0}}d.QueryAllBalancesRequest={encode(Vt,qt=vt.Writer.create()){return Vt.address!==""&&qt.uint32(10).string(Vt.address),Vt.pagination!==void 0&<.PageRequest.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Zt();for(;fn.pos>>3){case 1:Dt.address=fn.string();break;case 2:Dt.pagination=lt.PageRequest.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{address:(0,kt.isSet)(Vt.address)?String(Vt.address):"",pagination:(0,kt.isSet)(Vt.pagination)?lt.PageRequest.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.address!==void 0&&(qt.address=Vt.address),Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageRequest.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){const qt=Zt();return qt.address=Vt.address??"",qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageRequest.fromPartial(Vt.pagination):void 0,qt}};function Rt(){return{balances:[],pagination:void 0}}d.QueryAllBalancesResponse={encode(Vt,qt=vt.Writer.create()){for(const fn of Vt.balances)ht.Coin.encode(fn,qt.uint32(10).fork()).ldelim();return Vt.pagination!==void 0&<.PageResponse.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Rt();for(;fn.pos>>3){case 1:Dt.balances.push(ht.Coin.decode(fn,fn.uint32()));break;case 2:Dt.pagination=lt.PageResponse.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{balances:Array.isArray(Vt==null?void 0:Vt.balances)?Vt.balances.map(qt=>ht.Coin.fromJSON(qt)):[],pagination:(0,kt.isSet)(Vt.pagination)?lt.PageResponse.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.balances?qt.balances=Vt.balances.map(fn=>fn?ht.Coin.toJSON(fn):void 0):qt.balances=[],Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageResponse.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){var fn;const qt=Rt();return qt.balances=((fn=Vt.balances)==null?void 0:fn.map(dn=>ht.Coin.fromPartial(dn)))||[],qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageResponse.fromPartial(Vt.pagination):void 0,qt}};function nn(){return{address:"",pagination:void 0}}d.QuerySpendableBalancesRequest={encode(Vt,qt=vt.Writer.create()){return Vt.address!==""&&qt.uint32(10).string(Vt.address),Vt.pagination!==void 0&<.PageRequest.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=nn();for(;fn.pos>>3){case 1:Dt.address=fn.string();break;case 2:Dt.pagination=lt.PageRequest.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{address:(0,kt.isSet)(Vt.address)?String(Vt.address):"",pagination:(0,kt.isSet)(Vt.pagination)?lt.PageRequest.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.address!==void 0&&(qt.address=Vt.address),Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageRequest.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){const qt=nn();return qt.address=Vt.address??"",qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageRequest.fromPartial(Vt.pagination):void 0,qt}};function Qt(){return{balances:[],pagination:void 0}}d.QuerySpendableBalancesResponse={encode(Vt,qt=vt.Writer.create()){for(const fn of Vt.balances)ht.Coin.encode(fn,qt.uint32(10).fork()).ldelim();return Vt.pagination!==void 0&<.PageResponse.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Qt();for(;fn.pos>>3){case 1:Dt.balances.push(ht.Coin.decode(fn,fn.uint32()));break;case 2:Dt.pagination=lt.PageResponse.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{balances:Array.isArray(Vt==null?void 0:Vt.balances)?Vt.balances.map(qt=>ht.Coin.fromJSON(qt)):[],pagination:(0,kt.isSet)(Vt.pagination)?lt.PageResponse.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.balances?qt.balances=Vt.balances.map(fn=>fn?ht.Coin.toJSON(fn):void 0):qt.balances=[],Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageResponse.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){var fn;const qt=Qt();return qt.balances=((fn=Vt.balances)==null?void 0:fn.map(dn=>ht.Coin.fromPartial(dn)))||[],qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageResponse.fromPartial(Vt.pagination):void 0,qt}};function wt(){return{address:"",denom:""}}d.QuerySpendableBalanceByDenomRequest={encode(Vt,qt=vt.Writer.create()){return Vt.address!==""&&qt.uint32(10).string(Vt.address),Vt.denom!==""&&qt.uint32(18).string(Vt.denom),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=wt();for(;fn.pos>>3){case 1:Dt.address=fn.string();break;case 2:Dt.denom=fn.string();break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{address:(0,kt.isSet)(Vt.address)?String(Vt.address):"",denom:(0,kt.isSet)(Vt.denom)?String(Vt.denom):""}},toJSON(Vt){const qt={};return Vt.address!==void 0&&(qt.address=Vt.address),Vt.denom!==void 0&&(qt.denom=Vt.denom),qt},fromPartial(Vt){const qt=wt();return qt.address=Vt.address??"",qt.denom=Vt.denom??"",qt}};function Nt(){return{balance:void 0}}d.QuerySpendableBalanceByDenomResponse={encode(Vt,qt=vt.Writer.create()){return Vt.balance!==void 0&&ht.Coin.encode(Vt.balance,qt.uint32(10).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Nt();for(;fn.pos>>3){case 1:Dt.balance=ht.Coin.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{balance:(0,kt.isSet)(Vt.balance)?ht.Coin.fromJSON(Vt.balance):void 0}},toJSON(Vt){const qt={};return Vt.balance!==void 0&&(qt.balance=Vt.balance?ht.Coin.toJSON(Vt.balance):void 0),qt},fromPartial(Vt){const qt=Nt();return qt.balance=Vt.balance!==void 0&&Vt.balance!==null?ht.Coin.fromPartial(Vt.balance):void 0,qt}};function xt(){return{pagination:void 0}}d.QueryTotalSupplyRequest={encode(Vt,qt=vt.Writer.create()){return Vt.pagination!==void 0&<.PageRequest.encode(Vt.pagination,qt.uint32(10).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=xt();for(;fn.pos>>3){case 1:Dt.pagination=lt.PageRequest.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{pagination:(0,kt.isSet)(Vt.pagination)?lt.PageRequest.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageRequest.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){const qt=xt();return qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageRequest.fromPartial(Vt.pagination):void 0,qt}};function Et(){return{supply:[],pagination:void 0}}d.QueryTotalSupplyResponse={encode(Vt,qt=vt.Writer.create()){for(const fn of Vt.supply)ht.Coin.encode(fn,qt.uint32(10).fork()).ldelim();return Vt.pagination!==void 0&<.PageResponse.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Et();for(;fn.pos>>3){case 1:Dt.supply.push(ht.Coin.decode(fn,fn.uint32()));break;case 2:Dt.pagination=lt.PageResponse.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{supply:Array.isArray(Vt==null?void 0:Vt.supply)?Vt.supply.map(qt=>ht.Coin.fromJSON(qt)):[],pagination:(0,kt.isSet)(Vt.pagination)?lt.PageResponse.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.supply?qt.supply=Vt.supply.map(fn=>fn?ht.Coin.toJSON(fn):void 0):qt.supply=[],Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageResponse.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){var fn;const qt=Et();return qt.supply=((fn=Vt.supply)==null?void 0:fn.map(dn=>ht.Coin.fromPartial(dn)))||[],qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageResponse.fromPartial(Vt.pagination):void 0,qt}};function Bt(){return{denom:""}}d.QuerySupplyOfRequest={encode(Vt,qt=vt.Writer.create()){return Vt.denom!==""&&qt.uint32(10).string(Vt.denom),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Bt();for(;fn.pos>>3){case 1:Dt.denom=fn.string();break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{denom:(0,kt.isSet)(Vt.denom)?String(Vt.denom):""}},toJSON(Vt){const qt={};return Vt.denom!==void 0&&(qt.denom=Vt.denom),qt},fromPartial(Vt){const qt=Bt();return qt.denom=Vt.denom??"",qt}};function Tt(){return{amount:void 0}}d.QuerySupplyOfResponse={encode(Vt,qt=vt.Writer.create()){return Vt.amount!==void 0&&ht.Coin.encode(Vt.amount,qt.uint32(10).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Tt();for(;fn.pos>>3){case 1:Dt.amount=ht.Coin.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{amount:(0,kt.isSet)(Vt.amount)?ht.Coin.fromJSON(Vt.amount):void 0}},toJSON(Vt){const qt={};return Vt.amount!==void 0&&(qt.amount=Vt.amount?ht.Coin.toJSON(Vt.amount):void 0),qt},fromPartial(Vt){const qt=Tt();return qt.amount=Vt.amount!==void 0&&Vt.amount!==null?ht.Coin.fromPartial(Vt.amount):void 0,qt}};function Mt(){return{}}d.QueryParamsRequest={encode(Vt,qt=vt.Writer.create()){return qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Mt();for(;fn.pos>>3){default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{}},toJSON(Vt){return{}},fromPartial(Vt){return Mt()}};function jt(){return{params:void 0}}d.QueryParamsResponse={encode(Vt,qt=vt.Writer.create()){return Vt.params!==void 0&&mt.Params.encode(Vt.params,qt.uint32(10).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=jt();for(;fn.pos>>3){case 1:Dt.params=mt.Params.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{params:(0,kt.isSet)(Vt.params)?mt.Params.fromJSON(Vt.params):void 0}},toJSON(Vt){const qt={};return Vt.params!==void 0&&(qt.params=Vt.params?mt.Params.toJSON(Vt.params):void 0),qt},fromPartial(Vt){const qt=jt();return qt.params=Vt.params!==void 0&&Vt.params!==null?mt.Params.fromPartial(Vt.params):void 0,qt}};function Ht(){return{pagination:void 0}}d.QueryDenomsMetadataRequest={encode(Vt,qt=vt.Writer.create()){return Vt.pagination!==void 0&<.PageRequest.encode(Vt.pagination,qt.uint32(10).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Ht();for(;fn.pos>>3){case 1:Dt.pagination=lt.PageRequest.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{pagination:(0,kt.isSet)(Vt.pagination)?lt.PageRequest.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageRequest.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){const qt=Ht();return qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageRequest.fromPartial(Vt.pagination):void 0,qt}};function an(){return{metadatas:[],pagination:void 0}}d.QueryDenomsMetadataResponse={encode(Vt,qt=vt.Writer.create()){for(const fn of Vt.metadatas)mt.Metadata.encode(fn,qt.uint32(10).fork()).ldelim();return Vt.pagination!==void 0&<.PageResponse.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=an();for(;fn.pos>>3){case 1:Dt.metadatas.push(mt.Metadata.decode(fn,fn.uint32()));break;case 2:Dt.pagination=lt.PageResponse.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{metadatas:Array.isArray(Vt==null?void 0:Vt.metadatas)?Vt.metadatas.map(qt=>mt.Metadata.fromJSON(qt)):[],pagination:(0,kt.isSet)(Vt.pagination)?lt.PageResponse.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.metadatas?qt.metadatas=Vt.metadatas.map(fn=>fn?mt.Metadata.toJSON(fn):void 0):qt.metadatas=[],Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageResponse.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){var fn;const qt=an();return qt.metadatas=((fn=Vt.metadatas)==null?void 0:fn.map(dn=>mt.Metadata.fromPartial(dn)))||[],qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageResponse.fromPartial(Vt.pagination):void 0,qt}};function yt(){return{denom:""}}d.QueryDenomMetadataRequest={encode(Vt,qt=vt.Writer.create()){return Vt.denom!==""&&qt.uint32(10).string(Vt.denom),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=yt();for(;fn.pos>>3){case 1:Dt.denom=fn.string();break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{denom:(0,kt.isSet)(Vt.denom)?String(Vt.denom):""}},toJSON(Vt){const qt={};return Vt.denom!==void 0&&(qt.denom=Vt.denom),qt},fromPartial(Vt){const qt=yt();return qt.denom=Vt.denom??"",qt}};function $t(){return{metadata:void 0}}d.QueryDenomMetadataResponse={encode(Vt,qt=vt.Writer.create()){return Vt.metadata!==void 0&&mt.Metadata.encode(Vt.metadata,qt.uint32(10).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=$t();for(;fn.pos>>3){case 1:Dt.metadata=mt.Metadata.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{metadata:(0,kt.isSet)(Vt.metadata)?mt.Metadata.fromJSON(Vt.metadata):void 0}},toJSON(Vt){const qt={};return Vt.metadata!==void 0&&(qt.metadata=Vt.metadata?mt.Metadata.toJSON(Vt.metadata):void 0),qt},fromPartial(Vt){const qt=$t();return qt.metadata=Vt.metadata!==void 0&&Vt.metadata!==null?mt.Metadata.fromPartial(Vt.metadata):void 0,qt}};function Yt(){return{denom:"",pagination:void 0}}d.QueryDenomOwnersRequest={encode(Vt,qt=vt.Writer.create()){return Vt.denom!==""&&qt.uint32(10).string(Vt.denom),Vt.pagination!==void 0&<.PageRequest.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Yt();for(;fn.pos>>3){case 1:Dt.denom=fn.string();break;case 2:Dt.pagination=lt.PageRequest.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{denom:(0,kt.isSet)(Vt.denom)?String(Vt.denom):"",pagination:(0,kt.isSet)(Vt.pagination)?lt.PageRequest.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.denom!==void 0&&(qt.denom=Vt.denom),Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageRequest.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){const qt=Yt();return qt.denom=Vt.denom??"",qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageRequest.fromPartial(Vt.pagination):void 0,qt}};function Kt(){return{address:"",balance:void 0}}d.DenomOwner={encode(Vt,qt=vt.Writer.create()){return Vt.address!==""&&qt.uint32(10).string(Vt.address),Vt.balance!==void 0&&ht.Coin.encode(Vt.balance,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Kt();for(;fn.pos>>3){case 1:Dt.address=fn.string();break;case 2:Dt.balance=ht.Coin.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{address:(0,kt.isSet)(Vt.address)?String(Vt.address):"",balance:(0,kt.isSet)(Vt.balance)?ht.Coin.fromJSON(Vt.balance):void 0}},toJSON(Vt){const qt={};return Vt.address!==void 0&&(qt.address=Vt.address),Vt.balance!==void 0&&(qt.balance=Vt.balance?ht.Coin.toJSON(Vt.balance):void 0),qt},fromPartial(Vt){const qt=Kt();return qt.address=Vt.address??"",qt.balance=Vt.balance!==void 0&&Vt.balance!==null?ht.Coin.fromPartial(Vt.balance):void 0,qt}};function St(){return{denomOwners:[],pagination:void 0}}d.QueryDenomOwnersResponse={encode(Vt,qt=vt.Writer.create()){for(const fn of Vt.denomOwners)d.DenomOwner.encode(fn,qt.uint32(10).fork()).ldelim();return Vt.pagination!==void 0&<.PageResponse.encode(Vt.pagination,qt.uint32(18).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=St();for(;fn.pos>>3){case 1:Dt.denomOwners.push(d.DenomOwner.decode(fn,fn.uint32()));break;case 2:Dt.pagination=lt.PageResponse.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{denomOwners:Array.isArray(Vt==null?void 0:Vt.denomOwners)?Vt.denomOwners.map(qt=>d.DenomOwner.fromJSON(qt)):[],pagination:(0,kt.isSet)(Vt.pagination)?lt.PageResponse.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.denomOwners?qt.denomOwners=Vt.denomOwners.map(fn=>fn?d.DenomOwner.toJSON(fn):void 0):qt.denomOwners=[],Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageResponse.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){var fn;const qt=St();return qt.denomOwners=((fn=Vt.denomOwners)==null?void 0:fn.map(dn=>d.DenomOwner.fromPartial(dn)))||[],qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageResponse.fromPartial(Vt.pagination):void 0,qt}};function It(){return{denoms:[],pagination:void 0}}d.QuerySendEnabledRequest={encode(Vt,qt=vt.Writer.create()){for(const fn of Vt.denoms)qt.uint32(10).string(fn);return Vt.pagination!==void 0&<.PageRequest.encode(Vt.pagination,qt.uint32(794).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=It();for(;fn.pos>>3){case 1:Dt.denoms.push(fn.string());break;case 99:Dt.pagination=lt.PageRequest.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{denoms:Array.isArray(Vt==null?void 0:Vt.denoms)?Vt.denoms.map(qt=>String(qt)):[],pagination:(0,kt.isSet)(Vt.pagination)?lt.PageRequest.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.denoms?qt.denoms=Vt.denoms.map(fn=>fn):qt.denoms=[],Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageRequest.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){var fn;const qt=It();return qt.denoms=((fn=Vt.denoms)==null?void 0:fn.map(dn=>dn))||[],qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageRequest.fromPartial(Vt.pagination):void 0,qt}};function Gt(){return{sendEnabled:[],pagination:void 0}}d.QuerySendEnabledResponse={encode(Vt,qt=vt.Writer.create()){for(const fn of Vt.sendEnabled)mt.SendEnabled.encode(fn,qt.uint32(10).fork()).ldelim();return Vt.pagination!==void 0&<.PageResponse.encode(Vt.pagination,qt.uint32(794).fork()).ldelim(),qt},decode(Vt,qt){const fn=Vt instanceof vt.Reader?Vt:new vt.Reader(Vt);let dn=qt===void 0?fn.len:fn.pos+qt;const Dt=Gt();for(;fn.pos>>3){case 1:Dt.sendEnabled.push(mt.SendEnabled.decode(fn,fn.uint32()));break;case 99:Dt.pagination=lt.PageResponse.decode(fn,fn.uint32());break;default:fn.skipType(zt&7);break}}return Dt},fromJSON(Vt){return{sendEnabled:Array.isArray(Vt==null?void 0:Vt.sendEnabled)?Vt.sendEnabled.map(qt=>mt.SendEnabled.fromJSON(qt)):[],pagination:(0,kt.isSet)(Vt.pagination)?lt.PageResponse.fromJSON(Vt.pagination):void 0}},toJSON(Vt){const qt={};return Vt.sendEnabled?qt.sendEnabled=Vt.sendEnabled.map(fn=>fn?mt.SendEnabled.toJSON(fn):void 0):qt.sendEnabled=[],Vt.pagination!==void 0&&(qt.pagination=Vt.pagination?lt.PageResponse.toJSON(Vt.pagination):void 0),qt},fromPartial(Vt){var fn;const qt=Gt();return qt.sendEnabled=((fn=Vt.sendEnabled)==null?void 0:fn.map(dn=>mt.SendEnabled.fromPartial(dn)))||[],qt.pagination=Vt.pagination!==void 0&&Vt.pagination!==null?lt.PageResponse.fromPartial(Vt.pagination):void 0,qt}};class Ut{constructor(qt){this.rpc=qt,this.Balance=this.Balance.bind(this),this.AllBalances=this.AllBalances.bind(this),this.SpendableBalances=this.SpendableBalances.bind(this),this.SpendableBalanceByDenom=this.SpendableBalanceByDenom.bind(this),this.TotalSupply=this.TotalSupply.bind(this),this.SupplyOf=this.SupplyOf.bind(this),this.Params=this.Params.bind(this),this.DenomMetadata=this.DenomMetadata.bind(this),this.DenomsMetadata=this.DenomsMetadata.bind(this),this.DenomOwners=this.DenomOwners.bind(this),this.SendEnabled=this.SendEnabled.bind(this)}Balance(qt){const fn=d.QueryBalanceRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Balance",fn).then(Dt=>d.QueryBalanceResponse.decode(new vt.Reader(Dt)))}AllBalances(qt){const fn=d.QueryAllBalancesRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","AllBalances",fn).then(Dt=>d.QueryAllBalancesResponse.decode(new vt.Reader(Dt)))}SpendableBalances(qt){const fn=d.QuerySpendableBalancesRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalances",fn).then(Dt=>d.QuerySpendableBalancesResponse.decode(new vt.Reader(Dt)))}SpendableBalanceByDenom(qt){const fn=d.QuerySpendableBalanceByDenomRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalanceByDenom",fn).then(Dt=>d.QuerySpendableBalanceByDenomResponse.decode(new vt.Reader(Dt)))}TotalSupply(qt={pagination:void 0}){const fn=d.QueryTotalSupplyRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","TotalSupply",fn).then(Dt=>d.QueryTotalSupplyResponse.decode(new vt.Reader(Dt)))}SupplyOf(qt){const fn=d.QuerySupplyOfRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SupplyOf",fn).then(Dt=>d.QuerySupplyOfResponse.decode(new vt.Reader(Dt)))}Params(qt={}){const fn=d.QueryParamsRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Params",fn).then(Dt=>d.QueryParamsResponse.decode(new vt.Reader(Dt)))}DenomMetadata(qt){const fn=d.QueryDenomMetadataRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomMetadata",fn).then(Dt=>d.QueryDenomMetadataResponse.decode(new vt.Reader(Dt)))}DenomsMetadata(qt={pagination:void 0}){const fn=d.QueryDenomsMetadataRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomsMetadata",fn).then(Dt=>d.QueryDenomsMetadataResponse.decode(new vt.Reader(Dt)))}DenomOwners(qt){const fn=d.QueryDenomOwnersRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomOwners",fn).then(Dt=>d.QueryDenomOwnersResponse.decode(new vt.Reader(Dt)))}SendEnabled(qt){const fn=d.QuerySendEnabledRequest.encode(qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SendEnabled",fn).then(Dt=>d.QuerySendEnabledResponse.decode(new vt.Reader(Dt)))}}d.QueryClientImpl=Ut})(query$k);Object.defineProperty(queries$a,"__esModule",{value:!0});queries$a.setupBankExtension=void 0;const utils_1$b=build$9,query_1$f=query$k,queryclient_1$b=queryclient$1;function setupBankExtension(d){const b=(0,queryclient_1$b.createProtobufRpcClient)(d),dt=new query_1$f.QueryClientImpl(b);return{bank:{balance:async(ct,lt)=>{const{balance:ht}=await dt.Balance({address:ct,denom:lt});return(0,utils_1$b.assert)(ht),ht},allBalances:async ct=>{const{balances:lt}=await dt.AllBalances({address:ct});return lt},totalSupply:async ct=>await dt.TotalSupply({pagination:(0,queryclient_1$b.createPagination)(ct)}),supplyOf:async ct=>{const{amount:lt}=await dt.SupplyOf({denom:ct});return(0,utils_1$b.assert)(lt),lt},denomMetadata:async ct=>{const{metadata:lt}=await dt.DenomMetadata({denom:ct});return(0,utils_1$b.assert)(lt),lt},denomsMetadata:async()=>{const{metadatas:ct}=await dt.DenomsMetadata({pagination:void 0});return ct}}}}queries$a.setupBankExtension=setupBankExtension;var aminomessages$a={};Object.defineProperty(aminomessages$a,"__esModule",{value:!0});aminomessages$a.createCrysisAminoConverters=aminomessages$a.isAminoMsgVerifyInvariant=void 0;function isAminoMsgVerifyInvariant(d){return d.type==="cosmos-sdk/MsgVerifyInvariant"}aminomessages$a.isAminoMsgVerifyInvariant=isAminoMsgVerifyInvariant;function createCrysisAminoConverters(){throw new Error("Not implemented")}aminomessages$a.createCrysisAminoConverters=createCrysisAminoConverters;var aminomessages$9={};Object.defineProperty(aminomessages$9,"__esModule",{value:!0});aminomessages$9.createDistributionAminoConverters=aminomessages$9.isAminoMsgFundCommunityPool=aminomessages$9.isAminoMsgWithdrawValidatorCommission=aminomessages$9.isAminoMsgWithdrawDelegatorReward=aminomessages$9.isAminoMsgSetWithdrawAddress=void 0;function isAminoMsgSetWithdrawAddress(d){return d.type==="cosmos-sdk/MsgModifyWithdrawAddress"}aminomessages$9.isAminoMsgSetWithdrawAddress=isAminoMsgSetWithdrawAddress;function isAminoMsgWithdrawDelegatorReward(d){return d.type==="cosmos-sdk/MsgWithdrawDelegationReward"}aminomessages$9.isAminoMsgWithdrawDelegatorReward=isAminoMsgWithdrawDelegatorReward;function isAminoMsgWithdrawValidatorCommission(d){return d.type==="cosmos-sdk/MsgWithdrawValidatorCommission"}aminomessages$9.isAminoMsgWithdrawValidatorCommission=isAminoMsgWithdrawValidatorCommission;function isAminoMsgFundCommunityPool(d){return d.type==="cosmos-sdk/MsgFundCommunityPool"}aminomessages$9.isAminoMsgFundCommunityPool=isAminoMsgFundCommunityPool;function createDistributionAminoConverters(){return{"/cosmos.distribution.v1beta1.MsgFundCommunityPool":{aminoType:"cosmos-sdk/MsgFundCommunityPool",toAmino:({amount:d,depositor:b})=>({amount:[...d],depositor:b}),fromAmino:({amount:d,depositor:b})=>({amount:[...d],depositor:b})},"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":{aminoType:"cosmos-sdk/MsgModifyWithdrawAddress",toAmino:({delegatorAddress:d,withdrawAddress:b})=>({delegator_address:d,withdraw_address:b}),fromAmino:({delegator_address:d,withdraw_address:b})=>({delegatorAddress:d,withdrawAddress:b})},"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":{aminoType:"cosmos-sdk/MsgWithdrawDelegationReward",toAmino:({delegatorAddress:d,validatorAddress:b})=>({delegator_address:d,validator_address:b}),fromAmino:({delegator_address:d,validator_address:b})=>({delegatorAddress:d,validatorAddress:b})},"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":{aminoType:"cosmos-sdk/MsgWithdrawValidatorCommission",toAmino:({validatorAddress:d})=>({validator_address:d}),fromAmino:({validator_address:d})=>({validatorAddress:d})}}}aminomessages$9.createDistributionAminoConverters=createDistributionAminoConverters;var messages$8={},tx$o={},distribution$1={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt);var Ht=Object.getOwnPropertyDescriptor(Tt,Mt);(!Ht||("get"in Ht?!Tt.__esModule:Ht.writable||Ht.configurable))&&(Ht={enumerable:!0,get:function(){return Tt[Mt]}}),Object.defineProperty(Bt,jt,Ht)}:function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt),Bt[jt]=Tt[Mt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Bt,Tt){Object.defineProperty(Bt,"default",{enumerable:!0,value:Tt})}:function(Bt,Tt){Bt.default=Tt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Bt){if(Bt&&Bt.__esModule)return Bt;var Tt={};if(Bt!=null)for(var Mt in Bt)Mt!=="default"&&Object.prototype.hasOwnProperty.call(Bt,Mt)&&b(Tt,Bt,Mt);return dt(Tt,Bt),Tt};Object.defineProperty(d,"__esModule",{value:!0}),d.CommunityPoolSpendProposalWithDeposit=d.DelegationDelegatorReward=d.DelegatorStartingInfo=d.CommunityPoolSpendProposal=d.FeePool=d.ValidatorSlashEvents=d.ValidatorSlashEvent=d.ValidatorOutstandingRewards=d.ValidatorAccumulatedCommission=d.ValidatorCurrentRewards=d.ValidatorHistoricalRewards=d.Params=d.protobufPackage=void 0;const lt=coin$3,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="cosmos.distribution.v1beta1";function vt(){return{communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1}}d.Params={encode(Bt,Tt=mt.Writer.create()){return Bt.communityTax!==""&&Tt.uint32(10).string(Bt.communityTax),Bt.baseProposerReward!==""&&Tt.uint32(18).string(Bt.baseProposerReward),Bt.bonusProposerReward!==""&&Tt.uint32(26).string(Bt.bonusProposerReward),Bt.withdrawAddrEnabled===!0&&Tt.uint32(32).bool(Bt.withdrawAddrEnabled),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=vt();for(;Mt.pos>>3){case 1:Ht.communityTax=Mt.string();break;case 2:Ht.baseProposerReward=Mt.string();break;case 3:Ht.bonusProposerReward=Mt.string();break;case 4:Ht.withdrawAddrEnabled=Mt.bool();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{communityTax:(0,ht.isSet)(Bt.communityTax)?String(Bt.communityTax):"",baseProposerReward:(0,ht.isSet)(Bt.baseProposerReward)?String(Bt.baseProposerReward):"",bonusProposerReward:(0,ht.isSet)(Bt.bonusProposerReward)?String(Bt.bonusProposerReward):"",withdrawAddrEnabled:(0,ht.isSet)(Bt.withdrawAddrEnabled)?!!Bt.withdrawAddrEnabled:!1}},toJSON(Bt){const Tt={};return Bt.communityTax!==void 0&&(Tt.communityTax=Bt.communityTax),Bt.baseProposerReward!==void 0&&(Tt.baseProposerReward=Bt.baseProposerReward),Bt.bonusProposerReward!==void 0&&(Tt.bonusProposerReward=Bt.bonusProposerReward),Bt.withdrawAddrEnabled!==void 0&&(Tt.withdrawAddrEnabled=Bt.withdrawAddrEnabled),Tt},fromPartial(Bt){const Tt=vt();return Tt.communityTax=Bt.communityTax??"",Tt.baseProposerReward=Bt.baseProposerReward??"",Tt.bonusProposerReward=Bt.bonusProposerReward??"",Tt.withdrawAddrEnabled=Bt.withdrawAddrEnabled??!1,Tt}};function kt(){return{cumulativeRewardRatio:[],referenceCount:0}}d.ValidatorHistoricalRewards={encode(Bt,Tt=mt.Writer.create()){for(const Mt of Bt.cumulativeRewardRatio)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Bt.referenceCount!==0&&Tt.uint32(16).uint32(Bt.referenceCount),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=kt();for(;Mt.pos>>3){case 1:Ht.cumulativeRewardRatio.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;case 2:Ht.referenceCount=Mt.uint32();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{cumulativeRewardRatio:Array.isArray(Bt==null?void 0:Bt.cumulativeRewardRatio)?Bt.cumulativeRewardRatio.map(Tt=>lt.DecCoin.fromJSON(Tt)):[],referenceCount:(0,ht.isSet)(Bt.referenceCount)?Number(Bt.referenceCount):0}},toJSON(Bt){const Tt={};return Bt.cumulativeRewardRatio?Tt.cumulativeRewardRatio=Bt.cumulativeRewardRatio.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.cumulativeRewardRatio=[],Bt.referenceCount!==void 0&&(Tt.referenceCount=Math.round(Bt.referenceCount)),Tt},fromPartial(Bt){var Mt;const Tt=kt();return Tt.cumulativeRewardRatio=((Mt=Bt.cumulativeRewardRatio)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt.referenceCount=Bt.referenceCount??0,Tt}};function Pt(){return{rewards:[],period:ht.Long.UZERO}}d.ValidatorCurrentRewards={encode(Bt,Tt=mt.Writer.create()){for(const Mt of Bt.rewards)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Bt.period.isZero()||Tt.uint32(16).uint64(Bt.period),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Pt();for(;Mt.pos>>3){case 1:Ht.rewards.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;case 2:Ht.period=Mt.uint64();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{rewards:Array.isArray(Bt==null?void 0:Bt.rewards)?Bt.rewards.map(Tt=>lt.DecCoin.fromJSON(Tt)):[],period:(0,ht.isSet)(Bt.period)?ht.Long.fromValue(Bt.period):ht.Long.UZERO}},toJSON(Bt){const Tt={};return Bt.rewards?Tt.rewards=Bt.rewards.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.rewards=[],Bt.period!==void 0&&(Tt.period=(Bt.period||ht.Long.UZERO).toString()),Tt},fromPartial(Bt){var Mt;const Tt=Pt();return Tt.rewards=((Mt=Bt.rewards)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt.period=Bt.period!==void 0&&Bt.period!==null?ht.Long.fromValue(Bt.period):ht.Long.UZERO,Tt}};function Jt(){return{commission:[]}}d.ValidatorAccumulatedCommission={encode(Bt,Tt=mt.Writer.create()){for(const Mt of Bt.commission)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Jt();for(;Mt.pos>>3){case 1:Ht.commission.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{commission:Array.isArray(Bt==null?void 0:Bt.commission)?Bt.commission.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.commission?Tt.commission=Bt.commission.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.commission=[],Tt},fromPartial(Bt){var Mt;const Tt=Jt();return Tt.commission=((Mt=Bt.commission)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Zt(){return{rewards:[]}}d.ValidatorOutstandingRewards={encode(Bt,Tt=mt.Writer.create()){for(const Mt of Bt.rewards)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Zt();for(;Mt.pos>>3){case 1:Ht.rewards.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{rewards:Array.isArray(Bt==null?void 0:Bt.rewards)?Bt.rewards.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.rewards?Tt.rewards=Bt.rewards.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.rewards=[],Tt},fromPartial(Bt){var Mt;const Tt=Zt();return Tt.rewards=((Mt=Bt.rewards)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Rt(){return{validatorPeriod:ht.Long.UZERO,fraction:""}}d.ValidatorSlashEvent={encode(Bt,Tt=mt.Writer.create()){return Bt.validatorPeriod.isZero()||Tt.uint32(8).uint64(Bt.validatorPeriod),Bt.fraction!==""&&Tt.uint32(18).string(Bt.fraction),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Rt();for(;Mt.pos>>3){case 1:Ht.validatorPeriod=Mt.uint64();break;case 2:Ht.fraction=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorPeriod:(0,ht.isSet)(Bt.validatorPeriod)?ht.Long.fromValue(Bt.validatorPeriod):ht.Long.UZERO,fraction:(0,ht.isSet)(Bt.fraction)?String(Bt.fraction):""}},toJSON(Bt){const Tt={};return Bt.validatorPeriod!==void 0&&(Tt.validatorPeriod=(Bt.validatorPeriod||ht.Long.UZERO).toString()),Bt.fraction!==void 0&&(Tt.fraction=Bt.fraction),Tt},fromPartial(Bt){const Tt=Rt();return Tt.validatorPeriod=Bt.validatorPeriod!==void 0&&Bt.validatorPeriod!==null?ht.Long.fromValue(Bt.validatorPeriod):ht.Long.UZERO,Tt.fraction=Bt.fraction??"",Tt}};function nn(){return{validatorSlashEvents:[]}}d.ValidatorSlashEvents={encode(Bt,Tt=mt.Writer.create()){for(const Mt of Bt.validatorSlashEvents)d.ValidatorSlashEvent.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=nn();for(;Mt.pos>>3){case 1:Ht.validatorSlashEvents.push(d.ValidatorSlashEvent.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorSlashEvents:Array.isArray(Bt==null?void 0:Bt.validatorSlashEvents)?Bt.validatorSlashEvents.map(Tt=>d.ValidatorSlashEvent.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.validatorSlashEvents?Tt.validatorSlashEvents=Bt.validatorSlashEvents.map(Mt=>Mt?d.ValidatorSlashEvent.toJSON(Mt):void 0):Tt.validatorSlashEvents=[],Tt},fromPartial(Bt){var Mt;const Tt=nn();return Tt.validatorSlashEvents=((Mt=Bt.validatorSlashEvents)==null?void 0:Mt.map(jt=>d.ValidatorSlashEvent.fromPartial(jt)))||[],Tt}};function Qt(){return{communityPool:[]}}d.FeePool={encode(Bt,Tt=mt.Writer.create()){for(const Mt of Bt.communityPool)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Qt();for(;Mt.pos>>3){case 1:Ht.communityPool.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{communityPool:Array.isArray(Bt==null?void 0:Bt.communityPool)?Bt.communityPool.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.communityPool?Tt.communityPool=Bt.communityPool.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.communityPool=[],Tt},fromPartial(Bt){var Mt;const Tt=Qt();return Tt.communityPool=((Mt=Bt.communityPool)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function wt(){return{title:"",description:"",recipient:"",amount:[]}}d.CommunityPoolSpendProposal={encode(Bt,Tt=mt.Writer.create()){Bt.title!==""&&Tt.uint32(10).string(Bt.title),Bt.description!==""&&Tt.uint32(18).string(Bt.description),Bt.recipient!==""&&Tt.uint32(26).string(Bt.recipient);for(const Mt of Bt.amount)lt.Coin.encode(Mt,Tt.uint32(34).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=wt();for(;Mt.pos>>3){case 1:Ht.title=Mt.string();break;case 2:Ht.description=Mt.string();break;case 3:Ht.recipient=Mt.string();break;case 4:Ht.amount.push(lt.Coin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{title:(0,ht.isSet)(Bt.title)?String(Bt.title):"",description:(0,ht.isSet)(Bt.description)?String(Bt.description):"",recipient:(0,ht.isSet)(Bt.recipient)?String(Bt.recipient):"",amount:Array.isArray(Bt==null?void 0:Bt.amount)?Bt.amount.map(Tt=>lt.Coin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.title!==void 0&&(Tt.title=Bt.title),Bt.description!==void 0&&(Tt.description=Bt.description),Bt.recipient!==void 0&&(Tt.recipient=Bt.recipient),Bt.amount?Tt.amount=Bt.amount.map(Mt=>Mt?lt.Coin.toJSON(Mt):void 0):Tt.amount=[],Tt},fromPartial(Bt){var Mt;const Tt=wt();return Tt.title=Bt.title??"",Tt.description=Bt.description??"",Tt.recipient=Bt.recipient??"",Tt.amount=((Mt=Bt.amount)==null?void 0:Mt.map(jt=>lt.Coin.fromPartial(jt)))||[],Tt}};function Nt(){return{previousPeriod:ht.Long.UZERO,stake:"",height:ht.Long.UZERO}}d.DelegatorStartingInfo={encode(Bt,Tt=mt.Writer.create()){return Bt.previousPeriod.isZero()||Tt.uint32(8).uint64(Bt.previousPeriod),Bt.stake!==""&&Tt.uint32(18).string(Bt.stake),Bt.height.isZero()||Tt.uint32(24).uint64(Bt.height),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Nt();for(;Mt.pos>>3){case 1:Ht.previousPeriod=Mt.uint64();break;case 2:Ht.stake=Mt.string();break;case 3:Ht.height=Mt.uint64();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{previousPeriod:(0,ht.isSet)(Bt.previousPeriod)?ht.Long.fromValue(Bt.previousPeriod):ht.Long.UZERO,stake:(0,ht.isSet)(Bt.stake)?String(Bt.stake):"",height:(0,ht.isSet)(Bt.height)?ht.Long.fromValue(Bt.height):ht.Long.UZERO}},toJSON(Bt){const Tt={};return Bt.previousPeriod!==void 0&&(Tt.previousPeriod=(Bt.previousPeriod||ht.Long.UZERO).toString()),Bt.stake!==void 0&&(Tt.stake=Bt.stake),Bt.height!==void 0&&(Tt.height=(Bt.height||ht.Long.UZERO).toString()),Tt},fromPartial(Bt){const Tt=Nt();return Tt.previousPeriod=Bt.previousPeriod!==void 0&&Bt.previousPeriod!==null?ht.Long.fromValue(Bt.previousPeriod):ht.Long.UZERO,Tt.stake=Bt.stake??"",Tt.height=Bt.height!==void 0&&Bt.height!==null?ht.Long.fromValue(Bt.height):ht.Long.UZERO,Tt}};function xt(){return{validatorAddress:"",reward:[]}}d.DelegationDelegatorReward={encode(Bt,Tt=mt.Writer.create()){Bt.validatorAddress!==""&&Tt.uint32(10).string(Bt.validatorAddress);for(const Mt of Bt.reward)lt.DecCoin.encode(Mt,Tt.uint32(18).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=xt();for(;Mt.pos>>3){case 1:Ht.validatorAddress=Mt.string();break;case 2:Ht.reward.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorAddress:(0,ht.isSet)(Bt.validatorAddress)?String(Bt.validatorAddress):"",reward:Array.isArray(Bt==null?void 0:Bt.reward)?Bt.reward.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.validatorAddress!==void 0&&(Tt.validatorAddress=Bt.validatorAddress),Bt.reward?Tt.reward=Bt.reward.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.reward=[],Tt},fromPartial(Bt){var Mt;const Tt=xt();return Tt.validatorAddress=Bt.validatorAddress??"",Tt.reward=((Mt=Bt.reward)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Et(){return{title:"",description:"",recipient:"",amount:"",deposit:""}}d.CommunityPoolSpendProposalWithDeposit={encode(Bt,Tt=mt.Writer.create()){return Bt.title!==""&&Tt.uint32(10).string(Bt.title),Bt.description!==""&&Tt.uint32(18).string(Bt.description),Bt.recipient!==""&&Tt.uint32(26).string(Bt.recipient),Bt.amount!==""&&Tt.uint32(34).string(Bt.amount),Bt.deposit!==""&&Tt.uint32(42).string(Bt.deposit),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Et();for(;Mt.pos>>3){case 1:Ht.title=Mt.string();break;case 2:Ht.description=Mt.string();break;case 3:Ht.recipient=Mt.string();break;case 4:Ht.amount=Mt.string();break;case 5:Ht.deposit=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{title:(0,ht.isSet)(Bt.title)?String(Bt.title):"",description:(0,ht.isSet)(Bt.description)?String(Bt.description):"",recipient:(0,ht.isSet)(Bt.recipient)?String(Bt.recipient):"",amount:(0,ht.isSet)(Bt.amount)?String(Bt.amount):"",deposit:(0,ht.isSet)(Bt.deposit)?String(Bt.deposit):""}},toJSON(Bt){const Tt={};return Bt.title!==void 0&&(Tt.title=Bt.title),Bt.description!==void 0&&(Tt.description=Bt.description),Bt.recipient!==void 0&&(Tt.recipient=Bt.recipient),Bt.amount!==void 0&&(Tt.amount=Bt.amount),Bt.deposit!==void 0&&(Tt.deposit=Bt.deposit),Tt},fromPartial(Bt){const Tt=Et();return Tt.title=Bt.title??"",Tt.description=Bt.description??"",Tt.recipient=Bt.recipient??"",Tt.amount=Bt.amount??"",Tt.deposit=Bt.deposit??"",Tt}}})(distribution$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,jt,Ht,an){an===void 0&&(an=Ht);var yt=Object.getOwnPropertyDescriptor(jt,Ht);(!yt||("get"in yt?!jt.__esModule:yt.writable||yt.configurable))&&(yt={enumerable:!0,get:function(){return jt[Ht]}}),Object.defineProperty(Mt,an,yt)}:function(Mt,jt,Ht,an){an===void 0&&(an=Ht),Mt[an]=jt[Ht]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,jt){Object.defineProperty(Mt,"default",{enumerable:!0,value:jt})}:function(Mt,jt){Mt.default=jt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var jt={};if(Mt!=null)for(var Ht in Mt)Ht!=="default"&&Object.prototype.hasOwnProperty.call(Mt,Ht)&&b(jt,Mt,Ht);return dt(jt,Mt),jt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgCommunityPoolSpendResponse=d.MsgCommunityPoolSpend=d.MsgUpdateParamsResponse=d.MsgUpdateParams=d.MsgFundCommunityPoolResponse=d.MsgFundCommunityPool=d.MsgWithdrawValidatorCommissionResponse=d.MsgWithdrawValidatorCommission=d.MsgWithdrawDelegatorRewardResponse=d.MsgWithdrawDelegatorReward=d.MsgSetWithdrawAddressResponse=d.MsgSetWithdrawAddress=d.protobufPackage=void 0;const lt=coin$3,ht=distribution$1,mt=ct(minimal$4),vt=helpers$1;d.protobufPackage="cosmos.distribution.v1beta1";function kt(){return{delegatorAddress:"",withdrawAddress:""}}d.MsgSetWithdrawAddress={encode(Mt,jt=mt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.withdrawAddress!==""&&jt.uint32(18).string(Mt.withdrawAddress),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=kt();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.withdrawAddress=Ht.string();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,vt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",withdrawAddress:(0,vt.isSet)(Mt.withdrawAddress)?String(Mt.withdrawAddress):""}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.withdrawAddress!==void 0&&(jt.withdrawAddress=Mt.withdrawAddress),jt},fromPartial(Mt){const jt=kt();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.withdrawAddress=Mt.withdrawAddress??"",jt}};function Pt(){return{}}d.MsgSetWithdrawAddressResponse={encode(Mt,jt=mt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Pt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return Pt()}};function Jt(){return{delegatorAddress:"",validatorAddress:""}}d.MsgWithdrawDelegatorReward={encode(Mt,jt=mt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&jt.uint32(18).string(Mt.validatorAddress),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Jt();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.validatorAddress=Ht.string();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,vt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,vt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):""}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),jt},fromPartial(Mt){const jt=Jt();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorAddress=Mt.validatorAddress??"",jt}};function Zt(){return{amount:[]}}d.MsgWithdrawDelegatorRewardResponse={encode(Mt,jt=mt.Writer.create()){for(const Ht of Mt.amount)lt.Coin.encode(Ht,jt.uint32(10).fork()).ldelim();return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Zt();for(;Ht.pos>>3){case 1:yt.amount.push(lt.Coin.decode(Ht,Ht.uint32()));break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{amount:Array.isArray(Mt==null?void 0:Mt.amount)?Mt.amount.map(jt=>lt.Coin.fromJSON(jt)):[]}},toJSON(Mt){const jt={};return Mt.amount?jt.amount=Mt.amount.map(Ht=>Ht?lt.Coin.toJSON(Ht):void 0):jt.amount=[],jt},fromPartial(Mt){var Ht;const jt=Zt();return jt.amount=((Ht=Mt.amount)==null?void 0:Ht.map(an=>lt.Coin.fromPartial(an)))||[],jt}};function Rt(){return{validatorAddress:""}}d.MsgWithdrawValidatorCommission={encode(Mt,jt=mt.Writer.create()){return Mt.validatorAddress!==""&&jt.uint32(10).string(Mt.validatorAddress),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Rt();for(;Ht.pos>>3){case 1:yt.validatorAddress=Ht.string();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{validatorAddress:(0,vt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):""}},toJSON(Mt){const jt={};return Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),jt},fromPartial(Mt){const jt=Rt();return jt.validatorAddress=Mt.validatorAddress??"",jt}};function nn(){return{amount:[]}}d.MsgWithdrawValidatorCommissionResponse={encode(Mt,jt=mt.Writer.create()){for(const Ht of Mt.amount)lt.Coin.encode(Ht,jt.uint32(10).fork()).ldelim();return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=nn();for(;Ht.pos>>3){case 1:yt.amount.push(lt.Coin.decode(Ht,Ht.uint32()));break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{amount:Array.isArray(Mt==null?void 0:Mt.amount)?Mt.amount.map(jt=>lt.Coin.fromJSON(jt)):[]}},toJSON(Mt){const jt={};return Mt.amount?jt.amount=Mt.amount.map(Ht=>Ht?lt.Coin.toJSON(Ht):void 0):jt.amount=[],jt},fromPartial(Mt){var Ht;const jt=nn();return jt.amount=((Ht=Mt.amount)==null?void 0:Ht.map(an=>lt.Coin.fromPartial(an)))||[],jt}};function Qt(){return{amount:[],depositor:""}}d.MsgFundCommunityPool={encode(Mt,jt=mt.Writer.create()){for(const Ht of Mt.amount)lt.Coin.encode(Ht,jt.uint32(10).fork()).ldelim();return Mt.depositor!==""&&jt.uint32(18).string(Mt.depositor),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Qt();for(;Ht.pos>>3){case 1:yt.amount.push(lt.Coin.decode(Ht,Ht.uint32()));break;case 2:yt.depositor=Ht.string();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{amount:Array.isArray(Mt==null?void 0:Mt.amount)?Mt.amount.map(jt=>lt.Coin.fromJSON(jt)):[],depositor:(0,vt.isSet)(Mt.depositor)?String(Mt.depositor):""}},toJSON(Mt){const jt={};return Mt.amount?jt.amount=Mt.amount.map(Ht=>Ht?lt.Coin.toJSON(Ht):void 0):jt.amount=[],Mt.depositor!==void 0&&(jt.depositor=Mt.depositor),jt},fromPartial(Mt){var Ht;const jt=Qt();return jt.amount=((Ht=Mt.amount)==null?void 0:Ht.map(an=>lt.Coin.fromPartial(an)))||[],jt.depositor=Mt.depositor??"",jt}};function wt(){return{}}d.MsgFundCommunityPoolResponse={encode(Mt,jt=mt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=wt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return wt()}};function Nt(){return{authority:"",params:void 0}}d.MsgUpdateParams={encode(Mt,jt=mt.Writer.create()){return Mt.authority!==""&&jt.uint32(10).string(Mt.authority),Mt.params!==void 0&&ht.Params.encode(Mt.params,jt.uint32(18).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Nt();for(;Ht.pos>>3){case 1:yt.authority=Ht.string();break;case 2:yt.params=ht.Params.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{authority:(0,vt.isSet)(Mt.authority)?String(Mt.authority):"",params:(0,vt.isSet)(Mt.params)?ht.Params.fromJSON(Mt.params):void 0}},toJSON(Mt){const jt={};return Mt.authority!==void 0&&(jt.authority=Mt.authority),Mt.params!==void 0&&(jt.params=Mt.params?ht.Params.toJSON(Mt.params):void 0),jt},fromPartial(Mt){const jt=Nt();return jt.authority=Mt.authority??"",jt.params=Mt.params!==void 0&&Mt.params!==null?ht.Params.fromPartial(Mt.params):void 0,jt}};function xt(){return{}}d.MsgUpdateParamsResponse={encode(Mt,jt=mt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=xt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return xt()}};function Et(){return{authority:"",recipient:"",amount:[]}}d.MsgCommunityPoolSpend={encode(Mt,jt=mt.Writer.create()){Mt.authority!==""&&jt.uint32(10).string(Mt.authority),Mt.recipient!==""&&jt.uint32(18).string(Mt.recipient);for(const Ht of Mt.amount)lt.Coin.encode(Ht,jt.uint32(26).fork()).ldelim();return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Et();for(;Ht.pos>>3){case 1:yt.authority=Ht.string();break;case 2:yt.recipient=Ht.string();break;case 3:yt.amount.push(lt.Coin.decode(Ht,Ht.uint32()));break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{authority:(0,vt.isSet)(Mt.authority)?String(Mt.authority):"",recipient:(0,vt.isSet)(Mt.recipient)?String(Mt.recipient):"",amount:Array.isArray(Mt==null?void 0:Mt.amount)?Mt.amount.map(jt=>lt.Coin.fromJSON(jt)):[]}},toJSON(Mt){const jt={};return Mt.authority!==void 0&&(jt.authority=Mt.authority),Mt.recipient!==void 0&&(jt.recipient=Mt.recipient),Mt.amount?jt.amount=Mt.amount.map(Ht=>Ht?lt.Coin.toJSON(Ht):void 0):jt.amount=[],jt},fromPartial(Mt){var Ht;const jt=Et();return jt.authority=Mt.authority??"",jt.recipient=Mt.recipient??"",jt.amount=((Ht=Mt.amount)==null?void 0:Ht.map(an=>lt.Coin.fromPartial(an)))||[],jt}};function Bt(){return{}}d.MsgCommunityPoolSpendResponse={encode(Mt,jt=mt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Bt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return Bt()}};class Tt{constructor(jt){this.rpc=jt,this.SetWithdrawAddress=this.SetWithdrawAddress.bind(this),this.WithdrawDelegatorReward=this.WithdrawDelegatorReward.bind(this),this.WithdrawValidatorCommission=this.WithdrawValidatorCommission.bind(this),this.FundCommunityPool=this.FundCommunityPool.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.CommunityPoolSpend=this.CommunityPoolSpend.bind(this)}SetWithdrawAddress(jt){const Ht=d.MsgSetWithdrawAddress.encode(jt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",Ht).then(yt=>d.MsgSetWithdrawAddressResponse.decode(new mt.Reader(yt)))}WithdrawDelegatorReward(jt){const Ht=d.MsgWithdrawDelegatorReward.encode(jt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",Ht).then(yt=>d.MsgWithdrawDelegatorRewardResponse.decode(new mt.Reader(yt)))}WithdrawValidatorCommission(jt){const Ht=d.MsgWithdrawValidatorCommission.encode(jt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",Ht).then(yt=>d.MsgWithdrawValidatorCommissionResponse.decode(new mt.Reader(yt)))}FundCommunityPool(jt){const Ht=d.MsgFundCommunityPool.encode(jt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",Ht).then(yt=>d.MsgFundCommunityPoolResponse.decode(new mt.Reader(yt)))}UpdateParams(jt){const Ht=d.MsgUpdateParams.encode(jt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","UpdateParams",Ht).then(yt=>d.MsgUpdateParamsResponse.decode(new mt.Reader(yt)))}CommunityPoolSpend(jt){const Ht=d.MsgCommunityPoolSpend.encode(jt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","CommunityPoolSpend",Ht).then(yt=>d.MsgCommunityPoolSpendResponse.decode(new mt.Reader(yt)))}}d.MsgClientImpl=Tt})(tx$o);Object.defineProperty(messages$8,"__esModule",{value:!0});messages$8.isMsgWithdrawDelegatorRewardEncodeObject=messages$8.distributionTypes=void 0;const tx_1$c=tx$o;messages$8.distributionTypes=[["/cosmos.distribution.v1beta1.MsgFundCommunityPool",tx_1$c.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",tx_1$c.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",tx_1$c.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",tx_1$c.MsgWithdrawValidatorCommission]];function isMsgWithdrawDelegatorRewardEncodeObject(d){return d.typeUrl==="/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"}messages$8.isMsgWithdrawDelegatorRewardEncodeObject=isMsgWithdrawDelegatorRewardEncodeObject;var queries$9={},query$j={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(It,Gt,Ut,Vt){Vt===void 0&&(Vt=Ut);var qt=Object.getOwnPropertyDescriptor(Gt,Ut);(!qt||("get"in qt?!Gt.__esModule:qt.writable||qt.configurable))&&(qt={enumerable:!0,get:function(){return Gt[Ut]}}),Object.defineProperty(It,Vt,qt)}:function(It,Gt,Ut,Vt){Vt===void 0&&(Vt=Ut),It[Vt]=Gt[Ut]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(It,Gt){Object.defineProperty(It,"default",{enumerable:!0,value:Gt})}:function(It,Gt){It.default=Gt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(It){if(It&&It.__esModule)return It;var Gt={};if(It!=null)for(var Ut in It)Ut!=="default"&&Object.prototype.hasOwnProperty.call(It,Ut)&&b(Gt,It,Ut);return dt(Gt,It),Gt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryCommunityPoolResponse=d.QueryCommunityPoolRequest=d.QueryDelegatorWithdrawAddressResponse=d.QueryDelegatorWithdrawAddressRequest=d.QueryDelegatorValidatorsResponse=d.QueryDelegatorValidatorsRequest=d.QueryDelegationTotalRewardsResponse=d.QueryDelegationTotalRewardsRequest=d.QueryDelegationRewardsResponse=d.QueryDelegationRewardsRequest=d.QueryValidatorSlashesResponse=d.QueryValidatorSlashesRequest=d.QueryValidatorCommissionResponse=d.QueryValidatorCommissionRequest=d.QueryValidatorOutstandingRewardsResponse=d.QueryValidatorOutstandingRewardsRequest=d.QueryValidatorDistributionInfoResponse=d.QueryValidatorDistributionInfoRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=distribution$1,mt=coin$3,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="cosmos.distribution.v1beta1";function Pt(){return{}}d.QueryParamsRequest={encode(It,Gt=kt.Writer.create()){return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Pt();for(;Ut.pos>>3){default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{}},toJSON(It){return{}},fromPartial(It){return Pt()}};function Jt(){return{params:void 0}}d.QueryParamsResponse={encode(It,Gt=kt.Writer.create()){return It.params!==void 0&&ht.Params.encode(It.params,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Jt();for(;Ut.pos>>3){case 1:qt.params=ht.Params.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{params:(0,vt.isSet)(It.params)?ht.Params.fromJSON(It.params):void 0}},toJSON(It){const Gt={};return It.params!==void 0&&(Gt.params=It.params?ht.Params.toJSON(It.params):void 0),Gt},fromPartial(It){const Gt=Jt();return Gt.params=It.params!==void 0&&It.params!==null?ht.Params.fromPartial(It.params):void 0,Gt}};function Zt(){return{validatorAddress:""}}d.QueryValidatorDistributionInfoRequest={encode(It,Gt=kt.Writer.create()){return It.validatorAddress!==""&&Gt.uint32(10).string(It.validatorAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Zt();for(;Ut.pos>>3){case 1:qt.validatorAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{validatorAddress:(0,vt.isSet)(It.validatorAddress)?String(It.validatorAddress):""}},toJSON(It){const Gt={};return It.validatorAddress!==void 0&&(Gt.validatorAddress=It.validatorAddress),Gt},fromPartial(It){const Gt=Zt();return Gt.validatorAddress=It.validatorAddress??"",Gt}};function Rt(){return{operatorAddress:"",selfBondRewards:[],commission:[]}}d.QueryValidatorDistributionInfoResponse={encode(It,Gt=kt.Writer.create()){It.operatorAddress!==""&&Gt.uint32(10).string(It.operatorAddress);for(const Ut of It.selfBondRewards)mt.DecCoin.encode(Ut,Gt.uint32(18).fork()).ldelim();for(const Ut of It.commission)mt.DecCoin.encode(Ut,Gt.uint32(26).fork()).ldelim();return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Rt();for(;Ut.pos>>3){case 1:qt.operatorAddress=Ut.string();break;case 2:qt.selfBondRewards.push(mt.DecCoin.decode(Ut,Ut.uint32()));break;case 3:qt.commission.push(mt.DecCoin.decode(Ut,Ut.uint32()));break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{operatorAddress:(0,vt.isSet)(It.operatorAddress)?String(It.operatorAddress):"",selfBondRewards:Array.isArray(It==null?void 0:It.selfBondRewards)?It.selfBondRewards.map(Gt=>mt.DecCoin.fromJSON(Gt)):[],commission:Array.isArray(It==null?void 0:It.commission)?It.commission.map(Gt=>mt.DecCoin.fromJSON(Gt)):[]}},toJSON(It){const Gt={};return It.operatorAddress!==void 0&&(Gt.operatorAddress=It.operatorAddress),It.selfBondRewards?Gt.selfBondRewards=It.selfBondRewards.map(Ut=>Ut?mt.DecCoin.toJSON(Ut):void 0):Gt.selfBondRewards=[],It.commission?Gt.commission=It.commission.map(Ut=>Ut?mt.DecCoin.toJSON(Ut):void 0):Gt.commission=[],Gt},fromPartial(It){var Ut,Vt;const Gt=Rt();return Gt.operatorAddress=It.operatorAddress??"",Gt.selfBondRewards=((Ut=It.selfBondRewards)==null?void 0:Ut.map(qt=>mt.DecCoin.fromPartial(qt)))||[],Gt.commission=((Vt=It.commission)==null?void 0:Vt.map(qt=>mt.DecCoin.fromPartial(qt)))||[],Gt}};function nn(){return{validatorAddress:""}}d.QueryValidatorOutstandingRewardsRequest={encode(It,Gt=kt.Writer.create()){return It.validatorAddress!==""&&Gt.uint32(10).string(It.validatorAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=nn();for(;Ut.pos>>3){case 1:qt.validatorAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{validatorAddress:(0,vt.isSet)(It.validatorAddress)?String(It.validatorAddress):""}},toJSON(It){const Gt={};return It.validatorAddress!==void 0&&(Gt.validatorAddress=It.validatorAddress),Gt},fromPartial(It){const Gt=nn();return Gt.validatorAddress=It.validatorAddress??"",Gt}};function Qt(){return{rewards:void 0}}d.QueryValidatorOutstandingRewardsResponse={encode(It,Gt=kt.Writer.create()){return It.rewards!==void 0&&ht.ValidatorOutstandingRewards.encode(It.rewards,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Qt();for(;Ut.pos>>3){case 1:qt.rewards=ht.ValidatorOutstandingRewards.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{rewards:(0,vt.isSet)(It.rewards)?ht.ValidatorOutstandingRewards.fromJSON(It.rewards):void 0}},toJSON(It){const Gt={};return It.rewards!==void 0&&(Gt.rewards=It.rewards?ht.ValidatorOutstandingRewards.toJSON(It.rewards):void 0),Gt},fromPartial(It){const Gt=Qt();return Gt.rewards=It.rewards!==void 0&&It.rewards!==null?ht.ValidatorOutstandingRewards.fromPartial(It.rewards):void 0,Gt}};function wt(){return{validatorAddress:""}}d.QueryValidatorCommissionRequest={encode(It,Gt=kt.Writer.create()){return It.validatorAddress!==""&&Gt.uint32(10).string(It.validatorAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=wt();for(;Ut.pos>>3){case 1:qt.validatorAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{validatorAddress:(0,vt.isSet)(It.validatorAddress)?String(It.validatorAddress):""}},toJSON(It){const Gt={};return It.validatorAddress!==void 0&&(Gt.validatorAddress=It.validatorAddress),Gt},fromPartial(It){const Gt=wt();return Gt.validatorAddress=It.validatorAddress??"",Gt}};function Nt(){return{commission:void 0}}d.QueryValidatorCommissionResponse={encode(It,Gt=kt.Writer.create()){return It.commission!==void 0&&ht.ValidatorAccumulatedCommission.encode(It.commission,Gt.uint32(10).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Nt();for(;Ut.pos>>3){case 1:qt.commission=ht.ValidatorAccumulatedCommission.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{commission:(0,vt.isSet)(It.commission)?ht.ValidatorAccumulatedCommission.fromJSON(It.commission):void 0}},toJSON(It){const Gt={};return It.commission!==void 0&&(Gt.commission=It.commission?ht.ValidatorAccumulatedCommission.toJSON(It.commission):void 0),Gt},fromPartial(It){const Gt=Nt();return Gt.commission=It.commission!==void 0&&It.commission!==null?ht.ValidatorAccumulatedCommission.fromPartial(It.commission):void 0,Gt}};function xt(){return{validatorAddress:"",startingHeight:vt.Long.UZERO,endingHeight:vt.Long.UZERO,pagination:void 0}}d.QueryValidatorSlashesRequest={encode(It,Gt=kt.Writer.create()){return It.validatorAddress!==""&&Gt.uint32(10).string(It.validatorAddress),It.startingHeight.isZero()||Gt.uint32(16).uint64(It.startingHeight),It.endingHeight.isZero()||Gt.uint32(24).uint64(It.endingHeight),It.pagination!==void 0&<.PageRequest.encode(It.pagination,Gt.uint32(34).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=xt();for(;Ut.pos>>3){case 1:qt.validatorAddress=Ut.string();break;case 2:qt.startingHeight=Ut.uint64();break;case 3:qt.endingHeight=Ut.uint64();break;case 4:qt.pagination=lt.PageRequest.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{validatorAddress:(0,vt.isSet)(It.validatorAddress)?String(It.validatorAddress):"",startingHeight:(0,vt.isSet)(It.startingHeight)?vt.Long.fromValue(It.startingHeight):vt.Long.UZERO,endingHeight:(0,vt.isSet)(It.endingHeight)?vt.Long.fromValue(It.endingHeight):vt.Long.UZERO,pagination:(0,vt.isSet)(It.pagination)?lt.PageRequest.fromJSON(It.pagination):void 0}},toJSON(It){const Gt={};return It.validatorAddress!==void 0&&(Gt.validatorAddress=It.validatorAddress),It.startingHeight!==void 0&&(Gt.startingHeight=(It.startingHeight||vt.Long.UZERO).toString()),It.endingHeight!==void 0&&(Gt.endingHeight=(It.endingHeight||vt.Long.UZERO).toString()),It.pagination!==void 0&&(Gt.pagination=It.pagination?lt.PageRequest.toJSON(It.pagination):void 0),Gt},fromPartial(It){const Gt=xt();return Gt.validatorAddress=It.validatorAddress??"",Gt.startingHeight=It.startingHeight!==void 0&&It.startingHeight!==null?vt.Long.fromValue(It.startingHeight):vt.Long.UZERO,Gt.endingHeight=It.endingHeight!==void 0&&It.endingHeight!==null?vt.Long.fromValue(It.endingHeight):vt.Long.UZERO,Gt.pagination=It.pagination!==void 0&&It.pagination!==null?lt.PageRequest.fromPartial(It.pagination):void 0,Gt}};function Et(){return{slashes:[],pagination:void 0}}d.QueryValidatorSlashesResponse={encode(It,Gt=kt.Writer.create()){for(const Ut of It.slashes)ht.ValidatorSlashEvent.encode(Ut,Gt.uint32(10).fork()).ldelim();return It.pagination!==void 0&<.PageResponse.encode(It.pagination,Gt.uint32(18).fork()).ldelim(),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Et();for(;Ut.pos>>3){case 1:qt.slashes.push(ht.ValidatorSlashEvent.decode(Ut,Ut.uint32()));break;case 2:qt.pagination=lt.PageResponse.decode(Ut,Ut.uint32());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{slashes:Array.isArray(It==null?void 0:It.slashes)?It.slashes.map(Gt=>ht.ValidatorSlashEvent.fromJSON(Gt)):[],pagination:(0,vt.isSet)(It.pagination)?lt.PageResponse.fromJSON(It.pagination):void 0}},toJSON(It){const Gt={};return It.slashes?Gt.slashes=It.slashes.map(Ut=>Ut?ht.ValidatorSlashEvent.toJSON(Ut):void 0):Gt.slashes=[],It.pagination!==void 0&&(Gt.pagination=It.pagination?lt.PageResponse.toJSON(It.pagination):void 0),Gt},fromPartial(It){var Ut;const Gt=Et();return Gt.slashes=((Ut=It.slashes)==null?void 0:Ut.map(Vt=>ht.ValidatorSlashEvent.fromPartial(Vt)))||[],Gt.pagination=It.pagination!==void 0&&It.pagination!==null?lt.PageResponse.fromPartial(It.pagination):void 0,Gt}};function Bt(){return{delegatorAddress:"",validatorAddress:""}}d.QueryDelegationRewardsRequest={encode(It,Gt=kt.Writer.create()){return It.delegatorAddress!==""&&Gt.uint32(10).string(It.delegatorAddress),It.validatorAddress!==""&&Gt.uint32(18).string(It.validatorAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Bt();for(;Ut.pos>>3){case 1:qt.delegatorAddress=Ut.string();break;case 2:qt.validatorAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{delegatorAddress:(0,vt.isSet)(It.delegatorAddress)?String(It.delegatorAddress):"",validatorAddress:(0,vt.isSet)(It.validatorAddress)?String(It.validatorAddress):""}},toJSON(It){const Gt={};return It.delegatorAddress!==void 0&&(Gt.delegatorAddress=It.delegatorAddress),It.validatorAddress!==void 0&&(Gt.validatorAddress=It.validatorAddress),Gt},fromPartial(It){const Gt=Bt();return Gt.delegatorAddress=It.delegatorAddress??"",Gt.validatorAddress=It.validatorAddress??"",Gt}};function Tt(){return{rewards:[]}}d.QueryDelegationRewardsResponse={encode(It,Gt=kt.Writer.create()){for(const Ut of It.rewards)mt.DecCoin.encode(Ut,Gt.uint32(10).fork()).ldelim();return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Tt();for(;Ut.pos>>3){case 1:qt.rewards.push(mt.DecCoin.decode(Ut,Ut.uint32()));break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{rewards:Array.isArray(It==null?void 0:It.rewards)?It.rewards.map(Gt=>mt.DecCoin.fromJSON(Gt)):[]}},toJSON(It){const Gt={};return It.rewards?Gt.rewards=It.rewards.map(Ut=>Ut?mt.DecCoin.toJSON(Ut):void 0):Gt.rewards=[],Gt},fromPartial(It){var Ut;const Gt=Tt();return Gt.rewards=((Ut=It.rewards)==null?void 0:Ut.map(Vt=>mt.DecCoin.fromPartial(Vt)))||[],Gt}};function Mt(){return{delegatorAddress:""}}d.QueryDelegationTotalRewardsRequest={encode(It,Gt=kt.Writer.create()){return It.delegatorAddress!==""&&Gt.uint32(10).string(It.delegatorAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Mt();for(;Ut.pos>>3){case 1:qt.delegatorAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{delegatorAddress:(0,vt.isSet)(It.delegatorAddress)?String(It.delegatorAddress):""}},toJSON(It){const Gt={};return It.delegatorAddress!==void 0&&(Gt.delegatorAddress=It.delegatorAddress),Gt},fromPartial(It){const Gt=Mt();return Gt.delegatorAddress=It.delegatorAddress??"",Gt}};function jt(){return{rewards:[],total:[]}}d.QueryDelegationTotalRewardsResponse={encode(It,Gt=kt.Writer.create()){for(const Ut of It.rewards)ht.DelegationDelegatorReward.encode(Ut,Gt.uint32(10).fork()).ldelim();for(const Ut of It.total)mt.DecCoin.encode(Ut,Gt.uint32(18).fork()).ldelim();return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=jt();for(;Ut.pos>>3){case 1:qt.rewards.push(ht.DelegationDelegatorReward.decode(Ut,Ut.uint32()));break;case 2:qt.total.push(mt.DecCoin.decode(Ut,Ut.uint32()));break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{rewards:Array.isArray(It==null?void 0:It.rewards)?It.rewards.map(Gt=>ht.DelegationDelegatorReward.fromJSON(Gt)):[],total:Array.isArray(It==null?void 0:It.total)?It.total.map(Gt=>mt.DecCoin.fromJSON(Gt)):[]}},toJSON(It){const Gt={};return It.rewards?Gt.rewards=It.rewards.map(Ut=>Ut?ht.DelegationDelegatorReward.toJSON(Ut):void 0):Gt.rewards=[],It.total?Gt.total=It.total.map(Ut=>Ut?mt.DecCoin.toJSON(Ut):void 0):Gt.total=[],Gt},fromPartial(It){var Ut,Vt;const Gt=jt();return Gt.rewards=((Ut=It.rewards)==null?void 0:Ut.map(qt=>ht.DelegationDelegatorReward.fromPartial(qt)))||[],Gt.total=((Vt=It.total)==null?void 0:Vt.map(qt=>mt.DecCoin.fromPartial(qt)))||[],Gt}};function Ht(){return{delegatorAddress:""}}d.QueryDelegatorValidatorsRequest={encode(It,Gt=kt.Writer.create()){return It.delegatorAddress!==""&&Gt.uint32(10).string(It.delegatorAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Ht();for(;Ut.pos>>3){case 1:qt.delegatorAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{delegatorAddress:(0,vt.isSet)(It.delegatorAddress)?String(It.delegatorAddress):""}},toJSON(It){const Gt={};return It.delegatorAddress!==void 0&&(Gt.delegatorAddress=It.delegatorAddress),Gt},fromPartial(It){const Gt=Ht();return Gt.delegatorAddress=It.delegatorAddress??"",Gt}};function an(){return{validators:[]}}d.QueryDelegatorValidatorsResponse={encode(It,Gt=kt.Writer.create()){for(const Ut of It.validators)Gt.uint32(10).string(Ut);return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=an();for(;Ut.pos>>3){case 1:qt.validators.push(Ut.string());break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{validators:Array.isArray(It==null?void 0:It.validators)?It.validators.map(Gt=>String(Gt)):[]}},toJSON(It){const Gt={};return It.validators?Gt.validators=It.validators.map(Ut=>Ut):Gt.validators=[],Gt},fromPartial(It){var Ut;const Gt=an();return Gt.validators=((Ut=It.validators)==null?void 0:Ut.map(Vt=>Vt))||[],Gt}};function yt(){return{delegatorAddress:""}}d.QueryDelegatorWithdrawAddressRequest={encode(It,Gt=kt.Writer.create()){return It.delegatorAddress!==""&&Gt.uint32(10).string(It.delegatorAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=yt();for(;Ut.pos>>3){case 1:qt.delegatorAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{delegatorAddress:(0,vt.isSet)(It.delegatorAddress)?String(It.delegatorAddress):""}},toJSON(It){const Gt={};return It.delegatorAddress!==void 0&&(Gt.delegatorAddress=It.delegatorAddress),Gt},fromPartial(It){const Gt=yt();return Gt.delegatorAddress=It.delegatorAddress??"",Gt}};function $t(){return{withdrawAddress:""}}d.QueryDelegatorWithdrawAddressResponse={encode(It,Gt=kt.Writer.create()){return It.withdrawAddress!==""&&Gt.uint32(10).string(It.withdrawAddress),Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=$t();for(;Ut.pos>>3){case 1:qt.withdrawAddress=Ut.string();break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{withdrawAddress:(0,vt.isSet)(It.withdrawAddress)?String(It.withdrawAddress):""}},toJSON(It){const Gt={};return It.withdrawAddress!==void 0&&(Gt.withdrawAddress=It.withdrawAddress),Gt},fromPartial(It){const Gt=$t();return Gt.withdrawAddress=It.withdrawAddress??"",Gt}};function Yt(){return{}}d.QueryCommunityPoolRequest={encode(It,Gt=kt.Writer.create()){return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Yt();for(;Ut.pos>>3){default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{}},toJSON(It){return{}},fromPartial(It){return Yt()}};function Kt(){return{pool:[]}}d.QueryCommunityPoolResponse={encode(It,Gt=kt.Writer.create()){for(const Ut of It.pool)mt.DecCoin.encode(Ut,Gt.uint32(10).fork()).ldelim();return Gt},decode(It,Gt){const Ut=It instanceof kt.Reader?It:new kt.Reader(It);let Vt=Gt===void 0?Ut.len:Ut.pos+Gt;const qt=Kt();for(;Ut.pos>>3){case 1:qt.pool.push(mt.DecCoin.decode(Ut,Ut.uint32()));break;default:Ut.skipType(fn&7);break}}return qt},fromJSON(It){return{pool:Array.isArray(It==null?void 0:It.pool)?It.pool.map(Gt=>mt.DecCoin.fromJSON(Gt)):[]}},toJSON(It){const Gt={};return It.pool?Gt.pool=It.pool.map(Ut=>Ut?mt.DecCoin.toJSON(Ut):void 0):Gt.pool=[],Gt},fromPartial(It){var Ut;const Gt=Kt();return Gt.pool=((Ut=It.pool)==null?void 0:Ut.map(Vt=>mt.DecCoin.fromPartial(Vt)))||[],Gt}};class St{constructor(Gt){this.rpc=Gt,this.Params=this.Params.bind(this),this.ValidatorDistributionInfo=this.ValidatorDistributionInfo.bind(this),this.ValidatorOutstandingRewards=this.ValidatorOutstandingRewards.bind(this),this.ValidatorCommission=this.ValidatorCommission.bind(this),this.ValidatorSlashes=this.ValidatorSlashes.bind(this),this.DelegationRewards=this.DelegationRewards.bind(this),this.DelegationTotalRewards=this.DelegationTotalRewards.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorWithdrawAddress=this.DelegatorWithdrawAddress.bind(this),this.CommunityPool=this.CommunityPool.bind(this)}Params(Gt={}){const Ut=d.QueryParamsRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","Params",Ut).then(qt=>d.QueryParamsResponse.decode(new kt.Reader(qt)))}ValidatorDistributionInfo(Gt){const Ut=d.QueryValidatorDistributionInfoRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorDistributionInfo",Ut).then(qt=>d.QueryValidatorDistributionInfoResponse.decode(new kt.Reader(qt)))}ValidatorOutstandingRewards(Gt){const Ut=d.QueryValidatorOutstandingRewardsRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorOutstandingRewards",Ut).then(qt=>d.QueryValidatorOutstandingRewardsResponse.decode(new kt.Reader(qt)))}ValidatorCommission(Gt){const Ut=d.QueryValidatorCommissionRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorCommission",Ut).then(qt=>d.QueryValidatorCommissionResponse.decode(new kt.Reader(qt)))}ValidatorSlashes(Gt){const Ut=d.QueryValidatorSlashesRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorSlashes",Ut).then(qt=>d.QueryValidatorSlashesResponse.decode(new kt.Reader(qt)))}DelegationRewards(Gt){const Ut=d.QueryDelegationRewardsRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationRewards",Ut).then(qt=>d.QueryDelegationRewardsResponse.decode(new kt.Reader(qt)))}DelegationTotalRewards(Gt){const Ut=d.QueryDelegationTotalRewardsRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationTotalRewards",Ut).then(qt=>d.QueryDelegationTotalRewardsResponse.decode(new kt.Reader(qt)))}DelegatorValidators(Gt){const Ut=d.QueryDelegatorValidatorsRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorValidators",Ut).then(qt=>d.QueryDelegatorValidatorsResponse.decode(new kt.Reader(qt)))}DelegatorWithdrawAddress(Gt){const Ut=d.QueryDelegatorWithdrawAddressRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorWithdrawAddress",Ut).then(qt=>d.QueryDelegatorWithdrawAddressResponse.decode(new kt.Reader(qt)))}CommunityPool(Gt={}){const Ut=d.QueryCommunityPoolRequest.encode(Gt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","CommunityPool",Ut).then(qt=>d.QueryCommunityPoolResponse.decode(new kt.Reader(qt)))}}d.QueryClientImpl=St})(query$j);var __importDefault$w=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(queries$9,"__esModule",{value:!0});queries$9.setupDistributionExtension=void 0;const query_1$e=query$j,long_1$j=__importDefault$w(long),queryclient_1$a=queryclient$1;function setupDistributionExtension(d){const b=(0,queryclient_1$a.createProtobufRpcClient)(d),dt=new query_1$e.QueryClientImpl(b);return{distribution:{communityPool:async()=>await dt.CommunityPool({}),delegationRewards:async(ct,lt)=>await dt.DelegationRewards({delegatorAddress:ct,validatorAddress:lt}),delegationTotalRewards:async ct=>await dt.DelegationTotalRewards({delegatorAddress:ct}),delegatorValidators:async ct=>await dt.DelegatorValidators({delegatorAddress:ct}),delegatorWithdrawAddress:async ct=>await dt.DelegatorWithdrawAddress({delegatorAddress:ct}),params:async()=>await dt.Params({}),validatorCommission:async ct=>await dt.ValidatorCommission({validatorAddress:ct}),validatorOutstandingRewards:async ct=>await dt.ValidatorOutstandingRewards({validatorAddress:ct}),validatorSlashes:async(ct,lt,ht,mt)=>await dt.ValidatorSlashes({validatorAddress:ct,startingHeight:long_1$j.default.fromNumber(lt,!0),endingHeight:long_1$j.default.fromNumber(ht,!0),pagination:(0,queryclient_1$a.createPagination)(mt)})}}}queries$9.setupDistributionExtension=setupDistributionExtension;var aminomessages$8={};Object.defineProperty(aminomessages$8,"__esModule",{value:!0});aminomessages$8.createEvidenceAminoConverters=aminomessages$8.isAminoMsgSubmitEvidence=void 0;function isAminoMsgSubmitEvidence(d){return d.type==="cosmos-sdk/MsgSubmitEvidence"}aminomessages$8.isAminoMsgSubmitEvidence=isAminoMsgSubmitEvidence;function createEvidenceAminoConverters(){throw new Error("Not implemented")}aminomessages$8.createEvidenceAminoConverters=createEvidenceAminoConverters;var aminomessages$7={};Object.defineProperty(aminomessages$7,"__esModule",{value:!0});aminomessages$7.createFeegrantAminoConverters=void 0;function createFeegrantAminoConverters(){return{}}aminomessages$7.createFeegrantAminoConverters=createFeegrantAminoConverters;var messages$7={},tx$n={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt);var Nt=Object.getOwnPropertyDescriptor(nn,Qt);(!Nt||("get"in Nt?!nn.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return nn[Qt]}}),Object.defineProperty(Rt,wt,Nt)}:function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt),Rt[wt]=nn[Qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Rt,nn){Object.defineProperty(Rt,"default",{enumerable:!0,value:nn})}:function(Rt,nn){Rt.default=nn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Rt){if(Rt&&Rt.__esModule)return Rt;var nn={};if(Rt!=null)for(var Qt in Rt)Qt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,Qt)&&b(nn,Rt,Qt);return dt(nn,Rt),nn};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgRevokeAllowanceResponse=d.MsgRevokeAllowance=d.MsgGrantAllowanceResponse=d.MsgGrantAllowance=d.protobufPackage=void 0;const lt=any$1,ht=ct(minimal$4),mt=helpers$1;d.protobufPackage="cosmos.feegrant.v1beta1";function vt(){return{granter:"",grantee:"",allowance:void 0}}d.MsgGrantAllowance={encode(Rt,nn=ht.Writer.create()){return Rt.granter!==""&&nn.uint32(10).string(Rt.granter),Rt.grantee!==""&&nn.uint32(18).string(Rt.grantee),Rt.allowance!==void 0&<.Any.encode(Rt.allowance,nn.uint32(26).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof ht.Reader?Rt:new ht.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=vt();for(;Qt.pos>>3){case 1:Nt.granter=Qt.string();break;case 2:Nt.grantee=Qt.string();break;case 3:Nt.allowance=lt.Any.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{granter:(0,mt.isSet)(Rt.granter)?String(Rt.granter):"",grantee:(0,mt.isSet)(Rt.grantee)?String(Rt.grantee):"",allowance:(0,mt.isSet)(Rt.allowance)?lt.Any.fromJSON(Rt.allowance):void 0}},toJSON(Rt){const nn={};return Rt.granter!==void 0&&(nn.granter=Rt.granter),Rt.grantee!==void 0&&(nn.grantee=Rt.grantee),Rt.allowance!==void 0&&(nn.allowance=Rt.allowance?lt.Any.toJSON(Rt.allowance):void 0),nn},fromPartial(Rt){const nn=vt();return nn.granter=Rt.granter??"",nn.grantee=Rt.grantee??"",nn.allowance=Rt.allowance!==void 0&&Rt.allowance!==null?lt.Any.fromPartial(Rt.allowance):void 0,nn}};function kt(){return{}}d.MsgGrantAllowanceResponse={encode(Rt,nn=ht.Writer.create()){return nn},decode(Rt,nn){const Qt=Rt instanceof ht.Reader?Rt:new ht.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=kt();for(;Qt.pos>>3){default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{}},toJSON(Rt){return{}},fromPartial(Rt){return kt()}};function Pt(){return{granter:"",grantee:""}}d.MsgRevokeAllowance={encode(Rt,nn=ht.Writer.create()){return Rt.granter!==""&&nn.uint32(10).string(Rt.granter),Rt.grantee!==""&&nn.uint32(18).string(Rt.grantee),nn},decode(Rt,nn){const Qt=Rt instanceof ht.Reader?Rt:new ht.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Pt();for(;Qt.pos>>3){case 1:Nt.granter=Qt.string();break;case 2:Nt.grantee=Qt.string();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{granter:(0,mt.isSet)(Rt.granter)?String(Rt.granter):"",grantee:(0,mt.isSet)(Rt.grantee)?String(Rt.grantee):""}},toJSON(Rt){const nn={};return Rt.granter!==void 0&&(nn.granter=Rt.granter),Rt.grantee!==void 0&&(nn.grantee=Rt.grantee),nn},fromPartial(Rt){const nn=Pt();return nn.granter=Rt.granter??"",nn.grantee=Rt.grantee??"",nn}};function Jt(){return{}}d.MsgRevokeAllowanceResponse={encode(Rt,nn=ht.Writer.create()){return nn},decode(Rt,nn){const Qt=Rt instanceof ht.Reader?Rt:new ht.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Jt();for(;Qt.pos>>3){default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{}},toJSON(Rt){return{}},fromPartial(Rt){return Jt()}};class Zt{constructor(nn){this.rpc=nn,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(nn){const Qt=d.MsgGrantAllowance.encode(nn).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",Qt).then(Nt=>d.MsgGrantAllowanceResponse.decode(new ht.Reader(Nt)))}RevokeAllowance(nn){const Qt=d.MsgRevokeAllowance.encode(nn).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",Qt).then(Nt=>d.MsgRevokeAllowanceResponse.decode(new ht.Reader(Nt)))}}d.MsgClientImpl=Zt})(tx$n);Object.defineProperty(messages$7,"__esModule",{value:!0});messages$7.feegrantTypes=void 0;const tx_1$b=tx$n;messages$7.feegrantTypes=[["/cosmos.feegrant.v1beta1.MsgGrantAllowance",tx_1$b.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",tx_1$b.MsgRevokeAllowance]];var queries$8={},query$i={},feegrant={},duration$1={},__createBinding$n=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$n=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$n=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$n(b,d,dt);return __setModuleDefault$n(b,d),b};Object.defineProperty(duration$1,"__esModule",{value:!0});duration$1.Duration=duration$1.protobufPackage=void 0;const helpers_1$g=helpers$1,_m0$h=__importStar$n(minimal$4);duration$1.protobufPackage="google.protobuf";function createBaseDuration$1(){return{seconds:helpers_1$g.Long.ZERO,nanos:0}}duration$1.Duration={encode(d,b=_m0$h.Writer.create()){return d.seconds.isZero()||b.uint32(8).int64(d.seconds),d.nanos!==0&&b.uint32(16).int32(d.nanos),b},decode(d,b){const dt=d instanceof _m0$h.Reader?d:new _m0$h.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDuration$1();for(;dt.pos>>3){case 1:lt.seconds=dt.int64();break;case 2:lt.nanos=dt.int32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{seconds:(0,helpers_1$g.isSet)(d.seconds)?helpers_1$g.Long.fromValue(d.seconds):helpers_1$g.Long.ZERO,nanos:(0,helpers_1$g.isSet)(d.nanos)?Number(d.nanos):0}},toJSON(d){const b={};return d.seconds!==void 0&&(b.seconds=(d.seconds||helpers_1$g.Long.ZERO).toString()),d.nanos!==void 0&&(b.nanos=Math.round(d.nanos)),b},fromPartial(d){const b=createBaseDuration$1();return b.seconds=d.seconds!==void 0&&d.seconds!==null?helpers_1$g.Long.fromValue(d.seconds):helpers_1$g.Long.ZERO,b.nanos=d.nanos??0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.Grant=d.AllowedMsgAllowance=d.PeriodicAllowance=d.BasicAllowance=d.protobufPackage=void 0;const lt=coin$3,ht=timestamp$1,mt=duration$1,vt=any$1,kt=ct(minimal$4),Pt=helpers$1;d.protobufPackage="cosmos.feegrant.v1beta1";function Jt(){return{spendLimit:[],expiration:void 0}}d.BasicAllowance={encode(Qt,wt=kt.Writer.create()){for(const Nt of Qt.spendLimit)lt.Coin.encode(Nt,wt.uint32(10).fork()).ldelim();return Qt.expiration!==void 0&&ht.Timestamp.encode(Qt.expiration,wt.uint32(18).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof kt.Reader?Qt:new kt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Jt();for(;Nt.pos>>3){case 1:Et.spendLimit.push(lt.Coin.decode(Nt,Nt.uint32()));break;case 2:Et.expiration=ht.Timestamp.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{spendLimit:Array.isArray(Qt==null?void 0:Qt.spendLimit)?Qt.spendLimit.map(wt=>lt.Coin.fromJSON(wt)):[],expiration:(0,Pt.isSet)(Qt.expiration)?(0,Pt.fromJsonTimestamp)(Qt.expiration):void 0}},toJSON(Qt){const wt={};return Qt.spendLimit?wt.spendLimit=Qt.spendLimit.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.spendLimit=[],Qt.expiration!==void 0&&(wt.expiration=(0,Pt.fromTimestamp)(Qt.expiration).toISOString()),wt},fromPartial(Qt){var Nt;const wt=Jt();return wt.spendLimit=((Nt=Qt.spendLimit)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt.expiration=Qt.expiration!==void 0&&Qt.expiration!==null?ht.Timestamp.fromPartial(Qt.expiration):void 0,wt}};function Zt(){return{basic:void 0,period:void 0,periodSpendLimit:[],periodCanSpend:[],periodReset:void 0}}d.PeriodicAllowance={encode(Qt,wt=kt.Writer.create()){Qt.basic!==void 0&&d.BasicAllowance.encode(Qt.basic,wt.uint32(10).fork()).ldelim(),Qt.period!==void 0&&mt.Duration.encode(Qt.period,wt.uint32(18).fork()).ldelim();for(const Nt of Qt.periodSpendLimit)lt.Coin.encode(Nt,wt.uint32(26).fork()).ldelim();for(const Nt of Qt.periodCanSpend)lt.Coin.encode(Nt,wt.uint32(34).fork()).ldelim();return Qt.periodReset!==void 0&&ht.Timestamp.encode(Qt.periodReset,wt.uint32(42).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof kt.Reader?Qt:new kt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Zt();for(;Nt.pos>>3){case 1:Et.basic=d.BasicAllowance.decode(Nt,Nt.uint32());break;case 2:Et.period=mt.Duration.decode(Nt,Nt.uint32());break;case 3:Et.periodSpendLimit.push(lt.Coin.decode(Nt,Nt.uint32()));break;case 4:Et.periodCanSpend.push(lt.Coin.decode(Nt,Nt.uint32()));break;case 5:Et.periodReset=ht.Timestamp.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{basic:(0,Pt.isSet)(Qt.basic)?d.BasicAllowance.fromJSON(Qt.basic):void 0,period:(0,Pt.isSet)(Qt.period)?mt.Duration.fromJSON(Qt.period):void 0,periodSpendLimit:Array.isArray(Qt==null?void 0:Qt.periodSpendLimit)?Qt.periodSpendLimit.map(wt=>lt.Coin.fromJSON(wt)):[],periodCanSpend:Array.isArray(Qt==null?void 0:Qt.periodCanSpend)?Qt.periodCanSpend.map(wt=>lt.Coin.fromJSON(wt)):[],periodReset:(0,Pt.isSet)(Qt.periodReset)?(0,Pt.fromJsonTimestamp)(Qt.periodReset):void 0}},toJSON(Qt){const wt={};return Qt.basic!==void 0&&(wt.basic=Qt.basic?d.BasicAllowance.toJSON(Qt.basic):void 0),Qt.period!==void 0&&(wt.period=Qt.period?mt.Duration.toJSON(Qt.period):void 0),Qt.periodSpendLimit?wt.periodSpendLimit=Qt.periodSpendLimit.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.periodSpendLimit=[],Qt.periodCanSpend?wt.periodCanSpend=Qt.periodCanSpend.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.periodCanSpend=[],Qt.periodReset!==void 0&&(wt.periodReset=(0,Pt.fromTimestamp)(Qt.periodReset).toISOString()),wt},fromPartial(Qt){var Nt,xt;const wt=Zt();return wt.basic=Qt.basic!==void 0&&Qt.basic!==null?d.BasicAllowance.fromPartial(Qt.basic):void 0,wt.period=Qt.period!==void 0&&Qt.period!==null?mt.Duration.fromPartial(Qt.period):void 0,wt.periodSpendLimit=((Nt=Qt.periodSpendLimit)==null?void 0:Nt.map(Et=>lt.Coin.fromPartial(Et)))||[],wt.periodCanSpend=((xt=Qt.periodCanSpend)==null?void 0:xt.map(Et=>lt.Coin.fromPartial(Et)))||[],wt.periodReset=Qt.periodReset!==void 0&&Qt.periodReset!==null?ht.Timestamp.fromPartial(Qt.periodReset):void 0,wt}};function Rt(){return{allowance:void 0,allowedMessages:[]}}d.AllowedMsgAllowance={encode(Qt,wt=kt.Writer.create()){Qt.allowance!==void 0&&vt.Any.encode(Qt.allowance,wt.uint32(10).fork()).ldelim();for(const Nt of Qt.allowedMessages)wt.uint32(18).string(Nt);return wt},decode(Qt,wt){const Nt=Qt instanceof kt.Reader?Qt:new kt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Rt();for(;Nt.pos>>3){case 1:Et.allowance=vt.Any.decode(Nt,Nt.uint32());break;case 2:Et.allowedMessages.push(Nt.string());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{allowance:(0,Pt.isSet)(Qt.allowance)?vt.Any.fromJSON(Qt.allowance):void 0,allowedMessages:Array.isArray(Qt==null?void 0:Qt.allowedMessages)?Qt.allowedMessages.map(wt=>String(wt)):[]}},toJSON(Qt){const wt={};return Qt.allowance!==void 0&&(wt.allowance=Qt.allowance?vt.Any.toJSON(Qt.allowance):void 0),Qt.allowedMessages?wt.allowedMessages=Qt.allowedMessages.map(Nt=>Nt):wt.allowedMessages=[],wt},fromPartial(Qt){var Nt;const wt=Rt();return wt.allowance=Qt.allowance!==void 0&&Qt.allowance!==null?vt.Any.fromPartial(Qt.allowance):void 0,wt.allowedMessages=((Nt=Qt.allowedMessages)==null?void 0:Nt.map(xt=>xt))||[],wt}};function nn(){return{granter:"",grantee:"",allowance:void 0}}d.Grant={encode(Qt,wt=kt.Writer.create()){return Qt.granter!==""&&wt.uint32(10).string(Qt.granter),Qt.grantee!==""&&wt.uint32(18).string(Qt.grantee),Qt.allowance!==void 0&&vt.Any.encode(Qt.allowance,wt.uint32(26).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof kt.Reader?Qt:new kt.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=nn();for(;Nt.pos>>3){case 1:Et.granter=Nt.string();break;case 2:Et.grantee=Nt.string();break;case 3:Et.allowance=vt.Any.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{granter:(0,Pt.isSet)(Qt.granter)?String(Qt.granter):"",grantee:(0,Pt.isSet)(Qt.grantee)?String(Qt.grantee):"",allowance:(0,Pt.isSet)(Qt.allowance)?vt.Any.fromJSON(Qt.allowance):void 0}},toJSON(Qt){const wt={};return Qt.granter!==void 0&&(wt.granter=Qt.granter),Qt.grantee!==void 0&&(wt.grantee=Qt.grantee),Qt.allowance!==void 0&&(wt.allowance=Qt.allowance?vt.Any.toJSON(Qt.allowance):void 0),wt},fromPartial(Qt){const wt=nn();return wt.granter=Qt.granter??"",wt.grantee=Qt.grantee??"",wt.allowance=Qt.allowance!==void 0&&Qt.allowance!==null?vt.Any.fromPartial(Qt.allowance):void 0,wt}}})(feegrant);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryAllowancesByGranterResponse=d.QueryAllowancesByGranterRequest=d.QueryAllowancesResponse=d.QueryAllowancesRequest=d.QueryAllowanceResponse=d.QueryAllowanceRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=feegrant,mt=ct(minimal$4),vt=helpers$1;d.protobufPackage="cosmos.feegrant.v1beta1";function kt(){return{granter:"",grantee:""}}d.QueryAllowanceRequest={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):""}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),Nt},fromPartial(wt){const Nt=kt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt}};function Pt(){return{allowance:void 0}}d.QueryAllowanceResponse={encode(wt,Nt=mt.Writer.create()){return wt.allowance!==void 0&&ht.Grant.encode(wt.allowance,Nt.uint32(10).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.allowance=ht.Grant.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{allowance:(0,vt.isSet)(wt.allowance)?ht.Grant.fromJSON(wt.allowance):void 0}},toJSON(wt){const Nt={};return wt.allowance!==void 0&&(Nt.allowance=wt.allowance?ht.Grant.toJSON(wt.allowance):void 0),Nt},fromPartial(wt){const Nt=Pt();return Nt.allowance=wt.allowance!==void 0&&wt.allowance!==null?ht.Grant.fromPartial(wt.allowance):void 0,Nt}};function Jt(){return{grantee:"",pagination:void 0}}d.QueryAllowancesRequest={encode(wt,Nt=mt.Writer.create()){return wt.grantee!==""&&Nt.uint32(10).string(wt.grantee),wt.pagination!==void 0&<.PageRequest.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.grantee=xt.string();break;case 2:Bt.pagination=lt.PageRequest.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",pagination:(0,vt.isSet)(wt.pagination)?lt.PageRequest.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageRequest.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){const Nt=Jt();return Nt.grantee=wt.grantee??"",Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageRequest.fromPartial(wt.pagination):void 0,Nt}};function Zt(){return{allowances:[],pagination:void 0}}d.QueryAllowancesResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.allowances)ht.Grant.encode(xt,Nt.uint32(10).fork()).ldelim();return wt.pagination!==void 0&<.PageResponse.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){case 1:Bt.allowances.push(ht.Grant.decode(xt,xt.uint32()));break;case 2:Bt.pagination=lt.PageResponse.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{allowances:Array.isArray(wt==null?void 0:wt.allowances)?wt.allowances.map(Nt=>ht.Grant.fromJSON(Nt)):[],pagination:(0,vt.isSet)(wt.pagination)?lt.PageResponse.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.allowances?Nt.allowances=wt.allowances.map(xt=>xt?ht.Grant.toJSON(xt):void 0):Nt.allowances=[],wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageResponse.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){var xt;const Nt=Zt();return Nt.allowances=((xt=wt.allowances)==null?void 0:xt.map(Et=>ht.Grant.fromPartial(Et)))||[],Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageResponse.fromPartial(wt.pagination):void 0,Nt}};function Rt(){return{granter:"",pagination:void 0}}d.QueryAllowancesByGranterRequest={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.pagination!==void 0&<.PageRequest.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.pagination=lt.PageRequest.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",pagination:(0,vt.isSet)(wt.pagination)?lt.PageRequest.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageRequest.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){const Nt=Rt();return Nt.granter=wt.granter??"",Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageRequest.fromPartial(wt.pagination):void 0,Nt}};function nn(){return{allowances:[],pagination:void 0}}d.QueryAllowancesByGranterResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.allowances)ht.Grant.encode(xt,Nt.uint32(10).fork()).ldelim();return wt.pagination!==void 0&<.PageResponse.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){case 1:Bt.allowances.push(ht.Grant.decode(xt,xt.uint32()));break;case 2:Bt.pagination=lt.PageResponse.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{allowances:Array.isArray(wt==null?void 0:wt.allowances)?wt.allowances.map(Nt=>ht.Grant.fromJSON(Nt)):[],pagination:(0,vt.isSet)(wt.pagination)?lt.PageResponse.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.allowances?Nt.allowances=wt.allowances.map(xt=>xt?ht.Grant.toJSON(xt):void 0):Nt.allowances=[],wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageResponse.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){var xt;const Nt=nn();return Nt.allowances=((xt=wt.allowances)==null?void 0:xt.map(Et=>ht.Grant.fromPartial(Et)))||[],Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageResponse.fromPartial(wt.pagination):void 0,Nt}};class Qt{constructor(Nt){this.rpc=Nt,this.Allowance=this.Allowance.bind(this),this.Allowances=this.Allowances.bind(this),this.AllowancesByGranter=this.AllowancesByGranter.bind(this)}Allowance(Nt){const xt=d.QueryAllowanceRequest.encode(Nt).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowance",xt).then(Bt=>d.QueryAllowanceResponse.decode(new mt.Reader(Bt)))}Allowances(Nt){const xt=d.QueryAllowancesRequest.encode(Nt).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowances",xt).then(Bt=>d.QueryAllowancesResponse.decode(new mt.Reader(Bt)))}AllowancesByGranter(Nt){const xt=d.QueryAllowancesByGranterRequest.encode(Nt).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","AllowancesByGranter",xt).then(Bt=>d.QueryAllowancesByGranterResponse.decode(new mt.Reader(Bt)))}}d.QueryClientImpl=Qt})(query$i);Object.defineProperty(queries$8,"__esModule",{value:!0});queries$8.setupFeegrantExtension=void 0;const query_1$d=query$i,queryclient_1$9=queryclient$1;function setupFeegrantExtension(d){const b=(0,queryclient_1$9.createProtobufRpcClient)(d),dt=new query_1$d.QueryClientImpl(b);return{feegrant:{allowance:async(ct,lt)=>await dt.Allowance({granter:ct,grantee:lt}),allowances:async(ct,lt)=>await dt.Allowances({grantee:ct,pagination:(0,queryclient_1$9.createPagination)(lt)})}}}queries$8.setupFeegrantExtension=setupFeegrantExtension;var aminomessages$6={},gov$2={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.TallyParams=d.VotingParams=d.DepositParams=d.Vote=d.TallyResult=d.Proposal=d.Deposit=d.TextProposal=d.WeightedVoteOption=d.proposalStatusToJSON=d.proposalStatusFromJSON=d.ProposalStatus=d.voteOptionToJSON=d.voteOptionFromJSON=d.VoteOption=d.protobufPackage=void 0;const lt=coin$3,ht=any$1,mt=timestamp$1,vt=duration$1,kt=helpers$1,Pt=ct(minimal$4);d.protobufPackage="cosmos.gov.v1beta1";var Jt;(function(yt){yt[yt.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",yt[yt.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",yt[yt.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",yt[yt.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",yt[yt.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.VoteOption||(d.VoteOption={}));function Zt(yt){switch(yt){case 0:case"VOTE_OPTION_UNSPECIFIED":return Jt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return Jt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return Jt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return Jt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return Jt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.voteOptionFromJSON=Zt;function Rt(yt){switch(yt){case Jt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case Jt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case Jt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case Jt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case Jt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.voteOptionToJSON=Rt;var nn;(function(yt){yt[yt.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",yt[yt.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",yt[yt.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",yt[yt.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",yt[yt.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",yt[yt.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nn=d.ProposalStatus||(d.ProposalStatus={}));function Qt(yt){switch(yt){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return nn.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return nn.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return nn.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return nn.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return nn.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return nn.PROPOSAL_STATUS_FAILED;case-1:case"UNRECOGNIZED":default:return nn.UNRECOGNIZED}}d.proposalStatusFromJSON=Qt;function wt(yt){switch(yt){case nn.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case nn.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case nn.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case nn.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case nn.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case nn.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case nn.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.proposalStatusToJSON=wt;function Nt(){return{option:0,weight:""}}d.WeightedVoteOption={encode(yt,$t=Pt.Writer.create()){return yt.option!==0&&$t.uint32(8).int32(yt.option),yt.weight!==""&&$t.uint32(18).string(yt.weight),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.option=Yt.int32();break;case 2:St.weight=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{option:(0,kt.isSet)(yt.option)?Zt(yt.option):0,weight:(0,kt.isSet)(yt.weight)?String(yt.weight):""}},toJSON(yt){const $t={};return yt.option!==void 0&&($t.option=Rt(yt.option)),yt.weight!==void 0&&($t.weight=yt.weight),$t},fromPartial(yt){const $t=Nt();return $t.option=yt.option??0,$t.weight=yt.weight??"",$t}};function xt(){return{title:"",description:""}}d.TextProposal={encode(yt,$t=Pt.Writer.create()){return yt.title!==""&&$t.uint32(10).string(yt.title),yt.description!==""&&$t.uint32(18).string(yt.description),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.title=Yt.string();break;case 2:St.description=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{title:(0,kt.isSet)(yt.title)?String(yt.title):"",description:(0,kt.isSet)(yt.description)?String(yt.description):""}},toJSON(yt){const $t={};return yt.title!==void 0&&($t.title=yt.title),yt.description!==void 0&&($t.description=yt.description),$t},fromPartial(yt){const $t=xt();return $t.title=yt.title??"",$t.description=yt.description??"",$t}};function Et(){return{proposalId:kt.Long.UZERO,depositor:"",amount:[]}}d.Deposit={encode(yt,$t=Pt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.depositor!==""&&$t.uint32(18).string(yt.depositor);for(const Yt of yt.amount)lt.Coin.encode(Yt,$t.uint32(26).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.depositor=Yt.string();break;case 3:St.amount.push(lt.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,kt.isSet)(yt.proposalId)?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,depositor:(0,kt.isSet)(yt.depositor)?String(yt.depositor):"",amount:Array.isArray(yt==null?void 0:yt.amount)?yt.amount.map($t=>lt.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||kt.Long.UZERO).toString()),yt.depositor!==void 0&&($t.depositor=yt.depositor),yt.amount?$t.amount=yt.amount.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.amount=[],$t},fromPartial(yt){var Yt;const $t=Et();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,$t.depositor=yt.depositor??"",$t.amount=((Yt=yt.amount)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t}};function Bt(){return{proposalId:kt.Long.UZERO,content:void 0,status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0}}d.Proposal={encode(yt,$t=Pt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.content!==void 0&&ht.Any.encode(yt.content,$t.uint32(18).fork()).ldelim(),yt.status!==0&&$t.uint32(24).int32(yt.status),yt.finalTallyResult!==void 0&&d.TallyResult.encode(yt.finalTallyResult,$t.uint32(34).fork()).ldelim(),yt.submitTime!==void 0&&mt.Timestamp.encode(yt.submitTime,$t.uint32(42).fork()).ldelim(),yt.depositEndTime!==void 0&&mt.Timestamp.encode(yt.depositEndTime,$t.uint32(50).fork()).ldelim();for(const Yt of yt.totalDeposit)lt.Coin.encode(Yt,$t.uint32(58).fork()).ldelim();return yt.votingStartTime!==void 0&&mt.Timestamp.encode(yt.votingStartTime,$t.uint32(66).fork()).ldelim(),yt.votingEndTime!==void 0&&mt.Timestamp.encode(yt.votingEndTime,$t.uint32(74).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.content=ht.Any.decode(Yt,Yt.uint32());break;case 3:St.status=Yt.int32();break;case 4:St.finalTallyResult=d.TallyResult.decode(Yt,Yt.uint32());break;case 5:St.submitTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 6:St.depositEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 7:St.totalDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 8:St.votingStartTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 9:St.votingEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,kt.isSet)(yt.proposalId)?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,content:(0,kt.isSet)(yt.content)?ht.Any.fromJSON(yt.content):void 0,status:(0,kt.isSet)(yt.status)?Qt(yt.status):0,finalTallyResult:(0,kt.isSet)(yt.finalTallyResult)?d.TallyResult.fromJSON(yt.finalTallyResult):void 0,submitTime:(0,kt.isSet)(yt.submitTime)?(0,kt.fromJsonTimestamp)(yt.submitTime):void 0,depositEndTime:(0,kt.isSet)(yt.depositEndTime)?(0,kt.fromJsonTimestamp)(yt.depositEndTime):void 0,totalDeposit:Array.isArray(yt==null?void 0:yt.totalDeposit)?yt.totalDeposit.map($t=>lt.Coin.fromJSON($t)):[],votingStartTime:(0,kt.isSet)(yt.votingStartTime)?(0,kt.fromJsonTimestamp)(yt.votingStartTime):void 0,votingEndTime:(0,kt.isSet)(yt.votingEndTime)?(0,kt.fromJsonTimestamp)(yt.votingEndTime):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||kt.Long.UZERO).toString()),yt.content!==void 0&&($t.content=yt.content?ht.Any.toJSON(yt.content):void 0),yt.status!==void 0&&($t.status=wt(yt.status)),yt.finalTallyResult!==void 0&&($t.finalTallyResult=yt.finalTallyResult?d.TallyResult.toJSON(yt.finalTallyResult):void 0),yt.submitTime!==void 0&&($t.submitTime=(0,kt.fromTimestamp)(yt.submitTime).toISOString()),yt.depositEndTime!==void 0&&($t.depositEndTime=(0,kt.fromTimestamp)(yt.depositEndTime).toISOString()),yt.totalDeposit?$t.totalDeposit=yt.totalDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.totalDeposit=[],yt.votingStartTime!==void 0&&($t.votingStartTime=(0,kt.fromTimestamp)(yt.votingStartTime).toISOString()),yt.votingEndTime!==void 0&&($t.votingEndTime=(0,kt.fromTimestamp)(yt.votingEndTime).toISOString()),$t},fromPartial(yt){var Yt;const $t=Bt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,$t.content=yt.content!==void 0&&yt.content!==null?ht.Any.fromPartial(yt.content):void 0,$t.status=yt.status??0,$t.finalTallyResult=yt.finalTallyResult!==void 0&&yt.finalTallyResult!==null?d.TallyResult.fromPartial(yt.finalTallyResult):void 0,$t.submitTime=yt.submitTime!==void 0&&yt.submitTime!==null?mt.Timestamp.fromPartial(yt.submitTime):void 0,$t.depositEndTime=yt.depositEndTime!==void 0&&yt.depositEndTime!==null?mt.Timestamp.fromPartial(yt.depositEndTime):void 0,$t.totalDeposit=((Yt=yt.totalDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.votingStartTime=yt.votingStartTime!==void 0&&yt.votingStartTime!==null?mt.Timestamp.fromPartial(yt.votingStartTime):void 0,$t.votingEndTime=yt.votingEndTime!==void 0&&yt.votingEndTime!==null?mt.Timestamp.fromPartial(yt.votingEndTime):void 0,$t}};function Tt(){return{yes:"",abstain:"",no:"",noWithVeto:""}}d.TallyResult={encode(yt,$t=Pt.Writer.create()){return yt.yes!==""&&$t.uint32(10).string(yt.yes),yt.abstain!==""&&$t.uint32(18).string(yt.abstain),yt.no!==""&&$t.uint32(26).string(yt.no),yt.noWithVeto!==""&&$t.uint32(34).string(yt.noWithVeto),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.yes=Yt.string();break;case 2:St.abstain=Yt.string();break;case 3:St.no=Yt.string();break;case 4:St.noWithVeto=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{yes:(0,kt.isSet)(yt.yes)?String(yt.yes):"",abstain:(0,kt.isSet)(yt.abstain)?String(yt.abstain):"",no:(0,kt.isSet)(yt.no)?String(yt.no):"",noWithVeto:(0,kt.isSet)(yt.noWithVeto)?String(yt.noWithVeto):""}},toJSON(yt){const $t={};return yt.yes!==void 0&&($t.yes=yt.yes),yt.abstain!==void 0&&($t.abstain=yt.abstain),yt.no!==void 0&&($t.no=yt.no),yt.noWithVeto!==void 0&&($t.noWithVeto=yt.noWithVeto),$t},fromPartial(yt){const $t=Tt();return $t.yes=yt.yes??"",$t.abstain=yt.abstain??"",$t.no=yt.no??"",$t.noWithVeto=yt.noWithVeto??"",$t}};function Mt(){return{proposalId:kt.Long.UZERO,voter:"",option:0,options:[]}}d.Vote={encode(yt,$t=Pt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.voter!==""&&$t.uint32(18).string(yt.voter),yt.option!==0&&$t.uint32(24).int32(yt.option);for(const Yt of yt.options)d.WeightedVoteOption.encode(Yt,$t.uint32(34).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.voter=Yt.string();break;case 3:St.option=Yt.int32();break;case 4:St.options.push(d.WeightedVoteOption.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,kt.isSet)(yt.proposalId)?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,voter:(0,kt.isSet)(yt.voter)?String(yt.voter):"",option:(0,kt.isSet)(yt.option)?Zt(yt.option):0,options:Array.isArray(yt==null?void 0:yt.options)?yt.options.map($t=>d.WeightedVoteOption.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||kt.Long.UZERO).toString()),yt.voter!==void 0&&($t.voter=yt.voter),yt.option!==void 0&&($t.option=Rt(yt.option)),yt.options?$t.options=yt.options.map(Yt=>Yt?d.WeightedVoteOption.toJSON(Yt):void 0):$t.options=[],$t},fromPartial(yt){var Yt;const $t=Mt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,$t.voter=yt.voter??"",$t.option=yt.option??0,$t.options=((Yt=yt.options)==null?void 0:Yt.map(Kt=>d.WeightedVoteOption.fromPartial(Kt)))||[],$t}};function jt(){return{minDeposit:[],maxDepositPeriod:void 0}}d.DepositParams={encode(yt,$t=Pt.Writer.create()){for(const Yt of yt.minDeposit)lt.Coin.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.maxDepositPeriod!==void 0&&vt.Duration.encode(yt.maxDepositPeriod,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.minDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 2:St.maxDepositPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{minDeposit:Array.isArray(yt==null?void 0:yt.minDeposit)?yt.minDeposit.map($t=>lt.Coin.fromJSON($t)):[],maxDepositPeriod:(0,kt.isSet)(yt.maxDepositPeriod)?vt.Duration.fromJSON(yt.maxDepositPeriod):void 0}},toJSON(yt){const $t={};return yt.minDeposit?$t.minDeposit=yt.minDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.minDeposit=[],yt.maxDepositPeriod!==void 0&&($t.maxDepositPeriod=yt.maxDepositPeriod?vt.Duration.toJSON(yt.maxDepositPeriod):void 0),$t},fromPartial(yt){var Yt;const $t=jt();return $t.minDeposit=((Yt=yt.minDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.maxDepositPeriod=yt.maxDepositPeriod!==void 0&&yt.maxDepositPeriod!==null?vt.Duration.fromPartial(yt.maxDepositPeriod):void 0,$t}};function Ht(){return{votingPeriod:void 0}}d.VotingParams={encode(yt,$t=Pt.Writer.create()){return yt.votingPeriod!==void 0&&vt.Duration.encode(yt.votingPeriod,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.votingPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votingPeriod:(0,kt.isSet)(yt.votingPeriod)?vt.Duration.fromJSON(yt.votingPeriod):void 0}},toJSON(yt){const $t={};return yt.votingPeriod!==void 0&&($t.votingPeriod=yt.votingPeriod?vt.Duration.toJSON(yt.votingPeriod):void 0),$t},fromPartial(yt){const $t=Ht();return $t.votingPeriod=yt.votingPeriod!==void 0&&yt.votingPeriod!==null?vt.Duration.fromPartial(yt.votingPeriod):void 0,$t}};function an(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}d.TallyParams={encode(yt,$t=Pt.Writer.create()){return yt.quorum.length!==0&&$t.uint32(10).bytes(yt.quorum),yt.threshold.length!==0&&$t.uint32(18).bytes(yt.threshold),yt.vetoThreshold.length!==0&&$t.uint32(26).bytes(yt.vetoThreshold),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=an();for(;Yt.pos>>3){case 1:St.quorum=Yt.bytes();break;case 2:St.threshold=Yt.bytes();break;case 3:St.vetoThreshold=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{quorum:(0,kt.isSet)(yt.quorum)?(0,kt.bytesFromBase64)(yt.quorum):new Uint8Array,threshold:(0,kt.isSet)(yt.threshold)?(0,kt.bytesFromBase64)(yt.threshold):new Uint8Array,vetoThreshold:(0,kt.isSet)(yt.vetoThreshold)?(0,kt.bytesFromBase64)(yt.vetoThreshold):new Uint8Array}},toJSON(yt){const $t={};return yt.quorum!==void 0&&($t.quorum=(0,kt.base64FromBytes)(yt.quorum!==void 0?yt.quorum:new Uint8Array)),yt.threshold!==void 0&&($t.threshold=(0,kt.base64FromBytes)(yt.threshold!==void 0?yt.threshold:new Uint8Array)),yt.vetoThreshold!==void 0&&($t.vetoThreshold=(0,kt.base64FromBytes)(yt.vetoThreshold!==void 0?yt.vetoThreshold:new Uint8Array)),$t},fromPartial(yt){const $t=an();return $t.quorum=yt.quorum??new Uint8Array,$t.threshold=yt.threshold??new Uint8Array,$t.vetoThreshold=yt.vetoThreshold??new Uint8Array,$t}}})(gov$2);var __importDefault$v=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(aminomessages$6,"__esModule",{value:!0});aminomessages$6.createGovAminoConverters=aminomessages$6.isAminoMsgDeposit=aminomessages$6.isAminoMsgVoteWeighted=aminomessages$6.isAminoMsgVote=aminomessages$6.isAminoMsgSubmitProposal=void 0;const math_1$a=build$f,utils_1$a=build$9,gov_1=gov$2,any_1$1=any$1,long_1$i=__importDefault$v(long),queryclient_1$8=queryclient$1;function isAminoMsgSubmitProposal(d){return d.type==="cosmos-sdk/MsgSubmitProposal"}aminomessages$6.isAminoMsgSubmitProposal=isAminoMsgSubmitProposal;function isAminoMsgVote(d){return d.type==="cosmos-sdk/MsgVote"}aminomessages$6.isAminoMsgVote=isAminoMsgVote;function isAminoMsgVoteWeighted(d){return d.type==="cosmos-sdk/MsgVoteWeighted"}aminomessages$6.isAminoMsgVoteWeighted=isAminoMsgVoteWeighted;function isAminoMsgDeposit(d){return d.type==="cosmos-sdk/MsgDeposit"}aminomessages$6.isAminoMsgDeposit=isAminoMsgDeposit;function createGovAminoConverters(){return{"/cosmos.gov.v1beta1.MsgDeposit":{aminoType:"cosmos-sdk/MsgDeposit",toAmino:({amount:d,depositor:b,proposalId:dt})=>({amount:d,depositor:b,proposal_id:dt.toString()}),fromAmino:({amount:d,depositor:b,proposal_id:dt})=>({amount:Array.from(d),depositor:b,proposalId:long_1$i.default.fromString(dt)})},"/cosmos.gov.v1beta1.MsgVote":{aminoType:"cosmos-sdk/MsgVote",toAmino:({option:d,proposalId:b,voter:dt})=>({option:d,proposal_id:b.toString(),voter:dt}),fromAmino:({option:d,proposal_id:b,voter:dt})=>({option:(0,gov_1.voteOptionFromJSON)(d),proposalId:long_1$i.default.fromString(b),voter:dt})},"/cosmos.gov.v1beta1.MsgVoteWeighted":{aminoType:"cosmos-sdk/MsgVoteWeighted",toAmino:({options:d,proposalId:b,voter:dt})=>({options:d.map(ct=>({option:ct.option,weight:(0,queryclient_1$8.decodeCosmosSdkDecFromProto)(ct.weight).toString().padEnd(20,"0")})),proposal_id:b.toString(),voter:dt}),fromAmino:({options:d,proposal_id:b,voter:dt})=>({proposalId:long_1$i.default.fromString(b),voter:dt,options:d.map(ct=>({option:(0,gov_1.voteOptionFromJSON)(ct.option),weight:math_1$a.Decimal.fromUserInput(ct.weight,18).atomics}))})},"/cosmos.gov.v1beta1.MsgSubmitProposal":{aminoType:"cosmos-sdk/MsgSubmitProposal",toAmino:({initialDeposit:d,proposer:b,content:dt})=>{(0,utils_1$a.assertDefinedAndNotNull)(dt);let ct;switch(dt.typeUrl){case"/cosmos.gov.v1beta1.TextProposal":{const lt=gov_1.TextProposal.decode(dt.value);ct={type:"cosmos-sdk/TextProposal",value:{description:lt.description,title:lt.title}};break}default:throw new Error(`Unsupported proposal type: '${dt.typeUrl}'`)}return{initial_deposit:d,proposer:b,content:ct}},fromAmino:({initial_deposit:d,proposer:b,content:dt})=>{let ct;switch(dt.type){case"cosmos-sdk/TextProposal":{const{value:lt}=dt;(0,utils_1$a.assert)((0,utils_1$a.isNonNullObject)(lt));const{title:ht,description:mt}=lt;(0,utils_1$a.assert)(typeof ht=="string"),(0,utils_1$a.assert)(typeof mt=="string"),ct=any_1$1.Any.fromPartial({typeUrl:"/cosmos.gov.v1beta1.TextProposal",value:gov_1.TextProposal.encode(gov_1.TextProposal.fromPartial({title:ht,description:mt})).finish()});break}default:throw new Error(`Unsupported proposal type: '${dt.type}'`)}return{initialDeposit:Array.from(d),proposer:b,content:ct}}}}}aminomessages$6.createGovAminoConverters=createGovAminoConverters;var messages$6={},tx$m={},gov$1={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.Params=d.TallyParams=d.VotingParams=d.DepositParams=d.Vote=d.TallyResult=d.Proposal=d.Deposit=d.WeightedVoteOption=d.proposalStatusToJSON=d.proposalStatusFromJSON=d.ProposalStatus=d.voteOptionToJSON=d.voteOptionFromJSON=d.VoteOption=d.protobufPackage=void 0;const lt=coin$3,ht=any$1,mt=timestamp$1,vt=duration$1,kt=helpers$1,Pt=ct(minimal$4);d.protobufPackage="cosmos.gov.v1";var Jt;(function(yt){yt[yt.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",yt[yt.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",yt[yt.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",yt[yt.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",yt[yt.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.VoteOption||(d.VoteOption={}));function Zt(yt){switch(yt){case 0:case"VOTE_OPTION_UNSPECIFIED":return Jt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return Jt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return Jt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return Jt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return Jt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.voteOptionFromJSON=Zt;function Rt(yt){switch(yt){case Jt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case Jt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case Jt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case Jt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case Jt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.voteOptionToJSON=Rt;var nn;(function(yt){yt[yt.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",yt[yt.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",yt[yt.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",yt[yt.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",yt[yt.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",yt[yt.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nn=d.ProposalStatus||(d.ProposalStatus={}));function Qt(yt){switch(yt){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return nn.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return nn.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return nn.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return nn.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return nn.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return nn.PROPOSAL_STATUS_FAILED;case-1:case"UNRECOGNIZED":default:return nn.UNRECOGNIZED}}d.proposalStatusFromJSON=Qt;function wt(yt){switch(yt){case nn.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case nn.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case nn.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case nn.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case nn.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case nn.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case nn.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.proposalStatusToJSON=wt;function Nt(){return{option:0,weight:""}}d.WeightedVoteOption={encode(yt,$t=Pt.Writer.create()){return yt.option!==0&&$t.uint32(8).int32(yt.option),yt.weight!==""&&$t.uint32(18).string(yt.weight),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.option=Yt.int32();break;case 2:St.weight=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{option:(0,kt.isSet)(yt.option)?Zt(yt.option):0,weight:(0,kt.isSet)(yt.weight)?String(yt.weight):""}},toJSON(yt){const $t={};return yt.option!==void 0&&($t.option=Rt(yt.option)),yt.weight!==void 0&&($t.weight=yt.weight),$t},fromPartial(yt){const $t=Nt();return $t.option=yt.option??0,$t.weight=yt.weight??"",$t}};function xt(){return{proposalId:kt.Long.UZERO,depositor:"",amount:[]}}d.Deposit={encode(yt,$t=Pt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.depositor!==""&&$t.uint32(18).string(yt.depositor);for(const Yt of yt.amount)lt.Coin.encode(Yt,$t.uint32(26).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.depositor=Yt.string();break;case 3:St.amount.push(lt.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,kt.isSet)(yt.proposalId)?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,depositor:(0,kt.isSet)(yt.depositor)?String(yt.depositor):"",amount:Array.isArray(yt==null?void 0:yt.amount)?yt.amount.map($t=>lt.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||kt.Long.UZERO).toString()),yt.depositor!==void 0&&($t.depositor=yt.depositor),yt.amount?$t.amount=yt.amount.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.amount=[],$t},fromPartial(yt){var Yt;const $t=xt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,$t.depositor=yt.depositor??"",$t.amount=((Yt=yt.amount)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t}};function Et(){return{id:kt.Long.UZERO,messages:[],status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0,metadata:"",title:"",summary:"",proposer:""}}d.Proposal={encode(yt,$t=Pt.Writer.create()){yt.id.isZero()||$t.uint32(8).uint64(yt.id);for(const Yt of yt.messages)ht.Any.encode(Yt,$t.uint32(18).fork()).ldelim();yt.status!==0&&$t.uint32(24).int32(yt.status),yt.finalTallyResult!==void 0&&d.TallyResult.encode(yt.finalTallyResult,$t.uint32(34).fork()).ldelim(),yt.submitTime!==void 0&&mt.Timestamp.encode(yt.submitTime,$t.uint32(42).fork()).ldelim(),yt.depositEndTime!==void 0&&mt.Timestamp.encode(yt.depositEndTime,$t.uint32(50).fork()).ldelim();for(const Yt of yt.totalDeposit)lt.Coin.encode(Yt,$t.uint32(58).fork()).ldelim();return yt.votingStartTime!==void 0&&mt.Timestamp.encode(yt.votingStartTime,$t.uint32(66).fork()).ldelim(),yt.votingEndTime!==void 0&&mt.Timestamp.encode(yt.votingEndTime,$t.uint32(74).fork()).ldelim(),yt.metadata!==""&&$t.uint32(82).string(yt.metadata),yt.title!==""&&$t.uint32(90).string(yt.title),yt.summary!==""&&$t.uint32(98).string(yt.summary),yt.proposer!==""&&$t.uint32(106).string(yt.proposer),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.id=Yt.uint64();break;case 2:St.messages.push(ht.Any.decode(Yt,Yt.uint32()));break;case 3:St.status=Yt.int32();break;case 4:St.finalTallyResult=d.TallyResult.decode(Yt,Yt.uint32());break;case 5:St.submitTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 6:St.depositEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 7:St.totalDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 8:St.votingStartTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 9:St.votingEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 10:St.metadata=Yt.string();break;case 11:St.title=Yt.string();break;case 12:St.summary=Yt.string();break;case 13:St.proposer=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{id:(0,kt.isSet)(yt.id)?kt.Long.fromValue(yt.id):kt.Long.UZERO,messages:Array.isArray(yt==null?void 0:yt.messages)?yt.messages.map($t=>ht.Any.fromJSON($t)):[],status:(0,kt.isSet)(yt.status)?Qt(yt.status):0,finalTallyResult:(0,kt.isSet)(yt.finalTallyResult)?d.TallyResult.fromJSON(yt.finalTallyResult):void 0,submitTime:(0,kt.isSet)(yt.submitTime)?(0,kt.fromJsonTimestamp)(yt.submitTime):void 0,depositEndTime:(0,kt.isSet)(yt.depositEndTime)?(0,kt.fromJsonTimestamp)(yt.depositEndTime):void 0,totalDeposit:Array.isArray(yt==null?void 0:yt.totalDeposit)?yt.totalDeposit.map($t=>lt.Coin.fromJSON($t)):[],votingStartTime:(0,kt.isSet)(yt.votingStartTime)?(0,kt.fromJsonTimestamp)(yt.votingStartTime):void 0,votingEndTime:(0,kt.isSet)(yt.votingEndTime)?(0,kt.fromJsonTimestamp)(yt.votingEndTime):void 0,metadata:(0,kt.isSet)(yt.metadata)?String(yt.metadata):"",title:(0,kt.isSet)(yt.title)?String(yt.title):"",summary:(0,kt.isSet)(yt.summary)?String(yt.summary):"",proposer:(0,kt.isSet)(yt.proposer)?String(yt.proposer):""}},toJSON(yt){const $t={};return yt.id!==void 0&&($t.id=(yt.id||kt.Long.UZERO).toString()),yt.messages?$t.messages=yt.messages.map(Yt=>Yt?ht.Any.toJSON(Yt):void 0):$t.messages=[],yt.status!==void 0&&($t.status=wt(yt.status)),yt.finalTallyResult!==void 0&&($t.finalTallyResult=yt.finalTallyResult?d.TallyResult.toJSON(yt.finalTallyResult):void 0),yt.submitTime!==void 0&&($t.submitTime=(0,kt.fromTimestamp)(yt.submitTime).toISOString()),yt.depositEndTime!==void 0&&($t.depositEndTime=(0,kt.fromTimestamp)(yt.depositEndTime).toISOString()),yt.totalDeposit?$t.totalDeposit=yt.totalDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.totalDeposit=[],yt.votingStartTime!==void 0&&($t.votingStartTime=(0,kt.fromTimestamp)(yt.votingStartTime).toISOString()),yt.votingEndTime!==void 0&&($t.votingEndTime=(0,kt.fromTimestamp)(yt.votingEndTime).toISOString()),yt.metadata!==void 0&&($t.metadata=yt.metadata),yt.title!==void 0&&($t.title=yt.title),yt.summary!==void 0&&($t.summary=yt.summary),yt.proposer!==void 0&&($t.proposer=yt.proposer),$t},fromPartial(yt){var Yt,Kt;const $t=Et();return $t.id=yt.id!==void 0&&yt.id!==null?kt.Long.fromValue(yt.id):kt.Long.UZERO,$t.messages=((Yt=yt.messages)==null?void 0:Yt.map(St=>ht.Any.fromPartial(St)))||[],$t.status=yt.status??0,$t.finalTallyResult=yt.finalTallyResult!==void 0&&yt.finalTallyResult!==null?d.TallyResult.fromPartial(yt.finalTallyResult):void 0,$t.submitTime=yt.submitTime!==void 0&&yt.submitTime!==null?mt.Timestamp.fromPartial(yt.submitTime):void 0,$t.depositEndTime=yt.depositEndTime!==void 0&&yt.depositEndTime!==null?mt.Timestamp.fromPartial(yt.depositEndTime):void 0,$t.totalDeposit=((Kt=yt.totalDeposit)==null?void 0:Kt.map(St=>lt.Coin.fromPartial(St)))||[],$t.votingStartTime=yt.votingStartTime!==void 0&&yt.votingStartTime!==null?mt.Timestamp.fromPartial(yt.votingStartTime):void 0,$t.votingEndTime=yt.votingEndTime!==void 0&&yt.votingEndTime!==null?mt.Timestamp.fromPartial(yt.votingEndTime):void 0,$t.metadata=yt.metadata??"",$t.title=yt.title??"",$t.summary=yt.summary??"",$t.proposer=yt.proposer??"",$t}};function Bt(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}d.TallyResult={encode(yt,$t=Pt.Writer.create()){return yt.yesCount!==""&&$t.uint32(10).string(yt.yesCount),yt.abstainCount!==""&&$t.uint32(18).string(yt.abstainCount),yt.noCount!==""&&$t.uint32(26).string(yt.noCount),yt.noWithVetoCount!==""&&$t.uint32(34).string(yt.noWithVetoCount),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.yesCount=Yt.string();break;case 2:St.abstainCount=Yt.string();break;case 3:St.noCount=Yt.string();break;case 4:St.noWithVetoCount=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{yesCount:(0,kt.isSet)(yt.yesCount)?String(yt.yesCount):"",abstainCount:(0,kt.isSet)(yt.abstainCount)?String(yt.abstainCount):"",noCount:(0,kt.isSet)(yt.noCount)?String(yt.noCount):"",noWithVetoCount:(0,kt.isSet)(yt.noWithVetoCount)?String(yt.noWithVetoCount):""}},toJSON(yt){const $t={};return yt.yesCount!==void 0&&($t.yesCount=yt.yesCount),yt.abstainCount!==void 0&&($t.abstainCount=yt.abstainCount),yt.noCount!==void 0&&($t.noCount=yt.noCount),yt.noWithVetoCount!==void 0&&($t.noWithVetoCount=yt.noWithVetoCount),$t},fromPartial(yt){const $t=Bt();return $t.yesCount=yt.yesCount??"",$t.abstainCount=yt.abstainCount??"",$t.noCount=yt.noCount??"",$t.noWithVetoCount=yt.noWithVetoCount??"",$t}};function Tt(){return{proposalId:kt.Long.UZERO,voter:"",options:[],metadata:""}}d.Vote={encode(yt,$t=Pt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.voter!==""&&$t.uint32(18).string(yt.voter);for(const Yt of yt.options)d.WeightedVoteOption.encode(Yt,$t.uint32(34).fork()).ldelim();return yt.metadata!==""&&$t.uint32(42).string(yt.metadata),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.voter=Yt.string();break;case 4:St.options.push(d.WeightedVoteOption.decode(Yt,Yt.uint32()));break;case 5:St.metadata=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,kt.isSet)(yt.proposalId)?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,voter:(0,kt.isSet)(yt.voter)?String(yt.voter):"",options:Array.isArray(yt==null?void 0:yt.options)?yt.options.map($t=>d.WeightedVoteOption.fromJSON($t)):[],metadata:(0,kt.isSet)(yt.metadata)?String(yt.metadata):""}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||kt.Long.UZERO).toString()),yt.voter!==void 0&&($t.voter=yt.voter),yt.options?$t.options=yt.options.map(Yt=>Yt?d.WeightedVoteOption.toJSON(Yt):void 0):$t.options=[],yt.metadata!==void 0&&($t.metadata=yt.metadata),$t},fromPartial(yt){var Yt;const $t=Tt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?kt.Long.fromValue(yt.proposalId):kt.Long.UZERO,$t.voter=yt.voter??"",$t.options=((Yt=yt.options)==null?void 0:Yt.map(Kt=>d.WeightedVoteOption.fromPartial(Kt)))||[],$t.metadata=yt.metadata??"",$t}};function Mt(){return{minDeposit:[],maxDepositPeriod:void 0}}d.DepositParams={encode(yt,$t=Pt.Writer.create()){for(const Yt of yt.minDeposit)lt.Coin.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.maxDepositPeriod!==void 0&&vt.Duration.encode(yt.maxDepositPeriod,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.minDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 2:St.maxDepositPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{minDeposit:Array.isArray(yt==null?void 0:yt.minDeposit)?yt.minDeposit.map($t=>lt.Coin.fromJSON($t)):[],maxDepositPeriod:(0,kt.isSet)(yt.maxDepositPeriod)?vt.Duration.fromJSON(yt.maxDepositPeriod):void 0}},toJSON(yt){const $t={};return yt.minDeposit?$t.minDeposit=yt.minDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.minDeposit=[],yt.maxDepositPeriod!==void 0&&($t.maxDepositPeriod=yt.maxDepositPeriod?vt.Duration.toJSON(yt.maxDepositPeriod):void 0),$t},fromPartial(yt){var Yt;const $t=Mt();return $t.minDeposit=((Yt=yt.minDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.maxDepositPeriod=yt.maxDepositPeriod!==void 0&&yt.maxDepositPeriod!==null?vt.Duration.fromPartial(yt.maxDepositPeriod):void 0,$t}};function jt(){return{votingPeriod:void 0}}d.VotingParams={encode(yt,$t=Pt.Writer.create()){return yt.votingPeriod!==void 0&&vt.Duration.encode(yt.votingPeriod,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.votingPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votingPeriod:(0,kt.isSet)(yt.votingPeriod)?vt.Duration.fromJSON(yt.votingPeriod):void 0}},toJSON(yt){const $t={};return yt.votingPeriod!==void 0&&($t.votingPeriod=yt.votingPeriod?vt.Duration.toJSON(yt.votingPeriod):void 0),$t},fromPartial(yt){const $t=jt();return $t.votingPeriod=yt.votingPeriod!==void 0&&yt.votingPeriod!==null?vt.Duration.fromPartial(yt.votingPeriod):void 0,$t}};function Ht(){return{quorum:"",threshold:"",vetoThreshold:""}}d.TallyParams={encode(yt,$t=Pt.Writer.create()){return yt.quorum!==""&&$t.uint32(10).string(yt.quorum),yt.threshold!==""&&$t.uint32(18).string(yt.threshold),yt.vetoThreshold!==""&&$t.uint32(26).string(yt.vetoThreshold),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.quorum=Yt.string();break;case 2:St.threshold=Yt.string();break;case 3:St.vetoThreshold=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{quorum:(0,kt.isSet)(yt.quorum)?String(yt.quorum):"",threshold:(0,kt.isSet)(yt.threshold)?String(yt.threshold):"",vetoThreshold:(0,kt.isSet)(yt.vetoThreshold)?String(yt.vetoThreshold):""}},toJSON(yt){const $t={};return yt.quorum!==void 0&&($t.quorum=yt.quorum),yt.threshold!==void 0&&($t.threshold=yt.threshold),yt.vetoThreshold!==void 0&&($t.vetoThreshold=yt.vetoThreshold),$t},fromPartial(yt){const $t=Ht();return $t.quorum=yt.quorum??"",$t.threshold=yt.threshold??"",$t.vetoThreshold=yt.vetoThreshold??"",$t}};function an(){return{minDeposit:[],maxDepositPeriod:void 0,votingPeriod:void 0,quorum:"",threshold:"",vetoThreshold:"",minInitialDepositRatio:"",burnVoteQuorum:!1,burnProposalDepositPrevote:!1,burnVoteVeto:!1}}d.Params={encode(yt,$t=Pt.Writer.create()){for(const Yt of yt.minDeposit)lt.Coin.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.maxDepositPeriod!==void 0&&vt.Duration.encode(yt.maxDepositPeriod,$t.uint32(18).fork()).ldelim(),yt.votingPeriod!==void 0&&vt.Duration.encode(yt.votingPeriod,$t.uint32(26).fork()).ldelim(),yt.quorum!==""&&$t.uint32(34).string(yt.quorum),yt.threshold!==""&&$t.uint32(42).string(yt.threshold),yt.vetoThreshold!==""&&$t.uint32(50).string(yt.vetoThreshold),yt.minInitialDepositRatio!==""&&$t.uint32(58).string(yt.minInitialDepositRatio),yt.burnVoteQuorum===!0&&$t.uint32(104).bool(yt.burnVoteQuorum),yt.burnProposalDepositPrevote===!0&&$t.uint32(112).bool(yt.burnProposalDepositPrevote),yt.burnVoteVeto===!0&&$t.uint32(120).bool(yt.burnVoteVeto),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=an();for(;Yt.pos>>3){case 1:St.minDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 2:St.maxDepositPeriod=vt.Duration.decode(Yt,Yt.uint32());break;case 3:St.votingPeriod=vt.Duration.decode(Yt,Yt.uint32());break;case 4:St.quorum=Yt.string();break;case 5:St.threshold=Yt.string();break;case 6:St.vetoThreshold=Yt.string();break;case 7:St.minInitialDepositRatio=Yt.string();break;case 13:St.burnVoteQuorum=Yt.bool();break;case 14:St.burnProposalDepositPrevote=Yt.bool();break;case 15:St.burnVoteVeto=Yt.bool();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{minDeposit:Array.isArray(yt==null?void 0:yt.minDeposit)?yt.minDeposit.map($t=>lt.Coin.fromJSON($t)):[],maxDepositPeriod:(0,kt.isSet)(yt.maxDepositPeriod)?vt.Duration.fromJSON(yt.maxDepositPeriod):void 0,votingPeriod:(0,kt.isSet)(yt.votingPeriod)?vt.Duration.fromJSON(yt.votingPeriod):void 0,quorum:(0,kt.isSet)(yt.quorum)?String(yt.quorum):"",threshold:(0,kt.isSet)(yt.threshold)?String(yt.threshold):"",vetoThreshold:(0,kt.isSet)(yt.vetoThreshold)?String(yt.vetoThreshold):"",minInitialDepositRatio:(0,kt.isSet)(yt.minInitialDepositRatio)?String(yt.minInitialDepositRatio):"",burnVoteQuorum:(0,kt.isSet)(yt.burnVoteQuorum)?!!yt.burnVoteQuorum:!1,burnProposalDepositPrevote:(0,kt.isSet)(yt.burnProposalDepositPrevote)?!!yt.burnProposalDepositPrevote:!1,burnVoteVeto:(0,kt.isSet)(yt.burnVoteVeto)?!!yt.burnVoteVeto:!1}},toJSON(yt){const $t={};return yt.minDeposit?$t.minDeposit=yt.minDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.minDeposit=[],yt.maxDepositPeriod!==void 0&&($t.maxDepositPeriod=yt.maxDepositPeriod?vt.Duration.toJSON(yt.maxDepositPeriod):void 0),yt.votingPeriod!==void 0&&($t.votingPeriod=yt.votingPeriod?vt.Duration.toJSON(yt.votingPeriod):void 0),yt.quorum!==void 0&&($t.quorum=yt.quorum),yt.threshold!==void 0&&($t.threshold=yt.threshold),yt.vetoThreshold!==void 0&&($t.vetoThreshold=yt.vetoThreshold),yt.minInitialDepositRatio!==void 0&&($t.minInitialDepositRatio=yt.minInitialDepositRatio),yt.burnVoteQuorum!==void 0&&($t.burnVoteQuorum=yt.burnVoteQuorum),yt.burnProposalDepositPrevote!==void 0&&($t.burnProposalDepositPrevote=yt.burnProposalDepositPrevote),yt.burnVoteVeto!==void 0&&($t.burnVoteVeto=yt.burnVoteVeto),$t},fromPartial(yt){var Yt;const $t=an();return $t.minDeposit=((Yt=yt.minDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.maxDepositPeriod=yt.maxDepositPeriod!==void 0&&yt.maxDepositPeriod!==null?vt.Duration.fromPartial(yt.maxDepositPeriod):void 0,$t.votingPeriod=yt.votingPeriod!==void 0&&yt.votingPeriod!==null?vt.Duration.fromPartial(yt.votingPeriod):void 0,$t.quorum=yt.quorum??"",$t.threshold=yt.threshold??"",$t.vetoThreshold=yt.vetoThreshold??"",$t.minInitialDepositRatio=yt.minInitialDepositRatio??"",$t.burnVoteQuorum=yt.burnVoteQuorum??!1,$t.burnProposalDepositPrevote=yt.burnProposalDepositPrevote??!1,$t.burnVoteVeto=yt.burnVoteVeto??!1,$t}}})(gov$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(jt,Ht,an,yt){yt===void 0&&(yt=an);var $t=Object.getOwnPropertyDescriptor(Ht,an);(!$t||("get"in $t?!Ht.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return Ht[an]}}),Object.defineProperty(jt,yt,$t)}:function(jt,Ht,an,yt){yt===void 0&&(yt=an),jt[yt]=Ht[an]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(jt,Ht){Object.defineProperty(jt,"default",{enumerable:!0,value:Ht})}:function(jt,Ht){jt.default=Ht}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(jt){if(jt&&jt.__esModule)return jt;var Ht={};if(jt!=null)for(var an in jt)an!=="default"&&Object.prototype.hasOwnProperty.call(jt,an)&&b(Ht,jt,an);return dt(Ht,jt),Ht};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUpdateParamsResponse=d.MsgUpdateParams=d.MsgDepositResponse=d.MsgDeposit=d.MsgVoteWeightedResponse=d.MsgVoteWeighted=d.MsgVoteResponse=d.MsgVote=d.MsgExecLegacyContentResponse=d.MsgExecLegacyContent=d.MsgSubmitProposalResponse=d.MsgSubmitProposal=d.protobufPackage=void 0;const lt=any$1,ht=coin$3,mt=gov$1,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="cosmos.gov.v1";function Pt(){return{messages:[],initialDeposit:[],proposer:"",metadata:"",title:"",summary:""}}d.MsgSubmitProposal={encode(jt,Ht=kt.Writer.create()){for(const an of jt.messages)lt.Any.encode(an,Ht.uint32(10).fork()).ldelim();for(const an of jt.initialDeposit)ht.Coin.encode(an,Ht.uint32(18).fork()).ldelim();return jt.proposer!==""&&Ht.uint32(26).string(jt.proposer),jt.metadata!==""&&Ht.uint32(34).string(jt.metadata),jt.title!==""&&Ht.uint32(42).string(jt.title),jt.summary!==""&&Ht.uint32(50).string(jt.summary),Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Pt();for(;an.pos>>3){case 1:$t.messages.push(lt.Any.decode(an,an.uint32()));break;case 2:$t.initialDeposit.push(ht.Coin.decode(an,an.uint32()));break;case 3:$t.proposer=an.string();break;case 4:$t.metadata=an.string();break;case 5:$t.title=an.string();break;case 6:$t.summary=an.string();break;default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{messages:Array.isArray(jt==null?void 0:jt.messages)?jt.messages.map(Ht=>lt.Any.fromJSON(Ht)):[],initialDeposit:Array.isArray(jt==null?void 0:jt.initialDeposit)?jt.initialDeposit.map(Ht=>ht.Coin.fromJSON(Ht)):[],proposer:(0,vt.isSet)(jt.proposer)?String(jt.proposer):"",metadata:(0,vt.isSet)(jt.metadata)?String(jt.metadata):"",title:(0,vt.isSet)(jt.title)?String(jt.title):"",summary:(0,vt.isSet)(jt.summary)?String(jt.summary):""}},toJSON(jt){const Ht={};return jt.messages?Ht.messages=jt.messages.map(an=>an?lt.Any.toJSON(an):void 0):Ht.messages=[],jt.initialDeposit?Ht.initialDeposit=jt.initialDeposit.map(an=>an?ht.Coin.toJSON(an):void 0):Ht.initialDeposit=[],jt.proposer!==void 0&&(Ht.proposer=jt.proposer),jt.metadata!==void 0&&(Ht.metadata=jt.metadata),jt.title!==void 0&&(Ht.title=jt.title),jt.summary!==void 0&&(Ht.summary=jt.summary),Ht},fromPartial(jt){var an,yt;const Ht=Pt();return Ht.messages=((an=jt.messages)==null?void 0:an.map($t=>lt.Any.fromPartial($t)))||[],Ht.initialDeposit=((yt=jt.initialDeposit)==null?void 0:yt.map($t=>ht.Coin.fromPartial($t)))||[],Ht.proposer=jt.proposer??"",Ht.metadata=jt.metadata??"",Ht.title=jt.title??"",Ht.summary=jt.summary??"",Ht}};function Jt(){return{proposalId:vt.Long.UZERO}}d.MsgSubmitProposalResponse={encode(jt,Ht=kt.Writer.create()){return jt.proposalId.isZero()||Ht.uint32(8).uint64(jt.proposalId),Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Jt();for(;an.pos>>3){case 1:$t.proposalId=an.uint64();break;default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{proposalId:(0,vt.isSet)(jt.proposalId)?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO}},toJSON(jt){const Ht={};return jt.proposalId!==void 0&&(Ht.proposalId=(jt.proposalId||vt.Long.UZERO).toString()),Ht},fromPartial(jt){const Ht=Jt();return Ht.proposalId=jt.proposalId!==void 0&&jt.proposalId!==null?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO,Ht}};function Zt(){return{content:void 0,authority:""}}d.MsgExecLegacyContent={encode(jt,Ht=kt.Writer.create()){return jt.content!==void 0&<.Any.encode(jt.content,Ht.uint32(10).fork()).ldelim(),jt.authority!==""&&Ht.uint32(18).string(jt.authority),Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Zt();for(;an.pos>>3){case 1:$t.content=lt.Any.decode(an,an.uint32());break;case 2:$t.authority=an.string();break;default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{content:(0,vt.isSet)(jt.content)?lt.Any.fromJSON(jt.content):void 0,authority:(0,vt.isSet)(jt.authority)?String(jt.authority):""}},toJSON(jt){const Ht={};return jt.content!==void 0&&(Ht.content=jt.content?lt.Any.toJSON(jt.content):void 0),jt.authority!==void 0&&(Ht.authority=jt.authority),Ht},fromPartial(jt){const Ht=Zt();return Ht.content=jt.content!==void 0&&jt.content!==null?lt.Any.fromPartial(jt.content):void 0,Ht.authority=jt.authority??"",Ht}};function Rt(){return{}}d.MsgExecLegacyContentResponse={encode(jt,Ht=kt.Writer.create()){return Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Rt();for(;an.pos>>3){default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{}},toJSON(jt){return{}},fromPartial(jt){return Rt()}};function nn(){return{proposalId:vt.Long.UZERO,voter:"",option:0,metadata:""}}d.MsgVote={encode(jt,Ht=kt.Writer.create()){return jt.proposalId.isZero()||Ht.uint32(8).uint64(jt.proposalId),jt.voter!==""&&Ht.uint32(18).string(jt.voter),jt.option!==0&&Ht.uint32(24).int32(jt.option),jt.metadata!==""&&Ht.uint32(34).string(jt.metadata),Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=nn();for(;an.pos>>3){case 1:$t.proposalId=an.uint64();break;case 2:$t.voter=an.string();break;case 3:$t.option=an.int32();break;case 4:$t.metadata=an.string();break;default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{proposalId:(0,vt.isSet)(jt.proposalId)?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO,voter:(0,vt.isSet)(jt.voter)?String(jt.voter):"",option:(0,vt.isSet)(jt.option)?(0,mt.voteOptionFromJSON)(jt.option):0,metadata:(0,vt.isSet)(jt.metadata)?String(jt.metadata):""}},toJSON(jt){const Ht={};return jt.proposalId!==void 0&&(Ht.proposalId=(jt.proposalId||vt.Long.UZERO).toString()),jt.voter!==void 0&&(Ht.voter=jt.voter),jt.option!==void 0&&(Ht.option=(0,mt.voteOptionToJSON)(jt.option)),jt.metadata!==void 0&&(Ht.metadata=jt.metadata),Ht},fromPartial(jt){const Ht=nn();return Ht.proposalId=jt.proposalId!==void 0&&jt.proposalId!==null?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO,Ht.voter=jt.voter??"",Ht.option=jt.option??0,Ht.metadata=jt.metadata??"",Ht}};function Qt(){return{}}d.MsgVoteResponse={encode(jt,Ht=kt.Writer.create()){return Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Qt();for(;an.pos>>3){default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{}},toJSON(jt){return{}},fromPartial(jt){return Qt()}};function wt(){return{proposalId:vt.Long.UZERO,voter:"",options:[],metadata:""}}d.MsgVoteWeighted={encode(jt,Ht=kt.Writer.create()){jt.proposalId.isZero()||Ht.uint32(8).uint64(jt.proposalId),jt.voter!==""&&Ht.uint32(18).string(jt.voter);for(const an of jt.options)mt.WeightedVoteOption.encode(an,Ht.uint32(26).fork()).ldelim();return jt.metadata!==""&&Ht.uint32(34).string(jt.metadata),Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=wt();for(;an.pos>>3){case 1:$t.proposalId=an.uint64();break;case 2:$t.voter=an.string();break;case 3:$t.options.push(mt.WeightedVoteOption.decode(an,an.uint32()));break;case 4:$t.metadata=an.string();break;default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{proposalId:(0,vt.isSet)(jt.proposalId)?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO,voter:(0,vt.isSet)(jt.voter)?String(jt.voter):"",options:Array.isArray(jt==null?void 0:jt.options)?jt.options.map(Ht=>mt.WeightedVoteOption.fromJSON(Ht)):[],metadata:(0,vt.isSet)(jt.metadata)?String(jt.metadata):""}},toJSON(jt){const Ht={};return jt.proposalId!==void 0&&(Ht.proposalId=(jt.proposalId||vt.Long.UZERO).toString()),jt.voter!==void 0&&(Ht.voter=jt.voter),jt.options?Ht.options=jt.options.map(an=>an?mt.WeightedVoteOption.toJSON(an):void 0):Ht.options=[],jt.metadata!==void 0&&(Ht.metadata=jt.metadata),Ht},fromPartial(jt){var an;const Ht=wt();return Ht.proposalId=jt.proposalId!==void 0&&jt.proposalId!==null?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO,Ht.voter=jt.voter??"",Ht.options=((an=jt.options)==null?void 0:an.map(yt=>mt.WeightedVoteOption.fromPartial(yt)))||[],Ht.metadata=jt.metadata??"",Ht}};function Nt(){return{}}d.MsgVoteWeightedResponse={encode(jt,Ht=kt.Writer.create()){return Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Nt();for(;an.pos>>3){default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{}},toJSON(jt){return{}},fromPartial(jt){return Nt()}};function xt(){return{proposalId:vt.Long.UZERO,depositor:"",amount:[]}}d.MsgDeposit={encode(jt,Ht=kt.Writer.create()){jt.proposalId.isZero()||Ht.uint32(8).uint64(jt.proposalId),jt.depositor!==""&&Ht.uint32(18).string(jt.depositor);for(const an of jt.amount)ht.Coin.encode(an,Ht.uint32(26).fork()).ldelim();return Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=xt();for(;an.pos>>3){case 1:$t.proposalId=an.uint64();break;case 2:$t.depositor=an.string();break;case 3:$t.amount.push(ht.Coin.decode(an,an.uint32()));break;default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{proposalId:(0,vt.isSet)(jt.proposalId)?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO,depositor:(0,vt.isSet)(jt.depositor)?String(jt.depositor):"",amount:Array.isArray(jt==null?void 0:jt.amount)?jt.amount.map(Ht=>ht.Coin.fromJSON(Ht)):[]}},toJSON(jt){const Ht={};return jt.proposalId!==void 0&&(Ht.proposalId=(jt.proposalId||vt.Long.UZERO).toString()),jt.depositor!==void 0&&(Ht.depositor=jt.depositor),jt.amount?Ht.amount=jt.amount.map(an=>an?ht.Coin.toJSON(an):void 0):Ht.amount=[],Ht},fromPartial(jt){var an;const Ht=xt();return Ht.proposalId=jt.proposalId!==void 0&&jt.proposalId!==null?vt.Long.fromValue(jt.proposalId):vt.Long.UZERO,Ht.depositor=jt.depositor??"",Ht.amount=((an=jt.amount)==null?void 0:an.map(yt=>ht.Coin.fromPartial(yt)))||[],Ht}};function Et(){return{}}d.MsgDepositResponse={encode(jt,Ht=kt.Writer.create()){return Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Et();for(;an.pos>>3){default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{}},toJSON(jt){return{}},fromPartial(jt){return Et()}};function Bt(){return{authority:"",params:void 0}}d.MsgUpdateParams={encode(jt,Ht=kt.Writer.create()){return jt.authority!==""&&Ht.uint32(10).string(jt.authority),jt.params!==void 0&&mt.Params.encode(jt.params,Ht.uint32(18).fork()).ldelim(),Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Bt();for(;an.pos>>3){case 1:$t.authority=an.string();break;case 2:$t.params=mt.Params.decode(an,an.uint32());break;default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{authority:(0,vt.isSet)(jt.authority)?String(jt.authority):"",params:(0,vt.isSet)(jt.params)?mt.Params.fromJSON(jt.params):void 0}},toJSON(jt){const Ht={};return jt.authority!==void 0&&(Ht.authority=jt.authority),jt.params!==void 0&&(Ht.params=jt.params?mt.Params.toJSON(jt.params):void 0),Ht},fromPartial(jt){const Ht=Bt();return Ht.authority=jt.authority??"",Ht.params=jt.params!==void 0&&jt.params!==null?mt.Params.fromPartial(jt.params):void 0,Ht}};function Tt(){return{}}d.MsgUpdateParamsResponse={encode(jt,Ht=kt.Writer.create()){return Ht},decode(jt,Ht){const an=jt instanceof kt.Reader?jt:new kt.Reader(jt);let yt=Ht===void 0?an.len:an.pos+Ht;const $t=Tt();for(;an.pos>>3){default:an.skipType(Yt&7);break}}return $t},fromJSON(jt){return{}},toJSON(jt){return{}},fromPartial(jt){return Tt()}};class Mt{constructor(Ht){this.rpc=Ht,this.SubmitProposal=this.SubmitProposal.bind(this),this.ExecLegacyContent=this.ExecLegacyContent.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this),this.UpdateParams=this.UpdateParams.bind(this)}SubmitProposal(Ht){const an=d.MsgSubmitProposal.encode(Ht).finish();return this.rpc.request("cosmos.gov.v1.Msg","SubmitProposal",an).then($t=>d.MsgSubmitProposalResponse.decode(new kt.Reader($t)))}ExecLegacyContent(Ht){const an=d.MsgExecLegacyContent.encode(Ht).finish();return this.rpc.request("cosmos.gov.v1.Msg","ExecLegacyContent",an).then($t=>d.MsgExecLegacyContentResponse.decode(new kt.Reader($t)))}Vote(Ht){const an=d.MsgVote.encode(Ht).finish();return this.rpc.request("cosmos.gov.v1.Msg","Vote",an).then($t=>d.MsgVoteResponse.decode(new kt.Reader($t)))}VoteWeighted(Ht){const an=d.MsgVoteWeighted.encode(Ht).finish();return this.rpc.request("cosmos.gov.v1.Msg","VoteWeighted",an).then($t=>d.MsgVoteWeightedResponse.decode(new kt.Reader($t)))}Deposit(Ht){const an=d.MsgDeposit.encode(Ht).finish();return this.rpc.request("cosmos.gov.v1.Msg","Deposit",an).then($t=>d.MsgDepositResponse.decode(new kt.Reader($t)))}UpdateParams(Ht){const an=d.MsgUpdateParams.encode(Ht).finish();return this.rpc.request("cosmos.gov.v1.Msg","UpdateParams",an).then($t=>d.MsgUpdateParamsResponse.decode(new kt.Reader($t)))}}d.MsgClientImpl=Mt})(tx$m);var tx$l={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt);var jt=Object.getOwnPropertyDescriptor(Bt,Tt);(!jt||("get"in jt?!Bt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Bt[Tt]}}),Object.defineProperty(Et,Mt,jt)}:function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt),Et[Mt]=Bt[Tt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Et,Bt){Object.defineProperty(Et,"default",{enumerable:!0,value:Bt})}:function(Et,Bt){Et.default=Bt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Et){if(Et&&Et.__esModule)return Et;var Bt={};if(Et!=null)for(var Tt in Et)Tt!=="default"&&Object.prototype.hasOwnProperty.call(Et,Tt)&&b(Bt,Et,Tt);return dt(Bt,Et),Bt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgDepositResponse=d.MsgDeposit=d.MsgVoteWeightedResponse=d.MsgVoteWeighted=d.MsgVoteResponse=d.MsgVote=d.MsgSubmitProposalResponse=d.MsgSubmitProposal=d.protobufPackage=void 0;const lt=any$1,ht=coin$3,mt=gov$2,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="cosmos.gov.v1beta1";function Pt(){return{content:void 0,initialDeposit:[],proposer:""}}d.MsgSubmitProposal={encode(Et,Bt=kt.Writer.create()){Et.content!==void 0&<.Any.encode(Et.content,Bt.uint32(10).fork()).ldelim();for(const Tt of Et.initialDeposit)ht.Coin.encode(Tt,Bt.uint32(18).fork()).ldelim();return Et.proposer!==""&&Bt.uint32(26).string(Et.proposer),Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.content=lt.Any.decode(Tt,Tt.uint32());break;case 2:jt.initialDeposit.push(ht.Coin.decode(Tt,Tt.uint32()));break;case 3:jt.proposer=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{content:(0,vt.isSet)(Et.content)?lt.Any.fromJSON(Et.content):void 0,initialDeposit:Array.isArray(Et==null?void 0:Et.initialDeposit)?Et.initialDeposit.map(Bt=>ht.Coin.fromJSON(Bt)):[],proposer:(0,vt.isSet)(Et.proposer)?String(Et.proposer):""}},toJSON(Et){const Bt={};return Et.content!==void 0&&(Bt.content=Et.content?lt.Any.toJSON(Et.content):void 0),Et.initialDeposit?Bt.initialDeposit=Et.initialDeposit.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.initialDeposit=[],Et.proposer!==void 0&&(Bt.proposer=Et.proposer),Bt},fromPartial(Et){var Tt;const Bt=Pt();return Bt.content=Et.content!==void 0&&Et.content!==null?lt.Any.fromPartial(Et.content):void 0,Bt.initialDeposit=((Tt=Et.initialDeposit)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt.proposer=Et.proposer??"",Bt}};function Jt(){return{proposalId:vt.Long.UZERO}}d.MsgSubmitProposalResponse={encode(Et,Bt=kt.Writer.create()){return Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,vt.isSet)(Et.proposalId)?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||vt.Long.UZERO).toString()),Bt},fromPartial(Et){const Bt=Jt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO,Bt}};function Zt(){return{proposalId:vt.Long.UZERO,voter:"",option:0}}d.MsgVote={encode(Et,Bt=kt.Writer.create()){return Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.voter!==""&&Bt.uint32(18).string(Et.voter),Et.option!==0&&Bt.uint32(24).int32(Et.option),Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.voter=Tt.string();break;case 3:jt.option=Tt.int32();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,vt.isSet)(Et.proposalId)?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO,voter:(0,vt.isSet)(Et.voter)?String(Et.voter):"",option:(0,vt.isSet)(Et.option)?(0,mt.voteOptionFromJSON)(Et.option):0}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||vt.Long.UZERO).toString()),Et.voter!==void 0&&(Bt.voter=Et.voter),Et.option!==void 0&&(Bt.option=(0,mt.voteOptionToJSON)(Et.option)),Bt},fromPartial(Et){const Bt=Zt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO,Bt.voter=Et.voter??"",Bt.option=Et.option??0,Bt}};function Rt(){return{}}d.MsgVoteResponse={encode(Et,Bt=kt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Rt()}};function nn(){return{proposalId:vt.Long.UZERO,voter:"",options:[]}}d.MsgVoteWeighted={encode(Et,Bt=kt.Writer.create()){Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.voter!==""&&Bt.uint32(18).string(Et.voter);for(const Tt of Et.options)mt.WeightedVoteOption.encode(Tt,Bt.uint32(26).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.voter=Tt.string();break;case 3:jt.options.push(mt.WeightedVoteOption.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,vt.isSet)(Et.proposalId)?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO,voter:(0,vt.isSet)(Et.voter)?String(Et.voter):"",options:Array.isArray(Et==null?void 0:Et.options)?Et.options.map(Bt=>mt.WeightedVoteOption.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||vt.Long.UZERO).toString()),Et.voter!==void 0&&(Bt.voter=Et.voter),Et.options?Bt.options=Et.options.map(Tt=>Tt?mt.WeightedVoteOption.toJSON(Tt):void 0):Bt.options=[],Bt},fromPartial(Et){var Tt;const Bt=nn();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO,Bt.voter=Et.voter??"",Bt.options=((Tt=Et.options)==null?void 0:Tt.map(Mt=>mt.WeightedVoteOption.fromPartial(Mt)))||[],Bt}};function Qt(){return{}}d.MsgVoteWeightedResponse={encode(Et,Bt=kt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Qt()}};function wt(){return{proposalId:vt.Long.UZERO,depositor:"",amount:[]}}d.MsgDeposit={encode(Et,Bt=kt.Writer.create()){Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.depositor!==""&&Bt.uint32(18).string(Et.depositor);for(const Tt of Et.amount)ht.Coin.encode(Tt,Bt.uint32(26).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.depositor=Tt.string();break;case 3:jt.amount.push(ht.Coin.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,vt.isSet)(Et.proposalId)?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO,depositor:(0,vt.isSet)(Et.depositor)?String(Et.depositor):"",amount:Array.isArray(Et==null?void 0:Et.amount)?Et.amount.map(Bt=>ht.Coin.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||vt.Long.UZERO).toString()),Et.depositor!==void 0&&(Bt.depositor=Et.depositor),Et.amount?Bt.amount=Et.amount.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.amount=[],Bt},fromPartial(Et){var Tt;const Bt=wt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?vt.Long.fromValue(Et.proposalId):vt.Long.UZERO,Bt.depositor=Et.depositor??"",Bt.amount=((Tt=Et.amount)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt}};function Nt(){return{}}d.MsgDepositResponse={encode(Et,Bt=kt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Nt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Nt()}};class xt{constructor(Bt){this.rpc=Bt,this.SubmitProposal=this.SubmitProposal.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this)}SubmitProposal(Bt){const Tt=d.MsgSubmitProposal.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",Tt).then(jt=>d.MsgSubmitProposalResponse.decode(new kt.Reader(jt)))}Vote(Bt){const Tt=d.MsgVote.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",Tt).then(jt=>d.MsgVoteResponse.decode(new kt.Reader(jt)))}VoteWeighted(Bt){const Tt=d.MsgVoteWeighted.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",Tt).then(jt=>d.MsgVoteWeightedResponse.decode(new kt.Reader(jt)))}Deposit(Bt){const Tt=d.MsgDeposit.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",Tt).then(jt=>d.MsgDepositResponse.decode(new kt.Reader(jt)))}}d.MsgClientImpl=xt})(tx$l);Object.defineProperty(messages$6,"__esModule",{value:!0});messages$6.isMsgVoteWeightedEncodeObject=messages$6.isMsgVoteEncodeObject=messages$6.isMsgSubmitProposalEncodeObject=messages$6.isMsgDepositEncodeObject=messages$6.govTypes=void 0;const tx_1$a=tx$m,tx_2$4=tx$l;messages$6.govTypes=[["/cosmos.gov.v1.MsgDeposit",tx_1$a.MsgDeposit],["/cosmos.gov.v1.MsgSubmitProposal",tx_1$a.MsgSubmitProposal],["/cosmos.gov.v1.MsgUpdateParams",tx_1$a.MsgUpdateParams],["/cosmos.gov.v1.MsgVote",tx_1$a.MsgVote],["/cosmos.gov.v1.MsgVoteWeighted",tx_1$a.MsgVoteWeighted],["/cosmos.gov.v1beta1.MsgDeposit",tx_2$4.MsgDeposit],["/cosmos.gov.v1beta1.MsgSubmitProposal",tx_2$4.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",tx_2$4.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",tx_2$4.MsgVoteWeighted]];function isMsgDepositEncodeObject(d){return d.typeUrl==="/cosmos.gov.v1beta1.MsgDeposit"}messages$6.isMsgDepositEncodeObject=isMsgDepositEncodeObject;function isMsgSubmitProposalEncodeObject(d){return d.typeUrl==="/cosmos.gov.v1beta1.MsgSubmitProposal"}messages$6.isMsgSubmitProposalEncodeObject=isMsgSubmitProposalEncodeObject;function isMsgVoteEncodeObject(d){return d.typeUrl==="/cosmos.gov.v1beta1.MsgVote"}messages$6.isMsgVoteEncodeObject=isMsgVoteEncodeObject;function isMsgVoteWeightedEncodeObject(d){return d.typeUrl==="/cosmos.gov.v1beta1.MsgVoteWeighted"}messages$6.isMsgVoteWeightedEncodeObject=isMsgVoteWeightedEncodeObject;var queries$7={},query$h={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryTallyResultResponse=d.QueryTallyResultRequest=d.QueryDepositsResponse=d.QueryDepositsRequest=d.QueryDepositResponse=d.QueryDepositRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryVotesResponse=d.QueryVotesRequest=d.QueryVoteResponse=d.QueryVoteRequest=d.QueryProposalsResponse=d.QueryProposalsRequest=d.QueryProposalResponse=d.QueryProposalRequest=d.protobufPackage=void 0;const lt=gov$2,ht=pagination$3,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.gov.v1beta1";function kt(){return{proposalId:mt.Long.UZERO}}d.QueryProposalRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=kt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),$t},fromPartial(yt){const $t=kt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t}};function Pt(){return{proposal:void 0}}d.QueryProposalResponse={encode(yt,$t=vt.Writer.create()){return yt.proposal!==void 0&<.Proposal.encode(yt.proposal,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Pt();for(;Yt.pos>>3){case 1:St.proposal=lt.Proposal.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposal:(0,mt.isSet)(yt.proposal)?lt.Proposal.fromJSON(yt.proposal):void 0}},toJSON(yt){const $t={};return yt.proposal!==void 0&&($t.proposal=yt.proposal?lt.Proposal.toJSON(yt.proposal):void 0),$t},fromPartial(yt){const $t=Pt();return $t.proposal=yt.proposal!==void 0&&yt.proposal!==null?lt.Proposal.fromPartial(yt.proposal):void 0,$t}};function Jt(){return{proposalStatus:0,voter:"",depositor:"",pagination:void 0}}d.QueryProposalsRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalStatus!==0&&$t.uint32(8).int32(yt.proposalStatus),yt.voter!==""&&$t.uint32(18).string(yt.voter),yt.depositor!==""&&$t.uint32(26).string(yt.depositor),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(34).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.proposalStatus=Yt.int32();break;case 2:St.voter=Yt.string();break;case 3:St.depositor=Yt.string();break;case 4:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalStatus:(0,mt.isSet)(yt.proposalStatus)?(0,lt.proposalStatusFromJSON)(yt.proposalStatus):0,voter:(0,mt.isSet)(yt.voter)?String(yt.voter):"",depositor:(0,mt.isSet)(yt.depositor)?String(yt.depositor):"",pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalStatus!==void 0&&($t.proposalStatus=(0,lt.proposalStatusToJSON)(yt.proposalStatus)),yt.voter!==void 0&&($t.voter=yt.voter),yt.depositor!==void 0&&($t.depositor=yt.depositor),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Jt();return $t.proposalStatus=yt.proposalStatus??0,$t.voter=yt.voter??"",$t.depositor=yt.depositor??"",$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function Zt(){return{proposals:[],pagination:void 0}}d.QueryProposalsResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.proposals)lt.Proposal.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){case 1:St.proposals.push(lt.Proposal.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposals:Array.isArray(yt==null?void 0:yt.proposals)?yt.proposals.map($t=>lt.Proposal.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposals?$t.proposals=yt.proposals.map(Yt=>Yt?lt.Proposal.toJSON(Yt):void 0):$t.proposals=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=Zt();return $t.proposals=((Yt=yt.proposals)==null?void 0:Yt.map(Kt=>lt.Proposal.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function Rt(){return{proposalId:mt.Long.UZERO,voter:""}}d.QueryVoteRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.voter!==""&&$t.uint32(18).string(yt.voter),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.voter=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,voter:(0,mt.isSet)(yt.voter)?String(yt.voter):""}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.voter!==void 0&&($t.voter=yt.voter),$t},fromPartial(yt){const $t=Rt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.voter=yt.voter??"",$t}};function nn(){return{vote:void 0}}d.QueryVoteResponse={encode(yt,$t=vt.Writer.create()){return yt.vote!==void 0&<.Vote.encode(yt.vote,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.vote=lt.Vote.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{vote:(0,mt.isSet)(yt.vote)?lt.Vote.fromJSON(yt.vote):void 0}},toJSON(yt){const $t={};return yt.vote!==void 0&&($t.vote=yt.vote?lt.Vote.toJSON(yt.vote):void 0),$t},fromPartial(yt){const $t=nn();return $t.vote=yt.vote!==void 0&&yt.vote!==null?lt.Vote.fromPartial(yt.vote):void 0,$t}};function Qt(){return{proposalId:mt.Long.UZERO,pagination:void 0}}d.QueryVotesRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Qt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function wt(){return{votes:[],pagination:void 0}}d.QueryVotesResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.votes)lt.Vote.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.votes.push(lt.Vote.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votes:Array.isArray(yt==null?void 0:yt.votes)?yt.votes.map($t=>lt.Vote.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.votes?$t.votes=yt.votes.map(Yt=>Yt?lt.Vote.toJSON(Yt):void 0):$t.votes=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=wt();return $t.votes=((Yt=yt.votes)==null?void 0:Yt.map(Kt=>lt.Vote.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function Nt(){return{paramsType:""}}d.QueryParamsRequest={encode(yt,$t=vt.Writer.create()){return yt.paramsType!==""&&$t.uint32(10).string(yt.paramsType),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.paramsType=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{paramsType:(0,mt.isSet)(yt.paramsType)?String(yt.paramsType):""}},toJSON(yt){const $t={};return yt.paramsType!==void 0&&($t.paramsType=yt.paramsType),$t},fromPartial(yt){const $t=Nt();return $t.paramsType=yt.paramsType??"",$t}};function xt(){return{votingParams:void 0,depositParams:void 0,tallyParams:void 0}}d.QueryParamsResponse={encode(yt,$t=vt.Writer.create()){return yt.votingParams!==void 0&<.VotingParams.encode(yt.votingParams,$t.uint32(10).fork()).ldelim(),yt.depositParams!==void 0&<.DepositParams.encode(yt.depositParams,$t.uint32(18).fork()).ldelim(),yt.tallyParams!==void 0&<.TallyParams.encode(yt.tallyParams,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.votingParams=lt.VotingParams.decode(Yt,Yt.uint32());break;case 2:St.depositParams=lt.DepositParams.decode(Yt,Yt.uint32());break;case 3:St.tallyParams=lt.TallyParams.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votingParams:(0,mt.isSet)(yt.votingParams)?lt.VotingParams.fromJSON(yt.votingParams):void 0,depositParams:(0,mt.isSet)(yt.depositParams)?lt.DepositParams.fromJSON(yt.depositParams):void 0,tallyParams:(0,mt.isSet)(yt.tallyParams)?lt.TallyParams.fromJSON(yt.tallyParams):void 0}},toJSON(yt){const $t={};return yt.votingParams!==void 0&&($t.votingParams=yt.votingParams?lt.VotingParams.toJSON(yt.votingParams):void 0),yt.depositParams!==void 0&&($t.depositParams=yt.depositParams?lt.DepositParams.toJSON(yt.depositParams):void 0),yt.tallyParams!==void 0&&($t.tallyParams=yt.tallyParams?lt.TallyParams.toJSON(yt.tallyParams):void 0),$t},fromPartial(yt){const $t=xt();return $t.votingParams=yt.votingParams!==void 0&&yt.votingParams!==null?lt.VotingParams.fromPartial(yt.votingParams):void 0,$t.depositParams=yt.depositParams!==void 0&&yt.depositParams!==null?lt.DepositParams.fromPartial(yt.depositParams):void 0,$t.tallyParams=yt.tallyParams!==void 0&&yt.tallyParams!==null?lt.TallyParams.fromPartial(yt.tallyParams):void 0,$t}};function Et(){return{proposalId:mt.Long.UZERO,depositor:""}}d.QueryDepositRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.depositor!==""&&$t.uint32(18).string(yt.depositor),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.depositor=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,depositor:(0,mt.isSet)(yt.depositor)?String(yt.depositor):""}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.depositor!==void 0&&($t.depositor=yt.depositor),$t},fromPartial(yt){const $t=Et();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.depositor=yt.depositor??"",$t}};function Bt(){return{deposit:void 0}}d.QueryDepositResponse={encode(yt,$t=vt.Writer.create()){return yt.deposit!==void 0&<.Deposit.encode(yt.deposit,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.deposit=lt.Deposit.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{deposit:(0,mt.isSet)(yt.deposit)?lt.Deposit.fromJSON(yt.deposit):void 0}},toJSON(yt){const $t={};return yt.deposit!==void 0&&($t.deposit=yt.deposit?lt.Deposit.toJSON(yt.deposit):void 0),$t},fromPartial(yt){const $t=Bt();return $t.deposit=yt.deposit!==void 0&&yt.deposit!==null?lt.Deposit.fromPartial(yt.deposit):void 0,$t}};function Tt(){return{proposalId:mt.Long.UZERO,pagination:void 0}}d.QueryDepositsRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Tt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function Mt(){return{deposits:[],pagination:void 0}}d.QueryDepositsResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.deposits)lt.Deposit.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.deposits.push(lt.Deposit.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{deposits:Array.isArray(yt==null?void 0:yt.deposits)?yt.deposits.map($t=>lt.Deposit.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.deposits?$t.deposits=yt.deposits.map(Yt=>Yt?lt.Deposit.toJSON(Yt):void 0):$t.deposits=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=Mt();return $t.deposits=((Yt=yt.deposits)==null?void 0:Yt.map(Kt=>lt.Deposit.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function jt(){return{proposalId:mt.Long.UZERO}}d.QueryTallyResultRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),$t},fromPartial(yt){const $t=jt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t}};function Ht(){return{tally:void 0}}d.QueryTallyResultResponse={encode(yt,$t=vt.Writer.create()){return yt.tally!==void 0&<.TallyResult.encode(yt.tally,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.tally=lt.TallyResult.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{tally:(0,mt.isSet)(yt.tally)?lt.TallyResult.fromJSON(yt.tally):void 0}},toJSON(yt){const $t={};return yt.tally!==void 0&&($t.tally=yt.tally?lt.TallyResult.toJSON(yt.tally):void 0),$t},fromPartial(yt){const $t=Ht();return $t.tally=yt.tally!==void 0&&yt.tally!==null?lt.TallyResult.fromPartial(yt.tally):void 0,$t}};class an{constructor($t){this.rpc=$t,this.Proposal=this.Proposal.bind(this),this.Proposals=this.Proposals.bind(this),this.Vote=this.Vote.bind(this),this.Votes=this.Votes.bind(this),this.Params=this.Params.bind(this),this.Deposit=this.Deposit.bind(this),this.Deposits=this.Deposits.bind(this),this.TallyResult=this.TallyResult.bind(this)}Proposal($t){const Yt=d.QueryProposalRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposal",Yt).then(St=>d.QueryProposalResponse.decode(new vt.Reader(St)))}Proposals($t){const Yt=d.QueryProposalsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposals",Yt).then(St=>d.QueryProposalsResponse.decode(new vt.Reader(St)))}Vote($t){const Yt=d.QueryVoteRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Vote",Yt).then(St=>d.QueryVoteResponse.decode(new vt.Reader(St)))}Votes($t){const Yt=d.QueryVotesRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Votes",Yt).then(St=>d.QueryVotesResponse.decode(new vt.Reader(St)))}Params($t){const Yt=d.QueryParamsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Params",Yt).then(St=>d.QueryParamsResponse.decode(new vt.Reader(St)))}Deposit($t){const Yt=d.QueryDepositRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposit",Yt).then(St=>d.QueryDepositResponse.decode(new vt.Reader(St)))}Deposits($t){const Yt=d.QueryDepositsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposits",Yt).then(St=>d.QueryDepositsResponse.decode(new vt.Reader(St)))}TallyResult($t){const Yt=d.QueryTallyResultRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","TallyResult",Yt).then(St=>d.QueryTallyResultResponse.decode(new vt.Reader(St)))}}d.QueryClientImpl=an})(query$h);Object.defineProperty(queries$7,"__esModule",{value:!0});queries$7.setupGovExtension=void 0;const query_1$c=query$h,queryclient_1$7=queryclient$1;function setupGovExtension(d){const b=(0,queryclient_1$7.createProtobufRpcClient)(d),dt=new query_1$c.QueryClientImpl(b);return{gov:{params:async ct=>await dt.Params({paramsType:ct}),proposals:async(ct,lt,ht,mt)=>await dt.Proposals({proposalStatus:ct,depositor:lt,voter:ht,pagination:(0,queryclient_1$7.createPagination)(mt)}),proposal:async ct=>await dt.Proposal({proposalId:(0,queryclient_1$7.longify)(ct)}),deposits:async(ct,lt)=>await dt.Deposits({proposalId:(0,queryclient_1$7.longify)(ct),pagination:(0,queryclient_1$7.createPagination)(lt)}),deposit:async(ct,lt)=>await dt.Deposit({proposalId:(0,queryclient_1$7.longify)(ct),depositor:lt}),tally:async ct=>await dt.TallyResult({proposalId:(0,queryclient_1$7.longify)(ct)}),votes:async(ct,lt)=>await dt.Votes({proposalId:(0,queryclient_1$7.longify)(ct),pagination:(0,queryclient_1$7.createPagination)(lt)}),vote:async(ct,lt)=>await dt.Vote({proposalId:(0,queryclient_1$7.longify)(ct),voter:lt})}}}queries$7.setupGovExtension=setupGovExtension;var aminomessages$5={};Object.defineProperty(aminomessages$5,"__esModule",{value:!0});aminomessages$5.createGroupAminoConverters=void 0;function createGroupAminoConverters(){return{}}aminomessages$5.createGroupAminoConverters=createGroupAminoConverters;var messages$5={},tx$k={},types$g={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt);var Vt=Object.getOwnPropertyDescriptor(It,Gt);(!Vt||("get"in Vt?!It.__esModule:Vt.writable||Vt.configurable))&&(Vt={enumerable:!0,get:function(){return It[Gt]}}),Object.defineProperty(St,Ut,Vt)}:function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt),St[Ut]=It[Gt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,It){Object.defineProperty(St,"default",{enumerable:!0,value:It})}:function(St,It){St.default=It}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var It={};if(St!=null)for(var Gt in St)Gt!=="default"&&Object.prototype.hasOwnProperty.call(St,Gt)&&b(It,St,Gt);return dt(It,St),It};Object.defineProperty(d,"__esModule",{value:!0}),d.Vote=d.TallyResult=d.Proposal=d.GroupPolicyInfo=d.GroupMember=d.GroupInfo=d.DecisionPolicyWindows=d.PercentageDecisionPolicy=d.ThresholdDecisionPolicy=d.MemberRequest=d.Member=d.proposalExecutorResultToJSON=d.proposalExecutorResultFromJSON=d.ProposalExecutorResult=d.proposalStatusToJSON=d.proposalStatusFromJSON=d.ProposalStatus=d.voteOptionToJSON=d.voteOptionFromJSON=d.VoteOption=d.protobufPackage=void 0;const lt=timestamp$1,ht=duration$1,mt=any$1,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="cosmos.group.v1";var Pt;(function(St){St[St.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",St[St.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",St[St.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",St[St.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",St[St.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Pt=d.VoteOption||(d.VoteOption={}));function Jt(St){switch(St){case 0:case"VOTE_OPTION_UNSPECIFIED":return Pt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return Pt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return Pt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return Pt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return Pt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return Pt.UNRECOGNIZED}}d.voteOptionFromJSON=Jt;function Zt(St){switch(St){case Pt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case Pt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case Pt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case Pt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case Pt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case Pt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.voteOptionToJSON=Zt;var Rt;(function(St){St[St.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",St[St.PROPOSAL_STATUS_SUBMITTED=1]="PROPOSAL_STATUS_SUBMITTED",St[St.PROPOSAL_STATUS_ACCEPTED=2]="PROPOSAL_STATUS_ACCEPTED",St[St.PROPOSAL_STATUS_REJECTED=3]="PROPOSAL_STATUS_REJECTED",St[St.PROPOSAL_STATUS_ABORTED=4]="PROPOSAL_STATUS_ABORTED",St[St.PROPOSAL_STATUS_WITHDRAWN=5]="PROPOSAL_STATUS_WITHDRAWN",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rt=d.ProposalStatus||(d.ProposalStatus={}));function nn(St){switch(St){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return Rt.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_SUBMITTED":return Rt.PROPOSAL_STATUS_SUBMITTED;case 2:case"PROPOSAL_STATUS_ACCEPTED":return Rt.PROPOSAL_STATUS_ACCEPTED;case 3:case"PROPOSAL_STATUS_REJECTED":return Rt.PROPOSAL_STATUS_REJECTED;case 4:case"PROPOSAL_STATUS_ABORTED":return Rt.PROPOSAL_STATUS_ABORTED;case 5:case"PROPOSAL_STATUS_WITHDRAWN":return Rt.PROPOSAL_STATUS_WITHDRAWN;case-1:case"UNRECOGNIZED":default:return Rt.UNRECOGNIZED}}d.proposalStatusFromJSON=nn;function Qt(St){switch(St){case Rt.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case Rt.PROPOSAL_STATUS_SUBMITTED:return"PROPOSAL_STATUS_SUBMITTED";case Rt.PROPOSAL_STATUS_ACCEPTED:return"PROPOSAL_STATUS_ACCEPTED";case Rt.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case Rt.PROPOSAL_STATUS_ABORTED:return"PROPOSAL_STATUS_ABORTED";case Rt.PROPOSAL_STATUS_WITHDRAWN:return"PROPOSAL_STATUS_WITHDRAWN";case Rt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.proposalStatusToJSON=Qt;var wt;(function(St){St[St.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED=0]="PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",St[St.PROPOSAL_EXECUTOR_RESULT_NOT_RUN=1]="PROPOSAL_EXECUTOR_RESULT_NOT_RUN",St[St.PROPOSAL_EXECUTOR_RESULT_SUCCESS=2]="PROPOSAL_EXECUTOR_RESULT_SUCCESS",St[St.PROPOSAL_EXECUTOR_RESULT_FAILURE=3]="PROPOSAL_EXECUTOR_RESULT_FAILURE",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wt=d.ProposalExecutorResult||(d.ProposalExecutorResult={}));function Nt(St){switch(St){case 0:case"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":return wt.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;case 1:case"PROPOSAL_EXECUTOR_RESULT_NOT_RUN":return wt.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;case 2:case"PROPOSAL_EXECUTOR_RESULT_SUCCESS":return wt.PROPOSAL_EXECUTOR_RESULT_SUCCESS;case 3:case"PROPOSAL_EXECUTOR_RESULT_FAILURE":return wt.PROPOSAL_EXECUTOR_RESULT_FAILURE;case-1:case"UNRECOGNIZED":default:return wt.UNRECOGNIZED}}d.proposalExecutorResultFromJSON=Nt;function xt(St){switch(St){case wt.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:return"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";case wt.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:return"PROPOSAL_EXECUTOR_RESULT_NOT_RUN";case wt.PROPOSAL_EXECUTOR_RESULT_SUCCESS:return"PROPOSAL_EXECUTOR_RESULT_SUCCESS";case wt.PROPOSAL_EXECUTOR_RESULT_FAILURE:return"PROPOSAL_EXECUTOR_RESULT_FAILURE";case wt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.proposalExecutorResultToJSON=xt;function Et(){return{address:"",weight:"",metadata:"",addedAt:void 0}}d.Member={encode(St,It=kt.Writer.create()){return St.address!==""&&It.uint32(10).string(St.address),St.weight!==""&&It.uint32(18).string(St.weight),St.metadata!==""&&It.uint32(26).string(St.metadata),St.addedAt!==void 0&<.Timestamp.encode(St.addedAt,It.uint32(34).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Et();for(;Gt.pos>>3){case 1:Vt.address=Gt.string();break;case 2:Vt.weight=Gt.string();break;case 3:Vt.metadata=Gt.string();break;case 4:Vt.addedAt=lt.Timestamp.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{address:(0,vt.isSet)(St.address)?String(St.address):"",weight:(0,vt.isSet)(St.weight)?String(St.weight):"",metadata:(0,vt.isSet)(St.metadata)?String(St.metadata):"",addedAt:(0,vt.isSet)(St.addedAt)?(0,vt.fromJsonTimestamp)(St.addedAt):void 0}},toJSON(St){const It={};return St.address!==void 0&&(It.address=St.address),St.weight!==void 0&&(It.weight=St.weight),St.metadata!==void 0&&(It.metadata=St.metadata),St.addedAt!==void 0&&(It.addedAt=(0,vt.fromTimestamp)(St.addedAt).toISOString()),It},fromPartial(St){const It=Et();return It.address=St.address??"",It.weight=St.weight??"",It.metadata=St.metadata??"",It.addedAt=St.addedAt!==void 0&&St.addedAt!==null?lt.Timestamp.fromPartial(St.addedAt):void 0,It}};function Bt(){return{address:"",weight:"",metadata:""}}d.MemberRequest={encode(St,It=kt.Writer.create()){return St.address!==""&&It.uint32(10).string(St.address),St.weight!==""&&It.uint32(18).string(St.weight),St.metadata!==""&&It.uint32(26).string(St.metadata),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Bt();for(;Gt.pos>>3){case 1:Vt.address=Gt.string();break;case 2:Vt.weight=Gt.string();break;case 3:Vt.metadata=Gt.string();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{address:(0,vt.isSet)(St.address)?String(St.address):"",weight:(0,vt.isSet)(St.weight)?String(St.weight):"",metadata:(0,vt.isSet)(St.metadata)?String(St.metadata):""}},toJSON(St){const It={};return St.address!==void 0&&(It.address=St.address),St.weight!==void 0&&(It.weight=St.weight),St.metadata!==void 0&&(It.metadata=St.metadata),It},fromPartial(St){const It=Bt();return It.address=St.address??"",It.weight=St.weight??"",It.metadata=St.metadata??"",It}};function Tt(){return{threshold:"",windows:void 0}}d.ThresholdDecisionPolicy={encode(St,It=kt.Writer.create()){return St.threshold!==""&&It.uint32(10).string(St.threshold),St.windows!==void 0&&d.DecisionPolicyWindows.encode(St.windows,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Tt();for(;Gt.pos>>3){case 1:Vt.threshold=Gt.string();break;case 2:Vt.windows=d.DecisionPolicyWindows.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{threshold:(0,vt.isSet)(St.threshold)?String(St.threshold):"",windows:(0,vt.isSet)(St.windows)?d.DecisionPolicyWindows.fromJSON(St.windows):void 0}},toJSON(St){const It={};return St.threshold!==void 0&&(It.threshold=St.threshold),St.windows!==void 0&&(It.windows=St.windows?d.DecisionPolicyWindows.toJSON(St.windows):void 0),It},fromPartial(St){const It=Tt();return It.threshold=St.threshold??"",It.windows=St.windows!==void 0&&St.windows!==null?d.DecisionPolicyWindows.fromPartial(St.windows):void 0,It}};function Mt(){return{percentage:"",windows:void 0}}d.PercentageDecisionPolicy={encode(St,It=kt.Writer.create()){return St.percentage!==""&&It.uint32(10).string(St.percentage),St.windows!==void 0&&d.DecisionPolicyWindows.encode(St.windows,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Mt();for(;Gt.pos>>3){case 1:Vt.percentage=Gt.string();break;case 2:Vt.windows=d.DecisionPolicyWindows.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{percentage:(0,vt.isSet)(St.percentage)?String(St.percentage):"",windows:(0,vt.isSet)(St.windows)?d.DecisionPolicyWindows.fromJSON(St.windows):void 0}},toJSON(St){const It={};return St.percentage!==void 0&&(It.percentage=St.percentage),St.windows!==void 0&&(It.windows=St.windows?d.DecisionPolicyWindows.toJSON(St.windows):void 0),It},fromPartial(St){const It=Mt();return It.percentage=St.percentage??"",It.windows=St.windows!==void 0&&St.windows!==null?d.DecisionPolicyWindows.fromPartial(St.windows):void 0,It}};function jt(){return{votingPeriod:void 0,minExecutionPeriod:void 0}}d.DecisionPolicyWindows={encode(St,It=kt.Writer.create()){return St.votingPeriod!==void 0&&ht.Duration.encode(St.votingPeriod,It.uint32(10).fork()).ldelim(),St.minExecutionPeriod!==void 0&&ht.Duration.encode(St.minExecutionPeriod,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=jt();for(;Gt.pos>>3){case 1:Vt.votingPeriod=ht.Duration.decode(Gt,Gt.uint32());break;case 2:Vt.minExecutionPeriod=ht.Duration.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{votingPeriod:(0,vt.isSet)(St.votingPeriod)?ht.Duration.fromJSON(St.votingPeriod):void 0,minExecutionPeriod:(0,vt.isSet)(St.minExecutionPeriod)?ht.Duration.fromJSON(St.minExecutionPeriod):void 0}},toJSON(St){const It={};return St.votingPeriod!==void 0&&(It.votingPeriod=St.votingPeriod?ht.Duration.toJSON(St.votingPeriod):void 0),St.minExecutionPeriod!==void 0&&(It.minExecutionPeriod=St.minExecutionPeriod?ht.Duration.toJSON(St.minExecutionPeriod):void 0),It},fromPartial(St){const It=jt();return It.votingPeriod=St.votingPeriod!==void 0&&St.votingPeriod!==null?ht.Duration.fromPartial(St.votingPeriod):void 0,It.minExecutionPeriod=St.minExecutionPeriod!==void 0&&St.minExecutionPeriod!==null?ht.Duration.fromPartial(St.minExecutionPeriod):void 0,It}};function Ht(){return{id:vt.Long.UZERO,admin:"",metadata:"",version:vt.Long.UZERO,totalWeight:"",createdAt:void 0}}d.GroupInfo={encode(St,It=kt.Writer.create()){return St.id.isZero()||It.uint32(8).uint64(St.id),St.admin!==""&&It.uint32(18).string(St.admin),St.metadata!==""&&It.uint32(26).string(St.metadata),St.version.isZero()||It.uint32(32).uint64(St.version),St.totalWeight!==""&&It.uint32(42).string(St.totalWeight),St.createdAt!==void 0&<.Timestamp.encode(St.createdAt,It.uint32(50).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Ht();for(;Gt.pos>>3){case 1:Vt.id=Gt.uint64();break;case 2:Vt.admin=Gt.string();break;case 3:Vt.metadata=Gt.string();break;case 4:Vt.version=Gt.uint64();break;case 5:Vt.totalWeight=Gt.string();break;case 6:Vt.createdAt=lt.Timestamp.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{id:(0,vt.isSet)(St.id)?vt.Long.fromValue(St.id):vt.Long.UZERO,admin:(0,vt.isSet)(St.admin)?String(St.admin):"",metadata:(0,vt.isSet)(St.metadata)?String(St.metadata):"",version:(0,vt.isSet)(St.version)?vt.Long.fromValue(St.version):vt.Long.UZERO,totalWeight:(0,vt.isSet)(St.totalWeight)?String(St.totalWeight):"",createdAt:(0,vt.isSet)(St.createdAt)?(0,vt.fromJsonTimestamp)(St.createdAt):void 0}},toJSON(St){const It={};return St.id!==void 0&&(It.id=(St.id||vt.Long.UZERO).toString()),St.admin!==void 0&&(It.admin=St.admin),St.metadata!==void 0&&(It.metadata=St.metadata),St.version!==void 0&&(It.version=(St.version||vt.Long.UZERO).toString()),St.totalWeight!==void 0&&(It.totalWeight=St.totalWeight),St.createdAt!==void 0&&(It.createdAt=(0,vt.fromTimestamp)(St.createdAt).toISOString()),It},fromPartial(St){const It=Ht();return It.id=St.id!==void 0&&St.id!==null?vt.Long.fromValue(St.id):vt.Long.UZERO,It.admin=St.admin??"",It.metadata=St.metadata??"",It.version=St.version!==void 0&&St.version!==null?vt.Long.fromValue(St.version):vt.Long.UZERO,It.totalWeight=St.totalWeight??"",It.createdAt=St.createdAt!==void 0&&St.createdAt!==null?lt.Timestamp.fromPartial(St.createdAt):void 0,It}};function an(){return{groupId:vt.Long.UZERO,member:void 0}}d.GroupMember={encode(St,It=kt.Writer.create()){return St.groupId.isZero()||It.uint32(8).uint64(St.groupId),St.member!==void 0&&d.Member.encode(St.member,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=an();for(;Gt.pos>>3){case 1:Vt.groupId=Gt.uint64();break;case 2:Vt.member=d.Member.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{groupId:(0,vt.isSet)(St.groupId)?vt.Long.fromValue(St.groupId):vt.Long.UZERO,member:(0,vt.isSet)(St.member)?d.Member.fromJSON(St.member):void 0}},toJSON(St){const It={};return St.groupId!==void 0&&(It.groupId=(St.groupId||vt.Long.UZERO).toString()),St.member!==void 0&&(It.member=St.member?d.Member.toJSON(St.member):void 0),It},fromPartial(St){const It=an();return It.groupId=St.groupId!==void 0&&St.groupId!==null?vt.Long.fromValue(St.groupId):vt.Long.UZERO,It.member=St.member!==void 0&&St.member!==null?d.Member.fromPartial(St.member):void 0,It}};function yt(){return{address:"",groupId:vt.Long.UZERO,admin:"",metadata:"",version:vt.Long.UZERO,decisionPolicy:void 0,createdAt:void 0}}d.GroupPolicyInfo={encode(St,It=kt.Writer.create()){return St.address!==""&&It.uint32(10).string(St.address),St.groupId.isZero()||It.uint32(16).uint64(St.groupId),St.admin!==""&&It.uint32(26).string(St.admin),St.metadata!==""&&It.uint32(34).string(St.metadata),St.version.isZero()||It.uint32(40).uint64(St.version),St.decisionPolicy!==void 0&&mt.Any.encode(St.decisionPolicy,It.uint32(50).fork()).ldelim(),St.createdAt!==void 0&<.Timestamp.encode(St.createdAt,It.uint32(58).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=yt();for(;Gt.pos>>3){case 1:Vt.address=Gt.string();break;case 2:Vt.groupId=Gt.uint64();break;case 3:Vt.admin=Gt.string();break;case 4:Vt.metadata=Gt.string();break;case 5:Vt.version=Gt.uint64();break;case 6:Vt.decisionPolicy=mt.Any.decode(Gt,Gt.uint32());break;case 7:Vt.createdAt=lt.Timestamp.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{address:(0,vt.isSet)(St.address)?String(St.address):"",groupId:(0,vt.isSet)(St.groupId)?vt.Long.fromValue(St.groupId):vt.Long.UZERO,admin:(0,vt.isSet)(St.admin)?String(St.admin):"",metadata:(0,vt.isSet)(St.metadata)?String(St.metadata):"",version:(0,vt.isSet)(St.version)?vt.Long.fromValue(St.version):vt.Long.UZERO,decisionPolicy:(0,vt.isSet)(St.decisionPolicy)?mt.Any.fromJSON(St.decisionPolicy):void 0,createdAt:(0,vt.isSet)(St.createdAt)?(0,vt.fromJsonTimestamp)(St.createdAt):void 0}},toJSON(St){const It={};return St.address!==void 0&&(It.address=St.address),St.groupId!==void 0&&(It.groupId=(St.groupId||vt.Long.UZERO).toString()),St.admin!==void 0&&(It.admin=St.admin),St.metadata!==void 0&&(It.metadata=St.metadata),St.version!==void 0&&(It.version=(St.version||vt.Long.UZERO).toString()),St.decisionPolicy!==void 0&&(It.decisionPolicy=St.decisionPolicy?mt.Any.toJSON(St.decisionPolicy):void 0),St.createdAt!==void 0&&(It.createdAt=(0,vt.fromTimestamp)(St.createdAt).toISOString()),It},fromPartial(St){const It=yt();return It.address=St.address??"",It.groupId=St.groupId!==void 0&&St.groupId!==null?vt.Long.fromValue(St.groupId):vt.Long.UZERO,It.admin=St.admin??"",It.metadata=St.metadata??"",It.version=St.version!==void 0&&St.version!==null?vt.Long.fromValue(St.version):vt.Long.UZERO,It.decisionPolicy=St.decisionPolicy!==void 0&&St.decisionPolicy!==null?mt.Any.fromPartial(St.decisionPolicy):void 0,It.createdAt=St.createdAt!==void 0&&St.createdAt!==null?lt.Timestamp.fromPartial(St.createdAt):void 0,It}};function $t(){return{id:vt.Long.UZERO,groupPolicyAddress:"",metadata:"",proposers:[],submitTime:void 0,groupVersion:vt.Long.UZERO,groupPolicyVersion:vt.Long.UZERO,status:0,finalTallyResult:void 0,votingPeriodEnd:void 0,executorResult:0,messages:[],title:"",summary:""}}d.Proposal={encode(St,It=kt.Writer.create()){St.id.isZero()||It.uint32(8).uint64(St.id),St.groupPolicyAddress!==""&&It.uint32(18).string(St.groupPolicyAddress),St.metadata!==""&&It.uint32(26).string(St.metadata);for(const Gt of St.proposers)It.uint32(34).string(Gt);St.submitTime!==void 0&<.Timestamp.encode(St.submitTime,It.uint32(42).fork()).ldelim(),St.groupVersion.isZero()||It.uint32(48).uint64(St.groupVersion),St.groupPolicyVersion.isZero()||It.uint32(56).uint64(St.groupPolicyVersion),St.status!==0&&It.uint32(64).int32(St.status),St.finalTallyResult!==void 0&&d.TallyResult.encode(St.finalTallyResult,It.uint32(74).fork()).ldelim(),St.votingPeriodEnd!==void 0&<.Timestamp.encode(St.votingPeriodEnd,It.uint32(82).fork()).ldelim(),St.executorResult!==0&&It.uint32(88).int32(St.executorResult);for(const Gt of St.messages)mt.Any.encode(Gt,It.uint32(98).fork()).ldelim();return St.title!==""&&It.uint32(106).string(St.title),St.summary!==""&&It.uint32(114).string(St.summary),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=$t();for(;Gt.pos>>3){case 1:Vt.id=Gt.uint64();break;case 2:Vt.groupPolicyAddress=Gt.string();break;case 3:Vt.metadata=Gt.string();break;case 4:Vt.proposers.push(Gt.string());break;case 5:Vt.submitTime=lt.Timestamp.decode(Gt,Gt.uint32());break;case 6:Vt.groupVersion=Gt.uint64();break;case 7:Vt.groupPolicyVersion=Gt.uint64();break;case 8:Vt.status=Gt.int32();break;case 9:Vt.finalTallyResult=d.TallyResult.decode(Gt,Gt.uint32());break;case 10:Vt.votingPeriodEnd=lt.Timestamp.decode(Gt,Gt.uint32());break;case 11:Vt.executorResult=Gt.int32();break;case 12:Vt.messages.push(mt.Any.decode(Gt,Gt.uint32()));break;case 13:Vt.title=Gt.string();break;case 14:Vt.summary=Gt.string();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{id:(0,vt.isSet)(St.id)?vt.Long.fromValue(St.id):vt.Long.UZERO,groupPolicyAddress:(0,vt.isSet)(St.groupPolicyAddress)?String(St.groupPolicyAddress):"",metadata:(0,vt.isSet)(St.metadata)?String(St.metadata):"",proposers:Array.isArray(St==null?void 0:St.proposers)?St.proposers.map(It=>String(It)):[],submitTime:(0,vt.isSet)(St.submitTime)?(0,vt.fromJsonTimestamp)(St.submitTime):void 0,groupVersion:(0,vt.isSet)(St.groupVersion)?vt.Long.fromValue(St.groupVersion):vt.Long.UZERO,groupPolicyVersion:(0,vt.isSet)(St.groupPolicyVersion)?vt.Long.fromValue(St.groupPolicyVersion):vt.Long.UZERO,status:(0,vt.isSet)(St.status)?nn(St.status):0,finalTallyResult:(0,vt.isSet)(St.finalTallyResult)?d.TallyResult.fromJSON(St.finalTallyResult):void 0,votingPeriodEnd:(0,vt.isSet)(St.votingPeriodEnd)?(0,vt.fromJsonTimestamp)(St.votingPeriodEnd):void 0,executorResult:(0,vt.isSet)(St.executorResult)?Nt(St.executorResult):0,messages:Array.isArray(St==null?void 0:St.messages)?St.messages.map(It=>mt.Any.fromJSON(It)):[],title:(0,vt.isSet)(St.title)?String(St.title):"",summary:(0,vt.isSet)(St.summary)?String(St.summary):""}},toJSON(St){const It={};return St.id!==void 0&&(It.id=(St.id||vt.Long.UZERO).toString()),St.groupPolicyAddress!==void 0&&(It.groupPolicyAddress=St.groupPolicyAddress),St.metadata!==void 0&&(It.metadata=St.metadata),St.proposers?It.proposers=St.proposers.map(Gt=>Gt):It.proposers=[],St.submitTime!==void 0&&(It.submitTime=(0,vt.fromTimestamp)(St.submitTime).toISOString()),St.groupVersion!==void 0&&(It.groupVersion=(St.groupVersion||vt.Long.UZERO).toString()),St.groupPolicyVersion!==void 0&&(It.groupPolicyVersion=(St.groupPolicyVersion||vt.Long.UZERO).toString()),St.status!==void 0&&(It.status=Qt(St.status)),St.finalTallyResult!==void 0&&(It.finalTallyResult=St.finalTallyResult?d.TallyResult.toJSON(St.finalTallyResult):void 0),St.votingPeriodEnd!==void 0&&(It.votingPeriodEnd=(0,vt.fromTimestamp)(St.votingPeriodEnd).toISOString()),St.executorResult!==void 0&&(It.executorResult=xt(St.executorResult)),St.messages?It.messages=St.messages.map(Gt=>Gt?mt.Any.toJSON(Gt):void 0):It.messages=[],St.title!==void 0&&(It.title=St.title),St.summary!==void 0&&(It.summary=St.summary),It},fromPartial(St){var Gt,Ut;const It=$t();return It.id=St.id!==void 0&&St.id!==null?vt.Long.fromValue(St.id):vt.Long.UZERO,It.groupPolicyAddress=St.groupPolicyAddress??"",It.metadata=St.metadata??"",It.proposers=((Gt=St.proposers)==null?void 0:Gt.map(Vt=>Vt))||[],It.submitTime=St.submitTime!==void 0&&St.submitTime!==null?lt.Timestamp.fromPartial(St.submitTime):void 0,It.groupVersion=St.groupVersion!==void 0&&St.groupVersion!==null?vt.Long.fromValue(St.groupVersion):vt.Long.UZERO,It.groupPolicyVersion=St.groupPolicyVersion!==void 0&&St.groupPolicyVersion!==null?vt.Long.fromValue(St.groupPolicyVersion):vt.Long.UZERO,It.status=St.status??0,It.finalTallyResult=St.finalTallyResult!==void 0&&St.finalTallyResult!==null?d.TallyResult.fromPartial(St.finalTallyResult):void 0,It.votingPeriodEnd=St.votingPeriodEnd!==void 0&&St.votingPeriodEnd!==null?lt.Timestamp.fromPartial(St.votingPeriodEnd):void 0,It.executorResult=St.executorResult??0,It.messages=((Ut=St.messages)==null?void 0:Ut.map(Vt=>mt.Any.fromPartial(Vt)))||[],It.title=St.title??"",It.summary=St.summary??"",It}};function Yt(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}d.TallyResult={encode(St,It=kt.Writer.create()){return St.yesCount!==""&&It.uint32(10).string(St.yesCount),St.abstainCount!==""&&It.uint32(18).string(St.abstainCount),St.noCount!==""&&It.uint32(26).string(St.noCount),St.noWithVetoCount!==""&&It.uint32(34).string(St.noWithVetoCount),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Yt();for(;Gt.pos>>3){case 1:Vt.yesCount=Gt.string();break;case 2:Vt.abstainCount=Gt.string();break;case 3:Vt.noCount=Gt.string();break;case 4:Vt.noWithVetoCount=Gt.string();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{yesCount:(0,vt.isSet)(St.yesCount)?String(St.yesCount):"",abstainCount:(0,vt.isSet)(St.abstainCount)?String(St.abstainCount):"",noCount:(0,vt.isSet)(St.noCount)?String(St.noCount):"",noWithVetoCount:(0,vt.isSet)(St.noWithVetoCount)?String(St.noWithVetoCount):""}},toJSON(St){const It={};return St.yesCount!==void 0&&(It.yesCount=St.yesCount),St.abstainCount!==void 0&&(It.abstainCount=St.abstainCount),St.noCount!==void 0&&(It.noCount=St.noCount),St.noWithVetoCount!==void 0&&(It.noWithVetoCount=St.noWithVetoCount),It},fromPartial(St){const It=Yt();return It.yesCount=St.yesCount??"",It.abstainCount=St.abstainCount??"",It.noCount=St.noCount??"",It.noWithVetoCount=St.noWithVetoCount??"",It}};function Kt(){return{proposalId:vt.Long.UZERO,voter:"",option:0,metadata:"",submitTime:void 0}}d.Vote={encode(St,It=kt.Writer.create()){return St.proposalId.isZero()||It.uint32(8).uint64(St.proposalId),St.voter!==""&&It.uint32(18).string(St.voter),St.option!==0&&It.uint32(24).int32(St.option),St.metadata!==""&&It.uint32(34).string(St.metadata),St.submitTime!==void 0&<.Timestamp.encode(St.submitTime,It.uint32(42).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Kt();for(;Gt.pos>>3){case 1:Vt.proposalId=Gt.uint64();break;case 2:Vt.voter=Gt.string();break;case 3:Vt.option=Gt.int32();break;case 4:Vt.metadata=Gt.string();break;case 5:Vt.submitTime=lt.Timestamp.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{proposalId:(0,vt.isSet)(St.proposalId)?vt.Long.fromValue(St.proposalId):vt.Long.UZERO,voter:(0,vt.isSet)(St.voter)?String(St.voter):"",option:(0,vt.isSet)(St.option)?Jt(St.option):0,metadata:(0,vt.isSet)(St.metadata)?String(St.metadata):"",submitTime:(0,vt.isSet)(St.submitTime)?(0,vt.fromJsonTimestamp)(St.submitTime):void 0}},toJSON(St){const It={};return St.proposalId!==void 0&&(It.proposalId=(St.proposalId||vt.Long.UZERO).toString()),St.voter!==void 0&&(It.voter=St.voter),St.option!==void 0&&(It.option=Zt(St.option)),St.metadata!==void 0&&(It.metadata=St.metadata),St.submitTime!==void 0&&(It.submitTime=(0,vt.fromTimestamp)(St.submitTime).toISOString()),It},fromPartial(St){const It=Kt();return It.proposalId=St.proposalId!==void 0&&St.proposalId!==null?vt.Long.fromValue(St.proposalId):vt.Long.UZERO,It.voter=St.voter??"",It.option=St.option??0,It.metadata=St.metadata??"",It.submitTime=St.submitTime!==void 0&&St.submitTime!==null?lt.Timestamp.fromPartial(St.submitTime):void 0,It}}})(types$g);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(An,gn,Nn,wr){wr===void 0&&(wr=Nn);var nr=Object.getOwnPropertyDescriptor(gn,Nn);(!nr||("get"in nr?!gn.__esModule:nr.writable||nr.configurable))&&(nr={enumerable:!0,get:function(){return gn[Nn]}}),Object.defineProperty(An,wr,nr)}:function(An,gn,Nn,wr){wr===void 0&&(wr=Nn),An[wr]=gn[Nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(An,gn){Object.defineProperty(An,"default",{enumerable:!0,value:gn})}:function(An,gn){An.default=gn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(An){if(An&&An.__esModule)return An;var gn={};if(An!=null)for(var Nn in An)Nn!=="default"&&Object.prototype.hasOwnProperty.call(An,Nn)&&b(gn,An,Nn);return dt(gn,An),gn};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgLeaveGroupResponse=d.MsgLeaveGroup=d.MsgExecResponse=d.MsgExec=d.MsgVoteResponse=d.MsgVote=d.MsgWithdrawProposalResponse=d.MsgWithdrawProposal=d.MsgSubmitProposalResponse=d.MsgSubmitProposal=d.MsgUpdateGroupPolicyMetadataResponse=d.MsgUpdateGroupPolicyMetadata=d.MsgUpdateGroupPolicyDecisionPolicyResponse=d.MsgUpdateGroupPolicyDecisionPolicy=d.MsgCreateGroupWithPolicyResponse=d.MsgCreateGroupWithPolicy=d.MsgUpdateGroupPolicyAdminResponse=d.MsgUpdateGroupPolicyAdmin=d.MsgCreateGroupPolicyResponse=d.MsgCreateGroupPolicy=d.MsgUpdateGroupMetadataResponse=d.MsgUpdateGroupMetadata=d.MsgUpdateGroupAdminResponse=d.MsgUpdateGroupAdmin=d.MsgUpdateGroupMembersResponse=d.MsgUpdateGroupMembers=d.MsgCreateGroupResponse=d.MsgCreateGroup=d.execToJSON=d.execFromJSON=d.Exec=d.protobufPackage=void 0;const lt=types$g,ht=any$1,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.group.v1";var kt;(function(An){An[An.EXEC_UNSPECIFIED=0]="EXEC_UNSPECIFIED",An[An.EXEC_TRY=1]="EXEC_TRY",An[An.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kt=d.Exec||(d.Exec={}));function Pt(An){switch(An){case 0:case"EXEC_UNSPECIFIED":return kt.EXEC_UNSPECIFIED;case 1:case"EXEC_TRY":return kt.EXEC_TRY;case-1:case"UNRECOGNIZED":default:return kt.UNRECOGNIZED}}d.execFromJSON=Pt;function Jt(An){switch(An){case kt.EXEC_UNSPECIFIED:return"EXEC_UNSPECIFIED";case kt.EXEC_TRY:return"EXEC_TRY";case kt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.execToJSON=Jt;function Zt(){return{admin:"",members:[],metadata:""}}d.MsgCreateGroup={encode(An,gn=vt.Writer.create()){An.admin!==""&&gn.uint32(10).string(An.admin);for(const Nn of An.members)lt.MemberRequest.encode(Nn,gn.uint32(18).fork()).ldelim();return An.metadata!==""&&gn.uint32(26).string(An.metadata),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Zt();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.members.push(lt.MemberRequest.decode(Nn,Nn.uint32()));break;case 3:nr.metadata=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",members:Array.isArray(An==null?void 0:An.members)?An.members.map(gn=>lt.MemberRequest.fromJSON(gn)):[],metadata:(0,mt.isSet)(An.metadata)?String(An.metadata):""}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.members?gn.members=An.members.map(Nn=>Nn?lt.MemberRequest.toJSON(Nn):void 0):gn.members=[],An.metadata!==void 0&&(gn.metadata=An.metadata),gn},fromPartial(An){var Nn;const gn=Zt();return gn.admin=An.admin??"",gn.members=((Nn=An.members)==null?void 0:Nn.map(wr=>lt.MemberRequest.fromPartial(wr)))||[],gn.metadata=An.metadata??"",gn}};function Rt(){return{groupId:mt.Long.UZERO}}d.MsgCreateGroupResponse={encode(An,gn=vt.Writer.create()){return An.groupId.isZero()||gn.uint32(8).uint64(An.groupId),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Rt();for(;Nn.pos>>3){case 1:nr.groupId=Nn.uint64();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{groupId:(0,mt.isSet)(An.groupId)?mt.Long.fromValue(An.groupId):mt.Long.UZERO}},toJSON(An){const gn={};return An.groupId!==void 0&&(gn.groupId=(An.groupId||mt.Long.UZERO).toString()),gn},fromPartial(An){const gn=Rt();return gn.groupId=An.groupId!==void 0&&An.groupId!==null?mt.Long.fromValue(An.groupId):mt.Long.UZERO,gn}};function nn(){return{admin:"",groupId:mt.Long.UZERO,memberUpdates:[]}}d.MsgUpdateGroupMembers={encode(An,gn=vt.Writer.create()){An.admin!==""&&gn.uint32(10).string(An.admin),An.groupId.isZero()||gn.uint32(16).uint64(An.groupId);for(const Nn of An.memberUpdates)lt.MemberRequest.encode(Nn,gn.uint32(26).fork()).ldelim();return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=nn();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.groupId=Nn.uint64();break;case 3:nr.memberUpdates.push(lt.MemberRequest.decode(Nn,Nn.uint32()));break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",groupId:(0,mt.isSet)(An.groupId)?mt.Long.fromValue(An.groupId):mt.Long.UZERO,memberUpdates:Array.isArray(An==null?void 0:An.memberUpdates)?An.memberUpdates.map(gn=>lt.MemberRequest.fromJSON(gn)):[]}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.groupId!==void 0&&(gn.groupId=(An.groupId||mt.Long.UZERO).toString()),An.memberUpdates?gn.memberUpdates=An.memberUpdates.map(Nn=>Nn?lt.MemberRequest.toJSON(Nn):void 0):gn.memberUpdates=[],gn},fromPartial(An){var Nn;const gn=nn();return gn.admin=An.admin??"",gn.groupId=An.groupId!==void 0&&An.groupId!==null?mt.Long.fromValue(An.groupId):mt.Long.UZERO,gn.memberUpdates=((Nn=An.memberUpdates)==null?void 0:Nn.map(wr=>lt.MemberRequest.fromPartial(wr)))||[],gn}};function Qt(){return{}}d.MsgUpdateGroupMembersResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Qt();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return Qt()}};function wt(){return{admin:"",groupId:mt.Long.UZERO,newAdmin:""}}d.MsgUpdateGroupAdmin={encode(An,gn=vt.Writer.create()){return An.admin!==""&&gn.uint32(10).string(An.admin),An.groupId.isZero()||gn.uint32(16).uint64(An.groupId),An.newAdmin!==""&&gn.uint32(26).string(An.newAdmin),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=wt();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.groupId=Nn.uint64();break;case 3:nr.newAdmin=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",groupId:(0,mt.isSet)(An.groupId)?mt.Long.fromValue(An.groupId):mt.Long.UZERO,newAdmin:(0,mt.isSet)(An.newAdmin)?String(An.newAdmin):""}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.groupId!==void 0&&(gn.groupId=(An.groupId||mt.Long.UZERO).toString()),An.newAdmin!==void 0&&(gn.newAdmin=An.newAdmin),gn},fromPartial(An){const gn=wt();return gn.admin=An.admin??"",gn.groupId=An.groupId!==void 0&&An.groupId!==null?mt.Long.fromValue(An.groupId):mt.Long.UZERO,gn.newAdmin=An.newAdmin??"",gn}};function Nt(){return{}}d.MsgUpdateGroupAdminResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Nt();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return Nt()}};function xt(){return{admin:"",groupId:mt.Long.UZERO,metadata:""}}d.MsgUpdateGroupMetadata={encode(An,gn=vt.Writer.create()){return An.admin!==""&&gn.uint32(10).string(An.admin),An.groupId.isZero()||gn.uint32(16).uint64(An.groupId),An.metadata!==""&&gn.uint32(26).string(An.metadata),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=xt();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.groupId=Nn.uint64();break;case 3:nr.metadata=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",groupId:(0,mt.isSet)(An.groupId)?mt.Long.fromValue(An.groupId):mt.Long.UZERO,metadata:(0,mt.isSet)(An.metadata)?String(An.metadata):""}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.groupId!==void 0&&(gn.groupId=(An.groupId||mt.Long.UZERO).toString()),An.metadata!==void 0&&(gn.metadata=An.metadata),gn},fromPartial(An){const gn=xt();return gn.admin=An.admin??"",gn.groupId=An.groupId!==void 0&&An.groupId!==null?mt.Long.fromValue(An.groupId):mt.Long.UZERO,gn.metadata=An.metadata??"",gn}};function Et(){return{}}d.MsgUpdateGroupMetadataResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Et();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return Et()}};function Bt(){return{admin:"",groupId:mt.Long.UZERO,metadata:"",decisionPolicy:void 0}}d.MsgCreateGroupPolicy={encode(An,gn=vt.Writer.create()){return An.admin!==""&&gn.uint32(10).string(An.admin),An.groupId.isZero()||gn.uint32(16).uint64(An.groupId),An.metadata!==""&&gn.uint32(26).string(An.metadata),An.decisionPolicy!==void 0&&ht.Any.encode(An.decisionPolicy,gn.uint32(34).fork()).ldelim(),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Bt();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.groupId=Nn.uint64();break;case 3:nr.metadata=Nn.string();break;case 4:nr.decisionPolicy=ht.Any.decode(Nn,Nn.uint32());break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",groupId:(0,mt.isSet)(An.groupId)?mt.Long.fromValue(An.groupId):mt.Long.UZERO,metadata:(0,mt.isSet)(An.metadata)?String(An.metadata):"",decisionPolicy:(0,mt.isSet)(An.decisionPolicy)?ht.Any.fromJSON(An.decisionPolicy):void 0}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.groupId!==void 0&&(gn.groupId=(An.groupId||mt.Long.UZERO).toString()),An.metadata!==void 0&&(gn.metadata=An.metadata),An.decisionPolicy!==void 0&&(gn.decisionPolicy=An.decisionPolicy?ht.Any.toJSON(An.decisionPolicy):void 0),gn},fromPartial(An){const gn=Bt();return gn.admin=An.admin??"",gn.groupId=An.groupId!==void 0&&An.groupId!==null?mt.Long.fromValue(An.groupId):mt.Long.UZERO,gn.metadata=An.metadata??"",gn.decisionPolicy=An.decisionPolicy!==void 0&&An.decisionPolicy!==null?ht.Any.fromPartial(An.decisionPolicy):void 0,gn}};function Tt(){return{address:""}}d.MsgCreateGroupPolicyResponse={encode(An,gn=vt.Writer.create()){return An.address!==""&&gn.uint32(10).string(An.address),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Tt();for(;Nn.pos>>3){case 1:nr.address=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{address:(0,mt.isSet)(An.address)?String(An.address):""}},toJSON(An){const gn={};return An.address!==void 0&&(gn.address=An.address),gn},fromPartial(An){const gn=Tt();return gn.address=An.address??"",gn}};function Mt(){return{admin:"",groupPolicyAddress:"",newAdmin:""}}d.MsgUpdateGroupPolicyAdmin={encode(An,gn=vt.Writer.create()){return An.admin!==""&&gn.uint32(10).string(An.admin),An.groupPolicyAddress!==""&&gn.uint32(18).string(An.groupPolicyAddress),An.newAdmin!==""&&gn.uint32(26).string(An.newAdmin),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Mt();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.groupPolicyAddress=Nn.string();break;case 3:nr.newAdmin=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",groupPolicyAddress:(0,mt.isSet)(An.groupPolicyAddress)?String(An.groupPolicyAddress):"",newAdmin:(0,mt.isSet)(An.newAdmin)?String(An.newAdmin):""}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.groupPolicyAddress!==void 0&&(gn.groupPolicyAddress=An.groupPolicyAddress),An.newAdmin!==void 0&&(gn.newAdmin=An.newAdmin),gn},fromPartial(An){const gn=Mt();return gn.admin=An.admin??"",gn.groupPolicyAddress=An.groupPolicyAddress??"",gn.newAdmin=An.newAdmin??"",gn}};function jt(){return{}}d.MsgUpdateGroupPolicyAdminResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=jt();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return jt()}};function Ht(){return{admin:"",members:[],groupMetadata:"",groupPolicyMetadata:"",groupPolicyAsAdmin:!1,decisionPolicy:void 0}}d.MsgCreateGroupWithPolicy={encode(An,gn=vt.Writer.create()){An.admin!==""&&gn.uint32(10).string(An.admin);for(const Nn of An.members)lt.MemberRequest.encode(Nn,gn.uint32(18).fork()).ldelim();return An.groupMetadata!==""&&gn.uint32(26).string(An.groupMetadata),An.groupPolicyMetadata!==""&&gn.uint32(34).string(An.groupPolicyMetadata),An.groupPolicyAsAdmin===!0&&gn.uint32(40).bool(An.groupPolicyAsAdmin),An.decisionPolicy!==void 0&&ht.Any.encode(An.decisionPolicy,gn.uint32(50).fork()).ldelim(),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Ht();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.members.push(lt.MemberRequest.decode(Nn,Nn.uint32()));break;case 3:nr.groupMetadata=Nn.string();break;case 4:nr.groupPolicyMetadata=Nn.string();break;case 5:nr.groupPolicyAsAdmin=Nn.bool();break;case 6:nr.decisionPolicy=ht.Any.decode(Nn,Nn.uint32());break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",members:Array.isArray(An==null?void 0:An.members)?An.members.map(gn=>lt.MemberRequest.fromJSON(gn)):[],groupMetadata:(0,mt.isSet)(An.groupMetadata)?String(An.groupMetadata):"",groupPolicyMetadata:(0,mt.isSet)(An.groupPolicyMetadata)?String(An.groupPolicyMetadata):"",groupPolicyAsAdmin:(0,mt.isSet)(An.groupPolicyAsAdmin)?!!An.groupPolicyAsAdmin:!1,decisionPolicy:(0,mt.isSet)(An.decisionPolicy)?ht.Any.fromJSON(An.decisionPolicy):void 0}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.members?gn.members=An.members.map(Nn=>Nn?lt.MemberRequest.toJSON(Nn):void 0):gn.members=[],An.groupMetadata!==void 0&&(gn.groupMetadata=An.groupMetadata),An.groupPolicyMetadata!==void 0&&(gn.groupPolicyMetadata=An.groupPolicyMetadata),An.groupPolicyAsAdmin!==void 0&&(gn.groupPolicyAsAdmin=An.groupPolicyAsAdmin),An.decisionPolicy!==void 0&&(gn.decisionPolicy=An.decisionPolicy?ht.Any.toJSON(An.decisionPolicy):void 0),gn},fromPartial(An){var Nn;const gn=Ht();return gn.admin=An.admin??"",gn.members=((Nn=An.members)==null?void 0:Nn.map(wr=>lt.MemberRequest.fromPartial(wr)))||[],gn.groupMetadata=An.groupMetadata??"",gn.groupPolicyMetadata=An.groupPolicyMetadata??"",gn.groupPolicyAsAdmin=An.groupPolicyAsAdmin??!1,gn.decisionPolicy=An.decisionPolicy!==void 0&&An.decisionPolicy!==null?ht.Any.fromPartial(An.decisionPolicy):void 0,gn}};function an(){return{groupId:mt.Long.UZERO,groupPolicyAddress:""}}d.MsgCreateGroupWithPolicyResponse={encode(An,gn=vt.Writer.create()){return An.groupId.isZero()||gn.uint32(8).uint64(An.groupId),An.groupPolicyAddress!==""&&gn.uint32(18).string(An.groupPolicyAddress),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=an();for(;Nn.pos>>3){case 1:nr.groupId=Nn.uint64();break;case 2:nr.groupPolicyAddress=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{groupId:(0,mt.isSet)(An.groupId)?mt.Long.fromValue(An.groupId):mt.Long.UZERO,groupPolicyAddress:(0,mt.isSet)(An.groupPolicyAddress)?String(An.groupPolicyAddress):""}},toJSON(An){const gn={};return An.groupId!==void 0&&(gn.groupId=(An.groupId||mt.Long.UZERO).toString()),An.groupPolicyAddress!==void 0&&(gn.groupPolicyAddress=An.groupPolicyAddress),gn},fromPartial(An){const gn=an();return gn.groupId=An.groupId!==void 0&&An.groupId!==null?mt.Long.fromValue(An.groupId):mt.Long.UZERO,gn.groupPolicyAddress=An.groupPolicyAddress??"",gn}};function yt(){return{admin:"",groupPolicyAddress:"",decisionPolicy:void 0}}d.MsgUpdateGroupPolicyDecisionPolicy={encode(An,gn=vt.Writer.create()){return An.admin!==""&&gn.uint32(10).string(An.admin),An.groupPolicyAddress!==""&&gn.uint32(18).string(An.groupPolicyAddress),An.decisionPolicy!==void 0&&ht.Any.encode(An.decisionPolicy,gn.uint32(26).fork()).ldelim(),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=yt();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.groupPolicyAddress=Nn.string();break;case 3:nr.decisionPolicy=ht.Any.decode(Nn,Nn.uint32());break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",groupPolicyAddress:(0,mt.isSet)(An.groupPolicyAddress)?String(An.groupPolicyAddress):"",decisionPolicy:(0,mt.isSet)(An.decisionPolicy)?ht.Any.fromJSON(An.decisionPolicy):void 0}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.groupPolicyAddress!==void 0&&(gn.groupPolicyAddress=An.groupPolicyAddress),An.decisionPolicy!==void 0&&(gn.decisionPolicy=An.decisionPolicy?ht.Any.toJSON(An.decisionPolicy):void 0),gn},fromPartial(An){const gn=yt();return gn.admin=An.admin??"",gn.groupPolicyAddress=An.groupPolicyAddress??"",gn.decisionPolicy=An.decisionPolicy!==void 0&&An.decisionPolicy!==null?ht.Any.fromPartial(An.decisionPolicy):void 0,gn}};function $t(){return{}}d.MsgUpdateGroupPolicyDecisionPolicyResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=$t();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return $t()}};function Yt(){return{admin:"",groupPolicyAddress:"",metadata:""}}d.MsgUpdateGroupPolicyMetadata={encode(An,gn=vt.Writer.create()){return An.admin!==""&&gn.uint32(10).string(An.admin),An.groupPolicyAddress!==""&&gn.uint32(18).string(An.groupPolicyAddress),An.metadata!==""&&gn.uint32(26).string(An.metadata),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Yt();for(;Nn.pos>>3){case 1:nr.admin=Nn.string();break;case 2:nr.groupPolicyAddress=Nn.string();break;case 3:nr.metadata=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{admin:(0,mt.isSet)(An.admin)?String(An.admin):"",groupPolicyAddress:(0,mt.isSet)(An.groupPolicyAddress)?String(An.groupPolicyAddress):"",metadata:(0,mt.isSet)(An.metadata)?String(An.metadata):""}},toJSON(An){const gn={};return An.admin!==void 0&&(gn.admin=An.admin),An.groupPolicyAddress!==void 0&&(gn.groupPolicyAddress=An.groupPolicyAddress),An.metadata!==void 0&&(gn.metadata=An.metadata),gn},fromPartial(An){const gn=Yt();return gn.admin=An.admin??"",gn.groupPolicyAddress=An.groupPolicyAddress??"",gn.metadata=An.metadata??"",gn}};function Kt(){return{}}d.MsgUpdateGroupPolicyMetadataResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Kt();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return Kt()}};function St(){return{groupPolicyAddress:"",proposers:[],metadata:"",messages:[],exec:0,title:"",summary:""}}d.MsgSubmitProposal={encode(An,gn=vt.Writer.create()){An.groupPolicyAddress!==""&&gn.uint32(10).string(An.groupPolicyAddress);for(const Nn of An.proposers)gn.uint32(18).string(Nn);An.metadata!==""&&gn.uint32(26).string(An.metadata);for(const Nn of An.messages)ht.Any.encode(Nn,gn.uint32(34).fork()).ldelim();return An.exec!==0&&gn.uint32(40).int32(An.exec),An.title!==""&&gn.uint32(50).string(An.title),An.summary!==""&&gn.uint32(58).string(An.summary),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=St();for(;Nn.pos>>3){case 1:nr.groupPolicyAddress=Nn.string();break;case 2:nr.proposers.push(Nn.string());break;case 3:nr.metadata=Nn.string();break;case 4:nr.messages.push(ht.Any.decode(Nn,Nn.uint32()));break;case 5:nr.exec=Nn.int32();break;case 6:nr.title=Nn.string();break;case 7:nr.summary=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{groupPolicyAddress:(0,mt.isSet)(An.groupPolicyAddress)?String(An.groupPolicyAddress):"",proposers:Array.isArray(An==null?void 0:An.proposers)?An.proposers.map(gn=>String(gn)):[],metadata:(0,mt.isSet)(An.metadata)?String(An.metadata):"",messages:Array.isArray(An==null?void 0:An.messages)?An.messages.map(gn=>ht.Any.fromJSON(gn)):[],exec:(0,mt.isSet)(An.exec)?Pt(An.exec):0,title:(0,mt.isSet)(An.title)?String(An.title):"",summary:(0,mt.isSet)(An.summary)?String(An.summary):""}},toJSON(An){const gn={};return An.groupPolicyAddress!==void 0&&(gn.groupPolicyAddress=An.groupPolicyAddress),An.proposers?gn.proposers=An.proposers.map(Nn=>Nn):gn.proposers=[],An.metadata!==void 0&&(gn.metadata=An.metadata),An.messages?gn.messages=An.messages.map(Nn=>Nn?ht.Any.toJSON(Nn):void 0):gn.messages=[],An.exec!==void 0&&(gn.exec=Jt(An.exec)),An.title!==void 0&&(gn.title=An.title),An.summary!==void 0&&(gn.summary=An.summary),gn},fromPartial(An){var Nn,wr;const gn=St();return gn.groupPolicyAddress=An.groupPolicyAddress??"",gn.proposers=((Nn=An.proposers)==null?void 0:Nn.map(nr=>nr))||[],gn.metadata=An.metadata??"",gn.messages=((wr=An.messages)==null?void 0:wr.map(nr=>ht.Any.fromPartial(nr)))||[],gn.exec=An.exec??0,gn.title=An.title??"",gn.summary=An.summary??"",gn}};function It(){return{proposalId:mt.Long.UZERO}}d.MsgSubmitProposalResponse={encode(An,gn=vt.Writer.create()){return An.proposalId.isZero()||gn.uint32(8).uint64(An.proposalId),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=It();for(;Nn.pos>>3){case 1:nr.proposalId=Nn.uint64();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{proposalId:(0,mt.isSet)(An.proposalId)?mt.Long.fromValue(An.proposalId):mt.Long.UZERO}},toJSON(An){const gn={};return An.proposalId!==void 0&&(gn.proposalId=(An.proposalId||mt.Long.UZERO).toString()),gn},fromPartial(An){const gn=It();return gn.proposalId=An.proposalId!==void 0&&An.proposalId!==null?mt.Long.fromValue(An.proposalId):mt.Long.UZERO,gn}};function Gt(){return{proposalId:mt.Long.UZERO,address:""}}d.MsgWithdrawProposal={encode(An,gn=vt.Writer.create()){return An.proposalId.isZero()||gn.uint32(8).uint64(An.proposalId),An.address!==""&&gn.uint32(18).string(An.address),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Gt();for(;Nn.pos>>3){case 1:nr.proposalId=Nn.uint64();break;case 2:nr.address=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{proposalId:(0,mt.isSet)(An.proposalId)?mt.Long.fromValue(An.proposalId):mt.Long.UZERO,address:(0,mt.isSet)(An.address)?String(An.address):""}},toJSON(An){const gn={};return An.proposalId!==void 0&&(gn.proposalId=(An.proposalId||mt.Long.UZERO).toString()),An.address!==void 0&&(gn.address=An.address),gn},fromPartial(An){const gn=Gt();return gn.proposalId=An.proposalId!==void 0&&An.proposalId!==null?mt.Long.fromValue(An.proposalId):mt.Long.UZERO,gn.address=An.address??"",gn}};function Ut(){return{}}d.MsgWithdrawProposalResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Ut();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return Ut()}};function Vt(){return{proposalId:mt.Long.UZERO,voter:"",option:0,metadata:"",exec:0}}d.MsgVote={encode(An,gn=vt.Writer.create()){return An.proposalId.isZero()||gn.uint32(8).uint64(An.proposalId),An.voter!==""&&gn.uint32(18).string(An.voter),An.option!==0&&gn.uint32(24).int32(An.option),An.metadata!==""&&gn.uint32(34).string(An.metadata),An.exec!==0&&gn.uint32(40).int32(An.exec),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Vt();for(;Nn.pos>>3){case 1:nr.proposalId=Nn.uint64();break;case 2:nr.voter=Nn.string();break;case 3:nr.option=Nn.int32();break;case 4:nr.metadata=Nn.string();break;case 5:nr.exec=Nn.int32();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{proposalId:(0,mt.isSet)(An.proposalId)?mt.Long.fromValue(An.proposalId):mt.Long.UZERO,voter:(0,mt.isSet)(An.voter)?String(An.voter):"",option:(0,mt.isSet)(An.option)?(0,lt.voteOptionFromJSON)(An.option):0,metadata:(0,mt.isSet)(An.metadata)?String(An.metadata):"",exec:(0,mt.isSet)(An.exec)?Pt(An.exec):0}},toJSON(An){const gn={};return An.proposalId!==void 0&&(gn.proposalId=(An.proposalId||mt.Long.UZERO).toString()),An.voter!==void 0&&(gn.voter=An.voter),An.option!==void 0&&(gn.option=(0,lt.voteOptionToJSON)(An.option)),An.metadata!==void 0&&(gn.metadata=An.metadata),An.exec!==void 0&&(gn.exec=Jt(An.exec)),gn},fromPartial(An){const gn=Vt();return gn.proposalId=An.proposalId!==void 0&&An.proposalId!==null?mt.Long.fromValue(An.proposalId):mt.Long.UZERO,gn.voter=An.voter??"",gn.option=An.option??0,gn.metadata=An.metadata??"",gn.exec=An.exec??0,gn}};function qt(){return{}}d.MsgVoteResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=qt();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return qt()}};function fn(){return{proposalId:mt.Long.UZERO,executor:""}}d.MsgExec={encode(An,gn=vt.Writer.create()){return An.proposalId.isZero()||gn.uint32(8).uint64(An.proposalId),An.executor!==""&&gn.uint32(18).string(An.executor),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=fn();for(;Nn.pos>>3){case 1:nr.proposalId=Nn.uint64();break;case 2:nr.executor=Nn.string();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{proposalId:(0,mt.isSet)(An.proposalId)?mt.Long.fromValue(An.proposalId):mt.Long.UZERO,executor:(0,mt.isSet)(An.executor)?String(An.executor):""}},toJSON(An){const gn={};return An.proposalId!==void 0&&(gn.proposalId=(An.proposalId||mt.Long.UZERO).toString()),An.executor!==void 0&&(gn.executor=An.executor),gn},fromPartial(An){const gn=fn();return gn.proposalId=An.proposalId!==void 0&&An.proposalId!==null?mt.Long.fromValue(An.proposalId):mt.Long.UZERO,gn.executor=An.executor??"",gn}};function dn(){return{result:0}}d.MsgExecResponse={encode(An,gn=vt.Writer.create()){return An.result!==0&&gn.uint32(16).int32(An.result),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=dn();for(;Nn.pos>>3){case 2:nr.result=Nn.int32();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{result:(0,mt.isSet)(An.result)?(0,lt.proposalExecutorResultFromJSON)(An.result):0}},toJSON(An){const gn={};return An.result!==void 0&&(gn.result=(0,lt.proposalExecutorResultToJSON)(An.result)),gn},fromPartial(An){const gn=dn();return gn.result=An.result??0,gn}};function Dt(){return{address:"",groupId:mt.Long.UZERO}}d.MsgLeaveGroup={encode(An,gn=vt.Writer.create()){return An.address!==""&&gn.uint32(10).string(An.address),An.groupId.isZero()||gn.uint32(16).uint64(An.groupId),gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=Dt();for(;Nn.pos>>3){case 1:nr.address=Nn.string();break;case 2:nr.groupId=Nn.uint64();break;default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{address:(0,mt.isSet)(An.address)?String(An.address):"",groupId:(0,mt.isSet)(An.groupId)?mt.Long.fromValue(An.groupId):mt.Long.UZERO}},toJSON(An){const gn={};return An.address!==void 0&&(gn.address=An.address),An.groupId!==void 0&&(gn.groupId=(An.groupId||mt.Long.UZERO).toString()),gn},fromPartial(An){const gn=Dt();return gn.address=An.address??"",gn.groupId=An.groupId!==void 0&&An.groupId!==null?mt.Long.fromValue(An.groupId):mt.Long.UZERO,gn}};function zt(){return{}}d.MsgLeaveGroupResponse={encode(An,gn=vt.Writer.create()){return gn},decode(An,gn){const Nn=An instanceof vt.Reader?An:new vt.Reader(An);let wr=gn===void 0?Nn.len:Nn.pos+gn;const nr=zt();for(;Nn.pos>>3){default:Nn.skipType(fr&7);break}}return nr},fromJSON(An){return{}},toJSON(An){return{}},fromPartial(An){return zt()}};class tn{constructor(gn){this.rpc=gn,this.CreateGroup=this.CreateGroup.bind(this),this.UpdateGroupMembers=this.UpdateGroupMembers.bind(this),this.UpdateGroupAdmin=this.UpdateGroupAdmin.bind(this),this.UpdateGroupMetadata=this.UpdateGroupMetadata.bind(this),this.CreateGroupPolicy=this.CreateGroupPolicy.bind(this),this.CreateGroupWithPolicy=this.CreateGroupWithPolicy.bind(this),this.UpdateGroupPolicyAdmin=this.UpdateGroupPolicyAdmin.bind(this),this.UpdateGroupPolicyDecisionPolicy=this.UpdateGroupPolicyDecisionPolicy.bind(this),this.UpdateGroupPolicyMetadata=this.UpdateGroupPolicyMetadata.bind(this),this.SubmitProposal=this.SubmitProposal.bind(this),this.WithdrawProposal=this.WithdrawProposal.bind(this),this.Vote=this.Vote.bind(this),this.Exec=this.Exec.bind(this),this.LeaveGroup=this.LeaveGroup.bind(this)}CreateGroup(gn){const Nn=d.MsgCreateGroup.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroup",Nn).then(nr=>d.MsgCreateGroupResponse.decode(new vt.Reader(nr)))}UpdateGroupMembers(gn){const Nn=d.MsgUpdateGroupMembers.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMembers",Nn).then(nr=>d.MsgUpdateGroupMembersResponse.decode(new vt.Reader(nr)))}UpdateGroupAdmin(gn){const Nn=d.MsgUpdateGroupAdmin.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupAdmin",Nn).then(nr=>d.MsgUpdateGroupAdminResponse.decode(new vt.Reader(nr)))}UpdateGroupMetadata(gn){const Nn=d.MsgUpdateGroupMetadata.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMetadata",Nn).then(nr=>d.MsgUpdateGroupMetadataResponse.decode(new vt.Reader(nr)))}CreateGroupPolicy(gn){const Nn=d.MsgCreateGroupPolicy.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupPolicy",Nn).then(nr=>d.MsgCreateGroupPolicyResponse.decode(new vt.Reader(nr)))}CreateGroupWithPolicy(gn){const Nn=d.MsgCreateGroupWithPolicy.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupWithPolicy",Nn).then(nr=>d.MsgCreateGroupWithPolicyResponse.decode(new vt.Reader(nr)))}UpdateGroupPolicyAdmin(gn){const Nn=d.MsgUpdateGroupPolicyAdmin.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyAdmin",Nn).then(nr=>d.MsgUpdateGroupPolicyAdminResponse.decode(new vt.Reader(nr)))}UpdateGroupPolicyDecisionPolicy(gn){const Nn=d.MsgUpdateGroupPolicyDecisionPolicy.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyDecisionPolicy",Nn).then(nr=>d.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new vt.Reader(nr)))}UpdateGroupPolicyMetadata(gn){const Nn=d.MsgUpdateGroupPolicyMetadata.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyMetadata",Nn).then(nr=>d.MsgUpdateGroupPolicyMetadataResponse.decode(new vt.Reader(nr)))}SubmitProposal(gn){const Nn=d.MsgSubmitProposal.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","SubmitProposal",Nn).then(nr=>d.MsgSubmitProposalResponse.decode(new vt.Reader(nr)))}WithdrawProposal(gn){const Nn=d.MsgWithdrawProposal.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","WithdrawProposal",Nn).then(nr=>d.MsgWithdrawProposalResponse.decode(new vt.Reader(nr)))}Vote(gn){const Nn=d.MsgVote.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","Vote",Nn).then(nr=>d.MsgVoteResponse.decode(new vt.Reader(nr)))}Exec(gn){const Nn=d.MsgExec.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","Exec",Nn).then(nr=>d.MsgExecResponse.decode(new vt.Reader(nr)))}LeaveGroup(gn){const Nn=d.MsgLeaveGroup.encode(gn).finish();return this.rpc.request("cosmos.group.v1.Msg","LeaveGroup",Nn).then(nr=>d.MsgLeaveGroupResponse.decode(new vt.Reader(nr)))}}d.MsgClientImpl=tn})(tx$k);Object.defineProperty(messages$5,"__esModule",{value:!0});messages$5.groupTypes=void 0;const tx_1$9=tx$k;messages$5.groupTypes=[["/cosmos.group.v1.MsgCreateGroup",tx_1$9.MsgCreateGroup],["/cosmos.group.v1.MsgCreateGroupPolicy",tx_1$9.MsgCreateGroupPolicy],["/cosmos.group.v1.MsgCreateGroupWithPolicy",tx_1$9.MsgCreateGroupWithPolicy],["/cosmos.group.v1.MsgExec",tx_1$9.MsgExec],["/cosmos.group.v1.MsgLeaveGroup",tx_1$9.MsgLeaveGroup],["/cosmos.group.v1.MsgSubmitProposal",tx_1$9.MsgSubmitProposal],["/cosmos.group.v1.MsgUpdateGroupAdmin",tx_1$9.MsgUpdateGroupAdmin],["/cosmos.group.v1.MsgUpdateGroupMembers",tx_1$9.MsgUpdateGroupMembers],["/cosmos.group.v1.MsgUpdateGroupMetadata",tx_1$9.MsgUpdateGroupMetadata],["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",tx_1$9.MsgUpdateGroupPolicyAdmin],["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",tx_1$9.MsgUpdateGroupPolicyDecisionPolicy],["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",tx_1$9.MsgUpdateGroupPolicyMetadata],["/cosmos.group.v1.MsgVote",tx_1$9.MsgVote],["/cosmos.group.v1.MsgWithdrawProposal",tx_1$9.MsgWithdrawProposal]];var aminomessages$4={},tx$j={},client$1={},upgrade$1={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt);var Nt=Object.getOwnPropertyDescriptor(nn,Qt);(!Nt||("get"in Nt?!nn.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return nn[Qt]}}),Object.defineProperty(Rt,wt,Nt)}:function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt),Rt[wt]=nn[Qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Rt,nn){Object.defineProperty(Rt,"default",{enumerable:!0,value:nn})}:function(Rt,nn){Rt.default=nn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Rt){if(Rt&&Rt.__esModule)return Rt;var nn={};if(Rt!=null)for(var Qt in Rt)Qt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,Qt)&&b(nn,Rt,Qt);return dt(nn,Rt),nn};Object.defineProperty(d,"__esModule",{value:!0}),d.ModuleVersion=d.CancelSoftwareUpgradeProposal=d.SoftwareUpgradeProposal=d.Plan=d.protobufPackage=void 0;const lt=timestamp$1,ht=any$1,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.upgrade.v1beta1";function kt(){return{name:"",time:void 0,height:mt.Long.ZERO,info:"",upgradedClientState:void 0}}d.Plan={encode(Rt,nn=vt.Writer.create()){return Rt.name!==""&&nn.uint32(10).string(Rt.name),Rt.time!==void 0&<.Timestamp.encode(Rt.time,nn.uint32(18).fork()).ldelim(),Rt.height.isZero()||nn.uint32(24).int64(Rt.height),Rt.info!==""&&nn.uint32(34).string(Rt.info),Rt.upgradedClientState!==void 0&&ht.Any.encode(Rt.upgradedClientState,nn.uint32(42).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=kt();for(;Qt.pos>>3){case 1:Nt.name=Qt.string();break;case 2:Nt.time=lt.Timestamp.decode(Qt,Qt.uint32());break;case 3:Nt.height=Qt.int64();break;case 4:Nt.info=Qt.string();break;case 5:Nt.upgradedClientState=ht.Any.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{name:(0,mt.isSet)(Rt.name)?String(Rt.name):"",time:(0,mt.isSet)(Rt.time)?(0,mt.fromJsonTimestamp)(Rt.time):void 0,height:(0,mt.isSet)(Rt.height)?mt.Long.fromValue(Rt.height):mt.Long.ZERO,info:(0,mt.isSet)(Rt.info)?String(Rt.info):"",upgradedClientState:(0,mt.isSet)(Rt.upgradedClientState)?ht.Any.fromJSON(Rt.upgradedClientState):void 0}},toJSON(Rt){const nn={};return Rt.name!==void 0&&(nn.name=Rt.name),Rt.time!==void 0&&(nn.time=(0,mt.fromTimestamp)(Rt.time).toISOString()),Rt.height!==void 0&&(nn.height=(Rt.height||mt.Long.ZERO).toString()),Rt.info!==void 0&&(nn.info=Rt.info),Rt.upgradedClientState!==void 0&&(nn.upgradedClientState=Rt.upgradedClientState?ht.Any.toJSON(Rt.upgradedClientState):void 0),nn},fromPartial(Rt){const nn=kt();return nn.name=Rt.name??"",nn.time=Rt.time!==void 0&&Rt.time!==null?lt.Timestamp.fromPartial(Rt.time):void 0,nn.height=Rt.height!==void 0&&Rt.height!==null?mt.Long.fromValue(Rt.height):mt.Long.ZERO,nn.info=Rt.info??"",nn.upgradedClientState=Rt.upgradedClientState!==void 0&&Rt.upgradedClientState!==null?ht.Any.fromPartial(Rt.upgradedClientState):void 0,nn}};function Pt(){return{title:"",description:"",plan:void 0}}d.SoftwareUpgradeProposal={encode(Rt,nn=vt.Writer.create()){return Rt.title!==""&&nn.uint32(10).string(Rt.title),Rt.description!==""&&nn.uint32(18).string(Rt.description),Rt.plan!==void 0&&d.Plan.encode(Rt.plan,nn.uint32(26).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Pt();for(;Qt.pos>>3){case 1:Nt.title=Qt.string();break;case 2:Nt.description=Qt.string();break;case 3:Nt.plan=d.Plan.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{title:(0,mt.isSet)(Rt.title)?String(Rt.title):"",description:(0,mt.isSet)(Rt.description)?String(Rt.description):"",plan:(0,mt.isSet)(Rt.plan)?d.Plan.fromJSON(Rt.plan):void 0}},toJSON(Rt){const nn={};return Rt.title!==void 0&&(nn.title=Rt.title),Rt.description!==void 0&&(nn.description=Rt.description),Rt.plan!==void 0&&(nn.plan=Rt.plan?d.Plan.toJSON(Rt.plan):void 0),nn},fromPartial(Rt){const nn=Pt();return nn.title=Rt.title??"",nn.description=Rt.description??"",nn.plan=Rt.plan!==void 0&&Rt.plan!==null?d.Plan.fromPartial(Rt.plan):void 0,nn}};function Jt(){return{title:"",description:""}}d.CancelSoftwareUpgradeProposal={encode(Rt,nn=vt.Writer.create()){return Rt.title!==""&&nn.uint32(10).string(Rt.title),Rt.description!==""&&nn.uint32(18).string(Rt.description),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Jt();for(;Qt.pos>>3){case 1:Nt.title=Qt.string();break;case 2:Nt.description=Qt.string();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{title:(0,mt.isSet)(Rt.title)?String(Rt.title):"",description:(0,mt.isSet)(Rt.description)?String(Rt.description):""}},toJSON(Rt){const nn={};return Rt.title!==void 0&&(nn.title=Rt.title),Rt.description!==void 0&&(nn.description=Rt.description),nn},fromPartial(Rt){const nn=Jt();return nn.title=Rt.title??"",nn.description=Rt.description??"",nn}};function Zt(){return{name:"",version:mt.Long.UZERO}}d.ModuleVersion={encode(Rt,nn=vt.Writer.create()){return Rt.name!==""&&nn.uint32(10).string(Rt.name),Rt.version.isZero()||nn.uint32(16).uint64(Rt.version),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Zt();for(;Qt.pos>>3){case 1:Nt.name=Qt.string();break;case 2:Nt.version=Qt.uint64();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{name:(0,mt.isSet)(Rt.name)?String(Rt.name):"",version:(0,mt.isSet)(Rt.version)?mt.Long.fromValue(Rt.version):mt.Long.UZERO}},toJSON(Rt){const nn={};return Rt.name!==void 0&&(nn.name=Rt.name),Rt.version!==void 0&&(nn.version=(Rt.version||mt.Long.UZERO).toString()),nn},fromPartial(Rt){const nn=Zt();return nn.name=Rt.name??"",nn.version=Rt.version!==void 0&&Rt.version!==null?mt.Long.fromValue(Rt.version):mt.Long.UZERO,nn}}})(upgrade$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.Params=d.Height=d.UpgradeProposal=d.ClientUpdateProposal=d.ClientConsensusStates=d.ConsensusStateWithHeight=d.IdentifiedClientState=d.protobufPackage=void 0;const lt=any$1,ht=upgrade$1,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="ibc.core.client.v1";function kt(){return{clientId:"",clientState:void 0}}d.IdentifiedClientState={encode(wt,Nt=vt.Writer.create()){return wt.clientId!==""&&Nt.uint32(10).string(wt.clientId),wt.clientState!==void 0&<.Any.encode(wt.clientState,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.clientId=xt.string();break;case 2:Bt.clientState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{clientId:(0,mt.isSet)(wt.clientId)?String(wt.clientId):"",clientState:(0,mt.isSet)(wt.clientState)?lt.Any.fromJSON(wt.clientState):void 0}},toJSON(wt){const Nt={};return wt.clientId!==void 0&&(Nt.clientId=wt.clientId),wt.clientState!==void 0&&(Nt.clientState=wt.clientState?lt.Any.toJSON(wt.clientState):void 0),Nt},fromPartial(wt){const Nt=kt();return Nt.clientId=wt.clientId??"",Nt.clientState=wt.clientState!==void 0&&wt.clientState!==null?lt.Any.fromPartial(wt.clientState):void 0,Nt}};function Pt(){return{height:void 0,consensusState:void 0}}d.ConsensusStateWithHeight={encode(wt,Nt=vt.Writer.create()){return wt.height!==void 0&&d.Height.encode(wt.height,Nt.uint32(10).fork()).ldelim(),wt.consensusState!==void 0&<.Any.encode(wt.consensusState,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.height=d.Height.decode(xt,xt.uint32());break;case 2:Bt.consensusState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{height:(0,mt.isSet)(wt.height)?d.Height.fromJSON(wt.height):void 0,consensusState:(0,mt.isSet)(wt.consensusState)?lt.Any.fromJSON(wt.consensusState):void 0}},toJSON(wt){const Nt={};return wt.height!==void 0&&(Nt.height=wt.height?d.Height.toJSON(wt.height):void 0),wt.consensusState!==void 0&&(Nt.consensusState=wt.consensusState?lt.Any.toJSON(wt.consensusState):void 0),Nt},fromPartial(wt){const Nt=Pt();return Nt.height=wt.height!==void 0&&wt.height!==null?d.Height.fromPartial(wt.height):void 0,Nt.consensusState=wt.consensusState!==void 0&&wt.consensusState!==null?lt.Any.fromPartial(wt.consensusState):void 0,Nt}};function Jt(){return{clientId:"",consensusStates:[]}}d.ClientConsensusStates={encode(wt,Nt=vt.Writer.create()){wt.clientId!==""&&Nt.uint32(10).string(wt.clientId);for(const xt of wt.consensusStates)d.ConsensusStateWithHeight.encode(xt,Nt.uint32(18).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.clientId=xt.string();break;case 2:Bt.consensusStates.push(d.ConsensusStateWithHeight.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{clientId:(0,mt.isSet)(wt.clientId)?String(wt.clientId):"",consensusStates:Array.isArray(wt==null?void 0:wt.consensusStates)?wt.consensusStates.map(Nt=>d.ConsensusStateWithHeight.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.clientId!==void 0&&(Nt.clientId=wt.clientId),wt.consensusStates?Nt.consensusStates=wt.consensusStates.map(xt=>xt?d.ConsensusStateWithHeight.toJSON(xt):void 0):Nt.consensusStates=[],Nt},fromPartial(wt){var xt;const Nt=Jt();return Nt.clientId=wt.clientId??"",Nt.consensusStates=((xt=wt.consensusStates)==null?void 0:xt.map(Et=>d.ConsensusStateWithHeight.fromPartial(Et)))||[],Nt}};function Zt(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}d.ClientUpdateProposal={encode(wt,Nt=vt.Writer.create()){return wt.title!==""&&Nt.uint32(10).string(wt.title),wt.description!==""&&Nt.uint32(18).string(wt.description),wt.subjectClientId!==""&&Nt.uint32(26).string(wt.subjectClientId),wt.substituteClientId!==""&&Nt.uint32(34).string(wt.substituteClientId),Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){case 1:Bt.title=xt.string();break;case 2:Bt.description=xt.string();break;case 3:Bt.subjectClientId=xt.string();break;case 4:Bt.substituteClientId=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{title:(0,mt.isSet)(wt.title)?String(wt.title):"",description:(0,mt.isSet)(wt.description)?String(wt.description):"",subjectClientId:(0,mt.isSet)(wt.subjectClientId)?String(wt.subjectClientId):"",substituteClientId:(0,mt.isSet)(wt.substituteClientId)?String(wt.substituteClientId):""}},toJSON(wt){const Nt={};return wt.title!==void 0&&(Nt.title=wt.title),wt.description!==void 0&&(Nt.description=wt.description),wt.subjectClientId!==void 0&&(Nt.subjectClientId=wt.subjectClientId),wt.substituteClientId!==void 0&&(Nt.substituteClientId=wt.substituteClientId),Nt},fromPartial(wt){const Nt=Zt();return Nt.title=wt.title??"",Nt.description=wt.description??"",Nt.subjectClientId=wt.subjectClientId??"",Nt.substituteClientId=wt.substituteClientId??"",Nt}};function Rt(){return{title:"",description:"",plan:void 0,upgradedClientState:void 0}}d.UpgradeProposal={encode(wt,Nt=vt.Writer.create()){return wt.title!==""&&Nt.uint32(10).string(wt.title),wt.description!==""&&Nt.uint32(18).string(wt.description),wt.plan!==void 0&&ht.Plan.encode(wt.plan,Nt.uint32(26).fork()).ldelim(),wt.upgradedClientState!==void 0&<.Any.encode(wt.upgradedClientState,Nt.uint32(34).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.title=xt.string();break;case 2:Bt.description=xt.string();break;case 3:Bt.plan=ht.Plan.decode(xt,xt.uint32());break;case 4:Bt.upgradedClientState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{title:(0,mt.isSet)(wt.title)?String(wt.title):"",description:(0,mt.isSet)(wt.description)?String(wt.description):"",plan:(0,mt.isSet)(wt.plan)?ht.Plan.fromJSON(wt.plan):void 0,upgradedClientState:(0,mt.isSet)(wt.upgradedClientState)?lt.Any.fromJSON(wt.upgradedClientState):void 0}},toJSON(wt){const Nt={};return wt.title!==void 0&&(Nt.title=wt.title),wt.description!==void 0&&(Nt.description=wt.description),wt.plan!==void 0&&(Nt.plan=wt.plan?ht.Plan.toJSON(wt.plan):void 0),wt.upgradedClientState!==void 0&&(Nt.upgradedClientState=wt.upgradedClientState?lt.Any.toJSON(wt.upgradedClientState):void 0),Nt},fromPartial(wt){const Nt=Rt();return Nt.title=wt.title??"",Nt.description=wt.description??"",Nt.plan=wt.plan!==void 0&&wt.plan!==null?ht.Plan.fromPartial(wt.plan):void 0,Nt.upgradedClientState=wt.upgradedClientState!==void 0&&wt.upgradedClientState!==null?lt.Any.fromPartial(wt.upgradedClientState):void 0,Nt}};function nn(){return{revisionNumber:mt.Long.UZERO,revisionHeight:mt.Long.UZERO}}d.Height={encode(wt,Nt=vt.Writer.create()){return wt.revisionNumber.isZero()||Nt.uint32(8).uint64(wt.revisionNumber),wt.revisionHeight.isZero()||Nt.uint32(16).uint64(wt.revisionHeight),Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){case 1:Bt.revisionNumber=xt.uint64();break;case 2:Bt.revisionHeight=xt.uint64();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{revisionNumber:(0,mt.isSet)(wt.revisionNumber)?mt.Long.fromValue(wt.revisionNumber):mt.Long.UZERO,revisionHeight:(0,mt.isSet)(wt.revisionHeight)?mt.Long.fromValue(wt.revisionHeight):mt.Long.UZERO}},toJSON(wt){const Nt={};return wt.revisionNumber!==void 0&&(Nt.revisionNumber=(wt.revisionNumber||mt.Long.UZERO).toString()),wt.revisionHeight!==void 0&&(Nt.revisionHeight=(wt.revisionHeight||mt.Long.UZERO).toString()),Nt},fromPartial(wt){const Nt=nn();return Nt.revisionNumber=wt.revisionNumber!==void 0&&wt.revisionNumber!==null?mt.Long.fromValue(wt.revisionNumber):mt.Long.UZERO,Nt.revisionHeight=wt.revisionHeight!==void 0&&wt.revisionHeight!==null?mt.Long.fromValue(wt.revisionHeight):mt.Long.UZERO,Nt}};function Qt(){return{allowedClients:[]}}d.Params={encode(wt,Nt=vt.Writer.create()){for(const xt of wt.allowedClients)Nt.uint32(10).string(xt);return Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Qt();for(;xt.pos>>3){case 1:Bt.allowedClients.push(xt.string());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{allowedClients:Array.isArray(wt==null?void 0:wt.allowedClients)?wt.allowedClients.map(Nt=>String(Nt)):[]}},toJSON(wt){const Nt={};return wt.allowedClients?Nt.allowedClients=wt.allowedClients.map(xt=>xt):Nt.allowedClients=[],Nt},fromPartial(wt){var xt;const Nt=Qt();return Nt.allowedClients=((xt=wt.allowedClients)==null?void 0:xt.map(Et=>Et))||[],Nt}}})(client$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn);var wt=Object.getOwnPropertyDescriptor(Rt,nn);(!wt||("get"in wt?!Rt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return Rt[nn]}}),Object.defineProperty(Zt,Qt,wt)}:function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn),Zt[Qt]=Rt[nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Zt,Rt){Object.defineProperty(Zt,"default",{enumerable:!0,value:Rt})}:function(Zt,Rt){Zt.default=Rt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Zt){if(Zt&&Zt.__esModule)return Zt;var Rt={};if(Zt!=null)for(var nn in Zt)nn!=="default"&&Object.prototype.hasOwnProperty.call(Zt,nn)&&b(Rt,Zt,nn);return dt(Rt,Zt),Rt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgTransferResponse=d.MsgTransfer=d.protobufPackage=void 0;const lt=coin$3,ht=client$1,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="ibc.applications.transfer.v1";function kt(){return{sourcePort:"",sourceChannel:"",token:void 0,sender:"",receiver:"",timeoutHeight:void 0,timeoutTimestamp:mt.Long.UZERO,memo:""}}d.MsgTransfer={encode(Zt,Rt=vt.Writer.create()){return Zt.sourcePort!==""&&Rt.uint32(10).string(Zt.sourcePort),Zt.sourceChannel!==""&&Rt.uint32(18).string(Zt.sourceChannel),Zt.token!==void 0&<.Coin.encode(Zt.token,Rt.uint32(26).fork()).ldelim(),Zt.sender!==""&&Rt.uint32(34).string(Zt.sender),Zt.receiver!==""&&Rt.uint32(42).string(Zt.receiver),Zt.timeoutHeight!==void 0&&ht.Height.encode(Zt.timeoutHeight,Rt.uint32(50).fork()).ldelim(),Zt.timeoutTimestamp.isZero()||Rt.uint32(56).uint64(Zt.timeoutTimestamp),Zt.memo!==""&&Rt.uint32(66).string(Zt.memo),Rt},decode(Zt,Rt){const nn=Zt instanceof vt.Reader?Zt:new vt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=kt();for(;nn.pos>>3){case 1:wt.sourcePort=nn.string();break;case 2:wt.sourceChannel=nn.string();break;case 3:wt.token=lt.Coin.decode(nn,nn.uint32());break;case 4:wt.sender=nn.string();break;case 5:wt.receiver=nn.string();break;case 6:wt.timeoutHeight=ht.Height.decode(nn,nn.uint32());break;case 7:wt.timeoutTimestamp=nn.uint64();break;case 8:wt.memo=nn.string();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{sourcePort:(0,mt.isSet)(Zt.sourcePort)?String(Zt.sourcePort):"",sourceChannel:(0,mt.isSet)(Zt.sourceChannel)?String(Zt.sourceChannel):"",token:(0,mt.isSet)(Zt.token)?lt.Coin.fromJSON(Zt.token):void 0,sender:(0,mt.isSet)(Zt.sender)?String(Zt.sender):"",receiver:(0,mt.isSet)(Zt.receiver)?String(Zt.receiver):"",timeoutHeight:(0,mt.isSet)(Zt.timeoutHeight)?ht.Height.fromJSON(Zt.timeoutHeight):void 0,timeoutTimestamp:(0,mt.isSet)(Zt.timeoutTimestamp)?mt.Long.fromValue(Zt.timeoutTimestamp):mt.Long.UZERO,memo:(0,mt.isSet)(Zt.memo)?String(Zt.memo):""}},toJSON(Zt){const Rt={};return Zt.sourcePort!==void 0&&(Rt.sourcePort=Zt.sourcePort),Zt.sourceChannel!==void 0&&(Rt.sourceChannel=Zt.sourceChannel),Zt.token!==void 0&&(Rt.token=Zt.token?lt.Coin.toJSON(Zt.token):void 0),Zt.sender!==void 0&&(Rt.sender=Zt.sender),Zt.receiver!==void 0&&(Rt.receiver=Zt.receiver),Zt.timeoutHeight!==void 0&&(Rt.timeoutHeight=Zt.timeoutHeight?ht.Height.toJSON(Zt.timeoutHeight):void 0),Zt.timeoutTimestamp!==void 0&&(Rt.timeoutTimestamp=(Zt.timeoutTimestamp||mt.Long.UZERO).toString()),Zt.memo!==void 0&&(Rt.memo=Zt.memo),Rt},fromPartial(Zt){const Rt=kt();return Rt.sourcePort=Zt.sourcePort??"",Rt.sourceChannel=Zt.sourceChannel??"",Rt.token=Zt.token!==void 0&&Zt.token!==null?lt.Coin.fromPartial(Zt.token):void 0,Rt.sender=Zt.sender??"",Rt.receiver=Zt.receiver??"",Rt.timeoutHeight=Zt.timeoutHeight!==void 0&&Zt.timeoutHeight!==null?ht.Height.fromPartial(Zt.timeoutHeight):void 0,Rt.timeoutTimestamp=Zt.timeoutTimestamp!==void 0&&Zt.timeoutTimestamp!==null?mt.Long.fromValue(Zt.timeoutTimestamp):mt.Long.UZERO,Rt.memo=Zt.memo??"",Rt}};function Pt(){return{sequence:mt.Long.UZERO}}d.MsgTransferResponse={encode(Zt,Rt=vt.Writer.create()){return Zt.sequence.isZero()||Rt.uint32(8).uint64(Zt.sequence),Rt},decode(Zt,Rt){const nn=Zt instanceof vt.Reader?Zt:new vt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Pt();for(;nn.pos>>3){case 1:wt.sequence=nn.uint64();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{sequence:(0,mt.isSet)(Zt.sequence)?mt.Long.fromValue(Zt.sequence):mt.Long.UZERO}},toJSON(Zt){const Rt={};return Zt.sequence!==void 0&&(Rt.sequence=(Zt.sequence||mt.Long.UZERO).toString()),Rt},fromPartial(Zt){const Rt=Pt();return Rt.sequence=Zt.sequence!==void 0&&Zt.sequence!==null?mt.Long.fromValue(Zt.sequence):mt.Long.UZERO,Rt}};class Jt{constructor(Rt){this.rpc=Rt,this.Transfer=this.Transfer.bind(this)}Transfer(Rt){const nn=d.MsgTransfer.encode(Rt).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",nn).then(wt=>d.MsgTransferResponse.decode(new vt.Reader(wt)))}}d.MsgClientImpl=Jt})(tx$j);var __importDefault$u=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(aminomessages$4,"__esModule",{value:!0});aminomessages$4.createIbcAminoConverters=aminomessages$4.isAminoMsgTransfer=void 0;const tx_1$8=tx$j,long_1$h=__importDefault$u(long);function isAminoMsgTransfer(d){return d.type==="cosmos-sdk/MsgTransfer"}aminomessages$4.isAminoMsgTransfer=isAminoMsgTransfer;function omitDefault$2(d){if(typeof d=="string")return d===""?void 0:d;if(typeof d=="number")return d===0?void 0:d;if(long_1$h.default.isLong(d))return d.isZero()?void 0:d;throw new Error(`Got unsupported type '${typeof d}'`)}function createIbcAminoConverters(){return{"/ibc.applications.transfer.v1.MsgTransfer":{aminoType:"cosmos-sdk/MsgTransfer",toAmino:({sourcePort:d,sourceChannel:b,token:dt,sender:ct,receiver:lt,timeoutHeight:ht,timeoutTimestamp:mt,memo:vt})=>{var kt,Pt,Jt,Zt;return{source_port:d,source_channel:b,token:dt,sender:ct,receiver:lt,timeout_height:ht?{revision_height:(kt=omitDefault$2(ht.revisionHeight))==null?void 0:kt.toString(),revision_number:(Pt=omitDefault$2(ht.revisionNumber))==null?void 0:Pt.toString()}:{},timeout_timestamp:(Jt=omitDefault$2(mt))==null?void 0:Jt.toString(),memo:(Zt=omitDefault$2(vt))==null?void 0:Zt.toString()}},fromAmino:({source_port:d,source_channel:b,token:dt,sender:ct,receiver:lt,timeout_height:ht,timeout_timestamp:mt,memo:vt})=>tx_1$8.MsgTransfer.fromPartial({sourcePort:d,sourceChannel:b,token:dt,sender:ct,receiver:lt,timeoutHeight:ht?{revisionHeight:long_1$h.default.fromString(ht.revision_height||"0",!0),revisionNumber:long_1$h.default.fromString(ht.revision_number||"0",!0)}:void 0,timeoutTimestamp:long_1$h.default.fromString(mt||"0",!0),memo:vt??""})}}}aminomessages$4.createIbcAminoConverters=createIbcAminoConverters;var messages$4={},tx$i={},channel={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Tt,Mt,jt,Ht){Ht===void 0&&(Ht=jt);var an=Object.getOwnPropertyDescriptor(Mt,jt);(!an||("get"in an?!Mt.__esModule:an.writable||an.configurable))&&(an={enumerable:!0,get:function(){return Mt[jt]}}),Object.defineProperty(Tt,Ht,an)}:function(Tt,Mt,jt,Ht){Ht===void 0&&(Ht=jt),Tt[Ht]=Mt[jt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Tt,Mt){Object.defineProperty(Tt,"default",{enumerable:!0,value:Mt})}:function(Tt,Mt){Tt.default=Mt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Tt){if(Tt&&Tt.__esModule)return Tt;var Mt={};if(Tt!=null)for(var jt in Tt)jt!=="default"&&Object.prototype.hasOwnProperty.call(Tt,jt)&&b(Mt,Tt,jt);return dt(Mt,Tt),Mt};Object.defineProperty(d,"__esModule",{value:!0}),d.Acknowledgement=d.PacketId=d.PacketState=d.Packet=d.Counterparty=d.IdentifiedChannel=d.Channel=d.orderToJSON=d.orderFromJSON=d.Order=d.stateToJSON=d.stateFromJSON=d.State=d.protobufPackage=void 0;const lt=client$1,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="ibc.core.channel.v1";var vt;(function(Tt){Tt[Tt.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",Tt[Tt.STATE_INIT=1]="STATE_INIT",Tt[Tt.STATE_TRYOPEN=2]="STATE_TRYOPEN",Tt[Tt.STATE_OPEN=3]="STATE_OPEN",Tt[Tt.STATE_CLOSED=4]="STATE_CLOSED",Tt[Tt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vt=d.State||(d.State={}));function kt(Tt){switch(Tt){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return vt.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return vt.STATE_INIT;case 2:case"STATE_TRYOPEN":return vt.STATE_TRYOPEN;case 3:case"STATE_OPEN":return vt.STATE_OPEN;case 4:case"STATE_CLOSED":return vt.STATE_CLOSED;case-1:case"UNRECOGNIZED":default:return vt.UNRECOGNIZED}}d.stateFromJSON=kt;function Pt(Tt){switch(Tt){case vt.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case vt.STATE_INIT:return"STATE_INIT";case vt.STATE_TRYOPEN:return"STATE_TRYOPEN";case vt.STATE_OPEN:return"STATE_OPEN";case vt.STATE_CLOSED:return"STATE_CLOSED";case vt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.stateToJSON=Pt;var Jt;(function(Tt){Tt[Tt.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",Tt[Tt.ORDER_UNORDERED=1]="ORDER_UNORDERED",Tt[Tt.ORDER_ORDERED=2]="ORDER_ORDERED",Tt[Tt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.Order||(d.Order={}));function Zt(Tt){switch(Tt){case 0:case"ORDER_NONE_UNSPECIFIED":return Jt.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return Jt.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return Jt.ORDER_ORDERED;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.orderFromJSON=Zt;function Rt(Tt){switch(Tt){case Jt.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case Jt.ORDER_UNORDERED:return"ORDER_UNORDERED";case Jt.ORDER_ORDERED:return"ORDER_ORDERED";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.orderToJSON=Rt;function nn(){return{state:0,ordering:0,counterparty:void 0,connectionHops:[],version:""}}d.Channel={encode(Tt,Mt=mt.Writer.create()){Tt.state!==0&&Mt.uint32(8).int32(Tt.state),Tt.ordering!==0&&Mt.uint32(16).int32(Tt.ordering),Tt.counterparty!==void 0&&d.Counterparty.encode(Tt.counterparty,Mt.uint32(26).fork()).ldelim();for(const jt of Tt.connectionHops)Mt.uint32(34).string(jt);return Tt.version!==""&&Mt.uint32(42).string(Tt.version),Mt},decode(Tt,Mt){const jt=Tt instanceof mt.Reader?Tt:new mt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=nn();for(;jt.pos>>3){case 1:an.state=jt.int32();break;case 2:an.ordering=jt.int32();break;case 3:an.counterparty=d.Counterparty.decode(jt,jt.uint32());break;case 4:an.connectionHops.push(jt.string());break;case 5:an.version=jt.string();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{state:(0,ht.isSet)(Tt.state)?kt(Tt.state):0,ordering:(0,ht.isSet)(Tt.ordering)?Zt(Tt.ordering):0,counterparty:(0,ht.isSet)(Tt.counterparty)?d.Counterparty.fromJSON(Tt.counterparty):void 0,connectionHops:Array.isArray(Tt==null?void 0:Tt.connectionHops)?Tt.connectionHops.map(Mt=>String(Mt)):[],version:(0,ht.isSet)(Tt.version)?String(Tt.version):""}},toJSON(Tt){const Mt={};return Tt.state!==void 0&&(Mt.state=Pt(Tt.state)),Tt.ordering!==void 0&&(Mt.ordering=Rt(Tt.ordering)),Tt.counterparty!==void 0&&(Mt.counterparty=Tt.counterparty?d.Counterparty.toJSON(Tt.counterparty):void 0),Tt.connectionHops?Mt.connectionHops=Tt.connectionHops.map(jt=>jt):Mt.connectionHops=[],Tt.version!==void 0&&(Mt.version=Tt.version),Mt},fromPartial(Tt){var jt;const Mt=nn();return Mt.state=Tt.state??0,Mt.ordering=Tt.ordering??0,Mt.counterparty=Tt.counterparty!==void 0&&Tt.counterparty!==null?d.Counterparty.fromPartial(Tt.counterparty):void 0,Mt.connectionHops=((jt=Tt.connectionHops)==null?void 0:jt.map(Ht=>Ht))||[],Mt.version=Tt.version??"",Mt}};function Qt(){return{state:0,ordering:0,counterparty:void 0,connectionHops:[],version:"",portId:"",channelId:""}}d.IdentifiedChannel={encode(Tt,Mt=mt.Writer.create()){Tt.state!==0&&Mt.uint32(8).int32(Tt.state),Tt.ordering!==0&&Mt.uint32(16).int32(Tt.ordering),Tt.counterparty!==void 0&&d.Counterparty.encode(Tt.counterparty,Mt.uint32(26).fork()).ldelim();for(const jt of Tt.connectionHops)Mt.uint32(34).string(jt);return Tt.version!==""&&Mt.uint32(42).string(Tt.version),Tt.portId!==""&&Mt.uint32(50).string(Tt.portId),Tt.channelId!==""&&Mt.uint32(58).string(Tt.channelId),Mt},decode(Tt,Mt){const jt=Tt instanceof mt.Reader?Tt:new mt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Qt();for(;jt.pos>>3){case 1:an.state=jt.int32();break;case 2:an.ordering=jt.int32();break;case 3:an.counterparty=d.Counterparty.decode(jt,jt.uint32());break;case 4:an.connectionHops.push(jt.string());break;case 5:an.version=jt.string();break;case 6:an.portId=jt.string();break;case 7:an.channelId=jt.string();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{state:(0,ht.isSet)(Tt.state)?kt(Tt.state):0,ordering:(0,ht.isSet)(Tt.ordering)?Zt(Tt.ordering):0,counterparty:(0,ht.isSet)(Tt.counterparty)?d.Counterparty.fromJSON(Tt.counterparty):void 0,connectionHops:Array.isArray(Tt==null?void 0:Tt.connectionHops)?Tt.connectionHops.map(Mt=>String(Mt)):[],version:(0,ht.isSet)(Tt.version)?String(Tt.version):"",portId:(0,ht.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,ht.isSet)(Tt.channelId)?String(Tt.channelId):""}},toJSON(Tt){const Mt={};return Tt.state!==void 0&&(Mt.state=Pt(Tt.state)),Tt.ordering!==void 0&&(Mt.ordering=Rt(Tt.ordering)),Tt.counterparty!==void 0&&(Mt.counterparty=Tt.counterparty?d.Counterparty.toJSON(Tt.counterparty):void 0),Tt.connectionHops?Mt.connectionHops=Tt.connectionHops.map(jt=>jt):Mt.connectionHops=[],Tt.version!==void 0&&(Mt.version=Tt.version),Tt.portId!==void 0&&(Mt.portId=Tt.portId),Tt.channelId!==void 0&&(Mt.channelId=Tt.channelId),Mt},fromPartial(Tt){var jt;const Mt=Qt();return Mt.state=Tt.state??0,Mt.ordering=Tt.ordering??0,Mt.counterparty=Tt.counterparty!==void 0&&Tt.counterparty!==null?d.Counterparty.fromPartial(Tt.counterparty):void 0,Mt.connectionHops=((jt=Tt.connectionHops)==null?void 0:jt.map(Ht=>Ht))||[],Mt.version=Tt.version??"",Mt.portId=Tt.portId??"",Mt.channelId=Tt.channelId??"",Mt}};function wt(){return{portId:"",channelId:""}}d.Counterparty={encode(Tt,Mt=mt.Writer.create()){return Tt.portId!==""&&Mt.uint32(10).string(Tt.portId),Tt.channelId!==""&&Mt.uint32(18).string(Tt.channelId),Mt},decode(Tt,Mt){const jt=Tt instanceof mt.Reader?Tt:new mt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=wt();for(;jt.pos>>3){case 1:an.portId=jt.string();break;case 2:an.channelId=jt.string();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{portId:(0,ht.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,ht.isSet)(Tt.channelId)?String(Tt.channelId):""}},toJSON(Tt){const Mt={};return Tt.portId!==void 0&&(Mt.portId=Tt.portId),Tt.channelId!==void 0&&(Mt.channelId=Tt.channelId),Mt},fromPartial(Tt){const Mt=wt();return Mt.portId=Tt.portId??"",Mt.channelId=Tt.channelId??"",Mt}};function Nt(){return{sequence:ht.Long.UZERO,sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",data:new Uint8Array,timeoutHeight:void 0,timeoutTimestamp:ht.Long.UZERO}}d.Packet={encode(Tt,Mt=mt.Writer.create()){return Tt.sequence.isZero()||Mt.uint32(8).uint64(Tt.sequence),Tt.sourcePort!==""&&Mt.uint32(18).string(Tt.sourcePort),Tt.sourceChannel!==""&&Mt.uint32(26).string(Tt.sourceChannel),Tt.destinationPort!==""&&Mt.uint32(34).string(Tt.destinationPort),Tt.destinationChannel!==""&&Mt.uint32(42).string(Tt.destinationChannel),Tt.data.length!==0&&Mt.uint32(50).bytes(Tt.data),Tt.timeoutHeight!==void 0&<.Height.encode(Tt.timeoutHeight,Mt.uint32(58).fork()).ldelim(),Tt.timeoutTimestamp.isZero()||Mt.uint32(64).uint64(Tt.timeoutTimestamp),Mt},decode(Tt,Mt){const jt=Tt instanceof mt.Reader?Tt:new mt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Nt();for(;jt.pos>>3){case 1:an.sequence=jt.uint64();break;case 2:an.sourcePort=jt.string();break;case 3:an.sourceChannel=jt.string();break;case 4:an.destinationPort=jt.string();break;case 5:an.destinationChannel=jt.string();break;case 6:an.data=jt.bytes();break;case 7:an.timeoutHeight=lt.Height.decode(jt,jt.uint32());break;case 8:an.timeoutTimestamp=jt.uint64();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{sequence:(0,ht.isSet)(Tt.sequence)?ht.Long.fromValue(Tt.sequence):ht.Long.UZERO,sourcePort:(0,ht.isSet)(Tt.sourcePort)?String(Tt.sourcePort):"",sourceChannel:(0,ht.isSet)(Tt.sourceChannel)?String(Tt.sourceChannel):"",destinationPort:(0,ht.isSet)(Tt.destinationPort)?String(Tt.destinationPort):"",destinationChannel:(0,ht.isSet)(Tt.destinationChannel)?String(Tt.destinationChannel):"",data:(0,ht.isSet)(Tt.data)?(0,ht.bytesFromBase64)(Tt.data):new Uint8Array,timeoutHeight:(0,ht.isSet)(Tt.timeoutHeight)?lt.Height.fromJSON(Tt.timeoutHeight):void 0,timeoutTimestamp:(0,ht.isSet)(Tt.timeoutTimestamp)?ht.Long.fromValue(Tt.timeoutTimestamp):ht.Long.UZERO}},toJSON(Tt){const Mt={};return Tt.sequence!==void 0&&(Mt.sequence=(Tt.sequence||ht.Long.UZERO).toString()),Tt.sourcePort!==void 0&&(Mt.sourcePort=Tt.sourcePort),Tt.sourceChannel!==void 0&&(Mt.sourceChannel=Tt.sourceChannel),Tt.destinationPort!==void 0&&(Mt.destinationPort=Tt.destinationPort),Tt.destinationChannel!==void 0&&(Mt.destinationChannel=Tt.destinationChannel),Tt.data!==void 0&&(Mt.data=(0,ht.base64FromBytes)(Tt.data!==void 0?Tt.data:new Uint8Array)),Tt.timeoutHeight!==void 0&&(Mt.timeoutHeight=Tt.timeoutHeight?lt.Height.toJSON(Tt.timeoutHeight):void 0),Tt.timeoutTimestamp!==void 0&&(Mt.timeoutTimestamp=(Tt.timeoutTimestamp||ht.Long.UZERO).toString()),Mt},fromPartial(Tt){const Mt=Nt();return Mt.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?ht.Long.fromValue(Tt.sequence):ht.Long.UZERO,Mt.sourcePort=Tt.sourcePort??"",Mt.sourceChannel=Tt.sourceChannel??"",Mt.destinationPort=Tt.destinationPort??"",Mt.destinationChannel=Tt.destinationChannel??"",Mt.data=Tt.data??new Uint8Array,Mt.timeoutHeight=Tt.timeoutHeight!==void 0&&Tt.timeoutHeight!==null?lt.Height.fromPartial(Tt.timeoutHeight):void 0,Mt.timeoutTimestamp=Tt.timeoutTimestamp!==void 0&&Tt.timeoutTimestamp!==null?ht.Long.fromValue(Tt.timeoutTimestamp):ht.Long.UZERO,Mt}};function xt(){return{portId:"",channelId:"",sequence:ht.Long.UZERO,data:new Uint8Array}}d.PacketState={encode(Tt,Mt=mt.Writer.create()){return Tt.portId!==""&&Mt.uint32(10).string(Tt.portId),Tt.channelId!==""&&Mt.uint32(18).string(Tt.channelId),Tt.sequence.isZero()||Mt.uint32(24).uint64(Tt.sequence),Tt.data.length!==0&&Mt.uint32(34).bytes(Tt.data),Mt},decode(Tt,Mt){const jt=Tt instanceof mt.Reader?Tt:new mt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=xt();for(;jt.pos>>3){case 1:an.portId=jt.string();break;case 2:an.channelId=jt.string();break;case 3:an.sequence=jt.uint64();break;case 4:an.data=jt.bytes();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{portId:(0,ht.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,ht.isSet)(Tt.channelId)?String(Tt.channelId):"",sequence:(0,ht.isSet)(Tt.sequence)?ht.Long.fromValue(Tt.sequence):ht.Long.UZERO,data:(0,ht.isSet)(Tt.data)?(0,ht.bytesFromBase64)(Tt.data):new Uint8Array}},toJSON(Tt){const Mt={};return Tt.portId!==void 0&&(Mt.portId=Tt.portId),Tt.channelId!==void 0&&(Mt.channelId=Tt.channelId),Tt.sequence!==void 0&&(Mt.sequence=(Tt.sequence||ht.Long.UZERO).toString()),Tt.data!==void 0&&(Mt.data=(0,ht.base64FromBytes)(Tt.data!==void 0?Tt.data:new Uint8Array)),Mt},fromPartial(Tt){const Mt=xt();return Mt.portId=Tt.portId??"",Mt.channelId=Tt.channelId??"",Mt.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?ht.Long.fromValue(Tt.sequence):ht.Long.UZERO,Mt.data=Tt.data??new Uint8Array,Mt}};function Et(){return{portId:"",channelId:"",sequence:ht.Long.UZERO}}d.PacketId={encode(Tt,Mt=mt.Writer.create()){return Tt.portId!==""&&Mt.uint32(10).string(Tt.portId),Tt.channelId!==""&&Mt.uint32(18).string(Tt.channelId),Tt.sequence.isZero()||Mt.uint32(24).uint64(Tt.sequence),Mt},decode(Tt,Mt){const jt=Tt instanceof mt.Reader?Tt:new mt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Et();for(;jt.pos>>3){case 1:an.portId=jt.string();break;case 2:an.channelId=jt.string();break;case 3:an.sequence=jt.uint64();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{portId:(0,ht.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,ht.isSet)(Tt.channelId)?String(Tt.channelId):"",sequence:(0,ht.isSet)(Tt.sequence)?ht.Long.fromValue(Tt.sequence):ht.Long.UZERO}},toJSON(Tt){const Mt={};return Tt.portId!==void 0&&(Mt.portId=Tt.portId),Tt.channelId!==void 0&&(Mt.channelId=Tt.channelId),Tt.sequence!==void 0&&(Mt.sequence=(Tt.sequence||ht.Long.UZERO).toString()),Mt},fromPartial(Tt){const Mt=Et();return Mt.portId=Tt.portId??"",Mt.channelId=Tt.channelId??"",Mt.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?ht.Long.fromValue(Tt.sequence):ht.Long.UZERO,Mt}};function Bt(){return{result:void 0,error:void 0}}d.Acknowledgement={encode(Tt,Mt=mt.Writer.create()){return Tt.result!==void 0&&Mt.uint32(170).bytes(Tt.result),Tt.error!==void 0&&Mt.uint32(178).string(Tt.error),Mt},decode(Tt,Mt){const jt=Tt instanceof mt.Reader?Tt:new mt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Bt();for(;jt.pos>>3){case 21:an.result=jt.bytes();break;case 22:an.error=jt.string();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{result:(0,ht.isSet)(Tt.result)?(0,ht.bytesFromBase64)(Tt.result):void 0,error:(0,ht.isSet)(Tt.error)?String(Tt.error):void 0}},toJSON(Tt){const Mt={};return Tt.result!==void 0&&(Mt.result=Tt.result!==void 0?(0,ht.base64FromBytes)(Tt.result):void 0),Tt.error!==void 0&&(Mt.error=Tt.error),Mt},fromPartial(Tt){const Mt=Bt();return Mt.result=Tt.result??void 0,Mt.error=Tt.error??void 0,Mt}}})(channel);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ut,Vt,qt,fn){fn===void 0&&(fn=qt);var dn=Object.getOwnPropertyDescriptor(Vt,qt);(!dn||("get"in dn?!Vt.__esModule:dn.writable||dn.configurable))&&(dn={enumerable:!0,get:function(){return Vt[qt]}}),Object.defineProperty(Ut,fn,dn)}:function(Ut,Vt,qt,fn){fn===void 0&&(fn=qt),Ut[fn]=Vt[qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Ut,Vt){Object.defineProperty(Ut,"default",{enumerable:!0,value:Vt})}:function(Ut,Vt){Ut.default=Vt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Ut){if(Ut&&Ut.__esModule)return Ut;var Vt={};if(Ut!=null)for(var qt in Ut)qt!=="default"&&Object.prototype.hasOwnProperty.call(Ut,qt)&&b(Vt,Ut,qt);return dt(Vt,Ut),Vt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgAcknowledgementResponse=d.MsgAcknowledgement=d.MsgTimeoutOnCloseResponse=d.MsgTimeoutOnClose=d.MsgTimeoutResponse=d.MsgTimeout=d.MsgRecvPacketResponse=d.MsgRecvPacket=d.MsgChannelCloseConfirmResponse=d.MsgChannelCloseConfirm=d.MsgChannelCloseInitResponse=d.MsgChannelCloseInit=d.MsgChannelOpenConfirmResponse=d.MsgChannelOpenConfirm=d.MsgChannelOpenAckResponse=d.MsgChannelOpenAck=d.MsgChannelOpenTryResponse=d.MsgChannelOpenTry=d.MsgChannelOpenInitResponse=d.MsgChannelOpenInit=d.responseResultTypeToJSON=d.responseResultTypeFromJSON=d.ResponseResultType=d.protobufPackage=void 0;const lt=channel,ht=client$1,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="ibc.core.channel.v1";var kt;(function(Ut){Ut[Ut.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",Ut[Ut.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",Ut[Ut.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",Ut[Ut.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kt=d.ResponseResultType||(d.ResponseResultType={}));function Pt(Ut){switch(Ut){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return kt.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return kt.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return kt.RESPONSE_RESULT_TYPE_SUCCESS;case-1:case"UNRECOGNIZED":default:return kt.UNRECOGNIZED}}d.responseResultTypeFromJSON=Pt;function Jt(Ut){switch(Ut){case kt.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case kt.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case kt.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";case kt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.responseResultTypeToJSON=Jt;function Zt(){return{portId:"",channel:void 0,signer:""}}d.MsgChannelOpenInit={encode(Ut,Vt=vt.Writer.create()){return Ut.portId!==""&&Vt.uint32(10).string(Ut.portId),Ut.channel!==void 0&<.Channel.encode(Ut.channel,Vt.uint32(18).fork()).ldelim(),Ut.signer!==""&&Vt.uint32(26).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Zt();for(;qt.pos>>3){case 1:dn.portId=qt.string();break;case 2:dn.channel=lt.Channel.decode(qt,qt.uint32());break;case 3:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{portId:(0,mt.isSet)(Ut.portId)?String(Ut.portId):"",channel:(0,mt.isSet)(Ut.channel)?lt.Channel.fromJSON(Ut.channel):void 0,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.portId!==void 0&&(Vt.portId=Ut.portId),Ut.channel!==void 0&&(Vt.channel=Ut.channel?lt.Channel.toJSON(Ut.channel):void 0),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=Zt();return Vt.portId=Ut.portId??"",Vt.channel=Ut.channel!==void 0&&Ut.channel!==null?lt.Channel.fromPartial(Ut.channel):void 0,Vt.signer=Ut.signer??"",Vt}};function Rt(){return{channelId:"",version:""}}d.MsgChannelOpenInitResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.channelId!==""&&Vt.uint32(10).string(Ut.channelId),Ut.version!==""&&Vt.uint32(18).string(Ut.version),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Rt();for(;qt.pos>>3){case 1:dn.channelId=qt.string();break;case 2:dn.version=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{channelId:(0,mt.isSet)(Ut.channelId)?String(Ut.channelId):"",version:(0,mt.isSet)(Ut.version)?String(Ut.version):""}},toJSON(Ut){const Vt={};return Ut.channelId!==void 0&&(Vt.channelId=Ut.channelId),Ut.version!==void 0&&(Vt.version=Ut.version),Vt},fromPartial(Ut){const Vt=Rt();return Vt.channelId=Ut.channelId??"",Vt.version=Ut.version??"",Vt}};function nn(){return{portId:"",previousChannelId:"",channel:void 0,counterpartyVersion:"",proofInit:new Uint8Array,proofHeight:void 0,signer:""}}d.MsgChannelOpenTry={encode(Ut,Vt=vt.Writer.create()){return Ut.portId!==""&&Vt.uint32(10).string(Ut.portId),Ut.previousChannelId!==""&&Vt.uint32(18).string(Ut.previousChannelId),Ut.channel!==void 0&<.Channel.encode(Ut.channel,Vt.uint32(26).fork()).ldelim(),Ut.counterpartyVersion!==""&&Vt.uint32(34).string(Ut.counterpartyVersion),Ut.proofInit.length!==0&&Vt.uint32(42).bytes(Ut.proofInit),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(50).fork()).ldelim(),Ut.signer!==""&&Vt.uint32(58).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=nn();for(;qt.pos>>3){case 1:dn.portId=qt.string();break;case 2:dn.previousChannelId=qt.string();break;case 3:dn.channel=lt.Channel.decode(qt,qt.uint32());break;case 4:dn.counterpartyVersion=qt.string();break;case 5:dn.proofInit=qt.bytes();break;case 6:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 7:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{portId:(0,mt.isSet)(Ut.portId)?String(Ut.portId):"",previousChannelId:(0,mt.isSet)(Ut.previousChannelId)?String(Ut.previousChannelId):"",channel:(0,mt.isSet)(Ut.channel)?lt.Channel.fromJSON(Ut.channel):void 0,counterpartyVersion:(0,mt.isSet)(Ut.counterpartyVersion)?String(Ut.counterpartyVersion):"",proofInit:(0,mt.isSet)(Ut.proofInit)?(0,mt.bytesFromBase64)(Ut.proofInit):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.portId!==void 0&&(Vt.portId=Ut.portId),Ut.previousChannelId!==void 0&&(Vt.previousChannelId=Ut.previousChannelId),Ut.channel!==void 0&&(Vt.channel=Ut.channel?lt.Channel.toJSON(Ut.channel):void 0),Ut.counterpartyVersion!==void 0&&(Vt.counterpartyVersion=Ut.counterpartyVersion),Ut.proofInit!==void 0&&(Vt.proofInit=(0,mt.base64FromBytes)(Ut.proofInit!==void 0?Ut.proofInit:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=nn();return Vt.portId=Ut.portId??"",Vt.previousChannelId=Ut.previousChannelId??"",Vt.channel=Ut.channel!==void 0&&Ut.channel!==null?lt.Channel.fromPartial(Ut.channel):void 0,Vt.counterpartyVersion=Ut.counterpartyVersion??"",Vt.proofInit=Ut.proofInit??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.signer=Ut.signer??"",Vt}};function Qt(){return{version:""}}d.MsgChannelOpenTryResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.version!==""&&Vt.uint32(10).string(Ut.version),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Qt();for(;qt.pos>>3){case 1:dn.version=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{version:(0,mt.isSet)(Ut.version)?String(Ut.version):""}},toJSON(Ut){const Vt={};return Ut.version!==void 0&&(Vt.version=Ut.version),Vt},fromPartial(Ut){const Vt=Qt();return Vt.version=Ut.version??"",Vt}};function wt(){return{portId:"",channelId:"",counterpartyChannelId:"",counterpartyVersion:"",proofTry:new Uint8Array,proofHeight:void 0,signer:""}}d.MsgChannelOpenAck={encode(Ut,Vt=vt.Writer.create()){return Ut.portId!==""&&Vt.uint32(10).string(Ut.portId),Ut.channelId!==""&&Vt.uint32(18).string(Ut.channelId),Ut.counterpartyChannelId!==""&&Vt.uint32(26).string(Ut.counterpartyChannelId),Ut.counterpartyVersion!==""&&Vt.uint32(34).string(Ut.counterpartyVersion),Ut.proofTry.length!==0&&Vt.uint32(42).bytes(Ut.proofTry),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(50).fork()).ldelim(),Ut.signer!==""&&Vt.uint32(58).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=wt();for(;qt.pos>>3){case 1:dn.portId=qt.string();break;case 2:dn.channelId=qt.string();break;case 3:dn.counterpartyChannelId=qt.string();break;case 4:dn.counterpartyVersion=qt.string();break;case 5:dn.proofTry=qt.bytes();break;case 6:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 7:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{portId:(0,mt.isSet)(Ut.portId)?String(Ut.portId):"",channelId:(0,mt.isSet)(Ut.channelId)?String(Ut.channelId):"",counterpartyChannelId:(0,mt.isSet)(Ut.counterpartyChannelId)?String(Ut.counterpartyChannelId):"",counterpartyVersion:(0,mt.isSet)(Ut.counterpartyVersion)?String(Ut.counterpartyVersion):"",proofTry:(0,mt.isSet)(Ut.proofTry)?(0,mt.bytesFromBase64)(Ut.proofTry):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.portId!==void 0&&(Vt.portId=Ut.portId),Ut.channelId!==void 0&&(Vt.channelId=Ut.channelId),Ut.counterpartyChannelId!==void 0&&(Vt.counterpartyChannelId=Ut.counterpartyChannelId),Ut.counterpartyVersion!==void 0&&(Vt.counterpartyVersion=Ut.counterpartyVersion),Ut.proofTry!==void 0&&(Vt.proofTry=(0,mt.base64FromBytes)(Ut.proofTry!==void 0?Ut.proofTry:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=wt();return Vt.portId=Ut.portId??"",Vt.channelId=Ut.channelId??"",Vt.counterpartyChannelId=Ut.counterpartyChannelId??"",Vt.counterpartyVersion=Ut.counterpartyVersion??"",Vt.proofTry=Ut.proofTry??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.signer=Ut.signer??"",Vt}};function Nt(){return{}}d.MsgChannelOpenAckResponse={encode(Ut,Vt=vt.Writer.create()){return Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Nt();for(;qt.pos>>3){default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{}},toJSON(Ut){return{}},fromPartial(Ut){return Nt()}};function xt(){return{portId:"",channelId:"",proofAck:new Uint8Array,proofHeight:void 0,signer:""}}d.MsgChannelOpenConfirm={encode(Ut,Vt=vt.Writer.create()){return Ut.portId!==""&&Vt.uint32(10).string(Ut.portId),Ut.channelId!==""&&Vt.uint32(18).string(Ut.channelId),Ut.proofAck.length!==0&&Vt.uint32(26).bytes(Ut.proofAck),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(34).fork()).ldelim(),Ut.signer!==""&&Vt.uint32(42).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=xt();for(;qt.pos>>3){case 1:dn.portId=qt.string();break;case 2:dn.channelId=qt.string();break;case 3:dn.proofAck=qt.bytes();break;case 4:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 5:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{portId:(0,mt.isSet)(Ut.portId)?String(Ut.portId):"",channelId:(0,mt.isSet)(Ut.channelId)?String(Ut.channelId):"",proofAck:(0,mt.isSet)(Ut.proofAck)?(0,mt.bytesFromBase64)(Ut.proofAck):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.portId!==void 0&&(Vt.portId=Ut.portId),Ut.channelId!==void 0&&(Vt.channelId=Ut.channelId),Ut.proofAck!==void 0&&(Vt.proofAck=(0,mt.base64FromBytes)(Ut.proofAck!==void 0?Ut.proofAck:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=xt();return Vt.portId=Ut.portId??"",Vt.channelId=Ut.channelId??"",Vt.proofAck=Ut.proofAck??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.signer=Ut.signer??"",Vt}};function Et(){return{}}d.MsgChannelOpenConfirmResponse={encode(Ut,Vt=vt.Writer.create()){return Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Et();for(;qt.pos>>3){default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{}},toJSON(Ut){return{}},fromPartial(Ut){return Et()}};function Bt(){return{portId:"",channelId:"",signer:""}}d.MsgChannelCloseInit={encode(Ut,Vt=vt.Writer.create()){return Ut.portId!==""&&Vt.uint32(10).string(Ut.portId),Ut.channelId!==""&&Vt.uint32(18).string(Ut.channelId),Ut.signer!==""&&Vt.uint32(26).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Bt();for(;qt.pos>>3){case 1:dn.portId=qt.string();break;case 2:dn.channelId=qt.string();break;case 3:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{portId:(0,mt.isSet)(Ut.portId)?String(Ut.portId):"",channelId:(0,mt.isSet)(Ut.channelId)?String(Ut.channelId):"",signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.portId!==void 0&&(Vt.portId=Ut.portId),Ut.channelId!==void 0&&(Vt.channelId=Ut.channelId),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=Bt();return Vt.portId=Ut.portId??"",Vt.channelId=Ut.channelId??"",Vt.signer=Ut.signer??"",Vt}};function Tt(){return{}}d.MsgChannelCloseInitResponse={encode(Ut,Vt=vt.Writer.create()){return Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Tt();for(;qt.pos>>3){default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{}},toJSON(Ut){return{}},fromPartial(Ut){return Tt()}};function Mt(){return{portId:"",channelId:"",proofInit:new Uint8Array,proofHeight:void 0,signer:""}}d.MsgChannelCloseConfirm={encode(Ut,Vt=vt.Writer.create()){return Ut.portId!==""&&Vt.uint32(10).string(Ut.portId),Ut.channelId!==""&&Vt.uint32(18).string(Ut.channelId),Ut.proofInit.length!==0&&Vt.uint32(26).bytes(Ut.proofInit),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(34).fork()).ldelim(),Ut.signer!==""&&Vt.uint32(42).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Mt();for(;qt.pos>>3){case 1:dn.portId=qt.string();break;case 2:dn.channelId=qt.string();break;case 3:dn.proofInit=qt.bytes();break;case 4:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 5:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{portId:(0,mt.isSet)(Ut.portId)?String(Ut.portId):"",channelId:(0,mt.isSet)(Ut.channelId)?String(Ut.channelId):"",proofInit:(0,mt.isSet)(Ut.proofInit)?(0,mt.bytesFromBase64)(Ut.proofInit):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.portId!==void 0&&(Vt.portId=Ut.portId),Ut.channelId!==void 0&&(Vt.channelId=Ut.channelId),Ut.proofInit!==void 0&&(Vt.proofInit=(0,mt.base64FromBytes)(Ut.proofInit!==void 0?Ut.proofInit:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=Mt();return Vt.portId=Ut.portId??"",Vt.channelId=Ut.channelId??"",Vt.proofInit=Ut.proofInit??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.signer=Ut.signer??"",Vt}};function jt(){return{}}d.MsgChannelCloseConfirmResponse={encode(Ut,Vt=vt.Writer.create()){return Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=jt();for(;qt.pos>>3){default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{}},toJSON(Ut){return{}},fromPartial(Ut){return jt()}};function Ht(){return{packet:void 0,proofCommitment:new Uint8Array,proofHeight:void 0,signer:""}}d.MsgRecvPacket={encode(Ut,Vt=vt.Writer.create()){return Ut.packet!==void 0&<.Packet.encode(Ut.packet,Vt.uint32(10).fork()).ldelim(),Ut.proofCommitment.length!==0&&Vt.uint32(18).bytes(Ut.proofCommitment),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(26).fork()).ldelim(),Ut.signer!==""&&Vt.uint32(34).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Ht();for(;qt.pos>>3){case 1:dn.packet=lt.Packet.decode(qt,qt.uint32());break;case 2:dn.proofCommitment=qt.bytes();break;case 3:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 4:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{packet:(0,mt.isSet)(Ut.packet)?lt.Packet.fromJSON(Ut.packet):void 0,proofCommitment:(0,mt.isSet)(Ut.proofCommitment)?(0,mt.bytesFromBase64)(Ut.proofCommitment):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.packet!==void 0&&(Vt.packet=Ut.packet?lt.Packet.toJSON(Ut.packet):void 0),Ut.proofCommitment!==void 0&&(Vt.proofCommitment=(0,mt.base64FromBytes)(Ut.proofCommitment!==void 0?Ut.proofCommitment:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=Ht();return Vt.packet=Ut.packet!==void 0&&Ut.packet!==null?lt.Packet.fromPartial(Ut.packet):void 0,Vt.proofCommitment=Ut.proofCommitment??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.signer=Ut.signer??"",Vt}};function an(){return{result:0}}d.MsgRecvPacketResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.result!==0&&Vt.uint32(8).int32(Ut.result),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=an();for(;qt.pos>>3){case 1:dn.result=qt.int32();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{result:(0,mt.isSet)(Ut.result)?Pt(Ut.result):0}},toJSON(Ut){const Vt={};return Ut.result!==void 0&&(Vt.result=Jt(Ut.result)),Vt},fromPartial(Ut){const Vt=an();return Vt.result=Ut.result??0,Vt}};function yt(){return{packet:void 0,proofUnreceived:new Uint8Array,proofHeight:void 0,nextSequenceRecv:mt.Long.UZERO,signer:""}}d.MsgTimeout={encode(Ut,Vt=vt.Writer.create()){return Ut.packet!==void 0&<.Packet.encode(Ut.packet,Vt.uint32(10).fork()).ldelim(),Ut.proofUnreceived.length!==0&&Vt.uint32(18).bytes(Ut.proofUnreceived),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(26).fork()).ldelim(),Ut.nextSequenceRecv.isZero()||Vt.uint32(32).uint64(Ut.nextSequenceRecv),Ut.signer!==""&&Vt.uint32(42).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=yt();for(;qt.pos>>3){case 1:dn.packet=lt.Packet.decode(qt,qt.uint32());break;case 2:dn.proofUnreceived=qt.bytes();break;case 3:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 4:dn.nextSequenceRecv=qt.uint64();break;case 5:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{packet:(0,mt.isSet)(Ut.packet)?lt.Packet.fromJSON(Ut.packet):void 0,proofUnreceived:(0,mt.isSet)(Ut.proofUnreceived)?(0,mt.bytesFromBase64)(Ut.proofUnreceived):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,nextSequenceRecv:(0,mt.isSet)(Ut.nextSequenceRecv)?mt.Long.fromValue(Ut.nextSequenceRecv):mt.Long.UZERO,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.packet!==void 0&&(Vt.packet=Ut.packet?lt.Packet.toJSON(Ut.packet):void 0),Ut.proofUnreceived!==void 0&&(Vt.proofUnreceived=(0,mt.base64FromBytes)(Ut.proofUnreceived!==void 0?Ut.proofUnreceived:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.nextSequenceRecv!==void 0&&(Vt.nextSequenceRecv=(Ut.nextSequenceRecv||mt.Long.UZERO).toString()),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=yt();return Vt.packet=Ut.packet!==void 0&&Ut.packet!==null?lt.Packet.fromPartial(Ut.packet):void 0,Vt.proofUnreceived=Ut.proofUnreceived??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.nextSequenceRecv=Ut.nextSequenceRecv!==void 0&&Ut.nextSequenceRecv!==null?mt.Long.fromValue(Ut.nextSequenceRecv):mt.Long.UZERO,Vt.signer=Ut.signer??"",Vt}};function $t(){return{result:0}}d.MsgTimeoutResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.result!==0&&Vt.uint32(8).int32(Ut.result),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=$t();for(;qt.pos>>3){case 1:dn.result=qt.int32();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{result:(0,mt.isSet)(Ut.result)?Pt(Ut.result):0}},toJSON(Ut){const Vt={};return Ut.result!==void 0&&(Vt.result=Jt(Ut.result)),Vt},fromPartial(Ut){const Vt=$t();return Vt.result=Ut.result??0,Vt}};function Yt(){return{packet:void 0,proofUnreceived:new Uint8Array,proofClose:new Uint8Array,proofHeight:void 0,nextSequenceRecv:mt.Long.UZERO,signer:""}}d.MsgTimeoutOnClose={encode(Ut,Vt=vt.Writer.create()){return Ut.packet!==void 0&<.Packet.encode(Ut.packet,Vt.uint32(10).fork()).ldelim(),Ut.proofUnreceived.length!==0&&Vt.uint32(18).bytes(Ut.proofUnreceived),Ut.proofClose.length!==0&&Vt.uint32(26).bytes(Ut.proofClose),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(34).fork()).ldelim(),Ut.nextSequenceRecv.isZero()||Vt.uint32(40).uint64(Ut.nextSequenceRecv),Ut.signer!==""&&Vt.uint32(50).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Yt();for(;qt.pos>>3){case 1:dn.packet=lt.Packet.decode(qt,qt.uint32());break;case 2:dn.proofUnreceived=qt.bytes();break;case 3:dn.proofClose=qt.bytes();break;case 4:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 5:dn.nextSequenceRecv=qt.uint64();break;case 6:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{packet:(0,mt.isSet)(Ut.packet)?lt.Packet.fromJSON(Ut.packet):void 0,proofUnreceived:(0,mt.isSet)(Ut.proofUnreceived)?(0,mt.bytesFromBase64)(Ut.proofUnreceived):new Uint8Array,proofClose:(0,mt.isSet)(Ut.proofClose)?(0,mt.bytesFromBase64)(Ut.proofClose):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,nextSequenceRecv:(0,mt.isSet)(Ut.nextSequenceRecv)?mt.Long.fromValue(Ut.nextSequenceRecv):mt.Long.UZERO,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.packet!==void 0&&(Vt.packet=Ut.packet?lt.Packet.toJSON(Ut.packet):void 0),Ut.proofUnreceived!==void 0&&(Vt.proofUnreceived=(0,mt.base64FromBytes)(Ut.proofUnreceived!==void 0?Ut.proofUnreceived:new Uint8Array)),Ut.proofClose!==void 0&&(Vt.proofClose=(0,mt.base64FromBytes)(Ut.proofClose!==void 0?Ut.proofClose:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.nextSequenceRecv!==void 0&&(Vt.nextSequenceRecv=(Ut.nextSequenceRecv||mt.Long.UZERO).toString()),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=Yt();return Vt.packet=Ut.packet!==void 0&&Ut.packet!==null?lt.Packet.fromPartial(Ut.packet):void 0,Vt.proofUnreceived=Ut.proofUnreceived??new Uint8Array,Vt.proofClose=Ut.proofClose??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.nextSequenceRecv=Ut.nextSequenceRecv!==void 0&&Ut.nextSequenceRecv!==null?mt.Long.fromValue(Ut.nextSequenceRecv):mt.Long.UZERO,Vt.signer=Ut.signer??"",Vt}};function Kt(){return{result:0}}d.MsgTimeoutOnCloseResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.result!==0&&Vt.uint32(8).int32(Ut.result),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Kt();for(;qt.pos>>3){case 1:dn.result=qt.int32();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{result:(0,mt.isSet)(Ut.result)?Pt(Ut.result):0}},toJSON(Ut){const Vt={};return Ut.result!==void 0&&(Vt.result=Jt(Ut.result)),Vt},fromPartial(Ut){const Vt=Kt();return Vt.result=Ut.result??0,Vt}};function St(){return{packet:void 0,acknowledgement:new Uint8Array,proofAcked:new Uint8Array,proofHeight:void 0,signer:""}}d.MsgAcknowledgement={encode(Ut,Vt=vt.Writer.create()){return Ut.packet!==void 0&<.Packet.encode(Ut.packet,Vt.uint32(10).fork()).ldelim(),Ut.acknowledgement.length!==0&&Vt.uint32(18).bytes(Ut.acknowledgement),Ut.proofAcked.length!==0&&Vt.uint32(26).bytes(Ut.proofAcked),Ut.proofHeight!==void 0&&ht.Height.encode(Ut.proofHeight,Vt.uint32(34).fork()).ldelim(),Ut.signer!==""&&Vt.uint32(42).string(Ut.signer),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=St();for(;qt.pos>>3){case 1:dn.packet=lt.Packet.decode(qt,qt.uint32());break;case 2:dn.acknowledgement=qt.bytes();break;case 3:dn.proofAcked=qt.bytes();break;case 4:dn.proofHeight=ht.Height.decode(qt,qt.uint32());break;case 5:dn.signer=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{packet:(0,mt.isSet)(Ut.packet)?lt.Packet.fromJSON(Ut.packet):void 0,acknowledgement:(0,mt.isSet)(Ut.acknowledgement)?(0,mt.bytesFromBase64)(Ut.acknowledgement):new Uint8Array,proofAcked:(0,mt.isSet)(Ut.proofAcked)?(0,mt.bytesFromBase64)(Ut.proofAcked):new Uint8Array,proofHeight:(0,mt.isSet)(Ut.proofHeight)?ht.Height.fromJSON(Ut.proofHeight):void 0,signer:(0,mt.isSet)(Ut.signer)?String(Ut.signer):""}},toJSON(Ut){const Vt={};return Ut.packet!==void 0&&(Vt.packet=Ut.packet?lt.Packet.toJSON(Ut.packet):void 0),Ut.acknowledgement!==void 0&&(Vt.acknowledgement=(0,mt.base64FromBytes)(Ut.acknowledgement!==void 0?Ut.acknowledgement:new Uint8Array)),Ut.proofAcked!==void 0&&(Vt.proofAcked=(0,mt.base64FromBytes)(Ut.proofAcked!==void 0?Ut.proofAcked:new Uint8Array)),Ut.proofHeight!==void 0&&(Vt.proofHeight=Ut.proofHeight?ht.Height.toJSON(Ut.proofHeight):void 0),Ut.signer!==void 0&&(Vt.signer=Ut.signer),Vt},fromPartial(Ut){const Vt=St();return Vt.packet=Ut.packet!==void 0&&Ut.packet!==null?lt.Packet.fromPartial(Ut.packet):void 0,Vt.acknowledgement=Ut.acknowledgement??new Uint8Array,Vt.proofAcked=Ut.proofAcked??new Uint8Array,Vt.proofHeight=Ut.proofHeight!==void 0&&Ut.proofHeight!==null?ht.Height.fromPartial(Ut.proofHeight):void 0,Vt.signer=Ut.signer??"",Vt}};function It(){return{result:0}}d.MsgAcknowledgementResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.result!==0&&Vt.uint32(8).int32(Ut.result),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=It();for(;qt.pos>>3){case 1:dn.result=qt.int32();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{result:(0,mt.isSet)(Ut.result)?Pt(Ut.result):0}},toJSON(Ut){const Vt={};return Ut.result!==void 0&&(Vt.result=Jt(Ut.result)),Vt},fromPartial(Ut){const Vt=It();return Vt.result=Ut.result??0,Vt}};class Gt{constructor(Vt){this.rpc=Vt,this.ChannelOpenInit=this.ChannelOpenInit.bind(this),this.ChannelOpenTry=this.ChannelOpenTry.bind(this),this.ChannelOpenAck=this.ChannelOpenAck.bind(this),this.ChannelOpenConfirm=this.ChannelOpenConfirm.bind(this),this.ChannelCloseInit=this.ChannelCloseInit.bind(this),this.ChannelCloseConfirm=this.ChannelCloseConfirm.bind(this),this.RecvPacket=this.RecvPacket.bind(this),this.Timeout=this.Timeout.bind(this),this.TimeoutOnClose=this.TimeoutOnClose.bind(this),this.Acknowledgement=this.Acknowledgement.bind(this)}ChannelOpenInit(Vt){const qt=d.MsgChannelOpenInit.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",qt).then(dn=>d.MsgChannelOpenInitResponse.decode(new vt.Reader(dn)))}ChannelOpenTry(Vt){const qt=d.MsgChannelOpenTry.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",qt).then(dn=>d.MsgChannelOpenTryResponse.decode(new vt.Reader(dn)))}ChannelOpenAck(Vt){const qt=d.MsgChannelOpenAck.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",qt).then(dn=>d.MsgChannelOpenAckResponse.decode(new vt.Reader(dn)))}ChannelOpenConfirm(Vt){const qt=d.MsgChannelOpenConfirm.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",qt).then(dn=>d.MsgChannelOpenConfirmResponse.decode(new vt.Reader(dn)))}ChannelCloseInit(Vt){const qt=d.MsgChannelCloseInit.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",qt).then(dn=>d.MsgChannelCloseInitResponse.decode(new vt.Reader(dn)))}ChannelCloseConfirm(Vt){const qt=d.MsgChannelCloseConfirm.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",qt).then(dn=>d.MsgChannelCloseConfirmResponse.decode(new vt.Reader(dn)))}RecvPacket(Vt){const qt=d.MsgRecvPacket.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",qt).then(dn=>d.MsgRecvPacketResponse.decode(new vt.Reader(dn)))}Timeout(Vt){const qt=d.MsgTimeout.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Timeout",qt).then(dn=>d.MsgTimeoutResponse.decode(new vt.Reader(dn)))}TimeoutOnClose(Vt){const qt=d.MsgTimeoutOnClose.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",qt).then(dn=>d.MsgTimeoutOnCloseResponse.decode(new vt.Reader(dn)))}Acknowledgement(Vt){const qt=d.MsgAcknowledgement.encode(Vt).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",qt).then(dn=>d.MsgAcknowledgementResponse.decode(new vt.Reader(dn)))}}d.MsgClientImpl=Gt})(tx$i);var tx$h={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et);var Tt=Object.getOwnPropertyDescriptor(xt,Et);(!Tt||("get"in Tt?!xt.__esModule:Tt.writable||Tt.configurable))&&(Tt={enumerable:!0,get:function(){return xt[Et]}}),Object.defineProperty(Nt,Bt,Tt)}:function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et),Nt[Bt]=xt[Et]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,xt){Object.defineProperty(Nt,"default",{enumerable:!0,value:xt})}:function(Nt,xt){Nt.default=xt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var xt={};if(Nt!=null)for(var Et in Nt)Et!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Et)&&b(xt,Nt,Et);return dt(xt,Nt),xt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgSubmitMisbehaviourResponse=d.MsgSubmitMisbehaviour=d.MsgUpgradeClientResponse=d.MsgUpgradeClient=d.MsgUpdateClientResponse=d.MsgUpdateClient=d.MsgCreateClientResponse=d.MsgCreateClient=d.protobufPackage=void 0;const lt=any$1,ht=ct(minimal$4),mt=helpers$1;d.protobufPackage="ibc.core.client.v1";function vt(){return{clientState:void 0,consensusState:void 0,signer:""}}d.MsgCreateClient={encode(Nt,xt=ht.Writer.create()){return Nt.clientState!==void 0&<.Any.encode(Nt.clientState,xt.uint32(10).fork()).ldelim(),Nt.consensusState!==void 0&<.Any.encode(Nt.consensusState,xt.uint32(18).fork()).ldelim(),Nt.signer!==""&&xt.uint32(26).string(Nt.signer),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=vt();for(;Et.pos>>3){case 1:Tt.clientState=lt.Any.decode(Et,Et.uint32());break;case 2:Tt.consensusState=lt.Any.decode(Et,Et.uint32());break;case 3:Tt.signer=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{clientState:(0,mt.isSet)(Nt.clientState)?lt.Any.fromJSON(Nt.clientState):void 0,consensusState:(0,mt.isSet)(Nt.consensusState)?lt.Any.fromJSON(Nt.consensusState):void 0,signer:(0,mt.isSet)(Nt.signer)?String(Nt.signer):""}},toJSON(Nt){const xt={};return Nt.clientState!==void 0&&(xt.clientState=Nt.clientState?lt.Any.toJSON(Nt.clientState):void 0),Nt.consensusState!==void 0&&(xt.consensusState=Nt.consensusState?lt.Any.toJSON(Nt.consensusState):void 0),Nt.signer!==void 0&&(xt.signer=Nt.signer),xt},fromPartial(Nt){const xt=vt();return xt.clientState=Nt.clientState!==void 0&&Nt.clientState!==null?lt.Any.fromPartial(Nt.clientState):void 0,xt.consensusState=Nt.consensusState!==void 0&&Nt.consensusState!==null?lt.Any.fromPartial(Nt.consensusState):void 0,xt.signer=Nt.signer??"",xt}};function kt(){return{}}d.MsgCreateClientResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=kt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return kt()}};function Pt(){return{clientId:"",clientMessage:void 0,signer:""}}d.MsgUpdateClient={encode(Nt,xt=ht.Writer.create()){return Nt.clientId!==""&&xt.uint32(10).string(Nt.clientId),Nt.clientMessage!==void 0&<.Any.encode(Nt.clientMessage,xt.uint32(18).fork()).ldelim(),Nt.signer!==""&&xt.uint32(26).string(Nt.signer),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Pt();for(;Et.pos>>3){case 1:Tt.clientId=Et.string();break;case 2:Tt.clientMessage=lt.Any.decode(Et,Et.uint32());break;case 3:Tt.signer=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{clientId:(0,mt.isSet)(Nt.clientId)?String(Nt.clientId):"",clientMessage:(0,mt.isSet)(Nt.clientMessage)?lt.Any.fromJSON(Nt.clientMessage):void 0,signer:(0,mt.isSet)(Nt.signer)?String(Nt.signer):""}},toJSON(Nt){const xt={};return Nt.clientId!==void 0&&(xt.clientId=Nt.clientId),Nt.clientMessage!==void 0&&(xt.clientMessage=Nt.clientMessage?lt.Any.toJSON(Nt.clientMessage):void 0),Nt.signer!==void 0&&(xt.signer=Nt.signer),xt},fromPartial(Nt){const xt=Pt();return xt.clientId=Nt.clientId??"",xt.clientMessage=Nt.clientMessage!==void 0&&Nt.clientMessage!==null?lt.Any.fromPartial(Nt.clientMessage):void 0,xt.signer=Nt.signer??"",xt}};function Jt(){return{}}d.MsgUpdateClientResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Jt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Jt()}};function Zt(){return{clientId:"",clientState:void 0,consensusState:void 0,proofUpgradeClient:new Uint8Array,proofUpgradeConsensusState:new Uint8Array,signer:""}}d.MsgUpgradeClient={encode(Nt,xt=ht.Writer.create()){return Nt.clientId!==""&&xt.uint32(10).string(Nt.clientId),Nt.clientState!==void 0&<.Any.encode(Nt.clientState,xt.uint32(18).fork()).ldelim(),Nt.consensusState!==void 0&<.Any.encode(Nt.consensusState,xt.uint32(26).fork()).ldelim(),Nt.proofUpgradeClient.length!==0&&xt.uint32(34).bytes(Nt.proofUpgradeClient),Nt.proofUpgradeConsensusState.length!==0&&xt.uint32(42).bytes(Nt.proofUpgradeConsensusState),Nt.signer!==""&&xt.uint32(50).string(Nt.signer),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Zt();for(;Et.pos>>3){case 1:Tt.clientId=Et.string();break;case 2:Tt.clientState=lt.Any.decode(Et,Et.uint32());break;case 3:Tt.consensusState=lt.Any.decode(Et,Et.uint32());break;case 4:Tt.proofUpgradeClient=Et.bytes();break;case 5:Tt.proofUpgradeConsensusState=Et.bytes();break;case 6:Tt.signer=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{clientId:(0,mt.isSet)(Nt.clientId)?String(Nt.clientId):"",clientState:(0,mt.isSet)(Nt.clientState)?lt.Any.fromJSON(Nt.clientState):void 0,consensusState:(0,mt.isSet)(Nt.consensusState)?lt.Any.fromJSON(Nt.consensusState):void 0,proofUpgradeClient:(0,mt.isSet)(Nt.proofUpgradeClient)?(0,mt.bytesFromBase64)(Nt.proofUpgradeClient):new Uint8Array,proofUpgradeConsensusState:(0,mt.isSet)(Nt.proofUpgradeConsensusState)?(0,mt.bytesFromBase64)(Nt.proofUpgradeConsensusState):new Uint8Array,signer:(0,mt.isSet)(Nt.signer)?String(Nt.signer):""}},toJSON(Nt){const xt={};return Nt.clientId!==void 0&&(xt.clientId=Nt.clientId),Nt.clientState!==void 0&&(xt.clientState=Nt.clientState?lt.Any.toJSON(Nt.clientState):void 0),Nt.consensusState!==void 0&&(xt.consensusState=Nt.consensusState?lt.Any.toJSON(Nt.consensusState):void 0),Nt.proofUpgradeClient!==void 0&&(xt.proofUpgradeClient=(0,mt.base64FromBytes)(Nt.proofUpgradeClient!==void 0?Nt.proofUpgradeClient:new Uint8Array)),Nt.proofUpgradeConsensusState!==void 0&&(xt.proofUpgradeConsensusState=(0,mt.base64FromBytes)(Nt.proofUpgradeConsensusState!==void 0?Nt.proofUpgradeConsensusState:new Uint8Array)),Nt.signer!==void 0&&(xt.signer=Nt.signer),xt},fromPartial(Nt){const xt=Zt();return xt.clientId=Nt.clientId??"",xt.clientState=Nt.clientState!==void 0&&Nt.clientState!==null?lt.Any.fromPartial(Nt.clientState):void 0,xt.consensusState=Nt.consensusState!==void 0&&Nt.consensusState!==null?lt.Any.fromPartial(Nt.consensusState):void 0,xt.proofUpgradeClient=Nt.proofUpgradeClient??new Uint8Array,xt.proofUpgradeConsensusState=Nt.proofUpgradeConsensusState??new Uint8Array,xt.signer=Nt.signer??"",xt}};function Rt(){return{}}d.MsgUpgradeClientResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Rt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Rt()}};function nn(){return{clientId:"",misbehaviour:void 0,signer:""}}d.MsgSubmitMisbehaviour={encode(Nt,xt=ht.Writer.create()){return Nt.clientId!==""&&xt.uint32(10).string(Nt.clientId),Nt.misbehaviour!==void 0&<.Any.encode(Nt.misbehaviour,xt.uint32(18).fork()).ldelim(),Nt.signer!==""&&xt.uint32(26).string(Nt.signer),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=nn();for(;Et.pos>>3){case 1:Tt.clientId=Et.string();break;case 2:Tt.misbehaviour=lt.Any.decode(Et,Et.uint32());break;case 3:Tt.signer=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{clientId:(0,mt.isSet)(Nt.clientId)?String(Nt.clientId):"",misbehaviour:(0,mt.isSet)(Nt.misbehaviour)?lt.Any.fromJSON(Nt.misbehaviour):void 0,signer:(0,mt.isSet)(Nt.signer)?String(Nt.signer):""}},toJSON(Nt){const xt={};return Nt.clientId!==void 0&&(xt.clientId=Nt.clientId),Nt.misbehaviour!==void 0&&(xt.misbehaviour=Nt.misbehaviour?lt.Any.toJSON(Nt.misbehaviour):void 0),Nt.signer!==void 0&&(xt.signer=Nt.signer),xt},fromPartial(Nt){const xt=nn();return xt.clientId=Nt.clientId??"",xt.misbehaviour=Nt.misbehaviour!==void 0&&Nt.misbehaviour!==null?lt.Any.fromPartial(Nt.misbehaviour):void 0,xt.signer=Nt.signer??"",xt}};function Qt(){return{}}d.MsgSubmitMisbehaviourResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Qt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Qt()}};class wt{constructor(xt){this.rpc=xt,this.CreateClient=this.CreateClient.bind(this),this.UpdateClient=this.UpdateClient.bind(this),this.UpgradeClient=this.UpgradeClient.bind(this),this.SubmitMisbehaviour=this.SubmitMisbehaviour.bind(this)}CreateClient(xt){const Et=d.MsgCreateClient.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Msg","CreateClient",Et).then(Tt=>d.MsgCreateClientResponse.decode(new ht.Reader(Tt)))}UpdateClient(xt){const Et=d.MsgUpdateClient.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",Et).then(Tt=>d.MsgUpdateClientResponse.decode(new ht.Reader(Tt)))}UpgradeClient(xt){const Et=d.MsgUpgradeClient.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",Et).then(Tt=>d.MsgUpgradeClientResponse.decode(new ht.Reader(Tt)))}SubmitMisbehaviour(xt){const Et=d.MsgSubmitMisbehaviour.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",Et).then(Tt=>d.MsgSubmitMisbehaviourResponse.decode(new ht.Reader(Tt)))}}d.MsgClientImpl=wt})(tx$h);var tx$g={},connection={},commitment={},proofs={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.CompressedNonExistenceProof=d.CompressedExistenceProof=d.CompressedBatchEntry=d.CompressedBatchProof=d.BatchEntry=d.BatchProof=d.InnerSpec=d.ProofSpec=d.InnerOp=d.LeafOp=d.CommitmentProof=d.NonExistenceProof=d.ExistenceProof=d.lengthOpToJSON=d.lengthOpFromJSON=d.LengthOp=d.hashOpToJSON=d.hashOpFromJSON=d.HashOp=d.protobufPackage=void 0;const lt=ct(minimal$4),ht=helpers$1;d.protobufPackage="cosmos.ics23.v1";var mt;(function(yt){yt[yt.NO_HASH=0]="NO_HASH",yt[yt.SHA256=1]="SHA256",yt[yt.SHA512=2]="SHA512",yt[yt.KECCAK=3]="KECCAK",yt[yt.RIPEMD160=4]="RIPEMD160",yt[yt.BITCOIN=5]="BITCOIN",yt[yt.SHA512_256=6]="SHA512_256",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mt=d.HashOp||(d.HashOp={}));function vt(yt){switch(yt){case 0:case"NO_HASH":return mt.NO_HASH;case 1:case"SHA256":return mt.SHA256;case 2:case"SHA512":return mt.SHA512;case 3:case"KECCAK":return mt.KECCAK;case 4:case"RIPEMD160":return mt.RIPEMD160;case 5:case"BITCOIN":return mt.BITCOIN;case 6:case"SHA512_256":return mt.SHA512_256;case-1:case"UNRECOGNIZED":default:return mt.UNRECOGNIZED}}d.hashOpFromJSON=vt;function kt(yt){switch(yt){case mt.NO_HASH:return"NO_HASH";case mt.SHA256:return"SHA256";case mt.SHA512:return"SHA512";case mt.KECCAK:return"KECCAK";case mt.RIPEMD160:return"RIPEMD160";case mt.BITCOIN:return"BITCOIN";case mt.SHA512_256:return"SHA512_256";case mt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.hashOpToJSON=kt;var Pt;(function(yt){yt[yt.NO_PREFIX=0]="NO_PREFIX",yt[yt.VAR_PROTO=1]="VAR_PROTO",yt[yt.VAR_RLP=2]="VAR_RLP",yt[yt.FIXED32_BIG=3]="FIXED32_BIG",yt[yt.FIXED32_LITTLE=4]="FIXED32_LITTLE",yt[yt.FIXED64_BIG=5]="FIXED64_BIG",yt[yt.FIXED64_LITTLE=6]="FIXED64_LITTLE",yt[yt.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",yt[yt.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Pt=d.LengthOp||(d.LengthOp={}));function Jt(yt){switch(yt){case 0:case"NO_PREFIX":return Pt.NO_PREFIX;case 1:case"VAR_PROTO":return Pt.VAR_PROTO;case 2:case"VAR_RLP":return Pt.VAR_RLP;case 3:case"FIXED32_BIG":return Pt.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return Pt.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return Pt.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return Pt.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return Pt.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return Pt.REQUIRE_64_BYTES;case-1:case"UNRECOGNIZED":default:return Pt.UNRECOGNIZED}}d.lengthOpFromJSON=Jt;function Zt(yt){switch(yt){case Pt.NO_PREFIX:return"NO_PREFIX";case Pt.VAR_PROTO:return"VAR_PROTO";case Pt.VAR_RLP:return"VAR_RLP";case Pt.FIXED32_BIG:return"FIXED32_BIG";case Pt.FIXED32_LITTLE:return"FIXED32_LITTLE";case Pt.FIXED64_BIG:return"FIXED64_BIG";case Pt.FIXED64_LITTLE:return"FIXED64_LITTLE";case Pt.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case Pt.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";case Pt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.lengthOpToJSON=Zt;function Rt(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}d.ExistenceProof={encode(yt,$t=lt.Writer.create()){yt.key.length!==0&&$t.uint32(10).bytes(yt.key),yt.value.length!==0&&$t.uint32(18).bytes(yt.value),yt.leaf!==void 0&&d.LeafOp.encode(yt.leaf,$t.uint32(26).fork()).ldelim();for(const Yt of yt.path)d.InnerOp.encode(Yt,$t.uint32(34).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.key=Yt.bytes();break;case 2:St.value=Yt.bytes();break;case 3:St.leaf=d.LeafOp.decode(Yt,Yt.uint32());break;case 4:St.path.push(d.InnerOp.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{key:(0,ht.isSet)(yt.key)?(0,ht.bytesFromBase64)(yt.key):new Uint8Array,value:(0,ht.isSet)(yt.value)?(0,ht.bytesFromBase64)(yt.value):new Uint8Array,leaf:(0,ht.isSet)(yt.leaf)?d.LeafOp.fromJSON(yt.leaf):void 0,path:Array.isArray(yt==null?void 0:yt.path)?yt.path.map($t=>d.InnerOp.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.key!==void 0&&($t.key=(0,ht.base64FromBytes)(yt.key!==void 0?yt.key:new Uint8Array)),yt.value!==void 0&&($t.value=(0,ht.base64FromBytes)(yt.value!==void 0?yt.value:new Uint8Array)),yt.leaf!==void 0&&($t.leaf=yt.leaf?d.LeafOp.toJSON(yt.leaf):void 0),yt.path?$t.path=yt.path.map(Yt=>Yt?d.InnerOp.toJSON(Yt):void 0):$t.path=[],$t},fromPartial(yt){var Yt;const $t=Rt();return $t.key=yt.key??new Uint8Array,$t.value=yt.value??new Uint8Array,$t.leaf=yt.leaf!==void 0&&yt.leaf!==null?d.LeafOp.fromPartial(yt.leaf):void 0,$t.path=((Yt=yt.path)==null?void 0:Yt.map(Kt=>d.InnerOp.fromPartial(Kt)))||[],$t}};function nn(){return{key:new Uint8Array,left:void 0,right:void 0}}d.NonExistenceProof={encode(yt,$t=lt.Writer.create()){return yt.key.length!==0&&$t.uint32(10).bytes(yt.key),yt.left!==void 0&&d.ExistenceProof.encode(yt.left,$t.uint32(18).fork()).ldelim(),yt.right!==void 0&&d.ExistenceProof.encode(yt.right,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.key=Yt.bytes();break;case 2:St.left=d.ExistenceProof.decode(Yt,Yt.uint32());break;case 3:St.right=d.ExistenceProof.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{key:(0,ht.isSet)(yt.key)?(0,ht.bytesFromBase64)(yt.key):new Uint8Array,left:(0,ht.isSet)(yt.left)?d.ExistenceProof.fromJSON(yt.left):void 0,right:(0,ht.isSet)(yt.right)?d.ExistenceProof.fromJSON(yt.right):void 0}},toJSON(yt){const $t={};return yt.key!==void 0&&($t.key=(0,ht.base64FromBytes)(yt.key!==void 0?yt.key:new Uint8Array)),yt.left!==void 0&&($t.left=yt.left?d.ExistenceProof.toJSON(yt.left):void 0),yt.right!==void 0&&($t.right=yt.right?d.ExistenceProof.toJSON(yt.right):void 0),$t},fromPartial(yt){const $t=nn();return $t.key=yt.key??new Uint8Array,$t.left=yt.left!==void 0&&yt.left!==null?d.ExistenceProof.fromPartial(yt.left):void 0,$t.right=yt.right!==void 0&&yt.right!==null?d.ExistenceProof.fromPartial(yt.right):void 0,$t}};function Qt(){return{exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0}}d.CommitmentProof={encode(yt,$t=lt.Writer.create()){return yt.exist!==void 0&&d.ExistenceProof.encode(yt.exist,$t.uint32(10).fork()).ldelim(),yt.nonexist!==void 0&&d.NonExistenceProof.encode(yt.nonexist,$t.uint32(18).fork()).ldelim(),yt.batch!==void 0&&d.BatchProof.encode(yt.batch,$t.uint32(26).fork()).ldelim(),yt.compressed!==void 0&&d.CompressedBatchProof.encode(yt.compressed,$t.uint32(34).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.exist=d.ExistenceProof.decode(Yt,Yt.uint32());break;case 2:St.nonexist=d.NonExistenceProof.decode(Yt,Yt.uint32());break;case 3:St.batch=d.BatchProof.decode(Yt,Yt.uint32());break;case 4:St.compressed=d.CompressedBatchProof.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{exist:(0,ht.isSet)(yt.exist)?d.ExistenceProof.fromJSON(yt.exist):void 0,nonexist:(0,ht.isSet)(yt.nonexist)?d.NonExistenceProof.fromJSON(yt.nonexist):void 0,batch:(0,ht.isSet)(yt.batch)?d.BatchProof.fromJSON(yt.batch):void 0,compressed:(0,ht.isSet)(yt.compressed)?d.CompressedBatchProof.fromJSON(yt.compressed):void 0}},toJSON(yt){const $t={};return yt.exist!==void 0&&($t.exist=yt.exist?d.ExistenceProof.toJSON(yt.exist):void 0),yt.nonexist!==void 0&&($t.nonexist=yt.nonexist?d.NonExistenceProof.toJSON(yt.nonexist):void 0),yt.batch!==void 0&&($t.batch=yt.batch?d.BatchProof.toJSON(yt.batch):void 0),yt.compressed!==void 0&&($t.compressed=yt.compressed?d.CompressedBatchProof.toJSON(yt.compressed):void 0),$t},fromPartial(yt){const $t=Qt();return $t.exist=yt.exist!==void 0&&yt.exist!==null?d.ExistenceProof.fromPartial(yt.exist):void 0,$t.nonexist=yt.nonexist!==void 0&&yt.nonexist!==null?d.NonExistenceProof.fromPartial(yt.nonexist):void 0,$t.batch=yt.batch!==void 0&&yt.batch!==null?d.BatchProof.fromPartial(yt.batch):void 0,$t.compressed=yt.compressed!==void 0&&yt.compressed!==null?d.CompressedBatchProof.fromPartial(yt.compressed):void 0,$t}};function wt(){return{hash:0,prehashKey:0,prehashValue:0,length:0,prefix:new Uint8Array}}d.LeafOp={encode(yt,$t=lt.Writer.create()){return yt.hash!==0&&$t.uint32(8).int32(yt.hash),yt.prehashKey!==0&&$t.uint32(16).int32(yt.prehashKey),yt.prehashValue!==0&&$t.uint32(24).int32(yt.prehashValue),yt.length!==0&&$t.uint32(32).int32(yt.length),yt.prefix.length!==0&&$t.uint32(42).bytes(yt.prefix),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.hash=Yt.int32();break;case 2:St.prehashKey=Yt.int32();break;case 3:St.prehashValue=Yt.int32();break;case 4:St.length=Yt.int32();break;case 5:St.prefix=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{hash:(0,ht.isSet)(yt.hash)?vt(yt.hash):0,prehashKey:(0,ht.isSet)(yt.prehashKey)?vt(yt.prehashKey):0,prehashValue:(0,ht.isSet)(yt.prehashValue)?vt(yt.prehashValue):0,length:(0,ht.isSet)(yt.length)?Jt(yt.length):0,prefix:(0,ht.isSet)(yt.prefix)?(0,ht.bytesFromBase64)(yt.prefix):new Uint8Array}},toJSON(yt){const $t={};return yt.hash!==void 0&&($t.hash=kt(yt.hash)),yt.prehashKey!==void 0&&($t.prehashKey=kt(yt.prehashKey)),yt.prehashValue!==void 0&&($t.prehashValue=kt(yt.prehashValue)),yt.length!==void 0&&($t.length=Zt(yt.length)),yt.prefix!==void 0&&($t.prefix=(0,ht.base64FromBytes)(yt.prefix!==void 0?yt.prefix:new Uint8Array)),$t},fromPartial(yt){const $t=wt();return $t.hash=yt.hash??0,$t.prehashKey=yt.prehashKey??0,$t.prehashValue=yt.prehashValue??0,$t.length=yt.length??0,$t.prefix=yt.prefix??new Uint8Array,$t}};function Nt(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}d.InnerOp={encode(yt,$t=lt.Writer.create()){return yt.hash!==0&&$t.uint32(8).int32(yt.hash),yt.prefix.length!==0&&$t.uint32(18).bytes(yt.prefix),yt.suffix.length!==0&&$t.uint32(26).bytes(yt.suffix),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.hash=Yt.int32();break;case 2:St.prefix=Yt.bytes();break;case 3:St.suffix=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{hash:(0,ht.isSet)(yt.hash)?vt(yt.hash):0,prefix:(0,ht.isSet)(yt.prefix)?(0,ht.bytesFromBase64)(yt.prefix):new Uint8Array,suffix:(0,ht.isSet)(yt.suffix)?(0,ht.bytesFromBase64)(yt.suffix):new Uint8Array}},toJSON(yt){const $t={};return yt.hash!==void 0&&($t.hash=kt(yt.hash)),yt.prefix!==void 0&&($t.prefix=(0,ht.base64FromBytes)(yt.prefix!==void 0?yt.prefix:new Uint8Array)),yt.suffix!==void 0&&($t.suffix=(0,ht.base64FromBytes)(yt.suffix!==void 0?yt.suffix:new Uint8Array)),$t},fromPartial(yt){const $t=Nt();return $t.hash=yt.hash??0,$t.prefix=yt.prefix??new Uint8Array,$t.suffix=yt.suffix??new Uint8Array,$t}};function xt(){return{leafSpec:void 0,innerSpec:void 0,maxDepth:0,minDepth:0}}d.ProofSpec={encode(yt,$t=lt.Writer.create()){return yt.leafSpec!==void 0&&d.LeafOp.encode(yt.leafSpec,$t.uint32(10).fork()).ldelim(),yt.innerSpec!==void 0&&d.InnerSpec.encode(yt.innerSpec,$t.uint32(18).fork()).ldelim(),yt.maxDepth!==0&&$t.uint32(24).int32(yt.maxDepth),yt.minDepth!==0&&$t.uint32(32).int32(yt.minDepth),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.leafSpec=d.LeafOp.decode(Yt,Yt.uint32());break;case 2:St.innerSpec=d.InnerSpec.decode(Yt,Yt.uint32());break;case 3:St.maxDepth=Yt.int32();break;case 4:St.minDepth=Yt.int32();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{leafSpec:(0,ht.isSet)(yt.leafSpec)?d.LeafOp.fromJSON(yt.leafSpec):void 0,innerSpec:(0,ht.isSet)(yt.innerSpec)?d.InnerSpec.fromJSON(yt.innerSpec):void 0,maxDepth:(0,ht.isSet)(yt.maxDepth)?Number(yt.maxDepth):0,minDepth:(0,ht.isSet)(yt.minDepth)?Number(yt.minDepth):0}},toJSON(yt){const $t={};return yt.leafSpec!==void 0&&($t.leafSpec=yt.leafSpec?d.LeafOp.toJSON(yt.leafSpec):void 0),yt.innerSpec!==void 0&&($t.innerSpec=yt.innerSpec?d.InnerSpec.toJSON(yt.innerSpec):void 0),yt.maxDepth!==void 0&&($t.maxDepth=Math.round(yt.maxDepth)),yt.minDepth!==void 0&&($t.minDepth=Math.round(yt.minDepth)),$t},fromPartial(yt){const $t=xt();return $t.leafSpec=yt.leafSpec!==void 0&&yt.leafSpec!==null?d.LeafOp.fromPartial(yt.leafSpec):void 0,$t.innerSpec=yt.innerSpec!==void 0&&yt.innerSpec!==null?d.InnerSpec.fromPartial(yt.innerSpec):void 0,$t.maxDepth=yt.maxDepth??0,$t.minDepth=yt.minDepth??0,$t}};function Et(){return{childOrder:[],childSize:0,minPrefixLength:0,maxPrefixLength:0,emptyChild:new Uint8Array,hash:0}}d.InnerSpec={encode(yt,$t=lt.Writer.create()){$t.uint32(10).fork();for(const Yt of yt.childOrder)$t.int32(Yt);return $t.ldelim(),yt.childSize!==0&&$t.uint32(16).int32(yt.childSize),yt.minPrefixLength!==0&&$t.uint32(24).int32(yt.minPrefixLength),yt.maxPrefixLength!==0&&$t.uint32(32).int32(yt.maxPrefixLength),yt.emptyChild.length!==0&&$t.uint32(42).bytes(yt.emptyChild),yt.hash!==0&&$t.uint32(48).int32(yt.hash),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:if((It&7)===2){const Gt=Yt.uint32()+Yt.pos;for(;Yt.posNumber($t)):[],childSize:(0,ht.isSet)(yt.childSize)?Number(yt.childSize):0,minPrefixLength:(0,ht.isSet)(yt.minPrefixLength)?Number(yt.minPrefixLength):0,maxPrefixLength:(0,ht.isSet)(yt.maxPrefixLength)?Number(yt.maxPrefixLength):0,emptyChild:(0,ht.isSet)(yt.emptyChild)?(0,ht.bytesFromBase64)(yt.emptyChild):new Uint8Array,hash:(0,ht.isSet)(yt.hash)?vt(yt.hash):0}},toJSON(yt){const $t={};return yt.childOrder?$t.childOrder=yt.childOrder.map(Yt=>Math.round(Yt)):$t.childOrder=[],yt.childSize!==void 0&&($t.childSize=Math.round(yt.childSize)),yt.minPrefixLength!==void 0&&($t.minPrefixLength=Math.round(yt.minPrefixLength)),yt.maxPrefixLength!==void 0&&($t.maxPrefixLength=Math.round(yt.maxPrefixLength)),yt.emptyChild!==void 0&&($t.emptyChild=(0,ht.base64FromBytes)(yt.emptyChild!==void 0?yt.emptyChild:new Uint8Array)),yt.hash!==void 0&&($t.hash=kt(yt.hash)),$t},fromPartial(yt){var Yt;const $t=Et();return $t.childOrder=((Yt=yt.childOrder)==null?void 0:Yt.map(Kt=>Kt))||[],$t.childSize=yt.childSize??0,$t.minPrefixLength=yt.minPrefixLength??0,$t.maxPrefixLength=yt.maxPrefixLength??0,$t.emptyChild=yt.emptyChild??new Uint8Array,$t.hash=yt.hash??0,$t}};function Bt(){return{entries:[]}}d.BatchProof={encode(yt,$t=lt.Writer.create()){for(const Yt of yt.entries)d.BatchEntry.encode(Yt,$t.uint32(10).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.entries.push(d.BatchEntry.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{entries:Array.isArray(yt==null?void 0:yt.entries)?yt.entries.map($t=>d.BatchEntry.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.entries?$t.entries=yt.entries.map(Yt=>Yt?d.BatchEntry.toJSON(Yt):void 0):$t.entries=[],$t},fromPartial(yt){var Yt;const $t=Bt();return $t.entries=((Yt=yt.entries)==null?void 0:Yt.map(Kt=>d.BatchEntry.fromPartial(Kt)))||[],$t}};function Tt(){return{exist:void 0,nonexist:void 0}}d.BatchEntry={encode(yt,$t=lt.Writer.create()){return yt.exist!==void 0&&d.ExistenceProof.encode(yt.exist,$t.uint32(10).fork()).ldelim(),yt.nonexist!==void 0&&d.NonExistenceProof.encode(yt.nonexist,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.exist=d.ExistenceProof.decode(Yt,Yt.uint32());break;case 2:St.nonexist=d.NonExistenceProof.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{exist:(0,ht.isSet)(yt.exist)?d.ExistenceProof.fromJSON(yt.exist):void 0,nonexist:(0,ht.isSet)(yt.nonexist)?d.NonExistenceProof.fromJSON(yt.nonexist):void 0}},toJSON(yt){const $t={};return yt.exist!==void 0&&($t.exist=yt.exist?d.ExistenceProof.toJSON(yt.exist):void 0),yt.nonexist!==void 0&&($t.nonexist=yt.nonexist?d.NonExistenceProof.toJSON(yt.nonexist):void 0),$t},fromPartial(yt){const $t=Tt();return $t.exist=yt.exist!==void 0&&yt.exist!==null?d.ExistenceProof.fromPartial(yt.exist):void 0,$t.nonexist=yt.nonexist!==void 0&&yt.nonexist!==null?d.NonExistenceProof.fromPartial(yt.nonexist):void 0,$t}};function Mt(){return{entries:[],lookupInners:[]}}d.CompressedBatchProof={encode(yt,$t=lt.Writer.create()){for(const Yt of yt.entries)d.CompressedBatchEntry.encode(Yt,$t.uint32(10).fork()).ldelim();for(const Yt of yt.lookupInners)d.InnerOp.encode(Yt,$t.uint32(18).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.entries.push(d.CompressedBatchEntry.decode(Yt,Yt.uint32()));break;case 2:St.lookupInners.push(d.InnerOp.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{entries:Array.isArray(yt==null?void 0:yt.entries)?yt.entries.map($t=>d.CompressedBatchEntry.fromJSON($t)):[],lookupInners:Array.isArray(yt==null?void 0:yt.lookupInners)?yt.lookupInners.map($t=>d.InnerOp.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.entries?$t.entries=yt.entries.map(Yt=>Yt?d.CompressedBatchEntry.toJSON(Yt):void 0):$t.entries=[],yt.lookupInners?$t.lookupInners=yt.lookupInners.map(Yt=>Yt?d.InnerOp.toJSON(Yt):void 0):$t.lookupInners=[],$t},fromPartial(yt){var Yt,Kt;const $t=Mt();return $t.entries=((Yt=yt.entries)==null?void 0:Yt.map(St=>d.CompressedBatchEntry.fromPartial(St)))||[],$t.lookupInners=((Kt=yt.lookupInners)==null?void 0:Kt.map(St=>d.InnerOp.fromPartial(St)))||[],$t}};function jt(){return{exist:void 0,nonexist:void 0}}d.CompressedBatchEntry={encode(yt,$t=lt.Writer.create()){return yt.exist!==void 0&&d.CompressedExistenceProof.encode(yt.exist,$t.uint32(10).fork()).ldelim(),yt.nonexist!==void 0&&d.CompressedNonExistenceProof.encode(yt.nonexist,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.exist=d.CompressedExistenceProof.decode(Yt,Yt.uint32());break;case 2:St.nonexist=d.CompressedNonExistenceProof.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{exist:(0,ht.isSet)(yt.exist)?d.CompressedExistenceProof.fromJSON(yt.exist):void 0,nonexist:(0,ht.isSet)(yt.nonexist)?d.CompressedNonExistenceProof.fromJSON(yt.nonexist):void 0}},toJSON(yt){const $t={};return yt.exist!==void 0&&($t.exist=yt.exist?d.CompressedExistenceProof.toJSON(yt.exist):void 0),yt.nonexist!==void 0&&($t.nonexist=yt.nonexist?d.CompressedNonExistenceProof.toJSON(yt.nonexist):void 0),$t},fromPartial(yt){const $t=jt();return $t.exist=yt.exist!==void 0&&yt.exist!==null?d.CompressedExistenceProof.fromPartial(yt.exist):void 0,$t.nonexist=yt.nonexist!==void 0&&yt.nonexist!==null?d.CompressedNonExistenceProof.fromPartial(yt.nonexist):void 0,$t}};function Ht(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}d.CompressedExistenceProof={encode(yt,$t=lt.Writer.create()){yt.key.length!==0&&$t.uint32(10).bytes(yt.key),yt.value.length!==0&&$t.uint32(18).bytes(yt.value),yt.leaf!==void 0&&d.LeafOp.encode(yt.leaf,$t.uint32(26).fork()).ldelim(),$t.uint32(34).fork();for(const Yt of yt.path)$t.int32(Yt);return $t.ldelim(),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.key=Yt.bytes();break;case 2:St.value=Yt.bytes();break;case 3:St.leaf=d.LeafOp.decode(Yt,Yt.uint32());break;case 4:if((It&7)===2){const Gt=Yt.uint32()+Yt.pos;for(;Yt.posNumber($t)):[]}},toJSON(yt){const $t={};return yt.key!==void 0&&($t.key=(0,ht.base64FromBytes)(yt.key!==void 0?yt.key:new Uint8Array)),yt.value!==void 0&&($t.value=(0,ht.base64FromBytes)(yt.value!==void 0?yt.value:new Uint8Array)),yt.leaf!==void 0&&($t.leaf=yt.leaf?d.LeafOp.toJSON(yt.leaf):void 0),yt.path?$t.path=yt.path.map(Yt=>Math.round(Yt)):$t.path=[],$t},fromPartial(yt){var Yt;const $t=Ht();return $t.key=yt.key??new Uint8Array,$t.value=yt.value??new Uint8Array,$t.leaf=yt.leaf!==void 0&&yt.leaf!==null?d.LeafOp.fromPartial(yt.leaf):void 0,$t.path=((Yt=yt.path)==null?void 0:Yt.map(Kt=>Kt))||[],$t}};function an(){return{key:new Uint8Array,left:void 0,right:void 0}}d.CompressedNonExistenceProof={encode(yt,$t=lt.Writer.create()){return yt.key.length!==0&&$t.uint32(10).bytes(yt.key),yt.left!==void 0&&d.CompressedExistenceProof.encode(yt.left,$t.uint32(18).fork()).ldelim(),yt.right!==void 0&&d.CompressedExistenceProof.encode(yt.right,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof lt.Reader?yt:new lt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=an();for(;Yt.pos>>3){case 1:St.key=Yt.bytes();break;case 2:St.left=d.CompressedExistenceProof.decode(Yt,Yt.uint32());break;case 3:St.right=d.CompressedExistenceProof.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{key:(0,ht.isSet)(yt.key)?(0,ht.bytesFromBase64)(yt.key):new Uint8Array,left:(0,ht.isSet)(yt.left)?d.CompressedExistenceProof.fromJSON(yt.left):void 0,right:(0,ht.isSet)(yt.right)?d.CompressedExistenceProof.fromJSON(yt.right):void 0}},toJSON(yt){const $t={};return yt.key!==void 0&&($t.key=(0,ht.base64FromBytes)(yt.key!==void 0?yt.key:new Uint8Array)),yt.left!==void 0&&($t.left=yt.left?d.CompressedExistenceProof.toJSON(yt.left):void 0),yt.right!==void 0&&($t.right=yt.right?d.CompressedExistenceProof.toJSON(yt.right):void 0),$t},fromPartial(yt){const $t=an();return $t.key=yt.key??new Uint8Array,$t.left=yt.left!==void 0&&yt.left!==null?d.CompressedExistenceProof.fromPartial(yt.left):void 0,$t.right=yt.right!==void 0&&yt.right!==null?d.CompressedExistenceProof.fromPartial(yt.right):void 0,$t}}})(proofs);var __createBinding$m=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$m=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$m=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$m(b,d,dt);return __setModuleDefault$m(b,d),b};Object.defineProperty(commitment,"__esModule",{value:!0});commitment.MerkleProof=commitment.MerklePath=commitment.MerklePrefix=commitment.MerkleRoot=commitment.protobufPackage=void 0;const proofs_1=proofs,_m0$g=__importStar$m(minimal$4),helpers_1$f=helpers$1;commitment.protobufPackage="ibc.core.commitment.v1";function createBaseMerkleRoot(){return{hash:new Uint8Array}}commitment.MerkleRoot={encode(d,b=_m0$g.Writer.create()){return d.hash.length!==0&&b.uint32(10).bytes(d.hash),b},decode(d,b){const dt=d instanceof _m0$g.Reader?d:new _m0$g.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMerkleRoot();for(;dt.pos>>3){case 1:lt.hash=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{hash:(0,helpers_1$f.isSet)(d.hash)?(0,helpers_1$f.bytesFromBase64)(d.hash):new Uint8Array}},toJSON(d){const b={};return d.hash!==void 0&&(b.hash=(0,helpers_1$f.base64FromBytes)(d.hash!==void 0?d.hash:new Uint8Array)),b},fromPartial(d){const b=createBaseMerkleRoot();return b.hash=d.hash??new Uint8Array,b}};function createBaseMerklePrefix(){return{keyPrefix:new Uint8Array}}commitment.MerklePrefix={encode(d,b=_m0$g.Writer.create()){return d.keyPrefix.length!==0&&b.uint32(10).bytes(d.keyPrefix),b},decode(d,b){const dt=d instanceof _m0$g.Reader?d:new _m0$g.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMerklePrefix();for(;dt.pos>>3){case 1:lt.keyPrefix=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{keyPrefix:(0,helpers_1$f.isSet)(d.keyPrefix)?(0,helpers_1$f.bytesFromBase64)(d.keyPrefix):new Uint8Array}},toJSON(d){const b={};return d.keyPrefix!==void 0&&(b.keyPrefix=(0,helpers_1$f.base64FromBytes)(d.keyPrefix!==void 0?d.keyPrefix:new Uint8Array)),b},fromPartial(d){const b=createBaseMerklePrefix();return b.keyPrefix=d.keyPrefix??new Uint8Array,b}};function createBaseMerklePath(){return{keyPath:[]}}commitment.MerklePath={encode(d,b=_m0$g.Writer.create()){for(const dt of d.keyPath)b.uint32(10).string(dt);return b},decode(d,b){const dt=d instanceof _m0$g.Reader?d:new _m0$g.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMerklePath();for(;dt.pos>>3){case 1:lt.keyPath.push(dt.string());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{keyPath:Array.isArray(d==null?void 0:d.keyPath)?d.keyPath.map(b=>String(b)):[]}},toJSON(d){const b={};return d.keyPath?b.keyPath=d.keyPath.map(dt=>dt):b.keyPath=[],b},fromPartial(d){var dt;const b=createBaseMerklePath();return b.keyPath=((dt=d.keyPath)==null?void 0:dt.map(ct=>ct))||[],b}};function createBaseMerkleProof(){return{proofs:[]}}commitment.MerkleProof={encode(d,b=_m0$g.Writer.create()){for(const dt of d.proofs)proofs_1.CommitmentProof.encode(dt,b.uint32(10).fork()).ldelim();return b},decode(d,b){const dt=d instanceof _m0$g.Reader?d:new _m0$g.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMerkleProof();for(;dt.pos>>3){case 1:lt.proofs.push(proofs_1.CommitmentProof.decode(dt,dt.uint32()));break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{proofs:Array.isArray(d==null?void 0:d.proofs)?d.proofs.map(b=>proofs_1.CommitmentProof.fromJSON(b)):[]}},toJSON(d){const b={};return d.proofs?b.proofs=d.proofs.map(dt=>dt?proofs_1.CommitmentProof.toJSON(dt):void 0):b.proofs=[],b},fromPartial(d){var dt;const b=createBaseMerkleProof();return b.proofs=((dt=d.proofs)==null?void 0:dt.map(ct=>proofs_1.CommitmentProof.fromPartial(ct)))||[],b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,Et,Bt,Tt){Tt===void 0&&(Tt=Bt);var Mt=Object.getOwnPropertyDescriptor(Et,Bt);(!Mt||("get"in Mt?!Et.__esModule:Mt.writable||Mt.configurable))&&(Mt={enumerable:!0,get:function(){return Et[Bt]}}),Object.defineProperty(xt,Tt,Mt)}:function(xt,Et,Bt,Tt){Tt===void 0&&(Tt=Bt),xt[Tt]=Et[Bt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(xt,Et){Object.defineProperty(xt,"default",{enumerable:!0,value:Et})}:function(xt,Et){xt.default=Et}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(xt){if(xt&&xt.__esModule)return xt;var Et={};if(xt!=null)for(var Bt in xt)Bt!=="default"&&Object.prototype.hasOwnProperty.call(xt,Bt)&&b(Et,xt,Bt);return dt(Et,xt),Et};Object.defineProperty(d,"__esModule",{value:!0}),d.Params=d.Version=d.ConnectionPaths=d.ClientPaths=d.Counterparty=d.IdentifiedConnection=d.ConnectionEnd=d.stateToJSON=d.stateFromJSON=d.State=d.protobufPackage=void 0;const lt=commitment,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="ibc.core.connection.v1";var vt;(function(xt){xt[xt.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",xt[xt.STATE_INIT=1]="STATE_INIT",xt[xt.STATE_TRYOPEN=2]="STATE_TRYOPEN",xt[xt.STATE_OPEN=3]="STATE_OPEN",xt[xt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vt=d.State||(d.State={}));function kt(xt){switch(xt){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return vt.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return vt.STATE_INIT;case 2:case"STATE_TRYOPEN":return vt.STATE_TRYOPEN;case 3:case"STATE_OPEN":return vt.STATE_OPEN;case-1:case"UNRECOGNIZED":default:return vt.UNRECOGNIZED}}d.stateFromJSON=kt;function Pt(xt){switch(xt){case vt.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case vt.STATE_INIT:return"STATE_INIT";case vt.STATE_TRYOPEN:return"STATE_TRYOPEN";case vt.STATE_OPEN:return"STATE_OPEN";case vt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.stateToJSON=Pt;function Jt(){return{clientId:"",versions:[],state:0,counterparty:void 0,delayPeriod:ht.Long.UZERO}}d.ConnectionEnd={encode(xt,Et=mt.Writer.create()){xt.clientId!==""&&Et.uint32(10).string(xt.clientId);for(const Bt of xt.versions)d.Version.encode(Bt,Et.uint32(18).fork()).ldelim();return xt.state!==0&&Et.uint32(24).int32(xt.state),xt.counterparty!==void 0&&d.Counterparty.encode(xt.counterparty,Et.uint32(34).fork()).ldelim(),xt.delayPeriod.isZero()||Et.uint32(40).uint64(xt.delayPeriod),Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Jt();for(;Bt.pos>>3){case 1:Mt.clientId=Bt.string();break;case 2:Mt.versions.push(d.Version.decode(Bt,Bt.uint32()));break;case 3:Mt.state=Bt.int32();break;case 4:Mt.counterparty=d.Counterparty.decode(Bt,Bt.uint32());break;case 5:Mt.delayPeriod=Bt.uint64();break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{clientId:(0,ht.isSet)(xt.clientId)?String(xt.clientId):"",versions:Array.isArray(xt==null?void 0:xt.versions)?xt.versions.map(Et=>d.Version.fromJSON(Et)):[],state:(0,ht.isSet)(xt.state)?kt(xt.state):0,counterparty:(0,ht.isSet)(xt.counterparty)?d.Counterparty.fromJSON(xt.counterparty):void 0,delayPeriod:(0,ht.isSet)(xt.delayPeriod)?ht.Long.fromValue(xt.delayPeriod):ht.Long.UZERO}},toJSON(xt){const Et={};return xt.clientId!==void 0&&(Et.clientId=xt.clientId),xt.versions?Et.versions=xt.versions.map(Bt=>Bt?d.Version.toJSON(Bt):void 0):Et.versions=[],xt.state!==void 0&&(Et.state=Pt(xt.state)),xt.counterparty!==void 0&&(Et.counterparty=xt.counterparty?d.Counterparty.toJSON(xt.counterparty):void 0),xt.delayPeriod!==void 0&&(Et.delayPeriod=(xt.delayPeriod||ht.Long.UZERO).toString()),Et},fromPartial(xt){var Bt;const Et=Jt();return Et.clientId=xt.clientId??"",Et.versions=((Bt=xt.versions)==null?void 0:Bt.map(Tt=>d.Version.fromPartial(Tt)))||[],Et.state=xt.state??0,Et.counterparty=xt.counterparty!==void 0&&xt.counterparty!==null?d.Counterparty.fromPartial(xt.counterparty):void 0,Et.delayPeriod=xt.delayPeriod!==void 0&&xt.delayPeriod!==null?ht.Long.fromValue(xt.delayPeriod):ht.Long.UZERO,Et}};function Zt(){return{id:"",clientId:"",versions:[],state:0,counterparty:void 0,delayPeriod:ht.Long.UZERO}}d.IdentifiedConnection={encode(xt,Et=mt.Writer.create()){xt.id!==""&&Et.uint32(10).string(xt.id),xt.clientId!==""&&Et.uint32(18).string(xt.clientId);for(const Bt of xt.versions)d.Version.encode(Bt,Et.uint32(26).fork()).ldelim();return xt.state!==0&&Et.uint32(32).int32(xt.state),xt.counterparty!==void 0&&d.Counterparty.encode(xt.counterparty,Et.uint32(42).fork()).ldelim(),xt.delayPeriod.isZero()||Et.uint32(48).uint64(xt.delayPeriod),Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Zt();for(;Bt.pos>>3){case 1:Mt.id=Bt.string();break;case 2:Mt.clientId=Bt.string();break;case 3:Mt.versions.push(d.Version.decode(Bt,Bt.uint32()));break;case 4:Mt.state=Bt.int32();break;case 5:Mt.counterparty=d.Counterparty.decode(Bt,Bt.uint32());break;case 6:Mt.delayPeriod=Bt.uint64();break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{id:(0,ht.isSet)(xt.id)?String(xt.id):"",clientId:(0,ht.isSet)(xt.clientId)?String(xt.clientId):"",versions:Array.isArray(xt==null?void 0:xt.versions)?xt.versions.map(Et=>d.Version.fromJSON(Et)):[],state:(0,ht.isSet)(xt.state)?kt(xt.state):0,counterparty:(0,ht.isSet)(xt.counterparty)?d.Counterparty.fromJSON(xt.counterparty):void 0,delayPeriod:(0,ht.isSet)(xt.delayPeriod)?ht.Long.fromValue(xt.delayPeriod):ht.Long.UZERO}},toJSON(xt){const Et={};return xt.id!==void 0&&(Et.id=xt.id),xt.clientId!==void 0&&(Et.clientId=xt.clientId),xt.versions?Et.versions=xt.versions.map(Bt=>Bt?d.Version.toJSON(Bt):void 0):Et.versions=[],xt.state!==void 0&&(Et.state=Pt(xt.state)),xt.counterparty!==void 0&&(Et.counterparty=xt.counterparty?d.Counterparty.toJSON(xt.counterparty):void 0),xt.delayPeriod!==void 0&&(Et.delayPeriod=(xt.delayPeriod||ht.Long.UZERO).toString()),Et},fromPartial(xt){var Bt;const Et=Zt();return Et.id=xt.id??"",Et.clientId=xt.clientId??"",Et.versions=((Bt=xt.versions)==null?void 0:Bt.map(Tt=>d.Version.fromPartial(Tt)))||[],Et.state=xt.state??0,Et.counterparty=xt.counterparty!==void 0&&xt.counterparty!==null?d.Counterparty.fromPartial(xt.counterparty):void 0,Et.delayPeriod=xt.delayPeriod!==void 0&&xt.delayPeriod!==null?ht.Long.fromValue(xt.delayPeriod):ht.Long.UZERO,Et}};function Rt(){return{clientId:"",connectionId:"",prefix:void 0}}d.Counterparty={encode(xt,Et=mt.Writer.create()){return xt.clientId!==""&&Et.uint32(10).string(xt.clientId),xt.connectionId!==""&&Et.uint32(18).string(xt.connectionId),xt.prefix!==void 0&<.MerklePrefix.encode(xt.prefix,Et.uint32(26).fork()).ldelim(),Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Rt();for(;Bt.pos>>3){case 1:Mt.clientId=Bt.string();break;case 2:Mt.connectionId=Bt.string();break;case 3:Mt.prefix=lt.MerklePrefix.decode(Bt,Bt.uint32());break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{clientId:(0,ht.isSet)(xt.clientId)?String(xt.clientId):"",connectionId:(0,ht.isSet)(xt.connectionId)?String(xt.connectionId):"",prefix:(0,ht.isSet)(xt.prefix)?lt.MerklePrefix.fromJSON(xt.prefix):void 0}},toJSON(xt){const Et={};return xt.clientId!==void 0&&(Et.clientId=xt.clientId),xt.connectionId!==void 0&&(Et.connectionId=xt.connectionId),xt.prefix!==void 0&&(Et.prefix=xt.prefix?lt.MerklePrefix.toJSON(xt.prefix):void 0),Et},fromPartial(xt){const Et=Rt();return Et.clientId=xt.clientId??"",Et.connectionId=xt.connectionId??"",Et.prefix=xt.prefix!==void 0&&xt.prefix!==null?lt.MerklePrefix.fromPartial(xt.prefix):void 0,Et}};function nn(){return{paths:[]}}d.ClientPaths={encode(xt,Et=mt.Writer.create()){for(const Bt of xt.paths)Et.uint32(10).string(Bt);return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=nn();for(;Bt.pos>>3){case 1:Mt.paths.push(Bt.string());break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{paths:Array.isArray(xt==null?void 0:xt.paths)?xt.paths.map(Et=>String(Et)):[]}},toJSON(xt){const Et={};return xt.paths?Et.paths=xt.paths.map(Bt=>Bt):Et.paths=[],Et},fromPartial(xt){var Bt;const Et=nn();return Et.paths=((Bt=xt.paths)==null?void 0:Bt.map(Tt=>Tt))||[],Et}};function Qt(){return{clientId:"",paths:[]}}d.ConnectionPaths={encode(xt,Et=mt.Writer.create()){xt.clientId!==""&&Et.uint32(10).string(xt.clientId);for(const Bt of xt.paths)Et.uint32(18).string(Bt);return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Qt();for(;Bt.pos>>3){case 1:Mt.clientId=Bt.string();break;case 2:Mt.paths.push(Bt.string());break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{clientId:(0,ht.isSet)(xt.clientId)?String(xt.clientId):"",paths:Array.isArray(xt==null?void 0:xt.paths)?xt.paths.map(Et=>String(Et)):[]}},toJSON(xt){const Et={};return xt.clientId!==void 0&&(Et.clientId=xt.clientId),xt.paths?Et.paths=xt.paths.map(Bt=>Bt):Et.paths=[],Et},fromPartial(xt){var Bt;const Et=Qt();return Et.clientId=xt.clientId??"",Et.paths=((Bt=xt.paths)==null?void 0:Bt.map(Tt=>Tt))||[],Et}};function wt(){return{identifier:"",features:[]}}d.Version={encode(xt,Et=mt.Writer.create()){xt.identifier!==""&&Et.uint32(10).string(xt.identifier);for(const Bt of xt.features)Et.uint32(18).string(Bt);return Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=wt();for(;Bt.pos>>3){case 1:Mt.identifier=Bt.string();break;case 2:Mt.features.push(Bt.string());break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{identifier:(0,ht.isSet)(xt.identifier)?String(xt.identifier):"",features:Array.isArray(xt==null?void 0:xt.features)?xt.features.map(Et=>String(Et)):[]}},toJSON(xt){const Et={};return xt.identifier!==void 0&&(Et.identifier=xt.identifier),xt.features?Et.features=xt.features.map(Bt=>Bt):Et.features=[],Et},fromPartial(xt){var Bt;const Et=wt();return Et.identifier=xt.identifier??"",Et.features=((Bt=xt.features)==null?void 0:Bt.map(Tt=>Tt))||[],Et}};function Nt(){return{maxExpectedTimePerBlock:ht.Long.UZERO}}d.Params={encode(xt,Et=mt.Writer.create()){return xt.maxExpectedTimePerBlock.isZero()||Et.uint32(8).uint64(xt.maxExpectedTimePerBlock),Et},decode(xt,Et){const Bt=xt instanceof mt.Reader?xt:new mt.Reader(xt);let Tt=Et===void 0?Bt.len:Bt.pos+Et;const Mt=Nt();for(;Bt.pos>>3){case 1:Mt.maxExpectedTimePerBlock=Bt.uint64();break;default:Bt.skipType(jt&7);break}}return Mt},fromJSON(xt){return{maxExpectedTimePerBlock:(0,ht.isSet)(xt.maxExpectedTimePerBlock)?ht.Long.fromValue(xt.maxExpectedTimePerBlock):ht.Long.UZERO}},toJSON(xt){const Et={};return xt.maxExpectedTimePerBlock!==void 0&&(Et.maxExpectedTimePerBlock=(xt.maxExpectedTimePerBlock||ht.Long.UZERO).toString()),Et},fromPartial(xt){const Et=Nt();return Et.maxExpectedTimePerBlock=xt.maxExpectedTimePerBlock!==void 0&&xt.maxExpectedTimePerBlock!==null?ht.Long.fromValue(xt.maxExpectedTimePerBlock):ht.Long.UZERO,Et}}})(connection);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt);var jt=Object.getOwnPropertyDescriptor(Bt,Tt);(!jt||("get"in jt?!Bt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Bt[Tt]}}),Object.defineProperty(Et,Mt,jt)}:function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt),Et[Mt]=Bt[Tt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Et,Bt){Object.defineProperty(Et,"default",{enumerable:!0,value:Bt})}:function(Et,Bt){Et.default=Bt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Et){if(Et&&Et.__esModule)return Et;var Bt={};if(Et!=null)for(var Tt in Et)Tt!=="default"&&Object.prototype.hasOwnProperty.call(Et,Tt)&&b(Bt,Et,Tt);return dt(Bt,Et),Bt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgConnectionOpenConfirmResponse=d.MsgConnectionOpenConfirm=d.MsgConnectionOpenAckResponse=d.MsgConnectionOpenAck=d.MsgConnectionOpenTryResponse=d.MsgConnectionOpenTry=d.MsgConnectionOpenInitResponse=d.MsgConnectionOpenInit=d.protobufPackage=void 0;const lt=connection,ht=any$1,mt=client$1,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="ibc.core.connection.v1";function Pt(){return{clientId:"",counterparty:void 0,version:void 0,delayPeriod:vt.Long.UZERO,signer:""}}d.MsgConnectionOpenInit={encode(Et,Bt=kt.Writer.create()){return Et.clientId!==""&&Bt.uint32(10).string(Et.clientId),Et.counterparty!==void 0&<.Counterparty.encode(Et.counterparty,Bt.uint32(18).fork()).ldelim(),Et.version!==void 0&<.Version.encode(Et.version,Bt.uint32(26).fork()).ldelim(),Et.delayPeriod.isZero()||Bt.uint32(32).uint64(Et.delayPeriod),Et.signer!==""&&Bt.uint32(42).string(Et.signer),Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.clientId=Tt.string();break;case 2:jt.counterparty=lt.Counterparty.decode(Tt,Tt.uint32());break;case 3:jt.version=lt.Version.decode(Tt,Tt.uint32());break;case 4:jt.delayPeriod=Tt.uint64();break;case 5:jt.signer=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{clientId:(0,vt.isSet)(Et.clientId)?String(Et.clientId):"",counterparty:(0,vt.isSet)(Et.counterparty)?lt.Counterparty.fromJSON(Et.counterparty):void 0,version:(0,vt.isSet)(Et.version)?lt.Version.fromJSON(Et.version):void 0,delayPeriod:(0,vt.isSet)(Et.delayPeriod)?vt.Long.fromValue(Et.delayPeriod):vt.Long.UZERO,signer:(0,vt.isSet)(Et.signer)?String(Et.signer):""}},toJSON(Et){const Bt={};return Et.clientId!==void 0&&(Bt.clientId=Et.clientId),Et.counterparty!==void 0&&(Bt.counterparty=Et.counterparty?lt.Counterparty.toJSON(Et.counterparty):void 0),Et.version!==void 0&&(Bt.version=Et.version?lt.Version.toJSON(Et.version):void 0),Et.delayPeriod!==void 0&&(Bt.delayPeriod=(Et.delayPeriod||vt.Long.UZERO).toString()),Et.signer!==void 0&&(Bt.signer=Et.signer),Bt},fromPartial(Et){const Bt=Pt();return Bt.clientId=Et.clientId??"",Bt.counterparty=Et.counterparty!==void 0&&Et.counterparty!==null?lt.Counterparty.fromPartial(Et.counterparty):void 0,Bt.version=Et.version!==void 0&&Et.version!==null?lt.Version.fromPartial(Et.version):void 0,Bt.delayPeriod=Et.delayPeriod!==void 0&&Et.delayPeriod!==null?vt.Long.fromValue(Et.delayPeriod):vt.Long.UZERO,Bt.signer=Et.signer??"",Bt}};function Jt(){return{}}d.MsgConnectionOpenInitResponse={encode(Et,Bt=kt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Jt()}};function Zt(){return{clientId:"",previousConnectionId:"",clientState:void 0,counterparty:void 0,delayPeriod:vt.Long.UZERO,counterpartyVersions:[],proofHeight:void 0,proofInit:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:void 0,signer:"",hostConsensusStateProof:new Uint8Array}}d.MsgConnectionOpenTry={encode(Et,Bt=kt.Writer.create()){Et.clientId!==""&&Bt.uint32(10).string(Et.clientId),Et.previousConnectionId!==""&&Bt.uint32(18).string(Et.previousConnectionId),Et.clientState!==void 0&&ht.Any.encode(Et.clientState,Bt.uint32(26).fork()).ldelim(),Et.counterparty!==void 0&<.Counterparty.encode(Et.counterparty,Bt.uint32(34).fork()).ldelim(),Et.delayPeriod.isZero()||Bt.uint32(40).uint64(Et.delayPeriod);for(const Tt of Et.counterpartyVersions)lt.Version.encode(Tt,Bt.uint32(50).fork()).ldelim();return Et.proofHeight!==void 0&&mt.Height.encode(Et.proofHeight,Bt.uint32(58).fork()).ldelim(),Et.proofInit.length!==0&&Bt.uint32(66).bytes(Et.proofInit),Et.proofClient.length!==0&&Bt.uint32(74).bytes(Et.proofClient),Et.proofConsensus.length!==0&&Bt.uint32(82).bytes(Et.proofConsensus),Et.consensusHeight!==void 0&&mt.Height.encode(Et.consensusHeight,Bt.uint32(90).fork()).ldelim(),Et.signer!==""&&Bt.uint32(98).string(Et.signer),Et.hostConsensusStateProof.length!==0&&Bt.uint32(106).bytes(Et.hostConsensusStateProof),Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.clientId=Tt.string();break;case 2:jt.previousConnectionId=Tt.string();break;case 3:jt.clientState=ht.Any.decode(Tt,Tt.uint32());break;case 4:jt.counterparty=lt.Counterparty.decode(Tt,Tt.uint32());break;case 5:jt.delayPeriod=Tt.uint64();break;case 6:jt.counterpartyVersions.push(lt.Version.decode(Tt,Tt.uint32()));break;case 7:jt.proofHeight=mt.Height.decode(Tt,Tt.uint32());break;case 8:jt.proofInit=Tt.bytes();break;case 9:jt.proofClient=Tt.bytes();break;case 10:jt.proofConsensus=Tt.bytes();break;case 11:jt.consensusHeight=mt.Height.decode(Tt,Tt.uint32());break;case 12:jt.signer=Tt.string();break;case 13:jt.hostConsensusStateProof=Tt.bytes();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{clientId:(0,vt.isSet)(Et.clientId)?String(Et.clientId):"",previousConnectionId:(0,vt.isSet)(Et.previousConnectionId)?String(Et.previousConnectionId):"",clientState:(0,vt.isSet)(Et.clientState)?ht.Any.fromJSON(Et.clientState):void 0,counterparty:(0,vt.isSet)(Et.counterparty)?lt.Counterparty.fromJSON(Et.counterparty):void 0,delayPeriod:(0,vt.isSet)(Et.delayPeriod)?vt.Long.fromValue(Et.delayPeriod):vt.Long.UZERO,counterpartyVersions:Array.isArray(Et==null?void 0:Et.counterpartyVersions)?Et.counterpartyVersions.map(Bt=>lt.Version.fromJSON(Bt)):[],proofHeight:(0,vt.isSet)(Et.proofHeight)?mt.Height.fromJSON(Et.proofHeight):void 0,proofInit:(0,vt.isSet)(Et.proofInit)?(0,vt.bytesFromBase64)(Et.proofInit):new Uint8Array,proofClient:(0,vt.isSet)(Et.proofClient)?(0,vt.bytesFromBase64)(Et.proofClient):new Uint8Array,proofConsensus:(0,vt.isSet)(Et.proofConsensus)?(0,vt.bytesFromBase64)(Et.proofConsensus):new Uint8Array,consensusHeight:(0,vt.isSet)(Et.consensusHeight)?mt.Height.fromJSON(Et.consensusHeight):void 0,signer:(0,vt.isSet)(Et.signer)?String(Et.signer):"",hostConsensusStateProof:(0,vt.isSet)(Et.hostConsensusStateProof)?(0,vt.bytesFromBase64)(Et.hostConsensusStateProof):new Uint8Array}},toJSON(Et){const Bt={};return Et.clientId!==void 0&&(Bt.clientId=Et.clientId),Et.previousConnectionId!==void 0&&(Bt.previousConnectionId=Et.previousConnectionId),Et.clientState!==void 0&&(Bt.clientState=Et.clientState?ht.Any.toJSON(Et.clientState):void 0),Et.counterparty!==void 0&&(Bt.counterparty=Et.counterparty?lt.Counterparty.toJSON(Et.counterparty):void 0),Et.delayPeriod!==void 0&&(Bt.delayPeriod=(Et.delayPeriod||vt.Long.UZERO).toString()),Et.counterpartyVersions?Bt.counterpartyVersions=Et.counterpartyVersions.map(Tt=>Tt?lt.Version.toJSON(Tt):void 0):Bt.counterpartyVersions=[],Et.proofHeight!==void 0&&(Bt.proofHeight=Et.proofHeight?mt.Height.toJSON(Et.proofHeight):void 0),Et.proofInit!==void 0&&(Bt.proofInit=(0,vt.base64FromBytes)(Et.proofInit!==void 0?Et.proofInit:new Uint8Array)),Et.proofClient!==void 0&&(Bt.proofClient=(0,vt.base64FromBytes)(Et.proofClient!==void 0?Et.proofClient:new Uint8Array)),Et.proofConsensus!==void 0&&(Bt.proofConsensus=(0,vt.base64FromBytes)(Et.proofConsensus!==void 0?Et.proofConsensus:new Uint8Array)),Et.consensusHeight!==void 0&&(Bt.consensusHeight=Et.consensusHeight?mt.Height.toJSON(Et.consensusHeight):void 0),Et.signer!==void 0&&(Bt.signer=Et.signer),Et.hostConsensusStateProof!==void 0&&(Bt.hostConsensusStateProof=(0,vt.base64FromBytes)(Et.hostConsensusStateProof!==void 0?Et.hostConsensusStateProof:new Uint8Array)),Bt},fromPartial(Et){var Tt;const Bt=Zt();return Bt.clientId=Et.clientId??"",Bt.previousConnectionId=Et.previousConnectionId??"",Bt.clientState=Et.clientState!==void 0&&Et.clientState!==null?ht.Any.fromPartial(Et.clientState):void 0,Bt.counterparty=Et.counterparty!==void 0&&Et.counterparty!==null?lt.Counterparty.fromPartial(Et.counterparty):void 0,Bt.delayPeriod=Et.delayPeriod!==void 0&&Et.delayPeriod!==null?vt.Long.fromValue(Et.delayPeriod):vt.Long.UZERO,Bt.counterpartyVersions=((Tt=Et.counterpartyVersions)==null?void 0:Tt.map(Mt=>lt.Version.fromPartial(Mt)))||[],Bt.proofHeight=Et.proofHeight!==void 0&&Et.proofHeight!==null?mt.Height.fromPartial(Et.proofHeight):void 0,Bt.proofInit=Et.proofInit??new Uint8Array,Bt.proofClient=Et.proofClient??new Uint8Array,Bt.proofConsensus=Et.proofConsensus??new Uint8Array,Bt.consensusHeight=Et.consensusHeight!==void 0&&Et.consensusHeight!==null?mt.Height.fromPartial(Et.consensusHeight):void 0,Bt.signer=Et.signer??"",Bt.hostConsensusStateProof=Et.hostConsensusStateProof??new Uint8Array,Bt}};function Rt(){return{}}d.MsgConnectionOpenTryResponse={encode(Et,Bt=kt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Rt()}};function nn(){return{connectionId:"",counterpartyConnectionId:"",version:void 0,clientState:void 0,proofHeight:void 0,proofTry:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:void 0,signer:"",hostConsensusStateProof:new Uint8Array}}d.MsgConnectionOpenAck={encode(Et,Bt=kt.Writer.create()){return Et.connectionId!==""&&Bt.uint32(10).string(Et.connectionId),Et.counterpartyConnectionId!==""&&Bt.uint32(18).string(Et.counterpartyConnectionId),Et.version!==void 0&<.Version.encode(Et.version,Bt.uint32(26).fork()).ldelim(),Et.clientState!==void 0&&ht.Any.encode(Et.clientState,Bt.uint32(34).fork()).ldelim(),Et.proofHeight!==void 0&&mt.Height.encode(Et.proofHeight,Bt.uint32(42).fork()).ldelim(),Et.proofTry.length!==0&&Bt.uint32(50).bytes(Et.proofTry),Et.proofClient.length!==0&&Bt.uint32(58).bytes(Et.proofClient),Et.proofConsensus.length!==0&&Bt.uint32(66).bytes(Et.proofConsensus),Et.consensusHeight!==void 0&&mt.Height.encode(Et.consensusHeight,Bt.uint32(74).fork()).ldelim(),Et.signer!==""&&Bt.uint32(82).string(Et.signer),Et.hostConsensusStateProof.length!==0&&Bt.uint32(90).bytes(Et.hostConsensusStateProof),Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.connectionId=Tt.string();break;case 2:jt.counterpartyConnectionId=Tt.string();break;case 3:jt.version=lt.Version.decode(Tt,Tt.uint32());break;case 4:jt.clientState=ht.Any.decode(Tt,Tt.uint32());break;case 5:jt.proofHeight=mt.Height.decode(Tt,Tt.uint32());break;case 6:jt.proofTry=Tt.bytes();break;case 7:jt.proofClient=Tt.bytes();break;case 8:jt.proofConsensus=Tt.bytes();break;case 9:jt.consensusHeight=mt.Height.decode(Tt,Tt.uint32());break;case 10:jt.signer=Tt.string();break;case 11:jt.hostConsensusStateProof=Tt.bytes();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{connectionId:(0,vt.isSet)(Et.connectionId)?String(Et.connectionId):"",counterpartyConnectionId:(0,vt.isSet)(Et.counterpartyConnectionId)?String(Et.counterpartyConnectionId):"",version:(0,vt.isSet)(Et.version)?lt.Version.fromJSON(Et.version):void 0,clientState:(0,vt.isSet)(Et.clientState)?ht.Any.fromJSON(Et.clientState):void 0,proofHeight:(0,vt.isSet)(Et.proofHeight)?mt.Height.fromJSON(Et.proofHeight):void 0,proofTry:(0,vt.isSet)(Et.proofTry)?(0,vt.bytesFromBase64)(Et.proofTry):new Uint8Array,proofClient:(0,vt.isSet)(Et.proofClient)?(0,vt.bytesFromBase64)(Et.proofClient):new Uint8Array,proofConsensus:(0,vt.isSet)(Et.proofConsensus)?(0,vt.bytesFromBase64)(Et.proofConsensus):new Uint8Array,consensusHeight:(0,vt.isSet)(Et.consensusHeight)?mt.Height.fromJSON(Et.consensusHeight):void 0,signer:(0,vt.isSet)(Et.signer)?String(Et.signer):"",hostConsensusStateProof:(0,vt.isSet)(Et.hostConsensusStateProof)?(0,vt.bytesFromBase64)(Et.hostConsensusStateProof):new Uint8Array}},toJSON(Et){const Bt={};return Et.connectionId!==void 0&&(Bt.connectionId=Et.connectionId),Et.counterpartyConnectionId!==void 0&&(Bt.counterpartyConnectionId=Et.counterpartyConnectionId),Et.version!==void 0&&(Bt.version=Et.version?lt.Version.toJSON(Et.version):void 0),Et.clientState!==void 0&&(Bt.clientState=Et.clientState?ht.Any.toJSON(Et.clientState):void 0),Et.proofHeight!==void 0&&(Bt.proofHeight=Et.proofHeight?mt.Height.toJSON(Et.proofHeight):void 0),Et.proofTry!==void 0&&(Bt.proofTry=(0,vt.base64FromBytes)(Et.proofTry!==void 0?Et.proofTry:new Uint8Array)),Et.proofClient!==void 0&&(Bt.proofClient=(0,vt.base64FromBytes)(Et.proofClient!==void 0?Et.proofClient:new Uint8Array)),Et.proofConsensus!==void 0&&(Bt.proofConsensus=(0,vt.base64FromBytes)(Et.proofConsensus!==void 0?Et.proofConsensus:new Uint8Array)),Et.consensusHeight!==void 0&&(Bt.consensusHeight=Et.consensusHeight?mt.Height.toJSON(Et.consensusHeight):void 0),Et.signer!==void 0&&(Bt.signer=Et.signer),Et.hostConsensusStateProof!==void 0&&(Bt.hostConsensusStateProof=(0,vt.base64FromBytes)(Et.hostConsensusStateProof!==void 0?Et.hostConsensusStateProof:new Uint8Array)),Bt},fromPartial(Et){const Bt=nn();return Bt.connectionId=Et.connectionId??"",Bt.counterpartyConnectionId=Et.counterpartyConnectionId??"",Bt.version=Et.version!==void 0&&Et.version!==null?lt.Version.fromPartial(Et.version):void 0,Bt.clientState=Et.clientState!==void 0&&Et.clientState!==null?ht.Any.fromPartial(Et.clientState):void 0,Bt.proofHeight=Et.proofHeight!==void 0&&Et.proofHeight!==null?mt.Height.fromPartial(Et.proofHeight):void 0,Bt.proofTry=Et.proofTry??new Uint8Array,Bt.proofClient=Et.proofClient??new Uint8Array,Bt.proofConsensus=Et.proofConsensus??new Uint8Array,Bt.consensusHeight=Et.consensusHeight!==void 0&&Et.consensusHeight!==null?mt.Height.fromPartial(Et.consensusHeight):void 0,Bt.signer=Et.signer??"",Bt.hostConsensusStateProof=Et.hostConsensusStateProof??new Uint8Array,Bt}};function Qt(){return{}}d.MsgConnectionOpenAckResponse={encode(Et,Bt=kt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Qt()}};function wt(){return{connectionId:"",proofAck:new Uint8Array,proofHeight:void 0,signer:""}}d.MsgConnectionOpenConfirm={encode(Et,Bt=kt.Writer.create()){return Et.connectionId!==""&&Bt.uint32(10).string(Et.connectionId),Et.proofAck.length!==0&&Bt.uint32(18).bytes(Et.proofAck),Et.proofHeight!==void 0&&mt.Height.encode(Et.proofHeight,Bt.uint32(26).fork()).ldelim(),Et.signer!==""&&Bt.uint32(34).string(Et.signer),Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.connectionId=Tt.string();break;case 2:jt.proofAck=Tt.bytes();break;case 3:jt.proofHeight=mt.Height.decode(Tt,Tt.uint32());break;case 4:jt.signer=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{connectionId:(0,vt.isSet)(Et.connectionId)?String(Et.connectionId):"",proofAck:(0,vt.isSet)(Et.proofAck)?(0,vt.bytesFromBase64)(Et.proofAck):new Uint8Array,proofHeight:(0,vt.isSet)(Et.proofHeight)?mt.Height.fromJSON(Et.proofHeight):void 0,signer:(0,vt.isSet)(Et.signer)?String(Et.signer):""}},toJSON(Et){const Bt={};return Et.connectionId!==void 0&&(Bt.connectionId=Et.connectionId),Et.proofAck!==void 0&&(Bt.proofAck=(0,vt.base64FromBytes)(Et.proofAck!==void 0?Et.proofAck:new Uint8Array)),Et.proofHeight!==void 0&&(Bt.proofHeight=Et.proofHeight?mt.Height.toJSON(Et.proofHeight):void 0),Et.signer!==void 0&&(Bt.signer=Et.signer),Bt},fromPartial(Et){const Bt=wt();return Bt.connectionId=Et.connectionId??"",Bt.proofAck=Et.proofAck??new Uint8Array,Bt.proofHeight=Et.proofHeight!==void 0&&Et.proofHeight!==null?mt.Height.fromPartial(Et.proofHeight):void 0,Bt.signer=Et.signer??"",Bt}};function Nt(){return{}}d.MsgConnectionOpenConfirmResponse={encode(Et,Bt=kt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof kt.Reader?Et:new kt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Nt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Nt()}};class xt{constructor(Bt){this.rpc=Bt,this.ConnectionOpenInit=this.ConnectionOpenInit.bind(this),this.ConnectionOpenTry=this.ConnectionOpenTry.bind(this),this.ConnectionOpenAck=this.ConnectionOpenAck.bind(this),this.ConnectionOpenConfirm=this.ConnectionOpenConfirm.bind(this)}ConnectionOpenInit(Bt){const Tt=d.MsgConnectionOpenInit.encode(Bt).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",Tt).then(jt=>d.MsgConnectionOpenInitResponse.decode(new kt.Reader(jt)))}ConnectionOpenTry(Bt){const Tt=d.MsgConnectionOpenTry.encode(Bt).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",Tt).then(jt=>d.MsgConnectionOpenTryResponse.decode(new kt.Reader(jt)))}ConnectionOpenAck(Bt){const Tt=d.MsgConnectionOpenAck.encode(Bt).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",Tt).then(jt=>d.MsgConnectionOpenAckResponse.decode(new kt.Reader(jt)))}ConnectionOpenConfirm(Bt){const Tt=d.MsgConnectionOpenConfirm.encode(Bt).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",Tt).then(jt=>d.MsgConnectionOpenConfirmResponse.decode(new kt.Reader(jt)))}}d.MsgClientImpl=xt})(tx$g);Object.defineProperty(messages$4,"__esModule",{value:!0});messages$4.isMsgTransferEncodeObject=messages$4.ibcTypes=void 0;const tx_1$7=tx$j,tx_2$3=tx$i,tx_3$2=tx$h,tx_4$2=tx$g;messages$4.ibcTypes=[["/ibc.applications.transfer.v1.MsgTransfer",tx_1$7.MsgTransfer],["/ibc.core.channel.v1.MsgAcknowledgement",tx_2$3.MsgAcknowledgement],["/ibc.core.channel.v1.MsgChannelCloseConfirm",tx_2$3.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",tx_2$3.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelOpenAck",tx_2$3.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",tx_2$3.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelOpenInit",tx_2$3.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",tx_2$3.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgRecvPacket",tx_2$3.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",tx_2$3.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",tx_2$3.MsgTimeoutOnClose],["/ibc.core.client.v1.MsgCreateClient",tx_3$2.MsgCreateClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",tx_3$2.MsgSubmitMisbehaviour],["/ibc.core.client.v1.MsgUpdateClient",tx_3$2.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",tx_3$2.MsgUpgradeClient],["/ibc.core.connection.v1.MsgConnectionOpenAck",tx_4$2.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",tx_4$2.MsgConnectionOpenConfirm],["/ibc.core.connection.v1.MsgConnectionOpenInit",tx_4$2.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",tx_4$2.MsgConnectionOpenTry]];function isMsgTransferEncodeObject(d){return d.typeUrl==="/ibc.applications.transfer.v1.MsgTransfer"}messages$4.isMsgTransferEncodeObject=isMsgTransferEncodeObject;var queries$6={},query$g={},transfer={},__createBinding$l=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$l=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$l=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$l(b,d,dt);return __setModuleDefault$l(b,d),b};Object.defineProperty(transfer,"__esModule",{value:!0});transfer.Params=transfer.DenomTrace=transfer.protobufPackage=void 0;const _m0$f=__importStar$l(minimal$4),helpers_1$e=helpers$1;transfer.protobufPackage="ibc.applications.transfer.v1";function createBaseDenomTrace(){return{path:"",baseDenom:""}}transfer.DenomTrace={encode(d,b=_m0$f.Writer.create()){return d.path!==""&&b.uint32(10).string(d.path),d.baseDenom!==""&&b.uint32(18).string(d.baseDenom),b},decode(d,b){const dt=d instanceof _m0$f.Reader?d:new _m0$f.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDenomTrace();for(;dt.pos>>3){case 1:lt.path=dt.string();break;case 2:lt.baseDenom=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{path:(0,helpers_1$e.isSet)(d.path)?String(d.path):"",baseDenom:(0,helpers_1$e.isSet)(d.baseDenom)?String(d.baseDenom):""}},toJSON(d){const b={};return d.path!==void 0&&(b.path=d.path),d.baseDenom!==void 0&&(b.baseDenom=d.baseDenom),b},fromPartial(d){const b=createBaseDenomTrace();return b.path=d.path??"",b.baseDenom=d.baseDenom??"",b}};function createBaseParams$6(){return{sendEnabled:!1,receiveEnabled:!1}}transfer.Params={encode(d,b=_m0$f.Writer.create()){return d.sendEnabled===!0&&b.uint32(8).bool(d.sendEnabled),d.receiveEnabled===!0&&b.uint32(16).bool(d.receiveEnabled),b},decode(d,b){const dt=d instanceof _m0$f.Reader?d:new _m0$f.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$6();for(;dt.pos>>3){case 1:lt.sendEnabled=dt.bool();break;case 2:lt.receiveEnabled=dt.bool();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{sendEnabled:(0,helpers_1$e.isSet)(d.sendEnabled)?!!d.sendEnabled:!1,receiveEnabled:(0,helpers_1$e.isSet)(d.receiveEnabled)?!!d.receiveEnabled:!1}},toJSON(d){const b={};return d.sendEnabled!==void 0&&(b.sendEnabled=d.sendEnabled),d.receiveEnabled!==void 0&&(b.receiveEnabled=d.receiveEnabled),b},fromPartial(d){const b=createBaseParams$6();return b.sendEnabled=d.sendEnabled??!1,b.receiveEnabled=d.receiveEnabled??!1,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt);var Ht=Object.getOwnPropertyDescriptor(Tt,Mt);(!Ht||("get"in Ht?!Tt.__esModule:Ht.writable||Ht.configurable))&&(Ht={enumerable:!0,get:function(){return Tt[Mt]}}),Object.defineProperty(Bt,jt,Ht)}:function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt),Bt[jt]=Tt[Mt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Bt,Tt){Object.defineProperty(Bt,"default",{enumerable:!0,value:Tt})}:function(Bt,Tt){Bt.default=Tt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Bt){if(Bt&&Bt.__esModule)return Bt;var Tt={};if(Bt!=null)for(var Mt in Bt)Mt!=="default"&&Object.prototype.hasOwnProperty.call(Bt,Mt)&&b(Tt,Bt,Mt);return dt(Tt,Bt),Tt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryEscrowAddressResponse=d.QueryEscrowAddressRequest=d.QueryDenomHashResponse=d.QueryDenomHashRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryDenomTracesResponse=d.QueryDenomTracesRequest=d.QueryDenomTraceResponse=d.QueryDenomTraceRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=transfer,mt=ct(minimal$4),vt=helpers$1;d.protobufPackage="ibc.applications.transfer.v1";function kt(){return{hash:""}}d.QueryDenomTraceRequest={encode(Bt,Tt=mt.Writer.create()){return Bt.hash!==""&&Tt.uint32(10).string(Bt.hash),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=kt();for(;Mt.pos>>3){case 1:Ht.hash=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{hash:(0,vt.isSet)(Bt.hash)?String(Bt.hash):""}},toJSON(Bt){const Tt={};return Bt.hash!==void 0&&(Tt.hash=Bt.hash),Tt},fromPartial(Bt){const Tt=kt();return Tt.hash=Bt.hash??"",Tt}};function Pt(){return{denomTrace:void 0}}d.QueryDenomTraceResponse={encode(Bt,Tt=mt.Writer.create()){return Bt.denomTrace!==void 0&&ht.DenomTrace.encode(Bt.denomTrace,Tt.uint32(10).fork()).ldelim(),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Pt();for(;Mt.pos>>3){case 1:Ht.denomTrace=ht.DenomTrace.decode(Mt,Mt.uint32());break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{denomTrace:(0,vt.isSet)(Bt.denomTrace)?ht.DenomTrace.fromJSON(Bt.denomTrace):void 0}},toJSON(Bt){const Tt={};return Bt.denomTrace!==void 0&&(Tt.denomTrace=Bt.denomTrace?ht.DenomTrace.toJSON(Bt.denomTrace):void 0),Tt},fromPartial(Bt){const Tt=Pt();return Tt.denomTrace=Bt.denomTrace!==void 0&&Bt.denomTrace!==null?ht.DenomTrace.fromPartial(Bt.denomTrace):void 0,Tt}};function Jt(){return{pagination:void 0}}d.QueryDenomTracesRequest={encode(Bt,Tt=mt.Writer.create()){return Bt.pagination!==void 0&<.PageRequest.encode(Bt.pagination,Tt.uint32(10).fork()).ldelim(),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Jt();for(;Mt.pos>>3){case 1:Ht.pagination=lt.PageRequest.decode(Mt,Mt.uint32());break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{pagination:(0,vt.isSet)(Bt.pagination)?lt.PageRequest.fromJSON(Bt.pagination):void 0}},toJSON(Bt){const Tt={};return Bt.pagination!==void 0&&(Tt.pagination=Bt.pagination?lt.PageRequest.toJSON(Bt.pagination):void 0),Tt},fromPartial(Bt){const Tt=Jt();return Tt.pagination=Bt.pagination!==void 0&&Bt.pagination!==null?lt.PageRequest.fromPartial(Bt.pagination):void 0,Tt}};function Zt(){return{denomTraces:[],pagination:void 0}}d.QueryDenomTracesResponse={encode(Bt,Tt=mt.Writer.create()){for(const Mt of Bt.denomTraces)ht.DenomTrace.encode(Mt,Tt.uint32(10).fork()).ldelim();return Bt.pagination!==void 0&<.PageResponse.encode(Bt.pagination,Tt.uint32(18).fork()).ldelim(),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Zt();for(;Mt.pos>>3){case 1:Ht.denomTraces.push(ht.DenomTrace.decode(Mt,Mt.uint32()));break;case 2:Ht.pagination=lt.PageResponse.decode(Mt,Mt.uint32());break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{denomTraces:Array.isArray(Bt==null?void 0:Bt.denomTraces)?Bt.denomTraces.map(Tt=>ht.DenomTrace.fromJSON(Tt)):[],pagination:(0,vt.isSet)(Bt.pagination)?lt.PageResponse.fromJSON(Bt.pagination):void 0}},toJSON(Bt){const Tt={};return Bt.denomTraces?Tt.denomTraces=Bt.denomTraces.map(Mt=>Mt?ht.DenomTrace.toJSON(Mt):void 0):Tt.denomTraces=[],Bt.pagination!==void 0&&(Tt.pagination=Bt.pagination?lt.PageResponse.toJSON(Bt.pagination):void 0),Tt},fromPartial(Bt){var Mt;const Tt=Zt();return Tt.denomTraces=((Mt=Bt.denomTraces)==null?void 0:Mt.map(jt=>ht.DenomTrace.fromPartial(jt)))||[],Tt.pagination=Bt.pagination!==void 0&&Bt.pagination!==null?lt.PageResponse.fromPartial(Bt.pagination):void 0,Tt}};function Rt(){return{}}d.QueryParamsRequest={encode(Bt,Tt=mt.Writer.create()){return Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Rt();for(;Mt.pos>>3){default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{}},toJSON(Bt){return{}},fromPartial(Bt){return Rt()}};function nn(){return{params:void 0}}d.QueryParamsResponse={encode(Bt,Tt=mt.Writer.create()){return Bt.params!==void 0&&ht.Params.encode(Bt.params,Tt.uint32(10).fork()).ldelim(),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=nn();for(;Mt.pos>>3){case 1:Ht.params=ht.Params.decode(Mt,Mt.uint32());break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{params:(0,vt.isSet)(Bt.params)?ht.Params.fromJSON(Bt.params):void 0}},toJSON(Bt){const Tt={};return Bt.params!==void 0&&(Tt.params=Bt.params?ht.Params.toJSON(Bt.params):void 0),Tt},fromPartial(Bt){const Tt=nn();return Tt.params=Bt.params!==void 0&&Bt.params!==null?ht.Params.fromPartial(Bt.params):void 0,Tt}};function Qt(){return{trace:""}}d.QueryDenomHashRequest={encode(Bt,Tt=mt.Writer.create()){return Bt.trace!==""&&Tt.uint32(10).string(Bt.trace),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Qt();for(;Mt.pos>>3){case 1:Ht.trace=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{trace:(0,vt.isSet)(Bt.trace)?String(Bt.trace):""}},toJSON(Bt){const Tt={};return Bt.trace!==void 0&&(Tt.trace=Bt.trace),Tt},fromPartial(Bt){const Tt=Qt();return Tt.trace=Bt.trace??"",Tt}};function wt(){return{hash:""}}d.QueryDenomHashResponse={encode(Bt,Tt=mt.Writer.create()){return Bt.hash!==""&&Tt.uint32(10).string(Bt.hash),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=wt();for(;Mt.pos>>3){case 1:Ht.hash=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{hash:(0,vt.isSet)(Bt.hash)?String(Bt.hash):""}},toJSON(Bt){const Tt={};return Bt.hash!==void 0&&(Tt.hash=Bt.hash),Tt},fromPartial(Bt){const Tt=wt();return Tt.hash=Bt.hash??"",Tt}};function Nt(){return{portId:"",channelId:""}}d.QueryEscrowAddressRequest={encode(Bt,Tt=mt.Writer.create()){return Bt.portId!==""&&Tt.uint32(10).string(Bt.portId),Bt.channelId!==""&&Tt.uint32(18).string(Bt.channelId),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Nt();for(;Mt.pos>>3){case 1:Ht.portId=Mt.string();break;case 2:Ht.channelId=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{portId:(0,vt.isSet)(Bt.portId)?String(Bt.portId):"",channelId:(0,vt.isSet)(Bt.channelId)?String(Bt.channelId):""}},toJSON(Bt){const Tt={};return Bt.portId!==void 0&&(Tt.portId=Bt.portId),Bt.channelId!==void 0&&(Tt.channelId=Bt.channelId),Tt},fromPartial(Bt){const Tt=Nt();return Tt.portId=Bt.portId??"",Tt.channelId=Bt.channelId??"",Tt}};function xt(){return{escrowAddress:""}}d.QueryEscrowAddressResponse={encode(Bt,Tt=mt.Writer.create()){return Bt.escrowAddress!==""&&Tt.uint32(10).string(Bt.escrowAddress),Tt},decode(Bt,Tt){const Mt=Bt instanceof mt.Reader?Bt:new mt.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=xt();for(;Mt.pos>>3){case 1:Ht.escrowAddress=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{escrowAddress:(0,vt.isSet)(Bt.escrowAddress)?String(Bt.escrowAddress):""}},toJSON(Bt){const Tt={};return Bt.escrowAddress!==void 0&&(Tt.escrowAddress=Bt.escrowAddress),Tt},fromPartial(Bt){const Tt=xt();return Tt.escrowAddress=Bt.escrowAddress??"",Tt}};class Et{constructor(Tt){this.rpc=Tt,this.DenomTrace=this.DenomTrace.bind(this),this.DenomTraces=this.DenomTraces.bind(this),this.Params=this.Params.bind(this),this.DenomHash=this.DenomHash.bind(this),this.EscrowAddress=this.EscrowAddress.bind(this)}DenomTrace(Tt){const Mt=d.QueryDenomTraceRequest.encode(Tt).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTrace",Mt).then(Ht=>d.QueryDenomTraceResponse.decode(new mt.Reader(Ht)))}DenomTraces(Tt={pagination:void 0}){const Mt=d.QueryDenomTracesRequest.encode(Tt).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTraces",Mt).then(Ht=>d.QueryDenomTracesResponse.decode(new mt.Reader(Ht)))}Params(Tt={}){const Mt=d.QueryParamsRequest.encode(Tt).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","Params",Mt).then(Ht=>d.QueryParamsResponse.decode(new mt.Reader(Ht)))}DenomHash(Tt){const Mt=d.QueryDenomHashRequest.encode(Tt).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomHash",Mt).then(Ht=>d.QueryDenomHashResponse.decode(new mt.Reader(Ht)))}EscrowAddress(Tt){const Mt=d.QueryEscrowAddressRequest.encode(Tt).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","EscrowAddress",Mt).then(Ht=>d.QueryEscrowAddressResponse.decode(new mt.Reader(Ht)))}}d.QueryClientImpl=Et})(query$g);var query$f={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Dt,zt,tn,An){An===void 0&&(An=tn);var gn=Object.getOwnPropertyDescriptor(zt,tn);(!gn||("get"in gn?!zt.__esModule:gn.writable||gn.configurable))&&(gn={enumerable:!0,get:function(){return zt[tn]}}),Object.defineProperty(Dt,An,gn)}:function(Dt,zt,tn,An){An===void 0&&(An=tn),Dt[An]=zt[tn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Dt,zt){Object.defineProperty(Dt,"default",{enumerable:!0,value:zt})}:function(Dt,zt){Dt.default=zt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Dt){if(Dt&&Dt.__esModule)return Dt;var zt={};if(Dt!=null)for(var tn in Dt)tn!=="default"&&Object.prototype.hasOwnProperty.call(Dt,tn)&&b(zt,Dt,tn);return dt(zt,Dt),zt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryNextSequenceReceiveResponse=d.QueryNextSequenceReceiveRequest=d.QueryUnreceivedAcksResponse=d.QueryUnreceivedAcksRequest=d.QueryUnreceivedPacketsResponse=d.QueryUnreceivedPacketsRequest=d.QueryPacketAcknowledgementsResponse=d.QueryPacketAcknowledgementsRequest=d.QueryPacketAcknowledgementResponse=d.QueryPacketAcknowledgementRequest=d.QueryPacketReceiptResponse=d.QueryPacketReceiptRequest=d.QueryPacketCommitmentsResponse=d.QueryPacketCommitmentsRequest=d.QueryPacketCommitmentResponse=d.QueryPacketCommitmentRequest=d.QueryChannelConsensusStateResponse=d.QueryChannelConsensusStateRequest=d.QueryChannelClientStateResponse=d.QueryChannelClientStateRequest=d.QueryConnectionChannelsResponse=d.QueryConnectionChannelsRequest=d.QueryChannelsResponse=d.QueryChannelsRequest=d.QueryChannelResponse=d.QueryChannelRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=channel,mt=client$1,vt=any$1,kt=helpers$1,Pt=ct(minimal$4);d.protobufPackage="ibc.core.channel.v1";function Jt(){return{portId:"",channelId:""}}d.QueryChannelRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Jt();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):""}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),zt},fromPartial(Dt){const zt=Jt();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt}};function Zt(){return{channel:void 0,proof:new Uint8Array,proofHeight:void 0}}d.QueryChannelResponse={encode(Dt,zt=Pt.Writer.create()){return Dt.channel!==void 0&&ht.Channel.encode(Dt.channel,zt.uint32(10).fork()).ldelim(),Dt.proof.length!==0&&zt.uint32(18).bytes(Dt.proof),Dt.proofHeight!==void 0&&mt.Height.encode(Dt.proofHeight,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Zt();for(;tn.pos>>3){case 1:gn.channel=ht.Channel.decode(tn,tn.uint32());break;case 2:gn.proof=tn.bytes();break;case 3:gn.proofHeight=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{channel:(0,kt.isSet)(Dt.channel)?ht.Channel.fromJSON(Dt.channel):void 0,proof:(0,kt.isSet)(Dt.proof)?(0,kt.bytesFromBase64)(Dt.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Dt.proofHeight)?mt.Height.fromJSON(Dt.proofHeight):void 0}},toJSON(Dt){const zt={};return Dt.channel!==void 0&&(zt.channel=Dt.channel?ht.Channel.toJSON(Dt.channel):void 0),Dt.proof!==void 0&&(zt.proof=(0,kt.base64FromBytes)(Dt.proof!==void 0?Dt.proof:new Uint8Array)),Dt.proofHeight!==void 0&&(zt.proofHeight=Dt.proofHeight?mt.Height.toJSON(Dt.proofHeight):void 0),zt},fromPartial(Dt){const zt=Zt();return zt.channel=Dt.channel!==void 0&&Dt.channel!==null?ht.Channel.fromPartial(Dt.channel):void 0,zt.proof=Dt.proof??new Uint8Array,zt.proofHeight=Dt.proofHeight!==void 0&&Dt.proofHeight!==null?mt.Height.fromPartial(Dt.proofHeight):void 0,zt}};function Rt(){return{pagination:void 0}}d.QueryChannelsRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Rt();for(;tn.pos>>3){case 1:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{pagination:(0,kt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Rt();return zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function nn(){return{channels:[],pagination:void 0,height:void 0}}d.QueryChannelsResponse={encode(Dt,zt=Pt.Writer.create()){for(const tn of Dt.channels)ht.IdentifiedChannel.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),Dt.height!==void 0&&mt.Height.encode(Dt.height,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=nn();for(;tn.pos>>3){case 1:gn.channels.push(ht.IdentifiedChannel.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;case 3:gn.height=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{channels:Array.isArray(Dt==null?void 0:Dt.channels)?Dt.channels.map(zt=>ht.IdentifiedChannel.fromJSON(zt)):[],pagination:(0,kt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0,height:(0,kt.isSet)(Dt.height)?mt.Height.fromJSON(Dt.height):void 0}},toJSON(Dt){const zt={};return Dt.channels?zt.channels=Dt.channels.map(tn=>tn?ht.IdentifiedChannel.toJSON(tn):void 0):zt.channels=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),Dt.height!==void 0&&(zt.height=Dt.height?mt.Height.toJSON(Dt.height):void 0),zt},fromPartial(Dt){var tn;const zt=nn();return zt.channels=((tn=Dt.channels)==null?void 0:tn.map(An=>ht.IdentifiedChannel.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt.height=Dt.height!==void 0&&Dt.height!==null?mt.Height.fromPartial(Dt.height):void 0,zt}};function Qt(){return{connection:"",pagination:void 0}}d.QueryConnectionChannelsRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.connection!==""&&zt.uint32(10).string(Dt.connection),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Qt();for(;tn.pos>>3){case 1:gn.connection=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{connection:(0,kt.isSet)(Dt.connection)?String(Dt.connection):"",pagination:(0,kt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.connection!==void 0&&(zt.connection=Dt.connection),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Qt();return zt.connection=Dt.connection??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function wt(){return{channels:[],pagination:void 0,height:void 0}}d.QueryConnectionChannelsResponse={encode(Dt,zt=Pt.Writer.create()){for(const tn of Dt.channels)ht.IdentifiedChannel.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),Dt.height!==void 0&&mt.Height.encode(Dt.height,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=wt();for(;tn.pos>>3){case 1:gn.channels.push(ht.IdentifiedChannel.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;case 3:gn.height=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{channels:Array.isArray(Dt==null?void 0:Dt.channels)?Dt.channels.map(zt=>ht.IdentifiedChannel.fromJSON(zt)):[],pagination:(0,kt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0,height:(0,kt.isSet)(Dt.height)?mt.Height.fromJSON(Dt.height):void 0}},toJSON(Dt){const zt={};return Dt.channels?zt.channels=Dt.channels.map(tn=>tn?ht.IdentifiedChannel.toJSON(tn):void 0):zt.channels=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),Dt.height!==void 0&&(zt.height=Dt.height?mt.Height.toJSON(Dt.height):void 0),zt},fromPartial(Dt){var tn;const zt=wt();return zt.channels=((tn=Dt.channels)==null?void 0:tn.map(An=>ht.IdentifiedChannel.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt.height=Dt.height!==void 0&&Dt.height!==null?mt.Height.fromPartial(Dt.height):void 0,zt}};function Nt(){return{portId:"",channelId:""}}d.QueryChannelClientStateRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Nt();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):""}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),zt},fromPartial(Dt){const zt=Nt();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt}};function xt(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:void 0}}d.QueryChannelClientStateResponse={encode(Dt,zt=Pt.Writer.create()){return Dt.identifiedClientState!==void 0&&mt.IdentifiedClientState.encode(Dt.identifiedClientState,zt.uint32(10).fork()).ldelim(),Dt.proof.length!==0&&zt.uint32(18).bytes(Dt.proof),Dt.proofHeight!==void 0&&mt.Height.encode(Dt.proofHeight,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=xt();for(;tn.pos>>3){case 1:gn.identifiedClientState=mt.IdentifiedClientState.decode(tn,tn.uint32());break;case 2:gn.proof=tn.bytes();break;case 3:gn.proofHeight=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{identifiedClientState:(0,kt.isSet)(Dt.identifiedClientState)?mt.IdentifiedClientState.fromJSON(Dt.identifiedClientState):void 0,proof:(0,kt.isSet)(Dt.proof)?(0,kt.bytesFromBase64)(Dt.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Dt.proofHeight)?mt.Height.fromJSON(Dt.proofHeight):void 0}},toJSON(Dt){const zt={};return Dt.identifiedClientState!==void 0&&(zt.identifiedClientState=Dt.identifiedClientState?mt.IdentifiedClientState.toJSON(Dt.identifiedClientState):void 0),Dt.proof!==void 0&&(zt.proof=(0,kt.base64FromBytes)(Dt.proof!==void 0?Dt.proof:new Uint8Array)),Dt.proofHeight!==void 0&&(zt.proofHeight=Dt.proofHeight?mt.Height.toJSON(Dt.proofHeight):void 0),zt},fromPartial(Dt){const zt=xt();return zt.identifiedClientState=Dt.identifiedClientState!==void 0&&Dt.identifiedClientState!==null?mt.IdentifiedClientState.fromPartial(Dt.identifiedClientState):void 0,zt.proof=Dt.proof??new Uint8Array,zt.proofHeight=Dt.proofHeight!==void 0&&Dt.proofHeight!==null?mt.Height.fromPartial(Dt.proofHeight):void 0,zt}};function Et(){return{portId:"",channelId:"",revisionNumber:kt.Long.UZERO,revisionHeight:kt.Long.UZERO}}d.QueryChannelConsensusStateRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),Dt.revisionNumber.isZero()||zt.uint32(24).uint64(Dt.revisionNumber),Dt.revisionHeight.isZero()||zt.uint32(32).uint64(Dt.revisionHeight),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Et();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:gn.revisionNumber=tn.uint64();break;case 4:gn.revisionHeight=tn.uint64();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):"",revisionNumber:(0,kt.isSet)(Dt.revisionNumber)?kt.Long.fromValue(Dt.revisionNumber):kt.Long.UZERO,revisionHeight:(0,kt.isSet)(Dt.revisionHeight)?kt.Long.fromValue(Dt.revisionHeight):kt.Long.UZERO}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.revisionNumber!==void 0&&(zt.revisionNumber=(Dt.revisionNumber||kt.Long.UZERO).toString()),Dt.revisionHeight!==void 0&&(zt.revisionHeight=(Dt.revisionHeight||kt.Long.UZERO).toString()),zt},fromPartial(Dt){const zt=Et();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.revisionNumber=Dt.revisionNumber!==void 0&&Dt.revisionNumber!==null?kt.Long.fromValue(Dt.revisionNumber):kt.Long.UZERO,zt.revisionHeight=Dt.revisionHeight!==void 0&&Dt.revisionHeight!==null?kt.Long.fromValue(Dt.revisionHeight):kt.Long.UZERO,zt}};function Bt(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:void 0}}d.QueryChannelConsensusStateResponse={encode(Dt,zt=Pt.Writer.create()){return Dt.consensusState!==void 0&&vt.Any.encode(Dt.consensusState,zt.uint32(10).fork()).ldelim(),Dt.clientId!==""&&zt.uint32(18).string(Dt.clientId),Dt.proof.length!==0&&zt.uint32(26).bytes(Dt.proof),Dt.proofHeight!==void 0&&mt.Height.encode(Dt.proofHeight,zt.uint32(34).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Bt();for(;tn.pos>>3){case 1:gn.consensusState=vt.Any.decode(tn,tn.uint32());break;case 2:gn.clientId=tn.string();break;case 3:gn.proof=tn.bytes();break;case 4:gn.proofHeight=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{consensusState:(0,kt.isSet)(Dt.consensusState)?vt.Any.fromJSON(Dt.consensusState):void 0,clientId:(0,kt.isSet)(Dt.clientId)?String(Dt.clientId):"",proof:(0,kt.isSet)(Dt.proof)?(0,kt.bytesFromBase64)(Dt.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Dt.proofHeight)?mt.Height.fromJSON(Dt.proofHeight):void 0}},toJSON(Dt){const zt={};return Dt.consensusState!==void 0&&(zt.consensusState=Dt.consensusState?vt.Any.toJSON(Dt.consensusState):void 0),Dt.clientId!==void 0&&(zt.clientId=Dt.clientId),Dt.proof!==void 0&&(zt.proof=(0,kt.base64FromBytes)(Dt.proof!==void 0?Dt.proof:new Uint8Array)),Dt.proofHeight!==void 0&&(zt.proofHeight=Dt.proofHeight?mt.Height.toJSON(Dt.proofHeight):void 0),zt},fromPartial(Dt){const zt=Bt();return zt.consensusState=Dt.consensusState!==void 0&&Dt.consensusState!==null?vt.Any.fromPartial(Dt.consensusState):void 0,zt.clientId=Dt.clientId??"",zt.proof=Dt.proof??new Uint8Array,zt.proofHeight=Dt.proofHeight!==void 0&&Dt.proofHeight!==null?mt.Height.fromPartial(Dt.proofHeight):void 0,zt}};function Tt(){return{portId:"",channelId:"",sequence:kt.Long.UZERO}}d.QueryPacketCommitmentRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),Dt.sequence.isZero()||zt.uint32(24).uint64(Dt.sequence),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Tt();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:gn.sequence=tn.uint64();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):"",sequence:(0,kt.isSet)(Dt.sequence)?kt.Long.fromValue(Dt.sequence):kt.Long.UZERO}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.sequence!==void 0&&(zt.sequence=(Dt.sequence||kt.Long.UZERO).toString()),zt},fromPartial(Dt){const zt=Tt();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.sequence=Dt.sequence!==void 0&&Dt.sequence!==null?kt.Long.fromValue(Dt.sequence):kt.Long.UZERO,zt}};function Mt(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:void 0}}d.QueryPacketCommitmentResponse={encode(Dt,zt=Pt.Writer.create()){return Dt.commitment.length!==0&&zt.uint32(10).bytes(Dt.commitment),Dt.proof.length!==0&&zt.uint32(18).bytes(Dt.proof),Dt.proofHeight!==void 0&&mt.Height.encode(Dt.proofHeight,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Mt();for(;tn.pos>>3){case 1:gn.commitment=tn.bytes();break;case 2:gn.proof=tn.bytes();break;case 3:gn.proofHeight=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{commitment:(0,kt.isSet)(Dt.commitment)?(0,kt.bytesFromBase64)(Dt.commitment):new Uint8Array,proof:(0,kt.isSet)(Dt.proof)?(0,kt.bytesFromBase64)(Dt.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Dt.proofHeight)?mt.Height.fromJSON(Dt.proofHeight):void 0}},toJSON(Dt){const zt={};return Dt.commitment!==void 0&&(zt.commitment=(0,kt.base64FromBytes)(Dt.commitment!==void 0?Dt.commitment:new Uint8Array)),Dt.proof!==void 0&&(zt.proof=(0,kt.base64FromBytes)(Dt.proof!==void 0?Dt.proof:new Uint8Array)),Dt.proofHeight!==void 0&&(zt.proofHeight=Dt.proofHeight?mt.Height.toJSON(Dt.proofHeight):void 0),zt},fromPartial(Dt){const zt=Mt();return zt.commitment=Dt.commitment??new Uint8Array,zt.proof=Dt.proof??new Uint8Array,zt.proofHeight=Dt.proofHeight!==void 0&&Dt.proofHeight!==null?mt.Height.fromPartial(Dt.proofHeight):void 0,zt}};function jt(){return{portId:"",channelId:"",pagination:void 0}}d.QueryPacketCommitmentsRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=jt();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):"",pagination:(0,kt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=jt();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Ht(){return{commitments:[],pagination:void 0,height:void 0}}d.QueryPacketCommitmentsResponse={encode(Dt,zt=Pt.Writer.create()){for(const tn of Dt.commitments)ht.PacketState.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),Dt.height!==void 0&&mt.Height.encode(Dt.height,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ht();for(;tn.pos>>3){case 1:gn.commitments.push(ht.PacketState.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;case 3:gn.height=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{commitments:Array.isArray(Dt==null?void 0:Dt.commitments)?Dt.commitments.map(zt=>ht.PacketState.fromJSON(zt)):[],pagination:(0,kt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0,height:(0,kt.isSet)(Dt.height)?mt.Height.fromJSON(Dt.height):void 0}},toJSON(Dt){const zt={};return Dt.commitments?zt.commitments=Dt.commitments.map(tn=>tn?ht.PacketState.toJSON(tn):void 0):zt.commitments=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),Dt.height!==void 0&&(zt.height=Dt.height?mt.Height.toJSON(Dt.height):void 0),zt},fromPartial(Dt){var tn;const zt=Ht();return zt.commitments=((tn=Dt.commitments)==null?void 0:tn.map(An=>ht.PacketState.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt.height=Dt.height!==void 0&&Dt.height!==null?mt.Height.fromPartial(Dt.height):void 0,zt}};function an(){return{portId:"",channelId:"",sequence:kt.Long.UZERO}}d.QueryPacketReceiptRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),Dt.sequence.isZero()||zt.uint32(24).uint64(Dt.sequence),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=an();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:gn.sequence=tn.uint64();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):"",sequence:(0,kt.isSet)(Dt.sequence)?kt.Long.fromValue(Dt.sequence):kt.Long.UZERO}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.sequence!==void 0&&(zt.sequence=(Dt.sequence||kt.Long.UZERO).toString()),zt},fromPartial(Dt){const zt=an();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.sequence=Dt.sequence!==void 0&&Dt.sequence!==null?kt.Long.fromValue(Dt.sequence):kt.Long.UZERO,zt}};function yt(){return{received:!1,proof:new Uint8Array,proofHeight:void 0}}d.QueryPacketReceiptResponse={encode(Dt,zt=Pt.Writer.create()){return Dt.received===!0&&zt.uint32(16).bool(Dt.received),Dt.proof.length!==0&&zt.uint32(26).bytes(Dt.proof),Dt.proofHeight!==void 0&&mt.Height.encode(Dt.proofHeight,zt.uint32(34).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=yt();for(;tn.pos>>3){case 2:gn.received=tn.bool();break;case 3:gn.proof=tn.bytes();break;case 4:gn.proofHeight=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{received:(0,kt.isSet)(Dt.received)?!!Dt.received:!1,proof:(0,kt.isSet)(Dt.proof)?(0,kt.bytesFromBase64)(Dt.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Dt.proofHeight)?mt.Height.fromJSON(Dt.proofHeight):void 0}},toJSON(Dt){const zt={};return Dt.received!==void 0&&(zt.received=Dt.received),Dt.proof!==void 0&&(zt.proof=(0,kt.base64FromBytes)(Dt.proof!==void 0?Dt.proof:new Uint8Array)),Dt.proofHeight!==void 0&&(zt.proofHeight=Dt.proofHeight?mt.Height.toJSON(Dt.proofHeight):void 0),zt},fromPartial(Dt){const zt=yt();return zt.received=Dt.received??!1,zt.proof=Dt.proof??new Uint8Array,zt.proofHeight=Dt.proofHeight!==void 0&&Dt.proofHeight!==null?mt.Height.fromPartial(Dt.proofHeight):void 0,zt}};function $t(){return{portId:"",channelId:"",sequence:kt.Long.UZERO}}d.QueryPacketAcknowledgementRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),Dt.sequence.isZero()||zt.uint32(24).uint64(Dt.sequence),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=$t();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:gn.sequence=tn.uint64();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):"",sequence:(0,kt.isSet)(Dt.sequence)?kt.Long.fromValue(Dt.sequence):kt.Long.UZERO}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.sequence!==void 0&&(zt.sequence=(Dt.sequence||kt.Long.UZERO).toString()),zt},fromPartial(Dt){const zt=$t();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.sequence=Dt.sequence!==void 0&&Dt.sequence!==null?kt.Long.fromValue(Dt.sequence):kt.Long.UZERO,zt}};function Yt(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:void 0}}d.QueryPacketAcknowledgementResponse={encode(Dt,zt=Pt.Writer.create()){return Dt.acknowledgement.length!==0&&zt.uint32(10).bytes(Dt.acknowledgement),Dt.proof.length!==0&&zt.uint32(18).bytes(Dt.proof),Dt.proofHeight!==void 0&&mt.Height.encode(Dt.proofHeight,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Yt();for(;tn.pos>>3){case 1:gn.acknowledgement=tn.bytes();break;case 2:gn.proof=tn.bytes();break;case 3:gn.proofHeight=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{acknowledgement:(0,kt.isSet)(Dt.acknowledgement)?(0,kt.bytesFromBase64)(Dt.acknowledgement):new Uint8Array,proof:(0,kt.isSet)(Dt.proof)?(0,kt.bytesFromBase64)(Dt.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Dt.proofHeight)?mt.Height.fromJSON(Dt.proofHeight):void 0}},toJSON(Dt){const zt={};return Dt.acknowledgement!==void 0&&(zt.acknowledgement=(0,kt.base64FromBytes)(Dt.acknowledgement!==void 0?Dt.acknowledgement:new Uint8Array)),Dt.proof!==void 0&&(zt.proof=(0,kt.base64FromBytes)(Dt.proof!==void 0?Dt.proof:new Uint8Array)),Dt.proofHeight!==void 0&&(zt.proofHeight=Dt.proofHeight?mt.Height.toJSON(Dt.proofHeight):void 0),zt},fromPartial(Dt){const zt=Yt();return zt.acknowledgement=Dt.acknowledgement??new Uint8Array,zt.proof=Dt.proof??new Uint8Array,zt.proofHeight=Dt.proofHeight!==void 0&&Dt.proofHeight!==null?mt.Height.fromPartial(Dt.proofHeight):void 0,zt}};function Kt(){return{portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]}}d.QueryPacketAcknowledgementsRequest={encode(Dt,zt=Pt.Writer.create()){Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(26).fork()).ldelim(),zt.uint32(34).fork();for(const tn of Dt.packetCommitmentSequences)zt.uint64(tn);return zt.ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Kt();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;case 4:if((Nn&7)===2){const wr=tn.uint32()+tn.pos;for(;tn.poskt.Long.fromValue(zt)):[]}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),Dt.packetCommitmentSequences?zt.packetCommitmentSequences=Dt.packetCommitmentSequences.map(tn=>(tn||kt.Long.UZERO).toString()):zt.packetCommitmentSequences=[],zt},fromPartial(Dt){var tn;const zt=Kt();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt.packetCommitmentSequences=((tn=Dt.packetCommitmentSequences)==null?void 0:tn.map(An=>kt.Long.fromValue(An)))||[],zt}};function St(){return{acknowledgements:[],pagination:void 0,height:void 0}}d.QueryPacketAcknowledgementsResponse={encode(Dt,zt=Pt.Writer.create()){for(const tn of Dt.acknowledgements)ht.PacketState.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),Dt.height!==void 0&&mt.Height.encode(Dt.height,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=St();for(;tn.pos>>3){case 1:gn.acknowledgements.push(ht.PacketState.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;case 3:gn.height=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{acknowledgements:Array.isArray(Dt==null?void 0:Dt.acknowledgements)?Dt.acknowledgements.map(zt=>ht.PacketState.fromJSON(zt)):[],pagination:(0,kt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0,height:(0,kt.isSet)(Dt.height)?mt.Height.fromJSON(Dt.height):void 0}},toJSON(Dt){const zt={};return Dt.acknowledgements?zt.acknowledgements=Dt.acknowledgements.map(tn=>tn?ht.PacketState.toJSON(tn):void 0):zt.acknowledgements=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),Dt.height!==void 0&&(zt.height=Dt.height?mt.Height.toJSON(Dt.height):void 0),zt},fromPartial(Dt){var tn;const zt=St();return zt.acknowledgements=((tn=Dt.acknowledgements)==null?void 0:tn.map(An=>ht.PacketState.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt.height=Dt.height!==void 0&&Dt.height!==null?mt.Height.fromPartial(Dt.height):void 0,zt}};function It(){return{portId:"",channelId:"",packetCommitmentSequences:[]}}d.QueryUnreceivedPacketsRequest={encode(Dt,zt=Pt.Writer.create()){Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),zt.uint32(26).fork();for(const tn of Dt.packetCommitmentSequences)zt.uint64(tn);return zt.ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=It();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:if((Nn&7)===2){const wr=tn.uint32()+tn.pos;for(;tn.poskt.Long.fromValue(zt)):[]}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.packetCommitmentSequences?zt.packetCommitmentSequences=Dt.packetCommitmentSequences.map(tn=>(tn||kt.Long.UZERO).toString()):zt.packetCommitmentSequences=[],zt},fromPartial(Dt){var tn;const zt=It();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.packetCommitmentSequences=((tn=Dt.packetCommitmentSequences)==null?void 0:tn.map(An=>kt.Long.fromValue(An)))||[],zt}};function Gt(){return{sequences:[],height:void 0}}d.QueryUnreceivedPacketsResponse={encode(Dt,zt=Pt.Writer.create()){zt.uint32(10).fork();for(const tn of Dt.sequences)zt.uint64(tn);return zt.ldelim(),Dt.height!==void 0&&mt.Height.encode(Dt.height,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Gt();for(;tn.pos>>3){case 1:if((Nn&7)===2){const wr=tn.uint32()+tn.pos;for(;tn.poskt.Long.fromValue(zt)):[],height:(0,kt.isSet)(Dt.height)?mt.Height.fromJSON(Dt.height):void 0}},toJSON(Dt){const zt={};return Dt.sequences?zt.sequences=Dt.sequences.map(tn=>(tn||kt.Long.UZERO).toString()):zt.sequences=[],Dt.height!==void 0&&(zt.height=Dt.height?mt.Height.toJSON(Dt.height):void 0),zt},fromPartial(Dt){var tn;const zt=Gt();return zt.sequences=((tn=Dt.sequences)==null?void 0:tn.map(An=>kt.Long.fromValue(An)))||[],zt.height=Dt.height!==void 0&&Dt.height!==null?mt.Height.fromPartial(Dt.height):void 0,zt}};function Ut(){return{portId:"",channelId:"",packetAckSequences:[]}}d.QueryUnreceivedAcksRequest={encode(Dt,zt=Pt.Writer.create()){Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),zt.uint32(26).fork();for(const tn of Dt.packetAckSequences)zt.uint64(tn);return zt.ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ut();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;case 3:if((Nn&7)===2){const wr=tn.uint32()+tn.pos;for(;tn.poskt.Long.fromValue(zt)):[]}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),Dt.packetAckSequences?zt.packetAckSequences=Dt.packetAckSequences.map(tn=>(tn||kt.Long.UZERO).toString()):zt.packetAckSequences=[],zt},fromPartial(Dt){var tn;const zt=Ut();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt.packetAckSequences=((tn=Dt.packetAckSequences)==null?void 0:tn.map(An=>kt.Long.fromValue(An)))||[],zt}};function Vt(){return{sequences:[],height:void 0}}d.QueryUnreceivedAcksResponse={encode(Dt,zt=Pt.Writer.create()){zt.uint32(10).fork();for(const tn of Dt.sequences)zt.uint64(tn);return zt.ldelim(),Dt.height!==void 0&&mt.Height.encode(Dt.height,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Vt();for(;tn.pos>>3){case 1:if((Nn&7)===2){const wr=tn.uint32()+tn.pos;for(;tn.poskt.Long.fromValue(zt)):[],height:(0,kt.isSet)(Dt.height)?mt.Height.fromJSON(Dt.height):void 0}},toJSON(Dt){const zt={};return Dt.sequences?zt.sequences=Dt.sequences.map(tn=>(tn||kt.Long.UZERO).toString()):zt.sequences=[],Dt.height!==void 0&&(zt.height=Dt.height?mt.Height.toJSON(Dt.height):void 0),zt},fromPartial(Dt){var tn;const zt=Vt();return zt.sequences=((tn=Dt.sequences)==null?void 0:tn.map(An=>kt.Long.fromValue(An)))||[],zt.height=Dt.height!==void 0&&Dt.height!==null?mt.Height.fromPartial(Dt.height):void 0,zt}};function qt(){return{portId:"",channelId:""}}d.QueryNextSequenceReceiveRequest={encode(Dt,zt=Pt.Writer.create()){return Dt.portId!==""&&zt.uint32(10).string(Dt.portId),Dt.channelId!==""&&zt.uint32(18).string(Dt.channelId),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=qt();for(;tn.pos>>3){case 1:gn.portId=tn.string();break;case 2:gn.channelId=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{portId:(0,kt.isSet)(Dt.portId)?String(Dt.portId):"",channelId:(0,kt.isSet)(Dt.channelId)?String(Dt.channelId):""}},toJSON(Dt){const zt={};return Dt.portId!==void 0&&(zt.portId=Dt.portId),Dt.channelId!==void 0&&(zt.channelId=Dt.channelId),zt},fromPartial(Dt){const zt=qt();return zt.portId=Dt.portId??"",zt.channelId=Dt.channelId??"",zt}};function fn(){return{nextSequenceReceive:kt.Long.UZERO,proof:new Uint8Array,proofHeight:void 0}}d.QueryNextSequenceReceiveResponse={encode(Dt,zt=Pt.Writer.create()){return Dt.nextSequenceReceive.isZero()||zt.uint32(8).uint64(Dt.nextSequenceReceive),Dt.proof.length!==0&&zt.uint32(18).bytes(Dt.proof),Dt.proofHeight!==void 0&&mt.Height.encode(Dt.proofHeight,zt.uint32(26).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof Pt.Reader?Dt:new Pt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=fn();for(;tn.pos>>3){case 1:gn.nextSequenceReceive=tn.uint64();break;case 2:gn.proof=tn.bytes();break;case 3:gn.proofHeight=mt.Height.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{nextSequenceReceive:(0,kt.isSet)(Dt.nextSequenceReceive)?kt.Long.fromValue(Dt.nextSequenceReceive):kt.Long.UZERO,proof:(0,kt.isSet)(Dt.proof)?(0,kt.bytesFromBase64)(Dt.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Dt.proofHeight)?mt.Height.fromJSON(Dt.proofHeight):void 0}},toJSON(Dt){const zt={};return Dt.nextSequenceReceive!==void 0&&(zt.nextSequenceReceive=(Dt.nextSequenceReceive||kt.Long.UZERO).toString()),Dt.proof!==void 0&&(zt.proof=(0,kt.base64FromBytes)(Dt.proof!==void 0?Dt.proof:new Uint8Array)),Dt.proofHeight!==void 0&&(zt.proofHeight=Dt.proofHeight?mt.Height.toJSON(Dt.proofHeight):void 0),zt},fromPartial(Dt){const zt=fn();return zt.nextSequenceReceive=Dt.nextSequenceReceive!==void 0&&Dt.nextSequenceReceive!==null?kt.Long.fromValue(Dt.nextSequenceReceive):kt.Long.UZERO,zt.proof=Dt.proof??new Uint8Array,zt.proofHeight=Dt.proofHeight!==void 0&&Dt.proofHeight!==null?mt.Height.fromPartial(Dt.proofHeight):void 0,zt}};class dn{constructor(zt){this.rpc=zt,this.Channel=this.Channel.bind(this),this.Channels=this.Channels.bind(this),this.ConnectionChannels=this.ConnectionChannels.bind(this),this.ChannelClientState=this.ChannelClientState.bind(this),this.ChannelConsensusState=this.ChannelConsensusState.bind(this),this.PacketCommitment=this.PacketCommitment.bind(this),this.PacketCommitments=this.PacketCommitments.bind(this),this.PacketReceipt=this.PacketReceipt.bind(this),this.PacketAcknowledgement=this.PacketAcknowledgement.bind(this),this.PacketAcknowledgements=this.PacketAcknowledgements.bind(this),this.UnreceivedPackets=this.UnreceivedPackets.bind(this),this.UnreceivedAcks=this.UnreceivedAcks.bind(this),this.NextSequenceReceive=this.NextSequenceReceive.bind(this)}Channel(zt){const tn=d.QueryChannelRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channel",tn).then(gn=>d.QueryChannelResponse.decode(new Pt.Reader(gn)))}Channels(zt={pagination:void 0}){const tn=d.QueryChannelsRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channels",tn).then(gn=>d.QueryChannelsResponse.decode(new Pt.Reader(gn)))}ConnectionChannels(zt){const tn=d.QueryConnectionChannelsRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","ConnectionChannels",tn).then(gn=>d.QueryConnectionChannelsResponse.decode(new Pt.Reader(gn)))}ChannelClientState(zt){const tn=d.QueryChannelClientStateRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelClientState",tn).then(gn=>d.QueryChannelClientStateResponse.decode(new Pt.Reader(gn)))}ChannelConsensusState(zt){const tn=d.QueryChannelConsensusStateRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelConsensusState",tn).then(gn=>d.QueryChannelConsensusStateResponse.decode(new Pt.Reader(gn)))}PacketCommitment(zt){const tn=d.QueryPacketCommitmentRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitment",tn).then(gn=>d.QueryPacketCommitmentResponse.decode(new Pt.Reader(gn)))}PacketCommitments(zt){const tn=d.QueryPacketCommitmentsRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitments",tn).then(gn=>d.QueryPacketCommitmentsResponse.decode(new Pt.Reader(gn)))}PacketReceipt(zt){const tn=d.QueryPacketReceiptRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketReceipt",tn).then(gn=>d.QueryPacketReceiptResponse.decode(new Pt.Reader(gn)))}PacketAcknowledgement(zt){const tn=d.QueryPacketAcknowledgementRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgement",tn).then(gn=>d.QueryPacketAcknowledgementResponse.decode(new Pt.Reader(gn)))}PacketAcknowledgements(zt){const tn=d.QueryPacketAcknowledgementsRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgements",tn).then(gn=>d.QueryPacketAcknowledgementsResponse.decode(new Pt.Reader(gn)))}UnreceivedPackets(zt){const tn=d.QueryUnreceivedPacketsRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedPackets",tn).then(gn=>d.QueryUnreceivedPacketsResponse.decode(new Pt.Reader(gn)))}UnreceivedAcks(zt){const tn=d.QueryUnreceivedAcksRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedAcks",tn).then(gn=>d.QueryUnreceivedAcksResponse.decode(new Pt.Reader(gn)))}NextSequenceReceive(zt){const tn=d.QueryNextSequenceReceiveRequest.encode(zt).finish();return this.rpc.request("ibc.core.channel.v1.Query","NextSequenceReceive",tn).then(gn=>d.QueryNextSequenceReceiveResponse.decode(new Pt.Reader(gn)))}}d.QueryClientImpl=dn})(query$f);var query$e={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Kt,St,It,Gt){Gt===void 0&&(Gt=It);var Ut=Object.getOwnPropertyDescriptor(St,It);(!Ut||("get"in Ut?!St.__esModule:Ut.writable||Ut.configurable))&&(Ut={enumerable:!0,get:function(){return St[It]}}),Object.defineProperty(Kt,Gt,Ut)}:function(Kt,St,It,Gt){Gt===void 0&&(Gt=It),Kt[Gt]=St[It]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Kt,St){Object.defineProperty(Kt,"default",{enumerable:!0,value:St})}:function(Kt,St){Kt.default=St}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Kt){if(Kt&&Kt.__esModule)return Kt;var St={};if(Kt!=null)for(var It in Kt)It!=="default"&&Object.prototype.hasOwnProperty.call(Kt,It)&&b(St,Kt,It);return dt(St,Kt),St};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryUpgradedConsensusStateResponse=d.QueryUpgradedConsensusStateRequest=d.QueryUpgradedClientStateResponse=d.QueryUpgradedClientStateRequest=d.QueryClientParamsResponse=d.QueryClientParamsRequest=d.QueryClientStatusResponse=d.QueryClientStatusRequest=d.QueryConsensusStateHeightsResponse=d.QueryConsensusStateHeightsRequest=d.QueryConsensusStatesResponse=d.QueryConsensusStatesRequest=d.QueryConsensusStateResponse=d.QueryConsensusStateRequest=d.QueryClientStatesResponse=d.QueryClientStatesRequest=d.QueryClientStateResponse=d.QueryClientStateRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=any$1,mt=client$1,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="ibc.core.client.v1";function Pt(){return{clientId:""}}d.QueryClientStateRequest={encode(Kt,St=kt.Writer.create()){return Kt.clientId!==""&&St.uint32(10).string(Kt.clientId),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Pt();for(;It.pos>>3){case 1:Ut.clientId=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{clientId:(0,vt.isSet)(Kt.clientId)?String(Kt.clientId):""}},toJSON(Kt){const St={};return Kt.clientId!==void 0&&(St.clientId=Kt.clientId),St},fromPartial(Kt){const St=Pt();return St.clientId=Kt.clientId??"",St}};function Jt(){return{clientState:void 0,proof:new Uint8Array,proofHeight:void 0}}d.QueryClientStateResponse={encode(Kt,St=kt.Writer.create()){return Kt.clientState!==void 0&&ht.Any.encode(Kt.clientState,St.uint32(10).fork()).ldelim(),Kt.proof.length!==0&&St.uint32(18).bytes(Kt.proof),Kt.proofHeight!==void 0&&mt.Height.encode(Kt.proofHeight,St.uint32(26).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Jt();for(;It.pos>>3){case 1:Ut.clientState=ht.Any.decode(It,It.uint32());break;case 2:Ut.proof=It.bytes();break;case 3:Ut.proofHeight=mt.Height.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{clientState:(0,vt.isSet)(Kt.clientState)?ht.Any.fromJSON(Kt.clientState):void 0,proof:(0,vt.isSet)(Kt.proof)?(0,vt.bytesFromBase64)(Kt.proof):new Uint8Array,proofHeight:(0,vt.isSet)(Kt.proofHeight)?mt.Height.fromJSON(Kt.proofHeight):void 0}},toJSON(Kt){const St={};return Kt.clientState!==void 0&&(St.clientState=Kt.clientState?ht.Any.toJSON(Kt.clientState):void 0),Kt.proof!==void 0&&(St.proof=(0,vt.base64FromBytes)(Kt.proof!==void 0?Kt.proof:new Uint8Array)),Kt.proofHeight!==void 0&&(St.proofHeight=Kt.proofHeight?mt.Height.toJSON(Kt.proofHeight):void 0),St},fromPartial(Kt){const St=Jt();return St.clientState=Kt.clientState!==void 0&&Kt.clientState!==null?ht.Any.fromPartial(Kt.clientState):void 0,St.proof=Kt.proof??new Uint8Array,St.proofHeight=Kt.proofHeight!==void 0&&Kt.proofHeight!==null?mt.Height.fromPartial(Kt.proofHeight):void 0,St}};function Zt(){return{pagination:void 0}}d.QueryClientStatesRequest={encode(Kt,St=kt.Writer.create()){return Kt.pagination!==void 0&<.PageRequest.encode(Kt.pagination,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Zt();for(;It.pos>>3){case 1:Ut.pagination=lt.PageRequest.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{pagination:(0,vt.isSet)(Kt.pagination)?lt.PageRequest.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageRequest.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){const St=Zt();return St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageRequest.fromPartial(Kt.pagination):void 0,St}};function Rt(){return{clientStates:[],pagination:void 0}}d.QueryClientStatesResponse={encode(Kt,St=kt.Writer.create()){for(const It of Kt.clientStates)mt.IdentifiedClientState.encode(It,St.uint32(10).fork()).ldelim();return Kt.pagination!==void 0&<.PageResponse.encode(Kt.pagination,St.uint32(18).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Rt();for(;It.pos>>3){case 1:Ut.clientStates.push(mt.IdentifiedClientState.decode(It,It.uint32()));break;case 2:Ut.pagination=lt.PageResponse.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{clientStates:Array.isArray(Kt==null?void 0:Kt.clientStates)?Kt.clientStates.map(St=>mt.IdentifiedClientState.fromJSON(St)):[],pagination:(0,vt.isSet)(Kt.pagination)?lt.PageResponse.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.clientStates?St.clientStates=Kt.clientStates.map(It=>It?mt.IdentifiedClientState.toJSON(It):void 0):St.clientStates=[],Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageResponse.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){var It;const St=Rt();return St.clientStates=((It=Kt.clientStates)==null?void 0:It.map(Gt=>mt.IdentifiedClientState.fromPartial(Gt)))||[],St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageResponse.fromPartial(Kt.pagination):void 0,St}};function nn(){return{clientId:"",revisionNumber:vt.Long.UZERO,revisionHeight:vt.Long.UZERO,latestHeight:!1}}d.QueryConsensusStateRequest={encode(Kt,St=kt.Writer.create()){return Kt.clientId!==""&&St.uint32(10).string(Kt.clientId),Kt.revisionNumber.isZero()||St.uint32(16).uint64(Kt.revisionNumber),Kt.revisionHeight.isZero()||St.uint32(24).uint64(Kt.revisionHeight),Kt.latestHeight===!0&&St.uint32(32).bool(Kt.latestHeight),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=nn();for(;It.pos>>3){case 1:Ut.clientId=It.string();break;case 2:Ut.revisionNumber=It.uint64();break;case 3:Ut.revisionHeight=It.uint64();break;case 4:Ut.latestHeight=It.bool();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{clientId:(0,vt.isSet)(Kt.clientId)?String(Kt.clientId):"",revisionNumber:(0,vt.isSet)(Kt.revisionNumber)?vt.Long.fromValue(Kt.revisionNumber):vt.Long.UZERO,revisionHeight:(0,vt.isSet)(Kt.revisionHeight)?vt.Long.fromValue(Kt.revisionHeight):vt.Long.UZERO,latestHeight:(0,vt.isSet)(Kt.latestHeight)?!!Kt.latestHeight:!1}},toJSON(Kt){const St={};return Kt.clientId!==void 0&&(St.clientId=Kt.clientId),Kt.revisionNumber!==void 0&&(St.revisionNumber=(Kt.revisionNumber||vt.Long.UZERO).toString()),Kt.revisionHeight!==void 0&&(St.revisionHeight=(Kt.revisionHeight||vt.Long.UZERO).toString()),Kt.latestHeight!==void 0&&(St.latestHeight=Kt.latestHeight),St},fromPartial(Kt){const St=nn();return St.clientId=Kt.clientId??"",St.revisionNumber=Kt.revisionNumber!==void 0&&Kt.revisionNumber!==null?vt.Long.fromValue(Kt.revisionNumber):vt.Long.UZERO,St.revisionHeight=Kt.revisionHeight!==void 0&&Kt.revisionHeight!==null?vt.Long.fromValue(Kt.revisionHeight):vt.Long.UZERO,St.latestHeight=Kt.latestHeight??!1,St}};function Qt(){return{consensusState:void 0,proof:new Uint8Array,proofHeight:void 0}}d.QueryConsensusStateResponse={encode(Kt,St=kt.Writer.create()){return Kt.consensusState!==void 0&&ht.Any.encode(Kt.consensusState,St.uint32(10).fork()).ldelim(),Kt.proof.length!==0&&St.uint32(18).bytes(Kt.proof),Kt.proofHeight!==void 0&&mt.Height.encode(Kt.proofHeight,St.uint32(26).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Qt();for(;It.pos>>3){case 1:Ut.consensusState=ht.Any.decode(It,It.uint32());break;case 2:Ut.proof=It.bytes();break;case 3:Ut.proofHeight=mt.Height.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{consensusState:(0,vt.isSet)(Kt.consensusState)?ht.Any.fromJSON(Kt.consensusState):void 0,proof:(0,vt.isSet)(Kt.proof)?(0,vt.bytesFromBase64)(Kt.proof):new Uint8Array,proofHeight:(0,vt.isSet)(Kt.proofHeight)?mt.Height.fromJSON(Kt.proofHeight):void 0}},toJSON(Kt){const St={};return Kt.consensusState!==void 0&&(St.consensusState=Kt.consensusState?ht.Any.toJSON(Kt.consensusState):void 0),Kt.proof!==void 0&&(St.proof=(0,vt.base64FromBytes)(Kt.proof!==void 0?Kt.proof:new Uint8Array)),Kt.proofHeight!==void 0&&(St.proofHeight=Kt.proofHeight?mt.Height.toJSON(Kt.proofHeight):void 0),St},fromPartial(Kt){const St=Qt();return St.consensusState=Kt.consensusState!==void 0&&Kt.consensusState!==null?ht.Any.fromPartial(Kt.consensusState):void 0,St.proof=Kt.proof??new Uint8Array,St.proofHeight=Kt.proofHeight!==void 0&&Kt.proofHeight!==null?mt.Height.fromPartial(Kt.proofHeight):void 0,St}};function wt(){return{clientId:"",pagination:void 0}}d.QueryConsensusStatesRequest={encode(Kt,St=kt.Writer.create()){return Kt.clientId!==""&&St.uint32(10).string(Kt.clientId),Kt.pagination!==void 0&<.PageRequest.encode(Kt.pagination,St.uint32(18).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=wt();for(;It.pos>>3){case 1:Ut.clientId=It.string();break;case 2:Ut.pagination=lt.PageRequest.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{clientId:(0,vt.isSet)(Kt.clientId)?String(Kt.clientId):"",pagination:(0,vt.isSet)(Kt.pagination)?lt.PageRequest.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.clientId!==void 0&&(St.clientId=Kt.clientId),Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageRequest.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){const St=wt();return St.clientId=Kt.clientId??"",St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageRequest.fromPartial(Kt.pagination):void 0,St}};function Nt(){return{consensusStates:[],pagination:void 0}}d.QueryConsensusStatesResponse={encode(Kt,St=kt.Writer.create()){for(const It of Kt.consensusStates)mt.ConsensusStateWithHeight.encode(It,St.uint32(10).fork()).ldelim();return Kt.pagination!==void 0&<.PageResponse.encode(Kt.pagination,St.uint32(18).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Nt();for(;It.pos>>3){case 1:Ut.consensusStates.push(mt.ConsensusStateWithHeight.decode(It,It.uint32()));break;case 2:Ut.pagination=lt.PageResponse.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{consensusStates:Array.isArray(Kt==null?void 0:Kt.consensusStates)?Kt.consensusStates.map(St=>mt.ConsensusStateWithHeight.fromJSON(St)):[],pagination:(0,vt.isSet)(Kt.pagination)?lt.PageResponse.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.consensusStates?St.consensusStates=Kt.consensusStates.map(It=>It?mt.ConsensusStateWithHeight.toJSON(It):void 0):St.consensusStates=[],Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageResponse.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){var It;const St=Nt();return St.consensusStates=((It=Kt.consensusStates)==null?void 0:It.map(Gt=>mt.ConsensusStateWithHeight.fromPartial(Gt)))||[],St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageResponse.fromPartial(Kt.pagination):void 0,St}};function xt(){return{clientId:"",pagination:void 0}}d.QueryConsensusStateHeightsRequest={encode(Kt,St=kt.Writer.create()){return Kt.clientId!==""&&St.uint32(10).string(Kt.clientId),Kt.pagination!==void 0&<.PageRequest.encode(Kt.pagination,St.uint32(18).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=xt();for(;It.pos>>3){case 1:Ut.clientId=It.string();break;case 2:Ut.pagination=lt.PageRequest.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{clientId:(0,vt.isSet)(Kt.clientId)?String(Kt.clientId):"",pagination:(0,vt.isSet)(Kt.pagination)?lt.PageRequest.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.clientId!==void 0&&(St.clientId=Kt.clientId),Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageRequest.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){const St=xt();return St.clientId=Kt.clientId??"",St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageRequest.fromPartial(Kt.pagination):void 0,St}};function Et(){return{consensusStateHeights:[],pagination:void 0}}d.QueryConsensusStateHeightsResponse={encode(Kt,St=kt.Writer.create()){for(const It of Kt.consensusStateHeights)mt.Height.encode(It,St.uint32(10).fork()).ldelim();return Kt.pagination!==void 0&<.PageResponse.encode(Kt.pagination,St.uint32(18).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Et();for(;It.pos>>3){case 1:Ut.consensusStateHeights.push(mt.Height.decode(It,It.uint32()));break;case 2:Ut.pagination=lt.PageResponse.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{consensusStateHeights:Array.isArray(Kt==null?void 0:Kt.consensusStateHeights)?Kt.consensusStateHeights.map(St=>mt.Height.fromJSON(St)):[],pagination:(0,vt.isSet)(Kt.pagination)?lt.PageResponse.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.consensusStateHeights?St.consensusStateHeights=Kt.consensusStateHeights.map(It=>It?mt.Height.toJSON(It):void 0):St.consensusStateHeights=[],Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageResponse.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){var It;const St=Et();return St.consensusStateHeights=((It=Kt.consensusStateHeights)==null?void 0:It.map(Gt=>mt.Height.fromPartial(Gt)))||[],St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageResponse.fromPartial(Kt.pagination):void 0,St}};function Bt(){return{clientId:""}}d.QueryClientStatusRequest={encode(Kt,St=kt.Writer.create()){return Kt.clientId!==""&&St.uint32(10).string(Kt.clientId),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Bt();for(;It.pos>>3){case 1:Ut.clientId=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{clientId:(0,vt.isSet)(Kt.clientId)?String(Kt.clientId):""}},toJSON(Kt){const St={};return Kt.clientId!==void 0&&(St.clientId=Kt.clientId),St},fromPartial(Kt){const St=Bt();return St.clientId=Kt.clientId??"",St}};function Tt(){return{status:""}}d.QueryClientStatusResponse={encode(Kt,St=kt.Writer.create()){return Kt.status!==""&&St.uint32(10).string(Kt.status),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Tt();for(;It.pos>>3){case 1:Ut.status=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{status:(0,vt.isSet)(Kt.status)?String(Kt.status):""}},toJSON(Kt){const St={};return Kt.status!==void 0&&(St.status=Kt.status),St},fromPartial(Kt){const St=Tt();return St.status=Kt.status??"",St}};function Mt(){return{}}d.QueryClientParamsRequest={encode(Kt,St=kt.Writer.create()){return St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Mt();for(;It.pos>>3){default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{}},toJSON(Kt){return{}},fromPartial(Kt){return Mt()}};function jt(){return{params:void 0}}d.QueryClientParamsResponse={encode(Kt,St=kt.Writer.create()){return Kt.params!==void 0&&mt.Params.encode(Kt.params,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=jt();for(;It.pos>>3){case 1:Ut.params=mt.Params.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{params:(0,vt.isSet)(Kt.params)?mt.Params.fromJSON(Kt.params):void 0}},toJSON(Kt){const St={};return Kt.params!==void 0&&(St.params=Kt.params?mt.Params.toJSON(Kt.params):void 0),St},fromPartial(Kt){const St=jt();return St.params=Kt.params!==void 0&&Kt.params!==null?mt.Params.fromPartial(Kt.params):void 0,St}};function Ht(){return{}}d.QueryUpgradedClientStateRequest={encode(Kt,St=kt.Writer.create()){return St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Ht();for(;It.pos>>3){default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{}},toJSON(Kt){return{}},fromPartial(Kt){return Ht()}};function an(){return{upgradedClientState:void 0}}d.QueryUpgradedClientStateResponse={encode(Kt,St=kt.Writer.create()){return Kt.upgradedClientState!==void 0&&ht.Any.encode(Kt.upgradedClientState,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=an();for(;It.pos>>3){case 1:Ut.upgradedClientState=ht.Any.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{upgradedClientState:(0,vt.isSet)(Kt.upgradedClientState)?ht.Any.fromJSON(Kt.upgradedClientState):void 0}},toJSON(Kt){const St={};return Kt.upgradedClientState!==void 0&&(St.upgradedClientState=Kt.upgradedClientState?ht.Any.toJSON(Kt.upgradedClientState):void 0),St},fromPartial(Kt){const St=an();return St.upgradedClientState=Kt.upgradedClientState!==void 0&&Kt.upgradedClientState!==null?ht.Any.fromPartial(Kt.upgradedClientState):void 0,St}};function yt(){return{}}d.QueryUpgradedConsensusStateRequest={encode(Kt,St=kt.Writer.create()){return St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=yt();for(;It.pos>>3){default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{}},toJSON(Kt){return{}},fromPartial(Kt){return yt()}};function $t(){return{upgradedConsensusState:void 0}}d.QueryUpgradedConsensusStateResponse={encode(Kt,St=kt.Writer.create()){return Kt.upgradedConsensusState!==void 0&&ht.Any.encode(Kt.upgradedConsensusState,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof kt.Reader?Kt:new kt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=$t();for(;It.pos>>3){case 1:Ut.upgradedConsensusState=ht.Any.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{upgradedConsensusState:(0,vt.isSet)(Kt.upgradedConsensusState)?ht.Any.fromJSON(Kt.upgradedConsensusState):void 0}},toJSON(Kt){const St={};return Kt.upgradedConsensusState!==void 0&&(St.upgradedConsensusState=Kt.upgradedConsensusState?ht.Any.toJSON(Kt.upgradedConsensusState):void 0),St},fromPartial(Kt){const St=$t();return St.upgradedConsensusState=Kt.upgradedConsensusState!==void 0&&Kt.upgradedConsensusState!==null?ht.Any.fromPartial(Kt.upgradedConsensusState):void 0,St}};class Yt{constructor(St){this.rpc=St,this.ClientState=this.ClientState.bind(this),this.ClientStates=this.ClientStates.bind(this),this.ConsensusState=this.ConsensusState.bind(this),this.ConsensusStates=this.ConsensusStates.bind(this),this.ConsensusStateHeights=this.ConsensusStateHeights.bind(this),this.ClientStatus=this.ClientStatus.bind(this),this.ClientParams=this.ClientParams.bind(this),this.UpgradedClientState=this.UpgradedClientState.bind(this),this.UpgradedConsensusState=this.UpgradedConsensusState.bind(this)}ClientState(St){const It=d.QueryClientStateRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientState",It).then(Ut=>d.QueryClientStateResponse.decode(new kt.Reader(Ut)))}ClientStates(St={pagination:void 0}){const It=d.QueryClientStatesRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStates",It).then(Ut=>d.QueryClientStatesResponse.decode(new kt.Reader(Ut)))}ConsensusState(St){const It=d.QueryConsensusStateRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusState",It).then(Ut=>d.QueryConsensusStateResponse.decode(new kt.Reader(Ut)))}ConsensusStates(St){const It=d.QueryConsensusStatesRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStates",It).then(Ut=>d.QueryConsensusStatesResponse.decode(new kt.Reader(Ut)))}ConsensusStateHeights(St){const It=d.QueryConsensusStateHeightsRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStateHeights",It).then(Ut=>d.QueryConsensusStateHeightsResponse.decode(new kt.Reader(Ut)))}ClientStatus(St){const It=d.QueryClientStatusRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStatus",It).then(Ut=>d.QueryClientStatusResponse.decode(new kt.Reader(Ut)))}ClientParams(St={}){const It=d.QueryClientParamsRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientParams",It).then(Ut=>d.QueryClientParamsResponse.decode(new kt.Reader(Ut)))}UpgradedClientState(St={}){const It=d.QueryUpgradedClientStateRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedClientState",It).then(Ut=>d.QueryUpgradedClientStateResponse.decode(new kt.Reader(Ut)))}UpgradedConsensusState(St={}){const It=d.QueryUpgradedConsensusStateRequest.encode(St).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedConsensusState",It).then(Ut=>d.QueryUpgradedConsensusStateResponse.decode(new kt.Reader(Ut)))}}d.QueryClientImpl=Yt})(query$e);var query$d={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ht,an,yt,$t){$t===void 0&&($t=yt);var Yt=Object.getOwnPropertyDescriptor(an,yt);(!Yt||("get"in Yt?!an.__esModule:Yt.writable||Yt.configurable))&&(Yt={enumerable:!0,get:function(){return an[yt]}}),Object.defineProperty(Ht,$t,Yt)}:function(Ht,an,yt,$t){$t===void 0&&($t=yt),Ht[$t]=an[yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Ht,an){Object.defineProperty(Ht,"default",{enumerable:!0,value:an})}:function(Ht,an){Ht.default=an}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Ht){if(Ht&&Ht.__esModule)return Ht;var an={};if(Ht!=null)for(var yt in Ht)yt!=="default"&&Object.prototype.hasOwnProperty.call(Ht,yt)&&b(an,Ht,yt);return dt(an,Ht),an};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryConnectionParamsResponse=d.QueryConnectionParamsRequest=d.QueryConnectionConsensusStateResponse=d.QueryConnectionConsensusStateRequest=d.QueryConnectionClientStateResponse=d.QueryConnectionClientStateRequest=d.QueryClientConnectionsResponse=d.QueryClientConnectionsRequest=d.QueryConnectionsResponse=d.QueryConnectionsRequest=d.QueryConnectionResponse=d.QueryConnectionRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=connection,mt=client$1,vt=any$1,kt=helpers$1,Pt=ct(minimal$4);d.protobufPackage="ibc.core.connection.v1";function Jt(){return{connectionId:""}}d.QueryConnectionRequest={encode(Ht,an=Pt.Writer.create()){return Ht.connectionId!==""&&an.uint32(10).string(Ht.connectionId),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Jt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.connectionId=yt.string();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{connectionId:(0,kt.isSet)(Ht.connectionId)?String(Ht.connectionId):""}},toJSON(Ht){const an={};return Ht.connectionId!==void 0&&(an.connectionId=Ht.connectionId),an},fromPartial(Ht){const an=Jt();return an.connectionId=Ht.connectionId??"",an}};function Zt(){return{connection:void 0,proof:new Uint8Array,proofHeight:void 0}}d.QueryConnectionResponse={encode(Ht,an=Pt.Writer.create()){return Ht.connection!==void 0&&ht.ConnectionEnd.encode(Ht.connection,an.uint32(10).fork()).ldelim(),Ht.proof.length!==0&&an.uint32(18).bytes(Ht.proof),Ht.proofHeight!==void 0&&mt.Height.encode(Ht.proofHeight,an.uint32(26).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Zt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.connection=ht.ConnectionEnd.decode(yt,yt.uint32());break;case 2:Yt.proof=yt.bytes();break;case 3:Yt.proofHeight=mt.Height.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{connection:(0,kt.isSet)(Ht.connection)?ht.ConnectionEnd.fromJSON(Ht.connection):void 0,proof:(0,kt.isSet)(Ht.proof)?(0,kt.bytesFromBase64)(Ht.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Ht.proofHeight)?mt.Height.fromJSON(Ht.proofHeight):void 0}},toJSON(Ht){const an={};return Ht.connection!==void 0&&(an.connection=Ht.connection?ht.ConnectionEnd.toJSON(Ht.connection):void 0),Ht.proof!==void 0&&(an.proof=(0,kt.base64FromBytes)(Ht.proof!==void 0?Ht.proof:new Uint8Array)),Ht.proofHeight!==void 0&&(an.proofHeight=Ht.proofHeight?mt.Height.toJSON(Ht.proofHeight):void 0),an},fromPartial(Ht){const an=Zt();return an.connection=Ht.connection!==void 0&&Ht.connection!==null?ht.ConnectionEnd.fromPartial(Ht.connection):void 0,an.proof=Ht.proof??new Uint8Array,an.proofHeight=Ht.proofHeight!==void 0&&Ht.proofHeight!==null?mt.Height.fromPartial(Ht.proofHeight):void 0,an}};function Rt(){return{pagination:void 0}}d.QueryConnectionsRequest={encode(Ht,an=Pt.Writer.create()){return Ht.pagination!==void 0&<.PageRequest.encode(Ht.pagination,an.uint32(10).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Rt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.pagination=lt.PageRequest.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{pagination:(0,kt.isSet)(Ht.pagination)?lt.PageRequest.fromJSON(Ht.pagination):void 0}},toJSON(Ht){const an={};return Ht.pagination!==void 0&&(an.pagination=Ht.pagination?lt.PageRequest.toJSON(Ht.pagination):void 0),an},fromPartial(Ht){const an=Rt();return an.pagination=Ht.pagination!==void 0&&Ht.pagination!==null?lt.PageRequest.fromPartial(Ht.pagination):void 0,an}};function nn(){return{connections:[],pagination:void 0,height:void 0}}d.QueryConnectionsResponse={encode(Ht,an=Pt.Writer.create()){for(const yt of Ht.connections)ht.IdentifiedConnection.encode(yt,an.uint32(10).fork()).ldelim();return Ht.pagination!==void 0&<.PageResponse.encode(Ht.pagination,an.uint32(18).fork()).ldelim(),Ht.height!==void 0&&mt.Height.encode(Ht.height,an.uint32(26).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=nn();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.connections.push(ht.IdentifiedConnection.decode(yt,yt.uint32()));break;case 2:Yt.pagination=lt.PageResponse.decode(yt,yt.uint32());break;case 3:Yt.height=mt.Height.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{connections:Array.isArray(Ht==null?void 0:Ht.connections)?Ht.connections.map(an=>ht.IdentifiedConnection.fromJSON(an)):[],pagination:(0,kt.isSet)(Ht.pagination)?lt.PageResponse.fromJSON(Ht.pagination):void 0,height:(0,kt.isSet)(Ht.height)?mt.Height.fromJSON(Ht.height):void 0}},toJSON(Ht){const an={};return Ht.connections?an.connections=Ht.connections.map(yt=>yt?ht.IdentifiedConnection.toJSON(yt):void 0):an.connections=[],Ht.pagination!==void 0&&(an.pagination=Ht.pagination?lt.PageResponse.toJSON(Ht.pagination):void 0),Ht.height!==void 0&&(an.height=Ht.height?mt.Height.toJSON(Ht.height):void 0),an},fromPartial(Ht){var yt;const an=nn();return an.connections=((yt=Ht.connections)==null?void 0:yt.map($t=>ht.IdentifiedConnection.fromPartial($t)))||[],an.pagination=Ht.pagination!==void 0&&Ht.pagination!==null?lt.PageResponse.fromPartial(Ht.pagination):void 0,an.height=Ht.height!==void 0&&Ht.height!==null?mt.Height.fromPartial(Ht.height):void 0,an}};function Qt(){return{clientId:""}}d.QueryClientConnectionsRequest={encode(Ht,an=Pt.Writer.create()){return Ht.clientId!==""&&an.uint32(10).string(Ht.clientId),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Qt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.clientId=yt.string();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{clientId:(0,kt.isSet)(Ht.clientId)?String(Ht.clientId):""}},toJSON(Ht){const an={};return Ht.clientId!==void 0&&(an.clientId=Ht.clientId),an},fromPartial(Ht){const an=Qt();return an.clientId=Ht.clientId??"",an}};function wt(){return{connectionPaths:[],proof:new Uint8Array,proofHeight:void 0}}d.QueryClientConnectionsResponse={encode(Ht,an=Pt.Writer.create()){for(const yt of Ht.connectionPaths)an.uint32(10).string(yt);return Ht.proof.length!==0&&an.uint32(18).bytes(Ht.proof),Ht.proofHeight!==void 0&&mt.Height.encode(Ht.proofHeight,an.uint32(26).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=wt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.connectionPaths.push(yt.string());break;case 2:Yt.proof=yt.bytes();break;case 3:Yt.proofHeight=mt.Height.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{connectionPaths:Array.isArray(Ht==null?void 0:Ht.connectionPaths)?Ht.connectionPaths.map(an=>String(an)):[],proof:(0,kt.isSet)(Ht.proof)?(0,kt.bytesFromBase64)(Ht.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Ht.proofHeight)?mt.Height.fromJSON(Ht.proofHeight):void 0}},toJSON(Ht){const an={};return Ht.connectionPaths?an.connectionPaths=Ht.connectionPaths.map(yt=>yt):an.connectionPaths=[],Ht.proof!==void 0&&(an.proof=(0,kt.base64FromBytes)(Ht.proof!==void 0?Ht.proof:new Uint8Array)),Ht.proofHeight!==void 0&&(an.proofHeight=Ht.proofHeight?mt.Height.toJSON(Ht.proofHeight):void 0),an},fromPartial(Ht){var yt;const an=wt();return an.connectionPaths=((yt=Ht.connectionPaths)==null?void 0:yt.map($t=>$t))||[],an.proof=Ht.proof??new Uint8Array,an.proofHeight=Ht.proofHeight!==void 0&&Ht.proofHeight!==null?mt.Height.fromPartial(Ht.proofHeight):void 0,an}};function Nt(){return{connectionId:""}}d.QueryConnectionClientStateRequest={encode(Ht,an=Pt.Writer.create()){return Ht.connectionId!==""&&an.uint32(10).string(Ht.connectionId),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Nt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.connectionId=yt.string();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{connectionId:(0,kt.isSet)(Ht.connectionId)?String(Ht.connectionId):""}},toJSON(Ht){const an={};return Ht.connectionId!==void 0&&(an.connectionId=Ht.connectionId),an},fromPartial(Ht){const an=Nt();return an.connectionId=Ht.connectionId??"",an}};function xt(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:void 0}}d.QueryConnectionClientStateResponse={encode(Ht,an=Pt.Writer.create()){return Ht.identifiedClientState!==void 0&&mt.IdentifiedClientState.encode(Ht.identifiedClientState,an.uint32(10).fork()).ldelim(),Ht.proof.length!==0&&an.uint32(18).bytes(Ht.proof),Ht.proofHeight!==void 0&&mt.Height.encode(Ht.proofHeight,an.uint32(26).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=xt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.identifiedClientState=mt.IdentifiedClientState.decode(yt,yt.uint32());break;case 2:Yt.proof=yt.bytes();break;case 3:Yt.proofHeight=mt.Height.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{identifiedClientState:(0,kt.isSet)(Ht.identifiedClientState)?mt.IdentifiedClientState.fromJSON(Ht.identifiedClientState):void 0,proof:(0,kt.isSet)(Ht.proof)?(0,kt.bytesFromBase64)(Ht.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Ht.proofHeight)?mt.Height.fromJSON(Ht.proofHeight):void 0}},toJSON(Ht){const an={};return Ht.identifiedClientState!==void 0&&(an.identifiedClientState=Ht.identifiedClientState?mt.IdentifiedClientState.toJSON(Ht.identifiedClientState):void 0),Ht.proof!==void 0&&(an.proof=(0,kt.base64FromBytes)(Ht.proof!==void 0?Ht.proof:new Uint8Array)),Ht.proofHeight!==void 0&&(an.proofHeight=Ht.proofHeight?mt.Height.toJSON(Ht.proofHeight):void 0),an},fromPartial(Ht){const an=xt();return an.identifiedClientState=Ht.identifiedClientState!==void 0&&Ht.identifiedClientState!==null?mt.IdentifiedClientState.fromPartial(Ht.identifiedClientState):void 0,an.proof=Ht.proof??new Uint8Array,an.proofHeight=Ht.proofHeight!==void 0&&Ht.proofHeight!==null?mt.Height.fromPartial(Ht.proofHeight):void 0,an}};function Et(){return{connectionId:"",revisionNumber:kt.Long.UZERO,revisionHeight:kt.Long.UZERO}}d.QueryConnectionConsensusStateRequest={encode(Ht,an=Pt.Writer.create()){return Ht.connectionId!==""&&an.uint32(10).string(Ht.connectionId),Ht.revisionNumber.isZero()||an.uint32(16).uint64(Ht.revisionNumber),Ht.revisionHeight.isZero()||an.uint32(24).uint64(Ht.revisionHeight),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Et();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.connectionId=yt.string();break;case 2:Yt.revisionNumber=yt.uint64();break;case 3:Yt.revisionHeight=yt.uint64();break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{connectionId:(0,kt.isSet)(Ht.connectionId)?String(Ht.connectionId):"",revisionNumber:(0,kt.isSet)(Ht.revisionNumber)?kt.Long.fromValue(Ht.revisionNumber):kt.Long.UZERO,revisionHeight:(0,kt.isSet)(Ht.revisionHeight)?kt.Long.fromValue(Ht.revisionHeight):kt.Long.UZERO}},toJSON(Ht){const an={};return Ht.connectionId!==void 0&&(an.connectionId=Ht.connectionId),Ht.revisionNumber!==void 0&&(an.revisionNumber=(Ht.revisionNumber||kt.Long.UZERO).toString()),Ht.revisionHeight!==void 0&&(an.revisionHeight=(Ht.revisionHeight||kt.Long.UZERO).toString()),an},fromPartial(Ht){const an=Et();return an.connectionId=Ht.connectionId??"",an.revisionNumber=Ht.revisionNumber!==void 0&&Ht.revisionNumber!==null?kt.Long.fromValue(Ht.revisionNumber):kt.Long.UZERO,an.revisionHeight=Ht.revisionHeight!==void 0&&Ht.revisionHeight!==null?kt.Long.fromValue(Ht.revisionHeight):kt.Long.UZERO,an}};function Bt(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:void 0}}d.QueryConnectionConsensusStateResponse={encode(Ht,an=Pt.Writer.create()){return Ht.consensusState!==void 0&&vt.Any.encode(Ht.consensusState,an.uint32(10).fork()).ldelim(),Ht.clientId!==""&&an.uint32(18).string(Ht.clientId),Ht.proof.length!==0&&an.uint32(26).bytes(Ht.proof),Ht.proofHeight!==void 0&&mt.Height.encode(Ht.proofHeight,an.uint32(34).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Bt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.consensusState=vt.Any.decode(yt,yt.uint32());break;case 2:Yt.clientId=yt.string();break;case 3:Yt.proof=yt.bytes();break;case 4:Yt.proofHeight=mt.Height.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{consensusState:(0,kt.isSet)(Ht.consensusState)?vt.Any.fromJSON(Ht.consensusState):void 0,clientId:(0,kt.isSet)(Ht.clientId)?String(Ht.clientId):"",proof:(0,kt.isSet)(Ht.proof)?(0,kt.bytesFromBase64)(Ht.proof):new Uint8Array,proofHeight:(0,kt.isSet)(Ht.proofHeight)?mt.Height.fromJSON(Ht.proofHeight):void 0}},toJSON(Ht){const an={};return Ht.consensusState!==void 0&&(an.consensusState=Ht.consensusState?vt.Any.toJSON(Ht.consensusState):void 0),Ht.clientId!==void 0&&(an.clientId=Ht.clientId),Ht.proof!==void 0&&(an.proof=(0,kt.base64FromBytes)(Ht.proof!==void 0?Ht.proof:new Uint8Array)),Ht.proofHeight!==void 0&&(an.proofHeight=Ht.proofHeight?mt.Height.toJSON(Ht.proofHeight):void 0),an},fromPartial(Ht){const an=Bt();return an.consensusState=Ht.consensusState!==void 0&&Ht.consensusState!==null?vt.Any.fromPartial(Ht.consensusState):void 0,an.clientId=Ht.clientId??"",an.proof=Ht.proof??new Uint8Array,an.proofHeight=Ht.proofHeight!==void 0&&Ht.proofHeight!==null?mt.Height.fromPartial(Ht.proofHeight):void 0,an}};function Tt(){return{}}d.QueryConnectionParamsRequest={encode(Ht,an=Pt.Writer.create()){return an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Tt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{}},toJSON(Ht){return{}},fromPartial(Ht){return Tt()}};function Mt(){return{params:void 0}}d.QueryConnectionParamsResponse={encode(Ht,an=Pt.Writer.create()){return Ht.params!==void 0&&mt.Params.encode(Ht.params,an.uint32(10).fork()).ldelim(),an},decode(Ht,an){const yt=Ht instanceof Pt.Reader?Ht:new Pt.Reader(Ht);let $t=an===void 0?yt.len:yt.pos+an;const Yt=Mt();for(;yt.pos<$t;){const Kt=yt.uint32();switch(Kt>>>3){case 1:Yt.params=mt.Params.decode(yt,yt.uint32());break;default:yt.skipType(Kt&7);break}}return Yt},fromJSON(Ht){return{params:(0,kt.isSet)(Ht.params)?mt.Params.fromJSON(Ht.params):void 0}},toJSON(Ht){const an={};return Ht.params!==void 0&&(an.params=Ht.params?mt.Params.toJSON(Ht.params):void 0),an},fromPartial(Ht){const an=Mt();return an.params=Ht.params!==void 0&&Ht.params!==null?mt.Params.fromPartial(Ht.params):void 0,an}};class jt{constructor(an){this.rpc=an,this.Connection=this.Connection.bind(this),this.Connections=this.Connections.bind(this),this.ClientConnections=this.ClientConnections.bind(this),this.ConnectionClientState=this.ConnectionClientState.bind(this),this.ConnectionConsensusState=this.ConnectionConsensusState.bind(this),this.ConnectionParams=this.ConnectionParams.bind(this)}Connection(an){const yt=d.QueryConnectionRequest.encode(an).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connection",yt).then(Yt=>d.QueryConnectionResponse.decode(new Pt.Reader(Yt)))}Connections(an={pagination:void 0}){const yt=d.QueryConnectionsRequest.encode(an).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connections",yt).then(Yt=>d.QueryConnectionsResponse.decode(new Pt.Reader(Yt)))}ClientConnections(an){const yt=d.QueryClientConnectionsRequest.encode(an).finish();return this.rpc.request("ibc.core.connection.v1.Query","ClientConnections",yt).then(Yt=>d.QueryClientConnectionsResponse.decode(new Pt.Reader(Yt)))}ConnectionClientState(an){const yt=d.QueryConnectionClientStateRequest.encode(an).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionClientState",yt).then(Yt=>d.QueryConnectionClientStateResponse.decode(new Pt.Reader(Yt)))}ConnectionConsensusState(an){const yt=d.QueryConnectionConsensusStateRequest.encode(an).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionConsensusState",yt).then(Yt=>d.QueryConnectionConsensusStateResponse.decode(new Pt.Reader(Yt)))}ConnectionParams(an={}){const yt=d.QueryConnectionParamsRequest.encode(an).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionParams",yt).then(Yt=>d.QueryConnectionParamsResponse.decode(new Pt.Reader(Yt)))}}d.QueryClientImpl=jt})(query$d);var tendermint={},types$f={},proof$1={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn);var wt=Object.getOwnPropertyDescriptor(Rt,nn);(!wt||("get"in wt?!Rt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return Rt[nn]}}),Object.defineProperty(Zt,Qt,wt)}:function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn),Zt[Qt]=Rt[nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Zt,Rt){Object.defineProperty(Zt,"default",{enumerable:!0,value:Rt})}:function(Zt,Rt){Zt.default=Rt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Zt){if(Zt&&Zt.__esModule)return Zt;var Rt={};if(Zt!=null)for(var nn in Zt)nn!=="default"&&Object.prototype.hasOwnProperty.call(Zt,nn)&&b(Rt,Zt,nn);return dt(Rt,Zt),Rt};Object.defineProperty(d,"__esModule",{value:!0}),d.ProofOps=d.ProofOp=d.DominoOp=d.ValueOp=d.Proof=d.protobufPackage=void 0;const lt=helpers$1,ht=ct(minimal$4);d.protobufPackage="tendermint.crypto";function mt(){return{total:lt.Long.ZERO,index:lt.Long.ZERO,leafHash:new Uint8Array,aunts:[]}}d.Proof={encode(Zt,Rt=ht.Writer.create()){Zt.total.isZero()||Rt.uint32(8).int64(Zt.total),Zt.index.isZero()||Rt.uint32(16).int64(Zt.index),Zt.leafHash.length!==0&&Rt.uint32(26).bytes(Zt.leafHash);for(const nn of Zt.aunts)Rt.uint32(34).bytes(nn);return Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=mt();for(;nn.pos>>3){case 1:wt.total=nn.int64();break;case 2:wt.index=nn.int64();break;case 3:wt.leafHash=nn.bytes();break;case 4:wt.aunts.push(nn.bytes());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{total:(0,lt.isSet)(Zt.total)?lt.Long.fromValue(Zt.total):lt.Long.ZERO,index:(0,lt.isSet)(Zt.index)?lt.Long.fromValue(Zt.index):lt.Long.ZERO,leafHash:(0,lt.isSet)(Zt.leafHash)?(0,lt.bytesFromBase64)(Zt.leafHash):new Uint8Array,aunts:Array.isArray(Zt==null?void 0:Zt.aunts)?Zt.aunts.map(Rt=>(0,lt.bytesFromBase64)(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.total!==void 0&&(Rt.total=(Zt.total||lt.Long.ZERO).toString()),Zt.index!==void 0&&(Rt.index=(Zt.index||lt.Long.ZERO).toString()),Zt.leafHash!==void 0&&(Rt.leafHash=(0,lt.base64FromBytes)(Zt.leafHash!==void 0?Zt.leafHash:new Uint8Array)),Zt.aunts?Rt.aunts=Zt.aunts.map(nn=>(0,lt.base64FromBytes)(nn!==void 0?nn:new Uint8Array)):Rt.aunts=[],Rt},fromPartial(Zt){var nn;const Rt=mt();return Rt.total=Zt.total!==void 0&&Zt.total!==null?lt.Long.fromValue(Zt.total):lt.Long.ZERO,Rt.index=Zt.index!==void 0&&Zt.index!==null?lt.Long.fromValue(Zt.index):lt.Long.ZERO,Rt.leafHash=Zt.leafHash??new Uint8Array,Rt.aunts=((nn=Zt.aunts)==null?void 0:nn.map(Qt=>Qt))||[],Rt}};function vt(){return{key:new Uint8Array,proof:void 0}}d.ValueOp={encode(Zt,Rt=ht.Writer.create()){return Zt.key.length!==0&&Rt.uint32(10).bytes(Zt.key),Zt.proof!==void 0&&d.Proof.encode(Zt.proof,Rt.uint32(18).fork()).ldelim(),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=vt();for(;nn.pos>>3){case 1:wt.key=nn.bytes();break;case 2:wt.proof=d.Proof.decode(nn,nn.uint32());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{key:(0,lt.isSet)(Zt.key)?(0,lt.bytesFromBase64)(Zt.key):new Uint8Array,proof:(0,lt.isSet)(Zt.proof)?d.Proof.fromJSON(Zt.proof):void 0}},toJSON(Zt){const Rt={};return Zt.key!==void 0&&(Rt.key=(0,lt.base64FromBytes)(Zt.key!==void 0?Zt.key:new Uint8Array)),Zt.proof!==void 0&&(Rt.proof=Zt.proof?d.Proof.toJSON(Zt.proof):void 0),Rt},fromPartial(Zt){const Rt=vt();return Rt.key=Zt.key??new Uint8Array,Rt.proof=Zt.proof!==void 0&&Zt.proof!==null?d.Proof.fromPartial(Zt.proof):void 0,Rt}};function kt(){return{key:"",input:"",output:""}}d.DominoOp={encode(Zt,Rt=ht.Writer.create()){return Zt.key!==""&&Rt.uint32(10).string(Zt.key),Zt.input!==""&&Rt.uint32(18).string(Zt.input),Zt.output!==""&&Rt.uint32(26).string(Zt.output),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=kt();for(;nn.pos>>3){case 1:wt.key=nn.string();break;case 2:wt.input=nn.string();break;case 3:wt.output=nn.string();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{key:(0,lt.isSet)(Zt.key)?String(Zt.key):"",input:(0,lt.isSet)(Zt.input)?String(Zt.input):"",output:(0,lt.isSet)(Zt.output)?String(Zt.output):""}},toJSON(Zt){const Rt={};return Zt.key!==void 0&&(Rt.key=Zt.key),Zt.input!==void 0&&(Rt.input=Zt.input),Zt.output!==void 0&&(Rt.output=Zt.output),Rt},fromPartial(Zt){const Rt=kt();return Rt.key=Zt.key??"",Rt.input=Zt.input??"",Rt.output=Zt.output??"",Rt}};function Pt(){return{type:"",key:new Uint8Array,data:new Uint8Array}}d.ProofOp={encode(Zt,Rt=ht.Writer.create()){return Zt.type!==""&&Rt.uint32(10).string(Zt.type),Zt.key.length!==0&&Rt.uint32(18).bytes(Zt.key),Zt.data.length!==0&&Rt.uint32(26).bytes(Zt.data),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Pt();for(;nn.pos>>3){case 1:wt.type=nn.string();break;case 2:wt.key=nn.bytes();break;case 3:wt.data=nn.bytes();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{type:(0,lt.isSet)(Zt.type)?String(Zt.type):"",key:(0,lt.isSet)(Zt.key)?(0,lt.bytesFromBase64)(Zt.key):new Uint8Array,data:(0,lt.isSet)(Zt.data)?(0,lt.bytesFromBase64)(Zt.data):new Uint8Array}},toJSON(Zt){const Rt={};return Zt.type!==void 0&&(Rt.type=Zt.type),Zt.key!==void 0&&(Rt.key=(0,lt.base64FromBytes)(Zt.key!==void 0?Zt.key:new Uint8Array)),Zt.data!==void 0&&(Rt.data=(0,lt.base64FromBytes)(Zt.data!==void 0?Zt.data:new Uint8Array)),Rt},fromPartial(Zt){const Rt=Pt();return Rt.type=Zt.type??"",Rt.key=Zt.key??new Uint8Array,Rt.data=Zt.data??new Uint8Array,Rt}};function Jt(){return{ops:[]}}d.ProofOps={encode(Zt,Rt=ht.Writer.create()){for(const nn of Zt.ops)d.ProofOp.encode(nn,Rt.uint32(10).fork()).ldelim();return Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Jt();for(;nn.pos>>3){case 1:wt.ops.push(d.ProofOp.decode(nn,nn.uint32()));break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{ops:Array.isArray(Zt==null?void 0:Zt.ops)?Zt.ops.map(Rt=>d.ProofOp.fromJSON(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.ops?Rt.ops=Zt.ops.map(nn=>nn?d.ProofOp.toJSON(nn):void 0):Rt.ops=[],Rt},fromPartial(Zt){var nn;const Rt=Jt();return Rt.ops=((nn=Zt.ops)==null?void 0:nn.map(Qt=>d.ProofOp.fromPartial(Qt)))||[],Rt}}})(proof$1);var types$e={},__createBinding$k=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$k=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$k=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$k(b,d,dt);return __setModuleDefault$k(b,d),b};Object.defineProperty(types$e,"__esModule",{value:!0});types$e.Consensus=types$e.App=types$e.protobufPackage=void 0;const helpers_1$d=helpers$1,_m0$e=__importStar$k(minimal$4);types$e.protobufPackage="tendermint.version";function createBaseApp$1(){return{protocol:helpers_1$d.Long.UZERO,software:""}}types$e.App={encode(d,b=_m0$e.Writer.create()){return d.protocol.isZero()||b.uint32(8).uint64(d.protocol),d.software!==""&&b.uint32(18).string(d.software),b},decode(d,b){const dt=d instanceof _m0$e.Reader?d:new _m0$e.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseApp$1();for(;dt.pos>>3){case 1:lt.protocol=dt.uint64();break;case 2:lt.software=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{protocol:(0,helpers_1$d.isSet)(d.protocol)?helpers_1$d.Long.fromValue(d.protocol):helpers_1$d.Long.UZERO,software:(0,helpers_1$d.isSet)(d.software)?String(d.software):""}},toJSON(d){const b={};return d.protocol!==void 0&&(b.protocol=(d.protocol||helpers_1$d.Long.UZERO).toString()),d.software!==void 0&&(b.software=d.software),b},fromPartial(d){const b=createBaseApp$1();return b.protocol=d.protocol!==void 0&&d.protocol!==null?helpers_1$d.Long.fromValue(d.protocol):helpers_1$d.Long.UZERO,b.software=d.software??"",b}};function createBaseConsensus$1(){return{block:helpers_1$d.Long.UZERO,app:helpers_1$d.Long.UZERO}}types$e.Consensus={encode(d,b=_m0$e.Writer.create()){return d.block.isZero()||b.uint32(8).uint64(d.block),d.app.isZero()||b.uint32(16).uint64(d.app),b},decode(d,b){const dt=d instanceof _m0$e.Reader?d:new _m0$e.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseConsensus$1();for(;dt.pos>>3){case 1:lt.block=dt.uint64();break;case 2:lt.app=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{block:(0,helpers_1$d.isSet)(d.block)?helpers_1$d.Long.fromValue(d.block):helpers_1$d.Long.UZERO,app:(0,helpers_1$d.isSet)(d.app)?helpers_1$d.Long.fromValue(d.app):helpers_1$d.Long.UZERO}},toJSON(d){const b={};return d.block!==void 0&&(b.block=(d.block||helpers_1$d.Long.UZERO).toString()),d.app!==void 0&&(b.app=(d.app||helpers_1$d.Long.UZERO).toString()),b},fromPartial(d){const b=createBaseConsensus$1();return b.block=d.block!==void 0&&d.block!==null?helpers_1$d.Long.fromValue(d.block):helpers_1$d.Long.UZERO,b.app=d.app!==void 0&&d.app!==null?helpers_1$d.Long.fromValue(d.app):helpers_1$d.Long.UZERO,b}};var validator$4={},keys$1={},__createBinding$j=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$j=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$j=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$j(b,d,dt);return __setModuleDefault$j(b,d),b};Object.defineProperty(keys$1,"__esModule",{value:!0});keys$1.PublicKey=keys$1.protobufPackage=void 0;const _m0$d=__importStar$j(minimal$4),helpers_1$c=helpers$1;keys$1.protobufPackage="tendermint.crypto";function createBasePublicKey$1(){return{ed25519:void 0,secp256k1:void 0}}keys$1.PublicKey={encode(d,b=_m0$d.Writer.create()){return d.ed25519!==void 0&&b.uint32(10).bytes(d.ed25519),d.secp256k1!==void 0&&b.uint32(18).bytes(d.secp256k1),b},decode(d,b){const dt=d instanceof _m0$d.Reader?d:new _m0$d.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePublicKey$1();for(;dt.pos>>3){case 1:lt.ed25519=dt.bytes();break;case 2:lt.secp256k1=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{ed25519:(0,helpers_1$c.isSet)(d.ed25519)?(0,helpers_1$c.bytesFromBase64)(d.ed25519):void 0,secp256k1:(0,helpers_1$c.isSet)(d.secp256k1)?(0,helpers_1$c.bytesFromBase64)(d.secp256k1):void 0}},toJSON(d){const b={};return d.ed25519!==void 0&&(b.ed25519=d.ed25519!==void 0?(0,helpers_1$c.base64FromBytes)(d.ed25519):void 0),d.secp256k1!==void 0&&(b.secp256k1=d.secp256k1!==void 0?(0,helpers_1$c.base64FromBytes)(d.secp256k1):void 0),b},fromPartial(d){const b=createBasePublicKey$1();return b.ed25519=d.ed25519??void 0,b.secp256k1=d.secp256k1??void 0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Jt,Zt,Rt,nn){nn===void 0&&(nn=Rt);var Qt=Object.getOwnPropertyDescriptor(Zt,Rt);(!Qt||("get"in Qt?!Zt.__esModule:Qt.writable||Qt.configurable))&&(Qt={enumerable:!0,get:function(){return Zt[Rt]}}),Object.defineProperty(Jt,nn,Qt)}:function(Jt,Zt,Rt,nn){nn===void 0&&(nn=Rt),Jt[nn]=Zt[Rt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Jt,Zt){Object.defineProperty(Jt,"default",{enumerable:!0,value:Zt})}:function(Jt,Zt){Jt.default=Zt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Jt){if(Jt&&Jt.__esModule)return Jt;var Zt={};if(Jt!=null)for(var Rt in Jt)Rt!=="default"&&Object.prototype.hasOwnProperty.call(Jt,Rt)&&b(Zt,Jt,Rt);return dt(Zt,Jt),Zt};Object.defineProperty(d,"__esModule",{value:!0}),d.SimpleValidator=d.Validator=d.ValidatorSet=d.protobufPackage=void 0;const lt=keys$1,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="tendermint.types";function vt(){return{validators:[],proposer:void 0,totalVotingPower:ht.Long.ZERO}}d.ValidatorSet={encode(Jt,Zt=mt.Writer.create()){for(const Rt of Jt.validators)d.Validator.encode(Rt,Zt.uint32(10).fork()).ldelim();return Jt.proposer!==void 0&&d.Validator.encode(Jt.proposer,Zt.uint32(18).fork()).ldelim(),Jt.totalVotingPower.isZero()||Zt.uint32(24).int64(Jt.totalVotingPower),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=vt();for(;Rt.pos>>3){case 1:Qt.validators.push(d.Validator.decode(Rt,Rt.uint32()));break;case 2:Qt.proposer=d.Validator.decode(Rt,Rt.uint32());break;case 3:Qt.totalVotingPower=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{validators:Array.isArray(Jt==null?void 0:Jt.validators)?Jt.validators.map(Zt=>d.Validator.fromJSON(Zt)):[],proposer:(0,ht.isSet)(Jt.proposer)?d.Validator.fromJSON(Jt.proposer):void 0,totalVotingPower:(0,ht.isSet)(Jt.totalVotingPower)?ht.Long.fromValue(Jt.totalVotingPower):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.validators?Zt.validators=Jt.validators.map(Rt=>Rt?d.Validator.toJSON(Rt):void 0):Zt.validators=[],Jt.proposer!==void 0&&(Zt.proposer=Jt.proposer?d.Validator.toJSON(Jt.proposer):void 0),Jt.totalVotingPower!==void 0&&(Zt.totalVotingPower=(Jt.totalVotingPower||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){var Rt;const Zt=vt();return Zt.validators=((Rt=Jt.validators)==null?void 0:Rt.map(nn=>d.Validator.fromPartial(nn)))||[],Zt.proposer=Jt.proposer!==void 0&&Jt.proposer!==null?d.Validator.fromPartial(Jt.proposer):void 0,Zt.totalVotingPower=Jt.totalVotingPower!==void 0&&Jt.totalVotingPower!==null?ht.Long.fromValue(Jt.totalVotingPower):ht.Long.ZERO,Zt}};function kt(){return{address:new Uint8Array,pubKey:void 0,votingPower:ht.Long.ZERO,proposerPriority:ht.Long.ZERO}}d.Validator={encode(Jt,Zt=mt.Writer.create()){return Jt.address.length!==0&&Zt.uint32(10).bytes(Jt.address),Jt.pubKey!==void 0&<.PublicKey.encode(Jt.pubKey,Zt.uint32(18).fork()).ldelim(),Jt.votingPower.isZero()||Zt.uint32(24).int64(Jt.votingPower),Jt.proposerPriority.isZero()||Zt.uint32(32).int64(Jt.proposerPriority),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=kt();for(;Rt.pos>>3){case 1:Qt.address=Rt.bytes();break;case 2:Qt.pubKey=lt.PublicKey.decode(Rt,Rt.uint32());break;case 3:Qt.votingPower=Rt.int64();break;case 4:Qt.proposerPriority=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{address:(0,ht.isSet)(Jt.address)?(0,ht.bytesFromBase64)(Jt.address):new Uint8Array,pubKey:(0,ht.isSet)(Jt.pubKey)?lt.PublicKey.fromJSON(Jt.pubKey):void 0,votingPower:(0,ht.isSet)(Jt.votingPower)?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,proposerPriority:(0,ht.isSet)(Jt.proposerPriority)?ht.Long.fromValue(Jt.proposerPriority):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.address!==void 0&&(Zt.address=(0,ht.base64FromBytes)(Jt.address!==void 0?Jt.address:new Uint8Array)),Jt.pubKey!==void 0&&(Zt.pubKey=Jt.pubKey?lt.PublicKey.toJSON(Jt.pubKey):void 0),Jt.votingPower!==void 0&&(Zt.votingPower=(Jt.votingPower||ht.Long.ZERO).toString()),Jt.proposerPriority!==void 0&&(Zt.proposerPriority=(Jt.proposerPriority||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){const Zt=kt();return Zt.address=Jt.address??new Uint8Array,Zt.pubKey=Jt.pubKey!==void 0&&Jt.pubKey!==null?lt.PublicKey.fromPartial(Jt.pubKey):void 0,Zt.votingPower=Jt.votingPower!==void 0&&Jt.votingPower!==null?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,Zt.proposerPriority=Jt.proposerPriority!==void 0&&Jt.proposerPriority!==null?ht.Long.fromValue(Jt.proposerPriority):ht.Long.ZERO,Zt}};function Pt(){return{pubKey:void 0,votingPower:ht.Long.ZERO}}d.SimpleValidator={encode(Jt,Zt=mt.Writer.create()){return Jt.pubKey!==void 0&<.PublicKey.encode(Jt.pubKey,Zt.uint32(10).fork()).ldelim(),Jt.votingPower.isZero()||Zt.uint32(16).int64(Jt.votingPower),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=Pt();for(;Rt.pos>>3){case 1:Qt.pubKey=lt.PublicKey.decode(Rt,Rt.uint32());break;case 2:Qt.votingPower=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{pubKey:(0,ht.isSet)(Jt.pubKey)?lt.PublicKey.fromJSON(Jt.pubKey):void 0,votingPower:(0,ht.isSet)(Jt.votingPower)?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.pubKey!==void 0&&(Zt.pubKey=Jt.pubKey?lt.PublicKey.toJSON(Jt.pubKey):void 0),Jt.votingPower!==void 0&&(Zt.votingPower=(Jt.votingPower||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){const Zt=Pt();return Zt.pubKey=Jt.pubKey!==void 0&&Jt.pubKey!==null?lt.PublicKey.fromPartial(Jt.pubKey):void 0,Zt.votingPower=Jt.votingPower!==void 0&&Jt.votingPower!==null?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,Zt}}})(validator$4);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt);var Vt=Object.getOwnPropertyDescriptor(It,Gt);(!Vt||("get"in Vt?!It.__esModule:Vt.writable||Vt.configurable))&&(Vt={enumerable:!0,get:function(){return It[Gt]}}),Object.defineProperty(St,Ut,Vt)}:function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt),St[Ut]=It[Gt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,It){Object.defineProperty(St,"default",{enumerable:!0,value:It})}:function(St,It){St.default=It}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var It={};if(St!=null)for(var Gt in St)Gt!=="default"&&Object.prototype.hasOwnProperty.call(St,Gt)&&b(It,St,Gt);return dt(It,St),It};Object.defineProperty(d,"__esModule",{value:!0}),d.TxProof=d.BlockMeta=d.LightBlock=d.SignedHeader=d.Proposal=d.CommitSig=d.Commit=d.Vote=d.Data=d.Header=d.BlockID=d.Part=d.PartSetHeader=d.signedMsgTypeToJSON=d.signedMsgTypeFromJSON=d.SignedMsgType=d.blockIDFlagToJSON=d.blockIDFlagFromJSON=d.BlockIDFlag=d.protobufPackage=void 0;const lt=proof$1,ht=types$e,mt=timestamp$1,vt=validator$4,kt=helpers$1,Pt=ct(minimal$4);d.protobufPackage="tendermint.types";var Jt;(function(St){St[St.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",St[St.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",St[St.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",St[St.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.BlockIDFlag||(d.BlockIDFlag={}));function Zt(St){switch(St){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return Jt.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return Jt.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return Jt.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return Jt.BLOCK_ID_FLAG_NIL;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.blockIDFlagFromJSON=Zt;function Rt(St){switch(St){case Jt.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case Jt.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case Jt.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case Jt.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.blockIDFlagToJSON=Rt;var nn;(function(St){St[St.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",St[St.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",St[St.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",St[St.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nn=d.SignedMsgType||(d.SignedMsgType={}));function Qt(St){switch(St){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return nn.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return nn.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return nn.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return nn.SIGNED_MSG_TYPE_PROPOSAL;case-1:case"UNRECOGNIZED":default:return nn.UNRECOGNIZED}}d.signedMsgTypeFromJSON=Qt;function wt(St){switch(St){case nn.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case nn.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case nn.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case nn.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";case nn.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.signedMsgTypeToJSON=wt;function Nt(){return{total:0,hash:new Uint8Array}}d.PartSetHeader={encode(St,It=Pt.Writer.create()){return St.total!==0&&It.uint32(8).uint32(St.total),St.hash.length!==0&&It.uint32(18).bytes(St.hash),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Nt();for(;Gt.pos>>3){case 1:Vt.total=Gt.uint32();break;case 2:Vt.hash=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{total:(0,kt.isSet)(St.total)?Number(St.total):0,hash:(0,kt.isSet)(St.hash)?(0,kt.bytesFromBase64)(St.hash):new Uint8Array}},toJSON(St){const It={};return St.total!==void 0&&(It.total=Math.round(St.total)),St.hash!==void 0&&(It.hash=(0,kt.base64FromBytes)(St.hash!==void 0?St.hash:new Uint8Array)),It},fromPartial(St){const It=Nt();return It.total=St.total??0,It.hash=St.hash??new Uint8Array,It}};function xt(){return{index:0,bytes:new Uint8Array,proof:void 0}}d.Part={encode(St,It=Pt.Writer.create()){return St.index!==0&&It.uint32(8).uint32(St.index),St.bytes.length!==0&&It.uint32(18).bytes(St.bytes),St.proof!==void 0&<.Proof.encode(St.proof,It.uint32(26).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=xt();for(;Gt.pos>>3){case 1:Vt.index=Gt.uint32();break;case 2:Vt.bytes=Gt.bytes();break;case 3:Vt.proof=lt.Proof.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{index:(0,kt.isSet)(St.index)?Number(St.index):0,bytes:(0,kt.isSet)(St.bytes)?(0,kt.bytesFromBase64)(St.bytes):new Uint8Array,proof:(0,kt.isSet)(St.proof)?lt.Proof.fromJSON(St.proof):void 0}},toJSON(St){const It={};return St.index!==void 0&&(It.index=Math.round(St.index)),St.bytes!==void 0&&(It.bytes=(0,kt.base64FromBytes)(St.bytes!==void 0?St.bytes:new Uint8Array)),St.proof!==void 0&&(It.proof=St.proof?lt.Proof.toJSON(St.proof):void 0),It},fromPartial(St){const It=xt();return It.index=St.index??0,It.bytes=St.bytes??new Uint8Array,It.proof=St.proof!==void 0&&St.proof!==null?lt.Proof.fromPartial(St.proof):void 0,It}};function Et(){return{hash:new Uint8Array,partSetHeader:void 0}}d.BlockID={encode(St,It=Pt.Writer.create()){return St.hash.length!==0&&It.uint32(10).bytes(St.hash),St.partSetHeader!==void 0&&d.PartSetHeader.encode(St.partSetHeader,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Et();for(;Gt.pos>>3){case 1:Vt.hash=Gt.bytes();break;case 2:Vt.partSetHeader=d.PartSetHeader.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{hash:(0,kt.isSet)(St.hash)?(0,kt.bytesFromBase64)(St.hash):new Uint8Array,partSetHeader:(0,kt.isSet)(St.partSetHeader)?d.PartSetHeader.fromJSON(St.partSetHeader):void 0}},toJSON(St){const It={};return St.hash!==void 0&&(It.hash=(0,kt.base64FromBytes)(St.hash!==void 0?St.hash:new Uint8Array)),St.partSetHeader!==void 0&&(It.partSetHeader=St.partSetHeader?d.PartSetHeader.toJSON(St.partSetHeader):void 0),It},fromPartial(St){const It=Et();return It.hash=St.hash??new Uint8Array,It.partSetHeader=St.partSetHeader!==void 0&&St.partSetHeader!==null?d.PartSetHeader.fromPartial(St.partSetHeader):void 0,It}};function Bt(){return{version:void 0,chainId:"",height:kt.Long.ZERO,time:void 0,lastBlockId:void 0,lastCommitHash:new Uint8Array,dataHash:new Uint8Array,validatorsHash:new Uint8Array,nextValidatorsHash:new Uint8Array,consensusHash:new Uint8Array,appHash:new Uint8Array,lastResultsHash:new Uint8Array,evidenceHash:new Uint8Array,proposerAddress:new Uint8Array}}d.Header={encode(St,It=Pt.Writer.create()){return St.version!==void 0&&ht.Consensus.encode(St.version,It.uint32(10).fork()).ldelim(),St.chainId!==""&&It.uint32(18).string(St.chainId),St.height.isZero()||It.uint32(24).int64(St.height),St.time!==void 0&&mt.Timestamp.encode(St.time,It.uint32(34).fork()).ldelim(),St.lastBlockId!==void 0&&d.BlockID.encode(St.lastBlockId,It.uint32(42).fork()).ldelim(),St.lastCommitHash.length!==0&&It.uint32(50).bytes(St.lastCommitHash),St.dataHash.length!==0&&It.uint32(58).bytes(St.dataHash),St.validatorsHash.length!==0&&It.uint32(66).bytes(St.validatorsHash),St.nextValidatorsHash.length!==0&&It.uint32(74).bytes(St.nextValidatorsHash),St.consensusHash.length!==0&&It.uint32(82).bytes(St.consensusHash),St.appHash.length!==0&&It.uint32(90).bytes(St.appHash),St.lastResultsHash.length!==0&&It.uint32(98).bytes(St.lastResultsHash),St.evidenceHash.length!==0&&It.uint32(106).bytes(St.evidenceHash),St.proposerAddress.length!==0&&It.uint32(114).bytes(St.proposerAddress),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Bt();for(;Gt.pos>>3){case 1:Vt.version=ht.Consensus.decode(Gt,Gt.uint32());break;case 2:Vt.chainId=Gt.string();break;case 3:Vt.height=Gt.int64();break;case 4:Vt.time=mt.Timestamp.decode(Gt,Gt.uint32());break;case 5:Vt.lastBlockId=d.BlockID.decode(Gt,Gt.uint32());break;case 6:Vt.lastCommitHash=Gt.bytes();break;case 7:Vt.dataHash=Gt.bytes();break;case 8:Vt.validatorsHash=Gt.bytes();break;case 9:Vt.nextValidatorsHash=Gt.bytes();break;case 10:Vt.consensusHash=Gt.bytes();break;case 11:Vt.appHash=Gt.bytes();break;case 12:Vt.lastResultsHash=Gt.bytes();break;case 13:Vt.evidenceHash=Gt.bytes();break;case 14:Vt.proposerAddress=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{version:(0,kt.isSet)(St.version)?ht.Consensus.fromJSON(St.version):void 0,chainId:(0,kt.isSet)(St.chainId)?String(St.chainId):"",height:(0,kt.isSet)(St.height)?kt.Long.fromValue(St.height):kt.Long.ZERO,time:(0,kt.isSet)(St.time)?(0,kt.fromJsonTimestamp)(St.time):void 0,lastBlockId:(0,kt.isSet)(St.lastBlockId)?d.BlockID.fromJSON(St.lastBlockId):void 0,lastCommitHash:(0,kt.isSet)(St.lastCommitHash)?(0,kt.bytesFromBase64)(St.lastCommitHash):new Uint8Array,dataHash:(0,kt.isSet)(St.dataHash)?(0,kt.bytesFromBase64)(St.dataHash):new Uint8Array,validatorsHash:(0,kt.isSet)(St.validatorsHash)?(0,kt.bytesFromBase64)(St.validatorsHash):new Uint8Array,nextValidatorsHash:(0,kt.isSet)(St.nextValidatorsHash)?(0,kt.bytesFromBase64)(St.nextValidatorsHash):new Uint8Array,consensusHash:(0,kt.isSet)(St.consensusHash)?(0,kt.bytesFromBase64)(St.consensusHash):new Uint8Array,appHash:(0,kt.isSet)(St.appHash)?(0,kt.bytesFromBase64)(St.appHash):new Uint8Array,lastResultsHash:(0,kt.isSet)(St.lastResultsHash)?(0,kt.bytesFromBase64)(St.lastResultsHash):new Uint8Array,evidenceHash:(0,kt.isSet)(St.evidenceHash)?(0,kt.bytesFromBase64)(St.evidenceHash):new Uint8Array,proposerAddress:(0,kt.isSet)(St.proposerAddress)?(0,kt.bytesFromBase64)(St.proposerAddress):new Uint8Array}},toJSON(St){const It={};return St.version!==void 0&&(It.version=St.version?ht.Consensus.toJSON(St.version):void 0),St.chainId!==void 0&&(It.chainId=St.chainId),St.height!==void 0&&(It.height=(St.height||kt.Long.ZERO).toString()),St.time!==void 0&&(It.time=(0,kt.fromTimestamp)(St.time).toISOString()),St.lastBlockId!==void 0&&(It.lastBlockId=St.lastBlockId?d.BlockID.toJSON(St.lastBlockId):void 0),St.lastCommitHash!==void 0&&(It.lastCommitHash=(0,kt.base64FromBytes)(St.lastCommitHash!==void 0?St.lastCommitHash:new Uint8Array)),St.dataHash!==void 0&&(It.dataHash=(0,kt.base64FromBytes)(St.dataHash!==void 0?St.dataHash:new Uint8Array)),St.validatorsHash!==void 0&&(It.validatorsHash=(0,kt.base64FromBytes)(St.validatorsHash!==void 0?St.validatorsHash:new Uint8Array)),St.nextValidatorsHash!==void 0&&(It.nextValidatorsHash=(0,kt.base64FromBytes)(St.nextValidatorsHash!==void 0?St.nextValidatorsHash:new Uint8Array)),St.consensusHash!==void 0&&(It.consensusHash=(0,kt.base64FromBytes)(St.consensusHash!==void 0?St.consensusHash:new Uint8Array)),St.appHash!==void 0&&(It.appHash=(0,kt.base64FromBytes)(St.appHash!==void 0?St.appHash:new Uint8Array)),St.lastResultsHash!==void 0&&(It.lastResultsHash=(0,kt.base64FromBytes)(St.lastResultsHash!==void 0?St.lastResultsHash:new Uint8Array)),St.evidenceHash!==void 0&&(It.evidenceHash=(0,kt.base64FromBytes)(St.evidenceHash!==void 0?St.evidenceHash:new Uint8Array)),St.proposerAddress!==void 0&&(It.proposerAddress=(0,kt.base64FromBytes)(St.proposerAddress!==void 0?St.proposerAddress:new Uint8Array)),It},fromPartial(St){const It=Bt();return It.version=St.version!==void 0&&St.version!==null?ht.Consensus.fromPartial(St.version):void 0,It.chainId=St.chainId??"",It.height=St.height!==void 0&&St.height!==null?kt.Long.fromValue(St.height):kt.Long.ZERO,It.time=St.time!==void 0&&St.time!==null?mt.Timestamp.fromPartial(St.time):void 0,It.lastBlockId=St.lastBlockId!==void 0&&St.lastBlockId!==null?d.BlockID.fromPartial(St.lastBlockId):void 0,It.lastCommitHash=St.lastCommitHash??new Uint8Array,It.dataHash=St.dataHash??new Uint8Array,It.validatorsHash=St.validatorsHash??new Uint8Array,It.nextValidatorsHash=St.nextValidatorsHash??new Uint8Array,It.consensusHash=St.consensusHash??new Uint8Array,It.appHash=St.appHash??new Uint8Array,It.lastResultsHash=St.lastResultsHash??new Uint8Array,It.evidenceHash=St.evidenceHash??new Uint8Array,It.proposerAddress=St.proposerAddress??new Uint8Array,It}};function Tt(){return{txs:[]}}d.Data={encode(St,It=Pt.Writer.create()){for(const Gt of St.txs)It.uint32(10).bytes(Gt);return It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Tt();for(;Gt.pos>>3){case 1:Vt.txs.push(Gt.bytes());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{txs:Array.isArray(St==null?void 0:St.txs)?St.txs.map(It=>(0,kt.bytesFromBase64)(It)):[]}},toJSON(St){const It={};return St.txs?It.txs=St.txs.map(Gt=>(0,kt.base64FromBytes)(Gt!==void 0?Gt:new Uint8Array)):It.txs=[],It},fromPartial(St){var Gt;const It=Tt();return It.txs=((Gt=St.txs)==null?void 0:Gt.map(Ut=>Ut))||[],It}};function Mt(){return{type:0,height:kt.Long.ZERO,round:0,blockId:void 0,timestamp:void 0,validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}d.Vote={encode(St,It=Pt.Writer.create()){return St.type!==0&&It.uint32(8).int32(St.type),St.height.isZero()||It.uint32(16).int64(St.height),St.round!==0&&It.uint32(24).int32(St.round),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(34).fork()).ldelim(),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(42).fork()).ldelim(),St.validatorAddress.length!==0&&It.uint32(50).bytes(St.validatorAddress),St.validatorIndex!==0&&It.uint32(56).int32(St.validatorIndex),St.signature.length!==0&&It.uint32(66).bytes(St.signature),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Mt();for(;Gt.pos>>3){case 1:Vt.type=Gt.int32();break;case 2:Vt.height=Gt.int64();break;case 3:Vt.round=Gt.int32();break;case 4:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 5:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 6:Vt.validatorAddress=Gt.bytes();break;case 7:Vt.validatorIndex=Gt.int32();break;case 8:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{type:(0,kt.isSet)(St.type)?Qt(St.type):0,height:(0,kt.isSet)(St.height)?kt.Long.fromValue(St.height):kt.Long.ZERO,round:(0,kt.isSet)(St.round)?Number(St.round):0,blockId:(0,kt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,timestamp:(0,kt.isSet)(St.timestamp)?(0,kt.fromJsonTimestamp)(St.timestamp):void 0,validatorAddress:(0,kt.isSet)(St.validatorAddress)?(0,kt.bytesFromBase64)(St.validatorAddress):new Uint8Array,validatorIndex:(0,kt.isSet)(St.validatorIndex)?Number(St.validatorIndex):0,signature:(0,kt.isSet)(St.signature)?(0,kt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.type!==void 0&&(It.type=wt(St.type)),St.height!==void 0&&(It.height=(St.height||kt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.timestamp!==void 0&&(It.timestamp=(0,kt.fromTimestamp)(St.timestamp).toISOString()),St.validatorAddress!==void 0&&(It.validatorAddress=(0,kt.base64FromBytes)(St.validatorAddress!==void 0?St.validatorAddress:new Uint8Array)),St.validatorIndex!==void 0&&(It.validatorIndex=Math.round(St.validatorIndex)),St.signature!==void 0&&(It.signature=(0,kt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=Mt();return It.type=St.type??0,It.height=St.height!==void 0&&St.height!==null?kt.Long.fromValue(St.height):kt.Long.ZERO,It.round=St.round??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.validatorAddress=St.validatorAddress??new Uint8Array,It.validatorIndex=St.validatorIndex??0,It.signature=St.signature??new Uint8Array,It}};function jt(){return{height:kt.Long.ZERO,round:0,blockId:void 0,signatures:[]}}d.Commit={encode(St,It=Pt.Writer.create()){St.height.isZero()||It.uint32(8).int64(St.height),St.round!==0&&It.uint32(16).int32(St.round),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(26).fork()).ldelim();for(const Gt of St.signatures)d.CommitSig.encode(Gt,It.uint32(34).fork()).ldelim();return It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=jt();for(;Gt.pos>>3){case 1:Vt.height=Gt.int64();break;case 2:Vt.round=Gt.int32();break;case 3:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 4:Vt.signatures.push(d.CommitSig.decode(Gt,Gt.uint32()));break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{height:(0,kt.isSet)(St.height)?kt.Long.fromValue(St.height):kt.Long.ZERO,round:(0,kt.isSet)(St.round)?Number(St.round):0,blockId:(0,kt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,signatures:Array.isArray(St==null?void 0:St.signatures)?St.signatures.map(It=>d.CommitSig.fromJSON(It)):[]}},toJSON(St){const It={};return St.height!==void 0&&(It.height=(St.height||kt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.signatures?It.signatures=St.signatures.map(Gt=>Gt?d.CommitSig.toJSON(Gt):void 0):It.signatures=[],It},fromPartial(St){var Gt;const It=jt();return It.height=St.height!==void 0&&St.height!==null?kt.Long.fromValue(St.height):kt.Long.ZERO,It.round=St.round??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.signatures=((Gt=St.signatures)==null?void 0:Gt.map(Ut=>d.CommitSig.fromPartial(Ut)))||[],It}};function Ht(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}d.CommitSig={encode(St,It=Pt.Writer.create()){return St.blockIdFlag!==0&&It.uint32(8).int32(St.blockIdFlag),St.validatorAddress.length!==0&&It.uint32(18).bytes(St.validatorAddress),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(26).fork()).ldelim(),St.signature.length!==0&&It.uint32(34).bytes(St.signature),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Ht();for(;Gt.pos>>3){case 1:Vt.blockIdFlag=Gt.int32();break;case 2:Vt.validatorAddress=Gt.bytes();break;case 3:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 4:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{blockIdFlag:(0,kt.isSet)(St.blockIdFlag)?Zt(St.blockIdFlag):0,validatorAddress:(0,kt.isSet)(St.validatorAddress)?(0,kt.bytesFromBase64)(St.validatorAddress):new Uint8Array,timestamp:(0,kt.isSet)(St.timestamp)?(0,kt.fromJsonTimestamp)(St.timestamp):void 0,signature:(0,kt.isSet)(St.signature)?(0,kt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.blockIdFlag!==void 0&&(It.blockIdFlag=Rt(St.blockIdFlag)),St.validatorAddress!==void 0&&(It.validatorAddress=(0,kt.base64FromBytes)(St.validatorAddress!==void 0?St.validatorAddress:new Uint8Array)),St.timestamp!==void 0&&(It.timestamp=(0,kt.fromTimestamp)(St.timestamp).toISOString()),St.signature!==void 0&&(It.signature=(0,kt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=Ht();return It.blockIdFlag=St.blockIdFlag??0,It.validatorAddress=St.validatorAddress??new Uint8Array,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.signature=St.signature??new Uint8Array,It}};function an(){return{type:0,height:kt.Long.ZERO,round:0,polRound:0,blockId:void 0,timestamp:void 0,signature:new Uint8Array}}d.Proposal={encode(St,It=Pt.Writer.create()){return St.type!==0&&It.uint32(8).int32(St.type),St.height.isZero()||It.uint32(16).int64(St.height),St.round!==0&&It.uint32(24).int32(St.round),St.polRound!==0&&It.uint32(32).int32(St.polRound),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(42).fork()).ldelim(),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(50).fork()).ldelim(),St.signature.length!==0&&It.uint32(58).bytes(St.signature),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=an();for(;Gt.pos>>3){case 1:Vt.type=Gt.int32();break;case 2:Vt.height=Gt.int64();break;case 3:Vt.round=Gt.int32();break;case 4:Vt.polRound=Gt.int32();break;case 5:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 6:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 7:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{type:(0,kt.isSet)(St.type)?Qt(St.type):0,height:(0,kt.isSet)(St.height)?kt.Long.fromValue(St.height):kt.Long.ZERO,round:(0,kt.isSet)(St.round)?Number(St.round):0,polRound:(0,kt.isSet)(St.polRound)?Number(St.polRound):0,blockId:(0,kt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,timestamp:(0,kt.isSet)(St.timestamp)?(0,kt.fromJsonTimestamp)(St.timestamp):void 0,signature:(0,kt.isSet)(St.signature)?(0,kt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.type!==void 0&&(It.type=wt(St.type)),St.height!==void 0&&(It.height=(St.height||kt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.polRound!==void 0&&(It.polRound=Math.round(St.polRound)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.timestamp!==void 0&&(It.timestamp=(0,kt.fromTimestamp)(St.timestamp).toISOString()),St.signature!==void 0&&(It.signature=(0,kt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=an();return It.type=St.type??0,It.height=St.height!==void 0&&St.height!==null?kt.Long.fromValue(St.height):kt.Long.ZERO,It.round=St.round??0,It.polRound=St.polRound??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.signature=St.signature??new Uint8Array,It}};function yt(){return{header:void 0,commit:void 0}}d.SignedHeader={encode(St,It=Pt.Writer.create()){return St.header!==void 0&&d.Header.encode(St.header,It.uint32(10).fork()).ldelim(),St.commit!==void 0&&d.Commit.encode(St.commit,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=yt();for(;Gt.pos>>3){case 1:Vt.header=d.Header.decode(Gt,Gt.uint32());break;case 2:Vt.commit=d.Commit.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{header:(0,kt.isSet)(St.header)?d.Header.fromJSON(St.header):void 0,commit:(0,kt.isSet)(St.commit)?d.Commit.fromJSON(St.commit):void 0}},toJSON(St){const It={};return St.header!==void 0&&(It.header=St.header?d.Header.toJSON(St.header):void 0),St.commit!==void 0&&(It.commit=St.commit?d.Commit.toJSON(St.commit):void 0),It},fromPartial(St){const It=yt();return It.header=St.header!==void 0&&St.header!==null?d.Header.fromPartial(St.header):void 0,It.commit=St.commit!==void 0&&St.commit!==null?d.Commit.fromPartial(St.commit):void 0,It}};function $t(){return{signedHeader:void 0,validatorSet:void 0}}d.LightBlock={encode(St,It=Pt.Writer.create()){return St.signedHeader!==void 0&&d.SignedHeader.encode(St.signedHeader,It.uint32(10).fork()).ldelim(),St.validatorSet!==void 0&&vt.ValidatorSet.encode(St.validatorSet,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=$t();for(;Gt.pos>>3){case 1:Vt.signedHeader=d.SignedHeader.decode(Gt,Gt.uint32());break;case 2:Vt.validatorSet=vt.ValidatorSet.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{signedHeader:(0,kt.isSet)(St.signedHeader)?d.SignedHeader.fromJSON(St.signedHeader):void 0,validatorSet:(0,kt.isSet)(St.validatorSet)?vt.ValidatorSet.fromJSON(St.validatorSet):void 0}},toJSON(St){const It={};return St.signedHeader!==void 0&&(It.signedHeader=St.signedHeader?d.SignedHeader.toJSON(St.signedHeader):void 0),St.validatorSet!==void 0&&(It.validatorSet=St.validatorSet?vt.ValidatorSet.toJSON(St.validatorSet):void 0),It},fromPartial(St){const It=$t();return It.signedHeader=St.signedHeader!==void 0&&St.signedHeader!==null?d.SignedHeader.fromPartial(St.signedHeader):void 0,It.validatorSet=St.validatorSet!==void 0&&St.validatorSet!==null?vt.ValidatorSet.fromPartial(St.validatorSet):void 0,It}};function Yt(){return{blockId:void 0,blockSize:kt.Long.ZERO,header:void 0,numTxs:kt.Long.ZERO}}d.BlockMeta={encode(St,It=Pt.Writer.create()){return St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(10).fork()).ldelim(),St.blockSize.isZero()||It.uint32(16).int64(St.blockSize),St.header!==void 0&&d.Header.encode(St.header,It.uint32(26).fork()).ldelim(),St.numTxs.isZero()||It.uint32(32).int64(St.numTxs),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Yt();for(;Gt.pos>>3){case 1:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 2:Vt.blockSize=Gt.int64();break;case 3:Vt.header=d.Header.decode(Gt,Gt.uint32());break;case 4:Vt.numTxs=Gt.int64();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{blockId:(0,kt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,blockSize:(0,kt.isSet)(St.blockSize)?kt.Long.fromValue(St.blockSize):kt.Long.ZERO,header:(0,kt.isSet)(St.header)?d.Header.fromJSON(St.header):void 0,numTxs:(0,kt.isSet)(St.numTxs)?kt.Long.fromValue(St.numTxs):kt.Long.ZERO}},toJSON(St){const It={};return St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.blockSize!==void 0&&(It.blockSize=(St.blockSize||kt.Long.ZERO).toString()),St.header!==void 0&&(It.header=St.header?d.Header.toJSON(St.header):void 0),St.numTxs!==void 0&&(It.numTxs=(St.numTxs||kt.Long.ZERO).toString()),It},fromPartial(St){const It=Yt();return It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.blockSize=St.blockSize!==void 0&&St.blockSize!==null?kt.Long.fromValue(St.blockSize):kt.Long.ZERO,It.header=St.header!==void 0&&St.header!==null?d.Header.fromPartial(St.header):void 0,It.numTxs=St.numTxs!==void 0&&St.numTxs!==null?kt.Long.fromValue(St.numTxs):kt.Long.ZERO,It}};function Kt(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}d.TxProof={encode(St,It=Pt.Writer.create()){return St.rootHash.length!==0&&It.uint32(10).bytes(St.rootHash),St.data.length!==0&&It.uint32(18).bytes(St.data),St.proof!==void 0&<.Proof.encode(St.proof,It.uint32(26).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Pt.Reader?St:new Pt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Kt();for(;Gt.pos>>3){case 1:Vt.rootHash=Gt.bytes();break;case 2:Vt.data=Gt.bytes();break;case 3:Vt.proof=lt.Proof.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{rootHash:(0,kt.isSet)(St.rootHash)?(0,kt.bytesFromBase64)(St.rootHash):new Uint8Array,data:(0,kt.isSet)(St.data)?(0,kt.bytesFromBase64)(St.data):new Uint8Array,proof:(0,kt.isSet)(St.proof)?lt.Proof.fromJSON(St.proof):void 0}},toJSON(St){const It={};return St.rootHash!==void 0&&(It.rootHash=(0,kt.base64FromBytes)(St.rootHash!==void 0?St.rootHash:new Uint8Array)),St.data!==void 0&&(It.data=(0,kt.base64FromBytes)(St.data!==void 0?St.data:new Uint8Array)),St.proof!==void 0&&(It.proof=St.proof?lt.Proof.toJSON(St.proof):void 0),It},fromPartial(St){const It=Kt();return It.rootHash=St.rootHash??new Uint8Array,It.data=St.data??new Uint8Array,It.proof=St.proof!==void 0&&St.proof!==null?lt.Proof.fromPartial(St.proof):void 0,It}}})(types$f);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt);var jt=Object.getOwnPropertyDescriptor(Bt,Tt);(!jt||("get"in jt?!Bt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Bt[Tt]}}),Object.defineProperty(Et,Mt,jt)}:function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt),Et[Mt]=Bt[Tt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Et,Bt){Object.defineProperty(Et,"default",{enumerable:!0,value:Bt})}:function(Et,Bt){Et.default=Bt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Et){if(Et&&Et.__esModule)return Et;var Bt={};if(Et!=null)for(var Tt in Et)Tt!=="default"&&Object.prototype.hasOwnProperty.call(Et,Tt)&&b(Bt,Et,Tt);return dt(Bt,Et),Bt};Object.defineProperty(d,"__esModule",{value:!0}),d.Fraction=d.Header=d.Misbehaviour=d.ConsensusState=d.ClientState=d.protobufPackage=void 0;const lt=duration$1,ht=client$1,mt=proofs,vt=timestamp$1,kt=commitment,Pt=types$f,Jt=validator$4,Zt=helpers$1,Rt=ct(minimal$4);d.protobufPackage="ibc.lightclients.tendermint.v1";function nn(){return{chainId:"",trustLevel:void 0,trustingPeriod:void 0,unbondingPeriod:void 0,maxClockDrift:void 0,frozenHeight:void 0,latestHeight:void 0,proofSpecs:[],upgradePath:[],allowUpdateAfterExpiry:!1,allowUpdateAfterMisbehaviour:!1}}d.ClientState={encode(Et,Bt=Rt.Writer.create()){Et.chainId!==""&&Bt.uint32(10).string(Et.chainId),Et.trustLevel!==void 0&&d.Fraction.encode(Et.trustLevel,Bt.uint32(18).fork()).ldelim(),Et.trustingPeriod!==void 0&<.Duration.encode(Et.trustingPeriod,Bt.uint32(26).fork()).ldelim(),Et.unbondingPeriod!==void 0&<.Duration.encode(Et.unbondingPeriod,Bt.uint32(34).fork()).ldelim(),Et.maxClockDrift!==void 0&<.Duration.encode(Et.maxClockDrift,Bt.uint32(42).fork()).ldelim(),Et.frozenHeight!==void 0&&ht.Height.encode(Et.frozenHeight,Bt.uint32(50).fork()).ldelim(),Et.latestHeight!==void 0&&ht.Height.encode(Et.latestHeight,Bt.uint32(58).fork()).ldelim();for(const Tt of Et.proofSpecs)mt.ProofSpec.encode(Tt,Bt.uint32(66).fork()).ldelim();for(const Tt of Et.upgradePath)Bt.uint32(74).string(Tt);return Et.allowUpdateAfterExpiry===!0&&Bt.uint32(80).bool(Et.allowUpdateAfterExpiry),Et.allowUpdateAfterMisbehaviour===!0&&Bt.uint32(88).bool(Et.allowUpdateAfterMisbehaviour),Bt},decode(Et,Bt){const Tt=Et instanceof Rt.Reader?Et:new Rt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.chainId=Tt.string();break;case 2:jt.trustLevel=d.Fraction.decode(Tt,Tt.uint32());break;case 3:jt.trustingPeriod=lt.Duration.decode(Tt,Tt.uint32());break;case 4:jt.unbondingPeriod=lt.Duration.decode(Tt,Tt.uint32());break;case 5:jt.maxClockDrift=lt.Duration.decode(Tt,Tt.uint32());break;case 6:jt.frozenHeight=ht.Height.decode(Tt,Tt.uint32());break;case 7:jt.latestHeight=ht.Height.decode(Tt,Tt.uint32());break;case 8:jt.proofSpecs.push(mt.ProofSpec.decode(Tt,Tt.uint32()));break;case 9:jt.upgradePath.push(Tt.string());break;case 10:jt.allowUpdateAfterExpiry=Tt.bool();break;case 11:jt.allowUpdateAfterMisbehaviour=Tt.bool();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{chainId:(0,Zt.isSet)(Et.chainId)?String(Et.chainId):"",trustLevel:(0,Zt.isSet)(Et.trustLevel)?d.Fraction.fromJSON(Et.trustLevel):void 0,trustingPeriod:(0,Zt.isSet)(Et.trustingPeriod)?lt.Duration.fromJSON(Et.trustingPeriod):void 0,unbondingPeriod:(0,Zt.isSet)(Et.unbondingPeriod)?lt.Duration.fromJSON(Et.unbondingPeriod):void 0,maxClockDrift:(0,Zt.isSet)(Et.maxClockDrift)?lt.Duration.fromJSON(Et.maxClockDrift):void 0,frozenHeight:(0,Zt.isSet)(Et.frozenHeight)?ht.Height.fromJSON(Et.frozenHeight):void 0,latestHeight:(0,Zt.isSet)(Et.latestHeight)?ht.Height.fromJSON(Et.latestHeight):void 0,proofSpecs:Array.isArray(Et==null?void 0:Et.proofSpecs)?Et.proofSpecs.map(Bt=>mt.ProofSpec.fromJSON(Bt)):[],upgradePath:Array.isArray(Et==null?void 0:Et.upgradePath)?Et.upgradePath.map(Bt=>String(Bt)):[],allowUpdateAfterExpiry:(0,Zt.isSet)(Et.allowUpdateAfterExpiry)?!!Et.allowUpdateAfterExpiry:!1,allowUpdateAfterMisbehaviour:(0,Zt.isSet)(Et.allowUpdateAfterMisbehaviour)?!!Et.allowUpdateAfterMisbehaviour:!1}},toJSON(Et){const Bt={};return Et.chainId!==void 0&&(Bt.chainId=Et.chainId),Et.trustLevel!==void 0&&(Bt.trustLevel=Et.trustLevel?d.Fraction.toJSON(Et.trustLevel):void 0),Et.trustingPeriod!==void 0&&(Bt.trustingPeriod=Et.trustingPeriod?lt.Duration.toJSON(Et.trustingPeriod):void 0),Et.unbondingPeriod!==void 0&&(Bt.unbondingPeriod=Et.unbondingPeriod?lt.Duration.toJSON(Et.unbondingPeriod):void 0),Et.maxClockDrift!==void 0&&(Bt.maxClockDrift=Et.maxClockDrift?lt.Duration.toJSON(Et.maxClockDrift):void 0),Et.frozenHeight!==void 0&&(Bt.frozenHeight=Et.frozenHeight?ht.Height.toJSON(Et.frozenHeight):void 0),Et.latestHeight!==void 0&&(Bt.latestHeight=Et.latestHeight?ht.Height.toJSON(Et.latestHeight):void 0),Et.proofSpecs?Bt.proofSpecs=Et.proofSpecs.map(Tt=>Tt?mt.ProofSpec.toJSON(Tt):void 0):Bt.proofSpecs=[],Et.upgradePath?Bt.upgradePath=Et.upgradePath.map(Tt=>Tt):Bt.upgradePath=[],Et.allowUpdateAfterExpiry!==void 0&&(Bt.allowUpdateAfterExpiry=Et.allowUpdateAfterExpiry),Et.allowUpdateAfterMisbehaviour!==void 0&&(Bt.allowUpdateAfterMisbehaviour=Et.allowUpdateAfterMisbehaviour),Bt},fromPartial(Et){var Tt,Mt;const Bt=nn();return Bt.chainId=Et.chainId??"",Bt.trustLevel=Et.trustLevel!==void 0&&Et.trustLevel!==null?d.Fraction.fromPartial(Et.trustLevel):void 0,Bt.trustingPeriod=Et.trustingPeriod!==void 0&&Et.trustingPeriod!==null?lt.Duration.fromPartial(Et.trustingPeriod):void 0,Bt.unbondingPeriod=Et.unbondingPeriod!==void 0&&Et.unbondingPeriod!==null?lt.Duration.fromPartial(Et.unbondingPeriod):void 0,Bt.maxClockDrift=Et.maxClockDrift!==void 0&&Et.maxClockDrift!==null?lt.Duration.fromPartial(Et.maxClockDrift):void 0,Bt.frozenHeight=Et.frozenHeight!==void 0&&Et.frozenHeight!==null?ht.Height.fromPartial(Et.frozenHeight):void 0,Bt.latestHeight=Et.latestHeight!==void 0&&Et.latestHeight!==null?ht.Height.fromPartial(Et.latestHeight):void 0,Bt.proofSpecs=((Tt=Et.proofSpecs)==null?void 0:Tt.map(jt=>mt.ProofSpec.fromPartial(jt)))||[],Bt.upgradePath=((Mt=Et.upgradePath)==null?void 0:Mt.map(jt=>jt))||[],Bt.allowUpdateAfterExpiry=Et.allowUpdateAfterExpiry??!1,Bt.allowUpdateAfterMisbehaviour=Et.allowUpdateAfterMisbehaviour??!1,Bt}};function Qt(){return{timestamp:void 0,root:void 0,nextValidatorsHash:new Uint8Array}}d.ConsensusState={encode(Et,Bt=Rt.Writer.create()){return Et.timestamp!==void 0&&vt.Timestamp.encode(Et.timestamp,Bt.uint32(10).fork()).ldelim(),Et.root!==void 0&&kt.MerkleRoot.encode(Et.root,Bt.uint32(18).fork()).ldelim(),Et.nextValidatorsHash.length!==0&&Bt.uint32(26).bytes(Et.nextValidatorsHash),Bt},decode(Et,Bt){const Tt=Et instanceof Rt.Reader?Et:new Rt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){case 1:jt.timestamp=vt.Timestamp.decode(Tt,Tt.uint32());break;case 2:jt.root=kt.MerkleRoot.decode(Tt,Tt.uint32());break;case 3:jt.nextValidatorsHash=Tt.bytes();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{timestamp:(0,Zt.isSet)(Et.timestamp)?(0,Zt.fromJsonTimestamp)(Et.timestamp):void 0,root:(0,Zt.isSet)(Et.root)?kt.MerkleRoot.fromJSON(Et.root):void 0,nextValidatorsHash:(0,Zt.isSet)(Et.nextValidatorsHash)?(0,Zt.bytesFromBase64)(Et.nextValidatorsHash):new Uint8Array}},toJSON(Et){const Bt={};return Et.timestamp!==void 0&&(Bt.timestamp=(0,Zt.fromTimestamp)(Et.timestamp).toISOString()),Et.root!==void 0&&(Bt.root=Et.root?kt.MerkleRoot.toJSON(Et.root):void 0),Et.nextValidatorsHash!==void 0&&(Bt.nextValidatorsHash=(0,Zt.base64FromBytes)(Et.nextValidatorsHash!==void 0?Et.nextValidatorsHash:new Uint8Array)),Bt},fromPartial(Et){const Bt=Qt();return Bt.timestamp=Et.timestamp!==void 0&&Et.timestamp!==null?vt.Timestamp.fromPartial(Et.timestamp):void 0,Bt.root=Et.root!==void 0&&Et.root!==null?kt.MerkleRoot.fromPartial(Et.root):void 0,Bt.nextValidatorsHash=Et.nextValidatorsHash??new Uint8Array,Bt}};function wt(){return{clientId:"",header1:void 0,header2:void 0}}d.Misbehaviour={encode(Et,Bt=Rt.Writer.create()){return Et.clientId!==""&&Bt.uint32(10).string(Et.clientId),Et.header1!==void 0&&d.Header.encode(Et.header1,Bt.uint32(18).fork()).ldelim(),Et.header2!==void 0&&d.Header.encode(Et.header2,Bt.uint32(26).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof Rt.Reader?Et:new Rt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.clientId=Tt.string();break;case 2:jt.header1=d.Header.decode(Tt,Tt.uint32());break;case 3:jt.header2=d.Header.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{clientId:(0,Zt.isSet)(Et.clientId)?String(Et.clientId):"",header1:(0,Zt.isSet)(Et.header1)?d.Header.fromJSON(Et.header1):void 0,header2:(0,Zt.isSet)(Et.header2)?d.Header.fromJSON(Et.header2):void 0}},toJSON(Et){const Bt={};return Et.clientId!==void 0&&(Bt.clientId=Et.clientId),Et.header1!==void 0&&(Bt.header1=Et.header1?d.Header.toJSON(Et.header1):void 0),Et.header2!==void 0&&(Bt.header2=Et.header2?d.Header.toJSON(Et.header2):void 0),Bt},fromPartial(Et){const Bt=wt();return Bt.clientId=Et.clientId??"",Bt.header1=Et.header1!==void 0&&Et.header1!==null?d.Header.fromPartial(Et.header1):void 0,Bt.header2=Et.header2!==void 0&&Et.header2!==null?d.Header.fromPartial(Et.header2):void 0,Bt}};function Nt(){return{signedHeader:void 0,validatorSet:void 0,trustedHeight:void 0,trustedValidators:void 0}}d.Header={encode(Et,Bt=Rt.Writer.create()){return Et.signedHeader!==void 0&&Pt.SignedHeader.encode(Et.signedHeader,Bt.uint32(10).fork()).ldelim(),Et.validatorSet!==void 0&&Jt.ValidatorSet.encode(Et.validatorSet,Bt.uint32(18).fork()).ldelim(),Et.trustedHeight!==void 0&&ht.Height.encode(Et.trustedHeight,Bt.uint32(26).fork()).ldelim(),Et.trustedValidators!==void 0&&Jt.ValidatorSet.encode(Et.trustedValidators,Bt.uint32(34).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof Rt.Reader?Et:new Rt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Nt();for(;Tt.pos>>3){case 1:jt.signedHeader=Pt.SignedHeader.decode(Tt,Tt.uint32());break;case 2:jt.validatorSet=Jt.ValidatorSet.decode(Tt,Tt.uint32());break;case 3:jt.trustedHeight=ht.Height.decode(Tt,Tt.uint32());break;case 4:jt.trustedValidators=Jt.ValidatorSet.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{signedHeader:(0,Zt.isSet)(Et.signedHeader)?Pt.SignedHeader.fromJSON(Et.signedHeader):void 0,validatorSet:(0,Zt.isSet)(Et.validatorSet)?Jt.ValidatorSet.fromJSON(Et.validatorSet):void 0,trustedHeight:(0,Zt.isSet)(Et.trustedHeight)?ht.Height.fromJSON(Et.trustedHeight):void 0,trustedValidators:(0,Zt.isSet)(Et.trustedValidators)?Jt.ValidatorSet.fromJSON(Et.trustedValidators):void 0}},toJSON(Et){const Bt={};return Et.signedHeader!==void 0&&(Bt.signedHeader=Et.signedHeader?Pt.SignedHeader.toJSON(Et.signedHeader):void 0),Et.validatorSet!==void 0&&(Bt.validatorSet=Et.validatorSet?Jt.ValidatorSet.toJSON(Et.validatorSet):void 0),Et.trustedHeight!==void 0&&(Bt.trustedHeight=Et.trustedHeight?ht.Height.toJSON(Et.trustedHeight):void 0),Et.trustedValidators!==void 0&&(Bt.trustedValidators=Et.trustedValidators?Jt.ValidatorSet.toJSON(Et.trustedValidators):void 0),Bt},fromPartial(Et){const Bt=Nt();return Bt.signedHeader=Et.signedHeader!==void 0&&Et.signedHeader!==null?Pt.SignedHeader.fromPartial(Et.signedHeader):void 0,Bt.validatorSet=Et.validatorSet!==void 0&&Et.validatorSet!==null?Jt.ValidatorSet.fromPartial(Et.validatorSet):void 0,Bt.trustedHeight=Et.trustedHeight!==void 0&&Et.trustedHeight!==null?ht.Height.fromPartial(Et.trustedHeight):void 0,Bt.trustedValidators=Et.trustedValidators!==void 0&&Et.trustedValidators!==null?Jt.ValidatorSet.fromPartial(Et.trustedValidators):void 0,Bt}};function xt(){return{numerator:Zt.Long.UZERO,denominator:Zt.Long.UZERO}}d.Fraction={encode(Et,Bt=Rt.Writer.create()){return Et.numerator.isZero()||Bt.uint32(8).uint64(Et.numerator),Et.denominator.isZero()||Bt.uint32(16).uint64(Et.denominator),Bt},decode(Et,Bt){const Tt=Et instanceof Rt.Reader?Et:new Rt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=xt();for(;Tt.pos>>3){case 1:jt.numerator=Tt.uint64();break;case 2:jt.denominator=Tt.uint64();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{numerator:(0,Zt.isSet)(Et.numerator)?Zt.Long.fromValue(Et.numerator):Zt.Long.UZERO,denominator:(0,Zt.isSet)(Et.denominator)?Zt.Long.fromValue(Et.denominator):Zt.Long.UZERO}},toJSON(Et){const Bt={};return Et.numerator!==void 0&&(Bt.numerator=(Et.numerator||Zt.Long.UZERO).toString()),Et.denominator!==void 0&&(Bt.denominator=(Et.denominator||Zt.Long.UZERO).toString()),Bt},fromPartial(Et){const Bt=xt();return Bt.numerator=Et.numerator!==void 0&&Et.numerator!==null?Zt.Long.fromValue(Et.numerator):Zt.Long.UZERO,Bt.denominator=Et.denominator!==void 0&&Et.denominator!==null?Zt.Long.fromValue(Et.denominator):Zt.Long.UZERO,Bt}}})(tendermint);var __importDefault$t=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(queries$6,"__esModule",{value:!0});queries$6.setupIbcExtension=void 0;const encoding_1$i=build$6,math_1$9=build$f,query_1$b=query$g,channel_1=channel,query_2$1=query$f,query_3$1=query$e,query_4$1=query$d,tendermint_1=tendermint,long_1$g=__importDefault$t(long),queryclient_1$6=queryclient$1;function decodeTendermintClientStateAny(d){if((d==null?void 0:d.typeUrl)!=="/ibc.lightclients.tendermint.v1.ClientState")throw new Error(`Unexpected client state type: ${d==null?void 0:d.typeUrl}`);return tendermint_1.ClientState.decode(d.value)}function decodeTendermintConsensusStateAny(d){if((d==null?void 0:d.typeUrl)!=="/ibc.lightclients.tendermint.v1.ConsensusState")throw new Error(`Unexpected client state type: ${d==null?void 0:d.typeUrl}`);return tendermint_1.ConsensusState.decode(d.value)}function setupIbcExtension(d){const b=(0,queryclient_1$6.createProtobufRpcClient)(d),dt=new query_2$1.QueryClientImpl(b),ct=new query_3$1.QueryClientImpl(b),lt=new query_4$1.QueryClientImpl(b),ht=new query_1$b.QueryClientImpl(b);return{ibc:{channel:{channel:async(mt,vt)=>dt.Channel({portId:mt,channelId:vt}),channels:async mt=>dt.Channels({pagination:(0,queryclient_1$6.createPagination)(mt)}),allChannels:async()=>{var Pt;const mt=[];let vt,kt;do vt=await dt.Channels({pagination:(0,queryclient_1$6.createPagination)(kt)}),mt.push(...vt.channels),kt=(Pt=vt.pagination)==null?void 0:Pt.nextKey;while(kt&&kt.length);return{channels:mt,height:vt.height}},connectionChannels:async(mt,vt)=>dt.ConnectionChannels({connection:mt,pagination:(0,queryclient_1$6.createPagination)(vt)}),allConnectionChannels:async mt=>{var Jt;const vt=[];let kt,Pt;do kt=await dt.ConnectionChannels({connection:mt,pagination:(0,queryclient_1$6.createPagination)(Pt)}),vt.push(...kt.channels),Pt=(Jt=kt.pagination)==null?void 0:Jt.nextKey;while(Pt&&Pt.length);return{channels:vt,height:kt.height}},clientState:async(mt,vt)=>dt.ChannelClientState({portId:mt,channelId:vt}),consensusState:async(mt,vt,kt,Pt)=>dt.ChannelConsensusState({portId:mt,channelId:vt,revisionNumber:long_1$g.default.fromNumber(kt,!0),revisionHeight:long_1$g.default.fromNumber(Pt,!0)}),packetCommitment:async(mt,vt,kt)=>dt.PacketCommitment({portId:mt,channelId:vt,sequence:long_1$g.default.fromNumber(kt,!0)}),packetCommitments:async(mt,vt,kt)=>dt.PacketCommitments({channelId:vt,portId:mt,pagination:(0,queryclient_1$6.createPagination)(kt)}),allPacketCommitments:async(mt,vt)=>{var Zt;const kt=[];let Pt,Jt;do Pt=await dt.PacketCommitments({channelId:vt,portId:mt,pagination:(0,queryclient_1$6.createPagination)(Jt)}),kt.push(...Pt.commitments),Jt=(Zt=Pt.pagination)==null?void 0:Zt.nextKey;while(Jt&&Jt.length);return{commitments:kt,height:Pt.height}},packetReceipt:async(mt,vt,kt)=>dt.PacketReceipt({portId:mt,channelId:vt,sequence:long_1$g.default.fromNumber(kt,!0)}),packetAcknowledgement:async(mt,vt,kt)=>dt.PacketAcknowledgement({portId:mt,channelId:vt,sequence:long_1$g.default.fromNumber(kt,!0)}),packetAcknowledgements:async(mt,vt,kt)=>{const Pt=query_2$1.QueryPacketAcknowledgementsRequest.fromPartial({portId:mt,channelId:vt,pagination:(0,queryclient_1$6.createPagination)(kt)});return dt.PacketAcknowledgements(Pt)},allPacketAcknowledgements:async(mt,vt)=>{var Zt;const kt=[];let Pt,Jt;do{const Rt=query_2$1.QueryPacketAcknowledgementsRequest.fromPartial({channelId:vt,portId:mt,pagination:(0,queryclient_1$6.createPagination)(Jt)});Pt=await dt.PacketAcknowledgements(Rt),kt.push(...Pt.acknowledgements),Jt=(Zt=Pt.pagination)==null?void 0:Zt.nextKey}while(Jt&&Jt.length);return{acknowledgements:kt,height:Pt.height}},unreceivedPackets:async(mt,vt,kt)=>dt.UnreceivedPackets({portId:mt,channelId:vt,packetCommitmentSequences:kt.map(Pt=>long_1$g.default.fromNumber(Pt,!0))}),unreceivedAcks:async(mt,vt,kt)=>dt.UnreceivedAcks({portId:mt,channelId:vt,packetAckSequences:kt.map(Pt=>long_1$g.default.fromNumber(Pt,!0))}),nextSequenceReceive:async(mt,vt)=>dt.NextSequenceReceive({portId:mt,channelId:vt})},client:{state:async mt=>ct.ClientState({clientId:mt}),states:async mt=>ct.ClientStates({pagination:(0,queryclient_1$6.createPagination)(mt)}),allStates:async()=>{var Pt;const mt=[];let vt,kt;do vt=await ct.ClientStates({pagination:(0,queryclient_1$6.createPagination)(kt)}),mt.push(...vt.clientStates),kt=(Pt=vt.pagination)==null?void 0:Pt.nextKey;while(kt&&kt.length);return{clientStates:mt}},consensusState:async(mt,vt)=>ct.ConsensusState(query_3$1.QueryConsensusStateRequest.fromPartial({clientId:mt,revisionHeight:vt!==void 0?long_1$g.default.fromNumber(vt,!0):void 0,latestHeight:vt===void 0})),consensusStates:async(mt,vt)=>ct.ConsensusStates({clientId:mt,pagination:(0,queryclient_1$6.createPagination)(vt)}),allConsensusStates:async mt=>{var Jt;const vt=[];let kt,Pt;do kt=await ct.ConsensusStates({clientId:mt,pagination:(0,queryclient_1$6.createPagination)(Pt)}),vt.push(...kt.consensusStates),Pt=(Jt=kt.pagination)==null?void 0:Jt.nextKey;while(Pt&&Pt.length);return{consensusStates:vt}},params:async()=>ct.ClientParams({}),stateTm:async mt=>{const vt=await ct.ClientState({clientId:mt});return decodeTendermintClientStateAny(vt.clientState)},statesTm:async mt=>{const{clientStates:vt}=await ct.ClientStates({pagination:(0,queryclient_1$6.createPagination)(mt)});return vt.map(({clientState:kt})=>decodeTendermintClientStateAny(kt))},allStatesTm:async()=>{var Pt;const mt=[];let vt,kt;do vt=await ct.ClientStates({pagination:(0,queryclient_1$6.createPagination)(kt)}),mt.push(...vt.clientStates),kt=(Pt=vt.pagination)==null?void 0:Pt.nextKey;while(kt&&kt.length);return mt.map(({clientState:Jt})=>decodeTendermintClientStateAny(Jt))},consensusStateTm:async(mt,vt)=>{const kt=await ct.ConsensusState(query_3$1.QueryConsensusStateRequest.fromPartial({clientId:mt,revisionHeight:vt==null?void 0:vt.revisionHeight,revisionNumber:vt==null?void 0:vt.revisionNumber,latestHeight:vt===void 0}));return decodeTendermintConsensusStateAny(kt.consensusState)}},connection:{connection:async mt=>lt.Connection({connectionId:mt}),connections:async mt=>lt.Connections({pagination:(0,queryclient_1$6.createPagination)(mt)}),allConnections:async()=>{var Pt;const mt=[];let vt,kt;do vt=await lt.Connections({pagination:(0,queryclient_1$6.createPagination)(kt)}),mt.push(...vt.connections),kt=(Pt=vt.pagination)==null?void 0:Pt.nextKey;while(kt&&kt.length);return{connections:mt,height:vt.height}},clientConnections:async mt=>lt.ClientConnections({clientId:mt}),clientState:async mt=>lt.ConnectionClientState({connectionId:mt}),consensusState:async(mt,vt)=>lt.ConnectionConsensusState(query_4$1.QueryConnectionConsensusStateRequest.fromPartial({connectionId:mt,revisionHeight:long_1$g.default.fromNumber(vt,!0)}))},transfer:{denomTrace:async mt=>ht.DenomTrace({hash:mt}),denomTraces:async mt=>ht.DenomTraces({pagination:(0,queryclient_1$6.createPagination)(mt)}),allDenomTraces:async()=>{var Pt;const mt=[];let vt,kt;do vt=await ht.DenomTraces({pagination:(0,queryclient_1$6.createPagination)(kt)}),mt.push(...vt.denomTraces),kt=(Pt=vt.pagination)==null?void 0:Pt.nextKey;while(kt&&kt.length);return{denomTraces:mt}},params:async()=>ht.Params({})},verified:{channel:{channel:async(mt,vt)=>{const kt=(0,encoding_1$i.toAscii)(`channelEnds/ports/${mt}/channels/${vt}`),{value:Pt}=await d.queryStoreVerified("ibc",kt);return Pt.length?channel_1.Channel.decode(Pt):null},packetCommitment:async(mt,vt,kt)=>{const Pt=(0,encoding_1$i.toAscii)(`commitments/ports/${mt}/channels/${vt}/packets/${kt}`),{value:Jt}=await d.queryStoreVerified("ibc",Pt);return Jt},packetAcknowledgement:async(mt,vt,kt)=>{const Pt=(0,encoding_1$i.toAscii)(`acks/ports/${mt}/channels/${vt}/acknowledgements/${kt}`),{value:Jt}=await d.queryStoreVerified("ibc",Pt);return Jt},nextSequenceReceive:async(mt,vt)=>{const kt=(0,encoding_1$i.toAscii)(`seqAcks/ports/${mt}/channels/${vt}/nextSequenceAck`),{value:Pt}=await d.queryStoreVerified("ibc",kt);return Pt.length?math_1$9.Uint64.fromBytes(Pt).toNumber():null}}}}}}queries$6.setupIbcExtension=setupIbcExtension;var queries$5={},query$c={},mint={},__createBinding$i=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$i=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$i=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$i(b,d,dt);return __setModuleDefault$i(b,d),b};Object.defineProperty(mint,"__esModule",{value:!0});mint.Params=mint.Minter=mint.protobufPackage=void 0;const helpers_1$b=helpers$1,_m0$c=__importStar$i(minimal$4);mint.protobufPackage="cosmos.mint.v1beta1";function createBaseMinter(){return{inflation:"",annualProvisions:""}}mint.Minter={encode(d,b=_m0$c.Writer.create()){return d.inflation!==""&&b.uint32(10).string(d.inflation),d.annualProvisions!==""&&b.uint32(18).string(d.annualProvisions),b},decode(d,b){const dt=d instanceof _m0$c.Reader?d:new _m0$c.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMinter();for(;dt.pos>>3){case 1:lt.inflation=dt.string();break;case 2:lt.annualProvisions=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{inflation:(0,helpers_1$b.isSet)(d.inflation)?String(d.inflation):"",annualProvisions:(0,helpers_1$b.isSet)(d.annualProvisions)?String(d.annualProvisions):""}},toJSON(d){const b={};return d.inflation!==void 0&&(b.inflation=d.inflation),d.annualProvisions!==void 0&&(b.annualProvisions=d.annualProvisions),b},fromPartial(d){const b=createBaseMinter();return b.inflation=d.inflation??"",b.annualProvisions=d.annualProvisions??"",b}};function createBaseParams$5(){return{mintDenom:"",inflationRateChange:"",inflationMax:"",inflationMin:"",goalBonded:"",blocksPerYear:helpers_1$b.Long.UZERO}}mint.Params={encode(d,b=_m0$c.Writer.create()){return d.mintDenom!==""&&b.uint32(10).string(d.mintDenom),d.inflationRateChange!==""&&b.uint32(18).string(d.inflationRateChange),d.inflationMax!==""&&b.uint32(26).string(d.inflationMax),d.inflationMin!==""&&b.uint32(34).string(d.inflationMin),d.goalBonded!==""&&b.uint32(42).string(d.goalBonded),d.blocksPerYear.isZero()||b.uint32(48).uint64(d.blocksPerYear),b},decode(d,b){const dt=d instanceof _m0$c.Reader?d:new _m0$c.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$5();for(;dt.pos>>3){case 1:lt.mintDenom=dt.string();break;case 2:lt.inflationRateChange=dt.string();break;case 3:lt.inflationMax=dt.string();break;case 4:lt.inflationMin=dt.string();break;case 5:lt.goalBonded=dt.string();break;case 6:lt.blocksPerYear=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{mintDenom:(0,helpers_1$b.isSet)(d.mintDenom)?String(d.mintDenom):"",inflationRateChange:(0,helpers_1$b.isSet)(d.inflationRateChange)?String(d.inflationRateChange):"",inflationMax:(0,helpers_1$b.isSet)(d.inflationMax)?String(d.inflationMax):"",inflationMin:(0,helpers_1$b.isSet)(d.inflationMin)?String(d.inflationMin):"",goalBonded:(0,helpers_1$b.isSet)(d.goalBonded)?String(d.goalBonded):"",blocksPerYear:(0,helpers_1$b.isSet)(d.blocksPerYear)?helpers_1$b.Long.fromValue(d.blocksPerYear):helpers_1$b.Long.UZERO}},toJSON(d){const b={};return d.mintDenom!==void 0&&(b.mintDenom=d.mintDenom),d.inflationRateChange!==void 0&&(b.inflationRateChange=d.inflationRateChange),d.inflationMax!==void 0&&(b.inflationMax=d.inflationMax),d.inflationMin!==void 0&&(b.inflationMin=d.inflationMin),d.goalBonded!==void 0&&(b.goalBonded=d.goalBonded),d.blocksPerYear!==void 0&&(b.blocksPerYear=(d.blocksPerYear||helpers_1$b.Long.UZERO).toString()),b},fromPartial(d){const b=createBaseParams$5();return b.mintDenom=d.mintDenom??"",b.inflationRateChange=d.inflationRateChange??"",b.inflationMax=d.inflationMax??"",b.inflationMin=d.inflationMin??"",b.goalBonded=d.goalBonded??"",b.blocksPerYear=d.blocksPerYear!==void 0&&d.blocksPerYear!==null?helpers_1$b.Long.fromValue(d.blocksPerYear):helpers_1$b.Long.UZERO,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryAnnualProvisionsResponse=d.QueryAnnualProvisionsRequest=d.QueryInflationResponse=d.QueryInflationRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const lt=mint,ht=ct(minimal$4),mt=helpers$1;d.protobufPackage="cosmos.mint.v1beta1";function vt(){return{}}d.QueryParamsRequest={encode(Qt,wt=ht.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=vt();for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{}},toJSON(Qt){return{}},fromPartial(Qt){return vt()}};function kt(){return{params:void 0}}d.QueryParamsResponse={encode(Qt,wt=ht.Writer.create()){return Qt.params!==void 0&<.Params.encode(Qt.params,wt.uint32(10).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=kt();for(;Nt.pos>>3){case 1:Et.params=lt.Params.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{params:(0,mt.isSet)(Qt.params)?lt.Params.fromJSON(Qt.params):void 0}},toJSON(Qt){const wt={};return Qt.params!==void 0&&(wt.params=Qt.params?lt.Params.toJSON(Qt.params):void 0),wt},fromPartial(Qt){const wt=kt();return wt.params=Qt.params!==void 0&&Qt.params!==null?lt.Params.fromPartial(Qt.params):void 0,wt}};function Pt(){return{}}d.QueryInflationRequest={encode(Qt,wt=ht.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Pt();for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{}},toJSON(Qt){return{}},fromPartial(Qt){return Pt()}};function Jt(){return{inflation:new Uint8Array}}d.QueryInflationResponse={encode(Qt,wt=ht.Writer.create()){return Qt.inflation.length!==0&&wt.uint32(10).bytes(Qt.inflation),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Jt();for(;Nt.pos>>3){case 1:Et.inflation=Nt.bytes();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{inflation:(0,mt.isSet)(Qt.inflation)?(0,mt.bytesFromBase64)(Qt.inflation):new Uint8Array}},toJSON(Qt){const wt={};return Qt.inflation!==void 0&&(wt.inflation=(0,mt.base64FromBytes)(Qt.inflation!==void 0?Qt.inflation:new Uint8Array)),wt},fromPartial(Qt){const wt=Jt();return wt.inflation=Qt.inflation??new Uint8Array,wt}};function Zt(){return{}}d.QueryAnnualProvisionsRequest={encode(Qt,wt=ht.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Zt();for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{}},toJSON(Qt){return{}},fromPartial(Qt){return Zt()}};function Rt(){return{annualProvisions:new Uint8Array}}d.QueryAnnualProvisionsResponse={encode(Qt,wt=ht.Writer.create()){return Qt.annualProvisions.length!==0&&wt.uint32(10).bytes(Qt.annualProvisions),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Rt();for(;Nt.pos>>3){case 1:Et.annualProvisions=Nt.bytes();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{annualProvisions:(0,mt.isSet)(Qt.annualProvisions)?(0,mt.bytesFromBase64)(Qt.annualProvisions):new Uint8Array}},toJSON(Qt){const wt={};return Qt.annualProvisions!==void 0&&(wt.annualProvisions=(0,mt.base64FromBytes)(Qt.annualProvisions!==void 0?Qt.annualProvisions:new Uint8Array)),wt},fromPartial(Qt){const wt=Rt();return wt.annualProvisions=Qt.annualProvisions??new Uint8Array,wt}};class nn{constructor(wt){this.rpc=wt,this.Params=this.Params.bind(this),this.Inflation=this.Inflation.bind(this),this.AnnualProvisions=this.AnnualProvisions.bind(this)}Params(wt={}){const Nt=d.QueryParamsRequest.encode(wt).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Params",Nt).then(Et=>d.QueryParamsResponse.decode(new ht.Reader(Et)))}Inflation(wt={}){const Nt=d.QueryInflationRequest.encode(wt).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Inflation",Nt).then(Et=>d.QueryInflationResponse.decode(new ht.Reader(Et)))}AnnualProvisions(wt={}){const Nt=d.QueryAnnualProvisionsRequest.encode(wt).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","AnnualProvisions",Nt).then(Et=>d.QueryAnnualProvisionsResponse.decode(new ht.Reader(Et)))}}d.QueryClientImpl=nn})(query$c);Object.defineProperty(queries$5,"__esModule",{value:!0});queries$5.setupMintExtension=void 0;const utils_1$9=build$9,query_1$a=query$c,queryclient_1$5=queryclient$1;function setupMintExtension(d){const b=(0,queryclient_1$5.createProtobufRpcClient)(d),dt=new query_1$a.QueryClientImpl(b);return{mint:{params:async()=>{const{params:ct}=await dt.Params({});return(0,utils_1$9.assert)(ct),{blocksPerYear:ct.blocksPerYear,goalBonded:(0,queryclient_1$5.decodeCosmosSdkDecFromProto)(ct.goalBonded),inflationMin:(0,queryclient_1$5.decodeCosmosSdkDecFromProto)(ct.inflationMin),inflationMax:(0,queryclient_1$5.decodeCosmosSdkDecFromProto)(ct.inflationMax),inflationRateChange:(0,queryclient_1$5.decodeCosmosSdkDecFromProto)(ct.inflationRateChange),mintDenom:ct.mintDenom}},inflation:async()=>{const{inflation:ct}=await dt.Inflation({});return(0,queryclient_1$5.decodeCosmosSdkDecFromProto)(ct)},annualProvisions:async()=>{const{annualProvisions:ct}=await dt.AnnualProvisions({});return(0,queryclient_1$5.decodeCosmosSdkDecFromProto)(ct)}}}}queries$5.setupMintExtension=setupMintExtension;var aminomessages$3={};Object.defineProperty(aminomessages$3,"__esModule",{value:!0});aminomessages$3.createSlashingAminoConverters=aminomessages$3.isAminoMsgUnjail=void 0;function isAminoMsgUnjail(d){return d.type==="cosmos-sdk/MsgUnjail"}aminomessages$3.isAminoMsgUnjail=isAminoMsgUnjail;function createSlashingAminoConverters(){throw new Error("Not implemented")}aminomessages$3.createSlashingAminoConverters=createSlashingAminoConverters;var queries$4={},query$b={},slashing={},__createBinding$h=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$h=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$h=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$h(b,d,dt);return __setModuleDefault$h(b,d),b};Object.defineProperty(slashing,"__esModule",{value:!0});slashing.Params=slashing.ValidatorSigningInfo=slashing.protobufPackage=void 0;const timestamp_1$1=timestamp$1,duration_1=duration$1,helpers_1$a=helpers$1,_m0$b=__importStar$h(minimal$4);slashing.protobufPackage="cosmos.slashing.v1beta1";function createBaseValidatorSigningInfo(){return{address:"",startHeight:helpers_1$a.Long.ZERO,indexOffset:helpers_1$a.Long.ZERO,jailedUntil:void 0,tombstoned:!1,missedBlocksCounter:helpers_1$a.Long.ZERO}}slashing.ValidatorSigningInfo={encode(d,b=_m0$b.Writer.create()){return d.address!==""&&b.uint32(10).string(d.address),d.startHeight.isZero()||b.uint32(16).int64(d.startHeight),d.indexOffset.isZero()||b.uint32(24).int64(d.indexOffset),d.jailedUntil!==void 0&×tamp_1$1.Timestamp.encode(d.jailedUntil,b.uint32(34).fork()).ldelim(),d.tombstoned===!0&&b.uint32(40).bool(d.tombstoned),d.missedBlocksCounter.isZero()||b.uint32(48).int64(d.missedBlocksCounter),b},decode(d,b){const dt=d instanceof _m0$b.Reader?d:new _m0$b.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseValidatorSigningInfo();for(;dt.pos>>3){case 1:lt.address=dt.string();break;case 2:lt.startHeight=dt.int64();break;case 3:lt.indexOffset=dt.int64();break;case 4:lt.jailedUntil=timestamp_1$1.Timestamp.decode(dt,dt.uint32());break;case 5:lt.tombstoned=dt.bool();break;case 6:lt.missedBlocksCounter=dt.int64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{address:(0,helpers_1$a.isSet)(d.address)?String(d.address):"",startHeight:(0,helpers_1$a.isSet)(d.startHeight)?helpers_1$a.Long.fromValue(d.startHeight):helpers_1$a.Long.ZERO,indexOffset:(0,helpers_1$a.isSet)(d.indexOffset)?helpers_1$a.Long.fromValue(d.indexOffset):helpers_1$a.Long.ZERO,jailedUntil:(0,helpers_1$a.isSet)(d.jailedUntil)?(0,helpers_1$a.fromJsonTimestamp)(d.jailedUntil):void 0,tombstoned:(0,helpers_1$a.isSet)(d.tombstoned)?!!d.tombstoned:!1,missedBlocksCounter:(0,helpers_1$a.isSet)(d.missedBlocksCounter)?helpers_1$a.Long.fromValue(d.missedBlocksCounter):helpers_1$a.Long.ZERO}},toJSON(d){const b={};return d.address!==void 0&&(b.address=d.address),d.startHeight!==void 0&&(b.startHeight=(d.startHeight||helpers_1$a.Long.ZERO).toString()),d.indexOffset!==void 0&&(b.indexOffset=(d.indexOffset||helpers_1$a.Long.ZERO).toString()),d.jailedUntil!==void 0&&(b.jailedUntil=(0,helpers_1$a.fromTimestamp)(d.jailedUntil).toISOString()),d.tombstoned!==void 0&&(b.tombstoned=d.tombstoned),d.missedBlocksCounter!==void 0&&(b.missedBlocksCounter=(d.missedBlocksCounter||helpers_1$a.Long.ZERO).toString()),b},fromPartial(d){const b=createBaseValidatorSigningInfo();return b.address=d.address??"",b.startHeight=d.startHeight!==void 0&&d.startHeight!==null?helpers_1$a.Long.fromValue(d.startHeight):helpers_1$a.Long.ZERO,b.indexOffset=d.indexOffset!==void 0&&d.indexOffset!==null?helpers_1$a.Long.fromValue(d.indexOffset):helpers_1$a.Long.ZERO,b.jailedUntil=d.jailedUntil!==void 0&&d.jailedUntil!==null?timestamp_1$1.Timestamp.fromPartial(d.jailedUntil):void 0,b.tombstoned=d.tombstoned??!1,b.missedBlocksCounter=d.missedBlocksCounter!==void 0&&d.missedBlocksCounter!==null?helpers_1$a.Long.fromValue(d.missedBlocksCounter):helpers_1$a.Long.ZERO,b}};function createBaseParams$4(){return{signedBlocksWindow:helpers_1$a.Long.ZERO,minSignedPerWindow:new Uint8Array,downtimeJailDuration:void 0,slashFractionDoubleSign:new Uint8Array,slashFractionDowntime:new Uint8Array}}slashing.Params={encode(d,b=_m0$b.Writer.create()){return d.signedBlocksWindow.isZero()||b.uint32(8).int64(d.signedBlocksWindow),d.minSignedPerWindow.length!==0&&b.uint32(18).bytes(d.minSignedPerWindow),d.downtimeJailDuration!==void 0&&duration_1.Duration.encode(d.downtimeJailDuration,b.uint32(26).fork()).ldelim(),d.slashFractionDoubleSign.length!==0&&b.uint32(34).bytes(d.slashFractionDoubleSign),d.slashFractionDowntime.length!==0&&b.uint32(42).bytes(d.slashFractionDowntime),b},decode(d,b){const dt=d instanceof _m0$b.Reader?d:new _m0$b.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$4();for(;dt.pos>>3){case 1:lt.signedBlocksWindow=dt.int64();break;case 2:lt.minSignedPerWindow=dt.bytes();break;case 3:lt.downtimeJailDuration=duration_1.Duration.decode(dt,dt.uint32());break;case 4:lt.slashFractionDoubleSign=dt.bytes();break;case 5:lt.slashFractionDowntime=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{signedBlocksWindow:(0,helpers_1$a.isSet)(d.signedBlocksWindow)?helpers_1$a.Long.fromValue(d.signedBlocksWindow):helpers_1$a.Long.ZERO,minSignedPerWindow:(0,helpers_1$a.isSet)(d.minSignedPerWindow)?(0,helpers_1$a.bytesFromBase64)(d.minSignedPerWindow):new Uint8Array,downtimeJailDuration:(0,helpers_1$a.isSet)(d.downtimeJailDuration)?duration_1.Duration.fromJSON(d.downtimeJailDuration):void 0,slashFractionDoubleSign:(0,helpers_1$a.isSet)(d.slashFractionDoubleSign)?(0,helpers_1$a.bytesFromBase64)(d.slashFractionDoubleSign):new Uint8Array,slashFractionDowntime:(0,helpers_1$a.isSet)(d.slashFractionDowntime)?(0,helpers_1$a.bytesFromBase64)(d.slashFractionDowntime):new Uint8Array}},toJSON(d){const b={};return d.signedBlocksWindow!==void 0&&(b.signedBlocksWindow=(d.signedBlocksWindow||helpers_1$a.Long.ZERO).toString()),d.minSignedPerWindow!==void 0&&(b.minSignedPerWindow=(0,helpers_1$a.base64FromBytes)(d.minSignedPerWindow!==void 0?d.minSignedPerWindow:new Uint8Array)),d.downtimeJailDuration!==void 0&&(b.downtimeJailDuration=d.downtimeJailDuration?duration_1.Duration.toJSON(d.downtimeJailDuration):void 0),d.slashFractionDoubleSign!==void 0&&(b.slashFractionDoubleSign=(0,helpers_1$a.base64FromBytes)(d.slashFractionDoubleSign!==void 0?d.slashFractionDoubleSign:new Uint8Array)),d.slashFractionDowntime!==void 0&&(b.slashFractionDowntime=(0,helpers_1$a.base64FromBytes)(d.slashFractionDowntime!==void 0?d.slashFractionDowntime:new Uint8Array)),b},fromPartial(d){const b=createBaseParams$4();return b.signedBlocksWindow=d.signedBlocksWindow!==void 0&&d.signedBlocksWindow!==null?helpers_1$a.Long.fromValue(d.signedBlocksWindow):helpers_1$a.Long.ZERO,b.minSignedPerWindow=d.minSignedPerWindow??new Uint8Array,b.downtimeJailDuration=d.downtimeJailDuration!==void 0&&d.downtimeJailDuration!==null?duration_1.Duration.fromPartial(d.downtimeJailDuration):void 0,b.slashFractionDoubleSign=d.slashFractionDoubleSign??new Uint8Array,b.slashFractionDowntime=d.slashFractionDowntime??new Uint8Array,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QuerySigningInfosResponse=d.QuerySigningInfosRequest=d.QuerySigningInfoResponse=d.QuerySigningInfoRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=slashing,mt=ct(minimal$4),vt=helpers$1;d.protobufPackage="cosmos.slashing.v1beta1";function kt(){return{}}d.QueryParamsRequest={encode(wt,Nt=mt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return kt()}};function Pt(){return{params:void 0}}d.QueryParamsResponse={encode(wt,Nt=mt.Writer.create()){return wt.params!==void 0&&ht.Params.encode(wt.params,Nt.uint32(10).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.params=ht.Params.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{params:(0,vt.isSet)(wt.params)?ht.Params.fromJSON(wt.params):void 0}},toJSON(wt){const Nt={};return wt.params!==void 0&&(Nt.params=wt.params?ht.Params.toJSON(wt.params):void 0),Nt},fromPartial(wt){const Nt=Pt();return Nt.params=wt.params!==void 0&&wt.params!==null?ht.Params.fromPartial(wt.params):void 0,Nt}};function Jt(){return{consAddress:""}}d.QuerySigningInfoRequest={encode(wt,Nt=mt.Writer.create()){return wt.consAddress!==""&&Nt.uint32(10).string(wt.consAddress),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.consAddress=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{consAddress:(0,vt.isSet)(wt.consAddress)?String(wt.consAddress):""}},toJSON(wt){const Nt={};return wt.consAddress!==void 0&&(Nt.consAddress=wt.consAddress),Nt},fromPartial(wt){const Nt=Jt();return Nt.consAddress=wt.consAddress??"",Nt}};function Zt(){return{valSigningInfo:void 0}}d.QuerySigningInfoResponse={encode(wt,Nt=mt.Writer.create()){return wt.valSigningInfo!==void 0&&ht.ValidatorSigningInfo.encode(wt.valSigningInfo,Nt.uint32(10).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){case 1:Bt.valSigningInfo=ht.ValidatorSigningInfo.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{valSigningInfo:(0,vt.isSet)(wt.valSigningInfo)?ht.ValidatorSigningInfo.fromJSON(wt.valSigningInfo):void 0}},toJSON(wt){const Nt={};return wt.valSigningInfo!==void 0&&(Nt.valSigningInfo=wt.valSigningInfo?ht.ValidatorSigningInfo.toJSON(wt.valSigningInfo):void 0),Nt},fromPartial(wt){const Nt=Zt();return Nt.valSigningInfo=wt.valSigningInfo!==void 0&&wt.valSigningInfo!==null?ht.ValidatorSigningInfo.fromPartial(wt.valSigningInfo):void 0,Nt}};function Rt(){return{pagination:void 0}}d.QuerySigningInfosRequest={encode(wt,Nt=mt.Writer.create()){return wt.pagination!==void 0&<.PageRequest.encode(wt.pagination,Nt.uint32(10).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.pagination=lt.PageRequest.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{pagination:(0,vt.isSet)(wt.pagination)?lt.PageRequest.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageRequest.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){const Nt=Rt();return Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageRequest.fromPartial(wt.pagination):void 0,Nt}};function nn(){return{info:[],pagination:void 0}}d.QuerySigningInfosResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.info)ht.ValidatorSigningInfo.encode(xt,Nt.uint32(10).fork()).ldelim();return wt.pagination!==void 0&<.PageResponse.encode(wt.pagination,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){case 1:Bt.info.push(ht.ValidatorSigningInfo.decode(xt,xt.uint32()));break;case 2:Bt.pagination=lt.PageResponse.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{info:Array.isArray(wt==null?void 0:wt.info)?wt.info.map(Nt=>ht.ValidatorSigningInfo.fromJSON(Nt)):[],pagination:(0,vt.isSet)(wt.pagination)?lt.PageResponse.fromJSON(wt.pagination):void 0}},toJSON(wt){const Nt={};return wt.info?Nt.info=wt.info.map(xt=>xt?ht.ValidatorSigningInfo.toJSON(xt):void 0):Nt.info=[],wt.pagination!==void 0&&(Nt.pagination=wt.pagination?lt.PageResponse.toJSON(wt.pagination):void 0),Nt},fromPartial(wt){var xt;const Nt=nn();return Nt.info=((xt=wt.info)==null?void 0:xt.map(Et=>ht.ValidatorSigningInfo.fromPartial(Et)))||[],Nt.pagination=wt.pagination!==void 0&&wt.pagination!==null?lt.PageResponse.fromPartial(wt.pagination):void 0,Nt}};class Qt{constructor(Nt){this.rpc=Nt,this.Params=this.Params.bind(this),this.SigningInfo=this.SigningInfo.bind(this),this.SigningInfos=this.SigningInfos.bind(this)}Params(Nt={}){const xt=d.QueryParamsRequest.encode(Nt).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","Params",xt).then(Bt=>d.QueryParamsResponse.decode(new mt.Reader(Bt)))}SigningInfo(Nt){const xt=d.QuerySigningInfoRequest.encode(Nt).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfo",xt).then(Bt=>d.QuerySigningInfoResponse.decode(new mt.Reader(Bt)))}SigningInfos(Nt={pagination:void 0}){const xt=d.QuerySigningInfosRequest.encode(Nt).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfos",xt).then(Bt=>d.QuerySigningInfosResponse.decode(new mt.Reader(Bt)))}}d.QueryClientImpl=Qt})(query$b);Object.defineProperty(queries$4,"__esModule",{value:!0});queries$4.setupSlashingExtension=void 0;const query_1$9=query$b,queryclient_1$4=queryclient$1;function setupSlashingExtension(d){const b=(0,queryclient_1$4.createProtobufRpcClient)(d),dt=new query_1$9.QueryClientImpl(b);return{slashing:{signingInfo:async ct=>await dt.SigningInfo({consAddress:ct}),signingInfos:async ct=>await dt.SigningInfos({pagination:(0,queryclient_1$4.createPagination)(ct)}),params:async()=>await dt.Params({})}}}queries$4.setupSlashingExtension=setupSlashingExtension;var aminomessages$2={};Object.defineProperty(aminomessages$2,"__esModule",{value:!0});aminomessages$2.createStakingAminoConverters=aminomessages$2.isAminoMsgUndelegate=aminomessages$2.isAminoMsgBeginRedelegate=aminomessages$2.isAminoMsgDelegate=aminomessages$2.isAminoMsgEditValidator=aminomessages$2.isAminoMsgCreateValidator=aminomessages$2.protoDecimalToJson=void 0;const math_1$8=build$f,proto_signing_1$3=build$d,utils_1$8=build$9;function protoDecimalToJson(d){const b=math_1$8.Decimal.fromAtomics(d,18),[dt,ct]=b.toString().split(".");return`${dt}.${(ct??"").padEnd(18,"0")}`}aminomessages$2.protoDecimalToJson=protoDecimalToJson;function jsonDecimalToProto(d){return math_1$8.Decimal.fromUserInput(d,18).atomics}function isAminoMsgCreateValidator(d){return d.type==="cosmos-sdk/MsgCreateValidator"}aminomessages$2.isAminoMsgCreateValidator=isAminoMsgCreateValidator;function isAminoMsgEditValidator(d){return d.type==="cosmos-sdk/MsgEditValidator"}aminomessages$2.isAminoMsgEditValidator=isAminoMsgEditValidator;function isAminoMsgDelegate(d){return d.type==="cosmos-sdk/MsgDelegate"}aminomessages$2.isAminoMsgDelegate=isAminoMsgDelegate;function isAminoMsgBeginRedelegate(d){return d.type==="cosmos-sdk/MsgBeginRedelegate"}aminomessages$2.isAminoMsgBeginRedelegate=isAminoMsgBeginRedelegate;function isAminoMsgUndelegate(d){return d.type==="cosmos-sdk/MsgUndelegate"}aminomessages$2.isAminoMsgUndelegate=isAminoMsgUndelegate;function createStakingAminoConverters(){return{"/cosmos.staking.v1beta1.MsgBeginRedelegate":{aminoType:"cosmos-sdk/MsgBeginRedelegate",toAmino:({delegatorAddress:d,validatorSrcAddress:b,validatorDstAddress:dt,amount:ct})=>((0,utils_1$8.assertDefinedAndNotNull)(ct,"missing amount"),{delegator_address:d,validator_src_address:b,validator_dst_address:dt,amount:ct}),fromAmino:({delegator_address:d,validator_src_address:b,validator_dst_address:dt,amount:ct})=>({delegatorAddress:d,validatorSrcAddress:b,validatorDstAddress:dt,amount:ct})},"/cosmos.staking.v1beta1.MsgCreateValidator":{aminoType:"cosmos-sdk/MsgCreateValidator",toAmino:({description:d,commission:b,minSelfDelegation:dt,delegatorAddress:ct,validatorAddress:lt,pubkey:ht,value:mt})=>((0,utils_1$8.assertDefinedAndNotNull)(d,"missing description"),(0,utils_1$8.assertDefinedAndNotNull)(b,"missing commission"),(0,utils_1$8.assertDefinedAndNotNull)(ht,"missing pubkey"),(0,utils_1$8.assertDefinedAndNotNull)(mt,"missing value"),{description:{moniker:d.moniker,identity:d.identity,website:d.website,security_contact:d.securityContact,details:d.details},commission:{rate:protoDecimalToJson(b.rate),max_rate:protoDecimalToJson(b.maxRate),max_change_rate:protoDecimalToJson(b.maxChangeRate)},min_self_delegation:dt,delegator_address:ct,validator_address:lt,pubkey:(0,proto_signing_1$3.decodePubkey)(ht),value:mt}),fromAmino:({description:d,commission:b,min_self_delegation:dt,delegator_address:ct,validator_address:lt,pubkey:ht,value:mt})=>({description:{moniker:d.moniker,identity:d.identity,website:d.website,securityContact:d.security_contact,details:d.details},commission:{rate:jsonDecimalToProto(b.rate),maxRate:jsonDecimalToProto(b.max_rate),maxChangeRate:jsonDecimalToProto(b.max_change_rate)},minSelfDelegation:dt,delegatorAddress:ct,validatorAddress:lt,pubkey:(0,proto_signing_1$3.encodePubkey)(ht),value:mt})},"/cosmos.staking.v1beta1.MsgDelegate":{aminoType:"cosmos-sdk/MsgDelegate",toAmino:({delegatorAddress:d,validatorAddress:b,amount:dt})=>((0,utils_1$8.assertDefinedAndNotNull)(dt,"missing amount"),{delegator_address:d,validator_address:b,amount:dt}),fromAmino:({delegator_address:d,validator_address:b,amount:dt})=>({delegatorAddress:d,validatorAddress:b,amount:dt})},"/cosmos.staking.v1beta1.MsgEditValidator":{aminoType:"cosmos-sdk/MsgEditValidator",toAmino:({description:d,commissionRate:b,minSelfDelegation:dt,validatorAddress:ct})=>((0,utils_1$8.assertDefinedAndNotNull)(d,"missing description"),{description:{moniker:d.moniker,identity:d.identity,website:d.website,security_contact:d.securityContact,details:d.details},commission_rate:b?protoDecimalToJson(b):void 0,min_self_delegation:dt||void 0,validator_address:ct}),fromAmino:({description:d,commission_rate:b,min_self_delegation:dt,validator_address:ct})=>({description:{moniker:d.moniker,identity:d.identity,website:d.website,securityContact:d.security_contact,details:d.details},commissionRate:b?jsonDecimalToProto(b):"",minSelfDelegation:dt??"",validatorAddress:ct})},"/cosmos.staking.v1beta1.MsgUndelegate":{aminoType:"cosmos-sdk/MsgUndelegate",toAmino:({delegatorAddress:d,validatorAddress:b,amount:dt})=>((0,utils_1$8.assertDefinedAndNotNull)(dt,"missing amount"),{delegator_address:d,validator_address:b,amount:dt}),fromAmino:({delegator_address:d,validator_address:b,amount:dt})=>({delegatorAddress:d,validatorAddress:b,amount:dt})}}}aminomessages$2.createStakingAminoConverters=createStakingAminoConverters;var messages$3={},tx$f={},staking$1={},types$d={},params={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt);var xt=Object.getOwnPropertyDescriptor(Qt,wt);(!xt||("get"in xt?!Qt.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return Qt[wt]}}),Object.defineProperty(nn,Nt,xt)}:function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt),nn[Nt]=Qt[wt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(nn,Qt){Object.defineProperty(nn,"default",{enumerable:!0,value:Qt})}:function(nn,Qt){nn.default=Qt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(nn){if(nn&&nn.__esModule)return nn;var Qt={};if(nn!=null)for(var wt in nn)wt!=="default"&&Object.prototype.hasOwnProperty.call(nn,wt)&&b(Qt,nn,wt);return dt(Qt,nn),Qt};Object.defineProperty(d,"__esModule",{value:!0}),d.HashedParams=d.VersionParams=d.ValidatorParams=d.EvidenceParams=d.BlockParams=d.ConsensusParams=d.protobufPackage=void 0;const lt=duration$1,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="tendermint.types";function vt(){return{block:void 0,evidence:void 0,validator:void 0,version:void 0}}d.ConsensusParams={encode(nn,Qt=mt.Writer.create()){return nn.block!==void 0&&d.BlockParams.encode(nn.block,Qt.uint32(10).fork()).ldelim(),nn.evidence!==void 0&&d.EvidenceParams.encode(nn.evidence,Qt.uint32(18).fork()).ldelim(),nn.validator!==void 0&&d.ValidatorParams.encode(nn.validator,Qt.uint32(26).fork()).ldelim(),nn.version!==void 0&&d.VersionParams.encode(nn.version,Qt.uint32(34).fork()).ldelim(),Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=vt();for(;wt.pos>>3){case 1:xt.block=d.BlockParams.decode(wt,wt.uint32());break;case 2:xt.evidence=d.EvidenceParams.decode(wt,wt.uint32());break;case 3:xt.validator=d.ValidatorParams.decode(wt,wt.uint32());break;case 4:xt.version=d.VersionParams.decode(wt,wt.uint32());break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{block:(0,ht.isSet)(nn.block)?d.BlockParams.fromJSON(nn.block):void 0,evidence:(0,ht.isSet)(nn.evidence)?d.EvidenceParams.fromJSON(nn.evidence):void 0,validator:(0,ht.isSet)(nn.validator)?d.ValidatorParams.fromJSON(nn.validator):void 0,version:(0,ht.isSet)(nn.version)?d.VersionParams.fromJSON(nn.version):void 0}},toJSON(nn){const Qt={};return nn.block!==void 0&&(Qt.block=nn.block?d.BlockParams.toJSON(nn.block):void 0),nn.evidence!==void 0&&(Qt.evidence=nn.evidence?d.EvidenceParams.toJSON(nn.evidence):void 0),nn.validator!==void 0&&(Qt.validator=nn.validator?d.ValidatorParams.toJSON(nn.validator):void 0),nn.version!==void 0&&(Qt.version=nn.version?d.VersionParams.toJSON(nn.version):void 0),Qt},fromPartial(nn){const Qt=vt();return Qt.block=nn.block!==void 0&&nn.block!==null?d.BlockParams.fromPartial(nn.block):void 0,Qt.evidence=nn.evidence!==void 0&&nn.evidence!==null?d.EvidenceParams.fromPartial(nn.evidence):void 0,Qt.validator=nn.validator!==void 0&&nn.validator!==null?d.ValidatorParams.fromPartial(nn.validator):void 0,Qt.version=nn.version!==void 0&&nn.version!==null?d.VersionParams.fromPartial(nn.version):void 0,Qt}};function kt(){return{maxBytes:ht.Long.ZERO,maxGas:ht.Long.ZERO}}d.BlockParams={encode(nn,Qt=mt.Writer.create()){return nn.maxBytes.isZero()||Qt.uint32(8).int64(nn.maxBytes),nn.maxGas.isZero()||Qt.uint32(16).int64(nn.maxGas),Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=kt();for(;wt.pos>>3){case 1:xt.maxBytes=wt.int64();break;case 2:xt.maxGas=wt.int64();break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{maxBytes:(0,ht.isSet)(nn.maxBytes)?ht.Long.fromValue(nn.maxBytes):ht.Long.ZERO,maxGas:(0,ht.isSet)(nn.maxGas)?ht.Long.fromValue(nn.maxGas):ht.Long.ZERO}},toJSON(nn){const Qt={};return nn.maxBytes!==void 0&&(Qt.maxBytes=(nn.maxBytes||ht.Long.ZERO).toString()),nn.maxGas!==void 0&&(Qt.maxGas=(nn.maxGas||ht.Long.ZERO).toString()),Qt},fromPartial(nn){const Qt=kt();return Qt.maxBytes=nn.maxBytes!==void 0&&nn.maxBytes!==null?ht.Long.fromValue(nn.maxBytes):ht.Long.ZERO,Qt.maxGas=nn.maxGas!==void 0&&nn.maxGas!==null?ht.Long.fromValue(nn.maxGas):ht.Long.ZERO,Qt}};function Pt(){return{maxAgeNumBlocks:ht.Long.ZERO,maxAgeDuration:void 0,maxBytes:ht.Long.ZERO}}d.EvidenceParams={encode(nn,Qt=mt.Writer.create()){return nn.maxAgeNumBlocks.isZero()||Qt.uint32(8).int64(nn.maxAgeNumBlocks),nn.maxAgeDuration!==void 0&<.Duration.encode(nn.maxAgeDuration,Qt.uint32(18).fork()).ldelim(),nn.maxBytes.isZero()||Qt.uint32(24).int64(nn.maxBytes),Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Pt();for(;wt.pos>>3){case 1:xt.maxAgeNumBlocks=wt.int64();break;case 2:xt.maxAgeDuration=lt.Duration.decode(wt,wt.uint32());break;case 3:xt.maxBytes=wt.int64();break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{maxAgeNumBlocks:(0,ht.isSet)(nn.maxAgeNumBlocks)?ht.Long.fromValue(nn.maxAgeNumBlocks):ht.Long.ZERO,maxAgeDuration:(0,ht.isSet)(nn.maxAgeDuration)?lt.Duration.fromJSON(nn.maxAgeDuration):void 0,maxBytes:(0,ht.isSet)(nn.maxBytes)?ht.Long.fromValue(nn.maxBytes):ht.Long.ZERO}},toJSON(nn){const Qt={};return nn.maxAgeNumBlocks!==void 0&&(Qt.maxAgeNumBlocks=(nn.maxAgeNumBlocks||ht.Long.ZERO).toString()),nn.maxAgeDuration!==void 0&&(Qt.maxAgeDuration=nn.maxAgeDuration?lt.Duration.toJSON(nn.maxAgeDuration):void 0),nn.maxBytes!==void 0&&(Qt.maxBytes=(nn.maxBytes||ht.Long.ZERO).toString()),Qt},fromPartial(nn){const Qt=Pt();return Qt.maxAgeNumBlocks=nn.maxAgeNumBlocks!==void 0&&nn.maxAgeNumBlocks!==null?ht.Long.fromValue(nn.maxAgeNumBlocks):ht.Long.ZERO,Qt.maxAgeDuration=nn.maxAgeDuration!==void 0&&nn.maxAgeDuration!==null?lt.Duration.fromPartial(nn.maxAgeDuration):void 0,Qt.maxBytes=nn.maxBytes!==void 0&&nn.maxBytes!==null?ht.Long.fromValue(nn.maxBytes):ht.Long.ZERO,Qt}};function Jt(){return{pubKeyTypes:[]}}d.ValidatorParams={encode(nn,Qt=mt.Writer.create()){for(const wt of nn.pubKeyTypes)Qt.uint32(10).string(wt);return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Jt();for(;wt.pos>>3){case 1:xt.pubKeyTypes.push(wt.string());break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{pubKeyTypes:Array.isArray(nn==null?void 0:nn.pubKeyTypes)?nn.pubKeyTypes.map(Qt=>String(Qt)):[]}},toJSON(nn){const Qt={};return nn.pubKeyTypes?Qt.pubKeyTypes=nn.pubKeyTypes.map(wt=>wt):Qt.pubKeyTypes=[],Qt},fromPartial(nn){var wt;const Qt=Jt();return Qt.pubKeyTypes=((wt=nn.pubKeyTypes)==null?void 0:wt.map(Nt=>Nt))||[],Qt}};function Zt(){return{app:ht.Long.UZERO}}d.VersionParams={encode(nn,Qt=mt.Writer.create()){return nn.app.isZero()||Qt.uint32(8).uint64(nn.app),Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Zt();for(;wt.pos>>3){case 1:xt.app=wt.uint64();break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{app:(0,ht.isSet)(nn.app)?ht.Long.fromValue(nn.app):ht.Long.UZERO}},toJSON(nn){const Qt={};return nn.app!==void 0&&(Qt.app=(nn.app||ht.Long.UZERO).toString()),Qt},fromPartial(nn){const Qt=Zt();return Qt.app=nn.app!==void 0&&nn.app!==null?ht.Long.fromValue(nn.app):ht.Long.UZERO,Qt}};function Rt(){return{blockMaxBytes:ht.Long.ZERO,blockMaxGas:ht.Long.ZERO}}d.HashedParams={encode(nn,Qt=mt.Writer.create()){return nn.blockMaxBytes.isZero()||Qt.uint32(8).int64(nn.blockMaxBytes),nn.blockMaxGas.isZero()||Qt.uint32(16).int64(nn.blockMaxGas),Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Rt();for(;wt.pos>>3){case 1:xt.blockMaxBytes=wt.int64();break;case 2:xt.blockMaxGas=wt.int64();break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{blockMaxBytes:(0,ht.isSet)(nn.blockMaxBytes)?ht.Long.fromValue(nn.blockMaxBytes):ht.Long.ZERO,blockMaxGas:(0,ht.isSet)(nn.blockMaxGas)?ht.Long.fromValue(nn.blockMaxGas):ht.Long.ZERO}},toJSON(nn){const Qt={};return nn.blockMaxBytes!==void 0&&(Qt.blockMaxBytes=(nn.blockMaxBytes||ht.Long.ZERO).toString()),nn.blockMaxGas!==void 0&&(Qt.blockMaxGas=(nn.blockMaxGas||ht.Long.ZERO).toString()),Qt},fromPartial(nn){const Qt=Rt();return Qt.blockMaxBytes=nn.blockMaxBytes!==void 0&&nn.blockMaxBytes!==null?ht.Long.fromValue(nn.blockMaxBytes):ht.Long.ZERO,Qt.blockMaxGas=nn.blockMaxGas!==void 0&&nn.blockMaxGas!==null?ht.Long.fromValue(nn.blockMaxGas):ht.Long.ZERO,Qt}}})(params);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(sn,yn,Pn,Gr){Gr===void 0&&(Gr=Pn);var gr=Object.getOwnPropertyDescriptor(yn,Pn);(!gr||("get"in gr?!yn.__esModule:gr.writable||gr.configurable))&&(gr={enumerable:!0,get:function(){return yn[Pn]}}),Object.defineProperty(sn,Gr,gr)}:function(sn,yn,Pn,Gr){Gr===void 0&&(Gr=Pn),sn[Gr]=yn[Pn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(sn,yn){Object.defineProperty(sn,"default",{enumerable:!0,value:yn})}:function(sn,yn){sn.default=yn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(sn){if(sn&&sn.__esModule)return sn;var yn={};if(sn!=null)for(var Pn in sn)Pn!=="default"&&Object.prototype.hasOwnProperty.call(sn,Pn)&&b(yn,sn,Pn);return dt(yn,sn),yn};Object.defineProperty(d,"__esModule",{value:!0}),d.ResponsePrepareProposal=d.ResponseApplySnapshotChunk=d.ResponseLoadSnapshotChunk=d.ResponseOfferSnapshot=d.ResponseListSnapshots=d.ResponseCommit=d.ResponseEndBlock=d.ResponseDeliverTx=d.ResponseCheckTx=d.ResponseBeginBlock=d.ResponseQuery=d.ResponseInitChain=d.ResponseInfo=d.ResponseFlush=d.ResponseEcho=d.ResponseException=d.Response=d.RequestProcessProposal=d.RequestPrepareProposal=d.RequestApplySnapshotChunk=d.RequestLoadSnapshotChunk=d.RequestOfferSnapshot=d.RequestListSnapshots=d.RequestCommit=d.RequestEndBlock=d.RequestDeliverTx=d.RequestCheckTx=d.RequestBeginBlock=d.RequestQuery=d.RequestInitChain=d.RequestInfo=d.RequestFlush=d.RequestEcho=d.Request=d.misbehaviorTypeToJSON=d.misbehaviorTypeFromJSON=d.MisbehaviorType=d.responseProcessProposal_ProposalStatusToJSON=d.responseProcessProposal_ProposalStatusFromJSON=d.ResponseProcessProposal_ProposalStatus=d.responseApplySnapshotChunk_ResultToJSON=d.responseApplySnapshotChunk_ResultFromJSON=d.ResponseApplySnapshotChunk_Result=d.responseOfferSnapshot_ResultToJSON=d.responseOfferSnapshot_ResultFromJSON=d.ResponseOfferSnapshot_Result=d.checkTxTypeToJSON=d.checkTxTypeFromJSON=d.CheckTxType=d.protobufPackage=void 0,d.ABCIApplicationClientImpl=d.Snapshot=d.Misbehavior=d.ExtendedVoteInfo=d.VoteInfo=d.ValidatorUpdate=d.Validator=d.TxResult=d.EventAttribute=d.Event=d.ExtendedCommitInfo=d.CommitInfo=d.ResponseProcessProposal=void 0;const lt=timestamp$1,ht=params,mt=types$f,vt=proof$1,kt=keys$1,Pt=helpers$1,Jt=ct(minimal$4);d.protobufPackage="tendermint.abci";var Zt;(function(sn){sn[sn.NEW=0]="NEW",sn[sn.RECHECK=1]="RECHECK",sn[sn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zt=d.CheckTxType||(d.CheckTxType={}));function Rt(sn){switch(sn){case 0:case"NEW":return Zt.NEW;case 1:case"RECHECK":return Zt.RECHECK;case-1:case"UNRECOGNIZED":default:return Zt.UNRECOGNIZED}}d.checkTxTypeFromJSON=Rt;function nn(sn){switch(sn){case Zt.NEW:return"NEW";case Zt.RECHECK:return"RECHECK";case Zt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.checkTxTypeToJSON=nn;var Qt;(function(sn){sn[sn.UNKNOWN=0]="UNKNOWN",sn[sn.ACCEPT=1]="ACCEPT",sn[sn.ABORT=2]="ABORT",sn[sn.REJECT=3]="REJECT",sn[sn.REJECT_FORMAT=4]="REJECT_FORMAT",sn[sn.REJECT_SENDER=5]="REJECT_SENDER",sn[sn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qt=d.ResponseOfferSnapshot_Result||(d.ResponseOfferSnapshot_Result={}));function wt(sn){switch(sn){case 0:case"UNKNOWN":return Qt.UNKNOWN;case 1:case"ACCEPT":return Qt.ACCEPT;case 2:case"ABORT":return Qt.ABORT;case 3:case"REJECT":return Qt.REJECT;case 4:case"REJECT_FORMAT":return Qt.REJECT_FORMAT;case 5:case"REJECT_SENDER":return Qt.REJECT_SENDER;case-1:case"UNRECOGNIZED":default:return Qt.UNRECOGNIZED}}d.responseOfferSnapshot_ResultFromJSON=wt;function Nt(sn){switch(sn){case Qt.UNKNOWN:return"UNKNOWN";case Qt.ACCEPT:return"ACCEPT";case Qt.ABORT:return"ABORT";case Qt.REJECT:return"REJECT";case Qt.REJECT_FORMAT:return"REJECT_FORMAT";case Qt.REJECT_SENDER:return"REJECT_SENDER";case Qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.responseOfferSnapshot_ResultToJSON=Nt;var xt;(function(sn){sn[sn.UNKNOWN=0]="UNKNOWN",sn[sn.ACCEPT=1]="ACCEPT",sn[sn.ABORT=2]="ABORT",sn[sn.RETRY=3]="RETRY",sn[sn.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",sn[sn.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",sn[sn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xt=d.ResponseApplySnapshotChunk_Result||(d.ResponseApplySnapshotChunk_Result={}));function Et(sn){switch(sn){case 0:case"UNKNOWN":return xt.UNKNOWN;case 1:case"ACCEPT":return xt.ACCEPT;case 2:case"ABORT":return xt.ABORT;case 3:case"RETRY":return xt.RETRY;case 4:case"RETRY_SNAPSHOT":return xt.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return xt.REJECT_SNAPSHOT;case-1:case"UNRECOGNIZED":default:return xt.UNRECOGNIZED}}d.responseApplySnapshotChunk_ResultFromJSON=Et;function Bt(sn){switch(sn){case xt.UNKNOWN:return"UNKNOWN";case xt.ACCEPT:return"ACCEPT";case xt.ABORT:return"ABORT";case xt.RETRY:return"RETRY";case xt.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case xt.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";case xt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.responseApplySnapshotChunk_ResultToJSON=Bt;var Tt;(function(sn){sn[sn.UNKNOWN=0]="UNKNOWN",sn[sn.ACCEPT=1]="ACCEPT",sn[sn.REJECT=2]="REJECT",sn[sn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tt=d.ResponseProcessProposal_ProposalStatus||(d.ResponseProcessProposal_ProposalStatus={}));function Mt(sn){switch(sn){case 0:case"UNKNOWN":return Tt.UNKNOWN;case 1:case"ACCEPT":return Tt.ACCEPT;case 2:case"REJECT":return Tt.REJECT;case-1:case"UNRECOGNIZED":default:return Tt.UNRECOGNIZED}}d.responseProcessProposal_ProposalStatusFromJSON=Mt;function jt(sn){switch(sn){case Tt.UNKNOWN:return"UNKNOWN";case Tt.ACCEPT:return"ACCEPT";case Tt.REJECT:return"REJECT";case Tt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.responseProcessProposal_ProposalStatusToJSON=jt;var Ht;(function(sn){sn[sn.UNKNOWN=0]="UNKNOWN",sn[sn.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",sn[sn.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",sn[sn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ht=d.MisbehaviorType||(d.MisbehaviorType={}));function an(sn){switch(sn){case 0:case"UNKNOWN":return Ht.UNKNOWN;case 1:case"DUPLICATE_VOTE":return Ht.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return Ht.LIGHT_CLIENT_ATTACK;case-1:case"UNRECOGNIZED":default:return Ht.UNRECOGNIZED}}d.misbehaviorTypeFromJSON=an;function yt(sn){switch(sn){case Ht.UNKNOWN:return"UNKNOWN";case Ht.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case Ht.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";case Ht.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.misbehaviorTypeToJSON=yt;function $t(){return{echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,beginBlock:void 0,checkTx:void 0,deliverTx:void 0,endBlock:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0}}d.Request={encode(sn,yn=Jt.Writer.create()){return sn.echo!==void 0&&d.RequestEcho.encode(sn.echo,yn.uint32(10).fork()).ldelim(),sn.flush!==void 0&&d.RequestFlush.encode(sn.flush,yn.uint32(18).fork()).ldelim(),sn.info!==void 0&&d.RequestInfo.encode(sn.info,yn.uint32(26).fork()).ldelim(),sn.initChain!==void 0&&d.RequestInitChain.encode(sn.initChain,yn.uint32(42).fork()).ldelim(),sn.query!==void 0&&d.RequestQuery.encode(sn.query,yn.uint32(50).fork()).ldelim(),sn.beginBlock!==void 0&&d.RequestBeginBlock.encode(sn.beginBlock,yn.uint32(58).fork()).ldelim(),sn.checkTx!==void 0&&d.RequestCheckTx.encode(sn.checkTx,yn.uint32(66).fork()).ldelim(),sn.deliverTx!==void 0&&d.RequestDeliverTx.encode(sn.deliverTx,yn.uint32(74).fork()).ldelim(),sn.endBlock!==void 0&&d.RequestEndBlock.encode(sn.endBlock,yn.uint32(82).fork()).ldelim(),sn.commit!==void 0&&d.RequestCommit.encode(sn.commit,yn.uint32(90).fork()).ldelim(),sn.listSnapshots!==void 0&&d.RequestListSnapshots.encode(sn.listSnapshots,yn.uint32(98).fork()).ldelim(),sn.offerSnapshot!==void 0&&d.RequestOfferSnapshot.encode(sn.offerSnapshot,yn.uint32(106).fork()).ldelim(),sn.loadSnapshotChunk!==void 0&&d.RequestLoadSnapshotChunk.encode(sn.loadSnapshotChunk,yn.uint32(114).fork()).ldelim(),sn.applySnapshotChunk!==void 0&&d.RequestApplySnapshotChunk.encode(sn.applySnapshotChunk,yn.uint32(122).fork()).ldelim(),sn.prepareProposal!==void 0&&d.RequestPrepareProposal.encode(sn.prepareProposal,yn.uint32(130).fork()).ldelim(),sn.processProposal!==void 0&&d.RequestProcessProposal.encode(sn.processProposal,yn.uint32(138).fork()).ldelim(),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=$t();for(;Pn.pos>>3){case 1:gr.echo=d.RequestEcho.decode(Pn,Pn.uint32());break;case 2:gr.flush=d.RequestFlush.decode(Pn,Pn.uint32());break;case 3:gr.info=d.RequestInfo.decode(Pn,Pn.uint32());break;case 5:gr.initChain=d.RequestInitChain.decode(Pn,Pn.uint32());break;case 6:gr.query=d.RequestQuery.decode(Pn,Pn.uint32());break;case 7:gr.beginBlock=d.RequestBeginBlock.decode(Pn,Pn.uint32());break;case 8:gr.checkTx=d.RequestCheckTx.decode(Pn,Pn.uint32());break;case 9:gr.deliverTx=d.RequestDeliverTx.decode(Pn,Pn.uint32());break;case 10:gr.endBlock=d.RequestEndBlock.decode(Pn,Pn.uint32());break;case 11:gr.commit=d.RequestCommit.decode(Pn,Pn.uint32());break;case 12:gr.listSnapshots=d.RequestListSnapshots.decode(Pn,Pn.uint32());break;case 13:gr.offerSnapshot=d.RequestOfferSnapshot.decode(Pn,Pn.uint32());break;case 14:gr.loadSnapshotChunk=d.RequestLoadSnapshotChunk.decode(Pn,Pn.uint32());break;case 15:gr.applySnapshotChunk=d.RequestApplySnapshotChunk.decode(Pn,Pn.uint32());break;case 16:gr.prepareProposal=d.RequestPrepareProposal.decode(Pn,Pn.uint32());break;case 17:gr.processProposal=d.RequestProcessProposal.decode(Pn,Pn.uint32());break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{echo:(0,Pt.isSet)(sn.echo)?d.RequestEcho.fromJSON(sn.echo):void 0,flush:(0,Pt.isSet)(sn.flush)?d.RequestFlush.fromJSON(sn.flush):void 0,info:(0,Pt.isSet)(sn.info)?d.RequestInfo.fromJSON(sn.info):void 0,initChain:(0,Pt.isSet)(sn.initChain)?d.RequestInitChain.fromJSON(sn.initChain):void 0,query:(0,Pt.isSet)(sn.query)?d.RequestQuery.fromJSON(sn.query):void 0,beginBlock:(0,Pt.isSet)(sn.beginBlock)?d.RequestBeginBlock.fromJSON(sn.beginBlock):void 0,checkTx:(0,Pt.isSet)(sn.checkTx)?d.RequestCheckTx.fromJSON(sn.checkTx):void 0,deliverTx:(0,Pt.isSet)(sn.deliverTx)?d.RequestDeliverTx.fromJSON(sn.deliverTx):void 0,endBlock:(0,Pt.isSet)(sn.endBlock)?d.RequestEndBlock.fromJSON(sn.endBlock):void 0,commit:(0,Pt.isSet)(sn.commit)?d.RequestCommit.fromJSON(sn.commit):void 0,listSnapshots:(0,Pt.isSet)(sn.listSnapshots)?d.RequestListSnapshots.fromJSON(sn.listSnapshots):void 0,offerSnapshot:(0,Pt.isSet)(sn.offerSnapshot)?d.RequestOfferSnapshot.fromJSON(sn.offerSnapshot):void 0,loadSnapshotChunk:(0,Pt.isSet)(sn.loadSnapshotChunk)?d.RequestLoadSnapshotChunk.fromJSON(sn.loadSnapshotChunk):void 0,applySnapshotChunk:(0,Pt.isSet)(sn.applySnapshotChunk)?d.RequestApplySnapshotChunk.fromJSON(sn.applySnapshotChunk):void 0,prepareProposal:(0,Pt.isSet)(sn.prepareProposal)?d.RequestPrepareProposal.fromJSON(sn.prepareProposal):void 0,processProposal:(0,Pt.isSet)(sn.processProposal)?d.RequestProcessProposal.fromJSON(sn.processProposal):void 0}},toJSON(sn){const yn={};return sn.echo!==void 0&&(yn.echo=sn.echo?d.RequestEcho.toJSON(sn.echo):void 0),sn.flush!==void 0&&(yn.flush=sn.flush?d.RequestFlush.toJSON(sn.flush):void 0),sn.info!==void 0&&(yn.info=sn.info?d.RequestInfo.toJSON(sn.info):void 0),sn.initChain!==void 0&&(yn.initChain=sn.initChain?d.RequestInitChain.toJSON(sn.initChain):void 0),sn.query!==void 0&&(yn.query=sn.query?d.RequestQuery.toJSON(sn.query):void 0),sn.beginBlock!==void 0&&(yn.beginBlock=sn.beginBlock?d.RequestBeginBlock.toJSON(sn.beginBlock):void 0),sn.checkTx!==void 0&&(yn.checkTx=sn.checkTx?d.RequestCheckTx.toJSON(sn.checkTx):void 0),sn.deliverTx!==void 0&&(yn.deliverTx=sn.deliverTx?d.RequestDeliverTx.toJSON(sn.deliverTx):void 0),sn.endBlock!==void 0&&(yn.endBlock=sn.endBlock?d.RequestEndBlock.toJSON(sn.endBlock):void 0),sn.commit!==void 0&&(yn.commit=sn.commit?d.RequestCommit.toJSON(sn.commit):void 0),sn.listSnapshots!==void 0&&(yn.listSnapshots=sn.listSnapshots?d.RequestListSnapshots.toJSON(sn.listSnapshots):void 0),sn.offerSnapshot!==void 0&&(yn.offerSnapshot=sn.offerSnapshot?d.RequestOfferSnapshot.toJSON(sn.offerSnapshot):void 0),sn.loadSnapshotChunk!==void 0&&(yn.loadSnapshotChunk=sn.loadSnapshotChunk?d.RequestLoadSnapshotChunk.toJSON(sn.loadSnapshotChunk):void 0),sn.applySnapshotChunk!==void 0&&(yn.applySnapshotChunk=sn.applySnapshotChunk?d.RequestApplySnapshotChunk.toJSON(sn.applySnapshotChunk):void 0),sn.prepareProposal!==void 0&&(yn.prepareProposal=sn.prepareProposal?d.RequestPrepareProposal.toJSON(sn.prepareProposal):void 0),sn.processProposal!==void 0&&(yn.processProposal=sn.processProposal?d.RequestProcessProposal.toJSON(sn.processProposal):void 0),yn},fromPartial(sn){const yn=$t();return yn.echo=sn.echo!==void 0&&sn.echo!==null?d.RequestEcho.fromPartial(sn.echo):void 0,yn.flush=sn.flush!==void 0&&sn.flush!==null?d.RequestFlush.fromPartial(sn.flush):void 0,yn.info=sn.info!==void 0&&sn.info!==null?d.RequestInfo.fromPartial(sn.info):void 0,yn.initChain=sn.initChain!==void 0&&sn.initChain!==null?d.RequestInitChain.fromPartial(sn.initChain):void 0,yn.query=sn.query!==void 0&&sn.query!==null?d.RequestQuery.fromPartial(sn.query):void 0,yn.beginBlock=sn.beginBlock!==void 0&&sn.beginBlock!==null?d.RequestBeginBlock.fromPartial(sn.beginBlock):void 0,yn.checkTx=sn.checkTx!==void 0&&sn.checkTx!==null?d.RequestCheckTx.fromPartial(sn.checkTx):void 0,yn.deliverTx=sn.deliverTx!==void 0&&sn.deliverTx!==null?d.RequestDeliverTx.fromPartial(sn.deliverTx):void 0,yn.endBlock=sn.endBlock!==void 0&&sn.endBlock!==null?d.RequestEndBlock.fromPartial(sn.endBlock):void 0,yn.commit=sn.commit!==void 0&&sn.commit!==null?d.RequestCommit.fromPartial(sn.commit):void 0,yn.listSnapshots=sn.listSnapshots!==void 0&&sn.listSnapshots!==null?d.RequestListSnapshots.fromPartial(sn.listSnapshots):void 0,yn.offerSnapshot=sn.offerSnapshot!==void 0&&sn.offerSnapshot!==null?d.RequestOfferSnapshot.fromPartial(sn.offerSnapshot):void 0,yn.loadSnapshotChunk=sn.loadSnapshotChunk!==void 0&&sn.loadSnapshotChunk!==null?d.RequestLoadSnapshotChunk.fromPartial(sn.loadSnapshotChunk):void 0,yn.applySnapshotChunk=sn.applySnapshotChunk!==void 0&&sn.applySnapshotChunk!==null?d.RequestApplySnapshotChunk.fromPartial(sn.applySnapshotChunk):void 0,yn.prepareProposal=sn.prepareProposal!==void 0&&sn.prepareProposal!==null?d.RequestPrepareProposal.fromPartial(sn.prepareProposal):void 0,yn.processProposal=sn.processProposal!==void 0&&sn.processProposal!==null?d.RequestProcessProposal.fromPartial(sn.processProposal):void 0,yn}};function Yt(){return{message:""}}d.RequestEcho={encode(sn,yn=Jt.Writer.create()){return sn.message!==""&&yn.uint32(10).string(sn.message),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Yt();for(;Pn.pos>>3){case 1:gr.message=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{message:(0,Pt.isSet)(sn.message)?String(sn.message):""}},toJSON(sn){const yn={};return sn.message!==void 0&&(yn.message=sn.message),yn},fromPartial(sn){const yn=Yt();return yn.message=sn.message??"",yn}};function Kt(){return{}}d.RequestFlush={encode(sn,yn=Jt.Writer.create()){return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Kt();for(;Pn.pos>>3){default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{}},toJSON(sn){return{}},fromPartial(sn){return Kt()}};function St(){return{version:"",blockVersion:Pt.Long.UZERO,p2pVersion:Pt.Long.UZERO,abciVersion:""}}d.RequestInfo={encode(sn,yn=Jt.Writer.create()){return sn.version!==""&&yn.uint32(10).string(sn.version),sn.blockVersion.isZero()||yn.uint32(16).uint64(sn.blockVersion),sn.p2pVersion.isZero()||yn.uint32(24).uint64(sn.p2pVersion),sn.abciVersion!==""&&yn.uint32(34).string(sn.abciVersion),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=St();for(;Pn.pos>>3){case 1:gr.version=Pn.string();break;case 2:gr.blockVersion=Pn.uint64();break;case 3:gr.p2pVersion=Pn.uint64();break;case 4:gr.abciVersion=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{version:(0,Pt.isSet)(sn.version)?String(sn.version):"",blockVersion:(0,Pt.isSet)(sn.blockVersion)?Pt.Long.fromValue(sn.blockVersion):Pt.Long.UZERO,p2pVersion:(0,Pt.isSet)(sn.p2pVersion)?Pt.Long.fromValue(sn.p2pVersion):Pt.Long.UZERO,abciVersion:(0,Pt.isSet)(sn.abciVersion)?String(sn.abciVersion):""}},toJSON(sn){const yn={};return sn.version!==void 0&&(yn.version=sn.version),sn.blockVersion!==void 0&&(yn.blockVersion=(sn.blockVersion||Pt.Long.UZERO).toString()),sn.p2pVersion!==void 0&&(yn.p2pVersion=(sn.p2pVersion||Pt.Long.UZERO).toString()),sn.abciVersion!==void 0&&(yn.abciVersion=sn.abciVersion),yn},fromPartial(sn){const yn=St();return yn.version=sn.version??"",yn.blockVersion=sn.blockVersion!==void 0&&sn.blockVersion!==null?Pt.Long.fromValue(sn.blockVersion):Pt.Long.UZERO,yn.p2pVersion=sn.p2pVersion!==void 0&&sn.p2pVersion!==null?Pt.Long.fromValue(sn.p2pVersion):Pt.Long.UZERO,yn.abciVersion=sn.abciVersion??"",yn}};function It(){return{time:void 0,chainId:"",consensusParams:void 0,validators:[],appStateBytes:new Uint8Array,initialHeight:Pt.Long.ZERO}}d.RequestInitChain={encode(sn,yn=Jt.Writer.create()){sn.time!==void 0&<.Timestamp.encode(sn.time,yn.uint32(10).fork()).ldelim(),sn.chainId!==""&&yn.uint32(18).string(sn.chainId),sn.consensusParams!==void 0&&ht.ConsensusParams.encode(sn.consensusParams,yn.uint32(26).fork()).ldelim();for(const Pn of sn.validators)d.ValidatorUpdate.encode(Pn,yn.uint32(34).fork()).ldelim();return sn.appStateBytes.length!==0&&yn.uint32(42).bytes(sn.appStateBytes),sn.initialHeight.isZero()||yn.uint32(48).int64(sn.initialHeight),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=It();for(;Pn.pos>>3){case 1:gr.time=lt.Timestamp.decode(Pn,Pn.uint32());break;case 2:gr.chainId=Pn.string();break;case 3:gr.consensusParams=ht.ConsensusParams.decode(Pn,Pn.uint32());break;case 4:gr.validators.push(d.ValidatorUpdate.decode(Pn,Pn.uint32()));break;case 5:gr.appStateBytes=Pn.bytes();break;case 6:gr.initialHeight=Pn.int64();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{time:(0,Pt.isSet)(sn.time)?(0,Pt.fromJsonTimestamp)(sn.time):void 0,chainId:(0,Pt.isSet)(sn.chainId)?String(sn.chainId):"",consensusParams:(0,Pt.isSet)(sn.consensusParams)?ht.ConsensusParams.fromJSON(sn.consensusParams):void 0,validators:Array.isArray(sn==null?void 0:sn.validators)?sn.validators.map(yn=>d.ValidatorUpdate.fromJSON(yn)):[],appStateBytes:(0,Pt.isSet)(sn.appStateBytes)?(0,Pt.bytesFromBase64)(sn.appStateBytes):new Uint8Array,initialHeight:(0,Pt.isSet)(sn.initialHeight)?Pt.Long.fromValue(sn.initialHeight):Pt.Long.ZERO}},toJSON(sn){const yn={};return sn.time!==void 0&&(yn.time=(0,Pt.fromTimestamp)(sn.time).toISOString()),sn.chainId!==void 0&&(yn.chainId=sn.chainId),sn.consensusParams!==void 0&&(yn.consensusParams=sn.consensusParams?ht.ConsensusParams.toJSON(sn.consensusParams):void 0),sn.validators?yn.validators=sn.validators.map(Pn=>Pn?d.ValidatorUpdate.toJSON(Pn):void 0):yn.validators=[],sn.appStateBytes!==void 0&&(yn.appStateBytes=(0,Pt.base64FromBytes)(sn.appStateBytes!==void 0?sn.appStateBytes:new Uint8Array)),sn.initialHeight!==void 0&&(yn.initialHeight=(sn.initialHeight||Pt.Long.ZERO).toString()),yn},fromPartial(sn){var Pn;const yn=It();return yn.time=sn.time!==void 0&&sn.time!==null?lt.Timestamp.fromPartial(sn.time):void 0,yn.chainId=sn.chainId??"",yn.consensusParams=sn.consensusParams!==void 0&&sn.consensusParams!==null?ht.ConsensusParams.fromPartial(sn.consensusParams):void 0,yn.validators=((Pn=sn.validators)==null?void 0:Pn.map(Gr=>d.ValidatorUpdate.fromPartial(Gr)))||[],yn.appStateBytes=sn.appStateBytes??new Uint8Array,yn.initialHeight=sn.initialHeight!==void 0&&sn.initialHeight!==null?Pt.Long.fromValue(sn.initialHeight):Pt.Long.ZERO,yn}};function Gt(){return{data:new Uint8Array,path:"",height:Pt.Long.ZERO,prove:!1}}d.RequestQuery={encode(sn,yn=Jt.Writer.create()){return sn.data.length!==0&&yn.uint32(10).bytes(sn.data),sn.path!==""&&yn.uint32(18).string(sn.path),sn.height.isZero()||yn.uint32(24).int64(sn.height),sn.prove===!0&&yn.uint32(32).bool(sn.prove),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Gt();for(;Pn.pos>>3){case 1:gr.data=Pn.bytes();break;case 2:gr.path=Pn.string();break;case 3:gr.height=Pn.int64();break;case 4:gr.prove=Pn.bool();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{data:(0,Pt.isSet)(sn.data)?(0,Pt.bytesFromBase64)(sn.data):new Uint8Array,path:(0,Pt.isSet)(sn.path)?String(sn.path):"",height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,prove:(0,Pt.isSet)(sn.prove)?!!sn.prove:!1}},toJSON(sn){const yn={};return sn.data!==void 0&&(yn.data=(0,Pt.base64FromBytes)(sn.data!==void 0?sn.data:new Uint8Array)),sn.path!==void 0&&(yn.path=sn.path),sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.ZERO).toString()),sn.prove!==void 0&&(yn.prove=sn.prove),yn},fromPartial(sn){const yn=Gt();return yn.data=sn.data??new Uint8Array,yn.path=sn.path??"",yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,yn.prove=sn.prove??!1,yn}};function Ut(){return{hash:new Uint8Array,header:void 0,lastCommitInfo:void 0,byzantineValidators:[]}}d.RequestBeginBlock={encode(sn,yn=Jt.Writer.create()){sn.hash.length!==0&&yn.uint32(10).bytes(sn.hash),sn.header!==void 0&&mt.Header.encode(sn.header,yn.uint32(18).fork()).ldelim(),sn.lastCommitInfo!==void 0&&d.CommitInfo.encode(sn.lastCommitInfo,yn.uint32(26).fork()).ldelim();for(const Pn of sn.byzantineValidators)d.Misbehavior.encode(Pn,yn.uint32(34).fork()).ldelim();return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Ut();for(;Pn.pos>>3){case 1:gr.hash=Pn.bytes();break;case 2:gr.header=mt.Header.decode(Pn,Pn.uint32());break;case 3:gr.lastCommitInfo=d.CommitInfo.decode(Pn,Pn.uint32());break;case 4:gr.byzantineValidators.push(d.Misbehavior.decode(Pn,Pn.uint32()));break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{hash:(0,Pt.isSet)(sn.hash)?(0,Pt.bytesFromBase64)(sn.hash):new Uint8Array,header:(0,Pt.isSet)(sn.header)?mt.Header.fromJSON(sn.header):void 0,lastCommitInfo:(0,Pt.isSet)(sn.lastCommitInfo)?d.CommitInfo.fromJSON(sn.lastCommitInfo):void 0,byzantineValidators:Array.isArray(sn==null?void 0:sn.byzantineValidators)?sn.byzantineValidators.map(yn=>d.Misbehavior.fromJSON(yn)):[]}},toJSON(sn){const yn={};return sn.hash!==void 0&&(yn.hash=(0,Pt.base64FromBytes)(sn.hash!==void 0?sn.hash:new Uint8Array)),sn.header!==void 0&&(yn.header=sn.header?mt.Header.toJSON(sn.header):void 0),sn.lastCommitInfo!==void 0&&(yn.lastCommitInfo=sn.lastCommitInfo?d.CommitInfo.toJSON(sn.lastCommitInfo):void 0),sn.byzantineValidators?yn.byzantineValidators=sn.byzantineValidators.map(Pn=>Pn?d.Misbehavior.toJSON(Pn):void 0):yn.byzantineValidators=[],yn},fromPartial(sn){var Pn;const yn=Ut();return yn.hash=sn.hash??new Uint8Array,yn.header=sn.header!==void 0&&sn.header!==null?mt.Header.fromPartial(sn.header):void 0,yn.lastCommitInfo=sn.lastCommitInfo!==void 0&&sn.lastCommitInfo!==null?d.CommitInfo.fromPartial(sn.lastCommitInfo):void 0,yn.byzantineValidators=((Pn=sn.byzantineValidators)==null?void 0:Pn.map(Gr=>d.Misbehavior.fromPartial(Gr)))||[],yn}};function Vt(){return{tx:new Uint8Array,type:0}}d.RequestCheckTx={encode(sn,yn=Jt.Writer.create()){return sn.tx.length!==0&&yn.uint32(10).bytes(sn.tx),sn.type!==0&&yn.uint32(16).int32(sn.type),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Vt();for(;Pn.pos>>3){case 1:gr.tx=Pn.bytes();break;case 2:gr.type=Pn.int32();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{tx:(0,Pt.isSet)(sn.tx)?(0,Pt.bytesFromBase64)(sn.tx):new Uint8Array,type:(0,Pt.isSet)(sn.type)?Rt(sn.type):0}},toJSON(sn){const yn={};return sn.tx!==void 0&&(yn.tx=(0,Pt.base64FromBytes)(sn.tx!==void 0?sn.tx:new Uint8Array)),sn.type!==void 0&&(yn.type=nn(sn.type)),yn},fromPartial(sn){const yn=Vt();return yn.tx=sn.tx??new Uint8Array,yn.type=sn.type??0,yn}};function qt(){return{tx:new Uint8Array}}d.RequestDeliverTx={encode(sn,yn=Jt.Writer.create()){return sn.tx.length!==0&&yn.uint32(10).bytes(sn.tx),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=qt();for(;Pn.pos>>3){case 1:gr.tx=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{tx:(0,Pt.isSet)(sn.tx)?(0,Pt.bytesFromBase64)(sn.tx):new Uint8Array}},toJSON(sn){const yn={};return sn.tx!==void 0&&(yn.tx=(0,Pt.base64FromBytes)(sn.tx!==void 0?sn.tx:new Uint8Array)),yn},fromPartial(sn){const yn=qt();return yn.tx=sn.tx??new Uint8Array,yn}};function fn(){return{height:Pt.Long.ZERO}}d.RequestEndBlock={encode(sn,yn=Jt.Writer.create()){return sn.height.isZero()||yn.uint32(8).int64(sn.height),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=fn();for(;Pn.pos>>3){case 1:gr.height=Pn.int64();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.ZERO}},toJSON(sn){const yn={};return sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.ZERO).toString()),yn},fromPartial(sn){const yn=fn();return yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,yn}};function dn(){return{}}d.RequestCommit={encode(sn,yn=Jt.Writer.create()){return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=dn();for(;Pn.pos>>3){default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{}},toJSON(sn){return{}},fromPartial(sn){return dn()}};function Dt(){return{}}d.RequestListSnapshots={encode(sn,yn=Jt.Writer.create()){return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Dt();for(;Pn.pos>>3){default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{}},toJSON(sn){return{}},fromPartial(sn){return Dt()}};function zt(){return{snapshot:void 0,appHash:new Uint8Array}}d.RequestOfferSnapshot={encode(sn,yn=Jt.Writer.create()){return sn.snapshot!==void 0&&d.Snapshot.encode(sn.snapshot,yn.uint32(10).fork()).ldelim(),sn.appHash.length!==0&&yn.uint32(18).bytes(sn.appHash),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=zt();for(;Pn.pos>>3){case 1:gr.snapshot=d.Snapshot.decode(Pn,Pn.uint32());break;case 2:gr.appHash=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{snapshot:(0,Pt.isSet)(sn.snapshot)?d.Snapshot.fromJSON(sn.snapshot):void 0,appHash:(0,Pt.isSet)(sn.appHash)?(0,Pt.bytesFromBase64)(sn.appHash):new Uint8Array}},toJSON(sn){const yn={};return sn.snapshot!==void 0&&(yn.snapshot=sn.snapshot?d.Snapshot.toJSON(sn.snapshot):void 0),sn.appHash!==void 0&&(yn.appHash=(0,Pt.base64FromBytes)(sn.appHash!==void 0?sn.appHash:new Uint8Array)),yn},fromPartial(sn){const yn=zt();return yn.snapshot=sn.snapshot!==void 0&&sn.snapshot!==null?d.Snapshot.fromPartial(sn.snapshot):void 0,yn.appHash=sn.appHash??new Uint8Array,yn}};function tn(){return{height:Pt.Long.UZERO,format:0,chunk:0}}d.RequestLoadSnapshotChunk={encode(sn,yn=Jt.Writer.create()){return sn.height.isZero()||yn.uint32(8).uint64(sn.height),sn.format!==0&&yn.uint32(16).uint32(sn.format),sn.chunk!==0&&yn.uint32(24).uint32(sn.chunk),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=tn();for(;Pn.pos>>3){case 1:gr.height=Pn.uint64();break;case 2:gr.format=Pn.uint32();break;case 3:gr.chunk=Pn.uint32();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.UZERO,format:(0,Pt.isSet)(sn.format)?Number(sn.format):0,chunk:(0,Pt.isSet)(sn.chunk)?Number(sn.chunk):0}},toJSON(sn){const yn={};return sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.UZERO).toString()),sn.format!==void 0&&(yn.format=Math.round(sn.format)),sn.chunk!==void 0&&(yn.chunk=Math.round(sn.chunk)),yn},fromPartial(sn){const yn=tn();return yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.UZERO,yn.format=sn.format??0,yn.chunk=sn.chunk??0,yn}};function An(){return{index:0,chunk:new Uint8Array,sender:""}}d.RequestApplySnapshotChunk={encode(sn,yn=Jt.Writer.create()){return sn.index!==0&&yn.uint32(8).uint32(sn.index),sn.chunk.length!==0&&yn.uint32(18).bytes(sn.chunk),sn.sender!==""&&yn.uint32(26).string(sn.sender),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=An();for(;Pn.pos>>3){case 1:gr.index=Pn.uint32();break;case 2:gr.chunk=Pn.bytes();break;case 3:gr.sender=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{index:(0,Pt.isSet)(sn.index)?Number(sn.index):0,chunk:(0,Pt.isSet)(sn.chunk)?(0,Pt.bytesFromBase64)(sn.chunk):new Uint8Array,sender:(0,Pt.isSet)(sn.sender)?String(sn.sender):""}},toJSON(sn){const yn={};return sn.index!==void 0&&(yn.index=Math.round(sn.index)),sn.chunk!==void 0&&(yn.chunk=(0,Pt.base64FromBytes)(sn.chunk!==void 0?sn.chunk:new Uint8Array)),sn.sender!==void 0&&(yn.sender=sn.sender),yn},fromPartial(sn){const yn=An();return yn.index=sn.index??0,yn.chunk=sn.chunk??new Uint8Array,yn.sender=sn.sender??"",yn}};function gn(){return{maxTxBytes:Pt.Long.ZERO,txs:[],localLastCommit:void 0,misbehavior:[],height:Pt.Long.ZERO,time:void 0,nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}d.RequestPrepareProposal={encode(sn,yn=Jt.Writer.create()){sn.maxTxBytes.isZero()||yn.uint32(8).int64(sn.maxTxBytes);for(const Pn of sn.txs)yn.uint32(18).bytes(Pn);sn.localLastCommit!==void 0&&d.ExtendedCommitInfo.encode(sn.localLastCommit,yn.uint32(26).fork()).ldelim();for(const Pn of sn.misbehavior)d.Misbehavior.encode(Pn,yn.uint32(34).fork()).ldelim();return sn.height.isZero()||yn.uint32(40).int64(sn.height),sn.time!==void 0&<.Timestamp.encode(sn.time,yn.uint32(50).fork()).ldelim(),sn.nextValidatorsHash.length!==0&&yn.uint32(58).bytes(sn.nextValidatorsHash),sn.proposerAddress.length!==0&&yn.uint32(66).bytes(sn.proposerAddress),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=gn();for(;Pn.pos>>3){case 1:gr.maxTxBytes=Pn.int64();break;case 2:gr.txs.push(Pn.bytes());break;case 3:gr.localLastCommit=d.ExtendedCommitInfo.decode(Pn,Pn.uint32());break;case 4:gr.misbehavior.push(d.Misbehavior.decode(Pn,Pn.uint32()));break;case 5:gr.height=Pn.int64();break;case 6:gr.time=lt.Timestamp.decode(Pn,Pn.uint32());break;case 7:gr.nextValidatorsHash=Pn.bytes();break;case 8:gr.proposerAddress=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{maxTxBytes:(0,Pt.isSet)(sn.maxTxBytes)?Pt.Long.fromValue(sn.maxTxBytes):Pt.Long.ZERO,txs:Array.isArray(sn==null?void 0:sn.txs)?sn.txs.map(yn=>(0,Pt.bytesFromBase64)(yn)):[],localLastCommit:(0,Pt.isSet)(sn.localLastCommit)?d.ExtendedCommitInfo.fromJSON(sn.localLastCommit):void 0,misbehavior:Array.isArray(sn==null?void 0:sn.misbehavior)?sn.misbehavior.map(yn=>d.Misbehavior.fromJSON(yn)):[],height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,time:(0,Pt.isSet)(sn.time)?(0,Pt.fromJsonTimestamp)(sn.time):void 0,nextValidatorsHash:(0,Pt.isSet)(sn.nextValidatorsHash)?(0,Pt.bytesFromBase64)(sn.nextValidatorsHash):new Uint8Array,proposerAddress:(0,Pt.isSet)(sn.proposerAddress)?(0,Pt.bytesFromBase64)(sn.proposerAddress):new Uint8Array}},toJSON(sn){const yn={};return sn.maxTxBytes!==void 0&&(yn.maxTxBytes=(sn.maxTxBytes||Pt.Long.ZERO).toString()),sn.txs?yn.txs=sn.txs.map(Pn=>(0,Pt.base64FromBytes)(Pn!==void 0?Pn:new Uint8Array)):yn.txs=[],sn.localLastCommit!==void 0&&(yn.localLastCommit=sn.localLastCommit?d.ExtendedCommitInfo.toJSON(sn.localLastCommit):void 0),sn.misbehavior?yn.misbehavior=sn.misbehavior.map(Pn=>Pn?d.Misbehavior.toJSON(Pn):void 0):yn.misbehavior=[],sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.ZERO).toString()),sn.time!==void 0&&(yn.time=(0,Pt.fromTimestamp)(sn.time).toISOString()),sn.nextValidatorsHash!==void 0&&(yn.nextValidatorsHash=(0,Pt.base64FromBytes)(sn.nextValidatorsHash!==void 0?sn.nextValidatorsHash:new Uint8Array)),sn.proposerAddress!==void 0&&(yn.proposerAddress=(0,Pt.base64FromBytes)(sn.proposerAddress!==void 0?sn.proposerAddress:new Uint8Array)),yn},fromPartial(sn){var Pn,Gr;const yn=gn();return yn.maxTxBytes=sn.maxTxBytes!==void 0&&sn.maxTxBytes!==null?Pt.Long.fromValue(sn.maxTxBytes):Pt.Long.ZERO,yn.txs=((Pn=sn.txs)==null?void 0:Pn.map(gr=>gr))||[],yn.localLastCommit=sn.localLastCommit!==void 0&&sn.localLastCommit!==null?d.ExtendedCommitInfo.fromPartial(sn.localLastCommit):void 0,yn.misbehavior=((Gr=sn.misbehavior)==null?void 0:Gr.map(gr=>d.Misbehavior.fromPartial(gr)))||[],yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,yn.time=sn.time!==void 0&&sn.time!==null?lt.Timestamp.fromPartial(sn.time):void 0,yn.nextValidatorsHash=sn.nextValidatorsHash??new Uint8Array,yn.proposerAddress=sn.proposerAddress??new Uint8Array,yn}};function Nn(){return{txs:[],proposedLastCommit:void 0,misbehavior:[],hash:new Uint8Array,height:Pt.Long.ZERO,time:void 0,nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}d.RequestProcessProposal={encode(sn,yn=Jt.Writer.create()){for(const Pn of sn.txs)yn.uint32(10).bytes(Pn);sn.proposedLastCommit!==void 0&&d.CommitInfo.encode(sn.proposedLastCommit,yn.uint32(18).fork()).ldelim();for(const Pn of sn.misbehavior)d.Misbehavior.encode(Pn,yn.uint32(26).fork()).ldelim();return sn.hash.length!==0&&yn.uint32(34).bytes(sn.hash),sn.height.isZero()||yn.uint32(40).int64(sn.height),sn.time!==void 0&<.Timestamp.encode(sn.time,yn.uint32(50).fork()).ldelim(),sn.nextValidatorsHash.length!==0&&yn.uint32(58).bytes(sn.nextValidatorsHash),sn.proposerAddress.length!==0&&yn.uint32(66).bytes(sn.proposerAddress),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Nn();for(;Pn.pos>>3){case 1:gr.txs.push(Pn.bytes());break;case 2:gr.proposedLastCommit=d.CommitInfo.decode(Pn,Pn.uint32());break;case 3:gr.misbehavior.push(d.Misbehavior.decode(Pn,Pn.uint32()));break;case 4:gr.hash=Pn.bytes();break;case 5:gr.height=Pn.int64();break;case 6:gr.time=lt.Timestamp.decode(Pn,Pn.uint32());break;case 7:gr.nextValidatorsHash=Pn.bytes();break;case 8:gr.proposerAddress=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{txs:Array.isArray(sn==null?void 0:sn.txs)?sn.txs.map(yn=>(0,Pt.bytesFromBase64)(yn)):[],proposedLastCommit:(0,Pt.isSet)(sn.proposedLastCommit)?d.CommitInfo.fromJSON(sn.proposedLastCommit):void 0,misbehavior:Array.isArray(sn==null?void 0:sn.misbehavior)?sn.misbehavior.map(yn=>d.Misbehavior.fromJSON(yn)):[],hash:(0,Pt.isSet)(sn.hash)?(0,Pt.bytesFromBase64)(sn.hash):new Uint8Array,height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,time:(0,Pt.isSet)(sn.time)?(0,Pt.fromJsonTimestamp)(sn.time):void 0,nextValidatorsHash:(0,Pt.isSet)(sn.nextValidatorsHash)?(0,Pt.bytesFromBase64)(sn.nextValidatorsHash):new Uint8Array,proposerAddress:(0,Pt.isSet)(sn.proposerAddress)?(0,Pt.bytesFromBase64)(sn.proposerAddress):new Uint8Array}},toJSON(sn){const yn={};return sn.txs?yn.txs=sn.txs.map(Pn=>(0,Pt.base64FromBytes)(Pn!==void 0?Pn:new Uint8Array)):yn.txs=[],sn.proposedLastCommit!==void 0&&(yn.proposedLastCommit=sn.proposedLastCommit?d.CommitInfo.toJSON(sn.proposedLastCommit):void 0),sn.misbehavior?yn.misbehavior=sn.misbehavior.map(Pn=>Pn?d.Misbehavior.toJSON(Pn):void 0):yn.misbehavior=[],sn.hash!==void 0&&(yn.hash=(0,Pt.base64FromBytes)(sn.hash!==void 0?sn.hash:new Uint8Array)),sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.ZERO).toString()),sn.time!==void 0&&(yn.time=(0,Pt.fromTimestamp)(sn.time).toISOString()),sn.nextValidatorsHash!==void 0&&(yn.nextValidatorsHash=(0,Pt.base64FromBytes)(sn.nextValidatorsHash!==void 0?sn.nextValidatorsHash:new Uint8Array)),sn.proposerAddress!==void 0&&(yn.proposerAddress=(0,Pt.base64FromBytes)(sn.proposerAddress!==void 0?sn.proposerAddress:new Uint8Array)),yn},fromPartial(sn){var Pn,Gr;const yn=Nn();return yn.txs=((Pn=sn.txs)==null?void 0:Pn.map(gr=>gr))||[],yn.proposedLastCommit=sn.proposedLastCommit!==void 0&&sn.proposedLastCommit!==null?d.CommitInfo.fromPartial(sn.proposedLastCommit):void 0,yn.misbehavior=((Gr=sn.misbehavior)==null?void 0:Gr.map(gr=>d.Misbehavior.fromPartial(gr)))||[],yn.hash=sn.hash??new Uint8Array,yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,yn.time=sn.time!==void 0&&sn.time!==null?lt.Timestamp.fromPartial(sn.time):void 0,yn.nextValidatorsHash=sn.nextValidatorsHash??new Uint8Array,yn.proposerAddress=sn.proposerAddress??new Uint8Array,yn}};function wr(){return{exception:void 0,echo:void 0,flush:void 0,info:void 0,initChain:void 0,query:void 0,beginBlock:void 0,checkTx:void 0,deliverTx:void 0,endBlock:void 0,commit:void 0,listSnapshots:void 0,offerSnapshot:void 0,loadSnapshotChunk:void 0,applySnapshotChunk:void 0,prepareProposal:void 0,processProposal:void 0}}d.Response={encode(sn,yn=Jt.Writer.create()){return sn.exception!==void 0&&d.ResponseException.encode(sn.exception,yn.uint32(10).fork()).ldelim(),sn.echo!==void 0&&d.ResponseEcho.encode(sn.echo,yn.uint32(18).fork()).ldelim(),sn.flush!==void 0&&d.ResponseFlush.encode(sn.flush,yn.uint32(26).fork()).ldelim(),sn.info!==void 0&&d.ResponseInfo.encode(sn.info,yn.uint32(34).fork()).ldelim(),sn.initChain!==void 0&&d.ResponseInitChain.encode(sn.initChain,yn.uint32(50).fork()).ldelim(),sn.query!==void 0&&d.ResponseQuery.encode(sn.query,yn.uint32(58).fork()).ldelim(),sn.beginBlock!==void 0&&d.ResponseBeginBlock.encode(sn.beginBlock,yn.uint32(66).fork()).ldelim(),sn.checkTx!==void 0&&d.ResponseCheckTx.encode(sn.checkTx,yn.uint32(74).fork()).ldelim(),sn.deliverTx!==void 0&&d.ResponseDeliverTx.encode(sn.deliverTx,yn.uint32(82).fork()).ldelim(),sn.endBlock!==void 0&&d.ResponseEndBlock.encode(sn.endBlock,yn.uint32(90).fork()).ldelim(),sn.commit!==void 0&&d.ResponseCommit.encode(sn.commit,yn.uint32(98).fork()).ldelim(),sn.listSnapshots!==void 0&&d.ResponseListSnapshots.encode(sn.listSnapshots,yn.uint32(106).fork()).ldelim(),sn.offerSnapshot!==void 0&&d.ResponseOfferSnapshot.encode(sn.offerSnapshot,yn.uint32(114).fork()).ldelim(),sn.loadSnapshotChunk!==void 0&&d.ResponseLoadSnapshotChunk.encode(sn.loadSnapshotChunk,yn.uint32(122).fork()).ldelim(),sn.applySnapshotChunk!==void 0&&d.ResponseApplySnapshotChunk.encode(sn.applySnapshotChunk,yn.uint32(130).fork()).ldelim(),sn.prepareProposal!==void 0&&d.ResponsePrepareProposal.encode(sn.prepareProposal,yn.uint32(138).fork()).ldelim(),sn.processProposal!==void 0&&d.ResponseProcessProposal.encode(sn.processProposal,yn.uint32(146).fork()).ldelim(),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=wr();for(;Pn.pos>>3){case 1:gr.exception=d.ResponseException.decode(Pn,Pn.uint32());break;case 2:gr.echo=d.ResponseEcho.decode(Pn,Pn.uint32());break;case 3:gr.flush=d.ResponseFlush.decode(Pn,Pn.uint32());break;case 4:gr.info=d.ResponseInfo.decode(Pn,Pn.uint32());break;case 6:gr.initChain=d.ResponseInitChain.decode(Pn,Pn.uint32());break;case 7:gr.query=d.ResponseQuery.decode(Pn,Pn.uint32());break;case 8:gr.beginBlock=d.ResponseBeginBlock.decode(Pn,Pn.uint32());break;case 9:gr.checkTx=d.ResponseCheckTx.decode(Pn,Pn.uint32());break;case 10:gr.deliverTx=d.ResponseDeliverTx.decode(Pn,Pn.uint32());break;case 11:gr.endBlock=d.ResponseEndBlock.decode(Pn,Pn.uint32());break;case 12:gr.commit=d.ResponseCommit.decode(Pn,Pn.uint32());break;case 13:gr.listSnapshots=d.ResponseListSnapshots.decode(Pn,Pn.uint32());break;case 14:gr.offerSnapshot=d.ResponseOfferSnapshot.decode(Pn,Pn.uint32());break;case 15:gr.loadSnapshotChunk=d.ResponseLoadSnapshotChunk.decode(Pn,Pn.uint32());break;case 16:gr.applySnapshotChunk=d.ResponseApplySnapshotChunk.decode(Pn,Pn.uint32());break;case 17:gr.prepareProposal=d.ResponsePrepareProposal.decode(Pn,Pn.uint32());break;case 18:gr.processProposal=d.ResponseProcessProposal.decode(Pn,Pn.uint32());break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{exception:(0,Pt.isSet)(sn.exception)?d.ResponseException.fromJSON(sn.exception):void 0,echo:(0,Pt.isSet)(sn.echo)?d.ResponseEcho.fromJSON(sn.echo):void 0,flush:(0,Pt.isSet)(sn.flush)?d.ResponseFlush.fromJSON(sn.flush):void 0,info:(0,Pt.isSet)(sn.info)?d.ResponseInfo.fromJSON(sn.info):void 0,initChain:(0,Pt.isSet)(sn.initChain)?d.ResponseInitChain.fromJSON(sn.initChain):void 0,query:(0,Pt.isSet)(sn.query)?d.ResponseQuery.fromJSON(sn.query):void 0,beginBlock:(0,Pt.isSet)(sn.beginBlock)?d.ResponseBeginBlock.fromJSON(sn.beginBlock):void 0,checkTx:(0,Pt.isSet)(sn.checkTx)?d.ResponseCheckTx.fromJSON(sn.checkTx):void 0,deliverTx:(0,Pt.isSet)(sn.deliverTx)?d.ResponseDeliverTx.fromJSON(sn.deliverTx):void 0,endBlock:(0,Pt.isSet)(sn.endBlock)?d.ResponseEndBlock.fromJSON(sn.endBlock):void 0,commit:(0,Pt.isSet)(sn.commit)?d.ResponseCommit.fromJSON(sn.commit):void 0,listSnapshots:(0,Pt.isSet)(sn.listSnapshots)?d.ResponseListSnapshots.fromJSON(sn.listSnapshots):void 0,offerSnapshot:(0,Pt.isSet)(sn.offerSnapshot)?d.ResponseOfferSnapshot.fromJSON(sn.offerSnapshot):void 0,loadSnapshotChunk:(0,Pt.isSet)(sn.loadSnapshotChunk)?d.ResponseLoadSnapshotChunk.fromJSON(sn.loadSnapshotChunk):void 0,applySnapshotChunk:(0,Pt.isSet)(sn.applySnapshotChunk)?d.ResponseApplySnapshotChunk.fromJSON(sn.applySnapshotChunk):void 0,prepareProposal:(0,Pt.isSet)(sn.prepareProposal)?d.ResponsePrepareProposal.fromJSON(sn.prepareProposal):void 0,processProposal:(0,Pt.isSet)(sn.processProposal)?d.ResponseProcessProposal.fromJSON(sn.processProposal):void 0}},toJSON(sn){const yn={};return sn.exception!==void 0&&(yn.exception=sn.exception?d.ResponseException.toJSON(sn.exception):void 0),sn.echo!==void 0&&(yn.echo=sn.echo?d.ResponseEcho.toJSON(sn.echo):void 0),sn.flush!==void 0&&(yn.flush=sn.flush?d.ResponseFlush.toJSON(sn.flush):void 0),sn.info!==void 0&&(yn.info=sn.info?d.ResponseInfo.toJSON(sn.info):void 0),sn.initChain!==void 0&&(yn.initChain=sn.initChain?d.ResponseInitChain.toJSON(sn.initChain):void 0),sn.query!==void 0&&(yn.query=sn.query?d.ResponseQuery.toJSON(sn.query):void 0),sn.beginBlock!==void 0&&(yn.beginBlock=sn.beginBlock?d.ResponseBeginBlock.toJSON(sn.beginBlock):void 0),sn.checkTx!==void 0&&(yn.checkTx=sn.checkTx?d.ResponseCheckTx.toJSON(sn.checkTx):void 0),sn.deliverTx!==void 0&&(yn.deliverTx=sn.deliverTx?d.ResponseDeliverTx.toJSON(sn.deliverTx):void 0),sn.endBlock!==void 0&&(yn.endBlock=sn.endBlock?d.ResponseEndBlock.toJSON(sn.endBlock):void 0),sn.commit!==void 0&&(yn.commit=sn.commit?d.ResponseCommit.toJSON(sn.commit):void 0),sn.listSnapshots!==void 0&&(yn.listSnapshots=sn.listSnapshots?d.ResponseListSnapshots.toJSON(sn.listSnapshots):void 0),sn.offerSnapshot!==void 0&&(yn.offerSnapshot=sn.offerSnapshot?d.ResponseOfferSnapshot.toJSON(sn.offerSnapshot):void 0),sn.loadSnapshotChunk!==void 0&&(yn.loadSnapshotChunk=sn.loadSnapshotChunk?d.ResponseLoadSnapshotChunk.toJSON(sn.loadSnapshotChunk):void 0),sn.applySnapshotChunk!==void 0&&(yn.applySnapshotChunk=sn.applySnapshotChunk?d.ResponseApplySnapshotChunk.toJSON(sn.applySnapshotChunk):void 0),sn.prepareProposal!==void 0&&(yn.prepareProposal=sn.prepareProposal?d.ResponsePrepareProposal.toJSON(sn.prepareProposal):void 0),sn.processProposal!==void 0&&(yn.processProposal=sn.processProposal?d.ResponseProcessProposal.toJSON(sn.processProposal):void 0),yn},fromPartial(sn){const yn=wr();return yn.exception=sn.exception!==void 0&&sn.exception!==null?d.ResponseException.fromPartial(sn.exception):void 0,yn.echo=sn.echo!==void 0&&sn.echo!==null?d.ResponseEcho.fromPartial(sn.echo):void 0,yn.flush=sn.flush!==void 0&&sn.flush!==null?d.ResponseFlush.fromPartial(sn.flush):void 0,yn.info=sn.info!==void 0&&sn.info!==null?d.ResponseInfo.fromPartial(sn.info):void 0,yn.initChain=sn.initChain!==void 0&&sn.initChain!==null?d.ResponseInitChain.fromPartial(sn.initChain):void 0,yn.query=sn.query!==void 0&&sn.query!==null?d.ResponseQuery.fromPartial(sn.query):void 0,yn.beginBlock=sn.beginBlock!==void 0&&sn.beginBlock!==null?d.ResponseBeginBlock.fromPartial(sn.beginBlock):void 0,yn.checkTx=sn.checkTx!==void 0&&sn.checkTx!==null?d.ResponseCheckTx.fromPartial(sn.checkTx):void 0,yn.deliverTx=sn.deliverTx!==void 0&&sn.deliverTx!==null?d.ResponseDeliverTx.fromPartial(sn.deliverTx):void 0,yn.endBlock=sn.endBlock!==void 0&&sn.endBlock!==null?d.ResponseEndBlock.fromPartial(sn.endBlock):void 0,yn.commit=sn.commit!==void 0&&sn.commit!==null?d.ResponseCommit.fromPartial(sn.commit):void 0,yn.listSnapshots=sn.listSnapshots!==void 0&&sn.listSnapshots!==null?d.ResponseListSnapshots.fromPartial(sn.listSnapshots):void 0,yn.offerSnapshot=sn.offerSnapshot!==void 0&&sn.offerSnapshot!==null?d.ResponseOfferSnapshot.fromPartial(sn.offerSnapshot):void 0,yn.loadSnapshotChunk=sn.loadSnapshotChunk!==void 0&&sn.loadSnapshotChunk!==null?d.ResponseLoadSnapshotChunk.fromPartial(sn.loadSnapshotChunk):void 0,yn.applySnapshotChunk=sn.applySnapshotChunk!==void 0&&sn.applySnapshotChunk!==null?d.ResponseApplySnapshotChunk.fromPartial(sn.applySnapshotChunk):void 0,yn.prepareProposal=sn.prepareProposal!==void 0&&sn.prepareProposal!==null?d.ResponsePrepareProposal.fromPartial(sn.prepareProposal):void 0,yn.processProposal=sn.processProposal!==void 0&&sn.processProposal!==null?d.ResponseProcessProposal.fromPartial(sn.processProposal):void 0,yn}};function nr(){return{error:""}}d.ResponseException={encode(sn,yn=Jt.Writer.create()){return sn.error!==""&&yn.uint32(10).string(sn.error),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=nr();for(;Pn.pos>>3){case 1:gr.error=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{error:(0,Pt.isSet)(sn.error)?String(sn.error):""}},toJSON(sn){const yn={};return sn.error!==void 0&&(yn.error=sn.error),yn},fromPartial(sn){const yn=nr();return yn.error=sn.error??"",yn}};function fr(){return{message:""}}d.ResponseEcho={encode(sn,yn=Jt.Writer.create()){return sn.message!==""&&yn.uint32(10).string(sn.message),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=fr();for(;Pn.pos>>3){case 1:gr.message=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{message:(0,Pt.isSet)(sn.message)?String(sn.message):""}},toJSON(sn){const yn={};return sn.message!==void 0&&(yn.message=sn.message),yn},fromPartial(sn){const yn=fr();return yn.message=sn.message??"",yn}};function xr(){return{}}d.ResponseFlush={encode(sn,yn=Jt.Writer.create()){return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=xr();for(;Pn.pos>>3){default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{}},toJSON(sn){return{}},fromPartial(sn){return xr()}};function zr(){return{data:"",version:"",appVersion:Pt.Long.UZERO,lastBlockHeight:Pt.Long.ZERO,lastBlockAppHash:new Uint8Array}}d.ResponseInfo={encode(sn,yn=Jt.Writer.create()){return sn.data!==""&&yn.uint32(10).string(sn.data),sn.version!==""&&yn.uint32(18).string(sn.version),sn.appVersion.isZero()||yn.uint32(24).uint64(sn.appVersion),sn.lastBlockHeight.isZero()||yn.uint32(32).int64(sn.lastBlockHeight),sn.lastBlockAppHash.length!==0&&yn.uint32(42).bytes(sn.lastBlockAppHash),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=zr();for(;Pn.pos>>3){case 1:gr.data=Pn.string();break;case 2:gr.version=Pn.string();break;case 3:gr.appVersion=Pn.uint64();break;case 4:gr.lastBlockHeight=Pn.int64();break;case 5:gr.lastBlockAppHash=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{data:(0,Pt.isSet)(sn.data)?String(sn.data):"",version:(0,Pt.isSet)(sn.version)?String(sn.version):"",appVersion:(0,Pt.isSet)(sn.appVersion)?Pt.Long.fromValue(sn.appVersion):Pt.Long.UZERO,lastBlockHeight:(0,Pt.isSet)(sn.lastBlockHeight)?Pt.Long.fromValue(sn.lastBlockHeight):Pt.Long.ZERO,lastBlockAppHash:(0,Pt.isSet)(sn.lastBlockAppHash)?(0,Pt.bytesFromBase64)(sn.lastBlockAppHash):new Uint8Array}},toJSON(sn){const yn={};return sn.data!==void 0&&(yn.data=sn.data),sn.version!==void 0&&(yn.version=sn.version),sn.appVersion!==void 0&&(yn.appVersion=(sn.appVersion||Pt.Long.UZERO).toString()),sn.lastBlockHeight!==void 0&&(yn.lastBlockHeight=(sn.lastBlockHeight||Pt.Long.ZERO).toString()),sn.lastBlockAppHash!==void 0&&(yn.lastBlockAppHash=(0,Pt.base64FromBytes)(sn.lastBlockAppHash!==void 0?sn.lastBlockAppHash:new Uint8Array)),yn},fromPartial(sn){const yn=zr();return yn.data=sn.data??"",yn.version=sn.version??"",yn.appVersion=sn.appVersion!==void 0&&sn.appVersion!==null?Pt.Long.fromValue(sn.appVersion):Pt.Long.UZERO,yn.lastBlockHeight=sn.lastBlockHeight!==void 0&&sn.lastBlockHeight!==null?Pt.Long.fromValue(sn.lastBlockHeight):Pt.Long.ZERO,yn.lastBlockAppHash=sn.lastBlockAppHash??new Uint8Array,yn}};function Jr(){return{consensusParams:void 0,validators:[],appHash:new Uint8Array}}d.ResponseInitChain={encode(sn,yn=Jt.Writer.create()){sn.consensusParams!==void 0&&ht.ConsensusParams.encode(sn.consensusParams,yn.uint32(10).fork()).ldelim();for(const Pn of sn.validators)d.ValidatorUpdate.encode(Pn,yn.uint32(18).fork()).ldelim();return sn.appHash.length!==0&&yn.uint32(26).bytes(sn.appHash),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Jr();for(;Pn.pos>>3){case 1:gr.consensusParams=ht.ConsensusParams.decode(Pn,Pn.uint32());break;case 2:gr.validators.push(d.ValidatorUpdate.decode(Pn,Pn.uint32()));break;case 3:gr.appHash=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{consensusParams:(0,Pt.isSet)(sn.consensusParams)?ht.ConsensusParams.fromJSON(sn.consensusParams):void 0,validators:Array.isArray(sn==null?void 0:sn.validators)?sn.validators.map(yn=>d.ValidatorUpdate.fromJSON(yn)):[],appHash:(0,Pt.isSet)(sn.appHash)?(0,Pt.bytesFromBase64)(sn.appHash):new Uint8Array}},toJSON(sn){const yn={};return sn.consensusParams!==void 0&&(yn.consensusParams=sn.consensusParams?ht.ConsensusParams.toJSON(sn.consensusParams):void 0),sn.validators?yn.validators=sn.validators.map(Pn=>Pn?d.ValidatorUpdate.toJSON(Pn):void 0):yn.validators=[],sn.appHash!==void 0&&(yn.appHash=(0,Pt.base64FromBytes)(sn.appHash!==void 0?sn.appHash:new Uint8Array)),yn},fromPartial(sn){var Pn;const yn=Jr();return yn.consensusParams=sn.consensusParams!==void 0&&sn.consensusParams!==null?ht.ConsensusParams.fromPartial(sn.consensusParams):void 0,yn.validators=((Pn=sn.validators)==null?void 0:Pn.map(Gr=>d.ValidatorUpdate.fromPartial(Gr)))||[],yn.appHash=sn.appHash??new Uint8Array,yn}};function ro(){return{code:0,log:"",info:"",index:Pt.Long.ZERO,key:new Uint8Array,value:new Uint8Array,proofOps:void 0,height:Pt.Long.ZERO,codespace:""}}d.ResponseQuery={encode(sn,yn=Jt.Writer.create()){return sn.code!==0&&yn.uint32(8).uint32(sn.code),sn.log!==""&&yn.uint32(26).string(sn.log),sn.info!==""&&yn.uint32(34).string(sn.info),sn.index.isZero()||yn.uint32(40).int64(sn.index),sn.key.length!==0&&yn.uint32(50).bytes(sn.key),sn.value.length!==0&&yn.uint32(58).bytes(sn.value),sn.proofOps!==void 0&&vt.ProofOps.encode(sn.proofOps,yn.uint32(66).fork()).ldelim(),sn.height.isZero()||yn.uint32(72).int64(sn.height),sn.codespace!==""&&yn.uint32(82).string(sn.codespace),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=ro();for(;Pn.pos>>3){case 1:gr.code=Pn.uint32();break;case 3:gr.log=Pn.string();break;case 4:gr.info=Pn.string();break;case 5:gr.index=Pn.int64();break;case 6:gr.key=Pn.bytes();break;case 7:gr.value=Pn.bytes();break;case 8:gr.proofOps=vt.ProofOps.decode(Pn,Pn.uint32());break;case 9:gr.height=Pn.int64();break;case 10:gr.codespace=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{code:(0,Pt.isSet)(sn.code)?Number(sn.code):0,log:(0,Pt.isSet)(sn.log)?String(sn.log):"",info:(0,Pt.isSet)(sn.info)?String(sn.info):"",index:(0,Pt.isSet)(sn.index)?Pt.Long.fromValue(sn.index):Pt.Long.ZERO,key:(0,Pt.isSet)(sn.key)?(0,Pt.bytesFromBase64)(sn.key):new Uint8Array,value:(0,Pt.isSet)(sn.value)?(0,Pt.bytesFromBase64)(sn.value):new Uint8Array,proofOps:(0,Pt.isSet)(sn.proofOps)?vt.ProofOps.fromJSON(sn.proofOps):void 0,height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,codespace:(0,Pt.isSet)(sn.codespace)?String(sn.codespace):""}},toJSON(sn){const yn={};return sn.code!==void 0&&(yn.code=Math.round(sn.code)),sn.log!==void 0&&(yn.log=sn.log),sn.info!==void 0&&(yn.info=sn.info),sn.index!==void 0&&(yn.index=(sn.index||Pt.Long.ZERO).toString()),sn.key!==void 0&&(yn.key=(0,Pt.base64FromBytes)(sn.key!==void 0?sn.key:new Uint8Array)),sn.value!==void 0&&(yn.value=(0,Pt.base64FromBytes)(sn.value!==void 0?sn.value:new Uint8Array)),sn.proofOps!==void 0&&(yn.proofOps=sn.proofOps?vt.ProofOps.toJSON(sn.proofOps):void 0),sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.ZERO).toString()),sn.codespace!==void 0&&(yn.codespace=sn.codespace),yn},fromPartial(sn){const yn=ro();return yn.code=sn.code??0,yn.log=sn.log??"",yn.info=sn.info??"",yn.index=sn.index!==void 0&&sn.index!==null?Pt.Long.fromValue(sn.index):Pt.Long.ZERO,yn.key=sn.key??new Uint8Array,yn.value=sn.value??new Uint8Array,yn.proofOps=sn.proofOps!==void 0&&sn.proofOps!==null?vt.ProofOps.fromPartial(sn.proofOps):void 0,yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,yn.codespace=sn.codespace??"",yn}};function xn(){return{events:[]}}d.ResponseBeginBlock={encode(sn,yn=Jt.Writer.create()){for(const Pn of sn.events)d.Event.encode(Pn,yn.uint32(10).fork()).ldelim();return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=xn();for(;Pn.pos>>3){case 1:gr.events.push(d.Event.decode(Pn,Pn.uint32()));break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{events:Array.isArray(sn==null?void 0:sn.events)?sn.events.map(yn=>d.Event.fromJSON(yn)):[]}},toJSON(sn){const yn={};return sn.events?yn.events=sn.events.map(Pn=>Pn?d.Event.toJSON(Pn):void 0):yn.events=[],yn},fromPartial(sn){var Pn;const yn=xn();return yn.events=((Pn=sn.events)==null?void 0:Pn.map(Gr=>d.Event.fromPartial(Gr)))||[],yn}};function _o(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:Pt.Long.ZERO,gasUsed:Pt.Long.ZERO,events:[],codespace:"",sender:"",priority:Pt.Long.ZERO,mempoolError:""}}d.ResponseCheckTx={encode(sn,yn=Jt.Writer.create()){sn.code!==0&&yn.uint32(8).uint32(sn.code),sn.data.length!==0&&yn.uint32(18).bytes(sn.data),sn.log!==""&&yn.uint32(26).string(sn.log),sn.info!==""&&yn.uint32(34).string(sn.info),sn.gasWanted.isZero()||yn.uint32(40).int64(sn.gasWanted),sn.gasUsed.isZero()||yn.uint32(48).int64(sn.gasUsed);for(const Pn of sn.events)d.Event.encode(Pn,yn.uint32(58).fork()).ldelim();return sn.codespace!==""&&yn.uint32(66).string(sn.codespace),sn.sender!==""&&yn.uint32(74).string(sn.sender),sn.priority.isZero()||yn.uint32(80).int64(sn.priority),sn.mempoolError!==""&&yn.uint32(90).string(sn.mempoolError),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=_o();for(;Pn.pos>>3){case 1:gr.code=Pn.uint32();break;case 2:gr.data=Pn.bytes();break;case 3:gr.log=Pn.string();break;case 4:gr.info=Pn.string();break;case 5:gr.gasWanted=Pn.int64();break;case 6:gr.gasUsed=Pn.int64();break;case 7:gr.events.push(d.Event.decode(Pn,Pn.uint32()));break;case 8:gr.codespace=Pn.string();break;case 9:gr.sender=Pn.string();break;case 10:gr.priority=Pn.int64();break;case 11:gr.mempoolError=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{code:(0,Pt.isSet)(sn.code)?Number(sn.code):0,data:(0,Pt.isSet)(sn.data)?(0,Pt.bytesFromBase64)(sn.data):new Uint8Array,log:(0,Pt.isSet)(sn.log)?String(sn.log):"",info:(0,Pt.isSet)(sn.info)?String(sn.info):"",gasWanted:(0,Pt.isSet)(sn.gas_wanted)?Pt.Long.fromValue(sn.gas_wanted):Pt.Long.ZERO,gasUsed:(0,Pt.isSet)(sn.gas_used)?Pt.Long.fromValue(sn.gas_used):Pt.Long.ZERO,events:Array.isArray(sn==null?void 0:sn.events)?sn.events.map(yn=>d.Event.fromJSON(yn)):[],codespace:(0,Pt.isSet)(sn.codespace)?String(sn.codespace):"",sender:(0,Pt.isSet)(sn.sender)?String(sn.sender):"",priority:(0,Pt.isSet)(sn.priority)?Pt.Long.fromValue(sn.priority):Pt.Long.ZERO,mempoolError:(0,Pt.isSet)(sn.mempoolError)?String(sn.mempoolError):""}},toJSON(sn){const yn={};return sn.code!==void 0&&(yn.code=Math.round(sn.code)),sn.data!==void 0&&(yn.data=(0,Pt.base64FromBytes)(sn.data!==void 0?sn.data:new Uint8Array)),sn.log!==void 0&&(yn.log=sn.log),sn.info!==void 0&&(yn.info=sn.info),sn.gasWanted!==void 0&&(yn.gas_wanted=(sn.gasWanted||Pt.Long.ZERO).toString()),sn.gasUsed!==void 0&&(yn.gas_used=(sn.gasUsed||Pt.Long.ZERO).toString()),sn.events?yn.events=sn.events.map(Pn=>Pn?d.Event.toJSON(Pn):void 0):yn.events=[],sn.codespace!==void 0&&(yn.codespace=sn.codespace),sn.sender!==void 0&&(yn.sender=sn.sender),sn.priority!==void 0&&(yn.priority=(sn.priority||Pt.Long.ZERO).toString()),sn.mempoolError!==void 0&&(yn.mempoolError=sn.mempoolError),yn},fromPartial(sn){var Pn;const yn=_o();return yn.code=sn.code??0,yn.data=sn.data??new Uint8Array,yn.log=sn.log??"",yn.info=sn.info??"",yn.gasWanted=sn.gasWanted!==void 0&&sn.gasWanted!==null?Pt.Long.fromValue(sn.gasWanted):Pt.Long.ZERO,yn.gasUsed=sn.gasUsed!==void 0&&sn.gasUsed!==null?Pt.Long.fromValue(sn.gasUsed):Pt.Long.ZERO,yn.events=((Pn=sn.events)==null?void 0:Pn.map(Gr=>d.Event.fromPartial(Gr)))||[],yn.codespace=sn.codespace??"",yn.sender=sn.sender??"",yn.priority=sn.priority!==void 0&&sn.priority!==null?Pt.Long.fromValue(sn.priority):Pt.Long.ZERO,yn.mempoolError=sn.mempoolError??"",yn}};function Mn(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:Pt.Long.ZERO,gasUsed:Pt.Long.ZERO,events:[],codespace:""}}d.ResponseDeliverTx={encode(sn,yn=Jt.Writer.create()){sn.code!==0&&yn.uint32(8).uint32(sn.code),sn.data.length!==0&&yn.uint32(18).bytes(sn.data),sn.log!==""&&yn.uint32(26).string(sn.log),sn.info!==""&&yn.uint32(34).string(sn.info),sn.gasWanted.isZero()||yn.uint32(40).int64(sn.gasWanted),sn.gasUsed.isZero()||yn.uint32(48).int64(sn.gasUsed);for(const Pn of sn.events)d.Event.encode(Pn,yn.uint32(58).fork()).ldelim();return sn.codespace!==""&&yn.uint32(66).string(sn.codespace),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Mn();for(;Pn.pos>>3){case 1:gr.code=Pn.uint32();break;case 2:gr.data=Pn.bytes();break;case 3:gr.log=Pn.string();break;case 4:gr.info=Pn.string();break;case 5:gr.gasWanted=Pn.int64();break;case 6:gr.gasUsed=Pn.int64();break;case 7:gr.events.push(d.Event.decode(Pn,Pn.uint32()));break;case 8:gr.codespace=Pn.string();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{code:(0,Pt.isSet)(sn.code)?Number(sn.code):0,data:(0,Pt.isSet)(sn.data)?(0,Pt.bytesFromBase64)(sn.data):new Uint8Array,log:(0,Pt.isSet)(sn.log)?String(sn.log):"",info:(0,Pt.isSet)(sn.info)?String(sn.info):"",gasWanted:(0,Pt.isSet)(sn.gas_wanted)?Pt.Long.fromValue(sn.gas_wanted):Pt.Long.ZERO,gasUsed:(0,Pt.isSet)(sn.gas_used)?Pt.Long.fromValue(sn.gas_used):Pt.Long.ZERO,events:Array.isArray(sn==null?void 0:sn.events)?sn.events.map(yn=>d.Event.fromJSON(yn)):[],codespace:(0,Pt.isSet)(sn.codespace)?String(sn.codespace):""}},toJSON(sn){const yn={};return sn.code!==void 0&&(yn.code=Math.round(sn.code)),sn.data!==void 0&&(yn.data=(0,Pt.base64FromBytes)(sn.data!==void 0?sn.data:new Uint8Array)),sn.log!==void 0&&(yn.log=sn.log),sn.info!==void 0&&(yn.info=sn.info),sn.gasWanted!==void 0&&(yn.gas_wanted=(sn.gasWanted||Pt.Long.ZERO).toString()),sn.gasUsed!==void 0&&(yn.gas_used=(sn.gasUsed||Pt.Long.ZERO).toString()),sn.events?yn.events=sn.events.map(Pn=>Pn?d.Event.toJSON(Pn):void 0):yn.events=[],sn.codespace!==void 0&&(yn.codespace=sn.codespace),yn},fromPartial(sn){var Pn;const yn=Mn();return yn.code=sn.code??0,yn.data=sn.data??new Uint8Array,yn.log=sn.log??"",yn.info=sn.info??"",yn.gasWanted=sn.gasWanted!==void 0&&sn.gasWanted!==null?Pt.Long.fromValue(sn.gasWanted):Pt.Long.ZERO,yn.gasUsed=sn.gasUsed!==void 0&&sn.gasUsed!==null?Pt.Long.fromValue(sn.gasUsed):Pt.Long.ZERO,yn.events=((Pn=sn.events)==null?void 0:Pn.map(Gr=>d.Event.fromPartial(Gr)))||[],yn.codespace=sn.codespace??"",yn}};function Zn(){return{validatorUpdates:[],consensusParamUpdates:void 0,events:[]}}d.ResponseEndBlock={encode(sn,yn=Jt.Writer.create()){for(const Pn of sn.validatorUpdates)d.ValidatorUpdate.encode(Pn,yn.uint32(10).fork()).ldelim();sn.consensusParamUpdates!==void 0&&ht.ConsensusParams.encode(sn.consensusParamUpdates,yn.uint32(18).fork()).ldelim();for(const Pn of sn.events)d.Event.encode(Pn,yn.uint32(26).fork()).ldelim();return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Zn();for(;Pn.pos>>3){case 1:gr.validatorUpdates.push(d.ValidatorUpdate.decode(Pn,Pn.uint32()));break;case 2:gr.consensusParamUpdates=ht.ConsensusParams.decode(Pn,Pn.uint32());break;case 3:gr.events.push(d.Event.decode(Pn,Pn.uint32()));break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{validatorUpdates:Array.isArray(sn==null?void 0:sn.validatorUpdates)?sn.validatorUpdates.map(yn=>d.ValidatorUpdate.fromJSON(yn)):[],consensusParamUpdates:(0,Pt.isSet)(sn.consensusParamUpdates)?ht.ConsensusParams.fromJSON(sn.consensusParamUpdates):void 0,events:Array.isArray(sn==null?void 0:sn.events)?sn.events.map(yn=>d.Event.fromJSON(yn)):[]}},toJSON(sn){const yn={};return sn.validatorUpdates?yn.validatorUpdates=sn.validatorUpdates.map(Pn=>Pn?d.ValidatorUpdate.toJSON(Pn):void 0):yn.validatorUpdates=[],sn.consensusParamUpdates!==void 0&&(yn.consensusParamUpdates=sn.consensusParamUpdates?ht.ConsensusParams.toJSON(sn.consensusParamUpdates):void 0),sn.events?yn.events=sn.events.map(Pn=>Pn?d.Event.toJSON(Pn):void 0):yn.events=[],yn},fromPartial(sn){var Pn,Gr;const yn=Zn();return yn.validatorUpdates=((Pn=sn.validatorUpdates)==null?void 0:Pn.map(gr=>d.ValidatorUpdate.fromPartial(gr)))||[],yn.consensusParamUpdates=sn.consensusParamUpdates!==void 0&&sn.consensusParamUpdates!==null?ht.ConsensusParams.fromPartial(sn.consensusParamUpdates):void 0,yn.events=((Gr=sn.events)==null?void 0:Gr.map(gr=>d.Event.fromPartial(gr)))||[],yn}};function rr(){return{data:new Uint8Array,retainHeight:Pt.Long.ZERO}}d.ResponseCommit={encode(sn,yn=Jt.Writer.create()){return sn.data.length!==0&&yn.uint32(18).bytes(sn.data),sn.retainHeight.isZero()||yn.uint32(24).int64(sn.retainHeight),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=rr();for(;Pn.pos>>3){case 2:gr.data=Pn.bytes();break;case 3:gr.retainHeight=Pn.int64();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{data:(0,Pt.isSet)(sn.data)?(0,Pt.bytesFromBase64)(sn.data):new Uint8Array,retainHeight:(0,Pt.isSet)(sn.retainHeight)?Pt.Long.fromValue(sn.retainHeight):Pt.Long.ZERO}},toJSON(sn){const yn={};return sn.data!==void 0&&(yn.data=(0,Pt.base64FromBytes)(sn.data!==void 0?sn.data:new Uint8Array)),sn.retainHeight!==void 0&&(yn.retainHeight=(sn.retainHeight||Pt.Long.ZERO).toString()),yn},fromPartial(sn){const yn=rr();return yn.data=sn.data??new Uint8Array,yn.retainHeight=sn.retainHeight!==void 0&&sn.retainHeight!==null?Pt.Long.fromValue(sn.retainHeight):Pt.Long.ZERO,yn}};function mr(){return{snapshots:[]}}d.ResponseListSnapshots={encode(sn,yn=Jt.Writer.create()){for(const Pn of sn.snapshots)d.Snapshot.encode(Pn,yn.uint32(10).fork()).ldelim();return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=mr();for(;Pn.pos>>3){case 1:gr.snapshots.push(d.Snapshot.decode(Pn,Pn.uint32()));break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{snapshots:Array.isArray(sn==null?void 0:sn.snapshots)?sn.snapshots.map(yn=>d.Snapshot.fromJSON(yn)):[]}},toJSON(sn){const yn={};return sn.snapshots?yn.snapshots=sn.snapshots.map(Pn=>Pn?d.Snapshot.toJSON(Pn):void 0):yn.snapshots=[],yn},fromPartial(sn){var Pn;const yn=mr();return yn.snapshots=((Pn=sn.snapshots)==null?void 0:Pn.map(Gr=>d.Snapshot.fromPartial(Gr)))||[],yn}};function pn(){return{result:0}}d.ResponseOfferSnapshot={encode(sn,yn=Jt.Writer.create()){return sn.result!==0&&yn.uint32(8).int32(sn.result),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=pn();for(;Pn.pos>>3){case 1:gr.result=Pn.int32();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{result:(0,Pt.isSet)(sn.result)?wt(sn.result):0}},toJSON(sn){const yn={};return sn.result!==void 0&&(yn.result=Nt(sn.result)),yn},fromPartial(sn){const yn=pn();return yn.result=sn.result??0,yn}};function Hr(){return{chunk:new Uint8Array}}d.ResponseLoadSnapshotChunk={encode(sn,yn=Jt.Writer.create()){return sn.chunk.length!==0&&yn.uint32(10).bytes(sn.chunk),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Hr();for(;Pn.pos>>3){case 1:gr.chunk=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{chunk:(0,Pt.isSet)(sn.chunk)?(0,Pt.bytesFromBase64)(sn.chunk):new Uint8Array}},toJSON(sn){const yn={};return sn.chunk!==void 0&&(yn.chunk=(0,Pt.base64FromBytes)(sn.chunk!==void 0?sn.chunk:new Uint8Array)),yn},fromPartial(sn){const yn=Hr();return yn.chunk=sn.chunk??new Uint8Array,yn}};function ao(){return{result:0,refetchChunks:[],rejectSenders:[]}}d.ResponseApplySnapshotChunk={encode(sn,yn=Jt.Writer.create()){sn.result!==0&&yn.uint32(8).int32(sn.result),yn.uint32(18).fork();for(const Pn of sn.refetchChunks)yn.uint32(Pn);yn.ldelim();for(const Pn of sn.rejectSenders)yn.uint32(26).string(Pn);return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=ao();for(;Pn.pos>>3){case 1:gr.result=Pn.int32();break;case 2:if((Wr&7)===2){const Zo=Pn.uint32()+Pn.pos;for(;Pn.posNumber(yn)):[],rejectSenders:Array.isArray(sn==null?void 0:sn.rejectSenders)?sn.rejectSenders.map(yn=>String(yn)):[]}},toJSON(sn){const yn={};return sn.result!==void 0&&(yn.result=Bt(sn.result)),sn.refetchChunks?yn.refetchChunks=sn.refetchChunks.map(Pn=>Math.round(Pn)):yn.refetchChunks=[],sn.rejectSenders?yn.rejectSenders=sn.rejectSenders.map(Pn=>Pn):yn.rejectSenders=[],yn},fromPartial(sn){var Pn,Gr;const yn=ao();return yn.result=sn.result??0,yn.refetchChunks=((Pn=sn.refetchChunks)==null?void 0:Pn.map(gr=>gr))||[],yn.rejectSenders=((Gr=sn.rejectSenders)==null?void 0:Gr.map(gr=>gr))||[],yn}};function No(){return{txs:[]}}d.ResponsePrepareProposal={encode(sn,yn=Jt.Writer.create()){for(const Pn of sn.txs)yn.uint32(10).bytes(Pn);return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=No();for(;Pn.pos>>3){case 1:gr.txs.push(Pn.bytes());break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{txs:Array.isArray(sn==null?void 0:sn.txs)?sn.txs.map(yn=>(0,Pt.bytesFromBase64)(yn)):[]}},toJSON(sn){const yn={};return sn.txs?yn.txs=sn.txs.map(Pn=>(0,Pt.base64FromBytes)(Pn!==void 0?Pn:new Uint8Array)):yn.txs=[],yn},fromPartial(sn){var Pn;const yn=No();return yn.txs=((Pn=sn.txs)==null?void 0:Pn.map(Gr=>Gr))||[],yn}};function Ro(){return{status:0}}d.ResponseProcessProposal={encode(sn,yn=Jt.Writer.create()){return sn.status!==0&&yn.uint32(8).int32(sn.status),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Ro();for(;Pn.pos>>3){case 1:gr.status=Pn.int32();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{status:(0,Pt.isSet)(sn.status)?Mt(sn.status):0}},toJSON(sn){const yn={};return sn.status!==void 0&&(yn.status=jt(sn.status)),yn},fromPartial(sn){const yn=Ro();return yn.status=sn.status??0,yn}};function br(){return{round:0,votes:[]}}d.CommitInfo={encode(sn,yn=Jt.Writer.create()){sn.round!==0&&yn.uint32(8).int32(sn.round);for(const Pn of sn.votes)d.VoteInfo.encode(Pn,yn.uint32(18).fork()).ldelim();return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=br();for(;Pn.pos>>3){case 1:gr.round=Pn.int32();break;case 2:gr.votes.push(d.VoteInfo.decode(Pn,Pn.uint32()));break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{round:(0,Pt.isSet)(sn.round)?Number(sn.round):0,votes:Array.isArray(sn==null?void 0:sn.votes)?sn.votes.map(yn=>d.VoteInfo.fromJSON(yn)):[]}},toJSON(sn){const yn={};return sn.round!==void 0&&(yn.round=Math.round(sn.round)),sn.votes?yn.votes=sn.votes.map(Pn=>Pn?d.VoteInfo.toJSON(Pn):void 0):yn.votes=[],yn},fromPartial(sn){var Pn;const yn=br();return yn.round=sn.round??0,yn.votes=((Pn=sn.votes)==null?void 0:Pn.map(Gr=>d.VoteInfo.fromPartial(Gr)))||[],yn}};function yr(){return{round:0,votes:[]}}d.ExtendedCommitInfo={encode(sn,yn=Jt.Writer.create()){sn.round!==0&&yn.uint32(8).int32(sn.round);for(const Pn of sn.votes)d.ExtendedVoteInfo.encode(Pn,yn.uint32(18).fork()).ldelim();return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=yr();for(;Pn.pos>>3){case 1:gr.round=Pn.int32();break;case 2:gr.votes.push(d.ExtendedVoteInfo.decode(Pn,Pn.uint32()));break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{round:(0,Pt.isSet)(sn.round)?Number(sn.round):0,votes:Array.isArray(sn==null?void 0:sn.votes)?sn.votes.map(yn=>d.ExtendedVoteInfo.fromJSON(yn)):[]}},toJSON(sn){const yn={};return sn.round!==void 0&&(yn.round=Math.round(sn.round)),sn.votes?yn.votes=sn.votes.map(Pn=>Pn?d.ExtendedVoteInfo.toJSON(Pn):void 0):yn.votes=[],yn},fromPartial(sn){var Pn;const yn=yr();return yn.round=sn.round??0,yn.votes=((Pn=sn.votes)==null?void 0:Pn.map(Gr=>d.ExtendedVoteInfo.fromPartial(Gr)))||[],yn}};function Qr(){return{type:"",attributes:[]}}d.Event={encode(sn,yn=Jt.Writer.create()){sn.type!==""&&yn.uint32(10).string(sn.type);for(const Pn of sn.attributes)d.EventAttribute.encode(Pn,yn.uint32(18).fork()).ldelim();return yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Qr();for(;Pn.pos>>3){case 1:gr.type=Pn.string();break;case 2:gr.attributes.push(d.EventAttribute.decode(Pn,Pn.uint32()));break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{type:(0,Pt.isSet)(sn.type)?String(sn.type):"",attributes:Array.isArray(sn==null?void 0:sn.attributes)?sn.attributes.map(yn=>d.EventAttribute.fromJSON(yn)):[]}},toJSON(sn){const yn={};return sn.type!==void 0&&(yn.type=sn.type),sn.attributes?yn.attributes=sn.attributes.map(Pn=>Pn?d.EventAttribute.toJSON(Pn):void 0):yn.attributes=[],yn},fromPartial(sn){var Pn;const yn=Qr();return yn.type=sn.type??"",yn.attributes=((Pn=sn.attributes)==null?void 0:Pn.map(Gr=>d.EventAttribute.fromPartial(Gr)))||[],yn}};function Vr(){return{key:"",value:"",index:!1}}d.EventAttribute={encode(sn,yn=Jt.Writer.create()){return sn.key!==""&&yn.uint32(10).string(sn.key),sn.value!==""&&yn.uint32(18).string(sn.value),sn.index===!0&&yn.uint32(24).bool(sn.index),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Vr();for(;Pn.pos>>3){case 1:gr.key=Pn.string();break;case 2:gr.value=Pn.string();break;case 3:gr.index=Pn.bool();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{key:(0,Pt.isSet)(sn.key)?String(sn.key):"",value:(0,Pt.isSet)(sn.value)?String(sn.value):"",index:(0,Pt.isSet)(sn.index)?!!sn.index:!1}},toJSON(sn){const yn={};return sn.key!==void 0&&(yn.key=sn.key),sn.value!==void 0&&(yn.value=sn.value),sn.index!==void 0&&(yn.index=sn.index),yn},fromPartial(sn){const yn=Vr();return yn.key=sn.key??"",yn.value=sn.value??"",yn.index=sn.index??!1,yn}};function oo(){return{height:Pt.Long.ZERO,index:0,tx:new Uint8Array,result:void 0}}d.TxResult={encode(sn,yn=Jt.Writer.create()){return sn.height.isZero()||yn.uint32(8).int64(sn.height),sn.index!==0&&yn.uint32(16).uint32(sn.index),sn.tx.length!==0&&yn.uint32(26).bytes(sn.tx),sn.result!==void 0&&d.ResponseDeliverTx.encode(sn.result,yn.uint32(34).fork()).ldelim(),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=oo();for(;Pn.pos>>3){case 1:gr.height=Pn.int64();break;case 2:gr.index=Pn.uint32();break;case 3:gr.tx=Pn.bytes();break;case 4:gr.result=d.ResponseDeliverTx.decode(Pn,Pn.uint32());break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,index:(0,Pt.isSet)(sn.index)?Number(sn.index):0,tx:(0,Pt.isSet)(sn.tx)?(0,Pt.bytesFromBase64)(sn.tx):new Uint8Array,result:(0,Pt.isSet)(sn.result)?d.ResponseDeliverTx.fromJSON(sn.result):void 0}},toJSON(sn){const yn={};return sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.ZERO).toString()),sn.index!==void 0&&(yn.index=Math.round(sn.index)),sn.tx!==void 0&&(yn.tx=(0,Pt.base64FromBytes)(sn.tx!==void 0?sn.tx:new Uint8Array)),sn.result!==void 0&&(yn.result=sn.result?d.ResponseDeliverTx.toJSON(sn.result):void 0),yn},fromPartial(sn){const yn=oo();return yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,yn.index=sn.index??0,yn.tx=sn.tx??new Uint8Array,yn.result=sn.result!==void 0&&sn.result!==null?d.ResponseDeliverTx.fromPartial(sn.result):void 0,yn}};function Lr(){return{address:new Uint8Array,power:Pt.Long.ZERO}}d.Validator={encode(sn,yn=Jt.Writer.create()){return sn.address.length!==0&&yn.uint32(10).bytes(sn.address),sn.power.isZero()||yn.uint32(24).int64(sn.power),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Lr();for(;Pn.pos>>3){case 1:gr.address=Pn.bytes();break;case 3:gr.power=Pn.int64();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{address:(0,Pt.isSet)(sn.address)?(0,Pt.bytesFromBase64)(sn.address):new Uint8Array,power:(0,Pt.isSet)(sn.power)?Pt.Long.fromValue(sn.power):Pt.Long.ZERO}},toJSON(sn){const yn={};return sn.address!==void 0&&(yn.address=(0,Pt.base64FromBytes)(sn.address!==void 0?sn.address:new Uint8Array)),sn.power!==void 0&&(yn.power=(sn.power||Pt.Long.ZERO).toString()),yn},fromPartial(sn){const yn=Lr();return yn.address=sn.address??new Uint8Array,yn.power=sn.power!==void 0&&sn.power!==null?Pt.Long.fromValue(sn.power):Pt.Long.ZERO,yn}};function po(){return{pubKey:void 0,power:Pt.Long.ZERO}}d.ValidatorUpdate={encode(sn,yn=Jt.Writer.create()){return sn.pubKey!==void 0&&kt.PublicKey.encode(sn.pubKey,yn.uint32(10).fork()).ldelim(),sn.power.isZero()||yn.uint32(16).int64(sn.power),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=po();for(;Pn.pos>>3){case 1:gr.pubKey=kt.PublicKey.decode(Pn,Pn.uint32());break;case 2:gr.power=Pn.int64();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{pubKey:(0,Pt.isSet)(sn.pubKey)?kt.PublicKey.fromJSON(sn.pubKey):void 0,power:(0,Pt.isSet)(sn.power)?Pt.Long.fromValue(sn.power):Pt.Long.ZERO}},toJSON(sn){const yn={};return sn.pubKey!==void 0&&(yn.pubKey=sn.pubKey?kt.PublicKey.toJSON(sn.pubKey):void 0),sn.power!==void 0&&(yn.power=(sn.power||Pt.Long.ZERO).toString()),yn},fromPartial(sn){const yn=po();return yn.pubKey=sn.pubKey!==void 0&&sn.pubKey!==null?kt.PublicKey.fromPartial(sn.pubKey):void 0,yn.power=sn.power!==void 0&&sn.power!==null?Pt.Long.fromValue(sn.power):Pt.Long.ZERO,yn}};function fo(){return{validator:void 0,signedLastBlock:!1}}d.VoteInfo={encode(sn,yn=Jt.Writer.create()){return sn.validator!==void 0&&d.Validator.encode(sn.validator,yn.uint32(10).fork()).ldelim(),sn.signedLastBlock===!0&&yn.uint32(16).bool(sn.signedLastBlock),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=fo();for(;Pn.pos>>3){case 1:gr.validator=d.Validator.decode(Pn,Pn.uint32());break;case 2:gr.signedLastBlock=Pn.bool();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{validator:(0,Pt.isSet)(sn.validator)?d.Validator.fromJSON(sn.validator):void 0,signedLastBlock:(0,Pt.isSet)(sn.signedLastBlock)?!!sn.signedLastBlock:!1}},toJSON(sn){const yn={};return sn.validator!==void 0&&(yn.validator=sn.validator?d.Validator.toJSON(sn.validator):void 0),sn.signedLastBlock!==void 0&&(yn.signedLastBlock=sn.signedLastBlock),yn},fromPartial(sn){const yn=fo();return yn.validator=sn.validator!==void 0&&sn.validator!==null?d.Validator.fromPartial(sn.validator):void 0,yn.signedLastBlock=sn.signedLastBlock??!1,yn}};function bo(){return{validator:void 0,signedLastBlock:!1,voteExtension:new Uint8Array}}d.ExtendedVoteInfo={encode(sn,yn=Jt.Writer.create()){return sn.validator!==void 0&&d.Validator.encode(sn.validator,yn.uint32(10).fork()).ldelim(),sn.signedLastBlock===!0&&yn.uint32(16).bool(sn.signedLastBlock),sn.voteExtension.length!==0&&yn.uint32(26).bytes(sn.voteExtension),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=bo();for(;Pn.pos>>3){case 1:gr.validator=d.Validator.decode(Pn,Pn.uint32());break;case 2:gr.signedLastBlock=Pn.bool();break;case 3:gr.voteExtension=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{validator:(0,Pt.isSet)(sn.validator)?d.Validator.fromJSON(sn.validator):void 0,signedLastBlock:(0,Pt.isSet)(sn.signedLastBlock)?!!sn.signedLastBlock:!1,voteExtension:(0,Pt.isSet)(sn.voteExtension)?(0,Pt.bytesFromBase64)(sn.voteExtension):new Uint8Array}},toJSON(sn){const yn={};return sn.validator!==void 0&&(yn.validator=sn.validator?d.Validator.toJSON(sn.validator):void 0),sn.signedLastBlock!==void 0&&(yn.signedLastBlock=sn.signedLastBlock),sn.voteExtension!==void 0&&(yn.voteExtension=(0,Pt.base64FromBytes)(sn.voteExtension!==void 0?sn.voteExtension:new Uint8Array)),yn},fromPartial(sn){const yn=bo();return yn.validator=sn.validator!==void 0&&sn.validator!==null?d.Validator.fromPartial(sn.validator):void 0,yn.signedLastBlock=sn.signedLastBlock??!1,yn.voteExtension=sn.voteExtension??new Uint8Array,yn}};function Lo(){return{type:0,validator:void 0,height:Pt.Long.ZERO,time:void 0,totalVotingPower:Pt.Long.ZERO}}d.Misbehavior={encode(sn,yn=Jt.Writer.create()){return sn.type!==0&&yn.uint32(8).int32(sn.type),sn.validator!==void 0&&d.Validator.encode(sn.validator,yn.uint32(18).fork()).ldelim(),sn.height.isZero()||yn.uint32(24).int64(sn.height),sn.time!==void 0&<.Timestamp.encode(sn.time,yn.uint32(34).fork()).ldelim(),sn.totalVotingPower.isZero()||yn.uint32(40).int64(sn.totalVotingPower),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Lo();for(;Pn.pos>>3){case 1:gr.type=Pn.int32();break;case 2:gr.validator=d.Validator.decode(Pn,Pn.uint32());break;case 3:gr.height=Pn.int64();break;case 4:gr.time=lt.Timestamp.decode(Pn,Pn.uint32());break;case 5:gr.totalVotingPower=Pn.int64();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{type:(0,Pt.isSet)(sn.type)?an(sn.type):0,validator:(0,Pt.isSet)(sn.validator)?d.Validator.fromJSON(sn.validator):void 0,height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,time:(0,Pt.isSet)(sn.time)?(0,Pt.fromJsonTimestamp)(sn.time):void 0,totalVotingPower:(0,Pt.isSet)(sn.totalVotingPower)?Pt.Long.fromValue(sn.totalVotingPower):Pt.Long.ZERO}},toJSON(sn){const yn={};return sn.type!==void 0&&(yn.type=yt(sn.type)),sn.validator!==void 0&&(yn.validator=sn.validator?d.Validator.toJSON(sn.validator):void 0),sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.ZERO).toString()),sn.time!==void 0&&(yn.time=(0,Pt.fromTimestamp)(sn.time).toISOString()),sn.totalVotingPower!==void 0&&(yn.totalVotingPower=(sn.totalVotingPower||Pt.Long.ZERO).toString()),yn},fromPartial(sn){const yn=Lo();return yn.type=sn.type??0,yn.validator=sn.validator!==void 0&&sn.validator!==null?d.Validator.fromPartial(sn.validator):void 0,yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.ZERO,yn.time=sn.time!==void 0&&sn.time!==null?lt.Timestamp.fromPartial(sn.time):void 0,yn.totalVotingPower=sn.totalVotingPower!==void 0&&sn.totalVotingPower!==null?Pt.Long.fromValue(sn.totalVotingPower):Pt.Long.ZERO,yn}};function Zr(){return{height:Pt.Long.UZERO,format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}d.Snapshot={encode(sn,yn=Jt.Writer.create()){return sn.height.isZero()||yn.uint32(8).uint64(sn.height),sn.format!==0&&yn.uint32(16).uint32(sn.format),sn.chunks!==0&&yn.uint32(24).uint32(sn.chunks),sn.hash.length!==0&&yn.uint32(34).bytes(sn.hash),sn.metadata.length!==0&&yn.uint32(42).bytes(sn.metadata),yn},decode(sn,yn){const Pn=sn instanceof Jt.Reader?sn:new Jt.Reader(sn);let Gr=yn===void 0?Pn.len:Pn.pos+yn;const gr=Zr();for(;Pn.pos>>3){case 1:gr.height=Pn.uint64();break;case 2:gr.format=Pn.uint32();break;case 3:gr.chunks=Pn.uint32();break;case 4:gr.hash=Pn.bytes();break;case 5:gr.metadata=Pn.bytes();break;default:Pn.skipType(Wr&7);break}}return gr},fromJSON(sn){return{height:(0,Pt.isSet)(sn.height)?Pt.Long.fromValue(sn.height):Pt.Long.UZERO,format:(0,Pt.isSet)(sn.format)?Number(sn.format):0,chunks:(0,Pt.isSet)(sn.chunks)?Number(sn.chunks):0,hash:(0,Pt.isSet)(sn.hash)?(0,Pt.bytesFromBase64)(sn.hash):new Uint8Array,metadata:(0,Pt.isSet)(sn.metadata)?(0,Pt.bytesFromBase64)(sn.metadata):new Uint8Array}},toJSON(sn){const yn={};return sn.height!==void 0&&(yn.height=(sn.height||Pt.Long.UZERO).toString()),sn.format!==void 0&&(yn.format=Math.round(sn.format)),sn.chunks!==void 0&&(yn.chunks=Math.round(sn.chunks)),sn.hash!==void 0&&(yn.hash=(0,Pt.base64FromBytes)(sn.hash!==void 0?sn.hash:new Uint8Array)),sn.metadata!==void 0&&(yn.metadata=(0,Pt.base64FromBytes)(sn.metadata!==void 0?sn.metadata:new Uint8Array)),yn},fromPartial(sn){const yn=Zr();return yn.height=sn.height!==void 0&&sn.height!==null?Pt.Long.fromValue(sn.height):Pt.Long.UZERO,yn.format=sn.format??0,yn.chunks=sn.chunks??0,yn.hash=sn.hash??new Uint8Array,yn.metadata=sn.metadata??new Uint8Array,yn}};class Tr{constructor(yn){this.rpc=yn,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this),this.PrepareProposal=this.PrepareProposal.bind(this),this.ProcessProposal=this.ProcessProposal.bind(this)}Echo(yn){const Pn=d.RequestEcho.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",Pn).then(gr=>d.ResponseEcho.decode(new Jt.Reader(gr)))}Flush(yn={}){const Pn=d.RequestFlush.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",Pn).then(gr=>d.ResponseFlush.decode(new Jt.Reader(gr)))}Info(yn){const Pn=d.RequestInfo.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",Pn).then(gr=>d.ResponseInfo.decode(new Jt.Reader(gr)))}DeliverTx(yn){const Pn=d.RequestDeliverTx.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",Pn).then(gr=>d.ResponseDeliverTx.decode(new Jt.Reader(gr)))}CheckTx(yn){const Pn=d.RequestCheckTx.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",Pn).then(gr=>d.ResponseCheckTx.decode(new Jt.Reader(gr)))}Query(yn){const Pn=d.RequestQuery.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",Pn).then(gr=>d.ResponseQuery.decode(new Jt.Reader(gr)))}Commit(yn={}){const Pn=d.RequestCommit.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",Pn).then(gr=>d.ResponseCommit.decode(new Jt.Reader(gr)))}InitChain(yn){const Pn=d.RequestInitChain.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",Pn).then(gr=>d.ResponseInitChain.decode(new Jt.Reader(gr)))}BeginBlock(yn){const Pn=d.RequestBeginBlock.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",Pn).then(gr=>d.ResponseBeginBlock.decode(new Jt.Reader(gr)))}EndBlock(yn){const Pn=d.RequestEndBlock.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",Pn).then(gr=>d.ResponseEndBlock.decode(new Jt.Reader(gr)))}ListSnapshots(yn={}){const Pn=d.RequestListSnapshots.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",Pn).then(gr=>d.ResponseListSnapshots.decode(new Jt.Reader(gr)))}OfferSnapshot(yn){const Pn=d.RequestOfferSnapshot.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",Pn).then(gr=>d.ResponseOfferSnapshot.decode(new Jt.Reader(gr)))}LoadSnapshotChunk(yn){const Pn=d.RequestLoadSnapshotChunk.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",Pn).then(gr=>d.ResponseLoadSnapshotChunk.decode(new Jt.Reader(gr)))}ApplySnapshotChunk(yn){const Pn=d.RequestApplySnapshotChunk.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",Pn).then(gr=>d.ResponseApplySnapshotChunk.decode(new Jt.Reader(gr)))}PrepareProposal(yn){const Pn=d.RequestPrepareProposal.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","PrepareProposal",Pn).then(gr=>d.ResponsePrepareProposal.decode(new Jt.Reader(gr)))}ProcessProposal(yn){const Pn=d.RequestProcessProposal.encode(yn).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ProcessProposal",Pn).then(gr=>d.ResponseProcessProposal.decode(new Jt.Reader(gr)))}}d.ABCIApplicationClientImpl=Tr})(types$d);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(tn,An,gn,Nn){Nn===void 0&&(Nn=gn);var wr=Object.getOwnPropertyDescriptor(An,gn);(!wr||("get"in wr?!An.__esModule:wr.writable||wr.configurable))&&(wr={enumerable:!0,get:function(){return An[gn]}}),Object.defineProperty(tn,Nn,wr)}:function(tn,An,gn,Nn){Nn===void 0&&(Nn=gn),tn[Nn]=An[gn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(tn,An){Object.defineProperty(tn,"default",{enumerable:!0,value:An})}:function(tn,An){tn.default=An}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(tn){if(tn&&tn.__esModule)return tn;var An={};if(tn!=null)for(var gn in tn)gn!=="default"&&Object.prototype.hasOwnProperty.call(tn,gn)&&b(An,tn,gn);return dt(An,tn),An};Object.defineProperty(d,"__esModule",{value:!0}),d.ValidatorUpdates=d.Pool=d.RedelegationResponse=d.RedelegationEntryResponse=d.DelegationResponse=d.Params=d.Redelegation=d.RedelegationEntry=d.UnbondingDelegationEntry=d.UnbondingDelegation=d.Delegation=d.DVVTriplets=d.DVVTriplet=d.DVPairs=d.DVPair=d.ValAddresses=d.Validator=d.Description=d.Commission=d.CommissionRates=d.HistoricalInfo=d.infractionToJSON=d.infractionFromJSON=d.Infraction=d.bondStatusToJSON=d.bondStatusFromJSON=d.BondStatus=d.protobufPackage=void 0;const lt=types$f,ht=timestamp$1,mt=any$1,vt=duration$1,kt=coin$3,Pt=types$d,Jt=helpers$1,Zt=ct(minimal$4);d.protobufPackage="cosmos.staking.v1beta1";var Rt;(function(tn){tn[tn.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",tn[tn.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",tn[tn.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",tn[tn.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",tn[tn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rt=d.BondStatus||(d.BondStatus={}));function nn(tn){switch(tn){case 0:case"BOND_STATUS_UNSPECIFIED":return Rt.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return Rt.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return Rt.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return Rt.BOND_STATUS_BONDED;case-1:case"UNRECOGNIZED":default:return Rt.UNRECOGNIZED}}d.bondStatusFromJSON=nn;function Qt(tn){switch(tn){case Rt.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case Rt.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case Rt.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case Rt.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";case Rt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.bondStatusToJSON=Qt;var wt;(function(tn){tn[tn.INFRACTION_UNSPECIFIED=0]="INFRACTION_UNSPECIFIED",tn[tn.INFRACTION_DOUBLE_SIGN=1]="INFRACTION_DOUBLE_SIGN",tn[tn.INFRACTION_DOWNTIME=2]="INFRACTION_DOWNTIME",tn[tn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wt=d.Infraction||(d.Infraction={}));function Nt(tn){switch(tn){case 0:case"INFRACTION_UNSPECIFIED":return wt.INFRACTION_UNSPECIFIED;case 1:case"INFRACTION_DOUBLE_SIGN":return wt.INFRACTION_DOUBLE_SIGN;case 2:case"INFRACTION_DOWNTIME":return wt.INFRACTION_DOWNTIME;case-1:case"UNRECOGNIZED":default:return wt.UNRECOGNIZED}}d.infractionFromJSON=Nt;function xt(tn){switch(tn){case wt.INFRACTION_UNSPECIFIED:return"INFRACTION_UNSPECIFIED";case wt.INFRACTION_DOUBLE_SIGN:return"INFRACTION_DOUBLE_SIGN";case wt.INFRACTION_DOWNTIME:return"INFRACTION_DOWNTIME";case wt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.infractionToJSON=xt;function Et(){return{header:void 0,valset:[]}}d.HistoricalInfo={encode(tn,An=Zt.Writer.create()){tn.header!==void 0&<.Header.encode(tn.header,An.uint32(10).fork()).ldelim();for(const gn of tn.valset)d.Validator.encode(gn,An.uint32(18).fork()).ldelim();return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Et();for(;gn.pos>>3){case 1:wr.header=lt.Header.decode(gn,gn.uint32());break;case 2:wr.valset.push(d.Validator.decode(gn,gn.uint32()));break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{header:(0,Jt.isSet)(tn.header)?lt.Header.fromJSON(tn.header):void 0,valset:Array.isArray(tn==null?void 0:tn.valset)?tn.valset.map(An=>d.Validator.fromJSON(An)):[]}},toJSON(tn){const An={};return tn.header!==void 0&&(An.header=tn.header?lt.Header.toJSON(tn.header):void 0),tn.valset?An.valset=tn.valset.map(gn=>gn?d.Validator.toJSON(gn):void 0):An.valset=[],An},fromPartial(tn){var gn;const An=Et();return An.header=tn.header!==void 0&&tn.header!==null?lt.Header.fromPartial(tn.header):void 0,An.valset=((gn=tn.valset)==null?void 0:gn.map(Nn=>d.Validator.fromPartial(Nn)))||[],An}};function Bt(){return{rate:"",maxRate:"",maxChangeRate:""}}d.CommissionRates={encode(tn,An=Zt.Writer.create()){return tn.rate!==""&&An.uint32(10).string(tn.rate),tn.maxRate!==""&&An.uint32(18).string(tn.maxRate),tn.maxChangeRate!==""&&An.uint32(26).string(tn.maxChangeRate),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Bt();for(;gn.pos>>3){case 1:wr.rate=gn.string();break;case 2:wr.maxRate=gn.string();break;case 3:wr.maxChangeRate=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{rate:(0,Jt.isSet)(tn.rate)?String(tn.rate):"",maxRate:(0,Jt.isSet)(tn.maxRate)?String(tn.maxRate):"",maxChangeRate:(0,Jt.isSet)(tn.maxChangeRate)?String(tn.maxChangeRate):""}},toJSON(tn){const An={};return tn.rate!==void 0&&(An.rate=tn.rate),tn.maxRate!==void 0&&(An.maxRate=tn.maxRate),tn.maxChangeRate!==void 0&&(An.maxChangeRate=tn.maxChangeRate),An},fromPartial(tn){const An=Bt();return An.rate=tn.rate??"",An.maxRate=tn.maxRate??"",An.maxChangeRate=tn.maxChangeRate??"",An}};function Tt(){return{commissionRates:void 0,updateTime:void 0}}d.Commission={encode(tn,An=Zt.Writer.create()){return tn.commissionRates!==void 0&&d.CommissionRates.encode(tn.commissionRates,An.uint32(10).fork()).ldelim(),tn.updateTime!==void 0&&ht.Timestamp.encode(tn.updateTime,An.uint32(18).fork()).ldelim(),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Tt();for(;gn.pos>>3){case 1:wr.commissionRates=d.CommissionRates.decode(gn,gn.uint32());break;case 2:wr.updateTime=ht.Timestamp.decode(gn,gn.uint32());break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{commissionRates:(0,Jt.isSet)(tn.commissionRates)?d.CommissionRates.fromJSON(tn.commissionRates):void 0,updateTime:(0,Jt.isSet)(tn.updateTime)?(0,Jt.fromJsonTimestamp)(tn.updateTime):void 0}},toJSON(tn){const An={};return tn.commissionRates!==void 0&&(An.commissionRates=tn.commissionRates?d.CommissionRates.toJSON(tn.commissionRates):void 0),tn.updateTime!==void 0&&(An.updateTime=(0,Jt.fromTimestamp)(tn.updateTime).toISOString()),An},fromPartial(tn){const An=Tt();return An.commissionRates=tn.commissionRates!==void 0&&tn.commissionRates!==null?d.CommissionRates.fromPartial(tn.commissionRates):void 0,An.updateTime=tn.updateTime!==void 0&&tn.updateTime!==null?ht.Timestamp.fromPartial(tn.updateTime):void 0,An}};function Mt(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}d.Description={encode(tn,An=Zt.Writer.create()){return tn.moniker!==""&&An.uint32(10).string(tn.moniker),tn.identity!==""&&An.uint32(18).string(tn.identity),tn.website!==""&&An.uint32(26).string(tn.website),tn.securityContact!==""&&An.uint32(34).string(tn.securityContact),tn.details!==""&&An.uint32(42).string(tn.details),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Mt();for(;gn.pos>>3){case 1:wr.moniker=gn.string();break;case 2:wr.identity=gn.string();break;case 3:wr.website=gn.string();break;case 4:wr.securityContact=gn.string();break;case 5:wr.details=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{moniker:(0,Jt.isSet)(tn.moniker)?String(tn.moniker):"",identity:(0,Jt.isSet)(tn.identity)?String(tn.identity):"",website:(0,Jt.isSet)(tn.website)?String(tn.website):"",securityContact:(0,Jt.isSet)(tn.securityContact)?String(tn.securityContact):"",details:(0,Jt.isSet)(tn.details)?String(tn.details):""}},toJSON(tn){const An={};return tn.moniker!==void 0&&(An.moniker=tn.moniker),tn.identity!==void 0&&(An.identity=tn.identity),tn.website!==void 0&&(An.website=tn.website),tn.securityContact!==void 0&&(An.securityContact=tn.securityContact),tn.details!==void 0&&(An.details=tn.details),An},fromPartial(tn){const An=Mt();return An.moniker=tn.moniker??"",An.identity=tn.identity??"",An.website=tn.website??"",An.securityContact=tn.securityContact??"",An.details=tn.details??"",An}};function jt(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:void 0,unbondingHeight:Jt.Long.ZERO,unbondingTime:void 0,commission:void 0,minSelfDelegation:"",unbondingOnHoldRefCount:Jt.Long.ZERO,unbondingIds:[]}}d.Validator={encode(tn,An=Zt.Writer.create()){tn.operatorAddress!==""&&An.uint32(10).string(tn.operatorAddress),tn.consensusPubkey!==void 0&&mt.Any.encode(tn.consensusPubkey,An.uint32(18).fork()).ldelim(),tn.jailed===!0&&An.uint32(24).bool(tn.jailed),tn.status!==0&&An.uint32(32).int32(tn.status),tn.tokens!==""&&An.uint32(42).string(tn.tokens),tn.delegatorShares!==""&&An.uint32(50).string(tn.delegatorShares),tn.description!==void 0&&d.Description.encode(tn.description,An.uint32(58).fork()).ldelim(),tn.unbondingHeight.isZero()||An.uint32(64).int64(tn.unbondingHeight),tn.unbondingTime!==void 0&&ht.Timestamp.encode(tn.unbondingTime,An.uint32(74).fork()).ldelim(),tn.commission!==void 0&&d.Commission.encode(tn.commission,An.uint32(82).fork()).ldelim(),tn.minSelfDelegation!==""&&An.uint32(90).string(tn.minSelfDelegation),tn.unbondingOnHoldRefCount.isZero()||An.uint32(96).int64(tn.unbondingOnHoldRefCount),An.uint32(106).fork();for(const gn of tn.unbondingIds)An.uint64(gn);return An.ldelim(),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=jt();for(;gn.pos>>3){case 1:wr.operatorAddress=gn.string();break;case 2:wr.consensusPubkey=mt.Any.decode(gn,gn.uint32());break;case 3:wr.jailed=gn.bool();break;case 4:wr.status=gn.int32();break;case 5:wr.tokens=gn.string();break;case 6:wr.delegatorShares=gn.string();break;case 7:wr.description=d.Description.decode(gn,gn.uint32());break;case 8:wr.unbondingHeight=gn.int64();break;case 9:wr.unbondingTime=ht.Timestamp.decode(gn,gn.uint32());break;case 10:wr.commission=d.Commission.decode(gn,gn.uint32());break;case 11:wr.minSelfDelegation=gn.string();break;case 12:wr.unbondingOnHoldRefCount=gn.int64();break;case 13:if((nr&7)===2){const fr=gn.uint32()+gn.pos;for(;gn.posJt.Long.fromValue(An)):[]}},toJSON(tn){const An={};return tn.operatorAddress!==void 0&&(An.operatorAddress=tn.operatorAddress),tn.consensusPubkey!==void 0&&(An.consensusPubkey=tn.consensusPubkey?mt.Any.toJSON(tn.consensusPubkey):void 0),tn.jailed!==void 0&&(An.jailed=tn.jailed),tn.status!==void 0&&(An.status=Qt(tn.status)),tn.tokens!==void 0&&(An.tokens=tn.tokens),tn.delegatorShares!==void 0&&(An.delegatorShares=tn.delegatorShares),tn.description!==void 0&&(An.description=tn.description?d.Description.toJSON(tn.description):void 0),tn.unbondingHeight!==void 0&&(An.unbondingHeight=(tn.unbondingHeight||Jt.Long.ZERO).toString()),tn.unbondingTime!==void 0&&(An.unbondingTime=(0,Jt.fromTimestamp)(tn.unbondingTime).toISOString()),tn.commission!==void 0&&(An.commission=tn.commission?d.Commission.toJSON(tn.commission):void 0),tn.minSelfDelegation!==void 0&&(An.minSelfDelegation=tn.minSelfDelegation),tn.unbondingOnHoldRefCount!==void 0&&(An.unbondingOnHoldRefCount=(tn.unbondingOnHoldRefCount||Jt.Long.ZERO).toString()),tn.unbondingIds?An.unbondingIds=tn.unbondingIds.map(gn=>(gn||Jt.Long.UZERO).toString()):An.unbondingIds=[],An},fromPartial(tn){var gn;const An=jt();return An.operatorAddress=tn.operatorAddress??"",An.consensusPubkey=tn.consensusPubkey!==void 0&&tn.consensusPubkey!==null?mt.Any.fromPartial(tn.consensusPubkey):void 0,An.jailed=tn.jailed??!1,An.status=tn.status??0,An.tokens=tn.tokens??"",An.delegatorShares=tn.delegatorShares??"",An.description=tn.description!==void 0&&tn.description!==null?d.Description.fromPartial(tn.description):void 0,An.unbondingHeight=tn.unbondingHeight!==void 0&&tn.unbondingHeight!==null?Jt.Long.fromValue(tn.unbondingHeight):Jt.Long.ZERO,An.unbondingTime=tn.unbondingTime!==void 0&&tn.unbondingTime!==null?ht.Timestamp.fromPartial(tn.unbondingTime):void 0,An.commission=tn.commission!==void 0&&tn.commission!==null?d.Commission.fromPartial(tn.commission):void 0,An.minSelfDelegation=tn.minSelfDelegation??"",An.unbondingOnHoldRefCount=tn.unbondingOnHoldRefCount!==void 0&&tn.unbondingOnHoldRefCount!==null?Jt.Long.fromValue(tn.unbondingOnHoldRefCount):Jt.Long.ZERO,An.unbondingIds=((gn=tn.unbondingIds)==null?void 0:gn.map(Nn=>Jt.Long.fromValue(Nn)))||[],An}};function Ht(){return{addresses:[]}}d.ValAddresses={encode(tn,An=Zt.Writer.create()){for(const gn of tn.addresses)An.uint32(10).string(gn);return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Ht();for(;gn.pos>>3){case 1:wr.addresses.push(gn.string());break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{addresses:Array.isArray(tn==null?void 0:tn.addresses)?tn.addresses.map(An=>String(An)):[]}},toJSON(tn){const An={};return tn.addresses?An.addresses=tn.addresses.map(gn=>gn):An.addresses=[],An},fromPartial(tn){var gn;const An=Ht();return An.addresses=((gn=tn.addresses)==null?void 0:gn.map(Nn=>Nn))||[],An}};function an(){return{delegatorAddress:"",validatorAddress:""}}d.DVPair={encode(tn,An=Zt.Writer.create()){return tn.delegatorAddress!==""&&An.uint32(10).string(tn.delegatorAddress),tn.validatorAddress!==""&&An.uint32(18).string(tn.validatorAddress),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=an();for(;gn.pos>>3){case 1:wr.delegatorAddress=gn.string();break;case 2:wr.validatorAddress=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{delegatorAddress:(0,Jt.isSet)(tn.delegatorAddress)?String(tn.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(tn.validatorAddress)?String(tn.validatorAddress):""}},toJSON(tn){const An={};return tn.delegatorAddress!==void 0&&(An.delegatorAddress=tn.delegatorAddress),tn.validatorAddress!==void 0&&(An.validatorAddress=tn.validatorAddress),An},fromPartial(tn){const An=an();return An.delegatorAddress=tn.delegatorAddress??"",An.validatorAddress=tn.validatorAddress??"",An}};function yt(){return{pairs:[]}}d.DVPairs={encode(tn,An=Zt.Writer.create()){for(const gn of tn.pairs)d.DVPair.encode(gn,An.uint32(10).fork()).ldelim();return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=yt();for(;gn.pos>>3){case 1:wr.pairs.push(d.DVPair.decode(gn,gn.uint32()));break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{pairs:Array.isArray(tn==null?void 0:tn.pairs)?tn.pairs.map(An=>d.DVPair.fromJSON(An)):[]}},toJSON(tn){const An={};return tn.pairs?An.pairs=tn.pairs.map(gn=>gn?d.DVPair.toJSON(gn):void 0):An.pairs=[],An},fromPartial(tn){var gn;const An=yt();return An.pairs=((gn=tn.pairs)==null?void 0:gn.map(Nn=>d.DVPair.fromPartial(Nn)))||[],An}};function $t(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}d.DVVTriplet={encode(tn,An=Zt.Writer.create()){return tn.delegatorAddress!==""&&An.uint32(10).string(tn.delegatorAddress),tn.validatorSrcAddress!==""&&An.uint32(18).string(tn.validatorSrcAddress),tn.validatorDstAddress!==""&&An.uint32(26).string(tn.validatorDstAddress),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=$t();for(;gn.pos>>3){case 1:wr.delegatorAddress=gn.string();break;case 2:wr.validatorSrcAddress=gn.string();break;case 3:wr.validatorDstAddress=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{delegatorAddress:(0,Jt.isSet)(tn.delegatorAddress)?String(tn.delegatorAddress):"",validatorSrcAddress:(0,Jt.isSet)(tn.validatorSrcAddress)?String(tn.validatorSrcAddress):"",validatorDstAddress:(0,Jt.isSet)(tn.validatorDstAddress)?String(tn.validatorDstAddress):""}},toJSON(tn){const An={};return tn.delegatorAddress!==void 0&&(An.delegatorAddress=tn.delegatorAddress),tn.validatorSrcAddress!==void 0&&(An.validatorSrcAddress=tn.validatorSrcAddress),tn.validatorDstAddress!==void 0&&(An.validatorDstAddress=tn.validatorDstAddress),An},fromPartial(tn){const An=$t();return An.delegatorAddress=tn.delegatorAddress??"",An.validatorSrcAddress=tn.validatorSrcAddress??"",An.validatorDstAddress=tn.validatorDstAddress??"",An}};function Yt(){return{triplets:[]}}d.DVVTriplets={encode(tn,An=Zt.Writer.create()){for(const gn of tn.triplets)d.DVVTriplet.encode(gn,An.uint32(10).fork()).ldelim();return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Yt();for(;gn.pos>>3){case 1:wr.triplets.push(d.DVVTriplet.decode(gn,gn.uint32()));break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{triplets:Array.isArray(tn==null?void 0:tn.triplets)?tn.triplets.map(An=>d.DVVTriplet.fromJSON(An)):[]}},toJSON(tn){const An={};return tn.triplets?An.triplets=tn.triplets.map(gn=>gn?d.DVVTriplet.toJSON(gn):void 0):An.triplets=[],An},fromPartial(tn){var gn;const An=Yt();return An.triplets=((gn=tn.triplets)==null?void 0:gn.map(Nn=>d.DVVTriplet.fromPartial(Nn)))||[],An}};function Kt(){return{delegatorAddress:"",validatorAddress:"",shares:""}}d.Delegation={encode(tn,An=Zt.Writer.create()){return tn.delegatorAddress!==""&&An.uint32(10).string(tn.delegatorAddress),tn.validatorAddress!==""&&An.uint32(18).string(tn.validatorAddress),tn.shares!==""&&An.uint32(26).string(tn.shares),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Kt();for(;gn.pos>>3){case 1:wr.delegatorAddress=gn.string();break;case 2:wr.validatorAddress=gn.string();break;case 3:wr.shares=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{delegatorAddress:(0,Jt.isSet)(tn.delegatorAddress)?String(tn.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(tn.validatorAddress)?String(tn.validatorAddress):"",shares:(0,Jt.isSet)(tn.shares)?String(tn.shares):""}},toJSON(tn){const An={};return tn.delegatorAddress!==void 0&&(An.delegatorAddress=tn.delegatorAddress),tn.validatorAddress!==void 0&&(An.validatorAddress=tn.validatorAddress),tn.shares!==void 0&&(An.shares=tn.shares),An},fromPartial(tn){const An=Kt();return An.delegatorAddress=tn.delegatorAddress??"",An.validatorAddress=tn.validatorAddress??"",An.shares=tn.shares??"",An}};function St(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}d.UnbondingDelegation={encode(tn,An=Zt.Writer.create()){tn.delegatorAddress!==""&&An.uint32(10).string(tn.delegatorAddress),tn.validatorAddress!==""&&An.uint32(18).string(tn.validatorAddress);for(const gn of tn.entries)d.UnbondingDelegationEntry.encode(gn,An.uint32(26).fork()).ldelim();return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=St();for(;gn.pos>>3){case 1:wr.delegatorAddress=gn.string();break;case 2:wr.validatorAddress=gn.string();break;case 3:wr.entries.push(d.UnbondingDelegationEntry.decode(gn,gn.uint32()));break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{delegatorAddress:(0,Jt.isSet)(tn.delegatorAddress)?String(tn.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(tn.validatorAddress)?String(tn.validatorAddress):"",entries:Array.isArray(tn==null?void 0:tn.entries)?tn.entries.map(An=>d.UnbondingDelegationEntry.fromJSON(An)):[]}},toJSON(tn){const An={};return tn.delegatorAddress!==void 0&&(An.delegatorAddress=tn.delegatorAddress),tn.validatorAddress!==void 0&&(An.validatorAddress=tn.validatorAddress),tn.entries?An.entries=tn.entries.map(gn=>gn?d.UnbondingDelegationEntry.toJSON(gn):void 0):An.entries=[],An},fromPartial(tn){var gn;const An=St();return An.delegatorAddress=tn.delegatorAddress??"",An.validatorAddress=tn.validatorAddress??"",An.entries=((gn=tn.entries)==null?void 0:gn.map(Nn=>d.UnbondingDelegationEntry.fromPartial(Nn)))||[],An}};function It(){return{creationHeight:Jt.Long.ZERO,completionTime:void 0,initialBalance:"",balance:"",unbondingId:Jt.Long.UZERO,unbondingOnHoldRefCount:Jt.Long.ZERO}}d.UnbondingDelegationEntry={encode(tn,An=Zt.Writer.create()){return tn.creationHeight.isZero()||An.uint32(8).int64(tn.creationHeight),tn.completionTime!==void 0&&ht.Timestamp.encode(tn.completionTime,An.uint32(18).fork()).ldelim(),tn.initialBalance!==""&&An.uint32(26).string(tn.initialBalance),tn.balance!==""&&An.uint32(34).string(tn.balance),tn.unbondingId.isZero()||An.uint32(40).uint64(tn.unbondingId),tn.unbondingOnHoldRefCount.isZero()||An.uint32(48).int64(tn.unbondingOnHoldRefCount),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=It();for(;gn.pos>>3){case 1:wr.creationHeight=gn.int64();break;case 2:wr.completionTime=ht.Timestamp.decode(gn,gn.uint32());break;case 3:wr.initialBalance=gn.string();break;case 4:wr.balance=gn.string();break;case 5:wr.unbondingId=gn.uint64();break;case 6:wr.unbondingOnHoldRefCount=gn.int64();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{creationHeight:(0,Jt.isSet)(tn.creationHeight)?Jt.Long.fromValue(tn.creationHeight):Jt.Long.ZERO,completionTime:(0,Jt.isSet)(tn.completionTime)?(0,Jt.fromJsonTimestamp)(tn.completionTime):void 0,initialBalance:(0,Jt.isSet)(tn.initialBalance)?String(tn.initialBalance):"",balance:(0,Jt.isSet)(tn.balance)?String(tn.balance):"",unbondingId:(0,Jt.isSet)(tn.unbondingId)?Jt.Long.fromValue(tn.unbondingId):Jt.Long.UZERO,unbondingOnHoldRefCount:(0,Jt.isSet)(tn.unbondingOnHoldRefCount)?Jt.Long.fromValue(tn.unbondingOnHoldRefCount):Jt.Long.ZERO}},toJSON(tn){const An={};return tn.creationHeight!==void 0&&(An.creationHeight=(tn.creationHeight||Jt.Long.ZERO).toString()),tn.completionTime!==void 0&&(An.completionTime=(0,Jt.fromTimestamp)(tn.completionTime).toISOString()),tn.initialBalance!==void 0&&(An.initialBalance=tn.initialBalance),tn.balance!==void 0&&(An.balance=tn.balance),tn.unbondingId!==void 0&&(An.unbondingId=(tn.unbondingId||Jt.Long.UZERO).toString()),tn.unbondingOnHoldRefCount!==void 0&&(An.unbondingOnHoldRefCount=(tn.unbondingOnHoldRefCount||Jt.Long.ZERO).toString()),An},fromPartial(tn){const An=It();return An.creationHeight=tn.creationHeight!==void 0&&tn.creationHeight!==null?Jt.Long.fromValue(tn.creationHeight):Jt.Long.ZERO,An.completionTime=tn.completionTime!==void 0&&tn.completionTime!==null?ht.Timestamp.fromPartial(tn.completionTime):void 0,An.initialBalance=tn.initialBalance??"",An.balance=tn.balance??"",An.unbondingId=tn.unbondingId!==void 0&&tn.unbondingId!==null?Jt.Long.fromValue(tn.unbondingId):Jt.Long.UZERO,An.unbondingOnHoldRefCount=tn.unbondingOnHoldRefCount!==void 0&&tn.unbondingOnHoldRefCount!==null?Jt.Long.fromValue(tn.unbondingOnHoldRefCount):Jt.Long.ZERO,An}};function Gt(){return{creationHeight:Jt.Long.ZERO,completionTime:void 0,initialBalance:"",sharesDst:"",unbondingId:Jt.Long.UZERO,unbondingOnHoldRefCount:Jt.Long.ZERO}}d.RedelegationEntry={encode(tn,An=Zt.Writer.create()){return tn.creationHeight.isZero()||An.uint32(8).int64(tn.creationHeight),tn.completionTime!==void 0&&ht.Timestamp.encode(tn.completionTime,An.uint32(18).fork()).ldelim(),tn.initialBalance!==""&&An.uint32(26).string(tn.initialBalance),tn.sharesDst!==""&&An.uint32(34).string(tn.sharesDst),tn.unbondingId.isZero()||An.uint32(40).uint64(tn.unbondingId),tn.unbondingOnHoldRefCount.isZero()||An.uint32(48).int64(tn.unbondingOnHoldRefCount),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Gt();for(;gn.pos>>3){case 1:wr.creationHeight=gn.int64();break;case 2:wr.completionTime=ht.Timestamp.decode(gn,gn.uint32());break;case 3:wr.initialBalance=gn.string();break;case 4:wr.sharesDst=gn.string();break;case 5:wr.unbondingId=gn.uint64();break;case 6:wr.unbondingOnHoldRefCount=gn.int64();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{creationHeight:(0,Jt.isSet)(tn.creationHeight)?Jt.Long.fromValue(tn.creationHeight):Jt.Long.ZERO,completionTime:(0,Jt.isSet)(tn.completionTime)?(0,Jt.fromJsonTimestamp)(tn.completionTime):void 0,initialBalance:(0,Jt.isSet)(tn.initialBalance)?String(tn.initialBalance):"",sharesDst:(0,Jt.isSet)(tn.sharesDst)?String(tn.sharesDst):"",unbondingId:(0,Jt.isSet)(tn.unbondingId)?Jt.Long.fromValue(tn.unbondingId):Jt.Long.UZERO,unbondingOnHoldRefCount:(0,Jt.isSet)(tn.unbondingOnHoldRefCount)?Jt.Long.fromValue(tn.unbondingOnHoldRefCount):Jt.Long.ZERO}},toJSON(tn){const An={};return tn.creationHeight!==void 0&&(An.creationHeight=(tn.creationHeight||Jt.Long.ZERO).toString()),tn.completionTime!==void 0&&(An.completionTime=(0,Jt.fromTimestamp)(tn.completionTime).toISOString()),tn.initialBalance!==void 0&&(An.initialBalance=tn.initialBalance),tn.sharesDst!==void 0&&(An.sharesDst=tn.sharesDst),tn.unbondingId!==void 0&&(An.unbondingId=(tn.unbondingId||Jt.Long.UZERO).toString()),tn.unbondingOnHoldRefCount!==void 0&&(An.unbondingOnHoldRefCount=(tn.unbondingOnHoldRefCount||Jt.Long.ZERO).toString()),An},fromPartial(tn){const An=Gt();return An.creationHeight=tn.creationHeight!==void 0&&tn.creationHeight!==null?Jt.Long.fromValue(tn.creationHeight):Jt.Long.ZERO,An.completionTime=tn.completionTime!==void 0&&tn.completionTime!==null?ht.Timestamp.fromPartial(tn.completionTime):void 0,An.initialBalance=tn.initialBalance??"",An.sharesDst=tn.sharesDst??"",An.unbondingId=tn.unbondingId!==void 0&&tn.unbondingId!==null?Jt.Long.fromValue(tn.unbondingId):Jt.Long.UZERO,An.unbondingOnHoldRefCount=tn.unbondingOnHoldRefCount!==void 0&&tn.unbondingOnHoldRefCount!==null?Jt.Long.fromValue(tn.unbondingOnHoldRefCount):Jt.Long.ZERO,An}};function Ut(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}d.Redelegation={encode(tn,An=Zt.Writer.create()){tn.delegatorAddress!==""&&An.uint32(10).string(tn.delegatorAddress),tn.validatorSrcAddress!==""&&An.uint32(18).string(tn.validatorSrcAddress),tn.validatorDstAddress!==""&&An.uint32(26).string(tn.validatorDstAddress);for(const gn of tn.entries)d.RedelegationEntry.encode(gn,An.uint32(34).fork()).ldelim();return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Ut();for(;gn.pos>>3){case 1:wr.delegatorAddress=gn.string();break;case 2:wr.validatorSrcAddress=gn.string();break;case 3:wr.validatorDstAddress=gn.string();break;case 4:wr.entries.push(d.RedelegationEntry.decode(gn,gn.uint32()));break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{delegatorAddress:(0,Jt.isSet)(tn.delegatorAddress)?String(tn.delegatorAddress):"",validatorSrcAddress:(0,Jt.isSet)(tn.validatorSrcAddress)?String(tn.validatorSrcAddress):"",validatorDstAddress:(0,Jt.isSet)(tn.validatorDstAddress)?String(tn.validatorDstAddress):"",entries:Array.isArray(tn==null?void 0:tn.entries)?tn.entries.map(An=>d.RedelegationEntry.fromJSON(An)):[]}},toJSON(tn){const An={};return tn.delegatorAddress!==void 0&&(An.delegatorAddress=tn.delegatorAddress),tn.validatorSrcAddress!==void 0&&(An.validatorSrcAddress=tn.validatorSrcAddress),tn.validatorDstAddress!==void 0&&(An.validatorDstAddress=tn.validatorDstAddress),tn.entries?An.entries=tn.entries.map(gn=>gn?d.RedelegationEntry.toJSON(gn):void 0):An.entries=[],An},fromPartial(tn){var gn;const An=Ut();return An.delegatorAddress=tn.delegatorAddress??"",An.validatorSrcAddress=tn.validatorSrcAddress??"",An.validatorDstAddress=tn.validatorDstAddress??"",An.entries=((gn=tn.entries)==null?void 0:gn.map(Nn=>d.RedelegationEntry.fromPartial(Nn)))||[],An}};function Vt(){return{unbondingTime:void 0,maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:"",minCommissionRate:""}}d.Params={encode(tn,An=Zt.Writer.create()){return tn.unbondingTime!==void 0&&vt.Duration.encode(tn.unbondingTime,An.uint32(10).fork()).ldelim(),tn.maxValidators!==0&&An.uint32(16).uint32(tn.maxValidators),tn.maxEntries!==0&&An.uint32(24).uint32(tn.maxEntries),tn.historicalEntries!==0&&An.uint32(32).uint32(tn.historicalEntries),tn.bondDenom!==""&&An.uint32(42).string(tn.bondDenom),tn.minCommissionRate!==""&&An.uint32(50).string(tn.minCommissionRate),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Vt();for(;gn.pos>>3){case 1:wr.unbondingTime=vt.Duration.decode(gn,gn.uint32());break;case 2:wr.maxValidators=gn.uint32();break;case 3:wr.maxEntries=gn.uint32();break;case 4:wr.historicalEntries=gn.uint32();break;case 5:wr.bondDenom=gn.string();break;case 6:wr.minCommissionRate=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{unbondingTime:(0,Jt.isSet)(tn.unbondingTime)?vt.Duration.fromJSON(tn.unbondingTime):void 0,maxValidators:(0,Jt.isSet)(tn.maxValidators)?Number(tn.maxValidators):0,maxEntries:(0,Jt.isSet)(tn.maxEntries)?Number(tn.maxEntries):0,historicalEntries:(0,Jt.isSet)(tn.historicalEntries)?Number(tn.historicalEntries):0,bondDenom:(0,Jt.isSet)(tn.bondDenom)?String(tn.bondDenom):"",minCommissionRate:(0,Jt.isSet)(tn.minCommissionRate)?String(tn.minCommissionRate):""}},toJSON(tn){const An={};return tn.unbondingTime!==void 0&&(An.unbondingTime=tn.unbondingTime?vt.Duration.toJSON(tn.unbondingTime):void 0),tn.maxValidators!==void 0&&(An.maxValidators=Math.round(tn.maxValidators)),tn.maxEntries!==void 0&&(An.maxEntries=Math.round(tn.maxEntries)),tn.historicalEntries!==void 0&&(An.historicalEntries=Math.round(tn.historicalEntries)),tn.bondDenom!==void 0&&(An.bondDenom=tn.bondDenom),tn.minCommissionRate!==void 0&&(An.minCommissionRate=tn.minCommissionRate),An},fromPartial(tn){const An=Vt();return An.unbondingTime=tn.unbondingTime!==void 0&&tn.unbondingTime!==null?vt.Duration.fromPartial(tn.unbondingTime):void 0,An.maxValidators=tn.maxValidators??0,An.maxEntries=tn.maxEntries??0,An.historicalEntries=tn.historicalEntries??0,An.bondDenom=tn.bondDenom??"",An.minCommissionRate=tn.minCommissionRate??"",An}};function qt(){return{delegation:void 0,balance:void 0}}d.DelegationResponse={encode(tn,An=Zt.Writer.create()){return tn.delegation!==void 0&&d.Delegation.encode(tn.delegation,An.uint32(10).fork()).ldelim(),tn.balance!==void 0&&kt.Coin.encode(tn.balance,An.uint32(18).fork()).ldelim(),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=qt();for(;gn.pos>>3){case 1:wr.delegation=d.Delegation.decode(gn,gn.uint32());break;case 2:wr.balance=kt.Coin.decode(gn,gn.uint32());break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{delegation:(0,Jt.isSet)(tn.delegation)?d.Delegation.fromJSON(tn.delegation):void 0,balance:(0,Jt.isSet)(tn.balance)?kt.Coin.fromJSON(tn.balance):void 0}},toJSON(tn){const An={};return tn.delegation!==void 0&&(An.delegation=tn.delegation?d.Delegation.toJSON(tn.delegation):void 0),tn.balance!==void 0&&(An.balance=tn.balance?kt.Coin.toJSON(tn.balance):void 0),An},fromPartial(tn){const An=qt();return An.delegation=tn.delegation!==void 0&&tn.delegation!==null?d.Delegation.fromPartial(tn.delegation):void 0,An.balance=tn.balance!==void 0&&tn.balance!==null?kt.Coin.fromPartial(tn.balance):void 0,An}};function fn(){return{redelegationEntry:void 0,balance:""}}d.RedelegationEntryResponse={encode(tn,An=Zt.Writer.create()){return tn.redelegationEntry!==void 0&&d.RedelegationEntry.encode(tn.redelegationEntry,An.uint32(10).fork()).ldelim(),tn.balance!==""&&An.uint32(34).string(tn.balance),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=fn();for(;gn.pos>>3){case 1:wr.redelegationEntry=d.RedelegationEntry.decode(gn,gn.uint32());break;case 4:wr.balance=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{redelegationEntry:(0,Jt.isSet)(tn.redelegationEntry)?d.RedelegationEntry.fromJSON(tn.redelegationEntry):void 0,balance:(0,Jt.isSet)(tn.balance)?String(tn.balance):""}},toJSON(tn){const An={};return tn.redelegationEntry!==void 0&&(An.redelegationEntry=tn.redelegationEntry?d.RedelegationEntry.toJSON(tn.redelegationEntry):void 0),tn.balance!==void 0&&(An.balance=tn.balance),An},fromPartial(tn){const An=fn();return An.redelegationEntry=tn.redelegationEntry!==void 0&&tn.redelegationEntry!==null?d.RedelegationEntry.fromPartial(tn.redelegationEntry):void 0,An.balance=tn.balance??"",An}};function dn(){return{redelegation:void 0,entries:[]}}d.RedelegationResponse={encode(tn,An=Zt.Writer.create()){tn.redelegation!==void 0&&d.Redelegation.encode(tn.redelegation,An.uint32(10).fork()).ldelim();for(const gn of tn.entries)d.RedelegationEntryResponse.encode(gn,An.uint32(18).fork()).ldelim();return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=dn();for(;gn.pos>>3){case 1:wr.redelegation=d.Redelegation.decode(gn,gn.uint32());break;case 2:wr.entries.push(d.RedelegationEntryResponse.decode(gn,gn.uint32()));break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{redelegation:(0,Jt.isSet)(tn.redelegation)?d.Redelegation.fromJSON(tn.redelegation):void 0,entries:Array.isArray(tn==null?void 0:tn.entries)?tn.entries.map(An=>d.RedelegationEntryResponse.fromJSON(An)):[]}},toJSON(tn){const An={};return tn.redelegation!==void 0&&(An.redelegation=tn.redelegation?d.Redelegation.toJSON(tn.redelegation):void 0),tn.entries?An.entries=tn.entries.map(gn=>gn?d.RedelegationEntryResponse.toJSON(gn):void 0):An.entries=[],An},fromPartial(tn){var gn;const An=dn();return An.redelegation=tn.redelegation!==void 0&&tn.redelegation!==null?d.Redelegation.fromPartial(tn.redelegation):void 0,An.entries=((gn=tn.entries)==null?void 0:gn.map(Nn=>d.RedelegationEntryResponse.fromPartial(Nn)))||[],An}};function Dt(){return{notBondedTokens:"",bondedTokens:""}}d.Pool={encode(tn,An=Zt.Writer.create()){return tn.notBondedTokens!==""&&An.uint32(10).string(tn.notBondedTokens),tn.bondedTokens!==""&&An.uint32(18).string(tn.bondedTokens),An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=Dt();for(;gn.pos>>3){case 1:wr.notBondedTokens=gn.string();break;case 2:wr.bondedTokens=gn.string();break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{notBondedTokens:(0,Jt.isSet)(tn.notBondedTokens)?String(tn.notBondedTokens):"",bondedTokens:(0,Jt.isSet)(tn.bondedTokens)?String(tn.bondedTokens):""}},toJSON(tn){const An={};return tn.notBondedTokens!==void 0&&(An.notBondedTokens=tn.notBondedTokens),tn.bondedTokens!==void 0&&(An.bondedTokens=tn.bondedTokens),An},fromPartial(tn){const An=Dt();return An.notBondedTokens=tn.notBondedTokens??"",An.bondedTokens=tn.bondedTokens??"",An}};function zt(){return{updates:[]}}d.ValidatorUpdates={encode(tn,An=Zt.Writer.create()){for(const gn of tn.updates)Pt.ValidatorUpdate.encode(gn,An.uint32(10).fork()).ldelim();return An},decode(tn,An){const gn=tn instanceof Zt.Reader?tn:new Zt.Reader(tn);let Nn=An===void 0?gn.len:gn.pos+An;const wr=zt();for(;gn.pos>>3){case 1:wr.updates.push(Pt.ValidatorUpdate.decode(gn,gn.uint32()));break;default:gn.skipType(nr&7);break}}return wr},fromJSON(tn){return{updates:Array.isArray(tn==null?void 0:tn.updates)?tn.updates.map(An=>Pt.ValidatorUpdate.fromJSON(An)):[]}},toJSON(tn){const An={};return tn.updates?An.updates=tn.updates.map(gn=>gn?Pt.ValidatorUpdate.toJSON(gn):void 0):An.updates=[],An},fromPartial(tn){var gn;const An=zt();return An.updates=((gn=tn.updates)==null?void 0:gn.map(Nn=>Pt.ValidatorUpdate.fromPartial(Nn)))||[],An}}})(staking$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUpdateParamsResponse=d.MsgUpdateParams=d.MsgCancelUnbondingDelegationResponse=d.MsgCancelUnbondingDelegation=d.MsgUndelegateResponse=d.MsgUndelegate=d.MsgBeginRedelegateResponse=d.MsgBeginRedelegate=d.MsgDelegateResponse=d.MsgDelegate=d.MsgEditValidatorResponse=d.MsgEditValidator=d.MsgCreateValidatorResponse=d.MsgCreateValidator=d.protobufPackage=void 0;const lt=staking$1,ht=any$1,mt=coin$3,vt=timestamp$1,kt=helpers$1,Pt=ct(minimal$4);d.protobufPackage="cosmos.staking.v1beta1";function Jt(){return{description:void 0,commission:void 0,minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:void 0}}d.MsgCreateValidator={encode(yt,$t=Pt.Writer.create()){return yt.description!==void 0&<.Description.encode(yt.description,$t.uint32(10).fork()).ldelim(),yt.commission!==void 0&<.CommissionRates.encode(yt.commission,$t.uint32(18).fork()).ldelim(),yt.minSelfDelegation!==""&&$t.uint32(26).string(yt.minSelfDelegation),yt.delegatorAddress!==""&&$t.uint32(34).string(yt.delegatorAddress),yt.validatorAddress!==""&&$t.uint32(42).string(yt.validatorAddress),yt.pubkey!==void 0&&ht.Any.encode(yt.pubkey,$t.uint32(50).fork()).ldelim(),yt.value!==void 0&&mt.Coin.encode(yt.value,$t.uint32(58).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.description=lt.Description.decode(Yt,Yt.uint32());break;case 2:St.commission=lt.CommissionRates.decode(Yt,Yt.uint32());break;case 3:St.minSelfDelegation=Yt.string();break;case 4:St.delegatorAddress=Yt.string();break;case 5:St.validatorAddress=Yt.string();break;case 6:St.pubkey=ht.Any.decode(Yt,Yt.uint32());break;case 7:St.value=mt.Coin.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{description:(0,kt.isSet)(yt.description)?lt.Description.fromJSON(yt.description):void 0,commission:(0,kt.isSet)(yt.commission)?lt.CommissionRates.fromJSON(yt.commission):void 0,minSelfDelegation:(0,kt.isSet)(yt.minSelfDelegation)?String(yt.minSelfDelegation):"",delegatorAddress:(0,kt.isSet)(yt.delegatorAddress)?String(yt.delegatorAddress):"",validatorAddress:(0,kt.isSet)(yt.validatorAddress)?String(yt.validatorAddress):"",pubkey:(0,kt.isSet)(yt.pubkey)?ht.Any.fromJSON(yt.pubkey):void 0,value:(0,kt.isSet)(yt.value)?mt.Coin.fromJSON(yt.value):void 0}},toJSON(yt){const $t={};return yt.description!==void 0&&($t.description=yt.description?lt.Description.toJSON(yt.description):void 0),yt.commission!==void 0&&($t.commission=yt.commission?lt.CommissionRates.toJSON(yt.commission):void 0),yt.minSelfDelegation!==void 0&&($t.minSelfDelegation=yt.minSelfDelegation),yt.delegatorAddress!==void 0&&($t.delegatorAddress=yt.delegatorAddress),yt.validatorAddress!==void 0&&($t.validatorAddress=yt.validatorAddress),yt.pubkey!==void 0&&($t.pubkey=yt.pubkey?ht.Any.toJSON(yt.pubkey):void 0),yt.value!==void 0&&($t.value=yt.value?mt.Coin.toJSON(yt.value):void 0),$t},fromPartial(yt){const $t=Jt();return $t.description=yt.description!==void 0&&yt.description!==null?lt.Description.fromPartial(yt.description):void 0,$t.commission=yt.commission!==void 0&&yt.commission!==null?lt.CommissionRates.fromPartial(yt.commission):void 0,$t.minSelfDelegation=yt.minSelfDelegation??"",$t.delegatorAddress=yt.delegatorAddress??"",$t.validatorAddress=yt.validatorAddress??"",$t.pubkey=yt.pubkey!==void 0&&yt.pubkey!==null?ht.Any.fromPartial(yt.pubkey):void 0,$t.value=yt.value!==void 0&&yt.value!==null?mt.Coin.fromPartial(yt.value):void 0,$t}};function Zt(){return{}}d.MsgCreateValidatorResponse={encode(yt,$t=Pt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Zt()}};function Rt(){return{description:void 0,validatorAddress:"",commissionRate:"",minSelfDelegation:""}}d.MsgEditValidator={encode(yt,$t=Pt.Writer.create()){return yt.description!==void 0&<.Description.encode(yt.description,$t.uint32(10).fork()).ldelim(),yt.validatorAddress!==""&&$t.uint32(18).string(yt.validatorAddress),yt.commissionRate!==""&&$t.uint32(26).string(yt.commissionRate),yt.minSelfDelegation!==""&&$t.uint32(34).string(yt.minSelfDelegation),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.description=lt.Description.decode(Yt,Yt.uint32());break;case 2:St.validatorAddress=Yt.string();break;case 3:St.commissionRate=Yt.string();break;case 4:St.minSelfDelegation=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{description:(0,kt.isSet)(yt.description)?lt.Description.fromJSON(yt.description):void 0,validatorAddress:(0,kt.isSet)(yt.validatorAddress)?String(yt.validatorAddress):"",commissionRate:(0,kt.isSet)(yt.commissionRate)?String(yt.commissionRate):"",minSelfDelegation:(0,kt.isSet)(yt.minSelfDelegation)?String(yt.minSelfDelegation):""}},toJSON(yt){const $t={};return yt.description!==void 0&&($t.description=yt.description?lt.Description.toJSON(yt.description):void 0),yt.validatorAddress!==void 0&&($t.validatorAddress=yt.validatorAddress),yt.commissionRate!==void 0&&($t.commissionRate=yt.commissionRate),yt.minSelfDelegation!==void 0&&($t.minSelfDelegation=yt.minSelfDelegation),$t},fromPartial(yt){const $t=Rt();return $t.description=yt.description!==void 0&&yt.description!==null?lt.Description.fromPartial(yt.description):void 0,$t.validatorAddress=yt.validatorAddress??"",$t.commissionRate=yt.commissionRate??"",$t.minSelfDelegation=yt.minSelfDelegation??"",$t}};function nn(){return{}}d.MsgEditValidatorResponse={encode(yt,$t=Pt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return nn()}};function Qt(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}d.MsgDelegate={encode(yt,$t=Pt.Writer.create()){return yt.delegatorAddress!==""&&$t.uint32(10).string(yt.delegatorAddress),yt.validatorAddress!==""&&$t.uint32(18).string(yt.validatorAddress),yt.amount!==void 0&&mt.Coin.encode(yt.amount,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.delegatorAddress=Yt.string();break;case 2:St.validatorAddress=Yt.string();break;case 3:St.amount=mt.Coin.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{delegatorAddress:(0,kt.isSet)(yt.delegatorAddress)?String(yt.delegatorAddress):"",validatorAddress:(0,kt.isSet)(yt.validatorAddress)?String(yt.validatorAddress):"",amount:(0,kt.isSet)(yt.amount)?mt.Coin.fromJSON(yt.amount):void 0}},toJSON(yt){const $t={};return yt.delegatorAddress!==void 0&&($t.delegatorAddress=yt.delegatorAddress),yt.validatorAddress!==void 0&&($t.validatorAddress=yt.validatorAddress),yt.amount!==void 0&&($t.amount=yt.amount?mt.Coin.toJSON(yt.amount):void 0),$t},fromPartial(yt){const $t=Qt();return $t.delegatorAddress=yt.delegatorAddress??"",$t.validatorAddress=yt.validatorAddress??"",$t.amount=yt.amount!==void 0&&yt.amount!==null?mt.Coin.fromPartial(yt.amount):void 0,$t}};function wt(){return{}}d.MsgDelegateResponse={encode(yt,$t=Pt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return wt()}};function Nt(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:void 0}}d.MsgBeginRedelegate={encode(yt,$t=Pt.Writer.create()){return yt.delegatorAddress!==""&&$t.uint32(10).string(yt.delegatorAddress),yt.validatorSrcAddress!==""&&$t.uint32(18).string(yt.validatorSrcAddress),yt.validatorDstAddress!==""&&$t.uint32(26).string(yt.validatorDstAddress),yt.amount!==void 0&&mt.Coin.encode(yt.amount,$t.uint32(34).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.delegatorAddress=Yt.string();break;case 2:St.validatorSrcAddress=Yt.string();break;case 3:St.validatorDstAddress=Yt.string();break;case 4:St.amount=mt.Coin.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{delegatorAddress:(0,kt.isSet)(yt.delegatorAddress)?String(yt.delegatorAddress):"",validatorSrcAddress:(0,kt.isSet)(yt.validatorSrcAddress)?String(yt.validatorSrcAddress):"",validatorDstAddress:(0,kt.isSet)(yt.validatorDstAddress)?String(yt.validatorDstAddress):"",amount:(0,kt.isSet)(yt.amount)?mt.Coin.fromJSON(yt.amount):void 0}},toJSON(yt){const $t={};return yt.delegatorAddress!==void 0&&($t.delegatorAddress=yt.delegatorAddress),yt.validatorSrcAddress!==void 0&&($t.validatorSrcAddress=yt.validatorSrcAddress),yt.validatorDstAddress!==void 0&&($t.validatorDstAddress=yt.validatorDstAddress),yt.amount!==void 0&&($t.amount=yt.amount?mt.Coin.toJSON(yt.amount):void 0),$t},fromPartial(yt){const $t=Nt();return $t.delegatorAddress=yt.delegatorAddress??"",$t.validatorSrcAddress=yt.validatorSrcAddress??"",$t.validatorDstAddress=yt.validatorDstAddress??"",$t.amount=yt.amount!==void 0&&yt.amount!==null?mt.Coin.fromPartial(yt.amount):void 0,$t}};function xt(){return{completionTime:void 0}}d.MsgBeginRedelegateResponse={encode(yt,$t=Pt.Writer.create()){return yt.completionTime!==void 0&&vt.Timestamp.encode(yt.completionTime,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.completionTime=vt.Timestamp.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{completionTime:(0,kt.isSet)(yt.completionTime)?(0,kt.fromJsonTimestamp)(yt.completionTime):void 0}},toJSON(yt){const $t={};return yt.completionTime!==void 0&&($t.completionTime=(0,kt.fromTimestamp)(yt.completionTime).toISOString()),$t},fromPartial(yt){const $t=xt();return $t.completionTime=yt.completionTime!==void 0&&yt.completionTime!==null?vt.Timestamp.fromPartial(yt.completionTime):void 0,$t}};function Et(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}d.MsgUndelegate={encode(yt,$t=Pt.Writer.create()){return yt.delegatorAddress!==""&&$t.uint32(10).string(yt.delegatorAddress),yt.validatorAddress!==""&&$t.uint32(18).string(yt.validatorAddress),yt.amount!==void 0&&mt.Coin.encode(yt.amount,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.delegatorAddress=Yt.string();break;case 2:St.validatorAddress=Yt.string();break;case 3:St.amount=mt.Coin.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{delegatorAddress:(0,kt.isSet)(yt.delegatorAddress)?String(yt.delegatorAddress):"",validatorAddress:(0,kt.isSet)(yt.validatorAddress)?String(yt.validatorAddress):"",amount:(0,kt.isSet)(yt.amount)?mt.Coin.fromJSON(yt.amount):void 0}},toJSON(yt){const $t={};return yt.delegatorAddress!==void 0&&($t.delegatorAddress=yt.delegatorAddress),yt.validatorAddress!==void 0&&($t.validatorAddress=yt.validatorAddress),yt.amount!==void 0&&($t.amount=yt.amount?mt.Coin.toJSON(yt.amount):void 0),$t},fromPartial(yt){const $t=Et();return $t.delegatorAddress=yt.delegatorAddress??"",$t.validatorAddress=yt.validatorAddress??"",$t.amount=yt.amount!==void 0&&yt.amount!==null?mt.Coin.fromPartial(yt.amount):void 0,$t}};function Bt(){return{completionTime:void 0}}d.MsgUndelegateResponse={encode(yt,$t=Pt.Writer.create()){return yt.completionTime!==void 0&&vt.Timestamp.encode(yt.completionTime,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.completionTime=vt.Timestamp.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{completionTime:(0,kt.isSet)(yt.completionTime)?(0,kt.fromJsonTimestamp)(yt.completionTime):void 0}},toJSON(yt){const $t={};return yt.completionTime!==void 0&&($t.completionTime=(0,kt.fromTimestamp)(yt.completionTime).toISOString()),$t},fromPartial(yt){const $t=Bt();return $t.completionTime=yt.completionTime!==void 0&&yt.completionTime!==null?vt.Timestamp.fromPartial(yt.completionTime):void 0,$t}};function Tt(){return{delegatorAddress:"",validatorAddress:"",amount:void 0,creationHeight:kt.Long.ZERO}}d.MsgCancelUnbondingDelegation={encode(yt,$t=Pt.Writer.create()){return yt.delegatorAddress!==""&&$t.uint32(10).string(yt.delegatorAddress),yt.validatorAddress!==""&&$t.uint32(18).string(yt.validatorAddress),yt.amount!==void 0&&mt.Coin.encode(yt.amount,$t.uint32(26).fork()).ldelim(),yt.creationHeight.isZero()||$t.uint32(32).int64(yt.creationHeight),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.delegatorAddress=Yt.string();break;case 2:St.validatorAddress=Yt.string();break;case 3:St.amount=mt.Coin.decode(Yt,Yt.uint32());break;case 4:St.creationHeight=Yt.int64();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{delegatorAddress:(0,kt.isSet)(yt.delegatorAddress)?String(yt.delegatorAddress):"",validatorAddress:(0,kt.isSet)(yt.validatorAddress)?String(yt.validatorAddress):"",amount:(0,kt.isSet)(yt.amount)?mt.Coin.fromJSON(yt.amount):void 0,creationHeight:(0,kt.isSet)(yt.creationHeight)?kt.Long.fromValue(yt.creationHeight):kt.Long.ZERO}},toJSON(yt){const $t={};return yt.delegatorAddress!==void 0&&($t.delegatorAddress=yt.delegatorAddress),yt.validatorAddress!==void 0&&($t.validatorAddress=yt.validatorAddress),yt.amount!==void 0&&($t.amount=yt.amount?mt.Coin.toJSON(yt.amount):void 0),yt.creationHeight!==void 0&&($t.creationHeight=(yt.creationHeight||kt.Long.ZERO).toString()),$t},fromPartial(yt){const $t=Tt();return $t.delegatorAddress=yt.delegatorAddress??"",$t.validatorAddress=yt.validatorAddress??"",$t.amount=yt.amount!==void 0&&yt.amount!==null?mt.Coin.fromPartial(yt.amount):void 0,$t.creationHeight=yt.creationHeight!==void 0&&yt.creationHeight!==null?kt.Long.fromValue(yt.creationHeight):kt.Long.ZERO,$t}};function Mt(){return{}}d.MsgCancelUnbondingDelegationResponse={encode(yt,$t=Pt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Mt()}};function jt(){return{authority:"",params:void 0}}d.MsgUpdateParams={encode(yt,$t=Pt.Writer.create()){return yt.authority!==""&&$t.uint32(10).string(yt.authority),yt.params!==void 0&<.Params.encode(yt.params,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.authority=Yt.string();break;case 2:St.params=lt.Params.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{authority:(0,kt.isSet)(yt.authority)?String(yt.authority):"",params:(0,kt.isSet)(yt.params)?lt.Params.fromJSON(yt.params):void 0}},toJSON(yt){const $t={};return yt.authority!==void 0&&($t.authority=yt.authority),yt.params!==void 0&&($t.params=yt.params?lt.Params.toJSON(yt.params):void 0),$t},fromPartial(yt){const $t=jt();return $t.authority=yt.authority??"",$t.params=yt.params!==void 0&&yt.params!==null?lt.Params.fromPartial(yt.params):void 0,$t}};function Ht(){return{}}d.MsgUpdateParamsResponse={encode(yt,$t=Pt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof Pt.Reader?yt:new Pt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Ht()}};class an{constructor($t){this.rpc=$t,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this),this.CancelUnbondingDelegation=this.CancelUnbondingDelegation.bind(this),this.UpdateParams=this.UpdateParams.bind(this)}CreateValidator($t){const Yt=d.MsgCreateValidator.encode($t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",Yt).then(St=>d.MsgCreateValidatorResponse.decode(new Pt.Reader(St)))}EditValidator($t){const Yt=d.MsgEditValidator.encode($t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",Yt).then(St=>d.MsgEditValidatorResponse.decode(new Pt.Reader(St)))}Delegate($t){const Yt=d.MsgDelegate.encode($t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",Yt).then(St=>d.MsgDelegateResponse.decode(new Pt.Reader(St)))}BeginRedelegate($t){const Yt=d.MsgBeginRedelegate.encode($t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",Yt).then(St=>d.MsgBeginRedelegateResponse.decode(new Pt.Reader(St)))}Undelegate($t){const Yt=d.MsgUndelegate.encode($t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",Yt).then(St=>d.MsgUndelegateResponse.decode(new Pt.Reader(St)))}CancelUnbondingDelegation($t){const Yt=d.MsgCancelUnbondingDelegation.encode($t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CancelUnbondingDelegation",Yt).then(St=>d.MsgCancelUnbondingDelegationResponse.decode(new Pt.Reader(St)))}UpdateParams($t){const Yt=d.MsgUpdateParams.encode($t).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","UpdateParams",Yt).then(St=>d.MsgUpdateParamsResponse.decode(new Pt.Reader(St)))}}d.MsgClientImpl=an})(tx$f);Object.defineProperty(messages$3,"__esModule",{value:!0});messages$3.isMsgUndelegateEncodeObject=messages$3.isMsgEditValidatorEncodeObject=messages$3.isMsgDelegateEncodeObject=messages$3.isMsgCreateValidatorEncodeObject=messages$3.isMsgBeginRedelegateEncodeObject=messages$3.stakingTypes=void 0;const tx_1$6=tx$f;messages$3.stakingTypes=[["/cosmos.staking.v1beta1.MsgBeginRedelegate",tx_1$6.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgCreateValidator",tx_1$6.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgDelegate",tx_1$6.MsgDelegate],["/cosmos.staking.v1beta1.MsgEditValidator",tx_1$6.MsgEditValidator],["/cosmos.staking.v1beta1.MsgUndelegate",tx_1$6.MsgUndelegate]];function isMsgBeginRedelegateEncodeObject(d){return d.typeUrl==="/cosmos.staking.v1beta1.MsgBeginRedelegate"}messages$3.isMsgBeginRedelegateEncodeObject=isMsgBeginRedelegateEncodeObject;function isMsgCreateValidatorEncodeObject(d){return d.typeUrl==="/cosmos.staking.v1beta1.MsgCreateValidator"}messages$3.isMsgCreateValidatorEncodeObject=isMsgCreateValidatorEncodeObject;function isMsgDelegateEncodeObject(d){return d.typeUrl==="/cosmos.staking.v1beta1.MsgDelegate"}messages$3.isMsgDelegateEncodeObject=isMsgDelegateEncodeObject;function isMsgEditValidatorEncodeObject(d){return d.typeUrl==="/cosmos.staking.v1beta1.MsgEditValidator"}messages$3.isMsgEditValidatorEncodeObject=isMsgEditValidatorEncodeObject;function isMsgUndelegateEncodeObject(d){return d.typeUrl==="/cosmos.staking.v1beta1.MsgUndelegate"}messages$3.isMsgUndelegateEncodeObject=isMsgUndelegateEncodeObject;var queries$3={},query$a={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Dt,zt,tn,An){An===void 0&&(An=tn);var gn=Object.getOwnPropertyDescriptor(zt,tn);(!gn||("get"in gn?!zt.__esModule:gn.writable||gn.configurable))&&(gn={enumerable:!0,get:function(){return zt[tn]}}),Object.defineProperty(Dt,An,gn)}:function(Dt,zt,tn,An){An===void 0&&(An=tn),Dt[An]=zt[tn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Dt,zt){Object.defineProperty(Dt,"default",{enumerable:!0,value:zt})}:function(Dt,zt){Dt.default=zt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Dt){if(Dt&&Dt.__esModule)return Dt;var zt={};if(Dt!=null)for(var tn in Dt)tn!=="default"&&Object.prototype.hasOwnProperty.call(Dt,tn)&&b(zt,Dt,tn);return dt(zt,Dt),zt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryPoolResponse=d.QueryPoolRequest=d.QueryHistoricalInfoResponse=d.QueryHistoricalInfoRequest=d.QueryDelegatorValidatorResponse=d.QueryDelegatorValidatorRequest=d.QueryDelegatorValidatorsResponse=d.QueryDelegatorValidatorsRequest=d.QueryRedelegationsResponse=d.QueryRedelegationsRequest=d.QueryDelegatorUnbondingDelegationsResponse=d.QueryDelegatorUnbondingDelegationsRequest=d.QueryDelegatorDelegationsResponse=d.QueryDelegatorDelegationsRequest=d.QueryUnbondingDelegationResponse=d.QueryUnbondingDelegationRequest=d.QueryDelegationResponse=d.QueryDelegationRequest=d.QueryValidatorUnbondingDelegationsResponse=d.QueryValidatorUnbondingDelegationsRequest=d.QueryValidatorDelegationsResponse=d.QueryValidatorDelegationsRequest=d.QueryValidatorResponse=d.QueryValidatorRequest=d.QueryValidatorsResponse=d.QueryValidatorsRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=staking$1,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.staking.v1beta1";function kt(){return{status:"",pagination:void 0}}d.QueryValidatorsRequest={encode(Dt,zt=vt.Writer.create()){return Dt.status!==""&&zt.uint32(10).string(Dt.status),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=kt();for(;tn.pos>>3){case 1:gn.status=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{status:(0,mt.isSet)(Dt.status)?String(Dt.status):"",pagination:(0,mt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.status!==void 0&&(zt.status=Dt.status),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=kt();return zt.status=Dt.status??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Pt(){return{validators:[],pagination:void 0}}d.QueryValidatorsResponse={encode(Dt,zt=vt.Writer.create()){for(const tn of Dt.validators)ht.Validator.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Pt();for(;tn.pos>>3){case 1:gn.validators.push(ht.Validator.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validators:Array.isArray(Dt==null?void 0:Dt.validators)?Dt.validators.map(zt=>ht.Validator.fromJSON(zt)):[],pagination:(0,mt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validators?zt.validators=Dt.validators.map(tn=>tn?ht.Validator.toJSON(tn):void 0):zt.validators=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Pt();return zt.validators=((tn=Dt.validators)==null?void 0:tn.map(An=>ht.Validator.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Jt(){return{validatorAddr:""}}d.QueryValidatorRequest={encode(Dt,zt=vt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Jt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,mt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Jt();return zt.validatorAddr=Dt.validatorAddr??"",zt}};function Zt(){return{validator:void 0}}d.QueryValidatorResponse={encode(Dt,zt=vt.Writer.create()){return Dt.validator!==void 0&&ht.Validator.encode(Dt.validator,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Zt();for(;tn.pos>>3){case 1:gn.validator=ht.Validator.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validator:(0,mt.isSet)(Dt.validator)?ht.Validator.fromJSON(Dt.validator):void 0}},toJSON(Dt){const zt={};return Dt.validator!==void 0&&(zt.validator=Dt.validator?ht.Validator.toJSON(Dt.validator):void 0),zt},fromPartial(Dt){const zt=Zt();return zt.validator=Dt.validator!==void 0&&Dt.validator!==null?ht.Validator.fromPartial(Dt.validator):void 0,zt}};function Rt(){return{validatorAddr:"",pagination:void 0}}d.QueryValidatorDelegationsRequest={encode(Dt,zt=vt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Rt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,mt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):"",pagination:(0,mt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Rt();return zt.validatorAddr=Dt.validatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function nn(){return{delegationResponses:[],pagination:void 0}}d.QueryValidatorDelegationsResponse={encode(Dt,zt=vt.Writer.create()){for(const tn of Dt.delegationResponses)ht.DelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=nn();for(;tn.pos>>3){case 1:gn.delegationResponses.push(ht.DelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponses:Array.isArray(Dt==null?void 0:Dt.delegationResponses)?Dt.delegationResponses.map(zt=>ht.DelegationResponse.fromJSON(zt)):[],pagination:(0,mt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponses?zt.delegationResponses=Dt.delegationResponses.map(tn=>tn?ht.DelegationResponse.toJSON(tn):void 0):zt.delegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=nn();return zt.delegationResponses=((tn=Dt.delegationResponses)==null?void 0:tn.map(An=>ht.DelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Qt(){return{validatorAddr:"",pagination:void 0}}d.QueryValidatorUnbondingDelegationsRequest={encode(Dt,zt=vt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Qt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,mt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):"",pagination:(0,mt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Qt();return zt.validatorAddr=Dt.validatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function wt(){return{unbondingResponses:[],pagination:void 0}}d.QueryValidatorUnbondingDelegationsResponse={encode(Dt,zt=vt.Writer.create()){for(const tn of Dt.unbondingResponses)ht.UnbondingDelegation.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=wt();for(;tn.pos>>3){case 1:gn.unbondingResponses.push(ht.UnbondingDelegation.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbondingResponses:Array.isArray(Dt==null?void 0:Dt.unbondingResponses)?Dt.unbondingResponses.map(zt=>ht.UnbondingDelegation.fromJSON(zt)):[],pagination:(0,mt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.unbondingResponses?zt.unbondingResponses=Dt.unbondingResponses.map(tn=>tn?ht.UnbondingDelegation.toJSON(tn):void 0):zt.unbondingResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=wt();return zt.unbondingResponses=((tn=Dt.unbondingResponses)==null?void 0:tn.map(An=>ht.UnbondingDelegation.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Nt(){return{delegatorAddr:"",validatorAddr:""}}d.QueryDelegationRequest={encode(Dt,zt=vt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Nt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,mt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,mt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Nt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function xt(){return{delegationResponse:void 0}}d.QueryDelegationResponse={encode(Dt,zt=vt.Writer.create()){return Dt.delegationResponse!==void 0&&ht.DelegationResponse.encode(Dt.delegationResponse,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=xt();for(;tn.pos>>3){case 1:gn.delegationResponse=ht.DelegationResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponse:(0,mt.isSet)(Dt.delegationResponse)?ht.DelegationResponse.fromJSON(Dt.delegationResponse):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponse!==void 0&&(zt.delegationResponse=Dt.delegationResponse?ht.DelegationResponse.toJSON(Dt.delegationResponse):void 0),zt},fromPartial(Dt){const zt=xt();return zt.delegationResponse=Dt.delegationResponse!==void 0&&Dt.delegationResponse!==null?ht.DelegationResponse.fromPartial(Dt.delegationResponse):void 0,zt}};function Et(){return{delegatorAddr:"",validatorAddr:""}}d.QueryUnbondingDelegationRequest={encode(Dt,zt=vt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Et();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,mt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,mt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Et();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function Bt(){return{unbond:void 0}}d.QueryUnbondingDelegationResponse={encode(Dt,zt=vt.Writer.create()){return Dt.unbond!==void 0&&ht.UnbondingDelegation.encode(Dt.unbond,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Bt();for(;tn.pos>>3){case 1:gn.unbond=ht.UnbondingDelegation.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbond:(0,mt.isSet)(Dt.unbond)?ht.UnbondingDelegation.fromJSON(Dt.unbond):void 0}},toJSON(Dt){const zt={};return Dt.unbond!==void 0&&(zt.unbond=Dt.unbond?ht.UnbondingDelegation.toJSON(Dt.unbond):void 0),zt},fromPartial(Dt){const zt=Bt();return zt.unbond=Dt.unbond!==void 0&&Dt.unbond!==null?ht.UnbondingDelegation.fromPartial(Dt.unbond):void 0,zt}};function Tt(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorDelegationsRequest={encode(Dt,zt=vt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Tt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,mt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,mt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Tt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Mt(){return{delegationResponses:[],pagination:void 0}}d.QueryDelegatorDelegationsResponse={encode(Dt,zt=vt.Writer.create()){for(const tn of Dt.delegationResponses)ht.DelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Mt();for(;tn.pos>>3){case 1:gn.delegationResponses.push(ht.DelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponses:Array.isArray(Dt==null?void 0:Dt.delegationResponses)?Dt.delegationResponses.map(zt=>ht.DelegationResponse.fromJSON(zt)):[],pagination:(0,mt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponses?zt.delegationResponses=Dt.delegationResponses.map(tn=>tn?ht.DelegationResponse.toJSON(tn):void 0):zt.delegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Mt();return zt.delegationResponses=((tn=Dt.delegationResponses)==null?void 0:tn.map(An=>ht.DelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function jt(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorUnbondingDelegationsRequest={encode(Dt,zt=vt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=jt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,mt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,mt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=jt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Ht(){return{unbondingResponses:[],pagination:void 0}}d.QueryDelegatorUnbondingDelegationsResponse={encode(Dt,zt=vt.Writer.create()){for(const tn of Dt.unbondingResponses)ht.UnbondingDelegation.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ht();for(;tn.pos>>3){case 1:gn.unbondingResponses.push(ht.UnbondingDelegation.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbondingResponses:Array.isArray(Dt==null?void 0:Dt.unbondingResponses)?Dt.unbondingResponses.map(zt=>ht.UnbondingDelegation.fromJSON(zt)):[],pagination:(0,mt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.unbondingResponses?zt.unbondingResponses=Dt.unbondingResponses.map(tn=>tn?ht.UnbondingDelegation.toJSON(tn):void 0):zt.unbondingResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Ht();return zt.unbondingResponses=((tn=Dt.unbondingResponses)==null?void 0:tn.map(An=>ht.UnbondingDelegation.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function an(){return{delegatorAddr:"",srcValidatorAddr:"",dstValidatorAddr:"",pagination:void 0}}d.QueryRedelegationsRequest={encode(Dt,zt=vt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.srcValidatorAddr!==""&&zt.uint32(18).string(Dt.srcValidatorAddr),Dt.dstValidatorAddr!==""&&zt.uint32(26).string(Dt.dstValidatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(34).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=an();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.srcValidatorAddr=tn.string();break;case 3:gn.dstValidatorAddr=tn.string();break;case 4:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,mt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",srcValidatorAddr:(0,mt.isSet)(Dt.srcValidatorAddr)?String(Dt.srcValidatorAddr):"",dstValidatorAddr:(0,mt.isSet)(Dt.dstValidatorAddr)?String(Dt.dstValidatorAddr):"",pagination:(0,mt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.srcValidatorAddr!==void 0&&(zt.srcValidatorAddr=Dt.srcValidatorAddr),Dt.dstValidatorAddr!==void 0&&(zt.dstValidatorAddr=Dt.dstValidatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=an();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.srcValidatorAddr=Dt.srcValidatorAddr??"",zt.dstValidatorAddr=Dt.dstValidatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function yt(){return{redelegationResponses:[],pagination:void 0}}d.QueryRedelegationsResponse={encode(Dt,zt=vt.Writer.create()){for(const tn of Dt.redelegationResponses)ht.RedelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=yt();for(;tn.pos>>3){case 1:gn.redelegationResponses.push(ht.RedelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{redelegationResponses:Array.isArray(Dt==null?void 0:Dt.redelegationResponses)?Dt.redelegationResponses.map(zt=>ht.RedelegationResponse.fromJSON(zt)):[],pagination:(0,mt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.redelegationResponses?zt.redelegationResponses=Dt.redelegationResponses.map(tn=>tn?ht.RedelegationResponse.toJSON(tn):void 0):zt.redelegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=yt();return zt.redelegationResponses=((tn=Dt.redelegationResponses)==null?void 0:tn.map(An=>ht.RedelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function $t(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorValidatorsRequest={encode(Dt,zt=vt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=$t();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,mt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,mt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=$t();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Yt(){return{validators:[],pagination:void 0}}d.QueryDelegatorValidatorsResponse={encode(Dt,zt=vt.Writer.create()){for(const tn of Dt.validators)ht.Validator.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Yt();for(;tn.pos>>3){case 1:gn.validators.push(ht.Validator.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validators:Array.isArray(Dt==null?void 0:Dt.validators)?Dt.validators.map(zt=>ht.Validator.fromJSON(zt)):[],pagination:(0,mt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validators?zt.validators=Dt.validators.map(tn=>tn?ht.Validator.toJSON(tn):void 0):zt.validators=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Yt();return zt.validators=((tn=Dt.validators)==null?void 0:tn.map(An=>ht.Validator.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Kt(){return{delegatorAddr:"",validatorAddr:""}}d.QueryDelegatorValidatorRequest={encode(Dt,zt=vt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Kt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,mt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,mt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Kt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function St(){return{validator:void 0}}d.QueryDelegatorValidatorResponse={encode(Dt,zt=vt.Writer.create()){return Dt.validator!==void 0&&ht.Validator.encode(Dt.validator,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=St();for(;tn.pos>>3){case 1:gn.validator=ht.Validator.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validator:(0,mt.isSet)(Dt.validator)?ht.Validator.fromJSON(Dt.validator):void 0}},toJSON(Dt){const zt={};return Dt.validator!==void 0&&(zt.validator=Dt.validator?ht.Validator.toJSON(Dt.validator):void 0),zt},fromPartial(Dt){const zt=St();return zt.validator=Dt.validator!==void 0&&Dt.validator!==null?ht.Validator.fromPartial(Dt.validator):void 0,zt}};function It(){return{height:mt.Long.ZERO}}d.QueryHistoricalInfoRequest={encode(Dt,zt=vt.Writer.create()){return Dt.height.isZero()||zt.uint32(8).int64(Dt.height),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=It();for(;tn.pos>>3){case 1:gn.height=tn.int64();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{height:(0,mt.isSet)(Dt.height)?mt.Long.fromValue(Dt.height):mt.Long.ZERO}},toJSON(Dt){const zt={};return Dt.height!==void 0&&(zt.height=(Dt.height||mt.Long.ZERO).toString()),zt},fromPartial(Dt){const zt=It();return zt.height=Dt.height!==void 0&&Dt.height!==null?mt.Long.fromValue(Dt.height):mt.Long.ZERO,zt}};function Gt(){return{hist:void 0}}d.QueryHistoricalInfoResponse={encode(Dt,zt=vt.Writer.create()){return Dt.hist!==void 0&&ht.HistoricalInfo.encode(Dt.hist,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Gt();for(;tn.pos>>3){case 1:gn.hist=ht.HistoricalInfo.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{hist:(0,mt.isSet)(Dt.hist)?ht.HistoricalInfo.fromJSON(Dt.hist):void 0}},toJSON(Dt){const zt={};return Dt.hist!==void 0&&(zt.hist=Dt.hist?ht.HistoricalInfo.toJSON(Dt.hist):void 0),zt},fromPartial(Dt){const zt=Gt();return zt.hist=Dt.hist!==void 0&&Dt.hist!==null?ht.HistoricalInfo.fromPartial(Dt.hist):void 0,zt}};function Ut(){return{}}d.QueryPoolRequest={encode(Dt,zt=vt.Writer.create()){return zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ut();for(;tn.pos>>3){default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{}},toJSON(Dt){return{}},fromPartial(Dt){return Ut()}};function Vt(){return{pool:void 0}}d.QueryPoolResponse={encode(Dt,zt=vt.Writer.create()){return Dt.pool!==void 0&&ht.Pool.encode(Dt.pool,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Vt();for(;tn.pos>>3){case 1:gn.pool=ht.Pool.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{pool:(0,mt.isSet)(Dt.pool)?ht.Pool.fromJSON(Dt.pool):void 0}},toJSON(Dt){const zt={};return Dt.pool!==void 0&&(zt.pool=Dt.pool?ht.Pool.toJSON(Dt.pool):void 0),zt},fromPartial(Dt){const zt=Vt();return zt.pool=Dt.pool!==void 0&&Dt.pool!==null?ht.Pool.fromPartial(Dt.pool):void 0,zt}};function qt(){return{}}d.QueryParamsRequest={encode(Dt,zt=vt.Writer.create()){return zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=qt();for(;tn.pos>>3){default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{}},toJSON(Dt){return{}},fromPartial(Dt){return qt()}};function fn(){return{params:void 0}}d.QueryParamsResponse={encode(Dt,zt=vt.Writer.create()){return Dt.params!==void 0&&ht.Params.encode(Dt.params,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof vt.Reader?Dt:new vt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=fn();for(;tn.pos>>3){case 1:gn.params=ht.Params.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{params:(0,mt.isSet)(Dt.params)?ht.Params.fromJSON(Dt.params):void 0}},toJSON(Dt){const zt={};return Dt.params!==void 0&&(zt.params=Dt.params?ht.Params.toJSON(Dt.params):void 0),zt},fromPartial(Dt){const zt=fn();return zt.params=Dt.params!==void 0&&Dt.params!==null?ht.Params.fromPartial(Dt.params):void 0,zt}};class dn{constructor(zt){this.rpc=zt,this.Validators=this.Validators.bind(this),this.Validator=this.Validator.bind(this),this.ValidatorDelegations=this.ValidatorDelegations.bind(this),this.ValidatorUnbondingDelegations=this.ValidatorUnbondingDelegations.bind(this),this.Delegation=this.Delegation.bind(this),this.UnbondingDelegation=this.UnbondingDelegation.bind(this),this.DelegatorDelegations=this.DelegatorDelegations.bind(this),this.DelegatorUnbondingDelegations=this.DelegatorUnbondingDelegations.bind(this),this.Redelegations=this.Redelegations.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorValidator=this.DelegatorValidator.bind(this),this.HistoricalInfo=this.HistoricalInfo.bind(this),this.Pool=this.Pool.bind(this),this.Params=this.Params.bind(this)}Validators(zt){const tn=d.QueryValidatorsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validators",tn).then(gn=>d.QueryValidatorsResponse.decode(new vt.Reader(gn)))}Validator(zt){const tn=d.QueryValidatorRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validator",tn).then(gn=>d.QueryValidatorResponse.decode(new vt.Reader(gn)))}ValidatorDelegations(zt){const tn=d.QueryValidatorDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorDelegations",tn).then(gn=>d.QueryValidatorDelegationsResponse.decode(new vt.Reader(gn)))}ValidatorUnbondingDelegations(zt){const tn=d.QueryValidatorUnbondingDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorUnbondingDelegations",tn).then(gn=>d.QueryValidatorUnbondingDelegationsResponse.decode(new vt.Reader(gn)))}Delegation(zt){const tn=d.QueryDelegationRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Delegation",tn).then(gn=>d.QueryDelegationResponse.decode(new vt.Reader(gn)))}UnbondingDelegation(zt){const tn=d.QueryUnbondingDelegationRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","UnbondingDelegation",tn).then(gn=>d.QueryUnbondingDelegationResponse.decode(new vt.Reader(gn)))}DelegatorDelegations(zt){const tn=d.QueryDelegatorDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorDelegations",tn).then(gn=>d.QueryDelegatorDelegationsResponse.decode(new vt.Reader(gn)))}DelegatorUnbondingDelegations(zt){const tn=d.QueryDelegatorUnbondingDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorUnbondingDelegations",tn).then(gn=>d.QueryDelegatorUnbondingDelegationsResponse.decode(new vt.Reader(gn)))}Redelegations(zt){const tn=d.QueryRedelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Redelegations",tn).then(gn=>d.QueryRedelegationsResponse.decode(new vt.Reader(gn)))}DelegatorValidators(zt){const tn=d.QueryDelegatorValidatorsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidators",tn).then(gn=>d.QueryDelegatorValidatorsResponse.decode(new vt.Reader(gn)))}DelegatorValidator(zt){const tn=d.QueryDelegatorValidatorRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidator",tn).then(gn=>d.QueryDelegatorValidatorResponse.decode(new vt.Reader(gn)))}HistoricalInfo(zt){const tn=d.QueryHistoricalInfoRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","HistoricalInfo",tn).then(gn=>d.QueryHistoricalInfoResponse.decode(new vt.Reader(gn)))}Pool(zt={}){const tn=d.QueryPoolRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Pool",tn).then(gn=>d.QueryPoolResponse.decode(new vt.Reader(gn)))}Params(zt={}){const tn=d.QueryParamsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Params",tn).then(gn=>d.QueryParamsResponse.decode(new vt.Reader(gn)))}}d.QueryClientImpl=dn})(query$a);var __importDefault$s=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(queries$3,"__esModule",{value:!0});queries$3.setupStakingExtension=void 0;const query_1$8=query$a,long_1$f=__importDefault$s(long),queryclient_1$3=queryclient$1;function setupStakingExtension(d){const b=(0,queryclient_1$3.createProtobufRpcClient)(d),dt=new query_1$8.QueryClientImpl(b);return{staking:{delegation:async(ct,lt)=>await dt.Delegation({delegatorAddr:ct,validatorAddr:lt}),delegatorDelegations:async(ct,lt)=>await dt.DelegatorDelegations({delegatorAddr:ct,pagination:(0,queryclient_1$3.createPagination)(lt)}),delegatorUnbondingDelegations:async(ct,lt)=>await dt.DelegatorUnbondingDelegations({delegatorAddr:ct,pagination:(0,queryclient_1$3.createPagination)(lt)}),delegatorValidator:async(ct,lt)=>await dt.DelegatorValidator({delegatorAddr:ct,validatorAddr:lt}),delegatorValidators:async(ct,lt)=>await dt.DelegatorValidators({delegatorAddr:ct,pagination:(0,queryclient_1$3.createPagination)(lt)}),historicalInfo:async ct=>await dt.HistoricalInfo({height:long_1$f.default.fromNumber(ct,!0)}),params:async()=>await dt.Params({}),pool:async()=>await dt.Pool({}),redelegations:async(ct,lt,ht,mt)=>await dt.Redelegations({delegatorAddr:ct,srcValidatorAddr:lt,dstValidatorAddr:ht,pagination:(0,queryclient_1$3.createPagination)(mt)}),unbondingDelegation:async(ct,lt)=>await dt.UnbondingDelegation({delegatorAddr:ct,validatorAddr:lt}),validator:async ct=>await dt.Validator({validatorAddr:ct}),validatorDelegations:async(ct,lt)=>await dt.ValidatorDelegations({validatorAddr:ct,pagination:(0,queryclient_1$3.createPagination)(lt)}),validators:async(ct,lt)=>await dt.Validators({status:ct,pagination:(0,queryclient_1$3.createPagination)(lt)}),validatorUnbondingDelegations:async(ct,lt)=>await dt.ValidatorUnbondingDelegations({validatorAddr:ct,pagination:(0,queryclient_1$3.createPagination)(lt)})}}}queries$3.setupStakingExtension=setupStakingExtension;var queries$2={},service$2={},abci={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt);var jt=Object.getOwnPropertyDescriptor(Bt,Tt);(!jt||("get"in jt?!Bt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Bt[Tt]}}),Object.defineProperty(Et,Mt,jt)}:function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt),Et[Mt]=Bt[Tt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Et,Bt){Object.defineProperty(Et,"default",{enumerable:!0,value:Bt})}:function(Et,Bt){Et.default=Bt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Et){if(Et&&Et.__esModule)return Et;var Bt={};if(Et!=null)for(var Tt in Et)Tt!=="default"&&Object.prototype.hasOwnProperty.call(Et,Tt)&&b(Bt,Et,Tt);return dt(Bt,Et),Bt};Object.defineProperty(d,"__esModule",{value:!0}),d.SearchTxsResult=d.TxMsgData=d.MsgData=d.SimulationResponse=d.Result=d.GasInfo=d.Attribute=d.StringEvent=d.ABCIMessageLog=d.TxResponse=d.protobufPackage=void 0;const lt=any$1,ht=types$d,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.base.abci.v1beta1";function kt(){return{height:mt.Long.ZERO,txhash:"",codespace:"",code:0,data:"",rawLog:"",logs:[],info:"",gasWanted:mt.Long.ZERO,gasUsed:mt.Long.ZERO,tx:void 0,timestamp:"",events:[]}}d.TxResponse={encode(Et,Bt=vt.Writer.create()){Et.height.isZero()||Bt.uint32(8).int64(Et.height),Et.txhash!==""&&Bt.uint32(18).string(Et.txhash),Et.codespace!==""&&Bt.uint32(26).string(Et.codespace),Et.code!==0&&Bt.uint32(32).uint32(Et.code),Et.data!==""&&Bt.uint32(42).string(Et.data),Et.rawLog!==""&&Bt.uint32(50).string(Et.rawLog);for(const Tt of Et.logs)d.ABCIMessageLog.encode(Tt,Bt.uint32(58).fork()).ldelim();Et.info!==""&&Bt.uint32(66).string(Et.info),Et.gasWanted.isZero()||Bt.uint32(72).int64(Et.gasWanted),Et.gasUsed.isZero()||Bt.uint32(80).int64(Et.gasUsed),Et.tx!==void 0&<.Any.encode(Et.tx,Bt.uint32(90).fork()).ldelim(),Et.timestamp!==""&&Bt.uint32(98).string(Et.timestamp);for(const Tt of Et.events)ht.Event.encode(Tt,Bt.uint32(106).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=kt();for(;Tt.pos>>3){case 1:jt.height=Tt.int64();break;case 2:jt.txhash=Tt.string();break;case 3:jt.codespace=Tt.string();break;case 4:jt.code=Tt.uint32();break;case 5:jt.data=Tt.string();break;case 6:jt.rawLog=Tt.string();break;case 7:jt.logs.push(d.ABCIMessageLog.decode(Tt,Tt.uint32()));break;case 8:jt.info=Tt.string();break;case 9:jt.gasWanted=Tt.int64();break;case 10:jt.gasUsed=Tt.int64();break;case 11:jt.tx=lt.Any.decode(Tt,Tt.uint32());break;case 12:jt.timestamp=Tt.string();break;case 13:jt.events.push(ht.Event.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{height:(0,mt.isSet)(Et.height)?mt.Long.fromValue(Et.height):mt.Long.ZERO,txhash:(0,mt.isSet)(Et.txhash)?String(Et.txhash):"",codespace:(0,mt.isSet)(Et.codespace)?String(Et.codespace):"",code:(0,mt.isSet)(Et.code)?Number(Et.code):0,data:(0,mt.isSet)(Et.data)?String(Et.data):"",rawLog:(0,mt.isSet)(Et.rawLog)?String(Et.rawLog):"",logs:Array.isArray(Et==null?void 0:Et.logs)?Et.logs.map(Bt=>d.ABCIMessageLog.fromJSON(Bt)):[],info:(0,mt.isSet)(Et.info)?String(Et.info):"",gasWanted:(0,mt.isSet)(Et.gasWanted)?mt.Long.fromValue(Et.gasWanted):mt.Long.ZERO,gasUsed:(0,mt.isSet)(Et.gasUsed)?mt.Long.fromValue(Et.gasUsed):mt.Long.ZERO,tx:(0,mt.isSet)(Et.tx)?lt.Any.fromJSON(Et.tx):void 0,timestamp:(0,mt.isSet)(Et.timestamp)?String(Et.timestamp):"",events:Array.isArray(Et==null?void 0:Et.events)?Et.events.map(Bt=>ht.Event.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.height!==void 0&&(Bt.height=(Et.height||mt.Long.ZERO).toString()),Et.txhash!==void 0&&(Bt.txhash=Et.txhash),Et.codespace!==void 0&&(Bt.codespace=Et.codespace),Et.code!==void 0&&(Bt.code=Math.round(Et.code)),Et.data!==void 0&&(Bt.data=Et.data),Et.rawLog!==void 0&&(Bt.rawLog=Et.rawLog),Et.logs?Bt.logs=Et.logs.map(Tt=>Tt?d.ABCIMessageLog.toJSON(Tt):void 0):Bt.logs=[],Et.info!==void 0&&(Bt.info=Et.info),Et.gasWanted!==void 0&&(Bt.gasWanted=(Et.gasWanted||mt.Long.ZERO).toString()),Et.gasUsed!==void 0&&(Bt.gasUsed=(Et.gasUsed||mt.Long.ZERO).toString()),Et.tx!==void 0&&(Bt.tx=Et.tx?lt.Any.toJSON(Et.tx):void 0),Et.timestamp!==void 0&&(Bt.timestamp=Et.timestamp),Et.events?Bt.events=Et.events.map(Tt=>Tt?ht.Event.toJSON(Tt):void 0):Bt.events=[],Bt},fromPartial(Et){var Tt,Mt;const Bt=kt();return Bt.height=Et.height!==void 0&&Et.height!==null?mt.Long.fromValue(Et.height):mt.Long.ZERO,Bt.txhash=Et.txhash??"",Bt.codespace=Et.codespace??"",Bt.code=Et.code??0,Bt.data=Et.data??"",Bt.rawLog=Et.rawLog??"",Bt.logs=((Tt=Et.logs)==null?void 0:Tt.map(jt=>d.ABCIMessageLog.fromPartial(jt)))||[],Bt.info=Et.info??"",Bt.gasWanted=Et.gasWanted!==void 0&&Et.gasWanted!==null?mt.Long.fromValue(Et.gasWanted):mt.Long.ZERO,Bt.gasUsed=Et.gasUsed!==void 0&&Et.gasUsed!==null?mt.Long.fromValue(Et.gasUsed):mt.Long.ZERO,Bt.tx=Et.tx!==void 0&&Et.tx!==null?lt.Any.fromPartial(Et.tx):void 0,Bt.timestamp=Et.timestamp??"",Bt.events=((Mt=Et.events)==null?void 0:Mt.map(jt=>ht.Event.fromPartial(jt)))||[],Bt}};function Pt(){return{msgIndex:0,log:"",events:[]}}d.ABCIMessageLog={encode(Et,Bt=vt.Writer.create()){Et.msgIndex!==0&&Bt.uint32(8).uint32(Et.msgIndex),Et.log!==""&&Bt.uint32(18).string(Et.log);for(const Tt of Et.events)d.StringEvent.encode(Tt,Bt.uint32(26).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.msgIndex=Tt.uint32();break;case 2:jt.log=Tt.string();break;case 3:jt.events.push(d.StringEvent.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{msgIndex:(0,mt.isSet)(Et.msgIndex)?Number(Et.msgIndex):0,log:(0,mt.isSet)(Et.log)?String(Et.log):"",events:Array.isArray(Et==null?void 0:Et.events)?Et.events.map(Bt=>d.StringEvent.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.msgIndex!==void 0&&(Bt.msgIndex=Math.round(Et.msgIndex)),Et.log!==void 0&&(Bt.log=Et.log),Et.events?Bt.events=Et.events.map(Tt=>Tt?d.StringEvent.toJSON(Tt):void 0):Bt.events=[],Bt},fromPartial(Et){var Tt;const Bt=Pt();return Bt.msgIndex=Et.msgIndex??0,Bt.log=Et.log??"",Bt.events=((Tt=Et.events)==null?void 0:Tt.map(Mt=>d.StringEvent.fromPartial(Mt)))||[],Bt}};function Jt(){return{type:"",attributes:[]}}d.StringEvent={encode(Et,Bt=vt.Writer.create()){Et.type!==""&&Bt.uint32(10).string(Et.type);for(const Tt of Et.attributes)d.Attribute.encode(Tt,Bt.uint32(18).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){case 1:jt.type=Tt.string();break;case 2:jt.attributes.push(d.Attribute.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{type:(0,mt.isSet)(Et.type)?String(Et.type):"",attributes:Array.isArray(Et==null?void 0:Et.attributes)?Et.attributes.map(Bt=>d.Attribute.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.type!==void 0&&(Bt.type=Et.type),Et.attributes?Bt.attributes=Et.attributes.map(Tt=>Tt?d.Attribute.toJSON(Tt):void 0):Bt.attributes=[],Bt},fromPartial(Et){var Tt;const Bt=Jt();return Bt.type=Et.type??"",Bt.attributes=((Tt=Et.attributes)==null?void 0:Tt.map(Mt=>d.Attribute.fromPartial(Mt)))||[],Bt}};function Zt(){return{key:"",value:""}}d.Attribute={encode(Et,Bt=vt.Writer.create()){return Et.key!==""&&Bt.uint32(10).string(Et.key),Et.value!==""&&Bt.uint32(18).string(Et.value),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.key=Tt.string();break;case 2:jt.value=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{key:(0,mt.isSet)(Et.key)?String(Et.key):"",value:(0,mt.isSet)(Et.value)?String(Et.value):""}},toJSON(Et){const Bt={};return Et.key!==void 0&&(Bt.key=Et.key),Et.value!==void 0&&(Bt.value=Et.value),Bt},fromPartial(Et){const Bt=Zt();return Bt.key=Et.key??"",Bt.value=Et.value??"",Bt}};function Rt(){return{gasWanted:mt.Long.UZERO,gasUsed:mt.Long.UZERO}}d.GasInfo={encode(Et,Bt=vt.Writer.create()){return Et.gasWanted.isZero()||Bt.uint32(8).uint64(Et.gasWanted),Et.gasUsed.isZero()||Bt.uint32(16).uint64(Et.gasUsed),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){case 1:jt.gasWanted=Tt.uint64();break;case 2:jt.gasUsed=Tt.uint64();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{gasWanted:(0,mt.isSet)(Et.gasWanted)?mt.Long.fromValue(Et.gasWanted):mt.Long.UZERO,gasUsed:(0,mt.isSet)(Et.gasUsed)?mt.Long.fromValue(Et.gasUsed):mt.Long.UZERO}},toJSON(Et){const Bt={};return Et.gasWanted!==void 0&&(Bt.gasWanted=(Et.gasWanted||mt.Long.UZERO).toString()),Et.gasUsed!==void 0&&(Bt.gasUsed=(Et.gasUsed||mt.Long.UZERO).toString()),Bt},fromPartial(Et){const Bt=Rt();return Bt.gasWanted=Et.gasWanted!==void 0&&Et.gasWanted!==null?mt.Long.fromValue(Et.gasWanted):mt.Long.UZERO,Bt.gasUsed=Et.gasUsed!==void 0&&Et.gasUsed!==null?mt.Long.fromValue(Et.gasUsed):mt.Long.UZERO,Bt}};function nn(){return{data:new Uint8Array,log:"",events:[],msgResponses:[]}}d.Result={encode(Et,Bt=vt.Writer.create()){Et.data.length!==0&&Bt.uint32(10).bytes(Et.data),Et.log!==""&&Bt.uint32(18).string(Et.log);for(const Tt of Et.events)ht.Event.encode(Tt,Bt.uint32(26).fork()).ldelim();for(const Tt of Et.msgResponses)lt.Any.encode(Tt,Bt.uint32(34).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.data=Tt.bytes();break;case 2:jt.log=Tt.string();break;case 3:jt.events.push(ht.Event.decode(Tt,Tt.uint32()));break;case 4:jt.msgResponses.push(lt.Any.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{data:(0,mt.isSet)(Et.data)?(0,mt.bytesFromBase64)(Et.data):new Uint8Array,log:(0,mt.isSet)(Et.log)?String(Et.log):"",events:Array.isArray(Et==null?void 0:Et.events)?Et.events.map(Bt=>ht.Event.fromJSON(Bt)):[],msgResponses:Array.isArray(Et==null?void 0:Et.msgResponses)?Et.msgResponses.map(Bt=>lt.Any.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.data!==void 0&&(Bt.data=(0,mt.base64FromBytes)(Et.data!==void 0?Et.data:new Uint8Array)),Et.log!==void 0&&(Bt.log=Et.log),Et.events?Bt.events=Et.events.map(Tt=>Tt?ht.Event.toJSON(Tt):void 0):Bt.events=[],Et.msgResponses?Bt.msgResponses=Et.msgResponses.map(Tt=>Tt?lt.Any.toJSON(Tt):void 0):Bt.msgResponses=[],Bt},fromPartial(Et){var Tt,Mt;const Bt=nn();return Bt.data=Et.data??new Uint8Array,Bt.log=Et.log??"",Bt.events=((Tt=Et.events)==null?void 0:Tt.map(jt=>ht.Event.fromPartial(jt)))||[],Bt.msgResponses=((Mt=Et.msgResponses)==null?void 0:Mt.map(jt=>lt.Any.fromPartial(jt)))||[],Bt}};function Qt(){return{gasInfo:void 0,result:void 0}}d.SimulationResponse={encode(Et,Bt=vt.Writer.create()){return Et.gasInfo!==void 0&&d.GasInfo.encode(Et.gasInfo,Bt.uint32(10).fork()).ldelim(),Et.result!==void 0&&d.Result.encode(Et.result,Bt.uint32(18).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){case 1:jt.gasInfo=d.GasInfo.decode(Tt,Tt.uint32());break;case 2:jt.result=d.Result.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{gasInfo:(0,mt.isSet)(Et.gasInfo)?d.GasInfo.fromJSON(Et.gasInfo):void 0,result:(0,mt.isSet)(Et.result)?d.Result.fromJSON(Et.result):void 0}},toJSON(Et){const Bt={};return Et.gasInfo!==void 0&&(Bt.gasInfo=Et.gasInfo?d.GasInfo.toJSON(Et.gasInfo):void 0),Et.result!==void 0&&(Bt.result=Et.result?d.Result.toJSON(Et.result):void 0),Bt},fromPartial(Et){const Bt=Qt();return Bt.gasInfo=Et.gasInfo!==void 0&&Et.gasInfo!==null?d.GasInfo.fromPartial(Et.gasInfo):void 0,Bt.result=Et.result!==void 0&&Et.result!==null?d.Result.fromPartial(Et.result):void 0,Bt}};function wt(){return{msgType:"",data:new Uint8Array}}d.MsgData={encode(Et,Bt=vt.Writer.create()){return Et.msgType!==""&&Bt.uint32(10).string(Et.msgType),Et.data.length!==0&&Bt.uint32(18).bytes(Et.data),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.msgType=Tt.string();break;case 2:jt.data=Tt.bytes();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{msgType:(0,mt.isSet)(Et.msgType)?String(Et.msgType):"",data:(0,mt.isSet)(Et.data)?(0,mt.bytesFromBase64)(Et.data):new Uint8Array}},toJSON(Et){const Bt={};return Et.msgType!==void 0&&(Bt.msgType=Et.msgType),Et.data!==void 0&&(Bt.data=(0,mt.base64FromBytes)(Et.data!==void 0?Et.data:new Uint8Array)),Bt},fromPartial(Et){const Bt=wt();return Bt.msgType=Et.msgType??"",Bt.data=Et.data??new Uint8Array,Bt}};function Nt(){return{data:[],msgResponses:[]}}d.TxMsgData={encode(Et,Bt=vt.Writer.create()){for(const Tt of Et.data)d.MsgData.encode(Tt,Bt.uint32(10).fork()).ldelim();for(const Tt of Et.msgResponses)lt.Any.encode(Tt,Bt.uint32(18).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Nt();for(;Tt.pos>>3){case 1:jt.data.push(d.MsgData.decode(Tt,Tt.uint32()));break;case 2:jt.msgResponses.push(lt.Any.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{data:Array.isArray(Et==null?void 0:Et.data)?Et.data.map(Bt=>d.MsgData.fromJSON(Bt)):[],msgResponses:Array.isArray(Et==null?void 0:Et.msgResponses)?Et.msgResponses.map(Bt=>lt.Any.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.data?Bt.data=Et.data.map(Tt=>Tt?d.MsgData.toJSON(Tt):void 0):Bt.data=[],Et.msgResponses?Bt.msgResponses=Et.msgResponses.map(Tt=>Tt?lt.Any.toJSON(Tt):void 0):Bt.msgResponses=[],Bt},fromPartial(Et){var Tt,Mt;const Bt=Nt();return Bt.data=((Tt=Et.data)==null?void 0:Tt.map(jt=>d.MsgData.fromPartial(jt)))||[],Bt.msgResponses=((Mt=Et.msgResponses)==null?void 0:Mt.map(jt=>lt.Any.fromPartial(jt)))||[],Bt}};function xt(){return{totalCount:mt.Long.UZERO,count:mt.Long.UZERO,pageNumber:mt.Long.UZERO,pageTotal:mt.Long.UZERO,limit:mt.Long.UZERO,txs:[]}}d.SearchTxsResult={encode(Et,Bt=vt.Writer.create()){Et.totalCount.isZero()||Bt.uint32(8).uint64(Et.totalCount),Et.count.isZero()||Bt.uint32(16).uint64(Et.count),Et.pageNumber.isZero()||Bt.uint32(24).uint64(Et.pageNumber),Et.pageTotal.isZero()||Bt.uint32(32).uint64(Et.pageTotal),Et.limit.isZero()||Bt.uint32(40).uint64(Et.limit);for(const Tt of Et.txs)d.TxResponse.encode(Tt,Bt.uint32(50).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=xt();for(;Tt.pos>>3){case 1:jt.totalCount=Tt.uint64();break;case 2:jt.count=Tt.uint64();break;case 3:jt.pageNumber=Tt.uint64();break;case 4:jt.pageTotal=Tt.uint64();break;case 5:jt.limit=Tt.uint64();break;case 6:jt.txs.push(d.TxResponse.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{totalCount:(0,mt.isSet)(Et.totalCount)?mt.Long.fromValue(Et.totalCount):mt.Long.UZERO,count:(0,mt.isSet)(Et.count)?mt.Long.fromValue(Et.count):mt.Long.UZERO,pageNumber:(0,mt.isSet)(Et.pageNumber)?mt.Long.fromValue(Et.pageNumber):mt.Long.UZERO,pageTotal:(0,mt.isSet)(Et.pageTotal)?mt.Long.fromValue(Et.pageTotal):mt.Long.UZERO,limit:(0,mt.isSet)(Et.limit)?mt.Long.fromValue(Et.limit):mt.Long.UZERO,txs:Array.isArray(Et==null?void 0:Et.txs)?Et.txs.map(Bt=>d.TxResponse.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.totalCount!==void 0&&(Bt.totalCount=(Et.totalCount||mt.Long.UZERO).toString()),Et.count!==void 0&&(Bt.count=(Et.count||mt.Long.UZERO).toString()),Et.pageNumber!==void 0&&(Bt.pageNumber=(Et.pageNumber||mt.Long.UZERO).toString()),Et.pageTotal!==void 0&&(Bt.pageTotal=(Et.pageTotal||mt.Long.UZERO).toString()),Et.limit!==void 0&&(Bt.limit=(Et.limit||mt.Long.UZERO).toString()),Et.txs?Bt.txs=Et.txs.map(Tt=>Tt?d.TxResponse.toJSON(Tt):void 0):Bt.txs=[],Bt},fromPartial(Et){var Tt;const Bt=xt();return Bt.totalCount=Et.totalCount!==void 0&&Et.totalCount!==null?mt.Long.fromValue(Et.totalCount):mt.Long.UZERO,Bt.count=Et.count!==void 0&&Et.count!==null?mt.Long.fromValue(Et.count):mt.Long.UZERO,Bt.pageNumber=Et.pageNumber!==void 0&&Et.pageNumber!==null?mt.Long.fromValue(Et.pageNumber):mt.Long.UZERO,Bt.pageTotal=Et.pageTotal!==void 0&&Et.pageTotal!==null?mt.Long.fromValue(Et.pageTotal):mt.Long.UZERO,Bt.limit=Et.limit!==void 0&&Et.limit!==null?mt.Long.fromValue(Et.limit):mt.Long.UZERO,Bt.txs=((Tt=Et.txs)==null?void 0:Tt.map(Mt=>d.TxResponse.fromPartial(Mt)))||[],Bt}}})(abci);var block={},evidence={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt);var xt=Object.getOwnPropertyDescriptor(Qt,wt);(!xt||("get"in xt?!Qt.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return Qt[wt]}}),Object.defineProperty(nn,Nt,xt)}:function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt),nn[Nt]=Qt[wt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(nn,Qt){Object.defineProperty(nn,"default",{enumerable:!0,value:Qt})}:function(nn,Qt){nn.default=Qt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(nn){if(nn&&nn.__esModule)return nn;var Qt={};if(nn!=null)for(var wt in nn)wt!=="default"&&Object.prototype.hasOwnProperty.call(nn,wt)&&b(Qt,nn,wt);return dt(Qt,nn),Qt};Object.defineProperty(d,"__esModule",{value:!0}),d.EvidenceList=d.LightClientAttackEvidence=d.DuplicateVoteEvidence=d.Evidence=d.protobufPackage=void 0;const lt=types$f,ht=timestamp$1,mt=validator$4,vt=helpers$1,kt=ct(minimal$4);d.protobufPackage="tendermint.types";function Pt(){return{duplicateVoteEvidence:void 0,lightClientAttackEvidence:void 0}}d.Evidence={encode(nn,Qt=kt.Writer.create()){return nn.duplicateVoteEvidence!==void 0&&d.DuplicateVoteEvidence.encode(nn.duplicateVoteEvidence,Qt.uint32(10).fork()).ldelim(),nn.lightClientAttackEvidence!==void 0&&d.LightClientAttackEvidence.encode(nn.lightClientAttackEvidence,Qt.uint32(18).fork()).ldelim(),Qt},decode(nn,Qt){const wt=nn instanceof kt.Reader?nn:new kt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Pt();for(;wt.pos>>3){case 1:xt.duplicateVoteEvidence=d.DuplicateVoteEvidence.decode(wt,wt.uint32());break;case 2:xt.lightClientAttackEvidence=d.LightClientAttackEvidence.decode(wt,wt.uint32());break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{duplicateVoteEvidence:(0,vt.isSet)(nn.duplicateVoteEvidence)?d.DuplicateVoteEvidence.fromJSON(nn.duplicateVoteEvidence):void 0,lightClientAttackEvidence:(0,vt.isSet)(nn.lightClientAttackEvidence)?d.LightClientAttackEvidence.fromJSON(nn.lightClientAttackEvidence):void 0}},toJSON(nn){const Qt={};return nn.duplicateVoteEvidence!==void 0&&(Qt.duplicateVoteEvidence=nn.duplicateVoteEvidence?d.DuplicateVoteEvidence.toJSON(nn.duplicateVoteEvidence):void 0),nn.lightClientAttackEvidence!==void 0&&(Qt.lightClientAttackEvidence=nn.lightClientAttackEvidence?d.LightClientAttackEvidence.toJSON(nn.lightClientAttackEvidence):void 0),Qt},fromPartial(nn){const Qt=Pt();return Qt.duplicateVoteEvidence=nn.duplicateVoteEvidence!==void 0&&nn.duplicateVoteEvidence!==null?d.DuplicateVoteEvidence.fromPartial(nn.duplicateVoteEvidence):void 0,Qt.lightClientAttackEvidence=nn.lightClientAttackEvidence!==void 0&&nn.lightClientAttackEvidence!==null?d.LightClientAttackEvidence.fromPartial(nn.lightClientAttackEvidence):void 0,Qt}};function Jt(){return{voteA:void 0,voteB:void 0,totalVotingPower:vt.Long.ZERO,validatorPower:vt.Long.ZERO,timestamp:void 0}}d.DuplicateVoteEvidence={encode(nn,Qt=kt.Writer.create()){return nn.voteA!==void 0&<.Vote.encode(nn.voteA,Qt.uint32(10).fork()).ldelim(),nn.voteB!==void 0&<.Vote.encode(nn.voteB,Qt.uint32(18).fork()).ldelim(),nn.totalVotingPower.isZero()||Qt.uint32(24).int64(nn.totalVotingPower),nn.validatorPower.isZero()||Qt.uint32(32).int64(nn.validatorPower),nn.timestamp!==void 0&&ht.Timestamp.encode(nn.timestamp,Qt.uint32(42).fork()).ldelim(),Qt},decode(nn,Qt){const wt=nn instanceof kt.Reader?nn:new kt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Jt();for(;wt.pos>>3){case 1:xt.voteA=lt.Vote.decode(wt,wt.uint32());break;case 2:xt.voteB=lt.Vote.decode(wt,wt.uint32());break;case 3:xt.totalVotingPower=wt.int64();break;case 4:xt.validatorPower=wt.int64();break;case 5:xt.timestamp=ht.Timestamp.decode(wt,wt.uint32());break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{voteA:(0,vt.isSet)(nn.voteA)?lt.Vote.fromJSON(nn.voteA):void 0,voteB:(0,vt.isSet)(nn.voteB)?lt.Vote.fromJSON(nn.voteB):void 0,totalVotingPower:(0,vt.isSet)(nn.totalVotingPower)?vt.Long.fromValue(nn.totalVotingPower):vt.Long.ZERO,validatorPower:(0,vt.isSet)(nn.validatorPower)?vt.Long.fromValue(nn.validatorPower):vt.Long.ZERO,timestamp:(0,vt.isSet)(nn.timestamp)?(0,vt.fromJsonTimestamp)(nn.timestamp):void 0}},toJSON(nn){const Qt={};return nn.voteA!==void 0&&(Qt.voteA=nn.voteA?lt.Vote.toJSON(nn.voteA):void 0),nn.voteB!==void 0&&(Qt.voteB=nn.voteB?lt.Vote.toJSON(nn.voteB):void 0),nn.totalVotingPower!==void 0&&(Qt.totalVotingPower=(nn.totalVotingPower||vt.Long.ZERO).toString()),nn.validatorPower!==void 0&&(Qt.validatorPower=(nn.validatorPower||vt.Long.ZERO).toString()),nn.timestamp!==void 0&&(Qt.timestamp=(0,vt.fromTimestamp)(nn.timestamp).toISOString()),Qt},fromPartial(nn){const Qt=Jt();return Qt.voteA=nn.voteA!==void 0&&nn.voteA!==null?lt.Vote.fromPartial(nn.voteA):void 0,Qt.voteB=nn.voteB!==void 0&&nn.voteB!==null?lt.Vote.fromPartial(nn.voteB):void 0,Qt.totalVotingPower=nn.totalVotingPower!==void 0&&nn.totalVotingPower!==null?vt.Long.fromValue(nn.totalVotingPower):vt.Long.ZERO,Qt.validatorPower=nn.validatorPower!==void 0&&nn.validatorPower!==null?vt.Long.fromValue(nn.validatorPower):vt.Long.ZERO,Qt.timestamp=nn.timestamp!==void 0&&nn.timestamp!==null?ht.Timestamp.fromPartial(nn.timestamp):void 0,Qt}};function Zt(){return{conflictingBlock:void 0,commonHeight:vt.Long.ZERO,byzantineValidators:[],totalVotingPower:vt.Long.ZERO,timestamp:void 0}}d.LightClientAttackEvidence={encode(nn,Qt=kt.Writer.create()){nn.conflictingBlock!==void 0&<.LightBlock.encode(nn.conflictingBlock,Qt.uint32(10).fork()).ldelim(),nn.commonHeight.isZero()||Qt.uint32(16).int64(nn.commonHeight);for(const wt of nn.byzantineValidators)mt.Validator.encode(wt,Qt.uint32(26).fork()).ldelim();return nn.totalVotingPower.isZero()||Qt.uint32(32).int64(nn.totalVotingPower),nn.timestamp!==void 0&&ht.Timestamp.encode(nn.timestamp,Qt.uint32(42).fork()).ldelim(),Qt},decode(nn,Qt){const wt=nn instanceof kt.Reader?nn:new kt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Zt();for(;wt.pos>>3){case 1:xt.conflictingBlock=lt.LightBlock.decode(wt,wt.uint32());break;case 2:xt.commonHeight=wt.int64();break;case 3:xt.byzantineValidators.push(mt.Validator.decode(wt,wt.uint32()));break;case 4:xt.totalVotingPower=wt.int64();break;case 5:xt.timestamp=ht.Timestamp.decode(wt,wt.uint32());break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{conflictingBlock:(0,vt.isSet)(nn.conflictingBlock)?lt.LightBlock.fromJSON(nn.conflictingBlock):void 0,commonHeight:(0,vt.isSet)(nn.commonHeight)?vt.Long.fromValue(nn.commonHeight):vt.Long.ZERO,byzantineValidators:Array.isArray(nn==null?void 0:nn.byzantineValidators)?nn.byzantineValidators.map(Qt=>mt.Validator.fromJSON(Qt)):[],totalVotingPower:(0,vt.isSet)(nn.totalVotingPower)?vt.Long.fromValue(nn.totalVotingPower):vt.Long.ZERO,timestamp:(0,vt.isSet)(nn.timestamp)?(0,vt.fromJsonTimestamp)(nn.timestamp):void 0}},toJSON(nn){const Qt={};return nn.conflictingBlock!==void 0&&(Qt.conflictingBlock=nn.conflictingBlock?lt.LightBlock.toJSON(nn.conflictingBlock):void 0),nn.commonHeight!==void 0&&(Qt.commonHeight=(nn.commonHeight||vt.Long.ZERO).toString()),nn.byzantineValidators?Qt.byzantineValidators=nn.byzantineValidators.map(wt=>wt?mt.Validator.toJSON(wt):void 0):Qt.byzantineValidators=[],nn.totalVotingPower!==void 0&&(Qt.totalVotingPower=(nn.totalVotingPower||vt.Long.ZERO).toString()),nn.timestamp!==void 0&&(Qt.timestamp=(0,vt.fromTimestamp)(nn.timestamp).toISOString()),Qt},fromPartial(nn){var wt;const Qt=Zt();return Qt.conflictingBlock=nn.conflictingBlock!==void 0&&nn.conflictingBlock!==null?lt.LightBlock.fromPartial(nn.conflictingBlock):void 0,Qt.commonHeight=nn.commonHeight!==void 0&&nn.commonHeight!==null?vt.Long.fromValue(nn.commonHeight):vt.Long.ZERO,Qt.byzantineValidators=((wt=nn.byzantineValidators)==null?void 0:wt.map(Nt=>mt.Validator.fromPartial(Nt)))||[],Qt.totalVotingPower=nn.totalVotingPower!==void 0&&nn.totalVotingPower!==null?vt.Long.fromValue(nn.totalVotingPower):vt.Long.ZERO,Qt.timestamp=nn.timestamp!==void 0&&nn.timestamp!==null?ht.Timestamp.fromPartial(nn.timestamp):void 0,Qt}};function Rt(){return{evidence:[]}}d.EvidenceList={encode(nn,Qt=kt.Writer.create()){for(const wt of nn.evidence)d.Evidence.encode(wt,Qt.uint32(10).fork()).ldelim();return Qt},decode(nn,Qt){const wt=nn instanceof kt.Reader?nn:new kt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Rt();for(;wt.pos>>3){case 1:xt.evidence.push(d.Evidence.decode(wt,wt.uint32()));break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{evidence:Array.isArray(nn==null?void 0:nn.evidence)?nn.evidence.map(Qt=>d.Evidence.fromJSON(Qt)):[]}},toJSON(nn){const Qt={};return nn.evidence?Qt.evidence=nn.evidence.map(wt=>wt?d.Evidence.toJSON(wt):void 0):Qt.evidence=[],Qt},fromPartial(nn){var wt;const Qt=Rt();return Qt.evidence=((wt=nn.evidence)==null?void 0:wt.map(Nt=>d.Evidence.fromPartial(Nt)))||[],Qt}}})(evidence);var __createBinding$g=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$g=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$g=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$g(b,d,dt);return __setModuleDefault$g(b,d),b};Object.defineProperty(block,"__esModule",{value:!0});block.Block=block.protobufPackage=void 0;const types_1$6=types$f,evidence_1=evidence,_m0$a=__importStar$g(minimal$4),helpers_1$9=helpers$1;block.protobufPackage="tendermint.types";function createBaseBlock(){return{header:void 0,data:void 0,evidence:void 0,lastCommit:void 0}}block.Block={encode(d,b=_m0$a.Writer.create()){return d.header!==void 0&&types_1$6.Header.encode(d.header,b.uint32(10).fork()).ldelim(),d.data!==void 0&&types_1$6.Data.encode(d.data,b.uint32(18).fork()).ldelim(),d.evidence!==void 0&&evidence_1.EvidenceList.encode(d.evidence,b.uint32(26).fork()).ldelim(),d.lastCommit!==void 0&&types_1$6.Commit.encode(d.lastCommit,b.uint32(34).fork()).ldelim(),b},decode(d,b){const dt=d instanceof _m0$a.Reader?d:new _m0$a.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseBlock();for(;dt.pos>>3){case 1:lt.header=types_1$6.Header.decode(dt,dt.uint32());break;case 2:lt.data=types_1$6.Data.decode(dt,dt.uint32());break;case 3:lt.evidence=evidence_1.EvidenceList.decode(dt,dt.uint32());break;case 4:lt.lastCommit=types_1$6.Commit.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{header:(0,helpers_1$9.isSet)(d.header)?types_1$6.Header.fromJSON(d.header):void 0,data:(0,helpers_1$9.isSet)(d.data)?types_1$6.Data.fromJSON(d.data):void 0,evidence:(0,helpers_1$9.isSet)(d.evidence)?evidence_1.EvidenceList.fromJSON(d.evidence):void 0,lastCommit:(0,helpers_1$9.isSet)(d.lastCommit)?types_1$6.Commit.fromJSON(d.lastCommit):void 0}},toJSON(d){const b={};return d.header!==void 0&&(b.header=d.header?types_1$6.Header.toJSON(d.header):void 0),d.data!==void 0&&(b.data=d.data?types_1$6.Data.toJSON(d.data):void 0),d.evidence!==void 0&&(b.evidence=d.evidence?evidence_1.EvidenceList.toJSON(d.evidence):void 0),d.lastCommit!==void 0&&(b.lastCommit=d.lastCommit?types_1$6.Commit.toJSON(d.lastCommit):void 0),b},fromPartial(d){const b=createBaseBlock();return b.header=d.header!==void 0&&d.header!==null?types_1$6.Header.fromPartial(d.header):void 0,b.data=d.data!==void 0&&d.data!==null?types_1$6.Data.fromPartial(d.data):void 0,b.evidence=d.evidence!==void 0&&d.evidence!==null?evidence_1.EvidenceList.fromPartial(d.evidence):void 0,b.lastCommit=d.lastCommit!==void 0&&d.lastCommit!==null?types_1$6.Commit.fromPartial(d.lastCommit):void 0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(dn,Dt,zt,tn){tn===void 0&&(tn=zt);var An=Object.getOwnPropertyDescriptor(Dt,zt);(!An||("get"in An?!Dt.__esModule:An.writable||An.configurable))&&(An={enumerable:!0,get:function(){return Dt[zt]}}),Object.defineProperty(dn,tn,An)}:function(dn,Dt,zt,tn){tn===void 0&&(tn=zt),dn[tn]=Dt[zt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(dn,Dt){Object.defineProperty(dn,"default",{enumerable:!0,value:Dt})}:function(dn,Dt){dn.default=Dt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(dn){if(dn&&dn.__esModule)return dn;var Dt={};if(dn!=null)for(var zt in dn)zt!=="default"&&Object.prototype.hasOwnProperty.call(dn,zt)&&b(Dt,dn,zt);return dt(Dt,dn),Dt};Object.defineProperty(d,"__esModule",{value:!0}),d.ServiceClientImpl=d.TxDecodeAminoResponse=d.TxDecodeAminoRequest=d.TxEncodeAminoResponse=d.TxEncodeAminoRequest=d.TxEncodeResponse=d.TxEncodeRequest=d.TxDecodeResponse=d.TxDecodeRequest=d.GetBlockWithTxsResponse=d.GetBlockWithTxsRequest=d.GetTxResponse=d.GetTxRequest=d.SimulateResponse=d.SimulateRequest=d.BroadcastTxResponse=d.BroadcastTxRequest=d.GetTxsEventResponse=d.GetTxsEventRequest=d.broadcastModeToJSON=d.broadcastModeFromJSON=d.BroadcastMode=d.orderByToJSON=d.orderByFromJSON=d.OrderBy=d.protobufPackage=void 0;const lt=tx$r,ht=pagination$3,mt=abci,vt=types$f,kt=block,Pt=helpers$1,Jt=ct(minimal$4);d.protobufPackage="cosmos.tx.v1beta1";var Zt;(function(dn){dn[dn.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",dn[dn.ORDER_BY_ASC=1]="ORDER_BY_ASC",dn[dn.ORDER_BY_DESC=2]="ORDER_BY_DESC",dn[dn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zt=d.OrderBy||(d.OrderBy={}));function Rt(dn){switch(dn){case 0:case"ORDER_BY_UNSPECIFIED":return Zt.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return Zt.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return Zt.ORDER_BY_DESC;case-1:case"UNRECOGNIZED":default:return Zt.UNRECOGNIZED}}d.orderByFromJSON=Rt;function nn(dn){switch(dn){case Zt.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case Zt.ORDER_BY_ASC:return"ORDER_BY_ASC";case Zt.ORDER_BY_DESC:return"ORDER_BY_DESC";case Zt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.orderByToJSON=nn;var Qt;(function(dn){dn[dn.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",dn[dn.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",dn[dn.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",dn[dn.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",dn[dn.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qt=d.BroadcastMode||(d.BroadcastMode={}));function wt(dn){switch(dn){case 0:case"BROADCAST_MODE_UNSPECIFIED":return Qt.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return Qt.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return Qt.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return Qt.BROADCAST_MODE_ASYNC;case-1:case"UNRECOGNIZED":default:return Qt.UNRECOGNIZED}}d.broadcastModeFromJSON=wt;function Nt(dn){switch(dn){case Qt.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case Qt.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case Qt.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case Qt.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";case Qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.broadcastModeToJSON=Nt;function xt(){return{events:[],pagination:void 0,orderBy:0,page:Pt.Long.UZERO,limit:Pt.Long.UZERO}}d.GetTxsEventRequest={encode(dn,Dt=Jt.Writer.create()){for(const zt of dn.events)Dt.uint32(10).string(zt);return dn.pagination!==void 0&&ht.PageRequest.encode(dn.pagination,Dt.uint32(18).fork()).ldelim(),dn.orderBy!==0&&Dt.uint32(24).int32(dn.orderBy),dn.page.isZero()||Dt.uint32(32).uint64(dn.page),dn.limit.isZero()||Dt.uint32(40).uint64(dn.limit),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=xt();for(;zt.pos>>3){case 1:An.events.push(zt.string());break;case 2:An.pagination=ht.PageRequest.decode(zt,zt.uint32());break;case 3:An.orderBy=zt.int32();break;case 4:An.page=zt.uint64();break;case 5:An.limit=zt.uint64();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{events:Array.isArray(dn==null?void 0:dn.events)?dn.events.map(Dt=>String(Dt)):[],pagination:(0,Pt.isSet)(dn.pagination)?ht.PageRequest.fromJSON(dn.pagination):void 0,orderBy:(0,Pt.isSet)(dn.orderBy)?Rt(dn.orderBy):0,page:(0,Pt.isSet)(dn.page)?Pt.Long.fromValue(dn.page):Pt.Long.UZERO,limit:(0,Pt.isSet)(dn.limit)?Pt.Long.fromValue(dn.limit):Pt.Long.UZERO}},toJSON(dn){const Dt={};return dn.events?Dt.events=dn.events.map(zt=>zt):Dt.events=[],dn.pagination!==void 0&&(Dt.pagination=dn.pagination?ht.PageRequest.toJSON(dn.pagination):void 0),dn.orderBy!==void 0&&(Dt.orderBy=nn(dn.orderBy)),dn.page!==void 0&&(Dt.page=(dn.page||Pt.Long.UZERO).toString()),dn.limit!==void 0&&(Dt.limit=(dn.limit||Pt.Long.UZERO).toString()),Dt},fromPartial(dn){var zt;const Dt=xt();return Dt.events=((zt=dn.events)==null?void 0:zt.map(tn=>tn))||[],Dt.pagination=dn.pagination!==void 0&&dn.pagination!==null?ht.PageRequest.fromPartial(dn.pagination):void 0,Dt.orderBy=dn.orderBy??0,Dt.page=dn.page!==void 0&&dn.page!==null?Pt.Long.fromValue(dn.page):Pt.Long.UZERO,Dt.limit=dn.limit!==void 0&&dn.limit!==null?Pt.Long.fromValue(dn.limit):Pt.Long.UZERO,Dt}};function Et(){return{txs:[],txResponses:[],pagination:void 0,total:Pt.Long.UZERO}}d.GetTxsEventResponse={encode(dn,Dt=Jt.Writer.create()){for(const zt of dn.txs)lt.Tx.encode(zt,Dt.uint32(10).fork()).ldelim();for(const zt of dn.txResponses)mt.TxResponse.encode(zt,Dt.uint32(18).fork()).ldelim();return dn.pagination!==void 0&&ht.PageResponse.encode(dn.pagination,Dt.uint32(26).fork()).ldelim(),dn.total.isZero()||Dt.uint32(32).uint64(dn.total),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Et();for(;zt.pos>>3){case 1:An.txs.push(lt.Tx.decode(zt,zt.uint32()));break;case 2:An.txResponses.push(mt.TxResponse.decode(zt,zt.uint32()));break;case 3:An.pagination=ht.PageResponse.decode(zt,zt.uint32());break;case 4:An.total=zt.uint64();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{txs:Array.isArray(dn==null?void 0:dn.txs)?dn.txs.map(Dt=>lt.Tx.fromJSON(Dt)):[],txResponses:Array.isArray(dn==null?void 0:dn.txResponses)?dn.txResponses.map(Dt=>mt.TxResponse.fromJSON(Dt)):[],pagination:(0,Pt.isSet)(dn.pagination)?ht.PageResponse.fromJSON(dn.pagination):void 0,total:(0,Pt.isSet)(dn.total)?Pt.Long.fromValue(dn.total):Pt.Long.UZERO}},toJSON(dn){const Dt={};return dn.txs?Dt.txs=dn.txs.map(zt=>zt?lt.Tx.toJSON(zt):void 0):Dt.txs=[],dn.txResponses?Dt.txResponses=dn.txResponses.map(zt=>zt?mt.TxResponse.toJSON(zt):void 0):Dt.txResponses=[],dn.pagination!==void 0&&(Dt.pagination=dn.pagination?ht.PageResponse.toJSON(dn.pagination):void 0),dn.total!==void 0&&(Dt.total=(dn.total||Pt.Long.UZERO).toString()),Dt},fromPartial(dn){var zt,tn;const Dt=Et();return Dt.txs=((zt=dn.txs)==null?void 0:zt.map(An=>lt.Tx.fromPartial(An)))||[],Dt.txResponses=((tn=dn.txResponses)==null?void 0:tn.map(An=>mt.TxResponse.fromPartial(An)))||[],Dt.pagination=dn.pagination!==void 0&&dn.pagination!==null?ht.PageResponse.fromPartial(dn.pagination):void 0,Dt.total=dn.total!==void 0&&dn.total!==null?Pt.Long.fromValue(dn.total):Pt.Long.UZERO,Dt}};function Bt(){return{txBytes:new Uint8Array,mode:0}}d.BroadcastTxRequest={encode(dn,Dt=Jt.Writer.create()){return dn.txBytes.length!==0&&Dt.uint32(10).bytes(dn.txBytes),dn.mode!==0&&Dt.uint32(16).int32(dn.mode),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Bt();for(;zt.pos>>3){case 1:An.txBytes=zt.bytes();break;case 2:An.mode=zt.int32();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{txBytes:(0,Pt.isSet)(dn.txBytes)?(0,Pt.bytesFromBase64)(dn.txBytes):new Uint8Array,mode:(0,Pt.isSet)(dn.mode)?wt(dn.mode):0}},toJSON(dn){const Dt={};return dn.txBytes!==void 0&&(Dt.txBytes=(0,Pt.base64FromBytes)(dn.txBytes!==void 0?dn.txBytes:new Uint8Array)),dn.mode!==void 0&&(Dt.mode=Nt(dn.mode)),Dt},fromPartial(dn){const Dt=Bt();return Dt.txBytes=dn.txBytes??new Uint8Array,Dt.mode=dn.mode??0,Dt}};function Tt(){return{txResponse:void 0}}d.BroadcastTxResponse={encode(dn,Dt=Jt.Writer.create()){return dn.txResponse!==void 0&&mt.TxResponse.encode(dn.txResponse,Dt.uint32(10).fork()).ldelim(),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Tt();for(;zt.pos>>3){case 1:An.txResponse=mt.TxResponse.decode(zt,zt.uint32());break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{txResponse:(0,Pt.isSet)(dn.txResponse)?mt.TxResponse.fromJSON(dn.txResponse):void 0}},toJSON(dn){const Dt={};return dn.txResponse!==void 0&&(Dt.txResponse=dn.txResponse?mt.TxResponse.toJSON(dn.txResponse):void 0),Dt},fromPartial(dn){const Dt=Tt();return Dt.txResponse=dn.txResponse!==void 0&&dn.txResponse!==null?mt.TxResponse.fromPartial(dn.txResponse):void 0,Dt}};function Mt(){return{tx:void 0,txBytes:new Uint8Array}}d.SimulateRequest={encode(dn,Dt=Jt.Writer.create()){return dn.tx!==void 0&<.Tx.encode(dn.tx,Dt.uint32(10).fork()).ldelim(),dn.txBytes.length!==0&&Dt.uint32(18).bytes(dn.txBytes),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Mt();for(;zt.pos>>3){case 1:An.tx=lt.Tx.decode(zt,zt.uint32());break;case 2:An.txBytes=zt.bytes();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{tx:(0,Pt.isSet)(dn.tx)?lt.Tx.fromJSON(dn.tx):void 0,txBytes:(0,Pt.isSet)(dn.txBytes)?(0,Pt.bytesFromBase64)(dn.txBytes):new Uint8Array}},toJSON(dn){const Dt={};return dn.tx!==void 0&&(Dt.tx=dn.tx?lt.Tx.toJSON(dn.tx):void 0),dn.txBytes!==void 0&&(Dt.txBytes=(0,Pt.base64FromBytes)(dn.txBytes!==void 0?dn.txBytes:new Uint8Array)),Dt},fromPartial(dn){const Dt=Mt();return Dt.tx=dn.tx!==void 0&&dn.tx!==null?lt.Tx.fromPartial(dn.tx):void 0,Dt.txBytes=dn.txBytes??new Uint8Array,Dt}};function jt(){return{gasInfo:void 0,result:void 0}}d.SimulateResponse={encode(dn,Dt=Jt.Writer.create()){return dn.gasInfo!==void 0&&mt.GasInfo.encode(dn.gasInfo,Dt.uint32(10).fork()).ldelim(),dn.result!==void 0&&mt.Result.encode(dn.result,Dt.uint32(18).fork()).ldelim(),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=jt();for(;zt.pos>>3){case 1:An.gasInfo=mt.GasInfo.decode(zt,zt.uint32());break;case 2:An.result=mt.Result.decode(zt,zt.uint32());break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{gasInfo:(0,Pt.isSet)(dn.gasInfo)?mt.GasInfo.fromJSON(dn.gasInfo):void 0,result:(0,Pt.isSet)(dn.result)?mt.Result.fromJSON(dn.result):void 0}},toJSON(dn){const Dt={};return dn.gasInfo!==void 0&&(Dt.gasInfo=dn.gasInfo?mt.GasInfo.toJSON(dn.gasInfo):void 0),dn.result!==void 0&&(Dt.result=dn.result?mt.Result.toJSON(dn.result):void 0),Dt},fromPartial(dn){const Dt=jt();return Dt.gasInfo=dn.gasInfo!==void 0&&dn.gasInfo!==null?mt.GasInfo.fromPartial(dn.gasInfo):void 0,Dt.result=dn.result!==void 0&&dn.result!==null?mt.Result.fromPartial(dn.result):void 0,Dt}};function Ht(){return{hash:""}}d.GetTxRequest={encode(dn,Dt=Jt.Writer.create()){return dn.hash!==""&&Dt.uint32(10).string(dn.hash),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Ht();for(;zt.pos>>3){case 1:An.hash=zt.string();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{hash:(0,Pt.isSet)(dn.hash)?String(dn.hash):""}},toJSON(dn){const Dt={};return dn.hash!==void 0&&(Dt.hash=dn.hash),Dt},fromPartial(dn){const Dt=Ht();return Dt.hash=dn.hash??"",Dt}};function an(){return{tx:void 0,txResponse:void 0}}d.GetTxResponse={encode(dn,Dt=Jt.Writer.create()){return dn.tx!==void 0&<.Tx.encode(dn.tx,Dt.uint32(10).fork()).ldelim(),dn.txResponse!==void 0&&mt.TxResponse.encode(dn.txResponse,Dt.uint32(18).fork()).ldelim(),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=an();for(;zt.pos>>3){case 1:An.tx=lt.Tx.decode(zt,zt.uint32());break;case 2:An.txResponse=mt.TxResponse.decode(zt,zt.uint32());break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{tx:(0,Pt.isSet)(dn.tx)?lt.Tx.fromJSON(dn.tx):void 0,txResponse:(0,Pt.isSet)(dn.txResponse)?mt.TxResponse.fromJSON(dn.txResponse):void 0}},toJSON(dn){const Dt={};return dn.tx!==void 0&&(Dt.tx=dn.tx?lt.Tx.toJSON(dn.tx):void 0),dn.txResponse!==void 0&&(Dt.txResponse=dn.txResponse?mt.TxResponse.toJSON(dn.txResponse):void 0),Dt},fromPartial(dn){const Dt=an();return Dt.tx=dn.tx!==void 0&&dn.tx!==null?lt.Tx.fromPartial(dn.tx):void 0,Dt.txResponse=dn.txResponse!==void 0&&dn.txResponse!==null?mt.TxResponse.fromPartial(dn.txResponse):void 0,Dt}};function yt(){return{height:Pt.Long.ZERO,pagination:void 0}}d.GetBlockWithTxsRequest={encode(dn,Dt=Jt.Writer.create()){return dn.height.isZero()||Dt.uint32(8).int64(dn.height),dn.pagination!==void 0&&ht.PageRequest.encode(dn.pagination,Dt.uint32(18).fork()).ldelim(),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=yt();for(;zt.pos>>3){case 1:An.height=zt.int64();break;case 2:An.pagination=ht.PageRequest.decode(zt,zt.uint32());break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{height:(0,Pt.isSet)(dn.height)?Pt.Long.fromValue(dn.height):Pt.Long.ZERO,pagination:(0,Pt.isSet)(dn.pagination)?ht.PageRequest.fromJSON(dn.pagination):void 0}},toJSON(dn){const Dt={};return dn.height!==void 0&&(Dt.height=(dn.height||Pt.Long.ZERO).toString()),dn.pagination!==void 0&&(Dt.pagination=dn.pagination?ht.PageRequest.toJSON(dn.pagination):void 0),Dt},fromPartial(dn){const Dt=yt();return Dt.height=dn.height!==void 0&&dn.height!==null?Pt.Long.fromValue(dn.height):Pt.Long.ZERO,Dt.pagination=dn.pagination!==void 0&&dn.pagination!==null?ht.PageRequest.fromPartial(dn.pagination):void 0,Dt}};function $t(){return{txs:[],blockId:void 0,block:void 0,pagination:void 0}}d.GetBlockWithTxsResponse={encode(dn,Dt=Jt.Writer.create()){for(const zt of dn.txs)lt.Tx.encode(zt,Dt.uint32(10).fork()).ldelim();return dn.blockId!==void 0&&vt.BlockID.encode(dn.blockId,Dt.uint32(18).fork()).ldelim(),dn.block!==void 0&&kt.Block.encode(dn.block,Dt.uint32(26).fork()).ldelim(),dn.pagination!==void 0&&ht.PageResponse.encode(dn.pagination,Dt.uint32(34).fork()).ldelim(),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=$t();for(;zt.pos>>3){case 1:An.txs.push(lt.Tx.decode(zt,zt.uint32()));break;case 2:An.blockId=vt.BlockID.decode(zt,zt.uint32());break;case 3:An.block=kt.Block.decode(zt,zt.uint32());break;case 4:An.pagination=ht.PageResponse.decode(zt,zt.uint32());break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{txs:Array.isArray(dn==null?void 0:dn.txs)?dn.txs.map(Dt=>lt.Tx.fromJSON(Dt)):[],blockId:(0,Pt.isSet)(dn.blockId)?vt.BlockID.fromJSON(dn.blockId):void 0,block:(0,Pt.isSet)(dn.block)?kt.Block.fromJSON(dn.block):void 0,pagination:(0,Pt.isSet)(dn.pagination)?ht.PageResponse.fromJSON(dn.pagination):void 0}},toJSON(dn){const Dt={};return dn.txs?Dt.txs=dn.txs.map(zt=>zt?lt.Tx.toJSON(zt):void 0):Dt.txs=[],dn.blockId!==void 0&&(Dt.blockId=dn.blockId?vt.BlockID.toJSON(dn.blockId):void 0),dn.block!==void 0&&(Dt.block=dn.block?kt.Block.toJSON(dn.block):void 0),dn.pagination!==void 0&&(Dt.pagination=dn.pagination?ht.PageResponse.toJSON(dn.pagination):void 0),Dt},fromPartial(dn){var zt;const Dt=$t();return Dt.txs=((zt=dn.txs)==null?void 0:zt.map(tn=>lt.Tx.fromPartial(tn)))||[],Dt.blockId=dn.blockId!==void 0&&dn.blockId!==null?vt.BlockID.fromPartial(dn.blockId):void 0,Dt.block=dn.block!==void 0&&dn.block!==null?kt.Block.fromPartial(dn.block):void 0,Dt.pagination=dn.pagination!==void 0&&dn.pagination!==null?ht.PageResponse.fromPartial(dn.pagination):void 0,Dt}};function Yt(){return{txBytes:new Uint8Array}}d.TxDecodeRequest={encode(dn,Dt=Jt.Writer.create()){return dn.txBytes.length!==0&&Dt.uint32(10).bytes(dn.txBytes),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Yt();for(;zt.pos>>3){case 1:An.txBytes=zt.bytes();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{txBytes:(0,Pt.isSet)(dn.txBytes)?(0,Pt.bytesFromBase64)(dn.txBytes):new Uint8Array}},toJSON(dn){const Dt={};return dn.txBytes!==void 0&&(Dt.txBytes=(0,Pt.base64FromBytes)(dn.txBytes!==void 0?dn.txBytes:new Uint8Array)),Dt},fromPartial(dn){const Dt=Yt();return Dt.txBytes=dn.txBytes??new Uint8Array,Dt}};function Kt(){return{tx:void 0}}d.TxDecodeResponse={encode(dn,Dt=Jt.Writer.create()){return dn.tx!==void 0&<.Tx.encode(dn.tx,Dt.uint32(10).fork()).ldelim(),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Kt();for(;zt.pos>>3){case 1:An.tx=lt.Tx.decode(zt,zt.uint32());break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{tx:(0,Pt.isSet)(dn.tx)?lt.Tx.fromJSON(dn.tx):void 0}},toJSON(dn){const Dt={};return dn.tx!==void 0&&(Dt.tx=dn.tx?lt.Tx.toJSON(dn.tx):void 0),Dt},fromPartial(dn){const Dt=Kt();return Dt.tx=dn.tx!==void 0&&dn.tx!==null?lt.Tx.fromPartial(dn.tx):void 0,Dt}};function St(){return{tx:void 0}}d.TxEncodeRequest={encode(dn,Dt=Jt.Writer.create()){return dn.tx!==void 0&<.Tx.encode(dn.tx,Dt.uint32(10).fork()).ldelim(),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=St();for(;zt.pos>>3){case 1:An.tx=lt.Tx.decode(zt,zt.uint32());break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{tx:(0,Pt.isSet)(dn.tx)?lt.Tx.fromJSON(dn.tx):void 0}},toJSON(dn){const Dt={};return dn.tx!==void 0&&(Dt.tx=dn.tx?lt.Tx.toJSON(dn.tx):void 0),Dt},fromPartial(dn){const Dt=St();return Dt.tx=dn.tx!==void 0&&dn.tx!==null?lt.Tx.fromPartial(dn.tx):void 0,Dt}};function It(){return{txBytes:new Uint8Array}}d.TxEncodeResponse={encode(dn,Dt=Jt.Writer.create()){return dn.txBytes.length!==0&&Dt.uint32(10).bytes(dn.txBytes),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=It();for(;zt.pos>>3){case 1:An.txBytes=zt.bytes();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{txBytes:(0,Pt.isSet)(dn.txBytes)?(0,Pt.bytesFromBase64)(dn.txBytes):new Uint8Array}},toJSON(dn){const Dt={};return dn.txBytes!==void 0&&(Dt.txBytes=(0,Pt.base64FromBytes)(dn.txBytes!==void 0?dn.txBytes:new Uint8Array)),Dt},fromPartial(dn){const Dt=It();return Dt.txBytes=dn.txBytes??new Uint8Array,Dt}};function Gt(){return{aminoJson:""}}d.TxEncodeAminoRequest={encode(dn,Dt=Jt.Writer.create()){return dn.aminoJson!==""&&Dt.uint32(10).string(dn.aminoJson),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Gt();for(;zt.pos>>3){case 1:An.aminoJson=zt.string();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{aminoJson:(0,Pt.isSet)(dn.aminoJson)?String(dn.aminoJson):""}},toJSON(dn){const Dt={};return dn.aminoJson!==void 0&&(Dt.aminoJson=dn.aminoJson),Dt},fromPartial(dn){const Dt=Gt();return Dt.aminoJson=dn.aminoJson??"",Dt}};function Ut(){return{aminoBinary:new Uint8Array}}d.TxEncodeAminoResponse={encode(dn,Dt=Jt.Writer.create()){return dn.aminoBinary.length!==0&&Dt.uint32(10).bytes(dn.aminoBinary),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Ut();for(;zt.pos>>3){case 1:An.aminoBinary=zt.bytes();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{aminoBinary:(0,Pt.isSet)(dn.aminoBinary)?(0,Pt.bytesFromBase64)(dn.aminoBinary):new Uint8Array}},toJSON(dn){const Dt={};return dn.aminoBinary!==void 0&&(Dt.aminoBinary=(0,Pt.base64FromBytes)(dn.aminoBinary!==void 0?dn.aminoBinary:new Uint8Array)),Dt},fromPartial(dn){const Dt=Ut();return Dt.aminoBinary=dn.aminoBinary??new Uint8Array,Dt}};function Vt(){return{aminoBinary:new Uint8Array}}d.TxDecodeAminoRequest={encode(dn,Dt=Jt.Writer.create()){return dn.aminoBinary.length!==0&&Dt.uint32(10).bytes(dn.aminoBinary),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=Vt();for(;zt.pos>>3){case 1:An.aminoBinary=zt.bytes();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{aminoBinary:(0,Pt.isSet)(dn.aminoBinary)?(0,Pt.bytesFromBase64)(dn.aminoBinary):new Uint8Array}},toJSON(dn){const Dt={};return dn.aminoBinary!==void 0&&(Dt.aminoBinary=(0,Pt.base64FromBytes)(dn.aminoBinary!==void 0?dn.aminoBinary:new Uint8Array)),Dt},fromPartial(dn){const Dt=Vt();return Dt.aminoBinary=dn.aminoBinary??new Uint8Array,Dt}};function qt(){return{aminoJson:""}}d.TxDecodeAminoResponse={encode(dn,Dt=Jt.Writer.create()){return dn.aminoJson!==""&&Dt.uint32(10).string(dn.aminoJson),Dt},decode(dn,Dt){const zt=dn instanceof Jt.Reader?dn:new Jt.Reader(dn);let tn=Dt===void 0?zt.len:zt.pos+Dt;const An=qt();for(;zt.pos>>3){case 1:An.aminoJson=zt.string();break;default:zt.skipType(gn&7);break}}return An},fromJSON(dn){return{aminoJson:(0,Pt.isSet)(dn.aminoJson)?String(dn.aminoJson):""}},toJSON(dn){const Dt={};return dn.aminoJson!==void 0&&(Dt.aminoJson=dn.aminoJson),Dt},fromPartial(dn){const Dt=qt();return Dt.aminoJson=dn.aminoJson??"",Dt}};class fn{constructor(Dt){this.rpc=Dt,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this),this.GetBlockWithTxs=this.GetBlockWithTxs.bind(this),this.TxDecode=this.TxDecode.bind(this),this.TxEncode=this.TxEncode.bind(this),this.TxEncodeAmino=this.TxEncodeAmino.bind(this),this.TxDecodeAmino=this.TxDecodeAmino.bind(this)}Simulate(Dt){const zt=d.SimulateRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","Simulate",zt).then(An=>d.SimulateResponse.decode(new Jt.Reader(An)))}GetTx(Dt){const zt=d.GetTxRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTx",zt).then(An=>d.GetTxResponse.decode(new Jt.Reader(An)))}BroadcastTx(Dt){const zt=d.BroadcastTxRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","BroadcastTx",zt).then(An=>d.BroadcastTxResponse.decode(new Jt.Reader(An)))}GetTxsEvent(Dt){const zt=d.GetTxsEventRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTxsEvent",zt).then(An=>d.GetTxsEventResponse.decode(new Jt.Reader(An)))}GetBlockWithTxs(Dt){const zt=d.GetBlockWithTxsRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetBlockWithTxs",zt).then(An=>d.GetBlockWithTxsResponse.decode(new Jt.Reader(An)))}TxDecode(Dt){const zt=d.TxDecodeRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecode",zt).then(An=>d.TxDecodeResponse.decode(new Jt.Reader(An)))}TxEncode(Dt){const zt=d.TxEncodeRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncode",zt).then(An=>d.TxEncodeResponse.decode(new Jt.Reader(An)))}TxEncodeAmino(Dt){const zt=d.TxEncodeAminoRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncodeAmino",zt).then(An=>d.TxEncodeAminoResponse.decode(new Jt.Reader(An)))}TxDecodeAmino(Dt){const zt=d.TxDecodeAminoRequest.encode(Dt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecodeAmino",zt).then(An=>d.TxDecodeAminoResponse.decode(new Jt.Reader(An)))}}d.ServiceClientImpl=fn})(service$2);var __importDefault$r=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(queries$2,"__esModule",{value:!0});queries$2.setupTxExtension=void 0;const proto_signing_1$2=build$d,signing_1$2=signing$2,service_1=service$2,tx_1$5=tx$r,long_1$e=__importDefault$r(long),queryclient_1$2=queryclient$1;function setupTxExtension(d){const b=(0,queryclient_1$2.createProtobufRpcClient)(d),dt=new service_1.ServiceClientImpl(b);return{tx:{getTx:async ct=>{const lt={hash:ct};return await dt.GetTx(lt)},simulate:async(ct,lt,ht,mt)=>{const vt=tx_1$5.Tx.fromPartial({authInfo:tx_1$5.AuthInfo.fromPartial({fee:tx_1$5.Fee.fromPartial({}),signerInfos:[{publicKey:(0,proto_signing_1$2.encodePubkey)(ht),sequence:long_1$e.default.fromNumber(mt,!0),modeInfo:{single:{mode:signing_1$2.SignMode.SIGN_MODE_UNSPECIFIED}}}]}),body:tx_1$5.TxBody.fromPartial({messages:Array.from(ct),memo:lt}),signatures:[new Uint8Array]}),kt=service_1.SimulateRequest.fromPartial({txBytes:tx_1$5.Tx.encode(vt).finish()});return await dt.Simulate(kt)}}}}queries$2.setupTxExtension=setupTxExtension;var aminomessages$1={},__importDefault$q=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(aminomessages$1,"__esModule",{value:!0});aminomessages$1.createVestingAminoConverters=aminomessages$1.isAminoMsgCreateVestingAccount=void 0;const long_1$d=__importDefault$q(long);function isAminoMsgCreateVestingAccount(d){return d.type==="cosmos-sdk/MsgCreateVestingAccount"}aminomessages$1.isAminoMsgCreateVestingAccount=isAminoMsgCreateVestingAccount;function createVestingAminoConverters(){return{"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":{aminoType:"cosmos-sdk/MsgCreateVestingAccount",toAmino:({fromAddress:d,toAddress:b,amount:dt,endTime:ct,delayed:lt})=>({from_address:d,to_address:b,amount:[...dt],end_time:ct.toString(),delayed:lt}),fromAmino:({from_address:d,to_address:b,amount:dt,end_time:ct,delayed:lt})=>({fromAddress:d,toAddress:b,amount:[...dt],endTime:long_1$d.default.fromString(ct),delayed:lt})}}}aminomessages$1.createVestingAminoConverters=createVestingAminoConverters;var messages$2={},tx$e={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgCreatePeriodicVestingAccountResponse=d.MsgCreatePeriodicVestingAccount=d.MsgCreatePermanentLockedAccountResponse=d.MsgCreatePermanentLockedAccount=d.MsgCreateVestingAccountResponse=d.MsgCreateVestingAccount=d.protobufPackage=void 0;const lt=coin$3,ht=vesting,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmos.vesting.v1beta1";function kt(){return{fromAddress:"",toAddress:"",amount:[],endTime:mt.Long.ZERO,delayed:!1}}d.MsgCreateVestingAccount={encode(wt,Nt=vt.Writer.create()){wt.fromAddress!==""&&Nt.uint32(10).string(wt.fromAddress),wt.toAddress!==""&&Nt.uint32(18).string(wt.toAddress);for(const xt of wt.amount)lt.Coin.encode(xt,Nt.uint32(26).fork()).ldelim();return wt.endTime.isZero()||Nt.uint32(32).int64(wt.endTime),wt.delayed===!0&&Nt.uint32(40).bool(wt.delayed),Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.fromAddress=xt.string();break;case 2:Bt.toAddress=xt.string();break;case 3:Bt.amount.push(lt.Coin.decode(xt,xt.uint32()));break;case 4:Bt.endTime=xt.int64();break;case 5:Bt.delayed=xt.bool();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{fromAddress:(0,mt.isSet)(wt.fromAddress)?String(wt.fromAddress):"",toAddress:(0,mt.isSet)(wt.toAddress)?String(wt.toAddress):"",amount:Array.isArray(wt==null?void 0:wt.amount)?wt.amount.map(Nt=>lt.Coin.fromJSON(Nt)):[],endTime:(0,mt.isSet)(wt.endTime)?mt.Long.fromValue(wt.endTime):mt.Long.ZERO,delayed:(0,mt.isSet)(wt.delayed)?!!wt.delayed:!1}},toJSON(wt){const Nt={};return wt.fromAddress!==void 0&&(Nt.fromAddress=wt.fromAddress),wt.toAddress!==void 0&&(Nt.toAddress=wt.toAddress),wt.amount?Nt.amount=wt.amount.map(xt=>xt?lt.Coin.toJSON(xt):void 0):Nt.amount=[],wt.endTime!==void 0&&(Nt.endTime=(wt.endTime||mt.Long.ZERO).toString()),wt.delayed!==void 0&&(Nt.delayed=wt.delayed),Nt},fromPartial(wt){var xt;const Nt=kt();return Nt.fromAddress=wt.fromAddress??"",Nt.toAddress=wt.toAddress??"",Nt.amount=((xt=wt.amount)==null?void 0:xt.map(Et=>lt.Coin.fromPartial(Et)))||[],Nt.endTime=wt.endTime!==void 0&&wt.endTime!==null?mt.Long.fromValue(wt.endTime):mt.Long.ZERO,Nt.delayed=wt.delayed??!1,Nt}};function Pt(){return{}}d.MsgCreateVestingAccountResponse={encode(wt,Nt=vt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Pt()}};function Jt(){return{fromAddress:"",toAddress:"",amount:[]}}d.MsgCreatePermanentLockedAccount={encode(wt,Nt=vt.Writer.create()){wt.fromAddress!==""&&Nt.uint32(10).string(wt.fromAddress),wt.toAddress!==""&&Nt.uint32(18).string(wt.toAddress);for(const xt of wt.amount)lt.Coin.encode(xt,Nt.uint32(26).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.fromAddress=xt.string();break;case 2:Bt.toAddress=xt.string();break;case 3:Bt.amount.push(lt.Coin.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{fromAddress:(0,mt.isSet)(wt.fromAddress)?String(wt.fromAddress):"",toAddress:(0,mt.isSet)(wt.toAddress)?String(wt.toAddress):"",amount:Array.isArray(wt==null?void 0:wt.amount)?wt.amount.map(Nt=>lt.Coin.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.fromAddress!==void 0&&(Nt.fromAddress=wt.fromAddress),wt.toAddress!==void 0&&(Nt.toAddress=wt.toAddress),wt.amount?Nt.amount=wt.amount.map(xt=>xt?lt.Coin.toJSON(xt):void 0):Nt.amount=[],Nt},fromPartial(wt){var xt;const Nt=Jt();return Nt.fromAddress=wt.fromAddress??"",Nt.toAddress=wt.toAddress??"",Nt.amount=((xt=wt.amount)==null?void 0:xt.map(Et=>lt.Coin.fromPartial(Et)))||[],Nt}};function Zt(){return{}}d.MsgCreatePermanentLockedAccountResponse={encode(wt,Nt=vt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Zt()}};function Rt(){return{fromAddress:"",toAddress:"",startTime:mt.Long.ZERO,vestingPeriods:[]}}d.MsgCreatePeriodicVestingAccount={encode(wt,Nt=vt.Writer.create()){wt.fromAddress!==""&&Nt.uint32(10).string(wt.fromAddress),wt.toAddress!==""&&Nt.uint32(18).string(wt.toAddress),wt.startTime.isZero()||Nt.uint32(24).int64(wt.startTime);for(const xt of wt.vestingPeriods)ht.Period.encode(xt,Nt.uint32(34).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.fromAddress=xt.string();break;case 2:Bt.toAddress=xt.string();break;case 3:Bt.startTime=xt.int64();break;case 4:Bt.vestingPeriods.push(ht.Period.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{fromAddress:(0,mt.isSet)(wt.fromAddress)?String(wt.fromAddress):"",toAddress:(0,mt.isSet)(wt.toAddress)?String(wt.toAddress):"",startTime:(0,mt.isSet)(wt.startTime)?mt.Long.fromValue(wt.startTime):mt.Long.ZERO,vestingPeriods:Array.isArray(wt==null?void 0:wt.vestingPeriods)?wt.vestingPeriods.map(Nt=>ht.Period.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.fromAddress!==void 0&&(Nt.fromAddress=wt.fromAddress),wt.toAddress!==void 0&&(Nt.toAddress=wt.toAddress),wt.startTime!==void 0&&(Nt.startTime=(wt.startTime||mt.Long.ZERO).toString()),wt.vestingPeriods?Nt.vestingPeriods=wt.vestingPeriods.map(xt=>xt?ht.Period.toJSON(xt):void 0):Nt.vestingPeriods=[],Nt},fromPartial(wt){var xt;const Nt=Rt();return Nt.fromAddress=wt.fromAddress??"",Nt.toAddress=wt.toAddress??"",Nt.startTime=wt.startTime!==void 0&&wt.startTime!==null?mt.Long.fromValue(wt.startTime):mt.Long.ZERO,Nt.vestingPeriods=((xt=wt.vestingPeriods)==null?void 0:xt.map(Et=>ht.Period.fromPartial(Et)))||[],Nt}};function nn(){return{}}d.MsgCreatePeriodicVestingAccountResponse={encode(wt,Nt=vt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof vt.Reader?wt:new vt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return nn()}};class Qt{constructor(Nt){this.rpc=Nt,this.CreateVestingAccount=this.CreateVestingAccount.bind(this),this.CreatePermanentLockedAccount=this.CreatePermanentLockedAccount.bind(this),this.CreatePeriodicVestingAccount=this.CreatePeriodicVestingAccount.bind(this)}CreateVestingAccount(Nt){const xt=d.MsgCreateVestingAccount.encode(Nt).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",xt).then(Bt=>d.MsgCreateVestingAccountResponse.decode(new vt.Reader(Bt)))}CreatePermanentLockedAccount(Nt){const xt=d.MsgCreatePermanentLockedAccount.encode(Nt).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePermanentLockedAccount",xt).then(Bt=>d.MsgCreatePermanentLockedAccountResponse.decode(new vt.Reader(Bt)))}CreatePeriodicVestingAccount(Nt){const xt=d.MsgCreatePeriodicVestingAccount.encode(Nt).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePeriodicVestingAccount",xt).then(Bt=>d.MsgCreatePeriodicVestingAccountResponse.decode(new vt.Reader(Bt)))}}d.MsgClientImpl=Qt})(tx$e);Object.defineProperty(messages$2,"__esModule",{value:!0});messages$2.vestingTypes=void 0;const tx_1$4=tx$e;messages$2.vestingTypes=[["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",tx_1$4.MsgCreateVestingAccount]];(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.isAminoMsgCreateValidator=d.isAminoMsgBeginRedelegate=d.createStakingAminoConverters=d.setupSlashingExtension=d.isAminoMsgUnjail=d.createSlashingAminoConverters=d.setupMintExtension=d.setupIbcExtension=d.isMsgTransferEncodeObject=d.ibcTypes=d.isAminoMsgTransfer=d.createIbcAminoConverters=d.groupTypes=d.createGroupAminoConverters=d.setupGovExtension=d.isMsgVoteWeightedEncodeObject=d.isMsgVoteEncodeObject=d.isMsgSubmitProposalEncodeObject=d.isMsgDepositEncodeObject=d.govTypes=d.isAminoMsgVoteWeighted=d.isAminoMsgVote=d.isAminoMsgSubmitProposal=d.isAminoMsgDeposit=d.createGovAminoConverters=d.setupFeegrantExtension=d.feegrantTypes=d.createFeegrantAminoConverters=d.isAminoMsgSubmitEvidence=d.createEvidenceAminoConverters=d.setupDistributionExtension=d.isMsgWithdrawDelegatorRewardEncodeObject=d.distributionTypes=d.isAminoMsgWithdrawValidatorCommission=d.isAminoMsgWithdrawDelegatorReward=d.isAminoMsgSetWithdrawAddress=d.isAminoMsgFundCommunityPool=d.createDistributionAminoConverters=d.isAminoMsgVerifyInvariant=d.createCrysisAminoConverters=d.setupBankExtension=d.isMsgSendEncodeObject=d.bankTypes=d.isAminoMsgSend=d.isAminoMsgMultiSend=d.createBankAminoConverters=d.setupAuthzExtension=d.authzTypes=d.createAuthzAminoConverters=d.setupAuthExtension=void 0,d.vestingTypes=d.isAminoMsgCreateVestingAccount=d.createVestingAminoConverters=d.setupTxExtension=d.setupStakingExtension=d.stakingTypes=d.isMsgUndelegateEncodeObject=d.isMsgEditValidatorEncodeObject=d.isMsgDelegateEncodeObject=d.isMsgCreateValidatorEncodeObject=d.isMsgBeginRedelegateEncodeObject=d.isAminoMsgUndelegate=d.isAminoMsgEditValidator=d.isAminoMsgDelegate=void 0;var b=queries$c;Object.defineProperty(d,"setupAuthExtension",{enumerable:!0,get:function(){return b.setupAuthExtension}});var dt=aminomessages$c;Object.defineProperty(d,"createAuthzAminoConverters",{enumerable:!0,get:function(){return dt.createAuthzAminoConverters}});var ct=messages$a;Object.defineProperty(d,"authzTypes",{enumerable:!0,get:function(){return ct.authzTypes}});var lt=queries$b;Object.defineProperty(d,"setupAuthzExtension",{enumerable:!0,get:function(){return lt.setupAuthzExtension}});var ht=aminomessages$b;Object.defineProperty(d,"createBankAminoConverters",{enumerable:!0,get:function(){return ht.createBankAminoConverters}}),Object.defineProperty(d,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return ht.isAminoMsgMultiSend}}),Object.defineProperty(d,"isAminoMsgSend",{enumerable:!0,get:function(){return ht.isAminoMsgSend}});var mt=messages$9;Object.defineProperty(d,"bankTypes",{enumerable:!0,get:function(){return mt.bankTypes}}),Object.defineProperty(d,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return mt.isMsgSendEncodeObject}});var vt=queries$a;Object.defineProperty(d,"setupBankExtension",{enumerable:!0,get:function(){return vt.setupBankExtension}});var kt=aminomessages$a;Object.defineProperty(d,"createCrysisAminoConverters",{enumerable:!0,get:function(){return kt.createCrysisAminoConverters}}),Object.defineProperty(d,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return kt.isAminoMsgVerifyInvariant}});var Pt=aminomessages$9;Object.defineProperty(d,"createDistributionAminoConverters",{enumerable:!0,get:function(){return Pt.createDistributionAminoConverters}}),Object.defineProperty(d,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return Pt.isAminoMsgFundCommunityPool}}),Object.defineProperty(d,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return Pt.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(d,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return Pt.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(d,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return Pt.isAminoMsgWithdrawValidatorCommission}});var Jt=messages$8;Object.defineProperty(d,"distributionTypes",{enumerable:!0,get:function(){return Jt.distributionTypes}}),Object.defineProperty(d,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return Jt.isMsgWithdrawDelegatorRewardEncodeObject}});var Zt=queries$9;Object.defineProperty(d,"setupDistributionExtension",{enumerable:!0,get:function(){return Zt.setupDistributionExtension}});var Rt=aminomessages$8;Object.defineProperty(d,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return Rt.createEvidenceAminoConverters}}),Object.defineProperty(d,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return Rt.isAminoMsgSubmitEvidence}});var nn=aminomessages$7;Object.defineProperty(d,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return nn.createFeegrantAminoConverters}});var Qt=messages$7;Object.defineProperty(d,"feegrantTypes",{enumerable:!0,get:function(){return Qt.feegrantTypes}});var wt=queries$8;Object.defineProperty(d,"setupFeegrantExtension",{enumerable:!0,get:function(){return wt.setupFeegrantExtension}});var Nt=aminomessages$6;Object.defineProperty(d,"createGovAminoConverters",{enumerable:!0,get:function(){return Nt.createGovAminoConverters}}),Object.defineProperty(d,"isAminoMsgDeposit",{enumerable:!0,get:function(){return Nt.isAminoMsgDeposit}}),Object.defineProperty(d,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return Nt.isAminoMsgSubmitProposal}}),Object.defineProperty(d,"isAminoMsgVote",{enumerable:!0,get:function(){return Nt.isAminoMsgVote}}),Object.defineProperty(d,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return Nt.isAminoMsgVoteWeighted}});var xt=messages$6;Object.defineProperty(d,"govTypes",{enumerable:!0,get:function(){return xt.govTypes}}),Object.defineProperty(d,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return xt.isMsgDepositEncodeObject}}),Object.defineProperty(d,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return xt.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(d,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return xt.isMsgVoteEncodeObject}}),Object.defineProperty(d,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return xt.isMsgVoteWeightedEncodeObject}});var Et=queries$7;Object.defineProperty(d,"setupGovExtension",{enumerable:!0,get:function(){return Et.setupGovExtension}});var Bt=aminomessages$5;Object.defineProperty(d,"createGroupAminoConverters",{enumerable:!0,get:function(){return Bt.createGroupAminoConverters}});var Tt=messages$5;Object.defineProperty(d,"groupTypes",{enumerable:!0,get:function(){return Tt.groupTypes}});var Mt=aminomessages$4;Object.defineProperty(d,"createIbcAminoConverters",{enumerable:!0,get:function(){return Mt.createIbcAminoConverters}}),Object.defineProperty(d,"isAminoMsgTransfer",{enumerable:!0,get:function(){return Mt.isAminoMsgTransfer}});var jt=messages$4;Object.defineProperty(d,"ibcTypes",{enumerable:!0,get:function(){return jt.ibcTypes}}),Object.defineProperty(d,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return jt.isMsgTransferEncodeObject}});var Ht=queries$6;Object.defineProperty(d,"setupIbcExtension",{enumerable:!0,get:function(){return Ht.setupIbcExtension}});var an=queries$5;Object.defineProperty(d,"setupMintExtension",{enumerable:!0,get:function(){return an.setupMintExtension}});var yt=aminomessages$3;Object.defineProperty(d,"createSlashingAminoConverters",{enumerable:!0,get:function(){return yt.createSlashingAminoConverters}}),Object.defineProperty(d,"isAminoMsgUnjail",{enumerable:!0,get:function(){return yt.isAminoMsgUnjail}});var $t=queries$4;Object.defineProperty(d,"setupSlashingExtension",{enumerable:!0,get:function(){return $t.setupSlashingExtension}});var Yt=aminomessages$2;Object.defineProperty(d,"createStakingAminoConverters",{enumerable:!0,get:function(){return Yt.createStakingAminoConverters}}),Object.defineProperty(d,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return Yt.isAminoMsgBeginRedelegate}}),Object.defineProperty(d,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return Yt.isAminoMsgCreateValidator}}),Object.defineProperty(d,"isAminoMsgDelegate",{enumerable:!0,get:function(){return Yt.isAminoMsgDelegate}}),Object.defineProperty(d,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return Yt.isAminoMsgEditValidator}}),Object.defineProperty(d,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return Yt.isAminoMsgUndelegate}});var Kt=messages$3;Object.defineProperty(d,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return Kt.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(d,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return Kt.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(d,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return Kt.isMsgDelegateEncodeObject}}),Object.defineProperty(d,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return Kt.isMsgEditValidatorEncodeObject}}),Object.defineProperty(d,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return Kt.isMsgUndelegateEncodeObject}}),Object.defineProperty(d,"stakingTypes",{enumerable:!0,get:function(){return Kt.stakingTypes}});var St=queries$3;Object.defineProperty(d,"setupStakingExtension",{enumerable:!0,get:function(){return St.setupStakingExtension}});var It=queries$2;Object.defineProperty(d,"setupTxExtension",{enumerable:!0,get:function(){return It.setupTxExtension}});var Gt=aminomessages$1;Object.defineProperty(d,"createVestingAminoConverters",{enumerable:!0,get:function(){return Gt.createVestingAminoConverters}}),Object.defineProperty(d,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return Gt.isAminoMsgCreateVestingAccount}});var Ut=messages$2;Object.defineProperty(d,"vestingTypes",{enumerable:!0,get:function(){return Ut.vestingTypes}})})(modules$1);var multisignature={},__importDefault$p=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(multisignature,"__esModule",{value:!0});multisignature.makeMultisignedTxBytes=multisignature.makeMultisignedTx=multisignature.makeCompactBitArray=void 0;const amino_1$2=build$c,encoding_1$h=build$6,proto_signing_1$1=build$d,multisig_1=multisig$2,signing_1$1=signing$2,tx_1$3=tx$r,tx_2$2=tx$r,long_1$c=__importDefault$p(long);function makeCompactBitArray(d){const b=Math.ceil(d.length/8),dt=d.length-Math.floor(d.length/8)*8,ct=new Uint8Array(b);return d.forEach((lt,ht)=>{const mt=Math.floor(ht/8),vt=ht%8;lt&&(ct[mt]|=1<<8-1-vt)}),multisig_1.CompactBitArray.fromPartial({elems:ct,extraBitsStored:dt})}multisignature.makeCompactBitArray=makeCompactBitArray;function makeMultisignedTx(d,b,dt,ct,lt){const ht=Array.from(lt.keys()),mt=(0,encoding_1$h.fromBech32)(ht[0]).prefix,vt=Array(d.value.pubkeys.length).fill(!1),kt=new Array;for(let nn=0;nn({single:{mode:signing_1$1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON}}))}},sequence:long_1$c.default.fromNumber(b)},Jt=tx_1$3.AuthInfo.fromPartial({signerInfos:[Pt],fee:{amount:[...dt.amount],gasLimit:long_1$c.default.fromString(dt.gas)}}),Zt=tx_1$3.AuthInfo.encode(Jt).finish();return tx_2$2.TxRaw.fromPartial({bodyBytes:ct,authInfoBytes:Zt,signatures:[multisig_1.MultiSignature.encode(multisig_1.MultiSignature.fromPartial({signatures:kt})).finish()]})}multisignature.makeMultisignedTx=makeMultisignedTx;function makeMultisignedTxBytes(d,b,dt,ct,lt){const ht=makeMultisignedTx(d,b,dt,ct,lt);return Uint8Array.from(tx_2$2.TxRaw.encode(ht).finish())}multisignature.makeMultisignedTxBytes=makeMultisignedTxBytes;var signingstargateclient={},build$3={},addresses={},build$2={},ascii={};Object.defineProperty(ascii,"__esModule",{value:!0});ascii.fromAscii=ascii.toAscii=void 0;function toAscii(d){const b=dt=>dt.split("").map(ct=>{const lt=ct.charCodeAt(0);if(lt<32||lt>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+lt);return lt});return Uint8Array.from(b(d))}ascii.toAscii=toAscii;function fromAscii(d){return(dt=>dt.map(ct=>{if(ct<32||ct>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+ct);return String.fromCharCode(ct)}))(Array.from(d)).join("")}ascii.fromAscii=fromAscii;var base64$2={},__createBinding$f=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$f=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$f=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$f(b,d,dt);return __setModuleDefault$f(b,d),b};Object.defineProperty(base64$2,"__esModule",{value:!0});base64$2.fromBase64=base64$2.toBase64=void 0;const base64js=__importStar$f(base64Js);function toBase64(d){return base64js.fromByteArray(d)}base64$2.toBase64=toBase64;function fromBase64(d){if(!d.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return base64js.toByteArray(d)}base64$2.fromBase64=fromBase64;var bech32$1={},__createBinding$e=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$e=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$e=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$e(b,d,dt);return __setModuleDefault$e(b,d),b};Object.defineProperty(bech32$1,"__esModule",{value:!0});bech32$1.normalizeBech32=bech32$1.fromBech32=bech32$1.toBech32=void 0;const bech32=__importStar$e(bech32$d);function toBech32(d,b,dt){return bech32.encode(d,bech32.toWords(b),dt)}bech32$1.toBech32=toBech32;function fromBech32(d,b=1/0){const dt=bech32.decode(d,b);return{prefix:dt.prefix,data:new Uint8Array(bech32.fromWords(dt.words))}}bech32$1.fromBech32=fromBech32;function normalizeBech32(d){const{prefix:b,data:dt}=fromBech32(d);return toBech32(b,dt)}bech32$1.normalizeBech32=normalizeBech32;var hex={};Object.defineProperty(hex,"__esModule",{value:!0});hex.fromHex=hex.toHex=void 0;function toHex(d){let b="";for(const dt of d)b+=("0"+dt.toString(16)).slice(-2);return b}hex.toHex=toHex;function fromHex(d){if(d.length%2!==0)throw new Error("hex string length must be a multiple of 2");const b=new Uint8Array(d.length/2);for(let dt=0;dt999999999)throw new Error("Nano seconds must not exceed 999999999");const ct=new Date(d*1e3+Math.floor(dt/1e6));return ct.nanoseconds=dt%1e6,ct}dates.fromSeconds=fromSeconds;function toSeconds(d){return{seconds:Math.floor(d.getTime()/1e3),nanos:d.getTime()%1e3*1e6+(d.nanoseconds??0)}}dates.toSeconds=toSeconds;class DateTime{static decode(b){return fromRfc3339WithNanoseconds(b)}static encode(b){return toRfc3339WithNanoseconds(b)}}dates.DateTime=DateTime;var rpcclients={},httpbatchclient={},build$1={},id={};Object.defineProperty(id,"__esModule",{value:!0});id.makeJsonRpcId=void 0;let counter=1e4;function makeJsonRpcId(){return counter+=1}id.makeJsonRpcId=makeJsonRpcId;var jsonrpcclient={},types$c={};Object.defineProperty(types$c,"__esModule",{value:!0});types$c.jsonRpcCode=types$c.isJsonRpcSuccessResponse=types$c.isJsonRpcErrorResponse=void 0;function isJsonRpcErrorResponse(d){return typeof d.error=="object"}types$c.isJsonRpcErrorResponse=isJsonRpcErrorResponse;function isJsonRpcSuccessResponse(d){return!isJsonRpcErrorResponse(d)}types$c.isJsonRpcSuccessResponse=isJsonRpcSuccessResponse;types$c.jsonRpcCode={parseError:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internalError:-32603,serverError:{default:-32e3}};Object.defineProperty(jsonrpcclient,"__esModule",{value:!0});jsonrpcclient.JsonRpcClient=void 0;const stream_1$1=build$4,types_1$5=types$c;class JsonRpcClient{constructor(b){this.connection=b}async run(b){const dt=this.connection.responseStream.filter(ht=>ht.id===b.id),ct=(0,stream_1$1.firstEvent)(dt);this.connection.sendRequest(b);const lt=await ct;if((0,types_1$5.isJsonRpcErrorResponse)(lt)){const ht=lt.error;throw new Error(`JSON RPC error: code=${ht.code}; message='${ht.message}'`)}return lt}}jsonrpcclient.JsonRpcClient=JsonRpcClient;var parse={},compatibility={};Object.defineProperty(compatibility,"__esModule",{value:!0});compatibility.isJsonCompatibleDictionary=compatibility.isJsonCompatibleArray=compatibility.isJsonCompatibleValue=void 0;function isJsonCompatibleValue(d){return!!(typeof d=="string"||typeof d=="number"||typeof d=="boolean"||d===null||isJsonCompatibleArray(d)||isJsonCompatibleDictionary(d))}compatibility.isJsonCompatibleValue=isJsonCompatibleValue;function isJsonCompatibleArray(d){if(!Array.isArray(d))return!1;for(const b of d)if(!isJsonCompatibleValue(b))return!1;return!0}compatibility.isJsonCompatibleArray=isJsonCompatibleArray;function isJsonCompatibleDictionary(d){return typeof d!="object"||d===null||Object.prototype.toString.call(d)!=="[object Object]"?!1:Object.values(d).every(isJsonCompatibleValue)}compatibility.isJsonCompatibleDictionary=isJsonCompatibleDictionary;Object.defineProperty(parse,"__esModule",{value:!0});parse.parseJsonRpcResponse=parse.parseJsonRpcSuccessResponse=parse.parseJsonRpcErrorResponse=parse.parseJsonRpcRequest=parse.parseJsonRpcId=void 0;const compatibility_1=compatibility;function parseJsonRpcId(d){if(!(0,compatibility_1.isJsonCompatibleDictionary)(d))throw new Error("Data must be JSON compatible dictionary");const b=d.id;return typeof b!="number"&&typeof b!="string"?null:b}parse.parseJsonRpcId=parseJsonRpcId;function parseJsonRpcRequest(d){if(!(0,compatibility_1.isJsonCompatibleDictionary)(d))throw new Error("Data must be JSON compatible dictionary");if(d.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${d.jsonrpc}`);const b=parseJsonRpcId(d);if(b===null)throw new Error("Invalid id field");const dt=d.method;if(typeof dt!="string")throw new Error("Invalid method field");if(!(0,compatibility_1.isJsonCompatibleArray)(d.params)&&!(0,compatibility_1.isJsonCompatibleDictionary)(d.params))throw new Error("Invalid params field");return{jsonrpc:"2.0",id:b,method:dt,params:d.params}}parse.parseJsonRpcRequest=parseJsonRpcRequest;function parseError(d){if(typeof d.code!="number")throw new Error("Error property 'code' is not a number");if(typeof d.message!="string")throw new Error("Error property 'message' is not a string");let b;if(d.data===void 0)b=void 0;else if((0,compatibility_1.isJsonCompatibleValue)(d.data))b=d.data;else throw new Error("Error property 'data' is defined but not a JSON compatible value.");return{code:d.code,message:d.message,...b!==void 0?{data:b}:{}}}function parseJsonRpcErrorResponse(d){if(!(0,compatibility_1.isJsonCompatibleDictionary)(d))throw new Error("Data must be JSON compatible dictionary");if(d.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(d)}`);const b=d.id;if(typeof b!="number"&&typeof b!="string"&&b!==null)throw new Error("Invalid id field");if(typeof d.error>"u"||!(0,compatibility_1.isJsonCompatibleDictionary)(d.error))throw new Error("Invalid error field");return{jsonrpc:"2.0",id:b,error:parseError(d.error)}}parse.parseJsonRpcErrorResponse=parseJsonRpcErrorResponse;function parseJsonRpcSuccessResponse(d){if(!(0,compatibility_1.isJsonCompatibleDictionary)(d))throw new Error("Data must be JSON compatible dictionary");if(d.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(d)}`);const b=d.id;if(typeof b!="number"&&typeof b!="string")throw new Error("Invalid id field");if(typeof d.result>"u")throw new Error("Invalid result field");const dt=d.result;return{jsonrpc:"2.0",id:b,result:dt}}parse.parseJsonRpcSuccessResponse=parseJsonRpcSuccessResponse;function parseJsonRpcResponse(d){let b;try{b=parseJsonRpcErrorResponse(d)}catch{b=parseJsonRpcSuccessResponse(d)}return b}parse.parseJsonRpcResponse=parseJsonRpcResponse;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.jsonRpcCode=d.isJsonRpcSuccessResponse=d.isJsonRpcErrorResponse=d.parseJsonRpcSuccessResponse=d.parseJsonRpcResponse=d.parseJsonRpcRequest=d.parseJsonRpcId=d.parseJsonRpcErrorResponse=d.JsonRpcClient=d.makeJsonRpcId=void 0;var b=id;Object.defineProperty(d,"makeJsonRpcId",{enumerable:!0,get:function(){return b.makeJsonRpcId}});var dt=jsonrpcclient;Object.defineProperty(d,"JsonRpcClient",{enumerable:!0,get:function(){return dt.JsonRpcClient}});var ct=parse;Object.defineProperty(d,"parseJsonRpcErrorResponse",{enumerable:!0,get:function(){return ct.parseJsonRpcErrorResponse}}),Object.defineProperty(d,"parseJsonRpcId",{enumerable:!0,get:function(){return ct.parseJsonRpcId}}),Object.defineProperty(d,"parseJsonRpcRequest",{enumerable:!0,get:function(){return ct.parseJsonRpcRequest}}),Object.defineProperty(d,"parseJsonRpcResponse",{enumerable:!0,get:function(){return ct.parseJsonRpcResponse}}),Object.defineProperty(d,"parseJsonRpcSuccessResponse",{enumerable:!0,get:function(){return ct.parseJsonRpcSuccessResponse}});var lt=types$c;Object.defineProperty(d,"isJsonRpcErrorResponse",{enumerable:!0,get:function(){return lt.isJsonRpcErrorResponse}}),Object.defineProperty(d,"isJsonRpcSuccessResponse",{enumerable:!0,get:function(){return lt.isJsonRpcSuccessResponse}}),Object.defineProperty(d,"jsonRpcCode",{enumerable:!0,get:function(){return lt.jsonRpcCode}})})(build$1);var http$1={},axios$3={exports:{}},bind$3=function d(b,dt){return function(){for(var lt=new Array(arguments.length),ht=0;ht"u"}function isBuffer$1(d){return d!==null&&!isUndefined$1(d)&&d.constructor!==null&&!isUndefined$1(d.constructor)&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d)}function isArrayBuffer$1(d){return toString$3.call(d)==="[object ArrayBuffer]"}function isFormData$1(d){return typeof FormData<"u"&&d instanceof FormData}function isArrayBufferView$2(d){var b;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?b=ArrayBuffer.isView(d):b=d&&d.buffer&&d.buffer instanceof ArrayBuffer,b}function isString$1(d){return typeof d=="string"}function isNumber$1(d){return typeof d=="number"}function isObject$2(d){return d!==null&&typeof d=="object"}function isPlainObject$2(d){if(toString$3.call(d)!=="[object Object]")return!1;var b=Object.getPrototypeOf(d);return b===null||b===Object.prototype}function isDate$1(d){return toString$3.call(d)==="[object Date]"}function isFile$1(d){return toString$3.call(d)==="[object File]"}function isBlob$1(d){return toString$3.call(d)==="[object Blob]"}function isFunction$1(d){return toString$3.call(d)==="[object Function]"}function isStream$1(d){return isObject$2(d)&&isFunction$1(d.pipe)}function isURLSearchParams$1(d){return typeof URLSearchParams<"u"&&d instanceof URLSearchParams}function trim$1(d){return d.trim?d.trim():d.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach$1(d,b){if(!(d===null||typeof d>"u"))if(typeof d!="object"&&(d=[d]),isArray$1(d))for(var dt=0,ct=d.length;dt"u"||(utils$c.isArray(kt)?Pt=Pt+"[]":kt=[kt],utils$c.forEach(kt,function(Zt){utils$c.isDate(Zt)?Zt=Zt.toISOString():utils$c.isObject(Zt)&&(Zt=JSON.stringify(Zt)),ht.push(encode$2(Pt)+"="+encode$2(Zt))}))}),lt=ht.join("&")}if(lt){var mt=b.indexOf("#");mt!==-1&&(b=b.slice(0,mt)),b+=(b.indexOf("?")===-1?"?":"&")+lt}return b},utils$b=utils$d;function InterceptorManager$3(){this.handlers=[]}InterceptorManager$3.prototype.use=function d(b,dt,ct){return this.handlers.push({fulfilled:b,rejected:dt,synchronous:ct?ct.synchronous:!1,runWhen:ct?ct.runWhen:null}),this.handlers.length-1};InterceptorManager$3.prototype.eject=function d(b){this.handlers[b]&&(this.handlers[b]=null)};InterceptorManager$3.prototype.forEach=function d(b){utils$b.forEach(this.handlers,function(ct){ct!==null&&b(ct)})};var InterceptorManager_1=InterceptorManager$3,utils$a=utils$d,normalizeHeaderName$1=function d(b,dt){utils$a.forEach(b,function(lt,ht){ht!==dt&&ht.toUpperCase()===dt.toUpperCase()&&(b[dt]=lt,delete b[ht])})},enhanceError$1=function d(b,dt,ct,lt,ht){return b.config=dt,ct&&(b.code=ct),b.request=lt,b.response=ht,b.isAxiosError=!0,b.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},b},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var d=enhanceError$1;return createError=function(dt,ct,lt,ht,mt){var vt=new Error(dt);return d(vt,ct,lt,ht,mt)},createError}var settle$1,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle$1;hasRequiredSettle=1;var d=requireCreateError();return settle$1=function(dt,ct,lt){var ht=lt.config.validateStatus;!lt.status||!ht||ht(lt.status)?dt(lt):ct(d("Request failed with status code "+lt.status,lt.config,null,lt.request,lt))},settle$1}var cookies$1,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies$1;hasRequiredCookies=1;var d=utils$d;return cookies$1=d.isStandardBrowserEnv()?function(){return{write:function(ct,lt,ht,mt,vt,kt){var Pt=[];Pt.push(ct+"="+encodeURIComponent(lt)),d.isNumber(ht)&&Pt.push("expires="+new Date(ht).toGMTString()),d.isString(mt)&&Pt.push("path="+mt),d.isString(vt)&&Pt.push("domain="+vt),kt===!0&&Pt.push("secure"),document.cookie=Pt.join("; ")},read:function(ct){var lt=document.cookie.match(new RegExp("(^|;\\s*)("+ct+")=([^;]*)"));return lt?decodeURIComponent(lt[3]):null},remove:function(ct){this.write(ct,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies$1}var isAbsoluteURL$1,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL$1=function(b){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(b)}),isAbsoluteURL$1}var combineURLs$1,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs$1=function(b,dt){return dt?b.replace(/\/+$/,"")+"/"+dt.replace(/^\/+/,""):b}),combineURLs$1}var buildFullPath$1,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath$1;hasRequiredBuildFullPath=1;var d=requireIsAbsoluteURL(),b=requireCombineURLs();return buildFullPath$1=function(ct,lt){return ct&&!d(lt)?b(ct,lt):lt},buildFullPath$1}var parseHeaders$2,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders$2;hasRequiredParseHeaders=1;var d=utils$d,b=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders$2=function(ct){var lt={},ht,mt,vt;return ct&&d.forEach(ct.split(` -`),function(Pt){if(vt=Pt.indexOf(":"),ht=d.trim(Pt.substr(0,vt)).toLowerCase(),mt=d.trim(Pt.substr(vt+1)),ht){if(lt[ht]&&b.indexOf(ht)>=0)return;ht==="set-cookie"?lt[ht]=(lt[ht]?lt[ht]:[]).concat([mt]):lt[ht]=lt[ht]?lt[ht]+", "+mt:mt}}),lt},parseHeaders$2}var isURLSameOrigin$1,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin$1;hasRequiredIsURLSameOrigin=1;var d=utils$d;return isURLSameOrigin$1=d.isStandardBrowserEnv()?function(){var dt=/(msie|trident)/i.test(navigator.userAgent),ct=document.createElement("a"),lt;function ht(mt){var vt=mt;return dt&&(ct.setAttribute("href",vt),vt=ct.href),ct.setAttribute("href",vt),{href:ct.href,protocol:ct.protocol?ct.protocol.replace(/:$/,""):"",host:ct.host,search:ct.search?ct.search.replace(/^\?/,""):"",hash:ct.hash?ct.hash.replace(/^#/,""):"",hostname:ct.hostname,port:ct.port,pathname:ct.pathname.charAt(0)==="/"?ct.pathname:"/"+ct.pathname}}return lt=ht(window.location.href),function(vt){var kt=d.isString(vt)?ht(vt):vt;return kt.protocol===lt.protocol&&kt.host===lt.host}}():function(){return function(){return!0}}(),isURLSameOrigin$1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var d=utils$d,b=requireSettle(),dt=requireCookies(),ct=buildURL$2,lt=requireBuildFullPath(),ht=requireParseHeaders(),mt=requireIsURLSameOrigin(),vt=requireCreateError();return xhr=function(Pt){return new Promise(function(Zt,Rt){var nn=Pt.data,Qt=Pt.headers,wt=Pt.responseType;d.isFormData(nn)&&delete Qt["Content-Type"];var Nt=new XMLHttpRequest;if(Pt.auth){var xt=Pt.auth.username||"",Et=Pt.auth.password?unescape(encodeURIComponent(Pt.auth.password)):"";Qt.Authorization="Basic "+btoa(xt+":"+Et)}var Bt=lt(Pt.baseURL,Pt.url);Nt.open(Pt.method.toUpperCase(),ct(Bt,Pt.params,Pt.paramsSerializer),!0),Nt.timeout=Pt.timeout;function Tt(){if(Nt){var jt="getAllResponseHeaders"in Nt?ht(Nt.getAllResponseHeaders()):null,Ht=!wt||wt==="text"||wt==="json"?Nt.responseText:Nt.response,an={data:Ht,status:Nt.status,statusText:Nt.statusText,headers:jt,config:Pt,request:Nt};b(Zt,Rt,an),Nt=null}}if("onloadend"in Nt?Nt.onloadend=Tt:Nt.onreadystatechange=function(){!Nt||Nt.readyState!==4||Nt.status===0&&!(Nt.responseURL&&Nt.responseURL.indexOf("file:")===0)||setTimeout(Tt)},Nt.onabort=function(){Nt&&(Rt(vt("Request aborted",Pt,"ECONNABORTED",Nt)),Nt=null)},Nt.onerror=function(){Rt(vt("Network Error",Pt,null,Nt)),Nt=null},Nt.ontimeout=function(){var Ht="timeout of "+Pt.timeout+"ms exceeded";Pt.timeoutErrorMessage&&(Ht=Pt.timeoutErrorMessage),Rt(vt(Ht,Pt,Pt.transitional&&Pt.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",Nt)),Nt=null},d.isStandardBrowserEnv()){var Mt=(Pt.withCredentials||mt(Bt))&&Pt.xsrfCookieName?dt.read(Pt.xsrfCookieName):void 0;Mt&&(Qt[Pt.xsrfHeaderName]=Mt)}"setRequestHeader"in Nt&&d.forEach(Qt,function(Ht,an){typeof nn>"u"&&an.toLowerCase()==="content-type"?delete Qt[an]:Nt.setRequestHeader(an,Ht)}),d.isUndefined(Pt.withCredentials)||(Nt.withCredentials=!!Pt.withCredentials),wt&&wt!=="json"&&(Nt.responseType=Pt.responseType),typeof Pt.onDownloadProgress=="function"&&Nt.addEventListener("progress",Pt.onDownloadProgress),typeof Pt.onUploadProgress=="function"&&Nt.upload&&Nt.upload.addEventListener("progress",Pt.onUploadProgress),Pt.cancelToken&&Pt.cancelToken.promise.then(function(Ht){Nt&&(Nt.abort(),Rt(Ht),Nt=null)}),nn||(nn=null),Nt.send(nn)})},xhr}var utils$9=utils$d,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(d,b){!utils$9.isUndefined(d)&&utils$9.isUndefined(d["Content-Type"])&&(d["Content-Type"]=b)}function getDefaultAdapter(){var d;return(typeof XMLHttpRequest<"u"||typeof browser$1$1<"u"&&Object.prototype.toString.call(browser$1$1)==="[object process]")&&(d=requireXhr()),d}function stringifySafely$1(d,b,dt){if(utils$9.isString(d))try{return(b||JSON.parse)(d),utils$9.trim(d)}catch(ct){if(ct.name!=="SyntaxError")throw ct}return(dt||JSON.stringify)(d)}var defaults$5={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function d(b,dt){return normalizeHeaderName(dt,"Accept"),normalizeHeaderName(dt,"Content-Type"),utils$9.isFormData(b)||utils$9.isArrayBuffer(b)||utils$9.isBuffer(b)||utils$9.isStream(b)||utils$9.isFile(b)||utils$9.isBlob(b)?b:utils$9.isArrayBufferView(b)?b.buffer:utils$9.isURLSearchParams(b)?(setContentTypeIfUnset(dt,"application/x-www-form-urlencoded;charset=utf-8"),b.toString()):utils$9.isObject(b)||dt&&dt["Content-Type"]==="application/json"?(setContentTypeIfUnset(dt,"application/json"),stringifySafely$1(b)):b}],transformResponse:[function d(b){var dt=this.transitional,ct=dt&&dt.silentJSONParsing,lt=dt&&dt.forcedJSONParsing,ht=!ct&&this.responseType==="json";if(ht||lt&&utils$9.isString(b)&&b.length)try{return JSON.parse(b)}catch(mt){if(ht)throw mt.name==="SyntaxError"?enhanceError(mt,this,"E_JSON_PARSE"):mt}return b}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function d(b){return b>=200&&b<300}};defaults$5.headers={common:{Accept:"application/json, text/plain, */*"}};utils$9.forEach(["delete","get","head"],function d(b){defaults$5.headers[b]={}});utils$9.forEach(["post","put","patch"],function d(b){defaults$5.headers[b]=utils$9.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$5,utils$8=utils$d,defaults$4=defaults_1,transformData$2=function d(b,dt,ct){var lt=this||defaults$4;return utils$8.forEach(ct,function(mt){b=mt.call(lt,b,dt)}),b},isCancel$2,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$2=function(b){return!!(b&&b.__CANCEL__)}),isCancel$2}var utils$7=utils$d,transformData$1=transformData$2,isCancel$1=requireIsCancel(),defaults$3=defaults_1;function throwIfCancellationRequested$1(d){d.cancelToken&&d.cancelToken.throwIfRequested()}var dispatchRequest$2=function d(b){throwIfCancellationRequested$1(b),b.headers=b.headers||{},b.data=transformData$1.call(b,b.data,b.headers,b.transformRequest),b.headers=utils$7.merge(b.headers.common||{},b.headers[b.method]||{},b.headers),utils$7.forEach(["delete","get","head","post","put","patch","common"],function(lt){delete b.headers[lt]});var dt=b.adapter||defaults$3.adapter;return dt(b).then(function(lt){return throwIfCancellationRequested$1(b),lt.data=transformData$1.call(b,lt.data,lt.headers,b.transformResponse),lt},function(lt){return isCancel$1(lt)||(throwIfCancellationRequested$1(b),lt&<.response&&(lt.response.data=transformData$1.call(b,lt.response.data,lt.response.headers,b.transformResponse))),Promise.reject(lt)})},utils$6=utils$d,mergeConfig$3=function d(b,dt){dt=dt||{};var ct={},lt=["url","method","data"],ht=["headers","auth","proxy","params"],mt=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],vt=["validateStatus"];function kt(Rt,nn){return utils$6.isPlainObject(Rt)&&utils$6.isPlainObject(nn)?utils$6.merge(Rt,nn):utils$6.isPlainObject(nn)?utils$6.merge({},nn):utils$6.isArray(nn)?nn.slice():nn}function Pt(Rt){utils$6.isUndefined(dt[Rt])?utils$6.isUndefined(b[Rt])||(ct[Rt]=kt(void 0,b[Rt])):ct[Rt]=kt(b[Rt],dt[Rt])}utils$6.forEach(lt,function(nn){utils$6.isUndefined(dt[nn])||(ct[nn]=kt(void 0,dt[nn]))}),utils$6.forEach(ht,Pt),utils$6.forEach(mt,function(nn){utils$6.isUndefined(dt[nn])?utils$6.isUndefined(b[nn])||(ct[nn]=kt(void 0,b[nn])):ct[nn]=kt(void 0,dt[nn])}),utils$6.forEach(vt,function(nn){nn in dt?ct[nn]=kt(b[nn],dt[nn]):nn in b&&(ct[nn]=kt(void 0,b[nn]))});var Jt=lt.concat(ht).concat(mt).concat(vt),Zt=Object.keys(b).concat(Object.keys(dt)).filter(function(nn){return Jt.indexOf(nn)===-1});return utils$6.forEach(Zt,Pt),ct};const name$2="axios",version$3="0.21.4",description$1="Promise based HTTP client for the browser and node.js",main$2="index.js",scripts$2={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository$2={type:"git",url:"https://github.com/axios/axios.git"},keywords=["xhr","http","ajax","promise","node"],author$2="Matt Zabriskie",license$2="MIT",bugs$1={url:"https://github.com/axios/axios/issues"},homepage$1="https://axios-http.com",devDependencies$2={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser$2={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies$2={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name:name$2,version:version$3,description:description$1,main:main$2,scripts:scripts$2,repository:repository$2,keywords,author:author$2,license:license$2,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$2,browser:browser$2,jsdelivr,unpkg,typings,dependencies:dependencies$2,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(d,b){validators$3[d]=function(ct){return typeof ct===d||"a"+(b<1?"n ":" ")+d}});var deprecatedWarnings$1={},currentVerArr=pkg.version.split(".");function isOlderVersion(d,b){for(var dt=b?b.split("."):currentVerArr,ct=d.split("."),lt=0;lt<3;lt++){if(dt[lt]>ct[lt])return!0;if(dt[lt]0;){var ht=ct[lt],mt=b[ht];if(mt){var vt=d[ht],kt=vt===void 0||mt(vt,ht,d);if(kt!==!0)throw new TypeError("option "+ht+" must be "+kt);continue}if(dt!==!0)throw Error("Unknown option "+ht)}}var validator$3={isOlderVersion,assertOptions:assertOptions$1,validators:validators$3},utils$5=utils$d,buildURL$1=buildURL$2,InterceptorManager$2=InterceptorManager_1,dispatchRequest$1=dispatchRequest$2,mergeConfig$2=mergeConfig$3,validator$2=validator$3,validators$2=validator$2.validators;function Axios$3(d){this.defaults=d,this.interceptors={request:new InterceptorManager$2,response:new InterceptorManager$2}}Axios$3.prototype.request=function d(b){typeof b=="string"?(b=arguments[1]||{},b.url=arguments[0]):b=b||{},b=mergeConfig$2(this.defaults,b),b.method?b.method=b.method.toLowerCase():this.defaults.method?b.method=this.defaults.method.toLowerCase():b.method="get";var dt=b.transitional;dt!==void 0&&validator$2.assertOptions(dt,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var ct=[],lt=!0;this.interceptors.request.forEach(function(Rt){typeof Rt.runWhen=="function"&&Rt.runWhen(b)===!1||(lt=lt&&Rt.synchronous,ct.unshift(Rt.fulfilled,Rt.rejected))});var ht=[];this.interceptors.response.forEach(function(Rt){ht.push(Rt.fulfilled,Rt.rejected)});var mt;if(!lt){var vt=[dispatchRequest$1,void 0];for(Array.prototype.unshift.apply(vt,ct),vt=vt.concat(ht),mt=Promise.resolve(b);vt.length;)mt=mt.then(vt.shift(),vt.shift());return mt}for(var kt=b;ct.length;){var Pt=ct.shift(),Jt=ct.shift();try{kt=Pt(kt)}catch(Zt){Jt(Zt);break}}try{mt=dispatchRequest$1(kt)}catch(Zt){return Promise.reject(Zt)}for(;ht.length;)mt=mt.then(ht.shift(),ht.shift());return mt};Axios$3.prototype.getUri=function d(b){return b=mergeConfig$2(this.defaults,b),buildURL$1(b.url,b.params,b.paramsSerializer).replace(/^\?/,"")};utils$5.forEach(["delete","get","head","options"],function d(b){Axios$3.prototype[b]=function(dt,ct){return this.request(mergeConfig$2(ct||{},{method:b,url:dt,data:(ct||{}).data}))}});utils$5.forEach(["post","put","patch"],function d(b){Axios$3.prototype[b]=function(dt,ct,lt){return this.request(mergeConfig$2(lt||{},{method:b,url:dt,data:ct}))}});var Axios_1=Axios$3,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function d(b){this.message=b}return d.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},d.prototype.__CANCEL__=!0,Cancel_1=d,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var d=requireCancel();function b(dt){if(typeof dt!="function")throw new TypeError("executor must be a function.");var ct;this.promise=new Promise(function(mt){ct=mt});var lt=this;dt(function(mt){lt.reason||(lt.reason=new d(mt),ct(lt.reason))})}return b.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},b.source=function(){var ct,lt=new b(function(mt){ct=mt});return{token:lt,cancel:ct}},CancelToken_1=b,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(b){return function(ct){return b.apply(null,ct)}}),spread$1}var isAxiosError$1,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError$1=function(b){return typeof b=="object"&&b.isAxiosError===!0}),isAxiosError$1}var utils$4=utils$d,bind$1=bind$3,Axios$2=Axios_1,mergeConfig$1=mergeConfig$3,defaults$2=defaults_1;function createInstance$1(d){var b=new Axios$2(d),dt=bind$1(Axios$2.prototype.request,b);return utils$4.extend(dt,Axios$2.prototype,b),utils$4.extend(dt,b),dt}var axios$2=createInstance$1(defaults$2);axios$2.Axios=Axios$2;axios$2.create=function d(b){return createInstance$1(mergeConfig$1(axios$2.defaults,b))};axios$2.Cancel=requireCancel();axios$2.CancelToken=requireCancelToken();axios$2.isCancel=requireIsCancel();axios$2.all=function d(b){return Promise.all(b)};axios$2.spread=requireSpread();axios$2.isAxiosError=requireIsAxiosError();axios$3.exports=axios$2;axios$3.exports.default=axios$2;var axiosExports=axios$3.exports,axios$1=axiosExports,__importDefault$o=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(http$1,"__esModule",{value:!0});http$1.http=void 0;const axios_1$3=__importDefault$o(axios$1);function filterBadStatus(d){if(d.status>=400)throw new Error(`Bad status on response: ${d.status}`);return d}function isExperimental(d){return d.toString().includes("emitExperimentalWarning")}async function http(d,b,dt,ct){if(typeof fetch=="function"&&!isExperimental(fetch)){const lt={method:d,body:ct?JSON.stringify(ct):void 0,headers:{"Content-Type":"application/json",...dt}};return fetch(b,lt).then(filterBadStatus).then(ht=>ht.json())}else return axios_1$3.default.request({url:b,method:d,data:ct,headers:dt}).then(lt=>lt.data)}http$1.http=http;var rpcclient={};Object.defineProperty(rpcclient,"__esModule",{value:!0});rpcclient.hasProtocol=rpcclient.instanceOfRpcStreamingClient=void 0;function instanceOfRpcStreamingClient(d){return typeof d.listen=="function"}rpcclient.instanceOfRpcStreamingClient=instanceOfRpcStreamingClient;function hasProtocol(d){return d.search("://")!==-1}rpcclient.hasProtocol=hasProtocol;Object.defineProperty(httpbatchclient,"__esModule",{value:!0});httpbatchclient.HttpBatchClient=void 0;const json_rpc_1$2=build$1,http_1$1=http$1,rpcclient_1$2=rpcclient,defaultHttpBatchClientOptions={dispatchInterval:20,batchSizeLimit:20};class HttpBatchClient{constructor(b,dt={}){this.queue=[],this.options={batchSizeLimit:dt.batchSizeLimit??defaultHttpBatchClientOptions.batchSizeLimit,dispatchInterval:dt.dispatchInterval??defaultHttpBatchClientOptions.dispatchInterval},typeof b=="string"?this.url=(0,rpcclient_1$2.hasProtocol)(b)?b:"http://"+b:(this.url=b.url,this.headers=b.headers),this.timer=setInterval(()=>this.tick(),dt.dispatchInterval),this.validate()}disconnect(){this.timer&&clearInterval(this.timer),this.timer=void 0}async execute(b){return new Promise((dt,ct)=>{this.queue.push({request:b,resolve:dt,reject:ct}),this.queue.length>=this.options.batchSizeLimit&&this.tick()})}validate(){if(!this.options.batchSizeLimit||!Number.isSafeInteger(this.options.batchSizeLimit)||this.options.batchSizeLimit<1)throw new Error("batchSizeLimit must be a safe integer >= 1")}tick(){const b=this.queue.splice(0,this.options.batchSizeLimit);if(!b.length)return;const dt=b.map(lt=>lt.request),ct=dt.map(lt=>lt.id);(0,http_1$1.http)("POST",this.url,this.headers,dt).then(lt=>{(Array.isArray(lt)?lt:[lt]).forEach(mt=>{const vt=b.find(Zt=>Zt.request.id===mt.id);if(!vt)return;const{reject:kt,resolve:Pt}=vt,Jt=(0,json_rpc_1$2.parseJsonRpcResponse)(mt);(0,json_rpc_1$2.isJsonRpcErrorResponse)(Jt)?kt(new Error(JSON.stringify(Jt.error))):Pt(Jt)})},lt=>{for(const ht of ct){const mt=b.find(vt=>vt.request.id===ht);if(!mt)return;mt.reject(lt)}})}}httpbatchclient.HttpBatchClient=HttpBatchClient;var httpclient={};Object.defineProperty(httpclient,"__esModule",{value:!0});httpclient.HttpClient=void 0;const json_rpc_1$1=build$1,http_1=http$1,rpcclient_1$1=rpcclient;class HttpClient{constructor(b){typeof b=="string"?this.url=(0,rpcclient_1$1.hasProtocol)(b)?b:"http://"+b:(this.url=b.url,this.headers=b.headers)}disconnect(){}async execute(b){const dt=(0,json_rpc_1$1.parseJsonRpcResponse)(await(0,http_1.http)("POST",this.url,this.headers,b));if((0,json_rpc_1$1.isJsonRpcErrorResponse)(dt))throw new Error(JSON.stringify(dt.error));return dt}}httpclient.HttpClient=HttpClient;var websocketclient={},build={},queueingstreamingsocket={},streamingsocket={},socketwrapper={},ws=null;typeof WebSocket<"u"?ws=WebSocket:typeof MozWebSocket<"u"?ws=MozWebSocket:typeof commonjsGlobal<"u"?ws=commonjsGlobal.WebSocket||commonjsGlobal.MozWebSocket:typeof window<"u"?ws=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(ws=self.WebSocket||self.MozWebSocket);var browser$1=ws,__importDefault$n=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(socketwrapper,"__esModule",{value:!0});socketwrapper.SocketWrapper=void 0;const isomorphic_ws_1=__importDefault$n(browser$1);function environmentIsNodeJs(){return typeof browser$1$1<"u"&&typeof browser$1$1.versions<"u"&&typeof browser$1$1.versions.node<"u"}class SocketWrapper{constructor(b,dt,ct,lt,ht,mt=1e4){this.closed=!1,this.connected=new Promise((vt,kt)=>{this.connectedResolver=vt,this.connectedRejecter=kt}),this.url=b,this.messageHandler=dt,this.errorHandler=ct,this.openHandler=lt,this.closeHandler=ht,this.timeout=mt}connect(){const b=new isomorphic_ws_1.default(this.url);b.onerror=ct=>{this.clearTimeout(),this.errorHandler&&this.errorHandler(ct)},b.onmessage=ct=>{this.messageHandler({type:ct.type,data:ct.data})},b.onopen=ct=>{this.clearTimeout(),this.connectedResolver(),this.openHandler&&this.openHandler()},b.onclose=ct=>{this.closed=!0,this.closeHandler&&this.closeHandler(ct)};const dt=Date.now();this.timeoutId=setTimeout(()=>{b.onmessage=()=>0,b.onerror=()=>0,b.onopen=()=>0,b.onclose=()=>0,b.close(),this.socket=void 0;const ct=Math.floor(Date.now()-dt);this.connectedRejecter(`Connection attempt timed out after ${ct} ms`)},this.timeout),this.socket=b}disconnect(){if(!this.socket)throw new Error("Socket undefined. This must be called after connecting.");switch(this.clearTimeout(),this.socket.readyState){case isomorphic_ws_1.default.OPEN:this.socket.close(1e3);break;case isomorphic_ws_1.default.CLOSED:break;case isomorphic_ws_1.default.CONNECTING:this.socket.onopen=()=>0,this.socket.onclose=()=>0,this.socket.onerror=()=>0,this.socket.onmessage=()=>0,this.socket=void 0,this.closeHandler&&this.closeHandler({wasClean:!1,code:4001});break;case isomorphic_ws_1.default.CLOSING:break;default:throw new Error(`Unknown readyState: ${this.socket.readyState}`)}}async send(b){return new Promise((dt,ct)=>{if(!this.socket)throw new Error("Socket undefined. This must be called after connecting.");if(this.closed)throw new Error("Socket was closed, so no data can be sent anymore.");if(this.socket.readyState!==isomorphic_ws_1.default.OPEN)throw new Error("Websocket is not open");environmentIsNodeJs()?this.socket.send(b,lt=>lt?ct(lt):dt()):(this.socket.send(b),dt())})}clearTimeout(){if(!this.timeoutId)throw new Error("Timeout ID not set. This should not happen and usually means connect() was not called.");clearTimeout(this.timeoutId)}}socketwrapper.SocketWrapper=SocketWrapper;Object.defineProperty(streamingsocket,"__esModule",{value:!0});streamingsocket.StreamingSocket=void 0;const xstream_1$2=xstream,socketwrapper_1=socketwrapper;class StreamingSocket{constructor(b,dt=1e4){this.socket=new socketwrapper_1.SocketWrapper(b,lt=>{this.eventProducerListener&&this.eventProducerListener.next(lt)},lt=>{this.eventProducerListener&&this.eventProducerListener.error(lt)},()=>{},lt=>{this.eventProducerListener&&(lt.wasClean?this.eventProducerListener.complete():this.eventProducerListener.error("Socket was closed unclean"))},dt),this.connected=this.socket.connected;const ct={start:lt=>this.eventProducerListener=lt,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$2.Stream.create(ct)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}async send(b){return this.socket.send(b)}}streamingsocket.StreamingSocket=StreamingSocket;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.QueueingStreamingSocket=d.ConnectionStatus=void 0;const b=build$4,dt=xstream,ct=streamingsocket;var lt;(function(mt){mt[mt.Unconnected=0]="Unconnected",mt[mt.Connecting=1]="Connecting",mt[mt.Connected=2]="Connected",mt[mt.Disconnected=3]="Disconnected"})(lt=d.ConnectionStatus||(d.ConnectionStatus={}));class ht{constructor(vt,kt=1e4,Pt){this.queue=[],this.isProcessingQueue=!1,this.url=vt,this.timeout=kt,this.reconnectedHandler=Pt;const Jt={start:Zt=>this.eventProducerListener=Zt,stop:()=>this.eventProducerListener=void 0};this.events=dt.Stream.create(Jt),this.connectionStatusProducer=new b.DefaultValueProducer(lt.Unconnected),this.connectionStatus=new b.ValueAndUpdates(this.connectionStatusProducer),this.socket=new ct.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:Zt=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(Zt)},error:()=>this.connectionStatusProducer.update(lt.Disconnected)})}connect(){this.connectionStatusProducer.update(lt.Connecting),this.socket.connected.then(async()=>(this.connectionStatusProducer.update(lt.Connected),this.processQueue()),()=>this.connectionStatusProducer.update(lt.Disconnected)),this.socket.connect()}disconnect(){this.connectionStatusProducer.update(lt.Disconnected),this.socket.disconnect()}reconnect(){this.socket=new ct.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:vt=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(vt)},error:()=>this.connectionStatusProducer.update(lt.Disconnected)}),this.socket.connected.then(()=>{this.reconnectedHandler&&this.reconnectedHandler()}),this.connect()}getQueueLength(){return this.queue.length}queueRequest(vt){this.queue.push(vt),this.processQueue()}async processQueue(){if(this.isProcessingQueue||this.connectionStatus.value!==lt.Connected)return;this.isProcessingQueue=!0;let vt;for(;vt=this.queue.shift();)try{await this.socket.send(vt),this.isProcessingQueue=!1}catch{this.queue.unshift(vt),this.isProcessingQueue=!1;return}}}d.QueueingStreamingSocket=ht})(queueingstreamingsocket);var reconnectingsocket={};Object.defineProperty(reconnectingsocket,"__esModule",{value:!0});reconnectingsocket.ReconnectingSocket=void 0;const xstream_1$1=xstream,queueingstreamingsocket_1=queueingstreamingsocket;class ReconnectingSocket{static calculateTimeout(b){return Math.min(2**b*100,5e3)}constructor(b,dt=1e4,ct){this.unconnected=!0,this.disconnected=!1,this.timeoutIndex=0,this.reconnectTimeout=null;const lt={start:ht=>this.eventProducerListener=ht,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$1.Stream.create(lt),this.socket=new queueingstreamingsocket_1.QueueingStreamingSocket(b,dt,ct),this.socket.events.subscribe({next:ht=>{this.eventProducerListener&&this.eventProducerListener.next(ht)},error:ht=>{this.eventProducerListener&&this.eventProducerListener.error(ht)}}),this.connectionStatus=this.socket.connectionStatus,this.connectionStatus.updates.subscribe({next:ht=>{ht===queueingstreamingsocket_1.ConnectionStatus.Connected&&(this.timeoutIndex=0),ht===queueingstreamingsocket_1.ConnectionStatus.Disconnected&&(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.reconnectTimeout=setTimeout(()=>this.socket.reconnect(),ReconnectingSocket.calculateTimeout(this.timeoutIndex++)))}})}connect(){if(!this.unconnected)throw new Error("Cannot connect: socket has already connected");this.socket.connect(),this.unconnected=!1}disconnect(){if(this.unconnected)throw new Error("Cannot disconnect: socket has not yet connected");this.socket.disconnect(),this.eventProducerListener&&this.eventProducerListener.complete(),this.disconnected=!0}queueRequest(b){if(this.disconnected)throw new Error("Cannot queue request: socket has disconnected");this.socket.queueRequest(b)}}reconnectingsocket.ReconnectingSocket=ReconnectingSocket;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.StreamingSocket=d.SocketWrapper=d.ReconnectingSocket=d.QueueingStreamingSocket=d.ConnectionStatus=void 0;var b=queueingstreamingsocket;Object.defineProperty(d,"ConnectionStatus",{enumerable:!0,get:function(){return b.ConnectionStatus}}),Object.defineProperty(d,"QueueingStreamingSocket",{enumerable:!0,get:function(){return b.QueueingStreamingSocket}});var dt=reconnectingsocket;Object.defineProperty(d,"ReconnectingSocket",{enumerable:!0,get:function(){return dt.ReconnectingSocket}});var ct=socketwrapper;Object.defineProperty(d,"SocketWrapper",{enumerable:!0,get:function(){return ct.SocketWrapper}});var lt=streamingsocket;Object.defineProperty(d,"StreamingSocket",{enumerable:!0,get:function(){return lt.StreamingSocket}})})(build);Object.defineProperty(websocketclient,"__esModule",{value:!0});websocketclient.WebsocketClient=void 0;const json_rpc_1=build$1,socket_1=build,stream_1=build$4,xstream_1=xstream,rpcclient_1=rpcclient;function defaultErrorHandler(d){throw d}function toJsonRpcResponse(d){if(d.type!=="message")throw new Error(`Unexcepted message type on websocket: ${d.type}`);return(0,json_rpc_1.parseJsonRpcResponse)(JSON.parse(d.data))}class RpcEventProducer{constructor(b,dt){this.running=!1,this.subscriptions=[],this.request=b,this.socket=dt}start(b){if(this.running)throw Error("Already started. Please stop first before restarting.");this.running=!0,this.connectToClient(b),this.socket.queueRequest(JSON.stringify(this.request))}stop(){this.running=!1;const b={...this.request,method:"unsubscribe"};try{this.socket.queueRequest(JSON.stringify(b))}catch(dt){if(!(dt instanceof Error&&dt.message.match(/socket has disconnected/i)))throw dt}}connectToClient(b){const dt=this.socket.events.map(toJsonRpcResponse),ct=dt.filter(mt=>mt.id===this.request.id).subscribe({next:mt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(mt)&&(this.closeSubscriptions(),b.error(JSON.stringify(mt.error))),ct.unsubscribe()}}),lt=dt.filter(mt=>mt.id===this.request.id).subscribe({next:mt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(mt)?(this.closeSubscriptions(),b.error(JSON.stringify(mt.error))):b.next(mt.result)}}),ht=dt.subscribe({error:mt=>{this.closeSubscriptions(),b.error(mt)},complete:()=>{this.closeSubscriptions(),b.complete()}});this.subscriptions.push(ct,lt,ht)}closeSubscriptions(){for(const b of this.subscriptions)b.unsubscribe();this.subscriptions=[]}}class WebsocketClient{constructor(b,dt=defaultErrorHandler){this.subscriptionStreams=new Map;const ct=b.endsWith("/")?"websocket":"/websocket",lt=(0,rpcclient_1.hasProtocol)(b)?b:"ws://"+b;this.url=lt+ct,this.socket=new socket_1.ReconnectingSocket(this.url);const ht=this.socket.events.subscribe({error:mt=>{dt(mt),ht.unsubscribe()}});this.jsonRpcResponseStream=this.socket.events.map(toJsonRpcResponse),this.socket.connect()}async execute(b){const dt=this.responseForRequestId(b.id);this.socket.queueRequest(JSON.stringify(b));const ct=await dt;if((0,json_rpc_1.isJsonRpcErrorResponse)(ct))throw new Error(JSON.stringify(ct.error));return ct}listen(b){if(b.method!=="subscribe")throw new Error('Request method must be "subscribe" to start event listening');const dt=b.params.query;if(typeof dt!="string")throw new Error("request.params.query must be a string");if(!this.subscriptionStreams.has(dt)){const ct=new RpcEventProducer(b,this.socket),lt=xstream_1.Stream.create(ct);this.subscriptionStreams.set(dt,lt)}return this.subscriptionStreams.get(dt).filter(ct=>ct.query!==void 0)}async connected(){await this.socket.connectionStatus.waitFor(socket_1.ConnectionStatus.Connected)}disconnect(){this.socket.disconnect()}async responseForRequestId(b){return(0,stream_1.firstEvent)(this.jsonRpcResponseStream.filter(dt=>dt.id===b))}}websocketclient.WebsocketClient=WebsocketClient;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.WebsocketClient=d.instanceOfRpcStreamingClient=d.HttpClient=d.HttpBatchClient=void 0;var b=httpbatchclient;Object.defineProperty(d,"HttpBatchClient",{enumerable:!0,get:function(){return b.HttpBatchClient}});var dt=httpclient;Object.defineProperty(d,"HttpClient",{enumerable:!0,get:function(){return dt.HttpClient}});var ct=rpcclient;Object.defineProperty(d,"instanceOfRpcStreamingClient",{enumerable:!0,get:function(){return ct.instanceOfRpcStreamingClient}});var lt=websocketclient;Object.defineProperty(d,"WebsocketClient",{enumerable:!0,get:function(){return lt.WebsocketClient}})})(rpcclients);var tendermint34={},requests$7={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.buildQuery=d.SubscriptionEventType=d.Method=void 0,function(dt){dt.AbciInfo="abci_info",dt.AbciQuery="abci_query",dt.Block="block",dt.Blockchain="blockchain",dt.BlockResults="block_results",dt.BlockSearch="block_search",dt.BroadcastTxAsync="broadcast_tx_async",dt.BroadcastTxSync="broadcast_tx_sync",dt.BroadcastTxCommit="broadcast_tx_commit",dt.Commit="commit",dt.Genesis="genesis",dt.Health="health",dt.NumUnconfirmedTxs="num_unconfirmed_txs",dt.Status="status",dt.Subscribe="subscribe",dt.Tx="tx",dt.TxSearch="tx_search",dt.Validators="validators",dt.Unsubscribe="unsubscribe"}(d.Method||(d.Method={})),function(dt){dt.NewBlock="NewBlock",dt.NewBlockHeader="NewBlockHeader",dt.Tx="Tx"}(d.SubscriptionEventType||(d.SubscriptionEventType={}));function b(dt){const lt=(dt.tags?dt.tags:[]).map(mt=>`${mt.key}='${mt.value}'`),ht=dt.raw?[dt.raw]:[];return[...lt,...ht].join(" AND ")}d.buildQuery=b})(requests$7);var responses$3={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.VoteType=d.broadcastTxCommitSuccess=d.broadcastTxSyncSuccess=void 0;function b(ct){return ct.code===0}d.broadcastTxSyncSuccess=b;function dt(ct){return ct.checkTx.code===0&&!!ct.deliverTx&&ct.deliverTx.code===0}d.broadcastTxCommitSuccess=dt,function(ct){ct[ct.PreVote=1]="PreVote",ct[ct.PreCommit=2]="PreCommit"}(d.VoteType||(d.VoteType={}))})(responses$3);var tendermint34client={},jsonrpc={};Object.defineProperty(jsonrpc,"__esModule",{value:!0});jsonrpc.createJsonRpcRequest=void 0;const numbersWithoutZero="123456789";function randomNumericChar(){return numbersWithoutZero[Math.floor(Math.random()*numbersWithoutZero.length)]}function randomId(){return parseInt(Array.from({length:12}).map(()=>randomNumericChar()).join(""),10)}function createJsonRpcRequest(d,b){const dt=b?{...b}:{};return{jsonrpc:"2.0",id:randomId(),method:d,params:dt}}jsonrpc.createJsonRpcRequest=createJsonRpcRequest;var adaptor$1={},hasher$1={},encodings$1={};Object.defineProperty(encodings$1,"__esModule",{value:!0});encodings$1.encodeBlockId=encodings$1.encodeVersion=encodings$1.encodeBytes=encodings$1.encodeTime=encodings$1.encodeUvarint=encodings$1.encodeString=encodings$1.dictionaryToStringMap=encodings$1.may=encodings$1.assertNotEmpty=encodings$1.assertObject=encodings$1.assertArray=encodings$1.assertNumber=encodings$1.assertString=encodings$1.assertBoolean=encodings$1.assertSet=void 0;const encoding_1$e=build$2;function assertSet$1(d){if(d===void 0)throw new Error("Value must not be undefined");if(d===null)throw new Error("Value must not be null");return d}encodings$1.assertSet=assertSet$1;function assertBoolean$1(d){if(assertSet$1(d),typeof d!="boolean")throw new Error("Value must be a boolean");return d}encodings$1.assertBoolean=assertBoolean$1;function assertString$1(d){if(assertSet$1(d),typeof d!="string")throw new Error("Value must be a string");return d}encodings$1.assertString=assertString$1;function assertNumber$1(d){if(assertSet$1(d),typeof d!="number")throw new Error("Value must be a number");return d}encodings$1.assertNumber=assertNumber$1;function assertArray$1(d){if(assertSet$1(d),!Array.isArray(d))throw new Error("Value must be a an array");return d}encodings$1.assertArray=assertArray$1;function assertObject$1(d){if(assertSet$1(d),typeof d!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(d)!=="[object Object]")throw new Error("Value must be a simple object");return d}encodings$1.assertObject=assertObject$1;function assertNotEmpty$1(d){if(assertSet$1(d),typeof d=="number"&&d===0)throw new Error("must provide a non-zero value");if(d.length===0)throw new Error("must provide a non-empty value");return d}encodings$1.assertNotEmpty=assertNotEmpty$1;function may$1(d,b){return b==null?void 0:d(b)}encodings$1.may=may$1;function dictionaryToStringMap$1(d){const b=new Map;for(const dt of Object.keys(d)){const ct=d[dt];if(typeof ct!="string")throw new Error("Found dictionary value of type other than string");b.set(dt,ct)}return b}encodings$1.dictionaryToStringMap=dictionaryToStringMap$1;function encodeString$1(d){const b=(0,encoding_1$e.toUtf8)(d);return Uint8Array.from([b.length,...b])}encodings$1.encodeString=encodeString$1;function encodeUvarint$1(d){return d>=128?Uint8Array.from([d&255|128,...encodeUvarint$1(d>>7)]):Uint8Array.from([d&255])}encodings$1.encodeUvarint=encodeUvarint$1;function encodeTime$1(d){const b=d.getTime(),dt=Math.floor(b/1e3),ct=dt?[8,...encodeUvarint$1(dt)]:new Uint8Array,lt=(d.nanoseconds||0)+b%1e3*1e6,ht=lt?[16,...encodeUvarint$1(lt)]:new Uint8Array;return Uint8Array.from([...ct,...ht])}encodings$1.encodeTime=encodeTime$1;function encodeBytes$1(d){if(d.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return d.length?Uint8Array.from([d.length,...d]):new Uint8Array}encodings$1.encodeBytes=encodeBytes$1;function encodeVersion$1(d){const b=d.block?Uint8Array.from([8,...encodeUvarint$1(d.block)]):new Uint8Array,dt=d.app?Uint8Array.from([16,...encodeUvarint$1(d.app)]):new Uint8Array;return Uint8Array.from([...b,...dt])}encodings$1.encodeVersion=encodeVersion$1;function encodeBlockId$1(d){return Uint8Array.from([10,d.hash.length,...d.hash,18,d.parts.hash.length+4,8,d.parts.total,18,d.parts.hash.length,...d.parts.hash])}encodings$1.encodeBlockId=encodeBlockId$1;Object.defineProperty(hasher$1,"__esModule",{value:!0});hasher$1.hashBlock=hasher$1.hashTx=void 0;const crypto_1$8=build$b,encodings_1$6=encodings$1;function hashTx$1(d){return(0,crypto_1$8.sha256)(d)}hasher$1.hashTx=hashTx$1;function getSplitPoint$1(d){if(d<1)throw new Error("Cannot split an empty tree");const b=2**Math.floor(Math.log2(d));return b({type:b.type,key:(0,encoding_1$c.fromBase64)(b.key),data:(0,encoding_1$c.fromBase64)(b.data)}))}}function decodeAbciQuery$1(d){return{key:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertString)(d.key??"")),value:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertString)(d.value??"")),proof:(0,encodings_1$3.may)(decodeQueryProof$1,d.proofOps),height:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,d.height),code:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,d.code),codespace:(0,encodings_1$3.assertString)(d.codespace??""),index:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,d.index),log:d.log,info:(0,encodings_1$3.assertString)(d.info??"")}}function decodeAttribute(d){return{key:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.key)),value:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertString)(d.value??""))}}function decodeAttributes$1(d){return(0,encodings_1$3.assertArray)(d).map(decodeAttribute)}function decodeEvent$1(d){return{type:d.type,attributes:d.attributes?decodeAttributes$1(d.attributes):[]}}responses$2.decodeEvent=decodeEvent$1;function decodeEvents$1(d){return(0,encodings_1$3.assertArray)(d).map(decodeEvent$1)}function decodeTxData$1(d){return{code:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(d.code??0)),codespace:d.codespace,log:d.log,data:(0,encodings_1$3.may)(encoding_1$c.fromBase64,d.data),events:d.events?decodeEvents$1(d.events):[],gasWanted:(0,inthelpers_1$2.apiToSmallInt)(d.gas_wanted??"0"),gasUsed:(0,inthelpers_1$2.apiToSmallInt)(d.gas_used??"0")}}function decodePubkey$1(d){if("Sum"in d){const[[b,dt]]=Object.entries(d.Sum.value);return(0,utils_1$7.assert)(b==="ed25519"||b==="secp256k1",`unknown pubkey type: ${b}`),{algorithm:b,data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(dt))}}else switch(d.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.value))};default:throw new Error(`unknown pubkey type: ${d.type}`)}}function decodeBlockParams$1(d){return{maxBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_bytes)),maxGas:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_gas))}}function decodeEvidenceParams$1(d){return{maxAgeNumBlocks:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_age_duration))}}function decodeConsensusParams$1(d){return{block:decodeBlockParams$1((0,encodings_1$3.assertObject)(d.block)),evidence:decodeEvidenceParams$1((0,encodings_1$3.assertObject)(d.evidence))}}function decodeValidatorUpdate$1(d){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)(d.power??"0")}}responses$2.decodeValidatorUpdate=decodeValidatorUpdate$1;function decodeBlockResults$1(d){return{height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),results:(d.txs_results||[]).map(decodeTxData$1),validatorUpdates:(d.validator_updates||[]).map(decodeValidatorUpdate$1),consensusUpdates:(0,encodings_1$3.may)(decodeConsensusParams$1,d.consensus_param_updates),beginBlockEvents:decodeEvents$1(d.begin_block_events||[]),endBlockEvents:decodeEvents$1(d.end_block_events||[])}}function decodeBlockId$1(d){return{hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash)),parts:{total:(0,encodings_1$3.assertNotEmpty)(d.parts.total),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.parts.hash))}}}function decodeBlockVersion$1(d){return{block:(0,inthelpers_1$2.apiToSmallInt)(d.block),app:(0,inthelpers_1$2.apiToSmallInt)(d.app??0)}}function decodeHeader$1(d){return{version:decodeBlockVersion$1(d.version),chainId:(0,encodings_1$3.assertNotEmpty)(d.chain_id),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),time:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(d.time)),lastBlockId:d.last_block_id.hash?decodeBlockId$1(d.last_block_id):null,lastCommitHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.last_commit_hash)),dataHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.data_hash)),validatorsHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.validators_hash)),nextValidatorsHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.next_validators_hash)),consensusHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.consensus_hash)),appHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.app_hash)),lastResultsHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.last_results_hash)),evidenceHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.evidence_hash)),proposerAddress:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.proposer_address))}}function decodeBlockMeta$1(d){return{blockId:decodeBlockId$1(d.block_id),blockSize:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.block_size)),header:decodeHeader$1(d.header),numTxs:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.num_txs))}}function decodeBlockchain$1(d){return{lastHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.last_height)),blockMetas:(0,encodings_1$3.assertArray)(d.block_metas).map(decodeBlockMeta$1)}}function decodeBroadcastTxSync$1(d){return{...decodeTxData$1(d),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash))}}function decodeBroadcastTxCommit$1(d){return{height:(0,inthelpers_1$2.apiToSmallInt)(d.height),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash)),checkTx:decodeTxData$1((0,encodings_1$3.assertObject)(d.check_tx)),deliverTx:(0,encodings_1$3.may)(decodeTxData$1,d.deliver_tx)}}function decodeBlockIdFlag$1(d){return(0,utils_1$7.assert)(d in types_1$4.BlockIdFlag),d}function decodeOptionalTime$1(d){return d&&!d.startsWith("0001-01-01")?(0,dates_1$1.fromRfc3339WithNanoseconds)(d):void 0}function decodeCommitSignature$1(d){return{blockIdFlag:decodeBlockIdFlag$1(d.block_id_flag),validatorAddress:d.validator_address?(0,encoding_1$c.fromHex)(d.validator_address):void 0,timestamp:decodeOptionalTime$1(d.timestamp),signature:d.signature?(0,encoding_1$c.fromBase64)(d.signature):void 0}}function decodeCommit$1(d){return{blockId:decodeBlockId$1((0,encodings_1$3.assertObject)(d.block_id)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),round:(0,inthelpers_1$2.apiToSmallInt)(d.round),signatures:(0,encodings_1$3.assertArray)(d.signatures).map(decodeCommitSignature$1)}}function decodeCommitResponse$1(d){return{canonical:(0,encodings_1$3.assertBoolean)(d.canonical),header:decodeHeader$1(d.signed_header.header),commit:decodeCommit$1(d.signed_header.commit)}}function decodeValidatorGenesis$1(d){return{address:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.address)),pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(d.power))}}responses$2.decodeValidatorGenesis=decodeValidatorGenesis$1;function decodeGenesis$1(d){return{genesisTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(d.genesis_time)),chainId:(0,encodings_1$3.assertNotEmpty)(d.chain_id),consensusParams:decodeConsensusParams$1(d.consensus_params),validators:d.validators?(0,encodings_1$3.assertArray)(d.validators).map(decodeValidatorGenesis$1):[],appHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.app_hash)),appState:d.app_state}}function decodeValidatorInfo$1(d){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(d.voting_power)),address:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.address)),proposerPriority:d.proposer_priority?(0,inthelpers_1$2.apiToSmallInt)(d.proposer_priority):void 0}}responses$2.decodeValidatorInfo=decodeValidatorInfo$1;function decodeNodeInfo$1(d){return{id:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.id)),listenAddr:(0,encodings_1$3.assertNotEmpty)(d.listen_addr),network:(0,encodings_1$3.assertNotEmpty)(d.network),version:(0,encodings_1$3.assertString)(d.version),channels:(0,encodings_1$3.assertNotEmpty)(d.channels),moniker:(0,encodings_1$3.assertNotEmpty)(d.moniker),other:(0,encodings_1$3.dictionaryToStringMap)(d.other),protocolVersion:{app:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.protocol_version.app)),block:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.protocol_version.block)),p2p:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.protocol_version.p2p))}}}function decodeSyncInfo$1(d){const b=d.earliest_block_height?(0,inthelpers_1$2.apiToSmallInt)(d.earliest_block_height):void 0,dt=d.earliest_block_time?(0,dates_1$1.fromRfc3339WithNanoseconds)(d.earliest_block_time):void 0;return{earliestAppHash:d.earliest_app_hash?(0,encoding_1$c.fromHex)(d.earliest_app_hash):void 0,earliestBlockHash:d.earliest_block_hash?(0,encoding_1$c.fromHex)(d.earliest_block_hash):void 0,earliestBlockHeight:b||void 0,earliestBlockTime:dt!=null&&dt.getTime()?dt:void 0,latestBlockHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.latest_block_hash)),latestAppHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.latest_app_hash)),latestBlockTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(d.latest_block_time)),latestBlockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.latest_block_height)),catchingUp:(0,encodings_1$3.assertBoolean)(d.catching_up)}}function decodeStatus$1(d){return{nodeInfo:decodeNodeInfo$1(d.node_info),syncInfo:decodeSyncInfo$1(d.sync_info),validatorInfo:decodeValidatorInfo$1(d.validator_info)}}function decodeTxProof$1(d){return{data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.data)),rootHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.root_hash)),proof:{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.proof.total)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.proof.index)),leafHash:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.proof.leaf_hash)),aunts:(0,encodings_1$3.assertArray)(d.proof.aunts).map(encoding_1$c.fromBase64)}}}function decodeTxResponse$1(d){return{tx:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.tx)),result:decodeTxData$1((0,encodings_1$3.assertObject)(d.tx_result)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(d.index)),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash)),proof:(0,encodings_1$3.may)(decodeTxProof$1,d.proof)}}function decodeTxSearch$1(d){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total_count)),txs:(0,encodings_1$3.assertArray)(d.txs).map(decodeTxResponse$1)}}function decodeTxEvent$1(d){const b=(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.tx));return{tx:b,hash:(0,hasher_1$3.hashTx)(b),result:decodeTxData$1(d.result),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height))}}function decodeValidators$1(d){return{blockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.block_height)),validators:(0,encodings_1$3.assertArray)(d.validators).map(decodeValidatorInfo$1),count:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.count)),total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total))}}function decodeBlock$1(d){var b;return{header:decodeHeader$1((0,encodings_1$3.assertObject)(d.header)),lastCommit:d.last_commit.block_id.hash?decodeCommit$1((0,encodings_1$3.assertObject)(d.last_commit)):null,txs:d.data.txs?(0,encodings_1$3.assertArray)(d.data.txs).map(encoding_1$c.fromBase64):[],evidence:((b=d.evidence)==null?void 0:b.evidence)??[]}}function decodeBlockResponse$1(d){return{blockId:decodeBlockId$1(d.block_id),block:decodeBlock$1(d.block)}}function decodeBlockSearch$1(d){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total_count)),blocks:(0,encodings_1$3.assertArray)(d.blocks).map(decodeBlockResponse$1)}}function decodeNumUnconfirmedTxs$1(d){return{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total)),totalBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total_bytes))}}let Responses$1=class g2{static decodeAbciInfo(b){return decodeAbciInfo$1((0,encodings_1$3.assertObject)(b.result.response))}static decodeAbciQuery(b){return decodeAbciQuery$1((0,encodings_1$3.assertObject)(b.result.response))}static decodeBlock(b){return decodeBlockResponse$1(b.result)}static decodeBlockResults(b){return decodeBlockResults$1(b.result)}static decodeBlockSearch(b){return decodeBlockSearch$1(b.result)}static decodeBlockchain(b){return decodeBlockchain$1(b.result)}static decodeBroadcastTxSync(b){return decodeBroadcastTxSync$1(b.result)}static decodeBroadcastTxAsync(b){return g2.decodeBroadcastTxSync(b)}static decodeBroadcastTxCommit(b){return decodeBroadcastTxCommit$1(b.result)}static decodeCommit(b){return decodeCommitResponse$1(b.result)}static decodeGenesis(b){return decodeGenesis$1((0,encodings_1$3.assertObject)(b.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(b){return decodeNumUnconfirmedTxs$1(b.result)}static decodeStatus(b){return decodeStatus$1(b.result)}static decodeNewBlockEvent(b){return decodeBlock$1(b.data.value.block)}static decodeNewBlockHeaderEvent(b){return decodeHeader$1(b.data.value.header)}static decodeTxEvent(b){return decodeTxEvent$1(b.data.value.TxResult)}static decodeTx(b){return decodeTxResponse$1(b.result)}static decodeTxSearch(b){return decodeTxSearch$1(b.result)}static decodeValidators(b){return decodeValidators$1(b.result)}};responses$2.Responses=Responses$1;Object.defineProperty(adaptor$1,"__esModule",{value:!0});adaptor$1.adaptor34=void 0;const hasher_1$2=hasher$1,requests_1$1=requests$6,responses_1$1=responses$2;adaptor$1.adaptor34={params:requests_1$1.Params,responses:responses_1$1.Responses,hashTx:hasher_1$2.hashTx,hashBlock:hasher_1$2.hashBlock};var __createBinding$c=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$c=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$c(b,d,dt);return __setModuleDefault$c(b,d),b};Object.defineProperty(tendermint34client,"__esModule",{value:!0});tendermint34client.Tendermint34Client=void 0;const jsonrpc_1$2=jsonrpc,rpcclients_1$1=rpcclients,adaptor_1$1=adaptor$1,requests$4=__importStar$c(requests$7);class Tendermint34Client{static async connect(b){let dt;return typeof b=="object"?dt=new rpcclients_1$1.HttpClient(b):dt=b.startsWith("http://")||b.startsWith("https://")?new rpcclients_1$1.HttpClient(b):new rpcclients_1$1.WebsocketClient(b),await this.detectVersion(dt),Tendermint34Client.create(dt)}static async create(b){return new Tendermint34Client(b)}static async detectVersion(b){const dt=(0,jsonrpc_1$2.createJsonRpcRequest)(requests$4.Method.Status),lt=(await b.execute(dt)).result;if(!lt||!lt.node_info)throw new Error("Unrecognized format for status response");const ht=lt.node_info.version;if(typeof ht!="string")throw new Error("Unrecognized version format: must be string");return ht}constructor(b){this.client=b,this.p=adaptor_1$1.adaptor34.params,this.r=adaptor_1$1.adaptor34.responses}disconnect(){this.client.disconnect()}async abciInfo(){const b={method:requests$4.Method.AbciInfo};return this.doCall(b,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(b){const dt={params:b,method:requests$4.Method.AbciQuery};return this.doCall(dt,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(b){const dt={method:requests$4.Method.Block,params:{height:b}};return this.doCall(dt,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(b){const dt={method:requests$4.Method.BlockResults,params:{height:b}};return this.doCall(dt,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(b){const dt={params:b,method:requests$4.Method.BlockSearch},ct=await this.doCall(dt,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...ct,blocks:[...ct.blocks].sort((lt,ht)=>lt.block.header.height-ht.block.header.height)}}async blockSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.blockSearch({...b,page:dt});ct.push(...ht.blocks),ct.lengthht.block.header.height-mt.block.header.height),{totalCount:ct.length,blocks:ct}}async blockchain(b,dt){const ct={method:requests$4.Method.Blockchain,params:{minHeight:b,maxHeight:dt}};return this.doCall(ct,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(b){const dt={params:b,method:requests$4.Method.BroadcastTxSync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(b){const dt={params:b,method:requests$4.Method.BroadcastTxAsync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(b){const dt={params:b,method:requests$4.Method.BroadcastTxCommit};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(b){const dt={method:requests$4.Method.Commit,params:{height:b}};return this.doCall(dt,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const b={method:requests$4.Method.Genesis};return this.doCall(b,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const b={method:requests$4.Method.Health};return this.doCall(b,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const b={method:requests$4.Method.NumUnconfirmedTxs};return this.doCall(b,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const b={method:requests$4.Method.Status};return this.doCall(b,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const b={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlock}};return this.subscribe(b,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const b={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlockHeader}};return this.subscribe(b,this.r.decodeNewBlockHeaderEvent)}subscribeTx(b){const dt={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.Tx,raw:b}};return this.subscribe(dt,this.r.decodeTxEvent)}async tx(b){const dt={params:b,method:requests$4.Method.Tx};return this.doCall(dt,this.p.encodeTx,this.r.decodeTx)}async txSearch(b){const dt={params:b,method:requests$4.Method.TxSearch};return this.doCall(dt,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.txSearch({...b,page:dt});ct.push(...ht.txs),ct.lengthdt(ht))}}tendermint34client.Tendermint34Client=Tendermint34Client;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.Tendermint34Client=d.VoteType=d.broadcastTxSyncSuccess=d.broadcastTxCommitSuccess=d.SubscriptionEventType=d.Method=void 0;var b=requests$7;Object.defineProperty(d,"Method",{enumerable:!0,get:function(){return b.Method}}),Object.defineProperty(d,"SubscriptionEventType",{enumerable:!0,get:function(){return b.SubscriptionEventType}});var dt=responses$3;Object.defineProperty(d,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return dt.broadcastTxCommitSuccess}}),Object.defineProperty(d,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return dt.broadcastTxSyncSuccess}}),Object.defineProperty(d,"VoteType",{enumerable:!0,get:function(){return dt.VoteType}});var ct=tendermint34client;Object.defineProperty(d,"Tendermint34Client",{enumerable:!0,get:function(){return ct.Tendermint34Client}})})(tendermint34);var tendermint37={},requests$3={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.buildQuery=d.SubscriptionEventType=d.Method=void 0,function(dt){dt.AbciInfo="abci_info",dt.AbciQuery="abci_query",dt.Block="block",dt.Blockchain="blockchain",dt.BlockResults="block_results",dt.BlockSearch="block_search",dt.BroadcastTxAsync="broadcast_tx_async",dt.BroadcastTxSync="broadcast_tx_sync",dt.BroadcastTxCommit="broadcast_tx_commit",dt.Commit="commit",dt.Genesis="genesis",dt.Health="health",dt.NumUnconfirmedTxs="num_unconfirmed_txs",dt.Status="status",dt.Subscribe="subscribe",dt.Tx="tx",dt.TxSearch="tx_search",dt.Validators="validators",dt.Unsubscribe="unsubscribe"}(d.Method||(d.Method={})),function(dt){dt.NewBlock="NewBlock",dt.NewBlockHeader="NewBlockHeader",dt.Tx="Tx"}(d.SubscriptionEventType||(d.SubscriptionEventType={}));function b(dt){const lt=(dt.tags?dt.tags:[]).map(mt=>`${mt.key}='${mt.value}'`),ht=dt.raw?[dt.raw]:[];return[...lt,...ht].join(" AND ")}d.buildQuery=b})(requests$3);var responses$1={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.VoteType=d.broadcastTxCommitSuccess=d.broadcastTxSyncSuccess=void 0;function b(ct){return ct.code===0}d.broadcastTxSyncSuccess=b;function dt(ct){return ct.checkTx.code===0&&!!ct.deliverTx&&ct.deliverTx.code===0}d.broadcastTxCommitSuccess=dt,function(ct){ct[ct.PreVote=1]="PreVote",ct[ct.PreCommit=2]="PreCommit"}(d.VoteType||(d.VoteType={}))})(responses$1);var tendermint37client={},adaptor={},hasher={},encodings={};Object.defineProperty(encodings,"__esModule",{value:!0});encodings.encodeBlockId=encodings.encodeVersion=encodings.encodeBytes=encodings.encodeTime=encodings.encodeUvarint=encodings.encodeString=encodings.dictionaryToStringMap=encodings.may=encodings.assertNotEmpty=encodings.assertObject=encodings.assertArray=encodings.assertNumber=encodings.assertString=encodings.assertBoolean=encodings.assertSet=void 0;const encoding_1$b=build$2;function assertSet(d){if(d===void 0)throw new Error("Value must not be undefined");if(d===null)throw new Error("Value must not be null");return d}encodings.assertSet=assertSet;function assertBoolean(d){if(assertSet(d),typeof d!="boolean")throw new Error("Value must be a boolean");return d}encodings.assertBoolean=assertBoolean;function assertString(d){if(assertSet(d),typeof d!="string")throw new Error("Value must be a string");return d}encodings.assertString=assertString;function assertNumber(d){if(assertSet(d),typeof d!="number")throw new Error("Value must be a number");return d}encodings.assertNumber=assertNumber;function assertArray(d){if(assertSet(d),!Array.isArray(d))throw new Error("Value must be a an array");return d}encodings.assertArray=assertArray;function assertObject(d){if(assertSet(d),typeof d!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(d)!=="[object Object]")throw new Error("Value must be a simple object");return d}encodings.assertObject=assertObject;function assertNotEmpty(d){if(assertSet(d),typeof d=="number"&&d===0)throw new Error("must provide a non-zero value");if(d.length===0)throw new Error("must provide a non-empty value");return d}encodings.assertNotEmpty=assertNotEmpty;function may(d,b){return b==null?void 0:d(b)}encodings.may=may;function dictionaryToStringMap(d){const b=new Map;for(const dt of Object.keys(d)){const ct=d[dt];if(typeof ct!="string")throw new Error("Found dictionary value of type other than string");b.set(dt,ct)}return b}encodings.dictionaryToStringMap=dictionaryToStringMap;function encodeString(d){const b=(0,encoding_1$b.toUtf8)(d);return Uint8Array.from([b.length,...b])}encodings.encodeString=encodeString;function encodeUvarint(d){return d>=128?Uint8Array.from([d&255|128,...encodeUvarint(d>>7)]):Uint8Array.from([d&255])}encodings.encodeUvarint=encodeUvarint;function encodeTime(d){const b=d.getTime(),dt=Math.floor(b/1e3),ct=dt?[8,...encodeUvarint(dt)]:new Uint8Array,lt=(d.nanoseconds||0)+b%1e3*1e6,ht=lt?[16,...encodeUvarint(lt)]:new Uint8Array;return Uint8Array.from([...ct,...ht])}encodings.encodeTime=encodeTime;function encodeBytes(d){if(d.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return d.length?Uint8Array.from([d.length,...d]):new Uint8Array}encodings.encodeBytes=encodeBytes;function encodeVersion(d){const b=d.block?Uint8Array.from([8,...encodeUvarint(d.block)]):new Uint8Array,dt=d.app?Uint8Array.from([16,...encodeUvarint(d.app)]):new Uint8Array;return Uint8Array.from([...b,...dt])}encodings.encodeVersion=encodeVersion;function encodeBlockId(d){return Uint8Array.from([10,d.hash.length,...d.hash,18,d.parts.hash.length+4,8,d.parts.total,18,d.parts.hash.length,...d.parts.hash])}encodings.encodeBlockId=encodeBlockId;Object.defineProperty(hasher,"__esModule",{value:!0});hasher.hashBlock=hasher.hashTx=void 0;const crypto_1$7=build$b,encodings_1$2=encodings;function hashTx(d){return(0,crypto_1$7.sha256)(d)}hasher.hashTx=hashTx;function getSplitPoint(d){if(d<1)throw new Error("Cannot split an empty tree");const b=2**Math.floor(Math.log2(d));return b({type:b.type,key:(0,encoding_1$9.fromBase64)(b.key),data:(0,encoding_1$9.fromBase64)(b.data)}))}}function decodeAbciQuery(d){return{key:(0,encoding_1$9.fromBase64)((0,encodings_1.assertString)(d.key??"")),value:(0,encoding_1$9.fromBase64)((0,encodings_1.assertString)(d.value??"")),proof:(0,encodings_1.may)(decodeQueryProof,d.proofOps),height:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,d.height),code:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,d.code),codespace:(0,encodings_1.assertString)(d.codespace??""),index:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,d.index),log:d.log,info:(0,encodings_1.assertString)(d.info??"")}}function decodeEventAttribute(d){return{key:(0,encodings_1.assertNotEmpty)(d.key),value:d.value??""}}function decodeAttributes(d){return(0,encodings_1.assertArray)(d).map(decodeEventAttribute)}function decodeEvent(d){return{type:d.type,attributes:d.attributes?decodeAttributes(d.attributes):[]}}responses.decodeEvent=decodeEvent;function decodeEvents(d){return(0,encodings_1.assertArray)(d).map(decodeEvent)}function decodeTxData(d){return{code:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(d.code??0)),codespace:d.codespace,log:d.log,data:(0,encodings_1.may)(encoding_1$9.fromBase64,d.data),events:d.events?decodeEvents(d.events):[],gasWanted:(0,inthelpers_1.apiToSmallInt)(d.gas_wanted??"0"),gasUsed:(0,inthelpers_1.apiToSmallInt)(d.gas_used??"0")}}function decodePubkey(d){if("Sum"in d){const[[b,dt]]=Object.entries(d.Sum.value);return(0,utils_1$6.assert)(b==="ed25519"||b==="secp256k1",`unknown pubkey type: ${b}`),{algorithm:b,data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(dt))}}else switch(d.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.value))};default:throw new Error(`unknown pubkey type: ${d.type}`)}}function decodeBlockParams(d){return{maxBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_bytes)),maxGas:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_gas))}}function decodeEvidenceParams(d){return{maxAgeNumBlocks:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_age_duration))}}function decodeConsensusParams(d){return{block:decodeBlockParams((0,encodings_1.assertObject)(d.block)),evidence:decodeEvidenceParams((0,encodings_1.assertObject)(d.evidence))}}function decodeValidatorUpdate(d){return{pubkey:decodePubkey((0,encodings_1.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)(d.power??"0")}}responses.decodeValidatorUpdate=decodeValidatorUpdate;function decodeBlockResults(d){return{height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),results:(d.txs_results||[]).map(decodeTxData),validatorUpdates:(d.validator_updates||[]).map(decodeValidatorUpdate),consensusUpdates:(0,encodings_1.may)(decodeConsensusParams,d.consensus_param_updates),beginBlockEvents:decodeEvents(d.begin_block_events||[]),endBlockEvents:decodeEvents(d.end_block_events||[])}}function decodeBlockId(d){return{hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash)),parts:{total:(0,encodings_1.assertNotEmpty)(d.parts.total),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.parts.hash))}}}function decodeBlockVersion(d){return{block:(0,inthelpers_1.apiToSmallInt)(d.block),app:(0,inthelpers_1.apiToSmallInt)(d.app??0)}}function decodeHeader(d){return{version:decodeBlockVersion(d.version),chainId:(0,encodings_1.assertNotEmpty)(d.chain_id),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),time:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(d.time)),lastBlockId:d.last_block_id.hash?decodeBlockId(d.last_block_id):null,lastCommitHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.last_commit_hash)),dataHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.data_hash)),validatorsHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.validators_hash)),nextValidatorsHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.next_validators_hash)),consensusHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.consensus_hash)),appHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.app_hash)),lastResultsHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.last_results_hash)),evidenceHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.evidence_hash)),proposerAddress:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.proposer_address))}}function decodeBlockMeta(d){return{blockId:decodeBlockId(d.block_id),blockSize:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.block_size)),header:decodeHeader(d.header),numTxs:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.num_txs))}}function decodeBlockchain(d){return{lastHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.last_height)),blockMetas:(0,encodings_1.assertArray)(d.block_metas).map(decodeBlockMeta)}}function decodeBroadcastTxSync(d){return{...decodeTxData(d),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash))}}function decodeBroadcastTxCommit(d){return{height:(0,inthelpers_1.apiToSmallInt)(d.height),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash)),checkTx:decodeTxData((0,encodings_1.assertObject)(d.check_tx)),deliverTx:(0,encodings_1.may)(decodeTxData,d.deliver_tx)}}function decodeBlockIdFlag(d){return(0,utils_1$6.assert)(d in types_1$3.BlockIdFlag),d}function decodeOptionalTime(d){return d&&!d.startsWith("0001-01-01")?(0,dates_1.fromRfc3339WithNanoseconds)(d):void 0}function decodeCommitSignature(d){return{blockIdFlag:decodeBlockIdFlag(d.block_id_flag),validatorAddress:d.validator_address?(0,encoding_1$9.fromHex)(d.validator_address):void 0,timestamp:decodeOptionalTime(d.timestamp),signature:d.signature?(0,encoding_1$9.fromBase64)(d.signature):void 0}}function decodeCommit(d){return{blockId:decodeBlockId((0,encodings_1.assertObject)(d.block_id)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),round:(0,inthelpers_1.apiToSmallInt)(d.round),signatures:(0,encodings_1.assertArray)(d.signatures).map(decodeCommitSignature)}}function decodeCommitResponse(d){return{canonical:(0,encodings_1.assertBoolean)(d.canonical),header:decodeHeader(d.signed_header.header),commit:decodeCommit(d.signed_header.commit)}}function decodeValidatorGenesis(d){return{address:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.address)),pubkey:decodePubkey((0,encodings_1.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(d.power))}}responses.decodeValidatorGenesis=decodeValidatorGenesis;function decodeGenesis(d){return{genesisTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(d.genesis_time)),chainId:(0,encodings_1.assertNotEmpty)(d.chain_id),consensusParams:decodeConsensusParams(d.consensus_params),validators:d.validators?(0,encodings_1.assertArray)(d.validators).map(decodeValidatorGenesis):[],appHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.app_hash)),appState:d.app_state}}function decodeValidatorInfo(d){return{pubkey:decodePubkey((0,encodings_1.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(d.voting_power)),address:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.address)),proposerPriority:d.proposer_priority?(0,inthelpers_1.apiToSmallInt)(d.proposer_priority):void 0}}responses.decodeValidatorInfo=decodeValidatorInfo;function decodeNodeInfo(d){return{id:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.id)),listenAddr:(0,encodings_1.assertNotEmpty)(d.listen_addr),network:(0,encodings_1.assertNotEmpty)(d.network),version:(0,encodings_1.assertString)(d.version),channels:(0,encodings_1.assertNotEmpty)(d.channels),moniker:(0,encodings_1.assertNotEmpty)(d.moniker),other:(0,encodings_1.dictionaryToStringMap)(d.other),protocolVersion:{app:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.protocol_version.app)),block:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.protocol_version.block)),p2p:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.protocol_version.p2p))}}}function decodeSyncInfo(d){const b=d.earliest_block_height?(0,inthelpers_1.apiToSmallInt)(d.earliest_block_height):void 0,dt=d.earliest_block_time?(0,dates_1.fromRfc3339WithNanoseconds)(d.earliest_block_time):void 0;return{earliestAppHash:d.earliest_app_hash?(0,encoding_1$9.fromHex)(d.earliest_app_hash):void 0,earliestBlockHash:d.earliest_block_hash?(0,encoding_1$9.fromHex)(d.earliest_block_hash):void 0,earliestBlockHeight:b||void 0,earliestBlockTime:dt!=null&&dt.getTime()?dt:void 0,latestBlockHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.latest_block_hash)),latestAppHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.latest_app_hash)),latestBlockTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(d.latest_block_time)),latestBlockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.latest_block_height)),catchingUp:(0,encodings_1.assertBoolean)(d.catching_up)}}function decodeStatus(d){return{nodeInfo:decodeNodeInfo(d.node_info),syncInfo:decodeSyncInfo(d.sync_info),validatorInfo:decodeValidatorInfo(d.validator_info)}}function decodeTxProof(d){return{data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.data)),rootHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.root_hash)),proof:{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.proof.total)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.proof.index)),leafHash:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.proof.leaf_hash)),aunts:(0,encodings_1.assertArray)(d.proof.aunts).map(encoding_1$9.fromBase64)}}}function decodeTxResponse(d){return{tx:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.tx)),result:decodeTxData((0,encodings_1.assertObject)(d.tx_result)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(d.index)),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash)),proof:(0,encodings_1.may)(decodeTxProof,d.proof)}}function decodeTxSearch(d){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total_count)),txs:(0,encodings_1.assertArray)(d.txs).map(decodeTxResponse)}}function decodeTxEvent(d){const b=(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.tx));return{tx:b,hash:(0,hasher_1$1.hashTx)(b),result:decodeTxData(d.result),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height))}}function decodeValidators(d){return{blockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.block_height)),validators:(0,encodings_1.assertArray)(d.validators).map(decodeValidatorInfo),count:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.count)),total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total))}}function decodeBlock(d){var b;return{header:decodeHeader((0,encodings_1.assertObject)(d.header)),lastCommit:d.last_commit.block_id.hash?decodeCommit((0,encodings_1.assertObject)(d.last_commit)):null,txs:d.data.txs?(0,encodings_1.assertArray)(d.data.txs).map(encoding_1$9.fromBase64):[],evidence:((b=d.evidence)==null?void 0:b.evidence)??[]}}function decodeBlockResponse(d){return{blockId:decodeBlockId(d.block_id),block:decodeBlock(d.block)}}function decodeBlockSearch(d){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total_count)),blocks:(0,encodings_1.assertArray)(d.blocks).map(decodeBlockResponse)}}function decodeNumUnconfirmedTxs(d){return{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total)),totalBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total_bytes))}}class Responses{static decodeAbciInfo(b){return decodeAbciInfo((0,encodings_1.assertObject)(b.result.response))}static decodeAbciQuery(b){return decodeAbciQuery((0,encodings_1.assertObject)(b.result.response))}static decodeBlock(b){return decodeBlockResponse(b.result)}static decodeBlockResults(b){return decodeBlockResults(b.result)}static decodeBlockSearch(b){return decodeBlockSearch(b.result)}static decodeBlockchain(b){return decodeBlockchain(b.result)}static decodeBroadcastTxSync(b){return decodeBroadcastTxSync(b.result)}static decodeBroadcastTxAsync(b){return Responses.decodeBroadcastTxSync(b)}static decodeBroadcastTxCommit(b){return decodeBroadcastTxCommit(b.result)}static decodeCommit(b){return decodeCommitResponse(b.result)}static decodeGenesis(b){return decodeGenesis((0,encodings_1.assertObject)(b.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(b){return decodeNumUnconfirmedTxs(b.result)}static decodeStatus(b){return decodeStatus(b.result)}static decodeNewBlockEvent(b){return decodeBlock(b.data.value.block)}static decodeNewBlockHeaderEvent(b){return decodeHeader(b.data.value.header)}static decodeTxEvent(b){return decodeTxEvent(b.data.value.TxResult)}static decodeTx(b){return decodeTxResponse(b.result)}static decodeTxSearch(b){return decodeTxSearch(b.result)}static decodeValidators(b){return decodeValidators(b.result)}}responses.Responses=Responses;Object.defineProperty(adaptor,"__esModule",{value:!0});adaptor.adaptor37=void 0;const hasher_1=hasher,requests_1=requests$2,responses_1=responses;adaptor.adaptor37={params:requests_1.Params,responses:responses_1.Responses,hashTx:hasher_1.hashTx,hashBlock:hasher_1.hashBlock};var __createBinding$a=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$a=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$a=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$a(b,d,dt);return __setModuleDefault$a(b,d),b};Object.defineProperty(tendermint37client,"__esModule",{value:!0});tendermint37client.Tendermint37Client=void 0;const jsonrpc_1=jsonrpc,rpcclients_1=rpcclients,adaptor_1=adaptor,requests=__importStar$a(requests$3);class Tendermint37Client{static async connect(b){let dt;return typeof b=="object"?dt=new rpcclients_1.HttpClient(b):dt=b.startsWith("http://")||b.startsWith("https://")?new rpcclients_1.HttpClient(b):new rpcclients_1.WebsocketClient(b),await this.detectVersion(dt),Tendermint37Client.create(dt)}static async create(b){return new Tendermint37Client(b)}static async detectVersion(b){const dt=(0,jsonrpc_1.createJsonRpcRequest)(requests.Method.Status),lt=(await b.execute(dt)).result;if(!lt||!lt.node_info)throw new Error("Unrecognized format for status response");const ht=lt.node_info.version;if(typeof ht!="string")throw new Error("Unrecognized version format: must be string");return ht}constructor(b){this.client=b,this.p=adaptor_1.adaptor37.params,this.r=adaptor_1.adaptor37.responses}disconnect(){this.client.disconnect()}async abciInfo(){const b={method:requests.Method.AbciInfo};return this.doCall(b,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(b){const dt={params:b,method:requests.Method.AbciQuery};return this.doCall(dt,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(b){const dt={method:requests.Method.Block,params:{height:b}};return this.doCall(dt,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(b){const dt={method:requests.Method.BlockResults,params:{height:b}};return this.doCall(dt,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(b){const dt={params:b,method:requests.Method.BlockSearch},ct=await this.doCall(dt,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...ct,blocks:[...ct.blocks].sort((lt,ht)=>lt.block.header.height-ht.block.header.height)}}async blockSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.blockSearch({...b,page:dt});ct.push(...ht.blocks),ct.lengthht.block.header.height-mt.block.header.height),{totalCount:ct.length,blocks:ct}}async blockchain(b,dt){const ct={method:requests.Method.Blockchain,params:{minHeight:b,maxHeight:dt}};return this.doCall(ct,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(b){const dt={params:b,method:requests.Method.BroadcastTxSync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(b){const dt={params:b,method:requests.Method.BroadcastTxAsync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(b){const dt={params:b,method:requests.Method.BroadcastTxCommit};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(b){const dt={method:requests.Method.Commit,params:{height:b}};return this.doCall(dt,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const b={method:requests.Method.Genesis};return this.doCall(b,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const b={method:requests.Method.Health};return this.doCall(b,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const b={method:requests.Method.NumUnconfirmedTxs};return this.doCall(b,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const b={method:requests.Method.Status};return this.doCall(b,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const b={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlock}};return this.subscribe(b,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const b={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlockHeader}};return this.subscribe(b,this.r.decodeNewBlockHeaderEvent)}subscribeTx(b){const dt={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.Tx,raw:b}};return this.subscribe(dt,this.r.decodeTxEvent)}async tx(b){const dt={params:b,method:requests.Method.Tx};return this.doCall(dt,this.p.encodeTx,this.r.decodeTx)}async txSearch(b){const dt={params:b,method:requests.Method.TxSearch};return this.doCall(dt,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.txSearch({...b,page:dt});ct.push(...ht.txs),ct.lengthdt(ht))}}tendermint37client.Tendermint37Client=Tendermint37Client;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.Tendermint37Client=d.VoteType=d.broadcastTxSyncSuccess=d.broadcastTxCommitSuccess=d.SubscriptionEventType=d.Method=void 0;var b=requests$3;Object.defineProperty(d,"Method",{enumerable:!0,get:function(){return b.Method}}),Object.defineProperty(d,"SubscriptionEventType",{enumerable:!0,get:function(){return b.SubscriptionEventType}});var dt=responses$1;Object.defineProperty(d,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return dt.broadcastTxCommitSuccess}}),Object.defineProperty(d,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return dt.broadcastTxSyncSuccess}}),Object.defineProperty(d,"VoteType",{enumerable:!0,get:function(){return dt.VoteType}});var ct=tendermint37client;Object.defineProperty(d,"Tendermint37Client",{enumerable:!0,get:function(){return ct.Tendermint37Client}})})(tendermint37);var tendermintclient={};Object.defineProperty(tendermintclient,"__esModule",{value:!0});tendermintclient.isTendermint37Client=tendermintclient.isTendermint34Client=void 0;const tendermint34_1=tendermint34,tendermint37_1=tendermint37;function isTendermint34Client(d){return d instanceof tendermint34_1.Tendermint34Client}tendermintclient.isTendermint34Client=isTendermint34Client;function isTendermint37Client(d){return d instanceof tendermint37_1.Tendermint37Client}tendermintclient.isTendermint37Client=isTendermint37Client;(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt);var Nt=Object.getOwnPropertyDescriptor(nn,Qt);(!Nt||("get"in Nt?!nn.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return nn[Qt]}}),Object.defineProperty(Rt,wt,Nt)}:function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt),Rt[wt]=nn[Qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Rt,nn){Object.defineProperty(Rt,"default",{enumerable:!0,value:nn})}:function(Rt,nn){Rt.default=nn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Rt){if(Rt&&Rt.__esModule)return Rt;var nn={};if(Rt!=null)for(var Qt in Rt)Qt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,Qt)&&b(nn,Rt,Qt);return dt(nn,Rt),nn};Object.defineProperty(d,"__esModule",{value:!0}),d.BlockIdFlag=d.isTendermint37Client=d.isTendermint34Client=d.Tendermint37Client=d.tendermint37=d.Tendermint34Client=d.tendermint34=d.VoteType=d.SubscriptionEventType=d.Method=d.broadcastTxSyncSuccess=d.broadcastTxCommitSuccess=d.WebsocketClient=d.HttpClient=d.HttpBatchClient=d.toSeconds=d.toRfc3339WithNanoseconds=d.fromSeconds=d.fromRfc3339WithNanoseconds=d.DateTime=d.rawSecp256k1PubkeyToRawAddress=d.rawEd25519PubkeyToRawAddress=d.pubkeyToRawAddress=d.pubkeyToAddress=void 0;var lt=addresses;Object.defineProperty(d,"pubkeyToAddress",{enumerable:!0,get:function(){return lt.pubkeyToAddress}}),Object.defineProperty(d,"pubkeyToRawAddress",{enumerable:!0,get:function(){return lt.pubkeyToRawAddress}}),Object.defineProperty(d,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return lt.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(d,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return lt.rawSecp256k1PubkeyToRawAddress}});var ht=dates;Object.defineProperty(d,"DateTime",{enumerable:!0,get:function(){return ht.DateTime}}),Object.defineProperty(d,"fromRfc3339WithNanoseconds",{enumerable:!0,get:function(){return ht.fromRfc3339WithNanoseconds}}),Object.defineProperty(d,"fromSeconds",{enumerable:!0,get:function(){return ht.fromSeconds}}),Object.defineProperty(d,"toRfc3339WithNanoseconds",{enumerable:!0,get:function(){return ht.toRfc3339WithNanoseconds}}),Object.defineProperty(d,"toSeconds",{enumerable:!0,get:function(){return ht.toSeconds}});var mt=rpcclients;Object.defineProperty(d,"HttpBatchClient",{enumerable:!0,get:function(){return mt.HttpBatchClient}}),Object.defineProperty(d,"HttpClient",{enumerable:!0,get:function(){return mt.HttpClient}}),Object.defineProperty(d,"WebsocketClient",{enumerable:!0,get:function(){return mt.WebsocketClient}});var vt=tendermint34;Object.defineProperty(d,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return vt.broadcastTxCommitSuccess}}),Object.defineProperty(d,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return vt.broadcastTxSyncSuccess}}),Object.defineProperty(d,"Method",{enumerable:!0,get:function(){return vt.Method}}),Object.defineProperty(d,"SubscriptionEventType",{enumerable:!0,get:function(){return vt.SubscriptionEventType}}),Object.defineProperty(d,"VoteType",{enumerable:!0,get:function(){return vt.VoteType}}),d.tendermint34=ct(tendermint34);var kt=tendermint34;Object.defineProperty(d,"Tendermint34Client",{enumerable:!0,get:function(){return kt.Tendermint34Client}}),d.tendermint37=ct(tendermint37);var Pt=tendermint37;Object.defineProperty(d,"Tendermint37Client",{enumerable:!0,get:function(){return Pt.Tendermint37Client}});var Jt=tendermintclient;Object.defineProperty(d,"isTendermint34Client",{enumerable:!0,get:function(){return Jt.isTendermint34Client}}),Object.defineProperty(d,"isTendermint37Client",{enumerable:!0,get:function(){return Jt.isTendermint37Client}});var Zt=types$b;Object.defineProperty(d,"BlockIdFlag",{enumerable:!0,get:function(){return Zt.BlockIdFlag}})})(build$3);var stargateclient={};Object.defineProperty(stargateclient,"__esModule",{value:!0});stargateclient.StargateClient=stargateclient.BroadcastTxError=stargateclient.assertIsDeliverTxFailure=stargateclient.assertIsDeliverTxSuccess=stargateclient.isDeliverTxSuccess=stargateclient.isDeliverTxFailure=stargateclient.TimeoutError=void 0;const amino_1$1=build$c,encoding_1$8=build$6,math_1$5=build$f,tendermint_rpc_1$3=build$3,utils_1$5=build$9,abci_1$1=abci,accounts_1=accounts,events_1=events,modules_1$2=modules$1,queryclient_1$1=queryclient$1;class TimeoutError extends Error{constructor(b,dt){super(b),this.txId=dt}}stargateclient.TimeoutError=TimeoutError;function isDeliverTxFailure(d){return!!d.code}stargateclient.isDeliverTxFailure=isDeliverTxFailure;function isDeliverTxSuccess(d){return!isDeliverTxFailure(d)}stargateclient.isDeliverTxSuccess=isDeliverTxSuccess;function assertIsDeliverTxSuccess(d){if(isDeliverTxFailure(d))throw new Error(`Error when broadcasting tx ${d.transactionHash} at height ${d.height}. Code: ${d.code}; Raw log: ${d.rawLog}`)}stargateclient.assertIsDeliverTxSuccess=assertIsDeliverTxSuccess;function assertIsDeliverTxFailure(d){if(isDeliverTxSuccess(d))throw new Error(`Transaction ${d.transactionHash} did not fail at height ${d.height}. Code: ${d.code}; Raw log: ${d.rawLog}`)}stargateclient.assertIsDeliverTxFailure=assertIsDeliverTxFailure;class BroadcastTxError extends Error{constructor(b,dt,ct){super(`Broadcasting transaction failed with code ${b} (codespace: ${dt}). Log: ${ct}`),this.code=b,this.codespace=dt,this.log=ct}}stargateclient.BroadcastTxError=BroadcastTxError;class StargateClient{static async connect(b,dt={}){let ct;const lt=await tendermint_rpc_1$3.Tendermint37Client.connect(b);return(await lt.status()).nodeInfo.version.startsWith("0.37.")?ct=lt:(lt.disconnect(),ct=await tendermint_rpc_1$3.Tendermint34Client.connect(b)),StargateClient.create(ct,dt)}static async create(b,dt={}){return new StargateClient(b,dt)}constructor(b,dt){b&&(this.tmClient=b,this.queryClient=queryclient_1$1.QueryClient.withExtensions(b,modules_1$2.setupAuthExtension,modules_1$2.setupBankExtension,modules_1$2.setupStakingExtension,modules_1$2.setupTxExtension));const{accountParser:ct=accounts_1.accountFromAny}=dt;this.accountParser=ct}getTmClient(){return this.tmClient}forceGetTmClient(){if(!this.tmClient)throw new Error("Tendermint client not available. You cannot use online functionality in offline mode.");return this.tmClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw new Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){const dt=(await this.forceGetTmClient().status()).nodeInfo.network;if(!dt)throw new Error("Chain ID must not be empty");this.chainId=dt}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(b){try{const dt=await this.forceGetQueryClient().auth.account(b);return dt?this.accountParser(dt):null}catch(dt){if(/rpc error: code = NotFound/i.test(dt.toString()))return null;throw dt}}async getSequence(b){const dt=await this.getAccount(b);if(!dt)throw new Error(`Account '${b}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:dt.accountNumber,sequence:dt.sequence}}async getBlock(b){const dt=await this.forceGetTmClient().block(b);return{id:(0,encoding_1$8.toHex)(dt.blockId.hash).toUpperCase(),header:{version:{block:new math_1$5.Uint53(dt.block.header.version.block).toString(),app:new math_1$5.Uint53(dt.block.header.version.app).toString()},height:dt.block.header.height,chainId:dt.block.header.chainId,time:(0,tendermint_rpc_1$3.toRfc3339WithNanoseconds)(dt.block.header.time)},txs:dt.block.txs}}async getBalance(b,dt){return this.forceGetQueryClient().bank.balance(b,dt)}async getAllBalances(b){return this.forceGetQueryClient().bank.allBalances(b)}async getBalanceStaked(b){const dt=[];let ct;do{const{delegationResponses:ht,pagination:mt}=await this.forceGetQueryClient().staking.delegatorDelegations(b,ct),vt=ht||[];dt.push(...vt),ct=mt==null?void 0:mt.nextKey}while(ct!==void 0&&ct.length!==0);return dt.reduce((ht,mt)=>((0,utils_1$5.assert)(mt.balance),ht!==null?(0,amino_1$1.addCoins)(ht,mt.balance):mt.balance),null)}async getDelegation(b,dt){var lt;let ct;try{ct=(lt=(await this.forceGetQueryClient().staking.delegation(b,dt)).delegationResponse)==null?void 0:lt.balance}catch(ht){if(!ht.toString().includes("key not found"))throw ht}return ct||null}async getTx(b){return(await this.txsQuery(`tx.hash='${b}'`))[0]??null}async searchTx(b){let dt;if(typeof b=="string")dt=b;else if(Array.isArray(b))dt=b.map(ct=>`${ct.key}='${ct.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(dt)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(b,dt=6e4,ct=3e3){let lt=!1;const ht=setTimeout(()=>{lt=!0},dt),mt=async kt=>{if(lt)throw new TimeoutError(`Transaction with ID ${kt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${dt/1e3} seconds.`,kt);await(0,utils_1$5.sleep)(ct);const Pt=await this.getTx(kt);return Pt?{code:Pt.code,height:Pt.height,txIndex:Pt.txIndex,events:Pt.events,rawLog:Pt.rawLog,transactionHash:kt,msgResponses:Pt.msgResponses,gasUsed:Pt.gasUsed,gasWanted:Pt.gasWanted}:mt(kt)},vt=await this.broadcastTxSync(b);return new Promise((kt,Pt)=>mt(vt).then(Jt=>{clearTimeout(ht),kt(Jt)},Jt=>{clearTimeout(ht),Pt(Jt)}))}async broadcastTxSync(b){const dt=await this.forceGetTmClient().broadcastTxSync({tx:b});return dt.code?Promise.reject(new BroadcastTxError(dt.code,dt.codespace??"",dt.log)):(0,encoding_1$8.toHex)(dt.hash).toUpperCase()}async txsQuery(b){return(await this.forceGetTmClient().txSearchAll({query:b})).txs.map(ct=>{const lt=abci_1$1.TxMsgData.decode(ct.result.data??new Uint8Array);return{height:ct.height,txIndex:ct.index,hash:(0,encoding_1$8.toHex)(ct.hash).toUpperCase(),code:ct.result.code,events:ct.result.events.map(events_1.fromTendermintEvent),rawLog:ct.result.log||"",tx:ct.tx,msgResponses:lt.msgResponses,gasUsed:ct.result.gasUsed,gasWanted:ct.result.gasWanted}})}}stargateclient.StargateClient=StargateClient;(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(jt){return jt&&jt.__esModule?jt:{default:jt}};Object.defineProperty(d,"__esModule",{value:!0}),d.SigningStargateClient=d.createDefaultAminoConverters=d.defaultRegistryTypes=void 0;const dt=build$c,ct=build$6,lt=build$f,ht=build$d,mt=build$3,vt=build$9,kt=coin$3,Pt=tx$o,Jt=tx$f,Zt=signing$2,Rt=tx$r,nn=tx$j,Qt=b(long),wt=aminotypes,Nt=fee,xt=modules$1,Et=modules$1,Bt=stargateclient;d.defaultRegistryTypes=[["/cosmos.base.v1beta1.Coin",kt.Coin],...xt.authzTypes,...xt.bankTypes,...xt.distributionTypes,...xt.feegrantTypes,...xt.govTypes,...xt.groupTypes,...xt.stakingTypes,...xt.ibcTypes,...xt.vestingTypes];function Tt(){return{...(0,Et.createAuthzAminoConverters)(),...(0,Et.createBankAminoConverters)(),...(0,Et.createDistributionAminoConverters)(),...(0,Et.createGovAminoConverters)(),...(0,Et.createStakingAminoConverters)(),...(0,Et.createIbcAminoConverters)(),...(0,Et.createFeegrantAminoConverters)(),...(0,Et.createVestingAminoConverters)()}}d.createDefaultAminoConverters=Tt;class Mt extends Bt.StargateClient{static async connectWithSigner(Ht,an,yt={}){let $t;const Yt=await mt.Tendermint37Client.connect(Ht);return(await Yt.status()).nodeInfo.version.startsWith("0.37.")?$t=Yt:(Yt.disconnect(),$t=await mt.Tendermint34Client.connect(Ht)),Mt.createWithSigner($t,an,yt)}static async createWithSigner(Ht,an,yt={}){return new Mt(Ht,an,yt)}static async offline(Ht,an={}){return new Mt(void 0,Ht,an)}constructor(Ht,an,yt){super(Ht,yt);const{registry:$t=new ht.Registry(d.defaultRegistryTypes),aminoTypes:Yt=new wt.AminoTypes(Tt())}=yt;this.registry=$t,this.aminoTypes=Yt,this.signer=an,this.broadcastTimeoutMs=yt.broadcastTimeoutMs,this.broadcastPollIntervalMs=yt.broadcastPollIntervalMs,this.gasPrice=yt.gasPrice}async simulate(Ht,an,yt){const $t=an.map(Gt=>this.registry.encodeAsAny(Gt)),Yt=(await this.signer.getAccounts()).find(Gt=>Gt.address===Ht);if(!Yt)throw new Error("Failed to retrieve account from signer");const Kt=(0,dt.encodeSecp256k1Pubkey)(Yt.pubkey),{sequence:St}=await this.getSequence(Ht),{gasInfo:It}=await this.forceGetQueryClient().tx.simulate($t,yt,Kt,St);return(0,vt.assertDefined)(It),lt.Uint53.fromString(It.gasUsed.toString()).toNumber()}async sendTokens(Ht,an,yt,$t,Yt=""){const Kt={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:Ht,toAddress:an,amount:[...yt]}};return this.signAndBroadcast(Ht,[Kt],$t,Yt)}async delegateTokens(Ht,an,yt,$t,Yt=""){const Kt={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:Jt.MsgDelegate.fromPartial({delegatorAddress:Ht,validatorAddress:an,amount:yt})};return this.signAndBroadcast(Ht,[Kt],$t,Yt)}async undelegateTokens(Ht,an,yt,$t,Yt=""){const Kt={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:Jt.MsgUndelegate.fromPartial({delegatorAddress:Ht,validatorAddress:an,amount:yt})};return this.signAndBroadcast(Ht,[Kt],$t,Yt)}async withdrawRewards(Ht,an,yt,$t=""){const Yt={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:Pt.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:Ht,validatorAddress:an})};return this.signAndBroadcast(Ht,[Yt],yt,$t)}async sendIbcTokens(Ht,an,yt,$t,Yt,Kt,St,It,Gt=""){const Ut=St?Qt.default.fromNumber(St).multiply(1e9):void 0,Vt={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:nn.MsgTransfer.fromPartial({sourcePort:$t,sourceChannel:Yt,sender:Ht,receiver:an,token:yt,timeoutHeight:Kt,timeoutTimestamp:Ut})};return this.signAndBroadcast(Ht,[Vt],It,Gt)}async signAndBroadcast(Ht,an,yt,$t=""){let Yt;if(yt=="auto"||typeof yt=="number"){(0,vt.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const It=await this.simulate(Ht,an,$t),Gt=typeof yt=="number"?yt:1.4;Yt=(0,Nt.calculateFee)(Math.round(It*Gt),this.gasPrice)}else Yt=yt;const Kt=await this.sign(Ht,an,Yt,$t),St=Rt.TxRaw.encode(Kt).finish();return this.broadcastTx(St,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(Ht,an,yt,$t=""){let Yt;if(yt=="auto"||typeof yt=="number"){(0,vt.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const It=await this.simulate(Ht,an,$t),Gt=typeof yt=="number"?yt:1.3;Yt=(0,Nt.calculateFee)(Math.round(It*Gt),this.gasPrice)}else Yt=yt;const Kt=await this.sign(Ht,an,Yt,$t),St=Rt.TxRaw.encode(Kt).finish();return this.broadcastTxSync(St)}async sign(Ht,an,yt,$t,Yt){let Kt;if(Yt)Kt=Yt;else{const{accountNumber:St,sequence:It}=await this.getSequence(Ht),Gt=await this.getChainId();Kt={accountNumber:St,sequence:It,chainId:Gt}}return(0,ht.isOfflineDirectSigner)(this.signer)?this.signDirect(Ht,an,yt,$t,Kt):this.signAmino(Ht,an,yt,$t,Kt)}async signAmino(Ht,an,yt,$t,{accountNumber:Yt,sequence:Kt,chainId:St}){(0,vt.assert)(!(0,ht.isOfflineDirectSigner)(this.signer));const It=(await this.signer.getAccounts()).find(wr=>wr.address===Ht);if(!It)throw new Error("Failed to retrieve account from signer");const Gt=(0,ht.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(It.pubkey)),Ut=Zt.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,Vt=an.map(wr=>this.aminoTypes.toAmino(wr)),qt=(0,dt.makeSignDoc)(Vt,yt,St,$t,Yt,Kt),{signature:fn,signed:dn}=await this.signer.signAmino(Ht,qt),zt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:dn.msgs.map(wr=>this.aminoTypes.fromAmino(wr)),memo:dn.memo}},tn=this.registry.encode(zt),An=lt.Int53.fromString(dn.fee.gas).toNumber(),gn=lt.Int53.fromString(dn.sequence).toNumber(),Nn=(0,ht.makeAuthInfoBytes)([{pubkey:Gt,sequence:gn}],dn.fee.amount,An,dn.fee.granter,dn.fee.payer,Ut);return Rt.TxRaw.fromPartial({bodyBytes:tn,authInfoBytes:Nn,signatures:[(0,ct.fromBase64)(fn.signature)]})}async signDirect(Ht,an,yt,$t,{accountNumber:Yt,sequence:Kt,chainId:St}){(0,vt.assert)((0,ht.isOfflineDirectSigner)(this.signer));const It=(await this.signer.getAccounts()).find(tn=>tn.address===Ht);if(!It)throw new Error("Failed to retrieve account from signer");const Gt=(0,ht.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(It.pubkey)),Ut={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:an,memo:$t}},Vt=this.registry.encode(Ut),qt=lt.Int53.fromString(yt.gas).toNumber(),fn=(0,ht.makeAuthInfoBytes)([{pubkey:Gt,sequence:Kt}],yt.amount,qt,yt.granter,yt.payer),dn=(0,ht.makeSignDoc)(Vt,fn,St,Yt),{signature:Dt,signed:zt}=await this.signer.signDirect(Ht,dn);return Rt.TxRaw.fromPartial({bodyBytes:zt.bodyBytes,authInfoBytes:zt.authInfoBytes,signatures:[(0,ct.fromBase64)(Dt.signature)]})}}d.SigningStargateClient=Mt})(signingstargateclient);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.isMsgWithdrawDelegatorRewardEncodeObject=d.isMsgVoteWeightedEncodeObject=d.isMsgVoteEncodeObject=d.isMsgUndelegateEncodeObject=d.isMsgTransferEncodeObject=d.isMsgSubmitProposalEncodeObject=d.isMsgSendEncodeObject=d.isMsgEditValidatorEncodeObject=d.isMsgDepositEncodeObject=d.isMsgDelegateEncodeObject=d.isMsgCreateValidatorEncodeObject=d.isMsgBeginRedelegateEncodeObject=d.isAminoMsgWithdrawValidatorCommission=d.isAminoMsgWithdrawDelegatorReward=d.isAminoMsgVoteWeighted=d.isAminoMsgVote=d.isAminoMsgVerifyInvariant=d.isAminoMsgUnjail=d.isAminoMsgUndelegate=d.isAminoMsgTransfer=d.isAminoMsgSubmitProposal=d.isAminoMsgSubmitEvidence=d.isAminoMsgSetWithdrawAddress=d.isAminoMsgSend=d.isAminoMsgMultiSend=d.isAminoMsgFundCommunityPool=d.isAminoMsgEditValidator=d.isAminoMsgDeposit=d.isAminoMsgDelegate=d.isAminoMsgCreateVestingAccount=d.isAminoMsgCreateValidator=d.isAminoMsgBeginRedelegate=d.createVestingAminoConverters=d.createStakingAminoConverters=d.createSlashingAminoConverters=d.createIbcAminoConverters=d.createGroupAminoConverters=d.createGovAminoConverters=d.createFeegrantAminoConverters=d.createEvidenceAminoConverters=d.createDistributionAminoConverters=d.createCrysisAminoConverters=d.createBankAminoConverters=d.createAuthzAminoConverters=d.logs=d.GasPrice=d.calculateFee=d.fromTendermintEvent=d.AminoTypes=d.accountFromAny=void 0,d.parseCoins=d.makeCosmoshubPath=d.coins=d.coin=d.TimeoutError=d.StargateClient=d.isDeliverTxSuccess=d.isDeliverTxFailure=d.BroadcastTxError=d.assertIsDeliverTxSuccess=d.assertIsDeliverTxFailure=d.SigningStargateClient=d.defaultRegistryTypes=d.createDefaultAminoConverters=d.QueryClient=d.decodeCosmosSdkDecFromProto=d.createProtobufRpcClient=d.createPagination=d.makeMultisignedTxBytes=d.makeMultisignedTx=d.setupTxExtension=d.setupStakingExtension=d.setupSlashingExtension=d.setupMintExtension=d.setupIbcExtension=d.setupGovExtension=d.setupFeegrantExtension=d.setupDistributionExtension=d.setupBankExtension=d.setupAuthzExtension=d.setupAuthExtension=void 0;var lt=accounts;Object.defineProperty(d,"accountFromAny",{enumerable:!0,get:function(){return lt.accountFromAny}});var ht=aminotypes;Object.defineProperty(d,"AminoTypes",{enumerable:!0,get:function(){return ht.AminoTypes}});var mt=events;Object.defineProperty(d,"fromTendermintEvent",{enumerable:!0,get:function(){return mt.fromTendermintEvent}});var vt=fee;Object.defineProperty(d,"calculateFee",{enumerable:!0,get:function(){return vt.calculateFee}}),Object.defineProperty(d,"GasPrice",{enumerable:!0,get:function(){return vt.GasPrice}}),d.logs=ct(logs);var kt=modules$1;Object.defineProperty(d,"createAuthzAminoConverters",{enumerable:!0,get:function(){return kt.createAuthzAminoConverters}}),Object.defineProperty(d,"createBankAminoConverters",{enumerable:!0,get:function(){return kt.createBankAminoConverters}}),Object.defineProperty(d,"createCrysisAminoConverters",{enumerable:!0,get:function(){return kt.createCrysisAminoConverters}}),Object.defineProperty(d,"createDistributionAminoConverters",{enumerable:!0,get:function(){return kt.createDistributionAminoConverters}}),Object.defineProperty(d,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return kt.createEvidenceAminoConverters}}),Object.defineProperty(d,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return kt.createFeegrantAminoConverters}}),Object.defineProperty(d,"createGovAminoConverters",{enumerable:!0,get:function(){return kt.createGovAminoConverters}}),Object.defineProperty(d,"createGroupAminoConverters",{enumerable:!0,get:function(){return kt.createGroupAminoConverters}}),Object.defineProperty(d,"createIbcAminoConverters",{enumerable:!0,get:function(){return kt.createIbcAminoConverters}}),Object.defineProperty(d,"createSlashingAminoConverters",{enumerable:!0,get:function(){return kt.createSlashingAminoConverters}}),Object.defineProperty(d,"createStakingAminoConverters",{enumerable:!0,get:function(){return kt.createStakingAminoConverters}}),Object.defineProperty(d,"createVestingAminoConverters",{enumerable:!0,get:function(){return kt.createVestingAminoConverters}}),Object.defineProperty(d,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return kt.isAminoMsgBeginRedelegate}}),Object.defineProperty(d,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return kt.isAminoMsgCreateValidator}}),Object.defineProperty(d,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return kt.isAminoMsgCreateVestingAccount}}),Object.defineProperty(d,"isAminoMsgDelegate",{enumerable:!0,get:function(){return kt.isAminoMsgDelegate}}),Object.defineProperty(d,"isAminoMsgDeposit",{enumerable:!0,get:function(){return kt.isAminoMsgDeposit}}),Object.defineProperty(d,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return kt.isAminoMsgEditValidator}}),Object.defineProperty(d,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return kt.isAminoMsgFundCommunityPool}}),Object.defineProperty(d,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return kt.isAminoMsgMultiSend}}),Object.defineProperty(d,"isAminoMsgSend",{enumerable:!0,get:function(){return kt.isAminoMsgSend}}),Object.defineProperty(d,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return kt.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(d,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return kt.isAminoMsgSubmitEvidence}}),Object.defineProperty(d,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return kt.isAminoMsgSubmitProposal}}),Object.defineProperty(d,"isAminoMsgTransfer",{enumerable:!0,get:function(){return kt.isAminoMsgTransfer}}),Object.defineProperty(d,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return kt.isAminoMsgUndelegate}}),Object.defineProperty(d,"isAminoMsgUnjail",{enumerable:!0,get:function(){return kt.isAminoMsgUnjail}}),Object.defineProperty(d,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return kt.isAminoMsgVerifyInvariant}}),Object.defineProperty(d,"isAminoMsgVote",{enumerable:!0,get:function(){return kt.isAminoMsgVote}}),Object.defineProperty(d,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return kt.isAminoMsgVoteWeighted}}),Object.defineProperty(d,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return kt.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(d,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return kt.isAminoMsgWithdrawValidatorCommission}}),Object.defineProperty(d,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return kt.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(d,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return kt.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(d,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return kt.isMsgDelegateEncodeObject}}),Object.defineProperty(d,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return kt.isMsgDepositEncodeObject}}),Object.defineProperty(d,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return kt.isMsgEditValidatorEncodeObject}}),Object.defineProperty(d,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return kt.isMsgSendEncodeObject}}),Object.defineProperty(d,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return kt.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(d,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return kt.isMsgTransferEncodeObject}}),Object.defineProperty(d,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return kt.isMsgUndelegateEncodeObject}}),Object.defineProperty(d,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return kt.isMsgVoteEncodeObject}}),Object.defineProperty(d,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return kt.isMsgVoteWeightedEncodeObject}}),Object.defineProperty(d,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return kt.isMsgWithdrawDelegatorRewardEncodeObject}}),Object.defineProperty(d,"setupAuthExtension",{enumerable:!0,get:function(){return kt.setupAuthExtension}}),Object.defineProperty(d,"setupAuthzExtension",{enumerable:!0,get:function(){return kt.setupAuthzExtension}}),Object.defineProperty(d,"setupBankExtension",{enumerable:!0,get:function(){return kt.setupBankExtension}}),Object.defineProperty(d,"setupDistributionExtension",{enumerable:!0,get:function(){return kt.setupDistributionExtension}}),Object.defineProperty(d,"setupFeegrantExtension",{enumerable:!0,get:function(){return kt.setupFeegrantExtension}}),Object.defineProperty(d,"setupGovExtension",{enumerable:!0,get:function(){return kt.setupGovExtension}}),Object.defineProperty(d,"setupIbcExtension",{enumerable:!0,get:function(){return kt.setupIbcExtension}}),Object.defineProperty(d,"setupMintExtension",{enumerable:!0,get:function(){return kt.setupMintExtension}}),Object.defineProperty(d,"setupSlashingExtension",{enumerable:!0,get:function(){return kt.setupSlashingExtension}}),Object.defineProperty(d,"setupStakingExtension",{enumerable:!0,get:function(){return kt.setupStakingExtension}}),Object.defineProperty(d,"setupTxExtension",{enumerable:!0,get:function(){return kt.setupTxExtension}});var Pt=multisignature;Object.defineProperty(d,"makeMultisignedTx",{enumerable:!0,get:function(){return Pt.makeMultisignedTx}}),Object.defineProperty(d,"makeMultisignedTxBytes",{enumerable:!0,get:function(){return Pt.makeMultisignedTxBytes}});var Jt=queryclient$1;Object.defineProperty(d,"createPagination",{enumerable:!0,get:function(){return Jt.createPagination}}),Object.defineProperty(d,"createProtobufRpcClient",{enumerable:!0,get:function(){return Jt.createProtobufRpcClient}}),Object.defineProperty(d,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return Jt.decodeCosmosSdkDecFromProto}}),Object.defineProperty(d,"QueryClient",{enumerable:!0,get:function(){return Jt.QueryClient}});var Zt=signingstargateclient;Object.defineProperty(d,"createDefaultAminoConverters",{enumerable:!0,get:function(){return Zt.createDefaultAminoConverters}}),Object.defineProperty(d,"defaultRegistryTypes",{enumerable:!0,get:function(){return Zt.defaultRegistryTypes}}),Object.defineProperty(d,"SigningStargateClient",{enumerable:!0,get:function(){return Zt.SigningStargateClient}});var Rt=stargateclient;Object.defineProperty(d,"assertIsDeliverTxFailure",{enumerable:!0,get:function(){return Rt.assertIsDeliverTxFailure}}),Object.defineProperty(d,"assertIsDeliverTxSuccess",{enumerable:!0,get:function(){return Rt.assertIsDeliverTxSuccess}}),Object.defineProperty(d,"BroadcastTxError",{enumerable:!0,get:function(){return Rt.BroadcastTxError}}),Object.defineProperty(d,"isDeliverTxFailure",{enumerable:!0,get:function(){return Rt.isDeliverTxFailure}}),Object.defineProperty(d,"isDeliverTxSuccess",{enumerable:!0,get:function(){return Rt.isDeliverTxSuccess}}),Object.defineProperty(d,"StargateClient",{enumerable:!0,get:function(){return Rt.StargateClient}}),Object.defineProperty(d,"TimeoutError",{enumerable:!0,get:function(){return Rt.TimeoutError}});var nn=build$d;Object.defineProperty(d,"coin",{enumerable:!0,get:function(){return nn.coin}}),Object.defineProperty(d,"coins",{enumerable:!0,get:function(){return nn.coins}}),Object.defineProperty(d,"makeCosmoshubPath",{enumerable:!0,get:function(){return nn.makeCosmoshubPath}}),Object.defineProperty(d,"parseCoins",{enumerable:!0,get:function(){return nn.parseCoins}})})(build$e);var types$a={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,jt,Ht,an){an===void 0&&(an=Ht);var yt=Object.getOwnPropertyDescriptor(jt,Ht);(!yt||("get"in yt?!jt.__esModule:yt.writable||yt.configurable))&&(yt={enumerable:!0,get:function(){return jt[Ht]}}),Object.defineProperty(Mt,an,yt)}:function(Mt,jt,Ht,an){an===void 0&&(an=Ht),Mt[an]=jt[Ht]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,jt){Object.defineProperty(Mt,"default",{enumerable:!0,value:jt})}:function(Mt,jt){Mt.default=jt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var jt={};if(Mt!=null)for(var Ht in Mt)Ht!=="default"&&Object.prototype.hasOwnProperty.call(Mt,Ht)&&b(jt,Mt,Ht);return dt(jt,Mt),jt};Object.defineProperty(d,"__esModule",{value:!0}),d.Model=d.AbsoluteTxPosition=d.ContractCodeHistoryEntry=d.ContractInfo=d.CodeInfo=d.Params=d.AccessConfig=d.AccessTypeParam=d.contractCodeHistoryOperationTypeToJSON=d.contractCodeHistoryOperationTypeFromJSON=d.ContractCodeHistoryOperationType=d.accessTypeToJSON=d.accessTypeFromJSON=d.AccessType=d.protobufPackage=void 0;const lt=any$1,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="cosmwasm.wasm.v1";var vt;(function(Mt){Mt[Mt.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",Mt[Mt.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",Mt[Mt.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",Mt[Mt.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",Mt[Mt.ACCESS_TYPE_ANY_OF_ADDRESSES=4]="ACCESS_TYPE_ANY_OF_ADDRESSES",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vt=d.AccessType||(d.AccessType={}));function kt(Mt){switch(Mt){case 0:case"ACCESS_TYPE_UNSPECIFIED":return vt.ACCESS_TYPE_UNSPECIFIED;case 1:case"ACCESS_TYPE_NOBODY":return vt.ACCESS_TYPE_NOBODY;case 2:case"ACCESS_TYPE_ONLY_ADDRESS":return vt.ACCESS_TYPE_ONLY_ADDRESS;case 3:case"ACCESS_TYPE_EVERYBODY":return vt.ACCESS_TYPE_EVERYBODY;case 4:case"ACCESS_TYPE_ANY_OF_ADDRESSES":return vt.ACCESS_TYPE_ANY_OF_ADDRESSES;case-1:case"UNRECOGNIZED":default:return vt.UNRECOGNIZED}}d.accessTypeFromJSON=kt;function Pt(Mt){switch(Mt){case vt.ACCESS_TYPE_UNSPECIFIED:return"ACCESS_TYPE_UNSPECIFIED";case vt.ACCESS_TYPE_NOBODY:return"ACCESS_TYPE_NOBODY";case vt.ACCESS_TYPE_ONLY_ADDRESS:return"ACCESS_TYPE_ONLY_ADDRESS";case vt.ACCESS_TYPE_EVERYBODY:return"ACCESS_TYPE_EVERYBODY";case vt.ACCESS_TYPE_ANY_OF_ADDRESSES:return"ACCESS_TYPE_ANY_OF_ADDRESSES";case vt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.accessTypeToJSON=Pt;var Jt;(function(Mt){Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.ContractCodeHistoryOperationType||(d.ContractCodeHistoryOperationType={}));function Zt(Mt){switch(Mt){case 0:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.contractCodeHistoryOperationTypeFromJSON=Zt;function Rt(Mt){switch(Mt){case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.contractCodeHistoryOperationTypeToJSON=Rt;function nn(){return{value:0}}d.AccessTypeParam={encode(Mt,jt=mt.Writer.create()){return Mt.value!==0&&jt.uint32(8).int32(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=nn();for(;Ht.pos>>3){case 1:yt.value=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{value:(0,ht.isSet)(Mt.value)?kt(Mt.value):0}},toJSON(Mt){const jt={};return Mt.value!==void 0&&(jt.value=Pt(Mt.value)),jt},fromPartial(Mt){const jt=nn();return jt.value=Mt.value??0,jt}};function Qt(){return{permission:0,address:"",addresses:[]}}d.AccessConfig={encode(Mt,jt=mt.Writer.create()){Mt.permission!==0&&jt.uint32(8).int32(Mt.permission),Mt.address!==""&&jt.uint32(18).string(Mt.address);for(const Ht of Mt.addresses)jt.uint32(26).string(Ht);return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Qt();for(;Ht.pos>>3){case 1:yt.permission=Ht.int32();break;case 2:yt.address=Ht.string();break;case 3:yt.addresses.push(Ht.string());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{permission:(0,ht.isSet)(Mt.permission)?kt(Mt.permission):0,address:(0,ht.isSet)(Mt.address)?String(Mt.address):"",addresses:Array.isArray(Mt==null?void 0:Mt.addresses)?Mt.addresses.map(jt=>String(jt)):[]}},toJSON(Mt){const jt={};return Mt.permission!==void 0&&(jt.permission=Pt(Mt.permission)),Mt.address!==void 0&&(jt.address=Mt.address),Mt.addresses?jt.addresses=Mt.addresses.map(Ht=>Ht):jt.addresses=[],jt},fromPartial(Mt){var Ht;const jt=Qt();return jt.permission=Mt.permission??0,jt.address=Mt.address??"",jt.addresses=((Ht=Mt.addresses)==null?void 0:Ht.map(an=>an))||[],jt}};function wt(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0}}d.Params={encode(Mt,jt=mt.Writer.create()){return Mt.codeUploadAccess!==void 0&&d.AccessConfig.encode(Mt.codeUploadAccess,jt.uint32(10).fork()).ldelim(),Mt.instantiateDefaultPermission!==0&&jt.uint32(16).int32(Mt.instantiateDefaultPermission),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=wt();for(;Ht.pos>>3){case 1:yt.codeUploadAccess=d.AccessConfig.decode(Ht,Ht.uint32());break;case 2:yt.instantiateDefaultPermission=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeUploadAccess:(0,ht.isSet)(Mt.codeUploadAccess)?d.AccessConfig.fromJSON(Mt.codeUploadAccess):void 0,instantiateDefaultPermission:(0,ht.isSet)(Mt.instantiateDefaultPermission)?kt(Mt.instantiateDefaultPermission):0}},toJSON(Mt){const jt={};return Mt.codeUploadAccess!==void 0&&(jt.codeUploadAccess=Mt.codeUploadAccess?d.AccessConfig.toJSON(Mt.codeUploadAccess):void 0),Mt.instantiateDefaultPermission!==void 0&&(jt.instantiateDefaultPermission=Pt(Mt.instantiateDefaultPermission)),jt},fromPartial(Mt){const jt=wt();return jt.codeUploadAccess=Mt.codeUploadAccess!==void 0&&Mt.codeUploadAccess!==null?d.AccessConfig.fromPartial(Mt.codeUploadAccess):void 0,jt.instantiateDefaultPermission=Mt.instantiateDefaultPermission??0,jt}};function Nt(){return{codeHash:new Uint8Array,creator:"",instantiateConfig:void 0}}d.CodeInfo={encode(Mt,jt=mt.Writer.create()){return Mt.codeHash.length!==0&&jt.uint32(10).bytes(Mt.codeHash),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.instantiateConfig!==void 0&&d.AccessConfig.encode(Mt.instantiateConfig,jt.uint32(42).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Nt();for(;Ht.pos>>3){case 1:yt.codeHash=Ht.bytes();break;case 2:yt.creator=Ht.string();break;case 5:yt.instantiateConfig=d.AccessConfig.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeHash:(0,ht.isSet)(Mt.codeHash)?(0,ht.bytesFromBase64)(Mt.codeHash):new Uint8Array,creator:(0,ht.isSet)(Mt.creator)?String(Mt.creator):"",instantiateConfig:(0,ht.isSet)(Mt.instantiateConfig)?d.AccessConfig.fromJSON(Mt.instantiateConfig):void 0}},toJSON(Mt){const jt={};return Mt.codeHash!==void 0&&(jt.codeHash=(0,ht.base64FromBytes)(Mt.codeHash!==void 0?Mt.codeHash:new Uint8Array)),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.instantiateConfig!==void 0&&(jt.instantiateConfig=Mt.instantiateConfig?d.AccessConfig.toJSON(Mt.instantiateConfig):void 0),jt},fromPartial(Mt){const jt=Nt();return jt.codeHash=Mt.codeHash??new Uint8Array,jt.creator=Mt.creator??"",jt.instantiateConfig=Mt.instantiateConfig!==void 0&&Mt.instantiateConfig!==null?d.AccessConfig.fromPartial(Mt.instantiateConfig):void 0,jt}};function xt(){return{codeId:ht.Long.UZERO,creator:"",admin:"",label:"",created:void 0,ibcPortId:"",extension:void 0}}d.ContractInfo={encode(Mt,jt=mt.Writer.create()){return Mt.codeId.isZero()||jt.uint32(8).uint64(Mt.codeId),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.admin!==""&&jt.uint32(26).string(Mt.admin),Mt.label!==""&&jt.uint32(34).string(Mt.label),Mt.created!==void 0&&d.AbsoluteTxPosition.encode(Mt.created,jt.uint32(42).fork()).ldelim(),Mt.ibcPortId!==""&&jt.uint32(50).string(Mt.ibcPortId),Mt.extension!==void 0&<.Any.encode(Mt.extension,jt.uint32(58).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=xt();for(;Ht.pos>>3){case 1:yt.codeId=Ht.uint64();break;case 2:yt.creator=Ht.string();break;case 3:yt.admin=Ht.string();break;case 4:yt.label=Ht.string();break;case 5:yt.created=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 6:yt.ibcPortId=Ht.string();break;case 7:yt.extension=lt.Any.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeId:(0,ht.isSet)(Mt.codeId)?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,creator:(0,ht.isSet)(Mt.creator)?String(Mt.creator):"",admin:(0,ht.isSet)(Mt.admin)?String(Mt.admin):"",label:(0,ht.isSet)(Mt.label)?String(Mt.label):"",created:(0,ht.isSet)(Mt.created)?d.AbsoluteTxPosition.fromJSON(Mt.created):void 0,ibcPortId:(0,ht.isSet)(Mt.ibcPortId)?String(Mt.ibcPortId):"",extension:(0,ht.isSet)(Mt.extension)?lt.Any.fromJSON(Mt.extension):void 0}},toJSON(Mt){const jt={};return Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||ht.Long.UZERO).toString()),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.admin!==void 0&&(jt.admin=Mt.admin),Mt.label!==void 0&&(jt.label=Mt.label),Mt.created!==void 0&&(jt.created=Mt.created?d.AbsoluteTxPosition.toJSON(Mt.created):void 0),Mt.ibcPortId!==void 0&&(jt.ibcPortId=Mt.ibcPortId),Mt.extension!==void 0&&(jt.extension=Mt.extension?lt.Any.toJSON(Mt.extension):void 0),jt},fromPartial(Mt){const jt=xt();return jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,jt.creator=Mt.creator??"",jt.admin=Mt.admin??"",jt.label=Mt.label??"",jt.created=Mt.created!==void 0&&Mt.created!==null?d.AbsoluteTxPosition.fromPartial(Mt.created):void 0,jt.ibcPortId=Mt.ibcPortId??"",jt.extension=Mt.extension!==void 0&&Mt.extension!==null?lt.Any.fromPartial(Mt.extension):void 0,jt}};function Et(){return{operation:0,codeId:ht.Long.UZERO,updated:void 0,msg:new Uint8Array}}d.ContractCodeHistoryEntry={encode(Mt,jt=mt.Writer.create()){return Mt.operation!==0&&jt.uint32(8).int32(Mt.operation),Mt.codeId.isZero()||jt.uint32(16).uint64(Mt.codeId),Mt.updated!==void 0&&d.AbsoluteTxPosition.encode(Mt.updated,jt.uint32(26).fork()).ldelim(),Mt.msg.length!==0&&jt.uint32(34).bytes(Mt.msg),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Et();for(;Ht.pos>>3){case 1:yt.operation=Ht.int32();break;case 2:yt.codeId=Ht.uint64();break;case 3:yt.updated=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 4:yt.msg=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{operation:(0,ht.isSet)(Mt.operation)?Zt(Mt.operation):0,codeId:(0,ht.isSet)(Mt.codeId)?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,updated:(0,ht.isSet)(Mt.updated)?d.AbsoluteTxPosition.fromJSON(Mt.updated):void 0,msg:(0,ht.isSet)(Mt.msg)?(0,ht.bytesFromBase64)(Mt.msg):new Uint8Array}},toJSON(Mt){const jt={};return Mt.operation!==void 0&&(jt.operation=Rt(Mt.operation)),Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||ht.Long.UZERO).toString()),Mt.updated!==void 0&&(jt.updated=Mt.updated?d.AbsoluteTxPosition.toJSON(Mt.updated):void 0),Mt.msg!==void 0&&(jt.msg=(0,ht.base64FromBytes)(Mt.msg!==void 0?Mt.msg:new Uint8Array)),jt},fromPartial(Mt){const jt=Et();return jt.operation=Mt.operation??0,jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,jt.updated=Mt.updated!==void 0&&Mt.updated!==null?d.AbsoluteTxPosition.fromPartial(Mt.updated):void 0,jt.msg=Mt.msg??new Uint8Array,jt}};function Bt(){return{blockHeight:ht.Long.UZERO,txIndex:ht.Long.UZERO}}d.AbsoluteTxPosition={encode(Mt,jt=mt.Writer.create()){return Mt.blockHeight.isZero()||jt.uint32(8).uint64(Mt.blockHeight),Mt.txIndex.isZero()||jt.uint32(16).uint64(Mt.txIndex),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Bt();for(;Ht.pos>>3){case 1:yt.blockHeight=Ht.uint64();break;case 2:yt.txIndex=Ht.uint64();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{blockHeight:(0,ht.isSet)(Mt.blockHeight)?ht.Long.fromValue(Mt.blockHeight):ht.Long.UZERO,txIndex:(0,ht.isSet)(Mt.txIndex)?ht.Long.fromValue(Mt.txIndex):ht.Long.UZERO}},toJSON(Mt){const jt={};return Mt.blockHeight!==void 0&&(jt.blockHeight=(Mt.blockHeight||ht.Long.UZERO).toString()),Mt.txIndex!==void 0&&(jt.txIndex=(Mt.txIndex||ht.Long.UZERO).toString()),jt},fromPartial(Mt){const jt=Bt();return jt.blockHeight=Mt.blockHeight!==void 0&&Mt.blockHeight!==null?ht.Long.fromValue(Mt.blockHeight):ht.Long.UZERO,jt.txIndex=Mt.txIndex!==void 0&&Mt.txIndex!==null?ht.Long.fromValue(Mt.txIndex):ht.Long.UZERO,jt}};function Tt(){return{key:new Uint8Array,value:new Uint8Array}}d.Model={encode(Mt,jt=mt.Writer.create()){return Mt.key.length!==0&&jt.uint32(10).bytes(Mt.key),Mt.value.length!==0&&jt.uint32(18).bytes(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Tt();for(;Ht.pos>>3){case 1:yt.key=Ht.bytes();break;case 2:yt.value=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{key:(0,ht.isSet)(Mt.key)?(0,ht.bytesFromBase64)(Mt.key):new Uint8Array,value:(0,ht.isSet)(Mt.value)?(0,ht.bytesFromBase64)(Mt.value):new Uint8Array}},toJSON(Mt){const jt={};return Mt.key!==void 0&&(jt.key=(0,ht.base64FromBytes)(Mt.key!==void 0?Mt.key:new Uint8Array)),Mt.value!==void 0&&(jt.value=(0,ht.base64FromBytes)(Mt.value!==void 0?Mt.value:new Uint8Array)),jt},fromPartial(Mt){const jt=Tt();return jt.key=Mt.key??new Uint8Array,jt.value=Mt.value??new Uint8Array,jt}}})(types$a);var modules={},aminomessages={},__importDefault$m=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(aminomessages,"__esModule",{value:!0});aminomessages.createWasmAminoConverters=aminomessages.accessTypeToString=aminomessages.accessTypeFromString=void 0;const encoding_1$7=build$g,types_1$2=types$a,long_1$b=__importDefault$m(long);function accessTypeFromString(d){switch(d){case"Unspecified":return types_1$2.AccessType.ACCESS_TYPE_UNSPECIFIED;case"Nobody":return types_1$2.AccessType.ACCESS_TYPE_NOBODY;case"OnlyAddress":return types_1$2.AccessType.ACCESS_TYPE_ONLY_ADDRESS;case"Everybody":return types_1$2.AccessType.ACCESS_TYPE_EVERYBODY;case"AnyOfAddresses":return types_1$2.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES;default:return types_1$2.AccessType.UNRECOGNIZED}}aminomessages.accessTypeFromString=accessTypeFromString;function accessTypeToString(d){switch(d){case types_1$2.AccessType.ACCESS_TYPE_UNSPECIFIED:return"Unspecified";case types_1$2.AccessType.ACCESS_TYPE_NOBODY:return"Nobody";case types_1$2.AccessType.ACCESS_TYPE_ONLY_ADDRESS:return"OnlyAddress";case types_1$2.AccessType.ACCESS_TYPE_EVERYBODY:return"Everybody";case types_1$2.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES:return"AnyOfAddresses";case types_1$2.AccessType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}aminomessages.accessTypeToString=accessTypeToString;function createWasmAminoConverters(){return{"/cosmwasm.wasm.v1.MsgStoreCode":{aminoType:"wasm/MsgStoreCode",toAmino:({sender:d,wasmByteCode:b,instantiatePermission:dt})=>({sender:d,wasm_byte_code:(0,encoding_1$7.toBase64)(b),instantiate_permission:dt?{permission:accessTypeToString(dt.permission),address:dt.address||void 0,addresses:dt.addresses.length!==0?dt.addresses:void 0}:void 0}),fromAmino:({sender:d,wasm_byte_code:b,instantiate_permission:dt})=>({sender:d,wasmByteCode:(0,encoding_1$7.fromBase64)(b),instantiatePermission:dt?{permission:accessTypeFromString(dt.permission),address:dt.address??"",addresses:dt.addresses??[]}:void 0})},"/cosmwasm.wasm.v1.MsgInstantiateContract":{aminoType:"wasm/MsgInstantiateContract",toAmino:({sender:d,codeId:b,label:dt,msg:ct,funds:lt,admin:ht})=>({sender:d,code_id:b.toString(),label:dt,msg:JSON.parse((0,encoding_1$7.fromUtf8)(ct)),funds:lt,admin:ht||void 0}),fromAmino:({sender:d,code_id:b,label:dt,msg:ct,funds:lt,admin:ht})=>({sender:d,codeId:long_1$b.default.fromString(b),label:dt,msg:(0,encoding_1$7.toUtf8)(JSON.stringify(ct)),funds:[...lt],admin:ht??""})},"/cosmwasm.wasm.v1.MsgInstantiateContract2":{aminoType:"wasm/MsgInstantiateContract2",toAmino:({sender:d,codeId:b,label:dt,msg:ct,funds:lt,admin:ht,salt:mt,fixMsg:vt})=>({sender:d,code_id:b.toString(),label:dt,msg:JSON.parse((0,encoding_1$7.fromUtf8)(ct)),funds:lt,admin:ht||void 0,salt:(0,encoding_1$7.toBase64)(mt),fix_msg:vt}),fromAmino:({sender:d,code_id:b,label:dt,msg:ct,funds:lt,admin:ht,salt:mt,fix_msg:vt})=>({sender:d,codeId:long_1$b.default.fromString(b),label:dt,msg:(0,encoding_1$7.toUtf8)(JSON.stringify(ct)),funds:[...lt],admin:ht??"",salt:(0,encoding_1$7.fromBase64)(mt),fixMsg:vt})},"/cosmwasm.wasm.v1.MsgUpdateAdmin":{aminoType:"wasm/MsgUpdateAdmin",toAmino:({sender:d,newAdmin:b,contract:dt})=>({sender:d,new_admin:b,contract:dt}),fromAmino:({sender:d,new_admin:b,contract:dt})=>({sender:d,newAdmin:b,contract:dt})},"/cosmwasm.wasm.v1.MsgClearAdmin":{aminoType:"wasm/MsgClearAdmin",toAmino:({sender:d,contract:b})=>({sender:d,contract:b}),fromAmino:({sender:d,contract:b})=>({sender:d,contract:b})},"/cosmwasm.wasm.v1.MsgExecuteContract":{aminoType:"wasm/MsgExecuteContract",toAmino:({sender:d,contract:b,msg:dt,funds:ct})=>({sender:d,contract:b,msg:JSON.parse((0,encoding_1$7.fromUtf8)(dt)),funds:ct}),fromAmino:({sender:d,contract:b,msg:dt,funds:ct})=>({sender:d,contract:b,msg:(0,encoding_1$7.toUtf8)(JSON.stringify(dt)),funds:[...ct]})},"/cosmwasm.wasm.v1.MsgMigrateContract":{aminoType:"wasm/MsgMigrateContract",toAmino:({sender:d,contract:b,codeId:dt,msg:ct})=>({sender:d,contract:b,code_id:dt.toString(),msg:JSON.parse((0,encoding_1$7.fromUtf8)(ct))}),fromAmino:({sender:d,contract:b,code_id:dt,msg:ct})=>({sender:d,contract:b,codeId:long_1$b.default.fromString(dt),msg:(0,encoding_1$7.toUtf8)(JSON.stringify(ct))})}}}aminomessages.createWasmAminoConverters=createWasmAminoConverters;var messages$1={},tx$d={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUpdateInstantiateConfigResponse=d.MsgUpdateInstantiateConfig=d.MsgClearAdminResponse=d.MsgClearAdmin=d.MsgUpdateAdminResponse=d.MsgUpdateAdmin=d.MsgMigrateContractResponse=d.MsgMigrateContract=d.MsgExecuteContractResponse=d.MsgExecuteContract=d.MsgInstantiateContract2Response=d.MsgInstantiateContractResponse=d.MsgInstantiateContract2=d.MsgInstantiateContract=d.MsgStoreCodeResponse=d.MsgStoreCode=d.protobufPackage=void 0;const lt=types$a,ht=coin$3,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmwasm.wasm.v1";function kt(){return{sender:"",wasmByteCode:new Uint8Array,instantiatePermission:void 0}}d.MsgStoreCode={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.wasmByteCode.length!==0&&$t.uint32(18).bytes(yt.wasmByteCode),yt.instantiatePermission!==void 0&<.AccessConfig.encode(yt.instantiatePermission,$t.uint32(42).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=kt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.wasmByteCode=Yt.bytes();break;case 5:St.instantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",wasmByteCode:(0,mt.isSet)(yt.wasmByteCode)?(0,mt.bytesFromBase64)(yt.wasmByteCode):new Uint8Array,instantiatePermission:(0,mt.isSet)(yt.instantiatePermission)?lt.AccessConfig.fromJSON(yt.instantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.wasmByteCode!==void 0&&($t.wasmByteCode=(0,mt.base64FromBytes)(yt.wasmByteCode!==void 0?yt.wasmByteCode:new Uint8Array)),yt.instantiatePermission!==void 0&&($t.instantiatePermission=yt.instantiatePermission?lt.AccessConfig.toJSON(yt.instantiatePermission):void 0),$t},fromPartial(yt){const $t=kt();return $t.sender=yt.sender??"",$t.wasmByteCode=yt.wasmByteCode??new Uint8Array,$t.instantiatePermission=yt.instantiatePermission!==void 0&&yt.instantiatePermission!==null?lt.AccessConfig.fromPartial(yt.instantiatePermission):void 0,$t}};function Pt(){return{codeId:mt.Long.UZERO,checksum:new Uint8Array}}d.MsgStoreCodeResponse={encode(yt,$t=vt.Writer.create()){return yt.codeId.isZero()||$t.uint32(8).uint64(yt.codeId),yt.checksum.length!==0&&$t.uint32(18).bytes(yt.checksum),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Pt();for(;Yt.pos>>3){case 1:St.codeId=Yt.uint64();break;case 2:St.checksum=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,checksum:(0,mt.isSet)(yt.checksum)?(0,mt.bytesFromBase64)(yt.checksum):new Uint8Array}},toJSON(yt){const $t={};return yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.checksum!==void 0&&($t.checksum=(0,mt.base64FromBytes)(yt.checksum!==void 0?yt.checksum:new Uint8Array)),$t},fromPartial(yt){const $t=Pt();return $t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.checksum=yt.checksum??new Uint8Array,$t}};function Jt(){return{sender:"",admin:"",codeId:mt.Long.UZERO,label:"",msg:new Uint8Array,funds:[]}}d.MsgInstantiateContract={encode(yt,$t=vt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,mt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,label:(0,mt.isSet)(yt.label)?String(yt.label):"",msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Jt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function Zt(){return{sender:"",admin:"",codeId:mt.Long.UZERO,label:"",msg:new Uint8Array,funds:[],salt:new Uint8Array,fixMsg:!1}}d.MsgInstantiateContract2={encode(yt,$t=vt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return yt.salt.length!==0&&$t.uint32(58).bytes(yt.salt),yt.fixMsg===!0&&$t.uint32(64).bool(yt.fixMsg),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;case 7:St.salt=Yt.bytes();break;case 8:St.fixMsg=Yt.bool();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,mt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,label:(0,mt.isSet)(yt.label)?String(yt.label):"",msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[],salt:(0,mt.isSet)(yt.salt)?(0,mt.bytesFromBase64)(yt.salt):new Uint8Array,fixMsg:(0,mt.isSet)(yt.fixMsg)?!!yt.fixMsg:!1}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],yt.salt!==void 0&&($t.salt=(0,mt.base64FromBytes)(yt.salt!==void 0?yt.salt:new Uint8Array)),yt.fixMsg!==void 0&&($t.fixMsg=yt.fixMsg),$t},fromPartial(yt){var Yt;const $t=Zt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t.salt=yt.salt??new Uint8Array,$t.fixMsg=yt.fixMsg??!1,$t}};function Rt(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContractResponse={encode(yt,$t=vt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,mt.isSet)(yt.address)?String(yt.address):"",data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=Rt();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function nn(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContract2Response={encode(yt,$t=vt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,mt.isSet)(yt.address)?String(yt.address):"",data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=nn();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function Qt(){return{sender:"",contract:"",msg:new Uint8Array,funds:[]}}d.MsgExecuteContract={encode(yt,$t=vt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.msg.length!==0&&$t.uint32(26).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(42).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.msg=Yt.bytes();break;case 5:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):"",msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Qt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function wt(){return{data:new Uint8Array}}d.MsgExecuteContractResponse={encode(yt,$t=vt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=wt();return $t.data=yt.data??new Uint8Array,$t}};function Nt(){return{sender:"",contract:"",codeId:mt.Long.UZERO,msg:new Uint8Array}}d.MsgMigrateContract={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.msg.length!==0&&$t.uint32(34).bytes(yt.msg),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.msg=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),$t},fromPartial(yt){const $t=Nt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.msg=yt.msg??new Uint8Array,$t}};function xt(){return{data:new Uint8Array}}d.MsgMigrateContractResponse={encode(yt,$t=vt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=xt();return $t.data=yt.data??new Uint8Array,$t}};function Et(){return{sender:"",newAdmin:"",contract:""}}d.MsgUpdateAdmin={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.newAdmin!==""&&$t.uint32(18).string(yt.newAdmin),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.newAdmin=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",newAdmin:(0,mt.isSet)(yt.newAdmin)?String(yt.newAdmin):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.newAdmin!==void 0&&($t.newAdmin=yt.newAdmin),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Et();return $t.sender=yt.sender??"",$t.newAdmin=yt.newAdmin??"",$t.contract=yt.contract??"",$t}};function Bt(){return{}}d.MsgUpdateAdminResponse={encode(yt,$t=vt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Bt()}};function Tt(){return{sender:"",contract:""}}d.MsgClearAdmin={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Tt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t}};function Mt(){return{}}d.MsgClearAdminResponse={encode(yt,$t=vt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Mt()}};function jt(){return{sender:"",codeId:mt.Long.UZERO,newInstantiatePermission:void 0}}d.MsgUpdateInstantiateConfig={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.codeId.isZero()||$t.uint32(16).uint64(yt.codeId),yt.newInstantiatePermission!==void 0&<.AccessConfig.encode(yt.newInstantiatePermission,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.codeId=Yt.uint64();break;case 3:St.newInstantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,newInstantiatePermission:(0,mt.isSet)(yt.newInstantiatePermission)?lt.AccessConfig.fromJSON(yt.newInstantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.newInstantiatePermission!==void 0&&($t.newInstantiatePermission=yt.newInstantiatePermission?lt.AccessConfig.toJSON(yt.newInstantiatePermission):void 0),$t},fromPartial(yt){const $t=jt();return $t.sender=yt.sender??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.newInstantiatePermission=yt.newInstantiatePermission!==void 0&&yt.newInstantiatePermission!==null?lt.AccessConfig.fromPartial(yt.newInstantiatePermission):void 0,$t}};function Ht(){return{}}d.MsgUpdateInstantiateConfigResponse={encode(yt,$t=vt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Ht()}};class an{constructor($t){this.rpc=$t,this.StoreCode=this.StoreCode.bind(this),this.InstantiateContract=this.InstantiateContract.bind(this),this.InstantiateContract2=this.InstantiateContract2.bind(this),this.ExecuteContract=this.ExecuteContract.bind(this),this.MigrateContract=this.MigrateContract.bind(this),this.UpdateAdmin=this.UpdateAdmin.bind(this),this.ClearAdmin=this.ClearAdmin.bind(this),this.UpdateInstantiateConfig=this.UpdateInstantiateConfig.bind(this)}StoreCode($t){const Yt=d.MsgStoreCode.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","StoreCode",Yt).then(St=>d.MsgStoreCodeResponse.decode(new vt.Reader(St)))}InstantiateContract($t){const Yt=d.MsgInstantiateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract",Yt).then(St=>d.MsgInstantiateContractResponse.decode(new vt.Reader(St)))}InstantiateContract2($t){const Yt=d.MsgInstantiateContract2.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract2",Yt).then(St=>d.MsgInstantiateContract2Response.decode(new vt.Reader(St)))}ExecuteContract($t){const Yt=d.MsgExecuteContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ExecuteContract",Yt).then(St=>d.MsgExecuteContractResponse.decode(new vt.Reader(St)))}MigrateContract($t){const Yt=d.MsgMigrateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","MigrateContract",Yt).then(St=>d.MsgMigrateContractResponse.decode(new vt.Reader(St)))}UpdateAdmin($t){const Yt=d.MsgUpdateAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateAdmin",Yt).then(St=>d.MsgUpdateAdminResponse.decode(new vt.Reader(St)))}ClearAdmin($t){const Yt=d.MsgClearAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ClearAdmin",Yt).then(St=>d.MsgClearAdminResponse.decode(new vt.Reader(St)))}UpdateInstantiateConfig($t){const Yt=d.MsgUpdateInstantiateConfig.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateInstantiateConfig",Yt).then(St=>d.MsgUpdateInstantiateConfigResponse.decode(new vt.Reader(St)))}}d.MsgClientImpl=an})(tx$d);Object.defineProperty(messages$1,"__esModule",{value:!0});messages$1.isMsgExecuteEncodeObject=messages$1.isMsgMigrateEncodeObject=messages$1.isMsgClearAdminEncodeObject=messages$1.isMsgUpdateAdminEncodeObject=messages$1.isMsgInstantiateContract2EncodeObject=messages$1.isMsgInstantiateContractEncodeObject=messages$1.isMsgStoreCodeEncodeObject=messages$1.wasmTypes=void 0;const tx_1$2=tx$d;messages$1.wasmTypes=[["/cosmwasm.wasm.v1.MsgClearAdmin",tx_1$2.MsgClearAdmin],["/cosmwasm.wasm.v1.MsgExecuteContract",tx_1$2.MsgExecuteContract],["/cosmwasm.wasm.v1.MsgMigrateContract",tx_1$2.MsgMigrateContract],["/cosmwasm.wasm.v1.MsgStoreCode",tx_1$2.MsgStoreCode],["/cosmwasm.wasm.v1.MsgInstantiateContract",tx_1$2.MsgInstantiateContract],["/cosmwasm.wasm.v1.MsgInstantiateContract2",tx_1$2.MsgInstantiateContract2],["/cosmwasm.wasm.v1.MsgUpdateAdmin",tx_1$2.MsgUpdateAdmin]];function isMsgStoreCodeEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgStoreCode"}messages$1.isMsgStoreCodeEncodeObject=isMsgStoreCodeEncodeObject;function isMsgInstantiateContractEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract"}messages$1.isMsgInstantiateContractEncodeObject=isMsgInstantiateContractEncodeObject;function isMsgInstantiateContract2EncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract2"}messages$1.isMsgInstantiateContract2EncodeObject=isMsgInstantiateContract2EncodeObject;function isMsgUpdateAdminEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgUpdateAdmin"}messages$1.isMsgUpdateAdminEncodeObject=isMsgUpdateAdminEncodeObject;function isMsgClearAdminEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgClearAdmin"}messages$1.isMsgClearAdminEncodeObject=isMsgClearAdminEncodeObject;function isMsgMigrateEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgMigrateContract"}messages$1.isMsgMigrateEncodeObject=isMsgMigrateEncodeObject;function isMsgExecuteEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgExecuteContract"}messages$1.isMsgExecuteEncodeObject=isMsgExecuteEncodeObject;var queries$1={},query$9={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ut,Vt,qt,fn){fn===void 0&&(fn=qt);var dn=Object.getOwnPropertyDescriptor(Vt,qt);(!dn||("get"in dn?!Vt.__esModule:dn.writable||dn.configurable))&&(dn={enumerable:!0,get:function(){return Vt[qt]}}),Object.defineProperty(Ut,fn,dn)}:function(Ut,Vt,qt,fn){fn===void 0&&(fn=qt),Ut[fn]=Vt[qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Ut,Vt){Object.defineProperty(Ut,"default",{enumerable:!0,value:Vt})}:function(Ut,Vt){Ut.default=Vt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Ut){if(Ut&&Ut.__esModule)return Ut;var Vt={};if(Ut!=null)for(var qt in Ut)qt!=="default"&&Object.prototype.hasOwnProperty.call(Ut,qt)&&b(Vt,Ut,qt);return dt(Vt,Ut),Vt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryContractsByCreatorResponse=d.QueryContractsByCreatorRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryPinnedCodesResponse=d.QueryPinnedCodesRequest=d.QueryCodesResponse=d.QueryCodesRequest=d.QueryCodeResponse=d.CodeInfoResponse=d.QueryCodeRequest=d.QuerySmartContractStateResponse=d.QuerySmartContractStateRequest=d.QueryRawContractStateResponse=d.QueryRawContractStateRequest=d.QueryAllContractStateResponse=d.QueryAllContractStateRequest=d.QueryContractsByCodeResponse=d.QueryContractsByCodeRequest=d.QueryContractHistoryResponse=d.QueryContractHistoryRequest=d.QueryContractInfoResponse=d.QueryContractInfoRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=types$a,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmwasm.wasm.v1";function kt(){return{address:""}}d.QueryContractInfoRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=kt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):""}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Vt},fromPartial(Ut){const Vt=kt();return Vt.address=Ut.address??"",Vt}};function Pt(){return{address:"",contractInfo:void 0}}d.QueryContractInfoResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.contractInfo!==void 0&&ht.ContractInfo.encode(Ut.contractInfo,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Pt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.contractInfo=ht.ContractInfo.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",contractInfo:(0,mt.isSet)(Ut.contractInfo)?ht.ContractInfo.fromJSON(Ut.contractInfo):void 0}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.contractInfo!==void 0&&(Vt.contractInfo=Ut.contractInfo?ht.ContractInfo.toJSON(Ut.contractInfo):void 0),Vt},fromPartial(Ut){const Vt=Pt();return Vt.address=Ut.address??"",Vt.contractInfo=Ut.contractInfo!==void 0&&Ut.contractInfo!==null?ht.ContractInfo.fromPartial(Ut.contractInfo):void 0,Vt}};function Jt(){return{address:"",pagination:void 0}}d.QueryContractHistoryRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Jt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Jt();return Vt.address=Ut.address??"",Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function Zt(){return{entries:[],pagination:void 0}}d.QueryContractHistoryResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.entries)ht.ContractCodeHistoryEntry.encode(qt,Vt.uint32(10).fork()).ldelim();return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Zt();for(;qt.pos>>3){case 1:dn.entries.push(ht.ContractCodeHistoryEntry.decode(qt,qt.uint32()));break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{entries:Array.isArray(Ut==null?void 0:Ut.entries)?Ut.entries.map(Vt=>ht.ContractCodeHistoryEntry.fromJSON(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.entries?Vt.entries=Ut.entries.map(qt=>qt?ht.ContractCodeHistoryEntry.toJSON(qt):void 0):Vt.entries=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=Zt();return Vt.entries=((qt=Ut.entries)==null?void 0:qt.map(fn=>ht.ContractCodeHistoryEntry.fromPartial(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Rt(){return{codeId:mt.Long.UZERO,pagination:void 0}}d.QueryContractsByCodeRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.codeId.isZero()||Vt.uint32(8).uint64(Ut.codeId),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Rt();for(;qt.pos>>3){case 1:dn.codeId=qt.uint64();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeId:(0,mt.isSet)(Ut.codeId)?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.codeId!==void 0&&(Vt.codeId=(Ut.codeId||mt.Long.UZERO).toString()),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Rt();return Vt.codeId=Ut.codeId!==void 0&&Ut.codeId!==null?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function nn(){return{contracts:[],pagination:void 0}}d.QueryContractsByCodeResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.contracts)Vt.uint32(10).string(qt);return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=nn();for(;qt.pos>>3){case 1:dn.contracts.push(qt.string());break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{contracts:Array.isArray(Ut==null?void 0:Ut.contracts)?Ut.contracts.map(Vt=>String(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.contracts?Vt.contracts=Ut.contracts.map(qt=>qt):Vt.contracts=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=nn();return Vt.contracts=((qt=Ut.contracts)==null?void 0:qt.map(fn=>fn))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Qt(){return{address:"",pagination:void 0}}d.QueryAllContractStateRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Qt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Qt();return Vt.address=Ut.address??"",Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function wt(){return{models:[],pagination:void 0}}d.QueryAllContractStateResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.models)ht.Model.encode(qt,Vt.uint32(10).fork()).ldelim();return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=wt();for(;qt.pos>>3){case 1:dn.models.push(ht.Model.decode(qt,qt.uint32()));break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{models:Array.isArray(Ut==null?void 0:Ut.models)?Ut.models.map(Vt=>ht.Model.fromJSON(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.models?Vt.models=Ut.models.map(qt=>qt?ht.Model.toJSON(qt):void 0):Vt.models=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=wt();return Vt.models=((qt=Ut.models)==null?void 0:qt.map(fn=>ht.Model.fromPartial(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Nt(){return{address:"",queryData:new Uint8Array}}d.QueryRawContractStateRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.queryData.length!==0&&Vt.uint32(18).bytes(Ut.queryData),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Nt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.queryData=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",queryData:(0,mt.isSet)(Ut.queryData)?(0,mt.bytesFromBase64)(Ut.queryData):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.queryData!==void 0&&(Vt.queryData=(0,mt.base64FromBytes)(Ut.queryData!==void 0?Ut.queryData:new Uint8Array)),Vt},fromPartial(Ut){const Vt=Nt();return Vt.address=Ut.address??"",Vt.queryData=Ut.queryData??new Uint8Array,Vt}};function xt(){return{data:new Uint8Array}}d.QueryRawContractStateResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.data.length!==0&&Vt.uint32(10).bytes(Ut.data),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=xt();for(;qt.pos>>3){case 1:dn.data=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{data:(0,mt.isSet)(Ut.data)?(0,mt.bytesFromBase64)(Ut.data):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.data!==void 0&&(Vt.data=(0,mt.base64FromBytes)(Ut.data!==void 0?Ut.data:new Uint8Array)),Vt},fromPartial(Ut){const Vt=xt();return Vt.data=Ut.data??new Uint8Array,Vt}};function Et(){return{address:"",queryData:new Uint8Array}}d.QuerySmartContractStateRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.queryData.length!==0&&Vt.uint32(18).bytes(Ut.queryData),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Et();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.queryData=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",queryData:(0,mt.isSet)(Ut.queryData)?(0,mt.bytesFromBase64)(Ut.queryData):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.queryData!==void 0&&(Vt.queryData=(0,mt.base64FromBytes)(Ut.queryData!==void 0?Ut.queryData:new Uint8Array)),Vt},fromPartial(Ut){const Vt=Et();return Vt.address=Ut.address??"",Vt.queryData=Ut.queryData??new Uint8Array,Vt}};function Bt(){return{data:new Uint8Array}}d.QuerySmartContractStateResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.data.length!==0&&Vt.uint32(10).bytes(Ut.data),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Bt();for(;qt.pos>>3){case 1:dn.data=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{data:(0,mt.isSet)(Ut.data)?(0,mt.bytesFromBase64)(Ut.data):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.data!==void 0&&(Vt.data=(0,mt.base64FromBytes)(Ut.data!==void 0?Ut.data:new Uint8Array)),Vt},fromPartial(Ut){const Vt=Bt();return Vt.data=Ut.data??new Uint8Array,Vt}};function Tt(){return{codeId:mt.Long.UZERO}}d.QueryCodeRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.codeId.isZero()||Vt.uint32(8).uint64(Ut.codeId),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Tt();for(;qt.pos>>3){case 1:dn.codeId=qt.uint64();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeId:(0,mt.isSet)(Ut.codeId)?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO}},toJSON(Ut){const Vt={};return Ut.codeId!==void 0&&(Vt.codeId=(Ut.codeId||mt.Long.UZERO).toString()),Vt},fromPartial(Ut){const Vt=Tt();return Vt.codeId=Ut.codeId!==void 0&&Ut.codeId!==null?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,Vt}};function Mt(){return{codeId:mt.Long.UZERO,creator:"",dataHash:new Uint8Array,instantiatePermission:void 0}}d.CodeInfoResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.codeId.isZero()||Vt.uint32(8).uint64(Ut.codeId),Ut.creator!==""&&Vt.uint32(18).string(Ut.creator),Ut.dataHash.length!==0&&Vt.uint32(26).bytes(Ut.dataHash),Ut.instantiatePermission!==void 0&&ht.AccessConfig.encode(Ut.instantiatePermission,Vt.uint32(50).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Mt();for(;qt.pos>>3){case 1:dn.codeId=qt.uint64();break;case 2:dn.creator=qt.string();break;case 3:dn.dataHash=qt.bytes();break;case 6:dn.instantiatePermission=ht.AccessConfig.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeId:(0,mt.isSet)(Ut.codeId)?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,creator:(0,mt.isSet)(Ut.creator)?String(Ut.creator):"",dataHash:(0,mt.isSet)(Ut.dataHash)?(0,mt.bytesFromBase64)(Ut.dataHash):new Uint8Array,instantiatePermission:(0,mt.isSet)(Ut.instantiatePermission)?ht.AccessConfig.fromJSON(Ut.instantiatePermission):void 0}},toJSON(Ut){const Vt={};return Ut.codeId!==void 0&&(Vt.codeId=(Ut.codeId||mt.Long.UZERO).toString()),Ut.creator!==void 0&&(Vt.creator=Ut.creator),Ut.dataHash!==void 0&&(Vt.dataHash=(0,mt.base64FromBytes)(Ut.dataHash!==void 0?Ut.dataHash:new Uint8Array)),Ut.instantiatePermission!==void 0&&(Vt.instantiatePermission=Ut.instantiatePermission?ht.AccessConfig.toJSON(Ut.instantiatePermission):void 0),Vt},fromPartial(Ut){const Vt=Mt();return Vt.codeId=Ut.codeId!==void 0&&Ut.codeId!==null?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,Vt.creator=Ut.creator??"",Vt.dataHash=Ut.dataHash??new Uint8Array,Vt.instantiatePermission=Ut.instantiatePermission!==void 0&&Ut.instantiatePermission!==null?ht.AccessConfig.fromPartial(Ut.instantiatePermission):void 0,Vt}};function jt(){return{codeInfo:void 0,data:new Uint8Array}}d.QueryCodeResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.codeInfo!==void 0&&d.CodeInfoResponse.encode(Ut.codeInfo,Vt.uint32(10).fork()).ldelim(),Ut.data.length!==0&&Vt.uint32(18).bytes(Ut.data),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=jt();for(;qt.pos>>3){case 1:dn.codeInfo=d.CodeInfoResponse.decode(qt,qt.uint32());break;case 2:dn.data=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeInfo:(0,mt.isSet)(Ut.codeInfo)?d.CodeInfoResponse.fromJSON(Ut.codeInfo):void 0,data:(0,mt.isSet)(Ut.data)?(0,mt.bytesFromBase64)(Ut.data):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.codeInfo!==void 0&&(Vt.codeInfo=Ut.codeInfo?d.CodeInfoResponse.toJSON(Ut.codeInfo):void 0),Ut.data!==void 0&&(Vt.data=(0,mt.base64FromBytes)(Ut.data!==void 0?Ut.data:new Uint8Array)),Vt},fromPartial(Ut){const Vt=jt();return Vt.codeInfo=Ut.codeInfo!==void 0&&Ut.codeInfo!==null?d.CodeInfoResponse.fromPartial(Ut.codeInfo):void 0,Vt.data=Ut.data??new Uint8Array,Vt}};function Ht(){return{pagination:void 0}}d.QueryCodesRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(10).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Ht();for(;qt.pos>>3){case 1:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Ht();return Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function an(){return{codeInfos:[],pagination:void 0}}d.QueryCodesResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.codeInfos)d.CodeInfoResponse.encode(qt,Vt.uint32(10).fork()).ldelim();return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=an();for(;qt.pos>>3){case 1:dn.codeInfos.push(d.CodeInfoResponse.decode(qt,qt.uint32()));break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeInfos:Array.isArray(Ut==null?void 0:Ut.codeInfos)?Ut.codeInfos.map(Vt=>d.CodeInfoResponse.fromJSON(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.codeInfos?Vt.codeInfos=Ut.codeInfos.map(qt=>qt?d.CodeInfoResponse.toJSON(qt):void 0):Vt.codeInfos=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=an();return Vt.codeInfos=((qt=Ut.codeInfos)==null?void 0:qt.map(fn=>d.CodeInfoResponse.fromPartial(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function yt(){return{pagination:void 0}}d.QueryPinnedCodesRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=yt();for(;qt.pos>>3){case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=yt();return Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function $t(){return{codeIds:[],pagination:void 0}}d.QueryPinnedCodesResponse={encode(Ut,Vt=vt.Writer.create()){Vt.uint32(10).fork();for(const qt of Ut.codeIds)Vt.uint64(qt);return Vt.ldelim(),Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=$t();for(;qt.pos>>3){case 1:if((Dt&7)===2){const zt=qt.uint32()+qt.pos;for(;qt.posmt.Long.fromValue(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.codeIds?Vt.codeIds=Ut.codeIds.map(qt=>(qt||mt.Long.UZERO).toString()):Vt.codeIds=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=$t();return Vt.codeIds=((qt=Ut.codeIds)==null?void 0:qt.map(fn=>mt.Long.fromValue(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Yt(){return{}}d.QueryParamsRequest={encode(Ut,Vt=vt.Writer.create()){return Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Yt();for(;qt.pos>>3){default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{}},toJSON(Ut){return{}},fromPartial(Ut){return Yt()}};function Kt(){return{params:void 0}}d.QueryParamsResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.params!==void 0&&ht.Params.encode(Ut.params,Vt.uint32(10).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Kt();for(;qt.pos>>3){case 1:dn.params=ht.Params.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{params:(0,mt.isSet)(Ut.params)?ht.Params.fromJSON(Ut.params):void 0}},toJSON(Ut){const Vt={};return Ut.params!==void 0&&(Vt.params=Ut.params?ht.Params.toJSON(Ut.params):void 0),Vt},fromPartial(Ut){const Vt=Kt();return Vt.params=Ut.params!==void 0&&Ut.params!==null?ht.Params.fromPartial(Ut.params):void 0,Vt}};function St(){return{creatorAddress:"",pagination:void 0}}d.QueryContractsByCreatorRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.creatorAddress!==""&&Vt.uint32(10).string(Ut.creatorAddress),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=St();for(;qt.pos>>3){case 1:dn.creatorAddress=qt.string();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{creatorAddress:(0,mt.isSet)(Ut.creatorAddress)?String(Ut.creatorAddress):"",pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.creatorAddress!==void 0&&(Vt.creatorAddress=Ut.creatorAddress),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=St();return Vt.creatorAddress=Ut.creatorAddress??"",Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function It(){return{contractAddresses:[],pagination:void 0}}d.QueryContractsByCreatorResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.contractAddresses)Vt.uint32(10).string(qt);return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=It();for(;qt.pos>>3){case 1:dn.contractAddresses.push(qt.string());break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{contractAddresses:Array.isArray(Ut==null?void 0:Ut.contractAddresses)?Ut.contractAddresses.map(Vt=>String(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.contractAddresses?Vt.contractAddresses=Ut.contractAddresses.map(qt=>qt):Vt.contractAddresses=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=It();return Vt.contractAddresses=((qt=Ut.contractAddresses)==null?void 0:qt.map(fn=>fn))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};class Gt{constructor(Vt){this.rpc=Vt,this.ContractInfo=this.ContractInfo.bind(this),this.ContractHistory=this.ContractHistory.bind(this),this.ContractsByCode=this.ContractsByCode.bind(this),this.AllContractState=this.AllContractState.bind(this),this.RawContractState=this.RawContractState.bind(this),this.SmartContractState=this.SmartContractState.bind(this),this.Code=this.Code.bind(this),this.Codes=this.Codes.bind(this),this.PinnedCodes=this.PinnedCodes.bind(this),this.Params=this.Params.bind(this),this.ContractsByCreator=this.ContractsByCreator.bind(this)}ContractInfo(Vt){const qt=d.QueryContractInfoRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractInfo",qt).then(dn=>d.QueryContractInfoResponse.decode(new vt.Reader(dn)))}ContractHistory(Vt){const qt=d.QueryContractHistoryRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractHistory",qt).then(dn=>d.QueryContractHistoryResponse.decode(new vt.Reader(dn)))}ContractsByCode(Vt){const qt=d.QueryContractsByCodeRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCode",qt).then(dn=>d.QueryContractsByCodeResponse.decode(new vt.Reader(dn)))}AllContractState(Vt){const qt=d.QueryAllContractStateRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","AllContractState",qt).then(dn=>d.QueryAllContractStateResponse.decode(new vt.Reader(dn)))}RawContractState(Vt){const qt=d.QueryRawContractStateRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","RawContractState",qt).then(dn=>d.QueryRawContractStateResponse.decode(new vt.Reader(dn)))}SmartContractState(Vt){const qt=d.QuerySmartContractStateRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","SmartContractState",qt).then(dn=>d.QuerySmartContractStateResponse.decode(new vt.Reader(dn)))}Code(Vt){const qt=d.QueryCodeRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Code",qt).then(dn=>d.QueryCodeResponse.decode(new vt.Reader(dn)))}Codes(Vt={pagination:void 0}){const qt=d.QueryCodesRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Codes",qt).then(dn=>d.QueryCodesResponse.decode(new vt.Reader(dn)))}PinnedCodes(Vt={pagination:void 0}){const qt=d.QueryPinnedCodesRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","PinnedCodes",qt).then(dn=>d.QueryPinnedCodesResponse.decode(new vt.Reader(dn)))}Params(Vt={}){const qt=d.QueryParamsRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Params",qt).then(dn=>d.QueryParamsResponse.decode(new vt.Reader(dn)))}ContractsByCreator(Vt){const qt=d.QueryContractsByCreatorRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCreator",qt).then(dn=>d.QueryContractsByCreatorResponse.decode(new vt.Reader(dn)))}}d.QueryClientImpl=Gt})(query$9);var __importDefault$l=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(queries$1,"__esModule",{value:!0});queries$1.setupWasmExtension=void 0;const encoding_1$6=build$g,stargate_1$9=build$e,query_1$7=query$9,long_1$a=__importDefault$l(long);function setupWasmExtension(d){const b=(0,stargate_1$9.createProtobufRpcClient)(d),dt=new query_1$7.QueryClientImpl(b);return{wasm:{listCodeInfo:async ct=>{const lt={pagination:(0,stargate_1$9.createPagination)(ct)};return dt.Codes(lt)},getCode:async ct=>{const lt={codeId:long_1$a.default.fromNumber(ct)};return dt.Code(lt)},listContractsByCodeId:async(ct,lt)=>{const ht={codeId:long_1$a.default.fromNumber(ct),pagination:(0,stargate_1$9.createPagination)(lt)};return dt.ContractsByCode(ht)},listContractsByCreator:async(ct,lt)=>{const ht={creatorAddress:ct,pagination:(0,stargate_1$9.createPagination)(lt)};return dt.ContractsByCreator(ht)},getContractInfo:async ct=>{const lt={address:ct};return dt.ContractInfo(lt)},getContractCodeHistory:async(ct,lt)=>{const ht={address:ct,pagination:(0,stargate_1$9.createPagination)(lt)};return dt.ContractHistory(ht)},getAllContractState:async(ct,lt)=>{const ht={address:ct,pagination:(0,stargate_1$9.createPagination)(lt)};return dt.AllContractState(ht)},queryContractRaw:async(ct,lt)=>{const ht={address:ct,queryData:lt};return dt.RawContractState(ht)},queryContractSmart:async(ct,lt)=>{const ht={address:ct,queryData:(0,encoding_1$6.toUtf8)(JSON.stringify(lt))},{data:mt}=await dt.SmartContractState(ht);let vt;try{vt=(0,encoding_1$6.fromUtf8)(mt)}catch(kt){throw new Error(`Could not UTF-8 decode smart query response from contract: ${kt}`)}try{return JSON.parse(vt)}catch(kt){throw new Error(`Could not JSON parse smart query response from contract: ${kt}`)}}}}}queries$1.setupWasmExtension=setupWasmExtension;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.setupWasmExtension=d.wasmTypes=d.isMsgUpdateAdminEncodeObject=d.isMsgStoreCodeEncodeObject=d.isMsgMigrateEncodeObject=d.isMsgInstantiateContractEncodeObject=d.isMsgInstantiateContract2EncodeObject=d.isMsgExecuteEncodeObject=d.isMsgClearAdminEncodeObject=d.createWasmAminoConverters=void 0;var b=aminomessages;Object.defineProperty(d,"createWasmAminoConverters",{enumerable:!0,get:function(){return b.createWasmAminoConverters}});var dt=messages$1;Object.defineProperty(d,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return dt.isMsgClearAdminEncodeObject}}),Object.defineProperty(d,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return dt.isMsgExecuteEncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return dt.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return dt.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(d,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgMigrateEncodeObject}}),Object.defineProperty(d,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return dt.isMsgStoreCodeEncodeObject}}),Object.defineProperty(d,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return dt.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(d,"wasmTypes",{enumerable:!0,get:function(){return dt.wasmTypes}});var ct=queries$1;Object.defineProperty(d,"setupWasmExtension",{enumerable:!0,get:function(){return ct.setupWasmExtension}})})(modules);Object.defineProperty(cosmwasmclient,"__esModule",{value:!0});cosmwasmclient.CosmWasmClient=void 0;const encoding_1$5=build$g,math_1$4=build$f,stargate_1$8=build$e,tendermint_rpc_1$2=build$3,utils_1$4=build$9,abci_1=abci,types_1$1=types$a,modules_1$1=modules;class CosmWasmClient{static async connect(b){let dt;const ct=await tendermint_rpc_1$2.Tendermint37Client.connect(b);return(await ct.status()).nodeInfo.version.startsWith("0.37.")?dt=ct:(ct.disconnect(),dt=await tendermint_rpc_1$2.Tendermint34Client.connect(b)),CosmWasmClient.create(dt)}static async create(b){return new CosmWasmClient(b)}constructor(b){this.codesCache=new Map,b&&(this.tmClient=b,this.queryClient=stargate_1$8.QueryClient.withExtensions(b,stargate_1$8.setupAuthExtension,stargate_1$8.setupBankExtension,modules_1$1.setupWasmExtension,stargate_1$8.setupTxExtension))}getTmClient(){return this.tmClient}forceGetTmClient(){if(!this.tmClient)throw new Error("Tendermint client not available. You cannot use online functionality in offline mode.");return this.tmClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw new Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){const dt=(await this.forceGetTmClient().status()).nodeInfo.network;if(!dt)throw new Error("Chain ID must not be empty");this.chainId=dt}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(b){try{const dt=await this.forceGetQueryClient().auth.account(b);return dt?(0,stargate_1$8.accountFromAny)(dt):null}catch(dt){if(/rpc error: code = NotFound/i.test(dt.toString()))return null;throw dt}}async getSequence(b){const dt=await this.getAccount(b);if(!dt)throw new Error(`Account '${b}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:dt.accountNumber,sequence:dt.sequence}}async getBlock(b){const dt=await this.forceGetTmClient().block(b);return{id:(0,encoding_1$5.toHex)(dt.blockId.hash).toUpperCase(),header:{version:{block:new math_1$4.Uint53(dt.block.header.version.block).toString(),app:new math_1$4.Uint53(dt.block.header.version.app).toString()},height:dt.block.header.height,chainId:dt.block.header.chainId,time:(0,tendermint_rpc_1$2.toRfc3339WithNanoseconds)(dt.block.header.time)},txs:dt.block.txs}}async getBalance(b,dt){return this.forceGetQueryClient().bank.balance(b,dt)}async getTx(b){return(await this.txsQuery(`tx.hash='${b}'`))[0]??null}async searchTx(b){let dt;if(typeof b=="string")dt=b;else if(Array.isArray(b))dt=b.map(ct=>`${ct.key}='${ct.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(dt)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(b,dt=6e4,ct=3e3){let lt=!1;const ht=setTimeout(()=>{lt=!0},dt),mt=async kt=>{if(lt)throw new stargate_1$8.TimeoutError(`Transaction with ID ${kt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${dt/1e3} seconds.`,kt);await(0,utils_1$4.sleep)(ct);const Pt=await this.getTx(kt);return Pt?{code:Pt.code,height:Pt.height,txIndex:Pt.txIndex,rawLog:Pt.rawLog,transactionHash:kt,events:Pt.events,msgResponses:Pt.msgResponses,gasUsed:Pt.gasUsed,gasWanted:Pt.gasWanted}:mt(kt)},vt=await this.broadcastTxSync(b);return new Promise((kt,Pt)=>mt(vt).then(Jt=>{clearTimeout(ht),kt(Jt)},Jt=>{clearTimeout(ht),Pt(Jt)}))}async broadcastTxSync(b){const dt=await this.forceGetTmClient().broadcastTxSync({tx:b});return dt.code?Promise.reject(new stargate_1$8.BroadcastTxError(dt.code,dt.codespace??"",dt.log)):(0,encoding_1$5.toHex)(dt.hash).toUpperCase()}async getCodes(){const b=[];let dt;do{const{codeInfos:ct,pagination:lt}=await this.forceGetQueryClient().wasm.listCodeInfo(dt),ht=ct||[];b.push(...ht),dt=lt==null?void 0:lt.nextKey}while((dt==null?void 0:dt.length)!==0);return b.map(ct=>((0,utils_1$4.assert)(ct.creator&&ct.codeId&&ct.dataHash,"entry incomplete"),{id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$5.toHex)(ct.dataHash)}))}async getCodeDetails(b){const dt=this.codesCache.get(b);if(dt)return dt;const{codeInfo:ct,data:lt}=await this.forceGetQueryClient().wasm.getCode(b);(0,utils_1$4.assert)(ct&&ct.codeId&&ct.creator&&ct.dataHash&<,"codeInfo missing or incomplete");const ht={id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$5.toHex)(ct.dataHash),data:lt};return this.codesCache.set(b,ht),ht}async getContracts(b){const dt=[];let ct;do{const{contracts:lt,pagination:ht}=await this.forceGetQueryClient().wasm.listContractsByCodeId(b,ct);dt.push(...lt),ct=ht==null?void 0:ht.nextKey}while((ct==null?void 0:ct.length)!==0&&ct!==void 0);return dt}async getContractsByCreator(b){const dt=[];let ct;do{const{contractAddresses:lt,pagination:ht}=await this.forceGetQueryClient().wasm.listContractsByCreator(b,ct);dt.push(...lt),ct=ht==null?void 0:ht.nextKey}while((ct==null?void 0:ct.length)!==0&&ct!==void 0);return dt}async getContract(b){const{address:dt,contractInfo:ct}=await this.forceGetQueryClient().wasm.getContractInfo(b);if(!ct)throw new Error(`No contract found at address "${b}"`);return(0,utils_1$4.assert)(dt,"address missing"),(0,utils_1$4.assert)(ct.codeId&&ct.creator&&ct.label,"contractInfo incomplete"),{address:dt,codeId:ct.codeId.toNumber(),creator:ct.creator,admin:ct.admin||void 0,label:ct.label,ibcPortId:ct.ibcPortId||void 0}}async getContractCodeHistory(b){const dt=await this.forceGetQueryClient().wasm.getContractCodeHistory(b);if(!dt)throw new Error(`No contract history found for address "${b}"`);const ct={[types_1$1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT]:"Init",[types_1$1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS]:"Genesis",[types_1$1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE]:"Migrate"};return(dt.entries||[]).map(lt=>((0,utils_1$4.assert)(lt.operation&<.codeId&<.msg),{operation:ct[lt.operation],codeId:lt.codeId.toNumber(),msg:JSON.parse((0,encoding_1$5.fromUtf8)(lt.msg))}))}async queryContractRaw(b,dt){await this.getContract(b);const{data:ct}=await this.forceGetQueryClient().wasm.queryContractRaw(b,dt);return ct??null}async queryContractSmart(b,dt){try{return await this.forceGetQueryClient().wasm.queryContractSmart(b,dt)}catch(ct){throw ct instanceof Error&&ct.message.startsWith("not found: contract")?new Error(`No contract found at address "${b}"`):ct}}async txsQuery(b){return(await this.forceGetTmClient().txSearchAll({query:b})).txs.map(ct=>{const lt=abci_1.TxMsgData.decode(ct.result.data??new Uint8Array);return{height:ct.height,txIndex:ct.index,hash:(0,encoding_1$5.toHex)(ct.hash).toUpperCase(),code:ct.result.code,events:ct.result.events.map(stargate_1$8.fromTendermintEvent),rawLog:ct.result.log||"",tx:ct.tx,msgResponses:lt.msgResponses,gasUsed:ct.result.gasUsed,gasWanted:ct.result.gasWanted}})}}cosmwasmclient.CosmWasmClient=CosmWasmClient;var encoding={};Object.defineProperty(encoding,"__esModule",{value:!0});encoding.fromBinary=encoding.toBinary=void 0;const encoding_1$4=build$g;function toBinary(d){return(0,encoding_1$4.toBase64)((0,encoding_1$4.toUtf8)(JSON.stringify(d)))}encoding.toBinary=toBinary;function fromBinary(d){return JSON.parse((0,encoding_1$4.fromUtf8)((0,encoding_1$4.fromBase64)(d)))}encoding.fromBinary=fromBinary;var instantiate2={};Object.defineProperty(instantiate2,"__esModule",{value:!0});instantiate2.instantiate2Address=instantiate2._instantiate2AddressIntermediate=void 0;const crypto_1$6=build$b,encoding_1$3=build$g,math_1$3=build$f,utils_1$3=build$9;function hash(d,b){return new crypto_1$6.Sha256((0,crypto_1$6.sha256)((0,encoding_1$3.toAscii)(d))).update(b).digest()}function toUint64(d){return math_1$3.Uint64.fromNumber(d).toBytesBigEndian()}function _instantiate2AddressIntermediate(d,b,dt,ct,lt){(0,utils_1$3.assert)(d.length===32);const ht=(0,encoding_1$3.fromBech32)(b).data,mt=typeof ct=="string"?(0,encoding_1$3.toUtf8)(ct):new Uint8Array;if(dt.length<1||dt.length>64)throw new Error("Salt must be between 1 and 64 bytes");const vt=new Uint8Array([...(0,encoding_1$3.toAscii)("wasm"),0,...toUint64(d.length),...d,...toUint64(ht.length),...ht,...toUint64(dt.length),...dt,...toUint64(mt.length),...mt]),kt=hash("module",vt),Pt=(0,encoding_1$3.toBech32)(lt,kt);return{key:vt,addressData:kt,address:Pt}}instantiate2._instantiate2AddressIntermediate=_instantiate2AddressIntermediate;function instantiate2Address(d,b,dt,ct){return _instantiate2AddressIntermediate(d,b,dt,null,ct).address}instantiate2.instantiate2Address=instantiate2Address;var signingcosmwasmclient={},pako={},deflate$4={},deflate$3={},trees={};const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(d){let b=d.length;for(;--b>=0;)d[b]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(d,b,dt,ct,lt){this.static_tree=d,this.extra_bits=b,this.extra_base=dt,this.elems=ct,this.max_length=lt,this.has_stree=d&&d.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(d,b){this.dyn_tree=d,this.max_code=0,this.stat_desc=b}const d_code=d=>d<256?_dist_code[d]:_dist_code[256+(d>>>7)],put_short=(d,b)=>{d.pending_buf[d.pending++]=b&255,d.pending_buf[d.pending++]=b>>>8&255},send_bits=(d,b,dt)=>{d.bi_valid>Buf_size-dt?(d.bi_buf|=b<>Buf_size-d.bi_valid,d.bi_valid+=dt-Buf_size):(d.bi_buf|=b<{send_bits(d,dt[b*2],dt[b*2+1])},bi_reverse=(d,b)=>{let dt=0;do dt|=d&1,d>>>=1,dt<<=1;while(--b>0);return dt>>>1},bi_flush=d=>{d.bi_valid===16?(put_short(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):d.bi_valid>=8&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)},gen_bitlen=(d,b)=>{const dt=b.dyn_tree,ct=b.max_code,lt=b.stat_desc.static_tree,ht=b.stat_desc.has_stree,mt=b.stat_desc.extra_bits,vt=b.stat_desc.extra_base,kt=b.stat_desc.max_length;let Pt,Jt,Zt,Rt,nn,Qt,wt=0;for(Rt=0;Rt<=MAX_BITS$1;Rt++)d.bl_count[Rt]=0;for(dt[d.heap[d.heap_max]*2+1]=0,Pt=d.heap_max+1;Ptkt&&(Rt=kt,wt++),dt[Jt*2+1]=Rt,!(Jt>ct)&&(d.bl_count[Rt]++,nn=0,Jt>=vt&&(nn=mt[Jt-vt]),Qt=dt[Jt*2],d.opt_len+=Qt*(Rt+nn),ht&&(d.static_len+=Qt*(lt[Jt*2+1]+nn)));if(wt!==0){do{for(Rt=kt-1;d.bl_count[Rt]===0;)Rt--;d.bl_count[Rt]--,d.bl_count[Rt+1]+=2,d.bl_count[kt]--,wt-=2}while(wt>0);for(Rt=kt;Rt!==0;Rt--)for(Jt=d.bl_count[Rt];Jt!==0;)Zt=d.heap[--Pt],!(Zt>ct)&&(dt[Zt*2+1]!==Rt&&(d.opt_len+=(Rt-dt[Zt*2+1])*dt[Zt*2],dt[Zt*2+1]=Rt),Jt--)}},gen_codes=(d,b,dt)=>{const ct=new Array(MAX_BITS$1+1);let lt=0,ht,mt;for(ht=1;ht<=MAX_BITS$1;ht++)lt=lt+dt[ht-1]<<1,ct[ht]=lt;for(mt=0;mt<=b;mt++){let vt=d[mt*2+1];vt!==0&&(d[mt*2]=bi_reverse(ct[vt]++,vt))}},tr_static_init=()=>{let d,b,dt,ct,lt;const ht=new Array(MAX_BITS$1+1);for(dt=0,ct=0;ct>=7;ct{let b;for(b=0;b{d.bi_valid>8?put_short(d,d.bi_buf):d.bi_valid>0&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0},smaller=(d,b,dt,ct)=>{const lt=b*2,ht=dt*2;return d[lt]{const ct=d.heap[dt];let lt=dt<<1;for(;lt<=d.heap_len&&(lt{let ct,lt,ht=0,mt,vt;if(d.sym_next!==0)do ct=d.pending_buf[d.sym_buf+ht++]&255,ct+=(d.pending_buf[d.sym_buf+ht++]&255)<<8,lt=d.pending_buf[d.sym_buf+ht++],ct===0?send_code(d,lt,b):(mt=_length_code[lt],send_code(d,mt+LITERALS$1+1,b),vt=extra_lbits[mt],vt!==0&&(lt-=base_length[mt],send_bits(d,lt,vt)),ct--,mt=d_code(ct),send_code(d,mt,dt),vt=extra_dbits[mt],vt!==0&&(ct-=base_dist[mt],send_bits(d,ct,vt)));while(ht{const dt=b.dyn_tree,ct=b.stat_desc.static_tree,lt=b.stat_desc.has_stree,ht=b.stat_desc.elems;let mt,vt,kt=-1,Pt;for(d.heap_len=0,d.heap_max=HEAP_SIZE$1,mt=0;mt>1;mt>=1;mt--)pqdownheap(d,dt,mt);Pt=ht;do mt=d.heap[1],d.heap[1]=d.heap[d.heap_len--],pqdownheap(d,dt,1),vt=d.heap[1],d.heap[--d.heap_max]=mt,d.heap[--d.heap_max]=vt,dt[Pt*2]=dt[mt*2]+dt[vt*2],d.depth[Pt]=(d.depth[mt]>=d.depth[vt]?d.depth[mt]:d.depth[vt])+1,dt[mt*2+1]=dt[vt*2+1]=Pt,d.heap[1]=Pt++,pqdownheap(d,dt,1);while(d.heap_len>=2);d.heap[--d.heap_max]=d.heap[1],gen_bitlen(d,b),gen_codes(dt,kt,d.bl_count)},scan_tree=(d,b,dt)=>{let ct,lt=-1,ht,mt=b[0*2+1],vt=0,kt=7,Pt=4;for(mt===0&&(kt=138,Pt=3),b[(dt+1)*2+1]=65535,ct=0;ct<=dt;ct++)ht=mt,mt=b[(ct+1)*2+1],!(++vt{let ct,lt=-1,ht,mt=b[0*2+1],vt=0,kt=7,Pt=4;for(mt===0&&(kt=138,Pt=3),ct=0;ct<=dt;ct++)if(ht=mt,mt=b[(ct+1)*2+1],!(++vt{let b;for(scan_tree(d,d.dyn_ltree,d.l_desc.max_code),scan_tree(d,d.dyn_dtree,d.d_desc.max_code),build_tree(d,d.bl_desc),b=BL_CODES$1-1;b>=3&&d.bl_tree[bl_order[b]*2+1]===0;b--);return d.opt_len+=3*(b+1)+5+5+4,b},send_all_trees=(d,b,dt,ct)=>{let lt;for(send_bits(d,b-257,5),send_bits(d,dt-1,5),send_bits(d,ct-4,4),lt=0;lt{let b=4093624447,dt;for(dt=0;dt<=31;dt++,b>>>=1)if(b&1&&d.dyn_ltree[dt*2]!==0)return Z_BINARY;if(d.dyn_ltree[9*2]!==0||d.dyn_ltree[10*2]!==0||d.dyn_ltree[13*2]!==0)return Z_TEXT;for(dt=32;dt{static_init_done||(tr_static_init(),static_init_done=!0),d.l_desc=new TreeDesc(d.dyn_ltree,static_l_desc),d.d_desc=new TreeDesc(d.dyn_dtree,static_d_desc),d.bl_desc=new TreeDesc(d.bl_tree,static_bl_desc),d.bi_buf=0,d.bi_valid=0,init_block(d)},_tr_stored_block$1=(d,b,dt,ct)=>{send_bits(d,(STORED_BLOCK<<1)+(ct?1:0),3),bi_windup(d),put_short(d,dt),put_short(d,~dt),dt&&d.pending_buf.set(d.window.subarray(b,b+dt),d.pending),d.pending+=dt},_tr_align$1=d=>{send_bits(d,STATIC_TREES<<1,3),send_code(d,END_BLOCK,static_ltree),bi_flush(d)},_tr_flush_block$1=(d,b,dt,ct)=>{let lt,ht,mt=0;d.level>0?(d.strm.data_type===Z_UNKNOWN$1&&(d.strm.data_type=detect_data_type(d)),build_tree(d,d.l_desc),build_tree(d,d.d_desc),mt=build_bl_tree(d),lt=d.opt_len+3+7>>>3,ht=d.static_len+3+7>>>3,ht<=lt&&(lt=ht)):lt=ht=dt+5,dt+4<=lt&&b!==-1?_tr_stored_block$1(d,b,dt,ct):d.strategy===Z_FIXED$1||ht===lt?(send_bits(d,(STATIC_TREES<<1)+(ct?1:0),3),compress_block(d,static_ltree,static_dtree)):(send_bits(d,(DYN_TREES<<1)+(ct?1:0),3),send_all_trees(d,d.l_desc.max_code+1,d.d_desc.max_code+1,mt+1),compress_block(d,d.dyn_ltree,d.dyn_dtree)),init_block(d),ct&&bi_windup(d)},_tr_tally$1=(d,b,dt)=>(d.pending_buf[d.sym_buf+d.sym_next++]=b,d.pending_buf[d.sym_buf+d.sym_next++]=b>>8,d.pending_buf[d.sym_buf+d.sym_next++]=dt,b===0?d.dyn_ltree[dt*2]++:(d.matches++,b--,d.dyn_ltree[(_length_code[dt]+LITERALS$1+1)*2]++,d.dyn_dtree[d_code(b)*2]++),d.sym_next===d.sym_end);trees._tr_init=_tr_init$1;trees._tr_stored_block=_tr_stored_block$1;trees._tr_flush_block=_tr_flush_block$1;trees._tr_tally=_tr_tally$1;trees._tr_align=_tr_align$1;const adler32$2=(d,b,dt,ct)=>{let lt=d&65535|0,ht=d>>>16&65535|0,mt=0;for(;dt!==0;){mt=dt>2e3?2e3:dt,dt-=mt;do lt=lt+b[ct++]|0,ht=ht+lt|0;while(--mt);lt%=65521,ht%=65521}return lt|ht<<16|0};var adler32_1=adler32$2;const makeTable=()=>{let d,b=[];for(var dt=0;dt<256;dt++){d=dt;for(var ct=0;ct<8;ct++)d=d&1?3988292384^d>>>1:d>>>1;b[dt]=d}return b},crcTable=new Uint32Array(makeTable()),crc32$2=(d,b,dt,ct)=>{const lt=crcTable,ht=ct+dt;d^=-1;for(let mt=ct;mt>>8^lt[(d^b[mt])&255];return d^-1};var crc32_1=crc32$2,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$1={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,adler32$1=adler32_1,crc32$1=crc32_1,msg$2=messages,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$1,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(d,b)=>(d.msg=msg$2[b],b),rank$1=d=>d*2-(d>4?9:0),zero=d=>{let b=d.length;for(;--b>=0;)d[b]=0},slide_hash=d=>{let b,dt,ct,lt=d.w_size;b=d.hash_size,ct=b;do dt=d.head[--ct],d.head[ct]=dt>=lt?dt-lt:0;while(--b);b=lt,ct=b;do dt=d.prev[--ct],d.prev[ct]=dt>=lt?dt-lt:0;while(--b)};let HASH_ZLIB=(d,b,dt)=>(b<{const b=d.state;let dt=b.pending;dt>d.avail_out&&(dt=d.avail_out),dt!==0&&(d.output.set(b.pending_buf.subarray(b.pending_out,b.pending_out+dt),d.next_out),d.next_out+=dt,b.pending_out+=dt,d.total_out+=dt,d.avail_out-=dt,b.pending-=dt,b.pending===0&&(b.pending_out=0))},flush_block_only=(d,b)=>{_tr_flush_block(d,d.block_start>=0?d.block_start:-1,d.strstart-d.block_start,b),d.block_start=d.strstart,flush_pending(d.strm)},put_byte=(d,b)=>{d.pending_buf[d.pending++]=b},putShortMSB=(d,b)=>{d.pending_buf[d.pending++]=b>>>8&255,d.pending_buf[d.pending++]=b&255},read_buf=(d,b,dt,ct)=>{let lt=d.avail_in;return lt>ct&&(lt=ct),lt===0?0:(d.avail_in-=lt,b.set(d.input.subarray(d.next_in,d.next_in+lt),dt),d.state.wrap===1?d.adler=adler32$1(d.adler,b,lt,dt):d.state.wrap===2&&(d.adler=crc32$1(d.adler,b,lt,dt)),d.next_in+=lt,d.total_in+=lt,lt)},longest_match=(d,b)=>{let dt=d.max_chain_length,ct=d.strstart,lt,ht,mt=d.prev_length,vt=d.nice_match;const kt=d.strstart>d.w_size-MIN_LOOKAHEAD?d.strstart-(d.w_size-MIN_LOOKAHEAD):0,Pt=d.window,Jt=d.w_mask,Zt=d.prev,Rt=d.strstart+MAX_MATCH;let nn=Pt[ct+mt-1],Qt=Pt[ct+mt];d.prev_length>=d.good_match&&(dt>>=2),vt>d.lookahead&&(vt=d.lookahead);do if(lt=b,!(Pt[lt+mt]!==Qt||Pt[lt+mt-1]!==nn||Pt[lt]!==Pt[ct]||Pt[++lt]!==Pt[ct+1])){ct+=2,lt++;do;while(Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&ctmt){if(d.match_start=b,mt=ht,ht>=vt)break;nn=Pt[ct+mt-1],Qt=Pt[ct+mt]}}while((b=Zt[b&Jt])>kt&&--dt!==0);return mt<=d.lookahead?mt:d.lookahead},fill_window=d=>{const b=d.w_size;let dt,ct,lt;do{if(ct=d.window_size-d.lookahead-d.strstart,d.strstart>=b+(b-MIN_LOOKAHEAD)&&(d.window.set(d.window.subarray(b,b+b-ct),0),d.match_start-=b,d.strstart-=b,d.block_start-=b,d.insert>d.strstart&&(d.insert=d.strstart),slide_hash(d),ct+=b),d.strm.avail_in===0)break;if(dt=read_buf(d.strm,d.window,d.strstart+d.lookahead,ct),d.lookahead+=dt,d.lookahead+d.insert>=MIN_MATCH)for(lt=d.strstart-d.insert,d.ins_h=d.window[lt],d.ins_h=HASH(d,d.ins_h,d.window[lt+1]);d.insert&&(d.ins_h=HASH(d,d.ins_h,d.window[lt+MIN_MATCH-1]),d.prev[lt&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=lt,lt++,d.insert--,!(d.lookahead+d.insert{let dt=d.pending_buf_size-5>d.w_size?d.w_size:d.pending_buf_size-5,ct,lt,ht,mt=0,vt=d.strm.avail_in;do{if(ct=65535,ht=d.bi_valid+42>>3,d.strm.avail_outlt+d.strm.avail_in&&(ct=lt+d.strm.avail_in),ct>ht&&(ct=ht),ct>8,d.pending_buf[d.pending-2]=~ct,d.pending_buf[d.pending-1]=~ct>>8,flush_pending(d.strm),lt&&(lt>ct&&(lt=ct),d.strm.output.set(d.window.subarray(d.block_start,d.block_start+lt),d.strm.next_out),d.strm.next_out+=lt,d.strm.avail_out-=lt,d.strm.total_out+=lt,d.block_start+=lt,ct-=lt),ct&&(read_buf(d.strm,d.strm.output,d.strm.next_out,ct),d.strm.next_out+=ct,d.strm.avail_out-=ct,d.strm.total_out+=ct)}while(mt===0);return vt-=d.strm.avail_in,vt&&(vt>=d.w_size?(d.matches=2,d.window.set(d.strm.input.subarray(d.strm.next_in-d.w_size,d.strm.next_in),0),d.strstart=d.w_size,d.insert=d.strstart):(d.window_size-d.strstart<=vt&&(d.strstart-=d.w_size,d.window.set(d.window.subarray(d.w_size,d.w_size+d.strstart),0),d.matches<2&&d.matches++,d.insert>d.strstart&&(d.insert=d.strstart)),d.window.set(d.strm.input.subarray(d.strm.next_in-vt,d.strm.next_in),d.strstart),d.strstart+=vt,d.insert+=vt>d.w_size-d.insert?d.w_size-d.insert:vt),d.block_start=d.strstart),d.high_waterht&&d.block_start>=d.w_size&&(d.block_start-=d.w_size,d.strstart-=d.w_size,d.window.set(d.window.subarray(d.w_size,d.w_size+d.strstart),0),d.matches<2&&d.matches++,ht+=d.w_size,d.insert>d.strstart&&(d.insert=d.strstart)),ht>d.strm.avail_in&&(ht=d.strm.avail_in),ht&&(read_buf(d.strm,d.window,d.strstart,ht),d.strstart+=ht,d.insert+=ht>d.w_size-d.insert?d.w_size-d.insert:ht),d.high_water>3,ht=d.pending_buf_size-ht>65535?65535:d.pending_buf_size-ht,dt=ht>d.w_size?d.w_size:ht,lt=d.strstart-d.block_start,(lt>=dt||(lt||b===Z_FINISH$3)&&b!==Z_NO_FLUSH$2&&d.strm.avail_in===0&<<=ht)&&(ct=lt>ht?ht:lt,mt=b===Z_FINISH$3&&d.strm.avail_in===0&&ct===lt?1:0,_tr_stored_block(d,d.block_start,ct,mt),d.block_start+=ct,flush_pending(d.strm)),mt?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(d,b)=>{let dt,ct;for(;;){if(d.lookahead=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),dt!==0&&d.strstart-dt<=d.w_size-MIN_LOOKAHEAD&&(d.match_length=longest_match(d,dt)),d.match_length>=MIN_MATCH)if(ct=_tr_tally(d,d.strstart-d.match_start,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=MIN_MATCH){d.match_length--;do d.strstart++,d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart;while(--d.match_length!==0);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+1]);else ct=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(ct&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=d.strstart{let dt,ct,lt;for(;;){if(d.lookahead=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=MIN_MATCH-1,dt!==0&&d.prev_length4096)&&(d.match_length=MIN_MATCH-1)),d.prev_length>=MIN_MATCH&&d.match_length<=d.prev_length){lt=d.strstart+d.lookahead-MIN_MATCH,ct=_tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-MIN_MATCH),d.lookahead-=d.prev_length-1,d.prev_length-=2;do++d.strstart<=lt&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);while(--d.prev_length!==0);if(d.match_available=0,d.match_length=MIN_MATCH-1,d.strstart++,ct&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}else if(d.match_available){if(ct=_tr_tally(d,0,d.window[d.strstart-1]),ct&&flush_block_only(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return BS_NEED_MORE}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(ct=_tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart{let dt,ct,lt,ht;const mt=d.window;for(;;){if(d.lookahead<=MAX_MATCH){if(fill_window(d),d.lookahead<=MAX_MATCH&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(d.match_length=0,d.lookahead>=MIN_MATCH&&d.strstart>0&&(lt=d.strstart-1,ct=mt[lt],ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt])){ht=d.strstart+MAX_MATCH;do;while(ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&<d.lookahead&&(d.match_length=d.lookahead)}if(d.match_length>=MIN_MATCH?(dt=_tr_tally(d,1,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.strstart+=d.match_length,d.match_length=0):(dt=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++),dt&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.sym_next&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(d,b)=>{let dt;for(;;){if(d.lookahead===0&&(fill_window(d),d.lookahead===0)){if(b===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(d.match_length=0,dt=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++,dt&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.sym_next&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(d,b,dt,ct,lt){this.good_length=d,this.max_lazy=b,this.nice_length=dt,this.max_chain=ct,this.func=lt}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=d=>{d.window_size=2*d.w_size,zero(d.head),d.max_lazy_match=configuration_table[d.level].max_lazy,d.good_match=configuration_table[d.level].good_length,d.nice_match=configuration_table[d.level].nice_length,d.max_chain_length=configuration_table[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=MIN_MATCH-1,d.match_available=0,d.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=d=>{if(!d)return 1;const b=d.state;return!b||b.strm!==d||b.status!==INIT_STATE&&b.status!==GZIP_STATE&&b.status!==EXTRA_STATE&&b.status!==NAME_STATE&&b.status!==COMMENT_STATE&&b.status!==HCRC_STATE&&b.status!==BUSY_STATE&&b.status!==FINISH_STATE?1:0},deflateResetKeep=d=>{if(deflateStateCheck(d))return err(d,Z_STREAM_ERROR$2);d.total_in=d.total_out=0,d.data_type=Z_UNKNOWN;const b=d.state;return b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap===2?GZIP_STATE:b.wrap?INIT_STATE:BUSY_STATE,d.adler=b.wrap===2?0:1,b.last_flush=-2,_tr_init(b),Z_OK$3},deflateReset=d=>{const b=deflateResetKeep(d);return b===Z_OK$3&&lm_init(d.state),b},deflateSetHeader=(d,b)=>deflateStateCheck(d)||d.state.wrap!==2?Z_STREAM_ERROR$2:(d.state.gzhead=b,Z_OK$3),deflateInit2=(d,b,dt,ct,lt,ht)=>{if(!d)return Z_STREAM_ERROR$2;let mt=1;if(b===Z_DEFAULT_COMPRESSION$1&&(b=6),ct<0?(mt=0,ct=-ct):ct>15&&(mt=2,ct-=16),lt<1||lt>MAX_MEM_LEVEL||dt!==Z_DEFLATED$2||ct<8||ct>15||b<0||b>9||ht<0||ht>Z_FIXED||ct===8&&mt!==1)return err(d,Z_STREAM_ERROR$2);ct===8&&(ct=9);const vt=new DeflateState;return d.state=vt,vt.strm=d,vt.status=INIT_STATE,vt.wrap=mt,vt.gzhead=null,vt.w_bits=ct,vt.w_size=1<deflateInit2(d,b,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(d,b)=>{if(deflateStateCheck(d)||b>Z_BLOCK$1||b<0)return d?err(d,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const dt=d.state;if(!d.output||d.avail_in!==0&&!d.input||dt.status===FINISH_STATE&&b!==Z_FINISH$3)return err(d,d.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const ct=dt.last_flush;if(dt.last_flush=b,dt.pending!==0){if(flush_pending(d),d.avail_out===0)return dt.last_flush=-1,Z_OK$3}else if(d.avail_in===0&&rank$1(b)<=rank$1(ct)&&b!==Z_FINISH$3)return err(d,Z_BUF_ERROR$1);if(dt.status===FINISH_STATE&&d.avail_in!==0)return err(d,Z_BUF_ERROR$1);if(dt.status===INIT_STATE&&dt.wrap===0&&(dt.status=BUSY_STATE),dt.status===INIT_STATE){let lt=Z_DEFLATED$2+(dt.w_bits-8<<4)<<8,ht=-1;if(dt.strategy>=Z_HUFFMAN_ONLY||dt.level<2?ht=0:dt.level<6?ht=1:dt.level===6?ht=2:ht=3,lt|=ht<<6,dt.strstart!==0&&(lt|=PRESET_DICT),lt+=31-lt%31,putShortMSB(dt,lt),dt.strstart!==0&&(putShortMSB(dt,d.adler>>>16),putShortMSB(dt,d.adler&65535)),d.adler=1,dt.status=BUSY_STATE,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3}if(dt.status===GZIP_STATE){if(d.adler=0,put_byte(dt,31),put_byte(dt,139),put_byte(dt,8),dt.gzhead)put_byte(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),put_byte(dt,dt.gzhead.time&255),put_byte(dt,dt.gzhead.time>>8&255),put_byte(dt,dt.gzhead.time>>16&255),put_byte(dt,dt.gzhead.time>>24&255),put_byte(dt,dt.level===9?2:dt.strategy>=Z_HUFFMAN_ONLY||dt.level<2?4:0),put_byte(dt,dt.gzhead.os&255),dt.gzhead.extra&&dt.gzhead.extra.length&&(put_byte(dt,dt.gzhead.extra.length&255),put_byte(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=EXTRA_STATE;else if(put_byte(dt,0),put_byte(dt,0),put_byte(dt,0),put_byte(dt,0),put_byte(dt,0),put_byte(dt,dt.level===9?2:dt.strategy>=Z_HUFFMAN_ONLY||dt.level<2?4:0),put_byte(dt,OS_CODE),dt.status=BUSY_STATE,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3}if(dt.status===EXTRA_STATE){if(dt.gzhead.extra){let lt=dt.pending,ht=(dt.gzhead.extra.length&65535)-dt.gzindex;for(;dt.pending+ht>dt.pending_buf_size;){let vt=dt.pending_buf_size-dt.pending;if(dt.pending_buf.set(dt.gzhead.extra.subarray(dt.gzindex,dt.gzindex+vt),dt.pending),dt.pending=dt.pending_buf_size,dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),dt.gzindex+=vt,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3;lt=0,ht-=vt}let mt=new Uint8Array(dt.gzhead.extra);dt.pending_buf.set(mt.subarray(dt.gzindex,dt.gzindex+ht),dt.pending),dt.pending+=ht,dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),dt.gzindex=0}dt.status=NAME_STATE}if(dt.status===NAME_STATE){if(dt.gzhead.name){let lt=dt.pending,ht;do{if(dt.pending===dt.pending_buf_size){if(dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3;lt=0}dt.gzindexlt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),dt.gzindex=0}dt.status=COMMENT_STATE}if(dt.status===COMMENT_STATE){if(dt.gzhead.comment){let lt=dt.pending,ht;do{if(dt.pending===dt.pending_buf_size){if(dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3;lt=0}dt.gzindexlt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt))}dt.status=HCRC_STATE}if(dt.status===HCRC_STATE){if(dt.gzhead.hcrc){if(dt.pending+2>dt.pending_buf_size&&(flush_pending(d),dt.pending!==0))return dt.last_flush=-1,Z_OK$3;put_byte(dt,d.adler&255),put_byte(dt,d.adler>>8&255),d.adler=0}if(dt.status=BUSY_STATE,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3}if(d.avail_in!==0||dt.lookahead!==0||b!==Z_NO_FLUSH$2&&dt.status!==FINISH_STATE){let lt=dt.level===0?deflate_stored(dt,b):dt.strategy===Z_HUFFMAN_ONLY?deflate_huff(dt,b):dt.strategy===Z_RLE?deflate_rle(dt,b):configuration_table[dt.level].func(dt,b);if((lt===BS_FINISH_STARTED||lt===BS_FINISH_DONE)&&(dt.status=FINISH_STATE),lt===BS_NEED_MORE||lt===BS_FINISH_STARTED)return d.avail_out===0&&(dt.last_flush=-1),Z_OK$3;if(lt===BS_BLOCK_DONE&&(b===Z_PARTIAL_FLUSH?_tr_align(dt):b!==Z_BLOCK$1&&(_tr_stored_block(dt,0,0,!1),b===Z_FULL_FLUSH$1&&(zero(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),flush_pending(d),d.avail_out===0))return dt.last_flush=-1,Z_OK$3}return b!==Z_FINISH$3?Z_OK$3:dt.wrap<=0?Z_STREAM_END$3:(dt.wrap===2?(put_byte(dt,d.adler&255),put_byte(dt,d.adler>>8&255),put_byte(dt,d.adler>>16&255),put_byte(dt,d.adler>>24&255),put_byte(dt,d.total_in&255),put_byte(dt,d.total_in>>8&255),put_byte(dt,d.total_in>>16&255),put_byte(dt,d.total_in>>24&255)):(putShortMSB(dt,d.adler>>>16),putShortMSB(dt,d.adler&65535)),flush_pending(d),dt.wrap>0&&(dt.wrap=-dt.wrap),dt.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=d=>{if(deflateStateCheck(d))return Z_STREAM_ERROR$2;const b=d.state.status;return d.state=null,b===BUSY_STATE?err(d,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(d,b)=>{let dt=b.length;if(deflateStateCheck(d))return Z_STREAM_ERROR$2;const ct=d.state,lt=ct.wrap;if(lt===2||lt===1&&ct.status!==INIT_STATE||ct.lookahead)return Z_STREAM_ERROR$2;if(lt===1&&(d.adler=adler32$1(d.adler,b,dt,0)),ct.wrap=0,dt>=ct.w_size){lt===0&&(zero(ct.head),ct.strstart=0,ct.block_start=0,ct.insert=0);let kt=new Uint8Array(ct.w_size);kt.set(b.subarray(dt-ct.w_size,dt),0),b=kt,dt=ct.w_size}const ht=d.avail_in,mt=d.next_in,vt=d.input;for(d.avail_in=dt,d.next_in=0,d.input=b,fill_window(ct);ct.lookahead>=MIN_MATCH;){let kt=ct.strstart,Pt=ct.lookahead-(MIN_MATCH-1);do ct.ins_h=HASH(ct,ct.ins_h,ct.window[kt+MIN_MATCH-1]),ct.prev[kt&ct.w_mask]=ct.head[ct.ins_h],ct.head[ct.ins_h]=kt,kt++;while(--Pt);ct.strstart=kt,ct.lookahead=MIN_MATCH-1,fill_window(ct)}return ct.strstart+=ct.lookahead,ct.block_start=ct.strstart,ct.insert=ct.lookahead,ct.lookahead=0,ct.match_length=ct.prev_length=MIN_MATCH-1,ct.match_available=0,d.next_in=mt,d.input=vt,d.avail_in=ht,ct.wrap=lt,Z_OK$3};deflate$3.deflateInit=deflateInit;deflate$3.deflateInit2=deflateInit2;deflate$3.deflateReset=deflateReset;deflate$3.deflateResetKeep=deflateResetKeep;deflate$3.deflateSetHeader=deflateSetHeader;deflate$3.deflate=deflate$2;deflate$3.deflateEnd=deflateEnd;deflate$3.deflateSetDictionary=deflateSetDictionary;deflate$3.deflateInfo="pako deflate (from Nodeca project)";var common={};const _has=(d,b)=>Object.prototype.hasOwnProperty.call(d,b);common.assign=function(d){const b=Array.prototype.slice.call(arguments,1);for(;b.length;){const dt=b.shift();if(dt){if(typeof dt!="object")throw new TypeError(dt+"must be non-object");for(const ct in dt)_has(dt,ct)&&(d[ct]=dt[ct])}}return d};common.flattenChunks=d=>{let b=0;for(let ct=0,lt=d.length;ct=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;_utf8len[254]=_utf8len[254]=1;strings$3.string2buf=d=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(d);let b,dt,ct,lt,ht,mt=d.length,vt=0;for(lt=0;lt>>6,b[ht++]=128|dt&63):dt<65536?(b[ht++]=224|dt>>>12,b[ht++]=128|dt>>>6&63,b[ht++]=128|dt&63):(b[ht++]=240|dt>>>18,b[ht++]=128|dt>>>12&63,b[ht++]=128|dt>>>6&63,b[ht++]=128|dt&63);return b};const buf2binstring=(d,b)=>{if(b<65534&&d.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,d.length===b?d:d.subarray(0,b));let dt="";for(let ct=0;ct{const dt=b||d.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(d.subarray(0,b));let ct,lt;const ht=new Array(dt*2);for(lt=0,ct=0;ct4){ht[lt++]=65533,ct+=vt-1;continue}for(mt&=vt===2?31:vt===3?15:7;vt>1&&ct1){ht[lt++]=65533;continue}mt<65536?ht[lt++]=mt:(mt-=65536,ht[lt++]=55296|mt>>10&1023,ht[lt++]=56320|mt&1023)}return buf2binstring(ht,lt)};strings$3.utf8border=(d,b)=>{b=b||d.length,b>d.length&&(b=d.length);let dt=b-1;for(;dt>=0&&(d[dt]&192)===128;)dt--;return dt<0||dt===0?b:dt+_utf8len[d[dt]]>b?dt:b};function ZStream$2(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream$2;const zlib_deflate=deflate$3,utils$3=common,strings$2=strings$3,msg$1=messages,ZStream$1=zstream,toString$2=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$1;function Deflate$1(d){this.options=utils$3.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},d||{});let b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream$1,this.strm.avail_out=0;let dt=zlib_deflate.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(dt!==Z_OK$2)throw new Error(msg$1[dt]);if(b.header&&zlib_deflate.deflateSetHeader(this.strm,b.header),b.dictionary){let ct;if(typeof b.dictionary=="string"?ct=strings$2.string2buf(b.dictionary):toString$2.call(b.dictionary)==="[object ArrayBuffer]"?ct=new Uint8Array(b.dictionary):ct=b.dictionary,dt=zlib_deflate.deflateSetDictionary(this.strm,ct),dt!==Z_OK$2)throw new Error(msg$1[dt]);this._dict_set=!0}}Deflate$1.prototype.push=function(d,b){const dt=this.strm,ct=this.options.chunkSize;let lt,ht;if(this.ended)return!1;for(b===~~b?ht=b:ht=b===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof d=="string"?dt.input=strings$2.string2buf(d):toString$2.call(d)==="[object ArrayBuffer]"?dt.input=new Uint8Array(d):dt.input=d,dt.next_in=0,dt.avail_in=dt.input.length;;){if(dt.avail_out===0&&(dt.output=new Uint8Array(ct),dt.next_out=0,dt.avail_out=ct),(ht===Z_SYNC_FLUSH||ht===Z_FULL_FLUSH)&&dt.avail_out<=6){this.onData(dt.output.subarray(0,dt.next_out)),dt.avail_out=0;continue}if(lt=zlib_deflate.deflate(dt,ht),lt===Z_STREAM_END$2)return dt.next_out>0&&this.onData(dt.output.subarray(0,dt.next_out)),lt=zlib_deflate.deflateEnd(this.strm),this.onEnd(lt),this.ended=!0,lt===Z_OK$2;if(dt.avail_out===0){this.onData(dt.output);continue}if(ht>0&&dt.next_out>0){this.onData(dt.output.subarray(0,dt.next_out)),dt.avail_out=0;continue}if(dt.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(d){this.chunks.push(d)};Deflate$1.prototype.onEnd=function(d){d===Z_OK$2&&(this.result=utils$3.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function deflate$1(d,b){const dt=new Deflate$1(b);if(dt.push(d,!0),dt.err)throw dt.msg||msg$1[dt.err];return dt.result}function deflateRaw$1(d,b){return b=b||{},b.raw=!0,deflate$1(d,b)}function gzip$1(d,b){return b=b||{},b.gzip=!0,deflate$1(d,b)}deflate$4.Deflate=Deflate$1;deflate$4.deflate=deflate$1;deflate$4.deflateRaw=deflateRaw$1;deflate$4.gzip=gzip$1;deflate$4.constants=constants$1;var inflate$4={},inflate$3={};const BAD$1=16209,TYPE$1=16191;var inffast=function d(b,dt){let ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt,xt,Et,Bt,Tt,Mt,jt,Ht,an,yt,$t;const Yt=b.state;ct=b.next_in,yt=b.input,lt=ct+(b.avail_in-5),ht=b.next_out,$t=b.output,mt=ht-(dt-b.avail_out),vt=ht+(b.avail_out-257),kt=Yt.dmax,Pt=Yt.wsize,Jt=Yt.whave,Zt=Yt.wnext,Rt=Yt.window,nn=Yt.hold,Qt=Yt.bits,wt=Yt.lencode,Nt=Yt.distcode,xt=(1<>>24,nn>>>=Tt,Qt-=Tt,Tt=Bt>>>16&255,Tt===0)$t[ht++]=Bt&65535;else if(Tt&16){Mt=Bt&65535,Tt&=15,Tt&&(Qt>>=Tt,Qt-=Tt),Qt<15&&(nn+=yt[ct++]<>>24,nn>>>=Tt,Qt-=Tt,Tt=Bt>>>16&255,Tt&16){if(jt=Bt&65535,Tt&=15,Qtkt){b.msg="invalid distance too far back",Yt.mode=BAD$1;break e}if(nn>>>=Tt,Qt-=Tt,Tt=ht-mt,jt>Tt){if(Tt=jt-Tt,Tt>Jt&&Yt.sane){b.msg="invalid distance too far back",Yt.mode=BAD$1;break e}if(Ht=0,an=Rt,Zt===0){if(Ht+=Pt-Tt,Tt2;)$t[ht++]=an[Ht++],$t[ht++]=an[Ht++],$t[ht++]=an[Ht++],Mt-=3;Mt&&($t[ht++]=an[Ht++],Mt>1&&($t[ht++]=an[Ht++]))}else{Ht=ht-jt;do $t[ht++]=$t[Ht++],$t[ht++]=$t[Ht++],$t[ht++]=$t[Ht++],Mt-=3;while(Mt>2);Mt&&($t[ht++]=$t[Ht++],Mt>1&&($t[ht++]=$t[Ht++]))}}else if(Tt&64){b.msg="invalid distance code",Yt.mode=BAD$1;break e}else{Bt=Nt[(Bt&65535)+(nn&(1<>3,ct-=Mt,Qt-=Mt<<3,nn&=(1<{const kt=vt.bits;let Pt=0,Jt=0,Zt=0,Rt=0,nn=0,Qt=0,wt=0,Nt=0,xt=0,Et=0,Bt,Tt,Mt,jt,Ht,an=null,yt;const $t=new Uint16Array(MAXBITS+1),Yt=new Uint16Array(MAXBITS+1);let Kt=null,St,It,Gt;for(Pt=0;Pt<=MAXBITS;Pt++)$t[Pt]=0;for(Jt=0;Jt=1&&$t[Rt]===0;Rt--);if(nn>Rt&&(nn=Rt),Rt===0)return lt[ht++]=1<<24|64<<16|0,lt[ht++]=1<<24|64<<16|0,vt.bits=1,0;for(Zt=1;Zt0&&(d===CODES$1||Rt!==1))return-1;for(Yt[1]=0,Pt=1;PtENOUGH_LENS$1||d===DISTS$1&&xt>ENOUGH_DISTS$1)return 1;for(;;){St=Pt-wt,mt[Jt]+1=yt?(It=Kt[mt[Jt]-yt],Gt=an[mt[Jt]-yt]):(It=32+64,Gt=0),Bt=1<>wt)+Tt]=St<<24|It<<16|Gt|0;while(Tt!==0);for(Bt=1<>=1;if(Bt!==0?(Et&=Bt-1,Et+=Bt):Et=0,Jt++,--$t[Pt]===0){if(Pt===Rt)break;Pt=b[dt+mt[Jt]]}if(Pt>nn&&(Et&jt)!==Mt){for(wt===0&&(wt=nn),Ht+=Zt,Qt=Pt-wt,Nt=1<ENOUGH_LENS$1||d===DISTS$1&&xt>ENOUGH_DISTS$1)return 1;Mt=Et&jt,lt[Mt]=nn<<24|Qt<<16|Ht-ht|0}}return Et!==0&&(lt[Ht+Et]=Pt-wt<<24|64<<16|0),vt.bits=nn,0};var inftrees=inflate_table$1;const adler32=adler32_1,crc32=crc32_1,inflate_fast=inffast,inflate_table=inftrees,CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$1,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE$1=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=d=>(d>>>24&255)+(d>>>8&65280)+((d&65280)<<8)+((d&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=d=>{if(!d)return 1;const b=d.state;return!b||b.strm!==d||b.modeSYNC?1:0},inflateResetKeep=d=>{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const b=d.state;return d.total_in=d.total_out=b.total=0,d.msg="",b.wrap&&(d.adler=b.wrap&1),b.mode=HEAD,b.last=0,b.havedict=0,b.flags=-1,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new Int32Array(ENOUGH_LENS),b.distcode=b.distdyn=new Int32Array(ENOUGH_DISTS),b.sane=1,b.back=-1,Z_OK$1},inflateReset=d=>{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const b=d.state;return b.wsize=0,b.whave=0,b.wnext=0,inflateResetKeep(d)},inflateReset2=(d,b)=>{let dt;if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const ct=d.state;return b<0?(dt=0,b=-b):(dt=(b>>4)+5,b<48&&(b&=15)),b&&(b<8||b>15)?Z_STREAM_ERROR$1:(ct.window!==null&&ct.wbits!==b&&(ct.window=null),ct.wrap=dt,ct.wbits=b,inflateReset(d))},inflateInit2=(d,b)=>{if(!d)return Z_STREAM_ERROR$1;const dt=new InflateState;d.state=dt,dt.strm=d,dt.window=null,dt.mode=HEAD;const ct=inflateReset2(d,b);return ct!==Z_OK$1&&(d.state=null),ct},inflateInit=d=>inflateInit2(d,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=d=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let b=0;for(;b<144;)d.lens[b++]=8;for(;b<256;)d.lens[b++]=9;for(;b<280;)d.lens[b++]=7;for(;b<288;)d.lens[b++]=8;for(inflate_table(LENS,d.lens,0,288,lenfix,0,d.work,{bits:9}),b=0;b<32;)d.lens[b++]=5;inflate_table(DISTS,d.lens,0,32,distfix,0,d.work,{bits:5}),virgin=!1}d.lencode=lenfix,d.lenbits=9,d.distcode=distfix,d.distbits=5},updatewindow=(d,b,dt,ct)=>{let lt;const ht=d.state;return ht.window===null&&(ht.wsize=1<=ht.wsize?(ht.window.set(b.subarray(dt-ht.wsize,dt),0),ht.wnext=0,ht.whave=ht.wsize):(lt=ht.wsize-ht.wnext,lt>ct&&(lt=ct),ht.window.set(b.subarray(dt-ct,dt-ct+lt),ht.wnext),ct-=lt,ct?(ht.window.set(b.subarray(dt-ct,dt),0),ht.wnext=ct,ht.whave=ht.wsize):(ht.wnext+=lt,ht.wnext===ht.wsize&&(ht.wnext=0),ht.whave{let dt,ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt=0,xt,Et,Bt,Tt,Mt,jt,Ht,an;const yt=new Uint8Array(4);let $t,Yt;const Kt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(d)||!d.output||!d.input&&d.avail_in!==0)return Z_STREAM_ERROR$1;dt=d.state,dt.mode===TYPE&&(dt.mode=TYPEDO),mt=d.next_out,lt=d.output,kt=d.avail_out,ht=d.next_in,ct=d.input,vt=d.avail_in,Pt=dt.hold,Jt=dt.bits,Zt=vt,Rt=kt,an=Z_OK$1;e:for(;;)switch(dt.mode){case HEAD:if(dt.wrap===0){dt.mode=TYPEDO;break}for(;Jt<16;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>8&255,dt.check=crc32(dt.check,yt,2,0),Pt=0,Jt=0,dt.mode=FLAGS;break}if(dt.head&&(dt.head.done=!1),!(dt.wrap&1)||(((Pt&255)<<8)+(Pt>>8))%31){d.msg="incorrect header check",dt.mode=BAD;break}if((Pt&15)!==Z_DEFLATED){d.msg="unknown compression method",dt.mode=BAD;break}if(Pt>>>=4,Jt-=4,Ht=(Pt&15)+8,dt.wbits===0&&(dt.wbits=Ht),Ht>15||Ht>dt.wbits){d.msg="invalid window size",dt.mode=BAD;break}dt.dmax=1<>8&1),dt.flags&512&&dt.wrap&4&&(yt[0]=Pt&255,yt[1]=Pt>>>8&255,dt.check=crc32(dt.check,yt,2,0)),Pt=0,Jt=0,dt.mode=TIME;case TIME:for(;Jt<32;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>8&255,yt[2]=Pt>>>16&255,yt[3]=Pt>>>24&255,dt.check=crc32(dt.check,yt,4,0)),Pt=0,Jt=0,dt.mode=OS;case OS:for(;Jt<16;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>8),dt.flags&512&&dt.wrap&4&&(yt[0]=Pt&255,yt[1]=Pt>>>8&255,dt.check=crc32(dt.check,yt,2,0)),Pt=0,Jt=0,dt.mode=EXLEN;case EXLEN:if(dt.flags&1024){for(;Jt<16;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>8&255,dt.check=crc32(dt.check,yt,2,0)),Pt=0,Jt=0}else dt.head&&(dt.head.extra=null);dt.mode=EXTRA;case EXTRA:if(dt.flags&1024&&(nn=dt.length,nn>vt&&(nn=vt),nn&&(dt.head&&(Ht=dt.head.extra_len-dt.length,dt.head.extra||(dt.head.extra=new Uint8Array(dt.head.extra_len)),dt.head.extra.set(ct.subarray(ht,ht+nn),Ht)),dt.flags&512&&dt.wrap&4&&(dt.check=crc32(dt.check,ct,nn,ht)),vt-=nn,ht+=nn,dt.length-=nn),dt.length))break e;dt.length=0,dt.mode=NAME;case NAME:if(dt.flags&2048){if(vt===0)break e;nn=0;do Ht=ct[ht+nn++],dt.head&&Ht&&dt.length<65536&&(dt.head.name+=String.fromCharCode(Ht));while(Ht&&nn>9&1,dt.head.done=!0),d.adler=dt.check=0,dt.mode=TYPE;break;case DICTID:for(;Jt<32;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=Jt&7,Jt-=Jt&7,dt.mode=CHECK;break}for(;Jt<3;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=1,Jt-=1,Pt&3){case 0:dt.mode=STORED;break;case 1:if(fixedtables(dt),dt.mode=LEN_,b===Z_TREES){Pt>>>=2,Jt-=2;break e}break;case 2:dt.mode=TABLE$1;break;case 3:d.msg="invalid block type",dt.mode=BAD}Pt>>>=2,Jt-=2;break;case STORED:for(Pt>>>=Jt&7,Jt-=Jt&7;Jt<32;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>16^65535)){d.msg="invalid stored block lengths",dt.mode=BAD;break}if(dt.length=Pt&65535,Pt=0,Jt=0,dt.mode=COPY_,b===Z_TREES)break e;case COPY_:dt.mode=COPY;case COPY:if(nn=dt.length,nn){if(nn>vt&&(nn=vt),nn>kt&&(nn=kt),nn===0)break e;lt.set(ct.subarray(ht,ht+nn),mt),vt-=nn,ht+=nn,kt-=nn,mt+=nn,dt.length-=nn;break}dt.mode=TYPE;break;case TABLE$1:for(;Jt<14;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=5,Jt-=5,dt.ndist=(Pt&31)+1,Pt>>>=5,Jt-=5,dt.ncode=(Pt&15)+4,Pt>>>=4,Jt-=4,dt.nlen>286||dt.ndist>30){d.msg="too many length or distance symbols",dt.mode=BAD;break}dt.have=0,dt.mode=LENLENS;case LENLENS:for(;dt.have>>=3,Jt-=3}for(;dt.have<19;)dt.lens[Kt[dt.have++]]=0;if(dt.lencode=dt.lendyn,dt.lenbits=7,$t={bits:dt.lenbits},an=inflate_table(CODES,dt.lens,0,19,dt.lencode,0,dt.work,$t),dt.lenbits=$t.bits,an){d.msg="invalid code lengths set",dt.mode=BAD;break}dt.have=0,dt.mode=CODELENS;case CODELENS:for(;dt.have>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=xt,Jt-=xt,dt.lens[dt.have++]=Bt;else{if(Bt===16){for(Yt=xt+2;Jt>>=xt,Jt-=xt,dt.have===0){d.msg="invalid bit length repeat",dt.mode=BAD;break}Ht=dt.lens[dt.have-1],nn=3+(Pt&3),Pt>>>=2,Jt-=2}else if(Bt===17){for(Yt=xt+3;Jt>>=xt,Jt-=xt,Ht=0,nn=3+(Pt&7),Pt>>>=3,Jt-=3}else{for(Yt=xt+7;Jt>>=xt,Jt-=xt,Ht=0,nn=11+(Pt&127),Pt>>>=7,Jt-=7}if(dt.have+nn>dt.nlen+dt.ndist){d.msg="invalid bit length repeat",dt.mode=BAD;break}for(;nn--;)dt.lens[dt.have++]=Ht}}if(dt.mode===BAD)break;if(dt.lens[256]===0){d.msg="invalid code -- missing end-of-block",dt.mode=BAD;break}if(dt.lenbits=9,$t={bits:dt.lenbits},an=inflate_table(LENS,dt.lens,0,dt.nlen,dt.lencode,0,dt.work,$t),dt.lenbits=$t.bits,an){d.msg="invalid literal/lengths set",dt.mode=BAD;break}if(dt.distbits=6,dt.distcode=dt.distdyn,$t={bits:dt.distbits},an=inflate_table(DISTS,dt.lens,dt.nlen,dt.ndist,dt.distcode,0,dt.work,$t),dt.distbits=$t.bits,an){d.msg="invalid distances set",dt.mode=BAD;break}if(dt.mode=LEN_,b===Z_TREES)break e;case LEN_:dt.mode=LEN;case LEN:if(vt>=6&&kt>=258){d.next_out=mt,d.avail_out=kt,d.next_in=ht,d.avail_in=vt,dt.hold=Pt,dt.bits=Jt,inflate_fast(d,Rt),mt=d.next_out,lt=d.output,kt=d.avail_out,ht=d.next_in,ct=d.input,vt=d.avail_in,Pt=dt.hold,Jt=dt.bits,dt.mode===TYPE&&(dt.back=-1);break}for(dt.back=0;Nt=dt.lencode[Pt&(1<>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>Tt)],xt=Nt>>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(Tt+xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=Tt,Jt-=Tt,dt.back+=Tt}if(Pt>>>=xt,Jt-=xt,dt.back+=xt,dt.length=Bt,Et===0){dt.mode=LIT;break}if(Et&32){dt.back=-1,dt.mode=TYPE;break}if(Et&64){d.msg="invalid literal/length code",dt.mode=BAD;break}dt.extra=Et&15,dt.mode=LENEXT;case LENEXT:if(dt.extra){for(Yt=dt.extra;Jt>>=dt.extra,Jt-=dt.extra,dt.back+=dt.extra}dt.was=dt.length,dt.mode=DIST;case DIST:for(;Nt=dt.distcode[Pt&(1<>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>Tt)],xt=Nt>>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(Tt+xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=Tt,Jt-=Tt,dt.back+=Tt}if(Pt>>>=xt,Jt-=xt,dt.back+=xt,Et&64){d.msg="invalid distance code",dt.mode=BAD;break}dt.offset=Bt,dt.extra=Et&15,dt.mode=DISTEXT;case DISTEXT:if(dt.extra){for(Yt=dt.extra;Jt>>=dt.extra,Jt-=dt.extra,dt.back+=dt.extra}if(dt.offset>dt.dmax){d.msg="invalid distance too far back",dt.mode=BAD;break}dt.mode=MATCH;case MATCH:if(kt===0)break e;if(nn=Rt-kt,dt.offset>nn){if(nn=dt.offset-nn,nn>dt.whave&&dt.sane){d.msg="invalid distance too far back",dt.mode=BAD;break}nn>dt.wnext?(nn-=dt.wnext,Qt=dt.wsize-nn):Qt=dt.wnext-nn,nn>dt.length&&(nn=dt.length),wt=dt.window}else wt=lt,Qt=mt-dt.offset,nn=dt.length;nn>kt&&(nn=kt),kt-=nn,dt.length-=nn;do lt[mt++]=wt[Qt++];while(--nn);dt.length===0&&(dt.mode=LEN);break;case LIT:if(kt===0)break e;lt[mt++]=dt.length,kt--,dt.mode=LEN;break;case CHECK:if(dt.wrap){for(;Jt<32;){if(vt===0)break e;vt--,Pt|=ct[ht++]<{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;let b=d.state;return b.window&&(b.window=null),d.state=null,Z_OK$1},inflateGetHeader=(d,b)=>{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const dt=d.state;return dt.wrap&2?(dt.head=b,b.done=!1,Z_OK$1):Z_STREAM_ERROR$1},inflateSetDictionary=(d,b)=>{const dt=b.length;let ct,lt,ht;return inflateStateCheck(d)||(ct=d.state,ct.wrap!==0&&ct.mode!==DICT)?Z_STREAM_ERROR$1:ct.mode===DICT&&(lt=1,lt=adler32(lt,b,dt,0),lt!==ct.check)?Z_DATA_ERROR$1:(ht=updatewindow(d,b,dt,dt),ht?(ct.mode=MEM,Z_MEM_ERROR$1):(ct.havedict=1,Z_OK$1))};inflate$3.inflateReset=inflateReset;inflate$3.inflateReset2=inflateReset2;inflate$3.inflateResetKeep=inflateResetKeep;inflate$3.inflateInit=inflateInit;inflate$3.inflateInit2=inflateInit2;inflate$3.inflate=inflate$2;inflate$3.inflateEnd=inflateEnd;inflate$3.inflateGetHeader=inflateGetHeader;inflate$3.inflateSetDictionary=inflateSetDictionary;inflate$3.inflateInfo="pako inflate (from Nodeca project)";function GZheader$1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader$1;const zlib_inflate=inflate$3,utils$2=common,strings$1=strings$3,msg=messages,ZStream=zstream,GZheader=gzheader,toString$1=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$1;function Inflate$1(d){this.options=utils$2.assign({chunkSize:1024*64,windowBits:15,to:""},d||{});const b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(d&&d.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(b.windowBits&15||(b.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;let dt=zlib_inflate.inflateInit2(this.strm,b.windowBits);if(dt!==Z_OK)throw new Error(msg[dt]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),b.dictionary&&(typeof b.dictionary=="string"?b.dictionary=strings$1.string2buf(b.dictionary):toString$1.call(b.dictionary)==="[object ArrayBuffer]"&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw&&(dt=zlib_inflate.inflateSetDictionary(this.strm,b.dictionary),dt!==Z_OK)))throw new Error(msg[dt])}Inflate$1.prototype.push=function(d,b){const dt=this.strm,ct=this.options.chunkSize,lt=this.options.dictionary;let ht,mt,vt;if(this.ended)return!1;for(b===~~b?mt=b:mt=b===!0?Z_FINISH:Z_NO_FLUSH,toString$1.call(d)==="[object ArrayBuffer]"?dt.input=new Uint8Array(d):dt.input=d,dt.next_in=0,dt.avail_in=dt.input.length;;){for(dt.avail_out===0&&(dt.output=new Uint8Array(ct),dt.next_out=0,dt.avail_out=ct),ht=zlib_inflate.inflate(dt,mt),ht===Z_NEED_DICT&<&&(ht=zlib_inflate.inflateSetDictionary(dt,lt),ht===Z_OK?ht=zlib_inflate.inflate(dt,mt):ht===Z_DATA_ERROR&&(ht=Z_NEED_DICT));dt.avail_in>0&&ht===Z_STREAM_END&&dt.state.wrap>0&&d[dt.next_in]!==0;)zlib_inflate.inflateReset(dt),ht=zlib_inflate.inflate(dt,mt);switch(ht){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(ht),this.ended=!0,!1}if(vt=dt.avail_out,dt.next_out&&(dt.avail_out===0||ht===Z_STREAM_END))if(this.options.to==="string"){let kt=strings$1.utf8border(dt.output,dt.next_out),Pt=dt.next_out-kt,Jt=strings$1.buf2string(dt.output,kt);dt.next_out=Pt,dt.avail_out=ct-Pt,Pt&&dt.output.set(dt.output.subarray(kt,kt+Pt),0),this.onData(Jt)}else this.onData(dt.output.length===dt.next_out?dt.output:dt.output.subarray(0,dt.next_out));if(!(ht===Z_OK&&vt===0)){if(ht===Z_STREAM_END)return ht=zlib_inflate.inflateEnd(this.strm),this.onEnd(ht),this.ended=!0,!0;if(dt.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(d){this.chunks.push(d)};Inflate$1.prototype.onEnd=function(d){d===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=utils$2.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function inflate$1(d,b){const dt=new Inflate$1(b);if(dt.push(d),dt.err)throw dt.msg||msg[dt.err];return dt.result}function inflateRaw$1(d,b){return b=b||{},b.raw=!0,inflate$1(d,b)}inflate$4.Inflate=Inflate$1;inflate$4.inflate=inflate$1;inflate$4.inflateRaw=inflateRaw$1;inflate$4.ungzip=inflate$1;inflate$4.constants=constants$1;const{Deflate,deflate,deflateRaw,gzip}=deflate$4,{Inflate,inflate,inflateRaw,ungzip}=inflate$4,constants=constants$1;pako.Deflate=Deflate;pako.deflate=deflate;pako.deflateRaw=deflateRaw;pako.gzip=gzip;pako.Inflate=Inflate;pako.inflate=inflate;pako.inflateRaw=inflateRaw;pako.ungzip=ungzip;pako.constants=constants;var __importDefault$k=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(signingcosmwasmclient,"__esModule",{value:!0});signingcosmwasmclient.SigningCosmWasmClient=void 0;const amino_1=build$c,crypto_1$5=build$b,encoding_1$2=build$g,math_1$2=build$f,proto_signing_1=build$d,stargate_1$7=build$e,tendermint_rpc_1$1=build$3,utils_1$2=build$9,tx_1$1=tx$o,tx_2$1=tx$f,signing_1=signing$2,tx_3$1=tx$r,tx_4$1=tx$d,long_1$9=__importDefault$k(long),pako_1=__importDefault$k(pako),cosmwasmclient_1=cosmwasmclient,modules_1=modules;function createDeliverTxResponseErrorMessage(d){return`Error when broadcasting tx ${d.transactionHash} at height ${d.height}. Code: ${d.code}; Raw log: ${d.rawLog}`}class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient{static async connectWithSigner(b,dt,ct={}){let lt;const ht=await tendermint_rpc_1$1.Tendermint37Client.connect(b);return(await ht.status()).nodeInfo.version.startsWith("0.37.")?lt=ht:(ht.disconnect(),lt=await tendermint_rpc_1$1.Tendermint34Client.connect(b)),SigningCosmWasmClient.createWithSigner(lt,dt,ct)}static async createWithSigner(b,dt,ct={}){return new SigningCosmWasmClient(b,dt,ct)}static async offline(b,dt={}){return new SigningCosmWasmClient(void 0,b,dt)}constructor(b,dt,ct){super(b);const{registry:lt=new proto_signing_1.Registry([...stargate_1$7.defaultRegistryTypes,...modules_1.wasmTypes]),aminoTypes:ht=new stargate_1$7.AminoTypes({...(0,stargate_1$7.createDefaultAminoConverters)(),...(0,modules_1.createWasmAminoConverters)()})}=ct;this.registry=lt,this.aminoTypes=ht,this.signer=dt,this.broadcastTimeoutMs=ct.broadcastTimeoutMs,this.broadcastPollIntervalMs=ct.broadcastPollIntervalMs,this.gasPrice=ct.gasPrice}async simulate(b,dt,ct){const lt=dt.map(Pt=>this.registry.encodeAsAny(Pt)),ht=(await this.signer.getAccounts()).find(Pt=>Pt.address===b);if(!ht)throw new Error("Failed to retrieve account from signer");const mt=(0,amino_1.encodeSecp256k1Pubkey)(ht.pubkey),{sequence:vt}=await this.getSequence(b),{gasInfo:kt}=await this.forceGetQueryClient().tx.simulate(lt,ct,mt,vt);return(0,utils_1$2.assertDefined)(kt),math_1$2.Uint53.fromString(kt.gasUsed.toString()).toNumber()}async upload(b,dt,ct,lt="",ht){const mt=pako_1.default.gzip(dt,{level:9}),vt={typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:tx_4$1.MsgStoreCode.fromPartial({sender:b,wasmByteCode:mt,instantiatePermission:ht})},kt=ct=="auto"?1.1:ct,Pt=await this.signAndBroadcast(b,[vt],kt,lt);if((0,stargate_1$7.isDeliverTxFailure)(Pt))throw new Error(createDeliverTxResponseErrorMessage(Pt));const Jt=stargate_1$7.logs.parseRawLog(Pt.rawLog),Zt=stargate_1$7.logs.findAttribute(Jt,"store_code","code_id");return{checksum:(0,encoding_1$2.toHex)((0,crypto_1$5.sha256)(dt)),originalSize:dt.length,compressedSize:mt.length,codeId:Number.parseInt(Zt.value,10),logs:Jt,height:Pt.height,transactionHash:Pt.transactionHash,events:Pt.events,gasWanted:Pt.gasWanted,gasUsed:Pt.gasUsed}}async instantiate(b,dt,ct,lt,ht,mt={}){const vt={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:tx_4$1.MsgInstantiateContract.fromPartial({sender:b,codeId:long_1$9.default.fromString(new math_1$2.Uint53(dt).toString()),label:lt,msg:(0,encoding_1$2.toUtf8)(JSON.stringify(ct)),funds:[...mt.funds||[]],admin:mt.admin})},kt=await this.signAndBroadcast(b,[vt],ht,mt.memo);if((0,stargate_1$7.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));const Pt=stargate_1$7.logs.parseRawLog(kt.rawLog);return{contractAddress:stargate_1$7.logs.findAttribute(Pt,"instantiate","_contract_address").value,logs:Pt,height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async instantiate2(b,dt,ct,lt,ht,mt,vt={}){const kt={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract2",value:tx_4$1.MsgInstantiateContract2.fromPartial({sender:b,codeId:long_1$9.default.fromString(new math_1$2.Uint53(dt).toString()),label:ht,msg:(0,encoding_1$2.toUtf8)(JSON.stringify(lt)),funds:[...vt.funds||[]],admin:vt.admin,salt:ct,fixMsg:!1})},Pt=await this.signAndBroadcast(b,[kt],mt,vt.memo);if((0,stargate_1$7.isDeliverTxFailure)(Pt))throw new Error(createDeliverTxResponseErrorMessage(Pt));const Jt=stargate_1$7.logs.parseRawLog(Pt.rawLog);return{contractAddress:stargate_1$7.logs.findAttribute(Jt,"instantiate","_contract_address").value,logs:Jt,height:Pt.height,transactionHash:Pt.transactionHash,events:Pt.events,gasWanted:Pt.gasWanted,gasUsed:Pt.gasUsed}}async updateAdmin(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:tx_4$1.MsgUpdateAdmin.fromPartial({sender:b,contract:dt,newAdmin:ct})},vt=await this.signAndBroadcast(b,[mt],lt,ht);if((0,stargate_1$7.isDeliverTxFailure)(vt))throw new Error(createDeliverTxResponseErrorMessage(vt));return{logs:stargate_1$7.logs.parseRawLog(vt.rawLog),height:vt.height,transactionHash:vt.transactionHash,events:vt.events,gasWanted:vt.gasWanted,gasUsed:vt.gasUsed}}async clearAdmin(b,dt,ct,lt=""){const ht={typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:tx_4$1.MsgClearAdmin.fromPartial({sender:b,contract:dt})},mt=await this.signAndBroadcast(b,[ht],ct,lt);if((0,stargate_1$7.isDeliverTxFailure)(mt))throw new Error(createDeliverTxResponseErrorMessage(mt));return{logs:stargate_1$7.logs.parseRawLog(mt.rawLog),height:mt.height,transactionHash:mt.transactionHash,events:mt.events,gasWanted:mt.gasWanted,gasUsed:mt.gasUsed}}async migrate(b,dt,ct,lt,ht,mt=""){const vt={typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:tx_4$1.MsgMigrateContract.fromPartial({sender:b,contract:dt,codeId:long_1$9.default.fromString(new math_1$2.Uint53(ct).toString()),msg:(0,encoding_1$2.toUtf8)(JSON.stringify(lt))})},kt=await this.signAndBroadcast(b,[vt],ht,mt);if((0,stargate_1$7.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));return{logs:stargate_1$7.logs.parseRawLog(kt.rawLog),height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async execute(b,dt,ct,lt,ht="",mt){const vt={contractAddress:dt,msg:ct,funds:mt};return this.executeMultiple(b,[vt],lt,ht)}async executeMultiple(b,dt,ct,lt=""){const ht=dt.map(vt=>({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:tx_4$1.MsgExecuteContract.fromPartial({sender:b,contract:vt.contractAddress,msg:(0,encoding_1$2.toUtf8)(JSON.stringify(vt.msg)),funds:[...vt.funds||[]]})})),mt=await this.signAndBroadcast(b,ht,ct,lt);if((0,stargate_1$7.isDeliverTxFailure)(mt))throw new Error(createDeliverTxResponseErrorMessage(mt));return{logs:stargate_1$7.logs.parseRawLog(mt.rawLog),height:mt.height,transactionHash:mt.transactionHash,events:mt.events,gasWanted:mt.gasWanted,gasUsed:mt.gasUsed}}async sendTokens(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:b,toAddress:dt,amount:[...ct]}};return this.signAndBroadcast(b,[mt],lt,ht)}async delegateTokens(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:tx_2$1.MsgDelegate.fromPartial({delegatorAddress:b,validatorAddress:dt,amount:ct})};return this.signAndBroadcast(b,[mt],lt,ht)}async undelegateTokens(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:tx_2$1.MsgUndelegate.fromPartial({delegatorAddress:b,validatorAddress:dt,amount:ct})};return this.signAndBroadcast(b,[mt],lt,ht)}async withdrawRewards(b,dt,ct,lt=""){const ht={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:tx_1$1.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:b,validatorAddress:dt})};return this.signAndBroadcast(b,[ht],ct,lt)}async signAndBroadcast(b,dt,ct,lt=""){let ht;if(ct=="auto"||typeof ct=="number"){(0,utils_1$2.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const kt=await this.simulate(b,dt,lt),Pt=typeof ct=="number"?ct:1.4;ht=(0,stargate_1$7.calculateFee)(Math.round(kt*Pt),this.gasPrice)}else ht=ct;const mt=await this.sign(b,dt,ht,lt),vt=tx_3$1.TxRaw.encode(mt).finish();return this.broadcastTx(vt,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(b,dt,ct,lt=""){let ht;if(ct=="auto"||typeof ct=="number"){(0,utils_1$2.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const kt=await this.simulate(b,dt,lt),Pt=typeof ct=="number"?ct:1.3;ht=(0,stargate_1$7.calculateFee)(Math.round(kt*Pt),this.gasPrice)}else ht=ct;const mt=await this.sign(b,dt,ht,lt),vt=tx_3$1.TxRaw.encode(mt).finish();return this.broadcastTxSync(vt)}async sign(b,dt,ct,lt,ht){let mt;if(ht)mt=ht;else{const{accountNumber:vt,sequence:kt}=await this.getSequence(b),Pt=await this.getChainId();mt={accountNumber:vt,sequence:kt,chainId:Pt}}return(0,proto_signing_1.isOfflineDirectSigner)(this.signer)?this.signDirect(b,dt,ct,lt,mt):this.signAmino(b,dt,ct,lt,mt)}async signAmino(b,dt,ct,lt,{accountNumber:ht,sequence:mt,chainId:vt}){(0,utils_1$2.assert)(!(0,proto_signing_1.isOfflineDirectSigner)(this.signer));const kt=(await this.signer.getAccounts()).find(Tt=>Tt.address===b);if(!kt)throw new Error("Failed to retrieve account from signer");const Pt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(kt.pubkey)),Jt=signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,Zt=dt.map(Tt=>this.aminoTypes.toAmino(Tt)),Rt=(0,amino_1.makeSignDoc)(Zt,ct,vt,lt,ht,mt),{signature:nn,signed:Qt}=await this.signer.signAmino(b,Rt),wt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:Qt.msgs.map(Tt=>this.aminoTypes.fromAmino(Tt)),memo:Qt.memo}},Nt=this.registry.encode(wt),xt=math_1$2.Int53.fromString(Qt.fee.gas).toNumber(),Et=math_1$2.Int53.fromString(Qt.sequence).toNumber(),Bt=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:Pt,sequence:Et}],Qt.fee.amount,xt,Qt.fee.granter,Qt.fee.payer,Jt);return tx_3$1.TxRaw.fromPartial({bodyBytes:Nt,authInfoBytes:Bt,signatures:[(0,encoding_1$2.fromBase64)(nn.signature)]})}async signDirect(b,dt,ct,lt,{accountNumber:ht,sequence:mt,chainId:vt}){(0,utils_1$2.assert)((0,proto_signing_1.isOfflineDirectSigner)(this.signer));const kt=(await this.signer.getAccounts()).find(xt=>xt.address===b);if(!kt)throw new Error("Failed to retrieve account from signer");const Pt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(kt.pubkey)),Jt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:dt,memo:lt}},Zt=this.registry.encode(Jt),Rt=math_1$2.Int53.fromString(ct.gas).toNumber(),nn=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:Pt,sequence:mt}],ct.amount,Rt,ct.granter,ct.payer),Qt=(0,proto_signing_1.makeSignDoc)(Zt,nn,vt,ht),{signature:wt,signed:Nt}=await this.signer.signDirect(b,Qt);return tx_3$1.TxRaw.fromPartial({bodyBytes:Nt.bodyBytes,authInfoBytes:Nt.authInfoBytes,signatures:[(0,encoding_1$2.fromBase64)(wt.signature)]})}}signingcosmwasmclient.SigningCosmWasmClient=SigningCosmWasmClient;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.SigningCosmWasmClient=d.wasmTypes=d.setupWasmExtension=d.isMsgUpdateAdminEncodeObject=d.isMsgStoreCodeEncodeObject=d.isMsgMigrateEncodeObject=d.isMsgInstantiateContractEncodeObject=d.isMsgInstantiateContract2EncodeObject=d.isMsgExecuteEncodeObject=d.isMsgClearAdminEncodeObject=d.createWasmAminoConverters=d.instantiate2Address=d._instantiate2AddressIntermediate=d.toBinary=d.fromBinary=d.CosmWasmClient=void 0;var b=cosmwasmclient;Object.defineProperty(d,"CosmWasmClient",{enumerable:!0,get:function(){return b.CosmWasmClient}});var dt=encoding;Object.defineProperty(d,"fromBinary",{enumerable:!0,get:function(){return dt.fromBinary}}),Object.defineProperty(d,"toBinary",{enumerable:!0,get:function(){return dt.toBinary}});var ct=instantiate2;Object.defineProperty(d,"_instantiate2AddressIntermediate",{enumerable:!0,get:function(){return ct._instantiate2AddressIntermediate}}),Object.defineProperty(d,"instantiate2Address",{enumerable:!0,get:function(){return ct.instantiate2Address}});var lt=modules;Object.defineProperty(d,"createWasmAminoConverters",{enumerable:!0,get:function(){return lt.createWasmAminoConverters}}),Object.defineProperty(d,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return lt.isMsgClearAdminEncodeObject}}),Object.defineProperty(d,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return lt.isMsgExecuteEncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return lt.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return lt.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(d,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return lt.isMsgMigrateEncodeObject}}),Object.defineProperty(d,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return lt.isMsgStoreCodeEncodeObject}}),Object.defineProperty(d,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return lt.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(d,"setupWasmExtension",{enumerable:!0,get:function(){return lt.setupWasmExtension}}),Object.defineProperty(d,"wasmTypes",{enumerable:!0,get:function(){return lt.wasmTypes}});var ht=signingcosmwasmclient;Object.defineProperty(d,"SigningCosmWasmClient",{enumerable:!0,get:function(){return ht.SigningCosmWasmClient}})})(build$h);var query$8={},pagination$2={},helpers={},indexMinimal$1={},minimal$3={},longbits$1,hasRequiredLongbits$1;function requireLongbits$1(){if(hasRequiredLongbits$1)return longbits$1;hasRequiredLongbits$1=1,longbits$1=b;var d=requireMinimal$1();function b(ht,mt){this.lo=ht>>>0,this.hi=mt>>>0}var dt=b.zero=new b(0,0);dt.toNumber=function(){return 0},dt.zzEncode=dt.zzDecode=function(){return this},dt.length=function(){return 1};var ct=b.zeroHash="\0\0\0\0\0\0\0\0";b.fromNumber=function(mt){if(mt===0)return dt;var vt=mt<0;vt&&(mt=-mt);var kt=mt>>>0,Pt=(mt-kt)/4294967296>>>0;return vt&&(Pt=~Pt>>>0,kt=~kt>>>0,++kt>4294967295&&(kt=0,++Pt>4294967295&&(Pt=0))),new b(kt,Pt)},b.from=function(mt){if(typeof mt=="number")return b.fromNumber(mt);if(d.isString(mt))if(d.Long)mt=d.Long.fromString(mt);else return b.fromNumber(parseInt(mt,10));return mt.low||mt.high?new b(mt.low>>>0,mt.high>>>0):dt},b.prototype.toNumber=function(mt){if(!mt&&this.hi>>>31){var vt=~this.lo+1>>>0,kt=~this.hi>>>0;return vt||(kt=kt+1>>>0),-(vt+kt*4294967296)}return this.lo+this.hi*4294967296},b.prototype.toLong=function(mt){return d.Long?new d.Long(this.lo|0,this.hi|0,!!mt):{low:this.lo|0,high:this.hi|0,unsigned:!!mt}};var lt=String.prototype.charCodeAt;return b.fromHash=function(mt){return mt===ct?dt:new b((lt.call(mt,0)|lt.call(mt,1)<<8|lt.call(mt,2)<<16|lt.call(mt,3)<<24)>>>0,(lt.call(mt,4)|lt.call(mt,5)<<8|lt.call(mt,6)<<16|lt.call(mt,7)<<24)>>>0)},b.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},b.prototype.zzEncode=function(){var mt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^mt)>>>0,this.lo=(this.lo<<1^mt)>>>0,this},b.prototype.zzDecode=function(){var mt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^mt)>>>0,this.hi=(this.hi>>>1^mt)>>>0,this},b.prototype.length=function(){var mt=this.lo,vt=(this.lo>>>28|this.hi<<4)>>>0,kt=this.hi>>>24;return kt===0?vt===0?mt<16384?mt<128?1:2:mt<2097152?3:4:vt<16384?vt<128?5:6:vt<2097152?7:8:kt<128?9:10},longbits$1}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(d){var b=d;b.asPromise=aspromise,b.base64=base64$8,b.EventEmitter=eventemitter,b.float=float,b.inquire=inquire_1,b.utf8=utf8$b,b.pool=pool_1,b.LongBits=requireLongbits$1(),b.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),b.global=b.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,b.emptyArray=Object.freeze?Object.freeze([]):[],b.emptyObject=Object.freeze?Object.freeze({}):{},b.isInteger=Number.isInteger||function(ht){return typeof ht=="number"&&isFinite(ht)&&Math.floor(ht)===ht},b.isString=function(ht){return typeof ht=="string"||ht instanceof String},b.isObject=function(ht){return ht&&typeof ht=="object"},b.isset=b.isSet=function(ht,mt){var vt=ht[mt];return vt!=null&&ht.hasOwnProperty(mt)?typeof vt!="object"||(Array.isArray(vt)?vt.length:Object.keys(vt).length)>0:!1},b.Buffer=function(){try{var lt=b.inquire("buffer").Buffer;return lt.prototype.utf8Write?lt:null}catch{return null}}(),b._Buffer_from=null,b._Buffer_allocUnsafe=null,b.newBuffer=function(ht){return typeof ht=="number"?b.Buffer?b._Buffer_allocUnsafe(ht):new b.Array(ht):b.Buffer?b._Buffer_from(ht):typeof Uint8Array>"u"?ht:new Uint8Array(ht)},b.Array=typeof Uint8Array<"u"?Uint8Array:Array,b.Long=b.global.dcodeIO&&b.global.dcodeIO.Long||b.global.Long||b.inquire("long"),b.key2Re=/^true|false|0|1$/,b.key32Re=/^-?(?:0|[1-9][0-9]*)$/,b.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,b.longToHash=function(ht){return ht?b.LongBits.from(ht).toHash():b.LongBits.zeroHash},b.longFromHash=function(ht,mt){var vt=b.LongBits.fromHash(ht);return b.Long?b.Long.fromBits(vt.lo,vt.hi,mt):vt.toNumber(!!mt)};function dt(lt,ht,mt){for(var vt=Object.keys(ht),kt=0;kt-1;--Pt)if(mt[kt[Pt]]===1&&this[kt[Pt]]!==void 0&&this[kt[Pt]]!==null)return kt[Pt]}},b.oneOfSetter=function(ht){return function(mt){for(var vt=0;vt127;)b[dt++]=d&127|128,d>>>=7;b[dt]=d}function VarintOp$1(d,b){this.len=d,this.next=void 0,this.val=b}VarintOp$1.prototype=Object.create(Op$1.prototype);VarintOp$1.prototype.fn=writeVarint32$1;Writer$3.prototype.uint32=function d(b){return this.len+=(this.tail=this.tail.next=new VarintOp$1((b=b>>>0)<128?1:b<16384?2:b<2097152?3:b<268435456?4:5,b)).len,this};Writer$3.prototype.int32=function d(b){return b<0?this._push(writeVarint64$1,10,LongBits$3.fromNumber(b)):this.uint32(b)};Writer$3.prototype.sint32=function d(b){return this.uint32((b<<1^b>>31)>>>0)};function writeVarint64$1(d,b,dt){for(;d.hi;)b[dt++]=d.lo&127|128,d.lo=(d.lo>>>7|d.hi<<25)>>>0,d.hi>>>=7;for(;d.lo>127;)b[dt++]=d.lo&127|128,d.lo=d.lo>>>7;b[dt++]=d.lo}Writer$3.prototype.uint64=function d(b){var dt=LongBits$3.from(b);return this._push(writeVarint64$1,dt.length(),dt)};Writer$3.prototype.int64=Writer$3.prototype.uint64;Writer$3.prototype.sint64=function d(b){var dt=LongBits$3.from(b).zzEncode();return this._push(writeVarint64$1,dt.length(),dt)};Writer$3.prototype.bool=function d(b){return this._push(writeByte$1,1,b?1:0)};function writeFixed32$1(d,b,dt){b[dt]=d&255,b[dt+1]=d>>>8&255,b[dt+2]=d>>>16&255,b[dt+3]=d>>>24}Writer$3.prototype.fixed32=function d(b){return this._push(writeFixed32$1,4,b>>>0)};Writer$3.prototype.sfixed32=Writer$3.prototype.fixed32;Writer$3.prototype.fixed64=function d(b){var dt=LongBits$3.from(b);return this._push(writeFixed32$1,4,dt.lo)._push(writeFixed32$1,4,dt.hi)};Writer$3.prototype.sfixed64=Writer$3.prototype.fixed64;Writer$3.prototype.float=function d(b){return this._push(util$a.float.writeFloatLE,4,b)};Writer$3.prototype.double=function d(b){return this._push(util$a.float.writeDoubleLE,8,b)};var writeBytes$1=util$a.Array.prototype.set?function d(b,dt,ct){dt.set(b,ct)}:function d(b,dt,ct){for(var lt=0;lt>>0;if(!dt)return this._push(writeByte$1,1,0);if(util$a.isString(b)){var ct=Writer$3.alloc(dt=base64$1.length(b));base64$1.decode(b,ct,0),b=ct}return this.uint32(dt)._push(writeBytes$1,dt,b)};Writer$3.prototype.string=function d(b){var dt=utf8$3.length(b);return dt?this.uint32(dt)._push(utf8$3.write,dt,b):this._push(writeByte$1,1,0)};Writer$3.prototype.fork=function d(){return this.states=new State$1(this),this.head=this.tail=new Op$1(noop$3,0,0),this.len=0,this};Writer$3.prototype.reset=function d(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op$1(noop$3,0,0),this.len=0),this};Writer$3.prototype.ldelim=function d(){var b=this.head,dt=this.tail,ct=this.len;return this.reset().uint32(ct),ct&&(this.tail.next=b.next,this.tail=dt,this.len+=ct),this};Writer$3.prototype.finish=function d(){for(var b=this.head.next,dt=this.constructor.alloc(this.len),ct=0;b;)b.fn(b.val,dt,ct),ct+=b.len,b=b.next;return dt};Writer$3._configure=function(d){BufferWriter$3=d,Writer$3.create=create$3(),BufferWriter$3._configure()};var writer_buffer$1=BufferWriter$2,Writer$2=writer$1;(BufferWriter$2.prototype=Object.create(Writer$2.prototype)).constructor=BufferWriter$2;var util$9=requireMinimal$1();function BufferWriter$2(){Writer$2.call(this)}BufferWriter$2._configure=function(){BufferWriter$2.alloc=util$9._Buffer_allocUnsafe,BufferWriter$2.writeBytesBuffer=util$9.Buffer&&util$9.Buffer.prototype instanceof Uint8Array&&util$9.Buffer.prototype.set.name==="set"?function(b,dt,ct){dt.set(b,ct)}:function(b,dt,ct){if(b.copy)b.copy(dt,ct,0,b.length);else for(var lt=0;lt>>0;return this.uint32(dt),dt&&this._push(BufferWriter$2.writeBytesBuffer,dt,b),this};function writeStringBuffer$1(d,b,dt){d.length<40?util$9.utf8.write(d,b,dt):b.utf8Write?b.utf8Write(d,dt):b.write(d,dt)}BufferWriter$2.prototype.string=function d(b){var dt=util$9.Buffer.byteLength(b);return this.uint32(dt),dt&&this._push(writeStringBuffer$1,dt,b),this};BufferWriter$2._configure();var reader$2=Reader$3,util$8=requireMinimal$1(),BufferReader$3,LongBits$2=util$8.LongBits,utf8$2=util$8.utf8;function indexOutOfRange$1(d,b){return RangeError("index out of range: "+d.pos+" + "+(b||1)+" > "+d.len)}function Reader$3(d){this.buf=d,this.pos=0,this.len=d.length}var create_array$1=typeof Uint8Array<"u"?function d(b){if(b instanceof Uint8Array||Array.isArray(b))return new Reader$3(b);throw Error("illegal buffer")}:function d(b){if(Array.isArray(b))return new Reader$3(b);throw Error("illegal buffer")},create$2=function d(){return util$8.Buffer?function(dt){return(Reader$3.create=function(lt){return util$8.Buffer.isBuffer(lt)?new BufferReader$3(lt):create_array$1(lt)})(dt)}:create_array$1};Reader$3.create=create$2();Reader$3.prototype._slice=util$8.Array.prototype.subarray||util$8.Array.prototype.slice;Reader$3.prototype.uint32=function d(){var b=4294967295;return function(){if(b=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(b=(b|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return b;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange$1(this,10);return b}}();Reader$3.prototype.int32=function d(){return this.uint32()|0};Reader$3.prototype.sint32=function d(){var b=this.uint32();return b>>>1^-(b&1)|0};function readLongVarint$1(){var d=new LongBits$2(0,0),b=0;if(this.len-this.pos>4){for(;b<4;++b)if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d;if(d.lo=(d.lo|(this.buf[this.pos]&127)<<28)>>>0,d.hi=(d.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return d;b=0}else{for(;b<3;++b){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}return d.lo=(d.lo|(this.buf[this.pos++]&127)<>>0,d}if(this.len-this.pos>4){for(;b<5;++b)if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}else for(;b<5;++b){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}throw Error("invalid varint encoding")}Reader$3.prototype.bool=function d(){return this.uint32()!==0};function readFixed32_end$1(d,b){return(d[b-4]|d[b-3]<<8|d[b-2]<<16|d[b-1]<<24)>>>0}Reader$3.prototype.fixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end$1(this.buf,this.pos+=4)};Reader$3.prototype.sfixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end$1(this.buf,this.pos+=4)|0};function readFixed64$1(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,8);return new LongBits$2(readFixed32_end$1(this.buf,this.pos+=4),readFixed32_end$1(this.buf,this.pos+=4))}Reader$3.prototype.float=function d(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);var b=util$8.float.readFloatLE(this.buf,this.pos);return this.pos+=4,b};Reader$3.prototype.double=function d(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,4);var b=util$8.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,b};Reader$3.prototype.bytes=function d(){var b=this.uint32(),dt=this.pos,ct=this.pos+b;if(ct>this.len)throw indexOutOfRange$1(this,b);return this.pos+=b,Array.isArray(this.buf)?this.buf.slice(dt,ct):dt===ct?new this.buf.constructor(0):this._slice.call(this.buf,dt,ct)};Reader$3.prototype.string=function d(){var b=this.bytes();return utf8$2.read(b,0,b.length)};Reader$3.prototype.skip=function d(b){if(typeof b=="number"){if(this.pos+b>this.len)throw indexOutOfRange$1(this,b);this.pos+=b}else do if(this.pos>=this.len)throw indexOutOfRange$1(this);while(this.buf[this.pos++]&128);return this};Reader$3.prototype.skipType=function(d){switch(d){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(d=this.uint32()&7)!==4;)this.skipType(d);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+d+" at offset "+this.pos)}return this};Reader$3._configure=function(d){BufferReader$3=d,Reader$3.create=create$2(),BufferReader$3._configure();var b=util$8.Long?"toLong":"toNumber";util$8.merge(Reader$3.prototype,{int64:function(){return readLongVarint$1.call(this)[b](!1)},uint64:function(){return readLongVarint$1.call(this)[b](!0)},sint64:function(){return readLongVarint$1.call(this).zzDecode()[b](!1)},fixed64:function(){return readFixed64$1.call(this)[b](!0)},sfixed64:function(){return readFixed64$1.call(this)[b](!1)}})};var reader_buffer$1=BufferReader$2,Reader$2=reader$2;(BufferReader$2.prototype=Object.create(Reader$2.prototype)).constructor=BufferReader$2;var util$7=requireMinimal$1();function BufferReader$2(d){Reader$2.call(this,d)}BufferReader$2._configure=function(){util$7.Buffer&&(BufferReader$2.prototype._slice=util$7.Buffer.prototype.slice)};BufferReader$2.prototype.string=function d(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))};BufferReader$2._configure();var rpc$1={},service$1=Service$1,util$6=requireMinimal$1();(Service$1.prototype=Object.create(util$6.EventEmitter.prototype)).constructor=Service$1;function Service$1(d,b,dt){if(typeof d!="function")throw TypeError("rpcImpl must be a function");util$6.EventEmitter.call(this),this.rpcImpl=d,this.requestDelimited=!!b,this.responseDelimited=!!dt}Service$1.prototype.rpcCall=function d(b,dt,ct,lt,ht){if(!lt)throw TypeError("request must be specified");var mt=this;if(!ht)return util$6.asPromise(d,mt,b,dt,ct,lt);if(!mt.rpcImpl){setTimeout(function(){ht(Error("already ended"))},0);return}try{return mt.rpcImpl(b,dt[mt.requestDelimited?"encodeDelimited":"encode"](lt).finish(),function(kt,Pt){if(kt)return mt.emit("error",kt,b),ht(kt);if(Pt===null){mt.end(!0);return}if(!(Pt instanceof ct))try{Pt=ct[mt.responseDelimited?"decodeDelimited":"decode"](Pt)}catch(Jt){return mt.emit("error",Jt,b),ht(Jt)}return mt.emit("data",Pt,b),ht(null,Pt)})}catch(vt){mt.emit("error",vt,b),setTimeout(function(){ht(vt)},0);return}};Service$1.prototype.end=function d(b){return this.rpcImpl&&(b||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(d){var b=d;b.Service=service$1})(rpc$1);var roots$1={};(function(d){var b=d;b.build="minimal",b.Writer=writer$1,b.BufferWriter=writer_buffer$1,b.Reader=reader$2,b.BufferReader=reader_buffer$1,b.util=requireMinimal$1(),b.rpc=rpc$1,b.roots=roots$1,b.configure=dt;function dt(){b.util._configure(),b.Writer._configure(b.BufferWriter),b.Reader._configure(b.BufferReader)}dt()})(indexMinimal$1);var minimal$2=indexMinimal$1,__createBinding$9=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$9=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$9=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$9(b,d,dt);return __setModuleDefault$9(b,d),b},__importDefault$j=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(helpers,"__esModule",{value:!0});helpers.fromJsonTimestamp=helpers.fromTimestamp=helpers.toTimestamp=helpers.setPaginationParams=helpers.isObject=helpers.isSet=helpers.fromDuration=helpers.toDuration=helpers.omitDefault=helpers.base64FromBytes=helpers.bytesFromBase64=helpers.Long=void 0;const _m0$9=__importStar$9(minimal$2),long_1$8=__importDefault$j(long);helpers.Long=long_1$8.default;_m0$9.util.Long!==long_1$8.default&&(_m0$9.util.Long=long_1$8.default,_m0$9.configure());var globalThis$2=(()=>{if(typeof globalThis$2<"u")return globalThis$2;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();const atob$2=globalThis$2.atob||(d=>globalThis$2.Buffer.from(d,"base64").toString("binary"));function bytesFromBase64$1(d){const b=atob$2(d),dt=new Uint8Array(b.length);for(let ct=0;ctglobalThis$2.Buffer.from(d,"binary").toString("base64"));function base64FromBytes$1(d){const b=[];return d.forEach(dt=>{b.push(String.fromCharCode(dt))}),btoa$2(b.join(""))}helpers.base64FromBytes=base64FromBytes$1;function omitDefault$1(d){if(typeof d=="string")return d===""?void 0:d;if(typeof d=="number")return d===0?void 0:d;if(long_1$8.default.isLong(d))return d.isZero()?void 0:d;throw new Error(`Got unsupported type ${typeof d}`)}helpers.omitDefault=omitDefault$1;function toDuration(d){return{seconds:long_1$8.default.fromNumber(Math.floor(parseInt(d)/1e9)),nanos:parseInt(d)%1e9}}helpers.toDuration=toDuration;function fromDuration(d){return(parseInt(d.seconds.toString())*1e9+d.nanos).toString()}helpers.fromDuration=fromDuration;function isSet$6(d){return d!=null}helpers.isSet=isSet$6;function isObject$1(d){return typeof d=="object"&&d!==null}helpers.isObject=isObject$1;const setPaginationParams=(d,b)=>(b&&(typeof(b==null?void 0:b.countTotal)<"u"&&(d.params["pagination.count_total"]=b.countTotal),typeof(b==null?void 0:b.key)<"u"&&(d.params["pagination.key"]=Buffer$1.from(b.key).toString("base64")),typeof(b==null?void 0:b.limit)<"u"&&(d.params["pagination.limit"]=b.limit.toString()),typeof(b==null?void 0:b.offset)<"u"&&(d.params["pagination.offset"]=b.offset.toString()),typeof(b==null?void 0:b.reverse)<"u"&&(d.params["pagination.reverse"]=b.reverse)),d);helpers.setPaginationParams=setPaginationParams;function toTimestamp(d){const b=numberToLong(d.getTime()/1e3),dt=d.getTime()%1e3*1e6;return{seconds:b,nanos:dt}}helpers.toTimestamp=toTimestamp;function fromTimestamp(d){let b=d.seconds.toNumber()*1e3;return b+=d.nanos/1e6,new Date(b)}helpers.fromTimestamp=fromTimestamp;const timestampFromJSON=d=>({seconds:isSet$6(d.seconds)?long_1$8.default.fromValue(d.seconds):long_1$8.default.ZERO,nanos:isSet$6(d.nanos)?Number(d.nanos):0});function fromJsonTimestamp(d){return d instanceof Date?toTimestamp(d):typeof d=="string"?toTimestamp(new Date(d)):timestampFromJSON(d)}helpers.fromJsonTimestamp=fromJsonTimestamp;function numberToLong(d){return long_1$8.default.fromNumber(d)}var __createBinding$8=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$8=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$8=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$8(b,d,dt);return __setModuleDefault$8(b,d),b};Object.defineProperty(pagination$2,"__esModule",{value:!0});pagination$2.PageResponse=pagination$2.PageRequest=pagination$2.protobufPackage=void 0;const helpers_1$8=helpers,_m0$8=__importStar$8(minimal$2);pagination$2.protobufPackage="cosmos.base.query.v1beta1";function createBasePageRequest$1(){return{key:new Uint8Array,offset:helpers_1$8.Long.UZERO,limit:helpers_1$8.Long.UZERO,countTotal:!1,reverse:!1}}pagination$2.PageRequest={encode(d,b=_m0$8.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),d.offset.isZero()||b.uint32(16).uint64(d.offset),d.limit.isZero()||b.uint32(24).uint64(d.limit),d.countTotal===!0&&b.uint32(32).bool(d.countTotal),d.reverse===!0&&b.uint32(40).bool(d.reverse),b},decode(d,b){const dt=d instanceof _m0$8.Reader?d:new _m0$8.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageRequest$1();for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;case 2:lt.offset=dt.uint64();break;case 3:lt.limit=dt.uint64();break;case 4:lt.countTotal=dt.bool();break;case 5:lt.reverse=dt.bool();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{key:(0,helpers_1$8.isSet)(d.key)?(0,helpers_1$8.bytesFromBase64)(d.key):new Uint8Array,offset:(0,helpers_1$8.isSet)(d.offset)?helpers_1$8.Long.fromValue(d.offset):helpers_1$8.Long.UZERO,limit:(0,helpers_1$8.isSet)(d.limit)?helpers_1$8.Long.fromValue(d.limit):helpers_1$8.Long.UZERO,countTotal:(0,helpers_1$8.isSet)(d.countTotal)?!!d.countTotal:!1,reverse:(0,helpers_1$8.isSet)(d.reverse)?!!d.reverse:!1}},toJSON(d){const b={};return d.key!==void 0&&(b.key=(0,helpers_1$8.base64FromBytes)(d.key!==void 0?d.key:new Uint8Array)),d.offset!==void 0&&(b.offset=(d.offset||helpers_1$8.Long.UZERO).toString()),d.limit!==void 0&&(b.limit=(d.limit||helpers_1$8.Long.UZERO).toString()),d.countTotal!==void 0&&(b.countTotal=d.countTotal),d.reverse!==void 0&&(b.reverse=d.reverse),b},fromPartial(d){const b=createBasePageRequest$1();return b.key=d.key??new Uint8Array,b.offset=d.offset!==void 0&&d.offset!==null?helpers_1$8.Long.fromValue(d.offset):helpers_1$8.Long.UZERO,b.limit=d.limit!==void 0&&d.limit!==null?helpers_1$8.Long.fromValue(d.limit):helpers_1$8.Long.UZERO,b.countTotal=d.countTotal??!1,b.reverse=d.reverse??!1,b}};function createBasePageResponse$1(){return{nextKey:new Uint8Array,total:helpers_1$8.Long.UZERO}}pagination$2.PageResponse={encode(d,b=_m0$8.Writer.create()){return d.nextKey.length!==0&&b.uint32(10).bytes(d.nextKey),d.total.isZero()||b.uint32(16).uint64(d.total),b},decode(d,b){const dt=d instanceof _m0$8.Reader?d:new _m0$8.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageResponse$1();for(;dt.pos>>3){case 1:lt.nextKey=dt.bytes();break;case 2:lt.total=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{nextKey:(0,helpers_1$8.isSet)(d.nextKey)?(0,helpers_1$8.bytesFromBase64)(d.nextKey):new Uint8Array,total:(0,helpers_1$8.isSet)(d.total)?helpers_1$8.Long.fromValue(d.total):helpers_1$8.Long.UZERO}},toJSON(d){const b={};return d.nextKey!==void 0&&(b.nextKey=(0,helpers_1$8.base64FromBytes)(d.nextKey!==void 0?d.nextKey:new Uint8Array)),d.total!==void 0&&(b.total=(d.total||helpers_1$8.Long.UZERO).toString()),b},fromPartial(d){const b=createBasePageResponse$1();return b.nextKey=d.nextKey??new Uint8Array,b.total=d.total!==void 0&&d.total!==null?helpers_1$8.Long.fromValue(d.total):helpers_1$8.Long.UZERO,b}};var distribution={},coin$1={},__createBinding$7=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$7=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$7=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$7(b,d,dt);return __setModuleDefault$7(b,d),b};Object.defineProperty(coin$1,"__esModule",{value:!0});coin$1.DecProto=coin$1.IntProto=coin$1.DecCoin=coin$1.Coin=coin$1.protobufPackage=void 0;const _m0$7=__importStar$7(minimal$2),helpers_1$7=helpers;coin$1.protobufPackage="cosmos.base.v1beta1";function createBaseCoin(){return{denom:"",amount:""}}coin$1.Coin={encode(d,b=_m0$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseCoin();for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{denom:(0,helpers_1$7.isSet)(d.denom)?String(d.denom):"",amount:(0,helpers_1$7.isSet)(d.amount)?String(d.amount):""}},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b=createBaseCoin();return b.denom=d.denom??"",b.amount=d.amount??"",b}};function createBaseDecCoin(){return{denom:"",amount:""}}coin$1.DecCoin={encode(d,b=_m0$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDecCoin();for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{denom:(0,helpers_1$7.isSet)(d.denom)?String(d.denom):"",amount:(0,helpers_1$7.isSet)(d.amount)?String(d.amount):""}},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b=createBaseDecCoin();return b.denom=d.denom??"",b.amount=d.amount??"",b}};function createBaseIntProto(){return{int:""}}coin$1.IntProto={encode(d,b=_m0$7.Writer.create()){return d.int!==""&&b.uint32(10).string(d.int),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseIntProto();for(;dt.pos>>3){case 1:lt.int=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{int:(0,helpers_1$7.isSet)(d.int)?String(d.int):""}},toJSON(d){const b={};return d.int!==void 0&&(b.int=d.int),b},fromPartial(d){const b=createBaseIntProto();return b.int=d.int??"",b}};function createBaseDecProto(){return{dec:""}}coin$1.DecProto={encode(d,b=_m0$7.Writer.create()){return d.dec!==""&&b.uint32(10).string(d.dec),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDecProto();for(;dt.pos>>3){case 1:lt.dec=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{dec:(0,helpers_1$7.isSet)(d.dec)?String(d.dec):""}},toJSON(d){const b={};return d.dec!==void 0&&(b.dec=d.dec),b},fromPartial(d){const b=createBaseDecProto();return b.dec=d.dec??"",b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt);var Ht=Object.getOwnPropertyDescriptor(Tt,Mt);(!Ht||("get"in Ht?!Tt.__esModule:Ht.writable||Ht.configurable))&&(Ht={enumerable:!0,get:function(){return Tt[Mt]}}),Object.defineProperty(Bt,jt,Ht)}:function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt),Bt[jt]=Tt[Mt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Bt,Tt){Object.defineProperty(Bt,"default",{enumerable:!0,value:Tt})}:function(Bt,Tt){Bt.default=Tt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Bt){if(Bt&&Bt.__esModule)return Bt;var Tt={};if(Bt!=null)for(var Mt in Bt)Mt!=="default"&&Object.prototype.hasOwnProperty.call(Bt,Mt)&&b(Tt,Bt,Mt);return dt(Tt,Bt),Tt};Object.defineProperty(d,"__esModule",{value:!0}),d.CommunityPoolSpendProposalWithDeposit=d.DelegationDelegatorReward=d.DelegatorStartingInfo=d.CommunityPoolSpendProposal=d.FeePool=d.ValidatorSlashEvents=d.ValidatorSlashEvent=d.ValidatorOutstandingRewards=d.ValidatorAccumulatedCommission=d.ValidatorCurrentRewards=d.ValidatorHistoricalRewards=d.Params=d.protobufPackage=void 0;const lt=coin$1,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmos.distribution.v1beta1";function vt(){return{communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1}}d.Params={encode(Bt,Tt=ht.Writer.create()){return Bt.communityTax!==""&&Tt.uint32(10).string(Bt.communityTax),Bt.baseProposerReward!==""&&Tt.uint32(18).string(Bt.baseProposerReward),Bt.bonusProposerReward!==""&&Tt.uint32(26).string(Bt.bonusProposerReward),Bt.withdrawAddrEnabled===!0&&Tt.uint32(32).bool(Bt.withdrawAddrEnabled),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=vt();for(;Mt.pos>>3){case 1:Ht.communityTax=Mt.string();break;case 2:Ht.baseProposerReward=Mt.string();break;case 3:Ht.bonusProposerReward=Mt.string();break;case 4:Ht.withdrawAddrEnabled=Mt.bool();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{communityTax:(0,mt.isSet)(Bt.communityTax)?String(Bt.communityTax):"",baseProposerReward:(0,mt.isSet)(Bt.baseProposerReward)?String(Bt.baseProposerReward):"",bonusProposerReward:(0,mt.isSet)(Bt.bonusProposerReward)?String(Bt.bonusProposerReward):"",withdrawAddrEnabled:(0,mt.isSet)(Bt.withdrawAddrEnabled)?!!Bt.withdrawAddrEnabled:!1}},toJSON(Bt){const Tt={};return Bt.communityTax!==void 0&&(Tt.communityTax=Bt.communityTax),Bt.baseProposerReward!==void 0&&(Tt.baseProposerReward=Bt.baseProposerReward),Bt.bonusProposerReward!==void 0&&(Tt.bonusProposerReward=Bt.bonusProposerReward),Bt.withdrawAddrEnabled!==void 0&&(Tt.withdrawAddrEnabled=Bt.withdrawAddrEnabled),Tt},fromPartial(Bt){const Tt=vt();return Tt.communityTax=Bt.communityTax??"",Tt.baseProposerReward=Bt.baseProposerReward??"",Tt.bonusProposerReward=Bt.bonusProposerReward??"",Tt.withdrawAddrEnabled=Bt.withdrawAddrEnabled??!1,Tt}};function kt(){return{cumulativeRewardRatio:[],referenceCount:0}}d.ValidatorHistoricalRewards={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.cumulativeRewardRatio)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Bt.referenceCount!==0&&Tt.uint32(16).uint32(Bt.referenceCount),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=kt();for(;Mt.pos>>3){case 1:Ht.cumulativeRewardRatio.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;case 2:Ht.referenceCount=Mt.uint32();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{cumulativeRewardRatio:Array.isArray(Bt==null?void 0:Bt.cumulativeRewardRatio)?Bt.cumulativeRewardRatio.map(Tt=>lt.DecCoin.fromJSON(Tt)):[],referenceCount:(0,mt.isSet)(Bt.referenceCount)?Number(Bt.referenceCount):0}},toJSON(Bt){const Tt={};return Bt.cumulativeRewardRatio?Tt.cumulativeRewardRatio=Bt.cumulativeRewardRatio.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.cumulativeRewardRatio=[],Bt.referenceCount!==void 0&&(Tt.referenceCount=Math.round(Bt.referenceCount)),Tt},fromPartial(Bt){var Mt;const Tt=kt();return Tt.cumulativeRewardRatio=((Mt=Bt.cumulativeRewardRatio)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt.referenceCount=Bt.referenceCount??0,Tt}};function Pt(){return{rewards:[],period:mt.Long.UZERO}}d.ValidatorCurrentRewards={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.rewards)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Bt.period.isZero()||Tt.uint32(16).uint64(Bt.period),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Pt();for(;Mt.pos>>3){case 1:Ht.rewards.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;case 2:Ht.period=Mt.uint64();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{rewards:Array.isArray(Bt==null?void 0:Bt.rewards)?Bt.rewards.map(Tt=>lt.DecCoin.fromJSON(Tt)):[],period:(0,mt.isSet)(Bt.period)?mt.Long.fromValue(Bt.period):mt.Long.UZERO}},toJSON(Bt){const Tt={};return Bt.rewards?Tt.rewards=Bt.rewards.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.rewards=[],Bt.period!==void 0&&(Tt.period=(Bt.period||mt.Long.UZERO).toString()),Tt},fromPartial(Bt){var Mt;const Tt=Pt();return Tt.rewards=((Mt=Bt.rewards)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt.period=Bt.period!==void 0&&Bt.period!==null?mt.Long.fromValue(Bt.period):mt.Long.UZERO,Tt}};function Jt(){return{commission:[]}}d.ValidatorAccumulatedCommission={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.commission)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Jt();for(;Mt.pos>>3){case 1:Ht.commission.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{commission:Array.isArray(Bt==null?void 0:Bt.commission)?Bt.commission.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.commission?Tt.commission=Bt.commission.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.commission=[],Tt},fromPartial(Bt){var Mt;const Tt=Jt();return Tt.commission=((Mt=Bt.commission)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Zt(){return{rewards:[]}}d.ValidatorOutstandingRewards={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.rewards)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Zt();for(;Mt.pos>>3){case 1:Ht.rewards.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{rewards:Array.isArray(Bt==null?void 0:Bt.rewards)?Bt.rewards.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.rewards?Tt.rewards=Bt.rewards.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.rewards=[],Tt},fromPartial(Bt){var Mt;const Tt=Zt();return Tt.rewards=((Mt=Bt.rewards)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Rt(){return{validatorPeriod:mt.Long.UZERO,fraction:""}}d.ValidatorSlashEvent={encode(Bt,Tt=ht.Writer.create()){return Bt.validatorPeriod.isZero()||Tt.uint32(8).uint64(Bt.validatorPeriod),Bt.fraction!==""&&Tt.uint32(18).string(Bt.fraction),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Rt();for(;Mt.pos>>3){case 1:Ht.validatorPeriod=Mt.uint64();break;case 2:Ht.fraction=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorPeriod:(0,mt.isSet)(Bt.validatorPeriod)?mt.Long.fromValue(Bt.validatorPeriod):mt.Long.UZERO,fraction:(0,mt.isSet)(Bt.fraction)?String(Bt.fraction):""}},toJSON(Bt){const Tt={};return Bt.validatorPeriod!==void 0&&(Tt.validatorPeriod=(Bt.validatorPeriod||mt.Long.UZERO).toString()),Bt.fraction!==void 0&&(Tt.fraction=Bt.fraction),Tt},fromPartial(Bt){const Tt=Rt();return Tt.validatorPeriod=Bt.validatorPeriod!==void 0&&Bt.validatorPeriod!==null?mt.Long.fromValue(Bt.validatorPeriod):mt.Long.UZERO,Tt.fraction=Bt.fraction??"",Tt}};function nn(){return{validatorSlashEvents:[]}}d.ValidatorSlashEvents={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.validatorSlashEvents)d.ValidatorSlashEvent.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=nn();for(;Mt.pos>>3){case 1:Ht.validatorSlashEvents.push(d.ValidatorSlashEvent.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorSlashEvents:Array.isArray(Bt==null?void 0:Bt.validatorSlashEvents)?Bt.validatorSlashEvents.map(Tt=>d.ValidatorSlashEvent.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.validatorSlashEvents?Tt.validatorSlashEvents=Bt.validatorSlashEvents.map(Mt=>Mt?d.ValidatorSlashEvent.toJSON(Mt):void 0):Tt.validatorSlashEvents=[],Tt},fromPartial(Bt){var Mt;const Tt=nn();return Tt.validatorSlashEvents=((Mt=Bt.validatorSlashEvents)==null?void 0:Mt.map(jt=>d.ValidatorSlashEvent.fromPartial(jt)))||[],Tt}};function Qt(){return{communityPool:[]}}d.FeePool={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.communityPool)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Qt();for(;Mt.pos>>3){case 1:Ht.communityPool.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{communityPool:Array.isArray(Bt==null?void 0:Bt.communityPool)?Bt.communityPool.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.communityPool?Tt.communityPool=Bt.communityPool.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.communityPool=[],Tt},fromPartial(Bt){var Mt;const Tt=Qt();return Tt.communityPool=((Mt=Bt.communityPool)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function wt(){return{title:"",description:"",recipient:"",amount:[]}}d.CommunityPoolSpendProposal={encode(Bt,Tt=ht.Writer.create()){Bt.title!==""&&Tt.uint32(10).string(Bt.title),Bt.description!==""&&Tt.uint32(18).string(Bt.description),Bt.recipient!==""&&Tt.uint32(26).string(Bt.recipient);for(const Mt of Bt.amount)lt.Coin.encode(Mt,Tt.uint32(34).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=wt();for(;Mt.pos>>3){case 1:Ht.title=Mt.string();break;case 2:Ht.description=Mt.string();break;case 3:Ht.recipient=Mt.string();break;case 4:Ht.amount.push(lt.Coin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{title:(0,mt.isSet)(Bt.title)?String(Bt.title):"",description:(0,mt.isSet)(Bt.description)?String(Bt.description):"",recipient:(0,mt.isSet)(Bt.recipient)?String(Bt.recipient):"",amount:Array.isArray(Bt==null?void 0:Bt.amount)?Bt.amount.map(Tt=>lt.Coin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.title!==void 0&&(Tt.title=Bt.title),Bt.description!==void 0&&(Tt.description=Bt.description),Bt.recipient!==void 0&&(Tt.recipient=Bt.recipient),Bt.amount?Tt.amount=Bt.amount.map(Mt=>Mt?lt.Coin.toJSON(Mt):void 0):Tt.amount=[],Tt},fromPartial(Bt){var Mt;const Tt=wt();return Tt.title=Bt.title??"",Tt.description=Bt.description??"",Tt.recipient=Bt.recipient??"",Tt.amount=((Mt=Bt.amount)==null?void 0:Mt.map(jt=>lt.Coin.fromPartial(jt)))||[],Tt}};function Nt(){return{previousPeriod:mt.Long.UZERO,stake:"",height:mt.Long.UZERO}}d.DelegatorStartingInfo={encode(Bt,Tt=ht.Writer.create()){return Bt.previousPeriod.isZero()||Tt.uint32(8).uint64(Bt.previousPeriod),Bt.stake!==""&&Tt.uint32(18).string(Bt.stake),Bt.height.isZero()||Tt.uint32(24).uint64(Bt.height),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Nt();for(;Mt.pos>>3){case 1:Ht.previousPeriod=Mt.uint64();break;case 2:Ht.stake=Mt.string();break;case 3:Ht.height=Mt.uint64();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{previousPeriod:(0,mt.isSet)(Bt.previousPeriod)?mt.Long.fromValue(Bt.previousPeriod):mt.Long.UZERO,stake:(0,mt.isSet)(Bt.stake)?String(Bt.stake):"",height:(0,mt.isSet)(Bt.height)?mt.Long.fromValue(Bt.height):mt.Long.UZERO}},toJSON(Bt){const Tt={};return Bt.previousPeriod!==void 0&&(Tt.previousPeriod=(Bt.previousPeriod||mt.Long.UZERO).toString()),Bt.stake!==void 0&&(Tt.stake=Bt.stake),Bt.height!==void 0&&(Tt.height=(Bt.height||mt.Long.UZERO).toString()),Tt},fromPartial(Bt){const Tt=Nt();return Tt.previousPeriod=Bt.previousPeriod!==void 0&&Bt.previousPeriod!==null?mt.Long.fromValue(Bt.previousPeriod):mt.Long.UZERO,Tt.stake=Bt.stake??"",Tt.height=Bt.height!==void 0&&Bt.height!==null?mt.Long.fromValue(Bt.height):mt.Long.UZERO,Tt}};function xt(){return{validatorAddress:"",reward:[]}}d.DelegationDelegatorReward={encode(Bt,Tt=ht.Writer.create()){Bt.validatorAddress!==""&&Tt.uint32(10).string(Bt.validatorAddress);for(const Mt of Bt.reward)lt.DecCoin.encode(Mt,Tt.uint32(18).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=xt();for(;Mt.pos>>3){case 1:Ht.validatorAddress=Mt.string();break;case 2:Ht.reward.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorAddress:(0,mt.isSet)(Bt.validatorAddress)?String(Bt.validatorAddress):"",reward:Array.isArray(Bt==null?void 0:Bt.reward)?Bt.reward.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.validatorAddress!==void 0&&(Tt.validatorAddress=Bt.validatorAddress),Bt.reward?Tt.reward=Bt.reward.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.reward=[],Tt},fromPartial(Bt){var Mt;const Tt=xt();return Tt.validatorAddress=Bt.validatorAddress??"",Tt.reward=((Mt=Bt.reward)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Et(){return{title:"",description:"",recipient:"",amount:"",deposit:""}}d.CommunityPoolSpendProposalWithDeposit={encode(Bt,Tt=ht.Writer.create()){return Bt.title!==""&&Tt.uint32(10).string(Bt.title),Bt.description!==""&&Tt.uint32(18).string(Bt.description),Bt.recipient!==""&&Tt.uint32(26).string(Bt.recipient),Bt.amount!==""&&Tt.uint32(34).string(Bt.amount),Bt.deposit!==""&&Tt.uint32(42).string(Bt.deposit),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Et();for(;Mt.pos>>3){case 1:Ht.title=Mt.string();break;case 2:Ht.description=Mt.string();break;case 3:Ht.recipient=Mt.string();break;case 4:Ht.amount=Mt.string();break;case 5:Ht.deposit=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{title:(0,mt.isSet)(Bt.title)?String(Bt.title):"",description:(0,mt.isSet)(Bt.description)?String(Bt.description):"",recipient:(0,mt.isSet)(Bt.recipient)?String(Bt.recipient):"",amount:(0,mt.isSet)(Bt.amount)?String(Bt.amount):"",deposit:(0,mt.isSet)(Bt.deposit)?String(Bt.deposit):""}},toJSON(Bt){const Tt={};return Bt.title!==void 0&&(Tt.title=Bt.title),Bt.description!==void 0&&(Tt.description=Bt.description),Bt.recipient!==void 0&&(Tt.recipient=Bt.recipient),Bt.amount!==void 0&&(Tt.amount=Bt.amount),Bt.deposit!==void 0&&(Tt.deposit=Bt.deposit),Tt},fromPartial(Bt){const Tt=Et();return Tt.title=Bt.title??"",Tt.description=Bt.description??"",Tt.recipient=Bt.recipient??"",Tt.amount=Bt.amount??"",Tt.deposit=Bt.deposit??"",Tt}}})(distribution);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Kt,St,It,Gt){Gt===void 0&&(Gt=It);var Ut=Object.getOwnPropertyDescriptor(St,It);(!Ut||("get"in Ut?!St.__esModule:Ut.writable||Ut.configurable))&&(Ut={enumerable:!0,get:function(){return St[It]}}),Object.defineProperty(Kt,Gt,Ut)}:function(Kt,St,It,Gt){Gt===void 0&&(Gt=It),Kt[Gt]=St[It]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Kt,St){Object.defineProperty(Kt,"default",{enumerable:!0,value:St})}:function(Kt,St){Kt.default=St}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Kt){if(Kt&&Kt.__esModule)return Kt;var St={};if(Kt!=null)for(var It in Kt)It!=="default"&&Object.prototype.hasOwnProperty.call(Kt,It)&&b(St,Kt,It);return dt(St,Kt),St};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryCommunityPoolResponse=d.QueryCommunityPoolRequest=d.QueryDelegatorWithdrawAddressResponse=d.QueryDelegatorWithdrawAddressRequest=d.QueryDelegatorValidatorsResponse=d.QueryDelegatorValidatorsRequest=d.QueryDelegationTotalRewardsResponse=d.QueryDelegationTotalRewardsRequest=d.QueryDelegationRewardsResponse=d.QueryDelegationRewardsRequest=d.QueryValidatorSlashesResponse=d.QueryValidatorSlashesRequest=d.QueryValidatorCommissionResponse=d.QueryValidatorCommissionRequest=d.QueryValidatorOutstandingRewardsResponse=d.QueryValidatorOutstandingRewardsRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const lt=pagination$2,ht=distribution,mt=coin$1,vt=ct(minimal$2),kt=helpers;d.protobufPackage="cosmos.distribution.v1beta1";function Pt(){return{}}d.QueryParamsRequest={encode(Kt,St=vt.Writer.create()){return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Pt();for(;It.pos>>3){default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{}},toJSON(Kt){return{}},fromPartial(Kt){return Pt()}};function Jt(){return{params:void 0}}d.QueryParamsResponse={encode(Kt,St=vt.Writer.create()){return Kt.params!==void 0&&ht.Params.encode(Kt.params,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Jt();for(;It.pos>>3){case 1:Ut.params=ht.Params.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{params:(0,kt.isSet)(Kt.params)?ht.Params.fromJSON(Kt.params):void 0}},toJSON(Kt){const St={};return Kt.params!==void 0&&(St.params=Kt.params?ht.Params.toJSON(Kt.params):void 0),St},fromPartial(Kt){const St=Jt();return St.params=Kt.params!==void 0&&Kt.params!==null?ht.Params.fromPartial(Kt.params):void 0,St}};function Zt(){return{validatorAddress:""}}d.QueryValidatorOutstandingRewardsRequest={encode(Kt,St=vt.Writer.create()){return Kt.validatorAddress!==""&&St.uint32(10).string(Kt.validatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Zt();for(;It.pos>>3){case 1:Ut.validatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):""}},toJSON(Kt){const St={};return Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),St},fromPartial(Kt){const St=Zt();return St.validatorAddress=Kt.validatorAddress??"",St}};function Rt(){return{rewards:void 0}}d.QueryValidatorOutstandingRewardsResponse={encode(Kt,St=vt.Writer.create()){return Kt.rewards!==void 0&&ht.ValidatorOutstandingRewards.encode(Kt.rewards,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Rt();for(;It.pos>>3){case 1:Ut.rewards=ht.ValidatorOutstandingRewards.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{rewards:(0,kt.isSet)(Kt.rewards)?ht.ValidatorOutstandingRewards.fromJSON(Kt.rewards):void 0}},toJSON(Kt){const St={};return Kt.rewards!==void 0&&(St.rewards=Kt.rewards?ht.ValidatorOutstandingRewards.toJSON(Kt.rewards):void 0),St},fromPartial(Kt){const St=Rt();return St.rewards=Kt.rewards!==void 0&&Kt.rewards!==null?ht.ValidatorOutstandingRewards.fromPartial(Kt.rewards):void 0,St}};function nn(){return{validatorAddress:""}}d.QueryValidatorCommissionRequest={encode(Kt,St=vt.Writer.create()){return Kt.validatorAddress!==""&&St.uint32(10).string(Kt.validatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=nn();for(;It.pos>>3){case 1:Ut.validatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):""}},toJSON(Kt){const St={};return Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),St},fromPartial(Kt){const St=nn();return St.validatorAddress=Kt.validatorAddress??"",St}};function Qt(){return{commission:void 0}}d.QueryValidatorCommissionResponse={encode(Kt,St=vt.Writer.create()){return Kt.commission!==void 0&&ht.ValidatorAccumulatedCommission.encode(Kt.commission,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Qt();for(;It.pos>>3){case 1:Ut.commission=ht.ValidatorAccumulatedCommission.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{commission:(0,kt.isSet)(Kt.commission)?ht.ValidatorAccumulatedCommission.fromJSON(Kt.commission):void 0}},toJSON(Kt){const St={};return Kt.commission!==void 0&&(St.commission=Kt.commission?ht.ValidatorAccumulatedCommission.toJSON(Kt.commission):void 0),St},fromPartial(Kt){const St=Qt();return St.commission=Kt.commission!==void 0&&Kt.commission!==null?ht.ValidatorAccumulatedCommission.fromPartial(Kt.commission):void 0,St}};function wt(){return{validatorAddress:"",startingHeight:kt.Long.UZERO,endingHeight:kt.Long.UZERO,pagination:void 0}}d.QueryValidatorSlashesRequest={encode(Kt,St=vt.Writer.create()){return Kt.validatorAddress!==""&&St.uint32(10).string(Kt.validatorAddress),Kt.startingHeight.isZero()||St.uint32(16).uint64(Kt.startingHeight),Kt.endingHeight.isZero()||St.uint32(24).uint64(Kt.endingHeight),Kt.pagination!==void 0&<.PageRequest.encode(Kt.pagination,St.uint32(34).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=wt();for(;It.pos>>3){case 1:Ut.validatorAddress=It.string();break;case 2:Ut.startingHeight=It.uint64();break;case 3:Ut.endingHeight=It.uint64();break;case 4:Ut.pagination=lt.PageRequest.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):"",startingHeight:(0,kt.isSet)(Kt.startingHeight)?kt.Long.fromValue(Kt.startingHeight):kt.Long.UZERO,endingHeight:(0,kt.isSet)(Kt.endingHeight)?kt.Long.fromValue(Kt.endingHeight):kt.Long.UZERO,pagination:(0,kt.isSet)(Kt.pagination)?lt.PageRequest.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),Kt.startingHeight!==void 0&&(St.startingHeight=(Kt.startingHeight||kt.Long.UZERO).toString()),Kt.endingHeight!==void 0&&(St.endingHeight=(Kt.endingHeight||kt.Long.UZERO).toString()),Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageRequest.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){const St=wt();return St.validatorAddress=Kt.validatorAddress??"",St.startingHeight=Kt.startingHeight!==void 0&&Kt.startingHeight!==null?kt.Long.fromValue(Kt.startingHeight):kt.Long.UZERO,St.endingHeight=Kt.endingHeight!==void 0&&Kt.endingHeight!==null?kt.Long.fromValue(Kt.endingHeight):kt.Long.UZERO,St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageRequest.fromPartial(Kt.pagination):void 0,St}};function Nt(){return{slashes:[],pagination:void 0}}d.QueryValidatorSlashesResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.slashes)ht.ValidatorSlashEvent.encode(It,St.uint32(10).fork()).ldelim();return Kt.pagination!==void 0&<.PageResponse.encode(Kt.pagination,St.uint32(18).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Nt();for(;It.pos>>3){case 1:Ut.slashes.push(ht.ValidatorSlashEvent.decode(It,It.uint32()));break;case 2:Ut.pagination=lt.PageResponse.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{slashes:Array.isArray(Kt==null?void 0:Kt.slashes)?Kt.slashes.map(St=>ht.ValidatorSlashEvent.fromJSON(St)):[],pagination:(0,kt.isSet)(Kt.pagination)?lt.PageResponse.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.slashes?St.slashes=Kt.slashes.map(It=>It?ht.ValidatorSlashEvent.toJSON(It):void 0):St.slashes=[],Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageResponse.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){var It;const St=Nt();return St.slashes=((It=Kt.slashes)==null?void 0:It.map(Gt=>ht.ValidatorSlashEvent.fromPartial(Gt)))||[],St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageResponse.fromPartial(Kt.pagination):void 0,St}};function xt(){return{delegatorAddress:"",validatorAddress:""}}d.QueryDelegationRewardsRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),Kt.validatorAddress!==""&&St.uint32(18).string(Kt.validatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=xt();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;case 2:Ut.validatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):"",validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),St},fromPartial(Kt){const St=xt();return St.delegatorAddress=Kt.delegatorAddress??"",St.validatorAddress=Kt.validatorAddress??"",St}};function Et(){return{rewards:[]}}d.QueryDelegationRewardsResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.rewards)mt.DecCoin.encode(It,St.uint32(10).fork()).ldelim();return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Et();for(;It.pos>>3){case 1:Ut.rewards.push(mt.DecCoin.decode(It,It.uint32()));break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{rewards:Array.isArray(Kt==null?void 0:Kt.rewards)?Kt.rewards.map(St=>mt.DecCoin.fromJSON(St)):[]}},toJSON(Kt){const St={};return Kt.rewards?St.rewards=Kt.rewards.map(It=>It?mt.DecCoin.toJSON(It):void 0):St.rewards=[],St},fromPartial(Kt){var It;const St=Et();return St.rewards=((It=Kt.rewards)==null?void 0:It.map(Gt=>mt.DecCoin.fromPartial(Gt)))||[],St}};function Bt(){return{delegatorAddress:""}}d.QueryDelegationTotalRewardsRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Bt();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),St},fromPartial(Kt){const St=Bt();return St.delegatorAddress=Kt.delegatorAddress??"",St}};function Tt(){return{rewards:[],total:[]}}d.QueryDelegationTotalRewardsResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.rewards)ht.DelegationDelegatorReward.encode(It,St.uint32(10).fork()).ldelim();for(const It of Kt.total)mt.DecCoin.encode(It,St.uint32(18).fork()).ldelim();return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Tt();for(;It.pos>>3){case 1:Ut.rewards.push(ht.DelegationDelegatorReward.decode(It,It.uint32()));break;case 2:Ut.total.push(mt.DecCoin.decode(It,It.uint32()));break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{rewards:Array.isArray(Kt==null?void 0:Kt.rewards)?Kt.rewards.map(St=>ht.DelegationDelegatorReward.fromJSON(St)):[],total:Array.isArray(Kt==null?void 0:Kt.total)?Kt.total.map(St=>mt.DecCoin.fromJSON(St)):[]}},toJSON(Kt){const St={};return Kt.rewards?St.rewards=Kt.rewards.map(It=>It?ht.DelegationDelegatorReward.toJSON(It):void 0):St.rewards=[],Kt.total?St.total=Kt.total.map(It=>It?mt.DecCoin.toJSON(It):void 0):St.total=[],St},fromPartial(Kt){var It,Gt;const St=Tt();return St.rewards=((It=Kt.rewards)==null?void 0:It.map(Ut=>ht.DelegationDelegatorReward.fromPartial(Ut)))||[],St.total=((Gt=Kt.total)==null?void 0:Gt.map(Ut=>mt.DecCoin.fromPartial(Ut)))||[],St}};function Mt(){return{delegatorAddress:""}}d.QueryDelegatorValidatorsRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Mt();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),St},fromPartial(Kt){const St=Mt();return St.delegatorAddress=Kt.delegatorAddress??"",St}};function jt(){return{validators:[]}}d.QueryDelegatorValidatorsResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.validators)St.uint32(10).string(It);return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=jt();for(;It.pos>>3){case 1:Ut.validators.push(It.string());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validators:Array.isArray(Kt==null?void 0:Kt.validators)?Kt.validators.map(St=>String(St)):[]}},toJSON(Kt){const St={};return Kt.validators?St.validators=Kt.validators.map(It=>It):St.validators=[],St},fromPartial(Kt){var It;const St=jt();return St.validators=((It=Kt.validators)==null?void 0:It.map(Gt=>Gt))||[],St}};function Ht(){return{delegatorAddress:""}}d.QueryDelegatorWithdrawAddressRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Ht();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),St},fromPartial(Kt){const St=Ht();return St.delegatorAddress=Kt.delegatorAddress??"",St}};function an(){return{withdrawAddress:""}}d.QueryDelegatorWithdrawAddressResponse={encode(Kt,St=vt.Writer.create()){return Kt.withdrawAddress!==""&&St.uint32(10).string(Kt.withdrawAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=an();for(;It.pos>>3){case 1:Ut.withdrawAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{withdrawAddress:(0,kt.isSet)(Kt.withdrawAddress)?String(Kt.withdrawAddress):""}},toJSON(Kt){const St={};return Kt.withdrawAddress!==void 0&&(St.withdrawAddress=Kt.withdrawAddress),St},fromPartial(Kt){const St=an();return St.withdrawAddress=Kt.withdrawAddress??"",St}};function yt(){return{}}d.QueryCommunityPoolRequest={encode(Kt,St=vt.Writer.create()){return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=yt();for(;It.pos>>3){default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{}},toJSON(Kt){return{}},fromPartial(Kt){return yt()}};function $t(){return{pool:[]}}d.QueryCommunityPoolResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.pool)mt.DecCoin.encode(It,St.uint32(10).fork()).ldelim();return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=$t();for(;It.pos>>3){case 1:Ut.pool.push(mt.DecCoin.decode(It,It.uint32()));break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{pool:Array.isArray(Kt==null?void 0:Kt.pool)?Kt.pool.map(St=>mt.DecCoin.fromJSON(St)):[]}},toJSON(Kt){const St={};return Kt.pool?St.pool=Kt.pool.map(It=>It?mt.DecCoin.toJSON(It):void 0):St.pool=[],St},fromPartial(Kt){var It;const St=$t();return St.pool=((It=Kt.pool)==null?void 0:It.map(Gt=>mt.DecCoin.fromPartial(Gt)))||[],St}};class Yt{constructor(St){this.rpc=St,this.Params=this.Params.bind(this),this.ValidatorOutstandingRewards=this.ValidatorOutstandingRewards.bind(this),this.ValidatorCommission=this.ValidatorCommission.bind(this),this.ValidatorSlashes=this.ValidatorSlashes.bind(this),this.DelegationRewards=this.DelegationRewards.bind(this),this.DelegationTotalRewards=this.DelegationTotalRewards.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorWithdrawAddress=this.DelegatorWithdrawAddress.bind(this),this.CommunityPool=this.CommunityPool.bind(this)}Params(St={}){const It=d.QueryParamsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","Params",It).then(Ut=>d.QueryParamsResponse.decode(new vt.Reader(Ut)))}ValidatorOutstandingRewards(St){const It=d.QueryValidatorOutstandingRewardsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorOutstandingRewards",It).then(Ut=>d.QueryValidatorOutstandingRewardsResponse.decode(new vt.Reader(Ut)))}ValidatorCommission(St){const It=d.QueryValidatorCommissionRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorCommission",It).then(Ut=>d.QueryValidatorCommissionResponse.decode(new vt.Reader(Ut)))}ValidatorSlashes(St){const It=d.QueryValidatorSlashesRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorSlashes",It).then(Ut=>d.QueryValidatorSlashesResponse.decode(new vt.Reader(Ut)))}DelegationRewards(St){const It=d.QueryDelegationRewardsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationRewards",It).then(Ut=>d.QueryDelegationRewardsResponse.decode(new vt.Reader(Ut)))}DelegationTotalRewards(St){const It=d.QueryDelegationTotalRewardsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationTotalRewards",It).then(Ut=>d.QueryDelegationTotalRewardsResponse.decode(new vt.Reader(Ut)))}DelegatorValidators(St){const It=d.QueryDelegatorValidatorsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorValidators",It).then(Ut=>d.QueryDelegatorValidatorsResponse.decode(new vt.Reader(Ut)))}DelegatorWithdrawAddress(St){const It=d.QueryDelegatorWithdrawAddressRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorWithdrawAddress",It).then(Ut=>d.QueryDelegatorWithdrawAddressResponse.decode(new vt.Reader(Ut)))}CommunityPool(St={}){const It=d.QueryCommunityPoolRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","CommunityPool",It).then(Ut=>d.QueryCommunityPoolResponse.decode(new vt.Reader(Ut)))}}d.QueryClientImpl=Yt})(query$8);var query$7={},gov={},any={},__createBinding$6=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$6=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$6=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$6(b,d,dt);return __setModuleDefault$6(b,d),b};Object.defineProperty(any,"__esModule",{value:!0});any.Any=any.protobufPackage=void 0;const _m0$6=__importStar$6(minimal$2),helpers_1$6=helpers;any.protobufPackage="google.protobuf";function createBaseAny(){return{typeUrl:"",value:new Uint8Array}}any.Any={encode(d,b=_m0$6.Writer.create()){return d.typeUrl!==""&&b.uint32(10).string(d.typeUrl),d.value.length!==0&&b.uint32(18).bytes(d.value),b},decode(d,b){const dt=d instanceof _m0$6.Reader?d:new _m0$6.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseAny();for(;dt.pos>>3){case 1:lt.typeUrl=dt.string();break;case 2:lt.value=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{typeUrl:(0,helpers_1$6.isSet)(d.typeUrl)?String(d.typeUrl):"",value:(0,helpers_1$6.isSet)(d.value)?(0,helpers_1$6.bytesFromBase64)(d.value):new Uint8Array}},toJSON(d){const b={};return d.typeUrl!==void 0&&(b.typeUrl=d.typeUrl),d.value!==void 0&&(b.value=(0,helpers_1$6.base64FromBytes)(d.value!==void 0?d.value:new Uint8Array)),b},fromPartial(d){const b=createBaseAny();return b.typeUrl=d.typeUrl??"",b.value=d.value??new Uint8Array,b}};var timestamp={},__createBinding$5=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$5=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$5=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$5(b,d,dt);return __setModuleDefault$5(b,d),b};Object.defineProperty(timestamp,"__esModule",{value:!0});timestamp.Timestamp=timestamp.protobufPackage=void 0;const helpers_1$5=helpers,_m0$5=__importStar$5(minimal$2);timestamp.protobufPackage="google.protobuf";function createBaseTimestamp(){return{seconds:helpers_1$5.Long.ZERO,nanos:0}}timestamp.Timestamp={encode(d,b=_m0$5.Writer.create()){return d.seconds.isZero()||b.uint32(8).int64(d.seconds),d.nanos!==0&&b.uint32(16).int32(d.nanos),b},decode(d,b){const dt=d instanceof _m0$5.Reader?d:new _m0$5.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseTimestamp();for(;dt.pos>>3){case 1:lt.seconds=dt.int64();break;case 2:lt.nanos=dt.int32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{seconds:(0,helpers_1$5.isSet)(d.seconds)?helpers_1$5.Long.fromValue(d.seconds):helpers_1$5.Long.ZERO,nanos:(0,helpers_1$5.isSet)(d.nanos)?Number(d.nanos):0}},toJSON(d){const b={};return d.seconds!==void 0&&(b.seconds=(d.seconds||helpers_1$5.Long.ZERO).toString()),d.nanos!==void 0&&(b.nanos=Math.round(d.nanos)),b},fromPartial(d){const b=createBaseTimestamp();return b.seconds=d.seconds!==void 0&&d.seconds!==null?helpers_1$5.Long.fromValue(d.seconds):helpers_1$5.Long.ZERO,b.nanos=d.nanos??0,b}};var duration={},__createBinding$4=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$4=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$4=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$4(b,d,dt);return __setModuleDefault$4(b,d),b};Object.defineProperty(duration,"__esModule",{value:!0});duration.Duration=duration.protobufPackage=void 0;const helpers_1$4=helpers,_m0$4=__importStar$4(minimal$2);duration.protobufPackage="google.protobuf";function createBaseDuration(){return{seconds:helpers_1$4.Long.ZERO,nanos:0}}duration.Duration={encode(d,b=_m0$4.Writer.create()){return d.seconds.isZero()||b.uint32(8).int64(d.seconds),d.nanos!==0&&b.uint32(16).int32(d.nanos),b},decode(d,b){const dt=d instanceof _m0$4.Reader?d:new _m0$4.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDuration();for(;dt.pos>>3){case 1:lt.seconds=dt.int64();break;case 2:lt.nanos=dt.int32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{seconds:(0,helpers_1$4.isSet)(d.seconds)?helpers_1$4.Long.fromValue(d.seconds):helpers_1$4.Long.ZERO,nanos:(0,helpers_1$4.isSet)(d.nanos)?Number(d.nanos):0}},toJSON(d){const b={};return d.seconds!==void 0&&(b.seconds=(d.seconds||helpers_1$4.Long.ZERO).toString()),d.nanos!==void 0&&(b.nanos=Math.round(d.nanos)),b},fromPartial(d){const b=createBaseDuration();return b.seconds=d.seconds!==void 0&&d.seconds!==null?helpers_1$4.Long.fromValue(d.seconds):helpers_1$4.Long.ZERO,b.nanos=d.nanos??0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.TallyParams=d.VotingParams=d.DepositParams=d.Vote=d.TallyResult=d.Proposal=d.Deposit=d.TextProposal=d.WeightedVoteOption=d.proposalStatusToJSON=d.proposalStatusFromJSON=d.ProposalStatus=d.voteOptionToJSON=d.voteOptionFromJSON=d.VoteOption=d.protobufPackage=void 0;const lt=coin$1,ht=any,mt=timestamp,vt=duration,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="cosmos.gov.v1beta1";var Jt;(function(yt){yt[yt.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",yt[yt.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",yt[yt.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",yt[yt.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",yt[yt.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.VoteOption||(d.VoteOption={}));function Zt(yt){switch(yt){case 0:case"VOTE_OPTION_UNSPECIFIED":return Jt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return Jt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return Jt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return Jt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return Jt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.voteOptionFromJSON=Zt;function Rt(yt){switch(yt){case Jt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case Jt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case Jt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case Jt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case Jt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.voteOptionToJSON=Rt;var nn;(function(yt){yt[yt.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",yt[yt.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",yt[yt.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",yt[yt.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",yt[yt.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",yt[yt.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nn=d.ProposalStatus||(d.ProposalStatus={}));function Qt(yt){switch(yt){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return nn.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return nn.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return nn.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return nn.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return nn.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return nn.PROPOSAL_STATUS_FAILED;case-1:case"UNRECOGNIZED":default:return nn.UNRECOGNIZED}}d.proposalStatusFromJSON=Qt;function wt(yt){switch(yt){case nn.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case nn.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case nn.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case nn.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case nn.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case nn.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case nn.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.proposalStatusToJSON=wt;function Nt(){return{option:0,weight:""}}d.WeightedVoteOption={encode(yt,$t=kt.Writer.create()){return yt.option!==0&&$t.uint32(8).int32(yt.option),yt.weight!==""&&$t.uint32(18).string(yt.weight),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.option=Yt.int32();break;case 2:St.weight=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{option:(0,Pt.isSet)(yt.option)?Zt(yt.option):0,weight:(0,Pt.isSet)(yt.weight)?String(yt.weight):""}},toJSON(yt){const $t={};return yt.option!==void 0&&($t.option=Rt(yt.option)),yt.weight!==void 0&&($t.weight=yt.weight),$t},fromPartial(yt){const $t=Nt();return $t.option=yt.option??0,$t.weight=yt.weight??"",$t}};function xt(){return{title:"",description:""}}d.TextProposal={encode(yt,$t=kt.Writer.create()){return yt.title!==""&&$t.uint32(10).string(yt.title),yt.description!==""&&$t.uint32(18).string(yt.description),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.title=Yt.string();break;case 2:St.description=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{title:(0,Pt.isSet)(yt.title)?String(yt.title):"",description:(0,Pt.isSet)(yt.description)?String(yt.description):""}},toJSON(yt){const $t={};return yt.title!==void 0&&($t.title=yt.title),yt.description!==void 0&&($t.description=yt.description),$t},fromPartial(yt){const $t=xt();return $t.title=yt.title??"",$t.description=yt.description??"",$t}};function Et(){return{proposalId:Pt.Long.UZERO,depositor:"",amount:[]}}d.Deposit={encode(yt,$t=kt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.depositor!==""&&$t.uint32(18).string(yt.depositor);for(const Yt of yt.amount)lt.Coin.encode(Yt,$t.uint32(26).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.depositor=Yt.string();break;case 3:St.amount.push(lt.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,Pt.isSet)(yt.proposalId)?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,depositor:(0,Pt.isSet)(yt.depositor)?String(yt.depositor):"",amount:Array.isArray(yt==null?void 0:yt.amount)?yt.amount.map($t=>lt.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||Pt.Long.UZERO).toString()),yt.depositor!==void 0&&($t.depositor=yt.depositor),yt.amount?$t.amount=yt.amount.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.amount=[],$t},fromPartial(yt){var Yt;const $t=Et();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,$t.depositor=yt.depositor??"",$t.amount=((Yt=yt.amount)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t}};function Bt(){return{proposalId:Pt.Long.UZERO,content:void 0,status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0}}d.Proposal={encode(yt,$t=kt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.content!==void 0&&ht.Any.encode(yt.content,$t.uint32(18).fork()).ldelim(),yt.status!==0&&$t.uint32(24).int32(yt.status),yt.finalTallyResult!==void 0&&d.TallyResult.encode(yt.finalTallyResult,$t.uint32(34).fork()).ldelim(),yt.submitTime!==void 0&&mt.Timestamp.encode(yt.submitTime,$t.uint32(42).fork()).ldelim(),yt.depositEndTime!==void 0&&mt.Timestamp.encode(yt.depositEndTime,$t.uint32(50).fork()).ldelim();for(const Yt of yt.totalDeposit)lt.Coin.encode(Yt,$t.uint32(58).fork()).ldelim();return yt.votingStartTime!==void 0&&mt.Timestamp.encode(yt.votingStartTime,$t.uint32(66).fork()).ldelim(),yt.votingEndTime!==void 0&&mt.Timestamp.encode(yt.votingEndTime,$t.uint32(74).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.content=ht.Any.decode(Yt,Yt.uint32());break;case 3:St.status=Yt.int32();break;case 4:St.finalTallyResult=d.TallyResult.decode(Yt,Yt.uint32());break;case 5:St.submitTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 6:St.depositEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 7:St.totalDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 8:St.votingStartTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 9:St.votingEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,Pt.isSet)(yt.proposalId)?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,content:(0,Pt.isSet)(yt.content)?ht.Any.fromJSON(yt.content):void 0,status:(0,Pt.isSet)(yt.status)?Qt(yt.status):0,finalTallyResult:(0,Pt.isSet)(yt.finalTallyResult)?d.TallyResult.fromJSON(yt.finalTallyResult):void 0,submitTime:(0,Pt.isSet)(yt.submitTime)?(0,Pt.fromJsonTimestamp)(yt.submitTime):void 0,depositEndTime:(0,Pt.isSet)(yt.depositEndTime)?(0,Pt.fromJsonTimestamp)(yt.depositEndTime):void 0,totalDeposit:Array.isArray(yt==null?void 0:yt.totalDeposit)?yt.totalDeposit.map($t=>lt.Coin.fromJSON($t)):[],votingStartTime:(0,Pt.isSet)(yt.votingStartTime)?(0,Pt.fromJsonTimestamp)(yt.votingStartTime):void 0,votingEndTime:(0,Pt.isSet)(yt.votingEndTime)?(0,Pt.fromJsonTimestamp)(yt.votingEndTime):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||Pt.Long.UZERO).toString()),yt.content!==void 0&&($t.content=yt.content?ht.Any.toJSON(yt.content):void 0),yt.status!==void 0&&($t.status=wt(yt.status)),yt.finalTallyResult!==void 0&&($t.finalTallyResult=yt.finalTallyResult?d.TallyResult.toJSON(yt.finalTallyResult):void 0),yt.submitTime!==void 0&&($t.submitTime=(0,Pt.fromTimestamp)(yt.submitTime).toISOString()),yt.depositEndTime!==void 0&&($t.depositEndTime=(0,Pt.fromTimestamp)(yt.depositEndTime).toISOString()),yt.totalDeposit?$t.totalDeposit=yt.totalDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.totalDeposit=[],yt.votingStartTime!==void 0&&($t.votingStartTime=(0,Pt.fromTimestamp)(yt.votingStartTime).toISOString()),yt.votingEndTime!==void 0&&($t.votingEndTime=(0,Pt.fromTimestamp)(yt.votingEndTime).toISOString()),$t},fromPartial(yt){var Yt;const $t=Bt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,$t.content=yt.content!==void 0&&yt.content!==null?ht.Any.fromPartial(yt.content):void 0,$t.status=yt.status??0,$t.finalTallyResult=yt.finalTallyResult!==void 0&&yt.finalTallyResult!==null?d.TallyResult.fromPartial(yt.finalTallyResult):void 0,$t.submitTime=yt.submitTime!==void 0&&yt.submitTime!==null?mt.Timestamp.fromPartial(yt.submitTime):void 0,$t.depositEndTime=yt.depositEndTime!==void 0&&yt.depositEndTime!==null?mt.Timestamp.fromPartial(yt.depositEndTime):void 0,$t.totalDeposit=((Yt=yt.totalDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.votingStartTime=yt.votingStartTime!==void 0&&yt.votingStartTime!==null?mt.Timestamp.fromPartial(yt.votingStartTime):void 0,$t.votingEndTime=yt.votingEndTime!==void 0&&yt.votingEndTime!==null?mt.Timestamp.fromPartial(yt.votingEndTime):void 0,$t}};function Tt(){return{yes:"",abstain:"",no:"",noWithVeto:""}}d.TallyResult={encode(yt,$t=kt.Writer.create()){return yt.yes!==""&&$t.uint32(10).string(yt.yes),yt.abstain!==""&&$t.uint32(18).string(yt.abstain),yt.no!==""&&$t.uint32(26).string(yt.no),yt.noWithVeto!==""&&$t.uint32(34).string(yt.noWithVeto),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.yes=Yt.string();break;case 2:St.abstain=Yt.string();break;case 3:St.no=Yt.string();break;case 4:St.noWithVeto=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{yes:(0,Pt.isSet)(yt.yes)?String(yt.yes):"",abstain:(0,Pt.isSet)(yt.abstain)?String(yt.abstain):"",no:(0,Pt.isSet)(yt.no)?String(yt.no):"",noWithVeto:(0,Pt.isSet)(yt.noWithVeto)?String(yt.noWithVeto):""}},toJSON(yt){const $t={};return yt.yes!==void 0&&($t.yes=yt.yes),yt.abstain!==void 0&&($t.abstain=yt.abstain),yt.no!==void 0&&($t.no=yt.no),yt.noWithVeto!==void 0&&($t.noWithVeto=yt.noWithVeto),$t},fromPartial(yt){const $t=Tt();return $t.yes=yt.yes??"",$t.abstain=yt.abstain??"",$t.no=yt.no??"",$t.noWithVeto=yt.noWithVeto??"",$t}};function Mt(){return{proposalId:Pt.Long.UZERO,voter:"",option:0,options:[]}}d.Vote={encode(yt,$t=kt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.voter!==""&&$t.uint32(18).string(yt.voter),yt.option!==0&&$t.uint32(24).int32(yt.option);for(const Yt of yt.options)d.WeightedVoteOption.encode(Yt,$t.uint32(34).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.voter=Yt.string();break;case 3:St.option=Yt.int32();break;case 4:St.options.push(d.WeightedVoteOption.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,Pt.isSet)(yt.proposalId)?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,voter:(0,Pt.isSet)(yt.voter)?String(yt.voter):"",option:(0,Pt.isSet)(yt.option)?Zt(yt.option):0,options:Array.isArray(yt==null?void 0:yt.options)?yt.options.map($t=>d.WeightedVoteOption.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||Pt.Long.UZERO).toString()),yt.voter!==void 0&&($t.voter=yt.voter),yt.option!==void 0&&($t.option=Rt(yt.option)),yt.options?$t.options=yt.options.map(Yt=>Yt?d.WeightedVoteOption.toJSON(Yt):void 0):$t.options=[],$t},fromPartial(yt){var Yt;const $t=Mt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,$t.voter=yt.voter??"",$t.option=yt.option??0,$t.options=((Yt=yt.options)==null?void 0:Yt.map(Kt=>d.WeightedVoteOption.fromPartial(Kt)))||[],$t}};function jt(){return{minDeposit:[],maxDepositPeriod:void 0}}d.DepositParams={encode(yt,$t=kt.Writer.create()){for(const Yt of yt.minDeposit)lt.Coin.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.maxDepositPeriod!==void 0&&vt.Duration.encode(yt.maxDepositPeriod,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.minDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 2:St.maxDepositPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{minDeposit:Array.isArray(yt==null?void 0:yt.minDeposit)?yt.minDeposit.map($t=>lt.Coin.fromJSON($t)):[],maxDepositPeriod:(0,Pt.isSet)(yt.maxDepositPeriod)?vt.Duration.fromJSON(yt.maxDepositPeriod):void 0}},toJSON(yt){const $t={};return yt.minDeposit?$t.minDeposit=yt.minDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.minDeposit=[],yt.maxDepositPeriod!==void 0&&($t.maxDepositPeriod=yt.maxDepositPeriod?vt.Duration.toJSON(yt.maxDepositPeriod):void 0),$t},fromPartial(yt){var Yt;const $t=jt();return $t.minDeposit=((Yt=yt.minDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.maxDepositPeriod=yt.maxDepositPeriod!==void 0&&yt.maxDepositPeriod!==null?vt.Duration.fromPartial(yt.maxDepositPeriod):void 0,$t}};function Ht(){return{votingPeriod:void 0}}d.VotingParams={encode(yt,$t=kt.Writer.create()){return yt.votingPeriod!==void 0&&vt.Duration.encode(yt.votingPeriod,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.votingPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votingPeriod:(0,Pt.isSet)(yt.votingPeriod)?vt.Duration.fromJSON(yt.votingPeriod):void 0}},toJSON(yt){const $t={};return yt.votingPeriod!==void 0&&($t.votingPeriod=yt.votingPeriod?vt.Duration.toJSON(yt.votingPeriod):void 0),$t},fromPartial(yt){const $t=Ht();return $t.votingPeriod=yt.votingPeriod!==void 0&&yt.votingPeriod!==null?vt.Duration.fromPartial(yt.votingPeriod):void 0,$t}};function an(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}d.TallyParams={encode(yt,$t=kt.Writer.create()){return yt.quorum.length!==0&&$t.uint32(10).bytes(yt.quorum),yt.threshold.length!==0&&$t.uint32(18).bytes(yt.threshold),yt.vetoThreshold.length!==0&&$t.uint32(26).bytes(yt.vetoThreshold),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=an();for(;Yt.pos>>3){case 1:St.quorum=Yt.bytes();break;case 2:St.threshold=Yt.bytes();break;case 3:St.vetoThreshold=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{quorum:(0,Pt.isSet)(yt.quorum)?(0,Pt.bytesFromBase64)(yt.quorum):new Uint8Array,threshold:(0,Pt.isSet)(yt.threshold)?(0,Pt.bytesFromBase64)(yt.threshold):new Uint8Array,vetoThreshold:(0,Pt.isSet)(yt.vetoThreshold)?(0,Pt.bytesFromBase64)(yt.vetoThreshold):new Uint8Array}},toJSON(yt){const $t={};return yt.quorum!==void 0&&($t.quorum=(0,Pt.base64FromBytes)(yt.quorum!==void 0?yt.quorum:new Uint8Array)),yt.threshold!==void 0&&($t.threshold=(0,Pt.base64FromBytes)(yt.threshold!==void 0?yt.threshold:new Uint8Array)),yt.vetoThreshold!==void 0&&($t.vetoThreshold=(0,Pt.base64FromBytes)(yt.vetoThreshold!==void 0?yt.vetoThreshold:new Uint8Array)),$t},fromPartial(yt){const $t=an();return $t.quorum=yt.quorum??new Uint8Array,$t.threshold=yt.threshold??new Uint8Array,$t.vetoThreshold=yt.vetoThreshold??new Uint8Array,$t}}})(gov);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryTallyResultResponse=d.QueryTallyResultRequest=d.QueryDepositsResponse=d.QueryDepositsRequest=d.QueryDepositResponse=d.QueryDepositRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryVotesResponse=d.QueryVotesRequest=d.QueryVoteResponse=d.QueryVoteRequest=d.QueryProposalsResponse=d.QueryProposalsRequest=d.QueryProposalResponse=d.QueryProposalRequest=d.protobufPackage=void 0;const lt=gov,ht=pagination$2,mt=helpers,vt=ct(minimal$2);d.protobufPackage="cosmos.gov.v1beta1";function kt(){return{proposalId:mt.Long.UZERO}}d.QueryProposalRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=kt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),$t},fromPartial(yt){const $t=kt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t}};function Pt(){return{proposal:void 0}}d.QueryProposalResponse={encode(yt,$t=vt.Writer.create()){return yt.proposal!==void 0&<.Proposal.encode(yt.proposal,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Pt();for(;Yt.pos>>3){case 1:St.proposal=lt.Proposal.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposal:(0,mt.isSet)(yt.proposal)?lt.Proposal.fromJSON(yt.proposal):void 0}},toJSON(yt){const $t={};return yt.proposal!==void 0&&($t.proposal=yt.proposal?lt.Proposal.toJSON(yt.proposal):void 0),$t},fromPartial(yt){const $t=Pt();return $t.proposal=yt.proposal!==void 0&&yt.proposal!==null?lt.Proposal.fromPartial(yt.proposal):void 0,$t}};function Jt(){return{proposalStatus:0,voter:"",depositor:"",pagination:void 0}}d.QueryProposalsRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalStatus!==0&&$t.uint32(8).int32(yt.proposalStatus),yt.voter!==""&&$t.uint32(18).string(yt.voter),yt.depositor!==""&&$t.uint32(26).string(yt.depositor),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(34).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.proposalStatus=Yt.int32();break;case 2:St.voter=Yt.string();break;case 3:St.depositor=Yt.string();break;case 4:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalStatus:(0,mt.isSet)(yt.proposalStatus)?(0,lt.proposalStatusFromJSON)(yt.proposalStatus):0,voter:(0,mt.isSet)(yt.voter)?String(yt.voter):"",depositor:(0,mt.isSet)(yt.depositor)?String(yt.depositor):"",pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalStatus!==void 0&&($t.proposalStatus=(0,lt.proposalStatusToJSON)(yt.proposalStatus)),yt.voter!==void 0&&($t.voter=yt.voter),yt.depositor!==void 0&&($t.depositor=yt.depositor),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Jt();return $t.proposalStatus=yt.proposalStatus??0,$t.voter=yt.voter??"",$t.depositor=yt.depositor??"",$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function Zt(){return{proposals:[],pagination:void 0}}d.QueryProposalsResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.proposals)lt.Proposal.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){case 1:St.proposals.push(lt.Proposal.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposals:Array.isArray(yt==null?void 0:yt.proposals)?yt.proposals.map($t=>lt.Proposal.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposals?$t.proposals=yt.proposals.map(Yt=>Yt?lt.Proposal.toJSON(Yt):void 0):$t.proposals=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=Zt();return $t.proposals=((Yt=yt.proposals)==null?void 0:Yt.map(Kt=>lt.Proposal.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function Rt(){return{proposalId:mt.Long.UZERO,voter:""}}d.QueryVoteRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.voter!==""&&$t.uint32(18).string(yt.voter),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.voter=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,voter:(0,mt.isSet)(yt.voter)?String(yt.voter):""}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.voter!==void 0&&($t.voter=yt.voter),$t},fromPartial(yt){const $t=Rt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.voter=yt.voter??"",$t}};function nn(){return{vote:void 0}}d.QueryVoteResponse={encode(yt,$t=vt.Writer.create()){return yt.vote!==void 0&<.Vote.encode(yt.vote,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.vote=lt.Vote.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{vote:(0,mt.isSet)(yt.vote)?lt.Vote.fromJSON(yt.vote):void 0}},toJSON(yt){const $t={};return yt.vote!==void 0&&($t.vote=yt.vote?lt.Vote.toJSON(yt.vote):void 0),$t},fromPartial(yt){const $t=nn();return $t.vote=yt.vote!==void 0&&yt.vote!==null?lt.Vote.fromPartial(yt.vote):void 0,$t}};function Qt(){return{proposalId:mt.Long.UZERO,pagination:void 0}}d.QueryVotesRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Qt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function wt(){return{votes:[],pagination:void 0}}d.QueryVotesResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.votes)lt.Vote.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.votes.push(lt.Vote.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votes:Array.isArray(yt==null?void 0:yt.votes)?yt.votes.map($t=>lt.Vote.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.votes?$t.votes=yt.votes.map(Yt=>Yt?lt.Vote.toJSON(Yt):void 0):$t.votes=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=wt();return $t.votes=((Yt=yt.votes)==null?void 0:Yt.map(Kt=>lt.Vote.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function Nt(){return{paramsType:""}}d.QueryParamsRequest={encode(yt,$t=vt.Writer.create()){return yt.paramsType!==""&&$t.uint32(10).string(yt.paramsType),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.paramsType=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{paramsType:(0,mt.isSet)(yt.paramsType)?String(yt.paramsType):""}},toJSON(yt){const $t={};return yt.paramsType!==void 0&&($t.paramsType=yt.paramsType),$t},fromPartial(yt){const $t=Nt();return $t.paramsType=yt.paramsType??"",$t}};function xt(){return{votingParams:void 0,depositParams:void 0,tallyParams:void 0}}d.QueryParamsResponse={encode(yt,$t=vt.Writer.create()){return yt.votingParams!==void 0&<.VotingParams.encode(yt.votingParams,$t.uint32(10).fork()).ldelim(),yt.depositParams!==void 0&<.DepositParams.encode(yt.depositParams,$t.uint32(18).fork()).ldelim(),yt.tallyParams!==void 0&<.TallyParams.encode(yt.tallyParams,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.votingParams=lt.VotingParams.decode(Yt,Yt.uint32());break;case 2:St.depositParams=lt.DepositParams.decode(Yt,Yt.uint32());break;case 3:St.tallyParams=lt.TallyParams.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votingParams:(0,mt.isSet)(yt.votingParams)?lt.VotingParams.fromJSON(yt.votingParams):void 0,depositParams:(0,mt.isSet)(yt.depositParams)?lt.DepositParams.fromJSON(yt.depositParams):void 0,tallyParams:(0,mt.isSet)(yt.tallyParams)?lt.TallyParams.fromJSON(yt.tallyParams):void 0}},toJSON(yt){const $t={};return yt.votingParams!==void 0&&($t.votingParams=yt.votingParams?lt.VotingParams.toJSON(yt.votingParams):void 0),yt.depositParams!==void 0&&($t.depositParams=yt.depositParams?lt.DepositParams.toJSON(yt.depositParams):void 0),yt.tallyParams!==void 0&&($t.tallyParams=yt.tallyParams?lt.TallyParams.toJSON(yt.tallyParams):void 0),$t},fromPartial(yt){const $t=xt();return $t.votingParams=yt.votingParams!==void 0&&yt.votingParams!==null?lt.VotingParams.fromPartial(yt.votingParams):void 0,$t.depositParams=yt.depositParams!==void 0&&yt.depositParams!==null?lt.DepositParams.fromPartial(yt.depositParams):void 0,$t.tallyParams=yt.tallyParams!==void 0&&yt.tallyParams!==null?lt.TallyParams.fromPartial(yt.tallyParams):void 0,$t}};function Et(){return{proposalId:mt.Long.UZERO,depositor:""}}d.QueryDepositRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.depositor!==""&&$t.uint32(18).string(yt.depositor),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.depositor=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,depositor:(0,mt.isSet)(yt.depositor)?String(yt.depositor):""}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.depositor!==void 0&&($t.depositor=yt.depositor),$t},fromPartial(yt){const $t=Et();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.depositor=yt.depositor??"",$t}};function Bt(){return{deposit:void 0}}d.QueryDepositResponse={encode(yt,$t=vt.Writer.create()){return yt.deposit!==void 0&<.Deposit.encode(yt.deposit,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.deposit=lt.Deposit.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{deposit:(0,mt.isSet)(yt.deposit)?lt.Deposit.fromJSON(yt.deposit):void 0}},toJSON(yt){const $t={};return yt.deposit!==void 0&&($t.deposit=yt.deposit?lt.Deposit.toJSON(yt.deposit):void 0),$t},fromPartial(yt){const $t=Bt();return $t.deposit=yt.deposit!==void 0&&yt.deposit!==null?lt.Deposit.fromPartial(yt.deposit):void 0,$t}};function Tt(){return{proposalId:mt.Long.UZERO,pagination:void 0}}d.QueryDepositsRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Tt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function Mt(){return{deposits:[],pagination:void 0}}d.QueryDepositsResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.deposits)lt.Deposit.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.deposits.push(lt.Deposit.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{deposits:Array.isArray(yt==null?void 0:yt.deposits)?yt.deposits.map($t=>lt.Deposit.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.deposits?$t.deposits=yt.deposits.map(Yt=>Yt?lt.Deposit.toJSON(Yt):void 0):$t.deposits=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=Mt();return $t.deposits=((Yt=yt.deposits)==null?void 0:Yt.map(Kt=>lt.Deposit.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function jt(){return{proposalId:mt.Long.UZERO}}d.QueryTallyResultRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),$t},fromPartial(yt){const $t=jt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t}};function Ht(){return{tally:void 0}}d.QueryTallyResultResponse={encode(yt,$t=vt.Writer.create()){return yt.tally!==void 0&<.TallyResult.encode(yt.tally,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.tally=lt.TallyResult.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{tally:(0,mt.isSet)(yt.tally)?lt.TallyResult.fromJSON(yt.tally):void 0}},toJSON(yt){const $t={};return yt.tally!==void 0&&($t.tally=yt.tally?lt.TallyResult.toJSON(yt.tally):void 0),$t},fromPartial(yt){const $t=Ht();return $t.tally=yt.tally!==void 0&&yt.tally!==null?lt.TallyResult.fromPartial(yt.tally):void 0,$t}};class an{constructor($t){this.rpc=$t,this.Proposal=this.Proposal.bind(this),this.Proposals=this.Proposals.bind(this),this.Vote=this.Vote.bind(this),this.Votes=this.Votes.bind(this),this.Params=this.Params.bind(this),this.Deposit=this.Deposit.bind(this),this.Deposits=this.Deposits.bind(this),this.TallyResult=this.TallyResult.bind(this)}Proposal($t){const Yt=d.QueryProposalRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposal",Yt).then(St=>d.QueryProposalResponse.decode(new vt.Reader(St)))}Proposals($t){const Yt=d.QueryProposalsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposals",Yt).then(St=>d.QueryProposalsResponse.decode(new vt.Reader(St)))}Vote($t){const Yt=d.QueryVoteRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Vote",Yt).then(St=>d.QueryVoteResponse.decode(new vt.Reader(St)))}Votes($t){const Yt=d.QueryVotesRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Votes",Yt).then(St=>d.QueryVotesResponse.decode(new vt.Reader(St)))}Params($t){const Yt=d.QueryParamsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Params",Yt).then(St=>d.QueryParamsResponse.decode(new vt.Reader(St)))}Deposit($t){const Yt=d.QueryDepositRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposit",Yt).then(St=>d.QueryDepositResponse.decode(new vt.Reader(St)))}Deposits($t){const Yt=d.QueryDepositsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposits",Yt).then(St=>d.QueryDepositsResponse.decode(new vt.Reader(St)))}TallyResult($t){const Yt=d.QueryTallyResultRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","TallyResult",Yt).then(St=>d.QueryTallyResultResponse.decode(new vt.Reader(St)))}}d.QueryClientImpl=an})(query$7);var query$6={},staking={},types$9={},proof={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn);var wt=Object.getOwnPropertyDescriptor(Rt,nn);(!wt||("get"in wt?!Rt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return Rt[nn]}}),Object.defineProperty(Zt,Qt,wt)}:function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn),Zt[Qt]=Rt[nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Zt,Rt){Object.defineProperty(Zt,"default",{enumerable:!0,value:Rt})}:function(Zt,Rt){Zt.default=Rt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Zt){if(Zt&&Zt.__esModule)return Zt;var Rt={};if(Zt!=null)for(var nn in Zt)nn!=="default"&&Object.prototype.hasOwnProperty.call(Zt,nn)&&b(Rt,Zt,nn);return dt(Rt,Zt),Rt};Object.defineProperty(d,"__esModule",{value:!0}),d.ProofOps=d.ProofOp=d.DominoOp=d.ValueOp=d.Proof=d.protobufPackage=void 0;const lt=helpers,ht=ct(minimal$2);d.protobufPackage="tendermint.crypto";function mt(){return{total:lt.Long.ZERO,index:lt.Long.ZERO,leafHash:new Uint8Array,aunts:[]}}d.Proof={encode(Zt,Rt=ht.Writer.create()){Zt.total.isZero()||Rt.uint32(8).int64(Zt.total),Zt.index.isZero()||Rt.uint32(16).int64(Zt.index),Zt.leafHash.length!==0&&Rt.uint32(26).bytes(Zt.leafHash);for(const nn of Zt.aunts)Rt.uint32(34).bytes(nn);return Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=mt();for(;nn.pos>>3){case 1:wt.total=nn.int64();break;case 2:wt.index=nn.int64();break;case 3:wt.leafHash=nn.bytes();break;case 4:wt.aunts.push(nn.bytes());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{total:(0,lt.isSet)(Zt.total)?lt.Long.fromValue(Zt.total):lt.Long.ZERO,index:(0,lt.isSet)(Zt.index)?lt.Long.fromValue(Zt.index):lt.Long.ZERO,leafHash:(0,lt.isSet)(Zt.leafHash)?(0,lt.bytesFromBase64)(Zt.leafHash):new Uint8Array,aunts:Array.isArray(Zt==null?void 0:Zt.aunts)?Zt.aunts.map(Rt=>(0,lt.bytesFromBase64)(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.total!==void 0&&(Rt.total=(Zt.total||lt.Long.ZERO).toString()),Zt.index!==void 0&&(Rt.index=(Zt.index||lt.Long.ZERO).toString()),Zt.leafHash!==void 0&&(Rt.leafHash=(0,lt.base64FromBytes)(Zt.leafHash!==void 0?Zt.leafHash:new Uint8Array)),Zt.aunts?Rt.aunts=Zt.aunts.map(nn=>(0,lt.base64FromBytes)(nn!==void 0?nn:new Uint8Array)):Rt.aunts=[],Rt},fromPartial(Zt){var nn;const Rt=mt();return Rt.total=Zt.total!==void 0&&Zt.total!==null?lt.Long.fromValue(Zt.total):lt.Long.ZERO,Rt.index=Zt.index!==void 0&&Zt.index!==null?lt.Long.fromValue(Zt.index):lt.Long.ZERO,Rt.leafHash=Zt.leafHash??new Uint8Array,Rt.aunts=((nn=Zt.aunts)==null?void 0:nn.map(Qt=>Qt))||[],Rt}};function vt(){return{key:new Uint8Array,proof:void 0}}d.ValueOp={encode(Zt,Rt=ht.Writer.create()){return Zt.key.length!==0&&Rt.uint32(10).bytes(Zt.key),Zt.proof!==void 0&&d.Proof.encode(Zt.proof,Rt.uint32(18).fork()).ldelim(),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=vt();for(;nn.pos>>3){case 1:wt.key=nn.bytes();break;case 2:wt.proof=d.Proof.decode(nn,nn.uint32());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{key:(0,lt.isSet)(Zt.key)?(0,lt.bytesFromBase64)(Zt.key):new Uint8Array,proof:(0,lt.isSet)(Zt.proof)?d.Proof.fromJSON(Zt.proof):void 0}},toJSON(Zt){const Rt={};return Zt.key!==void 0&&(Rt.key=(0,lt.base64FromBytes)(Zt.key!==void 0?Zt.key:new Uint8Array)),Zt.proof!==void 0&&(Rt.proof=Zt.proof?d.Proof.toJSON(Zt.proof):void 0),Rt},fromPartial(Zt){const Rt=vt();return Rt.key=Zt.key??new Uint8Array,Rt.proof=Zt.proof!==void 0&&Zt.proof!==null?d.Proof.fromPartial(Zt.proof):void 0,Rt}};function kt(){return{key:"",input:"",output:""}}d.DominoOp={encode(Zt,Rt=ht.Writer.create()){return Zt.key!==""&&Rt.uint32(10).string(Zt.key),Zt.input!==""&&Rt.uint32(18).string(Zt.input),Zt.output!==""&&Rt.uint32(26).string(Zt.output),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=kt();for(;nn.pos>>3){case 1:wt.key=nn.string();break;case 2:wt.input=nn.string();break;case 3:wt.output=nn.string();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{key:(0,lt.isSet)(Zt.key)?String(Zt.key):"",input:(0,lt.isSet)(Zt.input)?String(Zt.input):"",output:(0,lt.isSet)(Zt.output)?String(Zt.output):""}},toJSON(Zt){const Rt={};return Zt.key!==void 0&&(Rt.key=Zt.key),Zt.input!==void 0&&(Rt.input=Zt.input),Zt.output!==void 0&&(Rt.output=Zt.output),Rt},fromPartial(Zt){const Rt=kt();return Rt.key=Zt.key??"",Rt.input=Zt.input??"",Rt.output=Zt.output??"",Rt}};function Pt(){return{type:"",key:new Uint8Array,data:new Uint8Array}}d.ProofOp={encode(Zt,Rt=ht.Writer.create()){return Zt.type!==""&&Rt.uint32(10).string(Zt.type),Zt.key.length!==0&&Rt.uint32(18).bytes(Zt.key),Zt.data.length!==0&&Rt.uint32(26).bytes(Zt.data),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Pt();for(;nn.pos>>3){case 1:wt.type=nn.string();break;case 2:wt.key=nn.bytes();break;case 3:wt.data=nn.bytes();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{type:(0,lt.isSet)(Zt.type)?String(Zt.type):"",key:(0,lt.isSet)(Zt.key)?(0,lt.bytesFromBase64)(Zt.key):new Uint8Array,data:(0,lt.isSet)(Zt.data)?(0,lt.bytesFromBase64)(Zt.data):new Uint8Array}},toJSON(Zt){const Rt={};return Zt.type!==void 0&&(Rt.type=Zt.type),Zt.key!==void 0&&(Rt.key=(0,lt.base64FromBytes)(Zt.key!==void 0?Zt.key:new Uint8Array)),Zt.data!==void 0&&(Rt.data=(0,lt.base64FromBytes)(Zt.data!==void 0?Zt.data:new Uint8Array)),Rt},fromPartial(Zt){const Rt=Pt();return Rt.type=Zt.type??"",Rt.key=Zt.key??new Uint8Array,Rt.data=Zt.data??new Uint8Array,Rt}};function Jt(){return{ops:[]}}d.ProofOps={encode(Zt,Rt=ht.Writer.create()){for(const nn of Zt.ops)d.ProofOp.encode(nn,Rt.uint32(10).fork()).ldelim();return Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Jt();for(;nn.pos>>3){case 1:wt.ops.push(d.ProofOp.decode(nn,nn.uint32()));break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{ops:Array.isArray(Zt==null?void 0:Zt.ops)?Zt.ops.map(Rt=>d.ProofOp.fromJSON(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.ops?Rt.ops=Zt.ops.map(nn=>nn?d.ProofOp.toJSON(nn):void 0):Rt.ops=[],Rt},fromPartial(Zt){var nn;const Rt=Jt();return Rt.ops=((nn=Zt.ops)==null?void 0:nn.map(Qt=>d.ProofOp.fromPartial(Qt)))||[],Rt}}})(proof);var types$8={},__createBinding$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$3(b,d,dt);return __setModuleDefault$3(b,d),b};Object.defineProperty(types$8,"__esModule",{value:!0});types$8.Consensus=types$8.App=types$8.protobufPackage=void 0;const helpers_1$3=helpers,_m0$3=__importStar$3(minimal$2);types$8.protobufPackage="tendermint.version";function createBaseApp(){return{protocol:helpers_1$3.Long.UZERO,software:""}}types$8.App={encode(d,b=_m0$3.Writer.create()){return d.protocol.isZero()||b.uint32(8).uint64(d.protocol),d.software!==""&&b.uint32(18).string(d.software),b},decode(d,b){const dt=d instanceof _m0$3.Reader?d:new _m0$3.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseApp();for(;dt.pos>>3){case 1:lt.protocol=dt.uint64();break;case 2:lt.software=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{protocol:(0,helpers_1$3.isSet)(d.protocol)?helpers_1$3.Long.fromValue(d.protocol):helpers_1$3.Long.UZERO,software:(0,helpers_1$3.isSet)(d.software)?String(d.software):""}},toJSON(d){const b={};return d.protocol!==void 0&&(b.protocol=(d.protocol||helpers_1$3.Long.UZERO).toString()),d.software!==void 0&&(b.software=d.software),b},fromPartial(d){const b=createBaseApp();return b.protocol=d.protocol!==void 0&&d.protocol!==null?helpers_1$3.Long.fromValue(d.protocol):helpers_1$3.Long.UZERO,b.software=d.software??"",b}};function createBaseConsensus(){return{block:helpers_1$3.Long.UZERO,app:helpers_1$3.Long.UZERO}}types$8.Consensus={encode(d,b=_m0$3.Writer.create()){return d.block.isZero()||b.uint32(8).uint64(d.block),d.app.isZero()||b.uint32(16).uint64(d.app),b},decode(d,b){const dt=d instanceof _m0$3.Reader?d:new _m0$3.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseConsensus();for(;dt.pos>>3){case 1:lt.block=dt.uint64();break;case 2:lt.app=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{block:(0,helpers_1$3.isSet)(d.block)?helpers_1$3.Long.fromValue(d.block):helpers_1$3.Long.UZERO,app:(0,helpers_1$3.isSet)(d.app)?helpers_1$3.Long.fromValue(d.app):helpers_1$3.Long.UZERO}},toJSON(d){const b={};return d.block!==void 0&&(b.block=(d.block||helpers_1$3.Long.UZERO).toString()),d.app!==void 0&&(b.app=(d.app||helpers_1$3.Long.UZERO).toString()),b},fromPartial(d){const b=createBaseConsensus();return b.block=d.block!==void 0&&d.block!==null?helpers_1$3.Long.fromValue(d.block):helpers_1$3.Long.UZERO,b.app=d.app!==void 0&&d.app!==null?helpers_1$3.Long.fromValue(d.app):helpers_1$3.Long.UZERO,b}};var validator$1={},keys={},__createBinding$2=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$2=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$2=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$2(b,d,dt);return __setModuleDefault$2(b,d),b};Object.defineProperty(keys,"__esModule",{value:!0});keys.PublicKey=keys.protobufPackage=void 0;const _m0$2=__importStar$2(minimal$2),helpers_1$2=helpers;keys.protobufPackage="tendermint.crypto";function createBasePublicKey(){return{ed25519:void 0,secp256k1:void 0}}keys.PublicKey={encode(d,b=_m0$2.Writer.create()){return d.ed25519!==void 0&&b.uint32(10).bytes(d.ed25519),d.secp256k1!==void 0&&b.uint32(18).bytes(d.secp256k1),b},decode(d,b){const dt=d instanceof _m0$2.Reader?d:new _m0$2.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePublicKey();for(;dt.pos>>3){case 1:lt.ed25519=dt.bytes();break;case 2:lt.secp256k1=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{ed25519:(0,helpers_1$2.isSet)(d.ed25519)?(0,helpers_1$2.bytesFromBase64)(d.ed25519):void 0,secp256k1:(0,helpers_1$2.isSet)(d.secp256k1)?(0,helpers_1$2.bytesFromBase64)(d.secp256k1):void 0}},toJSON(d){const b={};return d.ed25519!==void 0&&(b.ed25519=d.ed25519!==void 0?(0,helpers_1$2.base64FromBytes)(d.ed25519):void 0),d.secp256k1!==void 0&&(b.secp256k1=d.secp256k1!==void 0?(0,helpers_1$2.base64FromBytes)(d.secp256k1):void 0),b},fromPartial(d){const b=createBasePublicKey();return b.ed25519=d.ed25519??void 0,b.secp256k1=d.secp256k1??void 0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Jt,Zt,Rt,nn){nn===void 0&&(nn=Rt);var Qt=Object.getOwnPropertyDescriptor(Zt,Rt);(!Qt||("get"in Qt?!Zt.__esModule:Qt.writable||Qt.configurable))&&(Qt={enumerable:!0,get:function(){return Zt[Rt]}}),Object.defineProperty(Jt,nn,Qt)}:function(Jt,Zt,Rt,nn){nn===void 0&&(nn=Rt),Jt[nn]=Zt[Rt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Jt,Zt){Object.defineProperty(Jt,"default",{enumerable:!0,value:Zt})}:function(Jt,Zt){Jt.default=Zt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Jt){if(Jt&&Jt.__esModule)return Jt;var Zt={};if(Jt!=null)for(var Rt in Jt)Rt!=="default"&&Object.prototype.hasOwnProperty.call(Jt,Rt)&&b(Zt,Jt,Rt);return dt(Zt,Jt),Zt};Object.defineProperty(d,"__esModule",{value:!0}),d.SimpleValidator=d.Validator=d.ValidatorSet=d.protobufPackage=void 0;const lt=keys,ht=helpers,mt=ct(minimal$2);d.protobufPackage="tendermint.types";function vt(){return{validators:[],proposer:void 0,totalVotingPower:ht.Long.ZERO}}d.ValidatorSet={encode(Jt,Zt=mt.Writer.create()){for(const Rt of Jt.validators)d.Validator.encode(Rt,Zt.uint32(10).fork()).ldelim();return Jt.proposer!==void 0&&d.Validator.encode(Jt.proposer,Zt.uint32(18).fork()).ldelim(),Jt.totalVotingPower.isZero()||Zt.uint32(24).int64(Jt.totalVotingPower),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=vt();for(;Rt.pos>>3){case 1:Qt.validators.push(d.Validator.decode(Rt,Rt.uint32()));break;case 2:Qt.proposer=d.Validator.decode(Rt,Rt.uint32());break;case 3:Qt.totalVotingPower=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{validators:Array.isArray(Jt==null?void 0:Jt.validators)?Jt.validators.map(Zt=>d.Validator.fromJSON(Zt)):[],proposer:(0,ht.isSet)(Jt.proposer)?d.Validator.fromJSON(Jt.proposer):void 0,totalVotingPower:(0,ht.isSet)(Jt.totalVotingPower)?ht.Long.fromValue(Jt.totalVotingPower):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.validators?Zt.validators=Jt.validators.map(Rt=>Rt?d.Validator.toJSON(Rt):void 0):Zt.validators=[],Jt.proposer!==void 0&&(Zt.proposer=Jt.proposer?d.Validator.toJSON(Jt.proposer):void 0),Jt.totalVotingPower!==void 0&&(Zt.totalVotingPower=(Jt.totalVotingPower||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){var Rt;const Zt=vt();return Zt.validators=((Rt=Jt.validators)==null?void 0:Rt.map(nn=>d.Validator.fromPartial(nn)))||[],Zt.proposer=Jt.proposer!==void 0&&Jt.proposer!==null?d.Validator.fromPartial(Jt.proposer):void 0,Zt.totalVotingPower=Jt.totalVotingPower!==void 0&&Jt.totalVotingPower!==null?ht.Long.fromValue(Jt.totalVotingPower):ht.Long.ZERO,Zt}};function kt(){return{address:new Uint8Array,pubKey:void 0,votingPower:ht.Long.ZERO,proposerPriority:ht.Long.ZERO}}d.Validator={encode(Jt,Zt=mt.Writer.create()){return Jt.address.length!==0&&Zt.uint32(10).bytes(Jt.address),Jt.pubKey!==void 0&<.PublicKey.encode(Jt.pubKey,Zt.uint32(18).fork()).ldelim(),Jt.votingPower.isZero()||Zt.uint32(24).int64(Jt.votingPower),Jt.proposerPriority.isZero()||Zt.uint32(32).int64(Jt.proposerPriority),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=kt();for(;Rt.pos>>3){case 1:Qt.address=Rt.bytes();break;case 2:Qt.pubKey=lt.PublicKey.decode(Rt,Rt.uint32());break;case 3:Qt.votingPower=Rt.int64();break;case 4:Qt.proposerPriority=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{address:(0,ht.isSet)(Jt.address)?(0,ht.bytesFromBase64)(Jt.address):new Uint8Array,pubKey:(0,ht.isSet)(Jt.pubKey)?lt.PublicKey.fromJSON(Jt.pubKey):void 0,votingPower:(0,ht.isSet)(Jt.votingPower)?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,proposerPriority:(0,ht.isSet)(Jt.proposerPriority)?ht.Long.fromValue(Jt.proposerPriority):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.address!==void 0&&(Zt.address=(0,ht.base64FromBytes)(Jt.address!==void 0?Jt.address:new Uint8Array)),Jt.pubKey!==void 0&&(Zt.pubKey=Jt.pubKey?lt.PublicKey.toJSON(Jt.pubKey):void 0),Jt.votingPower!==void 0&&(Zt.votingPower=(Jt.votingPower||ht.Long.ZERO).toString()),Jt.proposerPriority!==void 0&&(Zt.proposerPriority=(Jt.proposerPriority||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){const Zt=kt();return Zt.address=Jt.address??new Uint8Array,Zt.pubKey=Jt.pubKey!==void 0&&Jt.pubKey!==null?lt.PublicKey.fromPartial(Jt.pubKey):void 0,Zt.votingPower=Jt.votingPower!==void 0&&Jt.votingPower!==null?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,Zt.proposerPriority=Jt.proposerPriority!==void 0&&Jt.proposerPriority!==null?ht.Long.fromValue(Jt.proposerPriority):ht.Long.ZERO,Zt}};function Pt(){return{pubKey:void 0,votingPower:ht.Long.ZERO}}d.SimpleValidator={encode(Jt,Zt=mt.Writer.create()){return Jt.pubKey!==void 0&<.PublicKey.encode(Jt.pubKey,Zt.uint32(10).fork()).ldelim(),Jt.votingPower.isZero()||Zt.uint32(16).int64(Jt.votingPower),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=Pt();for(;Rt.pos>>3){case 1:Qt.pubKey=lt.PublicKey.decode(Rt,Rt.uint32());break;case 2:Qt.votingPower=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{pubKey:(0,ht.isSet)(Jt.pubKey)?lt.PublicKey.fromJSON(Jt.pubKey):void 0,votingPower:(0,ht.isSet)(Jt.votingPower)?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.pubKey!==void 0&&(Zt.pubKey=Jt.pubKey?lt.PublicKey.toJSON(Jt.pubKey):void 0),Jt.votingPower!==void 0&&(Zt.votingPower=(Jt.votingPower||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){const Zt=Pt();return Zt.pubKey=Jt.pubKey!==void 0&&Jt.pubKey!==null?lt.PublicKey.fromPartial(Jt.pubKey):void 0,Zt.votingPower=Jt.votingPower!==void 0&&Jt.votingPower!==null?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,Zt}}})(validator$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt);var Vt=Object.getOwnPropertyDescriptor(It,Gt);(!Vt||("get"in Vt?!It.__esModule:Vt.writable||Vt.configurable))&&(Vt={enumerable:!0,get:function(){return It[Gt]}}),Object.defineProperty(St,Ut,Vt)}:function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt),St[Ut]=It[Gt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,It){Object.defineProperty(St,"default",{enumerable:!0,value:It})}:function(St,It){St.default=It}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var It={};if(St!=null)for(var Gt in St)Gt!=="default"&&Object.prototype.hasOwnProperty.call(St,Gt)&&b(It,St,Gt);return dt(It,St),It};Object.defineProperty(d,"__esModule",{value:!0}),d.TxProof=d.BlockMeta=d.LightBlock=d.SignedHeader=d.Proposal=d.CommitSig=d.Commit=d.Vote=d.Data=d.Header=d.BlockID=d.Part=d.PartSetHeader=d.signedMsgTypeToJSON=d.signedMsgTypeFromJSON=d.SignedMsgType=d.blockIDFlagToJSON=d.blockIDFlagFromJSON=d.BlockIDFlag=d.protobufPackage=void 0;const lt=proof,ht=types$8,mt=timestamp,vt=validator$1,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="tendermint.types";var Jt;(function(St){St[St.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",St[St.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",St[St.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",St[St.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.BlockIDFlag||(d.BlockIDFlag={}));function Zt(St){switch(St){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return Jt.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return Jt.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return Jt.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return Jt.BLOCK_ID_FLAG_NIL;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.blockIDFlagFromJSON=Zt;function Rt(St){switch(St){case Jt.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case Jt.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case Jt.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case Jt.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.blockIDFlagToJSON=Rt;var nn;(function(St){St[St.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",St[St.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",St[St.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",St[St.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nn=d.SignedMsgType||(d.SignedMsgType={}));function Qt(St){switch(St){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return nn.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return nn.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return nn.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return nn.SIGNED_MSG_TYPE_PROPOSAL;case-1:case"UNRECOGNIZED":default:return nn.UNRECOGNIZED}}d.signedMsgTypeFromJSON=Qt;function wt(St){switch(St){case nn.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case nn.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case nn.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case nn.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";case nn.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.signedMsgTypeToJSON=wt;function Nt(){return{total:0,hash:new Uint8Array}}d.PartSetHeader={encode(St,It=kt.Writer.create()){return St.total!==0&&It.uint32(8).uint32(St.total),St.hash.length!==0&&It.uint32(18).bytes(St.hash),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Nt();for(;Gt.pos>>3){case 1:Vt.total=Gt.uint32();break;case 2:Vt.hash=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{total:(0,Pt.isSet)(St.total)?Number(St.total):0,hash:(0,Pt.isSet)(St.hash)?(0,Pt.bytesFromBase64)(St.hash):new Uint8Array}},toJSON(St){const It={};return St.total!==void 0&&(It.total=Math.round(St.total)),St.hash!==void 0&&(It.hash=(0,Pt.base64FromBytes)(St.hash!==void 0?St.hash:new Uint8Array)),It},fromPartial(St){const It=Nt();return It.total=St.total??0,It.hash=St.hash??new Uint8Array,It}};function xt(){return{index:0,bytes:new Uint8Array,proof:void 0}}d.Part={encode(St,It=kt.Writer.create()){return St.index!==0&&It.uint32(8).uint32(St.index),St.bytes.length!==0&&It.uint32(18).bytes(St.bytes),St.proof!==void 0&<.Proof.encode(St.proof,It.uint32(26).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=xt();for(;Gt.pos>>3){case 1:Vt.index=Gt.uint32();break;case 2:Vt.bytes=Gt.bytes();break;case 3:Vt.proof=lt.Proof.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{index:(0,Pt.isSet)(St.index)?Number(St.index):0,bytes:(0,Pt.isSet)(St.bytes)?(0,Pt.bytesFromBase64)(St.bytes):new Uint8Array,proof:(0,Pt.isSet)(St.proof)?lt.Proof.fromJSON(St.proof):void 0}},toJSON(St){const It={};return St.index!==void 0&&(It.index=Math.round(St.index)),St.bytes!==void 0&&(It.bytes=(0,Pt.base64FromBytes)(St.bytes!==void 0?St.bytes:new Uint8Array)),St.proof!==void 0&&(It.proof=St.proof?lt.Proof.toJSON(St.proof):void 0),It},fromPartial(St){const It=xt();return It.index=St.index??0,It.bytes=St.bytes??new Uint8Array,It.proof=St.proof!==void 0&&St.proof!==null?lt.Proof.fromPartial(St.proof):void 0,It}};function Et(){return{hash:new Uint8Array,partSetHeader:void 0}}d.BlockID={encode(St,It=kt.Writer.create()){return St.hash.length!==0&&It.uint32(10).bytes(St.hash),St.partSetHeader!==void 0&&d.PartSetHeader.encode(St.partSetHeader,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Et();for(;Gt.pos>>3){case 1:Vt.hash=Gt.bytes();break;case 2:Vt.partSetHeader=d.PartSetHeader.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{hash:(0,Pt.isSet)(St.hash)?(0,Pt.bytesFromBase64)(St.hash):new Uint8Array,partSetHeader:(0,Pt.isSet)(St.partSetHeader)?d.PartSetHeader.fromJSON(St.partSetHeader):void 0}},toJSON(St){const It={};return St.hash!==void 0&&(It.hash=(0,Pt.base64FromBytes)(St.hash!==void 0?St.hash:new Uint8Array)),St.partSetHeader!==void 0&&(It.partSetHeader=St.partSetHeader?d.PartSetHeader.toJSON(St.partSetHeader):void 0),It},fromPartial(St){const It=Et();return It.hash=St.hash??new Uint8Array,It.partSetHeader=St.partSetHeader!==void 0&&St.partSetHeader!==null?d.PartSetHeader.fromPartial(St.partSetHeader):void 0,It}};function Bt(){return{version:void 0,chainId:"",height:Pt.Long.ZERO,time:void 0,lastBlockId:void 0,lastCommitHash:new Uint8Array,dataHash:new Uint8Array,validatorsHash:new Uint8Array,nextValidatorsHash:new Uint8Array,consensusHash:new Uint8Array,appHash:new Uint8Array,lastResultsHash:new Uint8Array,evidenceHash:new Uint8Array,proposerAddress:new Uint8Array}}d.Header={encode(St,It=kt.Writer.create()){return St.version!==void 0&&ht.Consensus.encode(St.version,It.uint32(10).fork()).ldelim(),St.chainId!==""&&It.uint32(18).string(St.chainId),St.height.isZero()||It.uint32(24).int64(St.height),St.time!==void 0&&mt.Timestamp.encode(St.time,It.uint32(34).fork()).ldelim(),St.lastBlockId!==void 0&&d.BlockID.encode(St.lastBlockId,It.uint32(42).fork()).ldelim(),St.lastCommitHash.length!==0&&It.uint32(50).bytes(St.lastCommitHash),St.dataHash.length!==0&&It.uint32(58).bytes(St.dataHash),St.validatorsHash.length!==0&&It.uint32(66).bytes(St.validatorsHash),St.nextValidatorsHash.length!==0&&It.uint32(74).bytes(St.nextValidatorsHash),St.consensusHash.length!==0&&It.uint32(82).bytes(St.consensusHash),St.appHash.length!==0&&It.uint32(90).bytes(St.appHash),St.lastResultsHash.length!==0&&It.uint32(98).bytes(St.lastResultsHash),St.evidenceHash.length!==0&&It.uint32(106).bytes(St.evidenceHash),St.proposerAddress.length!==0&&It.uint32(114).bytes(St.proposerAddress),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Bt();for(;Gt.pos>>3){case 1:Vt.version=ht.Consensus.decode(Gt,Gt.uint32());break;case 2:Vt.chainId=Gt.string();break;case 3:Vt.height=Gt.int64();break;case 4:Vt.time=mt.Timestamp.decode(Gt,Gt.uint32());break;case 5:Vt.lastBlockId=d.BlockID.decode(Gt,Gt.uint32());break;case 6:Vt.lastCommitHash=Gt.bytes();break;case 7:Vt.dataHash=Gt.bytes();break;case 8:Vt.validatorsHash=Gt.bytes();break;case 9:Vt.nextValidatorsHash=Gt.bytes();break;case 10:Vt.consensusHash=Gt.bytes();break;case 11:Vt.appHash=Gt.bytes();break;case 12:Vt.lastResultsHash=Gt.bytes();break;case 13:Vt.evidenceHash=Gt.bytes();break;case 14:Vt.proposerAddress=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{version:(0,Pt.isSet)(St.version)?ht.Consensus.fromJSON(St.version):void 0,chainId:(0,Pt.isSet)(St.chainId)?String(St.chainId):"",height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,time:(0,Pt.isSet)(St.time)?(0,Pt.fromJsonTimestamp)(St.time):void 0,lastBlockId:(0,Pt.isSet)(St.lastBlockId)?d.BlockID.fromJSON(St.lastBlockId):void 0,lastCommitHash:(0,Pt.isSet)(St.lastCommitHash)?(0,Pt.bytesFromBase64)(St.lastCommitHash):new Uint8Array,dataHash:(0,Pt.isSet)(St.dataHash)?(0,Pt.bytesFromBase64)(St.dataHash):new Uint8Array,validatorsHash:(0,Pt.isSet)(St.validatorsHash)?(0,Pt.bytesFromBase64)(St.validatorsHash):new Uint8Array,nextValidatorsHash:(0,Pt.isSet)(St.nextValidatorsHash)?(0,Pt.bytesFromBase64)(St.nextValidatorsHash):new Uint8Array,consensusHash:(0,Pt.isSet)(St.consensusHash)?(0,Pt.bytesFromBase64)(St.consensusHash):new Uint8Array,appHash:(0,Pt.isSet)(St.appHash)?(0,Pt.bytesFromBase64)(St.appHash):new Uint8Array,lastResultsHash:(0,Pt.isSet)(St.lastResultsHash)?(0,Pt.bytesFromBase64)(St.lastResultsHash):new Uint8Array,evidenceHash:(0,Pt.isSet)(St.evidenceHash)?(0,Pt.bytesFromBase64)(St.evidenceHash):new Uint8Array,proposerAddress:(0,Pt.isSet)(St.proposerAddress)?(0,Pt.bytesFromBase64)(St.proposerAddress):new Uint8Array}},toJSON(St){const It={};return St.version!==void 0&&(It.version=St.version?ht.Consensus.toJSON(St.version):void 0),St.chainId!==void 0&&(It.chainId=St.chainId),St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.time!==void 0&&(It.time=(0,Pt.fromTimestamp)(St.time).toISOString()),St.lastBlockId!==void 0&&(It.lastBlockId=St.lastBlockId?d.BlockID.toJSON(St.lastBlockId):void 0),St.lastCommitHash!==void 0&&(It.lastCommitHash=(0,Pt.base64FromBytes)(St.lastCommitHash!==void 0?St.lastCommitHash:new Uint8Array)),St.dataHash!==void 0&&(It.dataHash=(0,Pt.base64FromBytes)(St.dataHash!==void 0?St.dataHash:new Uint8Array)),St.validatorsHash!==void 0&&(It.validatorsHash=(0,Pt.base64FromBytes)(St.validatorsHash!==void 0?St.validatorsHash:new Uint8Array)),St.nextValidatorsHash!==void 0&&(It.nextValidatorsHash=(0,Pt.base64FromBytes)(St.nextValidatorsHash!==void 0?St.nextValidatorsHash:new Uint8Array)),St.consensusHash!==void 0&&(It.consensusHash=(0,Pt.base64FromBytes)(St.consensusHash!==void 0?St.consensusHash:new Uint8Array)),St.appHash!==void 0&&(It.appHash=(0,Pt.base64FromBytes)(St.appHash!==void 0?St.appHash:new Uint8Array)),St.lastResultsHash!==void 0&&(It.lastResultsHash=(0,Pt.base64FromBytes)(St.lastResultsHash!==void 0?St.lastResultsHash:new Uint8Array)),St.evidenceHash!==void 0&&(It.evidenceHash=(0,Pt.base64FromBytes)(St.evidenceHash!==void 0?St.evidenceHash:new Uint8Array)),St.proposerAddress!==void 0&&(It.proposerAddress=(0,Pt.base64FromBytes)(St.proposerAddress!==void 0?St.proposerAddress:new Uint8Array)),It},fromPartial(St){const It=Bt();return It.version=St.version!==void 0&&St.version!==null?ht.Consensus.fromPartial(St.version):void 0,It.chainId=St.chainId??"",It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.time=St.time!==void 0&&St.time!==null?mt.Timestamp.fromPartial(St.time):void 0,It.lastBlockId=St.lastBlockId!==void 0&&St.lastBlockId!==null?d.BlockID.fromPartial(St.lastBlockId):void 0,It.lastCommitHash=St.lastCommitHash??new Uint8Array,It.dataHash=St.dataHash??new Uint8Array,It.validatorsHash=St.validatorsHash??new Uint8Array,It.nextValidatorsHash=St.nextValidatorsHash??new Uint8Array,It.consensusHash=St.consensusHash??new Uint8Array,It.appHash=St.appHash??new Uint8Array,It.lastResultsHash=St.lastResultsHash??new Uint8Array,It.evidenceHash=St.evidenceHash??new Uint8Array,It.proposerAddress=St.proposerAddress??new Uint8Array,It}};function Tt(){return{txs:[]}}d.Data={encode(St,It=kt.Writer.create()){for(const Gt of St.txs)It.uint32(10).bytes(Gt);return It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Tt();for(;Gt.pos>>3){case 1:Vt.txs.push(Gt.bytes());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{txs:Array.isArray(St==null?void 0:St.txs)?St.txs.map(It=>(0,Pt.bytesFromBase64)(It)):[]}},toJSON(St){const It={};return St.txs?It.txs=St.txs.map(Gt=>(0,Pt.base64FromBytes)(Gt!==void 0?Gt:new Uint8Array)):It.txs=[],It},fromPartial(St){var Gt;const It=Tt();return It.txs=((Gt=St.txs)==null?void 0:Gt.map(Ut=>Ut))||[],It}};function Mt(){return{type:0,height:Pt.Long.ZERO,round:0,blockId:void 0,timestamp:void 0,validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}d.Vote={encode(St,It=kt.Writer.create()){return St.type!==0&&It.uint32(8).int32(St.type),St.height.isZero()||It.uint32(16).int64(St.height),St.round!==0&&It.uint32(24).int32(St.round),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(34).fork()).ldelim(),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(42).fork()).ldelim(),St.validatorAddress.length!==0&&It.uint32(50).bytes(St.validatorAddress),St.validatorIndex!==0&&It.uint32(56).int32(St.validatorIndex),St.signature.length!==0&&It.uint32(66).bytes(St.signature),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Mt();for(;Gt.pos>>3){case 1:Vt.type=Gt.int32();break;case 2:Vt.height=Gt.int64();break;case 3:Vt.round=Gt.int32();break;case 4:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 5:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 6:Vt.validatorAddress=Gt.bytes();break;case 7:Vt.validatorIndex=Gt.int32();break;case 8:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{type:(0,Pt.isSet)(St.type)?Qt(St.type):0,height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,round:(0,Pt.isSet)(St.round)?Number(St.round):0,blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,timestamp:(0,Pt.isSet)(St.timestamp)?(0,Pt.fromJsonTimestamp)(St.timestamp):void 0,validatorAddress:(0,Pt.isSet)(St.validatorAddress)?(0,Pt.bytesFromBase64)(St.validatorAddress):new Uint8Array,validatorIndex:(0,Pt.isSet)(St.validatorIndex)?Number(St.validatorIndex):0,signature:(0,Pt.isSet)(St.signature)?(0,Pt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.type!==void 0&&(It.type=wt(St.type)),St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.timestamp!==void 0&&(It.timestamp=(0,Pt.fromTimestamp)(St.timestamp).toISOString()),St.validatorAddress!==void 0&&(It.validatorAddress=(0,Pt.base64FromBytes)(St.validatorAddress!==void 0?St.validatorAddress:new Uint8Array)),St.validatorIndex!==void 0&&(It.validatorIndex=Math.round(St.validatorIndex)),St.signature!==void 0&&(It.signature=(0,Pt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=Mt();return It.type=St.type??0,It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.round=St.round??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.validatorAddress=St.validatorAddress??new Uint8Array,It.validatorIndex=St.validatorIndex??0,It.signature=St.signature??new Uint8Array,It}};function jt(){return{height:Pt.Long.ZERO,round:0,blockId:void 0,signatures:[]}}d.Commit={encode(St,It=kt.Writer.create()){St.height.isZero()||It.uint32(8).int64(St.height),St.round!==0&&It.uint32(16).int32(St.round),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(26).fork()).ldelim();for(const Gt of St.signatures)d.CommitSig.encode(Gt,It.uint32(34).fork()).ldelim();return It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=jt();for(;Gt.pos>>3){case 1:Vt.height=Gt.int64();break;case 2:Vt.round=Gt.int32();break;case 3:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 4:Vt.signatures.push(d.CommitSig.decode(Gt,Gt.uint32()));break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,round:(0,Pt.isSet)(St.round)?Number(St.round):0,blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,signatures:Array.isArray(St==null?void 0:St.signatures)?St.signatures.map(It=>d.CommitSig.fromJSON(It)):[]}},toJSON(St){const It={};return St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.signatures?It.signatures=St.signatures.map(Gt=>Gt?d.CommitSig.toJSON(Gt):void 0):It.signatures=[],It},fromPartial(St){var Gt;const It=jt();return It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.round=St.round??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.signatures=((Gt=St.signatures)==null?void 0:Gt.map(Ut=>d.CommitSig.fromPartial(Ut)))||[],It}};function Ht(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}d.CommitSig={encode(St,It=kt.Writer.create()){return St.blockIdFlag!==0&&It.uint32(8).int32(St.blockIdFlag),St.validatorAddress.length!==0&&It.uint32(18).bytes(St.validatorAddress),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(26).fork()).ldelim(),St.signature.length!==0&&It.uint32(34).bytes(St.signature),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Ht();for(;Gt.pos>>3){case 1:Vt.blockIdFlag=Gt.int32();break;case 2:Vt.validatorAddress=Gt.bytes();break;case 3:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 4:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{blockIdFlag:(0,Pt.isSet)(St.blockIdFlag)?Zt(St.blockIdFlag):0,validatorAddress:(0,Pt.isSet)(St.validatorAddress)?(0,Pt.bytesFromBase64)(St.validatorAddress):new Uint8Array,timestamp:(0,Pt.isSet)(St.timestamp)?(0,Pt.fromJsonTimestamp)(St.timestamp):void 0,signature:(0,Pt.isSet)(St.signature)?(0,Pt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.blockIdFlag!==void 0&&(It.blockIdFlag=Rt(St.blockIdFlag)),St.validatorAddress!==void 0&&(It.validatorAddress=(0,Pt.base64FromBytes)(St.validatorAddress!==void 0?St.validatorAddress:new Uint8Array)),St.timestamp!==void 0&&(It.timestamp=(0,Pt.fromTimestamp)(St.timestamp).toISOString()),St.signature!==void 0&&(It.signature=(0,Pt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=Ht();return It.blockIdFlag=St.blockIdFlag??0,It.validatorAddress=St.validatorAddress??new Uint8Array,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.signature=St.signature??new Uint8Array,It}};function an(){return{type:0,height:Pt.Long.ZERO,round:0,polRound:0,blockId:void 0,timestamp:void 0,signature:new Uint8Array}}d.Proposal={encode(St,It=kt.Writer.create()){return St.type!==0&&It.uint32(8).int32(St.type),St.height.isZero()||It.uint32(16).int64(St.height),St.round!==0&&It.uint32(24).int32(St.round),St.polRound!==0&&It.uint32(32).int32(St.polRound),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(42).fork()).ldelim(),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(50).fork()).ldelim(),St.signature.length!==0&&It.uint32(58).bytes(St.signature),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=an();for(;Gt.pos>>3){case 1:Vt.type=Gt.int32();break;case 2:Vt.height=Gt.int64();break;case 3:Vt.round=Gt.int32();break;case 4:Vt.polRound=Gt.int32();break;case 5:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 6:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 7:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{type:(0,Pt.isSet)(St.type)?Qt(St.type):0,height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,round:(0,Pt.isSet)(St.round)?Number(St.round):0,polRound:(0,Pt.isSet)(St.polRound)?Number(St.polRound):0,blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,timestamp:(0,Pt.isSet)(St.timestamp)?(0,Pt.fromJsonTimestamp)(St.timestamp):void 0,signature:(0,Pt.isSet)(St.signature)?(0,Pt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.type!==void 0&&(It.type=wt(St.type)),St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.polRound!==void 0&&(It.polRound=Math.round(St.polRound)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.timestamp!==void 0&&(It.timestamp=(0,Pt.fromTimestamp)(St.timestamp).toISOString()),St.signature!==void 0&&(It.signature=(0,Pt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=an();return It.type=St.type??0,It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.round=St.round??0,It.polRound=St.polRound??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.signature=St.signature??new Uint8Array,It}};function yt(){return{header:void 0,commit:void 0}}d.SignedHeader={encode(St,It=kt.Writer.create()){return St.header!==void 0&&d.Header.encode(St.header,It.uint32(10).fork()).ldelim(),St.commit!==void 0&&d.Commit.encode(St.commit,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=yt();for(;Gt.pos>>3){case 1:Vt.header=d.Header.decode(Gt,Gt.uint32());break;case 2:Vt.commit=d.Commit.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{header:(0,Pt.isSet)(St.header)?d.Header.fromJSON(St.header):void 0,commit:(0,Pt.isSet)(St.commit)?d.Commit.fromJSON(St.commit):void 0}},toJSON(St){const It={};return St.header!==void 0&&(It.header=St.header?d.Header.toJSON(St.header):void 0),St.commit!==void 0&&(It.commit=St.commit?d.Commit.toJSON(St.commit):void 0),It},fromPartial(St){const It=yt();return It.header=St.header!==void 0&&St.header!==null?d.Header.fromPartial(St.header):void 0,It.commit=St.commit!==void 0&&St.commit!==null?d.Commit.fromPartial(St.commit):void 0,It}};function $t(){return{signedHeader:void 0,validatorSet:void 0}}d.LightBlock={encode(St,It=kt.Writer.create()){return St.signedHeader!==void 0&&d.SignedHeader.encode(St.signedHeader,It.uint32(10).fork()).ldelim(),St.validatorSet!==void 0&&vt.ValidatorSet.encode(St.validatorSet,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=$t();for(;Gt.pos>>3){case 1:Vt.signedHeader=d.SignedHeader.decode(Gt,Gt.uint32());break;case 2:Vt.validatorSet=vt.ValidatorSet.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{signedHeader:(0,Pt.isSet)(St.signedHeader)?d.SignedHeader.fromJSON(St.signedHeader):void 0,validatorSet:(0,Pt.isSet)(St.validatorSet)?vt.ValidatorSet.fromJSON(St.validatorSet):void 0}},toJSON(St){const It={};return St.signedHeader!==void 0&&(It.signedHeader=St.signedHeader?d.SignedHeader.toJSON(St.signedHeader):void 0),St.validatorSet!==void 0&&(It.validatorSet=St.validatorSet?vt.ValidatorSet.toJSON(St.validatorSet):void 0),It},fromPartial(St){const It=$t();return It.signedHeader=St.signedHeader!==void 0&&St.signedHeader!==null?d.SignedHeader.fromPartial(St.signedHeader):void 0,It.validatorSet=St.validatorSet!==void 0&&St.validatorSet!==null?vt.ValidatorSet.fromPartial(St.validatorSet):void 0,It}};function Yt(){return{blockId:void 0,blockSize:Pt.Long.ZERO,header:void 0,numTxs:Pt.Long.ZERO}}d.BlockMeta={encode(St,It=kt.Writer.create()){return St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(10).fork()).ldelim(),St.blockSize.isZero()||It.uint32(16).int64(St.blockSize),St.header!==void 0&&d.Header.encode(St.header,It.uint32(26).fork()).ldelim(),St.numTxs.isZero()||It.uint32(32).int64(St.numTxs),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Yt();for(;Gt.pos>>3){case 1:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 2:Vt.blockSize=Gt.int64();break;case 3:Vt.header=d.Header.decode(Gt,Gt.uint32());break;case 4:Vt.numTxs=Gt.int64();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,blockSize:(0,Pt.isSet)(St.blockSize)?Pt.Long.fromValue(St.blockSize):Pt.Long.ZERO,header:(0,Pt.isSet)(St.header)?d.Header.fromJSON(St.header):void 0,numTxs:(0,Pt.isSet)(St.numTxs)?Pt.Long.fromValue(St.numTxs):Pt.Long.ZERO}},toJSON(St){const It={};return St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.blockSize!==void 0&&(It.blockSize=(St.blockSize||Pt.Long.ZERO).toString()),St.header!==void 0&&(It.header=St.header?d.Header.toJSON(St.header):void 0),St.numTxs!==void 0&&(It.numTxs=(St.numTxs||Pt.Long.ZERO).toString()),It},fromPartial(St){const It=Yt();return It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.blockSize=St.blockSize!==void 0&&St.blockSize!==null?Pt.Long.fromValue(St.blockSize):Pt.Long.ZERO,It.header=St.header!==void 0&&St.header!==null?d.Header.fromPartial(St.header):void 0,It.numTxs=St.numTxs!==void 0&&St.numTxs!==null?Pt.Long.fromValue(St.numTxs):Pt.Long.ZERO,It}};function Kt(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}d.TxProof={encode(St,It=kt.Writer.create()){return St.rootHash.length!==0&&It.uint32(10).bytes(St.rootHash),St.data.length!==0&&It.uint32(18).bytes(St.data),St.proof!==void 0&<.Proof.encode(St.proof,It.uint32(26).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Kt();for(;Gt.pos>>3){case 1:Vt.rootHash=Gt.bytes();break;case 2:Vt.data=Gt.bytes();break;case 3:Vt.proof=lt.Proof.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{rootHash:(0,Pt.isSet)(St.rootHash)?(0,Pt.bytesFromBase64)(St.rootHash):new Uint8Array,data:(0,Pt.isSet)(St.data)?(0,Pt.bytesFromBase64)(St.data):new Uint8Array,proof:(0,Pt.isSet)(St.proof)?lt.Proof.fromJSON(St.proof):void 0}},toJSON(St){const It={};return St.rootHash!==void 0&&(It.rootHash=(0,Pt.base64FromBytes)(St.rootHash!==void 0?St.rootHash:new Uint8Array)),St.data!==void 0&&(It.data=(0,Pt.base64FromBytes)(St.data!==void 0?St.data:new Uint8Array)),St.proof!==void 0&&(It.proof=St.proof?lt.Proof.toJSON(St.proof):void 0),It},fromPartial(St){const It=Kt();return It.rootHash=St.rootHash??new Uint8Array,It.data=St.data??new Uint8Array,It.proof=St.proof!==void 0&&St.proof!==null?lt.Proof.fromPartial(St.proof):void 0,It}}})(types$9);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(qt,fn,dn,Dt){Dt===void 0&&(Dt=dn);var zt=Object.getOwnPropertyDescriptor(fn,dn);(!zt||("get"in zt?!fn.__esModule:zt.writable||zt.configurable))&&(zt={enumerable:!0,get:function(){return fn[dn]}}),Object.defineProperty(qt,Dt,zt)}:function(qt,fn,dn,Dt){Dt===void 0&&(Dt=dn),qt[Dt]=fn[dn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(qt,fn){Object.defineProperty(qt,"default",{enumerable:!0,value:fn})}:function(qt,fn){qt.default=fn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(qt){if(qt&&qt.__esModule)return qt;var fn={};if(qt!=null)for(var dn in qt)dn!=="default"&&Object.prototype.hasOwnProperty.call(qt,dn)&&b(fn,qt,dn);return dt(fn,qt),fn};Object.defineProperty(d,"__esModule",{value:!0}),d.Pool=d.RedelegationResponse=d.RedelegationEntryResponse=d.DelegationResponse=d.Params=d.Redelegation=d.RedelegationEntry=d.UnbondingDelegationEntry=d.UnbondingDelegation=d.Delegation=d.DVVTriplets=d.DVVTriplet=d.DVPairs=d.DVPair=d.ValAddresses=d.Validator=d.Description=d.Commission=d.CommissionRates=d.HistoricalInfo=d.bondStatusToJSON=d.bondStatusFromJSON=d.BondStatus=d.protobufPackage=void 0;const lt=types$9,ht=timestamp,mt=any,vt=duration,kt=coin$1,Pt=ct(minimal$2),Jt=helpers;d.protobufPackage="cosmos.staking.v1beta1";var Zt;(function(qt){qt[qt.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",qt[qt.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",qt[qt.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",qt[qt.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",qt[qt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zt=d.BondStatus||(d.BondStatus={}));function Rt(qt){switch(qt){case 0:case"BOND_STATUS_UNSPECIFIED":return Zt.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return Zt.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return Zt.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return Zt.BOND_STATUS_BONDED;case-1:case"UNRECOGNIZED":default:return Zt.UNRECOGNIZED}}d.bondStatusFromJSON=Rt;function nn(qt){switch(qt){case Zt.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case Zt.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case Zt.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case Zt.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";case Zt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.bondStatusToJSON=nn;function Qt(){return{header:void 0,valset:[]}}d.HistoricalInfo={encode(qt,fn=Pt.Writer.create()){qt.header!==void 0&<.Header.encode(qt.header,fn.uint32(10).fork()).ldelim();for(const dn of qt.valset)d.Validator.encode(dn,fn.uint32(18).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Qt();for(;dn.pos>>3){case 1:zt.header=lt.Header.decode(dn,dn.uint32());break;case 2:zt.valset.push(d.Validator.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{header:(0,Jt.isSet)(qt.header)?lt.Header.fromJSON(qt.header):void 0,valset:Array.isArray(qt==null?void 0:qt.valset)?qt.valset.map(fn=>d.Validator.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.header!==void 0&&(fn.header=qt.header?lt.Header.toJSON(qt.header):void 0),qt.valset?fn.valset=qt.valset.map(dn=>dn?d.Validator.toJSON(dn):void 0):fn.valset=[],fn},fromPartial(qt){var dn;const fn=Qt();return fn.header=qt.header!==void 0&&qt.header!==null?lt.Header.fromPartial(qt.header):void 0,fn.valset=((dn=qt.valset)==null?void 0:dn.map(Dt=>d.Validator.fromPartial(Dt)))||[],fn}};function wt(){return{rate:"",maxRate:"",maxChangeRate:""}}d.CommissionRates={encode(qt,fn=Pt.Writer.create()){return qt.rate!==""&&fn.uint32(10).string(qt.rate),qt.maxRate!==""&&fn.uint32(18).string(qt.maxRate),qt.maxChangeRate!==""&&fn.uint32(26).string(qt.maxChangeRate),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=wt();for(;dn.pos>>3){case 1:zt.rate=dn.string();break;case 2:zt.maxRate=dn.string();break;case 3:zt.maxChangeRate=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{rate:(0,Jt.isSet)(qt.rate)?String(qt.rate):"",maxRate:(0,Jt.isSet)(qt.maxRate)?String(qt.maxRate):"",maxChangeRate:(0,Jt.isSet)(qt.maxChangeRate)?String(qt.maxChangeRate):""}},toJSON(qt){const fn={};return qt.rate!==void 0&&(fn.rate=qt.rate),qt.maxRate!==void 0&&(fn.maxRate=qt.maxRate),qt.maxChangeRate!==void 0&&(fn.maxChangeRate=qt.maxChangeRate),fn},fromPartial(qt){const fn=wt();return fn.rate=qt.rate??"",fn.maxRate=qt.maxRate??"",fn.maxChangeRate=qt.maxChangeRate??"",fn}};function Nt(){return{commissionRates:void 0,updateTime:void 0}}d.Commission={encode(qt,fn=Pt.Writer.create()){return qt.commissionRates!==void 0&&d.CommissionRates.encode(qt.commissionRates,fn.uint32(10).fork()).ldelim(),qt.updateTime!==void 0&&ht.Timestamp.encode(qt.updateTime,fn.uint32(18).fork()).ldelim(),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Nt();for(;dn.pos>>3){case 1:zt.commissionRates=d.CommissionRates.decode(dn,dn.uint32());break;case 2:zt.updateTime=ht.Timestamp.decode(dn,dn.uint32());break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{commissionRates:(0,Jt.isSet)(qt.commissionRates)?d.CommissionRates.fromJSON(qt.commissionRates):void 0,updateTime:(0,Jt.isSet)(qt.updateTime)?(0,Jt.fromJsonTimestamp)(qt.updateTime):void 0}},toJSON(qt){const fn={};return qt.commissionRates!==void 0&&(fn.commissionRates=qt.commissionRates?d.CommissionRates.toJSON(qt.commissionRates):void 0),qt.updateTime!==void 0&&(fn.updateTime=(0,Jt.fromTimestamp)(qt.updateTime).toISOString()),fn},fromPartial(qt){const fn=Nt();return fn.commissionRates=qt.commissionRates!==void 0&&qt.commissionRates!==null?d.CommissionRates.fromPartial(qt.commissionRates):void 0,fn.updateTime=qt.updateTime!==void 0&&qt.updateTime!==null?ht.Timestamp.fromPartial(qt.updateTime):void 0,fn}};function xt(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}d.Description={encode(qt,fn=Pt.Writer.create()){return qt.moniker!==""&&fn.uint32(10).string(qt.moniker),qt.identity!==""&&fn.uint32(18).string(qt.identity),qt.website!==""&&fn.uint32(26).string(qt.website),qt.securityContact!==""&&fn.uint32(34).string(qt.securityContact),qt.details!==""&&fn.uint32(42).string(qt.details),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=xt();for(;dn.pos>>3){case 1:zt.moniker=dn.string();break;case 2:zt.identity=dn.string();break;case 3:zt.website=dn.string();break;case 4:zt.securityContact=dn.string();break;case 5:zt.details=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{moniker:(0,Jt.isSet)(qt.moniker)?String(qt.moniker):"",identity:(0,Jt.isSet)(qt.identity)?String(qt.identity):"",website:(0,Jt.isSet)(qt.website)?String(qt.website):"",securityContact:(0,Jt.isSet)(qt.securityContact)?String(qt.securityContact):"",details:(0,Jt.isSet)(qt.details)?String(qt.details):""}},toJSON(qt){const fn={};return qt.moniker!==void 0&&(fn.moniker=qt.moniker),qt.identity!==void 0&&(fn.identity=qt.identity),qt.website!==void 0&&(fn.website=qt.website),qt.securityContact!==void 0&&(fn.securityContact=qt.securityContact),qt.details!==void 0&&(fn.details=qt.details),fn},fromPartial(qt){const fn=xt();return fn.moniker=qt.moniker??"",fn.identity=qt.identity??"",fn.website=qt.website??"",fn.securityContact=qt.securityContact??"",fn.details=qt.details??"",fn}};function Et(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:void 0,unbondingHeight:Jt.Long.ZERO,unbondingTime:void 0,commission:void 0,minSelfDelegation:""}}d.Validator={encode(qt,fn=Pt.Writer.create()){return qt.operatorAddress!==""&&fn.uint32(10).string(qt.operatorAddress),qt.consensusPubkey!==void 0&&mt.Any.encode(qt.consensusPubkey,fn.uint32(18).fork()).ldelim(),qt.jailed===!0&&fn.uint32(24).bool(qt.jailed),qt.status!==0&&fn.uint32(32).int32(qt.status),qt.tokens!==""&&fn.uint32(42).string(qt.tokens),qt.delegatorShares!==""&&fn.uint32(50).string(qt.delegatorShares),qt.description!==void 0&&d.Description.encode(qt.description,fn.uint32(58).fork()).ldelim(),qt.unbondingHeight.isZero()||fn.uint32(64).int64(qt.unbondingHeight),qt.unbondingTime!==void 0&&ht.Timestamp.encode(qt.unbondingTime,fn.uint32(74).fork()).ldelim(),qt.commission!==void 0&&d.Commission.encode(qt.commission,fn.uint32(82).fork()).ldelim(),qt.minSelfDelegation!==""&&fn.uint32(90).string(qt.minSelfDelegation),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Et();for(;dn.pos>>3){case 1:zt.operatorAddress=dn.string();break;case 2:zt.consensusPubkey=mt.Any.decode(dn,dn.uint32());break;case 3:zt.jailed=dn.bool();break;case 4:zt.status=dn.int32();break;case 5:zt.tokens=dn.string();break;case 6:zt.delegatorShares=dn.string();break;case 7:zt.description=d.Description.decode(dn,dn.uint32());break;case 8:zt.unbondingHeight=dn.int64();break;case 9:zt.unbondingTime=ht.Timestamp.decode(dn,dn.uint32());break;case 10:zt.commission=d.Commission.decode(dn,dn.uint32());break;case 11:zt.minSelfDelegation=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{operatorAddress:(0,Jt.isSet)(qt.operatorAddress)?String(qt.operatorAddress):"",consensusPubkey:(0,Jt.isSet)(qt.consensusPubkey)?mt.Any.fromJSON(qt.consensusPubkey):void 0,jailed:(0,Jt.isSet)(qt.jailed)?!!qt.jailed:!1,status:(0,Jt.isSet)(qt.status)?Rt(qt.status):0,tokens:(0,Jt.isSet)(qt.tokens)?String(qt.tokens):"",delegatorShares:(0,Jt.isSet)(qt.delegatorShares)?String(qt.delegatorShares):"",description:(0,Jt.isSet)(qt.description)?d.Description.fromJSON(qt.description):void 0,unbondingHeight:(0,Jt.isSet)(qt.unbondingHeight)?Jt.Long.fromValue(qt.unbondingHeight):Jt.Long.ZERO,unbondingTime:(0,Jt.isSet)(qt.unbondingTime)?(0,Jt.fromJsonTimestamp)(qt.unbondingTime):void 0,commission:(0,Jt.isSet)(qt.commission)?d.Commission.fromJSON(qt.commission):void 0,minSelfDelegation:(0,Jt.isSet)(qt.minSelfDelegation)?String(qt.minSelfDelegation):""}},toJSON(qt){const fn={};return qt.operatorAddress!==void 0&&(fn.operatorAddress=qt.operatorAddress),qt.consensusPubkey!==void 0&&(fn.consensusPubkey=qt.consensusPubkey?mt.Any.toJSON(qt.consensusPubkey):void 0),qt.jailed!==void 0&&(fn.jailed=qt.jailed),qt.status!==void 0&&(fn.status=nn(qt.status)),qt.tokens!==void 0&&(fn.tokens=qt.tokens),qt.delegatorShares!==void 0&&(fn.delegatorShares=qt.delegatorShares),qt.description!==void 0&&(fn.description=qt.description?d.Description.toJSON(qt.description):void 0),qt.unbondingHeight!==void 0&&(fn.unbondingHeight=(qt.unbondingHeight||Jt.Long.ZERO).toString()),qt.unbondingTime!==void 0&&(fn.unbondingTime=(0,Jt.fromTimestamp)(qt.unbondingTime).toISOString()),qt.commission!==void 0&&(fn.commission=qt.commission?d.Commission.toJSON(qt.commission):void 0),qt.minSelfDelegation!==void 0&&(fn.minSelfDelegation=qt.minSelfDelegation),fn},fromPartial(qt){const fn=Et();return fn.operatorAddress=qt.operatorAddress??"",fn.consensusPubkey=qt.consensusPubkey!==void 0&&qt.consensusPubkey!==null?mt.Any.fromPartial(qt.consensusPubkey):void 0,fn.jailed=qt.jailed??!1,fn.status=qt.status??0,fn.tokens=qt.tokens??"",fn.delegatorShares=qt.delegatorShares??"",fn.description=qt.description!==void 0&&qt.description!==null?d.Description.fromPartial(qt.description):void 0,fn.unbondingHeight=qt.unbondingHeight!==void 0&&qt.unbondingHeight!==null?Jt.Long.fromValue(qt.unbondingHeight):Jt.Long.ZERO,fn.unbondingTime=qt.unbondingTime!==void 0&&qt.unbondingTime!==null?ht.Timestamp.fromPartial(qt.unbondingTime):void 0,fn.commission=qt.commission!==void 0&&qt.commission!==null?d.Commission.fromPartial(qt.commission):void 0,fn.minSelfDelegation=qt.minSelfDelegation??"",fn}};function Bt(){return{addresses:[]}}d.ValAddresses={encode(qt,fn=Pt.Writer.create()){for(const dn of qt.addresses)fn.uint32(10).string(dn);return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Bt();for(;dn.pos>>3){case 1:zt.addresses.push(dn.string());break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{addresses:Array.isArray(qt==null?void 0:qt.addresses)?qt.addresses.map(fn=>String(fn)):[]}},toJSON(qt){const fn={};return qt.addresses?fn.addresses=qt.addresses.map(dn=>dn):fn.addresses=[],fn},fromPartial(qt){var dn;const fn=Bt();return fn.addresses=((dn=qt.addresses)==null?void 0:dn.map(Dt=>Dt))||[],fn}};function Tt(){return{delegatorAddress:"",validatorAddress:""}}d.DVPair={encode(qt,fn=Pt.Writer.create()){return qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorAddress!==""&&fn.uint32(18).string(qt.validatorAddress),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Tt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorAddress=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(qt.validatorAddress)?String(qt.validatorAddress):""}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorAddress!==void 0&&(fn.validatorAddress=qt.validatorAddress),fn},fromPartial(qt){const fn=Tt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorAddress=qt.validatorAddress??"",fn}};function Mt(){return{pairs:[]}}d.DVPairs={encode(qt,fn=Pt.Writer.create()){for(const dn of qt.pairs)d.DVPair.encode(dn,fn.uint32(10).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Mt();for(;dn.pos>>3){case 1:zt.pairs.push(d.DVPair.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{pairs:Array.isArray(qt==null?void 0:qt.pairs)?qt.pairs.map(fn=>d.DVPair.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.pairs?fn.pairs=qt.pairs.map(dn=>dn?d.DVPair.toJSON(dn):void 0):fn.pairs=[],fn},fromPartial(qt){var dn;const fn=Mt();return fn.pairs=((dn=qt.pairs)==null?void 0:dn.map(Dt=>d.DVPair.fromPartial(Dt)))||[],fn}};function jt(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}d.DVVTriplet={encode(qt,fn=Pt.Writer.create()){return qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorSrcAddress!==""&&fn.uint32(18).string(qt.validatorSrcAddress),qt.validatorDstAddress!==""&&fn.uint32(26).string(qt.validatorDstAddress),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=jt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorSrcAddress=dn.string();break;case 3:zt.validatorDstAddress=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorSrcAddress:(0,Jt.isSet)(qt.validatorSrcAddress)?String(qt.validatorSrcAddress):"",validatorDstAddress:(0,Jt.isSet)(qt.validatorDstAddress)?String(qt.validatorDstAddress):""}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorSrcAddress!==void 0&&(fn.validatorSrcAddress=qt.validatorSrcAddress),qt.validatorDstAddress!==void 0&&(fn.validatorDstAddress=qt.validatorDstAddress),fn},fromPartial(qt){const fn=jt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorSrcAddress=qt.validatorSrcAddress??"",fn.validatorDstAddress=qt.validatorDstAddress??"",fn}};function Ht(){return{triplets:[]}}d.DVVTriplets={encode(qt,fn=Pt.Writer.create()){for(const dn of qt.triplets)d.DVVTriplet.encode(dn,fn.uint32(10).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Ht();for(;dn.pos>>3){case 1:zt.triplets.push(d.DVVTriplet.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{triplets:Array.isArray(qt==null?void 0:qt.triplets)?qt.triplets.map(fn=>d.DVVTriplet.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.triplets?fn.triplets=qt.triplets.map(dn=>dn?d.DVVTriplet.toJSON(dn):void 0):fn.triplets=[],fn},fromPartial(qt){var dn;const fn=Ht();return fn.triplets=((dn=qt.triplets)==null?void 0:dn.map(Dt=>d.DVVTriplet.fromPartial(Dt)))||[],fn}};function an(){return{delegatorAddress:"",validatorAddress:"",shares:""}}d.Delegation={encode(qt,fn=Pt.Writer.create()){return qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorAddress!==""&&fn.uint32(18).string(qt.validatorAddress),qt.shares!==""&&fn.uint32(26).string(qt.shares),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=an();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorAddress=dn.string();break;case 3:zt.shares=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(qt.validatorAddress)?String(qt.validatorAddress):"",shares:(0,Jt.isSet)(qt.shares)?String(qt.shares):""}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorAddress!==void 0&&(fn.validatorAddress=qt.validatorAddress),qt.shares!==void 0&&(fn.shares=qt.shares),fn},fromPartial(qt){const fn=an();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorAddress=qt.validatorAddress??"",fn.shares=qt.shares??"",fn}};function yt(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}d.UnbondingDelegation={encode(qt,fn=Pt.Writer.create()){qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorAddress!==""&&fn.uint32(18).string(qt.validatorAddress);for(const dn of qt.entries)d.UnbondingDelegationEntry.encode(dn,fn.uint32(26).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=yt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorAddress=dn.string();break;case 3:zt.entries.push(d.UnbondingDelegationEntry.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(qt.validatorAddress)?String(qt.validatorAddress):"",entries:Array.isArray(qt==null?void 0:qt.entries)?qt.entries.map(fn=>d.UnbondingDelegationEntry.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorAddress!==void 0&&(fn.validatorAddress=qt.validatorAddress),qt.entries?fn.entries=qt.entries.map(dn=>dn?d.UnbondingDelegationEntry.toJSON(dn):void 0):fn.entries=[],fn},fromPartial(qt){var dn;const fn=yt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorAddress=qt.validatorAddress??"",fn.entries=((dn=qt.entries)==null?void 0:dn.map(Dt=>d.UnbondingDelegationEntry.fromPartial(Dt)))||[],fn}};function $t(){return{creationHeight:Jt.Long.ZERO,completionTime:void 0,initialBalance:"",balance:""}}d.UnbondingDelegationEntry={encode(qt,fn=Pt.Writer.create()){return qt.creationHeight.isZero()||fn.uint32(8).int64(qt.creationHeight),qt.completionTime!==void 0&&ht.Timestamp.encode(qt.completionTime,fn.uint32(18).fork()).ldelim(),qt.initialBalance!==""&&fn.uint32(26).string(qt.initialBalance),qt.balance!==""&&fn.uint32(34).string(qt.balance),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=$t();for(;dn.pos>>3){case 1:zt.creationHeight=dn.int64();break;case 2:zt.completionTime=ht.Timestamp.decode(dn,dn.uint32());break;case 3:zt.initialBalance=dn.string();break;case 4:zt.balance=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{creationHeight:(0,Jt.isSet)(qt.creationHeight)?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,completionTime:(0,Jt.isSet)(qt.completionTime)?(0,Jt.fromJsonTimestamp)(qt.completionTime):void 0,initialBalance:(0,Jt.isSet)(qt.initialBalance)?String(qt.initialBalance):"",balance:(0,Jt.isSet)(qt.balance)?String(qt.balance):""}},toJSON(qt){const fn={};return qt.creationHeight!==void 0&&(fn.creationHeight=(qt.creationHeight||Jt.Long.ZERO).toString()),qt.completionTime!==void 0&&(fn.completionTime=(0,Jt.fromTimestamp)(qt.completionTime).toISOString()),qt.initialBalance!==void 0&&(fn.initialBalance=qt.initialBalance),qt.balance!==void 0&&(fn.balance=qt.balance),fn},fromPartial(qt){const fn=$t();return fn.creationHeight=qt.creationHeight!==void 0&&qt.creationHeight!==null?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,fn.completionTime=qt.completionTime!==void 0&&qt.completionTime!==null?ht.Timestamp.fromPartial(qt.completionTime):void 0,fn.initialBalance=qt.initialBalance??"",fn.balance=qt.balance??"",fn}};function Yt(){return{creationHeight:Jt.Long.ZERO,completionTime:void 0,initialBalance:"",sharesDst:""}}d.RedelegationEntry={encode(qt,fn=Pt.Writer.create()){return qt.creationHeight.isZero()||fn.uint32(8).int64(qt.creationHeight),qt.completionTime!==void 0&&ht.Timestamp.encode(qt.completionTime,fn.uint32(18).fork()).ldelim(),qt.initialBalance!==""&&fn.uint32(26).string(qt.initialBalance),qt.sharesDst!==""&&fn.uint32(34).string(qt.sharesDst),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Yt();for(;dn.pos>>3){case 1:zt.creationHeight=dn.int64();break;case 2:zt.completionTime=ht.Timestamp.decode(dn,dn.uint32());break;case 3:zt.initialBalance=dn.string();break;case 4:zt.sharesDst=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{creationHeight:(0,Jt.isSet)(qt.creationHeight)?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,completionTime:(0,Jt.isSet)(qt.completionTime)?(0,Jt.fromJsonTimestamp)(qt.completionTime):void 0,initialBalance:(0,Jt.isSet)(qt.initialBalance)?String(qt.initialBalance):"",sharesDst:(0,Jt.isSet)(qt.sharesDst)?String(qt.sharesDst):""}},toJSON(qt){const fn={};return qt.creationHeight!==void 0&&(fn.creationHeight=(qt.creationHeight||Jt.Long.ZERO).toString()),qt.completionTime!==void 0&&(fn.completionTime=(0,Jt.fromTimestamp)(qt.completionTime).toISOString()),qt.initialBalance!==void 0&&(fn.initialBalance=qt.initialBalance),qt.sharesDst!==void 0&&(fn.sharesDst=qt.sharesDst),fn},fromPartial(qt){const fn=Yt();return fn.creationHeight=qt.creationHeight!==void 0&&qt.creationHeight!==null?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,fn.completionTime=qt.completionTime!==void 0&&qt.completionTime!==null?ht.Timestamp.fromPartial(qt.completionTime):void 0,fn.initialBalance=qt.initialBalance??"",fn.sharesDst=qt.sharesDst??"",fn}};function Kt(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}d.Redelegation={encode(qt,fn=Pt.Writer.create()){qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorSrcAddress!==""&&fn.uint32(18).string(qt.validatorSrcAddress),qt.validatorDstAddress!==""&&fn.uint32(26).string(qt.validatorDstAddress);for(const dn of qt.entries)d.RedelegationEntry.encode(dn,fn.uint32(34).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Kt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorSrcAddress=dn.string();break;case 3:zt.validatorDstAddress=dn.string();break;case 4:zt.entries.push(d.RedelegationEntry.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorSrcAddress:(0,Jt.isSet)(qt.validatorSrcAddress)?String(qt.validatorSrcAddress):"",validatorDstAddress:(0,Jt.isSet)(qt.validatorDstAddress)?String(qt.validatorDstAddress):"",entries:Array.isArray(qt==null?void 0:qt.entries)?qt.entries.map(fn=>d.RedelegationEntry.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorSrcAddress!==void 0&&(fn.validatorSrcAddress=qt.validatorSrcAddress),qt.validatorDstAddress!==void 0&&(fn.validatorDstAddress=qt.validatorDstAddress),qt.entries?fn.entries=qt.entries.map(dn=>dn?d.RedelegationEntry.toJSON(dn):void 0):fn.entries=[],fn},fromPartial(qt){var dn;const fn=Kt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorSrcAddress=qt.validatorSrcAddress??"",fn.validatorDstAddress=qt.validatorDstAddress??"",fn.entries=((dn=qt.entries)==null?void 0:dn.map(Dt=>d.RedelegationEntry.fromPartial(Dt)))||[],fn}};function St(){return{unbondingTime:void 0,maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:""}}d.Params={encode(qt,fn=Pt.Writer.create()){return qt.unbondingTime!==void 0&&vt.Duration.encode(qt.unbondingTime,fn.uint32(10).fork()).ldelim(),qt.maxValidators!==0&&fn.uint32(16).uint32(qt.maxValidators),qt.maxEntries!==0&&fn.uint32(24).uint32(qt.maxEntries),qt.historicalEntries!==0&&fn.uint32(32).uint32(qt.historicalEntries),qt.bondDenom!==""&&fn.uint32(42).string(qt.bondDenom),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=St();for(;dn.pos>>3){case 1:zt.unbondingTime=vt.Duration.decode(dn,dn.uint32());break;case 2:zt.maxValidators=dn.uint32();break;case 3:zt.maxEntries=dn.uint32();break;case 4:zt.historicalEntries=dn.uint32();break;case 5:zt.bondDenom=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{unbondingTime:(0,Jt.isSet)(qt.unbondingTime)?vt.Duration.fromJSON(qt.unbondingTime):void 0,maxValidators:(0,Jt.isSet)(qt.maxValidators)?Number(qt.maxValidators):0,maxEntries:(0,Jt.isSet)(qt.maxEntries)?Number(qt.maxEntries):0,historicalEntries:(0,Jt.isSet)(qt.historicalEntries)?Number(qt.historicalEntries):0,bondDenom:(0,Jt.isSet)(qt.bondDenom)?String(qt.bondDenom):""}},toJSON(qt){const fn={};return qt.unbondingTime!==void 0&&(fn.unbondingTime=qt.unbondingTime?vt.Duration.toJSON(qt.unbondingTime):void 0),qt.maxValidators!==void 0&&(fn.maxValidators=Math.round(qt.maxValidators)),qt.maxEntries!==void 0&&(fn.maxEntries=Math.round(qt.maxEntries)),qt.historicalEntries!==void 0&&(fn.historicalEntries=Math.round(qt.historicalEntries)),qt.bondDenom!==void 0&&(fn.bondDenom=qt.bondDenom),fn},fromPartial(qt){const fn=St();return fn.unbondingTime=qt.unbondingTime!==void 0&&qt.unbondingTime!==null?vt.Duration.fromPartial(qt.unbondingTime):void 0,fn.maxValidators=qt.maxValidators??0,fn.maxEntries=qt.maxEntries??0,fn.historicalEntries=qt.historicalEntries??0,fn.bondDenom=qt.bondDenom??"",fn}};function It(){return{delegation:void 0,balance:void 0}}d.DelegationResponse={encode(qt,fn=Pt.Writer.create()){return qt.delegation!==void 0&&d.Delegation.encode(qt.delegation,fn.uint32(10).fork()).ldelim(),qt.balance!==void 0&&kt.Coin.encode(qt.balance,fn.uint32(18).fork()).ldelim(),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=It();for(;dn.pos>>3){case 1:zt.delegation=d.Delegation.decode(dn,dn.uint32());break;case 2:zt.balance=kt.Coin.decode(dn,dn.uint32());break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegation:(0,Jt.isSet)(qt.delegation)?d.Delegation.fromJSON(qt.delegation):void 0,balance:(0,Jt.isSet)(qt.balance)?kt.Coin.fromJSON(qt.balance):void 0}},toJSON(qt){const fn={};return qt.delegation!==void 0&&(fn.delegation=qt.delegation?d.Delegation.toJSON(qt.delegation):void 0),qt.balance!==void 0&&(fn.balance=qt.balance?kt.Coin.toJSON(qt.balance):void 0),fn},fromPartial(qt){const fn=It();return fn.delegation=qt.delegation!==void 0&&qt.delegation!==null?d.Delegation.fromPartial(qt.delegation):void 0,fn.balance=qt.balance!==void 0&&qt.balance!==null?kt.Coin.fromPartial(qt.balance):void 0,fn}};function Gt(){return{redelegationEntry:void 0,balance:""}}d.RedelegationEntryResponse={encode(qt,fn=Pt.Writer.create()){return qt.redelegationEntry!==void 0&&d.RedelegationEntry.encode(qt.redelegationEntry,fn.uint32(10).fork()).ldelim(),qt.balance!==""&&fn.uint32(34).string(qt.balance),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Gt();for(;dn.pos>>3){case 1:zt.redelegationEntry=d.RedelegationEntry.decode(dn,dn.uint32());break;case 4:zt.balance=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{redelegationEntry:(0,Jt.isSet)(qt.redelegationEntry)?d.RedelegationEntry.fromJSON(qt.redelegationEntry):void 0,balance:(0,Jt.isSet)(qt.balance)?String(qt.balance):""}},toJSON(qt){const fn={};return qt.redelegationEntry!==void 0&&(fn.redelegationEntry=qt.redelegationEntry?d.RedelegationEntry.toJSON(qt.redelegationEntry):void 0),qt.balance!==void 0&&(fn.balance=qt.balance),fn},fromPartial(qt){const fn=Gt();return fn.redelegationEntry=qt.redelegationEntry!==void 0&&qt.redelegationEntry!==null?d.RedelegationEntry.fromPartial(qt.redelegationEntry):void 0,fn.balance=qt.balance??"",fn}};function Ut(){return{redelegation:void 0,entries:[]}}d.RedelegationResponse={encode(qt,fn=Pt.Writer.create()){qt.redelegation!==void 0&&d.Redelegation.encode(qt.redelegation,fn.uint32(10).fork()).ldelim();for(const dn of qt.entries)d.RedelegationEntryResponse.encode(dn,fn.uint32(18).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Ut();for(;dn.pos>>3){case 1:zt.redelegation=d.Redelegation.decode(dn,dn.uint32());break;case 2:zt.entries.push(d.RedelegationEntryResponse.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{redelegation:(0,Jt.isSet)(qt.redelegation)?d.Redelegation.fromJSON(qt.redelegation):void 0,entries:Array.isArray(qt==null?void 0:qt.entries)?qt.entries.map(fn=>d.RedelegationEntryResponse.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.redelegation!==void 0&&(fn.redelegation=qt.redelegation?d.Redelegation.toJSON(qt.redelegation):void 0),qt.entries?fn.entries=qt.entries.map(dn=>dn?d.RedelegationEntryResponse.toJSON(dn):void 0):fn.entries=[],fn},fromPartial(qt){var dn;const fn=Ut();return fn.redelegation=qt.redelegation!==void 0&&qt.redelegation!==null?d.Redelegation.fromPartial(qt.redelegation):void 0,fn.entries=((dn=qt.entries)==null?void 0:dn.map(Dt=>d.RedelegationEntryResponse.fromPartial(Dt)))||[],fn}};function Vt(){return{notBondedTokens:"",bondedTokens:""}}d.Pool={encode(qt,fn=Pt.Writer.create()){return qt.notBondedTokens!==""&&fn.uint32(10).string(qt.notBondedTokens),qt.bondedTokens!==""&&fn.uint32(18).string(qt.bondedTokens),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Vt();for(;dn.pos>>3){case 1:zt.notBondedTokens=dn.string();break;case 2:zt.bondedTokens=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{notBondedTokens:(0,Jt.isSet)(qt.notBondedTokens)?String(qt.notBondedTokens):"",bondedTokens:(0,Jt.isSet)(qt.bondedTokens)?String(qt.bondedTokens):""}},toJSON(qt){const fn={};return qt.notBondedTokens!==void 0&&(fn.notBondedTokens=qt.notBondedTokens),qt.bondedTokens!==void 0&&(fn.bondedTokens=qt.bondedTokens),fn},fromPartial(qt){const fn=Vt();return fn.notBondedTokens=qt.notBondedTokens??"",fn.bondedTokens=qt.bondedTokens??"",fn}}})(staking);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Dt,zt,tn,An){An===void 0&&(An=tn);var gn=Object.getOwnPropertyDescriptor(zt,tn);(!gn||("get"in gn?!zt.__esModule:gn.writable||gn.configurable))&&(gn={enumerable:!0,get:function(){return zt[tn]}}),Object.defineProperty(Dt,An,gn)}:function(Dt,zt,tn,An){An===void 0&&(An=tn),Dt[An]=zt[tn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Dt,zt){Object.defineProperty(Dt,"default",{enumerable:!0,value:zt})}:function(Dt,zt){Dt.default=zt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Dt){if(Dt&&Dt.__esModule)return Dt;var zt={};if(Dt!=null)for(var tn in Dt)tn!=="default"&&Object.prototype.hasOwnProperty.call(Dt,tn)&&b(zt,Dt,tn);return dt(zt,Dt),zt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryPoolResponse=d.QueryPoolRequest=d.QueryHistoricalInfoResponse=d.QueryHistoricalInfoRequest=d.QueryDelegatorValidatorResponse=d.QueryDelegatorValidatorRequest=d.QueryDelegatorValidatorsResponse=d.QueryDelegatorValidatorsRequest=d.QueryRedelegationsResponse=d.QueryRedelegationsRequest=d.QueryDelegatorUnbondingDelegationsResponse=d.QueryDelegatorUnbondingDelegationsRequest=d.QueryDelegatorDelegationsResponse=d.QueryDelegatorDelegationsRequest=d.QueryUnbondingDelegationResponse=d.QueryUnbondingDelegationRequest=d.QueryDelegationResponse=d.QueryDelegationRequest=d.QueryValidatorUnbondingDelegationsResponse=d.QueryValidatorUnbondingDelegationsRequest=d.QueryValidatorDelegationsResponse=d.QueryValidatorDelegationsRequest=d.QueryValidatorResponse=d.QueryValidatorRequest=d.QueryValidatorsResponse=d.QueryValidatorsRequest=d.protobufPackage=void 0;const lt=pagination$2,ht=staking,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.staking.v1beta1";function kt(){return{status:"",pagination:void 0}}d.QueryValidatorsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.status!==""&&zt.uint32(10).string(Dt.status),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=kt();for(;tn.pos>>3){case 1:gn.status=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{status:(0,vt.isSet)(Dt.status)?String(Dt.status):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.status!==void 0&&(zt.status=Dt.status),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=kt();return zt.status=Dt.status??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Pt(){return{validators:[],pagination:void 0}}d.QueryValidatorsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.validators)ht.Validator.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Pt();for(;tn.pos>>3){case 1:gn.validators.push(ht.Validator.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validators:Array.isArray(Dt==null?void 0:Dt.validators)?Dt.validators.map(zt=>ht.Validator.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validators?zt.validators=Dt.validators.map(tn=>tn?ht.Validator.toJSON(tn):void 0):zt.validators=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Pt();return zt.validators=((tn=Dt.validators)==null?void 0:tn.map(An=>ht.Validator.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Jt(){return{validatorAddr:""}}d.QueryValidatorRequest={encode(Dt,zt=mt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Jt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Jt();return zt.validatorAddr=Dt.validatorAddr??"",zt}};function Zt(){return{validator:void 0}}d.QueryValidatorResponse={encode(Dt,zt=mt.Writer.create()){return Dt.validator!==void 0&&ht.Validator.encode(Dt.validator,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Zt();for(;tn.pos>>3){case 1:gn.validator=ht.Validator.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validator:(0,vt.isSet)(Dt.validator)?ht.Validator.fromJSON(Dt.validator):void 0}},toJSON(Dt){const zt={};return Dt.validator!==void 0&&(zt.validator=Dt.validator?ht.Validator.toJSON(Dt.validator):void 0),zt},fromPartial(Dt){const zt=Zt();return zt.validator=Dt.validator!==void 0&&Dt.validator!==null?ht.Validator.fromPartial(Dt.validator):void 0,zt}};function Rt(){return{validatorAddr:"",pagination:void 0}}d.QueryValidatorDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Rt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Rt();return zt.validatorAddr=Dt.validatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function nn(){return{delegationResponses:[],pagination:void 0}}d.QueryValidatorDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.delegationResponses)ht.DelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=nn();for(;tn.pos>>3){case 1:gn.delegationResponses.push(ht.DelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponses:Array.isArray(Dt==null?void 0:Dt.delegationResponses)?Dt.delegationResponses.map(zt=>ht.DelegationResponse.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponses?zt.delegationResponses=Dt.delegationResponses.map(tn=>tn?ht.DelegationResponse.toJSON(tn):void 0):zt.delegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=nn();return zt.delegationResponses=((tn=Dt.delegationResponses)==null?void 0:tn.map(An=>ht.DelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Qt(){return{validatorAddr:"",pagination:void 0}}d.QueryValidatorUnbondingDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Qt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Qt();return zt.validatorAddr=Dt.validatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function wt(){return{unbondingResponses:[],pagination:void 0}}d.QueryValidatorUnbondingDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.unbondingResponses)ht.UnbondingDelegation.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=wt();for(;tn.pos>>3){case 1:gn.unbondingResponses.push(ht.UnbondingDelegation.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbondingResponses:Array.isArray(Dt==null?void 0:Dt.unbondingResponses)?Dt.unbondingResponses.map(zt=>ht.UnbondingDelegation.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.unbondingResponses?zt.unbondingResponses=Dt.unbondingResponses.map(tn=>tn?ht.UnbondingDelegation.toJSON(tn):void 0):zt.unbondingResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=wt();return zt.unbondingResponses=((tn=Dt.unbondingResponses)==null?void 0:tn.map(An=>ht.UnbondingDelegation.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Nt(){return{delegatorAddr:"",validatorAddr:""}}d.QueryDelegationRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Nt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Nt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function xt(){return{delegationResponse:void 0}}d.QueryDelegationResponse={encode(Dt,zt=mt.Writer.create()){return Dt.delegationResponse!==void 0&&ht.DelegationResponse.encode(Dt.delegationResponse,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=xt();for(;tn.pos>>3){case 1:gn.delegationResponse=ht.DelegationResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponse:(0,vt.isSet)(Dt.delegationResponse)?ht.DelegationResponse.fromJSON(Dt.delegationResponse):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponse!==void 0&&(zt.delegationResponse=Dt.delegationResponse?ht.DelegationResponse.toJSON(Dt.delegationResponse):void 0),zt},fromPartial(Dt){const zt=xt();return zt.delegationResponse=Dt.delegationResponse!==void 0&&Dt.delegationResponse!==null?ht.DelegationResponse.fromPartial(Dt.delegationResponse):void 0,zt}};function Et(){return{delegatorAddr:"",validatorAddr:""}}d.QueryUnbondingDelegationRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Et();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Et();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function Bt(){return{unbond:void 0}}d.QueryUnbondingDelegationResponse={encode(Dt,zt=mt.Writer.create()){return Dt.unbond!==void 0&&ht.UnbondingDelegation.encode(Dt.unbond,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Bt();for(;tn.pos>>3){case 1:gn.unbond=ht.UnbondingDelegation.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbond:(0,vt.isSet)(Dt.unbond)?ht.UnbondingDelegation.fromJSON(Dt.unbond):void 0}},toJSON(Dt){const zt={};return Dt.unbond!==void 0&&(zt.unbond=Dt.unbond?ht.UnbondingDelegation.toJSON(Dt.unbond):void 0),zt},fromPartial(Dt){const zt=Bt();return zt.unbond=Dt.unbond!==void 0&&Dt.unbond!==null?ht.UnbondingDelegation.fromPartial(Dt.unbond):void 0,zt}};function Tt(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Tt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Tt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Mt(){return{delegationResponses:[],pagination:void 0}}d.QueryDelegatorDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.delegationResponses)ht.DelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Mt();for(;tn.pos>>3){case 1:gn.delegationResponses.push(ht.DelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponses:Array.isArray(Dt==null?void 0:Dt.delegationResponses)?Dt.delegationResponses.map(zt=>ht.DelegationResponse.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponses?zt.delegationResponses=Dt.delegationResponses.map(tn=>tn?ht.DelegationResponse.toJSON(tn):void 0):zt.delegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Mt();return zt.delegationResponses=((tn=Dt.delegationResponses)==null?void 0:tn.map(An=>ht.DelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function jt(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorUnbondingDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=jt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=jt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Ht(){return{unbondingResponses:[],pagination:void 0}}d.QueryDelegatorUnbondingDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.unbondingResponses)ht.UnbondingDelegation.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ht();for(;tn.pos>>3){case 1:gn.unbondingResponses.push(ht.UnbondingDelegation.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbondingResponses:Array.isArray(Dt==null?void 0:Dt.unbondingResponses)?Dt.unbondingResponses.map(zt=>ht.UnbondingDelegation.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.unbondingResponses?zt.unbondingResponses=Dt.unbondingResponses.map(tn=>tn?ht.UnbondingDelegation.toJSON(tn):void 0):zt.unbondingResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Ht();return zt.unbondingResponses=((tn=Dt.unbondingResponses)==null?void 0:tn.map(An=>ht.UnbondingDelegation.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function an(){return{delegatorAddr:"",srcValidatorAddr:"",dstValidatorAddr:"",pagination:void 0}}d.QueryRedelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.srcValidatorAddr!==""&&zt.uint32(18).string(Dt.srcValidatorAddr),Dt.dstValidatorAddr!==""&&zt.uint32(26).string(Dt.dstValidatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(34).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=an();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.srcValidatorAddr=tn.string();break;case 3:gn.dstValidatorAddr=tn.string();break;case 4:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",srcValidatorAddr:(0,vt.isSet)(Dt.srcValidatorAddr)?String(Dt.srcValidatorAddr):"",dstValidatorAddr:(0,vt.isSet)(Dt.dstValidatorAddr)?String(Dt.dstValidatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.srcValidatorAddr!==void 0&&(zt.srcValidatorAddr=Dt.srcValidatorAddr),Dt.dstValidatorAddr!==void 0&&(zt.dstValidatorAddr=Dt.dstValidatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=an();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.srcValidatorAddr=Dt.srcValidatorAddr??"",zt.dstValidatorAddr=Dt.dstValidatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function yt(){return{redelegationResponses:[],pagination:void 0}}d.QueryRedelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.redelegationResponses)ht.RedelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=yt();for(;tn.pos>>3){case 1:gn.redelegationResponses.push(ht.RedelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{redelegationResponses:Array.isArray(Dt==null?void 0:Dt.redelegationResponses)?Dt.redelegationResponses.map(zt=>ht.RedelegationResponse.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.redelegationResponses?zt.redelegationResponses=Dt.redelegationResponses.map(tn=>tn?ht.RedelegationResponse.toJSON(tn):void 0):zt.redelegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=yt();return zt.redelegationResponses=((tn=Dt.redelegationResponses)==null?void 0:tn.map(An=>ht.RedelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function $t(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorValidatorsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=$t();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=$t();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Yt(){return{validators:[],pagination:void 0}}d.QueryDelegatorValidatorsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.validators)ht.Validator.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Yt();for(;tn.pos>>3){case 1:gn.validators.push(ht.Validator.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validators:Array.isArray(Dt==null?void 0:Dt.validators)?Dt.validators.map(zt=>ht.Validator.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validators?zt.validators=Dt.validators.map(tn=>tn?ht.Validator.toJSON(tn):void 0):zt.validators=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Yt();return zt.validators=((tn=Dt.validators)==null?void 0:tn.map(An=>ht.Validator.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Kt(){return{delegatorAddr:"",validatorAddr:""}}d.QueryDelegatorValidatorRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Kt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Kt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function St(){return{validator:void 0}}d.QueryDelegatorValidatorResponse={encode(Dt,zt=mt.Writer.create()){return Dt.validator!==void 0&&ht.Validator.encode(Dt.validator,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=St();for(;tn.pos>>3){case 1:gn.validator=ht.Validator.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validator:(0,vt.isSet)(Dt.validator)?ht.Validator.fromJSON(Dt.validator):void 0}},toJSON(Dt){const zt={};return Dt.validator!==void 0&&(zt.validator=Dt.validator?ht.Validator.toJSON(Dt.validator):void 0),zt},fromPartial(Dt){const zt=St();return zt.validator=Dt.validator!==void 0&&Dt.validator!==null?ht.Validator.fromPartial(Dt.validator):void 0,zt}};function It(){return{height:vt.Long.ZERO}}d.QueryHistoricalInfoRequest={encode(Dt,zt=mt.Writer.create()){return Dt.height.isZero()||zt.uint32(8).int64(Dt.height),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=It();for(;tn.pos>>3){case 1:gn.height=tn.int64();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{height:(0,vt.isSet)(Dt.height)?vt.Long.fromValue(Dt.height):vt.Long.ZERO}},toJSON(Dt){const zt={};return Dt.height!==void 0&&(zt.height=(Dt.height||vt.Long.ZERO).toString()),zt},fromPartial(Dt){const zt=It();return zt.height=Dt.height!==void 0&&Dt.height!==null?vt.Long.fromValue(Dt.height):vt.Long.ZERO,zt}};function Gt(){return{hist:void 0}}d.QueryHistoricalInfoResponse={encode(Dt,zt=mt.Writer.create()){return Dt.hist!==void 0&&ht.HistoricalInfo.encode(Dt.hist,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Gt();for(;tn.pos>>3){case 1:gn.hist=ht.HistoricalInfo.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{hist:(0,vt.isSet)(Dt.hist)?ht.HistoricalInfo.fromJSON(Dt.hist):void 0}},toJSON(Dt){const zt={};return Dt.hist!==void 0&&(zt.hist=Dt.hist?ht.HistoricalInfo.toJSON(Dt.hist):void 0),zt},fromPartial(Dt){const zt=Gt();return zt.hist=Dt.hist!==void 0&&Dt.hist!==null?ht.HistoricalInfo.fromPartial(Dt.hist):void 0,zt}};function Ut(){return{}}d.QueryPoolRequest={encode(Dt,zt=mt.Writer.create()){return zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ut();for(;tn.pos>>3){default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{}},toJSON(Dt){return{}},fromPartial(Dt){return Ut()}};function Vt(){return{pool:void 0}}d.QueryPoolResponse={encode(Dt,zt=mt.Writer.create()){return Dt.pool!==void 0&&ht.Pool.encode(Dt.pool,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Vt();for(;tn.pos>>3){case 1:gn.pool=ht.Pool.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{pool:(0,vt.isSet)(Dt.pool)?ht.Pool.fromJSON(Dt.pool):void 0}},toJSON(Dt){const zt={};return Dt.pool!==void 0&&(zt.pool=Dt.pool?ht.Pool.toJSON(Dt.pool):void 0),zt},fromPartial(Dt){const zt=Vt();return zt.pool=Dt.pool!==void 0&&Dt.pool!==null?ht.Pool.fromPartial(Dt.pool):void 0,zt}};function qt(){return{}}d.QueryParamsRequest={encode(Dt,zt=mt.Writer.create()){return zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=qt();for(;tn.pos>>3){default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{}},toJSON(Dt){return{}},fromPartial(Dt){return qt()}};function fn(){return{params:void 0}}d.QueryParamsResponse={encode(Dt,zt=mt.Writer.create()){return Dt.params!==void 0&&ht.Params.encode(Dt.params,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=fn();for(;tn.pos>>3){case 1:gn.params=ht.Params.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{params:(0,vt.isSet)(Dt.params)?ht.Params.fromJSON(Dt.params):void 0}},toJSON(Dt){const zt={};return Dt.params!==void 0&&(zt.params=Dt.params?ht.Params.toJSON(Dt.params):void 0),zt},fromPartial(Dt){const zt=fn();return zt.params=Dt.params!==void 0&&Dt.params!==null?ht.Params.fromPartial(Dt.params):void 0,zt}};class dn{constructor(zt){this.rpc=zt,this.Validators=this.Validators.bind(this),this.Validator=this.Validator.bind(this),this.ValidatorDelegations=this.ValidatorDelegations.bind(this),this.ValidatorUnbondingDelegations=this.ValidatorUnbondingDelegations.bind(this),this.Delegation=this.Delegation.bind(this),this.UnbondingDelegation=this.UnbondingDelegation.bind(this),this.DelegatorDelegations=this.DelegatorDelegations.bind(this),this.DelegatorUnbondingDelegations=this.DelegatorUnbondingDelegations.bind(this),this.Redelegations=this.Redelegations.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorValidator=this.DelegatorValidator.bind(this),this.HistoricalInfo=this.HistoricalInfo.bind(this),this.Pool=this.Pool.bind(this),this.Params=this.Params.bind(this)}Validators(zt){const tn=d.QueryValidatorsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validators",tn).then(gn=>d.QueryValidatorsResponse.decode(new mt.Reader(gn)))}Validator(zt){const tn=d.QueryValidatorRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validator",tn).then(gn=>d.QueryValidatorResponse.decode(new mt.Reader(gn)))}ValidatorDelegations(zt){const tn=d.QueryValidatorDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorDelegations",tn).then(gn=>d.QueryValidatorDelegationsResponse.decode(new mt.Reader(gn)))}ValidatorUnbondingDelegations(zt){const tn=d.QueryValidatorUnbondingDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorUnbondingDelegations",tn).then(gn=>d.QueryValidatorUnbondingDelegationsResponse.decode(new mt.Reader(gn)))}Delegation(zt){const tn=d.QueryDelegationRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Delegation",tn).then(gn=>d.QueryDelegationResponse.decode(new mt.Reader(gn)))}UnbondingDelegation(zt){const tn=d.QueryUnbondingDelegationRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","UnbondingDelegation",tn).then(gn=>d.QueryUnbondingDelegationResponse.decode(new mt.Reader(gn)))}DelegatorDelegations(zt){const tn=d.QueryDelegatorDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorDelegations",tn).then(gn=>d.QueryDelegatorDelegationsResponse.decode(new mt.Reader(gn)))}DelegatorUnbondingDelegations(zt){const tn=d.QueryDelegatorUnbondingDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorUnbondingDelegations",tn).then(gn=>d.QueryDelegatorUnbondingDelegationsResponse.decode(new mt.Reader(gn)))}Redelegations(zt){const tn=d.QueryRedelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Redelegations",tn).then(gn=>d.QueryRedelegationsResponse.decode(new mt.Reader(gn)))}DelegatorValidators(zt){const tn=d.QueryDelegatorValidatorsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidators",tn).then(gn=>d.QueryDelegatorValidatorsResponse.decode(new mt.Reader(gn)))}DelegatorValidator(zt){const tn=d.QueryDelegatorValidatorRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidator",tn).then(gn=>d.QueryDelegatorValidatorResponse.decode(new mt.Reader(gn)))}HistoricalInfo(zt){const tn=d.QueryHistoricalInfoRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","HistoricalInfo",tn).then(gn=>d.QueryHistoricalInfoResponse.decode(new mt.Reader(gn)))}Pool(zt={}){const tn=d.QueryPoolRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Pool",tn).then(gn=>d.QueryPoolResponse.decode(new mt.Reader(gn)))}Params(zt={}){const tn=d.QueryParamsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Params",tn).then(gn=>d.QueryParamsResponse.decode(new mt.Reader(gn)))}}d.QueryClientImpl=dn})(query$6);var types$7={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,jt,Ht,an){an===void 0&&(an=Ht);var yt=Object.getOwnPropertyDescriptor(jt,Ht);(!yt||("get"in yt?!jt.__esModule:yt.writable||yt.configurable))&&(yt={enumerable:!0,get:function(){return jt[Ht]}}),Object.defineProperty(Mt,an,yt)}:function(Mt,jt,Ht,an){an===void 0&&(an=Ht),Mt[an]=jt[Ht]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,jt){Object.defineProperty(Mt,"default",{enumerable:!0,value:jt})}:function(Mt,jt){Mt.default=jt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var jt={};if(Mt!=null)for(var Ht in Mt)Ht!=="default"&&Object.prototype.hasOwnProperty.call(Mt,Ht)&&b(jt,Mt,Ht);return dt(jt,Mt),jt};Object.defineProperty(d,"__esModule",{value:!0}),d.Model=d.AbsoluteTxPosition=d.ContractCodeHistoryEntry=d.ContractInfo=d.CodeInfo=d.Params=d.AccessConfig=d.AccessTypeParam=d.contractCodeHistoryOperationTypeToJSON=d.contractCodeHistoryOperationTypeFromJSON=d.ContractCodeHistoryOperationType=d.accessTypeToJSON=d.accessTypeFromJSON=d.AccessType=d.protobufPackage=void 0;const lt=any,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmwasm.wasm.v1";var vt;(function(Mt){Mt[Mt.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",Mt[Mt.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",Mt[Mt.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",Mt[Mt.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",Mt[Mt.ACCESS_TYPE_ANY_OF_ADDRESSES=4]="ACCESS_TYPE_ANY_OF_ADDRESSES",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vt=d.AccessType||(d.AccessType={}));function kt(Mt){switch(Mt){case 0:case"ACCESS_TYPE_UNSPECIFIED":return vt.ACCESS_TYPE_UNSPECIFIED;case 1:case"ACCESS_TYPE_NOBODY":return vt.ACCESS_TYPE_NOBODY;case 2:case"ACCESS_TYPE_ONLY_ADDRESS":return vt.ACCESS_TYPE_ONLY_ADDRESS;case 3:case"ACCESS_TYPE_EVERYBODY":return vt.ACCESS_TYPE_EVERYBODY;case 4:case"ACCESS_TYPE_ANY_OF_ADDRESSES":return vt.ACCESS_TYPE_ANY_OF_ADDRESSES;case-1:case"UNRECOGNIZED":default:return vt.UNRECOGNIZED}}d.accessTypeFromJSON=kt;function Pt(Mt){switch(Mt){case vt.ACCESS_TYPE_UNSPECIFIED:return"ACCESS_TYPE_UNSPECIFIED";case vt.ACCESS_TYPE_NOBODY:return"ACCESS_TYPE_NOBODY";case vt.ACCESS_TYPE_ONLY_ADDRESS:return"ACCESS_TYPE_ONLY_ADDRESS";case vt.ACCESS_TYPE_EVERYBODY:return"ACCESS_TYPE_EVERYBODY";case vt.ACCESS_TYPE_ANY_OF_ADDRESSES:return"ACCESS_TYPE_ANY_OF_ADDRESSES";case vt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.accessTypeToJSON=Pt;var Jt;(function(Mt){Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.ContractCodeHistoryOperationType||(d.ContractCodeHistoryOperationType={}));function Zt(Mt){switch(Mt){case 0:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.contractCodeHistoryOperationTypeFromJSON=Zt;function Rt(Mt){switch(Mt){case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.contractCodeHistoryOperationTypeToJSON=Rt;function nn(){return{value:0}}d.AccessTypeParam={encode(Mt,jt=ht.Writer.create()){return Mt.value!==0&&jt.uint32(8).int32(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=nn();for(;Ht.pos>>3){case 1:yt.value=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{value:(0,mt.isSet)(Mt.value)?kt(Mt.value):0}},toJSON(Mt){const jt={};return Mt.value!==void 0&&(jt.value=Pt(Mt.value)),jt},fromPartial(Mt){const jt=nn();return jt.value=Mt.value??0,jt}};function Qt(){return{permission:0,address:"",addresses:[]}}d.AccessConfig={encode(Mt,jt=ht.Writer.create()){Mt.permission!==0&&jt.uint32(8).int32(Mt.permission),Mt.address!==""&&jt.uint32(18).string(Mt.address);for(const Ht of Mt.addresses)jt.uint32(26).string(Ht);return jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Qt();for(;Ht.pos>>3){case 1:yt.permission=Ht.int32();break;case 2:yt.address=Ht.string();break;case 3:yt.addresses.push(Ht.string());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{permission:(0,mt.isSet)(Mt.permission)?kt(Mt.permission):0,address:(0,mt.isSet)(Mt.address)?String(Mt.address):"",addresses:Array.isArray(Mt==null?void 0:Mt.addresses)?Mt.addresses.map(jt=>String(jt)):[]}},toJSON(Mt){const jt={};return Mt.permission!==void 0&&(jt.permission=Pt(Mt.permission)),Mt.address!==void 0&&(jt.address=Mt.address),Mt.addresses?jt.addresses=Mt.addresses.map(Ht=>Ht):jt.addresses=[],jt},fromPartial(Mt){var Ht;const jt=Qt();return jt.permission=Mt.permission??0,jt.address=Mt.address??"",jt.addresses=((Ht=Mt.addresses)==null?void 0:Ht.map(an=>an))||[],jt}};function wt(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0}}d.Params={encode(Mt,jt=ht.Writer.create()){return Mt.codeUploadAccess!==void 0&&d.AccessConfig.encode(Mt.codeUploadAccess,jt.uint32(10).fork()).ldelim(),Mt.instantiateDefaultPermission!==0&&jt.uint32(16).int32(Mt.instantiateDefaultPermission),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=wt();for(;Ht.pos>>3){case 1:yt.codeUploadAccess=d.AccessConfig.decode(Ht,Ht.uint32());break;case 2:yt.instantiateDefaultPermission=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeUploadAccess:(0,mt.isSet)(Mt.codeUploadAccess)?d.AccessConfig.fromJSON(Mt.codeUploadAccess):void 0,instantiateDefaultPermission:(0,mt.isSet)(Mt.instantiateDefaultPermission)?kt(Mt.instantiateDefaultPermission):0}},toJSON(Mt){const jt={};return Mt.codeUploadAccess!==void 0&&(jt.codeUploadAccess=Mt.codeUploadAccess?d.AccessConfig.toJSON(Mt.codeUploadAccess):void 0),Mt.instantiateDefaultPermission!==void 0&&(jt.instantiateDefaultPermission=Pt(Mt.instantiateDefaultPermission)),jt},fromPartial(Mt){const jt=wt();return jt.codeUploadAccess=Mt.codeUploadAccess!==void 0&&Mt.codeUploadAccess!==null?d.AccessConfig.fromPartial(Mt.codeUploadAccess):void 0,jt.instantiateDefaultPermission=Mt.instantiateDefaultPermission??0,jt}};function Nt(){return{codeHash:new Uint8Array,creator:"",instantiateConfig:void 0}}d.CodeInfo={encode(Mt,jt=ht.Writer.create()){return Mt.codeHash.length!==0&&jt.uint32(10).bytes(Mt.codeHash),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.instantiateConfig!==void 0&&d.AccessConfig.encode(Mt.instantiateConfig,jt.uint32(42).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Nt();for(;Ht.pos>>3){case 1:yt.codeHash=Ht.bytes();break;case 2:yt.creator=Ht.string();break;case 5:yt.instantiateConfig=d.AccessConfig.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeHash:(0,mt.isSet)(Mt.codeHash)?(0,mt.bytesFromBase64)(Mt.codeHash):new Uint8Array,creator:(0,mt.isSet)(Mt.creator)?String(Mt.creator):"",instantiateConfig:(0,mt.isSet)(Mt.instantiateConfig)?d.AccessConfig.fromJSON(Mt.instantiateConfig):void 0}},toJSON(Mt){const jt={};return Mt.codeHash!==void 0&&(jt.codeHash=(0,mt.base64FromBytes)(Mt.codeHash!==void 0?Mt.codeHash:new Uint8Array)),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.instantiateConfig!==void 0&&(jt.instantiateConfig=Mt.instantiateConfig?d.AccessConfig.toJSON(Mt.instantiateConfig):void 0),jt},fromPartial(Mt){const jt=Nt();return jt.codeHash=Mt.codeHash??new Uint8Array,jt.creator=Mt.creator??"",jt.instantiateConfig=Mt.instantiateConfig!==void 0&&Mt.instantiateConfig!==null?d.AccessConfig.fromPartial(Mt.instantiateConfig):void 0,jt}};function xt(){return{codeId:mt.Long.UZERO,creator:"",admin:"",label:"",created:void 0,ibcPortId:"",extension:void 0}}d.ContractInfo={encode(Mt,jt=ht.Writer.create()){return Mt.codeId.isZero()||jt.uint32(8).uint64(Mt.codeId),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.admin!==""&&jt.uint32(26).string(Mt.admin),Mt.label!==""&&jt.uint32(34).string(Mt.label),Mt.created!==void 0&&d.AbsoluteTxPosition.encode(Mt.created,jt.uint32(42).fork()).ldelim(),Mt.ibcPortId!==""&&jt.uint32(50).string(Mt.ibcPortId),Mt.extension!==void 0&<.Any.encode(Mt.extension,jt.uint32(58).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=xt();for(;Ht.pos>>3){case 1:yt.codeId=Ht.uint64();break;case 2:yt.creator=Ht.string();break;case 3:yt.admin=Ht.string();break;case 4:yt.label=Ht.string();break;case 5:yt.created=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 6:yt.ibcPortId=Ht.string();break;case 7:yt.extension=lt.Any.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeId:(0,mt.isSet)(Mt.codeId)?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,creator:(0,mt.isSet)(Mt.creator)?String(Mt.creator):"",admin:(0,mt.isSet)(Mt.admin)?String(Mt.admin):"",label:(0,mt.isSet)(Mt.label)?String(Mt.label):"",created:(0,mt.isSet)(Mt.created)?d.AbsoluteTxPosition.fromJSON(Mt.created):void 0,ibcPortId:(0,mt.isSet)(Mt.ibcPortId)?String(Mt.ibcPortId):"",extension:(0,mt.isSet)(Mt.extension)?lt.Any.fromJSON(Mt.extension):void 0}},toJSON(Mt){const jt={};return Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||mt.Long.UZERO).toString()),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.admin!==void 0&&(jt.admin=Mt.admin),Mt.label!==void 0&&(jt.label=Mt.label),Mt.created!==void 0&&(jt.created=Mt.created?d.AbsoluteTxPosition.toJSON(Mt.created):void 0),Mt.ibcPortId!==void 0&&(jt.ibcPortId=Mt.ibcPortId),Mt.extension!==void 0&&(jt.extension=Mt.extension?lt.Any.toJSON(Mt.extension):void 0),jt},fromPartial(Mt){const jt=xt();return jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,jt.creator=Mt.creator??"",jt.admin=Mt.admin??"",jt.label=Mt.label??"",jt.created=Mt.created!==void 0&&Mt.created!==null?d.AbsoluteTxPosition.fromPartial(Mt.created):void 0,jt.ibcPortId=Mt.ibcPortId??"",jt.extension=Mt.extension!==void 0&&Mt.extension!==null?lt.Any.fromPartial(Mt.extension):void 0,jt}};function Et(){return{operation:0,codeId:mt.Long.UZERO,updated:void 0,msg:new Uint8Array}}d.ContractCodeHistoryEntry={encode(Mt,jt=ht.Writer.create()){return Mt.operation!==0&&jt.uint32(8).int32(Mt.operation),Mt.codeId.isZero()||jt.uint32(16).uint64(Mt.codeId),Mt.updated!==void 0&&d.AbsoluteTxPosition.encode(Mt.updated,jt.uint32(26).fork()).ldelim(),Mt.msg.length!==0&&jt.uint32(34).bytes(Mt.msg),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Et();for(;Ht.pos>>3){case 1:yt.operation=Ht.int32();break;case 2:yt.codeId=Ht.uint64();break;case 3:yt.updated=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 4:yt.msg=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{operation:(0,mt.isSet)(Mt.operation)?Zt(Mt.operation):0,codeId:(0,mt.isSet)(Mt.codeId)?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,updated:(0,mt.isSet)(Mt.updated)?d.AbsoluteTxPosition.fromJSON(Mt.updated):void 0,msg:(0,mt.isSet)(Mt.msg)?(0,mt.bytesFromBase64)(Mt.msg):new Uint8Array}},toJSON(Mt){const jt={};return Mt.operation!==void 0&&(jt.operation=Rt(Mt.operation)),Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||mt.Long.UZERO).toString()),Mt.updated!==void 0&&(jt.updated=Mt.updated?d.AbsoluteTxPosition.toJSON(Mt.updated):void 0),Mt.msg!==void 0&&(jt.msg=(0,mt.base64FromBytes)(Mt.msg!==void 0?Mt.msg:new Uint8Array)),jt},fromPartial(Mt){const jt=Et();return jt.operation=Mt.operation??0,jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,jt.updated=Mt.updated!==void 0&&Mt.updated!==null?d.AbsoluteTxPosition.fromPartial(Mt.updated):void 0,jt.msg=Mt.msg??new Uint8Array,jt}};function Bt(){return{blockHeight:mt.Long.UZERO,txIndex:mt.Long.UZERO}}d.AbsoluteTxPosition={encode(Mt,jt=ht.Writer.create()){return Mt.blockHeight.isZero()||jt.uint32(8).uint64(Mt.blockHeight),Mt.txIndex.isZero()||jt.uint32(16).uint64(Mt.txIndex),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Bt();for(;Ht.pos>>3){case 1:yt.blockHeight=Ht.uint64();break;case 2:yt.txIndex=Ht.uint64();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{blockHeight:(0,mt.isSet)(Mt.blockHeight)?mt.Long.fromValue(Mt.blockHeight):mt.Long.UZERO,txIndex:(0,mt.isSet)(Mt.txIndex)?mt.Long.fromValue(Mt.txIndex):mt.Long.UZERO}},toJSON(Mt){const jt={};return Mt.blockHeight!==void 0&&(jt.blockHeight=(Mt.blockHeight||mt.Long.UZERO).toString()),Mt.txIndex!==void 0&&(jt.txIndex=(Mt.txIndex||mt.Long.UZERO).toString()),jt},fromPartial(Mt){const jt=Bt();return jt.blockHeight=Mt.blockHeight!==void 0&&Mt.blockHeight!==null?mt.Long.fromValue(Mt.blockHeight):mt.Long.UZERO,jt.txIndex=Mt.txIndex!==void 0&&Mt.txIndex!==null?mt.Long.fromValue(Mt.txIndex):mt.Long.UZERO,jt}};function Tt(){return{key:new Uint8Array,value:new Uint8Array}}d.Model={encode(Mt,jt=ht.Writer.create()){return Mt.key.length!==0&&jt.uint32(10).bytes(Mt.key),Mt.value.length!==0&&jt.uint32(18).bytes(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Tt();for(;Ht.pos>>3){case 1:yt.key=Ht.bytes();break;case 2:yt.value=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{key:(0,mt.isSet)(Mt.key)?(0,mt.bytesFromBase64)(Mt.key):new Uint8Array,value:(0,mt.isSet)(Mt.value)?(0,mt.bytesFromBase64)(Mt.value):new Uint8Array}},toJSON(Mt){const jt={};return Mt.key!==void 0&&(jt.key=(0,mt.base64FromBytes)(Mt.key!==void 0?Mt.key:new Uint8Array)),Mt.value!==void 0&&(jt.value=(0,mt.base64FromBytes)(Mt.value!==void 0?Mt.value:new Uint8Array)),jt},fromPartial(Mt){const jt=Tt();return jt.key=Mt.key??new Uint8Array,jt.value=Mt.value??new Uint8Array,jt}}})(types$7);var query$5={},coin={},indexMinimal={},minimal$1={},longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=b;var d=requireMinimal();function b(ht,mt){this.lo=ht>>>0,this.hi=mt>>>0}var dt=b.zero=new b(0,0);dt.toNumber=function(){return 0},dt.zzEncode=dt.zzDecode=function(){return this},dt.length=function(){return 1};var ct=b.zeroHash="\0\0\0\0\0\0\0\0";b.fromNumber=function(mt){if(mt===0)return dt;var vt=mt<0;vt&&(mt=-mt);var kt=mt>>>0,Pt=(mt-kt)/4294967296>>>0;return vt&&(Pt=~Pt>>>0,kt=~kt>>>0,++kt>4294967295&&(kt=0,++Pt>4294967295&&(Pt=0))),new b(kt,Pt)},b.from=function(mt){if(typeof mt=="number")return b.fromNumber(mt);if(d.isString(mt))if(d.Long)mt=d.Long.fromString(mt);else return b.fromNumber(parseInt(mt,10));return mt.low||mt.high?new b(mt.low>>>0,mt.high>>>0):dt},b.prototype.toNumber=function(mt){if(!mt&&this.hi>>>31){var vt=~this.lo+1>>>0,kt=~this.hi>>>0;return vt||(kt=kt+1>>>0),-(vt+kt*4294967296)}return this.lo+this.hi*4294967296},b.prototype.toLong=function(mt){return d.Long?new d.Long(this.lo|0,this.hi|0,!!mt):{low:this.lo|0,high:this.hi|0,unsigned:!!mt}};var lt=String.prototype.charCodeAt;return b.fromHash=function(mt){return mt===ct?dt:new b((lt.call(mt,0)|lt.call(mt,1)<<8|lt.call(mt,2)<<16|lt.call(mt,3)<<24)>>>0,(lt.call(mt,4)|lt.call(mt,5)<<8|lt.call(mt,6)<<16|lt.call(mt,7)<<24)>>>0)},b.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},b.prototype.zzEncode=function(){var mt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^mt)>>>0,this.lo=(this.lo<<1^mt)>>>0,this},b.prototype.zzDecode=function(){var mt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^mt)>>>0,this.hi=(this.hi>>>1^mt)>>>0,this},b.prototype.length=function(){var mt=this.lo,vt=(this.lo>>>28|this.hi<<4)>>>0,kt=this.hi>>>24;return kt===0?vt===0?mt<16384?mt<128?1:2:mt<2097152?3:4:vt<16384?vt<128?5:6:vt<2097152?7:8:kt<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(d){var b=d;b.asPromise=aspromise,b.base64=base64$8,b.EventEmitter=eventemitter,b.float=float,b.inquire=inquire_1,b.utf8=utf8$b,b.pool=pool_1,b.LongBits=requireLongbits(),b.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),b.global=b.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,b.emptyArray=Object.freeze?Object.freeze([]):[],b.emptyObject=Object.freeze?Object.freeze({}):{},b.isInteger=Number.isInteger||function(ht){return typeof ht=="number"&&isFinite(ht)&&Math.floor(ht)===ht},b.isString=function(ht){return typeof ht=="string"||ht instanceof String},b.isObject=function(ht){return ht&&typeof ht=="object"},b.isset=b.isSet=function(ht,mt){var vt=ht[mt];return vt!=null&&ht.hasOwnProperty(mt)?typeof vt!="object"||(Array.isArray(vt)?vt.length:Object.keys(vt).length)>0:!1},b.Buffer=function(){try{var lt=b.inquire("buffer").Buffer;return lt.prototype.utf8Write?lt:null}catch{return null}}(),b._Buffer_from=null,b._Buffer_allocUnsafe=null,b.newBuffer=function(ht){return typeof ht=="number"?b.Buffer?b._Buffer_allocUnsafe(ht):new b.Array(ht):b.Buffer?b._Buffer_from(ht):typeof Uint8Array>"u"?ht:new Uint8Array(ht)},b.Array=typeof Uint8Array<"u"?Uint8Array:Array,b.Long=b.global.dcodeIO&&b.global.dcodeIO.Long||b.global.Long||b.inquire("long"),b.key2Re=/^true|false|0|1$/,b.key32Re=/^-?(?:0|[1-9][0-9]*)$/,b.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,b.longToHash=function(ht){return ht?b.LongBits.from(ht).toHash():b.LongBits.zeroHash},b.longFromHash=function(ht,mt){var vt=b.LongBits.fromHash(ht);return b.Long?b.Long.fromBits(vt.lo,vt.hi,mt):vt.toNumber(!!mt)};function dt(lt,ht,mt){for(var vt=Object.keys(ht),kt=0;kt-1;--Pt)if(mt[kt[Pt]]===1&&this[kt[Pt]]!==void 0&&this[kt[Pt]]!==null)return kt[Pt]}},b.oneOfSetter=function(ht){return function(mt){for(var vt=0;vt127;)b[dt++]=d&127|128,d>>>=7;b[dt]=d}function VarintOp(d,b){this.len=d,this.next=void 0,this.val=b}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function d(b){return this.len+=(this.tail=this.tail.next=new VarintOp((b=b>>>0)<128?1:b<16384?2:b<2097152?3:b<268435456?4:5,b)).len,this};Writer$1.prototype.int32=function d(b){return b<0?this._push(writeVarint64,10,LongBits$1.fromNumber(b)):this.uint32(b)};Writer$1.prototype.sint32=function d(b){return this.uint32((b<<1^b>>31)>>>0)};function writeVarint64(d,b,dt){for(;d.hi;)b[dt++]=d.lo&127|128,d.lo=(d.lo>>>7|d.hi<<25)>>>0,d.hi>>>=7;for(;d.lo>127;)b[dt++]=d.lo&127|128,d.lo=d.lo>>>7;b[dt++]=d.lo}Writer$1.prototype.uint64=function d(b){var dt=LongBits$1.from(b);return this._push(writeVarint64,dt.length(),dt)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function d(b){var dt=LongBits$1.from(b).zzEncode();return this._push(writeVarint64,dt.length(),dt)};Writer$1.prototype.bool=function d(b){return this._push(writeByte,1,b?1:0)};function writeFixed32(d,b,dt){b[dt]=d&255,b[dt+1]=d>>>8&255,b[dt+2]=d>>>16&255,b[dt+3]=d>>>24}Writer$1.prototype.fixed32=function d(b){return this._push(writeFixed32,4,b>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function d(b){var dt=LongBits$1.from(b);return this._push(writeFixed32,4,dt.lo)._push(writeFixed32,4,dt.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function d(b){return this._push(util$5.float.writeFloatLE,4,b)};Writer$1.prototype.double=function d(b){return this._push(util$5.float.writeDoubleLE,8,b)};var writeBytes=util$5.Array.prototype.set?function d(b,dt,ct){dt.set(b,ct)}:function d(b,dt,ct){for(var lt=0;lt>>0;if(!dt)return this._push(writeByte,1,0);if(util$5.isString(b)){var ct=Writer$1.alloc(dt=base64.length(b));base64.decode(b,ct,0),b=ct}return this.uint32(dt)._push(writeBytes,dt,b)};Writer$1.prototype.string=function d(b){var dt=utf8$1.length(b);return dt?this.uint32(dt)._push(utf8$1.write,dt,b):this._push(writeByte,1,0)};Writer$1.prototype.fork=function d(){return this.states=new State(this),this.head=this.tail=new Op(noop$2,0,0),this.len=0,this};Writer$1.prototype.reset=function d(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop$2,0,0),this.len=0),this};Writer$1.prototype.ldelim=function d(){var b=this.head,dt=this.tail,ct=this.len;return this.reset().uint32(ct),ct&&(this.tail.next=b.next,this.tail=dt,this.len+=ct),this};Writer$1.prototype.finish=function d(){for(var b=this.head.next,dt=this.constructor.alloc(this.len),ct=0;b;)b.fn(b.val,dt,ct),ct+=b.len,b=b.next;return dt};Writer$1._configure=function(d){BufferWriter$1=d,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$4=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$4._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$4.Buffer&&util$4.Buffer.prototype instanceof Uint8Array&&util$4.Buffer.prototype.set.name==="set"?function(b,dt,ct){dt.set(b,ct)}:function(b,dt,ct){if(b.copy)b.copy(dt,ct,0,b.length);else for(var lt=0;lt>>0;return this.uint32(dt),dt&&this._push(BufferWriter.writeBytesBuffer,dt,b),this};function writeStringBuffer(d,b,dt){d.length<40?util$4.utf8.write(d,b,dt):b.utf8Write?b.utf8Write(d,dt):b.write(d,dt)}BufferWriter.prototype.string=function d(b){var dt=util$4.Buffer.byteLength(b);return this.uint32(dt),dt&&this._push(writeStringBuffer,dt,b),this};BufferWriter._configure();var reader$1=Reader$1,util$3=requireMinimal(),BufferReader$1,LongBits=util$3.LongBits,utf8=util$3.utf8;function indexOutOfRange(d,b){return RangeError("index out of range: "+d.pos+" + "+(b||1)+" > "+d.len)}function Reader$1(d){this.buf=d,this.pos=0,this.len=d.length}var create_array=typeof Uint8Array<"u"?function d(b){if(b instanceof Uint8Array||Array.isArray(b))return new Reader$1(b);throw Error("illegal buffer")}:function d(b){if(Array.isArray(b))return new Reader$1(b);throw Error("illegal buffer")},create=function d(){return util$3.Buffer?function(dt){return(Reader$1.create=function(lt){return util$3.Buffer.isBuffer(lt)?new BufferReader$1(lt):create_array(lt)})(dt)}:create_array};Reader$1.create=create();Reader$1.prototype._slice=util$3.Array.prototype.subarray||util$3.Array.prototype.slice;Reader$1.prototype.uint32=function d(){var b=4294967295;return function(){if(b=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(b=(b|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return b;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return b}}();Reader$1.prototype.int32=function d(){return this.uint32()|0};Reader$1.prototype.sint32=function d(){var b=this.uint32();return b>>>1^-(b&1)|0};function readLongVarint(){var d=new LongBits(0,0),b=0;if(this.len-this.pos>4){for(;b<4;++b)if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d;if(d.lo=(d.lo|(this.buf[this.pos]&127)<<28)>>>0,d.hi=(d.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return d;b=0}else{for(;b<3;++b){if(this.pos>=this.len)throw indexOutOfRange(this);if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}return d.lo=(d.lo|(this.buf[this.pos++]&127)<>>0,d}if(this.len-this.pos>4){for(;b<5;++b)if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}else for(;b<5;++b){if(this.pos>=this.len)throw indexOutOfRange(this);if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function d(){return this.uint32()!==0};function readFixed32_end(d,b){return(d[b-4]|d[b-3]<<8|d[b-2]<<16|d[b-1]<<24)>>>0}Reader$1.prototype.fixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function d(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var b=util$3.float.readFloatLE(this.buf,this.pos);return this.pos+=4,b};Reader$1.prototype.double=function d(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var b=util$3.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,b};Reader$1.prototype.bytes=function d(){var b=this.uint32(),dt=this.pos,ct=this.pos+b;if(ct>this.len)throw indexOutOfRange(this,b);return this.pos+=b,Array.isArray(this.buf)?this.buf.slice(dt,ct):dt===ct?new this.buf.constructor(0):this._slice.call(this.buf,dt,ct)};Reader$1.prototype.string=function d(){var b=this.bytes();return utf8.read(b,0,b.length)};Reader$1.prototype.skip=function d(b){if(typeof b=="number"){if(this.pos+b>this.len)throw indexOutOfRange(this,b);this.pos+=b}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(d){switch(d){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(d=this.uint32()&7)!==4;)this.skipType(d);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+d+" at offset "+this.pos)}return this};Reader$1._configure=function(d){BufferReader$1=d,Reader$1.create=create(),BufferReader$1._configure();var b=util$3.Long?"toLong":"toNumber";util$3.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[b](!1)},uint64:function(){return readLongVarint.call(this)[b](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[b](!1)},fixed64:function(){return readFixed64.call(this)[b](!0)},sfixed64:function(){return readFixed64.call(this)[b](!1)}})};var reader_buffer=BufferReader,Reader=reader$1;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$2=requireMinimal();function BufferReader(d){Reader.call(this,d)}BufferReader._configure=function(){util$2.Buffer&&(BufferReader.prototype._slice=util$2.Buffer.prototype.slice)};BufferReader.prototype.string=function d(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))};BufferReader._configure();var rpc={},service=Service,util$1=requireMinimal();(Service.prototype=Object.create(util$1.EventEmitter.prototype)).constructor=Service;function Service(d,b,dt){if(typeof d!="function")throw TypeError("rpcImpl must be a function");util$1.EventEmitter.call(this),this.rpcImpl=d,this.requestDelimited=!!b,this.responseDelimited=!!dt}Service.prototype.rpcCall=function d(b,dt,ct,lt,ht){if(!lt)throw TypeError("request must be specified");var mt=this;if(!ht)return util$1.asPromise(d,mt,b,dt,ct,lt);if(!mt.rpcImpl){setTimeout(function(){ht(Error("already ended"))},0);return}try{return mt.rpcImpl(b,dt[mt.requestDelimited?"encodeDelimited":"encode"](lt).finish(),function(kt,Pt){if(kt)return mt.emit("error",kt,b),ht(kt);if(Pt===null){mt.end(!0);return}if(!(Pt instanceof ct))try{Pt=ct[mt.responseDelimited?"decodeDelimited":"decode"](Pt)}catch(Jt){return mt.emit("error",Jt,b),ht(Jt)}return mt.emit("data",Pt,b),ht(null,Pt)})}catch(vt){mt.emit("error",vt,b),setTimeout(function(){ht(vt)},0);return}};Service.prototype.end=function d(b){return this.rpcImpl&&(b||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(d){var b=d;b.Service=service})(rpc);var roots={};(function(d){var b=d;b.build="minimal",b.Writer=writer,b.BufferWriter=writer_buffer,b.Reader=reader$1,b.BufferReader=reader_buffer,b.util=requireMinimal(),b.rpc=rpc,b.roots=roots,b.configure=dt;function dt(){b.util._configure(),b.Writer._configure(b.BufferWriter),b.Reader._configure(b.BufferReader)}dt()})(indexMinimal);var minimal=indexMinimal;Object.defineProperty(coin,"__esModule",{value:!0});coin.DecProto=coin.IntProto=coin.DecCoin=coin.Coin=coin.protobufPackage=void 0;const minimal_1$7=minimal;coin.protobufPackage="cosmos.base.v1beta1";const baseCoin={denom:"",amount:""};coin.Coin={encode(d,b=minimal_1$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseCoin};for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseCoin};return d.denom!==void 0&&d.denom!==null?b.denom=String(d.denom):b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=String(d.amount):b.amount="",b},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b={...baseCoin};return d.denom!==void 0&&d.denom!==null?b.denom=d.denom:b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=d.amount:b.amount="",b}};const baseDecCoin={denom:"",amount:""};coin.DecCoin={encode(d,b=minimal_1$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseDecCoin};for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseDecCoin};return d.denom!==void 0&&d.denom!==null?b.denom=String(d.denom):b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=String(d.amount):b.amount="",b},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b={...baseDecCoin};return d.denom!==void 0&&d.denom!==null?b.denom=d.denom:b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=d.amount:b.amount="",b}};const baseIntProto={int:""};coin.IntProto={encode(d,b=minimal_1$7.Writer.create()){return d.int!==""&&b.uint32(10).string(d.int),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseIntProto};for(;dt.pos>>3){case 1:lt.int=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseIntProto};return d.int!==void 0&&d.int!==null?b.int=String(d.int):b.int="",b},toJSON(d){const b={};return d.int!==void 0&&(b.int=d.int),b},fromPartial(d){const b={...baseIntProto};return d.int!==void 0&&d.int!==null?b.int=d.int:b.int="",b}};const baseDecProto={dec:""};coin.DecProto={encode(d,b=minimal_1$7.Writer.create()){return d.dec!==""&&b.uint32(10).string(d.dec),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseDecProto};for(;dt.pos>>3){case 1:lt.dec=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseDecProto};return d.dec!==void 0&&d.dec!==null?b.dec=String(d.dec):b.dec="",b},toJSON(d){const b={};return d.dec!==void 0&&(b.dec=d.dec),b},fromPartial(d){const b={...baseDecProto};return d.dec!==void 0&&d.dec!==null?b.dec=d.dec:b.dec="",b}};var types$6={},__importDefault$i=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$6,"__esModule",{value:!0});types$6.Price=types$6.NeuronBandwidth=types$6.Params=types$6.protobufPackage=void 0;const long_1$7=__importDefault$i(long),minimal_1$6=__importDefault$i(minimal);types$6.protobufPackage="cyber.bandwidth.v1beta1";function createBaseParams$3(){return{recoveryPeriod:long_1$7.default.UZERO,adjustPricePeriod:long_1$7.default.UZERO,basePrice:"",baseLoad:"",maxBlockBandwidth:long_1$7.default.UZERO}}types$6.Params={encode(d,b=minimal_1$6.default.Writer.create()){return d.recoveryPeriod.isZero()||b.uint32(8).uint64(d.recoveryPeriod),d.adjustPricePeriod.isZero()||b.uint32(16).uint64(d.adjustPricePeriod),d.basePrice!==""&&b.uint32(26).string(d.basePrice),d.baseLoad!==""&&b.uint32(34).string(d.baseLoad),d.maxBlockBandwidth.isZero()||b.uint32(40).uint64(d.maxBlockBandwidth),b},decode(d,b){const dt=d instanceof minimal_1$6.default.Reader?d:new minimal_1$6.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$3();for(;dt.pos>>3){case 1:lt.recoveryPeriod=dt.uint64();break;case 2:lt.adjustPricePeriod=dt.uint64();break;case 3:lt.basePrice=dt.string();break;case 4:lt.baseLoad=dt.string();break;case 5:lt.maxBlockBandwidth=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{recoveryPeriod:isSet$5(d.recoveryPeriod)?long_1$7.default.fromValue(d.recoveryPeriod):long_1$7.default.UZERO,adjustPricePeriod:isSet$5(d.adjustPricePeriod)?long_1$7.default.fromValue(d.adjustPricePeriod):long_1$7.default.UZERO,basePrice:isSet$5(d.basePrice)?String(d.basePrice):"",baseLoad:isSet$5(d.baseLoad)?String(d.baseLoad):"",maxBlockBandwidth:isSet$5(d.maxBlockBandwidth)?long_1$7.default.fromValue(d.maxBlockBandwidth):long_1$7.default.UZERO}},toJSON(d){const b={};return d.recoveryPeriod!==void 0&&(b.recoveryPeriod=(d.recoveryPeriod||long_1$7.default.UZERO).toString()),d.adjustPricePeriod!==void 0&&(b.adjustPricePeriod=(d.adjustPricePeriod||long_1$7.default.UZERO).toString()),d.basePrice!==void 0&&(b.basePrice=d.basePrice),d.baseLoad!==void 0&&(b.baseLoad=d.baseLoad),d.maxBlockBandwidth!==void 0&&(b.maxBlockBandwidth=(d.maxBlockBandwidth||long_1$7.default.UZERO).toString()),b},fromPartial(d){const b=createBaseParams$3();return b.recoveryPeriod=d.recoveryPeriod!==void 0&&d.recoveryPeriod!==null?long_1$7.default.fromValue(d.recoveryPeriod):long_1$7.default.UZERO,b.adjustPricePeriod=d.adjustPricePeriod!==void 0&&d.adjustPricePeriod!==null?long_1$7.default.fromValue(d.adjustPricePeriod):long_1$7.default.UZERO,b.basePrice=d.basePrice??"",b.baseLoad=d.baseLoad??"",b.maxBlockBandwidth=d.maxBlockBandwidth!==void 0&&d.maxBlockBandwidth!==null?long_1$7.default.fromValue(d.maxBlockBandwidth):long_1$7.default.UZERO,b}};function createBaseNeuronBandwidth(){return{neuron:"",remainedValue:long_1$7.default.UZERO,lastUpdatedBlock:long_1$7.default.UZERO,maxValue:long_1$7.default.UZERO}}types$6.NeuronBandwidth={encode(d,b=minimal_1$6.default.Writer.create()){return d.neuron!==""&&b.uint32(10).string(d.neuron),d.remainedValue.isZero()||b.uint32(16).uint64(d.remainedValue),d.lastUpdatedBlock.isZero()||b.uint32(24).uint64(d.lastUpdatedBlock),d.maxValue.isZero()||b.uint32(32).uint64(d.maxValue),b},decode(d,b){const dt=d instanceof minimal_1$6.default.Reader?d:new minimal_1$6.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseNeuronBandwidth();for(;dt.pos>>3){case 1:lt.neuron=dt.string();break;case 2:lt.remainedValue=dt.uint64();break;case 3:lt.lastUpdatedBlock=dt.uint64();break;case 4:lt.maxValue=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{neuron:isSet$5(d.neuron)?String(d.neuron):"",remainedValue:isSet$5(d.remainedValue)?long_1$7.default.fromValue(d.remainedValue):long_1$7.default.UZERO,lastUpdatedBlock:isSet$5(d.lastUpdatedBlock)?long_1$7.default.fromValue(d.lastUpdatedBlock):long_1$7.default.UZERO,maxValue:isSet$5(d.maxValue)?long_1$7.default.fromValue(d.maxValue):long_1$7.default.UZERO}},toJSON(d){const b={};return d.neuron!==void 0&&(b.neuron=d.neuron),d.remainedValue!==void 0&&(b.remainedValue=(d.remainedValue||long_1$7.default.UZERO).toString()),d.lastUpdatedBlock!==void 0&&(b.lastUpdatedBlock=(d.lastUpdatedBlock||long_1$7.default.UZERO).toString()),d.maxValue!==void 0&&(b.maxValue=(d.maxValue||long_1$7.default.UZERO).toString()),b},fromPartial(d){const b=createBaseNeuronBandwidth();return b.neuron=d.neuron??"",b.remainedValue=d.remainedValue!==void 0&&d.remainedValue!==null?long_1$7.default.fromValue(d.remainedValue):long_1$7.default.UZERO,b.lastUpdatedBlock=d.lastUpdatedBlock!==void 0&&d.lastUpdatedBlock!==null?long_1$7.default.fromValue(d.lastUpdatedBlock):long_1$7.default.UZERO,b.maxValue=d.maxValue!==void 0&&d.maxValue!==null?long_1$7.default.fromValue(d.maxValue):long_1$7.default.UZERO,b}};function createBasePrice(){return{price:""}}types$6.Price={encode(d,b=minimal_1$6.default.Writer.create()){return d.price!==""&&b.uint32(10).string(d.price),b},decode(d,b){const dt=d instanceof minimal_1$6.default.Reader?d:new minimal_1$6.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePrice();for(;dt.pos>>3){case 1:lt.price=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{price:isSet$5(d.price)?String(d.price):""}},toJSON(d){const b={};return d.price!==void 0&&(b.price=d.price),b},fromPartial(d){const b=createBasePrice();return b.price=d.price??"",b}};minimal_1$6.default.util.Long!==long_1$7.default&&(minimal_1$6.default.util.Long=long_1$7.default,minimal_1$6.default.configure());function isSet$5(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Et){return Et&&Et.__esModule?Et:{default:Et}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryNeuronBandwidthResponse=d.QueryNeuronBandwidthRequest=d.QueryTotalBandwidthResponse=d.QueryTotalBandwidthRequest=d.QueryPriceResponse=d.QueryPriceRequest=d.QueryLoadResponse=d.QueryLoadRequest=d.protobufPackage=void 0;const dt=coin,ct=types$6,lt=b(long),ht=b(minimal);d.protobufPackage="cyber.bandwidth.v1beta1";function mt(){return{}}d.QueryLoadRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=mt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return mt()}};function vt(){return{load:void 0}}d.QueryLoadResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.load!==void 0&&dt.DecProto.encode(Et.load,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=vt();for(;Tt.pos>>3){case 1:jt.load=dt.DecProto.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{load:xt(Et.load)?dt.DecProto.fromJSON(Et.load):void 0}},toJSON(Et){const Bt={};return Et.load!==void 0&&(Bt.load=Et.load?dt.DecProto.toJSON(Et.load):void 0),Bt},fromPartial(Et){const Bt=vt();return Bt.load=Et.load!==void 0&&Et.load!==null?dt.DecProto.fromPartial(Et.load):void 0,Bt}};function kt(){return{}}d.QueryPriceRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=kt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return kt()}};function Pt(){return{price:void 0}}d.QueryPriceResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.price!==void 0&&dt.DecProto.encode(Et.price,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.price=dt.DecProto.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{price:xt(Et.price)?dt.DecProto.fromJSON(Et.price):void 0}},toJSON(Et){const Bt={};return Et.price!==void 0&&(Bt.price=Et.price?dt.DecProto.toJSON(Et.price):void 0),Bt},fromPartial(Et){const Bt=Pt();return Bt.price=Et.price!==void 0&&Et.price!==null?dt.DecProto.fromPartial(Et.price):void 0,Bt}};function Jt(){return{}}d.QueryTotalBandwidthRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Jt()}};function Zt(){return{totalBandwidth:lt.default.UZERO}}d.QueryTotalBandwidthResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.totalBandwidth.isZero()||Bt.uint32(8).uint64(Et.totalBandwidth),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.totalBandwidth=Tt.uint64();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{totalBandwidth:xt(Et.totalBandwidth)?lt.default.fromValue(Et.totalBandwidth):lt.default.UZERO}},toJSON(Et){const Bt={};return Et.totalBandwidth!==void 0&&(Bt.totalBandwidth=(Et.totalBandwidth||lt.default.UZERO).toString()),Bt},fromPartial(Et){const Bt=Zt();return Bt.totalBandwidth=Et.totalBandwidth!==void 0&&Et.totalBandwidth!==null?lt.default.fromValue(Et.totalBandwidth):lt.default.UZERO,Bt}};function Rt(){return{neuron:""}}d.QueryNeuronBandwidthRequest={encode(Et,Bt=ht.default.Writer.create()){return Et.neuron!==""&&Bt.uint32(10).string(Et.neuron),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){case 1:jt.neuron=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{neuron:xt(Et.neuron)?String(Et.neuron):""}},toJSON(Et){const Bt={};return Et.neuron!==void 0&&(Bt.neuron=Et.neuron),Bt},fromPartial(Et){const Bt=Rt();return Bt.neuron=Et.neuron??"",Bt}};function nn(){return{neuronBandwidth:void 0}}d.QueryNeuronBandwidthResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.neuronBandwidth!==void 0&&ct.NeuronBandwidth.encode(Et.neuronBandwidth,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.neuronBandwidth=ct.NeuronBandwidth.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{neuronBandwidth:xt(Et.neuronBandwidth)?ct.NeuronBandwidth.fromJSON(Et.neuronBandwidth):void 0}},toJSON(Et){const Bt={};return Et.neuronBandwidth!==void 0&&(Bt.neuronBandwidth=Et.neuronBandwidth?ct.NeuronBandwidth.toJSON(Et.neuronBandwidth):void 0),Bt},fromPartial(Et){const Bt=nn();return Bt.neuronBandwidth=Et.neuronBandwidth!==void 0&&Et.neuronBandwidth!==null?ct.NeuronBandwidth.fromPartial(Et.neuronBandwidth):void 0,Bt}};function Qt(){return{}}d.QueryParamsRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Qt()}};function wt(){return{params:void 0}}d.QueryParamsResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.params!==void 0&&ct.Params.encode(Et.params,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.params=ct.Params.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{params:xt(Et.params)?ct.Params.fromJSON(Et.params):void 0}},toJSON(Et){const Bt={};return Et.params!==void 0&&(Bt.params=Et.params?ct.Params.toJSON(Et.params):void 0),Bt},fromPartial(Et){const Bt=wt();return Bt.params=Et.params!==void 0&&Et.params!==null?ct.Params.fromPartial(Et.params):void 0,Bt}};class Nt{constructor(Bt){this.rpc=Bt,this.Load=this.Load.bind(this),this.Price=this.Price.bind(this),this.TotalBandwidth=this.TotalBandwidth.bind(this),this.NeuronBandwidth=this.NeuronBandwidth.bind(this),this.Params=this.Params.bind(this)}Load(Bt){const Tt=d.QueryLoadRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","Load",Tt).then(jt=>d.QueryLoadResponse.decode(new ht.default.Reader(jt)))}Price(Bt){const Tt=d.QueryPriceRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","Price",Tt).then(jt=>d.QueryPriceResponse.decode(new ht.default.Reader(jt)))}TotalBandwidth(Bt){const Tt=d.QueryTotalBandwidthRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","TotalBandwidth",Tt).then(jt=>d.QueryTotalBandwidthResponse.decode(new ht.default.Reader(jt)))}NeuronBandwidth(Bt){const Tt=d.QueryNeuronBandwidthRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","NeuronBandwidth",Tt).then(jt=>d.QueryNeuronBandwidthResponse.decode(new ht.default.Reader(jt)))}Params(Bt){const Tt=d.QueryParamsRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","Params",Tt).then(jt=>d.QueryParamsResponse.decode(new ht.default.Reader(jt)))}}d.QueryClientImpl=Nt,ht.default.util.Long!==lt.default&&(ht.default.util.Long=lt.default,ht.default.configure());function xt(Et){return Et!=null}})(query$5);var query$4={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(kt){return kt&&kt.__esModule?kt:{default:kt}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryGraphStatsResponse=d.QueryGraphStatsRequest=d.protobufPackage=void 0;const dt=b(long),ct=b(minimal);d.protobufPackage="cyber.graph.v1beta1";function lt(){return{}}d.QueryGraphStatsRequest={encode(kt,Pt=ct.default.Writer.create()){return Pt},decode(kt,Pt){const Jt=kt instanceof ct.default.Reader?kt:new ct.default.Reader(kt);let Zt=Pt===void 0?Jt.len:Jt.pos+Pt;const Rt=lt();for(;Jt.pos>>3){default:Jt.skipType(nn&7);break}}return Rt},fromJSON(kt){return{}},toJSON(kt){return{}},fromPartial(kt){return lt()}};function ht(){return{cyberlinks:dt.default.UZERO,particles:dt.default.UZERO}}d.QueryGraphStatsResponse={encode(kt,Pt=ct.default.Writer.create()){return kt.cyberlinks.isZero()||Pt.uint32(8).uint64(kt.cyberlinks),kt.particles.isZero()||Pt.uint32(16).uint64(kt.particles),Pt},decode(kt,Pt){const Jt=kt instanceof ct.default.Reader?kt:new ct.default.Reader(kt);let Zt=Pt===void 0?Jt.len:Jt.pos+Pt;const Rt=ht();for(;Jt.pos>>3){case 1:Rt.cyberlinks=Jt.uint64();break;case 2:Rt.particles=Jt.uint64();break;default:Jt.skipType(nn&7);break}}return Rt},fromJSON(kt){return{cyberlinks:vt(kt.cyberlinks)?dt.default.fromValue(kt.cyberlinks):dt.default.UZERO,particles:vt(kt.particles)?dt.default.fromValue(kt.particles):dt.default.UZERO}},toJSON(kt){const Pt={};return kt.cyberlinks!==void 0&&(Pt.cyberlinks=(kt.cyberlinks||dt.default.UZERO).toString()),kt.particles!==void 0&&(Pt.particles=(kt.particles||dt.default.UZERO).toString()),Pt},fromPartial(kt){const Pt=ht();return Pt.cyberlinks=kt.cyberlinks!==void 0&&kt.cyberlinks!==null?dt.default.fromValue(kt.cyberlinks):dt.default.UZERO,Pt.particles=kt.particles!==void 0&&kt.particles!==null?dt.default.fromValue(kt.particles):dt.default.UZERO,Pt}};class mt{constructor(Pt){this.rpc=Pt,this.GraphStats=this.GraphStats.bind(this)}GraphStats(Pt){const Jt=d.QueryGraphStatsRequest.encode(Pt).finish();return this.rpc.request("cyber.graph.v1beta1.Query","GraphStats",Jt).then(Rt=>d.QueryGraphStatsResponse.decode(new ct.default.Reader(Rt)))}}d.QueryClientImpl=mt,ct.default.util.Long!==dt.default&&(ct.default.util.Long=dt.default,ct.default.configure());function vt(kt){return kt!=null}})(query$4);var query$3={},types$5={},__importDefault$h=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$5,"__esModule",{value:!0});types$5.Value=types$5.Route=types$5.Params=types$5.protobufPackage=void 0;const long_1$6=__importDefault$h(long),coin_1$1=coin,minimal_1$5=__importDefault$h(minimal);types$5.protobufPackage="cyber.grid.v1beta1";function createBaseParams$2(){return{maxRoutes:0}}types$5.Params={encode(d,b=minimal_1$5.default.Writer.create()){return d.maxRoutes!==0&&b.uint32(8).uint32(d.maxRoutes),b},decode(d,b){const dt=d instanceof minimal_1$5.default.Reader?d:new minimal_1$5.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$2();for(;dt.pos>>3){case 1:lt.maxRoutes=dt.uint32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{maxRoutes:isSet$4(d.maxRoutes)?Number(d.maxRoutes):0}},toJSON(d){const b={};return d.maxRoutes!==void 0&&(b.maxRoutes=Math.round(d.maxRoutes)),b},fromPartial(d){const b=createBaseParams$2();return b.maxRoutes=d.maxRoutes??0,b}};function createBaseRoute(){return{source:"",destination:"",name:"",value:[]}}types$5.Route={encode(d,b=minimal_1$5.default.Writer.create()){d.source!==""&&b.uint32(10).string(d.source),d.destination!==""&&b.uint32(18).string(d.destination),d.name!==""&&b.uint32(26).string(d.name);for(const dt of d.value)coin_1$1.Coin.encode(dt,b.uint32(34).fork()).ldelim();return b},decode(d,b){const dt=d instanceof minimal_1$5.default.Reader?d:new minimal_1$5.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseRoute();for(;dt.pos>>3){case 1:lt.source=dt.string();break;case 2:lt.destination=dt.string();break;case 3:lt.name=dt.string();break;case 4:lt.value.push(coin_1$1.Coin.decode(dt,dt.uint32()));break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{source:isSet$4(d.source)?String(d.source):"",destination:isSet$4(d.destination)?String(d.destination):"",name:isSet$4(d.name)?String(d.name):"",value:Array.isArray(d==null?void 0:d.value)?d.value.map(b=>coin_1$1.Coin.fromJSON(b)):[]}},toJSON(d){const b={};return d.source!==void 0&&(b.source=d.source),d.destination!==void 0&&(b.destination=d.destination),d.name!==void 0&&(b.name=d.name),d.value?b.value=d.value.map(dt=>dt?coin_1$1.Coin.toJSON(dt):void 0):b.value=[],b},fromPartial(d){var dt;const b=createBaseRoute();return b.source=d.source??"",b.destination=d.destination??"",b.name=d.name??"",b.value=((dt=d.value)==null?void 0:dt.map(ct=>coin_1$1.Coin.fromPartial(ct)))||[],b}};function createBaseValue(){return{value:[]}}types$5.Value={encode(d,b=minimal_1$5.default.Writer.create()){for(const dt of d.value)coin_1$1.Coin.encode(dt,b.uint32(10).fork()).ldelim();return b},decode(d,b){const dt=d instanceof minimal_1$5.default.Reader?d:new minimal_1$5.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseValue();for(;dt.pos>>3){case 1:lt.value.push(coin_1$1.Coin.decode(dt,dt.uint32()));break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{value:Array.isArray(d==null?void 0:d.value)?d.value.map(b=>coin_1$1.Coin.fromJSON(b)):[]}},toJSON(d){const b={};return d.value?b.value=d.value.map(dt=>dt?coin_1$1.Coin.toJSON(dt):void 0):b.value=[],b},fromPartial(d){var dt;const b=createBaseValue();return b.value=((dt=d.value)==null?void 0:dt.map(ct=>coin_1$1.Coin.fromPartial(ct)))||[],b}};minimal_1$5.default.util.Long!==long_1$6.default&&(minimal_1$5.default.util.Long=long_1$6.default,minimal_1$5.default.configure());function isSet$4(d){return d!=null}var pagination$1={};Object.defineProperty(pagination$1,"__esModule",{value:!0});pagination$1.PageResponse=pagination$1.PageRequest=pagination$1.protobufPackage=void 0;const minimal_1$4=minimal;pagination$1.protobufPackage="cosmos.base.query.v1beta1";const basePageRequest={offset:0,limit:0,countTotal:!1};pagination$1.PageRequest={encode(d,b=minimal_1$4.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),d.offset!==0&&b.uint32(16).uint64(d.offset),d.limit!==0&&b.uint32(24).uint64(d.limit),d.countTotal===!0&&b.uint32(32).bool(d.countTotal),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$4.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...basePageRequest};for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;case 2:lt.offset=longToNumber(dt.uint64());break;case 3:lt.limit=longToNumber(dt.uint64());break;case 4:lt.countTotal=dt.bool();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...basePageRequest};return d.key!==void 0&&d.key!==null&&(b.key=bytesFromBase64(d.key)),d.offset!==void 0&&d.offset!==null?b.offset=Number(d.offset):b.offset=0,d.limit!==void 0&&d.limit!==null?b.limit=Number(d.limit):b.limit=0,d.countTotal!==void 0&&d.countTotal!==null?b.countTotal=!!d.countTotal:b.countTotal=!1,b},toJSON(d){const b={};return d.key!==void 0&&(b.key=base64FromBytes(d.key!==void 0?d.key:new Uint8Array)),d.offset!==void 0&&(b.offset=d.offset),d.limit!==void 0&&(b.limit=d.limit),d.countTotal!==void 0&&(b.countTotal=d.countTotal),b},fromPartial(d){const b={...basePageRequest};return d.key!==void 0&&d.key!==null?b.key=d.key:b.key=new Uint8Array,d.offset!==void 0&&d.offset!==null?b.offset=d.offset:b.offset=0,d.limit!==void 0&&d.limit!==null?b.limit=d.limit:b.limit=0,d.countTotal!==void 0&&d.countTotal!==null?b.countTotal=d.countTotal:b.countTotal=!1,b}};const basePageResponse={total:0};pagination$1.PageResponse={encode(d,b=minimal_1$4.Writer.create()){return d.nextKey.length!==0&&b.uint32(10).bytes(d.nextKey),d.total!==0&&b.uint32(16).uint64(d.total),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$4.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...basePageResponse};for(;dt.pos>>3){case 1:lt.nextKey=dt.bytes();break;case 2:lt.total=longToNumber(dt.uint64());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...basePageResponse};return d.nextKey!==void 0&&d.nextKey!==null&&(b.nextKey=bytesFromBase64(d.nextKey)),d.total!==void 0&&d.total!==null?b.total=Number(d.total):b.total=0,b},toJSON(d){const b={};return d.nextKey!==void 0&&(b.nextKey=base64FromBytes(d.nextKey!==void 0?d.nextKey:new Uint8Array)),d.total!==void 0&&(b.total=d.total),b},fromPartial(d){const b={...basePageResponse};return d.nextKey!==void 0&&d.nextKey!==null?b.nextKey=d.nextKey:b.nextKey=new Uint8Array,d.total!==void 0&&d.total!==null?b.total=d.total:b.total=0,b}};var globalThis$1=(()=>{if(typeof globalThis$1<"u")return globalThis$1;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();const atob$1=globalThis$1.atob||(d=>globalThis$1.Buffer.from(d,"base64").toString("binary"));function bytesFromBase64(d){const b=atob$1(d),dt=new Uint8Array(b.length);for(let ct=0;ctglobalThis$1.Buffer.from(d,"binary").toString("base64"));function base64FromBytes(d){const b=[];for(let dt=0;dt>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return vt()}};function kt(){return{params:void 0}}d.QueryParamsResponse={encode(Et,Bt=mt.default.Writer.create()){return Et.params!==void 0&&dt.Params.encode(Et.params,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=kt();for(;Tt.pos>>3){case 1:jt.params=dt.Params.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{params:xt(Et.params)?dt.Params.fromJSON(Et.params):void 0}},toJSON(Et){const Bt={};return Et.params!==void 0&&(Bt.params=Et.params?dt.Params.toJSON(Et.params):void 0),Bt},fromPartial(Et){const Bt=kt();return Bt.params=Et.params!==void 0&&Et.params!==null?dt.Params.fromPartial(Et.params):void 0,Bt}};function Pt(){return{source:""}}d.QuerySourceRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.source!==""&&Bt.uint32(10).string(Et.source),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.source=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{source:xt(Et.source)?String(Et.source):""}},toJSON(Et){const Bt={};return Et.source!==void 0&&(Bt.source=Et.source),Bt},fromPartial(Et){const Bt=Pt();return Bt.source=Et.source??"",Bt}};function Jt(){return{destination:""}}d.QueryDestinationRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.destination!==""&&Bt.uint32(10).string(Et.destination),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){case 1:jt.destination=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{destination:xt(Et.destination)?String(Et.destination):""}},toJSON(Et){const Bt={};return Et.destination!==void 0&&(Bt.destination=Et.destination),Bt},fromPartial(Et){const Bt=Jt();return Bt.destination=Et.destination??"",Bt}};function Zt(){return{value:[]}}d.QueryRoutedEnergyResponse={encode(Et,Bt=mt.default.Writer.create()){for(const Tt of Et.value)ht.Coin.encode(Tt,Bt.uint32(10).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.value.push(ht.Coin.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{value:Array.isArray(Et==null?void 0:Et.value)?Et.value.map(Bt=>ht.Coin.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.value?Bt.value=Et.value.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.value=[],Bt},fromPartial(Et){var Tt;const Bt=Zt();return Bt.value=((Tt=Et.value)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt}};function Rt(){return{source:"",destination:""}}d.QueryRouteRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.source!==""&&Bt.uint32(10).string(Et.source),Et.destination!==""&&Bt.uint32(18).string(Et.destination),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){case 1:jt.source=Tt.string();break;case 2:jt.destination=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{source:xt(Et.source)?String(Et.source):"",destination:xt(Et.destination)?String(Et.destination):""}},toJSON(Et){const Bt={};return Et.source!==void 0&&(Bt.source=Et.source),Et.destination!==void 0&&(Bt.destination=Et.destination),Bt},fromPartial(Et){const Bt=Rt();return Bt.source=Et.source??"",Bt.destination=Et.destination??"",Bt}};function nn(){return{route:void 0}}d.QueryRouteResponse={encode(Et,Bt=mt.default.Writer.create()){return Et.route!==void 0&&dt.Route.encode(Et.route,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.route=dt.Route.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{route:xt(Et.route)?dt.Route.fromJSON(Et.route):void 0}},toJSON(Et){const Bt={};return Et.route!==void 0&&(Bt.route=Et.route?dt.Route.toJSON(Et.route):void 0),Bt},fromPartial(Et){const Bt=nn();return Bt.route=Et.route!==void 0&&Et.route!==null?dt.Route.fromPartial(Et.route):void 0,Bt}};function Qt(){return{pagination:void 0}}d.QueryRoutesRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.pagination!==void 0&&ct.PageRequest.encode(Et.pagination,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){case 1:jt.pagination=ct.PageRequest.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{pagination:xt(Et.pagination)?ct.PageRequest.fromJSON(Et.pagination):void 0}},toJSON(Et){const Bt={};return Et.pagination!==void 0&&(Bt.pagination=Et.pagination?ct.PageRequest.toJSON(Et.pagination):void 0),Bt},fromPartial(Et){const Bt=Qt();return Bt.pagination=Et.pagination!==void 0&&Et.pagination!==null?ct.PageRequest.fromPartial(Et.pagination):void 0,Bt}};function wt(){return{routes:[],pagination:void 0}}d.QueryRoutesResponse={encode(Et,Bt=mt.default.Writer.create()){for(const Tt of Et.routes)dt.Route.encode(Tt,Bt.uint32(10).fork()).ldelim();return Et.pagination!==void 0&&ct.PageResponse.encode(Et.pagination,Bt.uint32(18).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.routes.push(dt.Route.decode(Tt,Tt.uint32()));break;case 2:jt.pagination=ct.PageResponse.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{routes:Array.isArray(Et==null?void 0:Et.routes)?Et.routes.map(Bt=>dt.Route.fromJSON(Bt)):[],pagination:xt(Et.pagination)?ct.PageResponse.fromJSON(Et.pagination):void 0}},toJSON(Et){const Bt={};return Et.routes?Bt.routes=Et.routes.map(Tt=>Tt?dt.Route.toJSON(Tt):void 0):Bt.routes=[],Et.pagination!==void 0&&(Bt.pagination=Et.pagination?ct.PageResponse.toJSON(Et.pagination):void 0),Bt},fromPartial(Et){var Tt;const Bt=wt();return Bt.routes=((Tt=Et.routes)==null?void 0:Tt.map(Mt=>dt.Route.fromPartial(Mt)))||[],Bt.pagination=Et.pagination!==void 0&&Et.pagination!==null?ct.PageResponse.fromPartial(Et.pagination):void 0,Bt}};class Nt{constructor(Bt){this.rpc=Bt,this.Params=this.Params.bind(this),this.SourceRoutes=this.SourceRoutes.bind(this),this.DestinationRoutes=this.DestinationRoutes.bind(this),this.DestinationRoutedEnergy=this.DestinationRoutedEnergy.bind(this),this.SourceRoutedEnergy=this.SourceRoutedEnergy.bind(this),this.Route=this.Route.bind(this),this.Routes=this.Routes.bind(this)}Params(Bt){const Tt=d.QueryParamsRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","Params",Tt).then(jt=>d.QueryParamsResponse.decode(new mt.default.Reader(jt)))}SourceRoutes(Bt){const Tt=d.QuerySourceRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","SourceRoutes",Tt).then(jt=>d.QueryRoutesResponse.decode(new mt.default.Reader(jt)))}DestinationRoutes(Bt){const Tt=d.QueryDestinationRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","DestinationRoutes",Tt).then(jt=>d.QueryRoutesResponse.decode(new mt.default.Reader(jt)))}DestinationRoutedEnergy(Bt){const Tt=d.QueryDestinationRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","DestinationRoutedEnergy",Tt).then(jt=>d.QueryRoutedEnergyResponse.decode(new mt.default.Reader(jt)))}SourceRoutedEnergy(Bt){const Tt=d.QuerySourceRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","SourceRoutedEnergy",Tt).then(jt=>d.QueryRoutedEnergyResponse.decode(new mt.default.Reader(jt)))}Route(Bt){const Tt=d.QueryRouteRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","Route",Tt).then(jt=>d.QueryRouteResponse.decode(new mt.default.Reader(jt)))}Routes(Bt){const Tt=d.QueryRoutesRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","Routes",Tt).then(jt=>d.QueryRoutesResponse.decode(new mt.default.Reader(jt)))}}d.QueryClientImpl=Nt,mt.default.util.Long!==lt.default&&(mt.default.util.Long=lt.default,mt.default.configure());function xt(Et){return Et!=null}})(query$3);var query$2={},types$4={},__importDefault$g=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$4,"__esModule",{value:!0});types$4.RankedParticle=types$4.Params=types$4.protobufPackage=void 0;const long_1$5=__importDefault$g(long),minimal_1$3=__importDefault$g(minimal);types$4.protobufPackage="cyber.rank.v1beta1";function createBaseParams$1(){return{calculationPeriod:long_1$5.default.ZERO,dampingFactor:"",tolerance:""}}types$4.Params={encode(d,b=minimal_1$3.default.Writer.create()){return d.calculationPeriod.isZero()||b.uint32(8).int64(d.calculationPeriod),d.dampingFactor!==""&&b.uint32(18).string(d.dampingFactor),d.tolerance!==""&&b.uint32(26).string(d.tolerance),b},decode(d,b){const dt=d instanceof minimal_1$3.default.Reader?d:new minimal_1$3.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$1();for(;dt.pos>>3){case 1:lt.calculationPeriod=dt.int64();break;case 2:lt.dampingFactor=dt.string();break;case 3:lt.tolerance=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{calculationPeriod:isSet$3(d.calculationPeriod)?long_1$5.default.fromValue(d.calculationPeriod):long_1$5.default.ZERO,dampingFactor:isSet$3(d.dampingFactor)?String(d.dampingFactor):"",tolerance:isSet$3(d.tolerance)?String(d.tolerance):""}},toJSON(d){const b={};return d.calculationPeriod!==void 0&&(b.calculationPeriod=(d.calculationPeriod||long_1$5.default.ZERO).toString()),d.dampingFactor!==void 0&&(b.dampingFactor=d.dampingFactor),d.tolerance!==void 0&&(b.tolerance=d.tolerance),b},fromPartial(d){const b=createBaseParams$1();return b.calculationPeriod=d.calculationPeriod!==void 0&&d.calculationPeriod!==null?long_1$5.default.fromValue(d.calculationPeriod):long_1$5.default.ZERO,b.dampingFactor=d.dampingFactor??"",b.tolerance=d.tolerance??"",b}};function createBaseRankedParticle(){return{particle:"",rank:long_1$5.default.UZERO}}types$4.RankedParticle={encode(d,b=minimal_1$3.default.Writer.create()){return d.particle!==""&&b.uint32(10).string(d.particle),d.rank.isZero()||b.uint32(16).uint64(d.rank),b},decode(d,b){const dt=d instanceof minimal_1$3.default.Reader?d:new minimal_1$3.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseRankedParticle();for(;dt.pos>>3){case 1:lt.particle=dt.string();break;case 2:lt.rank=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{particle:isSet$3(d.particle)?String(d.particle):"",rank:isSet$3(d.rank)?long_1$5.default.fromValue(d.rank):long_1$5.default.UZERO}},toJSON(d){const b={};return d.particle!==void 0&&(b.particle=d.particle),d.rank!==void 0&&(b.rank=(d.rank||long_1$5.default.UZERO).toString()),b},fromPartial(d){const b=createBaseRankedParticle();return b.particle=d.particle??"",b.rank=d.rank!==void 0&&d.rank!==null?long_1$5.default.fromValue(d.rank):long_1$5.default.UZERO,b}};minimal_1$3.default.util.Long!==long_1$5.default&&(minimal_1$3.default.util.Long=long_1$5.default,minimal_1$3.default.configure());function isSet$3(d){return d!=null}var pagination={},__importDefault$f=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(pagination,"__esModule",{value:!0});pagination.PageResponse=pagination.PageRequest=pagination.protobufPackage=void 0;const long_1$4=__importDefault$f(long),minimal_1$2=__importDefault$f(minimal);pagination.protobufPackage="cyber.base.query.v1beta1";function createBasePageRequest(){return{page:0,perPage:0}}pagination.PageRequest={encode(d,b=minimal_1$2.default.Writer.create()){return d.page!==0&&b.uint32(8).uint32(d.page),d.perPage!==0&&b.uint32(16).uint32(d.perPage),b},decode(d,b){const dt=d instanceof minimal_1$2.default.Reader?d:new minimal_1$2.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageRequest();for(;dt.pos>>3){case 1:lt.page=dt.uint32();break;case 2:lt.perPage=dt.uint32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{page:isSet$2(d.page)?Number(d.page):0,perPage:isSet$2(d.perPage)?Number(d.perPage):0}},toJSON(d){const b={};return d.page!==void 0&&(b.page=Math.round(d.page)),d.perPage!==void 0&&(b.perPage=Math.round(d.perPage)),b},fromPartial(d){const b=createBasePageRequest();return b.page=d.page??0,b.perPage=d.perPage??0,b}};function createBasePageResponse(){return{total:0}}pagination.PageResponse={encode(d,b=minimal_1$2.default.Writer.create()){return d.total!==0&&b.uint32(8).uint32(d.total),b},decode(d,b){const dt=d instanceof minimal_1$2.default.Reader?d:new minimal_1$2.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageResponse();for(;dt.pos>>3){case 1:lt.total=dt.uint32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{total:isSet$2(d.total)?Number(d.total):0}},toJSON(d){const b={};return d.total!==void 0&&(b.total=Math.round(d.total)),b},fromPartial(d){const b=createBasePageResponse();return b.total=d.total??0,b}};minimal_1$2.default.util.Long!==long_1$4.default&&(minimal_1$2.default.util.Long=long_1$4.default,minimal_1$2.default.configure());function isSet$2(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(an){return an&&an.__esModule?an:{default:an}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryKarmaResponse=d.QueryKarmaRequest=d.QueryNegentropyResponse=d.QueryNegentropyRequest=d.QueryNegentropyParticleResponse=d.QueryNegentropyPartilceRequest=d.QueryLinkExistResponse=d.QueryIsAnyLinkExistRequest=d.QueryIsLinkExistRequest=d.QueryTopRequest=d.QuerySearchResponse=d.QuerySearchRequest=d.QueryRankResponse=d.QueryRankRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const dt=types$4,ct=pagination,lt=b(long),ht=b(minimal);d.protobufPackage="cyber.rank.v1beta1";function mt(){return{}}d.QueryParamsRequest={encode(an,yt=ht.default.Writer.create()){return yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=mt();for(;$t.pos>>3){default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{}},toJSON(an){return{}},fromPartial(an){return mt()}};function vt(){return{params:void 0}}d.QueryParamsResponse={encode(an,yt=ht.default.Writer.create()){return an.params!==void 0&&dt.Params.encode(an.params,yt.uint32(10).fork()).ldelim(),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=vt();for(;$t.pos>>3){case 1:Kt.params=dt.Params.decode($t,$t.uint32());break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{params:Ht(an.params)?dt.Params.fromJSON(an.params):void 0}},toJSON(an){const yt={};return an.params!==void 0&&(yt.params=an.params?dt.Params.toJSON(an.params):void 0),yt},fromPartial(an){const yt=vt();return yt.params=an.params!==void 0&&an.params!==null?dt.Params.fromPartial(an.params):void 0,yt}};function kt(){return{particle:""}}d.QueryRankRequest={encode(an,yt=ht.default.Writer.create()){return an.particle!==""&&yt.uint32(10).string(an.particle),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=kt();for(;$t.pos>>3){case 1:Kt.particle=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{particle:Ht(an.particle)?String(an.particle):""}},toJSON(an){const yt={};return an.particle!==void 0&&(yt.particle=an.particle),yt},fromPartial(an){const yt=kt();return yt.particle=an.particle??"",yt}};function Pt(){return{rank:lt.default.UZERO}}d.QueryRankResponse={encode(an,yt=ht.default.Writer.create()){return an.rank.isZero()||yt.uint32(8).uint64(an.rank),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Pt();for(;$t.pos>>3){case 1:Kt.rank=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{rank:Ht(an.rank)?lt.default.fromValue(an.rank):lt.default.UZERO}},toJSON(an){const yt={};return an.rank!==void 0&&(yt.rank=(an.rank||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=Pt();return yt.rank=an.rank!==void 0&&an.rank!==null?lt.default.fromValue(an.rank):lt.default.UZERO,yt}};function Jt(){return{particle:"",pagination:void 0}}d.QuerySearchRequest={encode(an,yt=ht.default.Writer.create()){return an.particle!==""&&yt.uint32(10).string(an.particle),an.pagination!==void 0&&ct.PageRequest.encode(an.pagination,yt.uint32(18).fork()).ldelim(),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Jt();for(;$t.pos>>3){case 1:Kt.particle=$t.string();break;case 2:Kt.pagination=ct.PageRequest.decode($t,$t.uint32());break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{particle:Ht(an.particle)?String(an.particle):"",pagination:Ht(an.pagination)?ct.PageRequest.fromJSON(an.pagination):void 0}},toJSON(an){const yt={};return an.particle!==void 0&&(yt.particle=an.particle),an.pagination!==void 0&&(yt.pagination=an.pagination?ct.PageRequest.toJSON(an.pagination):void 0),yt},fromPartial(an){const yt=Jt();return yt.particle=an.particle??"",yt.pagination=an.pagination!==void 0&&an.pagination!==null?ct.PageRequest.fromPartial(an.pagination):void 0,yt}};function Zt(){return{result:[],pagination:void 0}}d.QuerySearchResponse={encode(an,yt=ht.default.Writer.create()){for(const $t of an.result)dt.RankedParticle.encode($t,yt.uint32(10).fork()).ldelim();return an.pagination!==void 0&&ct.PageResponse.encode(an.pagination,yt.uint32(18).fork()).ldelim(),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Zt();for(;$t.pos>>3){case 1:Kt.result.push(dt.RankedParticle.decode($t,$t.uint32()));break;case 2:Kt.pagination=ct.PageResponse.decode($t,$t.uint32());break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{result:Array.isArray(an==null?void 0:an.result)?an.result.map(yt=>dt.RankedParticle.fromJSON(yt)):[],pagination:Ht(an.pagination)?ct.PageResponse.fromJSON(an.pagination):void 0}},toJSON(an){const yt={};return an.result?yt.result=an.result.map($t=>$t?dt.RankedParticle.toJSON($t):void 0):yt.result=[],an.pagination!==void 0&&(yt.pagination=an.pagination?ct.PageResponse.toJSON(an.pagination):void 0),yt},fromPartial(an){var $t;const yt=Zt();return yt.result=(($t=an.result)==null?void 0:$t.map(Yt=>dt.RankedParticle.fromPartial(Yt)))||[],yt.pagination=an.pagination!==void 0&&an.pagination!==null?ct.PageResponse.fromPartial(an.pagination):void 0,yt}};function Rt(){return{}}d.QueryTopRequest={encode(an,yt=ht.default.Writer.create()){return yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Rt();for(;$t.pos>>3){default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{}},toJSON(an){return{}},fromPartial(an){return Rt()}};function nn(){return{from:"",to:"",address:""}}d.QueryIsLinkExistRequest={encode(an,yt=ht.default.Writer.create()){return an.from!==""&&yt.uint32(10).string(an.from),an.to!==""&&yt.uint32(18).string(an.to),an.address!==""&&yt.uint32(26).string(an.address),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=nn();for(;$t.pos>>3){case 1:Kt.from=$t.string();break;case 2:Kt.to=$t.string();break;case 3:Kt.address=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{from:Ht(an.from)?String(an.from):"",to:Ht(an.to)?String(an.to):"",address:Ht(an.address)?String(an.address):""}},toJSON(an){const yt={};return an.from!==void 0&&(yt.from=an.from),an.to!==void 0&&(yt.to=an.to),an.address!==void 0&&(yt.address=an.address),yt},fromPartial(an){const yt=nn();return yt.from=an.from??"",yt.to=an.to??"",yt.address=an.address??"",yt}};function Qt(){return{from:"",to:""}}d.QueryIsAnyLinkExistRequest={encode(an,yt=ht.default.Writer.create()){return an.from!==""&&yt.uint32(10).string(an.from),an.to!==""&&yt.uint32(18).string(an.to),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Qt();for(;$t.pos>>3){case 1:Kt.from=$t.string();break;case 2:Kt.to=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{from:Ht(an.from)?String(an.from):"",to:Ht(an.to)?String(an.to):""}},toJSON(an){const yt={};return an.from!==void 0&&(yt.from=an.from),an.to!==void 0&&(yt.to=an.to),yt},fromPartial(an){const yt=Qt();return yt.from=an.from??"",yt.to=an.to??"",yt}};function wt(){return{exist:!1}}d.QueryLinkExistResponse={encode(an,yt=ht.default.Writer.create()){return an.exist===!0&&yt.uint32(8).bool(an.exist),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=wt();for(;$t.pos>>3){case 1:Kt.exist=$t.bool();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{exist:Ht(an.exist)?!!an.exist:!1}},toJSON(an){const yt={};return an.exist!==void 0&&(yt.exist=an.exist),yt},fromPartial(an){const yt=wt();return yt.exist=an.exist??!1,yt}};function Nt(){return{particle:""}}d.QueryNegentropyPartilceRequest={encode(an,yt=ht.default.Writer.create()){return an.particle!==""&&yt.uint32(10).string(an.particle),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Nt();for(;$t.pos>>3){case 1:Kt.particle=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{particle:Ht(an.particle)?String(an.particle):""}},toJSON(an){const yt={};return an.particle!==void 0&&(yt.particle=an.particle),yt},fromPartial(an){const yt=Nt();return yt.particle=an.particle??"",yt}};function xt(){return{entropy:lt.default.UZERO}}d.QueryNegentropyParticleResponse={encode(an,yt=ht.default.Writer.create()){return an.entropy.isZero()||yt.uint32(8).uint64(an.entropy),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=xt();for(;$t.pos>>3){case 1:Kt.entropy=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{entropy:Ht(an.entropy)?lt.default.fromValue(an.entropy):lt.default.UZERO}},toJSON(an){const yt={};return an.entropy!==void 0&&(yt.entropy=(an.entropy||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=xt();return yt.entropy=an.entropy!==void 0&&an.entropy!==null?lt.default.fromValue(an.entropy):lt.default.UZERO,yt}};function Et(){return{}}d.QueryNegentropyRequest={encode(an,yt=ht.default.Writer.create()){return yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Et();for(;$t.pos>>3){default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{}},toJSON(an){return{}},fromPartial(an){return Et()}};function Bt(){return{negentropy:lt.default.UZERO}}d.QueryNegentropyResponse={encode(an,yt=ht.default.Writer.create()){return an.negentropy.isZero()||yt.uint32(8).uint64(an.negentropy),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Bt();for(;$t.pos>>3){case 1:Kt.negentropy=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{negentropy:Ht(an.negentropy)?lt.default.fromValue(an.negentropy):lt.default.UZERO}},toJSON(an){const yt={};return an.negentropy!==void 0&&(yt.negentropy=(an.negentropy||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=Bt();return yt.negentropy=an.negentropy!==void 0&&an.negentropy!==null?lt.default.fromValue(an.negentropy):lt.default.UZERO,yt}};function Tt(){return{neuron:""}}d.QueryKarmaRequest={encode(an,yt=ht.default.Writer.create()){return an.neuron!==""&&yt.uint32(10).string(an.neuron),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Tt();for(;$t.pos>>3){case 1:Kt.neuron=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{neuron:Ht(an.neuron)?String(an.neuron):""}},toJSON(an){const yt={};return an.neuron!==void 0&&(yt.neuron=an.neuron),yt},fromPartial(an){const yt=Tt();return yt.neuron=an.neuron??"",yt}};function Mt(){return{karma:lt.default.UZERO}}d.QueryKarmaResponse={encode(an,yt=ht.default.Writer.create()){return an.karma.isZero()||yt.uint32(8).uint64(an.karma),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Mt();for(;$t.pos>>3){case 1:Kt.karma=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{karma:Ht(an.karma)?lt.default.fromValue(an.karma):lt.default.UZERO}},toJSON(an){const yt={};return an.karma!==void 0&&(yt.karma=(an.karma||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=Mt();return yt.karma=an.karma!==void 0&&an.karma!==null?lt.default.fromValue(an.karma):lt.default.UZERO,yt}};class jt{constructor(yt){this.rpc=yt,this.Params=this.Params.bind(this),this.Rank=this.Rank.bind(this),this.Search=this.Search.bind(this),this.Backlinks=this.Backlinks.bind(this),this.Top=this.Top.bind(this),this.IsLinkExist=this.IsLinkExist.bind(this),this.IsAnyLinkExist=this.IsAnyLinkExist.bind(this),this.ParticleNegentropy=this.ParticleNegentropy.bind(this),this.Negentropy=this.Negentropy.bind(this),this.Karma=this.Karma.bind(this)}Params(yt){const $t=d.QueryParamsRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Params",$t).then(Kt=>d.QueryParamsResponse.decode(new ht.default.Reader(Kt)))}Rank(yt){const $t=d.QueryRankRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Rank",$t).then(Kt=>d.QueryRankResponse.decode(new ht.default.Reader(Kt)))}Search(yt){const $t=d.QuerySearchRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Search",$t).then(Kt=>d.QuerySearchResponse.decode(new ht.default.Reader(Kt)))}Backlinks(yt){const $t=d.QuerySearchRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Backlinks",$t).then(Kt=>d.QuerySearchResponse.decode(new ht.default.Reader(Kt)))}Top(yt){const $t=ct.PageRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Top",$t).then(Kt=>d.QuerySearchResponse.decode(new ht.default.Reader(Kt)))}IsLinkExist(yt){const $t=d.QueryIsLinkExistRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","IsLinkExist",$t).then(Kt=>d.QueryLinkExistResponse.decode(new ht.default.Reader(Kt)))}IsAnyLinkExist(yt){const $t=d.QueryIsAnyLinkExistRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","IsAnyLinkExist",$t).then(Kt=>d.QueryLinkExistResponse.decode(new ht.default.Reader(Kt)))}ParticleNegentropy(yt){const $t=d.QueryNegentropyPartilceRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","ParticleNegentropy",$t).then(Kt=>d.QueryNegentropyParticleResponse.decode(new ht.default.Reader(Kt)))}Negentropy(yt){const $t=d.QueryNegentropyRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Negentropy",$t).then(Kt=>d.QueryNegentropyResponse.decode(new ht.default.Reader(Kt)))}Karma(yt){const $t=d.QueryKarmaRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Karma",$t).then(Kt=>d.QueryKarmaResponse.decode(new ht.default.Reader(Kt)))}}d.QueryClientImpl=jt,ht.default.util.Long!==lt.default&&(ht.default.util.Long=lt.default,ht.default.configure());function Ht(an){return an!=null}})(query$2);var query$1={},types$3={},__importDefault$e=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$3,"__esModule",{value:!0});types$3.Params=types$3.protobufPackage=void 0;const coin_1=coin,long_1$3=__importDefault$e(long),minimal_1$1=__importDefault$e(minimal);types$3.protobufPackage="cyber.resources.v1beta1";function createBaseParams(){return{maxSlots:0,halvingPeriodVoltBlocks:0,halvingPeriodAmpereBlocks:0,baseInvestmintPeriodVolt:0,baseInvestmintPeriodAmpere:0,minInvestmintPeriod:0,baseInvestmintAmountVolt:void 0,baseInvestmintAmountAmpere:void 0}}types$3.Params={encode(d,b=minimal_1$1.default.Writer.create()){return d.maxSlots!==0&&b.uint32(8).uint32(d.maxSlots),d.halvingPeriodVoltBlocks!==0&&b.uint32(16).uint32(d.halvingPeriodVoltBlocks),d.halvingPeriodAmpereBlocks!==0&&b.uint32(24).uint32(d.halvingPeriodAmpereBlocks),d.baseInvestmintPeriodVolt!==0&&b.uint32(32).uint32(d.baseInvestmintPeriodVolt),d.baseInvestmintPeriodAmpere!==0&&b.uint32(40).uint32(d.baseInvestmintPeriodAmpere),d.minInvestmintPeriod!==0&&b.uint32(48).uint32(d.minInvestmintPeriod),d.baseInvestmintAmountVolt!==void 0&&coin_1.Coin.encode(d.baseInvestmintAmountVolt,b.uint32(58).fork()).ldelim(),d.baseInvestmintAmountAmpere!==void 0&&coin_1.Coin.encode(d.baseInvestmintAmountAmpere,b.uint32(66).fork()).ldelim(),b},decode(d,b){const dt=d instanceof minimal_1$1.default.Reader?d:new minimal_1$1.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams();for(;dt.pos>>3){case 1:lt.maxSlots=dt.uint32();break;case 2:lt.halvingPeriodVoltBlocks=dt.uint32();break;case 3:lt.halvingPeriodAmpereBlocks=dt.uint32();break;case 4:lt.baseInvestmintPeriodVolt=dt.uint32();break;case 5:lt.baseInvestmintPeriodAmpere=dt.uint32();break;case 6:lt.minInvestmintPeriod=dt.uint32();break;case 7:lt.baseInvestmintAmountVolt=coin_1.Coin.decode(dt,dt.uint32());break;case 8:lt.baseInvestmintAmountAmpere=coin_1.Coin.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{maxSlots:isSet$1(d.maxSlots)?Number(d.maxSlots):0,halvingPeriodVoltBlocks:isSet$1(d.halvingPeriodVoltBlocks)?Number(d.halvingPeriodVoltBlocks):0,halvingPeriodAmpereBlocks:isSet$1(d.halvingPeriodAmpereBlocks)?Number(d.halvingPeriodAmpereBlocks):0,baseInvestmintPeriodVolt:isSet$1(d.baseInvestmintPeriodVolt)?Number(d.baseInvestmintPeriodVolt):0,baseInvestmintPeriodAmpere:isSet$1(d.baseInvestmintPeriodAmpere)?Number(d.baseInvestmintPeriodAmpere):0,minInvestmintPeriod:isSet$1(d.minInvestmintPeriod)?Number(d.minInvestmintPeriod):0,baseInvestmintAmountVolt:isSet$1(d.baseInvestmintAmountVolt)?coin_1.Coin.fromJSON(d.baseInvestmintAmountVolt):void 0,baseInvestmintAmountAmpere:isSet$1(d.baseInvestmintAmountAmpere)?coin_1.Coin.fromJSON(d.baseInvestmintAmountAmpere):void 0}},toJSON(d){const b={};return d.maxSlots!==void 0&&(b.maxSlots=Math.round(d.maxSlots)),d.halvingPeriodVoltBlocks!==void 0&&(b.halvingPeriodVoltBlocks=Math.round(d.halvingPeriodVoltBlocks)),d.halvingPeriodAmpereBlocks!==void 0&&(b.halvingPeriodAmpereBlocks=Math.round(d.halvingPeriodAmpereBlocks)),d.baseInvestmintPeriodVolt!==void 0&&(b.baseInvestmintPeriodVolt=Math.round(d.baseInvestmintPeriodVolt)),d.baseInvestmintPeriodAmpere!==void 0&&(b.baseInvestmintPeriodAmpere=Math.round(d.baseInvestmintPeriodAmpere)),d.minInvestmintPeriod!==void 0&&(b.minInvestmintPeriod=Math.round(d.minInvestmintPeriod)),d.baseInvestmintAmountVolt!==void 0&&(b.baseInvestmintAmountVolt=d.baseInvestmintAmountVolt?coin_1.Coin.toJSON(d.baseInvestmintAmountVolt):void 0),d.baseInvestmintAmountAmpere!==void 0&&(b.baseInvestmintAmountAmpere=d.baseInvestmintAmountAmpere?coin_1.Coin.toJSON(d.baseInvestmintAmountAmpere):void 0),b},fromPartial(d){const b=createBaseParams();return b.maxSlots=d.maxSlots??0,b.halvingPeriodVoltBlocks=d.halvingPeriodVoltBlocks??0,b.halvingPeriodAmpereBlocks=d.halvingPeriodAmpereBlocks??0,b.baseInvestmintPeriodVolt=d.baseInvestmintPeriodVolt??0,b.baseInvestmintPeriodAmpere=d.baseInvestmintPeriodAmpere??0,b.minInvestmintPeriod=d.minInvestmintPeriod??0,b.baseInvestmintAmountVolt=d.baseInvestmintAmountVolt!==void 0&&d.baseInvestmintAmountVolt!==null?coin_1.Coin.fromPartial(d.baseInvestmintAmountVolt):void 0,b.baseInvestmintAmountAmpere=d.baseInvestmintAmountAmpere!==void 0&&d.baseInvestmintAmountAmpere!==null?coin_1.Coin.fromPartial(d.baseInvestmintAmountAmpere):void 0,b}};minimal_1$1.default.util.Long!==long_1$3.default&&(minimal_1$1.default.util.Long=long_1$3.default,minimal_1$1.default.configure());function isSet$1(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryInvestmintResponse=d.QueryInvestmintRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const dt=types$3,ct=coin,lt=b(long),ht=b(minimal);d.protobufPackage="cyber.resources.v1beta1";function mt(){return{}}d.QueryParamsRequest={encode(Rt,nn=ht.default.Writer.create()){return nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=mt();for(;Qt.pos>>3){default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{}},toJSON(Rt){return{}},fromPartial(Rt){return mt()}};function vt(){return{params:void 0}}d.QueryParamsResponse={encode(Rt,nn=ht.default.Writer.create()){return Rt.params!==void 0&&dt.Params.encode(Rt.params,nn.uint32(10).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=vt();for(;Qt.pos>>3){case 1:Nt.params=dt.Params.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{params:Zt(Rt.params)?dt.Params.fromJSON(Rt.params):void 0}},toJSON(Rt){const nn={};return Rt.params!==void 0&&(nn.params=Rt.params?dt.Params.toJSON(Rt.params):void 0),nn},fromPartial(Rt){const nn=vt();return nn.params=Rt.params!==void 0&&Rt.params!==null?dt.Params.fromPartial(Rt.params):void 0,nn}};function kt(){return{amount:void 0,resource:"",length:lt.default.UZERO}}d.QueryInvestmintRequest={encode(Rt,nn=ht.default.Writer.create()){return Rt.amount!==void 0&&ct.Coin.encode(Rt.amount,nn.uint32(10).fork()).ldelim(),Rt.resource!==""&&nn.uint32(18).string(Rt.resource),Rt.length.isZero()||nn.uint32(24).uint64(Rt.length),nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=kt();for(;Qt.pos>>3){case 1:Nt.amount=ct.Coin.decode(Qt,Qt.uint32());break;case 2:Nt.resource=Qt.string();break;case 3:Nt.length=Qt.uint64();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{amount:Zt(Rt.amount)?ct.Coin.fromJSON(Rt.amount):void 0,resource:Zt(Rt.resource)?String(Rt.resource):"",length:Zt(Rt.length)?lt.default.fromValue(Rt.length):lt.default.UZERO}},toJSON(Rt){const nn={};return Rt.amount!==void 0&&(nn.amount=Rt.amount?ct.Coin.toJSON(Rt.amount):void 0),Rt.resource!==void 0&&(nn.resource=Rt.resource),Rt.length!==void 0&&(nn.length=(Rt.length||lt.default.UZERO).toString()),nn},fromPartial(Rt){const nn=kt();return nn.amount=Rt.amount!==void 0&&Rt.amount!==null?ct.Coin.fromPartial(Rt.amount):void 0,nn.resource=Rt.resource??"",nn.length=Rt.length!==void 0&&Rt.length!==null?lt.default.fromValue(Rt.length):lt.default.UZERO,nn}};function Pt(){return{amount:void 0}}d.QueryInvestmintResponse={encode(Rt,nn=ht.default.Writer.create()){return Rt.amount!==void 0&&ct.Coin.encode(Rt.amount,nn.uint32(10).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Pt();for(;Qt.pos>>3){case 1:Nt.amount=ct.Coin.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{amount:Zt(Rt.amount)?ct.Coin.fromJSON(Rt.amount):void 0}},toJSON(Rt){const nn={};return Rt.amount!==void 0&&(nn.amount=Rt.amount?ct.Coin.toJSON(Rt.amount):void 0),nn},fromPartial(Rt){const nn=Pt();return nn.amount=Rt.amount!==void 0&&Rt.amount!==null?ct.Coin.fromPartial(Rt.amount):void 0,nn}};class Jt{constructor(nn){this.rpc=nn,this.Params=this.Params.bind(this),this.Investmint=this.Investmint.bind(this)}Params(nn){const Qt=d.QueryParamsRequest.encode(nn).finish();return this.rpc.request("cyber.resources.v1beta1.Query","Params",Qt).then(Nt=>d.QueryParamsResponse.decode(new ht.default.Reader(Nt)))}Investmint(nn){const Qt=d.QueryInvestmintRequest.encode(nn).finish();return this.rpc.request("cyber.resources.v1beta1.Query","Investmint",Qt).then(Nt=>d.QueryInvestmintResponse.decode(new ht.default.Reader(Nt)))}}d.QueryClientImpl=Jt,ht.default.util.Long!==lt.default&&(ht.default.util.Long=lt.default,ht.default.configure());function Zt(Rt){return Rt!=null}})(query$1);var query={},liquidity$1={},tx$c={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgSwapWithinBatchResponse=d.MsgSwapWithinBatch=d.MsgWithdrawWithinBatchResponse=d.MsgWithdrawWithinBatch=d.MsgDepositWithinBatchResponse=d.MsgDepositWithinBatch=d.MsgCreatePoolResponse=d.MsgCreatePool=d.protobufPackage=void 0;const b=minimal,dt=coin;d.protobufPackage="tendermint.liquidity.v1beta1";const ct={poolCreatorAddress:"",poolTypeId:0};d.MsgCreatePool={encode(Qt,wt=b.Writer.create()){Qt.poolCreatorAddress!==""&&wt.uint32(10).string(Qt.poolCreatorAddress),Qt.poolTypeId!==0&&wt.uint32(16).uint32(Qt.poolTypeId);for(const Nt of Qt.depositCoins)dt.Coin.encode(Nt,wt.uint32(34).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...ct};for(Et.depositCoins=[];Nt.pos>>3){case 1:Et.poolCreatorAddress=Nt.string();break;case 2:Et.poolTypeId=Nt.uint32();break;case 4:Et.depositCoins.push(dt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...ct};if(wt.depositCoins=[],Qt.poolCreatorAddress!==void 0&&Qt.poolCreatorAddress!==null?wt.poolCreatorAddress=String(Qt.poolCreatorAddress):wt.poolCreatorAddress="",Qt.poolTypeId!==void 0&&Qt.poolTypeId!==null?wt.poolTypeId=Number(Qt.poolTypeId):wt.poolTypeId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromJSON(Nt));return wt},toJSON(Qt){const wt={};return Qt.poolCreatorAddress!==void 0&&(wt.poolCreatorAddress=Qt.poolCreatorAddress),Qt.poolTypeId!==void 0&&(wt.poolTypeId=Qt.poolTypeId),Qt.depositCoins?wt.depositCoins=Qt.depositCoins.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.depositCoins=[],wt},fromPartial(Qt){const wt={...ct};if(wt.depositCoins=[],Qt.poolCreatorAddress!==void 0&&Qt.poolCreatorAddress!==null?wt.poolCreatorAddress=Qt.poolCreatorAddress:wt.poolCreatorAddress="",Qt.poolTypeId!==void 0&&Qt.poolTypeId!==null?wt.poolTypeId=Qt.poolTypeId:wt.poolTypeId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromPartial(Nt));return wt}};const lt={};d.MsgCreatePoolResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...lt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...lt}},toJSON(Qt){return{}},fromPartial(Qt){return{...lt}}};const ht={depositorAddress:"",poolId:0};d.MsgDepositWithinBatch={encode(Qt,wt=b.Writer.create()){Qt.depositorAddress!==""&&wt.uint32(10).string(Qt.depositorAddress),Qt.poolId!==0&&wt.uint32(16).uint64(Qt.poolId);for(const Nt of Qt.depositCoins)dt.Coin.encode(Nt,wt.uint32(26).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...ht};for(Et.depositCoins=[];Nt.pos>>3){case 1:Et.depositorAddress=Nt.string();break;case 2:Et.poolId=nn(Nt.uint64());break;case 3:Et.depositCoins.push(dt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...ht};if(wt.depositCoins=[],Qt.depositorAddress!==void 0&&Qt.depositorAddress!==null?wt.depositorAddress=String(Qt.depositorAddress):wt.depositorAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromJSON(Nt));return wt},toJSON(Qt){const wt={};return Qt.depositorAddress!==void 0&&(wt.depositorAddress=Qt.depositorAddress),Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.depositCoins?wt.depositCoins=Qt.depositCoins.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.depositCoins=[],wt},fromPartial(Qt){const wt={...ht};if(wt.depositCoins=[],Qt.depositorAddress!==void 0&&Qt.depositorAddress!==null?wt.depositorAddress=Qt.depositorAddress:wt.depositorAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromPartial(Nt));return wt}};const mt={};d.MsgDepositWithinBatchResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...mt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...mt}},toJSON(Qt){return{}},fromPartial(Qt){return{...mt}}};const vt={withdrawerAddress:"",poolId:0};d.MsgWithdrawWithinBatch={encode(Qt,wt=b.Writer.create()){return Qt.withdrawerAddress!==""&&wt.uint32(10).string(Qt.withdrawerAddress),Qt.poolId!==0&&wt.uint32(16).uint64(Qt.poolId),Qt.poolCoin!==void 0&&dt.Coin.encode(Qt.poolCoin,wt.uint32(26).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...vt};for(;Nt.pos>>3){case 1:Et.withdrawerAddress=Nt.string();break;case 2:Et.poolId=nn(Nt.uint64());break;case 3:Et.poolCoin=dt.Coin.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...vt};return Qt.withdrawerAddress!==void 0&&Qt.withdrawerAddress!==null?wt.withdrawerAddress=String(Qt.withdrawerAddress):wt.withdrawerAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.poolCoin!==void 0&&Qt.poolCoin!==null?wt.poolCoin=dt.Coin.fromJSON(Qt.poolCoin):wt.poolCoin=void 0,wt},toJSON(Qt){const wt={};return Qt.withdrawerAddress!==void 0&&(wt.withdrawerAddress=Qt.withdrawerAddress),Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.poolCoin!==void 0&&(wt.poolCoin=Qt.poolCoin?dt.Coin.toJSON(Qt.poolCoin):void 0),wt},fromPartial(Qt){const wt={...vt};return Qt.withdrawerAddress!==void 0&&Qt.withdrawerAddress!==null?wt.withdrawerAddress=Qt.withdrawerAddress:wt.withdrawerAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.poolCoin!==void 0&&Qt.poolCoin!==null?wt.poolCoin=dt.Coin.fromPartial(Qt.poolCoin):wt.poolCoin=void 0,wt}};const kt={};d.MsgWithdrawWithinBatchResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...kt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...kt}},toJSON(Qt){return{}},fromPartial(Qt){return{...kt}}};const Pt={swapRequesterAddress:"",poolId:0,swapTypeId:0,demandCoinDenom:"",orderPrice:""};d.MsgSwapWithinBatch={encode(Qt,wt=b.Writer.create()){return Qt.swapRequesterAddress!==""&&wt.uint32(10).string(Qt.swapRequesterAddress),Qt.poolId!==0&&wt.uint32(16).uint64(Qt.poolId),Qt.swapTypeId!==0&&wt.uint32(24).uint32(Qt.swapTypeId),Qt.offerCoin!==void 0&&dt.Coin.encode(Qt.offerCoin,wt.uint32(34).fork()).ldelim(),Qt.demandCoinDenom!==""&&wt.uint32(42).string(Qt.demandCoinDenom),Qt.offerCoinFee!==void 0&&dt.Coin.encode(Qt.offerCoinFee,wt.uint32(50).fork()).ldelim(),Qt.orderPrice!==""&&wt.uint32(58).string(Qt.orderPrice),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Pt};for(;Nt.pos>>3){case 1:Et.swapRequesterAddress=Nt.string();break;case 2:Et.poolId=nn(Nt.uint64());break;case 3:Et.swapTypeId=Nt.uint32();break;case 4:Et.offerCoin=dt.Coin.decode(Nt,Nt.uint32());break;case 5:Et.demandCoinDenom=Nt.string();break;case 6:Et.offerCoinFee=dt.Coin.decode(Nt,Nt.uint32());break;case 7:Et.orderPrice=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Pt};return Qt.swapRequesterAddress!==void 0&&Qt.swapRequesterAddress!==null?wt.swapRequesterAddress=String(Qt.swapRequesterAddress):wt.swapRequesterAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.swapTypeId!==void 0&&Qt.swapTypeId!==null?wt.swapTypeId=Number(Qt.swapTypeId):wt.swapTypeId=0,Qt.offerCoin!==void 0&&Qt.offerCoin!==null?wt.offerCoin=dt.Coin.fromJSON(Qt.offerCoin):wt.offerCoin=void 0,Qt.demandCoinDenom!==void 0&&Qt.demandCoinDenom!==null?wt.demandCoinDenom=String(Qt.demandCoinDenom):wt.demandCoinDenom="",Qt.offerCoinFee!==void 0&&Qt.offerCoinFee!==null?wt.offerCoinFee=dt.Coin.fromJSON(Qt.offerCoinFee):wt.offerCoinFee=void 0,Qt.orderPrice!==void 0&&Qt.orderPrice!==null?wt.orderPrice=String(Qt.orderPrice):wt.orderPrice="",wt},toJSON(Qt){const wt={};return Qt.swapRequesterAddress!==void 0&&(wt.swapRequesterAddress=Qt.swapRequesterAddress),Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.swapTypeId!==void 0&&(wt.swapTypeId=Qt.swapTypeId),Qt.offerCoin!==void 0&&(wt.offerCoin=Qt.offerCoin?dt.Coin.toJSON(Qt.offerCoin):void 0),Qt.demandCoinDenom!==void 0&&(wt.demandCoinDenom=Qt.demandCoinDenom),Qt.offerCoinFee!==void 0&&(wt.offerCoinFee=Qt.offerCoinFee?dt.Coin.toJSON(Qt.offerCoinFee):void 0),Qt.orderPrice!==void 0&&(wt.orderPrice=Qt.orderPrice),wt},fromPartial(Qt){const wt={...Pt};return Qt.swapRequesterAddress!==void 0&&Qt.swapRequesterAddress!==null?wt.swapRequesterAddress=Qt.swapRequesterAddress:wt.swapRequesterAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.swapTypeId!==void 0&&Qt.swapTypeId!==null?wt.swapTypeId=Qt.swapTypeId:wt.swapTypeId=0,Qt.offerCoin!==void 0&&Qt.offerCoin!==null?wt.offerCoin=dt.Coin.fromPartial(Qt.offerCoin):wt.offerCoin=void 0,Qt.demandCoinDenom!==void 0&&Qt.demandCoinDenom!==null?wt.demandCoinDenom=Qt.demandCoinDenom:wt.demandCoinDenom="",Qt.offerCoinFee!==void 0&&Qt.offerCoinFee!==null?wt.offerCoinFee=dt.Coin.fromPartial(Qt.offerCoinFee):wt.offerCoinFee=void 0,Qt.orderPrice!==void 0&&Qt.orderPrice!==null?wt.orderPrice=Qt.orderPrice:wt.orderPrice="",wt}};const Jt={};d.MsgSwapWithinBatchResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Jt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...Jt}},toJSON(Qt){return{}},fromPartial(Qt){return{...Jt}}};class Zt{constructor(wt){this.rpc=wt}CreatePool(wt){const Nt=d.MsgCreatePool.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","CreatePool",Nt).then(Et=>d.MsgCreatePoolResponse.decode(new b.Reader(Et)))}DepositWithinBatch(wt){const Nt=d.MsgDepositWithinBatch.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","DepositWithinBatch",Nt).then(Et=>d.MsgDepositWithinBatchResponse.decode(new b.Reader(Et)))}WithdrawWithinBatch(wt){const Nt=d.MsgWithdrawWithinBatch.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","WithdrawWithinBatch",Nt).then(Et=>d.MsgWithdrawWithinBatchResponse.decode(new b.Reader(Et)))}Swap(wt){const Nt=d.MsgSwapWithinBatch.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","Swap",Nt).then(Et=>d.MsgSwapWithinBatchResponse.decode(new b.Reader(Et)))}}d.MsgClientImpl=Zt;var Rt=(()=>{if(typeof Rt<"u")return Rt;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();function nn(Qt){if(Qt.gt(Number.MAX_SAFE_INTEGER))throw new Rt.Error("Value is larger than Number.MAX_SAFE_INTEGER");return Qt.toNumber()}})(tx$c);(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.SwapMsgState=d.WithdrawMsgState=d.DepositMsgState=d.PoolBatch=d.PoolMetadata=d.Pool=d.Params=d.PoolType=d.protobufPackage=void 0;const b=minimal,dt=coin,ct=tx$c;d.protobufPackage="tendermint.liquidity.v1beta1";const lt={id:0,name:"",minReserveCoinNum:0,maxReserveCoinNum:0,description:""};d.PoolType={encode(Qt,wt=b.Writer.create()){return Qt.id!==0&&wt.uint32(8).uint32(Qt.id),Qt.name!==""&&wt.uint32(18).string(Qt.name),Qt.minReserveCoinNum!==0&&wt.uint32(24).uint32(Qt.minReserveCoinNum),Qt.maxReserveCoinNum!==0&&wt.uint32(32).uint32(Qt.maxReserveCoinNum),Qt.description!==""&&wt.uint32(42).string(Qt.description),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...lt};for(;Nt.pos>>3){case 1:Et.id=Nt.uint32();break;case 2:Et.name=Nt.string();break;case 3:Et.minReserveCoinNum=Nt.uint32();break;case 4:Et.maxReserveCoinNum=Nt.uint32();break;case 5:Et.description=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...lt};return Qt.id!==void 0&&Qt.id!==null?wt.id=Number(Qt.id):wt.id=0,Qt.name!==void 0&&Qt.name!==null?wt.name=String(Qt.name):wt.name="",Qt.minReserveCoinNum!==void 0&&Qt.minReserveCoinNum!==null?wt.minReserveCoinNum=Number(Qt.minReserveCoinNum):wt.minReserveCoinNum=0,Qt.maxReserveCoinNum!==void 0&&Qt.maxReserveCoinNum!==null?wt.maxReserveCoinNum=Number(Qt.maxReserveCoinNum):wt.maxReserveCoinNum=0,Qt.description!==void 0&&Qt.description!==null?wt.description=String(Qt.description):wt.description="",wt},toJSON(Qt){const wt={};return Qt.id!==void 0&&(wt.id=Qt.id),Qt.name!==void 0&&(wt.name=Qt.name),Qt.minReserveCoinNum!==void 0&&(wt.minReserveCoinNum=Qt.minReserveCoinNum),Qt.maxReserveCoinNum!==void 0&&(wt.maxReserveCoinNum=Qt.maxReserveCoinNum),Qt.description!==void 0&&(wt.description=Qt.description),wt},fromPartial(Qt){const wt={...lt};return Qt.id!==void 0&&Qt.id!==null?wt.id=Qt.id:wt.id=0,Qt.name!==void 0&&Qt.name!==null?wt.name=Qt.name:wt.name="",Qt.minReserveCoinNum!==void 0&&Qt.minReserveCoinNum!==null?wt.minReserveCoinNum=Qt.minReserveCoinNum:wt.minReserveCoinNum=0,Qt.maxReserveCoinNum!==void 0&&Qt.maxReserveCoinNum!==null?wt.maxReserveCoinNum=Qt.maxReserveCoinNum:wt.maxReserveCoinNum=0,Qt.description!==void 0&&Qt.description!==null?wt.description=Qt.description:wt.description="",wt}};const ht={minInitDepositAmount:"",initPoolCoinMintAmount:"",maxReserveCoinAmount:"",swapFeeRate:"",withdrawFeeRate:"",maxOrderAmountRatio:"",unitBatchHeight:0,circuitBreakerEnabled:!1};d.Params={encode(Qt,wt=b.Writer.create()){for(const Nt of Qt.poolTypes)d.PoolType.encode(Nt,wt.uint32(10).fork()).ldelim();Qt.minInitDepositAmount!==""&&wt.uint32(18).string(Qt.minInitDepositAmount),Qt.initPoolCoinMintAmount!==""&&wt.uint32(26).string(Qt.initPoolCoinMintAmount),Qt.maxReserveCoinAmount!==""&&wt.uint32(34).string(Qt.maxReserveCoinAmount);for(const Nt of Qt.poolCreationFee)dt.Coin.encode(Nt,wt.uint32(42).fork()).ldelim();return Qt.swapFeeRate!==""&&wt.uint32(50).string(Qt.swapFeeRate),Qt.withdrawFeeRate!==""&&wt.uint32(58).string(Qt.withdrawFeeRate),Qt.maxOrderAmountRatio!==""&&wt.uint32(66).string(Qt.maxOrderAmountRatio),Qt.unitBatchHeight!==0&&wt.uint32(72).uint32(Qt.unitBatchHeight),Qt.circuitBreakerEnabled===!0&&wt.uint32(80).bool(Qt.circuitBreakerEnabled),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...ht};for(Et.poolTypes=[],Et.poolCreationFee=[];Nt.pos>>3){case 1:Et.poolTypes.push(d.PoolType.decode(Nt,Nt.uint32()));break;case 2:Et.minInitDepositAmount=Nt.string();break;case 3:Et.initPoolCoinMintAmount=Nt.string();break;case 4:Et.maxReserveCoinAmount=Nt.string();break;case 5:Et.poolCreationFee.push(dt.Coin.decode(Nt,Nt.uint32()));break;case 6:Et.swapFeeRate=Nt.string();break;case 7:Et.withdrawFeeRate=Nt.string();break;case 8:Et.maxOrderAmountRatio=Nt.string();break;case 9:Et.unitBatchHeight=Nt.uint32();break;case 10:Et.circuitBreakerEnabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...ht};if(wt.poolTypes=[],wt.poolCreationFee=[],Qt.poolTypes!==void 0&&Qt.poolTypes!==null)for(const Nt of Qt.poolTypes)wt.poolTypes.push(d.PoolType.fromJSON(Nt));if(Qt.minInitDepositAmount!==void 0&&Qt.minInitDepositAmount!==null?wt.minInitDepositAmount=String(Qt.minInitDepositAmount):wt.minInitDepositAmount="",Qt.initPoolCoinMintAmount!==void 0&&Qt.initPoolCoinMintAmount!==null?wt.initPoolCoinMintAmount=String(Qt.initPoolCoinMintAmount):wt.initPoolCoinMintAmount="",Qt.maxReserveCoinAmount!==void 0&&Qt.maxReserveCoinAmount!==null?wt.maxReserveCoinAmount=String(Qt.maxReserveCoinAmount):wt.maxReserveCoinAmount="",Qt.poolCreationFee!==void 0&&Qt.poolCreationFee!==null)for(const Nt of Qt.poolCreationFee)wt.poolCreationFee.push(dt.Coin.fromJSON(Nt));return Qt.swapFeeRate!==void 0&&Qt.swapFeeRate!==null?wt.swapFeeRate=String(Qt.swapFeeRate):wt.swapFeeRate="",Qt.withdrawFeeRate!==void 0&&Qt.withdrawFeeRate!==null?wt.withdrawFeeRate=String(Qt.withdrawFeeRate):wt.withdrawFeeRate="",Qt.maxOrderAmountRatio!==void 0&&Qt.maxOrderAmountRatio!==null?wt.maxOrderAmountRatio=String(Qt.maxOrderAmountRatio):wt.maxOrderAmountRatio="",Qt.unitBatchHeight!==void 0&&Qt.unitBatchHeight!==null?wt.unitBatchHeight=Number(Qt.unitBatchHeight):wt.unitBatchHeight=0,Qt.circuitBreakerEnabled!==void 0&&Qt.circuitBreakerEnabled!==null?wt.circuitBreakerEnabled=!!Qt.circuitBreakerEnabled:wt.circuitBreakerEnabled=!1,wt},toJSON(Qt){const wt={};return Qt.poolTypes?wt.poolTypes=Qt.poolTypes.map(Nt=>Nt?d.PoolType.toJSON(Nt):void 0):wt.poolTypes=[],Qt.minInitDepositAmount!==void 0&&(wt.minInitDepositAmount=Qt.minInitDepositAmount),Qt.initPoolCoinMintAmount!==void 0&&(wt.initPoolCoinMintAmount=Qt.initPoolCoinMintAmount),Qt.maxReserveCoinAmount!==void 0&&(wt.maxReserveCoinAmount=Qt.maxReserveCoinAmount),Qt.poolCreationFee?wt.poolCreationFee=Qt.poolCreationFee.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.poolCreationFee=[],Qt.swapFeeRate!==void 0&&(wt.swapFeeRate=Qt.swapFeeRate),Qt.withdrawFeeRate!==void 0&&(wt.withdrawFeeRate=Qt.withdrawFeeRate),Qt.maxOrderAmountRatio!==void 0&&(wt.maxOrderAmountRatio=Qt.maxOrderAmountRatio),Qt.unitBatchHeight!==void 0&&(wt.unitBatchHeight=Qt.unitBatchHeight),Qt.circuitBreakerEnabled!==void 0&&(wt.circuitBreakerEnabled=Qt.circuitBreakerEnabled),wt},fromPartial(Qt){const wt={...ht};if(wt.poolTypes=[],wt.poolCreationFee=[],Qt.poolTypes!==void 0&&Qt.poolTypes!==null)for(const Nt of Qt.poolTypes)wt.poolTypes.push(d.PoolType.fromPartial(Nt));if(Qt.minInitDepositAmount!==void 0&&Qt.minInitDepositAmount!==null?wt.minInitDepositAmount=Qt.minInitDepositAmount:wt.minInitDepositAmount="",Qt.initPoolCoinMintAmount!==void 0&&Qt.initPoolCoinMintAmount!==null?wt.initPoolCoinMintAmount=Qt.initPoolCoinMintAmount:wt.initPoolCoinMintAmount="",Qt.maxReserveCoinAmount!==void 0&&Qt.maxReserveCoinAmount!==null?wt.maxReserveCoinAmount=Qt.maxReserveCoinAmount:wt.maxReserveCoinAmount="",Qt.poolCreationFee!==void 0&&Qt.poolCreationFee!==null)for(const Nt of Qt.poolCreationFee)wt.poolCreationFee.push(dt.Coin.fromPartial(Nt));return Qt.swapFeeRate!==void 0&&Qt.swapFeeRate!==null?wt.swapFeeRate=Qt.swapFeeRate:wt.swapFeeRate="",Qt.withdrawFeeRate!==void 0&&Qt.withdrawFeeRate!==null?wt.withdrawFeeRate=Qt.withdrawFeeRate:wt.withdrawFeeRate="",Qt.maxOrderAmountRatio!==void 0&&Qt.maxOrderAmountRatio!==null?wt.maxOrderAmountRatio=Qt.maxOrderAmountRatio:wt.maxOrderAmountRatio="",Qt.unitBatchHeight!==void 0&&Qt.unitBatchHeight!==null?wt.unitBatchHeight=Qt.unitBatchHeight:wt.unitBatchHeight=0,Qt.circuitBreakerEnabled!==void 0&&Qt.circuitBreakerEnabled!==null?wt.circuitBreakerEnabled=Qt.circuitBreakerEnabled:wt.circuitBreakerEnabled=!1,wt}};const mt={id:0,typeId:0,reserveCoinDenoms:"",reserveAccountAddress:"",poolCoinDenom:""};d.Pool={encode(Qt,wt=b.Writer.create()){Qt.id!==0&&wt.uint32(8).uint64(Qt.id),Qt.typeId!==0&&wt.uint32(16).uint32(Qt.typeId);for(const Nt of Qt.reserveCoinDenoms)wt.uint32(26).string(Nt);return Qt.reserveAccountAddress!==""&&wt.uint32(34).string(Qt.reserveAccountAddress),Qt.poolCoinDenom!==""&&wt.uint32(42).string(Qt.poolCoinDenom),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...mt};for(Et.reserveCoinDenoms=[];Nt.pos>>3){case 1:Et.id=nn(Nt.uint64());break;case 2:Et.typeId=Nt.uint32();break;case 3:Et.reserveCoinDenoms.push(Nt.string());break;case 4:Et.reserveAccountAddress=Nt.string();break;case 5:Et.poolCoinDenom=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...mt};if(wt.reserveCoinDenoms=[],Qt.id!==void 0&&Qt.id!==null?wt.id=Number(Qt.id):wt.id=0,Qt.typeId!==void 0&&Qt.typeId!==null?wt.typeId=Number(Qt.typeId):wt.typeId=0,Qt.reserveCoinDenoms!==void 0&&Qt.reserveCoinDenoms!==null)for(const Nt of Qt.reserveCoinDenoms)wt.reserveCoinDenoms.push(String(Nt));return Qt.reserveAccountAddress!==void 0&&Qt.reserveAccountAddress!==null?wt.reserveAccountAddress=String(Qt.reserveAccountAddress):wt.reserveAccountAddress="",Qt.poolCoinDenom!==void 0&&Qt.poolCoinDenom!==null?wt.poolCoinDenom=String(Qt.poolCoinDenom):wt.poolCoinDenom="",wt},toJSON(Qt){const wt={};return Qt.id!==void 0&&(wt.id=Qt.id),Qt.typeId!==void 0&&(wt.typeId=Qt.typeId),Qt.reserveCoinDenoms?wt.reserveCoinDenoms=Qt.reserveCoinDenoms.map(Nt=>Nt):wt.reserveCoinDenoms=[],Qt.reserveAccountAddress!==void 0&&(wt.reserveAccountAddress=Qt.reserveAccountAddress),Qt.poolCoinDenom!==void 0&&(wt.poolCoinDenom=Qt.poolCoinDenom),wt},fromPartial(Qt){const wt={...mt};if(wt.reserveCoinDenoms=[],Qt.id!==void 0&&Qt.id!==null?wt.id=Qt.id:wt.id=0,Qt.typeId!==void 0&&Qt.typeId!==null?wt.typeId=Qt.typeId:wt.typeId=0,Qt.reserveCoinDenoms!==void 0&&Qt.reserveCoinDenoms!==null)for(const Nt of Qt.reserveCoinDenoms)wt.reserveCoinDenoms.push(Nt);return Qt.reserveAccountAddress!==void 0&&Qt.reserveAccountAddress!==null?wt.reserveAccountAddress=Qt.reserveAccountAddress:wt.reserveAccountAddress="",Qt.poolCoinDenom!==void 0&&Qt.poolCoinDenom!==null?wt.poolCoinDenom=Qt.poolCoinDenom:wt.poolCoinDenom="",wt}};const vt={poolId:0};d.PoolMetadata={encode(Qt,wt=b.Writer.create()){Qt.poolId!==0&&wt.uint32(8).uint64(Qt.poolId),Qt.poolCoinTotalSupply!==void 0&&dt.Coin.encode(Qt.poolCoinTotalSupply,wt.uint32(18).fork()).ldelim();for(const Nt of Qt.reserveCoins)dt.Coin.encode(Nt,wt.uint32(26).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...vt};for(Et.reserveCoins=[];Nt.pos>>3){case 1:Et.poolId=nn(Nt.uint64());break;case 2:Et.poolCoinTotalSupply=dt.Coin.decode(Nt,Nt.uint32());break;case 3:Et.reserveCoins.push(dt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...vt};if(wt.reserveCoins=[],Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.poolCoinTotalSupply!==void 0&&Qt.poolCoinTotalSupply!==null?wt.poolCoinTotalSupply=dt.Coin.fromJSON(Qt.poolCoinTotalSupply):wt.poolCoinTotalSupply=void 0,Qt.reserveCoins!==void 0&&Qt.reserveCoins!==null)for(const Nt of Qt.reserveCoins)wt.reserveCoins.push(dt.Coin.fromJSON(Nt));return wt},toJSON(Qt){const wt={};return Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.poolCoinTotalSupply!==void 0&&(wt.poolCoinTotalSupply=Qt.poolCoinTotalSupply?dt.Coin.toJSON(Qt.poolCoinTotalSupply):void 0),Qt.reserveCoins?wt.reserveCoins=Qt.reserveCoins.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.reserveCoins=[],wt},fromPartial(Qt){const wt={...vt};if(wt.reserveCoins=[],Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.poolCoinTotalSupply!==void 0&&Qt.poolCoinTotalSupply!==null?wt.poolCoinTotalSupply=dt.Coin.fromPartial(Qt.poolCoinTotalSupply):wt.poolCoinTotalSupply=void 0,Qt.reserveCoins!==void 0&&Qt.reserveCoins!==null)for(const Nt of Qt.reserveCoins)wt.reserveCoins.push(dt.Coin.fromPartial(Nt));return wt}};const kt={poolId:0,index:0,beginHeight:0,depositMsgIndex:0,withdrawMsgIndex:0,swapMsgIndex:0,executed:!1};d.PoolBatch={encode(Qt,wt=b.Writer.create()){return Qt.poolId!==0&&wt.uint32(8).uint64(Qt.poolId),Qt.index!==0&&wt.uint32(16).uint64(Qt.index),Qt.beginHeight!==0&&wt.uint32(24).int64(Qt.beginHeight),Qt.depositMsgIndex!==0&&wt.uint32(32).uint64(Qt.depositMsgIndex),Qt.withdrawMsgIndex!==0&&wt.uint32(40).uint64(Qt.withdrawMsgIndex),Qt.swapMsgIndex!==0&&wt.uint32(48).uint64(Qt.swapMsgIndex),Qt.executed===!0&&wt.uint32(56).bool(Qt.executed),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...kt};for(;Nt.pos>>3){case 1:Et.poolId=nn(Nt.uint64());break;case 2:Et.index=nn(Nt.uint64());break;case 3:Et.beginHeight=nn(Nt.int64());break;case 4:Et.depositMsgIndex=nn(Nt.uint64());break;case 5:Et.withdrawMsgIndex=nn(Nt.uint64());break;case 6:Et.swapMsgIndex=nn(Nt.uint64());break;case 7:Et.executed=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...kt};return Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.index!==void 0&&Qt.index!==null?wt.index=Number(Qt.index):wt.index=0,Qt.beginHeight!==void 0&&Qt.beginHeight!==null?wt.beginHeight=Number(Qt.beginHeight):wt.beginHeight=0,Qt.depositMsgIndex!==void 0&&Qt.depositMsgIndex!==null?wt.depositMsgIndex=Number(Qt.depositMsgIndex):wt.depositMsgIndex=0,Qt.withdrawMsgIndex!==void 0&&Qt.withdrawMsgIndex!==null?wt.withdrawMsgIndex=Number(Qt.withdrawMsgIndex):wt.withdrawMsgIndex=0,Qt.swapMsgIndex!==void 0&&Qt.swapMsgIndex!==null?wt.swapMsgIndex=Number(Qt.swapMsgIndex):wt.swapMsgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,wt},toJSON(Qt){const wt={};return Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.index!==void 0&&(wt.index=Qt.index),Qt.beginHeight!==void 0&&(wt.beginHeight=Qt.beginHeight),Qt.depositMsgIndex!==void 0&&(wt.depositMsgIndex=Qt.depositMsgIndex),Qt.withdrawMsgIndex!==void 0&&(wt.withdrawMsgIndex=Qt.withdrawMsgIndex),Qt.swapMsgIndex!==void 0&&(wt.swapMsgIndex=Qt.swapMsgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),wt},fromPartial(Qt){const wt={...kt};return Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.index!==void 0&&Qt.index!==null?wt.index=Qt.index:wt.index=0,Qt.beginHeight!==void 0&&Qt.beginHeight!==null?wt.beginHeight=Qt.beginHeight:wt.beginHeight=0,Qt.depositMsgIndex!==void 0&&Qt.depositMsgIndex!==null?wt.depositMsgIndex=Qt.depositMsgIndex:wt.depositMsgIndex=0,Qt.withdrawMsgIndex!==void 0&&Qt.withdrawMsgIndex!==null?wt.withdrawMsgIndex=Qt.withdrawMsgIndex:wt.withdrawMsgIndex=0,Qt.swapMsgIndex!==void 0&&Qt.swapMsgIndex!==null?wt.swapMsgIndex=Qt.swapMsgIndex:wt.swapMsgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,wt}};const Pt={msgHeight:0,msgIndex:0,executed:!1,succeeded:!1,toBeDeleted:!1};d.DepositMsgState={encode(Qt,wt=b.Writer.create()){return Qt.msgHeight!==0&&wt.uint32(8).int64(Qt.msgHeight),Qt.msgIndex!==0&&wt.uint32(16).uint64(Qt.msgIndex),Qt.executed===!0&&wt.uint32(24).bool(Qt.executed),Qt.succeeded===!0&&wt.uint32(32).bool(Qt.succeeded),Qt.toBeDeleted===!0&&wt.uint32(40).bool(Qt.toBeDeleted),Qt.msg!==void 0&&ct.MsgDepositWithinBatch.encode(Qt.msg,wt.uint32(50).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Pt};for(;Nt.pos>>3){case 1:Et.msgHeight=nn(Nt.int64());break;case 2:Et.msgIndex=nn(Nt.uint64());break;case 3:Et.executed=Nt.bool();break;case 4:Et.succeeded=Nt.bool();break;case 5:Et.toBeDeleted=Nt.bool();break;case 6:Et.msg=ct.MsgDepositWithinBatch.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Pt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Number(Qt.msgHeight):wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Number(Qt.msgIndex):wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=!!Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=!!Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgDepositWithinBatch.fromJSON(Qt.msg):wt.msg=void 0,wt},toJSON(Qt){const wt={};return Qt.msgHeight!==void 0&&(wt.msgHeight=Qt.msgHeight),Qt.msgIndex!==void 0&&(wt.msgIndex=Qt.msgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),Qt.succeeded!==void 0&&(wt.succeeded=Qt.succeeded),Qt.toBeDeleted!==void 0&&(wt.toBeDeleted=Qt.toBeDeleted),Qt.msg!==void 0&&(wt.msg=Qt.msg?ct.MsgDepositWithinBatch.toJSON(Qt.msg):void 0),wt},fromPartial(Qt){const wt={...Pt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Qt.msgHeight:wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Qt.msgIndex:wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgDepositWithinBatch.fromPartial(Qt.msg):wt.msg=void 0,wt}};const Jt={msgHeight:0,msgIndex:0,executed:!1,succeeded:!1,toBeDeleted:!1};d.WithdrawMsgState={encode(Qt,wt=b.Writer.create()){return Qt.msgHeight!==0&&wt.uint32(8).int64(Qt.msgHeight),Qt.msgIndex!==0&&wt.uint32(16).uint64(Qt.msgIndex),Qt.executed===!0&&wt.uint32(24).bool(Qt.executed),Qt.succeeded===!0&&wt.uint32(32).bool(Qt.succeeded),Qt.toBeDeleted===!0&&wt.uint32(40).bool(Qt.toBeDeleted),Qt.msg!==void 0&&ct.MsgWithdrawWithinBatch.encode(Qt.msg,wt.uint32(50).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Jt};for(;Nt.pos>>3){case 1:Et.msgHeight=nn(Nt.int64());break;case 2:Et.msgIndex=nn(Nt.uint64());break;case 3:Et.executed=Nt.bool();break;case 4:Et.succeeded=Nt.bool();break;case 5:Et.toBeDeleted=Nt.bool();break;case 6:Et.msg=ct.MsgWithdrawWithinBatch.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Jt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Number(Qt.msgHeight):wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Number(Qt.msgIndex):wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=!!Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=!!Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgWithdrawWithinBatch.fromJSON(Qt.msg):wt.msg=void 0,wt},toJSON(Qt){const wt={};return Qt.msgHeight!==void 0&&(wt.msgHeight=Qt.msgHeight),Qt.msgIndex!==void 0&&(wt.msgIndex=Qt.msgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),Qt.succeeded!==void 0&&(wt.succeeded=Qt.succeeded),Qt.toBeDeleted!==void 0&&(wt.toBeDeleted=Qt.toBeDeleted),Qt.msg!==void 0&&(wt.msg=Qt.msg?ct.MsgWithdrawWithinBatch.toJSON(Qt.msg):void 0),wt},fromPartial(Qt){const wt={...Jt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Qt.msgHeight:wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Qt.msgIndex:wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgWithdrawWithinBatch.fromPartial(Qt.msg):wt.msg=void 0,wt}};const Zt={msgHeight:0,msgIndex:0,executed:!1,succeeded:!1,toBeDeleted:!1,orderExpiryHeight:0};d.SwapMsgState={encode(Qt,wt=b.Writer.create()){return Qt.msgHeight!==0&&wt.uint32(8).int64(Qt.msgHeight),Qt.msgIndex!==0&&wt.uint32(16).uint64(Qt.msgIndex),Qt.executed===!0&&wt.uint32(24).bool(Qt.executed),Qt.succeeded===!0&&wt.uint32(32).bool(Qt.succeeded),Qt.toBeDeleted===!0&&wt.uint32(40).bool(Qt.toBeDeleted),Qt.orderExpiryHeight!==0&&wt.uint32(48).int64(Qt.orderExpiryHeight),Qt.exchangedOfferCoin!==void 0&&dt.Coin.encode(Qt.exchangedOfferCoin,wt.uint32(58).fork()).ldelim(),Qt.remainingOfferCoin!==void 0&&dt.Coin.encode(Qt.remainingOfferCoin,wt.uint32(66).fork()).ldelim(),Qt.reservedOfferCoinFee!==void 0&&dt.Coin.encode(Qt.reservedOfferCoinFee,wt.uint32(74).fork()).ldelim(),Qt.msg!==void 0&&ct.MsgSwapWithinBatch.encode(Qt.msg,wt.uint32(82).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Zt};for(;Nt.pos>>3){case 1:Et.msgHeight=nn(Nt.int64());break;case 2:Et.msgIndex=nn(Nt.uint64());break;case 3:Et.executed=Nt.bool();break;case 4:Et.succeeded=Nt.bool();break;case 5:Et.toBeDeleted=Nt.bool();break;case 6:Et.orderExpiryHeight=nn(Nt.int64());break;case 7:Et.exchangedOfferCoin=dt.Coin.decode(Nt,Nt.uint32());break;case 8:Et.remainingOfferCoin=dt.Coin.decode(Nt,Nt.uint32());break;case 9:Et.reservedOfferCoinFee=dt.Coin.decode(Nt,Nt.uint32());break;case 10:Et.msg=ct.MsgSwapWithinBatch.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Zt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Number(Qt.msgHeight):wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Number(Qt.msgIndex):wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=!!Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=!!Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.orderExpiryHeight!==void 0&&Qt.orderExpiryHeight!==null?wt.orderExpiryHeight=Number(Qt.orderExpiryHeight):wt.orderExpiryHeight=0,Qt.exchangedOfferCoin!==void 0&&Qt.exchangedOfferCoin!==null?wt.exchangedOfferCoin=dt.Coin.fromJSON(Qt.exchangedOfferCoin):wt.exchangedOfferCoin=void 0,Qt.remainingOfferCoin!==void 0&&Qt.remainingOfferCoin!==null?wt.remainingOfferCoin=dt.Coin.fromJSON(Qt.remainingOfferCoin):wt.remainingOfferCoin=void 0,Qt.reservedOfferCoinFee!==void 0&&Qt.reservedOfferCoinFee!==null?wt.reservedOfferCoinFee=dt.Coin.fromJSON(Qt.reservedOfferCoinFee):wt.reservedOfferCoinFee=void 0,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgSwapWithinBatch.fromJSON(Qt.msg):wt.msg=void 0,wt},toJSON(Qt){const wt={};return Qt.msgHeight!==void 0&&(wt.msgHeight=Qt.msgHeight),Qt.msgIndex!==void 0&&(wt.msgIndex=Qt.msgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),Qt.succeeded!==void 0&&(wt.succeeded=Qt.succeeded),Qt.toBeDeleted!==void 0&&(wt.toBeDeleted=Qt.toBeDeleted),Qt.orderExpiryHeight!==void 0&&(wt.orderExpiryHeight=Qt.orderExpiryHeight),Qt.exchangedOfferCoin!==void 0&&(wt.exchangedOfferCoin=Qt.exchangedOfferCoin?dt.Coin.toJSON(Qt.exchangedOfferCoin):void 0),Qt.remainingOfferCoin!==void 0&&(wt.remainingOfferCoin=Qt.remainingOfferCoin?dt.Coin.toJSON(Qt.remainingOfferCoin):void 0),Qt.reservedOfferCoinFee!==void 0&&(wt.reservedOfferCoinFee=Qt.reservedOfferCoinFee?dt.Coin.toJSON(Qt.reservedOfferCoinFee):void 0),Qt.msg!==void 0&&(wt.msg=Qt.msg?ct.MsgSwapWithinBatch.toJSON(Qt.msg):void 0),wt},fromPartial(Qt){const wt={...Zt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Qt.msgHeight:wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Qt.msgIndex:wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.orderExpiryHeight!==void 0&&Qt.orderExpiryHeight!==null?wt.orderExpiryHeight=Qt.orderExpiryHeight:wt.orderExpiryHeight=0,Qt.exchangedOfferCoin!==void 0&&Qt.exchangedOfferCoin!==null?wt.exchangedOfferCoin=dt.Coin.fromPartial(Qt.exchangedOfferCoin):wt.exchangedOfferCoin=void 0,Qt.remainingOfferCoin!==void 0&&Qt.remainingOfferCoin!==null?wt.remainingOfferCoin=dt.Coin.fromPartial(Qt.remainingOfferCoin):wt.remainingOfferCoin=void 0,Qt.reservedOfferCoinFee!==void 0&&Qt.reservedOfferCoinFee!==null?wt.reservedOfferCoinFee=dt.Coin.fromPartial(Qt.reservedOfferCoinFee):wt.reservedOfferCoinFee=void 0,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgSwapWithinBatch.fromPartial(Qt.msg):wt.msg=void 0,wt}};var Rt=(()=>{if(typeof Rt<"u")return Rt;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();function nn(Qt){if(Qt.gt(Number.MAX_SAFE_INTEGER))throw new Rt.Error("Value is larger than Number.MAX_SAFE_INTEGER");return Qt.toNumber()}})(liquidity$1);(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryPoolBatchWithdrawMsgResponse=d.QueryPoolBatchWithdrawMsgsResponse=d.QueryPoolBatchWithdrawMsgRequest=d.QueryPoolBatchWithdrawMsgsRequest=d.QueryPoolBatchDepositMsgResponse=d.QueryPoolBatchDepositMsgsResponse=d.QueryPoolBatchDepositMsgRequest=d.QueryPoolBatchDepositMsgsRequest=d.QueryPoolBatchSwapMsgResponse=d.QueryPoolBatchSwapMsgsResponse=d.QueryPoolBatchSwapMsgRequest=d.QueryPoolBatchSwapMsgsRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryLiquidityPoolsResponse=d.QueryLiquidityPoolsRequest=d.QueryLiquidityPoolBatchResponse=d.QueryLiquidityPoolBatchRequest=d.QueryLiquidityPoolByReserveAccRequest=d.QueryLiquidityPoolByPoolCoinDenomRequest=d.QueryLiquidityPoolResponse=d.QueryLiquidityPoolRequest=d.protobufPackage=void 0;const b=minimal,dt=liquidity$1,ct=pagination$1;d.protobufPackage="tendermint.liquidity.v1beta1";const lt={poolId:0};d.QueryLiquidityPoolRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...lt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...lt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),It},fromPartial(St){const It={...lt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,It}};const ht={};d.QueryLiquidityPoolResponse={encode(St,It=b.Writer.create()){return St.pool!==void 0&&dt.Pool.encode(St.pool,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...ht};for(;Gt.pos>>3){case 1:Vt.pool=dt.Pool.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...ht};return St.pool!==void 0&&St.pool!==null?It.pool=dt.Pool.fromJSON(St.pool):It.pool=void 0,It},toJSON(St){const It={};return St.pool!==void 0&&(It.pool=St.pool?dt.Pool.toJSON(St.pool):void 0),It},fromPartial(St){const It={...ht};return St.pool!==void 0&&St.pool!==null?It.pool=dt.Pool.fromPartial(St.pool):It.pool=void 0,It}};const mt={poolCoinDenom:""};d.QueryLiquidityPoolByPoolCoinDenomRequest={encode(St,It=b.Writer.create()){return St.poolCoinDenom!==""&&It.uint32(10).string(St.poolCoinDenom),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...mt};for(;Gt.pos>>3){case 1:Vt.poolCoinDenom=Gt.string();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...mt};return St.poolCoinDenom!==void 0&&St.poolCoinDenom!==null?It.poolCoinDenom=String(St.poolCoinDenom):It.poolCoinDenom="",It},toJSON(St){const It={};return St.poolCoinDenom!==void 0&&(It.poolCoinDenom=St.poolCoinDenom),It},fromPartial(St){const It={...mt};return St.poolCoinDenom!==void 0&&St.poolCoinDenom!==null?It.poolCoinDenom=St.poolCoinDenom:It.poolCoinDenom="",It}};const vt={reserveAcc:""};d.QueryLiquidityPoolByReserveAccRequest={encode(St,It=b.Writer.create()){return St.reserveAcc!==""&&It.uint32(10).string(St.reserveAcc),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...vt};for(;Gt.pos>>3){case 1:Vt.reserveAcc=Gt.string();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...vt};return St.reserveAcc!==void 0&&St.reserveAcc!==null?It.reserveAcc=String(St.reserveAcc):It.reserveAcc="",It},toJSON(St){const It={};return St.reserveAcc!==void 0&&(It.reserveAcc=St.reserveAcc),It},fromPartial(St){const It={...vt};return St.reserveAcc!==void 0&&St.reserveAcc!==null?It.reserveAcc=St.reserveAcc:It.reserveAcc="",It}};const kt={poolId:0};d.QueryLiquidityPoolBatchRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...kt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...kt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),It},fromPartial(St){const It={...kt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,It}};const Pt={};d.QueryLiquidityPoolBatchResponse={encode(St,It=b.Writer.create()){return St.batch!==void 0&&dt.PoolBatch.encode(St.batch,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Pt};for(;Gt.pos>>3){case 1:Vt.batch=dt.PoolBatch.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Pt};return St.batch!==void 0&&St.batch!==null?It.batch=dt.PoolBatch.fromJSON(St.batch):It.batch=void 0,It},toJSON(St){const It={};return St.batch!==void 0&&(It.batch=St.batch?dt.PoolBatch.toJSON(St.batch):void 0),It},fromPartial(St){const It={...Pt};return St.batch!==void 0&&St.batch!==null?It.batch=dt.PoolBatch.fromPartial(St.batch):It.batch=void 0,It}};const Jt={};d.QueryLiquidityPoolsRequest={encode(St,It=b.Writer.create()){return St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Jt};for(;Gt.pos>>3){case 1:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Jt};return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Jt};return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const Zt={};d.QueryLiquidityPoolsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.pools)dt.Pool.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Zt};for(Vt.pools=[];Gt.pos>>3){case 1:Vt.pools.push(dt.Pool.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Zt};if(It.pools=[],St.pools!==void 0&&St.pools!==null)for(const Gt of St.pools)It.pools.push(dt.Pool.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.pools?It.pools=St.pools.map(Gt=>Gt?dt.Pool.toJSON(Gt):void 0):It.pools=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Zt};if(It.pools=[],St.pools!==void 0&&St.pools!==null)for(const Gt of St.pools)It.pools.push(dt.Pool.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const Rt={};d.QueryParamsRequest={encode(St,It=b.Writer.create()){return It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Rt};for(;Gt.pos>>3){default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{...Rt}},toJSON(St){return{}},fromPartial(St){return{...Rt}}};const nn={};d.QueryParamsResponse={encode(St,It=b.Writer.create()){return St.params!==void 0&&dt.Params.encode(St.params,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...nn};for(;Gt.pos>>3){case 1:Vt.params=dt.Params.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...nn};return St.params!==void 0&&St.params!==null?It.params=dt.Params.fromJSON(St.params):It.params=void 0,It},toJSON(St){const It={};return St.params!==void 0&&(It.params=St.params?dt.Params.toJSON(St.params):void 0),It},fromPartial(St){const It={...nn};return St.params!==void 0&&St.params!==null?It.params=dt.Params.fromPartial(St.params):It.params=void 0,It}};const Qt={poolId:0};d.QueryPoolBatchSwapMsgsRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Qt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Qt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Qt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const wt={poolId:0,msgIndex:0};d.QueryPoolBatchSwapMsgRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.msgIndex!==0&&It.uint32(16).uint64(St.msgIndex),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...wt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.msgIndex=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...wt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=Number(St.msgIndex):It.msgIndex=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.msgIndex!==void 0&&(It.msgIndex=St.msgIndex),It},fromPartial(St){const It={...wt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=St.msgIndex:It.msgIndex=0,It}};const Nt={};d.QueryPoolBatchSwapMsgsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.swaps)dt.SwapMsgState.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Nt};for(Vt.swaps=[];Gt.pos>>3){case 1:Vt.swaps.push(dt.SwapMsgState.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Nt};if(It.swaps=[],St.swaps!==void 0&&St.swaps!==null)for(const Gt of St.swaps)It.swaps.push(dt.SwapMsgState.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.swaps?It.swaps=St.swaps.map(Gt=>Gt?dt.SwapMsgState.toJSON(Gt):void 0):It.swaps=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Nt};if(It.swaps=[],St.swaps!==void 0&&St.swaps!==null)for(const Gt of St.swaps)It.swaps.push(dt.SwapMsgState.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const xt={};d.QueryPoolBatchSwapMsgResponse={encode(St,It=b.Writer.create()){return St.swap!==void 0&&dt.SwapMsgState.encode(St.swap,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...xt};for(;Gt.pos>>3){case 1:Vt.swap=dt.SwapMsgState.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...xt};return St.swap!==void 0&&St.swap!==null?It.swap=dt.SwapMsgState.fromJSON(St.swap):It.swap=void 0,It},toJSON(St){const It={};return St.swap!==void 0&&(It.swap=St.swap?dt.SwapMsgState.toJSON(St.swap):void 0),It},fromPartial(St){const It={...xt};return St.swap!==void 0&&St.swap!==null?It.swap=dt.SwapMsgState.fromPartial(St.swap):It.swap=void 0,It}};const Et={poolId:0};d.QueryPoolBatchDepositMsgsRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Et};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Et};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Et};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const Bt={poolId:0,msgIndex:0};d.QueryPoolBatchDepositMsgRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.msgIndex!==0&&It.uint32(16).uint64(St.msgIndex),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Bt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.msgIndex=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Bt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=Number(St.msgIndex):It.msgIndex=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.msgIndex!==void 0&&(It.msgIndex=St.msgIndex),It},fromPartial(St){const It={...Bt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=St.msgIndex:It.msgIndex=0,It}};const Tt={};d.QueryPoolBatchDepositMsgsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.deposits)dt.DepositMsgState.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Tt};for(Vt.deposits=[];Gt.pos>>3){case 1:Vt.deposits.push(dt.DepositMsgState.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Tt};if(It.deposits=[],St.deposits!==void 0&&St.deposits!==null)for(const Gt of St.deposits)It.deposits.push(dt.DepositMsgState.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.deposits?It.deposits=St.deposits.map(Gt=>Gt?dt.DepositMsgState.toJSON(Gt):void 0):It.deposits=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Tt};if(It.deposits=[],St.deposits!==void 0&&St.deposits!==null)for(const Gt of St.deposits)It.deposits.push(dt.DepositMsgState.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const Mt={};d.QueryPoolBatchDepositMsgResponse={encode(St,It=b.Writer.create()){return St.deposit!==void 0&&dt.DepositMsgState.encode(St.deposit,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Mt};for(;Gt.pos>>3){case 1:Vt.deposit=dt.DepositMsgState.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Mt};return St.deposit!==void 0&&St.deposit!==null?It.deposit=dt.DepositMsgState.fromJSON(St.deposit):It.deposit=void 0,It},toJSON(St){const It={};return St.deposit!==void 0&&(It.deposit=St.deposit?dt.DepositMsgState.toJSON(St.deposit):void 0),It},fromPartial(St){const It={...Mt};return St.deposit!==void 0&&St.deposit!==null?It.deposit=dt.DepositMsgState.fromPartial(St.deposit):It.deposit=void 0,It}};const jt={poolId:0};d.QueryPoolBatchWithdrawMsgsRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...jt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...jt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...jt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const Ht={poolId:0,msgIndex:0};d.QueryPoolBatchWithdrawMsgRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.msgIndex!==0&&It.uint32(16).uint64(St.msgIndex),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Ht};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.msgIndex=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Ht};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=Number(St.msgIndex):It.msgIndex=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.msgIndex!==void 0&&(It.msgIndex=St.msgIndex),It},fromPartial(St){const It={...Ht};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=St.msgIndex:It.msgIndex=0,It}};const an={};d.QueryPoolBatchWithdrawMsgsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.withdraws)dt.WithdrawMsgState.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...an};for(Vt.withdraws=[];Gt.pos>>3){case 1:Vt.withdraws.push(dt.WithdrawMsgState.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...an};if(It.withdraws=[],St.withdraws!==void 0&&St.withdraws!==null)for(const Gt of St.withdraws)It.withdraws.push(dt.WithdrawMsgState.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.withdraws?It.withdraws=St.withdraws.map(Gt=>Gt?dt.WithdrawMsgState.toJSON(Gt):void 0):It.withdraws=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...an};if(It.withdraws=[],St.withdraws!==void 0&&St.withdraws!==null)for(const Gt of St.withdraws)It.withdraws.push(dt.WithdrawMsgState.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const yt={};d.QueryPoolBatchWithdrawMsgResponse={encode(St,It=b.Writer.create()){return St.withdraw!==void 0&&dt.WithdrawMsgState.encode(St.withdraw,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...yt};for(;Gt.pos>>3){case 1:Vt.withdraw=dt.WithdrawMsgState.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...yt};return St.withdraw!==void 0&&St.withdraw!==null?It.withdraw=dt.WithdrawMsgState.fromJSON(St.withdraw):It.withdraw=void 0,It},toJSON(St){const It={};return St.withdraw!==void 0&&(It.withdraw=St.withdraw?dt.WithdrawMsgState.toJSON(St.withdraw):void 0),It},fromPartial(St){const It={...yt};return St.withdraw!==void 0&&St.withdraw!==null?It.withdraw=dt.WithdrawMsgState.fromPartial(St.withdraw):It.withdraw=void 0,It}};class $t{constructor(It){this.rpc=It}LiquidityPools(It){const Gt=d.QueryLiquidityPoolsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPools",Gt).then(Vt=>d.QueryLiquidityPoolsResponse.decode(new b.Reader(Vt)))}LiquidityPool(It){const Gt=d.QueryLiquidityPoolRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPool",Gt).then(Vt=>d.QueryLiquidityPoolResponse.decode(new b.Reader(Vt)))}LiquidityPoolByPoolCoinDenom(It){const Gt=d.QueryLiquidityPoolByPoolCoinDenomRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPoolByPoolCoinDenom",Gt).then(Vt=>d.QueryLiquidityPoolResponse.decode(new b.Reader(Vt)))}LiquidityPoolByReserveAcc(It){const Gt=d.QueryLiquidityPoolByReserveAccRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPoolByReserveAcc",Gt).then(Vt=>d.QueryLiquidityPoolResponse.decode(new b.Reader(Vt)))}LiquidityPoolBatch(It){const Gt=d.QueryLiquidityPoolBatchRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPoolBatch",Gt).then(Vt=>d.QueryLiquidityPoolBatchResponse.decode(new b.Reader(Vt)))}PoolBatchSwapMsgs(It){const Gt=d.QueryPoolBatchSwapMsgsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchSwapMsgs",Gt).then(Vt=>d.QueryPoolBatchSwapMsgsResponse.decode(new b.Reader(Vt)))}PoolBatchSwapMsg(It){const Gt=d.QueryPoolBatchSwapMsgRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchSwapMsg",Gt).then(Vt=>d.QueryPoolBatchSwapMsgResponse.decode(new b.Reader(Vt)))}PoolBatchDepositMsgs(It){const Gt=d.QueryPoolBatchDepositMsgsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchDepositMsgs",Gt).then(Vt=>d.QueryPoolBatchDepositMsgsResponse.decode(new b.Reader(Vt)))}PoolBatchDepositMsg(It){const Gt=d.QueryPoolBatchDepositMsgRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchDepositMsg",Gt).then(Vt=>d.QueryPoolBatchDepositMsgResponse.decode(new b.Reader(Vt)))}PoolBatchWithdrawMsgs(It){const Gt=d.QueryPoolBatchWithdrawMsgsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchWithdrawMsgs",Gt).then(Vt=>d.QueryPoolBatchWithdrawMsgsResponse.decode(new b.Reader(Vt)))}PoolBatchWithdrawMsg(It){const Gt=d.QueryPoolBatchWithdrawMsgRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchWithdrawMsg",Gt).then(Vt=>d.QueryPoolBatchWithdrawMsgResponse.decode(new b.Reader(Vt)))}Params(It){const Gt=d.QueryParamsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","Params",Gt).then(Vt=>d.QueryParamsResponse.decode(new b.Reader(Vt)))}}d.QueryClientImpl=$t;var Yt=(()=>{if(typeof Yt<"u")return Yt;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();function Kt(St){if(St.gt(Number.MAX_SAFE_INTEGER))throw new Yt.Error("Value is larger than Number.MAX_SAFE_INTEGER");return St.toNumber()}})(query);var queries={},graph={};Object.defineProperty(graph,"__esModule",{value:!0});graph.setupGraphExtension=void 0;const stargate_1$6=build$e,query_1$6=query$4;function setupGraphExtension(d){const b=(0,stargate_1$6.createProtobufRpcClient)(d),dt=new query_1$6.QueryClientImpl(b);return{graph:{graphStats:async()=>await dt.GraphStats({})}}}graph.setupGraphExtension=setupGraphExtension;var rank={};Object.defineProperty(rank,"__esModule",{value:!0});rank.setupRankExtension=rank.createPagination=void 0;const stargate_1$5=build$e,query_1$5=query$2;function createPagination(d,b){return d?{page:d,perPage:b||10}:{page:0,perPage:10}}rank.createPagination=createPagination;function setupRankExtension(d){const b=(0,stargate_1$5.createProtobufRpcClient)(d),dt=new query_1$5.QueryClientImpl(b);return{rank:{search:async(ct,lt,ht)=>await dt.Search({particle:ct,pagination:createPagination(lt,ht)}),backlinks:async(ct,lt,ht)=>await dt.Backlinks({particle:ct,pagination:createPagination(lt,ht)}),rank:async ct=>await dt.Rank({particle:ct}),karma:async ct=>await dt.Karma({neuron:ct}),isLinkExist:async(ct,lt,ht)=>await dt.IsLinkExist({from:ct,to:lt,address:ht}),isAnyLinkExist:async(ct,lt)=>await dt.IsAnyLinkExist({from:ct,to:lt}),negentropy:async()=>await dt.Negentropy({})}}}rank.setupRankExtension=setupRankExtension;var bandwidth={};Object.defineProperty(bandwidth,"__esModule",{value:!0});bandwidth.setupBandwidthExtension=void 0;const stargate_1$4=build$e,query_1$4=query$5;function setupBandwidthExtension(d){const b=(0,stargate_1$4.createProtobufRpcClient)(d),dt=new query_1$4.QueryClientImpl(b);return{bandwidth:{load:async()=>await dt.Load({}),price:async()=>await dt.Price({}),account:async ct=>await dt.NeuronBandwidth({neuron:ct})}}}bandwidth.setupBandwidthExtension=setupBandwidthExtension;var grid={};Object.defineProperty(grid,"__esModule",{value:!0});grid.setupGridExtension=void 0;const stargate_1$3=build$e,query_1$3=query$3;function setupGridExtension(d){const b=(0,stargate_1$3.createProtobufRpcClient)(d),dt=new query_1$3.QueryClientImpl(b);return{grid:{sourceRoutes:async ct=>await dt.SourceRoutes({source:ct}),destinationRoutes:async ct=>await dt.DestinationRoutes({destination:ct}),destinationRoutedEnergy:async ct=>await dt.DestinationRoutedEnergy({destination:ct}),sourceRoutedEnergy:async ct=>await dt.SourceRoutedEnergy({source:ct}),route:async(ct,lt)=>await dt.Route({source:ct,destination:lt}),routes:async()=>await dt.Routes({}),params:async()=>await dt.Params({})}}}grid.setupGridExtension=setupGridExtension;var liquidity={};Object.defineProperty(liquidity,"__esModule",{value:!0});liquidity.setupLiquidityExtension=void 0;const stargate_1$2=build$e,query_1$2=query;function setupLiquidityExtension(d){const b=(0,stargate_1$2.createProtobufRpcClient)(d),dt=new query_1$2.QueryClientImpl(b);return{liquidity:{params:async()=>await dt.Params({}),pool:async ct=>await dt.LiquidityPool({poolId:ct}),pools:async()=>await dt.LiquidityPools({pagination:void 0})}}}liquidity.setupLiquidityExtension=setupLiquidityExtension;var resources={};Object.defineProperty(resources,"__esModule",{value:!0});resources.setupResourcesExtension=void 0;const stargate_1$1=build$e,query_1$1=query$1;function setupResourcesExtension(d){const b=(0,stargate_1$1.createProtobufRpcClient)(d),dt=new query_1$1.QueryClientImpl(b);return{resources:{params:async()=>await dt.Params({})}}}resources.setupResourcesExtension=setupResourcesExtension;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.setupResourcesExtension=d.setupLiquidityExtension=d.setupGridExtension=d.setupBandwidthExtension=d.setupRankExtension=d.setupGraphExtension=void 0;var b=graph;Object.defineProperty(d,"setupGraphExtension",{enumerable:!0,get:function(){return b.setupGraphExtension}});var dt=rank;Object.defineProperty(d,"setupRankExtension",{enumerable:!0,get:function(){return dt.setupRankExtension}});var ct=bandwidth;Object.defineProperty(d,"setupBandwidthExtension",{enumerable:!0,get:function(){return ct.setupBandwidthExtension}});var lt=grid;Object.defineProperty(d,"setupGridExtension",{enumerable:!0,get:function(){return lt.setupGridExtension}});var ht=liquidity;Object.defineProperty(d,"setupLiquidityExtension",{enumerable:!0,get:function(){return ht.setupLiquidityExtension}});var mt=resources;Object.defineProperty(d,"setupResourcesExtension",{enumerable:!0,get:function(){return mt.setupResourcesExtension}})})(queries);Object.defineProperty(cyberclient,"__esModule",{value:!0});cyberclient.CyberClient=void 0;const cosmwasm_stargate_1=build$h,encoding_1$1=build$j,math_1$1=build$f,stargate_1=build$e,tendermint_rpc_1=build$3,utils_1$1=build$9,query_1=query$8,query_2=query$7,query_3=query$6,types_1=types$7,query_4=query$5,query_5=query$4,query_6=query$3,query_7=query$2,query_8=query$1,query_9=query,index_1=queries;class CyberClient{static async connect(b){const dt=await tendermint_rpc_1.Tendermint34Client.connect(b);return new CyberClient(dt)}constructor(b){this.codesCache=new Map,b&&(this.tmClient=b,this.queryClient=stargate_1.QueryClient.withExtensions(b,stargate_1.setupAuthExtension,stargate_1.setupBankExtension,stargate_1.setupDistributionExtension,stargate_1.setupStakingExtension,index_1.setupGraphExtension,index_1.setupRankExtension,index_1.setupBandwidthExtension,index_1.setupGridExtension,cosmwasm_stargate_1.setupWasmExtension,index_1.setupLiquidityExtension,stargate_1.setupGovExtension,index_1.setupResourcesExtension,stargate_1.setupTxExtension,stargate_1.setupIbcExtension))}getTmClient(){return this.tmClient}forceGetTmClient(){if(!this.tmClient)throw new Error("Tendermint client not available. You cannot use online functionality in offline mode.");return this.tmClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw new Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){const dt=(await this.forceGetTmClient().status()).nodeInfo.network;if(!dt)throw new Error("Chain ID must not be empty");this.chainId=dt}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(b){try{const dt=await this.forceGetQueryClient().auth.account(b);return dt?(0,stargate_1.accountFromAny)(dt):null}catch(dt){if(/rpc error: code = NotFound/i.test(String(dt)))return null;throw dt}}async getSequence(b){const dt=await this.getAccount(b);if(!dt)throw new Error("Account does not exist on chain. Send some tokens there before trying to query sequence.");return{accountNumber:dt.accountNumber,sequence:dt.sequence}}async getBlock(b){const dt=await this.forceGetTmClient().block(b);return{id:(0,encoding_1$1.toHex)(dt.blockId.hash).toUpperCase(),header:{version:{block:new math_1$1.Uint53(dt.block.header.version.block).toString(),app:new math_1$1.Uint53(dt.block.header.version.app).toString()},height:dt.block.header.height,chainId:dt.block.header.chainId,time:(0,tendermint_rpc_1.toRfc3339WithNanoseconds)(dt.block.header.time)},txs:dt.block.txs}}async getBlockResults(b){return this.forceGetTmClient().blockResults(b)}async getBalance(b,dt){return this.forceGetQueryClient().bank.balance(b,dt)}async getAllBalances(b){return this.forceGetQueryClient().bank.allBalances(b)}async totalSupply(){return(await this.forceGetQueryClient().bank.totalSupply()).supply}async getTx(b){return(await this.txsQuery(`tx.hash='${b}'`))[0]??null}async searchTx(b,dt={}){const ct=dt.minHeight||0,lt=dt.maxHeight||Number.MAX_SAFE_INTEGER;if(lt=${ct} AND tx.height<=${lt}`}let mt;if((b==null?void 0:b.height)!==void 0)mt=b.height>=ct&&b.height<=lt?await this.txsQuery(`tx.height=${b.height}`):[];else if((b==null?void 0:b.sentFromOrTo)!==void 0){const kt=ht(`message.module='bank' AND transfer.sender='${b.sentFromOrTo}'`),Pt=ht(`message.module='bank' AND transfer.recipient='${b.sentFromOrTo}'`),[Jt,Zt]=await Promise.all([kt,Pt].map(nn=>this.txsQuery(nn))),Rt=Jt.map(nn=>nn.hash);mt=[...Jt,...Zt.filter(nn=>!Rt.includes(nn.hash))]}else if((b==null?void 0:b.tags)!==void 0){const kt=ht(b.tags.map(Pt=>`${Pt.key}='${Pt.value}'`).join(" AND "));mt=await this.txsQuery(kt)}else throw new Error("Unknown query type");return mt.filter(kt=>kt.height>=ct&&kt.height<=lt)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(b){const dt=await this.forceGetTmClient().broadcastTxSync({tx:b}),ct=(0,encoding_1$1.toHex)(dt.hash).toUpperCase();return{code:dt.code,height:0,rawLog:dt.log,transactionHash:ct,gasUsed:dt.gasUsed,gasWanted:dt.gasWanted,txIndex:0,events:[],msgResponses:[]}}async graphStats(){const b=await this.forceGetQueryClient().graph.graphStats();return query_5.QueryGraphStatsResponse.toJSON(b)}async search(b,dt,ct){const lt=await this.forceGetQueryClient().rank.search(b,dt,ct);return query_7.QuerySearchResponse.toJSON(lt)}async backlinks(b,dt,ct){const lt=await this.forceGetQueryClient().rank.backlinks(b,dt,ct);return query_7.QuerySearchResponse.toJSON(lt)}async rank(b){const dt=await this.forceGetQueryClient().rank.rank(b);return query_7.QueryRankResponse.toJSON(dt)}async karma(b){const dt=await this.forceGetQueryClient().rank.karma(b);return query_7.QueryKarmaResponse.toJSON(dt)}async isLinkExist(b,dt,ct){const lt=await this.forceGetQueryClient().rank.isLinkExist(b,dt,ct);return query_7.QueryLinkExistResponse.toJSON(lt)}async isAnyLinkExist(b,dt){const ct=await this.forceGetQueryClient().rank.isAnyLinkExist(b,dt);return query_7.QueryLinkExistResponse.toJSON(ct)}async negentropy(){const b=await this.forceGetQueryClient().rank.negentropy();return query_7.QueryNegentropyResponse.toJSON(b)}async load(){const b=await this.forceGetQueryClient().bandwidth.load();return query_4.QueryLoadResponse.toJSON(b)}async price(){const b=await this.forceGetQueryClient().bandwidth.price();return query_4.QueryPriceResponse.toJSON(b)}async accountBandwidth(b){const dt=await this.forceGetQueryClient().bandwidth.account(b);return query_4.QueryNeuronBandwidthResponse.toJSON(dt)}async delegation(b,dt){const ct=await this.forceGetQueryClient().staking.delegation(b,dt);return query_3.QueryDelegationResponse.toJSON(ct)}async delegatorDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorDelegations(b,dt);return query_3.QueryDelegatorDelegationsResponse.toJSON(ct)}async delegatorUnbondingDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorUnbondingDelegations(b,dt);return query_3.QueryDelegatorUnbondingDelegationsResponse.toJSON(ct)}async delegatorValidator(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorValidator(b,dt);return query_3.QueryDelegatorValidatorResponse.toJSON(ct)}async delegatorValidators(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorValidators(b,dt);return query_3.QueryDelegatorValidatorsResponse.toJSON(ct)}async historicalInfo(b){const dt=await this.forceGetQueryClient().staking.historicalInfo(b);return query_3.QueryHistoricalInfoResponse.toJSON(dt)}async stakingParams(){const b=await this.forceGetQueryClient().staking.params();return query_3.QueryParamsResponse.toJSON(b)}async stakingPool(){const b=await this.forceGetQueryClient().staking.pool();return query_3.QueryPoolResponse.toJSON(b)}async redelegations(b,dt,ct,lt){const ht=await this.forceGetQueryClient().staking.redelegations(b,dt,ct,lt);return query_3.QueryRedelegationsResponse.toJSON(ht)}async unbondingDelegation(b,dt){const ct=await this.forceGetQueryClient().staking.unbondingDelegation(b,dt);return query_3.QueryUnbondingDelegationResponse.toJSON(ct)}async validator(b){const dt=await this.forceGetQueryClient().staking.validator(b);return query_3.QueryValidatorResponse.toJSON(dt)}async validatorDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.validatorDelegations(b,dt);return query_3.QueryValidatorDelegationsResponse.toJSON(ct)}async validators(b,dt){const ct=await this.forceGetQueryClient().staking.validators(b,dt);return query_3.QueryValidatorsResponse.toJSON(ct)}async validatorUnbondingDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.validatorUnbondingDelegations(b,dt);return query_3.QueryValidatorUnbondingDelegationsResponse.toJSON(ct)}async communityPool(){const b=await this.forceGetQueryClient().distribution.communityPool();return query_1.QueryCommunityPoolResponse.toJSON(b)}async delegationRewards(b,dt){const ct=await this.forceGetQueryClient().distribution.delegationRewards(b,dt);return query_1.QueryDelegationRewardsResponse.toJSON(ct)}async delegationTotalRewards(b){const dt=await this.forceGetQueryClient().distribution.delegationTotalRewards(b);return query_1.QueryDelegationTotalRewardsResponse.toJSON(dt)}async delegatorValidatorsDistribution(b){const dt=await this.forceGetQueryClient().distribution.delegatorValidators(b);return query_1.QueryDelegatorValidatorsResponse.toJSON(dt)}async delegatorWithdrawAddress(b){const dt=await this.forceGetQueryClient().distribution.delegatorWithdrawAddress(b);return query_1.QueryDelegatorWithdrawAddressResponse.toJSON(dt)}async distributionParams(){const b=await this.forceGetQueryClient().distribution.params();return query_1.QueryParamsResponse.toJSON(b)}async validatorCommission(b){const dt=await this.forceGetQueryClient().distribution.validatorCommission(b);return query_1.QueryValidatorCommissionResponse.toJSON(dt)}async validatorOutstandingRewards(b){const dt=await this.forceGetQueryClient().distribution.validatorOutstandingRewards(b);return query_1.QueryValidatorOutstandingRewardsResponse.toJSON(dt)}async validatorSlashes(b,dt,ct,lt){const ht=await this.forceGetQueryClient().distribution.validatorSlashes(b,dt,ct,lt);return query_1.QueryValidatorSlashesResponse.toJSON(ht)}async sourceRoutes(b){const dt=await this.forceGetQueryClient().grid.sourceRoutes(b);return query_6.QueryRoutesResponse.toJSON(dt)}async destinationRoutes(b){const dt=await this.forceGetQueryClient().grid.destinationRoutes(b);return query_6.QueryRoutesResponse.toJSON(dt)}async destinationRoutedEnergy(b){const dt=await this.forceGetQueryClient().grid.destinationRoutedEnergy(b);return query_6.QueryRoutedEnergyResponse.toJSON(dt)}async sourceRoutedEnergy(b){const dt=await this.forceGetQueryClient().grid.sourceRoutedEnergy(b);return query_6.QueryRoutedEnergyResponse.toJSON(dt)}async route(b,dt){const ct=await this.forceGetQueryClient().grid.route(b,dt);return query_6.QueryRouteResponse.toJSON(ct)}async routes(){const b=await this.forceGetQueryClient().grid.routes();return query_6.QueryRoutesResponse.toJSON(b)}async energyParams(){const b=await this.forceGetQueryClient().grid.params();return query_6.QueryParamsResponse.toJSON(b)}async resourcesParams(){const b=await this.forceGetQueryClient().resources.params();return query_8.QueryParamsResponse.toJSON(b)}async liquidityParams(){const b=await this.forceGetQueryClient().liquidity.params();return query_9.QueryParamsResponse.toJSON(b)}async pool(b){const dt=await this.forceGetQueryClient().liquidity.pool(b);return query_9.QueryLiquidityPoolResponse.toJSON(dt)}async pools(){const b=await this.forceGetQueryClient().liquidity.pools();return query_9.QueryLiquidityPoolsResponse.toJSON(b)}async govParams(b){const dt=await this.forceGetQueryClient().gov.params(b);return query_2.QueryParamsResponse.toJSON(dt)}async proposals(b,dt,ct,lt){const ht=await this.forceGetQueryClient().gov.proposals(b,dt,ct,lt);return query_2.QueryProposalsResponse.toJSON(ht)}async proposal(b){const dt=await this.forceGetQueryClient().gov.proposal(b);return query_2.QueryProposalResponse.toJSON(dt)}async deposits(b){const dt=await this.forceGetQueryClient().gov.deposits(b);return query_2.QueryDepositsResponse.toJSON(dt)}async deposit(b,dt){const ct=await this.forceGetQueryClient().gov.deposit(b,dt);return query_2.QueryDepositResponse.toJSON(ct)}async tally(b){const dt=await this.forceGetQueryClient().gov.tally(b);return query_2.QueryTallyResultResponse.toJSON(dt)}async votes(b){const dt=await this.forceGetQueryClient().gov.votes(b);return query_2.QueryVotesResponse.toJSON(dt)}async vote(b,dt){const ct=await this.forceGetQueryClient().gov.vote(b,dt);return query_2.QueryVoteResponse.toJSON(ct)}async getCodes(){const b=[];let dt;do{const{codeInfos:ct,pagination:lt}=await this.forceGetQueryClient().wasm.listCodeInfo(dt),ht=ct||[];b.push(...ht),dt=lt==null?void 0:lt.nextKey}while((dt==null?void 0:dt.length)!==0);return b.map(ct=>((0,utils_1$1.assert)(ct.creator&&ct.codeId&&ct.dataHash,"entry incomplete"),{id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$1.toHex)(ct.dataHash)}))}async getCodeDetails(b){const dt=this.codesCache.get(b);if(dt)return dt;const{codeInfo:ct,data:lt}=await this.forceGetQueryClient().wasm.getCode(b);(0,utils_1$1.assert)(ct&&ct.codeId&&ct.creator&&ct.dataHash&<,"codeInfo missing or incomplete");const ht={id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$1.toHex)(ct.dataHash),data:lt};return this.codesCache.set(b,ht),ht}async getContracts(b){const dt=[];let ct;do{const{contracts:lt,pagination:ht}=await this.forceGetQueryClient().wasm.listContractsByCodeId(b,ct),mt=lt||[];dt.push(...mt),ct=ht==null?void 0:ht.nextKey}while((ct==null?void 0:ct.length)!==0&&ct!==void 0);return dt}async allDenomTraces(){return await this.forceGetQueryClient().ibc.transfer.allDenomTraces()}async denomTrace(b){return await this.forceGetQueryClient().ibc.transfer.denomTrace(b)}async getContract(b){const{address:dt,contractInfo:ct}=await this.forceGetQueryClient().wasm.getContractInfo(b);if(!ct)throw new Error(`No contract found at address "${b}"`);return(0,utils_1$1.assert)(dt,"address missing"),(0,utils_1$1.assert)(ct.codeId&&ct.creator&&ct.label,"contractInfo incomplete"),{address:dt,codeId:ct.codeId.toNumber(),creator:ct.creator,admin:ct.admin||void 0,label:ct.label,ibcPortId:ct.ibcPortId||void 0}}async getContractCodeHistory(b){const dt=await this.forceGetQueryClient().wasm.getContractCodeHistory(b);if(!dt)throw new Error(`No contract history found for address "${b}"`);const ct={[types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT]:"Init",[types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS]:"Genesis",[types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE]:"Migrate"};return(dt.entries||[]).map(lt=>((0,utils_1$1.assert)(lt.operation&<.codeId&<.msg),{operation:ct[lt.operation],codeId:lt.codeId.toNumber(),msg:JSON.parse((0,encoding_1$1.fromAscii)(lt.msg))}))}async queryContractRaw(b,dt){await this.getContract(b);const{data:ct}=await this.forceGetQueryClient().wasm.queryContractRaw(b,dt);return ct??null}async queryContractSmart(b,dt){try{return await this.forceGetQueryClient().wasm.queryContractSmart(b,dt)}catch(ct){throw ct instanceof Error&&ct.message.startsWith("not found: contract")?new Error(`No contract found at address "${b}"`):ct}}async txsQuery(b){return(await this.forceGetTmClient().txSearchAll({query:b})).txs.map(ct=>({height:ct.height,hash:(0,encoding_1$1.toHex)(ct.hash).toUpperCase(),code:ct.result.code,rawLog:ct.result.log||"",tx:ct.tx,gasUsed:ct.result.gasUsed,gasWanted:ct.result.gasWanted,txIndex:ct.index,events:[],msgResponses:[]}))}}cyberclient.CyberClient=CyberClient;var signingcyberclient={},tx$b={},authz={},__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$1(b,d,dt);return __setModuleDefault$1(b,d),b};Object.defineProperty(authz,"__esModule",{value:!0});authz.GrantAuthorization=authz.Grant=authz.GenericAuthorization=authz.protobufPackage=void 0;const any_1=any,timestamp_1=timestamp,_m0$1=__importStar$1(minimal$2),helpers_1$1=helpers;authz.protobufPackage="cosmos.authz.v1beta1";function createBaseGenericAuthorization(){return{msg:""}}authz.GenericAuthorization={encode(d,b=_m0$1.Writer.create()){return d.msg!==""&&b.uint32(10).string(d.msg),b},decode(d,b){const dt=d instanceof _m0$1.Reader?d:new _m0$1.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGenericAuthorization();for(;dt.pos>>3){case 1:lt.msg=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{msg:(0,helpers_1$1.isSet)(d.msg)?String(d.msg):""}},toJSON(d){const b={};return d.msg!==void 0&&(b.msg=d.msg),b},fromPartial(d){const b=createBaseGenericAuthorization();return b.msg=d.msg??"",b}};function createBaseGrant(){return{authorization:void 0,expiration:void 0}}authz.Grant={encode(d,b=_m0$1.Writer.create()){return d.authorization!==void 0&&any_1.Any.encode(d.authorization,b.uint32(10).fork()).ldelim(),d.expiration!==void 0&×tamp_1.Timestamp.encode(d.expiration,b.uint32(18).fork()).ldelim(),b},decode(d,b){const dt=d instanceof _m0$1.Reader?d:new _m0$1.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGrant();for(;dt.pos>>3){case 1:lt.authorization=any_1.Any.decode(dt,dt.uint32());break;case 2:lt.expiration=timestamp_1.Timestamp.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{authorization:(0,helpers_1$1.isSet)(d.authorization)?any_1.Any.fromJSON(d.authorization):void 0,expiration:(0,helpers_1$1.isSet)(d.expiration)?(0,helpers_1$1.fromJsonTimestamp)(d.expiration):void 0}},toJSON(d){const b={};return d.authorization!==void 0&&(b.authorization=d.authorization?any_1.Any.toJSON(d.authorization):void 0),d.expiration!==void 0&&(b.expiration=(0,helpers_1$1.fromTimestamp)(d.expiration).toISOString()),b},fromPartial(d){const b=createBaseGrant();return b.authorization=d.authorization!==void 0&&d.authorization!==null?any_1.Any.fromPartial(d.authorization):void 0,b.expiration=d.expiration!==void 0&&d.expiration!==null?timestamp_1.Timestamp.fromPartial(d.expiration):void 0,b}};function createBaseGrantAuthorization(){return{granter:"",grantee:"",authorization:void 0,expiration:void 0}}authz.GrantAuthorization={encode(d,b=_m0$1.Writer.create()){return d.granter!==""&&b.uint32(10).string(d.granter),d.grantee!==""&&b.uint32(18).string(d.grantee),d.authorization!==void 0&&any_1.Any.encode(d.authorization,b.uint32(26).fork()).ldelim(),d.expiration!==void 0&×tamp_1.Timestamp.encode(d.expiration,b.uint32(34).fork()).ldelim(),b},decode(d,b){const dt=d instanceof _m0$1.Reader?d:new _m0$1.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGrantAuthorization();for(;dt.pos>>3){case 1:lt.granter=dt.string();break;case 2:lt.grantee=dt.string();break;case 3:lt.authorization=any_1.Any.decode(dt,dt.uint32());break;case 4:lt.expiration=timestamp_1.Timestamp.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{granter:(0,helpers_1$1.isSet)(d.granter)?String(d.granter):"",grantee:(0,helpers_1$1.isSet)(d.grantee)?String(d.grantee):"",authorization:(0,helpers_1$1.isSet)(d.authorization)?any_1.Any.fromJSON(d.authorization):void 0,expiration:(0,helpers_1$1.isSet)(d.expiration)?(0,helpers_1$1.fromJsonTimestamp)(d.expiration):void 0}},toJSON(d){const b={};return d.granter!==void 0&&(b.granter=d.granter),d.grantee!==void 0&&(b.grantee=d.grantee),d.authorization!==void 0&&(b.authorization=d.authorization?any_1.Any.toJSON(d.authorization):void 0),d.expiration!==void 0&&(b.expiration=(0,helpers_1$1.fromTimestamp)(d.expiration).toISOString()),b},fromPartial(d){const b=createBaseGrantAuthorization();return b.granter=d.granter??"",b.grantee=d.grantee??"",b.authorization=d.authorization!==void 0&&d.authorization!==null?any_1.Any.fromPartial(d.authorization):void 0,b.expiration=d.expiration!==void 0&&d.expiration!==null?timestamp_1.Timestamp.fromPartial(d.expiration):void 0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgRevokeResponse=d.MsgRevoke=d.MsgGrantResponse=d.MsgExec=d.MsgExecResponse=d.MsgGrant=d.protobufPackage=void 0;const lt=authz,ht=any,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.authz.v1beta1";function kt(){return{granter:"",grantee:"",grant:void 0}}d.MsgGrant={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),wt.grant!==void 0&<.Grant.encode(wt.grant,Nt.uint32(26).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;case 3:Bt.grant=lt.Grant.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",grant:(0,vt.isSet)(wt.grant)?lt.Grant.fromJSON(wt.grant):void 0}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.grant!==void 0&&(Nt.grant=wt.grant?lt.Grant.toJSON(wt.grant):void 0),Nt},fromPartial(wt){const Nt=kt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt.grant=wt.grant!==void 0&&wt.grant!==null?lt.Grant.fromPartial(wt.grant):void 0,Nt}};function Pt(){return{results:[]}}d.MsgExecResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.results)Nt.uint32(10).bytes(xt);return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.results.push(xt.bytes());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{results:Array.isArray(wt==null?void 0:wt.results)?wt.results.map(Nt=>(0,vt.bytesFromBase64)(Nt)):[]}},toJSON(wt){const Nt={};return wt.results?Nt.results=wt.results.map(xt=>(0,vt.base64FromBytes)(xt!==void 0?xt:new Uint8Array)):Nt.results=[],Nt},fromPartial(wt){var xt;const Nt=Pt();return Nt.results=((xt=wt.results)==null?void 0:xt.map(Et=>Et))||[],Nt}};function Jt(){return{grantee:"",msgs:[]}}d.MsgExec={encode(wt,Nt=mt.Writer.create()){wt.grantee!==""&&Nt.uint32(10).string(wt.grantee);for(const xt of wt.msgs)ht.Any.encode(xt,Nt.uint32(18).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.grantee=xt.string();break;case 2:Bt.msgs.push(ht.Any.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",msgs:Array.isArray(wt==null?void 0:wt.msgs)?wt.msgs.map(Nt=>ht.Any.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.msgs?Nt.msgs=wt.msgs.map(xt=>xt?ht.Any.toJSON(xt):void 0):Nt.msgs=[],Nt},fromPartial(wt){var xt;const Nt=Jt();return Nt.grantee=wt.grantee??"",Nt.msgs=((xt=wt.msgs)==null?void 0:xt.map(Et=>ht.Any.fromPartial(Et)))||[],Nt}};function Zt(){return{}}d.MsgGrantResponse={encode(wt,Nt=mt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Zt()}};function Rt(){return{granter:"",grantee:"",msgTypeUrl:""}}d.MsgRevoke={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),wt.msgTypeUrl!==""&&Nt.uint32(26).string(wt.msgTypeUrl),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;case 3:Bt.msgTypeUrl=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",msgTypeUrl:(0,vt.isSet)(wt.msgTypeUrl)?String(wt.msgTypeUrl):""}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.msgTypeUrl!==void 0&&(Nt.msgTypeUrl=wt.msgTypeUrl),Nt},fromPartial(wt){const Nt=Rt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt.msgTypeUrl=wt.msgTypeUrl??"",Nt}};function nn(){return{}}d.MsgRevokeResponse={encode(wt,Nt=mt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return nn()}};class Qt{constructor(Nt){this.rpc=Nt,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(Nt){const xt=d.MsgGrant.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",xt).then(Bt=>d.MsgGrantResponse.decode(new mt.Reader(Bt)))}Exec(Nt){const xt=d.MsgExec.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",xt).then(Bt=>d.MsgExecResponse.decode(new mt.Reader(Bt)))}Revoke(Nt){const xt=d.MsgRevoke.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",xt).then(Bt=>d.MsgRevokeResponse.decode(new mt.Reader(Bt)))}}d.MsgClientImpl=Qt})(tx$b);var tx$a={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et);var Tt=Object.getOwnPropertyDescriptor(xt,Et);(!Tt||("get"in Tt?!xt.__esModule:Tt.writable||Tt.configurable))&&(Tt={enumerable:!0,get:function(){return xt[Et]}}),Object.defineProperty(Nt,Bt,Tt)}:function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et),Nt[Bt]=xt[Et]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,xt){Object.defineProperty(Nt,"default",{enumerable:!0,value:xt})}:function(Nt,xt){Nt.default=xt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var xt={};if(Nt!=null)for(var Et in Nt)Et!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Et)&&b(xt,Nt,Et);return dt(xt,Nt),xt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgFundCommunityPoolResponse=d.MsgFundCommunityPool=d.MsgWithdrawValidatorCommissionResponse=d.MsgWithdrawValidatorCommission=d.MsgWithdrawDelegatorRewardResponse=d.MsgWithdrawDelegatorReward=d.MsgSetWithdrawAddressResponse=d.MsgSetWithdrawAddress=d.protobufPackage=void 0;const lt=coin$1,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmos.distribution.v1beta1";function vt(){return{delegatorAddress:"",withdrawAddress:""}}d.MsgSetWithdrawAddress={encode(Nt,xt=ht.Writer.create()){return Nt.delegatorAddress!==""&&xt.uint32(10).string(Nt.delegatorAddress),Nt.withdrawAddress!==""&&xt.uint32(18).string(Nt.withdrawAddress),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=vt();for(;Et.pos>>3){case 1:Tt.delegatorAddress=Et.string();break;case 2:Tt.withdrawAddress=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{delegatorAddress:(0,mt.isSet)(Nt.delegatorAddress)?String(Nt.delegatorAddress):"",withdrawAddress:(0,mt.isSet)(Nt.withdrawAddress)?String(Nt.withdrawAddress):""}},toJSON(Nt){const xt={};return Nt.delegatorAddress!==void 0&&(xt.delegatorAddress=Nt.delegatorAddress),Nt.withdrawAddress!==void 0&&(xt.withdrawAddress=Nt.withdrawAddress),xt},fromPartial(Nt){const xt=vt();return xt.delegatorAddress=Nt.delegatorAddress??"",xt.withdrawAddress=Nt.withdrawAddress??"",xt}};function kt(){return{}}d.MsgSetWithdrawAddressResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=kt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return kt()}};function Pt(){return{delegatorAddress:"",validatorAddress:""}}d.MsgWithdrawDelegatorReward={encode(Nt,xt=ht.Writer.create()){return Nt.delegatorAddress!==""&&xt.uint32(10).string(Nt.delegatorAddress),Nt.validatorAddress!==""&&xt.uint32(18).string(Nt.validatorAddress),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Pt();for(;Et.pos>>3){case 1:Tt.delegatorAddress=Et.string();break;case 2:Tt.validatorAddress=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{delegatorAddress:(0,mt.isSet)(Nt.delegatorAddress)?String(Nt.delegatorAddress):"",validatorAddress:(0,mt.isSet)(Nt.validatorAddress)?String(Nt.validatorAddress):""}},toJSON(Nt){const xt={};return Nt.delegatorAddress!==void 0&&(xt.delegatorAddress=Nt.delegatorAddress),Nt.validatorAddress!==void 0&&(xt.validatorAddress=Nt.validatorAddress),xt},fromPartial(Nt){const xt=Pt();return xt.delegatorAddress=Nt.delegatorAddress??"",xt.validatorAddress=Nt.validatorAddress??"",xt}};function Jt(){return{}}d.MsgWithdrawDelegatorRewardResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Jt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Jt()}};function Zt(){return{validatorAddress:""}}d.MsgWithdrawValidatorCommission={encode(Nt,xt=ht.Writer.create()){return Nt.validatorAddress!==""&&xt.uint32(10).string(Nt.validatorAddress),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Zt();for(;Et.pos>>3){case 1:Tt.validatorAddress=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{validatorAddress:(0,mt.isSet)(Nt.validatorAddress)?String(Nt.validatorAddress):""}},toJSON(Nt){const xt={};return Nt.validatorAddress!==void 0&&(xt.validatorAddress=Nt.validatorAddress),xt},fromPartial(Nt){const xt=Zt();return xt.validatorAddress=Nt.validatorAddress??"",xt}};function Rt(){return{}}d.MsgWithdrawValidatorCommissionResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Rt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Rt()}};function nn(){return{amount:[],depositor:""}}d.MsgFundCommunityPool={encode(Nt,xt=ht.Writer.create()){for(const Et of Nt.amount)lt.Coin.encode(Et,xt.uint32(10).fork()).ldelim();return Nt.depositor!==""&&xt.uint32(18).string(Nt.depositor),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=nn();for(;Et.pos>>3){case 1:Tt.amount.push(lt.Coin.decode(Et,Et.uint32()));break;case 2:Tt.depositor=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{amount:Array.isArray(Nt==null?void 0:Nt.amount)?Nt.amount.map(xt=>lt.Coin.fromJSON(xt)):[],depositor:(0,mt.isSet)(Nt.depositor)?String(Nt.depositor):""}},toJSON(Nt){const xt={};return Nt.amount?xt.amount=Nt.amount.map(Et=>Et?lt.Coin.toJSON(Et):void 0):xt.amount=[],Nt.depositor!==void 0&&(xt.depositor=Nt.depositor),xt},fromPartial(Nt){var Et;const xt=nn();return xt.amount=((Et=Nt.amount)==null?void 0:Et.map(Bt=>lt.Coin.fromPartial(Bt)))||[],xt.depositor=Nt.depositor??"",xt}};function Qt(){return{}}d.MsgFundCommunityPoolResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Qt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Qt()}};class wt{constructor(xt){this.rpc=xt,this.SetWithdrawAddress=this.SetWithdrawAddress.bind(this),this.WithdrawDelegatorReward=this.WithdrawDelegatorReward.bind(this),this.WithdrawValidatorCommission=this.WithdrawValidatorCommission.bind(this),this.FundCommunityPool=this.FundCommunityPool.bind(this)}SetWithdrawAddress(xt){const Et=d.MsgSetWithdrawAddress.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",Et).then(Tt=>d.MsgSetWithdrawAddressResponse.decode(new ht.Reader(Tt)))}WithdrawDelegatorReward(xt){const Et=d.MsgWithdrawDelegatorReward.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",Et).then(Tt=>d.MsgWithdrawDelegatorRewardResponse.decode(new ht.Reader(Tt)))}WithdrawValidatorCommission(xt){const Et=d.MsgWithdrawValidatorCommission.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",Et).then(Tt=>d.MsgWithdrawValidatorCommissionResponse.decode(new ht.Reader(Tt)))}FundCommunityPool(xt){const Et=d.MsgFundCommunityPool.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",Et).then(Tt=>d.MsgFundCommunityPoolResponse.decode(new ht.Reader(Tt)))}}d.MsgClientImpl=wt})(tx$a);var tx$9={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt);var jt=Object.getOwnPropertyDescriptor(Bt,Tt);(!jt||("get"in jt?!Bt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Bt[Tt]}}),Object.defineProperty(Et,Mt,jt)}:function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt),Et[Mt]=Bt[Tt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Et,Bt){Object.defineProperty(Et,"default",{enumerable:!0,value:Bt})}:function(Et,Bt){Et.default=Bt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Et){if(Et&&Et.__esModule)return Et;var Bt={};if(Et!=null)for(var Tt in Et)Tt!=="default"&&Object.prototype.hasOwnProperty.call(Et,Tt)&&b(Bt,Et,Tt);return dt(Bt,Et),Bt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgDepositResponse=d.MsgDeposit=d.MsgVoteWeightedResponse=d.MsgVoteWeighted=d.MsgVoteResponse=d.MsgVote=d.MsgSubmitProposalResponse=d.MsgSubmitProposal=d.protobufPackage=void 0;const lt=any,ht=coin$1,mt=gov,vt=ct(minimal$2),kt=helpers;d.protobufPackage="cosmos.gov.v1beta1";function Pt(){return{content:void 0,initialDeposit:[],proposer:""}}d.MsgSubmitProposal={encode(Et,Bt=vt.Writer.create()){Et.content!==void 0&<.Any.encode(Et.content,Bt.uint32(10).fork()).ldelim();for(const Tt of Et.initialDeposit)ht.Coin.encode(Tt,Bt.uint32(18).fork()).ldelim();return Et.proposer!==""&&Bt.uint32(26).string(Et.proposer),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.content=lt.Any.decode(Tt,Tt.uint32());break;case 2:jt.initialDeposit.push(ht.Coin.decode(Tt,Tt.uint32()));break;case 3:jt.proposer=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{content:(0,kt.isSet)(Et.content)?lt.Any.fromJSON(Et.content):void 0,initialDeposit:Array.isArray(Et==null?void 0:Et.initialDeposit)?Et.initialDeposit.map(Bt=>ht.Coin.fromJSON(Bt)):[],proposer:(0,kt.isSet)(Et.proposer)?String(Et.proposer):""}},toJSON(Et){const Bt={};return Et.content!==void 0&&(Bt.content=Et.content?lt.Any.toJSON(Et.content):void 0),Et.initialDeposit?Bt.initialDeposit=Et.initialDeposit.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.initialDeposit=[],Et.proposer!==void 0&&(Bt.proposer=Et.proposer),Bt},fromPartial(Et){var Tt;const Bt=Pt();return Bt.content=Et.content!==void 0&&Et.content!==null?lt.Any.fromPartial(Et.content):void 0,Bt.initialDeposit=((Tt=Et.initialDeposit)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt.proposer=Et.proposer??"",Bt}};function Jt(){return{proposalId:kt.Long.UZERO}}d.MsgSubmitProposalResponse={encode(Et,Bt=vt.Writer.create()){return Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Bt},fromPartial(Et){const Bt=Jt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt}};function Zt(){return{proposalId:kt.Long.UZERO,voter:"",option:0}}d.MsgVote={encode(Et,Bt=vt.Writer.create()){return Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.voter!==""&&Bt.uint32(18).string(Et.voter),Et.option!==0&&Bt.uint32(24).int32(Et.option),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.voter=Tt.string();break;case 3:jt.option=Tt.int32();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,voter:(0,kt.isSet)(Et.voter)?String(Et.voter):"",option:(0,kt.isSet)(Et.option)?(0,mt.voteOptionFromJSON)(Et.option):0}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Et.voter!==void 0&&(Bt.voter=Et.voter),Et.option!==void 0&&(Bt.option=(0,mt.voteOptionToJSON)(Et.option)),Bt},fromPartial(Et){const Bt=Zt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt.voter=Et.voter??"",Bt.option=Et.option??0,Bt}};function Rt(){return{}}d.MsgVoteResponse={encode(Et,Bt=vt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Rt()}};function nn(){return{proposalId:kt.Long.UZERO,voter:"",options:[]}}d.MsgVoteWeighted={encode(Et,Bt=vt.Writer.create()){Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.voter!==""&&Bt.uint32(18).string(Et.voter);for(const Tt of Et.options)mt.WeightedVoteOption.encode(Tt,Bt.uint32(26).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.voter=Tt.string();break;case 3:jt.options.push(mt.WeightedVoteOption.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,voter:(0,kt.isSet)(Et.voter)?String(Et.voter):"",options:Array.isArray(Et==null?void 0:Et.options)?Et.options.map(Bt=>mt.WeightedVoteOption.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Et.voter!==void 0&&(Bt.voter=Et.voter),Et.options?Bt.options=Et.options.map(Tt=>Tt?mt.WeightedVoteOption.toJSON(Tt):void 0):Bt.options=[],Bt},fromPartial(Et){var Tt;const Bt=nn();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt.voter=Et.voter??"",Bt.options=((Tt=Et.options)==null?void 0:Tt.map(Mt=>mt.WeightedVoteOption.fromPartial(Mt)))||[],Bt}};function Qt(){return{}}d.MsgVoteWeightedResponse={encode(Et,Bt=vt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Qt()}};function wt(){return{proposalId:kt.Long.UZERO,depositor:"",amount:[]}}d.MsgDeposit={encode(Et,Bt=vt.Writer.create()){Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.depositor!==""&&Bt.uint32(18).string(Et.depositor);for(const Tt of Et.amount)ht.Coin.encode(Tt,Bt.uint32(26).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.depositor=Tt.string();break;case 3:jt.amount.push(ht.Coin.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,depositor:(0,kt.isSet)(Et.depositor)?String(Et.depositor):"",amount:Array.isArray(Et==null?void 0:Et.amount)?Et.amount.map(Bt=>ht.Coin.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Et.depositor!==void 0&&(Bt.depositor=Et.depositor),Et.amount?Bt.amount=Et.amount.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.amount=[],Bt},fromPartial(Et){var Tt;const Bt=wt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt.depositor=Et.depositor??"",Bt.amount=((Tt=Et.amount)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt}};function Nt(){return{}}d.MsgDepositResponse={encode(Et,Bt=vt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Nt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Nt()}};class xt{constructor(Bt){this.rpc=Bt,this.SubmitProposal=this.SubmitProposal.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this)}SubmitProposal(Bt){const Tt=d.MsgSubmitProposal.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",Tt).then(jt=>d.MsgSubmitProposalResponse.decode(new vt.Reader(jt)))}Vote(Bt){const Tt=d.MsgVote.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",Tt).then(jt=>d.MsgVoteResponse.decode(new vt.Reader(jt)))}VoteWeighted(Bt){const Tt=d.MsgVoteWeighted.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",Tt).then(jt=>d.MsgVoteWeightedResponse.decode(new vt.Reader(jt)))}Deposit(Bt){const Tt=d.MsgDeposit.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",Tt).then(jt=>d.MsgDepositResponse.decode(new vt.Reader(jt)))}}d.MsgClientImpl=xt})(tx$9);var tx$8={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,jt,Ht,an){an===void 0&&(an=Ht);var yt=Object.getOwnPropertyDescriptor(jt,Ht);(!yt||("get"in yt?!jt.__esModule:yt.writable||yt.configurable))&&(yt={enumerable:!0,get:function(){return jt[Ht]}}),Object.defineProperty(Mt,an,yt)}:function(Mt,jt,Ht,an){an===void 0&&(an=Ht),Mt[an]=jt[Ht]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,jt){Object.defineProperty(Mt,"default",{enumerable:!0,value:jt})}:function(Mt,jt){Mt.default=jt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var jt={};if(Mt!=null)for(var Ht in Mt)Ht!=="default"&&Object.prototype.hasOwnProperty.call(Mt,Ht)&&b(jt,Mt,Ht);return dt(jt,Mt),jt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUndelegateResponse=d.MsgUndelegate=d.MsgBeginRedelegateResponse=d.MsgBeginRedelegate=d.MsgDelegateResponse=d.MsgDelegate=d.MsgEditValidatorResponse=d.MsgEditValidator=d.MsgCreateValidatorResponse=d.MsgCreateValidator=d.protobufPackage=void 0;const lt=staking,ht=any,mt=coin$1,vt=timestamp,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="cosmos.staking.v1beta1";function Jt(){return{description:void 0,commission:void 0,minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:void 0}}d.MsgCreateValidator={encode(Mt,jt=kt.Writer.create()){return Mt.description!==void 0&<.Description.encode(Mt.description,jt.uint32(10).fork()).ldelim(),Mt.commission!==void 0&<.CommissionRates.encode(Mt.commission,jt.uint32(18).fork()).ldelim(),Mt.minSelfDelegation!==""&&jt.uint32(26).string(Mt.minSelfDelegation),Mt.delegatorAddress!==""&&jt.uint32(34).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&jt.uint32(42).string(Mt.validatorAddress),Mt.pubkey!==void 0&&ht.Any.encode(Mt.pubkey,jt.uint32(50).fork()).ldelim(),Mt.value!==void 0&&mt.Coin.encode(Mt.value,jt.uint32(58).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Jt();for(;Ht.pos>>3){case 1:yt.description=lt.Description.decode(Ht,Ht.uint32());break;case 2:yt.commission=lt.CommissionRates.decode(Ht,Ht.uint32());break;case 3:yt.minSelfDelegation=Ht.string();break;case 4:yt.delegatorAddress=Ht.string();break;case 5:yt.validatorAddress=Ht.string();break;case 6:yt.pubkey=ht.Any.decode(Ht,Ht.uint32());break;case 7:yt.value=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{description:(0,Pt.isSet)(Mt.description)?lt.Description.fromJSON(Mt.description):void 0,commission:(0,Pt.isSet)(Mt.commission)?lt.CommissionRates.fromJSON(Mt.commission):void 0,minSelfDelegation:(0,Pt.isSet)(Mt.minSelfDelegation)?String(Mt.minSelfDelegation):"",delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",pubkey:(0,Pt.isSet)(Mt.pubkey)?ht.Any.fromJSON(Mt.pubkey):void 0,value:(0,Pt.isSet)(Mt.value)?mt.Coin.fromJSON(Mt.value):void 0}},toJSON(Mt){const jt={};return Mt.description!==void 0&&(jt.description=Mt.description?lt.Description.toJSON(Mt.description):void 0),Mt.commission!==void 0&&(jt.commission=Mt.commission?lt.CommissionRates.toJSON(Mt.commission):void 0),Mt.minSelfDelegation!==void 0&&(jt.minSelfDelegation=Mt.minSelfDelegation),Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.pubkey!==void 0&&(jt.pubkey=Mt.pubkey?ht.Any.toJSON(Mt.pubkey):void 0),Mt.value!==void 0&&(jt.value=Mt.value?mt.Coin.toJSON(Mt.value):void 0),jt},fromPartial(Mt){const jt=Jt();return jt.description=Mt.description!==void 0&&Mt.description!==null?lt.Description.fromPartial(Mt.description):void 0,jt.commission=Mt.commission!==void 0&&Mt.commission!==null?lt.CommissionRates.fromPartial(Mt.commission):void 0,jt.minSelfDelegation=Mt.minSelfDelegation??"",jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorAddress=Mt.validatorAddress??"",jt.pubkey=Mt.pubkey!==void 0&&Mt.pubkey!==null?ht.Any.fromPartial(Mt.pubkey):void 0,jt.value=Mt.value!==void 0&&Mt.value!==null?mt.Coin.fromPartial(Mt.value):void 0,jt}};function Zt(){return{}}d.MsgCreateValidatorResponse={encode(Mt,jt=kt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Zt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return Zt()}};function Rt(){return{description:void 0,validatorAddress:"",commissionRate:"",minSelfDelegation:""}}d.MsgEditValidator={encode(Mt,jt=kt.Writer.create()){return Mt.description!==void 0&<.Description.encode(Mt.description,jt.uint32(10).fork()).ldelim(),Mt.validatorAddress!==""&&jt.uint32(18).string(Mt.validatorAddress),Mt.commissionRate!==""&&jt.uint32(26).string(Mt.commissionRate),Mt.minSelfDelegation!==""&&jt.uint32(34).string(Mt.minSelfDelegation),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Rt();for(;Ht.pos>>3){case 1:yt.description=lt.Description.decode(Ht,Ht.uint32());break;case 2:yt.validatorAddress=Ht.string();break;case 3:yt.commissionRate=Ht.string();break;case 4:yt.minSelfDelegation=Ht.string();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{description:(0,Pt.isSet)(Mt.description)?lt.Description.fromJSON(Mt.description):void 0,validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",commissionRate:(0,Pt.isSet)(Mt.commissionRate)?String(Mt.commissionRate):"",minSelfDelegation:(0,Pt.isSet)(Mt.minSelfDelegation)?String(Mt.minSelfDelegation):""}},toJSON(Mt){const jt={};return Mt.description!==void 0&&(jt.description=Mt.description?lt.Description.toJSON(Mt.description):void 0),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.commissionRate!==void 0&&(jt.commissionRate=Mt.commissionRate),Mt.minSelfDelegation!==void 0&&(jt.minSelfDelegation=Mt.minSelfDelegation),jt},fromPartial(Mt){const jt=Rt();return jt.description=Mt.description!==void 0&&Mt.description!==null?lt.Description.fromPartial(Mt.description):void 0,jt.validatorAddress=Mt.validatorAddress??"",jt.commissionRate=Mt.commissionRate??"",jt.minSelfDelegation=Mt.minSelfDelegation??"",jt}};function nn(){return{}}d.MsgEditValidatorResponse={encode(Mt,jt=kt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=nn();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return nn()}};function Qt(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}d.MsgDelegate={encode(Mt,jt=kt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&jt.uint32(18).string(Mt.validatorAddress),Mt.amount!==void 0&&mt.Coin.encode(Mt.amount,jt.uint32(26).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Qt();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.validatorAddress=Ht.string();break;case 3:yt.amount=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",amount:(0,Pt.isSet)(Mt.amount)?mt.Coin.fromJSON(Mt.amount):void 0}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.amount!==void 0&&(jt.amount=Mt.amount?mt.Coin.toJSON(Mt.amount):void 0),jt},fromPartial(Mt){const jt=Qt();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorAddress=Mt.validatorAddress??"",jt.amount=Mt.amount!==void 0&&Mt.amount!==null?mt.Coin.fromPartial(Mt.amount):void 0,jt}};function wt(){return{}}d.MsgDelegateResponse={encode(Mt,jt=kt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=wt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return wt()}};function Nt(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:void 0}}d.MsgBeginRedelegate={encode(Mt,jt=kt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.validatorSrcAddress!==""&&jt.uint32(18).string(Mt.validatorSrcAddress),Mt.validatorDstAddress!==""&&jt.uint32(26).string(Mt.validatorDstAddress),Mt.amount!==void 0&&mt.Coin.encode(Mt.amount,jt.uint32(34).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Nt();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.validatorSrcAddress=Ht.string();break;case 3:yt.validatorDstAddress=Ht.string();break;case 4:yt.amount=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorSrcAddress:(0,Pt.isSet)(Mt.validatorSrcAddress)?String(Mt.validatorSrcAddress):"",validatorDstAddress:(0,Pt.isSet)(Mt.validatorDstAddress)?String(Mt.validatorDstAddress):"",amount:(0,Pt.isSet)(Mt.amount)?mt.Coin.fromJSON(Mt.amount):void 0}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorSrcAddress!==void 0&&(jt.validatorSrcAddress=Mt.validatorSrcAddress),Mt.validatorDstAddress!==void 0&&(jt.validatorDstAddress=Mt.validatorDstAddress),Mt.amount!==void 0&&(jt.amount=Mt.amount?mt.Coin.toJSON(Mt.amount):void 0),jt},fromPartial(Mt){const jt=Nt();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorSrcAddress=Mt.validatorSrcAddress??"",jt.validatorDstAddress=Mt.validatorDstAddress??"",jt.amount=Mt.amount!==void 0&&Mt.amount!==null?mt.Coin.fromPartial(Mt.amount):void 0,jt}};function xt(){return{completionTime:void 0}}d.MsgBeginRedelegateResponse={encode(Mt,jt=kt.Writer.create()){return Mt.completionTime!==void 0&&vt.Timestamp.encode(Mt.completionTime,jt.uint32(10).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=xt();for(;Ht.pos>>3){case 1:yt.completionTime=vt.Timestamp.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{completionTime:(0,Pt.isSet)(Mt.completionTime)?(0,Pt.fromJsonTimestamp)(Mt.completionTime):void 0}},toJSON(Mt){const jt={};return Mt.completionTime!==void 0&&(jt.completionTime=(0,Pt.fromTimestamp)(Mt.completionTime).toISOString()),jt},fromPartial(Mt){const jt=xt();return jt.completionTime=Mt.completionTime!==void 0&&Mt.completionTime!==null?vt.Timestamp.fromPartial(Mt.completionTime):void 0,jt}};function Et(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}d.MsgUndelegate={encode(Mt,jt=kt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&jt.uint32(18).string(Mt.validatorAddress),Mt.amount!==void 0&&mt.Coin.encode(Mt.amount,jt.uint32(26).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Et();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.validatorAddress=Ht.string();break;case 3:yt.amount=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",amount:(0,Pt.isSet)(Mt.amount)?mt.Coin.fromJSON(Mt.amount):void 0}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.amount!==void 0&&(jt.amount=Mt.amount?mt.Coin.toJSON(Mt.amount):void 0),jt},fromPartial(Mt){const jt=Et();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorAddress=Mt.validatorAddress??"",jt.amount=Mt.amount!==void 0&&Mt.amount!==null?mt.Coin.fromPartial(Mt.amount):void 0,jt}};function Bt(){return{completionTime:void 0}}d.MsgUndelegateResponse={encode(Mt,jt=kt.Writer.create()){return Mt.completionTime!==void 0&&vt.Timestamp.encode(Mt.completionTime,jt.uint32(10).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Bt();for(;Ht.pos>>3){case 1:yt.completionTime=vt.Timestamp.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{completionTime:(0,Pt.isSet)(Mt.completionTime)?(0,Pt.fromJsonTimestamp)(Mt.completionTime):void 0}},toJSON(Mt){const jt={};return Mt.completionTime!==void 0&&(jt.completionTime=(0,Pt.fromTimestamp)(Mt.completionTime).toISOString()),jt},fromPartial(Mt){const jt=Bt();return jt.completionTime=Mt.completionTime!==void 0&&Mt.completionTime!==null?vt.Timestamp.fromPartial(Mt.completionTime):void 0,jt}};class Tt{constructor(jt){this.rpc=jt,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this)}CreateValidator(jt){const Ht=d.MsgCreateValidator.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",Ht).then(yt=>d.MsgCreateValidatorResponse.decode(new kt.Reader(yt)))}EditValidator(jt){const Ht=d.MsgEditValidator.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",Ht).then(yt=>d.MsgEditValidatorResponse.decode(new kt.Reader(yt)))}Delegate(jt){const Ht=d.MsgDelegate.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",Ht).then(yt=>d.MsgDelegateResponse.decode(new kt.Reader(yt)))}BeginRedelegate(jt){const Ht=d.MsgBeginRedelegate.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",Ht).then(yt=>d.MsgBeginRedelegateResponse.decode(new kt.Reader(yt)))}Undelegate(jt){const Ht=d.MsgUndelegate.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",Ht).then(yt=>d.MsgUndelegateResponse.decode(new kt.Reader(yt)))}}d.MsgClientImpl=Tt})(tx$8);var signing={},multisig={},__createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding(b,d,dt);return __setModuleDefault(b,d),b};Object.defineProperty(multisig,"__esModule",{value:!0});multisig.CompactBitArray=multisig.MultiSignature=multisig.protobufPackage=void 0;const _m0=__importStar(minimal$2),helpers_1=helpers;multisig.protobufPackage="cosmos.crypto.multisig.v1beta1";function createBaseMultiSignature(){return{signatures:[]}}multisig.MultiSignature={encode(d,b=_m0.Writer.create()){for(const dt of d.signatures)b.uint32(10).bytes(dt);return b},decode(d,b){const dt=d instanceof _m0.Reader?d:new _m0.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMultiSignature();for(;dt.pos>>3){case 1:lt.signatures.push(dt.bytes());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{signatures:Array.isArray(d==null?void 0:d.signatures)?d.signatures.map(b=>(0,helpers_1.bytesFromBase64)(b)):[]}},toJSON(d){const b={};return d.signatures?b.signatures=d.signatures.map(dt=>(0,helpers_1.base64FromBytes)(dt!==void 0?dt:new Uint8Array)):b.signatures=[],b},fromPartial(d){var dt;const b=createBaseMultiSignature();return b.signatures=((dt=d.signatures)==null?void 0:dt.map(ct=>ct))||[],b}};function createBaseCompactBitArray(){return{extraBitsStored:0,elems:new Uint8Array}}multisig.CompactBitArray={encode(d,b=_m0.Writer.create()){return d.extraBitsStored!==0&&b.uint32(8).uint32(d.extraBitsStored),d.elems.length!==0&&b.uint32(18).bytes(d.elems),b},decode(d,b){const dt=d instanceof _m0.Reader?d:new _m0.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseCompactBitArray();for(;dt.pos>>3){case 1:lt.extraBitsStored=dt.uint32();break;case 2:lt.elems=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{extraBitsStored:(0,helpers_1.isSet)(d.extraBitsStored)?Number(d.extraBitsStored):0,elems:(0,helpers_1.isSet)(d.elems)?(0,helpers_1.bytesFromBase64)(d.elems):new Uint8Array}},toJSON(d){const b={};return d.extraBitsStored!==void 0&&(b.extraBitsStored=Math.round(d.extraBitsStored)),d.elems!==void 0&&(b.elems=(0,helpers_1.base64FromBytes)(d.elems!==void 0?d.elems:new Uint8Array)),b},fromPartial(d){const b=createBaseCompactBitArray();return b.extraBitsStored=d.extraBitsStored??0,b.elems=d.elems??new Uint8Array,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et);var Tt=Object.getOwnPropertyDescriptor(xt,Et);(!Tt||("get"in Tt?!xt.__esModule:Tt.writable||Tt.configurable))&&(Tt={enumerable:!0,get:function(){return xt[Et]}}),Object.defineProperty(Nt,Bt,Tt)}:function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et),Nt[Bt]=xt[Et]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,xt){Object.defineProperty(Nt,"default",{enumerable:!0,value:xt})}:function(Nt,xt){Nt.default=xt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var xt={};if(Nt!=null)for(var Et in Nt)Et!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Et)&&b(xt,Nt,Et);return dt(xt,Nt),xt};Object.defineProperty(d,"__esModule",{value:!0}),d.SignatureDescriptor_Data_Multi=d.SignatureDescriptor_Data_Single=d.SignatureDescriptor_Data=d.SignatureDescriptor=d.SignatureDescriptors=d.signModeToJSON=d.signModeFromJSON=d.SignMode=d.protobufPackage=void 0;const lt=multisig,ht=any,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.tx.signing.v1beta1";var kt;(function(Nt){Nt[Nt.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",Nt[Nt.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",Nt[Nt.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",Nt[Nt.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",Nt[Nt.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",Nt[Nt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kt=d.SignMode||(d.SignMode={}));function Pt(Nt){switch(Nt){case 0:case"SIGN_MODE_UNSPECIFIED":return kt.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return kt.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return kt.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return kt.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return kt.SIGN_MODE_EIP_191;case-1:case"UNRECOGNIZED":default:return kt.UNRECOGNIZED}}d.signModeFromJSON=Pt;function Jt(Nt){switch(Nt){case kt.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case kt.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case kt.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case kt.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case kt.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case kt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.signModeToJSON=Jt;function Zt(){return{signatures:[]}}d.SignatureDescriptors={encode(Nt,xt=mt.Writer.create()){for(const Et of Nt.signatures)d.SignatureDescriptor.encode(Et,xt.uint32(10).fork()).ldelim();return xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Zt();for(;Et.pos>>3){case 1:Tt.signatures.push(d.SignatureDescriptor.decode(Et,Et.uint32()));break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{signatures:Array.isArray(Nt==null?void 0:Nt.signatures)?Nt.signatures.map(xt=>d.SignatureDescriptor.fromJSON(xt)):[]}},toJSON(Nt){const xt={};return Nt.signatures?xt.signatures=Nt.signatures.map(Et=>Et?d.SignatureDescriptor.toJSON(Et):void 0):xt.signatures=[],xt},fromPartial(Nt){var Et;const xt=Zt();return xt.signatures=((Et=Nt.signatures)==null?void 0:Et.map(Bt=>d.SignatureDescriptor.fromPartial(Bt)))||[],xt}};function Rt(){return{publicKey:void 0,data:void 0,sequence:vt.Long.UZERO}}d.SignatureDescriptor={encode(Nt,xt=mt.Writer.create()){return Nt.publicKey!==void 0&&ht.Any.encode(Nt.publicKey,xt.uint32(10).fork()).ldelim(),Nt.data!==void 0&&d.SignatureDescriptor_Data.encode(Nt.data,xt.uint32(18).fork()).ldelim(),Nt.sequence.isZero()||xt.uint32(24).uint64(Nt.sequence),xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Rt();for(;Et.pos>>3){case 1:Tt.publicKey=ht.Any.decode(Et,Et.uint32());break;case 2:Tt.data=d.SignatureDescriptor_Data.decode(Et,Et.uint32());break;case 3:Tt.sequence=Et.uint64();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{publicKey:(0,vt.isSet)(Nt.publicKey)?ht.Any.fromJSON(Nt.publicKey):void 0,data:(0,vt.isSet)(Nt.data)?d.SignatureDescriptor_Data.fromJSON(Nt.data):void 0,sequence:(0,vt.isSet)(Nt.sequence)?vt.Long.fromValue(Nt.sequence):vt.Long.UZERO}},toJSON(Nt){const xt={};return Nt.publicKey!==void 0&&(xt.publicKey=Nt.publicKey?ht.Any.toJSON(Nt.publicKey):void 0),Nt.data!==void 0&&(xt.data=Nt.data?d.SignatureDescriptor_Data.toJSON(Nt.data):void 0),Nt.sequence!==void 0&&(xt.sequence=(Nt.sequence||vt.Long.UZERO).toString()),xt},fromPartial(Nt){const xt=Rt();return xt.publicKey=Nt.publicKey!==void 0&&Nt.publicKey!==null?ht.Any.fromPartial(Nt.publicKey):void 0,xt.data=Nt.data!==void 0&&Nt.data!==null?d.SignatureDescriptor_Data.fromPartial(Nt.data):void 0,xt.sequence=Nt.sequence!==void 0&&Nt.sequence!==null?vt.Long.fromValue(Nt.sequence):vt.Long.UZERO,xt}};function nn(){return{single:void 0,multi:void 0}}d.SignatureDescriptor_Data={encode(Nt,xt=mt.Writer.create()){return Nt.single!==void 0&&d.SignatureDescriptor_Data_Single.encode(Nt.single,xt.uint32(10).fork()).ldelim(),Nt.multi!==void 0&&d.SignatureDescriptor_Data_Multi.encode(Nt.multi,xt.uint32(18).fork()).ldelim(),xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=nn();for(;Et.pos>>3){case 1:Tt.single=d.SignatureDescriptor_Data_Single.decode(Et,Et.uint32());break;case 2:Tt.multi=d.SignatureDescriptor_Data_Multi.decode(Et,Et.uint32());break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{single:(0,vt.isSet)(Nt.single)?d.SignatureDescriptor_Data_Single.fromJSON(Nt.single):void 0,multi:(0,vt.isSet)(Nt.multi)?d.SignatureDescriptor_Data_Multi.fromJSON(Nt.multi):void 0}},toJSON(Nt){const xt={};return Nt.single!==void 0&&(xt.single=Nt.single?d.SignatureDescriptor_Data_Single.toJSON(Nt.single):void 0),Nt.multi!==void 0&&(xt.multi=Nt.multi?d.SignatureDescriptor_Data_Multi.toJSON(Nt.multi):void 0),xt},fromPartial(Nt){const xt=nn();return xt.single=Nt.single!==void 0&&Nt.single!==null?d.SignatureDescriptor_Data_Single.fromPartial(Nt.single):void 0,xt.multi=Nt.multi!==void 0&&Nt.multi!==null?d.SignatureDescriptor_Data_Multi.fromPartial(Nt.multi):void 0,xt}};function Qt(){return{mode:0,signature:new Uint8Array}}d.SignatureDescriptor_Data_Single={encode(Nt,xt=mt.Writer.create()){return Nt.mode!==0&&xt.uint32(8).int32(Nt.mode),Nt.signature.length!==0&&xt.uint32(18).bytes(Nt.signature),xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Qt();for(;Et.pos>>3){case 1:Tt.mode=Et.int32();break;case 2:Tt.signature=Et.bytes();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{mode:(0,vt.isSet)(Nt.mode)?Pt(Nt.mode):0,signature:(0,vt.isSet)(Nt.signature)?(0,vt.bytesFromBase64)(Nt.signature):new Uint8Array}},toJSON(Nt){const xt={};return Nt.mode!==void 0&&(xt.mode=Jt(Nt.mode)),Nt.signature!==void 0&&(xt.signature=(0,vt.base64FromBytes)(Nt.signature!==void 0?Nt.signature:new Uint8Array)),xt},fromPartial(Nt){const xt=Qt();return xt.mode=Nt.mode??0,xt.signature=Nt.signature??new Uint8Array,xt}};function wt(){return{bitarray:void 0,signatures:[]}}d.SignatureDescriptor_Data_Multi={encode(Nt,xt=mt.Writer.create()){Nt.bitarray!==void 0&<.CompactBitArray.encode(Nt.bitarray,xt.uint32(10).fork()).ldelim();for(const Et of Nt.signatures)d.SignatureDescriptor_Data.encode(Et,xt.uint32(18).fork()).ldelim();return xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=wt();for(;Et.pos>>3){case 1:Tt.bitarray=lt.CompactBitArray.decode(Et,Et.uint32());break;case 2:Tt.signatures.push(d.SignatureDescriptor_Data.decode(Et,Et.uint32()));break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{bitarray:(0,vt.isSet)(Nt.bitarray)?lt.CompactBitArray.fromJSON(Nt.bitarray):void 0,signatures:Array.isArray(Nt==null?void 0:Nt.signatures)?Nt.signatures.map(xt=>d.SignatureDescriptor_Data.fromJSON(xt)):[]}},toJSON(Nt){const xt={};return Nt.bitarray!==void 0&&(xt.bitarray=Nt.bitarray?lt.CompactBitArray.toJSON(Nt.bitarray):void 0),Nt.signatures?xt.signatures=Nt.signatures.map(Et=>Et?d.SignatureDescriptor_Data.toJSON(Et):void 0):xt.signatures=[],xt},fromPartial(Nt){var Et;const xt=wt();return xt.bitarray=Nt.bitarray!==void 0&&Nt.bitarray!==null?lt.CompactBitArray.fromPartial(Nt.bitarray):void 0,xt.signatures=((Et=Nt.signatures)==null?void 0:Et.map(Bt=>d.SignatureDescriptor_Data.fromPartial(Bt)))||[],xt}}})(signing);var tx$7={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Tt,Mt,jt,Ht){Ht===void 0&&(Ht=jt);var an=Object.getOwnPropertyDescriptor(Mt,jt);(!an||("get"in an?!Mt.__esModule:an.writable||an.configurable))&&(an={enumerable:!0,get:function(){return Mt[jt]}}),Object.defineProperty(Tt,Ht,an)}:function(Tt,Mt,jt,Ht){Ht===void 0&&(Ht=jt),Tt[Ht]=Mt[jt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Tt,Mt){Object.defineProperty(Tt,"default",{enumerable:!0,value:Mt})}:function(Tt,Mt){Tt.default=Mt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Tt){if(Tt&&Tt.__esModule)return Tt;var Mt={};if(Tt!=null)for(var jt in Tt)jt!=="default"&&Object.prototype.hasOwnProperty.call(Tt,jt)&&b(Mt,Tt,jt);return dt(Mt,Tt),Mt};Object.defineProperty(d,"__esModule",{value:!0}),d.Fee=d.ModeInfo_Multi=d.ModeInfo_Single=d.ModeInfo=d.SignerInfo=d.AuthInfo=d.TxBody=d.SignDoc=d.TxRaw=d.Tx=d.protobufPackage=void 0;const lt=any,ht=signing,mt=multisig,vt=coin$1,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="cosmos.tx.v1beta1";function Jt(){return{body:void 0,authInfo:void 0,signatures:[]}}d.Tx={encode(Tt,Mt=kt.Writer.create()){Tt.body!==void 0&&d.TxBody.encode(Tt.body,Mt.uint32(10).fork()).ldelim(),Tt.authInfo!==void 0&&d.AuthInfo.encode(Tt.authInfo,Mt.uint32(18).fork()).ldelim();for(const jt of Tt.signatures)Mt.uint32(26).bytes(jt);return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Jt();for(;jt.pos>>3){case 1:an.body=d.TxBody.decode(jt,jt.uint32());break;case 2:an.authInfo=d.AuthInfo.decode(jt,jt.uint32());break;case 3:an.signatures.push(jt.bytes());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{body:(0,Pt.isSet)(Tt.body)?d.TxBody.fromJSON(Tt.body):void 0,authInfo:(0,Pt.isSet)(Tt.authInfo)?d.AuthInfo.fromJSON(Tt.authInfo):void 0,signatures:Array.isArray(Tt==null?void 0:Tt.signatures)?Tt.signatures.map(Mt=>(0,Pt.bytesFromBase64)(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.body!==void 0&&(Mt.body=Tt.body?d.TxBody.toJSON(Tt.body):void 0),Tt.authInfo!==void 0&&(Mt.authInfo=Tt.authInfo?d.AuthInfo.toJSON(Tt.authInfo):void 0),Tt.signatures?Mt.signatures=Tt.signatures.map(jt=>(0,Pt.base64FromBytes)(jt!==void 0?jt:new Uint8Array)):Mt.signatures=[],Mt},fromPartial(Tt){var jt;const Mt=Jt();return Mt.body=Tt.body!==void 0&&Tt.body!==null?d.TxBody.fromPartial(Tt.body):void 0,Mt.authInfo=Tt.authInfo!==void 0&&Tt.authInfo!==null?d.AuthInfo.fromPartial(Tt.authInfo):void 0,Mt.signatures=((jt=Tt.signatures)==null?void 0:jt.map(Ht=>Ht))||[],Mt}};function Zt(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}d.TxRaw={encode(Tt,Mt=kt.Writer.create()){Tt.bodyBytes.length!==0&&Mt.uint32(10).bytes(Tt.bodyBytes),Tt.authInfoBytes.length!==0&&Mt.uint32(18).bytes(Tt.authInfoBytes);for(const jt of Tt.signatures)Mt.uint32(26).bytes(jt);return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Zt();for(;jt.pos>>3){case 1:an.bodyBytes=jt.bytes();break;case 2:an.authInfoBytes=jt.bytes();break;case 3:an.signatures.push(jt.bytes());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{bodyBytes:(0,Pt.isSet)(Tt.bodyBytes)?(0,Pt.bytesFromBase64)(Tt.bodyBytes):new Uint8Array,authInfoBytes:(0,Pt.isSet)(Tt.authInfoBytes)?(0,Pt.bytesFromBase64)(Tt.authInfoBytes):new Uint8Array,signatures:Array.isArray(Tt==null?void 0:Tt.signatures)?Tt.signatures.map(Mt=>(0,Pt.bytesFromBase64)(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.bodyBytes!==void 0&&(Mt.bodyBytes=(0,Pt.base64FromBytes)(Tt.bodyBytes!==void 0?Tt.bodyBytes:new Uint8Array)),Tt.authInfoBytes!==void 0&&(Mt.authInfoBytes=(0,Pt.base64FromBytes)(Tt.authInfoBytes!==void 0?Tt.authInfoBytes:new Uint8Array)),Tt.signatures?Mt.signatures=Tt.signatures.map(jt=>(0,Pt.base64FromBytes)(jt!==void 0?jt:new Uint8Array)):Mt.signatures=[],Mt},fromPartial(Tt){var jt;const Mt=Zt();return Mt.bodyBytes=Tt.bodyBytes??new Uint8Array,Mt.authInfoBytes=Tt.authInfoBytes??new Uint8Array,Mt.signatures=((jt=Tt.signatures)==null?void 0:jt.map(Ht=>Ht))||[],Mt}};function Rt(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:Pt.Long.UZERO}}d.SignDoc={encode(Tt,Mt=kt.Writer.create()){return Tt.bodyBytes.length!==0&&Mt.uint32(10).bytes(Tt.bodyBytes),Tt.authInfoBytes.length!==0&&Mt.uint32(18).bytes(Tt.authInfoBytes),Tt.chainId!==""&&Mt.uint32(26).string(Tt.chainId),Tt.accountNumber.isZero()||Mt.uint32(32).uint64(Tt.accountNumber),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Rt();for(;jt.pos>>3){case 1:an.bodyBytes=jt.bytes();break;case 2:an.authInfoBytes=jt.bytes();break;case 3:an.chainId=jt.string();break;case 4:an.accountNumber=jt.uint64();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{bodyBytes:(0,Pt.isSet)(Tt.bodyBytes)?(0,Pt.bytesFromBase64)(Tt.bodyBytes):new Uint8Array,authInfoBytes:(0,Pt.isSet)(Tt.authInfoBytes)?(0,Pt.bytesFromBase64)(Tt.authInfoBytes):new Uint8Array,chainId:(0,Pt.isSet)(Tt.chainId)?String(Tt.chainId):"",accountNumber:(0,Pt.isSet)(Tt.accountNumber)?Pt.Long.fromValue(Tt.accountNumber):Pt.Long.UZERO}},toJSON(Tt){const Mt={};return Tt.bodyBytes!==void 0&&(Mt.bodyBytes=(0,Pt.base64FromBytes)(Tt.bodyBytes!==void 0?Tt.bodyBytes:new Uint8Array)),Tt.authInfoBytes!==void 0&&(Mt.authInfoBytes=(0,Pt.base64FromBytes)(Tt.authInfoBytes!==void 0?Tt.authInfoBytes:new Uint8Array)),Tt.chainId!==void 0&&(Mt.chainId=Tt.chainId),Tt.accountNumber!==void 0&&(Mt.accountNumber=(Tt.accountNumber||Pt.Long.UZERO).toString()),Mt},fromPartial(Tt){const Mt=Rt();return Mt.bodyBytes=Tt.bodyBytes??new Uint8Array,Mt.authInfoBytes=Tt.authInfoBytes??new Uint8Array,Mt.chainId=Tt.chainId??"",Mt.accountNumber=Tt.accountNumber!==void 0&&Tt.accountNumber!==null?Pt.Long.fromValue(Tt.accountNumber):Pt.Long.UZERO,Mt}};function nn(){return{messages:[],memo:"",timeoutHeight:Pt.Long.UZERO,extensionOptions:[],nonCriticalExtensionOptions:[]}}d.TxBody={encode(Tt,Mt=kt.Writer.create()){for(const jt of Tt.messages)lt.Any.encode(jt,Mt.uint32(10).fork()).ldelim();Tt.memo!==""&&Mt.uint32(18).string(Tt.memo),Tt.timeoutHeight.isZero()||Mt.uint32(24).uint64(Tt.timeoutHeight);for(const jt of Tt.extensionOptions)lt.Any.encode(jt,Mt.uint32(8186).fork()).ldelim();for(const jt of Tt.nonCriticalExtensionOptions)lt.Any.encode(jt,Mt.uint32(16378).fork()).ldelim();return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=nn();for(;jt.pos>>3){case 1:an.messages.push(lt.Any.decode(jt,jt.uint32()));break;case 2:an.memo=jt.string();break;case 3:an.timeoutHeight=jt.uint64();break;case 1023:an.extensionOptions.push(lt.Any.decode(jt,jt.uint32()));break;case 2047:an.nonCriticalExtensionOptions.push(lt.Any.decode(jt,jt.uint32()));break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{messages:Array.isArray(Tt==null?void 0:Tt.messages)?Tt.messages.map(Mt=>lt.Any.fromJSON(Mt)):[],memo:(0,Pt.isSet)(Tt.memo)?String(Tt.memo):"",timeoutHeight:(0,Pt.isSet)(Tt.timeoutHeight)?Pt.Long.fromValue(Tt.timeoutHeight):Pt.Long.UZERO,extensionOptions:Array.isArray(Tt==null?void 0:Tt.extensionOptions)?Tt.extensionOptions.map(Mt=>lt.Any.fromJSON(Mt)):[],nonCriticalExtensionOptions:Array.isArray(Tt==null?void 0:Tt.nonCriticalExtensionOptions)?Tt.nonCriticalExtensionOptions.map(Mt=>lt.Any.fromJSON(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.messages?Mt.messages=Tt.messages.map(jt=>jt?lt.Any.toJSON(jt):void 0):Mt.messages=[],Tt.memo!==void 0&&(Mt.memo=Tt.memo),Tt.timeoutHeight!==void 0&&(Mt.timeoutHeight=(Tt.timeoutHeight||Pt.Long.UZERO).toString()),Tt.extensionOptions?Mt.extensionOptions=Tt.extensionOptions.map(jt=>jt?lt.Any.toJSON(jt):void 0):Mt.extensionOptions=[],Tt.nonCriticalExtensionOptions?Mt.nonCriticalExtensionOptions=Tt.nonCriticalExtensionOptions.map(jt=>jt?lt.Any.toJSON(jt):void 0):Mt.nonCriticalExtensionOptions=[],Mt},fromPartial(Tt){var jt,Ht,an;const Mt=nn();return Mt.messages=((jt=Tt.messages)==null?void 0:jt.map(yt=>lt.Any.fromPartial(yt)))||[],Mt.memo=Tt.memo??"",Mt.timeoutHeight=Tt.timeoutHeight!==void 0&&Tt.timeoutHeight!==null?Pt.Long.fromValue(Tt.timeoutHeight):Pt.Long.UZERO,Mt.extensionOptions=((Ht=Tt.extensionOptions)==null?void 0:Ht.map(yt=>lt.Any.fromPartial(yt)))||[],Mt.nonCriticalExtensionOptions=((an=Tt.nonCriticalExtensionOptions)==null?void 0:an.map(yt=>lt.Any.fromPartial(yt)))||[],Mt}};function Qt(){return{signerInfos:[],fee:void 0}}d.AuthInfo={encode(Tt,Mt=kt.Writer.create()){for(const jt of Tt.signerInfos)d.SignerInfo.encode(jt,Mt.uint32(10).fork()).ldelim();return Tt.fee!==void 0&&d.Fee.encode(Tt.fee,Mt.uint32(18).fork()).ldelim(),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Qt();for(;jt.pos>>3){case 1:an.signerInfos.push(d.SignerInfo.decode(jt,jt.uint32()));break;case 2:an.fee=d.Fee.decode(jt,jt.uint32());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{signerInfos:Array.isArray(Tt==null?void 0:Tt.signerInfos)?Tt.signerInfos.map(Mt=>d.SignerInfo.fromJSON(Mt)):[],fee:(0,Pt.isSet)(Tt.fee)?d.Fee.fromJSON(Tt.fee):void 0}},toJSON(Tt){const Mt={};return Tt.signerInfos?Mt.signerInfos=Tt.signerInfos.map(jt=>jt?d.SignerInfo.toJSON(jt):void 0):Mt.signerInfos=[],Tt.fee!==void 0&&(Mt.fee=Tt.fee?d.Fee.toJSON(Tt.fee):void 0),Mt},fromPartial(Tt){var jt;const Mt=Qt();return Mt.signerInfos=((jt=Tt.signerInfos)==null?void 0:jt.map(Ht=>d.SignerInfo.fromPartial(Ht)))||[],Mt.fee=Tt.fee!==void 0&&Tt.fee!==null?d.Fee.fromPartial(Tt.fee):void 0,Mt}};function wt(){return{publicKey:void 0,modeInfo:void 0,sequence:Pt.Long.UZERO}}d.SignerInfo={encode(Tt,Mt=kt.Writer.create()){return Tt.publicKey!==void 0&<.Any.encode(Tt.publicKey,Mt.uint32(10).fork()).ldelim(),Tt.modeInfo!==void 0&&d.ModeInfo.encode(Tt.modeInfo,Mt.uint32(18).fork()).ldelim(),Tt.sequence.isZero()||Mt.uint32(24).uint64(Tt.sequence),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=wt();for(;jt.pos>>3){case 1:an.publicKey=lt.Any.decode(jt,jt.uint32());break;case 2:an.modeInfo=d.ModeInfo.decode(jt,jt.uint32());break;case 3:an.sequence=jt.uint64();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{publicKey:(0,Pt.isSet)(Tt.publicKey)?lt.Any.fromJSON(Tt.publicKey):void 0,modeInfo:(0,Pt.isSet)(Tt.modeInfo)?d.ModeInfo.fromJSON(Tt.modeInfo):void 0,sequence:(0,Pt.isSet)(Tt.sequence)?Pt.Long.fromValue(Tt.sequence):Pt.Long.UZERO}},toJSON(Tt){const Mt={};return Tt.publicKey!==void 0&&(Mt.publicKey=Tt.publicKey?lt.Any.toJSON(Tt.publicKey):void 0),Tt.modeInfo!==void 0&&(Mt.modeInfo=Tt.modeInfo?d.ModeInfo.toJSON(Tt.modeInfo):void 0),Tt.sequence!==void 0&&(Mt.sequence=(Tt.sequence||Pt.Long.UZERO).toString()),Mt},fromPartial(Tt){const Mt=wt();return Mt.publicKey=Tt.publicKey!==void 0&&Tt.publicKey!==null?lt.Any.fromPartial(Tt.publicKey):void 0,Mt.modeInfo=Tt.modeInfo!==void 0&&Tt.modeInfo!==null?d.ModeInfo.fromPartial(Tt.modeInfo):void 0,Mt.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?Pt.Long.fromValue(Tt.sequence):Pt.Long.UZERO,Mt}};function Nt(){return{single:void 0,multi:void 0}}d.ModeInfo={encode(Tt,Mt=kt.Writer.create()){return Tt.single!==void 0&&d.ModeInfo_Single.encode(Tt.single,Mt.uint32(10).fork()).ldelim(),Tt.multi!==void 0&&d.ModeInfo_Multi.encode(Tt.multi,Mt.uint32(18).fork()).ldelim(),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Nt();for(;jt.pos>>3){case 1:an.single=d.ModeInfo_Single.decode(jt,jt.uint32());break;case 2:an.multi=d.ModeInfo_Multi.decode(jt,jt.uint32());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{single:(0,Pt.isSet)(Tt.single)?d.ModeInfo_Single.fromJSON(Tt.single):void 0,multi:(0,Pt.isSet)(Tt.multi)?d.ModeInfo_Multi.fromJSON(Tt.multi):void 0}},toJSON(Tt){const Mt={};return Tt.single!==void 0&&(Mt.single=Tt.single?d.ModeInfo_Single.toJSON(Tt.single):void 0),Tt.multi!==void 0&&(Mt.multi=Tt.multi?d.ModeInfo_Multi.toJSON(Tt.multi):void 0),Mt},fromPartial(Tt){const Mt=Nt();return Mt.single=Tt.single!==void 0&&Tt.single!==null?d.ModeInfo_Single.fromPartial(Tt.single):void 0,Mt.multi=Tt.multi!==void 0&&Tt.multi!==null?d.ModeInfo_Multi.fromPartial(Tt.multi):void 0,Mt}};function xt(){return{mode:0}}d.ModeInfo_Single={encode(Tt,Mt=kt.Writer.create()){return Tt.mode!==0&&Mt.uint32(8).int32(Tt.mode),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=xt();for(;jt.pos>>3){case 1:an.mode=jt.int32();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{mode:(0,Pt.isSet)(Tt.mode)?(0,ht.signModeFromJSON)(Tt.mode):0}},toJSON(Tt){const Mt={};return Tt.mode!==void 0&&(Mt.mode=(0,ht.signModeToJSON)(Tt.mode)),Mt},fromPartial(Tt){const Mt=xt();return Mt.mode=Tt.mode??0,Mt}};function Et(){return{bitarray:void 0,modeInfos:[]}}d.ModeInfo_Multi={encode(Tt,Mt=kt.Writer.create()){Tt.bitarray!==void 0&&mt.CompactBitArray.encode(Tt.bitarray,Mt.uint32(10).fork()).ldelim();for(const jt of Tt.modeInfos)d.ModeInfo.encode(jt,Mt.uint32(18).fork()).ldelim();return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Et();for(;jt.pos>>3){case 1:an.bitarray=mt.CompactBitArray.decode(jt,jt.uint32());break;case 2:an.modeInfos.push(d.ModeInfo.decode(jt,jt.uint32()));break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{bitarray:(0,Pt.isSet)(Tt.bitarray)?mt.CompactBitArray.fromJSON(Tt.bitarray):void 0,modeInfos:Array.isArray(Tt==null?void 0:Tt.modeInfos)?Tt.modeInfos.map(Mt=>d.ModeInfo.fromJSON(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.bitarray!==void 0&&(Mt.bitarray=Tt.bitarray?mt.CompactBitArray.toJSON(Tt.bitarray):void 0),Tt.modeInfos?Mt.modeInfos=Tt.modeInfos.map(jt=>jt?d.ModeInfo.toJSON(jt):void 0):Mt.modeInfos=[],Mt},fromPartial(Tt){var jt;const Mt=Et();return Mt.bitarray=Tt.bitarray!==void 0&&Tt.bitarray!==null?mt.CompactBitArray.fromPartial(Tt.bitarray):void 0,Mt.modeInfos=((jt=Tt.modeInfos)==null?void 0:jt.map(Ht=>d.ModeInfo.fromPartial(Ht)))||[],Mt}};function Bt(){return{amount:[],gasLimit:Pt.Long.UZERO,payer:"",granter:""}}d.Fee={encode(Tt,Mt=kt.Writer.create()){for(const jt of Tt.amount)vt.Coin.encode(jt,Mt.uint32(10).fork()).ldelim();return Tt.gasLimit.isZero()||Mt.uint32(16).uint64(Tt.gasLimit),Tt.payer!==""&&Mt.uint32(26).string(Tt.payer),Tt.granter!==""&&Mt.uint32(34).string(Tt.granter),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Bt();for(;jt.pos>>3){case 1:an.amount.push(vt.Coin.decode(jt,jt.uint32()));break;case 2:an.gasLimit=jt.uint64();break;case 3:an.payer=jt.string();break;case 4:an.granter=jt.string();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{amount:Array.isArray(Tt==null?void 0:Tt.amount)?Tt.amount.map(Mt=>vt.Coin.fromJSON(Mt)):[],gasLimit:(0,Pt.isSet)(Tt.gasLimit)?Pt.Long.fromValue(Tt.gasLimit):Pt.Long.UZERO,payer:(0,Pt.isSet)(Tt.payer)?String(Tt.payer):"",granter:(0,Pt.isSet)(Tt.granter)?String(Tt.granter):""}},toJSON(Tt){const Mt={};return Tt.amount?Mt.amount=Tt.amount.map(jt=>jt?vt.Coin.toJSON(jt):void 0):Mt.amount=[],Tt.gasLimit!==void 0&&(Mt.gasLimit=(Tt.gasLimit||Pt.Long.UZERO).toString()),Tt.payer!==void 0&&(Mt.payer=Tt.payer),Tt.granter!==void 0&&(Mt.granter=Tt.granter),Mt},fromPartial(Tt){var jt;const Mt=Bt();return Mt.amount=((jt=Tt.amount)==null?void 0:jt.map(Ht=>vt.Coin.fromPartial(Ht)))||[],Mt.gasLimit=Tt.gasLimit!==void 0&&Tt.gasLimit!==null?Pt.Long.fromValue(Tt.gasLimit):Pt.Long.UZERO,Mt.payer=Tt.payer??"",Mt.granter=Tt.granter??"",Mt}}})(tx$7);var tx$6={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUpdateInstantiateConfigResponse=d.MsgUpdateInstantiateConfig=d.MsgClearAdminResponse=d.MsgClearAdmin=d.MsgUpdateAdminResponse=d.MsgUpdateAdmin=d.MsgMigrateContractResponse=d.MsgMigrateContract=d.MsgExecuteContractResponse=d.MsgExecuteContract=d.MsgInstantiateContract2Response=d.MsgInstantiateContractResponse=d.MsgInstantiateContract2=d.MsgInstantiateContract=d.MsgStoreCodeResponse=d.MsgStoreCode=d.protobufPackage=void 0;const lt=types$7,ht=coin$1,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmwasm.wasm.v1";function kt(){return{sender:"",wasmByteCode:new Uint8Array,instantiatePermission:void 0}}d.MsgStoreCode={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.wasmByteCode.length!==0&&$t.uint32(18).bytes(yt.wasmByteCode),yt.instantiatePermission!==void 0&<.AccessConfig.encode(yt.instantiatePermission,$t.uint32(42).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=kt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.wasmByteCode=Yt.bytes();break;case 5:St.instantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",wasmByteCode:(0,vt.isSet)(yt.wasmByteCode)?(0,vt.bytesFromBase64)(yt.wasmByteCode):new Uint8Array,instantiatePermission:(0,vt.isSet)(yt.instantiatePermission)?lt.AccessConfig.fromJSON(yt.instantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.wasmByteCode!==void 0&&($t.wasmByteCode=(0,vt.base64FromBytes)(yt.wasmByteCode!==void 0?yt.wasmByteCode:new Uint8Array)),yt.instantiatePermission!==void 0&&($t.instantiatePermission=yt.instantiatePermission?lt.AccessConfig.toJSON(yt.instantiatePermission):void 0),$t},fromPartial(yt){const $t=kt();return $t.sender=yt.sender??"",$t.wasmByteCode=yt.wasmByteCode??new Uint8Array,$t.instantiatePermission=yt.instantiatePermission!==void 0&&yt.instantiatePermission!==null?lt.AccessConfig.fromPartial(yt.instantiatePermission):void 0,$t}};function Pt(){return{codeId:vt.Long.UZERO,checksum:new Uint8Array}}d.MsgStoreCodeResponse={encode(yt,$t=mt.Writer.create()){return yt.codeId.isZero()||$t.uint32(8).uint64(yt.codeId),yt.checksum.length!==0&&$t.uint32(18).bytes(yt.checksum),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Pt();for(;Yt.pos>>3){case 1:St.codeId=Yt.uint64();break;case 2:St.checksum=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,checksum:(0,vt.isSet)(yt.checksum)?(0,vt.bytesFromBase64)(yt.checksum):new Uint8Array}},toJSON(yt){const $t={};return yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.checksum!==void 0&&($t.checksum=(0,vt.base64FromBytes)(yt.checksum!==void 0?yt.checksum:new Uint8Array)),$t},fromPartial(yt){const $t=Pt();return $t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.checksum=yt.checksum??new Uint8Array,$t}};function Jt(){return{sender:"",admin:"",codeId:vt.Long.UZERO,label:"",msg:new Uint8Array,funds:[]}}d.MsgInstantiateContract={encode(yt,$t=mt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,vt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,label:(0,vt.isSet)(yt.label)?String(yt.label):"",msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Jt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function Zt(){return{sender:"",admin:"",codeId:vt.Long.UZERO,label:"",msg:new Uint8Array,funds:[],salt:new Uint8Array,fixMsg:!1}}d.MsgInstantiateContract2={encode(yt,$t=mt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return yt.salt.length!==0&&$t.uint32(58).bytes(yt.salt),yt.fixMsg===!0&&$t.uint32(64).bool(yt.fixMsg),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;case 7:St.salt=Yt.bytes();break;case 8:St.fixMsg=Yt.bool();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,vt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,label:(0,vt.isSet)(yt.label)?String(yt.label):"",msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[],salt:(0,vt.isSet)(yt.salt)?(0,vt.bytesFromBase64)(yt.salt):new Uint8Array,fixMsg:(0,vt.isSet)(yt.fixMsg)?!!yt.fixMsg:!1}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],yt.salt!==void 0&&($t.salt=(0,vt.base64FromBytes)(yt.salt!==void 0?yt.salt:new Uint8Array)),yt.fixMsg!==void 0&&($t.fixMsg=yt.fixMsg),$t},fromPartial(yt){var Yt;const $t=Zt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t.salt=yt.salt??new Uint8Array,$t.fixMsg=yt.fixMsg??!1,$t}};function Rt(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContractResponse={encode(yt,$t=mt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,vt.isSet)(yt.address)?String(yt.address):"",data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=Rt();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function nn(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContract2Response={encode(yt,$t=mt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,vt.isSet)(yt.address)?String(yt.address):"",data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=nn();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function Qt(){return{sender:"",contract:"",msg:new Uint8Array,funds:[]}}d.MsgExecuteContract={encode(yt,$t=mt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.msg.length!==0&&$t.uint32(26).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(42).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.msg=Yt.bytes();break;case 5:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):"",msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Qt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function wt(){return{data:new Uint8Array}}d.MsgExecuteContractResponse={encode(yt,$t=mt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=wt();return $t.data=yt.data??new Uint8Array,$t}};function Nt(){return{sender:"",contract:"",codeId:vt.Long.UZERO,msg:new Uint8Array}}d.MsgMigrateContract={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.msg.length!==0&&$t.uint32(34).bytes(yt.msg),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.msg=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),$t},fromPartial(yt){const $t=Nt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.msg=yt.msg??new Uint8Array,$t}};function xt(){return{data:new Uint8Array}}d.MsgMigrateContractResponse={encode(yt,$t=mt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=xt();return $t.data=yt.data??new Uint8Array,$t}};function Et(){return{sender:"",newAdmin:"",contract:""}}d.MsgUpdateAdmin={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.newAdmin!==""&&$t.uint32(18).string(yt.newAdmin),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.newAdmin=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",newAdmin:(0,vt.isSet)(yt.newAdmin)?String(yt.newAdmin):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.newAdmin!==void 0&&($t.newAdmin=yt.newAdmin),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Et();return $t.sender=yt.sender??"",$t.newAdmin=yt.newAdmin??"",$t.contract=yt.contract??"",$t}};function Bt(){return{}}d.MsgUpdateAdminResponse={encode(yt,$t=mt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Bt()}};function Tt(){return{sender:"",contract:""}}d.MsgClearAdmin={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Tt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t}};function Mt(){return{}}d.MsgClearAdminResponse={encode(yt,$t=mt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Mt()}};function jt(){return{sender:"",codeId:vt.Long.UZERO,newInstantiatePermission:void 0}}d.MsgUpdateInstantiateConfig={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.codeId.isZero()||$t.uint32(16).uint64(yt.codeId),yt.newInstantiatePermission!==void 0&<.AccessConfig.encode(yt.newInstantiatePermission,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.codeId=Yt.uint64();break;case 3:St.newInstantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,newInstantiatePermission:(0,vt.isSet)(yt.newInstantiatePermission)?lt.AccessConfig.fromJSON(yt.newInstantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.newInstantiatePermission!==void 0&&($t.newInstantiatePermission=yt.newInstantiatePermission?lt.AccessConfig.toJSON(yt.newInstantiatePermission):void 0),$t},fromPartial(yt){const $t=jt();return $t.sender=yt.sender??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.newInstantiatePermission=yt.newInstantiatePermission!==void 0&&yt.newInstantiatePermission!==null?lt.AccessConfig.fromPartial(yt.newInstantiatePermission):void 0,$t}};function Ht(){return{}}d.MsgUpdateInstantiateConfigResponse={encode(yt,$t=mt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Ht()}};class an{constructor($t){this.rpc=$t,this.StoreCode=this.StoreCode.bind(this),this.InstantiateContract=this.InstantiateContract.bind(this),this.InstantiateContract2=this.InstantiateContract2.bind(this),this.ExecuteContract=this.ExecuteContract.bind(this),this.MigrateContract=this.MigrateContract.bind(this),this.UpdateAdmin=this.UpdateAdmin.bind(this),this.ClearAdmin=this.ClearAdmin.bind(this),this.UpdateInstantiateConfig=this.UpdateInstantiateConfig.bind(this)}StoreCode($t){const Yt=d.MsgStoreCode.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","StoreCode",Yt).then(St=>d.MsgStoreCodeResponse.decode(new mt.Reader(St)))}InstantiateContract($t){const Yt=d.MsgInstantiateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract",Yt).then(St=>d.MsgInstantiateContractResponse.decode(new mt.Reader(St)))}InstantiateContract2($t){const Yt=d.MsgInstantiateContract2.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract2",Yt).then(St=>d.MsgInstantiateContract2Response.decode(new mt.Reader(St)))}ExecuteContract($t){const Yt=d.MsgExecuteContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ExecuteContract",Yt).then(St=>d.MsgExecuteContractResponse.decode(new mt.Reader(St)))}MigrateContract($t){const Yt=d.MsgMigrateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","MigrateContract",Yt).then(St=>d.MsgMigrateContractResponse.decode(new mt.Reader(St)))}UpdateAdmin($t){const Yt=d.MsgUpdateAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateAdmin",Yt).then(St=>d.MsgUpdateAdminResponse.decode(new mt.Reader(St)))}ClearAdmin($t){const Yt=d.MsgClearAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ClearAdmin",Yt).then(St=>d.MsgClearAdminResponse.decode(new mt.Reader(St)))}UpdateInstantiateConfig($t){const Yt=d.MsgUpdateInstantiateConfig.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateInstantiateConfig",Yt).then(St=>d.MsgUpdateInstantiateConfigResponse.decode(new mt.Reader(St)))}}d.MsgClientImpl=an})(tx$6);var tx$5={},client={},upgrade={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt);var Nt=Object.getOwnPropertyDescriptor(nn,Qt);(!Nt||("get"in Nt?!nn.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return nn[Qt]}}),Object.defineProperty(Rt,wt,Nt)}:function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt),Rt[wt]=nn[Qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Rt,nn){Object.defineProperty(Rt,"default",{enumerable:!0,value:nn})}:function(Rt,nn){Rt.default=nn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Rt){if(Rt&&Rt.__esModule)return Rt;var nn={};if(Rt!=null)for(var Qt in Rt)Qt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,Qt)&&b(nn,Rt,Qt);return dt(nn,Rt),nn};Object.defineProperty(d,"__esModule",{value:!0}),d.ModuleVersion=d.CancelSoftwareUpgradeProposal=d.SoftwareUpgradeProposal=d.Plan=d.protobufPackage=void 0;const lt=timestamp,ht=any,mt=helpers,vt=ct(minimal$2);d.protobufPackage="cosmos.upgrade.v1beta1";function kt(){return{name:"",time:void 0,height:mt.Long.ZERO,info:"",upgradedClientState:void 0}}d.Plan={encode(Rt,nn=vt.Writer.create()){return Rt.name!==""&&nn.uint32(10).string(Rt.name),Rt.time!==void 0&<.Timestamp.encode(Rt.time,nn.uint32(18).fork()).ldelim(),Rt.height.isZero()||nn.uint32(24).int64(Rt.height),Rt.info!==""&&nn.uint32(34).string(Rt.info),Rt.upgradedClientState!==void 0&&ht.Any.encode(Rt.upgradedClientState,nn.uint32(42).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=kt();for(;Qt.pos>>3){case 1:Nt.name=Qt.string();break;case 2:Nt.time=lt.Timestamp.decode(Qt,Qt.uint32());break;case 3:Nt.height=Qt.int64();break;case 4:Nt.info=Qt.string();break;case 5:Nt.upgradedClientState=ht.Any.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{name:(0,mt.isSet)(Rt.name)?String(Rt.name):"",time:(0,mt.isSet)(Rt.time)?(0,mt.fromJsonTimestamp)(Rt.time):void 0,height:(0,mt.isSet)(Rt.height)?mt.Long.fromValue(Rt.height):mt.Long.ZERO,info:(0,mt.isSet)(Rt.info)?String(Rt.info):"",upgradedClientState:(0,mt.isSet)(Rt.upgradedClientState)?ht.Any.fromJSON(Rt.upgradedClientState):void 0}},toJSON(Rt){const nn={};return Rt.name!==void 0&&(nn.name=Rt.name),Rt.time!==void 0&&(nn.time=(0,mt.fromTimestamp)(Rt.time).toISOString()),Rt.height!==void 0&&(nn.height=(Rt.height||mt.Long.ZERO).toString()),Rt.info!==void 0&&(nn.info=Rt.info),Rt.upgradedClientState!==void 0&&(nn.upgradedClientState=Rt.upgradedClientState?ht.Any.toJSON(Rt.upgradedClientState):void 0),nn},fromPartial(Rt){const nn=kt();return nn.name=Rt.name??"",nn.time=Rt.time!==void 0&&Rt.time!==null?lt.Timestamp.fromPartial(Rt.time):void 0,nn.height=Rt.height!==void 0&&Rt.height!==null?mt.Long.fromValue(Rt.height):mt.Long.ZERO,nn.info=Rt.info??"",nn.upgradedClientState=Rt.upgradedClientState!==void 0&&Rt.upgradedClientState!==null?ht.Any.fromPartial(Rt.upgradedClientState):void 0,nn}};function Pt(){return{title:"",description:"",plan:void 0}}d.SoftwareUpgradeProposal={encode(Rt,nn=vt.Writer.create()){return Rt.title!==""&&nn.uint32(10).string(Rt.title),Rt.description!==""&&nn.uint32(18).string(Rt.description),Rt.plan!==void 0&&d.Plan.encode(Rt.plan,nn.uint32(26).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Pt();for(;Qt.pos>>3){case 1:Nt.title=Qt.string();break;case 2:Nt.description=Qt.string();break;case 3:Nt.plan=d.Plan.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{title:(0,mt.isSet)(Rt.title)?String(Rt.title):"",description:(0,mt.isSet)(Rt.description)?String(Rt.description):"",plan:(0,mt.isSet)(Rt.plan)?d.Plan.fromJSON(Rt.plan):void 0}},toJSON(Rt){const nn={};return Rt.title!==void 0&&(nn.title=Rt.title),Rt.description!==void 0&&(nn.description=Rt.description),Rt.plan!==void 0&&(nn.plan=Rt.plan?d.Plan.toJSON(Rt.plan):void 0),nn},fromPartial(Rt){const nn=Pt();return nn.title=Rt.title??"",nn.description=Rt.description??"",nn.plan=Rt.plan!==void 0&&Rt.plan!==null?d.Plan.fromPartial(Rt.plan):void 0,nn}};function Jt(){return{title:"",description:""}}d.CancelSoftwareUpgradeProposal={encode(Rt,nn=vt.Writer.create()){return Rt.title!==""&&nn.uint32(10).string(Rt.title),Rt.description!==""&&nn.uint32(18).string(Rt.description),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Jt();for(;Qt.pos>>3){case 1:Nt.title=Qt.string();break;case 2:Nt.description=Qt.string();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{title:(0,mt.isSet)(Rt.title)?String(Rt.title):"",description:(0,mt.isSet)(Rt.description)?String(Rt.description):""}},toJSON(Rt){const nn={};return Rt.title!==void 0&&(nn.title=Rt.title),Rt.description!==void 0&&(nn.description=Rt.description),nn},fromPartial(Rt){const nn=Jt();return nn.title=Rt.title??"",nn.description=Rt.description??"",nn}};function Zt(){return{name:"",version:mt.Long.UZERO}}d.ModuleVersion={encode(Rt,nn=vt.Writer.create()){return Rt.name!==""&&nn.uint32(10).string(Rt.name),Rt.version.isZero()||nn.uint32(16).uint64(Rt.version),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Zt();for(;Qt.pos>>3){case 1:Nt.name=Qt.string();break;case 2:Nt.version=Qt.uint64();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{name:(0,mt.isSet)(Rt.name)?String(Rt.name):"",version:(0,mt.isSet)(Rt.version)?mt.Long.fromValue(Rt.version):mt.Long.UZERO}},toJSON(Rt){const nn={};return Rt.name!==void 0&&(nn.name=Rt.name),Rt.version!==void 0&&(nn.version=(Rt.version||mt.Long.UZERO).toString()),nn},fromPartial(Rt){const nn=Zt();return nn.name=Rt.name??"",nn.version=Rt.version!==void 0&&Rt.version!==null?mt.Long.fromValue(Rt.version):mt.Long.UZERO,nn}}})(upgrade);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.Params=d.Height=d.UpgradeProposal=d.ClientUpdateProposal=d.ClientConsensusStates=d.ConsensusStateWithHeight=d.IdentifiedClientState=d.protobufPackage=void 0;const lt=any,ht=upgrade,mt=ct(minimal$2),vt=helpers;d.protobufPackage="ibc.core.client.v1";function kt(){return{clientId:"",clientState:void 0}}d.IdentifiedClientState={encode(wt,Nt=mt.Writer.create()){return wt.clientId!==""&&Nt.uint32(10).string(wt.clientId),wt.clientState!==void 0&<.Any.encode(wt.clientState,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.clientId=xt.string();break;case 2:Bt.clientState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{clientId:(0,vt.isSet)(wt.clientId)?String(wt.clientId):"",clientState:(0,vt.isSet)(wt.clientState)?lt.Any.fromJSON(wt.clientState):void 0}},toJSON(wt){const Nt={};return wt.clientId!==void 0&&(Nt.clientId=wt.clientId),wt.clientState!==void 0&&(Nt.clientState=wt.clientState?lt.Any.toJSON(wt.clientState):void 0),Nt},fromPartial(wt){const Nt=kt();return Nt.clientId=wt.clientId??"",Nt.clientState=wt.clientState!==void 0&&wt.clientState!==null?lt.Any.fromPartial(wt.clientState):void 0,Nt}};function Pt(){return{height:void 0,consensusState:void 0}}d.ConsensusStateWithHeight={encode(wt,Nt=mt.Writer.create()){return wt.height!==void 0&&d.Height.encode(wt.height,Nt.uint32(10).fork()).ldelim(),wt.consensusState!==void 0&<.Any.encode(wt.consensusState,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.height=d.Height.decode(xt,xt.uint32());break;case 2:Bt.consensusState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{height:(0,vt.isSet)(wt.height)?d.Height.fromJSON(wt.height):void 0,consensusState:(0,vt.isSet)(wt.consensusState)?lt.Any.fromJSON(wt.consensusState):void 0}},toJSON(wt){const Nt={};return wt.height!==void 0&&(Nt.height=wt.height?d.Height.toJSON(wt.height):void 0),wt.consensusState!==void 0&&(Nt.consensusState=wt.consensusState?lt.Any.toJSON(wt.consensusState):void 0),Nt},fromPartial(wt){const Nt=Pt();return Nt.height=wt.height!==void 0&&wt.height!==null?d.Height.fromPartial(wt.height):void 0,Nt.consensusState=wt.consensusState!==void 0&&wt.consensusState!==null?lt.Any.fromPartial(wt.consensusState):void 0,Nt}};function Jt(){return{clientId:"",consensusStates:[]}}d.ClientConsensusStates={encode(wt,Nt=mt.Writer.create()){wt.clientId!==""&&Nt.uint32(10).string(wt.clientId);for(const xt of wt.consensusStates)d.ConsensusStateWithHeight.encode(xt,Nt.uint32(18).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.clientId=xt.string();break;case 2:Bt.consensusStates.push(d.ConsensusStateWithHeight.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{clientId:(0,vt.isSet)(wt.clientId)?String(wt.clientId):"",consensusStates:Array.isArray(wt==null?void 0:wt.consensusStates)?wt.consensusStates.map(Nt=>d.ConsensusStateWithHeight.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.clientId!==void 0&&(Nt.clientId=wt.clientId),wt.consensusStates?Nt.consensusStates=wt.consensusStates.map(xt=>xt?d.ConsensusStateWithHeight.toJSON(xt):void 0):Nt.consensusStates=[],Nt},fromPartial(wt){var xt;const Nt=Jt();return Nt.clientId=wt.clientId??"",Nt.consensusStates=((xt=wt.consensusStates)==null?void 0:xt.map(Et=>d.ConsensusStateWithHeight.fromPartial(Et)))||[],Nt}};function Zt(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}d.ClientUpdateProposal={encode(wt,Nt=mt.Writer.create()){return wt.title!==""&&Nt.uint32(10).string(wt.title),wt.description!==""&&Nt.uint32(18).string(wt.description),wt.subjectClientId!==""&&Nt.uint32(26).string(wt.subjectClientId),wt.substituteClientId!==""&&Nt.uint32(34).string(wt.substituteClientId),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){case 1:Bt.title=xt.string();break;case 2:Bt.description=xt.string();break;case 3:Bt.subjectClientId=xt.string();break;case 4:Bt.substituteClientId=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{title:(0,vt.isSet)(wt.title)?String(wt.title):"",description:(0,vt.isSet)(wt.description)?String(wt.description):"",subjectClientId:(0,vt.isSet)(wt.subjectClientId)?String(wt.subjectClientId):"",substituteClientId:(0,vt.isSet)(wt.substituteClientId)?String(wt.substituteClientId):""}},toJSON(wt){const Nt={};return wt.title!==void 0&&(Nt.title=wt.title),wt.description!==void 0&&(Nt.description=wt.description),wt.subjectClientId!==void 0&&(Nt.subjectClientId=wt.subjectClientId),wt.substituteClientId!==void 0&&(Nt.substituteClientId=wt.substituteClientId),Nt},fromPartial(wt){const Nt=Zt();return Nt.title=wt.title??"",Nt.description=wt.description??"",Nt.subjectClientId=wt.subjectClientId??"",Nt.substituteClientId=wt.substituteClientId??"",Nt}};function Rt(){return{title:"",description:"",plan:void 0,upgradedClientState:void 0}}d.UpgradeProposal={encode(wt,Nt=mt.Writer.create()){return wt.title!==""&&Nt.uint32(10).string(wt.title),wt.description!==""&&Nt.uint32(18).string(wt.description),wt.plan!==void 0&&ht.Plan.encode(wt.plan,Nt.uint32(26).fork()).ldelim(),wt.upgradedClientState!==void 0&<.Any.encode(wt.upgradedClientState,Nt.uint32(34).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.title=xt.string();break;case 2:Bt.description=xt.string();break;case 3:Bt.plan=ht.Plan.decode(xt,xt.uint32());break;case 4:Bt.upgradedClientState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{title:(0,vt.isSet)(wt.title)?String(wt.title):"",description:(0,vt.isSet)(wt.description)?String(wt.description):"",plan:(0,vt.isSet)(wt.plan)?ht.Plan.fromJSON(wt.plan):void 0,upgradedClientState:(0,vt.isSet)(wt.upgradedClientState)?lt.Any.fromJSON(wt.upgradedClientState):void 0}},toJSON(wt){const Nt={};return wt.title!==void 0&&(Nt.title=wt.title),wt.description!==void 0&&(Nt.description=wt.description),wt.plan!==void 0&&(Nt.plan=wt.plan?ht.Plan.toJSON(wt.plan):void 0),wt.upgradedClientState!==void 0&&(Nt.upgradedClientState=wt.upgradedClientState?lt.Any.toJSON(wt.upgradedClientState):void 0),Nt},fromPartial(wt){const Nt=Rt();return Nt.title=wt.title??"",Nt.description=wt.description??"",Nt.plan=wt.plan!==void 0&&wt.plan!==null?ht.Plan.fromPartial(wt.plan):void 0,Nt.upgradedClientState=wt.upgradedClientState!==void 0&&wt.upgradedClientState!==null?lt.Any.fromPartial(wt.upgradedClientState):void 0,Nt}};function nn(){return{revisionNumber:vt.Long.UZERO,revisionHeight:vt.Long.UZERO}}d.Height={encode(wt,Nt=mt.Writer.create()){return wt.revisionNumber.isZero()||Nt.uint32(8).uint64(wt.revisionNumber),wt.revisionHeight.isZero()||Nt.uint32(16).uint64(wt.revisionHeight),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){case 1:Bt.revisionNumber=xt.uint64();break;case 2:Bt.revisionHeight=xt.uint64();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{revisionNumber:(0,vt.isSet)(wt.revisionNumber)?vt.Long.fromValue(wt.revisionNumber):vt.Long.UZERO,revisionHeight:(0,vt.isSet)(wt.revisionHeight)?vt.Long.fromValue(wt.revisionHeight):vt.Long.UZERO}},toJSON(wt){const Nt={};return wt.revisionNumber!==void 0&&(Nt.revisionNumber=(wt.revisionNumber||vt.Long.UZERO).toString()),wt.revisionHeight!==void 0&&(Nt.revisionHeight=(wt.revisionHeight||vt.Long.UZERO).toString()),Nt},fromPartial(wt){const Nt=nn();return Nt.revisionNumber=wt.revisionNumber!==void 0&&wt.revisionNumber!==null?vt.Long.fromValue(wt.revisionNumber):vt.Long.UZERO,Nt.revisionHeight=wt.revisionHeight!==void 0&&wt.revisionHeight!==null?vt.Long.fromValue(wt.revisionHeight):vt.Long.UZERO,Nt}};function Qt(){return{allowedClients:[]}}d.Params={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.allowedClients)Nt.uint32(10).string(xt);return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Qt();for(;xt.pos>>3){case 1:Bt.allowedClients.push(xt.string());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{allowedClients:Array.isArray(wt==null?void 0:wt.allowedClients)?wt.allowedClients.map(Nt=>String(Nt)):[]}},toJSON(wt){const Nt={};return wt.allowedClients?Nt.allowedClients=wt.allowedClients.map(xt=>xt):Nt.allowedClients=[],Nt},fromPartial(wt){var xt;const Nt=Qt();return Nt.allowedClients=((xt=wt.allowedClients)==null?void 0:xt.map(Et=>Et))||[],Nt}}})(client);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn);var wt=Object.getOwnPropertyDescriptor(Rt,nn);(!wt||("get"in wt?!Rt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return Rt[nn]}}),Object.defineProperty(Zt,Qt,wt)}:function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn),Zt[Qt]=Rt[nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Zt,Rt){Object.defineProperty(Zt,"default",{enumerable:!0,value:Rt})}:function(Zt,Rt){Zt.default=Rt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Zt){if(Zt&&Zt.__esModule)return Zt;var Rt={};if(Zt!=null)for(var nn in Zt)nn!=="default"&&Object.prototype.hasOwnProperty.call(Zt,nn)&&b(Rt,Zt,nn);return dt(Rt,Zt),Rt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgTransferResponse=d.MsgTransfer=d.protobufPackage=void 0;const lt=coin$1,ht=client,mt=helpers,vt=ct(minimal$2);d.protobufPackage="ibc.applications.transfer.v1";function kt(){return{sourcePort:"",sourceChannel:"",token:void 0,sender:"",receiver:"",timeoutHeight:void 0,timeoutTimestamp:mt.Long.UZERO,memo:""}}d.MsgTransfer={encode(Zt,Rt=vt.Writer.create()){return Zt.sourcePort!==""&&Rt.uint32(10).string(Zt.sourcePort),Zt.sourceChannel!==""&&Rt.uint32(18).string(Zt.sourceChannel),Zt.token!==void 0&<.Coin.encode(Zt.token,Rt.uint32(26).fork()).ldelim(),Zt.sender!==""&&Rt.uint32(34).string(Zt.sender),Zt.receiver!==""&&Rt.uint32(42).string(Zt.receiver),Zt.timeoutHeight!==void 0&&ht.Height.encode(Zt.timeoutHeight,Rt.uint32(50).fork()).ldelim(),Zt.timeoutTimestamp.isZero()||Rt.uint32(56).uint64(Zt.timeoutTimestamp),Zt.memo!==""&&Rt.uint32(66).string(Zt.memo),Rt},decode(Zt,Rt){const nn=Zt instanceof vt.Reader?Zt:new vt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=kt();for(;nn.pos>>3){case 1:wt.sourcePort=nn.string();break;case 2:wt.sourceChannel=nn.string();break;case 3:wt.token=lt.Coin.decode(nn,nn.uint32());break;case 4:wt.sender=nn.string();break;case 5:wt.receiver=nn.string();break;case 6:wt.timeoutHeight=ht.Height.decode(nn,nn.uint32());break;case 7:wt.timeoutTimestamp=nn.uint64();break;case 8:wt.memo=nn.string();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{sourcePort:(0,mt.isSet)(Zt.sourcePort)?String(Zt.sourcePort):"",sourceChannel:(0,mt.isSet)(Zt.sourceChannel)?String(Zt.sourceChannel):"",token:(0,mt.isSet)(Zt.token)?lt.Coin.fromJSON(Zt.token):void 0,sender:(0,mt.isSet)(Zt.sender)?String(Zt.sender):"",receiver:(0,mt.isSet)(Zt.receiver)?String(Zt.receiver):"",timeoutHeight:(0,mt.isSet)(Zt.timeoutHeight)?ht.Height.fromJSON(Zt.timeoutHeight):void 0,timeoutTimestamp:(0,mt.isSet)(Zt.timeoutTimestamp)?mt.Long.fromValue(Zt.timeoutTimestamp):mt.Long.UZERO,memo:(0,mt.isSet)(Zt.memo)?String(Zt.memo):""}},toJSON(Zt){const Rt={};return Zt.sourcePort!==void 0&&(Rt.sourcePort=Zt.sourcePort),Zt.sourceChannel!==void 0&&(Rt.sourceChannel=Zt.sourceChannel),Zt.token!==void 0&&(Rt.token=Zt.token?lt.Coin.toJSON(Zt.token):void 0),Zt.sender!==void 0&&(Rt.sender=Zt.sender),Zt.receiver!==void 0&&(Rt.receiver=Zt.receiver),Zt.timeoutHeight!==void 0&&(Rt.timeoutHeight=Zt.timeoutHeight?ht.Height.toJSON(Zt.timeoutHeight):void 0),Zt.timeoutTimestamp!==void 0&&(Rt.timeoutTimestamp=(Zt.timeoutTimestamp||mt.Long.UZERO).toString()),Zt.memo!==void 0&&(Rt.memo=Zt.memo),Rt},fromPartial(Zt){const Rt=kt();return Rt.sourcePort=Zt.sourcePort??"",Rt.sourceChannel=Zt.sourceChannel??"",Rt.token=Zt.token!==void 0&&Zt.token!==null?lt.Coin.fromPartial(Zt.token):void 0,Rt.sender=Zt.sender??"",Rt.receiver=Zt.receiver??"",Rt.timeoutHeight=Zt.timeoutHeight!==void 0&&Zt.timeoutHeight!==null?ht.Height.fromPartial(Zt.timeoutHeight):void 0,Rt.timeoutTimestamp=Zt.timeoutTimestamp!==void 0&&Zt.timeoutTimestamp!==null?mt.Long.fromValue(Zt.timeoutTimestamp):mt.Long.UZERO,Rt.memo=Zt.memo??"",Rt}};function Pt(){return{sequence:mt.Long.UZERO}}d.MsgTransferResponse={encode(Zt,Rt=vt.Writer.create()){return Zt.sequence.isZero()||Rt.uint32(8).uint64(Zt.sequence),Rt},decode(Zt,Rt){const nn=Zt instanceof vt.Reader?Zt:new vt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Pt();for(;nn.pos>>3){case 1:wt.sequence=nn.uint64();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{sequence:(0,mt.isSet)(Zt.sequence)?mt.Long.fromValue(Zt.sequence):mt.Long.UZERO}},toJSON(Zt){const Rt={};return Zt.sequence!==void 0&&(Rt.sequence=(Zt.sequence||mt.Long.UZERO).toString()),Rt},fromPartial(Zt){const Rt=Pt();return Rt.sequence=Zt.sequence!==void 0&&Zt.sequence!==null?mt.Long.fromValue(Zt.sequence):mt.Long.UZERO,Rt}};class Jt{constructor(Rt){this.rpc=Rt,this.Transfer=this.Transfer.bind(this)}Transfer(Rt){const nn=d.MsgTransfer.encode(Rt).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",nn).then(wt=>d.MsgTransferResponse.decode(new vt.Reader(wt)))}}d.MsgClientImpl=Jt})(tx$5);var fastDeepEqual=function d(b,dt){if(b===dt)return!0;if(b&&dt&&typeof b=="object"&&typeof dt=="object"){if(b.constructor!==dt.constructor)return!1;var ct,lt,ht;if(Array.isArray(b)){if(ct=b.length,ct!=dt.length)return!1;for(lt=ct;lt--!==0;)if(!d(b[lt],dt[lt]))return!1;return!0}if(b.constructor===RegExp)return b.source===dt.source&&b.flags===dt.flags;if(b.valueOf!==Object.prototype.valueOf)return b.valueOf()===dt.valueOf();if(b.toString!==Object.prototype.toString)return b.toString()===dt.toString();if(ht=Object.keys(b),ct=ht.length,ct!==Object.keys(dt).length)return!1;for(lt=ct;lt--!==0;)if(!Object.prototype.hasOwnProperty.call(dt,ht[lt]))return!1;for(lt=ct;lt--!==0;){var mt=ht[lt];if(!d(b[mt],dt[mt]))return!1}return!0}return b!==b&&dt!==dt},aminomsgs={},__importDefault$d=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(aminomsgs,"__esModule",{value:!0});aminomsgs.createCyberAminoConverters=aminomsgs.isMsgSignData=aminomsgs.isAminoMsgWithdrawWithinBatch=aminomsgs.isAminoMsgDepositWithinBatch=aminomsgs.isAminoMsgSwapWithinBatch=aminomsgs.isAminoMsgCreatePool=aminomsgs.isAminoMsgEditRouteName=aminomsgs.isAminoMsgDeleteRoute=aminomsgs.isAminoMsgEditRoute=aminomsgs.isAminoMsgCreateRoute=aminomsgs.isAminoMsgInvestmint=aminomsgs.isAminoMsgCyberlink=void 0;const utils_1=build$9,long_1$2=__importDefault$d(long);function isAminoMsgCyberlink(d){return d.type==="cyber/MsgCyberlink"}aminomsgs.isAminoMsgCyberlink=isAminoMsgCyberlink;function isAminoMsgInvestmint(d){return d.type==="cyber/MsgInvestmint"}aminomsgs.isAminoMsgInvestmint=isAminoMsgInvestmint;function isAminoMsgCreateRoute(d){return d.type==="cyber/MsgCreateRoute"}aminomsgs.isAminoMsgCreateRoute=isAminoMsgCreateRoute;function isAminoMsgEditRoute(d){return d.type==="cyber/MsgEditRoute"}aminomsgs.isAminoMsgEditRoute=isAminoMsgEditRoute;function isAminoMsgDeleteRoute(d){return d.type==="cyber/MsgDeleteRoute"}aminomsgs.isAminoMsgDeleteRoute=isAminoMsgDeleteRoute;function isAminoMsgEditRouteName(d){return d.type==="cyber/MsgEditRouteName"}aminomsgs.isAminoMsgEditRouteName=isAminoMsgEditRouteName;function isAminoMsgCreatePool(d){return d.type==="liquidity/MsgCreatePool"}aminomsgs.isAminoMsgCreatePool=isAminoMsgCreatePool;function isAminoMsgSwapWithinBatch(d){return d.type==="liquidity/MsgSwapWithinBatch"}aminomsgs.isAminoMsgSwapWithinBatch=isAminoMsgSwapWithinBatch;function isAminoMsgDepositWithinBatch(d){return d.type==="liquidity/MsgDepositWithinBatch"}aminomsgs.isAminoMsgDepositWithinBatch=isAminoMsgDepositWithinBatch;function isAminoMsgWithdrawWithinBatch(d){return d.type==="liquidity/MsgWithdrawWithinBatch"}aminomsgs.isAminoMsgWithdrawWithinBatch=isAminoMsgWithdrawWithinBatch;function isMsgSignData(d){const b=d;return!(b.type!=="sign/MsgSignData"||!(0,utils_1.isNonNullObject)(b.value)||typeof b.value.signer!="string"||typeof b.value.data!="string")}aminomsgs.isMsgSignData=isMsgSignData;function omitDefault(d){if(typeof d=="string")return d===""?void 0:d;if(typeof d=="number")return d===0?void 0:d;if(long_1$2.default.isLong(d))return d.isZero()?void 0:d;throw new Error(`Got unsupported type '${typeof d}'`)}function createCyberAminoConverters(){return{"/cyber.graph.v1beta1.MsgCyberlink":{aminoType:"cyber/MsgCyberlink",toAmino:({neuron:d,links:b})=>({neuron:d,links:b}),fromAmino:({neuron:d,links:b})=>({neuron:d,links:b})},"/cyber.resources.v1beta1.MsgInvestmint":{aminoType:"cyber/MsgInvestmint",toAmino:({neuron:d,amount:b,resource:dt,length:ct})=>((0,utils_1.assertDefinedAndNotNull)(b,"missing amount"),{neuron:d,amount:b,resource:dt,length:ct.toString()}),fromAmino:({neuron:d,amount:b,resource:dt,length:ct})=>({neuron:d,amount:b,resource:dt,length:long_1$2.default.fromString(ct)})},"/cyber.grid.v1beta1.MsgCreateRoute":{aminoType:"cyber/MsgCreateRoute",toAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt}),fromAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt})},"/cyber.grid.v1beta1.MsgEditRoute":{aminoType:"cyber/MsgEditRoute",toAmino:({source:d,destination:b,value:dt})=>((0,utils_1.assertDefinedAndNotNull)(dt,"missing value"),{source:d,destination:b,value:dt}),fromAmino:({source:d,destination:b,value:dt})=>({source:d,destination:b,value:dt})},"/cyber.grid.v1beta1.MsgDeleteRoute":{aminoType:"cyber/MsgDeleteRoute",toAmino:({source:d,destination:b})=>({source:d,destination:b}),fromAmino:({source:d,destination:b})=>({source:d,destination:b})},"/cyber.grid.v1beta1.MsgEditRouteName":{aminoType:"cyber/MsgEditRouteName",toAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt}),fromAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt})},"/tendermint.liquidity.v1beta1.MsgCreatePool":{aminoType:"liquidity/MsgCreatePool",toAmino:({poolCreatorAddress:d,poolTypeId:b,depositCoins:dt})=>({pool_creator_address:d,pool_type_id:b,deposit_coins:[...dt]}),fromAmino:({pool_creator_address:d,pool_type_id:b,deposit_coins:dt})=>({poolCreatorAddress:d,poolTypeId:b,depositCoins:[...dt]})},"/tendermint.liquidity.v1beta1.MsgSwapWithinBatch":{aminoType:"liquidity/MsgSwapWithinBatch",toAmino:({swapRequesterAddress:d,poolId:b,swapTypeId:dt,offerCoin:ct,demandCoinDenom:lt,offerCoinFee:ht,orderPrice:mt})=>{var kt;const vt=mt.split("");for(;vt.length<19;)vt.unshift("0");return vt.splice(vt.length-18,0,"."),{swap_requester_address:d,pool_id:""+((kt=omitDefault(b))==null?void 0:kt.toString()),swap_type_id:dt,offer_coin:ct,demand_coin_denom:lt,offer_coin_fee:ht,order_price:vt.join("")}},fromAmino:({swap_requester_address:d,pool_id:b,swap_type_id:dt,offer_coin:ct,demand_coin_denom:lt,offer_coin_fee:ht,order_price:mt})=>({swapRequesterAddress:d,poolId:parseInt(b)||0,swapTypeId:dt,offerCoin:ct,demandCoinDenom:lt,offerCoinFee:ht,orderPrice:mt.replace(".","").replace(/^0+/,"")})},"/tendermint.liquidity.v1beta1.MsgDepositWithinBatch":{aminoType:"liquidity/MsgDepositWithinBatch",toAmino:({depositorAddress:d,poolId:b,depositCoins:dt})=>{var ct;return{depositor_address:d,pool_id:""+((ct=omitDefault(b))==null?void 0:ct.toString()),deposit_coins:[...dt]}},fromAmino:({depositor_address:d,pool_id:b,deposit_coins:dt})=>({depositorAddress:d,poolId:parseInt(b)||0,depositCoins:[...dt]})},"/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch":{aminoType:"liquidity/MsgWithdrawWithinBatch",toAmino:({withdrawerAddress:d,poolId:b,poolCoin:dt})=>{var ct;return{withdrawer_address:d,pool_id:""+((ct=omitDefault(b))==null?void 0:ct.toString()),pool_coin:dt}},fromAmino:({withdrawer_address:d,pool_id:b,pool_coin:dt})=>({withdrawerAddress:d,poolId:parseInt(b)||0,poolCoin:dt})}}}aminomsgs.createCyberAminoConverters=createCyberAminoConverters;var tx$4={},types$2={},__importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$2,"__esModule",{value:!0});types$2.Link=types$2.protobufPackage=void 0;const long_1$1=__importDefault$c(long),minimal_1=__importDefault$c(minimal);types$2.protobufPackage="cyber.graph.v1beta1";function createBaseLink(){return{from:"",to:""}}types$2.Link={encode(d,b=minimal_1.default.Writer.create()){return d.from!==""&&b.uint32(10).string(d.from),d.to!==""&&b.uint32(18).string(d.to),b},decode(d,b){const dt=d instanceof minimal_1.default.Reader?d:new minimal_1.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseLink();for(;dt.pos>>3){case 1:lt.from=dt.string();break;case 2:lt.to=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{from:isSet(d.from)?String(d.from):"",to:isSet(d.to)?String(d.to):""}},toJSON(d){const b={};return d.from!==void 0&&(b.from=d.from),d.to!==void 0&&(b.to=d.to),b},fromPartial(d){const b=createBaseLink();return b.from=d.from??"",b.to=d.to??"",b}};minimal_1.default.util.Long!==long_1$1.default&&(minimal_1.default.util.Long=long_1$1.default,minimal_1.default.configure());function isSet(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgCyberlinkResponse=d.MsgCyberlink=d.protobufPackage=void 0;const dt=b(long),ct=types$2,lt=b(minimal);d.protobufPackage="cyber.graph.v1beta1";function ht(){return{neuron:"",links:[]}}d.MsgCyberlink={encode(Pt,Jt=lt.default.Writer.create()){Pt.neuron!==""&&Jt.uint32(10).string(Pt.neuron);for(const Zt of Pt.links)ct.Link.encode(Zt,Jt.uint32(18).fork()).ldelim();return Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=ht();for(;Zt.pos>>3){case 1:nn.neuron=Zt.string();break;case 2:nn.links.push(ct.Link.decode(Zt,Zt.uint32()));break;default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{neuron:kt(Pt.neuron)?String(Pt.neuron):"",links:Array.isArray(Pt==null?void 0:Pt.links)?Pt.links.map(Jt=>ct.Link.fromJSON(Jt)):[]}},toJSON(Pt){const Jt={};return Pt.neuron!==void 0&&(Jt.neuron=Pt.neuron),Pt.links?Jt.links=Pt.links.map(Zt=>Zt?ct.Link.toJSON(Zt):void 0):Jt.links=[],Jt},fromPartial(Pt){var Zt;const Jt=ht();return Jt.neuron=Pt.neuron??"",Jt.links=((Zt=Pt.links)==null?void 0:Zt.map(Rt=>ct.Link.fromPartial(Rt)))||[],Jt}};function mt(){return{}}d.MsgCyberlinkResponse={encode(Pt,Jt=lt.default.Writer.create()){return Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=mt();for(;Zt.pos>>3){default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{}},toJSON(Pt){return{}},fromPartial(Pt){return mt()}};class vt{constructor(Jt){this.rpc=Jt,this.Cyberlink=this.Cyberlink.bind(this)}Cyberlink(Jt){const Zt=d.MsgCyberlink.encode(Jt).finish();return this.rpc.request("cyber.graph.v1beta1.Msg","Cyberlink",Zt).then(nn=>d.MsgCyberlinkResponse.decode(new lt.default.Reader(nn)))}}d.MsgClientImpl=vt,lt.default.util.Long!==dt.default&&(lt.default.util.Long=dt.default,lt.default.configure());function kt(Pt){return Pt!=null}})(tx$4);var tx$3={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(wt){return wt&&wt.__esModule?wt:{default:wt}};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgEditRouteNameResponse=d.MsgDeleteRouteResponse=d.MsgEditRouteResponse=d.MsgCreateRouteResponse=d.MsgEditRouteName=d.MsgDeleteRoute=d.MsgEditRoute=d.MsgCreateRoute=d.protobufPackage=void 0;const dt=coin,ct=b(long),lt=b(minimal);d.protobufPackage="cyber.grid.v1beta1";function ht(){return{source:"",destination:"",name:""}}d.MsgCreateRoute={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),wt.name!==""&&Nt.uint32(26).string(wt.name),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=ht();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;case 3:Bt.name=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):"",name:Qt(wt.name)?String(wt.name):""}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),wt.name!==void 0&&(Nt.name=wt.name),Nt},fromPartial(wt){const Nt=ht();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt.name=wt.name??"",Nt}};function mt(){return{source:"",destination:"",value:void 0}}d.MsgEditRoute={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),wt.value!==void 0&&dt.Coin.encode(wt.value,Nt.uint32(26).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=mt();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;case 3:Bt.value=dt.Coin.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):"",value:Qt(wt.value)?dt.Coin.fromJSON(wt.value):void 0}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),wt.value!==void 0&&(Nt.value=wt.value?dt.Coin.toJSON(wt.value):void 0),Nt},fromPartial(wt){const Nt=mt();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt.value=wt.value!==void 0&&wt.value!==null?dt.Coin.fromPartial(wt.value):void 0,Nt}};function vt(){return{source:"",destination:""}}d.MsgDeleteRoute={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=vt();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):""}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),Nt},fromPartial(wt){const Nt=vt();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt}};function kt(){return{source:"",destination:"",name:""}}d.MsgEditRouteName={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),wt.name!==""&&Nt.uint32(26).string(wt.name),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;case 3:Bt.name=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):"",name:Qt(wt.name)?String(wt.name):""}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),wt.name!==void 0&&(Nt.name=wt.name),Nt},fromPartial(wt){const Nt=kt();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt.name=wt.name??"",Nt}};function Pt(){return{}}d.MsgCreateRouteResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Pt()}};function Jt(){return{}}d.MsgEditRouteResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Jt()}};function Zt(){return{}}d.MsgDeleteRouteResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Zt()}};function Rt(){return{}}d.MsgEditRouteNameResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Rt()}};class nn{constructor(Nt){this.rpc=Nt,this.CreateRoute=this.CreateRoute.bind(this),this.EditRoute=this.EditRoute.bind(this),this.DeleteRoute=this.DeleteRoute.bind(this),this.EditRouteName=this.EditRouteName.bind(this)}CreateRoute(Nt){const xt=d.MsgCreateRoute.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","CreateRoute",xt).then(Bt=>d.MsgCreateRouteResponse.decode(new lt.default.Reader(Bt)))}EditRoute(Nt){const xt=d.MsgEditRoute.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","EditRoute",xt).then(Bt=>d.MsgEditRouteResponse.decode(new lt.default.Reader(Bt)))}DeleteRoute(Nt){const xt=d.MsgDeleteRoute.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","DeleteRoute",xt).then(Bt=>d.MsgDeleteRouteResponse.decode(new lt.default.Reader(Bt)))}EditRouteName(Nt){const xt=d.MsgEditRouteName.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","EditRouteName",xt).then(Bt=>d.MsgEditRouteNameResponse.decode(new lt.default.Reader(Bt)))}}d.MsgClientImpl=nn,lt.default.util.Long!==ct.default&&(lt.default.util.Long=ct.default,lt.default.configure());function Qt(wt){return wt!=null}})(tx$3);var tx$2={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgInvestmintResponse=d.MsgInvestmint=d.protobufPackage=void 0;const dt=coin,ct=b(long),lt=b(minimal);d.protobufPackage="cyber.resources.v1beta1";function ht(){return{neuron:"",amount:void 0,resource:"",length:ct.default.UZERO}}d.MsgInvestmint={encode(Pt,Jt=lt.default.Writer.create()){return Pt.neuron!==""&&Jt.uint32(10).string(Pt.neuron),Pt.amount!==void 0&&dt.Coin.encode(Pt.amount,Jt.uint32(18).fork()).ldelim(),Pt.resource!==""&&Jt.uint32(26).string(Pt.resource),Pt.length.isZero()||Jt.uint32(32).uint64(Pt.length),Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=ht();for(;Zt.pos>>3){case 1:nn.neuron=Zt.string();break;case 2:nn.amount=dt.Coin.decode(Zt,Zt.uint32());break;case 3:nn.resource=Zt.string();break;case 4:nn.length=Zt.uint64();break;default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{neuron:kt(Pt.neuron)?String(Pt.neuron):"",amount:kt(Pt.amount)?dt.Coin.fromJSON(Pt.amount):void 0,resource:kt(Pt.resource)?String(Pt.resource):"",length:kt(Pt.length)?ct.default.fromValue(Pt.length):ct.default.UZERO}},toJSON(Pt){const Jt={};return Pt.neuron!==void 0&&(Jt.neuron=Pt.neuron),Pt.amount!==void 0&&(Jt.amount=Pt.amount?dt.Coin.toJSON(Pt.amount):void 0),Pt.resource!==void 0&&(Jt.resource=Pt.resource),Pt.length!==void 0&&(Jt.length=(Pt.length||ct.default.UZERO).toString()),Jt},fromPartial(Pt){const Jt=ht();return Jt.neuron=Pt.neuron??"",Jt.amount=Pt.amount!==void 0&&Pt.amount!==null?dt.Coin.fromPartial(Pt.amount):void 0,Jt.resource=Pt.resource??"",Jt.length=Pt.length!==void 0&&Pt.length!==null?ct.default.fromValue(Pt.length):ct.default.UZERO,Jt}};function mt(){return{}}d.MsgInvestmintResponse={encode(Pt,Jt=lt.default.Writer.create()){return Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=mt();for(;Zt.pos>>3){default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{}},toJSON(Pt){return{}},fromPartial(Pt){return mt()}};class vt{constructor(Jt){this.rpc=Jt,this.Investmint=this.Investmint.bind(this)}Investmint(Jt){const Zt=d.MsgInvestmint.encode(Jt).finish();return this.rpc.request("cyber.resources.v1beta1.Msg","Investmint",Zt).then(nn=>d.MsgInvestmintResponse.decode(new lt.default.Reader(nn)))}}d.MsgClientImpl=vt,lt.default.util.Long!==ct.default&&(lt.default.util.Long=ct.default,lt.default.configure());function kt(Pt){return Pt!=null}})(tx$2);var registryTypes={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.RegistryTypes=d.TendermintRegistryTypes=d.CosmwasmRegistryTypes=d.CosmosRegistryTypes=d.CyberRegistryTypes=void 0;var b;(function(ht){ht.MsgCyberlink="/cyber.graph.v1beta1.MsgCyberlink",ht.MsgInvestmint="/cyber.resources.v1beta1.MsgInvestmint",ht.MsgCreateRoute="/cyber.grid.v1beta1.MsgCreateRoute",ht.MsgEditRoute="/cyber.grid.v1beta1.MsgEditRoute",ht.MsgEditRouteName="/cyber.grid.v1beta1.MsgEditRouteName",ht.MsgDeleteRoute="/cyber.grid.v1beta1.MsgDeleteRoute"})(b=d.CyberRegistryTypes||(d.CyberRegistryTypes={}));var dt;(function(ht){ht.MsgDeposit="/cosmos.gov.v1beta1.MsgDeposit",ht.MsgExec="/cosmos.authz.v1beta1.MsgExec",ht.MsgGrant="/cosmos.authz.v1beta1.MsgGrant",ht.MsgRevoke="/cosmos.authz.v1beta1.MsgRevoke"})(dt=d.CosmosRegistryTypes||(d.CosmosRegistryTypes={}));var ct;(function(ht){ht.MsgClearAdmin="/cosmwasm.wasm.v1beta1.MsgClearAdmin",ht.MsgMigrateContract="/cosmwasm.wasm.v1beta1.MsgMigrateContract",ht.MsgUpdateAdmin="/cosmwasm.wasm.v1beta1.MsgUpdateAdmin",ht.MsgExecuteContract="/cosmwasm.wasm.v1.MsgExecuteContract",ht.MsgInstantiateContract="/cosmwasm.wasm.v1.MsgInstantiateContract",ht.MsgStoreCode="/cosmwasm.wasm.v1.MsgStoreCode"})(ct=d.CosmwasmRegistryTypes||(d.CosmwasmRegistryTypes={}));var lt;(function(ht){ht.MsgSwapWithinBatch="/tendermint.liquidity.v1beta1.MsgSwapWithinBatch",ht.MsgDepositWithinBatch="/tendermint.liquidity.v1beta1.MsgDepositWithinBatch",ht.MsgWithdrawWithinBatch="/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch",ht.MsgCreatePool="/tendermint.liquidity.v1beta1.MsgCreatePool"})(lt=d.TendermintRegistryTypes||(d.TendermintRegistryTypes={})),d.RegistryTypes={cyber:b,cosmos:dt,cosmwasm:ct,tendermint:lt}})(registryTypes);var renderItems={},tx$1={},bank={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.Metadata=d.DenomUnit=d.Supply=d.Output=d.Input=d.SendEnabled=d.Params=d.protobufPackage=void 0;const lt=coin$1,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmos.bank.v1beta1";function vt(){return{sendEnabled:[],defaultSendEnabled:!1}}d.Params={encode(Qt,wt=ht.Writer.create()){for(const Nt of Qt.sendEnabled)d.SendEnabled.encode(Nt,wt.uint32(10).fork()).ldelim();return Qt.defaultSendEnabled===!0&&wt.uint32(16).bool(Qt.defaultSendEnabled),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=vt();for(;Nt.pos>>3){case 1:Et.sendEnabled.push(d.SendEnabled.decode(Nt,Nt.uint32()));break;case 2:Et.defaultSendEnabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{sendEnabled:Array.isArray(Qt==null?void 0:Qt.sendEnabled)?Qt.sendEnabled.map(wt=>d.SendEnabled.fromJSON(wt)):[],defaultSendEnabled:(0,mt.isSet)(Qt.defaultSendEnabled)?!!Qt.defaultSendEnabled:!1}},toJSON(Qt){const wt={};return Qt.sendEnabled?wt.sendEnabled=Qt.sendEnabled.map(Nt=>Nt?d.SendEnabled.toJSON(Nt):void 0):wt.sendEnabled=[],Qt.defaultSendEnabled!==void 0&&(wt.defaultSendEnabled=Qt.defaultSendEnabled),wt},fromPartial(Qt){var Nt;const wt=vt();return wt.sendEnabled=((Nt=Qt.sendEnabled)==null?void 0:Nt.map(xt=>d.SendEnabled.fromPartial(xt)))||[],wt.defaultSendEnabled=Qt.defaultSendEnabled??!1,wt}};function kt(){return{denom:"",enabled:!1}}d.SendEnabled={encode(Qt,wt=ht.Writer.create()){return Qt.denom!==""&&wt.uint32(10).string(Qt.denom),Qt.enabled===!0&&wt.uint32(16).bool(Qt.enabled),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=kt();for(;Nt.pos>>3){case 1:Et.denom=Nt.string();break;case 2:Et.enabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{denom:(0,mt.isSet)(Qt.denom)?String(Qt.denom):"",enabled:(0,mt.isSet)(Qt.enabled)?!!Qt.enabled:!1}},toJSON(Qt){const wt={};return Qt.denom!==void 0&&(wt.denom=Qt.denom),Qt.enabled!==void 0&&(wt.enabled=Qt.enabled),wt},fromPartial(Qt){const wt=kt();return wt.denom=Qt.denom??"",wt.enabled=Qt.enabled??!1,wt}};function Pt(){return{address:"",coins:[]}}d.Input={encode(Qt,wt=ht.Writer.create()){Qt.address!==""&&wt.uint32(10).string(Qt.address);for(const Nt of Qt.coins)lt.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Pt();for(;Nt.pos>>3){case 1:Et.address=Nt.string();break;case 2:Et.coins.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{address:(0,mt.isSet)(Qt.address)?String(Qt.address):"",coins:Array.isArray(Qt==null?void 0:Qt.coins)?Qt.coins.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.address!==void 0&&(wt.address=Qt.address),Qt.coins?wt.coins=Qt.coins.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.coins=[],wt},fromPartial(Qt){var Nt;const wt=Pt();return wt.address=Qt.address??"",wt.coins=((Nt=Qt.coins)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Jt(){return{address:"",coins:[]}}d.Output={encode(Qt,wt=ht.Writer.create()){Qt.address!==""&&wt.uint32(10).string(Qt.address);for(const Nt of Qt.coins)lt.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Jt();for(;Nt.pos>>3){case 1:Et.address=Nt.string();break;case 2:Et.coins.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{address:(0,mt.isSet)(Qt.address)?String(Qt.address):"",coins:Array.isArray(Qt==null?void 0:Qt.coins)?Qt.coins.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.address!==void 0&&(wt.address=Qt.address),Qt.coins?wt.coins=Qt.coins.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.coins=[],wt},fromPartial(Qt){var Nt;const wt=Jt();return wt.address=Qt.address??"",wt.coins=((Nt=Qt.coins)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Zt(){return{total:[]}}d.Supply={encode(Qt,wt=ht.Writer.create()){for(const Nt of Qt.total)lt.Coin.encode(Nt,wt.uint32(10).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Zt();for(;Nt.pos>>3){case 1:Et.total.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{total:Array.isArray(Qt==null?void 0:Qt.total)?Qt.total.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.total?wt.total=Qt.total.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.total=[],wt},fromPartial(Qt){var Nt;const wt=Zt();return wt.total=((Nt=Qt.total)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Rt(){return{denom:"",exponent:0,aliases:[]}}d.DenomUnit={encode(Qt,wt=ht.Writer.create()){Qt.denom!==""&&wt.uint32(10).string(Qt.denom),Qt.exponent!==0&&wt.uint32(16).uint32(Qt.exponent);for(const Nt of Qt.aliases)wt.uint32(26).string(Nt);return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Rt();for(;Nt.pos>>3){case 1:Et.denom=Nt.string();break;case 2:Et.exponent=Nt.uint32();break;case 3:Et.aliases.push(Nt.string());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{denom:(0,mt.isSet)(Qt.denom)?String(Qt.denom):"",exponent:(0,mt.isSet)(Qt.exponent)?Number(Qt.exponent):0,aliases:Array.isArray(Qt==null?void 0:Qt.aliases)?Qt.aliases.map(wt=>String(wt)):[]}},toJSON(Qt){const wt={};return Qt.denom!==void 0&&(wt.denom=Qt.denom),Qt.exponent!==void 0&&(wt.exponent=Math.round(Qt.exponent)),Qt.aliases?wt.aliases=Qt.aliases.map(Nt=>Nt):wt.aliases=[],wt},fromPartial(Qt){var Nt;const wt=Rt();return wt.denom=Qt.denom??"",wt.exponent=Qt.exponent??0,wt.aliases=((Nt=Qt.aliases)==null?void 0:Nt.map(xt=>xt))||[],wt}};function nn(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol:""}}d.Metadata={encode(Qt,wt=ht.Writer.create()){Qt.description!==""&&wt.uint32(10).string(Qt.description);for(const Nt of Qt.denomUnits)d.DenomUnit.encode(Nt,wt.uint32(18).fork()).ldelim();return Qt.base!==""&&wt.uint32(26).string(Qt.base),Qt.display!==""&&wt.uint32(34).string(Qt.display),Qt.name!==""&&wt.uint32(42).string(Qt.name),Qt.symbol!==""&&wt.uint32(50).string(Qt.symbol),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=nn();for(;Nt.pos>>3){case 1:Et.description=Nt.string();break;case 2:Et.denomUnits.push(d.DenomUnit.decode(Nt,Nt.uint32()));break;case 3:Et.base=Nt.string();break;case 4:Et.display=Nt.string();break;case 5:Et.name=Nt.string();break;case 6:Et.symbol=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{description:(0,mt.isSet)(Qt.description)?String(Qt.description):"",denomUnits:Array.isArray(Qt==null?void 0:Qt.denomUnits)?Qt.denomUnits.map(wt=>d.DenomUnit.fromJSON(wt)):[],base:(0,mt.isSet)(Qt.base)?String(Qt.base):"",display:(0,mt.isSet)(Qt.display)?String(Qt.display):"",name:(0,mt.isSet)(Qt.name)?String(Qt.name):"",symbol:(0,mt.isSet)(Qt.symbol)?String(Qt.symbol):""}},toJSON(Qt){const wt={};return Qt.description!==void 0&&(wt.description=Qt.description),Qt.denomUnits?wt.denomUnits=Qt.denomUnits.map(Nt=>Nt?d.DenomUnit.toJSON(Nt):void 0):wt.denomUnits=[],Qt.base!==void 0&&(wt.base=Qt.base),Qt.display!==void 0&&(wt.display=Qt.display),Qt.name!==void 0&&(wt.name=Qt.name),Qt.symbol!==void 0&&(wt.symbol=Qt.symbol),wt},fromPartial(Qt){var Nt;const wt=nn();return wt.description=Qt.description??"",wt.denomUnits=((Nt=Qt.denomUnits)==null?void 0:Nt.map(xt=>d.DenomUnit.fromPartial(xt)))||[],wt.base=Qt.base??"",wt.display=Qt.display??"",wt.name=Qt.name??"",wt.symbol=Qt.symbol??"",wt}}})(bank);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt);var xt=Object.getOwnPropertyDescriptor(Qt,wt);(!xt||("get"in xt?!Qt.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return Qt[wt]}}),Object.defineProperty(nn,Nt,xt)}:function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt),nn[Nt]=Qt[wt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(nn,Qt){Object.defineProperty(nn,"default",{enumerable:!0,value:Qt})}:function(nn,Qt){nn.default=Qt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(nn){if(nn&&nn.__esModule)return nn;var Qt={};if(nn!=null)for(var wt in nn)wt!=="default"&&Object.prototype.hasOwnProperty.call(nn,wt)&&b(Qt,nn,wt);return dt(Qt,nn),Qt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgMultiSendResponse=d.MsgMultiSend=d.MsgSendResponse=d.MsgSend=d.protobufPackage=void 0;const lt=coin$1,ht=bank,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.bank.v1beta1";function kt(){return{fromAddress:"",toAddress:"",amount:[]}}d.MsgSend={encode(nn,Qt=mt.Writer.create()){nn.fromAddress!==""&&Qt.uint32(10).string(nn.fromAddress),nn.toAddress!==""&&Qt.uint32(18).string(nn.toAddress);for(const wt of nn.amount)lt.Coin.encode(wt,Qt.uint32(26).fork()).ldelim();return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=kt();for(;wt.pos>>3){case 1:xt.fromAddress=wt.string();break;case 2:xt.toAddress=wt.string();break;case 3:xt.amount.push(lt.Coin.decode(wt,wt.uint32()));break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{fromAddress:(0,vt.isSet)(nn.fromAddress)?String(nn.fromAddress):"",toAddress:(0,vt.isSet)(nn.toAddress)?String(nn.toAddress):"",amount:Array.isArray(nn==null?void 0:nn.amount)?nn.amount.map(Qt=>lt.Coin.fromJSON(Qt)):[]}},toJSON(nn){const Qt={};return nn.fromAddress!==void 0&&(Qt.fromAddress=nn.fromAddress),nn.toAddress!==void 0&&(Qt.toAddress=nn.toAddress),nn.amount?Qt.amount=nn.amount.map(wt=>wt?lt.Coin.toJSON(wt):void 0):Qt.amount=[],Qt},fromPartial(nn){var wt;const Qt=kt();return Qt.fromAddress=nn.fromAddress??"",Qt.toAddress=nn.toAddress??"",Qt.amount=((wt=nn.amount)==null?void 0:wt.map(Nt=>lt.Coin.fromPartial(Nt)))||[],Qt}};function Pt(){return{}}d.MsgSendResponse={encode(nn,Qt=mt.Writer.create()){return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Pt();for(;wt.pos>>3){default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{}},toJSON(nn){return{}},fromPartial(nn){return Pt()}};function Jt(){return{inputs:[],outputs:[]}}d.MsgMultiSend={encode(nn,Qt=mt.Writer.create()){for(const wt of nn.inputs)ht.Input.encode(wt,Qt.uint32(10).fork()).ldelim();for(const wt of nn.outputs)ht.Output.encode(wt,Qt.uint32(18).fork()).ldelim();return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Jt();for(;wt.pos>>3){case 1:xt.inputs.push(ht.Input.decode(wt,wt.uint32()));break;case 2:xt.outputs.push(ht.Output.decode(wt,wt.uint32()));break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{inputs:Array.isArray(nn==null?void 0:nn.inputs)?nn.inputs.map(Qt=>ht.Input.fromJSON(Qt)):[],outputs:Array.isArray(nn==null?void 0:nn.outputs)?nn.outputs.map(Qt=>ht.Output.fromJSON(Qt)):[]}},toJSON(nn){const Qt={};return nn.inputs?Qt.inputs=nn.inputs.map(wt=>wt?ht.Input.toJSON(wt):void 0):Qt.inputs=[],nn.outputs?Qt.outputs=nn.outputs.map(wt=>wt?ht.Output.toJSON(wt):void 0):Qt.outputs=[],Qt},fromPartial(nn){var wt,Nt;const Qt=Jt();return Qt.inputs=((wt=nn.inputs)==null?void 0:wt.map(xt=>ht.Input.fromPartial(xt)))||[],Qt.outputs=((Nt=nn.outputs)==null?void 0:Nt.map(xt=>ht.Output.fromPartial(xt)))||[],Qt}};function Zt(){return{}}d.MsgMultiSendResponse={encode(nn,Qt=mt.Writer.create()){return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Zt();for(;wt.pos>>3){default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{}},toJSON(nn){return{}},fromPartial(nn){return Zt()}};class Rt{constructor(Qt){this.rpc=Qt,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this)}Send(Qt){const wt=d.MsgSend.encode(Qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",wt).then(xt=>d.MsgSendResponse.decode(new mt.Reader(xt)))}MultiSend(Qt){const wt=d.MsgMultiSend.encode(Qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",wt).then(xt=>d.MsgMultiSendResponse.decode(new mt.Reader(xt)))}}d.MsgClientImpl=Rt})(tx$1);var __importDefault$b=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(renderItems,"__esModule",{value:!0});renderItems.renderItems=void 0;const encoding_1=build$j,math_1=build$f,queryclient_1=queryclient$1,tx_1=tx$1,tx_2=tx$a,tx_3=tx$9,tx_4=tx$8,tx_5=tx$6,tx_6=tx$5,long_1=__importDefault$b(long),tx_7=tx$4,tx_8=tx$3,tx_9=tx$2,tx_10=tx$c,testAddress="bostrom1frk9k38pvp70vheezhdfd4nvqnlsm9dw3j8hlq",testAddress2="bostrom1frk9k38pvp70vheezhdfd4nvqnlsm9dw3j8hlw",testContract="bostrom1nwnejwsdpqktusvh8qhxe5arsznjd5asdwutmaz9n5qcpl3dcmhsujhemd",testValidatorAddress="bostromvaloper135ca8hdpy9sk0ntwqzpzsvatyl48ptx52tn60p",depositCoin={denom:"boot",amount:"1000000"},depositCoins=[{denom:"boot",amount:"1000000"},{denom:"hydrogen",amount:"1000000"}];renderItems.renderItems=[{typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:tx_7.MsgCyberlink,data:{neuron:testAddress,links:[{from:"QmUX9mt8ftaHcn9Nc6SR4j9MsKkYfkcZqkfPTmMmBgeTe4",to:"QmUX9mt8ftaHcn9Nc6SR4j9MsKkYfkcZqkfPTmMmBgeTe4"}]}},{typeUrl:"/cyber.resources.v1beta1.MsgInvestmint",value:tx_9.MsgInvestmint,data:{neuron:testAddress,amount:{denom:"boot",amount:"1000000000"},resource:"millivolt",length:86400}},{typeUrl:"/cyber.grid.v1beta1.MsgCreateRoute",value:tx_8.MsgCreateRoute,data:{source:testAddress,destination:testAddress2,name:"nameTitle"}},{typeUrl:"/cyber.grid.v1beta1.MsgEditRoute",value:tx_8.MsgEditRoute,data:{source:testAddress,destination:testAddress2,value:{denom:"millivolt",amount:"1000"}}},{typeUrl:"/cyber.grid.v1beta1.MsgDeleteRoute",value:tx_8.MsgDeleteRoute,data:{source:testAddress,destination:testAddress2}},{typeUrl:"/cyber.grid.v1beta1.MsgEditRouteName",value:tx_8.MsgEditRouteName,data:{source:testAddress,destination:testAddress2,name:"nameTitle2"}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgCreatePool",value:tx_10.MsgCreatePool,data:{poolCreatorAddress:testAddress,poolTypeId:1,depositCoins}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch",value:tx_10.MsgWithdrawWithinBatch,data:{withdrawerAddress:testAddress,poolId:1,poolCoin:{denom:"pool70D7610CBA8E94B27BAD7806EBD826F5626C486BBF5C490D1463D72314353C66",amount:"1"}}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgDepositWithinBatch",value:tx_10.MsgDepositWithinBatch,data:{depositorAddress:testAddress,poolId:1,depositCoins}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgSwapWithinBatch",value:tx_10.MsgSwapWithinBatch,data:{swapRequesterAddress:testAddress,poolId:1,swapTypeId:1,offerCoin:depositCoin,demandCoinDenom:"hydrogen",offerCoinFee:{denom:"boot",amount:"1"},orderPrice:"10000000000000000"}},{typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:tx_1.MsgSend,data:{fromAddress:testAddress,toAddress:testAddress2,amount:[depositCoin]}},{typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:tx_4.MsgDelegate,data:{delegatorAddress:testAddress,validatorAddress:testValidatorAddress,amount:depositCoin}},{typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:tx_4.MsgBeginRedelegate,data:{delegatorAddress:testAddress,validatorSrcAddress:testValidatorAddress,validatorDstAddress:testValidatorAddress,amount:depositCoin}},{typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:tx_4.MsgUndelegate,data:{delegatorAddress:testAddress,validatorAddress:testValidatorAddress,amount:depositCoin}},{typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:tx_2.MsgWithdrawDelegatorReward,data:{delegatorAddress:testAddress,validatorAddress:testValidatorAddress}},{typeUrl:"/cosmos.gov.v1beta1.MsgVote",value:tx_3.MsgVote,data:{proposalId:(0,queryclient_1.longify)(1),voter:testAddress,option:1}},{typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposal",value:tx_3.MsgSubmitProposal,data:{proposer:testAddress,initialDeposit:[depositCoin],content:{typeUrl:"/cosmos.gov.v1beta1.TextProposal",value:{title:"title",description:"description"}}}},{typeUrl:"/cosmos.gov.v1beta1.MsgDeposit",value:tx_3.MsgDeposit,data:{depositor:testAddress,proposalId:(0,queryclient_1.longify)(1),amount:[depositCoin]}},{typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:tx_6.MsgTransfer,data:{sourcePort:"transfer",sourceChannel:"channel-95",sender:testAddress,receiver:"osmo1snkhz3snfeyxkmyw6zutwjlarkf9pq5vfrla7w",token:depositCoin,timeoutHeight:"0-0",timeoutTimestamp:"1645655169591000000"}},{typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:tx_5.MsgStoreCode,data:{sender:testAddress,wasmByteCode:""}},{typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:tx_5.MsgClearAdmin,data:{sender:testAddress,contract:testContract}},{typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:tx_5.MsgUpdateAdmin,data:{sender:testAddress,contract:testContract,newAdmin:testAddress2}},{typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:tx_5.MsgExecuteContract,data:{sender:testAddress,contract:testContract,msg:(0,encoding_1.toUtf8)(JSON.stringify({})),funds:[depositCoin]}},{typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:tx_5.MsgInstantiateContract,data:{sender:testAddress,codeId:long_1.default.fromString(new math_1.Uint53(1).toString()),msg:(0,encoding_1.toUtf8)(JSON.stringify({})),label:"labelname",funds:[depositCoin],admin:testAddress}},{typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:tx_5.MsgMigrateContract,data:{sender:testAddress,contract:testContract,codeId:long_1.default.fromString(new math_1.Uint53(1).toString()),msg:(0,encoding_1.toUtf8)(JSON.stringify({}))}}];(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(wr){return wr&&wr.__esModule?wr:{default:wr}};Object.defineProperty(d,"__esModule",{value:!0}),d.SigningCyberClient=d.cyberRegistryTypes=d.OfflineDappWallet=d.isOfflineDappSigner=d.isOfflineDirectSigner=d.isOfflineAminoSigner=d.chain=d.links=d.link=void 0;const dt=build$c,ct=build$h,lt=build$b,ht=build$j,mt=build$f,vt=build$d,kt=build$e,Pt=queryclient$1,Jt=build$3,Zt=build$9,Rt=tx$b,nn=tx$a,Qt=gov,wt=tx$9,Nt=tx$8,xt=signing,Et=tx$7,Bt=tx$6,Tt=any,Mt=tx$5,jt=b(fastDeepEqual),Ht=b(long),an=b(pako),yt=aminomsgs,$t=tx$4,Yt=tx$3,Kt=tx$2,St=tx$c,It=cyberclient,Gt=registryTypes,Ut=renderItems;function Vt(wr,nr){return{from:wr,to:nr}}d.link=Vt;function qt(wr,nr){return[Vt(wr,nr)]}d.links=qt;function fn(wr){const nr=[];for(let fr=0;fr{nr.push({[fr.typeUrl.toString()]:{proto:{type:fr.typeUrl,value:fr.value.fromPartial(fr.data)},amino:{type:this.aminoTypes.toAmino({typeUrl:fr.typeUrl,value:fr.value.fromPartial(fr.data)}).type,value:this.aminoTypes.toAmino({typeUrl:fr.typeUrl,value:fr.value.fromPartial(fr.data)}).value}}})}),JSON.stringify(nr)}static async remotedapp(nr,fr={}){return new Nn(void 0,nr,fr)}constructor(nr,fr,xr){super(nr);const{registry:zr=An(),aminoTypes:Jr=new kt.AminoTypes(gn())}=xr;this.registry=zr,this.aminoTypes=Jr,this.signer=fr}async simulate(nr,fr,xr){const zr=fr.map(Mn=>this.registry.encodeAsAny(Mn)),Jr=(await this.signer.getAccounts()).find(Mn=>Mn.address===nr);if(!Jr)throw new Error("Failed to retrieve account from signer");const ro=(0,dt.encodeSecp256k1Pubkey)(Jr.pubkey),{sequence:xn}=await this.getSequence(nr),{gasInfo:_o}=await this.forceGetQueryClient().tx.simulate(zr,xr,ro,xn);return(0,Zt.assertDefined)(_o),mt.Uint53.fromString(_o.gasUsed.toString()).toNumber()}async cyberlink(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:$t.MsgCyberlink.fromPartial({neuron:nr,links:qt(fr,xr)})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async motif(nr,fr,xr,zr=""){const Jr={typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:$t.MsgCyberlink.fromPartial({neuron:nr,links:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async linkchain(nr,fr,xr,zr=""){const Jr={typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:$t.MsgCyberlink.fromPartial({neuron:nr,links:fn(fr)})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async investmint(nr,fr,xr,zr,Jr,ro=""){const xn={typeUrl:"/cyber.resources.v1beta1.MsgInvestmint",value:Kt.MsgInvestmint.fromPartial({neuron:nr,amount:fr,resource:xr,length:Ht.default.fromString(new mt.Uint53(zr).toString())})};return this.signAndBroadcast(nr,[xn],Jr,ro)}async createEnergyRoute(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.grid.v1beta1.MsgCreateRoute",value:Yt.MsgCreateRoute.fromPartial({source:nr,destination:fr,name:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async editEnergyRoute(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.grid.v1beta1.MsgEditRoute",value:Yt.MsgEditRoute.fromPartial({source:nr,destination:fr,value:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async deleteEnergyRoute(nr,fr,xr,zr=""){const Jr={typeUrl:"/cyber.grid.v1beta1.MsgDeleteRoute",value:Yt.MsgDeleteRoute.fromPartial({source:nr,destination:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async editEnergyRouteName(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.grid.v1beta1.MsgEditRouteName",value:Yt.MsgEditRouteName.fromPartial({source:nr,destination:fr,name:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async upload(nr,fr,xr,zr=""){const Jr=an.default.gzip(fr,{level:9}),ro={typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:Bt.MsgStoreCode.fromPartial({sender:nr,wasmByteCode:Jr})};return this.signAndBroadcast(nr,[ro],xr,zr)}async instantiate(nr,fr,xr,zr,Jr,ro={}){const xn={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:Bt.MsgInstantiateContract.fromPartial({sender:nr,codeId:Ht.default.fromString(new mt.Uint53(fr).toString()),label:zr,msg:(0,ht.toUtf8)(JSON.stringify(xr)),funds:[...ro.funds||[]],admin:ro.admin})};return this.signAndBroadcast(nr,[xn],Jr,ro.memo)}async updateAdmin(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:Bt.MsgUpdateAdmin.fromPartial({sender:nr,contract:fr,newAdmin:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async clearAdmin(nr,fr,xr,zr=""){const Jr={typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:Bt.MsgClearAdmin.fromPartial({sender:nr,contract:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async migrate(nr,fr,xr,zr,Jr,ro=""){const xn={typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:Bt.MsgMigrateContract.fromPartial({sender:nr,contract:fr,codeId:Ht.default.fromString(new mt.Uint53(xr).toString()),msg:(0,ht.toUtf8)(JSON.stringify(zr))})};return this.signAndBroadcast(nr,[xn],Jr,ro)}async execute(nr,fr,xr,zr,Jr="",ro){const xn={typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:Bt.MsgExecuteContract.fromPartial({sender:nr,contract:fr,msg:(0,ht.toUtf8)(JSON.stringify(xr)),funds:[...ro||[]]})};return this.signAndBroadcast(nr,[xn],zr,Jr)}async executeArray(nr,fr,xr,zr,Jr="",ro){const xn=xr.map(_o=>({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:Bt.MsgExecuteContract.fromPartial({sender:nr,contract:fr,msg:(0,ht.toUtf8)(JSON.stringify(_o)),funds:[...ro||[]]})}));return this.signAndBroadcast(nr,xn,zr,Jr)}async sendTokens(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:nr,toAddress:fr,amount:[...xr]}};return this.signAndBroadcast(nr,[ro],zr,Jr)}async delegateTokens(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:Nt.MsgDelegate.fromPartial({delegatorAddress:nr,validatorAddress:fr,amount:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async redelegateTokens(nr,fr,xr,zr,Jr,ro=""){const xn={typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:Nt.MsgBeginRedelegate.fromPartial({delegatorAddress:nr,validatorSrcAddress:fr,validatorDstAddress:xr,amount:zr})};return this.signAndBroadcast(nr,[xn],Jr,ro)}async undelegateTokens(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:Nt.MsgUndelegate.fromPartial({delegatorAddress:nr,validatorAddress:fr,amount:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async withdrawRewards(nr,fr,xr,zr=""){const Jr={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:nn.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:nr,validatorAddress:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async withdrawAllRewards(nr,fr,xr,zr=""){const Jr=fr.map(ro=>({typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:nn.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:nr,validatorAddress:ro})}));return this.signAndBroadcast(nr,Jr,xr,zr)}async voteProposal(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.gov.v1beta1.MsgVote",value:wt.MsgVote.fromPartial({proposalId:(0,Pt.longify)(fr),voter:nr,option:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async submitProposal(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposal",value:wt.MsgSubmitProposal.fromPartial({content:Tt.Any.fromPartial({typeUrl:fr.typeUrl,value:Uint8Array.from(Qt.TextProposal.encode(fr.value).finish())}),initialDeposit:xr,proposer:nr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async depositProposal(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.gov.v1beta1.MsgDeposit",value:wt.MsgDeposit.fromPartial({depositor:nr,proposalId:(0,Pt.longify)(fr),amount:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async sendIbcTokens(nr,fr,xr,zr,Jr,ro,xn,_o,Mn=""){const Zn=xn?Ht.default.fromNumber(xn).multiply(1e9):void 0,rr={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:Mt.MsgTransfer.fromPartial({sourcePort:zr,sourceChannel:Jr,sender:nr,receiver:fr,token:xr,timeoutHeight:ro,timeoutTimestamp:Zn})};return this.signAndBroadcast(nr,[rr],_o,Mn)}async swapWithinBatch(nr,fr,xr,zr,Jr,ro,xn,_o,Mn=""){const Zn={typeUrl:"/tendermint.liquidity.v1beta1.MsgSwapWithinBatch",value:St.MsgSwapWithinBatch.fromPartial({swapRequesterAddress:nr,poolId:fr,swapTypeId:xr,offerCoin:zr,demandCoinDenom:Jr,offerCoinFee:ro,orderPrice:xn})};return this.signAndBroadcast(nr,[Zn],_o,Mn)}async depositWithinBatch(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/tendermint.liquidity.v1beta1.MsgDepositWithinBatch",value:St.MsgDepositWithinBatch.fromPartial({depositorAddress:nr,poolId:fr,depositCoins:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async withdwawWithinBatch(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch",value:St.MsgWithdrawWithinBatch.fromPartial({withdrawerAddress:nr,poolId:fr,poolCoin:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async createPool(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/tendermint.liquidity.v1beta1.MsgCreatePool",value:St.MsgCreatePool.fromPartial({poolCreatorAddress:nr,poolTypeId:fr,depositCoins:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async exec(nr,fr,xr,zr=""){const Jr={typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:Rt.MsgExec.fromPartial({grantee:nr,msgs:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async grant(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.authz.v1beta1.MsgGrant",value:Rt.MsgGrant.fromPartial({granter:nr,grantee:fr,grant:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async revoke(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.authz.v1beta1.MsgRevoke",value:Rt.MsgRevoke.fromPartial({granter:nr,grantee:fr,msgTypeUrl:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async signAndBroadcast(nr,fr,xr,zr=""){let Jr;if(xr=="auto"||typeof xr=="number"){const _o=await this.simulate(nr,fr,zr);Jr={amount:[],gas:Math.round(_o*(typeof xr=="number"?xr:1.3)).toString()}}else Jr=xr;const ro=await this.sign(nr,fr,Jr,zr),xn=Et.TxRaw.encode(ro).finish();return this.broadcastTx(xn)}async signAndBroadcastWithAmino(nr,fr,xr,zr=""){const Jr=fr.map(_o=>this.aminoTypes.fromAmino({type:_o.type,value:_o.value}));if(zt(this.signer))return Jr.map(_o=>(0,ht.toBase64)(Buffer$1.from(JSON.stringify(_o),"utf-8")));const ro=await this.sign(nr,Jr,xr,zr),xn=Et.TxRaw.encode(ro).finish();return this.broadcastTx(xn)}async sign(nr,fr,xr,zr,Jr){let ro;if(Jr)ro=Jr;else{const{accountNumber:xn,sequence:_o}=await this.getSequence(nr),Mn=await this.getChainId();ro={accountNumber:xn,sequence:_o,chainId:Mn}}return Dt(this.signer)?this.signDirect(nr,fr,xr,zr,ro):this.signAmino(nr,fr,xr,zr,ro)}async signAmino(nr,fr,xr,zr,{accountNumber:Jr,sequence:ro,chainId:xn}){(0,Zt.assert)(dn(this.signer));const _o=(await this.signer.getAccounts()).find(Vr=>Vr.address===nr);if(!_o)throw new Error("Failed to retrieve account from signer");const Mn=(0,vt.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(_o.pubkey)),Zn=xt.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,rr=fr.map(Vr=>this.aminoTypes.toAmino(Vr)),mr=(0,dt.makeSignDoc)(rr,xr,xn,zr,Jr,ro),{signature:pn,signed:Hr}=await this.signer.signAmino(nr,mr),No={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:Hr.msgs.map(Vr=>this.aminoTypes.fromAmino(Vr)),memo:Hr.memo}},Ro=this.registry.encode(No),br=mt.Int53.fromString(Hr.fee.gas).toNumber(),yr=mt.Int53.fromString(Hr.sequence).toNumber(),Qr=(0,vt.makeAuthInfoBytes)([{pubkey:Mn,sequence:yr}],Hr.fee.amount,br,xr.granter,xr.payer,Zn);return Et.TxRaw.fromPartial({bodyBytes:Ro,authInfoBytes:Qr,signatures:[(0,ht.fromBase64)(pn.signature)]})}async signDirect(nr,fr,xr,zr,{accountNumber:Jr,sequence:ro,chainId:xn}){(0,Zt.assert)(Dt(this.signer));const _o=(await this.signer.getAccounts()).find(Ro=>Ro.address===nr);if(!_o)throw new Error("Failed to retrieve account from signer");const Mn=(0,vt.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(_o.pubkey)),Zn={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:fr,memo:zr}},rr=this.registry.encode(Zn),mr=mt.Int53.fromString(xr.gas).toNumber(),pn=(0,vt.makeAuthInfoBytes)([{pubkey:Mn,sequence:ro}],xr.amount,mr,xr.granter,xr.payer),Hr=(0,vt.makeSignDoc)(rr,pn,xn,Jr),{signature:ao,signed:No}=await this.signer.signDirect(nr,Hr);return Et.TxRaw.fromPartial({bodyBytes:No.bodyBytes,authInfoBytes:No.authInfoBytes,signatures:[(0,ht.fromBase64)(ao.signature)]})}async signData(nr,fr){const Jr="",ro={gas:"0",amount:[]},xn="",Mn=(Array.isArray(fr)?fr:[fr]).map(Hr=>({type:"sign/MsgSignData",value:{signer:nr,data:(0,ht.toBase64)(Hr)}}));if((0,Zt.assert)(dn(this.signer)),!(await this.signer.getAccounts()).find(Hr=>Hr.address===nr))throw new Error("Failed to retrieve account from signer");const rr=(0,dt.makeSignDoc)(Mn,ro,Jr,xn,0,0),{signature:mr,signed:pn}=await this.signer.signAmino(nr,rr);if(!(0,jt.default)(rr,pn))throw new Error("The signed document differs from the signing instruction. This is not supported for ADR-036.");return(0,dt.makeStdTx)(rr,mr)}static async verifySignedData(nr){if(nr.memo!=="")throw new Error("Memo must be empty.");if(nr.fee.gas!=="0")throw new Error("Fee gas must 0.");if(nr.fee.amount.length!==0)throw new Error("Fee amount must be an empty array.");const fr=0,xr=0,zr="",Jr=nr.msg;if(!Jr.every(yt.isMsgSignData))throw new Error("Found message that is not the expected type.");if(Jr.length===0)throw new Error("No message found. Without messages we cannot determine the signer address.");const ro=nr.signatures;if(ro.length!==1)throw new Error("Must have exactly one signature to be supported.");const xn=ro[0];if(!(0,dt.isSecp256k1Pubkey)(xn.pub_key))throw new Error("Only secp256k1 signatures are supported.");const _o=(0,dt.serializeSignDoc)((0,dt.makeSignDoc)(nr.msg,nr.fee,zr,nr.memo,fr,xr)),Mn=(0,lt.sha256)(_o),Zn=lt.Secp256k1Signature.fromFixedLength((0,ht.fromBase64)(xn.signature)),rr=(0,ht.fromBase64)(xn.pub_key.value),mr=(0,dt.rawSecp256k1PubkeyToRawAddress)(rr);if(Jr.some(Hr=>!(0,Zt.arrayContentEquals)((0,ht.fromBech32)(Hr.value.signer).data,mr)))throw new Error("Found mismatch between signer in message and public key");return await lt.Secp256k1.verifySignature(Zn,Mn,rr)}}d.SigningCyberClient=Nn})(signingcyberclient);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,mt,vt,kt){kt===void 0&&(kt=vt);var Pt=Object.getOwnPropertyDescriptor(mt,vt);(!Pt||("get"in Pt?!mt.__esModule:Pt.writable||Pt.configurable))&&(Pt={enumerable:!0,get:function(){return mt[vt]}}),Object.defineProperty(ht,kt,Pt)}:function(ht,mt,vt,kt){kt===void 0&&(kt=vt),ht[kt]=mt[vt]}),dt=commonjsGlobal&&commonjsGlobal.__exportStar||function(ht,mt){for(var vt in ht)vt!=="default"&&!Object.prototype.hasOwnProperty.call(mt,vt)&&b(mt,ht,vt)};Object.defineProperty(d,"__esModule",{value:!0}),d.OfflineDappWallet=d.SigningCyberClient=d.CyberClient=void 0;var ct=cyberclient;Object.defineProperty(d,"CyberClient",{enumerable:!0,get:function(){return ct.CyberClient}});var lt=signingcyberclient;Object.defineProperty(d,"SigningCyberClient",{enumerable:!0,get:function(){return lt.SigningCyberClient}}),Object.defineProperty(d,"OfflineDappWallet",{enumerable:!0,get:function(){return lt.OfflineDappWallet}}),dt(registryTypes,d)})(build$i);var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(d){return this.listeners.add(d),this.onSubscribe(),()=>{this.listeners.delete(d),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window>"u"||"Deno"in globalThis;function noop$1(){}function functionalUpdate(d,b){return typeof d=="function"?d(b):d}function isValidTimeout(d){return typeof d=="number"&&d>=0&&d!==1/0}function timeUntilStale(d,b){return Math.max(d+(b||0)-Date.now(),0)}function matchQuery(d,b){const{type:dt="all",exact:ct,fetchStatus:lt,predicate:ht,queryKey:mt,stale:vt}=d;if(mt){if(ct){if(b.queryHash!==hashQueryKeyByOptions(mt,b.options))return!1}else if(!partialMatchKey(b.queryKey,mt))return!1}if(dt!=="all"){const kt=b.isActive();if(dt==="active"&&!kt||dt==="inactive"&&kt)return!1}return!(typeof vt=="boolean"&&b.isStale()!==vt||lt&<!==b.state.fetchStatus||ht&&!ht(b))}function matchMutation(d,b){const{exact:dt,status:ct,predicate:lt,mutationKey:ht}=d;if(ht){if(!b.options.mutationKey)return!1;if(dt){if(hashKey(b.options.mutationKey)!==hashKey(ht))return!1}else if(!partialMatchKey(b.options.mutationKey,ht))return!1}return!(ct&&b.state.status!==ct||lt&&!lt(b))}function hashQueryKeyByOptions(d,b){return((b==null?void 0:b.queryKeyHashFn)||hashKey)(d)}function hashKey(d){return JSON.stringify(d,(b,dt)=>isPlainObject$1(dt)?Object.keys(dt).sort().reduce((ct,lt)=>(ct[lt]=dt[lt],ct),{}):dt)}function partialMatchKey(d,b){return d===b?!0:typeof d!=typeof b?!1:d&&b&&typeof d=="object"&&typeof b=="object"?!Object.keys(b).some(dt=>!partialMatchKey(d[dt],b[dt])):!1}function replaceEqualDeep(d,b){if(d===b)return d;const dt=isPlainArray(d)&&isPlainArray(b);if(dt||isPlainObject$1(d)&&isPlainObject$1(b)){const ct=dt?d:Object.keys(d),lt=ct.length,ht=dt?b:Object.keys(b),mt=ht.length,vt=dt?[]:{};let kt=0;for(let Pt=0;Pt{setTimeout(b,d)})}function replaceData(d,b,dt){return typeof dt.structuralSharing=="function"?dt.structuralSharing(d,b):dt.structuralSharing!==!1?replaceEqualDeep(d,b):b}function addToEnd(d,b,dt=0){const ct=[...d,b];return dt&&ct.length>dt?ct.slice(1):ct}function addToStart(d,b,dt=0){const ct=[b,...d];return dt&&ct.length>dt?ct.slice(0,-1):ct}var skipToken=Symbol(),ensureQueryFn=(d,b)=>!d.queryFn&&(b!=null&&b.initialPromise)?()=>b.initialPromise:!d.queryFn||d.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${d.queryHash}'`)):d.queryFn,Zl,Ql,y0,o2,FocusManager=(o2=class extends Subscribable{constructor(){super();Cs(this,Zl,void 0);Cs(this,Ql,void 0);Cs(this,y0,void 0);ps(this,y0,b=>{if(!isServer&&window.addEventListener){const dt=()=>b();return window.addEventListener("visibilitychange",dt,!1),()=>{window.removeEventListener("visibilitychange",dt)}}})}onSubscribe(){Co(this,Ql)||this.setEventListener(Co(this,y0))}onUnsubscribe(){var b;this.hasListeners()||((b=Co(this,Ql))==null||b.call(this),ps(this,Ql,void 0))}setEventListener(b){var dt;ps(this,y0,b),(dt=Co(this,Ql))==null||dt.call(this),ps(this,Ql,b(ct=>{typeof ct=="boolean"?this.setFocused(ct):this.onFocus()}))}setFocused(b){Co(this,Zl)!==b&&(ps(this,Zl,b),this.onFocus())}onFocus(){const b=this.isFocused();this.listeners.forEach(dt=>{dt(b)})}isFocused(){var b;return typeof Co(this,Zl)=="boolean"?Co(this,Zl):((b=globalThis.document)==null?void 0:b.visibilityState)!=="hidden"}},Zl=new WeakMap,Ql=new WeakMap,y0=new WeakMap,o2),focusManager=new FocusManager,_0,$l,C0,a2,OnlineManager=(a2=class extends Subscribable{constructor(){super();Cs(this,_0,!0);Cs(this,$l,void 0);Cs(this,C0,void 0);ps(this,C0,b=>{if(!isServer&&window.addEventListener){const dt=()=>b(!0),ct=()=>b(!1);return window.addEventListener("online",dt,!1),window.addEventListener("offline",ct,!1),()=>{window.removeEventListener("online",dt),window.removeEventListener("offline",ct)}}})}onSubscribe(){Co(this,$l)||this.setEventListener(Co(this,C0))}onUnsubscribe(){var b;this.hasListeners()||((b=Co(this,$l))==null||b.call(this),ps(this,$l,void 0))}setEventListener(b){var dt;ps(this,C0,b),(dt=Co(this,$l))==null||dt.call(this),ps(this,$l,b(this.setOnline.bind(this)))}setOnline(b){Co(this,_0)!==b&&(ps(this,_0,b),this.listeners.forEach(ct=>{ct(b)}))}isOnline(){return Co(this,_0)}},_0=new WeakMap,$l=new WeakMap,C0=new WeakMap,a2),onlineManager=new OnlineManager;function defaultRetryDelay(d){return Math.min(1e3*2**d,3e4)}function canFetch(d){return(d??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(d){this.revert=d==null?void 0:d.revert,this.silent=d==null?void 0:d.silent}};function isCancelledError(d){return d instanceof CancelledError}function createRetryer(d){let b=!1,dt=0,ct=!1,lt,ht,mt;const vt=new Promise((xt,Et)=>{ht=xt,mt=Et}),kt=xt=>{var Et;ct||(Qt(new CancelledError(xt)),(Et=d.abort)==null||Et.call(d))},Pt=()=>{b=!0},Jt=()=>{b=!1},Zt=()=>focusManager.isFocused()&&(d.networkMode==="always"||onlineManager.isOnline())&&d.canRun(),Rt=()=>canFetch(d.networkMode)&&d.canRun(),nn=xt=>{var Et;ct||(ct=!0,(Et=d.onSuccess)==null||Et.call(d,xt),lt==null||lt(),ht(xt))},Qt=xt=>{var Et;ct||(ct=!0,(Et=d.onError)==null||Et.call(d,xt),lt==null||lt(),mt(xt))},wt=()=>new Promise(xt=>{var Et;lt=Bt=>{(ct||Zt())&&xt(Bt)},(Et=d.onPause)==null||Et.call(d)}).then(()=>{var xt;lt=void 0,ct||(xt=d.onContinue)==null||xt.call(d)}),Nt=()=>{if(ct)return;let xt;const Et=dt===0?d.initialPromise:void 0;try{xt=Et??d.fn()}catch(Bt){xt=Promise.reject(Bt)}Promise.resolve(xt).then(nn).catch(Bt=>{var an;if(ct)return;const Tt=d.retry??(isServer?0:3),Mt=d.retryDelay??defaultRetryDelay,jt=typeof Mt=="function"?Mt(dt,Bt):Mt,Ht=Tt===!0||typeof Tt=="number"&&dtZt()?void 0:wt()).then(()=>{b?Qt(Bt):Nt()})})};return{promise:vt,cancel:kt,continue:()=>(lt==null||lt(),vt),cancelRetry:Pt,continueRetry:Jt,canStart:Rt,start:()=>(Rt()?Nt():wt().then(Nt),vt)}}function createNotifyManager(){let d=[],b=0,dt=Rt=>{Rt()},ct=Rt=>{Rt()},lt=Rt=>setTimeout(Rt,0);const ht=Rt=>{lt=Rt},mt=Rt=>{let nn;b++;try{nn=Rt()}finally{b--,b||Pt()}return nn},vt=Rt=>{b?d.push(Rt):lt(()=>{dt(Rt)})},kt=Rt=>(...nn)=>{vt(()=>{Rt(...nn)})},Pt=()=>{const Rt=d;d=[],Rt.length&<(()=>{ct(()=>{Rt.forEach(nn=>{dt(nn)})})})};return{batch:mt,batchCalls:kt,schedule:vt,setNotifyFunction:Rt=>{dt=Rt},setBatchNotifyFunction:Rt=>{ct=Rt},setScheduler:ht}}var notifyManager=createNotifyManager(),Xl,s2,Removable=(s2=class{constructor(){Cs(this,Xl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&ps(this,Xl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(d){this.gcTime=Math.max(this.gcTime||0,d??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Co(this,Xl)&&(clearTimeout(Co(this,Xl)),ps(this,Xl,void 0))}},Xl=new WeakMap,s2),S0,b0,xu,bu,tA,_f,Ku,Sl,d2,Query=(d2=class extends Removable{constructor(b){super();Cs(this,Ku);Cs(this,S0,void 0);Cs(this,b0,void 0);Cs(this,xu,void 0);Cs(this,bu,void 0);Cs(this,tA,void 0);Cs(this,_f,void 0);ps(this,_f,!1),ps(this,tA,b.defaultOptions),this.setOptions(b.options),this.observers=[],ps(this,xu,b.cache),this.queryKey=b.queryKey,this.queryHash=b.queryHash,ps(this,S0,b.state||getDefaultState$1(this.options)),this.state=Co(this,S0),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var b;return(b=Co(this,bu))==null?void 0:b.promise}setOptions(b){this.options={...Co(this,tA),...b},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Co(this,xu).remove(this)}setData(b,dt){const ct=replaceData(this.state.data,b,this.options);return Hs(this,Ku,Sl).call(this,{data:ct,type:"success",dataUpdatedAt:dt==null?void 0:dt.updatedAt,manual:dt==null?void 0:dt.manual}),ct}setState(b,dt){Hs(this,Ku,Sl).call(this,{type:"setState",state:b,setStateOptions:dt})}cancel(b){var ct,lt;const dt=(ct=Co(this,bu))==null?void 0:ct.promise;return(lt=Co(this,bu))==null||lt.cancel(b),dt?dt.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Co(this,S0))}isActive(){return this.observers.some(b=>b.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(b=>b.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(b=0){return this.state.isInvalidated||this.state.data===void 0||!timeUntilStale(this.state.dataUpdatedAt,b)}onFocus(){var dt;const b=this.observers.find(ct=>ct.shouldFetchOnWindowFocus());b==null||b.refetch({cancelRefetch:!1}),(dt=Co(this,bu))==null||dt.continue()}onOnline(){var dt;const b=this.observers.find(ct=>ct.shouldFetchOnReconnect());b==null||b.refetch({cancelRefetch:!1}),(dt=Co(this,bu))==null||dt.continue()}addObserver(b){this.observers.includes(b)||(this.observers.push(b),this.clearGcTimeout(),Co(this,xu).notify({type:"observerAdded",query:this,observer:b}))}removeObserver(b){this.observers.includes(b)&&(this.observers=this.observers.filter(dt=>dt!==b),this.observers.length||(Co(this,bu)&&(Co(this,_f)?Co(this,bu).cancel({revert:!0}):Co(this,bu).cancelRetry()),this.scheduleGc()),Co(this,xu).notify({type:"observerRemoved",query:this,observer:b}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Hs(this,Ku,Sl).call(this,{type:"invalidate"})}fetch(b,dt){var kt,Pt,Jt;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(dt!=null&&dt.cancelRefetch))this.cancel({silent:!0});else if(Co(this,bu))return Co(this,bu).continueRetry(),Co(this,bu).promise}if(b&&this.setOptions(b),!this.options.queryFn){const Zt=this.observers.find(Rt=>Rt.options.queryFn);Zt&&this.setOptions(Zt.options)}const ct=new AbortController,lt=Zt=>{Object.defineProperty(Zt,"signal",{enumerable:!0,get:()=>(ps(this,_f,!0),ct.signal)})},ht=()=>{const Zt=ensureQueryFn(this.options,dt),Rt={queryKey:this.queryKey,meta:this.meta};return lt(Rt),ps(this,_f,!1),this.options.persister?this.options.persister(Zt,Rt,this):Zt(Rt)},mt={fetchOptions:dt,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:ht};lt(mt),(kt=this.options.behavior)==null||kt.onFetch(mt,this),ps(this,b0,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((Pt=mt.fetchOptions)==null?void 0:Pt.meta))&&Hs(this,Ku,Sl).call(this,{type:"fetch",meta:(Jt=mt.fetchOptions)==null?void 0:Jt.meta});const vt=Zt=>{var Rt,nn,Qt,wt;isCancelledError(Zt)&&Zt.silent||Hs(this,Ku,Sl).call(this,{type:"error",error:Zt}),isCancelledError(Zt)||((nn=(Rt=Co(this,xu).config).onError)==null||nn.call(Rt,Zt,this),(wt=(Qt=Co(this,xu).config).onSettled)==null||wt.call(Qt,this.state.data,Zt,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ps(this,bu,createRetryer({initialPromise:dt==null?void 0:dt.initialPromise,fn:mt.fetchFn,abort:ct.abort.bind(ct),onSuccess:Zt=>{var Rt,nn,Qt,wt;if(Zt===void 0){vt(new Error(`${this.queryHash} data is undefined`));return}this.setData(Zt),(nn=(Rt=Co(this,xu).config).onSuccess)==null||nn.call(Rt,Zt,this),(wt=(Qt=Co(this,xu).config).onSettled)==null||wt.call(Qt,Zt,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:vt,onFail:(Zt,Rt)=>{Hs(this,Ku,Sl).call(this,{type:"failed",failureCount:Zt,error:Rt})},onPause:()=>{Hs(this,Ku,Sl).call(this,{type:"pause"})},onContinue:()=>{Hs(this,Ku,Sl).call(this,{type:"continue"})},retry:mt.options.retry,retryDelay:mt.options.retryDelay,networkMode:mt.options.networkMode,canRun:()=>!0})),Co(this,bu).start()}},S0=new WeakMap,b0=new WeakMap,xu=new WeakMap,bu=new WeakMap,tA=new WeakMap,_f=new WeakMap,Ku=new WeakSet,Sl=function(b){const dt=ct=>{switch(b.type){case"failed":return{...ct,fetchFailureCount:b.failureCount,fetchFailureReason:b.error};case"pause":return{...ct,fetchStatus:"paused"};case"continue":return{...ct,fetchStatus:"fetching"};case"fetch":return{...ct,...fetchState(ct.data,this.options),fetchMeta:b.meta??null};case"success":return{...ct,data:b.data,dataUpdateCount:ct.dataUpdateCount+1,dataUpdatedAt:b.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!b.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const lt=b.error;return isCancelledError(lt)&<.revert&&Co(this,b0)?{...Co(this,b0),fetchStatus:"idle"}:{...ct,error:lt,errorUpdateCount:ct.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:ct.fetchFailureCount+1,fetchFailureReason:lt,fetchStatus:"idle",status:"error"};case"invalidate":return{...ct,isInvalidated:!0};case"setState":return{...ct,...b.state}}};this.state=dt(this.state),notifyManager.batch(()=>{this.observers.forEach(ct=>{ct.onQueryUpdate()}),Co(this,xu).notify({query:this,type:"updated",action:b})})},d2);function fetchState(d,b){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(b.networkMode)?"fetching":"paused",...d===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(d){const b=typeof d.initialData=="function"?d.initialData():d.initialData,dt=b!==void 0,ct=dt?typeof d.initialDataUpdatedAt=="function"?d.initialDataUpdatedAt():d.initialDataUpdatedAt:0;return{data:b,dataUpdateCount:0,dataUpdatedAt:dt?ct??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:dt?"success":"pending",fetchStatus:"idle"}}var Zu,u2,QueryCache=(u2=class extends Subscribable{constructor(b={}){super();Cs(this,Zu,void 0);this.config=b,ps(this,Zu,new Map)}build(b,dt,ct){const lt=dt.queryKey,ht=dt.queryHash??hashQueryKeyByOptions(lt,dt);let mt=this.get(ht);return mt||(mt=new Query({cache:this,queryKey:lt,queryHash:ht,options:b.defaultQueryOptions(dt),state:ct,defaultOptions:b.getQueryDefaults(lt)}),this.add(mt)),mt}add(b){Co(this,Zu).has(b.queryHash)||(Co(this,Zu).set(b.queryHash,b),this.notify({type:"added",query:b}))}remove(b){const dt=Co(this,Zu).get(b.queryHash);dt&&(b.destroy(),dt===b&&Co(this,Zu).delete(b.queryHash),this.notify({type:"removed",query:b}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(b=>{this.remove(b)})})}get(b){return Co(this,Zu).get(b)}getAll(){return[...Co(this,Zu).values()]}find(b){const dt={exact:!0,...b};return this.getAll().find(ct=>matchQuery(dt,ct))}findAll(b={}){const dt=this.getAll();return Object.keys(b).length>0?dt.filter(ct=>matchQuery(b,ct)):dt}notify(b){notifyManager.batch(()=>{this.listeners.forEach(dt=>{dt(b)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(b=>{b.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(b=>{b.onOnline()})})}},Zu=new WeakMap,u2),Xu,vu,e0,ju,Nl,c2,Mutation=(c2=class extends Removable{constructor(b){super();Cs(this,ju);Cs(this,Xu,void 0);Cs(this,vu,void 0);Cs(this,e0,void 0);this.mutationId=b.mutationId,ps(this,vu,b.mutationCache),ps(this,Xu,[]),this.state=b.state||getDefaultState(),this.setOptions(b.options),this.scheduleGc()}setOptions(b){this.options=b,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(b){Co(this,Xu).includes(b)||(Co(this,Xu).push(b),this.clearGcTimeout(),Co(this,vu).notify({type:"observerAdded",mutation:this,observer:b}))}removeObserver(b){ps(this,Xu,Co(this,Xu).filter(dt=>dt!==b)),this.scheduleGc(),Co(this,vu).notify({type:"observerRemoved",mutation:this,observer:b})}optionalRemove(){Co(this,Xu).length||(this.state.status==="pending"?this.scheduleGc():Co(this,vu).remove(this))}continue(){var b;return((b=Co(this,e0))==null?void 0:b.continue())??this.execute(this.state.variables)}async execute(b){var lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt,xt,Et,Bt,Tt,Mt,jt,Ht;ps(this,e0,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(b):Promise.reject(new Error("No mutationFn found")),onFail:(an,yt)=>{Hs(this,ju,Nl).call(this,{type:"failed",failureCount:an,error:yt})},onPause:()=>{Hs(this,ju,Nl).call(this,{type:"pause"})},onContinue:()=>{Hs(this,ju,Nl).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Co(this,vu).canRun(this)}));const dt=this.state.status==="pending",ct=!Co(this,e0).canStart();try{if(!dt){Hs(this,ju,Nl).call(this,{type:"pending",variables:b,isPaused:ct}),await((ht=(lt=Co(this,vu).config).onMutate)==null?void 0:ht.call(lt,b,this));const yt=await((vt=(mt=this.options).onMutate)==null?void 0:vt.call(mt,b));yt!==this.state.context&&Hs(this,ju,Nl).call(this,{type:"pending",context:yt,variables:b,isPaused:ct})}const an=await Co(this,e0).start();return await((Pt=(kt=Co(this,vu).config).onSuccess)==null?void 0:Pt.call(kt,an,b,this.state.context,this)),await((Zt=(Jt=this.options).onSuccess)==null?void 0:Zt.call(Jt,an,b,this.state.context)),await((nn=(Rt=Co(this,vu).config).onSettled)==null?void 0:nn.call(Rt,an,null,this.state.variables,this.state.context,this)),await((wt=(Qt=this.options).onSettled)==null?void 0:wt.call(Qt,an,null,b,this.state.context)),Hs(this,ju,Nl).call(this,{type:"success",data:an}),an}catch(an){try{throw await((xt=(Nt=Co(this,vu).config).onError)==null?void 0:xt.call(Nt,an,b,this.state.context,this)),await((Bt=(Et=this.options).onError)==null?void 0:Bt.call(Et,an,b,this.state.context)),await((Mt=(Tt=Co(this,vu).config).onSettled)==null?void 0:Mt.call(Tt,void 0,an,this.state.variables,this.state.context,this)),await((Ht=(jt=this.options).onSettled)==null?void 0:Ht.call(jt,void 0,an,b,this.state.context)),an}finally{Hs(this,ju,Nl).call(this,{type:"error",error:an})}}finally{Co(this,vu).runNext(this)}}},Xu=new WeakMap,vu=new WeakMap,e0=new WeakMap,ju=new WeakSet,Nl=function(b){const dt=ct=>{switch(b.type){case"failed":return{...ct,failureCount:b.failureCount,failureReason:b.error};case"pause":return{...ct,isPaused:!0};case"continue":return{...ct,isPaused:!1};case"pending":return{...ct,context:b.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:b.isPaused,status:"pending",variables:b.variables,submittedAt:Date.now()};case"success":return{...ct,data:b.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...ct,data:void 0,error:b.error,failureCount:ct.failureCount+1,failureReason:b.error,isPaused:!1,status:"error"}}};this.state=dt(this.state),notifyManager.batch(()=>{Co(this,Xu).forEach(ct=>{ct.onMutationUpdate(b)}),Co(this,vu).notify({mutation:this,type:"updated",action:b})})},c2);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Du,nA,l2,MutationCache=(l2=class extends Subscribable{constructor(b={}){super();Cs(this,Du,void 0);Cs(this,nA,void 0);this.config=b,ps(this,Du,new Map),ps(this,nA,Date.now())}build(b,dt,ct){const lt=new Mutation({mutationCache:this,mutationId:++rp(this,nA)._,options:b.defaultMutationOptions(dt),state:ct});return this.add(lt),lt}add(b){const dt=scopeFor(b),ct=Co(this,Du).get(dt)??[];ct.push(b),Co(this,Du).set(dt,ct),this.notify({type:"added",mutation:b})}remove(b){var ct;const dt=scopeFor(b);if(Co(this,Du).has(dt)){const lt=(ct=Co(this,Du).get(dt))==null?void 0:ct.filter(ht=>ht!==b);lt&&(lt.length===0?Co(this,Du).delete(dt):Co(this,Du).set(dt,lt))}this.notify({type:"removed",mutation:b})}canRun(b){var ct;const dt=(ct=Co(this,Du).get(scopeFor(b)))==null?void 0:ct.find(lt=>lt.state.status==="pending");return!dt||dt===b}runNext(b){var ct;const dt=(ct=Co(this,Du).get(scopeFor(b)))==null?void 0:ct.find(lt=>lt!==b&<.state.isPaused);return(dt==null?void 0:dt.continue())??Promise.resolve()}clear(){notifyManager.batch(()=>{this.getAll().forEach(b=>{this.remove(b)})})}getAll(){return[...Co(this,Du).values()].flat()}find(b){const dt={exact:!0,...b};return this.getAll().find(ct=>matchMutation(dt,ct))}findAll(b={}){return this.getAll().filter(dt=>matchMutation(b,dt))}notify(b){notifyManager.batch(()=>{this.listeners.forEach(dt=>{dt(b)})})}resumePausedMutations(){const b=this.getAll().filter(dt=>dt.state.isPaused);return notifyManager.batch(()=>Promise.all(b.map(dt=>dt.continue().catch(noop$1))))}},Du=new WeakMap,nA=new WeakMap,l2);function scopeFor(d){var b;return((b=d.options.scope)==null?void 0:b.id)??String(d.mutationId)}function infiniteQueryBehavior(d){return{onFetch:(b,dt)=>{const ct=async()=>{var Qt,wt,Nt,xt,Et;const lt=b.options,ht=(Nt=(wt=(Qt=b.fetchOptions)==null?void 0:Qt.meta)==null?void 0:wt.fetchMore)==null?void 0:Nt.direction,mt=((xt=b.state.data)==null?void 0:xt.pages)||[],vt=((Et=b.state.data)==null?void 0:Et.pageParams)||[],kt={pages:[],pageParams:[]};let Pt=!1;const Jt=Bt=>{Object.defineProperty(Bt,"signal",{enumerable:!0,get:()=>(b.signal.aborted?Pt=!0:b.signal.addEventListener("abort",()=>{Pt=!0}),b.signal)})},Zt=ensureQueryFn(b.options,b.fetchOptions),Rt=async(Bt,Tt,Mt)=>{if(Pt)return Promise.reject();if(Tt==null&&Bt.pages.length)return Promise.resolve(Bt);const jt={queryKey:b.queryKey,pageParam:Tt,direction:Mt?"backward":"forward",meta:b.options.meta};Jt(jt);const Ht=await Zt(jt),{maxPages:an}=b.options,yt=Mt?addToStart:addToEnd;return{pages:yt(Bt.pages,Ht,an),pageParams:yt(Bt.pageParams,Tt,an)}};let nn;if(ht&&mt.length){const Bt=ht==="backward",Tt=Bt?getPreviousPageParam:getNextPageParam,Mt={pages:mt,pageParams:vt},jt=Tt(lt,Mt);nn=await Rt(Mt,jt,Bt)}else{nn=await Rt(kt,vt[0]??lt.initialPageParam);const Bt=d??mt.length;for(let Tt=1;Tt{var lt,ht;return(ht=(lt=b.options).persister)==null?void 0:ht.call(lt,ct,{queryKey:b.queryKey,meta:b.options.meta,signal:b.signal},dt)}:b.fetchFn=ct}}}function getNextPageParam(d,{pages:b,pageParams:dt}){const ct=b.length-1;return d.getNextPageParam(b[ct],b,dt[ct],dt)}function getPreviousPageParam(d,{pages:b,pageParams:dt}){var ct;return(ct=d.getPreviousPageParam)==null?void 0:ct.call(d,b[0],b,dt[0],dt)}var su,Tl,Ml,v0,I0,xl,w0,E0,f2,QueryClient=(f2=class{constructor(d={}){Cs(this,su,void 0);Cs(this,Tl,void 0);Cs(this,Ml,void 0);Cs(this,v0,void 0);Cs(this,I0,void 0);Cs(this,xl,void 0);Cs(this,w0,void 0);Cs(this,E0,void 0);ps(this,su,d.queryCache||new QueryCache),ps(this,Tl,d.mutationCache||new MutationCache),ps(this,Ml,d.defaultOptions||{}),ps(this,v0,new Map),ps(this,I0,new Map),ps(this,xl,0)}mount(){rp(this,xl)._++,Co(this,xl)===1&&(ps(this,w0,focusManager.subscribe(async d=>{d&&(await this.resumePausedMutations(),Co(this,su).onFocus())})),ps(this,E0,onlineManager.subscribe(async d=>{d&&(await this.resumePausedMutations(),Co(this,su).onOnline())})))}unmount(){var d,b;rp(this,xl)._--,Co(this,xl)===0&&((d=Co(this,w0))==null||d.call(this),ps(this,w0,void 0),(b=Co(this,E0))==null||b.call(this),ps(this,E0,void 0))}isFetching(d){return Co(this,su).findAll({...d,fetchStatus:"fetching"}).length}isMutating(d){return Co(this,Tl).findAll({...d,status:"pending"}).length}getQueryData(d){var dt;const b=this.defaultQueryOptions({queryKey:d});return(dt=Co(this,su).get(b.queryHash))==null?void 0:dt.state.data}ensureQueryData(d){const b=this.getQueryData(d.queryKey);if(b===void 0)return this.fetchQuery(d);{const dt=this.defaultQueryOptions(d),ct=Co(this,su).build(this,dt);return d.revalidateIfStale&&ct.isStaleByTime(dt.staleTime)&&this.prefetchQuery(dt),Promise.resolve(b)}}getQueriesData(d){return Co(this,su).findAll(d).map(({queryKey:b,state:dt})=>{const ct=dt.data;return[b,ct]})}setQueryData(d,b,dt){const ct=this.defaultQueryOptions({queryKey:d}),lt=Co(this,su).get(ct.queryHash),ht=lt==null?void 0:lt.state.data,mt=functionalUpdate(b,ht);if(mt!==void 0)return Co(this,su).build(this,ct).setData(mt,{...dt,manual:!0})}setQueriesData(d,b,dt){return notifyManager.batch(()=>Co(this,su).findAll(d).map(({queryKey:ct})=>[ct,this.setQueryData(ct,b,dt)]))}getQueryState(d){var dt;const b=this.defaultQueryOptions({queryKey:d});return(dt=Co(this,su).get(b.queryHash))==null?void 0:dt.state}removeQueries(d){const b=Co(this,su);notifyManager.batch(()=>{b.findAll(d).forEach(dt=>{b.remove(dt)})})}resetQueries(d,b){const dt=Co(this,su),ct={type:"active",...d};return notifyManager.batch(()=>(dt.findAll(d).forEach(lt=>{lt.reset()}),this.refetchQueries(ct,b)))}cancelQueries(d={},b={}){const dt={revert:!0,...b},ct=notifyManager.batch(()=>Co(this,su).findAll(d).map(lt=>lt.cancel(dt)));return Promise.all(ct).then(noop$1).catch(noop$1)}invalidateQueries(d={},b={}){return notifyManager.batch(()=>{if(Co(this,su).findAll(d).forEach(ct=>{ct.invalidate()}),d.refetchType==="none")return Promise.resolve();const dt={...d,type:d.refetchType??d.type??"active"};return this.refetchQueries(dt,b)})}refetchQueries(d={},b){const dt={...b,cancelRefetch:(b==null?void 0:b.cancelRefetch)??!0},ct=notifyManager.batch(()=>Co(this,su).findAll(d).filter(lt=>!lt.isDisabled()).map(lt=>{let ht=lt.fetch(void 0,dt);return dt.throwOnError||(ht=ht.catch(noop$1)),lt.state.fetchStatus==="paused"?Promise.resolve():ht}));return Promise.all(ct).then(noop$1)}fetchQuery(d){const b=this.defaultQueryOptions(d);b.retry===void 0&&(b.retry=!1);const dt=Co(this,su).build(this,b);return dt.isStaleByTime(b.staleTime)?dt.fetch(b):Promise.resolve(dt.state.data)}prefetchQuery(d){return this.fetchQuery(d).then(noop$1).catch(noop$1)}fetchInfiniteQuery(d){return d.behavior=infiniteQueryBehavior(d.pages),this.fetchQuery(d)}prefetchInfiniteQuery(d){return this.fetchInfiniteQuery(d).then(noop$1).catch(noop$1)}resumePausedMutations(){return onlineManager.isOnline()?Co(this,Tl).resumePausedMutations():Promise.resolve()}getQueryCache(){return Co(this,su)}getMutationCache(){return Co(this,Tl)}getDefaultOptions(){return Co(this,Ml)}setDefaultOptions(d){ps(this,Ml,d)}setQueryDefaults(d,b){Co(this,v0).set(hashKey(d),{queryKey:d,defaultOptions:b})}getQueryDefaults(d){const b=[...Co(this,v0).values()];let dt={};return b.forEach(ct=>{partialMatchKey(d,ct.queryKey)&&(dt={...dt,...ct.defaultOptions})}),dt}setMutationDefaults(d,b){Co(this,I0).set(hashKey(d),{mutationKey:d,defaultOptions:b})}getMutationDefaults(d){const b=[...Co(this,I0).values()];let dt={};return b.forEach(ct=>{partialMatchKey(d,ct.mutationKey)&&(dt={...dt,...ct.defaultOptions})}),dt}defaultQueryOptions(d){if(d._defaulted)return d;const b={...Co(this,Ml).queries,...this.getQueryDefaults(d.queryKey),...d,_defaulted:!0};return b.queryHash||(b.queryHash=hashQueryKeyByOptions(b.queryKey,b)),b.refetchOnReconnect===void 0&&(b.refetchOnReconnect=b.networkMode!=="always"),b.throwOnError===void 0&&(b.throwOnError=!!b.suspense),!b.networkMode&&b.persister&&(b.networkMode="offlineFirst"),b.enabled!==!0&&b.queryFn===skipToken&&(b.enabled=!1),b}defaultMutationOptions(d){return d!=null&&d._defaulted?d:{...Co(this,Ml).mutations,...(d==null?void 0:d.mutationKey)&&this.getMutationDefaults(d.mutationKey),...d,_defaulted:!0}}clear(){Co(this,su).clear(),Co(this,Tl).clear()}},su=new WeakMap,Tl=new WeakMap,Ml=new WeakMap,v0=new WeakMap,I0=new WeakMap,xl=new WeakMap,w0=new WeakMap,E0=new WeakMap,f2),ku,Zs,rA,Iu,t0,B0,_c,iA,k0,R0,n0,r0,Ul,P0,i0,eA,oA,Ip,aA,wp,sA,Ep,dA,Bp,uA,kp,cA,Rp,lA,Pp,op,m2,A2,QueryObserver=(A2=class extends Subscribable{constructor(b,dt){super();Cs(this,i0);Cs(this,oA);Cs(this,aA);Cs(this,sA);Cs(this,dA);Cs(this,uA);Cs(this,cA);Cs(this,lA);Cs(this,op);Cs(this,ku,void 0);Cs(this,Zs,void 0);Cs(this,rA,void 0);Cs(this,Iu,void 0);Cs(this,t0,void 0);Cs(this,B0,void 0);Cs(this,_c,void 0);Cs(this,iA,void 0);Cs(this,k0,void 0);Cs(this,R0,void 0);Cs(this,n0,void 0);Cs(this,r0,void 0);Cs(this,Ul,void 0);Cs(this,P0,new Set);this.options=dt,ps(this,ku,b),ps(this,_c,null),this.bindMethods(),this.setOptions(dt)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Co(this,Zs).addObserver(this),shouldFetchOnMount(Co(this,Zs),this.options)?Hs(this,i0,eA).call(this):this.updateResult(),Hs(this,dA,Bp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(Co(this,Zs),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(Co(this,Zs),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Hs(this,uA,kp).call(this),Hs(this,cA,Rp).call(this),Co(this,Zs).removeObserver(this)}setOptions(b,dt){const ct=this.options,lt=Co(this,Zs);if(this.options=Co(this,ku).defaultQueryOptions(b),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");Hs(this,lA,Pp).call(this),Co(this,Zs).setOptions(this.options),ct._defaulted&&!shallowEqualObjects(this.options,ct)&&Co(this,ku).getQueryCache().notify({type:"observerOptionsUpdated",query:Co(this,Zs),observer:this});const ht=this.hasListeners();ht&&shouldFetchOptionally(Co(this,Zs),lt,this.options,ct)&&Hs(this,i0,eA).call(this),this.updateResult(dt),ht&&(Co(this,Zs)!==lt||this.options.enabled!==ct.enabled||this.options.staleTime!==ct.staleTime)&&Hs(this,oA,Ip).call(this);const mt=Hs(this,aA,wp).call(this);ht&&(Co(this,Zs)!==lt||this.options.enabled!==ct.enabled||mt!==Co(this,Ul))&&Hs(this,sA,Ep).call(this,mt)}getOptimisticResult(b){const dt=Co(this,ku).getQueryCache().build(Co(this,ku),b),ct=this.createResult(dt,b);return shouldAssignObserverCurrentProperties(this,ct)&&(ps(this,Iu,ct),ps(this,B0,this.options),ps(this,t0,Co(this,Zs).state)),ct}getCurrentResult(){return Co(this,Iu)}trackResult(b,dt){const ct={};return Object.keys(b).forEach(lt=>{Object.defineProperty(ct,lt,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(lt),dt==null||dt(lt),b[lt])})}),ct}trackProp(b){Co(this,P0).add(b)}getCurrentQuery(){return Co(this,Zs)}refetch({...b}={}){return this.fetch({...b})}fetchOptimistic(b){const dt=Co(this,ku).defaultQueryOptions(b),ct=Co(this,ku).getQueryCache().build(Co(this,ku),dt);return ct.isFetchingOptimistic=!0,ct.fetch().then(()=>this.createResult(ct,dt))}fetch(b){return Hs(this,i0,eA).call(this,{...b,cancelRefetch:b.cancelRefetch??!0}).then(()=>(this.updateResult(),Co(this,Iu)))}createResult(b,dt){var Ht;const ct=Co(this,Zs),lt=this.options,ht=Co(this,Iu),mt=Co(this,t0),vt=Co(this,B0),Pt=b!==ct?b.state:Co(this,rA),{state:Jt}=b;let Zt={...Jt},Rt=!1,nn;if(dt._optimisticResults){const an=this.hasListeners(),yt=!an&&shouldFetchOnMount(b,dt),$t=an&&shouldFetchOptionally(b,ct,dt,lt);(yt||$t)&&(Zt={...Zt,...fetchState(Jt.data,b.options)}),dt._optimisticResults==="isRestoring"&&(Zt.fetchStatus="idle")}let{error:Qt,errorUpdatedAt:wt,status:Nt}=Zt;if(dt.select&&Zt.data!==void 0)if(ht&&Zt.data===(mt==null?void 0:mt.data)&&dt.select===Co(this,iA))nn=Co(this,k0);else try{ps(this,iA,dt.select),nn=dt.select(Zt.data),nn=replaceData(ht==null?void 0:ht.data,nn,dt),ps(this,k0,nn),ps(this,_c,null)}catch(an){ps(this,_c,an)}else nn=Zt.data;if(dt.placeholderData!==void 0&&nn===void 0&&Nt==="pending"){let an;if(ht!=null&&ht.isPlaceholderData&&dt.placeholderData===(vt==null?void 0:vt.placeholderData))an=ht.data;else if(an=typeof dt.placeholderData=="function"?dt.placeholderData((Ht=Co(this,R0))==null?void 0:Ht.state.data,Co(this,R0)):dt.placeholderData,dt.select&&an!==void 0)try{an=dt.select(an),ps(this,_c,null)}catch(yt){ps(this,_c,yt)}an!==void 0&&(Nt="success",nn=replaceData(ht==null?void 0:ht.data,an,dt),Rt=!0)}Co(this,_c)&&(Qt=Co(this,_c),nn=Co(this,k0),wt=Date.now(),Nt="error");const xt=Zt.fetchStatus==="fetching",Et=Nt==="pending",Bt=Nt==="error",Tt=Et&&xt,Mt=nn!==void 0;return{status:Nt,fetchStatus:Zt.fetchStatus,isPending:Et,isSuccess:Nt==="success",isError:Bt,isInitialLoading:Tt,isLoading:Tt,data:nn,dataUpdatedAt:Zt.dataUpdatedAt,error:Qt,errorUpdatedAt:wt,failureCount:Zt.fetchFailureCount,failureReason:Zt.fetchFailureReason,errorUpdateCount:Zt.errorUpdateCount,isFetched:Zt.dataUpdateCount>0||Zt.errorUpdateCount>0,isFetchedAfterMount:Zt.dataUpdateCount>Pt.dataUpdateCount||Zt.errorUpdateCount>Pt.errorUpdateCount,isFetching:xt,isRefetching:xt&&!Et,isLoadingError:Bt&&!Mt,isPaused:Zt.fetchStatus==="paused",isPlaceholderData:Rt,isRefetchError:Bt&&Mt,isStale:isStale(b,dt),refetch:this.refetch}}updateResult(b){const dt=Co(this,Iu),ct=this.createResult(Co(this,Zs),this.options);if(ps(this,t0,Co(this,Zs).state),ps(this,B0,this.options),Co(this,t0).data!==void 0&&ps(this,R0,Co(this,Zs)),shallowEqualObjects(ct,dt))return;ps(this,Iu,ct);const lt={},ht=()=>{if(!dt)return!0;const{notifyOnChangeProps:mt}=this.options,vt=typeof mt=="function"?mt():mt;if(vt==="all"||!vt&&!Co(this,P0).size)return!0;const kt=new Set(vt??Co(this,P0));return this.options.throwOnError&&kt.add("error"),Object.keys(Co(this,Iu)).some(Pt=>{const Jt=Pt;return Co(this,Iu)[Jt]!==dt[Jt]&&kt.has(Jt)})};(b==null?void 0:b.listeners)!==!1&&ht()&&(lt.listeners=!0),Hs(this,op,m2).call(this,{...lt,...b})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Hs(this,dA,Bp).call(this)}},ku=new WeakMap,Zs=new WeakMap,rA=new WeakMap,Iu=new WeakMap,t0=new WeakMap,B0=new WeakMap,_c=new WeakMap,iA=new WeakMap,k0=new WeakMap,R0=new WeakMap,n0=new WeakMap,r0=new WeakMap,Ul=new WeakMap,P0=new WeakMap,i0=new WeakSet,eA=function(b){Hs(this,lA,Pp).call(this);let dt=Co(this,Zs).fetch(this.options,b);return b!=null&&b.throwOnError||(dt=dt.catch(noop$1)),dt},oA=new WeakSet,Ip=function(){if(Hs(this,uA,kp).call(this),isServer||Co(this,Iu).isStale||!isValidTimeout(this.options.staleTime))return;const dt=timeUntilStale(Co(this,Iu).dataUpdatedAt,this.options.staleTime)+1;ps(this,n0,setTimeout(()=>{Co(this,Iu).isStale||this.updateResult()},dt))},aA=new WeakSet,wp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Co(this,Zs)):this.options.refetchInterval)??!1},sA=new WeakSet,Ep=function(b){Hs(this,cA,Rp).call(this),ps(this,Ul,b),!(isServer||this.options.enabled===!1||!isValidTimeout(Co(this,Ul))||Co(this,Ul)===0)&&ps(this,r0,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&Hs(this,i0,eA).call(this)},Co(this,Ul)))},dA=new WeakSet,Bp=function(){Hs(this,oA,Ip).call(this),Hs(this,sA,Ep).call(this,Hs(this,aA,wp).call(this))},uA=new WeakSet,kp=function(){Co(this,n0)&&(clearTimeout(Co(this,n0)),ps(this,n0,void 0))},cA=new WeakSet,Rp=function(){Co(this,r0)&&(clearInterval(Co(this,r0)),ps(this,r0,void 0))},lA=new WeakSet,Pp=function(){const b=Co(this,ku).getQueryCache().build(Co(this,ku),this.options);if(b===Co(this,Zs))return;const dt=Co(this,Zs);ps(this,Zs,b),ps(this,rA,b.state),this.hasListeners()&&(dt==null||dt.removeObserver(this),b.addObserver(this))},op=new WeakSet,m2=function(b){notifyManager.batch(()=>{b.listeners&&this.listeners.forEach(dt=>{dt(Co(this,Iu))}),Co(this,ku).getQueryCache().notify({query:Co(this,Zs),type:"observerResultsUpdated"})})},A2);function shouldLoadOnMount(d,b){return b.enabled!==!1&&d.state.data===void 0&&!(d.state.status==="error"&&b.retryOnMount===!1)}function shouldFetchOnMount(d,b){return shouldLoadOnMount(d,b)||d.state.data!==void 0&&shouldFetchOn(d,b,b.refetchOnMount)}function shouldFetchOn(d,b,dt){if(b.enabled!==!1){const ct=typeof dt=="function"?dt(d):dt;return ct==="always"||ct!==!1&&isStale(d,b)}return!1}function shouldFetchOptionally(d,b,dt,ct){return(d!==b||ct.enabled===!1)&&(!dt.suspense||d.state.status!=="error")&&isStale(d,dt)}function isStale(d,b){return b.enabled!==!1&&d.isStaleByTime(b.staleTime)}function shouldAssignObserverCurrentProperties(d,b){return!shallowEqualObjects(d.getCurrentResult(),b)}var QueryClientContext$2=reactExports.createContext(void 0),useQueryClient$1=d=>{const b=reactExports.useContext(QueryClientContext$2);if(d)return d;if(!b)throw new Error("No QueryClient set, use QueryClientProvider to set one");return b},QueryClientProvider$2=({client:d,children:b})=>(reactExports.useEffect(()=>(d.mount(),()=>{d.unmount()}),[d]),jsxRuntimeExports.jsx(QueryClientContext$2.Provider,{value:d,children:b})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let d=!1;return{clearReset:()=>{d=!1},reset:()=>{d=!0},isReset:()=>d}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError(d,b){return typeof d=="function"?d(...b):!!d}var ensurePreventErrorBoundaryRetry=(d,b)=>{(d.suspense||d.throwOnError)&&(b.isReset()||(d.retryOnMount=!1))},useClearResetErrorBoundary=d=>{reactExports.useEffect(()=>{d.clearReset()},[d])},getHasError=({result:d,errorResetBoundary:b,throwOnError:dt,query:ct})=>d.isError&&!b.isReset()&&!d.isFetching&&ct&&shouldThrowError(dt,[d.error,ct]),ensureStaleTime=d=>{d.suspense&&typeof d.staleTime!="number"&&(d.staleTime=1e3)},shouldSuspend=(d,b)=>(d==null?void 0:d.suspense)&&b.isPending,fetchOptimistic=(d,b,dt)=>b.fetchOptimistic(d).catch(()=>{dt.clearReset()});function useBaseQuery(d,b,dt){const ct=useQueryClient$1(dt),lt=useIsRestoring(),ht=useQueryErrorResetBoundary(),mt=ct.defaultQueryOptions(d);mt._optimisticResults=lt?"isRestoring":"optimistic",ensureStaleTime(mt),ensurePreventErrorBoundaryRetry(mt,ht),useClearResetErrorBoundary(ht);const[vt]=reactExports.useState(()=>new b(ct,mt)),kt=vt.getOptimisticResult(mt);if(reactExports.useSyncExternalStore(reactExports.useCallback(Pt=>{const Jt=lt?()=>{}:vt.subscribe(notifyManager.batchCalls(Pt));return vt.updateResult(),Jt},[vt,lt]),()=>vt.getCurrentResult(),()=>vt.getCurrentResult()),reactExports.useEffect(()=>{vt.setOptions(mt,{listeners:!1})},[mt,vt]),shouldSuspend(mt,kt))throw fetchOptimistic(mt,vt,ht);if(getHasError({result:kt,errorResetBoundary:ht,throwOnError:mt.throwOnError,query:ct.getQueryCache().get(mt.queryHash)}))throw kt.error;return mt.notifyOnChangeProps?kt:vt.trackResult(kt)}function useQuery(d,b){return useBaseQuery(d,QueryObserver,b)}const RPC_URL$1="https://rpc.bostrom.cybernode.ai",QueryClientContext$1=React.createContext(void 0);function useQueryClient(){return reactExports.useContext(QueryClientContext$1)}function QueryClientProvider$1({children:d}){const{data:b,error:dt,isFetching:ct}=useQuery({queryKey:["cyberClient","connect"],queryFn:async()=>build$i.CyberClient.connect(RPC_URL$1)});return dt&&console.error("Error queryClient connect: ",dt.message),console.log(b),jsxRuntimeExports.jsx(QueryClientContext$1.Provider,{value:b,children:d})}const balanceFetcher=(d,b)=>{const{address:dt}=d;return!b||dt===null?null:b.getAllBalances(dt)},useQueryGetAllBalances=d=>{const b=useQueryClient(),{address:dt}=d,{data:ct}=useQuery({queryKey:["getAllBalances",dt],queryFn:()=>balanceFetcher(d,b),enabled:!!(b&&dt)});return ct};var Denom=(d=>(d.boot="BOOT",d.hydrogen="H",d.milliampere="A",d.millivolt="V",d))(Denom||{});const boot="/assets/large-green-0de5ed19.png",milliampere="/assets/light-8b067451.png",hydrogen="/assets/hydrogen-8cf930a6.svg",millivolt="/assets/lightning-4d689c7a.png",configDenom={boot:{denom:"BOOT",img:boot,coinDecimals:0},hydrogen:{denom:"H",img:hydrogen,coinDecimals:0},milliampere:{denom:"A",img:milliampere,coinDecimals:3},millivolt:{denom:"V",img:millivolt,coinDecimals:3}},container="_container_6peet_1",wrapper$4="_wrapper_6peet_5",wrapperItem="_wrapperItem_6peet_11",denom="_denom_6peet_16",amount="_amount_6peet_20",styles$8={container,wrapper:wrapper$4,wrapperItem,denom,amount},wrapper$3="_wrapper_1gxxc_1",title="_title_1gxxc_5",styles$7={wrapper:wrapper$3,title};function TitleItem({title:d,children:b}){return jsxRuntimeExports.jsxs("div",{className:styles$7.wrapper,children:[jsxRuntimeExports.jsx("span",{className:styles$7.title,children:d}),b]})}function numberWithCommas(d){const b=d.split(".");return b[0]=b[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),b.join(".")}const formatNumber=d=>{let b=d;return typeof d=="string"?numberWithCommas(b):b.toLocaleString("en").replace(/(\.\d{0,})0+$/,"$1").replace(/,/g," ")};var isNumeric=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone(d){var b,dt,ct,lt=Et.prototype={constructor:Et,toString:null,valueOf:null},ht=new Et(1),mt=20,vt=4,kt=-7,Pt=21,Jt=-1e7,Zt=1e7,Rt=!1,nn=1,Qt=0,wt={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Nt="0123456789abcdefghijklmnopqrstuvwxyz",xt=!0;function Et(an,yt){var $t,Yt,Kt,St,It,Gt,Ut,Vt,qt=this;if(!(qt instanceof Et))return new Et(an,yt);if(yt==null){if(an&&an._isBigNumber===!0){qt.s=an.s,!an.c||an.e>Zt?qt.c=qt.e=null:an.e=10;It/=10,St++);St>Zt?qt.c=qt.e=null:(qt.e=St,qt.c=[an]);return}Vt=String(an)}else{if(!isNumeric.test(Vt=String(an)))return ct(qt,Vt,Gt);qt.s=Vt.charCodeAt(0)==45?(Vt=Vt.slice(1),-1):1}(St=Vt.indexOf("."))>-1&&(Vt=Vt.replace(".","")),(It=Vt.search(/e/i))>0?(St<0&&(St=It),St+=+Vt.slice(It+1),Vt=Vt.substring(0,It)):St<0&&(St=Vt.length)}else{if(intCheck(yt,2,Nt.length,"Base"),yt==10&&xt)return qt=new Et(an),jt(qt,mt+qt.e+1,vt);if(Vt=String(an),Gt=typeof an=="number"){if(an*0!=0)return ct(qt,Vt,Gt,yt);if(qt.s=1/an<0?(Vt=Vt.slice(1),-1):1,Et.DEBUG&&Vt.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+an)}else qt.s=Vt.charCodeAt(0)===45?(Vt=Vt.slice(1),-1):1;for($t=Nt.slice(0,yt),St=It=0,Ut=Vt.length;ItSt){St=Ut;continue}}else if(!Kt&&(Vt==Vt.toUpperCase()&&(Vt=Vt.toLowerCase())||Vt==Vt.toLowerCase()&&(Vt=Vt.toUpperCase()))){Kt=!0,It=-1,St=0;continue}return ct(qt,String(an),Gt,yt)}Gt=!1,Vt=dt(Vt,yt,10,qt.s),(St=Vt.indexOf("."))>-1?Vt=Vt.replace(".",""):St=Vt.length}for(It=0;Vt.charCodeAt(It)===48;It++);for(Ut=Vt.length;Vt.charCodeAt(--Ut)===48;);if(Vt=Vt.slice(It,++Ut)){if(Ut-=It,Gt&&Et.DEBUG&&Ut>15&&(an>MAX_SAFE_INTEGER||an!==mathfloor(an)))throw Error(tooManyDigits+qt.s*an);if((St=St-It-1)>Zt)qt.c=qt.e=null;else if(St=-MAX&&Kt<=MAX&&Kt===mathfloor(Kt)){if(Yt[0]===0){if(Kt===0&&Yt.length===1)return!0;break e}if(yt=(Kt+1)%LOG_BASE,yt<1&&(yt+=LOG_BASE),String(Yt[0]).length==yt){for(yt=0;yt=BASE||$t!==mathfloor($t))break e;if($t!==0)return!0}}}else if(Yt===null&&Kt===null&&(St===null||St===1||St===-1))return!0;throw Error(bignumberError+"Invalid BigNumber: "+an)},Et.maximum=Et.max=function(){return Tt(arguments,-1)},Et.minimum=Et.min=function(){return Tt(arguments,1)},Et.random=function(){var an=9007199254740992,yt=Math.random()*an&2097151?function(){return mathfloor(Math.random()*an)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function($t){var Yt,Kt,St,It,Gt,Ut=0,Vt=[],qt=new Et(ht);if($t==null?$t=mt:intCheck($t,0,MAX),It=mathceil($t/LOG_BASE),Rt)if(crypto.getRandomValues){for(Yt=crypto.getRandomValues(new Uint32Array(It*=2));Ut>>11),Gt>=9e15?(Kt=crypto.getRandomValues(new Uint32Array(2)),Yt[Ut]=Kt[0],Yt[Ut+1]=Kt[1]):(Vt.push(Gt%1e14),Ut+=2);Ut=It/2}else if(crypto.randomBytes){for(Yt=crypto.randomBytes(It*=7);Ut=9e15?crypto.randomBytes(7).copy(Yt,Ut):(Vt.push(Gt%1e14),Ut+=7);Ut=It/7}else throw Rt=!1,Error(bignumberError+"crypto unavailable");if(!Rt)for(;Ut=10;Gt/=10,Ut++);UtKt-1&&(Gt[It+1]==null&&(Gt[It+1]=0),Gt[It+1]+=Gt[It]/Kt|0,Gt[It]%=Kt)}return Gt.reverse()}return function($t,Yt,Kt,St,It){var Gt,Ut,Vt,qt,fn,dn,Dt,zt,tn=$t.indexOf("."),An=mt,gn=vt;for(tn>=0&&(qt=Qt,Qt=0,$t=$t.replace(".",""),zt=new Et(Yt),dn=zt.pow($t.length-tn),Qt=qt,zt.c=yt(toFixedPoint(coeffToString(dn.c),dn.e,"0"),10,Kt,an),zt.e=zt.c.length),Dt=yt($t,Yt,Kt,It?(Gt=Nt,an):(Gt=an,Nt)),Vt=qt=Dt.length;Dt[--qt]==0;Dt.pop());if(!Dt[0])return Gt.charAt(0);if(tn<0?--Vt:(dn.c=Dt,dn.e=Vt,dn.s=St,dn=b(dn,zt,An,gn,Kt),Dt=dn.c,fn=dn.r,Vt=dn.e),Ut=Vt+An+1,tn=Dt[Ut],qt=Kt/2,fn=fn||Ut<0||Dt[Ut+1]!=null,fn=gn<4?(tn!=null||fn)&&(gn==0||gn==(dn.s<0?3:2)):tn>qt||tn==qt&&(gn==4||fn||gn==6&&Dt[Ut-1]&1||gn==(dn.s<0?8:7)),Ut<1||!Dt[0])$t=fn?toFixedPoint(Gt.charAt(1),-An,Gt.charAt(0)):Gt.charAt(0);else{if(Dt.length=Ut,fn)for(--Kt;++Dt[--Ut]>Kt;)Dt[Ut]=0,Ut||(++Vt,Dt=[1].concat(Dt));for(qt=Dt.length;!Dt[--qt];);for(tn=0,$t="";tn<=qt;$t+=Gt.charAt(Dt[tn++]));$t=toFixedPoint($t,Vt,Gt.charAt(0))}return $t}}(),b=function(){function an(Yt,Kt,St){var It,Gt,Ut,Vt,qt=0,fn=Yt.length,dn=Kt%SQRT_BASE,Dt=Kt/SQRT_BASE|0;for(Yt=Yt.slice();fn--;)Ut=Yt[fn]%SQRT_BASE,Vt=Yt[fn]/SQRT_BASE|0,It=Dt*Ut+Vt*dn,Gt=dn*Ut+It%SQRT_BASE*SQRT_BASE+qt,qt=(Gt/St|0)+(It/SQRT_BASE|0)+Dt*Vt,Yt[fn]=Gt%St;return qt&&(Yt=[qt].concat(Yt)),Yt}function yt(Yt,Kt,St,It){var Gt,Ut;if(St!=It)Ut=St>It?1:-1;else for(Gt=Ut=0;GtKt[Gt]?1:-1;break}return Ut}function $t(Yt,Kt,St,It){for(var Gt=0;St--;)Yt[St]-=Gt,Gt=Yt[St]1;Yt.splice(0,1));}return function(Yt,Kt,St,It,Gt){var Ut,Vt,qt,fn,dn,Dt,zt,tn,An,gn,Nn,wr,nr,fr,xr,zr,Jr,ro=Yt.s==Kt.s?1:-1,xn=Yt.c,_o=Kt.c;if(!xn||!xn[0]||!_o||!_o[0])return new Et(!Yt.s||!Kt.s||(xn?_o&&xn[0]==_o[0]:!_o)?NaN:xn&&xn[0]==0||!_o?ro*0:ro/0);for(tn=new Et(ro),An=tn.c=[],Vt=Yt.e-Kt.e,ro=St+Vt+1,Gt||(Gt=BASE,Vt=bitFloor(Yt.e/LOG_BASE)-bitFloor(Kt.e/LOG_BASE),ro=ro/LOG_BASE|0),qt=0;_o[qt]==(xn[qt]||0);qt++);if(_o[qt]>(xn[qt]||0)&&Vt--,ro<0)An.push(1),fn=!0;else{for(fr=xn.length,zr=_o.length,qt=0,ro+=2,dn=mathfloor(Gt/(_o[0]+1)),dn>1&&(_o=an(_o,dn,Gt),xn=an(xn,dn,Gt),zr=_o.length,fr=xn.length),nr=zr,gn=xn.slice(0,zr),Nn=gn.length;Nn=Gt/2&&xr++;do{if(dn=0,Ut=yt(_o,gn,zr,Nn),Ut<0){if(wr=gn[0],zr!=Nn&&(wr=wr*Gt+(gn[1]||0)),dn=mathfloor(wr/xr),dn>1)for(dn>=Gt&&(dn=Gt-1),Dt=an(_o,dn,Gt),zt=Dt.length,Nn=gn.length;yt(Dt,gn,zt,Nn)==1;)dn--,$t(Dt,zr=10;ro/=10,qt++);jt(tn,St+(tn.e=qt+Vt*LOG_BASE-1)+1,It,fn)}else tn.e=Vt,tn.r=+fn;return tn}}();function Bt(an,yt,$t,Yt){var Kt,St,It,Gt,Ut;if($t==null?$t=vt:intCheck($t,0,8),!an.c)return an.toString();if(Kt=an.c[0],It=an.e,yt==null)Ut=coeffToString(an.c),Ut=Yt==1||Yt==2&&(It<=kt||It>=Pt)?toExponential(Ut,It):toFixedPoint(Ut,It,"0");else if(an=jt(new Et(an),yt,$t),St=an.e,Ut=coeffToString(an.c),Gt=Ut.length,Yt==1||Yt==2&&(yt<=St||St<=kt)){for(;GtGt){if(--yt>0)for(Ut+=".";yt--;Ut+="0");}else if(yt+=St-Gt,yt>0)for(St+1==Gt&&(Ut+=".");yt--;Ut+="0");return an.s<0&&Kt?"-"+Ut:Ut}function Tt(an,yt){for(var $t,Yt,Kt=1,St=new Et(an[0]);Kt=10;Kt/=10,Yt++);return($t=Yt+$t*LOG_BASE-1)>Zt?an.c=an.e=null:$t=10;Gt/=10,Kt++);if(St=yt-Kt,St<0)St+=LOG_BASE,It=yt,Ut=fn[Vt=0],qt=mathfloor(Ut/dn[Kt-It-1]%10);else if(Vt=mathceil((St+1)/LOG_BASE),Vt>=fn.length)if(Yt){for(;fn.length<=Vt;fn.push(0));Ut=qt=0,Kt=1,St%=LOG_BASE,It=St-LOG_BASE+1}else break e;else{for(Ut=Gt=fn[Vt],Kt=1;Gt>=10;Gt/=10,Kt++);St%=LOG_BASE,It=St-LOG_BASE+Kt,qt=It<0?0:mathfloor(Ut/dn[Kt-It-1]%10)}if(Yt=Yt||yt<0||fn[Vt+1]!=null||(It<0?Ut:Ut%dn[Kt-It-1]),Yt=$t<4?(qt||Yt)&&($t==0||$t==(an.s<0?3:2)):qt>5||qt==5&&($t==4||Yt||$t==6&&(St>0?It>0?Ut/dn[Kt-It]:0:fn[Vt-1])%10&1||$t==(an.s<0?8:7)),yt<1||!fn[0])return fn.length=0,Yt?(yt-=an.e+1,fn[0]=dn[(LOG_BASE-yt%LOG_BASE)%LOG_BASE],an.e=-yt||0):fn[0]=an.e=0,an;if(St==0?(fn.length=Vt,Gt=1,Vt--):(fn.length=Vt+1,Gt=dn[LOG_BASE-St],fn[Vt]=It>0?mathfloor(Ut/dn[Kt-It]%dn[It])*Gt:0),Yt)for(;;)if(Vt==0){for(St=1,It=fn[0];It>=10;It/=10,St++);for(It=fn[0]+=Gt,Gt=1;It>=10;It/=10,Gt++);St!=Gt&&(an.e++,fn[0]==BASE&&(fn[0]=1));break}else{if(fn[Vt]+=Gt,fn[Vt]!=BASE)break;fn[Vt--]=0,Gt=1}for(St=fn.length;fn[--St]===0;fn.pop());}an.e>Zt?an.c=an.e=null:an.e=Pt?toExponential(yt,$t):toFixedPoint(yt,$t,"0"),an.s<0?"-"+yt:yt)}return lt.absoluteValue=lt.abs=function(){var an=new Et(this);return an.s<0&&(an.s=1),an},lt.comparedTo=function(an,yt){return compare(this,new Et(an,yt))},lt.decimalPlaces=lt.dp=function(an,yt){var $t,Yt,Kt,St=this;if(an!=null)return intCheck(an,0,MAX),yt==null?yt=vt:intCheck(yt,0,8),jt(new Et(St),an+St.e+1,yt);if(!($t=St.c))return null;if(Yt=((Kt=$t.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,Kt=$t[Kt])for(;Kt%10==0;Kt/=10,Yt--);return Yt<0&&(Yt=0),Yt},lt.dividedBy=lt.div=function(an,yt){return b(this,new Et(an,yt),mt,vt)},lt.dividedToIntegerBy=lt.idiv=function(an,yt){return b(this,new Et(an,yt),0,1)},lt.exponentiatedBy=lt.pow=function(an,yt){var $t,Yt,Kt,St,It,Gt,Ut,Vt,qt,fn=this;if(an=new Et(an),an.c&&!an.isInteger())throw Error(bignumberError+"Exponent not an integer: "+Ht(an));if(yt!=null&&(yt=new Et(yt)),Gt=an.e>14,!fn.c||!fn.c[0]||fn.c[0]==1&&!fn.e&&fn.c.length==1||!an.c||!an.c[0])return qt=new Et(Math.pow(+Ht(fn),Gt?an.s*(2-isOdd(an)):+Ht(an))),yt?qt.mod(yt):qt;if(Ut=an.s<0,yt){if(yt.c?!yt.c[0]:!yt.s)return new Et(NaN);Yt=!Ut&&fn.isInteger()&&yt.isInteger(),Yt&&(fn=fn.mod(yt))}else{if(an.e>9&&(fn.e>0||fn.e<-1||(fn.e==0?fn.c[0]>1||Gt&&fn.c[1]>=24e7:fn.c[0]<8e13||Gt&&fn.c[0]<=9999975e7)))return St=fn.s<0&&isOdd(an)?-0:0,fn.e>-1&&(St=1/St),new Et(Ut?1/St:St);Qt&&(St=mathceil(Qt/LOG_BASE+2))}for(Gt?($t=new Et(.5),Ut&&(an.s=1),Vt=isOdd(an)):(Kt=Math.abs(+Ht(an)),Vt=Kt%2),qt=new Et(ht);;){if(Vt){if(qt=qt.times(fn),!qt.c)break;St?qt.c.length>St&&(qt.c.length=St):Yt&&(qt=qt.mod(yt))}if(Kt){if(Kt=mathfloor(Kt/2),Kt===0)break;Vt=Kt%2}else if(an=an.times($t),jt(an,an.e+1,1),an.e>14)Vt=isOdd(an);else{if(Kt=+Ht(an),Kt===0)break;Vt=Kt%2}fn=fn.times(fn),St?fn.c&&fn.c.length>St&&(fn.c.length=St):Yt&&(fn=fn.mod(yt))}return Yt?qt:(Ut&&(qt=ht.div(qt)),yt?qt.mod(yt):St?jt(qt,Qt,vt,It):qt)},lt.integerValue=function(an){var yt=new Et(this);return an==null?an=vt:intCheck(an,0,8),jt(yt,yt.e+1,an)},lt.isEqualTo=lt.eq=function(an,yt){return compare(this,new Et(an,yt))===0},lt.isFinite=function(){return!!this.c},lt.isGreaterThan=lt.gt=function(an,yt){return compare(this,new Et(an,yt))>0},lt.isGreaterThanOrEqualTo=lt.gte=function(an,yt){return(yt=compare(this,new Et(an,yt)))===1||yt===0},lt.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},lt.isLessThan=lt.lt=function(an,yt){return compare(this,new Et(an,yt))<0},lt.isLessThanOrEqualTo=lt.lte=function(an,yt){return(yt=compare(this,new Et(an,yt)))===-1||yt===0},lt.isNaN=function(){return!this.s},lt.isNegative=function(){return this.s<0},lt.isPositive=function(){return this.s>0},lt.isZero=function(){return!!this.c&&this.c[0]==0},lt.minus=function(an,yt){var $t,Yt,Kt,St,It=this,Gt=It.s;if(an=new Et(an,yt),yt=an.s,!Gt||!yt)return new Et(NaN);if(Gt!=yt)return an.s=-yt,It.plus(an);var Ut=It.e/LOG_BASE,Vt=an.e/LOG_BASE,qt=It.c,fn=an.c;if(!Ut||!Vt){if(!qt||!fn)return qt?(an.s=-yt,an):new Et(fn?It:NaN);if(!qt[0]||!fn[0])return fn[0]?(an.s=-yt,an):new Et(qt[0]?It:vt==3?-0:0)}if(Ut=bitFloor(Ut),Vt=bitFloor(Vt),qt=qt.slice(),Gt=Ut-Vt){for((St=Gt<0)?(Gt=-Gt,Kt=qt):(Vt=Ut,Kt=fn),Kt.reverse(),yt=Gt;yt--;Kt.push(0));Kt.reverse()}else for(Yt=(St=(Gt=qt.length)<(yt=fn.length))?Gt:yt,Gt=yt=0;yt0)for(;yt--;qt[$t++]=0);for(yt=BASE-1;Yt>Gt;){if(qt[--Yt]=0;){for($t=0,dn=wr[Kt]%An,Dt=wr[Kt]/An|0,It=Ut,St=Kt+It;St>Kt;)Vt=Nn[--It]%An,qt=Nn[It]/An|0,Gt=Dt*Vt+qt*dn,Vt=dn*Vt+Gt%An*An+zt[St]+$t,$t=(Vt/tn|0)+(Gt/An|0)+Dt*qt,zt[St--]=Vt%tn;zt[St]=$t}return $t?++Yt:zt.splice(0,1),Mt(an,zt,Yt)},lt.negated=function(){var an=new Et(this);return an.s=-an.s||null,an},lt.plus=function(an,yt){var $t,Yt=this,Kt=Yt.s;if(an=new Et(an,yt),yt=an.s,!Kt||!yt)return new Et(NaN);if(Kt!=yt)return an.s=-yt,Yt.minus(an);var St=Yt.e/LOG_BASE,It=an.e/LOG_BASE,Gt=Yt.c,Ut=an.c;if(!St||!It){if(!Gt||!Ut)return new Et(Kt/0);if(!Gt[0]||!Ut[0])return Ut[0]?an:new Et(Gt[0]?Yt:Kt*0)}if(St=bitFloor(St),It=bitFloor(It),Gt=Gt.slice(),Kt=St-It){for(Kt>0?(It=St,$t=Ut):(Kt=-Kt,$t=Gt),$t.reverse();Kt--;$t.push(0));$t.reverse()}for(Kt=Gt.length,yt=Ut.length,Kt-yt<0&&($t=Ut,Ut=Gt,Gt=$t,yt=Kt),Kt=0;yt;)Kt=(Gt[--yt]=Gt[yt]+Ut[yt]+Kt)/BASE|0,Gt[yt]=BASE===Gt[yt]?0:Gt[yt]%BASE;return Kt&&(Gt=[Kt].concat(Gt),++It),Mt(an,Gt,It)},lt.precision=lt.sd=function(an,yt){var $t,Yt,Kt,St=this;if(an!=null&&an!==!!an)return intCheck(an,1,MAX),yt==null?yt=vt:intCheck(yt,0,8),jt(new Et(St),an,yt);if(!($t=St.c))return null;if(Kt=$t.length-1,Yt=Kt*LOG_BASE+1,Kt=$t[Kt]){for(;Kt%10==0;Kt/=10,Yt--);for(Kt=$t[0];Kt>=10;Kt/=10,Yt++);}return an&&St.e+1>Yt&&(Yt=St.e+1),Yt},lt.shiftedBy=function(an){return intCheck(an,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times("1e"+an)},lt.squareRoot=lt.sqrt=function(){var an,yt,$t,Yt,Kt,St=this,It=St.c,Gt=St.s,Ut=St.e,Vt=mt+4,qt=new Et("0.5");if(Gt!==1||!It||!It[0])return new Et(!Gt||Gt<0&&(!It||It[0])?NaN:It?St:1/0);if(Gt=Math.sqrt(+Ht(St)),Gt==0||Gt==1/0?(yt=coeffToString(It),(yt.length+Ut)%2==0&&(yt+="0"),Gt=Math.sqrt(+yt),Ut=bitFloor((Ut+1)/2)-(Ut<0||Ut%2),Gt==1/0?yt="5e"+Ut:(yt=Gt.toExponential(),yt=yt.slice(0,yt.indexOf("e")+1)+Ut),$t=new Et(yt)):$t=new Et(Gt+""),$t.c[0]){for(Ut=$t.e,Gt=Ut+Vt,Gt<3&&(Gt=0);;)if(Kt=$t,$t=qt.times(Kt.plus(b(St,Kt,Vt,1))),coeffToString(Kt.c).slice(0,Gt)===(yt=coeffToString($t.c)).slice(0,Gt))if($t.e0&&zt>0){for(St=zt%Gt||Gt,qt=Dt.substr(0,St);St0&&(qt+=Vt+Dt.slice(St)),dn&&(qt="-"+qt)}Yt=fn?qt+($t.decimalSeparator||"")+((Ut=+$t.fractionGroupSize)?fn.replace(new RegExp("\\d{"+Ut+"}\\B","g"),"$&"+($t.fractionGroupSeparator||"")):fn):qt}return($t.prefix||"")+Yt+($t.suffix||"")},lt.toFraction=function(an){var yt,$t,Yt,Kt,St,It,Gt,Ut,Vt,qt,fn,dn,Dt=this,zt=Dt.c;if(an!=null&&(Gt=new Et(an),!Gt.isInteger()&&(Gt.c||Gt.s!==1)||Gt.lt(ht)))throw Error(bignumberError+"Argument "+(Gt.isInteger()?"out of range: ":"not an integer: ")+Ht(Gt));if(!zt)return new Et(Dt);for(yt=new Et(ht),Vt=$t=new Et(ht),Yt=Ut=new Et(ht),dn=coeffToString(zt),St=yt.e=dn.length-Dt.e-1,yt.c[0]=POWS_TEN[(It=St%LOG_BASE)<0?LOG_BASE+It:It],an=!an||Gt.comparedTo(yt)>0?St>0?yt:Vt:Gt,It=Zt,Zt=1/0,Gt=new Et(dn),Ut.c[0]=0;qt=b(Gt,yt,0,1),Kt=$t.plus(qt.times(Yt)),Kt.comparedTo(an)!=1;)$t=Yt,Yt=Kt,Vt=Ut.plus(qt.times(Kt=Vt)),Ut=Kt,yt=Gt.minus(qt.times(Kt=yt)),Gt=Kt;return Kt=b(an.minus($t),Yt,0,1),Ut=Ut.plus(Kt.times(Vt)),$t=$t.plus(Kt.times(Yt)),Ut.s=Vt.s=Dt.s,St=St*2,fn=b(Vt,Yt,St,vt).minus(Dt).abs().comparedTo(b(Ut,$t,St,vt).minus(Dt).abs())<1?[Vt,Yt]:[Ut,$t],Zt=It,fn},lt.toNumber=function(){return+Ht(this)},lt.toPrecision=function(an,yt){return an!=null&&intCheck(an,1,MAX),Bt(this,an,yt,2)},lt.toString=function(an){var yt,$t=this,Yt=$t.s,Kt=$t.e;return Kt===null?Yt?(yt="Infinity",Yt<0&&(yt="-"+yt)):yt="NaN":(an==null?yt=Kt<=kt||Kt>=Pt?toExponential(coeffToString($t.c),Kt):toFixedPoint(coeffToString($t.c),Kt,"0"):an===10&&xt?($t=jt(new Et($t),mt+Kt+1,vt),yt=toFixedPoint(coeffToString($t.c),$t.e,"0")):(intCheck(an,2,Nt.length,"Base"),yt=dt(toFixedPoint(coeffToString($t.c),Kt,"0"),10,an,Yt,!0)),Yt<0&&$t.c[0]&&(yt="-"+yt)),yt},lt.valueOf=lt.toJSON=function(){return Ht(this)},lt._isBigNumber=!0,lt[Symbol.toStringTag]="BigNumber",lt[Symbol.for("nodejs.util.inspect.custom")]=lt.valueOf,d!=null&&Et.set(d),Et}function bitFloor(d){var b=d|0;return d>0||d===b?b:b-1}function coeffToString(d){for(var b,dt,ct=1,lt=d.length,ht=d[0]+"";ctPt^dt?1:-1;for(vt=(kt=lt.length)<(Pt=ht.length)?kt:Pt,mt=0;mtht[mt]^dt?1:-1;return kt==Pt?0:kt>Pt^dt?1:-1}function intCheck(d,b,dt,ct){if(ddt||d!==mathfloor(d))throw Error(bignumberError+(ct||"Argument")+(typeof d=="number"?ddt?" out of range: ":" not an integer: ":" not a primitive number: ")+String(d))}function isOdd(d){var b=d.c.length-1;return bitFloor(d.e/LOG_BASE)==b&&d.c[b]%2!=0}function toExponential(d,b){return(d.length>1?d.charAt(0)+"."+d.slice(1):d)+(b<0?"e":"e+")+b}function toFixedPoint(d,b,dt){var ct,lt;if(b<0){for(lt=dt+".";++b;lt+=dt);d=lt+d}else if(ct=d.length,++b>ct){for(lt=dt,b-=ct;--b;lt+=dt);d+=lt}else b0?3:0,BigNumber.ROUND_FLOOR))}function BalancesItem({amount:d,denomValue:b}){const{denom:dt,coinDecimals:ct,img:lt}=configDenom[b];return jsxRuntimeExports.jsxs("div",{className:styles$8.wrapperItem,children:[jsxRuntimeExports.jsx("span",{className:styles$8.denom,children:dt}),jsxRuntimeExports.jsxs("div",{className:styles$8.amount,children:[jsxRuntimeExports.jsx("span",{children:formatNumber(getDisplayAmount(d||0,ct))}),jsxRuntimeExports.jsx("img",{src:lt,alt:dt})]})]})}function Balances({address:d}){const b=useQueryGetAllBalances({address:d});if(!b)return null;const dt=Object.keys(Denom).map(ct=>{const{amount:lt}=b.find(ht=>ht.denom===ct);return jsxRuntimeExports.jsx(BalancesItem,{denomValue:ct,amount:lt},ct)});return jsxRuntimeExports.jsx("div",{className:styles$8.container,children:jsxRuntimeExports.jsx(TitleItem,{title:"Balances",children:jsxRuntimeExports.jsx("div",{className:styles$8.wrapper,children:dt})})})}const LCD_URL="https://lcd.bostrom.cybernode.ai",CYBER_GATEWAY="https://gateway.ipfs.cybernode.ai",wrapper$2="_wrapper_bnbxn_1",styles$6={wrapper:wrapper$2};function Avatar({cid:d}){const b=`${CYBER_GATEWAY}/ipfs/${d}`;return jsxRuntimeExports.jsx("div",{className:styles$6.wrapper,children:jsxRuntimeExports.jsx("img",{src:b,alt:"avatar"})})}const wrapper$1="_wrapper_1jt9y_1",styles$5={wrapper:wrapper$1},colorText="_colorText_8bd22_1",styles$4={colorText};function GreenText({children:d}){return jsxRuntimeExports.jsx("span",{className:styles$4.colorText,children:d})}const icons={karma:"🔮",boot:"🟢",energy:"🔋"},PREFIXES=[{prefix:7,power:10**21},{prefix:6,power:10**18},{prefix:5,power:10**15},{prefix:4,power:10**12},{prefix:3,power:10**9},{prefix:2,power:10**6},{prefix:1,power:10**3}];function IconsNumber({value:d,type:b}){const{prefix:dt=1,power:ct=1}=PREFIXES.find(mt=>d>=mt.power)||{},lt=new BigNumber(d).dividedBy(ct).dp(0,BigNumber.ROUND_FLOOR).toNumber(),ht=new Array(dt).fill(icons[b]).map((mt,vt)=>typeof mt=="object"?React.cloneElement(mt,{key:vt}):mt);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt," ",ht]})}const containerKarma="_containerKarma_1f9df_1",styles$3={containerKarma},useGetKarma=d=>{const b=useQueryClient(),{data:dt}=useQuery({queryKey:["karma",d],queryFn:async()=>(await b.karma(d)).karma,enabled:!!(b&&d)});return{data:dt}};function Karma({address:d}){const{data:b}=useGetKarma(d);return b?jsxRuntimeExports.jsx(TitleItem,{title:"karma",children:jsxRuntimeExports.jsx("span",{className:styles$3.containerKarma,children:jsxRuntimeExports.jsx(IconsNumber,{value:b,type:"karma"})})}):null}async function getTransactions$1({events:d,pagination:b={limit:20,offset:0},orderBy:dt="ORDER_BY_UNSPECIFIED"}){const{offset:ct,limit:lt}=b;return axios$5.get(`${LCD_URL}/cosmos/tx/v1beta1/txs`,{params:{"pagination.offset":ct,"pagination.limit":lt,orderBy:dt,events:d.map(ht=>`${ht.key}='${ht.value}'`)},paramsSerializer:{indexes:null}})}async function getCyberlinksTotal(d){var ct,lt;return(lt=(ct=(await getTransactions$1({pagination:{offset:0,limit:1},events:[{key:"message.action",value:"/cyber.graph.v1beta1.MsgCyberlink"},{key:"cyberlink.neuron",value:d}]})).data)==null?void 0:ct.pagination)==null?void 0:lt.total}const getCyberLink=d=>{const{data:b}=useQuery({queryKey:["cyberlink",d],queryFn:async()=>getCyberlinksTotal(d),enabled:!!d});return{data:b}};function CyberLink({address:d}){const{data:b}=getCyberLink(d);return b?jsxRuntimeExports.jsx(TitleItem,{title:"cyberlinks",children:jsxRuntimeExports.jsx(GreenText,{children:b})}):null}function Passport({passport:d}){const b=d==null?void 0:d.owner,{nickname:dt,avatar:ct}=d.extension;return jsxRuntimeExports.jsxs("div",{className:styles$5.wrapper,children:[jsxRuntimeExports.jsx(Avatar,{cid:ct}),jsxRuntimeExports.jsx(TitleItem,{title:"name",children:jsxRuntimeExports.jsx(GreenText,{children:dt})}),jsxRuntimeExports.jsx(TitleItem,{title:"address",children:jsxRuntimeExports.jsx(GreenText,{children:trimString(b,11,4)})}),jsxRuntimeExports.jsx(Karma,{address:b}),jsxRuntimeExports.jsx(CyberLink,{address:b}),jsxRuntimeExports.jsx(Balances,{address:b})]})}const ActionBarContainer="_ActionBarContainer_1f6tq_1",ActionBarContainerContent="_ActionBarContainerContent_1f6tq_13",styles$2={ActionBarContainer,ActionBarContainerContent};function ActionBar({children:d}){return jsxRuntimeExports.jsx("div",{className:styles$2.ActionBarContainer,children:jsxRuntimeExports.jsx("div",{className:styles$2.ActionBarContainerContent,children:d})})}const base="https://awesome.cybernode.ai";function sendProof(d){return axios$5.post(base+"/proof",d)}const passportHeader="_passportHeader_wdpm0_1",resetBtn="_resetBtn_wdpm0_7",tx="_tx_wdpm0_16",styles$1={passportHeader,resetBtn,tx},RPC_URL="https://rpc.space-pussy.cybernode.ai",QueryClientContext=React.createContext(void 0);function useQueryClientPussy(){return reactExports.useContext(QueryClientContext)}function QueryClientProvider({children:d}){const{data:b,error:dt,isFetching:ct}=useQuery({queryKey:["cyberClient","connect-pussy"],queryFn:async()=>build$i.CyberClient.connect(RPC_URL)});return dt&&console.error("Error queryClient connect: ",dt.message),console.log(b),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:b,children:d})}const wrapper="_wrapper_lap2n_1",styles={wrapper};function Posts({publicKey:d}){const b=useQueryClientPussy(),{data:dt,isLoading:ct,error:lt}=useQuery({queryKey:["posts",d],refetchInterval:10*1e3,queryFn:async()=>b.queryContractSmart("pussy15s8v0pa5g60uhvmjpfj73p6nem6t597e8qnkgpsuck5tje3se7ps3ll7kl",{get_posts:{pubkey:d}})});return console.log(lt),jsxRuntimeExports.jsxs(Display,{title:jsxRuntimeExports.jsx(DisplayTitle,{title:"Your posts"}),children:[ct&&jsxRuntimeExports.jsx("div",{children:"Loading..."}),!dt&&!ct&&jsxRuntimeExports.jsx("div",{children:"No data"}),jsxRuntimeExports.jsx("div",{className:styles.wrapper,children:dt==null?void 0:dt.map(ht=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(ht.timestamp*1e3)}),jsxRuntimeExports.jsx("p",{children:ht.post})]},ht.timestamp))})]})}const tele$1=window.Telegram.WebApp,Main=()=>{var St,It,Gt,Ut,Vt;const{address:d,tonConnectUI:b,wallet:dt,connected:ct}=useTonConnect(),[lt,ht]=reactExports.useState(),[mt,vt]=reactExports.useState(),[kt,Pt]=reactExports.useState(!1),[Jt,Zt]=reactExports.useState(0),[Rt,nn]=reactExports.useState(""),Qt=useQueryClientPussy(),wt=(St=dt==null?void 0:dt.account)==null?void 0:St.publicKey,Nt=useQuery({queryKey:["passport",wt],queryFn:async()=>Qt.queryContractSmart("pussy15s8v0pa5g60uhvmjpfj73p6nem6t597e8qnkgpsuck5tje3se7ps3ll7kl",{get_nickname:{pubkey:wt}}),enabled:!!wt}),[xt,Et]=reactExports.useState(),[Bt,Tt]=reactExports.useState();console.log(dt),console.log("PK",(It=dt==null?void 0:dt.account)==null?void 0:It.publicKey);const Mt=(Gt=dt==null?void 0:dt.connectItems)==null?void 0:Gt.tonProof;console.log("tonProof",Mt);async function jt(){try{Pt(!0);const{address:qt,publicKey:fn}=dt.account||{},dn={proof:{proof:{...Mt.proof,state_init:""},network:"-239",address:qt},pubkey:fn},Dt=await sendProof(dn);console.log(Dt.data);const zt=Dt.data.tx.hash;Et(zt)}catch(qt){console.error(qt)}Pt(!1)}const Ht=Mt&&build$j.fromAscii(build$j.fromBase64((Ut=Mt==null?void 0:Mt.proof)==null?void 0:Ut.payload));if(Ht){const qt=JSON.parse(Ht),fn=qt.msg_type;qt.msg_data,fn==="map_nickname"&&!lt&&(jt(),ht({...Mt,data:qt})),fn==="add_post"&&!mt&&(jt(),vt({...Mt,data:qt}),nn(""))}const{data:an,fetchData:yt}=useCyberPassport({nickname:Bt});reactExports.useEffect(()=>{if(Nt.data){const qt=Nt.data;qt!==Bt&&(Tt(qt),setTimeout(()=>{yt(qt)},1e3)),Zt(3)}},[Nt.data,Bt,yt]);const $t=an;console.log($t),reactExports.useEffect(()=>{$t&&Zt(2)},[$t]),reactExports.useEffect(()=>{lt&&Zt(3)},[lt,$t]),reactExports.useEffect(()=>{tele$1&&(tele$1.ready(),tele$1.BackButton.hide())},[]);let Yt,Kt;return Jt===0?(Kt=jsxRuntimeExports.jsx(Button,{onClick:()=>Zt(1),children:"Add passport"}),Yt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"hi to user, what is passport, what to do here"})):Jt===1?Kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Input,{value:Bt,placeholder:"enter passport...",onChange:qt=>{const fn=qt.target.value;Tt(fn)}}),jsxRuntimeExports.jsx(Button,{onClick:yt,children:"load passport"})]}):Jt===2?Kt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(TonWallet,{nickname:Bt,type:"passport"})}):Jt===3&&(Yt=jsxRuntimeExports.jsx(Posts,{publicKey:((Vt=dt==null?void 0:dt.account)==null?void 0:Vt.publicKey)||""}),xt?Kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("a",{className:styles$1.tx,target:"_blank",rel:"noreferrer noopener",href:"https://spacepussy.ai/network/bostrom/tx/"+xt,children:[" ",trimString(xt,6,6)]}),jsxRuntimeExports.jsx(Button,{onClick:()=>Et(null),children:"Close"})]}):kt?Kt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Button,{disabled:!0,children:"pending..."})}):Kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Input,{color:"pink",placeholder:"enter message...",value:Rt,onChange:qt=>{nn(qt.target.value)}}),jsxRuntimeExports.jsx(TonWallet,{message:Rt,nickname:Bt,type:"text"})]})),console.log(Jt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(MainContainer,{children:[jsxRuntimeExports.jsx(Stars,{}),jsxRuntimeExports.jsx(Header,{isOpen:!1,text:"CYBER-TON",backgroundType:!1}),jsxRuntimeExports.jsx("div",{style:{zIndex:1},children:Yt}),$t&&jsxRuntimeExports.jsx(Display,{title:jsxRuntimeExports.jsx(DisplayTitle,{title:jsxRuntimeExports.jsxs("div",{className:styles$1.passportHeader,children:["moon passport",jsxRuntimeExports.jsx("button",{className:styles$1.resetBtn,onClick:()=>{Zt(0),Tt(""),localStorage.removeItem(LS_KEY)},title:"reset passport",children:"reset passport"})]})}),children:jsxRuntimeExports.jsx("div",{style:{fontSize:14,wordBreak:"break-all"},children:jsxRuntimeExports.jsx(Passport,{passport:$t})})}),jsxRuntimeExports.jsx(ActionBar,{children:Kt})]})})};st.div` +`),function(Pt){if(vt=Pt.indexOf(":"),ht=d.trim(Pt.substr(0,vt)).toLowerCase(),mt=d.trim(Pt.substr(vt+1)),ht){if(lt[ht]&&b.indexOf(ht)>=0)return;ht==="set-cookie"?lt[ht]=(lt[ht]?lt[ht]:[]).concat([mt]):lt[ht]=lt[ht]?lt[ht]+", "+mt:mt}}),lt},parseHeaders$2}var isURLSameOrigin$1,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin$1;hasRequiredIsURLSameOrigin=1;var d=utils$d;return isURLSameOrigin$1=d.isStandardBrowserEnv()?function(){var dt=/(msie|trident)/i.test(navigator.userAgent),ct=document.createElement("a"),lt;function ht(mt){var vt=mt;return dt&&(ct.setAttribute("href",vt),vt=ct.href),ct.setAttribute("href",vt),{href:ct.href,protocol:ct.protocol?ct.protocol.replace(/:$/,""):"",host:ct.host,search:ct.search?ct.search.replace(/^\?/,""):"",hash:ct.hash?ct.hash.replace(/^#/,""):"",hostname:ct.hostname,port:ct.port,pathname:ct.pathname.charAt(0)==="/"?ct.pathname:"/"+ct.pathname}}return lt=ht(window.location.href),function(vt){var kt=d.isString(vt)?ht(vt):vt;return kt.protocol===lt.protocol&&kt.host===lt.host}}():function(){return function(){return!0}}(),isURLSameOrigin$1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var d=utils$d,b=requireSettle(),dt=requireCookies(),ct=buildURL$2,lt=requireBuildFullPath(),ht=requireParseHeaders(),mt=requireIsURLSameOrigin(),vt=requireCreateError();return xhr=function(Pt){return new Promise(function(Zt,Rt){var nn=Pt.data,Qt=Pt.headers,wt=Pt.responseType;d.isFormData(nn)&&delete Qt["Content-Type"];var Nt=new XMLHttpRequest;if(Pt.auth){var xt=Pt.auth.username||"",Et=Pt.auth.password?unescape(encodeURIComponent(Pt.auth.password)):"";Qt.Authorization="Basic "+btoa(xt+":"+Et)}var Bt=lt(Pt.baseURL,Pt.url);Nt.open(Pt.method.toUpperCase(),ct(Bt,Pt.params,Pt.paramsSerializer),!0),Nt.timeout=Pt.timeout;function Tt(){if(Nt){var jt="getAllResponseHeaders"in Nt?ht(Nt.getAllResponseHeaders()):null,Ht=!wt||wt==="text"||wt==="json"?Nt.responseText:Nt.response,an={data:Ht,status:Nt.status,statusText:Nt.statusText,headers:jt,config:Pt,request:Nt};b(Zt,Rt,an),Nt=null}}if("onloadend"in Nt?Nt.onloadend=Tt:Nt.onreadystatechange=function(){!Nt||Nt.readyState!==4||Nt.status===0&&!(Nt.responseURL&&Nt.responseURL.indexOf("file:")===0)||setTimeout(Tt)},Nt.onabort=function(){Nt&&(Rt(vt("Request aborted",Pt,"ECONNABORTED",Nt)),Nt=null)},Nt.onerror=function(){Rt(vt("Network Error",Pt,null,Nt)),Nt=null},Nt.ontimeout=function(){var Ht="timeout of "+Pt.timeout+"ms exceeded";Pt.timeoutErrorMessage&&(Ht=Pt.timeoutErrorMessage),Rt(vt(Ht,Pt,Pt.transitional&&Pt.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",Nt)),Nt=null},d.isStandardBrowserEnv()){var Mt=(Pt.withCredentials||mt(Bt))&&Pt.xsrfCookieName?dt.read(Pt.xsrfCookieName):void 0;Mt&&(Qt[Pt.xsrfHeaderName]=Mt)}"setRequestHeader"in Nt&&d.forEach(Qt,function(Ht,an){typeof nn>"u"&&an.toLowerCase()==="content-type"?delete Qt[an]:Nt.setRequestHeader(an,Ht)}),d.isUndefined(Pt.withCredentials)||(Nt.withCredentials=!!Pt.withCredentials),wt&&wt!=="json"&&(Nt.responseType=Pt.responseType),typeof Pt.onDownloadProgress=="function"&&Nt.addEventListener("progress",Pt.onDownloadProgress),typeof Pt.onUploadProgress=="function"&&Nt.upload&&Nt.upload.addEventListener("progress",Pt.onUploadProgress),Pt.cancelToken&&Pt.cancelToken.promise.then(function(Ht){Nt&&(Nt.abort(),Rt(Ht),Nt=null)}),nn||(nn=null),Nt.send(nn)})},xhr}var utils$9=utils$d,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(d,b){!utils$9.isUndefined(d)&&utils$9.isUndefined(d["Content-Type"])&&(d["Content-Type"]=b)}function getDefaultAdapter(){var d;return(typeof XMLHttpRequest<"u"||typeof browser$1$1<"u"&&Object.prototype.toString.call(browser$1$1)==="[object process]")&&(d=requireXhr()),d}function stringifySafely$1(d,b,dt){if(utils$9.isString(d))try{return(b||JSON.parse)(d),utils$9.trim(d)}catch(ct){if(ct.name!=="SyntaxError")throw ct}return(dt||JSON.stringify)(d)}var defaults$5={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function d(b,dt){return normalizeHeaderName(dt,"Accept"),normalizeHeaderName(dt,"Content-Type"),utils$9.isFormData(b)||utils$9.isArrayBuffer(b)||utils$9.isBuffer(b)||utils$9.isStream(b)||utils$9.isFile(b)||utils$9.isBlob(b)?b:utils$9.isArrayBufferView(b)?b.buffer:utils$9.isURLSearchParams(b)?(setContentTypeIfUnset(dt,"application/x-www-form-urlencoded;charset=utf-8"),b.toString()):utils$9.isObject(b)||dt&&dt["Content-Type"]==="application/json"?(setContentTypeIfUnset(dt,"application/json"),stringifySafely$1(b)):b}],transformResponse:[function d(b){var dt=this.transitional,ct=dt&&dt.silentJSONParsing,lt=dt&&dt.forcedJSONParsing,ht=!ct&&this.responseType==="json";if(ht||lt&&utils$9.isString(b)&&b.length)try{return JSON.parse(b)}catch(mt){if(ht)throw mt.name==="SyntaxError"?enhanceError(mt,this,"E_JSON_PARSE"):mt}return b}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function d(b){return b>=200&&b<300}};defaults$5.headers={common:{Accept:"application/json, text/plain, */*"}};utils$9.forEach(["delete","get","head"],function d(b){defaults$5.headers[b]={}});utils$9.forEach(["post","put","patch"],function d(b){defaults$5.headers[b]=utils$9.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$5,utils$8=utils$d,defaults$4=defaults_1,transformData$2=function d(b,dt,ct){var lt=this||defaults$4;return utils$8.forEach(ct,function(mt){b=mt.call(lt,b,dt)}),b},isCancel$2,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$2=function(b){return!!(b&&b.__CANCEL__)}),isCancel$2}var utils$7=utils$d,transformData$1=transformData$2,isCancel$1=requireIsCancel(),defaults$3=defaults_1;function throwIfCancellationRequested$1(d){d.cancelToken&&d.cancelToken.throwIfRequested()}var dispatchRequest$2=function d(b){throwIfCancellationRequested$1(b),b.headers=b.headers||{},b.data=transformData$1.call(b,b.data,b.headers,b.transformRequest),b.headers=utils$7.merge(b.headers.common||{},b.headers[b.method]||{},b.headers),utils$7.forEach(["delete","get","head","post","put","patch","common"],function(lt){delete b.headers[lt]});var dt=b.adapter||defaults$3.adapter;return dt(b).then(function(lt){return throwIfCancellationRequested$1(b),lt.data=transformData$1.call(b,lt.data,lt.headers,b.transformResponse),lt},function(lt){return isCancel$1(lt)||(throwIfCancellationRequested$1(b),lt&<.response&&(lt.response.data=transformData$1.call(b,lt.response.data,lt.response.headers,b.transformResponse))),Promise.reject(lt)})},utils$6=utils$d,mergeConfig$3=function d(b,dt){dt=dt||{};var ct={},lt=["url","method","data"],ht=["headers","auth","proxy","params"],mt=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],vt=["validateStatus"];function kt(Rt,nn){return utils$6.isPlainObject(Rt)&&utils$6.isPlainObject(nn)?utils$6.merge(Rt,nn):utils$6.isPlainObject(nn)?utils$6.merge({},nn):utils$6.isArray(nn)?nn.slice():nn}function Pt(Rt){utils$6.isUndefined(dt[Rt])?utils$6.isUndefined(b[Rt])||(ct[Rt]=kt(void 0,b[Rt])):ct[Rt]=kt(b[Rt],dt[Rt])}utils$6.forEach(lt,function(nn){utils$6.isUndefined(dt[nn])||(ct[nn]=kt(void 0,dt[nn]))}),utils$6.forEach(ht,Pt),utils$6.forEach(mt,function(nn){utils$6.isUndefined(dt[nn])?utils$6.isUndefined(b[nn])||(ct[nn]=kt(void 0,b[nn])):ct[nn]=kt(void 0,dt[nn])}),utils$6.forEach(vt,function(nn){nn in dt?ct[nn]=kt(b[nn],dt[nn]):nn in b&&(ct[nn]=kt(void 0,b[nn]))});var Jt=lt.concat(ht).concat(mt).concat(vt),Zt=Object.keys(b).concat(Object.keys(dt)).filter(function(nn){return Jt.indexOf(nn)===-1});return utils$6.forEach(Zt,Pt),ct};const name$2="axios",version$3="0.21.4",description$1="Promise based HTTP client for the browser and node.js",main$2="index.js",scripts$2={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository$2={type:"git",url:"https://github.com/axios/axios.git"},keywords=["xhr","http","ajax","promise","node"],author$2="Matt Zabriskie",license$2="MIT",bugs$1={url:"https://github.com/axios/axios/issues"},homepage$1="https://axios-http.com",devDependencies$2={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser$2={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies$2={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name:name$2,version:version$3,description:description$1,main:main$2,scripts:scripts$2,repository:repository$2,keywords,author:author$2,license:license$2,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$2,browser:browser$2,jsdelivr,unpkg,typings,dependencies:dependencies$2,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(d,b){validators$3[d]=function(ct){return typeof ct===d||"a"+(b<1?"n ":" ")+d}});var deprecatedWarnings$1={},currentVerArr=pkg.version.split(".");function isOlderVersion(d,b){for(var dt=b?b.split("."):currentVerArr,ct=d.split("."),lt=0;lt<3;lt++){if(dt[lt]>ct[lt])return!0;if(dt[lt]0;){var ht=ct[lt],mt=b[ht];if(mt){var vt=d[ht],kt=vt===void 0||mt(vt,ht,d);if(kt!==!0)throw new TypeError("option "+ht+" must be "+kt);continue}if(dt!==!0)throw Error("Unknown option "+ht)}}var validator$3={isOlderVersion,assertOptions:assertOptions$1,validators:validators$3},utils$5=utils$d,buildURL$1=buildURL$2,InterceptorManager$2=InterceptorManager_1,dispatchRequest$1=dispatchRequest$2,mergeConfig$2=mergeConfig$3,validator$2=validator$3,validators$2=validator$2.validators;function Axios$3(d){this.defaults=d,this.interceptors={request:new InterceptorManager$2,response:new InterceptorManager$2}}Axios$3.prototype.request=function d(b){typeof b=="string"?(b=arguments[1]||{},b.url=arguments[0]):b=b||{},b=mergeConfig$2(this.defaults,b),b.method?b.method=b.method.toLowerCase():this.defaults.method?b.method=this.defaults.method.toLowerCase():b.method="get";var dt=b.transitional;dt!==void 0&&validator$2.assertOptions(dt,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var ct=[],lt=!0;this.interceptors.request.forEach(function(Rt){typeof Rt.runWhen=="function"&&Rt.runWhen(b)===!1||(lt=lt&&Rt.synchronous,ct.unshift(Rt.fulfilled,Rt.rejected))});var ht=[];this.interceptors.response.forEach(function(Rt){ht.push(Rt.fulfilled,Rt.rejected)});var mt;if(!lt){var vt=[dispatchRequest$1,void 0];for(Array.prototype.unshift.apply(vt,ct),vt=vt.concat(ht),mt=Promise.resolve(b);vt.length;)mt=mt.then(vt.shift(),vt.shift());return mt}for(var kt=b;ct.length;){var Pt=ct.shift(),Jt=ct.shift();try{kt=Pt(kt)}catch(Zt){Jt(Zt);break}}try{mt=dispatchRequest$1(kt)}catch(Zt){return Promise.reject(Zt)}for(;ht.length;)mt=mt.then(ht.shift(),ht.shift());return mt};Axios$3.prototype.getUri=function d(b){return b=mergeConfig$2(this.defaults,b),buildURL$1(b.url,b.params,b.paramsSerializer).replace(/^\?/,"")};utils$5.forEach(["delete","get","head","options"],function d(b){Axios$3.prototype[b]=function(dt,ct){return this.request(mergeConfig$2(ct||{},{method:b,url:dt,data:(ct||{}).data}))}});utils$5.forEach(["post","put","patch"],function d(b){Axios$3.prototype[b]=function(dt,ct,lt){return this.request(mergeConfig$2(lt||{},{method:b,url:dt,data:ct}))}});var Axios_1=Axios$3,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function d(b){this.message=b}return d.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},d.prototype.__CANCEL__=!0,Cancel_1=d,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var d=requireCancel();function b(dt){if(typeof dt!="function")throw new TypeError("executor must be a function.");var ct;this.promise=new Promise(function(mt){ct=mt});var lt=this;dt(function(mt){lt.reason||(lt.reason=new d(mt),ct(lt.reason))})}return b.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},b.source=function(){var ct,lt=new b(function(mt){ct=mt});return{token:lt,cancel:ct}},CancelToken_1=b,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(b){return function(ct){return b.apply(null,ct)}}),spread$1}var isAxiosError$1,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError$1=function(b){return typeof b=="object"&&b.isAxiosError===!0}),isAxiosError$1}var utils$4=utils$d,bind$1=bind$3,Axios$2=Axios_1,mergeConfig$1=mergeConfig$3,defaults$2=defaults_1;function createInstance$1(d){var b=new Axios$2(d),dt=bind$1(Axios$2.prototype.request,b);return utils$4.extend(dt,Axios$2.prototype,b),utils$4.extend(dt,b),dt}var axios$2=createInstance$1(defaults$2);axios$2.Axios=Axios$2;axios$2.create=function d(b){return createInstance$1(mergeConfig$1(axios$2.defaults,b))};axios$2.Cancel=requireCancel();axios$2.CancelToken=requireCancelToken();axios$2.isCancel=requireIsCancel();axios$2.all=function d(b){return Promise.all(b)};axios$2.spread=requireSpread();axios$2.isAxiosError=requireIsAxiosError();axios$3.exports=axios$2;axios$3.exports.default=axios$2;var axiosExports=axios$3.exports,axios$1=axiosExports,__importDefault$o=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(http$1,"__esModule",{value:!0});http$1.http=void 0;const axios_1$3=__importDefault$o(axios$1);function filterBadStatus(d){if(d.status>=400)throw new Error(`Bad status on response: ${d.status}`);return d}function isExperimental(d){return d.toString().includes("emitExperimentalWarning")}async function http(d,b,dt,ct){if(typeof fetch=="function"&&!isExperimental(fetch)){const lt={method:d,body:ct?JSON.stringify(ct):void 0,headers:{"Content-Type":"application/json",...dt}};return fetch(b,lt).then(filterBadStatus).then(ht=>ht.json())}else return axios_1$3.default.request({url:b,method:d,data:ct,headers:dt}).then(lt=>lt.data)}http$1.http=http;var rpcclient={};Object.defineProperty(rpcclient,"__esModule",{value:!0});rpcclient.hasProtocol=rpcclient.instanceOfRpcStreamingClient=void 0;function instanceOfRpcStreamingClient(d){return typeof d.listen=="function"}rpcclient.instanceOfRpcStreamingClient=instanceOfRpcStreamingClient;function hasProtocol(d){return d.search("://")!==-1}rpcclient.hasProtocol=hasProtocol;Object.defineProperty(httpbatchclient,"__esModule",{value:!0});httpbatchclient.HttpBatchClient=void 0;const json_rpc_1$2=build$1,http_1$1=http$1,rpcclient_1$2=rpcclient,defaultHttpBatchClientOptions={dispatchInterval:20,batchSizeLimit:20};class HttpBatchClient{constructor(b,dt={}){this.queue=[],this.options={batchSizeLimit:dt.batchSizeLimit??defaultHttpBatchClientOptions.batchSizeLimit,dispatchInterval:dt.dispatchInterval??defaultHttpBatchClientOptions.dispatchInterval},typeof b=="string"?this.url=(0,rpcclient_1$2.hasProtocol)(b)?b:"http://"+b:(this.url=b.url,this.headers=b.headers),this.timer=setInterval(()=>this.tick(),dt.dispatchInterval),this.validate()}disconnect(){this.timer&&clearInterval(this.timer),this.timer=void 0}async execute(b){return new Promise((dt,ct)=>{this.queue.push({request:b,resolve:dt,reject:ct}),this.queue.length>=this.options.batchSizeLimit&&this.tick()})}validate(){if(!this.options.batchSizeLimit||!Number.isSafeInteger(this.options.batchSizeLimit)||this.options.batchSizeLimit<1)throw new Error("batchSizeLimit must be a safe integer >= 1")}tick(){const b=this.queue.splice(0,this.options.batchSizeLimit);if(!b.length)return;const dt=b.map(lt=>lt.request),ct=dt.map(lt=>lt.id);(0,http_1$1.http)("POST",this.url,this.headers,dt).then(lt=>{(Array.isArray(lt)?lt:[lt]).forEach(mt=>{const vt=b.find(Zt=>Zt.request.id===mt.id);if(!vt)return;const{reject:kt,resolve:Pt}=vt,Jt=(0,json_rpc_1$2.parseJsonRpcResponse)(mt);(0,json_rpc_1$2.isJsonRpcErrorResponse)(Jt)?kt(new Error(JSON.stringify(Jt.error))):Pt(Jt)})},lt=>{for(const ht of ct){const mt=b.find(vt=>vt.request.id===ht);if(!mt)return;mt.reject(lt)}})}}httpbatchclient.HttpBatchClient=HttpBatchClient;var httpclient={};Object.defineProperty(httpclient,"__esModule",{value:!0});httpclient.HttpClient=void 0;const json_rpc_1$1=build$1,http_1=http$1,rpcclient_1$1=rpcclient;class HttpClient{constructor(b){typeof b=="string"?this.url=(0,rpcclient_1$1.hasProtocol)(b)?b:"http://"+b:(this.url=b.url,this.headers=b.headers)}disconnect(){}async execute(b){const dt=(0,json_rpc_1$1.parseJsonRpcResponse)(await(0,http_1.http)("POST",this.url,this.headers,b));if((0,json_rpc_1$1.isJsonRpcErrorResponse)(dt))throw new Error(JSON.stringify(dt.error));return dt}}httpclient.HttpClient=HttpClient;var websocketclient={},build={},queueingstreamingsocket={},streamingsocket={},socketwrapper={},ws=null;typeof WebSocket<"u"?ws=WebSocket:typeof MozWebSocket<"u"?ws=MozWebSocket:typeof commonjsGlobal<"u"?ws=commonjsGlobal.WebSocket||commonjsGlobal.MozWebSocket:typeof window<"u"?ws=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(ws=self.WebSocket||self.MozWebSocket);var browser$1=ws,__importDefault$n=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(socketwrapper,"__esModule",{value:!0});socketwrapper.SocketWrapper=void 0;const isomorphic_ws_1=__importDefault$n(browser$1);function environmentIsNodeJs(){return typeof browser$1$1<"u"&&typeof browser$1$1.versions<"u"&&typeof browser$1$1.versions.node<"u"}class SocketWrapper{constructor(b,dt,ct,lt,ht,mt=1e4){this.closed=!1,this.connected=new Promise((vt,kt)=>{this.connectedResolver=vt,this.connectedRejecter=kt}),this.url=b,this.messageHandler=dt,this.errorHandler=ct,this.openHandler=lt,this.closeHandler=ht,this.timeout=mt}connect(){const b=new isomorphic_ws_1.default(this.url);b.onerror=ct=>{this.clearTimeout(),this.errorHandler&&this.errorHandler(ct)},b.onmessage=ct=>{this.messageHandler({type:ct.type,data:ct.data})},b.onopen=ct=>{this.clearTimeout(),this.connectedResolver(),this.openHandler&&this.openHandler()},b.onclose=ct=>{this.closed=!0,this.closeHandler&&this.closeHandler(ct)};const dt=Date.now();this.timeoutId=setTimeout(()=>{b.onmessage=()=>0,b.onerror=()=>0,b.onopen=()=>0,b.onclose=()=>0,b.close(),this.socket=void 0;const ct=Math.floor(Date.now()-dt);this.connectedRejecter(`Connection attempt timed out after ${ct} ms`)},this.timeout),this.socket=b}disconnect(){if(!this.socket)throw new Error("Socket undefined. This must be called after connecting.");switch(this.clearTimeout(),this.socket.readyState){case isomorphic_ws_1.default.OPEN:this.socket.close(1e3);break;case isomorphic_ws_1.default.CLOSED:break;case isomorphic_ws_1.default.CONNECTING:this.socket.onopen=()=>0,this.socket.onclose=()=>0,this.socket.onerror=()=>0,this.socket.onmessage=()=>0,this.socket=void 0,this.closeHandler&&this.closeHandler({wasClean:!1,code:4001});break;case isomorphic_ws_1.default.CLOSING:break;default:throw new Error(`Unknown readyState: ${this.socket.readyState}`)}}async send(b){return new Promise((dt,ct)=>{if(!this.socket)throw new Error("Socket undefined. This must be called after connecting.");if(this.closed)throw new Error("Socket was closed, so no data can be sent anymore.");if(this.socket.readyState!==isomorphic_ws_1.default.OPEN)throw new Error("Websocket is not open");environmentIsNodeJs()?this.socket.send(b,lt=>lt?ct(lt):dt()):(this.socket.send(b),dt())})}clearTimeout(){if(!this.timeoutId)throw new Error("Timeout ID not set. This should not happen and usually means connect() was not called.");clearTimeout(this.timeoutId)}}socketwrapper.SocketWrapper=SocketWrapper;Object.defineProperty(streamingsocket,"__esModule",{value:!0});streamingsocket.StreamingSocket=void 0;const xstream_1$2=xstream,socketwrapper_1=socketwrapper;class StreamingSocket{constructor(b,dt=1e4){this.socket=new socketwrapper_1.SocketWrapper(b,lt=>{this.eventProducerListener&&this.eventProducerListener.next(lt)},lt=>{this.eventProducerListener&&this.eventProducerListener.error(lt)},()=>{},lt=>{this.eventProducerListener&&(lt.wasClean?this.eventProducerListener.complete():this.eventProducerListener.error("Socket was closed unclean"))},dt),this.connected=this.socket.connected;const ct={start:lt=>this.eventProducerListener=lt,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$2.Stream.create(ct)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}async send(b){return this.socket.send(b)}}streamingsocket.StreamingSocket=StreamingSocket;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.QueueingStreamingSocket=d.ConnectionStatus=void 0;const b=build$4,dt=xstream,ct=streamingsocket;var lt;(function(mt){mt[mt.Unconnected=0]="Unconnected",mt[mt.Connecting=1]="Connecting",mt[mt.Connected=2]="Connected",mt[mt.Disconnected=3]="Disconnected"})(lt=d.ConnectionStatus||(d.ConnectionStatus={}));class ht{constructor(vt,kt=1e4,Pt){this.queue=[],this.isProcessingQueue=!1,this.url=vt,this.timeout=kt,this.reconnectedHandler=Pt;const Jt={start:Zt=>this.eventProducerListener=Zt,stop:()=>this.eventProducerListener=void 0};this.events=dt.Stream.create(Jt),this.connectionStatusProducer=new b.DefaultValueProducer(lt.Unconnected),this.connectionStatus=new b.ValueAndUpdates(this.connectionStatusProducer),this.socket=new ct.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:Zt=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(Zt)},error:()=>this.connectionStatusProducer.update(lt.Disconnected)})}connect(){this.connectionStatusProducer.update(lt.Connecting),this.socket.connected.then(async()=>(this.connectionStatusProducer.update(lt.Connected),this.processQueue()),()=>this.connectionStatusProducer.update(lt.Disconnected)),this.socket.connect()}disconnect(){this.connectionStatusProducer.update(lt.Disconnected),this.socket.disconnect()}reconnect(){this.socket=new ct.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:vt=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(vt)},error:()=>this.connectionStatusProducer.update(lt.Disconnected)}),this.socket.connected.then(()=>{this.reconnectedHandler&&this.reconnectedHandler()}),this.connect()}getQueueLength(){return this.queue.length}queueRequest(vt){this.queue.push(vt),this.processQueue()}async processQueue(){if(this.isProcessingQueue||this.connectionStatus.value!==lt.Connected)return;this.isProcessingQueue=!0;let vt;for(;vt=this.queue.shift();)try{await this.socket.send(vt),this.isProcessingQueue=!1}catch{this.queue.unshift(vt),this.isProcessingQueue=!1;return}}}d.QueueingStreamingSocket=ht})(queueingstreamingsocket);var reconnectingsocket={};Object.defineProperty(reconnectingsocket,"__esModule",{value:!0});reconnectingsocket.ReconnectingSocket=void 0;const xstream_1$1=xstream,queueingstreamingsocket_1=queueingstreamingsocket;class ReconnectingSocket{static calculateTimeout(b){return Math.min(2**b*100,5e3)}constructor(b,dt=1e4,ct){this.unconnected=!0,this.disconnected=!1,this.timeoutIndex=0,this.reconnectTimeout=null;const lt={start:ht=>this.eventProducerListener=ht,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$1.Stream.create(lt),this.socket=new queueingstreamingsocket_1.QueueingStreamingSocket(b,dt,ct),this.socket.events.subscribe({next:ht=>{this.eventProducerListener&&this.eventProducerListener.next(ht)},error:ht=>{this.eventProducerListener&&this.eventProducerListener.error(ht)}}),this.connectionStatus=this.socket.connectionStatus,this.connectionStatus.updates.subscribe({next:ht=>{ht===queueingstreamingsocket_1.ConnectionStatus.Connected&&(this.timeoutIndex=0),ht===queueingstreamingsocket_1.ConnectionStatus.Disconnected&&(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.reconnectTimeout=setTimeout(()=>this.socket.reconnect(),ReconnectingSocket.calculateTimeout(this.timeoutIndex++)))}})}connect(){if(!this.unconnected)throw new Error("Cannot connect: socket has already connected");this.socket.connect(),this.unconnected=!1}disconnect(){if(this.unconnected)throw new Error("Cannot disconnect: socket has not yet connected");this.socket.disconnect(),this.eventProducerListener&&this.eventProducerListener.complete(),this.disconnected=!0}queueRequest(b){if(this.disconnected)throw new Error("Cannot queue request: socket has disconnected");this.socket.queueRequest(b)}}reconnectingsocket.ReconnectingSocket=ReconnectingSocket;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.StreamingSocket=d.SocketWrapper=d.ReconnectingSocket=d.QueueingStreamingSocket=d.ConnectionStatus=void 0;var b=queueingstreamingsocket;Object.defineProperty(d,"ConnectionStatus",{enumerable:!0,get:function(){return b.ConnectionStatus}}),Object.defineProperty(d,"QueueingStreamingSocket",{enumerable:!0,get:function(){return b.QueueingStreamingSocket}});var dt=reconnectingsocket;Object.defineProperty(d,"ReconnectingSocket",{enumerable:!0,get:function(){return dt.ReconnectingSocket}});var ct=socketwrapper;Object.defineProperty(d,"SocketWrapper",{enumerable:!0,get:function(){return ct.SocketWrapper}});var lt=streamingsocket;Object.defineProperty(d,"StreamingSocket",{enumerable:!0,get:function(){return lt.StreamingSocket}})})(build);Object.defineProperty(websocketclient,"__esModule",{value:!0});websocketclient.WebsocketClient=void 0;const json_rpc_1=build$1,socket_1=build,stream_1=build$4,xstream_1=xstream,rpcclient_1=rpcclient;function defaultErrorHandler(d){throw d}function toJsonRpcResponse(d){if(d.type!=="message")throw new Error(`Unexcepted message type on websocket: ${d.type}`);return(0,json_rpc_1.parseJsonRpcResponse)(JSON.parse(d.data))}class RpcEventProducer{constructor(b,dt){this.running=!1,this.subscriptions=[],this.request=b,this.socket=dt}start(b){if(this.running)throw Error("Already started. Please stop first before restarting.");this.running=!0,this.connectToClient(b),this.socket.queueRequest(JSON.stringify(this.request))}stop(){this.running=!1;const b={...this.request,method:"unsubscribe"};try{this.socket.queueRequest(JSON.stringify(b))}catch(dt){if(!(dt instanceof Error&&dt.message.match(/socket has disconnected/i)))throw dt}}connectToClient(b){const dt=this.socket.events.map(toJsonRpcResponse),ct=dt.filter(mt=>mt.id===this.request.id).subscribe({next:mt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(mt)&&(this.closeSubscriptions(),b.error(JSON.stringify(mt.error))),ct.unsubscribe()}}),lt=dt.filter(mt=>mt.id===this.request.id).subscribe({next:mt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(mt)?(this.closeSubscriptions(),b.error(JSON.stringify(mt.error))):b.next(mt.result)}}),ht=dt.subscribe({error:mt=>{this.closeSubscriptions(),b.error(mt)},complete:()=>{this.closeSubscriptions(),b.complete()}});this.subscriptions.push(ct,lt,ht)}closeSubscriptions(){for(const b of this.subscriptions)b.unsubscribe();this.subscriptions=[]}}class WebsocketClient{constructor(b,dt=defaultErrorHandler){this.subscriptionStreams=new Map;const ct=b.endsWith("/")?"websocket":"/websocket",lt=(0,rpcclient_1.hasProtocol)(b)?b:"ws://"+b;this.url=lt+ct,this.socket=new socket_1.ReconnectingSocket(this.url);const ht=this.socket.events.subscribe({error:mt=>{dt(mt),ht.unsubscribe()}});this.jsonRpcResponseStream=this.socket.events.map(toJsonRpcResponse),this.socket.connect()}async execute(b){const dt=this.responseForRequestId(b.id);this.socket.queueRequest(JSON.stringify(b));const ct=await dt;if((0,json_rpc_1.isJsonRpcErrorResponse)(ct))throw new Error(JSON.stringify(ct.error));return ct}listen(b){if(b.method!=="subscribe")throw new Error('Request method must be "subscribe" to start event listening');const dt=b.params.query;if(typeof dt!="string")throw new Error("request.params.query must be a string");if(!this.subscriptionStreams.has(dt)){const ct=new RpcEventProducer(b,this.socket),lt=xstream_1.Stream.create(ct);this.subscriptionStreams.set(dt,lt)}return this.subscriptionStreams.get(dt).filter(ct=>ct.query!==void 0)}async connected(){await this.socket.connectionStatus.waitFor(socket_1.ConnectionStatus.Connected)}disconnect(){this.socket.disconnect()}async responseForRequestId(b){return(0,stream_1.firstEvent)(this.jsonRpcResponseStream.filter(dt=>dt.id===b))}}websocketclient.WebsocketClient=WebsocketClient;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.WebsocketClient=d.instanceOfRpcStreamingClient=d.HttpClient=d.HttpBatchClient=void 0;var b=httpbatchclient;Object.defineProperty(d,"HttpBatchClient",{enumerable:!0,get:function(){return b.HttpBatchClient}});var dt=httpclient;Object.defineProperty(d,"HttpClient",{enumerable:!0,get:function(){return dt.HttpClient}});var ct=rpcclient;Object.defineProperty(d,"instanceOfRpcStreamingClient",{enumerable:!0,get:function(){return ct.instanceOfRpcStreamingClient}});var lt=websocketclient;Object.defineProperty(d,"WebsocketClient",{enumerable:!0,get:function(){return lt.WebsocketClient}})})(rpcclients);var tendermint34={},requests$7={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.buildQuery=d.SubscriptionEventType=d.Method=void 0,function(dt){dt.AbciInfo="abci_info",dt.AbciQuery="abci_query",dt.Block="block",dt.Blockchain="blockchain",dt.BlockResults="block_results",dt.BlockSearch="block_search",dt.BroadcastTxAsync="broadcast_tx_async",dt.BroadcastTxSync="broadcast_tx_sync",dt.BroadcastTxCommit="broadcast_tx_commit",dt.Commit="commit",dt.Genesis="genesis",dt.Health="health",dt.NumUnconfirmedTxs="num_unconfirmed_txs",dt.Status="status",dt.Subscribe="subscribe",dt.Tx="tx",dt.TxSearch="tx_search",dt.Validators="validators",dt.Unsubscribe="unsubscribe"}(d.Method||(d.Method={})),function(dt){dt.NewBlock="NewBlock",dt.NewBlockHeader="NewBlockHeader",dt.Tx="Tx"}(d.SubscriptionEventType||(d.SubscriptionEventType={}));function b(dt){const lt=(dt.tags?dt.tags:[]).map(mt=>`${mt.key}='${mt.value}'`),ht=dt.raw?[dt.raw]:[];return[...lt,...ht].join(" AND ")}d.buildQuery=b})(requests$7);var responses$3={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.VoteType=d.broadcastTxCommitSuccess=d.broadcastTxSyncSuccess=void 0;function b(ct){return ct.code===0}d.broadcastTxSyncSuccess=b;function dt(ct){return ct.checkTx.code===0&&!!ct.deliverTx&&ct.deliverTx.code===0}d.broadcastTxCommitSuccess=dt,function(ct){ct[ct.PreVote=1]="PreVote",ct[ct.PreCommit=2]="PreCommit"}(d.VoteType||(d.VoteType={}))})(responses$3);var tendermint34client={},jsonrpc={};Object.defineProperty(jsonrpc,"__esModule",{value:!0});jsonrpc.createJsonRpcRequest=void 0;const numbersWithoutZero="123456789";function randomNumericChar(){return numbersWithoutZero[Math.floor(Math.random()*numbersWithoutZero.length)]}function randomId(){return parseInt(Array.from({length:12}).map(()=>randomNumericChar()).join(""),10)}function createJsonRpcRequest(d,b){const dt=b?{...b}:{};return{jsonrpc:"2.0",id:randomId(),method:d,params:dt}}jsonrpc.createJsonRpcRequest=createJsonRpcRequest;var adaptor$1={},hasher$1={},encodings$1={};Object.defineProperty(encodings$1,"__esModule",{value:!0});encodings$1.encodeBlockId=encodings$1.encodeVersion=encodings$1.encodeBytes=encodings$1.encodeTime=encodings$1.encodeUvarint=encodings$1.encodeString=encodings$1.dictionaryToStringMap=encodings$1.may=encodings$1.assertNotEmpty=encodings$1.assertObject=encodings$1.assertArray=encodings$1.assertNumber=encodings$1.assertString=encodings$1.assertBoolean=encodings$1.assertSet=void 0;const encoding_1$e=build$2;function assertSet$1(d){if(d===void 0)throw new Error("Value must not be undefined");if(d===null)throw new Error("Value must not be null");return d}encodings$1.assertSet=assertSet$1;function assertBoolean$1(d){if(assertSet$1(d),typeof d!="boolean")throw new Error("Value must be a boolean");return d}encodings$1.assertBoolean=assertBoolean$1;function assertString$1(d){if(assertSet$1(d),typeof d!="string")throw new Error("Value must be a string");return d}encodings$1.assertString=assertString$1;function assertNumber$1(d){if(assertSet$1(d),typeof d!="number")throw new Error("Value must be a number");return d}encodings$1.assertNumber=assertNumber$1;function assertArray$1(d){if(assertSet$1(d),!Array.isArray(d))throw new Error("Value must be a an array");return d}encodings$1.assertArray=assertArray$1;function assertObject$1(d){if(assertSet$1(d),typeof d!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(d)!=="[object Object]")throw new Error("Value must be a simple object");return d}encodings$1.assertObject=assertObject$1;function assertNotEmpty$1(d){if(assertSet$1(d),typeof d=="number"&&d===0)throw new Error("must provide a non-zero value");if(d.length===0)throw new Error("must provide a non-empty value");return d}encodings$1.assertNotEmpty=assertNotEmpty$1;function may$1(d,b){return b==null?void 0:d(b)}encodings$1.may=may$1;function dictionaryToStringMap$1(d){const b=new Map;for(const dt of Object.keys(d)){const ct=d[dt];if(typeof ct!="string")throw new Error("Found dictionary value of type other than string");b.set(dt,ct)}return b}encodings$1.dictionaryToStringMap=dictionaryToStringMap$1;function encodeString$1(d){const b=(0,encoding_1$e.toUtf8)(d);return Uint8Array.from([b.length,...b])}encodings$1.encodeString=encodeString$1;function encodeUvarint$1(d){return d>=128?Uint8Array.from([d&255|128,...encodeUvarint$1(d>>7)]):Uint8Array.from([d&255])}encodings$1.encodeUvarint=encodeUvarint$1;function encodeTime$1(d){const b=d.getTime(),dt=Math.floor(b/1e3),ct=dt?[8,...encodeUvarint$1(dt)]:new Uint8Array,lt=(d.nanoseconds||0)+b%1e3*1e6,ht=lt?[16,...encodeUvarint$1(lt)]:new Uint8Array;return Uint8Array.from([...ct,...ht])}encodings$1.encodeTime=encodeTime$1;function encodeBytes$1(d){if(d.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return d.length?Uint8Array.from([d.length,...d]):new Uint8Array}encodings$1.encodeBytes=encodeBytes$1;function encodeVersion$1(d){const b=d.block?Uint8Array.from([8,...encodeUvarint$1(d.block)]):new Uint8Array,dt=d.app?Uint8Array.from([16,...encodeUvarint$1(d.app)]):new Uint8Array;return Uint8Array.from([...b,...dt])}encodings$1.encodeVersion=encodeVersion$1;function encodeBlockId$1(d){return Uint8Array.from([10,d.hash.length,...d.hash,18,d.parts.hash.length+4,8,d.parts.total,18,d.parts.hash.length,...d.parts.hash])}encodings$1.encodeBlockId=encodeBlockId$1;Object.defineProperty(hasher$1,"__esModule",{value:!0});hasher$1.hashBlock=hasher$1.hashTx=void 0;const crypto_1$8=build$b,encodings_1$6=encodings$1;function hashTx$1(d){return(0,crypto_1$8.sha256)(d)}hasher$1.hashTx=hashTx$1;function getSplitPoint$1(d){if(d<1)throw new Error("Cannot split an empty tree");const b=2**Math.floor(Math.log2(d));return b({type:b.type,key:(0,encoding_1$c.fromBase64)(b.key),data:(0,encoding_1$c.fromBase64)(b.data)}))}}function decodeAbciQuery$1(d){return{key:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertString)(d.key??"")),value:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertString)(d.value??"")),proof:(0,encodings_1$3.may)(decodeQueryProof$1,d.proofOps),height:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,d.height),code:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,d.code),codespace:(0,encodings_1$3.assertString)(d.codespace??""),index:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,d.index),log:d.log,info:(0,encodings_1$3.assertString)(d.info??"")}}function decodeAttribute(d){return{key:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.key)),value:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertString)(d.value??""))}}function decodeAttributes$1(d){return(0,encodings_1$3.assertArray)(d).map(decodeAttribute)}function decodeEvent$1(d){return{type:d.type,attributes:d.attributes?decodeAttributes$1(d.attributes):[]}}responses$2.decodeEvent=decodeEvent$1;function decodeEvents$1(d){return(0,encodings_1$3.assertArray)(d).map(decodeEvent$1)}function decodeTxData$1(d){return{code:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(d.code??0)),codespace:d.codespace,log:d.log,data:(0,encodings_1$3.may)(encoding_1$c.fromBase64,d.data),events:d.events?decodeEvents$1(d.events):[],gasWanted:(0,inthelpers_1$2.apiToSmallInt)(d.gas_wanted??"0"),gasUsed:(0,inthelpers_1$2.apiToSmallInt)(d.gas_used??"0")}}function decodePubkey$1(d){if("Sum"in d){const[[b,dt]]=Object.entries(d.Sum.value);return(0,utils_1$7.assert)(b==="ed25519"||b==="secp256k1",`unknown pubkey type: ${b}`),{algorithm:b,data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(dt))}}else switch(d.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.value))};default:throw new Error(`unknown pubkey type: ${d.type}`)}}function decodeBlockParams$1(d){return{maxBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_bytes)),maxGas:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_gas))}}function decodeEvidenceParams$1(d){return{maxAgeNumBlocks:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.max_age_duration))}}function decodeConsensusParams$1(d){return{block:decodeBlockParams$1((0,encodings_1$3.assertObject)(d.block)),evidence:decodeEvidenceParams$1((0,encodings_1$3.assertObject)(d.evidence))}}function decodeValidatorUpdate$1(d){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)(d.power??"0")}}responses$2.decodeValidatorUpdate=decodeValidatorUpdate$1;function decodeBlockResults$1(d){return{height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),results:(d.txs_results||[]).map(decodeTxData$1),validatorUpdates:(d.validator_updates||[]).map(decodeValidatorUpdate$1),consensusUpdates:(0,encodings_1$3.may)(decodeConsensusParams$1,d.consensus_param_updates),beginBlockEvents:decodeEvents$1(d.begin_block_events||[]),endBlockEvents:decodeEvents$1(d.end_block_events||[])}}function decodeBlockId$1(d){return{hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash)),parts:{total:(0,encodings_1$3.assertNotEmpty)(d.parts.total),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.parts.hash))}}}function decodeBlockVersion$1(d){return{block:(0,inthelpers_1$2.apiToSmallInt)(d.block),app:(0,inthelpers_1$2.apiToSmallInt)(d.app??0)}}function decodeHeader$1(d){return{version:decodeBlockVersion$1(d.version),chainId:(0,encodings_1$3.assertNotEmpty)(d.chain_id),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),time:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(d.time)),lastBlockId:d.last_block_id.hash?decodeBlockId$1(d.last_block_id):null,lastCommitHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.last_commit_hash)),dataHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.data_hash)),validatorsHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.validators_hash)),nextValidatorsHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.next_validators_hash)),consensusHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.consensus_hash)),appHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.app_hash)),lastResultsHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.last_results_hash)),evidenceHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.evidence_hash)),proposerAddress:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.proposer_address))}}function decodeBlockMeta$1(d){return{blockId:decodeBlockId$1(d.block_id),blockSize:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.block_size)),header:decodeHeader$1(d.header),numTxs:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.num_txs))}}function decodeBlockchain$1(d){return{lastHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.last_height)),blockMetas:(0,encodings_1$3.assertArray)(d.block_metas).map(decodeBlockMeta$1)}}function decodeBroadcastTxSync$1(d){return{...decodeTxData$1(d),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash))}}function decodeBroadcastTxCommit$1(d){return{height:(0,inthelpers_1$2.apiToSmallInt)(d.height),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash)),checkTx:decodeTxData$1((0,encodings_1$3.assertObject)(d.check_tx)),deliverTx:(0,encodings_1$3.may)(decodeTxData$1,d.deliver_tx)}}function decodeBlockIdFlag$1(d){return(0,utils_1$7.assert)(d in types_1$4.BlockIdFlag),d}function decodeOptionalTime$1(d){return d&&!d.startsWith("0001-01-01")?(0,dates_1$1.fromRfc3339WithNanoseconds)(d):void 0}function decodeCommitSignature$1(d){return{blockIdFlag:decodeBlockIdFlag$1(d.block_id_flag),validatorAddress:d.validator_address?(0,encoding_1$c.fromHex)(d.validator_address):void 0,timestamp:decodeOptionalTime$1(d.timestamp),signature:d.signature?(0,encoding_1$c.fromBase64)(d.signature):void 0}}function decodeCommit$1(d){return{blockId:decodeBlockId$1((0,encodings_1$3.assertObject)(d.block_id)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),round:(0,inthelpers_1$2.apiToSmallInt)(d.round),signatures:(0,encodings_1$3.assertArray)(d.signatures).map(decodeCommitSignature$1)}}function decodeCommitResponse$1(d){return{canonical:(0,encodings_1$3.assertBoolean)(d.canonical),header:decodeHeader$1(d.signed_header.header),commit:decodeCommit$1(d.signed_header.commit)}}function decodeValidatorGenesis$1(d){return{address:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.address)),pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(d.power))}}responses$2.decodeValidatorGenesis=decodeValidatorGenesis$1;function decodeGenesis$1(d){return{genesisTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(d.genesis_time)),chainId:(0,encodings_1$3.assertNotEmpty)(d.chain_id),consensusParams:decodeConsensusParams$1(d.consensus_params),validators:d.validators?(0,encodings_1$3.assertArray)(d.validators).map(decodeValidatorGenesis$1):[],appHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertSet)(d.app_hash)),appState:d.app_state}}function decodeValidatorInfo$1(d){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(d.voting_power)),address:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.address)),proposerPriority:d.proposer_priority?(0,inthelpers_1$2.apiToSmallInt)(d.proposer_priority):void 0}}responses$2.decodeValidatorInfo=decodeValidatorInfo$1;function decodeNodeInfo$1(d){return{id:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.id)),listenAddr:(0,encodings_1$3.assertNotEmpty)(d.listen_addr),network:(0,encodings_1$3.assertNotEmpty)(d.network),version:(0,encodings_1$3.assertString)(d.version),channels:(0,encodings_1$3.assertNotEmpty)(d.channels),moniker:(0,encodings_1$3.assertNotEmpty)(d.moniker),other:(0,encodings_1$3.dictionaryToStringMap)(d.other),protocolVersion:{app:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.protocol_version.app)),block:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.protocol_version.block)),p2p:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.protocol_version.p2p))}}}function decodeSyncInfo$1(d){const b=d.earliest_block_height?(0,inthelpers_1$2.apiToSmallInt)(d.earliest_block_height):void 0,dt=d.earliest_block_time?(0,dates_1$1.fromRfc3339WithNanoseconds)(d.earliest_block_time):void 0;return{earliestAppHash:d.earliest_app_hash?(0,encoding_1$c.fromHex)(d.earliest_app_hash):void 0,earliestBlockHash:d.earliest_block_hash?(0,encoding_1$c.fromHex)(d.earliest_block_hash):void 0,earliestBlockHeight:b||void 0,earliestBlockTime:dt!=null&&dt.getTime()?dt:void 0,latestBlockHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.latest_block_hash)),latestAppHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.latest_app_hash)),latestBlockTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(d.latest_block_time)),latestBlockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.latest_block_height)),catchingUp:(0,encodings_1$3.assertBoolean)(d.catching_up)}}function decodeStatus$1(d){return{nodeInfo:decodeNodeInfo$1(d.node_info),syncInfo:decodeSyncInfo$1(d.sync_info),validatorInfo:decodeValidatorInfo$1(d.validator_info)}}function decodeTxProof$1(d){return{data:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.data)),rootHash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.root_hash)),proof:{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.proof.total)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.proof.index)),leafHash:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.proof.leaf_hash)),aunts:(0,encodings_1$3.assertArray)(d.proof.aunts).map(encoding_1$c.fromBase64)}}}function decodeTxResponse$1(d){return{tx:(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.tx)),result:decodeTxData$1((0,encodings_1$3.assertObject)(d.tx_result)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(d.index)),hash:(0,encoding_1$c.fromHex)((0,encodings_1$3.assertNotEmpty)(d.hash)),proof:(0,encodings_1$3.may)(decodeTxProof$1,d.proof)}}function decodeTxSearch$1(d){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total_count)),txs:(0,encodings_1$3.assertArray)(d.txs).map(decodeTxResponse$1)}}function decodeTxEvent$1(d){const b=(0,encoding_1$c.fromBase64)((0,encodings_1$3.assertNotEmpty)(d.tx));return{tx:b,hash:(0,hasher_1$3.hashTx)(b),result:decodeTxData$1(d.result),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.height))}}function decodeValidators$1(d){return{blockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.block_height)),validators:(0,encodings_1$3.assertArray)(d.validators).map(decodeValidatorInfo$1),count:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.count)),total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total))}}function decodeBlock$1(d){var b;return{header:decodeHeader$1((0,encodings_1$3.assertObject)(d.header)),lastCommit:d.last_commit.block_id.hash?decodeCommit$1((0,encodings_1$3.assertObject)(d.last_commit)):null,txs:d.data.txs?(0,encodings_1$3.assertArray)(d.data.txs).map(encoding_1$c.fromBase64):[],evidence:((b=d.evidence)==null?void 0:b.evidence)??[]}}function decodeBlockResponse$1(d){return{blockId:decodeBlockId$1(d.block_id),block:decodeBlock$1(d.block)}}function decodeBlockSearch$1(d){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total_count)),blocks:(0,encodings_1$3.assertArray)(d.blocks).map(decodeBlockResponse$1)}}function decodeNumUnconfirmedTxs$1(d){return{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total)),totalBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(d.total_bytes))}}let Responses$1=class g2{static decodeAbciInfo(b){return decodeAbciInfo$1((0,encodings_1$3.assertObject)(b.result.response))}static decodeAbciQuery(b){return decodeAbciQuery$1((0,encodings_1$3.assertObject)(b.result.response))}static decodeBlock(b){return decodeBlockResponse$1(b.result)}static decodeBlockResults(b){return decodeBlockResults$1(b.result)}static decodeBlockSearch(b){return decodeBlockSearch$1(b.result)}static decodeBlockchain(b){return decodeBlockchain$1(b.result)}static decodeBroadcastTxSync(b){return decodeBroadcastTxSync$1(b.result)}static decodeBroadcastTxAsync(b){return g2.decodeBroadcastTxSync(b)}static decodeBroadcastTxCommit(b){return decodeBroadcastTxCommit$1(b.result)}static decodeCommit(b){return decodeCommitResponse$1(b.result)}static decodeGenesis(b){return decodeGenesis$1((0,encodings_1$3.assertObject)(b.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(b){return decodeNumUnconfirmedTxs$1(b.result)}static decodeStatus(b){return decodeStatus$1(b.result)}static decodeNewBlockEvent(b){return decodeBlock$1(b.data.value.block)}static decodeNewBlockHeaderEvent(b){return decodeHeader$1(b.data.value.header)}static decodeTxEvent(b){return decodeTxEvent$1(b.data.value.TxResult)}static decodeTx(b){return decodeTxResponse$1(b.result)}static decodeTxSearch(b){return decodeTxSearch$1(b.result)}static decodeValidators(b){return decodeValidators$1(b.result)}};responses$2.Responses=Responses$1;Object.defineProperty(adaptor$1,"__esModule",{value:!0});adaptor$1.adaptor34=void 0;const hasher_1$2=hasher$1,requests_1$1=requests$6,responses_1$1=responses$2;adaptor$1.adaptor34={params:requests_1$1.Params,responses:responses_1$1.Responses,hashTx:hasher_1$2.hashTx,hashBlock:hasher_1$2.hashBlock};var __createBinding$c=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$c=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$c(b,d,dt);return __setModuleDefault$c(b,d),b};Object.defineProperty(tendermint34client,"__esModule",{value:!0});tendermint34client.Tendermint34Client=void 0;const jsonrpc_1$2=jsonrpc,rpcclients_1$1=rpcclients,adaptor_1$1=adaptor$1,requests$4=__importStar$c(requests$7);class Tendermint34Client{static async connect(b){let dt;return typeof b=="object"?dt=new rpcclients_1$1.HttpClient(b):dt=b.startsWith("http://")||b.startsWith("https://")?new rpcclients_1$1.HttpClient(b):new rpcclients_1$1.WebsocketClient(b),await this.detectVersion(dt),Tendermint34Client.create(dt)}static async create(b){return new Tendermint34Client(b)}static async detectVersion(b){const dt=(0,jsonrpc_1$2.createJsonRpcRequest)(requests$4.Method.Status),lt=(await b.execute(dt)).result;if(!lt||!lt.node_info)throw new Error("Unrecognized format for status response");const ht=lt.node_info.version;if(typeof ht!="string")throw new Error("Unrecognized version format: must be string");return ht}constructor(b){this.client=b,this.p=adaptor_1$1.adaptor34.params,this.r=adaptor_1$1.adaptor34.responses}disconnect(){this.client.disconnect()}async abciInfo(){const b={method:requests$4.Method.AbciInfo};return this.doCall(b,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(b){const dt={params:b,method:requests$4.Method.AbciQuery};return this.doCall(dt,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(b){const dt={method:requests$4.Method.Block,params:{height:b}};return this.doCall(dt,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(b){const dt={method:requests$4.Method.BlockResults,params:{height:b}};return this.doCall(dt,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(b){const dt={params:b,method:requests$4.Method.BlockSearch},ct=await this.doCall(dt,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...ct,blocks:[...ct.blocks].sort((lt,ht)=>lt.block.header.height-ht.block.header.height)}}async blockSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.blockSearch({...b,page:dt});ct.push(...ht.blocks),ct.lengthht.block.header.height-mt.block.header.height),{totalCount:ct.length,blocks:ct}}async blockchain(b,dt){const ct={method:requests$4.Method.Blockchain,params:{minHeight:b,maxHeight:dt}};return this.doCall(ct,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(b){const dt={params:b,method:requests$4.Method.BroadcastTxSync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(b){const dt={params:b,method:requests$4.Method.BroadcastTxAsync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(b){const dt={params:b,method:requests$4.Method.BroadcastTxCommit};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(b){const dt={method:requests$4.Method.Commit,params:{height:b}};return this.doCall(dt,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const b={method:requests$4.Method.Genesis};return this.doCall(b,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const b={method:requests$4.Method.Health};return this.doCall(b,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const b={method:requests$4.Method.NumUnconfirmedTxs};return this.doCall(b,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const b={method:requests$4.Method.Status};return this.doCall(b,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const b={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlock}};return this.subscribe(b,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const b={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlockHeader}};return this.subscribe(b,this.r.decodeNewBlockHeaderEvent)}subscribeTx(b){const dt={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.Tx,raw:b}};return this.subscribe(dt,this.r.decodeTxEvent)}async tx(b){const dt={params:b,method:requests$4.Method.Tx};return this.doCall(dt,this.p.encodeTx,this.r.decodeTx)}async txSearch(b){const dt={params:b,method:requests$4.Method.TxSearch};return this.doCall(dt,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.txSearch({...b,page:dt});ct.push(...ht.txs),ct.lengthdt(ht))}}tendermint34client.Tendermint34Client=Tendermint34Client;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.Tendermint34Client=d.VoteType=d.broadcastTxSyncSuccess=d.broadcastTxCommitSuccess=d.SubscriptionEventType=d.Method=void 0;var b=requests$7;Object.defineProperty(d,"Method",{enumerable:!0,get:function(){return b.Method}}),Object.defineProperty(d,"SubscriptionEventType",{enumerable:!0,get:function(){return b.SubscriptionEventType}});var dt=responses$3;Object.defineProperty(d,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return dt.broadcastTxCommitSuccess}}),Object.defineProperty(d,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return dt.broadcastTxSyncSuccess}}),Object.defineProperty(d,"VoteType",{enumerable:!0,get:function(){return dt.VoteType}});var ct=tendermint34client;Object.defineProperty(d,"Tendermint34Client",{enumerable:!0,get:function(){return ct.Tendermint34Client}})})(tendermint34);var tendermint37={},requests$3={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.buildQuery=d.SubscriptionEventType=d.Method=void 0,function(dt){dt.AbciInfo="abci_info",dt.AbciQuery="abci_query",dt.Block="block",dt.Blockchain="blockchain",dt.BlockResults="block_results",dt.BlockSearch="block_search",dt.BroadcastTxAsync="broadcast_tx_async",dt.BroadcastTxSync="broadcast_tx_sync",dt.BroadcastTxCommit="broadcast_tx_commit",dt.Commit="commit",dt.Genesis="genesis",dt.Health="health",dt.NumUnconfirmedTxs="num_unconfirmed_txs",dt.Status="status",dt.Subscribe="subscribe",dt.Tx="tx",dt.TxSearch="tx_search",dt.Validators="validators",dt.Unsubscribe="unsubscribe"}(d.Method||(d.Method={})),function(dt){dt.NewBlock="NewBlock",dt.NewBlockHeader="NewBlockHeader",dt.Tx="Tx"}(d.SubscriptionEventType||(d.SubscriptionEventType={}));function b(dt){const lt=(dt.tags?dt.tags:[]).map(mt=>`${mt.key}='${mt.value}'`),ht=dt.raw?[dt.raw]:[];return[...lt,...ht].join(" AND ")}d.buildQuery=b})(requests$3);var responses$1={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.VoteType=d.broadcastTxCommitSuccess=d.broadcastTxSyncSuccess=void 0;function b(ct){return ct.code===0}d.broadcastTxSyncSuccess=b;function dt(ct){return ct.checkTx.code===0&&!!ct.deliverTx&&ct.deliverTx.code===0}d.broadcastTxCommitSuccess=dt,function(ct){ct[ct.PreVote=1]="PreVote",ct[ct.PreCommit=2]="PreCommit"}(d.VoteType||(d.VoteType={}))})(responses$1);var tendermint37client={},adaptor={},hasher={},encodings={};Object.defineProperty(encodings,"__esModule",{value:!0});encodings.encodeBlockId=encodings.encodeVersion=encodings.encodeBytes=encodings.encodeTime=encodings.encodeUvarint=encodings.encodeString=encodings.dictionaryToStringMap=encodings.may=encodings.assertNotEmpty=encodings.assertObject=encodings.assertArray=encodings.assertNumber=encodings.assertString=encodings.assertBoolean=encodings.assertSet=void 0;const encoding_1$b=build$2;function assertSet(d){if(d===void 0)throw new Error("Value must not be undefined");if(d===null)throw new Error("Value must not be null");return d}encodings.assertSet=assertSet;function assertBoolean(d){if(assertSet(d),typeof d!="boolean")throw new Error("Value must be a boolean");return d}encodings.assertBoolean=assertBoolean;function assertString(d){if(assertSet(d),typeof d!="string")throw new Error("Value must be a string");return d}encodings.assertString=assertString;function assertNumber(d){if(assertSet(d),typeof d!="number")throw new Error("Value must be a number");return d}encodings.assertNumber=assertNumber;function assertArray(d){if(assertSet(d),!Array.isArray(d))throw new Error("Value must be a an array");return d}encodings.assertArray=assertArray;function assertObject(d){if(assertSet(d),typeof d!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(d)!=="[object Object]")throw new Error("Value must be a simple object");return d}encodings.assertObject=assertObject;function assertNotEmpty(d){if(assertSet(d),typeof d=="number"&&d===0)throw new Error("must provide a non-zero value");if(d.length===0)throw new Error("must provide a non-empty value");return d}encodings.assertNotEmpty=assertNotEmpty;function may(d,b){return b==null?void 0:d(b)}encodings.may=may;function dictionaryToStringMap(d){const b=new Map;for(const dt of Object.keys(d)){const ct=d[dt];if(typeof ct!="string")throw new Error("Found dictionary value of type other than string");b.set(dt,ct)}return b}encodings.dictionaryToStringMap=dictionaryToStringMap;function encodeString(d){const b=(0,encoding_1$b.toUtf8)(d);return Uint8Array.from([b.length,...b])}encodings.encodeString=encodeString;function encodeUvarint(d){return d>=128?Uint8Array.from([d&255|128,...encodeUvarint(d>>7)]):Uint8Array.from([d&255])}encodings.encodeUvarint=encodeUvarint;function encodeTime(d){const b=d.getTime(),dt=Math.floor(b/1e3),ct=dt?[8,...encodeUvarint(dt)]:new Uint8Array,lt=(d.nanoseconds||0)+b%1e3*1e6,ht=lt?[16,...encodeUvarint(lt)]:new Uint8Array;return Uint8Array.from([...ct,...ht])}encodings.encodeTime=encodeTime;function encodeBytes(d){if(d.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return d.length?Uint8Array.from([d.length,...d]):new Uint8Array}encodings.encodeBytes=encodeBytes;function encodeVersion(d){const b=d.block?Uint8Array.from([8,...encodeUvarint(d.block)]):new Uint8Array,dt=d.app?Uint8Array.from([16,...encodeUvarint(d.app)]):new Uint8Array;return Uint8Array.from([...b,...dt])}encodings.encodeVersion=encodeVersion;function encodeBlockId(d){return Uint8Array.from([10,d.hash.length,...d.hash,18,d.parts.hash.length+4,8,d.parts.total,18,d.parts.hash.length,...d.parts.hash])}encodings.encodeBlockId=encodeBlockId;Object.defineProperty(hasher,"__esModule",{value:!0});hasher.hashBlock=hasher.hashTx=void 0;const crypto_1$7=build$b,encodings_1$2=encodings;function hashTx(d){return(0,crypto_1$7.sha256)(d)}hasher.hashTx=hashTx;function getSplitPoint(d){if(d<1)throw new Error("Cannot split an empty tree");const b=2**Math.floor(Math.log2(d));return b({type:b.type,key:(0,encoding_1$9.fromBase64)(b.key),data:(0,encoding_1$9.fromBase64)(b.data)}))}}function decodeAbciQuery(d){return{key:(0,encoding_1$9.fromBase64)((0,encodings_1.assertString)(d.key??"")),value:(0,encoding_1$9.fromBase64)((0,encodings_1.assertString)(d.value??"")),proof:(0,encodings_1.may)(decodeQueryProof,d.proofOps),height:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,d.height),code:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,d.code),codespace:(0,encodings_1.assertString)(d.codespace??""),index:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,d.index),log:d.log,info:(0,encodings_1.assertString)(d.info??"")}}function decodeEventAttribute(d){return{key:(0,encodings_1.assertNotEmpty)(d.key),value:d.value??""}}function decodeAttributes(d){return(0,encodings_1.assertArray)(d).map(decodeEventAttribute)}function decodeEvent(d){return{type:d.type,attributes:d.attributes?decodeAttributes(d.attributes):[]}}responses.decodeEvent=decodeEvent;function decodeEvents(d){return(0,encodings_1.assertArray)(d).map(decodeEvent)}function decodeTxData(d){return{code:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(d.code??0)),codespace:d.codespace,log:d.log,data:(0,encodings_1.may)(encoding_1$9.fromBase64,d.data),events:d.events?decodeEvents(d.events):[],gasWanted:(0,inthelpers_1.apiToSmallInt)(d.gas_wanted??"0"),gasUsed:(0,inthelpers_1.apiToSmallInt)(d.gas_used??"0")}}function decodePubkey(d){if("Sum"in d){const[[b,dt]]=Object.entries(d.Sum.value);return(0,utils_1$6.assert)(b==="ed25519"||b==="secp256k1",`unknown pubkey type: ${b}`),{algorithm:b,data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(dt))}}else switch(d.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.value))};default:throw new Error(`unknown pubkey type: ${d.type}`)}}function decodeBlockParams(d){return{maxBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_bytes)),maxGas:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_gas))}}function decodeEvidenceParams(d){return{maxAgeNumBlocks:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.max_age_duration))}}function decodeConsensusParams(d){return{block:decodeBlockParams((0,encodings_1.assertObject)(d.block)),evidence:decodeEvidenceParams((0,encodings_1.assertObject)(d.evidence))}}function decodeValidatorUpdate(d){return{pubkey:decodePubkey((0,encodings_1.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)(d.power??"0")}}responses.decodeValidatorUpdate=decodeValidatorUpdate;function decodeBlockResults(d){return{height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),results:(d.txs_results||[]).map(decodeTxData),validatorUpdates:(d.validator_updates||[]).map(decodeValidatorUpdate),consensusUpdates:(0,encodings_1.may)(decodeConsensusParams,d.consensus_param_updates),beginBlockEvents:decodeEvents(d.begin_block_events||[]),endBlockEvents:decodeEvents(d.end_block_events||[])}}function decodeBlockId(d){return{hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash)),parts:{total:(0,encodings_1.assertNotEmpty)(d.parts.total),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.parts.hash))}}}function decodeBlockVersion(d){return{block:(0,inthelpers_1.apiToSmallInt)(d.block),app:(0,inthelpers_1.apiToSmallInt)(d.app??0)}}function decodeHeader(d){return{version:decodeBlockVersion(d.version),chainId:(0,encodings_1.assertNotEmpty)(d.chain_id),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),time:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(d.time)),lastBlockId:d.last_block_id.hash?decodeBlockId(d.last_block_id):null,lastCommitHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.last_commit_hash)),dataHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.data_hash)),validatorsHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.validators_hash)),nextValidatorsHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.next_validators_hash)),consensusHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.consensus_hash)),appHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.app_hash)),lastResultsHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.last_results_hash)),evidenceHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.evidence_hash)),proposerAddress:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.proposer_address))}}function decodeBlockMeta(d){return{blockId:decodeBlockId(d.block_id),blockSize:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.block_size)),header:decodeHeader(d.header),numTxs:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.num_txs))}}function decodeBlockchain(d){return{lastHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.last_height)),blockMetas:(0,encodings_1.assertArray)(d.block_metas).map(decodeBlockMeta)}}function decodeBroadcastTxSync(d){return{...decodeTxData(d),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash))}}function decodeBroadcastTxCommit(d){return{height:(0,inthelpers_1.apiToSmallInt)(d.height),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash)),checkTx:decodeTxData((0,encodings_1.assertObject)(d.check_tx)),deliverTx:(0,encodings_1.may)(decodeTxData,d.deliver_tx)}}function decodeBlockIdFlag(d){return(0,utils_1$6.assert)(d in types_1$3.BlockIdFlag),d}function decodeOptionalTime(d){return d&&!d.startsWith("0001-01-01")?(0,dates_1.fromRfc3339WithNanoseconds)(d):void 0}function decodeCommitSignature(d){return{blockIdFlag:decodeBlockIdFlag(d.block_id_flag),validatorAddress:d.validator_address?(0,encoding_1$9.fromHex)(d.validator_address):void 0,timestamp:decodeOptionalTime(d.timestamp),signature:d.signature?(0,encoding_1$9.fromBase64)(d.signature):void 0}}function decodeCommit(d){return{blockId:decodeBlockId((0,encodings_1.assertObject)(d.block_id)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),round:(0,inthelpers_1.apiToSmallInt)(d.round),signatures:(0,encodings_1.assertArray)(d.signatures).map(decodeCommitSignature)}}function decodeCommitResponse(d){return{canonical:(0,encodings_1.assertBoolean)(d.canonical),header:decodeHeader(d.signed_header.header),commit:decodeCommit(d.signed_header.commit)}}function decodeValidatorGenesis(d){return{address:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.address)),pubkey:decodePubkey((0,encodings_1.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(d.power))}}responses.decodeValidatorGenesis=decodeValidatorGenesis;function decodeGenesis(d){return{genesisTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(d.genesis_time)),chainId:(0,encodings_1.assertNotEmpty)(d.chain_id),consensusParams:decodeConsensusParams(d.consensus_params),validators:d.validators?(0,encodings_1.assertArray)(d.validators).map(decodeValidatorGenesis):[],appHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertSet)(d.app_hash)),appState:d.app_state}}function decodeValidatorInfo(d){return{pubkey:decodePubkey((0,encodings_1.assertObject)(d.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(d.voting_power)),address:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.address)),proposerPriority:d.proposer_priority?(0,inthelpers_1.apiToSmallInt)(d.proposer_priority):void 0}}responses.decodeValidatorInfo=decodeValidatorInfo;function decodeNodeInfo(d){return{id:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.id)),listenAddr:(0,encodings_1.assertNotEmpty)(d.listen_addr),network:(0,encodings_1.assertNotEmpty)(d.network),version:(0,encodings_1.assertString)(d.version),channels:(0,encodings_1.assertNotEmpty)(d.channels),moniker:(0,encodings_1.assertNotEmpty)(d.moniker),other:(0,encodings_1.dictionaryToStringMap)(d.other),protocolVersion:{app:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.protocol_version.app)),block:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.protocol_version.block)),p2p:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.protocol_version.p2p))}}}function decodeSyncInfo(d){const b=d.earliest_block_height?(0,inthelpers_1.apiToSmallInt)(d.earliest_block_height):void 0,dt=d.earliest_block_time?(0,dates_1.fromRfc3339WithNanoseconds)(d.earliest_block_time):void 0;return{earliestAppHash:d.earliest_app_hash?(0,encoding_1$9.fromHex)(d.earliest_app_hash):void 0,earliestBlockHash:d.earliest_block_hash?(0,encoding_1$9.fromHex)(d.earliest_block_hash):void 0,earliestBlockHeight:b||void 0,earliestBlockTime:dt!=null&&dt.getTime()?dt:void 0,latestBlockHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.latest_block_hash)),latestAppHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.latest_app_hash)),latestBlockTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(d.latest_block_time)),latestBlockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.latest_block_height)),catchingUp:(0,encodings_1.assertBoolean)(d.catching_up)}}function decodeStatus(d){return{nodeInfo:decodeNodeInfo(d.node_info),syncInfo:decodeSyncInfo(d.sync_info),validatorInfo:decodeValidatorInfo(d.validator_info)}}function decodeTxProof(d){return{data:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.data)),rootHash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.root_hash)),proof:{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.proof.total)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.proof.index)),leafHash:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.proof.leaf_hash)),aunts:(0,encodings_1.assertArray)(d.proof.aunts).map(encoding_1$9.fromBase64)}}}function decodeTxResponse(d){return{tx:(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.tx)),result:decodeTxData((0,encodings_1.assertObject)(d.tx_result)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(d.index)),hash:(0,encoding_1$9.fromHex)((0,encodings_1.assertNotEmpty)(d.hash)),proof:(0,encodings_1.may)(decodeTxProof,d.proof)}}function decodeTxSearch(d){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total_count)),txs:(0,encodings_1.assertArray)(d.txs).map(decodeTxResponse)}}function decodeTxEvent(d){const b=(0,encoding_1$9.fromBase64)((0,encodings_1.assertNotEmpty)(d.tx));return{tx:b,hash:(0,hasher_1$1.hashTx)(b),result:decodeTxData(d.result),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.height))}}function decodeValidators(d){return{blockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.block_height)),validators:(0,encodings_1.assertArray)(d.validators).map(decodeValidatorInfo),count:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.count)),total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total))}}function decodeBlock(d){var b;return{header:decodeHeader((0,encodings_1.assertObject)(d.header)),lastCommit:d.last_commit.block_id.hash?decodeCommit((0,encodings_1.assertObject)(d.last_commit)):null,txs:d.data.txs?(0,encodings_1.assertArray)(d.data.txs).map(encoding_1$9.fromBase64):[],evidence:((b=d.evidence)==null?void 0:b.evidence)??[]}}function decodeBlockResponse(d){return{blockId:decodeBlockId(d.block_id),block:decodeBlock(d.block)}}function decodeBlockSearch(d){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total_count)),blocks:(0,encodings_1.assertArray)(d.blocks).map(decodeBlockResponse)}}function decodeNumUnconfirmedTxs(d){return{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total)),totalBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(d.total_bytes))}}class Responses{static decodeAbciInfo(b){return decodeAbciInfo((0,encodings_1.assertObject)(b.result.response))}static decodeAbciQuery(b){return decodeAbciQuery((0,encodings_1.assertObject)(b.result.response))}static decodeBlock(b){return decodeBlockResponse(b.result)}static decodeBlockResults(b){return decodeBlockResults(b.result)}static decodeBlockSearch(b){return decodeBlockSearch(b.result)}static decodeBlockchain(b){return decodeBlockchain(b.result)}static decodeBroadcastTxSync(b){return decodeBroadcastTxSync(b.result)}static decodeBroadcastTxAsync(b){return Responses.decodeBroadcastTxSync(b)}static decodeBroadcastTxCommit(b){return decodeBroadcastTxCommit(b.result)}static decodeCommit(b){return decodeCommitResponse(b.result)}static decodeGenesis(b){return decodeGenesis((0,encodings_1.assertObject)(b.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(b){return decodeNumUnconfirmedTxs(b.result)}static decodeStatus(b){return decodeStatus(b.result)}static decodeNewBlockEvent(b){return decodeBlock(b.data.value.block)}static decodeNewBlockHeaderEvent(b){return decodeHeader(b.data.value.header)}static decodeTxEvent(b){return decodeTxEvent(b.data.value.TxResult)}static decodeTx(b){return decodeTxResponse(b.result)}static decodeTxSearch(b){return decodeTxSearch(b.result)}static decodeValidators(b){return decodeValidators(b.result)}}responses.Responses=Responses;Object.defineProperty(adaptor,"__esModule",{value:!0});adaptor.adaptor37=void 0;const hasher_1=hasher,requests_1=requests$2,responses_1=responses;adaptor.adaptor37={params:requests_1.Params,responses:responses_1.Responses,hashTx:hasher_1.hashTx,hashBlock:hasher_1.hashBlock};var __createBinding$a=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$a=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$a=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$a(b,d,dt);return __setModuleDefault$a(b,d),b};Object.defineProperty(tendermint37client,"__esModule",{value:!0});tendermint37client.Tendermint37Client=void 0;const jsonrpc_1=jsonrpc,rpcclients_1=rpcclients,adaptor_1=adaptor,requests=__importStar$a(requests$3);class Tendermint37Client{static async connect(b){let dt;return typeof b=="object"?dt=new rpcclients_1.HttpClient(b):dt=b.startsWith("http://")||b.startsWith("https://")?new rpcclients_1.HttpClient(b):new rpcclients_1.WebsocketClient(b),await this.detectVersion(dt),Tendermint37Client.create(dt)}static async create(b){return new Tendermint37Client(b)}static async detectVersion(b){const dt=(0,jsonrpc_1.createJsonRpcRequest)(requests.Method.Status),lt=(await b.execute(dt)).result;if(!lt||!lt.node_info)throw new Error("Unrecognized format for status response");const ht=lt.node_info.version;if(typeof ht!="string")throw new Error("Unrecognized version format: must be string");return ht}constructor(b){this.client=b,this.p=adaptor_1.adaptor37.params,this.r=adaptor_1.adaptor37.responses}disconnect(){this.client.disconnect()}async abciInfo(){const b={method:requests.Method.AbciInfo};return this.doCall(b,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(b){const dt={params:b,method:requests.Method.AbciQuery};return this.doCall(dt,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(b){const dt={method:requests.Method.Block,params:{height:b}};return this.doCall(dt,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(b){const dt={method:requests.Method.BlockResults,params:{height:b}};return this.doCall(dt,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(b){const dt={params:b,method:requests.Method.BlockSearch},ct=await this.doCall(dt,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...ct,blocks:[...ct.blocks].sort((lt,ht)=>lt.block.header.height-ht.block.header.height)}}async blockSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.blockSearch({...b,page:dt});ct.push(...ht.blocks),ct.lengthht.block.header.height-mt.block.header.height),{totalCount:ct.length,blocks:ct}}async blockchain(b,dt){const ct={method:requests.Method.Blockchain,params:{minHeight:b,maxHeight:dt}};return this.doCall(ct,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(b){const dt={params:b,method:requests.Method.BroadcastTxSync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(b){const dt={params:b,method:requests.Method.BroadcastTxAsync};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(b){const dt={params:b,method:requests.Method.BroadcastTxCommit};return this.doCall(dt,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(b){const dt={method:requests.Method.Commit,params:{height:b}};return this.doCall(dt,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const b={method:requests.Method.Genesis};return this.doCall(b,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const b={method:requests.Method.Health};return this.doCall(b,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const b={method:requests.Method.NumUnconfirmedTxs};return this.doCall(b,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const b={method:requests.Method.Status};return this.doCall(b,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const b={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlock}};return this.subscribe(b,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const b={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlockHeader}};return this.subscribe(b,this.r.decodeNewBlockHeaderEvent)}subscribeTx(b){const dt={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.Tx,raw:b}};return this.subscribe(dt,this.r.decodeTxEvent)}async tx(b){const dt={params:b,method:requests.Method.Tx};return this.doCall(dt,this.p.encodeTx,this.r.decodeTx)}async txSearch(b){const dt={params:b,method:requests.Method.TxSearch};return this.doCall(dt,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(b){let dt=b.page||1;const ct=[];let lt=!1;for(;!lt;){const ht=await this.txSearch({...b,page:dt});ct.push(...ht.txs),ct.lengthdt(ht))}}tendermint37client.Tendermint37Client=Tendermint37Client;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.Tendermint37Client=d.VoteType=d.broadcastTxSyncSuccess=d.broadcastTxCommitSuccess=d.SubscriptionEventType=d.Method=void 0;var b=requests$3;Object.defineProperty(d,"Method",{enumerable:!0,get:function(){return b.Method}}),Object.defineProperty(d,"SubscriptionEventType",{enumerable:!0,get:function(){return b.SubscriptionEventType}});var dt=responses$1;Object.defineProperty(d,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return dt.broadcastTxCommitSuccess}}),Object.defineProperty(d,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return dt.broadcastTxSyncSuccess}}),Object.defineProperty(d,"VoteType",{enumerable:!0,get:function(){return dt.VoteType}});var ct=tendermint37client;Object.defineProperty(d,"Tendermint37Client",{enumerable:!0,get:function(){return ct.Tendermint37Client}})})(tendermint37);var tendermintclient={};Object.defineProperty(tendermintclient,"__esModule",{value:!0});tendermintclient.isTendermint37Client=tendermintclient.isTendermint34Client=void 0;const tendermint34_1=tendermint34,tendermint37_1=tendermint37;function isTendermint34Client(d){return d instanceof tendermint34_1.Tendermint34Client}tendermintclient.isTendermint34Client=isTendermint34Client;function isTendermint37Client(d){return d instanceof tendermint37_1.Tendermint37Client}tendermintclient.isTendermint37Client=isTendermint37Client;(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt);var Nt=Object.getOwnPropertyDescriptor(nn,Qt);(!Nt||("get"in Nt?!nn.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return nn[Qt]}}),Object.defineProperty(Rt,wt,Nt)}:function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt),Rt[wt]=nn[Qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Rt,nn){Object.defineProperty(Rt,"default",{enumerable:!0,value:nn})}:function(Rt,nn){Rt.default=nn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Rt){if(Rt&&Rt.__esModule)return Rt;var nn={};if(Rt!=null)for(var Qt in Rt)Qt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,Qt)&&b(nn,Rt,Qt);return dt(nn,Rt),nn};Object.defineProperty(d,"__esModule",{value:!0}),d.BlockIdFlag=d.isTendermint37Client=d.isTendermint34Client=d.Tendermint37Client=d.tendermint37=d.Tendermint34Client=d.tendermint34=d.VoteType=d.SubscriptionEventType=d.Method=d.broadcastTxSyncSuccess=d.broadcastTxCommitSuccess=d.WebsocketClient=d.HttpClient=d.HttpBatchClient=d.toSeconds=d.toRfc3339WithNanoseconds=d.fromSeconds=d.fromRfc3339WithNanoseconds=d.DateTime=d.rawSecp256k1PubkeyToRawAddress=d.rawEd25519PubkeyToRawAddress=d.pubkeyToRawAddress=d.pubkeyToAddress=void 0;var lt=addresses;Object.defineProperty(d,"pubkeyToAddress",{enumerable:!0,get:function(){return lt.pubkeyToAddress}}),Object.defineProperty(d,"pubkeyToRawAddress",{enumerable:!0,get:function(){return lt.pubkeyToRawAddress}}),Object.defineProperty(d,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return lt.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(d,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return lt.rawSecp256k1PubkeyToRawAddress}});var ht=dates;Object.defineProperty(d,"DateTime",{enumerable:!0,get:function(){return ht.DateTime}}),Object.defineProperty(d,"fromRfc3339WithNanoseconds",{enumerable:!0,get:function(){return ht.fromRfc3339WithNanoseconds}}),Object.defineProperty(d,"fromSeconds",{enumerable:!0,get:function(){return ht.fromSeconds}}),Object.defineProperty(d,"toRfc3339WithNanoseconds",{enumerable:!0,get:function(){return ht.toRfc3339WithNanoseconds}}),Object.defineProperty(d,"toSeconds",{enumerable:!0,get:function(){return ht.toSeconds}});var mt=rpcclients;Object.defineProperty(d,"HttpBatchClient",{enumerable:!0,get:function(){return mt.HttpBatchClient}}),Object.defineProperty(d,"HttpClient",{enumerable:!0,get:function(){return mt.HttpClient}}),Object.defineProperty(d,"WebsocketClient",{enumerable:!0,get:function(){return mt.WebsocketClient}});var vt=tendermint34;Object.defineProperty(d,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return vt.broadcastTxCommitSuccess}}),Object.defineProperty(d,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return vt.broadcastTxSyncSuccess}}),Object.defineProperty(d,"Method",{enumerable:!0,get:function(){return vt.Method}}),Object.defineProperty(d,"SubscriptionEventType",{enumerable:!0,get:function(){return vt.SubscriptionEventType}}),Object.defineProperty(d,"VoteType",{enumerable:!0,get:function(){return vt.VoteType}}),d.tendermint34=ct(tendermint34);var kt=tendermint34;Object.defineProperty(d,"Tendermint34Client",{enumerable:!0,get:function(){return kt.Tendermint34Client}}),d.tendermint37=ct(tendermint37);var Pt=tendermint37;Object.defineProperty(d,"Tendermint37Client",{enumerable:!0,get:function(){return Pt.Tendermint37Client}});var Jt=tendermintclient;Object.defineProperty(d,"isTendermint34Client",{enumerable:!0,get:function(){return Jt.isTendermint34Client}}),Object.defineProperty(d,"isTendermint37Client",{enumerable:!0,get:function(){return Jt.isTendermint37Client}});var Zt=types$b;Object.defineProperty(d,"BlockIdFlag",{enumerable:!0,get:function(){return Zt.BlockIdFlag}})})(build$3);var stargateclient={};Object.defineProperty(stargateclient,"__esModule",{value:!0});stargateclient.StargateClient=stargateclient.BroadcastTxError=stargateclient.assertIsDeliverTxFailure=stargateclient.assertIsDeliverTxSuccess=stargateclient.isDeliverTxSuccess=stargateclient.isDeliverTxFailure=stargateclient.TimeoutError=void 0;const amino_1$1=build$c,encoding_1$8=build$6,math_1$5=build$f,tendermint_rpc_1$3=build$3,utils_1$5=build$9,abci_1$1=abci,accounts_1=accounts,events_1=events,modules_1$2=modules$1,queryclient_1$1=queryclient$1;class TimeoutError extends Error{constructor(b,dt){super(b),this.txId=dt}}stargateclient.TimeoutError=TimeoutError;function isDeliverTxFailure(d){return!!d.code}stargateclient.isDeliverTxFailure=isDeliverTxFailure;function isDeliverTxSuccess(d){return!isDeliverTxFailure(d)}stargateclient.isDeliverTxSuccess=isDeliverTxSuccess;function assertIsDeliverTxSuccess(d){if(isDeliverTxFailure(d))throw new Error(`Error when broadcasting tx ${d.transactionHash} at height ${d.height}. Code: ${d.code}; Raw log: ${d.rawLog}`)}stargateclient.assertIsDeliverTxSuccess=assertIsDeliverTxSuccess;function assertIsDeliverTxFailure(d){if(isDeliverTxSuccess(d))throw new Error(`Transaction ${d.transactionHash} did not fail at height ${d.height}. Code: ${d.code}; Raw log: ${d.rawLog}`)}stargateclient.assertIsDeliverTxFailure=assertIsDeliverTxFailure;class BroadcastTxError extends Error{constructor(b,dt,ct){super(`Broadcasting transaction failed with code ${b} (codespace: ${dt}). Log: ${ct}`),this.code=b,this.codespace=dt,this.log=ct}}stargateclient.BroadcastTxError=BroadcastTxError;class StargateClient{static async connect(b,dt={}){let ct;const lt=await tendermint_rpc_1$3.Tendermint37Client.connect(b);return(await lt.status()).nodeInfo.version.startsWith("0.37.")?ct=lt:(lt.disconnect(),ct=await tendermint_rpc_1$3.Tendermint34Client.connect(b)),StargateClient.create(ct,dt)}static async create(b,dt={}){return new StargateClient(b,dt)}constructor(b,dt){b&&(this.tmClient=b,this.queryClient=queryclient_1$1.QueryClient.withExtensions(b,modules_1$2.setupAuthExtension,modules_1$2.setupBankExtension,modules_1$2.setupStakingExtension,modules_1$2.setupTxExtension));const{accountParser:ct=accounts_1.accountFromAny}=dt;this.accountParser=ct}getTmClient(){return this.tmClient}forceGetTmClient(){if(!this.tmClient)throw new Error("Tendermint client not available. You cannot use online functionality in offline mode.");return this.tmClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw new Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){const dt=(await this.forceGetTmClient().status()).nodeInfo.network;if(!dt)throw new Error("Chain ID must not be empty");this.chainId=dt}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(b){try{const dt=await this.forceGetQueryClient().auth.account(b);return dt?this.accountParser(dt):null}catch(dt){if(/rpc error: code = NotFound/i.test(dt.toString()))return null;throw dt}}async getSequence(b){const dt=await this.getAccount(b);if(!dt)throw new Error(`Account '${b}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:dt.accountNumber,sequence:dt.sequence}}async getBlock(b){const dt=await this.forceGetTmClient().block(b);return{id:(0,encoding_1$8.toHex)(dt.blockId.hash).toUpperCase(),header:{version:{block:new math_1$5.Uint53(dt.block.header.version.block).toString(),app:new math_1$5.Uint53(dt.block.header.version.app).toString()},height:dt.block.header.height,chainId:dt.block.header.chainId,time:(0,tendermint_rpc_1$3.toRfc3339WithNanoseconds)(dt.block.header.time)},txs:dt.block.txs}}async getBalance(b,dt){return this.forceGetQueryClient().bank.balance(b,dt)}async getAllBalances(b){return this.forceGetQueryClient().bank.allBalances(b)}async getBalanceStaked(b){const dt=[];let ct;do{const{delegationResponses:ht,pagination:mt}=await this.forceGetQueryClient().staking.delegatorDelegations(b,ct),vt=ht||[];dt.push(...vt),ct=mt==null?void 0:mt.nextKey}while(ct!==void 0&&ct.length!==0);return dt.reduce((ht,mt)=>((0,utils_1$5.assert)(mt.balance),ht!==null?(0,amino_1$1.addCoins)(ht,mt.balance):mt.balance),null)}async getDelegation(b,dt){var lt;let ct;try{ct=(lt=(await this.forceGetQueryClient().staking.delegation(b,dt)).delegationResponse)==null?void 0:lt.balance}catch(ht){if(!ht.toString().includes("key not found"))throw ht}return ct||null}async getTx(b){return(await this.txsQuery(`tx.hash='${b}'`))[0]??null}async searchTx(b){let dt;if(typeof b=="string")dt=b;else if(Array.isArray(b))dt=b.map(ct=>`${ct.key}='${ct.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(dt)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(b,dt=6e4,ct=3e3){let lt=!1;const ht=setTimeout(()=>{lt=!0},dt),mt=async kt=>{if(lt)throw new TimeoutError(`Transaction with ID ${kt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${dt/1e3} seconds.`,kt);await(0,utils_1$5.sleep)(ct);const Pt=await this.getTx(kt);return Pt?{code:Pt.code,height:Pt.height,txIndex:Pt.txIndex,events:Pt.events,rawLog:Pt.rawLog,transactionHash:kt,msgResponses:Pt.msgResponses,gasUsed:Pt.gasUsed,gasWanted:Pt.gasWanted}:mt(kt)},vt=await this.broadcastTxSync(b);return new Promise((kt,Pt)=>mt(vt).then(Jt=>{clearTimeout(ht),kt(Jt)},Jt=>{clearTimeout(ht),Pt(Jt)}))}async broadcastTxSync(b){const dt=await this.forceGetTmClient().broadcastTxSync({tx:b});return dt.code?Promise.reject(new BroadcastTxError(dt.code,dt.codespace??"",dt.log)):(0,encoding_1$8.toHex)(dt.hash).toUpperCase()}async txsQuery(b){return(await this.forceGetTmClient().txSearchAll({query:b})).txs.map(ct=>{const lt=abci_1$1.TxMsgData.decode(ct.result.data??new Uint8Array);return{height:ct.height,txIndex:ct.index,hash:(0,encoding_1$8.toHex)(ct.hash).toUpperCase(),code:ct.result.code,events:ct.result.events.map(events_1.fromTendermintEvent),rawLog:ct.result.log||"",tx:ct.tx,msgResponses:lt.msgResponses,gasUsed:ct.result.gasUsed,gasWanted:ct.result.gasWanted}})}}stargateclient.StargateClient=StargateClient;(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(jt){return jt&&jt.__esModule?jt:{default:jt}};Object.defineProperty(d,"__esModule",{value:!0}),d.SigningStargateClient=d.createDefaultAminoConverters=d.defaultRegistryTypes=void 0;const dt=build$c,ct=build$6,lt=build$f,ht=build$d,mt=build$3,vt=build$9,kt=coin$3,Pt=tx$o,Jt=tx$f,Zt=signing$2,Rt=tx$r,nn=tx$j,Qt=b(long),wt=aminotypes,Nt=fee,xt=modules$1,Et=modules$1,Bt=stargateclient;d.defaultRegistryTypes=[["/cosmos.base.v1beta1.Coin",kt.Coin],...xt.authzTypes,...xt.bankTypes,...xt.distributionTypes,...xt.feegrantTypes,...xt.govTypes,...xt.groupTypes,...xt.stakingTypes,...xt.ibcTypes,...xt.vestingTypes];function Tt(){return{...(0,Et.createAuthzAminoConverters)(),...(0,Et.createBankAminoConverters)(),...(0,Et.createDistributionAminoConverters)(),...(0,Et.createGovAminoConverters)(),...(0,Et.createStakingAminoConverters)(),...(0,Et.createIbcAminoConverters)(),...(0,Et.createFeegrantAminoConverters)(),...(0,Et.createVestingAminoConverters)()}}d.createDefaultAminoConverters=Tt;class Mt extends Bt.StargateClient{static async connectWithSigner(Ht,an,yt={}){let $t;const Yt=await mt.Tendermint37Client.connect(Ht);return(await Yt.status()).nodeInfo.version.startsWith("0.37.")?$t=Yt:(Yt.disconnect(),$t=await mt.Tendermint34Client.connect(Ht)),Mt.createWithSigner($t,an,yt)}static async createWithSigner(Ht,an,yt={}){return new Mt(Ht,an,yt)}static async offline(Ht,an={}){return new Mt(void 0,Ht,an)}constructor(Ht,an,yt){super(Ht,yt);const{registry:$t=new ht.Registry(d.defaultRegistryTypes),aminoTypes:Yt=new wt.AminoTypes(Tt())}=yt;this.registry=$t,this.aminoTypes=Yt,this.signer=an,this.broadcastTimeoutMs=yt.broadcastTimeoutMs,this.broadcastPollIntervalMs=yt.broadcastPollIntervalMs,this.gasPrice=yt.gasPrice}async simulate(Ht,an,yt){const $t=an.map(Gt=>this.registry.encodeAsAny(Gt)),Yt=(await this.signer.getAccounts()).find(Gt=>Gt.address===Ht);if(!Yt)throw new Error("Failed to retrieve account from signer");const Kt=(0,dt.encodeSecp256k1Pubkey)(Yt.pubkey),{sequence:St}=await this.getSequence(Ht),{gasInfo:It}=await this.forceGetQueryClient().tx.simulate($t,yt,Kt,St);return(0,vt.assertDefined)(It),lt.Uint53.fromString(It.gasUsed.toString()).toNumber()}async sendTokens(Ht,an,yt,$t,Yt=""){const Kt={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:Ht,toAddress:an,amount:[...yt]}};return this.signAndBroadcast(Ht,[Kt],$t,Yt)}async delegateTokens(Ht,an,yt,$t,Yt=""){const Kt={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:Jt.MsgDelegate.fromPartial({delegatorAddress:Ht,validatorAddress:an,amount:yt})};return this.signAndBroadcast(Ht,[Kt],$t,Yt)}async undelegateTokens(Ht,an,yt,$t,Yt=""){const Kt={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:Jt.MsgUndelegate.fromPartial({delegatorAddress:Ht,validatorAddress:an,amount:yt})};return this.signAndBroadcast(Ht,[Kt],$t,Yt)}async withdrawRewards(Ht,an,yt,$t=""){const Yt={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:Pt.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:Ht,validatorAddress:an})};return this.signAndBroadcast(Ht,[Yt],yt,$t)}async sendIbcTokens(Ht,an,yt,$t,Yt,Kt,St,It,Gt=""){const Ut=St?Qt.default.fromNumber(St).multiply(1e9):void 0,Vt={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:nn.MsgTransfer.fromPartial({sourcePort:$t,sourceChannel:Yt,sender:Ht,receiver:an,token:yt,timeoutHeight:Kt,timeoutTimestamp:Ut})};return this.signAndBroadcast(Ht,[Vt],It,Gt)}async signAndBroadcast(Ht,an,yt,$t=""){let Yt;if(yt=="auto"||typeof yt=="number"){(0,vt.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const It=await this.simulate(Ht,an,$t),Gt=typeof yt=="number"?yt:1.4;Yt=(0,Nt.calculateFee)(Math.round(It*Gt),this.gasPrice)}else Yt=yt;const Kt=await this.sign(Ht,an,Yt,$t),St=Rt.TxRaw.encode(Kt).finish();return this.broadcastTx(St,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(Ht,an,yt,$t=""){let Yt;if(yt=="auto"||typeof yt=="number"){(0,vt.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const It=await this.simulate(Ht,an,$t),Gt=typeof yt=="number"?yt:1.3;Yt=(0,Nt.calculateFee)(Math.round(It*Gt),this.gasPrice)}else Yt=yt;const Kt=await this.sign(Ht,an,Yt,$t),St=Rt.TxRaw.encode(Kt).finish();return this.broadcastTxSync(St)}async sign(Ht,an,yt,$t,Yt){let Kt;if(Yt)Kt=Yt;else{const{accountNumber:St,sequence:It}=await this.getSequence(Ht),Gt=await this.getChainId();Kt={accountNumber:St,sequence:It,chainId:Gt}}return(0,ht.isOfflineDirectSigner)(this.signer)?this.signDirect(Ht,an,yt,$t,Kt):this.signAmino(Ht,an,yt,$t,Kt)}async signAmino(Ht,an,yt,$t,{accountNumber:Yt,sequence:Kt,chainId:St}){(0,vt.assert)(!(0,ht.isOfflineDirectSigner)(this.signer));const It=(await this.signer.getAccounts()).find(wr=>wr.address===Ht);if(!It)throw new Error("Failed to retrieve account from signer");const Gt=(0,ht.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(It.pubkey)),Ut=Zt.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,Vt=an.map(wr=>this.aminoTypes.toAmino(wr)),qt=(0,dt.makeSignDoc)(Vt,yt,St,$t,Yt,Kt),{signature:fn,signed:dn}=await this.signer.signAmino(Ht,qt),zt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:dn.msgs.map(wr=>this.aminoTypes.fromAmino(wr)),memo:dn.memo}},tn=this.registry.encode(zt),An=lt.Int53.fromString(dn.fee.gas).toNumber(),gn=lt.Int53.fromString(dn.sequence).toNumber(),Nn=(0,ht.makeAuthInfoBytes)([{pubkey:Gt,sequence:gn}],dn.fee.amount,An,dn.fee.granter,dn.fee.payer,Ut);return Rt.TxRaw.fromPartial({bodyBytes:tn,authInfoBytes:Nn,signatures:[(0,ct.fromBase64)(fn.signature)]})}async signDirect(Ht,an,yt,$t,{accountNumber:Yt,sequence:Kt,chainId:St}){(0,vt.assert)((0,ht.isOfflineDirectSigner)(this.signer));const It=(await this.signer.getAccounts()).find(tn=>tn.address===Ht);if(!It)throw new Error("Failed to retrieve account from signer");const Gt=(0,ht.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(It.pubkey)),Ut={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:an,memo:$t}},Vt=this.registry.encode(Ut),qt=lt.Int53.fromString(yt.gas).toNumber(),fn=(0,ht.makeAuthInfoBytes)([{pubkey:Gt,sequence:Kt}],yt.amount,qt,yt.granter,yt.payer),dn=(0,ht.makeSignDoc)(Vt,fn,St,Yt),{signature:Dt,signed:zt}=await this.signer.signDirect(Ht,dn);return Rt.TxRaw.fromPartial({bodyBytes:zt.bodyBytes,authInfoBytes:zt.authInfoBytes,signatures:[(0,ct.fromBase64)(Dt.signature)]})}}d.SigningStargateClient=Mt})(signingstargateclient);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.isMsgWithdrawDelegatorRewardEncodeObject=d.isMsgVoteWeightedEncodeObject=d.isMsgVoteEncodeObject=d.isMsgUndelegateEncodeObject=d.isMsgTransferEncodeObject=d.isMsgSubmitProposalEncodeObject=d.isMsgSendEncodeObject=d.isMsgEditValidatorEncodeObject=d.isMsgDepositEncodeObject=d.isMsgDelegateEncodeObject=d.isMsgCreateValidatorEncodeObject=d.isMsgBeginRedelegateEncodeObject=d.isAminoMsgWithdrawValidatorCommission=d.isAminoMsgWithdrawDelegatorReward=d.isAminoMsgVoteWeighted=d.isAminoMsgVote=d.isAminoMsgVerifyInvariant=d.isAminoMsgUnjail=d.isAminoMsgUndelegate=d.isAminoMsgTransfer=d.isAminoMsgSubmitProposal=d.isAminoMsgSubmitEvidence=d.isAminoMsgSetWithdrawAddress=d.isAminoMsgSend=d.isAminoMsgMultiSend=d.isAminoMsgFundCommunityPool=d.isAminoMsgEditValidator=d.isAminoMsgDeposit=d.isAminoMsgDelegate=d.isAminoMsgCreateVestingAccount=d.isAminoMsgCreateValidator=d.isAminoMsgBeginRedelegate=d.createVestingAminoConverters=d.createStakingAminoConverters=d.createSlashingAminoConverters=d.createIbcAminoConverters=d.createGroupAminoConverters=d.createGovAminoConverters=d.createFeegrantAminoConverters=d.createEvidenceAminoConverters=d.createDistributionAminoConverters=d.createCrysisAminoConverters=d.createBankAminoConverters=d.createAuthzAminoConverters=d.logs=d.GasPrice=d.calculateFee=d.fromTendermintEvent=d.AminoTypes=d.accountFromAny=void 0,d.parseCoins=d.makeCosmoshubPath=d.coins=d.coin=d.TimeoutError=d.StargateClient=d.isDeliverTxSuccess=d.isDeliverTxFailure=d.BroadcastTxError=d.assertIsDeliverTxSuccess=d.assertIsDeliverTxFailure=d.SigningStargateClient=d.defaultRegistryTypes=d.createDefaultAminoConverters=d.QueryClient=d.decodeCosmosSdkDecFromProto=d.createProtobufRpcClient=d.createPagination=d.makeMultisignedTxBytes=d.makeMultisignedTx=d.setupTxExtension=d.setupStakingExtension=d.setupSlashingExtension=d.setupMintExtension=d.setupIbcExtension=d.setupGovExtension=d.setupFeegrantExtension=d.setupDistributionExtension=d.setupBankExtension=d.setupAuthzExtension=d.setupAuthExtension=void 0;var lt=accounts;Object.defineProperty(d,"accountFromAny",{enumerable:!0,get:function(){return lt.accountFromAny}});var ht=aminotypes;Object.defineProperty(d,"AminoTypes",{enumerable:!0,get:function(){return ht.AminoTypes}});var mt=events;Object.defineProperty(d,"fromTendermintEvent",{enumerable:!0,get:function(){return mt.fromTendermintEvent}});var vt=fee;Object.defineProperty(d,"calculateFee",{enumerable:!0,get:function(){return vt.calculateFee}}),Object.defineProperty(d,"GasPrice",{enumerable:!0,get:function(){return vt.GasPrice}}),d.logs=ct(logs);var kt=modules$1;Object.defineProperty(d,"createAuthzAminoConverters",{enumerable:!0,get:function(){return kt.createAuthzAminoConverters}}),Object.defineProperty(d,"createBankAminoConverters",{enumerable:!0,get:function(){return kt.createBankAminoConverters}}),Object.defineProperty(d,"createCrysisAminoConverters",{enumerable:!0,get:function(){return kt.createCrysisAminoConverters}}),Object.defineProperty(d,"createDistributionAminoConverters",{enumerable:!0,get:function(){return kt.createDistributionAminoConverters}}),Object.defineProperty(d,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return kt.createEvidenceAminoConverters}}),Object.defineProperty(d,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return kt.createFeegrantAminoConverters}}),Object.defineProperty(d,"createGovAminoConverters",{enumerable:!0,get:function(){return kt.createGovAminoConverters}}),Object.defineProperty(d,"createGroupAminoConverters",{enumerable:!0,get:function(){return kt.createGroupAminoConverters}}),Object.defineProperty(d,"createIbcAminoConverters",{enumerable:!0,get:function(){return kt.createIbcAminoConverters}}),Object.defineProperty(d,"createSlashingAminoConverters",{enumerable:!0,get:function(){return kt.createSlashingAminoConverters}}),Object.defineProperty(d,"createStakingAminoConverters",{enumerable:!0,get:function(){return kt.createStakingAminoConverters}}),Object.defineProperty(d,"createVestingAminoConverters",{enumerable:!0,get:function(){return kt.createVestingAminoConverters}}),Object.defineProperty(d,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return kt.isAminoMsgBeginRedelegate}}),Object.defineProperty(d,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return kt.isAminoMsgCreateValidator}}),Object.defineProperty(d,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return kt.isAminoMsgCreateVestingAccount}}),Object.defineProperty(d,"isAminoMsgDelegate",{enumerable:!0,get:function(){return kt.isAminoMsgDelegate}}),Object.defineProperty(d,"isAminoMsgDeposit",{enumerable:!0,get:function(){return kt.isAminoMsgDeposit}}),Object.defineProperty(d,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return kt.isAminoMsgEditValidator}}),Object.defineProperty(d,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return kt.isAminoMsgFundCommunityPool}}),Object.defineProperty(d,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return kt.isAminoMsgMultiSend}}),Object.defineProperty(d,"isAminoMsgSend",{enumerable:!0,get:function(){return kt.isAminoMsgSend}}),Object.defineProperty(d,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return kt.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(d,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return kt.isAminoMsgSubmitEvidence}}),Object.defineProperty(d,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return kt.isAminoMsgSubmitProposal}}),Object.defineProperty(d,"isAminoMsgTransfer",{enumerable:!0,get:function(){return kt.isAminoMsgTransfer}}),Object.defineProperty(d,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return kt.isAminoMsgUndelegate}}),Object.defineProperty(d,"isAminoMsgUnjail",{enumerable:!0,get:function(){return kt.isAminoMsgUnjail}}),Object.defineProperty(d,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return kt.isAminoMsgVerifyInvariant}}),Object.defineProperty(d,"isAminoMsgVote",{enumerable:!0,get:function(){return kt.isAminoMsgVote}}),Object.defineProperty(d,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return kt.isAminoMsgVoteWeighted}}),Object.defineProperty(d,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return kt.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(d,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return kt.isAminoMsgWithdrawValidatorCommission}}),Object.defineProperty(d,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return kt.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(d,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return kt.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(d,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return kt.isMsgDelegateEncodeObject}}),Object.defineProperty(d,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return kt.isMsgDepositEncodeObject}}),Object.defineProperty(d,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return kt.isMsgEditValidatorEncodeObject}}),Object.defineProperty(d,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return kt.isMsgSendEncodeObject}}),Object.defineProperty(d,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return kt.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(d,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return kt.isMsgTransferEncodeObject}}),Object.defineProperty(d,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return kt.isMsgUndelegateEncodeObject}}),Object.defineProperty(d,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return kt.isMsgVoteEncodeObject}}),Object.defineProperty(d,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return kt.isMsgVoteWeightedEncodeObject}}),Object.defineProperty(d,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return kt.isMsgWithdrawDelegatorRewardEncodeObject}}),Object.defineProperty(d,"setupAuthExtension",{enumerable:!0,get:function(){return kt.setupAuthExtension}}),Object.defineProperty(d,"setupAuthzExtension",{enumerable:!0,get:function(){return kt.setupAuthzExtension}}),Object.defineProperty(d,"setupBankExtension",{enumerable:!0,get:function(){return kt.setupBankExtension}}),Object.defineProperty(d,"setupDistributionExtension",{enumerable:!0,get:function(){return kt.setupDistributionExtension}}),Object.defineProperty(d,"setupFeegrantExtension",{enumerable:!0,get:function(){return kt.setupFeegrantExtension}}),Object.defineProperty(d,"setupGovExtension",{enumerable:!0,get:function(){return kt.setupGovExtension}}),Object.defineProperty(d,"setupIbcExtension",{enumerable:!0,get:function(){return kt.setupIbcExtension}}),Object.defineProperty(d,"setupMintExtension",{enumerable:!0,get:function(){return kt.setupMintExtension}}),Object.defineProperty(d,"setupSlashingExtension",{enumerable:!0,get:function(){return kt.setupSlashingExtension}}),Object.defineProperty(d,"setupStakingExtension",{enumerable:!0,get:function(){return kt.setupStakingExtension}}),Object.defineProperty(d,"setupTxExtension",{enumerable:!0,get:function(){return kt.setupTxExtension}});var Pt=multisignature;Object.defineProperty(d,"makeMultisignedTx",{enumerable:!0,get:function(){return Pt.makeMultisignedTx}}),Object.defineProperty(d,"makeMultisignedTxBytes",{enumerable:!0,get:function(){return Pt.makeMultisignedTxBytes}});var Jt=queryclient$1;Object.defineProperty(d,"createPagination",{enumerable:!0,get:function(){return Jt.createPagination}}),Object.defineProperty(d,"createProtobufRpcClient",{enumerable:!0,get:function(){return Jt.createProtobufRpcClient}}),Object.defineProperty(d,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return Jt.decodeCosmosSdkDecFromProto}}),Object.defineProperty(d,"QueryClient",{enumerable:!0,get:function(){return Jt.QueryClient}});var Zt=signingstargateclient;Object.defineProperty(d,"createDefaultAminoConverters",{enumerable:!0,get:function(){return Zt.createDefaultAminoConverters}}),Object.defineProperty(d,"defaultRegistryTypes",{enumerable:!0,get:function(){return Zt.defaultRegistryTypes}}),Object.defineProperty(d,"SigningStargateClient",{enumerable:!0,get:function(){return Zt.SigningStargateClient}});var Rt=stargateclient;Object.defineProperty(d,"assertIsDeliverTxFailure",{enumerable:!0,get:function(){return Rt.assertIsDeliverTxFailure}}),Object.defineProperty(d,"assertIsDeliverTxSuccess",{enumerable:!0,get:function(){return Rt.assertIsDeliverTxSuccess}}),Object.defineProperty(d,"BroadcastTxError",{enumerable:!0,get:function(){return Rt.BroadcastTxError}}),Object.defineProperty(d,"isDeliverTxFailure",{enumerable:!0,get:function(){return Rt.isDeliverTxFailure}}),Object.defineProperty(d,"isDeliverTxSuccess",{enumerable:!0,get:function(){return Rt.isDeliverTxSuccess}}),Object.defineProperty(d,"StargateClient",{enumerable:!0,get:function(){return Rt.StargateClient}}),Object.defineProperty(d,"TimeoutError",{enumerable:!0,get:function(){return Rt.TimeoutError}});var nn=build$d;Object.defineProperty(d,"coin",{enumerable:!0,get:function(){return nn.coin}}),Object.defineProperty(d,"coins",{enumerable:!0,get:function(){return nn.coins}}),Object.defineProperty(d,"makeCosmoshubPath",{enumerable:!0,get:function(){return nn.makeCosmoshubPath}}),Object.defineProperty(d,"parseCoins",{enumerable:!0,get:function(){return nn.parseCoins}})})(build$e);var types$a={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,jt,Ht,an){an===void 0&&(an=Ht);var yt=Object.getOwnPropertyDescriptor(jt,Ht);(!yt||("get"in yt?!jt.__esModule:yt.writable||yt.configurable))&&(yt={enumerable:!0,get:function(){return jt[Ht]}}),Object.defineProperty(Mt,an,yt)}:function(Mt,jt,Ht,an){an===void 0&&(an=Ht),Mt[an]=jt[Ht]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,jt){Object.defineProperty(Mt,"default",{enumerable:!0,value:jt})}:function(Mt,jt){Mt.default=jt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var jt={};if(Mt!=null)for(var Ht in Mt)Ht!=="default"&&Object.prototype.hasOwnProperty.call(Mt,Ht)&&b(jt,Mt,Ht);return dt(jt,Mt),jt};Object.defineProperty(d,"__esModule",{value:!0}),d.Model=d.AbsoluteTxPosition=d.ContractCodeHistoryEntry=d.ContractInfo=d.CodeInfo=d.Params=d.AccessConfig=d.AccessTypeParam=d.contractCodeHistoryOperationTypeToJSON=d.contractCodeHistoryOperationTypeFromJSON=d.ContractCodeHistoryOperationType=d.accessTypeToJSON=d.accessTypeFromJSON=d.AccessType=d.protobufPackage=void 0;const lt=any$1,ht=helpers$1,mt=ct(minimal$4);d.protobufPackage="cosmwasm.wasm.v1";var vt;(function(Mt){Mt[Mt.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",Mt[Mt.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",Mt[Mt.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",Mt[Mt.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",Mt[Mt.ACCESS_TYPE_ANY_OF_ADDRESSES=4]="ACCESS_TYPE_ANY_OF_ADDRESSES",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vt=d.AccessType||(d.AccessType={}));function kt(Mt){switch(Mt){case 0:case"ACCESS_TYPE_UNSPECIFIED":return vt.ACCESS_TYPE_UNSPECIFIED;case 1:case"ACCESS_TYPE_NOBODY":return vt.ACCESS_TYPE_NOBODY;case 2:case"ACCESS_TYPE_ONLY_ADDRESS":return vt.ACCESS_TYPE_ONLY_ADDRESS;case 3:case"ACCESS_TYPE_EVERYBODY":return vt.ACCESS_TYPE_EVERYBODY;case 4:case"ACCESS_TYPE_ANY_OF_ADDRESSES":return vt.ACCESS_TYPE_ANY_OF_ADDRESSES;case-1:case"UNRECOGNIZED":default:return vt.UNRECOGNIZED}}d.accessTypeFromJSON=kt;function Pt(Mt){switch(Mt){case vt.ACCESS_TYPE_UNSPECIFIED:return"ACCESS_TYPE_UNSPECIFIED";case vt.ACCESS_TYPE_NOBODY:return"ACCESS_TYPE_NOBODY";case vt.ACCESS_TYPE_ONLY_ADDRESS:return"ACCESS_TYPE_ONLY_ADDRESS";case vt.ACCESS_TYPE_EVERYBODY:return"ACCESS_TYPE_EVERYBODY";case vt.ACCESS_TYPE_ANY_OF_ADDRESSES:return"ACCESS_TYPE_ANY_OF_ADDRESSES";case vt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.accessTypeToJSON=Pt;var Jt;(function(Mt){Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.ContractCodeHistoryOperationType||(d.ContractCodeHistoryOperationType={}));function Zt(Mt){switch(Mt){case 0:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.contractCodeHistoryOperationTypeFromJSON=Zt;function Rt(Mt){switch(Mt){case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.contractCodeHistoryOperationTypeToJSON=Rt;function nn(){return{value:0}}d.AccessTypeParam={encode(Mt,jt=mt.Writer.create()){return Mt.value!==0&&jt.uint32(8).int32(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=nn();for(;Ht.pos>>3){case 1:yt.value=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{value:(0,ht.isSet)(Mt.value)?kt(Mt.value):0}},toJSON(Mt){const jt={};return Mt.value!==void 0&&(jt.value=Pt(Mt.value)),jt},fromPartial(Mt){const jt=nn();return jt.value=Mt.value??0,jt}};function Qt(){return{permission:0,address:"",addresses:[]}}d.AccessConfig={encode(Mt,jt=mt.Writer.create()){Mt.permission!==0&&jt.uint32(8).int32(Mt.permission),Mt.address!==""&&jt.uint32(18).string(Mt.address);for(const Ht of Mt.addresses)jt.uint32(26).string(Ht);return jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Qt();for(;Ht.pos>>3){case 1:yt.permission=Ht.int32();break;case 2:yt.address=Ht.string();break;case 3:yt.addresses.push(Ht.string());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{permission:(0,ht.isSet)(Mt.permission)?kt(Mt.permission):0,address:(0,ht.isSet)(Mt.address)?String(Mt.address):"",addresses:Array.isArray(Mt==null?void 0:Mt.addresses)?Mt.addresses.map(jt=>String(jt)):[]}},toJSON(Mt){const jt={};return Mt.permission!==void 0&&(jt.permission=Pt(Mt.permission)),Mt.address!==void 0&&(jt.address=Mt.address),Mt.addresses?jt.addresses=Mt.addresses.map(Ht=>Ht):jt.addresses=[],jt},fromPartial(Mt){var Ht;const jt=Qt();return jt.permission=Mt.permission??0,jt.address=Mt.address??"",jt.addresses=((Ht=Mt.addresses)==null?void 0:Ht.map(an=>an))||[],jt}};function wt(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0}}d.Params={encode(Mt,jt=mt.Writer.create()){return Mt.codeUploadAccess!==void 0&&d.AccessConfig.encode(Mt.codeUploadAccess,jt.uint32(10).fork()).ldelim(),Mt.instantiateDefaultPermission!==0&&jt.uint32(16).int32(Mt.instantiateDefaultPermission),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=wt();for(;Ht.pos>>3){case 1:yt.codeUploadAccess=d.AccessConfig.decode(Ht,Ht.uint32());break;case 2:yt.instantiateDefaultPermission=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeUploadAccess:(0,ht.isSet)(Mt.codeUploadAccess)?d.AccessConfig.fromJSON(Mt.codeUploadAccess):void 0,instantiateDefaultPermission:(0,ht.isSet)(Mt.instantiateDefaultPermission)?kt(Mt.instantiateDefaultPermission):0}},toJSON(Mt){const jt={};return Mt.codeUploadAccess!==void 0&&(jt.codeUploadAccess=Mt.codeUploadAccess?d.AccessConfig.toJSON(Mt.codeUploadAccess):void 0),Mt.instantiateDefaultPermission!==void 0&&(jt.instantiateDefaultPermission=Pt(Mt.instantiateDefaultPermission)),jt},fromPartial(Mt){const jt=wt();return jt.codeUploadAccess=Mt.codeUploadAccess!==void 0&&Mt.codeUploadAccess!==null?d.AccessConfig.fromPartial(Mt.codeUploadAccess):void 0,jt.instantiateDefaultPermission=Mt.instantiateDefaultPermission??0,jt}};function Nt(){return{codeHash:new Uint8Array,creator:"",instantiateConfig:void 0}}d.CodeInfo={encode(Mt,jt=mt.Writer.create()){return Mt.codeHash.length!==0&&jt.uint32(10).bytes(Mt.codeHash),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.instantiateConfig!==void 0&&d.AccessConfig.encode(Mt.instantiateConfig,jt.uint32(42).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Nt();for(;Ht.pos>>3){case 1:yt.codeHash=Ht.bytes();break;case 2:yt.creator=Ht.string();break;case 5:yt.instantiateConfig=d.AccessConfig.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeHash:(0,ht.isSet)(Mt.codeHash)?(0,ht.bytesFromBase64)(Mt.codeHash):new Uint8Array,creator:(0,ht.isSet)(Mt.creator)?String(Mt.creator):"",instantiateConfig:(0,ht.isSet)(Mt.instantiateConfig)?d.AccessConfig.fromJSON(Mt.instantiateConfig):void 0}},toJSON(Mt){const jt={};return Mt.codeHash!==void 0&&(jt.codeHash=(0,ht.base64FromBytes)(Mt.codeHash!==void 0?Mt.codeHash:new Uint8Array)),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.instantiateConfig!==void 0&&(jt.instantiateConfig=Mt.instantiateConfig?d.AccessConfig.toJSON(Mt.instantiateConfig):void 0),jt},fromPartial(Mt){const jt=Nt();return jt.codeHash=Mt.codeHash??new Uint8Array,jt.creator=Mt.creator??"",jt.instantiateConfig=Mt.instantiateConfig!==void 0&&Mt.instantiateConfig!==null?d.AccessConfig.fromPartial(Mt.instantiateConfig):void 0,jt}};function xt(){return{codeId:ht.Long.UZERO,creator:"",admin:"",label:"",created:void 0,ibcPortId:"",extension:void 0}}d.ContractInfo={encode(Mt,jt=mt.Writer.create()){return Mt.codeId.isZero()||jt.uint32(8).uint64(Mt.codeId),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.admin!==""&&jt.uint32(26).string(Mt.admin),Mt.label!==""&&jt.uint32(34).string(Mt.label),Mt.created!==void 0&&d.AbsoluteTxPosition.encode(Mt.created,jt.uint32(42).fork()).ldelim(),Mt.ibcPortId!==""&&jt.uint32(50).string(Mt.ibcPortId),Mt.extension!==void 0&<.Any.encode(Mt.extension,jt.uint32(58).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=xt();for(;Ht.pos>>3){case 1:yt.codeId=Ht.uint64();break;case 2:yt.creator=Ht.string();break;case 3:yt.admin=Ht.string();break;case 4:yt.label=Ht.string();break;case 5:yt.created=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 6:yt.ibcPortId=Ht.string();break;case 7:yt.extension=lt.Any.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeId:(0,ht.isSet)(Mt.codeId)?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,creator:(0,ht.isSet)(Mt.creator)?String(Mt.creator):"",admin:(0,ht.isSet)(Mt.admin)?String(Mt.admin):"",label:(0,ht.isSet)(Mt.label)?String(Mt.label):"",created:(0,ht.isSet)(Mt.created)?d.AbsoluteTxPosition.fromJSON(Mt.created):void 0,ibcPortId:(0,ht.isSet)(Mt.ibcPortId)?String(Mt.ibcPortId):"",extension:(0,ht.isSet)(Mt.extension)?lt.Any.fromJSON(Mt.extension):void 0}},toJSON(Mt){const jt={};return Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||ht.Long.UZERO).toString()),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.admin!==void 0&&(jt.admin=Mt.admin),Mt.label!==void 0&&(jt.label=Mt.label),Mt.created!==void 0&&(jt.created=Mt.created?d.AbsoluteTxPosition.toJSON(Mt.created):void 0),Mt.ibcPortId!==void 0&&(jt.ibcPortId=Mt.ibcPortId),Mt.extension!==void 0&&(jt.extension=Mt.extension?lt.Any.toJSON(Mt.extension):void 0),jt},fromPartial(Mt){const jt=xt();return jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,jt.creator=Mt.creator??"",jt.admin=Mt.admin??"",jt.label=Mt.label??"",jt.created=Mt.created!==void 0&&Mt.created!==null?d.AbsoluteTxPosition.fromPartial(Mt.created):void 0,jt.ibcPortId=Mt.ibcPortId??"",jt.extension=Mt.extension!==void 0&&Mt.extension!==null?lt.Any.fromPartial(Mt.extension):void 0,jt}};function Et(){return{operation:0,codeId:ht.Long.UZERO,updated:void 0,msg:new Uint8Array}}d.ContractCodeHistoryEntry={encode(Mt,jt=mt.Writer.create()){return Mt.operation!==0&&jt.uint32(8).int32(Mt.operation),Mt.codeId.isZero()||jt.uint32(16).uint64(Mt.codeId),Mt.updated!==void 0&&d.AbsoluteTxPosition.encode(Mt.updated,jt.uint32(26).fork()).ldelim(),Mt.msg.length!==0&&jt.uint32(34).bytes(Mt.msg),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Et();for(;Ht.pos>>3){case 1:yt.operation=Ht.int32();break;case 2:yt.codeId=Ht.uint64();break;case 3:yt.updated=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 4:yt.msg=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{operation:(0,ht.isSet)(Mt.operation)?Zt(Mt.operation):0,codeId:(0,ht.isSet)(Mt.codeId)?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,updated:(0,ht.isSet)(Mt.updated)?d.AbsoluteTxPosition.fromJSON(Mt.updated):void 0,msg:(0,ht.isSet)(Mt.msg)?(0,ht.bytesFromBase64)(Mt.msg):new Uint8Array}},toJSON(Mt){const jt={};return Mt.operation!==void 0&&(jt.operation=Rt(Mt.operation)),Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||ht.Long.UZERO).toString()),Mt.updated!==void 0&&(jt.updated=Mt.updated?d.AbsoluteTxPosition.toJSON(Mt.updated):void 0),Mt.msg!==void 0&&(jt.msg=(0,ht.base64FromBytes)(Mt.msg!==void 0?Mt.msg:new Uint8Array)),jt},fromPartial(Mt){const jt=Et();return jt.operation=Mt.operation??0,jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?ht.Long.fromValue(Mt.codeId):ht.Long.UZERO,jt.updated=Mt.updated!==void 0&&Mt.updated!==null?d.AbsoluteTxPosition.fromPartial(Mt.updated):void 0,jt.msg=Mt.msg??new Uint8Array,jt}};function Bt(){return{blockHeight:ht.Long.UZERO,txIndex:ht.Long.UZERO}}d.AbsoluteTxPosition={encode(Mt,jt=mt.Writer.create()){return Mt.blockHeight.isZero()||jt.uint32(8).uint64(Mt.blockHeight),Mt.txIndex.isZero()||jt.uint32(16).uint64(Mt.txIndex),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Bt();for(;Ht.pos>>3){case 1:yt.blockHeight=Ht.uint64();break;case 2:yt.txIndex=Ht.uint64();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{blockHeight:(0,ht.isSet)(Mt.blockHeight)?ht.Long.fromValue(Mt.blockHeight):ht.Long.UZERO,txIndex:(0,ht.isSet)(Mt.txIndex)?ht.Long.fromValue(Mt.txIndex):ht.Long.UZERO}},toJSON(Mt){const jt={};return Mt.blockHeight!==void 0&&(jt.blockHeight=(Mt.blockHeight||ht.Long.UZERO).toString()),Mt.txIndex!==void 0&&(jt.txIndex=(Mt.txIndex||ht.Long.UZERO).toString()),jt},fromPartial(Mt){const jt=Bt();return jt.blockHeight=Mt.blockHeight!==void 0&&Mt.blockHeight!==null?ht.Long.fromValue(Mt.blockHeight):ht.Long.UZERO,jt.txIndex=Mt.txIndex!==void 0&&Mt.txIndex!==null?ht.Long.fromValue(Mt.txIndex):ht.Long.UZERO,jt}};function Tt(){return{key:new Uint8Array,value:new Uint8Array}}d.Model={encode(Mt,jt=mt.Writer.create()){return Mt.key.length!==0&&jt.uint32(10).bytes(Mt.key),Mt.value.length!==0&&jt.uint32(18).bytes(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof mt.Reader?Mt:new mt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Tt();for(;Ht.pos>>3){case 1:yt.key=Ht.bytes();break;case 2:yt.value=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{key:(0,ht.isSet)(Mt.key)?(0,ht.bytesFromBase64)(Mt.key):new Uint8Array,value:(0,ht.isSet)(Mt.value)?(0,ht.bytesFromBase64)(Mt.value):new Uint8Array}},toJSON(Mt){const jt={};return Mt.key!==void 0&&(jt.key=(0,ht.base64FromBytes)(Mt.key!==void 0?Mt.key:new Uint8Array)),Mt.value!==void 0&&(jt.value=(0,ht.base64FromBytes)(Mt.value!==void 0?Mt.value:new Uint8Array)),jt},fromPartial(Mt){const jt=Tt();return jt.key=Mt.key??new Uint8Array,jt.value=Mt.value??new Uint8Array,jt}}})(types$a);var modules={},aminomessages={},__importDefault$m=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(aminomessages,"__esModule",{value:!0});aminomessages.createWasmAminoConverters=aminomessages.accessTypeToString=aminomessages.accessTypeFromString=void 0;const encoding_1$7=build$g,types_1$2=types$a,long_1$b=__importDefault$m(long);function accessTypeFromString(d){switch(d){case"Unspecified":return types_1$2.AccessType.ACCESS_TYPE_UNSPECIFIED;case"Nobody":return types_1$2.AccessType.ACCESS_TYPE_NOBODY;case"OnlyAddress":return types_1$2.AccessType.ACCESS_TYPE_ONLY_ADDRESS;case"Everybody":return types_1$2.AccessType.ACCESS_TYPE_EVERYBODY;case"AnyOfAddresses":return types_1$2.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES;default:return types_1$2.AccessType.UNRECOGNIZED}}aminomessages.accessTypeFromString=accessTypeFromString;function accessTypeToString(d){switch(d){case types_1$2.AccessType.ACCESS_TYPE_UNSPECIFIED:return"Unspecified";case types_1$2.AccessType.ACCESS_TYPE_NOBODY:return"Nobody";case types_1$2.AccessType.ACCESS_TYPE_ONLY_ADDRESS:return"OnlyAddress";case types_1$2.AccessType.ACCESS_TYPE_EVERYBODY:return"Everybody";case types_1$2.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES:return"AnyOfAddresses";case types_1$2.AccessType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}aminomessages.accessTypeToString=accessTypeToString;function createWasmAminoConverters(){return{"/cosmwasm.wasm.v1.MsgStoreCode":{aminoType:"wasm/MsgStoreCode",toAmino:({sender:d,wasmByteCode:b,instantiatePermission:dt})=>({sender:d,wasm_byte_code:(0,encoding_1$7.toBase64)(b),instantiate_permission:dt?{permission:accessTypeToString(dt.permission),address:dt.address||void 0,addresses:dt.addresses.length!==0?dt.addresses:void 0}:void 0}),fromAmino:({sender:d,wasm_byte_code:b,instantiate_permission:dt})=>({sender:d,wasmByteCode:(0,encoding_1$7.fromBase64)(b),instantiatePermission:dt?{permission:accessTypeFromString(dt.permission),address:dt.address??"",addresses:dt.addresses??[]}:void 0})},"/cosmwasm.wasm.v1.MsgInstantiateContract":{aminoType:"wasm/MsgInstantiateContract",toAmino:({sender:d,codeId:b,label:dt,msg:ct,funds:lt,admin:ht})=>({sender:d,code_id:b.toString(),label:dt,msg:JSON.parse((0,encoding_1$7.fromUtf8)(ct)),funds:lt,admin:ht||void 0}),fromAmino:({sender:d,code_id:b,label:dt,msg:ct,funds:lt,admin:ht})=>({sender:d,codeId:long_1$b.default.fromString(b),label:dt,msg:(0,encoding_1$7.toUtf8)(JSON.stringify(ct)),funds:[...lt],admin:ht??""})},"/cosmwasm.wasm.v1.MsgInstantiateContract2":{aminoType:"wasm/MsgInstantiateContract2",toAmino:({sender:d,codeId:b,label:dt,msg:ct,funds:lt,admin:ht,salt:mt,fixMsg:vt})=>({sender:d,code_id:b.toString(),label:dt,msg:JSON.parse((0,encoding_1$7.fromUtf8)(ct)),funds:lt,admin:ht||void 0,salt:(0,encoding_1$7.toBase64)(mt),fix_msg:vt}),fromAmino:({sender:d,code_id:b,label:dt,msg:ct,funds:lt,admin:ht,salt:mt,fix_msg:vt})=>({sender:d,codeId:long_1$b.default.fromString(b),label:dt,msg:(0,encoding_1$7.toUtf8)(JSON.stringify(ct)),funds:[...lt],admin:ht??"",salt:(0,encoding_1$7.fromBase64)(mt),fixMsg:vt})},"/cosmwasm.wasm.v1.MsgUpdateAdmin":{aminoType:"wasm/MsgUpdateAdmin",toAmino:({sender:d,newAdmin:b,contract:dt})=>({sender:d,new_admin:b,contract:dt}),fromAmino:({sender:d,new_admin:b,contract:dt})=>({sender:d,newAdmin:b,contract:dt})},"/cosmwasm.wasm.v1.MsgClearAdmin":{aminoType:"wasm/MsgClearAdmin",toAmino:({sender:d,contract:b})=>({sender:d,contract:b}),fromAmino:({sender:d,contract:b})=>({sender:d,contract:b})},"/cosmwasm.wasm.v1.MsgExecuteContract":{aminoType:"wasm/MsgExecuteContract",toAmino:({sender:d,contract:b,msg:dt,funds:ct})=>({sender:d,contract:b,msg:JSON.parse((0,encoding_1$7.fromUtf8)(dt)),funds:ct}),fromAmino:({sender:d,contract:b,msg:dt,funds:ct})=>({sender:d,contract:b,msg:(0,encoding_1$7.toUtf8)(JSON.stringify(dt)),funds:[...ct]})},"/cosmwasm.wasm.v1.MsgMigrateContract":{aminoType:"wasm/MsgMigrateContract",toAmino:({sender:d,contract:b,codeId:dt,msg:ct})=>({sender:d,contract:b,code_id:dt.toString(),msg:JSON.parse((0,encoding_1$7.fromUtf8)(ct))}),fromAmino:({sender:d,contract:b,code_id:dt,msg:ct})=>({sender:d,contract:b,codeId:long_1$b.default.fromString(dt),msg:(0,encoding_1$7.toUtf8)(JSON.stringify(ct))})}}}aminomessages.createWasmAminoConverters=createWasmAminoConverters;var messages$1={},tx$d={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUpdateInstantiateConfigResponse=d.MsgUpdateInstantiateConfig=d.MsgClearAdminResponse=d.MsgClearAdmin=d.MsgUpdateAdminResponse=d.MsgUpdateAdmin=d.MsgMigrateContractResponse=d.MsgMigrateContract=d.MsgExecuteContractResponse=d.MsgExecuteContract=d.MsgInstantiateContract2Response=d.MsgInstantiateContractResponse=d.MsgInstantiateContract2=d.MsgInstantiateContract=d.MsgStoreCodeResponse=d.MsgStoreCode=d.protobufPackage=void 0;const lt=types$a,ht=coin$3,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmwasm.wasm.v1";function kt(){return{sender:"",wasmByteCode:new Uint8Array,instantiatePermission:void 0}}d.MsgStoreCode={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.wasmByteCode.length!==0&&$t.uint32(18).bytes(yt.wasmByteCode),yt.instantiatePermission!==void 0&<.AccessConfig.encode(yt.instantiatePermission,$t.uint32(42).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=kt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.wasmByteCode=Yt.bytes();break;case 5:St.instantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",wasmByteCode:(0,mt.isSet)(yt.wasmByteCode)?(0,mt.bytesFromBase64)(yt.wasmByteCode):new Uint8Array,instantiatePermission:(0,mt.isSet)(yt.instantiatePermission)?lt.AccessConfig.fromJSON(yt.instantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.wasmByteCode!==void 0&&($t.wasmByteCode=(0,mt.base64FromBytes)(yt.wasmByteCode!==void 0?yt.wasmByteCode:new Uint8Array)),yt.instantiatePermission!==void 0&&($t.instantiatePermission=yt.instantiatePermission?lt.AccessConfig.toJSON(yt.instantiatePermission):void 0),$t},fromPartial(yt){const $t=kt();return $t.sender=yt.sender??"",$t.wasmByteCode=yt.wasmByteCode??new Uint8Array,$t.instantiatePermission=yt.instantiatePermission!==void 0&&yt.instantiatePermission!==null?lt.AccessConfig.fromPartial(yt.instantiatePermission):void 0,$t}};function Pt(){return{codeId:mt.Long.UZERO,checksum:new Uint8Array}}d.MsgStoreCodeResponse={encode(yt,$t=vt.Writer.create()){return yt.codeId.isZero()||$t.uint32(8).uint64(yt.codeId),yt.checksum.length!==0&&$t.uint32(18).bytes(yt.checksum),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Pt();for(;Yt.pos>>3){case 1:St.codeId=Yt.uint64();break;case 2:St.checksum=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,checksum:(0,mt.isSet)(yt.checksum)?(0,mt.bytesFromBase64)(yt.checksum):new Uint8Array}},toJSON(yt){const $t={};return yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.checksum!==void 0&&($t.checksum=(0,mt.base64FromBytes)(yt.checksum!==void 0?yt.checksum:new Uint8Array)),$t},fromPartial(yt){const $t=Pt();return $t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.checksum=yt.checksum??new Uint8Array,$t}};function Jt(){return{sender:"",admin:"",codeId:mt.Long.UZERO,label:"",msg:new Uint8Array,funds:[]}}d.MsgInstantiateContract={encode(yt,$t=vt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,mt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,label:(0,mt.isSet)(yt.label)?String(yt.label):"",msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Jt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function Zt(){return{sender:"",admin:"",codeId:mt.Long.UZERO,label:"",msg:new Uint8Array,funds:[],salt:new Uint8Array,fixMsg:!1}}d.MsgInstantiateContract2={encode(yt,$t=vt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return yt.salt.length!==0&&$t.uint32(58).bytes(yt.salt),yt.fixMsg===!0&&$t.uint32(64).bool(yt.fixMsg),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;case 7:St.salt=Yt.bytes();break;case 8:St.fixMsg=Yt.bool();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,mt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,label:(0,mt.isSet)(yt.label)?String(yt.label):"",msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[],salt:(0,mt.isSet)(yt.salt)?(0,mt.bytesFromBase64)(yt.salt):new Uint8Array,fixMsg:(0,mt.isSet)(yt.fixMsg)?!!yt.fixMsg:!1}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],yt.salt!==void 0&&($t.salt=(0,mt.base64FromBytes)(yt.salt!==void 0?yt.salt:new Uint8Array)),yt.fixMsg!==void 0&&($t.fixMsg=yt.fixMsg),$t},fromPartial(yt){var Yt;const $t=Zt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t.salt=yt.salt??new Uint8Array,$t.fixMsg=yt.fixMsg??!1,$t}};function Rt(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContractResponse={encode(yt,$t=vt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,mt.isSet)(yt.address)?String(yt.address):"",data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=Rt();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function nn(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContract2Response={encode(yt,$t=vt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,mt.isSet)(yt.address)?String(yt.address):"",data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=nn();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function Qt(){return{sender:"",contract:"",msg:new Uint8Array,funds:[]}}d.MsgExecuteContract={encode(yt,$t=vt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.msg.length!==0&&$t.uint32(26).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(42).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.msg=Yt.bytes();break;case 5:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):"",msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Qt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function wt(){return{data:new Uint8Array}}d.MsgExecuteContractResponse={encode(yt,$t=vt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=wt();return $t.data=yt.data??new Uint8Array,$t}};function Nt(){return{sender:"",contract:"",codeId:mt.Long.UZERO,msg:new Uint8Array}}d.MsgMigrateContract={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.msg.length!==0&&$t.uint32(34).bytes(yt.msg),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.msg=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,msg:(0,mt.isSet)(yt.msg)?(0,mt.bytesFromBase64)(yt.msg):new Uint8Array}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.msg!==void 0&&($t.msg=(0,mt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),$t},fromPartial(yt){const $t=Nt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.msg=yt.msg??new Uint8Array,$t}};function xt(){return{data:new Uint8Array}}d.MsgMigrateContractResponse={encode(yt,$t=vt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,mt.isSet)(yt.data)?(0,mt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,mt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=xt();return $t.data=yt.data??new Uint8Array,$t}};function Et(){return{sender:"",newAdmin:"",contract:""}}d.MsgUpdateAdmin={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.newAdmin!==""&&$t.uint32(18).string(yt.newAdmin),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.newAdmin=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",newAdmin:(0,mt.isSet)(yt.newAdmin)?String(yt.newAdmin):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.newAdmin!==void 0&&($t.newAdmin=yt.newAdmin),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Et();return $t.sender=yt.sender??"",$t.newAdmin=yt.newAdmin??"",$t.contract=yt.contract??"",$t}};function Bt(){return{}}d.MsgUpdateAdminResponse={encode(yt,$t=vt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Bt()}};function Tt(){return{sender:"",contract:""}}d.MsgClearAdmin={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,mt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Tt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t}};function Mt(){return{}}d.MsgClearAdminResponse={encode(yt,$t=vt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Mt()}};function jt(){return{sender:"",codeId:mt.Long.UZERO,newInstantiatePermission:void 0}}d.MsgUpdateInstantiateConfig={encode(yt,$t=vt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.codeId.isZero()||$t.uint32(16).uint64(yt.codeId),yt.newInstantiatePermission!==void 0&<.AccessConfig.encode(yt.newInstantiatePermission,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.codeId=Yt.uint64();break;case 3:St.newInstantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,mt.isSet)(yt.sender)?String(yt.sender):"",codeId:(0,mt.isSet)(yt.codeId)?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,newInstantiatePermission:(0,mt.isSet)(yt.newInstantiatePermission)?lt.AccessConfig.fromJSON(yt.newInstantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.codeId!==void 0&&($t.codeId=(yt.codeId||mt.Long.UZERO).toString()),yt.newInstantiatePermission!==void 0&&($t.newInstantiatePermission=yt.newInstantiatePermission?lt.AccessConfig.toJSON(yt.newInstantiatePermission):void 0),$t},fromPartial(yt){const $t=jt();return $t.sender=yt.sender??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?mt.Long.fromValue(yt.codeId):mt.Long.UZERO,$t.newInstantiatePermission=yt.newInstantiatePermission!==void 0&&yt.newInstantiatePermission!==null?lt.AccessConfig.fromPartial(yt.newInstantiatePermission):void 0,$t}};function Ht(){return{}}d.MsgUpdateInstantiateConfigResponse={encode(yt,$t=vt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Ht()}};class an{constructor($t){this.rpc=$t,this.StoreCode=this.StoreCode.bind(this),this.InstantiateContract=this.InstantiateContract.bind(this),this.InstantiateContract2=this.InstantiateContract2.bind(this),this.ExecuteContract=this.ExecuteContract.bind(this),this.MigrateContract=this.MigrateContract.bind(this),this.UpdateAdmin=this.UpdateAdmin.bind(this),this.ClearAdmin=this.ClearAdmin.bind(this),this.UpdateInstantiateConfig=this.UpdateInstantiateConfig.bind(this)}StoreCode($t){const Yt=d.MsgStoreCode.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","StoreCode",Yt).then(St=>d.MsgStoreCodeResponse.decode(new vt.Reader(St)))}InstantiateContract($t){const Yt=d.MsgInstantiateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract",Yt).then(St=>d.MsgInstantiateContractResponse.decode(new vt.Reader(St)))}InstantiateContract2($t){const Yt=d.MsgInstantiateContract2.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract2",Yt).then(St=>d.MsgInstantiateContract2Response.decode(new vt.Reader(St)))}ExecuteContract($t){const Yt=d.MsgExecuteContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ExecuteContract",Yt).then(St=>d.MsgExecuteContractResponse.decode(new vt.Reader(St)))}MigrateContract($t){const Yt=d.MsgMigrateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","MigrateContract",Yt).then(St=>d.MsgMigrateContractResponse.decode(new vt.Reader(St)))}UpdateAdmin($t){const Yt=d.MsgUpdateAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateAdmin",Yt).then(St=>d.MsgUpdateAdminResponse.decode(new vt.Reader(St)))}ClearAdmin($t){const Yt=d.MsgClearAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ClearAdmin",Yt).then(St=>d.MsgClearAdminResponse.decode(new vt.Reader(St)))}UpdateInstantiateConfig($t){const Yt=d.MsgUpdateInstantiateConfig.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateInstantiateConfig",Yt).then(St=>d.MsgUpdateInstantiateConfigResponse.decode(new vt.Reader(St)))}}d.MsgClientImpl=an})(tx$d);Object.defineProperty(messages$1,"__esModule",{value:!0});messages$1.isMsgExecuteEncodeObject=messages$1.isMsgMigrateEncodeObject=messages$1.isMsgClearAdminEncodeObject=messages$1.isMsgUpdateAdminEncodeObject=messages$1.isMsgInstantiateContract2EncodeObject=messages$1.isMsgInstantiateContractEncodeObject=messages$1.isMsgStoreCodeEncodeObject=messages$1.wasmTypes=void 0;const tx_1$2=tx$d;messages$1.wasmTypes=[["/cosmwasm.wasm.v1.MsgClearAdmin",tx_1$2.MsgClearAdmin],["/cosmwasm.wasm.v1.MsgExecuteContract",tx_1$2.MsgExecuteContract],["/cosmwasm.wasm.v1.MsgMigrateContract",tx_1$2.MsgMigrateContract],["/cosmwasm.wasm.v1.MsgStoreCode",tx_1$2.MsgStoreCode],["/cosmwasm.wasm.v1.MsgInstantiateContract",tx_1$2.MsgInstantiateContract],["/cosmwasm.wasm.v1.MsgInstantiateContract2",tx_1$2.MsgInstantiateContract2],["/cosmwasm.wasm.v1.MsgUpdateAdmin",tx_1$2.MsgUpdateAdmin]];function isMsgStoreCodeEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgStoreCode"}messages$1.isMsgStoreCodeEncodeObject=isMsgStoreCodeEncodeObject;function isMsgInstantiateContractEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract"}messages$1.isMsgInstantiateContractEncodeObject=isMsgInstantiateContractEncodeObject;function isMsgInstantiateContract2EncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract2"}messages$1.isMsgInstantiateContract2EncodeObject=isMsgInstantiateContract2EncodeObject;function isMsgUpdateAdminEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgUpdateAdmin"}messages$1.isMsgUpdateAdminEncodeObject=isMsgUpdateAdminEncodeObject;function isMsgClearAdminEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgClearAdmin"}messages$1.isMsgClearAdminEncodeObject=isMsgClearAdminEncodeObject;function isMsgMigrateEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgMigrateContract"}messages$1.isMsgMigrateEncodeObject=isMsgMigrateEncodeObject;function isMsgExecuteEncodeObject(d){return d.typeUrl==="/cosmwasm.wasm.v1.MsgExecuteContract"}messages$1.isMsgExecuteEncodeObject=isMsgExecuteEncodeObject;var queries$1={},query$9={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ut,Vt,qt,fn){fn===void 0&&(fn=qt);var dn=Object.getOwnPropertyDescriptor(Vt,qt);(!dn||("get"in dn?!Vt.__esModule:dn.writable||dn.configurable))&&(dn={enumerable:!0,get:function(){return Vt[qt]}}),Object.defineProperty(Ut,fn,dn)}:function(Ut,Vt,qt,fn){fn===void 0&&(fn=qt),Ut[fn]=Vt[qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Ut,Vt){Object.defineProperty(Ut,"default",{enumerable:!0,value:Vt})}:function(Ut,Vt){Ut.default=Vt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Ut){if(Ut&&Ut.__esModule)return Ut;var Vt={};if(Ut!=null)for(var qt in Ut)qt!=="default"&&Object.prototype.hasOwnProperty.call(Ut,qt)&&b(Vt,Ut,qt);return dt(Vt,Ut),Vt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryContractsByCreatorResponse=d.QueryContractsByCreatorRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryPinnedCodesResponse=d.QueryPinnedCodesRequest=d.QueryCodesResponse=d.QueryCodesRequest=d.QueryCodeResponse=d.CodeInfoResponse=d.QueryCodeRequest=d.QuerySmartContractStateResponse=d.QuerySmartContractStateRequest=d.QueryRawContractStateResponse=d.QueryRawContractStateRequest=d.QueryAllContractStateResponse=d.QueryAllContractStateRequest=d.QueryContractsByCodeResponse=d.QueryContractsByCodeRequest=d.QueryContractHistoryResponse=d.QueryContractHistoryRequest=d.QueryContractInfoResponse=d.QueryContractInfoRequest=d.protobufPackage=void 0;const lt=pagination$3,ht=types$a,mt=helpers$1,vt=ct(minimal$4);d.protobufPackage="cosmwasm.wasm.v1";function kt(){return{address:""}}d.QueryContractInfoRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=kt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):""}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Vt},fromPartial(Ut){const Vt=kt();return Vt.address=Ut.address??"",Vt}};function Pt(){return{address:"",contractInfo:void 0}}d.QueryContractInfoResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.contractInfo!==void 0&&ht.ContractInfo.encode(Ut.contractInfo,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Pt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.contractInfo=ht.ContractInfo.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",contractInfo:(0,mt.isSet)(Ut.contractInfo)?ht.ContractInfo.fromJSON(Ut.contractInfo):void 0}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.contractInfo!==void 0&&(Vt.contractInfo=Ut.contractInfo?ht.ContractInfo.toJSON(Ut.contractInfo):void 0),Vt},fromPartial(Ut){const Vt=Pt();return Vt.address=Ut.address??"",Vt.contractInfo=Ut.contractInfo!==void 0&&Ut.contractInfo!==null?ht.ContractInfo.fromPartial(Ut.contractInfo):void 0,Vt}};function Jt(){return{address:"",pagination:void 0}}d.QueryContractHistoryRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Jt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Jt();return Vt.address=Ut.address??"",Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function Zt(){return{entries:[],pagination:void 0}}d.QueryContractHistoryResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.entries)ht.ContractCodeHistoryEntry.encode(qt,Vt.uint32(10).fork()).ldelim();return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Zt();for(;qt.pos>>3){case 1:dn.entries.push(ht.ContractCodeHistoryEntry.decode(qt,qt.uint32()));break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{entries:Array.isArray(Ut==null?void 0:Ut.entries)?Ut.entries.map(Vt=>ht.ContractCodeHistoryEntry.fromJSON(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.entries?Vt.entries=Ut.entries.map(qt=>qt?ht.ContractCodeHistoryEntry.toJSON(qt):void 0):Vt.entries=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=Zt();return Vt.entries=((qt=Ut.entries)==null?void 0:qt.map(fn=>ht.ContractCodeHistoryEntry.fromPartial(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Rt(){return{codeId:mt.Long.UZERO,pagination:void 0}}d.QueryContractsByCodeRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.codeId.isZero()||Vt.uint32(8).uint64(Ut.codeId),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Rt();for(;qt.pos>>3){case 1:dn.codeId=qt.uint64();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeId:(0,mt.isSet)(Ut.codeId)?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.codeId!==void 0&&(Vt.codeId=(Ut.codeId||mt.Long.UZERO).toString()),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Rt();return Vt.codeId=Ut.codeId!==void 0&&Ut.codeId!==null?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function nn(){return{contracts:[],pagination:void 0}}d.QueryContractsByCodeResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.contracts)Vt.uint32(10).string(qt);return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=nn();for(;qt.pos>>3){case 1:dn.contracts.push(qt.string());break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{contracts:Array.isArray(Ut==null?void 0:Ut.contracts)?Ut.contracts.map(Vt=>String(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.contracts?Vt.contracts=Ut.contracts.map(qt=>qt):Vt.contracts=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=nn();return Vt.contracts=((qt=Ut.contracts)==null?void 0:qt.map(fn=>fn))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Qt(){return{address:"",pagination:void 0}}d.QueryAllContractStateRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Qt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Qt();return Vt.address=Ut.address??"",Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function wt(){return{models:[],pagination:void 0}}d.QueryAllContractStateResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.models)ht.Model.encode(qt,Vt.uint32(10).fork()).ldelim();return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=wt();for(;qt.pos>>3){case 1:dn.models.push(ht.Model.decode(qt,qt.uint32()));break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{models:Array.isArray(Ut==null?void 0:Ut.models)?Ut.models.map(Vt=>ht.Model.fromJSON(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.models?Vt.models=Ut.models.map(qt=>qt?ht.Model.toJSON(qt):void 0):Vt.models=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=wt();return Vt.models=((qt=Ut.models)==null?void 0:qt.map(fn=>ht.Model.fromPartial(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Nt(){return{address:"",queryData:new Uint8Array}}d.QueryRawContractStateRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.queryData.length!==0&&Vt.uint32(18).bytes(Ut.queryData),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Nt();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.queryData=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",queryData:(0,mt.isSet)(Ut.queryData)?(0,mt.bytesFromBase64)(Ut.queryData):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.queryData!==void 0&&(Vt.queryData=(0,mt.base64FromBytes)(Ut.queryData!==void 0?Ut.queryData:new Uint8Array)),Vt},fromPartial(Ut){const Vt=Nt();return Vt.address=Ut.address??"",Vt.queryData=Ut.queryData??new Uint8Array,Vt}};function xt(){return{data:new Uint8Array}}d.QueryRawContractStateResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.data.length!==0&&Vt.uint32(10).bytes(Ut.data),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=xt();for(;qt.pos>>3){case 1:dn.data=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{data:(0,mt.isSet)(Ut.data)?(0,mt.bytesFromBase64)(Ut.data):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.data!==void 0&&(Vt.data=(0,mt.base64FromBytes)(Ut.data!==void 0?Ut.data:new Uint8Array)),Vt},fromPartial(Ut){const Vt=xt();return Vt.data=Ut.data??new Uint8Array,Vt}};function Et(){return{address:"",queryData:new Uint8Array}}d.QuerySmartContractStateRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.address!==""&&Vt.uint32(10).string(Ut.address),Ut.queryData.length!==0&&Vt.uint32(18).bytes(Ut.queryData),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Et();for(;qt.pos>>3){case 1:dn.address=qt.string();break;case 2:dn.queryData=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{address:(0,mt.isSet)(Ut.address)?String(Ut.address):"",queryData:(0,mt.isSet)(Ut.queryData)?(0,mt.bytesFromBase64)(Ut.queryData):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.address!==void 0&&(Vt.address=Ut.address),Ut.queryData!==void 0&&(Vt.queryData=(0,mt.base64FromBytes)(Ut.queryData!==void 0?Ut.queryData:new Uint8Array)),Vt},fromPartial(Ut){const Vt=Et();return Vt.address=Ut.address??"",Vt.queryData=Ut.queryData??new Uint8Array,Vt}};function Bt(){return{data:new Uint8Array}}d.QuerySmartContractStateResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.data.length!==0&&Vt.uint32(10).bytes(Ut.data),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Bt();for(;qt.pos>>3){case 1:dn.data=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{data:(0,mt.isSet)(Ut.data)?(0,mt.bytesFromBase64)(Ut.data):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.data!==void 0&&(Vt.data=(0,mt.base64FromBytes)(Ut.data!==void 0?Ut.data:new Uint8Array)),Vt},fromPartial(Ut){const Vt=Bt();return Vt.data=Ut.data??new Uint8Array,Vt}};function Tt(){return{codeId:mt.Long.UZERO}}d.QueryCodeRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.codeId.isZero()||Vt.uint32(8).uint64(Ut.codeId),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Tt();for(;qt.pos>>3){case 1:dn.codeId=qt.uint64();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeId:(0,mt.isSet)(Ut.codeId)?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO}},toJSON(Ut){const Vt={};return Ut.codeId!==void 0&&(Vt.codeId=(Ut.codeId||mt.Long.UZERO).toString()),Vt},fromPartial(Ut){const Vt=Tt();return Vt.codeId=Ut.codeId!==void 0&&Ut.codeId!==null?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,Vt}};function Mt(){return{codeId:mt.Long.UZERO,creator:"",dataHash:new Uint8Array,instantiatePermission:void 0}}d.CodeInfoResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.codeId.isZero()||Vt.uint32(8).uint64(Ut.codeId),Ut.creator!==""&&Vt.uint32(18).string(Ut.creator),Ut.dataHash.length!==0&&Vt.uint32(26).bytes(Ut.dataHash),Ut.instantiatePermission!==void 0&&ht.AccessConfig.encode(Ut.instantiatePermission,Vt.uint32(50).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Mt();for(;qt.pos>>3){case 1:dn.codeId=qt.uint64();break;case 2:dn.creator=qt.string();break;case 3:dn.dataHash=qt.bytes();break;case 6:dn.instantiatePermission=ht.AccessConfig.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeId:(0,mt.isSet)(Ut.codeId)?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,creator:(0,mt.isSet)(Ut.creator)?String(Ut.creator):"",dataHash:(0,mt.isSet)(Ut.dataHash)?(0,mt.bytesFromBase64)(Ut.dataHash):new Uint8Array,instantiatePermission:(0,mt.isSet)(Ut.instantiatePermission)?ht.AccessConfig.fromJSON(Ut.instantiatePermission):void 0}},toJSON(Ut){const Vt={};return Ut.codeId!==void 0&&(Vt.codeId=(Ut.codeId||mt.Long.UZERO).toString()),Ut.creator!==void 0&&(Vt.creator=Ut.creator),Ut.dataHash!==void 0&&(Vt.dataHash=(0,mt.base64FromBytes)(Ut.dataHash!==void 0?Ut.dataHash:new Uint8Array)),Ut.instantiatePermission!==void 0&&(Vt.instantiatePermission=Ut.instantiatePermission?ht.AccessConfig.toJSON(Ut.instantiatePermission):void 0),Vt},fromPartial(Ut){const Vt=Mt();return Vt.codeId=Ut.codeId!==void 0&&Ut.codeId!==null?mt.Long.fromValue(Ut.codeId):mt.Long.UZERO,Vt.creator=Ut.creator??"",Vt.dataHash=Ut.dataHash??new Uint8Array,Vt.instantiatePermission=Ut.instantiatePermission!==void 0&&Ut.instantiatePermission!==null?ht.AccessConfig.fromPartial(Ut.instantiatePermission):void 0,Vt}};function jt(){return{codeInfo:void 0,data:new Uint8Array}}d.QueryCodeResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.codeInfo!==void 0&&d.CodeInfoResponse.encode(Ut.codeInfo,Vt.uint32(10).fork()).ldelim(),Ut.data.length!==0&&Vt.uint32(18).bytes(Ut.data),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=jt();for(;qt.pos>>3){case 1:dn.codeInfo=d.CodeInfoResponse.decode(qt,qt.uint32());break;case 2:dn.data=qt.bytes();break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeInfo:(0,mt.isSet)(Ut.codeInfo)?d.CodeInfoResponse.fromJSON(Ut.codeInfo):void 0,data:(0,mt.isSet)(Ut.data)?(0,mt.bytesFromBase64)(Ut.data):new Uint8Array}},toJSON(Ut){const Vt={};return Ut.codeInfo!==void 0&&(Vt.codeInfo=Ut.codeInfo?d.CodeInfoResponse.toJSON(Ut.codeInfo):void 0),Ut.data!==void 0&&(Vt.data=(0,mt.base64FromBytes)(Ut.data!==void 0?Ut.data:new Uint8Array)),Vt},fromPartial(Ut){const Vt=jt();return Vt.codeInfo=Ut.codeInfo!==void 0&&Ut.codeInfo!==null?d.CodeInfoResponse.fromPartial(Ut.codeInfo):void 0,Vt.data=Ut.data??new Uint8Array,Vt}};function Ht(){return{pagination:void 0}}d.QueryCodesRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(10).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Ht();for(;qt.pos>>3){case 1:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=Ht();return Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function an(){return{codeInfos:[],pagination:void 0}}d.QueryCodesResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.codeInfos)d.CodeInfoResponse.encode(qt,Vt.uint32(10).fork()).ldelim();return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=an();for(;qt.pos>>3){case 1:dn.codeInfos.push(d.CodeInfoResponse.decode(qt,qt.uint32()));break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{codeInfos:Array.isArray(Ut==null?void 0:Ut.codeInfos)?Ut.codeInfos.map(Vt=>d.CodeInfoResponse.fromJSON(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.codeInfos?Vt.codeInfos=Ut.codeInfos.map(qt=>qt?d.CodeInfoResponse.toJSON(qt):void 0):Vt.codeInfos=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=an();return Vt.codeInfos=((qt=Ut.codeInfos)==null?void 0:qt.map(fn=>d.CodeInfoResponse.fromPartial(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function yt(){return{pagination:void 0}}d.QueryPinnedCodesRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=yt();for(;qt.pos>>3){case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=yt();return Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function $t(){return{codeIds:[],pagination:void 0}}d.QueryPinnedCodesResponse={encode(Ut,Vt=vt.Writer.create()){Vt.uint32(10).fork();for(const qt of Ut.codeIds)Vt.uint64(qt);return Vt.ldelim(),Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=$t();for(;qt.pos>>3){case 1:if((Dt&7)===2){const zt=qt.uint32()+qt.pos;for(;qt.posmt.Long.fromValue(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.codeIds?Vt.codeIds=Ut.codeIds.map(qt=>(qt||mt.Long.UZERO).toString()):Vt.codeIds=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=$t();return Vt.codeIds=((qt=Ut.codeIds)==null?void 0:qt.map(fn=>mt.Long.fromValue(fn)))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};function Yt(){return{}}d.QueryParamsRequest={encode(Ut,Vt=vt.Writer.create()){return Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Yt();for(;qt.pos>>3){default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{}},toJSON(Ut){return{}},fromPartial(Ut){return Yt()}};function Kt(){return{params:void 0}}d.QueryParamsResponse={encode(Ut,Vt=vt.Writer.create()){return Ut.params!==void 0&&ht.Params.encode(Ut.params,Vt.uint32(10).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=Kt();for(;qt.pos>>3){case 1:dn.params=ht.Params.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{params:(0,mt.isSet)(Ut.params)?ht.Params.fromJSON(Ut.params):void 0}},toJSON(Ut){const Vt={};return Ut.params!==void 0&&(Vt.params=Ut.params?ht.Params.toJSON(Ut.params):void 0),Vt},fromPartial(Ut){const Vt=Kt();return Vt.params=Ut.params!==void 0&&Ut.params!==null?ht.Params.fromPartial(Ut.params):void 0,Vt}};function St(){return{creatorAddress:"",pagination:void 0}}d.QueryContractsByCreatorRequest={encode(Ut,Vt=vt.Writer.create()){return Ut.creatorAddress!==""&&Vt.uint32(10).string(Ut.creatorAddress),Ut.pagination!==void 0&<.PageRequest.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=St();for(;qt.pos>>3){case 1:dn.creatorAddress=qt.string();break;case 2:dn.pagination=lt.PageRequest.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{creatorAddress:(0,mt.isSet)(Ut.creatorAddress)?String(Ut.creatorAddress):"",pagination:(0,mt.isSet)(Ut.pagination)?lt.PageRequest.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.creatorAddress!==void 0&&(Vt.creatorAddress=Ut.creatorAddress),Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageRequest.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){const Vt=St();return Vt.creatorAddress=Ut.creatorAddress??"",Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageRequest.fromPartial(Ut.pagination):void 0,Vt}};function It(){return{contractAddresses:[],pagination:void 0}}d.QueryContractsByCreatorResponse={encode(Ut,Vt=vt.Writer.create()){for(const qt of Ut.contractAddresses)Vt.uint32(10).string(qt);return Ut.pagination!==void 0&<.PageResponse.encode(Ut.pagination,Vt.uint32(18).fork()).ldelim(),Vt},decode(Ut,Vt){const qt=Ut instanceof vt.Reader?Ut:new vt.Reader(Ut);let fn=Vt===void 0?qt.len:qt.pos+Vt;const dn=It();for(;qt.pos>>3){case 1:dn.contractAddresses.push(qt.string());break;case 2:dn.pagination=lt.PageResponse.decode(qt,qt.uint32());break;default:qt.skipType(Dt&7);break}}return dn},fromJSON(Ut){return{contractAddresses:Array.isArray(Ut==null?void 0:Ut.contractAddresses)?Ut.contractAddresses.map(Vt=>String(Vt)):[],pagination:(0,mt.isSet)(Ut.pagination)?lt.PageResponse.fromJSON(Ut.pagination):void 0}},toJSON(Ut){const Vt={};return Ut.contractAddresses?Vt.contractAddresses=Ut.contractAddresses.map(qt=>qt):Vt.contractAddresses=[],Ut.pagination!==void 0&&(Vt.pagination=Ut.pagination?lt.PageResponse.toJSON(Ut.pagination):void 0),Vt},fromPartial(Ut){var qt;const Vt=It();return Vt.contractAddresses=((qt=Ut.contractAddresses)==null?void 0:qt.map(fn=>fn))||[],Vt.pagination=Ut.pagination!==void 0&&Ut.pagination!==null?lt.PageResponse.fromPartial(Ut.pagination):void 0,Vt}};class Gt{constructor(Vt){this.rpc=Vt,this.ContractInfo=this.ContractInfo.bind(this),this.ContractHistory=this.ContractHistory.bind(this),this.ContractsByCode=this.ContractsByCode.bind(this),this.AllContractState=this.AllContractState.bind(this),this.RawContractState=this.RawContractState.bind(this),this.SmartContractState=this.SmartContractState.bind(this),this.Code=this.Code.bind(this),this.Codes=this.Codes.bind(this),this.PinnedCodes=this.PinnedCodes.bind(this),this.Params=this.Params.bind(this),this.ContractsByCreator=this.ContractsByCreator.bind(this)}ContractInfo(Vt){const qt=d.QueryContractInfoRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractInfo",qt).then(dn=>d.QueryContractInfoResponse.decode(new vt.Reader(dn)))}ContractHistory(Vt){const qt=d.QueryContractHistoryRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractHistory",qt).then(dn=>d.QueryContractHistoryResponse.decode(new vt.Reader(dn)))}ContractsByCode(Vt){const qt=d.QueryContractsByCodeRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCode",qt).then(dn=>d.QueryContractsByCodeResponse.decode(new vt.Reader(dn)))}AllContractState(Vt){const qt=d.QueryAllContractStateRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","AllContractState",qt).then(dn=>d.QueryAllContractStateResponse.decode(new vt.Reader(dn)))}RawContractState(Vt){const qt=d.QueryRawContractStateRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","RawContractState",qt).then(dn=>d.QueryRawContractStateResponse.decode(new vt.Reader(dn)))}SmartContractState(Vt){const qt=d.QuerySmartContractStateRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","SmartContractState",qt).then(dn=>d.QuerySmartContractStateResponse.decode(new vt.Reader(dn)))}Code(Vt){const qt=d.QueryCodeRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Code",qt).then(dn=>d.QueryCodeResponse.decode(new vt.Reader(dn)))}Codes(Vt={pagination:void 0}){const qt=d.QueryCodesRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Codes",qt).then(dn=>d.QueryCodesResponse.decode(new vt.Reader(dn)))}PinnedCodes(Vt={pagination:void 0}){const qt=d.QueryPinnedCodesRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","PinnedCodes",qt).then(dn=>d.QueryPinnedCodesResponse.decode(new vt.Reader(dn)))}Params(Vt={}){const qt=d.QueryParamsRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Params",qt).then(dn=>d.QueryParamsResponse.decode(new vt.Reader(dn)))}ContractsByCreator(Vt){const qt=d.QueryContractsByCreatorRequest.encode(Vt).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCreator",qt).then(dn=>d.QueryContractsByCreatorResponse.decode(new vt.Reader(dn)))}}d.QueryClientImpl=Gt})(query$9);var __importDefault$l=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(queries$1,"__esModule",{value:!0});queries$1.setupWasmExtension=void 0;const encoding_1$6=build$g,stargate_1$9=build$e,query_1$7=query$9,long_1$a=__importDefault$l(long);function setupWasmExtension(d){const b=(0,stargate_1$9.createProtobufRpcClient)(d),dt=new query_1$7.QueryClientImpl(b);return{wasm:{listCodeInfo:async ct=>{const lt={pagination:(0,stargate_1$9.createPagination)(ct)};return dt.Codes(lt)},getCode:async ct=>{const lt={codeId:long_1$a.default.fromNumber(ct)};return dt.Code(lt)},listContractsByCodeId:async(ct,lt)=>{const ht={codeId:long_1$a.default.fromNumber(ct),pagination:(0,stargate_1$9.createPagination)(lt)};return dt.ContractsByCode(ht)},listContractsByCreator:async(ct,lt)=>{const ht={creatorAddress:ct,pagination:(0,stargate_1$9.createPagination)(lt)};return dt.ContractsByCreator(ht)},getContractInfo:async ct=>{const lt={address:ct};return dt.ContractInfo(lt)},getContractCodeHistory:async(ct,lt)=>{const ht={address:ct,pagination:(0,stargate_1$9.createPagination)(lt)};return dt.ContractHistory(ht)},getAllContractState:async(ct,lt)=>{const ht={address:ct,pagination:(0,stargate_1$9.createPagination)(lt)};return dt.AllContractState(ht)},queryContractRaw:async(ct,lt)=>{const ht={address:ct,queryData:lt};return dt.RawContractState(ht)},queryContractSmart:async(ct,lt)=>{const ht={address:ct,queryData:(0,encoding_1$6.toUtf8)(JSON.stringify(lt))},{data:mt}=await dt.SmartContractState(ht);let vt;try{vt=(0,encoding_1$6.fromUtf8)(mt)}catch(kt){throw new Error(`Could not UTF-8 decode smart query response from contract: ${kt}`)}try{return JSON.parse(vt)}catch(kt){throw new Error(`Could not JSON parse smart query response from contract: ${kt}`)}}}}}queries$1.setupWasmExtension=setupWasmExtension;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.setupWasmExtension=d.wasmTypes=d.isMsgUpdateAdminEncodeObject=d.isMsgStoreCodeEncodeObject=d.isMsgMigrateEncodeObject=d.isMsgInstantiateContractEncodeObject=d.isMsgInstantiateContract2EncodeObject=d.isMsgExecuteEncodeObject=d.isMsgClearAdminEncodeObject=d.createWasmAminoConverters=void 0;var b=aminomessages;Object.defineProperty(d,"createWasmAminoConverters",{enumerable:!0,get:function(){return b.createWasmAminoConverters}});var dt=messages$1;Object.defineProperty(d,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return dt.isMsgClearAdminEncodeObject}}),Object.defineProperty(d,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return dt.isMsgExecuteEncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return dt.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return dt.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(d,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgMigrateEncodeObject}}),Object.defineProperty(d,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return dt.isMsgStoreCodeEncodeObject}}),Object.defineProperty(d,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return dt.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(d,"wasmTypes",{enumerable:!0,get:function(){return dt.wasmTypes}});var ct=queries$1;Object.defineProperty(d,"setupWasmExtension",{enumerable:!0,get:function(){return ct.setupWasmExtension}})})(modules);Object.defineProperty(cosmwasmclient,"__esModule",{value:!0});cosmwasmclient.CosmWasmClient=void 0;const encoding_1$5=build$g,math_1$4=build$f,stargate_1$8=build$e,tendermint_rpc_1$2=build$3,utils_1$4=build$9,abci_1=abci,types_1$1=types$a,modules_1$1=modules;class CosmWasmClient{static async connect(b){let dt;const ct=await tendermint_rpc_1$2.Tendermint37Client.connect(b);return(await ct.status()).nodeInfo.version.startsWith("0.37.")?dt=ct:(ct.disconnect(),dt=await tendermint_rpc_1$2.Tendermint34Client.connect(b)),CosmWasmClient.create(dt)}static async create(b){return new CosmWasmClient(b)}constructor(b){this.codesCache=new Map,b&&(this.tmClient=b,this.queryClient=stargate_1$8.QueryClient.withExtensions(b,stargate_1$8.setupAuthExtension,stargate_1$8.setupBankExtension,modules_1$1.setupWasmExtension,stargate_1$8.setupTxExtension))}getTmClient(){return this.tmClient}forceGetTmClient(){if(!this.tmClient)throw new Error("Tendermint client not available. You cannot use online functionality in offline mode.");return this.tmClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw new Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){const dt=(await this.forceGetTmClient().status()).nodeInfo.network;if(!dt)throw new Error("Chain ID must not be empty");this.chainId=dt}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(b){try{const dt=await this.forceGetQueryClient().auth.account(b);return dt?(0,stargate_1$8.accountFromAny)(dt):null}catch(dt){if(/rpc error: code = NotFound/i.test(dt.toString()))return null;throw dt}}async getSequence(b){const dt=await this.getAccount(b);if(!dt)throw new Error(`Account '${b}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:dt.accountNumber,sequence:dt.sequence}}async getBlock(b){const dt=await this.forceGetTmClient().block(b);return{id:(0,encoding_1$5.toHex)(dt.blockId.hash).toUpperCase(),header:{version:{block:new math_1$4.Uint53(dt.block.header.version.block).toString(),app:new math_1$4.Uint53(dt.block.header.version.app).toString()},height:dt.block.header.height,chainId:dt.block.header.chainId,time:(0,tendermint_rpc_1$2.toRfc3339WithNanoseconds)(dt.block.header.time)},txs:dt.block.txs}}async getBalance(b,dt){return this.forceGetQueryClient().bank.balance(b,dt)}async getTx(b){return(await this.txsQuery(`tx.hash='${b}'`))[0]??null}async searchTx(b){let dt;if(typeof b=="string")dt=b;else if(Array.isArray(b))dt=b.map(ct=>`${ct.key}='${ct.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(dt)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(b,dt=6e4,ct=3e3){let lt=!1;const ht=setTimeout(()=>{lt=!0},dt),mt=async kt=>{if(lt)throw new stargate_1$8.TimeoutError(`Transaction with ID ${kt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${dt/1e3} seconds.`,kt);await(0,utils_1$4.sleep)(ct);const Pt=await this.getTx(kt);return Pt?{code:Pt.code,height:Pt.height,txIndex:Pt.txIndex,rawLog:Pt.rawLog,transactionHash:kt,events:Pt.events,msgResponses:Pt.msgResponses,gasUsed:Pt.gasUsed,gasWanted:Pt.gasWanted}:mt(kt)},vt=await this.broadcastTxSync(b);return new Promise((kt,Pt)=>mt(vt).then(Jt=>{clearTimeout(ht),kt(Jt)},Jt=>{clearTimeout(ht),Pt(Jt)}))}async broadcastTxSync(b){const dt=await this.forceGetTmClient().broadcastTxSync({tx:b});return dt.code?Promise.reject(new stargate_1$8.BroadcastTxError(dt.code,dt.codespace??"",dt.log)):(0,encoding_1$5.toHex)(dt.hash).toUpperCase()}async getCodes(){const b=[];let dt;do{const{codeInfos:ct,pagination:lt}=await this.forceGetQueryClient().wasm.listCodeInfo(dt),ht=ct||[];b.push(...ht),dt=lt==null?void 0:lt.nextKey}while((dt==null?void 0:dt.length)!==0);return b.map(ct=>((0,utils_1$4.assert)(ct.creator&&ct.codeId&&ct.dataHash,"entry incomplete"),{id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$5.toHex)(ct.dataHash)}))}async getCodeDetails(b){const dt=this.codesCache.get(b);if(dt)return dt;const{codeInfo:ct,data:lt}=await this.forceGetQueryClient().wasm.getCode(b);(0,utils_1$4.assert)(ct&&ct.codeId&&ct.creator&&ct.dataHash&<,"codeInfo missing or incomplete");const ht={id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$5.toHex)(ct.dataHash),data:lt};return this.codesCache.set(b,ht),ht}async getContracts(b){const dt=[];let ct;do{const{contracts:lt,pagination:ht}=await this.forceGetQueryClient().wasm.listContractsByCodeId(b,ct);dt.push(...lt),ct=ht==null?void 0:ht.nextKey}while((ct==null?void 0:ct.length)!==0&&ct!==void 0);return dt}async getContractsByCreator(b){const dt=[];let ct;do{const{contractAddresses:lt,pagination:ht}=await this.forceGetQueryClient().wasm.listContractsByCreator(b,ct);dt.push(...lt),ct=ht==null?void 0:ht.nextKey}while((ct==null?void 0:ct.length)!==0&&ct!==void 0);return dt}async getContract(b){const{address:dt,contractInfo:ct}=await this.forceGetQueryClient().wasm.getContractInfo(b);if(!ct)throw new Error(`No contract found at address "${b}"`);return(0,utils_1$4.assert)(dt,"address missing"),(0,utils_1$4.assert)(ct.codeId&&ct.creator&&ct.label,"contractInfo incomplete"),{address:dt,codeId:ct.codeId.toNumber(),creator:ct.creator,admin:ct.admin||void 0,label:ct.label,ibcPortId:ct.ibcPortId||void 0}}async getContractCodeHistory(b){const dt=await this.forceGetQueryClient().wasm.getContractCodeHistory(b);if(!dt)throw new Error(`No contract history found for address "${b}"`);const ct={[types_1$1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT]:"Init",[types_1$1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS]:"Genesis",[types_1$1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE]:"Migrate"};return(dt.entries||[]).map(lt=>((0,utils_1$4.assert)(lt.operation&<.codeId&<.msg),{operation:ct[lt.operation],codeId:lt.codeId.toNumber(),msg:JSON.parse((0,encoding_1$5.fromUtf8)(lt.msg))}))}async queryContractRaw(b,dt){await this.getContract(b);const{data:ct}=await this.forceGetQueryClient().wasm.queryContractRaw(b,dt);return ct??null}async queryContractSmart(b,dt){try{return await this.forceGetQueryClient().wasm.queryContractSmart(b,dt)}catch(ct){throw ct instanceof Error&&ct.message.startsWith("not found: contract")?new Error(`No contract found at address "${b}"`):ct}}async txsQuery(b){return(await this.forceGetTmClient().txSearchAll({query:b})).txs.map(ct=>{const lt=abci_1.TxMsgData.decode(ct.result.data??new Uint8Array);return{height:ct.height,txIndex:ct.index,hash:(0,encoding_1$5.toHex)(ct.hash).toUpperCase(),code:ct.result.code,events:ct.result.events.map(stargate_1$8.fromTendermintEvent),rawLog:ct.result.log||"",tx:ct.tx,msgResponses:lt.msgResponses,gasUsed:ct.result.gasUsed,gasWanted:ct.result.gasWanted}})}}cosmwasmclient.CosmWasmClient=CosmWasmClient;var encoding={};Object.defineProperty(encoding,"__esModule",{value:!0});encoding.fromBinary=encoding.toBinary=void 0;const encoding_1$4=build$g;function toBinary(d){return(0,encoding_1$4.toBase64)((0,encoding_1$4.toUtf8)(JSON.stringify(d)))}encoding.toBinary=toBinary;function fromBinary(d){return JSON.parse((0,encoding_1$4.fromUtf8)((0,encoding_1$4.fromBase64)(d)))}encoding.fromBinary=fromBinary;var instantiate2={};Object.defineProperty(instantiate2,"__esModule",{value:!0});instantiate2.instantiate2Address=instantiate2._instantiate2AddressIntermediate=void 0;const crypto_1$6=build$b,encoding_1$3=build$g,math_1$3=build$f,utils_1$3=build$9;function hash(d,b){return new crypto_1$6.Sha256((0,crypto_1$6.sha256)((0,encoding_1$3.toAscii)(d))).update(b).digest()}function toUint64(d){return math_1$3.Uint64.fromNumber(d).toBytesBigEndian()}function _instantiate2AddressIntermediate(d,b,dt,ct,lt){(0,utils_1$3.assert)(d.length===32);const ht=(0,encoding_1$3.fromBech32)(b).data,mt=typeof ct=="string"?(0,encoding_1$3.toUtf8)(ct):new Uint8Array;if(dt.length<1||dt.length>64)throw new Error("Salt must be between 1 and 64 bytes");const vt=new Uint8Array([...(0,encoding_1$3.toAscii)("wasm"),0,...toUint64(d.length),...d,...toUint64(ht.length),...ht,...toUint64(dt.length),...dt,...toUint64(mt.length),...mt]),kt=hash("module",vt),Pt=(0,encoding_1$3.toBech32)(lt,kt);return{key:vt,addressData:kt,address:Pt}}instantiate2._instantiate2AddressIntermediate=_instantiate2AddressIntermediate;function instantiate2Address(d,b,dt,ct){return _instantiate2AddressIntermediate(d,b,dt,null,ct).address}instantiate2.instantiate2Address=instantiate2Address;var signingcosmwasmclient={},pako={},deflate$4={},deflate$3={},trees={};const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(d){let b=d.length;for(;--b>=0;)d[b]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(d,b,dt,ct,lt){this.static_tree=d,this.extra_bits=b,this.extra_base=dt,this.elems=ct,this.max_length=lt,this.has_stree=d&&d.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(d,b){this.dyn_tree=d,this.max_code=0,this.stat_desc=b}const d_code=d=>d<256?_dist_code[d]:_dist_code[256+(d>>>7)],put_short=(d,b)=>{d.pending_buf[d.pending++]=b&255,d.pending_buf[d.pending++]=b>>>8&255},send_bits=(d,b,dt)=>{d.bi_valid>Buf_size-dt?(d.bi_buf|=b<>Buf_size-d.bi_valid,d.bi_valid+=dt-Buf_size):(d.bi_buf|=b<{send_bits(d,dt[b*2],dt[b*2+1])},bi_reverse=(d,b)=>{let dt=0;do dt|=d&1,d>>>=1,dt<<=1;while(--b>0);return dt>>>1},bi_flush=d=>{d.bi_valid===16?(put_short(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):d.bi_valid>=8&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)},gen_bitlen=(d,b)=>{const dt=b.dyn_tree,ct=b.max_code,lt=b.stat_desc.static_tree,ht=b.stat_desc.has_stree,mt=b.stat_desc.extra_bits,vt=b.stat_desc.extra_base,kt=b.stat_desc.max_length;let Pt,Jt,Zt,Rt,nn,Qt,wt=0;for(Rt=0;Rt<=MAX_BITS$1;Rt++)d.bl_count[Rt]=0;for(dt[d.heap[d.heap_max]*2+1]=0,Pt=d.heap_max+1;Ptkt&&(Rt=kt,wt++),dt[Jt*2+1]=Rt,!(Jt>ct)&&(d.bl_count[Rt]++,nn=0,Jt>=vt&&(nn=mt[Jt-vt]),Qt=dt[Jt*2],d.opt_len+=Qt*(Rt+nn),ht&&(d.static_len+=Qt*(lt[Jt*2+1]+nn)));if(wt!==0){do{for(Rt=kt-1;d.bl_count[Rt]===0;)Rt--;d.bl_count[Rt]--,d.bl_count[Rt+1]+=2,d.bl_count[kt]--,wt-=2}while(wt>0);for(Rt=kt;Rt!==0;Rt--)for(Jt=d.bl_count[Rt];Jt!==0;)Zt=d.heap[--Pt],!(Zt>ct)&&(dt[Zt*2+1]!==Rt&&(d.opt_len+=(Rt-dt[Zt*2+1])*dt[Zt*2],dt[Zt*2+1]=Rt),Jt--)}},gen_codes=(d,b,dt)=>{const ct=new Array(MAX_BITS$1+1);let lt=0,ht,mt;for(ht=1;ht<=MAX_BITS$1;ht++)lt=lt+dt[ht-1]<<1,ct[ht]=lt;for(mt=0;mt<=b;mt++){let vt=d[mt*2+1];vt!==0&&(d[mt*2]=bi_reverse(ct[vt]++,vt))}},tr_static_init=()=>{let d,b,dt,ct,lt;const ht=new Array(MAX_BITS$1+1);for(dt=0,ct=0;ct>=7;ct{let b;for(b=0;b{d.bi_valid>8?put_short(d,d.bi_buf):d.bi_valid>0&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0},smaller=(d,b,dt,ct)=>{const lt=b*2,ht=dt*2;return d[lt]{const ct=d.heap[dt];let lt=dt<<1;for(;lt<=d.heap_len&&(lt{let ct,lt,ht=0,mt,vt;if(d.sym_next!==0)do ct=d.pending_buf[d.sym_buf+ht++]&255,ct+=(d.pending_buf[d.sym_buf+ht++]&255)<<8,lt=d.pending_buf[d.sym_buf+ht++],ct===0?send_code(d,lt,b):(mt=_length_code[lt],send_code(d,mt+LITERALS$1+1,b),vt=extra_lbits[mt],vt!==0&&(lt-=base_length[mt],send_bits(d,lt,vt)),ct--,mt=d_code(ct),send_code(d,mt,dt),vt=extra_dbits[mt],vt!==0&&(ct-=base_dist[mt],send_bits(d,ct,vt)));while(ht{const dt=b.dyn_tree,ct=b.stat_desc.static_tree,lt=b.stat_desc.has_stree,ht=b.stat_desc.elems;let mt,vt,kt=-1,Pt;for(d.heap_len=0,d.heap_max=HEAP_SIZE$1,mt=0;mt>1;mt>=1;mt--)pqdownheap(d,dt,mt);Pt=ht;do mt=d.heap[1],d.heap[1]=d.heap[d.heap_len--],pqdownheap(d,dt,1),vt=d.heap[1],d.heap[--d.heap_max]=mt,d.heap[--d.heap_max]=vt,dt[Pt*2]=dt[mt*2]+dt[vt*2],d.depth[Pt]=(d.depth[mt]>=d.depth[vt]?d.depth[mt]:d.depth[vt])+1,dt[mt*2+1]=dt[vt*2+1]=Pt,d.heap[1]=Pt++,pqdownheap(d,dt,1);while(d.heap_len>=2);d.heap[--d.heap_max]=d.heap[1],gen_bitlen(d,b),gen_codes(dt,kt,d.bl_count)},scan_tree=(d,b,dt)=>{let ct,lt=-1,ht,mt=b[0*2+1],vt=0,kt=7,Pt=4;for(mt===0&&(kt=138,Pt=3),b[(dt+1)*2+1]=65535,ct=0;ct<=dt;ct++)ht=mt,mt=b[(ct+1)*2+1],!(++vt{let ct,lt=-1,ht,mt=b[0*2+1],vt=0,kt=7,Pt=4;for(mt===0&&(kt=138,Pt=3),ct=0;ct<=dt;ct++)if(ht=mt,mt=b[(ct+1)*2+1],!(++vt{let b;for(scan_tree(d,d.dyn_ltree,d.l_desc.max_code),scan_tree(d,d.dyn_dtree,d.d_desc.max_code),build_tree(d,d.bl_desc),b=BL_CODES$1-1;b>=3&&d.bl_tree[bl_order[b]*2+1]===0;b--);return d.opt_len+=3*(b+1)+5+5+4,b},send_all_trees=(d,b,dt,ct)=>{let lt;for(send_bits(d,b-257,5),send_bits(d,dt-1,5),send_bits(d,ct-4,4),lt=0;lt{let b=4093624447,dt;for(dt=0;dt<=31;dt++,b>>>=1)if(b&1&&d.dyn_ltree[dt*2]!==0)return Z_BINARY;if(d.dyn_ltree[9*2]!==0||d.dyn_ltree[10*2]!==0||d.dyn_ltree[13*2]!==0)return Z_TEXT;for(dt=32;dt{static_init_done||(tr_static_init(),static_init_done=!0),d.l_desc=new TreeDesc(d.dyn_ltree,static_l_desc),d.d_desc=new TreeDesc(d.dyn_dtree,static_d_desc),d.bl_desc=new TreeDesc(d.bl_tree,static_bl_desc),d.bi_buf=0,d.bi_valid=0,init_block(d)},_tr_stored_block$1=(d,b,dt,ct)=>{send_bits(d,(STORED_BLOCK<<1)+(ct?1:0),3),bi_windup(d),put_short(d,dt),put_short(d,~dt),dt&&d.pending_buf.set(d.window.subarray(b,b+dt),d.pending),d.pending+=dt},_tr_align$1=d=>{send_bits(d,STATIC_TREES<<1,3),send_code(d,END_BLOCK,static_ltree),bi_flush(d)},_tr_flush_block$1=(d,b,dt,ct)=>{let lt,ht,mt=0;d.level>0?(d.strm.data_type===Z_UNKNOWN$1&&(d.strm.data_type=detect_data_type(d)),build_tree(d,d.l_desc),build_tree(d,d.d_desc),mt=build_bl_tree(d),lt=d.opt_len+3+7>>>3,ht=d.static_len+3+7>>>3,ht<=lt&&(lt=ht)):lt=ht=dt+5,dt+4<=lt&&b!==-1?_tr_stored_block$1(d,b,dt,ct):d.strategy===Z_FIXED$1||ht===lt?(send_bits(d,(STATIC_TREES<<1)+(ct?1:0),3),compress_block(d,static_ltree,static_dtree)):(send_bits(d,(DYN_TREES<<1)+(ct?1:0),3),send_all_trees(d,d.l_desc.max_code+1,d.d_desc.max_code+1,mt+1),compress_block(d,d.dyn_ltree,d.dyn_dtree)),init_block(d),ct&&bi_windup(d)},_tr_tally$1=(d,b,dt)=>(d.pending_buf[d.sym_buf+d.sym_next++]=b,d.pending_buf[d.sym_buf+d.sym_next++]=b>>8,d.pending_buf[d.sym_buf+d.sym_next++]=dt,b===0?d.dyn_ltree[dt*2]++:(d.matches++,b--,d.dyn_ltree[(_length_code[dt]+LITERALS$1+1)*2]++,d.dyn_dtree[d_code(b)*2]++),d.sym_next===d.sym_end);trees._tr_init=_tr_init$1;trees._tr_stored_block=_tr_stored_block$1;trees._tr_flush_block=_tr_flush_block$1;trees._tr_tally=_tr_tally$1;trees._tr_align=_tr_align$1;const adler32$2=(d,b,dt,ct)=>{let lt=d&65535|0,ht=d>>>16&65535|0,mt=0;for(;dt!==0;){mt=dt>2e3?2e3:dt,dt-=mt;do lt=lt+b[ct++]|0,ht=ht+lt|0;while(--mt);lt%=65521,ht%=65521}return lt|ht<<16|0};var adler32_1=adler32$2;const makeTable=()=>{let d,b=[];for(var dt=0;dt<256;dt++){d=dt;for(var ct=0;ct<8;ct++)d=d&1?3988292384^d>>>1:d>>>1;b[dt]=d}return b},crcTable=new Uint32Array(makeTable()),crc32$2=(d,b,dt,ct)=>{const lt=crcTable,ht=ct+dt;d^=-1;for(let mt=ct;mt>>8^lt[(d^b[mt])&255];return d^-1};var crc32_1=crc32$2,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$1={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,adler32$1=adler32_1,crc32$1=crc32_1,msg$2=messages,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$1,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(d,b)=>(d.msg=msg$2[b],b),rank$1=d=>d*2-(d>4?9:0),zero=d=>{let b=d.length;for(;--b>=0;)d[b]=0},slide_hash=d=>{let b,dt,ct,lt=d.w_size;b=d.hash_size,ct=b;do dt=d.head[--ct],d.head[ct]=dt>=lt?dt-lt:0;while(--b);b=lt,ct=b;do dt=d.prev[--ct],d.prev[ct]=dt>=lt?dt-lt:0;while(--b)};let HASH_ZLIB=(d,b,dt)=>(b<{const b=d.state;let dt=b.pending;dt>d.avail_out&&(dt=d.avail_out),dt!==0&&(d.output.set(b.pending_buf.subarray(b.pending_out,b.pending_out+dt),d.next_out),d.next_out+=dt,b.pending_out+=dt,d.total_out+=dt,d.avail_out-=dt,b.pending-=dt,b.pending===0&&(b.pending_out=0))},flush_block_only=(d,b)=>{_tr_flush_block(d,d.block_start>=0?d.block_start:-1,d.strstart-d.block_start,b),d.block_start=d.strstart,flush_pending(d.strm)},put_byte=(d,b)=>{d.pending_buf[d.pending++]=b},putShortMSB=(d,b)=>{d.pending_buf[d.pending++]=b>>>8&255,d.pending_buf[d.pending++]=b&255},read_buf=(d,b,dt,ct)=>{let lt=d.avail_in;return lt>ct&&(lt=ct),lt===0?0:(d.avail_in-=lt,b.set(d.input.subarray(d.next_in,d.next_in+lt),dt),d.state.wrap===1?d.adler=adler32$1(d.adler,b,lt,dt):d.state.wrap===2&&(d.adler=crc32$1(d.adler,b,lt,dt)),d.next_in+=lt,d.total_in+=lt,lt)},longest_match=(d,b)=>{let dt=d.max_chain_length,ct=d.strstart,lt,ht,mt=d.prev_length,vt=d.nice_match;const kt=d.strstart>d.w_size-MIN_LOOKAHEAD?d.strstart-(d.w_size-MIN_LOOKAHEAD):0,Pt=d.window,Jt=d.w_mask,Zt=d.prev,Rt=d.strstart+MAX_MATCH;let nn=Pt[ct+mt-1],Qt=Pt[ct+mt];d.prev_length>=d.good_match&&(dt>>=2),vt>d.lookahead&&(vt=d.lookahead);do if(lt=b,!(Pt[lt+mt]!==Qt||Pt[lt+mt-1]!==nn||Pt[lt]!==Pt[ct]||Pt[++lt]!==Pt[ct+1])){ct+=2,lt++;do;while(Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&Pt[++ct]===Pt[++lt]&&ctmt){if(d.match_start=b,mt=ht,ht>=vt)break;nn=Pt[ct+mt-1],Qt=Pt[ct+mt]}}while((b=Zt[b&Jt])>kt&&--dt!==0);return mt<=d.lookahead?mt:d.lookahead},fill_window=d=>{const b=d.w_size;let dt,ct,lt;do{if(ct=d.window_size-d.lookahead-d.strstart,d.strstart>=b+(b-MIN_LOOKAHEAD)&&(d.window.set(d.window.subarray(b,b+b-ct),0),d.match_start-=b,d.strstart-=b,d.block_start-=b,d.insert>d.strstart&&(d.insert=d.strstart),slide_hash(d),ct+=b),d.strm.avail_in===0)break;if(dt=read_buf(d.strm,d.window,d.strstart+d.lookahead,ct),d.lookahead+=dt,d.lookahead+d.insert>=MIN_MATCH)for(lt=d.strstart-d.insert,d.ins_h=d.window[lt],d.ins_h=HASH(d,d.ins_h,d.window[lt+1]);d.insert&&(d.ins_h=HASH(d,d.ins_h,d.window[lt+MIN_MATCH-1]),d.prev[lt&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=lt,lt++,d.insert--,!(d.lookahead+d.insert{let dt=d.pending_buf_size-5>d.w_size?d.w_size:d.pending_buf_size-5,ct,lt,ht,mt=0,vt=d.strm.avail_in;do{if(ct=65535,ht=d.bi_valid+42>>3,d.strm.avail_outlt+d.strm.avail_in&&(ct=lt+d.strm.avail_in),ct>ht&&(ct=ht),ct>8,d.pending_buf[d.pending-2]=~ct,d.pending_buf[d.pending-1]=~ct>>8,flush_pending(d.strm),lt&&(lt>ct&&(lt=ct),d.strm.output.set(d.window.subarray(d.block_start,d.block_start+lt),d.strm.next_out),d.strm.next_out+=lt,d.strm.avail_out-=lt,d.strm.total_out+=lt,d.block_start+=lt,ct-=lt),ct&&(read_buf(d.strm,d.strm.output,d.strm.next_out,ct),d.strm.next_out+=ct,d.strm.avail_out-=ct,d.strm.total_out+=ct)}while(mt===0);return vt-=d.strm.avail_in,vt&&(vt>=d.w_size?(d.matches=2,d.window.set(d.strm.input.subarray(d.strm.next_in-d.w_size,d.strm.next_in),0),d.strstart=d.w_size,d.insert=d.strstart):(d.window_size-d.strstart<=vt&&(d.strstart-=d.w_size,d.window.set(d.window.subarray(d.w_size,d.w_size+d.strstart),0),d.matches<2&&d.matches++,d.insert>d.strstart&&(d.insert=d.strstart)),d.window.set(d.strm.input.subarray(d.strm.next_in-vt,d.strm.next_in),d.strstart),d.strstart+=vt,d.insert+=vt>d.w_size-d.insert?d.w_size-d.insert:vt),d.block_start=d.strstart),d.high_waterht&&d.block_start>=d.w_size&&(d.block_start-=d.w_size,d.strstart-=d.w_size,d.window.set(d.window.subarray(d.w_size,d.w_size+d.strstart),0),d.matches<2&&d.matches++,ht+=d.w_size,d.insert>d.strstart&&(d.insert=d.strstart)),ht>d.strm.avail_in&&(ht=d.strm.avail_in),ht&&(read_buf(d.strm,d.window,d.strstart,ht),d.strstart+=ht,d.insert+=ht>d.w_size-d.insert?d.w_size-d.insert:ht),d.high_water>3,ht=d.pending_buf_size-ht>65535?65535:d.pending_buf_size-ht,dt=ht>d.w_size?d.w_size:ht,lt=d.strstart-d.block_start,(lt>=dt||(lt||b===Z_FINISH$3)&&b!==Z_NO_FLUSH$2&&d.strm.avail_in===0&<<=ht)&&(ct=lt>ht?ht:lt,mt=b===Z_FINISH$3&&d.strm.avail_in===0&&ct===lt?1:0,_tr_stored_block(d,d.block_start,ct,mt),d.block_start+=ct,flush_pending(d.strm)),mt?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(d,b)=>{let dt,ct;for(;;){if(d.lookahead=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),dt!==0&&d.strstart-dt<=d.w_size-MIN_LOOKAHEAD&&(d.match_length=longest_match(d,dt)),d.match_length>=MIN_MATCH)if(ct=_tr_tally(d,d.strstart-d.match_start,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=MIN_MATCH){d.match_length--;do d.strstart++,d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart;while(--d.match_length!==0);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+1]);else ct=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(ct&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=d.strstart{let dt,ct,lt;for(;;){if(d.lookahead=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=MIN_MATCH-1,dt!==0&&d.prev_length4096)&&(d.match_length=MIN_MATCH-1)),d.prev_length>=MIN_MATCH&&d.match_length<=d.prev_length){lt=d.strstart+d.lookahead-MIN_MATCH,ct=_tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-MIN_MATCH),d.lookahead-=d.prev_length-1,d.prev_length-=2;do++d.strstart<=lt&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),dt=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);while(--d.prev_length!==0);if(d.match_available=0,d.match_length=MIN_MATCH-1,d.strstart++,ct&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}else if(d.match_available){if(ct=_tr_tally(d,0,d.window[d.strstart-1]),ct&&flush_block_only(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return BS_NEED_MORE}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(ct=_tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart{let dt,ct,lt,ht;const mt=d.window;for(;;){if(d.lookahead<=MAX_MATCH){if(fill_window(d),d.lookahead<=MAX_MATCH&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(d.match_length=0,d.lookahead>=MIN_MATCH&&d.strstart>0&&(lt=d.strstart-1,ct=mt[lt],ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt])){ht=d.strstart+MAX_MATCH;do;while(ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&&ct===mt[++lt]&<d.lookahead&&(d.match_length=d.lookahead)}if(d.match_length>=MIN_MATCH?(dt=_tr_tally(d,1,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.strstart+=d.match_length,d.match_length=0):(dt=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++),dt&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.sym_next&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(d,b)=>{let dt;for(;;){if(d.lookahead===0&&(fill_window(d),d.lookahead===0)){if(b===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(d.match_length=0,dt=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++,dt&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.sym_next&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(d,b,dt,ct,lt){this.good_length=d,this.max_lazy=b,this.nice_length=dt,this.max_chain=ct,this.func=lt}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=d=>{d.window_size=2*d.w_size,zero(d.head),d.max_lazy_match=configuration_table[d.level].max_lazy,d.good_match=configuration_table[d.level].good_length,d.nice_match=configuration_table[d.level].nice_length,d.max_chain_length=configuration_table[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=MIN_MATCH-1,d.match_available=0,d.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=d=>{if(!d)return 1;const b=d.state;return!b||b.strm!==d||b.status!==INIT_STATE&&b.status!==GZIP_STATE&&b.status!==EXTRA_STATE&&b.status!==NAME_STATE&&b.status!==COMMENT_STATE&&b.status!==HCRC_STATE&&b.status!==BUSY_STATE&&b.status!==FINISH_STATE?1:0},deflateResetKeep=d=>{if(deflateStateCheck(d))return err(d,Z_STREAM_ERROR$2);d.total_in=d.total_out=0,d.data_type=Z_UNKNOWN;const b=d.state;return b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap===2?GZIP_STATE:b.wrap?INIT_STATE:BUSY_STATE,d.adler=b.wrap===2?0:1,b.last_flush=-2,_tr_init(b),Z_OK$3},deflateReset=d=>{const b=deflateResetKeep(d);return b===Z_OK$3&&lm_init(d.state),b},deflateSetHeader=(d,b)=>deflateStateCheck(d)||d.state.wrap!==2?Z_STREAM_ERROR$2:(d.state.gzhead=b,Z_OK$3),deflateInit2=(d,b,dt,ct,lt,ht)=>{if(!d)return Z_STREAM_ERROR$2;let mt=1;if(b===Z_DEFAULT_COMPRESSION$1&&(b=6),ct<0?(mt=0,ct=-ct):ct>15&&(mt=2,ct-=16),lt<1||lt>MAX_MEM_LEVEL||dt!==Z_DEFLATED$2||ct<8||ct>15||b<0||b>9||ht<0||ht>Z_FIXED||ct===8&&mt!==1)return err(d,Z_STREAM_ERROR$2);ct===8&&(ct=9);const vt=new DeflateState;return d.state=vt,vt.strm=d,vt.status=INIT_STATE,vt.wrap=mt,vt.gzhead=null,vt.w_bits=ct,vt.w_size=1<deflateInit2(d,b,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(d,b)=>{if(deflateStateCheck(d)||b>Z_BLOCK$1||b<0)return d?err(d,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const dt=d.state;if(!d.output||d.avail_in!==0&&!d.input||dt.status===FINISH_STATE&&b!==Z_FINISH$3)return err(d,d.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const ct=dt.last_flush;if(dt.last_flush=b,dt.pending!==0){if(flush_pending(d),d.avail_out===0)return dt.last_flush=-1,Z_OK$3}else if(d.avail_in===0&&rank$1(b)<=rank$1(ct)&&b!==Z_FINISH$3)return err(d,Z_BUF_ERROR$1);if(dt.status===FINISH_STATE&&d.avail_in!==0)return err(d,Z_BUF_ERROR$1);if(dt.status===INIT_STATE&&dt.wrap===0&&(dt.status=BUSY_STATE),dt.status===INIT_STATE){let lt=Z_DEFLATED$2+(dt.w_bits-8<<4)<<8,ht=-1;if(dt.strategy>=Z_HUFFMAN_ONLY||dt.level<2?ht=0:dt.level<6?ht=1:dt.level===6?ht=2:ht=3,lt|=ht<<6,dt.strstart!==0&&(lt|=PRESET_DICT),lt+=31-lt%31,putShortMSB(dt,lt),dt.strstart!==0&&(putShortMSB(dt,d.adler>>>16),putShortMSB(dt,d.adler&65535)),d.adler=1,dt.status=BUSY_STATE,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3}if(dt.status===GZIP_STATE){if(d.adler=0,put_byte(dt,31),put_byte(dt,139),put_byte(dt,8),dt.gzhead)put_byte(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),put_byte(dt,dt.gzhead.time&255),put_byte(dt,dt.gzhead.time>>8&255),put_byte(dt,dt.gzhead.time>>16&255),put_byte(dt,dt.gzhead.time>>24&255),put_byte(dt,dt.level===9?2:dt.strategy>=Z_HUFFMAN_ONLY||dt.level<2?4:0),put_byte(dt,dt.gzhead.os&255),dt.gzhead.extra&&dt.gzhead.extra.length&&(put_byte(dt,dt.gzhead.extra.length&255),put_byte(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=EXTRA_STATE;else if(put_byte(dt,0),put_byte(dt,0),put_byte(dt,0),put_byte(dt,0),put_byte(dt,0),put_byte(dt,dt.level===9?2:dt.strategy>=Z_HUFFMAN_ONLY||dt.level<2?4:0),put_byte(dt,OS_CODE),dt.status=BUSY_STATE,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3}if(dt.status===EXTRA_STATE){if(dt.gzhead.extra){let lt=dt.pending,ht=(dt.gzhead.extra.length&65535)-dt.gzindex;for(;dt.pending+ht>dt.pending_buf_size;){let vt=dt.pending_buf_size-dt.pending;if(dt.pending_buf.set(dt.gzhead.extra.subarray(dt.gzindex,dt.gzindex+vt),dt.pending),dt.pending=dt.pending_buf_size,dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),dt.gzindex+=vt,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3;lt=0,ht-=vt}let mt=new Uint8Array(dt.gzhead.extra);dt.pending_buf.set(mt.subarray(dt.gzindex,dt.gzindex+ht),dt.pending),dt.pending+=ht,dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),dt.gzindex=0}dt.status=NAME_STATE}if(dt.status===NAME_STATE){if(dt.gzhead.name){let lt=dt.pending,ht;do{if(dt.pending===dt.pending_buf_size){if(dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3;lt=0}dt.gzindexlt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),dt.gzindex=0}dt.status=COMMENT_STATE}if(dt.status===COMMENT_STATE){if(dt.gzhead.comment){let lt=dt.pending,ht;do{if(dt.pending===dt.pending_buf_size){if(dt.gzhead.hcrc&&dt.pending>lt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt)),flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3;lt=0}dt.gzindexlt&&(d.adler=crc32$1(d.adler,dt.pending_buf,dt.pending-lt,lt))}dt.status=HCRC_STATE}if(dt.status===HCRC_STATE){if(dt.gzhead.hcrc){if(dt.pending+2>dt.pending_buf_size&&(flush_pending(d),dt.pending!==0))return dt.last_flush=-1,Z_OK$3;put_byte(dt,d.adler&255),put_byte(dt,d.adler>>8&255),d.adler=0}if(dt.status=BUSY_STATE,flush_pending(d),dt.pending!==0)return dt.last_flush=-1,Z_OK$3}if(d.avail_in!==0||dt.lookahead!==0||b!==Z_NO_FLUSH$2&&dt.status!==FINISH_STATE){let lt=dt.level===0?deflate_stored(dt,b):dt.strategy===Z_HUFFMAN_ONLY?deflate_huff(dt,b):dt.strategy===Z_RLE?deflate_rle(dt,b):configuration_table[dt.level].func(dt,b);if((lt===BS_FINISH_STARTED||lt===BS_FINISH_DONE)&&(dt.status=FINISH_STATE),lt===BS_NEED_MORE||lt===BS_FINISH_STARTED)return d.avail_out===0&&(dt.last_flush=-1),Z_OK$3;if(lt===BS_BLOCK_DONE&&(b===Z_PARTIAL_FLUSH?_tr_align(dt):b!==Z_BLOCK$1&&(_tr_stored_block(dt,0,0,!1),b===Z_FULL_FLUSH$1&&(zero(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),flush_pending(d),d.avail_out===0))return dt.last_flush=-1,Z_OK$3}return b!==Z_FINISH$3?Z_OK$3:dt.wrap<=0?Z_STREAM_END$3:(dt.wrap===2?(put_byte(dt,d.adler&255),put_byte(dt,d.adler>>8&255),put_byte(dt,d.adler>>16&255),put_byte(dt,d.adler>>24&255),put_byte(dt,d.total_in&255),put_byte(dt,d.total_in>>8&255),put_byte(dt,d.total_in>>16&255),put_byte(dt,d.total_in>>24&255)):(putShortMSB(dt,d.adler>>>16),putShortMSB(dt,d.adler&65535)),flush_pending(d),dt.wrap>0&&(dt.wrap=-dt.wrap),dt.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=d=>{if(deflateStateCheck(d))return Z_STREAM_ERROR$2;const b=d.state.status;return d.state=null,b===BUSY_STATE?err(d,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(d,b)=>{let dt=b.length;if(deflateStateCheck(d))return Z_STREAM_ERROR$2;const ct=d.state,lt=ct.wrap;if(lt===2||lt===1&&ct.status!==INIT_STATE||ct.lookahead)return Z_STREAM_ERROR$2;if(lt===1&&(d.adler=adler32$1(d.adler,b,dt,0)),ct.wrap=0,dt>=ct.w_size){lt===0&&(zero(ct.head),ct.strstart=0,ct.block_start=0,ct.insert=0);let kt=new Uint8Array(ct.w_size);kt.set(b.subarray(dt-ct.w_size,dt),0),b=kt,dt=ct.w_size}const ht=d.avail_in,mt=d.next_in,vt=d.input;for(d.avail_in=dt,d.next_in=0,d.input=b,fill_window(ct);ct.lookahead>=MIN_MATCH;){let kt=ct.strstart,Pt=ct.lookahead-(MIN_MATCH-1);do ct.ins_h=HASH(ct,ct.ins_h,ct.window[kt+MIN_MATCH-1]),ct.prev[kt&ct.w_mask]=ct.head[ct.ins_h],ct.head[ct.ins_h]=kt,kt++;while(--Pt);ct.strstart=kt,ct.lookahead=MIN_MATCH-1,fill_window(ct)}return ct.strstart+=ct.lookahead,ct.block_start=ct.strstart,ct.insert=ct.lookahead,ct.lookahead=0,ct.match_length=ct.prev_length=MIN_MATCH-1,ct.match_available=0,d.next_in=mt,d.input=vt,d.avail_in=ht,ct.wrap=lt,Z_OK$3};deflate$3.deflateInit=deflateInit;deflate$3.deflateInit2=deflateInit2;deflate$3.deflateReset=deflateReset;deflate$3.deflateResetKeep=deflateResetKeep;deflate$3.deflateSetHeader=deflateSetHeader;deflate$3.deflate=deflate$2;deflate$3.deflateEnd=deflateEnd;deflate$3.deflateSetDictionary=deflateSetDictionary;deflate$3.deflateInfo="pako deflate (from Nodeca project)";var common={};const _has=(d,b)=>Object.prototype.hasOwnProperty.call(d,b);common.assign=function(d){const b=Array.prototype.slice.call(arguments,1);for(;b.length;){const dt=b.shift();if(dt){if(typeof dt!="object")throw new TypeError(dt+"must be non-object");for(const ct in dt)_has(dt,ct)&&(d[ct]=dt[ct])}}return d};common.flattenChunks=d=>{let b=0;for(let ct=0,lt=d.length;ct=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;_utf8len[254]=_utf8len[254]=1;strings$3.string2buf=d=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(d);let b,dt,ct,lt,ht,mt=d.length,vt=0;for(lt=0;lt>>6,b[ht++]=128|dt&63):dt<65536?(b[ht++]=224|dt>>>12,b[ht++]=128|dt>>>6&63,b[ht++]=128|dt&63):(b[ht++]=240|dt>>>18,b[ht++]=128|dt>>>12&63,b[ht++]=128|dt>>>6&63,b[ht++]=128|dt&63);return b};const buf2binstring=(d,b)=>{if(b<65534&&d.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,d.length===b?d:d.subarray(0,b));let dt="";for(let ct=0;ct{const dt=b||d.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(d.subarray(0,b));let ct,lt;const ht=new Array(dt*2);for(lt=0,ct=0;ct4){ht[lt++]=65533,ct+=vt-1;continue}for(mt&=vt===2?31:vt===3?15:7;vt>1&&ct1){ht[lt++]=65533;continue}mt<65536?ht[lt++]=mt:(mt-=65536,ht[lt++]=55296|mt>>10&1023,ht[lt++]=56320|mt&1023)}return buf2binstring(ht,lt)};strings$3.utf8border=(d,b)=>{b=b||d.length,b>d.length&&(b=d.length);let dt=b-1;for(;dt>=0&&(d[dt]&192)===128;)dt--;return dt<0||dt===0?b:dt+_utf8len[d[dt]]>b?dt:b};function ZStream$2(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream$2;const zlib_deflate=deflate$3,utils$3=common,strings$2=strings$3,msg$1=messages,ZStream$1=zstream,toString$2=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$1;function Deflate$1(d){this.options=utils$3.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},d||{});let b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream$1,this.strm.avail_out=0;let dt=zlib_deflate.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(dt!==Z_OK$2)throw new Error(msg$1[dt]);if(b.header&&zlib_deflate.deflateSetHeader(this.strm,b.header),b.dictionary){let ct;if(typeof b.dictionary=="string"?ct=strings$2.string2buf(b.dictionary):toString$2.call(b.dictionary)==="[object ArrayBuffer]"?ct=new Uint8Array(b.dictionary):ct=b.dictionary,dt=zlib_deflate.deflateSetDictionary(this.strm,ct),dt!==Z_OK$2)throw new Error(msg$1[dt]);this._dict_set=!0}}Deflate$1.prototype.push=function(d,b){const dt=this.strm,ct=this.options.chunkSize;let lt,ht;if(this.ended)return!1;for(b===~~b?ht=b:ht=b===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof d=="string"?dt.input=strings$2.string2buf(d):toString$2.call(d)==="[object ArrayBuffer]"?dt.input=new Uint8Array(d):dt.input=d,dt.next_in=0,dt.avail_in=dt.input.length;;){if(dt.avail_out===0&&(dt.output=new Uint8Array(ct),dt.next_out=0,dt.avail_out=ct),(ht===Z_SYNC_FLUSH||ht===Z_FULL_FLUSH)&&dt.avail_out<=6){this.onData(dt.output.subarray(0,dt.next_out)),dt.avail_out=0;continue}if(lt=zlib_deflate.deflate(dt,ht),lt===Z_STREAM_END$2)return dt.next_out>0&&this.onData(dt.output.subarray(0,dt.next_out)),lt=zlib_deflate.deflateEnd(this.strm),this.onEnd(lt),this.ended=!0,lt===Z_OK$2;if(dt.avail_out===0){this.onData(dt.output);continue}if(ht>0&&dt.next_out>0){this.onData(dt.output.subarray(0,dt.next_out)),dt.avail_out=0;continue}if(dt.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(d){this.chunks.push(d)};Deflate$1.prototype.onEnd=function(d){d===Z_OK$2&&(this.result=utils$3.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function deflate$1(d,b){const dt=new Deflate$1(b);if(dt.push(d,!0),dt.err)throw dt.msg||msg$1[dt.err];return dt.result}function deflateRaw$1(d,b){return b=b||{},b.raw=!0,deflate$1(d,b)}function gzip$1(d,b){return b=b||{},b.gzip=!0,deflate$1(d,b)}deflate$4.Deflate=Deflate$1;deflate$4.deflate=deflate$1;deflate$4.deflateRaw=deflateRaw$1;deflate$4.gzip=gzip$1;deflate$4.constants=constants$1;var inflate$4={},inflate$3={};const BAD$1=16209,TYPE$1=16191;var inffast=function d(b,dt){let ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt,xt,Et,Bt,Tt,Mt,jt,Ht,an,yt,$t;const Yt=b.state;ct=b.next_in,yt=b.input,lt=ct+(b.avail_in-5),ht=b.next_out,$t=b.output,mt=ht-(dt-b.avail_out),vt=ht+(b.avail_out-257),kt=Yt.dmax,Pt=Yt.wsize,Jt=Yt.whave,Zt=Yt.wnext,Rt=Yt.window,nn=Yt.hold,Qt=Yt.bits,wt=Yt.lencode,Nt=Yt.distcode,xt=(1<>>24,nn>>>=Tt,Qt-=Tt,Tt=Bt>>>16&255,Tt===0)$t[ht++]=Bt&65535;else if(Tt&16){Mt=Bt&65535,Tt&=15,Tt&&(Qt>>=Tt,Qt-=Tt),Qt<15&&(nn+=yt[ct++]<>>24,nn>>>=Tt,Qt-=Tt,Tt=Bt>>>16&255,Tt&16){if(jt=Bt&65535,Tt&=15,Qtkt){b.msg="invalid distance too far back",Yt.mode=BAD$1;break e}if(nn>>>=Tt,Qt-=Tt,Tt=ht-mt,jt>Tt){if(Tt=jt-Tt,Tt>Jt&&Yt.sane){b.msg="invalid distance too far back",Yt.mode=BAD$1;break e}if(Ht=0,an=Rt,Zt===0){if(Ht+=Pt-Tt,Tt2;)$t[ht++]=an[Ht++],$t[ht++]=an[Ht++],$t[ht++]=an[Ht++],Mt-=3;Mt&&($t[ht++]=an[Ht++],Mt>1&&($t[ht++]=an[Ht++]))}else{Ht=ht-jt;do $t[ht++]=$t[Ht++],$t[ht++]=$t[Ht++],$t[ht++]=$t[Ht++],Mt-=3;while(Mt>2);Mt&&($t[ht++]=$t[Ht++],Mt>1&&($t[ht++]=$t[Ht++]))}}else if(Tt&64){b.msg="invalid distance code",Yt.mode=BAD$1;break e}else{Bt=Nt[(Bt&65535)+(nn&(1<>3,ct-=Mt,Qt-=Mt<<3,nn&=(1<{const kt=vt.bits;let Pt=0,Jt=0,Zt=0,Rt=0,nn=0,Qt=0,wt=0,Nt=0,xt=0,Et=0,Bt,Tt,Mt,jt,Ht,an=null,yt;const $t=new Uint16Array(MAXBITS+1),Yt=new Uint16Array(MAXBITS+1);let Kt=null,St,It,Gt;for(Pt=0;Pt<=MAXBITS;Pt++)$t[Pt]=0;for(Jt=0;Jt=1&&$t[Rt]===0;Rt--);if(nn>Rt&&(nn=Rt),Rt===0)return lt[ht++]=1<<24|64<<16|0,lt[ht++]=1<<24|64<<16|0,vt.bits=1,0;for(Zt=1;Zt0&&(d===CODES$1||Rt!==1))return-1;for(Yt[1]=0,Pt=1;PtENOUGH_LENS$1||d===DISTS$1&&xt>ENOUGH_DISTS$1)return 1;for(;;){St=Pt-wt,mt[Jt]+1=yt?(It=Kt[mt[Jt]-yt],Gt=an[mt[Jt]-yt]):(It=32+64,Gt=0),Bt=1<>wt)+Tt]=St<<24|It<<16|Gt|0;while(Tt!==0);for(Bt=1<>=1;if(Bt!==0?(Et&=Bt-1,Et+=Bt):Et=0,Jt++,--$t[Pt]===0){if(Pt===Rt)break;Pt=b[dt+mt[Jt]]}if(Pt>nn&&(Et&jt)!==Mt){for(wt===0&&(wt=nn),Ht+=Zt,Qt=Pt-wt,Nt=1<ENOUGH_LENS$1||d===DISTS$1&&xt>ENOUGH_DISTS$1)return 1;Mt=Et&jt,lt[Mt]=nn<<24|Qt<<16|Ht-ht|0}}return Et!==0&&(lt[Ht+Et]=Pt-wt<<24|64<<16|0),vt.bits=nn,0};var inftrees=inflate_table$1;const adler32=adler32_1,crc32=crc32_1,inflate_fast=inffast,inflate_table=inftrees,CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$1,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE$1=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=d=>(d>>>24&255)+(d>>>8&65280)+((d&65280)<<8)+((d&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=d=>{if(!d)return 1;const b=d.state;return!b||b.strm!==d||b.modeSYNC?1:0},inflateResetKeep=d=>{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const b=d.state;return d.total_in=d.total_out=b.total=0,d.msg="",b.wrap&&(d.adler=b.wrap&1),b.mode=HEAD,b.last=0,b.havedict=0,b.flags=-1,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new Int32Array(ENOUGH_LENS),b.distcode=b.distdyn=new Int32Array(ENOUGH_DISTS),b.sane=1,b.back=-1,Z_OK$1},inflateReset=d=>{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const b=d.state;return b.wsize=0,b.whave=0,b.wnext=0,inflateResetKeep(d)},inflateReset2=(d,b)=>{let dt;if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const ct=d.state;return b<0?(dt=0,b=-b):(dt=(b>>4)+5,b<48&&(b&=15)),b&&(b<8||b>15)?Z_STREAM_ERROR$1:(ct.window!==null&&ct.wbits!==b&&(ct.window=null),ct.wrap=dt,ct.wbits=b,inflateReset(d))},inflateInit2=(d,b)=>{if(!d)return Z_STREAM_ERROR$1;const dt=new InflateState;d.state=dt,dt.strm=d,dt.window=null,dt.mode=HEAD;const ct=inflateReset2(d,b);return ct!==Z_OK$1&&(d.state=null),ct},inflateInit=d=>inflateInit2(d,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=d=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let b=0;for(;b<144;)d.lens[b++]=8;for(;b<256;)d.lens[b++]=9;for(;b<280;)d.lens[b++]=7;for(;b<288;)d.lens[b++]=8;for(inflate_table(LENS,d.lens,0,288,lenfix,0,d.work,{bits:9}),b=0;b<32;)d.lens[b++]=5;inflate_table(DISTS,d.lens,0,32,distfix,0,d.work,{bits:5}),virgin=!1}d.lencode=lenfix,d.lenbits=9,d.distcode=distfix,d.distbits=5},updatewindow=(d,b,dt,ct)=>{let lt;const ht=d.state;return ht.window===null&&(ht.wsize=1<=ht.wsize?(ht.window.set(b.subarray(dt-ht.wsize,dt),0),ht.wnext=0,ht.whave=ht.wsize):(lt=ht.wsize-ht.wnext,lt>ct&&(lt=ct),ht.window.set(b.subarray(dt-ct,dt-ct+lt),ht.wnext),ct-=lt,ct?(ht.window.set(b.subarray(dt-ct,dt),0),ht.wnext=ct,ht.whave=ht.wsize):(ht.wnext+=lt,ht.wnext===ht.wsize&&(ht.wnext=0),ht.whave{let dt,ct,lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt=0,xt,Et,Bt,Tt,Mt,jt,Ht,an;const yt=new Uint8Array(4);let $t,Yt;const Kt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(d)||!d.output||!d.input&&d.avail_in!==0)return Z_STREAM_ERROR$1;dt=d.state,dt.mode===TYPE&&(dt.mode=TYPEDO),mt=d.next_out,lt=d.output,kt=d.avail_out,ht=d.next_in,ct=d.input,vt=d.avail_in,Pt=dt.hold,Jt=dt.bits,Zt=vt,Rt=kt,an=Z_OK$1;e:for(;;)switch(dt.mode){case HEAD:if(dt.wrap===0){dt.mode=TYPEDO;break}for(;Jt<16;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>8&255,dt.check=crc32(dt.check,yt,2,0),Pt=0,Jt=0,dt.mode=FLAGS;break}if(dt.head&&(dt.head.done=!1),!(dt.wrap&1)||(((Pt&255)<<8)+(Pt>>8))%31){d.msg="incorrect header check",dt.mode=BAD;break}if((Pt&15)!==Z_DEFLATED){d.msg="unknown compression method",dt.mode=BAD;break}if(Pt>>>=4,Jt-=4,Ht=(Pt&15)+8,dt.wbits===0&&(dt.wbits=Ht),Ht>15||Ht>dt.wbits){d.msg="invalid window size",dt.mode=BAD;break}dt.dmax=1<>8&1),dt.flags&512&&dt.wrap&4&&(yt[0]=Pt&255,yt[1]=Pt>>>8&255,dt.check=crc32(dt.check,yt,2,0)),Pt=0,Jt=0,dt.mode=TIME;case TIME:for(;Jt<32;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>8&255,yt[2]=Pt>>>16&255,yt[3]=Pt>>>24&255,dt.check=crc32(dt.check,yt,4,0)),Pt=0,Jt=0,dt.mode=OS;case OS:for(;Jt<16;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>8),dt.flags&512&&dt.wrap&4&&(yt[0]=Pt&255,yt[1]=Pt>>>8&255,dt.check=crc32(dt.check,yt,2,0)),Pt=0,Jt=0,dt.mode=EXLEN;case EXLEN:if(dt.flags&1024){for(;Jt<16;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>8&255,dt.check=crc32(dt.check,yt,2,0)),Pt=0,Jt=0}else dt.head&&(dt.head.extra=null);dt.mode=EXTRA;case EXTRA:if(dt.flags&1024&&(nn=dt.length,nn>vt&&(nn=vt),nn&&(dt.head&&(Ht=dt.head.extra_len-dt.length,dt.head.extra||(dt.head.extra=new Uint8Array(dt.head.extra_len)),dt.head.extra.set(ct.subarray(ht,ht+nn),Ht)),dt.flags&512&&dt.wrap&4&&(dt.check=crc32(dt.check,ct,nn,ht)),vt-=nn,ht+=nn,dt.length-=nn),dt.length))break e;dt.length=0,dt.mode=NAME;case NAME:if(dt.flags&2048){if(vt===0)break e;nn=0;do Ht=ct[ht+nn++],dt.head&&Ht&&dt.length<65536&&(dt.head.name+=String.fromCharCode(Ht));while(Ht&&nn>9&1,dt.head.done=!0),d.adler=dt.check=0,dt.mode=TYPE;break;case DICTID:for(;Jt<32;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=Jt&7,Jt-=Jt&7,dt.mode=CHECK;break}for(;Jt<3;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=1,Jt-=1,Pt&3){case 0:dt.mode=STORED;break;case 1:if(fixedtables(dt),dt.mode=LEN_,b===Z_TREES){Pt>>>=2,Jt-=2;break e}break;case 2:dt.mode=TABLE$1;break;case 3:d.msg="invalid block type",dt.mode=BAD}Pt>>>=2,Jt-=2;break;case STORED:for(Pt>>>=Jt&7,Jt-=Jt&7;Jt<32;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>16^65535)){d.msg="invalid stored block lengths",dt.mode=BAD;break}if(dt.length=Pt&65535,Pt=0,Jt=0,dt.mode=COPY_,b===Z_TREES)break e;case COPY_:dt.mode=COPY;case COPY:if(nn=dt.length,nn){if(nn>vt&&(nn=vt),nn>kt&&(nn=kt),nn===0)break e;lt.set(ct.subarray(ht,ht+nn),mt),vt-=nn,ht+=nn,kt-=nn,mt+=nn,dt.length-=nn;break}dt.mode=TYPE;break;case TABLE$1:for(;Jt<14;){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=5,Jt-=5,dt.ndist=(Pt&31)+1,Pt>>>=5,Jt-=5,dt.ncode=(Pt&15)+4,Pt>>>=4,Jt-=4,dt.nlen>286||dt.ndist>30){d.msg="too many length or distance symbols",dt.mode=BAD;break}dt.have=0,dt.mode=LENLENS;case LENLENS:for(;dt.have>>=3,Jt-=3}for(;dt.have<19;)dt.lens[Kt[dt.have++]]=0;if(dt.lencode=dt.lendyn,dt.lenbits=7,$t={bits:dt.lenbits},an=inflate_table(CODES,dt.lens,0,19,dt.lencode,0,dt.work,$t),dt.lenbits=$t.bits,an){d.msg="invalid code lengths set",dt.mode=BAD;break}dt.have=0,dt.mode=CODELENS;case CODELENS:for(;dt.have>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=xt,Jt-=xt,dt.lens[dt.have++]=Bt;else{if(Bt===16){for(Yt=xt+2;Jt>>=xt,Jt-=xt,dt.have===0){d.msg="invalid bit length repeat",dt.mode=BAD;break}Ht=dt.lens[dt.have-1],nn=3+(Pt&3),Pt>>>=2,Jt-=2}else if(Bt===17){for(Yt=xt+3;Jt>>=xt,Jt-=xt,Ht=0,nn=3+(Pt&7),Pt>>>=3,Jt-=3}else{for(Yt=xt+7;Jt>>=xt,Jt-=xt,Ht=0,nn=11+(Pt&127),Pt>>>=7,Jt-=7}if(dt.have+nn>dt.nlen+dt.ndist){d.msg="invalid bit length repeat",dt.mode=BAD;break}for(;nn--;)dt.lens[dt.have++]=Ht}}if(dt.mode===BAD)break;if(dt.lens[256]===0){d.msg="invalid code -- missing end-of-block",dt.mode=BAD;break}if(dt.lenbits=9,$t={bits:dt.lenbits},an=inflate_table(LENS,dt.lens,0,dt.nlen,dt.lencode,0,dt.work,$t),dt.lenbits=$t.bits,an){d.msg="invalid literal/lengths set",dt.mode=BAD;break}if(dt.distbits=6,dt.distcode=dt.distdyn,$t={bits:dt.distbits},an=inflate_table(DISTS,dt.lens,dt.nlen,dt.ndist,dt.distcode,0,dt.work,$t),dt.distbits=$t.bits,an){d.msg="invalid distances set",dt.mode=BAD;break}if(dt.mode=LEN_,b===Z_TREES)break e;case LEN_:dt.mode=LEN;case LEN:if(vt>=6&&kt>=258){d.next_out=mt,d.avail_out=kt,d.next_in=ht,d.avail_in=vt,dt.hold=Pt,dt.bits=Jt,inflate_fast(d,Rt),mt=d.next_out,lt=d.output,kt=d.avail_out,ht=d.next_in,ct=d.input,vt=d.avail_in,Pt=dt.hold,Jt=dt.bits,dt.mode===TYPE&&(dt.back=-1);break}for(dt.back=0;Nt=dt.lencode[Pt&(1<>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>Tt)],xt=Nt>>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(Tt+xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=Tt,Jt-=Tt,dt.back+=Tt}if(Pt>>>=xt,Jt-=xt,dt.back+=xt,dt.length=Bt,Et===0){dt.mode=LIT;break}if(Et&32){dt.back=-1,dt.mode=TYPE;break}if(Et&64){d.msg="invalid literal/length code",dt.mode=BAD;break}dt.extra=Et&15,dt.mode=LENEXT;case LENEXT:if(dt.extra){for(Yt=dt.extra;Jt>>=dt.extra,Jt-=dt.extra,dt.back+=dt.extra}dt.was=dt.length,dt.mode=DIST;case DIST:for(;Nt=dt.distcode[Pt&(1<>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>Tt)],xt=Nt>>>24,Et=Nt>>>16&255,Bt=Nt&65535,!(Tt+xt<=Jt);){if(vt===0)break e;vt--,Pt+=ct[ht++]<>>=Tt,Jt-=Tt,dt.back+=Tt}if(Pt>>>=xt,Jt-=xt,dt.back+=xt,Et&64){d.msg="invalid distance code",dt.mode=BAD;break}dt.offset=Bt,dt.extra=Et&15,dt.mode=DISTEXT;case DISTEXT:if(dt.extra){for(Yt=dt.extra;Jt>>=dt.extra,Jt-=dt.extra,dt.back+=dt.extra}if(dt.offset>dt.dmax){d.msg="invalid distance too far back",dt.mode=BAD;break}dt.mode=MATCH;case MATCH:if(kt===0)break e;if(nn=Rt-kt,dt.offset>nn){if(nn=dt.offset-nn,nn>dt.whave&&dt.sane){d.msg="invalid distance too far back",dt.mode=BAD;break}nn>dt.wnext?(nn-=dt.wnext,Qt=dt.wsize-nn):Qt=dt.wnext-nn,nn>dt.length&&(nn=dt.length),wt=dt.window}else wt=lt,Qt=mt-dt.offset,nn=dt.length;nn>kt&&(nn=kt),kt-=nn,dt.length-=nn;do lt[mt++]=wt[Qt++];while(--nn);dt.length===0&&(dt.mode=LEN);break;case LIT:if(kt===0)break e;lt[mt++]=dt.length,kt--,dt.mode=LEN;break;case CHECK:if(dt.wrap){for(;Jt<32;){if(vt===0)break e;vt--,Pt|=ct[ht++]<{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;let b=d.state;return b.window&&(b.window=null),d.state=null,Z_OK$1},inflateGetHeader=(d,b)=>{if(inflateStateCheck(d))return Z_STREAM_ERROR$1;const dt=d.state;return dt.wrap&2?(dt.head=b,b.done=!1,Z_OK$1):Z_STREAM_ERROR$1},inflateSetDictionary=(d,b)=>{const dt=b.length;let ct,lt,ht;return inflateStateCheck(d)||(ct=d.state,ct.wrap!==0&&ct.mode!==DICT)?Z_STREAM_ERROR$1:ct.mode===DICT&&(lt=1,lt=adler32(lt,b,dt,0),lt!==ct.check)?Z_DATA_ERROR$1:(ht=updatewindow(d,b,dt,dt),ht?(ct.mode=MEM,Z_MEM_ERROR$1):(ct.havedict=1,Z_OK$1))};inflate$3.inflateReset=inflateReset;inflate$3.inflateReset2=inflateReset2;inflate$3.inflateResetKeep=inflateResetKeep;inflate$3.inflateInit=inflateInit;inflate$3.inflateInit2=inflateInit2;inflate$3.inflate=inflate$2;inflate$3.inflateEnd=inflateEnd;inflate$3.inflateGetHeader=inflateGetHeader;inflate$3.inflateSetDictionary=inflateSetDictionary;inflate$3.inflateInfo="pako inflate (from Nodeca project)";function GZheader$1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader$1;const zlib_inflate=inflate$3,utils$2=common,strings$1=strings$3,msg=messages,ZStream=zstream,GZheader=gzheader,toString$1=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$1;function Inflate$1(d){this.options=utils$2.assign({chunkSize:1024*64,windowBits:15,to:""},d||{});const b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(d&&d.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(b.windowBits&15||(b.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;let dt=zlib_inflate.inflateInit2(this.strm,b.windowBits);if(dt!==Z_OK)throw new Error(msg[dt]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),b.dictionary&&(typeof b.dictionary=="string"?b.dictionary=strings$1.string2buf(b.dictionary):toString$1.call(b.dictionary)==="[object ArrayBuffer]"&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw&&(dt=zlib_inflate.inflateSetDictionary(this.strm,b.dictionary),dt!==Z_OK)))throw new Error(msg[dt])}Inflate$1.prototype.push=function(d,b){const dt=this.strm,ct=this.options.chunkSize,lt=this.options.dictionary;let ht,mt,vt;if(this.ended)return!1;for(b===~~b?mt=b:mt=b===!0?Z_FINISH:Z_NO_FLUSH,toString$1.call(d)==="[object ArrayBuffer]"?dt.input=new Uint8Array(d):dt.input=d,dt.next_in=0,dt.avail_in=dt.input.length;;){for(dt.avail_out===0&&(dt.output=new Uint8Array(ct),dt.next_out=0,dt.avail_out=ct),ht=zlib_inflate.inflate(dt,mt),ht===Z_NEED_DICT&<&&(ht=zlib_inflate.inflateSetDictionary(dt,lt),ht===Z_OK?ht=zlib_inflate.inflate(dt,mt):ht===Z_DATA_ERROR&&(ht=Z_NEED_DICT));dt.avail_in>0&&ht===Z_STREAM_END&&dt.state.wrap>0&&d[dt.next_in]!==0;)zlib_inflate.inflateReset(dt),ht=zlib_inflate.inflate(dt,mt);switch(ht){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(ht),this.ended=!0,!1}if(vt=dt.avail_out,dt.next_out&&(dt.avail_out===0||ht===Z_STREAM_END))if(this.options.to==="string"){let kt=strings$1.utf8border(dt.output,dt.next_out),Pt=dt.next_out-kt,Jt=strings$1.buf2string(dt.output,kt);dt.next_out=Pt,dt.avail_out=ct-Pt,Pt&&dt.output.set(dt.output.subarray(kt,kt+Pt),0),this.onData(Jt)}else this.onData(dt.output.length===dt.next_out?dt.output:dt.output.subarray(0,dt.next_out));if(!(ht===Z_OK&&vt===0)){if(ht===Z_STREAM_END)return ht=zlib_inflate.inflateEnd(this.strm),this.onEnd(ht),this.ended=!0,!0;if(dt.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(d){this.chunks.push(d)};Inflate$1.prototype.onEnd=function(d){d===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=utils$2.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function inflate$1(d,b){const dt=new Inflate$1(b);if(dt.push(d),dt.err)throw dt.msg||msg[dt.err];return dt.result}function inflateRaw$1(d,b){return b=b||{},b.raw=!0,inflate$1(d,b)}inflate$4.Inflate=Inflate$1;inflate$4.inflate=inflate$1;inflate$4.inflateRaw=inflateRaw$1;inflate$4.ungzip=inflate$1;inflate$4.constants=constants$1;const{Deflate,deflate,deflateRaw,gzip}=deflate$4,{Inflate,inflate,inflateRaw,ungzip}=inflate$4,constants=constants$1;pako.Deflate=Deflate;pako.deflate=deflate;pako.deflateRaw=deflateRaw;pako.gzip=gzip;pako.Inflate=Inflate;pako.inflate=inflate;pako.inflateRaw=inflateRaw;pako.ungzip=ungzip;pako.constants=constants;var __importDefault$k=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(signingcosmwasmclient,"__esModule",{value:!0});signingcosmwasmclient.SigningCosmWasmClient=void 0;const amino_1=build$c,crypto_1$5=build$b,encoding_1$2=build$g,math_1$2=build$f,proto_signing_1=build$d,stargate_1$7=build$e,tendermint_rpc_1$1=build$3,utils_1$2=build$9,tx_1$1=tx$o,tx_2$1=tx$f,signing_1=signing$2,tx_3$1=tx$r,tx_4$1=tx$d,long_1$9=__importDefault$k(long),pako_1=__importDefault$k(pako),cosmwasmclient_1=cosmwasmclient,modules_1=modules;function createDeliverTxResponseErrorMessage(d){return`Error when broadcasting tx ${d.transactionHash} at height ${d.height}. Code: ${d.code}; Raw log: ${d.rawLog}`}class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient{static async connectWithSigner(b,dt,ct={}){let lt;const ht=await tendermint_rpc_1$1.Tendermint37Client.connect(b);return(await ht.status()).nodeInfo.version.startsWith("0.37.")?lt=ht:(ht.disconnect(),lt=await tendermint_rpc_1$1.Tendermint34Client.connect(b)),SigningCosmWasmClient.createWithSigner(lt,dt,ct)}static async createWithSigner(b,dt,ct={}){return new SigningCosmWasmClient(b,dt,ct)}static async offline(b,dt={}){return new SigningCosmWasmClient(void 0,b,dt)}constructor(b,dt,ct){super(b);const{registry:lt=new proto_signing_1.Registry([...stargate_1$7.defaultRegistryTypes,...modules_1.wasmTypes]),aminoTypes:ht=new stargate_1$7.AminoTypes({...(0,stargate_1$7.createDefaultAminoConverters)(),...(0,modules_1.createWasmAminoConverters)()})}=ct;this.registry=lt,this.aminoTypes=ht,this.signer=dt,this.broadcastTimeoutMs=ct.broadcastTimeoutMs,this.broadcastPollIntervalMs=ct.broadcastPollIntervalMs,this.gasPrice=ct.gasPrice}async simulate(b,dt,ct){const lt=dt.map(Pt=>this.registry.encodeAsAny(Pt)),ht=(await this.signer.getAccounts()).find(Pt=>Pt.address===b);if(!ht)throw new Error("Failed to retrieve account from signer");const mt=(0,amino_1.encodeSecp256k1Pubkey)(ht.pubkey),{sequence:vt}=await this.getSequence(b),{gasInfo:kt}=await this.forceGetQueryClient().tx.simulate(lt,ct,mt,vt);return(0,utils_1$2.assertDefined)(kt),math_1$2.Uint53.fromString(kt.gasUsed.toString()).toNumber()}async upload(b,dt,ct,lt="",ht){const mt=pako_1.default.gzip(dt,{level:9}),vt={typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:tx_4$1.MsgStoreCode.fromPartial({sender:b,wasmByteCode:mt,instantiatePermission:ht})},kt=ct=="auto"?1.1:ct,Pt=await this.signAndBroadcast(b,[vt],kt,lt);if((0,stargate_1$7.isDeliverTxFailure)(Pt))throw new Error(createDeliverTxResponseErrorMessage(Pt));const Jt=stargate_1$7.logs.parseRawLog(Pt.rawLog),Zt=stargate_1$7.logs.findAttribute(Jt,"store_code","code_id");return{checksum:(0,encoding_1$2.toHex)((0,crypto_1$5.sha256)(dt)),originalSize:dt.length,compressedSize:mt.length,codeId:Number.parseInt(Zt.value,10),logs:Jt,height:Pt.height,transactionHash:Pt.transactionHash,events:Pt.events,gasWanted:Pt.gasWanted,gasUsed:Pt.gasUsed}}async instantiate(b,dt,ct,lt,ht,mt={}){const vt={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:tx_4$1.MsgInstantiateContract.fromPartial({sender:b,codeId:long_1$9.default.fromString(new math_1$2.Uint53(dt).toString()),label:lt,msg:(0,encoding_1$2.toUtf8)(JSON.stringify(ct)),funds:[...mt.funds||[]],admin:mt.admin})},kt=await this.signAndBroadcast(b,[vt],ht,mt.memo);if((0,stargate_1$7.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));const Pt=stargate_1$7.logs.parseRawLog(kt.rawLog);return{contractAddress:stargate_1$7.logs.findAttribute(Pt,"instantiate","_contract_address").value,logs:Pt,height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async instantiate2(b,dt,ct,lt,ht,mt,vt={}){const kt={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract2",value:tx_4$1.MsgInstantiateContract2.fromPartial({sender:b,codeId:long_1$9.default.fromString(new math_1$2.Uint53(dt).toString()),label:ht,msg:(0,encoding_1$2.toUtf8)(JSON.stringify(lt)),funds:[...vt.funds||[]],admin:vt.admin,salt:ct,fixMsg:!1})},Pt=await this.signAndBroadcast(b,[kt],mt,vt.memo);if((0,stargate_1$7.isDeliverTxFailure)(Pt))throw new Error(createDeliverTxResponseErrorMessage(Pt));const Jt=stargate_1$7.logs.parseRawLog(Pt.rawLog);return{contractAddress:stargate_1$7.logs.findAttribute(Jt,"instantiate","_contract_address").value,logs:Jt,height:Pt.height,transactionHash:Pt.transactionHash,events:Pt.events,gasWanted:Pt.gasWanted,gasUsed:Pt.gasUsed}}async updateAdmin(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:tx_4$1.MsgUpdateAdmin.fromPartial({sender:b,contract:dt,newAdmin:ct})},vt=await this.signAndBroadcast(b,[mt],lt,ht);if((0,stargate_1$7.isDeliverTxFailure)(vt))throw new Error(createDeliverTxResponseErrorMessage(vt));return{logs:stargate_1$7.logs.parseRawLog(vt.rawLog),height:vt.height,transactionHash:vt.transactionHash,events:vt.events,gasWanted:vt.gasWanted,gasUsed:vt.gasUsed}}async clearAdmin(b,dt,ct,lt=""){const ht={typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:tx_4$1.MsgClearAdmin.fromPartial({sender:b,contract:dt})},mt=await this.signAndBroadcast(b,[ht],ct,lt);if((0,stargate_1$7.isDeliverTxFailure)(mt))throw new Error(createDeliverTxResponseErrorMessage(mt));return{logs:stargate_1$7.logs.parseRawLog(mt.rawLog),height:mt.height,transactionHash:mt.transactionHash,events:mt.events,gasWanted:mt.gasWanted,gasUsed:mt.gasUsed}}async migrate(b,dt,ct,lt,ht,mt=""){const vt={typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:tx_4$1.MsgMigrateContract.fromPartial({sender:b,contract:dt,codeId:long_1$9.default.fromString(new math_1$2.Uint53(ct).toString()),msg:(0,encoding_1$2.toUtf8)(JSON.stringify(lt))})},kt=await this.signAndBroadcast(b,[vt],ht,mt);if((0,stargate_1$7.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));return{logs:stargate_1$7.logs.parseRawLog(kt.rawLog),height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async execute(b,dt,ct,lt,ht="",mt){const vt={contractAddress:dt,msg:ct,funds:mt};return this.executeMultiple(b,[vt],lt,ht)}async executeMultiple(b,dt,ct,lt=""){const ht=dt.map(vt=>({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:tx_4$1.MsgExecuteContract.fromPartial({sender:b,contract:vt.contractAddress,msg:(0,encoding_1$2.toUtf8)(JSON.stringify(vt.msg)),funds:[...vt.funds||[]]})})),mt=await this.signAndBroadcast(b,ht,ct,lt);if((0,stargate_1$7.isDeliverTxFailure)(mt))throw new Error(createDeliverTxResponseErrorMessage(mt));return{logs:stargate_1$7.logs.parseRawLog(mt.rawLog),height:mt.height,transactionHash:mt.transactionHash,events:mt.events,gasWanted:mt.gasWanted,gasUsed:mt.gasUsed}}async sendTokens(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:b,toAddress:dt,amount:[...ct]}};return this.signAndBroadcast(b,[mt],lt,ht)}async delegateTokens(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:tx_2$1.MsgDelegate.fromPartial({delegatorAddress:b,validatorAddress:dt,amount:ct})};return this.signAndBroadcast(b,[mt],lt,ht)}async undelegateTokens(b,dt,ct,lt,ht=""){const mt={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:tx_2$1.MsgUndelegate.fromPartial({delegatorAddress:b,validatorAddress:dt,amount:ct})};return this.signAndBroadcast(b,[mt],lt,ht)}async withdrawRewards(b,dt,ct,lt=""){const ht={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:tx_1$1.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:b,validatorAddress:dt})};return this.signAndBroadcast(b,[ht],ct,lt)}async signAndBroadcast(b,dt,ct,lt=""){let ht;if(ct=="auto"||typeof ct=="number"){(0,utils_1$2.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const kt=await this.simulate(b,dt,lt),Pt=typeof ct=="number"?ct:1.4;ht=(0,stargate_1$7.calculateFee)(Math.round(kt*Pt),this.gasPrice)}else ht=ct;const mt=await this.sign(b,dt,ht,lt),vt=tx_3$1.TxRaw.encode(mt).finish();return this.broadcastTx(vt,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(b,dt,ct,lt=""){let ht;if(ct=="auto"||typeof ct=="number"){(0,utils_1$2.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const kt=await this.simulate(b,dt,lt),Pt=typeof ct=="number"?ct:1.3;ht=(0,stargate_1$7.calculateFee)(Math.round(kt*Pt),this.gasPrice)}else ht=ct;const mt=await this.sign(b,dt,ht,lt),vt=tx_3$1.TxRaw.encode(mt).finish();return this.broadcastTxSync(vt)}async sign(b,dt,ct,lt,ht){let mt;if(ht)mt=ht;else{const{accountNumber:vt,sequence:kt}=await this.getSequence(b),Pt=await this.getChainId();mt={accountNumber:vt,sequence:kt,chainId:Pt}}return(0,proto_signing_1.isOfflineDirectSigner)(this.signer)?this.signDirect(b,dt,ct,lt,mt):this.signAmino(b,dt,ct,lt,mt)}async signAmino(b,dt,ct,lt,{accountNumber:ht,sequence:mt,chainId:vt}){(0,utils_1$2.assert)(!(0,proto_signing_1.isOfflineDirectSigner)(this.signer));const kt=(await this.signer.getAccounts()).find(Tt=>Tt.address===b);if(!kt)throw new Error("Failed to retrieve account from signer");const Pt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(kt.pubkey)),Jt=signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,Zt=dt.map(Tt=>this.aminoTypes.toAmino(Tt)),Rt=(0,amino_1.makeSignDoc)(Zt,ct,vt,lt,ht,mt),{signature:nn,signed:Qt}=await this.signer.signAmino(b,Rt),wt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:Qt.msgs.map(Tt=>this.aminoTypes.fromAmino(Tt)),memo:Qt.memo}},Nt=this.registry.encode(wt),xt=math_1$2.Int53.fromString(Qt.fee.gas).toNumber(),Et=math_1$2.Int53.fromString(Qt.sequence).toNumber(),Bt=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:Pt,sequence:Et}],Qt.fee.amount,xt,Qt.fee.granter,Qt.fee.payer,Jt);return tx_3$1.TxRaw.fromPartial({bodyBytes:Nt,authInfoBytes:Bt,signatures:[(0,encoding_1$2.fromBase64)(nn.signature)]})}async signDirect(b,dt,ct,lt,{accountNumber:ht,sequence:mt,chainId:vt}){(0,utils_1$2.assert)((0,proto_signing_1.isOfflineDirectSigner)(this.signer));const kt=(await this.signer.getAccounts()).find(xt=>xt.address===b);if(!kt)throw new Error("Failed to retrieve account from signer");const Pt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(kt.pubkey)),Jt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:dt,memo:lt}},Zt=this.registry.encode(Jt),Rt=math_1$2.Int53.fromString(ct.gas).toNumber(),nn=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:Pt,sequence:mt}],ct.amount,Rt,ct.granter,ct.payer),Qt=(0,proto_signing_1.makeSignDoc)(Zt,nn,vt,ht),{signature:wt,signed:Nt}=await this.signer.signDirect(b,Qt);return tx_3$1.TxRaw.fromPartial({bodyBytes:Nt.bodyBytes,authInfoBytes:Nt.authInfoBytes,signatures:[(0,encoding_1$2.fromBase64)(wt.signature)]})}}signingcosmwasmclient.SigningCosmWasmClient=SigningCosmWasmClient;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.SigningCosmWasmClient=d.wasmTypes=d.setupWasmExtension=d.isMsgUpdateAdminEncodeObject=d.isMsgStoreCodeEncodeObject=d.isMsgMigrateEncodeObject=d.isMsgInstantiateContractEncodeObject=d.isMsgInstantiateContract2EncodeObject=d.isMsgExecuteEncodeObject=d.isMsgClearAdminEncodeObject=d.createWasmAminoConverters=d.instantiate2Address=d._instantiate2AddressIntermediate=d.toBinary=d.fromBinary=d.CosmWasmClient=void 0;var b=cosmwasmclient;Object.defineProperty(d,"CosmWasmClient",{enumerable:!0,get:function(){return b.CosmWasmClient}});var dt=encoding;Object.defineProperty(d,"fromBinary",{enumerable:!0,get:function(){return dt.fromBinary}}),Object.defineProperty(d,"toBinary",{enumerable:!0,get:function(){return dt.toBinary}});var ct=instantiate2;Object.defineProperty(d,"_instantiate2AddressIntermediate",{enumerable:!0,get:function(){return ct._instantiate2AddressIntermediate}}),Object.defineProperty(d,"instantiate2Address",{enumerable:!0,get:function(){return ct.instantiate2Address}});var lt=modules;Object.defineProperty(d,"createWasmAminoConverters",{enumerable:!0,get:function(){return lt.createWasmAminoConverters}}),Object.defineProperty(d,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return lt.isMsgClearAdminEncodeObject}}),Object.defineProperty(d,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return lt.isMsgExecuteEncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return lt.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(d,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return lt.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(d,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return lt.isMsgMigrateEncodeObject}}),Object.defineProperty(d,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return lt.isMsgStoreCodeEncodeObject}}),Object.defineProperty(d,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return lt.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(d,"setupWasmExtension",{enumerable:!0,get:function(){return lt.setupWasmExtension}}),Object.defineProperty(d,"wasmTypes",{enumerable:!0,get:function(){return lt.wasmTypes}});var ht=signingcosmwasmclient;Object.defineProperty(d,"SigningCosmWasmClient",{enumerable:!0,get:function(){return ht.SigningCosmWasmClient}})})(build$h);var query$8={},pagination$2={},helpers={},indexMinimal$1={},minimal$3={},longbits$1,hasRequiredLongbits$1;function requireLongbits$1(){if(hasRequiredLongbits$1)return longbits$1;hasRequiredLongbits$1=1,longbits$1=b;var d=requireMinimal$1();function b(ht,mt){this.lo=ht>>>0,this.hi=mt>>>0}var dt=b.zero=new b(0,0);dt.toNumber=function(){return 0},dt.zzEncode=dt.zzDecode=function(){return this},dt.length=function(){return 1};var ct=b.zeroHash="\0\0\0\0\0\0\0\0";b.fromNumber=function(mt){if(mt===0)return dt;var vt=mt<0;vt&&(mt=-mt);var kt=mt>>>0,Pt=(mt-kt)/4294967296>>>0;return vt&&(Pt=~Pt>>>0,kt=~kt>>>0,++kt>4294967295&&(kt=0,++Pt>4294967295&&(Pt=0))),new b(kt,Pt)},b.from=function(mt){if(typeof mt=="number")return b.fromNumber(mt);if(d.isString(mt))if(d.Long)mt=d.Long.fromString(mt);else return b.fromNumber(parseInt(mt,10));return mt.low||mt.high?new b(mt.low>>>0,mt.high>>>0):dt},b.prototype.toNumber=function(mt){if(!mt&&this.hi>>>31){var vt=~this.lo+1>>>0,kt=~this.hi>>>0;return vt||(kt=kt+1>>>0),-(vt+kt*4294967296)}return this.lo+this.hi*4294967296},b.prototype.toLong=function(mt){return d.Long?new d.Long(this.lo|0,this.hi|0,!!mt):{low:this.lo|0,high:this.hi|0,unsigned:!!mt}};var lt=String.prototype.charCodeAt;return b.fromHash=function(mt){return mt===ct?dt:new b((lt.call(mt,0)|lt.call(mt,1)<<8|lt.call(mt,2)<<16|lt.call(mt,3)<<24)>>>0,(lt.call(mt,4)|lt.call(mt,5)<<8|lt.call(mt,6)<<16|lt.call(mt,7)<<24)>>>0)},b.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},b.prototype.zzEncode=function(){var mt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^mt)>>>0,this.lo=(this.lo<<1^mt)>>>0,this},b.prototype.zzDecode=function(){var mt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^mt)>>>0,this.hi=(this.hi>>>1^mt)>>>0,this},b.prototype.length=function(){var mt=this.lo,vt=(this.lo>>>28|this.hi<<4)>>>0,kt=this.hi>>>24;return kt===0?vt===0?mt<16384?mt<128?1:2:mt<2097152?3:4:vt<16384?vt<128?5:6:vt<2097152?7:8:kt<128?9:10},longbits$1}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(d){var b=d;b.asPromise=aspromise,b.base64=base64$8,b.EventEmitter=eventemitter,b.float=float,b.inquire=inquire_1,b.utf8=utf8$b,b.pool=pool_1,b.LongBits=requireLongbits$1(),b.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),b.global=b.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,b.emptyArray=Object.freeze?Object.freeze([]):[],b.emptyObject=Object.freeze?Object.freeze({}):{},b.isInteger=Number.isInteger||function(ht){return typeof ht=="number"&&isFinite(ht)&&Math.floor(ht)===ht},b.isString=function(ht){return typeof ht=="string"||ht instanceof String},b.isObject=function(ht){return ht&&typeof ht=="object"},b.isset=b.isSet=function(ht,mt){var vt=ht[mt];return vt!=null&&ht.hasOwnProperty(mt)?typeof vt!="object"||(Array.isArray(vt)?vt.length:Object.keys(vt).length)>0:!1},b.Buffer=function(){try{var lt=b.inquire("buffer").Buffer;return lt.prototype.utf8Write?lt:null}catch{return null}}(),b._Buffer_from=null,b._Buffer_allocUnsafe=null,b.newBuffer=function(ht){return typeof ht=="number"?b.Buffer?b._Buffer_allocUnsafe(ht):new b.Array(ht):b.Buffer?b._Buffer_from(ht):typeof Uint8Array>"u"?ht:new Uint8Array(ht)},b.Array=typeof Uint8Array<"u"?Uint8Array:Array,b.Long=b.global.dcodeIO&&b.global.dcodeIO.Long||b.global.Long||b.inquire("long"),b.key2Re=/^true|false|0|1$/,b.key32Re=/^-?(?:0|[1-9][0-9]*)$/,b.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,b.longToHash=function(ht){return ht?b.LongBits.from(ht).toHash():b.LongBits.zeroHash},b.longFromHash=function(ht,mt){var vt=b.LongBits.fromHash(ht);return b.Long?b.Long.fromBits(vt.lo,vt.hi,mt):vt.toNumber(!!mt)};function dt(lt,ht,mt){for(var vt=Object.keys(ht),kt=0;kt-1;--Pt)if(mt[kt[Pt]]===1&&this[kt[Pt]]!==void 0&&this[kt[Pt]]!==null)return kt[Pt]}},b.oneOfSetter=function(ht){return function(mt){for(var vt=0;vt127;)b[dt++]=d&127|128,d>>>=7;b[dt]=d}function VarintOp$1(d,b){this.len=d,this.next=void 0,this.val=b}VarintOp$1.prototype=Object.create(Op$1.prototype);VarintOp$1.prototype.fn=writeVarint32$1;Writer$3.prototype.uint32=function d(b){return this.len+=(this.tail=this.tail.next=new VarintOp$1((b=b>>>0)<128?1:b<16384?2:b<2097152?3:b<268435456?4:5,b)).len,this};Writer$3.prototype.int32=function d(b){return b<0?this._push(writeVarint64$1,10,LongBits$3.fromNumber(b)):this.uint32(b)};Writer$3.prototype.sint32=function d(b){return this.uint32((b<<1^b>>31)>>>0)};function writeVarint64$1(d,b,dt){for(;d.hi;)b[dt++]=d.lo&127|128,d.lo=(d.lo>>>7|d.hi<<25)>>>0,d.hi>>>=7;for(;d.lo>127;)b[dt++]=d.lo&127|128,d.lo=d.lo>>>7;b[dt++]=d.lo}Writer$3.prototype.uint64=function d(b){var dt=LongBits$3.from(b);return this._push(writeVarint64$1,dt.length(),dt)};Writer$3.prototype.int64=Writer$3.prototype.uint64;Writer$3.prototype.sint64=function d(b){var dt=LongBits$3.from(b).zzEncode();return this._push(writeVarint64$1,dt.length(),dt)};Writer$3.prototype.bool=function d(b){return this._push(writeByte$1,1,b?1:0)};function writeFixed32$1(d,b,dt){b[dt]=d&255,b[dt+1]=d>>>8&255,b[dt+2]=d>>>16&255,b[dt+3]=d>>>24}Writer$3.prototype.fixed32=function d(b){return this._push(writeFixed32$1,4,b>>>0)};Writer$3.prototype.sfixed32=Writer$3.prototype.fixed32;Writer$3.prototype.fixed64=function d(b){var dt=LongBits$3.from(b);return this._push(writeFixed32$1,4,dt.lo)._push(writeFixed32$1,4,dt.hi)};Writer$3.prototype.sfixed64=Writer$3.prototype.fixed64;Writer$3.prototype.float=function d(b){return this._push(util$a.float.writeFloatLE,4,b)};Writer$3.prototype.double=function d(b){return this._push(util$a.float.writeDoubleLE,8,b)};var writeBytes$1=util$a.Array.prototype.set?function d(b,dt,ct){dt.set(b,ct)}:function d(b,dt,ct){for(var lt=0;lt>>0;if(!dt)return this._push(writeByte$1,1,0);if(util$a.isString(b)){var ct=Writer$3.alloc(dt=base64$1.length(b));base64$1.decode(b,ct,0),b=ct}return this.uint32(dt)._push(writeBytes$1,dt,b)};Writer$3.prototype.string=function d(b){var dt=utf8$3.length(b);return dt?this.uint32(dt)._push(utf8$3.write,dt,b):this._push(writeByte$1,1,0)};Writer$3.prototype.fork=function d(){return this.states=new State$1(this),this.head=this.tail=new Op$1(noop$3,0,0),this.len=0,this};Writer$3.prototype.reset=function d(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op$1(noop$3,0,0),this.len=0),this};Writer$3.prototype.ldelim=function d(){var b=this.head,dt=this.tail,ct=this.len;return this.reset().uint32(ct),ct&&(this.tail.next=b.next,this.tail=dt,this.len+=ct),this};Writer$3.prototype.finish=function d(){for(var b=this.head.next,dt=this.constructor.alloc(this.len),ct=0;b;)b.fn(b.val,dt,ct),ct+=b.len,b=b.next;return dt};Writer$3._configure=function(d){BufferWriter$3=d,Writer$3.create=create$3(),BufferWriter$3._configure()};var writer_buffer$1=BufferWriter$2,Writer$2=writer$1;(BufferWriter$2.prototype=Object.create(Writer$2.prototype)).constructor=BufferWriter$2;var util$9=requireMinimal$1();function BufferWriter$2(){Writer$2.call(this)}BufferWriter$2._configure=function(){BufferWriter$2.alloc=util$9._Buffer_allocUnsafe,BufferWriter$2.writeBytesBuffer=util$9.Buffer&&util$9.Buffer.prototype instanceof Uint8Array&&util$9.Buffer.prototype.set.name==="set"?function(b,dt,ct){dt.set(b,ct)}:function(b,dt,ct){if(b.copy)b.copy(dt,ct,0,b.length);else for(var lt=0;lt>>0;return this.uint32(dt),dt&&this._push(BufferWriter$2.writeBytesBuffer,dt,b),this};function writeStringBuffer$1(d,b,dt){d.length<40?util$9.utf8.write(d,b,dt):b.utf8Write?b.utf8Write(d,dt):b.write(d,dt)}BufferWriter$2.prototype.string=function d(b){var dt=util$9.Buffer.byteLength(b);return this.uint32(dt),dt&&this._push(writeStringBuffer$1,dt,b),this};BufferWriter$2._configure();var reader$2=Reader$3,util$8=requireMinimal$1(),BufferReader$3,LongBits$2=util$8.LongBits,utf8$2=util$8.utf8;function indexOutOfRange$1(d,b){return RangeError("index out of range: "+d.pos+" + "+(b||1)+" > "+d.len)}function Reader$3(d){this.buf=d,this.pos=0,this.len=d.length}var create_array$1=typeof Uint8Array<"u"?function d(b){if(b instanceof Uint8Array||Array.isArray(b))return new Reader$3(b);throw Error("illegal buffer")}:function d(b){if(Array.isArray(b))return new Reader$3(b);throw Error("illegal buffer")},create$2=function d(){return util$8.Buffer?function(dt){return(Reader$3.create=function(lt){return util$8.Buffer.isBuffer(lt)?new BufferReader$3(lt):create_array$1(lt)})(dt)}:create_array$1};Reader$3.create=create$2();Reader$3.prototype._slice=util$8.Array.prototype.subarray||util$8.Array.prototype.slice;Reader$3.prototype.uint32=function d(){var b=4294967295;return function(){if(b=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(b=(b|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return b;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange$1(this,10);return b}}();Reader$3.prototype.int32=function d(){return this.uint32()|0};Reader$3.prototype.sint32=function d(){var b=this.uint32();return b>>>1^-(b&1)|0};function readLongVarint$1(){var d=new LongBits$2(0,0),b=0;if(this.len-this.pos>4){for(;b<4;++b)if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d;if(d.lo=(d.lo|(this.buf[this.pos]&127)<<28)>>>0,d.hi=(d.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return d;b=0}else{for(;b<3;++b){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}return d.lo=(d.lo|(this.buf[this.pos++]&127)<>>0,d}if(this.len-this.pos>4){for(;b<5;++b)if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}else for(;b<5;++b){if(this.pos>=this.len)throw indexOutOfRange$1(this);if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}throw Error("invalid varint encoding")}Reader$3.prototype.bool=function d(){return this.uint32()!==0};function readFixed32_end$1(d,b){return(d[b-4]|d[b-3]<<8|d[b-2]<<16|d[b-1]<<24)>>>0}Reader$3.prototype.fixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end$1(this.buf,this.pos+=4)};Reader$3.prototype.sfixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);return readFixed32_end$1(this.buf,this.pos+=4)|0};function readFixed64$1(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,8);return new LongBits$2(readFixed32_end$1(this.buf,this.pos+=4),readFixed32_end$1(this.buf,this.pos+=4))}Reader$3.prototype.float=function d(){if(this.pos+4>this.len)throw indexOutOfRange$1(this,4);var b=util$8.float.readFloatLE(this.buf,this.pos);return this.pos+=4,b};Reader$3.prototype.double=function d(){if(this.pos+8>this.len)throw indexOutOfRange$1(this,4);var b=util$8.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,b};Reader$3.prototype.bytes=function d(){var b=this.uint32(),dt=this.pos,ct=this.pos+b;if(ct>this.len)throw indexOutOfRange$1(this,b);return this.pos+=b,Array.isArray(this.buf)?this.buf.slice(dt,ct):dt===ct?new this.buf.constructor(0):this._slice.call(this.buf,dt,ct)};Reader$3.prototype.string=function d(){var b=this.bytes();return utf8$2.read(b,0,b.length)};Reader$3.prototype.skip=function d(b){if(typeof b=="number"){if(this.pos+b>this.len)throw indexOutOfRange$1(this,b);this.pos+=b}else do if(this.pos>=this.len)throw indexOutOfRange$1(this);while(this.buf[this.pos++]&128);return this};Reader$3.prototype.skipType=function(d){switch(d){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(d=this.uint32()&7)!==4;)this.skipType(d);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+d+" at offset "+this.pos)}return this};Reader$3._configure=function(d){BufferReader$3=d,Reader$3.create=create$2(),BufferReader$3._configure();var b=util$8.Long?"toLong":"toNumber";util$8.merge(Reader$3.prototype,{int64:function(){return readLongVarint$1.call(this)[b](!1)},uint64:function(){return readLongVarint$1.call(this)[b](!0)},sint64:function(){return readLongVarint$1.call(this).zzDecode()[b](!1)},fixed64:function(){return readFixed64$1.call(this)[b](!0)},sfixed64:function(){return readFixed64$1.call(this)[b](!1)}})};var reader_buffer$1=BufferReader$2,Reader$2=reader$2;(BufferReader$2.prototype=Object.create(Reader$2.prototype)).constructor=BufferReader$2;var util$7=requireMinimal$1();function BufferReader$2(d){Reader$2.call(this,d)}BufferReader$2._configure=function(){util$7.Buffer&&(BufferReader$2.prototype._slice=util$7.Buffer.prototype.slice)};BufferReader$2.prototype.string=function d(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))};BufferReader$2._configure();var rpc$1={},service$1=Service$1,util$6=requireMinimal$1();(Service$1.prototype=Object.create(util$6.EventEmitter.prototype)).constructor=Service$1;function Service$1(d,b,dt){if(typeof d!="function")throw TypeError("rpcImpl must be a function");util$6.EventEmitter.call(this),this.rpcImpl=d,this.requestDelimited=!!b,this.responseDelimited=!!dt}Service$1.prototype.rpcCall=function d(b,dt,ct,lt,ht){if(!lt)throw TypeError("request must be specified");var mt=this;if(!ht)return util$6.asPromise(d,mt,b,dt,ct,lt);if(!mt.rpcImpl){setTimeout(function(){ht(Error("already ended"))},0);return}try{return mt.rpcImpl(b,dt[mt.requestDelimited?"encodeDelimited":"encode"](lt).finish(),function(kt,Pt){if(kt)return mt.emit("error",kt,b),ht(kt);if(Pt===null){mt.end(!0);return}if(!(Pt instanceof ct))try{Pt=ct[mt.responseDelimited?"decodeDelimited":"decode"](Pt)}catch(Jt){return mt.emit("error",Jt,b),ht(Jt)}return mt.emit("data",Pt,b),ht(null,Pt)})}catch(vt){mt.emit("error",vt,b),setTimeout(function(){ht(vt)},0);return}};Service$1.prototype.end=function d(b){return this.rpcImpl&&(b||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(d){var b=d;b.Service=service$1})(rpc$1);var roots$1={};(function(d){var b=d;b.build="minimal",b.Writer=writer$1,b.BufferWriter=writer_buffer$1,b.Reader=reader$2,b.BufferReader=reader_buffer$1,b.util=requireMinimal$1(),b.rpc=rpc$1,b.roots=roots$1,b.configure=dt;function dt(){b.util._configure(),b.Writer._configure(b.BufferWriter),b.Reader._configure(b.BufferReader)}dt()})(indexMinimal$1);var minimal$2=indexMinimal$1,__createBinding$9=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$9=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$9=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$9(b,d,dt);return __setModuleDefault$9(b,d),b},__importDefault$j=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(helpers,"__esModule",{value:!0});helpers.fromJsonTimestamp=helpers.fromTimestamp=helpers.toTimestamp=helpers.setPaginationParams=helpers.isObject=helpers.isSet=helpers.fromDuration=helpers.toDuration=helpers.omitDefault=helpers.base64FromBytes=helpers.bytesFromBase64=helpers.Long=void 0;const _m0$9=__importStar$9(minimal$2),long_1$8=__importDefault$j(long);helpers.Long=long_1$8.default;_m0$9.util.Long!==long_1$8.default&&(_m0$9.util.Long=long_1$8.default,_m0$9.configure());var globalThis$2=(()=>{if(typeof globalThis$2<"u")return globalThis$2;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();const atob$2=globalThis$2.atob||(d=>globalThis$2.Buffer.from(d,"base64").toString("binary"));function bytesFromBase64$1(d){const b=atob$2(d),dt=new Uint8Array(b.length);for(let ct=0;ctglobalThis$2.Buffer.from(d,"binary").toString("base64"));function base64FromBytes$1(d){const b=[];return d.forEach(dt=>{b.push(String.fromCharCode(dt))}),btoa$2(b.join(""))}helpers.base64FromBytes=base64FromBytes$1;function omitDefault$1(d){if(typeof d=="string")return d===""?void 0:d;if(typeof d=="number")return d===0?void 0:d;if(long_1$8.default.isLong(d))return d.isZero()?void 0:d;throw new Error(`Got unsupported type ${typeof d}`)}helpers.omitDefault=omitDefault$1;function toDuration(d){return{seconds:long_1$8.default.fromNumber(Math.floor(parseInt(d)/1e9)),nanos:parseInt(d)%1e9}}helpers.toDuration=toDuration;function fromDuration(d){return(parseInt(d.seconds.toString())*1e9+d.nanos).toString()}helpers.fromDuration=fromDuration;function isSet$6(d){return d!=null}helpers.isSet=isSet$6;function isObject$1(d){return typeof d=="object"&&d!==null}helpers.isObject=isObject$1;const setPaginationParams=(d,b)=>(b&&(typeof(b==null?void 0:b.countTotal)<"u"&&(d.params["pagination.count_total"]=b.countTotal),typeof(b==null?void 0:b.key)<"u"&&(d.params["pagination.key"]=Buffer$1.from(b.key).toString("base64")),typeof(b==null?void 0:b.limit)<"u"&&(d.params["pagination.limit"]=b.limit.toString()),typeof(b==null?void 0:b.offset)<"u"&&(d.params["pagination.offset"]=b.offset.toString()),typeof(b==null?void 0:b.reverse)<"u"&&(d.params["pagination.reverse"]=b.reverse)),d);helpers.setPaginationParams=setPaginationParams;function toTimestamp(d){const b=numberToLong(d.getTime()/1e3),dt=d.getTime()%1e3*1e6;return{seconds:b,nanos:dt}}helpers.toTimestamp=toTimestamp;function fromTimestamp(d){let b=d.seconds.toNumber()*1e3;return b+=d.nanos/1e6,new Date(b)}helpers.fromTimestamp=fromTimestamp;const timestampFromJSON=d=>({seconds:isSet$6(d.seconds)?long_1$8.default.fromValue(d.seconds):long_1$8.default.ZERO,nanos:isSet$6(d.nanos)?Number(d.nanos):0});function fromJsonTimestamp(d){return d instanceof Date?toTimestamp(d):typeof d=="string"?toTimestamp(new Date(d)):timestampFromJSON(d)}helpers.fromJsonTimestamp=fromJsonTimestamp;function numberToLong(d){return long_1$8.default.fromNumber(d)}var __createBinding$8=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$8=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$8=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$8(b,d,dt);return __setModuleDefault$8(b,d),b};Object.defineProperty(pagination$2,"__esModule",{value:!0});pagination$2.PageResponse=pagination$2.PageRequest=pagination$2.protobufPackage=void 0;const helpers_1$8=helpers,_m0$8=__importStar$8(minimal$2);pagination$2.protobufPackage="cosmos.base.query.v1beta1";function createBasePageRequest$1(){return{key:new Uint8Array,offset:helpers_1$8.Long.UZERO,limit:helpers_1$8.Long.UZERO,countTotal:!1,reverse:!1}}pagination$2.PageRequest={encode(d,b=_m0$8.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),d.offset.isZero()||b.uint32(16).uint64(d.offset),d.limit.isZero()||b.uint32(24).uint64(d.limit),d.countTotal===!0&&b.uint32(32).bool(d.countTotal),d.reverse===!0&&b.uint32(40).bool(d.reverse),b},decode(d,b){const dt=d instanceof _m0$8.Reader?d:new _m0$8.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageRequest$1();for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;case 2:lt.offset=dt.uint64();break;case 3:lt.limit=dt.uint64();break;case 4:lt.countTotal=dt.bool();break;case 5:lt.reverse=dt.bool();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{key:(0,helpers_1$8.isSet)(d.key)?(0,helpers_1$8.bytesFromBase64)(d.key):new Uint8Array,offset:(0,helpers_1$8.isSet)(d.offset)?helpers_1$8.Long.fromValue(d.offset):helpers_1$8.Long.UZERO,limit:(0,helpers_1$8.isSet)(d.limit)?helpers_1$8.Long.fromValue(d.limit):helpers_1$8.Long.UZERO,countTotal:(0,helpers_1$8.isSet)(d.countTotal)?!!d.countTotal:!1,reverse:(0,helpers_1$8.isSet)(d.reverse)?!!d.reverse:!1}},toJSON(d){const b={};return d.key!==void 0&&(b.key=(0,helpers_1$8.base64FromBytes)(d.key!==void 0?d.key:new Uint8Array)),d.offset!==void 0&&(b.offset=(d.offset||helpers_1$8.Long.UZERO).toString()),d.limit!==void 0&&(b.limit=(d.limit||helpers_1$8.Long.UZERO).toString()),d.countTotal!==void 0&&(b.countTotal=d.countTotal),d.reverse!==void 0&&(b.reverse=d.reverse),b},fromPartial(d){const b=createBasePageRequest$1();return b.key=d.key??new Uint8Array,b.offset=d.offset!==void 0&&d.offset!==null?helpers_1$8.Long.fromValue(d.offset):helpers_1$8.Long.UZERO,b.limit=d.limit!==void 0&&d.limit!==null?helpers_1$8.Long.fromValue(d.limit):helpers_1$8.Long.UZERO,b.countTotal=d.countTotal??!1,b.reverse=d.reverse??!1,b}};function createBasePageResponse$1(){return{nextKey:new Uint8Array,total:helpers_1$8.Long.UZERO}}pagination$2.PageResponse={encode(d,b=_m0$8.Writer.create()){return d.nextKey.length!==0&&b.uint32(10).bytes(d.nextKey),d.total.isZero()||b.uint32(16).uint64(d.total),b},decode(d,b){const dt=d instanceof _m0$8.Reader?d:new _m0$8.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageResponse$1();for(;dt.pos>>3){case 1:lt.nextKey=dt.bytes();break;case 2:lt.total=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{nextKey:(0,helpers_1$8.isSet)(d.nextKey)?(0,helpers_1$8.bytesFromBase64)(d.nextKey):new Uint8Array,total:(0,helpers_1$8.isSet)(d.total)?helpers_1$8.Long.fromValue(d.total):helpers_1$8.Long.UZERO}},toJSON(d){const b={};return d.nextKey!==void 0&&(b.nextKey=(0,helpers_1$8.base64FromBytes)(d.nextKey!==void 0?d.nextKey:new Uint8Array)),d.total!==void 0&&(b.total=(d.total||helpers_1$8.Long.UZERO).toString()),b},fromPartial(d){const b=createBasePageResponse$1();return b.nextKey=d.nextKey??new Uint8Array,b.total=d.total!==void 0&&d.total!==null?helpers_1$8.Long.fromValue(d.total):helpers_1$8.Long.UZERO,b}};var distribution={},coin$1={},__createBinding$7=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$7=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$7=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$7(b,d,dt);return __setModuleDefault$7(b,d),b};Object.defineProperty(coin$1,"__esModule",{value:!0});coin$1.DecProto=coin$1.IntProto=coin$1.DecCoin=coin$1.Coin=coin$1.protobufPackage=void 0;const _m0$7=__importStar$7(minimal$2),helpers_1$7=helpers;coin$1.protobufPackage="cosmos.base.v1beta1";function createBaseCoin(){return{denom:"",amount:""}}coin$1.Coin={encode(d,b=_m0$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseCoin();for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{denom:(0,helpers_1$7.isSet)(d.denom)?String(d.denom):"",amount:(0,helpers_1$7.isSet)(d.amount)?String(d.amount):""}},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b=createBaseCoin();return b.denom=d.denom??"",b.amount=d.amount??"",b}};function createBaseDecCoin(){return{denom:"",amount:""}}coin$1.DecCoin={encode(d,b=_m0$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDecCoin();for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{denom:(0,helpers_1$7.isSet)(d.denom)?String(d.denom):"",amount:(0,helpers_1$7.isSet)(d.amount)?String(d.amount):""}},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b=createBaseDecCoin();return b.denom=d.denom??"",b.amount=d.amount??"",b}};function createBaseIntProto(){return{int:""}}coin$1.IntProto={encode(d,b=_m0$7.Writer.create()){return d.int!==""&&b.uint32(10).string(d.int),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseIntProto();for(;dt.pos>>3){case 1:lt.int=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{int:(0,helpers_1$7.isSet)(d.int)?String(d.int):""}},toJSON(d){const b={};return d.int!==void 0&&(b.int=d.int),b},fromPartial(d){const b=createBaseIntProto();return b.int=d.int??"",b}};function createBaseDecProto(){return{dec:""}}coin$1.DecProto={encode(d,b=_m0$7.Writer.create()){return d.dec!==""&&b.uint32(10).string(d.dec),b},decode(d,b){const dt=d instanceof _m0$7.Reader?d:new _m0$7.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDecProto();for(;dt.pos>>3){case 1:lt.dec=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{dec:(0,helpers_1$7.isSet)(d.dec)?String(d.dec):""}},toJSON(d){const b={};return d.dec!==void 0&&(b.dec=d.dec),b},fromPartial(d){const b=createBaseDecProto();return b.dec=d.dec??"",b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt);var Ht=Object.getOwnPropertyDescriptor(Tt,Mt);(!Ht||("get"in Ht?!Tt.__esModule:Ht.writable||Ht.configurable))&&(Ht={enumerable:!0,get:function(){return Tt[Mt]}}),Object.defineProperty(Bt,jt,Ht)}:function(Bt,Tt,Mt,jt){jt===void 0&&(jt=Mt),Bt[jt]=Tt[Mt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Bt,Tt){Object.defineProperty(Bt,"default",{enumerable:!0,value:Tt})}:function(Bt,Tt){Bt.default=Tt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Bt){if(Bt&&Bt.__esModule)return Bt;var Tt={};if(Bt!=null)for(var Mt in Bt)Mt!=="default"&&Object.prototype.hasOwnProperty.call(Bt,Mt)&&b(Tt,Bt,Mt);return dt(Tt,Bt),Tt};Object.defineProperty(d,"__esModule",{value:!0}),d.CommunityPoolSpendProposalWithDeposit=d.DelegationDelegatorReward=d.DelegatorStartingInfo=d.CommunityPoolSpendProposal=d.FeePool=d.ValidatorSlashEvents=d.ValidatorSlashEvent=d.ValidatorOutstandingRewards=d.ValidatorAccumulatedCommission=d.ValidatorCurrentRewards=d.ValidatorHistoricalRewards=d.Params=d.protobufPackage=void 0;const lt=coin$1,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmos.distribution.v1beta1";function vt(){return{communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1}}d.Params={encode(Bt,Tt=ht.Writer.create()){return Bt.communityTax!==""&&Tt.uint32(10).string(Bt.communityTax),Bt.baseProposerReward!==""&&Tt.uint32(18).string(Bt.baseProposerReward),Bt.bonusProposerReward!==""&&Tt.uint32(26).string(Bt.bonusProposerReward),Bt.withdrawAddrEnabled===!0&&Tt.uint32(32).bool(Bt.withdrawAddrEnabled),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=vt();for(;Mt.pos>>3){case 1:Ht.communityTax=Mt.string();break;case 2:Ht.baseProposerReward=Mt.string();break;case 3:Ht.bonusProposerReward=Mt.string();break;case 4:Ht.withdrawAddrEnabled=Mt.bool();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{communityTax:(0,mt.isSet)(Bt.communityTax)?String(Bt.communityTax):"",baseProposerReward:(0,mt.isSet)(Bt.baseProposerReward)?String(Bt.baseProposerReward):"",bonusProposerReward:(0,mt.isSet)(Bt.bonusProposerReward)?String(Bt.bonusProposerReward):"",withdrawAddrEnabled:(0,mt.isSet)(Bt.withdrawAddrEnabled)?!!Bt.withdrawAddrEnabled:!1}},toJSON(Bt){const Tt={};return Bt.communityTax!==void 0&&(Tt.communityTax=Bt.communityTax),Bt.baseProposerReward!==void 0&&(Tt.baseProposerReward=Bt.baseProposerReward),Bt.bonusProposerReward!==void 0&&(Tt.bonusProposerReward=Bt.bonusProposerReward),Bt.withdrawAddrEnabled!==void 0&&(Tt.withdrawAddrEnabled=Bt.withdrawAddrEnabled),Tt},fromPartial(Bt){const Tt=vt();return Tt.communityTax=Bt.communityTax??"",Tt.baseProposerReward=Bt.baseProposerReward??"",Tt.bonusProposerReward=Bt.bonusProposerReward??"",Tt.withdrawAddrEnabled=Bt.withdrawAddrEnabled??!1,Tt}};function kt(){return{cumulativeRewardRatio:[],referenceCount:0}}d.ValidatorHistoricalRewards={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.cumulativeRewardRatio)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Bt.referenceCount!==0&&Tt.uint32(16).uint32(Bt.referenceCount),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=kt();for(;Mt.pos>>3){case 1:Ht.cumulativeRewardRatio.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;case 2:Ht.referenceCount=Mt.uint32();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{cumulativeRewardRatio:Array.isArray(Bt==null?void 0:Bt.cumulativeRewardRatio)?Bt.cumulativeRewardRatio.map(Tt=>lt.DecCoin.fromJSON(Tt)):[],referenceCount:(0,mt.isSet)(Bt.referenceCount)?Number(Bt.referenceCount):0}},toJSON(Bt){const Tt={};return Bt.cumulativeRewardRatio?Tt.cumulativeRewardRatio=Bt.cumulativeRewardRatio.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.cumulativeRewardRatio=[],Bt.referenceCount!==void 0&&(Tt.referenceCount=Math.round(Bt.referenceCount)),Tt},fromPartial(Bt){var Mt;const Tt=kt();return Tt.cumulativeRewardRatio=((Mt=Bt.cumulativeRewardRatio)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt.referenceCount=Bt.referenceCount??0,Tt}};function Pt(){return{rewards:[],period:mt.Long.UZERO}}d.ValidatorCurrentRewards={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.rewards)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Bt.period.isZero()||Tt.uint32(16).uint64(Bt.period),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Pt();for(;Mt.pos>>3){case 1:Ht.rewards.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;case 2:Ht.period=Mt.uint64();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{rewards:Array.isArray(Bt==null?void 0:Bt.rewards)?Bt.rewards.map(Tt=>lt.DecCoin.fromJSON(Tt)):[],period:(0,mt.isSet)(Bt.period)?mt.Long.fromValue(Bt.period):mt.Long.UZERO}},toJSON(Bt){const Tt={};return Bt.rewards?Tt.rewards=Bt.rewards.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.rewards=[],Bt.period!==void 0&&(Tt.period=(Bt.period||mt.Long.UZERO).toString()),Tt},fromPartial(Bt){var Mt;const Tt=Pt();return Tt.rewards=((Mt=Bt.rewards)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt.period=Bt.period!==void 0&&Bt.period!==null?mt.Long.fromValue(Bt.period):mt.Long.UZERO,Tt}};function Jt(){return{commission:[]}}d.ValidatorAccumulatedCommission={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.commission)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Jt();for(;Mt.pos>>3){case 1:Ht.commission.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{commission:Array.isArray(Bt==null?void 0:Bt.commission)?Bt.commission.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.commission?Tt.commission=Bt.commission.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.commission=[],Tt},fromPartial(Bt){var Mt;const Tt=Jt();return Tt.commission=((Mt=Bt.commission)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Zt(){return{rewards:[]}}d.ValidatorOutstandingRewards={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.rewards)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Zt();for(;Mt.pos>>3){case 1:Ht.rewards.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{rewards:Array.isArray(Bt==null?void 0:Bt.rewards)?Bt.rewards.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.rewards?Tt.rewards=Bt.rewards.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.rewards=[],Tt},fromPartial(Bt){var Mt;const Tt=Zt();return Tt.rewards=((Mt=Bt.rewards)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Rt(){return{validatorPeriod:mt.Long.UZERO,fraction:""}}d.ValidatorSlashEvent={encode(Bt,Tt=ht.Writer.create()){return Bt.validatorPeriod.isZero()||Tt.uint32(8).uint64(Bt.validatorPeriod),Bt.fraction!==""&&Tt.uint32(18).string(Bt.fraction),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Rt();for(;Mt.pos>>3){case 1:Ht.validatorPeriod=Mt.uint64();break;case 2:Ht.fraction=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorPeriod:(0,mt.isSet)(Bt.validatorPeriod)?mt.Long.fromValue(Bt.validatorPeriod):mt.Long.UZERO,fraction:(0,mt.isSet)(Bt.fraction)?String(Bt.fraction):""}},toJSON(Bt){const Tt={};return Bt.validatorPeriod!==void 0&&(Tt.validatorPeriod=(Bt.validatorPeriod||mt.Long.UZERO).toString()),Bt.fraction!==void 0&&(Tt.fraction=Bt.fraction),Tt},fromPartial(Bt){const Tt=Rt();return Tt.validatorPeriod=Bt.validatorPeriod!==void 0&&Bt.validatorPeriod!==null?mt.Long.fromValue(Bt.validatorPeriod):mt.Long.UZERO,Tt.fraction=Bt.fraction??"",Tt}};function nn(){return{validatorSlashEvents:[]}}d.ValidatorSlashEvents={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.validatorSlashEvents)d.ValidatorSlashEvent.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=nn();for(;Mt.pos>>3){case 1:Ht.validatorSlashEvents.push(d.ValidatorSlashEvent.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorSlashEvents:Array.isArray(Bt==null?void 0:Bt.validatorSlashEvents)?Bt.validatorSlashEvents.map(Tt=>d.ValidatorSlashEvent.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.validatorSlashEvents?Tt.validatorSlashEvents=Bt.validatorSlashEvents.map(Mt=>Mt?d.ValidatorSlashEvent.toJSON(Mt):void 0):Tt.validatorSlashEvents=[],Tt},fromPartial(Bt){var Mt;const Tt=nn();return Tt.validatorSlashEvents=((Mt=Bt.validatorSlashEvents)==null?void 0:Mt.map(jt=>d.ValidatorSlashEvent.fromPartial(jt)))||[],Tt}};function Qt(){return{communityPool:[]}}d.FeePool={encode(Bt,Tt=ht.Writer.create()){for(const Mt of Bt.communityPool)lt.DecCoin.encode(Mt,Tt.uint32(10).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Qt();for(;Mt.pos>>3){case 1:Ht.communityPool.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{communityPool:Array.isArray(Bt==null?void 0:Bt.communityPool)?Bt.communityPool.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.communityPool?Tt.communityPool=Bt.communityPool.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.communityPool=[],Tt},fromPartial(Bt){var Mt;const Tt=Qt();return Tt.communityPool=((Mt=Bt.communityPool)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function wt(){return{title:"",description:"",recipient:"",amount:[]}}d.CommunityPoolSpendProposal={encode(Bt,Tt=ht.Writer.create()){Bt.title!==""&&Tt.uint32(10).string(Bt.title),Bt.description!==""&&Tt.uint32(18).string(Bt.description),Bt.recipient!==""&&Tt.uint32(26).string(Bt.recipient);for(const Mt of Bt.amount)lt.Coin.encode(Mt,Tt.uint32(34).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=wt();for(;Mt.pos>>3){case 1:Ht.title=Mt.string();break;case 2:Ht.description=Mt.string();break;case 3:Ht.recipient=Mt.string();break;case 4:Ht.amount.push(lt.Coin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{title:(0,mt.isSet)(Bt.title)?String(Bt.title):"",description:(0,mt.isSet)(Bt.description)?String(Bt.description):"",recipient:(0,mt.isSet)(Bt.recipient)?String(Bt.recipient):"",amount:Array.isArray(Bt==null?void 0:Bt.amount)?Bt.amount.map(Tt=>lt.Coin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.title!==void 0&&(Tt.title=Bt.title),Bt.description!==void 0&&(Tt.description=Bt.description),Bt.recipient!==void 0&&(Tt.recipient=Bt.recipient),Bt.amount?Tt.amount=Bt.amount.map(Mt=>Mt?lt.Coin.toJSON(Mt):void 0):Tt.amount=[],Tt},fromPartial(Bt){var Mt;const Tt=wt();return Tt.title=Bt.title??"",Tt.description=Bt.description??"",Tt.recipient=Bt.recipient??"",Tt.amount=((Mt=Bt.amount)==null?void 0:Mt.map(jt=>lt.Coin.fromPartial(jt)))||[],Tt}};function Nt(){return{previousPeriod:mt.Long.UZERO,stake:"",height:mt.Long.UZERO}}d.DelegatorStartingInfo={encode(Bt,Tt=ht.Writer.create()){return Bt.previousPeriod.isZero()||Tt.uint32(8).uint64(Bt.previousPeriod),Bt.stake!==""&&Tt.uint32(18).string(Bt.stake),Bt.height.isZero()||Tt.uint32(24).uint64(Bt.height),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Nt();for(;Mt.pos>>3){case 1:Ht.previousPeriod=Mt.uint64();break;case 2:Ht.stake=Mt.string();break;case 3:Ht.height=Mt.uint64();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{previousPeriod:(0,mt.isSet)(Bt.previousPeriod)?mt.Long.fromValue(Bt.previousPeriod):mt.Long.UZERO,stake:(0,mt.isSet)(Bt.stake)?String(Bt.stake):"",height:(0,mt.isSet)(Bt.height)?mt.Long.fromValue(Bt.height):mt.Long.UZERO}},toJSON(Bt){const Tt={};return Bt.previousPeriod!==void 0&&(Tt.previousPeriod=(Bt.previousPeriod||mt.Long.UZERO).toString()),Bt.stake!==void 0&&(Tt.stake=Bt.stake),Bt.height!==void 0&&(Tt.height=(Bt.height||mt.Long.UZERO).toString()),Tt},fromPartial(Bt){const Tt=Nt();return Tt.previousPeriod=Bt.previousPeriod!==void 0&&Bt.previousPeriod!==null?mt.Long.fromValue(Bt.previousPeriod):mt.Long.UZERO,Tt.stake=Bt.stake??"",Tt.height=Bt.height!==void 0&&Bt.height!==null?mt.Long.fromValue(Bt.height):mt.Long.UZERO,Tt}};function xt(){return{validatorAddress:"",reward:[]}}d.DelegationDelegatorReward={encode(Bt,Tt=ht.Writer.create()){Bt.validatorAddress!==""&&Tt.uint32(10).string(Bt.validatorAddress);for(const Mt of Bt.reward)lt.DecCoin.encode(Mt,Tt.uint32(18).fork()).ldelim();return Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=xt();for(;Mt.pos>>3){case 1:Ht.validatorAddress=Mt.string();break;case 2:Ht.reward.push(lt.DecCoin.decode(Mt,Mt.uint32()));break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{validatorAddress:(0,mt.isSet)(Bt.validatorAddress)?String(Bt.validatorAddress):"",reward:Array.isArray(Bt==null?void 0:Bt.reward)?Bt.reward.map(Tt=>lt.DecCoin.fromJSON(Tt)):[]}},toJSON(Bt){const Tt={};return Bt.validatorAddress!==void 0&&(Tt.validatorAddress=Bt.validatorAddress),Bt.reward?Tt.reward=Bt.reward.map(Mt=>Mt?lt.DecCoin.toJSON(Mt):void 0):Tt.reward=[],Tt},fromPartial(Bt){var Mt;const Tt=xt();return Tt.validatorAddress=Bt.validatorAddress??"",Tt.reward=((Mt=Bt.reward)==null?void 0:Mt.map(jt=>lt.DecCoin.fromPartial(jt)))||[],Tt}};function Et(){return{title:"",description:"",recipient:"",amount:"",deposit:""}}d.CommunityPoolSpendProposalWithDeposit={encode(Bt,Tt=ht.Writer.create()){return Bt.title!==""&&Tt.uint32(10).string(Bt.title),Bt.description!==""&&Tt.uint32(18).string(Bt.description),Bt.recipient!==""&&Tt.uint32(26).string(Bt.recipient),Bt.amount!==""&&Tt.uint32(34).string(Bt.amount),Bt.deposit!==""&&Tt.uint32(42).string(Bt.deposit),Tt},decode(Bt,Tt){const Mt=Bt instanceof ht.Reader?Bt:new ht.Reader(Bt);let jt=Tt===void 0?Mt.len:Mt.pos+Tt;const Ht=Et();for(;Mt.pos>>3){case 1:Ht.title=Mt.string();break;case 2:Ht.description=Mt.string();break;case 3:Ht.recipient=Mt.string();break;case 4:Ht.amount=Mt.string();break;case 5:Ht.deposit=Mt.string();break;default:Mt.skipType(an&7);break}}return Ht},fromJSON(Bt){return{title:(0,mt.isSet)(Bt.title)?String(Bt.title):"",description:(0,mt.isSet)(Bt.description)?String(Bt.description):"",recipient:(0,mt.isSet)(Bt.recipient)?String(Bt.recipient):"",amount:(0,mt.isSet)(Bt.amount)?String(Bt.amount):"",deposit:(0,mt.isSet)(Bt.deposit)?String(Bt.deposit):""}},toJSON(Bt){const Tt={};return Bt.title!==void 0&&(Tt.title=Bt.title),Bt.description!==void 0&&(Tt.description=Bt.description),Bt.recipient!==void 0&&(Tt.recipient=Bt.recipient),Bt.amount!==void 0&&(Tt.amount=Bt.amount),Bt.deposit!==void 0&&(Tt.deposit=Bt.deposit),Tt},fromPartial(Bt){const Tt=Et();return Tt.title=Bt.title??"",Tt.description=Bt.description??"",Tt.recipient=Bt.recipient??"",Tt.amount=Bt.amount??"",Tt.deposit=Bt.deposit??"",Tt}}})(distribution);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Kt,St,It,Gt){Gt===void 0&&(Gt=It);var Ut=Object.getOwnPropertyDescriptor(St,It);(!Ut||("get"in Ut?!St.__esModule:Ut.writable||Ut.configurable))&&(Ut={enumerable:!0,get:function(){return St[It]}}),Object.defineProperty(Kt,Gt,Ut)}:function(Kt,St,It,Gt){Gt===void 0&&(Gt=It),Kt[Gt]=St[It]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Kt,St){Object.defineProperty(Kt,"default",{enumerable:!0,value:St})}:function(Kt,St){Kt.default=St}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Kt){if(Kt&&Kt.__esModule)return Kt;var St={};if(Kt!=null)for(var It in Kt)It!=="default"&&Object.prototype.hasOwnProperty.call(Kt,It)&&b(St,Kt,It);return dt(St,Kt),St};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryCommunityPoolResponse=d.QueryCommunityPoolRequest=d.QueryDelegatorWithdrawAddressResponse=d.QueryDelegatorWithdrawAddressRequest=d.QueryDelegatorValidatorsResponse=d.QueryDelegatorValidatorsRequest=d.QueryDelegationTotalRewardsResponse=d.QueryDelegationTotalRewardsRequest=d.QueryDelegationRewardsResponse=d.QueryDelegationRewardsRequest=d.QueryValidatorSlashesResponse=d.QueryValidatorSlashesRequest=d.QueryValidatorCommissionResponse=d.QueryValidatorCommissionRequest=d.QueryValidatorOutstandingRewardsResponse=d.QueryValidatorOutstandingRewardsRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const lt=pagination$2,ht=distribution,mt=coin$1,vt=ct(minimal$2),kt=helpers;d.protobufPackage="cosmos.distribution.v1beta1";function Pt(){return{}}d.QueryParamsRequest={encode(Kt,St=vt.Writer.create()){return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Pt();for(;It.pos>>3){default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{}},toJSON(Kt){return{}},fromPartial(Kt){return Pt()}};function Jt(){return{params:void 0}}d.QueryParamsResponse={encode(Kt,St=vt.Writer.create()){return Kt.params!==void 0&&ht.Params.encode(Kt.params,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Jt();for(;It.pos>>3){case 1:Ut.params=ht.Params.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{params:(0,kt.isSet)(Kt.params)?ht.Params.fromJSON(Kt.params):void 0}},toJSON(Kt){const St={};return Kt.params!==void 0&&(St.params=Kt.params?ht.Params.toJSON(Kt.params):void 0),St},fromPartial(Kt){const St=Jt();return St.params=Kt.params!==void 0&&Kt.params!==null?ht.Params.fromPartial(Kt.params):void 0,St}};function Zt(){return{validatorAddress:""}}d.QueryValidatorOutstandingRewardsRequest={encode(Kt,St=vt.Writer.create()){return Kt.validatorAddress!==""&&St.uint32(10).string(Kt.validatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Zt();for(;It.pos>>3){case 1:Ut.validatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):""}},toJSON(Kt){const St={};return Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),St},fromPartial(Kt){const St=Zt();return St.validatorAddress=Kt.validatorAddress??"",St}};function Rt(){return{rewards:void 0}}d.QueryValidatorOutstandingRewardsResponse={encode(Kt,St=vt.Writer.create()){return Kt.rewards!==void 0&&ht.ValidatorOutstandingRewards.encode(Kt.rewards,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Rt();for(;It.pos>>3){case 1:Ut.rewards=ht.ValidatorOutstandingRewards.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{rewards:(0,kt.isSet)(Kt.rewards)?ht.ValidatorOutstandingRewards.fromJSON(Kt.rewards):void 0}},toJSON(Kt){const St={};return Kt.rewards!==void 0&&(St.rewards=Kt.rewards?ht.ValidatorOutstandingRewards.toJSON(Kt.rewards):void 0),St},fromPartial(Kt){const St=Rt();return St.rewards=Kt.rewards!==void 0&&Kt.rewards!==null?ht.ValidatorOutstandingRewards.fromPartial(Kt.rewards):void 0,St}};function nn(){return{validatorAddress:""}}d.QueryValidatorCommissionRequest={encode(Kt,St=vt.Writer.create()){return Kt.validatorAddress!==""&&St.uint32(10).string(Kt.validatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=nn();for(;It.pos>>3){case 1:Ut.validatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):""}},toJSON(Kt){const St={};return Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),St},fromPartial(Kt){const St=nn();return St.validatorAddress=Kt.validatorAddress??"",St}};function Qt(){return{commission:void 0}}d.QueryValidatorCommissionResponse={encode(Kt,St=vt.Writer.create()){return Kt.commission!==void 0&&ht.ValidatorAccumulatedCommission.encode(Kt.commission,St.uint32(10).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Qt();for(;It.pos>>3){case 1:Ut.commission=ht.ValidatorAccumulatedCommission.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{commission:(0,kt.isSet)(Kt.commission)?ht.ValidatorAccumulatedCommission.fromJSON(Kt.commission):void 0}},toJSON(Kt){const St={};return Kt.commission!==void 0&&(St.commission=Kt.commission?ht.ValidatorAccumulatedCommission.toJSON(Kt.commission):void 0),St},fromPartial(Kt){const St=Qt();return St.commission=Kt.commission!==void 0&&Kt.commission!==null?ht.ValidatorAccumulatedCommission.fromPartial(Kt.commission):void 0,St}};function wt(){return{validatorAddress:"",startingHeight:kt.Long.UZERO,endingHeight:kt.Long.UZERO,pagination:void 0}}d.QueryValidatorSlashesRequest={encode(Kt,St=vt.Writer.create()){return Kt.validatorAddress!==""&&St.uint32(10).string(Kt.validatorAddress),Kt.startingHeight.isZero()||St.uint32(16).uint64(Kt.startingHeight),Kt.endingHeight.isZero()||St.uint32(24).uint64(Kt.endingHeight),Kt.pagination!==void 0&<.PageRequest.encode(Kt.pagination,St.uint32(34).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=wt();for(;It.pos>>3){case 1:Ut.validatorAddress=It.string();break;case 2:Ut.startingHeight=It.uint64();break;case 3:Ut.endingHeight=It.uint64();break;case 4:Ut.pagination=lt.PageRequest.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):"",startingHeight:(0,kt.isSet)(Kt.startingHeight)?kt.Long.fromValue(Kt.startingHeight):kt.Long.UZERO,endingHeight:(0,kt.isSet)(Kt.endingHeight)?kt.Long.fromValue(Kt.endingHeight):kt.Long.UZERO,pagination:(0,kt.isSet)(Kt.pagination)?lt.PageRequest.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),Kt.startingHeight!==void 0&&(St.startingHeight=(Kt.startingHeight||kt.Long.UZERO).toString()),Kt.endingHeight!==void 0&&(St.endingHeight=(Kt.endingHeight||kt.Long.UZERO).toString()),Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageRequest.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){const St=wt();return St.validatorAddress=Kt.validatorAddress??"",St.startingHeight=Kt.startingHeight!==void 0&&Kt.startingHeight!==null?kt.Long.fromValue(Kt.startingHeight):kt.Long.UZERO,St.endingHeight=Kt.endingHeight!==void 0&&Kt.endingHeight!==null?kt.Long.fromValue(Kt.endingHeight):kt.Long.UZERO,St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageRequest.fromPartial(Kt.pagination):void 0,St}};function Nt(){return{slashes:[],pagination:void 0}}d.QueryValidatorSlashesResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.slashes)ht.ValidatorSlashEvent.encode(It,St.uint32(10).fork()).ldelim();return Kt.pagination!==void 0&<.PageResponse.encode(Kt.pagination,St.uint32(18).fork()).ldelim(),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Nt();for(;It.pos>>3){case 1:Ut.slashes.push(ht.ValidatorSlashEvent.decode(It,It.uint32()));break;case 2:Ut.pagination=lt.PageResponse.decode(It,It.uint32());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{slashes:Array.isArray(Kt==null?void 0:Kt.slashes)?Kt.slashes.map(St=>ht.ValidatorSlashEvent.fromJSON(St)):[],pagination:(0,kt.isSet)(Kt.pagination)?lt.PageResponse.fromJSON(Kt.pagination):void 0}},toJSON(Kt){const St={};return Kt.slashes?St.slashes=Kt.slashes.map(It=>It?ht.ValidatorSlashEvent.toJSON(It):void 0):St.slashes=[],Kt.pagination!==void 0&&(St.pagination=Kt.pagination?lt.PageResponse.toJSON(Kt.pagination):void 0),St},fromPartial(Kt){var It;const St=Nt();return St.slashes=((It=Kt.slashes)==null?void 0:It.map(Gt=>ht.ValidatorSlashEvent.fromPartial(Gt)))||[],St.pagination=Kt.pagination!==void 0&&Kt.pagination!==null?lt.PageResponse.fromPartial(Kt.pagination):void 0,St}};function xt(){return{delegatorAddress:"",validatorAddress:""}}d.QueryDelegationRewardsRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),Kt.validatorAddress!==""&&St.uint32(18).string(Kt.validatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=xt();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;case 2:Ut.validatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):"",validatorAddress:(0,kt.isSet)(Kt.validatorAddress)?String(Kt.validatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),Kt.validatorAddress!==void 0&&(St.validatorAddress=Kt.validatorAddress),St},fromPartial(Kt){const St=xt();return St.delegatorAddress=Kt.delegatorAddress??"",St.validatorAddress=Kt.validatorAddress??"",St}};function Et(){return{rewards:[]}}d.QueryDelegationRewardsResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.rewards)mt.DecCoin.encode(It,St.uint32(10).fork()).ldelim();return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Et();for(;It.pos>>3){case 1:Ut.rewards.push(mt.DecCoin.decode(It,It.uint32()));break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{rewards:Array.isArray(Kt==null?void 0:Kt.rewards)?Kt.rewards.map(St=>mt.DecCoin.fromJSON(St)):[]}},toJSON(Kt){const St={};return Kt.rewards?St.rewards=Kt.rewards.map(It=>It?mt.DecCoin.toJSON(It):void 0):St.rewards=[],St},fromPartial(Kt){var It;const St=Et();return St.rewards=((It=Kt.rewards)==null?void 0:It.map(Gt=>mt.DecCoin.fromPartial(Gt)))||[],St}};function Bt(){return{delegatorAddress:""}}d.QueryDelegationTotalRewardsRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Bt();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),St},fromPartial(Kt){const St=Bt();return St.delegatorAddress=Kt.delegatorAddress??"",St}};function Tt(){return{rewards:[],total:[]}}d.QueryDelegationTotalRewardsResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.rewards)ht.DelegationDelegatorReward.encode(It,St.uint32(10).fork()).ldelim();for(const It of Kt.total)mt.DecCoin.encode(It,St.uint32(18).fork()).ldelim();return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Tt();for(;It.pos>>3){case 1:Ut.rewards.push(ht.DelegationDelegatorReward.decode(It,It.uint32()));break;case 2:Ut.total.push(mt.DecCoin.decode(It,It.uint32()));break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{rewards:Array.isArray(Kt==null?void 0:Kt.rewards)?Kt.rewards.map(St=>ht.DelegationDelegatorReward.fromJSON(St)):[],total:Array.isArray(Kt==null?void 0:Kt.total)?Kt.total.map(St=>mt.DecCoin.fromJSON(St)):[]}},toJSON(Kt){const St={};return Kt.rewards?St.rewards=Kt.rewards.map(It=>It?ht.DelegationDelegatorReward.toJSON(It):void 0):St.rewards=[],Kt.total?St.total=Kt.total.map(It=>It?mt.DecCoin.toJSON(It):void 0):St.total=[],St},fromPartial(Kt){var It,Gt;const St=Tt();return St.rewards=((It=Kt.rewards)==null?void 0:It.map(Ut=>ht.DelegationDelegatorReward.fromPartial(Ut)))||[],St.total=((Gt=Kt.total)==null?void 0:Gt.map(Ut=>mt.DecCoin.fromPartial(Ut)))||[],St}};function Mt(){return{delegatorAddress:""}}d.QueryDelegatorValidatorsRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Mt();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),St},fromPartial(Kt){const St=Mt();return St.delegatorAddress=Kt.delegatorAddress??"",St}};function jt(){return{validators:[]}}d.QueryDelegatorValidatorsResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.validators)St.uint32(10).string(It);return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=jt();for(;It.pos>>3){case 1:Ut.validators.push(It.string());break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{validators:Array.isArray(Kt==null?void 0:Kt.validators)?Kt.validators.map(St=>String(St)):[]}},toJSON(Kt){const St={};return Kt.validators?St.validators=Kt.validators.map(It=>It):St.validators=[],St},fromPartial(Kt){var It;const St=jt();return St.validators=((It=Kt.validators)==null?void 0:It.map(Gt=>Gt))||[],St}};function Ht(){return{delegatorAddress:""}}d.QueryDelegatorWithdrawAddressRequest={encode(Kt,St=vt.Writer.create()){return Kt.delegatorAddress!==""&&St.uint32(10).string(Kt.delegatorAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=Ht();for(;It.pos>>3){case 1:Ut.delegatorAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{delegatorAddress:(0,kt.isSet)(Kt.delegatorAddress)?String(Kt.delegatorAddress):""}},toJSON(Kt){const St={};return Kt.delegatorAddress!==void 0&&(St.delegatorAddress=Kt.delegatorAddress),St},fromPartial(Kt){const St=Ht();return St.delegatorAddress=Kt.delegatorAddress??"",St}};function an(){return{withdrawAddress:""}}d.QueryDelegatorWithdrawAddressResponse={encode(Kt,St=vt.Writer.create()){return Kt.withdrawAddress!==""&&St.uint32(10).string(Kt.withdrawAddress),St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=an();for(;It.pos>>3){case 1:Ut.withdrawAddress=It.string();break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{withdrawAddress:(0,kt.isSet)(Kt.withdrawAddress)?String(Kt.withdrawAddress):""}},toJSON(Kt){const St={};return Kt.withdrawAddress!==void 0&&(St.withdrawAddress=Kt.withdrawAddress),St},fromPartial(Kt){const St=an();return St.withdrawAddress=Kt.withdrawAddress??"",St}};function yt(){return{}}d.QueryCommunityPoolRequest={encode(Kt,St=vt.Writer.create()){return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=yt();for(;It.pos>>3){default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{}},toJSON(Kt){return{}},fromPartial(Kt){return yt()}};function $t(){return{pool:[]}}d.QueryCommunityPoolResponse={encode(Kt,St=vt.Writer.create()){for(const It of Kt.pool)mt.DecCoin.encode(It,St.uint32(10).fork()).ldelim();return St},decode(Kt,St){const It=Kt instanceof vt.Reader?Kt:new vt.Reader(Kt);let Gt=St===void 0?It.len:It.pos+St;const Ut=$t();for(;It.pos>>3){case 1:Ut.pool.push(mt.DecCoin.decode(It,It.uint32()));break;default:It.skipType(Vt&7);break}}return Ut},fromJSON(Kt){return{pool:Array.isArray(Kt==null?void 0:Kt.pool)?Kt.pool.map(St=>mt.DecCoin.fromJSON(St)):[]}},toJSON(Kt){const St={};return Kt.pool?St.pool=Kt.pool.map(It=>It?mt.DecCoin.toJSON(It):void 0):St.pool=[],St},fromPartial(Kt){var It;const St=$t();return St.pool=((It=Kt.pool)==null?void 0:It.map(Gt=>mt.DecCoin.fromPartial(Gt)))||[],St}};class Yt{constructor(St){this.rpc=St,this.Params=this.Params.bind(this),this.ValidatorOutstandingRewards=this.ValidatorOutstandingRewards.bind(this),this.ValidatorCommission=this.ValidatorCommission.bind(this),this.ValidatorSlashes=this.ValidatorSlashes.bind(this),this.DelegationRewards=this.DelegationRewards.bind(this),this.DelegationTotalRewards=this.DelegationTotalRewards.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorWithdrawAddress=this.DelegatorWithdrawAddress.bind(this),this.CommunityPool=this.CommunityPool.bind(this)}Params(St={}){const It=d.QueryParamsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","Params",It).then(Ut=>d.QueryParamsResponse.decode(new vt.Reader(Ut)))}ValidatorOutstandingRewards(St){const It=d.QueryValidatorOutstandingRewardsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorOutstandingRewards",It).then(Ut=>d.QueryValidatorOutstandingRewardsResponse.decode(new vt.Reader(Ut)))}ValidatorCommission(St){const It=d.QueryValidatorCommissionRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorCommission",It).then(Ut=>d.QueryValidatorCommissionResponse.decode(new vt.Reader(Ut)))}ValidatorSlashes(St){const It=d.QueryValidatorSlashesRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorSlashes",It).then(Ut=>d.QueryValidatorSlashesResponse.decode(new vt.Reader(Ut)))}DelegationRewards(St){const It=d.QueryDelegationRewardsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationRewards",It).then(Ut=>d.QueryDelegationRewardsResponse.decode(new vt.Reader(Ut)))}DelegationTotalRewards(St){const It=d.QueryDelegationTotalRewardsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationTotalRewards",It).then(Ut=>d.QueryDelegationTotalRewardsResponse.decode(new vt.Reader(Ut)))}DelegatorValidators(St){const It=d.QueryDelegatorValidatorsRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorValidators",It).then(Ut=>d.QueryDelegatorValidatorsResponse.decode(new vt.Reader(Ut)))}DelegatorWithdrawAddress(St){const It=d.QueryDelegatorWithdrawAddressRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorWithdrawAddress",It).then(Ut=>d.QueryDelegatorWithdrawAddressResponse.decode(new vt.Reader(Ut)))}CommunityPool(St={}){const It=d.QueryCommunityPoolRequest.encode(St).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","CommunityPool",It).then(Ut=>d.QueryCommunityPoolResponse.decode(new vt.Reader(Ut)))}}d.QueryClientImpl=Yt})(query$8);var query$7={},gov={},any={},__createBinding$6=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$6=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$6=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$6(b,d,dt);return __setModuleDefault$6(b,d),b};Object.defineProperty(any,"__esModule",{value:!0});any.Any=any.protobufPackage=void 0;const _m0$6=__importStar$6(minimal$2),helpers_1$6=helpers;any.protobufPackage="google.protobuf";function createBaseAny(){return{typeUrl:"",value:new Uint8Array}}any.Any={encode(d,b=_m0$6.Writer.create()){return d.typeUrl!==""&&b.uint32(10).string(d.typeUrl),d.value.length!==0&&b.uint32(18).bytes(d.value),b},decode(d,b){const dt=d instanceof _m0$6.Reader?d:new _m0$6.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseAny();for(;dt.pos>>3){case 1:lt.typeUrl=dt.string();break;case 2:lt.value=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{typeUrl:(0,helpers_1$6.isSet)(d.typeUrl)?String(d.typeUrl):"",value:(0,helpers_1$6.isSet)(d.value)?(0,helpers_1$6.bytesFromBase64)(d.value):new Uint8Array}},toJSON(d){const b={};return d.typeUrl!==void 0&&(b.typeUrl=d.typeUrl),d.value!==void 0&&(b.value=(0,helpers_1$6.base64FromBytes)(d.value!==void 0?d.value:new Uint8Array)),b},fromPartial(d){const b=createBaseAny();return b.typeUrl=d.typeUrl??"",b.value=d.value??new Uint8Array,b}};var timestamp={},__createBinding$5=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$5=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$5=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$5(b,d,dt);return __setModuleDefault$5(b,d),b};Object.defineProperty(timestamp,"__esModule",{value:!0});timestamp.Timestamp=timestamp.protobufPackage=void 0;const helpers_1$5=helpers,_m0$5=__importStar$5(minimal$2);timestamp.protobufPackage="google.protobuf";function createBaseTimestamp(){return{seconds:helpers_1$5.Long.ZERO,nanos:0}}timestamp.Timestamp={encode(d,b=_m0$5.Writer.create()){return d.seconds.isZero()||b.uint32(8).int64(d.seconds),d.nanos!==0&&b.uint32(16).int32(d.nanos),b},decode(d,b){const dt=d instanceof _m0$5.Reader?d:new _m0$5.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseTimestamp();for(;dt.pos>>3){case 1:lt.seconds=dt.int64();break;case 2:lt.nanos=dt.int32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{seconds:(0,helpers_1$5.isSet)(d.seconds)?helpers_1$5.Long.fromValue(d.seconds):helpers_1$5.Long.ZERO,nanos:(0,helpers_1$5.isSet)(d.nanos)?Number(d.nanos):0}},toJSON(d){const b={};return d.seconds!==void 0&&(b.seconds=(d.seconds||helpers_1$5.Long.ZERO).toString()),d.nanos!==void 0&&(b.nanos=Math.round(d.nanos)),b},fromPartial(d){const b=createBaseTimestamp();return b.seconds=d.seconds!==void 0&&d.seconds!==null?helpers_1$5.Long.fromValue(d.seconds):helpers_1$5.Long.ZERO,b.nanos=d.nanos??0,b}};var duration={},__createBinding$4=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$4=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$4=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$4(b,d,dt);return __setModuleDefault$4(b,d),b};Object.defineProperty(duration,"__esModule",{value:!0});duration.Duration=duration.protobufPackage=void 0;const helpers_1$4=helpers,_m0$4=__importStar$4(minimal$2);duration.protobufPackage="google.protobuf";function createBaseDuration(){return{seconds:helpers_1$4.Long.ZERO,nanos:0}}duration.Duration={encode(d,b=_m0$4.Writer.create()){return d.seconds.isZero()||b.uint32(8).int64(d.seconds),d.nanos!==0&&b.uint32(16).int32(d.nanos),b},decode(d,b){const dt=d instanceof _m0$4.Reader?d:new _m0$4.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseDuration();for(;dt.pos>>3){case 1:lt.seconds=dt.int64();break;case 2:lt.nanos=dt.int32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{seconds:(0,helpers_1$4.isSet)(d.seconds)?helpers_1$4.Long.fromValue(d.seconds):helpers_1$4.Long.ZERO,nanos:(0,helpers_1$4.isSet)(d.nanos)?Number(d.nanos):0}},toJSON(d){const b={};return d.seconds!==void 0&&(b.seconds=(d.seconds||helpers_1$4.Long.ZERO).toString()),d.nanos!==void 0&&(b.nanos=Math.round(d.nanos)),b},fromPartial(d){const b=createBaseDuration();return b.seconds=d.seconds!==void 0&&d.seconds!==null?helpers_1$4.Long.fromValue(d.seconds):helpers_1$4.Long.ZERO,b.nanos=d.nanos??0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.TallyParams=d.VotingParams=d.DepositParams=d.Vote=d.TallyResult=d.Proposal=d.Deposit=d.TextProposal=d.WeightedVoteOption=d.proposalStatusToJSON=d.proposalStatusFromJSON=d.ProposalStatus=d.voteOptionToJSON=d.voteOptionFromJSON=d.VoteOption=d.protobufPackage=void 0;const lt=coin$1,ht=any,mt=timestamp,vt=duration,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="cosmos.gov.v1beta1";var Jt;(function(yt){yt[yt.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",yt[yt.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",yt[yt.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",yt[yt.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",yt[yt.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.VoteOption||(d.VoteOption={}));function Zt(yt){switch(yt){case 0:case"VOTE_OPTION_UNSPECIFIED":return Jt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return Jt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return Jt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return Jt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return Jt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.voteOptionFromJSON=Zt;function Rt(yt){switch(yt){case Jt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case Jt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case Jt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case Jt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case Jt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.voteOptionToJSON=Rt;var nn;(function(yt){yt[yt.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",yt[yt.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",yt[yt.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",yt[yt.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",yt[yt.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",yt[yt.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",yt[yt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nn=d.ProposalStatus||(d.ProposalStatus={}));function Qt(yt){switch(yt){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return nn.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return nn.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return nn.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return nn.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return nn.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return nn.PROPOSAL_STATUS_FAILED;case-1:case"UNRECOGNIZED":default:return nn.UNRECOGNIZED}}d.proposalStatusFromJSON=Qt;function wt(yt){switch(yt){case nn.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case nn.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case nn.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case nn.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case nn.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case nn.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case nn.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.proposalStatusToJSON=wt;function Nt(){return{option:0,weight:""}}d.WeightedVoteOption={encode(yt,$t=kt.Writer.create()){return yt.option!==0&&$t.uint32(8).int32(yt.option),yt.weight!==""&&$t.uint32(18).string(yt.weight),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.option=Yt.int32();break;case 2:St.weight=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{option:(0,Pt.isSet)(yt.option)?Zt(yt.option):0,weight:(0,Pt.isSet)(yt.weight)?String(yt.weight):""}},toJSON(yt){const $t={};return yt.option!==void 0&&($t.option=Rt(yt.option)),yt.weight!==void 0&&($t.weight=yt.weight),$t},fromPartial(yt){const $t=Nt();return $t.option=yt.option??0,$t.weight=yt.weight??"",$t}};function xt(){return{title:"",description:""}}d.TextProposal={encode(yt,$t=kt.Writer.create()){return yt.title!==""&&$t.uint32(10).string(yt.title),yt.description!==""&&$t.uint32(18).string(yt.description),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.title=Yt.string();break;case 2:St.description=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{title:(0,Pt.isSet)(yt.title)?String(yt.title):"",description:(0,Pt.isSet)(yt.description)?String(yt.description):""}},toJSON(yt){const $t={};return yt.title!==void 0&&($t.title=yt.title),yt.description!==void 0&&($t.description=yt.description),$t},fromPartial(yt){const $t=xt();return $t.title=yt.title??"",$t.description=yt.description??"",$t}};function Et(){return{proposalId:Pt.Long.UZERO,depositor:"",amount:[]}}d.Deposit={encode(yt,$t=kt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.depositor!==""&&$t.uint32(18).string(yt.depositor);for(const Yt of yt.amount)lt.Coin.encode(Yt,$t.uint32(26).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.depositor=Yt.string();break;case 3:St.amount.push(lt.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,Pt.isSet)(yt.proposalId)?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,depositor:(0,Pt.isSet)(yt.depositor)?String(yt.depositor):"",amount:Array.isArray(yt==null?void 0:yt.amount)?yt.amount.map($t=>lt.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||Pt.Long.UZERO).toString()),yt.depositor!==void 0&&($t.depositor=yt.depositor),yt.amount?$t.amount=yt.amount.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.amount=[],$t},fromPartial(yt){var Yt;const $t=Et();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,$t.depositor=yt.depositor??"",$t.amount=((Yt=yt.amount)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t}};function Bt(){return{proposalId:Pt.Long.UZERO,content:void 0,status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0}}d.Proposal={encode(yt,$t=kt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.content!==void 0&&ht.Any.encode(yt.content,$t.uint32(18).fork()).ldelim(),yt.status!==0&&$t.uint32(24).int32(yt.status),yt.finalTallyResult!==void 0&&d.TallyResult.encode(yt.finalTallyResult,$t.uint32(34).fork()).ldelim(),yt.submitTime!==void 0&&mt.Timestamp.encode(yt.submitTime,$t.uint32(42).fork()).ldelim(),yt.depositEndTime!==void 0&&mt.Timestamp.encode(yt.depositEndTime,$t.uint32(50).fork()).ldelim();for(const Yt of yt.totalDeposit)lt.Coin.encode(Yt,$t.uint32(58).fork()).ldelim();return yt.votingStartTime!==void 0&&mt.Timestamp.encode(yt.votingStartTime,$t.uint32(66).fork()).ldelim(),yt.votingEndTime!==void 0&&mt.Timestamp.encode(yt.votingEndTime,$t.uint32(74).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.content=ht.Any.decode(Yt,Yt.uint32());break;case 3:St.status=Yt.int32();break;case 4:St.finalTallyResult=d.TallyResult.decode(Yt,Yt.uint32());break;case 5:St.submitTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 6:St.depositEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 7:St.totalDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 8:St.votingStartTime=mt.Timestamp.decode(Yt,Yt.uint32());break;case 9:St.votingEndTime=mt.Timestamp.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,Pt.isSet)(yt.proposalId)?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,content:(0,Pt.isSet)(yt.content)?ht.Any.fromJSON(yt.content):void 0,status:(0,Pt.isSet)(yt.status)?Qt(yt.status):0,finalTallyResult:(0,Pt.isSet)(yt.finalTallyResult)?d.TallyResult.fromJSON(yt.finalTallyResult):void 0,submitTime:(0,Pt.isSet)(yt.submitTime)?(0,Pt.fromJsonTimestamp)(yt.submitTime):void 0,depositEndTime:(0,Pt.isSet)(yt.depositEndTime)?(0,Pt.fromJsonTimestamp)(yt.depositEndTime):void 0,totalDeposit:Array.isArray(yt==null?void 0:yt.totalDeposit)?yt.totalDeposit.map($t=>lt.Coin.fromJSON($t)):[],votingStartTime:(0,Pt.isSet)(yt.votingStartTime)?(0,Pt.fromJsonTimestamp)(yt.votingStartTime):void 0,votingEndTime:(0,Pt.isSet)(yt.votingEndTime)?(0,Pt.fromJsonTimestamp)(yt.votingEndTime):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||Pt.Long.UZERO).toString()),yt.content!==void 0&&($t.content=yt.content?ht.Any.toJSON(yt.content):void 0),yt.status!==void 0&&($t.status=wt(yt.status)),yt.finalTallyResult!==void 0&&($t.finalTallyResult=yt.finalTallyResult?d.TallyResult.toJSON(yt.finalTallyResult):void 0),yt.submitTime!==void 0&&($t.submitTime=(0,Pt.fromTimestamp)(yt.submitTime).toISOString()),yt.depositEndTime!==void 0&&($t.depositEndTime=(0,Pt.fromTimestamp)(yt.depositEndTime).toISOString()),yt.totalDeposit?$t.totalDeposit=yt.totalDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.totalDeposit=[],yt.votingStartTime!==void 0&&($t.votingStartTime=(0,Pt.fromTimestamp)(yt.votingStartTime).toISOString()),yt.votingEndTime!==void 0&&($t.votingEndTime=(0,Pt.fromTimestamp)(yt.votingEndTime).toISOString()),$t},fromPartial(yt){var Yt;const $t=Bt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,$t.content=yt.content!==void 0&&yt.content!==null?ht.Any.fromPartial(yt.content):void 0,$t.status=yt.status??0,$t.finalTallyResult=yt.finalTallyResult!==void 0&&yt.finalTallyResult!==null?d.TallyResult.fromPartial(yt.finalTallyResult):void 0,$t.submitTime=yt.submitTime!==void 0&&yt.submitTime!==null?mt.Timestamp.fromPartial(yt.submitTime):void 0,$t.depositEndTime=yt.depositEndTime!==void 0&&yt.depositEndTime!==null?mt.Timestamp.fromPartial(yt.depositEndTime):void 0,$t.totalDeposit=((Yt=yt.totalDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.votingStartTime=yt.votingStartTime!==void 0&&yt.votingStartTime!==null?mt.Timestamp.fromPartial(yt.votingStartTime):void 0,$t.votingEndTime=yt.votingEndTime!==void 0&&yt.votingEndTime!==null?mt.Timestamp.fromPartial(yt.votingEndTime):void 0,$t}};function Tt(){return{yes:"",abstain:"",no:"",noWithVeto:""}}d.TallyResult={encode(yt,$t=kt.Writer.create()){return yt.yes!==""&&$t.uint32(10).string(yt.yes),yt.abstain!==""&&$t.uint32(18).string(yt.abstain),yt.no!==""&&$t.uint32(26).string(yt.no),yt.noWithVeto!==""&&$t.uint32(34).string(yt.noWithVeto),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.yes=Yt.string();break;case 2:St.abstain=Yt.string();break;case 3:St.no=Yt.string();break;case 4:St.noWithVeto=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{yes:(0,Pt.isSet)(yt.yes)?String(yt.yes):"",abstain:(0,Pt.isSet)(yt.abstain)?String(yt.abstain):"",no:(0,Pt.isSet)(yt.no)?String(yt.no):"",noWithVeto:(0,Pt.isSet)(yt.noWithVeto)?String(yt.noWithVeto):""}},toJSON(yt){const $t={};return yt.yes!==void 0&&($t.yes=yt.yes),yt.abstain!==void 0&&($t.abstain=yt.abstain),yt.no!==void 0&&($t.no=yt.no),yt.noWithVeto!==void 0&&($t.noWithVeto=yt.noWithVeto),$t},fromPartial(yt){const $t=Tt();return $t.yes=yt.yes??"",$t.abstain=yt.abstain??"",$t.no=yt.no??"",$t.noWithVeto=yt.noWithVeto??"",$t}};function Mt(){return{proposalId:Pt.Long.UZERO,voter:"",option:0,options:[]}}d.Vote={encode(yt,$t=kt.Writer.create()){yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.voter!==""&&$t.uint32(18).string(yt.voter),yt.option!==0&&$t.uint32(24).int32(yt.option);for(const Yt of yt.options)d.WeightedVoteOption.encode(Yt,$t.uint32(34).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.voter=Yt.string();break;case 3:St.option=Yt.int32();break;case 4:St.options.push(d.WeightedVoteOption.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,Pt.isSet)(yt.proposalId)?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,voter:(0,Pt.isSet)(yt.voter)?String(yt.voter):"",option:(0,Pt.isSet)(yt.option)?Zt(yt.option):0,options:Array.isArray(yt==null?void 0:yt.options)?yt.options.map($t=>d.WeightedVoteOption.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||Pt.Long.UZERO).toString()),yt.voter!==void 0&&($t.voter=yt.voter),yt.option!==void 0&&($t.option=Rt(yt.option)),yt.options?$t.options=yt.options.map(Yt=>Yt?d.WeightedVoteOption.toJSON(Yt):void 0):$t.options=[],$t},fromPartial(yt){var Yt;const $t=Mt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?Pt.Long.fromValue(yt.proposalId):Pt.Long.UZERO,$t.voter=yt.voter??"",$t.option=yt.option??0,$t.options=((Yt=yt.options)==null?void 0:Yt.map(Kt=>d.WeightedVoteOption.fromPartial(Kt)))||[],$t}};function jt(){return{minDeposit:[],maxDepositPeriod:void 0}}d.DepositParams={encode(yt,$t=kt.Writer.create()){for(const Yt of yt.minDeposit)lt.Coin.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.maxDepositPeriod!==void 0&&vt.Duration.encode(yt.maxDepositPeriod,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.minDeposit.push(lt.Coin.decode(Yt,Yt.uint32()));break;case 2:St.maxDepositPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{minDeposit:Array.isArray(yt==null?void 0:yt.minDeposit)?yt.minDeposit.map($t=>lt.Coin.fromJSON($t)):[],maxDepositPeriod:(0,Pt.isSet)(yt.maxDepositPeriod)?vt.Duration.fromJSON(yt.maxDepositPeriod):void 0}},toJSON(yt){const $t={};return yt.minDeposit?$t.minDeposit=yt.minDeposit.map(Yt=>Yt?lt.Coin.toJSON(Yt):void 0):$t.minDeposit=[],yt.maxDepositPeriod!==void 0&&($t.maxDepositPeriod=yt.maxDepositPeriod?vt.Duration.toJSON(yt.maxDepositPeriod):void 0),$t},fromPartial(yt){var Yt;const $t=jt();return $t.minDeposit=((Yt=yt.minDeposit)==null?void 0:Yt.map(Kt=>lt.Coin.fromPartial(Kt)))||[],$t.maxDepositPeriod=yt.maxDepositPeriod!==void 0&&yt.maxDepositPeriod!==null?vt.Duration.fromPartial(yt.maxDepositPeriod):void 0,$t}};function Ht(){return{votingPeriod:void 0}}d.VotingParams={encode(yt,$t=kt.Writer.create()){return yt.votingPeriod!==void 0&&vt.Duration.encode(yt.votingPeriod,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.votingPeriod=vt.Duration.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votingPeriod:(0,Pt.isSet)(yt.votingPeriod)?vt.Duration.fromJSON(yt.votingPeriod):void 0}},toJSON(yt){const $t={};return yt.votingPeriod!==void 0&&($t.votingPeriod=yt.votingPeriod?vt.Duration.toJSON(yt.votingPeriod):void 0),$t},fromPartial(yt){const $t=Ht();return $t.votingPeriod=yt.votingPeriod!==void 0&&yt.votingPeriod!==null?vt.Duration.fromPartial(yt.votingPeriod):void 0,$t}};function an(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}d.TallyParams={encode(yt,$t=kt.Writer.create()){return yt.quorum.length!==0&&$t.uint32(10).bytes(yt.quorum),yt.threshold.length!==0&&$t.uint32(18).bytes(yt.threshold),yt.vetoThreshold.length!==0&&$t.uint32(26).bytes(yt.vetoThreshold),$t},decode(yt,$t){const Yt=yt instanceof kt.Reader?yt:new kt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=an();for(;Yt.pos>>3){case 1:St.quorum=Yt.bytes();break;case 2:St.threshold=Yt.bytes();break;case 3:St.vetoThreshold=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{quorum:(0,Pt.isSet)(yt.quorum)?(0,Pt.bytesFromBase64)(yt.quorum):new Uint8Array,threshold:(0,Pt.isSet)(yt.threshold)?(0,Pt.bytesFromBase64)(yt.threshold):new Uint8Array,vetoThreshold:(0,Pt.isSet)(yt.vetoThreshold)?(0,Pt.bytesFromBase64)(yt.vetoThreshold):new Uint8Array}},toJSON(yt){const $t={};return yt.quorum!==void 0&&($t.quorum=(0,Pt.base64FromBytes)(yt.quorum!==void 0?yt.quorum:new Uint8Array)),yt.threshold!==void 0&&($t.threshold=(0,Pt.base64FromBytes)(yt.threshold!==void 0?yt.threshold:new Uint8Array)),yt.vetoThreshold!==void 0&&($t.vetoThreshold=(0,Pt.base64FromBytes)(yt.vetoThreshold!==void 0?yt.vetoThreshold:new Uint8Array)),$t},fromPartial(yt){const $t=an();return $t.quorum=yt.quorum??new Uint8Array,$t.threshold=yt.threshold??new Uint8Array,$t.vetoThreshold=yt.vetoThreshold??new Uint8Array,$t}}})(gov);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryTallyResultResponse=d.QueryTallyResultRequest=d.QueryDepositsResponse=d.QueryDepositsRequest=d.QueryDepositResponse=d.QueryDepositRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryVotesResponse=d.QueryVotesRequest=d.QueryVoteResponse=d.QueryVoteRequest=d.QueryProposalsResponse=d.QueryProposalsRequest=d.QueryProposalResponse=d.QueryProposalRequest=d.protobufPackage=void 0;const lt=gov,ht=pagination$2,mt=helpers,vt=ct(minimal$2);d.protobufPackage="cosmos.gov.v1beta1";function kt(){return{proposalId:mt.Long.UZERO}}d.QueryProposalRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=kt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),$t},fromPartial(yt){const $t=kt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t}};function Pt(){return{proposal:void 0}}d.QueryProposalResponse={encode(yt,$t=vt.Writer.create()){return yt.proposal!==void 0&<.Proposal.encode(yt.proposal,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Pt();for(;Yt.pos>>3){case 1:St.proposal=lt.Proposal.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposal:(0,mt.isSet)(yt.proposal)?lt.Proposal.fromJSON(yt.proposal):void 0}},toJSON(yt){const $t={};return yt.proposal!==void 0&&($t.proposal=yt.proposal?lt.Proposal.toJSON(yt.proposal):void 0),$t},fromPartial(yt){const $t=Pt();return $t.proposal=yt.proposal!==void 0&&yt.proposal!==null?lt.Proposal.fromPartial(yt.proposal):void 0,$t}};function Jt(){return{proposalStatus:0,voter:"",depositor:"",pagination:void 0}}d.QueryProposalsRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalStatus!==0&&$t.uint32(8).int32(yt.proposalStatus),yt.voter!==""&&$t.uint32(18).string(yt.voter),yt.depositor!==""&&$t.uint32(26).string(yt.depositor),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(34).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.proposalStatus=Yt.int32();break;case 2:St.voter=Yt.string();break;case 3:St.depositor=Yt.string();break;case 4:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalStatus:(0,mt.isSet)(yt.proposalStatus)?(0,lt.proposalStatusFromJSON)(yt.proposalStatus):0,voter:(0,mt.isSet)(yt.voter)?String(yt.voter):"",depositor:(0,mt.isSet)(yt.depositor)?String(yt.depositor):"",pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalStatus!==void 0&&($t.proposalStatus=(0,lt.proposalStatusToJSON)(yt.proposalStatus)),yt.voter!==void 0&&($t.voter=yt.voter),yt.depositor!==void 0&&($t.depositor=yt.depositor),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Jt();return $t.proposalStatus=yt.proposalStatus??0,$t.voter=yt.voter??"",$t.depositor=yt.depositor??"",$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function Zt(){return{proposals:[],pagination:void 0}}d.QueryProposalsResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.proposals)lt.Proposal.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){case 1:St.proposals.push(lt.Proposal.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposals:Array.isArray(yt==null?void 0:yt.proposals)?yt.proposals.map($t=>lt.Proposal.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposals?$t.proposals=yt.proposals.map(Yt=>Yt?lt.Proposal.toJSON(Yt):void 0):$t.proposals=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=Zt();return $t.proposals=((Yt=yt.proposals)==null?void 0:Yt.map(Kt=>lt.Proposal.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function Rt(){return{proposalId:mt.Long.UZERO,voter:""}}d.QueryVoteRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.voter!==""&&$t.uint32(18).string(yt.voter),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.voter=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,voter:(0,mt.isSet)(yt.voter)?String(yt.voter):""}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.voter!==void 0&&($t.voter=yt.voter),$t},fromPartial(yt){const $t=Rt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.voter=yt.voter??"",$t}};function nn(){return{vote:void 0}}d.QueryVoteResponse={encode(yt,$t=vt.Writer.create()){return yt.vote!==void 0&<.Vote.encode(yt.vote,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.vote=lt.Vote.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{vote:(0,mt.isSet)(yt.vote)?lt.Vote.fromJSON(yt.vote):void 0}},toJSON(yt){const $t={};return yt.vote!==void 0&&($t.vote=yt.vote?lt.Vote.toJSON(yt.vote):void 0),$t},fromPartial(yt){const $t=nn();return $t.vote=yt.vote!==void 0&&yt.vote!==null?lt.Vote.fromPartial(yt.vote):void 0,$t}};function Qt(){return{proposalId:mt.Long.UZERO,pagination:void 0}}d.QueryVotesRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Qt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function wt(){return{votes:[],pagination:void 0}}d.QueryVotesResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.votes)lt.Vote.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.votes.push(lt.Vote.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votes:Array.isArray(yt==null?void 0:yt.votes)?yt.votes.map($t=>lt.Vote.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.votes?$t.votes=yt.votes.map(Yt=>Yt?lt.Vote.toJSON(Yt):void 0):$t.votes=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=wt();return $t.votes=((Yt=yt.votes)==null?void 0:Yt.map(Kt=>lt.Vote.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function Nt(){return{paramsType:""}}d.QueryParamsRequest={encode(yt,$t=vt.Writer.create()){return yt.paramsType!==""&&$t.uint32(10).string(yt.paramsType),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.paramsType=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{paramsType:(0,mt.isSet)(yt.paramsType)?String(yt.paramsType):""}},toJSON(yt){const $t={};return yt.paramsType!==void 0&&($t.paramsType=yt.paramsType),$t},fromPartial(yt){const $t=Nt();return $t.paramsType=yt.paramsType??"",$t}};function xt(){return{votingParams:void 0,depositParams:void 0,tallyParams:void 0}}d.QueryParamsResponse={encode(yt,$t=vt.Writer.create()){return yt.votingParams!==void 0&<.VotingParams.encode(yt.votingParams,$t.uint32(10).fork()).ldelim(),yt.depositParams!==void 0&<.DepositParams.encode(yt.depositParams,$t.uint32(18).fork()).ldelim(),yt.tallyParams!==void 0&<.TallyParams.encode(yt.tallyParams,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.votingParams=lt.VotingParams.decode(Yt,Yt.uint32());break;case 2:St.depositParams=lt.DepositParams.decode(Yt,Yt.uint32());break;case 3:St.tallyParams=lt.TallyParams.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{votingParams:(0,mt.isSet)(yt.votingParams)?lt.VotingParams.fromJSON(yt.votingParams):void 0,depositParams:(0,mt.isSet)(yt.depositParams)?lt.DepositParams.fromJSON(yt.depositParams):void 0,tallyParams:(0,mt.isSet)(yt.tallyParams)?lt.TallyParams.fromJSON(yt.tallyParams):void 0}},toJSON(yt){const $t={};return yt.votingParams!==void 0&&($t.votingParams=yt.votingParams?lt.VotingParams.toJSON(yt.votingParams):void 0),yt.depositParams!==void 0&&($t.depositParams=yt.depositParams?lt.DepositParams.toJSON(yt.depositParams):void 0),yt.tallyParams!==void 0&&($t.tallyParams=yt.tallyParams?lt.TallyParams.toJSON(yt.tallyParams):void 0),$t},fromPartial(yt){const $t=xt();return $t.votingParams=yt.votingParams!==void 0&&yt.votingParams!==null?lt.VotingParams.fromPartial(yt.votingParams):void 0,$t.depositParams=yt.depositParams!==void 0&&yt.depositParams!==null?lt.DepositParams.fromPartial(yt.depositParams):void 0,$t.tallyParams=yt.tallyParams!==void 0&&yt.tallyParams!==null?lt.TallyParams.fromPartial(yt.tallyParams):void 0,$t}};function Et(){return{proposalId:mt.Long.UZERO,depositor:""}}d.QueryDepositRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.depositor!==""&&$t.uint32(18).string(yt.depositor),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.depositor=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,depositor:(0,mt.isSet)(yt.depositor)?String(yt.depositor):""}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.depositor!==void 0&&($t.depositor=yt.depositor),$t},fromPartial(yt){const $t=Et();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.depositor=yt.depositor??"",$t}};function Bt(){return{deposit:void 0}}d.QueryDepositResponse={encode(yt,$t=vt.Writer.create()){return yt.deposit!==void 0&<.Deposit.encode(yt.deposit,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){case 1:St.deposit=lt.Deposit.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{deposit:(0,mt.isSet)(yt.deposit)?lt.Deposit.fromJSON(yt.deposit):void 0}},toJSON(yt){const $t={};return yt.deposit!==void 0&&($t.deposit=yt.deposit?lt.Deposit.toJSON(yt.deposit):void 0),$t},fromPartial(yt){const $t=Bt();return $t.deposit=yt.deposit!==void 0&&yt.deposit!==null?lt.Deposit.fromPartial(yt.deposit):void 0,$t}};function Tt(){return{proposalId:mt.Long.UZERO,pagination:void 0}}d.QueryDepositsRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),yt.pagination!==void 0&&ht.PageRequest.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;case 2:St.pagination=ht.PageRequest.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,pagination:(0,mt.isSet)(yt.pagination)?ht.PageRequest.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageRequest.toJSON(yt.pagination):void 0),$t},fromPartial(yt){const $t=Tt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageRequest.fromPartial(yt.pagination):void 0,$t}};function Mt(){return{deposits:[],pagination:void 0}}d.QueryDepositsResponse={encode(yt,$t=vt.Writer.create()){for(const Yt of yt.deposits)lt.Deposit.encode(Yt,$t.uint32(10).fork()).ldelim();return yt.pagination!==void 0&&ht.PageResponse.encode(yt.pagination,$t.uint32(18).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){case 1:St.deposits.push(lt.Deposit.decode(Yt,Yt.uint32()));break;case 2:St.pagination=ht.PageResponse.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{deposits:Array.isArray(yt==null?void 0:yt.deposits)?yt.deposits.map($t=>lt.Deposit.fromJSON($t)):[],pagination:(0,mt.isSet)(yt.pagination)?ht.PageResponse.fromJSON(yt.pagination):void 0}},toJSON(yt){const $t={};return yt.deposits?$t.deposits=yt.deposits.map(Yt=>Yt?lt.Deposit.toJSON(Yt):void 0):$t.deposits=[],yt.pagination!==void 0&&($t.pagination=yt.pagination?ht.PageResponse.toJSON(yt.pagination):void 0),$t},fromPartial(yt){var Yt;const $t=Mt();return $t.deposits=((Yt=yt.deposits)==null?void 0:Yt.map(Kt=>lt.Deposit.fromPartial(Kt)))||[],$t.pagination=yt.pagination!==void 0&&yt.pagination!==null?ht.PageResponse.fromPartial(yt.pagination):void 0,$t}};function jt(){return{proposalId:mt.Long.UZERO}}d.QueryTallyResultRequest={encode(yt,$t=vt.Writer.create()){return yt.proposalId.isZero()||$t.uint32(8).uint64(yt.proposalId),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.proposalId=Yt.uint64();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{proposalId:(0,mt.isSet)(yt.proposalId)?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO}},toJSON(yt){const $t={};return yt.proposalId!==void 0&&($t.proposalId=(yt.proposalId||mt.Long.UZERO).toString()),$t},fromPartial(yt){const $t=jt();return $t.proposalId=yt.proposalId!==void 0&&yt.proposalId!==null?mt.Long.fromValue(yt.proposalId):mt.Long.UZERO,$t}};function Ht(){return{tally:void 0}}d.QueryTallyResultResponse={encode(yt,$t=vt.Writer.create()){return yt.tally!==void 0&<.TallyResult.encode(yt.tally,$t.uint32(10).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof vt.Reader?yt:new vt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){case 1:St.tally=lt.TallyResult.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{tally:(0,mt.isSet)(yt.tally)?lt.TallyResult.fromJSON(yt.tally):void 0}},toJSON(yt){const $t={};return yt.tally!==void 0&&($t.tally=yt.tally?lt.TallyResult.toJSON(yt.tally):void 0),$t},fromPartial(yt){const $t=Ht();return $t.tally=yt.tally!==void 0&&yt.tally!==null?lt.TallyResult.fromPartial(yt.tally):void 0,$t}};class an{constructor($t){this.rpc=$t,this.Proposal=this.Proposal.bind(this),this.Proposals=this.Proposals.bind(this),this.Vote=this.Vote.bind(this),this.Votes=this.Votes.bind(this),this.Params=this.Params.bind(this),this.Deposit=this.Deposit.bind(this),this.Deposits=this.Deposits.bind(this),this.TallyResult=this.TallyResult.bind(this)}Proposal($t){const Yt=d.QueryProposalRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposal",Yt).then(St=>d.QueryProposalResponse.decode(new vt.Reader(St)))}Proposals($t){const Yt=d.QueryProposalsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposals",Yt).then(St=>d.QueryProposalsResponse.decode(new vt.Reader(St)))}Vote($t){const Yt=d.QueryVoteRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Vote",Yt).then(St=>d.QueryVoteResponse.decode(new vt.Reader(St)))}Votes($t){const Yt=d.QueryVotesRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Votes",Yt).then(St=>d.QueryVotesResponse.decode(new vt.Reader(St)))}Params($t){const Yt=d.QueryParamsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Params",Yt).then(St=>d.QueryParamsResponse.decode(new vt.Reader(St)))}Deposit($t){const Yt=d.QueryDepositRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposit",Yt).then(St=>d.QueryDepositResponse.decode(new vt.Reader(St)))}Deposits($t){const Yt=d.QueryDepositsRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposits",Yt).then(St=>d.QueryDepositsResponse.decode(new vt.Reader(St)))}TallyResult($t){const Yt=d.QueryTallyResultRequest.encode($t).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","TallyResult",Yt).then(St=>d.QueryTallyResultResponse.decode(new vt.Reader(St)))}}d.QueryClientImpl=an})(query$7);var query$6={},staking={},types$9={},proof={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn);var wt=Object.getOwnPropertyDescriptor(Rt,nn);(!wt||("get"in wt?!Rt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return Rt[nn]}}),Object.defineProperty(Zt,Qt,wt)}:function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn),Zt[Qt]=Rt[nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Zt,Rt){Object.defineProperty(Zt,"default",{enumerable:!0,value:Rt})}:function(Zt,Rt){Zt.default=Rt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Zt){if(Zt&&Zt.__esModule)return Zt;var Rt={};if(Zt!=null)for(var nn in Zt)nn!=="default"&&Object.prototype.hasOwnProperty.call(Zt,nn)&&b(Rt,Zt,nn);return dt(Rt,Zt),Rt};Object.defineProperty(d,"__esModule",{value:!0}),d.ProofOps=d.ProofOp=d.DominoOp=d.ValueOp=d.Proof=d.protobufPackage=void 0;const lt=helpers,ht=ct(minimal$2);d.protobufPackage="tendermint.crypto";function mt(){return{total:lt.Long.ZERO,index:lt.Long.ZERO,leafHash:new Uint8Array,aunts:[]}}d.Proof={encode(Zt,Rt=ht.Writer.create()){Zt.total.isZero()||Rt.uint32(8).int64(Zt.total),Zt.index.isZero()||Rt.uint32(16).int64(Zt.index),Zt.leafHash.length!==0&&Rt.uint32(26).bytes(Zt.leafHash);for(const nn of Zt.aunts)Rt.uint32(34).bytes(nn);return Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=mt();for(;nn.pos>>3){case 1:wt.total=nn.int64();break;case 2:wt.index=nn.int64();break;case 3:wt.leafHash=nn.bytes();break;case 4:wt.aunts.push(nn.bytes());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{total:(0,lt.isSet)(Zt.total)?lt.Long.fromValue(Zt.total):lt.Long.ZERO,index:(0,lt.isSet)(Zt.index)?lt.Long.fromValue(Zt.index):lt.Long.ZERO,leafHash:(0,lt.isSet)(Zt.leafHash)?(0,lt.bytesFromBase64)(Zt.leafHash):new Uint8Array,aunts:Array.isArray(Zt==null?void 0:Zt.aunts)?Zt.aunts.map(Rt=>(0,lt.bytesFromBase64)(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.total!==void 0&&(Rt.total=(Zt.total||lt.Long.ZERO).toString()),Zt.index!==void 0&&(Rt.index=(Zt.index||lt.Long.ZERO).toString()),Zt.leafHash!==void 0&&(Rt.leafHash=(0,lt.base64FromBytes)(Zt.leafHash!==void 0?Zt.leafHash:new Uint8Array)),Zt.aunts?Rt.aunts=Zt.aunts.map(nn=>(0,lt.base64FromBytes)(nn!==void 0?nn:new Uint8Array)):Rt.aunts=[],Rt},fromPartial(Zt){var nn;const Rt=mt();return Rt.total=Zt.total!==void 0&&Zt.total!==null?lt.Long.fromValue(Zt.total):lt.Long.ZERO,Rt.index=Zt.index!==void 0&&Zt.index!==null?lt.Long.fromValue(Zt.index):lt.Long.ZERO,Rt.leafHash=Zt.leafHash??new Uint8Array,Rt.aunts=((nn=Zt.aunts)==null?void 0:nn.map(Qt=>Qt))||[],Rt}};function vt(){return{key:new Uint8Array,proof:void 0}}d.ValueOp={encode(Zt,Rt=ht.Writer.create()){return Zt.key.length!==0&&Rt.uint32(10).bytes(Zt.key),Zt.proof!==void 0&&d.Proof.encode(Zt.proof,Rt.uint32(18).fork()).ldelim(),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=vt();for(;nn.pos>>3){case 1:wt.key=nn.bytes();break;case 2:wt.proof=d.Proof.decode(nn,nn.uint32());break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{key:(0,lt.isSet)(Zt.key)?(0,lt.bytesFromBase64)(Zt.key):new Uint8Array,proof:(0,lt.isSet)(Zt.proof)?d.Proof.fromJSON(Zt.proof):void 0}},toJSON(Zt){const Rt={};return Zt.key!==void 0&&(Rt.key=(0,lt.base64FromBytes)(Zt.key!==void 0?Zt.key:new Uint8Array)),Zt.proof!==void 0&&(Rt.proof=Zt.proof?d.Proof.toJSON(Zt.proof):void 0),Rt},fromPartial(Zt){const Rt=vt();return Rt.key=Zt.key??new Uint8Array,Rt.proof=Zt.proof!==void 0&&Zt.proof!==null?d.Proof.fromPartial(Zt.proof):void 0,Rt}};function kt(){return{key:"",input:"",output:""}}d.DominoOp={encode(Zt,Rt=ht.Writer.create()){return Zt.key!==""&&Rt.uint32(10).string(Zt.key),Zt.input!==""&&Rt.uint32(18).string(Zt.input),Zt.output!==""&&Rt.uint32(26).string(Zt.output),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=kt();for(;nn.pos>>3){case 1:wt.key=nn.string();break;case 2:wt.input=nn.string();break;case 3:wt.output=nn.string();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{key:(0,lt.isSet)(Zt.key)?String(Zt.key):"",input:(0,lt.isSet)(Zt.input)?String(Zt.input):"",output:(0,lt.isSet)(Zt.output)?String(Zt.output):""}},toJSON(Zt){const Rt={};return Zt.key!==void 0&&(Rt.key=Zt.key),Zt.input!==void 0&&(Rt.input=Zt.input),Zt.output!==void 0&&(Rt.output=Zt.output),Rt},fromPartial(Zt){const Rt=kt();return Rt.key=Zt.key??"",Rt.input=Zt.input??"",Rt.output=Zt.output??"",Rt}};function Pt(){return{type:"",key:new Uint8Array,data:new Uint8Array}}d.ProofOp={encode(Zt,Rt=ht.Writer.create()){return Zt.type!==""&&Rt.uint32(10).string(Zt.type),Zt.key.length!==0&&Rt.uint32(18).bytes(Zt.key),Zt.data.length!==0&&Rt.uint32(26).bytes(Zt.data),Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Pt();for(;nn.pos>>3){case 1:wt.type=nn.string();break;case 2:wt.key=nn.bytes();break;case 3:wt.data=nn.bytes();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{type:(0,lt.isSet)(Zt.type)?String(Zt.type):"",key:(0,lt.isSet)(Zt.key)?(0,lt.bytesFromBase64)(Zt.key):new Uint8Array,data:(0,lt.isSet)(Zt.data)?(0,lt.bytesFromBase64)(Zt.data):new Uint8Array}},toJSON(Zt){const Rt={};return Zt.type!==void 0&&(Rt.type=Zt.type),Zt.key!==void 0&&(Rt.key=(0,lt.base64FromBytes)(Zt.key!==void 0?Zt.key:new Uint8Array)),Zt.data!==void 0&&(Rt.data=(0,lt.base64FromBytes)(Zt.data!==void 0?Zt.data:new Uint8Array)),Rt},fromPartial(Zt){const Rt=Pt();return Rt.type=Zt.type??"",Rt.key=Zt.key??new Uint8Array,Rt.data=Zt.data??new Uint8Array,Rt}};function Jt(){return{ops:[]}}d.ProofOps={encode(Zt,Rt=ht.Writer.create()){for(const nn of Zt.ops)d.ProofOp.encode(nn,Rt.uint32(10).fork()).ldelim();return Rt},decode(Zt,Rt){const nn=Zt instanceof ht.Reader?Zt:new ht.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Jt();for(;nn.pos>>3){case 1:wt.ops.push(d.ProofOp.decode(nn,nn.uint32()));break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{ops:Array.isArray(Zt==null?void 0:Zt.ops)?Zt.ops.map(Rt=>d.ProofOp.fromJSON(Rt)):[]}},toJSON(Zt){const Rt={};return Zt.ops?Rt.ops=Zt.ops.map(nn=>nn?d.ProofOp.toJSON(nn):void 0):Rt.ops=[],Rt},fromPartial(Zt){var nn;const Rt=Jt();return Rt.ops=((nn=Zt.ops)==null?void 0:nn.map(Qt=>d.ProofOp.fromPartial(Qt)))||[],Rt}}})(proof);var types$8={},__createBinding$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$3(b,d,dt);return __setModuleDefault$3(b,d),b};Object.defineProperty(types$8,"__esModule",{value:!0});types$8.Consensus=types$8.App=types$8.protobufPackage=void 0;const helpers_1$3=helpers,_m0$3=__importStar$3(minimal$2);types$8.protobufPackage="tendermint.version";function createBaseApp(){return{protocol:helpers_1$3.Long.UZERO,software:""}}types$8.App={encode(d,b=_m0$3.Writer.create()){return d.protocol.isZero()||b.uint32(8).uint64(d.protocol),d.software!==""&&b.uint32(18).string(d.software),b},decode(d,b){const dt=d instanceof _m0$3.Reader?d:new _m0$3.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseApp();for(;dt.pos>>3){case 1:lt.protocol=dt.uint64();break;case 2:lt.software=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{protocol:(0,helpers_1$3.isSet)(d.protocol)?helpers_1$3.Long.fromValue(d.protocol):helpers_1$3.Long.UZERO,software:(0,helpers_1$3.isSet)(d.software)?String(d.software):""}},toJSON(d){const b={};return d.protocol!==void 0&&(b.protocol=(d.protocol||helpers_1$3.Long.UZERO).toString()),d.software!==void 0&&(b.software=d.software),b},fromPartial(d){const b=createBaseApp();return b.protocol=d.protocol!==void 0&&d.protocol!==null?helpers_1$3.Long.fromValue(d.protocol):helpers_1$3.Long.UZERO,b.software=d.software??"",b}};function createBaseConsensus(){return{block:helpers_1$3.Long.UZERO,app:helpers_1$3.Long.UZERO}}types$8.Consensus={encode(d,b=_m0$3.Writer.create()){return d.block.isZero()||b.uint32(8).uint64(d.block),d.app.isZero()||b.uint32(16).uint64(d.app),b},decode(d,b){const dt=d instanceof _m0$3.Reader?d:new _m0$3.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseConsensus();for(;dt.pos>>3){case 1:lt.block=dt.uint64();break;case 2:lt.app=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{block:(0,helpers_1$3.isSet)(d.block)?helpers_1$3.Long.fromValue(d.block):helpers_1$3.Long.UZERO,app:(0,helpers_1$3.isSet)(d.app)?helpers_1$3.Long.fromValue(d.app):helpers_1$3.Long.UZERO}},toJSON(d){const b={};return d.block!==void 0&&(b.block=(d.block||helpers_1$3.Long.UZERO).toString()),d.app!==void 0&&(b.app=(d.app||helpers_1$3.Long.UZERO).toString()),b},fromPartial(d){const b=createBaseConsensus();return b.block=d.block!==void 0&&d.block!==null?helpers_1$3.Long.fromValue(d.block):helpers_1$3.Long.UZERO,b.app=d.app!==void 0&&d.app!==null?helpers_1$3.Long.fromValue(d.app):helpers_1$3.Long.UZERO,b}};var validator$1={},keys={},__createBinding$2=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$2=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$2=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$2(b,d,dt);return __setModuleDefault$2(b,d),b};Object.defineProperty(keys,"__esModule",{value:!0});keys.PublicKey=keys.protobufPackage=void 0;const _m0$2=__importStar$2(minimal$2),helpers_1$2=helpers;keys.protobufPackage="tendermint.crypto";function createBasePublicKey(){return{ed25519:void 0,secp256k1:void 0}}keys.PublicKey={encode(d,b=_m0$2.Writer.create()){return d.ed25519!==void 0&&b.uint32(10).bytes(d.ed25519),d.secp256k1!==void 0&&b.uint32(18).bytes(d.secp256k1),b},decode(d,b){const dt=d instanceof _m0$2.Reader?d:new _m0$2.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePublicKey();for(;dt.pos>>3){case 1:lt.ed25519=dt.bytes();break;case 2:lt.secp256k1=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{ed25519:(0,helpers_1$2.isSet)(d.ed25519)?(0,helpers_1$2.bytesFromBase64)(d.ed25519):void 0,secp256k1:(0,helpers_1$2.isSet)(d.secp256k1)?(0,helpers_1$2.bytesFromBase64)(d.secp256k1):void 0}},toJSON(d){const b={};return d.ed25519!==void 0&&(b.ed25519=d.ed25519!==void 0?(0,helpers_1$2.base64FromBytes)(d.ed25519):void 0),d.secp256k1!==void 0&&(b.secp256k1=d.secp256k1!==void 0?(0,helpers_1$2.base64FromBytes)(d.secp256k1):void 0),b},fromPartial(d){const b=createBasePublicKey();return b.ed25519=d.ed25519??void 0,b.secp256k1=d.secp256k1??void 0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Jt,Zt,Rt,nn){nn===void 0&&(nn=Rt);var Qt=Object.getOwnPropertyDescriptor(Zt,Rt);(!Qt||("get"in Qt?!Zt.__esModule:Qt.writable||Qt.configurable))&&(Qt={enumerable:!0,get:function(){return Zt[Rt]}}),Object.defineProperty(Jt,nn,Qt)}:function(Jt,Zt,Rt,nn){nn===void 0&&(nn=Rt),Jt[nn]=Zt[Rt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Jt,Zt){Object.defineProperty(Jt,"default",{enumerable:!0,value:Zt})}:function(Jt,Zt){Jt.default=Zt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Jt){if(Jt&&Jt.__esModule)return Jt;var Zt={};if(Jt!=null)for(var Rt in Jt)Rt!=="default"&&Object.prototype.hasOwnProperty.call(Jt,Rt)&&b(Zt,Jt,Rt);return dt(Zt,Jt),Zt};Object.defineProperty(d,"__esModule",{value:!0}),d.SimpleValidator=d.Validator=d.ValidatorSet=d.protobufPackage=void 0;const lt=keys,ht=helpers,mt=ct(minimal$2);d.protobufPackage="tendermint.types";function vt(){return{validators:[],proposer:void 0,totalVotingPower:ht.Long.ZERO}}d.ValidatorSet={encode(Jt,Zt=mt.Writer.create()){for(const Rt of Jt.validators)d.Validator.encode(Rt,Zt.uint32(10).fork()).ldelim();return Jt.proposer!==void 0&&d.Validator.encode(Jt.proposer,Zt.uint32(18).fork()).ldelim(),Jt.totalVotingPower.isZero()||Zt.uint32(24).int64(Jt.totalVotingPower),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=vt();for(;Rt.pos>>3){case 1:Qt.validators.push(d.Validator.decode(Rt,Rt.uint32()));break;case 2:Qt.proposer=d.Validator.decode(Rt,Rt.uint32());break;case 3:Qt.totalVotingPower=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{validators:Array.isArray(Jt==null?void 0:Jt.validators)?Jt.validators.map(Zt=>d.Validator.fromJSON(Zt)):[],proposer:(0,ht.isSet)(Jt.proposer)?d.Validator.fromJSON(Jt.proposer):void 0,totalVotingPower:(0,ht.isSet)(Jt.totalVotingPower)?ht.Long.fromValue(Jt.totalVotingPower):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.validators?Zt.validators=Jt.validators.map(Rt=>Rt?d.Validator.toJSON(Rt):void 0):Zt.validators=[],Jt.proposer!==void 0&&(Zt.proposer=Jt.proposer?d.Validator.toJSON(Jt.proposer):void 0),Jt.totalVotingPower!==void 0&&(Zt.totalVotingPower=(Jt.totalVotingPower||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){var Rt;const Zt=vt();return Zt.validators=((Rt=Jt.validators)==null?void 0:Rt.map(nn=>d.Validator.fromPartial(nn)))||[],Zt.proposer=Jt.proposer!==void 0&&Jt.proposer!==null?d.Validator.fromPartial(Jt.proposer):void 0,Zt.totalVotingPower=Jt.totalVotingPower!==void 0&&Jt.totalVotingPower!==null?ht.Long.fromValue(Jt.totalVotingPower):ht.Long.ZERO,Zt}};function kt(){return{address:new Uint8Array,pubKey:void 0,votingPower:ht.Long.ZERO,proposerPriority:ht.Long.ZERO}}d.Validator={encode(Jt,Zt=mt.Writer.create()){return Jt.address.length!==0&&Zt.uint32(10).bytes(Jt.address),Jt.pubKey!==void 0&<.PublicKey.encode(Jt.pubKey,Zt.uint32(18).fork()).ldelim(),Jt.votingPower.isZero()||Zt.uint32(24).int64(Jt.votingPower),Jt.proposerPriority.isZero()||Zt.uint32(32).int64(Jt.proposerPriority),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=kt();for(;Rt.pos>>3){case 1:Qt.address=Rt.bytes();break;case 2:Qt.pubKey=lt.PublicKey.decode(Rt,Rt.uint32());break;case 3:Qt.votingPower=Rt.int64();break;case 4:Qt.proposerPriority=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{address:(0,ht.isSet)(Jt.address)?(0,ht.bytesFromBase64)(Jt.address):new Uint8Array,pubKey:(0,ht.isSet)(Jt.pubKey)?lt.PublicKey.fromJSON(Jt.pubKey):void 0,votingPower:(0,ht.isSet)(Jt.votingPower)?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,proposerPriority:(0,ht.isSet)(Jt.proposerPriority)?ht.Long.fromValue(Jt.proposerPriority):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.address!==void 0&&(Zt.address=(0,ht.base64FromBytes)(Jt.address!==void 0?Jt.address:new Uint8Array)),Jt.pubKey!==void 0&&(Zt.pubKey=Jt.pubKey?lt.PublicKey.toJSON(Jt.pubKey):void 0),Jt.votingPower!==void 0&&(Zt.votingPower=(Jt.votingPower||ht.Long.ZERO).toString()),Jt.proposerPriority!==void 0&&(Zt.proposerPriority=(Jt.proposerPriority||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){const Zt=kt();return Zt.address=Jt.address??new Uint8Array,Zt.pubKey=Jt.pubKey!==void 0&&Jt.pubKey!==null?lt.PublicKey.fromPartial(Jt.pubKey):void 0,Zt.votingPower=Jt.votingPower!==void 0&&Jt.votingPower!==null?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,Zt.proposerPriority=Jt.proposerPriority!==void 0&&Jt.proposerPriority!==null?ht.Long.fromValue(Jt.proposerPriority):ht.Long.ZERO,Zt}};function Pt(){return{pubKey:void 0,votingPower:ht.Long.ZERO}}d.SimpleValidator={encode(Jt,Zt=mt.Writer.create()){return Jt.pubKey!==void 0&<.PublicKey.encode(Jt.pubKey,Zt.uint32(10).fork()).ldelim(),Jt.votingPower.isZero()||Zt.uint32(16).int64(Jt.votingPower),Zt},decode(Jt,Zt){const Rt=Jt instanceof mt.Reader?Jt:new mt.Reader(Jt);let nn=Zt===void 0?Rt.len:Rt.pos+Zt;const Qt=Pt();for(;Rt.pos>>3){case 1:Qt.pubKey=lt.PublicKey.decode(Rt,Rt.uint32());break;case 2:Qt.votingPower=Rt.int64();break;default:Rt.skipType(wt&7);break}}return Qt},fromJSON(Jt){return{pubKey:(0,ht.isSet)(Jt.pubKey)?lt.PublicKey.fromJSON(Jt.pubKey):void 0,votingPower:(0,ht.isSet)(Jt.votingPower)?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO}},toJSON(Jt){const Zt={};return Jt.pubKey!==void 0&&(Zt.pubKey=Jt.pubKey?lt.PublicKey.toJSON(Jt.pubKey):void 0),Jt.votingPower!==void 0&&(Zt.votingPower=(Jt.votingPower||ht.Long.ZERO).toString()),Zt},fromPartial(Jt){const Zt=Pt();return Zt.pubKey=Jt.pubKey!==void 0&&Jt.pubKey!==null?lt.PublicKey.fromPartial(Jt.pubKey):void 0,Zt.votingPower=Jt.votingPower!==void 0&&Jt.votingPower!==null?ht.Long.fromValue(Jt.votingPower):ht.Long.ZERO,Zt}}})(validator$1);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt);var Vt=Object.getOwnPropertyDescriptor(It,Gt);(!Vt||("get"in Vt?!It.__esModule:Vt.writable||Vt.configurable))&&(Vt={enumerable:!0,get:function(){return It[Gt]}}),Object.defineProperty(St,Ut,Vt)}:function(St,It,Gt,Ut){Ut===void 0&&(Ut=Gt),St[Ut]=It[Gt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,It){Object.defineProperty(St,"default",{enumerable:!0,value:It})}:function(St,It){St.default=It}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var It={};if(St!=null)for(var Gt in St)Gt!=="default"&&Object.prototype.hasOwnProperty.call(St,Gt)&&b(It,St,Gt);return dt(It,St),It};Object.defineProperty(d,"__esModule",{value:!0}),d.TxProof=d.BlockMeta=d.LightBlock=d.SignedHeader=d.Proposal=d.CommitSig=d.Commit=d.Vote=d.Data=d.Header=d.BlockID=d.Part=d.PartSetHeader=d.signedMsgTypeToJSON=d.signedMsgTypeFromJSON=d.SignedMsgType=d.blockIDFlagToJSON=d.blockIDFlagFromJSON=d.BlockIDFlag=d.protobufPackage=void 0;const lt=proof,ht=types$8,mt=timestamp,vt=validator$1,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="tendermint.types";var Jt;(function(St){St[St.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",St[St.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",St[St.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",St[St.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.BlockIDFlag||(d.BlockIDFlag={}));function Zt(St){switch(St){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return Jt.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return Jt.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return Jt.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return Jt.BLOCK_ID_FLAG_NIL;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.blockIDFlagFromJSON=Zt;function Rt(St){switch(St){case Jt.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case Jt.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case Jt.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case Jt.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.blockIDFlagToJSON=Rt;var nn;(function(St){St[St.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",St[St.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",St[St.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",St[St.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",St[St.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nn=d.SignedMsgType||(d.SignedMsgType={}));function Qt(St){switch(St){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return nn.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return nn.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return nn.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return nn.SIGNED_MSG_TYPE_PROPOSAL;case-1:case"UNRECOGNIZED":default:return nn.UNRECOGNIZED}}d.signedMsgTypeFromJSON=Qt;function wt(St){switch(St){case nn.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case nn.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case nn.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case nn.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";case nn.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.signedMsgTypeToJSON=wt;function Nt(){return{total:0,hash:new Uint8Array}}d.PartSetHeader={encode(St,It=kt.Writer.create()){return St.total!==0&&It.uint32(8).uint32(St.total),St.hash.length!==0&&It.uint32(18).bytes(St.hash),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Nt();for(;Gt.pos>>3){case 1:Vt.total=Gt.uint32();break;case 2:Vt.hash=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{total:(0,Pt.isSet)(St.total)?Number(St.total):0,hash:(0,Pt.isSet)(St.hash)?(0,Pt.bytesFromBase64)(St.hash):new Uint8Array}},toJSON(St){const It={};return St.total!==void 0&&(It.total=Math.round(St.total)),St.hash!==void 0&&(It.hash=(0,Pt.base64FromBytes)(St.hash!==void 0?St.hash:new Uint8Array)),It},fromPartial(St){const It=Nt();return It.total=St.total??0,It.hash=St.hash??new Uint8Array,It}};function xt(){return{index:0,bytes:new Uint8Array,proof:void 0}}d.Part={encode(St,It=kt.Writer.create()){return St.index!==0&&It.uint32(8).uint32(St.index),St.bytes.length!==0&&It.uint32(18).bytes(St.bytes),St.proof!==void 0&<.Proof.encode(St.proof,It.uint32(26).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=xt();for(;Gt.pos>>3){case 1:Vt.index=Gt.uint32();break;case 2:Vt.bytes=Gt.bytes();break;case 3:Vt.proof=lt.Proof.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{index:(0,Pt.isSet)(St.index)?Number(St.index):0,bytes:(0,Pt.isSet)(St.bytes)?(0,Pt.bytesFromBase64)(St.bytes):new Uint8Array,proof:(0,Pt.isSet)(St.proof)?lt.Proof.fromJSON(St.proof):void 0}},toJSON(St){const It={};return St.index!==void 0&&(It.index=Math.round(St.index)),St.bytes!==void 0&&(It.bytes=(0,Pt.base64FromBytes)(St.bytes!==void 0?St.bytes:new Uint8Array)),St.proof!==void 0&&(It.proof=St.proof?lt.Proof.toJSON(St.proof):void 0),It},fromPartial(St){const It=xt();return It.index=St.index??0,It.bytes=St.bytes??new Uint8Array,It.proof=St.proof!==void 0&&St.proof!==null?lt.Proof.fromPartial(St.proof):void 0,It}};function Et(){return{hash:new Uint8Array,partSetHeader:void 0}}d.BlockID={encode(St,It=kt.Writer.create()){return St.hash.length!==0&&It.uint32(10).bytes(St.hash),St.partSetHeader!==void 0&&d.PartSetHeader.encode(St.partSetHeader,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Et();for(;Gt.pos>>3){case 1:Vt.hash=Gt.bytes();break;case 2:Vt.partSetHeader=d.PartSetHeader.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{hash:(0,Pt.isSet)(St.hash)?(0,Pt.bytesFromBase64)(St.hash):new Uint8Array,partSetHeader:(0,Pt.isSet)(St.partSetHeader)?d.PartSetHeader.fromJSON(St.partSetHeader):void 0}},toJSON(St){const It={};return St.hash!==void 0&&(It.hash=(0,Pt.base64FromBytes)(St.hash!==void 0?St.hash:new Uint8Array)),St.partSetHeader!==void 0&&(It.partSetHeader=St.partSetHeader?d.PartSetHeader.toJSON(St.partSetHeader):void 0),It},fromPartial(St){const It=Et();return It.hash=St.hash??new Uint8Array,It.partSetHeader=St.partSetHeader!==void 0&&St.partSetHeader!==null?d.PartSetHeader.fromPartial(St.partSetHeader):void 0,It}};function Bt(){return{version:void 0,chainId:"",height:Pt.Long.ZERO,time:void 0,lastBlockId:void 0,lastCommitHash:new Uint8Array,dataHash:new Uint8Array,validatorsHash:new Uint8Array,nextValidatorsHash:new Uint8Array,consensusHash:new Uint8Array,appHash:new Uint8Array,lastResultsHash:new Uint8Array,evidenceHash:new Uint8Array,proposerAddress:new Uint8Array}}d.Header={encode(St,It=kt.Writer.create()){return St.version!==void 0&&ht.Consensus.encode(St.version,It.uint32(10).fork()).ldelim(),St.chainId!==""&&It.uint32(18).string(St.chainId),St.height.isZero()||It.uint32(24).int64(St.height),St.time!==void 0&&mt.Timestamp.encode(St.time,It.uint32(34).fork()).ldelim(),St.lastBlockId!==void 0&&d.BlockID.encode(St.lastBlockId,It.uint32(42).fork()).ldelim(),St.lastCommitHash.length!==0&&It.uint32(50).bytes(St.lastCommitHash),St.dataHash.length!==0&&It.uint32(58).bytes(St.dataHash),St.validatorsHash.length!==0&&It.uint32(66).bytes(St.validatorsHash),St.nextValidatorsHash.length!==0&&It.uint32(74).bytes(St.nextValidatorsHash),St.consensusHash.length!==0&&It.uint32(82).bytes(St.consensusHash),St.appHash.length!==0&&It.uint32(90).bytes(St.appHash),St.lastResultsHash.length!==0&&It.uint32(98).bytes(St.lastResultsHash),St.evidenceHash.length!==0&&It.uint32(106).bytes(St.evidenceHash),St.proposerAddress.length!==0&&It.uint32(114).bytes(St.proposerAddress),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Bt();for(;Gt.pos>>3){case 1:Vt.version=ht.Consensus.decode(Gt,Gt.uint32());break;case 2:Vt.chainId=Gt.string();break;case 3:Vt.height=Gt.int64();break;case 4:Vt.time=mt.Timestamp.decode(Gt,Gt.uint32());break;case 5:Vt.lastBlockId=d.BlockID.decode(Gt,Gt.uint32());break;case 6:Vt.lastCommitHash=Gt.bytes();break;case 7:Vt.dataHash=Gt.bytes();break;case 8:Vt.validatorsHash=Gt.bytes();break;case 9:Vt.nextValidatorsHash=Gt.bytes();break;case 10:Vt.consensusHash=Gt.bytes();break;case 11:Vt.appHash=Gt.bytes();break;case 12:Vt.lastResultsHash=Gt.bytes();break;case 13:Vt.evidenceHash=Gt.bytes();break;case 14:Vt.proposerAddress=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{version:(0,Pt.isSet)(St.version)?ht.Consensus.fromJSON(St.version):void 0,chainId:(0,Pt.isSet)(St.chainId)?String(St.chainId):"",height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,time:(0,Pt.isSet)(St.time)?(0,Pt.fromJsonTimestamp)(St.time):void 0,lastBlockId:(0,Pt.isSet)(St.lastBlockId)?d.BlockID.fromJSON(St.lastBlockId):void 0,lastCommitHash:(0,Pt.isSet)(St.lastCommitHash)?(0,Pt.bytesFromBase64)(St.lastCommitHash):new Uint8Array,dataHash:(0,Pt.isSet)(St.dataHash)?(0,Pt.bytesFromBase64)(St.dataHash):new Uint8Array,validatorsHash:(0,Pt.isSet)(St.validatorsHash)?(0,Pt.bytesFromBase64)(St.validatorsHash):new Uint8Array,nextValidatorsHash:(0,Pt.isSet)(St.nextValidatorsHash)?(0,Pt.bytesFromBase64)(St.nextValidatorsHash):new Uint8Array,consensusHash:(0,Pt.isSet)(St.consensusHash)?(0,Pt.bytesFromBase64)(St.consensusHash):new Uint8Array,appHash:(0,Pt.isSet)(St.appHash)?(0,Pt.bytesFromBase64)(St.appHash):new Uint8Array,lastResultsHash:(0,Pt.isSet)(St.lastResultsHash)?(0,Pt.bytesFromBase64)(St.lastResultsHash):new Uint8Array,evidenceHash:(0,Pt.isSet)(St.evidenceHash)?(0,Pt.bytesFromBase64)(St.evidenceHash):new Uint8Array,proposerAddress:(0,Pt.isSet)(St.proposerAddress)?(0,Pt.bytesFromBase64)(St.proposerAddress):new Uint8Array}},toJSON(St){const It={};return St.version!==void 0&&(It.version=St.version?ht.Consensus.toJSON(St.version):void 0),St.chainId!==void 0&&(It.chainId=St.chainId),St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.time!==void 0&&(It.time=(0,Pt.fromTimestamp)(St.time).toISOString()),St.lastBlockId!==void 0&&(It.lastBlockId=St.lastBlockId?d.BlockID.toJSON(St.lastBlockId):void 0),St.lastCommitHash!==void 0&&(It.lastCommitHash=(0,Pt.base64FromBytes)(St.lastCommitHash!==void 0?St.lastCommitHash:new Uint8Array)),St.dataHash!==void 0&&(It.dataHash=(0,Pt.base64FromBytes)(St.dataHash!==void 0?St.dataHash:new Uint8Array)),St.validatorsHash!==void 0&&(It.validatorsHash=(0,Pt.base64FromBytes)(St.validatorsHash!==void 0?St.validatorsHash:new Uint8Array)),St.nextValidatorsHash!==void 0&&(It.nextValidatorsHash=(0,Pt.base64FromBytes)(St.nextValidatorsHash!==void 0?St.nextValidatorsHash:new Uint8Array)),St.consensusHash!==void 0&&(It.consensusHash=(0,Pt.base64FromBytes)(St.consensusHash!==void 0?St.consensusHash:new Uint8Array)),St.appHash!==void 0&&(It.appHash=(0,Pt.base64FromBytes)(St.appHash!==void 0?St.appHash:new Uint8Array)),St.lastResultsHash!==void 0&&(It.lastResultsHash=(0,Pt.base64FromBytes)(St.lastResultsHash!==void 0?St.lastResultsHash:new Uint8Array)),St.evidenceHash!==void 0&&(It.evidenceHash=(0,Pt.base64FromBytes)(St.evidenceHash!==void 0?St.evidenceHash:new Uint8Array)),St.proposerAddress!==void 0&&(It.proposerAddress=(0,Pt.base64FromBytes)(St.proposerAddress!==void 0?St.proposerAddress:new Uint8Array)),It},fromPartial(St){const It=Bt();return It.version=St.version!==void 0&&St.version!==null?ht.Consensus.fromPartial(St.version):void 0,It.chainId=St.chainId??"",It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.time=St.time!==void 0&&St.time!==null?mt.Timestamp.fromPartial(St.time):void 0,It.lastBlockId=St.lastBlockId!==void 0&&St.lastBlockId!==null?d.BlockID.fromPartial(St.lastBlockId):void 0,It.lastCommitHash=St.lastCommitHash??new Uint8Array,It.dataHash=St.dataHash??new Uint8Array,It.validatorsHash=St.validatorsHash??new Uint8Array,It.nextValidatorsHash=St.nextValidatorsHash??new Uint8Array,It.consensusHash=St.consensusHash??new Uint8Array,It.appHash=St.appHash??new Uint8Array,It.lastResultsHash=St.lastResultsHash??new Uint8Array,It.evidenceHash=St.evidenceHash??new Uint8Array,It.proposerAddress=St.proposerAddress??new Uint8Array,It}};function Tt(){return{txs:[]}}d.Data={encode(St,It=kt.Writer.create()){for(const Gt of St.txs)It.uint32(10).bytes(Gt);return It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Tt();for(;Gt.pos>>3){case 1:Vt.txs.push(Gt.bytes());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{txs:Array.isArray(St==null?void 0:St.txs)?St.txs.map(It=>(0,Pt.bytesFromBase64)(It)):[]}},toJSON(St){const It={};return St.txs?It.txs=St.txs.map(Gt=>(0,Pt.base64FromBytes)(Gt!==void 0?Gt:new Uint8Array)):It.txs=[],It},fromPartial(St){var Gt;const It=Tt();return It.txs=((Gt=St.txs)==null?void 0:Gt.map(Ut=>Ut))||[],It}};function Mt(){return{type:0,height:Pt.Long.ZERO,round:0,blockId:void 0,timestamp:void 0,validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}d.Vote={encode(St,It=kt.Writer.create()){return St.type!==0&&It.uint32(8).int32(St.type),St.height.isZero()||It.uint32(16).int64(St.height),St.round!==0&&It.uint32(24).int32(St.round),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(34).fork()).ldelim(),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(42).fork()).ldelim(),St.validatorAddress.length!==0&&It.uint32(50).bytes(St.validatorAddress),St.validatorIndex!==0&&It.uint32(56).int32(St.validatorIndex),St.signature.length!==0&&It.uint32(66).bytes(St.signature),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Mt();for(;Gt.pos>>3){case 1:Vt.type=Gt.int32();break;case 2:Vt.height=Gt.int64();break;case 3:Vt.round=Gt.int32();break;case 4:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 5:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 6:Vt.validatorAddress=Gt.bytes();break;case 7:Vt.validatorIndex=Gt.int32();break;case 8:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{type:(0,Pt.isSet)(St.type)?Qt(St.type):0,height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,round:(0,Pt.isSet)(St.round)?Number(St.round):0,blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,timestamp:(0,Pt.isSet)(St.timestamp)?(0,Pt.fromJsonTimestamp)(St.timestamp):void 0,validatorAddress:(0,Pt.isSet)(St.validatorAddress)?(0,Pt.bytesFromBase64)(St.validatorAddress):new Uint8Array,validatorIndex:(0,Pt.isSet)(St.validatorIndex)?Number(St.validatorIndex):0,signature:(0,Pt.isSet)(St.signature)?(0,Pt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.type!==void 0&&(It.type=wt(St.type)),St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.timestamp!==void 0&&(It.timestamp=(0,Pt.fromTimestamp)(St.timestamp).toISOString()),St.validatorAddress!==void 0&&(It.validatorAddress=(0,Pt.base64FromBytes)(St.validatorAddress!==void 0?St.validatorAddress:new Uint8Array)),St.validatorIndex!==void 0&&(It.validatorIndex=Math.round(St.validatorIndex)),St.signature!==void 0&&(It.signature=(0,Pt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=Mt();return It.type=St.type??0,It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.round=St.round??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.validatorAddress=St.validatorAddress??new Uint8Array,It.validatorIndex=St.validatorIndex??0,It.signature=St.signature??new Uint8Array,It}};function jt(){return{height:Pt.Long.ZERO,round:0,blockId:void 0,signatures:[]}}d.Commit={encode(St,It=kt.Writer.create()){St.height.isZero()||It.uint32(8).int64(St.height),St.round!==0&&It.uint32(16).int32(St.round),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(26).fork()).ldelim();for(const Gt of St.signatures)d.CommitSig.encode(Gt,It.uint32(34).fork()).ldelim();return It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=jt();for(;Gt.pos>>3){case 1:Vt.height=Gt.int64();break;case 2:Vt.round=Gt.int32();break;case 3:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 4:Vt.signatures.push(d.CommitSig.decode(Gt,Gt.uint32()));break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,round:(0,Pt.isSet)(St.round)?Number(St.round):0,blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,signatures:Array.isArray(St==null?void 0:St.signatures)?St.signatures.map(It=>d.CommitSig.fromJSON(It)):[]}},toJSON(St){const It={};return St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.signatures?It.signatures=St.signatures.map(Gt=>Gt?d.CommitSig.toJSON(Gt):void 0):It.signatures=[],It},fromPartial(St){var Gt;const It=jt();return It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.round=St.round??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.signatures=((Gt=St.signatures)==null?void 0:Gt.map(Ut=>d.CommitSig.fromPartial(Ut)))||[],It}};function Ht(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}d.CommitSig={encode(St,It=kt.Writer.create()){return St.blockIdFlag!==0&&It.uint32(8).int32(St.blockIdFlag),St.validatorAddress.length!==0&&It.uint32(18).bytes(St.validatorAddress),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(26).fork()).ldelim(),St.signature.length!==0&&It.uint32(34).bytes(St.signature),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Ht();for(;Gt.pos>>3){case 1:Vt.blockIdFlag=Gt.int32();break;case 2:Vt.validatorAddress=Gt.bytes();break;case 3:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 4:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{blockIdFlag:(0,Pt.isSet)(St.blockIdFlag)?Zt(St.blockIdFlag):0,validatorAddress:(0,Pt.isSet)(St.validatorAddress)?(0,Pt.bytesFromBase64)(St.validatorAddress):new Uint8Array,timestamp:(0,Pt.isSet)(St.timestamp)?(0,Pt.fromJsonTimestamp)(St.timestamp):void 0,signature:(0,Pt.isSet)(St.signature)?(0,Pt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.blockIdFlag!==void 0&&(It.blockIdFlag=Rt(St.blockIdFlag)),St.validatorAddress!==void 0&&(It.validatorAddress=(0,Pt.base64FromBytes)(St.validatorAddress!==void 0?St.validatorAddress:new Uint8Array)),St.timestamp!==void 0&&(It.timestamp=(0,Pt.fromTimestamp)(St.timestamp).toISOString()),St.signature!==void 0&&(It.signature=(0,Pt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=Ht();return It.blockIdFlag=St.blockIdFlag??0,It.validatorAddress=St.validatorAddress??new Uint8Array,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.signature=St.signature??new Uint8Array,It}};function an(){return{type:0,height:Pt.Long.ZERO,round:0,polRound:0,blockId:void 0,timestamp:void 0,signature:new Uint8Array}}d.Proposal={encode(St,It=kt.Writer.create()){return St.type!==0&&It.uint32(8).int32(St.type),St.height.isZero()||It.uint32(16).int64(St.height),St.round!==0&&It.uint32(24).int32(St.round),St.polRound!==0&&It.uint32(32).int32(St.polRound),St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(42).fork()).ldelim(),St.timestamp!==void 0&&mt.Timestamp.encode(St.timestamp,It.uint32(50).fork()).ldelim(),St.signature.length!==0&&It.uint32(58).bytes(St.signature),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=an();for(;Gt.pos>>3){case 1:Vt.type=Gt.int32();break;case 2:Vt.height=Gt.int64();break;case 3:Vt.round=Gt.int32();break;case 4:Vt.polRound=Gt.int32();break;case 5:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 6:Vt.timestamp=mt.Timestamp.decode(Gt,Gt.uint32());break;case 7:Vt.signature=Gt.bytes();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{type:(0,Pt.isSet)(St.type)?Qt(St.type):0,height:(0,Pt.isSet)(St.height)?Pt.Long.fromValue(St.height):Pt.Long.ZERO,round:(0,Pt.isSet)(St.round)?Number(St.round):0,polRound:(0,Pt.isSet)(St.polRound)?Number(St.polRound):0,blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,timestamp:(0,Pt.isSet)(St.timestamp)?(0,Pt.fromJsonTimestamp)(St.timestamp):void 0,signature:(0,Pt.isSet)(St.signature)?(0,Pt.bytesFromBase64)(St.signature):new Uint8Array}},toJSON(St){const It={};return St.type!==void 0&&(It.type=wt(St.type)),St.height!==void 0&&(It.height=(St.height||Pt.Long.ZERO).toString()),St.round!==void 0&&(It.round=Math.round(St.round)),St.polRound!==void 0&&(It.polRound=Math.round(St.polRound)),St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.timestamp!==void 0&&(It.timestamp=(0,Pt.fromTimestamp)(St.timestamp).toISOString()),St.signature!==void 0&&(It.signature=(0,Pt.base64FromBytes)(St.signature!==void 0?St.signature:new Uint8Array)),It},fromPartial(St){const It=an();return It.type=St.type??0,It.height=St.height!==void 0&&St.height!==null?Pt.Long.fromValue(St.height):Pt.Long.ZERO,It.round=St.round??0,It.polRound=St.polRound??0,It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.timestamp=St.timestamp!==void 0&&St.timestamp!==null?mt.Timestamp.fromPartial(St.timestamp):void 0,It.signature=St.signature??new Uint8Array,It}};function yt(){return{header:void 0,commit:void 0}}d.SignedHeader={encode(St,It=kt.Writer.create()){return St.header!==void 0&&d.Header.encode(St.header,It.uint32(10).fork()).ldelim(),St.commit!==void 0&&d.Commit.encode(St.commit,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=yt();for(;Gt.pos>>3){case 1:Vt.header=d.Header.decode(Gt,Gt.uint32());break;case 2:Vt.commit=d.Commit.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{header:(0,Pt.isSet)(St.header)?d.Header.fromJSON(St.header):void 0,commit:(0,Pt.isSet)(St.commit)?d.Commit.fromJSON(St.commit):void 0}},toJSON(St){const It={};return St.header!==void 0&&(It.header=St.header?d.Header.toJSON(St.header):void 0),St.commit!==void 0&&(It.commit=St.commit?d.Commit.toJSON(St.commit):void 0),It},fromPartial(St){const It=yt();return It.header=St.header!==void 0&&St.header!==null?d.Header.fromPartial(St.header):void 0,It.commit=St.commit!==void 0&&St.commit!==null?d.Commit.fromPartial(St.commit):void 0,It}};function $t(){return{signedHeader:void 0,validatorSet:void 0}}d.LightBlock={encode(St,It=kt.Writer.create()){return St.signedHeader!==void 0&&d.SignedHeader.encode(St.signedHeader,It.uint32(10).fork()).ldelim(),St.validatorSet!==void 0&&vt.ValidatorSet.encode(St.validatorSet,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=$t();for(;Gt.pos>>3){case 1:Vt.signedHeader=d.SignedHeader.decode(Gt,Gt.uint32());break;case 2:Vt.validatorSet=vt.ValidatorSet.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{signedHeader:(0,Pt.isSet)(St.signedHeader)?d.SignedHeader.fromJSON(St.signedHeader):void 0,validatorSet:(0,Pt.isSet)(St.validatorSet)?vt.ValidatorSet.fromJSON(St.validatorSet):void 0}},toJSON(St){const It={};return St.signedHeader!==void 0&&(It.signedHeader=St.signedHeader?d.SignedHeader.toJSON(St.signedHeader):void 0),St.validatorSet!==void 0&&(It.validatorSet=St.validatorSet?vt.ValidatorSet.toJSON(St.validatorSet):void 0),It},fromPartial(St){const It=$t();return It.signedHeader=St.signedHeader!==void 0&&St.signedHeader!==null?d.SignedHeader.fromPartial(St.signedHeader):void 0,It.validatorSet=St.validatorSet!==void 0&&St.validatorSet!==null?vt.ValidatorSet.fromPartial(St.validatorSet):void 0,It}};function Yt(){return{blockId:void 0,blockSize:Pt.Long.ZERO,header:void 0,numTxs:Pt.Long.ZERO}}d.BlockMeta={encode(St,It=kt.Writer.create()){return St.blockId!==void 0&&d.BlockID.encode(St.blockId,It.uint32(10).fork()).ldelim(),St.blockSize.isZero()||It.uint32(16).int64(St.blockSize),St.header!==void 0&&d.Header.encode(St.header,It.uint32(26).fork()).ldelim(),St.numTxs.isZero()||It.uint32(32).int64(St.numTxs),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Yt();for(;Gt.pos>>3){case 1:Vt.blockId=d.BlockID.decode(Gt,Gt.uint32());break;case 2:Vt.blockSize=Gt.int64();break;case 3:Vt.header=d.Header.decode(Gt,Gt.uint32());break;case 4:Vt.numTxs=Gt.int64();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{blockId:(0,Pt.isSet)(St.blockId)?d.BlockID.fromJSON(St.blockId):void 0,blockSize:(0,Pt.isSet)(St.blockSize)?Pt.Long.fromValue(St.blockSize):Pt.Long.ZERO,header:(0,Pt.isSet)(St.header)?d.Header.fromJSON(St.header):void 0,numTxs:(0,Pt.isSet)(St.numTxs)?Pt.Long.fromValue(St.numTxs):Pt.Long.ZERO}},toJSON(St){const It={};return St.blockId!==void 0&&(It.blockId=St.blockId?d.BlockID.toJSON(St.blockId):void 0),St.blockSize!==void 0&&(It.blockSize=(St.blockSize||Pt.Long.ZERO).toString()),St.header!==void 0&&(It.header=St.header?d.Header.toJSON(St.header):void 0),St.numTxs!==void 0&&(It.numTxs=(St.numTxs||Pt.Long.ZERO).toString()),It},fromPartial(St){const It=Yt();return It.blockId=St.blockId!==void 0&&St.blockId!==null?d.BlockID.fromPartial(St.blockId):void 0,It.blockSize=St.blockSize!==void 0&&St.blockSize!==null?Pt.Long.fromValue(St.blockSize):Pt.Long.ZERO,It.header=St.header!==void 0&&St.header!==null?d.Header.fromPartial(St.header):void 0,It.numTxs=St.numTxs!==void 0&&St.numTxs!==null?Pt.Long.fromValue(St.numTxs):Pt.Long.ZERO,It}};function Kt(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}d.TxProof={encode(St,It=kt.Writer.create()){return St.rootHash.length!==0&&It.uint32(10).bytes(St.rootHash),St.data.length!==0&&It.uint32(18).bytes(St.data),St.proof!==void 0&<.Proof.encode(St.proof,It.uint32(26).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof kt.Reader?St:new kt.Reader(St);let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt=Kt();for(;Gt.pos>>3){case 1:Vt.rootHash=Gt.bytes();break;case 2:Vt.data=Gt.bytes();break;case 3:Vt.proof=lt.Proof.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{rootHash:(0,Pt.isSet)(St.rootHash)?(0,Pt.bytesFromBase64)(St.rootHash):new Uint8Array,data:(0,Pt.isSet)(St.data)?(0,Pt.bytesFromBase64)(St.data):new Uint8Array,proof:(0,Pt.isSet)(St.proof)?lt.Proof.fromJSON(St.proof):void 0}},toJSON(St){const It={};return St.rootHash!==void 0&&(It.rootHash=(0,Pt.base64FromBytes)(St.rootHash!==void 0?St.rootHash:new Uint8Array)),St.data!==void 0&&(It.data=(0,Pt.base64FromBytes)(St.data!==void 0?St.data:new Uint8Array)),St.proof!==void 0&&(It.proof=St.proof?lt.Proof.toJSON(St.proof):void 0),It},fromPartial(St){const It=Kt();return It.rootHash=St.rootHash??new Uint8Array,It.data=St.data??new Uint8Array,It.proof=St.proof!==void 0&&St.proof!==null?lt.Proof.fromPartial(St.proof):void 0,It}}})(types$9);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(qt,fn,dn,Dt){Dt===void 0&&(Dt=dn);var zt=Object.getOwnPropertyDescriptor(fn,dn);(!zt||("get"in zt?!fn.__esModule:zt.writable||zt.configurable))&&(zt={enumerable:!0,get:function(){return fn[dn]}}),Object.defineProperty(qt,Dt,zt)}:function(qt,fn,dn,Dt){Dt===void 0&&(Dt=dn),qt[Dt]=fn[dn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(qt,fn){Object.defineProperty(qt,"default",{enumerable:!0,value:fn})}:function(qt,fn){qt.default=fn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(qt){if(qt&&qt.__esModule)return qt;var fn={};if(qt!=null)for(var dn in qt)dn!=="default"&&Object.prototype.hasOwnProperty.call(qt,dn)&&b(fn,qt,dn);return dt(fn,qt),fn};Object.defineProperty(d,"__esModule",{value:!0}),d.Pool=d.RedelegationResponse=d.RedelegationEntryResponse=d.DelegationResponse=d.Params=d.Redelegation=d.RedelegationEntry=d.UnbondingDelegationEntry=d.UnbondingDelegation=d.Delegation=d.DVVTriplets=d.DVVTriplet=d.DVPairs=d.DVPair=d.ValAddresses=d.Validator=d.Description=d.Commission=d.CommissionRates=d.HistoricalInfo=d.bondStatusToJSON=d.bondStatusFromJSON=d.BondStatus=d.protobufPackage=void 0;const lt=types$9,ht=timestamp,mt=any,vt=duration,kt=coin$1,Pt=ct(minimal$2),Jt=helpers;d.protobufPackage="cosmos.staking.v1beta1";var Zt;(function(qt){qt[qt.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",qt[qt.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",qt[qt.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",qt[qt.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",qt[qt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zt=d.BondStatus||(d.BondStatus={}));function Rt(qt){switch(qt){case 0:case"BOND_STATUS_UNSPECIFIED":return Zt.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return Zt.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return Zt.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return Zt.BOND_STATUS_BONDED;case-1:case"UNRECOGNIZED":default:return Zt.UNRECOGNIZED}}d.bondStatusFromJSON=Rt;function nn(qt){switch(qt){case Zt.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case Zt.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case Zt.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case Zt.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";case Zt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.bondStatusToJSON=nn;function Qt(){return{header:void 0,valset:[]}}d.HistoricalInfo={encode(qt,fn=Pt.Writer.create()){qt.header!==void 0&<.Header.encode(qt.header,fn.uint32(10).fork()).ldelim();for(const dn of qt.valset)d.Validator.encode(dn,fn.uint32(18).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Qt();for(;dn.pos>>3){case 1:zt.header=lt.Header.decode(dn,dn.uint32());break;case 2:zt.valset.push(d.Validator.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{header:(0,Jt.isSet)(qt.header)?lt.Header.fromJSON(qt.header):void 0,valset:Array.isArray(qt==null?void 0:qt.valset)?qt.valset.map(fn=>d.Validator.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.header!==void 0&&(fn.header=qt.header?lt.Header.toJSON(qt.header):void 0),qt.valset?fn.valset=qt.valset.map(dn=>dn?d.Validator.toJSON(dn):void 0):fn.valset=[],fn},fromPartial(qt){var dn;const fn=Qt();return fn.header=qt.header!==void 0&&qt.header!==null?lt.Header.fromPartial(qt.header):void 0,fn.valset=((dn=qt.valset)==null?void 0:dn.map(Dt=>d.Validator.fromPartial(Dt)))||[],fn}};function wt(){return{rate:"",maxRate:"",maxChangeRate:""}}d.CommissionRates={encode(qt,fn=Pt.Writer.create()){return qt.rate!==""&&fn.uint32(10).string(qt.rate),qt.maxRate!==""&&fn.uint32(18).string(qt.maxRate),qt.maxChangeRate!==""&&fn.uint32(26).string(qt.maxChangeRate),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=wt();for(;dn.pos>>3){case 1:zt.rate=dn.string();break;case 2:zt.maxRate=dn.string();break;case 3:zt.maxChangeRate=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{rate:(0,Jt.isSet)(qt.rate)?String(qt.rate):"",maxRate:(0,Jt.isSet)(qt.maxRate)?String(qt.maxRate):"",maxChangeRate:(0,Jt.isSet)(qt.maxChangeRate)?String(qt.maxChangeRate):""}},toJSON(qt){const fn={};return qt.rate!==void 0&&(fn.rate=qt.rate),qt.maxRate!==void 0&&(fn.maxRate=qt.maxRate),qt.maxChangeRate!==void 0&&(fn.maxChangeRate=qt.maxChangeRate),fn},fromPartial(qt){const fn=wt();return fn.rate=qt.rate??"",fn.maxRate=qt.maxRate??"",fn.maxChangeRate=qt.maxChangeRate??"",fn}};function Nt(){return{commissionRates:void 0,updateTime:void 0}}d.Commission={encode(qt,fn=Pt.Writer.create()){return qt.commissionRates!==void 0&&d.CommissionRates.encode(qt.commissionRates,fn.uint32(10).fork()).ldelim(),qt.updateTime!==void 0&&ht.Timestamp.encode(qt.updateTime,fn.uint32(18).fork()).ldelim(),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Nt();for(;dn.pos>>3){case 1:zt.commissionRates=d.CommissionRates.decode(dn,dn.uint32());break;case 2:zt.updateTime=ht.Timestamp.decode(dn,dn.uint32());break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{commissionRates:(0,Jt.isSet)(qt.commissionRates)?d.CommissionRates.fromJSON(qt.commissionRates):void 0,updateTime:(0,Jt.isSet)(qt.updateTime)?(0,Jt.fromJsonTimestamp)(qt.updateTime):void 0}},toJSON(qt){const fn={};return qt.commissionRates!==void 0&&(fn.commissionRates=qt.commissionRates?d.CommissionRates.toJSON(qt.commissionRates):void 0),qt.updateTime!==void 0&&(fn.updateTime=(0,Jt.fromTimestamp)(qt.updateTime).toISOString()),fn},fromPartial(qt){const fn=Nt();return fn.commissionRates=qt.commissionRates!==void 0&&qt.commissionRates!==null?d.CommissionRates.fromPartial(qt.commissionRates):void 0,fn.updateTime=qt.updateTime!==void 0&&qt.updateTime!==null?ht.Timestamp.fromPartial(qt.updateTime):void 0,fn}};function xt(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}d.Description={encode(qt,fn=Pt.Writer.create()){return qt.moniker!==""&&fn.uint32(10).string(qt.moniker),qt.identity!==""&&fn.uint32(18).string(qt.identity),qt.website!==""&&fn.uint32(26).string(qt.website),qt.securityContact!==""&&fn.uint32(34).string(qt.securityContact),qt.details!==""&&fn.uint32(42).string(qt.details),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=xt();for(;dn.pos>>3){case 1:zt.moniker=dn.string();break;case 2:zt.identity=dn.string();break;case 3:zt.website=dn.string();break;case 4:zt.securityContact=dn.string();break;case 5:zt.details=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{moniker:(0,Jt.isSet)(qt.moniker)?String(qt.moniker):"",identity:(0,Jt.isSet)(qt.identity)?String(qt.identity):"",website:(0,Jt.isSet)(qt.website)?String(qt.website):"",securityContact:(0,Jt.isSet)(qt.securityContact)?String(qt.securityContact):"",details:(0,Jt.isSet)(qt.details)?String(qt.details):""}},toJSON(qt){const fn={};return qt.moniker!==void 0&&(fn.moniker=qt.moniker),qt.identity!==void 0&&(fn.identity=qt.identity),qt.website!==void 0&&(fn.website=qt.website),qt.securityContact!==void 0&&(fn.securityContact=qt.securityContact),qt.details!==void 0&&(fn.details=qt.details),fn},fromPartial(qt){const fn=xt();return fn.moniker=qt.moniker??"",fn.identity=qt.identity??"",fn.website=qt.website??"",fn.securityContact=qt.securityContact??"",fn.details=qt.details??"",fn}};function Et(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:void 0,unbondingHeight:Jt.Long.ZERO,unbondingTime:void 0,commission:void 0,minSelfDelegation:""}}d.Validator={encode(qt,fn=Pt.Writer.create()){return qt.operatorAddress!==""&&fn.uint32(10).string(qt.operatorAddress),qt.consensusPubkey!==void 0&&mt.Any.encode(qt.consensusPubkey,fn.uint32(18).fork()).ldelim(),qt.jailed===!0&&fn.uint32(24).bool(qt.jailed),qt.status!==0&&fn.uint32(32).int32(qt.status),qt.tokens!==""&&fn.uint32(42).string(qt.tokens),qt.delegatorShares!==""&&fn.uint32(50).string(qt.delegatorShares),qt.description!==void 0&&d.Description.encode(qt.description,fn.uint32(58).fork()).ldelim(),qt.unbondingHeight.isZero()||fn.uint32(64).int64(qt.unbondingHeight),qt.unbondingTime!==void 0&&ht.Timestamp.encode(qt.unbondingTime,fn.uint32(74).fork()).ldelim(),qt.commission!==void 0&&d.Commission.encode(qt.commission,fn.uint32(82).fork()).ldelim(),qt.minSelfDelegation!==""&&fn.uint32(90).string(qt.minSelfDelegation),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Et();for(;dn.pos>>3){case 1:zt.operatorAddress=dn.string();break;case 2:zt.consensusPubkey=mt.Any.decode(dn,dn.uint32());break;case 3:zt.jailed=dn.bool();break;case 4:zt.status=dn.int32();break;case 5:zt.tokens=dn.string();break;case 6:zt.delegatorShares=dn.string();break;case 7:zt.description=d.Description.decode(dn,dn.uint32());break;case 8:zt.unbondingHeight=dn.int64();break;case 9:zt.unbondingTime=ht.Timestamp.decode(dn,dn.uint32());break;case 10:zt.commission=d.Commission.decode(dn,dn.uint32());break;case 11:zt.minSelfDelegation=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{operatorAddress:(0,Jt.isSet)(qt.operatorAddress)?String(qt.operatorAddress):"",consensusPubkey:(0,Jt.isSet)(qt.consensusPubkey)?mt.Any.fromJSON(qt.consensusPubkey):void 0,jailed:(0,Jt.isSet)(qt.jailed)?!!qt.jailed:!1,status:(0,Jt.isSet)(qt.status)?Rt(qt.status):0,tokens:(0,Jt.isSet)(qt.tokens)?String(qt.tokens):"",delegatorShares:(0,Jt.isSet)(qt.delegatorShares)?String(qt.delegatorShares):"",description:(0,Jt.isSet)(qt.description)?d.Description.fromJSON(qt.description):void 0,unbondingHeight:(0,Jt.isSet)(qt.unbondingHeight)?Jt.Long.fromValue(qt.unbondingHeight):Jt.Long.ZERO,unbondingTime:(0,Jt.isSet)(qt.unbondingTime)?(0,Jt.fromJsonTimestamp)(qt.unbondingTime):void 0,commission:(0,Jt.isSet)(qt.commission)?d.Commission.fromJSON(qt.commission):void 0,minSelfDelegation:(0,Jt.isSet)(qt.minSelfDelegation)?String(qt.minSelfDelegation):""}},toJSON(qt){const fn={};return qt.operatorAddress!==void 0&&(fn.operatorAddress=qt.operatorAddress),qt.consensusPubkey!==void 0&&(fn.consensusPubkey=qt.consensusPubkey?mt.Any.toJSON(qt.consensusPubkey):void 0),qt.jailed!==void 0&&(fn.jailed=qt.jailed),qt.status!==void 0&&(fn.status=nn(qt.status)),qt.tokens!==void 0&&(fn.tokens=qt.tokens),qt.delegatorShares!==void 0&&(fn.delegatorShares=qt.delegatorShares),qt.description!==void 0&&(fn.description=qt.description?d.Description.toJSON(qt.description):void 0),qt.unbondingHeight!==void 0&&(fn.unbondingHeight=(qt.unbondingHeight||Jt.Long.ZERO).toString()),qt.unbondingTime!==void 0&&(fn.unbondingTime=(0,Jt.fromTimestamp)(qt.unbondingTime).toISOString()),qt.commission!==void 0&&(fn.commission=qt.commission?d.Commission.toJSON(qt.commission):void 0),qt.minSelfDelegation!==void 0&&(fn.minSelfDelegation=qt.minSelfDelegation),fn},fromPartial(qt){const fn=Et();return fn.operatorAddress=qt.operatorAddress??"",fn.consensusPubkey=qt.consensusPubkey!==void 0&&qt.consensusPubkey!==null?mt.Any.fromPartial(qt.consensusPubkey):void 0,fn.jailed=qt.jailed??!1,fn.status=qt.status??0,fn.tokens=qt.tokens??"",fn.delegatorShares=qt.delegatorShares??"",fn.description=qt.description!==void 0&&qt.description!==null?d.Description.fromPartial(qt.description):void 0,fn.unbondingHeight=qt.unbondingHeight!==void 0&&qt.unbondingHeight!==null?Jt.Long.fromValue(qt.unbondingHeight):Jt.Long.ZERO,fn.unbondingTime=qt.unbondingTime!==void 0&&qt.unbondingTime!==null?ht.Timestamp.fromPartial(qt.unbondingTime):void 0,fn.commission=qt.commission!==void 0&&qt.commission!==null?d.Commission.fromPartial(qt.commission):void 0,fn.minSelfDelegation=qt.minSelfDelegation??"",fn}};function Bt(){return{addresses:[]}}d.ValAddresses={encode(qt,fn=Pt.Writer.create()){for(const dn of qt.addresses)fn.uint32(10).string(dn);return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Bt();for(;dn.pos>>3){case 1:zt.addresses.push(dn.string());break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{addresses:Array.isArray(qt==null?void 0:qt.addresses)?qt.addresses.map(fn=>String(fn)):[]}},toJSON(qt){const fn={};return qt.addresses?fn.addresses=qt.addresses.map(dn=>dn):fn.addresses=[],fn},fromPartial(qt){var dn;const fn=Bt();return fn.addresses=((dn=qt.addresses)==null?void 0:dn.map(Dt=>Dt))||[],fn}};function Tt(){return{delegatorAddress:"",validatorAddress:""}}d.DVPair={encode(qt,fn=Pt.Writer.create()){return qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorAddress!==""&&fn.uint32(18).string(qt.validatorAddress),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Tt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorAddress=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(qt.validatorAddress)?String(qt.validatorAddress):""}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorAddress!==void 0&&(fn.validatorAddress=qt.validatorAddress),fn},fromPartial(qt){const fn=Tt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorAddress=qt.validatorAddress??"",fn}};function Mt(){return{pairs:[]}}d.DVPairs={encode(qt,fn=Pt.Writer.create()){for(const dn of qt.pairs)d.DVPair.encode(dn,fn.uint32(10).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Mt();for(;dn.pos>>3){case 1:zt.pairs.push(d.DVPair.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{pairs:Array.isArray(qt==null?void 0:qt.pairs)?qt.pairs.map(fn=>d.DVPair.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.pairs?fn.pairs=qt.pairs.map(dn=>dn?d.DVPair.toJSON(dn):void 0):fn.pairs=[],fn},fromPartial(qt){var dn;const fn=Mt();return fn.pairs=((dn=qt.pairs)==null?void 0:dn.map(Dt=>d.DVPair.fromPartial(Dt)))||[],fn}};function jt(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}d.DVVTriplet={encode(qt,fn=Pt.Writer.create()){return qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorSrcAddress!==""&&fn.uint32(18).string(qt.validatorSrcAddress),qt.validatorDstAddress!==""&&fn.uint32(26).string(qt.validatorDstAddress),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=jt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorSrcAddress=dn.string();break;case 3:zt.validatorDstAddress=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorSrcAddress:(0,Jt.isSet)(qt.validatorSrcAddress)?String(qt.validatorSrcAddress):"",validatorDstAddress:(0,Jt.isSet)(qt.validatorDstAddress)?String(qt.validatorDstAddress):""}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorSrcAddress!==void 0&&(fn.validatorSrcAddress=qt.validatorSrcAddress),qt.validatorDstAddress!==void 0&&(fn.validatorDstAddress=qt.validatorDstAddress),fn},fromPartial(qt){const fn=jt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorSrcAddress=qt.validatorSrcAddress??"",fn.validatorDstAddress=qt.validatorDstAddress??"",fn}};function Ht(){return{triplets:[]}}d.DVVTriplets={encode(qt,fn=Pt.Writer.create()){for(const dn of qt.triplets)d.DVVTriplet.encode(dn,fn.uint32(10).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Ht();for(;dn.pos>>3){case 1:zt.triplets.push(d.DVVTriplet.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{triplets:Array.isArray(qt==null?void 0:qt.triplets)?qt.triplets.map(fn=>d.DVVTriplet.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.triplets?fn.triplets=qt.triplets.map(dn=>dn?d.DVVTriplet.toJSON(dn):void 0):fn.triplets=[],fn},fromPartial(qt){var dn;const fn=Ht();return fn.triplets=((dn=qt.triplets)==null?void 0:dn.map(Dt=>d.DVVTriplet.fromPartial(Dt)))||[],fn}};function an(){return{delegatorAddress:"",validatorAddress:"",shares:""}}d.Delegation={encode(qt,fn=Pt.Writer.create()){return qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorAddress!==""&&fn.uint32(18).string(qt.validatorAddress),qt.shares!==""&&fn.uint32(26).string(qt.shares),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=an();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorAddress=dn.string();break;case 3:zt.shares=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(qt.validatorAddress)?String(qt.validatorAddress):"",shares:(0,Jt.isSet)(qt.shares)?String(qt.shares):""}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorAddress!==void 0&&(fn.validatorAddress=qt.validatorAddress),qt.shares!==void 0&&(fn.shares=qt.shares),fn},fromPartial(qt){const fn=an();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorAddress=qt.validatorAddress??"",fn.shares=qt.shares??"",fn}};function yt(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}d.UnbondingDelegation={encode(qt,fn=Pt.Writer.create()){qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorAddress!==""&&fn.uint32(18).string(qt.validatorAddress);for(const dn of qt.entries)d.UnbondingDelegationEntry.encode(dn,fn.uint32(26).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=yt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorAddress=dn.string();break;case 3:zt.entries.push(d.UnbondingDelegationEntry.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorAddress:(0,Jt.isSet)(qt.validatorAddress)?String(qt.validatorAddress):"",entries:Array.isArray(qt==null?void 0:qt.entries)?qt.entries.map(fn=>d.UnbondingDelegationEntry.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorAddress!==void 0&&(fn.validatorAddress=qt.validatorAddress),qt.entries?fn.entries=qt.entries.map(dn=>dn?d.UnbondingDelegationEntry.toJSON(dn):void 0):fn.entries=[],fn},fromPartial(qt){var dn;const fn=yt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorAddress=qt.validatorAddress??"",fn.entries=((dn=qt.entries)==null?void 0:dn.map(Dt=>d.UnbondingDelegationEntry.fromPartial(Dt)))||[],fn}};function $t(){return{creationHeight:Jt.Long.ZERO,completionTime:void 0,initialBalance:"",balance:""}}d.UnbondingDelegationEntry={encode(qt,fn=Pt.Writer.create()){return qt.creationHeight.isZero()||fn.uint32(8).int64(qt.creationHeight),qt.completionTime!==void 0&&ht.Timestamp.encode(qt.completionTime,fn.uint32(18).fork()).ldelim(),qt.initialBalance!==""&&fn.uint32(26).string(qt.initialBalance),qt.balance!==""&&fn.uint32(34).string(qt.balance),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=$t();for(;dn.pos>>3){case 1:zt.creationHeight=dn.int64();break;case 2:zt.completionTime=ht.Timestamp.decode(dn,dn.uint32());break;case 3:zt.initialBalance=dn.string();break;case 4:zt.balance=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{creationHeight:(0,Jt.isSet)(qt.creationHeight)?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,completionTime:(0,Jt.isSet)(qt.completionTime)?(0,Jt.fromJsonTimestamp)(qt.completionTime):void 0,initialBalance:(0,Jt.isSet)(qt.initialBalance)?String(qt.initialBalance):"",balance:(0,Jt.isSet)(qt.balance)?String(qt.balance):""}},toJSON(qt){const fn={};return qt.creationHeight!==void 0&&(fn.creationHeight=(qt.creationHeight||Jt.Long.ZERO).toString()),qt.completionTime!==void 0&&(fn.completionTime=(0,Jt.fromTimestamp)(qt.completionTime).toISOString()),qt.initialBalance!==void 0&&(fn.initialBalance=qt.initialBalance),qt.balance!==void 0&&(fn.balance=qt.balance),fn},fromPartial(qt){const fn=$t();return fn.creationHeight=qt.creationHeight!==void 0&&qt.creationHeight!==null?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,fn.completionTime=qt.completionTime!==void 0&&qt.completionTime!==null?ht.Timestamp.fromPartial(qt.completionTime):void 0,fn.initialBalance=qt.initialBalance??"",fn.balance=qt.balance??"",fn}};function Yt(){return{creationHeight:Jt.Long.ZERO,completionTime:void 0,initialBalance:"",sharesDst:""}}d.RedelegationEntry={encode(qt,fn=Pt.Writer.create()){return qt.creationHeight.isZero()||fn.uint32(8).int64(qt.creationHeight),qt.completionTime!==void 0&&ht.Timestamp.encode(qt.completionTime,fn.uint32(18).fork()).ldelim(),qt.initialBalance!==""&&fn.uint32(26).string(qt.initialBalance),qt.sharesDst!==""&&fn.uint32(34).string(qt.sharesDst),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Yt();for(;dn.pos>>3){case 1:zt.creationHeight=dn.int64();break;case 2:zt.completionTime=ht.Timestamp.decode(dn,dn.uint32());break;case 3:zt.initialBalance=dn.string();break;case 4:zt.sharesDst=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{creationHeight:(0,Jt.isSet)(qt.creationHeight)?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,completionTime:(0,Jt.isSet)(qt.completionTime)?(0,Jt.fromJsonTimestamp)(qt.completionTime):void 0,initialBalance:(0,Jt.isSet)(qt.initialBalance)?String(qt.initialBalance):"",sharesDst:(0,Jt.isSet)(qt.sharesDst)?String(qt.sharesDst):""}},toJSON(qt){const fn={};return qt.creationHeight!==void 0&&(fn.creationHeight=(qt.creationHeight||Jt.Long.ZERO).toString()),qt.completionTime!==void 0&&(fn.completionTime=(0,Jt.fromTimestamp)(qt.completionTime).toISOString()),qt.initialBalance!==void 0&&(fn.initialBalance=qt.initialBalance),qt.sharesDst!==void 0&&(fn.sharesDst=qt.sharesDst),fn},fromPartial(qt){const fn=Yt();return fn.creationHeight=qt.creationHeight!==void 0&&qt.creationHeight!==null?Jt.Long.fromValue(qt.creationHeight):Jt.Long.ZERO,fn.completionTime=qt.completionTime!==void 0&&qt.completionTime!==null?ht.Timestamp.fromPartial(qt.completionTime):void 0,fn.initialBalance=qt.initialBalance??"",fn.sharesDst=qt.sharesDst??"",fn}};function Kt(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}d.Redelegation={encode(qt,fn=Pt.Writer.create()){qt.delegatorAddress!==""&&fn.uint32(10).string(qt.delegatorAddress),qt.validatorSrcAddress!==""&&fn.uint32(18).string(qt.validatorSrcAddress),qt.validatorDstAddress!==""&&fn.uint32(26).string(qt.validatorDstAddress);for(const dn of qt.entries)d.RedelegationEntry.encode(dn,fn.uint32(34).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Kt();for(;dn.pos>>3){case 1:zt.delegatorAddress=dn.string();break;case 2:zt.validatorSrcAddress=dn.string();break;case 3:zt.validatorDstAddress=dn.string();break;case 4:zt.entries.push(d.RedelegationEntry.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegatorAddress:(0,Jt.isSet)(qt.delegatorAddress)?String(qt.delegatorAddress):"",validatorSrcAddress:(0,Jt.isSet)(qt.validatorSrcAddress)?String(qt.validatorSrcAddress):"",validatorDstAddress:(0,Jt.isSet)(qt.validatorDstAddress)?String(qt.validatorDstAddress):"",entries:Array.isArray(qt==null?void 0:qt.entries)?qt.entries.map(fn=>d.RedelegationEntry.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.delegatorAddress!==void 0&&(fn.delegatorAddress=qt.delegatorAddress),qt.validatorSrcAddress!==void 0&&(fn.validatorSrcAddress=qt.validatorSrcAddress),qt.validatorDstAddress!==void 0&&(fn.validatorDstAddress=qt.validatorDstAddress),qt.entries?fn.entries=qt.entries.map(dn=>dn?d.RedelegationEntry.toJSON(dn):void 0):fn.entries=[],fn},fromPartial(qt){var dn;const fn=Kt();return fn.delegatorAddress=qt.delegatorAddress??"",fn.validatorSrcAddress=qt.validatorSrcAddress??"",fn.validatorDstAddress=qt.validatorDstAddress??"",fn.entries=((dn=qt.entries)==null?void 0:dn.map(Dt=>d.RedelegationEntry.fromPartial(Dt)))||[],fn}};function St(){return{unbondingTime:void 0,maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:""}}d.Params={encode(qt,fn=Pt.Writer.create()){return qt.unbondingTime!==void 0&&vt.Duration.encode(qt.unbondingTime,fn.uint32(10).fork()).ldelim(),qt.maxValidators!==0&&fn.uint32(16).uint32(qt.maxValidators),qt.maxEntries!==0&&fn.uint32(24).uint32(qt.maxEntries),qt.historicalEntries!==0&&fn.uint32(32).uint32(qt.historicalEntries),qt.bondDenom!==""&&fn.uint32(42).string(qt.bondDenom),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=St();for(;dn.pos>>3){case 1:zt.unbondingTime=vt.Duration.decode(dn,dn.uint32());break;case 2:zt.maxValidators=dn.uint32();break;case 3:zt.maxEntries=dn.uint32();break;case 4:zt.historicalEntries=dn.uint32();break;case 5:zt.bondDenom=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{unbondingTime:(0,Jt.isSet)(qt.unbondingTime)?vt.Duration.fromJSON(qt.unbondingTime):void 0,maxValidators:(0,Jt.isSet)(qt.maxValidators)?Number(qt.maxValidators):0,maxEntries:(0,Jt.isSet)(qt.maxEntries)?Number(qt.maxEntries):0,historicalEntries:(0,Jt.isSet)(qt.historicalEntries)?Number(qt.historicalEntries):0,bondDenom:(0,Jt.isSet)(qt.bondDenom)?String(qt.bondDenom):""}},toJSON(qt){const fn={};return qt.unbondingTime!==void 0&&(fn.unbondingTime=qt.unbondingTime?vt.Duration.toJSON(qt.unbondingTime):void 0),qt.maxValidators!==void 0&&(fn.maxValidators=Math.round(qt.maxValidators)),qt.maxEntries!==void 0&&(fn.maxEntries=Math.round(qt.maxEntries)),qt.historicalEntries!==void 0&&(fn.historicalEntries=Math.round(qt.historicalEntries)),qt.bondDenom!==void 0&&(fn.bondDenom=qt.bondDenom),fn},fromPartial(qt){const fn=St();return fn.unbondingTime=qt.unbondingTime!==void 0&&qt.unbondingTime!==null?vt.Duration.fromPartial(qt.unbondingTime):void 0,fn.maxValidators=qt.maxValidators??0,fn.maxEntries=qt.maxEntries??0,fn.historicalEntries=qt.historicalEntries??0,fn.bondDenom=qt.bondDenom??"",fn}};function It(){return{delegation:void 0,balance:void 0}}d.DelegationResponse={encode(qt,fn=Pt.Writer.create()){return qt.delegation!==void 0&&d.Delegation.encode(qt.delegation,fn.uint32(10).fork()).ldelim(),qt.balance!==void 0&&kt.Coin.encode(qt.balance,fn.uint32(18).fork()).ldelim(),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=It();for(;dn.pos>>3){case 1:zt.delegation=d.Delegation.decode(dn,dn.uint32());break;case 2:zt.balance=kt.Coin.decode(dn,dn.uint32());break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{delegation:(0,Jt.isSet)(qt.delegation)?d.Delegation.fromJSON(qt.delegation):void 0,balance:(0,Jt.isSet)(qt.balance)?kt.Coin.fromJSON(qt.balance):void 0}},toJSON(qt){const fn={};return qt.delegation!==void 0&&(fn.delegation=qt.delegation?d.Delegation.toJSON(qt.delegation):void 0),qt.balance!==void 0&&(fn.balance=qt.balance?kt.Coin.toJSON(qt.balance):void 0),fn},fromPartial(qt){const fn=It();return fn.delegation=qt.delegation!==void 0&&qt.delegation!==null?d.Delegation.fromPartial(qt.delegation):void 0,fn.balance=qt.balance!==void 0&&qt.balance!==null?kt.Coin.fromPartial(qt.balance):void 0,fn}};function Gt(){return{redelegationEntry:void 0,balance:""}}d.RedelegationEntryResponse={encode(qt,fn=Pt.Writer.create()){return qt.redelegationEntry!==void 0&&d.RedelegationEntry.encode(qt.redelegationEntry,fn.uint32(10).fork()).ldelim(),qt.balance!==""&&fn.uint32(34).string(qt.balance),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Gt();for(;dn.pos>>3){case 1:zt.redelegationEntry=d.RedelegationEntry.decode(dn,dn.uint32());break;case 4:zt.balance=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{redelegationEntry:(0,Jt.isSet)(qt.redelegationEntry)?d.RedelegationEntry.fromJSON(qt.redelegationEntry):void 0,balance:(0,Jt.isSet)(qt.balance)?String(qt.balance):""}},toJSON(qt){const fn={};return qt.redelegationEntry!==void 0&&(fn.redelegationEntry=qt.redelegationEntry?d.RedelegationEntry.toJSON(qt.redelegationEntry):void 0),qt.balance!==void 0&&(fn.balance=qt.balance),fn},fromPartial(qt){const fn=Gt();return fn.redelegationEntry=qt.redelegationEntry!==void 0&&qt.redelegationEntry!==null?d.RedelegationEntry.fromPartial(qt.redelegationEntry):void 0,fn.balance=qt.balance??"",fn}};function Ut(){return{redelegation:void 0,entries:[]}}d.RedelegationResponse={encode(qt,fn=Pt.Writer.create()){qt.redelegation!==void 0&&d.Redelegation.encode(qt.redelegation,fn.uint32(10).fork()).ldelim();for(const dn of qt.entries)d.RedelegationEntryResponse.encode(dn,fn.uint32(18).fork()).ldelim();return fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Ut();for(;dn.pos>>3){case 1:zt.redelegation=d.Redelegation.decode(dn,dn.uint32());break;case 2:zt.entries.push(d.RedelegationEntryResponse.decode(dn,dn.uint32()));break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{redelegation:(0,Jt.isSet)(qt.redelegation)?d.Redelegation.fromJSON(qt.redelegation):void 0,entries:Array.isArray(qt==null?void 0:qt.entries)?qt.entries.map(fn=>d.RedelegationEntryResponse.fromJSON(fn)):[]}},toJSON(qt){const fn={};return qt.redelegation!==void 0&&(fn.redelegation=qt.redelegation?d.Redelegation.toJSON(qt.redelegation):void 0),qt.entries?fn.entries=qt.entries.map(dn=>dn?d.RedelegationEntryResponse.toJSON(dn):void 0):fn.entries=[],fn},fromPartial(qt){var dn;const fn=Ut();return fn.redelegation=qt.redelegation!==void 0&&qt.redelegation!==null?d.Redelegation.fromPartial(qt.redelegation):void 0,fn.entries=((dn=qt.entries)==null?void 0:dn.map(Dt=>d.RedelegationEntryResponse.fromPartial(Dt)))||[],fn}};function Vt(){return{notBondedTokens:"",bondedTokens:""}}d.Pool={encode(qt,fn=Pt.Writer.create()){return qt.notBondedTokens!==""&&fn.uint32(10).string(qt.notBondedTokens),qt.bondedTokens!==""&&fn.uint32(18).string(qt.bondedTokens),fn},decode(qt,fn){const dn=qt instanceof Pt.Reader?qt:new Pt.Reader(qt);let Dt=fn===void 0?dn.len:dn.pos+fn;const zt=Vt();for(;dn.pos>>3){case 1:zt.notBondedTokens=dn.string();break;case 2:zt.bondedTokens=dn.string();break;default:dn.skipType(tn&7);break}}return zt},fromJSON(qt){return{notBondedTokens:(0,Jt.isSet)(qt.notBondedTokens)?String(qt.notBondedTokens):"",bondedTokens:(0,Jt.isSet)(qt.bondedTokens)?String(qt.bondedTokens):""}},toJSON(qt){const fn={};return qt.notBondedTokens!==void 0&&(fn.notBondedTokens=qt.notBondedTokens),qt.bondedTokens!==void 0&&(fn.bondedTokens=qt.bondedTokens),fn},fromPartial(qt){const fn=Vt();return fn.notBondedTokens=qt.notBondedTokens??"",fn.bondedTokens=qt.bondedTokens??"",fn}}})(staking);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Dt,zt,tn,An){An===void 0&&(An=tn);var gn=Object.getOwnPropertyDescriptor(zt,tn);(!gn||("get"in gn?!zt.__esModule:gn.writable||gn.configurable))&&(gn={enumerable:!0,get:function(){return zt[tn]}}),Object.defineProperty(Dt,An,gn)}:function(Dt,zt,tn,An){An===void 0&&(An=tn),Dt[An]=zt[tn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Dt,zt){Object.defineProperty(Dt,"default",{enumerable:!0,value:zt})}:function(Dt,zt){Dt.default=zt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Dt){if(Dt&&Dt.__esModule)return Dt;var zt={};if(Dt!=null)for(var tn in Dt)tn!=="default"&&Object.prototype.hasOwnProperty.call(Dt,tn)&&b(zt,Dt,tn);return dt(zt,Dt),zt};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryPoolResponse=d.QueryPoolRequest=d.QueryHistoricalInfoResponse=d.QueryHistoricalInfoRequest=d.QueryDelegatorValidatorResponse=d.QueryDelegatorValidatorRequest=d.QueryDelegatorValidatorsResponse=d.QueryDelegatorValidatorsRequest=d.QueryRedelegationsResponse=d.QueryRedelegationsRequest=d.QueryDelegatorUnbondingDelegationsResponse=d.QueryDelegatorUnbondingDelegationsRequest=d.QueryDelegatorDelegationsResponse=d.QueryDelegatorDelegationsRequest=d.QueryUnbondingDelegationResponse=d.QueryUnbondingDelegationRequest=d.QueryDelegationResponse=d.QueryDelegationRequest=d.QueryValidatorUnbondingDelegationsResponse=d.QueryValidatorUnbondingDelegationsRequest=d.QueryValidatorDelegationsResponse=d.QueryValidatorDelegationsRequest=d.QueryValidatorResponse=d.QueryValidatorRequest=d.QueryValidatorsResponse=d.QueryValidatorsRequest=d.protobufPackage=void 0;const lt=pagination$2,ht=staking,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.staking.v1beta1";function kt(){return{status:"",pagination:void 0}}d.QueryValidatorsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.status!==""&&zt.uint32(10).string(Dt.status),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=kt();for(;tn.pos>>3){case 1:gn.status=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{status:(0,vt.isSet)(Dt.status)?String(Dt.status):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.status!==void 0&&(zt.status=Dt.status),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=kt();return zt.status=Dt.status??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Pt(){return{validators:[],pagination:void 0}}d.QueryValidatorsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.validators)ht.Validator.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Pt();for(;tn.pos>>3){case 1:gn.validators.push(ht.Validator.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validators:Array.isArray(Dt==null?void 0:Dt.validators)?Dt.validators.map(zt=>ht.Validator.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validators?zt.validators=Dt.validators.map(tn=>tn?ht.Validator.toJSON(tn):void 0):zt.validators=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Pt();return zt.validators=((tn=Dt.validators)==null?void 0:tn.map(An=>ht.Validator.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Jt(){return{validatorAddr:""}}d.QueryValidatorRequest={encode(Dt,zt=mt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Jt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Jt();return zt.validatorAddr=Dt.validatorAddr??"",zt}};function Zt(){return{validator:void 0}}d.QueryValidatorResponse={encode(Dt,zt=mt.Writer.create()){return Dt.validator!==void 0&&ht.Validator.encode(Dt.validator,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Zt();for(;tn.pos>>3){case 1:gn.validator=ht.Validator.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validator:(0,vt.isSet)(Dt.validator)?ht.Validator.fromJSON(Dt.validator):void 0}},toJSON(Dt){const zt={};return Dt.validator!==void 0&&(zt.validator=Dt.validator?ht.Validator.toJSON(Dt.validator):void 0),zt},fromPartial(Dt){const zt=Zt();return zt.validator=Dt.validator!==void 0&&Dt.validator!==null?ht.Validator.fromPartial(Dt.validator):void 0,zt}};function Rt(){return{validatorAddr:"",pagination:void 0}}d.QueryValidatorDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Rt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Rt();return zt.validatorAddr=Dt.validatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function nn(){return{delegationResponses:[],pagination:void 0}}d.QueryValidatorDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.delegationResponses)ht.DelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=nn();for(;tn.pos>>3){case 1:gn.delegationResponses.push(ht.DelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponses:Array.isArray(Dt==null?void 0:Dt.delegationResponses)?Dt.delegationResponses.map(zt=>ht.DelegationResponse.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponses?zt.delegationResponses=Dt.delegationResponses.map(tn=>tn?ht.DelegationResponse.toJSON(tn):void 0):zt.delegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=nn();return zt.delegationResponses=((tn=Dt.delegationResponses)==null?void 0:tn.map(An=>ht.DelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Qt(){return{validatorAddr:"",pagination:void 0}}d.QueryValidatorUnbondingDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.validatorAddr!==""&&zt.uint32(10).string(Dt.validatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Qt();for(;tn.pos>>3){case 1:gn.validatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Qt();return zt.validatorAddr=Dt.validatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function wt(){return{unbondingResponses:[],pagination:void 0}}d.QueryValidatorUnbondingDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.unbondingResponses)ht.UnbondingDelegation.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=wt();for(;tn.pos>>3){case 1:gn.unbondingResponses.push(ht.UnbondingDelegation.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbondingResponses:Array.isArray(Dt==null?void 0:Dt.unbondingResponses)?Dt.unbondingResponses.map(zt=>ht.UnbondingDelegation.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.unbondingResponses?zt.unbondingResponses=Dt.unbondingResponses.map(tn=>tn?ht.UnbondingDelegation.toJSON(tn):void 0):zt.unbondingResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=wt();return zt.unbondingResponses=((tn=Dt.unbondingResponses)==null?void 0:tn.map(An=>ht.UnbondingDelegation.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Nt(){return{delegatorAddr:"",validatorAddr:""}}d.QueryDelegationRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Nt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Nt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function xt(){return{delegationResponse:void 0}}d.QueryDelegationResponse={encode(Dt,zt=mt.Writer.create()){return Dt.delegationResponse!==void 0&&ht.DelegationResponse.encode(Dt.delegationResponse,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=xt();for(;tn.pos>>3){case 1:gn.delegationResponse=ht.DelegationResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponse:(0,vt.isSet)(Dt.delegationResponse)?ht.DelegationResponse.fromJSON(Dt.delegationResponse):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponse!==void 0&&(zt.delegationResponse=Dt.delegationResponse?ht.DelegationResponse.toJSON(Dt.delegationResponse):void 0),zt},fromPartial(Dt){const zt=xt();return zt.delegationResponse=Dt.delegationResponse!==void 0&&Dt.delegationResponse!==null?ht.DelegationResponse.fromPartial(Dt.delegationResponse):void 0,zt}};function Et(){return{delegatorAddr:"",validatorAddr:""}}d.QueryUnbondingDelegationRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Et();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Et();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function Bt(){return{unbond:void 0}}d.QueryUnbondingDelegationResponse={encode(Dt,zt=mt.Writer.create()){return Dt.unbond!==void 0&&ht.UnbondingDelegation.encode(Dt.unbond,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Bt();for(;tn.pos>>3){case 1:gn.unbond=ht.UnbondingDelegation.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbond:(0,vt.isSet)(Dt.unbond)?ht.UnbondingDelegation.fromJSON(Dt.unbond):void 0}},toJSON(Dt){const zt={};return Dt.unbond!==void 0&&(zt.unbond=Dt.unbond?ht.UnbondingDelegation.toJSON(Dt.unbond):void 0),zt},fromPartial(Dt){const zt=Bt();return zt.unbond=Dt.unbond!==void 0&&Dt.unbond!==null?ht.UnbondingDelegation.fromPartial(Dt.unbond):void 0,zt}};function Tt(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Tt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=Tt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Mt(){return{delegationResponses:[],pagination:void 0}}d.QueryDelegatorDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.delegationResponses)ht.DelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Mt();for(;tn.pos>>3){case 1:gn.delegationResponses.push(ht.DelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegationResponses:Array.isArray(Dt==null?void 0:Dt.delegationResponses)?Dt.delegationResponses.map(zt=>ht.DelegationResponse.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegationResponses?zt.delegationResponses=Dt.delegationResponses.map(tn=>tn?ht.DelegationResponse.toJSON(tn):void 0):zt.delegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Mt();return zt.delegationResponses=((tn=Dt.delegationResponses)==null?void 0:tn.map(An=>ht.DelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function jt(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorUnbondingDelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=jt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=jt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Ht(){return{unbondingResponses:[],pagination:void 0}}d.QueryDelegatorUnbondingDelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.unbondingResponses)ht.UnbondingDelegation.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ht();for(;tn.pos>>3){case 1:gn.unbondingResponses.push(ht.UnbondingDelegation.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{unbondingResponses:Array.isArray(Dt==null?void 0:Dt.unbondingResponses)?Dt.unbondingResponses.map(zt=>ht.UnbondingDelegation.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.unbondingResponses?zt.unbondingResponses=Dt.unbondingResponses.map(tn=>tn?ht.UnbondingDelegation.toJSON(tn):void 0):zt.unbondingResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Ht();return zt.unbondingResponses=((tn=Dt.unbondingResponses)==null?void 0:tn.map(An=>ht.UnbondingDelegation.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function an(){return{delegatorAddr:"",srcValidatorAddr:"",dstValidatorAddr:"",pagination:void 0}}d.QueryRedelegationsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.srcValidatorAddr!==""&&zt.uint32(18).string(Dt.srcValidatorAddr),Dt.dstValidatorAddr!==""&&zt.uint32(26).string(Dt.dstValidatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(34).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=an();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.srcValidatorAddr=tn.string();break;case 3:gn.dstValidatorAddr=tn.string();break;case 4:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",srcValidatorAddr:(0,vt.isSet)(Dt.srcValidatorAddr)?String(Dt.srcValidatorAddr):"",dstValidatorAddr:(0,vt.isSet)(Dt.dstValidatorAddr)?String(Dt.dstValidatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.srcValidatorAddr!==void 0&&(zt.srcValidatorAddr=Dt.srcValidatorAddr),Dt.dstValidatorAddr!==void 0&&(zt.dstValidatorAddr=Dt.dstValidatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=an();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.srcValidatorAddr=Dt.srcValidatorAddr??"",zt.dstValidatorAddr=Dt.dstValidatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function yt(){return{redelegationResponses:[],pagination:void 0}}d.QueryRedelegationsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.redelegationResponses)ht.RedelegationResponse.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=yt();for(;tn.pos>>3){case 1:gn.redelegationResponses.push(ht.RedelegationResponse.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{redelegationResponses:Array.isArray(Dt==null?void 0:Dt.redelegationResponses)?Dt.redelegationResponses.map(zt=>ht.RedelegationResponse.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.redelegationResponses?zt.redelegationResponses=Dt.redelegationResponses.map(tn=>tn?ht.RedelegationResponse.toJSON(tn):void 0):zt.redelegationResponses=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=yt();return zt.redelegationResponses=((tn=Dt.redelegationResponses)==null?void 0:tn.map(An=>ht.RedelegationResponse.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function $t(){return{delegatorAddr:"",pagination:void 0}}d.QueryDelegatorValidatorsRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.pagination!==void 0&<.PageRequest.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=$t();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.pagination=lt.PageRequest.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",pagination:(0,vt.isSet)(Dt.pagination)?lt.PageRequest.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageRequest.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){const zt=$t();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageRequest.fromPartial(Dt.pagination):void 0,zt}};function Yt(){return{validators:[],pagination:void 0}}d.QueryDelegatorValidatorsResponse={encode(Dt,zt=mt.Writer.create()){for(const tn of Dt.validators)ht.Validator.encode(tn,zt.uint32(10).fork()).ldelim();return Dt.pagination!==void 0&<.PageResponse.encode(Dt.pagination,zt.uint32(18).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Yt();for(;tn.pos>>3){case 1:gn.validators.push(ht.Validator.decode(tn,tn.uint32()));break;case 2:gn.pagination=lt.PageResponse.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validators:Array.isArray(Dt==null?void 0:Dt.validators)?Dt.validators.map(zt=>ht.Validator.fromJSON(zt)):[],pagination:(0,vt.isSet)(Dt.pagination)?lt.PageResponse.fromJSON(Dt.pagination):void 0}},toJSON(Dt){const zt={};return Dt.validators?zt.validators=Dt.validators.map(tn=>tn?ht.Validator.toJSON(tn):void 0):zt.validators=[],Dt.pagination!==void 0&&(zt.pagination=Dt.pagination?lt.PageResponse.toJSON(Dt.pagination):void 0),zt},fromPartial(Dt){var tn;const zt=Yt();return zt.validators=((tn=Dt.validators)==null?void 0:tn.map(An=>ht.Validator.fromPartial(An)))||[],zt.pagination=Dt.pagination!==void 0&&Dt.pagination!==null?lt.PageResponse.fromPartial(Dt.pagination):void 0,zt}};function Kt(){return{delegatorAddr:"",validatorAddr:""}}d.QueryDelegatorValidatorRequest={encode(Dt,zt=mt.Writer.create()){return Dt.delegatorAddr!==""&&zt.uint32(10).string(Dt.delegatorAddr),Dt.validatorAddr!==""&&zt.uint32(18).string(Dt.validatorAddr),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Kt();for(;tn.pos>>3){case 1:gn.delegatorAddr=tn.string();break;case 2:gn.validatorAddr=tn.string();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{delegatorAddr:(0,vt.isSet)(Dt.delegatorAddr)?String(Dt.delegatorAddr):"",validatorAddr:(0,vt.isSet)(Dt.validatorAddr)?String(Dt.validatorAddr):""}},toJSON(Dt){const zt={};return Dt.delegatorAddr!==void 0&&(zt.delegatorAddr=Dt.delegatorAddr),Dt.validatorAddr!==void 0&&(zt.validatorAddr=Dt.validatorAddr),zt},fromPartial(Dt){const zt=Kt();return zt.delegatorAddr=Dt.delegatorAddr??"",zt.validatorAddr=Dt.validatorAddr??"",zt}};function St(){return{validator:void 0}}d.QueryDelegatorValidatorResponse={encode(Dt,zt=mt.Writer.create()){return Dt.validator!==void 0&&ht.Validator.encode(Dt.validator,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=St();for(;tn.pos>>3){case 1:gn.validator=ht.Validator.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{validator:(0,vt.isSet)(Dt.validator)?ht.Validator.fromJSON(Dt.validator):void 0}},toJSON(Dt){const zt={};return Dt.validator!==void 0&&(zt.validator=Dt.validator?ht.Validator.toJSON(Dt.validator):void 0),zt},fromPartial(Dt){const zt=St();return zt.validator=Dt.validator!==void 0&&Dt.validator!==null?ht.Validator.fromPartial(Dt.validator):void 0,zt}};function It(){return{height:vt.Long.ZERO}}d.QueryHistoricalInfoRequest={encode(Dt,zt=mt.Writer.create()){return Dt.height.isZero()||zt.uint32(8).int64(Dt.height),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=It();for(;tn.pos>>3){case 1:gn.height=tn.int64();break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{height:(0,vt.isSet)(Dt.height)?vt.Long.fromValue(Dt.height):vt.Long.ZERO}},toJSON(Dt){const zt={};return Dt.height!==void 0&&(zt.height=(Dt.height||vt.Long.ZERO).toString()),zt},fromPartial(Dt){const zt=It();return zt.height=Dt.height!==void 0&&Dt.height!==null?vt.Long.fromValue(Dt.height):vt.Long.ZERO,zt}};function Gt(){return{hist:void 0}}d.QueryHistoricalInfoResponse={encode(Dt,zt=mt.Writer.create()){return Dt.hist!==void 0&&ht.HistoricalInfo.encode(Dt.hist,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Gt();for(;tn.pos>>3){case 1:gn.hist=ht.HistoricalInfo.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{hist:(0,vt.isSet)(Dt.hist)?ht.HistoricalInfo.fromJSON(Dt.hist):void 0}},toJSON(Dt){const zt={};return Dt.hist!==void 0&&(zt.hist=Dt.hist?ht.HistoricalInfo.toJSON(Dt.hist):void 0),zt},fromPartial(Dt){const zt=Gt();return zt.hist=Dt.hist!==void 0&&Dt.hist!==null?ht.HistoricalInfo.fromPartial(Dt.hist):void 0,zt}};function Ut(){return{}}d.QueryPoolRequest={encode(Dt,zt=mt.Writer.create()){return zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Ut();for(;tn.pos>>3){default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{}},toJSON(Dt){return{}},fromPartial(Dt){return Ut()}};function Vt(){return{pool:void 0}}d.QueryPoolResponse={encode(Dt,zt=mt.Writer.create()){return Dt.pool!==void 0&&ht.Pool.encode(Dt.pool,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=Vt();for(;tn.pos>>3){case 1:gn.pool=ht.Pool.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{pool:(0,vt.isSet)(Dt.pool)?ht.Pool.fromJSON(Dt.pool):void 0}},toJSON(Dt){const zt={};return Dt.pool!==void 0&&(zt.pool=Dt.pool?ht.Pool.toJSON(Dt.pool):void 0),zt},fromPartial(Dt){const zt=Vt();return zt.pool=Dt.pool!==void 0&&Dt.pool!==null?ht.Pool.fromPartial(Dt.pool):void 0,zt}};function qt(){return{}}d.QueryParamsRequest={encode(Dt,zt=mt.Writer.create()){return zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=qt();for(;tn.pos>>3){default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{}},toJSON(Dt){return{}},fromPartial(Dt){return qt()}};function fn(){return{params:void 0}}d.QueryParamsResponse={encode(Dt,zt=mt.Writer.create()){return Dt.params!==void 0&&ht.Params.encode(Dt.params,zt.uint32(10).fork()).ldelim(),zt},decode(Dt,zt){const tn=Dt instanceof mt.Reader?Dt:new mt.Reader(Dt);let An=zt===void 0?tn.len:tn.pos+zt;const gn=fn();for(;tn.pos>>3){case 1:gn.params=ht.Params.decode(tn,tn.uint32());break;default:tn.skipType(Nn&7);break}}return gn},fromJSON(Dt){return{params:(0,vt.isSet)(Dt.params)?ht.Params.fromJSON(Dt.params):void 0}},toJSON(Dt){const zt={};return Dt.params!==void 0&&(zt.params=Dt.params?ht.Params.toJSON(Dt.params):void 0),zt},fromPartial(Dt){const zt=fn();return zt.params=Dt.params!==void 0&&Dt.params!==null?ht.Params.fromPartial(Dt.params):void 0,zt}};class dn{constructor(zt){this.rpc=zt,this.Validators=this.Validators.bind(this),this.Validator=this.Validator.bind(this),this.ValidatorDelegations=this.ValidatorDelegations.bind(this),this.ValidatorUnbondingDelegations=this.ValidatorUnbondingDelegations.bind(this),this.Delegation=this.Delegation.bind(this),this.UnbondingDelegation=this.UnbondingDelegation.bind(this),this.DelegatorDelegations=this.DelegatorDelegations.bind(this),this.DelegatorUnbondingDelegations=this.DelegatorUnbondingDelegations.bind(this),this.Redelegations=this.Redelegations.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorValidator=this.DelegatorValidator.bind(this),this.HistoricalInfo=this.HistoricalInfo.bind(this),this.Pool=this.Pool.bind(this),this.Params=this.Params.bind(this)}Validators(zt){const tn=d.QueryValidatorsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validators",tn).then(gn=>d.QueryValidatorsResponse.decode(new mt.Reader(gn)))}Validator(zt){const tn=d.QueryValidatorRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validator",tn).then(gn=>d.QueryValidatorResponse.decode(new mt.Reader(gn)))}ValidatorDelegations(zt){const tn=d.QueryValidatorDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorDelegations",tn).then(gn=>d.QueryValidatorDelegationsResponse.decode(new mt.Reader(gn)))}ValidatorUnbondingDelegations(zt){const tn=d.QueryValidatorUnbondingDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorUnbondingDelegations",tn).then(gn=>d.QueryValidatorUnbondingDelegationsResponse.decode(new mt.Reader(gn)))}Delegation(zt){const tn=d.QueryDelegationRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Delegation",tn).then(gn=>d.QueryDelegationResponse.decode(new mt.Reader(gn)))}UnbondingDelegation(zt){const tn=d.QueryUnbondingDelegationRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","UnbondingDelegation",tn).then(gn=>d.QueryUnbondingDelegationResponse.decode(new mt.Reader(gn)))}DelegatorDelegations(zt){const tn=d.QueryDelegatorDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorDelegations",tn).then(gn=>d.QueryDelegatorDelegationsResponse.decode(new mt.Reader(gn)))}DelegatorUnbondingDelegations(zt){const tn=d.QueryDelegatorUnbondingDelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorUnbondingDelegations",tn).then(gn=>d.QueryDelegatorUnbondingDelegationsResponse.decode(new mt.Reader(gn)))}Redelegations(zt){const tn=d.QueryRedelegationsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Redelegations",tn).then(gn=>d.QueryRedelegationsResponse.decode(new mt.Reader(gn)))}DelegatorValidators(zt){const tn=d.QueryDelegatorValidatorsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidators",tn).then(gn=>d.QueryDelegatorValidatorsResponse.decode(new mt.Reader(gn)))}DelegatorValidator(zt){const tn=d.QueryDelegatorValidatorRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidator",tn).then(gn=>d.QueryDelegatorValidatorResponse.decode(new mt.Reader(gn)))}HistoricalInfo(zt){const tn=d.QueryHistoricalInfoRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","HistoricalInfo",tn).then(gn=>d.QueryHistoricalInfoResponse.decode(new mt.Reader(gn)))}Pool(zt={}){const tn=d.QueryPoolRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Pool",tn).then(gn=>d.QueryPoolResponse.decode(new mt.Reader(gn)))}Params(zt={}){const tn=d.QueryParamsRequest.encode(zt).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Params",tn).then(gn=>d.QueryParamsResponse.decode(new mt.Reader(gn)))}}d.QueryClientImpl=dn})(query$6);var types$7={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,jt,Ht,an){an===void 0&&(an=Ht);var yt=Object.getOwnPropertyDescriptor(jt,Ht);(!yt||("get"in yt?!jt.__esModule:yt.writable||yt.configurable))&&(yt={enumerable:!0,get:function(){return jt[Ht]}}),Object.defineProperty(Mt,an,yt)}:function(Mt,jt,Ht,an){an===void 0&&(an=Ht),Mt[an]=jt[Ht]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,jt){Object.defineProperty(Mt,"default",{enumerable:!0,value:jt})}:function(Mt,jt){Mt.default=jt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var jt={};if(Mt!=null)for(var Ht in Mt)Ht!=="default"&&Object.prototype.hasOwnProperty.call(Mt,Ht)&&b(jt,Mt,Ht);return dt(jt,Mt),jt};Object.defineProperty(d,"__esModule",{value:!0}),d.Model=d.AbsoluteTxPosition=d.ContractCodeHistoryEntry=d.ContractInfo=d.CodeInfo=d.Params=d.AccessConfig=d.AccessTypeParam=d.contractCodeHistoryOperationTypeToJSON=d.contractCodeHistoryOperationTypeFromJSON=d.ContractCodeHistoryOperationType=d.accessTypeToJSON=d.accessTypeFromJSON=d.AccessType=d.protobufPackage=void 0;const lt=any,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmwasm.wasm.v1";var vt;(function(Mt){Mt[Mt.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",Mt[Mt.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",Mt[Mt.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",Mt[Mt.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",Mt[Mt.ACCESS_TYPE_ANY_OF_ADDRESSES=4]="ACCESS_TYPE_ANY_OF_ADDRESSES",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vt=d.AccessType||(d.AccessType={}));function kt(Mt){switch(Mt){case 0:case"ACCESS_TYPE_UNSPECIFIED":return vt.ACCESS_TYPE_UNSPECIFIED;case 1:case"ACCESS_TYPE_NOBODY":return vt.ACCESS_TYPE_NOBODY;case 2:case"ACCESS_TYPE_ONLY_ADDRESS":return vt.ACCESS_TYPE_ONLY_ADDRESS;case 3:case"ACCESS_TYPE_EVERYBODY":return vt.ACCESS_TYPE_EVERYBODY;case 4:case"ACCESS_TYPE_ANY_OF_ADDRESSES":return vt.ACCESS_TYPE_ANY_OF_ADDRESSES;case-1:case"UNRECOGNIZED":default:return vt.UNRECOGNIZED}}d.accessTypeFromJSON=kt;function Pt(Mt){switch(Mt){case vt.ACCESS_TYPE_UNSPECIFIED:return"ACCESS_TYPE_UNSPECIFIED";case vt.ACCESS_TYPE_NOBODY:return"ACCESS_TYPE_NOBODY";case vt.ACCESS_TYPE_ONLY_ADDRESS:return"ACCESS_TYPE_ONLY_ADDRESS";case vt.ACCESS_TYPE_EVERYBODY:return"ACCESS_TYPE_EVERYBODY";case vt.ACCESS_TYPE_ANY_OF_ADDRESSES:return"ACCESS_TYPE_ANY_OF_ADDRESSES";case vt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.accessTypeToJSON=Pt;var Jt;(function(Mt){Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",Mt[Mt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",Mt[Mt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jt=d.ContractCodeHistoryOperationType||(d.ContractCodeHistoryOperationType={}));function Zt(Mt){switch(Mt){case 0:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":return Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;case-1:case"UNRECOGNIZED":default:return Jt.UNRECOGNIZED}}d.contractCodeHistoryOperationTypeFromJSON=Zt;function Rt(Mt){switch(Mt){case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";case Jt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";case Jt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.contractCodeHistoryOperationTypeToJSON=Rt;function nn(){return{value:0}}d.AccessTypeParam={encode(Mt,jt=ht.Writer.create()){return Mt.value!==0&&jt.uint32(8).int32(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=nn();for(;Ht.pos>>3){case 1:yt.value=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{value:(0,mt.isSet)(Mt.value)?kt(Mt.value):0}},toJSON(Mt){const jt={};return Mt.value!==void 0&&(jt.value=Pt(Mt.value)),jt},fromPartial(Mt){const jt=nn();return jt.value=Mt.value??0,jt}};function Qt(){return{permission:0,address:"",addresses:[]}}d.AccessConfig={encode(Mt,jt=ht.Writer.create()){Mt.permission!==0&&jt.uint32(8).int32(Mt.permission),Mt.address!==""&&jt.uint32(18).string(Mt.address);for(const Ht of Mt.addresses)jt.uint32(26).string(Ht);return jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Qt();for(;Ht.pos>>3){case 1:yt.permission=Ht.int32();break;case 2:yt.address=Ht.string();break;case 3:yt.addresses.push(Ht.string());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{permission:(0,mt.isSet)(Mt.permission)?kt(Mt.permission):0,address:(0,mt.isSet)(Mt.address)?String(Mt.address):"",addresses:Array.isArray(Mt==null?void 0:Mt.addresses)?Mt.addresses.map(jt=>String(jt)):[]}},toJSON(Mt){const jt={};return Mt.permission!==void 0&&(jt.permission=Pt(Mt.permission)),Mt.address!==void 0&&(jt.address=Mt.address),Mt.addresses?jt.addresses=Mt.addresses.map(Ht=>Ht):jt.addresses=[],jt},fromPartial(Mt){var Ht;const jt=Qt();return jt.permission=Mt.permission??0,jt.address=Mt.address??"",jt.addresses=((Ht=Mt.addresses)==null?void 0:Ht.map(an=>an))||[],jt}};function wt(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0}}d.Params={encode(Mt,jt=ht.Writer.create()){return Mt.codeUploadAccess!==void 0&&d.AccessConfig.encode(Mt.codeUploadAccess,jt.uint32(10).fork()).ldelim(),Mt.instantiateDefaultPermission!==0&&jt.uint32(16).int32(Mt.instantiateDefaultPermission),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=wt();for(;Ht.pos>>3){case 1:yt.codeUploadAccess=d.AccessConfig.decode(Ht,Ht.uint32());break;case 2:yt.instantiateDefaultPermission=Ht.int32();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeUploadAccess:(0,mt.isSet)(Mt.codeUploadAccess)?d.AccessConfig.fromJSON(Mt.codeUploadAccess):void 0,instantiateDefaultPermission:(0,mt.isSet)(Mt.instantiateDefaultPermission)?kt(Mt.instantiateDefaultPermission):0}},toJSON(Mt){const jt={};return Mt.codeUploadAccess!==void 0&&(jt.codeUploadAccess=Mt.codeUploadAccess?d.AccessConfig.toJSON(Mt.codeUploadAccess):void 0),Mt.instantiateDefaultPermission!==void 0&&(jt.instantiateDefaultPermission=Pt(Mt.instantiateDefaultPermission)),jt},fromPartial(Mt){const jt=wt();return jt.codeUploadAccess=Mt.codeUploadAccess!==void 0&&Mt.codeUploadAccess!==null?d.AccessConfig.fromPartial(Mt.codeUploadAccess):void 0,jt.instantiateDefaultPermission=Mt.instantiateDefaultPermission??0,jt}};function Nt(){return{codeHash:new Uint8Array,creator:"",instantiateConfig:void 0}}d.CodeInfo={encode(Mt,jt=ht.Writer.create()){return Mt.codeHash.length!==0&&jt.uint32(10).bytes(Mt.codeHash),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.instantiateConfig!==void 0&&d.AccessConfig.encode(Mt.instantiateConfig,jt.uint32(42).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Nt();for(;Ht.pos>>3){case 1:yt.codeHash=Ht.bytes();break;case 2:yt.creator=Ht.string();break;case 5:yt.instantiateConfig=d.AccessConfig.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeHash:(0,mt.isSet)(Mt.codeHash)?(0,mt.bytesFromBase64)(Mt.codeHash):new Uint8Array,creator:(0,mt.isSet)(Mt.creator)?String(Mt.creator):"",instantiateConfig:(0,mt.isSet)(Mt.instantiateConfig)?d.AccessConfig.fromJSON(Mt.instantiateConfig):void 0}},toJSON(Mt){const jt={};return Mt.codeHash!==void 0&&(jt.codeHash=(0,mt.base64FromBytes)(Mt.codeHash!==void 0?Mt.codeHash:new Uint8Array)),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.instantiateConfig!==void 0&&(jt.instantiateConfig=Mt.instantiateConfig?d.AccessConfig.toJSON(Mt.instantiateConfig):void 0),jt},fromPartial(Mt){const jt=Nt();return jt.codeHash=Mt.codeHash??new Uint8Array,jt.creator=Mt.creator??"",jt.instantiateConfig=Mt.instantiateConfig!==void 0&&Mt.instantiateConfig!==null?d.AccessConfig.fromPartial(Mt.instantiateConfig):void 0,jt}};function xt(){return{codeId:mt.Long.UZERO,creator:"",admin:"",label:"",created:void 0,ibcPortId:"",extension:void 0}}d.ContractInfo={encode(Mt,jt=ht.Writer.create()){return Mt.codeId.isZero()||jt.uint32(8).uint64(Mt.codeId),Mt.creator!==""&&jt.uint32(18).string(Mt.creator),Mt.admin!==""&&jt.uint32(26).string(Mt.admin),Mt.label!==""&&jt.uint32(34).string(Mt.label),Mt.created!==void 0&&d.AbsoluteTxPosition.encode(Mt.created,jt.uint32(42).fork()).ldelim(),Mt.ibcPortId!==""&&jt.uint32(50).string(Mt.ibcPortId),Mt.extension!==void 0&<.Any.encode(Mt.extension,jt.uint32(58).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=xt();for(;Ht.pos>>3){case 1:yt.codeId=Ht.uint64();break;case 2:yt.creator=Ht.string();break;case 3:yt.admin=Ht.string();break;case 4:yt.label=Ht.string();break;case 5:yt.created=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 6:yt.ibcPortId=Ht.string();break;case 7:yt.extension=lt.Any.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{codeId:(0,mt.isSet)(Mt.codeId)?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,creator:(0,mt.isSet)(Mt.creator)?String(Mt.creator):"",admin:(0,mt.isSet)(Mt.admin)?String(Mt.admin):"",label:(0,mt.isSet)(Mt.label)?String(Mt.label):"",created:(0,mt.isSet)(Mt.created)?d.AbsoluteTxPosition.fromJSON(Mt.created):void 0,ibcPortId:(0,mt.isSet)(Mt.ibcPortId)?String(Mt.ibcPortId):"",extension:(0,mt.isSet)(Mt.extension)?lt.Any.fromJSON(Mt.extension):void 0}},toJSON(Mt){const jt={};return Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||mt.Long.UZERO).toString()),Mt.creator!==void 0&&(jt.creator=Mt.creator),Mt.admin!==void 0&&(jt.admin=Mt.admin),Mt.label!==void 0&&(jt.label=Mt.label),Mt.created!==void 0&&(jt.created=Mt.created?d.AbsoluteTxPosition.toJSON(Mt.created):void 0),Mt.ibcPortId!==void 0&&(jt.ibcPortId=Mt.ibcPortId),Mt.extension!==void 0&&(jt.extension=Mt.extension?lt.Any.toJSON(Mt.extension):void 0),jt},fromPartial(Mt){const jt=xt();return jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,jt.creator=Mt.creator??"",jt.admin=Mt.admin??"",jt.label=Mt.label??"",jt.created=Mt.created!==void 0&&Mt.created!==null?d.AbsoluteTxPosition.fromPartial(Mt.created):void 0,jt.ibcPortId=Mt.ibcPortId??"",jt.extension=Mt.extension!==void 0&&Mt.extension!==null?lt.Any.fromPartial(Mt.extension):void 0,jt}};function Et(){return{operation:0,codeId:mt.Long.UZERO,updated:void 0,msg:new Uint8Array}}d.ContractCodeHistoryEntry={encode(Mt,jt=ht.Writer.create()){return Mt.operation!==0&&jt.uint32(8).int32(Mt.operation),Mt.codeId.isZero()||jt.uint32(16).uint64(Mt.codeId),Mt.updated!==void 0&&d.AbsoluteTxPosition.encode(Mt.updated,jt.uint32(26).fork()).ldelim(),Mt.msg.length!==0&&jt.uint32(34).bytes(Mt.msg),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Et();for(;Ht.pos>>3){case 1:yt.operation=Ht.int32();break;case 2:yt.codeId=Ht.uint64();break;case 3:yt.updated=d.AbsoluteTxPosition.decode(Ht,Ht.uint32());break;case 4:yt.msg=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{operation:(0,mt.isSet)(Mt.operation)?Zt(Mt.operation):0,codeId:(0,mt.isSet)(Mt.codeId)?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,updated:(0,mt.isSet)(Mt.updated)?d.AbsoluteTxPosition.fromJSON(Mt.updated):void 0,msg:(0,mt.isSet)(Mt.msg)?(0,mt.bytesFromBase64)(Mt.msg):new Uint8Array}},toJSON(Mt){const jt={};return Mt.operation!==void 0&&(jt.operation=Rt(Mt.operation)),Mt.codeId!==void 0&&(jt.codeId=(Mt.codeId||mt.Long.UZERO).toString()),Mt.updated!==void 0&&(jt.updated=Mt.updated?d.AbsoluteTxPosition.toJSON(Mt.updated):void 0),Mt.msg!==void 0&&(jt.msg=(0,mt.base64FromBytes)(Mt.msg!==void 0?Mt.msg:new Uint8Array)),jt},fromPartial(Mt){const jt=Et();return jt.operation=Mt.operation??0,jt.codeId=Mt.codeId!==void 0&&Mt.codeId!==null?mt.Long.fromValue(Mt.codeId):mt.Long.UZERO,jt.updated=Mt.updated!==void 0&&Mt.updated!==null?d.AbsoluteTxPosition.fromPartial(Mt.updated):void 0,jt.msg=Mt.msg??new Uint8Array,jt}};function Bt(){return{blockHeight:mt.Long.UZERO,txIndex:mt.Long.UZERO}}d.AbsoluteTxPosition={encode(Mt,jt=ht.Writer.create()){return Mt.blockHeight.isZero()||jt.uint32(8).uint64(Mt.blockHeight),Mt.txIndex.isZero()||jt.uint32(16).uint64(Mt.txIndex),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Bt();for(;Ht.pos>>3){case 1:yt.blockHeight=Ht.uint64();break;case 2:yt.txIndex=Ht.uint64();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{blockHeight:(0,mt.isSet)(Mt.blockHeight)?mt.Long.fromValue(Mt.blockHeight):mt.Long.UZERO,txIndex:(0,mt.isSet)(Mt.txIndex)?mt.Long.fromValue(Mt.txIndex):mt.Long.UZERO}},toJSON(Mt){const jt={};return Mt.blockHeight!==void 0&&(jt.blockHeight=(Mt.blockHeight||mt.Long.UZERO).toString()),Mt.txIndex!==void 0&&(jt.txIndex=(Mt.txIndex||mt.Long.UZERO).toString()),jt},fromPartial(Mt){const jt=Bt();return jt.blockHeight=Mt.blockHeight!==void 0&&Mt.blockHeight!==null?mt.Long.fromValue(Mt.blockHeight):mt.Long.UZERO,jt.txIndex=Mt.txIndex!==void 0&&Mt.txIndex!==null?mt.Long.fromValue(Mt.txIndex):mt.Long.UZERO,jt}};function Tt(){return{key:new Uint8Array,value:new Uint8Array}}d.Model={encode(Mt,jt=ht.Writer.create()){return Mt.key.length!==0&&jt.uint32(10).bytes(Mt.key),Mt.value.length!==0&&jt.uint32(18).bytes(Mt.value),jt},decode(Mt,jt){const Ht=Mt instanceof ht.Reader?Mt:new ht.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Tt();for(;Ht.pos>>3){case 1:yt.key=Ht.bytes();break;case 2:yt.value=Ht.bytes();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{key:(0,mt.isSet)(Mt.key)?(0,mt.bytesFromBase64)(Mt.key):new Uint8Array,value:(0,mt.isSet)(Mt.value)?(0,mt.bytesFromBase64)(Mt.value):new Uint8Array}},toJSON(Mt){const jt={};return Mt.key!==void 0&&(jt.key=(0,mt.base64FromBytes)(Mt.key!==void 0?Mt.key:new Uint8Array)),Mt.value!==void 0&&(jt.value=(0,mt.base64FromBytes)(Mt.value!==void 0?Mt.value:new Uint8Array)),jt},fromPartial(Mt){const jt=Tt();return jt.key=Mt.key??new Uint8Array,jt.value=Mt.value??new Uint8Array,jt}}})(types$7);var query$5={},coin={},indexMinimal={},minimal$1={},longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=b;var d=requireMinimal();function b(ht,mt){this.lo=ht>>>0,this.hi=mt>>>0}var dt=b.zero=new b(0,0);dt.toNumber=function(){return 0},dt.zzEncode=dt.zzDecode=function(){return this},dt.length=function(){return 1};var ct=b.zeroHash="\0\0\0\0\0\0\0\0";b.fromNumber=function(mt){if(mt===0)return dt;var vt=mt<0;vt&&(mt=-mt);var kt=mt>>>0,Pt=(mt-kt)/4294967296>>>0;return vt&&(Pt=~Pt>>>0,kt=~kt>>>0,++kt>4294967295&&(kt=0,++Pt>4294967295&&(Pt=0))),new b(kt,Pt)},b.from=function(mt){if(typeof mt=="number")return b.fromNumber(mt);if(d.isString(mt))if(d.Long)mt=d.Long.fromString(mt);else return b.fromNumber(parseInt(mt,10));return mt.low||mt.high?new b(mt.low>>>0,mt.high>>>0):dt},b.prototype.toNumber=function(mt){if(!mt&&this.hi>>>31){var vt=~this.lo+1>>>0,kt=~this.hi>>>0;return vt||(kt=kt+1>>>0),-(vt+kt*4294967296)}return this.lo+this.hi*4294967296},b.prototype.toLong=function(mt){return d.Long?new d.Long(this.lo|0,this.hi|0,!!mt):{low:this.lo|0,high:this.hi|0,unsigned:!!mt}};var lt=String.prototype.charCodeAt;return b.fromHash=function(mt){return mt===ct?dt:new b((lt.call(mt,0)|lt.call(mt,1)<<8|lt.call(mt,2)<<16|lt.call(mt,3)<<24)>>>0,(lt.call(mt,4)|lt.call(mt,5)<<8|lt.call(mt,6)<<16|lt.call(mt,7)<<24)>>>0)},b.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},b.prototype.zzEncode=function(){var mt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^mt)>>>0,this.lo=(this.lo<<1^mt)>>>0,this},b.prototype.zzDecode=function(){var mt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^mt)>>>0,this.hi=(this.hi>>>1^mt)>>>0,this},b.prototype.length=function(){var mt=this.lo,vt=(this.lo>>>28|this.hi<<4)>>>0,kt=this.hi>>>24;return kt===0?vt===0?mt<16384?mt<128?1:2:mt<2097152?3:4:vt<16384?vt<128?5:6:vt<2097152?7:8:kt<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(d){var b=d;b.asPromise=aspromise,b.base64=base64$8,b.EventEmitter=eventemitter,b.float=float,b.inquire=inquire_1,b.utf8=utf8$b,b.pool=pool_1,b.LongBits=requireLongbits(),b.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),b.global=b.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,b.emptyArray=Object.freeze?Object.freeze([]):[],b.emptyObject=Object.freeze?Object.freeze({}):{},b.isInteger=Number.isInteger||function(ht){return typeof ht=="number"&&isFinite(ht)&&Math.floor(ht)===ht},b.isString=function(ht){return typeof ht=="string"||ht instanceof String},b.isObject=function(ht){return ht&&typeof ht=="object"},b.isset=b.isSet=function(ht,mt){var vt=ht[mt];return vt!=null&&ht.hasOwnProperty(mt)?typeof vt!="object"||(Array.isArray(vt)?vt.length:Object.keys(vt).length)>0:!1},b.Buffer=function(){try{var lt=b.inquire("buffer").Buffer;return lt.prototype.utf8Write?lt:null}catch{return null}}(),b._Buffer_from=null,b._Buffer_allocUnsafe=null,b.newBuffer=function(ht){return typeof ht=="number"?b.Buffer?b._Buffer_allocUnsafe(ht):new b.Array(ht):b.Buffer?b._Buffer_from(ht):typeof Uint8Array>"u"?ht:new Uint8Array(ht)},b.Array=typeof Uint8Array<"u"?Uint8Array:Array,b.Long=b.global.dcodeIO&&b.global.dcodeIO.Long||b.global.Long||b.inquire("long"),b.key2Re=/^true|false|0|1$/,b.key32Re=/^-?(?:0|[1-9][0-9]*)$/,b.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,b.longToHash=function(ht){return ht?b.LongBits.from(ht).toHash():b.LongBits.zeroHash},b.longFromHash=function(ht,mt){var vt=b.LongBits.fromHash(ht);return b.Long?b.Long.fromBits(vt.lo,vt.hi,mt):vt.toNumber(!!mt)};function dt(lt,ht,mt){for(var vt=Object.keys(ht),kt=0;kt-1;--Pt)if(mt[kt[Pt]]===1&&this[kt[Pt]]!==void 0&&this[kt[Pt]]!==null)return kt[Pt]}},b.oneOfSetter=function(ht){return function(mt){for(var vt=0;vt127;)b[dt++]=d&127|128,d>>>=7;b[dt]=d}function VarintOp(d,b){this.len=d,this.next=void 0,this.val=b}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function d(b){return this.len+=(this.tail=this.tail.next=new VarintOp((b=b>>>0)<128?1:b<16384?2:b<2097152?3:b<268435456?4:5,b)).len,this};Writer$1.prototype.int32=function d(b){return b<0?this._push(writeVarint64,10,LongBits$1.fromNumber(b)):this.uint32(b)};Writer$1.prototype.sint32=function d(b){return this.uint32((b<<1^b>>31)>>>0)};function writeVarint64(d,b,dt){for(;d.hi;)b[dt++]=d.lo&127|128,d.lo=(d.lo>>>7|d.hi<<25)>>>0,d.hi>>>=7;for(;d.lo>127;)b[dt++]=d.lo&127|128,d.lo=d.lo>>>7;b[dt++]=d.lo}Writer$1.prototype.uint64=function d(b){var dt=LongBits$1.from(b);return this._push(writeVarint64,dt.length(),dt)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function d(b){var dt=LongBits$1.from(b).zzEncode();return this._push(writeVarint64,dt.length(),dt)};Writer$1.prototype.bool=function d(b){return this._push(writeByte,1,b?1:0)};function writeFixed32(d,b,dt){b[dt]=d&255,b[dt+1]=d>>>8&255,b[dt+2]=d>>>16&255,b[dt+3]=d>>>24}Writer$1.prototype.fixed32=function d(b){return this._push(writeFixed32,4,b>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function d(b){var dt=LongBits$1.from(b);return this._push(writeFixed32,4,dt.lo)._push(writeFixed32,4,dt.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function d(b){return this._push(util$5.float.writeFloatLE,4,b)};Writer$1.prototype.double=function d(b){return this._push(util$5.float.writeDoubleLE,8,b)};var writeBytes=util$5.Array.prototype.set?function d(b,dt,ct){dt.set(b,ct)}:function d(b,dt,ct){for(var lt=0;lt>>0;if(!dt)return this._push(writeByte,1,0);if(util$5.isString(b)){var ct=Writer$1.alloc(dt=base64.length(b));base64.decode(b,ct,0),b=ct}return this.uint32(dt)._push(writeBytes,dt,b)};Writer$1.prototype.string=function d(b){var dt=utf8$1.length(b);return dt?this.uint32(dt)._push(utf8$1.write,dt,b):this._push(writeByte,1,0)};Writer$1.prototype.fork=function d(){return this.states=new State(this),this.head=this.tail=new Op(noop$2,0,0),this.len=0,this};Writer$1.prototype.reset=function d(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop$2,0,0),this.len=0),this};Writer$1.prototype.ldelim=function d(){var b=this.head,dt=this.tail,ct=this.len;return this.reset().uint32(ct),ct&&(this.tail.next=b.next,this.tail=dt,this.len+=ct),this};Writer$1.prototype.finish=function d(){for(var b=this.head.next,dt=this.constructor.alloc(this.len),ct=0;b;)b.fn(b.val,dt,ct),ct+=b.len,b=b.next;return dt};Writer$1._configure=function(d){BufferWriter$1=d,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$4=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$4._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$4.Buffer&&util$4.Buffer.prototype instanceof Uint8Array&&util$4.Buffer.prototype.set.name==="set"?function(b,dt,ct){dt.set(b,ct)}:function(b,dt,ct){if(b.copy)b.copy(dt,ct,0,b.length);else for(var lt=0;lt>>0;return this.uint32(dt),dt&&this._push(BufferWriter.writeBytesBuffer,dt,b),this};function writeStringBuffer(d,b,dt){d.length<40?util$4.utf8.write(d,b,dt):b.utf8Write?b.utf8Write(d,dt):b.write(d,dt)}BufferWriter.prototype.string=function d(b){var dt=util$4.Buffer.byteLength(b);return this.uint32(dt),dt&&this._push(writeStringBuffer,dt,b),this};BufferWriter._configure();var reader$1=Reader$1,util$3=requireMinimal(),BufferReader$1,LongBits=util$3.LongBits,utf8=util$3.utf8;function indexOutOfRange(d,b){return RangeError("index out of range: "+d.pos+" + "+(b||1)+" > "+d.len)}function Reader$1(d){this.buf=d,this.pos=0,this.len=d.length}var create_array=typeof Uint8Array<"u"?function d(b){if(b instanceof Uint8Array||Array.isArray(b))return new Reader$1(b);throw Error("illegal buffer")}:function d(b){if(Array.isArray(b))return new Reader$1(b);throw Error("illegal buffer")},create=function d(){return util$3.Buffer?function(dt){return(Reader$1.create=function(lt){return util$3.Buffer.isBuffer(lt)?new BufferReader$1(lt):create_array(lt)})(dt)}:create_array};Reader$1.create=create();Reader$1.prototype._slice=util$3.Array.prototype.subarray||util$3.Array.prototype.slice;Reader$1.prototype.uint32=function d(){var b=4294967295;return function(){if(b=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(b=(b|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(b=(b|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return b;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return b}}();Reader$1.prototype.int32=function d(){return this.uint32()|0};Reader$1.prototype.sint32=function d(){var b=this.uint32();return b>>>1^-(b&1)|0};function readLongVarint(){var d=new LongBits(0,0),b=0;if(this.len-this.pos>4){for(;b<4;++b)if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d;if(d.lo=(d.lo|(this.buf[this.pos]&127)<<28)>>>0,d.hi=(d.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return d;b=0}else{for(;b<3;++b){if(this.pos>=this.len)throw indexOutOfRange(this);if(d.lo=(d.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}return d.lo=(d.lo|(this.buf[this.pos++]&127)<>>0,d}if(this.len-this.pos>4){for(;b<5;++b)if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}else for(;b<5;++b){if(this.pos>=this.len)throw indexOutOfRange(this);if(d.hi=(d.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return d}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function d(){return this.uint32()!==0};function readFixed32_end(d,b){return(d[b-4]|d[b-3]<<8|d[b-2]<<16|d[b-1]<<24)>>>0}Reader$1.prototype.fixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function d(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function d(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var b=util$3.float.readFloatLE(this.buf,this.pos);return this.pos+=4,b};Reader$1.prototype.double=function d(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var b=util$3.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,b};Reader$1.prototype.bytes=function d(){var b=this.uint32(),dt=this.pos,ct=this.pos+b;if(ct>this.len)throw indexOutOfRange(this,b);return this.pos+=b,Array.isArray(this.buf)?this.buf.slice(dt,ct):dt===ct?new this.buf.constructor(0):this._slice.call(this.buf,dt,ct)};Reader$1.prototype.string=function d(){var b=this.bytes();return utf8.read(b,0,b.length)};Reader$1.prototype.skip=function d(b){if(typeof b=="number"){if(this.pos+b>this.len)throw indexOutOfRange(this,b);this.pos+=b}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(d){switch(d){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(d=this.uint32()&7)!==4;)this.skipType(d);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+d+" at offset "+this.pos)}return this};Reader$1._configure=function(d){BufferReader$1=d,Reader$1.create=create(),BufferReader$1._configure();var b=util$3.Long?"toLong":"toNumber";util$3.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[b](!1)},uint64:function(){return readLongVarint.call(this)[b](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[b](!1)},fixed64:function(){return readFixed64.call(this)[b](!0)},sfixed64:function(){return readFixed64.call(this)[b](!1)}})};var reader_buffer=BufferReader,Reader=reader$1;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$2=requireMinimal();function BufferReader(d){Reader.call(this,d)}BufferReader._configure=function(){util$2.Buffer&&(BufferReader.prototype._slice=util$2.Buffer.prototype.slice)};BufferReader.prototype.string=function d(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))};BufferReader._configure();var rpc={},service=Service,util$1=requireMinimal();(Service.prototype=Object.create(util$1.EventEmitter.prototype)).constructor=Service;function Service(d,b,dt){if(typeof d!="function")throw TypeError("rpcImpl must be a function");util$1.EventEmitter.call(this),this.rpcImpl=d,this.requestDelimited=!!b,this.responseDelimited=!!dt}Service.prototype.rpcCall=function d(b,dt,ct,lt,ht){if(!lt)throw TypeError("request must be specified");var mt=this;if(!ht)return util$1.asPromise(d,mt,b,dt,ct,lt);if(!mt.rpcImpl){setTimeout(function(){ht(Error("already ended"))},0);return}try{return mt.rpcImpl(b,dt[mt.requestDelimited?"encodeDelimited":"encode"](lt).finish(),function(kt,Pt){if(kt)return mt.emit("error",kt,b),ht(kt);if(Pt===null){mt.end(!0);return}if(!(Pt instanceof ct))try{Pt=ct[mt.responseDelimited?"decodeDelimited":"decode"](Pt)}catch(Jt){return mt.emit("error",Jt,b),ht(Jt)}return mt.emit("data",Pt,b),ht(null,Pt)})}catch(vt){mt.emit("error",vt,b),setTimeout(function(){ht(vt)},0);return}};Service.prototype.end=function d(b){return this.rpcImpl&&(b||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(d){var b=d;b.Service=service})(rpc);var roots={};(function(d){var b=d;b.build="minimal",b.Writer=writer,b.BufferWriter=writer_buffer,b.Reader=reader$1,b.BufferReader=reader_buffer,b.util=requireMinimal(),b.rpc=rpc,b.roots=roots,b.configure=dt;function dt(){b.util._configure(),b.Writer._configure(b.BufferWriter),b.Reader._configure(b.BufferReader)}dt()})(indexMinimal);var minimal=indexMinimal;Object.defineProperty(coin,"__esModule",{value:!0});coin.DecProto=coin.IntProto=coin.DecCoin=coin.Coin=coin.protobufPackage=void 0;const minimal_1$7=minimal;coin.protobufPackage="cosmos.base.v1beta1";const baseCoin={denom:"",amount:""};coin.Coin={encode(d,b=minimal_1$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseCoin};for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseCoin};return d.denom!==void 0&&d.denom!==null?b.denom=String(d.denom):b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=String(d.amount):b.amount="",b},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b={...baseCoin};return d.denom!==void 0&&d.denom!==null?b.denom=d.denom:b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=d.amount:b.amount="",b}};const baseDecCoin={denom:"",amount:""};coin.DecCoin={encode(d,b=minimal_1$7.Writer.create()){return d.denom!==""&&b.uint32(10).string(d.denom),d.amount!==""&&b.uint32(18).string(d.amount),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseDecCoin};for(;dt.pos>>3){case 1:lt.denom=dt.string();break;case 2:lt.amount=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseDecCoin};return d.denom!==void 0&&d.denom!==null?b.denom=String(d.denom):b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=String(d.amount):b.amount="",b},toJSON(d){const b={};return d.denom!==void 0&&(b.denom=d.denom),d.amount!==void 0&&(b.amount=d.amount),b},fromPartial(d){const b={...baseDecCoin};return d.denom!==void 0&&d.denom!==null?b.denom=d.denom:b.denom="",d.amount!==void 0&&d.amount!==null?b.amount=d.amount:b.amount="",b}};const baseIntProto={int:""};coin.IntProto={encode(d,b=minimal_1$7.Writer.create()){return d.int!==""&&b.uint32(10).string(d.int),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseIntProto};for(;dt.pos>>3){case 1:lt.int=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseIntProto};return d.int!==void 0&&d.int!==null?b.int=String(d.int):b.int="",b},toJSON(d){const b={};return d.int!==void 0&&(b.int=d.int),b},fromPartial(d){const b={...baseIntProto};return d.int!==void 0&&d.int!==null?b.int=d.int:b.int="",b}};const baseDecProto={dec:""};coin.DecProto={encode(d,b=minimal_1$7.Writer.create()){return d.dec!==""&&b.uint32(10).string(d.dec),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$7.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...baseDecProto};for(;dt.pos>>3){case 1:lt.dec=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...baseDecProto};return d.dec!==void 0&&d.dec!==null?b.dec=String(d.dec):b.dec="",b},toJSON(d){const b={};return d.dec!==void 0&&(b.dec=d.dec),b},fromPartial(d){const b={...baseDecProto};return d.dec!==void 0&&d.dec!==null?b.dec=d.dec:b.dec="",b}};var types$6={},__importDefault$i=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$6,"__esModule",{value:!0});types$6.Price=types$6.NeuronBandwidth=types$6.Params=types$6.protobufPackage=void 0;const long_1$7=__importDefault$i(long),minimal_1$6=__importDefault$i(minimal);types$6.protobufPackage="cyber.bandwidth.v1beta1";function createBaseParams$3(){return{recoveryPeriod:long_1$7.default.UZERO,adjustPricePeriod:long_1$7.default.UZERO,basePrice:"",baseLoad:"",maxBlockBandwidth:long_1$7.default.UZERO}}types$6.Params={encode(d,b=minimal_1$6.default.Writer.create()){return d.recoveryPeriod.isZero()||b.uint32(8).uint64(d.recoveryPeriod),d.adjustPricePeriod.isZero()||b.uint32(16).uint64(d.adjustPricePeriod),d.basePrice!==""&&b.uint32(26).string(d.basePrice),d.baseLoad!==""&&b.uint32(34).string(d.baseLoad),d.maxBlockBandwidth.isZero()||b.uint32(40).uint64(d.maxBlockBandwidth),b},decode(d,b){const dt=d instanceof minimal_1$6.default.Reader?d:new minimal_1$6.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$3();for(;dt.pos>>3){case 1:lt.recoveryPeriod=dt.uint64();break;case 2:lt.adjustPricePeriod=dt.uint64();break;case 3:lt.basePrice=dt.string();break;case 4:lt.baseLoad=dt.string();break;case 5:lt.maxBlockBandwidth=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{recoveryPeriod:isSet$5(d.recoveryPeriod)?long_1$7.default.fromValue(d.recoveryPeriod):long_1$7.default.UZERO,adjustPricePeriod:isSet$5(d.adjustPricePeriod)?long_1$7.default.fromValue(d.adjustPricePeriod):long_1$7.default.UZERO,basePrice:isSet$5(d.basePrice)?String(d.basePrice):"",baseLoad:isSet$5(d.baseLoad)?String(d.baseLoad):"",maxBlockBandwidth:isSet$5(d.maxBlockBandwidth)?long_1$7.default.fromValue(d.maxBlockBandwidth):long_1$7.default.UZERO}},toJSON(d){const b={};return d.recoveryPeriod!==void 0&&(b.recoveryPeriod=(d.recoveryPeriod||long_1$7.default.UZERO).toString()),d.adjustPricePeriod!==void 0&&(b.adjustPricePeriod=(d.adjustPricePeriod||long_1$7.default.UZERO).toString()),d.basePrice!==void 0&&(b.basePrice=d.basePrice),d.baseLoad!==void 0&&(b.baseLoad=d.baseLoad),d.maxBlockBandwidth!==void 0&&(b.maxBlockBandwidth=(d.maxBlockBandwidth||long_1$7.default.UZERO).toString()),b},fromPartial(d){const b=createBaseParams$3();return b.recoveryPeriod=d.recoveryPeriod!==void 0&&d.recoveryPeriod!==null?long_1$7.default.fromValue(d.recoveryPeriod):long_1$7.default.UZERO,b.adjustPricePeriod=d.adjustPricePeriod!==void 0&&d.adjustPricePeriod!==null?long_1$7.default.fromValue(d.adjustPricePeriod):long_1$7.default.UZERO,b.basePrice=d.basePrice??"",b.baseLoad=d.baseLoad??"",b.maxBlockBandwidth=d.maxBlockBandwidth!==void 0&&d.maxBlockBandwidth!==null?long_1$7.default.fromValue(d.maxBlockBandwidth):long_1$7.default.UZERO,b}};function createBaseNeuronBandwidth(){return{neuron:"",remainedValue:long_1$7.default.UZERO,lastUpdatedBlock:long_1$7.default.UZERO,maxValue:long_1$7.default.UZERO}}types$6.NeuronBandwidth={encode(d,b=minimal_1$6.default.Writer.create()){return d.neuron!==""&&b.uint32(10).string(d.neuron),d.remainedValue.isZero()||b.uint32(16).uint64(d.remainedValue),d.lastUpdatedBlock.isZero()||b.uint32(24).uint64(d.lastUpdatedBlock),d.maxValue.isZero()||b.uint32(32).uint64(d.maxValue),b},decode(d,b){const dt=d instanceof minimal_1$6.default.Reader?d:new minimal_1$6.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseNeuronBandwidth();for(;dt.pos>>3){case 1:lt.neuron=dt.string();break;case 2:lt.remainedValue=dt.uint64();break;case 3:lt.lastUpdatedBlock=dt.uint64();break;case 4:lt.maxValue=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{neuron:isSet$5(d.neuron)?String(d.neuron):"",remainedValue:isSet$5(d.remainedValue)?long_1$7.default.fromValue(d.remainedValue):long_1$7.default.UZERO,lastUpdatedBlock:isSet$5(d.lastUpdatedBlock)?long_1$7.default.fromValue(d.lastUpdatedBlock):long_1$7.default.UZERO,maxValue:isSet$5(d.maxValue)?long_1$7.default.fromValue(d.maxValue):long_1$7.default.UZERO}},toJSON(d){const b={};return d.neuron!==void 0&&(b.neuron=d.neuron),d.remainedValue!==void 0&&(b.remainedValue=(d.remainedValue||long_1$7.default.UZERO).toString()),d.lastUpdatedBlock!==void 0&&(b.lastUpdatedBlock=(d.lastUpdatedBlock||long_1$7.default.UZERO).toString()),d.maxValue!==void 0&&(b.maxValue=(d.maxValue||long_1$7.default.UZERO).toString()),b},fromPartial(d){const b=createBaseNeuronBandwidth();return b.neuron=d.neuron??"",b.remainedValue=d.remainedValue!==void 0&&d.remainedValue!==null?long_1$7.default.fromValue(d.remainedValue):long_1$7.default.UZERO,b.lastUpdatedBlock=d.lastUpdatedBlock!==void 0&&d.lastUpdatedBlock!==null?long_1$7.default.fromValue(d.lastUpdatedBlock):long_1$7.default.UZERO,b.maxValue=d.maxValue!==void 0&&d.maxValue!==null?long_1$7.default.fromValue(d.maxValue):long_1$7.default.UZERO,b}};function createBasePrice(){return{price:""}}types$6.Price={encode(d,b=minimal_1$6.default.Writer.create()){return d.price!==""&&b.uint32(10).string(d.price),b},decode(d,b){const dt=d instanceof minimal_1$6.default.Reader?d:new minimal_1$6.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePrice();for(;dt.pos>>3){case 1:lt.price=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{price:isSet$5(d.price)?String(d.price):""}},toJSON(d){const b={};return d.price!==void 0&&(b.price=d.price),b},fromPartial(d){const b=createBasePrice();return b.price=d.price??"",b}};minimal_1$6.default.util.Long!==long_1$7.default&&(minimal_1$6.default.util.Long=long_1$7.default,minimal_1$6.default.configure());function isSet$5(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Et){return Et&&Et.__esModule?Et:{default:Et}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryNeuronBandwidthResponse=d.QueryNeuronBandwidthRequest=d.QueryTotalBandwidthResponse=d.QueryTotalBandwidthRequest=d.QueryPriceResponse=d.QueryPriceRequest=d.QueryLoadResponse=d.QueryLoadRequest=d.protobufPackage=void 0;const dt=coin,ct=types$6,lt=b(long),ht=b(minimal);d.protobufPackage="cyber.bandwidth.v1beta1";function mt(){return{}}d.QueryLoadRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=mt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return mt()}};function vt(){return{load:void 0}}d.QueryLoadResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.load!==void 0&&dt.DecProto.encode(Et.load,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=vt();for(;Tt.pos>>3){case 1:jt.load=dt.DecProto.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{load:xt(Et.load)?dt.DecProto.fromJSON(Et.load):void 0}},toJSON(Et){const Bt={};return Et.load!==void 0&&(Bt.load=Et.load?dt.DecProto.toJSON(Et.load):void 0),Bt},fromPartial(Et){const Bt=vt();return Bt.load=Et.load!==void 0&&Et.load!==null?dt.DecProto.fromPartial(Et.load):void 0,Bt}};function kt(){return{}}d.QueryPriceRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=kt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return kt()}};function Pt(){return{price:void 0}}d.QueryPriceResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.price!==void 0&&dt.DecProto.encode(Et.price,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.price=dt.DecProto.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{price:xt(Et.price)?dt.DecProto.fromJSON(Et.price):void 0}},toJSON(Et){const Bt={};return Et.price!==void 0&&(Bt.price=Et.price?dt.DecProto.toJSON(Et.price):void 0),Bt},fromPartial(Et){const Bt=Pt();return Bt.price=Et.price!==void 0&&Et.price!==null?dt.DecProto.fromPartial(Et.price):void 0,Bt}};function Jt(){return{}}d.QueryTotalBandwidthRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Jt()}};function Zt(){return{totalBandwidth:lt.default.UZERO}}d.QueryTotalBandwidthResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.totalBandwidth.isZero()||Bt.uint32(8).uint64(Et.totalBandwidth),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.totalBandwidth=Tt.uint64();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{totalBandwidth:xt(Et.totalBandwidth)?lt.default.fromValue(Et.totalBandwidth):lt.default.UZERO}},toJSON(Et){const Bt={};return Et.totalBandwidth!==void 0&&(Bt.totalBandwidth=(Et.totalBandwidth||lt.default.UZERO).toString()),Bt},fromPartial(Et){const Bt=Zt();return Bt.totalBandwidth=Et.totalBandwidth!==void 0&&Et.totalBandwidth!==null?lt.default.fromValue(Et.totalBandwidth):lt.default.UZERO,Bt}};function Rt(){return{neuron:""}}d.QueryNeuronBandwidthRequest={encode(Et,Bt=ht.default.Writer.create()){return Et.neuron!==""&&Bt.uint32(10).string(Et.neuron),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){case 1:jt.neuron=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{neuron:xt(Et.neuron)?String(Et.neuron):""}},toJSON(Et){const Bt={};return Et.neuron!==void 0&&(Bt.neuron=Et.neuron),Bt},fromPartial(Et){const Bt=Rt();return Bt.neuron=Et.neuron??"",Bt}};function nn(){return{neuronBandwidth:void 0}}d.QueryNeuronBandwidthResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.neuronBandwidth!==void 0&&ct.NeuronBandwidth.encode(Et.neuronBandwidth,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.neuronBandwidth=ct.NeuronBandwidth.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{neuronBandwidth:xt(Et.neuronBandwidth)?ct.NeuronBandwidth.fromJSON(Et.neuronBandwidth):void 0}},toJSON(Et){const Bt={};return Et.neuronBandwidth!==void 0&&(Bt.neuronBandwidth=Et.neuronBandwidth?ct.NeuronBandwidth.toJSON(Et.neuronBandwidth):void 0),Bt},fromPartial(Et){const Bt=nn();return Bt.neuronBandwidth=Et.neuronBandwidth!==void 0&&Et.neuronBandwidth!==null?ct.NeuronBandwidth.fromPartial(Et.neuronBandwidth):void 0,Bt}};function Qt(){return{}}d.QueryParamsRequest={encode(Et,Bt=ht.default.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Qt()}};function wt(){return{params:void 0}}d.QueryParamsResponse={encode(Et,Bt=ht.default.Writer.create()){return Et.params!==void 0&&ct.Params.encode(Et.params,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof ht.default.Reader?Et:new ht.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.params=ct.Params.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{params:xt(Et.params)?ct.Params.fromJSON(Et.params):void 0}},toJSON(Et){const Bt={};return Et.params!==void 0&&(Bt.params=Et.params?ct.Params.toJSON(Et.params):void 0),Bt},fromPartial(Et){const Bt=wt();return Bt.params=Et.params!==void 0&&Et.params!==null?ct.Params.fromPartial(Et.params):void 0,Bt}};class Nt{constructor(Bt){this.rpc=Bt,this.Load=this.Load.bind(this),this.Price=this.Price.bind(this),this.TotalBandwidth=this.TotalBandwidth.bind(this),this.NeuronBandwidth=this.NeuronBandwidth.bind(this),this.Params=this.Params.bind(this)}Load(Bt){const Tt=d.QueryLoadRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","Load",Tt).then(jt=>d.QueryLoadResponse.decode(new ht.default.Reader(jt)))}Price(Bt){const Tt=d.QueryPriceRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","Price",Tt).then(jt=>d.QueryPriceResponse.decode(new ht.default.Reader(jt)))}TotalBandwidth(Bt){const Tt=d.QueryTotalBandwidthRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","TotalBandwidth",Tt).then(jt=>d.QueryTotalBandwidthResponse.decode(new ht.default.Reader(jt)))}NeuronBandwidth(Bt){const Tt=d.QueryNeuronBandwidthRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","NeuronBandwidth",Tt).then(jt=>d.QueryNeuronBandwidthResponse.decode(new ht.default.Reader(jt)))}Params(Bt){const Tt=d.QueryParamsRequest.encode(Bt).finish();return this.rpc.request("cyber.bandwidth.v1beta1.Query","Params",Tt).then(jt=>d.QueryParamsResponse.decode(new ht.default.Reader(jt)))}}d.QueryClientImpl=Nt,ht.default.util.Long!==lt.default&&(ht.default.util.Long=lt.default,ht.default.configure());function xt(Et){return Et!=null}})(query$5);var query$4={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(kt){return kt&&kt.__esModule?kt:{default:kt}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryGraphStatsResponse=d.QueryGraphStatsRequest=d.protobufPackage=void 0;const dt=b(long),ct=b(minimal);d.protobufPackage="cyber.graph.v1beta1";function lt(){return{}}d.QueryGraphStatsRequest={encode(kt,Pt=ct.default.Writer.create()){return Pt},decode(kt,Pt){const Jt=kt instanceof ct.default.Reader?kt:new ct.default.Reader(kt);let Zt=Pt===void 0?Jt.len:Jt.pos+Pt;const Rt=lt();for(;Jt.pos>>3){default:Jt.skipType(nn&7);break}}return Rt},fromJSON(kt){return{}},toJSON(kt){return{}},fromPartial(kt){return lt()}};function ht(){return{cyberlinks:dt.default.UZERO,particles:dt.default.UZERO}}d.QueryGraphStatsResponse={encode(kt,Pt=ct.default.Writer.create()){return kt.cyberlinks.isZero()||Pt.uint32(8).uint64(kt.cyberlinks),kt.particles.isZero()||Pt.uint32(16).uint64(kt.particles),Pt},decode(kt,Pt){const Jt=kt instanceof ct.default.Reader?kt:new ct.default.Reader(kt);let Zt=Pt===void 0?Jt.len:Jt.pos+Pt;const Rt=ht();for(;Jt.pos>>3){case 1:Rt.cyberlinks=Jt.uint64();break;case 2:Rt.particles=Jt.uint64();break;default:Jt.skipType(nn&7);break}}return Rt},fromJSON(kt){return{cyberlinks:vt(kt.cyberlinks)?dt.default.fromValue(kt.cyberlinks):dt.default.UZERO,particles:vt(kt.particles)?dt.default.fromValue(kt.particles):dt.default.UZERO}},toJSON(kt){const Pt={};return kt.cyberlinks!==void 0&&(Pt.cyberlinks=(kt.cyberlinks||dt.default.UZERO).toString()),kt.particles!==void 0&&(Pt.particles=(kt.particles||dt.default.UZERO).toString()),Pt},fromPartial(kt){const Pt=ht();return Pt.cyberlinks=kt.cyberlinks!==void 0&&kt.cyberlinks!==null?dt.default.fromValue(kt.cyberlinks):dt.default.UZERO,Pt.particles=kt.particles!==void 0&&kt.particles!==null?dt.default.fromValue(kt.particles):dt.default.UZERO,Pt}};class mt{constructor(Pt){this.rpc=Pt,this.GraphStats=this.GraphStats.bind(this)}GraphStats(Pt){const Jt=d.QueryGraphStatsRequest.encode(Pt).finish();return this.rpc.request("cyber.graph.v1beta1.Query","GraphStats",Jt).then(Rt=>d.QueryGraphStatsResponse.decode(new ct.default.Reader(Rt)))}}d.QueryClientImpl=mt,ct.default.util.Long!==dt.default&&(ct.default.util.Long=dt.default,ct.default.configure());function vt(kt){return kt!=null}})(query$4);var query$3={},types$5={},__importDefault$h=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$5,"__esModule",{value:!0});types$5.Value=types$5.Route=types$5.Params=types$5.protobufPackage=void 0;const long_1$6=__importDefault$h(long),coin_1$1=coin,minimal_1$5=__importDefault$h(minimal);types$5.protobufPackage="cyber.grid.v1beta1";function createBaseParams$2(){return{maxRoutes:0}}types$5.Params={encode(d,b=minimal_1$5.default.Writer.create()){return d.maxRoutes!==0&&b.uint32(8).uint32(d.maxRoutes),b},decode(d,b){const dt=d instanceof minimal_1$5.default.Reader?d:new minimal_1$5.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$2();for(;dt.pos>>3){case 1:lt.maxRoutes=dt.uint32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{maxRoutes:isSet$4(d.maxRoutes)?Number(d.maxRoutes):0}},toJSON(d){const b={};return d.maxRoutes!==void 0&&(b.maxRoutes=Math.round(d.maxRoutes)),b},fromPartial(d){const b=createBaseParams$2();return b.maxRoutes=d.maxRoutes??0,b}};function createBaseRoute(){return{source:"",destination:"",name:"",value:[]}}types$5.Route={encode(d,b=minimal_1$5.default.Writer.create()){d.source!==""&&b.uint32(10).string(d.source),d.destination!==""&&b.uint32(18).string(d.destination),d.name!==""&&b.uint32(26).string(d.name);for(const dt of d.value)coin_1$1.Coin.encode(dt,b.uint32(34).fork()).ldelim();return b},decode(d,b){const dt=d instanceof minimal_1$5.default.Reader?d:new minimal_1$5.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseRoute();for(;dt.pos>>3){case 1:lt.source=dt.string();break;case 2:lt.destination=dt.string();break;case 3:lt.name=dt.string();break;case 4:lt.value.push(coin_1$1.Coin.decode(dt,dt.uint32()));break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{source:isSet$4(d.source)?String(d.source):"",destination:isSet$4(d.destination)?String(d.destination):"",name:isSet$4(d.name)?String(d.name):"",value:Array.isArray(d==null?void 0:d.value)?d.value.map(b=>coin_1$1.Coin.fromJSON(b)):[]}},toJSON(d){const b={};return d.source!==void 0&&(b.source=d.source),d.destination!==void 0&&(b.destination=d.destination),d.name!==void 0&&(b.name=d.name),d.value?b.value=d.value.map(dt=>dt?coin_1$1.Coin.toJSON(dt):void 0):b.value=[],b},fromPartial(d){var dt;const b=createBaseRoute();return b.source=d.source??"",b.destination=d.destination??"",b.name=d.name??"",b.value=((dt=d.value)==null?void 0:dt.map(ct=>coin_1$1.Coin.fromPartial(ct)))||[],b}};function createBaseValue(){return{value:[]}}types$5.Value={encode(d,b=minimal_1$5.default.Writer.create()){for(const dt of d.value)coin_1$1.Coin.encode(dt,b.uint32(10).fork()).ldelim();return b},decode(d,b){const dt=d instanceof minimal_1$5.default.Reader?d:new minimal_1$5.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseValue();for(;dt.pos>>3){case 1:lt.value.push(coin_1$1.Coin.decode(dt,dt.uint32()));break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{value:Array.isArray(d==null?void 0:d.value)?d.value.map(b=>coin_1$1.Coin.fromJSON(b)):[]}},toJSON(d){const b={};return d.value?b.value=d.value.map(dt=>dt?coin_1$1.Coin.toJSON(dt):void 0):b.value=[],b},fromPartial(d){var dt;const b=createBaseValue();return b.value=((dt=d.value)==null?void 0:dt.map(ct=>coin_1$1.Coin.fromPartial(ct)))||[],b}};minimal_1$5.default.util.Long!==long_1$6.default&&(minimal_1$5.default.util.Long=long_1$6.default,minimal_1$5.default.configure());function isSet$4(d){return d!=null}var pagination$1={};Object.defineProperty(pagination$1,"__esModule",{value:!0});pagination$1.PageResponse=pagination$1.PageRequest=pagination$1.protobufPackage=void 0;const minimal_1$4=minimal;pagination$1.protobufPackage="cosmos.base.query.v1beta1";const basePageRequest={offset:0,limit:0,countTotal:!1};pagination$1.PageRequest={encode(d,b=minimal_1$4.Writer.create()){return d.key.length!==0&&b.uint32(10).bytes(d.key),d.offset!==0&&b.uint32(16).uint64(d.offset),d.limit!==0&&b.uint32(24).uint64(d.limit),d.countTotal===!0&&b.uint32(32).bool(d.countTotal),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$4.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...basePageRequest};for(;dt.pos>>3){case 1:lt.key=dt.bytes();break;case 2:lt.offset=longToNumber(dt.uint64());break;case 3:lt.limit=longToNumber(dt.uint64());break;case 4:lt.countTotal=dt.bool();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...basePageRequest};return d.key!==void 0&&d.key!==null&&(b.key=bytesFromBase64(d.key)),d.offset!==void 0&&d.offset!==null?b.offset=Number(d.offset):b.offset=0,d.limit!==void 0&&d.limit!==null?b.limit=Number(d.limit):b.limit=0,d.countTotal!==void 0&&d.countTotal!==null?b.countTotal=!!d.countTotal:b.countTotal=!1,b},toJSON(d){const b={};return d.key!==void 0&&(b.key=base64FromBytes(d.key!==void 0?d.key:new Uint8Array)),d.offset!==void 0&&(b.offset=d.offset),d.limit!==void 0&&(b.limit=d.limit),d.countTotal!==void 0&&(b.countTotal=d.countTotal),b},fromPartial(d){const b={...basePageRequest};return d.key!==void 0&&d.key!==null?b.key=d.key:b.key=new Uint8Array,d.offset!==void 0&&d.offset!==null?b.offset=d.offset:b.offset=0,d.limit!==void 0&&d.limit!==null?b.limit=d.limit:b.limit=0,d.countTotal!==void 0&&d.countTotal!==null?b.countTotal=d.countTotal:b.countTotal=!1,b}};const basePageResponse={total:0};pagination$1.PageResponse={encode(d,b=minimal_1$4.Writer.create()){return d.nextKey.length!==0&&b.uint32(10).bytes(d.nextKey),d.total!==0&&b.uint32(16).uint64(d.total),b},decode(d,b){const dt=d instanceof Uint8Array?new minimal_1$4.Reader(d):d;let ct=b===void 0?dt.len:dt.pos+b;const lt={...basePageResponse};for(;dt.pos>>3){case 1:lt.nextKey=dt.bytes();break;case 2:lt.total=longToNumber(dt.uint64());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){const b={...basePageResponse};return d.nextKey!==void 0&&d.nextKey!==null&&(b.nextKey=bytesFromBase64(d.nextKey)),d.total!==void 0&&d.total!==null?b.total=Number(d.total):b.total=0,b},toJSON(d){const b={};return d.nextKey!==void 0&&(b.nextKey=base64FromBytes(d.nextKey!==void 0?d.nextKey:new Uint8Array)),d.total!==void 0&&(b.total=d.total),b},fromPartial(d){const b={...basePageResponse};return d.nextKey!==void 0&&d.nextKey!==null?b.nextKey=d.nextKey:b.nextKey=new Uint8Array,d.total!==void 0&&d.total!==null?b.total=d.total:b.total=0,b}};var globalThis$1=(()=>{if(typeof globalThis$1<"u")return globalThis$1;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();const atob$1=globalThis$1.atob||(d=>globalThis$1.Buffer.from(d,"base64").toString("binary"));function bytesFromBase64(d){const b=atob$1(d),dt=new Uint8Array(b.length);for(let ct=0;ctglobalThis$1.Buffer.from(d,"binary").toString("base64"));function base64FromBytes(d){const b=[];for(let dt=0;dt>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return vt()}};function kt(){return{params:void 0}}d.QueryParamsResponse={encode(Et,Bt=mt.default.Writer.create()){return Et.params!==void 0&&dt.Params.encode(Et.params,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=kt();for(;Tt.pos>>3){case 1:jt.params=dt.Params.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{params:xt(Et.params)?dt.Params.fromJSON(Et.params):void 0}},toJSON(Et){const Bt={};return Et.params!==void 0&&(Bt.params=Et.params?dt.Params.toJSON(Et.params):void 0),Bt},fromPartial(Et){const Bt=kt();return Bt.params=Et.params!==void 0&&Et.params!==null?dt.Params.fromPartial(Et.params):void 0,Bt}};function Pt(){return{source:""}}d.QuerySourceRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.source!==""&&Bt.uint32(10).string(Et.source),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.source=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{source:xt(Et.source)?String(Et.source):""}},toJSON(Et){const Bt={};return Et.source!==void 0&&(Bt.source=Et.source),Bt},fromPartial(Et){const Bt=Pt();return Bt.source=Et.source??"",Bt}};function Jt(){return{destination:""}}d.QueryDestinationRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.destination!==""&&Bt.uint32(10).string(Et.destination),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){case 1:jt.destination=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{destination:xt(Et.destination)?String(Et.destination):""}},toJSON(Et){const Bt={};return Et.destination!==void 0&&(Bt.destination=Et.destination),Bt},fromPartial(Et){const Bt=Jt();return Bt.destination=Et.destination??"",Bt}};function Zt(){return{value:[]}}d.QueryRoutedEnergyResponse={encode(Et,Bt=mt.default.Writer.create()){for(const Tt of Et.value)ht.Coin.encode(Tt,Bt.uint32(10).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.value.push(ht.Coin.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{value:Array.isArray(Et==null?void 0:Et.value)?Et.value.map(Bt=>ht.Coin.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.value?Bt.value=Et.value.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.value=[],Bt},fromPartial(Et){var Tt;const Bt=Zt();return Bt.value=((Tt=Et.value)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt}};function Rt(){return{source:"",destination:""}}d.QueryRouteRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.source!==""&&Bt.uint32(10).string(Et.source),Et.destination!==""&&Bt.uint32(18).string(Et.destination),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){case 1:jt.source=Tt.string();break;case 2:jt.destination=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{source:xt(Et.source)?String(Et.source):"",destination:xt(Et.destination)?String(Et.destination):""}},toJSON(Et){const Bt={};return Et.source!==void 0&&(Bt.source=Et.source),Et.destination!==void 0&&(Bt.destination=Et.destination),Bt},fromPartial(Et){const Bt=Rt();return Bt.source=Et.source??"",Bt.destination=Et.destination??"",Bt}};function nn(){return{route:void 0}}d.QueryRouteResponse={encode(Et,Bt=mt.default.Writer.create()){return Et.route!==void 0&&dt.Route.encode(Et.route,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.route=dt.Route.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{route:xt(Et.route)?dt.Route.fromJSON(Et.route):void 0}},toJSON(Et){const Bt={};return Et.route!==void 0&&(Bt.route=Et.route?dt.Route.toJSON(Et.route):void 0),Bt},fromPartial(Et){const Bt=nn();return Bt.route=Et.route!==void 0&&Et.route!==null?dt.Route.fromPartial(Et.route):void 0,Bt}};function Qt(){return{pagination:void 0}}d.QueryRoutesRequest={encode(Et,Bt=mt.default.Writer.create()){return Et.pagination!==void 0&&ct.PageRequest.encode(Et.pagination,Bt.uint32(10).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){case 1:jt.pagination=ct.PageRequest.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{pagination:xt(Et.pagination)?ct.PageRequest.fromJSON(Et.pagination):void 0}},toJSON(Et){const Bt={};return Et.pagination!==void 0&&(Bt.pagination=Et.pagination?ct.PageRequest.toJSON(Et.pagination):void 0),Bt},fromPartial(Et){const Bt=Qt();return Bt.pagination=Et.pagination!==void 0&&Et.pagination!==null?ct.PageRequest.fromPartial(Et.pagination):void 0,Bt}};function wt(){return{routes:[],pagination:void 0}}d.QueryRoutesResponse={encode(Et,Bt=mt.default.Writer.create()){for(const Tt of Et.routes)dt.Route.encode(Tt,Bt.uint32(10).fork()).ldelim();return Et.pagination!==void 0&&ct.PageResponse.encode(Et.pagination,Bt.uint32(18).fork()).ldelim(),Bt},decode(Et,Bt){const Tt=Et instanceof mt.default.Reader?Et:new mt.default.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.routes.push(dt.Route.decode(Tt,Tt.uint32()));break;case 2:jt.pagination=ct.PageResponse.decode(Tt,Tt.uint32());break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{routes:Array.isArray(Et==null?void 0:Et.routes)?Et.routes.map(Bt=>dt.Route.fromJSON(Bt)):[],pagination:xt(Et.pagination)?ct.PageResponse.fromJSON(Et.pagination):void 0}},toJSON(Et){const Bt={};return Et.routes?Bt.routes=Et.routes.map(Tt=>Tt?dt.Route.toJSON(Tt):void 0):Bt.routes=[],Et.pagination!==void 0&&(Bt.pagination=Et.pagination?ct.PageResponse.toJSON(Et.pagination):void 0),Bt},fromPartial(Et){var Tt;const Bt=wt();return Bt.routes=((Tt=Et.routes)==null?void 0:Tt.map(Mt=>dt.Route.fromPartial(Mt)))||[],Bt.pagination=Et.pagination!==void 0&&Et.pagination!==null?ct.PageResponse.fromPartial(Et.pagination):void 0,Bt}};class Nt{constructor(Bt){this.rpc=Bt,this.Params=this.Params.bind(this),this.SourceRoutes=this.SourceRoutes.bind(this),this.DestinationRoutes=this.DestinationRoutes.bind(this),this.DestinationRoutedEnergy=this.DestinationRoutedEnergy.bind(this),this.SourceRoutedEnergy=this.SourceRoutedEnergy.bind(this),this.Route=this.Route.bind(this),this.Routes=this.Routes.bind(this)}Params(Bt){const Tt=d.QueryParamsRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","Params",Tt).then(jt=>d.QueryParamsResponse.decode(new mt.default.Reader(jt)))}SourceRoutes(Bt){const Tt=d.QuerySourceRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","SourceRoutes",Tt).then(jt=>d.QueryRoutesResponse.decode(new mt.default.Reader(jt)))}DestinationRoutes(Bt){const Tt=d.QueryDestinationRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","DestinationRoutes",Tt).then(jt=>d.QueryRoutesResponse.decode(new mt.default.Reader(jt)))}DestinationRoutedEnergy(Bt){const Tt=d.QueryDestinationRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","DestinationRoutedEnergy",Tt).then(jt=>d.QueryRoutedEnergyResponse.decode(new mt.default.Reader(jt)))}SourceRoutedEnergy(Bt){const Tt=d.QuerySourceRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","SourceRoutedEnergy",Tt).then(jt=>d.QueryRoutedEnergyResponse.decode(new mt.default.Reader(jt)))}Route(Bt){const Tt=d.QueryRouteRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","Route",Tt).then(jt=>d.QueryRouteResponse.decode(new mt.default.Reader(jt)))}Routes(Bt){const Tt=d.QueryRoutesRequest.encode(Bt).finish();return this.rpc.request("cyber.grid.v1beta1.Query","Routes",Tt).then(jt=>d.QueryRoutesResponse.decode(new mt.default.Reader(jt)))}}d.QueryClientImpl=Nt,mt.default.util.Long!==lt.default&&(mt.default.util.Long=lt.default,mt.default.configure());function xt(Et){return Et!=null}})(query$3);var query$2={},types$4={},__importDefault$g=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$4,"__esModule",{value:!0});types$4.RankedParticle=types$4.Params=types$4.protobufPackage=void 0;const long_1$5=__importDefault$g(long),minimal_1$3=__importDefault$g(minimal);types$4.protobufPackage="cyber.rank.v1beta1";function createBaseParams$1(){return{calculationPeriod:long_1$5.default.ZERO,dampingFactor:"",tolerance:""}}types$4.Params={encode(d,b=minimal_1$3.default.Writer.create()){return d.calculationPeriod.isZero()||b.uint32(8).int64(d.calculationPeriod),d.dampingFactor!==""&&b.uint32(18).string(d.dampingFactor),d.tolerance!==""&&b.uint32(26).string(d.tolerance),b},decode(d,b){const dt=d instanceof minimal_1$3.default.Reader?d:new minimal_1$3.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams$1();for(;dt.pos>>3){case 1:lt.calculationPeriod=dt.int64();break;case 2:lt.dampingFactor=dt.string();break;case 3:lt.tolerance=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{calculationPeriod:isSet$3(d.calculationPeriod)?long_1$5.default.fromValue(d.calculationPeriod):long_1$5.default.ZERO,dampingFactor:isSet$3(d.dampingFactor)?String(d.dampingFactor):"",tolerance:isSet$3(d.tolerance)?String(d.tolerance):""}},toJSON(d){const b={};return d.calculationPeriod!==void 0&&(b.calculationPeriod=(d.calculationPeriod||long_1$5.default.ZERO).toString()),d.dampingFactor!==void 0&&(b.dampingFactor=d.dampingFactor),d.tolerance!==void 0&&(b.tolerance=d.tolerance),b},fromPartial(d){const b=createBaseParams$1();return b.calculationPeriod=d.calculationPeriod!==void 0&&d.calculationPeriod!==null?long_1$5.default.fromValue(d.calculationPeriod):long_1$5.default.ZERO,b.dampingFactor=d.dampingFactor??"",b.tolerance=d.tolerance??"",b}};function createBaseRankedParticle(){return{particle:"",rank:long_1$5.default.UZERO}}types$4.RankedParticle={encode(d,b=minimal_1$3.default.Writer.create()){return d.particle!==""&&b.uint32(10).string(d.particle),d.rank.isZero()||b.uint32(16).uint64(d.rank),b},decode(d,b){const dt=d instanceof minimal_1$3.default.Reader?d:new minimal_1$3.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseRankedParticle();for(;dt.pos>>3){case 1:lt.particle=dt.string();break;case 2:lt.rank=dt.uint64();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{particle:isSet$3(d.particle)?String(d.particle):"",rank:isSet$3(d.rank)?long_1$5.default.fromValue(d.rank):long_1$5.default.UZERO}},toJSON(d){const b={};return d.particle!==void 0&&(b.particle=d.particle),d.rank!==void 0&&(b.rank=(d.rank||long_1$5.default.UZERO).toString()),b},fromPartial(d){const b=createBaseRankedParticle();return b.particle=d.particle??"",b.rank=d.rank!==void 0&&d.rank!==null?long_1$5.default.fromValue(d.rank):long_1$5.default.UZERO,b}};minimal_1$3.default.util.Long!==long_1$5.default&&(minimal_1$3.default.util.Long=long_1$5.default,minimal_1$3.default.configure());function isSet$3(d){return d!=null}var pagination={},__importDefault$f=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(pagination,"__esModule",{value:!0});pagination.PageResponse=pagination.PageRequest=pagination.protobufPackage=void 0;const long_1$4=__importDefault$f(long),minimal_1$2=__importDefault$f(minimal);pagination.protobufPackage="cyber.base.query.v1beta1";function createBasePageRequest(){return{page:0,perPage:0}}pagination.PageRequest={encode(d,b=minimal_1$2.default.Writer.create()){return d.page!==0&&b.uint32(8).uint32(d.page),d.perPage!==0&&b.uint32(16).uint32(d.perPage),b},decode(d,b){const dt=d instanceof minimal_1$2.default.Reader?d:new minimal_1$2.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageRequest();for(;dt.pos>>3){case 1:lt.page=dt.uint32();break;case 2:lt.perPage=dt.uint32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{page:isSet$2(d.page)?Number(d.page):0,perPage:isSet$2(d.perPage)?Number(d.perPage):0}},toJSON(d){const b={};return d.page!==void 0&&(b.page=Math.round(d.page)),d.perPage!==void 0&&(b.perPage=Math.round(d.perPage)),b},fromPartial(d){const b=createBasePageRequest();return b.page=d.page??0,b.perPage=d.perPage??0,b}};function createBasePageResponse(){return{total:0}}pagination.PageResponse={encode(d,b=minimal_1$2.default.Writer.create()){return d.total!==0&&b.uint32(8).uint32(d.total),b},decode(d,b){const dt=d instanceof minimal_1$2.default.Reader?d:new minimal_1$2.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBasePageResponse();for(;dt.pos>>3){case 1:lt.total=dt.uint32();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{total:isSet$2(d.total)?Number(d.total):0}},toJSON(d){const b={};return d.total!==void 0&&(b.total=Math.round(d.total)),b},fromPartial(d){const b=createBasePageResponse();return b.total=d.total??0,b}};minimal_1$2.default.util.Long!==long_1$4.default&&(minimal_1$2.default.util.Long=long_1$4.default,minimal_1$2.default.configure());function isSet$2(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(an){return an&&an.__esModule?an:{default:an}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryKarmaResponse=d.QueryKarmaRequest=d.QueryNegentropyResponse=d.QueryNegentropyRequest=d.QueryNegentropyParticleResponse=d.QueryNegentropyPartilceRequest=d.QueryLinkExistResponse=d.QueryIsAnyLinkExistRequest=d.QueryIsLinkExistRequest=d.QueryTopRequest=d.QuerySearchResponse=d.QuerySearchRequest=d.QueryRankResponse=d.QueryRankRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const dt=types$4,ct=pagination,lt=b(long),ht=b(minimal);d.protobufPackage="cyber.rank.v1beta1";function mt(){return{}}d.QueryParamsRequest={encode(an,yt=ht.default.Writer.create()){return yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=mt();for(;$t.pos>>3){default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{}},toJSON(an){return{}},fromPartial(an){return mt()}};function vt(){return{params:void 0}}d.QueryParamsResponse={encode(an,yt=ht.default.Writer.create()){return an.params!==void 0&&dt.Params.encode(an.params,yt.uint32(10).fork()).ldelim(),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=vt();for(;$t.pos>>3){case 1:Kt.params=dt.Params.decode($t,$t.uint32());break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{params:Ht(an.params)?dt.Params.fromJSON(an.params):void 0}},toJSON(an){const yt={};return an.params!==void 0&&(yt.params=an.params?dt.Params.toJSON(an.params):void 0),yt},fromPartial(an){const yt=vt();return yt.params=an.params!==void 0&&an.params!==null?dt.Params.fromPartial(an.params):void 0,yt}};function kt(){return{particle:""}}d.QueryRankRequest={encode(an,yt=ht.default.Writer.create()){return an.particle!==""&&yt.uint32(10).string(an.particle),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=kt();for(;$t.pos>>3){case 1:Kt.particle=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{particle:Ht(an.particle)?String(an.particle):""}},toJSON(an){const yt={};return an.particle!==void 0&&(yt.particle=an.particle),yt},fromPartial(an){const yt=kt();return yt.particle=an.particle??"",yt}};function Pt(){return{rank:lt.default.UZERO}}d.QueryRankResponse={encode(an,yt=ht.default.Writer.create()){return an.rank.isZero()||yt.uint32(8).uint64(an.rank),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Pt();for(;$t.pos>>3){case 1:Kt.rank=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{rank:Ht(an.rank)?lt.default.fromValue(an.rank):lt.default.UZERO}},toJSON(an){const yt={};return an.rank!==void 0&&(yt.rank=(an.rank||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=Pt();return yt.rank=an.rank!==void 0&&an.rank!==null?lt.default.fromValue(an.rank):lt.default.UZERO,yt}};function Jt(){return{particle:"",pagination:void 0}}d.QuerySearchRequest={encode(an,yt=ht.default.Writer.create()){return an.particle!==""&&yt.uint32(10).string(an.particle),an.pagination!==void 0&&ct.PageRequest.encode(an.pagination,yt.uint32(18).fork()).ldelim(),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Jt();for(;$t.pos>>3){case 1:Kt.particle=$t.string();break;case 2:Kt.pagination=ct.PageRequest.decode($t,$t.uint32());break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{particle:Ht(an.particle)?String(an.particle):"",pagination:Ht(an.pagination)?ct.PageRequest.fromJSON(an.pagination):void 0}},toJSON(an){const yt={};return an.particle!==void 0&&(yt.particle=an.particle),an.pagination!==void 0&&(yt.pagination=an.pagination?ct.PageRequest.toJSON(an.pagination):void 0),yt},fromPartial(an){const yt=Jt();return yt.particle=an.particle??"",yt.pagination=an.pagination!==void 0&&an.pagination!==null?ct.PageRequest.fromPartial(an.pagination):void 0,yt}};function Zt(){return{result:[],pagination:void 0}}d.QuerySearchResponse={encode(an,yt=ht.default.Writer.create()){for(const $t of an.result)dt.RankedParticle.encode($t,yt.uint32(10).fork()).ldelim();return an.pagination!==void 0&&ct.PageResponse.encode(an.pagination,yt.uint32(18).fork()).ldelim(),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Zt();for(;$t.pos>>3){case 1:Kt.result.push(dt.RankedParticle.decode($t,$t.uint32()));break;case 2:Kt.pagination=ct.PageResponse.decode($t,$t.uint32());break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{result:Array.isArray(an==null?void 0:an.result)?an.result.map(yt=>dt.RankedParticle.fromJSON(yt)):[],pagination:Ht(an.pagination)?ct.PageResponse.fromJSON(an.pagination):void 0}},toJSON(an){const yt={};return an.result?yt.result=an.result.map($t=>$t?dt.RankedParticle.toJSON($t):void 0):yt.result=[],an.pagination!==void 0&&(yt.pagination=an.pagination?ct.PageResponse.toJSON(an.pagination):void 0),yt},fromPartial(an){var $t;const yt=Zt();return yt.result=(($t=an.result)==null?void 0:$t.map(Yt=>dt.RankedParticle.fromPartial(Yt)))||[],yt.pagination=an.pagination!==void 0&&an.pagination!==null?ct.PageResponse.fromPartial(an.pagination):void 0,yt}};function Rt(){return{}}d.QueryTopRequest={encode(an,yt=ht.default.Writer.create()){return yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Rt();for(;$t.pos>>3){default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{}},toJSON(an){return{}},fromPartial(an){return Rt()}};function nn(){return{from:"",to:"",address:""}}d.QueryIsLinkExistRequest={encode(an,yt=ht.default.Writer.create()){return an.from!==""&&yt.uint32(10).string(an.from),an.to!==""&&yt.uint32(18).string(an.to),an.address!==""&&yt.uint32(26).string(an.address),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=nn();for(;$t.pos>>3){case 1:Kt.from=$t.string();break;case 2:Kt.to=$t.string();break;case 3:Kt.address=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{from:Ht(an.from)?String(an.from):"",to:Ht(an.to)?String(an.to):"",address:Ht(an.address)?String(an.address):""}},toJSON(an){const yt={};return an.from!==void 0&&(yt.from=an.from),an.to!==void 0&&(yt.to=an.to),an.address!==void 0&&(yt.address=an.address),yt},fromPartial(an){const yt=nn();return yt.from=an.from??"",yt.to=an.to??"",yt.address=an.address??"",yt}};function Qt(){return{from:"",to:""}}d.QueryIsAnyLinkExistRequest={encode(an,yt=ht.default.Writer.create()){return an.from!==""&&yt.uint32(10).string(an.from),an.to!==""&&yt.uint32(18).string(an.to),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Qt();for(;$t.pos>>3){case 1:Kt.from=$t.string();break;case 2:Kt.to=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{from:Ht(an.from)?String(an.from):"",to:Ht(an.to)?String(an.to):""}},toJSON(an){const yt={};return an.from!==void 0&&(yt.from=an.from),an.to!==void 0&&(yt.to=an.to),yt},fromPartial(an){const yt=Qt();return yt.from=an.from??"",yt.to=an.to??"",yt}};function wt(){return{exist:!1}}d.QueryLinkExistResponse={encode(an,yt=ht.default.Writer.create()){return an.exist===!0&&yt.uint32(8).bool(an.exist),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=wt();for(;$t.pos>>3){case 1:Kt.exist=$t.bool();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{exist:Ht(an.exist)?!!an.exist:!1}},toJSON(an){const yt={};return an.exist!==void 0&&(yt.exist=an.exist),yt},fromPartial(an){const yt=wt();return yt.exist=an.exist??!1,yt}};function Nt(){return{particle:""}}d.QueryNegentropyPartilceRequest={encode(an,yt=ht.default.Writer.create()){return an.particle!==""&&yt.uint32(10).string(an.particle),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Nt();for(;$t.pos>>3){case 1:Kt.particle=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{particle:Ht(an.particle)?String(an.particle):""}},toJSON(an){const yt={};return an.particle!==void 0&&(yt.particle=an.particle),yt},fromPartial(an){const yt=Nt();return yt.particle=an.particle??"",yt}};function xt(){return{entropy:lt.default.UZERO}}d.QueryNegentropyParticleResponse={encode(an,yt=ht.default.Writer.create()){return an.entropy.isZero()||yt.uint32(8).uint64(an.entropy),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=xt();for(;$t.pos>>3){case 1:Kt.entropy=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{entropy:Ht(an.entropy)?lt.default.fromValue(an.entropy):lt.default.UZERO}},toJSON(an){const yt={};return an.entropy!==void 0&&(yt.entropy=(an.entropy||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=xt();return yt.entropy=an.entropy!==void 0&&an.entropy!==null?lt.default.fromValue(an.entropy):lt.default.UZERO,yt}};function Et(){return{}}d.QueryNegentropyRequest={encode(an,yt=ht.default.Writer.create()){return yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Et();for(;$t.pos>>3){default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{}},toJSON(an){return{}},fromPartial(an){return Et()}};function Bt(){return{negentropy:lt.default.UZERO}}d.QueryNegentropyResponse={encode(an,yt=ht.default.Writer.create()){return an.negentropy.isZero()||yt.uint32(8).uint64(an.negentropy),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Bt();for(;$t.pos>>3){case 1:Kt.negentropy=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{negentropy:Ht(an.negentropy)?lt.default.fromValue(an.negentropy):lt.default.UZERO}},toJSON(an){const yt={};return an.negentropy!==void 0&&(yt.negentropy=(an.negentropy||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=Bt();return yt.negentropy=an.negentropy!==void 0&&an.negentropy!==null?lt.default.fromValue(an.negentropy):lt.default.UZERO,yt}};function Tt(){return{neuron:""}}d.QueryKarmaRequest={encode(an,yt=ht.default.Writer.create()){return an.neuron!==""&&yt.uint32(10).string(an.neuron),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Tt();for(;$t.pos>>3){case 1:Kt.neuron=$t.string();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{neuron:Ht(an.neuron)?String(an.neuron):""}},toJSON(an){const yt={};return an.neuron!==void 0&&(yt.neuron=an.neuron),yt},fromPartial(an){const yt=Tt();return yt.neuron=an.neuron??"",yt}};function Mt(){return{karma:lt.default.UZERO}}d.QueryKarmaResponse={encode(an,yt=ht.default.Writer.create()){return an.karma.isZero()||yt.uint32(8).uint64(an.karma),yt},decode(an,yt){const $t=an instanceof ht.default.Reader?an:new ht.default.Reader(an);let Yt=yt===void 0?$t.len:$t.pos+yt;const Kt=Mt();for(;$t.pos>>3){case 1:Kt.karma=$t.uint64();break;default:$t.skipType(St&7);break}}return Kt},fromJSON(an){return{karma:Ht(an.karma)?lt.default.fromValue(an.karma):lt.default.UZERO}},toJSON(an){const yt={};return an.karma!==void 0&&(yt.karma=(an.karma||lt.default.UZERO).toString()),yt},fromPartial(an){const yt=Mt();return yt.karma=an.karma!==void 0&&an.karma!==null?lt.default.fromValue(an.karma):lt.default.UZERO,yt}};class jt{constructor(yt){this.rpc=yt,this.Params=this.Params.bind(this),this.Rank=this.Rank.bind(this),this.Search=this.Search.bind(this),this.Backlinks=this.Backlinks.bind(this),this.Top=this.Top.bind(this),this.IsLinkExist=this.IsLinkExist.bind(this),this.IsAnyLinkExist=this.IsAnyLinkExist.bind(this),this.ParticleNegentropy=this.ParticleNegentropy.bind(this),this.Negentropy=this.Negentropy.bind(this),this.Karma=this.Karma.bind(this)}Params(yt){const $t=d.QueryParamsRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Params",$t).then(Kt=>d.QueryParamsResponse.decode(new ht.default.Reader(Kt)))}Rank(yt){const $t=d.QueryRankRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Rank",$t).then(Kt=>d.QueryRankResponse.decode(new ht.default.Reader(Kt)))}Search(yt){const $t=d.QuerySearchRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Search",$t).then(Kt=>d.QuerySearchResponse.decode(new ht.default.Reader(Kt)))}Backlinks(yt){const $t=d.QuerySearchRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Backlinks",$t).then(Kt=>d.QuerySearchResponse.decode(new ht.default.Reader(Kt)))}Top(yt){const $t=ct.PageRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Top",$t).then(Kt=>d.QuerySearchResponse.decode(new ht.default.Reader(Kt)))}IsLinkExist(yt){const $t=d.QueryIsLinkExistRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","IsLinkExist",$t).then(Kt=>d.QueryLinkExistResponse.decode(new ht.default.Reader(Kt)))}IsAnyLinkExist(yt){const $t=d.QueryIsAnyLinkExistRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","IsAnyLinkExist",$t).then(Kt=>d.QueryLinkExistResponse.decode(new ht.default.Reader(Kt)))}ParticleNegentropy(yt){const $t=d.QueryNegentropyPartilceRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","ParticleNegentropy",$t).then(Kt=>d.QueryNegentropyParticleResponse.decode(new ht.default.Reader(Kt)))}Negentropy(yt){const $t=d.QueryNegentropyRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Negentropy",$t).then(Kt=>d.QueryNegentropyResponse.decode(new ht.default.Reader(Kt)))}Karma(yt){const $t=d.QueryKarmaRequest.encode(yt).finish();return this.rpc.request("cyber.rank.v1beta1.Query","Karma",$t).then(Kt=>d.QueryKarmaResponse.decode(new ht.default.Reader(Kt)))}}d.QueryClientImpl=jt,ht.default.util.Long!==lt.default&&(ht.default.util.Long=lt.default,ht.default.configure());function Ht(an){return an!=null}})(query$2);var query$1={},types$3={},__importDefault$e=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$3,"__esModule",{value:!0});types$3.Params=types$3.protobufPackage=void 0;const coin_1=coin,long_1$3=__importDefault$e(long),minimal_1$1=__importDefault$e(minimal);types$3.protobufPackage="cyber.resources.v1beta1";function createBaseParams(){return{maxSlots:0,halvingPeriodVoltBlocks:0,halvingPeriodAmpereBlocks:0,baseInvestmintPeriodVolt:0,baseInvestmintPeriodAmpere:0,minInvestmintPeriod:0,baseInvestmintAmountVolt:void 0,baseInvestmintAmountAmpere:void 0}}types$3.Params={encode(d,b=minimal_1$1.default.Writer.create()){return d.maxSlots!==0&&b.uint32(8).uint32(d.maxSlots),d.halvingPeriodVoltBlocks!==0&&b.uint32(16).uint32(d.halvingPeriodVoltBlocks),d.halvingPeriodAmpereBlocks!==0&&b.uint32(24).uint32(d.halvingPeriodAmpereBlocks),d.baseInvestmintPeriodVolt!==0&&b.uint32(32).uint32(d.baseInvestmintPeriodVolt),d.baseInvestmintPeriodAmpere!==0&&b.uint32(40).uint32(d.baseInvestmintPeriodAmpere),d.minInvestmintPeriod!==0&&b.uint32(48).uint32(d.minInvestmintPeriod),d.baseInvestmintAmountVolt!==void 0&&coin_1.Coin.encode(d.baseInvestmintAmountVolt,b.uint32(58).fork()).ldelim(),d.baseInvestmintAmountAmpere!==void 0&&coin_1.Coin.encode(d.baseInvestmintAmountAmpere,b.uint32(66).fork()).ldelim(),b},decode(d,b){const dt=d instanceof minimal_1$1.default.Reader?d:new minimal_1$1.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseParams();for(;dt.pos>>3){case 1:lt.maxSlots=dt.uint32();break;case 2:lt.halvingPeriodVoltBlocks=dt.uint32();break;case 3:lt.halvingPeriodAmpereBlocks=dt.uint32();break;case 4:lt.baseInvestmintPeriodVolt=dt.uint32();break;case 5:lt.baseInvestmintPeriodAmpere=dt.uint32();break;case 6:lt.minInvestmintPeriod=dt.uint32();break;case 7:lt.baseInvestmintAmountVolt=coin_1.Coin.decode(dt,dt.uint32());break;case 8:lt.baseInvestmintAmountAmpere=coin_1.Coin.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{maxSlots:isSet$1(d.maxSlots)?Number(d.maxSlots):0,halvingPeriodVoltBlocks:isSet$1(d.halvingPeriodVoltBlocks)?Number(d.halvingPeriodVoltBlocks):0,halvingPeriodAmpereBlocks:isSet$1(d.halvingPeriodAmpereBlocks)?Number(d.halvingPeriodAmpereBlocks):0,baseInvestmintPeriodVolt:isSet$1(d.baseInvestmintPeriodVolt)?Number(d.baseInvestmintPeriodVolt):0,baseInvestmintPeriodAmpere:isSet$1(d.baseInvestmintPeriodAmpere)?Number(d.baseInvestmintPeriodAmpere):0,minInvestmintPeriod:isSet$1(d.minInvestmintPeriod)?Number(d.minInvestmintPeriod):0,baseInvestmintAmountVolt:isSet$1(d.baseInvestmintAmountVolt)?coin_1.Coin.fromJSON(d.baseInvestmintAmountVolt):void 0,baseInvestmintAmountAmpere:isSet$1(d.baseInvestmintAmountAmpere)?coin_1.Coin.fromJSON(d.baseInvestmintAmountAmpere):void 0}},toJSON(d){const b={};return d.maxSlots!==void 0&&(b.maxSlots=Math.round(d.maxSlots)),d.halvingPeriodVoltBlocks!==void 0&&(b.halvingPeriodVoltBlocks=Math.round(d.halvingPeriodVoltBlocks)),d.halvingPeriodAmpereBlocks!==void 0&&(b.halvingPeriodAmpereBlocks=Math.round(d.halvingPeriodAmpereBlocks)),d.baseInvestmintPeriodVolt!==void 0&&(b.baseInvestmintPeriodVolt=Math.round(d.baseInvestmintPeriodVolt)),d.baseInvestmintPeriodAmpere!==void 0&&(b.baseInvestmintPeriodAmpere=Math.round(d.baseInvestmintPeriodAmpere)),d.minInvestmintPeriod!==void 0&&(b.minInvestmintPeriod=Math.round(d.minInvestmintPeriod)),d.baseInvestmintAmountVolt!==void 0&&(b.baseInvestmintAmountVolt=d.baseInvestmintAmountVolt?coin_1.Coin.toJSON(d.baseInvestmintAmountVolt):void 0),d.baseInvestmintAmountAmpere!==void 0&&(b.baseInvestmintAmountAmpere=d.baseInvestmintAmountAmpere?coin_1.Coin.toJSON(d.baseInvestmintAmountAmpere):void 0),b},fromPartial(d){const b=createBaseParams();return b.maxSlots=d.maxSlots??0,b.halvingPeriodVoltBlocks=d.halvingPeriodVoltBlocks??0,b.halvingPeriodAmpereBlocks=d.halvingPeriodAmpereBlocks??0,b.baseInvestmintPeriodVolt=d.baseInvestmintPeriodVolt??0,b.baseInvestmintPeriodAmpere=d.baseInvestmintPeriodAmpere??0,b.minInvestmintPeriod=d.minInvestmintPeriod??0,b.baseInvestmintAmountVolt=d.baseInvestmintAmountVolt!==void 0&&d.baseInvestmintAmountVolt!==null?coin_1.Coin.fromPartial(d.baseInvestmintAmountVolt):void 0,b.baseInvestmintAmountAmpere=d.baseInvestmintAmountAmpere!==void 0&&d.baseInvestmintAmountAmpere!==null?coin_1.Coin.fromPartial(d.baseInvestmintAmountAmpere):void 0,b}};minimal_1$1.default.util.Long!==long_1$3.default&&(minimal_1$1.default.util.Long=long_1$3.default,minimal_1$1.default.configure());function isSet$1(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}};Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryInvestmintResponse=d.QueryInvestmintRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.protobufPackage=void 0;const dt=types$3,ct=coin,lt=b(long),ht=b(minimal);d.protobufPackage="cyber.resources.v1beta1";function mt(){return{}}d.QueryParamsRequest={encode(Rt,nn=ht.default.Writer.create()){return nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=mt();for(;Qt.pos>>3){default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{}},toJSON(Rt){return{}},fromPartial(Rt){return mt()}};function vt(){return{params:void 0}}d.QueryParamsResponse={encode(Rt,nn=ht.default.Writer.create()){return Rt.params!==void 0&&dt.Params.encode(Rt.params,nn.uint32(10).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=vt();for(;Qt.pos>>3){case 1:Nt.params=dt.Params.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{params:Zt(Rt.params)?dt.Params.fromJSON(Rt.params):void 0}},toJSON(Rt){const nn={};return Rt.params!==void 0&&(nn.params=Rt.params?dt.Params.toJSON(Rt.params):void 0),nn},fromPartial(Rt){const nn=vt();return nn.params=Rt.params!==void 0&&Rt.params!==null?dt.Params.fromPartial(Rt.params):void 0,nn}};function kt(){return{amount:void 0,resource:"",length:lt.default.UZERO}}d.QueryInvestmintRequest={encode(Rt,nn=ht.default.Writer.create()){return Rt.amount!==void 0&&ct.Coin.encode(Rt.amount,nn.uint32(10).fork()).ldelim(),Rt.resource!==""&&nn.uint32(18).string(Rt.resource),Rt.length.isZero()||nn.uint32(24).uint64(Rt.length),nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=kt();for(;Qt.pos>>3){case 1:Nt.amount=ct.Coin.decode(Qt,Qt.uint32());break;case 2:Nt.resource=Qt.string();break;case 3:Nt.length=Qt.uint64();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{amount:Zt(Rt.amount)?ct.Coin.fromJSON(Rt.amount):void 0,resource:Zt(Rt.resource)?String(Rt.resource):"",length:Zt(Rt.length)?lt.default.fromValue(Rt.length):lt.default.UZERO}},toJSON(Rt){const nn={};return Rt.amount!==void 0&&(nn.amount=Rt.amount?ct.Coin.toJSON(Rt.amount):void 0),Rt.resource!==void 0&&(nn.resource=Rt.resource),Rt.length!==void 0&&(nn.length=(Rt.length||lt.default.UZERO).toString()),nn},fromPartial(Rt){const nn=kt();return nn.amount=Rt.amount!==void 0&&Rt.amount!==null?ct.Coin.fromPartial(Rt.amount):void 0,nn.resource=Rt.resource??"",nn.length=Rt.length!==void 0&&Rt.length!==null?lt.default.fromValue(Rt.length):lt.default.UZERO,nn}};function Pt(){return{amount:void 0}}d.QueryInvestmintResponse={encode(Rt,nn=ht.default.Writer.create()){return Rt.amount!==void 0&&ct.Coin.encode(Rt.amount,nn.uint32(10).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof ht.default.Reader?Rt:new ht.default.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Pt();for(;Qt.pos>>3){case 1:Nt.amount=ct.Coin.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{amount:Zt(Rt.amount)?ct.Coin.fromJSON(Rt.amount):void 0}},toJSON(Rt){const nn={};return Rt.amount!==void 0&&(nn.amount=Rt.amount?ct.Coin.toJSON(Rt.amount):void 0),nn},fromPartial(Rt){const nn=Pt();return nn.amount=Rt.amount!==void 0&&Rt.amount!==null?ct.Coin.fromPartial(Rt.amount):void 0,nn}};class Jt{constructor(nn){this.rpc=nn,this.Params=this.Params.bind(this),this.Investmint=this.Investmint.bind(this)}Params(nn){const Qt=d.QueryParamsRequest.encode(nn).finish();return this.rpc.request("cyber.resources.v1beta1.Query","Params",Qt).then(Nt=>d.QueryParamsResponse.decode(new ht.default.Reader(Nt)))}Investmint(nn){const Qt=d.QueryInvestmintRequest.encode(nn).finish();return this.rpc.request("cyber.resources.v1beta1.Query","Investmint",Qt).then(Nt=>d.QueryInvestmintResponse.decode(new ht.default.Reader(Nt)))}}d.QueryClientImpl=Jt,ht.default.util.Long!==lt.default&&(ht.default.util.Long=lt.default,ht.default.configure());function Zt(Rt){return Rt!=null}})(query$1);var query={},liquidity$1={},tx$c={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgSwapWithinBatchResponse=d.MsgSwapWithinBatch=d.MsgWithdrawWithinBatchResponse=d.MsgWithdrawWithinBatch=d.MsgDepositWithinBatchResponse=d.MsgDepositWithinBatch=d.MsgCreatePoolResponse=d.MsgCreatePool=d.protobufPackage=void 0;const b=minimal,dt=coin;d.protobufPackage="tendermint.liquidity.v1beta1";const ct={poolCreatorAddress:"",poolTypeId:0};d.MsgCreatePool={encode(Qt,wt=b.Writer.create()){Qt.poolCreatorAddress!==""&&wt.uint32(10).string(Qt.poolCreatorAddress),Qt.poolTypeId!==0&&wt.uint32(16).uint32(Qt.poolTypeId);for(const Nt of Qt.depositCoins)dt.Coin.encode(Nt,wt.uint32(34).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...ct};for(Et.depositCoins=[];Nt.pos>>3){case 1:Et.poolCreatorAddress=Nt.string();break;case 2:Et.poolTypeId=Nt.uint32();break;case 4:Et.depositCoins.push(dt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...ct};if(wt.depositCoins=[],Qt.poolCreatorAddress!==void 0&&Qt.poolCreatorAddress!==null?wt.poolCreatorAddress=String(Qt.poolCreatorAddress):wt.poolCreatorAddress="",Qt.poolTypeId!==void 0&&Qt.poolTypeId!==null?wt.poolTypeId=Number(Qt.poolTypeId):wt.poolTypeId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromJSON(Nt));return wt},toJSON(Qt){const wt={};return Qt.poolCreatorAddress!==void 0&&(wt.poolCreatorAddress=Qt.poolCreatorAddress),Qt.poolTypeId!==void 0&&(wt.poolTypeId=Qt.poolTypeId),Qt.depositCoins?wt.depositCoins=Qt.depositCoins.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.depositCoins=[],wt},fromPartial(Qt){const wt={...ct};if(wt.depositCoins=[],Qt.poolCreatorAddress!==void 0&&Qt.poolCreatorAddress!==null?wt.poolCreatorAddress=Qt.poolCreatorAddress:wt.poolCreatorAddress="",Qt.poolTypeId!==void 0&&Qt.poolTypeId!==null?wt.poolTypeId=Qt.poolTypeId:wt.poolTypeId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromPartial(Nt));return wt}};const lt={};d.MsgCreatePoolResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...lt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...lt}},toJSON(Qt){return{}},fromPartial(Qt){return{...lt}}};const ht={depositorAddress:"",poolId:0};d.MsgDepositWithinBatch={encode(Qt,wt=b.Writer.create()){Qt.depositorAddress!==""&&wt.uint32(10).string(Qt.depositorAddress),Qt.poolId!==0&&wt.uint32(16).uint64(Qt.poolId);for(const Nt of Qt.depositCoins)dt.Coin.encode(Nt,wt.uint32(26).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...ht};for(Et.depositCoins=[];Nt.pos>>3){case 1:Et.depositorAddress=Nt.string();break;case 2:Et.poolId=nn(Nt.uint64());break;case 3:Et.depositCoins.push(dt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...ht};if(wt.depositCoins=[],Qt.depositorAddress!==void 0&&Qt.depositorAddress!==null?wt.depositorAddress=String(Qt.depositorAddress):wt.depositorAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromJSON(Nt));return wt},toJSON(Qt){const wt={};return Qt.depositorAddress!==void 0&&(wt.depositorAddress=Qt.depositorAddress),Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.depositCoins?wt.depositCoins=Qt.depositCoins.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.depositCoins=[],wt},fromPartial(Qt){const wt={...ht};if(wt.depositCoins=[],Qt.depositorAddress!==void 0&&Qt.depositorAddress!==null?wt.depositorAddress=Qt.depositorAddress:wt.depositorAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.depositCoins!==void 0&&Qt.depositCoins!==null)for(const Nt of Qt.depositCoins)wt.depositCoins.push(dt.Coin.fromPartial(Nt));return wt}};const mt={};d.MsgDepositWithinBatchResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...mt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...mt}},toJSON(Qt){return{}},fromPartial(Qt){return{...mt}}};const vt={withdrawerAddress:"",poolId:0};d.MsgWithdrawWithinBatch={encode(Qt,wt=b.Writer.create()){return Qt.withdrawerAddress!==""&&wt.uint32(10).string(Qt.withdrawerAddress),Qt.poolId!==0&&wt.uint32(16).uint64(Qt.poolId),Qt.poolCoin!==void 0&&dt.Coin.encode(Qt.poolCoin,wt.uint32(26).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...vt};for(;Nt.pos>>3){case 1:Et.withdrawerAddress=Nt.string();break;case 2:Et.poolId=nn(Nt.uint64());break;case 3:Et.poolCoin=dt.Coin.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...vt};return Qt.withdrawerAddress!==void 0&&Qt.withdrawerAddress!==null?wt.withdrawerAddress=String(Qt.withdrawerAddress):wt.withdrawerAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.poolCoin!==void 0&&Qt.poolCoin!==null?wt.poolCoin=dt.Coin.fromJSON(Qt.poolCoin):wt.poolCoin=void 0,wt},toJSON(Qt){const wt={};return Qt.withdrawerAddress!==void 0&&(wt.withdrawerAddress=Qt.withdrawerAddress),Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.poolCoin!==void 0&&(wt.poolCoin=Qt.poolCoin?dt.Coin.toJSON(Qt.poolCoin):void 0),wt},fromPartial(Qt){const wt={...vt};return Qt.withdrawerAddress!==void 0&&Qt.withdrawerAddress!==null?wt.withdrawerAddress=Qt.withdrawerAddress:wt.withdrawerAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.poolCoin!==void 0&&Qt.poolCoin!==null?wt.poolCoin=dt.Coin.fromPartial(Qt.poolCoin):wt.poolCoin=void 0,wt}};const kt={};d.MsgWithdrawWithinBatchResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...kt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...kt}},toJSON(Qt){return{}},fromPartial(Qt){return{...kt}}};const Pt={swapRequesterAddress:"",poolId:0,swapTypeId:0,demandCoinDenom:"",orderPrice:""};d.MsgSwapWithinBatch={encode(Qt,wt=b.Writer.create()){return Qt.swapRequesterAddress!==""&&wt.uint32(10).string(Qt.swapRequesterAddress),Qt.poolId!==0&&wt.uint32(16).uint64(Qt.poolId),Qt.swapTypeId!==0&&wt.uint32(24).uint32(Qt.swapTypeId),Qt.offerCoin!==void 0&&dt.Coin.encode(Qt.offerCoin,wt.uint32(34).fork()).ldelim(),Qt.demandCoinDenom!==""&&wt.uint32(42).string(Qt.demandCoinDenom),Qt.offerCoinFee!==void 0&&dt.Coin.encode(Qt.offerCoinFee,wt.uint32(50).fork()).ldelim(),Qt.orderPrice!==""&&wt.uint32(58).string(Qt.orderPrice),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Pt};for(;Nt.pos>>3){case 1:Et.swapRequesterAddress=Nt.string();break;case 2:Et.poolId=nn(Nt.uint64());break;case 3:Et.swapTypeId=Nt.uint32();break;case 4:Et.offerCoin=dt.Coin.decode(Nt,Nt.uint32());break;case 5:Et.demandCoinDenom=Nt.string();break;case 6:Et.offerCoinFee=dt.Coin.decode(Nt,Nt.uint32());break;case 7:Et.orderPrice=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Pt};return Qt.swapRequesterAddress!==void 0&&Qt.swapRequesterAddress!==null?wt.swapRequesterAddress=String(Qt.swapRequesterAddress):wt.swapRequesterAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.swapTypeId!==void 0&&Qt.swapTypeId!==null?wt.swapTypeId=Number(Qt.swapTypeId):wt.swapTypeId=0,Qt.offerCoin!==void 0&&Qt.offerCoin!==null?wt.offerCoin=dt.Coin.fromJSON(Qt.offerCoin):wt.offerCoin=void 0,Qt.demandCoinDenom!==void 0&&Qt.demandCoinDenom!==null?wt.demandCoinDenom=String(Qt.demandCoinDenom):wt.demandCoinDenom="",Qt.offerCoinFee!==void 0&&Qt.offerCoinFee!==null?wt.offerCoinFee=dt.Coin.fromJSON(Qt.offerCoinFee):wt.offerCoinFee=void 0,Qt.orderPrice!==void 0&&Qt.orderPrice!==null?wt.orderPrice=String(Qt.orderPrice):wt.orderPrice="",wt},toJSON(Qt){const wt={};return Qt.swapRequesterAddress!==void 0&&(wt.swapRequesterAddress=Qt.swapRequesterAddress),Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.swapTypeId!==void 0&&(wt.swapTypeId=Qt.swapTypeId),Qt.offerCoin!==void 0&&(wt.offerCoin=Qt.offerCoin?dt.Coin.toJSON(Qt.offerCoin):void 0),Qt.demandCoinDenom!==void 0&&(wt.demandCoinDenom=Qt.demandCoinDenom),Qt.offerCoinFee!==void 0&&(wt.offerCoinFee=Qt.offerCoinFee?dt.Coin.toJSON(Qt.offerCoinFee):void 0),Qt.orderPrice!==void 0&&(wt.orderPrice=Qt.orderPrice),wt},fromPartial(Qt){const wt={...Pt};return Qt.swapRequesterAddress!==void 0&&Qt.swapRequesterAddress!==null?wt.swapRequesterAddress=Qt.swapRequesterAddress:wt.swapRequesterAddress="",Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.swapTypeId!==void 0&&Qt.swapTypeId!==null?wt.swapTypeId=Qt.swapTypeId:wt.swapTypeId=0,Qt.offerCoin!==void 0&&Qt.offerCoin!==null?wt.offerCoin=dt.Coin.fromPartial(Qt.offerCoin):wt.offerCoin=void 0,Qt.demandCoinDenom!==void 0&&Qt.demandCoinDenom!==null?wt.demandCoinDenom=Qt.demandCoinDenom:wt.demandCoinDenom="",Qt.offerCoinFee!==void 0&&Qt.offerCoinFee!==null?wt.offerCoinFee=dt.Coin.fromPartial(Qt.offerCoinFee):wt.offerCoinFee=void 0,Qt.orderPrice!==void 0&&Qt.orderPrice!==null?wt.orderPrice=Qt.orderPrice:wt.orderPrice="",wt}};const Jt={};d.MsgSwapWithinBatchResponse={encode(Qt,wt=b.Writer.create()){return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Jt};for(;Nt.pos>>3){default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{...Jt}},toJSON(Qt){return{}},fromPartial(Qt){return{...Jt}}};class Zt{constructor(wt){this.rpc=wt}CreatePool(wt){const Nt=d.MsgCreatePool.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","CreatePool",Nt).then(Et=>d.MsgCreatePoolResponse.decode(new b.Reader(Et)))}DepositWithinBatch(wt){const Nt=d.MsgDepositWithinBatch.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","DepositWithinBatch",Nt).then(Et=>d.MsgDepositWithinBatchResponse.decode(new b.Reader(Et)))}WithdrawWithinBatch(wt){const Nt=d.MsgWithdrawWithinBatch.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","WithdrawWithinBatch",Nt).then(Et=>d.MsgWithdrawWithinBatchResponse.decode(new b.Reader(Et)))}Swap(wt){const Nt=d.MsgSwapWithinBatch.encode(wt).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Msg","Swap",Nt).then(Et=>d.MsgSwapWithinBatchResponse.decode(new b.Reader(Et)))}}d.MsgClientImpl=Zt;var Rt=(()=>{if(typeof Rt<"u")return Rt;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();function nn(Qt){if(Qt.gt(Number.MAX_SAFE_INTEGER))throw new Rt.Error("Value is larger than Number.MAX_SAFE_INTEGER");return Qt.toNumber()}})(tx$c);(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.SwapMsgState=d.WithdrawMsgState=d.DepositMsgState=d.PoolBatch=d.PoolMetadata=d.Pool=d.Params=d.PoolType=d.protobufPackage=void 0;const b=minimal,dt=coin,ct=tx$c;d.protobufPackage="tendermint.liquidity.v1beta1";const lt={id:0,name:"",minReserveCoinNum:0,maxReserveCoinNum:0,description:""};d.PoolType={encode(Qt,wt=b.Writer.create()){return Qt.id!==0&&wt.uint32(8).uint32(Qt.id),Qt.name!==""&&wt.uint32(18).string(Qt.name),Qt.minReserveCoinNum!==0&&wt.uint32(24).uint32(Qt.minReserveCoinNum),Qt.maxReserveCoinNum!==0&&wt.uint32(32).uint32(Qt.maxReserveCoinNum),Qt.description!==""&&wt.uint32(42).string(Qt.description),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...lt};for(;Nt.pos>>3){case 1:Et.id=Nt.uint32();break;case 2:Et.name=Nt.string();break;case 3:Et.minReserveCoinNum=Nt.uint32();break;case 4:Et.maxReserveCoinNum=Nt.uint32();break;case 5:Et.description=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...lt};return Qt.id!==void 0&&Qt.id!==null?wt.id=Number(Qt.id):wt.id=0,Qt.name!==void 0&&Qt.name!==null?wt.name=String(Qt.name):wt.name="",Qt.minReserveCoinNum!==void 0&&Qt.minReserveCoinNum!==null?wt.minReserveCoinNum=Number(Qt.minReserveCoinNum):wt.minReserveCoinNum=0,Qt.maxReserveCoinNum!==void 0&&Qt.maxReserveCoinNum!==null?wt.maxReserveCoinNum=Number(Qt.maxReserveCoinNum):wt.maxReserveCoinNum=0,Qt.description!==void 0&&Qt.description!==null?wt.description=String(Qt.description):wt.description="",wt},toJSON(Qt){const wt={};return Qt.id!==void 0&&(wt.id=Qt.id),Qt.name!==void 0&&(wt.name=Qt.name),Qt.minReserveCoinNum!==void 0&&(wt.minReserveCoinNum=Qt.minReserveCoinNum),Qt.maxReserveCoinNum!==void 0&&(wt.maxReserveCoinNum=Qt.maxReserveCoinNum),Qt.description!==void 0&&(wt.description=Qt.description),wt},fromPartial(Qt){const wt={...lt};return Qt.id!==void 0&&Qt.id!==null?wt.id=Qt.id:wt.id=0,Qt.name!==void 0&&Qt.name!==null?wt.name=Qt.name:wt.name="",Qt.minReserveCoinNum!==void 0&&Qt.minReserveCoinNum!==null?wt.minReserveCoinNum=Qt.minReserveCoinNum:wt.minReserveCoinNum=0,Qt.maxReserveCoinNum!==void 0&&Qt.maxReserveCoinNum!==null?wt.maxReserveCoinNum=Qt.maxReserveCoinNum:wt.maxReserveCoinNum=0,Qt.description!==void 0&&Qt.description!==null?wt.description=Qt.description:wt.description="",wt}};const ht={minInitDepositAmount:"",initPoolCoinMintAmount:"",maxReserveCoinAmount:"",swapFeeRate:"",withdrawFeeRate:"",maxOrderAmountRatio:"",unitBatchHeight:0,circuitBreakerEnabled:!1};d.Params={encode(Qt,wt=b.Writer.create()){for(const Nt of Qt.poolTypes)d.PoolType.encode(Nt,wt.uint32(10).fork()).ldelim();Qt.minInitDepositAmount!==""&&wt.uint32(18).string(Qt.minInitDepositAmount),Qt.initPoolCoinMintAmount!==""&&wt.uint32(26).string(Qt.initPoolCoinMintAmount),Qt.maxReserveCoinAmount!==""&&wt.uint32(34).string(Qt.maxReserveCoinAmount);for(const Nt of Qt.poolCreationFee)dt.Coin.encode(Nt,wt.uint32(42).fork()).ldelim();return Qt.swapFeeRate!==""&&wt.uint32(50).string(Qt.swapFeeRate),Qt.withdrawFeeRate!==""&&wt.uint32(58).string(Qt.withdrawFeeRate),Qt.maxOrderAmountRatio!==""&&wt.uint32(66).string(Qt.maxOrderAmountRatio),Qt.unitBatchHeight!==0&&wt.uint32(72).uint32(Qt.unitBatchHeight),Qt.circuitBreakerEnabled===!0&&wt.uint32(80).bool(Qt.circuitBreakerEnabled),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...ht};for(Et.poolTypes=[],Et.poolCreationFee=[];Nt.pos>>3){case 1:Et.poolTypes.push(d.PoolType.decode(Nt,Nt.uint32()));break;case 2:Et.minInitDepositAmount=Nt.string();break;case 3:Et.initPoolCoinMintAmount=Nt.string();break;case 4:Et.maxReserveCoinAmount=Nt.string();break;case 5:Et.poolCreationFee.push(dt.Coin.decode(Nt,Nt.uint32()));break;case 6:Et.swapFeeRate=Nt.string();break;case 7:Et.withdrawFeeRate=Nt.string();break;case 8:Et.maxOrderAmountRatio=Nt.string();break;case 9:Et.unitBatchHeight=Nt.uint32();break;case 10:Et.circuitBreakerEnabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...ht};if(wt.poolTypes=[],wt.poolCreationFee=[],Qt.poolTypes!==void 0&&Qt.poolTypes!==null)for(const Nt of Qt.poolTypes)wt.poolTypes.push(d.PoolType.fromJSON(Nt));if(Qt.minInitDepositAmount!==void 0&&Qt.minInitDepositAmount!==null?wt.minInitDepositAmount=String(Qt.minInitDepositAmount):wt.minInitDepositAmount="",Qt.initPoolCoinMintAmount!==void 0&&Qt.initPoolCoinMintAmount!==null?wt.initPoolCoinMintAmount=String(Qt.initPoolCoinMintAmount):wt.initPoolCoinMintAmount="",Qt.maxReserveCoinAmount!==void 0&&Qt.maxReserveCoinAmount!==null?wt.maxReserveCoinAmount=String(Qt.maxReserveCoinAmount):wt.maxReserveCoinAmount="",Qt.poolCreationFee!==void 0&&Qt.poolCreationFee!==null)for(const Nt of Qt.poolCreationFee)wt.poolCreationFee.push(dt.Coin.fromJSON(Nt));return Qt.swapFeeRate!==void 0&&Qt.swapFeeRate!==null?wt.swapFeeRate=String(Qt.swapFeeRate):wt.swapFeeRate="",Qt.withdrawFeeRate!==void 0&&Qt.withdrawFeeRate!==null?wt.withdrawFeeRate=String(Qt.withdrawFeeRate):wt.withdrawFeeRate="",Qt.maxOrderAmountRatio!==void 0&&Qt.maxOrderAmountRatio!==null?wt.maxOrderAmountRatio=String(Qt.maxOrderAmountRatio):wt.maxOrderAmountRatio="",Qt.unitBatchHeight!==void 0&&Qt.unitBatchHeight!==null?wt.unitBatchHeight=Number(Qt.unitBatchHeight):wt.unitBatchHeight=0,Qt.circuitBreakerEnabled!==void 0&&Qt.circuitBreakerEnabled!==null?wt.circuitBreakerEnabled=!!Qt.circuitBreakerEnabled:wt.circuitBreakerEnabled=!1,wt},toJSON(Qt){const wt={};return Qt.poolTypes?wt.poolTypes=Qt.poolTypes.map(Nt=>Nt?d.PoolType.toJSON(Nt):void 0):wt.poolTypes=[],Qt.minInitDepositAmount!==void 0&&(wt.minInitDepositAmount=Qt.minInitDepositAmount),Qt.initPoolCoinMintAmount!==void 0&&(wt.initPoolCoinMintAmount=Qt.initPoolCoinMintAmount),Qt.maxReserveCoinAmount!==void 0&&(wt.maxReserveCoinAmount=Qt.maxReserveCoinAmount),Qt.poolCreationFee?wt.poolCreationFee=Qt.poolCreationFee.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.poolCreationFee=[],Qt.swapFeeRate!==void 0&&(wt.swapFeeRate=Qt.swapFeeRate),Qt.withdrawFeeRate!==void 0&&(wt.withdrawFeeRate=Qt.withdrawFeeRate),Qt.maxOrderAmountRatio!==void 0&&(wt.maxOrderAmountRatio=Qt.maxOrderAmountRatio),Qt.unitBatchHeight!==void 0&&(wt.unitBatchHeight=Qt.unitBatchHeight),Qt.circuitBreakerEnabled!==void 0&&(wt.circuitBreakerEnabled=Qt.circuitBreakerEnabled),wt},fromPartial(Qt){const wt={...ht};if(wt.poolTypes=[],wt.poolCreationFee=[],Qt.poolTypes!==void 0&&Qt.poolTypes!==null)for(const Nt of Qt.poolTypes)wt.poolTypes.push(d.PoolType.fromPartial(Nt));if(Qt.minInitDepositAmount!==void 0&&Qt.minInitDepositAmount!==null?wt.minInitDepositAmount=Qt.minInitDepositAmount:wt.minInitDepositAmount="",Qt.initPoolCoinMintAmount!==void 0&&Qt.initPoolCoinMintAmount!==null?wt.initPoolCoinMintAmount=Qt.initPoolCoinMintAmount:wt.initPoolCoinMintAmount="",Qt.maxReserveCoinAmount!==void 0&&Qt.maxReserveCoinAmount!==null?wt.maxReserveCoinAmount=Qt.maxReserveCoinAmount:wt.maxReserveCoinAmount="",Qt.poolCreationFee!==void 0&&Qt.poolCreationFee!==null)for(const Nt of Qt.poolCreationFee)wt.poolCreationFee.push(dt.Coin.fromPartial(Nt));return Qt.swapFeeRate!==void 0&&Qt.swapFeeRate!==null?wt.swapFeeRate=Qt.swapFeeRate:wt.swapFeeRate="",Qt.withdrawFeeRate!==void 0&&Qt.withdrawFeeRate!==null?wt.withdrawFeeRate=Qt.withdrawFeeRate:wt.withdrawFeeRate="",Qt.maxOrderAmountRatio!==void 0&&Qt.maxOrderAmountRatio!==null?wt.maxOrderAmountRatio=Qt.maxOrderAmountRatio:wt.maxOrderAmountRatio="",Qt.unitBatchHeight!==void 0&&Qt.unitBatchHeight!==null?wt.unitBatchHeight=Qt.unitBatchHeight:wt.unitBatchHeight=0,Qt.circuitBreakerEnabled!==void 0&&Qt.circuitBreakerEnabled!==null?wt.circuitBreakerEnabled=Qt.circuitBreakerEnabled:wt.circuitBreakerEnabled=!1,wt}};const mt={id:0,typeId:0,reserveCoinDenoms:"",reserveAccountAddress:"",poolCoinDenom:""};d.Pool={encode(Qt,wt=b.Writer.create()){Qt.id!==0&&wt.uint32(8).uint64(Qt.id),Qt.typeId!==0&&wt.uint32(16).uint32(Qt.typeId);for(const Nt of Qt.reserveCoinDenoms)wt.uint32(26).string(Nt);return Qt.reserveAccountAddress!==""&&wt.uint32(34).string(Qt.reserveAccountAddress),Qt.poolCoinDenom!==""&&wt.uint32(42).string(Qt.poolCoinDenom),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...mt};for(Et.reserveCoinDenoms=[];Nt.pos>>3){case 1:Et.id=nn(Nt.uint64());break;case 2:Et.typeId=Nt.uint32();break;case 3:Et.reserveCoinDenoms.push(Nt.string());break;case 4:Et.reserveAccountAddress=Nt.string();break;case 5:Et.poolCoinDenom=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...mt};if(wt.reserveCoinDenoms=[],Qt.id!==void 0&&Qt.id!==null?wt.id=Number(Qt.id):wt.id=0,Qt.typeId!==void 0&&Qt.typeId!==null?wt.typeId=Number(Qt.typeId):wt.typeId=0,Qt.reserveCoinDenoms!==void 0&&Qt.reserveCoinDenoms!==null)for(const Nt of Qt.reserveCoinDenoms)wt.reserveCoinDenoms.push(String(Nt));return Qt.reserveAccountAddress!==void 0&&Qt.reserveAccountAddress!==null?wt.reserveAccountAddress=String(Qt.reserveAccountAddress):wt.reserveAccountAddress="",Qt.poolCoinDenom!==void 0&&Qt.poolCoinDenom!==null?wt.poolCoinDenom=String(Qt.poolCoinDenom):wt.poolCoinDenom="",wt},toJSON(Qt){const wt={};return Qt.id!==void 0&&(wt.id=Qt.id),Qt.typeId!==void 0&&(wt.typeId=Qt.typeId),Qt.reserveCoinDenoms?wt.reserveCoinDenoms=Qt.reserveCoinDenoms.map(Nt=>Nt):wt.reserveCoinDenoms=[],Qt.reserveAccountAddress!==void 0&&(wt.reserveAccountAddress=Qt.reserveAccountAddress),Qt.poolCoinDenom!==void 0&&(wt.poolCoinDenom=Qt.poolCoinDenom),wt},fromPartial(Qt){const wt={...mt};if(wt.reserveCoinDenoms=[],Qt.id!==void 0&&Qt.id!==null?wt.id=Qt.id:wt.id=0,Qt.typeId!==void 0&&Qt.typeId!==null?wt.typeId=Qt.typeId:wt.typeId=0,Qt.reserveCoinDenoms!==void 0&&Qt.reserveCoinDenoms!==null)for(const Nt of Qt.reserveCoinDenoms)wt.reserveCoinDenoms.push(Nt);return Qt.reserveAccountAddress!==void 0&&Qt.reserveAccountAddress!==null?wt.reserveAccountAddress=Qt.reserveAccountAddress:wt.reserveAccountAddress="",Qt.poolCoinDenom!==void 0&&Qt.poolCoinDenom!==null?wt.poolCoinDenom=Qt.poolCoinDenom:wt.poolCoinDenom="",wt}};const vt={poolId:0};d.PoolMetadata={encode(Qt,wt=b.Writer.create()){Qt.poolId!==0&&wt.uint32(8).uint64(Qt.poolId),Qt.poolCoinTotalSupply!==void 0&&dt.Coin.encode(Qt.poolCoinTotalSupply,wt.uint32(18).fork()).ldelim();for(const Nt of Qt.reserveCoins)dt.Coin.encode(Nt,wt.uint32(26).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...vt};for(Et.reserveCoins=[];Nt.pos>>3){case 1:Et.poolId=nn(Nt.uint64());break;case 2:Et.poolCoinTotalSupply=dt.Coin.decode(Nt,Nt.uint32());break;case 3:Et.reserveCoins.push(dt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...vt};if(wt.reserveCoins=[],Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.poolCoinTotalSupply!==void 0&&Qt.poolCoinTotalSupply!==null?wt.poolCoinTotalSupply=dt.Coin.fromJSON(Qt.poolCoinTotalSupply):wt.poolCoinTotalSupply=void 0,Qt.reserveCoins!==void 0&&Qt.reserveCoins!==null)for(const Nt of Qt.reserveCoins)wt.reserveCoins.push(dt.Coin.fromJSON(Nt));return wt},toJSON(Qt){const wt={};return Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.poolCoinTotalSupply!==void 0&&(wt.poolCoinTotalSupply=Qt.poolCoinTotalSupply?dt.Coin.toJSON(Qt.poolCoinTotalSupply):void 0),Qt.reserveCoins?wt.reserveCoins=Qt.reserveCoins.map(Nt=>Nt?dt.Coin.toJSON(Nt):void 0):wt.reserveCoins=[],wt},fromPartial(Qt){const wt={...vt};if(wt.reserveCoins=[],Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.poolCoinTotalSupply!==void 0&&Qt.poolCoinTotalSupply!==null?wt.poolCoinTotalSupply=dt.Coin.fromPartial(Qt.poolCoinTotalSupply):wt.poolCoinTotalSupply=void 0,Qt.reserveCoins!==void 0&&Qt.reserveCoins!==null)for(const Nt of Qt.reserveCoins)wt.reserveCoins.push(dt.Coin.fromPartial(Nt));return wt}};const kt={poolId:0,index:0,beginHeight:0,depositMsgIndex:0,withdrawMsgIndex:0,swapMsgIndex:0,executed:!1};d.PoolBatch={encode(Qt,wt=b.Writer.create()){return Qt.poolId!==0&&wt.uint32(8).uint64(Qt.poolId),Qt.index!==0&&wt.uint32(16).uint64(Qt.index),Qt.beginHeight!==0&&wt.uint32(24).int64(Qt.beginHeight),Qt.depositMsgIndex!==0&&wt.uint32(32).uint64(Qt.depositMsgIndex),Qt.withdrawMsgIndex!==0&&wt.uint32(40).uint64(Qt.withdrawMsgIndex),Qt.swapMsgIndex!==0&&wt.uint32(48).uint64(Qt.swapMsgIndex),Qt.executed===!0&&wt.uint32(56).bool(Qt.executed),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...kt};for(;Nt.pos>>3){case 1:Et.poolId=nn(Nt.uint64());break;case 2:Et.index=nn(Nt.uint64());break;case 3:Et.beginHeight=nn(Nt.int64());break;case 4:Et.depositMsgIndex=nn(Nt.uint64());break;case 5:Et.withdrawMsgIndex=nn(Nt.uint64());break;case 6:Et.swapMsgIndex=nn(Nt.uint64());break;case 7:Et.executed=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...kt};return Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Number(Qt.poolId):wt.poolId=0,Qt.index!==void 0&&Qt.index!==null?wt.index=Number(Qt.index):wt.index=0,Qt.beginHeight!==void 0&&Qt.beginHeight!==null?wt.beginHeight=Number(Qt.beginHeight):wt.beginHeight=0,Qt.depositMsgIndex!==void 0&&Qt.depositMsgIndex!==null?wt.depositMsgIndex=Number(Qt.depositMsgIndex):wt.depositMsgIndex=0,Qt.withdrawMsgIndex!==void 0&&Qt.withdrawMsgIndex!==null?wt.withdrawMsgIndex=Number(Qt.withdrawMsgIndex):wt.withdrawMsgIndex=0,Qt.swapMsgIndex!==void 0&&Qt.swapMsgIndex!==null?wt.swapMsgIndex=Number(Qt.swapMsgIndex):wt.swapMsgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,wt},toJSON(Qt){const wt={};return Qt.poolId!==void 0&&(wt.poolId=Qt.poolId),Qt.index!==void 0&&(wt.index=Qt.index),Qt.beginHeight!==void 0&&(wt.beginHeight=Qt.beginHeight),Qt.depositMsgIndex!==void 0&&(wt.depositMsgIndex=Qt.depositMsgIndex),Qt.withdrawMsgIndex!==void 0&&(wt.withdrawMsgIndex=Qt.withdrawMsgIndex),Qt.swapMsgIndex!==void 0&&(wt.swapMsgIndex=Qt.swapMsgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),wt},fromPartial(Qt){const wt={...kt};return Qt.poolId!==void 0&&Qt.poolId!==null?wt.poolId=Qt.poolId:wt.poolId=0,Qt.index!==void 0&&Qt.index!==null?wt.index=Qt.index:wt.index=0,Qt.beginHeight!==void 0&&Qt.beginHeight!==null?wt.beginHeight=Qt.beginHeight:wt.beginHeight=0,Qt.depositMsgIndex!==void 0&&Qt.depositMsgIndex!==null?wt.depositMsgIndex=Qt.depositMsgIndex:wt.depositMsgIndex=0,Qt.withdrawMsgIndex!==void 0&&Qt.withdrawMsgIndex!==null?wt.withdrawMsgIndex=Qt.withdrawMsgIndex:wt.withdrawMsgIndex=0,Qt.swapMsgIndex!==void 0&&Qt.swapMsgIndex!==null?wt.swapMsgIndex=Qt.swapMsgIndex:wt.swapMsgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,wt}};const Pt={msgHeight:0,msgIndex:0,executed:!1,succeeded:!1,toBeDeleted:!1};d.DepositMsgState={encode(Qt,wt=b.Writer.create()){return Qt.msgHeight!==0&&wt.uint32(8).int64(Qt.msgHeight),Qt.msgIndex!==0&&wt.uint32(16).uint64(Qt.msgIndex),Qt.executed===!0&&wt.uint32(24).bool(Qt.executed),Qt.succeeded===!0&&wt.uint32(32).bool(Qt.succeeded),Qt.toBeDeleted===!0&&wt.uint32(40).bool(Qt.toBeDeleted),Qt.msg!==void 0&&ct.MsgDepositWithinBatch.encode(Qt.msg,wt.uint32(50).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Pt};for(;Nt.pos>>3){case 1:Et.msgHeight=nn(Nt.int64());break;case 2:Et.msgIndex=nn(Nt.uint64());break;case 3:Et.executed=Nt.bool();break;case 4:Et.succeeded=Nt.bool();break;case 5:Et.toBeDeleted=Nt.bool();break;case 6:Et.msg=ct.MsgDepositWithinBatch.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Pt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Number(Qt.msgHeight):wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Number(Qt.msgIndex):wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=!!Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=!!Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgDepositWithinBatch.fromJSON(Qt.msg):wt.msg=void 0,wt},toJSON(Qt){const wt={};return Qt.msgHeight!==void 0&&(wt.msgHeight=Qt.msgHeight),Qt.msgIndex!==void 0&&(wt.msgIndex=Qt.msgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),Qt.succeeded!==void 0&&(wt.succeeded=Qt.succeeded),Qt.toBeDeleted!==void 0&&(wt.toBeDeleted=Qt.toBeDeleted),Qt.msg!==void 0&&(wt.msg=Qt.msg?ct.MsgDepositWithinBatch.toJSON(Qt.msg):void 0),wt},fromPartial(Qt){const wt={...Pt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Qt.msgHeight:wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Qt.msgIndex:wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgDepositWithinBatch.fromPartial(Qt.msg):wt.msg=void 0,wt}};const Jt={msgHeight:0,msgIndex:0,executed:!1,succeeded:!1,toBeDeleted:!1};d.WithdrawMsgState={encode(Qt,wt=b.Writer.create()){return Qt.msgHeight!==0&&wt.uint32(8).int64(Qt.msgHeight),Qt.msgIndex!==0&&wt.uint32(16).uint64(Qt.msgIndex),Qt.executed===!0&&wt.uint32(24).bool(Qt.executed),Qt.succeeded===!0&&wt.uint32(32).bool(Qt.succeeded),Qt.toBeDeleted===!0&&wt.uint32(40).bool(Qt.toBeDeleted),Qt.msg!==void 0&&ct.MsgWithdrawWithinBatch.encode(Qt.msg,wt.uint32(50).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Jt};for(;Nt.pos>>3){case 1:Et.msgHeight=nn(Nt.int64());break;case 2:Et.msgIndex=nn(Nt.uint64());break;case 3:Et.executed=Nt.bool();break;case 4:Et.succeeded=Nt.bool();break;case 5:Et.toBeDeleted=Nt.bool();break;case 6:Et.msg=ct.MsgWithdrawWithinBatch.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Jt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Number(Qt.msgHeight):wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Number(Qt.msgIndex):wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=!!Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=!!Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgWithdrawWithinBatch.fromJSON(Qt.msg):wt.msg=void 0,wt},toJSON(Qt){const wt={};return Qt.msgHeight!==void 0&&(wt.msgHeight=Qt.msgHeight),Qt.msgIndex!==void 0&&(wt.msgIndex=Qt.msgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),Qt.succeeded!==void 0&&(wt.succeeded=Qt.succeeded),Qt.toBeDeleted!==void 0&&(wt.toBeDeleted=Qt.toBeDeleted),Qt.msg!==void 0&&(wt.msg=Qt.msg?ct.MsgWithdrawWithinBatch.toJSON(Qt.msg):void 0),wt},fromPartial(Qt){const wt={...Jt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Qt.msgHeight:wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Qt.msgIndex:wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgWithdrawWithinBatch.fromPartial(Qt.msg):wt.msg=void 0,wt}};const Zt={msgHeight:0,msgIndex:0,executed:!1,succeeded:!1,toBeDeleted:!1,orderExpiryHeight:0};d.SwapMsgState={encode(Qt,wt=b.Writer.create()){return Qt.msgHeight!==0&&wt.uint32(8).int64(Qt.msgHeight),Qt.msgIndex!==0&&wt.uint32(16).uint64(Qt.msgIndex),Qt.executed===!0&&wt.uint32(24).bool(Qt.executed),Qt.succeeded===!0&&wt.uint32(32).bool(Qt.succeeded),Qt.toBeDeleted===!0&&wt.uint32(40).bool(Qt.toBeDeleted),Qt.orderExpiryHeight!==0&&wt.uint32(48).int64(Qt.orderExpiryHeight),Qt.exchangedOfferCoin!==void 0&&dt.Coin.encode(Qt.exchangedOfferCoin,wt.uint32(58).fork()).ldelim(),Qt.remainingOfferCoin!==void 0&&dt.Coin.encode(Qt.remainingOfferCoin,wt.uint32(66).fork()).ldelim(),Qt.reservedOfferCoinFee!==void 0&&dt.Coin.encode(Qt.reservedOfferCoinFee,wt.uint32(74).fork()).ldelim(),Qt.msg!==void 0&&ct.MsgSwapWithinBatch.encode(Qt.msg,wt.uint32(82).fork()).ldelim(),wt},decode(Qt,wt){const Nt=Qt instanceof Uint8Array?new b.Reader(Qt):Qt;let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et={...Zt};for(;Nt.pos>>3){case 1:Et.msgHeight=nn(Nt.int64());break;case 2:Et.msgIndex=nn(Nt.uint64());break;case 3:Et.executed=Nt.bool();break;case 4:Et.succeeded=Nt.bool();break;case 5:Et.toBeDeleted=Nt.bool();break;case 6:Et.orderExpiryHeight=nn(Nt.int64());break;case 7:Et.exchangedOfferCoin=dt.Coin.decode(Nt,Nt.uint32());break;case 8:Et.remainingOfferCoin=dt.Coin.decode(Nt,Nt.uint32());break;case 9:Et.reservedOfferCoinFee=dt.Coin.decode(Nt,Nt.uint32());break;case 10:Et.msg=ct.MsgSwapWithinBatch.decode(Nt,Nt.uint32());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){const wt={...Zt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Number(Qt.msgHeight):wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Number(Qt.msgIndex):wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=!!Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=!!Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=!!Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.orderExpiryHeight!==void 0&&Qt.orderExpiryHeight!==null?wt.orderExpiryHeight=Number(Qt.orderExpiryHeight):wt.orderExpiryHeight=0,Qt.exchangedOfferCoin!==void 0&&Qt.exchangedOfferCoin!==null?wt.exchangedOfferCoin=dt.Coin.fromJSON(Qt.exchangedOfferCoin):wt.exchangedOfferCoin=void 0,Qt.remainingOfferCoin!==void 0&&Qt.remainingOfferCoin!==null?wt.remainingOfferCoin=dt.Coin.fromJSON(Qt.remainingOfferCoin):wt.remainingOfferCoin=void 0,Qt.reservedOfferCoinFee!==void 0&&Qt.reservedOfferCoinFee!==null?wt.reservedOfferCoinFee=dt.Coin.fromJSON(Qt.reservedOfferCoinFee):wt.reservedOfferCoinFee=void 0,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgSwapWithinBatch.fromJSON(Qt.msg):wt.msg=void 0,wt},toJSON(Qt){const wt={};return Qt.msgHeight!==void 0&&(wt.msgHeight=Qt.msgHeight),Qt.msgIndex!==void 0&&(wt.msgIndex=Qt.msgIndex),Qt.executed!==void 0&&(wt.executed=Qt.executed),Qt.succeeded!==void 0&&(wt.succeeded=Qt.succeeded),Qt.toBeDeleted!==void 0&&(wt.toBeDeleted=Qt.toBeDeleted),Qt.orderExpiryHeight!==void 0&&(wt.orderExpiryHeight=Qt.orderExpiryHeight),Qt.exchangedOfferCoin!==void 0&&(wt.exchangedOfferCoin=Qt.exchangedOfferCoin?dt.Coin.toJSON(Qt.exchangedOfferCoin):void 0),Qt.remainingOfferCoin!==void 0&&(wt.remainingOfferCoin=Qt.remainingOfferCoin?dt.Coin.toJSON(Qt.remainingOfferCoin):void 0),Qt.reservedOfferCoinFee!==void 0&&(wt.reservedOfferCoinFee=Qt.reservedOfferCoinFee?dt.Coin.toJSON(Qt.reservedOfferCoinFee):void 0),Qt.msg!==void 0&&(wt.msg=Qt.msg?ct.MsgSwapWithinBatch.toJSON(Qt.msg):void 0),wt},fromPartial(Qt){const wt={...Zt};return Qt.msgHeight!==void 0&&Qt.msgHeight!==null?wt.msgHeight=Qt.msgHeight:wt.msgHeight=0,Qt.msgIndex!==void 0&&Qt.msgIndex!==null?wt.msgIndex=Qt.msgIndex:wt.msgIndex=0,Qt.executed!==void 0&&Qt.executed!==null?wt.executed=Qt.executed:wt.executed=!1,Qt.succeeded!==void 0&&Qt.succeeded!==null?wt.succeeded=Qt.succeeded:wt.succeeded=!1,Qt.toBeDeleted!==void 0&&Qt.toBeDeleted!==null?wt.toBeDeleted=Qt.toBeDeleted:wt.toBeDeleted=!1,Qt.orderExpiryHeight!==void 0&&Qt.orderExpiryHeight!==null?wt.orderExpiryHeight=Qt.orderExpiryHeight:wt.orderExpiryHeight=0,Qt.exchangedOfferCoin!==void 0&&Qt.exchangedOfferCoin!==null?wt.exchangedOfferCoin=dt.Coin.fromPartial(Qt.exchangedOfferCoin):wt.exchangedOfferCoin=void 0,Qt.remainingOfferCoin!==void 0&&Qt.remainingOfferCoin!==null?wt.remainingOfferCoin=dt.Coin.fromPartial(Qt.remainingOfferCoin):wt.remainingOfferCoin=void 0,Qt.reservedOfferCoinFee!==void 0&&Qt.reservedOfferCoinFee!==null?wt.reservedOfferCoinFee=dt.Coin.fromPartial(Qt.reservedOfferCoinFee):wt.reservedOfferCoinFee=void 0,Qt.msg!==void 0&&Qt.msg!==null?wt.msg=ct.MsgSwapWithinBatch.fromPartial(Qt.msg):wt.msg=void 0,wt}};var Rt=(()=>{if(typeof Rt<"u")return Rt;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();function nn(Qt){if(Qt.gt(Number.MAX_SAFE_INTEGER))throw new Rt.Error("Value is larger than Number.MAX_SAFE_INTEGER");return Qt.toNumber()}})(liquidity$1);(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.QueryClientImpl=d.QueryPoolBatchWithdrawMsgResponse=d.QueryPoolBatchWithdrawMsgsResponse=d.QueryPoolBatchWithdrawMsgRequest=d.QueryPoolBatchWithdrawMsgsRequest=d.QueryPoolBatchDepositMsgResponse=d.QueryPoolBatchDepositMsgsResponse=d.QueryPoolBatchDepositMsgRequest=d.QueryPoolBatchDepositMsgsRequest=d.QueryPoolBatchSwapMsgResponse=d.QueryPoolBatchSwapMsgsResponse=d.QueryPoolBatchSwapMsgRequest=d.QueryPoolBatchSwapMsgsRequest=d.QueryParamsResponse=d.QueryParamsRequest=d.QueryLiquidityPoolsResponse=d.QueryLiquidityPoolsRequest=d.QueryLiquidityPoolBatchResponse=d.QueryLiquidityPoolBatchRequest=d.QueryLiquidityPoolByReserveAccRequest=d.QueryLiquidityPoolByPoolCoinDenomRequest=d.QueryLiquidityPoolResponse=d.QueryLiquidityPoolRequest=d.protobufPackage=void 0;const b=minimal,dt=liquidity$1,ct=pagination$1;d.protobufPackage="tendermint.liquidity.v1beta1";const lt={poolId:0};d.QueryLiquidityPoolRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...lt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...lt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),It},fromPartial(St){const It={...lt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,It}};const ht={};d.QueryLiquidityPoolResponse={encode(St,It=b.Writer.create()){return St.pool!==void 0&&dt.Pool.encode(St.pool,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...ht};for(;Gt.pos>>3){case 1:Vt.pool=dt.Pool.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...ht};return St.pool!==void 0&&St.pool!==null?It.pool=dt.Pool.fromJSON(St.pool):It.pool=void 0,It},toJSON(St){const It={};return St.pool!==void 0&&(It.pool=St.pool?dt.Pool.toJSON(St.pool):void 0),It},fromPartial(St){const It={...ht};return St.pool!==void 0&&St.pool!==null?It.pool=dt.Pool.fromPartial(St.pool):It.pool=void 0,It}};const mt={poolCoinDenom:""};d.QueryLiquidityPoolByPoolCoinDenomRequest={encode(St,It=b.Writer.create()){return St.poolCoinDenom!==""&&It.uint32(10).string(St.poolCoinDenom),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...mt};for(;Gt.pos>>3){case 1:Vt.poolCoinDenom=Gt.string();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...mt};return St.poolCoinDenom!==void 0&&St.poolCoinDenom!==null?It.poolCoinDenom=String(St.poolCoinDenom):It.poolCoinDenom="",It},toJSON(St){const It={};return St.poolCoinDenom!==void 0&&(It.poolCoinDenom=St.poolCoinDenom),It},fromPartial(St){const It={...mt};return St.poolCoinDenom!==void 0&&St.poolCoinDenom!==null?It.poolCoinDenom=St.poolCoinDenom:It.poolCoinDenom="",It}};const vt={reserveAcc:""};d.QueryLiquidityPoolByReserveAccRequest={encode(St,It=b.Writer.create()){return St.reserveAcc!==""&&It.uint32(10).string(St.reserveAcc),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...vt};for(;Gt.pos>>3){case 1:Vt.reserveAcc=Gt.string();break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...vt};return St.reserveAcc!==void 0&&St.reserveAcc!==null?It.reserveAcc=String(St.reserveAcc):It.reserveAcc="",It},toJSON(St){const It={};return St.reserveAcc!==void 0&&(It.reserveAcc=St.reserveAcc),It},fromPartial(St){const It={...vt};return St.reserveAcc!==void 0&&St.reserveAcc!==null?It.reserveAcc=St.reserveAcc:It.reserveAcc="",It}};const kt={poolId:0};d.QueryLiquidityPoolBatchRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...kt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...kt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),It},fromPartial(St){const It={...kt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,It}};const Pt={};d.QueryLiquidityPoolBatchResponse={encode(St,It=b.Writer.create()){return St.batch!==void 0&&dt.PoolBatch.encode(St.batch,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Pt};for(;Gt.pos>>3){case 1:Vt.batch=dt.PoolBatch.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Pt};return St.batch!==void 0&&St.batch!==null?It.batch=dt.PoolBatch.fromJSON(St.batch):It.batch=void 0,It},toJSON(St){const It={};return St.batch!==void 0&&(It.batch=St.batch?dt.PoolBatch.toJSON(St.batch):void 0),It},fromPartial(St){const It={...Pt};return St.batch!==void 0&&St.batch!==null?It.batch=dt.PoolBatch.fromPartial(St.batch):It.batch=void 0,It}};const Jt={};d.QueryLiquidityPoolsRequest={encode(St,It=b.Writer.create()){return St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Jt};for(;Gt.pos>>3){case 1:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Jt};return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Jt};return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const Zt={};d.QueryLiquidityPoolsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.pools)dt.Pool.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Zt};for(Vt.pools=[];Gt.pos>>3){case 1:Vt.pools.push(dt.Pool.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Zt};if(It.pools=[],St.pools!==void 0&&St.pools!==null)for(const Gt of St.pools)It.pools.push(dt.Pool.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.pools?It.pools=St.pools.map(Gt=>Gt?dt.Pool.toJSON(Gt):void 0):It.pools=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Zt};if(It.pools=[],St.pools!==void 0&&St.pools!==null)for(const Gt of St.pools)It.pools.push(dt.Pool.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const Rt={};d.QueryParamsRequest={encode(St,It=b.Writer.create()){return It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Rt};for(;Gt.pos>>3){default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){return{...Rt}},toJSON(St){return{}},fromPartial(St){return{...Rt}}};const nn={};d.QueryParamsResponse={encode(St,It=b.Writer.create()){return St.params!==void 0&&dt.Params.encode(St.params,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...nn};for(;Gt.pos>>3){case 1:Vt.params=dt.Params.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...nn};return St.params!==void 0&&St.params!==null?It.params=dt.Params.fromJSON(St.params):It.params=void 0,It},toJSON(St){const It={};return St.params!==void 0&&(It.params=St.params?dt.Params.toJSON(St.params):void 0),It},fromPartial(St){const It={...nn};return St.params!==void 0&&St.params!==null?It.params=dt.Params.fromPartial(St.params):It.params=void 0,It}};const Qt={poolId:0};d.QueryPoolBatchSwapMsgsRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Qt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Qt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Qt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const wt={poolId:0,msgIndex:0};d.QueryPoolBatchSwapMsgRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.msgIndex!==0&&It.uint32(16).uint64(St.msgIndex),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...wt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.msgIndex=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...wt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=Number(St.msgIndex):It.msgIndex=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.msgIndex!==void 0&&(It.msgIndex=St.msgIndex),It},fromPartial(St){const It={...wt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=St.msgIndex:It.msgIndex=0,It}};const Nt={};d.QueryPoolBatchSwapMsgsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.swaps)dt.SwapMsgState.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Nt};for(Vt.swaps=[];Gt.pos>>3){case 1:Vt.swaps.push(dt.SwapMsgState.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Nt};if(It.swaps=[],St.swaps!==void 0&&St.swaps!==null)for(const Gt of St.swaps)It.swaps.push(dt.SwapMsgState.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.swaps?It.swaps=St.swaps.map(Gt=>Gt?dt.SwapMsgState.toJSON(Gt):void 0):It.swaps=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Nt};if(It.swaps=[],St.swaps!==void 0&&St.swaps!==null)for(const Gt of St.swaps)It.swaps.push(dt.SwapMsgState.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const xt={};d.QueryPoolBatchSwapMsgResponse={encode(St,It=b.Writer.create()){return St.swap!==void 0&&dt.SwapMsgState.encode(St.swap,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...xt};for(;Gt.pos>>3){case 1:Vt.swap=dt.SwapMsgState.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...xt};return St.swap!==void 0&&St.swap!==null?It.swap=dt.SwapMsgState.fromJSON(St.swap):It.swap=void 0,It},toJSON(St){const It={};return St.swap!==void 0&&(It.swap=St.swap?dt.SwapMsgState.toJSON(St.swap):void 0),It},fromPartial(St){const It={...xt};return St.swap!==void 0&&St.swap!==null?It.swap=dt.SwapMsgState.fromPartial(St.swap):It.swap=void 0,It}};const Et={poolId:0};d.QueryPoolBatchDepositMsgsRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Et};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Et};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Et};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const Bt={poolId:0,msgIndex:0};d.QueryPoolBatchDepositMsgRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.msgIndex!==0&&It.uint32(16).uint64(St.msgIndex),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Bt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.msgIndex=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Bt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=Number(St.msgIndex):It.msgIndex=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.msgIndex!==void 0&&(It.msgIndex=St.msgIndex),It},fromPartial(St){const It={...Bt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=St.msgIndex:It.msgIndex=0,It}};const Tt={};d.QueryPoolBatchDepositMsgsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.deposits)dt.DepositMsgState.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Tt};for(Vt.deposits=[];Gt.pos>>3){case 1:Vt.deposits.push(dt.DepositMsgState.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Tt};if(It.deposits=[],St.deposits!==void 0&&St.deposits!==null)for(const Gt of St.deposits)It.deposits.push(dt.DepositMsgState.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.deposits?It.deposits=St.deposits.map(Gt=>Gt?dt.DepositMsgState.toJSON(Gt):void 0):It.deposits=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...Tt};if(It.deposits=[],St.deposits!==void 0&&St.deposits!==null)for(const Gt of St.deposits)It.deposits.push(dt.DepositMsgState.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const Mt={};d.QueryPoolBatchDepositMsgResponse={encode(St,It=b.Writer.create()){return St.deposit!==void 0&&dt.DepositMsgState.encode(St.deposit,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Mt};for(;Gt.pos>>3){case 1:Vt.deposit=dt.DepositMsgState.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Mt};return St.deposit!==void 0&&St.deposit!==null?It.deposit=dt.DepositMsgState.fromJSON(St.deposit):It.deposit=void 0,It},toJSON(St){const It={};return St.deposit!==void 0&&(It.deposit=St.deposit?dt.DepositMsgState.toJSON(St.deposit):void 0),It},fromPartial(St){const It={...Mt};return St.deposit!==void 0&&St.deposit!==null?It.deposit=dt.DepositMsgState.fromPartial(St.deposit):It.deposit=void 0,It}};const jt={poolId:0};d.QueryPoolBatchWithdrawMsgsRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.pagination!==void 0&&ct.PageRequest.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...jt};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.pagination=ct.PageRequest.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...jt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageRequest.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...jt};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageRequest.fromPartial(St.pagination):It.pagination=void 0,It}};const Ht={poolId:0,msgIndex:0};d.QueryPoolBatchWithdrawMsgRequest={encode(St,It=b.Writer.create()){return St.poolId!==0&&It.uint32(8).uint64(St.poolId),St.msgIndex!==0&&It.uint32(16).uint64(St.msgIndex),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...Ht};for(;Gt.pos>>3){case 1:Vt.poolId=Kt(Gt.uint64());break;case 2:Vt.msgIndex=Kt(Gt.uint64());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...Ht};return St.poolId!==void 0&&St.poolId!==null?It.poolId=Number(St.poolId):It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=Number(St.msgIndex):It.msgIndex=0,It},toJSON(St){const It={};return St.poolId!==void 0&&(It.poolId=St.poolId),St.msgIndex!==void 0&&(It.msgIndex=St.msgIndex),It},fromPartial(St){const It={...Ht};return St.poolId!==void 0&&St.poolId!==null?It.poolId=St.poolId:It.poolId=0,St.msgIndex!==void 0&&St.msgIndex!==null?It.msgIndex=St.msgIndex:It.msgIndex=0,It}};const an={};d.QueryPoolBatchWithdrawMsgsResponse={encode(St,It=b.Writer.create()){for(const Gt of St.withdraws)dt.WithdrawMsgState.encode(Gt,It.uint32(10).fork()).ldelim();return St.pagination!==void 0&&ct.PageResponse.encode(St.pagination,It.uint32(18).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...an};for(Vt.withdraws=[];Gt.pos>>3){case 1:Vt.withdraws.push(dt.WithdrawMsgState.decode(Gt,Gt.uint32()));break;case 2:Vt.pagination=ct.PageResponse.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...an};if(It.withdraws=[],St.withdraws!==void 0&&St.withdraws!==null)for(const Gt of St.withdraws)It.withdraws.push(dt.WithdrawMsgState.fromJSON(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromJSON(St.pagination):It.pagination=void 0,It},toJSON(St){const It={};return St.withdraws?It.withdraws=St.withdraws.map(Gt=>Gt?dt.WithdrawMsgState.toJSON(Gt):void 0):It.withdraws=[],St.pagination!==void 0&&(It.pagination=St.pagination?ct.PageResponse.toJSON(St.pagination):void 0),It},fromPartial(St){const It={...an};if(It.withdraws=[],St.withdraws!==void 0&&St.withdraws!==null)for(const Gt of St.withdraws)It.withdraws.push(dt.WithdrawMsgState.fromPartial(Gt));return St.pagination!==void 0&&St.pagination!==null?It.pagination=ct.PageResponse.fromPartial(St.pagination):It.pagination=void 0,It}};const yt={};d.QueryPoolBatchWithdrawMsgResponse={encode(St,It=b.Writer.create()){return St.withdraw!==void 0&&dt.WithdrawMsgState.encode(St.withdraw,It.uint32(10).fork()).ldelim(),It},decode(St,It){const Gt=St instanceof Uint8Array?new b.Reader(St):St;let Ut=It===void 0?Gt.len:Gt.pos+It;const Vt={...yt};for(;Gt.pos>>3){case 1:Vt.withdraw=dt.WithdrawMsgState.decode(Gt,Gt.uint32());break;default:Gt.skipType(qt&7);break}}return Vt},fromJSON(St){const It={...yt};return St.withdraw!==void 0&&St.withdraw!==null?It.withdraw=dt.WithdrawMsgState.fromJSON(St.withdraw):It.withdraw=void 0,It},toJSON(St){const It={};return St.withdraw!==void 0&&(It.withdraw=St.withdraw?dt.WithdrawMsgState.toJSON(St.withdraw):void 0),It},fromPartial(St){const It={...yt};return St.withdraw!==void 0&&St.withdraw!==null?It.withdraw=dt.WithdrawMsgState.fromPartial(St.withdraw):It.withdraw=void 0,It}};class $t{constructor(It){this.rpc=It}LiquidityPools(It){const Gt=d.QueryLiquidityPoolsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPools",Gt).then(Vt=>d.QueryLiquidityPoolsResponse.decode(new b.Reader(Vt)))}LiquidityPool(It){const Gt=d.QueryLiquidityPoolRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPool",Gt).then(Vt=>d.QueryLiquidityPoolResponse.decode(new b.Reader(Vt)))}LiquidityPoolByPoolCoinDenom(It){const Gt=d.QueryLiquidityPoolByPoolCoinDenomRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPoolByPoolCoinDenom",Gt).then(Vt=>d.QueryLiquidityPoolResponse.decode(new b.Reader(Vt)))}LiquidityPoolByReserveAcc(It){const Gt=d.QueryLiquidityPoolByReserveAccRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPoolByReserveAcc",Gt).then(Vt=>d.QueryLiquidityPoolResponse.decode(new b.Reader(Vt)))}LiquidityPoolBatch(It){const Gt=d.QueryLiquidityPoolBatchRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","LiquidityPoolBatch",Gt).then(Vt=>d.QueryLiquidityPoolBatchResponse.decode(new b.Reader(Vt)))}PoolBatchSwapMsgs(It){const Gt=d.QueryPoolBatchSwapMsgsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchSwapMsgs",Gt).then(Vt=>d.QueryPoolBatchSwapMsgsResponse.decode(new b.Reader(Vt)))}PoolBatchSwapMsg(It){const Gt=d.QueryPoolBatchSwapMsgRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchSwapMsg",Gt).then(Vt=>d.QueryPoolBatchSwapMsgResponse.decode(new b.Reader(Vt)))}PoolBatchDepositMsgs(It){const Gt=d.QueryPoolBatchDepositMsgsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchDepositMsgs",Gt).then(Vt=>d.QueryPoolBatchDepositMsgsResponse.decode(new b.Reader(Vt)))}PoolBatchDepositMsg(It){const Gt=d.QueryPoolBatchDepositMsgRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchDepositMsg",Gt).then(Vt=>d.QueryPoolBatchDepositMsgResponse.decode(new b.Reader(Vt)))}PoolBatchWithdrawMsgs(It){const Gt=d.QueryPoolBatchWithdrawMsgsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchWithdrawMsgs",Gt).then(Vt=>d.QueryPoolBatchWithdrawMsgsResponse.decode(new b.Reader(Vt)))}PoolBatchWithdrawMsg(It){const Gt=d.QueryPoolBatchWithdrawMsgRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","PoolBatchWithdrawMsg",Gt).then(Vt=>d.QueryPoolBatchWithdrawMsgResponse.decode(new b.Reader(Vt)))}Params(It){const Gt=d.QueryParamsRequest.encode(It).finish();return this.rpc.request("tendermint.liquidity.v1beta1.Query","Params",Gt).then(Vt=>d.QueryParamsResponse.decode(new b.Reader(Vt)))}}d.QueryClientImpl=$t;var Yt=(()=>{if(typeof Yt<"u")return Yt;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal;throw"Unable to locate global object"})();function Kt(St){if(St.gt(Number.MAX_SAFE_INTEGER))throw new Yt.Error("Value is larger than Number.MAX_SAFE_INTEGER");return St.toNumber()}})(query);var queries={},graph={};Object.defineProperty(graph,"__esModule",{value:!0});graph.setupGraphExtension=void 0;const stargate_1$6=build$e,query_1$6=query$4;function setupGraphExtension(d){const b=(0,stargate_1$6.createProtobufRpcClient)(d),dt=new query_1$6.QueryClientImpl(b);return{graph:{graphStats:async()=>await dt.GraphStats({})}}}graph.setupGraphExtension=setupGraphExtension;var rank={};Object.defineProperty(rank,"__esModule",{value:!0});rank.setupRankExtension=rank.createPagination=void 0;const stargate_1$5=build$e,query_1$5=query$2;function createPagination(d,b){return d?{page:d,perPage:b||10}:{page:0,perPage:10}}rank.createPagination=createPagination;function setupRankExtension(d){const b=(0,stargate_1$5.createProtobufRpcClient)(d),dt=new query_1$5.QueryClientImpl(b);return{rank:{search:async(ct,lt,ht)=>await dt.Search({particle:ct,pagination:createPagination(lt,ht)}),backlinks:async(ct,lt,ht)=>await dt.Backlinks({particle:ct,pagination:createPagination(lt,ht)}),rank:async ct=>await dt.Rank({particle:ct}),karma:async ct=>await dt.Karma({neuron:ct}),isLinkExist:async(ct,lt,ht)=>await dt.IsLinkExist({from:ct,to:lt,address:ht}),isAnyLinkExist:async(ct,lt)=>await dt.IsAnyLinkExist({from:ct,to:lt}),negentropy:async()=>await dt.Negentropy({})}}}rank.setupRankExtension=setupRankExtension;var bandwidth={};Object.defineProperty(bandwidth,"__esModule",{value:!0});bandwidth.setupBandwidthExtension=void 0;const stargate_1$4=build$e,query_1$4=query$5;function setupBandwidthExtension(d){const b=(0,stargate_1$4.createProtobufRpcClient)(d),dt=new query_1$4.QueryClientImpl(b);return{bandwidth:{load:async()=>await dt.Load({}),price:async()=>await dt.Price({}),account:async ct=>await dt.NeuronBandwidth({neuron:ct})}}}bandwidth.setupBandwidthExtension=setupBandwidthExtension;var grid={};Object.defineProperty(grid,"__esModule",{value:!0});grid.setupGridExtension=void 0;const stargate_1$3=build$e,query_1$3=query$3;function setupGridExtension(d){const b=(0,stargate_1$3.createProtobufRpcClient)(d),dt=new query_1$3.QueryClientImpl(b);return{grid:{sourceRoutes:async ct=>await dt.SourceRoutes({source:ct}),destinationRoutes:async ct=>await dt.DestinationRoutes({destination:ct}),destinationRoutedEnergy:async ct=>await dt.DestinationRoutedEnergy({destination:ct}),sourceRoutedEnergy:async ct=>await dt.SourceRoutedEnergy({source:ct}),route:async(ct,lt)=>await dt.Route({source:ct,destination:lt}),routes:async()=>await dt.Routes({}),params:async()=>await dt.Params({})}}}grid.setupGridExtension=setupGridExtension;var liquidity={};Object.defineProperty(liquidity,"__esModule",{value:!0});liquidity.setupLiquidityExtension=void 0;const stargate_1$2=build$e,query_1$2=query;function setupLiquidityExtension(d){const b=(0,stargate_1$2.createProtobufRpcClient)(d),dt=new query_1$2.QueryClientImpl(b);return{liquidity:{params:async()=>await dt.Params({}),pool:async ct=>await dt.LiquidityPool({poolId:ct}),pools:async()=>await dt.LiquidityPools({pagination:void 0})}}}liquidity.setupLiquidityExtension=setupLiquidityExtension;var resources={};Object.defineProperty(resources,"__esModule",{value:!0});resources.setupResourcesExtension=void 0;const stargate_1$1=build$e,query_1$1=query$1;function setupResourcesExtension(d){const b=(0,stargate_1$1.createProtobufRpcClient)(d),dt=new query_1$1.QueryClientImpl(b);return{resources:{params:async()=>await dt.Params({})}}}resources.setupResourcesExtension=setupResourcesExtension;(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.setupResourcesExtension=d.setupLiquidityExtension=d.setupGridExtension=d.setupBandwidthExtension=d.setupRankExtension=d.setupGraphExtension=void 0;var b=graph;Object.defineProperty(d,"setupGraphExtension",{enumerable:!0,get:function(){return b.setupGraphExtension}});var dt=rank;Object.defineProperty(d,"setupRankExtension",{enumerable:!0,get:function(){return dt.setupRankExtension}});var ct=bandwidth;Object.defineProperty(d,"setupBandwidthExtension",{enumerable:!0,get:function(){return ct.setupBandwidthExtension}});var lt=grid;Object.defineProperty(d,"setupGridExtension",{enumerable:!0,get:function(){return lt.setupGridExtension}});var ht=liquidity;Object.defineProperty(d,"setupLiquidityExtension",{enumerable:!0,get:function(){return ht.setupLiquidityExtension}});var mt=resources;Object.defineProperty(d,"setupResourcesExtension",{enumerable:!0,get:function(){return mt.setupResourcesExtension}})})(queries);Object.defineProperty(cyberclient,"__esModule",{value:!0});cyberclient.CyberClient=void 0;const cosmwasm_stargate_1=build$h,encoding_1$1=build$j,math_1$1=build$f,stargate_1=build$e,tendermint_rpc_1=build$3,utils_1$1=build$9,query_1=query$8,query_2=query$7,query_3=query$6,types_1=types$7,query_4=query$5,query_5=query$4,query_6=query$3,query_7=query$2,query_8=query$1,query_9=query,index_1=queries;class CyberClient{static async connect(b){const dt=await tendermint_rpc_1.Tendermint34Client.connect(b);return new CyberClient(dt)}constructor(b){this.codesCache=new Map,b&&(this.tmClient=b,this.queryClient=stargate_1.QueryClient.withExtensions(b,stargate_1.setupAuthExtension,stargate_1.setupBankExtension,stargate_1.setupDistributionExtension,stargate_1.setupStakingExtension,index_1.setupGraphExtension,index_1.setupRankExtension,index_1.setupBandwidthExtension,index_1.setupGridExtension,cosmwasm_stargate_1.setupWasmExtension,index_1.setupLiquidityExtension,stargate_1.setupGovExtension,index_1.setupResourcesExtension,stargate_1.setupTxExtension,stargate_1.setupIbcExtension))}getTmClient(){return this.tmClient}forceGetTmClient(){if(!this.tmClient)throw new Error("Tendermint client not available. You cannot use online functionality in offline mode.");return this.tmClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw new Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){const dt=(await this.forceGetTmClient().status()).nodeInfo.network;if(!dt)throw new Error("Chain ID must not be empty");this.chainId=dt}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(b){try{const dt=await this.forceGetQueryClient().auth.account(b);return dt?(0,stargate_1.accountFromAny)(dt):null}catch(dt){if(/rpc error: code = NotFound/i.test(String(dt)))return null;throw dt}}async getSequence(b){const dt=await this.getAccount(b);if(!dt)throw new Error("Account does not exist on chain. Send some tokens there before trying to query sequence.");return{accountNumber:dt.accountNumber,sequence:dt.sequence}}async getBlock(b){const dt=await this.forceGetTmClient().block(b);return{id:(0,encoding_1$1.toHex)(dt.blockId.hash).toUpperCase(),header:{version:{block:new math_1$1.Uint53(dt.block.header.version.block).toString(),app:new math_1$1.Uint53(dt.block.header.version.app).toString()},height:dt.block.header.height,chainId:dt.block.header.chainId,time:(0,tendermint_rpc_1.toRfc3339WithNanoseconds)(dt.block.header.time)},txs:dt.block.txs}}async getBlockResults(b){return this.forceGetTmClient().blockResults(b)}async getBalance(b,dt){return this.forceGetQueryClient().bank.balance(b,dt)}async getAllBalances(b){return this.forceGetQueryClient().bank.allBalances(b)}async totalSupply(){return(await this.forceGetQueryClient().bank.totalSupply()).supply}async getTx(b){return(await this.txsQuery(`tx.hash='${b}'`))[0]??null}async searchTx(b,dt={}){const ct=dt.minHeight||0,lt=dt.maxHeight||Number.MAX_SAFE_INTEGER;if(lt=${ct} AND tx.height<=${lt}`}let mt;if((b==null?void 0:b.height)!==void 0)mt=b.height>=ct&&b.height<=lt?await this.txsQuery(`tx.height=${b.height}`):[];else if((b==null?void 0:b.sentFromOrTo)!==void 0){const kt=ht(`message.module='bank' AND transfer.sender='${b.sentFromOrTo}'`),Pt=ht(`message.module='bank' AND transfer.recipient='${b.sentFromOrTo}'`),[Jt,Zt]=await Promise.all([kt,Pt].map(nn=>this.txsQuery(nn))),Rt=Jt.map(nn=>nn.hash);mt=[...Jt,...Zt.filter(nn=>!Rt.includes(nn.hash))]}else if((b==null?void 0:b.tags)!==void 0){const kt=ht(b.tags.map(Pt=>`${Pt.key}='${Pt.value}'`).join(" AND "));mt=await this.txsQuery(kt)}else throw new Error("Unknown query type");return mt.filter(kt=>kt.height>=ct&&kt.height<=lt)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(b){const dt=await this.forceGetTmClient().broadcastTxSync({tx:b}),ct=(0,encoding_1$1.toHex)(dt.hash).toUpperCase();return{code:dt.code,height:0,rawLog:dt.log,transactionHash:ct,gasUsed:dt.gasUsed,gasWanted:dt.gasWanted,txIndex:0,events:[],msgResponses:[]}}async graphStats(){const b=await this.forceGetQueryClient().graph.graphStats();return query_5.QueryGraphStatsResponse.toJSON(b)}async search(b,dt,ct){const lt=await this.forceGetQueryClient().rank.search(b,dt,ct);return query_7.QuerySearchResponse.toJSON(lt)}async backlinks(b,dt,ct){const lt=await this.forceGetQueryClient().rank.backlinks(b,dt,ct);return query_7.QuerySearchResponse.toJSON(lt)}async rank(b){const dt=await this.forceGetQueryClient().rank.rank(b);return query_7.QueryRankResponse.toJSON(dt)}async karma(b){const dt=await this.forceGetQueryClient().rank.karma(b);return query_7.QueryKarmaResponse.toJSON(dt)}async isLinkExist(b,dt,ct){const lt=await this.forceGetQueryClient().rank.isLinkExist(b,dt,ct);return query_7.QueryLinkExistResponse.toJSON(lt)}async isAnyLinkExist(b,dt){const ct=await this.forceGetQueryClient().rank.isAnyLinkExist(b,dt);return query_7.QueryLinkExistResponse.toJSON(ct)}async negentropy(){const b=await this.forceGetQueryClient().rank.negentropy();return query_7.QueryNegentropyResponse.toJSON(b)}async load(){const b=await this.forceGetQueryClient().bandwidth.load();return query_4.QueryLoadResponse.toJSON(b)}async price(){const b=await this.forceGetQueryClient().bandwidth.price();return query_4.QueryPriceResponse.toJSON(b)}async accountBandwidth(b){const dt=await this.forceGetQueryClient().bandwidth.account(b);return query_4.QueryNeuronBandwidthResponse.toJSON(dt)}async delegation(b,dt){const ct=await this.forceGetQueryClient().staking.delegation(b,dt);return query_3.QueryDelegationResponse.toJSON(ct)}async delegatorDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorDelegations(b,dt);return query_3.QueryDelegatorDelegationsResponse.toJSON(ct)}async delegatorUnbondingDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorUnbondingDelegations(b,dt);return query_3.QueryDelegatorUnbondingDelegationsResponse.toJSON(ct)}async delegatorValidator(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorValidator(b,dt);return query_3.QueryDelegatorValidatorResponse.toJSON(ct)}async delegatorValidators(b,dt){const ct=await this.forceGetQueryClient().staking.delegatorValidators(b,dt);return query_3.QueryDelegatorValidatorsResponse.toJSON(ct)}async historicalInfo(b){const dt=await this.forceGetQueryClient().staking.historicalInfo(b);return query_3.QueryHistoricalInfoResponse.toJSON(dt)}async stakingParams(){const b=await this.forceGetQueryClient().staking.params();return query_3.QueryParamsResponse.toJSON(b)}async stakingPool(){const b=await this.forceGetQueryClient().staking.pool();return query_3.QueryPoolResponse.toJSON(b)}async redelegations(b,dt,ct,lt){const ht=await this.forceGetQueryClient().staking.redelegations(b,dt,ct,lt);return query_3.QueryRedelegationsResponse.toJSON(ht)}async unbondingDelegation(b,dt){const ct=await this.forceGetQueryClient().staking.unbondingDelegation(b,dt);return query_3.QueryUnbondingDelegationResponse.toJSON(ct)}async validator(b){const dt=await this.forceGetQueryClient().staking.validator(b);return query_3.QueryValidatorResponse.toJSON(dt)}async validatorDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.validatorDelegations(b,dt);return query_3.QueryValidatorDelegationsResponse.toJSON(ct)}async validators(b,dt){const ct=await this.forceGetQueryClient().staking.validators(b,dt);return query_3.QueryValidatorsResponse.toJSON(ct)}async validatorUnbondingDelegations(b,dt){const ct=await this.forceGetQueryClient().staking.validatorUnbondingDelegations(b,dt);return query_3.QueryValidatorUnbondingDelegationsResponse.toJSON(ct)}async communityPool(){const b=await this.forceGetQueryClient().distribution.communityPool();return query_1.QueryCommunityPoolResponse.toJSON(b)}async delegationRewards(b,dt){const ct=await this.forceGetQueryClient().distribution.delegationRewards(b,dt);return query_1.QueryDelegationRewardsResponse.toJSON(ct)}async delegationTotalRewards(b){const dt=await this.forceGetQueryClient().distribution.delegationTotalRewards(b);return query_1.QueryDelegationTotalRewardsResponse.toJSON(dt)}async delegatorValidatorsDistribution(b){const dt=await this.forceGetQueryClient().distribution.delegatorValidators(b);return query_1.QueryDelegatorValidatorsResponse.toJSON(dt)}async delegatorWithdrawAddress(b){const dt=await this.forceGetQueryClient().distribution.delegatorWithdrawAddress(b);return query_1.QueryDelegatorWithdrawAddressResponse.toJSON(dt)}async distributionParams(){const b=await this.forceGetQueryClient().distribution.params();return query_1.QueryParamsResponse.toJSON(b)}async validatorCommission(b){const dt=await this.forceGetQueryClient().distribution.validatorCommission(b);return query_1.QueryValidatorCommissionResponse.toJSON(dt)}async validatorOutstandingRewards(b){const dt=await this.forceGetQueryClient().distribution.validatorOutstandingRewards(b);return query_1.QueryValidatorOutstandingRewardsResponse.toJSON(dt)}async validatorSlashes(b,dt,ct,lt){const ht=await this.forceGetQueryClient().distribution.validatorSlashes(b,dt,ct,lt);return query_1.QueryValidatorSlashesResponse.toJSON(ht)}async sourceRoutes(b){const dt=await this.forceGetQueryClient().grid.sourceRoutes(b);return query_6.QueryRoutesResponse.toJSON(dt)}async destinationRoutes(b){const dt=await this.forceGetQueryClient().grid.destinationRoutes(b);return query_6.QueryRoutesResponse.toJSON(dt)}async destinationRoutedEnergy(b){const dt=await this.forceGetQueryClient().grid.destinationRoutedEnergy(b);return query_6.QueryRoutedEnergyResponse.toJSON(dt)}async sourceRoutedEnergy(b){const dt=await this.forceGetQueryClient().grid.sourceRoutedEnergy(b);return query_6.QueryRoutedEnergyResponse.toJSON(dt)}async route(b,dt){const ct=await this.forceGetQueryClient().grid.route(b,dt);return query_6.QueryRouteResponse.toJSON(ct)}async routes(){const b=await this.forceGetQueryClient().grid.routes();return query_6.QueryRoutesResponse.toJSON(b)}async energyParams(){const b=await this.forceGetQueryClient().grid.params();return query_6.QueryParamsResponse.toJSON(b)}async resourcesParams(){const b=await this.forceGetQueryClient().resources.params();return query_8.QueryParamsResponse.toJSON(b)}async liquidityParams(){const b=await this.forceGetQueryClient().liquidity.params();return query_9.QueryParamsResponse.toJSON(b)}async pool(b){const dt=await this.forceGetQueryClient().liquidity.pool(b);return query_9.QueryLiquidityPoolResponse.toJSON(dt)}async pools(){const b=await this.forceGetQueryClient().liquidity.pools();return query_9.QueryLiquidityPoolsResponse.toJSON(b)}async govParams(b){const dt=await this.forceGetQueryClient().gov.params(b);return query_2.QueryParamsResponse.toJSON(dt)}async proposals(b,dt,ct,lt){const ht=await this.forceGetQueryClient().gov.proposals(b,dt,ct,lt);return query_2.QueryProposalsResponse.toJSON(ht)}async proposal(b){const dt=await this.forceGetQueryClient().gov.proposal(b);return query_2.QueryProposalResponse.toJSON(dt)}async deposits(b){const dt=await this.forceGetQueryClient().gov.deposits(b);return query_2.QueryDepositsResponse.toJSON(dt)}async deposit(b,dt){const ct=await this.forceGetQueryClient().gov.deposit(b,dt);return query_2.QueryDepositResponse.toJSON(ct)}async tally(b){const dt=await this.forceGetQueryClient().gov.tally(b);return query_2.QueryTallyResultResponse.toJSON(dt)}async votes(b){const dt=await this.forceGetQueryClient().gov.votes(b);return query_2.QueryVotesResponse.toJSON(dt)}async vote(b,dt){const ct=await this.forceGetQueryClient().gov.vote(b,dt);return query_2.QueryVoteResponse.toJSON(ct)}async getCodes(){const b=[];let dt;do{const{codeInfos:ct,pagination:lt}=await this.forceGetQueryClient().wasm.listCodeInfo(dt),ht=ct||[];b.push(...ht),dt=lt==null?void 0:lt.nextKey}while((dt==null?void 0:dt.length)!==0);return b.map(ct=>((0,utils_1$1.assert)(ct.creator&&ct.codeId&&ct.dataHash,"entry incomplete"),{id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$1.toHex)(ct.dataHash)}))}async getCodeDetails(b){const dt=this.codesCache.get(b);if(dt)return dt;const{codeInfo:ct,data:lt}=await this.forceGetQueryClient().wasm.getCode(b);(0,utils_1$1.assert)(ct&&ct.codeId&&ct.creator&&ct.dataHash&<,"codeInfo missing or incomplete");const ht={id:ct.codeId.toNumber(),creator:ct.creator,checksum:(0,encoding_1$1.toHex)(ct.dataHash),data:lt};return this.codesCache.set(b,ht),ht}async getContracts(b){const dt=[];let ct;do{const{contracts:lt,pagination:ht}=await this.forceGetQueryClient().wasm.listContractsByCodeId(b,ct),mt=lt||[];dt.push(...mt),ct=ht==null?void 0:ht.nextKey}while((ct==null?void 0:ct.length)!==0&&ct!==void 0);return dt}async allDenomTraces(){return await this.forceGetQueryClient().ibc.transfer.allDenomTraces()}async denomTrace(b){return await this.forceGetQueryClient().ibc.transfer.denomTrace(b)}async getContract(b){const{address:dt,contractInfo:ct}=await this.forceGetQueryClient().wasm.getContractInfo(b);if(!ct)throw new Error(`No contract found at address "${b}"`);return(0,utils_1$1.assert)(dt,"address missing"),(0,utils_1$1.assert)(ct.codeId&&ct.creator&&ct.label,"contractInfo incomplete"),{address:dt,codeId:ct.codeId.toNumber(),creator:ct.creator,admin:ct.admin||void 0,label:ct.label,ibcPortId:ct.ibcPortId||void 0}}async getContractCodeHistory(b){const dt=await this.forceGetQueryClient().wasm.getContractCodeHistory(b);if(!dt)throw new Error(`No contract history found for address "${b}"`);const ct={[types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT]:"Init",[types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS]:"Genesis",[types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE]:"Migrate"};return(dt.entries||[]).map(lt=>((0,utils_1$1.assert)(lt.operation&<.codeId&<.msg),{operation:ct[lt.operation],codeId:lt.codeId.toNumber(),msg:JSON.parse((0,encoding_1$1.fromAscii)(lt.msg))}))}async queryContractRaw(b,dt){await this.getContract(b);const{data:ct}=await this.forceGetQueryClient().wasm.queryContractRaw(b,dt);return ct??null}async queryContractSmart(b,dt){try{return await this.forceGetQueryClient().wasm.queryContractSmart(b,dt)}catch(ct){throw ct instanceof Error&&ct.message.startsWith("not found: contract")?new Error(`No contract found at address "${b}"`):ct}}async txsQuery(b){return(await this.forceGetTmClient().txSearchAll({query:b})).txs.map(ct=>({height:ct.height,hash:(0,encoding_1$1.toHex)(ct.hash).toUpperCase(),code:ct.result.code,rawLog:ct.result.log||"",tx:ct.tx,gasUsed:ct.result.gasUsed,gasWanted:ct.result.gasWanted,txIndex:ct.index,events:[],msgResponses:[]}))}}cyberclient.CyberClient=CyberClient;var signingcyberclient={},tx$b={},authz={},__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding$1(b,d,dt);return __setModuleDefault$1(b,d),b};Object.defineProperty(authz,"__esModule",{value:!0});authz.GrantAuthorization=authz.Grant=authz.GenericAuthorization=authz.protobufPackage=void 0;const any_1=any,timestamp_1=timestamp,_m0$1=__importStar$1(minimal$2),helpers_1$1=helpers;authz.protobufPackage="cosmos.authz.v1beta1";function createBaseGenericAuthorization(){return{msg:""}}authz.GenericAuthorization={encode(d,b=_m0$1.Writer.create()){return d.msg!==""&&b.uint32(10).string(d.msg),b},decode(d,b){const dt=d instanceof _m0$1.Reader?d:new _m0$1.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGenericAuthorization();for(;dt.pos>>3){case 1:lt.msg=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{msg:(0,helpers_1$1.isSet)(d.msg)?String(d.msg):""}},toJSON(d){const b={};return d.msg!==void 0&&(b.msg=d.msg),b},fromPartial(d){const b=createBaseGenericAuthorization();return b.msg=d.msg??"",b}};function createBaseGrant(){return{authorization:void 0,expiration:void 0}}authz.Grant={encode(d,b=_m0$1.Writer.create()){return d.authorization!==void 0&&any_1.Any.encode(d.authorization,b.uint32(10).fork()).ldelim(),d.expiration!==void 0&×tamp_1.Timestamp.encode(d.expiration,b.uint32(18).fork()).ldelim(),b},decode(d,b){const dt=d instanceof _m0$1.Reader?d:new _m0$1.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGrant();for(;dt.pos>>3){case 1:lt.authorization=any_1.Any.decode(dt,dt.uint32());break;case 2:lt.expiration=timestamp_1.Timestamp.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{authorization:(0,helpers_1$1.isSet)(d.authorization)?any_1.Any.fromJSON(d.authorization):void 0,expiration:(0,helpers_1$1.isSet)(d.expiration)?(0,helpers_1$1.fromJsonTimestamp)(d.expiration):void 0}},toJSON(d){const b={};return d.authorization!==void 0&&(b.authorization=d.authorization?any_1.Any.toJSON(d.authorization):void 0),d.expiration!==void 0&&(b.expiration=(0,helpers_1$1.fromTimestamp)(d.expiration).toISOString()),b},fromPartial(d){const b=createBaseGrant();return b.authorization=d.authorization!==void 0&&d.authorization!==null?any_1.Any.fromPartial(d.authorization):void 0,b.expiration=d.expiration!==void 0&&d.expiration!==null?timestamp_1.Timestamp.fromPartial(d.expiration):void 0,b}};function createBaseGrantAuthorization(){return{granter:"",grantee:"",authorization:void 0,expiration:void 0}}authz.GrantAuthorization={encode(d,b=_m0$1.Writer.create()){return d.granter!==""&&b.uint32(10).string(d.granter),d.grantee!==""&&b.uint32(18).string(d.grantee),d.authorization!==void 0&&any_1.Any.encode(d.authorization,b.uint32(26).fork()).ldelim(),d.expiration!==void 0&×tamp_1.Timestamp.encode(d.expiration,b.uint32(34).fork()).ldelim(),b},decode(d,b){const dt=d instanceof _m0$1.Reader?d:new _m0$1.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseGrantAuthorization();for(;dt.pos>>3){case 1:lt.granter=dt.string();break;case 2:lt.grantee=dt.string();break;case 3:lt.authorization=any_1.Any.decode(dt,dt.uint32());break;case 4:lt.expiration=timestamp_1.Timestamp.decode(dt,dt.uint32());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{granter:(0,helpers_1$1.isSet)(d.granter)?String(d.granter):"",grantee:(0,helpers_1$1.isSet)(d.grantee)?String(d.grantee):"",authorization:(0,helpers_1$1.isSet)(d.authorization)?any_1.Any.fromJSON(d.authorization):void 0,expiration:(0,helpers_1$1.isSet)(d.expiration)?(0,helpers_1$1.fromJsonTimestamp)(d.expiration):void 0}},toJSON(d){const b={};return d.granter!==void 0&&(b.granter=d.granter),d.grantee!==void 0&&(b.grantee=d.grantee),d.authorization!==void 0&&(b.authorization=d.authorization?any_1.Any.toJSON(d.authorization):void 0),d.expiration!==void 0&&(b.expiration=(0,helpers_1$1.fromTimestamp)(d.expiration).toISOString()),b},fromPartial(d){const b=createBaseGrantAuthorization();return b.granter=d.granter??"",b.grantee=d.grantee??"",b.authorization=d.authorization!==void 0&&d.authorization!==null?any_1.Any.fromPartial(d.authorization):void 0,b.expiration=d.expiration!==void 0&&d.expiration!==null?timestamp_1.Timestamp.fromPartial(d.expiration):void 0,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgRevokeResponse=d.MsgRevoke=d.MsgGrantResponse=d.MsgExec=d.MsgExecResponse=d.MsgGrant=d.protobufPackage=void 0;const lt=authz,ht=any,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.authz.v1beta1";function kt(){return{granter:"",grantee:"",grant:void 0}}d.MsgGrant={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),wt.grant!==void 0&<.Grant.encode(wt.grant,Nt.uint32(26).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;case 3:Bt.grant=lt.Grant.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",grant:(0,vt.isSet)(wt.grant)?lt.Grant.fromJSON(wt.grant):void 0}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.grant!==void 0&&(Nt.grant=wt.grant?lt.Grant.toJSON(wt.grant):void 0),Nt},fromPartial(wt){const Nt=kt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt.grant=wt.grant!==void 0&&wt.grant!==null?lt.Grant.fromPartial(wt.grant):void 0,Nt}};function Pt(){return{results:[]}}d.MsgExecResponse={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.results)Nt.uint32(10).bytes(xt);return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.results.push(xt.bytes());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{results:Array.isArray(wt==null?void 0:wt.results)?wt.results.map(Nt=>(0,vt.bytesFromBase64)(Nt)):[]}},toJSON(wt){const Nt={};return wt.results?Nt.results=wt.results.map(xt=>(0,vt.base64FromBytes)(xt!==void 0?xt:new Uint8Array)):Nt.results=[],Nt},fromPartial(wt){var xt;const Nt=Pt();return Nt.results=((xt=wt.results)==null?void 0:xt.map(Et=>Et))||[],Nt}};function Jt(){return{grantee:"",msgs:[]}}d.MsgExec={encode(wt,Nt=mt.Writer.create()){wt.grantee!==""&&Nt.uint32(10).string(wt.grantee);for(const xt of wt.msgs)ht.Any.encode(xt,Nt.uint32(18).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.grantee=xt.string();break;case 2:Bt.msgs.push(ht.Any.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",msgs:Array.isArray(wt==null?void 0:wt.msgs)?wt.msgs.map(Nt=>ht.Any.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.msgs?Nt.msgs=wt.msgs.map(xt=>xt?ht.Any.toJSON(xt):void 0):Nt.msgs=[],Nt},fromPartial(wt){var xt;const Nt=Jt();return Nt.grantee=wt.grantee??"",Nt.msgs=((xt=wt.msgs)==null?void 0:xt.map(Et=>ht.Any.fromPartial(Et)))||[],Nt}};function Zt(){return{}}d.MsgGrantResponse={encode(wt,Nt=mt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Zt()}};function Rt(){return{granter:"",grantee:"",msgTypeUrl:""}}d.MsgRevoke={encode(wt,Nt=mt.Writer.create()){return wt.granter!==""&&Nt.uint32(10).string(wt.granter),wt.grantee!==""&&Nt.uint32(18).string(wt.grantee),wt.msgTypeUrl!==""&&Nt.uint32(26).string(wt.msgTypeUrl),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.granter=xt.string();break;case 2:Bt.grantee=xt.string();break;case 3:Bt.msgTypeUrl=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{granter:(0,vt.isSet)(wt.granter)?String(wt.granter):"",grantee:(0,vt.isSet)(wt.grantee)?String(wt.grantee):"",msgTypeUrl:(0,vt.isSet)(wt.msgTypeUrl)?String(wt.msgTypeUrl):""}},toJSON(wt){const Nt={};return wt.granter!==void 0&&(Nt.granter=wt.granter),wt.grantee!==void 0&&(Nt.grantee=wt.grantee),wt.msgTypeUrl!==void 0&&(Nt.msgTypeUrl=wt.msgTypeUrl),Nt},fromPartial(wt){const Nt=Rt();return Nt.granter=wt.granter??"",Nt.grantee=wt.grantee??"",Nt.msgTypeUrl=wt.msgTypeUrl??"",Nt}};function nn(){return{}}d.MsgRevokeResponse={encode(wt,Nt=mt.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return nn()}};class Qt{constructor(Nt){this.rpc=Nt,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(Nt){const xt=d.MsgGrant.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",xt).then(Bt=>d.MsgGrantResponse.decode(new mt.Reader(Bt)))}Exec(Nt){const xt=d.MsgExec.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",xt).then(Bt=>d.MsgExecResponse.decode(new mt.Reader(Bt)))}Revoke(Nt){const xt=d.MsgRevoke.encode(Nt).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",xt).then(Bt=>d.MsgRevokeResponse.decode(new mt.Reader(Bt)))}}d.MsgClientImpl=Qt})(tx$b);var tx$a={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et);var Tt=Object.getOwnPropertyDescriptor(xt,Et);(!Tt||("get"in Tt?!xt.__esModule:Tt.writable||Tt.configurable))&&(Tt={enumerable:!0,get:function(){return xt[Et]}}),Object.defineProperty(Nt,Bt,Tt)}:function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et),Nt[Bt]=xt[Et]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,xt){Object.defineProperty(Nt,"default",{enumerable:!0,value:xt})}:function(Nt,xt){Nt.default=xt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var xt={};if(Nt!=null)for(var Et in Nt)Et!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Et)&&b(xt,Nt,Et);return dt(xt,Nt),xt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgFundCommunityPoolResponse=d.MsgFundCommunityPool=d.MsgWithdrawValidatorCommissionResponse=d.MsgWithdrawValidatorCommission=d.MsgWithdrawDelegatorRewardResponse=d.MsgWithdrawDelegatorReward=d.MsgSetWithdrawAddressResponse=d.MsgSetWithdrawAddress=d.protobufPackage=void 0;const lt=coin$1,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmos.distribution.v1beta1";function vt(){return{delegatorAddress:"",withdrawAddress:""}}d.MsgSetWithdrawAddress={encode(Nt,xt=ht.Writer.create()){return Nt.delegatorAddress!==""&&xt.uint32(10).string(Nt.delegatorAddress),Nt.withdrawAddress!==""&&xt.uint32(18).string(Nt.withdrawAddress),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=vt();for(;Et.pos>>3){case 1:Tt.delegatorAddress=Et.string();break;case 2:Tt.withdrawAddress=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{delegatorAddress:(0,mt.isSet)(Nt.delegatorAddress)?String(Nt.delegatorAddress):"",withdrawAddress:(0,mt.isSet)(Nt.withdrawAddress)?String(Nt.withdrawAddress):""}},toJSON(Nt){const xt={};return Nt.delegatorAddress!==void 0&&(xt.delegatorAddress=Nt.delegatorAddress),Nt.withdrawAddress!==void 0&&(xt.withdrawAddress=Nt.withdrawAddress),xt},fromPartial(Nt){const xt=vt();return xt.delegatorAddress=Nt.delegatorAddress??"",xt.withdrawAddress=Nt.withdrawAddress??"",xt}};function kt(){return{}}d.MsgSetWithdrawAddressResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=kt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return kt()}};function Pt(){return{delegatorAddress:"",validatorAddress:""}}d.MsgWithdrawDelegatorReward={encode(Nt,xt=ht.Writer.create()){return Nt.delegatorAddress!==""&&xt.uint32(10).string(Nt.delegatorAddress),Nt.validatorAddress!==""&&xt.uint32(18).string(Nt.validatorAddress),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Pt();for(;Et.pos>>3){case 1:Tt.delegatorAddress=Et.string();break;case 2:Tt.validatorAddress=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{delegatorAddress:(0,mt.isSet)(Nt.delegatorAddress)?String(Nt.delegatorAddress):"",validatorAddress:(0,mt.isSet)(Nt.validatorAddress)?String(Nt.validatorAddress):""}},toJSON(Nt){const xt={};return Nt.delegatorAddress!==void 0&&(xt.delegatorAddress=Nt.delegatorAddress),Nt.validatorAddress!==void 0&&(xt.validatorAddress=Nt.validatorAddress),xt},fromPartial(Nt){const xt=Pt();return xt.delegatorAddress=Nt.delegatorAddress??"",xt.validatorAddress=Nt.validatorAddress??"",xt}};function Jt(){return{}}d.MsgWithdrawDelegatorRewardResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Jt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Jt()}};function Zt(){return{validatorAddress:""}}d.MsgWithdrawValidatorCommission={encode(Nt,xt=ht.Writer.create()){return Nt.validatorAddress!==""&&xt.uint32(10).string(Nt.validatorAddress),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Zt();for(;Et.pos>>3){case 1:Tt.validatorAddress=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{validatorAddress:(0,mt.isSet)(Nt.validatorAddress)?String(Nt.validatorAddress):""}},toJSON(Nt){const xt={};return Nt.validatorAddress!==void 0&&(xt.validatorAddress=Nt.validatorAddress),xt},fromPartial(Nt){const xt=Zt();return xt.validatorAddress=Nt.validatorAddress??"",xt}};function Rt(){return{}}d.MsgWithdrawValidatorCommissionResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Rt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Rt()}};function nn(){return{amount:[],depositor:""}}d.MsgFundCommunityPool={encode(Nt,xt=ht.Writer.create()){for(const Et of Nt.amount)lt.Coin.encode(Et,xt.uint32(10).fork()).ldelim();return Nt.depositor!==""&&xt.uint32(18).string(Nt.depositor),xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=nn();for(;Et.pos>>3){case 1:Tt.amount.push(lt.Coin.decode(Et,Et.uint32()));break;case 2:Tt.depositor=Et.string();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{amount:Array.isArray(Nt==null?void 0:Nt.amount)?Nt.amount.map(xt=>lt.Coin.fromJSON(xt)):[],depositor:(0,mt.isSet)(Nt.depositor)?String(Nt.depositor):""}},toJSON(Nt){const xt={};return Nt.amount?xt.amount=Nt.amount.map(Et=>Et?lt.Coin.toJSON(Et):void 0):xt.amount=[],Nt.depositor!==void 0&&(xt.depositor=Nt.depositor),xt},fromPartial(Nt){var Et;const xt=nn();return xt.amount=((Et=Nt.amount)==null?void 0:Et.map(Bt=>lt.Coin.fromPartial(Bt)))||[],xt.depositor=Nt.depositor??"",xt}};function Qt(){return{}}d.MsgFundCommunityPoolResponse={encode(Nt,xt=ht.Writer.create()){return xt},decode(Nt,xt){const Et=Nt instanceof ht.Reader?Nt:new ht.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Qt();for(;Et.pos>>3){default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return Qt()}};class wt{constructor(xt){this.rpc=xt,this.SetWithdrawAddress=this.SetWithdrawAddress.bind(this),this.WithdrawDelegatorReward=this.WithdrawDelegatorReward.bind(this),this.WithdrawValidatorCommission=this.WithdrawValidatorCommission.bind(this),this.FundCommunityPool=this.FundCommunityPool.bind(this)}SetWithdrawAddress(xt){const Et=d.MsgSetWithdrawAddress.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",Et).then(Tt=>d.MsgSetWithdrawAddressResponse.decode(new ht.Reader(Tt)))}WithdrawDelegatorReward(xt){const Et=d.MsgWithdrawDelegatorReward.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",Et).then(Tt=>d.MsgWithdrawDelegatorRewardResponse.decode(new ht.Reader(Tt)))}WithdrawValidatorCommission(xt){const Et=d.MsgWithdrawValidatorCommission.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",Et).then(Tt=>d.MsgWithdrawValidatorCommissionResponse.decode(new ht.Reader(Tt)))}FundCommunityPool(xt){const Et=d.MsgFundCommunityPool.encode(xt).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",Et).then(Tt=>d.MsgFundCommunityPoolResponse.decode(new ht.Reader(Tt)))}}d.MsgClientImpl=wt})(tx$a);var tx$9={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt);var jt=Object.getOwnPropertyDescriptor(Bt,Tt);(!jt||("get"in jt?!Bt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Bt[Tt]}}),Object.defineProperty(Et,Mt,jt)}:function(Et,Bt,Tt,Mt){Mt===void 0&&(Mt=Tt),Et[Mt]=Bt[Tt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Et,Bt){Object.defineProperty(Et,"default",{enumerable:!0,value:Bt})}:function(Et,Bt){Et.default=Bt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Et){if(Et&&Et.__esModule)return Et;var Bt={};if(Et!=null)for(var Tt in Et)Tt!=="default"&&Object.prototype.hasOwnProperty.call(Et,Tt)&&b(Bt,Et,Tt);return dt(Bt,Et),Bt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgDepositResponse=d.MsgDeposit=d.MsgVoteWeightedResponse=d.MsgVoteWeighted=d.MsgVoteResponse=d.MsgVote=d.MsgSubmitProposalResponse=d.MsgSubmitProposal=d.protobufPackage=void 0;const lt=any,ht=coin$1,mt=gov,vt=ct(minimal$2),kt=helpers;d.protobufPackage="cosmos.gov.v1beta1";function Pt(){return{content:void 0,initialDeposit:[],proposer:""}}d.MsgSubmitProposal={encode(Et,Bt=vt.Writer.create()){Et.content!==void 0&<.Any.encode(Et.content,Bt.uint32(10).fork()).ldelim();for(const Tt of Et.initialDeposit)ht.Coin.encode(Tt,Bt.uint32(18).fork()).ldelim();return Et.proposer!==""&&Bt.uint32(26).string(Et.proposer),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Pt();for(;Tt.pos>>3){case 1:jt.content=lt.Any.decode(Tt,Tt.uint32());break;case 2:jt.initialDeposit.push(ht.Coin.decode(Tt,Tt.uint32()));break;case 3:jt.proposer=Tt.string();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{content:(0,kt.isSet)(Et.content)?lt.Any.fromJSON(Et.content):void 0,initialDeposit:Array.isArray(Et==null?void 0:Et.initialDeposit)?Et.initialDeposit.map(Bt=>ht.Coin.fromJSON(Bt)):[],proposer:(0,kt.isSet)(Et.proposer)?String(Et.proposer):""}},toJSON(Et){const Bt={};return Et.content!==void 0&&(Bt.content=Et.content?lt.Any.toJSON(Et.content):void 0),Et.initialDeposit?Bt.initialDeposit=Et.initialDeposit.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.initialDeposit=[],Et.proposer!==void 0&&(Bt.proposer=Et.proposer),Bt},fromPartial(Et){var Tt;const Bt=Pt();return Bt.content=Et.content!==void 0&&Et.content!==null?lt.Any.fromPartial(Et.content):void 0,Bt.initialDeposit=((Tt=Et.initialDeposit)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt.proposer=Et.proposer??"",Bt}};function Jt(){return{proposalId:kt.Long.UZERO}}d.MsgSubmitProposalResponse={encode(Et,Bt=vt.Writer.create()){return Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Jt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Bt},fromPartial(Et){const Bt=Jt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt}};function Zt(){return{proposalId:kt.Long.UZERO,voter:"",option:0}}d.MsgVote={encode(Et,Bt=vt.Writer.create()){return Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.voter!==""&&Bt.uint32(18).string(Et.voter),Et.option!==0&&Bt.uint32(24).int32(Et.option),Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Zt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.voter=Tt.string();break;case 3:jt.option=Tt.int32();break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,voter:(0,kt.isSet)(Et.voter)?String(Et.voter):"",option:(0,kt.isSet)(Et.option)?(0,mt.voteOptionFromJSON)(Et.option):0}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Et.voter!==void 0&&(Bt.voter=Et.voter),Et.option!==void 0&&(Bt.option=(0,mt.voteOptionToJSON)(Et.option)),Bt},fromPartial(Et){const Bt=Zt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt.voter=Et.voter??"",Bt.option=Et.option??0,Bt}};function Rt(){return{}}d.MsgVoteResponse={encode(Et,Bt=vt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Rt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Rt()}};function nn(){return{proposalId:kt.Long.UZERO,voter:"",options:[]}}d.MsgVoteWeighted={encode(Et,Bt=vt.Writer.create()){Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.voter!==""&&Bt.uint32(18).string(Et.voter);for(const Tt of Et.options)mt.WeightedVoteOption.encode(Tt,Bt.uint32(26).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=nn();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.voter=Tt.string();break;case 3:jt.options.push(mt.WeightedVoteOption.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,voter:(0,kt.isSet)(Et.voter)?String(Et.voter):"",options:Array.isArray(Et==null?void 0:Et.options)?Et.options.map(Bt=>mt.WeightedVoteOption.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Et.voter!==void 0&&(Bt.voter=Et.voter),Et.options?Bt.options=Et.options.map(Tt=>Tt?mt.WeightedVoteOption.toJSON(Tt):void 0):Bt.options=[],Bt},fromPartial(Et){var Tt;const Bt=nn();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt.voter=Et.voter??"",Bt.options=((Tt=Et.options)==null?void 0:Tt.map(Mt=>mt.WeightedVoteOption.fromPartial(Mt)))||[],Bt}};function Qt(){return{}}d.MsgVoteWeightedResponse={encode(Et,Bt=vt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Qt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Qt()}};function wt(){return{proposalId:kt.Long.UZERO,depositor:"",amount:[]}}d.MsgDeposit={encode(Et,Bt=vt.Writer.create()){Et.proposalId.isZero()||Bt.uint32(8).uint64(Et.proposalId),Et.depositor!==""&&Bt.uint32(18).string(Et.depositor);for(const Tt of Et.amount)ht.Coin.encode(Tt,Bt.uint32(26).fork()).ldelim();return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=wt();for(;Tt.pos>>3){case 1:jt.proposalId=Tt.uint64();break;case 2:jt.depositor=Tt.string();break;case 3:jt.amount.push(ht.Coin.decode(Tt,Tt.uint32()));break;default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{proposalId:(0,kt.isSet)(Et.proposalId)?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,depositor:(0,kt.isSet)(Et.depositor)?String(Et.depositor):"",amount:Array.isArray(Et==null?void 0:Et.amount)?Et.amount.map(Bt=>ht.Coin.fromJSON(Bt)):[]}},toJSON(Et){const Bt={};return Et.proposalId!==void 0&&(Bt.proposalId=(Et.proposalId||kt.Long.UZERO).toString()),Et.depositor!==void 0&&(Bt.depositor=Et.depositor),Et.amount?Bt.amount=Et.amount.map(Tt=>Tt?ht.Coin.toJSON(Tt):void 0):Bt.amount=[],Bt},fromPartial(Et){var Tt;const Bt=wt();return Bt.proposalId=Et.proposalId!==void 0&&Et.proposalId!==null?kt.Long.fromValue(Et.proposalId):kt.Long.UZERO,Bt.depositor=Et.depositor??"",Bt.amount=((Tt=Et.amount)==null?void 0:Tt.map(Mt=>ht.Coin.fromPartial(Mt)))||[],Bt}};function Nt(){return{}}d.MsgDepositResponse={encode(Et,Bt=vt.Writer.create()){return Bt},decode(Et,Bt){const Tt=Et instanceof vt.Reader?Et:new vt.Reader(Et);let Mt=Bt===void 0?Tt.len:Tt.pos+Bt;const jt=Nt();for(;Tt.pos>>3){default:Tt.skipType(Ht&7);break}}return jt},fromJSON(Et){return{}},toJSON(Et){return{}},fromPartial(Et){return Nt()}};class xt{constructor(Bt){this.rpc=Bt,this.SubmitProposal=this.SubmitProposal.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this)}SubmitProposal(Bt){const Tt=d.MsgSubmitProposal.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",Tt).then(jt=>d.MsgSubmitProposalResponse.decode(new vt.Reader(jt)))}Vote(Bt){const Tt=d.MsgVote.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",Tt).then(jt=>d.MsgVoteResponse.decode(new vt.Reader(jt)))}VoteWeighted(Bt){const Tt=d.MsgVoteWeighted.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",Tt).then(jt=>d.MsgVoteWeightedResponse.decode(new vt.Reader(jt)))}Deposit(Bt){const Tt=d.MsgDeposit.encode(Bt).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",Tt).then(jt=>d.MsgDepositResponse.decode(new vt.Reader(jt)))}}d.MsgClientImpl=xt})(tx$9);var tx$8={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,jt,Ht,an){an===void 0&&(an=Ht);var yt=Object.getOwnPropertyDescriptor(jt,Ht);(!yt||("get"in yt?!jt.__esModule:yt.writable||yt.configurable))&&(yt={enumerable:!0,get:function(){return jt[Ht]}}),Object.defineProperty(Mt,an,yt)}:function(Mt,jt,Ht,an){an===void 0&&(an=Ht),Mt[an]=jt[Ht]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,jt){Object.defineProperty(Mt,"default",{enumerable:!0,value:jt})}:function(Mt,jt){Mt.default=jt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var jt={};if(Mt!=null)for(var Ht in Mt)Ht!=="default"&&Object.prototype.hasOwnProperty.call(Mt,Ht)&&b(jt,Mt,Ht);return dt(jt,Mt),jt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUndelegateResponse=d.MsgUndelegate=d.MsgBeginRedelegateResponse=d.MsgBeginRedelegate=d.MsgDelegateResponse=d.MsgDelegate=d.MsgEditValidatorResponse=d.MsgEditValidator=d.MsgCreateValidatorResponse=d.MsgCreateValidator=d.protobufPackage=void 0;const lt=staking,ht=any,mt=coin$1,vt=timestamp,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="cosmos.staking.v1beta1";function Jt(){return{description:void 0,commission:void 0,minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:void 0}}d.MsgCreateValidator={encode(Mt,jt=kt.Writer.create()){return Mt.description!==void 0&<.Description.encode(Mt.description,jt.uint32(10).fork()).ldelim(),Mt.commission!==void 0&<.CommissionRates.encode(Mt.commission,jt.uint32(18).fork()).ldelim(),Mt.minSelfDelegation!==""&&jt.uint32(26).string(Mt.minSelfDelegation),Mt.delegatorAddress!==""&&jt.uint32(34).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&jt.uint32(42).string(Mt.validatorAddress),Mt.pubkey!==void 0&&ht.Any.encode(Mt.pubkey,jt.uint32(50).fork()).ldelim(),Mt.value!==void 0&&mt.Coin.encode(Mt.value,jt.uint32(58).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Jt();for(;Ht.pos>>3){case 1:yt.description=lt.Description.decode(Ht,Ht.uint32());break;case 2:yt.commission=lt.CommissionRates.decode(Ht,Ht.uint32());break;case 3:yt.minSelfDelegation=Ht.string();break;case 4:yt.delegatorAddress=Ht.string();break;case 5:yt.validatorAddress=Ht.string();break;case 6:yt.pubkey=ht.Any.decode(Ht,Ht.uint32());break;case 7:yt.value=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{description:(0,Pt.isSet)(Mt.description)?lt.Description.fromJSON(Mt.description):void 0,commission:(0,Pt.isSet)(Mt.commission)?lt.CommissionRates.fromJSON(Mt.commission):void 0,minSelfDelegation:(0,Pt.isSet)(Mt.minSelfDelegation)?String(Mt.minSelfDelegation):"",delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",pubkey:(0,Pt.isSet)(Mt.pubkey)?ht.Any.fromJSON(Mt.pubkey):void 0,value:(0,Pt.isSet)(Mt.value)?mt.Coin.fromJSON(Mt.value):void 0}},toJSON(Mt){const jt={};return Mt.description!==void 0&&(jt.description=Mt.description?lt.Description.toJSON(Mt.description):void 0),Mt.commission!==void 0&&(jt.commission=Mt.commission?lt.CommissionRates.toJSON(Mt.commission):void 0),Mt.minSelfDelegation!==void 0&&(jt.minSelfDelegation=Mt.minSelfDelegation),Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.pubkey!==void 0&&(jt.pubkey=Mt.pubkey?ht.Any.toJSON(Mt.pubkey):void 0),Mt.value!==void 0&&(jt.value=Mt.value?mt.Coin.toJSON(Mt.value):void 0),jt},fromPartial(Mt){const jt=Jt();return jt.description=Mt.description!==void 0&&Mt.description!==null?lt.Description.fromPartial(Mt.description):void 0,jt.commission=Mt.commission!==void 0&&Mt.commission!==null?lt.CommissionRates.fromPartial(Mt.commission):void 0,jt.minSelfDelegation=Mt.minSelfDelegation??"",jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorAddress=Mt.validatorAddress??"",jt.pubkey=Mt.pubkey!==void 0&&Mt.pubkey!==null?ht.Any.fromPartial(Mt.pubkey):void 0,jt.value=Mt.value!==void 0&&Mt.value!==null?mt.Coin.fromPartial(Mt.value):void 0,jt}};function Zt(){return{}}d.MsgCreateValidatorResponse={encode(Mt,jt=kt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Zt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return Zt()}};function Rt(){return{description:void 0,validatorAddress:"",commissionRate:"",minSelfDelegation:""}}d.MsgEditValidator={encode(Mt,jt=kt.Writer.create()){return Mt.description!==void 0&<.Description.encode(Mt.description,jt.uint32(10).fork()).ldelim(),Mt.validatorAddress!==""&&jt.uint32(18).string(Mt.validatorAddress),Mt.commissionRate!==""&&jt.uint32(26).string(Mt.commissionRate),Mt.minSelfDelegation!==""&&jt.uint32(34).string(Mt.minSelfDelegation),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Rt();for(;Ht.pos>>3){case 1:yt.description=lt.Description.decode(Ht,Ht.uint32());break;case 2:yt.validatorAddress=Ht.string();break;case 3:yt.commissionRate=Ht.string();break;case 4:yt.minSelfDelegation=Ht.string();break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{description:(0,Pt.isSet)(Mt.description)?lt.Description.fromJSON(Mt.description):void 0,validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",commissionRate:(0,Pt.isSet)(Mt.commissionRate)?String(Mt.commissionRate):"",minSelfDelegation:(0,Pt.isSet)(Mt.minSelfDelegation)?String(Mt.minSelfDelegation):""}},toJSON(Mt){const jt={};return Mt.description!==void 0&&(jt.description=Mt.description?lt.Description.toJSON(Mt.description):void 0),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.commissionRate!==void 0&&(jt.commissionRate=Mt.commissionRate),Mt.minSelfDelegation!==void 0&&(jt.minSelfDelegation=Mt.minSelfDelegation),jt},fromPartial(Mt){const jt=Rt();return jt.description=Mt.description!==void 0&&Mt.description!==null?lt.Description.fromPartial(Mt.description):void 0,jt.validatorAddress=Mt.validatorAddress??"",jt.commissionRate=Mt.commissionRate??"",jt.minSelfDelegation=Mt.minSelfDelegation??"",jt}};function nn(){return{}}d.MsgEditValidatorResponse={encode(Mt,jt=kt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=nn();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return nn()}};function Qt(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}d.MsgDelegate={encode(Mt,jt=kt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&jt.uint32(18).string(Mt.validatorAddress),Mt.amount!==void 0&&mt.Coin.encode(Mt.amount,jt.uint32(26).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Qt();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.validatorAddress=Ht.string();break;case 3:yt.amount=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",amount:(0,Pt.isSet)(Mt.amount)?mt.Coin.fromJSON(Mt.amount):void 0}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.amount!==void 0&&(jt.amount=Mt.amount?mt.Coin.toJSON(Mt.amount):void 0),jt},fromPartial(Mt){const jt=Qt();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorAddress=Mt.validatorAddress??"",jt.amount=Mt.amount!==void 0&&Mt.amount!==null?mt.Coin.fromPartial(Mt.amount):void 0,jt}};function wt(){return{}}d.MsgDelegateResponse={encode(Mt,jt=kt.Writer.create()){return jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=wt();for(;Ht.pos>>3){default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return wt()}};function Nt(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:void 0}}d.MsgBeginRedelegate={encode(Mt,jt=kt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.validatorSrcAddress!==""&&jt.uint32(18).string(Mt.validatorSrcAddress),Mt.validatorDstAddress!==""&&jt.uint32(26).string(Mt.validatorDstAddress),Mt.amount!==void 0&&mt.Coin.encode(Mt.amount,jt.uint32(34).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Nt();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.validatorSrcAddress=Ht.string();break;case 3:yt.validatorDstAddress=Ht.string();break;case 4:yt.amount=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorSrcAddress:(0,Pt.isSet)(Mt.validatorSrcAddress)?String(Mt.validatorSrcAddress):"",validatorDstAddress:(0,Pt.isSet)(Mt.validatorDstAddress)?String(Mt.validatorDstAddress):"",amount:(0,Pt.isSet)(Mt.amount)?mt.Coin.fromJSON(Mt.amount):void 0}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorSrcAddress!==void 0&&(jt.validatorSrcAddress=Mt.validatorSrcAddress),Mt.validatorDstAddress!==void 0&&(jt.validatorDstAddress=Mt.validatorDstAddress),Mt.amount!==void 0&&(jt.amount=Mt.amount?mt.Coin.toJSON(Mt.amount):void 0),jt},fromPartial(Mt){const jt=Nt();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorSrcAddress=Mt.validatorSrcAddress??"",jt.validatorDstAddress=Mt.validatorDstAddress??"",jt.amount=Mt.amount!==void 0&&Mt.amount!==null?mt.Coin.fromPartial(Mt.amount):void 0,jt}};function xt(){return{completionTime:void 0}}d.MsgBeginRedelegateResponse={encode(Mt,jt=kt.Writer.create()){return Mt.completionTime!==void 0&&vt.Timestamp.encode(Mt.completionTime,jt.uint32(10).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=xt();for(;Ht.pos>>3){case 1:yt.completionTime=vt.Timestamp.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{completionTime:(0,Pt.isSet)(Mt.completionTime)?(0,Pt.fromJsonTimestamp)(Mt.completionTime):void 0}},toJSON(Mt){const jt={};return Mt.completionTime!==void 0&&(jt.completionTime=(0,Pt.fromTimestamp)(Mt.completionTime).toISOString()),jt},fromPartial(Mt){const jt=xt();return jt.completionTime=Mt.completionTime!==void 0&&Mt.completionTime!==null?vt.Timestamp.fromPartial(Mt.completionTime):void 0,jt}};function Et(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}d.MsgUndelegate={encode(Mt,jt=kt.Writer.create()){return Mt.delegatorAddress!==""&&jt.uint32(10).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&jt.uint32(18).string(Mt.validatorAddress),Mt.amount!==void 0&&mt.Coin.encode(Mt.amount,jt.uint32(26).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Et();for(;Ht.pos>>3){case 1:yt.delegatorAddress=Ht.string();break;case 2:yt.validatorAddress=Ht.string();break;case 3:yt.amount=mt.Coin.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{delegatorAddress:(0,Pt.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,Pt.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",amount:(0,Pt.isSet)(Mt.amount)?mt.Coin.fromJSON(Mt.amount):void 0}},toJSON(Mt){const jt={};return Mt.delegatorAddress!==void 0&&(jt.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(jt.validatorAddress=Mt.validatorAddress),Mt.amount!==void 0&&(jt.amount=Mt.amount?mt.Coin.toJSON(Mt.amount):void 0),jt},fromPartial(Mt){const jt=Et();return jt.delegatorAddress=Mt.delegatorAddress??"",jt.validatorAddress=Mt.validatorAddress??"",jt.amount=Mt.amount!==void 0&&Mt.amount!==null?mt.Coin.fromPartial(Mt.amount):void 0,jt}};function Bt(){return{completionTime:void 0}}d.MsgUndelegateResponse={encode(Mt,jt=kt.Writer.create()){return Mt.completionTime!==void 0&&vt.Timestamp.encode(Mt.completionTime,jt.uint32(10).fork()).ldelim(),jt},decode(Mt,jt){const Ht=Mt instanceof kt.Reader?Mt:new kt.Reader(Mt);let an=jt===void 0?Ht.len:Ht.pos+jt;const yt=Bt();for(;Ht.pos>>3){case 1:yt.completionTime=vt.Timestamp.decode(Ht,Ht.uint32());break;default:Ht.skipType($t&7);break}}return yt},fromJSON(Mt){return{completionTime:(0,Pt.isSet)(Mt.completionTime)?(0,Pt.fromJsonTimestamp)(Mt.completionTime):void 0}},toJSON(Mt){const jt={};return Mt.completionTime!==void 0&&(jt.completionTime=(0,Pt.fromTimestamp)(Mt.completionTime).toISOString()),jt},fromPartial(Mt){const jt=Bt();return jt.completionTime=Mt.completionTime!==void 0&&Mt.completionTime!==null?vt.Timestamp.fromPartial(Mt.completionTime):void 0,jt}};class Tt{constructor(jt){this.rpc=jt,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this)}CreateValidator(jt){const Ht=d.MsgCreateValidator.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",Ht).then(yt=>d.MsgCreateValidatorResponse.decode(new kt.Reader(yt)))}EditValidator(jt){const Ht=d.MsgEditValidator.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",Ht).then(yt=>d.MsgEditValidatorResponse.decode(new kt.Reader(yt)))}Delegate(jt){const Ht=d.MsgDelegate.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",Ht).then(yt=>d.MsgDelegateResponse.decode(new kt.Reader(yt)))}BeginRedelegate(jt){const Ht=d.MsgBeginRedelegate.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",Ht).then(yt=>d.MsgBeginRedelegateResponse.decode(new kt.Reader(yt)))}Undelegate(jt){const Ht=d.MsgUndelegate.encode(jt).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",Ht).then(yt=>d.MsgUndelegateResponse.decode(new kt.Reader(yt)))}}d.MsgClientImpl=Tt})(tx$8);var signing={},multisig={},__createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(d,b,dt,ct){ct===void 0&&(ct=dt);var lt=Object.getOwnPropertyDescriptor(b,dt);(!lt||("get"in lt?!b.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return b[dt]}}),Object.defineProperty(d,ct,lt)}:function(d,b,dt,ct){ct===void 0&&(ct=dt),d[ct]=b[dt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var dt in d)dt!=="default"&&Object.prototype.hasOwnProperty.call(d,dt)&&__createBinding(b,d,dt);return __setModuleDefault(b,d),b};Object.defineProperty(multisig,"__esModule",{value:!0});multisig.CompactBitArray=multisig.MultiSignature=multisig.protobufPackage=void 0;const _m0=__importStar(minimal$2),helpers_1=helpers;multisig.protobufPackage="cosmos.crypto.multisig.v1beta1";function createBaseMultiSignature(){return{signatures:[]}}multisig.MultiSignature={encode(d,b=_m0.Writer.create()){for(const dt of d.signatures)b.uint32(10).bytes(dt);return b},decode(d,b){const dt=d instanceof _m0.Reader?d:new _m0.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseMultiSignature();for(;dt.pos>>3){case 1:lt.signatures.push(dt.bytes());break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{signatures:Array.isArray(d==null?void 0:d.signatures)?d.signatures.map(b=>(0,helpers_1.bytesFromBase64)(b)):[]}},toJSON(d){const b={};return d.signatures?b.signatures=d.signatures.map(dt=>(0,helpers_1.base64FromBytes)(dt!==void 0?dt:new Uint8Array)):b.signatures=[],b},fromPartial(d){var dt;const b=createBaseMultiSignature();return b.signatures=((dt=d.signatures)==null?void 0:dt.map(ct=>ct))||[],b}};function createBaseCompactBitArray(){return{extraBitsStored:0,elems:new Uint8Array}}multisig.CompactBitArray={encode(d,b=_m0.Writer.create()){return d.extraBitsStored!==0&&b.uint32(8).uint32(d.extraBitsStored),d.elems.length!==0&&b.uint32(18).bytes(d.elems),b},decode(d,b){const dt=d instanceof _m0.Reader?d:new _m0.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseCompactBitArray();for(;dt.pos>>3){case 1:lt.extraBitsStored=dt.uint32();break;case 2:lt.elems=dt.bytes();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{extraBitsStored:(0,helpers_1.isSet)(d.extraBitsStored)?Number(d.extraBitsStored):0,elems:(0,helpers_1.isSet)(d.elems)?(0,helpers_1.bytesFromBase64)(d.elems):new Uint8Array}},toJSON(d){const b={};return d.extraBitsStored!==void 0&&(b.extraBitsStored=Math.round(d.extraBitsStored)),d.elems!==void 0&&(b.elems=(0,helpers_1.base64FromBytes)(d.elems!==void 0?d.elems:new Uint8Array)),b},fromPartial(d){const b=createBaseCompactBitArray();return b.extraBitsStored=d.extraBitsStored??0,b.elems=d.elems??new Uint8Array,b}};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et);var Tt=Object.getOwnPropertyDescriptor(xt,Et);(!Tt||("get"in Tt?!xt.__esModule:Tt.writable||Tt.configurable))&&(Tt={enumerable:!0,get:function(){return xt[Et]}}),Object.defineProperty(Nt,Bt,Tt)}:function(Nt,xt,Et,Bt){Bt===void 0&&(Bt=Et),Nt[Bt]=xt[Et]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,xt){Object.defineProperty(Nt,"default",{enumerable:!0,value:xt})}:function(Nt,xt){Nt.default=xt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var xt={};if(Nt!=null)for(var Et in Nt)Et!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Et)&&b(xt,Nt,Et);return dt(xt,Nt),xt};Object.defineProperty(d,"__esModule",{value:!0}),d.SignatureDescriptor_Data_Multi=d.SignatureDescriptor_Data_Single=d.SignatureDescriptor_Data=d.SignatureDescriptor=d.SignatureDescriptors=d.signModeToJSON=d.signModeFromJSON=d.SignMode=d.protobufPackage=void 0;const lt=multisig,ht=any,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.tx.signing.v1beta1";var kt;(function(Nt){Nt[Nt.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",Nt[Nt.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",Nt[Nt.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",Nt[Nt.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",Nt[Nt.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",Nt[Nt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kt=d.SignMode||(d.SignMode={}));function Pt(Nt){switch(Nt){case 0:case"SIGN_MODE_UNSPECIFIED":return kt.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return kt.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return kt.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return kt.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return kt.SIGN_MODE_EIP_191;case-1:case"UNRECOGNIZED":default:return kt.UNRECOGNIZED}}d.signModeFromJSON=Pt;function Jt(Nt){switch(Nt){case kt.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case kt.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case kt.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case kt.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case kt.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case kt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}d.signModeToJSON=Jt;function Zt(){return{signatures:[]}}d.SignatureDescriptors={encode(Nt,xt=mt.Writer.create()){for(const Et of Nt.signatures)d.SignatureDescriptor.encode(Et,xt.uint32(10).fork()).ldelim();return xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Zt();for(;Et.pos>>3){case 1:Tt.signatures.push(d.SignatureDescriptor.decode(Et,Et.uint32()));break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{signatures:Array.isArray(Nt==null?void 0:Nt.signatures)?Nt.signatures.map(xt=>d.SignatureDescriptor.fromJSON(xt)):[]}},toJSON(Nt){const xt={};return Nt.signatures?xt.signatures=Nt.signatures.map(Et=>Et?d.SignatureDescriptor.toJSON(Et):void 0):xt.signatures=[],xt},fromPartial(Nt){var Et;const xt=Zt();return xt.signatures=((Et=Nt.signatures)==null?void 0:Et.map(Bt=>d.SignatureDescriptor.fromPartial(Bt)))||[],xt}};function Rt(){return{publicKey:void 0,data:void 0,sequence:vt.Long.UZERO}}d.SignatureDescriptor={encode(Nt,xt=mt.Writer.create()){return Nt.publicKey!==void 0&&ht.Any.encode(Nt.publicKey,xt.uint32(10).fork()).ldelim(),Nt.data!==void 0&&d.SignatureDescriptor_Data.encode(Nt.data,xt.uint32(18).fork()).ldelim(),Nt.sequence.isZero()||xt.uint32(24).uint64(Nt.sequence),xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Rt();for(;Et.pos>>3){case 1:Tt.publicKey=ht.Any.decode(Et,Et.uint32());break;case 2:Tt.data=d.SignatureDescriptor_Data.decode(Et,Et.uint32());break;case 3:Tt.sequence=Et.uint64();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{publicKey:(0,vt.isSet)(Nt.publicKey)?ht.Any.fromJSON(Nt.publicKey):void 0,data:(0,vt.isSet)(Nt.data)?d.SignatureDescriptor_Data.fromJSON(Nt.data):void 0,sequence:(0,vt.isSet)(Nt.sequence)?vt.Long.fromValue(Nt.sequence):vt.Long.UZERO}},toJSON(Nt){const xt={};return Nt.publicKey!==void 0&&(xt.publicKey=Nt.publicKey?ht.Any.toJSON(Nt.publicKey):void 0),Nt.data!==void 0&&(xt.data=Nt.data?d.SignatureDescriptor_Data.toJSON(Nt.data):void 0),Nt.sequence!==void 0&&(xt.sequence=(Nt.sequence||vt.Long.UZERO).toString()),xt},fromPartial(Nt){const xt=Rt();return xt.publicKey=Nt.publicKey!==void 0&&Nt.publicKey!==null?ht.Any.fromPartial(Nt.publicKey):void 0,xt.data=Nt.data!==void 0&&Nt.data!==null?d.SignatureDescriptor_Data.fromPartial(Nt.data):void 0,xt.sequence=Nt.sequence!==void 0&&Nt.sequence!==null?vt.Long.fromValue(Nt.sequence):vt.Long.UZERO,xt}};function nn(){return{single:void 0,multi:void 0}}d.SignatureDescriptor_Data={encode(Nt,xt=mt.Writer.create()){return Nt.single!==void 0&&d.SignatureDescriptor_Data_Single.encode(Nt.single,xt.uint32(10).fork()).ldelim(),Nt.multi!==void 0&&d.SignatureDescriptor_Data_Multi.encode(Nt.multi,xt.uint32(18).fork()).ldelim(),xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=nn();for(;Et.pos>>3){case 1:Tt.single=d.SignatureDescriptor_Data_Single.decode(Et,Et.uint32());break;case 2:Tt.multi=d.SignatureDescriptor_Data_Multi.decode(Et,Et.uint32());break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{single:(0,vt.isSet)(Nt.single)?d.SignatureDescriptor_Data_Single.fromJSON(Nt.single):void 0,multi:(0,vt.isSet)(Nt.multi)?d.SignatureDescriptor_Data_Multi.fromJSON(Nt.multi):void 0}},toJSON(Nt){const xt={};return Nt.single!==void 0&&(xt.single=Nt.single?d.SignatureDescriptor_Data_Single.toJSON(Nt.single):void 0),Nt.multi!==void 0&&(xt.multi=Nt.multi?d.SignatureDescriptor_Data_Multi.toJSON(Nt.multi):void 0),xt},fromPartial(Nt){const xt=nn();return xt.single=Nt.single!==void 0&&Nt.single!==null?d.SignatureDescriptor_Data_Single.fromPartial(Nt.single):void 0,xt.multi=Nt.multi!==void 0&&Nt.multi!==null?d.SignatureDescriptor_Data_Multi.fromPartial(Nt.multi):void 0,xt}};function Qt(){return{mode:0,signature:new Uint8Array}}d.SignatureDescriptor_Data_Single={encode(Nt,xt=mt.Writer.create()){return Nt.mode!==0&&xt.uint32(8).int32(Nt.mode),Nt.signature.length!==0&&xt.uint32(18).bytes(Nt.signature),xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=Qt();for(;Et.pos>>3){case 1:Tt.mode=Et.int32();break;case 2:Tt.signature=Et.bytes();break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{mode:(0,vt.isSet)(Nt.mode)?Pt(Nt.mode):0,signature:(0,vt.isSet)(Nt.signature)?(0,vt.bytesFromBase64)(Nt.signature):new Uint8Array}},toJSON(Nt){const xt={};return Nt.mode!==void 0&&(xt.mode=Jt(Nt.mode)),Nt.signature!==void 0&&(xt.signature=(0,vt.base64FromBytes)(Nt.signature!==void 0?Nt.signature:new Uint8Array)),xt},fromPartial(Nt){const xt=Qt();return xt.mode=Nt.mode??0,xt.signature=Nt.signature??new Uint8Array,xt}};function wt(){return{bitarray:void 0,signatures:[]}}d.SignatureDescriptor_Data_Multi={encode(Nt,xt=mt.Writer.create()){Nt.bitarray!==void 0&<.CompactBitArray.encode(Nt.bitarray,xt.uint32(10).fork()).ldelim();for(const Et of Nt.signatures)d.SignatureDescriptor_Data.encode(Et,xt.uint32(18).fork()).ldelim();return xt},decode(Nt,xt){const Et=Nt instanceof mt.Reader?Nt:new mt.Reader(Nt);let Bt=xt===void 0?Et.len:Et.pos+xt;const Tt=wt();for(;Et.pos>>3){case 1:Tt.bitarray=lt.CompactBitArray.decode(Et,Et.uint32());break;case 2:Tt.signatures.push(d.SignatureDescriptor_Data.decode(Et,Et.uint32()));break;default:Et.skipType(Mt&7);break}}return Tt},fromJSON(Nt){return{bitarray:(0,vt.isSet)(Nt.bitarray)?lt.CompactBitArray.fromJSON(Nt.bitarray):void 0,signatures:Array.isArray(Nt==null?void 0:Nt.signatures)?Nt.signatures.map(xt=>d.SignatureDescriptor_Data.fromJSON(xt)):[]}},toJSON(Nt){const xt={};return Nt.bitarray!==void 0&&(xt.bitarray=Nt.bitarray?lt.CompactBitArray.toJSON(Nt.bitarray):void 0),Nt.signatures?xt.signatures=Nt.signatures.map(Et=>Et?d.SignatureDescriptor_Data.toJSON(Et):void 0):xt.signatures=[],xt},fromPartial(Nt){var Et;const xt=wt();return xt.bitarray=Nt.bitarray!==void 0&&Nt.bitarray!==null?lt.CompactBitArray.fromPartial(Nt.bitarray):void 0,xt.signatures=((Et=Nt.signatures)==null?void 0:Et.map(Bt=>d.SignatureDescriptor_Data.fromPartial(Bt)))||[],xt}}})(signing);var tx$7={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Tt,Mt,jt,Ht){Ht===void 0&&(Ht=jt);var an=Object.getOwnPropertyDescriptor(Mt,jt);(!an||("get"in an?!Mt.__esModule:an.writable||an.configurable))&&(an={enumerable:!0,get:function(){return Mt[jt]}}),Object.defineProperty(Tt,Ht,an)}:function(Tt,Mt,jt,Ht){Ht===void 0&&(Ht=jt),Tt[Ht]=Mt[jt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Tt,Mt){Object.defineProperty(Tt,"default",{enumerable:!0,value:Mt})}:function(Tt,Mt){Tt.default=Mt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Tt){if(Tt&&Tt.__esModule)return Tt;var Mt={};if(Tt!=null)for(var jt in Tt)jt!=="default"&&Object.prototype.hasOwnProperty.call(Tt,jt)&&b(Mt,Tt,jt);return dt(Mt,Tt),Mt};Object.defineProperty(d,"__esModule",{value:!0}),d.Fee=d.ModeInfo_Multi=d.ModeInfo_Single=d.ModeInfo=d.SignerInfo=d.AuthInfo=d.TxBody=d.SignDoc=d.TxRaw=d.Tx=d.protobufPackage=void 0;const lt=any,ht=signing,mt=multisig,vt=coin$1,kt=ct(minimal$2),Pt=helpers;d.protobufPackage="cosmos.tx.v1beta1";function Jt(){return{body:void 0,authInfo:void 0,signatures:[]}}d.Tx={encode(Tt,Mt=kt.Writer.create()){Tt.body!==void 0&&d.TxBody.encode(Tt.body,Mt.uint32(10).fork()).ldelim(),Tt.authInfo!==void 0&&d.AuthInfo.encode(Tt.authInfo,Mt.uint32(18).fork()).ldelim();for(const jt of Tt.signatures)Mt.uint32(26).bytes(jt);return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Jt();for(;jt.pos>>3){case 1:an.body=d.TxBody.decode(jt,jt.uint32());break;case 2:an.authInfo=d.AuthInfo.decode(jt,jt.uint32());break;case 3:an.signatures.push(jt.bytes());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{body:(0,Pt.isSet)(Tt.body)?d.TxBody.fromJSON(Tt.body):void 0,authInfo:(0,Pt.isSet)(Tt.authInfo)?d.AuthInfo.fromJSON(Tt.authInfo):void 0,signatures:Array.isArray(Tt==null?void 0:Tt.signatures)?Tt.signatures.map(Mt=>(0,Pt.bytesFromBase64)(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.body!==void 0&&(Mt.body=Tt.body?d.TxBody.toJSON(Tt.body):void 0),Tt.authInfo!==void 0&&(Mt.authInfo=Tt.authInfo?d.AuthInfo.toJSON(Tt.authInfo):void 0),Tt.signatures?Mt.signatures=Tt.signatures.map(jt=>(0,Pt.base64FromBytes)(jt!==void 0?jt:new Uint8Array)):Mt.signatures=[],Mt},fromPartial(Tt){var jt;const Mt=Jt();return Mt.body=Tt.body!==void 0&&Tt.body!==null?d.TxBody.fromPartial(Tt.body):void 0,Mt.authInfo=Tt.authInfo!==void 0&&Tt.authInfo!==null?d.AuthInfo.fromPartial(Tt.authInfo):void 0,Mt.signatures=((jt=Tt.signatures)==null?void 0:jt.map(Ht=>Ht))||[],Mt}};function Zt(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}d.TxRaw={encode(Tt,Mt=kt.Writer.create()){Tt.bodyBytes.length!==0&&Mt.uint32(10).bytes(Tt.bodyBytes),Tt.authInfoBytes.length!==0&&Mt.uint32(18).bytes(Tt.authInfoBytes);for(const jt of Tt.signatures)Mt.uint32(26).bytes(jt);return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Zt();for(;jt.pos>>3){case 1:an.bodyBytes=jt.bytes();break;case 2:an.authInfoBytes=jt.bytes();break;case 3:an.signatures.push(jt.bytes());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{bodyBytes:(0,Pt.isSet)(Tt.bodyBytes)?(0,Pt.bytesFromBase64)(Tt.bodyBytes):new Uint8Array,authInfoBytes:(0,Pt.isSet)(Tt.authInfoBytes)?(0,Pt.bytesFromBase64)(Tt.authInfoBytes):new Uint8Array,signatures:Array.isArray(Tt==null?void 0:Tt.signatures)?Tt.signatures.map(Mt=>(0,Pt.bytesFromBase64)(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.bodyBytes!==void 0&&(Mt.bodyBytes=(0,Pt.base64FromBytes)(Tt.bodyBytes!==void 0?Tt.bodyBytes:new Uint8Array)),Tt.authInfoBytes!==void 0&&(Mt.authInfoBytes=(0,Pt.base64FromBytes)(Tt.authInfoBytes!==void 0?Tt.authInfoBytes:new Uint8Array)),Tt.signatures?Mt.signatures=Tt.signatures.map(jt=>(0,Pt.base64FromBytes)(jt!==void 0?jt:new Uint8Array)):Mt.signatures=[],Mt},fromPartial(Tt){var jt;const Mt=Zt();return Mt.bodyBytes=Tt.bodyBytes??new Uint8Array,Mt.authInfoBytes=Tt.authInfoBytes??new Uint8Array,Mt.signatures=((jt=Tt.signatures)==null?void 0:jt.map(Ht=>Ht))||[],Mt}};function Rt(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:Pt.Long.UZERO}}d.SignDoc={encode(Tt,Mt=kt.Writer.create()){return Tt.bodyBytes.length!==0&&Mt.uint32(10).bytes(Tt.bodyBytes),Tt.authInfoBytes.length!==0&&Mt.uint32(18).bytes(Tt.authInfoBytes),Tt.chainId!==""&&Mt.uint32(26).string(Tt.chainId),Tt.accountNumber.isZero()||Mt.uint32(32).uint64(Tt.accountNumber),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Rt();for(;jt.pos>>3){case 1:an.bodyBytes=jt.bytes();break;case 2:an.authInfoBytes=jt.bytes();break;case 3:an.chainId=jt.string();break;case 4:an.accountNumber=jt.uint64();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{bodyBytes:(0,Pt.isSet)(Tt.bodyBytes)?(0,Pt.bytesFromBase64)(Tt.bodyBytes):new Uint8Array,authInfoBytes:(0,Pt.isSet)(Tt.authInfoBytes)?(0,Pt.bytesFromBase64)(Tt.authInfoBytes):new Uint8Array,chainId:(0,Pt.isSet)(Tt.chainId)?String(Tt.chainId):"",accountNumber:(0,Pt.isSet)(Tt.accountNumber)?Pt.Long.fromValue(Tt.accountNumber):Pt.Long.UZERO}},toJSON(Tt){const Mt={};return Tt.bodyBytes!==void 0&&(Mt.bodyBytes=(0,Pt.base64FromBytes)(Tt.bodyBytes!==void 0?Tt.bodyBytes:new Uint8Array)),Tt.authInfoBytes!==void 0&&(Mt.authInfoBytes=(0,Pt.base64FromBytes)(Tt.authInfoBytes!==void 0?Tt.authInfoBytes:new Uint8Array)),Tt.chainId!==void 0&&(Mt.chainId=Tt.chainId),Tt.accountNumber!==void 0&&(Mt.accountNumber=(Tt.accountNumber||Pt.Long.UZERO).toString()),Mt},fromPartial(Tt){const Mt=Rt();return Mt.bodyBytes=Tt.bodyBytes??new Uint8Array,Mt.authInfoBytes=Tt.authInfoBytes??new Uint8Array,Mt.chainId=Tt.chainId??"",Mt.accountNumber=Tt.accountNumber!==void 0&&Tt.accountNumber!==null?Pt.Long.fromValue(Tt.accountNumber):Pt.Long.UZERO,Mt}};function nn(){return{messages:[],memo:"",timeoutHeight:Pt.Long.UZERO,extensionOptions:[],nonCriticalExtensionOptions:[]}}d.TxBody={encode(Tt,Mt=kt.Writer.create()){for(const jt of Tt.messages)lt.Any.encode(jt,Mt.uint32(10).fork()).ldelim();Tt.memo!==""&&Mt.uint32(18).string(Tt.memo),Tt.timeoutHeight.isZero()||Mt.uint32(24).uint64(Tt.timeoutHeight);for(const jt of Tt.extensionOptions)lt.Any.encode(jt,Mt.uint32(8186).fork()).ldelim();for(const jt of Tt.nonCriticalExtensionOptions)lt.Any.encode(jt,Mt.uint32(16378).fork()).ldelim();return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=nn();for(;jt.pos>>3){case 1:an.messages.push(lt.Any.decode(jt,jt.uint32()));break;case 2:an.memo=jt.string();break;case 3:an.timeoutHeight=jt.uint64();break;case 1023:an.extensionOptions.push(lt.Any.decode(jt,jt.uint32()));break;case 2047:an.nonCriticalExtensionOptions.push(lt.Any.decode(jt,jt.uint32()));break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{messages:Array.isArray(Tt==null?void 0:Tt.messages)?Tt.messages.map(Mt=>lt.Any.fromJSON(Mt)):[],memo:(0,Pt.isSet)(Tt.memo)?String(Tt.memo):"",timeoutHeight:(0,Pt.isSet)(Tt.timeoutHeight)?Pt.Long.fromValue(Tt.timeoutHeight):Pt.Long.UZERO,extensionOptions:Array.isArray(Tt==null?void 0:Tt.extensionOptions)?Tt.extensionOptions.map(Mt=>lt.Any.fromJSON(Mt)):[],nonCriticalExtensionOptions:Array.isArray(Tt==null?void 0:Tt.nonCriticalExtensionOptions)?Tt.nonCriticalExtensionOptions.map(Mt=>lt.Any.fromJSON(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.messages?Mt.messages=Tt.messages.map(jt=>jt?lt.Any.toJSON(jt):void 0):Mt.messages=[],Tt.memo!==void 0&&(Mt.memo=Tt.memo),Tt.timeoutHeight!==void 0&&(Mt.timeoutHeight=(Tt.timeoutHeight||Pt.Long.UZERO).toString()),Tt.extensionOptions?Mt.extensionOptions=Tt.extensionOptions.map(jt=>jt?lt.Any.toJSON(jt):void 0):Mt.extensionOptions=[],Tt.nonCriticalExtensionOptions?Mt.nonCriticalExtensionOptions=Tt.nonCriticalExtensionOptions.map(jt=>jt?lt.Any.toJSON(jt):void 0):Mt.nonCriticalExtensionOptions=[],Mt},fromPartial(Tt){var jt,Ht,an;const Mt=nn();return Mt.messages=((jt=Tt.messages)==null?void 0:jt.map(yt=>lt.Any.fromPartial(yt)))||[],Mt.memo=Tt.memo??"",Mt.timeoutHeight=Tt.timeoutHeight!==void 0&&Tt.timeoutHeight!==null?Pt.Long.fromValue(Tt.timeoutHeight):Pt.Long.UZERO,Mt.extensionOptions=((Ht=Tt.extensionOptions)==null?void 0:Ht.map(yt=>lt.Any.fromPartial(yt)))||[],Mt.nonCriticalExtensionOptions=((an=Tt.nonCriticalExtensionOptions)==null?void 0:an.map(yt=>lt.Any.fromPartial(yt)))||[],Mt}};function Qt(){return{signerInfos:[],fee:void 0}}d.AuthInfo={encode(Tt,Mt=kt.Writer.create()){for(const jt of Tt.signerInfos)d.SignerInfo.encode(jt,Mt.uint32(10).fork()).ldelim();return Tt.fee!==void 0&&d.Fee.encode(Tt.fee,Mt.uint32(18).fork()).ldelim(),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Qt();for(;jt.pos>>3){case 1:an.signerInfos.push(d.SignerInfo.decode(jt,jt.uint32()));break;case 2:an.fee=d.Fee.decode(jt,jt.uint32());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{signerInfos:Array.isArray(Tt==null?void 0:Tt.signerInfos)?Tt.signerInfos.map(Mt=>d.SignerInfo.fromJSON(Mt)):[],fee:(0,Pt.isSet)(Tt.fee)?d.Fee.fromJSON(Tt.fee):void 0}},toJSON(Tt){const Mt={};return Tt.signerInfos?Mt.signerInfos=Tt.signerInfos.map(jt=>jt?d.SignerInfo.toJSON(jt):void 0):Mt.signerInfos=[],Tt.fee!==void 0&&(Mt.fee=Tt.fee?d.Fee.toJSON(Tt.fee):void 0),Mt},fromPartial(Tt){var jt;const Mt=Qt();return Mt.signerInfos=((jt=Tt.signerInfos)==null?void 0:jt.map(Ht=>d.SignerInfo.fromPartial(Ht)))||[],Mt.fee=Tt.fee!==void 0&&Tt.fee!==null?d.Fee.fromPartial(Tt.fee):void 0,Mt}};function wt(){return{publicKey:void 0,modeInfo:void 0,sequence:Pt.Long.UZERO}}d.SignerInfo={encode(Tt,Mt=kt.Writer.create()){return Tt.publicKey!==void 0&<.Any.encode(Tt.publicKey,Mt.uint32(10).fork()).ldelim(),Tt.modeInfo!==void 0&&d.ModeInfo.encode(Tt.modeInfo,Mt.uint32(18).fork()).ldelim(),Tt.sequence.isZero()||Mt.uint32(24).uint64(Tt.sequence),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=wt();for(;jt.pos>>3){case 1:an.publicKey=lt.Any.decode(jt,jt.uint32());break;case 2:an.modeInfo=d.ModeInfo.decode(jt,jt.uint32());break;case 3:an.sequence=jt.uint64();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{publicKey:(0,Pt.isSet)(Tt.publicKey)?lt.Any.fromJSON(Tt.publicKey):void 0,modeInfo:(0,Pt.isSet)(Tt.modeInfo)?d.ModeInfo.fromJSON(Tt.modeInfo):void 0,sequence:(0,Pt.isSet)(Tt.sequence)?Pt.Long.fromValue(Tt.sequence):Pt.Long.UZERO}},toJSON(Tt){const Mt={};return Tt.publicKey!==void 0&&(Mt.publicKey=Tt.publicKey?lt.Any.toJSON(Tt.publicKey):void 0),Tt.modeInfo!==void 0&&(Mt.modeInfo=Tt.modeInfo?d.ModeInfo.toJSON(Tt.modeInfo):void 0),Tt.sequence!==void 0&&(Mt.sequence=(Tt.sequence||Pt.Long.UZERO).toString()),Mt},fromPartial(Tt){const Mt=wt();return Mt.publicKey=Tt.publicKey!==void 0&&Tt.publicKey!==null?lt.Any.fromPartial(Tt.publicKey):void 0,Mt.modeInfo=Tt.modeInfo!==void 0&&Tt.modeInfo!==null?d.ModeInfo.fromPartial(Tt.modeInfo):void 0,Mt.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?Pt.Long.fromValue(Tt.sequence):Pt.Long.UZERO,Mt}};function Nt(){return{single:void 0,multi:void 0}}d.ModeInfo={encode(Tt,Mt=kt.Writer.create()){return Tt.single!==void 0&&d.ModeInfo_Single.encode(Tt.single,Mt.uint32(10).fork()).ldelim(),Tt.multi!==void 0&&d.ModeInfo_Multi.encode(Tt.multi,Mt.uint32(18).fork()).ldelim(),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Nt();for(;jt.pos>>3){case 1:an.single=d.ModeInfo_Single.decode(jt,jt.uint32());break;case 2:an.multi=d.ModeInfo_Multi.decode(jt,jt.uint32());break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{single:(0,Pt.isSet)(Tt.single)?d.ModeInfo_Single.fromJSON(Tt.single):void 0,multi:(0,Pt.isSet)(Tt.multi)?d.ModeInfo_Multi.fromJSON(Tt.multi):void 0}},toJSON(Tt){const Mt={};return Tt.single!==void 0&&(Mt.single=Tt.single?d.ModeInfo_Single.toJSON(Tt.single):void 0),Tt.multi!==void 0&&(Mt.multi=Tt.multi?d.ModeInfo_Multi.toJSON(Tt.multi):void 0),Mt},fromPartial(Tt){const Mt=Nt();return Mt.single=Tt.single!==void 0&&Tt.single!==null?d.ModeInfo_Single.fromPartial(Tt.single):void 0,Mt.multi=Tt.multi!==void 0&&Tt.multi!==null?d.ModeInfo_Multi.fromPartial(Tt.multi):void 0,Mt}};function xt(){return{mode:0}}d.ModeInfo_Single={encode(Tt,Mt=kt.Writer.create()){return Tt.mode!==0&&Mt.uint32(8).int32(Tt.mode),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=xt();for(;jt.pos>>3){case 1:an.mode=jt.int32();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{mode:(0,Pt.isSet)(Tt.mode)?(0,ht.signModeFromJSON)(Tt.mode):0}},toJSON(Tt){const Mt={};return Tt.mode!==void 0&&(Mt.mode=(0,ht.signModeToJSON)(Tt.mode)),Mt},fromPartial(Tt){const Mt=xt();return Mt.mode=Tt.mode??0,Mt}};function Et(){return{bitarray:void 0,modeInfos:[]}}d.ModeInfo_Multi={encode(Tt,Mt=kt.Writer.create()){Tt.bitarray!==void 0&&mt.CompactBitArray.encode(Tt.bitarray,Mt.uint32(10).fork()).ldelim();for(const jt of Tt.modeInfos)d.ModeInfo.encode(jt,Mt.uint32(18).fork()).ldelim();return Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Et();for(;jt.pos>>3){case 1:an.bitarray=mt.CompactBitArray.decode(jt,jt.uint32());break;case 2:an.modeInfos.push(d.ModeInfo.decode(jt,jt.uint32()));break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{bitarray:(0,Pt.isSet)(Tt.bitarray)?mt.CompactBitArray.fromJSON(Tt.bitarray):void 0,modeInfos:Array.isArray(Tt==null?void 0:Tt.modeInfos)?Tt.modeInfos.map(Mt=>d.ModeInfo.fromJSON(Mt)):[]}},toJSON(Tt){const Mt={};return Tt.bitarray!==void 0&&(Mt.bitarray=Tt.bitarray?mt.CompactBitArray.toJSON(Tt.bitarray):void 0),Tt.modeInfos?Mt.modeInfos=Tt.modeInfos.map(jt=>jt?d.ModeInfo.toJSON(jt):void 0):Mt.modeInfos=[],Mt},fromPartial(Tt){var jt;const Mt=Et();return Mt.bitarray=Tt.bitarray!==void 0&&Tt.bitarray!==null?mt.CompactBitArray.fromPartial(Tt.bitarray):void 0,Mt.modeInfos=((jt=Tt.modeInfos)==null?void 0:jt.map(Ht=>d.ModeInfo.fromPartial(Ht)))||[],Mt}};function Bt(){return{amount:[],gasLimit:Pt.Long.UZERO,payer:"",granter:""}}d.Fee={encode(Tt,Mt=kt.Writer.create()){for(const jt of Tt.amount)vt.Coin.encode(jt,Mt.uint32(10).fork()).ldelim();return Tt.gasLimit.isZero()||Mt.uint32(16).uint64(Tt.gasLimit),Tt.payer!==""&&Mt.uint32(26).string(Tt.payer),Tt.granter!==""&&Mt.uint32(34).string(Tt.granter),Mt},decode(Tt,Mt){const jt=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let Ht=Mt===void 0?jt.len:jt.pos+Mt;const an=Bt();for(;jt.pos>>3){case 1:an.amount.push(vt.Coin.decode(jt,jt.uint32()));break;case 2:an.gasLimit=jt.uint64();break;case 3:an.payer=jt.string();break;case 4:an.granter=jt.string();break;default:jt.skipType(yt&7);break}}return an},fromJSON(Tt){return{amount:Array.isArray(Tt==null?void 0:Tt.amount)?Tt.amount.map(Mt=>vt.Coin.fromJSON(Mt)):[],gasLimit:(0,Pt.isSet)(Tt.gasLimit)?Pt.Long.fromValue(Tt.gasLimit):Pt.Long.UZERO,payer:(0,Pt.isSet)(Tt.payer)?String(Tt.payer):"",granter:(0,Pt.isSet)(Tt.granter)?String(Tt.granter):""}},toJSON(Tt){const Mt={};return Tt.amount?Mt.amount=Tt.amount.map(jt=>jt?vt.Coin.toJSON(jt):void 0):Mt.amount=[],Tt.gasLimit!==void 0&&(Mt.gasLimit=(Tt.gasLimit||Pt.Long.UZERO).toString()),Tt.payer!==void 0&&(Mt.payer=Tt.payer),Tt.granter!==void 0&&(Mt.granter=Tt.granter),Mt},fromPartial(Tt){var jt;const Mt=Bt();return Mt.amount=((jt=Tt.amount)==null?void 0:jt.map(Ht=>vt.Coin.fromPartial(Ht)))||[],Mt.gasLimit=Tt.gasLimit!==void 0&&Tt.gasLimit!==null?Pt.Long.fromValue(Tt.gasLimit):Pt.Long.UZERO,Mt.payer=Tt.payer??"",Mt.granter=Tt.granter??"",Mt}}})(tx$7);var tx$6={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt);var St=Object.getOwnPropertyDescriptor($t,Yt);(!St||("get"in St?!$t.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return $t[Yt]}}),Object.defineProperty(yt,Kt,St)}:function(yt,$t,Yt,Kt){Kt===void 0&&(Kt=Yt),yt[Kt]=$t[Yt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(yt,$t){Object.defineProperty(yt,"default",{enumerable:!0,value:$t})}:function(yt,$t){yt.default=$t}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(yt){if(yt&&yt.__esModule)return yt;var $t={};if(yt!=null)for(var Yt in yt)Yt!=="default"&&Object.prototype.hasOwnProperty.call(yt,Yt)&&b($t,yt,Yt);return dt($t,yt),$t};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgUpdateInstantiateConfigResponse=d.MsgUpdateInstantiateConfig=d.MsgClearAdminResponse=d.MsgClearAdmin=d.MsgUpdateAdminResponse=d.MsgUpdateAdmin=d.MsgMigrateContractResponse=d.MsgMigrateContract=d.MsgExecuteContractResponse=d.MsgExecuteContract=d.MsgInstantiateContract2Response=d.MsgInstantiateContractResponse=d.MsgInstantiateContract2=d.MsgInstantiateContract=d.MsgStoreCodeResponse=d.MsgStoreCode=d.protobufPackage=void 0;const lt=types$7,ht=coin$1,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmwasm.wasm.v1";function kt(){return{sender:"",wasmByteCode:new Uint8Array,instantiatePermission:void 0}}d.MsgStoreCode={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.wasmByteCode.length!==0&&$t.uint32(18).bytes(yt.wasmByteCode),yt.instantiatePermission!==void 0&<.AccessConfig.encode(yt.instantiatePermission,$t.uint32(42).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=kt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.wasmByteCode=Yt.bytes();break;case 5:St.instantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",wasmByteCode:(0,vt.isSet)(yt.wasmByteCode)?(0,vt.bytesFromBase64)(yt.wasmByteCode):new Uint8Array,instantiatePermission:(0,vt.isSet)(yt.instantiatePermission)?lt.AccessConfig.fromJSON(yt.instantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.wasmByteCode!==void 0&&($t.wasmByteCode=(0,vt.base64FromBytes)(yt.wasmByteCode!==void 0?yt.wasmByteCode:new Uint8Array)),yt.instantiatePermission!==void 0&&($t.instantiatePermission=yt.instantiatePermission?lt.AccessConfig.toJSON(yt.instantiatePermission):void 0),$t},fromPartial(yt){const $t=kt();return $t.sender=yt.sender??"",$t.wasmByteCode=yt.wasmByteCode??new Uint8Array,$t.instantiatePermission=yt.instantiatePermission!==void 0&&yt.instantiatePermission!==null?lt.AccessConfig.fromPartial(yt.instantiatePermission):void 0,$t}};function Pt(){return{codeId:vt.Long.UZERO,checksum:new Uint8Array}}d.MsgStoreCodeResponse={encode(yt,$t=mt.Writer.create()){return yt.codeId.isZero()||$t.uint32(8).uint64(yt.codeId),yt.checksum.length!==0&&$t.uint32(18).bytes(yt.checksum),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Pt();for(;Yt.pos>>3){case 1:St.codeId=Yt.uint64();break;case 2:St.checksum=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,checksum:(0,vt.isSet)(yt.checksum)?(0,vt.bytesFromBase64)(yt.checksum):new Uint8Array}},toJSON(yt){const $t={};return yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.checksum!==void 0&&($t.checksum=(0,vt.base64FromBytes)(yt.checksum!==void 0?yt.checksum:new Uint8Array)),$t},fromPartial(yt){const $t=Pt();return $t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.checksum=yt.checksum??new Uint8Array,$t}};function Jt(){return{sender:"",admin:"",codeId:vt.Long.UZERO,label:"",msg:new Uint8Array,funds:[]}}d.MsgInstantiateContract={encode(yt,$t=mt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,vt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,label:(0,vt.isSet)(yt.label)?String(yt.label):"",msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Jt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function Zt(){return{sender:"",admin:"",codeId:vt.Long.UZERO,label:"",msg:new Uint8Array,funds:[],salt:new Uint8Array,fixMsg:!1}}d.MsgInstantiateContract2={encode(yt,$t=mt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.admin!==""&&$t.uint32(18).string(yt.admin),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.label!==""&&$t.uint32(34).string(yt.label),yt.msg.length!==0&&$t.uint32(42).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(50).fork()).ldelim();return yt.salt.length!==0&&$t.uint32(58).bytes(yt.salt),yt.fixMsg===!0&&$t.uint32(64).bool(yt.fixMsg),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Zt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.admin=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.label=Yt.string();break;case 5:St.msg=Yt.bytes();break;case 6:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;case 7:St.salt=Yt.bytes();break;case 8:St.fixMsg=Yt.bool();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",admin:(0,vt.isSet)(yt.admin)?String(yt.admin):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,label:(0,vt.isSet)(yt.label)?String(yt.label):"",msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[],salt:(0,vt.isSet)(yt.salt)?(0,vt.bytesFromBase64)(yt.salt):new Uint8Array,fixMsg:(0,vt.isSet)(yt.fixMsg)?!!yt.fixMsg:!1}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.admin!==void 0&&($t.admin=yt.admin),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.label!==void 0&&($t.label=yt.label),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],yt.salt!==void 0&&($t.salt=(0,vt.base64FromBytes)(yt.salt!==void 0?yt.salt:new Uint8Array)),yt.fixMsg!==void 0&&($t.fixMsg=yt.fixMsg),$t},fromPartial(yt){var Yt;const $t=Zt();return $t.sender=yt.sender??"",$t.admin=yt.admin??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.label=yt.label??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t.salt=yt.salt??new Uint8Array,$t.fixMsg=yt.fixMsg??!1,$t}};function Rt(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContractResponse={encode(yt,$t=mt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Rt();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,vt.isSet)(yt.address)?String(yt.address):"",data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=Rt();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function nn(){return{address:"",data:new Uint8Array}}d.MsgInstantiateContract2Response={encode(yt,$t=mt.Writer.create()){return yt.address!==""&&$t.uint32(10).string(yt.address),yt.data.length!==0&&$t.uint32(18).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=nn();for(;Yt.pos>>3){case 1:St.address=Yt.string();break;case 2:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{address:(0,vt.isSet)(yt.address)?String(yt.address):"",data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.address!==void 0&&($t.address=yt.address),yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=nn();return $t.address=yt.address??"",$t.data=yt.data??new Uint8Array,$t}};function Qt(){return{sender:"",contract:"",msg:new Uint8Array,funds:[]}}d.MsgExecuteContract={encode(yt,$t=mt.Writer.create()){yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.msg.length!==0&&$t.uint32(26).bytes(yt.msg);for(const Yt of yt.funds)ht.Coin.encode(Yt,$t.uint32(42).fork()).ldelim();return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Qt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.msg=Yt.bytes();break;case 5:St.funds.push(ht.Coin.decode(Yt,Yt.uint32()));break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):"",msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array,funds:Array.isArray(yt==null?void 0:yt.funds)?yt.funds.map($t=>ht.Coin.fromJSON($t)):[]}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),yt.funds?$t.funds=yt.funds.map(Yt=>Yt?ht.Coin.toJSON(Yt):void 0):$t.funds=[],$t},fromPartial(yt){var Yt;const $t=Qt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.msg=yt.msg??new Uint8Array,$t.funds=((Yt=yt.funds)==null?void 0:Yt.map(Kt=>ht.Coin.fromPartial(Kt)))||[],$t}};function wt(){return{data:new Uint8Array}}d.MsgExecuteContractResponse={encode(yt,$t=mt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=wt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=wt();return $t.data=yt.data??new Uint8Array,$t}};function Nt(){return{sender:"",contract:"",codeId:vt.Long.UZERO,msg:new Uint8Array}}d.MsgMigrateContract={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(18).string(yt.contract),yt.codeId.isZero()||$t.uint32(24).uint64(yt.codeId),yt.msg.length!==0&&$t.uint32(34).bytes(yt.msg),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Nt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.contract=Yt.string();break;case 3:St.codeId=Yt.uint64();break;case 4:St.msg=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,msg:(0,vt.isSet)(yt.msg)?(0,vt.bytesFromBase64)(yt.msg):new Uint8Array}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.msg!==void 0&&($t.msg=(0,vt.base64FromBytes)(yt.msg!==void 0?yt.msg:new Uint8Array)),$t},fromPartial(yt){const $t=Nt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.msg=yt.msg??new Uint8Array,$t}};function xt(){return{data:new Uint8Array}}d.MsgMigrateContractResponse={encode(yt,$t=mt.Writer.create()){return yt.data.length!==0&&$t.uint32(10).bytes(yt.data),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=xt();for(;Yt.pos>>3){case 1:St.data=Yt.bytes();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{data:(0,vt.isSet)(yt.data)?(0,vt.bytesFromBase64)(yt.data):new Uint8Array}},toJSON(yt){const $t={};return yt.data!==void 0&&($t.data=(0,vt.base64FromBytes)(yt.data!==void 0?yt.data:new Uint8Array)),$t},fromPartial(yt){const $t=xt();return $t.data=yt.data??new Uint8Array,$t}};function Et(){return{sender:"",newAdmin:"",contract:""}}d.MsgUpdateAdmin={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.newAdmin!==""&&$t.uint32(18).string(yt.newAdmin),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Et();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.newAdmin=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",newAdmin:(0,vt.isSet)(yt.newAdmin)?String(yt.newAdmin):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.newAdmin!==void 0&&($t.newAdmin=yt.newAdmin),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Et();return $t.sender=yt.sender??"",$t.newAdmin=yt.newAdmin??"",$t.contract=yt.contract??"",$t}};function Bt(){return{}}d.MsgUpdateAdminResponse={encode(yt,$t=mt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Bt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Bt()}};function Tt(){return{sender:"",contract:""}}d.MsgClearAdmin={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.contract!==""&&$t.uint32(26).string(yt.contract),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Tt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 3:St.contract=Yt.string();break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",contract:(0,vt.isSet)(yt.contract)?String(yt.contract):""}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.contract!==void 0&&($t.contract=yt.contract),$t},fromPartial(yt){const $t=Tt();return $t.sender=yt.sender??"",$t.contract=yt.contract??"",$t}};function Mt(){return{}}d.MsgClearAdminResponse={encode(yt,$t=mt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Mt();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Mt()}};function jt(){return{sender:"",codeId:vt.Long.UZERO,newInstantiatePermission:void 0}}d.MsgUpdateInstantiateConfig={encode(yt,$t=mt.Writer.create()){return yt.sender!==""&&$t.uint32(10).string(yt.sender),yt.codeId.isZero()||$t.uint32(16).uint64(yt.codeId),yt.newInstantiatePermission!==void 0&<.AccessConfig.encode(yt.newInstantiatePermission,$t.uint32(26).fork()).ldelim(),$t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=jt();for(;Yt.pos>>3){case 1:St.sender=Yt.string();break;case 2:St.codeId=Yt.uint64();break;case 3:St.newInstantiatePermission=lt.AccessConfig.decode(Yt,Yt.uint32());break;default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{sender:(0,vt.isSet)(yt.sender)?String(yt.sender):"",codeId:(0,vt.isSet)(yt.codeId)?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,newInstantiatePermission:(0,vt.isSet)(yt.newInstantiatePermission)?lt.AccessConfig.fromJSON(yt.newInstantiatePermission):void 0}},toJSON(yt){const $t={};return yt.sender!==void 0&&($t.sender=yt.sender),yt.codeId!==void 0&&($t.codeId=(yt.codeId||vt.Long.UZERO).toString()),yt.newInstantiatePermission!==void 0&&($t.newInstantiatePermission=yt.newInstantiatePermission?lt.AccessConfig.toJSON(yt.newInstantiatePermission):void 0),$t},fromPartial(yt){const $t=jt();return $t.sender=yt.sender??"",$t.codeId=yt.codeId!==void 0&&yt.codeId!==null?vt.Long.fromValue(yt.codeId):vt.Long.UZERO,$t.newInstantiatePermission=yt.newInstantiatePermission!==void 0&&yt.newInstantiatePermission!==null?lt.AccessConfig.fromPartial(yt.newInstantiatePermission):void 0,$t}};function Ht(){return{}}d.MsgUpdateInstantiateConfigResponse={encode(yt,$t=mt.Writer.create()){return $t},decode(yt,$t){const Yt=yt instanceof mt.Reader?yt:new mt.Reader(yt);let Kt=$t===void 0?Yt.len:Yt.pos+$t;const St=Ht();for(;Yt.pos>>3){default:Yt.skipType(It&7);break}}return St},fromJSON(yt){return{}},toJSON(yt){return{}},fromPartial(yt){return Ht()}};class an{constructor($t){this.rpc=$t,this.StoreCode=this.StoreCode.bind(this),this.InstantiateContract=this.InstantiateContract.bind(this),this.InstantiateContract2=this.InstantiateContract2.bind(this),this.ExecuteContract=this.ExecuteContract.bind(this),this.MigrateContract=this.MigrateContract.bind(this),this.UpdateAdmin=this.UpdateAdmin.bind(this),this.ClearAdmin=this.ClearAdmin.bind(this),this.UpdateInstantiateConfig=this.UpdateInstantiateConfig.bind(this)}StoreCode($t){const Yt=d.MsgStoreCode.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","StoreCode",Yt).then(St=>d.MsgStoreCodeResponse.decode(new mt.Reader(St)))}InstantiateContract($t){const Yt=d.MsgInstantiateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract",Yt).then(St=>d.MsgInstantiateContractResponse.decode(new mt.Reader(St)))}InstantiateContract2($t){const Yt=d.MsgInstantiateContract2.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract2",Yt).then(St=>d.MsgInstantiateContract2Response.decode(new mt.Reader(St)))}ExecuteContract($t){const Yt=d.MsgExecuteContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ExecuteContract",Yt).then(St=>d.MsgExecuteContractResponse.decode(new mt.Reader(St)))}MigrateContract($t){const Yt=d.MsgMigrateContract.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","MigrateContract",Yt).then(St=>d.MsgMigrateContractResponse.decode(new mt.Reader(St)))}UpdateAdmin($t){const Yt=d.MsgUpdateAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateAdmin",Yt).then(St=>d.MsgUpdateAdminResponse.decode(new mt.Reader(St)))}ClearAdmin($t){const Yt=d.MsgClearAdmin.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ClearAdmin",Yt).then(St=>d.MsgClearAdminResponse.decode(new mt.Reader(St)))}UpdateInstantiateConfig($t){const Yt=d.MsgUpdateInstantiateConfig.encode($t).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateInstantiateConfig",Yt).then(St=>d.MsgUpdateInstantiateConfigResponse.decode(new mt.Reader(St)))}}d.MsgClientImpl=an})(tx$6);var tx$5={},client={},upgrade={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt);var Nt=Object.getOwnPropertyDescriptor(nn,Qt);(!Nt||("get"in Nt?!nn.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return nn[Qt]}}),Object.defineProperty(Rt,wt,Nt)}:function(Rt,nn,Qt,wt){wt===void 0&&(wt=Qt),Rt[wt]=nn[Qt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Rt,nn){Object.defineProperty(Rt,"default",{enumerable:!0,value:nn})}:function(Rt,nn){Rt.default=nn}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Rt){if(Rt&&Rt.__esModule)return Rt;var nn={};if(Rt!=null)for(var Qt in Rt)Qt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,Qt)&&b(nn,Rt,Qt);return dt(nn,Rt),nn};Object.defineProperty(d,"__esModule",{value:!0}),d.ModuleVersion=d.CancelSoftwareUpgradeProposal=d.SoftwareUpgradeProposal=d.Plan=d.protobufPackage=void 0;const lt=timestamp,ht=any,mt=helpers,vt=ct(minimal$2);d.protobufPackage="cosmos.upgrade.v1beta1";function kt(){return{name:"",time:void 0,height:mt.Long.ZERO,info:"",upgradedClientState:void 0}}d.Plan={encode(Rt,nn=vt.Writer.create()){return Rt.name!==""&&nn.uint32(10).string(Rt.name),Rt.time!==void 0&<.Timestamp.encode(Rt.time,nn.uint32(18).fork()).ldelim(),Rt.height.isZero()||nn.uint32(24).int64(Rt.height),Rt.info!==""&&nn.uint32(34).string(Rt.info),Rt.upgradedClientState!==void 0&&ht.Any.encode(Rt.upgradedClientState,nn.uint32(42).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=kt();for(;Qt.pos>>3){case 1:Nt.name=Qt.string();break;case 2:Nt.time=lt.Timestamp.decode(Qt,Qt.uint32());break;case 3:Nt.height=Qt.int64();break;case 4:Nt.info=Qt.string();break;case 5:Nt.upgradedClientState=ht.Any.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{name:(0,mt.isSet)(Rt.name)?String(Rt.name):"",time:(0,mt.isSet)(Rt.time)?(0,mt.fromJsonTimestamp)(Rt.time):void 0,height:(0,mt.isSet)(Rt.height)?mt.Long.fromValue(Rt.height):mt.Long.ZERO,info:(0,mt.isSet)(Rt.info)?String(Rt.info):"",upgradedClientState:(0,mt.isSet)(Rt.upgradedClientState)?ht.Any.fromJSON(Rt.upgradedClientState):void 0}},toJSON(Rt){const nn={};return Rt.name!==void 0&&(nn.name=Rt.name),Rt.time!==void 0&&(nn.time=(0,mt.fromTimestamp)(Rt.time).toISOString()),Rt.height!==void 0&&(nn.height=(Rt.height||mt.Long.ZERO).toString()),Rt.info!==void 0&&(nn.info=Rt.info),Rt.upgradedClientState!==void 0&&(nn.upgradedClientState=Rt.upgradedClientState?ht.Any.toJSON(Rt.upgradedClientState):void 0),nn},fromPartial(Rt){const nn=kt();return nn.name=Rt.name??"",nn.time=Rt.time!==void 0&&Rt.time!==null?lt.Timestamp.fromPartial(Rt.time):void 0,nn.height=Rt.height!==void 0&&Rt.height!==null?mt.Long.fromValue(Rt.height):mt.Long.ZERO,nn.info=Rt.info??"",nn.upgradedClientState=Rt.upgradedClientState!==void 0&&Rt.upgradedClientState!==null?ht.Any.fromPartial(Rt.upgradedClientState):void 0,nn}};function Pt(){return{title:"",description:"",plan:void 0}}d.SoftwareUpgradeProposal={encode(Rt,nn=vt.Writer.create()){return Rt.title!==""&&nn.uint32(10).string(Rt.title),Rt.description!==""&&nn.uint32(18).string(Rt.description),Rt.plan!==void 0&&d.Plan.encode(Rt.plan,nn.uint32(26).fork()).ldelim(),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Pt();for(;Qt.pos>>3){case 1:Nt.title=Qt.string();break;case 2:Nt.description=Qt.string();break;case 3:Nt.plan=d.Plan.decode(Qt,Qt.uint32());break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{title:(0,mt.isSet)(Rt.title)?String(Rt.title):"",description:(0,mt.isSet)(Rt.description)?String(Rt.description):"",plan:(0,mt.isSet)(Rt.plan)?d.Plan.fromJSON(Rt.plan):void 0}},toJSON(Rt){const nn={};return Rt.title!==void 0&&(nn.title=Rt.title),Rt.description!==void 0&&(nn.description=Rt.description),Rt.plan!==void 0&&(nn.plan=Rt.plan?d.Plan.toJSON(Rt.plan):void 0),nn},fromPartial(Rt){const nn=Pt();return nn.title=Rt.title??"",nn.description=Rt.description??"",nn.plan=Rt.plan!==void 0&&Rt.plan!==null?d.Plan.fromPartial(Rt.plan):void 0,nn}};function Jt(){return{title:"",description:""}}d.CancelSoftwareUpgradeProposal={encode(Rt,nn=vt.Writer.create()){return Rt.title!==""&&nn.uint32(10).string(Rt.title),Rt.description!==""&&nn.uint32(18).string(Rt.description),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Jt();for(;Qt.pos>>3){case 1:Nt.title=Qt.string();break;case 2:Nt.description=Qt.string();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{title:(0,mt.isSet)(Rt.title)?String(Rt.title):"",description:(0,mt.isSet)(Rt.description)?String(Rt.description):""}},toJSON(Rt){const nn={};return Rt.title!==void 0&&(nn.title=Rt.title),Rt.description!==void 0&&(nn.description=Rt.description),nn},fromPartial(Rt){const nn=Jt();return nn.title=Rt.title??"",nn.description=Rt.description??"",nn}};function Zt(){return{name:"",version:mt.Long.UZERO}}d.ModuleVersion={encode(Rt,nn=vt.Writer.create()){return Rt.name!==""&&nn.uint32(10).string(Rt.name),Rt.version.isZero()||nn.uint32(16).uint64(Rt.version),nn},decode(Rt,nn){const Qt=Rt instanceof vt.Reader?Rt:new vt.Reader(Rt);let wt=nn===void 0?Qt.len:Qt.pos+nn;const Nt=Zt();for(;Qt.pos>>3){case 1:Nt.name=Qt.string();break;case 2:Nt.version=Qt.uint64();break;default:Qt.skipType(xt&7);break}}return Nt},fromJSON(Rt){return{name:(0,mt.isSet)(Rt.name)?String(Rt.name):"",version:(0,mt.isSet)(Rt.version)?mt.Long.fromValue(Rt.version):mt.Long.UZERO}},toJSON(Rt){const nn={};return Rt.name!==void 0&&(nn.name=Rt.name),Rt.version!==void 0&&(nn.version=(Rt.version||mt.Long.UZERO).toString()),nn},fromPartial(Rt){const nn=Zt();return nn.name=Rt.name??"",nn.version=Rt.version!==void 0&&Rt.version!==null?mt.Long.fromValue(Rt.version):mt.Long.UZERO,nn}}})(upgrade);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Nt,xt,Et){Et===void 0&&(Et=xt);var Bt=Object.getOwnPropertyDescriptor(Nt,xt);(!Bt||("get"in Bt?!Nt.__esModule:Bt.writable||Bt.configurable))&&(Bt={enumerable:!0,get:function(){return Nt[xt]}}),Object.defineProperty(wt,Et,Bt)}:function(wt,Nt,xt,Et){Et===void 0&&(Et=xt),wt[Et]=Nt[xt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Nt){Object.defineProperty(wt,"default",{enumerable:!0,value:Nt})}:function(wt,Nt){wt.default=Nt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Nt={};if(wt!=null)for(var xt in wt)xt!=="default"&&Object.prototype.hasOwnProperty.call(wt,xt)&&b(Nt,wt,xt);return dt(Nt,wt),Nt};Object.defineProperty(d,"__esModule",{value:!0}),d.Params=d.Height=d.UpgradeProposal=d.ClientUpdateProposal=d.ClientConsensusStates=d.ConsensusStateWithHeight=d.IdentifiedClientState=d.protobufPackage=void 0;const lt=any,ht=upgrade,mt=ct(minimal$2),vt=helpers;d.protobufPackage="ibc.core.client.v1";function kt(){return{clientId:"",clientState:void 0}}d.IdentifiedClientState={encode(wt,Nt=mt.Writer.create()){return wt.clientId!==""&&Nt.uint32(10).string(wt.clientId),wt.clientState!==void 0&<.Any.encode(wt.clientState,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.clientId=xt.string();break;case 2:Bt.clientState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{clientId:(0,vt.isSet)(wt.clientId)?String(wt.clientId):"",clientState:(0,vt.isSet)(wt.clientState)?lt.Any.fromJSON(wt.clientState):void 0}},toJSON(wt){const Nt={};return wt.clientId!==void 0&&(Nt.clientId=wt.clientId),wt.clientState!==void 0&&(Nt.clientState=wt.clientState?lt.Any.toJSON(wt.clientState):void 0),Nt},fromPartial(wt){const Nt=kt();return Nt.clientId=wt.clientId??"",Nt.clientState=wt.clientState!==void 0&&wt.clientState!==null?lt.Any.fromPartial(wt.clientState):void 0,Nt}};function Pt(){return{height:void 0,consensusState:void 0}}d.ConsensusStateWithHeight={encode(wt,Nt=mt.Writer.create()){return wt.height!==void 0&&d.Height.encode(wt.height,Nt.uint32(10).fork()).ldelim(),wt.consensusState!==void 0&<.Any.encode(wt.consensusState,Nt.uint32(18).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){case 1:Bt.height=d.Height.decode(xt,xt.uint32());break;case 2:Bt.consensusState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{height:(0,vt.isSet)(wt.height)?d.Height.fromJSON(wt.height):void 0,consensusState:(0,vt.isSet)(wt.consensusState)?lt.Any.fromJSON(wt.consensusState):void 0}},toJSON(wt){const Nt={};return wt.height!==void 0&&(Nt.height=wt.height?d.Height.toJSON(wt.height):void 0),wt.consensusState!==void 0&&(Nt.consensusState=wt.consensusState?lt.Any.toJSON(wt.consensusState):void 0),Nt},fromPartial(wt){const Nt=Pt();return Nt.height=wt.height!==void 0&&wt.height!==null?d.Height.fromPartial(wt.height):void 0,Nt.consensusState=wt.consensusState!==void 0&&wt.consensusState!==null?lt.Any.fromPartial(wt.consensusState):void 0,Nt}};function Jt(){return{clientId:"",consensusStates:[]}}d.ClientConsensusStates={encode(wt,Nt=mt.Writer.create()){wt.clientId!==""&&Nt.uint32(10).string(wt.clientId);for(const xt of wt.consensusStates)d.ConsensusStateWithHeight.encode(xt,Nt.uint32(18).fork()).ldelim();return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){case 1:Bt.clientId=xt.string();break;case 2:Bt.consensusStates.push(d.ConsensusStateWithHeight.decode(xt,xt.uint32()));break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{clientId:(0,vt.isSet)(wt.clientId)?String(wt.clientId):"",consensusStates:Array.isArray(wt==null?void 0:wt.consensusStates)?wt.consensusStates.map(Nt=>d.ConsensusStateWithHeight.fromJSON(Nt)):[]}},toJSON(wt){const Nt={};return wt.clientId!==void 0&&(Nt.clientId=wt.clientId),wt.consensusStates?Nt.consensusStates=wt.consensusStates.map(xt=>xt?d.ConsensusStateWithHeight.toJSON(xt):void 0):Nt.consensusStates=[],Nt},fromPartial(wt){var xt;const Nt=Jt();return Nt.clientId=wt.clientId??"",Nt.consensusStates=((xt=wt.consensusStates)==null?void 0:xt.map(Et=>d.ConsensusStateWithHeight.fromPartial(Et)))||[],Nt}};function Zt(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}d.ClientUpdateProposal={encode(wt,Nt=mt.Writer.create()){return wt.title!==""&&Nt.uint32(10).string(wt.title),wt.description!==""&&Nt.uint32(18).string(wt.description),wt.subjectClientId!==""&&Nt.uint32(26).string(wt.subjectClientId),wt.substituteClientId!==""&&Nt.uint32(34).string(wt.substituteClientId),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){case 1:Bt.title=xt.string();break;case 2:Bt.description=xt.string();break;case 3:Bt.subjectClientId=xt.string();break;case 4:Bt.substituteClientId=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{title:(0,vt.isSet)(wt.title)?String(wt.title):"",description:(0,vt.isSet)(wt.description)?String(wt.description):"",subjectClientId:(0,vt.isSet)(wt.subjectClientId)?String(wt.subjectClientId):"",substituteClientId:(0,vt.isSet)(wt.substituteClientId)?String(wt.substituteClientId):""}},toJSON(wt){const Nt={};return wt.title!==void 0&&(Nt.title=wt.title),wt.description!==void 0&&(Nt.description=wt.description),wt.subjectClientId!==void 0&&(Nt.subjectClientId=wt.subjectClientId),wt.substituteClientId!==void 0&&(Nt.substituteClientId=wt.substituteClientId),Nt},fromPartial(wt){const Nt=Zt();return Nt.title=wt.title??"",Nt.description=wt.description??"",Nt.subjectClientId=wt.subjectClientId??"",Nt.substituteClientId=wt.substituteClientId??"",Nt}};function Rt(){return{title:"",description:"",plan:void 0,upgradedClientState:void 0}}d.UpgradeProposal={encode(wt,Nt=mt.Writer.create()){return wt.title!==""&&Nt.uint32(10).string(wt.title),wt.description!==""&&Nt.uint32(18).string(wt.description),wt.plan!==void 0&&ht.Plan.encode(wt.plan,Nt.uint32(26).fork()).ldelim(),wt.upgradedClientState!==void 0&<.Any.encode(wt.upgradedClientState,Nt.uint32(34).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){case 1:Bt.title=xt.string();break;case 2:Bt.description=xt.string();break;case 3:Bt.plan=ht.Plan.decode(xt,xt.uint32());break;case 4:Bt.upgradedClientState=lt.Any.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{title:(0,vt.isSet)(wt.title)?String(wt.title):"",description:(0,vt.isSet)(wt.description)?String(wt.description):"",plan:(0,vt.isSet)(wt.plan)?ht.Plan.fromJSON(wt.plan):void 0,upgradedClientState:(0,vt.isSet)(wt.upgradedClientState)?lt.Any.fromJSON(wt.upgradedClientState):void 0}},toJSON(wt){const Nt={};return wt.title!==void 0&&(Nt.title=wt.title),wt.description!==void 0&&(Nt.description=wt.description),wt.plan!==void 0&&(Nt.plan=wt.plan?ht.Plan.toJSON(wt.plan):void 0),wt.upgradedClientState!==void 0&&(Nt.upgradedClientState=wt.upgradedClientState?lt.Any.toJSON(wt.upgradedClientState):void 0),Nt},fromPartial(wt){const Nt=Rt();return Nt.title=wt.title??"",Nt.description=wt.description??"",Nt.plan=wt.plan!==void 0&&wt.plan!==null?ht.Plan.fromPartial(wt.plan):void 0,Nt.upgradedClientState=wt.upgradedClientState!==void 0&&wt.upgradedClientState!==null?lt.Any.fromPartial(wt.upgradedClientState):void 0,Nt}};function nn(){return{revisionNumber:vt.Long.UZERO,revisionHeight:vt.Long.UZERO}}d.Height={encode(wt,Nt=mt.Writer.create()){return wt.revisionNumber.isZero()||Nt.uint32(8).uint64(wt.revisionNumber),wt.revisionHeight.isZero()||Nt.uint32(16).uint64(wt.revisionHeight),Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=nn();for(;xt.pos>>3){case 1:Bt.revisionNumber=xt.uint64();break;case 2:Bt.revisionHeight=xt.uint64();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{revisionNumber:(0,vt.isSet)(wt.revisionNumber)?vt.Long.fromValue(wt.revisionNumber):vt.Long.UZERO,revisionHeight:(0,vt.isSet)(wt.revisionHeight)?vt.Long.fromValue(wt.revisionHeight):vt.Long.UZERO}},toJSON(wt){const Nt={};return wt.revisionNumber!==void 0&&(Nt.revisionNumber=(wt.revisionNumber||vt.Long.UZERO).toString()),wt.revisionHeight!==void 0&&(Nt.revisionHeight=(wt.revisionHeight||vt.Long.UZERO).toString()),Nt},fromPartial(wt){const Nt=nn();return Nt.revisionNumber=wt.revisionNumber!==void 0&&wt.revisionNumber!==null?vt.Long.fromValue(wt.revisionNumber):vt.Long.UZERO,Nt.revisionHeight=wt.revisionHeight!==void 0&&wt.revisionHeight!==null?vt.Long.fromValue(wt.revisionHeight):vt.Long.UZERO,Nt}};function Qt(){return{allowedClients:[]}}d.Params={encode(wt,Nt=mt.Writer.create()){for(const xt of wt.allowedClients)Nt.uint32(10).string(xt);return Nt},decode(wt,Nt){const xt=wt instanceof mt.Reader?wt:new mt.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Qt();for(;xt.pos>>3){case 1:Bt.allowedClients.push(xt.string());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{allowedClients:Array.isArray(wt==null?void 0:wt.allowedClients)?wt.allowedClients.map(Nt=>String(Nt)):[]}},toJSON(wt){const Nt={};return wt.allowedClients?Nt.allowedClients=wt.allowedClients.map(xt=>xt):Nt.allowedClients=[],Nt},fromPartial(wt){var xt;const Nt=Qt();return Nt.allowedClients=((xt=wt.allowedClients)==null?void 0:xt.map(Et=>Et))||[],Nt}}})(client);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn);var wt=Object.getOwnPropertyDescriptor(Rt,nn);(!wt||("get"in wt?!Rt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return Rt[nn]}}),Object.defineProperty(Zt,Qt,wt)}:function(Zt,Rt,nn,Qt){Qt===void 0&&(Qt=nn),Zt[Qt]=Rt[nn]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Zt,Rt){Object.defineProperty(Zt,"default",{enumerable:!0,value:Rt})}:function(Zt,Rt){Zt.default=Rt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Zt){if(Zt&&Zt.__esModule)return Zt;var Rt={};if(Zt!=null)for(var nn in Zt)nn!=="default"&&Object.prototype.hasOwnProperty.call(Zt,nn)&&b(Rt,Zt,nn);return dt(Rt,Zt),Rt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgTransferResponse=d.MsgTransfer=d.protobufPackage=void 0;const lt=coin$1,ht=client,mt=helpers,vt=ct(minimal$2);d.protobufPackage="ibc.applications.transfer.v1";function kt(){return{sourcePort:"",sourceChannel:"",token:void 0,sender:"",receiver:"",timeoutHeight:void 0,timeoutTimestamp:mt.Long.UZERO,memo:""}}d.MsgTransfer={encode(Zt,Rt=vt.Writer.create()){return Zt.sourcePort!==""&&Rt.uint32(10).string(Zt.sourcePort),Zt.sourceChannel!==""&&Rt.uint32(18).string(Zt.sourceChannel),Zt.token!==void 0&<.Coin.encode(Zt.token,Rt.uint32(26).fork()).ldelim(),Zt.sender!==""&&Rt.uint32(34).string(Zt.sender),Zt.receiver!==""&&Rt.uint32(42).string(Zt.receiver),Zt.timeoutHeight!==void 0&&ht.Height.encode(Zt.timeoutHeight,Rt.uint32(50).fork()).ldelim(),Zt.timeoutTimestamp.isZero()||Rt.uint32(56).uint64(Zt.timeoutTimestamp),Zt.memo!==""&&Rt.uint32(66).string(Zt.memo),Rt},decode(Zt,Rt){const nn=Zt instanceof vt.Reader?Zt:new vt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=kt();for(;nn.pos>>3){case 1:wt.sourcePort=nn.string();break;case 2:wt.sourceChannel=nn.string();break;case 3:wt.token=lt.Coin.decode(nn,nn.uint32());break;case 4:wt.sender=nn.string();break;case 5:wt.receiver=nn.string();break;case 6:wt.timeoutHeight=ht.Height.decode(nn,nn.uint32());break;case 7:wt.timeoutTimestamp=nn.uint64();break;case 8:wt.memo=nn.string();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{sourcePort:(0,mt.isSet)(Zt.sourcePort)?String(Zt.sourcePort):"",sourceChannel:(0,mt.isSet)(Zt.sourceChannel)?String(Zt.sourceChannel):"",token:(0,mt.isSet)(Zt.token)?lt.Coin.fromJSON(Zt.token):void 0,sender:(0,mt.isSet)(Zt.sender)?String(Zt.sender):"",receiver:(0,mt.isSet)(Zt.receiver)?String(Zt.receiver):"",timeoutHeight:(0,mt.isSet)(Zt.timeoutHeight)?ht.Height.fromJSON(Zt.timeoutHeight):void 0,timeoutTimestamp:(0,mt.isSet)(Zt.timeoutTimestamp)?mt.Long.fromValue(Zt.timeoutTimestamp):mt.Long.UZERO,memo:(0,mt.isSet)(Zt.memo)?String(Zt.memo):""}},toJSON(Zt){const Rt={};return Zt.sourcePort!==void 0&&(Rt.sourcePort=Zt.sourcePort),Zt.sourceChannel!==void 0&&(Rt.sourceChannel=Zt.sourceChannel),Zt.token!==void 0&&(Rt.token=Zt.token?lt.Coin.toJSON(Zt.token):void 0),Zt.sender!==void 0&&(Rt.sender=Zt.sender),Zt.receiver!==void 0&&(Rt.receiver=Zt.receiver),Zt.timeoutHeight!==void 0&&(Rt.timeoutHeight=Zt.timeoutHeight?ht.Height.toJSON(Zt.timeoutHeight):void 0),Zt.timeoutTimestamp!==void 0&&(Rt.timeoutTimestamp=(Zt.timeoutTimestamp||mt.Long.UZERO).toString()),Zt.memo!==void 0&&(Rt.memo=Zt.memo),Rt},fromPartial(Zt){const Rt=kt();return Rt.sourcePort=Zt.sourcePort??"",Rt.sourceChannel=Zt.sourceChannel??"",Rt.token=Zt.token!==void 0&&Zt.token!==null?lt.Coin.fromPartial(Zt.token):void 0,Rt.sender=Zt.sender??"",Rt.receiver=Zt.receiver??"",Rt.timeoutHeight=Zt.timeoutHeight!==void 0&&Zt.timeoutHeight!==null?ht.Height.fromPartial(Zt.timeoutHeight):void 0,Rt.timeoutTimestamp=Zt.timeoutTimestamp!==void 0&&Zt.timeoutTimestamp!==null?mt.Long.fromValue(Zt.timeoutTimestamp):mt.Long.UZERO,Rt.memo=Zt.memo??"",Rt}};function Pt(){return{sequence:mt.Long.UZERO}}d.MsgTransferResponse={encode(Zt,Rt=vt.Writer.create()){return Zt.sequence.isZero()||Rt.uint32(8).uint64(Zt.sequence),Rt},decode(Zt,Rt){const nn=Zt instanceof vt.Reader?Zt:new vt.Reader(Zt);let Qt=Rt===void 0?nn.len:nn.pos+Rt;const wt=Pt();for(;nn.pos>>3){case 1:wt.sequence=nn.uint64();break;default:nn.skipType(Nt&7);break}}return wt},fromJSON(Zt){return{sequence:(0,mt.isSet)(Zt.sequence)?mt.Long.fromValue(Zt.sequence):mt.Long.UZERO}},toJSON(Zt){const Rt={};return Zt.sequence!==void 0&&(Rt.sequence=(Zt.sequence||mt.Long.UZERO).toString()),Rt},fromPartial(Zt){const Rt=Pt();return Rt.sequence=Zt.sequence!==void 0&&Zt.sequence!==null?mt.Long.fromValue(Zt.sequence):mt.Long.UZERO,Rt}};class Jt{constructor(Rt){this.rpc=Rt,this.Transfer=this.Transfer.bind(this)}Transfer(Rt){const nn=d.MsgTransfer.encode(Rt).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",nn).then(wt=>d.MsgTransferResponse.decode(new vt.Reader(wt)))}}d.MsgClientImpl=Jt})(tx$5);var fastDeepEqual=function d(b,dt){if(b===dt)return!0;if(b&&dt&&typeof b=="object"&&typeof dt=="object"){if(b.constructor!==dt.constructor)return!1;var ct,lt,ht;if(Array.isArray(b)){if(ct=b.length,ct!=dt.length)return!1;for(lt=ct;lt--!==0;)if(!d(b[lt],dt[lt]))return!1;return!0}if(b.constructor===RegExp)return b.source===dt.source&&b.flags===dt.flags;if(b.valueOf!==Object.prototype.valueOf)return b.valueOf()===dt.valueOf();if(b.toString!==Object.prototype.toString)return b.toString()===dt.toString();if(ht=Object.keys(b),ct=ht.length,ct!==Object.keys(dt).length)return!1;for(lt=ct;lt--!==0;)if(!Object.prototype.hasOwnProperty.call(dt,ht[lt]))return!1;for(lt=ct;lt--!==0;){var mt=ht[lt];if(!d(b[mt],dt[mt]))return!1}return!0}return b!==b&&dt!==dt},aminomsgs={},__importDefault$d=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(aminomsgs,"__esModule",{value:!0});aminomsgs.createCyberAminoConverters=aminomsgs.isMsgSignData=aminomsgs.isAminoMsgWithdrawWithinBatch=aminomsgs.isAminoMsgDepositWithinBatch=aminomsgs.isAminoMsgSwapWithinBatch=aminomsgs.isAminoMsgCreatePool=aminomsgs.isAminoMsgEditRouteName=aminomsgs.isAminoMsgDeleteRoute=aminomsgs.isAminoMsgEditRoute=aminomsgs.isAminoMsgCreateRoute=aminomsgs.isAminoMsgInvestmint=aminomsgs.isAminoMsgCyberlink=void 0;const utils_1=build$9,long_1$2=__importDefault$d(long);function isAminoMsgCyberlink(d){return d.type==="cyber/MsgCyberlink"}aminomsgs.isAminoMsgCyberlink=isAminoMsgCyberlink;function isAminoMsgInvestmint(d){return d.type==="cyber/MsgInvestmint"}aminomsgs.isAminoMsgInvestmint=isAminoMsgInvestmint;function isAminoMsgCreateRoute(d){return d.type==="cyber/MsgCreateRoute"}aminomsgs.isAminoMsgCreateRoute=isAminoMsgCreateRoute;function isAminoMsgEditRoute(d){return d.type==="cyber/MsgEditRoute"}aminomsgs.isAminoMsgEditRoute=isAminoMsgEditRoute;function isAminoMsgDeleteRoute(d){return d.type==="cyber/MsgDeleteRoute"}aminomsgs.isAminoMsgDeleteRoute=isAminoMsgDeleteRoute;function isAminoMsgEditRouteName(d){return d.type==="cyber/MsgEditRouteName"}aminomsgs.isAminoMsgEditRouteName=isAminoMsgEditRouteName;function isAminoMsgCreatePool(d){return d.type==="liquidity/MsgCreatePool"}aminomsgs.isAminoMsgCreatePool=isAminoMsgCreatePool;function isAminoMsgSwapWithinBatch(d){return d.type==="liquidity/MsgSwapWithinBatch"}aminomsgs.isAminoMsgSwapWithinBatch=isAminoMsgSwapWithinBatch;function isAminoMsgDepositWithinBatch(d){return d.type==="liquidity/MsgDepositWithinBatch"}aminomsgs.isAminoMsgDepositWithinBatch=isAminoMsgDepositWithinBatch;function isAminoMsgWithdrawWithinBatch(d){return d.type==="liquidity/MsgWithdrawWithinBatch"}aminomsgs.isAminoMsgWithdrawWithinBatch=isAminoMsgWithdrawWithinBatch;function isMsgSignData(d){const b=d;return!(b.type!=="sign/MsgSignData"||!(0,utils_1.isNonNullObject)(b.value)||typeof b.value.signer!="string"||typeof b.value.data!="string")}aminomsgs.isMsgSignData=isMsgSignData;function omitDefault(d){if(typeof d=="string")return d===""?void 0:d;if(typeof d=="number")return d===0?void 0:d;if(long_1$2.default.isLong(d))return d.isZero()?void 0:d;throw new Error(`Got unsupported type '${typeof d}'`)}function createCyberAminoConverters(){return{"/cyber.graph.v1beta1.MsgCyberlink":{aminoType:"cyber/MsgCyberlink",toAmino:({neuron:d,links:b})=>({neuron:d,links:b}),fromAmino:({neuron:d,links:b})=>({neuron:d,links:b})},"/cyber.resources.v1beta1.MsgInvestmint":{aminoType:"cyber/MsgInvestmint",toAmino:({neuron:d,amount:b,resource:dt,length:ct})=>((0,utils_1.assertDefinedAndNotNull)(b,"missing amount"),{neuron:d,amount:b,resource:dt,length:ct.toString()}),fromAmino:({neuron:d,amount:b,resource:dt,length:ct})=>({neuron:d,amount:b,resource:dt,length:long_1$2.default.fromString(ct)})},"/cyber.grid.v1beta1.MsgCreateRoute":{aminoType:"cyber/MsgCreateRoute",toAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt}),fromAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt})},"/cyber.grid.v1beta1.MsgEditRoute":{aminoType:"cyber/MsgEditRoute",toAmino:({source:d,destination:b,value:dt})=>((0,utils_1.assertDefinedAndNotNull)(dt,"missing value"),{source:d,destination:b,value:dt}),fromAmino:({source:d,destination:b,value:dt})=>({source:d,destination:b,value:dt})},"/cyber.grid.v1beta1.MsgDeleteRoute":{aminoType:"cyber/MsgDeleteRoute",toAmino:({source:d,destination:b})=>({source:d,destination:b}),fromAmino:({source:d,destination:b})=>({source:d,destination:b})},"/cyber.grid.v1beta1.MsgEditRouteName":{aminoType:"cyber/MsgEditRouteName",toAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt}),fromAmino:({source:d,destination:b,name:dt})=>({source:d,destination:b,name:dt})},"/tendermint.liquidity.v1beta1.MsgCreatePool":{aminoType:"liquidity/MsgCreatePool",toAmino:({poolCreatorAddress:d,poolTypeId:b,depositCoins:dt})=>({pool_creator_address:d,pool_type_id:b,deposit_coins:[...dt]}),fromAmino:({pool_creator_address:d,pool_type_id:b,deposit_coins:dt})=>({poolCreatorAddress:d,poolTypeId:b,depositCoins:[...dt]})},"/tendermint.liquidity.v1beta1.MsgSwapWithinBatch":{aminoType:"liquidity/MsgSwapWithinBatch",toAmino:({swapRequesterAddress:d,poolId:b,swapTypeId:dt,offerCoin:ct,demandCoinDenom:lt,offerCoinFee:ht,orderPrice:mt})=>{var kt;const vt=mt.split("");for(;vt.length<19;)vt.unshift("0");return vt.splice(vt.length-18,0,"."),{swap_requester_address:d,pool_id:""+((kt=omitDefault(b))==null?void 0:kt.toString()),swap_type_id:dt,offer_coin:ct,demand_coin_denom:lt,offer_coin_fee:ht,order_price:vt.join("")}},fromAmino:({swap_requester_address:d,pool_id:b,swap_type_id:dt,offer_coin:ct,demand_coin_denom:lt,offer_coin_fee:ht,order_price:mt})=>({swapRequesterAddress:d,poolId:parseInt(b)||0,swapTypeId:dt,offerCoin:ct,demandCoinDenom:lt,offerCoinFee:ht,orderPrice:mt.replace(".","").replace(/^0+/,"")})},"/tendermint.liquidity.v1beta1.MsgDepositWithinBatch":{aminoType:"liquidity/MsgDepositWithinBatch",toAmino:({depositorAddress:d,poolId:b,depositCoins:dt})=>{var ct;return{depositor_address:d,pool_id:""+((ct=omitDefault(b))==null?void 0:ct.toString()),deposit_coins:[...dt]}},fromAmino:({depositor_address:d,pool_id:b,deposit_coins:dt})=>({depositorAddress:d,poolId:parseInt(b)||0,depositCoins:[...dt]})},"/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch":{aminoType:"liquidity/MsgWithdrawWithinBatch",toAmino:({withdrawerAddress:d,poolId:b,poolCoin:dt})=>{var ct;return{withdrawer_address:d,pool_id:""+((ct=omitDefault(b))==null?void 0:ct.toString()),pool_coin:dt}},fromAmino:({withdrawer_address:d,pool_id:b,pool_coin:dt})=>({withdrawerAddress:d,poolId:parseInt(b)||0,poolCoin:dt})}}}aminomsgs.createCyberAminoConverters=createCyberAminoConverters;var tx$4={},types$2={},__importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(types$2,"__esModule",{value:!0});types$2.Link=types$2.protobufPackage=void 0;const long_1$1=__importDefault$c(long),minimal_1=__importDefault$c(minimal);types$2.protobufPackage="cyber.graph.v1beta1";function createBaseLink(){return{from:"",to:""}}types$2.Link={encode(d,b=minimal_1.default.Writer.create()){return d.from!==""&&b.uint32(10).string(d.from),d.to!==""&&b.uint32(18).string(d.to),b},decode(d,b){const dt=d instanceof minimal_1.default.Reader?d:new minimal_1.default.Reader(d);let ct=b===void 0?dt.len:dt.pos+b;const lt=createBaseLink();for(;dt.pos>>3){case 1:lt.from=dt.string();break;case 2:lt.to=dt.string();break;default:dt.skipType(ht&7);break}}return lt},fromJSON(d){return{from:isSet(d.from)?String(d.from):"",to:isSet(d.to)?String(d.to):""}},toJSON(d){const b={};return d.from!==void 0&&(b.from=d.from),d.to!==void 0&&(b.to=d.to),b},fromPartial(d){const b=createBaseLink();return b.from=d.from??"",b.to=d.to??"",b}};minimal_1.default.util.Long!==long_1$1.default&&(minimal_1.default.util.Long=long_1$1.default,minimal_1.default.configure());function isSet(d){return d!=null}(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgCyberlinkResponse=d.MsgCyberlink=d.protobufPackage=void 0;const dt=b(long),ct=types$2,lt=b(minimal);d.protobufPackage="cyber.graph.v1beta1";function ht(){return{neuron:"",links:[]}}d.MsgCyberlink={encode(Pt,Jt=lt.default.Writer.create()){Pt.neuron!==""&&Jt.uint32(10).string(Pt.neuron);for(const Zt of Pt.links)ct.Link.encode(Zt,Jt.uint32(18).fork()).ldelim();return Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=ht();for(;Zt.pos>>3){case 1:nn.neuron=Zt.string();break;case 2:nn.links.push(ct.Link.decode(Zt,Zt.uint32()));break;default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{neuron:kt(Pt.neuron)?String(Pt.neuron):"",links:Array.isArray(Pt==null?void 0:Pt.links)?Pt.links.map(Jt=>ct.Link.fromJSON(Jt)):[]}},toJSON(Pt){const Jt={};return Pt.neuron!==void 0&&(Jt.neuron=Pt.neuron),Pt.links?Jt.links=Pt.links.map(Zt=>Zt?ct.Link.toJSON(Zt):void 0):Jt.links=[],Jt},fromPartial(Pt){var Zt;const Jt=ht();return Jt.neuron=Pt.neuron??"",Jt.links=((Zt=Pt.links)==null?void 0:Zt.map(Rt=>ct.Link.fromPartial(Rt)))||[],Jt}};function mt(){return{}}d.MsgCyberlinkResponse={encode(Pt,Jt=lt.default.Writer.create()){return Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=mt();for(;Zt.pos>>3){default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{}},toJSON(Pt){return{}},fromPartial(Pt){return mt()}};class vt{constructor(Jt){this.rpc=Jt,this.Cyberlink=this.Cyberlink.bind(this)}Cyberlink(Jt){const Zt=d.MsgCyberlink.encode(Jt).finish();return this.rpc.request("cyber.graph.v1beta1.Msg","Cyberlink",Zt).then(nn=>d.MsgCyberlinkResponse.decode(new lt.default.Reader(nn)))}}d.MsgClientImpl=vt,lt.default.util.Long!==dt.default&&(lt.default.util.Long=dt.default,lt.default.configure());function kt(Pt){return Pt!=null}})(tx$4);var tx$3={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(wt){return wt&&wt.__esModule?wt:{default:wt}};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgEditRouteNameResponse=d.MsgDeleteRouteResponse=d.MsgEditRouteResponse=d.MsgCreateRouteResponse=d.MsgEditRouteName=d.MsgDeleteRoute=d.MsgEditRoute=d.MsgCreateRoute=d.protobufPackage=void 0;const dt=coin,ct=b(long),lt=b(minimal);d.protobufPackage="cyber.grid.v1beta1";function ht(){return{source:"",destination:"",name:""}}d.MsgCreateRoute={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),wt.name!==""&&Nt.uint32(26).string(wt.name),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=ht();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;case 3:Bt.name=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):"",name:Qt(wt.name)?String(wt.name):""}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),wt.name!==void 0&&(Nt.name=wt.name),Nt},fromPartial(wt){const Nt=ht();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt.name=wt.name??"",Nt}};function mt(){return{source:"",destination:"",value:void 0}}d.MsgEditRoute={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),wt.value!==void 0&&dt.Coin.encode(wt.value,Nt.uint32(26).fork()).ldelim(),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=mt();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;case 3:Bt.value=dt.Coin.decode(xt,xt.uint32());break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):"",value:Qt(wt.value)?dt.Coin.fromJSON(wt.value):void 0}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),wt.value!==void 0&&(Nt.value=wt.value?dt.Coin.toJSON(wt.value):void 0),Nt},fromPartial(wt){const Nt=mt();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt.value=wt.value!==void 0&&wt.value!==null?dt.Coin.fromPartial(wt.value):void 0,Nt}};function vt(){return{source:"",destination:""}}d.MsgDeleteRoute={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=vt();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):""}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),Nt},fromPartial(wt){const Nt=vt();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt}};function kt(){return{source:"",destination:"",name:""}}d.MsgEditRouteName={encode(wt,Nt=lt.default.Writer.create()){return wt.source!==""&&Nt.uint32(10).string(wt.source),wt.destination!==""&&Nt.uint32(18).string(wt.destination),wt.name!==""&&Nt.uint32(26).string(wt.name),Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=kt();for(;xt.pos>>3){case 1:Bt.source=xt.string();break;case 2:Bt.destination=xt.string();break;case 3:Bt.name=xt.string();break;default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{source:Qt(wt.source)?String(wt.source):"",destination:Qt(wt.destination)?String(wt.destination):"",name:Qt(wt.name)?String(wt.name):""}},toJSON(wt){const Nt={};return wt.source!==void 0&&(Nt.source=wt.source),wt.destination!==void 0&&(Nt.destination=wt.destination),wt.name!==void 0&&(Nt.name=wt.name),Nt},fromPartial(wt){const Nt=kt();return Nt.source=wt.source??"",Nt.destination=wt.destination??"",Nt.name=wt.name??"",Nt}};function Pt(){return{}}d.MsgCreateRouteResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Pt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Pt()}};function Jt(){return{}}d.MsgEditRouteResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Jt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Jt()}};function Zt(){return{}}d.MsgDeleteRouteResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Zt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Zt()}};function Rt(){return{}}d.MsgEditRouteNameResponse={encode(wt,Nt=lt.default.Writer.create()){return Nt},decode(wt,Nt){const xt=wt instanceof lt.default.Reader?wt:new lt.default.Reader(wt);let Et=Nt===void 0?xt.len:xt.pos+Nt;const Bt=Rt();for(;xt.pos>>3){default:xt.skipType(Tt&7);break}}return Bt},fromJSON(wt){return{}},toJSON(wt){return{}},fromPartial(wt){return Rt()}};class nn{constructor(Nt){this.rpc=Nt,this.CreateRoute=this.CreateRoute.bind(this),this.EditRoute=this.EditRoute.bind(this),this.DeleteRoute=this.DeleteRoute.bind(this),this.EditRouteName=this.EditRouteName.bind(this)}CreateRoute(Nt){const xt=d.MsgCreateRoute.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","CreateRoute",xt).then(Bt=>d.MsgCreateRouteResponse.decode(new lt.default.Reader(Bt)))}EditRoute(Nt){const xt=d.MsgEditRoute.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","EditRoute",xt).then(Bt=>d.MsgEditRouteResponse.decode(new lt.default.Reader(Bt)))}DeleteRoute(Nt){const xt=d.MsgDeleteRoute.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","DeleteRoute",xt).then(Bt=>d.MsgDeleteRouteResponse.decode(new lt.default.Reader(Bt)))}EditRouteName(Nt){const xt=d.MsgEditRouteName.encode(Nt).finish();return this.rpc.request("cyber.grid.v1beta1.Msg","EditRouteName",xt).then(Bt=>d.MsgEditRouteNameResponse.decode(new lt.default.Reader(Bt)))}}d.MsgClientImpl=nn,lt.default.util.Long!==ct.default&&(lt.default.util.Long=ct.default,lt.default.configure());function Qt(wt){return wt!=null}})(tx$3);var tx$2={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgInvestmintResponse=d.MsgInvestmint=d.protobufPackage=void 0;const dt=coin,ct=b(long),lt=b(minimal);d.protobufPackage="cyber.resources.v1beta1";function ht(){return{neuron:"",amount:void 0,resource:"",length:ct.default.UZERO}}d.MsgInvestmint={encode(Pt,Jt=lt.default.Writer.create()){return Pt.neuron!==""&&Jt.uint32(10).string(Pt.neuron),Pt.amount!==void 0&&dt.Coin.encode(Pt.amount,Jt.uint32(18).fork()).ldelim(),Pt.resource!==""&&Jt.uint32(26).string(Pt.resource),Pt.length.isZero()||Jt.uint32(32).uint64(Pt.length),Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=ht();for(;Zt.pos>>3){case 1:nn.neuron=Zt.string();break;case 2:nn.amount=dt.Coin.decode(Zt,Zt.uint32());break;case 3:nn.resource=Zt.string();break;case 4:nn.length=Zt.uint64();break;default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{neuron:kt(Pt.neuron)?String(Pt.neuron):"",amount:kt(Pt.amount)?dt.Coin.fromJSON(Pt.amount):void 0,resource:kt(Pt.resource)?String(Pt.resource):"",length:kt(Pt.length)?ct.default.fromValue(Pt.length):ct.default.UZERO}},toJSON(Pt){const Jt={};return Pt.neuron!==void 0&&(Jt.neuron=Pt.neuron),Pt.amount!==void 0&&(Jt.amount=Pt.amount?dt.Coin.toJSON(Pt.amount):void 0),Pt.resource!==void 0&&(Jt.resource=Pt.resource),Pt.length!==void 0&&(Jt.length=(Pt.length||ct.default.UZERO).toString()),Jt},fromPartial(Pt){const Jt=ht();return Jt.neuron=Pt.neuron??"",Jt.amount=Pt.amount!==void 0&&Pt.amount!==null?dt.Coin.fromPartial(Pt.amount):void 0,Jt.resource=Pt.resource??"",Jt.length=Pt.length!==void 0&&Pt.length!==null?ct.default.fromValue(Pt.length):ct.default.UZERO,Jt}};function mt(){return{}}d.MsgInvestmintResponse={encode(Pt,Jt=lt.default.Writer.create()){return Jt},decode(Pt,Jt){const Zt=Pt instanceof lt.default.Reader?Pt:new lt.default.Reader(Pt);let Rt=Jt===void 0?Zt.len:Zt.pos+Jt;const nn=mt();for(;Zt.pos>>3){default:Zt.skipType(Qt&7);break}}return nn},fromJSON(Pt){return{}},toJSON(Pt){return{}},fromPartial(Pt){return mt()}};class vt{constructor(Jt){this.rpc=Jt,this.Investmint=this.Investmint.bind(this)}Investmint(Jt){const Zt=d.MsgInvestmint.encode(Jt).finish();return this.rpc.request("cyber.resources.v1beta1.Msg","Investmint",Zt).then(nn=>d.MsgInvestmintResponse.decode(new lt.default.Reader(nn)))}}d.MsgClientImpl=vt,lt.default.util.Long!==ct.default&&(lt.default.util.Long=ct.default,lt.default.configure());function kt(Pt){return Pt!=null}})(tx$2);var registryTypes={};(function(d){Object.defineProperty(d,"__esModule",{value:!0}),d.RegistryTypes=d.TendermintRegistryTypes=d.CosmwasmRegistryTypes=d.CosmosRegistryTypes=d.CyberRegistryTypes=void 0;var b;(function(ht){ht.MsgCyberlink="/cyber.graph.v1beta1.MsgCyberlink",ht.MsgInvestmint="/cyber.resources.v1beta1.MsgInvestmint",ht.MsgCreateRoute="/cyber.grid.v1beta1.MsgCreateRoute",ht.MsgEditRoute="/cyber.grid.v1beta1.MsgEditRoute",ht.MsgEditRouteName="/cyber.grid.v1beta1.MsgEditRouteName",ht.MsgDeleteRoute="/cyber.grid.v1beta1.MsgDeleteRoute"})(b=d.CyberRegistryTypes||(d.CyberRegistryTypes={}));var dt;(function(ht){ht.MsgDeposit="/cosmos.gov.v1beta1.MsgDeposit",ht.MsgExec="/cosmos.authz.v1beta1.MsgExec",ht.MsgGrant="/cosmos.authz.v1beta1.MsgGrant",ht.MsgRevoke="/cosmos.authz.v1beta1.MsgRevoke"})(dt=d.CosmosRegistryTypes||(d.CosmosRegistryTypes={}));var ct;(function(ht){ht.MsgClearAdmin="/cosmwasm.wasm.v1beta1.MsgClearAdmin",ht.MsgMigrateContract="/cosmwasm.wasm.v1beta1.MsgMigrateContract",ht.MsgUpdateAdmin="/cosmwasm.wasm.v1beta1.MsgUpdateAdmin",ht.MsgExecuteContract="/cosmwasm.wasm.v1.MsgExecuteContract",ht.MsgInstantiateContract="/cosmwasm.wasm.v1.MsgInstantiateContract",ht.MsgStoreCode="/cosmwasm.wasm.v1.MsgStoreCode"})(ct=d.CosmwasmRegistryTypes||(d.CosmwasmRegistryTypes={}));var lt;(function(ht){ht.MsgSwapWithinBatch="/tendermint.liquidity.v1beta1.MsgSwapWithinBatch",ht.MsgDepositWithinBatch="/tendermint.liquidity.v1beta1.MsgDepositWithinBatch",ht.MsgWithdrawWithinBatch="/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch",ht.MsgCreatePool="/tendermint.liquidity.v1beta1.MsgCreatePool"})(lt=d.TendermintRegistryTypes||(d.TendermintRegistryTypes={})),d.RegistryTypes={cyber:b,cosmos:dt,cosmwasm:ct,tendermint:lt}})(registryTypes);var renderItems={},tx$1={},bank={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt);var Et=Object.getOwnPropertyDescriptor(wt,Nt);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[Nt]}}),Object.defineProperty(Qt,xt,Et)}:function(Qt,wt,Nt,xt){xt===void 0&&(xt=Nt),Qt[xt]=wt[Nt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Qt,wt){Object.defineProperty(Qt,"default",{enumerable:!0,value:wt})}:function(Qt,wt){Qt.default=wt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(Qt){if(Qt&&Qt.__esModule)return Qt;var wt={};if(Qt!=null)for(var Nt in Qt)Nt!=="default"&&Object.prototype.hasOwnProperty.call(Qt,Nt)&&b(wt,Qt,Nt);return dt(wt,Qt),wt};Object.defineProperty(d,"__esModule",{value:!0}),d.Metadata=d.DenomUnit=d.Supply=d.Output=d.Input=d.SendEnabled=d.Params=d.protobufPackage=void 0;const lt=coin$1,ht=ct(minimal$2),mt=helpers;d.protobufPackage="cosmos.bank.v1beta1";function vt(){return{sendEnabled:[],defaultSendEnabled:!1}}d.Params={encode(Qt,wt=ht.Writer.create()){for(const Nt of Qt.sendEnabled)d.SendEnabled.encode(Nt,wt.uint32(10).fork()).ldelim();return Qt.defaultSendEnabled===!0&&wt.uint32(16).bool(Qt.defaultSendEnabled),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=vt();for(;Nt.pos>>3){case 1:Et.sendEnabled.push(d.SendEnabled.decode(Nt,Nt.uint32()));break;case 2:Et.defaultSendEnabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{sendEnabled:Array.isArray(Qt==null?void 0:Qt.sendEnabled)?Qt.sendEnabled.map(wt=>d.SendEnabled.fromJSON(wt)):[],defaultSendEnabled:(0,mt.isSet)(Qt.defaultSendEnabled)?!!Qt.defaultSendEnabled:!1}},toJSON(Qt){const wt={};return Qt.sendEnabled?wt.sendEnabled=Qt.sendEnabled.map(Nt=>Nt?d.SendEnabled.toJSON(Nt):void 0):wt.sendEnabled=[],Qt.defaultSendEnabled!==void 0&&(wt.defaultSendEnabled=Qt.defaultSendEnabled),wt},fromPartial(Qt){var Nt;const wt=vt();return wt.sendEnabled=((Nt=Qt.sendEnabled)==null?void 0:Nt.map(xt=>d.SendEnabled.fromPartial(xt)))||[],wt.defaultSendEnabled=Qt.defaultSendEnabled??!1,wt}};function kt(){return{denom:"",enabled:!1}}d.SendEnabled={encode(Qt,wt=ht.Writer.create()){return Qt.denom!==""&&wt.uint32(10).string(Qt.denom),Qt.enabled===!0&&wt.uint32(16).bool(Qt.enabled),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=kt();for(;Nt.pos>>3){case 1:Et.denom=Nt.string();break;case 2:Et.enabled=Nt.bool();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{denom:(0,mt.isSet)(Qt.denom)?String(Qt.denom):"",enabled:(0,mt.isSet)(Qt.enabled)?!!Qt.enabled:!1}},toJSON(Qt){const wt={};return Qt.denom!==void 0&&(wt.denom=Qt.denom),Qt.enabled!==void 0&&(wt.enabled=Qt.enabled),wt},fromPartial(Qt){const wt=kt();return wt.denom=Qt.denom??"",wt.enabled=Qt.enabled??!1,wt}};function Pt(){return{address:"",coins:[]}}d.Input={encode(Qt,wt=ht.Writer.create()){Qt.address!==""&&wt.uint32(10).string(Qt.address);for(const Nt of Qt.coins)lt.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Pt();for(;Nt.pos>>3){case 1:Et.address=Nt.string();break;case 2:Et.coins.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{address:(0,mt.isSet)(Qt.address)?String(Qt.address):"",coins:Array.isArray(Qt==null?void 0:Qt.coins)?Qt.coins.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.address!==void 0&&(wt.address=Qt.address),Qt.coins?wt.coins=Qt.coins.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.coins=[],wt},fromPartial(Qt){var Nt;const wt=Pt();return wt.address=Qt.address??"",wt.coins=((Nt=Qt.coins)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Jt(){return{address:"",coins:[]}}d.Output={encode(Qt,wt=ht.Writer.create()){Qt.address!==""&&wt.uint32(10).string(Qt.address);for(const Nt of Qt.coins)lt.Coin.encode(Nt,wt.uint32(18).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Jt();for(;Nt.pos>>3){case 1:Et.address=Nt.string();break;case 2:Et.coins.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{address:(0,mt.isSet)(Qt.address)?String(Qt.address):"",coins:Array.isArray(Qt==null?void 0:Qt.coins)?Qt.coins.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.address!==void 0&&(wt.address=Qt.address),Qt.coins?wt.coins=Qt.coins.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.coins=[],wt},fromPartial(Qt){var Nt;const wt=Jt();return wt.address=Qt.address??"",wt.coins=((Nt=Qt.coins)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Zt(){return{total:[]}}d.Supply={encode(Qt,wt=ht.Writer.create()){for(const Nt of Qt.total)lt.Coin.encode(Nt,wt.uint32(10).fork()).ldelim();return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Zt();for(;Nt.pos>>3){case 1:Et.total.push(lt.Coin.decode(Nt,Nt.uint32()));break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{total:Array.isArray(Qt==null?void 0:Qt.total)?Qt.total.map(wt=>lt.Coin.fromJSON(wt)):[]}},toJSON(Qt){const wt={};return Qt.total?wt.total=Qt.total.map(Nt=>Nt?lt.Coin.toJSON(Nt):void 0):wt.total=[],wt},fromPartial(Qt){var Nt;const wt=Zt();return wt.total=((Nt=Qt.total)==null?void 0:Nt.map(xt=>lt.Coin.fromPartial(xt)))||[],wt}};function Rt(){return{denom:"",exponent:0,aliases:[]}}d.DenomUnit={encode(Qt,wt=ht.Writer.create()){Qt.denom!==""&&wt.uint32(10).string(Qt.denom),Qt.exponent!==0&&wt.uint32(16).uint32(Qt.exponent);for(const Nt of Qt.aliases)wt.uint32(26).string(Nt);return wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=Rt();for(;Nt.pos>>3){case 1:Et.denom=Nt.string();break;case 2:Et.exponent=Nt.uint32();break;case 3:Et.aliases.push(Nt.string());break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{denom:(0,mt.isSet)(Qt.denom)?String(Qt.denom):"",exponent:(0,mt.isSet)(Qt.exponent)?Number(Qt.exponent):0,aliases:Array.isArray(Qt==null?void 0:Qt.aliases)?Qt.aliases.map(wt=>String(wt)):[]}},toJSON(Qt){const wt={};return Qt.denom!==void 0&&(wt.denom=Qt.denom),Qt.exponent!==void 0&&(wt.exponent=Math.round(Qt.exponent)),Qt.aliases?wt.aliases=Qt.aliases.map(Nt=>Nt):wt.aliases=[],wt},fromPartial(Qt){var Nt;const wt=Rt();return wt.denom=Qt.denom??"",wt.exponent=Qt.exponent??0,wt.aliases=((Nt=Qt.aliases)==null?void 0:Nt.map(xt=>xt))||[],wt}};function nn(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol:""}}d.Metadata={encode(Qt,wt=ht.Writer.create()){Qt.description!==""&&wt.uint32(10).string(Qt.description);for(const Nt of Qt.denomUnits)d.DenomUnit.encode(Nt,wt.uint32(18).fork()).ldelim();return Qt.base!==""&&wt.uint32(26).string(Qt.base),Qt.display!==""&&wt.uint32(34).string(Qt.display),Qt.name!==""&&wt.uint32(42).string(Qt.name),Qt.symbol!==""&&wt.uint32(50).string(Qt.symbol),wt},decode(Qt,wt){const Nt=Qt instanceof ht.Reader?Qt:new ht.Reader(Qt);let xt=wt===void 0?Nt.len:Nt.pos+wt;const Et=nn();for(;Nt.pos>>3){case 1:Et.description=Nt.string();break;case 2:Et.denomUnits.push(d.DenomUnit.decode(Nt,Nt.uint32()));break;case 3:Et.base=Nt.string();break;case 4:Et.display=Nt.string();break;case 5:Et.name=Nt.string();break;case 6:Et.symbol=Nt.string();break;default:Nt.skipType(Bt&7);break}}return Et},fromJSON(Qt){return{description:(0,mt.isSet)(Qt.description)?String(Qt.description):"",denomUnits:Array.isArray(Qt==null?void 0:Qt.denomUnits)?Qt.denomUnits.map(wt=>d.DenomUnit.fromJSON(wt)):[],base:(0,mt.isSet)(Qt.base)?String(Qt.base):"",display:(0,mt.isSet)(Qt.display)?String(Qt.display):"",name:(0,mt.isSet)(Qt.name)?String(Qt.name):"",symbol:(0,mt.isSet)(Qt.symbol)?String(Qt.symbol):""}},toJSON(Qt){const wt={};return Qt.description!==void 0&&(wt.description=Qt.description),Qt.denomUnits?wt.denomUnits=Qt.denomUnits.map(Nt=>Nt?d.DenomUnit.toJSON(Nt):void 0):wt.denomUnits=[],Qt.base!==void 0&&(wt.base=Qt.base),Qt.display!==void 0&&(wt.display=Qt.display),Qt.name!==void 0&&(wt.name=Qt.name),Qt.symbol!==void 0&&(wt.symbol=Qt.symbol),wt},fromPartial(Qt){var Nt;const wt=nn();return wt.description=Qt.description??"",wt.denomUnits=((Nt=Qt.denomUnits)==null?void 0:Nt.map(xt=>d.DenomUnit.fromPartial(xt)))||[],wt.base=Qt.base??"",wt.display=Qt.display??"",wt.name=Qt.name??"",wt.symbol=Qt.symbol??"",wt}}})(bank);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt);var xt=Object.getOwnPropertyDescriptor(Qt,wt);(!xt||("get"in xt?!Qt.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return Qt[wt]}}),Object.defineProperty(nn,Nt,xt)}:function(nn,Qt,wt,Nt){Nt===void 0&&(Nt=wt),nn[Nt]=Qt[wt]}),dt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(nn,Qt){Object.defineProperty(nn,"default",{enumerable:!0,value:Qt})}:function(nn,Qt){nn.default=Qt}),ct=commonjsGlobal&&commonjsGlobal.__importStar||function(nn){if(nn&&nn.__esModule)return nn;var Qt={};if(nn!=null)for(var wt in nn)wt!=="default"&&Object.prototype.hasOwnProperty.call(nn,wt)&&b(Qt,nn,wt);return dt(Qt,nn),Qt};Object.defineProperty(d,"__esModule",{value:!0}),d.MsgClientImpl=d.MsgMultiSendResponse=d.MsgMultiSend=d.MsgSendResponse=d.MsgSend=d.protobufPackage=void 0;const lt=coin$1,ht=bank,mt=ct(minimal$2),vt=helpers;d.protobufPackage="cosmos.bank.v1beta1";function kt(){return{fromAddress:"",toAddress:"",amount:[]}}d.MsgSend={encode(nn,Qt=mt.Writer.create()){nn.fromAddress!==""&&Qt.uint32(10).string(nn.fromAddress),nn.toAddress!==""&&Qt.uint32(18).string(nn.toAddress);for(const wt of nn.amount)lt.Coin.encode(wt,Qt.uint32(26).fork()).ldelim();return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=kt();for(;wt.pos>>3){case 1:xt.fromAddress=wt.string();break;case 2:xt.toAddress=wt.string();break;case 3:xt.amount.push(lt.Coin.decode(wt,wt.uint32()));break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{fromAddress:(0,vt.isSet)(nn.fromAddress)?String(nn.fromAddress):"",toAddress:(0,vt.isSet)(nn.toAddress)?String(nn.toAddress):"",amount:Array.isArray(nn==null?void 0:nn.amount)?nn.amount.map(Qt=>lt.Coin.fromJSON(Qt)):[]}},toJSON(nn){const Qt={};return nn.fromAddress!==void 0&&(Qt.fromAddress=nn.fromAddress),nn.toAddress!==void 0&&(Qt.toAddress=nn.toAddress),nn.amount?Qt.amount=nn.amount.map(wt=>wt?lt.Coin.toJSON(wt):void 0):Qt.amount=[],Qt},fromPartial(nn){var wt;const Qt=kt();return Qt.fromAddress=nn.fromAddress??"",Qt.toAddress=nn.toAddress??"",Qt.amount=((wt=nn.amount)==null?void 0:wt.map(Nt=>lt.Coin.fromPartial(Nt)))||[],Qt}};function Pt(){return{}}d.MsgSendResponse={encode(nn,Qt=mt.Writer.create()){return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Pt();for(;wt.pos>>3){default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{}},toJSON(nn){return{}},fromPartial(nn){return Pt()}};function Jt(){return{inputs:[],outputs:[]}}d.MsgMultiSend={encode(nn,Qt=mt.Writer.create()){for(const wt of nn.inputs)ht.Input.encode(wt,Qt.uint32(10).fork()).ldelim();for(const wt of nn.outputs)ht.Output.encode(wt,Qt.uint32(18).fork()).ldelim();return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Jt();for(;wt.pos>>3){case 1:xt.inputs.push(ht.Input.decode(wt,wt.uint32()));break;case 2:xt.outputs.push(ht.Output.decode(wt,wt.uint32()));break;default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{inputs:Array.isArray(nn==null?void 0:nn.inputs)?nn.inputs.map(Qt=>ht.Input.fromJSON(Qt)):[],outputs:Array.isArray(nn==null?void 0:nn.outputs)?nn.outputs.map(Qt=>ht.Output.fromJSON(Qt)):[]}},toJSON(nn){const Qt={};return nn.inputs?Qt.inputs=nn.inputs.map(wt=>wt?ht.Input.toJSON(wt):void 0):Qt.inputs=[],nn.outputs?Qt.outputs=nn.outputs.map(wt=>wt?ht.Output.toJSON(wt):void 0):Qt.outputs=[],Qt},fromPartial(nn){var wt,Nt;const Qt=Jt();return Qt.inputs=((wt=nn.inputs)==null?void 0:wt.map(xt=>ht.Input.fromPartial(xt)))||[],Qt.outputs=((Nt=nn.outputs)==null?void 0:Nt.map(xt=>ht.Output.fromPartial(xt)))||[],Qt}};function Zt(){return{}}d.MsgMultiSendResponse={encode(nn,Qt=mt.Writer.create()){return Qt},decode(nn,Qt){const wt=nn instanceof mt.Reader?nn:new mt.Reader(nn);let Nt=Qt===void 0?wt.len:wt.pos+Qt;const xt=Zt();for(;wt.pos>>3){default:wt.skipType(Et&7);break}}return xt},fromJSON(nn){return{}},toJSON(nn){return{}},fromPartial(nn){return Zt()}};class Rt{constructor(Qt){this.rpc=Qt,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this)}Send(Qt){const wt=d.MsgSend.encode(Qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",wt).then(xt=>d.MsgSendResponse.decode(new mt.Reader(xt)))}MultiSend(Qt){const wt=d.MsgMultiSend.encode(Qt).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",wt).then(xt=>d.MsgMultiSendResponse.decode(new mt.Reader(xt)))}}d.MsgClientImpl=Rt})(tx$1);var __importDefault$b=commonjsGlobal&&commonjsGlobal.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(renderItems,"__esModule",{value:!0});renderItems.renderItems=void 0;const encoding_1=build$j,math_1=build$f,queryclient_1=queryclient$1,tx_1=tx$1,tx_2=tx$a,tx_3=tx$9,tx_4=tx$8,tx_5=tx$6,tx_6=tx$5,long_1=__importDefault$b(long),tx_7=tx$4,tx_8=tx$3,tx_9=tx$2,tx_10=tx$c,testAddress="bostrom1frk9k38pvp70vheezhdfd4nvqnlsm9dw3j8hlq",testAddress2="bostrom1frk9k38pvp70vheezhdfd4nvqnlsm9dw3j8hlw",testContract="bostrom1nwnejwsdpqktusvh8qhxe5arsznjd5asdwutmaz9n5qcpl3dcmhsujhemd",testValidatorAddress="bostromvaloper135ca8hdpy9sk0ntwqzpzsvatyl48ptx52tn60p",depositCoin={denom:"boot",amount:"1000000"},depositCoins=[{denom:"boot",amount:"1000000"},{denom:"hydrogen",amount:"1000000"}];renderItems.renderItems=[{typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:tx_7.MsgCyberlink,data:{neuron:testAddress,links:[{from:"QmUX9mt8ftaHcn9Nc6SR4j9MsKkYfkcZqkfPTmMmBgeTe4",to:"QmUX9mt8ftaHcn9Nc6SR4j9MsKkYfkcZqkfPTmMmBgeTe4"}]}},{typeUrl:"/cyber.resources.v1beta1.MsgInvestmint",value:tx_9.MsgInvestmint,data:{neuron:testAddress,amount:{denom:"boot",amount:"1000000000"},resource:"millivolt",length:86400}},{typeUrl:"/cyber.grid.v1beta1.MsgCreateRoute",value:tx_8.MsgCreateRoute,data:{source:testAddress,destination:testAddress2,name:"nameTitle"}},{typeUrl:"/cyber.grid.v1beta1.MsgEditRoute",value:tx_8.MsgEditRoute,data:{source:testAddress,destination:testAddress2,value:{denom:"millivolt",amount:"1000"}}},{typeUrl:"/cyber.grid.v1beta1.MsgDeleteRoute",value:tx_8.MsgDeleteRoute,data:{source:testAddress,destination:testAddress2}},{typeUrl:"/cyber.grid.v1beta1.MsgEditRouteName",value:tx_8.MsgEditRouteName,data:{source:testAddress,destination:testAddress2,name:"nameTitle2"}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgCreatePool",value:tx_10.MsgCreatePool,data:{poolCreatorAddress:testAddress,poolTypeId:1,depositCoins}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch",value:tx_10.MsgWithdrawWithinBatch,data:{withdrawerAddress:testAddress,poolId:1,poolCoin:{denom:"pool70D7610CBA8E94B27BAD7806EBD826F5626C486BBF5C490D1463D72314353C66",amount:"1"}}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgDepositWithinBatch",value:tx_10.MsgDepositWithinBatch,data:{depositorAddress:testAddress,poolId:1,depositCoins}},{typeUrl:"/tendermint.liquidity.v1beta1.MsgSwapWithinBatch",value:tx_10.MsgSwapWithinBatch,data:{swapRequesterAddress:testAddress,poolId:1,swapTypeId:1,offerCoin:depositCoin,demandCoinDenom:"hydrogen",offerCoinFee:{denom:"boot",amount:"1"},orderPrice:"10000000000000000"}},{typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:tx_1.MsgSend,data:{fromAddress:testAddress,toAddress:testAddress2,amount:[depositCoin]}},{typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:tx_4.MsgDelegate,data:{delegatorAddress:testAddress,validatorAddress:testValidatorAddress,amount:depositCoin}},{typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:tx_4.MsgBeginRedelegate,data:{delegatorAddress:testAddress,validatorSrcAddress:testValidatorAddress,validatorDstAddress:testValidatorAddress,amount:depositCoin}},{typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:tx_4.MsgUndelegate,data:{delegatorAddress:testAddress,validatorAddress:testValidatorAddress,amount:depositCoin}},{typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:tx_2.MsgWithdrawDelegatorReward,data:{delegatorAddress:testAddress,validatorAddress:testValidatorAddress}},{typeUrl:"/cosmos.gov.v1beta1.MsgVote",value:tx_3.MsgVote,data:{proposalId:(0,queryclient_1.longify)(1),voter:testAddress,option:1}},{typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposal",value:tx_3.MsgSubmitProposal,data:{proposer:testAddress,initialDeposit:[depositCoin],content:{typeUrl:"/cosmos.gov.v1beta1.TextProposal",value:{title:"title",description:"description"}}}},{typeUrl:"/cosmos.gov.v1beta1.MsgDeposit",value:tx_3.MsgDeposit,data:{depositor:testAddress,proposalId:(0,queryclient_1.longify)(1),amount:[depositCoin]}},{typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:tx_6.MsgTransfer,data:{sourcePort:"transfer",sourceChannel:"channel-95",sender:testAddress,receiver:"osmo1snkhz3snfeyxkmyw6zutwjlarkf9pq5vfrla7w",token:depositCoin,timeoutHeight:"0-0",timeoutTimestamp:"1645655169591000000"}},{typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:tx_5.MsgStoreCode,data:{sender:testAddress,wasmByteCode:""}},{typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:tx_5.MsgClearAdmin,data:{sender:testAddress,contract:testContract}},{typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:tx_5.MsgUpdateAdmin,data:{sender:testAddress,contract:testContract,newAdmin:testAddress2}},{typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:tx_5.MsgExecuteContract,data:{sender:testAddress,contract:testContract,msg:(0,encoding_1.toUtf8)(JSON.stringify({})),funds:[depositCoin]}},{typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:tx_5.MsgInstantiateContract,data:{sender:testAddress,codeId:long_1.default.fromString(new math_1.Uint53(1).toString()),msg:(0,encoding_1.toUtf8)(JSON.stringify({})),label:"labelname",funds:[depositCoin],admin:testAddress}},{typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:tx_5.MsgMigrateContract,data:{sender:testAddress,contract:testContract,codeId:long_1.default.fromString(new math_1.Uint53(1).toString()),msg:(0,encoding_1.toUtf8)(JSON.stringify({}))}}];(function(d){var b=commonjsGlobal&&commonjsGlobal.__importDefault||function(wr){return wr&&wr.__esModule?wr:{default:wr}};Object.defineProperty(d,"__esModule",{value:!0}),d.SigningCyberClient=d.cyberRegistryTypes=d.OfflineDappWallet=d.isOfflineDappSigner=d.isOfflineDirectSigner=d.isOfflineAminoSigner=d.chain=d.links=d.link=void 0;const dt=build$c,ct=build$h,lt=build$b,ht=build$j,mt=build$f,vt=build$d,kt=build$e,Pt=queryclient$1,Jt=build$3,Zt=build$9,Rt=tx$b,nn=tx$a,Qt=gov,wt=tx$9,Nt=tx$8,xt=signing,Et=tx$7,Bt=tx$6,Tt=any,Mt=tx$5,jt=b(fastDeepEqual),Ht=b(long),an=b(pako),yt=aminomsgs,$t=tx$4,Yt=tx$3,Kt=tx$2,St=tx$c,It=cyberclient,Gt=registryTypes,Ut=renderItems;function Vt(wr,nr){return{from:wr,to:nr}}d.link=Vt;function qt(wr,nr){return[Vt(wr,nr)]}d.links=qt;function fn(wr){const nr=[];for(let fr=0;fr{nr.push({[fr.typeUrl.toString()]:{proto:{type:fr.typeUrl,value:fr.value.fromPartial(fr.data)},amino:{type:this.aminoTypes.toAmino({typeUrl:fr.typeUrl,value:fr.value.fromPartial(fr.data)}).type,value:this.aminoTypes.toAmino({typeUrl:fr.typeUrl,value:fr.value.fromPartial(fr.data)}).value}}})}),JSON.stringify(nr)}static async remotedapp(nr,fr={}){return new Nn(void 0,nr,fr)}constructor(nr,fr,xr){super(nr);const{registry:zr=An(),aminoTypes:Jr=new kt.AminoTypes(gn())}=xr;this.registry=zr,this.aminoTypes=Jr,this.signer=fr}async simulate(nr,fr,xr){const zr=fr.map(Mn=>this.registry.encodeAsAny(Mn)),Jr=(await this.signer.getAccounts()).find(Mn=>Mn.address===nr);if(!Jr)throw new Error("Failed to retrieve account from signer");const ro=(0,dt.encodeSecp256k1Pubkey)(Jr.pubkey),{sequence:xn}=await this.getSequence(nr),{gasInfo:_o}=await this.forceGetQueryClient().tx.simulate(zr,xr,ro,xn);return(0,Zt.assertDefined)(_o),mt.Uint53.fromString(_o.gasUsed.toString()).toNumber()}async cyberlink(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:$t.MsgCyberlink.fromPartial({neuron:nr,links:qt(fr,xr)})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async motif(nr,fr,xr,zr=""){const Jr={typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:$t.MsgCyberlink.fromPartial({neuron:nr,links:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async linkchain(nr,fr,xr,zr=""){const Jr={typeUrl:"/cyber.graph.v1beta1.MsgCyberlink",value:$t.MsgCyberlink.fromPartial({neuron:nr,links:fn(fr)})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async investmint(nr,fr,xr,zr,Jr,ro=""){const xn={typeUrl:"/cyber.resources.v1beta1.MsgInvestmint",value:Kt.MsgInvestmint.fromPartial({neuron:nr,amount:fr,resource:xr,length:Ht.default.fromString(new mt.Uint53(zr).toString())})};return this.signAndBroadcast(nr,[xn],Jr,ro)}async createEnergyRoute(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.grid.v1beta1.MsgCreateRoute",value:Yt.MsgCreateRoute.fromPartial({source:nr,destination:fr,name:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async editEnergyRoute(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.grid.v1beta1.MsgEditRoute",value:Yt.MsgEditRoute.fromPartial({source:nr,destination:fr,value:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async deleteEnergyRoute(nr,fr,xr,zr=""){const Jr={typeUrl:"/cyber.grid.v1beta1.MsgDeleteRoute",value:Yt.MsgDeleteRoute.fromPartial({source:nr,destination:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async editEnergyRouteName(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cyber.grid.v1beta1.MsgEditRouteName",value:Yt.MsgEditRouteName.fromPartial({source:nr,destination:fr,name:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async upload(nr,fr,xr,zr=""){const Jr=an.default.gzip(fr,{level:9}),ro={typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:Bt.MsgStoreCode.fromPartial({sender:nr,wasmByteCode:Jr})};return this.signAndBroadcast(nr,[ro],xr,zr)}async instantiate(nr,fr,xr,zr,Jr,ro={}){const xn={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:Bt.MsgInstantiateContract.fromPartial({sender:nr,codeId:Ht.default.fromString(new mt.Uint53(fr).toString()),label:zr,msg:(0,ht.toUtf8)(JSON.stringify(xr)),funds:[...ro.funds||[]],admin:ro.admin})};return this.signAndBroadcast(nr,[xn],Jr,ro.memo)}async updateAdmin(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:Bt.MsgUpdateAdmin.fromPartial({sender:nr,contract:fr,newAdmin:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async clearAdmin(nr,fr,xr,zr=""){const Jr={typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:Bt.MsgClearAdmin.fromPartial({sender:nr,contract:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async migrate(nr,fr,xr,zr,Jr,ro=""){const xn={typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:Bt.MsgMigrateContract.fromPartial({sender:nr,contract:fr,codeId:Ht.default.fromString(new mt.Uint53(xr).toString()),msg:(0,ht.toUtf8)(JSON.stringify(zr))})};return this.signAndBroadcast(nr,[xn],Jr,ro)}async execute(nr,fr,xr,zr,Jr="",ro){const xn={typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:Bt.MsgExecuteContract.fromPartial({sender:nr,contract:fr,msg:(0,ht.toUtf8)(JSON.stringify(xr)),funds:[...ro||[]]})};return this.signAndBroadcast(nr,[xn],zr,Jr)}async executeArray(nr,fr,xr,zr,Jr="",ro){const xn=xr.map(_o=>({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:Bt.MsgExecuteContract.fromPartial({sender:nr,contract:fr,msg:(0,ht.toUtf8)(JSON.stringify(_o)),funds:[...ro||[]]})}));return this.signAndBroadcast(nr,xn,zr,Jr)}async sendTokens(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:nr,toAddress:fr,amount:[...xr]}};return this.signAndBroadcast(nr,[ro],zr,Jr)}async delegateTokens(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:Nt.MsgDelegate.fromPartial({delegatorAddress:nr,validatorAddress:fr,amount:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async redelegateTokens(nr,fr,xr,zr,Jr,ro=""){const xn={typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:Nt.MsgBeginRedelegate.fromPartial({delegatorAddress:nr,validatorSrcAddress:fr,validatorDstAddress:xr,amount:zr})};return this.signAndBroadcast(nr,[xn],Jr,ro)}async undelegateTokens(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:Nt.MsgUndelegate.fromPartial({delegatorAddress:nr,validatorAddress:fr,amount:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async withdrawRewards(nr,fr,xr,zr=""){const Jr={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:nn.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:nr,validatorAddress:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async withdrawAllRewards(nr,fr,xr,zr=""){const Jr=fr.map(ro=>({typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:nn.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:nr,validatorAddress:ro})}));return this.signAndBroadcast(nr,Jr,xr,zr)}async voteProposal(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.gov.v1beta1.MsgVote",value:wt.MsgVote.fromPartial({proposalId:(0,Pt.longify)(fr),voter:nr,option:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async submitProposal(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.gov.v1beta1.MsgSubmitProposal",value:wt.MsgSubmitProposal.fromPartial({content:Tt.Any.fromPartial({typeUrl:fr.typeUrl,value:Uint8Array.from(Qt.TextProposal.encode(fr.value).finish())}),initialDeposit:xr,proposer:nr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async depositProposal(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.gov.v1beta1.MsgDeposit",value:wt.MsgDeposit.fromPartial({depositor:nr,proposalId:(0,Pt.longify)(fr),amount:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async sendIbcTokens(nr,fr,xr,zr,Jr,ro,xn,_o,Mn=""){const Zn=xn?Ht.default.fromNumber(xn).multiply(1e9):void 0,rr={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:Mt.MsgTransfer.fromPartial({sourcePort:zr,sourceChannel:Jr,sender:nr,receiver:fr,token:xr,timeoutHeight:ro,timeoutTimestamp:Zn})};return this.signAndBroadcast(nr,[rr],_o,Mn)}async swapWithinBatch(nr,fr,xr,zr,Jr,ro,xn,_o,Mn=""){const Zn={typeUrl:"/tendermint.liquidity.v1beta1.MsgSwapWithinBatch",value:St.MsgSwapWithinBatch.fromPartial({swapRequesterAddress:nr,poolId:fr,swapTypeId:xr,offerCoin:zr,demandCoinDenom:Jr,offerCoinFee:ro,orderPrice:xn})};return this.signAndBroadcast(nr,[Zn],_o,Mn)}async depositWithinBatch(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/tendermint.liquidity.v1beta1.MsgDepositWithinBatch",value:St.MsgDepositWithinBatch.fromPartial({depositorAddress:nr,poolId:fr,depositCoins:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async withdwawWithinBatch(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch",value:St.MsgWithdrawWithinBatch.fromPartial({withdrawerAddress:nr,poolId:fr,poolCoin:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async createPool(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/tendermint.liquidity.v1beta1.MsgCreatePool",value:St.MsgCreatePool.fromPartial({poolCreatorAddress:nr,poolTypeId:fr,depositCoins:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async exec(nr,fr,xr,zr=""){const Jr={typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:Rt.MsgExec.fromPartial({grantee:nr,msgs:fr})};return this.signAndBroadcast(nr,[Jr],xr,zr)}async grant(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.authz.v1beta1.MsgGrant",value:Rt.MsgGrant.fromPartial({granter:nr,grantee:fr,grant:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async revoke(nr,fr,xr,zr,Jr=""){const ro={typeUrl:"/cosmos.authz.v1beta1.MsgRevoke",value:Rt.MsgRevoke.fromPartial({granter:nr,grantee:fr,msgTypeUrl:xr})};return this.signAndBroadcast(nr,[ro],zr,Jr)}async signAndBroadcast(nr,fr,xr,zr=""){let Jr;if(xr=="auto"||typeof xr=="number"){const _o=await this.simulate(nr,fr,zr);Jr={amount:[],gas:Math.round(_o*(typeof xr=="number"?xr:1.3)).toString()}}else Jr=xr;const ro=await this.sign(nr,fr,Jr,zr),xn=Et.TxRaw.encode(ro).finish();return this.broadcastTx(xn)}async signAndBroadcastWithAmino(nr,fr,xr,zr=""){const Jr=fr.map(_o=>this.aminoTypes.fromAmino({type:_o.type,value:_o.value}));if(zt(this.signer))return Jr.map(_o=>(0,ht.toBase64)(Buffer$1.from(JSON.stringify(_o),"utf-8")));const ro=await this.sign(nr,Jr,xr,zr),xn=Et.TxRaw.encode(ro).finish();return this.broadcastTx(xn)}async sign(nr,fr,xr,zr,Jr){let ro;if(Jr)ro=Jr;else{const{accountNumber:xn,sequence:_o}=await this.getSequence(nr),Mn=await this.getChainId();ro={accountNumber:xn,sequence:_o,chainId:Mn}}return Dt(this.signer)?this.signDirect(nr,fr,xr,zr,ro):this.signAmino(nr,fr,xr,zr,ro)}async signAmino(nr,fr,xr,zr,{accountNumber:Jr,sequence:ro,chainId:xn}){(0,Zt.assert)(dn(this.signer));const _o=(await this.signer.getAccounts()).find(Vr=>Vr.address===nr);if(!_o)throw new Error("Failed to retrieve account from signer");const Mn=(0,vt.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(_o.pubkey)),Zn=xt.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,rr=fr.map(Vr=>this.aminoTypes.toAmino(Vr)),mr=(0,dt.makeSignDoc)(rr,xr,xn,zr,Jr,ro),{signature:pn,signed:Hr}=await this.signer.signAmino(nr,mr),No={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:Hr.msgs.map(Vr=>this.aminoTypes.fromAmino(Vr)),memo:Hr.memo}},Ro=this.registry.encode(No),br=mt.Int53.fromString(Hr.fee.gas).toNumber(),yr=mt.Int53.fromString(Hr.sequence).toNumber(),Qr=(0,vt.makeAuthInfoBytes)([{pubkey:Mn,sequence:yr}],Hr.fee.amount,br,xr.granter,xr.payer,Zn);return Et.TxRaw.fromPartial({bodyBytes:Ro,authInfoBytes:Qr,signatures:[(0,ht.fromBase64)(pn.signature)]})}async signDirect(nr,fr,xr,zr,{accountNumber:Jr,sequence:ro,chainId:xn}){(0,Zt.assert)(Dt(this.signer));const _o=(await this.signer.getAccounts()).find(Ro=>Ro.address===nr);if(!_o)throw new Error("Failed to retrieve account from signer");const Mn=(0,vt.encodePubkey)((0,dt.encodeSecp256k1Pubkey)(_o.pubkey)),Zn={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:fr,memo:zr}},rr=this.registry.encode(Zn),mr=mt.Int53.fromString(xr.gas).toNumber(),pn=(0,vt.makeAuthInfoBytes)([{pubkey:Mn,sequence:ro}],xr.amount,mr,xr.granter,xr.payer),Hr=(0,vt.makeSignDoc)(rr,pn,xn,Jr),{signature:ao,signed:No}=await this.signer.signDirect(nr,Hr);return Et.TxRaw.fromPartial({bodyBytes:No.bodyBytes,authInfoBytes:No.authInfoBytes,signatures:[(0,ht.fromBase64)(ao.signature)]})}async signData(nr,fr){const Jr="",ro={gas:"0",amount:[]},xn="",Mn=(Array.isArray(fr)?fr:[fr]).map(Hr=>({type:"sign/MsgSignData",value:{signer:nr,data:(0,ht.toBase64)(Hr)}}));if((0,Zt.assert)(dn(this.signer)),!(await this.signer.getAccounts()).find(Hr=>Hr.address===nr))throw new Error("Failed to retrieve account from signer");const rr=(0,dt.makeSignDoc)(Mn,ro,Jr,xn,0,0),{signature:mr,signed:pn}=await this.signer.signAmino(nr,rr);if(!(0,jt.default)(rr,pn))throw new Error("The signed document differs from the signing instruction. This is not supported for ADR-036.");return(0,dt.makeStdTx)(rr,mr)}static async verifySignedData(nr){if(nr.memo!=="")throw new Error("Memo must be empty.");if(nr.fee.gas!=="0")throw new Error("Fee gas must 0.");if(nr.fee.amount.length!==0)throw new Error("Fee amount must be an empty array.");const fr=0,xr=0,zr="",Jr=nr.msg;if(!Jr.every(yt.isMsgSignData))throw new Error("Found message that is not the expected type.");if(Jr.length===0)throw new Error("No message found. Without messages we cannot determine the signer address.");const ro=nr.signatures;if(ro.length!==1)throw new Error("Must have exactly one signature to be supported.");const xn=ro[0];if(!(0,dt.isSecp256k1Pubkey)(xn.pub_key))throw new Error("Only secp256k1 signatures are supported.");const _o=(0,dt.serializeSignDoc)((0,dt.makeSignDoc)(nr.msg,nr.fee,zr,nr.memo,fr,xr)),Mn=(0,lt.sha256)(_o),Zn=lt.Secp256k1Signature.fromFixedLength((0,ht.fromBase64)(xn.signature)),rr=(0,ht.fromBase64)(xn.pub_key.value),mr=(0,dt.rawSecp256k1PubkeyToRawAddress)(rr);if(Jr.some(Hr=>!(0,Zt.arrayContentEquals)((0,ht.fromBech32)(Hr.value.signer).data,mr)))throw new Error("Found mismatch between signer in message and public key");return await lt.Secp256k1.verifySignature(Zn,Mn,rr)}}d.SigningCyberClient=Nn})(signingcyberclient);(function(d){var b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,mt,vt,kt){kt===void 0&&(kt=vt);var Pt=Object.getOwnPropertyDescriptor(mt,vt);(!Pt||("get"in Pt?!mt.__esModule:Pt.writable||Pt.configurable))&&(Pt={enumerable:!0,get:function(){return mt[vt]}}),Object.defineProperty(ht,kt,Pt)}:function(ht,mt,vt,kt){kt===void 0&&(kt=vt),ht[kt]=mt[vt]}),dt=commonjsGlobal&&commonjsGlobal.__exportStar||function(ht,mt){for(var vt in ht)vt!=="default"&&!Object.prototype.hasOwnProperty.call(mt,vt)&&b(mt,ht,vt)};Object.defineProperty(d,"__esModule",{value:!0}),d.OfflineDappWallet=d.SigningCyberClient=d.CyberClient=void 0;var ct=cyberclient;Object.defineProperty(d,"CyberClient",{enumerable:!0,get:function(){return ct.CyberClient}});var lt=signingcyberclient;Object.defineProperty(d,"SigningCyberClient",{enumerable:!0,get:function(){return lt.SigningCyberClient}}),Object.defineProperty(d,"OfflineDappWallet",{enumerable:!0,get:function(){return lt.OfflineDappWallet}}),dt(registryTypes,d)})(build$i);var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(d){return this.listeners.add(d),this.onSubscribe(),()=>{this.listeners.delete(d),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window>"u"||"Deno"in globalThis;function noop$1(){}function functionalUpdate(d,b){return typeof d=="function"?d(b):d}function isValidTimeout(d){return typeof d=="number"&&d>=0&&d!==1/0}function timeUntilStale(d,b){return Math.max(d+(b||0)-Date.now(),0)}function matchQuery(d,b){const{type:dt="all",exact:ct,fetchStatus:lt,predicate:ht,queryKey:mt,stale:vt}=d;if(mt){if(ct){if(b.queryHash!==hashQueryKeyByOptions(mt,b.options))return!1}else if(!partialMatchKey(b.queryKey,mt))return!1}if(dt!=="all"){const kt=b.isActive();if(dt==="active"&&!kt||dt==="inactive"&&kt)return!1}return!(typeof vt=="boolean"&&b.isStale()!==vt||lt&<!==b.state.fetchStatus||ht&&!ht(b))}function matchMutation(d,b){const{exact:dt,status:ct,predicate:lt,mutationKey:ht}=d;if(ht){if(!b.options.mutationKey)return!1;if(dt){if(hashKey(b.options.mutationKey)!==hashKey(ht))return!1}else if(!partialMatchKey(b.options.mutationKey,ht))return!1}return!(ct&&b.state.status!==ct||lt&&!lt(b))}function hashQueryKeyByOptions(d,b){return((b==null?void 0:b.queryKeyHashFn)||hashKey)(d)}function hashKey(d){return JSON.stringify(d,(b,dt)=>isPlainObject$1(dt)?Object.keys(dt).sort().reduce((ct,lt)=>(ct[lt]=dt[lt],ct),{}):dt)}function partialMatchKey(d,b){return d===b?!0:typeof d!=typeof b?!1:d&&b&&typeof d=="object"&&typeof b=="object"?!Object.keys(b).some(dt=>!partialMatchKey(d[dt],b[dt])):!1}function replaceEqualDeep(d,b){if(d===b)return d;const dt=isPlainArray(d)&&isPlainArray(b);if(dt||isPlainObject$1(d)&&isPlainObject$1(b)){const ct=dt?d:Object.keys(d),lt=ct.length,ht=dt?b:Object.keys(b),mt=ht.length,vt=dt?[]:{};let kt=0;for(let Pt=0;Pt{setTimeout(b,d)})}function replaceData(d,b,dt){return typeof dt.structuralSharing=="function"?dt.structuralSharing(d,b):dt.structuralSharing!==!1?replaceEqualDeep(d,b):b}function addToEnd(d,b,dt=0){const ct=[...d,b];return dt&&ct.length>dt?ct.slice(1):ct}function addToStart(d,b,dt=0){const ct=[b,...d];return dt&&ct.length>dt?ct.slice(0,-1):ct}var skipToken=Symbol(),ensureQueryFn=(d,b)=>!d.queryFn&&(b!=null&&b.initialPromise)?()=>b.initialPromise:!d.queryFn||d.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${d.queryHash}'`)):d.queryFn,Zl,Ql,y0,o2,FocusManager=(o2=class extends Subscribable{constructor(){super();Cs(this,Zl,void 0);Cs(this,Ql,void 0);Cs(this,y0,void 0);ps(this,y0,b=>{if(!isServer&&window.addEventListener){const dt=()=>b();return window.addEventListener("visibilitychange",dt,!1),()=>{window.removeEventListener("visibilitychange",dt)}}})}onSubscribe(){Co(this,Ql)||this.setEventListener(Co(this,y0))}onUnsubscribe(){var b;this.hasListeners()||((b=Co(this,Ql))==null||b.call(this),ps(this,Ql,void 0))}setEventListener(b){var dt;ps(this,y0,b),(dt=Co(this,Ql))==null||dt.call(this),ps(this,Ql,b(ct=>{typeof ct=="boolean"?this.setFocused(ct):this.onFocus()}))}setFocused(b){Co(this,Zl)!==b&&(ps(this,Zl,b),this.onFocus())}onFocus(){const b=this.isFocused();this.listeners.forEach(dt=>{dt(b)})}isFocused(){var b;return typeof Co(this,Zl)=="boolean"?Co(this,Zl):((b=globalThis.document)==null?void 0:b.visibilityState)!=="hidden"}},Zl=new WeakMap,Ql=new WeakMap,y0=new WeakMap,o2),focusManager=new FocusManager,_0,$l,C0,a2,OnlineManager=(a2=class extends Subscribable{constructor(){super();Cs(this,_0,!0);Cs(this,$l,void 0);Cs(this,C0,void 0);ps(this,C0,b=>{if(!isServer&&window.addEventListener){const dt=()=>b(!0),ct=()=>b(!1);return window.addEventListener("online",dt,!1),window.addEventListener("offline",ct,!1),()=>{window.removeEventListener("online",dt),window.removeEventListener("offline",ct)}}})}onSubscribe(){Co(this,$l)||this.setEventListener(Co(this,C0))}onUnsubscribe(){var b;this.hasListeners()||((b=Co(this,$l))==null||b.call(this),ps(this,$l,void 0))}setEventListener(b){var dt;ps(this,C0,b),(dt=Co(this,$l))==null||dt.call(this),ps(this,$l,b(this.setOnline.bind(this)))}setOnline(b){Co(this,_0)!==b&&(ps(this,_0,b),this.listeners.forEach(ct=>{ct(b)}))}isOnline(){return Co(this,_0)}},_0=new WeakMap,$l=new WeakMap,C0=new WeakMap,a2),onlineManager=new OnlineManager;function defaultRetryDelay(d){return Math.min(1e3*2**d,3e4)}function canFetch(d){return(d??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(d){this.revert=d==null?void 0:d.revert,this.silent=d==null?void 0:d.silent}};function isCancelledError(d){return d instanceof CancelledError}function createRetryer(d){let b=!1,dt=0,ct=!1,lt,ht,mt;const vt=new Promise((xt,Et)=>{ht=xt,mt=Et}),kt=xt=>{var Et;ct||(Qt(new CancelledError(xt)),(Et=d.abort)==null||Et.call(d))},Pt=()=>{b=!0},Jt=()=>{b=!1},Zt=()=>focusManager.isFocused()&&(d.networkMode==="always"||onlineManager.isOnline())&&d.canRun(),Rt=()=>canFetch(d.networkMode)&&d.canRun(),nn=xt=>{var Et;ct||(ct=!0,(Et=d.onSuccess)==null||Et.call(d,xt),lt==null||lt(),ht(xt))},Qt=xt=>{var Et;ct||(ct=!0,(Et=d.onError)==null||Et.call(d,xt),lt==null||lt(),mt(xt))},wt=()=>new Promise(xt=>{var Et;lt=Bt=>{(ct||Zt())&&xt(Bt)},(Et=d.onPause)==null||Et.call(d)}).then(()=>{var xt;lt=void 0,ct||(xt=d.onContinue)==null||xt.call(d)}),Nt=()=>{if(ct)return;let xt;const Et=dt===0?d.initialPromise:void 0;try{xt=Et??d.fn()}catch(Bt){xt=Promise.reject(Bt)}Promise.resolve(xt).then(nn).catch(Bt=>{var an;if(ct)return;const Tt=d.retry??(isServer?0:3),Mt=d.retryDelay??defaultRetryDelay,jt=typeof Mt=="function"?Mt(dt,Bt):Mt,Ht=Tt===!0||typeof Tt=="number"&&dtZt()?void 0:wt()).then(()=>{b?Qt(Bt):Nt()})})};return{promise:vt,cancel:kt,continue:()=>(lt==null||lt(),vt),cancelRetry:Pt,continueRetry:Jt,canStart:Rt,start:()=>(Rt()?Nt():wt().then(Nt),vt)}}function createNotifyManager(){let d=[],b=0,dt=Rt=>{Rt()},ct=Rt=>{Rt()},lt=Rt=>setTimeout(Rt,0);const ht=Rt=>{lt=Rt},mt=Rt=>{let nn;b++;try{nn=Rt()}finally{b--,b||Pt()}return nn},vt=Rt=>{b?d.push(Rt):lt(()=>{dt(Rt)})},kt=Rt=>(...nn)=>{vt(()=>{Rt(...nn)})},Pt=()=>{const Rt=d;d=[],Rt.length&<(()=>{ct(()=>{Rt.forEach(nn=>{dt(nn)})})})};return{batch:mt,batchCalls:kt,schedule:vt,setNotifyFunction:Rt=>{dt=Rt},setBatchNotifyFunction:Rt=>{ct=Rt},setScheduler:ht}}var notifyManager=createNotifyManager(),Xl,s2,Removable=(s2=class{constructor(){Cs(this,Xl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&ps(this,Xl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(d){this.gcTime=Math.max(this.gcTime||0,d??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Co(this,Xl)&&(clearTimeout(Co(this,Xl)),ps(this,Xl,void 0))}},Xl=new WeakMap,s2),S0,b0,xu,bu,tA,_f,Ku,Sl,d2,Query=(d2=class extends Removable{constructor(b){super();Cs(this,Ku);Cs(this,S0,void 0);Cs(this,b0,void 0);Cs(this,xu,void 0);Cs(this,bu,void 0);Cs(this,tA,void 0);Cs(this,_f,void 0);ps(this,_f,!1),ps(this,tA,b.defaultOptions),this.setOptions(b.options),this.observers=[],ps(this,xu,b.cache),this.queryKey=b.queryKey,this.queryHash=b.queryHash,ps(this,S0,b.state||getDefaultState$1(this.options)),this.state=Co(this,S0),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var b;return(b=Co(this,bu))==null?void 0:b.promise}setOptions(b){this.options={...Co(this,tA),...b},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Co(this,xu).remove(this)}setData(b,dt){const ct=replaceData(this.state.data,b,this.options);return Hs(this,Ku,Sl).call(this,{data:ct,type:"success",dataUpdatedAt:dt==null?void 0:dt.updatedAt,manual:dt==null?void 0:dt.manual}),ct}setState(b,dt){Hs(this,Ku,Sl).call(this,{type:"setState",state:b,setStateOptions:dt})}cancel(b){var ct,lt;const dt=(ct=Co(this,bu))==null?void 0:ct.promise;return(lt=Co(this,bu))==null||lt.cancel(b),dt?dt.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Co(this,S0))}isActive(){return this.observers.some(b=>b.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(b=>b.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(b=0){return this.state.isInvalidated||this.state.data===void 0||!timeUntilStale(this.state.dataUpdatedAt,b)}onFocus(){var dt;const b=this.observers.find(ct=>ct.shouldFetchOnWindowFocus());b==null||b.refetch({cancelRefetch:!1}),(dt=Co(this,bu))==null||dt.continue()}onOnline(){var dt;const b=this.observers.find(ct=>ct.shouldFetchOnReconnect());b==null||b.refetch({cancelRefetch:!1}),(dt=Co(this,bu))==null||dt.continue()}addObserver(b){this.observers.includes(b)||(this.observers.push(b),this.clearGcTimeout(),Co(this,xu).notify({type:"observerAdded",query:this,observer:b}))}removeObserver(b){this.observers.includes(b)&&(this.observers=this.observers.filter(dt=>dt!==b),this.observers.length||(Co(this,bu)&&(Co(this,_f)?Co(this,bu).cancel({revert:!0}):Co(this,bu).cancelRetry()),this.scheduleGc()),Co(this,xu).notify({type:"observerRemoved",query:this,observer:b}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Hs(this,Ku,Sl).call(this,{type:"invalidate"})}fetch(b,dt){var kt,Pt,Jt;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(dt!=null&&dt.cancelRefetch))this.cancel({silent:!0});else if(Co(this,bu))return Co(this,bu).continueRetry(),Co(this,bu).promise}if(b&&this.setOptions(b),!this.options.queryFn){const Zt=this.observers.find(Rt=>Rt.options.queryFn);Zt&&this.setOptions(Zt.options)}const ct=new AbortController,lt=Zt=>{Object.defineProperty(Zt,"signal",{enumerable:!0,get:()=>(ps(this,_f,!0),ct.signal)})},ht=()=>{const Zt=ensureQueryFn(this.options,dt),Rt={queryKey:this.queryKey,meta:this.meta};return lt(Rt),ps(this,_f,!1),this.options.persister?this.options.persister(Zt,Rt,this):Zt(Rt)},mt={fetchOptions:dt,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:ht};lt(mt),(kt=this.options.behavior)==null||kt.onFetch(mt,this),ps(this,b0,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((Pt=mt.fetchOptions)==null?void 0:Pt.meta))&&Hs(this,Ku,Sl).call(this,{type:"fetch",meta:(Jt=mt.fetchOptions)==null?void 0:Jt.meta});const vt=Zt=>{var Rt,nn,Qt,wt;isCancelledError(Zt)&&Zt.silent||Hs(this,Ku,Sl).call(this,{type:"error",error:Zt}),isCancelledError(Zt)||((nn=(Rt=Co(this,xu).config).onError)==null||nn.call(Rt,Zt,this),(wt=(Qt=Co(this,xu).config).onSettled)==null||wt.call(Qt,this.state.data,Zt,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ps(this,bu,createRetryer({initialPromise:dt==null?void 0:dt.initialPromise,fn:mt.fetchFn,abort:ct.abort.bind(ct),onSuccess:Zt=>{var Rt,nn,Qt,wt;if(Zt===void 0){vt(new Error(`${this.queryHash} data is undefined`));return}this.setData(Zt),(nn=(Rt=Co(this,xu).config).onSuccess)==null||nn.call(Rt,Zt,this),(wt=(Qt=Co(this,xu).config).onSettled)==null||wt.call(Qt,Zt,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:vt,onFail:(Zt,Rt)=>{Hs(this,Ku,Sl).call(this,{type:"failed",failureCount:Zt,error:Rt})},onPause:()=>{Hs(this,Ku,Sl).call(this,{type:"pause"})},onContinue:()=>{Hs(this,Ku,Sl).call(this,{type:"continue"})},retry:mt.options.retry,retryDelay:mt.options.retryDelay,networkMode:mt.options.networkMode,canRun:()=>!0})),Co(this,bu).start()}},S0=new WeakMap,b0=new WeakMap,xu=new WeakMap,bu=new WeakMap,tA=new WeakMap,_f=new WeakMap,Ku=new WeakSet,Sl=function(b){const dt=ct=>{switch(b.type){case"failed":return{...ct,fetchFailureCount:b.failureCount,fetchFailureReason:b.error};case"pause":return{...ct,fetchStatus:"paused"};case"continue":return{...ct,fetchStatus:"fetching"};case"fetch":return{...ct,...fetchState(ct.data,this.options),fetchMeta:b.meta??null};case"success":return{...ct,data:b.data,dataUpdateCount:ct.dataUpdateCount+1,dataUpdatedAt:b.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!b.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const lt=b.error;return isCancelledError(lt)&<.revert&&Co(this,b0)?{...Co(this,b0),fetchStatus:"idle"}:{...ct,error:lt,errorUpdateCount:ct.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:ct.fetchFailureCount+1,fetchFailureReason:lt,fetchStatus:"idle",status:"error"};case"invalidate":return{...ct,isInvalidated:!0};case"setState":return{...ct,...b.state}}};this.state=dt(this.state),notifyManager.batch(()=>{this.observers.forEach(ct=>{ct.onQueryUpdate()}),Co(this,xu).notify({query:this,type:"updated",action:b})})},d2);function fetchState(d,b){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(b.networkMode)?"fetching":"paused",...d===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(d){const b=typeof d.initialData=="function"?d.initialData():d.initialData,dt=b!==void 0,ct=dt?typeof d.initialDataUpdatedAt=="function"?d.initialDataUpdatedAt():d.initialDataUpdatedAt:0;return{data:b,dataUpdateCount:0,dataUpdatedAt:dt?ct??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:dt?"success":"pending",fetchStatus:"idle"}}var Zu,u2,QueryCache=(u2=class extends Subscribable{constructor(b={}){super();Cs(this,Zu,void 0);this.config=b,ps(this,Zu,new Map)}build(b,dt,ct){const lt=dt.queryKey,ht=dt.queryHash??hashQueryKeyByOptions(lt,dt);let mt=this.get(ht);return mt||(mt=new Query({cache:this,queryKey:lt,queryHash:ht,options:b.defaultQueryOptions(dt),state:ct,defaultOptions:b.getQueryDefaults(lt)}),this.add(mt)),mt}add(b){Co(this,Zu).has(b.queryHash)||(Co(this,Zu).set(b.queryHash,b),this.notify({type:"added",query:b}))}remove(b){const dt=Co(this,Zu).get(b.queryHash);dt&&(b.destroy(),dt===b&&Co(this,Zu).delete(b.queryHash),this.notify({type:"removed",query:b}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(b=>{this.remove(b)})})}get(b){return Co(this,Zu).get(b)}getAll(){return[...Co(this,Zu).values()]}find(b){const dt={exact:!0,...b};return this.getAll().find(ct=>matchQuery(dt,ct))}findAll(b={}){const dt=this.getAll();return Object.keys(b).length>0?dt.filter(ct=>matchQuery(b,ct)):dt}notify(b){notifyManager.batch(()=>{this.listeners.forEach(dt=>{dt(b)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(b=>{b.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(b=>{b.onOnline()})})}},Zu=new WeakMap,u2),Xu,vu,e0,ju,Nl,c2,Mutation=(c2=class extends Removable{constructor(b){super();Cs(this,ju);Cs(this,Xu,void 0);Cs(this,vu,void 0);Cs(this,e0,void 0);this.mutationId=b.mutationId,ps(this,vu,b.mutationCache),ps(this,Xu,[]),this.state=b.state||getDefaultState(),this.setOptions(b.options),this.scheduleGc()}setOptions(b){this.options=b,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(b){Co(this,Xu).includes(b)||(Co(this,Xu).push(b),this.clearGcTimeout(),Co(this,vu).notify({type:"observerAdded",mutation:this,observer:b}))}removeObserver(b){ps(this,Xu,Co(this,Xu).filter(dt=>dt!==b)),this.scheduleGc(),Co(this,vu).notify({type:"observerRemoved",mutation:this,observer:b})}optionalRemove(){Co(this,Xu).length||(this.state.status==="pending"?this.scheduleGc():Co(this,vu).remove(this))}continue(){var b;return((b=Co(this,e0))==null?void 0:b.continue())??this.execute(this.state.variables)}async execute(b){var lt,ht,mt,vt,kt,Pt,Jt,Zt,Rt,nn,Qt,wt,Nt,xt,Et,Bt,Tt,Mt,jt,Ht;ps(this,e0,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(b):Promise.reject(new Error("No mutationFn found")),onFail:(an,yt)=>{Hs(this,ju,Nl).call(this,{type:"failed",failureCount:an,error:yt})},onPause:()=>{Hs(this,ju,Nl).call(this,{type:"pause"})},onContinue:()=>{Hs(this,ju,Nl).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Co(this,vu).canRun(this)}));const dt=this.state.status==="pending",ct=!Co(this,e0).canStart();try{if(!dt){Hs(this,ju,Nl).call(this,{type:"pending",variables:b,isPaused:ct}),await((ht=(lt=Co(this,vu).config).onMutate)==null?void 0:ht.call(lt,b,this));const yt=await((vt=(mt=this.options).onMutate)==null?void 0:vt.call(mt,b));yt!==this.state.context&&Hs(this,ju,Nl).call(this,{type:"pending",context:yt,variables:b,isPaused:ct})}const an=await Co(this,e0).start();return await((Pt=(kt=Co(this,vu).config).onSuccess)==null?void 0:Pt.call(kt,an,b,this.state.context,this)),await((Zt=(Jt=this.options).onSuccess)==null?void 0:Zt.call(Jt,an,b,this.state.context)),await((nn=(Rt=Co(this,vu).config).onSettled)==null?void 0:nn.call(Rt,an,null,this.state.variables,this.state.context,this)),await((wt=(Qt=this.options).onSettled)==null?void 0:wt.call(Qt,an,null,b,this.state.context)),Hs(this,ju,Nl).call(this,{type:"success",data:an}),an}catch(an){try{throw await((xt=(Nt=Co(this,vu).config).onError)==null?void 0:xt.call(Nt,an,b,this.state.context,this)),await((Bt=(Et=this.options).onError)==null?void 0:Bt.call(Et,an,b,this.state.context)),await((Mt=(Tt=Co(this,vu).config).onSettled)==null?void 0:Mt.call(Tt,void 0,an,this.state.variables,this.state.context,this)),await((Ht=(jt=this.options).onSettled)==null?void 0:Ht.call(jt,void 0,an,b,this.state.context)),an}finally{Hs(this,ju,Nl).call(this,{type:"error",error:an})}}finally{Co(this,vu).runNext(this)}}},Xu=new WeakMap,vu=new WeakMap,e0=new WeakMap,ju=new WeakSet,Nl=function(b){const dt=ct=>{switch(b.type){case"failed":return{...ct,failureCount:b.failureCount,failureReason:b.error};case"pause":return{...ct,isPaused:!0};case"continue":return{...ct,isPaused:!1};case"pending":return{...ct,context:b.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:b.isPaused,status:"pending",variables:b.variables,submittedAt:Date.now()};case"success":return{...ct,data:b.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...ct,data:void 0,error:b.error,failureCount:ct.failureCount+1,failureReason:b.error,isPaused:!1,status:"error"}}};this.state=dt(this.state),notifyManager.batch(()=>{Co(this,Xu).forEach(ct=>{ct.onMutationUpdate(b)}),Co(this,vu).notify({mutation:this,type:"updated",action:b})})},c2);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Du,nA,l2,MutationCache=(l2=class extends Subscribable{constructor(b={}){super();Cs(this,Du,void 0);Cs(this,nA,void 0);this.config=b,ps(this,Du,new Map),ps(this,nA,Date.now())}build(b,dt,ct){const lt=new Mutation({mutationCache:this,mutationId:++rp(this,nA)._,options:b.defaultMutationOptions(dt),state:ct});return this.add(lt),lt}add(b){const dt=scopeFor(b),ct=Co(this,Du).get(dt)??[];ct.push(b),Co(this,Du).set(dt,ct),this.notify({type:"added",mutation:b})}remove(b){var ct;const dt=scopeFor(b);if(Co(this,Du).has(dt)){const lt=(ct=Co(this,Du).get(dt))==null?void 0:ct.filter(ht=>ht!==b);lt&&(lt.length===0?Co(this,Du).delete(dt):Co(this,Du).set(dt,lt))}this.notify({type:"removed",mutation:b})}canRun(b){var ct;const dt=(ct=Co(this,Du).get(scopeFor(b)))==null?void 0:ct.find(lt=>lt.state.status==="pending");return!dt||dt===b}runNext(b){var ct;const dt=(ct=Co(this,Du).get(scopeFor(b)))==null?void 0:ct.find(lt=>lt!==b&<.state.isPaused);return(dt==null?void 0:dt.continue())??Promise.resolve()}clear(){notifyManager.batch(()=>{this.getAll().forEach(b=>{this.remove(b)})})}getAll(){return[...Co(this,Du).values()].flat()}find(b){const dt={exact:!0,...b};return this.getAll().find(ct=>matchMutation(dt,ct))}findAll(b={}){return this.getAll().filter(dt=>matchMutation(b,dt))}notify(b){notifyManager.batch(()=>{this.listeners.forEach(dt=>{dt(b)})})}resumePausedMutations(){const b=this.getAll().filter(dt=>dt.state.isPaused);return notifyManager.batch(()=>Promise.all(b.map(dt=>dt.continue().catch(noop$1))))}},Du=new WeakMap,nA=new WeakMap,l2);function scopeFor(d){var b;return((b=d.options.scope)==null?void 0:b.id)??String(d.mutationId)}function infiniteQueryBehavior(d){return{onFetch:(b,dt)=>{const ct=async()=>{var Qt,wt,Nt,xt,Et;const lt=b.options,ht=(Nt=(wt=(Qt=b.fetchOptions)==null?void 0:Qt.meta)==null?void 0:wt.fetchMore)==null?void 0:Nt.direction,mt=((xt=b.state.data)==null?void 0:xt.pages)||[],vt=((Et=b.state.data)==null?void 0:Et.pageParams)||[],kt={pages:[],pageParams:[]};let Pt=!1;const Jt=Bt=>{Object.defineProperty(Bt,"signal",{enumerable:!0,get:()=>(b.signal.aborted?Pt=!0:b.signal.addEventListener("abort",()=>{Pt=!0}),b.signal)})},Zt=ensureQueryFn(b.options,b.fetchOptions),Rt=async(Bt,Tt,Mt)=>{if(Pt)return Promise.reject();if(Tt==null&&Bt.pages.length)return Promise.resolve(Bt);const jt={queryKey:b.queryKey,pageParam:Tt,direction:Mt?"backward":"forward",meta:b.options.meta};Jt(jt);const Ht=await Zt(jt),{maxPages:an}=b.options,yt=Mt?addToStart:addToEnd;return{pages:yt(Bt.pages,Ht,an),pageParams:yt(Bt.pageParams,Tt,an)}};let nn;if(ht&&mt.length){const Bt=ht==="backward",Tt=Bt?getPreviousPageParam:getNextPageParam,Mt={pages:mt,pageParams:vt},jt=Tt(lt,Mt);nn=await Rt(Mt,jt,Bt)}else{nn=await Rt(kt,vt[0]??lt.initialPageParam);const Bt=d??mt.length;for(let Tt=1;Tt{var lt,ht;return(ht=(lt=b.options).persister)==null?void 0:ht.call(lt,ct,{queryKey:b.queryKey,meta:b.options.meta,signal:b.signal},dt)}:b.fetchFn=ct}}}function getNextPageParam(d,{pages:b,pageParams:dt}){const ct=b.length-1;return d.getNextPageParam(b[ct],b,dt[ct],dt)}function getPreviousPageParam(d,{pages:b,pageParams:dt}){var ct;return(ct=d.getPreviousPageParam)==null?void 0:ct.call(d,b[0],b,dt[0],dt)}var su,Tl,Ml,v0,I0,xl,w0,E0,f2,QueryClient=(f2=class{constructor(d={}){Cs(this,su,void 0);Cs(this,Tl,void 0);Cs(this,Ml,void 0);Cs(this,v0,void 0);Cs(this,I0,void 0);Cs(this,xl,void 0);Cs(this,w0,void 0);Cs(this,E0,void 0);ps(this,su,d.queryCache||new QueryCache),ps(this,Tl,d.mutationCache||new MutationCache),ps(this,Ml,d.defaultOptions||{}),ps(this,v0,new Map),ps(this,I0,new Map),ps(this,xl,0)}mount(){rp(this,xl)._++,Co(this,xl)===1&&(ps(this,w0,focusManager.subscribe(async d=>{d&&(await this.resumePausedMutations(),Co(this,su).onFocus())})),ps(this,E0,onlineManager.subscribe(async d=>{d&&(await this.resumePausedMutations(),Co(this,su).onOnline())})))}unmount(){var d,b;rp(this,xl)._--,Co(this,xl)===0&&((d=Co(this,w0))==null||d.call(this),ps(this,w0,void 0),(b=Co(this,E0))==null||b.call(this),ps(this,E0,void 0))}isFetching(d){return Co(this,su).findAll({...d,fetchStatus:"fetching"}).length}isMutating(d){return Co(this,Tl).findAll({...d,status:"pending"}).length}getQueryData(d){var dt;const b=this.defaultQueryOptions({queryKey:d});return(dt=Co(this,su).get(b.queryHash))==null?void 0:dt.state.data}ensureQueryData(d){const b=this.getQueryData(d.queryKey);if(b===void 0)return this.fetchQuery(d);{const dt=this.defaultQueryOptions(d),ct=Co(this,su).build(this,dt);return d.revalidateIfStale&&ct.isStaleByTime(dt.staleTime)&&this.prefetchQuery(dt),Promise.resolve(b)}}getQueriesData(d){return Co(this,su).findAll(d).map(({queryKey:b,state:dt})=>{const ct=dt.data;return[b,ct]})}setQueryData(d,b,dt){const ct=this.defaultQueryOptions({queryKey:d}),lt=Co(this,su).get(ct.queryHash),ht=lt==null?void 0:lt.state.data,mt=functionalUpdate(b,ht);if(mt!==void 0)return Co(this,su).build(this,ct).setData(mt,{...dt,manual:!0})}setQueriesData(d,b,dt){return notifyManager.batch(()=>Co(this,su).findAll(d).map(({queryKey:ct})=>[ct,this.setQueryData(ct,b,dt)]))}getQueryState(d){var dt;const b=this.defaultQueryOptions({queryKey:d});return(dt=Co(this,su).get(b.queryHash))==null?void 0:dt.state}removeQueries(d){const b=Co(this,su);notifyManager.batch(()=>{b.findAll(d).forEach(dt=>{b.remove(dt)})})}resetQueries(d,b){const dt=Co(this,su),ct={type:"active",...d};return notifyManager.batch(()=>(dt.findAll(d).forEach(lt=>{lt.reset()}),this.refetchQueries(ct,b)))}cancelQueries(d={},b={}){const dt={revert:!0,...b},ct=notifyManager.batch(()=>Co(this,su).findAll(d).map(lt=>lt.cancel(dt)));return Promise.all(ct).then(noop$1).catch(noop$1)}invalidateQueries(d={},b={}){return notifyManager.batch(()=>{if(Co(this,su).findAll(d).forEach(ct=>{ct.invalidate()}),d.refetchType==="none")return Promise.resolve();const dt={...d,type:d.refetchType??d.type??"active"};return this.refetchQueries(dt,b)})}refetchQueries(d={},b){const dt={...b,cancelRefetch:(b==null?void 0:b.cancelRefetch)??!0},ct=notifyManager.batch(()=>Co(this,su).findAll(d).filter(lt=>!lt.isDisabled()).map(lt=>{let ht=lt.fetch(void 0,dt);return dt.throwOnError||(ht=ht.catch(noop$1)),lt.state.fetchStatus==="paused"?Promise.resolve():ht}));return Promise.all(ct).then(noop$1)}fetchQuery(d){const b=this.defaultQueryOptions(d);b.retry===void 0&&(b.retry=!1);const dt=Co(this,su).build(this,b);return dt.isStaleByTime(b.staleTime)?dt.fetch(b):Promise.resolve(dt.state.data)}prefetchQuery(d){return this.fetchQuery(d).then(noop$1).catch(noop$1)}fetchInfiniteQuery(d){return d.behavior=infiniteQueryBehavior(d.pages),this.fetchQuery(d)}prefetchInfiniteQuery(d){return this.fetchInfiniteQuery(d).then(noop$1).catch(noop$1)}resumePausedMutations(){return onlineManager.isOnline()?Co(this,Tl).resumePausedMutations():Promise.resolve()}getQueryCache(){return Co(this,su)}getMutationCache(){return Co(this,Tl)}getDefaultOptions(){return Co(this,Ml)}setDefaultOptions(d){ps(this,Ml,d)}setQueryDefaults(d,b){Co(this,v0).set(hashKey(d),{queryKey:d,defaultOptions:b})}getQueryDefaults(d){const b=[...Co(this,v0).values()];let dt={};return b.forEach(ct=>{partialMatchKey(d,ct.queryKey)&&(dt={...dt,...ct.defaultOptions})}),dt}setMutationDefaults(d,b){Co(this,I0).set(hashKey(d),{mutationKey:d,defaultOptions:b})}getMutationDefaults(d){const b=[...Co(this,I0).values()];let dt={};return b.forEach(ct=>{partialMatchKey(d,ct.mutationKey)&&(dt={...dt,...ct.defaultOptions})}),dt}defaultQueryOptions(d){if(d._defaulted)return d;const b={...Co(this,Ml).queries,...this.getQueryDefaults(d.queryKey),...d,_defaulted:!0};return b.queryHash||(b.queryHash=hashQueryKeyByOptions(b.queryKey,b)),b.refetchOnReconnect===void 0&&(b.refetchOnReconnect=b.networkMode!=="always"),b.throwOnError===void 0&&(b.throwOnError=!!b.suspense),!b.networkMode&&b.persister&&(b.networkMode="offlineFirst"),b.enabled!==!0&&b.queryFn===skipToken&&(b.enabled=!1),b}defaultMutationOptions(d){return d!=null&&d._defaulted?d:{...Co(this,Ml).mutations,...(d==null?void 0:d.mutationKey)&&this.getMutationDefaults(d.mutationKey),...d,_defaulted:!0}}clear(){Co(this,su).clear(),Co(this,Tl).clear()}},su=new WeakMap,Tl=new WeakMap,Ml=new WeakMap,v0=new WeakMap,I0=new WeakMap,xl=new WeakMap,w0=new WeakMap,E0=new WeakMap,f2),ku,Zs,rA,Iu,t0,B0,_c,iA,k0,R0,n0,r0,Ul,P0,i0,eA,oA,Ip,aA,wp,sA,Ep,dA,Bp,uA,kp,cA,Rp,lA,Pp,op,m2,A2,QueryObserver=(A2=class extends Subscribable{constructor(b,dt){super();Cs(this,i0);Cs(this,oA);Cs(this,aA);Cs(this,sA);Cs(this,dA);Cs(this,uA);Cs(this,cA);Cs(this,lA);Cs(this,op);Cs(this,ku,void 0);Cs(this,Zs,void 0);Cs(this,rA,void 0);Cs(this,Iu,void 0);Cs(this,t0,void 0);Cs(this,B0,void 0);Cs(this,_c,void 0);Cs(this,iA,void 0);Cs(this,k0,void 0);Cs(this,R0,void 0);Cs(this,n0,void 0);Cs(this,r0,void 0);Cs(this,Ul,void 0);Cs(this,P0,new Set);this.options=dt,ps(this,ku,b),ps(this,_c,null),this.bindMethods(),this.setOptions(dt)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Co(this,Zs).addObserver(this),shouldFetchOnMount(Co(this,Zs),this.options)?Hs(this,i0,eA).call(this):this.updateResult(),Hs(this,dA,Bp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(Co(this,Zs),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(Co(this,Zs),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Hs(this,uA,kp).call(this),Hs(this,cA,Rp).call(this),Co(this,Zs).removeObserver(this)}setOptions(b,dt){const ct=this.options,lt=Co(this,Zs);if(this.options=Co(this,ku).defaultQueryOptions(b),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");Hs(this,lA,Pp).call(this),Co(this,Zs).setOptions(this.options),ct._defaulted&&!shallowEqualObjects(this.options,ct)&&Co(this,ku).getQueryCache().notify({type:"observerOptionsUpdated",query:Co(this,Zs),observer:this});const ht=this.hasListeners();ht&&shouldFetchOptionally(Co(this,Zs),lt,this.options,ct)&&Hs(this,i0,eA).call(this),this.updateResult(dt),ht&&(Co(this,Zs)!==lt||this.options.enabled!==ct.enabled||this.options.staleTime!==ct.staleTime)&&Hs(this,oA,Ip).call(this);const mt=Hs(this,aA,wp).call(this);ht&&(Co(this,Zs)!==lt||this.options.enabled!==ct.enabled||mt!==Co(this,Ul))&&Hs(this,sA,Ep).call(this,mt)}getOptimisticResult(b){const dt=Co(this,ku).getQueryCache().build(Co(this,ku),b),ct=this.createResult(dt,b);return shouldAssignObserverCurrentProperties(this,ct)&&(ps(this,Iu,ct),ps(this,B0,this.options),ps(this,t0,Co(this,Zs).state)),ct}getCurrentResult(){return Co(this,Iu)}trackResult(b,dt){const ct={};return Object.keys(b).forEach(lt=>{Object.defineProperty(ct,lt,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(lt),dt==null||dt(lt),b[lt])})}),ct}trackProp(b){Co(this,P0).add(b)}getCurrentQuery(){return Co(this,Zs)}refetch({...b}={}){return this.fetch({...b})}fetchOptimistic(b){const dt=Co(this,ku).defaultQueryOptions(b),ct=Co(this,ku).getQueryCache().build(Co(this,ku),dt);return ct.isFetchingOptimistic=!0,ct.fetch().then(()=>this.createResult(ct,dt))}fetch(b){return Hs(this,i0,eA).call(this,{...b,cancelRefetch:b.cancelRefetch??!0}).then(()=>(this.updateResult(),Co(this,Iu)))}createResult(b,dt){var Ht;const ct=Co(this,Zs),lt=this.options,ht=Co(this,Iu),mt=Co(this,t0),vt=Co(this,B0),Pt=b!==ct?b.state:Co(this,rA),{state:Jt}=b;let Zt={...Jt},Rt=!1,nn;if(dt._optimisticResults){const an=this.hasListeners(),yt=!an&&shouldFetchOnMount(b,dt),$t=an&&shouldFetchOptionally(b,ct,dt,lt);(yt||$t)&&(Zt={...Zt,...fetchState(Jt.data,b.options)}),dt._optimisticResults==="isRestoring"&&(Zt.fetchStatus="idle")}let{error:Qt,errorUpdatedAt:wt,status:Nt}=Zt;if(dt.select&&Zt.data!==void 0)if(ht&&Zt.data===(mt==null?void 0:mt.data)&&dt.select===Co(this,iA))nn=Co(this,k0);else try{ps(this,iA,dt.select),nn=dt.select(Zt.data),nn=replaceData(ht==null?void 0:ht.data,nn,dt),ps(this,k0,nn),ps(this,_c,null)}catch(an){ps(this,_c,an)}else nn=Zt.data;if(dt.placeholderData!==void 0&&nn===void 0&&Nt==="pending"){let an;if(ht!=null&&ht.isPlaceholderData&&dt.placeholderData===(vt==null?void 0:vt.placeholderData))an=ht.data;else if(an=typeof dt.placeholderData=="function"?dt.placeholderData((Ht=Co(this,R0))==null?void 0:Ht.state.data,Co(this,R0)):dt.placeholderData,dt.select&&an!==void 0)try{an=dt.select(an),ps(this,_c,null)}catch(yt){ps(this,_c,yt)}an!==void 0&&(Nt="success",nn=replaceData(ht==null?void 0:ht.data,an,dt),Rt=!0)}Co(this,_c)&&(Qt=Co(this,_c),nn=Co(this,k0),wt=Date.now(),Nt="error");const xt=Zt.fetchStatus==="fetching",Et=Nt==="pending",Bt=Nt==="error",Tt=Et&&xt,Mt=nn!==void 0;return{status:Nt,fetchStatus:Zt.fetchStatus,isPending:Et,isSuccess:Nt==="success",isError:Bt,isInitialLoading:Tt,isLoading:Tt,data:nn,dataUpdatedAt:Zt.dataUpdatedAt,error:Qt,errorUpdatedAt:wt,failureCount:Zt.fetchFailureCount,failureReason:Zt.fetchFailureReason,errorUpdateCount:Zt.errorUpdateCount,isFetched:Zt.dataUpdateCount>0||Zt.errorUpdateCount>0,isFetchedAfterMount:Zt.dataUpdateCount>Pt.dataUpdateCount||Zt.errorUpdateCount>Pt.errorUpdateCount,isFetching:xt,isRefetching:xt&&!Et,isLoadingError:Bt&&!Mt,isPaused:Zt.fetchStatus==="paused",isPlaceholderData:Rt,isRefetchError:Bt&&Mt,isStale:isStale(b,dt),refetch:this.refetch}}updateResult(b){const dt=Co(this,Iu),ct=this.createResult(Co(this,Zs),this.options);if(ps(this,t0,Co(this,Zs).state),ps(this,B0,this.options),Co(this,t0).data!==void 0&&ps(this,R0,Co(this,Zs)),shallowEqualObjects(ct,dt))return;ps(this,Iu,ct);const lt={},ht=()=>{if(!dt)return!0;const{notifyOnChangeProps:mt}=this.options,vt=typeof mt=="function"?mt():mt;if(vt==="all"||!vt&&!Co(this,P0).size)return!0;const kt=new Set(vt??Co(this,P0));return this.options.throwOnError&&kt.add("error"),Object.keys(Co(this,Iu)).some(Pt=>{const Jt=Pt;return Co(this,Iu)[Jt]!==dt[Jt]&&kt.has(Jt)})};(b==null?void 0:b.listeners)!==!1&&ht()&&(lt.listeners=!0),Hs(this,op,m2).call(this,{...lt,...b})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Hs(this,dA,Bp).call(this)}},ku=new WeakMap,Zs=new WeakMap,rA=new WeakMap,Iu=new WeakMap,t0=new WeakMap,B0=new WeakMap,_c=new WeakMap,iA=new WeakMap,k0=new WeakMap,R0=new WeakMap,n0=new WeakMap,r0=new WeakMap,Ul=new WeakMap,P0=new WeakMap,i0=new WeakSet,eA=function(b){Hs(this,lA,Pp).call(this);let dt=Co(this,Zs).fetch(this.options,b);return b!=null&&b.throwOnError||(dt=dt.catch(noop$1)),dt},oA=new WeakSet,Ip=function(){if(Hs(this,uA,kp).call(this),isServer||Co(this,Iu).isStale||!isValidTimeout(this.options.staleTime))return;const dt=timeUntilStale(Co(this,Iu).dataUpdatedAt,this.options.staleTime)+1;ps(this,n0,setTimeout(()=>{Co(this,Iu).isStale||this.updateResult()},dt))},aA=new WeakSet,wp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Co(this,Zs)):this.options.refetchInterval)??!1},sA=new WeakSet,Ep=function(b){Hs(this,cA,Rp).call(this),ps(this,Ul,b),!(isServer||this.options.enabled===!1||!isValidTimeout(Co(this,Ul))||Co(this,Ul)===0)&&ps(this,r0,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&Hs(this,i0,eA).call(this)},Co(this,Ul)))},dA=new WeakSet,Bp=function(){Hs(this,oA,Ip).call(this),Hs(this,sA,Ep).call(this,Hs(this,aA,wp).call(this))},uA=new WeakSet,kp=function(){Co(this,n0)&&(clearTimeout(Co(this,n0)),ps(this,n0,void 0))},cA=new WeakSet,Rp=function(){Co(this,r0)&&(clearInterval(Co(this,r0)),ps(this,r0,void 0))},lA=new WeakSet,Pp=function(){const b=Co(this,ku).getQueryCache().build(Co(this,ku),this.options);if(b===Co(this,Zs))return;const dt=Co(this,Zs);ps(this,Zs,b),ps(this,rA,b.state),this.hasListeners()&&(dt==null||dt.removeObserver(this),b.addObserver(this))},op=new WeakSet,m2=function(b){notifyManager.batch(()=>{b.listeners&&this.listeners.forEach(dt=>{dt(Co(this,Iu))}),Co(this,ku).getQueryCache().notify({query:Co(this,Zs),type:"observerResultsUpdated"})})},A2);function shouldLoadOnMount(d,b){return b.enabled!==!1&&d.state.data===void 0&&!(d.state.status==="error"&&b.retryOnMount===!1)}function shouldFetchOnMount(d,b){return shouldLoadOnMount(d,b)||d.state.data!==void 0&&shouldFetchOn(d,b,b.refetchOnMount)}function shouldFetchOn(d,b,dt){if(b.enabled!==!1){const ct=typeof dt=="function"?dt(d):dt;return ct==="always"||ct!==!1&&isStale(d,b)}return!1}function shouldFetchOptionally(d,b,dt,ct){return(d!==b||ct.enabled===!1)&&(!dt.suspense||d.state.status!=="error")&&isStale(d,dt)}function isStale(d,b){return b.enabled!==!1&&d.isStaleByTime(b.staleTime)}function shouldAssignObserverCurrentProperties(d,b){return!shallowEqualObjects(d.getCurrentResult(),b)}var QueryClientContext$2=reactExports.createContext(void 0),useQueryClient$1=d=>{const b=reactExports.useContext(QueryClientContext$2);if(d)return d;if(!b)throw new Error("No QueryClient set, use QueryClientProvider to set one");return b},QueryClientProvider$2=({client:d,children:b})=>(reactExports.useEffect(()=>(d.mount(),()=>{d.unmount()}),[d]),jsxRuntimeExports.jsx(QueryClientContext$2.Provider,{value:d,children:b})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let d=!1;return{clearReset:()=>{d=!1},reset:()=>{d=!0},isReset:()=>d}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError(d,b){return typeof d=="function"?d(...b):!!d}var ensurePreventErrorBoundaryRetry=(d,b)=>{(d.suspense||d.throwOnError)&&(b.isReset()||(d.retryOnMount=!1))},useClearResetErrorBoundary=d=>{reactExports.useEffect(()=>{d.clearReset()},[d])},getHasError=({result:d,errorResetBoundary:b,throwOnError:dt,query:ct})=>d.isError&&!b.isReset()&&!d.isFetching&&ct&&shouldThrowError(dt,[d.error,ct]),ensureStaleTime=d=>{d.suspense&&typeof d.staleTime!="number"&&(d.staleTime=1e3)},shouldSuspend=(d,b)=>(d==null?void 0:d.suspense)&&b.isPending,fetchOptimistic=(d,b,dt)=>b.fetchOptimistic(d).catch(()=>{dt.clearReset()});function useBaseQuery(d,b,dt){const ct=useQueryClient$1(dt),lt=useIsRestoring(),ht=useQueryErrorResetBoundary(),mt=ct.defaultQueryOptions(d);mt._optimisticResults=lt?"isRestoring":"optimistic",ensureStaleTime(mt),ensurePreventErrorBoundaryRetry(mt,ht),useClearResetErrorBoundary(ht);const[vt]=reactExports.useState(()=>new b(ct,mt)),kt=vt.getOptimisticResult(mt);if(reactExports.useSyncExternalStore(reactExports.useCallback(Pt=>{const Jt=lt?()=>{}:vt.subscribe(notifyManager.batchCalls(Pt));return vt.updateResult(),Jt},[vt,lt]),()=>vt.getCurrentResult(),()=>vt.getCurrentResult()),reactExports.useEffect(()=>{vt.setOptions(mt,{listeners:!1})},[mt,vt]),shouldSuspend(mt,kt))throw fetchOptimistic(mt,vt,ht);if(getHasError({result:kt,errorResetBoundary:ht,throwOnError:mt.throwOnError,query:ct.getQueryCache().get(mt.queryHash)}))throw kt.error;return mt.notifyOnChangeProps?kt:vt.trackResult(kt)}function useQuery(d,b){return useBaseQuery(d,QueryObserver,b)}const RPC_URL$1="https://rpc.bostrom.cybernode.ai",QueryClientContext$1=React.createContext(void 0);function useQueryClient(){return reactExports.useContext(QueryClientContext$1)}function QueryClientProvider$1({children:d}){const{data:b,error:dt,isFetching:ct}=useQuery({queryKey:["cyberClient","connect"],queryFn:async()=>build$i.CyberClient.connect(RPC_URL$1)});return dt&&console.error("Error queryClient connect: ",dt.message),console.log(b),jsxRuntimeExports.jsx(QueryClientContext$1.Provider,{value:b,children:d})}const balanceFetcher=(d,b)=>{const{address:dt}=d;return!b||dt===null?null:b.getAllBalances(dt)},useQueryGetAllBalances=d=>{const b=useQueryClient(),{address:dt}=d,{data:ct}=useQuery({queryKey:["getAllBalances",dt],queryFn:()=>balanceFetcher(d,b),enabled:!!(b&&dt)});return ct};var Denom=(d=>(d.boot="BOOT",d.hydrogen="H",d.milliampere="A",d.millivolt="V",d))(Denom||{});const boot="/assets/large-green-0de5ed19.png",milliampere="/assets/light-8b067451.png",hydrogen="/assets/hydrogen-8cf930a6.svg",millivolt="/assets/lightning-4d689c7a.png",configDenom={boot:{denom:"BOOT",img:boot,coinDecimals:0},hydrogen:{denom:"H",img:hydrogen,coinDecimals:0},milliampere:{denom:"A",img:milliampere,coinDecimals:3},millivolt:{denom:"V",img:millivolt,coinDecimals:3}},container="_container_6peet_1",wrapper$4="_wrapper_6peet_5",wrapperItem="_wrapperItem_6peet_11",denom="_denom_6peet_16",amount="_amount_6peet_20",styles$8={container,wrapper:wrapper$4,wrapperItem,denom,amount},wrapper$3="_wrapper_1gxxc_1",title="_title_1gxxc_5",styles$7={wrapper:wrapper$3,title};function TitleItem({title:d,children:b}){return jsxRuntimeExports.jsxs("div",{className:styles$7.wrapper,children:[jsxRuntimeExports.jsx("span",{className:styles$7.title,children:d}),b]})}function numberWithCommas(d){const b=d.split(".");return b[0]=b[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),b.join(".")}const formatNumber=d=>{let b=d;return typeof d=="string"?numberWithCommas(b):b.toLocaleString("en").replace(/(\.\d{0,})0+$/,"$1").replace(/,/g," ")};var isNumeric=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone(d){var b,dt,ct,lt=Et.prototype={constructor:Et,toString:null,valueOf:null},ht=new Et(1),mt=20,vt=4,kt=-7,Pt=21,Jt=-1e7,Zt=1e7,Rt=!1,nn=1,Qt=0,wt={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Nt="0123456789abcdefghijklmnopqrstuvwxyz",xt=!0;function Et(an,yt){var $t,Yt,Kt,St,It,Gt,Ut,Vt,qt=this;if(!(qt instanceof Et))return new Et(an,yt);if(yt==null){if(an&&an._isBigNumber===!0){qt.s=an.s,!an.c||an.e>Zt?qt.c=qt.e=null:an.e=10;It/=10,St++);St>Zt?qt.c=qt.e=null:(qt.e=St,qt.c=[an]);return}Vt=String(an)}else{if(!isNumeric.test(Vt=String(an)))return ct(qt,Vt,Gt);qt.s=Vt.charCodeAt(0)==45?(Vt=Vt.slice(1),-1):1}(St=Vt.indexOf("."))>-1&&(Vt=Vt.replace(".","")),(It=Vt.search(/e/i))>0?(St<0&&(St=It),St+=+Vt.slice(It+1),Vt=Vt.substring(0,It)):St<0&&(St=Vt.length)}else{if(intCheck(yt,2,Nt.length,"Base"),yt==10&&xt)return qt=new Et(an),jt(qt,mt+qt.e+1,vt);if(Vt=String(an),Gt=typeof an=="number"){if(an*0!=0)return ct(qt,Vt,Gt,yt);if(qt.s=1/an<0?(Vt=Vt.slice(1),-1):1,Et.DEBUG&&Vt.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+an)}else qt.s=Vt.charCodeAt(0)===45?(Vt=Vt.slice(1),-1):1;for($t=Nt.slice(0,yt),St=It=0,Ut=Vt.length;ItSt){St=Ut;continue}}else if(!Kt&&(Vt==Vt.toUpperCase()&&(Vt=Vt.toLowerCase())||Vt==Vt.toLowerCase()&&(Vt=Vt.toUpperCase()))){Kt=!0,It=-1,St=0;continue}return ct(qt,String(an),Gt,yt)}Gt=!1,Vt=dt(Vt,yt,10,qt.s),(St=Vt.indexOf("."))>-1?Vt=Vt.replace(".",""):St=Vt.length}for(It=0;Vt.charCodeAt(It)===48;It++);for(Ut=Vt.length;Vt.charCodeAt(--Ut)===48;);if(Vt=Vt.slice(It,++Ut)){if(Ut-=It,Gt&&Et.DEBUG&&Ut>15&&(an>MAX_SAFE_INTEGER||an!==mathfloor(an)))throw Error(tooManyDigits+qt.s*an);if((St=St-It-1)>Zt)qt.c=qt.e=null;else if(St=-MAX&&Kt<=MAX&&Kt===mathfloor(Kt)){if(Yt[0]===0){if(Kt===0&&Yt.length===1)return!0;break e}if(yt=(Kt+1)%LOG_BASE,yt<1&&(yt+=LOG_BASE),String(Yt[0]).length==yt){for(yt=0;yt=BASE||$t!==mathfloor($t))break e;if($t!==0)return!0}}}else if(Yt===null&&Kt===null&&(St===null||St===1||St===-1))return!0;throw Error(bignumberError+"Invalid BigNumber: "+an)},Et.maximum=Et.max=function(){return Tt(arguments,-1)},Et.minimum=Et.min=function(){return Tt(arguments,1)},Et.random=function(){var an=9007199254740992,yt=Math.random()*an&2097151?function(){return mathfloor(Math.random()*an)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function($t){var Yt,Kt,St,It,Gt,Ut=0,Vt=[],qt=new Et(ht);if($t==null?$t=mt:intCheck($t,0,MAX),It=mathceil($t/LOG_BASE),Rt)if(crypto.getRandomValues){for(Yt=crypto.getRandomValues(new Uint32Array(It*=2));Ut>>11),Gt>=9e15?(Kt=crypto.getRandomValues(new Uint32Array(2)),Yt[Ut]=Kt[0],Yt[Ut+1]=Kt[1]):(Vt.push(Gt%1e14),Ut+=2);Ut=It/2}else if(crypto.randomBytes){for(Yt=crypto.randomBytes(It*=7);Ut=9e15?crypto.randomBytes(7).copy(Yt,Ut):(Vt.push(Gt%1e14),Ut+=7);Ut=It/7}else throw Rt=!1,Error(bignumberError+"crypto unavailable");if(!Rt)for(;Ut=10;Gt/=10,Ut++);UtKt-1&&(Gt[It+1]==null&&(Gt[It+1]=0),Gt[It+1]+=Gt[It]/Kt|0,Gt[It]%=Kt)}return Gt.reverse()}return function($t,Yt,Kt,St,It){var Gt,Ut,Vt,qt,fn,dn,Dt,zt,tn=$t.indexOf("."),An=mt,gn=vt;for(tn>=0&&(qt=Qt,Qt=0,$t=$t.replace(".",""),zt=new Et(Yt),dn=zt.pow($t.length-tn),Qt=qt,zt.c=yt(toFixedPoint(coeffToString(dn.c),dn.e,"0"),10,Kt,an),zt.e=zt.c.length),Dt=yt($t,Yt,Kt,It?(Gt=Nt,an):(Gt=an,Nt)),Vt=qt=Dt.length;Dt[--qt]==0;Dt.pop());if(!Dt[0])return Gt.charAt(0);if(tn<0?--Vt:(dn.c=Dt,dn.e=Vt,dn.s=St,dn=b(dn,zt,An,gn,Kt),Dt=dn.c,fn=dn.r,Vt=dn.e),Ut=Vt+An+1,tn=Dt[Ut],qt=Kt/2,fn=fn||Ut<0||Dt[Ut+1]!=null,fn=gn<4?(tn!=null||fn)&&(gn==0||gn==(dn.s<0?3:2)):tn>qt||tn==qt&&(gn==4||fn||gn==6&&Dt[Ut-1]&1||gn==(dn.s<0?8:7)),Ut<1||!Dt[0])$t=fn?toFixedPoint(Gt.charAt(1),-An,Gt.charAt(0)):Gt.charAt(0);else{if(Dt.length=Ut,fn)for(--Kt;++Dt[--Ut]>Kt;)Dt[Ut]=0,Ut||(++Vt,Dt=[1].concat(Dt));for(qt=Dt.length;!Dt[--qt];);for(tn=0,$t="";tn<=qt;$t+=Gt.charAt(Dt[tn++]));$t=toFixedPoint($t,Vt,Gt.charAt(0))}return $t}}(),b=function(){function an(Yt,Kt,St){var It,Gt,Ut,Vt,qt=0,fn=Yt.length,dn=Kt%SQRT_BASE,Dt=Kt/SQRT_BASE|0;for(Yt=Yt.slice();fn--;)Ut=Yt[fn]%SQRT_BASE,Vt=Yt[fn]/SQRT_BASE|0,It=Dt*Ut+Vt*dn,Gt=dn*Ut+It%SQRT_BASE*SQRT_BASE+qt,qt=(Gt/St|0)+(It/SQRT_BASE|0)+Dt*Vt,Yt[fn]=Gt%St;return qt&&(Yt=[qt].concat(Yt)),Yt}function yt(Yt,Kt,St,It){var Gt,Ut;if(St!=It)Ut=St>It?1:-1;else for(Gt=Ut=0;GtKt[Gt]?1:-1;break}return Ut}function $t(Yt,Kt,St,It){for(var Gt=0;St--;)Yt[St]-=Gt,Gt=Yt[St]1;Yt.splice(0,1));}return function(Yt,Kt,St,It,Gt){var Ut,Vt,qt,fn,dn,Dt,zt,tn,An,gn,Nn,wr,nr,fr,xr,zr,Jr,ro=Yt.s==Kt.s?1:-1,xn=Yt.c,_o=Kt.c;if(!xn||!xn[0]||!_o||!_o[0])return new Et(!Yt.s||!Kt.s||(xn?_o&&xn[0]==_o[0]:!_o)?NaN:xn&&xn[0]==0||!_o?ro*0:ro/0);for(tn=new Et(ro),An=tn.c=[],Vt=Yt.e-Kt.e,ro=St+Vt+1,Gt||(Gt=BASE,Vt=bitFloor(Yt.e/LOG_BASE)-bitFloor(Kt.e/LOG_BASE),ro=ro/LOG_BASE|0),qt=0;_o[qt]==(xn[qt]||0);qt++);if(_o[qt]>(xn[qt]||0)&&Vt--,ro<0)An.push(1),fn=!0;else{for(fr=xn.length,zr=_o.length,qt=0,ro+=2,dn=mathfloor(Gt/(_o[0]+1)),dn>1&&(_o=an(_o,dn,Gt),xn=an(xn,dn,Gt),zr=_o.length,fr=xn.length),nr=zr,gn=xn.slice(0,zr),Nn=gn.length;Nn=Gt/2&&xr++;do{if(dn=0,Ut=yt(_o,gn,zr,Nn),Ut<0){if(wr=gn[0],zr!=Nn&&(wr=wr*Gt+(gn[1]||0)),dn=mathfloor(wr/xr),dn>1)for(dn>=Gt&&(dn=Gt-1),Dt=an(_o,dn,Gt),zt=Dt.length,Nn=gn.length;yt(Dt,gn,zt,Nn)==1;)dn--,$t(Dt,zr=10;ro/=10,qt++);jt(tn,St+(tn.e=qt+Vt*LOG_BASE-1)+1,It,fn)}else tn.e=Vt,tn.r=+fn;return tn}}();function Bt(an,yt,$t,Yt){var Kt,St,It,Gt,Ut;if($t==null?$t=vt:intCheck($t,0,8),!an.c)return an.toString();if(Kt=an.c[0],It=an.e,yt==null)Ut=coeffToString(an.c),Ut=Yt==1||Yt==2&&(It<=kt||It>=Pt)?toExponential(Ut,It):toFixedPoint(Ut,It,"0");else if(an=jt(new Et(an),yt,$t),St=an.e,Ut=coeffToString(an.c),Gt=Ut.length,Yt==1||Yt==2&&(yt<=St||St<=kt)){for(;GtGt){if(--yt>0)for(Ut+=".";yt--;Ut+="0");}else if(yt+=St-Gt,yt>0)for(St+1==Gt&&(Ut+=".");yt--;Ut+="0");return an.s<0&&Kt?"-"+Ut:Ut}function Tt(an,yt){for(var $t,Yt,Kt=1,St=new Et(an[0]);Kt=10;Kt/=10,Yt++);return($t=Yt+$t*LOG_BASE-1)>Zt?an.c=an.e=null:$t=10;Gt/=10,Kt++);if(St=yt-Kt,St<0)St+=LOG_BASE,It=yt,Ut=fn[Vt=0],qt=mathfloor(Ut/dn[Kt-It-1]%10);else if(Vt=mathceil((St+1)/LOG_BASE),Vt>=fn.length)if(Yt){for(;fn.length<=Vt;fn.push(0));Ut=qt=0,Kt=1,St%=LOG_BASE,It=St-LOG_BASE+1}else break e;else{for(Ut=Gt=fn[Vt],Kt=1;Gt>=10;Gt/=10,Kt++);St%=LOG_BASE,It=St-LOG_BASE+Kt,qt=It<0?0:mathfloor(Ut/dn[Kt-It-1]%10)}if(Yt=Yt||yt<0||fn[Vt+1]!=null||(It<0?Ut:Ut%dn[Kt-It-1]),Yt=$t<4?(qt||Yt)&&($t==0||$t==(an.s<0?3:2)):qt>5||qt==5&&($t==4||Yt||$t==6&&(St>0?It>0?Ut/dn[Kt-It]:0:fn[Vt-1])%10&1||$t==(an.s<0?8:7)),yt<1||!fn[0])return fn.length=0,Yt?(yt-=an.e+1,fn[0]=dn[(LOG_BASE-yt%LOG_BASE)%LOG_BASE],an.e=-yt||0):fn[0]=an.e=0,an;if(St==0?(fn.length=Vt,Gt=1,Vt--):(fn.length=Vt+1,Gt=dn[LOG_BASE-St],fn[Vt]=It>0?mathfloor(Ut/dn[Kt-It]%dn[It])*Gt:0),Yt)for(;;)if(Vt==0){for(St=1,It=fn[0];It>=10;It/=10,St++);for(It=fn[0]+=Gt,Gt=1;It>=10;It/=10,Gt++);St!=Gt&&(an.e++,fn[0]==BASE&&(fn[0]=1));break}else{if(fn[Vt]+=Gt,fn[Vt]!=BASE)break;fn[Vt--]=0,Gt=1}for(St=fn.length;fn[--St]===0;fn.pop());}an.e>Zt?an.c=an.e=null:an.e=Pt?toExponential(yt,$t):toFixedPoint(yt,$t,"0"),an.s<0?"-"+yt:yt)}return lt.absoluteValue=lt.abs=function(){var an=new Et(this);return an.s<0&&(an.s=1),an},lt.comparedTo=function(an,yt){return compare(this,new Et(an,yt))},lt.decimalPlaces=lt.dp=function(an,yt){var $t,Yt,Kt,St=this;if(an!=null)return intCheck(an,0,MAX),yt==null?yt=vt:intCheck(yt,0,8),jt(new Et(St),an+St.e+1,yt);if(!($t=St.c))return null;if(Yt=((Kt=$t.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,Kt=$t[Kt])for(;Kt%10==0;Kt/=10,Yt--);return Yt<0&&(Yt=0),Yt},lt.dividedBy=lt.div=function(an,yt){return b(this,new Et(an,yt),mt,vt)},lt.dividedToIntegerBy=lt.idiv=function(an,yt){return b(this,new Et(an,yt),0,1)},lt.exponentiatedBy=lt.pow=function(an,yt){var $t,Yt,Kt,St,It,Gt,Ut,Vt,qt,fn=this;if(an=new Et(an),an.c&&!an.isInteger())throw Error(bignumberError+"Exponent not an integer: "+Ht(an));if(yt!=null&&(yt=new Et(yt)),Gt=an.e>14,!fn.c||!fn.c[0]||fn.c[0]==1&&!fn.e&&fn.c.length==1||!an.c||!an.c[0])return qt=new Et(Math.pow(+Ht(fn),Gt?an.s*(2-isOdd(an)):+Ht(an))),yt?qt.mod(yt):qt;if(Ut=an.s<0,yt){if(yt.c?!yt.c[0]:!yt.s)return new Et(NaN);Yt=!Ut&&fn.isInteger()&&yt.isInteger(),Yt&&(fn=fn.mod(yt))}else{if(an.e>9&&(fn.e>0||fn.e<-1||(fn.e==0?fn.c[0]>1||Gt&&fn.c[1]>=24e7:fn.c[0]<8e13||Gt&&fn.c[0]<=9999975e7)))return St=fn.s<0&&isOdd(an)?-0:0,fn.e>-1&&(St=1/St),new Et(Ut?1/St:St);Qt&&(St=mathceil(Qt/LOG_BASE+2))}for(Gt?($t=new Et(.5),Ut&&(an.s=1),Vt=isOdd(an)):(Kt=Math.abs(+Ht(an)),Vt=Kt%2),qt=new Et(ht);;){if(Vt){if(qt=qt.times(fn),!qt.c)break;St?qt.c.length>St&&(qt.c.length=St):Yt&&(qt=qt.mod(yt))}if(Kt){if(Kt=mathfloor(Kt/2),Kt===0)break;Vt=Kt%2}else if(an=an.times($t),jt(an,an.e+1,1),an.e>14)Vt=isOdd(an);else{if(Kt=+Ht(an),Kt===0)break;Vt=Kt%2}fn=fn.times(fn),St?fn.c&&fn.c.length>St&&(fn.c.length=St):Yt&&(fn=fn.mod(yt))}return Yt?qt:(Ut&&(qt=ht.div(qt)),yt?qt.mod(yt):St?jt(qt,Qt,vt,It):qt)},lt.integerValue=function(an){var yt=new Et(this);return an==null?an=vt:intCheck(an,0,8),jt(yt,yt.e+1,an)},lt.isEqualTo=lt.eq=function(an,yt){return compare(this,new Et(an,yt))===0},lt.isFinite=function(){return!!this.c},lt.isGreaterThan=lt.gt=function(an,yt){return compare(this,new Et(an,yt))>0},lt.isGreaterThanOrEqualTo=lt.gte=function(an,yt){return(yt=compare(this,new Et(an,yt)))===1||yt===0},lt.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},lt.isLessThan=lt.lt=function(an,yt){return compare(this,new Et(an,yt))<0},lt.isLessThanOrEqualTo=lt.lte=function(an,yt){return(yt=compare(this,new Et(an,yt)))===-1||yt===0},lt.isNaN=function(){return!this.s},lt.isNegative=function(){return this.s<0},lt.isPositive=function(){return this.s>0},lt.isZero=function(){return!!this.c&&this.c[0]==0},lt.minus=function(an,yt){var $t,Yt,Kt,St,It=this,Gt=It.s;if(an=new Et(an,yt),yt=an.s,!Gt||!yt)return new Et(NaN);if(Gt!=yt)return an.s=-yt,It.plus(an);var Ut=It.e/LOG_BASE,Vt=an.e/LOG_BASE,qt=It.c,fn=an.c;if(!Ut||!Vt){if(!qt||!fn)return qt?(an.s=-yt,an):new Et(fn?It:NaN);if(!qt[0]||!fn[0])return fn[0]?(an.s=-yt,an):new Et(qt[0]?It:vt==3?-0:0)}if(Ut=bitFloor(Ut),Vt=bitFloor(Vt),qt=qt.slice(),Gt=Ut-Vt){for((St=Gt<0)?(Gt=-Gt,Kt=qt):(Vt=Ut,Kt=fn),Kt.reverse(),yt=Gt;yt--;Kt.push(0));Kt.reverse()}else for(Yt=(St=(Gt=qt.length)<(yt=fn.length))?Gt:yt,Gt=yt=0;yt0)for(;yt--;qt[$t++]=0);for(yt=BASE-1;Yt>Gt;){if(qt[--Yt]=0;){for($t=0,dn=wr[Kt]%An,Dt=wr[Kt]/An|0,It=Ut,St=Kt+It;St>Kt;)Vt=Nn[--It]%An,qt=Nn[It]/An|0,Gt=Dt*Vt+qt*dn,Vt=dn*Vt+Gt%An*An+zt[St]+$t,$t=(Vt/tn|0)+(Gt/An|0)+Dt*qt,zt[St--]=Vt%tn;zt[St]=$t}return $t?++Yt:zt.splice(0,1),Mt(an,zt,Yt)},lt.negated=function(){var an=new Et(this);return an.s=-an.s||null,an},lt.plus=function(an,yt){var $t,Yt=this,Kt=Yt.s;if(an=new Et(an,yt),yt=an.s,!Kt||!yt)return new Et(NaN);if(Kt!=yt)return an.s=-yt,Yt.minus(an);var St=Yt.e/LOG_BASE,It=an.e/LOG_BASE,Gt=Yt.c,Ut=an.c;if(!St||!It){if(!Gt||!Ut)return new Et(Kt/0);if(!Gt[0]||!Ut[0])return Ut[0]?an:new Et(Gt[0]?Yt:Kt*0)}if(St=bitFloor(St),It=bitFloor(It),Gt=Gt.slice(),Kt=St-It){for(Kt>0?(It=St,$t=Ut):(Kt=-Kt,$t=Gt),$t.reverse();Kt--;$t.push(0));$t.reverse()}for(Kt=Gt.length,yt=Ut.length,Kt-yt<0&&($t=Ut,Ut=Gt,Gt=$t,yt=Kt),Kt=0;yt;)Kt=(Gt[--yt]=Gt[yt]+Ut[yt]+Kt)/BASE|0,Gt[yt]=BASE===Gt[yt]?0:Gt[yt]%BASE;return Kt&&(Gt=[Kt].concat(Gt),++It),Mt(an,Gt,It)},lt.precision=lt.sd=function(an,yt){var $t,Yt,Kt,St=this;if(an!=null&&an!==!!an)return intCheck(an,1,MAX),yt==null?yt=vt:intCheck(yt,0,8),jt(new Et(St),an,yt);if(!($t=St.c))return null;if(Kt=$t.length-1,Yt=Kt*LOG_BASE+1,Kt=$t[Kt]){for(;Kt%10==0;Kt/=10,Yt--);for(Kt=$t[0];Kt>=10;Kt/=10,Yt++);}return an&&St.e+1>Yt&&(Yt=St.e+1),Yt},lt.shiftedBy=function(an){return intCheck(an,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times("1e"+an)},lt.squareRoot=lt.sqrt=function(){var an,yt,$t,Yt,Kt,St=this,It=St.c,Gt=St.s,Ut=St.e,Vt=mt+4,qt=new Et("0.5");if(Gt!==1||!It||!It[0])return new Et(!Gt||Gt<0&&(!It||It[0])?NaN:It?St:1/0);if(Gt=Math.sqrt(+Ht(St)),Gt==0||Gt==1/0?(yt=coeffToString(It),(yt.length+Ut)%2==0&&(yt+="0"),Gt=Math.sqrt(+yt),Ut=bitFloor((Ut+1)/2)-(Ut<0||Ut%2),Gt==1/0?yt="5e"+Ut:(yt=Gt.toExponential(),yt=yt.slice(0,yt.indexOf("e")+1)+Ut),$t=new Et(yt)):$t=new Et(Gt+""),$t.c[0]){for(Ut=$t.e,Gt=Ut+Vt,Gt<3&&(Gt=0);;)if(Kt=$t,$t=qt.times(Kt.plus(b(St,Kt,Vt,1))),coeffToString(Kt.c).slice(0,Gt)===(yt=coeffToString($t.c)).slice(0,Gt))if($t.e0&&zt>0){for(St=zt%Gt||Gt,qt=Dt.substr(0,St);St0&&(qt+=Vt+Dt.slice(St)),dn&&(qt="-"+qt)}Yt=fn?qt+($t.decimalSeparator||"")+((Ut=+$t.fractionGroupSize)?fn.replace(new RegExp("\\d{"+Ut+"}\\B","g"),"$&"+($t.fractionGroupSeparator||"")):fn):qt}return($t.prefix||"")+Yt+($t.suffix||"")},lt.toFraction=function(an){var yt,$t,Yt,Kt,St,It,Gt,Ut,Vt,qt,fn,dn,Dt=this,zt=Dt.c;if(an!=null&&(Gt=new Et(an),!Gt.isInteger()&&(Gt.c||Gt.s!==1)||Gt.lt(ht)))throw Error(bignumberError+"Argument "+(Gt.isInteger()?"out of range: ":"not an integer: ")+Ht(Gt));if(!zt)return new Et(Dt);for(yt=new Et(ht),Vt=$t=new Et(ht),Yt=Ut=new Et(ht),dn=coeffToString(zt),St=yt.e=dn.length-Dt.e-1,yt.c[0]=POWS_TEN[(It=St%LOG_BASE)<0?LOG_BASE+It:It],an=!an||Gt.comparedTo(yt)>0?St>0?yt:Vt:Gt,It=Zt,Zt=1/0,Gt=new Et(dn),Ut.c[0]=0;qt=b(Gt,yt,0,1),Kt=$t.plus(qt.times(Yt)),Kt.comparedTo(an)!=1;)$t=Yt,Yt=Kt,Vt=Ut.plus(qt.times(Kt=Vt)),Ut=Kt,yt=Gt.minus(qt.times(Kt=yt)),Gt=Kt;return Kt=b(an.minus($t),Yt,0,1),Ut=Ut.plus(Kt.times(Vt)),$t=$t.plus(Kt.times(Yt)),Ut.s=Vt.s=Dt.s,St=St*2,fn=b(Vt,Yt,St,vt).minus(Dt).abs().comparedTo(b(Ut,$t,St,vt).minus(Dt).abs())<1?[Vt,Yt]:[Ut,$t],Zt=It,fn},lt.toNumber=function(){return+Ht(this)},lt.toPrecision=function(an,yt){return an!=null&&intCheck(an,1,MAX),Bt(this,an,yt,2)},lt.toString=function(an){var yt,$t=this,Yt=$t.s,Kt=$t.e;return Kt===null?Yt?(yt="Infinity",Yt<0&&(yt="-"+yt)):yt="NaN":(an==null?yt=Kt<=kt||Kt>=Pt?toExponential(coeffToString($t.c),Kt):toFixedPoint(coeffToString($t.c),Kt,"0"):an===10&&xt?($t=jt(new Et($t),mt+Kt+1,vt),yt=toFixedPoint(coeffToString($t.c),$t.e,"0")):(intCheck(an,2,Nt.length,"Base"),yt=dt(toFixedPoint(coeffToString($t.c),Kt,"0"),10,an,Yt,!0)),Yt<0&&$t.c[0]&&(yt="-"+yt)),yt},lt.valueOf=lt.toJSON=function(){return Ht(this)},lt._isBigNumber=!0,lt[Symbol.toStringTag]="BigNumber",lt[Symbol.for("nodejs.util.inspect.custom")]=lt.valueOf,d!=null&&Et.set(d),Et}function bitFloor(d){var b=d|0;return d>0||d===b?b:b-1}function coeffToString(d){for(var b,dt,ct=1,lt=d.length,ht=d[0]+"";ctPt^dt?1:-1;for(vt=(kt=lt.length)<(Pt=ht.length)?kt:Pt,mt=0;mtht[mt]^dt?1:-1;return kt==Pt?0:kt>Pt^dt?1:-1}function intCheck(d,b,dt,ct){if(ddt||d!==mathfloor(d))throw Error(bignumberError+(ct||"Argument")+(typeof d=="number"?ddt?" out of range: ":" not an integer: ":" not a primitive number: ")+String(d))}function isOdd(d){var b=d.c.length-1;return bitFloor(d.e/LOG_BASE)==b&&d.c[b]%2!=0}function toExponential(d,b){return(d.length>1?d.charAt(0)+"."+d.slice(1):d)+(b<0?"e":"e+")+b}function toFixedPoint(d,b,dt){var ct,lt;if(b<0){for(lt=dt+".";++b;lt+=dt);d=lt+d}else if(ct=d.length,++b>ct){for(lt=dt,b-=ct;--b;lt+=dt);d+=lt}else b0?3:0,BigNumber.ROUND_FLOOR))}function BalancesItem({amount:d,denomValue:b}){const{denom:dt,coinDecimals:ct,img:lt}=configDenom[b];return jsxRuntimeExports.jsxs("div",{className:styles$8.wrapperItem,children:[jsxRuntimeExports.jsx("span",{className:styles$8.denom,children:dt}),jsxRuntimeExports.jsxs("div",{className:styles$8.amount,children:[jsxRuntimeExports.jsx("span",{children:formatNumber(getDisplayAmount(d||0,ct))}),jsxRuntimeExports.jsx("img",{src:lt,alt:dt})]})]})}function Balances({address:d}){const b=useQueryGetAllBalances({address:d});if(!b)return null;const dt=Object.keys(Denom).map(ct=>{const{amount:lt}=b.find(ht=>ht.denom===ct);return jsxRuntimeExports.jsx(BalancesItem,{denomValue:ct,amount:lt},ct)});return jsxRuntimeExports.jsx("div",{className:styles$8.container,children:jsxRuntimeExports.jsx(TitleItem,{title:"Balances",children:jsxRuntimeExports.jsx("div",{className:styles$8.wrapper,children:dt})})})}const LCD_URL="https://lcd.bostrom.cybernode.ai",CYBER_GATEWAY="https://gateway.ipfs.cybernode.ai",wrapper$2="_wrapper_bnbxn_1",styles$6={wrapper:wrapper$2};function Avatar({cid:d}){const b=`${CYBER_GATEWAY}/ipfs/${d}`;return jsxRuntimeExports.jsx("div",{className:styles$6.wrapper,children:jsxRuntimeExports.jsx("img",{src:b,alt:"avatar"})})}const wrapper$1="_wrapper_1jt9y_1",styles$5={wrapper:wrapper$1},colorText="_colorText_8bd22_1",styles$4={colorText};function GreenText({children:d}){return jsxRuntimeExports.jsx("span",{className:styles$4.colorText,children:d})}const icons={karma:"🔮",boot:"🟢",energy:"🔋"},PREFIXES=[{prefix:7,power:10**21},{prefix:6,power:10**18},{prefix:5,power:10**15},{prefix:4,power:10**12},{prefix:3,power:10**9},{prefix:2,power:10**6},{prefix:1,power:10**3}];function IconsNumber({value:d,type:b}){const{prefix:dt=1,power:ct=1}=PREFIXES.find(mt=>d>=mt.power)||{},lt=new BigNumber(d).dividedBy(ct).dp(0,BigNumber.ROUND_FLOOR).toNumber(),ht=new Array(dt).fill(icons[b]).map((mt,vt)=>typeof mt=="object"?React.cloneElement(mt,{key:vt}):mt);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt," ",ht]})}const containerKarma="_containerKarma_1f9df_1",styles$3={containerKarma},useGetKarma=d=>{const b=useQueryClient(),{data:dt}=useQuery({queryKey:["karma",d],queryFn:async()=>(await b.karma(d)).karma,enabled:!!(b&&d)});return{data:dt}};function Karma({address:d}){const{data:b}=useGetKarma(d);return b?jsxRuntimeExports.jsx(TitleItem,{title:"karma",children:jsxRuntimeExports.jsx("span",{className:styles$3.containerKarma,children:jsxRuntimeExports.jsx(IconsNumber,{value:b,type:"karma"})})}):null}async function getTransactions$1({events:d,pagination:b={limit:20,offset:0},orderBy:dt="ORDER_BY_UNSPECIFIED"}){const{offset:ct,limit:lt}=b;return axios$5.get(`${LCD_URL}/cosmos/tx/v1beta1/txs`,{params:{"pagination.offset":ct,"pagination.limit":lt,orderBy:dt,events:d.map(ht=>`${ht.key}='${ht.value}'`)},paramsSerializer:{indexes:null}})}async function getCyberlinksTotal(d){var ct,lt;return(lt=(ct=(await getTransactions$1({pagination:{offset:0,limit:1},events:[{key:"message.action",value:"/cyber.graph.v1beta1.MsgCyberlink"},{key:"cyberlink.neuron",value:d}]})).data)==null?void 0:ct.pagination)==null?void 0:lt.total}const getCyberLink=d=>{const{data:b}=useQuery({queryKey:["cyberlink",d],queryFn:async()=>getCyberlinksTotal(d),enabled:!!d});return{data:b}};function CyberLink({address:d}){const{data:b}=getCyberLink(d);return b?jsxRuntimeExports.jsx(TitleItem,{title:"cyberlinks",children:jsxRuntimeExports.jsx(GreenText,{children:b})}):null}function Passport({passport:d}){const b=d==null?void 0:d.owner,{nickname:dt,avatar:ct}=d.extension;return jsxRuntimeExports.jsxs("div",{className:styles$5.wrapper,children:[jsxRuntimeExports.jsx(Avatar,{cid:ct}),jsxRuntimeExports.jsx(TitleItem,{title:"name",children:jsxRuntimeExports.jsx(GreenText,{children:dt})}),jsxRuntimeExports.jsx(TitleItem,{title:"address",children:jsxRuntimeExports.jsx(GreenText,{children:trimString(b,11,4)})}),jsxRuntimeExports.jsx(Karma,{address:b}),jsxRuntimeExports.jsx(CyberLink,{address:b}),jsxRuntimeExports.jsx(Balances,{address:b})]})}const ActionBarContainer="_ActionBarContainer_1f6tq_1",ActionBarContainerContent="_ActionBarContainerContent_1f6tq_13",styles$2={ActionBarContainer,ActionBarContainerContent};function ActionBar({children:d}){return jsxRuntimeExports.jsx("div",{className:styles$2.ActionBarContainer,children:jsxRuntimeExports.jsx("div",{className:styles$2.ActionBarContainerContent,children:d})})}const base="https://awesome.cybernode.ai";function sendProof(d){return axios$5.post(base+"/proof",d)}const passportHeader="_passportHeader_wdpm0_1",resetBtn="_resetBtn_wdpm0_7",tx="_tx_wdpm0_16",styles$1={passportHeader,resetBtn,tx},RPC_URL="https://rpc.space-pussy.cybernode.ai",QueryClientContext=React.createContext(void 0);function useQueryClientPussy(){return reactExports.useContext(QueryClientContext)}function QueryClientProvider({children:d}){const{data:b,error:dt,isFetching:ct}=useQuery({queryKey:["cyberClient","connect-pussy"],queryFn:async()=>build$i.CyberClient.connect(RPC_URL)});return dt&&console.error("Error queryClient connect: ",dt.message),console.log(b),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:b,children:d})}const wrapper="_wrapper_lap2n_1",styles={wrapper};function Posts({publicKey:d}){const b=useQueryClientPussy(),{data:dt,isLoading:ct,error:lt}=useQuery({queryKey:["posts",d],refetchInterval:10*1e3,queryFn:async()=>b.queryContractSmart("pussy15s8v0pa5g60uhvmjpfj73p6nem6t597e8qnkgpsuck5tje3se7ps3ll7kl",{get_posts:{pubkey:d}})});return console.log(lt),jsxRuntimeExports.jsxs(Display,{title:jsxRuntimeExports.jsx(DisplayTitle,{title:"Your posts"}),children:[ct&&jsxRuntimeExports.jsx("div",{children:"Loading..."}),!dt&&!ct&&jsxRuntimeExports.jsx("div",{children:"No data"}),jsxRuntimeExports.jsx("div",{className:styles.wrapper,children:dt==null?void 0:dt.map(ht=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(ht.timestamp*1e3)}),jsxRuntimeExports.jsx("p",{children:ht.post})]},ht.timestamp))})]})}const tele$1=window.Telegram.WebApp,Main=()=>{var St,It,Gt,Ut,Vt;const{address:d,tonConnectUI:b,wallet:dt,connected:ct}=useTonConnect(),[lt,ht]=reactExports.useState(),[mt,vt]=reactExports.useState(),[kt,Pt]=reactExports.useState(!1),[Jt,Zt]=reactExports.useState(0),[Rt,nn]=reactExports.useState(""),Qt=useQueryClientPussy(),wt=(St=dt==null?void 0:dt.account)==null?void 0:St.publicKey,Nt=useQuery({queryKey:["passport",wt],queryFn:async()=>Qt.queryContractSmart("pussy15s8v0pa5g60uhvmjpfj73p6nem6t597e8qnkgpsuck5tje3se7ps3ll7kl",{get_nickname:{pubkey:wt}}),enabled:!!wt}),[xt,Et]=reactExports.useState(),[Bt,Tt]=reactExports.useState();console.log(dt),console.log("PK",(It=dt==null?void 0:dt.account)==null?void 0:It.publicKey);const Mt=(Gt=dt==null?void 0:dt.connectItems)==null?void 0:Gt.tonProof;console.log("tonProof",Mt);async function jt(){try{Pt(!0);const{address:qt,publicKey:fn}=dt.account||{},dn={proof:{proof:{...Mt.proof,state_init:""},network:"-239",address:qt},pubkey:fn},Dt=await sendProof(dn);console.log(Dt.data);const zt=Dt.data.tx.hash;Et(zt)}catch(qt){console.error(qt)}Pt(!1)}const Ht=Mt&&build$j.fromAscii(build$j.fromBase64((Ut=Mt==null?void 0:Mt.proof)==null?void 0:Ut.payload));if(Ht){const qt=JSON.parse(Ht),fn=qt.msg_type;qt.msg_data,fn==="map_nickname"&&!lt&&(jt(),ht({...Mt,data:qt})),fn==="add_post"&&!mt&&(jt(),vt({...Mt,data:qt}),nn(""))}const{data:an,fetchData:yt}=useCyberPassport({nickname:Bt});reactExports.useEffect(()=>{if(Nt.data){const qt=Nt.data;qt!==Bt&&(Tt(qt),setTimeout(()=>{yt(qt)},1e3)),Zt(3)}},[Nt.data,Bt,yt]);const $t=an;console.log($t),reactExports.useEffect(()=>{$t&&Zt(2)},[$t]),reactExports.useEffect(()=>{lt&&Zt(3)},[lt,$t]),reactExports.useEffect(()=>{tele$1&&(tele$1.ready(),tele$1.BackButton.hide())},[]);let Yt,Kt;return Jt===0?(Kt=jsxRuntimeExports.jsx(Button,{onClick:()=>Zt(1),children:"Add passport"}),Yt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"add moon passport"})):Jt===1?Kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Input,{value:Bt,placeholder:"enter passport...",onChange:qt=>{const fn=qt.target.value;Tt(fn)}}),jsxRuntimeExports.jsx(Button,{onClick:yt,children:"load passport"})]}):Jt===2?Kt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(TonWallet,{nickname:Bt,type:"passport"})}):Jt===3&&(Yt=jsxRuntimeExports.jsx(Posts,{publicKey:((Vt=dt==null?void 0:dt.account)==null?void 0:Vt.publicKey)||""}),xt?Kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("a",{className:styles$1.tx,target:"_blank",rel:"noreferrer noopener",href:"https://spacepussy.ai/network/bostrom/tx/"+xt,children:[" ",trimString(xt,6,6)]}),jsxRuntimeExports.jsx(Button,{onClick:()=>Et(null),children:"Close"})]}):kt?Kt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Button,{disabled:!0,children:"pending..."})}):Kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Input,{color:"pink",placeholder:"enter message...",value:Rt,onChange:qt=>{nn(qt.target.value)}}),jsxRuntimeExports.jsx(TonWallet,{message:Rt,nickname:Bt,type:"text"})]})),console.log(Jt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(MainContainer,{children:[jsxRuntimeExports.jsx(Stars,{}),jsxRuntimeExports.jsx(Header,{isOpen:!1,text:"CYBER-TON",backgroundType:!1}),jsxRuntimeExports.jsx("div",{style:{zIndex:1},children:Yt}),$t&&jsxRuntimeExports.jsx(Display,{title:jsxRuntimeExports.jsx(DisplayTitle,{title:jsxRuntimeExports.jsxs("div",{className:styles$1.passportHeader,children:["moon passport",jsxRuntimeExports.jsx("button",{className:styles$1.resetBtn,onClick:()=>{Zt(0),Tt(""),localStorage.removeItem(LS_KEY)},title:"reset passport",children:"reset passport"})]})}),children:jsxRuntimeExports.jsx("div",{style:{fontSize:14,wordBreak:"break-all"},children:jsxRuntimeExports.jsx(Passport,{passport:$t})})}),jsxRuntimeExports.jsx(ActionBar,{children:Kt})]})})};st.div` width: 100%; height: auto; min-height: 100%; diff --git a/index.html b/index.html index 21577db2..c2bb56e6 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,7 @@ /> CYBER-TON - +