From a1b5dc1bb538e435a923cddfc390c62583497506 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Mon, 1 Jul 2024 10:36:48 +0700 Subject: [PATCH] sort liquidity pools amm v3 --- .../{index-g6AD0gZK.js => index-DJzbElf1.js} | 8 ++++---- ...wasm => oraiswap_v3_wasm_bg-DbZ7j55v.wasm} | Bin 176330 -> 176320 bytes public/v3/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename public/v3/assets/{index-g6AD0gZK.js => index-DJzbElf1.js} (97%) rename public/v3/assets/{oraiswap_v3_wasm_bg-Db5GqR1D.wasm => oraiswap_v3_wasm_bg-DbZ7j55v.wasm} (92%) diff --git a/public/v3/assets/index-g6AD0gZK.js b/public/v3/assets/index-DJzbElf1.js similarity index 97% rename from public/v3/assets/index-g6AD0gZK.js rename to public/v3/assets/index-DJzbElf1.js index 79b6279e5..366476aa0 100644 --- a/public/v3/assets/index-g6AD0gZK.js +++ b/public/v3/assets/index-DJzbElf1.js @@ -11,13 +11,13 @@ Error generating stack: `+tt.message+` `)};function newTask(_e,cr,gr,Cr,Vr,tt,nt){var st;nt===void 0&&(nt=noop$9);var dt=RUNNING,kt,qt,ro=null,ht=[],po=Object.create(gr),no=forkQueue(cr,function(){ht.push.apply(ht,no.getTasks().map(function(uo){return uo.meta.name}))},eo);function Nt(){dt===RUNNING&&(dt=CANCELLED,no.cancelAll(),eo(TASK_CANCEL,!1))}function eo(uo,go){if(!go)uo===TASK_CANCEL?dt=CANCELLED:dt!==CANCELLED&&(dt=DONE$1),kt=uo,ro&&ro.resolve(uo);else{if(dt=ABORTED,addSagaFrame({meta:Vr,cancelledTasks:ht}),Ot.isRoot){var bo=toString$8();clear(),_e.onError(uo,{sagaStack:bo})}qt=uo,ro&&ro.reject(uo)}Ot.cont(uo,go),Ot.joiners.forEach(function(oo){oo.cb(uo,go)}),Ot.joiners=null}function Wt(uo){assignWithSymbols(po,uo)}function St(){return ro||(ro=deferred(),dt===ABORTED?ro.reject(qt):dt!==RUNNING&&ro.resolve(kt)),ro.promise}var Ot=(st={},st[TASK]=!0,st.id=Cr,st.meta=Vr,st.isRoot=tt,st.context=po,st.joiners=[],st.queue=no,st.cancel=Nt,st.cont=nt,st.end=eo,st.setContext=Wt,st.toPromise=St,st.isRunning=function(){return dt===RUNNING},st.isCancelled=function(){return dt===CANCELLED||dt===RUNNING&&cr.status===CANCELLED},st.isAborted=function(){return dt===ABORTED},st.result=function(){return kt},st.error=function(){return qt},st);return Ot}function proc(_e,cr,gr,Cr,Vr,tt,nt){var st=_e.finalizeRunEffect(po);ht.cancel=noop$9;var dt={meta:Vr,cancel:ro,status:RUNNING},kt=newTask(_e,dt,gr,Cr,Vr,tt,nt),qt={task:kt,digestEffect:no};function ro(){dt.status===RUNNING&&(dt.status=CANCELLED,ht(TASK_CANCEL))}return nt&&(nt.cancel=kt.cancel),ht(),kt;function ht(Nt,eo){try{var Wt;eo?(Wt=cr.throw(Nt),clear()):shouldCancel(Nt)?(dt.status=CANCELLED,ht.cancel(),Wt=func(cr.return)?cr.return(TASK_CANCEL):{done:!0,value:TASK_CANCEL}):shouldTerminate(Nt)?Wt=func(cr.return)?cr.return():{done:!0}:Wt=cr.next(Nt),Wt.done?(dt.status!==CANCELLED&&(dt.status=DONE$1),dt.cont(Wt.value)):no(Wt.value,Cr,ht)}catch(St){if(dt.status===CANCELLED)throw St;dt.status=ABORTED,dt.cont(St,!0)}}function po(Nt,eo,Wt){if(promise$1(Nt))resolvePromise(Nt,Wt);else if(iterator(Nt))proc(_e,Nt,kt.context,eo,Vr,!1,Wt);else if(Nt&&Nt[IO]){var St=effectRunnerMap[Nt.type];St(_e,Nt.payload,Wt,qt)}else Wt(Nt)}function no(Nt,eo,Wt,St){St===void 0&&(St="");var Ot=nextSagaId();_e.sagaMonitor&&_e.sagaMonitor.effectTriggered({effectId:Ot,parentEffectId:eo,label:St,effect:Nt});var uo;function go(bo,oo){uo||(uo=!0,Wt.cancel=noop$9,_e.sagaMonitor&&(oo?_e.sagaMonitor.effectRejected(Ot,bo):_e.sagaMonitor.effectResolved(Ot,bo)),oo&&setCrashedEffect(Nt),Wt(bo,oo))}go.cancel=noop$9,Wt.cancel=function(){uo||(uo=!0,go.cancel(),go.cancel=noop$9,_e.sagaMonitor&&_e.sagaMonitor.effectCancelled(Ot))},st(Nt,Ot,go)}}function runSaga(_e,cr){for(var gr=_e.channel,Cr=gr===void 0?stdChannel():gr,Vr=_e.dispatch,tt=_e.getState,nt=_e.context,st=nt===void 0?{}:nt,dt=_e.sagaMonitor,kt=_e.effectMiddlewares,qt=_e.onError,ro=qt===void 0?logError:qt,ht=arguments.length,po=new Array(ht>2?ht-2:0),no=2;noMath.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`},actionTypes_default=ActionTypes;function isPlainObject$6(_e){if(typeof _e!="object"||_e===null)return!1;let cr=_e;for(;Object.getPrototypeOf(cr)!==null;)cr=Object.getPrototypeOf(cr);return Object.getPrototypeOf(_e)===cr||Object.getPrototypeOf(_e)===null}function createStore(_e,cr,gr){if(typeof _e!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof cr=="function"&&typeof gr=="function"||typeof gr=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof cr=="function"&&typeof gr>"u"&&(gr=cr,cr=void 0),typeof gr<"u"){if(typeof gr!="function")throw new Error(formatProdErrorMessage$1(1));return gr(createStore)(_e,cr)}let Cr=_e,Vr=cr,tt=new Map,nt=tt,st=0,dt=!1;function kt(){nt===tt&&(nt=new Map,tt.forEach((Nt,eo)=>{nt.set(eo,Nt)}))}function qt(){if(dt)throw new Error(formatProdErrorMessage$1(3));return Vr}function ro(Nt){if(typeof Nt!="function")throw new Error(formatProdErrorMessage$1(4));if(dt)throw new Error(formatProdErrorMessage$1(5));let eo=!0;kt();const Wt=st++;return nt.set(Wt,Nt),function(){if(eo){if(dt)throw new Error(formatProdErrorMessage$1(6));eo=!1,kt(),nt.delete(Wt),tt=null}}}function ht(Nt){if(!isPlainObject$6(Nt))throw new Error(formatProdErrorMessage$1(7));if(typeof Nt.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof Nt.type!="string")throw new Error(formatProdErrorMessage$1(17));if(dt)throw new Error(formatProdErrorMessage$1(9));try{dt=!0,Vr=Cr(Vr,Nt)}finally{dt=!1}return(tt=nt).forEach(eo=>{eo()}),Nt}function po(Nt){if(typeof Nt!="function")throw new Error(formatProdErrorMessage$1(10));Cr=Nt,ht({type:actionTypes_default.REPLACE})}function no(){const Nt=ro;return{subscribe(eo){if(typeof eo!="object"||eo===null)throw new Error(formatProdErrorMessage$1(11));function Wt(){const St=eo;St.next&&St.next(qt())}return Wt(),{unsubscribe:Nt(Wt)}},[symbol_observable_default](){return this}}}return ht({type:actionTypes_default.INIT}),{dispatch:ht,subscribe:ro,getState:qt,replaceReducer:po,[symbol_observable_default]:no}}function assertReducerShape(_e){Object.keys(_e).forEach(cr=>{const gr=_e[cr];if(typeof gr(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof gr(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(_e){const cr=Object.keys(_e),gr={};for(let tt=0;tt"u")throw nt&&nt.type,new Error(formatProdErrorMessage$1(14));dt[qt]=po,st=st||po!==ht}return st=st||Cr.length!==Object.keys(tt).length,st?dt:tt}}function compose$1(..._e){return _e.length===0?cr=>cr:_e.length===1?_e[0]:_e.reduce((cr,gr)=>(...Cr)=>cr(gr(...Cr)))}function applyMiddleware(..._e){return cr=>(gr,Cr)=>{const Vr=cr(gr,Cr);let tt=()=>{throw new Error(formatProdErrorMessage$1(15))};const nt={getState:Vr.getState,dispatch:(dt,...kt)=>tt(dt,...kt)},st=_e.map(dt=>dt(nt));return tt=compose$1(...st)(Vr.dispatch),{...Vr,dispatch:tt}}}function isAction(_e){return isPlainObject$6(_e)&&"type"in _e&&typeof _e.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(_e,...cr){throw new Error(`[Immer] minified error nr: ${_e}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(_e){return!!_e&&!!_e[DRAFT_STATE]}function isDraftable(_e){var cr;return _e?isPlainObject$5(_e)||Array.isArray(_e)||!!_e[DRAFTABLE]||!!((cr=_e.constructor)!=null&&cr[DRAFTABLE])||isMap(_e)||isSet$1(_e):!1}var objectCtorString$1=Object.prototype.constructor.toString();function isPlainObject$5(_e){if(!_e||typeof _e!="object")return!1;const cr=getPrototypeOf(_e);if(cr===null)return!0;const gr=Object.hasOwnProperty.call(cr,"constructor")&&cr.constructor;return gr===Object?!0:typeof gr=="function"&&Function.toString.call(gr)===objectCtorString$1}function each$2(_e,cr){getArchtype(_e)===0?Reflect.ownKeys(_e).forEach(gr=>{cr(gr,_e[gr],_e)}):_e.forEach((gr,Cr)=>cr(Cr,gr,_e))}function getArchtype(_e){const cr=_e[DRAFT_STATE];return cr?cr.type_:Array.isArray(_e)?1:isMap(_e)?2:isSet$1(_e)?3:0}function has(_e,cr){return getArchtype(_e)===2?_e.has(cr):Object.prototype.hasOwnProperty.call(_e,cr)}function set$2(_e,cr,gr){const Cr=getArchtype(_e);Cr===2?_e.set(cr,gr):Cr===3?_e.add(gr):_e[cr]=gr}function is$1(_e,cr){return _e===cr?_e!==0||1/_e===1/cr:_e!==_e&&cr!==cr}function isMap(_e){return _e instanceof Map}function isSet$1(_e){return _e instanceof Set}function latest(_e){return _e.copy_||_e.base_}function shallowCopy(_e,cr){if(isMap(_e))return new Map(_e);if(isSet$1(_e))return new Set(_e);if(Array.isArray(_e))return Array.prototype.slice.call(_e);const gr=isPlainObject$5(_e);if(cr===!0||cr==="class_only"&&!gr){const Cr=Object.getOwnPropertyDescriptors(_e);delete Cr[DRAFT_STATE];let Vr=Reflect.ownKeys(Cr);for(let tt=0;tt1&&(_e.set=_e.add=_e.clear=_e.delete=dontMutateFrozenCollections),Object.freeze(_e),cr&&Object.entries(_e).forEach(([gr,Cr])=>freeze(Cr,!0))),_e}function dontMutateFrozenCollections(){die(2)}function isFrozen(_e){return Object.isFrozen(_e)}var plugins={};function getPlugin(_e){const cr=plugins[_e];return cr||die(0,_e),cr}var currentScope;function getCurrentScope(){return currentScope}function createScope(_e,cr){return{drafts_:[],parent_:_e,immer_:cr,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(_e,cr){cr&&(getPlugin("Patches"),_e.patches_=[],_e.inversePatches_=[],_e.patchListener_=cr)}function revokeScope(_e){leaveScope(_e),_e.drafts_.forEach(revokeDraft),_e.drafts_=null}function leaveScope(_e){_e===currentScope&&(currentScope=_e.parent_)}function enterScope(_e){return currentScope=createScope(currentScope,_e)}function revokeDraft(_e){const cr=_e[DRAFT_STATE];cr.type_===0||cr.type_===1?cr.revoke_():cr.revoked_=!0}function processResult(_e,cr){cr.unfinalizedDrafts_=cr.drafts_.length;const gr=cr.drafts_[0];return _e!==void 0&&_e!==gr?(gr[DRAFT_STATE].modified_&&(revokeScope(cr),die(4)),isDraftable(_e)&&(_e=finalize(cr,_e),cr.parent_||maybeFreeze(cr,_e)),cr.patches_&&getPlugin("Patches").generateReplacementPatches_(gr[DRAFT_STATE].base_,_e,cr.patches_,cr.inversePatches_)):_e=finalize(cr,gr,[]),revokeScope(cr),cr.patches_&&cr.patchListener_(cr.patches_,cr.inversePatches_),_e!==NOTHING?_e:void 0}function finalize(_e,cr,gr){if(isFrozen(cr))return cr;const Cr=cr[DRAFT_STATE];if(!Cr)return each$2(cr,(Vr,tt)=>finalizeProperty(_e,Cr,cr,Vr,tt,gr)),cr;if(Cr.scope_!==_e)return cr;if(!Cr.modified_)return maybeFreeze(_e,Cr.base_,!0),Cr.base_;if(!Cr.finalized_){Cr.finalized_=!0,Cr.scope_.unfinalizedDrafts_--;const Vr=Cr.copy_;let tt=Vr,nt=!1;Cr.type_===3&&(tt=new Set(Vr),Vr.clear(),nt=!0),each$2(tt,(st,dt)=>finalizeProperty(_e,Cr,Vr,st,dt,gr,nt)),maybeFreeze(_e,Vr,!1),gr&&_e.patches_&&getPlugin("Patches").generatePatches_(Cr,gr,_e.patches_,_e.inversePatches_)}return Cr.copy_}function finalizeProperty(_e,cr,gr,Cr,Vr,tt,nt){if(isDraft(Vr)){const st=tt&&cr&&cr.type_!==3&&!has(cr.assigned_,Cr)?tt.concat(Cr):void 0,dt=finalize(_e,Vr,st);if(set$2(gr,Cr,dt),isDraft(dt))_e.canAutoFreeze_=!1;else return}else nt&&gr.add(Vr);if(isDraftable(Vr)&&!isFrozen(Vr)){if(!_e.immer_.autoFreeze_&&_e.unfinalizedDrafts_<1)return;finalize(_e,Vr),(!cr||!cr.scope_.parent_)&&typeof Cr!="symbol"&&Object.prototype.propertyIsEnumerable.call(gr,Cr)&&maybeFreeze(_e,Vr)}}function maybeFreeze(_e,cr,gr=!1){!_e.parent_&&_e.immer_.autoFreeze_&&_e.canAutoFreeze_&&freeze(cr,gr)}function createProxyProxy(_e,cr){const gr=Array.isArray(_e),Cr={type_:gr?1:0,scope_:cr?cr.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:cr,base_:_e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let Vr=Cr,tt=objectTraps;gr&&(Vr=[Cr],tt=arrayTraps);const{revoke:nt,proxy:st}=Proxy.revocable(Vr,tt);return Cr.draft_=st,Cr.revoke_=nt,st}var objectTraps={get(_e,cr){if(cr===DRAFT_STATE)return _e;const gr=latest(_e);if(!has(gr,cr))return readPropFromProto(_e,gr,cr);const Cr=gr[cr];return _e.finalized_||!isDraftable(Cr)?Cr:Cr===peek$1(_e.base_,cr)?(prepareCopy(_e),_e.copy_[cr]=createProxy(Cr,_e)):Cr},has(_e,cr){return cr in latest(_e)},ownKeys(_e){return Reflect.ownKeys(latest(_e))},set(_e,cr,gr){const Cr=getDescriptorFromProto(latest(_e),cr);if(Cr!=null&&Cr.set)return Cr.set.call(_e.draft_,gr),!0;if(!_e.modified_){const Vr=peek$1(latest(_e),cr),tt=Vr==null?void 0:Vr[DRAFT_STATE];if(tt&&tt.base_===gr)return _e.copy_[cr]=gr,_e.assigned_[cr]=!1,!0;if(is$1(gr,Vr)&&(gr!==void 0||has(_e.base_,cr)))return!0;prepareCopy(_e),markChanged(_e)}return _e.copy_[cr]===gr&&(gr!==void 0||cr in _e.copy_)||Number.isNaN(gr)&&Number.isNaN(_e.copy_[cr])||(_e.copy_[cr]=gr,_e.assigned_[cr]=!0),!0},deleteProperty(_e,cr){return peek$1(_e.base_,cr)!==void 0||cr in _e.base_?(_e.assigned_[cr]=!1,prepareCopy(_e),markChanged(_e)):delete _e.assigned_[cr],_e.copy_&&delete _e.copy_[cr],!0},getOwnPropertyDescriptor(_e,cr){const gr=latest(_e),Cr=Reflect.getOwnPropertyDescriptor(gr,cr);return Cr&&{writable:!0,configurable:_e.type_!==1||cr!=="length",enumerable:Cr.enumerable,value:gr[cr]}},defineProperty(){die(11)},getPrototypeOf(_e){return getPrototypeOf(_e.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each$2(objectTraps,(_e,cr)=>{arrayTraps[_e]=function(){return arguments[0]=arguments[0][0],cr.apply(this,arguments)}}),arrayTraps.deleteProperty=function(_e,cr){return arrayTraps.set.call(this,_e,cr,void 0)},arrayTraps.set=function(_e,cr,gr){return objectTraps.set.call(this,_e[0],cr,gr,_e[0])};function peek$1(_e,cr){const gr=_e[DRAFT_STATE];return(gr?latest(gr):_e)[cr]}function readPropFromProto(_e,cr,gr){var Vr;const Cr=getDescriptorFromProto(cr,gr);return Cr?"value"in Cr?Cr.value:(Vr=Cr.get)==null?void 0:Vr.call(_e.draft_):void 0}function getDescriptorFromProto(_e,cr){if(!(cr in _e))return;let gr=getPrototypeOf(_e);for(;gr;){const Cr=Object.getOwnPropertyDescriptor(gr,cr);if(Cr)return Cr;gr=getPrototypeOf(gr)}}function markChanged(_e){_e.modified_||(_e.modified_=!0,_e.parent_&&markChanged(_e.parent_))}function prepareCopy(_e){_e.copy_||(_e.copy_=shallowCopy(_e.base_,_e.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(_e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(cr,gr,Cr)=>{if(typeof cr=="function"&&typeof gr!="function"){const tt=gr;gr=cr;const nt=this;return function(st=tt,...dt){return nt.produce(st,kt=>gr.call(this,kt,...dt))}}typeof gr!="function"&&die(6),Cr!==void 0&&typeof Cr!="function"&&die(7);let Vr;if(isDraftable(cr)){const tt=enterScope(this),nt=createProxy(cr,void 0);let st=!0;try{Vr=gr(nt),st=!1}finally{st?revokeScope(tt):leaveScope(tt)}return usePatchesInScope(tt,Cr),processResult(Vr,tt)}else if(!cr||typeof cr!="object"){if(Vr=gr(cr),Vr===void 0&&(Vr=cr),Vr===NOTHING&&(Vr=void 0),this.autoFreeze_&&freeze(Vr,!0),Cr){const tt=[],nt=[];getPlugin("Patches").generateReplacementPatches_(cr,Vr,tt,nt),Cr(tt,nt)}return Vr}else die(1,cr)},this.produceWithPatches=(cr,gr)=>{if(typeof cr=="function")return(tt,...nt)=>this.produceWithPatches(tt,st=>cr(st,...nt));let Cr,Vr;return[this.produce(cr,gr,(tt,nt)=>{Cr=tt,Vr=nt}),Cr,Vr]},typeof(_e==null?void 0:_e.autoFreeze)=="boolean"&&this.setAutoFreeze(_e.autoFreeze),typeof(_e==null?void 0:_e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(_e.useStrictShallowCopy)}createDraft(_e){isDraftable(_e)||die(8),isDraft(_e)&&(_e=current(_e));const cr=enterScope(this),gr=createProxy(_e,void 0);return gr[DRAFT_STATE].isManual_=!0,leaveScope(cr),gr}finishDraft(_e,cr){const gr=_e&&_e[DRAFT_STATE];(!gr||!gr.isManual_)&&die(9);const{scope_:Cr}=gr;return usePatchesInScope(Cr,cr),processResult(void 0,Cr)}setAutoFreeze(_e){this.autoFreeze_=_e}setUseStrictShallowCopy(_e){this.useStrictShallowCopy_=_e}applyPatches(_e,cr){let gr;for(gr=cr.length-1;gr>=0;gr--){const Vr=cr[gr];if(Vr.path.length===0&&Vr.op==="replace"){_e=Vr.value;break}}gr>-1&&(cr=cr.slice(gr+1));const Cr=getPlugin("Patches").applyPatches_;return isDraft(_e)?Cr(_e,cr):this.produce(_e,Vr=>Cr(Vr,cr))}};function createProxy(_e,cr){const gr=isMap(_e)?getPlugin("MapSet").proxyMap_(_e,cr):isSet$1(_e)?getPlugin("MapSet").proxySet_(_e,cr):createProxyProxy(_e,cr);return(cr?cr.scope_:getCurrentScope()).drafts_.push(gr),gr}function current(_e){return isDraft(_e)||die(10,_e),currentImpl(_e)}function currentImpl(_e){if(!isDraftable(_e)||isFrozen(_e))return _e;const cr=_e[DRAFT_STATE];let gr;if(cr){if(!cr.modified_)return cr.base_;cr.finalized_=!0,gr=shallowCopy(_e,cr.scope_.immer_.useStrictShallowCopy_)}else gr=shallowCopy(_e,!0);return each$2(gr,(Cr,Vr)=>{set$2(gr,Cr,currentImpl(Vr))}),cr&&(cr.finalized_=!1),gr}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer),immer.setAutoFreeze.bind(immer),immer.setUseStrictShallowCopy.bind(immer),immer.applyPatches.bind(immer),immer.createDraft.bind(immer),immer.finishDraft.bind(immer);function assertIsFunction(_e,cr=`expected a function, instead received ${typeof _e}`){if(typeof _e!="function")throw new TypeError(cr)}function assertIsObject(_e,cr=`expected an object, instead received ${typeof _e}`){if(typeof _e!="object")throw new TypeError(cr)}function assertIsArrayOfFunctions(_e,cr="expected all items to be functions, instead received the following types: "){if(!_e.every(gr=>typeof gr=="function")){const gr=_e.map(Cr=>typeof Cr=="function"?`function ${Cr.name||"unnamed"}()`:typeof Cr).join(", ");throw new TypeError(`${cr}[${gr}]`)}}var ensureIsArray=_e=>Array.isArray(_e)?_e:[_e];function getDependencies(_e){const cr=Array.isArray(_e[0])?_e[0]:_e;return assertIsArrayOfFunctions(cr,"createSelector expects all input-selectors to be functions, but received the following types: "),cr}function collectInputSelectorResults(_e,cr){const gr=[],{length:Cr}=_e;for(let Vr=0;Vr{gr=createCacheNode(),nt.resetResultsCount()},nt.resultsCount=()=>tt,nt.resetResultsCount=()=>{tt=0},nt}function createSelectorCreator(_e,...cr){const gr=typeof _e=="function"?{memoize:_e,memoizeOptions:cr}:_e,Cr=(...Vr)=>{let tt=0,nt=0,st,dt={},kt=Vr.pop();typeof kt=="object"&&(dt=kt,kt=Vr.pop()),assertIsFunction(kt,`createSelector expects an output function after the inputs, but received: [${typeof kt}]`);const qt={...gr,...dt},{memoize:ro,memoizeOptions:ht=[],argsMemoize:po=weakMapMemoize,argsMemoizeOptions:no=[],devModeChecks:Nt={}}=qt,eo=ensureIsArray(ht),Wt=ensureIsArray(no),St=getDependencies(Vr),Ot=ro(function(){return tt++,kt.apply(null,arguments)},...eo),uo=po(function(){nt++;const go=collectInputSelectorResults(St,arguments);return st=Ot.apply(null,go),st},...Wt);return Object.assign(uo,{resultFunc:kt,memoizedResultFunc:Ot,dependencies:St,dependencyRecomputations:()=>nt,resetDependencyRecomputations:()=>{nt=0},lastResult:()=>st,recomputations:()=>tt,resetRecomputations:()=>{tt=0},memoize:ro,argsMemoize:po})};return Object.assign(Cr,{withTypes:()=>Cr}),Cr}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((_e,cr=createSelector)=>{assertIsObject(_e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof _e}`);const gr=Object.keys(_e),Cr=gr.map(Vr=>_e[Vr]);return cr(Cr,(...Vr)=>Vr.reduce((tt,nt,st)=>(tt[gr[st]]=nt,tt),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(_e){return({dispatch:cr,getState:gr})=>Cr=>Vr=>typeof Vr=="function"?Vr(cr,gr,_e):Cr(Vr)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(..._e)=>{const cr=createSelectorCreator(..._e),gr=Object.assign((...Cr)=>{const Vr=cr(...Cr),tt=(nt,...st)=>Vr(isDraft(nt)?current(nt):nt,...st);return Object.assign(tt,Vr),tt},{withTypes:()=>gr});return gr};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose$1:compose$1.apply(null,arguments)};function createAction(_e,cr){function gr(...Cr){if(cr){let Vr=cr(...Cr);if(!Vr)throw new Error(formatProdErrorMessage(0));return{type:_e,payload:Vr.payload,..."meta"in Vr&&{meta:Vr.meta},..."error"in Vr&&{error:Vr.error}}}return{type:_e,payload:Cr[0]}}return gr.toString=()=>`${_e}`,gr.type=_e,gr.match=Cr=>isAction(Cr)&&Cr.type===_e,gr}var Tuple=class TA extends Array{constructor(...cr){super(...cr),Object.setPrototypeOf(this,TA.prototype)}static get[Symbol.species](){return TA}concat(...cr){return super.concat.apply(this,cr)}prepend(...cr){return cr.length===1&&Array.isArray(cr[0])?new TA(...cr[0].concat(this)):new TA(...cr.concat(this))}};function freezeDraftable(_e){return isDraftable(_e)?produce(_e,()=>{}):_e}function emplace(_e,cr,gr){if(_e.has(cr)){let Vr=_e.get(cr);return gr.update&&(Vr=gr.update(Vr,cr,_e),_e.set(cr,Vr)),Vr}if(!gr.insert)throw new Error(formatProdErrorMessage(10));const Cr=gr.insert(cr,_e);return _e.set(cr,Cr),Cr}function isPlain(_e){const cr=typeof _e;return _e==null||cr==="string"||cr==="boolean"||cr==="number"||Array.isArray(_e)||isPlainObject$6(_e)}function isBoolean$1(_e){return typeof _e=="boolean"}var buildGetDefaultMiddleware=()=>function(_e){const{thunk:cr=!0,immutableCheck:gr=!0,serializableCheck:Cr=!0,actionCreatorCheck:Vr=!0}=_e??{};let tt=new Tuple;return cr&&(isBoolean$1(cr)?tt.push(thunk):tt.push(withExtraArgument(cr.extraArgument))),tt},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=_e=>cr=>{setTimeout(cr,_e)},rAF=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(_e={type:"raf"})=>cr=>(...gr)=>{const Cr=cr(...gr);let Vr=!0,tt=!1,nt=!1;const st=new Set,dt=_e.type==="tick"?queueMicrotask:_e.type==="raf"?rAF:_e.type==="callback"?_e.queueNotification:createQueueWithTimer(_e.timeout),kt=()=>{nt=!1,tt&&(tt=!1,st.forEach(qt=>qt()))};return Object.assign({},Cr,{subscribe(qt){const ro=()=>Vr&&qt(),ht=Cr.subscribe(ro);return st.add(qt),()=>{ht(),st.delete(qt)}},dispatch(qt){var ro;try{return Vr=!((ro=qt==null?void 0:qt.meta)!=null&&ro[SHOULD_AUTOBATCH]),tt=!Vr,tt&&(nt||(nt=!0,dt(kt))),Cr.dispatch(qt)}finally{Vr=!0}}})},buildGetDefaultEnhancers=_e=>function(cr){const{autoBatch:gr=!0}=cr??{};let Cr=new Tuple(_e);return gr&&Cr.push(autoBatchEnhancer(typeof gr=="object"?gr:void 0)),Cr},IS_PRODUCTION=!0;function configureStore(_e){const cr=buildGetDefaultMiddleware(),{reducer:gr=void 0,middleware:Cr,devTools:Vr=!0,preloadedState:tt=void 0,enhancers:nt=void 0}=_e||{};let st;if(typeof gr=="function")st=gr;else if(isPlainObject$6(gr))st=combineReducers(gr);else throw new Error(formatProdErrorMessage(1));let dt;typeof Cr=="function"?dt=Cr(cr):dt=cr();let kt=compose$1;Vr&&(kt=composeWithDevTools({trace:!IS_PRODUCTION,...typeof Vr=="object"&&Vr}));const qt=applyMiddleware(...dt),ro=buildGetDefaultEnhancers(qt);let ht=typeof nt=="function"?nt(ro):ro();const po=kt(...ht);return createStore(st,tt,po)}function executeReducerBuilderCallback(_e){const cr={},gr=[];let Cr;const Vr={addCase(tt,nt){const st=typeof tt=="string"?tt:tt.type;if(!st)throw new Error(formatProdErrorMessage(28));if(st in cr)throw new Error(formatProdErrorMessage(29));return cr[st]=nt,Vr},addMatcher(tt,nt){return gr.push({matcher:tt,reducer:nt}),Vr},addDefaultCase(tt){return Cr=tt,Vr}};return _e(Vr),[cr,gr,Cr]}function isStateFunction(_e){return typeof _e=="function"}function createReducer(_e,cr){let[gr,Cr,Vr]=executeReducerBuilderCallback(cr),tt;if(isStateFunction(_e))tt=()=>freezeDraftable(_e());else{const st=freezeDraftable(_e);tt=()=>st}function nt(st=tt(),dt){let kt=[gr[dt.type],...Cr.filter(({matcher:qt})=>qt(dt)).map(({reducer:qt})=>qt)];return kt.filter(qt=>!!qt).length===0&&(kt=[Vr]),kt.reduce((qt,ro)=>{if(ro)if(isDraft(qt)){const ht=ro(qt,dt);return ht===void 0?qt:ht}else{if(isDraftable(qt))return produce(qt,ht=>ro(ht,dt));{const ht=ro(qt,dt);if(ht===void 0){if(qt===null)return qt;throw new Error(formatProdErrorMessage(9))}return ht}}return qt},st)}return nt.getInitialState=tt,nt}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(_e=21)=>{let cr="",gr=_e;for(;gr--;)cr+=urlAlphabet[Math.random()*64|0];return cr},asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(_e,cr){return`${_e}/${cr}`}function buildCreateSlice({creators:_e}={}){var gr;const cr=(gr=_e==null?void 0:_e.asyncThunk)==null?void 0:gr[asyncThunkSymbol];return function(Cr){const{name:Vr,reducerPath:tt=Vr}=Cr;if(!Vr)throw new Error(formatProdErrorMessage(11));typeof process<"u";const nt=(typeof Cr.reducers=="function"?Cr.reducers(buildReducerCreators()):Cr.reducers)||{},st=Object.keys(nt),dt={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},kt={addCase(St,Ot){const uo=typeof St=="string"?St:St.type;if(!uo)throw new Error(formatProdErrorMessage(12));if(uo in dt.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return dt.sliceCaseReducersByType[uo]=Ot,kt},addMatcher(St,Ot){return dt.sliceMatchers.push({matcher:St,reducer:Ot}),kt},exposeAction(St,Ot){return dt.actionCreators[St]=Ot,kt},exposeCaseReducer(St,Ot){return dt.sliceCaseReducersByName[St]=Ot,kt}};st.forEach(St=>{const Ot=nt[St],uo={reducerName:St,type:getType(Vr,St),createNotation:typeof Cr.reducers=="function"};isAsyncThunkSliceReducerDefinition(Ot)?handleThunkCaseReducerDefinition(uo,Ot,kt,cr):handleNormalReducerDefinition(uo,Ot,kt)});function qt(){const[St={},Ot=[],uo=void 0]=typeof Cr.extraReducers=="function"?executeReducerBuilderCallback(Cr.extraReducers):[Cr.extraReducers],go={...St,...dt.sliceCaseReducersByType};return createReducer(Cr.initialState,bo=>{for(let oo in go)bo.addCase(oo,go[oo]);for(let oo of dt.sliceMatchers)bo.addMatcher(oo.matcher,oo.reducer);for(let oo of Ot)bo.addMatcher(oo.matcher,oo.reducer);uo&&bo.addDefaultCase(uo)})}const ro=St=>St,ht=new Map;let po;function no(St,Ot){return po||(po=qt()),po(St,Ot)}function Nt(){return po||(po=qt()),po.getInitialState()}function eo(St,Ot=!1){function uo(bo){let oo=bo[St];return typeof oo>"u"&&Ot&&(oo=Nt()),oo}function go(bo=ro){const oo=emplace(ht,Ot,{insert:()=>new WeakMap});return emplace(oo,bo,{insert:()=>{const Ro={};for(const[pt,lo]of Object.entries(Cr.selectors??{}))Ro[pt]=wrapSelector(lo,bo,Nt,Ot);return Ro}})}return{reducerPath:St,getSelectors:go,get selectors(){return go(uo)},selectSlice:uo}}const Wt={name:Vr,reducer:no,actions:dt.actionCreators,caseReducers:dt.sliceCaseReducersByName,getInitialState:Nt,...eo(tt),injectInto(St,{reducerPath:Ot,...uo}={}){const go=Ot??tt;return St.inject({reducerPath:go,reducer:no},uo),{...Wt,...eo(go,!0)}}};return Wt}}function wrapSelector(_e,cr,gr,Cr){function Vr(tt,...nt){let st=cr(tt);return typeof st>"u"&&Cr&&(st=gr()),_e(st,...nt)}return Vr.unwrapped=_e,Vr}var createSlice=buildCreateSlice();function buildReducerCreators(){function _e(cr,gr){return{_reducerDefinitionType:"asyncThunk",payloadCreator:cr,...gr}}return _e.withTypes=()=>_e,{reducer(cr){return Object.assign({[cr.name](...gr){return cr(...gr)}}[cr.name],{_reducerDefinitionType:"reducer"})},preparedReducer(cr,gr){return{_reducerDefinitionType:"reducerWithPrepare",prepare:cr,reducer:gr}},asyncThunk:_e}}function handleNormalReducerDefinition({type:_e,reducerName:cr,createNotation:gr},Cr,Vr){let tt,nt;if("reducer"in Cr){if(gr&&!isCaseReducerWithPrepareDefinition(Cr))throw new Error(formatProdErrorMessage(17));tt=Cr.reducer,nt=Cr.prepare}else tt=Cr;Vr.addCase(_e,tt).exposeCaseReducer(cr,tt).exposeAction(cr,nt?createAction(_e,nt):createAction(_e))}function isAsyncThunkSliceReducerDefinition(_e){return _e._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(_e){return _e._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:_e,reducerName:cr},gr,Cr,Vr){if(!Vr)throw new Error(formatProdErrorMessage(18));const{payloadCreator:tt,fulfilled:nt,pending:st,rejected:dt,settled:kt,options:qt}=gr,ro=Vr(_e,tt,qt);Cr.exposeAction(cr,ro),nt&&Cr.addCase(ro.fulfilled,nt),st&&Cr.addCase(ro.pending,st),dt&&Cr.addCase(ro.rejected,dt),kt&&Cr.addMatcher(ro.settled,kt),Cr.exposeCaseReducer(cr,{fulfilled:nt||noop$8,pending:st||noop$8,rejected:dt||noop$8,settled:kt||noop$8})}function noop$8(){}var assertFunction=(_e,cr)=>{if(typeof _e!="function")throw new Error(formatProdErrorMessage(32))},alm="listenerMiddleware",getListenerEntryPropsFrom=_e=>{let{type:cr,actionCreator:gr,matcher:Cr,predicate:Vr,effect:tt}=_e;if(cr)Vr=createAction(cr).match;else if(gr)cr=gr.type,Vr=gr.match;else if(Cr)Vr=Cr;else if(!Vr)throw new Error(formatProdErrorMessage(21));return assertFunction(tt),{predicate:Vr,type:cr,effect:tt}},createListenerEntry=Object.assign(_e=>{const{type:cr,predicate:gr,effect:Cr}=getListenerEntryPropsFrom(_e);return{id:nanoid(),effect:Cr,type:cr,predicate:gr,pending:new Set,unsubscribe:()=>{throw new Error(formatProdErrorMessage(22))}}},{withTypes:()=>createListenerEntry}),addListener=Object.assign(createAction(`${alm}/add`),{withTypes:()=>addListener});createAction(`${alm}/removeAll`);var removeListener=Object.assign(createAction(`${alm}/remove`),{withTypes:()=>removeListener});function formatProdErrorMessage(_e){return`Minified Redux Toolkit error #${_e}; visit https://redux-toolkit.js.org/Errors?code=${_e} for the full message or use the non-minified dev environment for full errors. `}var build$d={},cosmwasmclient={},build$c={},ascii={};Object.defineProperty(ascii,"__esModule",{value:!0}),ascii.fromAscii=ascii.toAscii=void 0;function toAscii(_e){const cr=gr=>gr.split("").map(Cr=>{const Vr=Cr.charCodeAt(0);if(Vr<32||Vr>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+Vr);return Vr});return Uint8Array.from(cr(_e))}ascii.toAscii=toAscii;function fromAscii(_e){return(cr=>cr.map(gr=>{if(gr<32||gr>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+gr);return String.fromCharCode(gr)}))(Array.from(_e)).join("")}ascii.fromAscii=fromAscii;var base64$2={},base64Js={};base64Js.byteLength=byteLength,base64Js.toByteArray=toByteArray,base64Js.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i$3=0,len=code.length;i$30)throw new Error("Invalid string. Length must be a multiple of 4");var gr=_e.indexOf("=");gr===-1&&(gr=cr);var Cr=gr===cr?0:4-gr%4;return[gr,Cr]}function byteLength(_e){var cr=getLens(_e),gr=cr[0],Cr=cr[1];return(gr+Cr)*3/4-Cr}function _byteLength(_e,cr,gr){return(cr+gr)*3/4-gr}function toByteArray(_e){var cr,gr=getLens(_e),Cr=gr[0],Vr=gr[1],tt=new Arr(_byteLength(_e,Cr,Vr)),nt=0,st=Vr>0?Cr-4:Cr,dt;for(dt=0;dt>16&255,tt[nt++]=cr>>8&255,tt[nt++]=cr&255;return Vr===2&&(cr=revLookup[_e.charCodeAt(dt)]<<2|revLookup[_e.charCodeAt(dt+1)]>>4,tt[nt++]=cr&255),Vr===1&&(cr=revLookup[_e.charCodeAt(dt)]<<10|revLookup[_e.charCodeAt(dt+1)]<<4|revLookup[_e.charCodeAt(dt+2)]>>2,tt[nt++]=cr>>8&255,tt[nt++]=cr&255),tt}function tripletToBase64(_e){return lookup[_e>>18&63]+lookup[_e>>12&63]+lookup[_e>>6&63]+lookup[_e&63]}function encodeChunk(_e,cr,gr){for(var Cr,Vr=[],tt=cr;ttst?st:nt+tt));return Cr===1?(cr=_e[gr-1],Vr.push(lookup[cr>>2]+lookup[cr<<4&63]+"==")):Cr===2&&(cr=(_e[gr-2]<<8)+_e[gr-1],Vr.push(lookup[cr>>10]+lookup[cr>>4&63]+lookup[cr<<2&63]+"=")),Vr.join("")}var __createBinding$p=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$p=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$p=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$p(cr,_e,gr);return __setModuleDefault$p(cr,_e),cr};Object.defineProperty(base64$2,"__esModule",{value:!0}),base64$2.fromBase64=base64$2.toBase64=void 0;const base64js=__importStar$p(base64Js);function toBase64(_e){return base64js.fromByteArray(_e)}base64$2.toBase64=toBase64;function fromBase64(_e){if(!_e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return base64js.toByteArray(_e)}base64$2.fromBase64=fromBase64;for(var bech32$2={},ALPHABET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ALPHABET_MAP={},z$5=0;z$5>25;return(_e&33554431)<<5^-(cr>>0&1)&996825010^-(cr>>1&1)&642813549^-(cr>>2&1)&513874426^-(cr>>3&1)&1027748829^-(cr>>4&1)&705979059}function prefixChk(_e){for(var cr=1,gr=0;gr<_e.length;++gr){var Cr=_e.charCodeAt(gr);if(Cr<33||Cr>126)return"Invalid prefix ("+_e+")";cr=polymodStep(cr)^Cr>>5}for(cr=polymodStep(cr),gr=0;gr<_e.length;++gr){var Vr=_e.charCodeAt(gr);cr=polymodStep(cr)^Vr&31}return cr}function encode$3(_e,cr,gr){if(gr=gr||90,_e.length+7+cr.length>gr)throw new TypeError("Exceeds length limit");_e=_e.toLowerCase();var Cr=prefixChk(_e);if(typeof Cr=="string")throw new Error(Cr);for(var Vr=_e+"1",tt=0;tt>5)throw new Error("Non 5-bit word");Cr=polymodStep(Cr)^nt,Vr+=ALPHABET.charAt(nt)}for(tt=0;tt<6;++tt)Cr=polymodStep(Cr);for(Cr^=1,tt=0;tt<6;++tt){var st=Cr>>(5-tt)*5&31;Vr+=ALPHABET.charAt(st)}return Vr}function __decode(_e,cr){if(cr=cr||90,_e.length<8)return _e+" too short";if(_e.length>cr)return"Exceeds length limit";var gr=_e.toLowerCase(),Cr=_e.toUpperCase();if(_e!==gr&&_e!==Cr)return"Mixed-case string "+_e;_e=gr;var Vr=_e.lastIndexOf("1");if(Vr===-1)return"No separator character for "+_e;if(Vr===0)return"Missing prefix for "+_e;var tt=_e.slice(0,Vr),nt=_e.slice(Vr+1);if(nt.length<6)return"Data too short";var st=prefixChk(tt);if(typeof st=="string")return st;for(var dt=[],kt=0;kt=nt.length)&&dt.push(ro)}return st!==1?"Invalid checksum for "+_e:{prefix:tt,words:dt}}function decodeUnsafe(){var _e=__decode.apply(null,arguments);if(typeof _e=="object")return _e}function decode$1(_e){var cr=__decode.apply(null,arguments);if(typeof cr=="object")return cr;throw new Error(cr)}function convert(_e,cr,gr,Cr){for(var Vr=0,tt=0,nt=(1<=gr;)tt-=gr,st.push(Vr>>tt&nt);if(Cr)tt>0&&st.push(Vr<=cr)return"Excess padding";if(Vr<0?xt:Mt},tt.min=function(xt,Mt){return xt.cmp(Mt)<0?xt:Mt},tt.prototype._init=function(xt,Mt,ho){if(typeof xt=="number")return this._initNumber(xt,Mt,ho);if(typeof xt=="object")return this._initArray(xt,Mt,ho);Mt==="hex"&&(Mt=16),Cr(Mt===(Mt|0)&&Mt>=2&&Mt<=36),xt=xt.toString().replace(/\s+/g,"");var io=0;xt[0]==="-"&&(io++,this.negative=1),io=0;io-=3)mo=xt[io]|xt[io-1]<<8|xt[io-2]<<16,this.words[co]|=mo<>>26-Bo&67108863,Bo+=24,Bo>=26&&(Bo-=26,co++);else if(ho==="le")for(io=0,co=0;io>>26-Bo&67108863,Bo+=24,Bo>=26&&(Bo-=26,co++);return this._strip()};function st(xt,Mt){var ho=xt.charCodeAt(Mt);if(ho>=48&&ho<=57)return ho-48;if(ho>=65&&ho<=70)return ho-55;if(ho>=97&&ho<=102)return ho-87;Cr(!1,"Invalid character in "+xt)}function dt(xt,Mt,ho){var io=st(xt,ho);return ho-1>=Mt&&(io|=st(xt,ho-1)<<4),io}tt.prototype._parseHex=function(xt,Mt,ho){this.length=Math.ceil((xt.length-Mt)/6),this.words=new Array(this.length);for(var io=0;io=Mt;io-=2)Bo=dt(xt,Mt,io)<=18?(co-=18,mo+=1,this.words[mo]|=Bo>>>26):co+=8;else{var So=xt.length-Mt;for(io=So%2===0?Mt+1:Mt;io=18?(co-=18,mo+=1,this.words[mo]|=Bo>>>26):co+=8}this._strip()};function kt(xt,Mt,ho,io){for(var co=0,mo=0,Bo=Math.min(xt.length,ho),So=Mt;So=49?mo=Tt-49+10:Tt>=17?mo=Tt-17+10:mo=Tt,Cr(Tt>=0&&mo1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{tt.prototype[Symbol.for("nodejs.util.inspect.custom")]=ro}catch{tt.prototype.inspect=ro}else tt.prototype.inspect=ro;function ro(){return(this.red?""}var ht=["","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"],po=[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],no=[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];tt.prototype.toString=function(xt,Mt){xt=xt||10,Mt=Mt|0||1;var ho;if(xt===16||xt==="hex"){ho="";for(var io=0,co=0,mo=0;mo>>24-io&16777215,io+=2,io>=26&&(io-=26,mo--),co!==0||mo!==this.length-1?ho=ht[6-So.length]+So+ho:ho=So+ho}for(co!==0&&(ho=co.toString(16)+ho);ho.length%Mt!==0;)ho="0"+ho;return this.negative!==0&&(ho="-"+ho),ho}if(xt===(xt|0)&&xt>=2&&xt<=36){var Tt=po[xt],vo=no[xt];ho="";var Co=this.clone();for(Co.negative=0;!Co.isZero();){var xo=Co.modrn(vo).toString(xt);Co=Co.idivn(vo),Co.isZero()?ho=xo+ho:ho=ht[Tt-xo.length]+xo+ho}for(this.isZero()&&(ho="0"+ho);ho.length%Mt!==0;)ho="0"+ho;return this.negative!==0&&(ho="-"+ho),ho}Cr(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var xt=this.words[0];return this.length===2?xt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?xt+=4503599627370496+this.words[1]*67108864:this.length>2&&Cr(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-xt:xt},tt.prototype.toJSON=function(){return this.toString(16,2)},nt&&(tt.prototype.toBuffer=function(xt,Mt){return this.toArrayLike(nt,xt,Mt)}),tt.prototype.toArray=function(xt,Mt){return this.toArrayLike(Array,xt,Mt)};var Nt=function(xt,Mt){return xt.allocUnsafe?xt.allocUnsafe(Mt):new xt(Mt)};tt.prototype.toArrayLike=function(xt,Mt,ho){this._strip();var io=this.byteLength(),co=ho||Math.max(1,io);Cr(io<=co,"byte array longer than desired length"),Cr(co>0,"Requested array length <= 0");var mo=Nt(xt,co),Bo=Mt==="le"?"LE":"BE";return this["_toArrayLike"+Bo](mo,io),mo},tt.prototype._toArrayLikeLE=function(xt,Mt){for(var ho=0,io=0,co=0,mo=0;co>8&255),ho>16&255),mo===6?(ho>24&255),io=0,mo=0):(io=Bo>>>24,mo+=2)}if(ho=0&&(xt[ho--]=Bo>>8&255),ho>=0&&(xt[ho--]=Bo>>16&255),mo===6?(ho>=0&&(xt[ho--]=Bo>>24&255),io=0,mo=0):(io=Bo>>>24,mo+=2)}if(ho>=0)for(xt[ho--]=io;ho>=0;)xt[ho--]=0},Math.clz32?tt.prototype._countBits=function(xt){return 32-Math.clz32(xt)}:tt.prototype._countBits=function(xt){var Mt=xt,ho=0;return Mt>=4096&&(ho+=13,Mt>>>=13),Mt>=64&&(ho+=7,Mt>>>=7),Mt>=8&&(ho+=4,Mt>>>=4),Mt>=2&&(ho+=2,Mt>>>=2),ho+Mt},tt.prototype._zeroBits=function(xt){if(xt===0)return 26;var Mt=xt,ho=0;return Mt&8191||(ho+=13,Mt>>>=13),Mt&127||(ho+=7,Mt>>>=7),Mt&15||(ho+=4,Mt>>>=4),Mt&3||(ho+=2,Mt>>>=2),Mt&1||ho++,ho},tt.prototype.bitLength=function(){var xt=this.words[this.length-1],Mt=this._countBits(xt);return(this.length-1)*26+Mt};function eo(xt){for(var Mt=new Array(xt.bitLength()),ho=0;ho>>co&1}return Mt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var xt=0,Mt=0;Mtxt.length?this.clone().ior(xt):xt.clone().ior(this)},tt.prototype.uor=function(xt){return this.length>xt.length?this.clone().iuor(xt):xt.clone().iuor(this)},tt.prototype.iuand=function(xt){var Mt;this.length>xt.length?Mt=xt:Mt=this;for(var ho=0;hoxt.length?this.clone().iand(xt):xt.clone().iand(this)},tt.prototype.uand=function(xt){return this.length>xt.length?this.clone().iuand(xt):xt.clone().iuand(this)},tt.prototype.iuxor=function(xt){var Mt,ho;this.length>xt.length?(Mt=this,ho=xt):(Mt=xt,ho=this);for(var io=0;ioxt.length?this.clone().ixor(xt):xt.clone().ixor(this)},tt.prototype.uxor=function(xt){return this.length>xt.length?this.clone().iuxor(xt):xt.clone().iuxor(this)},tt.prototype.inotn=function(xt){Cr(typeof xt=="number"&&xt>=0);var Mt=Math.ceil(xt/26)|0,ho=xt%26;this._expand(Mt),ho>0&&Mt--;for(var io=0;io0&&(this.words[io]=~this.words[io]&67108863>>26-ho),this._strip()},tt.prototype.notn=function(xt){return this.clone().inotn(xt)},tt.prototype.setn=function(xt,Mt){Cr(typeof xt=="number"&&xt>=0);var ho=xt/26|0,io=xt%26;return this._expand(ho+1),Mt?this.words[ho]=this.words[ho]|1<xt.length?(ho=this,io=xt):(ho=xt,io=this);for(var co=0,mo=0;mo>>26;for(;co!==0&&mo>>26;if(this.length=ho.length,co!==0)this.words[this.length]=co,this.length++;else if(ho!==this)for(;moxt.length?this.clone().iadd(xt):xt.clone().iadd(this)},tt.prototype.isub=function(xt){if(xt.negative!==0){xt.negative=0;var Mt=this.iadd(xt);return xt.negative=1,Mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(xt),this.negative=1,this._normSign();var ho=this.cmp(xt);if(ho===0)return this.negative=0,this.length=1,this.words[0]=0,this;var io,co;ho>0?(io=this,co=xt):(io=xt,co=this);for(var mo=0,Bo=0;Bo>26,this.words[Bo]=Mt&67108863;for(;mo!==0&&Bo>26,this.words[Bo]=Mt&67108863;if(mo===0&&Bo>>26,xo=Tt&67108863,Po=Math.min(vo,Mt.length-1),Wo=Math.max(0,vo-xt.length+1);Wo<=Po;Wo++){var Yn=vo-Wo|0;co=xt.words[Yn]|0,mo=Mt.words[Wo]|0,Bo=co*mo+xo,Co+=Bo/67108864|0,xo=Bo&67108863}ho.words[vo]=xo|0,Tt=Co|0}return Tt!==0?ho.words[vo]=Tt|0:ho.length--,ho._strip()}var St=function(xt,Mt,ho){var io=xt.words,co=Mt.words,mo=ho.words,Bo=0,So,Tt,vo,Co=io[0]|0,xo=Co&8191,Po=Co>>>13,Wo=io[1]|0,Yn=Wo&8191,ba=Wo>>>13,_a=io[2]|0,$s=_a&8191,vs=_a>>>13,ss=io[3]|0,Ts=ss&8191,qo=ss>>>13,Js=io[4]|0,Vo=Js&8191,zo=Js>>>13,$n=io[5]|0,Tn=$n&8191,ko=$n>>>13,es=io[6]|0,fs=es&8191,Es=es>>>13,Us=io[7]|0,ms=Us&8191,bs=Us>>>13,ks=io[8]|0,Ds=ks&8191,Fs=ks>>>13,d0=io[9]|0,v0=d0&8191,b0=d0>>>13,R0=co[0]|0,D0=R0&8191,zs=R0>>>13,n0=co[1]|0,fo=n0&8191,Qo=n0>>>13,Ko=co[2]|0,ps=Ko&8191,Kn=Ko>>>13,gs=co[3]|0,H0=gs&8191,j0=gs>>>13,hs=co[4]|0,Ss=hs&8191,Rs=hs>>>13,e0=co[5]|0,g0=e0&8191,E0=e0>>>13,Vs=co[6]|0,Bs=Vs&8191,Gs=Vs>>>13,A0=co[7]|0,y0=A0&8191,s0=A0>>>13,P0=co[8]|0,M0=P0&8191,O0=P0>>>13,Sn=co[9]|0,T0=Sn&8191,An=Sn>>>13;ho.negative=xt.negative^Mt.negative,ho.length=19,So=Math.imul(xo,D0),Tt=Math.imul(xo,zs),Tt=Tt+Math.imul(Po,D0)|0,vo=Math.imul(Po,zs);var Pn=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,So=Math.imul(Yn,D0),Tt=Math.imul(Yn,zs),Tt=Tt+Math.imul(ba,D0)|0,vo=Math.imul(ba,zs),So=So+Math.imul(xo,fo)|0,Tt=Tt+Math.imul(xo,Qo)|0,Tt=Tt+Math.imul(Po,fo)|0,vo=vo+Math.imul(Po,Qo)|0;var Ln=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,So=Math.imul($s,D0),Tt=Math.imul($s,zs),Tt=Tt+Math.imul(vs,D0)|0,vo=Math.imul(vs,zs),So=So+Math.imul(Yn,fo)|0,Tt=Tt+Math.imul(Yn,Qo)|0,Tt=Tt+Math.imul(ba,fo)|0,vo=vo+Math.imul(ba,Qo)|0,So=So+Math.imul(xo,ps)|0,Tt=Tt+Math.imul(xo,Kn)|0,Tt=Tt+Math.imul(Po,ps)|0,vo=vo+Math.imul(Po,Kn)|0;var qn=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(qn>>>26)|0,qn&=67108863,So=Math.imul(Ts,D0),Tt=Math.imul(Ts,zs),Tt=Tt+Math.imul(qo,D0)|0,vo=Math.imul(qo,zs),So=So+Math.imul($s,fo)|0,Tt=Tt+Math.imul($s,Qo)|0,Tt=Tt+Math.imul(vs,fo)|0,vo=vo+Math.imul(vs,Qo)|0,So=So+Math.imul(Yn,ps)|0,Tt=Tt+Math.imul(Yn,Kn)|0,Tt=Tt+Math.imul(ba,ps)|0,vo=vo+Math.imul(ba,Kn)|0,So=So+Math.imul(xo,H0)|0,Tt=Tt+Math.imul(xo,j0)|0,Tt=Tt+Math.imul(Po,H0)|0,vo=vo+Math.imul(Po,j0)|0;var na=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(na>>>26)|0,na&=67108863,So=Math.imul(Vo,D0),Tt=Math.imul(Vo,zs),Tt=Tt+Math.imul(zo,D0)|0,vo=Math.imul(zo,zs),So=So+Math.imul(Ts,fo)|0,Tt=Tt+Math.imul(Ts,Qo)|0,Tt=Tt+Math.imul(qo,fo)|0,vo=vo+Math.imul(qo,Qo)|0,So=So+Math.imul($s,ps)|0,Tt=Tt+Math.imul($s,Kn)|0,Tt=Tt+Math.imul(vs,ps)|0,vo=vo+Math.imul(vs,Kn)|0,So=So+Math.imul(Yn,H0)|0,Tt=Tt+Math.imul(Yn,j0)|0,Tt=Tt+Math.imul(ba,H0)|0,vo=vo+Math.imul(ba,j0)|0,So=So+Math.imul(xo,Ss)|0,Tt=Tt+Math.imul(xo,Rs)|0,Tt=Tt+Math.imul(Po,Ss)|0,vo=vo+Math.imul(Po,Rs)|0;var ls=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(ls>>>26)|0,ls&=67108863,So=Math.imul(Tn,D0),Tt=Math.imul(Tn,zs),Tt=Tt+Math.imul(ko,D0)|0,vo=Math.imul(ko,zs),So=So+Math.imul(Vo,fo)|0,Tt=Tt+Math.imul(Vo,Qo)|0,Tt=Tt+Math.imul(zo,fo)|0,vo=vo+Math.imul(zo,Qo)|0,So=So+Math.imul(Ts,ps)|0,Tt=Tt+Math.imul(Ts,Kn)|0,Tt=Tt+Math.imul(qo,ps)|0,vo=vo+Math.imul(qo,Kn)|0,So=So+Math.imul($s,H0)|0,Tt=Tt+Math.imul($s,j0)|0,Tt=Tt+Math.imul(vs,H0)|0,vo=vo+Math.imul(vs,j0)|0,So=So+Math.imul(Yn,Ss)|0,Tt=Tt+Math.imul(Yn,Rs)|0,Tt=Tt+Math.imul(ba,Ss)|0,vo=vo+Math.imul(ba,Rs)|0,So=So+Math.imul(xo,g0)|0,Tt=Tt+Math.imul(xo,E0)|0,Tt=Tt+Math.imul(Po,g0)|0,vo=vo+Math.imul(Po,E0)|0;var Ns=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Ns>>>26)|0,Ns&=67108863,So=Math.imul(fs,D0),Tt=Math.imul(fs,zs),Tt=Tt+Math.imul(Es,D0)|0,vo=Math.imul(Es,zs),So=So+Math.imul(Tn,fo)|0,Tt=Tt+Math.imul(Tn,Qo)|0,Tt=Tt+Math.imul(ko,fo)|0,vo=vo+Math.imul(ko,Qo)|0,So=So+Math.imul(Vo,ps)|0,Tt=Tt+Math.imul(Vo,Kn)|0,Tt=Tt+Math.imul(zo,ps)|0,vo=vo+Math.imul(zo,Kn)|0,So=So+Math.imul(Ts,H0)|0,Tt=Tt+Math.imul(Ts,j0)|0,Tt=Tt+Math.imul(qo,H0)|0,vo=vo+Math.imul(qo,j0)|0,So=So+Math.imul($s,Ss)|0,Tt=Tt+Math.imul($s,Rs)|0,Tt=Tt+Math.imul(vs,Ss)|0,vo=vo+Math.imul(vs,Rs)|0,So=So+Math.imul(Yn,g0)|0,Tt=Tt+Math.imul(Yn,E0)|0,Tt=Tt+Math.imul(ba,g0)|0,vo=vo+Math.imul(ba,E0)|0,So=So+Math.imul(xo,Bs)|0,Tt=Tt+Math.imul(xo,Gs)|0,Tt=Tt+Math.imul(Po,Bs)|0,vo=vo+Math.imul(Po,Gs)|0;var Qs=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Qs>>>26)|0,Qs&=67108863,So=Math.imul(ms,D0),Tt=Math.imul(ms,zs),Tt=Tt+Math.imul(bs,D0)|0,vo=Math.imul(bs,zs),So=So+Math.imul(fs,fo)|0,Tt=Tt+Math.imul(fs,Qo)|0,Tt=Tt+Math.imul(Es,fo)|0,vo=vo+Math.imul(Es,Qo)|0,So=So+Math.imul(Tn,ps)|0,Tt=Tt+Math.imul(Tn,Kn)|0,Tt=Tt+Math.imul(ko,ps)|0,vo=vo+Math.imul(ko,Kn)|0,So=So+Math.imul(Vo,H0)|0,Tt=Tt+Math.imul(Vo,j0)|0,Tt=Tt+Math.imul(zo,H0)|0,vo=vo+Math.imul(zo,j0)|0,So=So+Math.imul(Ts,Ss)|0,Tt=Tt+Math.imul(Ts,Rs)|0,Tt=Tt+Math.imul(qo,Ss)|0,vo=vo+Math.imul(qo,Rs)|0,So=So+Math.imul($s,g0)|0,Tt=Tt+Math.imul($s,E0)|0,Tt=Tt+Math.imul(vs,g0)|0,vo=vo+Math.imul(vs,E0)|0,So=So+Math.imul(Yn,Bs)|0,Tt=Tt+Math.imul(Yn,Gs)|0,Tt=Tt+Math.imul(ba,Bs)|0,vo=vo+Math.imul(ba,Gs)|0,So=So+Math.imul(xo,y0)|0,Tt=Tt+Math.imul(xo,s0)|0,Tt=Tt+Math.imul(Po,y0)|0,vo=vo+Math.imul(Po,s0)|0;var p0=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(p0>>>26)|0,p0&=67108863,So=Math.imul(Ds,D0),Tt=Math.imul(Ds,zs),Tt=Tt+Math.imul(Fs,D0)|0,vo=Math.imul(Fs,zs),So=So+Math.imul(ms,fo)|0,Tt=Tt+Math.imul(ms,Qo)|0,Tt=Tt+Math.imul(bs,fo)|0,vo=vo+Math.imul(bs,Qo)|0,So=So+Math.imul(fs,ps)|0,Tt=Tt+Math.imul(fs,Kn)|0,Tt=Tt+Math.imul(Es,ps)|0,vo=vo+Math.imul(Es,Kn)|0,So=So+Math.imul(Tn,H0)|0,Tt=Tt+Math.imul(Tn,j0)|0,Tt=Tt+Math.imul(ko,H0)|0,vo=vo+Math.imul(ko,j0)|0,So=So+Math.imul(Vo,Ss)|0,Tt=Tt+Math.imul(Vo,Rs)|0,Tt=Tt+Math.imul(zo,Ss)|0,vo=vo+Math.imul(zo,Rs)|0,So=So+Math.imul(Ts,g0)|0,Tt=Tt+Math.imul(Ts,E0)|0,Tt=Tt+Math.imul(qo,g0)|0,vo=vo+Math.imul(qo,E0)|0,So=So+Math.imul($s,Bs)|0,Tt=Tt+Math.imul($s,Gs)|0,Tt=Tt+Math.imul(vs,Bs)|0,vo=vo+Math.imul(vs,Gs)|0,So=So+Math.imul(Yn,y0)|0,Tt=Tt+Math.imul(Yn,s0)|0,Tt=Tt+Math.imul(ba,y0)|0,vo=vo+Math.imul(ba,s0)|0,So=So+Math.imul(xo,M0)|0,Tt=Tt+Math.imul(xo,O0)|0,Tt=Tt+Math.imul(Po,M0)|0,vo=vo+Math.imul(Po,O0)|0;var l0=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(l0>>>26)|0,l0&=67108863,So=Math.imul(v0,D0),Tt=Math.imul(v0,zs),Tt=Tt+Math.imul(b0,D0)|0,vo=Math.imul(b0,zs),So=So+Math.imul(Ds,fo)|0,Tt=Tt+Math.imul(Ds,Qo)|0,Tt=Tt+Math.imul(Fs,fo)|0,vo=vo+Math.imul(Fs,Qo)|0,So=So+Math.imul(ms,ps)|0,Tt=Tt+Math.imul(ms,Kn)|0,Tt=Tt+Math.imul(bs,ps)|0,vo=vo+Math.imul(bs,Kn)|0,So=So+Math.imul(fs,H0)|0,Tt=Tt+Math.imul(fs,j0)|0,Tt=Tt+Math.imul(Es,H0)|0,vo=vo+Math.imul(Es,j0)|0,So=So+Math.imul(Tn,Ss)|0,Tt=Tt+Math.imul(Tn,Rs)|0,Tt=Tt+Math.imul(ko,Ss)|0,vo=vo+Math.imul(ko,Rs)|0,So=So+Math.imul(Vo,g0)|0,Tt=Tt+Math.imul(Vo,E0)|0,Tt=Tt+Math.imul(zo,g0)|0,vo=vo+Math.imul(zo,E0)|0,So=So+Math.imul(Ts,Bs)|0,Tt=Tt+Math.imul(Ts,Gs)|0,Tt=Tt+Math.imul(qo,Bs)|0,vo=vo+Math.imul(qo,Gs)|0,So=So+Math.imul($s,y0)|0,Tt=Tt+Math.imul($s,s0)|0,Tt=Tt+Math.imul(vs,y0)|0,vo=vo+Math.imul(vs,s0)|0,So=So+Math.imul(Yn,M0)|0,Tt=Tt+Math.imul(Yn,O0)|0,Tt=Tt+Math.imul(ba,M0)|0,vo=vo+Math.imul(ba,O0)|0,So=So+Math.imul(xo,T0)|0,Tt=Tt+Math.imul(xo,An)|0,Tt=Tt+Math.imul(Po,T0)|0,vo=vo+Math.imul(Po,An)|0;var S0=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(S0>>>26)|0,S0&=67108863,So=Math.imul(v0,fo),Tt=Math.imul(v0,Qo),Tt=Tt+Math.imul(b0,fo)|0,vo=Math.imul(b0,Qo),So=So+Math.imul(Ds,ps)|0,Tt=Tt+Math.imul(Ds,Kn)|0,Tt=Tt+Math.imul(Fs,ps)|0,vo=vo+Math.imul(Fs,Kn)|0,So=So+Math.imul(ms,H0)|0,Tt=Tt+Math.imul(ms,j0)|0,Tt=Tt+Math.imul(bs,H0)|0,vo=vo+Math.imul(bs,j0)|0,So=So+Math.imul(fs,Ss)|0,Tt=Tt+Math.imul(fs,Rs)|0,Tt=Tt+Math.imul(Es,Ss)|0,vo=vo+Math.imul(Es,Rs)|0,So=So+Math.imul(Tn,g0)|0,Tt=Tt+Math.imul(Tn,E0)|0,Tt=Tt+Math.imul(ko,g0)|0,vo=vo+Math.imul(ko,E0)|0,So=So+Math.imul(Vo,Bs)|0,Tt=Tt+Math.imul(Vo,Gs)|0,Tt=Tt+Math.imul(zo,Bs)|0,vo=vo+Math.imul(zo,Gs)|0,So=So+Math.imul(Ts,y0)|0,Tt=Tt+Math.imul(Ts,s0)|0,Tt=Tt+Math.imul(qo,y0)|0,vo=vo+Math.imul(qo,s0)|0,So=So+Math.imul($s,M0)|0,Tt=Tt+Math.imul($s,O0)|0,Tt=Tt+Math.imul(vs,M0)|0,vo=vo+Math.imul(vs,O0)|0,So=So+Math.imul(Yn,T0)|0,Tt=Tt+Math.imul(Yn,An)|0,Tt=Tt+Math.imul(ba,T0)|0,vo=vo+Math.imul(ba,An)|0;var yl=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(yl>>>26)|0,yl&=67108863,So=Math.imul(v0,ps),Tt=Math.imul(v0,Kn),Tt=Tt+Math.imul(b0,ps)|0,vo=Math.imul(b0,Kn),So=So+Math.imul(Ds,H0)|0,Tt=Tt+Math.imul(Ds,j0)|0,Tt=Tt+Math.imul(Fs,H0)|0,vo=vo+Math.imul(Fs,j0)|0,So=So+Math.imul(ms,Ss)|0,Tt=Tt+Math.imul(ms,Rs)|0,Tt=Tt+Math.imul(bs,Ss)|0,vo=vo+Math.imul(bs,Rs)|0,So=So+Math.imul(fs,g0)|0,Tt=Tt+Math.imul(fs,E0)|0,Tt=Tt+Math.imul(Es,g0)|0,vo=vo+Math.imul(Es,E0)|0,So=So+Math.imul(Tn,Bs)|0,Tt=Tt+Math.imul(Tn,Gs)|0,Tt=Tt+Math.imul(ko,Bs)|0,vo=vo+Math.imul(ko,Gs)|0,So=So+Math.imul(Vo,y0)|0,Tt=Tt+Math.imul(Vo,s0)|0,Tt=Tt+Math.imul(zo,y0)|0,vo=vo+Math.imul(zo,s0)|0,So=So+Math.imul(Ts,M0)|0,Tt=Tt+Math.imul(Ts,O0)|0,Tt=Tt+Math.imul(qo,M0)|0,vo=vo+Math.imul(qo,O0)|0,So=So+Math.imul($s,T0)|0,Tt=Tt+Math.imul($s,An)|0,Tt=Tt+Math.imul(vs,T0)|0,vo=vo+Math.imul(vs,An)|0;var Vt=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,So=Math.imul(v0,H0),Tt=Math.imul(v0,j0),Tt=Tt+Math.imul(b0,H0)|0,vo=Math.imul(b0,j0),So=So+Math.imul(Ds,Ss)|0,Tt=Tt+Math.imul(Ds,Rs)|0,Tt=Tt+Math.imul(Fs,Ss)|0,vo=vo+Math.imul(Fs,Rs)|0,So=So+Math.imul(ms,g0)|0,Tt=Tt+Math.imul(ms,E0)|0,Tt=Tt+Math.imul(bs,g0)|0,vo=vo+Math.imul(bs,E0)|0,So=So+Math.imul(fs,Bs)|0,Tt=Tt+Math.imul(fs,Gs)|0,Tt=Tt+Math.imul(Es,Bs)|0,vo=vo+Math.imul(Es,Gs)|0,So=So+Math.imul(Tn,y0)|0,Tt=Tt+Math.imul(Tn,s0)|0,Tt=Tt+Math.imul(ko,y0)|0,vo=vo+Math.imul(ko,s0)|0,So=So+Math.imul(Vo,M0)|0,Tt=Tt+Math.imul(Vo,O0)|0,Tt=Tt+Math.imul(zo,M0)|0,vo=vo+Math.imul(zo,O0)|0,So=So+Math.imul(Ts,T0)|0,Tt=Tt+Math.imul(Ts,An)|0,Tt=Tt+Math.imul(qo,T0)|0,vo=vo+Math.imul(qo,An)|0;var br=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(br>>>26)|0,br&=67108863,So=Math.imul(v0,Ss),Tt=Math.imul(v0,Rs),Tt=Tt+Math.imul(b0,Ss)|0,vo=Math.imul(b0,Rs),So=So+Math.imul(Ds,g0)|0,Tt=Tt+Math.imul(Ds,E0)|0,Tt=Tt+Math.imul(Fs,g0)|0,vo=vo+Math.imul(Fs,E0)|0,So=So+Math.imul(ms,Bs)|0,Tt=Tt+Math.imul(ms,Gs)|0,Tt=Tt+Math.imul(bs,Bs)|0,vo=vo+Math.imul(bs,Gs)|0,So=So+Math.imul(fs,y0)|0,Tt=Tt+Math.imul(fs,s0)|0,Tt=Tt+Math.imul(Es,y0)|0,vo=vo+Math.imul(Es,s0)|0,So=So+Math.imul(Tn,M0)|0,Tt=Tt+Math.imul(Tn,O0)|0,Tt=Tt+Math.imul(ko,M0)|0,vo=vo+Math.imul(ko,O0)|0,So=So+Math.imul(Vo,T0)|0,Tt=Tt+Math.imul(Vo,An)|0,Tt=Tt+Math.imul(zo,T0)|0,vo=vo+Math.imul(zo,An)|0;var lt=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(lt>>>26)|0,lt&=67108863,So=Math.imul(v0,g0),Tt=Math.imul(v0,E0),Tt=Tt+Math.imul(b0,g0)|0,vo=Math.imul(b0,E0),So=So+Math.imul(Ds,Bs)|0,Tt=Tt+Math.imul(Ds,Gs)|0,Tt=Tt+Math.imul(Fs,Bs)|0,vo=vo+Math.imul(Fs,Gs)|0,So=So+Math.imul(ms,y0)|0,Tt=Tt+Math.imul(ms,s0)|0,Tt=Tt+Math.imul(bs,y0)|0,vo=vo+Math.imul(bs,s0)|0,So=So+Math.imul(fs,M0)|0,Tt=Tt+Math.imul(fs,O0)|0,Tt=Tt+Math.imul(Es,M0)|0,vo=vo+Math.imul(Es,O0)|0,So=So+Math.imul(Tn,T0)|0,Tt=Tt+Math.imul(Tn,An)|0,Tt=Tt+Math.imul(ko,T0)|0,vo=vo+Math.imul(ko,An)|0;var Sl=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Sl>>>26)|0,Sl&=67108863,So=Math.imul(v0,Bs),Tt=Math.imul(v0,Gs),Tt=Tt+Math.imul(b0,Bs)|0,vo=Math.imul(b0,Gs),So=So+Math.imul(Ds,y0)|0,Tt=Tt+Math.imul(Ds,s0)|0,Tt=Tt+Math.imul(Fs,y0)|0,vo=vo+Math.imul(Fs,s0)|0,So=So+Math.imul(ms,M0)|0,Tt=Tt+Math.imul(ms,O0)|0,Tt=Tt+Math.imul(bs,M0)|0,vo=vo+Math.imul(bs,O0)|0,So=So+Math.imul(fs,T0)|0,Tt=Tt+Math.imul(fs,An)|0,Tt=Tt+Math.imul(Es,T0)|0,vo=vo+Math.imul(Es,An)|0;var w0=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(w0>>>26)|0,w0&=67108863,So=Math.imul(v0,y0),Tt=Math.imul(v0,s0),Tt=Tt+Math.imul(b0,y0)|0,vo=Math.imul(b0,s0),So=So+Math.imul(Ds,M0)|0,Tt=Tt+Math.imul(Ds,O0)|0,Tt=Tt+Math.imul(Fs,M0)|0,vo=vo+Math.imul(Fs,O0)|0,So=So+Math.imul(ms,T0)|0,Tt=Tt+Math.imul(ms,An)|0,Tt=Tt+Math.imul(bs,T0)|0,vo=vo+Math.imul(bs,An)|0;var Ql=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Ql>>>26)|0,Ql&=67108863,So=Math.imul(v0,M0),Tt=Math.imul(v0,O0),Tt=Tt+Math.imul(b0,M0)|0,vo=Math.imul(b0,O0),So=So+Math.imul(Ds,T0)|0,Tt=Tt+Math.imul(Ds,An)|0,Tt=Tt+Math.imul(Fs,T0)|0,vo=vo+Math.imul(Fs,An)|0;var Gl=(Bo+So|0)+((Tt&8191)<<13)|0;Bo=(vo+(Tt>>>13)|0)+(Gl>>>26)|0,Gl&=67108863,So=Math.imul(v0,T0),Tt=Math.imul(v0,An),Tt=Tt+Math.imul(b0,T0)|0,vo=Math.imul(b0,An);var uu=(Bo+So|0)+((Tt&8191)<<13)|0;return Bo=(vo+(Tt>>>13)|0)+(uu>>>26)|0,uu&=67108863,mo[0]=Pn,mo[1]=Ln,mo[2]=qn,mo[3]=na,mo[4]=ls,mo[5]=Ns,mo[6]=Qs,mo[7]=p0,mo[8]=l0,mo[9]=S0,mo[10]=yl,mo[11]=Vt,mo[12]=br,mo[13]=lt,mo[14]=Sl,mo[15]=w0,mo[16]=Ql,mo[17]=Gl,mo[18]=uu,Bo!==0&&(mo[19]=Bo,ho.length++),ho};Math.imul||(St=Wt);function Ot(xt,Mt,ho){ho.negative=Mt.negative^xt.negative,ho.length=xt.length+Mt.length;for(var io=0,co=0,mo=0;mo>>26)|0,co+=Bo>>>26,Bo&=67108863}ho.words[mo]=So,io=Bo,Bo=co}return io!==0?ho.words[mo]=io:ho.length--,ho._strip()}function uo(xt,Mt,ho){return Ot(xt,Mt,ho)}tt.prototype.mulTo=function(xt,Mt){var ho,io=this.length+xt.length;return this.length===10&&xt.length===10?ho=St(this,xt,Mt):io<63?ho=Wt(this,xt,Mt):io<1024?ho=Ot(this,xt,Mt):ho=uo(this,xt,Mt),ho},tt.prototype.mul=function(xt){var Mt=new tt(null);return Mt.words=new Array(this.length+xt.length),this.mulTo(xt,Mt)},tt.prototype.mulf=function(xt){var Mt=new tt(null);return Mt.words=new Array(this.length+xt.length),uo(this,xt,Mt)},tt.prototype.imul=function(xt){return this.clone().mulTo(xt,this)},tt.prototype.imuln=function(xt){var Mt=xt<0;Mt&&(xt=-xt),Cr(typeof xt=="number"),Cr(xt<67108864);for(var ho=0,io=0;io>=26,ho+=co/67108864|0,ho+=mo>>>26,this.words[io]=mo&67108863}return ho!==0&&(this.words[io]=ho,this.length++),Mt?this.ineg():this},tt.prototype.muln=function(xt){return this.clone().imuln(xt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(xt){var Mt=eo(xt);if(Mt.length===0)return new tt(1);for(var ho=this,io=0;io=0);var Mt=xt%26,ho=(xt-Mt)/26,io=67108863>>>26-Mt<<26-Mt,co;if(Mt!==0){var mo=0;for(co=0;co>>26-Mt}mo&&(this.words[co]=mo,this.length++)}if(ho!==0){for(co=this.length-1;co>=0;co--)this.words[co+ho]=this.words[co];for(co=0;co=0);var io;Mt?io=(Mt-Mt%26)/26:io=0;var co=xt%26,mo=Math.min((xt-co)/26,this.length),Bo=67108863^67108863>>>co<mo)for(this.length-=mo,Tt=0;Tt=0&&(vo!==0||Tt>=io);Tt--){var Co=this.words[Tt]|0;this.words[Tt]=vo<<26-co|Co>>>co,vo=Co&Bo}return So&&vo!==0&&(So.words[So.length++]=vo),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},tt.prototype.ishrn=function(xt,Mt,ho){return Cr(this.negative===0),this.iushrn(xt,Mt,ho)},tt.prototype.shln=function(xt){return this.clone().ishln(xt)},tt.prototype.ushln=function(xt){return this.clone().iushln(xt)},tt.prototype.shrn=function(xt){return this.clone().ishrn(xt)},tt.prototype.ushrn=function(xt){return this.clone().iushrn(xt)},tt.prototype.testn=function(xt){Cr(typeof xt=="number"&&xt>=0);var Mt=xt%26,ho=(xt-Mt)/26,io=1<=0);var Mt=xt%26,ho=(xt-Mt)/26;if(Cr(this.negative===0,"imaskn works only with positive numbers"),this.length<=ho)return this;if(Mt!==0&&ho++,this.length=Math.min(ho,this.length),Mt!==0){var io=67108863^67108863>>>Mt<=67108864;Mt++)this.words[Mt]-=67108864,Mt===this.length-1?this.words[Mt+1]=1:this.words[Mt+1]++;return this.length=Math.max(this.length,Mt+1),this},tt.prototype.isubn=function(xt){if(Cr(typeof xt=="number"),Cr(xt<67108864),xt<0)return this.iaddn(-xt);if(this.negative!==0)return this.negative=0,this.iaddn(xt),this.negative=1,this;if(this.words[0]-=xt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Mt=0;Mt>26)-(So/67108864|0),this.words[co+ho]=mo&67108863}for(;co>26,this.words[co+ho]=mo&67108863;if(Bo===0)return this._strip();for(Cr(Bo===-1),Bo=0,co=0;co>26,this.words[co]=mo&67108863;return this.negative=1,this._strip()},tt.prototype._wordDiv=function(xt,Mt){var ho=this.length-xt.length,io=this.clone(),co=xt,mo=co.words[co.length-1]|0,Bo=this._countBits(mo);ho=26-Bo,ho!==0&&(co=co.ushln(ho),io.iushln(ho),mo=co.words[co.length-1]|0);var So=io.length-co.length,Tt;if(Mt!=="mod"){Tt=new tt(null),Tt.length=So+1,Tt.words=new Array(Tt.length);for(var vo=0;vo=0;xo--){var Po=(io.words[co.length+xo]|0)*67108864+(io.words[co.length+xo-1]|0);for(Po=Math.min(Po/mo|0,67108863),io._ishlnsubmul(co,Po,xo);io.negative!==0;)Po--,io.negative=0,io._ishlnsubmul(co,1,xo),io.isZero()||(io.negative^=1);Tt&&(Tt.words[xo]=Po)}return Tt&&Tt._strip(),io._strip(),Mt!=="div"&&ho!==0&&io.iushrn(ho),{div:Tt||null,mod:io}},tt.prototype.divmod=function(xt,Mt,ho){if(Cr(!xt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var io,co,mo;return this.negative!==0&&xt.negative===0?(mo=this.neg().divmod(xt,Mt),Mt!=="mod"&&(io=mo.div.neg()),Mt!=="div"&&(co=mo.mod.neg(),ho&&co.negative!==0&&co.iadd(xt)),{div:io,mod:co}):this.negative===0&&xt.negative!==0?(mo=this.divmod(xt.neg(),Mt),Mt!=="mod"&&(io=mo.div.neg()),{div:io,mod:mo.mod}):this.negative&xt.negative?(mo=this.neg().divmod(xt.neg(),Mt),Mt!=="div"&&(co=mo.mod.neg(),ho&&co.negative!==0&&co.isub(xt)),{div:mo.div,mod:co}):xt.length>this.length||this.cmp(xt)<0?{div:new tt(0),mod:this}:xt.length===1?Mt==="div"?{div:this.divn(xt.words[0]),mod:null}:Mt==="mod"?{div:null,mod:new tt(this.modrn(xt.words[0]))}:{div:this.divn(xt.words[0]),mod:new tt(this.modrn(xt.words[0]))}:this._wordDiv(xt,Mt)},tt.prototype.div=function(xt){return this.divmod(xt,"div",!1).div},tt.prototype.mod=function(xt){return this.divmod(xt,"mod",!1).mod},tt.prototype.umod=function(xt){return this.divmod(xt,"mod",!0).mod},tt.prototype.divRound=function(xt){var Mt=this.divmod(xt);if(Mt.mod.isZero())return Mt.div;var ho=Mt.div.negative!==0?Mt.mod.isub(xt):Mt.mod,io=xt.ushrn(1),co=xt.andln(1),mo=ho.cmp(io);return mo<0||co===1&&mo===0?Mt.div:Mt.div.negative!==0?Mt.div.isubn(1):Mt.div.iaddn(1)},tt.prototype.modrn=function(xt){var Mt=xt<0;Mt&&(xt=-xt),Cr(xt<=67108863);for(var ho=(1<<26)%xt,io=0,co=this.length-1;co>=0;co--)io=(ho*io+(this.words[co]|0))%xt;return Mt?-io:io},tt.prototype.modn=function(xt){return this.modrn(xt)},tt.prototype.idivn=function(xt){var Mt=xt<0;Mt&&(xt=-xt),Cr(xt<=67108863);for(var ho=0,io=this.length-1;io>=0;io--){var co=(this.words[io]|0)+ho*67108864;this.words[io]=co/xt|0,ho=co%xt}return this._strip(),Mt?this.ineg():this},tt.prototype.divn=function(xt){return this.clone().idivn(xt)},tt.prototype.egcd=function(xt){Cr(xt.negative===0),Cr(!xt.isZero());var Mt=this,ho=xt.clone();Mt.negative!==0?Mt=Mt.umod(xt):Mt=Mt.clone();for(var io=new tt(1),co=new tt(0),mo=new tt(0),Bo=new tt(1),So=0;Mt.isEven()&&ho.isEven();)Mt.iushrn(1),ho.iushrn(1),++So;for(var Tt=ho.clone(),vo=Mt.clone();!Mt.isZero();){for(var Co=0,xo=1;!(Mt.words[0]&xo)&&Co<26;++Co,xo<<=1);if(Co>0)for(Mt.iushrn(Co);Co-- >0;)(io.isOdd()||co.isOdd())&&(io.iadd(Tt),co.isub(vo)),io.iushrn(1),co.iushrn(1);for(var Po=0,Wo=1;!(ho.words[0]&Wo)&&Po<26;++Po,Wo<<=1);if(Po>0)for(ho.iushrn(Po);Po-- >0;)(mo.isOdd()||Bo.isOdd())&&(mo.iadd(Tt),Bo.isub(vo)),mo.iushrn(1),Bo.iushrn(1);Mt.cmp(ho)>=0?(Mt.isub(ho),io.isub(mo),co.isub(Bo)):(ho.isub(Mt),mo.isub(io),Bo.isub(co))}return{a:mo,b:Bo,gcd:ho.iushln(So)}},tt.prototype._invmp=function(xt){Cr(xt.negative===0),Cr(!xt.isZero());var Mt=this,ho=xt.clone();Mt.negative!==0?Mt=Mt.umod(xt):Mt=Mt.clone();for(var io=new tt(1),co=new tt(0),mo=ho.clone();Mt.cmpn(1)>0&&ho.cmpn(1)>0;){for(var Bo=0,So=1;!(Mt.words[0]&So)&&Bo<26;++Bo,So<<=1);if(Bo>0)for(Mt.iushrn(Bo);Bo-- >0;)io.isOdd()&&io.iadd(mo),io.iushrn(1);for(var Tt=0,vo=1;!(ho.words[0]&vo)&&Tt<26;++Tt,vo<<=1);if(Tt>0)for(ho.iushrn(Tt);Tt-- >0;)co.isOdd()&&co.iadd(mo),co.iushrn(1);Mt.cmp(ho)>=0?(Mt.isub(ho),io.isub(co)):(ho.isub(Mt),co.isub(io))}var Co;return Mt.cmpn(1)===0?Co=io:Co=co,Co.cmpn(0)<0&&Co.iadd(xt),Co},tt.prototype.gcd=function(xt){if(this.isZero())return xt.abs();if(xt.isZero())return this.abs();var Mt=this.clone(),ho=xt.clone();Mt.negative=0,ho.negative=0;for(var io=0;Mt.isEven()&&ho.isEven();io++)Mt.iushrn(1),ho.iushrn(1);do{for(;Mt.isEven();)Mt.iushrn(1);for(;ho.isEven();)ho.iushrn(1);var co=Mt.cmp(ho);if(co<0){var mo=Mt;Mt=ho,ho=mo}else if(co===0||ho.cmpn(1)===0)break;Mt.isub(ho)}while(!0);return ho.iushln(io)},tt.prototype.invm=function(xt){return this.egcd(xt).a.umod(xt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(xt){return this.words[0]&xt},tt.prototype.bincn=function(xt){Cr(typeof xt=="number");var Mt=xt%26,ho=(xt-Mt)/26,io=1<>>26,Bo&=67108863,this.words[mo]=Bo}return co!==0&&(this.words[mo]=co,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(xt){var Mt=xt<0;if(this.negative!==0&&!Mt)return-1;if(this.negative===0&&Mt)return 1;this._strip();var ho;if(this.length>1)ho=1;else{Mt&&(xt=-xt),Cr(xt<=67108863,"Number is too big");var io=this.words[0]|0;ho=io===xt?0:ioxt.length)return 1;if(this.length=0;ho--){var io=this.words[ho]|0,co=xt.words[ho]|0;if(io!==co){ioco&&(Mt=1);break}}return Mt},tt.prototype.gtn=function(xt){return this.cmpn(xt)===1},tt.prototype.gt=function(xt){return this.cmp(xt)===1},tt.prototype.gten=function(xt){return this.cmpn(xt)>=0},tt.prototype.gte=function(xt){return this.cmp(xt)>=0},tt.prototype.ltn=function(xt){return this.cmpn(xt)===-1},tt.prototype.lt=function(xt){return this.cmp(xt)===-1},tt.prototype.lten=function(xt){return this.cmpn(xt)<=0},tt.prototype.lte=function(xt){return this.cmp(xt)<=0},tt.prototype.eqn=function(xt){return this.cmpn(xt)===0},tt.prototype.eq=function(xt){return this.cmp(xt)===0},tt.red=function(xt){return new so(xt)},tt.prototype.toRed=function(xt){return Cr(!this.red,"Already a number in reduction context"),Cr(this.negative===0,"red works only with positives"),xt.convertTo(this)._forceRed(xt)},tt.prototype.fromRed=function(){return Cr(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(xt){return this.red=xt,this},tt.prototype.forceRed=function(xt){return Cr(!this.red,"Already a number in reduction context"),this._forceRed(xt)},tt.prototype.redAdd=function(xt){return Cr(this.red,"redAdd works only with red numbers"),this.red.add(this,xt)},tt.prototype.redIAdd=function(xt){return Cr(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,xt)},tt.prototype.redSub=function(xt){return Cr(this.red,"redSub works only with red numbers"),this.red.sub(this,xt)},tt.prototype.redISub=function(xt){return Cr(this.red,"redISub works only with red numbers"),this.red.isub(this,xt)},tt.prototype.redShl=function(xt){return Cr(this.red,"redShl works only with red numbers"),this.red.shl(this,xt)},tt.prototype.redMul=function(xt){return Cr(this.red,"redMul works only with red numbers"),this.red._verify2(this,xt),this.red.mul(this,xt)},tt.prototype.redIMul=function(xt){return Cr(this.red,"redMul works only with red numbers"),this.red._verify2(this,xt),this.red.imul(this,xt)},tt.prototype.redSqr=function(){return Cr(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return Cr(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return Cr(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return Cr(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return Cr(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(xt){return Cr(this.red&&!xt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,xt)};var go={k256:null,p224:null,p192:null,p25519:null};function bo(xt,Mt){this.name=xt,this.p=new tt(Mt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}bo.prototype._tmp=function(){var xt=new tt(null);return xt.words=new Array(Math.ceil(this.n/13)),xt},bo.prototype.ireduce=function(xt){var Mt=xt,ho;do this.split(Mt,this.tmp),Mt=this.imulK(Mt),Mt=Mt.iadd(this.tmp),ho=Mt.bitLength();while(ho>this.n);var io=ho0?Mt.isub(this.p):Mt.strip!==void 0?Mt.strip():Mt._strip(),Mt},bo.prototype.split=function(xt,Mt){xt.iushrn(this.n,0,Mt)},bo.prototype.imulK=function(xt){return xt.imul(this.k)};function oo(){bo.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}Vr(oo,bo),oo.prototype.split=function(xt,Mt){for(var ho=4194303,io=Math.min(xt.length,9),co=0;co>>22,mo=Bo}mo>>>=22,xt.words[co-10]=mo,mo===0&&xt.length>10?xt.length-=10:xt.length-=9},oo.prototype.imulK=function(xt){xt.words[xt.length]=0,xt.words[xt.length+1]=0,xt.length+=2;for(var Mt=0,ho=0;ho>>=26,xt.words[ho]=co,Mt=io}return Mt!==0&&(xt.words[xt.length++]=Mt),xt},tt._prime=function(xt){if(go[xt])return go[xt];var Mt;if(xt==="k256")Mt=new oo;else if(xt==="p224")Mt=new Ro;else if(xt==="p192")Mt=new pt;else if(xt==="p25519")Mt=new lo;else throw new Error("Unknown prime "+xt);return go[xt]=Mt,Mt};function so(xt){if(typeof xt=="string"){var Mt=tt._prime(xt);this.m=Mt.p,this.prime=Mt}else Cr(xt.gtn(1),"modulus must be greater than 1"),this.m=xt,this.prime=null}so.prototype._verify1=function(xt){Cr(xt.negative===0,"red works only with positives"),Cr(xt.red,"red works only with red numbers")},so.prototype._verify2=function(xt,Mt){Cr((xt.negative|Mt.negative)===0,"red works only with positives"),Cr(xt.red&&xt.red===Mt.red,"red works only with red numbers")},so.prototype.imod=function(xt){return this.prime?this.prime.ireduce(xt)._forceRed(this):(qt(xt,xt.umod(this.m)._forceRed(this)),xt)},so.prototype.neg=function(xt){return xt.isZero()?xt.clone():this.m.sub(xt)._forceRed(this)},so.prototype.add=function(xt,Mt){this._verify2(xt,Mt);var ho=xt.add(Mt);return ho.cmp(this.m)>=0&&ho.isub(this.m),ho._forceRed(this)},so.prototype.iadd=function(xt,Mt){this._verify2(xt,Mt);var ho=xt.iadd(Mt);return ho.cmp(this.m)>=0&&ho.isub(this.m),ho},so.prototype.sub=function(xt,Mt){this._verify2(xt,Mt);var ho=xt.sub(Mt);return ho.cmpn(0)<0&&ho.iadd(this.m),ho._forceRed(this)},so.prototype.isub=function(xt,Mt){this._verify2(xt,Mt);var ho=xt.isub(Mt);return ho.cmpn(0)<0&&ho.iadd(this.m),ho},so.prototype.shl=function(xt,Mt){return this._verify1(xt),this.imod(xt.ushln(Mt))},so.prototype.imul=function(xt,Mt){return this._verify2(xt,Mt),this.imod(xt.imul(Mt))},so.prototype.mul=function(xt,Mt){return this._verify2(xt,Mt),this.imod(xt.mul(Mt))},so.prototype.isqr=function(xt){return this.imul(xt,xt.clone())},so.prototype.sqr=function(xt){return this.mul(xt,xt)},so.prototype.sqrt=function(xt){if(xt.isZero())return xt.clone();var Mt=this.m.andln(3);if(Cr(Mt%2===1),Mt===3){var ho=this.m.add(new tt(1)).iushrn(2);return this.pow(xt,ho)}for(var io=this.m.subn(1),co=0;!io.isZero()&&io.andln(1)===0;)co++,io.iushrn(1);Cr(!io.isZero());var mo=new tt(1).toRed(this),Bo=mo.redNeg(),So=this.m.subn(1).iushrn(1),Tt=this.m.bitLength();for(Tt=new tt(2*Tt*Tt).toRed(this);this.pow(Tt,So).cmp(Bo)!==0;)Tt.redIAdd(Bo);for(var vo=this.pow(Tt,io),Co=this.pow(xt,io.addn(1).iushrn(1)),xo=this.pow(xt,io),Po=co;xo.cmp(mo)!==0;){for(var Wo=xo,Yn=0;Wo.cmp(mo)!==0;Yn++)Wo=Wo.redSqr();Cr(Yn=0;co--){for(var vo=Mt.words[co],Co=Tt-1;Co>=0;Co--){var xo=vo>>Co&1;if(mo!==io[0]&&(mo=this.sqr(mo)),xo===0&&Bo===0){So=0;continue}Bo<<=1,Bo|=xo,So++,!(So!==ho&&(co!==0||Co!==0))&&(mo=this.mul(mo,io[Bo]),So=0,Bo=0)}Tt=26}return mo},so.prototype.convertTo=function(xt){var Mt=xt.umod(this.m);return Mt===xt?Mt.clone():Mt},so.prototype.convertFrom=function(xt){var Mt=xt.clone();return Mt.red=null,Mt},tt.mont=function(xt){return new wo(xt)};function wo(xt){so.call(this,xt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}Vr(wo,so),wo.prototype.convertTo=function(xt){return this.imod(xt.ushln(this.shift))},wo.prototype.convertFrom=function(xt){var Mt=this.imod(xt.mul(this.rinv));return Mt.red=null,Mt},wo.prototype.imul=function(xt,Mt){if(xt.isZero()||Mt.isZero())return xt.words[0]=0,xt.length=1,xt;var ho=xt.imul(Mt),io=ho.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),co=ho.isub(io).iushrn(this.shift),mo=co;return co.cmp(this.m)>=0?mo=co.isub(this.m):co.cmpn(0)<0&&(mo=co.iadd(this.m)),mo._forceRed(this)},wo.prototype.mul=function(xt,Mt){if(xt.isZero()||Mt.isZero())return new tt(0)._forceRed(this);var ho=xt.mul(Mt),io=ho.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),co=ho.isub(io).iushrn(this.shift),mo=co;return co.cmp(this.m)>=0?mo=co.isub(this.m):co.cmpn(0)<0&&(mo=co.iadd(this.m)),mo._forceRed(this)},wo.prototype.invm=function(xt){var Mt=this.imod(xt._invmp(this.m).mul(this.r2));return Mt._forceRed(this)}})(_e,commonjsGlobal)}(bn$1);var bnExports$1=bn$1.exports,__importDefault$l=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(decimal,"__esModule",{value:!0}),decimal.Decimal=void 0;const bn_js_1$2=__importDefault$l(bnExports$1),maxFractionalDigits=100;class Decimal{static fromUserInput(cr,gr){Decimal.verifyFractionalDigits(gr);const Cr=cr.match(/[^0-9.]/);if(Cr)throw new Error(`Invalid character at position ${Cr.index+1}`);let Vr,tt;if(cr==="")Vr="0",tt="";else if(cr.search(/\./)===-1)Vr=cr,tt="";else{const st=cr.split(".");switch(st.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!st[1])throw new Error("Fractional part missing");Vr=st[0],tt=st[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(tt.length>gr)throw new Error("Got more fractional digits than supported");const nt=`${Vr}${tt.padEnd(gr,"0")}`;return new Decimal(nt,gr)}static fromAtomics(cr,gr){return Decimal.verifyFractionalDigits(gr),new Decimal(cr,gr)}static zero(cr){return Decimal.verifyFractionalDigits(cr),new Decimal("0",cr)}static one(cr){return Decimal.verifyFractionalDigits(cr),new Decimal("1"+"0".repeat(cr),cr)}static verifyFractionalDigits(cr){if(!Number.isInteger(cr))throw new Error("Fractional digits is not an integer");if(cr<0)throw new Error("Fractional digits must not be negative");if(cr>maxFractionalDigits)throw new Error(`Fractional digits must not exceed ${maxFractionalDigits}`)}static compare(cr,gr){if(cr.fractionalDigits!==gr.fractionalDigits)throw new Error("Fractional digits do not match");return cr.data.atomics.cmp(new bn_js_1$2.default(gr.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}constructor(cr,gr){if(!cr.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(cr),fractionalDigits:gr}}clone(){return new Decimal(this.atomics,this.fractionalDigits)}floor(){const cr=new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)),gr=this.data.atomics.div(cr);return this.data.atomics.mod(cr).isZero()?this.clone():Decimal.fromAtomics(gr.mul(cr).toString(),this.fractionalDigits)}ceil(){const cr=new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)),gr=this.data.atomics.div(cr);return this.data.atomics.mod(cr).isZero()?this.clone():Decimal.fromAtomics(gr.addn(1).mul(cr).toString(),this.fractionalDigits)}toString(){const cr=new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)),gr=this.data.atomics.div(cr),Cr=this.data.atomics.mod(cr);if(Cr.isZero())return gr.toString();{const Vr=Cr.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${gr.toString()}.${Vr}`}}toFloatApproximation(){const cr=Number(this.toString());if(Number.isNaN(cr))throw new Error("Conversion to number failed");return cr}plus(cr){if(this.fractionalDigits!==cr.fractionalDigits)throw new Error("Fractional digits do not match");const gr=this.data.atomics.add(new bn_js_1$2.default(cr.atomics));return new Decimal(gr.toString(),this.fractionalDigits)}minus(cr){if(this.fractionalDigits!==cr.fractionalDigits)throw new Error("Fractional digits do not match");const gr=this.data.atomics.sub(new bn_js_1$2.default(cr.atomics));if(gr.ltn(0))throw new Error("Difference must not be negative");return new Decimal(gr.toString(),this.fractionalDigits)}multiply(cr){const gr=this.data.atomics.mul(new bn_js_1$2.default(cr.toString()));return new Decimal(gr.toString(),this.fractionalDigits)}equals(cr){return Decimal.compare(this,cr)===0}isLessThan(cr){return Decimal.compare(this,cr)<0}isLessThanOrEqual(cr){return Decimal.compare(this,cr)<=0}isGreaterThan(cr){return Decimal.compare(this,cr)>0}isGreaterThanOrEqual(cr){return Decimal.compare(this,cr)>=0}}decimal.Decimal=Decimal;var integers={},__importDefault$k=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(integers,"__esModule",{value:!0}),integers.Uint64=integers.Uint53=integers.Int53=integers.Uint32=void 0;const bn_js_1$1=__importDefault$k(bnExports$1),uint64MaxValue=new bn_js_1$1.default("18446744073709551615",10,"be");class Uint32{static fromBigEndianBytes(cr){return Uint32.fromBytes(cr)}static fromBytes(cr,gr="be"){if(cr.length!==4)throw new Error("Invalid input length. Expected 4 bytes.");for(let Vr=0;Vr255||cr[Vr]<0)throw new Error("Invalid value in byte. Found: "+cr[Vr]);const Cr=gr==="be"?cr:Array.from(cr).reverse();return new Uint32(Cr[0]*2**24+Cr[1]*2**16+Cr[2]*2**8+Cr[3])}static fromString(cr){if(!cr.match(/^[0-9]+$/))throw new Error("Invalid string format");return new Uint32(Number.parseInt(cr,10))}constructor(cr){if(Number.isNaN(cr))throw new Error("Input is not a number");if(!Number.isInteger(cr))throw new Error("Input is not an integer");if(cr<0||cr>4294967295)throw new Error("Input not in uint32 range: "+cr.toString());this.data=cr}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(cr){if(!cr.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new Int53(Number.parseInt(cr,10))}constructor(cr){if(Number.isNaN(cr))throw new Error("Input is not a number");if(!Number.isInteger(cr))throw new Error("Input is not an integer");if(crNumber.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+cr.toString());this.data=cr}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}integers.Int53=Int53;class Uint53{static fromString(cr){const gr=Int53.fromString(cr);return new Uint53(gr.toNumber())}constructor(cr){const gr=new Int53(cr);if(gr.toNumber()<0)throw new Error("Input is negative");this.data=gr}toNumber(){return this.data.toNumber()}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}integers.Uint53=Uint53;class Uint64{static fromBytesBigEndian(cr){return Uint64.fromBytes(cr)}static fromBytes(cr,gr="be"){if(cr.length!==8)throw new Error("Invalid input length. Expected 8 bytes.");for(let Vr=0;Vr255||cr[Vr]<0)throw new Error("Invalid value in byte. Found: "+cr[Vr]);const Cr=gr==="be"?Array.from(cr):Array.from(cr).reverse();return new Uint64(new bn_js_1$1.default(Cr))}static fromString(cr){if(!cr.match(/^[0-9]+$/))throw new Error("Invalid string format");return new Uint64(new bn_js_1$1.default(cr,10,"be"))}static fromNumber(cr){if(Number.isNaN(cr))throw new Error("Input is not a number");if(!Number.isInteger(cr))throw new Error("Input is not an integer");let gr;try{gr=new bn_js_1$1.default(cr)}catch{throw new Error("Input is not a safe integer")}return new Uint64(gr)}constructor(cr){if(cr.isNeg())throw new Error("Input is negative");if(cr.gt(uint64MaxValue))throw new Error("Input exceeds uint64 range");this.data=cr}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(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Uint64=_e.Uint53=_e.Uint32=_e.Int53=_e.Decimal=void 0;var cr=decimal;Object.defineProperty(_e,"Decimal",{enumerable:!0,get:function(){return cr.Decimal}});var gr=integers;Object.defineProperty(_e,"Int53",{enumerable:!0,get:function(){return gr.Int53}}),Object.defineProperty(_e,"Uint32",{enumerable:!0,get:function(){return gr.Uint32}}),Object.defineProperty(_e,"Uint53",{enumerable:!0,get:function(){return gr.Uint53}}),Object.defineProperty(_e,"Uint64",{enumerable:!0,get:function(){return gr.Uint64}})}(build$b);var build$a={},accounts={},build$9={},coins$2={};Object.defineProperty(coins$2,"__esModule",{value:!0}),coins$2.parseCoins=void 0;function parseCoins$1(_e){return _e.replace(/\s/g,"").split(",").filter(Boolean).map(cr=>{const gr=cr.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!gr)throw new Error("Got an invalid coin string");return{amount:gr[1].replace(/^0+/,"")||"0",denom:gr[2]}})}coins$2.parseCoins=parseCoins$1;var decode={},tx$e={},any={},indexMinimal={},minimal$1={},aspromise=asPromise;function asPromise(_e,cr){for(var gr=new Array(arguments.length-1),Cr=0,Vr=2,tt=!0;Vr1&&nt.charAt(st)==="=";)++dt;return Math.ceil(nt.length*3)/4-dt};for(var gr=new Array(64),Cr=new Array(123),Vr=0;Vr<64;)Cr[gr[Vr]=Vr<26?Vr+65:Vr<52?Vr+71:Vr<62?Vr-4:Vr-59|43]=Vr++;cr.encode=function(nt,st,dt){for(var kt=null,qt=[],ro=0,ht=0,po;st>2],po=(no&3)<<4,ht=1;break;case 1:qt[ro++]=gr[po|no>>4],po=(no&15)<<2,ht=2;break;case 2:qt[ro++]=gr[po|no>>6],qt[ro++]=gr[no&63],ht=0;break}ro>8191&&((kt||(kt=[])).push(String.fromCharCode.apply(String,qt)),ro=0)}return ht&&(qt[ro++]=gr[po],qt[ro++]=61,ht===1&&(qt[ro++]=61)),kt?(ro&&kt.push(String.fromCharCode.apply(String,qt.slice(0,ro))),kt.join("")):String.fromCharCode.apply(String,qt.slice(0,ro))};var tt="invalid encoding";cr.decode=function(nt,st,dt){for(var kt=dt,qt=0,ro,ht=0;ht1)break;if((po=Cr[po])===void 0)throw Error(tt);switch(qt){case 0:ro=po,qt=1;break;case 1:st[dt++]=ro<<2|(po&48)>>4,ro=po,qt=2;break;case 2:st[dt++]=(ro&15)<<4|(po&60)>>2,ro=po,qt=3;break;case 3:st[dt++]=(ro&3)<<6|po,qt=0;break}}if(qt===1)throw Error(tt);return dt-kt},cr.test=function(nt){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(nt)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(_e,cr,gr){return(this._listeners[_e]||(this._listeners[_e]=[])).push({fn:cr,ctx:gr||this}),this},EventEmitter.prototype.off=function(_e,cr){if(_e===void 0)this._listeners={};else if(cr===void 0)this._listeners[_e]=[];else for(var gr=this._listeners[_e],Cr=0;Cr0?0:2147483648,tt,nt);else if(isNaN(Vr))Cr(2143289344,tt,nt);else if(Vr>3402823466385289e23)Cr((st<<31|2139095040)>>>0,tt,nt);else if(Vr<11754943508222875e-54)Cr((st<<31|Math.round(Vr/1401298464324817e-60))>>>0,tt,nt);else{var dt=Math.floor(Math.log(Vr)/Math.LN2),kt=Math.round(Vr*Math.pow(2,-dt)*8388608)&8388607;Cr((st<<31|dt+127<<23|kt)>>>0,tt,nt)}}_e.writeFloatLE=cr.bind(null,writeUintLE),_e.writeFloatBE=cr.bind(null,writeUintBE);function gr(Cr,Vr,tt){var nt=Cr(Vr,tt),st=(nt>>31)*2+1,dt=nt>>>23&255,kt=nt&8388607;return dt===255?kt?NaN:st*(1/0):dt===0?st*1401298464324817e-60*kt:st*Math.pow(2,dt-150)*(kt+8388608)}_e.readFloatLE=gr.bind(null,readUintLE),_e.readFloatBE=gr.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var cr=new Float64Array([-0]),gr=new Uint8Array(cr.buffer),Cr=gr[7]===128;function Vr(dt,kt,qt){cr[0]=dt,kt[qt]=gr[0],kt[qt+1]=gr[1],kt[qt+2]=gr[2],kt[qt+3]=gr[3],kt[qt+4]=gr[4],kt[qt+5]=gr[5],kt[qt+6]=gr[6],kt[qt+7]=gr[7]}function tt(dt,kt,qt){cr[0]=dt,kt[qt]=gr[7],kt[qt+1]=gr[6],kt[qt+2]=gr[5],kt[qt+3]=gr[4],kt[qt+4]=gr[3],kt[qt+5]=gr[2],kt[qt+6]=gr[1],kt[qt+7]=gr[0]}_e.writeDoubleLE=Cr?Vr:tt,_e.writeDoubleBE=Cr?tt:Vr;function nt(dt,kt){return gr[0]=dt[kt],gr[1]=dt[kt+1],gr[2]=dt[kt+2],gr[3]=dt[kt+3],gr[4]=dt[kt+4],gr[5]=dt[kt+5],gr[6]=dt[kt+6],gr[7]=dt[kt+7],cr[0]}function st(dt,kt){return gr[7]=dt[kt],gr[6]=dt[kt+1],gr[5]=dt[kt+2],gr[4]=dt[kt+3],gr[3]=dt[kt+4],gr[2]=dt[kt+5],gr[1]=dt[kt+6],gr[0]=dt[kt+7],cr[0]}_e.readDoubleLE=Cr?nt:st,_e.readDoubleBE=Cr?st:nt}():function(){function cr(Cr,Vr,tt,nt,st,dt){var kt=nt<0?1:0;if(kt&&(nt=-nt),nt===0)Cr(0,st,dt+Vr),Cr(1/nt>0?0:2147483648,st,dt+tt);else if(isNaN(nt))Cr(0,st,dt+Vr),Cr(2146959360,st,dt+tt);else if(nt>17976931348623157e292)Cr(0,st,dt+Vr),Cr((kt<<31|2146435072)>>>0,st,dt+tt);else{var qt;if(nt<22250738585072014e-324)qt=nt/5e-324,Cr(qt>>>0,st,dt+Vr),Cr((kt<<31|qt/4294967296)>>>0,st,dt+tt);else{var ro=Math.floor(Math.log(nt)/Math.LN2);ro===1024&&(ro=1023),qt=nt*Math.pow(2,-ro),Cr(qt*4503599627370496>>>0,st,dt+Vr),Cr((kt<<31|ro+1023<<20|qt*1048576&1048575)>>>0,st,dt+tt)}}}_e.writeDoubleLE=cr.bind(null,writeUintLE,0,4),_e.writeDoubleBE=cr.bind(null,writeUintBE,4,0);function gr(Cr,Vr,tt,nt,st){var dt=Cr(nt,st+Vr),kt=Cr(nt,st+tt),qt=(kt>>31)*2+1,ro=kt>>>20&2047,ht=4294967296*(kt&1048575)+dt;return ro===2047?ht?NaN:qt*(1/0):ro===0?qt*5e-324*ht:qt*Math.pow(2,ro-1075)*(ht+4503599627370496)}_e.readDoubleLE=gr.bind(null,readUintLE,0,4),_e.readDoubleBE=gr.bind(null,readUintBE,4,0)}(),_e}function writeUintLE(_e,cr,gr){cr[gr]=_e&255,cr[gr+1]=_e>>>8&255,cr[gr+2]=_e>>>16&255,cr[gr+3]=_e>>>24}function writeUintBE(_e,cr,gr){cr[gr]=_e>>>24,cr[gr+1]=_e>>>16&255,cr[gr+2]=_e>>>8&255,cr[gr+3]=_e&255}function readUintLE(_e,cr){return(_e[cr]|_e[cr+1]<<8|_e[cr+2]<<16|_e[cr+3]<<24)>>>0}function readUintBE(_e,cr){return(_e[cr]<<24|_e[cr+1]<<16|_e[cr+2]<<8|_e[cr+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(_e){}return null}var utf8$2={};(function(_e){var cr=_e;cr.length=function(gr){for(var Cr=0,Vr=0,tt=0;tt191&&kt<224?st[dt++]=(kt&31)<<6|gr[Cr++]&63:kt>239&&kt<365?(kt=((kt&7)<<18|(gr[Cr++]&63)<<12|(gr[Cr++]&63)<<6|gr[Cr++]&63)-65536,st[dt++]=55296+(kt>>10),st[dt++]=56320+(kt&1023)):st[dt++]=(kt&15)<<12|(gr[Cr++]&63)<<6|gr[Cr++]&63,dt>8191&&((nt||(nt=[])).push(String.fromCharCode.apply(String,st)),dt=0);return nt?(dt&&nt.push(String.fromCharCode.apply(String,st.slice(0,dt))),nt.join("")):String.fromCharCode.apply(String,st.slice(0,dt))},cr.write=function(gr,Cr,Vr){for(var tt=Vr,nt,st,dt=0;dt>6|192,Cr[Vr++]=nt&63|128):(nt&64512)===55296&&((st=gr.charCodeAt(dt+1))&64512)===56320?(nt=65536+((nt&1023)<<10)+(st&1023),++dt,Cr[Vr++]=nt>>18|240,Cr[Vr++]=nt>>12&63|128,Cr[Vr++]=nt>>6&63|128,Cr[Vr++]=nt&63|128):(Cr[Vr++]=nt>>12|224,Cr[Vr++]=nt>>6&63|128,Cr[Vr++]=nt&63|128);return Vr-tt}})(utf8$2);var pool_1=pool;function pool(_e,cr,gr){var Cr=gr||8192,Vr=Cr>>>1,tt=null,nt=Cr;return function(st){if(st<1||st>Vr)return _e(st);nt+st>Cr&&(tt=_e(Cr),nt=0);var dt=cr.call(tt,nt,nt+=st);return nt&7&&(nt=(nt|7)+1),dt}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=cr;var _e=requireMinimal();function cr(tt,nt){this.lo=tt>>>0,this.hi=nt>>>0}var gr=cr.zero=new cr(0,0);gr.toNumber=function(){return 0},gr.zzEncode=gr.zzDecode=function(){return this},gr.length=function(){return 1};var Cr=cr.zeroHash="\0\0\0\0\0\0\0\0";cr.fromNumber=function(tt){if(tt===0)return gr;var nt=tt<0;nt&&(tt=-tt);var st=tt>>>0,dt=(tt-st)/4294967296>>>0;return nt&&(dt=~dt>>>0,st=~st>>>0,++st>4294967295&&(st=0,++dt>4294967295&&(dt=0))),new cr(st,dt)},cr.from=function(tt){if(typeof tt=="number")return cr.fromNumber(tt);if(_e.isString(tt))if(_e.Long)tt=_e.Long.fromString(tt);else return cr.fromNumber(parseInt(tt,10));return tt.low||tt.high?new cr(tt.low>>>0,tt.high>>>0):gr},cr.prototype.toNumber=function(tt){if(!tt&&this.hi>>>31){var nt=~this.lo+1>>>0,st=~this.hi>>>0;return nt||(st=st+1>>>0),-(nt+st*4294967296)}return this.lo+this.hi*4294967296},cr.prototype.toLong=function(tt){return _e.Long?new _e.Long(this.lo|0,this.hi|0,!!tt):{low:this.lo|0,high:this.hi|0,unsigned:!!tt}};var Vr=String.prototype.charCodeAt;return cr.fromHash=function(tt){return tt===Cr?gr:new cr((Vr.call(tt,0)|Vr.call(tt,1)<<8|Vr.call(tt,2)<<16|Vr.call(tt,3)<<24)>>>0,(Vr.call(tt,4)|Vr.call(tt,5)<<8|Vr.call(tt,6)<<16|Vr.call(tt,7)<<24)>>>0)},cr.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)},cr.prototype.zzEncode=function(){var tt=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^tt)>>>0,this.lo=(this.lo<<1^tt)>>>0,this},cr.prototype.zzDecode=function(){var tt=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^tt)>>>0,this.hi=(this.hi>>>1^tt)>>>0,this},cr.prototype.length=function(){var tt=this.lo,nt=(this.lo>>>28|this.hi<<4)>>>0,st=this.hi>>>24;return st===0?nt===0?tt<16384?tt<128?1:2:tt<2097152?3:4:nt<16384?nt<128?5:6:nt<2097152?7:8:st<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(_e){var cr=_e;cr.asPromise=aspromise,cr.base64=base64$1,cr.EventEmitter=eventemitter,cr.float=float,cr.inquire=inquire_1,cr.utf8=utf8$2,cr.pool=pool_1,cr.LongBits=requireLongbits(),cr.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),cr.global=cr.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,cr.emptyArray=Object.freeze?Object.freeze([]):[],cr.emptyObject=Object.freeze?Object.freeze({}):{},cr.isInteger=Number.isInteger||function(Vr){return typeof Vr=="number"&&isFinite(Vr)&&Math.floor(Vr)===Vr},cr.isString=function(Vr){return typeof Vr=="string"||Vr instanceof String},cr.isObject=function(Vr){return Vr&&typeof Vr=="object"},cr.isset=cr.isSet=function(Vr,tt){var nt=Vr[tt];return nt!=null&&Vr.hasOwnProperty(tt)?typeof nt!="object"||(Array.isArray(nt)?nt.length:Object.keys(nt).length)>0:!1},cr.Buffer=function(){try{var Vr=cr.inquire("buffer").Buffer;return Vr.prototype.utf8Write?Vr:null}catch{return null}}(),cr._Buffer_from=null,cr._Buffer_allocUnsafe=null,cr.newBuffer=function(Vr){return typeof Vr=="number"?cr.Buffer?cr._Buffer_allocUnsafe(Vr):new cr.Array(Vr):cr.Buffer?cr._Buffer_from(Vr):typeof Uint8Array>"u"?Vr:new Uint8Array(Vr)},cr.Array=typeof Uint8Array<"u"?Uint8Array:Array,cr.Long=cr.global.dcodeIO&&cr.global.dcodeIO.Long||cr.global.Long||cr.inquire("long"),cr.key2Re=/^true|false|0|1$/,cr.key32Re=/^-?(?:0|[1-9][0-9]*)$/,cr.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,cr.longToHash=function(Vr){return Vr?cr.LongBits.from(Vr).toHash():cr.LongBits.zeroHash},cr.longFromHash=function(Vr,tt){var nt=cr.LongBits.fromHash(Vr);return cr.Long?cr.Long.fromBits(nt.lo,nt.hi,tt):nt.toNumber(!!tt)};function gr(Vr,tt,nt){for(var st=Object.keys(tt),dt=0;dt-1;--dt)if(tt[st[dt]]===1&&this[st[dt]]!==void 0&&this[st[dt]]!==null)return st[dt]}},cr.oneOfSetter=function(Vr){return function(tt){for(var nt=0;nt127;)cr[gr++]=_e&127|128,_e>>>=7;cr[gr]=_e}function VarintOp(_e,cr){this.len=_e,this.next=void 0,this.val=cr}VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer$1.prototype.uint32=function _e(cr){return this.len+=(this.tail=this.tail.next=new VarintOp((cr=cr>>>0)<128?1:cr<16384?2:cr<2097152?3:cr<268435456?4:5,cr)).len,this},Writer$1.prototype.int32=function _e(cr){return cr<0?this._push(writeVarint64,10,LongBits$1.fromNumber(cr)):this.uint32(cr)},Writer$1.prototype.sint32=function _e(cr){return this.uint32((cr<<1^cr>>31)>>>0)};function writeVarint64(_e,cr,gr){for(;_e.hi;)cr[gr++]=_e.lo&127|128,_e.lo=(_e.lo>>>7|_e.hi<<25)>>>0,_e.hi>>>=7;for(;_e.lo>127;)cr[gr++]=_e.lo&127|128,_e.lo=_e.lo>>>7;cr[gr++]=_e.lo}Writer$1.prototype.uint64=function _e(cr){var gr=LongBits$1.from(cr);return this._push(writeVarint64,gr.length(),gr)},Writer$1.prototype.int64=Writer$1.prototype.uint64,Writer$1.prototype.sint64=function _e(cr){var gr=LongBits$1.from(cr).zzEncode();return this._push(writeVarint64,gr.length(),gr)},Writer$1.prototype.bool=function _e(cr){return this._push(writeByte,1,cr?1:0)};function writeFixed32(_e,cr,gr){cr[gr]=_e&255,cr[gr+1]=_e>>>8&255,cr[gr+2]=_e>>>16&255,cr[gr+3]=_e>>>24}Writer$1.prototype.fixed32=function _e(cr){return this._push(writeFixed32,4,cr>>>0)},Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32,Writer$1.prototype.fixed64=function _e(cr){var gr=LongBits$1.from(cr);return this._push(writeFixed32,4,gr.lo)._push(writeFixed32,4,gr.hi)},Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64,Writer$1.prototype.float=function _e(cr){return this._push(util$4.float.writeFloatLE,4,cr)},Writer$1.prototype.double=function _e(cr){return this._push(util$4.float.writeDoubleLE,8,cr)};var writeBytes=util$4.Array.prototype.set?function _e(cr,gr,Cr){gr.set(cr,Cr)}:function _e(cr,gr,Cr){for(var Vr=0;Vr>>0;if(!gr)return this._push(writeByte,1,0);if(util$4.isString(cr)){var Cr=Writer$1.alloc(gr=base64.length(cr));base64.decode(cr,Cr,0),cr=Cr}return this.uint32(gr)._push(writeBytes,gr,cr)},Writer$1.prototype.string=function _e(cr){var gr=utf8$1.length(cr);return gr?this.uint32(gr)._push(utf8$1.write,gr,cr):this._push(writeByte,1,0)},Writer$1.prototype.fork=function _e(){return this.states=new State(this),this.head=this.tail=new Op(noop$7,0,0),this.len=0,this},Writer$1.prototype.reset=function _e(){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$7,0,0),this.len=0),this},Writer$1.prototype.ldelim=function _e(){var cr=this.head,gr=this.tail,Cr=this.len;return this.reset().uint32(Cr),Cr&&(this.tail.next=cr.next,this.tail=gr,this.len+=Cr),this},Writer$1.prototype.finish=function _e(){for(var cr=this.head.next,gr=this.constructor.alloc(this.len),Cr=0;cr;)cr.fn(cr.val,gr,Cr),Cr+=cr.len,cr=cr.next;return gr},Writer$1._configure=function(_e){BufferWriter$1=_e,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(_e,cr,gr){cr.set(_e,gr)}:function(_e,cr,gr){if(_e.copy)_e.copy(cr,gr,0,_e.length);else for(var Cr=0;Cr<_e.length;)cr[gr++]=_e[Cr++]}},BufferWriter.prototype.bytes=function _e(cr){util$3.isString(cr)&&(cr=util$3._Buffer_from(cr,"base64"));var gr=cr.length>>>0;return this.uint32(gr),gr&&this._push(BufferWriter.writeBytesBuffer,gr,cr),this};function writeStringBuffer(_e,cr,gr){_e.length<40?util$3.utf8.write(_e,cr,gr):cr.utf8Write?cr.utf8Write(_e,gr):cr.write(_e,gr)}BufferWriter.prototype.string=function _e(cr){var gr=util$3.Buffer.byteLength(cr);return this.uint32(gr),gr&&this._push(writeStringBuffer,gr,cr),this},BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange(_e,cr){return RangeError("index out of range: "+_e.pos+" + "+(cr||1)+" > "+_e.len)}function Reader$1(_e){this.buf=_e,this.pos=0,this.len=_e.length}var create_array=typeof Uint8Array<"u"?function _e(cr){if(cr instanceof Uint8Array||Array.isArray(cr))return new Reader$1(cr);throw Error("illegal buffer")}:function _e(cr){if(Array.isArray(cr))return new Reader$1(cr);throw Error("illegal buffer")},create=function _e(){return util$2.Buffer?function(cr){return(Reader$1.create=function(gr){return util$2.Buffer.isBuffer(gr)?new BufferReader$1(gr):create_array(gr)})(cr)}:create_array};Reader$1.create=create(),Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice,Reader$1.prototype.uint32=function _e(){var cr=4294967295;return function(){if(cr=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(cr=(cr|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(cr=(cr|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(cr=(cr|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(cr=(cr|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return cr;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return cr}}(),Reader$1.prototype.int32=function _e(){return this.uint32()|0},Reader$1.prototype.sint32=function _e(){var cr=this.uint32();return cr>>>1^-(cr&1)|0};function readLongVarint(){var _e=new LongBits(0,0),cr=0;if(this.len-this.pos>4){for(;cr<4;++cr)if(_e.lo=(_e.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return _e;if(_e.lo=(_e.lo|(this.buf[this.pos]&127)<<28)>>>0,_e.hi=(_e.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return _e;cr=0}else{for(;cr<3;++cr){if(this.pos>=this.len)throw indexOutOfRange(this);if(_e.lo=(_e.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return _e}return _e.lo=(_e.lo|(this.buf[this.pos++]&127)<>>0,_e}if(this.len-this.pos>4){for(;cr<5;++cr)if(_e.hi=(_e.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return _e}else for(;cr<5;++cr){if(this.pos>=this.len)throw indexOutOfRange(this);if(_e.hi=(_e.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return _e}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function _e(){return this.uint32()!==0};function readFixed32_end(_e,cr){return(_e[cr-4]|_e[cr-3]<<8|_e[cr-2]<<16|_e[cr-1]<<24)>>>0}Reader$1.prototype.fixed32=function _e(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.sfixed32=function _e(){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 _e(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var cr=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,cr},Reader$1.prototype.double=function _e(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var cr=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,cr},Reader$1.prototype.bytes=function _e(){var cr=this.uint32(),gr=this.pos,Cr=this.pos+cr;if(Cr>this.len)throw indexOutOfRange(this,cr);return this.pos+=cr,Array.isArray(this.buf)?this.buf.slice(gr,Cr):gr===Cr?new this.buf.constructor(0):this._slice.call(this.buf,gr,Cr)},Reader$1.prototype.string=function _e(){var cr=this.bytes();return utf8.read(cr,0,cr.length)},Reader$1.prototype.skip=function _e(cr){if(typeof cr=="number"){if(this.pos+cr>this.len)throw indexOutOfRange(this,cr);this.pos+=cr}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this},Reader$1.prototype.skipType=function(_e){switch(_e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(_e=this.uint32()&7)!==4;)this.skipType(_e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+_e+" at offset "+this.pos)}return this},Reader$1._configure=function(_e){BufferReader$1=_e,Reader$1.create=create(),BufferReader$1._configure();var cr=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[cr](!1)},uint64:function(){return readLongVarint.call(this)[cr](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[cr](!1)},fixed64:function(){return readFixed64.call(this)[cr](!0)},sfixed64:function(){return readFixed64.call(this)[cr](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(_e){Reader.call(this,_e)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)},BufferReader.prototype.string=function _e(){var cr=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+cr,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+cr,this.len))},BufferReader._configure();var rpc={},service$1=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(_e,cr,gr){if(typeof _e!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=_e,this.requestDelimited=!!cr,this.responseDelimited=!!gr}Service.prototype.rpcCall=function _e(cr,gr,Cr,Vr,tt){if(!Vr)throw TypeError("request must be specified");var nt=this;if(!tt)return util.asPromise(_e,nt,cr,gr,Cr,Vr);if(!nt.rpcImpl){setTimeout(function(){tt(Error("already ended"))},0);return}try{return nt.rpcImpl(cr,gr[nt.requestDelimited?"encodeDelimited":"encode"](Vr).finish(),function(st,dt){if(st)return nt.emit("error",st,cr),tt(st);if(dt===null){nt.end(!0);return}if(!(dt instanceof Cr))try{dt=Cr[nt.responseDelimited?"decodeDelimited":"decode"](dt)}catch(kt){return nt.emit("error",kt,cr),tt(kt)}return nt.emit("data",dt,cr),tt(null,dt)})}catch(st){nt.emit("error",st,cr),setTimeout(function(){tt(st)},0);return}},Service.prototype.end=function _e(cr){return this.rpcImpl&&(cr||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(_e){var cr=_e;cr.Service=service$1}(rpc);var roots={};(function(_e){var cr=_e;cr.build="minimal",cr.Writer=writer,cr.BufferWriter=writer_buffer,cr.Reader=reader,cr.BufferReader=reader_buffer,cr.util=requireMinimal(),cr.rpc=rpc,cr.roots=roots,cr.configure=gr;function gr(){cr.util._configure(),cr.Writer._configure(cr.BufferWriter),cr.Reader._configure(cr.BufferReader)}gr()})(indexMinimal);var minimal=indexMinimal,helpers={},long=Long,wasm$2=null;try{wasm$2=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(_e){}function Long(_e,cr,gr){this.low=_e|0,this.high=cr|0,this.unsigned=!!gr}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0});function isLong(_e){return(_e&&_e.__isLong__)===!0}Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(_e,cr){var gr,Cr,Vr;return cr?(_e>>>=0,(Vr=0<=_e&&_e<256)&&(Cr=UINT_CACHE[_e],Cr)?Cr:(gr=fromBits(_e,(_e|0)<0?-1:0,!0),Vr&&(UINT_CACHE[_e]=gr),gr)):(_e|=0,(Vr=-128<=_e&&_e<128)&&(Cr=INT_CACHE[_e],Cr)?Cr:(gr=fromBits(_e,_e<0?-1:0,!1),Vr&&(INT_CACHE[_e]=gr),gr))}Long.fromInt=fromInt;function fromNumber(_e,cr){if(isNaN(_e))return cr?UZERO:ZERO;if(cr){if(_e<0)return UZERO;if(_e>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(_e<=-TWO_PWR_63_DBL)return MIN_VALUE;if(_e+1>=TWO_PWR_63_DBL)return MAX_VALUE}return _e<0?fromNumber(-_e,cr).neg():fromBits(_e%TWO_PWR_32_DBL|0,_e/TWO_PWR_32_DBL|0,cr)}Long.fromNumber=fromNumber;function fromBits(_e,cr,gr){return new Long(_e,cr,gr)}Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(_e,cr,gr){if(_e.length===0)throw Error("empty string");if(_e==="NaN"||_e==="Infinity"||_e==="+Infinity"||_e==="-Infinity")return ZERO;if(typeof cr=="number"?(gr=cr,cr=!1):cr=!!cr,gr=gr||10,gr<2||360)throw Error("interior hyphen");if(Cr===0)return fromString(_e.substring(1),cr,gr).neg();for(var Vr=fromNumber(pow_dbl(gr,8)),tt=ZERO,nt=0;nt<_e.length;nt+=8){var st=Math.min(8,_e.length-nt),dt=parseInt(_e.substring(nt,nt+st),gr);if(st<8){var kt=fromNumber(pow_dbl(gr,st));tt=tt.mul(kt).add(fromNumber(dt))}else tt=tt.mul(Vr),tt=tt.add(fromNumber(dt))}return tt.unsigned=cr,tt}Long.fromString=fromString;function fromValue(_e,cr){return typeof _e=="number"?fromNumber(_e,cr):typeof _e=="string"?fromString(_e,cr):fromBits(_e.low,_e.high,typeof cr=="boolean"?cr:_e.unsigned)}Long.fromValue=fromValue;var TWO_PWR_16_DBL=65536,TWO_PWR_24_DBL=1<<24,TWO_PWR_32_DBL=TWO_PWR_16_DBL*TWO_PWR_16_DBL,TWO_PWR_64_DBL=TWO_PWR_32_DBL*TWO_PWR_32_DBL,TWO_PWR_63_DBL=TWO_PWR_64_DBL/2,TWO_PWR_24=fromInt(TWO_PWR_24_DBL),ZERO=fromInt(0);Long.ZERO=ZERO;var UZERO=fromInt(0,!0);Long.UZERO=UZERO;var ONE=fromInt(1);Long.ONE=ONE;var UONE=fromInt(1,!0);Long.UONE=UONE;var NEG_ONE=fromInt(-1);Long.NEG_ONE=NEG_ONE;var MAX_VALUE=fromBits(-1,2147483647,!1);Long.MAX_VALUE=MAX_VALUE;var MAX_UNSIGNED_VALUE=fromBits(-1,-1,!0);Long.MAX_UNSIGNED_VALUE=MAX_UNSIGNED_VALUE;var MIN_VALUE=fromBits(0,-2147483648,!1);Long.MIN_VALUE=MIN_VALUE;var LongPrototype=Long.prototype;LongPrototype.toInt=function _e(){return this.unsigned?this.low>>>0:this.low},LongPrototype.toNumber=function _e(){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 _e(cr){if(cr=cr||10,cr<2||36>>0,qt=kt.toString(cr);if(nt=dt,nt.isZero())return qt+st;for(;qt.length<6;)qt="0"+qt;st=""+qt+st}},LongPrototype.getHighBits=function _e(){return this.high},LongPrototype.getHighBitsUnsigned=function _e(){return this.high>>>0},LongPrototype.getLowBits=function _e(){return this.low},LongPrototype.getLowBitsUnsigned=function _e(){return this.low>>>0},LongPrototype.getNumBitsAbs=function _e(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var cr=this.high!=0?this.high:this.low,gr=31;gr>0&&!(cr&1<=0},LongPrototype.isOdd=function _e(){return(this.low&1)===1},LongPrototype.isEven=function _e(){return(this.low&1)===0},LongPrototype.equals=function _e(cr){return isLong(cr)||(cr=fromValue(cr)),this.unsigned!==cr.unsigned&&this.high>>>31===1&&cr.high>>>31===1?!1:this.high===cr.high&&this.low===cr.low},LongPrototype.eq=LongPrototype.equals,LongPrototype.notEquals=function _e(cr){return!this.eq(cr)},LongPrototype.neq=LongPrototype.notEquals,LongPrototype.ne=LongPrototype.notEquals,LongPrototype.lessThan=function _e(cr){return this.comp(cr)<0},LongPrototype.lt=LongPrototype.lessThan,LongPrototype.lessThanOrEqual=function _e(cr){return this.comp(cr)<=0},LongPrototype.lte=LongPrototype.lessThanOrEqual,LongPrototype.le=LongPrototype.lessThanOrEqual,LongPrototype.greaterThan=function _e(cr){return this.comp(cr)>0},LongPrototype.gt=LongPrototype.greaterThan,LongPrototype.greaterThanOrEqual=function _e(cr){return this.comp(cr)>=0},LongPrototype.gte=LongPrototype.greaterThanOrEqual,LongPrototype.ge=LongPrototype.greaterThanOrEqual,LongPrototype.compare=function _e(cr){if(isLong(cr)||(cr=fromValue(cr)),this.eq(cr))return 0;var gr=this.isNegative(),Cr=cr.isNegative();return gr&&!Cr?-1:!gr&&Cr?1:this.unsigned?cr.high>>>0>this.high>>>0||cr.high===this.high&&cr.low>>>0>this.low>>>0?-1:1:this.sub(cr).isNegative()?-1:1},LongPrototype.comp=LongPrototype.compare,LongPrototype.negate=function _e(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)},LongPrototype.neg=LongPrototype.negate,LongPrototype.add=function _e(cr){isLong(cr)||(cr=fromValue(cr));var gr=this.high>>>16,Cr=this.high&65535,Vr=this.low>>>16,tt=this.low&65535,nt=cr.high>>>16,st=cr.high&65535,dt=cr.low>>>16,kt=cr.low&65535,qt=0,ro=0,ht=0,po=0;return po+=tt+kt,ht+=po>>>16,po&=65535,ht+=Vr+dt,ro+=ht>>>16,ht&=65535,ro+=Cr+st,qt+=ro>>>16,ro&=65535,qt+=gr+nt,qt&=65535,fromBits(ht<<16|po,qt<<16|ro,this.unsigned)},LongPrototype.subtract=function _e(cr){return isLong(cr)||(cr=fromValue(cr)),this.add(cr.neg())},LongPrototype.sub=LongPrototype.subtract,LongPrototype.multiply=function _e(cr){if(this.isZero())return ZERO;if(isLong(cr)||(cr=fromValue(cr)),wasm$2){var gr=wasm$2.mul(this.low,this.high,cr.low,cr.high);return fromBits(gr,wasm$2.get_high(),this.unsigned)}if(cr.isZero())return ZERO;if(this.eq(MIN_VALUE))return cr.isOdd()?MIN_VALUE:ZERO;if(cr.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return cr.isNegative()?this.neg().mul(cr.neg()):this.neg().mul(cr).neg();if(cr.isNegative())return this.mul(cr.neg()).neg();if(this.lt(TWO_PWR_24)&&cr.lt(TWO_PWR_24))return fromNumber(this.toNumber()*cr.toNumber(),this.unsigned);var Cr=this.high>>>16,Vr=this.high&65535,tt=this.low>>>16,nt=this.low&65535,st=cr.high>>>16,dt=cr.high&65535,kt=cr.low>>>16,qt=cr.low&65535,ro=0,ht=0,po=0,no=0;return no+=nt*qt,po+=no>>>16,no&=65535,po+=tt*qt,ht+=po>>>16,po&=65535,po+=nt*kt,ht+=po>>>16,po&=65535,ht+=Vr*qt,ro+=ht>>>16,ht&=65535,ht+=tt*kt,ro+=ht>>>16,ht&=65535,ht+=nt*dt,ro+=ht>>>16,ht&=65535,ro+=Cr*qt+Vr*kt+tt*dt+nt*st,ro&=65535,fromBits(po<<16|no,ro<<16|ht,this.unsigned)},LongPrototype.mul=LongPrototype.multiply,LongPrototype.divide=function _e(cr){if(isLong(cr)||(cr=fromValue(cr)),cr.isZero())throw Error("division by zero");if(wasm$2){if(!this.unsigned&&this.high===-2147483648&&cr.low===-1&&cr.high===-1)return this;var gr=(this.unsigned?wasm$2.div_u:wasm$2.div_s)(this.low,this.high,cr.low,cr.high);return fromBits(gr,wasm$2.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?UZERO:ZERO;var Cr,Vr,tt;if(this.unsigned){if(cr.unsigned||(cr=cr.toUnsigned()),cr.gt(this))return UZERO;if(cr.gt(this.shru(1)))return UONE;tt=UZERO}else{if(this.eq(MIN_VALUE)){if(cr.eq(ONE)||cr.eq(NEG_ONE))return MIN_VALUE;if(cr.eq(MIN_VALUE))return ONE;var nt=this.shr(1);return Cr=nt.div(cr).shl(1),Cr.eq(ZERO)?cr.isNegative()?ONE:NEG_ONE:(Vr=this.sub(cr.mul(Cr)),tt=Cr.add(Vr.div(cr)),tt)}else if(cr.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return cr.isNegative()?this.neg().div(cr.neg()):this.neg().div(cr).neg();if(cr.isNegative())return this.div(cr.neg()).neg();tt=ZERO}for(Vr=this;Vr.gte(cr);){Cr=Math.max(1,Math.floor(Vr.toNumber()/cr.toNumber()));for(var st=Math.ceil(Math.log(Cr)/Math.LN2),dt=st<=48?1:pow_dbl(2,st-48),kt=fromNumber(Cr),qt=kt.mul(cr);qt.isNegative()||qt.gt(Vr);)Cr-=dt,kt=fromNumber(Cr,this.unsigned),qt=kt.mul(cr);kt.isZero()&&(kt=ONE),tt=tt.add(kt),Vr=Vr.sub(qt)}return tt},LongPrototype.div=LongPrototype.divide,LongPrototype.modulo=function _e(cr){if(isLong(cr)||(cr=fromValue(cr)),wasm$2){var gr=(this.unsigned?wasm$2.rem_u:wasm$2.rem_s)(this.low,this.high,cr.low,cr.high);return fromBits(gr,wasm$2.get_high(),this.unsigned)}return this.sub(this.div(cr).mul(cr))},LongPrototype.mod=LongPrototype.modulo,LongPrototype.rem=LongPrototype.modulo,LongPrototype.not=function _e(){return fromBits(~this.low,~this.high,this.unsigned)},LongPrototype.and=function _e(cr){return isLong(cr)||(cr=fromValue(cr)),fromBits(this.low&cr.low,this.high&cr.high,this.unsigned)},LongPrototype.or=function _e(cr){return isLong(cr)||(cr=fromValue(cr)),fromBits(this.low|cr.low,this.high|cr.high,this.unsigned)},LongPrototype.xor=function _e(cr){return isLong(cr)||(cr=fromValue(cr)),fromBits(this.low^cr.low,this.high^cr.high,this.unsigned)},LongPrototype.shiftLeft=function _e(cr){return isLong(cr)&&(cr=cr.toInt()),(cr&=63)===0?this:cr<32?fromBits(this.low<>>32-cr,this.unsigned):fromBits(0,this.low<>>cr|this.high<<32-cr,this.high>>cr,this.unsigned):fromBits(this.high>>cr-32,this.high>=0?0:-1,this.unsigned)},LongPrototype.shr=LongPrototype.shiftRight,LongPrototype.shiftRightUnsigned=function _e(cr){if(isLong(cr)&&(cr=cr.toInt()),cr&=63,cr===0)return this;var gr=this.high;if(cr<32){var Cr=this.low;return fromBits(Cr>>>cr|gr<<32-cr,gr>>>cr,this.unsigned)}else return cr===32?fromBits(gr,0,this.unsigned):fromBits(gr>>>cr-32,0,this.unsigned)},LongPrototype.shru=LongPrototype.shiftRightUnsigned,LongPrototype.shr_u=LongPrototype.shiftRightUnsigned,LongPrototype.toSigned=function _e(){return this.unsigned?fromBits(this.low,this.high,!1):this},LongPrototype.toUnsigned=function _e(){return this.unsigned?this:fromBits(this.low,this.high,!0)},LongPrototype.toBytes=function _e(cr){return cr?this.toBytesLE():this.toBytesBE()},LongPrototype.toBytesLE=function _e(){var cr=this.high,gr=this.low;return[gr&255,gr>>>8&255,gr>>>16&255,gr>>>24,cr&255,cr>>>8&255,cr>>>16&255,cr>>>24]},LongPrototype.toBytesBE=function _e(){var cr=this.high,gr=this.low;return[cr>>>24,cr>>>16&255,cr>>>8&255,cr&255,gr>>>24,gr>>>16&255,gr>>>8&255,gr&255]},Long.fromBytes=function _e(cr,gr,Cr){return Cr?Long.fromBytesLE(cr,gr):Long.fromBytesBE(cr,gr)},Long.fromBytesLE=function _e(cr,gr){return new Long(cr[0]|cr[1]<<8|cr[2]<<16|cr[3]<<24,cr[4]|cr[5]<<8|cr[6]<<16|cr[7]<<24,gr)},Long.fromBytesBE=function _e(cr,gr){return new Long(cr[4]<<24|cr[5]<<16|cr[6]<<8|cr[7],cr[0]<<24|cr[1]<<16|cr[2]<<8|cr[3],gr)};var __createBinding$n=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$n=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$n=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$n(cr,_e,gr);return __setModuleDefault$n(cr,_e),cr},__importDefault$j=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};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$h=__importStar$n(minimal),long_1$d=__importDefault$j(long);helpers.Long=long_1$d.default,_m0$h.util.Long!==long_1$d.default&&(_m0$h.util.Long=long_1$d.default,_m0$h.configure());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||(_e=>globalThis$1.Buffer.from(_e,"base64").toString("binary"));function bytesFromBase64(_e){const cr=atob$1(_e),gr=new Uint8Array(cr.length);for(let Cr=0;CrglobalThis$1.Buffer.from(_e,"binary").toString("base64"));function base64FromBytes(_e){const cr=[];return _e.forEach(gr=>{cr.push(String.fromCharCode(gr))}),btoa$1(cr.join(""))}helpers.base64FromBytes=base64FromBytes;function omitDefault$1(_e){if(typeof _e=="string")return _e===""?void 0:_e;if(typeof _e=="number")return _e===0?void 0:_e;if(long_1$d.default.isLong(_e))return _e.isZero()?void 0:_e;throw new Error(`Got unsupported type ${typeof _e}`)}helpers.omitDefault=omitDefault$1;function toDuration(_e){return{seconds:long_1$d.default.fromNumber(Math.floor(parseInt(_e)/1e9)),nanos:parseInt(_e)%1e9}}helpers.toDuration=toDuration;function fromDuration(_e){return(parseInt(_e.seconds.toString())*1e9+_e.nanos).toString()}helpers.fromDuration=fromDuration;function isSet(_e){return _e!=null}helpers.isSet=isSet;function isObject$f(_e){return typeof _e=="object"&&_e!==null}helpers.isObject=isObject$f;const setPaginationParams=(_e,cr)=>(cr&&(typeof(cr==null?void 0:cr.countTotal)<"u"&&(_e.params["pagination.count_total"]=cr.countTotal),typeof(cr==null?void 0:cr.key)<"u"&&(_e.params["pagination.key"]=Buffer.from(cr.key).toString("base64")),typeof(cr==null?void 0:cr.limit)<"u"&&(_e.params["pagination.limit"]=cr.limit.toString()),typeof(cr==null?void 0:cr.offset)<"u"&&(_e.params["pagination.offset"]=cr.offset.toString()),typeof(cr==null?void 0:cr.reverse)<"u"&&(_e.params["pagination.reverse"]=cr.reverse)),_e);helpers.setPaginationParams=setPaginationParams;function toTimestamp(_e){const cr=numberToLong(_e.getTime()/1e3),gr=_e.getTime()%1e3*1e6;return{seconds:cr,nanos:gr}}helpers.toTimestamp=toTimestamp;function fromTimestamp(_e){let cr=_e.seconds.toNumber()*1e3;return cr+=_e.nanos/1e6,new Date(cr)}helpers.fromTimestamp=fromTimestamp;const timestampFromJSON=_e=>({seconds:isSet(_e.seconds)?long_1$d.default.fromValue(_e.seconds):long_1$d.default.ZERO,nanos:isSet(_e.nanos)?Number(_e.nanos):0});function fromJsonTimestamp(_e){return _e instanceof Date?toTimestamp(_e):typeof _e=="string"?toTimestamp(new Date(_e)):timestampFromJSON(_e)}helpers.fromJsonTimestamp=fromJsonTimestamp;function numberToLong(_e){return long_1$d.default.fromNumber(_e)}var __createBinding$m=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$m=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$m=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$m(cr,_e,gr);return __setModuleDefault$m(cr,_e),cr};Object.defineProperty(any,"__esModule",{value:!0}),any.Any=any.protobufPackage=void 0;const _m0$g=__importStar$m(minimal),helpers_1$g=helpers;any.protobufPackage="google.protobuf";function createBaseAny(){return{typeUrl:"",value:new Uint8Array}}any.Any={encode(_e,cr=_m0$g.Writer.create()){return _e.typeUrl!==""&&cr.uint32(10).string(_e.typeUrl),_e.value.length!==0&&cr.uint32(18).bytes(_e.value),cr},decode(_e,cr){const gr=_e instanceof _m0$g.Reader?_e:new _m0$g.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseAny();for(;gr.pos>>3){case 1:Vr.typeUrl=gr.string();break;case 2:Vr.value=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{typeUrl:(0,helpers_1$g.isSet)(_e.typeUrl)?String(_e.typeUrl):"",value:(0,helpers_1$g.isSet)(_e.value)?(0,helpers_1$g.bytesFromBase64)(_e.value):new Uint8Array}},toJSON(_e){const cr={};return _e.typeUrl!==void 0&&(cr.typeUrl=_e.typeUrl),_e.value!==void 0&&(cr.value=(0,helpers_1$g.base64FromBytes)(_e.value!==void 0?_e.value:new Uint8Array)),cr},fromPartial(_e){const cr=createBaseAny();return cr.typeUrl=_e.typeUrl??"",cr.value=_e.value??new Uint8Array,cr}};var signing$1={},multisig$1={},__createBinding$l=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$l=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$l=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$l(cr,_e,gr);return __setModuleDefault$l(cr,_e),cr};Object.defineProperty(multisig$1,"__esModule",{value:!0}),multisig$1.CompactBitArray=multisig$1.MultiSignature=multisig$1.protobufPackage=void 0;const _m0$f=__importStar$l(minimal),helpers_1$f=helpers;multisig$1.protobufPackage="cosmos.crypto.multisig.v1beta1";function createBaseMultiSignature(){return{signatures:[]}}multisig$1.MultiSignature={encode(_e,cr=_m0$f.Writer.create()){for(const gr of _e.signatures)cr.uint32(10).bytes(gr);return cr},decode(_e,cr){const gr=_e instanceof _m0$f.Reader?_e:new _m0$f.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseMultiSignature();for(;gr.pos>>3){case 1:Vr.signatures.push(gr.bytes());break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{signatures:Array.isArray(_e==null?void 0:_e.signatures)?_e.signatures.map(cr=>(0,helpers_1$f.bytesFromBase64)(cr)):[]}},toJSON(_e){const cr={};return _e.signatures?cr.signatures=_e.signatures.map(gr=>(0,helpers_1$f.base64FromBytes)(gr!==void 0?gr:new Uint8Array)):cr.signatures=[],cr},fromPartial(_e){var gr;const cr=createBaseMultiSignature();return cr.signatures=((gr=_e.signatures)==null?void 0:gr.map(Cr=>Cr))||[],cr}};function createBaseCompactBitArray(){return{extraBitsStored:0,elems:new Uint8Array}}multisig$1.CompactBitArray={encode(_e,cr=_m0$f.Writer.create()){return _e.extraBitsStored!==0&&cr.uint32(8).uint32(_e.extraBitsStored),_e.elems.length!==0&&cr.uint32(18).bytes(_e.elems),cr},decode(_e,cr){const gr=_e instanceof _m0$f.Reader?_e:new _m0$f.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseCompactBitArray();for(;gr.pos>>3){case 1:Vr.extraBitsStored=gr.uint32();break;case 2:Vr.elems=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{extraBitsStored:(0,helpers_1$f.isSet)(_e.extraBitsStored)?Number(_e.extraBitsStored):0,elems:(0,helpers_1$f.isSet)(_e.elems)?(0,helpers_1$f.bytesFromBase64)(_e.elems):new Uint8Array}},toJSON(_e){const cr={};return _e.extraBitsStored!==void 0&&(cr.extraBitsStored=Math.round(_e.extraBitsStored)),_e.elems!==void 0&&(cr.elems=(0,helpers_1$f.base64FromBytes)(_e.elems!==void 0?_e.elems:new Uint8Array)),cr},fromPartial(_e){const cr=createBaseCompactBitArray();return cr.extraBitsStored=_e.extraBitsStored??0,cr.elems=_e.elems??new Uint8Array,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(eo,Wt,St,Ot){Ot===void 0&&(Ot=St);var uo=Object.getOwnPropertyDescriptor(Wt,St);(!uo||("get"in uo?!Wt.__esModule:uo.writable||uo.configurable))&&(uo={enumerable:!0,get:function(){return Wt[St]}}),Object.defineProperty(eo,Ot,uo)}:function(eo,Wt,St,Ot){Ot===void 0&&(Ot=St),eo[Ot]=Wt[St]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(eo,Wt){Object.defineProperty(eo,"default",{enumerable:!0,value:Wt})}:function(eo,Wt){eo.default=Wt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(eo){if(eo&&eo.__esModule)return eo;var Wt={};if(eo!=null)for(var St in eo)St!=="default"&&Object.prototype.hasOwnProperty.call(eo,St)&&cr(Wt,eo,St);return gr(Wt,eo),Wt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.SignatureDescriptor_Data_Multi=_e.SignatureDescriptor_Data_Single=_e.SignatureDescriptor_Data=_e.SignatureDescriptor=_e.SignatureDescriptors=_e.signModeToJSON=_e.signModeFromJSON=_e.SignMode=_e.protobufPackage=void 0;const Vr=multisig$1,tt=any,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.tx.signing.v1beta1";var dt;(function(eo){eo[eo.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",eo[eo.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",eo[eo.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",eo[eo.SIGN_MODE_DIRECT_AUX=3]="SIGN_MODE_DIRECT_AUX",eo[eo.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",eo[eo.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",eo[eo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dt=_e.SignMode||(_e.SignMode={}));function kt(eo){switch(eo){case 0:case"SIGN_MODE_UNSPECIFIED":return dt.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return dt.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return dt.SIGN_MODE_TEXTUAL;case 3:case"SIGN_MODE_DIRECT_AUX":return dt.SIGN_MODE_DIRECT_AUX;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return dt.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return dt.SIGN_MODE_EIP_191;case-1:case"UNRECOGNIZED":default:return dt.UNRECOGNIZED}}_e.signModeFromJSON=kt;function qt(eo){switch(eo){case dt.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case dt.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case dt.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case dt.SIGN_MODE_DIRECT_AUX:return"SIGN_MODE_DIRECT_AUX";case dt.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case dt.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case dt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.signModeToJSON=qt;function ro(){return{signatures:[]}}_e.SignatureDescriptors={encode(eo,Wt=st.Writer.create()){for(const St of eo.signatures)_e.SignatureDescriptor.encode(St,Wt.uint32(10).fork()).ldelim();return Wt},decode(eo,Wt){const St=eo instanceof st.Reader?eo:new st.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=ro();for(;St.pos>>3){case 1:uo.signatures.push(_e.SignatureDescriptor.decode(St,St.uint32()));break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{signatures:Array.isArray(eo==null?void 0:eo.signatures)?eo.signatures.map(Wt=>_e.SignatureDescriptor.fromJSON(Wt)):[]}},toJSON(eo){const Wt={};return eo.signatures?Wt.signatures=eo.signatures.map(St=>St?_e.SignatureDescriptor.toJSON(St):void 0):Wt.signatures=[],Wt},fromPartial(eo){var St;const Wt=ro();return Wt.signatures=((St=eo.signatures)==null?void 0:St.map(Ot=>_e.SignatureDescriptor.fromPartial(Ot)))||[],Wt}};function ht(){return{publicKey:void 0,data:void 0,sequence:nt.Long.UZERO}}_e.SignatureDescriptor={encode(eo,Wt=st.Writer.create()){return eo.publicKey!==void 0&&tt.Any.encode(eo.publicKey,Wt.uint32(10).fork()).ldelim(),eo.data!==void 0&&_e.SignatureDescriptor_Data.encode(eo.data,Wt.uint32(18).fork()).ldelim(),eo.sequence.isZero()||Wt.uint32(24).uint64(eo.sequence),Wt},decode(eo,Wt){const St=eo instanceof st.Reader?eo:new st.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=ht();for(;St.pos>>3){case 1:uo.publicKey=tt.Any.decode(St,St.uint32());break;case 2:uo.data=_e.SignatureDescriptor_Data.decode(St,St.uint32());break;case 3:uo.sequence=St.uint64();break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{publicKey:(0,nt.isSet)(eo.publicKey)?tt.Any.fromJSON(eo.publicKey):void 0,data:(0,nt.isSet)(eo.data)?_e.SignatureDescriptor_Data.fromJSON(eo.data):void 0,sequence:(0,nt.isSet)(eo.sequence)?nt.Long.fromValue(eo.sequence):nt.Long.UZERO}},toJSON(eo){const Wt={};return eo.publicKey!==void 0&&(Wt.publicKey=eo.publicKey?tt.Any.toJSON(eo.publicKey):void 0),eo.data!==void 0&&(Wt.data=eo.data?_e.SignatureDescriptor_Data.toJSON(eo.data):void 0),eo.sequence!==void 0&&(Wt.sequence=(eo.sequence||nt.Long.UZERO).toString()),Wt},fromPartial(eo){const Wt=ht();return Wt.publicKey=eo.publicKey!==void 0&&eo.publicKey!==null?tt.Any.fromPartial(eo.publicKey):void 0,Wt.data=eo.data!==void 0&&eo.data!==null?_e.SignatureDescriptor_Data.fromPartial(eo.data):void 0,Wt.sequence=eo.sequence!==void 0&&eo.sequence!==null?nt.Long.fromValue(eo.sequence):nt.Long.UZERO,Wt}};function po(){return{single:void 0,multi:void 0}}_e.SignatureDescriptor_Data={encode(eo,Wt=st.Writer.create()){return eo.single!==void 0&&_e.SignatureDescriptor_Data_Single.encode(eo.single,Wt.uint32(10).fork()).ldelim(),eo.multi!==void 0&&_e.SignatureDescriptor_Data_Multi.encode(eo.multi,Wt.uint32(18).fork()).ldelim(),Wt},decode(eo,Wt){const St=eo instanceof st.Reader?eo:new st.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=po();for(;St.pos>>3){case 1:uo.single=_e.SignatureDescriptor_Data_Single.decode(St,St.uint32());break;case 2:uo.multi=_e.SignatureDescriptor_Data_Multi.decode(St,St.uint32());break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{single:(0,nt.isSet)(eo.single)?_e.SignatureDescriptor_Data_Single.fromJSON(eo.single):void 0,multi:(0,nt.isSet)(eo.multi)?_e.SignatureDescriptor_Data_Multi.fromJSON(eo.multi):void 0}},toJSON(eo){const Wt={};return eo.single!==void 0&&(Wt.single=eo.single?_e.SignatureDescriptor_Data_Single.toJSON(eo.single):void 0),eo.multi!==void 0&&(Wt.multi=eo.multi?_e.SignatureDescriptor_Data_Multi.toJSON(eo.multi):void 0),Wt},fromPartial(eo){const Wt=po();return Wt.single=eo.single!==void 0&&eo.single!==null?_e.SignatureDescriptor_Data_Single.fromPartial(eo.single):void 0,Wt.multi=eo.multi!==void 0&&eo.multi!==null?_e.SignatureDescriptor_Data_Multi.fromPartial(eo.multi):void 0,Wt}};function no(){return{mode:0,signature:new Uint8Array}}_e.SignatureDescriptor_Data_Single={encode(eo,Wt=st.Writer.create()){return eo.mode!==0&&Wt.uint32(8).int32(eo.mode),eo.signature.length!==0&&Wt.uint32(18).bytes(eo.signature),Wt},decode(eo,Wt){const St=eo instanceof st.Reader?eo:new st.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=no();for(;St.pos>>3){case 1:uo.mode=St.int32();break;case 2:uo.signature=St.bytes();break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{mode:(0,nt.isSet)(eo.mode)?kt(eo.mode):0,signature:(0,nt.isSet)(eo.signature)?(0,nt.bytesFromBase64)(eo.signature):new Uint8Array}},toJSON(eo){const Wt={};return eo.mode!==void 0&&(Wt.mode=qt(eo.mode)),eo.signature!==void 0&&(Wt.signature=(0,nt.base64FromBytes)(eo.signature!==void 0?eo.signature:new Uint8Array)),Wt},fromPartial(eo){const Wt=no();return Wt.mode=eo.mode??0,Wt.signature=eo.signature??new Uint8Array,Wt}};function Nt(){return{bitarray:void 0,signatures:[]}}_e.SignatureDescriptor_Data_Multi={encode(eo,Wt=st.Writer.create()){eo.bitarray!==void 0&&Vr.CompactBitArray.encode(eo.bitarray,Wt.uint32(10).fork()).ldelim();for(const St of eo.signatures)_e.SignatureDescriptor_Data.encode(St,Wt.uint32(18).fork()).ldelim();return Wt},decode(eo,Wt){const St=eo instanceof st.Reader?eo:new st.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=Nt();for(;St.pos>>3){case 1:uo.bitarray=Vr.CompactBitArray.decode(St,St.uint32());break;case 2:uo.signatures.push(_e.SignatureDescriptor_Data.decode(St,St.uint32()));break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{bitarray:(0,nt.isSet)(eo.bitarray)?Vr.CompactBitArray.fromJSON(eo.bitarray):void 0,signatures:Array.isArray(eo==null?void 0:eo.signatures)?eo.signatures.map(Wt=>_e.SignatureDescriptor_Data.fromJSON(Wt)):[]}},toJSON(eo){const Wt={};return eo.bitarray!==void 0&&(Wt.bitarray=eo.bitarray?Vr.CompactBitArray.toJSON(eo.bitarray):void 0),eo.signatures?Wt.signatures=eo.signatures.map(St=>St?_e.SignatureDescriptor_Data.toJSON(St):void 0):Wt.signatures=[],Wt},fromPartial(eo){var St;const Wt=Nt();return Wt.bitarray=eo.bitarray!==void 0&&eo.bitarray!==null?Vr.CompactBitArray.fromPartial(eo.bitarray):void 0,Wt.signatures=((St=eo.signatures)==null?void 0:St.map(Ot=>_e.SignatureDescriptor_Data.fromPartial(Ot)))||[],Wt}}}(signing$1);var coin$1={},__createBinding$k=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$k=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$k=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$k(cr,_e,gr);return __setModuleDefault$k(cr,_e),cr};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$e=__importStar$k(minimal),helpers_1$e=helpers;coin$1.protobufPackage="cosmos.base.v1beta1";function createBaseCoin(){return{denom:"",amount:""}}coin$1.Coin={encode(_e,cr=_m0$e.Writer.create()){return _e.denom!==""&&cr.uint32(10).string(_e.denom),_e.amount!==""&&cr.uint32(18).string(_e.amount),cr},decode(_e,cr){const gr=_e instanceof _m0$e.Reader?_e:new _m0$e.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseCoin();for(;gr.pos>>3){case 1:Vr.denom=gr.string();break;case 2:Vr.amount=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{denom:(0,helpers_1$e.isSet)(_e.denom)?String(_e.denom):"",amount:(0,helpers_1$e.isSet)(_e.amount)?String(_e.amount):""}},toJSON(_e){const cr={};return _e.denom!==void 0&&(cr.denom=_e.denom),_e.amount!==void 0&&(cr.amount=_e.amount),cr},fromPartial(_e){const cr=createBaseCoin();return cr.denom=_e.denom??"",cr.amount=_e.amount??"",cr}};function createBaseDecCoin(){return{denom:"",amount:""}}coin$1.DecCoin={encode(_e,cr=_m0$e.Writer.create()){return _e.denom!==""&&cr.uint32(10).string(_e.denom),_e.amount!==""&&cr.uint32(18).string(_e.amount),cr},decode(_e,cr){const gr=_e instanceof _m0$e.Reader?_e:new _m0$e.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseDecCoin();for(;gr.pos>>3){case 1:Vr.denom=gr.string();break;case 2:Vr.amount=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{denom:(0,helpers_1$e.isSet)(_e.denom)?String(_e.denom):"",amount:(0,helpers_1$e.isSet)(_e.amount)?String(_e.amount):""}},toJSON(_e){const cr={};return _e.denom!==void 0&&(cr.denom=_e.denom),_e.amount!==void 0&&(cr.amount=_e.amount),cr},fromPartial(_e){const cr=createBaseDecCoin();return cr.denom=_e.denom??"",cr.amount=_e.amount??"",cr}};function createBaseIntProto(){return{int:""}}coin$1.IntProto={encode(_e,cr=_m0$e.Writer.create()){return _e.int!==""&&cr.uint32(10).string(_e.int),cr},decode(_e,cr){const gr=_e instanceof _m0$e.Reader?_e:new _m0$e.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseIntProto();for(;gr.pos>>3){case 1:Vr.int=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{int:(0,helpers_1$e.isSet)(_e.int)?String(_e.int):""}},toJSON(_e){const cr={};return _e.int!==void 0&&(cr.int=_e.int),cr},fromPartial(_e){const cr=createBaseIntProto();return cr.int=_e.int??"",cr}};function createBaseDecProto(){return{dec:""}}coin$1.DecProto={encode(_e,cr=_m0$e.Writer.create()){return _e.dec!==""&&cr.uint32(10).string(_e.dec),cr},decode(_e,cr){const gr=_e instanceof _m0$e.Reader?_e:new _m0$e.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseDecProto();for(;gr.pos>>3){case 1:Vr.dec=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{dec:(0,helpers_1$e.isSet)(_e.dec)?String(_e.dec):""}},toJSON(_e){const cr={};return _e.dec!==void 0&&(cr.dec=_e.dec),cr},fromPartial(_e){const cr=createBaseDecProto();return cr.dec=_e.dec??"",cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(oo,Ro,pt,lo){lo===void 0&&(lo=pt);var so=Object.getOwnPropertyDescriptor(Ro,pt);(!so||("get"in so?!Ro.__esModule:so.writable||so.configurable))&&(so={enumerable:!0,get:function(){return Ro[pt]}}),Object.defineProperty(oo,lo,so)}:function(oo,Ro,pt,lo){lo===void 0&&(lo=pt),oo[lo]=Ro[pt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(oo,Ro){Object.defineProperty(oo,"default",{enumerable:!0,value:Ro})}:function(oo,Ro){oo.default=Ro}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(oo){if(oo&&oo.__esModule)return oo;var Ro={};if(oo!=null)for(var pt in oo)pt!=="default"&&Object.prototype.hasOwnProperty.call(oo,pt)&&cr(Ro,oo,pt);return gr(Ro,oo),Ro};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AuxSignerData=_e.Tip=_e.Fee=_e.ModeInfo_Multi=_e.ModeInfo_Single=_e.ModeInfo=_e.SignerInfo=_e.AuthInfo=_e.TxBody=_e.SignDocDirectAux=_e.SignDoc=_e.TxRaw=_e.Tx=_e.protobufPackage=void 0;const Vr=any,tt=signing$1,nt=multisig$1,st=coin$1,dt=helpers,kt=Cr(minimal);_e.protobufPackage="cosmos.tx.v1beta1";function qt(){return{body:void 0,authInfo:void 0,signatures:[]}}_e.Tx={encode(oo,Ro=kt.Writer.create()){oo.body!==void 0&&_e.TxBody.encode(oo.body,Ro.uint32(10).fork()).ldelim(),oo.authInfo!==void 0&&_e.AuthInfo.encode(oo.authInfo,Ro.uint32(18).fork()).ldelim();for(const pt of oo.signatures)Ro.uint32(26).bytes(pt);return Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=qt();for(;pt.pos>>3){case 1:so.body=_e.TxBody.decode(pt,pt.uint32());break;case 2:so.authInfo=_e.AuthInfo.decode(pt,pt.uint32());break;case 3:so.signatures.push(pt.bytes());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{body:(0,dt.isSet)(oo.body)?_e.TxBody.fromJSON(oo.body):void 0,authInfo:(0,dt.isSet)(oo.authInfo)?_e.AuthInfo.fromJSON(oo.authInfo):void 0,signatures:Array.isArray(oo==null?void 0:oo.signatures)?oo.signatures.map(Ro=>(0,dt.bytesFromBase64)(Ro)):[]}},toJSON(oo){const Ro={};return oo.body!==void 0&&(Ro.body=oo.body?_e.TxBody.toJSON(oo.body):void 0),oo.authInfo!==void 0&&(Ro.authInfo=oo.authInfo?_e.AuthInfo.toJSON(oo.authInfo):void 0),oo.signatures?Ro.signatures=oo.signatures.map(pt=>(0,dt.base64FromBytes)(pt!==void 0?pt:new Uint8Array)):Ro.signatures=[],Ro},fromPartial(oo){var pt;const Ro=qt();return Ro.body=oo.body!==void 0&&oo.body!==null?_e.TxBody.fromPartial(oo.body):void 0,Ro.authInfo=oo.authInfo!==void 0&&oo.authInfo!==null?_e.AuthInfo.fromPartial(oo.authInfo):void 0,Ro.signatures=((pt=oo.signatures)==null?void 0:pt.map(lo=>lo))||[],Ro}};function ro(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}_e.TxRaw={encode(oo,Ro=kt.Writer.create()){oo.bodyBytes.length!==0&&Ro.uint32(10).bytes(oo.bodyBytes),oo.authInfoBytes.length!==0&&Ro.uint32(18).bytes(oo.authInfoBytes);for(const pt of oo.signatures)Ro.uint32(26).bytes(pt);return Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=ro();for(;pt.pos>>3){case 1:so.bodyBytes=pt.bytes();break;case 2:so.authInfoBytes=pt.bytes();break;case 3:so.signatures.push(pt.bytes());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{bodyBytes:(0,dt.isSet)(oo.bodyBytes)?(0,dt.bytesFromBase64)(oo.bodyBytes):new Uint8Array,authInfoBytes:(0,dt.isSet)(oo.authInfoBytes)?(0,dt.bytesFromBase64)(oo.authInfoBytes):new Uint8Array,signatures:Array.isArray(oo==null?void 0:oo.signatures)?oo.signatures.map(Ro=>(0,dt.bytesFromBase64)(Ro)):[]}},toJSON(oo){const Ro={};return oo.bodyBytes!==void 0&&(Ro.bodyBytes=(0,dt.base64FromBytes)(oo.bodyBytes!==void 0?oo.bodyBytes:new Uint8Array)),oo.authInfoBytes!==void 0&&(Ro.authInfoBytes=(0,dt.base64FromBytes)(oo.authInfoBytes!==void 0?oo.authInfoBytes:new Uint8Array)),oo.signatures?Ro.signatures=oo.signatures.map(pt=>(0,dt.base64FromBytes)(pt!==void 0?pt:new Uint8Array)):Ro.signatures=[],Ro},fromPartial(oo){var pt;const Ro=ro();return Ro.bodyBytes=oo.bodyBytes??new Uint8Array,Ro.authInfoBytes=oo.authInfoBytes??new Uint8Array,Ro.signatures=((pt=oo.signatures)==null?void 0:pt.map(lo=>lo))||[],Ro}};function ht(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:dt.Long.UZERO}}_e.SignDoc={encode(oo,Ro=kt.Writer.create()){return oo.bodyBytes.length!==0&&Ro.uint32(10).bytes(oo.bodyBytes),oo.authInfoBytes.length!==0&&Ro.uint32(18).bytes(oo.authInfoBytes),oo.chainId!==""&&Ro.uint32(26).string(oo.chainId),oo.accountNumber.isZero()||Ro.uint32(32).uint64(oo.accountNumber),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=ht();for(;pt.pos>>3){case 1:so.bodyBytes=pt.bytes();break;case 2:so.authInfoBytes=pt.bytes();break;case 3:so.chainId=pt.string();break;case 4:so.accountNumber=pt.uint64();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{bodyBytes:(0,dt.isSet)(oo.bodyBytes)?(0,dt.bytesFromBase64)(oo.bodyBytes):new Uint8Array,authInfoBytes:(0,dt.isSet)(oo.authInfoBytes)?(0,dt.bytesFromBase64)(oo.authInfoBytes):new Uint8Array,chainId:(0,dt.isSet)(oo.chainId)?String(oo.chainId):"",accountNumber:(0,dt.isSet)(oo.accountNumber)?dt.Long.fromValue(oo.accountNumber):dt.Long.UZERO}},toJSON(oo){const Ro={};return oo.bodyBytes!==void 0&&(Ro.bodyBytes=(0,dt.base64FromBytes)(oo.bodyBytes!==void 0?oo.bodyBytes:new Uint8Array)),oo.authInfoBytes!==void 0&&(Ro.authInfoBytes=(0,dt.base64FromBytes)(oo.authInfoBytes!==void 0?oo.authInfoBytes:new Uint8Array)),oo.chainId!==void 0&&(Ro.chainId=oo.chainId),oo.accountNumber!==void 0&&(Ro.accountNumber=(oo.accountNumber||dt.Long.UZERO).toString()),Ro},fromPartial(oo){const Ro=ht();return Ro.bodyBytes=oo.bodyBytes??new Uint8Array,Ro.authInfoBytes=oo.authInfoBytes??new Uint8Array,Ro.chainId=oo.chainId??"",Ro.accountNumber=oo.accountNumber!==void 0&&oo.accountNumber!==null?dt.Long.fromValue(oo.accountNumber):dt.Long.UZERO,Ro}};function po(){return{bodyBytes:new Uint8Array,publicKey:void 0,chainId:"",accountNumber:dt.Long.UZERO,sequence:dt.Long.UZERO,tip:void 0}}_e.SignDocDirectAux={encode(oo,Ro=kt.Writer.create()){return oo.bodyBytes.length!==0&&Ro.uint32(10).bytes(oo.bodyBytes),oo.publicKey!==void 0&&Vr.Any.encode(oo.publicKey,Ro.uint32(18).fork()).ldelim(),oo.chainId!==""&&Ro.uint32(26).string(oo.chainId),oo.accountNumber.isZero()||Ro.uint32(32).uint64(oo.accountNumber),oo.sequence.isZero()||Ro.uint32(40).uint64(oo.sequence),oo.tip!==void 0&&_e.Tip.encode(oo.tip,Ro.uint32(50).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=po();for(;pt.pos>>3){case 1:so.bodyBytes=pt.bytes();break;case 2:so.publicKey=Vr.Any.decode(pt,pt.uint32());break;case 3:so.chainId=pt.string();break;case 4:so.accountNumber=pt.uint64();break;case 5:so.sequence=pt.uint64();break;case 6:so.tip=_e.Tip.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{bodyBytes:(0,dt.isSet)(oo.bodyBytes)?(0,dt.bytesFromBase64)(oo.bodyBytes):new Uint8Array,publicKey:(0,dt.isSet)(oo.publicKey)?Vr.Any.fromJSON(oo.publicKey):void 0,chainId:(0,dt.isSet)(oo.chainId)?String(oo.chainId):"",accountNumber:(0,dt.isSet)(oo.accountNumber)?dt.Long.fromValue(oo.accountNumber):dt.Long.UZERO,sequence:(0,dt.isSet)(oo.sequence)?dt.Long.fromValue(oo.sequence):dt.Long.UZERO,tip:(0,dt.isSet)(oo.tip)?_e.Tip.fromJSON(oo.tip):void 0}},toJSON(oo){const Ro={};return oo.bodyBytes!==void 0&&(Ro.bodyBytes=(0,dt.base64FromBytes)(oo.bodyBytes!==void 0?oo.bodyBytes:new Uint8Array)),oo.publicKey!==void 0&&(Ro.publicKey=oo.publicKey?Vr.Any.toJSON(oo.publicKey):void 0),oo.chainId!==void 0&&(Ro.chainId=oo.chainId),oo.accountNumber!==void 0&&(Ro.accountNumber=(oo.accountNumber||dt.Long.UZERO).toString()),oo.sequence!==void 0&&(Ro.sequence=(oo.sequence||dt.Long.UZERO).toString()),oo.tip!==void 0&&(Ro.tip=oo.tip?_e.Tip.toJSON(oo.tip):void 0),Ro},fromPartial(oo){const Ro=po();return Ro.bodyBytes=oo.bodyBytes??new Uint8Array,Ro.publicKey=oo.publicKey!==void 0&&oo.publicKey!==null?Vr.Any.fromPartial(oo.publicKey):void 0,Ro.chainId=oo.chainId??"",Ro.accountNumber=oo.accountNumber!==void 0&&oo.accountNumber!==null?dt.Long.fromValue(oo.accountNumber):dt.Long.UZERO,Ro.sequence=oo.sequence!==void 0&&oo.sequence!==null?dt.Long.fromValue(oo.sequence):dt.Long.UZERO,Ro.tip=oo.tip!==void 0&&oo.tip!==null?_e.Tip.fromPartial(oo.tip):void 0,Ro}};function no(){return{messages:[],memo:"",timeoutHeight:dt.Long.UZERO,extensionOptions:[],nonCriticalExtensionOptions:[]}}_e.TxBody={encode(oo,Ro=kt.Writer.create()){for(const pt of oo.messages)Vr.Any.encode(pt,Ro.uint32(10).fork()).ldelim();oo.memo!==""&&Ro.uint32(18).string(oo.memo),oo.timeoutHeight.isZero()||Ro.uint32(24).uint64(oo.timeoutHeight);for(const pt of oo.extensionOptions)Vr.Any.encode(pt,Ro.uint32(8186).fork()).ldelim();for(const pt of oo.nonCriticalExtensionOptions)Vr.Any.encode(pt,Ro.uint32(16378).fork()).ldelim();return Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=no();for(;pt.pos>>3){case 1:so.messages.push(Vr.Any.decode(pt,pt.uint32()));break;case 2:so.memo=pt.string();break;case 3:so.timeoutHeight=pt.uint64();break;case 1023:so.extensionOptions.push(Vr.Any.decode(pt,pt.uint32()));break;case 2047:so.nonCriticalExtensionOptions.push(Vr.Any.decode(pt,pt.uint32()));break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{messages:Array.isArray(oo==null?void 0:oo.messages)?oo.messages.map(Ro=>Vr.Any.fromJSON(Ro)):[],memo:(0,dt.isSet)(oo.memo)?String(oo.memo):"",timeoutHeight:(0,dt.isSet)(oo.timeoutHeight)?dt.Long.fromValue(oo.timeoutHeight):dt.Long.UZERO,extensionOptions:Array.isArray(oo==null?void 0:oo.extensionOptions)?oo.extensionOptions.map(Ro=>Vr.Any.fromJSON(Ro)):[],nonCriticalExtensionOptions:Array.isArray(oo==null?void 0:oo.nonCriticalExtensionOptions)?oo.nonCriticalExtensionOptions.map(Ro=>Vr.Any.fromJSON(Ro)):[]}},toJSON(oo){const Ro={};return oo.messages?Ro.messages=oo.messages.map(pt=>pt?Vr.Any.toJSON(pt):void 0):Ro.messages=[],oo.memo!==void 0&&(Ro.memo=oo.memo),oo.timeoutHeight!==void 0&&(Ro.timeoutHeight=(oo.timeoutHeight||dt.Long.UZERO).toString()),oo.extensionOptions?Ro.extensionOptions=oo.extensionOptions.map(pt=>pt?Vr.Any.toJSON(pt):void 0):Ro.extensionOptions=[],oo.nonCriticalExtensionOptions?Ro.nonCriticalExtensionOptions=oo.nonCriticalExtensionOptions.map(pt=>pt?Vr.Any.toJSON(pt):void 0):Ro.nonCriticalExtensionOptions=[],Ro},fromPartial(oo){var pt,lo,so;const Ro=no();return Ro.messages=((pt=oo.messages)==null?void 0:pt.map(wo=>Vr.Any.fromPartial(wo)))||[],Ro.memo=oo.memo??"",Ro.timeoutHeight=oo.timeoutHeight!==void 0&&oo.timeoutHeight!==null?dt.Long.fromValue(oo.timeoutHeight):dt.Long.UZERO,Ro.extensionOptions=((lo=oo.extensionOptions)==null?void 0:lo.map(wo=>Vr.Any.fromPartial(wo)))||[],Ro.nonCriticalExtensionOptions=((so=oo.nonCriticalExtensionOptions)==null?void 0:so.map(wo=>Vr.Any.fromPartial(wo)))||[],Ro}};function Nt(){return{signerInfos:[],fee:void 0,tip:void 0}}_e.AuthInfo={encode(oo,Ro=kt.Writer.create()){for(const pt of oo.signerInfos)_e.SignerInfo.encode(pt,Ro.uint32(10).fork()).ldelim();return oo.fee!==void 0&&_e.Fee.encode(oo.fee,Ro.uint32(18).fork()).ldelim(),oo.tip!==void 0&&_e.Tip.encode(oo.tip,Ro.uint32(26).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=Nt();for(;pt.pos>>3){case 1:so.signerInfos.push(_e.SignerInfo.decode(pt,pt.uint32()));break;case 2:so.fee=_e.Fee.decode(pt,pt.uint32());break;case 3:so.tip=_e.Tip.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{signerInfos:Array.isArray(oo==null?void 0:oo.signerInfos)?oo.signerInfos.map(Ro=>_e.SignerInfo.fromJSON(Ro)):[],fee:(0,dt.isSet)(oo.fee)?_e.Fee.fromJSON(oo.fee):void 0,tip:(0,dt.isSet)(oo.tip)?_e.Tip.fromJSON(oo.tip):void 0}},toJSON(oo){const Ro={};return oo.signerInfos?Ro.signerInfos=oo.signerInfos.map(pt=>pt?_e.SignerInfo.toJSON(pt):void 0):Ro.signerInfos=[],oo.fee!==void 0&&(Ro.fee=oo.fee?_e.Fee.toJSON(oo.fee):void 0),oo.tip!==void 0&&(Ro.tip=oo.tip?_e.Tip.toJSON(oo.tip):void 0),Ro},fromPartial(oo){var pt;const Ro=Nt();return Ro.signerInfos=((pt=oo.signerInfos)==null?void 0:pt.map(lo=>_e.SignerInfo.fromPartial(lo)))||[],Ro.fee=oo.fee!==void 0&&oo.fee!==null?_e.Fee.fromPartial(oo.fee):void 0,Ro.tip=oo.tip!==void 0&&oo.tip!==null?_e.Tip.fromPartial(oo.tip):void 0,Ro}};function eo(){return{publicKey:void 0,modeInfo:void 0,sequence:dt.Long.UZERO}}_e.SignerInfo={encode(oo,Ro=kt.Writer.create()){return oo.publicKey!==void 0&&Vr.Any.encode(oo.publicKey,Ro.uint32(10).fork()).ldelim(),oo.modeInfo!==void 0&&_e.ModeInfo.encode(oo.modeInfo,Ro.uint32(18).fork()).ldelim(),oo.sequence.isZero()||Ro.uint32(24).uint64(oo.sequence),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=eo();for(;pt.pos>>3){case 1:so.publicKey=Vr.Any.decode(pt,pt.uint32());break;case 2:so.modeInfo=_e.ModeInfo.decode(pt,pt.uint32());break;case 3:so.sequence=pt.uint64();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{publicKey:(0,dt.isSet)(oo.publicKey)?Vr.Any.fromJSON(oo.publicKey):void 0,modeInfo:(0,dt.isSet)(oo.modeInfo)?_e.ModeInfo.fromJSON(oo.modeInfo):void 0,sequence:(0,dt.isSet)(oo.sequence)?dt.Long.fromValue(oo.sequence):dt.Long.UZERO}},toJSON(oo){const Ro={};return oo.publicKey!==void 0&&(Ro.publicKey=oo.publicKey?Vr.Any.toJSON(oo.publicKey):void 0),oo.modeInfo!==void 0&&(Ro.modeInfo=oo.modeInfo?_e.ModeInfo.toJSON(oo.modeInfo):void 0),oo.sequence!==void 0&&(Ro.sequence=(oo.sequence||dt.Long.UZERO).toString()),Ro},fromPartial(oo){const Ro=eo();return Ro.publicKey=oo.publicKey!==void 0&&oo.publicKey!==null?Vr.Any.fromPartial(oo.publicKey):void 0,Ro.modeInfo=oo.modeInfo!==void 0&&oo.modeInfo!==null?_e.ModeInfo.fromPartial(oo.modeInfo):void 0,Ro.sequence=oo.sequence!==void 0&&oo.sequence!==null?dt.Long.fromValue(oo.sequence):dt.Long.UZERO,Ro}};function Wt(){return{single:void 0,multi:void 0}}_e.ModeInfo={encode(oo,Ro=kt.Writer.create()){return oo.single!==void 0&&_e.ModeInfo_Single.encode(oo.single,Ro.uint32(10).fork()).ldelim(),oo.multi!==void 0&&_e.ModeInfo_Multi.encode(oo.multi,Ro.uint32(18).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=Wt();for(;pt.pos>>3){case 1:so.single=_e.ModeInfo_Single.decode(pt,pt.uint32());break;case 2:so.multi=_e.ModeInfo_Multi.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{single:(0,dt.isSet)(oo.single)?_e.ModeInfo_Single.fromJSON(oo.single):void 0,multi:(0,dt.isSet)(oo.multi)?_e.ModeInfo_Multi.fromJSON(oo.multi):void 0}},toJSON(oo){const Ro={};return oo.single!==void 0&&(Ro.single=oo.single?_e.ModeInfo_Single.toJSON(oo.single):void 0),oo.multi!==void 0&&(Ro.multi=oo.multi?_e.ModeInfo_Multi.toJSON(oo.multi):void 0),Ro},fromPartial(oo){const Ro=Wt();return Ro.single=oo.single!==void 0&&oo.single!==null?_e.ModeInfo_Single.fromPartial(oo.single):void 0,Ro.multi=oo.multi!==void 0&&oo.multi!==null?_e.ModeInfo_Multi.fromPartial(oo.multi):void 0,Ro}};function St(){return{mode:0}}_e.ModeInfo_Single={encode(oo,Ro=kt.Writer.create()){return oo.mode!==0&&Ro.uint32(8).int32(oo.mode),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=St();for(;pt.pos>>3){case 1:so.mode=pt.int32();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{mode:(0,dt.isSet)(oo.mode)?(0,tt.signModeFromJSON)(oo.mode):0}},toJSON(oo){const Ro={};return oo.mode!==void 0&&(Ro.mode=(0,tt.signModeToJSON)(oo.mode)),Ro},fromPartial(oo){const Ro=St();return Ro.mode=oo.mode??0,Ro}};function Ot(){return{bitarray:void 0,modeInfos:[]}}_e.ModeInfo_Multi={encode(oo,Ro=kt.Writer.create()){oo.bitarray!==void 0&&nt.CompactBitArray.encode(oo.bitarray,Ro.uint32(10).fork()).ldelim();for(const pt of oo.modeInfos)_e.ModeInfo.encode(pt,Ro.uint32(18).fork()).ldelim();return Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=Ot();for(;pt.pos>>3){case 1:so.bitarray=nt.CompactBitArray.decode(pt,pt.uint32());break;case 2:so.modeInfos.push(_e.ModeInfo.decode(pt,pt.uint32()));break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{bitarray:(0,dt.isSet)(oo.bitarray)?nt.CompactBitArray.fromJSON(oo.bitarray):void 0,modeInfos:Array.isArray(oo==null?void 0:oo.modeInfos)?oo.modeInfos.map(Ro=>_e.ModeInfo.fromJSON(Ro)):[]}},toJSON(oo){const Ro={};return oo.bitarray!==void 0&&(Ro.bitarray=oo.bitarray?nt.CompactBitArray.toJSON(oo.bitarray):void 0),oo.modeInfos?Ro.modeInfos=oo.modeInfos.map(pt=>pt?_e.ModeInfo.toJSON(pt):void 0):Ro.modeInfos=[],Ro},fromPartial(oo){var pt;const Ro=Ot();return Ro.bitarray=oo.bitarray!==void 0&&oo.bitarray!==null?nt.CompactBitArray.fromPartial(oo.bitarray):void 0,Ro.modeInfos=((pt=oo.modeInfos)==null?void 0:pt.map(lo=>_e.ModeInfo.fromPartial(lo)))||[],Ro}};function uo(){return{amount:[],gasLimit:dt.Long.UZERO,payer:"",granter:""}}_e.Fee={encode(oo,Ro=kt.Writer.create()){for(const pt of oo.amount)st.Coin.encode(pt,Ro.uint32(10).fork()).ldelim();return oo.gasLimit.isZero()||Ro.uint32(16).uint64(oo.gasLimit),oo.payer!==""&&Ro.uint32(26).string(oo.payer),oo.granter!==""&&Ro.uint32(34).string(oo.granter),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=uo();for(;pt.pos>>3){case 1:so.amount.push(st.Coin.decode(pt,pt.uint32()));break;case 2:so.gasLimit=pt.uint64();break;case 3:so.payer=pt.string();break;case 4:so.granter=pt.string();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{amount:Array.isArray(oo==null?void 0:oo.amount)?oo.amount.map(Ro=>st.Coin.fromJSON(Ro)):[],gasLimit:(0,dt.isSet)(oo.gasLimit)?dt.Long.fromValue(oo.gasLimit):dt.Long.UZERO,payer:(0,dt.isSet)(oo.payer)?String(oo.payer):"",granter:(0,dt.isSet)(oo.granter)?String(oo.granter):""}},toJSON(oo){const Ro={};return oo.amount?Ro.amount=oo.amount.map(pt=>pt?st.Coin.toJSON(pt):void 0):Ro.amount=[],oo.gasLimit!==void 0&&(Ro.gasLimit=(oo.gasLimit||dt.Long.UZERO).toString()),oo.payer!==void 0&&(Ro.payer=oo.payer),oo.granter!==void 0&&(Ro.granter=oo.granter),Ro},fromPartial(oo){var pt;const Ro=uo();return Ro.amount=((pt=oo.amount)==null?void 0:pt.map(lo=>st.Coin.fromPartial(lo)))||[],Ro.gasLimit=oo.gasLimit!==void 0&&oo.gasLimit!==null?dt.Long.fromValue(oo.gasLimit):dt.Long.UZERO,Ro.payer=oo.payer??"",Ro.granter=oo.granter??"",Ro}};function go(){return{amount:[],tipper:""}}_e.Tip={encode(oo,Ro=kt.Writer.create()){for(const pt of oo.amount)st.Coin.encode(pt,Ro.uint32(10).fork()).ldelim();return oo.tipper!==""&&Ro.uint32(18).string(oo.tipper),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=go();for(;pt.pos>>3){case 1:so.amount.push(st.Coin.decode(pt,pt.uint32()));break;case 2:so.tipper=pt.string();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{amount:Array.isArray(oo==null?void 0:oo.amount)?oo.amount.map(Ro=>st.Coin.fromJSON(Ro)):[],tipper:(0,dt.isSet)(oo.tipper)?String(oo.tipper):""}},toJSON(oo){const Ro={};return oo.amount?Ro.amount=oo.amount.map(pt=>pt?st.Coin.toJSON(pt):void 0):Ro.amount=[],oo.tipper!==void 0&&(Ro.tipper=oo.tipper),Ro},fromPartial(oo){var pt;const Ro=go();return Ro.amount=((pt=oo.amount)==null?void 0:pt.map(lo=>st.Coin.fromPartial(lo)))||[],Ro.tipper=oo.tipper??"",Ro}};function bo(){return{address:"",signDoc:void 0,mode:0,sig:new Uint8Array}}_e.AuxSignerData={encode(oo,Ro=kt.Writer.create()){return oo.address!==""&&Ro.uint32(10).string(oo.address),oo.signDoc!==void 0&&_e.SignDocDirectAux.encode(oo.signDoc,Ro.uint32(18).fork()).ldelim(),oo.mode!==0&&Ro.uint32(24).int32(oo.mode),oo.sig.length!==0&&Ro.uint32(34).bytes(oo.sig),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=bo();for(;pt.pos>>3){case 1:so.address=pt.string();break;case 2:so.signDoc=_e.SignDocDirectAux.decode(pt,pt.uint32());break;case 3:so.mode=pt.int32();break;case 4:so.sig=pt.bytes();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{address:(0,dt.isSet)(oo.address)?String(oo.address):"",signDoc:(0,dt.isSet)(oo.signDoc)?_e.SignDocDirectAux.fromJSON(oo.signDoc):void 0,mode:(0,dt.isSet)(oo.mode)?(0,tt.signModeFromJSON)(oo.mode):0,sig:(0,dt.isSet)(oo.sig)?(0,dt.bytesFromBase64)(oo.sig):new Uint8Array}},toJSON(oo){const Ro={};return oo.address!==void 0&&(Ro.address=oo.address),oo.signDoc!==void 0&&(Ro.signDoc=oo.signDoc?_e.SignDocDirectAux.toJSON(oo.signDoc):void 0),oo.mode!==void 0&&(Ro.mode=(0,tt.signModeToJSON)(oo.mode)),oo.sig!==void 0&&(Ro.sig=(0,dt.base64FromBytes)(oo.sig!==void 0?oo.sig:new Uint8Array)),Ro},fromPartial(oo){const Ro=bo();return Ro.address=oo.address??"",Ro.signDoc=oo.signDoc!==void 0&&oo.signDoc!==null?_e.SignDocDirectAux.fromPartial(oo.signDoc):void 0,Ro.mode=oo.mode??0,Ro.sig=oo.sig??new Uint8Array,Ro}}}(tx$e),Object.defineProperty(decode,"__esModule",{value:!0}),decode.decodeTxRaw=void 0;const tx_1$g=tx$e;function decodeTxRaw(_e){const cr=tx_1$g.TxRaw.decode(_e);return{authInfo:tx_1$g.AuthInfo.decode(cr.authInfoBytes),body:tx_1$g.TxBody.decode(cr.bodyBytes),signatures:cr.signatures}}decode.decodeTxRaw=decodeTxRaw;var directsecp256k1hdwallet={},build$8={},addresses$1={},build$7={},bip39={},pbkdf2$2={},build$6={},arrays={};Object.defineProperty(arrays,"__esModule",{value:!0}),arrays.arrayContentStartsWith=arrays.arrayContentEquals=void 0;function arrayContentEquals(_e,cr){if(_e.length!==cr.length)return!1;for(let gr=0;gr<_e.length;++gr)if(_e[gr]!==cr[gr])return!1;return!0}arrays.arrayContentEquals=arrayContentEquals;function arrayContentStartsWith(_e,cr){if(_e.lengthsetTimeout(cr,_e))}sleep$1.sleep=sleep;var typechecks={};Object.defineProperty(typechecks,"__esModule",{value:!0}),typechecks.isDefined=typechecks.isUint8Array=typechecks.isNonNullObject=void 0;function isNonNullObject(_e){return typeof _e=="object"&&_e!==null}typechecks.isNonNullObject=isNonNullObject;function isUint8Array(_e){return!(!isNonNullObject(_e)||Object.prototype.toString.call(_e)!=="[object Uint8Array]"||typeof Buffer<"u"&&typeof Buffer.isBuffer<"u"&&Buffer.isBuffer(_e))}typechecks.isUint8Array=isUint8Array;function isDefined$1(_e){return _e!==void 0}typechecks.isDefined=isDefined$1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.isUint8Array=_e.isNonNullObject=_e.isDefined=_e.sleep=_e.assertDefinedAndNotNull=_e.assertDefined=_e.assert=_e.arrayContentStartsWith=_e.arrayContentEquals=void 0;var cr=arrays;Object.defineProperty(_e,"arrayContentEquals",{enumerable:!0,get:function(){return cr.arrayContentEquals}}),Object.defineProperty(_e,"arrayContentStartsWith",{enumerable:!0,get:function(){return cr.arrayContentStartsWith}});var gr=assert$k;Object.defineProperty(_e,"assert",{enumerable:!0,get:function(){return gr.assert}}),Object.defineProperty(_e,"assertDefined",{enumerable:!0,get:function(){return gr.assertDefined}}),Object.defineProperty(_e,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return gr.assertDefinedAndNotNull}});var Cr=sleep$1;Object.defineProperty(_e,"sleep",{enumerable:!0,get:function(){return Cr.sleep}});var Vr=typechecks;Object.defineProperty(_e,"isDefined",{enumerable:!0,get:function(){return Vr.isDefined}}),Object.defineProperty(_e,"isNonNullObject",{enumerable:!0,get:function(){return Vr.isNonNullObject}}),Object.defineProperty(_e,"isUint8Array",{enumerable:!0,get:function(){return Vr.isUint8Array}})}(build$6);var pbkdf2$1={},_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$3(_e){if(!Number.isSafeInteger(_e)||_e<0)throw new Error(`positive integer expected, not ${_e}`)}_assert.number=number$3;function bool(_e){if(typeof _e!="boolean")throw new Error(`boolean expected, not ${_e}`)}_assert.bool=bool;function isBytes(_e){return _e instanceof Uint8Array||_e!=null&&typeof _e=="object"&&_e.constructor.name==="Uint8Array"}_assert.isBytes=isBytes;function bytes(_e,...cr){if(!isBytes(_e))throw new Error("Uint8Array expected");if(cr.length>0&&!cr.includes(_e.length))throw new Error(`Uint8Array expected of length ${cr}, not of length=${_e.length}`)}_assert.bytes=bytes;function hash$7(_e){if(typeof _e!="function"||typeof _e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$3(_e.outputLen),number$3(_e.blockLen)}_assert.hash=hash$7;function exists(_e,cr=!0){if(_e.destroyed)throw new Error("Hash instance has been destroyed");if(cr&&_e.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(_e,cr){bytes(_e);const gr=cr.outputLen;if(_e.lengthnew Uint8Array(wo.buffer,wo.byteOffset,wo.byteLength);_e.u8=Vr;const tt=wo=>new Uint32Array(wo.buffer,wo.byteOffset,Math.floor(wo.byteLength/4));_e.u32=tt;const nt=wo=>new DataView(wo.buffer,wo.byteOffset,wo.byteLength);_e.createView=nt;const st=(wo,xt)=>wo<<32-xt|wo>>>xt;_e.rotr=st;const dt=(wo,xt)=>wo<>>32-xt>>>0;_e.rotl=dt,_e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const kt=wo=>wo<<24&4278190080|wo<<8&16711680|wo>>>8&65280|wo>>>24&255;_e.byteSwap=kt,_e.byteSwapIfBE=_e.isLE?wo=>wo:wo=>(0,_e.byteSwap)(wo);function qt(wo){for(let xt=0;xtxt.toString(16).padStart(2,"0"));function ht(wo){(0,gr.bytes)(wo);let xt="";for(let Mt=0;Mt=po._0&&wo<=po._9)return wo-po._0;if(wo>=po._A&&wo<=po._F)return wo-(po._A-10);if(wo>=po._a&&wo<=po._f)return wo-(po._a-10)}function Nt(wo){if(typeof wo!="string")throw new Error("hex string expected, got "+typeof wo);const xt=wo.length,Mt=xt/2;if(xt%2)throw new Error("padded hex string expected, got unpadded hex of length "+xt);const ho=new Uint8Array(Mt);for(let io=0,co=0;io{};_e.nextTick=eo;async function Wt(wo,xt,Mt){let ho=Date.now();for(let io=0;io=0&&cowo().update(Ot(ho)).digest(),Mt=wo();return xt.outputLen=Mt.outputLen,xt.blockLen=Mt.blockLen,xt.create=()=>wo(),xt}_e.wrapConstructor=Ro;function pt(wo){const xt=(ho,io)=>wo(io).update(Ot(ho)).digest(),Mt=wo({});return xt.outputLen=Mt.outputLen,xt.blockLen=Mt.blockLen,xt.create=ho=>wo(ho),xt}_e.wrapConstructorWithOpts=pt;function lo(wo){const xt=(ho,io)=>wo(io).update(Ot(ho)).digest(),Mt=wo({});return xt.outputLen=Mt.outputLen,xt.blockLen=Mt.blockLen,xt.create=ho=>wo(ho),xt}_e.wrapXOFConstructorWithOpts=lo;function so(wo=32){if(cr.crypto&&typeof cr.crypto.getRandomValues=="function")return cr.crypto.getRandomValues(new Uint8Array(wo));throw new Error("crypto.getRandomValues must be defined")}_e.randomBytes=so}(utils$R),function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.hmac=_e.HMAC=void 0;const cr=_assert,gr=utils$R;class Cr extends gr.Hash{constructor(nt,st){super(),this.finished=!1,this.destroyed=!1,(0,cr.hash)(nt);const dt=(0,gr.toBytes)(st);if(this.iHash=nt.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 kt=this.blockLen,qt=new Uint8Array(kt);qt.set(dt.length>kt?nt.create().update(dt).digest():dt);for(let ro=0;ronew Cr(tt,nt).update(st).digest();_e.hmac=Vr,_e.hmac.create=(tt,nt)=>new Cr(tt,nt)}(hmac$2),Object.defineProperty(pbkdf2$1,"__esModule",{value:!0}),pbkdf2$1.pbkdf2Async=pbkdf2$1.pbkdf2=void 0;const _assert_js_1$2=_assert,hmac_js_1=hmac$2,utils_js_1$5=utils$R;function pbkdf2Init(_e,cr,gr,Cr){(0,_assert_js_1$2.hash)(_e);const Vr=(0,utils_js_1$5.checkOpts)({dkLen:32,asyncTick:10},Cr),{c:tt,dkLen:nt,asyncTick:st}=Vr;if((0,_assert_js_1$2.number)(tt),(0,_assert_js_1$2.number)(nt),(0,_assert_js_1$2.number)(st),tt<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const dt=(0,utils_js_1$5.toBytes)(cr),kt=(0,utils_js_1$5.toBytes)(gr),qt=new Uint8Array(nt),ro=hmac_js_1.hmac.create(_e,dt),ht=ro._cloneInto().update(kt);return{c:tt,dkLen:nt,asyncTick:st,DK:qt,PRF:ro,PRFSalt:ht}}function pbkdf2Output(_e,cr,gr,Cr,Vr){return _e.destroy(),cr.destroy(),Cr&&Cr.destroy(),Vr.fill(0),gr}function pbkdf2(_e,cr,gr,Cr){const{c:Vr,dkLen:tt,DK:nt,PRF:st,PRFSalt:dt}=pbkdf2Init(_e,cr,gr,Cr);let kt;const qt=new Uint8Array(4),ro=(0,utils_js_1$5.createView)(qt),ht=new Uint8Array(st.outputLen);for(let po=1,no=0;no{dt._cloneInto(qt).update(po).digestInto(po);for(let Wt=0;Wt>Vr&tt),st=Number(gr&tt),dt=Cr?4:0,kt=Cr?0:4;_e.setUint32(cr+dt,nt,Cr),_e.setUint32(cr+kt,st,Cr)}const Chi=(_e,cr,gr)=>_e&cr^~_e&gr;_md.Chi=Chi;const Maj=(_e,cr,gr)=>_e&cr^_e&gr^cr&gr;_md.Maj=Maj;class HashMD extends utils_js_1$4.Hash{constructor(cr,gr,Cr,Vr){super(),this.blockLen=cr,this.outputLen=gr,this.padOffset=Cr,this.isLE=Vr,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(cr),this.view=(0,utils_js_1$4.createView)(this.buffer)}update(cr){(0,_assert_js_1$1.exists)(this);const{view:gr,buffer:Cr,blockLen:Vr}=this;cr=(0,utils_js_1$4.toBytes)(cr);const tt=cr.length;for(let nt=0;ntVr-nt&&(this.process(Cr,0),nt=0);for(let ro=nt;roqt.length)throw new Error("_sha2: outputLen bigger than state");for(let ro=0;ro>_32n&U32_MASK64)}:{h:Number(_e>>_32n&U32_MASK64)|0,l:Number(_e&U32_MASK64)|0}}_u64.fromBig=fromBig;function split(_e,cr=!1){let gr=new Uint32Array(_e.length),Cr=new Uint32Array(_e.length);for(let Vr=0;Vr<_e.length;Vr++){const{h:tt,l:nt}=fromBig(_e[Vr],cr);[gr[Vr],Cr[Vr]]=[tt,nt]}return[gr,Cr]}_u64.split=split;const toBig=(_e,cr)=>BigInt(_e>>>0)<<_32n|BigInt(cr>>>0);_u64.toBig=toBig;const shrSH=(_e,cr,gr)=>_e>>>gr;_u64.shrSH=shrSH;const shrSL=(_e,cr,gr)=>_e<<32-gr|cr>>>gr;_u64.shrSL=shrSL;const rotrSH=(_e,cr,gr)=>_e>>>gr|cr<<32-gr;_u64.rotrSH=rotrSH;const rotrSL=(_e,cr,gr)=>_e<<32-gr|cr>>>gr;_u64.rotrSL=rotrSL;const rotrBH=(_e,cr,gr)=>_e<<64-gr|cr>>>gr-32;_u64.rotrBH=rotrBH;const rotrBL=(_e,cr,gr)=>_e>>>gr-32|cr<<64-gr;_u64.rotrBL=rotrBL;const rotr32H=(_e,cr)=>cr;_u64.rotr32H=rotr32H;const rotr32L=(_e,cr)=>_e;_u64.rotr32L=rotr32L;const rotlSH=(_e,cr,gr)=>_e<>>32-gr;_u64.rotlSH=rotlSH;const rotlSL=(_e,cr,gr)=>cr<>>32-gr;_u64.rotlSL=rotlSL;const rotlBH=(_e,cr,gr)=>cr<>>64-gr;_u64.rotlBH=rotlBH;const rotlBL=(_e,cr,gr)=>_e<>>64-gr;_u64.rotlBL=rotlBL;function add(_e,cr,gr,Cr){const Vr=(cr>>>0)+(Cr>>>0);return{h:_e+gr+(Vr/2**32|0)|0,l:Vr|0}}_u64.add=add;const add3L=(_e,cr,gr)=>(_e>>>0)+(cr>>>0)+(gr>>>0);_u64.add3L=add3L;const add3H=(_e,cr,gr,Cr)=>cr+gr+Cr+(_e/2**32|0)|0;_u64.add3H=add3H;const add4L=(_e,cr,gr,Cr)=>(_e>>>0)+(cr>>>0)+(gr>>>0)+(Cr>>>0);_u64.add4L=add4L;const add4H=(_e,cr,gr,Cr,Vr)=>cr+gr+Cr+Vr+(_e/2**32|0)|0;_u64.add4H=add4H;const add5L=(_e,cr,gr,Cr,Vr)=>(_e>>>0)+(cr>>>0)+(gr>>>0)+(Cr>>>0)+(Vr>>>0);_u64.add5L=add5L;const add5H=(_e,cr,gr,Cr,Vr,tt)=>cr+gr+Cr+Vr+tt+(_e/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$1,"__esModule",{value:!0}),sha512$1.sha384=sha512$1.sha512_256=sha512$1.sha512_224=sha512$1.sha512=sha512$1.SHA512=void 0;const _md_js_1$2=_md,_u64_js_1$1=_u64,utils_js_1$3=utils$R,[SHA512_Kh,SHA512_Kl]=_u64_js_1$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(_e=>BigInt(_e))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);let SHA512$2=class extends _md_js_1$2.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:_e,Al:cr,Bh:gr,Bl:Cr,Ch:Vr,Cl:tt,Dh:nt,Dl:st,Eh:dt,El:kt,Fh:qt,Fl:ro,Gh:ht,Gl:po,Hh:no,Hl:Nt}=this;return[_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt]}set(_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt){this.Ah=_e|0,this.Al=cr|0,this.Bh=gr|0,this.Bl=Cr|0,this.Ch=Vr|0,this.Cl=tt|0,this.Dh=nt|0,this.Dl=st|0,this.Eh=dt|0,this.El=kt|0,this.Fh=qt|0,this.Fl=ro|0,this.Gh=ht|0,this.Gl=po|0,this.Hh=no|0,this.Hl=Nt|0}process(_e,cr){for(let St=0;St<16;St++,cr+=4)SHA512_W_H[St]=_e.getUint32(cr),SHA512_W_L[St]=_e.getUint32(cr+=4);for(let St=16;St<80;St++){const Ot=SHA512_W_H[St-15]|0,uo=SHA512_W_L[St-15]|0,go=_u64_js_1$1.default.rotrSH(Ot,uo,1)^_u64_js_1$1.default.rotrSH(Ot,uo,8)^_u64_js_1$1.default.shrSH(Ot,uo,7),bo=_u64_js_1$1.default.rotrSL(Ot,uo,1)^_u64_js_1$1.default.rotrSL(Ot,uo,8)^_u64_js_1$1.default.shrSL(Ot,uo,7),oo=SHA512_W_H[St-2]|0,Ro=SHA512_W_L[St-2]|0,pt=_u64_js_1$1.default.rotrSH(oo,Ro,19)^_u64_js_1$1.default.rotrBH(oo,Ro,61)^_u64_js_1$1.default.shrSH(oo,Ro,6),lo=_u64_js_1$1.default.rotrSL(oo,Ro,19)^_u64_js_1$1.default.rotrBL(oo,Ro,61)^_u64_js_1$1.default.shrSL(oo,Ro,6),so=_u64_js_1$1.default.add4L(bo,lo,SHA512_W_L[St-7],SHA512_W_L[St-16]),wo=_u64_js_1$1.default.add4H(so,go,pt,SHA512_W_H[St-7],SHA512_W_H[St-16]);SHA512_W_H[St]=wo|0,SHA512_W_L[St]=so|0}let{Ah:gr,Al:Cr,Bh:Vr,Bl:tt,Ch:nt,Cl:st,Dh:dt,Dl:kt,Eh:qt,El:ro,Fh:ht,Fl:po,Gh:no,Gl:Nt,Hh:eo,Hl:Wt}=this;for(let St=0;St<80;St++){const Ot=_u64_js_1$1.default.rotrSH(qt,ro,14)^_u64_js_1$1.default.rotrSH(qt,ro,18)^_u64_js_1$1.default.rotrBH(qt,ro,41),uo=_u64_js_1$1.default.rotrSL(qt,ro,14)^_u64_js_1$1.default.rotrSL(qt,ro,18)^_u64_js_1$1.default.rotrBL(qt,ro,41),go=qt&ht^~qt&no,bo=ro&po^~ro&Nt,oo=_u64_js_1$1.default.add5L(Wt,uo,bo,SHA512_Kl[St],SHA512_W_L[St]),Ro=_u64_js_1$1.default.add5H(oo,eo,Ot,go,SHA512_Kh[St],SHA512_W_H[St]),pt=oo|0,lo=_u64_js_1$1.default.rotrSH(gr,Cr,28)^_u64_js_1$1.default.rotrBH(gr,Cr,34)^_u64_js_1$1.default.rotrBH(gr,Cr,39),so=_u64_js_1$1.default.rotrSL(gr,Cr,28)^_u64_js_1$1.default.rotrBL(gr,Cr,34)^_u64_js_1$1.default.rotrBL(gr,Cr,39),wo=gr&Vr^gr&nt^Vr&nt,xt=Cr&tt^Cr&st^tt&st;eo=no|0,Wt=Nt|0,no=ht|0,Nt=po|0,ht=qt|0,po=ro|0,{h:qt,l:ro}=_u64_js_1$1.default.add(dt|0,kt|0,Ro|0,pt|0),dt=nt|0,kt=st|0,nt=Vr|0,st=tt|0,Vr=gr|0,tt=Cr|0;const Mt=_u64_js_1$1.default.add3L(pt,so,xt);gr=_u64_js_1$1.default.add3H(Mt,Ro,lo,wo),Cr=Mt|0}({h:gr,l:Cr}=_u64_js_1$1.default.add(this.Ah|0,this.Al|0,gr|0,Cr|0)),{h:Vr,l:tt}=_u64_js_1$1.default.add(this.Bh|0,this.Bl|0,Vr|0,tt|0),{h:nt,l:st}=_u64_js_1$1.default.add(this.Ch|0,this.Cl|0,nt|0,st|0),{h:dt,l:kt}=_u64_js_1$1.default.add(this.Dh|0,this.Dl|0,dt|0,kt|0),{h:qt,l:ro}=_u64_js_1$1.default.add(this.Eh|0,this.El|0,qt|0,ro|0),{h:ht,l:po}=_u64_js_1$1.default.add(this.Fh|0,this.Fl|0,ht|0,po|0),{h:no,l:Nt}=_u64_js_1$1.default.add(this.Gh|0,this.Gl|0,no|0,Nt|0),{h:eo,l:Wt}=_u64_js_1$1.default.add(this.Hh|0,this.Hl|0,eo|0,Wt|0),this.set(gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt,eo,Wt)}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$1.SHA512=SHA512$2;class SHA512_224 extends SHA512$2{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$2{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}}let SHA384$1=class extends SHA512$2{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$1.sha512=(0,utils_js_1$3.wrapConstructor)(()=>new SHA512$2),sha512$1.sha512_224=(0,utils_js_1$3.wrapConstructor)(()=>new SHA512_224),sha512$1.sha512_256=(0,utils_js_1$3.wrapConstructor)(()=>new SHA512_256),sha512$1.sha384=(0,utils_js_1$3.wrapConstructor)(()=>new SHA384$1);var __createBinding$j=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$j=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$j=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$j(cr,_e,gr);return __setModuleDefault$j(cr,_e),cr};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$m=build$6,pbkdf2_1$1=pbkdf2$1,sha512_1$2=sha512$1;async function getNodeCrypto(){try{const _e=await Promise.resolve().then(()=>__importStar$j(require$$0$3));return typeof _e=="object"&&Object.keys(_e).length<=1?void 0:_e}catch{return}}pbkdf2$2.getNodeCrypto=getNodeCrypto;async function getSubtle(){var cr,gr,Cr;let _e=(cr=globalThis==null?void 0:globalThis.crypto)==null?void 0:cr.subtle;return _e||(_e=(Cr=(gr=globalThis==null?void 0:globalThis.crypto)==null?void 0:gr.webcrypto)==null?void 0:Cr.subtle),_e}pbkdf2$2.getSubtle=getSubtle;async function pbkdf2Sha512Subtle(_e,cr,gr,Cr,Vr){return(0,utils_1$m.assert)(_e,"Argument subtle is falsy"),(0,utils_1$m.assert)(typeof _e=="object","Argument subtle is not of type object"),(0,utils_1$m.assert)(typeof _e.importKey=="function","subtle.importKey is not a function"),(0,utils_1$m.assert)(typeof _e.deriveBits=="function","subtle.deriveBits is not a function"),_e.importKey("raw",cr,{name:"PBKDF2"},!1,["deriveBits"]).then(tt=>_e.deriveBits({name:"PBKDF2",salt:gr,iterations:Cr,hash:{name:"SHA-512"}},tt,Vr*8).then(nt=>new Uint8Array(nt)))}pbkdf2$2.pbkdf2Sha512Subtle=pbkdf2Sha512Subtle;async function pbkdf2Sha512NodeCrypto(_e,cr,gr,Cr,Vr){return(0,utils_1$m.assert)(_e,"Argument nodeCrypto is falsy"),(0,utils_1$m.assert)(typeof _e=="object","Argument nodeCrypto is not of type object"),(0,utils_1$m.assert)(typeof _e.pbkdf2=="function","nodeCrypto.pbkdf2 is not a function"),new Promise((tt,nt)=>{_e.pbkdf2(cr,gr,Cr,Vr,"sha512",(st,dt)=>{st?nt(st):tt(Uint8Array.from(dt))})})}pbkdf2$2.pbkdf2Sha512NodeCrypto=pbkdf2Sha512NodeCrypto;async function pbkdf2Sha512Noble(_e,cr,gr,Cr){return(0,pbkdf2_1$1.pbkdf2Async)(sha512_1$2.sha512,_e,cr,{c:gr,dkLen:Cr})}pbkdf2$2.pbkdf2Sha512Noble=pbkdf2Sha512Noble;async function pbkdf2Sha512(_e,cr,gr,Cr){const Vr=await getSubtle();if(Vr)return pbkdf2Sha512Subtle(Vr,_e,cr,gr,Cr);{const tt=await getNodeCrypto();return tt?pbkdf2Sha512NodeCrypto(tt,_e,cr,gr,Cr):pbkdf2Sha512Noble(_e,cr,gr,Cr)}}pbkdf2$2.pbkdf2Sha512=pbkdf2Sha512;var sha$1={},sha256$1={};Object.defineProperty(sha256$1,"__esModule",{value:!0}),sha256$1.sha224=sha256$1.sha256=void 0;const _md_js_1$1=_md,utils_js_1$2=utils$R,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);let SHA256$2=class 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:_e,B:cr,C:gr,D:Cr,E:Vr,F:tt,G:nt,H:st}=this;return[_e,cr,gr,Cr,Vr,tt,nt,st]}set(_e,cr,gr,Cr,Vr,tt,nt,st){this.A=_e|0,this.B=cr|0,this.C=gr|0,this.D=Cr|0,this.E=Vr|0,this.F=tt|0,this.G=nt|0,this.H=st|0}process(_e,cr){for(let qt=0;qt<16;qt++,cr+=4)SHA256_W[qt]=_e.getUint32(cr,!1);for(let qt=16;qt<64;qt++){const ro=SHA256_W[qt-15],ht=SHA256_W[qt-2],po=(0,utils_js_1$2.rotr)(ro,7)^(0,utils_js_1$2.rotr)(ro,18)^ro>>>3,no=(0,utils_js_1$2.rotr)(ht,17)^(0,utils_js_1$2.rotr)(ht,19)^ht>>>10;SHA256_W[qt]=no+SHA256_W[qt-7]+po+SHA256_W[qt-16]|0}let{A:gr,B:Cr,C:Vr,D:tt,E:nt,F:st,G:dt,H:kt}=this;for(let qt=0;qt<64;qt++){const ro=(0,utils_js_1$2.rotr)(nt,6)^(0,utils_js_1$2.rotr)(nt,11)^(0,utils_js_1$2.rotr)(nt,25),ht=kt+ro+(0,_md_js_1$1.Chi)(nt,st,dt)+SHA256_K[qt]+SHA256_W[qt]|0,po=((0,utils_js_1$2.rotr)(gr,2)^(0,utils_js_1$2.rotr)(gr,13)^(0,utils_js_1$2.rotr)(gr,22))+(0,_md_js_1$1.Maj)(gr,Cr,Vr)|0;kt=dt,dt=st,st=nt,nt=tt+ht|0,tt=Vr,Vr=Cr,Cr=gr,gr=ht+po|0}gr=gr+this.A|0,Cr=Cr+this.B|0,Vr=Vr+this.C|0,tt=tt+this.D|0,nt=nt+this.E|0,st=st+this.F|0,dt=dt+this.G|0,kt=kt+this.H|0,this.set(gr,Cr,Vr,tt,nt,st,dt,kt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},SHA224$1=class extends SHA256$2{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$1.sha256=(0,utils_js_1$2.wrapConstructor)(()=>new SHA256$2),sha256$1.sha224=(0,utils_js_1$2.wrapConstructor)(()=>new SHA224$1);var utils$Q={};Object.defineProperty(utils$Q,"__esModule",{value:!0}),utils$Q.toRealUint8Array=void 0;function toRealUint8Array(_e){return _e instanceof Uint8Array?_e:Uint8Array.from(_e)}utils$Q.toRealUint8Array=toRealUint8Array,Object.defineProperty(sha$1,"__esModule",{value:!0}),sha$1.sha512=sha$1.Sha512=sha$1.sha256=sha$1.Sha256=void 0;const sha256_1$1=sha256$1,sha512_1$1=sha512$1,utils_1$l=utils$Q;class Sha256{constructor(cr){this.blockSize=512/8,this.impl=sha256_1$1.sha256.create(),cr&&this.update(cr)}update(cr){return this.impl.update((0,utils_1$l.toRealUint8Array)(cr)),this}digest(){return this.impl.digest()}}sha$1.Sha256=Sha256;function sha256(_e){return new Sha256(_e).digest()}sha$1.sha256=sha256;class Sha512{constructor(cr){this.blockSize=1024/8,this.impl=sha512_1$1.sha512.create(),cr&&this.update(cr)}update(cr){return this.impl.update((0,utils_1$l.toRealUint8Array)(cr)),this}digest(){return this.impl.digest()}}sha$1.Sha512=Sha512;function sha512(_e){return new Sha512(_e).digest()}sha$1.sha512=sha512,Object.defineProperty(bip39,"__esModule",{value:!0}),bip39.Bip39=bip39.EnglishMnemonic=bip39.mnemonicToEntropy=bip39.entropyToMnemonic=void 0;const encoding_1$v=build$c,pbkdf2_1=pbkdf2$2,sha_1=sha$1,wordlist=["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(_e){return Array.from(_e).map(cr=>cr.toString(2).padStart(8,"0")).join("")}function deriveChecksumBits(_e){const cr=_e.length*8/32,gr=(0,sha_1.sha256)(_e);return bytesToBitstring(gr).slice(0,cr)}function bitstringToByte(_e){return parseInt(_e,2)}const allowedEntropyLengths=[16,20,24,28,32],allowedWordLengths=[12,15,18,21,24];function entropyToMnemonic(_e){if(allowedEntropyLengths.indexOf(_e.length)===-1)throw new Error("invalid input length");const cr=bytesToBitstring(_e),gr=deriveChecksumBits(_e);return(cr+gr).match(/(.{11})/g).map(Cr=>{const Vr=bitstringToByte(Cr);return wordlist[Vr]}).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$1(_e){return _e.normalize("NFKD")}function mnemonicToEntropy(_e){const cr=normalize$1(_e).split(" ");if(!allowedWordLengths.includes(cr.length))throw new Error(invalidNumberOfWorks);const gr=cr.map(dt=>{const kt=wordlist.indexOf(dt);if(kt===-1)throw new Error(wordNotInWordlist);return kt.toString(2).padStart(11,"0")}).join(""),Cr=Math.floor(gr.length/33)*32,Vr=gr.slice(0,Cr),tt=gr.slice(Cr),nt=Vr.match(/(.{1,8})/g).map(bitstringToByte);if(nt.length<16||nt.length>32||nt.length%4!==0)throw new Error(invalidEntropy);const st=Uint8Array.from(nt);if(deriveChecksumBits(st)!==tt)throw new Error(invalidChecksum);return st}bip39.mnemonicToEntropy=mnemonicToEntropy;class EnglishMnemonic{constructor(cr){if(!EnglishMnemonic.mnemonicMatcher.test(cr))throw new Error("Invalid mnemonic format");const gr=cr.split(" "),Cr=[12,15,18,21,24];if(Cr.indexOf(gr.length)===-1)throw new Error(`Invalid word count in mnemonic (allowed: ${Cr} got: ${gr.length})`);for(const Vr of gr)if(EnglishMnemonic.wordlist.indexOf(Vr)===-1)throw new Error("Mnemonic contains invalid word");mnemonicToEntropy(cr),this.data=cr}toString(){return this.data}}bip39.EnglishMnemonic=EnglishMnemonic,EnglishMnemonic.wordlist=wordlist,EnglishMnemonic.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;class Bip39{static encode(cr){return new EnglishMnemonic(entropyToMnemonic(cr))}static decode(cr){return mnemonicToEntropy(cr.toString())}static async mnemonicToSeed(cr,gr){const Cr=(0,encoding_1$v.toUtf8)(normalize$1(cr.toString())),Vr="mnemonic"+(gr?normalize$1(gr):""),tt=(0,encoding_1$v.toUtf8)(Vr);return(0,pbkdf2_1.pbkdf2Sha512)(Cr,tt,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(_e,cr){const gr=new _e().blockSize;this.hash=Vr=>new _e().update(Vr).digest();let Cr=cr;if(Cr.length>gr&&(Cr=this.hash(Cr)),Cr.lengthVr^92),this.iKeyPad=Cr.map(Vr=>Vr^54),this.messageHasher=new _e,this.blockSize=gr,this.update(this.iKeyPad)}update(_e){return this.messageHasher.update(_e),this}digest(){const _e=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,..._e]))}};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=_assert,_u64_js_1=_u64,utils_js_1$1=utils$R,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 _e=0,cr=_1n,gr=1,Cr=0;_e<24;_e++){[gr,Cr]=[Cr,(2*gr+3*Cr)%5],SHA3_PI.push(2*(5*Cr+gr)),SHA3_ROTL.push((_e+1)*(_e+2)/2%64);let Vr=_0n;for(let tt=0;tt<7;tt++)cr=(cr<<_1n^(cr>>_7n)*_0x71n)%_256n,cr&_2n&&(Vr^=_1n<<(_1n<gr>32?(0,_u64_js_1.rotlBH)(_e,cr,gr):(0,_u64_js_1.rotlSH)(_e,cr,gr),rotlL=(_e,cr,gr)=>gr>32?(0,_u64_js_1.rotlBL)(_e,cr,gr):(0,_u64_js_1.rotlSL)(_e,cr,gr);function keccakP(_e,cr=24){const gr=new Uint32Array(10);for(let Cr=24-cr;Cr<24;Cr++){for(let nt=0;nt<10;nt++)gr[nt]=_e[nt]^_e[nt+10]^_e[nt+20]^_e[nt+30]^_e[nt+40];for(let nt=0;nt<10;nt+=2){const st=(nt+8)%10,dt=(nt+2)%10,kt=gr[dt],qt=gr[dt+1],ro=rotlH(kt,qt,1)^gr[st],ht=rotlL(kt,qt,1)^gr[st+1];for(let po=0;po<50;po+=10)_e[nt+po]^=ro,_e[nt+po+1]^=ht}let Vr=_e[2],tt=_e[3];for(let nt=0;nt<24;nt++){const st=SHA3_ROTL[nt],dt=rotlH(Vr,tt,st),kt=rotlL(Vr,tt,st),qt=SHA3_PI[nt];Vr=_e[qt],tt=_e[qt+1],_e[qt]=dt,_e[qt+1]=kt}for(let nt=0;nt<50;nt+=10){for(let st=0;st<10;st++)gr[st]=_e[nt+st];for(let st=0;st<10;st++)_e[nt+st]^=~gr[(st+2)%10]&gr[(st+4)%10]}_e[0]^=SHA3_IOTA_H[Cr],_e[1]^=SHA3_IOTA_L[Cr]}gr.fill(0)}sha3.keccakP=keccakP;class Keccak extends utils_js_1$1.Hash{constructor(cr,gr,Cr,Vr=!1,tt=24){if(super(),this.blockLen=cr,this.suffix=gr,this.outputLen=Cr,this.enableXOF=Vr,this.rounds=tt,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,_assert_js_1.number)(Cr),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$1.u32)(this.state)}keccak(){utils_js_1$1.isLE||(0,utils_js_1$1.byteSwap32)(this.state32),keccakP(this.state32,this.rounds),utils_js_1$1.isLE||(0,utils_js_1$1.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(cr){(0,_assert_js_1.exists)(this);const{blockLen:gr,state:Cr}=this;cr=(0,utils_js_1$1.toBytes)(cr);const Vr=cr.length;for(let tt=0;tt=Cr&&this.keccak();const nt=Math.min(Cr-this.posOut,tt-Vr);cr.set(gr.subarray(this.posOut,this.posOut+nt),Vr),this.posOut+=nt,Vr+=nt}return cr}xofInto(cr){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(cr)}xof(cr){return(0,_assert_js_1.number)(cr),this.xofInto(new Uint8Array(cr))}digestInto(cr){if((0,_assert_js_1.output)(cr,this),this.finished)throw new Error("digest() was already called");return this.writeInto(cr),this.destroy(),cr}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(cr){const{blockLen:gr,suffix:Cr,outputLen:Vr,rounds:tt,enableXOF:nt}=this;return cr||(cr=new Keccak(gr,Cr,Vr,nt,tt)),cr.state32.set(this.state32),cr.pos=this.pos,cr.posOut=this.posOut,cr.finished=this.finished,cr.rounds=tt,cr.suffix=Cr,cr.outputLen=Vr,cr.enableXOF=nt,cr.destroyed=this.destroyed,cr}}sha3.Keccak=Keccak;const gen=(_e,cr,gr)=>(0,utils_js_1$1.wrapConstructor)(()=>new Keccak(cr,_e,gr));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=(_e,cr,gr)=>(0,utils_js_1$1.wrapXOFConstructorWithOpts)((Cr={})=>new Keccak(cr,_e,Cr.dkLen===void 0?gr:Cr.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$k=utils$Q;class Keccak256{constructor(cr){this.blockSize=512/8,this.impl=sha3_1.keccak_256.create(),cr&&this.update(cr)}update(cr){return this.impl.update((0,utils_1$k.toRealUint8Array)(cr)),this}digest(){return this.impl.digest()}}keccak.Keccak256=Keccak256;function keccak256(_e){return new Keccak256(_e).digest()}keccak.keccak256=keccak256;var libsodium={},libsodiumWrappers={},libsodiumSumo={exports:{}},hasRequiredLibsodiumSumo;function requireLibsodiumSumo(){return hasRequiredLibsodiumSumo||(hasRequiredLibsodiumSumo=1,function(_e,cr){(function(gr){function Cr(Vr){var tt;(tt=Vr)===void 0&&(tt={});var nt=tt;typeof nt.sodium!="object"&&(typeof commonjsGlobal=="object"?nt=commonjsGlobal:typeof window=="object"&&(nt=window));var st=tt;return tt.ready=new Promise(function(dt,kt){(ht=st).onAbort=kt,ht.print=function(Vo){},ht.printErr=function(Vo){},ht.onRuntimeInitialized=function(){try{ht._crypto_secretbox_keybytes(),dt()}catch(Vo){kt(Vo)}},ht.useBackupModule=function(){return new Promise(function(Vo,zo){(ko={}).onAbort=zo,ko.onRuntimeInitialized=function(){Object.keys(st).forEach(function(An){An!=="getRandomValue"&&delete st[An]}),Object.keys(ko).forEach(function(An){st[An]=ko[An]}),Vo()};var $n,Tn,ko=ko!==void 0?ko:{},es=Object.assign({},ko),fs=typeof window=="object",Es=typeof importScripts=="function",Us=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",ms="";if(Us){var bs=require$$0$3,ks=require$$0$3;ms=Es?ks.dirname(ms)+"/":__dirname+"/",$n=(An,Pn)=>(An=function(Ln){return Ln.startsWith("file://")}(An)?new URL(An):ks.normalize(An),bs.readFileSync(An,Pn?void 0:"utf8")),Tn=An=>{var Pn=$n(An,!0);return Pn.buffer||(Pn=new Uint8Array(Pn)),Pn},!ko.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),_e.exports=ko,ko.inspect=()=>"[Emscripten Module object]"}else(fs||Es)&&(Es?ms=self.location.href:typeof document<"u"&&document.currentScript&&(ms=document.currentScript.src),ms=ms.indexOf("blob:")!==0?ms.substr(0,ms.replace(/[?#].*/,"").lastIndexOf("/")+1):"",$n=An=>{var Pn=new XMLHttpRequest;return Pn.open("GET",An,!1),Pn.send(null),Pn.responseText},Es&&(Tn=An=>{var Pn=new XMLHttpRequest;return Pn.open("GET",An,!1),Pn.responseType="arraybuffer",Pn.send(null),new Uint8Array(Pn.response)}));ko.print;var Ds,Fs=ko.printErr||void 0;Object.assign(ko,es),es=null,ko.arguments&&ko.arguments,ko.thisProgram&&ko.thisProgram,ko.quit&&ko.quit,ko.wasmBinary&&(Ds=ko.wasmBinary),ko.noExitRuntime;var d0,v0={Memory:function(An){this.buffer=new ArrayBuffer(65536*An.initial)},Module:function(An){},Instance:function(An,Pn){this.exports=function(Ln){for(var qn,na=new Uint8Array(123),ls=25;ls>=0;--ls)na[48+ls]=52+ls,na[65+ls]=ls,na[97+ls]=26+ls;function Ns(p0,l0,S0){for(var yl,Vt,br=0,lt=l0,Sl=S0.length,w0=l0+(3*Sl>>2)-(S0[Sl-2]=="=")-(S0[Sl-1]=="=");br>4,lt>2),lt>>0>ys>>>0?at+1|0:at)|0,at=(Rn=(jt=ys)>>>0>(ys=ys+Rn|0)>>>0?at+1|0:at)+m0|0,Fn=f0=ys+u0|0,f0=at=f0>>>0>>0?at+1|0:at,ys=Yo(ys^(lt[zr+80|0]|lt[zr+81|0]<<8|lt[zr+82|0]<<16|lt[zr+83|0]<<24)^-79577749,Rn^(lt[zr+84|0]|lt[zr+85|0]<<8|lt[zr+86|0]<<16|lt[zr+87|0]<<24)^528734635,32),J0=at=Io,at=at+1013904242|0,Rn=ys,En=at=(ys=ys-23791573|0)>>>0<4271175723?at+1|0:at,_c=Yo(ys^js,at^_c,40),at=(at=f0)+(f0=Io)|0,js=Yo(Rn^(Do=js=_c+Fn|0),J0^(Fo=Do>>>0<_c>>>0?at+1|0:at),48),at=En+(Gn=Io)|0,In=at=(js=ys+(No=js)|0)>>>0>>0?at+1|0:at,js=at=Yo(_c^(Xo=js),f0^at,1),En=ys=Io,f0=lt[Ur+24|0]|lt[Ur+25|0]<<8|lt[Ur+26|0]<<16|lt[Ur+27|0]<<24,J0=at=lt[Ur+28|0]|lt[Ur+29|0]<<8|lt[Ur+30|0]<<16|lt[Ur+31|0]<<24,i0=lt[zr+8|0]|lt[zr+9|0]<<8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&zr)<<11|(k0=Fn- -1048576|0)>>>21,zr=(zr>>>21|0)+As|0,js=zr=ot>>>0>(_c=ot+f0|0)>>>0?zr+1|0:zr,Yl=zr=zr-((_c>>>0<4293918720)-1|0)|0,ot=(Wr=zr>>>21|0)+i0|0,ot=(zr=(2097151&zr)<<11|(c0=_c- -1048576|0)>>>21)>>>0>(it=zr+Rn|0)>>>0?ot+1|0:ot,Wr=Oo(xl,cu,666643,0),zr=Io+ot|0,zr=Wr>>>0>(it=Wr+it|0)>>>0?zr+1|0:zr,Wr=Oo(lu,cs,470296,0),zr=Io+zr|0,zr=Wr>>>0>(ot=Wr+it|0)>>>0?zr+1|0:zr,it=(Wr=ot)+(ot=Oo(Y0,V0,136657,0))|0,Wr=Io+zr|0,Wr=ot>>>0>it>>>0?Wr+1|0:Wr,zr=Oo(L0,Pl,654183,0),Wr=Io+Wr|0,Wr=zr>>>0>(ot=zr+it|0)>>>0?Wr+1|0:Wr,Rn=(zr=Oo(K0,J0,-997805,-1))+ot|0,ot=Io+Wr|0,i0=ot=zr>>>0>Rn>>>0?ot+1|0:ot,Z0=zr=ot-((Rn>>>0<4293918720)-1|0)|0,ot=(2097151&zr)<<11|(f0=Rn- -1048576|0)>>>21,zr=(zr>>21)+Os|0,F0=ot=(zr=ot>>>0>(it=ot+F0|0)>>>0?zr+1|0:zr)-((it>>>0<4293918720)-1|0)|0,As=(2097151&ot)<<11|(Os=it- -1048576|0)>>>21,ot=(ot>>21)+Xl|0,z0=N0=As+Bl|0,N0=As>>>0>N0>>>0?ot+1|0:ot,As=it,Wr=zr,it=(B0-(zr=-2097152&zn)|0)+(zn=(2097151&C0)<<11|u0>>>21)|0,zr=(m0-((zr>>>0>B0>>>0)+Dl|0)|0)+(C0>>21)|0,u0=zr=it>>>0>>0?zr+1|0:zr,Bl=zr=zr-((it>>>0<4293918720)-1|0)|0,B0=ot=zr>>21,zr=Oo(xl=(2097151&zr)<<11|(C0=it- -1048576|0)>>>21,ot,-683901,-1),Wr=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jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0,Nn=0,Jn=0,jn=0,Zn=0,xa=0,os=0,as=0,$a=0,Hn=0,Vn=0,ds=0,Is=0,Gn=0,Xn=0,ys=0;Kt=(it=jt<<3)+Wr|0,ft=lt[0|(it=Ur+it|0)]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,Zo=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,ao=ft<<24|(65280&ft)<<8,Eo=(at=16711680&ft)<<24,at=at>>>8|0,it=(yo=-16777216&ft)>>>24|0,br[Kt>>2]=Eo|yo<<8|-16777216&((255&Zo)<<24|ft>>>8)|16711680&((16777215&Zo)<<8|ft>>>24)|Zo>>>8&65280|Zo>>>24,ft=it|at|ao,it=0,br[Kt+4>>2]=ft|it|it,(0|(jt=jt+1|0))!=16;);for(Ur=br[zr+4>>2],br[ot>>2]=br[zr>>2],br[ot+4>>2]=Ur,Ur=br[zr+60>>2],br[ot+56>>2]=br[zr+56>>2],br[ot+60>>2]=Ur,Ur=br[zr+52>>2],br[ot+48>>2]=br[zr+48>>2],br[ot+52>>2]=Ur,Ur=br[zr+44>>2],br[ot+40>>2]=br[zr+40>>2],br[ot+44>>2]=Ur,Ur=br[zr+36>>2],br[ot+32>>2]=br[zr+32>>2],br[ot+36>>2]=Ur,Ur=br[zr+28>>2],br[ot+24>>2]=br[zr+24>>2],br[ot+28>>2]=Ur,Ur=br[zr+20>>2],br[ot+16>>2]=br[zr+16>>2],br[ot+20>>2]=Ur,Ur=br[zr+12>>2],br[ot+8>>2]=br[zr+8>>2],br[ot+12>>2]=Ur;Kt=br[ot+56>>2],at=br[ot+60>>2],it=br[(Ur=Zo=(wn=ys<<3)+Wr|0)>>2],Ur=br[Ur+4>>2],In=ft=br[ot+36>>2],ft=Yo(No=br[ot+32>>2],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+32>>2])+(it=br[jt>>2])|0,Do=Oo(it<<1&-2,1&(ot<<1|it>>>31),ft,0),it=Io+(it>>>0>at>>>0?ao+1|0:ao)|0,at=(ot=at+Do|0)>>>0>>0?it+1|0:it,Do=(_s=Yo(ot^br[jt+96>>2],at^br[jt+100>>2],32))+(it=br[(ao=ds=jt- -64|0)>>2])|0,No=(Ws=Io)+(ao=br[ao+4>>2])|0,_n=ft,ft=Oo(_s,0,it<<1&-2,1&(ao<<1|it>>>31)),it=Io+(it>>>0>Do>>>0?No+1|0:No)|0,No=Yo(_n^(ao=ft+Do|0),wn^(Hn=ft>>>0>ao>>>0?it+1|0:it),40),Do=1+(it=at+(Hs=Io)|0)|0,ft=it,ft=(it=ot+No|0)>>>0>>0?Do:ft,Do=it,it=Oo(No,0,ot<<1&-2,1&(at<<1|ot>>>31)),ft=Io+ft|0,ft=1+(it=(os=(ot=Do+it|0)>>>0>>0?ft+1|0:ft)+In|0)|0,at=it,at=(it=ot+Xo|0)>>>0>>0?ft:at,ft=it,it=Oo(Xo,0,ot<<1&-2,1&(os<<1|ot>>>31)),at=Io+at|0,yo=Yo((ft=ft+it|0)^Fo,(Zn=it>>>0>ft>>>0?at+1|0:at)^yo,32),qs=Io,Do=(Zo=br[jt+52>>2])+(it=br[jt+20>>2])|0,wn=(In=br[jt+48>>2])+(at=br[jt+16>>2])|0,jn=Oo(at<<1&-2,1&(it<<1|at>>>31),In,0),at=Io+(at>>>0>wn>>>0?Do+1|0:Do)|0,wn=(it=wn+jn|0)>>>0>>0?at+1|0:at,$a=(jn=Yo(it^br[jt+112>>2],wn^br[jt+116>>2],32))+(Do=br[jt+80>>2])|0,_n=(Uo=Io)+(at=br[jt+84>>2])|0,Qn=In,In=Oo(jn,0,Do<<1&-2,1&(at<<1|Do>>>31)),Do=Io+(Do>>>0>$a>>>0?_n+1|0:_n)|0,In=Yo(Qn^(at=In+$a|0),Zo^($a=at>>>0>>0?Do+1|0:Do),40),Qn=1+(Do=wn+(Zo=Io)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8|lt[Ur+10|0]<<16|lt[Ur+11|0]<<24,Zo=lt[Ur+12|0]|lt[Ur+13|0]<<8|lt[Ur+14|0]<<16|lt[Ur+15|0]<<24,wn=lt[Ur+16|0]|lt[Ur+17|0]<<8|lt[Ur+18|0]<<16|lt[Ur+19|0]<<24,Go=lt[Ur+20|0]|lt[Ur+21|0]<<8|lt[Ur+22|0]<<16|lt[Ur+23|0]<<24,Nn=lt[Ur+24|0]|lt[Ur+25|0]<<8|lt[Ur+26|0]<<16|lt[Ur+27|0]<<24,Jn=lt[Ur+28|0]|lt[Ur+29|0]<<8|lt[Ur+30|0]<<16|lt[Ur+31|0]<<24,ft=lt[zr+4|0]|lt[zr+5|0]<<8|lt[zr+6|0]<<16|lt[zr+7|0]<<24,Kt=lt[zr+8|0]|lt[zr+9|0]<<8|lt[zr+10|0]<<16|lt[zr+11|0]<<24,at=lt[zr+12|0]|lt[zr+13|0]<<8|lt[zr+14|0]<<16|lt[zr+15|0]<<24,jt=lt[zr+16|0]|lt[zr+17|0]<<8|lt[zr+18|0]<<16|lt[zr+19|0]<<24,ao=lt[zr+20|0]|lt[zr+21|0]<<8|lt[zr+22|0]<<16|lt[zr+23|0]<<24,Eo=lt[zr+24|0]|lt[zr+25|0]<<8|lt[zr+26|0]<<16|lt[zr+27|0]<<24,Ao=lt[zr+28|0]|lt[zr+29|0]<<8|lt[zr+30|0]<<16|lt[zr+31|0]<<24,Xo=lt[0|Ur]|lt[Ur+1|0]<<8|lt[Ur+2|0]<<16|lt[Ur+3|0]<<24,Ur=Wr- -64|0,yo=lt[0|zr]|lt[zr+1|0]<<8|lt[zr+2|0]<<16|lt[zr+3|0]<<24,br[Ur>>2]=33620224^yo,br[Wr+56>>2]=1496785429,br[Wr+60>>2]=1652156816,br[(zr=Wr+48|0)>>2]=33620224,br[zr+4>>2]=218629379,br[Wr+40>>2]=1110511904,br[Wr+44>>2]=-584534669,br[(it=Wr+32|0)>>2]=1427652059,br[it+4>>2]=-248528275,_o=Xo^yo,br[Wr>>2]=_o,br[Wr+92>>2]=-584534669^Ao,br[Wr+88>>2]=1110511904^Eo,br[Wr+84>>2]=-248528275^ao,br[(Xo=Wr+80|0)>>2]=1427652059^jt,br[Wr+76>>2]=1652156816^at,br[Wr+72>>2]=1496785429^Kt,br[Wr+68>>2]=218629379^ft,Jn^=Ao,br[Wr+28>>2]=Jn,Nn^=Eo,br[Wr+24>>2]=Nn,$o=Go^ao,br[Wr+20>>2]=$o,wn^=jt,br[(Go=Wr+16|0)>>2]=wn,Zo^=at,br[Wr+12>>2]=Zo,Do=Qn^Kt,br[Wr+8>>2]=Do,Fo=In^ft,br[Wr+4>>2]=Fo,Qn=0;In=br[Xo+12>>2],br[ot+792>>2]=br[Xo+8>>2],br[ot+796>>2]=In,In=br[Xo+4>>2],br[ot+784>>2]=br[Xo>>2],br[ot+788>>2]=In,In=br[Ur+12>>2],br[ot+760>>2]=br[Ur+8>>2],br[ot+764>>2]=In,In=br[Ur+4>>2],br[ot+752>>2]=br[Ur>>2],br[ot+756>>2]=In,In=br[Xo+12>>2],br[ot+744>>2]=br[Xo+8>>2],br[ot+748>>2]=In,In=br[Xo+4>>2],br[ot+736>>2]=br[Xo>>2],br[ot+740>>2]=In,Mo(In=ot+768|0,ot+752|0,ot+736|0),No=br[ot+780>>2],br[Xo+8>>2]=br[ot+776>>2],br[Xo+12>>2]=No,No=br[ot+772>>2],br[Xo>>2]=br[ot+768>>2],br[Xo+4>>2]=No,No=br[zr+12>>2],br[ot+728>>2]=br[zr+8>>2],br[ot+732>>2]=No,No=br[zr+4>>2],br[ot+720>>2]=br[zr>>2],br[ot+724>>2]=No,No=br[Ur+12>>2],br[ot+712>>2]=br[Ur+8>>2],br[ot+716>>2]=No,No=br[Ur+4>>2],br[ot+704>>2]=br[Ur>>2],br[ot+708>>2]=No,Mo(In,ot+720|0,ot+704|0),No=br[ot+780>>2],br[Ur+8>>2]=br[ot+776>>2],br[Ur+12>>2]=No,No=br[ot+772>>2],br[Ur>>2]=br[ot+768>>2],br[Ur+4>>2]=No,No=br[it+12>>2],br[ot+696>>2]=br[it+8>>2],br[ot+700>>2]=No,No=br[it+4>>2],br[ot+688>>2]=br[it>>2],br[ot+692>>2]=No,No=br[zr+12>>2],br[ot+680>>2]=br[zr+8>>2],br[ot+684>>2]=No,No=br[zr+4>>2],br[ot+672>>2]=br[zr>>2],br[ot+676>>2]=No,Mo(In,ot+688|0,ot+672|0),No=br[ot+780>>2],br[zr+8>>2]=br[ot+776>>2],br[zr+12>>2]=No,No=br[ot+772>>2],br[zr>>2]=br[ot+768>>2],br[zr+4>>2]=No,No=br[Go+12>>2],br[ot+664>>2]=br[Go+8>>2],br[ot+668>>2]=No,No=br[Go+4>>2],br[ot+656>>2]=br[Go>>2],br[ot+660>>2]=No,No=br[it+12>>2],br[ot+648>>2]=br[it+8>>2],br[ot+652>>2]=No,No=br[it+4>>2],br[ot+640>>2]=br[it>>2],br[ot+644>>2]=No,Mo(In,ot+656|0,ot+640|0),No=br[ot+780>>2],br[it+8>>2]=br[ot+776>>2],br[it+12>>2]=No,No=br[ot+772>>2],br[it>>2]=br[ot+768>>2],br[it+4>>2]=No,No=br[Wr+12>>2],br[ot+632>>2]=br[Wr+8>>2],br[ot+636>>2]=No,No=br[Wr+4>>2],br[ot+624>>2]=br[Wr>>2],br[ot+628>>2]=No,No=br[Go+12>>2],br[ot+616>>2]=br[Go+8>>2],br[ot+620>>2]=No,No=br[Go+4>>2],br[ot+608>>2]=br[Go>>2],br[ot+612>>2]=No,Mo(In,ot+624|0,ot+608|0),No=br[ot+780>>2],br[Go+8>>2]=br[ot+776>>2],br[Go+12>>2]=No,No=br[ot+772>>2],br[Go>>2]=br[ot+768>>2],br[Go+4>>2]=No,No=br[ot+796>>2],br[ot+600>>2]=br[ot+792>>2],br[ot+604>>2]=No,No=br[ot+788>>2],br[ot+592>>2]=br[ot+784>>2],br[ot+596>>2]=No,No=br[Wr+12>>2],br[ot+584>>2]=br[Wr+8>>2],br[ot+588>>2]=No,No=br[Wr+4>>2],br[ot+576>>2]=br[Wr>>2],br[ot+580>>2]=No,Mo(In,ot+592|0,ot+576|0),No=br[ot+768>>2],_n=br[ot+772>>2],Mn=br[ot+776>>2],br[Wr+12>>2]=br[ot+780>>2]^at,br[Wr+8>>2]=Mn^Kt,br[Wr+4>>2]=_n^ft,br[Wr>>2]=No^yo,No=br[Xo+12>>2],br[ot+792>>2]=br[Xo+8>>2],br[ot+796>>2]=No,No=br[Xo+4>>2],br[ot+784>>2]=br[Xo>>2],br[ot+788>>2]=No,No=br[Ur+12>>2],br[ot+568>>2]=br[Ur+8>>2],br[ot+572>>2]=No,No=br[Ur+4>>2],br[ot+560>>2]=br[Ur>>2],br[ot+564>>2]=No,No=br[Xo+12>>2],br[ot+552>>2]=br[Xo+8>>2],br[ot+556>>2]=No,No=br[Xo+4>>2],br[ot+544>>2]=br[Xo>>2],br[ot+548>>2]=No,Mo(In,ot+560|0,ot+544|0),No=br[ot+780>>2],br[Xo+8>>2]=br[ot+776>>2],br[Xo+12>>2]=No,No=br[ot+772>>2],br[Xo>>2]=br[ot+768>>2],br[Xo+4>>2]=No,No=br[zr+12>>2],br[ot+536>>2]=br[zr+8>>2],br[ot+540>>2]=No,No=br[zr+4>>2],br[ot+528>>2]=br[zr>>2],br[ot+532>>2]=No,No=br[Ur+12>>2],br[ot+520>>2]=br[Ur+8>>2],br[ot+524>>2]=No,No=br[Ur+4>>2],br[ot+512>>2]=br[Ur>>2],br[ot+516>>2]=No,Mo(In,ot+528|0,ot+512|0),No=br[ot+780>>2],br[Ur+8>>2]=br[ot+776>>2],br[Ur+12>>2]=No,No=br[ot+772>>2],br[Ur>>2]=br[ot+768>>2],br[Ur+4>>2]=No,No=br[it+12>>2],br[ot+504>>2]=br[it+8>>2],br[ot+508>>2]=No,No=br[it+4>>2],br[ot+496>>2]=br[it>>2],br[ot+500>>2]=No,No=br[zr+12>>2],br[ot+488>>2]=br[zr+8>>2],br[ot+492>>2]=No,No=br[zr+4>>2],br[ot+480>>2]=br[zr>>2],br[ot+484>>2]=No,Mo(In,ot+496|0,ot+480|0),No=br[ot+780>>2],br[zr+8>>2]=br[ot+776>>2],br[zr+12>>2]=No,No=br[ot+772>>2],br[zr>>2]=br[ot+768>>2],br[zr+4>>2]=No,No=br[Go+12>>2],br[ot+472>>2]=br[Go+8>>2],br[ot+476>>2]=No,No=br[Go+4>>2],br[ot+464>>2]=br[Go>>2],br[ot+468>>2]=No,No=br[it+12>>2],br[ot+456>>2]=br[it+8>>2],br[ot+460>>2]=No,No=br[it+4>>2],br[ot+448>>2]=br[it>>2],br[ot+452>>2]=No,Mo(In,ot+464|0,ot+448|0),No=br[ot+780>>2],br[it+8>>2]=br[ot+776>>2],br[it+12>>2]=No,No=br[ot+772>>2],br[it>>2]=br[ot+768>>2],br[it+4>>2]=No,No=br[Wr+12>>2],br[ot+440>>2]=br[Wr+8>>2],br[ot+444>>2]=No,No=br[Wr+4>>2],br[ot+432>>2]=br[Wr>>2],br[ot+436>>2]=No,No=br[Go+12>>2],br[ot+424>>2]=br[Go+8>>2],br[ot+428>>2]=No,No=br[Go+4>>2],br[ot+416>>2]=br[Go>>2],br[ot+420>>2]=No,Mo(In,ot+432|0,ot+416|0),No=br[ot+780>>2],br[Go+8>>2]=br[ot+776>>2],br[Go+12>>2]=No,No=br[ot+772>>2],br[Go>>2]=br[ot+768>>2],br[Go+4>>2]=No,No=br[ot+796>>2],br[ot+408>>2]=br[ot+792>>2],br[ot+412>>2]=No,No=br[ot+788>>2],br[ot+400>>2]=br[ot+784>>2],br[ot+404>>2]=No,No=br[Wr+12>>2],br[ot+392>>2]=br[Wr+8>>2],br[ot+396>>2]=No,No=br[Wr+4>>2],br[ot+384>>2]=br[Wr>>2],br[ot+388>>2]=No,Mo(In,ot+400|0,ot+384|0),No=br[ot+768>>2],_n=br[ot+772>>2],Mn=br[ot+776>>2],br[Wr+12>>2]=br[ot+780>>2]^Ao,br[Wr+8>>2]=Mn^Eo,br[Wr+4>>2]=_n^ao,br[Wr>>2]=No^jt,No=br[Xo+12>>2],br[ot+792>>2]=br[Xo+8>>2],br[ot+796>>2]=No,No=br[Xo+4>>2],br[ot+784>>2]=br[Xo>>2],br[ot+788>>2]=No,No=br[Ur+12>>2],br[ot+376>>2]=br[Ur+8>>2],br[ot+380>>2]=No,No=br[Ur+4>>2],br[ot+368>>2]=br[Ur>>2],br[ot+372>>2]=No,No=br[Xo+12>>2],br[ot+360>>2]=br[Xo+8>>2],br[ot+364>>2]=No,No=br[Xo+4>>2],br[ot+352>>2]=br[Xo>>2],br[ot+356>>2]=No,Mo(In,ot+368|0,ot+352|0),No=br[ot+780>>2],br[Xo+8>>2]=br[ot+776>>2],br[Xo+12>>2]=No,No=br[ot+772>>2],br[Xo>>2]=br[ot+768>>2],br[Xo+4>>2]=No,No=br[zr+12>>2],br[ot+344>>2]=br[zr+8>>2],br[ot+348>>2]=No,No=br[zr+4>>2],br[ot+336>>2]=br[zr>>2],br[ot+340>>2]=No,No=br[Ur+12>>2],br[ot+328>>2]=br[Ur+8>>2],br[ot+332>>2]=No,No=br[Ur+4>>2],br[ot+320>>2]=br[Ur>>2],br[ot+324>>2]=No,Mo(In,ot+336|0,ot+320|0),No=br[ot+780>>2],br[Ur+8>>2]=br[ot+776>>2],br[Ur+12>>2]=No,No=br[ot+772>>2],br[Ur>>2]=br[ot+768>>2],br[Ur+4>>2]=No,No=br[it+12>>2],br[ot+312>>2]=br[it+8>>2],br[ot+316>>2]=No,No=br[it+4>>2],br[ot+304>>2]=br[it>>2],br[ot+308>>2]=No,No=br[zr+12>>2],br[ot+296>>2]=br[zr+8>>2],br[ot+300>>2]=No,No=br[zr+4>>2],br[ot+288>>2]=br[zr>>2],br[ot+292>>2]=No,Mo(In,ot+304|0,ot+288|0),No=br[ot+780>>2],br[zr+8>>2]=br[ot+776>>2],br[zr+12>>2]=No,No=br[ot+772>>2],br[zr>>2]=br[ot+768>>2],br[zr+4>>2]=No,No=br[Go+12>>2],br[ot+280>>2]=br[Go+8>>2],br[ot+284>>2]=No,No=br[Go+4>>2],br[ot+272>>2]=br[Go>>2],br[ot+276>>2]=No,No=br[it+12>>2],br[ot+264>>2]=br[it+8>>2],br[ot+268>>2]=No,No=br[it+4>>2],br[ot+256>>2]=br[it>>2],br[ot+260>>2]=No,Mo(In,ot+272|0,ot+256|0),No=br[ot+780>>2],br[it+8>>2]=br[ot+776>>2],br[it+12>>2]=No,No=br[ot+772>>2],br[it>>2]=br[ot+768>>2],br[it+4>>2]=No,No=br[Wr+12>>2],br[ot+248>>2]=br[Wr+8>>2],br[ot+252>>2]=No,No=br[Wr+4>>2],br[ot+240>>2]=br[Wr>>2],br[ot+244>>2]=No,No=br[Go+12>>2],br[ot+232>>2]=br[Go+8>>2],br[ot+236>>2]=No,No=br[Go+4>>2],br[ot+224>>2]=br[Go>>2],br[ot+228>>2]=No,Mo(In,ot+240|0,ot+224|0),No=br[ot+780>>2],br[Go+8>>2]=br[ot+776>>2],br[Go+12>>2]=No,No=br[ot+772>>2],br[Go>>2]=br[ot+768>>2],br[Go+4>>2]=No,No=br[ot+796>>2],br[ot+216>>2]=br[ot+792>>2],br[ot+220>>2]=No,No=br[ot+788>>2],br[ot+208>>2]=br[ot+784>>2],br[ot+212>>2]=No,No=br[Wr+12>>2],br[ot+200>>2]=br[Wr+8>>2],br[ot+204>>2]=No,No=br[Wr+4>>2],br[ot+192>>2]=br[Wr>>2],br[ot+196>>2]=No,Mo(In,ot+208|0,ot+192|0),No=br[ot+768>>2],_n=br[ot+772>>2],Mn=br[ot+776>>2],br[Wr+12>>2]=Zo^br[ot+780>>2],br[Wr+8>>2]=Mn^Do,br[Wr+4>>2]=_n^Fo,br[Wr>>2]=No^_o,No=br[Xo+12>>2],br[ot+792>>2]=br[Xo+8>>2],br[ot+796>>2]=No,No=br[Xo+4>>2],br[ot+784>>2]=br[Xo>>2],br[ot+788>>2]=No,No=br[Ur+12>>2],br[ot+184>>2]=br[Ur+8>>2],br[ot+188>>2]=No,No=br[Ur+4>>2],br[ot+176>>2]=br[Ur>>2],br[ot+180>>2]=No,No=br[Xo+12>>2],br[ot+168>>2]=br[Xo+8>>2],br[ot+172>>2]=No,No=br[Xo+4>>2],br[ot+160>>2]=br[Xo>>2],br[ot+164>>2]=No,Mo(In,ot+176|0,ot+160|0),No=br[ot+780>>2],br[Xo+8>>2]=br[ot+776>>2],br[Xo+12>>2]=No,No=br[ot+772>>2],br[Xo>>2]=br[ot+768>>2],br[Xo+4>>2]=No,No=br[zr+12>>2],br[ot+152>>2]=br[zr+8>>2],br[ot+156>>2]=No,No=br[zr+4>>2],br[ot+144>>2]=br[zr>>2],br[ot+148>>2]=No,No=br[Ur+12>>2],br[ot+136>>2]=br[Ur+8>>2],br[ot+140>>2]=No,No=br[Ur+4>>2],br[ot+128>>2]=br[Ur>>2],br[ot+132>>2]=No,Mo(In,ot+144|0,ot+128|0),No=br[ot+780>>2],br[Ur+8>>2]=br[ot+776>>2],br[Ur+12>>2]=No,No=br[ot+772>>2],br[Ur>>2]=br[ot+768>>2],br[Ur+4>>2]=No,No=br[it+12>>2],br[ot+120>>2]=br[it+8>>2],br[ot+124>>2]=No,No=br[it+4>>2],br[ot+112>>2]=br[it>>2],br[ot+116>>2]=No,No=br[zr+12>>2],br[ot+104>>2]=br[zr+8>>2],br[ot+108>>2]=No,No=br[zr+4>>2],br[ot+96>>2]=br[zr>>2],br[ot+100>>2]=No,Mo(In,ot+112|0,ot+96|0),No=br[ot+780>>2],br[zr+8>>2]=br[ot+776>>2],br[zr+12>>2]=No,No=br[ot+772>>2],br[zr>>2]=br[ot+768>>2],br[zr+4>>2]=No,No=br[Go+12>>2],br[ot+88>>2]=br[Go+8>>2],br[ot+92>>2]=No,No=br[Go+4>>2],br[ot+80>>2]=br[Go>>2],br[ot+84>>2]=No,No=br[it+12>>2],br[ot+72>>2]=br[it+8>>2],br[ot+76>>2]=No,No=br[it+4>>2],br[ot+64>>2]=br[it>>2],br[ot+68>>2]=No,Mo(In,ot+80|0,ot- -64|0),No=br[ot+780>>2],br[it+8>>2]=br[ot+776>>2],br[it+12>>2]=No,No=br[ot+772>>2],br[it>>2]=br[ot+768>>2],br[it+4>>2]=No,No=br[Wr+12>>2],br[ot+56>>2]=br[Wr+8>>2],br[ot+60>>2]=No,No=br[Wr+4>>2],br[ot+48>>2]=br[Wr>>2],br[ot+52>>2]=No,No=br[Go+12>>2],br[ot+40>>2]=br[Go+8>>2],br[ot+44>>2]=No,No=br[Go+4>>2],br[ot+32>>2]=br[Go>>2],br[ot+36>>2]=No,Mo(In,ot+48|0,ot+32|0),No=br[ot+780>>2],br[Go+8>>2]=br[ot+776>>2],br[Go+12>>2]=No,No=br[ot+772>>2],br[Go>>2]=br[ot+768>>2],br[Go+4>>2]=No,No=br[ot+796>>2],br[ot+24>>2]=br[ot+792>>2],br[ot+28>>2]=No,No=br[ot+788>>2],br[ot+16>>2]=br[ot+784>>2],br[ot+20>>2]=No,No=br[Wr+12>>2],br[ot+8>>2]=br[Wr+8>>2],br[ot+12>>2]=No,No=br[Wr+4>>2],br[ot>>2]=br[Wr>>2],br[ot+4>>2]=No,Mo(In,ot+16|0,ot),In=br[ot+768>>2],No=br[ot+772>>2],_n=br[ot+776>>2],br[Wr+12>>2]=Jn^br[ot+780>>2],br[Wr+8>>2]=_n^Nn,br[Wr+4>>2]=No^$o,br[Wr>>2]=In^wn,(0|(Qn=Qn+1|0))!=4;);On=ot+800|0}function LA(zr,Ur){var Wr,ot,it,ft,Kt,at,jt,ao,Eo,Ao,yo,_o,$o,Do,Fo,No,Go,Xo,In,_n,Qn,Mn,Zo=0,wn=0,Nn=0,Jn=0,jn=0,Zn=0,xa=0,os=0,as=0,$a=0,Hn=0,Vn=0,ds=0,Is=0,Gn=0,Xn=0,ys=0,_s=0;for(On=Wr=On-48|0,Nn=lt[Ur+28|0]|lt[Ur+29|0]<<8|lt[Ur+30|0]<<16|lt[Ur+31|0]<<24,wn=lt[Ur+24|0]|lt[Ur+25|0]<<8|lt[Ur+26|0]<<16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ur=On-960|0,YA(wn=Ur+304|0,Wr),br[Ur+304>>2]=br[Ur+304>>2]+1,Ru(wn,wn),Nn=Oo(wn=br[Ur+340>>2],wn>>31,486662,0),wn=Io,xa=(Hn=Nn+16777216|0)>>>0<16777216?wn+1|0:wn,as=Nn-(-33554432&Hn)|0,Zo=Oo(wn=br[Ur+336>>2],wn>>31,486662,0),Nn=Io,Jn=Oo(wn=br[Ur+332>>2],wn>>31,486662,0),wn=Io,os=Zo,Zo=(Zo=(wn=(Zn=Jn+16777216|0)>>>0<16777216?wn+1|0:wn)>>25)+Nn|0,wn=(wn=(33554431&wn)<<7|Zn>>>25)>>>0>(jn=os+wn|0)>>>0?Zo+1|0:Zo,ot=((67108863&(wn=(Nn=jn+33554432|0)>>>0<33554432?wn+1|0:wn))<<6|Nn>>>26)+as|0,br[Ur+292>>2]=0-ot,ys=jn-(-67108864&Nn)|0,br[Ur+288>>2]=0-ys,as=Jn-(-33554432&Zn)|0,Nn=Oo(wn=br[Ur+328>>2],wn>>31,486662,0),wn=Io,Zn=Oo(Zo=br[Ur+324>>2],Zo>>31,486662,0),Zo=Io,os=Nn,wn=wn+(Nn=(Zo=(jn=Zn+16777216|0)>>>0<16777216?Zo+1|0:Zo)>>25)|0,wn=(Zo=os+(Jn=(33554431&Zo)<<7|jn>>>25)|0)>>>0>>0?wn+1|0:wn,it=((67108863&(wn=(Nn=Zo+33554432|0)>>>0<33554432?wn+1|0:wn))<<6|Nn>>>26)+as|0,br[Ur+284>>2]=0-it,ft=Zo-(-67108864&Nn)|0,br[Ur+280>>2]=0-ft,as=Zn-(-33554432&jn)|0,Zo=Oo(wn=br[Ur+320>>2],wn>>31,486662,0),wn=Io,Zn=Oo(Nn=br[Ur+316>>2],Nn>>31,486662,0),Nn=Io,os=Zo,wn=(Zo=(Nn=(jn=Zn+16777216|0)>>>0<16777216?Nn+1|0:Nn)>>25)+wn|0,Zo=wn=(Nn=os+(Jn=(33554431&Nn)<<7|jn>>>25)|0)>>>0>>0?wn+1|0:wn,Kt=((67108863&(Zo=(Jn=Nn+33554432|0)>>>0<33554432?Zo+1|0:Zo))<<6|Jn>>>26)+as|0,br[Ur+276>>2]=0-Kt,at=Nn-(-67108864&Jn)|0,br[Ur+272>>2]=0-at,os=Zn-(-33554432&jn)|0,wn=Oo(wn=br[Ur+312>>2],wn>>31,486662,0),as=Io,Jn=Oo(Nn=br[Ur+308>>2],Nn>>31,486662,0),Zo=Io,Nn=(33554431&(Zo=(Zn=Jn+16777216|0)>>>0<16777216?Zo+1|0:Zo))<<7|Zn>>>25,Zo=(Zo>>25)+as|0,Nn=Nn>>>0>(jn=Nn+wn|0)>>>0?Zo+1|0:Zo,jt=((67108863&(Nn=(wn=jn+33554432|0)>>>0<33554432?Nn+1|0:Nn))<<6|wn>>>26)+os|0,br[Ur+268>>2]=0-jt,ao=jn-(-67108864&wn)|0,br[Ur+264>>2]=0-ao,jn=Jn-(-33554432&Zn)|0,Nn=Oo((33554431&xa)<<7|Hn>>>25,xa>>25,19,0),wn=Io,Jn=Nn,Nn=Oo(Zo=br[Ur+304>>2],Zo>>31,486662,0),wn=Io+wn|0,Nn=(Zo=Jn+Nn|0)>>>0>>0?wn+1|0:wn,Eo=((67108863&(Nn=(wn=Zo+33554432|0)>>>0<33554432?Nn+1|0:Nn))<<6|wn>>>26)+jn|0,br[Ur+260>>2]=0-Eo,$a=Zo-(-67108864&wn)|0,br[Ur+256>>2]=0-$a,Un(Nn=Ur+208|0,wn=Ur+256|0),ns(Ur+160|0,wn,Nn),yo=br[Ur+196>>2],_o=br[Ur+160>>2],Vn=br[Ur+208>>2],$o=br[Ur+164>>2],Do=br[Ur+168>>2],ds=br[Ur+212>>2],Is=br[Ur+216>>2],Fo=br[Ur+172>>2],No=br[Ur+176>>2],Gn=br[Ur+220>>2],Xn=br[Ur+224>>2],Go=br[Ur+180>>2],Xo=br[Ur+184>>2],os=br[Ur+228>>2],as=br[Ur+232>>2],In=br[Ur+188>>2],_n=br[Ur+192>>2],Nn=Oo(wn=br[Ur+244>>2],wn>>31,486662,0),wn=Io,xa=(Hn=Nn+16777216|0)>>>0<16777216?wn+1|0:wn,Qn=Nn-(-33554432&Hn)|0,wn=Oo(wn=br[Ur+240>>2],wn>>31,486662,0),Mn=Io,Jn=Oo(Nn=br[Ur+236>>2],Nn>>31,486662,0),Zo=Io,Nn=wn,wn=(33554431&(Zo=(Zn=Jn+16777216|0)>>>0<16777216?Zo+1|0:Zo))<<7|Zn>>>25,Zo=(Zo>>25)+Mn|0,wn=wn>>>0>(jn=Nn+wn|0)>>>0?Zo+1|0:Zo,Zo=((67108863&(wn=(Nn=jn+33554432|0)>>>0<33554432?wn+1|0:wn))<<6|Nn>>>26)+Qn|0,br[Ur+244>>2]=Zo,br[Ur+388>>2]=Zo+(yo-ot|0),wn=jn-(-67108864&Nn)|0,br[Ur+240>>2]=wn,br[Ur+384>>2]=wn+(_n-ys|0),ys=Jn-(-33554432&Zn)|0,wn=Oo(as,as>>31,486662,0),Jn=Io,Zn=Oo(os,os>>31,486662,0),Nn=Io,os=wn,wn=(wn=(Nn=(jn=Zn+16777216|0)>>>0<16777216?Nn+1|0:Nn)>>25)+Jn|0,Zo=wn=(Zo=(33554431&Nn)<<7|jn>>>25)>>>0>(Nn=os+Zo|0)>>>0?wn+1|0:wn,Jn=((67108863&(Zo=(Jn=Nn+33554432|0)>>>0<33554432?Zo+1|0:Zo))<<6|(wn=Jn)>>>26)+ys|0,br[Ur+236>>2]=Jn,br[Ur+380>>2]=Jn+(In-it|0),wn=Nn-(-67108864&wn)|0,br[Ur+232>>2]=wn,br[Ur+376>>2]=wn+(Xo-ft|0),as=Zn-(-33554432&jn)|0,Zo=Oo(Xn,Xn>>31,486662,0),Nn=Io,Jn=Oo(Gn,Gn>>31,486662,0),wn=Io,os=Zo,Zo=(Zo=(wn=(Zn=Jn+16777216|0)>>>0<16777216?wn+1|0:wn)>>25)+Nn|0,Nn=(wn=(33554431&wn)<<7|Zn>>>25)>>>0>(jn=os+wn|0)>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zo),Un(Zo,Zo),Un(Zo,Zo),Un(Zo,Zo),ns(Zo,Zo,Nn),wn=br[Ur+564>>2],br[Ur+464>>2]=br[Ur+560>>2],br[Ur+468>>2]=wn,wn=br[Ur+556>>2],br[Ur+456>>2]=br[Ur+552>>2],br[Ur+460>>2]=wn,wn=br[Ur+548>>2],br[Ur+448>>2]=br[Ur+544>>2],br[Ur+452>>2]=wn,wn=br[Ur+540>>2],br[Ur+440>>2]=br[Ur+536>>2],br[Ur+444>>2]=wn,wn=br[Ur+532>>2],br[Ur+432>>2]=br[Ur+528>>2],br[Ur+436>>2]=wn;Un(wn=Ur+528|0,wn),(0|(_s=_s+1|0))!=120;);ns(wn,wn,Ur+432|0),Un(wn,wn),Un(wn,wn),Un(wn,wn),Un(wn,wn),Un(wn,wn),Un(wn,wn),Un(wn,wn),Un(wn,wn),Un(wn,wn),Un(wn,wn),ns(wn,wn,Ur+480|0),Un(wn,wn),Un(wn,wn),Un(wn,wn),ns(wn,wn,Ur),Un(wn,wn),Dn(Ur+400|0,wn),Vn=br[Ur+256>>2],ds=br[Ur+260>>2],Is=br[Ur+264>>2],Gn=br[Ur+268>>2],Xn=br[Ur+272>>2],jn=br[Ur+276>>2],xa=br[Ur+280>>2],Zo=br[Ur+284>>2],Nn=br[Ur+288>>2],os=($a=0-(1&Vt[Ur+401|0])|0)&(0-(wn=br[Ur+292>>2])^wn)^wn,br[Ur+660>>2]=os,as=Nn^$a&(Nn^0-Nn),br[Ur+656>>2]=as,Hn=Zo^$a&(Zo^0-Zo),br[Ur+652>>2]=Hn,Jn=xa^$a&(xa^0-xa),br[Ur+648>>2]=Jn,Zn=jn^$a&(jn^0-jn),br[Ur+644>>2]=Zn,jn=Xn^$a&(Xn^0-Xn),br[Ur+640>>2]=jn,xa=Gn^$a&(Gn^0-Gn),br[Ur+636>>2]=xa,Zo=Is^$a&(Is^0-Is),br[Ur+632>>2]=Zo,Nn=ds^$a&(ds^0-ds),br[Ur+628>>2]=Nn,wn=(Vn^$a&(Vn^0-Vn))-(486662&$a)|0,br[Ur+624>>2]=wn+1,br[Ur+820>>2]=os,br[Ur+816>>2]=as,br[Ur+812>>2]=Hn,br[Ur+808>>2]=Jn,br[Ur+804>>2]=Zn,br[Ur+800>>2]=jn,br[Ur+796>>2]=xa,br[Ur+792>>2]=Zo,br[Ur+788>>2]=Nn,br[Ur+784>>2]=wn-1,Ru(Ur,Ur+624|0),ns(wn=Ur+912|0,Ur+784|0,Ur),Dn(zr,wn),Vt[zr+31|0]=lt[zr+31|0]|Ao,_u(Ur,zr)&&(du(),Qs()),wn=br[Ur+36>>2],br[Ur+816>>2]=br[Ur+32>>2],br[Ur+820>>2]=wn,wn=br[Ur+28>>2],br[Ur+808>>2]=br[Ur+24>>2],br[Ur+812>>2]=wn,wn=br[Ur+20>>2],br[Ur+800>>2]=br[Ur+16>>2],br[Ur+804>>2]=wn,wn=br[Ur+12>>2],br[Ur+792>>2]=br[Ur+8>>2],br[Ur+796>>2]=wn,wn=br[Ur+52>>2],br[Ur+832>>2]=br[Ur+48>>2],br[Ur+836>>2]=wn,wn=br[Ur+60>>2],br[Ur+840>>2]=br[Ur+56>>2],br[Ur+844>>2]=wn,wn=br[4+(Nn=Ur- -64|0)>>2],br[Ur+848>>2]=br[Nn>>2],br[Ur+852>>2]=wn,wn=br[Ur+76>>2],br[Ur+856>>2]=br[Ur+72>>2],br[Ur+860>>2]=wn,wn=br[Ur+4>>2],br[Ur+784>>2]=br[Ur>>2],br[Ur+788>>2]=wn,wn=br[Ur+44>>2],br[Ur+824>>2]=br[Ur+40>>2],br[Ur+828>>2]=wn,wn=br[Ur+116>>2],br[Ur+896>>2]=br[Ur+112>>2],br[Ur+900>>2]=wn,wn=br[Ur+108>>2],br[Ur+888>>2]=br[Ur+104>>2],br[Ur+892>>2]=wn,wn=br[Ur+100>>2],br[Ur+880>>2]=br[Ur+96>>2],br[Ur+884>>2]=wn,wn=br[Ur+92>>2],br[Ur+872>>2]=br[Ur+88>>2],br[Ur+876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<<3)-jt|0,br[4+(ot=ft+jt|0)>>2]=1|it,br[zr+ft>>2]=it,Ao&&(Wr=37612+(-8&Ao)|0,Kt=br[9398],(zr=1<<(Ao>>>3))&at?zr=br[Wr+8>>2]:(br[9393]=zr|at,zr=Wr),br[Wr+8>>2]=Kt,br[zr+12>>2]=Kt,br[Kt+12>>2]=Wr,br[Kt+8>>2]=zr),zr=ft+8|0,br[9398]=ot,br[9395]=it;break e}if(!(Eo=br[9394]))break s;for(ot=br[37876+(Rp(Eo)<<2)>>2],Kt=(-8&br[ot+4>>2])-jt|0,Wr=ot;(zr=br[Wr+16>>2])||(zr=br[Wr+20>>2]);)Kt=(it=(Wr=(-8&br[zr+4>>2])-jt|0)>>>0>>0)?Wr:Kt,ot=it?zr:ot,Wr=zr;if(ao=br[ot+24>>2],(0|(it=br[ot+12>>2]))!=(0|ot)){zr=br[ot+8>>2],br[zr+12>>2]=it,br[it+8>>2]=zr;break r}if(!(zr=br[(Wr=ot+20|0)>>2])){if(!(zr=br[ot+16>>2]))break p;Wr=ot+16|0}for(;ft=Wr,it=zr,(zr=br[(Wr=zr+20|0)>>2])||(Wr=it+16|0,zr=br[it+16>>2]););br[ft>>2]=0;break r}if(jt=-1,!(zr>>>0>4294967231)&&(jt=-8&(zr=zr+11|0),Eo=br[9394])){Kt=0-jt|0,at=0,jt>>>0<256||(at=31,jt>>>0>16777215||(at=62+((jt>>>38-(zr=Ql(zr>>>8|0))&1)-(zr<<1)|0)|0));d:{h:{if(Wr=br[37876+(at<<2)>>2])for(zr=0,ot=jt<<((0|at)!=31?25-(at>>>1|0)|0:0);;){if(!((ft=(-8&br[Wr+4>>2])-jt|0)>>>0>=Kt>>>0||(it=Wr,Kt=ft,ft))){Kt=0,zr=Wr;break h}if(ft=br[Wr+20>>2],Wr=br[16+((ot>>>29&4)+Wr|0)>>2],zr=ft?(0|ft)==(0|Wr)?zr:ft:zr,ot<<=1,!Wr)break}else zr=0;if(!(zr|it)){if(it=0,!(zr=(0-(zr=2<>2]}if(!zr)break d}for(;Kt=(ot=(Wr=(-8&br[zr+4>>2])-jt|0)>>>0>>0)?Wr:Kt,it=ot?zr:it,zr=(Wr=br[zr+16>>2])||br[zr+20>>2];);}if(!(!it|br[9395]-jt>>>0<=Kt>>>0)){if(at=br[it+24>>2],(0|it)!=(0|(ot=br[it+12>>2]))){zr=br[it+8>>2],br[zr+12>>2]=ot,br[ot+8>>2]=zr;break t}if(!(zr=br[(Wr=it+20|0)>>2])){if(!(zr=br[it+16>>2]))break g;Wr=it+16|0}for(;ft=Wr,ot=zr,(zr=br[(Wr=zr+20|0)>>2])||(Wr=ot+16|0,zr=br[ot+16>>2]););br[ft>>2]=0;break t}}}if((zr=br[9395])>>>0>=jt>>>0){it=br[9398],(Wr=zr-jt|0)>>>0>=16?(br[4+(ot=it+jt|0)>>2]=1|Wr,br[zr+it>>2]=Wr,br[it+4>>2]=3|jt):(br[it+4>>2]=3|zr,br[4+(zr=zr+it|0)>>2]=1|br[zr+4>>2],ot=0,Wr=0),br[9395]=Wr,br[9398]=ot,zr=it+8|0;break e}if((ao=br[9396])>>>0>jt>>>0){Wr=ao-jt|0,br[9396]=Wr,zr=(ot=br[9399])+jt|0,br[9399]=zr,br[zr+4>>2]=1|Wr,br[ot+4>>2]=3|jt,zr=ot+8|0;break e}if(zr=0,Eo=jt+47|0,br[9511]?ot=br[9513]:(br[9514]=-1,br[9515]=-1,br[9512]=4096,br[9513]=4096,br[9511]=Ur+12&-16^1431655768,br[9516]=0,br[9504]=0,ot=4096),(Wr=(ft=Eo+ot|0)&(Kt=0-ot|0))>>>0<=jt>>>0||(it=br[9503])&&it>>>0<(at=(ot=br[9501])+Wr|0)>>>0|ot>>>0>=at>>>0)break e;s:{if(!(4<[38016])){d:{h:{f:{m:{if(it=br[9399])for(zr=38020;;){if((ot=br[zr>>2])>>>0<=it>>>0&it>>>0>2]>>>0)break m;if(!(zr=br[zr+8>>2]))break}if((0|(ot=aA(0)))==-1||(at=Wr,(zr=(it=br[9512])-1|0)&ot&&(at=(Wr-ot|0)+(zr+ot&0-it)|0),at>>>0<=jt>>>0)||(it=br[9503])&&it>>>0<(Kt=(zr=br[9501])+at|0)>>>0|zr>>>0>=Kt>>>0)break d;if((0|ot)!=(0|(zr=aA(at))))break f;break s}if((0|(ot=aA(at=Kt&ft-ao)))==(br[zr>>2]+br[zr+4>>2]|0))break h;zr=ot}if((0|zr)==-1)break d;if(jt+48>>>0<=at>>>0){ot=zr;break s}if((0|aA(ot=(ot=br[9513])+(Eo-at|0)&0-ot))==-1)break d;at=ot+at|0,ot=zr;break s}if((0|ot)!=-1)break s}br[9504]=4|br[9504]}if((0|(ot=aA(Wr)))==-1|(0|(zr=aA(0)))==-1|zr>>>0<=ot>>>0||(at=zr-ot|0)>>>0<=jt+40>>>0)break i}zr=br[9501]+at|0,br[9501]=zr,zr>>>0>Sl[9502]&&(br[9502]=zr);s:{if(ft=br[9399]){for(zr=38020;;){if(((it=br[zr>>2])+(Wr=br[zr+4>>2])|0)==(0|ot))break s;if(!(zr=br[zr+8>>2]))break}break u}for((zr=br[9397])>>>0<=ot>>>0&&zr||(br[9397]=ot),zr=0,br[9506]=at,br[9505]=ot,br[9401]=-1,br[9402]=br[9511],br[9508]=0;Wr=37612+(it=zr<<3)|0,br[it+37620>>2]=Wr,br[it+37624>>2]=Wr,(0|(zr=zr+1|0))!=32;);Wr=(it=at-40|0)-(zr=-8-ot&7)|0,br[9396]=Wr,zr=zr+ot|0,br[9399]=zr,br[zr+4>>2]=1|Wr,br[4+(ot+it|0)>>2]=40,br[9400]=br[9515];break l}if(8&br[zr+12>>2]|ot>>>0<=ft>>>0|it>>>0>ft>>>0)break u;br[zr+4>>2]=Wr+at,ot=(zr=-8-ft&7)+ft|0,br[9399]=ot,zr=(Wr=br[9396]+at|0)-zr|0,br[9396]=zr,br[ot+4>>2]=1|zr,br[4+(Wr+ft|0)>>2]=40,br[9400]=br[9515];break l}it=0;break r}ot=0;break t}Sl[9397]>ot>>>0&&(br[9397]=ot),Wr=ot+at|0,zr=38020;u:{g:{p:{for(;;){if((0|Wr)!=br[zr>>2]){if(zr=br[zr+8>>2])continue;break p}break}if(!(8<[zr+12|0]))break g}for(zr=38020;;){if((Wr=br[zr>>2])>>>0<=ft>>>0&&(Kt=Wr+br[zr+4>>2]|0)>>>0>ft>>>0)break u;zr=br[zr+8>>2]}}if(br[zr>>2]=ot,br[zr+4>>2]=br[zr+4>>2]+at,br[4+(Eo=(-8-ot&7)+ot|0)>>2]=3|jt,zr=(at=Wr+(-8-Wr&7)|0)-(ao=jt+Eo|0)|0,(0|ft)==(0|at)){br[9399]=ao,zr=br[9396]+zr|0,br[9396]=zr,br[ao+4>>2]=1|zr;break o}if(br[9398]==(0|at)){br[9398]=ao,zr=br[9395]+zr|0,br[9395]=zr,br[ao+4>>2]=1|zr,br[zr+ao>>2]=zr;break o}if((3&(Kt=br[at+4>>2]))!=1)break n;if(ft=-8&Kt,Kt>>>0<=255){if((0|(ot=br[at+12>>2]))==(0|(Wr=br[at+8>>2]))){yo=37572,_o=br[9393]&ga(-2,Kt>>>3|0),br[yo>>2]=_o;break a}br[Wr+12>>2]=ot,br[ot+8>>2]=Wr;break a}if(jt=br[at+24>>2],(0|at)!=(0|(ot=br[at+12>>2]))){Wr=br[at+8>>2],br[Wr+12>>2]=ot,br[ot+8>>2]=Wr;break c}if(!(Kt=br[(Wr=at+20|0)>>2])){if(!(Kt=br[at+16>>2]))break A;Wr=at+16|0}for(;it=Wr,(Kt=br[(Wr=(ot=Kt)+20|0)>>2])||(Wr=ot+16|0,Kt=br[ot+16>>2]););br[it>>2]=0;break c}for(Wr=(it=at-40|0)-(zr=-8-ot&7)|0,br[9396]=Wr,zr=zr+ot|0,br[9399]=zr,br[zr+4>>2]=1|Wr,br[4+(ot+it|0)>>2]=40,br[9400]=br[9515],br[(it=(zr=(Kt+(39-Kt&7)|0)-47|0)>>>0>>0?ft:zr)+4>>2]=27,zr=br[9508],br[it+16>>2]=br[9507],br[it+20>>2]=zr,zr=br[9506],br[it+8>>2]=br[9505],br[it+12>>2]=zr,br[9507]=it+8,br[9506]=at,br[9505]=ot,br[9508]=0,zr=it+24|0;br[zr+4>>2]=7,Wr=zr+8|0,zr=zr+4|0,Wr>>>0>>0;);if((0|it)!=(0|ft))if(br[it+4>>2]=-2&br[it+4>>2],Kt=it-ft|0,br[ft+4>>2]=1|Kt,br[it>>2]=Kt,Kt>>>0<=255)Wr=37612+(-8&Kt)|0,(ot=br[9393])&(zr=1<<(Kt>>>3))?zr=br[Wr+8>>2]:(br[9393]=zr|ot,zr=Wr),br[Wr+8>>2]=ft,br[zr+12>>2]=ft,br[ft+12>>2]=Wr,br[ft+8>>2]=zr;else{zr=31,Kt>>>0<=16777215&&(zr=62+((Kt>>>38-(zr=Ql(Kt>>>8|0))&1)-(zr<<1)|0)|0),br[ft+28>>2]=zr,br[ft+16>>2]=0,br[ft+20>>2]=0,Wr=37876+(zr<<2)|0;u:{if((it=br[9394])&(ot=1<>>1|0)|0:0),it=br[Wr>>2];;){if((0|Kt)==(-8&br[(Wr=it)+4>>2]))break u;if(ot=zr>>>29|0,zr<<=1,!(it=br[16+(ot=(4&ot)+Wr|0)>>2]))break}br[ot+16>>2]=ft}else br[9394]=ot|it,br[Wr>>2]=ft;br[ft+24>>2]=Wr,br[ft+12>>2]=ft,br[ft+8>>2]=ft;break l}zr=br[Wr+8>>2],br[zr+12>>2]=ft,br[Wr+8>>2]=ft,br[ft+24>>2]=0,br[ft+12>>2]=Wr,br[ft+8>>2]=zr}}if(!((zr=br[9396])>>>0<=jt>>>0)){Wr=zr-jt|0,br[9396]=Wr,zr=(ot=br[9399])+jt|0,br[9399]=zr,br[zr+4>>2]=1|Wr,br[ot+4>>2]=3|jt,zr=ot+8|0;break e}}br[9392]=48,zr=0;break e}ot=0}if(jt){it=br[at+28>>2];c:{if(br[(Wr=37876+(it<<2)|0)>>2]==(0|at)){if(br[Wr>>2]=ot,ot)break c;yo=37576,_o=br[9394]&ga(-2,it),br[yo>>2]=_o;break a}if(br[jt+(br[jt+16>>2]==(0|at)?16:20)>>2]=ot,!ot)break a}br[ot+24>>2]=jt,(Wr=br[at+16>>2])&&(br[ot+16>>2]=Wr,br[Wr+24>>2]=ot),(Wr=br[at+20>>2])&&(br[ot+20>>2]=Wr,br[Wr+24>>2]=ot)}}zr=zr+ft|0,Kt=br[4+(at=ft+at|0)>>2]}if(br[at+4>>2]=-2&Kt,br[ao+4>>2]=1|zr,br[zr+ao>>2]=zr,zr>>>0<=255)Wr=37612+(-8&zr)|0,(ot=br[9393])&(zr=1<<(zr>>>3))?zr=br[Wr+8>>2]:(br[9393]=zr|ot,zr=Wr),br[Wr+8>>2]=ao,br[zr+12>>2]=ao,br[ao+12>>2]=Wr,br[ao+8>>2]=zr;else{Kt=31,zr>>>0<=16777215&&(Kt=62+((zr>>>38-(Wr=Ql(zr>>>8|0))&1)-(Wr<<1)|0)|0),br[ao+28>>2]=Kt,br[ao+16>>2]=0,br[ao+20>>2]=0,Wr=37876+(Kt<<2)|0;n:{if((it=br[9394])&(ot=1<>>1|0)|0:0),ot=br[Wr>>2];;){if(Wr=ot,(-8&br[ot+4>>2])==(0|zr))break n;if(it=Kt>>>29|0,Kt<<=1,!(ot=br[16+(it=(4&it)+ot|0)>>2]))break}br[it+16>>2]=ao}else br[9394]=ot|it,br[Wr>>2]=ao;br[ao+24>>2]=Wr,br[ao+12>>2]=ao,br[ao+8>>2]=ao;break o}zr=br[Wr+8>>2],br[zr+12>>2]=ao,br[Wr+8>>2]=ao,br[ao+24>>2]=0,br[ao+12>>2]=Wr,br[ao+8>>2]=zr}}zr=Eo+8|0;break e}t:if(at){Wr=br[it+28>>2];o:{if(br[(zr=37876+(Wr<<2)|0)>>2]==(0|it)){if(br[zr>>2]=ot,ot)break o;Eo=ga(-2,Wr)&Eo,br[9394]=Eo;break t}if(br[at+(br[at+16>>2]==(0|it)?16:20)>>2]=ot,!ot)break t}br[ot+24>>2]=at,(zr=br[it+16>>2])&&(br[ot+16>>2]=zr,br[zr+24>>2]=ot),(zr=br[it+20>>2])&&(br[ot+20>>2]=zr,br[zr+24>>2]=ot)}t:if(Kt>>>0<=15)zr=Kt+jt|0,br[it+4>>2]=3|zr,br[4+(zr=zr+it|0)>>2]=1|br[zr+4>>2];else if(br[it+4>>2]=3|jt,br[4+(ft=it+jt|0)>>2]=1|Kt,br[ft+Kt>>2]=Kt,Kt>>>0<=255)Wr=37612+(-8&Kt)|0,(ot=br[9393])&(zr=1<<(Kt>>>3))?zr=br[Wr+8>>2]:(br[9393]=zr|ot,zr=Wr),br[Wr+8>>2]=ft,br[zr+12>>2]=ft,br[ft+12>>2]=Wr,br[ft+8>>2]=zr;else{zr=31,Kt>>>0<=16777215&&(zr=62+((Kt>>>38-(zr=Ql(Kt>>>8|0))&1)-(zr<<1)|0)|0),br[ft+28>>2]=zr,br[ft+16>>2]=0,br[ft+20>>2]=0,Wr=37876+(zr<<2)|0;o:{if((ot=1<>>1|0)|0:0),jt=br[Wr>>2];;){if((-8&br[(Wr=jt)+4>>2])==(0|Kt))break o;if(ot=zr>>>29|0,zr<<=1,!(jt=br[16+(ot=(4&ot)+Wr|0)>>2]))break}br[ot+16>>2]=ft}else br[9394]=ot|Eo,br[Wr>>2]=ft;br[ft+24>>2]=Wr,br[ft+12>>2]=ft,br[ft+8>>2]=ft;break t}zr=br[Wr+8>>2],br[zr+12>>2]=ft,br[Wr+8>>2]=ft,br[ft+24>>2]=0,br[ft+12>>2]=Wr,br[ft+8>>2]=zr}zr=it+8|0;break e}r:if(ao){Wr=br[ot+28>>2];t:{if(br[(zr=37876+(Wr<<2)|0)>>2]==(0|ot)){if(br[zr>>2]=it,it)break t;yo=37576,_o=ga(-2,Wr)&Eo,br[yo>>2]=_o;break r}if(br[ao+(br[ao+16>>2]==(0|ot)?16:20)>>2]=it,!it)break r}br[it+24>>2]=ao,(zr=br[ot+16>>2])&&(br[it+16>>2]=zr,br[zr+24>>2]=it),(zr=br[ot+20>>2])&&(br[it+20>>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t[0|_o])|0))<=15)Vt[0|_o]=it,Vt[0|yo]=0;else{if((0|(it=jt-ao|0))<-15)break e;for(Vt[0|_o]=it,it=Ur;;){if(!lt[0|(jt=(at+2016|0)+it|0)]){Vt[0|jt]=1;break r}if(Vt[0|jt]=0,jt=it>>>0<255,it=it+1|0,!jt)break}}if(!(ft>>>0>253)){r:if(jt=Vt[0|(Eo=(it=ft+2|0)+(at+2016|0)|0)])if((0|(jt=(yo=jt<<2)+(ao=Vt[0|_o])|0))>=16){if((0|(jt=ao-yo|0))<-15)break e;for(Vt[0|_o]=jt;;){if(lt[0|(jt=(at+2016|0)+it|0)]){if(Vt[0|jt]=0,jt=it>>>0<255,it=it+1|0,jt)continue;break r}break}Vt[0|jt]=1}else Vt[0|_o]=jt,Vt[0|Eo]=0;if(!(ft>>>0>252)){r:if(jt=Vt[0|(Eo=(it=ft+3|0)+(at+2016|0)|0)])if((0|(jt=(yo=jt<<3)+(ao=Vt[0|_o])|0))>=16){if((0|(jt=ao-yo|0))<-15)break e;for(Vt[0|_o]=jt;;){if(lt[0|(jt=(at+2016|0)+it|0)]){if(Vt[0|jt]=0,jt=it>>>0<255,it=it+1|0,jt)continue;break r}break}Vt[0|jt]=1}else Vt[0|_o]=jt,Vt[0|Eo]=0;if(!(ft>>>0>251)){r:if(jt=Vt[0|(Eo=(it=ft+4|0)+(at+2016|0)|0)])if((0|(jt=(yo=jt<<4)+(ao=Vt[0|_o])|0))>=16){if((0|(jt=ao-yo|0))<-15)break e;for(Vt[0|_o]=jt;;){if(lt[0|(jt=(at+2016|0)+it|0)]){if(Vt[0|jt]=0,jt=it>>>0<255,it=it+1|0,jt)continue;break r}break}Vt[0|jt]=1}else Vt[0|_o]=jt,Vt[0|Eo]=0;if(!(ft>>>0>250)){r:if(jt=Vt[0|(Eo=(it=ft+5|0)+(at+2016|0)|0)])if((0|(jt=(yo=jt<<5)+(ao=Vt[0|_o])|0))>=16){if((0|(jt=ao-yo|0))<-15)break e;for(Vt[0|_o]=jt;;){if(lt[0|(jt=(at+2016|0)+it|0)]){if(Vt[0|jt]=0,jt=it>>>0<255,it=it+1|0,jt)continue;break r}break}Vt[0|jt]=1}else Vt[0|_o]=jt,Vt[0|Eo]=0;if(!(ft>>>0>249)&&(ft=Vt[0|(yo=(it=ft+6|0)+(at+2016|0)|0)]))if((0|(ft=(ao=ft<<6)+(jt=Vt[0|_o])|0))>=16){if((0|(ft=jt-ao|0))<-15)break e;for(Vt[0|_o]=ft;;){if(lt[0|(ft=(at+2016|0)+it|0)]){if(Vt[0|ft]=0,ft=it>>>0<255,it=it+1|0,ft)continue;break e}break}Vt[0|ft]=1}else Vt[0|_o]=ft,Vt[0|yo]=0}}}}}if((0|Ur)==256)break}for(it=0;ft=Wr+(it>>>3|0)|0,Vt[(Ur=at+1760|0)+it|0]=lt[0|ft]>>>(6&it)&1,Vt[(jt=Ur)+(Ur=1|it)|0]=lt[0|ft]>>>(7&Ur)&1,(0|(it=it+2|0))!=256;);for(Ur=0;;){Wr=Ur,Ur=Ur+1|0;e:if(!(Wr>>>0>254)&<[0|(Eo=(it=at+1760|0)+Wr|0)]){r:if(it=Vt[0|(ao=Ur+it|0)])if((0|(it=(jt=it<<1)+(ft=Vt[0|Eo])|0))<=15)Vt[0|Eo]=it,Vt[0|ao]=0;else{if((0|(it=ft-jt|0))<-15)break e;for(Vt[0|Eo]=it,it=Ur;;){if(!lt[0|(ft=(at+1760|0)+it|0)]){Vt[0|ft]=1;break r}if(Vt[0|ft]=0,ft=it>>>0<255,it=it+1|0,!ft)break}}if(!(Wr>>>0>253)){r:if(ft=Vt[0|(yo=(it=Wr+2|0)+(at+1760|0)|0)])if((0|(ft=(ao=ft<<2)+(jt=Vt[0|Eo])|0))>=16){if((0|(ft=jt-ao|0))<-15)break e;for(Vt[0|Eo]=ft;;){if(lt[0|(ft=(at+1760|0)+it|0)]){if(Vt[0|ft]=0,ft=it>>>0<255,it=it+1|0,ft)continue;break r}break}Vt[0|ft]=1}else Vt[0|Eo]=ft,Vt[0|yo]=0;if(!(Wr>>>0>252)){r:if(ft=Vt[0|(yo=(it=Wr+3|0)+(at+1760|0)|0)])if((0|(ft=(ao=ft<<3)+(jt=Vt[0|Eo])|0))>=16){if((0|(ft=jt-ao|0))<-15)break e;for(Vt[0|Eo]=ft;;){if(lt[0|(ft=(at+1760|0)+it|0)]){if(Vt[0|ft]=0,ft=it>>>0<255,it=it+1|0,ft)continue;break r}break}Vt[0|ft]=1}else Vt[0|Eo]=ft,Vt[0|yo]=0;if(!(Wr>>>0>251)){r:if(ft=Vt[0|(yo=(it=Wr+4|0)+(at+1760|0)|0)])if((0|(ft=(ao=ft<<4)+(jt=Vt[0|Eo])|0))>=16){if((0|(ft=jt-ao|0))<-15)break e;for(Vt[0|Eo]=ft;;){if(lt[0|(ft=(at+1760|0)+it|0)]){if(Vt[0|ft]=0,ft=it>>>0<255,it=it+1|0,ft)continue;break r}break}Vt[0|ft]=1}else Vt[0|Eo]=ft,Vt[0|yo]=0;if(!(Wr>>>0>250)){r:if(ft=Vt[0|(yo=(it=Wr+5|0)+(at+1760|0)|0)])if((0|(ft=(ao=ft<<5)+(jt=Vt[0|Eo])|0))>=16){if((0|(ft=jt-ao|0))<-15)break e;for(Vt[0|Eo]=ft;;){if(lt[0|(ft=(at+1760|0)+it|0)]){if(Vt[0|ft]=0,ft=it>>>0<255,it=it+1|0,ft)continue;break r}break}Vt[0|ft]=1}else Vt[0|Eo]=ft,Vt[0|yo]=0;if(!(Wr>>>0>249)&&(Wr=Vt[0|(ao=(it=Wr+6|0)+(at+1760|0)|0)]))if((0|(Wr=(jt=Wr<<6)+(ft=Vt[0|Eo])|0))>=16){if((0|(Wr=ft-jt|0))<-15)break e;for(Vt[0|Eo]=Wr;;){if(lt[0|(Wr=(at+1760|0)+it|0)]){if(Vt[0|Wr]=0,Wr=it>>>0<255,it=it+1|0,Wr)continue;break e}break}Vt[0|Wr]=1}else Vt[0|Eo]=Wr,Vt[0|ao]=0}}}}}if((0|Ur)==256)break}for(Ho(it=at+480|0,Ao),Ur=br[Ao+36>>2],br[at+192>>2]=br[Ao+32>>2],br[at+196>>2]=Ur,Ur=br[Ao+28>>2],br[at+184>>2]=br[Ao+24>>2],br[at+188>>2]=Ur,Ur=br[Ao+20>>2],br[at+176>>2]=br[Ao+16>>2],br[at+180>>2]=Ur,Ur=br[Ao+12>>2],br[at+168>>2]=br[Ao+8>>2],br[at+172>>2]=Ur,Ur=br[Ao+4>>2],br[at+160>>2]=br[Ao>>2],br[at+164>>2]=Ur,Ur=br[Ao+52>>2],br[at+208>>2]=br[Ao+48>>2],br[at+212>>2]=Ur,Ur=br[Ao+60>>2],br[at+216>>2]=br[Ao+56>>2],br[at+220>>2]=Ur,Ur=br[4+(Wr=Ao- -64|0)>>2],br[at+224>>2]=br[Wr>>2],br[at+228>>2]=Ur,Ur=br[Ao+76>>2],br[at+232>>2]=br[Ao+72>>2],br[at+236>>2]=Ur,Ur=br[Ao+44>>2],br[at+200>>2]=br[Ao+40>>2],br[at+204>>2]=Ur,Ur=br[Ao+92>>2],br[at+248>>2]=br[Ao+88>>2],br[at+252>>2]=Ur,Ur=br[Ao+100>>2],br[at+256>>2]=br[Ao+96>>2],br[at+260>>2]=Ur,Ur=br[Ao+108>>2],br[at+264>>2]=br[Ao+104>>2],br[at+268>>2]=Ur,Ur=br[Ao+116>>2],br[at+272>>2]=br[Ao+112>>2],br[at+276>>2]=Ur,Ur=br[Ao+84>>2],br[at+240>>2]=br[Ao+80>>2],br[at+244>>2]=Ur,Ll(ft=at+320|0,Wr=at+160|0),ns(at,ft,$o=at+440|0),ns(at+40|0,Do=at+360|0,Fo=at+400|0),ns(at+80|0,Fo,$o),ns(at+120|0,ft,Do),_l(ft,at,it),ns(Wr,ft,$o),ns(Go=at+200|0,Do,Fo),ns(Xo=at+240|0,Fo,$o),ns(No=at+280|0,ft,Do),Ho(Ur=at+640|0,Wr),_l(ft,at,Ur),ns(Wr,ft,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,ft,Do),Ho(Ur=at+800|0,Wr),_l(ft,at,Ur),ns(Wr,ft,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,ft,Do),Ho(Ur=at+960|0,Wr),_l(ft,at,Ur),ns(Wr,ft,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,ft,Do),Ho(Ur=at+1120|0,Wr),_l(ft,at,Ur),ns(Wr,ft,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,ft,Do),Ho(Ur=at+1280|0,Wr),_l(ft,at,Ur),ns(Wr,ft,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,ft,Do),Ho(Ur=at+1440|0,Wr),_l(ft,at,Ur),ns(Wr,ft,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,ft,Do),Ho(at+1600|0,Wr),br[ot+32>>2]=0,br[ot+36>>2]=0,br[ot+24>>2]=0,br[ot+28>>2]=0,br[ot+16>>2]=0,br[ot+20>>2]=0,br[ot+8>>2]=0,br[ot+12>>2]=0,br[ot>>2]=0,br[ot+4>>2]=0,br[ot+44>>2]=0,br[ot+48>>2]=0,br[($a=ot+40|0)>>2]=1,br[ot+52>>2]=0,br[ot+56>>2]=0,br[ot+60>>2]=0,br[ot+64>>2]=0,br[ot+68>>2]=0,br[ot+72>>2]=0,br[ot+84>>2]=0,br[ot+88>>2]=0,br[ot+76>>2]=0,br[ot+80>>2]=1,br[ot+92>>2]=0,br[ot+96>>2]=0,br[ot+100>>2]=0,br[ot+104>>2]=0,br[ot+108>>2]=0,br[ot+112>>2]=0,br[ot+116>>2]=0,ys=ot+80|0,Ur=255;;){e:{r:{if(!lt[(Wr=at+2016|0)+Ur|0]&&!lt[(it=at+1760|0)+Ur|0]){if(!(lt[(ft=Wr)+(Wr=Ur-1|0)|0]|lt[Wr+it|0]))break r;Ur=Wr}if((0|Ur)<0)break e;for(;Ll(it=at+320|0,ot),Wr=Ur,(0|(ft=Vt[Ur+(at+2016|0)|0]))>0?(ns(Ur=at+160|0,it,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,it,Do),_l(it,Ur,(at+480|0)+w0((254&ft)>>>1|0,160)|0)):(0|ft)>=0||(ns(Ur=at+160|0,it=at+320|0,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,it,Do),oA(it,Ur,(at+480|0)+w0((0-ft&254)>>>1|0,160)|0)),(0|(os=Vt[Wr+(at+1760|0)|0]))>0?(ns(Ur=at+160|0,it=at+320|0,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,it,Do),CA(it,Ur,w0((254&os)>>>1|0,120)+1744|0)):(0|os)>=0||(ns(at+160|0,as=at+320|0,$o),ns(Go,Do,Fo),ns(Xo,Fo,$o),ns(No,as,Do),In=br[at+160>>2],_n=br[at+200>>2],Qn=br[at+164>>2],Mn=br[at+204>>2],Zo=br[at+168>>2],wn=br[at+208>>2],Nn=br[at+172>>2],Jn=br[at+212>>2],jn=br[at+176>>2],Zn=br[at+216>>2],xa=br[at+180>>2],_o=br[at+220>>2],Eo=br[at+184>>2],yo=br[at+224>>2],ao=br[at+188>>2],Ao=br[at+228>>2],jt=br[at+192>>2],ft=br[at+232>>2],it=br[at+236>>2],Ur=br[at+196>>2],br[at+396>>2]=it-Ur,br[at+392>>2]=ft-jt,br[at+388>>2]=Ao-ao,br[at+384>>2]=yo-Eo,br[at+380>>2]=_o-xa,br[at+376>>2]=Zn-jn,br[at+372>>2]=Jn-Nn,br[at+368>>2]=wn-Zo,br[at+364>>2]=Mn-Qn,br[at+360>>2]=_n-In,br[at+356>>2]=Ur+it,br[at+352>>2]=ft+jt,br[at+348>>2]=ao+Ao,br[at+344>>2]=Eo+yo,br[at+340>>2]=_o+xa,br[at+336>>2]=jn+Zn,br[at+332>>2]=Nn+Jn,br[at+328>>2]=Zo+wn,br[at+324>>2]=Qn+Mn,br[at+320>>2]=In+_n,ns(Fo,as,40+(Ur=w0((0-os&254)>>>1|0,120)+1744|0)|0),ns(Do,Do,Ur),ns($o,Ur+80|0,No),_s=br[at+276>>2],Hs=br[at+272>>2],os=br[at+268>>2],as=br[at+264>>2],Eo=br[at+260>>2],yo=br[at+256>>2],ao=br[at+252>>2],Ao=br[at+248>>2],jt=br[at+244>>2],ft=br[at+240>>2],Hn=br[at+360>>2],Vn=br[at+400>>2],ds=br[at+364>>2],Is=br[at+404>>2],Gn=br[at+368>>2],Xn=br[at+408>>2],In=br[at+372>>2],_n=br[at+412>>2],Qn=br[at+376>>2],Mn=br[at+416>>2],Zo=br[at+380>>2],wn=br[at+420>>2],Nn=br[at+384>>2],Jn=br[at+424>>2],jn=br[at+388>>2],Zn=br[at+428>>2],xa=br[at+392>>2],_o=br[at+432>>2],it=br[at+396>>2],Ur=br[at+436>>2],br[at+396>>2]=it+Ur,br[at+392>>2]=_o+xa,br[at+388>>2]=jn+Zn,br[at+384>>2]=Nn+Jn,br[at+380>>2]=Zo+wn,br[at+376>>2]=Qn+Mn,br[at+372>>2]=In+_n,br[at+368>>2]=Gn+Xn,br[at+364>>2]=ds+Is,br[at+360>>2]=Hn+Vn,br[at+356>>2]=Ur-it,br[at+352>>2]=_o-xa,br[at+348>>2]=Zn-jn,br[at+344>>2]=Jn-Nn,br[at+340>>2]=wn-Zo,br[at+336>>2]=Mn-Qn,br[at+332>>2]=_n-In,br[at+328>>2]=Xn-Gn,br[at+324>>2]=Is-ds,br[at+320>>2]=Vn-Hn,In=ft<<1,_n=br[at+440>>2],br[at+400>>2]=In-_n,Qn=jt<<1,Mn=br[at+444>>2],br[at+404>>2]=Qn-Mn,Zo=Ao<<1,wn=br[at+448>>2],br[at+408>>2]=Zo-wn,Nn=ao<<1,Jn=br[at+452>>2],br[at+412>>2]=Nn-Jn,jn=yo<<1,Zn=br[at+456>>2],br[at+416>>2]=jn-Zn,xa=Eo<<1,_o=br[at+460>>2],br[at+420>>2]=xa-_o,Eo=as<<1,yo=br[at+464>>2],br[at+424>>2]=Eo-yo,ao=os<<1,Ao=br[at+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[jt+3|0]<<24)^Wr<<3,yo=it+16|0,Eo=it+48|0,at=it- -64|0,Ao=it+80|0,Kt=it+96|0,ao=it+112|0;Wr=br[ao+12>>2],br[ft+280>>2]=br[ao+8>>2],br[ft+284>>2]=Wr,Wr=br[ao+4>>2],br[ft+272>>2]=br[ao>>2],br[ft+276>>2]=Wr,Wr=br[Kt+12>>2],br[ft+248>>2]=br[Kt+8>>2],br[ft+252>>2]=Wr,Wr=br[Kt+4>>2],br[ft+240>>2]=br[Kt>>2],br[ft+244>>2]=Wr,Wr=br[ao+12>>2],br[ft+232>>2]=br[ao+8>>2],br[ft+236>>2]=Wr,Wr=br[ao+4>>2],br[ft+224>>2]=br[ao>>2],br[ft+228>>2]=Wr,Mo(_o=ft+256|0,ft+240|0,ft+224|0),Wr=br[ft+268>>2],br[ao+8>>2]=br[ft+264>>2],br[ao+12>>2]=Wr,Wr=br[ft+260>>2],br[ao>>2]=br[ft+256>>2],br[ao+4>>2]=Wr,Wr=br[Ao+12>>2],br[ft+216>>2]=br[Ao+8>>2],br[ft+220>>2]=Wr,Wr=br[Ao+4>>2],br[ft+208>>2]=br[Ao>>2],br[ft+212>>2]=Wr,Wr=br[Kt+12>>2],br[ft+200>>2]=br[Kt+8>>2],br[ft+204>>2]=Wr,Wr=br[Kt+4>>2],br[ft+192>>2]=br[Kt>>2],br[ft+196>>2]=Wr,Mo(_o,ft+208|0,ft+192|0),Wr=br[ft+268>>2],br[Kt+8>>2]=br[ft+264>>2],br[Kt+12>>2]=Wr,Wr=br[ft+260>>2],br[Kt>>2]=br[ft+256>>2],br[Kt+4>>2]=Wr,Wr=br[at+12>>2],br[ft+184>>2]=br[at+8>>2],br[ft+188>>2]=Wr,Wr=br[at+4>>2],br[ft+176>>2]=br[at>>2],br[ft+180>>2]=Wr,Wr=br[Ao+12>>2],br[ft+168>>2]=br[Ao+8>>2],br[ft+172>>2]=Wr,Wr=br[Ao+4>>2],br[ft+160>>2]=br[Ao>>2],br[ft+164>>2]=Wr,Mo(_o,ft+176|0,ft+160|0),Wr=br[ft+268>>2],br[Ao+8>>2]=br[ft+264>>2],br[Ao+12>>2]=Wr,Wr=br[ft+260>>2],br[Ao>>2]=br[ft+256>>2],br[Ao+4>>2]=Wr,Wr=br[Eo+12>>2],br[ft+152>>2]=br[Eo+8>>2],br[ft+156>>2]=Wr,Wr=br[Eo+4>>2],br[ft+144>>2]=br[Eo>>2],br[ft+148>>2]=Wr,Wr=br[at+12>>2],br[ft+136>>2]=br[at+8>>2],br[ft+140>>2]=Wr,Wr=br[at+4>>2],br[ft+128>>2]=br[at>>2],br[ft+132>>2]=Wr,Mo(_o,ft+144|0,ft+128|0),Wr=br[ft+268>>2],br[at+8>>2]=br[ft+264>>2],br[at+12>>2]=Wr,Wr=br[ft+260>>2],br[at>>2]=br[ft+256>>2],br[at+4>>2]=Wr,Wr=br[jt+12>>2],br[ft+120>>2]=br[jt+8>>2],br[ft+124>>2]=Wr,Wr=br[jt+4>>2],br[ft+112>>2]=br[jt>>2],br[ft+116>>2]=Wr,Wr=br[Eo+12>>2],br[ft+104>>2]=br[Eo+8>>2],br[ft+108>>2]=Wr,Wr=br[Eo+4>>2],br[ft+96>>2]=br[Eo>>2],br[ft+100>>2]=Wr,Mo(_o,ft+112|0,ft+96|0),Wr=br[ft+268>>2],br[Eo+8>>2]=br[ft+264>>2],br[Eo+12>>2]=Wr,Wr=br[ft+260>>2],br[Eo>>2]=br[ft+256>>2],br[Eo+4>>2]=Wr,Wr=br[yo+12>>2],br[ft+88>>2]=br[yo+8>>2],br[ft+92>>2]=Wr,Wr=br[yo+4>>2],br[ft+80>>2]=br[yo>>2],br[ft+84>>2]=Wr,Wr=br[jt+12>>2],br[ft+72>>2]=br[jt+8>>2],br[ft+76>>2]=Wr,Wr=br[jt+4>>2],br[ft+64>>2]=br[jt>>2],br[ft+68>>2]=Wr,Mo(_o,ft+80|0,ft- -64|0),Wr=br[ft+268>>2],br[jt+8>>2]=br[ft+264>>2],br[jt+12>>2]=Wr,Wr=br[ft+260>>2],br[jt>>2]=br[ft+256>>2],br[jt+4>>2]=Wr,Wr=br[it+12>>2],br[ft+56>>2]=br[it+8>>2],br[ft+60>>2]=Wr,Wr=br[it+4>>2],br[ft+48>>2]=br[it>>2],br[ft+52>>2]=Wr,Wr=br[yo+12>>2],br[ft+40>>2]=br[yo+8>>2],br[ft+44>>2]=Wr,Wr=br[yo+4>>2],br[ft+32>>2]=br[yo>>2],br[ft+36>>2]=Wr,Mo(_o,ft+48|0,ft+32|0),Wr=br[ft+268>>2],br[yo+8>>2]=br[ft+264>>2],br[yo+12>>2]=Wr,Wr=br[ft+260>>2],br[yo>>2]=br[ft+256>>2],br[yo+4>>2]=Wr,Wr=br[ft+284>>2],br[ft+24>>2]=br[ft+280>>2],br[ft+28>>2]=Wr,Wr=br[ft+276>>2],br[ft+16>>2]=br[ft+272>>2],br[ft+20>>2]=Wr,Wr=br[it+12>>2],br[ft+8>>2]=br[it+8>>2],br[ft+12>>2]=Wr,Wr=br[it+4>>2],br[ft>>2]=br[it>>2],br[ft+4>>2]=Wr,Mo(_o,ft+16|0,ft),Wr=br[ft+268>>2],br[it+8>>2]=br[ft+264>>2],br[it+12>>2]=Wr,Wr=br[ft+260>>2],br[it>>2]=br[ft+256>>2],br[it+4>>2]=Wr,Go=$o^(lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24),br[it+12>>2]=Go,Xo=Do^(lt[it+8|0]|lt[it+9|0]<<8|lt[it+10|0]<<16|lt[it+11|0]<<24),br[it+8>>2]=Xo,In=Fo^(lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24),br[it+4>>2]=In,_n=ot^(lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24),br[it>>2]=_n,Qn=ot^(lt[0|at]|lt[at+1|0]<<8|lt[at+2|0]<<16|lt[at+3|0]<<24),br[at>>2]=Qn,Mn=Fo^(lt[it+68|0]|lt[it+69|0]<<8|lt[it+70|0]<<16|lt[it+71|0]<<24),br[it+68>>2]=Mn,Zo=Do^(lt[it+72|0]|lt[it+73|0]<<8|lt[it+74|0]<<16|lt[it+75|0]<<24),br[it+72>>2]=Zo,wn=$o^(lt[it+76|0]|lt[it+77|0]<<8|lt[it+78|0]<<16|lt[it+79|0]<<24),br[it+76>>2]=wn,(0|(No=No+1|0))!=7;);e:{r:{t:{if(Wr=Ur-16|0){if((0|Wr)==16)break t;break r}at=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,jt=lt[it+48|0]|lt[it+49|0]<<8|lt[it+50|0]<<16|lt[it+51|0]<<24,yo=lt[it+32|0]|lt[it+33|0]<<8|lt[it+34|0]<<16|lt[it+35|0]<<24,Eo=lt[it+96|0]|lt[it+97|0]<<8|lt[it+98|0]<<16|lt[it+99|0]<<24,Ao=lt[it+80|0]|lt[it+81|0]<<8|lt[it+82|0]<<16|lt[it+83|0]<<24,Kt=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,ao=lt[it+52|0]|lt[it+53|0]<<8|lt[it+54|0]<<16|lt[it+55|0]<<24,_o=lt[it+36|0]|lt[it+37|0]<<8|lt[it+38|0]<<16|lt[it+39|0]<<24,$o=lt[it+100|0]|lt[it+101|0]<<8|lt[it+102|0]<<16|lt[it+103|0]<<24,Do=lt[it+84|0]|lt[it+85|0]<<8|lt[it+86|0]<<16|lt[it+87|0]<<24,Fo=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,No=lt[it+56|0]|lt[it+57|0]<<8|lt[it+58|0]<<16|lt[it+59|0]<<24,ot=lt[it+40|0]|lt[it+41|0]<<8|lt[it+42|0]<<16|lt[it+43|0]<<24,Wr=lt[it+104|0]|lt[it+105|0]<<8|lt[it+106|0]<<16|lt[it+107|0]<<24,Ur=lt[it+88|0]|lt[it+89|0]<<8|lt[it+90|0]<<16|lt[it+91|0]<<24,it=Go^(lt[it+28|0]|lt[it+29|0]<<8|lt[it+30|0]<<16|lt[it+31|0]<<24)^(lt[it+60|0]|lt[it+61|0]<<8|lt[it+62|0]<<16|lt[it+63|0]<<24)^(lt[it+44|0]|lt[it+45|0]<<8|lt[it+46|0]<<16|lt[it+47|0]<<24)^(lt[it+92|0]|lt[it+93|0]<<8|lt[it+94|0]<<16|lt[it+95|0]<<24)^(lt[it+108|0]|lt[it+109|0]<<8|lt[it+110|0]<<16|lt[it+111|0]<<24)^wn,Vt[zr+12|0]=it,Vt[zr+13|0]=it>>>8,Vt[zr+14|0]=it>>>16,Vt[zr+15|0]=it>>>24,Ur=Fo^No^ot^Ur^Wr^Zo^Xo,Vt[zr+8|0]=Ur,Vt[zr+9|0]=Ur>>>8,Vt[zr+10|0]=Ur>>>16,Vt[zr+11|0]=Ur>>>24,Ur=Kt^ao^_o^$o^Do^Mn^In,Vt[zr+4|0]=Ur,Vt[zr+5|0]=Ur>>>8,Vt[zr+6|0]=Ur>>>16,Vt[zr+7|0]=Ur>>>24,Ur=at^jt^yo^Eo^Ao^Qn^_n,Vt[0|zr]=Ur,Vt[zr+1|0]=Ur>>>8,Vt[zr+2|0]=Ur>>>16,Vt[zr+3|0]=Ur>>>24;break e}ao=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,_o=lt[it+48|0]|lt[it+49|0]<<8|lt[it+50|0]<<16|lt[it+51|0]<<24,$o=lt[it+32|0]|lt[it+33|0]<<8|lt[it+34|0]<<16|lt[it+35|0]<<24,Do=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,Fo=lt[it+52|0]|lt[it+53|0]<<8|lt[it+54|0]<<16|lt[it+55|0]<<24,No=lt[it+36|0]|lt[it+37|0]<<8|lt[it+38|0]<<16|lt[it+39|0]<<24,ot=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,Wr=lt[it+56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]<<16|lt[it+103|0]<<24,No=lt[it+88|0]|lt[it+89|0]<<8|lt[it+90|0]<<16|lt[it+91|0]<<24,ot=lt[it+72|0]|lt[it+73|0]<<8|lt[it+74|0]<<16|lt[it+75|0]<<24,Wr=lt[it+120|0]|lt[it+121|0]<<8|lt[it+122|0]<<16|lt[it+123|0]<<24,Ur=lt[it+104|0]|lt[it+105|0]<<8|lt[it+106|0]<<16|lt[it+107|0]<<24,it=(lt[it+92|0]|lt[it+93|0]<<8|lt[it+94|0]<<16|lt[it+95|0]<<24)^(lt[it+76|0]|lt[it+77|0]<<8|lt[it+78|0]<<16|lt[it+79|0]<<24)^(lt[it+124|0]|lt[it+125|0]<<8|lt[it+126|0]<<16|lt[it+127|0]<<24)^(lt[it+108|0]|lt[it+109|0]<<8|lt[it+110|0]<<16|lt[it+111|0]<<24),Vt[zr+28|0]=it,Vt[zr+29|0]=it>>>8,Vt[zr+30|0]=it>>>16,Vt[zr+31|0]=it>>>24,Ur=No^ot^Ur^Wr,Vt[zr+24|0]=Ur,Vt[zr+25|0]=Ur>>>8,Vt[zr+26|0]=Ur>>>16,Vt[zr+27|0]=Ur>>>24,Ur=_o^$o^Do^Fo,Vt[zr+20|0]=Ur,Vt[zr+21|0]=Ur>>>8,Vt[zr+22|0]=Ur>>>16,Vt[zr+23|0]=Ur>>>24,Ur=Eo^Ao^Kt^ao,Vt[zr+16|0]=Ur,Vt[zr+17|0]=Ur>>>8,Vt[zr+18|0]=Ur>>>16,Vt[zr+19|0]=Ur>>>24;break e}q0(zr,0,Ur)}On=ft+288|0}function Xu(zr,Ur,Wr,ot){var it=0,ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0,Nn=0,Jn=0,jn=0,Zn=0,xa=0;for(it=lt[0|Ur]|lt[Ur+1|0]<<8|lt[Ur+2|0]<<16|lt[Ur+3|0]<<24,br[Wr>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+4|0]|lt[Ur+5|0]<<8|lt[Ur+6|0]<<16|lt[Ur+7|0]<<24,br[Wr+4>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+8|0]|lt[Ur+9|0]<<8|lt[Ur+10|0]<<16|lt[Ur+11|0]<<24,br[Wr+8>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+12|0]|lt[Ur+13|0]<<8|lt[Ur+14|0]<<16|lt[Ur+15|0]<<24,br[Wr+12>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+16|0]|lt[Ur+17|0]<<8|lt[Ur+18|0]<<16|lt[Ur+19|0]<<24,br[Wr+16>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+20|0]|lt[Ur+21|0]<<8|lt[Ur+22|0]<<16|lt[Ur+23|0]<<24,br[Wr+20>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+24|0]|lt[Ur+25|0]<<8|lt[Ur+26|0]<<16|lt[Ur+27|0]<<24,br[Wr+24>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+28|0]|lt[Ur+29|0]<<8|lt[Ur+30|0]<<16|lt[Ur+31|0]<<24,br[Wr+28>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+32|0]|lt[Ur+33|0]<<8|lt[Ur+34|0]<<16|lt[Ur+35|0]<<24,br[Wr+32>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+36|0]|lt[Ur+37|0]<<8|lt[Ur+38|0]<<16|lt[Ur+39|0]<<24,br[Wr+36>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+40|0]|lt[Ur+41|0]<<8|lt[Ur+42|0]<<16|lt[Ur+43|0]<<24,br[Wr+40>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+44|0]|lt[Ur+45|0]<<8|lt[Ur+46|0]<<16|lt[Ur+47|0]<<24,br[Wr+44>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+48|0]|lt[Ur+49|0]<<8|lt[Ur+50|0]<<16|lt[Ur+51|0]<<24,br[Wr+48>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+52|0]|lt[Ur+53|0]<<8|lt[Ur+54|0]<<16|lt[Ur+55|0]<<24,br[Wr+52>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,it=lt[Ur+56|0]|lt[Ur+57|0]<<8|lt[Ur+58|0]<<16|lt[Ur+59|0]<<24,br[Wr+56>>2]=it<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Ur=lt[Ur+60|0]|lt[Ur+61|0]<<8|lt[Ur+62|0]<<16|lt[Ur+63|0]<<24,br[Wr+60>>2]=Ur<<24|(65280&Ur)<<8|Ur>>>8&65280|Ur>>>24,Ur=br[zr+28>>2],br[ot+24>>2]=br[zr+24>>2],br[ot+28>>2]=Ur,Ur=br[zr+20>>2],br[ot+16>>2]=br[zr+16>>2],br[ot+20>>2]=Ur,Ur=br[zr+12>>2],br[ot+8>>2]=br[zr+8>>2],br[ot+12>>2]=Ur,Ur=br[zr+4>>2],br[ot>>2]=br[zr>>2],br[ot+4>>2]=Ur;jt=br[ot+28>>2],it=(Ur=In<<2)+Wr|0,Kt=br[ot+16>>2],ao=br[it>>2]+(ga(Kt,26)^ga(Kt,21)^ga(Kt,7))|0,Ao=(jt=((ft=br[Ur+34432>>2]+ao|0)+(Kt&((ao=br[ot+24>>2])^(yo=br[ot+20>>2]))^ao)|0)+jt|0)+br[ot+12>>2]|0,br[ot+12>>2]=Ao,jt=($o=jt+(ga(Eo=br[ot>>2],30)^ga(Eo,19)^ga(Eo,10))|0)+(Eo&((ft=br[ot+8>>2])|(at=br[ot+4>>2]))|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zr+27|0]=$a>>>24,as=jn^ft&Qn^as^_n,Vt[zr+20|0]=as,Vt[zr+21|0]=as>>>8,Vt[zr+22|0]=as>>>16,Vt[zr+23|0]=as>>>24,os=Jn^Nn&In^os^Xo,Vt[zr+16|0]=os,Vt[zr+17|0]=os>>>8,Vt[zr+18|0]=os>>>16,Vt[zr+19|0]=os>>>24,xa=Go&at^xa^No^jt,Vt[zr+12|0]=xa,Vt[zr+13|0]=xa>>>8,Vt[zr+14|0]=xa>>>16,Vt[zr+15|0]=xa>>>24,Zn=Zn&Fo^$o^Do^Kt,Vt[zr+8|0]=Zn,Vt[zr+9|0]=Zn>>>8,Vt[zr+10|0]=Zn>>>16,Vt[zr+11|0]=Zn>>>24,jn=jn&_o^Ao^yo^ft,Vt[zr+4|0]=jn,Vt[zr+5|0]=jn>>>8,Vt[zr+6|0]=jn>>>16,Vt[zr+7|0]=jn>>>24,Jn=Nn^Jn&Eo^ao^wn,Vt[0|zr]=Jn,Vt[zr+1|0]=Jn>>>8,Vt[zr+2|0]=Jn>>>16,Vt[zr+3|0]=Jn>>>24,zr=br[Wr+124>>2],br[ot+280>>2]=br[Wr+120>>2],br[ot+284>>2]=zr,zr=br[Wr+116>>2],br[ot+272>>2]=br[Wr+112>>2],br[ot+276>>2]=zr,zr=br[Wr+108>>2],br[ot+248>>2]=br[Wr+104>>2],br[ot+252>>2]=zr,zr=br[Wr+100>>2],br[ot+240>>2]=br[Wr+96>>2],br[ot+244>>2]=zr,zr=br[Wr+124>>2],br[ot+232>>2]=br[Wr+120>>2],br[ot+236>>2]=zr,zr=br[Wr+116>>2],br[ot+224>>2]=br[Wr+112>>2],br[ot+228>>2]=zr,Mo(Ur=ot+256|0,ot+240|0,ot+224|0),zr=br[ot+268>>2],br[Wr+120>>2]=br[ot+264>>2],br[Wr+124>>2]=zr,zr=br[ot+260>>2],br[Wr+112>>2]=br[ot+256>>2],br[Wr+116>>2]=zr,zr=br[Wr+92>>2],br[ot+216>>2]=br[Wr+88>>2],br[ot+220>>2]=zr,zr=br[Wr+84>>2],br[ot+208>>2]=br[Wr+80>>2],br[ot+212>>2]=zr,zr=br[Wr+108>>2],br[ot+200>>2]=br[Wr+104>>2],br[ot+204>>2]=zr,zr=br[Wr+100>>2],br[ot+192>>2]=br[Wr+96>>2],br[ot+196>>2]=zr,Mo(Ur,ot+208|0,ot+192|0),zr=br[ot+268>>2],br[Wr+104>>2]=br[ot+264>>2],br[Wr+108>>2]=zr,zr=br[ot+260>>2],br[Wr+96>>2]=br[ot+256>>2],br[Wr+100>>2]=zr,zr=br[Wr+76>>2],br[ot+184>>2]=br[Wr+72>>2],br[ot+188>>2]=zr,Nn=br[4+(zr=Wr- -64|0)>>2],br[ot+176>>2]=br[zr>>2],br[ot+180>>2]=Nn,Nn=br[Wr+92>>2],br[ot+168>>2]=br[Wr+88>>2],br[ot+172>>2]=Nn,Nn=br[Wr+84>>2],br[ot+160>>2]=br[Wr+80>>2],br[ot+164>>2]=Nn,Mo(Ur,ot+176|0,ot+160|0),Nn=br[ot+268>>2],br[Wr+88>>2]=br[ot+264>>2],br[Wr+92>>2]=Nn,Nn=br[ot+260>>2],br[Wr+80>>2]=br[ot+256>>2],br[Wr+84>>2]=Nn,Nn=br[Wr+60>>2],br[ot+152>>2]=br[Wr+56>>2],br[ot+156>>2]=Nn,Nn=br[Wr+52>>2],br[ot+144>>2]=br[Wr+48>>2],br[ot+148>>2]=Nn,Nn=br[Wr+76>>2],br[ot+136>>2]=br[Wr+72>>2],br[ot+140>>2]=Nn,Nn=br[zr+4>>2],br[ot+128>>2]=br[zr>>2],br[ot+132>>2]=Nn,Mo(Ur,ot+144|0,ot+128|0),Nn=br[ot+268>>2],br[Wr+72>>2]=br[ot+264>>2],br[Wr+76>>2]=Nn,Nn=br[ot+260>>2],br[zr>>2]=br[ot+256>>2],br[zr+4>>2]=Nn,Nn=br[Wr+44>>2],br[ot+120>>2]=br[Wr+40>>2],br[ot+124>>2]=Nn,Nn=br[Wr+36>>2],br[ot+112>>2]=br[Wr+32>>2],br[ot+116>>2]=Nn,Nn=br[Wr+60>>2],br[ot+104>>2]=br[Wr+56>>2],br[ot+108>>2]=Nn,Nn=br[Wr+52>>2],br[ot+96>>2]=br[Wr+48>>2],br[ot+100>>2]=Nn,Mo(Ur,ot+112|0,ot+96|0),Nn=br[ot+268>>2],br[Wr+56>>2]=br[ot+264>>2],br[Wr+60>>2]=Nn,Nn=br[ot+260>>2],br[Wr+48>>2]=br[ot+256>>2],br[Wr+52>>2]=Nn,Nn=br[Wr+28>>2],br[ot+88>>2]=br[Wr+24>>2],br[ot+92>>2]=Nn,Nn=br[Wr+20>>2],br[ot+80>>2]=br[Wr+16>>2],br[ot+84>>2]=Nn,Nn=br[Wr+44>>2],br[ot+72>>2]=br[Wr+40>>2],br[ot+76>>2]=Nn,Nn=br[Wr+36>>2],br[ot+64>>2]=br[Wr+32>>2],br[ot+68>>2]=Nn,Mo(Ur,ot+80|0,ot- -64|0),Nn=br[ot+268>>2],br[Wr+40>>2]=br[ot+264>>2],br[Wr+44>>2]=Nn,Nn=br[ot+260>>2],br[Wr+32>>2]=br[ot+256>>2],br[Wr+36>>2]=Nn,Nn=br[Wr+12>>2],br[ot+56>>2]=br[Wr+8>>2],br[ot+60>>2]=Nn,Nn=br[Wr+4>>2],br[ot+48>>2]=br[Wr>>2],br[ot+52>>2]=Nn,Nn=br[Wr+28>>2],br[ot+40>>2]=br[Wr+24>>2],br[ot+44>>2]=Nn,Nn=br[Wr+20>>2],br[ot+32>>2]=br[Wr+16>>2],br[ot+36>>2]=Nn,Mo(Ur,ot+48|0,ot+32|0),Nn=br[ot+268>>2],br[Wr+24>>2]=br[ot+264>>2],br[Wr+28>>2]=Nn,Nn=br[ot+260>>2],br[Wr+16>>2]=br[ot+256>>2],br[Wr+20>>2]=Nn,Nn=br[ot+284>>2],br[ot+24>>2]=br[ot+280>>2],br[ot+28>>2]=Nn,Nn=br[ot+276>>2],br[ot+16>>2]=br[ot+272>>2],br[ot+20>>2]=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>2],br[ot+208>>2]=br[Wr+80>>2],br[ot+212>>2]=zr,zr=br[Wr+108>>2],br[ot+200>>2]=br[Wr+104>>2],br[ot+204>>2]=zr,zr=br[Wr+100>>2],br[ot+192>>2]=br[Wr+96>>2],br[ot+196>>2]=zr,Mo(Ur,ot+208|0,ot+192|0),zr=br[ot+268>>2],br[Wr+104>>2]=br[ot+264>>2],br[Wr+108>>2]=zr,zr=br[ot+260>>2],br[Wr+96>>2]=br[ot+256>>2],br[Wr+100>>2]=zr,zr=br[Wr+76>>2],br[ot+184>>2]=br[Wr+72>>2],br[ot+188>>2]=zr,$a=br[4+(zr=Wr- -64|0)>>2],br[ot+176>>2]=br[zr>>2],br[ot+180>>2]=$a,$a=br[Wr+92>>2],br[ot+168>>2]=br[Wr+88>>2],br[ot+172>>2]=$a,$a=br[Wr+84>>2],br[ot+160>>2]=br[Wr+80>>2],br[ot+164>>2]=$a,Mo(Ur,ot+176|0,ot+160|0),$a=br[ot+268>>2],br[Wr+88>>2]=br[ot+264>>2],br[Wr+92>>2]=$a,$a=br[ot+260>>2],br[Wr+80>>2]=br[ot+256>>2],br[Wr+84>>2]=$a,$a=br[Wr+60>>2],br[ot+152>>2]=br[Wr+56>>2],br[ot+156>>2]=$a,$a=br[Wr+52>>2],br[ot+144>>2]=br[Wr+48>>2],br[ot+148>>2]=$a,$a=br[Wr+76>>2],br[ot+136>>2]=br[Wr+72>>2],br[ot+140>>2]=$a,$a=br[zr+4>>2],br[ot+128>>2]=br[zr>>2],br[ot+132>>2]=$a,Mo(Ur,ot+144|0,ot+128|0),$a=br[ot+268>>2],br[Wr+72>>2]=br[ot+264>>2],br[Wr+76>>2]=$a,$a=br[ot+260>>2],br[zr>>2]=br[ot+256>>2],br[zr+4>>2]=$a,$a=br[Wr+44>>2],br[ot+120>>2]=br[Wr+40>>2],br[ot+124>>2]=$a,$a=br[Wr+36>>2],br[ot+112>>2]=br[Wr+32>>2],br[ot+116>>2]=$a,$a=br[Wr+60>>2],br[ot+104>>2]=br[Wr+56>>2],br[ot+108>>2]=$a,$a=br[Wr+52>>2],br[ot+96>>2]=br[Wr+48>>2],br[ot+100>>2]=$a,Mo(Ur,ot+112|0,ot+96|0),$a=br[ot+268>>2],br[Wr+56>>2]=br[ot+264>>2],br[Wr+60>>2]=$a,$a=br[ot+260>>2],br[Wr+48>>2]=br[ot+256>>2],br[Wr+52>>2]=$a,$a=br[Wr+28>>2],br[ot+88>>2]=br[Wr+24>>2],br[ot+92>>2]=$a,$a=br[Wr+20>>2],br[ot+80>>2]=br[Wr+16>>2],br[ot+84>>2]=$a,$a=br[Wr+44>>2],br[ot+72>>2]=br[Wr+40>>2],br[ot+76>>2]=$a,$a=br[Wr+36>>2],br[ot+64>>2]=br[Wr+32>>2],br[ot+68>>2]=$a,Mo(Ur,ot+80|0,ot- -64|0),$a=br[ot+268>>2],br[Wr+40>>2]=br[ot+264>>2],br[Wr+44>>2]=$a,$a=br[ot+260>>2],br[Wr+32>>2]=br[ot+256>>2],br[Wr+36>>2]=$a,$a=br[Wr+12>>2],br[ot+56>>2]=br[Wr+8>>2],br[ot+60>>2]=$a,$a=br[Wr+4>>2],br[ot+48>>2]=br[Wr>>2],br[ot+52>>2]=$a,$a=br[Wr+28>>2],br[ot+40>>2]=br[Wr+24>>2],br[ot+44>>2]=$a,$a=br[Wr+20>>2],br[ot+32>>2]=br[Wr+16>>2],br[ot+36>>2]=$a,Mo(Ur,ot+48|0,ot+32|0),$a=br[ot+268>>2],br[Wr+24>>2]=br[ot+264>>2],br[Wr+28>>2]=$a,$a=br[ot+260>>2],br[Wr+16>>2]=br[ot+256>>2],br[Wr+20>>2]=$a,$a=br[ot+284>>2],br[ot+24>>2]=br[ot+280>>2],br[ot+28>>2]=$a,$a=br[ot+276>>2],br[ot+16>>2]=br[ot+272>>2],br[ot+20>>2]=$a,$a=br[Wr+12>>2],br[ot+8>>2]=br[Wr+8>>2],br[ot+12>>2]=$a,$a=br[Wr+4>>2],br[ot>>2]=br[Wr>>2],br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o=(lt[0|(Kt=it+48|0)]|lt[Kt+1|0]<<8|lt[Kt+2|0]<<16|lt[Kt+3|0]<<24)^Wr<<3,at=it+16|0,jt=it+32|0,ao=it- -64|0,Eo=it+80|0;Wr=br[Eo+12>>2],br[ft+216>>2]=br[Eo+8>>2],br[ft+220>>2]=Wr,Wr=br[Eo+4>>2],br[ft+208>>2]=br[Eo>>2],br[ft+212>>2]=Wr,Wr=br[ao+12>>2],br[ft+184>>2]=br[ao+8>>2],br[ft+188>>2]=Wr,Wr=br[ao+4>>2],br[ft+176>>2]=br[ao>>2],br[ft+180>>2]=Wr,Wr=br[Eo+12>>2],br[ft+168>>2]=br[Eo+8>>2],br[ft+172>>2]=Wr,Wr=br[Eo+4>>2],br[ft+160>>2]=br[Eo>>2],br[ft+164>>2]=Wr,Mo(ot=ft+192|0,ft+176|0,ft+160|0),Wr=br[ft+204>>2],br[Eo+8>>2]=br[ft+200>>2],br[Eo+12>>2]=Wr,Wr=br[ft+196>>2],br[Eo>>2]=br[ft+192>>2],br[Eo+4>>2]=Wr,Wr=br[Kt+12>>2],br[ft+152>>2]=br[Kt+8>>2],br[ft+156>>2]=Wr,Wr=br[Kt+4>>2],br[ft+144>>2]=br[Kt>>2],br[ft+148>>2]=Wr,Wr=br[ao+12>>2],br[ft+136>>2]=br[ao+8>>2],br[ft+140>>2]=Wr,Wr=br[ao+4>>2],br[ft+128>>2]=br[ao>>2],br[ft+132>>2]=Wr,Mo(ot,ft+144|0,ft+128|0),Wr=br[ft+204>>2],br[ao+8>>2]=br[ft+200>>2],br[ao+12>>2]=Wr,Wr=br[ft+196>>2],br[ao>>2]=br[ft+192>>2],br[ao+4>>2]=Wr,Wr=br[jt+12>>2],br[ft+120>>2]=br[jt+8>>2],br[ft+124>>2]=Wr,Wr=br[jt+4>>2],br[ft+112>>2]=br[jt>>2],br[ft+116>>2]=Wr,Wr=br[Kt+12>>2],br[ft+104>>2]=br[Kt+8>>2],br[ft+108>>2]=Wr,Wr=br[Kt+4>>2],br[ft+96>>2]=br[Kt>>2],br[ft+100>>2]=Wr,Mo(ot,ft+112|0,ft+96|0),Wr=br[ft+204>>2],br[Kt+8>>2]=br[ft+200>>2],br[Kt+12>>2]=Wr,Wr=br[ft+196>>2],br[Kt>>2]=br[ft+192>>2],br[Kt+4>>2]=Wr,Wr=br[at+12>>2],br[ft+88>>2]=br[at+8>>2],br[ft+92>>2]=Wr,Wr=br[at+4>>2],br[ft+80>>2]=br[at>>2],br[ft+84>>2]=Wr,Wr=br[jt+12>>2],br[ft+72>>2]=br[jt+8>>2],br[ft+76>>2]=Wr,Wr=br[jt+4>>2],br[ft+64>>2]=br[jt>>2],br[ft+68>>2]=Wr,Mo(ot,ft+80|0,ft- -64|0),Wr=br[ft+204>>2],br[jt+8>>2]=br[ft+200>>2],br[jt+12>>2]=Wr,Wr=br[ft+196>>2],br[jt>>2]=br[ft+192>>2],br[jt+4>>2]=Wr,Wr=br[it+12>>2],br[ft+56>>2]=br[it+8>>2],br[ft+60>>2]=Wr,Wr=br[it+4>>2],br[ft+48>>2]=br[it>>2],br[ft+52>>2]=Wr,Wr=br[at+12>>2],br[ft+40>>2]=br[at+8>>2],br[ft+44>>2]=Wr,Wr=br[at+4>>2],br[ft+32>>2]=br[at>>2],br[ft+36>>2]=Wr,Mo(ot,ft+48|0,ft+32|0),Wr=br[ft+204>>2],br[at+8>>2]=br[ft+200>>2],br[at+12>>2]=Wr,Wr=br[ft+196>>2],br[at>>2]=br[ft+192>>2],br[at+4>>2]=Wr,Wr=br[ft+220>>2],br[ft+24>>2]=br[ft+216>>2],br[ft+28>>2]=Wr,Wr=br[ft+212>>2],br[ft+16>>2]=br[ft+208>>2],br[ft+20>>2]=Wr,Wr=br[it+12>>2],br[ft+8>>2]=br[it+8>>2],br[ft+12>>2]=Wr,Wr=br[it+4>>2],br[ft>>2]=br[it>>2],br[ft+4>>2]=Wr,Mo(ot,ft+16|0,ft),$o=br[ft+192>>2],ot=br[ft+196>>2],Wr=br[ft+200>>2],No=Do^br[ft+204>>2],br[it+12>>2]=No,Go=Wr^Fo,br[it+8>>2]=Go,Xo=ot^Ao,br[it+4>>2]=Xo,In=_o^$o,br[it>>2]=In,(0|(yo=yo+1|0))!=7;);e:{r:{t:{if(Wr=Ur-16|0){if((0|Wr)==16)break t;break r}_n=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,Kt=lt[it+48|0]|lt[it+49|0]<<8|lt[it+50|0]<<16|lt[it+51|0]<<24,at=lt[it+32|0]|lt[it+33|0]<<8|lt[it+34|0]<<16|lt[it+35|0]<<24,jt=lt[it+80|0]|lt[it+81|0]<<8|lt[it+82|0]<<16|lt[it+83|0]<<24,ao=lt[0|(Ur=it- -64|0)]|lt[Ur+1|0]<<8|lt[Ur+2|0]<<16|lt[Ur+3|0]<<24,Eo=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,Do=lt[it+52|0]|lt[it+53|0]<<8|lt[it+54|0]<<16|lt[it+55|0]<<24,Fo=lt[it+36|0]|lt[it+37|0]<<8|lt[it+38|0]<<16|lt[it+39|0]<<24,Ao=lt[it+84|0]|lt[it+85|0]<<8|lt[it+86|0]<<16|lt[it+87|0]<<24,_o=lt[it+68|0]|lt[it+69|0]<<8|lt[it+70|0]<<16|lt[it+71|0]<<24,$o=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,yo=lt[it+56|0]|lt[it+57|0]<<8|lt[it+58|0]<<16|lt[it+59|0]<<24,ot=lt[it+40|0]|lt[it+41|0]<<8|lt[it+42|0]<<16|lt[it+43|0]<<24,Wr=lt[it+88|0]|lt[it+89|0]<<8|lt[it+90|0]<<16|lt[it+91|0]<<24,Ur=lt[it+72|0]|lt[it+73|0]<<8|lt[it+74|0]<<16|lt[it+75|0]<<24,it=No^(lt[it+28|0]|lt[it+29|0]<<8|lt[it+30|0]<<16|lt[it+31|0]<<24)^(lt[it+60|0]|lt[it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896|0)>>2]=br[Wr+88>>2],br[yo+4>>2]=Go,Xo=br[Wr+100>>2],br[(Go=ot+3904|0)>>2]=br[Wr+96>>2],br[Go+4>>2]=Xo,In=br[Wr+108>>2],br[(Xo=ot+3912|0)>>2]=br[Wr+104>>2],br[Xo+4>>2]=In,_n=br[Wr+116>>2],br[(In=ot+3920|0)>>2]=br[Wr+112>>2],br[In+4>>2]=_n,_n=br[Wr+84>>2],br[ot+3888>>2]=br[Wr+80>>2],br[ot+3892>>2]=_n,Ll(it=ot+3528|0,_n=ot+3808|0),ns(ft=ot+2408|0,it,ao=ot+3648|0),ns(ot+2448|0,_o=ot+3568|0,No=ot+3608|0),ns(ot+2488|0,No,ao),ns(ot+2528|0,it,_o),Ho(ao=ot+320|0,ft),_l(it=ot+3368|0,Wr,ao),ns(ft=ot+2248|0,it,ao=ot+3488|0),ns(ot+2288|0,_o=ot+3408|0,No=ot+3448|0),ns(ot+2328|0,No,ao),ns(ot+2368|0,it,_o),Ho(ot+480|0,ft),ft=br[4+(it=ot+2440|0)>>2],br[Kt>>2]=br[it>>2],br[Kt+4>>2]=ft,ft=br[4+(it=ot+2432|0)>>2],br[at>>2]=br[it>>2],br[at+4>>2]=ft,ft=br[4+(it=ot+2424|0)>>2],br[jt>>2]=br[it>>2],br[jt+4>>2]=ft,ft=br[4+(it=ot+2416|0)>>2],br[Eo>>2]=br[it>>2],br[Eo+4>>2]=ft,ft=br[4+(it=ot+2456|0)>>2],br[Ao>>2]=br[it>>2],br[Ao+4>>2]=ft,ft=br[4+(it=ot+2464|0)>>2],br[$o>>2]=br[it>>2],br[$o+4>>2]=ft,ft=br[4+(it=ot+2472|0)>>2],br[Do>>2]=br[it>>2],br[Do+4>>2]=ft,ft=br[4+(it=ot+2480|0)>>2],br[Fo>>2]=br[it>>2],br[Fo+4>>2]=ft,it=br[ot+2412>>2],br[ot+3808>>2]=br[ot+2408>>2],br[ot+3812>>2]=it,it=br[ot+2452>>2],br[ot+3848>>2]=br[ot+2448>>2],br[ot+3852>>2]=it,ft=br[4+(it=ot+2520|0)>>2],br[In>>2]=br[it>>2],br[In+4>>2]=ft,ft=br[4+(it=ot+2512|0)>>2],br[Xo>>2]=br[it>>2],br[Xo+4>>2]=ft,ft=br[4+(it=ot+2504|0)>>2],br[Go>>2]=br[it>>2],br[Go+4>>2]=ft,ft=br[4+(it=ot+2496|0)>>2],br[yo>>2]=br[it>>2],br[yo+4>>2]=ft,it=br[ot+2492>>2],br[ot+3888>>2]=br[ot+2488>>2],br[ot+3892>>2]=it,Ll(it=ot+3208|0,_n),ns(ft=ot+2088|0,it,ao=ot+3328|0),ns(ot+2128|0,_o=ot+3248|0,No=ot+3288|0),ns(ot+2168|0,No,ao),ns(ot+2208|0,it,_o),Ho(ao=ot+640|0,ft),_l(it=ot+3048|0,Wr,ao),ns(ft=ot+1928|0,it,ao=ot+3168|0),ns(ot+1968|0,_o=ot+3088|0,No=ot+3128|0),ns(ot+2008|0,No,ao),ns(ot+2048|0,it,_o),Ho(ot+800|0,ft),ft=br[4+(it=ot+2280|0)>>2],br[Kt>>2]=br[it>>2],br[Kt+4>>2]=ft,ft=br[4+(it=ot+2272|0)>>2],br[at>>2]=br[it>>2],br[at+4>>2]=ft,ft=br[4+(it=ot+2264|0)>>2],br[jt>>2]=br[it>>2],br[jt+4>>2]=ft,ft=br[4+(it=ot+2256|0)>>2],br[Eo>>2]=br[it>>2],br[Eo+4>>2]=ft,ft=br[4+(it=ot+2296|0)>>2],br[Ao>>2]=br[it>>2],br[Ao+4>>2]=ft,ft=br[4+(it=ot+2304|0)>>2],br[$o>>2]=br[it>>2],br[$o+4>>2]=ft,ft=br[4+(it=ot+2312|0)>>2],br[Do>>2]=br[it>>2],br[Do+4>>2]=ft,ft=br[4+(it=ot+2320|0)>>2],br[Fo>>2]=br[it>>2],br[Fo+4>>2]=ft,it=br[ot+2252>>2],br[ot+3808>>2]=br[ot+2248>>2],br[ot+3812>>2]=it,it=br[ot+2292>>2],br[ot+3848>>2]=br[ot+2288>>2],br[ot+3852>>2]=it,ft=br[4+(it=ot+2360|0)>>2],br[In>>2]=br[it>>2],br[In+4>>2]=ft,ft=br[4+(it=ot+2352|0)>>2],br[Xo>>2]=br[it>>2],br[Xo+4>>2]=ft,ft=br[4+(it=ot+2344|0)>>2],br[Go>>2]=br[it>>2],br[Go+4>>2]=ft,ft=br[4+(it=ot+2336|0)>>2],br[yo>>2]=br[it>>2],br[yo+4>>2]=ft,it=br[ot+2332>>2],br[ot+3888>>2]=br[ot+2328>>2],br[ot+3892>>2]=it,Ll(it=ot+2888|0,_n),ns(ft=ot+1768|0,it,ao=ot+3008|0),ns(ot+1808|0,_o=ot+2928|0,No=ot+2968|0),ns(ot+1848|0,No,ao),ns(ot+1888|0,it,_o),Ho(ao=ot+960|0,ft),_l(it=ot+2728|0,Wr,ao),ns(Wr=ot+1608|0,it,ft=ot+2848|0),ns(ot+1648|0,ao=ot+2768|0,_o=ot+2808|0),ns(ot+1688|0,_o,ft),ns(ot+1728|0,it,ao),Ho(ot+1120|0,Wr),it=br[4+(Wr=ot+2120|0)>>2],br[Kt>>2]=br[Wr>>2],br[Kt+4>>2]=it,Kt=br[4+(Wr=ot+2112|0)>>2],br[at>>2]=br[Wr>>2],br[at+4>>2]=Kt,Kt=br[4+(Wr=ot+2104|0)>>2],br[jt>>2]=br[Wr>>2],br[jt+4>>2]=Kt,Kt=br[4+(Wr=ot+2096|0)>>2],br[Eo>>2]=br[Wr>>2],br[Eo+4>>2]=Kt,Kt=br[4+(Wr=ot+2136|0)>>2],br[Ao>>2]=br[Wr>>2],br[Ao+4>>2]=Kt,Kt=br[4+(Wr=ot+2144|0)>>2],br[$o>>2]=br[Wr>>2],br[$o+4>>2]=Kt,Kt=br[4+(Wr=ot+2152|0)>>2],br[Do>>2]=br[Wr>>2],br[Do+4>>2]=Kt,Kt=br[4+(Wr=ot+2160|0)>>2],br[Fo>>2]=br[Wr>>2],br[Fo+4>>2]=Kt,Wr=br[ot+2092>>2],br[ot+3808>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t[ot+48|0]|lt[ot+49|0]<<8|lt[ot+50|0]<<16|lt[ot+51|0]<<24,ao=lt[ot+20|0]|lt[ot+21|0]<<8|lt[ot+22|0]<<16|lt[ot+23|0]<<24,Eo=lt[ot+52|0]|lt[ot+53|0]<<8|lt[ot+54|0]<<16|lt[ot+55|0]<<24,Ao=lt[ot+24|0]|lt[ot+25|0]<<8|lt[ot+26|0]<<16|lt[ot+27|0]<<24,yo=lt[ot+56|0]|lt[ot+57|0]<<8|lt[ot+58|0]<<16|lt[ot+59|0]<<24,_o=lt[ot+28|0]|lt[ot+29|0]<<8|lt[ot+30|0]<<16|lt[ot+31|0]<<24,$o=lt[ot+60|0]|lt[ot+61|0]<<8|lt[ot+62|0]<<16|lt[ot+63|0]<<24,Ur=lt[ot+32|0]|lt[ot+33|0]<<8|lt[ot+34|0]<<16|lt[ot+35|0]<<24,Do=lt[ot+80|0]|lt[ot+81|0]<<8|lt[ot+82|0]<<16|lt[ot+83|0]<<24,Fo=lt[ot+112|0]|lt[ot+113|0]<<8|lt[ot+114|0]<<16|lt[ot+115|0]<<24,os=lt[ot+96|0]|lt[ot+97|0]<<8|lt[ot+98|0]<<16|lt[ot+99|0]<<24,as=lt[ot+36|0]|lt[ot+37|0]<<8|lt[ot+38|0]<<16|lt[ot+39|0]<<24,No=lt[ot+84|0]|lt[ot+85|0]<<8|lt[ot+86|0]<<16|lt[ot+87|0]<<24,Go=lt[ot+116|0]|lt[ot+117|0]<<8|lt[ot+118|0]<<16|lt[ot+119|0]<<24,$a=lt[ot+100|0]|lt[ot+101|0]<<8|lt[ot+102|0]<<16|lt[ot+103|0]<<24,Hn=lt[ot+40|0]|lt[ot+41|0]<<8|lt[ot+42|0]<<16|lt[ot+43|0]<<24,Xo=lt[ot+88|0]|lt[ot+89|0]<<8|lt[ot+90|0]<<16|lt[ot+91|0]<<24,In=lt[ot+120|0]|lt[ot+121|0]<<8|lt[ot+122|0]<<16|lt[ot+123|0]<<24,Vn=lt[ot+104|0]|lt[ot+105|0]<<8|lt[ot+106|0]<<16|lt[ot+107|0]<<24,_n=br[it+256>>2],Qn=br[it+260>>2],Mn=br[it+264>>2],Zo=br[it+268>>2],wn=br[it+272>>2],Nn=br[it+276>>2],Jn=br[it+280>>2],ft=lt[ot+44|0]|lt[ot+45|0]<<8|lt[ot+46|0]<<16|lt[ot+47|0]<<24,Kt=lt[ot+108|0]|lt[ot+109|0]<<8|lt[ot+110|0]<<16|lt[ot+111|0]<<24,br[it+284>>2]=ft^Kt&(lt[ot+124|0]|lt[ot+125|0]<<8|lt[ot+126|0]<<16|lt[ot+127|0]<<24)^br[it+284>>2]^(lt[ot+92|0]|lt[ot+93|0]<<8|lt[ot+94|0]<<16|lt[ot+95|0]<<24),br[it+280>>2]=Hn^Vn&In^Xo^Jn,br[it+276>>2]=as^$a&Go^No^Nn,br[it+272>>2]=Ur^os&Fo^Do^wn,br[it+268>>2]=$o&ft^_o^Zo^Kt,br[it+264>>2]=Vn^Hn&yo^Ao^Mn,br[it+260>>2]=$a^as&Eo^ao^Qn,br[it+256>>2]=os^Ur&jt^at^_n,q0(jn,0,xa),U0(zr,Zn,Wr),Wr=br[it+284>>2],Zn=br[it+280>>2],os=br[it+276>>2],as=br[it+272>>2],$a=br[it+256>>2],Hn=br[it+260>>2],Vn=br[it+264>>2],xa=br[it+268>>2],zr=br[ot+124>>2],br[it+312>>2]=br[ot+120>>2],br[it+316>>2]=zr,zr=br[ot+116>>2],br[it+304>>2]=br[ot+112>>2],br[it+308>>2]=zr,zr=br[ot+108>>2],br[it+248>>2]=br[ot+104>>2],br[it+252>>2]=zr,zr=br[ot+100>>2],br[it+240>>2]=br[ot+96>>2],br[it+244>>2]=zr,zr=br[ot+124>>2],br[it+232>>2]=br[ot+120>>2],br[it+236>>2]=zr,zr=br[ot+116>>2],br[it+224>>2]=br[ot+112>>2],br[it+228>>2]=zr,Mo(Ur=it+288|0,it+240|0,it+224|0),zr=br[it+300>>2],br[ot+120>>2]=br[it+296>>2],br[ot+124>>2]=zr,zr=br[it+292>>2],br[ot+112>>2]=br[it+288>>2],br[ot+116>>2]=zr,zr=br[ot+92>>2],br[it+216>>2]=br[ot+88>>2],br[it+220>>2]=zr,zr=br[ot+84>>2],br[it+208>>2]=br[ot+80>>2],br[it+212>>2]=zr,zr=br[ot+108>>2],br[it+200>>2]=br[ot+104>>2],br[it+204>>2]=zr,zr=br[ot+100>>2],br[it+192>>2]=br[ot+96>>2],br[it+196>>2]=zr,Mo(Ur,it+208|0,it+192|0),zr=br[it+300>>2],br[ot+104>>2]=br[it+296>>2],br[ot+108>>2]=zr,zr=br[it+292>>2],br[ot+96>>2]=br[it+288>>2],br[ot+100>>2]=zr,zr=br[ot+76>>2],br[it+184>>2]=br[ot+72>>2],br[it+188>>2]=zr,jn=br[4+(zr=ot- -64|0)>>2],br[it+176>>2]=br[zr>>2],br[it+180>>2]=jn,jn=br[ot+92>>2],br[it+168>>2]=br[ot+88>>2],br[it+172>>2]=jn,jn=br[ot+84>>2],br[it+160>>2]=br[ot+80>>2],br[it+164>>2]=jn,Mo(Ur,it+176|0,it+160|0),jn=br[it+300>>2],br[ot+88>>2]=br[it+296>>2],br[ot+92>>2]=jn,jn=br[it+292>>2],br[ot+80>>2]=br[it+288>>2],br[ot+84>>2]=jn,jn=br[ot+60>>2],br[it+152>>2]=br[ot+56>>2],br[it+156>>2]=jn,jn=br[ot+52>>2],br[it+144>>2]=br[ot+48>>2],br[it+148>>2]=jn,jn=br[ot+76>>2],br[it+136>>2]=br[ot+72>>2],br[it+140>>2]=jn,jn=br[zr+4>>2],br[it+128>>2]=br[zr>>2],br[it+132>>2]=jn,Mo(Ur,it+144|0,it+128|0),jn=br[it+300>>2],br[ot+72>>2]=br[it+296>>2],br[ot+76>>2]=jn,jn=br[it+292>>2],br[zr>>2]=br[it+288>>2],br[zr+4>>2]=jn,jn=br[ot+44>>2],br[it+120>>2]=br[ot+40>>2],br[it+124>>2]=jn,jn=br[ot+36>>2],br[it+112>>2]=br[ot+32>>2],br[it+116>>2]=jn,jn=br[ot+60>>2],br[it+104>>2]=br[ot+56>>2],br[it+108>>2]=jn,jn=br[ot+52>>2],br[it+96>>2]=br[ot+48>>2],br[it+100>>2]=jn,Mo(Ur,it+112|0,it+96|0),jn=br[it+300>>2],br[ot+56>>2]=br[it+296>>2],br[ot+60>>2]=jn,jn=br[it+292>>2],br[ot+48>>2]=br[it+288>>2],br[ot+52>>2]=jn,jn=br[ot+28>>2],br[it+88>>2]=br[ot+24>>2],br[it+92>>2]=jn,jn=br[ot+20>>2],br[it+80>>2]=br[ot+16>>2],br[it+84>>2]=jn,jn=br[ot+44>>2],br[it+72>>2]=br[ot+40>>2],br[it+76>>2]=jn,jn=br[ot+36>>2],br[it+64>>2]=br[ot+32>>2],br[it+68>>2]=jn,Mo(Ur,it+80|0,it- -64|0),jn=br[it+300>>2],br[ot+40>>2]=br[it+296>>2],br[ot+44>>2]=jn,jn=br[it+292>>2],br[ot+32>>2]=br[it+288>>2],br[ot+36>>2]=jn,jn=br[ot+12>>2],br[it+56>>2]=br[ot+8>>2],br[it+60>>2]=jn,jn=br[ot+4>>2],br[it+48>>2]=br[ot>>2],br[it+52>>2]=jn,jn=br[ot+28>>2],br[it+40>>2]=br[ot+24>>2],br[it+44>>2]=jn,jn=br[ot+20>>2],br[it+32>>2]=br[ot+16>>2],br[it+36>>2]=jn,Mo(Ur,it+48|0,it+32|0),jn=br[it+300>>2],br[ot+24>>2]=br[it+296>>2],br[ot+28>>2]=jn,jn=br[it+292>>2],br[ot+16>>2]=br[it+288>>2],br[ot+20>>2]=jn,jn=br[it+316>>2],br[it+24>>2]=br[it+312>>2],br[it+28>>2]=jn,jn=br[it+308>>2],br[it+16>>2]=br[it+304>>2],br[it+20>>2]=jn,jn=br[ot+12>>2],br[it+8>>2]=br[ot+8>>2],br[it+12>>2]=jn,jn=br[ot+4>>2],br[it>>2]=br[ot>>2],br[it+4>>2]=jn,Mo(Ur,it+16|0,it),Ur=br[it+300>>2],br[ot+8>>2]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>>2]=ot<<2,br[Wr+20>>2]=w0(ot,ft),ot=br[zr+52>>2],br[Wr+40>>2]=Ur,br[Wr+36>>2]=ot,Do=Ur=On,On=ot=Ur-1152&-64,Ur=-25;e:{if(!(!(ft=Wr+4|0)|!zr)&&(it=tu(br[ft+20>>2]<<3),br[ft+4>>2]=it,Ur=-22,it)){r:{if((Ur=br[ft+16>>2])&&(((it=Ur<<10)>>>0)/(Ur>>>0)|0)==1024&&(Ur=tu(12),br[ft>>2]=Ur,Ur)){if(br[Ur>>2]=0,br[Ur+4>>2]=0,Ur=Ys(ot+128|0,it),br[9392]=Ur,Ur)br[ot+128>>2]=0;else if(Ur=br[ot+128>>2])break r;$l(br[ft>>2]),br[ft>>2]=0}b2(ft,br[zr+56>>2]),On=Do,Ur=-22;break e}if(br[br[ft>>2]>>2]=Ur,br[br[ft>>2]+4>>2]=Ur,br[br[ft>>2]+8>>2]=it,yo=br[ft+36>>2],Hu(Ur=ot+128|0,0,0,64),br[ot+124>>2]=br[zr+48>>2],Fl(Ur,it=ot+124|0,4,0),br[ot+124>>2]=br[zr+4>>2],Fl(Ur,it,4,0),br[ot+124>>2]=br[zr+44>>2],Fl(Ur,it,4,0),br[ot+124>>2]=br[zr+40>>2],Fl(Ur,it,4,0),br[ot+124>>2]=19,Fl(ot+128|0,ot+124|0,4,0),br[ot+124>>2]=yo,Fl(ot+128|0,ot+124|0,4,0),br[ot+124>>2]=br[zr+12>>2],Fl(ot+128|0,ot+124|0,4,0),(it=br[zr+8>>2])&&(Fl(Ur,it,br[zr+12>>2],0),1&Vt[zr+56|0]&&(o0(br[zr+8>>2],br[zr+12>>2]),br[zr+12>>2]=0)),br[ot+124>>2]=br[zr+20>>2],Fl(Ur=ot+128|0,ot+124|0,4,0),(it=br[zr+16>>2])&&Fl(Ur,it,br[zr+20>>2],0),br[ot+124>>2]=br[zr+28>>2],Fl(Ur=ot+128|0,ot+124|0,4,0),(it=br[zr+24>>2])&&(Fl(Ur,it,br[zr+28>>2],0),2<[zr+56|0]&&(o0(br[zr+24>>2],br[zr+28>>2]),br[zr+28>>2]=0)),br[ot+124>>2]=br[zr+36>>2],Fl(Ur=ot+128|0,ot+124|0,4,0),(it=br[zr+32>>2])&&Fl(Ur,it,br[zr+36>>2],0),_A(ot+128|0,ot+48|0,64),o0(ot+112|0,8),br[ft+28>>2])for(it=0;;){for(br[ot+112>>2]=0,br[ot+116>>2]=it,bA(ot+128|0,1024,ot+48|0,72),yo=br[br[ft>>2]+4>>2]+(w0(br[ft+24>>2],it)<<10)|0,Ur=0;Kt=(at=Ur<<3)+yo|0,_o=br[4+(ao=(jt=ot+128|0)+at|0)>>2],br[Kt>>2]=br[ao>>2],br[Kt+4>>2]=_o,ao=(Kt=8|at)+yo|0,_o=br[4+(Kt=Kt+jt|0)>>2],br[ao>>2]=br[Kt>>2],br[ao+4>>2]=_o,ao=(Kt=16|at)+yo|0,_o=br[4+(Kt=Kt+jt|0)>>2],br[ao>>2]=br[Kt>>2],br[ao+4>>2]=_o,Kt=(at|=24)+yo|0,ao=br[4+(at=at+jt|0)>>2],br[Kt>>2]=br[at>>2],br[Kt+4>>2]=ao,(0|(Ur=Ur+4|0))!=128;);for(br[ot+112>>2]=1,bA(jt,1024,ot+48|0,72),yo=1024+(br[br[ft>>2]+4>>2]+(w0(br[ft+24>>2],it)<<10)|0)|0,Ur=0;Kt=(at=Ur<<3)+yo|0,_o=br[4+(ao=(jt=ot+128|0)+at|0)>>2],br[Kt>>2]=br[ao>>2],br[Kt+4>>2]=_o,ao=(Kt=8|at)+yo|0,_o=br[4+(Kt=Kt+jt|0)>>2],br[ao>>2]=br[Kt>>2],br[ao+4>>2]=_o,ao=(Kt=16|at)+yo|0,_o=br[4+(Kt=Kt+jt|0)>>2],br[ao>>2]=br[Kt>>2],br[ao+4>>2]=_o,Kt=(at|=24)+yo|0,jt=br[4+(at=at+jt|0)>>2],br[Kt>>2]=br[at>>2],br[Kt+4>>2]=jt,(0|(Ur=Ur+4|0))!=128;);if(!((it=it+1|0)>>>0>2]))break}o0(ot+128|0,1024),o0(ot+48|0,72),Ur=0}On=Do}if(ot=Ur,!Ur){if(br[Wr+12>>2])for(;;){if(On=Ur=On-80|0,!(!(ft=Wr+4|0)|!br[ft+28>>2])){for(Vt[Ur+72|0]=0,br[Ur+64>>2]=Eo,ot=0;br[Ur+76>>2]=0,it=br[Ur+76>>2],br[Ur+56>>2]=br[Ur+72>>2],br[Ur+60>>2]=it,br[Ur+68>>2]=ot,it=br[Ur+68>>2],br[Ur+48>>2]=br[Ur+64>>2],br[Ur+52>>2]=it,Zu(ft,Ur+48|0),(ot=ot+1|0)>>>0<(it=br[ft+28>>2])>>>0;);if(Vt[Ur+72|0]=1,it){for(ot=0;br[Ur+76>>2]=0,it=br[Ur+76>>2],br[Ur+40>>2]=br[Ur+72>>2],br[Ur+44>>2]=it,br[Ur+68>>2]=ot,it=br[Ur+68>>2],br[Ur+32>>2]=br[Ur+64>>2],br[Ur+36>>2]=it,Zu(ft,Ur+32|0),(ot=ot+1|0)>>>0<(it=br[ft+28>>2])>>>0;);if(Vt[Ur+72|0]=2,it){for(ot=0;br[Ur+76>>2]=0,it=br[Ur+76>>2],br[Ur+24>>2]=br[Ur+72>>2],br[Ur+28>>2]=it,br[Ur+68>>2]=ot,it=br[Ur+68>>2],br[Ur+16>>2]=br[Ur+64>>2],br[Ur+20>>2]=it,Zu(ft,Ur+16|0),(ot=ot+1|0)>>>0<(it=br[ft+28>>2])>>>0;);if(Vt[Ur+72|0]=3,it)for(ot=0;br[Ur+76>>2]=0,it=br[Ur+76>>2],br[Ur+8>>2]=br[Ur+72>>2],br[Ur+12>>2]=it,br[Ur+68>>2]=ot,it=br[Ur+68>>2],br[Ur>>2]=br[Ur+64>>2],br[Ur+4>>2]=it,Zu(ft,Ur),(ot=ot+1|0)>>>0>2];);}}}if(On=Ur+80|0,!((Eo=Eo+1|0)>>>0>2]))break}if(On=Ur=On-2048|0,!(!zr|!(ot=Wr+4|0))){if(Kt=br[ot>>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=lt[zr+4|0]|lt[zr+5|0]<<8|lt[zr+6|0]<<16|lt[zr+7|0]<<24,Eo=lt[zr+8|0]|lt[zr+9|0]<<8|lt[zr+10|0]<<16|lt[zr+11|0]<<24,Ao=lt[zr+12|0]|lt[zr+13|0]<<8|lt[zr+14|0]<<16|lt[zr+15|0]<<24,Fo=lt[0|Ur]|lt[Ur+1|0]<<8|lt[Ur+2|0]<<16|lt[Ur+3|0]<<24,Ur=Wr+112|0,zr=33620224^(yo=lt[0|zr]|lt[zr+1|0]<<8|lt[zr+2|0]<<16|lt[zr+3|0]<<24),br[Ur>>2]=zr,br[(at=Wr+96|0)>>2]=1427652059^yo,br[(jt=Wr+80|0)>>2]=zr,Go=yo^Fo,br[(zr=Wr- -64|0)>>2]=Go,br[Wr+56>>2]=1110511904,br[Wr+60>>2]=-584534669,br[(it=Wr+48|0)>>2]=1427652059,br[it+4>>2]=-248528275,br[Wr+40>>2]=1496785429,br[Wr+44>>2]=1652156816,br[(ft=Wr+32|0)>>2]=33620224,br[ft+4>>2]=218629379,br[Wr+24>>2]=1110511904,br[Wr+28>>2]=-584534669,br[(Kt=Wr+16|0)>>2]=1427652059,br[Kt+4>>2]=-248528275,br[Wr>>2]=Go,Go=1652156816^Ao,br[Wr+124>>2]=Go,Xo=1496785429^Eo,br[Wr+120>>2]=Xo,No=218629379^ao,br[Wr+116>>2]=No,br[Wr+108>>2]=-584534669^Ao,br[Wr+104>>2]=1110511904^Eo,br[Wr+100>>2]=-248528275^ao,br[Wr+92>>2]=Go,br[Wr+88>>2]=Xo,br[Wr+84>>2]=No,Go=Ao^Do,br[Wr+76>>2]=Go,Xo=Eo^$o,br[Wr+72>>2]=Xo,No=ao^_o,br[Wr+68>>2]=No,br[Wr+12>>2]=Go,br[Wr+8>>2]=Xo,br[Wr+4>>2]=No,Xo=0;Go=br[Ur+12>>2],br[ot+280>>2]=br[Ur+8>>2],br[ot+284>>2]=Go,Go=br[Ur+4>>2],br[ot+272>>2]=br[Ur>>2],br[ot+276>>2]=Go,Go=br[at+12>>2],br[ot+248>>2]=br[at+8>>2],br[ot+252>>2]=Go,Go=br[at+4>>2],br[ot+240>>2]=br[at>>2],br[ot+244>>2]=Go,Go=br[Ur+12>>2],br[ot+232>>2]=br[Ur+8>>2],br[ot+236>>2]=Go,Go=br[Ur+4>>2],br[ot+224>>2]=br[Ur>>2],br[ot+228>>2]=Go,Mo(Go=ot+256|0,ot+240|0,ot+224|0),No=br[ot+268>>2],br[Ur+8>>2]=br[ot+264>>2],br[Ur+12>>2]=No,No=br[ot+260>>2],br[Ur>>2]=br[ot+256>>2],br[Ur+4>>2]=No,No=br[jt+12>>2],br[ot+216>>2]=br[jt+8>>2],br[ot+220>>2]=No,No=br[jt+4>>2],br[ot+208>>2]=br[jt>>2],br[ot+212>>2]=No,No=br[at+12>>2],br[ot+200>>2]=br[at+8>>2],br[ot+204>>2]=No,No=br[at+4>>2],br[ot+192>>2]=br[at>>2],br[ot+196>>2]=No,Mo(Go,ot+208|0,ot+192|0),No=br[ot+268>>2],br[at+8>>2]=br[ot+264>>2],br[at+12>>2]=No,No=br[ot+260>>2],br[at>>2]=br[ot+256>>2],br[at+4>>2]=No,No=br[zr+12>>2],br[ot+184>>2]=br[zr+8>>2],br[ot+188>>2]=No,No=br[zr+4>>2],br[ot+176>>2]=br[zr>>2],br[ot+180>>2]=No,No=br[jt+12>>2],br[ot+168>>2]=br[jt+8>>2],br[ot+172>>2]=No,No=br[jt+4>>2],br[ot+160>>2]=br[jt>>2],br[ot+164>>2]=No,Mo(Go,ot+176|0,ot+160|0),No=br[ot+268>>2],br[jt+8>>2]=br[ot+264>>2],br[jt+12>>2]=No,No=br[ot+260>>2],br[jt>>2]=br[ot+256>>2],br[jt+4>>2]=No,No=br[it+12>>2],br[ot+152>>2]=br[it+8>>2],br[ot+156>>2]=No,No=br[it+4>>2],br[ot+144>>2]=br[it>>2],br[ot+148>>2]=No,No=br[zr+12>>2],br[ot+136>>2]=br[zr+8>>2],br[ot+140>>2]=No,No=br[zr+4>>2],br[ot+128>>2]=br[zr>>2],br[ot+132>>2]=No,Mo(Go,ot+144|0,ot+128|0),No=br[ot+268>>2],br[zr+8>>2]=br[ot+264>>2],br[zr+12>>2]=No,No=br[ot+260>>2],br[zr>>2]=br[ot+256>>2],br[zr+4>>2]=No,No=br[ft+12>>2],br[ot+120>>2]=br[ft+8>>2],br[ot+124>>2]=No,No=br[ft+4>>2],br[ot+112>>2]=br[ft>>2],br[ot+116>>2]=No,No=br[it+12>>2],br[ot+104>>2]=br[it+8>>2],br[ot+108>>2]=No,No=br[it+4>>2],br[ot+96>>2]=br[it>>2],br[ot+100>>2]=No,Mo(Go,ot+112|0,ot+96|0),No=br[ot+268>>2],br[it+8>>2]=br[ot+264>>2],br[it+12>>2]=No,No=br[ot+260>>2],br[it>>2]=br[ot+256>>2],br[it+4>>2]=No,No=br[Kt+12>>2],br[ot+88>>2]=br[Kt+8>>2],br[ot+92>>2]=No,No=br[Kt+4>>2],br[ot+80>>2]=br[Kt>>2],br[ot+84>>2]=No,No=br[ft+12>>2],br[ot+72>>2]=br[ft+8>>2],br[ot+76>>2]=No,No=br[ft+4>>2],br[ot+64>>2]=br[ft>>2],br[ot+68>>2]=No,Mo(Go,ot+80|0,ot- -64|0),No=br[ot+268>>2],br[ft+8>>2]=br[ot+264>>2],br[ft+12>>2]=No,No=br[ot+260>>2],br[ft>>2]=br[ot+256>>2],br[ft+4>>2]=No,No=br[Wr+12>>2],br[ot+56>>2]=br[Wr+8>>2],br[ot+60>>2]=No,No=br[Wr+4>>2],br[ot+48>>2]=br[Wr>>2],br[ot+52>>2]=No,No=br[Kt+12>>2],br[ot+40>>2]=br[Kt+8>>2],br[ot+44>>2]=No,No=br[Kt+4>>2],br[ot+32>>2]=br[Kt>>2],br[ot+36>>2]=No,Mo(Go,ot+48|0,ot+32|0),No=br[ot+268>>2],br[Kt+8>>2]=br[ot+264>>2],br[Kt+12>>2]=No,No=br[ot+260>>2],br[Kt>>2]=br[ot+256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1|0)>>>0;);br[zr+52>>2]=Xn,br[zr+48>>2]=Gn;break}Ur=Ur- -64|0,Wr=In- -64|0,it=it-1|0,it=(ot=ot+-64|0)>>>0<4294967232?it+1|0:it}}function eu(zr,Ur){Ur|=0;var Wr,ot=0,it=0,ft=0,Kt=0,at=0,jt=0,ao=0;return On=Wr=On-704|0,ot=80+((it=br[72+(zr|=0)>>2]>>>3&127)+zr|0)|0,it>>>0>=112?(U0(ot,35456,128-it|0),Wu(zr,it=zr+80|0,Wr,Wr+640|0),q0(it,0,112)):U0(ot,35456,112-it|0),jt=(ft=br[zr+64>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+68>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[zr+192|0]=ot,Vt[zr+193|0]=ot>>>8,Vt[zr+194|0]=ot>>>16,Vt[zr+195|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[zr+196|0]=it,Vt[zr+197|0]=it>>>8,Vt[zr+198|0]=it>>>16,Vt[zr+199|0]=it>>>24,jt=(ft=br[zr+72>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+76>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[zr+200|0]=ot,Vt[zr+201|0]=ot>>>8,Vt[zr+202|0]=ot>>>16,Vt[zr+203|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[zr+204|0]=it,Vt[zr+205|0]=it>>>8,Vt[zr+206|0]=it>>>16,Vt[zr+207|0]=it>>>24,Wu(zr,zr+80|0,Wr,Wr+640|0),jt=(ft=br[zr>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+4>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[0|Ur]=ot,Vt[Ur+1|0]=ot>>>8,Vt[Ur+2|0]=ot>>>16,Vt[Ur+3|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[Ur+4|0]=it,Vt[Ur+5|0]=it>>>8,Vt[Ur+6|0]=it>>>16,Vt[Ur+7|0]=it>>>24,jt=(ft=br[zr+8>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+12>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[Ur+8|0]=ot,Vt[Ur+9|0]=ot>>>8,Vt[Ur+10|0]=ot>>>16,Vt[Ur+11|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[Ur+12|0]=it,Vt[Ur+13|0]=it>>>8,Vt[Ur+14|0]=it>>>16,Vt[Ur+15|0]=it>>>24,jt=(ft=br[zr+16>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+20>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[Ur+16|0]=ot,Vt[Ur+17|0]=ot>>>8,Vt[Ur+18|0]=ot>>>16,Vt[Ur+19|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[Ur+20|0]=it,Vt[Ur+21|0]=it>>>8,Vt[Ur+22|0]=it>>>16,Vt[Ur+23|0]=it>>>24,jt=(ft=br[zr+24>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+28>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[Ur+24|0]=ot,Vt[Ur+25|0]=ot>>>8,Vt[Ur+26|0]=ot>>>16,Vt[Ur+27|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[Ur+28|0]=it,Vt[Ur+29|0]=it>>>8,Vt[Ur+30|0]=it>>>16,Vt[Ur+31|0]=it>>>24,jt=(ft=br[zr+32>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+36>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[Ur+32|0]=ot,Vt[Ur+33|0]=ot>>>8,Vt[Ur+34|0]=ot>>>16,Vt[Ur+35|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[Ur+36|0]=it,Vt[Ur+37|0]=it>>>8,Vt[Ur+38|0]=it>>>16,Vt[Ur+39|0]=it>>>24,jt=(ft=br[zr+40>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+44>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[Ur+40|0]=ot,Vt[Ur+41|0]=ot>>>8,Vt[Ur+42|0]=ot>>>16,Vt[Ur+43|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[Ur+44|0]=it,Vt[Ur+45|0]=it>>>8,Vt[Ur+46|0]=it>>>16,Vt[Ur+47|0]=it>>>24,jt=(ft=br[zr+48>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,ot=ao|at<<8|-16777216&((255&(ot=br[zr+52>>2]))<<24|ft>>>8)|16711680&((16777215&ot)<<8|ft>>>24)|ot>>>8&65280|ot>>>24,Vt[Ur+48|0]=ot,Vt[Ur+49|0]=ot>>>8,Vt[Ur+50|0]=ot>>>16,Vt[Ur+51|0]=ot>>>24,it=(ot=it|Kt|jt)|(it=0)|it|0,Vt[Ur+52|0]=it,Vt[Ur+53|0]=it>>>8,Vt[Ur+54|0]=it>>>16,Vt[Ur+55|0]=it>>>24,jt=(ft=br[zr+56>>2])<<24|(65280&ft)<<8,it=(Kt=16711680&ft)>>>8|0,ot=Ur,ao=Kt<<24,Kt=(at=-16777216&ft)>>>24|0,Ur=ao|at<<8|-16777216&((255&(Ur=br[zr+60>>2]))<<24|ft>>>8)|16711680&((16777215&Ur)<<8|ft>>>24)|Ur>>>8&65280|Ur>>>24,Vt[ot+56|0]=Ur,Vt[ot+57|0]=Ur>>>8,Vt[ot+58|0]=Ur>>>16,Vt[ot+59|0]=Ur>>>24,Ur=(Ur=it|Kt|jt)|(it=0)|it|0,Vt[ot+60|0]=Ur,Vt[ot+61|0]=Ur>>>8,Vt[ot+62|0]=Ur>>>16,Vt[ot+63|0]=Ur>>>24,o0(Wr,704),o0(zr,208),On=Wr+704|0,0}function zA(zr,Ur,Wr){var ot,it,ft,Kt,at,jt,ao,Eo,Ao,yo,_o,$o,Do,Fo,No,Go,Xo,In,_n,Qn,Mn=0;On=ot=On-224|0,jt=lt[Wr+16|0]|lt[Wr+17|0]<<8|lt[Wr+18|0]<<16|lt[Wr+19|0]<<24,ao=lt[0|(Mn=Wr- -64|0)]|lt[Mn+1|0]<<8|lt[Mn+2|0]<<16|lt[Mn+3|0]<<24,Eo=lt[Wr+80|0]|lt[Wr+81|0]<<8|lt[Wr+82|0]<<16|lt[Wr+83|0]<<24,Ao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>>2]=Ur,Ur=br[Wr+60>>2],br[ot+152>>2]=br[Wr+56>>2],br[ot+156>>2]=Ur,Ur=br[Wr+52>>2],br[ot+144>>2]=br[Wr+48>>2],br[ot+148>>2]=Ur,Ur=br[Wr+76>>2],br[ot+136>>2]=br[Wr+72>>2],br[ot+140>>2]=Ur,Ur=br[Mn+4>>2],br[ot+128>>2]=br[Mn>>2],br[ot+132>>2]=Ur,Mo(zr,ot+144|0,ot+128|0),Ur=br[ot+204>>2],br[Wr+72>>2]=br[ot+200>>2],br[Wr+76>>2]=Ur,Ur=br[ot+196>>2],br[Mn>>2]=br[ot+192>>2],br[Mn+4>>2]=Ur,Ur=br[Wr+44>>2],br[ot+120>>2]=br[Wr+40>>2],br[ot+124>>2]=Ur,Ur=br[Wr+36>>2],br[ot+112>>2]=br[Wr+32>>2],br[ot+116>>2]=Ur,Ur=br[Wr+60>>2],br[ot+104>>2]=br[Wr+56>>2],br[ot+108>>2]=Ur,Ur=br[Wr+52>>2],br[ot+96>>2]=br[Wr+48>>2],br[ot+100>>2]=Ur,Mo(zr,ot+112|0,ot+96|0),Ur=br[ot+204>>2],br[Wr+56>>2]=br[ot+200>>2],br[Wr+60>>2]=Ur,Ur=br[ot+196>>2],br[Wr+48>>2]=br[ot+192>>2],br[Wr+52>>2]=Ur,Ur=br[Wr+28>>2],br[ot+88>>2]=br[Wr+24>>2],br[ot+92>>2]=Ur,Ur=br[Wr+20>>2],br[ot+80>>2]=br[Wr+16>>2],br[ot+84>>2]=Ur,Ur=br[Wr+44>>2],br[ot+72>>2]=br[Wr+40>>2],br[ot+76>>2]=Ur,Ur=br[Wr+36>>2],br[ot+64>>2]=br[Wr+32>>2],br[ot+68>>2]=Ur,Mo(zr,ot+80|0,ot- -64|0),Ur=br[ot+204>>2],br[Wr+40>>2]=br[ot+200>>2],br[Wr+44>>2]=Ur,Ur=br[ot+196>>2],br[Wr+32>>2]=br[ot+192>>2],br[Wr+36>>2]=Ur,Ur=br[Wr+12>>2],br[ot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ot+148>>2]=Xo,Xo=br[Wr+76>>2],br[ot+136>>2]=br[Wr+72>>2],br[ot+140>>2]=Xo,Xo=br[Go+4>>2],br[ot+128>>2]=br[Go>>2],br[ot+132>>2]=Xo,Mo(zr,ot+144|0,ot+128|0),Xo=br[ot+204>>2],br[Wr+72>>2]=br[ot+200>>2],br[Wr+76>>2]=Xo,Xo=br[ot+196>>2],br[Go>>2]=br[ot+192>>2],br[Go+4>>2]=Xo,Go=br[Wr+44>>2],br[ot+120>>2]=br[Wr+40>>2],br[ot+124>>2]=Go,Go=br[Wr+36>>2],br[ot+112>>2]=br[Wr+32>>2],br[ot+116>>2]=Go,Go=br[Wr+60>>2],br[ot+104>>2]=br[Wr+56>>2],br[ot+108>>2]=Go,Go=br[Wr+52>>2],br[ot+96>>2]=br[Wr+48>>2],br[ot+100>>2]=Go,Mo(zr,ot+112|0,ot+96|0),Go=br[ot+204>>2],br[Wr+56>>2]=br[ot+200>>2],br[Wr+60>>2]=Go,Go=br[ot+196>>2],br[Wr+48>>2]=br[ot+192>>2],br[Wr+52>>2]=Go,Go=br[Wr+28>>2],br[ot+88>>2]=br[Wr+24>>2],br[ot+92>>2]=Go,Go=br[Wr+20>>2],br[ot+80>>2]=br[Wr+16>>2],br[ot+84>>2]=Go,Go=br[Wr+44>>2],br[ot+72>>2]=br[Wr+40>>2],br[ot+76>>2]=Go,Go=br[Wr+36>>2],br[ot+64>>2]=br[Wr+32>>2],br[ot+68>>2]=Go,Mo(zr,ot+80|0,ot- -64|0),Go=br[ot+204>>2],br[Wr+40>>2]=br[ot+200>>2],br[Wr+44>>2]=Go,Go=br[ot+196>>2],br[Wr+32>>2]=br[ot+192>>2],br[Wr+36>>2]=Go,Go=br[Wr+12>>2],br[ot+56>>2]=br[Wr+8>>2],br[ot+60>>2]=Go,Go=br[Wr+4>>2],br[ot+48>>2]=br[Wr>>2],br[ot+52>>2]=Go,Go=br[Wr+28>>2],br[ot+40>>2]=br[Wr+24>>2],br[ot+44>>2]=Go,Go=br[Wr+20>>2],br[ot+32>>2]=br[Wr+16>>2],br[ot+36>>2]=Go,Mo(zr,ot+48|0,ot+32|0),Go=br[ot+204>>2],br[Wr+24>>2]=br[ot+200>>2],br[Wr+28>>2]=Go,Go=br[ot+196>>2],br[Wr+16>>2]=br[ot+192>>2],br[Wr+20>>2]=Go,Go=br[ot+220>>2],br[ot+24>>2]=br[ot+216>>2],br[ot+28>>2]=Go,Go=br[ot+212>>2],br[ot+16>>2]=br[ot+208>>2],br[ot+20>>2]=Go,Go=br[Wr+12>>2],br[ot+8>>2]=br[Wr+8>>2],br[ot+12>>2]=Go,Go=br[Wr+4>>2],br[ot>>2]=br[Wr>>2],br[ot+4>>2]=Go,Mo(zr,ot+16|0,ot),zr=br[ot+192>>2],Go=br[ot+196>>2],Xo=br[ot+200>>2],br[Wr+12>>2]=Ur^br[ot+204>>2],br[Wr+8>>2]=Xo^Qn,br[Wr+4>>2]=Go^_n,br[Wr>>2]=zr^In,On=ot+224|0}function Fu(zr,Ur){var Wr,ot,it,ft,Kt,at,jt,ao,Eo,Ao,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0,Nn=0,Jn=0,jn=0,Zn=0,xa=0,os=0,as=0,$a=0,Hn=0,Vn=0,ds=0,Is=0,Gn=0,Xn=0,ys=0,_s=0,Hs=0,qs=0,Ks=0,To=0;On=Wr=On-800|0,yo=br[(_o=Ur+40|0)>>2],$o=br[Ur+80>>2],Do=br[Ur+44>>2],Fo=br[Ur+84>>2],No=br[Ur+48>>2],Qn=br[Ur+88>>2],Go=br[Ur+52>>2],wn=br[Ur+92>>2],Mn=br[Ur+56>>2],Nn=br[Ur+96>>2],Jn=br[Ur+60>>2],jn=br[Ur+100>>2],Zn=br[(Xo=Ur- -64|0)>>2],xa=br[Ur+104>>2],os=br[Ur+68>>2],as=br[Ur+108>>2],$a=br[Ur+72>>2],Hn=br[Ur+112>>2],In=br[Ur+76>>2],_n=br[Ur+116>>2],br[Wr+324>>2]=In+_n,br[Wr+320>>2]=$a+Hn,br[Wr+316>>2]=os+as,br[Wr+312>>2]=Zn+xa,br[Wr+308>>2]=Jn+jn,br[Wr+304>>2]=Mn+Nn,br[Wr+300>>2]=Go+wn,br[Wr+296>>2]=No+Qn,br[Wr+292>>2]=Do+Fo,br[Wr+288>>2]=yo+$o,br[Wr+36>>2]=_n-In,br[Wr+32>>2]=Hn-$a,br[Wr+28>>2]=as-os,br[Wr+24>>2]=xa-Zn,br[Wr+20>>2]=jn-Jn,br[Wr+16>>2]=Nn-Mn,br[Wr+12>>2]=wn-Go,br[Wr+8>>2]=Qn-No,br[Wr+4>>2]=Fo-Do,br[Wr>>2]=$o-yo,ns(yo=Wr+288|0,yo,Wr),ns(Do=Wr+240|0,Ur,_o),Un($o=Wr+192|0,Do),ns($o,yo,$o),br[Wr+452>>2]=0,br[Wr+456>>2]=0,br[Wr+460>>2]=0,br[Wr+464>>2]=0,br[Wr+468>>2]=0,br[Wr+436>>2]=0,br[Wr+440>>2]=0,br[Wr+444>>2]=0,br[Wr+448>>2]=0,br[Wr+432>>2]=1,EA(Fo=Wr+576|0,Wr+432|0,$o),ns($o=Wr+720|0,Fo,yo),ns(wn=Wr+672|0,Fo,Do),ns(Go=Wr+48|0,$o,wn),ns(Go,Go,yo=Ur+120|0),ns(Wr+528|0,Ur,1648),ns(Wr+480|0,_o,1648),ns(Wr+624|0,$o,2960),ns($o=Wr+336|0,yo,Go),Dn(Qn=Wr+384|0,$o),Is=lt[Wr+384|0],$o=br[Ur+36>>2],yo=br[Ur+32>>2],br[Wr+176>>2]=yo,br[Wr+180>>2]=$o,Do=br[Ur+28>>2],$o=br[Ur+24>>2],br[Wr+168>>2]=$o,br[Wr+172>>2]=Do,Fo=br[Ur+20>>2],Do=br[Ur+16>>2],br[Wr+160>>2]=Do,br[Wr+164>>2]=Fo,No=br[Ur+12>>2],Fo=br[Ur+8>>2],br[Wr+152>>2]=Fo,br[Wr+156>>2]=No,Mn=br[Ur+4>>2],No=br[Ur>>2],br[Wr+144>>2]=No,br[Wr+148>>2]=Mn,Mn=br[_o>>2],Nn=br[Ur+44>>2],Jn=br[Ur+48>>2],jn=br[Ur+52>>2],Zn=br[Ur+56>>2],xa=br[Ur+60>>2],os=br[Xo>>2],as=br[Ur+68>>2],$a=br[Ur+72>>2],Hn=br[Ur+76>>2],Gn=br[Wr+484>>2],Xo=br[Wr+148>>2],Xn=br[Wr+492>>2],In=br[Wr+156>>2],ys=br[Wr+500>>2],_n=br[Wr+164>>2],_s=br[Wr+508>>2],Zo=br[Wr+172>>2],Hs=br[Wr+516>>2],ds=br[Wr+180>>2],qs=br[Wr+480>>2],Ks=br[Wr+488>>2],To=br[Wr+496>>2],Vn=br[Wr+504>>2],_o=0-(1&Is)|0,br[Wr+176>>2]=yo^_o&(yo^br[Wr+512>>2]),br[Wr+168>>2]=$o^_o&($o^Vn),br[Wr+160>>2]=Do^_o&(Do^To),br[Wr+152>>2]=Fo^_o&(Fo^Ks),br[Wr+144>>2]=No^_o&(No^qs),br[Wr+180>>2]=ds^_o&(ds^Hs),br[Wr+172>>2]=Zo^_o&(Zo^_s),br[Wr+164>>2]=_n^_o&(_n^ys),br[Wr+156>>2]=In^_o&(In^Xn),br[Wr+148>>2]=Xo^_o&(Xo^Gn),ds=br[Wr+528>>2],Is=br[Wr+532>>2],Gn=br[Wr+536>>2],Xn=br[Wr+540>>2],ys=br[Wr+544>>2],_s=br[Wr+548>>2],Hs=br[Wr+552>>2],qs=br[Wr+556>>2],Ks=br[Wr+560>>2],To=br[Wr+564>>2],yo=br[Wr+672>>2],Vn=br[Wr+624>>2],$o=br[Wr+676>>2],it=br[Wr+628>>2],Do=br[Wr+680>>2],ft=br[Wr+632>>2],Fo=br[Wr+684>>2],Kt=br[Wr+636>>2],No=br[Wr+688>>2],at=br[Wr+640>>2],Xo=br[Wr+692>>2],jt=br[Wr+644>>2],In=br[Wr+696>>2],ao=br[Wr+648>>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zr+2|0]<<16|lt[zr+3|0]<<24,zr=br[Ur+124>>2],br[Wr+280>>2]=br[Ur+120>>2],br[Wr+284>>2]=zr,zr=br[Ur+116>>2],br[Wr+272>>2]=br[Ur+112>>2],br[Wr+276>>2]=zr,zr=br[Ur+108>>2],br[Wr+248>>2]=br[Ur+104>>2],br[Wr+252>>2]=zr,zr=br[Ur+100>>2],br[Wr+240>>2]=br[Ur+96>>2],br[Wr+244>>2]=zr,zr=br[Ur+124>>2],br[Wr+232>>2]=br[Ur+120>>2],br[Wr+236>>2]=zr,zr=br[Ur+116>>2],br[Wr+224>>2]=br[Ur+112>>2],br[Wr+228>>2]=zr,Mo(yo=Wr+256|0,Wr+240|0,Wr+224|0),zr=br[Wr+268>>2],br[Ur+120>>2]=br[Wr+264>>2],br[Ur+124>>2]=zr,zr=br[Wr+260>>2],br[Ur+112>>2]=br[Wr+256>>2],br[Ur+116>>2]=zr,zr=br[Ur+92>>2],br[Wr+216>>2]=br[Ur+88>>2],br[Wr+220>>2]=zr,zr=br[Ur+84>>2],br[Wr+208>>2]=br[Ur+80>>2],br[Wr+212>>2]=zr,zr=br[Ur+108>>2],br[Wr+200>>2]=br[Ur+104>>2],br[Wr+204>>2]=zr,zr=br[Ur+100>>2],br[Wr+192>>2]=br[Ur+96>>2],br[Wr+196>>2]=zr,Mo(yo,Wr+208|0,Wr+192|0),zr=br[Wr+268>>2],br[Ur+104>>2]=br[Wr+264>>2],br[Ur+108>>2]=zr,zr=br[Wr+260>>2],br[Ur+96>>2]=br[Wr+256>>2],br[Ur+100>>2]=zr,zr=br[Ur+76>>2],br[Wr+184>>2]=br[Ur+72>>2],br[Wr+188>>2]=zr,Ao=br[4+(zr=Ur- -64|0)>>2],br[Wr+176>>2]=br[zr>>2],br[Wr+180>>2]=Ao,Ao=br[Ur+92>>2],br[Wr+168>>2]=br[Ur+88>>2],br[Wr+172>>2]=Ao,Ao=br[Ur+84>>2],br[Wr+160>>2]=br[Ur+80>>2],br[Wr+164>>2]=Ao,Mo(yo,Wr+176|0,Wr+160|0),Ao=br[Wr+268>>2],br[Ur+88>>2]=br[Wr+264>>2],br[Ur+92>>2]=Ao,Ao=br[Wr+260>>2],br[Ur+80>>2]=br[Wr+256>>2],br[Ur+84>>2]=Ao,Ao=br[Ur+60>>2],br[Wr+152>>2]=br[Ur+56>>2],br[Wr+156>>2]=Ao,Ao=br[Ur+52>>2],br[Wr+144>>2]=br[Ur+48>>2],br[Wr+148>>2]=Ao,Ao=br[Ur+76>>2],br[Wr+136>>2]=br[Ur+72>>2],br[Wr+140>>2]=Ao,Ao=br[zr+4>>2],br[Wr+128>>2]=br[zr>>2],br[Wr+132>>2]=Ao,Mo(yo,Wr+144|0,Wr+128|0),Ao=br[Wr+268>>2],br[Ur+72>>2]=br[Wr+264>>2],br[Ur+76>>2]=Ao,Ao=br[Wr+260>>2],br[zr>>2]=br[Wr+256>>2],br[zr+4>>2]=Ao,Ao=br[Ur+44>>2],br[Wr+120>>2]=br[Ur+40>>2],br[Wr+124>>2]=Ao,Ao=br[Ur+36>>2],br[Wr+112>>2]=br[Ur+32>>2],br[Wr+116>>2]=Ao,Ao=br[Ur+60>>2],br[Wr+104>>2]=br[Ur+56>>2],br[Wr+108>>2]=Ao,Ao=br[Ur+52>>2],br[Wr+96>>2]=br[Ur+48>>2],br[Wr+100>>2]=Ao,Mo(yo,Wr+112|0,Wr+96|0),Ao=br[Wr+268>>2],br[Ur+56>>2]=br[Wr+264>>2],br[Ur+60>>2]=Ao,Ao=br[Wr+260>>2],br[Ur+48>>2]=br[Wr+256>>2],br[Ur+52>>2]=Ao,Ao=br[Ur+28>>2],br[Wr+88>>2]=br[Ur+24>>2],br[Wr+92>>2]=Ao,Ao=br[Ur+20>>2],br[Wr+80>>2]=br[Ur+16>>2],br[Wr+84>>2]=Ao,Ao=br[Ur+44>>2],br[Wr+72>>2]=br[Ur+40>>2],br[Wr+76>>2]=Ao,Ao=br[Ur+36>>2],br[Wr+64>>2]=br[Ur+32>>2],br[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<24,yo=lt[ot+36|0]|lt[ot+37|0]<<8|lt[ot+38|0]<<16|lt[ot+39|0]<<24,_o=lt[ot+52|0]|lt[ot+53|0]<<8|lt[ot+54|0]<<16|lt[ot+55|0]<<24,$o=lt[ot+24|0]|lt[ot+25|0]<<8|lt[ot+26|0]<<16|lt[ot+27|0]<<24,Do=lt[ot+72|0]|lt[ot+73|0]<<8|lt[ot+74|0]<<16|lt[ot+75|0]<<24,Fo=lt[ot+88|0]|lt[ot+89|0]<<8|lt[ot+90|0]<<16|lt[ot+91|0]<<24,No=lt[ot+40|0]|lt[ot+41|0]<<8|lt[ot+42|0]<<16|lt[ot+43|0]<<24,Go=lt[ot+56|0]|lt[ot+57|0]<<8|lt[ot+58|0]<<16|lt[ot+59|0]<<24,Xo=br[it+192>>2],In=br[it+196>>2],_n=br[it+200>>2],br[it+204>>2]=(lt[ot+44|0]|lt[ot+45|0]<<8|lt[ot+46|0]<<16|lt[ot+47|0]<<24)&(lt[ot+60|0]|lt[ot+61|0]<<8|lt[ot+62|0]<<16|lt[ot+63|0]<<24)^(lt[ot+28|0]|lt[ot+29|0]<<8|lt[ot+30|0]<<16|lt[ot+31|0]<<24)^(lt[ot+76|0]|lt[ot+77|0]<<8|lt[ot+78|0]<<16|lt[ot+79|0]<<24)^br[it+204>>2]^(lt[ot+92|0]|lt[ot+93|0]<<8|lt[ot+94|0]<<16|lt[ot+95|0]<<24),br[it+200>>2]=No&Go^Fo^_n^Do^$o,br[it+196>>2]=yo&_o^Ao^In^Eo^ao,br[it+192>>2]=at&jt^Qn^ft^Kt^Xo,q0(wn,0,Zo),U0(zr,Mn,Wr),Wr=br[it+192>>2],Mn=br[it+196>>2],Zo=br[it+200>>2],wn=br[it+204>>2],zr=br[ot+92>>2],br[it+232>>2]=br[ot+88>>2],br[it+236>>2]=zr,zr=br[ot+84>>2],br[it+224>>2]=br[ot+80>>2],br[it+228>>2]=zr,zr=br[ot+76>>2],br[it+184>>2]=br[ot+72>>2],br[it+188>>2]=zr,zr=br[Ur+4>>2],br[it+176>>2]=br[Ur>>2],br[it+180>>2]=zr,zr=br[ot+92>>2],br[it+168>>2]=br[ot+88>>2],br[it+172>>2]=zr,zr=br[ot+84>>2],br[it+160>>2]=br[ot+80>>2],br[it+164>>2]=zr,Mo(zr=it+208|0,it+176|0,it+160|0),Qn=br[it+220>>2],br[ot+88>>2]=br[it+216>>2],br[ot+92>>2]=Qn,Qn=br[it+212>>2],br[ot+80>>2]=br[it+208>>2],br[ot+84>>2]=Qn,Qn=br[ot+60>>2],br[it+152>>2]=br[ot+56>>2],br[it+156>>2]=Qn,Qn=br[ot+52>>2],br[it+144>>2]=br[ot+48>>2],br[it+148>>2]=Qn,Qn=br[ot+76>>2],br[it+136>>2]=br[ot+72>>2],br[it+140>>2]=Qn,Qn=br[Ur+4>>2],br[it+128>>2]=br[Ur>>2],br[it+132>>2]=Qn,Mo(zr,it+144|0,it+128|0),Qn=br[it+220>>2],br[ot+72>>2]=br[it+216>>2],br[ot+76>>2]=Qn,Qn=br[it+212>>2],br[Ur>>2]=br[it+208>>2],br[Ur+4>>2]=Qn,Ur=br[ot+44>>2],br[it+120>>2]=br[ot+40>>2],br[it+124>>2]=Ur,Ur=br[ot+36>>2],br[it+112>>2]=br[ot+32>>2],br[it+116>>2]=Ur,Ur=br[ot+60>>2],br[it+104>>2]=br[ot+56>>2],br[it+108>>2]=Ur,Ur=br[ot+52>>2],br[it+96>>2]=br[ot+48>>2],br[it+100>>2]=Ur,Mo(zr,it+112|0,it+96|0),Ur=br[it+220>>2],br[ot+56>>2]=br[it+216>>2],br[ot+60>>2]=Ur,Ur=br[it+212>>2],br[ot+48>>2]=br[it+208>>2],br[ot+52>>2]=Ur,Ur=br[ot+28>>2],br[it+88>>2]=br[ot+24>>2],br[it+92>>2]=Ur,Ur=br[ot+20>>2],br[it+80>>2]=br[ot+16>>2],br[it+84>>2]=Ur,Ur=br[ot+44>>2],br[it+72>>2]=br[ot+40>>2],br[it+76>>2]=Ur,Ur=br[ot+36>>2],br[it+64>>2]=br[ot+32>>2],br[it+68>>2]=Ur,Mo(zr,it+80|0,it- -64|0),Ur=br[it+220>>2],br[ot+40>>2]=br[it+216>>2],br[ot+44>>2]=Ur,Ur=br[it+212>>2],br[ot+32>>2]=br[it+208>>2],br[ot+36>>2]=Ur,Ur=br[ot+12>>2],br[it+56>>2]=br[ot+8>>2],br[it+60>>2]=Ur,Ur=br[ot+4>>2],br[it+48>>2]=br[ot>>2],br[it+52>>2]=Ur,Ur=br[ot+28>>2],br[it+40>>2]=br[ot+24>>2],br[it+44>>2]=Ur,Ur=br[ot+20>>2],br[it+32>>2]=br[ot+16>>2],br[it+36>>2]=Ur,Mo(zr,it+48|0,it+32|0),Ur=br[it+220>>2],br[ot+24>>2]=br[it+216>>2],br[ot+28>>2]=Ur,Ur=br[it+212>>2],br[ot+16>>2]=br[it+208>>2],br[ot+20>>2]=Ur,Ur=br[it+236>>2],br[it+24>>2]=br[it+232>>2],br[it+28>>2]=Ur,Ur=br[it+228>>2],br[it+16>>2]=br[it+224>>2],br[it+20>>2]=Ur,Ur=br[ot+12>>2],br[it+8>>2]=br[ot+8>>2],br[it+12>>2]=Ur,Ur=br[ot+4>>2],br[it>>2]=br[ot>>2],br[it+4>>2]=Ur,Mo(zr,it+16|0,it),zr=br[it+208>>2],Ur=br[it+212>>2],Qn=br[it+216>>2],br[ot+12>>2]=br[it+220>>2]^wn,br[ot+8>>2]=Qn^Zo,br[ot+4>>2]=Ur^Mn,br[ot>>2]=zr^Wr,On=it+240|0}function ZA(zr,Ur,Wr,ot,it){zr|=0,Ur|=0,Wr|=0,ot|=0;var ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0;if(jt=1886610805^(ot=lt[0|(it|=0)]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24),Kt=1936682341^(ft=lt[it+4|0]|lt[it+5|0]<<8|lt[it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r+248>>2]=Fo,No=br[Wr+484>>2],br[Wr+244>>2]=No,Xo=br[Wr+480>>2],br[Wr+240>>2]=Xo+1,ns(jt=Wr+240|0,jt,33984),br[Wr+468>>2]=ao-12055116,br[Wr+464>>2]=Eo-18696448,br[Wr+460>>2]=Ao-3247719,br[Wr+456>>2]=yo-6275908,br[Wr+452>>2]=_o-8787816,br[Wr+448>>2]=$o+114729,br[Wr+444>>2]=Do+6949391,br[Wr+440>>2]=Fo-15372611,br[Wr+436>>2]=No+13857413,br[Wr+432>>2]=Xo-10913610,ns(Go=Wr+192|0,at,1600),br[Wr+228>>2]=0-br[Wr+228>>2],br[Wr+224>>2]=0-br[Wr+224>>2],br[Wr+220>>2]=0-br[Wr+220>>2],br[Wr+216>>2]=0-br[Wr+216>>2],br[Wr+212>>2]=0-br[Wr+212>>2],br[Wr+208>>2]=0-br[Wr+208>>2],br[Wr+204>>2]=0-br[Wr+204>>2],br[Wr+200>>2]=0-br[Wr+200>>2],br[Wr+196>>2]=0-br[Wr+196>>2],br[Wr+192>>2]=-1^br[Wr+192>>2],ns(Go,Go,Wr+432|0),at=EA(ot=Wr+384|0,jt,Go),ns(jt=Wr+336|0,ot,Ur),Dn(it=Wr+576|0,jt),Kt=lt[Wr+576|0],Zn=br[Wr+420>>2],jt=br[Wr+372>>2],xa=br[Wr+416>>2],In=br[Wr+368>>2],os=br[Wr+412>>2],_n=br[Wr+364>>2],as=br[Wr+408>>2],Qn=br[Wr+360>>2],$a=br[Wr+404>>2],Mn=br[Wr+356>>2],Hn=br[Wr+400>>2],Zo=br[Wr+352>>2],Vn=br[Wr+396>>2],wn=br[Wr+348>>2],ds=br[Wr+392>>2],Nn=br[Wr+344>>2],Is=br[Wr+388>>2],Jn=br[Wr+340>>2],ft=br[Wr+384>>2],jn=br[Wr+336>>2],Ur=at-1|0,br[Wr+612>>2]=Ur&ao,br[Wr+608>>2]=Ur&Eo,br[Wr+604>>2]=Ur&Ao,br[Wr+600>>2]=Ur&yo,br[Wr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=Wr+624|0}function hA(zr,Ur,Wr){var ot,it=0,ft=0,Kt=0,at=0,jt=0,ao=0;On=ot=On+-64|0;e:{if((Wr-65&255)>>>0>191){if(it=-1,!(lt[zr+80|0]|lt[zr+81|0]<<8|lt[zr+82|0]<<16|lt[zr+83|0]<<24|lt[zr+84|0]|lt[zr+85|0]<<8|lt[zr+86|0]<<16|lt[zr+87|0]<<24)){if((at=lt[zr+352|0]|lt[zr+353|0]<<8|lt[zr+354|0]<<16|lt[zr+355|0]<<24)>>>0>=129){if(Kt=lt[0|(it=zr- -64|0)]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,jt=ft=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,ft=(at=Kt+128|0)>>>0<128?ft+1|0:ft,Vt[0|it]=at,Vt[it+1|0]=at>>>8,Vt[it+2|0]=at>>>16,Vt[it+3|0]=at>>>24,Vt[it+4|0]=ft,Vt[it+5|0]=ft>>>8,Vt[it+6|0]=ft>>>16,Vt[it+7|0]=ft>>>24,ft=lt[zr+76|0]|lt[zr+77|0]<<8|lt[zr+78|0]<<16|lt[zr+79|0]<<24,ft=(it=(0|jt)==-1&Kt>>>0>4294967167)>>>0>(Kt=it+(lt[zr+72|0]|lt[zr+73|0]<<8|lt[zr+74|0]<<16|lt[zr+75|0]<<24)|0)>>>0?ft+1|0:ft,Vt[zr+72|0]=Kt,Vt[zr+73|0]=Kt>>>8,Vt[zr+74|0]=Kt>>>16,Vt[zr+75|0]=Kt>>>24,Vt[zr+76|0]=ft,Vt[zr+77|0]=ft>>>8,Vt[zr+78|0]=ft>>>16,Vt[zr+79|0]=ft>>>24,ju(zr,ft=zr+96|0),it=(lt[zr+352|0]|lt[zr+353|0]<<8|lt[zr+354|0]<<16|lt[zr+355|0]<<24)-128|0,Vt[zr+352|0]=it,Vt[zr+353|0]=it>>>8,Vt[zr+354|0]=it>>>16,Vt[zr+355|0]=it>>>24,it>>>0>=129)break e;U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lt[0|zr]|lt[zr+1|0]<<8|lt[zr+2|0]<<16|lt[zr+3|0]<<24,br[ot+4>>2]=ft,ft=lt[zr+12|0]|lt[zr+13|0]<<8|lt[zr+14|0]<<16|lt[zr+15|0]<<24,br[ot+8>>2]=lt[zr+8|0]|lt[zr+9|0]<<8|lt[zr+10|0]<<16|lt[zr+11|0]<<24,br[ot+12>>2]=ft,ft=lt[zr+20|0]|lt[zr+21|0]<<8|lt[zr+22|0]<<16|lt[zr+23|0]<<24,br[ot+16>>2]=lt[zr+16|0]|lt[zr+17|0]<<8|lt[zr+18|0]<<16|lt[zr+19|0]<<24,br[ot+20>>2]=ft,ft=lt[zr+28|0]|lt[zr+29|0]<<8|lt[zr+30|0]<<16|lt[zr+31|0]<<24,br[ot+24>>2]=lt[zr+24|0]|lt[zr+25|0]<<8|lt[zr+26|0]<<16|lt[zr+27|0]<<24,br[ot+28>>2]=ft,ft=lt[zr+36|0]|lt[zr+37|0]<<8|lt[zr+38|0]<<16|lt[zr+39|0]<<24,br[ot+32>>2]=lt[zr+32|0]|lt[zr+33|0]<<8|lt[zr+34|0]<<16|lt[zr+35|0]<<24,br[ot+36>>2]=ft,ft=lt[zr+44|0]|lt[zr+45|0]<<8|lt[zr+46|0]<<16|lt[zr+47|0]<<24,br[ot+40>>2]=lt[zr+40|0]|lt[zr+41|0]<<8|lt[zr+42|0]<<16|lt[zr+43|0]<<24,br[ot+44>>2]=ft,ft=lt[zr+52|0]|lt[zr+53|0]<<8|lt[zr+54|0]<<16|lt[zr+55|0]<<24,br[ot+48>>2]=lt[zr+48|0]|lt[zr+49|0]<<8|lt[zr+50|0]<<16|lt[zr+51|0]<<24,br[ot+52>>2]=ft,ft=lt[zr+60|0]|lt[zr+61|0]<<8|lt[zr+62|0]<<16|lt[zr+63|0]<<24,br[ot+56>>2]=lt[zr+56|0]|lt[zr+57|0]<<8|lt[zr+58|0]<<16|lt[zr+59|0]<<24,br[ot+60>>2]=ft,U0(Ur,ot,Wr),o0(zr,64),o0(it,256),it=0}return On=ot- -64|0,it}El(),Qs()}uu(1369,1217,306,1142),Qs()}function _g(zr,Ur,Wr){zr|=0,Ur|=0,Wr|=0;var ot,it,ft,Kt=0,at=0;On=ot=On-192|0,br[ot+144>>2]=0,br[ot+148>>2]=0,br[ot+152>>2]=0,br[ot+156>>2]=0,br[ot+104>>2]=0,br[ot+108>>2]=0,br[ot+112>>2]=0,br[ot+116>>2]=0,br[ot+120>>2]=0,br[ot+124>>2]=0,Kt=br[8591],br[ot+168>>2]=br[8590],br[ot+172>>2]=Kt,Kt=br[8593],br[ot+176>>2]=br[8592],br[ot+180>>2]=Kt,Kt=br[8595],br[ot+184>>2]=br[8594],br[ot+188>>2]=Kt,br[ot+128>>2]=0,br[ot+132>>2]=0,br[ot+136>>2]=0,br[ot+140>>2]=0,br[ot+96>>2]=0,br[ot+100>>2]=0,Kt=br[8589],br[ot+160>>2]=br[8588],br[ot+164>>2]=Kt,Kt=lt[Wr+20|0]|lt[Wr+21|0]<<8|lt[Wr+22|0]<<16|lt[Wr+23|0]<<24,br[ot+80>>2]=lt[Wr+16|0]|lt[Wr+17|0]<<8|lt[Wr+18|0]<<16|lt[Wr+19|0]<<24,br[ot+84>>2]=Kt,Kt=lt[Wr+28|0]|lt[Wr+29|0]<<8|lt[Wr+30|0]<<16|lt[Wr+31|0]<<24,br[ot+88>>2]=lt[Wr+24|0]|lt[Wr+25|0]<<8|lt[Wr+26|0]<<16|lt[Wr+27|0]<<24,br[ot+92>>2]=Kt,Kt=lt[Wr+4|0]|lt[Wr+5|0]<<8|lt[Wr+6|0]<<16|lt[Wr+7|0]<<24,br[ot+64>>2]=lt[0|Wr]|lt[Wr+1|0]<<8|lt[Wr+2|0]<<16|lt[Wr+3|0]<<24,br[ot+68>>2]=Kt,Kt=lt[Wr+12|0]|lt[Wr+13|0]<<8|lt[Wr+14|0]<<16|lt[Wr+15|0]<<24,br[ot+72>>2]=lt[Wr+8|0]|lt[Wr+9|0]<<8|lt[Wr+10|0]<<16|lt[Wr+11|0]<<24,br[ot+76>>2]=Kt,jp(Wr=ot+128|0,Kt=ot- -64|0),fu(Wr),at=br[ot+156>>2],br[ot+24>>2]=br[ot+152>>2],br[ot+28>>2]=at,at=br[ot+148>>2],br[ot+16>>2]=br[ot+144>>2],br[ot+20>>2]=at,at=br[ot+140>>2],br[ot+8>>2]=br[ot+136>>2],br[ot+12>>2]=at,at=br[ot+132>>2],br[ot>>2]=br[ot+128>>2],br[ot+4>>2]=at,br[ot+120>>2]=0,br[ot+124>>2]=0,br[ot+112>>2]=0,br[ot+116>>2]=0,br[ot+104>>2]=0,br[ot+108>>2]=0,br[ot+96>>2]=0,br[ot+100>>2]=0,at=lt[Ur+20|0]|lt[Ur+21|0]<<8|lt[Ur+22|0]<<16|lt[Ur+23|0]<<24,br[ot+80>>2]=lt[Ur+16|0]|lt[Ur+17|0]<<8|lt[Ur+18|0]<<16|lt[Ur+19|0]<<24,br[ot+84>>2]=at,at=lt[Ur+28|0]|lt[Ur+29|0]<<8|lt[Ur+30|0]<<16|lt[Ur+31|0]<<24,br[ot+88>>2]=lt[Ur+24|0]|lt[Ur+25|0]<<8|lt[Ur+26|0]<<16|lt[Ur+27|0]<<24,br[ot+92>>2]=at,at=lt[Ur+8|0]|lt[Ur+9|0]<<8|lt[Ur+10|0]<<16|lt[Ur+11|0]<<24,it=lt[Ur+12|0]|lt[Ur+13|0]<<8|lt[Ur+14|0]<<16|lt[Ur+15|0]<<24,ft=lt[0|Ur]|lt[Ur+1|0]<<8|lt[Ur+2|0]<<16|lt[Ur+3|0]<<24,Ur=lt[Ur+4|0]|lt[Ur+5|0]<<8|lt[Ur+6|0]<<16|lt[Ur+7|0]<<24,br[ot+56>>2]=0,br[ot+60>>2]=0,br[ot+48>>2]=0,br[ot+52>>2]=0,br[ot+40>>2]=0,br[ot+44>>2]=0,br[ot+64>>2]=ft,br[ot+68>>2]=Ur,br[ot+72>>2]=at,br[ot+76>>2]=it,br[ot+32>>2]=0,br[ot+36>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,Vt[zr+2|0]=Kt>>>16,Vt[zr+3|0]=Kt>>>24,Vt[zr+4|0]=Ur,Vt[zr+5|0]=Ur>>>8,Vt[zr+6|0]=Ur>>>16,Vt[zr+7|0]=Ur>>>24,o0(Wr,64),On=ot+192|0}function fA(zr){var Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo,Ao=0,yo=0,_o=0,$o=0,Do=0;for(On=Ur=On-2048|0,Ho($o=Ur+640|0,zr),Ao=br[zr+36>>2],br[Ur+352>>2]=br[zr+32>>2],br[Ur+356>>2]=Ao,Ao=br[zr+28>>2],br[Ur+344>>2]=br[zr+24>>2],br[Ur+348>>2]=Ao,Ao=br[zr+20>>2],br[Ur+336>>2]=br[zr+16>>2],br[Ur+340>>2]=Ao,Ao=br[zr+12>>2],br[Ur+328>>2]=br[zr+8>>2],br[Ur+332>>2]=Ao,Ao=br[zr+4>>2],br[Ur+320>>2]=br[zr>>2],br[Ur+324>>2]=Ao,Ao=br[zr+52>>2],br[Ur+368>>2]=br[zr+48>>2],br[Ur+372>>2]=Ao,Ao=br[zr+60>>2],br[Ur+376>>2]=br[zr+56>>2],br[Ur+380>>2]=Ao,Ao=br[4+(_o=zr- -64|0)>>2],br[Ur+384>>2]=br[_o>>2],br[Ur+388>>2]=Ao,Ao=br[zr+76>>2],br[Ur+392>>2]=br[zr+72>>2],br[Ur+396>>2]=Ao,Ao=br[zr+44>>2],br[Ur+360>>2]=br[zr+40>>2],br[Ur+364>>2]=Ao,Ao=br[zr+92>>2],br[Ur+408>>2]=br[zr+88>>2],br[Ur+412>>2]=Ao,Ao=br[zr+100>>2],br[Ur+416>>2]=br[zr+96>>2],br[Ur+420>>2]=Ao,Ao=br[zr+108>>2],br[Ur+424>>2]=br[zr+104>>2],br[Ur+428>>2]=Ao,Ao=br[zr+116>>2],br[Ur+432>>2]=br[zr+112>>2],br[Ur+436>>2]=Ao,Ao=br[zr+84>>2],br[Ur+400>>2]=br[zr+80>>2],br[Ur+404>>2]=Ao,Ll(y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Ur+1968|0,$o=Ur+80|0,_o=Ur+40|0,zr=252;Ao=br[Ur+36>>2],br[(yo=Ur+1960|0)>>2]=br[Ur+32>>2],br[yo+4>>2]=Ao,Ao=br[Ur+28>>2],br[(yo=Ur+1952|0)>>2]=br[Ur+24>>2],br[yo+4>>2]=Ao,Ao=br[Ur+20>>2],br[(yo=Ur+1944|0)>>2]=br[Ur+16>>2],br[yo+4>>2]=Ao,Ao=br[Ur+12>>2],br[(yo=Ur+1936|0)>>2]=br[Ur+8>>2],br[yo+4>>2]=Ao,Ao=br[Ur+4>>2],br[Ur+1928>>2]=br[Ur>>2],br[Ur+1932>>2]=Ao,Ao=br[_o+36>>2],br[Kt+32>>2]=br[_o+32>>2],br[Kt+36>>2]=Ao,Ao=br[_o+28>>2],br[Kt+24>>2]=br[_o+24>>2],br[Kt+28>>2]=Ao,Ao=br[_o+20>>2],br[Kt+16>>2]=br[_o+16>>2],br[Kt+20>>2]=Ao,Ao=br[_o+12>>2],br[Kt+8>>2]=br[_o+8>>2],br[Kt+12>>2]=Ao,Ao=br[_o+4>>2],br[Kt>>2]=br[_o>>2],br[Kt+4>>2]=Ao,Ao=br[$o+36>>2],br[ft+32>>2]=br[$o+32>>2],br[ft+36>>2]=Ao,Ao=br[$o+28>>2],br[ft+24>>2]=br[$o+24>>2],br[ft+28>>2]=Ao,Ao=br[$o+20>>2],br[ft+16>>2]=br[$o+16>>2],br[ft+20>>2]=Ao,Ao=br[$o+12>>2],br[ft+8>>2]=br[$o+8>>2],br[ft+12>>2]=Ao,Ao=br[$o+4>>2],br[ft>>2]=br[$o>>2],br[ft+4>>2]=Ao,Ao=zr,Do=Vt[zr+33728|0],Ll(yo=Ur+480|0,Ur+1928|0),(0|Do)>0?(ns(zr=Ur+320|0,yo,Wr),ns(at,ot,it),ns(jt,it,Wr),ns(ao,yo,ot),_l(yo,zr,(Ur+640|0)+w0((254&Do)>>>1|0,160)|0)):(0|Do)>=0||(ns(zr=Ur+320|0,yo=Ur+480|0,Wr),ns(at,ot,it),ns(jt,it,Wr),ns(ao,yo,ot),oA(yo,zr,(Ur+640|0)+w0((0-Do&254)>>>1|0,160)|0)),ns(Ur,zr=Ur+480|0,Wr),ns(_o,ot,it),ns($o,it,Wr),ns(Eo,zr,ot),zr=Ao-1|0,Ao;);return Dn(zr=Ur+640|0,Ur),zr=Vl(zr,32),On=Ur+2048|0,zr}function $l(zr){var Ur=0,Wr=0,ot=0,it=0,ft=0,Kt=0,at=0,jt=0,ao=0;e:if(zr|=0){ft=(ot=zr-8|0)+(zr=-8&(Ur=br[zr-4>>2]))|0;r:if(!(1&Ur)){if(!(3&Ur)||(ot=ot-(Ur=br[ot>>2])|0)>>>0>>0<=255){if(it=Ur>>>3|0,(0|(Ur=br[ot+12>>2]))==(0|(Wr=br[ot+8>>2]))){jt=37572,ao=br[9393]&ga(-2,it),br[jt>>2]=ao;break r}br[Wr+12>>2]=Ur,br[Ur+8>>2]=Wr;break r}if(at=br[ot+24>>2],(0|ot)!=(0|(Ur=br[ot+12>>2]))){Wr=br[ot+8>>2],br[Wr+12>>2]=Ur,br[Ur+8>>2]=Wr;break t}if(!(Wr=br[(it=ot+20|0)>>2])){if(!(Wr=br[ot+16>>2]))break o;it=ot+16|0}for(;Kt=it,(Wr=br[(it=(Ur=Wr)+20|0)>>2])||(it=Ur+16|0,Wr=br[Ur+16>>2]););br[Kt>>2]=0;break t}if((3&(Ur=br[ft+4>>2]))!=3)break r;return br[9395]=zr,br[ft+4>>2]=-2&Ur,br[ot+4>>2]=1|zr,void(br[ft>>2]=zr)}Ur=0}if(at){Wr=br[ot+28>>2];t:{if(br[(it=37876+(Wr<<2)|0)>>2]==(0|ot)){if(br[it>>2]=Ur,Ur)break t;jt=37576,ao=br[9394]&ga(-2,Wr),br[jt>>2]=ao;break r}if(br[at+(br[at+16>>2]==(0|ot)?16:20)>>2]=Ur,!Ur)break r}br[Ur+24>>2]=at,(Wr=br[ot+16>>2])&&(br[Ur+16>>2]=Wr,br[Wr+24>>2]=Ur),(Wr=br[ot+20>>2])&&(br[Ur+20>>2]=Wr,br[Wr+24>>2]=Ur)}}if(!(ot>>>0>=ft>>>0)&&1&(Ur=br[ft+4>>2])){r:{t:{o:{n:{if(!(2&Ur)){if(br[9399]==(0|ft)){if(br[9399]=ot,zr=br[9396]+zr|0,br[9396]=zr,br[ot+4>>2]=1|zr,br[9398]!=(0|ot))break e;return br[9395]=0,void(br[9398]=0)}if(br[9398]==(0|ft))return br[9398]=ot,zr=br[9395]+zr|0,br[9395]=zr,br[ot+4>>2]=1|zr,void(br[zr+ot>>2]=zr);if(zr=(-8&Ur)+zr|0,Ur>>>0<=255){if(it=Ur>>>3|0,(0|(Ur=br[ft+12>>2]))==(0|(Wr=br[ft+8>>2]))){jt=37572,ao=br[9393]&ga(-2,it),br[jt>>2]=ao;break t}br[Wr+12>>2]=Ur,br[Ur+8>>2]=Wr;break t}if(at=br[ft+24>>2],(0|ft)!=(0|(Ur=br[ft+12>>2]))){Wr=br[ft+8>>2],br[Wr+12>>2]=Ur,br[Ur+8>>2]=Wr;break o}if(!(Wr=br[(it=ft+20|0)>>2])){if(!(Wr=br[ft+16>>2]))break n;it=ft+16|0}for(;Kt=it,(Wr=br[(it=(Ur=Wr)+20|0)>>2])||(it=Ur+16|0,Wr=br[Ur+16>>2]););br[Kt>>2]=0;break o}br[ft+4>>2]=-2&Ur,br[ot+4>>2]=1|zr,br[zr+ot>>2]=zr;break r}Ur=0}if(at){Wr=br[ft+28>>2];o:{if(br[(it=37876+(Wr<<2)|0)>>2]==(0|ft)){if(br[it>>2]=Ur,Ur)break o;jt=37576,ao=br[9394]&ga(-2,Wr),br[jt>>2]=ao;break t}if(br[at+(br[at+16>>2]==(0|ft)?16:20)>>2]=Ur,!Ur)break t}br[Ur+24>>2]=at,(Wr=br[ft+16>>2])&&(br[Ur+16>>2]=Wr,br[Wr+24>>2]=Ur),(Wr=br[ft+20>>2])&&(br[Ur+20>>2]=Wr,br[Wr+24>>2]=Ur)}}if(br[ot+4>>2]=1|zr,br[zr+ot>>2]=zr,br[9398]==(0|ot))return void(br[9395]=zr)}if(zr>>>0<=255)return Ur=37612+(-8&zr)|0,(Wr=br[9393])&(zr=1<<(zr>>>3))?zr=br[Ur+8>>2]:(br[9393]=zr|Wr,zr=Ur),br[Ur+8>>2]=ot,br[zr+12>>2]=ot,br[ot+12>>2]=Ur,void(br[ot+8>>2]=zr);Wr=31,zr>>>0<=16777215&&(Wr=62+((zr>>>38-(Ur=Ql(zr>>>8|0))&1)-(Ur<<1)|0)|0),br[ot+28>>2]=Wr,br[ot+16>>2]=0,br[ot+20>>2]=0,Ur=37876+(Wr<<2)|0;r:{t:{if((it=br[9394])&(Kt=1<>>1|0)|0:0),Ur=br[Ur>>2];;){if(it=Ur,(-8&br[Ur+4>>2])==(0|zr))break t;if(Kt=Wr>>>29|0,Wr<<=1,!(Ur=br[16+(Kt=Ur+(4&Kt)|0)>>2]))break}br[Kt+16>>2]=ot,br[ot+24>>2]=it}else br[9394]=it|Kt,br[Ur>>2]=ot,br[ot+24>>2]=Ur;br[ot+12>>2]=ot,br[ot+8>>2]=ot;break r}zr=br[it+8>>2],br[zr+12>>2]=ot,br[it+8>>2]=ot,br[ot+24>>2]=0,br[ot+12>>2]=it,br[ot+8>>2]=zr}zr=br[9401]-1|0,br[9401]=zr||-1}}}function mA(zr,Ur,Wr,ot,it){var ft,Kt,at,jt,ao,Eo,Ao,yo,_o,$o,Do,Fo,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0,Nn=0,Jn=0,jn=0,Zn=0,xa=0,os=0,as=0,$a=0,Hn=0,Vn=0,ds=0,Is=0,Gn=0,Xn=0,ys=0;if(ot?($a=lt[ot+12|0]|lt[ot+13|0]<<8|lt[ot+14|0]<<16|lt[ot+15|0]<<24,Vn=lt[ot+8|0]|lt[ot+9|0]<<8|lt[ot+10|0]<<16|lt[ot+11|0]<<24,Hn=lt[0|ot]|lt[ot+1|0]<<8|lt[ot+2|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kt=1,Wr>>>0<4096||(Kt=2,Wr>>>0<8192||(Kt=3,Wr>>>0<16384||(Kt=4,Wr>>>0<32768||(Kt=5,Wr>>>0<65536||(Kt=6,Wr>>>0<131072||(Kt=7,Wr>>>0<262144||(Kt=8,Wr>>>0<524288||(Kt=9,Wr>>>0<1048576||(Kt=10,Wr>>>0<2097152||(Kt=11,Wr>>>0<4194304||(Kt=12,Wr>>>0<8388608||(Kt=13,Wr>>>0<16777216||(Kt=14,Wr>>>0<33554432||(Kt=15,Wr>>>0<67108864||(Kt=16,Wr>>>0<134217728||(Kt=17,Wr>>>0<268435456||(Kt=18,Wr>>>0<536870912||(Kt=19,Wr>>>0<1073741824||(Kt=(0|Wr)>=0?20:21))))))))))))))))))),Wr=Kt,br[ot>>2]=Wr,ot=Ur>>>2|0,Ur=(3&Ur)<<30|zr>>>2,zr=31&Wr,(63&Wr)>>>0>=32?(Wr=0,zr=ot>>>zr|0):(Wr=ot>>>zr|0,zr=((1<>>zr),void(br[it>>2]=((!Wr&zr>>>0>=1073741823|Wr?1073741823:zr)>>>0)/Sl[ft>>2]);br[it>>2]=1,Ur=us(zr,Ur,br[ft>>2]<<2),Wr=1,!(zr=Io)&Ur>>>0<4||(Wr=2,!zr&Ur>>>0<8||(Wr=3,!zr&Ur>>>0<16||(Wr=4,!zr&Ur>>>0<32||(Wr=5,!zr&Ur>>>0<64||(Wr=6,!zr&Ur>>>0<128||(Wr=7,!zr&Ur>>>0<256||(Wr=8,!zr&Ur>>>0<512||(Wr=9,!zr&Ur>>>0<1024||(Wr=10,!zr&Ur>>>0<2048||(Wr=11,!zr&Ur>>>0<4096||(Wr=12,!zr&Ur>>>0<8192||(Wr=13,!zr&Ur>>>0<16384||(Wr=14,!zr&Ur>>>0<32768||(Wr=15,!zr&Ur>>>0<65536||(Wr=16,!zr&Ur>>>0<131072||(Wr=17,!zr&Ur>>>0<262144||(Wr=18,!zr&Ur>>>0<524288||(Wr=19,!zr&Ur>>>0<1048576||(Wr=20,!zr&Ur>>>0<2097152||(Wr=21,!zr&Ur>>>0<4194304||(Wr=22,!zr&Ur>>>0<8388608||(Wr=23,!zr&Ur>>>0<16777216||(Wr=24,!zr&Ur>>>0<33554432||(Wr=25,!zr&Ur>>>0<67108864||(Wr=26,!zr&Ur>>>0<134217728||(Wr=27,!zr&Ur>>>0<268435456||(Wr=28,!zr&Ur>>>0<536870912||(Wr=29,!zr&Ur>>>0<1073741824||(Wr=30,!zr&Ur>>>0<2147483648||(Wr=31,zr&&(Wr=32,zr>>>0<2||(Wr=33,zr>>>0<4||(Wr=34,zr>>>0<8||(Wr=35,zr>>>0<16||(Wr=36,zr>>>0<32||(Wr=37,zr>>>0<64||(Wr=38,zr>>>0<128||(Wr=39,zr>>>0<256||(Wr=40,zr>>>0<512||(Wr=41,zr>>>0<1024||(Wr=42,zr>>>0<2048||(Wr=43,zr>>>0<4096||(Wr=44,zr>>>0<8192||(Wr=45,zr>>>0<16384||(Wr=46,zr>>>0<32768||(Wr=47,zr>>>0<65536||(Wr=48,zr>>>0<131072||(Wr=49,zr>>>0<262144||(Wr=50,zr>>>0<524288||(Wr=51,zr>>>0<1048576||(Wr=52,zr>>>0<2097152||(Wr=53,zr>>>0<4194304||(Wr=54,zr>>>0<8388608||(Wr=55,zr>>>0<16777216||(Wr=56,zr>>>0<33554432||(Wr=57,zr>>>0<67108864||(Wr=58,zr>>>0<134217728||(Wr=59,zr>>>0<268435456||(Wr=60,zr>>>0<536870912||(Wr=61,zr>>>0<1073741824||(Wr=(0|zr)>0|(0|zr)>=0?62:63))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))),br[ot>>2]=Wr}function ep(zr,Ur,Wr,ot,it,ft,Kt,at,jt){var ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0;if(Ur-65>>>0<4294967232|Kt>>>0>64)zr=-1;else{Fo=ao=On,On=ao=ao-512&-64;e:{r:if(!(!(!(ot|it)|Wr)|!zr|(($o=255&Ur)-65&255)>>>0<=191|!(!(Ur=255&Kt)||ft)|Ur>>>0>=65)){if(Ur){if(!ft)break r;at?(Eo=725511199^(lt[at+8|0]|lt[at+9|0]<<8|lt[at+10|0]<<16|lt[at+11|0]<<24),Ao=-1694144372^(lt[at+12|0]|lt[at+13|0]<<8|lt[at+14|0]<<16|lt[at+15|0]<<24),Kt=-1377402159^(lt[0|at]|lt[at+1|0]<<8|lt[at+2|0]<<16|lt[at+3|0]<<24),at=1359893119^(lt[at+4|0]|lt[at+5|0]<<8|lt[at+6|0]<<16|lt[at+7|0]<<24)):(Eo=725511199,Ao=-1694144372,Kt=-1377402159,at=1359893119),jt?(yo=327033209^(lt[jt+8|0]|lt[jt+9|0]<<8|lt[jt+10|0]<<16|lt[jt+11|0]<<24),_o=1541459225^(lt[jt+12|0]|lt[jt+13|0]<<8|lt[jt+14|0]<<16|lt[jt+15|0]<<24),Do=-79577749^(lt[0|jt]|lt[jt+1|0]<<8|lt[jt+2|0]<<16|lt[jt+3|0]<<24),jt=528734635^(lt[jt+4|0]|lt[jt+5|0]<<8|lt[jt+6|0]<<16|lt[jt+7|0]<<24)):(yo=327033209,_o=1541459225,Do=-79577749,jt=528734635),q0(ao- -64|0,0,293),br[ao+56>>2]=yo,br[ao+60>>2]=_o,br[ao+48>>2]=Do,br[ao+52>>2]=jt,br[ao+40>>2]=Eo,br[ao+44>>2]=Ao,br[ao+32>>2]=Kt,br[ao+36>>2]=at,br[ao+24>>2]=1595750129,br[ao+28>>2]=-1521486534,br[ao+16>>2]=-23791573,br[ao+20>>2]=1013904242,br[ao+8>>2]=-2067093701,br[ao+12>>2]=-1150833019,br[ao>>2]=-222443256^(Ur<<8|$o),br[ao+4>>2]=Ur>>>24^1779033703,q0((Kt=ao+384|0)+Ur|0,0,128-Ur|0),U0(Kt,ft,Ur),U0(ao+96|0,Kt,128),br[ao+352>>2]=128,o0(Kt,128),Ur=128}else at?(Eo=725511199^(lt[at+8|0]|lt[at+9|0]<<8|lt[at+10|0]<<16|lt[at+11|0]<<24),Ao=-1694144372^(lt[at+12|0]|lt[at+13|0]<<8|lt[at+14|0]<<16|lt[at+15|0]<<24),ft=1359893119^(lt[at+4|0]|lt[at+5|0]<<8|lt[at+6|0]<<16|lt[at+7|0]<<24),Ur=-1377402159^(lt[0|at]|lt[at+1|0]<<8|lt[at+2|0]<<16|lt[at+3|0]<<24)):(Eo=725511199,Ao=-1694144372,ft=1359893119,Ur=-1377402159),jt?(yo=327033209^(lt[jt+8|0]|lt[jt+9|0]<<8|lt[jt+10|0]<<16|lt[jt+11|0]<<24),_o=1541459225^(lt[jt+12|0]|lt[jt+13|0]<<8|lt[jt+14|0]<<16|lt[jt+15|0]<<24),at=528734635^(lt[jt+4|0]|lt[jt+5|0]<<8|lt[jt+6|0]<<16|lt[jt+7|0]<<24),Kt=-79577749^(lt[0|jt]|lt[jt+1|0]<<8|lt[jt+2|0]<<16|lt[jt+3|0]<<24)):(yo=327033209,_o=1541459225,at=528734635,Kt=-79577749),q0(ao- -64|0,0,293),br[ao+56>>2]=yo,br[ao+60>>2]=_o,br[ao+48>>2]=Kt,br[ao+52>>2]=at,br[ao+40>>2]=Eo,br[ao+44>>2]=Ao,br[ao+32>>2]=Ur,br[ao+36>>2]=ft,br[ao+24>>2]=1595750129,br[ao+28>>2]=-1521486534,br[ao+16>>2]=-23791573,br[ao+20>>2]=1013904242,br[ao+8>>2]=-2067093701,br[ao+12>>2]=-1150833019,br[ao>>2]=-222443256^$o,br[ao+4>>2]=1779033703,Ur=0;t:if(ot|it)for(jt=ao+224|0,at=ao+96|0;;){if(Kt=Ur+at|0,!it&ot>>>0<=(ft=256-Ur|0)>>>0){U0(Kt,Wr,ot),br[ao+352>>2]=ot+br[ao+352>>2];break t}if(U0(Kt,Wr,ft),br[ao+352>>2]=ft+br[ao+352>>2],Eo=Ur=br[ao+68>>2],Ur=(Ao=(Kt=br[ao+64>>2])+128|0)>>>0<128?Ur+1|0:Ur,br[ao+64>>2]=Ao,br[ao+68>>2]=Ur,Ur=br[ao+76>>2],Ur=(Eo=Kt=(0|Eo)==-1&Kt>>>0>4294967167)>>>0>(Kt=Kt+br[ao+72>>2]|0)>>>0?Ur+1|0:Ur,br[ao+72>>2]=Kt,br[ao+76>>2]=Ur,ju(ao,at),U0(at,jt,128),Ur=br[ao+352>>2]-128|0,br[ao+352>>2]=Ur,Wr=Wr+ft|0,!((it=it-(ot>>>0>>0)|0)|(ot=ot-ft|0)))break}hA(ao,zr,$o),On=Fo;break e}El(),Qs()}zr=0}return zr}function rp(zr,Ur){var Wr,ot=0,it=0,ft=0,Kt=0,at=0,jt=0,ao=0;Wr=zr+Ur|0;e:{r:if(!(1&(ot=br[zr+4>>2]))){if(!(3&ot))break e;Ur=(ot=br[zr>>2])+Ur|0;t:{o:{n:{if((0|(zr=zr-ot|0))!=br[9398]){if(ot>>>0<=255){if((0|(it=br[zr+8>>2]))!=(0|(ft=br[zr+12>>2])))break n;jt=37572,ao=br[9393]&ga(-2,ot>>>3|0),br[jt>>2]=ao;break r}if(at=br[zr+24>>2],(0|(ot=br[zr+12>>2]))!=(0|zr)){it=br[zr+8>>2],br[it+12>>2]=ot,br[ot+8>>2]=it;break t}if(!(it=br[(ft=zr+20|0)>>2])){if(!(it=br[zr+16>>2]))break o;ft=zr+16|0}for(;Kt=ft,(it=br[(ft=(ot=it)+20|0)>>2])||(ft=ot+16|0,it=br[ot+16>>2]););br[Kt>>2]=0;break t}if((3&(ot=br[Wr+4>>2]))!=3)break r;return br[9395]=Ur,br[Wr+4>>2]=-2&ot,br[zr+4>>2]=1|Ur,void(br[Wr>>2]=Ur)}br[it+12>>2]=ft,br[ft+8>>2]=it;break r}ot=0}if(at){it=br[zr+28>>2];t:{if(br[(ft=37876+(it<<2)|0)>>2]==(0|zr)){if(br[ft>>2]=ot,ot)break t;jt=37576,ao=br[9394]&ga(-2,it),br[jt>>2]=ao;break r}if(br[at+(br[at+16>>2]==(0|zr)?16:20)>>2]=ot,!ot)break r}br[ot+24>>2]=at,(it=br[zr+16>>2])&&(br[ot+16>>2]=it,br[it+24>>2]=ot),(it=br[zr+20>>2])&&(br[ot+20>>2]=it,br[it+24>>2]=ot)}}r:{t:{o:{n:{if(!(2&(ot=br[Wr+4>>2]))){if(br[9399]==(0|Wr)){if(br[9399]=zr,Ur=br[9396]+Ur|0,br[9396]=Ur,br[zr+4>>2]=1|Ur,br[9398]!=(0|zr))break e;return br[9395]=0,void(br[9398]=0)}if(br[9398]==(0|Wr))return br[9398]=zr,Ur=br[9395]+Ur|0,br[9395]=Ur,br[zr+4>>2]=1|Ur,void(br[zr+Ur>>2]=Ur);if(Ur=(-8&ot)+Ur|0,ot>>>0<=255){if(ft=ot>>>3|0,(0|(ot=br[Wr+12>>2]))==(0|(it=br[Wr+8>>2]))){jt=37572,ao=br[9393]&ga(-2,ft),br[jt>>2]=ao;break t}br[it+12>>2]=ot,br[ot+8>>2]=it;break t}if(at=br[Wr+24>>2],(0|Wr)!=(0|(ot=br[Wr+12>>2]))){it=br[Wr+8>>2],br[it+12>>2]=ot,br[ot+8>>2]=it;break o}if(!(it=br[(ft=Wr+20|0)>>2])){if(!(it=br[Wr+16>>2]))break n;ft=Wr+16|0}for(;Kt=ft,(it=br[(ft=(ot=it)+20|0)>>2])||(ft=ot+16|0,it=br[ot+16>>2]););br[Kt>>2]=0;break o}br[Wr+4>>2]=-2&ot,br[zr+4>>2]=1|Ur,br[zr+Ur>>2]=Ur;break r}ot=0}if(at){it=br[Wr+28>>2];o:{if(br[(ft=37876+(it<<2)|0)>>2]==(0|Wr)){if(br[ft>>2]=ot,ot)break o;jt=37576,ao=br[9394]&ga(-2,it),br[jt>>2]=ao;break t}if(br[at+(br[at+16>>2]==(0|Wr)?16:20)>>2]=ot,!ot)break t}br[ot+24>>2]=at,(it=br[Wr+16>>2])&&(br[ot+16>>2]=it,br[it+24>>2]=ot),(it=br[Wr+20>>2])&&(br[ot+20>>2]=it,br[it+24>>2]=ot)}}if(br[zr+4>>2]=1|Ur,br[zr+Ur>>2]=Ur,br[9398]==(0|zr))return void(br[9395]=Ur)}if(Ur>>>0<=255)return ot=37612+(-8&Ur)|0,(it=br[9393])&(Ur=1<<(Ur>>>3))?Ur=br[ot+8>>2]:(br[9393]=Ur|it,Ur=ot),br[ot+8>>2]=zr,br[Ur+12>>2]=zr,br[zr+12>>2]=ot,void(br[zr+8>>2]=Ur);it=31,Ur>>>0<=16777215&&(it=62+((Ur>>>38-(ot=Ql(Ur>>>8|0))&1)-(ot<<1)|0)|0),br[zr+28>>2]=it,br[zr+16>>2]=0,br[zr+20>>2]=0,ot=37876+(it<<2)|0;r:{if((ft=br[9394])&(Kt=1<>>1|0)|0:0),ot=br[ot>>2];;){if(ft=ot,(-8&br[ot+4>>2])==(0|Ur))break r;if(Kt=it>>>29|0,it<<=1,!(ot=br[16+(Kt=ot+(4&Kt)|0)>>2]))break}br[Kt+16>>2]=zr,br[zr+24>>2]=ft}else br[9394]=ft|Kt,br[ot>>2]=zr,br[zr+24>>2]=ot;return br[zr+12>>2]=zr,void(br[zr+8>>2]=zr)}Ur=br[ft+8>>2],br[Ur+12>>2]=zr,br[ft+8>>2]=zr,br[zr+24>>2]=0,br[zr+12>>2]=ft,br[zr+8>>2]=Ur}}function tp(zr,Ur,Wr,ot,it,ft,Kt){var at,jt,ao=0,Eo=0,Ao=0;if(On=at=On+-64|0,jt=tu(32)){br[at+36>>2]=0,br[at+40>>2]=0,br[at+28>>2]=0,br[at+32>>2]=0,br[at+24>>2]=16,br[at+20>>2]=it,br[at+16>>2]=ot,br[at+12>>2]=Wr,br[at+8>>2]=32,br[at+4>>2]=jt,br[at+60>>2]=0,br[at+56>>2]=1,br[at+52>>2]=1,br[at+48>>2]=Ur,br[at+44>>2]=zr;e:if(zr=_d(at+4|0,Kt))o0(jt,32);else{if(ft){ao=at+4|0,On=it=On-32|0,zr=-31;r:{t:{o:switch(Kt-1|0){case 1:zr=lt[1417]|lt[1418]<<8|lt[1419]<<16|lt[1420]<<24,Ur=lt[1413]|lt[1414]<<8|lt[1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[Wr+288>>2],br[Wr+240>>2]=1-yo,Un(_o=Wr+144|0,Fo=Wr+240|0),br[Wr+228>>2]=Ur,br[Wr+224>>2]=ot,br[Wr+220>>2]=it,br[Wr+216>>2]=Kt,br[Wr+212>>2]=at,br[Wr+208>>2]=jt,br[Wr+204>>2]=ao,br[Wr+200>>2]=Eo,br[Wr+196>>2]=Ao,br[Wr+192>>2]=yo+1,Un(ot=Wr+96|0,Kt=Wr+192|0),ns(Ur=Wr+48|0,1600,_o),it=br[Wr+96>>2],at=br[Wr+48>>2],jt=br[Wr+100>>2],ao=br[Wr+52>>2],Eo=br[Wr+104>>2],Ao=br[Wr+56>>2],yo=br[Wr+108>>2],_o=br[Wr+60>>2],$o=br[Wr+112>>2],Do=br[Wr+64>>2],No=br[Wr+116>>2],Go=br[Wr+68>>2],Xo=br[Wr+120>>2],In=br[Wr+72>>2],_n=br[Wr+124>>2],Qn=br[Wr+76>>2],Mn=br[Wr+128>>2],Zo=br[Wr+80>>2],br[Wr+84>>2]=0-(br[Wr+84>>2]+br[Wr+132>>2]|0),br[Wr+80>>2]=0-(Mn+Zo|0),br[Wr+76>>2]=0-(_n+Qn|0),br[Wr+72>>2]=0-(Xo+In|0),br[Wr+68>>2]=0-(No+Go|0),br[Wr+64>>2]=0-($o+Do|0),br[Wr+60>>2]=0-(yo+_o|0),br[Wr+56>>2]=0-(Eo+Ao|0),br[Wr+52>>2]=0-(jt+ao|0),br[Wr+48>>2]=0-(it+at|0),ns(Wr,Ur,ot),br[Wr+404>>2]=0,br[Wr+408>>2]=0,br[Wr+412>>2]=0,br[Wr+416>>2]=0,br[Wr+420>>2]=0,br[Wr+388>>2]=0,br[Wr+392>>2]=0,br[Wr+384>>2]=1,br[Wr+396>>2]=0,br[Wr+400>>2]=0,Do=EA(it=Wr+432|0,Wr+384|0,Wr),ns(zr,it,Kt),ns(ot=zr+40|0,it,zr),ns(ot,ot,Ur),ns(zr,zr,ft),ft=br[zr+36>>2]<<1,br[zr+36>>2]=ft,it=br[zr+32>>2]<<1,br[zr+32>>2]=it,Kt=br[zr+28>>2]<<1,br[zr+28>>2]=Kt,at=br[zr+24>>2]<<1,br[zr+24>>2]=at,jt=br[zr+20>>2]<<1,br[zr+20>>2]=jt,ao=br[zr+16>>2]<<1,br[zr+16>>2]=ao,Eo=br[zr+12>>2]<<1,br[zr+12>>2]=Eo,Ao=br[zr+8>>2]<<1,br[zr+8>>2]=Ao,yo=br[zr+4>>2]<<1,br[zr+4>>2]=yo,_o=br[zr>>2]<<1,br[zr>>2]=_o,Dn($o=Wr+480|0,zr),Ur=0-(1&Vt[Wr+480|0])|0,br[zr+36>>2]=ft^Ur&(ft^0-ft),br[zr+32>>2]=it^Ur&(it^0-it),br[zr+28>>2]=Kt^Ur&(Kt^0-Kt),br[zr+24>>2]=at^Ur&(at^0-at),br[zr+20>>2]=jt^Ur&(jt^0-jt),br[zr+16>>2]=ao^Ur&(ao^0-ao),br[zr+12>>2]=Eo^Ur&(Eo^0-Eo),br[zr+8>>2]=Ao^Ur&(Ao^0-Ao),br[zr+4>>2]=yo^Ur&(yo^0-yo),br[zr>>2]=_o^Ur&(_o^0-_o),ns(ot,Fo,ot),br[zr+84>>2]=0,br[zr+88>>2]=0,br[zr+80>>2]=1,br[zr+92>>2]=0,br[zr+96>>2]=0,br[zr+100>>2]=0,br[zr+104>>2]=0,br[zr+108>>2]=0,br[zr+112>>2]=0,br[zr+116>>2]=0,ns(Ur=zr+120|0,zr,ot),Dn($o,Ur),zr=lt[Wr+480|0],Dn($o,ot),ot=0-(Vl($o,32)|1-Do|1&zr)|0),On=Wr+512|0,ot}function bA(zr,Ur,Wr,ot){var it,ft=0,Kt=0;it=ft=On,On=ft=ft-576&-64,br[ft+188>>2]=Ur;e:if(Ur>>>0<=64){if((0|Hu(Kt=ft+192|0,0,0,Ur))<0)break e;(0|Fl(Kt,ft+188|0,4,0))<0,(0|Fl(Kt,Wr,ot,0))<0,_A(Kt,zr,Ur)}else if(!((0|Hu(Kt=ft+192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Wr=br[ft+164>>2],br[ft+96>>2]=br[ft+160>>2],br[ft+100>>2]=Wr,Wr=br[ft+156>>2],br[ft+88>>2]=br[ft+152>>2],br[ft+92>>2]=Wr,Wr=br[ft+148>>2],br[ft+80>>2]=br[ft+144>>2],br[ft+84>>2]=Wr,Wr=br[ft+140>>2],br[ft+72>>2]=br[ft+136>>2],br[ft+76>>2]=Wr,ot=br[ft+132>>2],br[(Wr=ft- -64|0)>>2]=br[ft+128>>2],br[Wr+4>>2]=ot,Wr=br[ft+124>>2],br[ft+56>>2]=br[ft+120>>2],br[ft+60>>2]=Wr,Wr=br[ft+116>>2],br[ft+48>>2]=br[ft+112>>2],br[ft+52>>2]=Wr,(0|wA(Wr=ft+112|0,Ur,ft+48|0,64,0,0,0))<0||U0(zr,Wr,Ur)}o0(ft+192|0,384),On=it}function op(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){var Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0,Nn=0,Jn=0;if(Ao=Oo(jt,0,at,0),!(yo=Io)&Ao>>>0>=1073741824|yo||(0|Kt)==1|Kt>>>0>1)return br[9392]=22,-1;for(Ao=ft,$o=Kt;Ao|$o;)yo=Ao,Ao&=Ao-1,$o&=$o-!yo,Do=(Fo=Fo+1|0)?Do:Do+1|0;if(!(!(Io=Do)&Fo>>>0<2&(!Kt&ft>>>0>=2|(0|Kt)!=0))||!jt||!at)return br[9392]=28,-1;if(!(33554431/(jt>>>0)>>>0>>0|at>>>0>16777215)&!Kt&ft>>>0<=33554431/(at>>>0)>>>0&&!((Xo=w0(Go=at<<7,jt))>>>0>(yo=(Fo=w0(ft,Go))+Xo|0)>>>0||yo>>>0>(Ao=(yo+(at<<8)|0)- -64|0)>>>0)){e:{if(Ao>>>0>Sl[zr+8>>2]&&(yo=-1,Ep(zr),On=$o=On-16|0,Do=Ys($o+12|0,Ao),br[9392]=Do,Do=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(yo=yo+4|0)););for(tA(Ao,$o,Qn,at),zr=In+(w0(Do,wn&br[Jn>>2])<<2)|0,yo=0;br[(_o=(it=yo<<2)+$o|0)>>2]=br[_o>>2]^br[zr+it>>2],br[(No=(_o=4|it)+$o|0)>>2]=br[No>>2]^br[zr+_o>>2],br[(No=(_o=8|it)+$o|0)>>2]=br[No>>2]^br[zr+_o>>2],br[(_o=(it|=12)+$o|0)>>2]=br[_o>>2]^br[zr+it>>2],(0|Do)!=(0|(yo=yo+4|0)););if(tA($o,Ao,Qn,at),yo=0,ot=zr=(Mn=Mn+2|0)>>>0<2?ot+1|0:ot,!((0|Kt)==(0|zr)&ft>>>0>Mn>>>0|zr>>>0>>0))break}for(;ot=(zr=yo<<2)+Fo|0,it=br[zr+Ao>>2],Vt[0|ot]=it,Vt[ot+1|0]=it>>>8,Vt[ot+2|0]=it>>>16,Vt[ot+3|0]=it>>>24,ot=(it=4|zr)+Fo|0,it=br[it+Ao>>2],Vt[0|ot]=it,Vt[ot+1|0]=it>>>8,Vt[ot+2|0]=it>>>16,Vt[ot+3|0]=it>>>24,ot=(it=8|zr)+Fo|0,it=br[it+Ao>>2],Vt[0|ot]=it,Vt[ot+1|0]=it>>>8,Vt[ot+2|0]=it>>>16,Vt[ot+3|0]=it>>>24,zr=(ot=12|zr)+Fo|0,ot=br[ot+Ao>>2],Vt[0|zr]=ot,Vt[zr+1|0]=ot>>>8,Vt[zr+2|0]=ot>>>16,Vt[zr+3|0]=ot>>>24,(0|Do)!=(0|(yo=yo+4|0)););if((0|(Zo=Zo+1|0))==(0|jt))break}Au(Ur,Wr,_n,Xo,ao,Eo),yo=0}return yo}return br[9392]=48,-1}function np(zr,Ur,Wr){zr|=0,Ur|=0,Wr|=0;var ot,it,ft,Kt=0;On=ot=On-192|0,br[ot+96>>2]=0,br[ot+100>>2]=0,br[ot+104>>2]=0,br[ot+108>>2]=0,br[ot+112>>2]=0,br[ot+116>>2]=0,br[ot+120>>2]=0,br[ot+124>>2]=0,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wr+16>>2]^br[it+16>>2],br[Wr+20>>2]=br[Wr+20>>2]^br[it+20>>2],br[Wr+24>>2]=br[Wr+24>>2]^br[it+24>>2],br[Wr+28>>2]=br[Wr+28>>2]^br[it+28>>2],br[Wr+32>>2]=br[Wr+32>>2]^br[it+32>>2],br[Wr+36>>2]=br[Wr+36>>2]^br[it+36>>2],br[Wr+40>>2]=br[Wr+40>>2]^br[it+40>>2],br[Wr+44>>2]=br[Wr+44>>2]^br[it+44>>2],br[Wr+48>>2]=br[Wr+48>>2]^br[it+48>>2],br[Wr+52>>2]=br[Wr+52>>2]^br[it+52>>2],br[Wr+56>>2]=br[Wr+56>>2]^br[it+56>>2],br[Wr+60>>2]=br[Wr+60>>2]^br[it+60>>2],hp(Wr),at=br[Wr+60>>2],br[56+(it=(ot<<5)+Ur|0)>>2]=br[Wr+56>>2],br[it+60>>2]=at,at=br[Wr+52>>2],br[it+48>>2]=br[Wr+48>>2],br[it+52>>2]=at,at=br[Wr+44>>2],br[it+40>>2]=br[Wr+40>>2],br[it+44>>2]=at,at=br[Wr+36>>2],br[it+32>>2]=br[Wr+32>>2],br[it+36>>2]=at,at=br[Wr+28>>2],br[it+24>>2]=br[Wr+24>>2],br[it+28>>2]=at,at=br[Wr+20>>2],br[it+16>>2]=br[Wr+16>>2],br[it+20>>2]=at,at=br[Wr+12>>2],br[it+8>>2]=br[Wr+8>>2],br[it+12>>2]=at,at=br[Wr+4>>2],br[it>>2]=br[Wr>>2],br[it+4>>2]=at,it=(64|ft)+zr|0,br[Wr>>2]=br[Wr>>2]^br[it>>2],br[Wr+4>>2]=br[Wr+4>>2]^br[it+4>>2],br[Wr+8>>2]=br[Wr+8>>2]^br[it+8>>2],br[Wr+12>>2]=br[Wr+12>>2]^br[it+12>>2],br[Wr+16>>2]=br[Wr+16>>2]^br[it+16>>2],br[Wr+20>>2]=br[Wr+20>>2]^br[it+20>>2],br[Wr+24>>2]=br[Wr+24>>2]^br[it+24>>2],br[Wr+28>>2]=br[Wr+28>>2]^br[it+28>>2],br[Wr+32>>2]=br[Wr+32>>2]^br[it+32>>2],br[Wr+36>>2]=br[Wr+36>>2]^br[it+36>>2],br[Wr+40>>2]=br[Wr+40>>2]^br[it+40>>2],br[Wr+44>>2]=br[Wr+44>>2]^br[it+44>>2],br[Wr+48>>2]=br[Wr+48>>2]^br[it+48>>2],br[Wr+52>>2]=br[Wr+52>>2]^br[it+52>>2],br[Wr+56>>2]=br[Wr+56>>2]^br[it+56>>2],br[Wr+60>>2]=br[Wr+60>>2]^br[it+60>>2],hp(Wr),ft=br[Wr+60>>2],br[56+(it=((ot<<3)+jt<<2)+Ur|0)>>2]=br[Wr+56>>2],br[it+60>>2]=ft,ft=br[Wr+52>>2],br[it+48>>2]=br[Wr+48>>2],br[it+52>>2]=ft,ft=br[Wr+44>>2],br[it+40>>2]=br[Wr+40>>2],br[it+44>>2]=ft,ft=br[Wr+36>>2],br[it+32>>2]=br[Wr+32>>2],br[it+36>>2]=ft,ft=br[Wr+28>>2],br[it+24>>2]=br[Wr+24>>2],br[it+28>>2]=ft,ft=br[Wr+20>>2],br[it+16>>2]=br[Wr+16>>2],br[it+20>>2]=ft,ft=br[Wr+12>>2],br[it+8>>2]=br[Wr+8>>2],br[it+12>>2]=ft,ft=br[Wr+4>>2],br[it>>2]=br[Wr>>2],br[it+4>>2]=ft,Kt>>>0>(ot=ot+2|0)>>>0;);}function IA(zr,Ur,Wr,ot){var it=0,ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0,Nn=0,Jn=0,jn=0;if($o=br[zr+36>>2],yo=br[zr+32>>2],_o=br[zr+28>>2],Eo=br[zr+24>>2],Ao=br[zr+20>>2],!ot&Wr>>>0>=16|ot)for(Zo=!lt[zr+80|0]<<24,Fo=br[zr+4>>2],wn=w0(Fo,5),Go=br[zr+8>>2],Qn=w0(Go,5),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|0)>>>26|0)|0,_o=67108863&yo,yo=67108863&$o,$o=67108863&Kt,Ao=67108863&it,Ur=Ur+16|0,!(ot=ot-(Wr>>>0<16)|0)&(Wr=Wr-16|0)>>>0>15|ot;);br[zr+20>>2]=Ao,br[zr+36>>2]=$o,br[zr+32>>2]=yo,br[zr+28>>2]=_o,br[zr+24>>2]=Eo}function Hu(zr,Ur,Wr,ot){zr|=0,Ur|=0;var it=0;return it=-1,(ot|=0)-65>>>0<4294967232|(Wr|=0)>>>0>64||(Wr&&Ur?(On=it=On-128|0,!Ur|((ot&=255)-65&255)>>>0<=191|((Wr&=255)-65&255)>>>0<=191?(El(),Qs()):(q0(zr- -64|0,0,293),Vt[zr+56|0]=121,Vt[zr+57|0]=33,Vt[zr+58|0]=126,Vt[zr+59|0]=19,Vt[zr+60|0]=25,Vt[zr+61|0]=205,Vt[zr+62|0]=224,Vt[zr+63|0]=91,Vt[zr+48|0]=107,Vt[zr+49|0]=189,Vt[zr+50|0]=65,Vt[zr+51|0]=251,Vt[zr+52|0]=171,Vt[zr+53|0]=217,Vt[zr+54|0]=131,Vt[zr+55|0]=31,Vt[zr+40|0]=31,Vt[zr+41|0]=108,Vt[zr+42|0]=62,Vt[zr+43|0]=43,Vt[zr+44|0]=140,Vt[zr+45|0]=104,Vt[zr+46|0]=5,Vt[zr+47|0]=155,Vt[zr+32|0]=209,Vt[zr+33|0]=130,Vt[zr+34|0]=230,Vt[zr+35|0]=173,Vt[zr+36|0]=127,Vt[zr+37|0]=82,Vt[zr+38|0]=14,Vt[zr+39|0]=81,Vt[zr+24|0]=241,Vt[zr+25|0]=54,Vt[zr+26|0]=29,Vt[zr+27|0]=95,Vt[zr+28|0]=58,Vt[zr+29|0]=245,Vt[zr+30|0]=79,Vt[zr+31|0]=165,Vt[zr+16|0]=43,Vt[zr+17|0]=248,Vt[zr+18|0]=148,Vt[zr+19|0]=254,Vt[zr+20|0]=114,Vt[zr+21|0]=243,Vt[zr+22|0]=110,Vt[zr+23|0]=60,Vt[zr+8|0]=59,Vt[zr+9|0]=167,Vt[zr+10|0]=202,Vt[zr+11|0]=132,Vt[zr+12|0]=133,Vt[zr+13|0]=174,Vt[zr+14|0]=103,Vt[zr+15|0]=187,ot=-222443256^(Wr<<8|ot),Vt[0|zr]=ot,Vt[zr+1|0]=ot>>>8,Vt[zr+2|0]=ot>>>16,Vt[zr+3|0]=ot>>>24,ot=Wr>>>24^1779033703,Vt[zr+4|0]=ot,Vt[zr+5|0]=ot>>>8,Vt[zr+6|0]=ot>>>16,Vt[zr+7|0]=ot>>>24,q0(Wr+it|0,0,Wr<<24>>24>=0?128-Wr|0:0),Wr=U0(it,Ur,Wr),U0(zr+96|0,Wr,128),Ur=128+(lt[zr+352|0]|lt[zr+353|0]<<8|lt[zr+354|0]<<16|lt[zr+355|0]<<24)|0,Vt[zr+352|0]=Ur,Vt[zr+353|0]=Ur>>>8,Vt[zr+354|0]=Ur>>>16,Vt[zr+355|0]=Ur>>>24,o0(Wr,128),On=Wr+128|0)):(((Ur=255&ot)-65&255)>>>0<=191&&(El(),Qs()),q0(zr- -64|0,0,293),Vt[zr+56|0]=121,Vt[zr+57|0]=33,Vt[zr+58|0]=126,Vt[zr+59|0]=19,Vt[zr+60|0]=25,Vt[zr+61|0]=205,Vt[zr+62|0]=224,Vt[zr+63|0]=91,Vt[zr+48|0]=107,Vt[zr+49|0]=189,Vt[zr+50|0]=65,Vt[zr+51|0]=251,Vt[zr+52|0]=171,Vt[zr+53|0]=217,Vt[zr+54|0]=131,Vt[zr+55|0]=31,Vt[zr+40|0]=31,Vt[zr+41|0]=108,Vt[zr+42|0]=62,Vt[zr+43|0]=43,Vt[zr+44|0]=140,Vt[zr+45|0]=104,Vt[zr+46|0]=5,Vt[zr+47|0]=155,Vt[zr+32|0]=209,Vt[zr+33|0]=130,Vt[zr+34|0]=230,Vt[zr+35|0]=173,Vt[zr+36|0]=127,Vt[zr+37|0]=82,Vt[zr+38|0]=14,Vt[zr+39|0]=81,Vt[zr+24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r+40|0),ns(zr+120|0,Wr+120|0,Ur+120|0),ns(zr,Ur+80|0,Wr+80|0),as=br[zr+4>>2],ft=br[zr+8>>2],Kt=br[zr+12>>2],at=br[zr+16>>2],jt=br[zr+20>>2],ao=br[zr+24>>2],Eo=br[zr+28>>2],Ao=br[zr+32>>2],yo=br[zr+36>>2],Ur=br[$o>>2],Wr=br[zr+80>>2],No=br[zr+44>>2],Go=br[zr+84>>2],Xo=br[zr+48>>2],In=br[zr+88>>2],_n=br[zr+52>>2],Qn=br[zr+92>>2],Mn=br[zr+56>>2],Zo=br[zr+96>>2],wn=br[zr+60>>2],Nn=br[zr+100>>2],Fo=br[Do>>2],Jn=br[zr+104>>2],jn=br[zr+68>>2],Zn=br[zr+108>>2],xa=br[zr+72>>2],os=br[zr+112>>2],_o=br[zr>>2],ot=br[zr+76>>2],it=br[zr+116>>2],br[zr+76>>2]=ot+it,br[zr+72>>2]=xa+os,br[zr+68>>2]=jn+Zn,br[Do>>2]=Fo+Jn,br[zr+60>>2]=wn+Nn,br[zr+56>>2]=Mn+Zo,br[zr+52>>2]=_n+Qn,br[zr+48>>2]=Xo+In,br[zr+44>>2]=No+Go,br[$o>>2]=Ur+Wr,br[zr+36>>2]=it-ot,br[zr+32>>2]=os-xa,br[zr+28>>2]=Zn-jn,br[zr+24>>2]=Jn-Fo,br[zr+20>>2]=Nn-wn,br[zr+16>>2]=Zo-Mn,br[zr+12>>2]=Qn-_n,br[zr+8>>2]=In-Xo,br[zr+4>>2]=Go-No,br[zr>>2]=Wr-Ur,Ur=yo<<1,Wr=br[zr+156>>2],br[zr+156>>2]=Ur-Wr,$o=Ao<<1,Do=br[zr+152>>2],br[zr+152>>2]=$o-Do,No=Eo<<1,Go=br[zr+148>>2],br[zr+148>>2]=No-Go,Xo=ao<<1,In=br[zr+144>>2],br[zr+144>>2]=Xo-In,_n=jt<<1,Qn=br[zr+140>>2],br[zr+140>>2]=_n-Qn,Mn=at<<1,Zo=br[zr+136>>2],br[zr+136>>2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ur+12>>2],Qn=br[Ur+52>>2],Mn=br[Ur+16>>2],Zo=br[Ur+56>>2],wn=br[Ur+20>>2],Nn=br[Ur+60>>2],Jn=br[Ur+24>>2],Fo=br[Fo>>2],Do=br[Ur+28>>2],jn=br[Ur+68>>2],Zn=br[Ur+32>>2],xa=br[Ur+72>>2],os=br[Ur>>2],br[zr+76>>2]=br[Ur+76>>2]-br[Ur+36>>2],br[zr+72>>2]=xa-Zn,br[zr+68>>2]=jn-Do,br[(Do=zr- -64|0)>>2]=Fo-Jn,br[zr+60>>2]=Nn-wn,br[zr+56>>2]=Zo-Mn,br[zr+52>>2]=Qn-_n,br[zr+48>>2]=In-Xo,br[zr+44>>2]=Go-$o,br[($o=zr+40|0)>>2]=No-os,ns(zr+80|0,zr,Wr+40|0),ns($o,$o,Wr),ns(zr+120|0,Wr+120|0,Ur+120|0),ns(zr,Ur+80|0,Wr+80|0),as=br[zr+4>>2],ft=br[zr+8>>2],Kt=br[zr+12>>2],at=br[zr+16>>2],jt=br[zr+20>>2],ao=br[zr+24>>2],Eo=br[zr+28>>2],Ao=br[zr+32>>2],yo=br[zr+36>>2],Ur=br[$o>>2],Wr=br[zr+80>>2],No=br[zr+44>>2],Go=br[zr+84>>2],Xo=br[zr+48>>2],In=br[zr+88>>2],_n=br[zr+52>>2],Qn=br[zr+92>>2],Mn=br[zr+56>>2],Zo=br[zr+96>>2],wn=br[zr+60>>2],Nn=br[zr+100>>2],Fo=br[Do>>2],Jn=br[zr+104>>2],jn=br[zr+68>>2],Zn=br[zr+108>>2],xa=br[zr+72>>2],os=br[zr+112>>2],_o=br[zr>>2],ot=br[zr+76>>2],it=br[zr+116>>2],br[zr+76>>2]=ot+it,br[zr+72>>2]=xa+os,br[zr+68>>2]=jn+Zn,br[Do>>2]=Fo+Jn,br[zr+60>>2]=wn+Nn,br[zr+56>>2]=Mn+Zo,br[zr+52>>2]=_n+Qn,br[zr+48>>2]=Xo+In,br[zr+44>>2]=No+Go,br[$o>>2]=Ur+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br[Ur+56>>2],Zo=br[Ur+20>>2],wn=br[Ur+60>>2],Nn=br[Ur+24>>2],Jn=br[(Fo=Ur- -64|0)>>2],jn=br[Ur+28>>2],Zn=br[Ur+68>>2],xa=br[Ur+32>>2],os=br[Ur+72>>2],as=br[Ur>>2],br[zr+36>>2]=br[Ur+36>>2]+br[Ur+76>>2],br[zr+32>>2]=xa+os,br[zr+28>>2]=jn+Zn,br[zr+24>>2]=Nn+Jn,br[zr+20>>2]=Zo+wn,br[zr+16>>2]=Qn+Mn,br[zr+12>>2]=In+_n,br[zr+8>>2]=Go+Xo,br[zr+4>>2]=Do+No,br[zr>>2]=$o+as,No=br[Ur+40>>2],$o=br[Ur+4>>2],Go=br[Ur+44>>2],Xo=br[Ur+8>>2],In=br[Ur+48>>2],_n=br[Ur+12>>2],Qn=br[Ur+52>>2],Mn=br[Ur+16>>2],Zo=br[Ur+56>>2],wn=br[Ur+20>>2],Nn=br[Ur+60>>2],Jn=br[Ur+24>>2],Fo=br[Fo>>2],Do=br[Ur+28>>2],jn=br[Ur+68>>2],Zn=br[Ur+32>>2],xa=br[Ur+72>>2],os=br[Ur>>2],br[zr+76>>2]=br[Ur+76>>2]-br[Ur+36>>2],br[zr+72>>2]=xa-Zn,br[zr+68>>2]=jn-Do,br[(Do=zr- -64|0)>>2]=Fo-Jn,br[zr+60>>2]=Nn-wn,br[zr+56>>2]=Zo-Mn,br[zr+52>>2]=Qn-_n,br[zr+48>>2]=In-Xo,br[zr+44>>2]=Go-$o,br[($o=zr+40|0)>>2]=No-os,ns(zr+80|0,zr,Wr),ns($o,$o,Wr+40|0),ns(zr+120|0,Wr+80|0,Ur+120|0),as=br[Ur+80>>2],ft=br[Ur+84>>2],Kt=br[Ur+88>>2],at=br[Ur+92>>2],jt=br[Ur+96>>2],ao=br[Ur+100>>2],Eo=br[Ur+104>>2],Ao=br[Ur+108>>2],yo=br[Ur+112>>2],_o=br[Ur+116>>2],Ur=br[$o>>2],Wr=br[zr+80>>2],No=br[zr+44>>2],Go=br[zr+84>>2],Xo=br[zr+48>>2],In=br[zr+88>>2],_n=br[zr+52>>2],Qn=br[zr+92>>2],Mn=br[zr+56>>2],Zo=br[zr+96>>2],wn=br[zr+60>>2],Nn=br[zr+100>>2],Fo=br[Do>>2],Jn=br[zr+104>>2],jn=br[zr+68>>2],Zn=br[zr+108>>2],xa=br[zr+72>>2],os=br[zr+112>>2],ot=br[zr+76>>2],it=br[zr+116>>2],br[zr+76>>2]=ot+it,br[zr+72>>2]=xa+os,br[zr+68>>2]=jn+Zn,br[Do>>2]=Fo+Jn,br[zr+60>>2]=wn+Nn,br[zr+56>>2]=Mn+Zo,br[zr+52>>2]=_n+Qn,br[zr+48>>2]=Xo+In,br[zr+44>>2]=No+Go,br[$o>>2]=Ur+Wr,br[zr+36>>2]=it-ot,br[zr+32>>2]=os-xa,br[zr+28>>2]=Zn-jn,br[zr+24>>2]=Jn-Fo,br[zr+20>>2]=Nn-wn,br[zr+16>>2]=Zo-Mn,br[zr+12>>2]=Qn-_n,br[zr+8>>2]=In-Xo,br[zr+4>>2]=Go-No,br[zr>>2]=Wr-Ur,Ur=_o<<1,Wr=br[zr+156>>2],br[zr+156>>2]=Ur-Wr,$o=yo<<1,Do=br[zr+152>>2],br[zr+152>>2]=$o-Do,No=Ao<<1,Go=br[zr+148>>2],br[zr+148>>2]=No-Go,Xo=Eo<<1,In=br[zr+144>>2],br[zr+144>>2]=Xo-In,_n=ao<<1,Qn=br[zr+140>>2],br[zr+140>>2]=_n-Qn,Mn=jt<<1,Zo=br[zr+136>>2],br[zr+136>>2]=Mn-Zo,wn=at<<1,Nn=br[zr+132>>2],br[zr+132>>2]=wn-Nn,Fo=Kt<<1,Jn=br[zr+128>>2],br[zr+128>>2]=Fo-Jn,jn=ft<<1,Zn=br[zr+124>>2],br[zr+124>>2]=jn-Zn,xa=as<<1,os=br[zr+120>>2],br[zr+120>>2]=xa-os,br[zr+112>>2]=$o+Do,br[zr+108>>2]=No+Go,br[zr+104>>2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=(Xo=_n<<21|(Go=Xo<<13|Go<<5))+(No=(67108863&(No=Ur))<<6|In>>>26)|0,Ur=Fo,Fo=(Go=Xo+16777216|0)>>>0<16777216?Ur+1|0:Ur,br[zr+28>>2]=No-(1040187392&Go),No=(Fo=(Ur=Fo)>>>25|0)+(No=wn>>>20|Mn>>>28|Qn>>>12)|0,Ur=No=(Fo=Go=(Ur=(33554431&Ur)<<7|Go>>>25)+(wn<<12|Mn<<4|Qn<<20)|0)>>>0>>0?No+1|0:No,Go=(Qn=Fo+33554432|0)>>>0<33554432?Ur+1|0:Ur,br[zr+32>>2]=Fo-(-67108864&Qn),No=Eo>>>13|(Fo=Nn>>>21|Jn>>>29),Ur=(No=(wn=16777216+(Nn=Nn<<11|Jn<<3|Eo<<19)|0)>>>0<16777216?No+1|0:No)>>>25|0,No=(Fo=Xo=jn<<10|yo<<2|Ao<<18)+(Xo=(33554431&No)<<7|wn>>>25)|0,Fo=Ur+(_n=jn>>>22|yo>>>30|Ao>>>14)|0,Ur=Fo=No>>>0>>0?Fo+1|0:Fo,Xo=((67108863&(Ur=(Xo=No+33554432|0)>>>0<33554432?Ur+1|0:Ur))<<6|(Fo=Xo)>>>26)+(Mn=_o-(-33554432&Zo)|0)|0,br[zr+20>>2]=Xo,br[zr+16>>2]=No-(-67108864&Fo),Fo=ft>>>18|Kt>>>26|it>>>10,No=(Fo=(Mn=16777216+(Jn=ft<<14|Kt<<6|it<<22)|0)>>>0<16777216?Fo+1|0:Fo)>>>25|0,Fo=(Ur=Xo=jt<<13|ao<<5|at<<21)+(Xo=(33554431&Fo)<<7|Mn>>>25)|0,Ur=No+(_n=jt>>>19|ao>>>27|at>>>11)|0,Ur=Fo>>>0>>0?Ur+1|0:Ur,No=(_n=Fo+33554432|0)>>>0<33554432?Ur+1|0:Ur,br[zr+8>>2]=Fo-(-67108864&_n),Qn=(Go=(67108863&Go)<<6|Qn>>>26)+(jn=$o<<18&33292288|Wr<<10|ot<<2)|0,Ur=Fo=Wr>>>22|ot>>>30,Fo=(Go=jn+16777216|0)>>>0<16777216?Ur+1|0:Ur,br[zr+36>>2]=Qn-(33554432&Go),No=Nn+((67108863&No)<<6|_n>>>26)|0,br[zr+12>>2]=No-(234881024&wn),Xo=Jn-(2113929216&Mn)|0,No=Oo((33554431&(Ur=Fo))<<7|Go>>>25,Fo=Ur>>>25|0,19,0),Ur=Io,No=(Fo=No+Do|0)>>>0>>0?Ur+1|0:Ur,Go=((67108863&(No=(Ur=Fo+33554432|0)>>>0<33554432?No+1|0:No))<<6|Ur>>>26)+Xo|0,br[zr+4>>2]=Go,br[zr>>2]=Fo-(-67108864&Ur)}function vA(zr,Ur,Wr,ot,it,ft,Kt,at){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0;var jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0;e:{r:{t:{o:{n:{a:{c:{A:{i:{l:{u:{if((-7&(at|=0))==1){if(Eo=0,!ot)break A;if(4&at)break u;for(;;){Eo=ao;g:{p:{s:{d:{for(;;){if(jt=(jt=(Ao=Vt[Wr+Eo|0])-65|0)&((90-Ao^-1)&(-1^jt))>>>8&255|Ao+4&((Ao+65488^-1)&(57-Ao^-1))>>>8&255|Ao+185&((Ao+65439^-1)&(122-Ao^-1))>>>8&255|(1+(16336^Ao)^-1)>>>8&63|(1+(16340^Ao)^-1)>>>8&62,(0|(jt|=(jt-1&1+(65470^Ao))>>>8&255))!=255)break d;if(jt=0,!it)break i;if(!iA(it,Ao))break;if((Eo=Eo+1|0)>>>0>=ot>>>0)break s}ao=Eo;break i}if($o=jt+($o<<6)|0,yo>>>0>1)break p;yo=yo+6|0;break g}ao=(zr=ao+1|0)>>>0>>0?ot:zr;break i}if(yo=yo-2|0,Ur>>>0<=_o>>>0)break l;Vt[zr+_o|0]=$o>>>yo,_o=_o+1|0}if(jt=0,!((ao=Eo+1|0)>>>0>>0))break}break i}El(),Qs()}u:for(;;){for(Eo=ao;;){g:{if(jt=(jt=(Ao=Vt[Wr+Eo|0])-65|0)&((90-Ao^-1)&(-1^jt))>>>8&255|Ao+4&((Ao+65488^-1)&(57-Ao^-1))>>>8&255|Ao+185&((Ao+65439^-1)&(122-Ao^-1))>>>8&255|(1+(16288^Ao)^-1)>>>8&63|(1+(16338^Ao)^-1)>>>8&62,(0|(jt|=(jt-1&1+(65470^Ao))>>>8&255))==255){if(jt=0,!it)break i;if(iA(it,Ao))break g;ao=Eo;break i}if($o=jt+($o<<6)|0,yo>>>0<2)yo=yo+6|0;else{if(yo=yo-2|0,Ur>>>0<=_o>>>0)break l;Vt[zr+_o|0]=$o>>>yo,_o=_o+1|0}if(jt=0,(ao=Eo+1|0)>>>0>>0)continue u;break i}if(!((Eo=Eo+1|0)>>>0>>0))break}break}ao=(zr=ao+1|0)>>>0>>0?ot:zr;break i}ao=Eo,br[9392]=68,jt=1}if(yo>>>0>4)break c;Eo=ao}if(zr=Eo,Ur=-1,jt){ao=zr;break e}if((-1<>>0<2){at=zr;break n}if(ao=zr>>>0>ot>>>0?zr:ot,Eo=yo>>>1|0,!it)break a;for(at=zr;;){if((0|at)==(0|ao)){jt=68;break o}if((0|(zr=Vt[Wr+at|0]))!=61){if(!iA(it,zr)){jt=28,ao=at;break o}}else Eo=Eo-1|0;if(at=at+1|0,!Eo)break}break n}Ur=-1;break e}if(jt=68,zr>>>0>=ot>>>0)break o;if(lt[zr+Wr|0]!=61){ao=zr,jt=28;break o}if(at=zr+Eo|0,(0|Eo)!=1){if((0|(yo=zr+1|0))==(0|ao))break o;if(lt[Wr+yo|0]!=61){ao=yo,jt=28;break o}if((0|Eo)!=2&&((0|(zr=zr+2|0))==(0|ao)||(jt=28,ao=zr,lt[zr+Wr|0]!=61)))break o}}if(Ur=0,it)break t;break r}br[9392]=jt;break e}if(!(ot>>>0<=at>>>0)){for(;;){if(!iA(it,Vt[Wr+at|0]))break r;if((0|(at=at+1|0))==(0|ot))break}at=ot}}ao=at,Do=_o}return Kt?br[Kt>>2]=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>2]=0,br[zr+36>>2]=0,br[zr+24>>2]=0,br[zr+28>>2]=0,br[zr+16>>2]=0,br[zr+20>>2]=0,br[zr+8>>2]=0,br[zr+12>>2]=0,br[zr>>2]=0,br[zr+4>>2]=0,br[zr+44>>2]=0,br[zr+48>>2]=0,br[(Ur=zr+40|0)>>2]=1,br[zr+52>>2]=0,br[zr+56>>2]=0,br[zr+60>>2]=0,br[zr+64>>2]=0,br[zr+68>>2]=0,br[zr+72>>2]=0,br[zr+76>>2]=0,br[zr+80>>2]=1,q0(zr+84|0,0,76),it=zr+120|0,Eo=zr+80|0,at=Wr+208|0,ot=Wr+168|0,jt=Wr+248|0,Kt=1;pp(Ao=Wr+8|0,Kt>>>1|0,Vt[(Wr+288|0)+Kt|0]),CA(ao=Wr+128|0,zr,Ao),ns(zr,ao,jt),ns(Ur,ot,at),ns(Eo,at,jt),ns(it,ao,ot),Ao=Kt>>>0<62,Kt=Kt+2|0,Ao;);for(Kt=br[zr+36>>2],br[Wr+392>>2]=br[zr+32>>2],br[Wr+396>>2]=Kt,Kt=br[zr+28>>2],br[Wr+384>>2]=br[zr+24>>2],br[Wr+388>>2]=Kt,Kt=br[zr+20>>2],br[Wr+376>>2]=br[zr+16>>2],br[Wr+380>>2]=Kt,Kt=br[zr+12>>2],br[Wr+368>>2]=br[zr+8>>2],br[Wr+372>>2]=Kt,Kt=br[zr+4>>2],br[Wr+360>>2]=br[zr>>2],br[Wr+364>>2]=Kt,Kt=br[Ur+12>>2],br[Wr+408>>2]=br[Ur+8>>2],br[Wr+412>>2]=Kt,Kt=br[Ur+20>>2],br[Wr+416>>2]=br[Ur+16>>2],br[Wr+420>>2]=Kt,Kt=br[Ur+28>>2],br[Wr+424>>2]=br[Ur+24>>2],br[Wr+428>>2]=Kt,Kt=br[Ur+36>>2],br[Wr+432>>2]=br[Ur+32>>2],br[Wr+436>>2]=Kt,Kt=br[Ur+4>>2],br[Wr+400>>2]=br[Ur>>2],br[Wr+404>>2]=Kt,Kt=br[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Vt[ot+32|0]=Ur,Vt[ot+33|0]=Ur>>>8,Vt[ot+34|0]=Ur>>>16,Vt[ot+35|0]=Ur>>>24,Vt[ot+36|0]=zr,Vt[ot+37|0]=zr>>>8,Vt[ot+38|0]=zr>>>16,Vt[ot+39|0]=zr>>>24,On=ft+160|0,0}function yu(zr,Ur,Wr){var ot,it=0,ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0;Do=br[Ur+4>>2],it=br[zr+4>>2],Fo=br[Ur+8>>2],ft=br[zr+8>>2],No=br[Ur+12>>2],Kt=br[zr+12>>2],Go=br[Ur+16>>2],at=br[zr+16>>2],Xo=br[Ur+20>>2],jt=br[zr+20>>2],In=br[Ur+24>>2],ao=br[zr+24>>2],$o=br[Ur+28>>2],Eo=br[zr+28>>2],_n=br[Ur+32>>2],Ao=br[zr+32>>2],Qn=br[Ur+36>>2],yo=br[zr+36>>2],Wr=0-Wr|0,_o=br[zr>>2],br[zr>>2]=Wr&(_o^br[Ur>>2])^_o,br[zr+36>>2]=yo^Wr&(yo^Qn),br[zr+32>>2]=Ao^Wr&(Ao^_n),br[zr+28>>2]=Eo^Wr&(Eo^$o),br[zr+24>>2]=ao^Wr&(ao^In),br[zr+20>>2]=jt^Wr&(jt^Xo),br[zr+16>>2]=at^Wr&(at^Go),br[zr+12>>2]=Kt^Wr&(Kt^No),br[zr+8>>2]=ft^Wr&(ft^Fo),br[zr+4>>2]=it^Wr&(it^Do),it=br[zr+40>>2],Do=br[Ur+40>>2],ft=br[zr+44>>2],Fo=br[Ur+44>>2],Kt=br[zr+48>>2],No=br[Ur+48>>2],at=br[zr+52>>2],Go=br[Ur+52>>2],jt=br[zr+56>>2],Xo=br[Ur+56>>2],ao=br[zr+60>>2],In=br[Ur+60>>2],Eo=br[($o=zr- -64|0)>>2],_n=br[Ur- -64>>2],Ao=br[zr+68>>2],Qn=br[Ur+68>>2],yo=br[zr+72>>2],_o=br[Ur+72>>2],ot=br[zr+76>>2],br[zr+76>>2]=ot^Wr&(br[Ur+76>>2]^ot),br[zr+72>>2]=yo^Wr&(yo^_o),br[zr+68>>2]=Ao^Wr&(Ao^Qn),br[$o>>2]=Eo^Wr&(Eo^_n),br[zr+60>>2]=ao^Wr&(ao^In),br[zr+56>>2]=jt^Wr&(jt^Xo),br[zr+52>>2]=at^Wr&(at^Go),br[zr+48>>2]=Kt^Wr&(Kt^No),br[zr+44>>2]=ft^Wr&(ft^Fo),br[zr+40>>2]=it^Wr&(it^Do),it=br[zr+80>>2],Do=br[Ur+80>>2],ft=br[zr+84>>2],Fo=br[Ur+84>>2],Kt=br[zr+88>>2],No=br[Ur+88>>2],at=br[zr+92>>2],Go=br[Ur+92>>2],jt=br[zr+96>>2],Xo=br[Ur+96>>2],ao=br[zr+100>>2],In=br[Ur+100>>2],Eo=br[zr+104>>2],$o=br[Ur+104>>2],Ao=br[zr+108>>2],_n=br[Ur+108>>2],yo=br[zr+112>>2],Qn=br[Ur+112>>2],_o=br[zr+116>>2],br[zr+116>>2]=Wr&(_o^br[Ur+116>>2])^_o,br[zr+112>>2]=yo^Wr&(yo^Qn),br[zr+108>>2]=Ao^Wr&(Ao^_n),br[zr+104>>2]=Eo^Wr&(Eo^$o),br[zr+100>>2]=ao^Wr&(ao^In),br[zr+96>>2]=jt^Wr&(jt^Xo),br[zr+92>>2]=at^Wr&(at^Go),br[zr+88>>2]=Kt^Wr&(Kt^No),br[zr+84>>2]=ft^Wr&(ft^Fo),br[zr+80>>2]=it^Wr&(it^Do),it=br[zr+120>>2],Do=br[Ur+120>>2],ft=br[zr+124>>2],Fo=br[Ur+124>>2],Kt=br[zr+128>>2],No=br[Ur+128>>2],at=br[zr+132>>2],Go=br[Ur+132>>2],jt=br[zr+136>>2],Xo=br[Ur+136>>2],ao=br[zr+140>>2],In=br[Ur+140>>2],Eo=br[zr+144>>2],$o=br[Ur+144>>2],Ao=br[zr+148>>2],_n=br[Ur+148>>2],yo=br[zr+152>>2],Qn=br[Ur+152>>2],_o=br[Ur+156>>2],Ur=br[zr+156>>2],br[zr+156>>2]=Wr&(_o^Ur)^Ur,br[zr+152>>2]=yo^Wr&(yo^Qn),br[zr+148>>2]=Ao^Wr&(Ao^_n),br[zr+144>>2]=Eo^Wr&(Eo^$o),br[zr+140>>2]=ao^Wr&(ao^In),br[zr+136>>2]=jt^Wr&(jt^Xo),br[zr+132>>2]=at^Wr&(at^Go),br[zr+128>>2]=Kt^Wr&(Kt^No),br[zr+124>>2]=ft^Wr&(ft^Fo),br[zr+120>>2]=it^Wr&(it^Do)}function EA(zr,Ur,Wr){var ot,it,ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0;return On=ot=On-320|0,Un(ft=ot+240|0,Wr),ns(ft,ft,Wr),Un(zr,ft),ns(zr,zr,Wr),ns(zr,zr,Ur),SA(zr,zr),ns(zr,zr,ft),ns(zr,zr,Ur),Un(ft=ot+192|0,zr),ns(ft,ft,Wr),Kt=br[Ur+4>>2],$o=br[Ur+8>>2],Fo=br[Ur+12>>2],No=br[Ur+16>>2],Go=br[Ur+20>>2],Xo=br[Ur+24>>2],In=br[Ur+28>>2],_n=br[Ur+32>>2],Qn=br[Ur>>2],Wr=br[ot+192>>2],ft=br[ot+196>>2],at=br[ot+200>>2],jt=br[ot+204>>2],ao=br[ot+208>>2],Eo=br[ot+212>>2],Ao=br[ot+216>>2],yo=br[ot+220>>2],_o=br[ot+224>>2],Do=br[ot+228>>2],Mn=br[Ur+36>>2],br[ot+180>>2]=Do-Mn,br[ot+176>>2]=_o-_n,br[ot+172>>2]=yo-In,br[ot+168>>2]=Ao-Xo,br[ot+164>>2]=Eo-Go,br[ot+160>>2]=ao-No,br[ot+156>>2]=jt-Fo,br[ot+152>>2]=at-$o,br[ot+148>>2]=ft-Kt,br[ot+144>>2]=Wr-Qn,br[ot+132>>2]=Do+Mn,br[ot+128>>2]=_o+_n,br[ot+124>>2]=yo+In,br[ot+120>>2]=Ao+Xo,br[ot+116>>2]=Eo+Go,br[ot+112>>2]=ao+No,br[ot+108>>2]=jt+Fo,br[ot+104>>2]=at+$o,br[ot+100>>2]=ft+Kt,br[ot+96>>2]=Wr+Qn,ns(Kt=ot+48|0,Ur,1648),br[ot+84>>2]=Do+br[ot+84>>2],br[ot+80>>2]=_o+br[ot+80>>2],br[ot+76>>2]=yo+br[ot+76>>2],br[ot+72>>2]=Ao+br[ot+72>>2],br[ot+68>>2]=Eo+br[ot+68>>2],br[ot+64>>2]=ao+br[ot+64>>2],br[ot+60>>2]=jt+br[ot+60>>2],br[ot+56>>2]=at+br[ot+56>>2],br[ot+52>>2]=ft+br[ot+52>>2],br[ot+48>>2]=Wr+br[ot+48>>2],Dn(ot,ot+144|0),Fo=Vl(ot,32),Dn(ot,ot+96|0),$o=Vl(ot,32),Dn(ot,Kt),Ur=Vl(ot,32),ns(ot,zr,1648),_o=br[zr+4>>2],yo=br[zr+8>>2],Ao=br[zr+12>>2],Eo=br[zr+16>>2],ao=br[zr+20>>2],jt=br[zr+24>>2],at=br[zr+28>>2],ft=br[zr+32>>2],Kt=br[zr>>2],No=br[ot>>2],Go=br[ot+4>>2],Xo=br[ot+8>>2],In=br[ot+12>>2],_n=br[ot+16>>2],Qn=br[ot+20>>2],Do=br[ot+24>>2],Mn=br[ot+28>>2],it=br[ot+32>>2],Wr=(Ur=0-(Ur|$o)|0)&((Wr=br[zr+36>>2])^br[ot+36>>2])^Wr,br[zr+36>>2]=Wr,ft^=Ur&(ft^it),br[zr+32>>2]=ft,at^=Ur&(at^Mn),br[zr+28>>2]=at,jt^=Ur&(jt^Do),br[zr+24>>2]=jt,ao^=Ur&(ao^Qn),br[zr+20>>2]=ao,Eo^=Ur&(Eo^_n),br[zr+16>>2]=Eo,Ao^=Ur&(Ao^In),br[zr+12>>2]=Ao,yo^=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ao+(ft=2|Kt)|0)|0]=lt[Ur+ft|0],Vt[ot+($o=ao+(ft=3|Kt)|0)|0]=lt[Ur+ft|0],ft=at,at=(Kt=Kt+4|0)>>>0<4?ft+1|0:ft,ft=yo,yo=ft=(_o=_o+4|0)>>>0<4?ft+1|0:ft,(0|jt)!=(0|_o)|(0|Eo)!=(0|ft););if((Wr&=3)|(ot=0))for(;Vt[40+(zr+(ft=Kt+ao|0)|0)|0]=lt[Ur+Kt|0],at=(Kt=Kt+1|0)?at:at+1|0,ft=Do,Do=ft=(Ao=Ao+1|0)?ft:ft+1|0,(0|Wr)!=(0|Ao)|(0|ot)!=(0|ft););}return On=it+288|0,0}function _u(zr,Ur){var Wr,ot,it,ft,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0;return On=Wr=On-320|0,Bu(ot=zr+40|0,Ur),br[zr+84>>2]=0,br[zr+88>>2]=0,br[zr+80>>2]=1,br[zr+92>>2]=0,br[zr+96>>2]=0,br[zr+100>>2]=0,br[zr+104>>2]=0,br[zr+108>>2]=0,br[zr+112>>2]=0,br[zr+116>>2]=0,Un(Kt=Wr+240|0,ot),ns(at=Wr+192|0,Kt,1600),br[Wr+192>>2]=br[Wr+192>>2]+1,jt=br[Wr+240>>2]-1|0,br[Wr+240>>2]=jt,ao=br[Wr+244>>2],Eo=br[Wr+248>>2],Ao=br[Wr+252>>2],yo=br[Wr+256>>2],_o=br[Wr+260>>2],$o=br[Wr+264>>2],Do=br[Wr+268>>2],Fo=br[Wr+272>>2],No=br[Wr+276>>2],ns(zr,Kt,at),SA(zr,zr),ns(zr,Kt,zr),Un(Kt=Wr+144|0,zr),ns(Kt,Kt,at),Kt=br[Wr+180>>2],br[Wr+132>>2]=Kt-No,at=br[Wr+176>>2],br[Wr+128>>2]=at-Fo,Go=br[Wr+172>>2],br[Wr+124>>2]=Go-Do,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2]=No+_n,br[zr+44>>2]=Fo+Do,br[(Ur=zr+40|0)>>2]=In+$a,Un(Wr,Ur),In=br[zr+80>>2],Fo=br[zr+4>>2],Do=br[zr+84>>2],No=br[zr+8>>2],_n=br[zr+88>>2],Go=br[zr+12>>2],Qn=br[zr+92>>2],Xo=br[zr+16>>2],Jn=br[zr+96>>2],Mn=br[zr+20>>2],jn=br[zr+100>>2],Zo=br[zr+24>>2],Zn=br[zr+104>>2],wn=br[zr+28>>2],xa=br[zr+108>>2],Nn=br[zr+32>>2],os=br[zr+112>>2],$a=br[zr>>2],ft=(as=br[zr+116>>2])-(it=br[zr+36>>2])|0,br[zr+116>>2]=ft,Kt=os-Nn|0,br[zr+112>>2]=Kt,at=xa-wn|0,br[zr+108>>2]=at,jt=Zn-Zo|0,br[zr+104>>2]=jt,ao=jn-Mn|0,br[zr+100>>2]=ao,Eo=Jn-Xo|0,br[zr+96>>2]=Eo,Ao=Qn-Go|0,br[zr+92>>2]=Ao,yo=_n-No|0,br[zr+88>>2]=yo,_o=Do-Fo|0,br[zr+84>>2]=_o,$o=In-$a|0,br[zr+80>>2]=$o,as=as+it|0,br[zr+76>>2]=as,Nn=Nn+os|0,br[zr+72>>2]=Nn,wn=wn+xa|0,br[zr+68>>2]=wn,Zo=Zo+Zn|0,br[ot>>2]=Zo,Mn=Mn+jn|0,br[zr+60>>2]=Mn,Xo=Xo+Jn|0,br[zr+56>>2]=Xo,Go=Go+Qn|0,br[zr+52>>2]=Go,No=No+_n|0,br[zr+48>>2]=No,Fo=Fo+Do|0,br[zr+44>>2]=Fo,Do=Ur,Ur=In+$a|0,br[Do>>2]=Ur,In=br[Wr>>2],Do=br[Wr+4>>2],_n=br[Wr+8>>2],Qn=br[Wr+12>>2],Jn=br[Wr+16>>2],jn=br[Wr+20>>2],Zn=br[Wr+24>>2],xa=br[Wr+28>>2],os=br[Wr+32>>2],br[zr+36>>2]=br[Wr+36>>2]-as,br[zr+32>>2]=os-Nn,br[zr+28>>2]=xa-wn,br[zr+24>>2]=Zn-Zo,br[zr+20>>2]=jn-Mn,br[zr+16>>2]=Jn-Xo,br[zr+12>>2]=Qn-Go,br[zr+8>>2]=_n-No,br[zr+4>>2]=Do-Fo,br[zr>>2]=In-Ur,Ur=br[zr+120>>2],In=br[zr+124>>2],Fo=br[zr+128>>2],Do=br[zr+132>>2],No=br[zr+136>>2],_n=br[zr+140>>2],Go=br[zr+144>>2],Qn=br[zr+148>>2],Xo=br[zr+152>>2],br[zr+156>>2]=br[zr+156>>2]-ft,br[zr+152>>2]=Xo-Kt,br[zr+148>>2]=Qn-at,br[zr+144>>2]=Go-jt,br[zr+140>>2]=_n-ao,br[zr+136>>2]=No-Eo,br[zr+132>>2]=Do-Ao,br[zr+128>>2]=Fo-yo,br[zr+124>>2]=In-_o,br[zr+120>>2]=Ur-$o,On=Wr+48|0}function sp(zr,Ur,Wr){var ot,it,ft,Kt,at,jt,ao,Eo,Ao=0;On=ot=On-160|0,br[zr>>2]=1,br[zr+4>>2]=0,br[zr+8>>2]=0,br[zr+12>>2]=0,br[zr+16>>2]=0,br[zr+20>>2]=0,br[zr+24>>2]=0,br[zr+28>>2]=0,br[zr+32>>2]=0,br[zr+44>>2]=0,br[zr+48>>2]=0,br[zr+36>>2]=0,br[zr+40>>2]=1,br[zr+52>>2]=0,br[zr+56>>2]=0,br[zr+60>>2]=0,br[zr+64>>2]=0,br[zr+68>>2]=0,br[zr+72>>2]=0,br[zr+76>>2]=0,br[zr+80>>2]=1,q0(zr+84|0,0,76),yu(zr,Ur,(255&(1^(Ao=Wr-((Wr>>31&Wr)<<1)|0)))-1>>>31|0),yu(zr,Ur+160|0,(255&(2^Ao))-1>>>31|0),yu(zr,Ur+320|0,(255&(3^Ao))-1>>>31|0),yu(zr,Ur+480|0,(255&(4^Ao))-1>>>31|0),yu(zr,Ur+640|0,(255&(5^Ao))-1>>>31|0),yu(zr,Ur+800|0,(255&(6^Ao))-1>>>31|0),yu(zr,Ur+960|0,(255&(7^Ao))-1>>>31|0),yu(zr,Ur+1120|0,(255&(8^Ao))-1>>>31|0),Ur=br[zr+76>>2],br[ot+32>>2]=br[zr+72>>2],br[ot+36>>2]=Ur,Ao=br[4+(Ur=zr- -64|0)>>2],br[ot+24>>2]=br[Ur>>2],br[ot+28>>2]=Ao,Ur=br[zr+60>>2],br[ot+16>>2]=br[zr+56>>2],br[ot+20>>2]=Ur,Ur=br[zr+52>>2],br[ot+8>>2]=br[zr+48>>2],br[ot+12>>2]=Ur,Ur=br[zr+44>>2],br[ot>>2]=br[zr+40>>2],br[ot+4>>2]=Ur,Ur=br[zr+36>>2],br[ot+72>>2]=br[zr+32>>2],br[ot+76>>2]=Ur,Ao=br[zr+28>>2],br[(Ur=ot- -64|0)>>2]=br[zr+24>>2],br[Ur+4>>2]=Ao,Ur=br[zr+20>>2],br[ot+56>>2]=br[zr+16>>2],br[ot+60>>2]=Ur,Ur=br[zr+12>>2],br[ot+48>>2]=br[zr+8>>2],br[ot+52>>2]=Ur,Ur=br[zr+4>>2],br[ot+40>>2]=br[zr>>2],br[ot+44>>2]=Ur,Ur=br[zr+92>>2],br[ot+88>>2]=br[zr+88>>2],br[ot+92>>2]=Ur,Ur=br[zr+100>>2],br[ot+96>>2]=br[zr+96>>2],br[ot+100>>2]=Ur,Ur=br[zr+108>>2],br[ot+104>>2]=br[zr+104>>2],br[ot+108>>2]=Ur,Ur=br[zr+116>>2],br[ot+112>>2]=br[zr+112>>2],br[ot+116>>2]=Ur,Ur=br[zr+84>>2],br[ot+80>>2]=br[zr+80>>2],br[ot+84>>2]=Ur,Ur=br[zr+120>>2],Ao=br[zr+124>>2],it=br[zr+128>>2],ft=br[zr+132>>2],Kt=br[zr+136>>2],at=br[zr+140>>2],jt=br[zr+144>>2],ao=br[zr+148>>2],Eo=br[zr+152>>2],br[ot+156>>2]=0-br[zr+156>>2],br[ot+152>>2]=0-Eo,br[ot+148>>2]=0-ao,br[ot+144>>2]=0-jt,br[ot+140>>2]=0-at,br[ot+136>>2]=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0;var Wr,ot,it=0,ft=0,Kt=0,at=0;return On=Wr=On-288|0,ft=40+((it=br[32+(zr|=0)>>2]>>>3&63)+zr|0)|0,it>>>0>=56?(U0(ft,34688,64-it|0),Xu(zr,zr+40|0,Wr,Wr+256|0),br[zr+88>>2]=0,br[zr+92>>2]=0,br[zr+80>>2]=0,br[zr+84>>2]=0,br[zr+72>>2]=0,br[zr+76>>2]=0,br[(it=zr- -64|0)>>2]=0,br[it+4>>2]=0,br[zr+56>>2]=0,br[zr+60>>2]=0,br[zr+48>>2]=0,br[zr+52>>2]=0,br[zr+40>>2]=0,br[zr+44>>2]=0):U0(ft,34688,56-it|0),Kt=(it=16711680&(ft=br[zr+32>>2]))>>>8|0,at=it<<24,ot=(it=-16777216&ft)>>>24|0,it=(at|=it<<8)|-16777216&((255&(it=br[zr+36>>2]))<<24|ft>>>8)|16711680&((16777215&it)<<8|ft>>>24)|it>>>8&65280|it>>>24,Vt[zr+96|0]=it,Vt[zr+97|0]=it>>>8,Vt[zr+98|0]=it>>>16,Vt[zr+99|0]=it>>>24,it=(it=Kt|ot|ft<<24|(65280&ft)<<8)|(Kt=0)|Kt,Vt[zr+100|0]=it,Vt[zr+101|0]=it>>>8,Vt[zr+102|0]=it>>>16,Vt[zr+103|0]=it>>>24,Xu(zr,zr+40|0,Wr,Wr+256|0),it=(it=br[zr>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[0|Ur]=it,Vt[Ur+1|0]=it>>>8,Vt[Ur+2|0]=it>>>16,Vt[Ur+3|0]=it>>>24,it=(it=br[zr+4>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[Ur+4|0]=it,Vt[Ur+5|0]=it>>>8,Vt[Ur+6|0]=it>>>16,Vt[Ur+7|0]=it>>>24,it=(it=br[zr+8>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[Ur+8|0]=it,Vt[Ur+9|0]=it>>>8,Vt[Ur+10|0]=it>>>16,Vt[Ur+11|0]=it>>>24,it=(it=br[zr+12>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[Ur+12|0]=it,Vt[Ur+13|0]=it>>>8,Vt[Ur+14|0]=it>>>16,Vt[Ur+15|0]=it>>>24,it=(it=br[zr+16>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[Ur+16|0]=it,Vt[Ur+17|0]=it>>>8,Vt[Ur+18|0]=it>>>16,Vt[Ur+19|0]=it>>>24,it=(it=br[zr+20>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[Ur+20|0]=it,Vt[Ur+21|0]=it>>>8,Vt[Ur+22|0]=it>>>16,Vt[Ur+23|0]=it>>>24,it=(it=br[zr+24>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[Ur+24|0]=it,Vt[Ur+25|0]=it>>>8,Vt[Ur+26|0]=it>>>16,Vt[Ur+27|0]=it>>>24,it=(it=br[zr+28>>2])<<24|(65280&it)<<8|it>>>8&65280|it>>>24,Vt[Ur+28|0]=it,Vt[Ur+29|0]=it>>>8,Vt[Ur+30|0]=it>>>16,Vt[Ur+31|0]=it>>>24,o0(Wr,288),o0(zr,104),On=Wr+288|0,0}function up(zr,Ur){zr|=0;var Wr,ot=0;On=Wr=On+-64|0,ot=lt[60+(Ur|=0)|0]|lt[Ur+61|0]<<8|lt[Ur+62|0]<<16|lt[Ur+63|0]<<24,br[Wr+56>>2]=lt[Ur+56|0]|lt[Ur+57|0]<<8|lt[Ur+58|0]<<16|lt[Ur+59|0]<<24,br[Wr+60>>2]=ot,ot=lt[Ur+52|0]|lt[Ur+53|0]<<8|lt[Ur+54|0]<<16|lt[Ur+55|0]<<24,br[Wr+48>>2]=lt[Ur+48|0]|lt[Ur+49|0]<<8|lt[Ur+50|0]<<16|lt[Ur+51|0]<<24,br[Wr+52>>2]=ot,ot=lt[Ur+44|0]|lt[Ur+45|0]<<8|lt[Ur+46|0]<<16|lt[Ur+47|0]<<24,br[Wr+40>>2]=lt[Ur+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>>8,Vt[zr+18|0]=ot>>>16,Vt[zr+19|0]=ot>>>24,Vt[zr+20|0]=Ur,Vt[zr+21|0]=Ur>>>8,Vt[zr+22|0]=Ur>>>16,Vt[zr+23|0]=Ur>>>24,Ur=br[Wr+12>>2],ot=br[Wr+8>>2],Vt[zr+8|0]=ot,Vt[zr+9|0]=ot>>>8,Vt[zr+10|0]=ot>>>16,Vt[zr+11|0]=ot>>>24,Vt[zr+12|0]=Ur,Vt[zr+13|0]=Ur>>>8,Vt[zr+14|0]=Ur>>>16,Vt[zr+15|0]=Ur>>>24,Ur=br[Wr+4>>2],ot=br[Wr>>2],Vt[0|zr]=ot,Vt[zr+1|0]=ot>>>8,Vt[zr+2|0]=ot>>>16,Vt[zr+3|0]=ot>>>24,Vt[zr+4|0]=Ur,Vt[zr+5|0]=Ur>>>8,Vt[zr+6|0]=Ur>>>16,Vt[zr+7|0]=Ur>>>24,o0(Wr,64),On=Wr- -64|0}function ku(zr,Ur,Wr){zr|=0,Ur|=0;var ot,it=0,ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0;if(On=ot=On-96|0,(Wr|=0)>>>0>=65&&(bp(zr),au(zr,Ur,Wr,0),bu(zr,ot),Wr=32,Ur=ot),bp(zr),br[ot+88>>2]=909522486,br[ot+92>>2]=909522486,br[ot+80>>2]=909522486,br[ot+84>>2]=909522486,br[ot+72>>2]=909522486,br[ot+76>>2]=909522486,br[(Kt=Eo=ot- -64|0)>>2]=909522486,br[Kt+4>>2]=909522486,br[ot+56>>2]=909522486,br[ot+60>>2]=909522486,br[ot+48>>2]=909522486,br[ot+52>>2]=909522486,br[ot+40>>2]=909522486,br[ot+44>>2]=909522486,br[ot+32>>2]=909522486,br[ot+36>>2]=909522486,Wr){if(Wr>>>0>=4)for(at=124&Wr;Vt[0|(ft=(Kt=ot+32|0)+it|0)]=lt[0|ft]^lt[Ur+it|0],Vt[0|(Ao=(ft=1|it)+Kt|0)]=lt[0|Ao]^lt[Ur+ft|0],Vt[0|(Ao=(ft=2|it)+Kt|0)]=lt[0|Ao]^lt[Ur+ft|0],Vt[0|(ft=(ft=Kt)+(Kt=3|it)|0)]=lt[0|ft]^lt[Ur+Kt|0],it=it+4|0,(0|at)!=(0|(jt=jt+4|0)););if(jt=3&Wr)for(;Vt[0|(Kt=(ot+32|0)+it|0)]=lt[0|Kt]^lt[Ur+it|0],it=it+1|0,(0|jt)!=(0|(ao=ao+1|0)););}if(au(zr,ot+32|0,64,0),bp(Kt=zr+104|0),br[ot+88>>2]=1549556828,br[ot+92>>2]=1549556828,br[ot+80>>2]=1549556828,br[ot+84>>2]=1549556828,br[ot+72>>2]=1549556828,br[ot+76>>2]=1549556828,br[Eo>>2]=1549556828,br[Eo+4>>2]=1549556828,br[ot+56>>2]=1549556828,br[ot+60>>2]=1549556828,br[ot+48>>2]=1549556828,br[ot+52>>2]=1549556828,br[ot+40>>2]=1549556828,br[ot+44>>2]=1549556828,br[ot+32>>2]=1549556828,br[ot+36>>2]=1549556828,Wr){if(ao=0,it=0,Wr>>>0>=4)for(Eo=124&Wr,jt=0;Vt[0|(at=(zr=ot+32|0)+it|0)]=lt[0|at]^lt[Ur+it|0],Vt[0|(ft=(at=1|it)+zr|0)]=lt[0|ft]^lt[Ur+at|0],Vt[0|(ft=(at=2|it)+zr|0)]=lt[0|ft]^lt[Ur+at|0],Vt[0|(at=(ft=zr)+(zr=3|it)|0)]=lt[0|at]^lt[zr+Ur|0],it=it+4|0,(0|Eo)!=(0|(jt=jt+4|0)););if(zr=3&Wr)for(;Vt[0|(Wr=(ot+32|0)+it|0)]=lt[0|Wr]^lt[Ur+it|0],it=it+1|0,(0|zr)!=(0|(ao=ao+1|0)););}return au(Kt,zr=ot+32|0,64,0),o0(zr,64),o0(ot,32),On=ot+96|0,0}function wA(zr,Ur,Wr,ot,it,ft,Kt){var at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0;if(Ur-65>>>0<4294967232|Kt>>>0>64)zr=-1;else{yo=at=On,On=at=at-512&-64;e:{r:if(!(!(!(ot|it)|Wr)|!zr|((jt=255&Ur)-65&255)>>>0<=191|!(!(Ur=255&Kt)||ft)|Ur>>>0>=65)){if(Ur){if(!ft)break r;q0(at- -64|0,0,293),br[at+56>>2]=327033209,br[at+60>>2]=1541459225,br[at+48>>2]=-79577749,br[at+52>>2]=528734635,br[at+40>>2]=725511199,br[at+44>>2]=-1694144372,br[at+32>>2]=-1377402159,br[at+36>>2]=1359893119,br[at+24>>2]=1595750129,br[at+28>>2]=-1521486534,br[at+16>>2]=-23791573,br[at+20>>2]=1013904242,br[at+8>>2]=-2067093701,br[at+12>>2]=-1150833019,br[at>>2]=-222443256^(Ur<<8|jt),br[at+4>>2]=Ur>>>24^1779033703,q0((Kt=at+384|0)+Ur|0,0,128-Ur|0),U0(Kt,ft,Ur),U0(at+96|0,Kt,128),br[at+352>>2]=128,o0(Kt,128),Ur=128}else q0(at- -64|0,0,293),br[at+56>>2]=327033209,br[at+60>>2]=1541459225,br[at+48>>2]=-79577749,br[at+52>>2]=528734635,br[at+40>>2]=725511199,br[at+44>>2]=-1694144372,br[at+32>>2]=-1377402159,br[at+36>>2]=1359893119,br[at+24>>2]=1595750129,br[at+28>>2]=-1521486534,br[at+16>>2]=-23791573,br[at+20>>2]=1013904242,br[at+8>>2]=-2067093701,br[at+12>>2]=-1150833019,br[at>>2]=-222443256^jt,br[at+4>>2]=1779033703,Ur=0;t:if(ot|it)for(_o=at+224|0,ao=at+96|0;;){if(Kt=Ur+ao|0,!it&ot>>>0<=(ft=256-Ur|0)>>>0){U0(Kt,Wr,ot),br[at+352>>2]=ot+br[at+352>>2];break t}if(U0(Kt,Wr,ft),br[at+352>>2]=ft+br[at+352>>2],Eo=Ur=br[at+68>>2],Ur=(Ao=(Kt=br[at+64>>2])+128|0)>>>0<128?Ur+1|0:Ur,br[at+64>>2]=Ao,br[at+68>>2]=Ur,Ur=br[at+76>>2],Ur=(Eo=Kt=(0|Eo)==-1&Kt>>>0>4294967167)>>>0>(Kt=Kt+br[at+72>>2]|0)>>>0?Ur+1|0:Ur,br[at+72>>2]=Kt,br[at+76>>2]=Ur,ju(at,ao),U0(ao,_o,128),Ur=br[at+352>>2]-128|0,br[at+352>>2]=Ur,Wr=Wr+ft|0,!((it=it-(ot>>>0>>0)|0)|(ot=ot-ft|0)))break}hA(at,zr,jt),On=yo;break e}El(),Qs()}zr=0}return zr}function dp(zr,Ur){zr|=0,Ur|=0;var Wr,ot=0;On=Wr=On-128|0,br[Wr+80>>2]=0,br[Wr+84>>2]=0,br[Wr+88>>2]=0,br[Wr+92>>2]=0,br[Wr+40>>2]=0,br[Wr+44>>2]=0,br[Wr+48>>2]=0,br[Wr+52>>2]=0,br[Wr+56>>2]=0,br[Wr+60>>2]=0,ot=br[8591],br[Wr+104>>2]=br[8590],br[Wr+108>>2]=ot,ot=br[8593],br[Wr+112>>2]=br[8592],br[Wr+116>>2]=ot,ot=br[8595],br[Wr+120>>2]=br[8594],br[Wr+124>>2]=ot,br[Wr+64>>2]=0,br[Wr+68>>2]=0,br[Wr+72>>2]=0,br[Wr+76>>2]=0,Vt[Wr+64|0]=1,br[Wr+32>>2]=0,br[Wr+36>>2]=0,ot=br[8589],br[Wr+96>>2]=br[8588],br[Wr+100>>2]=ot,ot=lt[Ur+28|0]|lt[Ur+29|0]<<8|lt[Ur+30|0]<<16|lt[Ur+31|0]<<24,br[Wr+24>>2]=lt[Ur+24|0]|lt[Ur+25|0]<<8|lt[Ur+26|0]<<16|lt[Ur+27|0]<<24,br[Wr+28>>2]=ot,ot=lt[Ur+20|0]|lt[Ur+21|0]<<8|lt[Ur+22|0]<<16|lt[Ur+23|0]<<24,br[Wr+16>>2]=lt[Ur+16|0]|lt[Ur+17|0]<<8|lt[Ur+18|0]<<16|lt[Ur+19|0]<<24,br[Wr+20>>2]=ot,ot=lt[Ur+12|0]|lt[Ur+13|0]<<8|lt[Ur+14|0]<<16|lt[Ur+15|0]<<24,br[Wr+8>>2]=lt[Ur+8|0]|lt[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+br[zr+56>>2]|0,Vt[it+at|0]=lt[Ur+ft|0],it=(ao=1|ft)+br[zr+56>>2]|0,Vt[it+at|0]=lt[Ur+ao|0],it=(ao=2|ft)+br[zr+56>>2]|0,Vt[it+at|0]=lt[Ur+ao|0],it=(ao=3|ft)+br[zr+56>>2]|0,Vt[it+at|0]=lt[Ur+ao|0],Kt=(ft=ft+4|0)>>>0<4?Kt+1|0:Kt,it=Eo,Eo=it=(Ao=Ao+4|0)>>>0<4?it+1|0:it,(0|jt)!=(0|Ao)|(0|yo)!=(0|it););if(at=it=0,it|(Eo=3&Wr))for(;it=ft+br[zr+56>>2]|0,Vt[(zr+it|0)- -64|0]=lt[Ur+ft|0],Kt=(ft=ft+1|0)?Kt:Kt+1|0,it=Do,Do=it=($o=$o+1|0)?it:it+1|0,(0|Eo)!=(0|$o)|(0|at)!=(0|it););Kt=ot+br[zr+60>>2]|0,Kt=(Ur=Wr+br[zr+56>>2]|0)>>>0>>0?Kt+1|0:Kt,br[zr+56>>2]=Ur,br[zr+60>>2]=Kt}}}function Ap(zr,Ur){zr|=0,Ur|=0;var Wr,ot=0;On=Wr=On-128|0,br[Wr+80>>2]=0,br[Wr+84>>2]=0,br[Wr+88>>2]=0,br[Wr+92>>2]=0,br[Wr+40>>2]=0,br[Wr+44>>2]=0,br[Wr+48>>2]=0,br[Wr+52>>2]=0,br[Wr+56>>2]=0,br[Wr+60>>2]=0,ot=br[8591],br[Wr+104>>2]=br[8590],br[Wr+108>>2]=ot,ot=br[8593],br[Wr+112>>2]=br[8592],br[Wr+116>>2]=ot,ot=br[8595],br[Wr+120>>2]=br[8594],br[Wr+124>>2]=ot,br[Wr+64>>2]=0,br[Wr+68>>2]=0,br[Wr+72>>2]=0,br[Wr+76>>2]=0,br[Wr+32>>2]=0,br[Wr+36>>2]=0,ot=br[8589],br[Wr+96>>2]=br[8588],br[Wr+100>>2]=ot,ot=lt[Ur+20|0]|lt[Ur+21|0]<<8|lt[Ur+22|0]<<16|lt[Ur+23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>>2],In=br[Ur+60>>2],Eo=br[(_o=zr- -64|0)>>2],_n=br[Ur- -64>>2],Ao=br[zr+68>>2],Qn=br[Ur+68>>2],yo=br[zr+72>>2],$o=br[Ur+72>>2],ot=br[zr+76>>2],br[zr+76>>2]=ot^Wr&(br[Ur+76>>2]^ot),br[zr+72>>2]=yo^Wr&(yo^$o),br[zr+68>>2]=Ao^Wr&(Ao^Qn),br[_o>>2]=Eo^Wr&(Eo^_n),br[zr+60>>2]=ao^Wr&(ao^In),br[zr+56>>2]=jt^Wr&(jt^Xo),br[zr+52>>2]=at^Wr&(at^Go),br[zr+48>>2]=Kt^Wr&(Kt^No),br[zr+44>>2]=ft^Wr&(ft^Fo),br[zr+40>>2]=it^Wr&(it^Do),it=br[zr+80>>2],Do=br[Ur+80>>2],ft=br[zr+84>>2],Fo=br[Ur+84>>2],Kt=br[zr+88>>2],No=br[Ur+88>>2],at=br[zr+92>>2],Go=br[Ur+92>>2],jt=br[zr+96>>2],Xo=br[Ur+96>>2],ao=br[zr+100>>2],In=br[Ur+100>>2],Eo=br[zr+104>>2],_o=br[Ur+104>>2],Ao=br[zr+108>>2],_n=br[Ur+108>>2],yo=br[zr+112>>2],Qn=br[Ur+112>>2],$o=br[Ur+116>>2],Ur=br[zr+116>>2],br[zr+116>>2]=Wr&($o^Ur)^Ur,br[zr+112>>2]=yo^Wr&(yo^Qn),br[zr+108>>2]=Ao^Wr&(Ao^_n),br[zr+104>>2]=Eo^Wr&(Eo^_o),br[zr+100>>2]=ao^Wr&(ao^In),br[zr+96>>2]=jt^Wr&(jt^Xo),br[zr+92>>2]=at^Wr&(at^Go),br[zr+88>>2]=Kt^Wr&(Kt^No),br[zr+84>>2]=ft^Wr&(ft^Fo),br[zr+80>>2]=it^Wr&(it^Do)}function Ru(zr,Ur){var Wr,ot,it=0;for(On=Wr=On-192|0,Un(ot=Wr+144|0,Ur),Un(it=Wr+96|0,ot),Un(it,it),ns(it,Ur,it),ns(ot,ot,it),Un(Ur=Wr+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>>0<=ao>>>0))){if(!(4&it)){if(!ot){it=0;break o}it=0;break c}if(!ot){it=0;break o}for(it=0;;){for(Ao=(yo=lt[Wr+Eo|0])|Ao<<8,Kt=it,it=1+((((jt|=8)-6>>>0)/6|0)+it|0)|0;_o=65510+(at=Ao>>>(jt=(ft=jt)-6|0)&63)>>>8|0,$o=at+65484>>>8|0,Vt[zr+Kt|0]=(1+(16321^at)^-1)>>>8&45|at+252&at+65474>>>8&(-1^$o)|(at+32705^-1)>>>8&95|_o&at+65|$o&at+71&(-1^_o),(0|(Kt=Kt+1|0))!=(0|it););if((0|(Eo=Eo+1|0))==(0|ot))break}if(!jt)break n;Kt=(ot=65510+(ft=yo<<12-ft&63)>>>8|0)&ft+65,jt=ft+252&ft+65474>>>8&(-1^(Wr=ft+65484>>>8|0)),ot=Wr&ft+71&(-1^ot),Eo=ft+32705|0,Ao=95,Wr=(1+(16321^ft)^-1)>>>8&45;break a}El(),Qs()}for(;;){for(Ao=(yo=lt[Wr+Eo|0])|Ao<<8,Kt=it,it=1+((((jt|=8)-6>>>0)/6|0)+it|0)|0;_o=65510+(at=Ao>>>(jt=(ft=jt)-6|0)&63)>>>8|0,$o=at+65484>>>8|0,Vt[zr+Kt|0]=(1+(16321^at)^-1)>>>8&43|at+252&at+65474>>>8&(-1^$o)|(at+16321^-1)>>>8&47|_o&at+65|$o&at+71&(-1^_o),(0|(Kt=Kt+1|0))!=(0|it););if((0|(Eo=Eo+1|0))==(0|ot))break}if(!jt)break n;Kt=(ot=65510+(ft=yo<<12-ft&63)>>>8|0)&ft+65,jt=ft+252&ft+65474>>>8&(-1^(Wr=ft+65484>>>8|0)),ot=Wr&ft+71&(-1^ot),Eo=ft+16321|0,Ao=47,Wr=(1+(16321^ft)^-1)>>>8&43}Vt[zr+it|0]=Wr|(-1^Eo)>>>8&Ao|Kt|jt|ot,it=it+1|0}if(it>>>0>ao>>>0)break t}if(it>>>0>>0)break r;ao=it;break e}uu(1104,1201,231,1505),Qs()}q0(zr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(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),ns(ot,ot,it),Un(Wr,ot),ot=1;Un(Wr,Wr),(0|(ot=ot+1|0))!=100;);ns(ot=Wr+48|0,Wr,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),Un(ot,ot),ns(it=Wr+96|0,ot,it),Un(it,it),Un(it,it),ns(zr,it,Ur),On=Wr+144|0}function gp(zr,Ur){var Wr,ot,it,ft,Kt,at,jt,ao,Eo,Ao,yo,_o,$o,Do,Fo,No,Go,Xo,In,_n=0,Qn=0,Mn=0,Zo=0;On=Wr=On-320|0,Bu(ot=zr+40|0,Ur),br[zr+84>>2]=0,br[zr+88>>2]=0,br[zr+80>>2]=1,br[zr+92>>2]=0,br[zr+96>>2]=0,br[zr+100>>2]=0,br[zr+104>>2]=0,br[zr+108>>2]=0,br[zr+112>>2]=0,br[zr+116>>2]=0,Un(Mn=Wr+240|0,ot),ns(Qn=Wr+192|0,Mn,1600),Zo=-1,it=br[Wr+240>>2]-1|0,br[Wr+240>>2]=it,br[Wr+192>>2]=br[Wr+192>>2]+1,ft=br[Wr+244>>2],Kt=br[Wr+248>>2],at=br[Wr+252>>2],jt=br[Wr+256>>2],ao=br[Wr+260>>2],Eo=br[Wr+264>>2],Ao=br[Wr+268>>2],yo=br[Wr+272>>2],_o=br[Wr+276>>2],Un(_n=Wr+144|0,Qn),ns(_n,_n,Qn),Un(zr,_n),ns(zr,zr,Qn),ns(zr,zr,Mn),SA(zr,zr),ns(zr,zr,_n),ns(zr,zr,Mn),Un(_n=Wr+96|0,zr),ns(_n,_n,Qn),Qn=br[Wr+132>>2],br[Wr+84>>2]=Qn-_o,_n=br[Wr+128>>2],br[Wr+80>>2]=_n-yo,Mn=br[Wr+124>>2],br[Wr+76>>2]=Mn-Ao,$o=br[Wr+120>>2],br[Wr+72>>2]=$o-Eo,Do=br[Wr+116>>2],br[Wr+68>>2]=Do-ao,Fo=br[Wr+112>>2],br[Wr+64>>2]=Fo-jt,No=br[Wr+108>>2],br[Wr+60>>2]=No-at,Go=br[Wr+104>>2],br[Wr+56>>2]=Go-Kt,Xo=br[Wr+100>>2],br[Wr+52>>2]=Xo-ft,In=br[Wr+96>>2],br[Wr+48>>2]=In-it,Dn(Wr,Wr+48|0);e:{if(!Vl(Wr,32)){if(br[Wr+36>>2]=Qn+_o,br[Wr+32>>2]=_n+yo,br[Wr+28>>2]=Mn+Ao,br[Wr+24>>2]=Eo+$o,br[Wr+20>>2]=ao+Do,br[Wr+16>>2]=jt+Fo,br[Wr+12>>2]=at+No,br[Wr+8>>2]=Kt+Go,br[Wr+4>>2]=ft+Xo,br[Wr>>2]=it+In,Dn(Qn=Wr+288|0,Wr),!Vl(Qn,32))break e;ns(zr,zr,1648)}Dn(Wr+288|0,zr),(1&Vt[Wr+288|0])==(lt[Ur+31|0]>>>7|0)&&(br[zr>>2]=0-br[zr>>2],br[zr+36>>2]=0-br[zr+36>>2],br[zr+32>>2]=0-br[zr+32>>2],br[zr+28>>2]=0-br[zr+28>>2],br[zr+24>>2]=0-br[zr+24>>2],br[zr+20>>2]=0-br[zr+20>>2],br[zr+16>>2]=0-br[zr+16>>2],br[zr+12>>2]=0-br[zr+12>>2],br[zr+8>>2]=0-br[zr+8>>2],br[zr+4>>2]=0-br[zr+4>>2]),ns(zr+120|0,zr,ot),Zo=0}return On=Wr+320|0,Zo}function pp(zr,Ur,Wr){var ot,it,ft,Kt,at,jt,ao,Eo,Ao=0;On=ot=On-128|0,br[zr>>2]=1,br[zr+4>>2]=0,br[zr+8>>2]=0,br[zr+12>>2]=0,br[zr+16>>2]=0,br[zr+20>>2]=0,br[zr+24>>2]=0,br[zr+28>>2]=0,br[zr+32>>2]=0,br[zr+36>>2]=0,br[zr+40>>2]=1,q0(zr+44|0,0,76),Iu(zr,Ur=w0(Ur,960)+3008|0,(255&(1^(Ao=Wr-((Wr>>31&Wr)<<1)|0)))-1>>>31|0),Iu(zr,Ur+120|0,(255&(2^Ao))-1>>>31|0),Iu(zr,Ur+240|0,(255&(3^Ao))-1>>>31|0),Iu(zr,Ur+360|0,(255&(4^Ao))-1>>>31|0),Iu(zr,Ur+480|0,(255&(5^Ao))-1>>>31|0),Iu(zr,Ur+600|0,(255&(6^Ao))-1>>>31|0),Iu(zr,Ur+720|0,(255&(7^Ao))-1>>>31|0),Iu(zr,Ur+840|0,(255&(8^Ao))-1>>>31|0),Ur=br[zr+76>>2],br[ot+40>>2]=br[zr+72>>2],br[ot+44>>2]=Ur,Ao=br[4+(Ur=zr- -64|0)>>2],br[ot+32>>2]=br[Ur>>2],br[ot+36>>2]=Ao,Ur=br[zr+60>>2],br[ot+24>>2]=br[zr+56>>2],br[ot+28>>2]=Ur,Ur=br[zr+52>>2],br[ot+16>>2]=br[zr+48>>2],br[ot+20>>2]=Ur,Ur=br[zr+44>>2],br[ot+8>>2]=br[zr+40>>2],br[ot+12>>2]=Ur,Ur=br[zr+12>>2],br[ot+56>>2]=br[zr+8>>2],br[ot+60>>2]=Ur,Ao=br[zr+20>>2],br[(Ur=ot- -64|0)>>2]=br[zr+16>>2],br[Ur+4>>2]=Ao,Ur=br[zr+28>>2],br[ot+72>>2]=br[zr+24>>2],br[ot+76>>2]=Ur,Ur=br[zr+36>>2],br[ot+80>>2]=br[zr+32>>2],br[ot+84>>2]=Ur,Ur=br[zr+4>>2],br[ot+48>>2]=br[zr>>2],br[ot+52>>2]=Ur,Ur=br[zr+80>>2],Ao=br[zr+84>>2],it=br[zr+88>>2],ft=br[zr+92>>2],Kt=br[zr+96>>2],at=br[zr+100>>2],jt=br[zr+104>>2],ao=br[zr+108>>2],Eo=br[zr+112>>2],br[ot+124>>2]=0-br[zr+116>>2],br[ot+120>>2]=0-Eo,br[ot+116>>2]=0-ao,br[ot+112>>2]=0-jt,br[ot+108>>2]=0-at,br[ot+104>>2]=0-Kt,br[ot+100>>2]=0-ft,br[ot+96>>2]=0-it,br[ot+92>>2]=0-Ao,br[ot+88>>2]=0-Ur,Iu(zr,ot+8|0,(128&Wr)>>>7|0),On=ot+128|0}function Gu(zr){var Ur,Wr,ot,it,ft,Kt,at,jt,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0,_n=0,Qn=0,Mn=0,Zo=0,wn=0,Nn=0,Jn=0,jn=0;return On=Ur=On-320|0,Un(Eo=Ur+240|0,zr),Un(Ao=Ur+192|0,zr+40|0),Un(ao=Ur+144|0,zr+80|0),zr=br[Ur+240>>2],yo=br[Ur+192>>2],_o=br[Ur+244>>2],$o=br[Ur+196>>2],Do=br[Ur+248>>2],Fo=br[Ur+200>>2],No=br[Ur+252>>2],Go=br[Ur+204>>2],Xo=br[Ur+256>>2],In=br[Ur+208>>2],_n=br[Ur+260>>2],Qn=br[Ur+212>>2],Mn=br[Ur+264>>2],Zo=br[Ur+216>>2],wn=br[Ur+268>>2],Nn=br[Ur+220>>2],Jn=br[Ur+272>>2],jn=br[Ur+224>>2],br[Ur+84>>2]=br[Ur+228>>2]-br[Ur+276>>2],br[Ur+80>>2]=jn-J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0]<<8|lt[zr+354|0]<<16|lt[zr+355|0]<<24;;){if(it=ft+jt|0,!ot&Wr>>>0<=(Kt=256-ft|0)>>>0){U0(it,Ur,Wr),Ur=Wr+(lt[zr+352|0]|lt[zr+353|0]<<8|lt[zr+354|0]<<16|lt[zr+355|0]<<24)|0,Vt[zr+352|0]=Ur,Vt[zr+353|0]=Ur>>>8,Vt[zr+354|0]=Ur>>>16,Vt[zr+355|0]=Ur>>>24;break e}if(U0(it,Ur,Kt),it=(lt[zr+352|0]|lt[zr+353|0]<<8|lt[zr+354|0]<<16|lt[zr+355|0]<<24)+Kt|0,Vt[zr+352|0]=it,Vt[zr+353|0]=it>>>8,Vt[zr+354|0]=it>>>16,Vt[zr+355|0]=it>>>24,ao=ft=lt[zr+68|0]|lt[zr+69|0]<<8|lt[zr+70|0]<<16|lt[zr+71|0]<<24,ft=(at=128+(it=lt[zr+64|0]|lt[zr+65|0]<<8|lt[zr+66|0]<<16|lt[zr+67|0]<<24)|0)>>>0<128?ft+1|0:ft,Vt[zr+64|0]=at,Vt[zr+65|0]=at>>>8,Vt[zr+66|0]=at>>>16,Vt[zr+67|0]=at>>>24,Vt[zr+68|0]=ft,Vt[zr+69|0]=ft>>>8,Vt[zr+70|0]=ft>>>16,Vt[zr+71|0]=ft>>>24,ft=lt[zr+76|0]|lt[zr+77|0]<<8|lt[zr+78|0]<<16|lt[zr+79|0]<<24,ft=(ao=it=(0|ao)==-1&it>>>0>4294967167)>>>0>(it=it+(lt[zr+72|0]|lt[zr+73|0]<<8|lt[zr+74|0]<<16|lt[zr+75|0]<<24)|0)>>>0?ft+1|0:ft,Vt[zr+72|0]=it,Vt[zr+73|0]=it>>>8,Vt[zr+74|0]=it>>>16,Vt[zr+75|0]=it>>>24,Vt[zr+76|0]=ft,Vt[zr+77|0]=ft>>>8,Vt[zr+78|0]=ft>>>16,Vt[zr+79|0]=ft>>>24,ju(zr,jt),U0(jt,Eo,128),it=ft=(lt[zr+352|0]|lt[zr+353|0]<<8|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kt=ao+(at=at-1|0)|0)]!=36;);if(jt=Kt-ao|0,Kt||(jt=gu(ao)),!((jt=45+(at=(Kt=jt)+(ao-ot|0)|0)|0)>>>0>102|Kt>>>0>jt>>>0||(jt=zr,yo=Ur,_o=Wr,zr=31&(Eo=Eo-1024|0),(63&Eo)>>>0>=32?(Ur=1<>>32-zr,op(jt,yo,_o,ao,Kt,Wr,Ur,br[ft+12>>2],br[ft+8>>2],ft+16|0,32)))){for(Kt=U0(it,ot,at),Vt[0|(zr=Kt+at|0)]=36,Ao=(jt=Kt+102|0)-(it=zr+1|0)|0,Wr=0;;){e:if((Ur=Wr)>>>0>31)ot=it;else if(zr=it,Wr=(at=Ur+1|0)+(yo=(Wr=31-Ur|0)>>>0>=2?2:Wr)|0,ot=0,ao=0,it=lt[(Eo=ft+16|0)+Ur|0],yo&&(it=lt[at+Eo|0]<<8|it,(0|(Ur=Ur+2|0))!=(0|Wr)&&(ao=1,it=lt[Ur+Eo|0]<<16|it)),Ao&&(Vt[0|zr]=lt[1024+(63&it)|0],(0|Ao)!=1)){if(Vt[zr+1|0]=lt[1024+(it>>>6&63)|0],yo=zr+Ao|0,Ur=zr+2|0,(0|Wr)!=(0|at)){if((0|Ao)==2)break e;if(Vt[zr+2|0]=lt[1024+(it>>>12&63)|0],Ur=zr+3|0,ao){if((0|Ao)==3)break e;Vt[zr+3|0]=lt[1024+(it>>>18|0)|0],Ur=zr+4|0}}if(Ao=yo-(it=Ur)|0,it)continue}break}o0(ft+16|0,32),Ao=0,!ot|ot>>>0>=jt>>>0||(Vt[0|ot]=0,Ao=Kt)}}return On=ft+48|0,Ao}function jo(zr,Ur,Wr){var ot,it,ft,Kt=0,at=0,jt=0,ao=0;On=ot=On-16|0,it=br[zr+20>>2],br[zr+20>>2]=0,ft=br[zr+4>>2],br[zr+4>>2]=0,Kt=-26;e:{r:{t:{o:switch(Wr-1|0){case 1:if(Kt=-32,xu(Ur,1165,9))break e;Ur=Ur+9|0;break t;case 0:break o;default:break e}if(Kt=-32,xu(Ur,1156,8))break e;Ur=Ur+8|0}if(!((Kt=xu(Ur,1422,3))||((at=lt[0|(Wr=Ur+3|0)])-58&255)>>>0<246)){for(ao=Kt?Ur:Wr,Ur=0,Kt=at;;){if(jt=Wr,Ur>>>0>429496729||(Kt=(255&Kt)-48|0)>>>0>(-1^(Ur=w0(Ur,10)))>>>0)break r;if(Ur=Ur+Kt|0,!(((Kt=lt[0|(Wr=Wr+1|0)])-58&255)>>>0>245))break}if(!((0|at)==48&(0|ao)!=(0|jt)|(0|Wr)==(0|ao))){if(Kt=-26,(0|Ur)!=19)break e;if(!xu(Wr,1434,3)&&(Wr=Lp(jt+4|0,Ur=ot+12|0))&&(br[zr+44>>2]=br[ot+12>>2],!xu(Wr,1426,3)&&(Wr=Lp(Wr+3|0,Ur))&&(br[zr+40>>2]=br[ot+12>>2],!xu(Wr,1430,3)&&(Wr=Lp(Wr+3|0,Ur))&&(Kt=br[ot+12>>2],br[zr+48>>2]=Kt,br[zr+52>>2]=Kt,lt[0|Wr]==36&&(br[ot+12>>2]=it,!vA(Kt=br[zr+16>>2],it,jt=Wr=Wr+1|0,at=gu(Wr),0,Ur,Wr=ot+8|0,3)&&(br[zr+20>>2]=br[ot+12>>2],Kt=br[ot+8>>2],lt[0|Kt]==36&&(br[ot+12>>2]=ft,Kt=Kt+1|0,!vA(br[zr>>2],ft,Kt,gu(Kt),0,Ur,Wr,3)))))))){if(br[zr+4>>2]=br[ot+12>>2],Ur=br[ot+8>>2],Kt=Tp(zr))break e;Kt=lt[0|Ur]?-32:0;break e}}}}Kt=-32}return On=ot+16|0,Kt}function Ho(zr,Ur){var Wr,ot=0,it=0,ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0,In=0;ot=br[Ur+40>>2],ft=br[Ur+4>>2],Kt=br[Ur+44>>2],at=br[Ur+8>>2],jt=br[Ur+48>>2],ao=br[Ur+12>>2],Eo=br[Ur+52>>2],Ao=br[Ur+16>>2],yo=br[Ur+56>>2],_o=br[Ur+20>>2],$o=br[Ur+60>>2],Do=br[Ur+24>>2],Fo=br[(it=Ur- -64|0)>>2],No=br[Ur+28>>2],Go=br[Ur+68>>2],Xo=br[Ur+32>>2],In=br[Ur+72>>2],Wr=br[Ur>>2],br[zr+36>>2]=br[Ur+36>>2]+br[Ur+76>>2],br[zr+32>>2]=Xo+In,br[zr+28>>2]=No+Go,br[zr+24>>2]=Do+Fo,br[zr+20>>2]=_o+$o,br[zr+16>>2]=Ao+yo,br[zr+12>>2]=ao+Eo,br[zr+8>>2]=at+jt,br[zr+4>>2]=ft+Kt,br[zr>>2]=ot+Wr,ot=br[Ur+40>>2],ft=br[Ur+4>>2],Kt=br[Ur+44>>2],at=br[Ur+8>>2],jt=br[Ur+48>>2],ao=br[Ur+12>>2],Eo=br[Ur+52>>2],Ao=br[Ur+16>>2],yo=br[Ur+56>>2],_o=br[Ur+20>>2],$o=br[Ur+60>>2],Do=br[Ur+24>>2],it=br[it>>2],Fo=br[Ur+28>>2],No=br[Ur+68>>2],Go=br[Ur+32>>2],Xo=br[Ur+72>>2],In=br[Ur>>2],br[zr+76>>2]=br[Ur+76>>2]-br[Ur+36>>2],br[zr+72>>2]=Xo-Go,br[zr+68>>2]=No-Fo,br[zr- -64>>2]=it-Do,br[zr+60>>2]=$o-_o,br[zr+56>>2]=yo-Ao,br[zr+52>>2]=Eo-ao,br[zr+48>>2]=jt-at,br[zr+44>>2]=Kt-ft,br[zr+40>>2]=ot-In,ot=br[Ur+84>>2],br[zr+80>>2]=br[Ur+80>>2],br[zr+84>>2]=ot,ot=br[Ur+92>>2],br[zr+88>>2]=br[Ur+88>>2],br[zr+92>>2]=ot,ot=br[Ur+100>>2],br[zr+96>>2]=br[Ur+96>>2],br[zr+100>>2]=ot,ot=br[Ur+108>>2],br[zr+104>>2]=br[Ur+104>>2],br[zr+108>>2]=ot,ot=br[Ur+116>>2],br[zr+112>>2]=br[Ur+112>>2],br[zr+116>>2]=ot,ns(zr+120|0,Ur+120|0,1696)}function Mo(zr,Ur,Wr){var ot,it,ft,Kt,at,jt,ao,Eo,Ao,yo,_o,$o,Do=0,Fo=0,No=0,Go=0,Xo=0;Do=br[Ur+12>>2],Fo=br[Ur+8>>2],No=br[Ur+4>>2],ot=On+-64&-64,Ur=br[Ur>>2],br[ot>>2]=br[35760+((255&Ur)<<2)>>2],br[ot+4>>2]=br[35760+(No>>>6&1020)>>2],br[ot+8>>2]=br[35760+(Fo>>>14&1020)>>2],br[ot+12>>2]=br[35760+(Do>>>22&1020)>>2],br[ot+16>>2]=br[35760+((255&No)<<2)>>2],br[ot+20>>2]=br[35760+(Fo>>>6&1020)>>2],br[ot+24>>2]=br[35760+(Do>>>14&1020)>>2],br[ot+28>>2]=br[35760+(Ur>>>22&1020)>>2],br[ot+32>>2]=br[35760+((255&Fo)<<2)>>2],br[ot+36>>2]=br[35760+(Do>>>6&1020)>>2],br[ot+40>>2]=br[35760+(Ur>>>14&1020)>>2],br[ot+44>>2]=br[35760+(No>>>22&1020)>>2],br[ot+48>>2]=br[35760+((255&Do)<<2)>>2],br[ot+52>>2]=br[35760+(Ur>>>6&1020)>>2],br[ot+56>>2]=br[35760+(No>>>14&1020)>>2],br[ot+60>>2]=br[35760+(Fo>>>22&1020)>>2],Ur=br[ot+12>>2],Do=br[ot>>2],Fo=br[ot+4>>2],No=br[ot+8>>2],it=br[ot+28>>2],ft=br[ot+16>>2],Kt=br[ot+20>>2],at=br[ot+24>>2],jt=br[ot+44>>2],ao=br[ot+32>>2],Eo=br[ot+36>>2],Ao=br[ot+40>>2],yo=br[Wr>>2],_o=br[Wr+4>>2],$o=br[Wr+8>>2],Go=zr,Xo=br[Wr+12>>2]^br[ot+48>>2]^ga(br[ot+52>>2],8)^ga(br[ot+56>>2],16)^ga(br[ot+60>>2],24),br[Go+12>>2]=Xo,Go=zr,Xo=ga(Eo,8)^ao^ga(Ao,16)^ga(jt,24)^$o,br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|lt[zr+25|0]|lt[zr+24|0]|lt[zr+23|0]|lt[zr+22|0]|lt[zr+21|0]|lt[zr+20|0]|lt[zr+19|0]|lt[zr+18|0]|lt[zr+17|0]|lt[zr+16|0]|lt[zr+15|0]|lt[zr+14|0]|lt[zr+13|0]|lt[zr+12|0]|lt[zr+11|0]|lt[zr+10|0]|lt[zr+9|0]|lt[zr+8|0]|lt[zr+7|0]|lt[zr+6|0]|lt[zr+5|0]|lt[zr+4|0]|lt[zr+3|0]|lt[zr+2|0]|lt[zr+1|0]|1^lt[0|zr])-1&256||(Wr=Vl(Ur,32)?-1:0),On=ot+160|0,Wr}function Jo(zr,Ur){var Wr,ot,it,ft,Kt,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0;(at=br[zr+56>>2])|(jt=br[zr+60>>2])&&(Vt[(Eo=zr- -64|0)+at|0]=1,!((Fo=at+1|0)?jt:jt+1|0)&Fo>>>0<=15&&q0(65+(zr+at|0)|0,0,15-at|0),Vt[zr+80|0]=1,IA(zr,Eo,16,0)),Fo=br[zr+52>>2],$o=br[zr+48>>2],Eo=br[zr+44>>2],at=br[zr+24>>2],Ao=br[zr+28>>2]+(at>>>26|0)|0,ao=br[zr+32>>2]+(Ao>>>26|0)|0,Wr=br[zr+36>>2]+(ao>>>26|0)|0,jt=(_o=(at=(at=(67108863&at)+((yo=br[zr+20>>2]+w0(Wr>>>26|0,5)|0)>>>26|0)|0)&(Ao=(ao=(Kt=(67108863&Wr)+((ft=(ot=67108863&ao)+((it=(Do=67108863&Ao)+((yo=at+((jt=5+(_o=67108863&yo)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)-67108864|0)>>31)|yo&(ao=67108863&(yo=(ao>>>31|0)-1|0)))<<26|jt&ao|Ao&_o)+br[zr+40>>2]|0,Vt[0|Ur]=jt,Vt[Ur+1|0]=jt>>>8,Vt[Ur+2|0]=jt>>>16,Vt[Ur+3|0]=jt>>>24,_o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[zr+12|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+13|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+14|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+15|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+16|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+17|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+18|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+19|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+20|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+21|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+22|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+23|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+24|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+25|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+26|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+27|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+28|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+29|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+30|0]|lt[ot+15|0],Vt[ot+15|0]=lt[zr+31|0]|lt[ot+15|0],it=(lt[ot+15|0]<<23)-8388608>>31),On=ot+16|0,0|it}function Cn(zr,Ur,Wr,ot,it){var ft=0,Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0;e:{if((0|ot)==1|ot>>>0>1)br[9392]=22;else{On=ot=On-128|0,br[ot- -64>>2]=0,br[ot+56>>2]=0,br[ot+60>>2]=0,br[ot+48>>2]=0,br[ot+52>>2]=0,br[ot+40>>2]=0,br[ot+44>>2]=0,br[ot+32>>2]=0,br[ot+36>>2]=0,br[ot+24>>2]=0,br[ot+28>>2]=0,br[ot+16>>2]=0,br[ot+20>>2]=0,ft=gu(zr),br[ot+28>>2]=ft,br[ot+44>>2]=ft,br[ot+12>>2]=ft,Kt=tu(ft),br[ot+40>>2]=Kt,at=tu(ft),br[ot+24>>2]=at,jt=tu(ft),br[ot+8>>2]=jt;r:if(!jt|!Kt|!at||!(ft=tu(ft)))$l(Kt),$l(at),$l(jt),zr=-22;else{if(zr=jo(ot+8|0,zr,it)){$l(br[ot+40>>2]),$l(br[ot+24>>2]),$l(br[ot+8>>2]),$l(ft);break r}jt=br[ot+28>>2],ao=br[ot+24>>2],zr=br[ot+60>>2],Eo=br[ot+52>>2],Ao=br[ot+48>>2],Jl(ft,Kt=br[ot+12>>2]),(at=tu(Kt))?(br[ot+100>>2]=0,br[ot+104>>2]=0,br[ot+92>>2]=0,br[ot+96>>2]=0,br[ot+88>>2]=jt,br[ot+84>>2]=ao,br[ot+80>>2]=Wr,br[ot+76>>2]=Ur,br[ot+72>>2]=Kt,br[ot+68>>2]=at,br[ot+124>>2]=0,br[ot+120>>2]=zr,br[ot+116>>2]=zr,br[ot+112>>2]=Eo,br[ot+108>>2]=Ao,(zr=_d(ot+68|0,it))||U0(ft,at,Kt),o0(at,Kt),$l(at)):zr=-22,$l(br[ot+40>>2]),$l(br[ot+24>>2]),zr||(zr=Ju(ft,br[ot+8>>2],br[ot+12>>2])?-35:0),$l(ft),$l(br[ot+8>>2])}if(On=ot+128|0,Ur=zr,!zr)break e;(0|zr)==-35&&(br[9392]=28)}Ur=-1}return Ur}function Dn(zr,Ur){var Wr,ot,it,ft,Kt,at,jt,ao=0,Eo=0;ot=br[Ur+32>>2],it=br[Ur+28>>2],ft=br[Ur+24>>2],Kt=br[Ur+20>>2],at=br[Ur+16>>2],jt=br[Ur+12>>2],ao=br[Ur+4>>2],Eo=br[Ur>>2],Wr=br[Ur+36>>2],Ur=br[Ur+8>>2],Eo=w0((ot+(it+(ft+(Kt+(at+(jt+((ao+(Eo+(w0(Wr,19)+16777216>>>25|0)>>26)>>25)+Ur>>26)>>25)>>26)>>25)>>26)>>25)>>26)+Wr>>25,19)+Eo|0,Vt[0|zr]=Eo,Vt[zr+2|0]=Eo>>>16,Vt[z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-1;if(!(!((!jt&at>>>0>=3|(0|jt)!=0)&ao>>>0>8191)|(0|ot)==(0|Ao)))return(0|Eo)==1?(ft=ao>>>10|0,On=zr=On+-64|0,Ao&&Jl(Ao,Ur),(Wr=tu(Ur))?(br[zr+36>>2]=0,br[zr+40>>2]=0,br[zr+28>>2]=0,br[zr+32>>2]=0,br[zr+24>>2]=16,br[zr+20>>2]=Kt,br[zr+16>>2]=it,br[zr+12>>2]=ot,br[zr+8>>2]=Ur,br[zr+4>>2]=Wr,br[zr+60>>2]=0,br[zr+56>>2]=1,br[zr+52>>2]=1,br[zr+48>>2]=ft,br[zr+44>>2]=at,(ot=_d(zr+4|0,1))|!Ao||U0(Ao,Wr,Ur),o0(Wr,Ur),$l(Wr)):ot=-22,On=zr- -64|0,ot?-1:0):(br[9392]=28,-1)}return br[9392]=28,-1}function I0(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){var Ao;if(Ao=q0(zr,0,Ur),(0|Wr)==1|Wr>>>0>1)return br[9392]=22,-1;if(!(!Wr&Ur>>>0<=15)){if(!(!(ft|jt)&ao>>>0<2147483649))return br[9392]=22,-1;if(!(!(!!(at|jt)&ao>>>0>8191)|(0|ot)==(0|Ao)))return(0|Eo)==2?(ft=ao>>>10|0,On=zr=On+-64|0,Ao&&Jl(Ao,Ur),(Wr=tu(Ur))?(br[zr+36>>2]=0,br[zr+40>>2]=0,br[zr+28>>2]=0,br[zr+32>>2]=0,br[zr+24>>2]=16,br[zr+20>>2]=Kt,br[zr+16>>2]=it,br[zr+12>>2]=ot,br[zr+8>>2]=Ur,br[zr+4>>2]=Wr,br[zr+60>>2]=0,br[zr+56>>2]=1,br[zr+52>>2]=1,br[zr+48>>2]=ft,br[zr+44>>2]=at,(ot=_d(zr+4|0,2))|!Ao||U0(Ao,Wr,Ur),o0(Wr,Ur),$l(Wr)):ot=-22,On=zr- -64|0,ot?-1:0):(br[9392]=28,-1)}return br[9392]=28,-1}function $0(zr,Ur,Wr,ot,it,ft,Kt){var at,jt,ao,Eo,Ao=0;return On=at=On-352|0,Zl(at,ft,Kt,0),!((!it&ot>>>0>zr-Wr>>>0|(0|it)!=0)&zr>>>0>Wr>>>0)&(!it&ot>>>0<=Wr-zr>>>0|zr>>>0>=Wr>>>0)||(Wr=sA(zr,Wr,ot)),br[at+56>>2]=0,br[at+60>>2]=0,br[at+48>>2]=0,br[at+52>>2]=0,br[at+40>>2]=0,br[at+44>>2]=0,br[at+32>>2]=0,br[at+36>>2]=0,(ao=!((Kt=(Ao=!it&ot>>>0>=32|(0|it)!=0)?32:ot)|(Ao=Ao?0:it)))||U0(at- -64|0,Wr,Kt),Cp(jt=at+32|0,jt,Eo=Kt+32|0,Eo>>>0<32?Ao+1|0:Ao,ft=ft+16|0,at),pu(at+96|0,jt),ao||U0(zr,at- -64|0,Kt),o0(at+32|0,64),!it&ot>>>0>=33|it&&Vu(zr+Kt|0,Wr+Kt|0,ot-Kt|0,it-(Ao+(ot>>>0>>0)|0)|0,ft,1,0,at),o0(at,32),W0(Wr=at+96|0,zr,ot,it),hu(Wr,Ur),o0(Wr,256),On=at+352|0,0}function x0(zr,Ur,Wr,ot,it,ft,Kt){var at,jt,ao,Eo,Ao=0;return On=at=On-352|0,mu(at,ft,Kt,0),!((!it&ot>>>0>zr-Wr>>>0|(0|it)!=0)&zr>>>0>Wr>>>0)&(!it&ot>>>0<=Wr-zr>>>0|zr>>>0>=Wr>>>0)||(Wr=sA(zr,Wr,ot)),br[at+56>>2]=0,br[at+60>>2]=0,br[at+48>>2]=0,br[at+52>>2]=0,br[at+40>>2]=0,br[at+44>>2]=0,br[at+32>>2]=0,br[at+36>>2]=0,(ao=!((Kt=(Ao=!it&ot>>>0>=32|(0|it)!=0)?32:ot)|(Ao=Ao?0:it)))||U0(at- -64|0,Wr,Kt),xp(jt=at+32|0,jt,Eo=Kt+32|0,Eo>>>0<32?Ao+1|0:Ao,ft=ft+16|0,at),pu(at+96|0,jt),ao||U0(zr,at- -64|0,Kt),o0(at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r,Vt[Kt+77|0]=Wr>>>8,Vt[Kt+78|0]=Wr>>>16,Vt[Kt+79|0]=Wr>>>24,U0(Wr=Kt+80|0,Kt+288|0,208),Cu(Wr,Kt+76|0,4,0),cA(Wr,Kt+32|0),Wr=br[Kt+60>>2],br[Kt+24>>2]=br[Kt+56>>2],br[Kt+28>>2]=Wr,Wr=br[Kt+52>>2],br[Kt+16>>2]=br[Kt+48>>2],br[Kt+20>>2]=Wr,Wr=br[Kt+44>>2],br[Kt+8>>2]=br[Kt+40>>2],br[Kt+12>>2]=Wr,Wr=br[Kt+36>>2],br[Kt>>2]=br[Kt+32>>2],br[Kt+4>>2]=Wr,U0(Wr=zr+it|0,Kt,(zr=ft-zr|0)>>>0>=32?32:zr),ft>>>0>(zr=Ur<<5)>>>0;);o0(Kt+288|0,208),On=Kt+496|0}function Tp(zr){var Ur=0,Wr=0,ot=0;if(!zr)return-25;if(!br[zr>>2])return-1;if(Ur=-2,!(Sl[zr+4>>2]<16)&&(br[zr+8>>2]||(Ur=-18,!br[zr+12>>2]))){if(Wr=br[zr+20>>2],!br[zr+16>>2])return Wr?-19:-6;if(Ur=-6,!(Wr>>>0<8)&&(br[zr+24>>2]||(Ur=-20,!br[zr+28>>2]))&&(br[zr+32>>2]||(Ur=-21,!br[zr+36>>2]))){if(!(Wr=br[zr+48>>2]))return-16;if(Ur=-17,!(Wr>>>0>16777215||(Ur=-14,(ot=br[zr+44>>2])>>>0<8||(Ur=-15,ot>>>0>2097152||(Ur=-14,Wr<<3>>>0>ot>>>0))))){if(!br[zr+40>>2])return-12;if(!(zr=br[zr+52>>2]))return-28;Ur=zr>>>0>16777215?-29:0}}}return Ur}function r2(zr,Ur,Wr,ot,it,ft){var Kt,at,jt=0;return On=Kt=On-32|0,jt=-1,(at=Wr>>>0<32)&!ot||(L2(Kt,32,0,it,ft),Bp(Ur+16|0,Ur+32|0,Wr-32|0,ot-at|0,Kt)||(Fp(zr,Ur,Wr,ot,it,ft),Vt[zr+24|0]=0,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ft,Kt,at=0;return On=ft=On+-64|0,!Wr&(Kt=gu(zr))>>>0<128?(br[ft+60>>2]=0,br[ft+52>>2]=0,br[ft+56>>2]=0,br[ft+44>>2]=0,br[ft+48>>2]=0,Wr=0,Kt&&(Wr=Kt,(1|Kt)>>>0<65536||(Wr=Kt)),!(at=tu(Wr))|!(3<[at-4|0])||q0(at,0,Wr),at?(br[ft+36>>2]=0,br[ft+40>>2]=0,br[ft+12>>2]=at,br[ft+20>>2]=at,br[ft+24>>2]=Kt,br[ft+4>>2]=at,br[ft+16>>2]=Kt,br[ft+28>>2]=0,br[ft+32>>2]=0,br[ft+8>>2]=Kt,jo(ft+4|0,zr,it)?(br[9392]=28,zr=-1):zr=br[ft+44>>2]!=(0|Ur)|br[ft+48>>2]!=(ot>>>10|0),$l(at)):zr=-1):(br[9392]=28,zr=-1),On=ft- -64|0,zr}function nA(zr,Ur,Wr,ot){var it,ft=0;return On=it=On-208|0,br[it+72>>2]=0,br[it+76>>2]=0,ft=br[8691],br[it+8>>2]=br[8690],br[it+12>>2]=ft,ft=br[8693],br[it+16>>2]=br[8692],br[it+20>>2]=ft,ft=br[8695],br[it+24>>2]=br[8694],br[it+28>>2]=ft,ft=br[8697],br[it+32>>2]=br[8696],br[it+36>>2]=ft,ft=br[8699],br[it+40>>2]=br[8698],br[it+44>>2]=ft,ft=br[8701],br[it+48>>2]=br[8700],br[it+52>>2]=ft,ft=br[8703],br[it+56>>2]=br[8702],br[it+60>>2]=ft,br[it+64>>2]=0,br[it+68>>2]=0,ft=br[8689],br[it>>2]=br[8688],br[it+4>>2]=ft,Ol(it,Ur,Wr,ot),eu(it,zr),On=it+208|0,0}function iA(zr,Ur){var Wr=0,ot=0;e:if(ot=255&Ur){if(3&zr)for(;;){if(!(Wr=lt[0|zr])|(0|Wr)==(255&Ur))break e;if(!(3&(zr=zr+1|0)))break}r:if(!((-1^(Wr=br[zr>>2]))&Wr-16843009&-2139062144))for(ot=w0(ot,16843009);;){if((-1^(Wr^=ot))&Wr-16843009&-2139062144)break r;if(Wr=br[zr+4>>2],zr=zr+4|0,Wr-16843009&(-1^Wr)&-2139062144)break}for(;Wr=zr,(ot=lt[0|zr])&&(zr=zr+1|0,(0|ot)!=(255&Ur)););zr=Wr}else zr=gu(zr)+zr|0;return lt[0|zr]==(255&Ur)?zr:0}function Vl(zr,Ur){var Wr,ot=0,it=0,ft=0;if(Vt[15+(Wr=On-16|0)|0]=0,Ur){if(it=3&Ur,Ur>>>0>=4)for(ft=-4&Ur,Ur=0;Vt[Wr+15|0]=lt[zr+ot|0]|lt[Wr+15|0],Vt[Wr+15|0]=lt[(1|ot)+zr|0]|lt[Wr+15|0],Vt[Wr+15|0]=lt[(2|ot)+zr|0]|lt[Wr+15|0],Vt[Wr+15|0]=lt[(3|ot)+zr|0]|lt[Wr+15|0],ot=ot+4|0,(0|ft)!=(0|(Ur=Ur+4|0)););if(it)for(Ur=0;Vt[Wr+15|0]=lt[zr+ot|0]|lt[Wr+15|0],ot=ot+1|0,(0|it)!=(0|(Ur=Ur+1|0)););}return lt[Wr+15|0]-1>>>8&1}function Du(zr){var Ur=0;return br[64+(zr|=0)>>2]=0,br[zr+68>>2]=0,br[zr+72>>2]=0,br[zr+76>>2]=0,Ur=br[8689],br[zr>>2]=br[8688],br[zr+4>>2]=Ur,Ur=br[8691],br[zr+8>>2]=br[8690],br[zr+12>>2]=Ur,Ur=br[8693],br[zr+16>>2]=br[8692],br[zr+20>>2]=Ur,Ur=br[8695],br[zr+24>>2]=br[8694],br[zr+28>>2]=Ur,Ur=br[8697],br[zr+32>>2]=br[8696],br[zr+36>>2]=Ur,Ur=br[8699],br[zr+40>>2]=br[8698],br[zr+44>>2]=Ur,Ur=br[8701],br[zr+48>>2]=br[8700],br[zr+52>>2]=Ur,Ur=br[8703],br[zr+56>>2]=br[8702],br[zr+60>>2]=Ur,0}function Up(zr){return((127&(-1^lt[zr+31|0])|lt[zr+1|0]<[zr+2|0]<[zr+3|0]<[zr+4|0]<[zr+5|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1}function Yo(zr,Ur,Wr){var ot=0,it=0,ft=0,Kt=0;return it=31&(ft=Kt=63&Wr),ft=ft>>>0>=32?-1>>>it|0:(ot=-1>>>it|0)|(1<>>0>=32?(ot=ft<>>32-it|ot<>>0>=32?(ot=-1<>>32-ot,zr&=Wr,Ur&=ot,ot=31&it,it>>>0>=32?(Wr=0,zr=Ur>>>ot|0):(Wr=Ur>>>ot|0,zr=((1<>>ot),Io=Wr|ft,zr|Kt}function n2(zr,Ur,Wr,ot,it,ft){zr|=0,Ur|=0,Wr|=0;var Kt=0,at=0;e:r:{t:{if(!(!(it|=0)&(ot|=0)>>>0<64||(at=1+(it=it-1|0)|0,Kt=it,!(ot=(it=ot+-64|0)>>>0<4294967232?at:Kt)&it>>>0>4294967231|ot))){if(!pA(Kt=Wr,Wr=Wr- -64|0,it,ot,ft|=0,0))break t;zr&&q0(zr,0,it)}if(ot=-1,!Ur)break r;br[Ur>>2]=0,br[Ur+4>>2]=0,ot=-1;break e}Ur&&(br[Ur>>2]=it,br[Ur+4>>2]=ot),ot=0,zr&&sA(zr,Wr,it)}return 0|ot}function i2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao){var Eo,Ao,yo;return On=Eo=On-352|0,Uu(yo=Eo+32|0,64,0,jt,ao),pu(Ao=Eo+96|0,yo),o0(yo,64),W0(Ao,ft,Kt,at),W0(Ao,35648,0-Kt&15,0),W0(Ao,Ur,Wr,ot),W0(Ao,35648,0-Wr&15,0),br[Eo+24>>2]=Kt,br[Eo+28>>2]=at,W0(Ao,ft=Eo+24|0,8,0),br[Eo+24>>2]=Wr,br[Eo+28>>2]=ot,W0(Ao,ft,8,0),hu(Ao,Eo),o0(Ao,256),ft=rs(Eo,it),o0(Eo,16),zr&&(ft?(q0(zr,0,Wr),ft=-1):(Yu(zr,Ur,Wr,ot,jt,1,ao),ft=0)),On=Eo+352|0,ft}function a2(zr,Ur,Wr,ot,it,ft){var Kt,at;return zr|=0,Ur|=0,Wr|=0,ot|=0,ft|=0,On=Kt=On-32|0,at=lt[0|(it|=0)]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,it=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,br[Kt+24>>2]=0,br[Kt+28>>2]=0,br[Kt+16>>2]=at,br[Kt+20>>2]=it,br[Kt+8>>2]=0,br[Kt+12>>2]=0,br[Kt>>2]=Wr,br[Kt+4>>2]=ot,Ur-65>>>0<=4294967246?(br[9392]=28,zr=-1):zr=ep(zr,Ur,0,0,0,ft,32,Kt,Kt+16|0),On=Kt+32|0,0|zr}function s2(zr,Ur,Wr,ot,it){var ft,Kt;return zr|=0,Ur|=0,Wr|=0,ot|=0,On=ft=On-512|0,Wn(Kt=ft+32|0,it|=0,32),vu(Kt,Ur,Wr,ot),Tu(Kt,ft+448|0),Ur=br[ft+476>>2],br[ft+24>>2]=br[ft+472>>2],br[ft+28>>2]=Ur,Ur=br[ft+468>>2],br[ft+16>>2]=br[ft+464>>2],br[ft+20>>2]=Ur,Ur=br[ft+460>>2],br[ft+8>>2]=br[ft+456>>2],br[ft+12>>2]=Ur,Ur=br[ft+452>>2],br[ft>>2]=br[ft+448>>2],br[ft+4>>2]=Ur,Ur=lA(zr,ft),Wr=Ju(ft,zr,32),On=ft+512|0,((0|zr)==(0|ft)?-1:Ur)|Wr}function l2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao){var Eo,Ao,yo;return On=Eo=On-352|0,RA(yo=Eo+32|0,64,0,jt,ao),pu(Ao=Eo+96|0,yo),o0(yo,64),W0(Ao,ft,Kt,at),br[Eo+24>>2]=Kt,br[Eo+28>>2]=at,W0(Ao,ft=Eo+24|0,8,0),W0(Ao,Ur,Wr,ot),br[Eo+24>>2]=Wr,br[Eo+28>>2]=ot,W0(Ao,ft,8,0),hu(Ao,Eo),o0(Ao,256),ft=rs(Eo,it),o0(Eo,16),zr&&(ft?(q0(zr,0,Wr),ft=-1):(Vu(zr,Ur,Wr,ot,jt,1,0,ao),ft=0)),On=Eo+352|0,ft}function u2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){var Ao,yo,_o;return On=Ao=On-336|0,Uu(_o=Ao+16|0,64,0,ao,Eo),pu(yo=Ao+80|0,_o),o0(_o,64),W0(yo,Kt,at,jt),W0(yo,35648,0-at&15,0),Yu(zr,ot,it,ft,ao,1,Eo),W0(yo,zr,it,ft),W0(yo,35648,0-it&15,0),br[Ao+8>>2]=at,br[Ao+12>>2]=jt,W0(yo,zr=Ao+8|0,8,0),br[Ao+8>>2]=it,br[Ao+12>>2]=ft,W0(yo,zr,8,0),hu(yo,Ur),o0(yo,256),Wr&&(br[Wr>>2]=16,br[Wr+4>>2]=0),On=Ao+336|0,0}function Lp(zr,Ur){var Wr,ot=0,it=0,ft=0,Kt=0,at=0;e:if(!(((Wr=lt[0|zr])-58&255)>>>0<246)){for(ot=Wr,it=zr;;){if(Kt=it,ft>>>0>429496729||(ot=(255&ot)-48|0)>>>0>(-1^(ft=w0(ft,10)))>>>0)break e;if(ft=ft+ot|0,!(((ot=lt[0|(it=it+1|0)])-58&255)>>>0>245))break}(0|Wr)==48&(0|zr)!=(0|Kt)|(0|zr)==(0|it)||(br[Ur>>2]=ft,at=it)}return at}function qu(zr){var Ur=0,Wr=0,ot=0,it=0;Ur=65,Wr=1024;e:{r:{if((0|(ot=255&zr))!=lt[1024])for(ot=w0(ot,16843009);;){if((-1^(it=ot^br[Wr>>2]))&it-16843009&-2139062144)break r;if(Wr=Wr+4|0,!((Ur=Ur-4|0)>>>0>3))break}if(!Ur)break e}for(zr&=255;;){if((0|zr)==lt[0|Wr])return Wr;if(Wr=Wr+1|0,!(Ur=Ur-1|0))break}}return 0}function d2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){var Ao,yo,_o;return On=Ao=On-336|0,RA(_o=Ao+16|0,64,0,ao,Eo),pu(yo=Ao+80|0,_o),o0(_o,64),W0(yo,Kt,at,jt),br[Ao+8>>2]=at,br[Ao+12>>2]=jt,W0(yo,Kt=Ao+8|0,8,0),Vu(zr,ot,it,ft,ao,1,0,Eo),W0(yo,zr,it,ft),br[Ao+8>>2]=it,br[Ao+12>>2]=ft,W0(yo,Kt,8,0),hu(yo,Ur),o0(yo,256),Wr&&(br[Wr>>2]=16,br[Wr+4>>2]=0),On=Ao+336|0,0}function A2(zr,Ur,Wr,ot,it,ft){return!ot&Wr>>>0>=32|ot?(Fp(zr,Ur,Wr,ot,it,ft),r1(zr+16|0,zr+32|0,Wr-32|0,ot-(Wr>>>0<32)|0,zr),Vt[zr+8|0]=0,Vt[zr+9|0]=0,Vt[zr+10|0]=0,Vt[zr+11|0]=0,Vt[zr+12|0]=0,Vt[zr+13|0]=0,Vt[zr+14|0]=0,Vt[zr+15|0]=0,Vt[0|zr]=0,Vt[zr+1|0]=0,Vt[zr+2|0]=0,Vt[zr+3|0]=0,Vt[zr+4|0]=0,Vt[zr+5|0]=0,Vt[zr+6|0]=0,Vt[zr+7|0]=0,zr=0):zr=-1,zr}function g2(zr,Ur,Wr,ot,it,ft){Ur|=0,it|=0,ft|=0;var Kt,at=0;return On=Kt=On-16|0,AA(zr|=0,Kt+8|0,sA(zr- -64|0,Wr|=0,ot|=0),ot,it,ft,0),br[Kt+12>>2]|br[Kt+8>>2]!=64?(Ur&&(br[Ur>>2]=0,br[Ur+4>>2]=0),q0(zr,0,ot- -64|0),at=-1):Ur&&(br[Ur>>2]=ot- -64,br[Ur+4>>2]=it-((ot>>>0<4294967232)-1|0)),On=Kt+16|0,0|at}function gu(zr){var Ur=0,Wr=0,ot=0;e:{r:if(3&(Ur=zr)){if(!lt[0|Ur])return 0;for(;;){if(!(3&(Ur=Ur+1|0)))break r;if(!lt[0|Ur])break}break e}for(;Wr=Ur,Ur=Ur+4|0,!((-1^(ot=br[Wr>>2]))&ot-16843009&-2139062144););for(;Wr=(Ur=Wr)+1|0,lt[0|Ur];);}return Ur-zr|0}function yp(zr,Ur){var Wr,ot=0,it=0,ft=0,Kt=0;return(Wr=qu(lt[0|Ur]))&&(ot=qu(lt[Ur+1|0]))&&(it=qu(lt[Ur+2|0]))&&(ft=qu(lt[Ur+3|0]))&&(Kt=qu(lt[Ur+4|0]))?(br[zr>>2]=Wr-1024|ot-1024<<6|it-1024<<12|ft-1024<<18|Kt-1024<<24,Ur+5|0):(br[zr>>2]=0,0)}function p2(zr,Ur,Wr){var ot;for(br[12+(ot=On-16|0)>>2]=zr,br[ot+8>>2]=Ur,zr=0,br[ot+4>>2]=0;br[ot+4>>2]=br[ot+4>>2]|lt[br[ot+12>>2]+zr|0]^lt[br[ot+8>>2]+zr|0],Ur=1|zr,br[ot+4>>2]=br[ot+4>>2]|lt[Ur+br[ot+12>>2]|0]^lt[Ur+br[ot+8>>2]|0],(0|Wr)!=(0|(zr=zr+2|0)););return(br[ot+4>>2]-1>>>8&1)-1|0}function h2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){var Ao=0,yo=0,_o=0;return yo=-1,(Ao=ot>>>0<32)&!it||!(Ao=it-Ao|0)&(_o=ot-32|0)>>>0>4294967263|Ao|!at&Kt>>>0>4294967263|at||(yo=0|Nl[br[Eo>>2]](zr,Wr,_o,(Wr+ot|0)-32|0,32,ft,Kt,jt,ao)),Ur&&(br[Ur>>2]=yo?0:ot-32|0,br[Ur+4>>2]=yo?0:it-(ot>>>0<32)|0),yo}function f2(zr,Ur){var Wr,ot=0,it=0,ft=0;On=Wr=On-896|0,Bu(ot=Wr+848|0,Ur),Bu(it=Wr+800|0,Ur+32|0),XA(ft=Wr+320|0,ot),XA(Ur=Wr+160|0,it),Ho(ot=Wr+640|0,Ur),_l(Ur=Wr+480|0,ft,ot),ns(Wr,Ur,ot=Wr+600|0),ns(Wr+40|0,it=Wr+520|0,ft=Wr+560|0),ns(Wr+80|0,ft,ot),ns(Wr+120|0,Ur,it),Fu(zr,Wr),On=Wr+896|0}function m2(zr){var Ur=0,Wr=0,ot=0,it=0;for(Ur=1;Ur=lt[0|(Wr=zr+ot|0)]+Ur|0,Vt[0|Wr]=Ur,Ur=lt[0|(Wr=(1|ot)+zr|0)]+(Ur>>>8|0)|0,Vt[0|Wr]=Ur,Ur=lt[0|(Wr=(2|ot)+zr|0)]+(Ur>>>8|0)|0,Vt[0|Wr]=Ur,Ur=lt[0|(Wr=(3|ot)+zr|0)]+(Ur>>>8|0)|0,Vt[0|Wr]=Ur,Ur=Ur>>>8|0,ot=ot+4|0,(0|(it=it+4|0))!=4;);}function y2(zr,Ur,Wr,ot,it,ft,Kt){var at;return On=at=On-16|0,zr=q0(zr,0,128),!(ot|ft)&Kt>>>0<2147483649?(!ft&it>>>0>=3|(0|ft)!=0)&Kt>>>0>8191?(Jl(at,16),zr=tp(it,Kt>>>10|0,Ur,Wr,at,zr,1)?-1:0):(br[9392]=28,zr=-1):(br[9392]=22,zr=-1),On=at+16|0,zr}function b2(zr,Ur){var Wr=0;4&Ur&&((Ur=br[zr>>2])&&o0(br[Ur+4>>2],br[zr+16>>2]<<10),(Ur=br[zr+4>>2])&&o0(Ur,br[zr+20>>2]<<3)),$l(br[zr+4>>2]),br[zr+4>>2]=0,(Ur=br[zr>>2])&&(Wr=br[Ur>>2])&&$l(Wr),$l(Ur),br[zr>>2]=0}function I2(zr){var Ur=0,Wr=0,ot=0,it=0,ft=0,Kt=0,at=0,jt=0;for(Ur=32,Wr=1;jt=(it=lt[(ot=Ur-2|0)+zr|0])-(ft=lt[ot+2928|0])>>8&(Ur=((Kt=lt[2928+(Ur=Ur-1|0)|0])^(at=lt[zr+Ur|0]))-1>>8&Wr)|255&(at-Kt>>>8&Wr|jt),Wr=Ur&(it^ft)-1>>8,Ur=ot;);return(255&jt)!=0}function C2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return!it&ot>>>0>4294967263|(0|it)!=0|!at&Kt>>>0>=4294967264|(0|at)!=0?(El(),Qs()):(zr=0|Nl[br[Eo>>2]](zr,zr+ot|0,32,Wr,ot,ft,Kt,jt,ao),Ur&&(ot=(Wr=ot+32|0)>>>0<32?it+1|0:it,br[Ur>>2]=zr?0:Wr,br[Ur+4>>2]=zr?0:ot)),zr}function v2(zr,Ur,Wr,ot,it,ft,Kt){var at;return On=at=On-16|0,zr=q0(zr,0,128),!(ot|ft)&Kt>>>0<2147483649?!!(it|ft)&Kt>>>0>8191?(Jl(at,16),zr=tp(it,Kt>>>10|0,Ur,Wr,at,zr,2)?-1:0):(br[9392]=28,zr=-1):(br[9392]=22,zr=-1),On=at+16|0,zr}function bp(zr){var Ur=0;return br[32+(zr|=0)>>2]=0,br[zr+36>>2]=0,Ur=br[8601],br[zr>>2]=br[8600],br[zr+4>>2]=Ur,Ur=br[8603],br[zr+8>>2]=br[8602],br[zr+12>>2]=Ur,Ur=br[8605],br[zr+16>>2]=br[8604],br[zr+20>>2]=Ur,Ur=br[8607],br[zr+24>>2]=br[8606],br[zr+28>>2]=Ur,0}function E2(zr,Ur,Wr,ot,it,ft,Kt){var at,jt,ao=0,Eo=0;return On=at=On+-64|0,ao=-1,(jt=Wr>>>0<16)&!ot||Bn(Eo=at+32|0,Kt,ft)||Zl(at,35584,Eo,0)||(ao=wl(zr,Ur+16|0,Ur,Wr-16|0,ot-jt|0,it,at),o0(at,32)),On=at- -64|0,ao}function Oo(zr,Ur,Wr,ot){var it,ft,Kt,at,jt=0,ao=0;return at=w0(jt=Wr>>>16|0,ao=zr>>>16|0),jt=(65535&(ao=((Kt=w0(it=65535&Wr,ft=65535&zr))>>>16|0)+w0(ao,it)|0))+w0(jt,ft)|0,Io=(w0(Ur,Wr)+at|0)+w0(zr,ot)+(ao>>>16)+(jt>>>16)|0,65535&Kt|jt<<16}function Yu(zr,Ur,Wr,ot,it,ft,Kt){var at=0,jt=0;if(at=ot,!((((at=(jt=Wr+63|0)>>>0<63?at+1|0:at)>>>6|0)+((0|(at=(63&at)<<26|jt>>>6))!=0)|0)==1&ft>>>0>(jt=0-at|0)>>>0|(0|ot)==1|ot>>>0>1))return 0|Nl[br[8928]](zr,Ur,Wr,ot,it,ft,Kt);El(),Qs()}function xu(zr,Ur,Wr){var ot=0,it=0;if(!Wr)return 0;if(ot=lt[0|zr])e:{for(;;){if((0|(it=lt[0|Ur]))!=(0|ot)|!it||!(Wr=Wr-1|0))break e;if(Ur=Ur+1|0,ot=lt[zr+1|0],zr=zr+1|0,!ot)break}ot=0}else ot=0;return ot-lt[0|Ur]|0}function w2(zr,Ur,Wr,ot,it,ft,Kt){var at;return zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,On=at=On+-64|0,Bn(at+32|0,Kt|=0,ft|=0)?ft=-1:(ft=-1,mu(at,35664,at+32|0,0)||(ft=r2(zr,Ur,Wr,ot,it,at),o0(at,32))),On=at- -64|0,0|ft}function k2(zr,Ur,Wr,ot,it,ft,Kt){var at;return zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,On=at=On+-64|0,Bn(at+32|0,Kt|=0,ft|=0)?ft=-1:(ft=-1,mu(at,35664,at+32|0,0)||(ft=A2(zr,Ur,Wr,ot,it,at),o0(at,32))),On=at- -64|0,0|ft}function x2(zr,Ur,Wr,ot,it,ft,Kt){var at;if(On=at=On+-64|0,!ot&Wr>>>0<4294967280)return Bn(at+32|0,Kt,ft)?Kt=-1:(Kt=-1,Zl(at,35584,at+32|0,0)||(Kt=$0(zr+16|0,zr,Ur,Wr,ot,it,at),o0(at,32))),On=at- -64|0,Kt;El(),Qs()}function S2(zr,Ur){for(var Wr=0,ot=0,it=0,ft=0,Kt=0;ot=zr+it|0,Wr=lt[Ur+it|0]+(lt[0|ot]+Wr|0)|0,Vt[0|ot]=Wr,ft=(ot=1|it)+zr|0,Wr=lt[Ur+ot|0]+(lt[0|ft]+(Wr>>>8|0)|0)|0,Vt[0|ft]=Wr,Wr=Wr>>>8|0,it=it+2|0,(0|(Kt=Kt+2|0))!=32;);}function jp(zr,Ur){for(var Wr=0,ot=0,it=0,ft=0,Kt=0;Wr=(lt[0|(ot=zr+it|0)]-lt[Ur+it|0]|0)+Wr|0,Vt[0|ot]=Wr,Wr=(lt[0|(ft=(ot=1|it)+zr|0)]-lt[Ur+ot|0]|0)+(Wr>>8)|0,Vt[0|ft]=Wr,Wr>>=8,it=it+2|0,(0|(Kt=Kt+2|0))!=64;);}function Jl(zr,Ur){zr|=0;var Wr,ot=0,it=0,ft=0;if(On=Wr=On-16|0,Ur|=0)for(;Vt[Wr+15|0]=0,it=zr+ot|0,ft=0|Gl(36800,Wr+15|0,0),Vt[0|it]=ft,(0|(ot=ot+1|0))!=(0|Ur););On=Wr+16|0}function B2(zr,Ur,Wr,ot,it,ft,Kt){var at,jt,ao=0;return On=at=On-32|0,ao=-1,(jt=Wr>>>0<16)&!ot||OA(at,ft,Kt)||(ao=G0(zr,Ur+16|0,Ur,Wr-16|0,ot-jt|0,it,at),o0(at,32)),On=at+32|0,ao}function aA(zr){var Ur,Wr;return(zr=(Ur=br[8924])+(Wr=zr+7&-8)|0)>>>0<=Ur>>>0&&Wr||zr>>>0>x1()<<16>>>0&&!(0|Lu(0|zr))?(br[9392]=48,-1):(br[8924]=zr,Ur)}function Mu(zr,Ur){var Wr,ot,it;On=Wr=On-176|0,Ru(ot=Wr+96|0,Ur+80|0),ns(it=Wr+48|0,Ur,ot),ns(Wr,Ur+40|0,ot),Dn(zr,Wr),Dn(Wr+144|0,it),Vt[zr+31|0]=lt[zr+31|0]^lt[Wr+144|0]<<7,On=Wr+176|0}function _2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao){var Eo,Ao,yo=0,_o=0,$o=0;return On=Eo=On-16|0,yo=-1,Gp(Ao=Eo+4|0)||(_o=-1,$o=op(Ao,zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao),yo=Ep(Ao)?_o:$o),On=Eo+16|0,yo}function R2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo,Ao){return Wr&&(br[Wr>>2]=32,br[Wr+4>>2]=0),!jt&at>>>0<4294967264&!ft&it>>>0<=4294967263||(El(),Qs()),0|Nl[br[Ao>>2]](zr,Ur,32,ot,it,Kt,at,ao,Eo)}function sA(zr,Ur,Wr){var ot=0;if(zr>>>0>>0)return U0(zr,Ur,Wr);if(Wr)for(ot=zr+Wr|0,Ur=Ur+Wr|0;Ur=Ur-1|0,Vt[0|(ot=ot-1|0)]=lt[0|Ur],Wr=Wr-1|0;);return zr}function P2(zr,Ur,Wr,ot,it,ft,Kt){var at,jt=0;if(On=at=On-32|0,!ot&Wr>>>0<4294967280)return jt=-1,OA(at,ft,Kt)||(jt=x0(zr+16|0,zr,Ur,Wr,ot,it,at),o0(at,32)),On=at+32|0,jt;El(),Qs()}function $2(zr,Ur,Wr,ot,it,ft){return Ur|=0,0|(!(ot|=0)&(Wr|=0)>>>0>=16|ot?G0(zr|=0,Ur+16|0,Ur,Wr-16|0,ot-(Wr>>>0<16)|0,it|=0,ft|=0):-1)}function N2(zr,Ur,Wr,ot,it,ft){return Ur|=0,0|(!(ot|=0)&(Wr|=0)>>>0>=16|ot?wl(zr|=0,Ur+16|0,Ur,Wr-16|0,ot-(Wr>>>0<16)|0,it|=0,ft|=0):-1)}function Q2(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return!ot&Wr>>>0>4294967263|ot|!at&Kt>>>0>4294967263|at?-1:0|Nl[br[Eo>>2]](zr,Ur,Wr,it,32,ft,Kt,jt,ao)}function O2(zr,Ur,Wr){zr|=0;var ot,it=0;return On=ot=On-32|0,it=-1,Bn(ot,Wr|=0,Ur|=0)||(it=mu(zr,35664,ot,0)),On=ot+32|0,0|it}function Tu(zr,Ur){var Wr;return Ur|=0,On=Wr=On+-64|0,eu(zr|=0,Wr),Ol(zr=zr+208|0,Wr,64,0),eu(zr,Ur),o0(Wr,64),On=Wr- -64|0,0}function D2(zr,Ur,Wr,ot){var it;return Ur|=0,Wr|=0,ot|=0,On=it=On+-64|0,eu(zr|=0,it),zr=AA(Ur,Wr,it,64,0,ot,1),On=it- -64|0,0|zr}function Ip(zr,Ur){var Wr,ot,it;ns(zr,Ur,Wr=Ur+120|0),ns(zr+40|0,ot=Ur+40|0,it=Ur+80|0),ns(zr+80|0,it,Wr),ns(zr+120|0,Ur,ot)}function cA(zr,Ur){var Wr;return Ur|=0,On=Wr=On-32|0,bu(zr|=0,Wr),au(zr=zr+104|0,Wr,32,0),bu(zr,Ur),o0(Wr,32),On=Wr+32|0,0}function M2(zr,Ur,Wr,ot,it,ft,Kt){return 0|v2(zr|=0,Ur|=0,(zr=0)|(Wr|=0),ot|=0,zr|(it|=0),ft|=0,Kt|=0)}function U0(zr,Ur,Wr){var ot=0;if(Wr)for(ot=zr;Vt[0|ot]=lt[0|Ur],ot=ot+1|0,Ur=Ur+1|0,Wr=Wr-1|0;);return zr}function Fp(zr,Ur,Wr,ot,it,ft){var Kt;return On=Kt=On-32|0,mu(Kt,it,ft,0),zr=QA(zr,Ur,Wr,ot,it+16|0,0,0,Kt),o0(Kt,32),On=Kt+32|0,zr}function T2(zr){for(zr|=0;Jl(zr,32),Vt[zr+31|0]=31<[zr+31|0],!I2(zr)||Vl(zr,32););}function U2(zr,Ur,Wr){var ot;return Ur|=0,Wr|=0,On=ot=On+-64|0,eu(zr|=0,ot),zr=pA(Ur,ot,64,0,Wr,1),On=ot- -64|0,0|zr}function L2(zr,Ur,Wr,ot,it){var ft;return On=ft=On-32|0,mu(ft,ot,it,0),zr=qp(zr,Ur,Wr,ot+16|0,ft),o0(ft,32),On=ft+32|0,zr}function q0(zr,Ur,Wr){var ot=0;if(Wr)for(ot=zr;Vt[0|ot]=Ur,ot=ot+1|0,Wr=Wr-1|0;);return zr}function _A(zr,Ur,Wr){return zr|=0,Ur|=0,(Wr|=0)>>>0>=256&&(uu(1349,1262,107,1123),Qs()),0|hA(zr,Ur,255&Wr)}function j2(zr,Ur,Wr,ot,it,ft,Kt){return 0|x0(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0)}function F2(zr,Ur,Wr,ot,it,ft,Kt){return 0|G0(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0)}function Vu(zr,Ur,Wr,ot,it,ft,Kt,at){return(0|ot)==1|ot>>>0>1&&(El(),Qs()),0|Nl[br[8927]](zr,Ur,Wr,ot,it,ft,Kt,at)}function H2(zr,Ur,Wr,ot,it,ft,Kt){return 0|$0(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0)}function G2(zr,Ur,Wr,ot,it,ft,Kt){return 0|wl(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0)}function Cp(zr,Ur,Wr,ot,it,ft){return(0|ot)==1|ot>>>0>1&&(El(),Qs()),0|Nl[br[8927]](zr,Ur,Wr,ot,it,0,0,ft)}function vp(zr,Ur,Wr,ot,it,ft){return(0|ot)==1|ot>>>0>1&&(El(),Qs()),0|Nl[br[8928]](zr,Ur,Wr,ot,it,0,ft)}function J2(zr,Ur,Wr,ot,it,ft){return AA(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,0),0}function Ep(zr){var Ur;return(Ur=br[zr>>2])&&$l(Ur),br[zr+8>>2]=0,br[zr>>2]=0,br[zr+4>>2]=0,0}function ga(zr,Ur){var Wr=0;return(-1>>>(Wr=31&Ur)&zr)<>>zr}function wp(zr,Ur,Wr,ot,it,ft){return 0|A2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0)}function kp(zr,Ur,Wr,ot,it,ft){return 0|r2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0)}function q2(zr,Ur,Wr,ot,it,ft){return 0|Fp(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0)}function RA(zr,Ur,Wr,ot,it){return(0|Wr)==1|Wr>>>0>1&&(El(),Qs()),0|Nl[br[8925]](zr,Ur,Wr,ot,it)}function Uu(zr,Ur,Wr,ot,it){return(0|Wr)==1|Wr>>>0>1&&(El(),Qs()),0|Nl[br[8926]](zr,Ur,Wr,ot,it)}function Y2(zr,Ur,Wr,ot,it,ft){(0|ot)==1|ot>>>0>1&&(El(),Qs()),Nl[br[8928]](zr,Ur,Wr,ot,it,1,ft)}function V2(zr,Ur,Wr,ot,it){return 0|pA(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,0)}function z2(zr,Ur,Wr,ot,it){return 0|r1(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0)}function K2(zr,Ur,Wr,ot,it){return 0|Bp(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0)}function W2(zr,Ur,Wr,ot,it){return 0|L2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0)}function Z2(){var zr;On=zr=On-16|0,Vt[zr+15|0]=0,Gl(36836,zr+15|0,0),On=zr+16|0}function PA(zr,Ur,Wr,ot){return mA(zr|=0,Ur|=0,Wr|=0,ot|=0,20),0}function $A(zr,Ur,Wr,ot){return mA(zr|=0,Ur|=0,Wr|=0,ot|=0,12),0}function NA(zr,Ur,Wr,ot){return mA(zr|=0,Ur|=0,Wr|=0,ot|=0,8),0}function X2(zr,Ur,Wr,ot){return 0|nA(zr|=0,Ur|=0,Wr|=0,ot|=0)}function _h(zr,Ur,Wr,ot){return 0|W0(zr|=0,Ur|=0,Wr|=0,ot|=0)}function Hp(zr,Ur,Wr,ot){return 0|Ol(zr|=0,Ur|=0,Wr|=0,ot|=0)}function zu(zr,Ur,Wr,ot){return 0|Hu(zr|=0,Ur|=0,Wr|=0,ot|=0)}function QA(zr,Ur,Wr,ot,it,ft,Kt,at){return 0|Nl[br[8937]](zr,Ur,Wr,ot,it,ft,Kt,at)}function _f(zr,Ur,Wr,ot){return 0|vu(zr|=0,Ur|=0,Wr|=0,ot|=0)}function xp(zr,Ur,Wr,ot,it,ft){return 0|Nl[br[8937]](zr,Ur,Wr,ot,it,0,0,ft)}function Gp(zr){return br[zr+8>>2]=0,br[zr>>2]=0,br[zr+4>>2]=0,0}function OA(zr,Ur,Wr){return 0|O2(zr|=0,Ur|=0,Wr|=0)}function Jp(zr,Ur,Wr){return 0|Bn(zr|=0,Ur|=0,Wr|=0)}function Ku(zr,Ur,Wr){return 0|_A(zr|=0,Ur|=0,Wr|=0)}function e1(zr,Ur,Wr){return 0|Wn(zr|=0,Ur|=0,Wr|=0)}function El(){var zr;(zr=br[9526])&&Nl[0|zr](),du(),Qs()}function Sp(zr,Ur){return zr|=0,Jl(Ur|=0,32),0|_p(zr,Ur)}function r1(zr,Ur,Wr,ot,it){return 0|Nl[br[8929]](zr,Ur,Wr,ot,it)}function Bp(zr,Ur,Wr,ot,it){return 0|Nl[br[8930]](zr,Ur,Wr,ot,it)}function qp(zr,Ur,Wr,ot,it){return 0|Nl[br[8936]](zr,Ur,Wr,ot,it)}function _p(zr,Ur){return zr|=0,Ur|=0,0|Nl[br[8935]](zr,Ur)}function pu(zr,Ur){return zr|=0,Ur|=0,0|Nl[br[8931]](zr,Ur)}function hu(zr,Ur){return zr|=0,Ur|=0,0|Nl[br[8933]](zr,Ur)}function Yp(zr,Ur,Wr,ot,it,ft,Kt){return wA(zr,Ur,Wr,ot,it,ft,Kt)}function Rp(zr){return zr?31-Ql(zr-1^zr)|0:32}function W0(zr,Ur,Wr,ot){return 0|Nl[br[8932]](zr,Ur,Wr,ot)}function lA(zr,Ur){return 0|p2(zr|=0,Ur|=0,32)}function o1(zr,Ur){return 0|p2(zr|=0,Ur|=0,64)}function n1(zr,Ur,Wr){Ls(zr|=0,Ur|=0,Wr|=0)}function Vp(zr,Ur){return 0|_p(zr|=0,Ur|=0)}function i1(zr,Ur){return 0|Sp(zr|=0,Ur|=0)}function a1(zr,Ur,Wr,ot){return Cn(zr,Ur,Wr,ot,2)}function Cu(zr,Ur,Wr,ot){return au(zr,Ur,Wr,ot),0}function vu(zr,Ur,Wr,ot){return Ol(zr,Ur,Wr,ot),0}function s1(zr,Ur,Wr,ot){return Cn(zr,Ur,Wr,ot,1)}function l1(zr,Ur,Wr,ot){return o2(zr,Ur,Wr,ot,1)}function u1(zr,Ur,Wr,ot){return o2(zr,Ur,Wr,ot,2)}function ru(zr,Ur,Wr,ot){return Fl(zr,Ur,Wr,ot)}function d1(zr){return Du(zr|=0),0}function zp(){return 1073741824}function Kp(){return-2147483648}function A1(){return 268435456}function Rl(zr){Jl(zr|=0,32)}function g1(){return 67108864}function p1(zr){Jl(zr|=0,16)}function h1(){return 16777216}function f1(){return 33554432}function o0(zr,Ur){q0(zr,0,Ur)}function m1(){return 1559}function y1(){return 1321}function Wp(){return 8192}function b1(){return 384}function I1(){return 416}function C1(){return 256}function Zp(){return 128}function DA(){return 208}function Tl(){return 64}function X0(){return 16}function _0(){return 32}function v1(){return 12}function E1(){return-65}function Pu(){return-17}function w1(){return 48}function k1(){return-33}function Eu(){return 24}function Xp(){return 4}function Hl(){return-1}function uA(){return 1}function dA(){return 2}function Pp(){return 3}function Su(){return 8}function su(){return 0}Ns(qn=lt,1024,"Li8wMTIzNDU2Nzg5QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5egBqcwByYW5kb21ieXRlcwBiNjRfcG9zIDw9IGI2NF9sZW4AY3J5cHRvX2dlbmVyaWNoYXNoX2JsYWtlMmJfZmluYWwAJGFyZ29uMmkAJGFyZ29uMmlkAHJhbmRvbWJ5dGVzL3JhbmRvbWJ5dGVzLmMAc29kaXVtL2NvZGVjcy5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9ibGFrZTJiLXJlZi5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9nZW5lcmljaGFzaF9ibGFrZTJiLmMAeDI1NTE5Ymxha2UyYgBidWZfbGVuIDw9IFNJWkVfTUFYAG91dGxlbiA8PSBVSU5UOF9NQVgAUy0+YnVmbGVuIDw9IEJMQUtFMkJfQkxPQ0tCWVRFUwAkYXJnb24yaSR2PQAkYXJnb24yaWQkdj0ALHQ9ACxwPQAkbT0AY3VydmUyNTUxOQBlZDI1NTE5ADEuMC4xOQBobWFjc2hhNTE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zAAKpt/8HgmL+RbBe/3QE4wHZ8pH/yq0fAWkBJ/8ur0UA5C86/9fgRf7POEX/EP6L/xfP1P/KFH7/X9Vg/wmwIQDIBc//8SqA/iMhwP/45cQBgRF4APtnl/8HNHD/jDhC/yji9f/ZRiX+rNYJ/0hDhgGSwNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/"),Ns(qn,2736,"AQ=="),Ns(qn,2768,"JuiVj8KyJ7BFw/SJ8u+Y8NXfrAXTxjM5sTgCiG1T/AXHF2pwPU3YT7o8C3YNEGcPKiBT+iw5zMZOx/13kqwDeuz///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ="),Ns(qn,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+EVhpAFPRng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AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQ=="),Ns(qn,33980,"AQAAAHbBXwBlcAL/UPyh/vJqxv+FBrIA5N9wAN/uVf4z8xoAPiuL/stBCg=="),Ns(qn,34032,"M03tAJGqVv82JjP/8YBl/yl5Sv/sTpsAqZdp/pwpSADCZq//zqJl/wAAAAAAAAAAGy57ARKo/f/Tr5f+w9tgADh2vv7+0fX/mWR+/uiBFf81uPL/x6Td"),Ns(qn,34160,"AQ=="),Ns(qn,34192,"4Ot6fDtBuK4WVuP68Z/EatoJjeucMrH9hmIFFl9JuABfnJW8o1CMJLHQsVWcg+9bBERcxFgcjobYIk7d0J8RV+z///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ="),Ns(qn,34383,"EA=="),Ns(qn,34400,"Z+YJaoWuZ7ty8248OvVPpX9SDlGMaAWbq9mDHxnN4FuYL4pCkUQ3cc/7wLWl27XpW8JWOfER8Vmkgj+S1V4cq5iqB9gBW4MSvoUxJMN9DFV0Xb5y/rHegKcG3Jt08ZvBwWmb5IZHvu/GncEPzKEMJG8s6S2qhHRK3KmwXNqI+XZSUT6YbcYxqMgnA7DHf1m/8wvgxkeRp9VRY8oGZykpFIUKtyc4IRsu/G0sTRMNOFNUcwpluwpqdi7JwoGFLHKSoei/oktmGqhwi0vCo1FsxxnoktEkBpnWhTUO9HCgahAWwaQZCGw3Hkx3SCe1vLA0swwcOUqq2E5Pypxb828uaO6Cj3RvY6V4FHjIhAgCx4z6/76Q62xQpPej+b7yeHHGgA=="),Ns(qn,34752,"CMm882fmCWo7p8qEha5nuyv4lP5y82488TYdXzr1T6XRguatf1IOUR9sPiuMaAWba71B+6vZgx95IX4TGc3gWyKuKNe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29gEcDg4SwmFho2o1NV+uV1f5abm50BeGhpGZwcFYOh0dJyeenrnZ4eE46/j4EyuYmLMiEREz0mlpu6nZ2XAHjo6JM5SUpy2bm7Y8Hh4iFYeHksnp6SCHzs5JqlVV/1AoKHil3996A4yMj1mhofgJiYmAGg0NF2W/v9rX5uYxhEJCxtBoaLiCQUHDKZmZsFotLXceDw8Re7Cwy6hUVPxtu7vWLBYWOg4AAAAPAAAAEAAAABE=");var MA,Nl=(MA=[null,function(zr,Ur,Wr,ot,it){var ft;return zr|=0,ot|=0,it|=0,On=ft=On+-64|0,(Ur|=0)|(Wr|=0)&&(br[ft+8>>2]=2036477234,br[ft+12>>2]=1797285236,br[ft>>2]=1634760805,br[ft+4>>2]=857760878,br[ft+16>>2]=lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,br[ft+20>>2]=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,br[ft+24>>2]=lt[it+8|0]|lt[it+9|0]<<8|lt[it+10|0]<<16|lt[it+11|0]<<24,br[ft+28>>2]=lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24,br[ft+32>>2]=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,br[ft+36>>2]=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,br[ft+40>>2]=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,it=lt[it+28|0]|lt[it+29|0]<<8|lt[it+30|0]<<16|lt[it+31|0]<<24,br[ft+48>>2]=0,br[ft+52>>2]=0,br[ft+44>>2]=it,br[ft+56>>2]=lt[0|ot]|lt[ot+1|0]<<8|lt[ot+2|0]<<16|lt[ot+3|0]<<24,br[ft+60>>2]=lt[ot+4|0]|lt[ot+5|0]<<8|lt[ot+6|0]<<16|lt[ot+7|0]<<24,eA(ft,zr=q0(zr,0,Ur),zr,Ur,Wr),o0(ft,64)),On=ft- -64|0,0},function(zr,Ur,Wr,ot,it){var ft;return zr|=0,ot|=0,it|=0,On=ft=On+-64|0,(Ur|=0)|(Wr|=0)&&(br[ft+8>>2]=2036477234,br[ft+12>>2]=1797285236,br[ft>>2]=1634760805,br[ft+4>>2]=857760878,br[ft+16>>2]=lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,br[ft+20>>2]=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,br[ft+24>>2]=lt[it+8|0]|lt[it+9|0]<<8|lt[it+10|0]<<16|lt[it+11|0]<<24,br[ft+28>>2]=lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24,br[ft+32>>2]=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,br[ft+36>>2]=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,br[ft+40>>2]=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,it=lt[it+28|0]|lt[it+29|0]<<8|lt[it+30|0]<<16|lt[it+31|0]<<24,br[ft+48>>2]=0,br[ft+44>>2]=it,br[ft+52>>2]=lt[0|ot]|lt[ot+1|0]<<8|lt[ot+2|0]<<16|lt[ot+3|0]<<24,br[ft+56>>2]=lt[ot+4|0]|lt[ot+5|0]<<8|lt[ot+6|0]<<16|lt[ot+7|0]<<24,br[ft+60>>2]=lt[ot+8|0]|lt[ot+9|0]<<8|lt[ot+10|0]<<16|lt[ot+11|0]<<24,eA(ft,zr=q0(zr,0,Ur),zr,Ur,Wr),o0(ft,64)),On=ft- -64|0,0},function(zr,Ur,Wr,ot,it,ft,Kt,at){var jt;return zr|=0,Ur|=0,it|=0,ft|=0,Kt|=0,at|=0,On=jt=On+-64|0,(Wr|=0)|(ot|=0)&&(br[jt+8>>2]=2036477234,br[jt+12>>2]=1797285236,br[jt>>2]=1634760805,br[jt+4>>2]=857760878,br[jt+16>>2]=lt[0|at]|lt[at+1|0]<<8|lt[at+2|0]<<16|lt[at+3|0]<<24,br[jt+20>>2]=lt[at+4|0]|lt[at+5|0]<<8|lt[at+6|0]<<16|lt[at+7|0]<<24,br[jt+24>>2]=lt[at+8|0]|lt[at+9|0]<<8|lt[at+10|0]<<16|lt[at+11|0]<<24,br[jt+28>>2]=lt[at+12|0]|lt[at+13|0]<<8|lt[at+14|0]<<16|lt[at+15|0]<<24,br[jt+32>>2]=lt[at+16|0]|lt[at+17|0]<<8|lt[at+18|0]<<16|lt[at+19|0]<<24,br[jt+36>>2]=lt[at+20|0]|lt[at+21|0]<<8|lt[at+22|0]<<16|lt[at+23|0]<<24,br[jt+40>>2]=lt[at+24|0]|lt[at+25|0]<<8|lt[at+26|0]<<16|lt[at+27|0]<<24,br[jt+44>>2]=lt[at+28|0]|lt[at+29|0]<<8|lt[at+30|0]<<16|lt[at+31|0]<<24,br[jt+48>>2]=ft,br[jt+52>>2]=Kt,br[jt+56>>2]=lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,br[jt+60>>2]=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,eA(jt,Ur,zr,Wr,ot),o0(jt,64)),On=jt- -64|0,0},function(zr,Ur,Wr,ot,it,ft,Kt){var at;return zr|=0,Ur|=0,it|=0,ft|=0,Kt|=0,On=at=On+-64|0,(Wr|=0)|(ot|=0)&&(br[at+8>>2]=2036477234,br[at+12>>2]=1797285236,br[at>>2]=1634760805,br[at+4>>2]=857760878,br[at+16>>2]=lt[0|Kt]|lt[Kt+1|0]<<8|lt[Kt+2|0]<<16|lt[Kt+3|0]<<24,br[at+20>>2]=lt[Kt+4|0]|lt[Kt+5|0]<<8|lt[Kt+6|0]<<16|lt[Kt+7|0]<<24,br[at+24>>2]=lt[Kt+8|0]|lt[Kt+9|0]<<8|lt[Kt+10|0]<<16|lt[Kt+11|0]<<24,br[at+28>>2]=lt[Kt+12|0]|lt[Kt+13|0]<<8|lt[Kt+14|0]<<16|lt[Kt+15|0]<<24,br[at+32>>2]=lt[Kt+16|0]|lt[Kt+17|0]<<8|lt[Kt+18|0]<<16|lt[Kt+19|0]<<24,br[at+36>>2]=lt[Kt+20|0]|lt[Kt+21|0]<<8|lt[Kt+22|0]<<16|lt[Kt+23|0]<<24,br[at+40>>2]=lt[Kt+24|0]|lt[Kt+25|0]<<8|lt[Kt+26|0]<<16|lt[Kt+27|0]<<24,Kt=lt[Kt+28|0]|lt[Kt+29|0]<<8|lt[Kt+30|0]<<16|lt[Kt+31|0]<<24,br[at+48>>2]=ft,br[at+44>>2]=Kt,br[at+52>>2]=lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,br[at+56>>2]=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,br[at+60>>2]=lt[it+8|0]|lt[it+9|0]<<8|lt[it+10|0]<<16|lt[it+11|0]<<24,eA(at,Ur,zr,Wr,ot),o0(at,64)),On=at- -64|0,0},function(zr,Ur,Wr,ot,it){var ft,Kt,at;return zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,On=ft=(Kt=On)-128&-64,br[ft>>2]=67108863&(lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24),br[ft+4>>2]=(lt[it+3|0]|lt[it+4|0]<<8|lt[it+5|0]<<16|lt[it+6|0]<<24)>>>2&67108611,br[ft+8>>2]=(lt[it+6|0]|lt[it+7|0]<<8|lt[it+8|0]<<16|lt[it+9|0]<<24)>>>4&67092735,br[ft+12>>2]=(lt[it+9|0]|lt[it+10|0]<<8|lt[it+11|0]<<16|lt[it+12|0]<<24)>>>6&66076671,at=lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24,br[ft+20>>2]=0,br[ft+24>>2]=0,br[ft+28>>2]=0,br[ft+32>>2]=0,br[ft+36>>2]=0,br[ft+16>>2]=at>>>8&1048575,br[ft+40>>2]=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,br[ft+44>>2]=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,br[ft+48>>2]=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,it=lt[it+28|0]|lt[it+29|0]<<8|lt[it+30|0]<<16|lt[it+31|0]<<24,Vt[ft+80|0]=0,br[ft+56>>2]=0,br[ft+60>>2]=0,br[ft+52>>2]=it,kA(ft,Ur,Wr,ot),Jo(ft,zr),On=Kt,0},function(zr,Ur,Wr,ot,it){var ft,Kt,at;return zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,On=ft=(Kt=On)-192&-64,br[ft+64>>2]=67108863&(lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24),br[ft+68>>2]=(lt[it+3|0]|lt[it+4|0]<<8|lt[it+5|0]<<16|lt[it+6|0]<<24)>>>2&67108611,br[ft+72>>2]=(lt[it+6|0]|lt[it+7|0]<<8|lt[it+8|0]<<16|lt[it+9|0]<<24)>>>4&67092735,br[ft+76>>2]=(lt[it+9|0]|lt[it+10|0]<<8|lt[it+11|0]<<16|lt[it+12|0]<<24)>>>6&66076671,at=lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24,br[ft+84>>2]=0,br[ft+88>>2]=0,br[ft+92>>2]=0,br[ft+96>>2]=0,br[ft+100>>2]=0,br[ft+80>>2]=at>>>8&1048575,br[ft+104>>2]=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,br[ft+108>>2]=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,br[ft+112>>2]=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,it=lt[it+28|0]|lt[it+29|0]<<8|lt[it+30|0]<<16|lt[it+31|0]<<24,Vt[ft+144|0]=0,br[ft+120>>2]=0,br[ft+124>>2]=0,br[ft+116>>2]=it,kA(it=ft- -64|0,Ur,Wr,ot),Jo(it,Ur=ft+48|0),zr=rs(zr,Ur),On=Kt,0|zr},function(zr,Ur){var Wr;return Ur|=0,br[(zr|=0)>>2]=67108863&(lt[0|Ur]|lt[Ur+1|0]<<8|lt[Ur+2|0]<<16|lt[Ur+3|0]<<24),br[zr+4>>2]=(lt[Ur+3|0]|lt[Ur+4|0]<<8|lt[Ur+5|0]<<16|lt[Ur+6|0]<<24)>>>2&67108611,br[zr+8>>2]=(lt[Ur+6|0]|lt[Ur+7|0]<<8|lt[Ur+8|0]<<16|lt[Ur+9|0]<<24)>>>4&67092735,br[zr+12>>2]=(lt[Ur+9|0]|lt[Ur+10|0]<<8|lt[Ur+11|0]<<16|lt[Ur+12|0]<<24)>>>6&66076671,Wr=lt[Ur+12|0]|lt[Ur+13|0]<<8|lt[Ur+14|0]<<16|lt[Ur+15|0]<<24,br[zr+20>>2]=0,br[zr+24>>2]=0,br[zr+28>>2]=0,br[zr+32>>2]=0,br[zr+36>>2]=0,br[zr+16>>2]=Wr>>>8&1048575,br[zr+40>>2]=lt[Ur+16|0]|lt[Ur+17|0]<<8|lt[Ur+18|0]<<16|lt[Ur+19|0]<<24,br[zr+44>>2]=lt[Ur+20|0]|lt[Ur+21|0]<<8|lt[Ur+22|0]<<16|lt[Ur+23|0]<<24,br[zr+48>>2]=lt[Ur+24|0]|lt[Ur+25|0]<<8|lt[Ur+26|0]<<16|lt[Ur+27|0]<<24,Ur=lt[Ur+28|0]|lt[Ur+29|0]<<8|lt[Ur+30|0]<<16|lt[Ur+31|0]<<24,Vt[zr+80|0]=0,br[zr+56>>2]=0,br[zr+60>>2]=0,br[zr+52>>2]=Ur,0},function(zr,Ur,Wr,ot){return kA(zr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>>2]=Ur,ft=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,Ur=lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,br[ot+336>>2]=Ur,br[ot+340>>2]=ft,ft=lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24,br[ot+344>>2]=lt[it+8|0]|lt[it+9|0]<<8|lt[it+10|0]<<16|lt[it+11|0]<<24,br[ot+348>>2]=ft,Vt[ot+336|0]=248&Ur,Vt[ot+367|0]=63<[ot+367|0]|64,Bu(ot+288|0,Wr),br[ot+260>>2]=0,br[ot+264>>2]=0,br[ot+268>>2]=0,br[ot+272>>2]=0,br[ot+276>>2]=0,br[ot+208>>2]=0,br[ot+212>>2]=0,br[ot+216>>2]=0,br[ot+220>>2]=0,br[ot+224>>2]=0,br[ot+228>>2]=0,Ur=br[ot+308>>2],br[ot+160>>2]=br[ot+304>>2],br[ot+164>>2]=Ur,Ur=br[ot+316>>2],br[ot+168>>2]=br[ot+312>>2],br[ot+172>>2]=Ur,Ur=br[ot+324>>2],br[ot+176>>2]=br[ot+320>>2],br[ot+180>>2]=Ur,br[ot+244>>2]=0,br[ot+248>>2]=0,br[ot+240>>2]=1,br[ot+252>>2]=0,br[ot+256>>2]=0,br[ot+192>>2]=0,br[ot+196>>2]=0,br[ot+200>>2]=0,br[ot+204>>2]=0,Ur=br[ot+292>>2],br[ot+144>>2]=br[ot+288>>2],br[ot+148>>2]=Ur,Ur=br[ot+300>>2],br[ot+152>>2]=br[ot+296>>2],br[ot+156>>2]=Ur,br[ot+116>>2]=0,br[ot+120>>2]=0,br[ot+124>>2]=0,br[ot+128>>2]=0,br[ot+132>>2]=0,br[ot+100>>2]=0,br[ot+104>>2]=0,br[ot+96>>2]=1,br[ot+108>>2]=0,br[ot+112>>2]=0,Wr=254;Ks=br[ot+276>>2],Kt=br[ot+180>>2],To=br[ot+96>>2],Uo=br[ot+192>>2],En=br[ot+144>>2],cs=br[ot+240>>2],Ms=br[ot+100>>2],Ws=br[ot+196>>2],Zs=br[ot+148>>2],Xs=br[ot+244>>2],wn=br[ot+104>>2],r0=br[ot+200>>2],Nn=br[ot+152>>2],h0=br[ot+248>>2],Zn=br[ot+108>>2],As=br[ot+204>>2],xa=br[ot+156>>2],Rn=br[ot+252>>2],Jn=br[ot+112>>2],Fn=br[ot+208>>2],Mn=br[ot+160>>2],zn=br[ot+256>>2],$o=br[ot+116>>2],Os=br[ot+212>>2],Eo=br[ot+164>>2],js=br[ot+260>>2],_o=br[ot+120>>2],_c=br[ot+216>>2],yo=br[ot+168>>2],c0=br[ot+264>>2],Ao=br[ot+124>>2],i0=br[ot+220>>2],at=br[ot+172>>2],u0=br[ot+268>>2],ao=br[ot+128>>2],f0=br[ot+224>>2],ft=br[ot+176>>2],Qn=br[ot+272>>2],m0=Wr,Zo=(Xo=(Ur=0-((Ur=qs)^(qs=lt[(C0=ot+336|0)+(Wr>>>3|0)|0]>>>(7&Wr)&1))|0)&((it=br[ot+132>>2])^(Xn=br[ot+228>>2])))^it,br[ot+132>>2]=Zo,ys=Kt^(In=Ur&(Kt^Ks)),br[ot+84>>2]=ys-Zo,jn=ao^(Fo=Ur&(ao^f0)),br[ot+128>>2]=jn,_s=(_n=Ur&(ft^Qn))^ft,br[ot+80>>2]=_s-jn,as=Ao^(No=Ur&(Ao^i0)),br[ot+124>>2]=as,k0=at^(Go=Ur&(at^u0)),br[ot+76>>2]=k0-as,$a=_o^(Do=Ur&(_o^_c)),br[ot+120>>2]=$a,B0=yo^(jt=Ur&(yo^c0)),br[ot+72>>2]=B0-$a,Hn=$o^(Kt=Ur&($o^Os)),br[ot+116>>2]=Hn,Vn=Eo^($o=Ur&(Eo^js)),br[ot+68>>2]=Vn-Hn,ds=Jn^(_o=Ur&(Jn^Fn)),br[ot+112>>2]=ds,os=Mn^(yo=Ur&(Mn^zn)),br[ot+64>>2]=os-ds,Is=Zn^(Ao=Ur&(Z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ns(Qn=ot+192|0,Qn,ot),Un(jn,ot),Un(ot,Zo),Eo=br[ot+192>>2],Xo=br[ot+96>>2],In=br[ot+196>>2],Fo=br[ot+100>>2],_n=br[ot+200>>2],No=br[ot+104>>2],Go=br[ot+204>>2],Do=br[ot+108>>2],jt=br[ot+208>>2],Kt=br[ot+112>>2],$o=br[ot+212>>2],_o=br[ot+116>>2],yo=br[ot+216>>2],Ao=br[ot+120>>2],at=br[ot+220>>2],ao=br[ot+124>>2],ft=br[ot+224>>2],it=br[ot+128>>2],Wr=br[ot+228>>2],Ur=br[ot+132>>2],br[ot+180>>2]=Wr+Ur,br[ot+176>>2]=it+ft,br[ot+172>>2]=at+ao,br[ot+168>>2]=Ao+yo,br[ot+164>>2]=_o+$o,br[ot+160>>2]=Kt+jt,br[ot+156>>2]=Do+Go,br[ot+152>>2]=No+_n,br[ot+148>>2]=In+Fo,br[ot+144>>2]=Eo+Xo,br[ot+228>>2]=Ur-Wr,br[ot+224>>2]=it-ft,br[ot+220>>2]=ao-at,br[ot+216>>2]=Ao-yo,br[ot+212>>2]=_o-$o,br[ot+208>>2]=Kt-jt,br[ot+204>>2]=Do-Go,br[ot+200>>2]=No-_n,br[ot+196>>2]=Fo-In,br[ot+192>>2]=Xo-Eo,ns(Zo,ot,jn),as=br[ot+52>>2],Do=br[ot+4>>2],$a=br[ot+56>>2],jt=br[ot+8>>2],Hn=br[ot+64>>2],yo=br[ot+16>>2],ds=br[ot+60>>2],Ao=br[ot+12>>2],Is=br[ot+72>>2],at=br[ot+24>>2],Gn=br[ot+68>>2],ao=br[ot+20>>2],wn=br[ot+80>>2],ft=br[ot+32>>2],Nn=br[ot+76>>2],it=br[ot+28>>2],Xn=br[ot+84>>2],Ur=br[ot+36>>2],_s=br[ot+48>>2],Wr=br[ot>>2]-_s|0,br[ot>>2]=Wr,Ur=Ur-Xn|0,br[ot+36>>2]=Ur,Jn=it-Nn|0,br[ot+28>>2]=Jn,Mn=ft-wn|0,br[ot+32>>2]=Mn,Kt=ao-Gn|0,br[ot+20>>2]=Kt,$o=at-Is|0,br[ot+24>>2]=$o,_o=Ao-ds|0,br[ot+12>>2]=_o,yo=yo-Hn|0,br[ot+16>>2]=yo,Ao=jt-$a|0,br[ot+8>>2]=Ao,ft=Do-as|0,br[ot+4>>2]=ft,Un(Qn,Qn),Ur=Oo(Ur,Ur>>31,121666,0),it=Io,Hs=Ur,Ur=Oo((33554431&(it=(Eo=Ur+16777216|0)>>>0<16777216?it+1|0:it))<<7|Eo>>>25,it>>25,19,0),ao=Io,it=Ur,Ur=Oo(Wr,Wr>>31,121666,0),os=Io+ao|0,Ur=Ur>>>0>(it=it+Ur|0)>>>0?os+1|0:os,Wr=(at=it+33554432|0)>>>0<33554432?Ur+1|0:Ur,Xo=it-(-67108864&at)|0,br[ot+96>>2]=Xo,ao=Oo(ft,ft>>31,121666,0),it=Io,it=(ft=ao+16777216|0)>>>0<16777216?it+1|0:it,In=(ao-(-33554432&ft)|0)+((67108863&Wr)<<6|at>>>26)|0,br[ot+100>>2]=In,os=(Ur=it)>>25,it=(33554431&Ur)<<7|ft>>>25,Wr=Oo(Ao,Ao>>31,121666,0)+it|0,Ur=os+Io|0,Ur=Wr>>>0>>0?Ur+1|0:Ur,ao=(Fo=Wr+33554432|0)>>>0<33554432?Ur+1|0:Ur,_n=Wr-(-67108864&Fo)|0,br[ot+104>>2]=_n,it=Oo(yo,yo>>31,121666,0),ft=Io,Wr=Oo(_o,_o>>31,121666,0),Ur=Io,Vn=it,Zn=Wr,it=(33554431&(Ur=(No=Wr+16777216|0)>>>0<16777216?Ur+1|0:Ur))<<7|No>>>25,Ur=(Ur>>25)+ft|0,Ur=(Wr=Vn+it|0)>>>0>>0?Ur+1|0:Ur,ft=(Go=Wr+33554432|0)>>>0<33554432?Ur+1|0:Ur,Do=Wr-(-67108864&Go)|0,br[ot+112>>2]=Do,it=Oo($o,$o>>31,121666,0),at=Io,Wr=Oo(Kt,Kt>>31,121666,0),Ur=Io,Vn=it,xa=Wr,it=(33554431&(Ur=(jt=Wr+16777216|0)>>>0<16777216?Ur+1|0:Ur))<<7|jt>>>25,Ur=(Ur>>25)+at|0,Ur=(Wr=Vn+it|0)>>>0>>0?Ur+1|0:Ur,it=(Kt=Wr+33554432|0)>>>0<33554432?Ur+1|0:Ur,$o=Wr-(-67108864&Kt)|0,br[ot+120>>2]=$o,at=Oo(Mn,Mn>>31,121666,0),Ao=Io,Wr=Oo(Jn,Jn>>31,121666,0),Ur=Io,Mn=Wr,Wr=(33554431&(Ur=(_o=Wr+16777216|0)>>>0<16777216?Ur+1|0:Ur))<<7|_o>>>25,Ur=(Ur>>25)+Ao|0,Ur=Wr>>>0>(at=Wr+at|0)>>>0?Ur+1|0:Ur,Wr=(yo=at+33554432|0)>>>0<33554432?Ur+1|0:Ur,Ao=at-(-67108864&yo)|0,br[ot+128>>2]=Ao,at=(ao=Zn+((67108863&ao)<<6|Fo>>>26)|0)-(-33554432&No)|0,br[ot+108>>2]=at,ao=(ft=xa+((67108863&ft)<<6|Go>>>26)|0)-(-33554432&jt)|0,br[ot+116>>2]=ao,ft=(Ur=Mn+((67108863&it)<<6|Kt>>>26)|0)-(-33554432&_o)|0,br[ot+124>>2]=ft,Wr=(Wr=Hs+((67108863&Wr)<<6|yo>>>26)|0)-(-33554432&Eo)|0,br[ot+132>>2]=Wr,Un(Ur=ot+144|0,Ur),br[ot+84>>2]=Wr+Xn,br[ot+80>>2]=Ao+wn,br[ot+76>>2]=ft+Nn,br[ot+72>>2]=$o+Is,br[ot+68>>2]=ao+Gn,br[ot+64>>2]=Do+Hn,br[ot+60>>2]=at+ds,br[ot+56>>2]=_n+$a,br[ot+52>>2]=In+as,br[ot+48>>2]=Xo+_s,Wr=m0-1|0,ns(ys,ot+288|0,Qn),ns(Qn,ot,jn),m0;);$o=br[ot+144>>2],Xo=br[ot+240>>2],_o=br[ot+148>>2],In=br[ot+244>>2],yo=br[ot+152>>2],Fo=br[ot+248>>2],Ao=br[ot+156>>2],_n=br[ot+252>>2],at=br[ot+160>>2],No=br[ot+256>>2],ao=br[ot+164>>2],Go=br[ot+260>>2],ft=br[ot+168>>2],Do=br[ot+264>>2],it=br[ot+172>>2],jt=br[ot+268>>2],Wr=br[ot+176>>2],Kt=br[ot+272>>2],Eo=0-qs|0,Ur=br[ot+276>>2],br[ot+276>>2]=Eo&(Ur^br[ot+180>>2])^Ur,br[ot+272>>2]=Kt^Eo&(Wr^Kt),br[ot+268>>2]=jt^Eo&(it^jt),br[ot+264>>2]=Do^Eo&(ft^Do),br[ot+260>>2]=Go^Eo&(ao^Go),br[ot+256>>2]=No^Eo&(at^No),br[ot+252>>2]=_n^Eo&(Ao^_n),br[ot+248>>2]=Fo^Eo&(yo^Fo),br[ot+244>>2]=In^Eo&(_o^In),br[ot+240>>2]=Xo^Eo&($o^Xo),Xo=br[ot+192>>2],$o=br[ot+96>>2],In=br[ot+196>>2],_o=br[ot+100>>2],Fo=br[ot+200>>2],yo=br[ot+104>>2],_n=br[ot+204>>2],Ao=br[ot+108>>2],No=br[ot+208>>2],at=br[ot+112>>2],Go=br[ot+212>>2],ao=br[ot+116>>2],Do=br[ot+216>>2],ft=br[ot+120>>2],jt=br[ot+220>>2],it=br[ot+124>>2],Kt=br[ot+224>>2],Wr=br[ot+128>>2],Ur=br[ot+228>>2],br[ot+228>>2]=Eo&(Ur^br[ot+132>>2])^Ur,br[ot+224>>2]=Kt^Eo&(Wr^Kt),br[ot+220>>2]=jt^Eo&(it^jt),br[ot+216>>2]=Do^Eo&(ft^Do),br[ot+212>>2]=Go^Eo&(ao^Go),br[ot+208>>2]=No^Eo&(at^No),br[ot+204>>2]=_n^Eo&(Ao^_n),br[ot+200>>2]=Fo^Eo&(yo^Fo),br[ot+196>>2]=In^Eo&(_o^In),br[ot+192>>2]=Xo^Eo&($o^Xo),Ru(Qn,Qn),ns(Zo,Zo,Qn),Dn(zr,Zo),o0(C0,32),it=0}return On=ot+368|0,0|it},function(zr,Ur){var Wr,ot,it,ft,Kt,at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r+156>>2],Do=br[Wr+116>>2],Fo=br[Wr+160>>2],No=br[Wr+120>>2],Go=br[Wr+128>>2],Xo=br[Wr+88>>2],In=br[Wr+124>>2],_n=br[Wr+164>>2],br[Wr+292>>2]=In+_n,br[Wr+288>>2]=Fo+No,br[Wr+284>>2]=$o+Do,br[Wr+280>>2]=yo+_o,br[Wr+276>>2]=Eo+Ao,br[Wr+272>>2]=jt+ao,br[Wr+268>>2]=Kt+at,br[Wr+264>>2]=it+ft,br[Wr+260>>2]=Ur+ot,br[Wr+256>>2]=Go+Xo,br[Wr+244>>2]=_n-In,br[Wr+240>>2]=Fo-No,br[Wr+236>>2]=$o-Do,br[Wr+232>>2]=yo-_o,br[Wr+228>>2]=Eo-Ao,br[Wr+224>>2]=jt-ao,br[Wr+220>>2]=Kt-at,br[Wr+216>>2]=it-ft,br[Wr+212>>2]=Ur-ot,br[Wr+208>>2]=Go-Xo,Ru(Ur=Wr+208|0,Ur),ns(Wr,Wr+256|0,Ur),Dn(zr,Wr),On=Wr+304|0,0},function(zr,Ur,Wr,ot,it){zr|=0,ot|=0,it|=0;var ft,Kt=0,at=0,jt=0,ao=0;if(On=ft=On-112|0,(Ur|=0)|(Wr|=0)){Kt=lt[it+28|0]|lt[it+29|0]<<8|lt[it+30|0]<<16|lt[it+31|0]<<24,br[ft+24>>2]=lt[it+24|0]|lt[it+25|0]<<8|lt[it+26|0]<<16|lt[it+27|0]<<24,br[ft+28>>2]=Kt,Kt=lt[it+20|0]|lt[it+21|0]<<8|lt[it+22|0]<<16|lt[it+23|0]<<24,br[ft+16>>2]=lt[it+16|0]|lt[it+17|0]<<8|lt[it+18|0]<<16|lt[it+19|0]<<24,br[ft+20>>2]=Kt,Kt=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,br[ft>>2]=lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,br[ft+4>>2]=Kt,Kt=lt[it+12|0]|lt[it+13|0]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1|0)););}o0(ft+32|0,64),o0(ft,32)}return On=ft+112|0,0},function(zr,Ur,Wr,ot,it,ft,Kt,at){zr|=0,Ur|=0,it|=0,ft|=0,Kt|=0,at|=0;var jt,ao=0;if(On=jt=On-112|0,(Wr|=0)|(ot|=0)){ao=lt[at+28|0]|lt[at+29|0]<<8|lt[at+30|0]<<16|lt[at+31|0]<<24,br[jt+24>>2]=lt[at+24|0]|lt[at+25|0]<<8|lt[at+26|0]<<16|lt[at+27|0]<<24,br[jt+28>>2]=ao,ao=lt[at+20|0]|lt[at+21|0]<<8|lt[at+22|0]<<16|lt[at+23|0]<<24,br[jt+16>>2]=lt[at+16|0]|lt[at+17|0]<<8|lt[at+18|0]<<16|lt[at+19|0]<<24,br[jt+20>>2]=ao,ao=lt[at+4|0]|lt[at+5|0]<<8|lt[at+6|0]<<16|lt[at+7|0]<<24,br[jt>>2]=lt[0|at]|lt[at+1|0]<<8|lt[at+2|0]<<16|lt[at+3|0]<<24,br[jt+4>>2]=ao,ao=lt[at+12|0]|lt[at+13|0]<<8|lt[at+14|0]<<16|lt[at+15|0]<<24,br[jt+8>>2]=lt[at+8|0]|lt[at+9|0]<<8|lt[at+10|0]<<16|lt[at+11|0]<<24,br[jt+12>>2]=ao,at=lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24,br[jt+96>>2]=lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24,br[jt+100>>2]=at,Vt[jt+104|0]=ft,Vt[jt+111|0]=Kt>>>24,Vt[jt+110|0]=Kt>>>16,Vt[jt+109|0]=Kt>>>8,Vt[jt+108|0]=Kt,Vt[jt+107|0]=(16777215&Kt)<<8|ft>>>24,Vt[jt+106|0]=(65535&Kt)<<16|ft>>>16,Vt[jt+105|0]=(255&Kt)<<24|ft>>>8;e:{if(!ot&Wr>>>0>=64|ot){for(;;){for(at=0,PA(jt+32|0,jt+96|0,jt,0);ft=jt+32|0,Vt[zr+at|0]=lt[ft+at|0]^lt[Ur+at|0],Vt[(it=1|at)+zr|0]=lt[it+ft|0]^lt[Ur+it|0],(0|(at=at+2|0))!=64;);if(it=lt[jt+104|0]+1|0,Vt[jt+104|0]=it,it=lt[jt+105|0]+(it>>>8|0)|0,Vt[jt+105|0]=it,it=lt[jt+106|0]+(it>>>8|0)|0,Vt[jt+106|0]=it,it=lt[jt+107|0]+(it>>>8|0)|0,Vt[jt+107|0]=it,it=lt[jt+108|0]+(it>>>8|0)|0,Vt[jt+108|0]=it,it=lt[jt+109|0]+(it>>>8|0)|0,Vt[jt+109|0]=it,it=lt[jt+110|0]+(it>>>8|0)|0,Vt[jt+110|0]=it,Vt[jt+111|0]=lt[jt+111|0]+(it>>>8|0),Ur=Ur- -64|0,zr=zr- -64|0,ot=ot-1|0,!(!(ot=(Wr=Wr+-64|0)>>>0<4294967232?ot+1|0:ot)&Wr>>>0>63|ot))break}if(!(Wr|ot))break e}if(at=0,PA(jt+32|0,jt+96|0,jt,0),ot=1&Wr,(0|Wr)!=1)for(ft=-2&Wr,it=0;Kt=jt+32|0,Vt[zr+at|0]=lt[Kt+at|0]^lt[Ur+at|0],Vt[(Wr=1|at)+zr|0]=lt[Wr+Kt|0]^lt[Ur+Wr|0],at=at+2|0,(0|ft)!=(0|(it=it+2|0)););ot&&(Vt[zr+at|0]=lt[(jt+32|0)+at|0]^lt[Ur+at|0])}o0(jt+32|0,64),o0(jt,32)}return On=jt+112|0,0},function(zr,Ur,Wr,ot,it,ft,Kt,at,jt){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0;var ao,Eo,Ao=0;if(Eo=Ao=On,On=ao=Ao-192&-32,VA(jt|=0,at|=0,ao- -64|0),jt=32,Ao=0,Kt>>>0<32)at=0;else for(;rA(ft+Ao|0,ao- -64|0),at=jt,Ao=jt,(jt=jt+32|0)>>>0<=Kt>>>0;);if((jt=31&Kt)&&(q0((Ao=ao+32|0)|jt,0,32-jt|0),U0(Ao,ft+at|0,jt),rA(Ao,ao- -64|0)),Ao=32,at=0,it>>>0<32)jt=0;else for(;HA(zr+at|0,ot+at|0,ao- -64|0),at=jt=Ao,(Ao=jt+32|0)>>>0<=it>>>0;);return(ft=31&it)&&(q0((at=ao+32|0)|ft,0,32-ft|0),U0(at,ot+jt|0,ft),HA(ao,at,ao- -64|0),U0(zr+jt|0,ao,ft)),jA(Ur,Wr,Kt,it,ao- -64|0),On=Eo,0},function(zr,Ur,Wr,ot,it,ft,Kt,at,jt){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0;var ao,Eo,Ao=0;if(Eo=Ao=On,On=ao=Ao-224&-32,VA(jt|=0,at|=0,ao+96|0),jt=32,Ao=0,Kt>>>0<32)at=0;else for(;rA(ft+Ao|0,ao+96|0),at=jt,Ao=jt,(jt=jt+32|0)>>>0<=Kt>>>0;);(jt=31&Kt)&&(q0((Ao=ao- -64|0)|jt,0,32-jt|0),U0(Ao,ft+at|0,jt),rA(Ao,ao+96|0));e:{r:{t:{o:{n:{if(zr){if(Ao=32,Wr>>>0<32)break n;for(jt=0;FA(zr+jt|0,Ur+jt|0,ao+96|0),at=Ao,(Ao=(jt=Ao)+32|0)>>>0<=Wr>>>0;);}else{if(jt=32,Wr>>>0<32)break t;for(Ao=0;FA(ao+32|0,Ur+Ao|0,ao+96|0),at=jt,Ao=jt,(jt=jt+32|0)>>>0<=Wr>>>0;);}if(!(jt=31&Wr))break e;if(zr)break o;break r}if(at=0,!(jt=Wr))break e}qA(zr+at|0,Ur+at|0,jt,ao+96|0);break e}if(at=0,!(jt=Wr))break e}qA(ao+32|0,Ur+at|0,jt,ao+96|0)}jA(ao,it,Kt,Wr,ao+96|0),at=-1;e:{r:{if(Ur=it-16|0){if((0|Ur)==16)break r;break e}at=rs(ao,ot);break e}at=lA(ao,ot)}return!zr|!at||q0(zr,0,Wr),On=Eo,0|at},function(zr,Ur,Wr,ot,it,ft,Kt,at,jt){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0;var ao,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0;if(On=ao=On-528|0,UA(jt|=0,at|=0,ao+400|0),at=0,Kt>>>0>=16)for(Ao=ao+416|0,_o=ao+432|0,$o=ao+448|0,yo=ao+464|0,Do=ao+480|0,jt=16;Fo=lt[0|(at=ft+at|0)]|lt[at+1|0]<<8|lt[at+2|0]<<16|lt[at+3|0]<<24,No=lt[at+4|0]|lt[at+5|0]<<8|lt[at+6|0]<<16|lt[at+7|0]<<24,Go=lt[at+8|0]|lt[at+9|0]<<8|lt[at+10|0]<<16|lt[at+11|0]<<24,Xo=lt[at+12|0]|lt[at+13|0]<<8|lt[at+14|0]<<16|lt[at+15|0]<<24,at=br[Do+12>>2],br[ao+520>>2]=br[Do+8>>2],br[ao+524>>2]=at,at=br[Do+4>>2],br[ao+512>>2]=br[Do>>2],br[ao+516>>2]=at,at=br[yo+12>>2],br[ao+376>>2]=br[yo+8>>2],br[ao+380>>2]=at,at=br[yo+4>>2],br[ao+368>>2]=br[yo>>2],br[ao+372>>2]=at,at=br[Do+12>>2],br[ao+360>>2]=br[Do+8>>2],br[ao+364>>2]=at,at=br[Do+4>>2],br[ao+352>>2]=br[Do>>2],br[ao+356>>2]=at,Mo(at=ao+496|0,ao+368|0,ao+352|0),Eo=br[ao+508>>2],br[Do+8>>2]=br[ao+504>>2],br[Do+12>>2]=Eo,Eo=br[ao+500>>2],br[Do>>2]=br[ao+496>>2],br[Do+4>>2]=Eo,Eo=br[$o+12>>2],br[ao+344>>2]=br[$o+8>>2],br[ao+348>>2]=Eo,Eo=br[$o+4>>2],br[ao+336>>2]=br[$o>>2],br[ao+340>>2]=Eo,Eo=br[yo+12>>2],br[ao+328>>2]=br[yo+8>>2],br[ao+332>>2]=Eo,Eo=br[yo+4>>2],br[ao+320>>2]=br[yo>>2],br[ao+324>>2]=Eo,Mo(at,ao+336|0,ao+320|0),Eo=br[ao+508>>2],br[yo+8>>2]=br[ao+504>>2],br[yo+12>>2]=Eo,Eo=br[ao+500>>2],br[yo>>2]=br[ao+496>>2],br[yo+4>>2]=Eo,Eo=br[_o+12>>2],br[ao+312>>2]=br[_o+8>>2],br[ao+316>>2]=Eo,Eo=br[_o+4>>2],br[ao+304>>2]=br[_o>>2],br[ao+308>>2]=Eo,Eo=br[$o+12>>2],br[ao+296>>2]=br[$o+8>>2],br[ao+300>>2]=Eo,Eo=br[$o+4>>2],br[ao+288>>2]=br[$o>>2],br[ao+292>>2]=Eo,Mo(at,ao+304|0,ao+288|0),Eo=br[ao+508>>2],br[$o+8>>2]=br[ao+504>>2],br[$o+12>>2]=Eo,Eo=br[ao+500>>2],br[$o>>2]=br[ao+496>>2],br[$o+4>>2]=Eo,Eo=br[Ao+12>>2],br[ao+280>>2]=br[Ao+8>>2],br[ao+284>>2]=Eo,Eo=br[Ao+4>>2],br[ao+272>>2]=br[Ao>>2],br[ao+276>>2]=Eo,Eo=br[_o+12>>2],br[ao+264>>2]=br[_o+8>>2],br[ao+268>>2]=Eo,Eo=br[_o+4>>2],br[ao+256>>2]=br[_o>>2],br[ao+260>>2]=Eo,Mo(at,ao+272|0,ao+256|0),Eo=br[ao+508>>2],br[_o+8>>2]=br[ao+504>>2],br[_o+12>>2]=Eo,Eo=br[ao+500>>2],br[_o>>2]=br[ao+496>>2],br[_o+4>>2]=Eo,Eo=br[ao+412>>2],br[ao+248>>2]=br[ao+408>>2],br[ao+252>>2]=Eo,Eo=br[ao+404>>2],br[ao+240>>2]=br[ao+400>>2],br[ao+244>>2]=Eo,Eo=br[Ao+12>>2],br[ao+232>>2]=br[Ao+8>>2],br[ao+236>>2]=Eo,Eo=br[Ao+4>>2],br[ao+224>>2]=br[Ao>>2],br[ao+228>>2]=Eo,Mo(at,ao+240|0,ao+224|0),Eo=br[ao+508>>2],br[Ao+8>>2]=br[ao+504>>2],br[Ao+12>>2]=Eo,Eo=br[ao+500>>2],br[Ao>>2]=br[ao+496>>2],br[Ao+4>>2]=Eo,Eo=br[ao+524>>2],br[ao+216>>2]=br[ao+520>>2],br[ao+220>>2]=Eo,Eo=br[ao+412>>2],br[ao+200>>2]=br[ao+408>>2],br[ao+204>>2]=Eo,Eo=br[ao+516>>2],br[ao+208>>2]=br[ao+512>>2],br[ao+212>>2]=Eo,Eo=br[ao+404>>2],br[ao+192>>2]=br[ao+400>>2],br[ao+196>>2]=Eo,Mo(at,ao+208|0,ao+192|0),br[ao+412>>2]=Xo^br[ao+508>>2],br[ao+408>>2]=br[ao+504>>2]^Go,br[ao+404>>2]=br[ao+500>>2]^No,br[ao+400>>2]=br[ao+496>>2]^Fo,(jt=(at=jt)+16|0)>>>0<=Kt>>>0;);if((jt=15&Kt)&&(q0((Ao=ao+384|0)|jt,0,16-jt|0),U0(Ao,ft+at|0,jt),jt=br[ao+384>>2],Ao=br[ao+388>>2],_o=br[ao+392>>2],$o=br[ao+396>>2],at=br[ao+492>>2],ft=br[ao+488>>2],br[ao+520>>2]=ft,br[ao+524>>2]=at,yo=br[ao+476>>2],br[ao+184>>2]=br[ao+472>>2],br[ao+188>>2]=yo,br[ao+168>>2]=ft,br[ao+172>>2]=at,at=br[ao+484>>2],ft=br[ao+480>>2],br[ao+512>>2]=ft,br[ao+516>>2]=at,yo=br[ao+468>>2],br[ao+176>>2]=br[ao+464>>2],br[ao+180>>2]=yo,br[ao+160>>2]=ft,br[ao+164>>2]=at,Mo(ft=ao+496|0,ao+176|0,ao+160|0),at=br[ao+508>>2],br[ao+488>>2]=br[ao+504>>2],br[ao+492>>2]=at,at=br[ao+460>>2],br[ao+152>>2]=br[ao+456>>2],br[ao+156>>2]=at,at=br[ao+476>>2],br[ao+136>>2]=br[ao+472>>2],br[ao+140>>2]=at,at=br[ao+500>>2],br[ao+480>>2]=br[ao+496>>2],br[ao+484>>2]=at,at=br[ao+452>>2],br[ao+144>>2]=br[ao+448>>2],br[ao+148>>2]=at,at=br[ao+468>>2],br[ao+128>>2]=br[ao+464>>2],br[ao+132>>2]=at,Mo(ft,ao+144|0,ao+128|0),at=br[ao+508>>2],br[ao+472>>2]=br[ao+504>>2],br[ao+476>>2]=at,at=br[ao+444>>2],br[ao+120>>2]=br[ao+440>>2],br[ao+124>>2]=at,at=br[ao+460>>2],br[ao+104>>2]=br[ao+456>>2],br[ao+108>>2]=at,at=br[ao+500>>2],br[ao+464>>2]=br[ao+496>>2],br[ao+468>>2]=at,at=br[ao+436>>2],br[ao+112>>2]=br[ao+432>>2],br[ao+116>>2]=at,at=br[ao+452>>2],br[ao+96>>2]=br[ao+448>>2],br[ao+100>>2]=at,Mo(ft,ao+112|0,ao+96|0),at=br[ao+508>>2],br[ao+456>>2]=br[ao+504>>2],br[ao+460>>2]=at,at=br[ao+428>>2],br[ao+88>>2]=br[ao+424>>2],br[ao+92>>2]=at,at=br[ao+444>>2],br[ao+72>>2]=br[ao+440>>2],br[ao+76>>2]=at,at=br[ao+500>>2],br[ao+448>>2]=br[ao+496>>2],br[ao+452>>2]=at,at=br[ao+420>>2],br[ao+80>>2]=br[ao+416>>2],br[ao+84>>2]=at,at=br[ao+436>>2],br[ao+64>>2]=br[ao+432>>2],br[ao+68>>2]=at,Mo(ft,ao+80|0,ao- -64|0),at=br[ao+508>>2],br[ao+440>>2]=br[ao+504>>2],br[ao+444>>2]=at,at=br[ao+412>>2],br[ao+56>>2]=br[ao+408>>2],br[ao+60>>2]=at,at=br[ao+428>>2],br[ao+40>>2]=br[ao+424>>2],br[ao+44>>2]=at,at=br[ao+500>>2],br[ao+432>>2]=br[ao+496>>2],br[ao+436>>2]=at,at=br[ao+404>>2],br[ao+48>>2]=br[ao+400>>2],br[ao+52>>2]=at,at=br[ao+420>>2],br[ao+32>>2]=br[ao+416>>2],br[ao+36>>2]=at,Mo(ft,ao+48|0,ao+32|0),at=br[ao+508>>2],br[ao+424>>2]=br[ao+504>>2],br[ao+428>>2]=at,at=br[ao+524>>2],br[ao+24>>2]=br[ao+520>>2],br[ao+28>>2]=at,at=br[ao+412>>2],br[ao+8>>2]=br[ao+408>>2],br[ao+12>>2]=at,at=br[ao+500>>2],br[ao+416>>2]=br[ao+496>>2],br[ao+420>>2]=at,at=br[ao+516>>2],br[ao+16>>2]=br[ao+512>>2],br[ao+20>>2]=at,at=br[ao+404>>2],br[ao>>2]=br[ao+400>>2],br[ao+4>>2]=at,Mo(ft,ao+16|0,ao),br[ao+412>>2]=$o^br[ao+508>>2],br[ao+408>>2]=_o^br[ao+504>>2],br[ao+404>>2]=Ao^br[ao+500>>2],br[ao+400>>2]=jt^br[ao+496>>2]),ft=16,at=0,it>>>0<16)jt=0;else for(;zA(zr+at|0,ot+at|0,ao+400|0),jt=ft,(ft=(at=ft)+16|0)>>>0<=it>>>0;);return(ft=15&it)&&(q0((at=ao+384|0)|ft,0,16-ft|0),U0(at,ot+jt|0,ft),zA(ot=ao+512|0,at,ao+400|0),U0(zr+jt|0,ot,ft)),GA(Ur,Wr,Kt,it,ao+400|0),On=ao+528|0,0},function(zr,Ur,Wr,ot,it,ft,Kt,at,jt){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0;var ao,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0,No=0,Go=0,Xo=0;if(On=ao=On-544|0,UA(jt|=0,at|=0,ao+432|0),at=0,Kt>>>0>=16)for(Ao=ao+448|0,_o=ao+464|0,$o=ao+480|0,yo=ao+496|0,Do=ao+512|0,jt=16;Fo=lt[0|(at=ft+at|0)]|lt[at+1|0]<<8|lt[at+2|0]<<16|lt[at+3|0]<<24,No=lt[at+4|0]|lt[at+5|0]<<8|lt[at+6|0]<<16|lt[at+7|0]<<24,Go=lt[at+8|0]|lt[at+9|0]<<8|lt[at+10|0]<<16|lt[at+11|0]<<24,Xo=lt[at+12|0]|lt[at+13|0]<<8|lt[at+14|0]<<16|lt[at+15|0]<<24,at=br[Do+12>>2],br[ao+392>>2]=br[Do+8>>2],br[ao+396>>2]=at,at=br[Do+4>>2],br[ao+384>>2]=br[Do>>2],br[ao+388>>2]=at,at=br[yo+12>>2],br[ao+376>>2]=br[yo+8>>2],br[ao+380>>2]=at,at=br[yo+4>>2],br[ao+368>>2]=br[yo>>2],br[ao+372>>2]=at,at=br[Do+12>>2],br[ao+360>>2]=br[Do+8>>2],br[ao+364>>2]=at,at=br[Do+4>>2],br[ao+352>>2]=br[Do>>2],br[ao+356>>2]=at,Mo(at=ao+528|0,ao+368|0,ao+352|0),Eo=br[ao+540>>2],br[Do+8>>2]=br[ao+536>>2],br[Do+12>>2]=Eo,Eo=br[ao+532>>2],br[Do>>2]=br[ao+528>>2],br[Do+4>>2]=Eo,Eo=br[$o+12>>2],br[ao+344>>2]=br[$o+8>>2],br[ao+348>>2]=Eo,Eo=br[$o+4>>2],br[ao+336>>2]=br[$o>>2],br[ao+340>>2]=Eo,Eo=br[yo+12>>2],br[ao+328>>2]=br[yo+8>>2],br[ao+332>>2]=Eo,Eo=br[yo+4>>2],br[ao+320>>2]=br[yo>>2],br[ao+324>>2]=Eo,Mo(at,ao+336|0,ao+320|0),Eo=br[ao+540>>2],br[yo+8>>2]=br[ao+536>>2],br[yo+12>>2]=Eo,Eo=br[ao+532>>2],br[yo>>2]=br[ao+528>>2],br[yo+4>>2]=Eo,Eo=br[_o+12>>2],br[ao+312>>2]=br[_o+8>>2],br[ao+316>>2]=Eo,Eo=br[_o+4>>2],br[ao+304>>2]=br[_o>>2],br[ao+308>>2]=Eo,Eo=br[$o+12>>2],br[ao+296>>2]=br[$o+8>>2],br[ao+300>>2]=Eo,Eo=br[$o+4>>2],br[ao+288>>2]=br[$o>>2],br[ao+292>>2]=Eo,Mo(at,ao+304|0,ao+288|0),Eo=br[ao+540>>2],br[$o+8>>2]=br[ao+536>>2],br[$o+12>>2]=Eo,Eo=br[ao+532>>2],br[$o>>2]=br[ao+528>>2],br[$o+4>>2]=Eo,Eo=br[Ao+12>>2],br[ao+280>>2]=br[Ao+8>>2],br[ao+284>>2]=Eo,Eo=br[Ao+4>>2],br[ao+272>>2]=br[Ao>>2],br[ao+276>>2]=Eo,Eo=br[_o+12>>2],br[ao+264>>2]=br[_o+8>>2],br[ao+268>>2]=Eo,Eo=br[_o+4>>2],br[ao+256>>2]=br[_o>>2],br[ao+260>>2]=Eo,Mo(at,ao+272|0,ao+256|0),Eo=br[ao+540>>2],br[_o+8>>2]=br[ao+536>>2],br[_o+12>>2]=Eo,Eo=br[ao+532>>2],br[_o>>2]=br[ao+528>>2],br[_o+4>>2]=Eo,Eo=br[ao+444>>2],br[ao+248>>2]=br[ao+440>>2],br[ao+252>>2]=Eo,Eo=br[ao+436>>2],br[ao+240>>2]=br[ao+432>>2],br[ao+244>>2]=Eo,Eo=br[Ao+12>>2],br[ao+232>>2]=br[Ao+8>>2],br[ao+236>>2]=Eo,Eo=br[Ao+4>>2],br[ao+224>>2]=br[Ao>>2],br[ao+228>>2]=Eo,Mo(at,ao+240|0,ao+224|0),Eo=br[ao+540>>2],br[Ao+8>>2]=br[ao+536>>2],br[Ao+12>>2]=Eo,Eo=br[ao+532>>2],br[Ao>>2]=br[ao+528>>2],br[Ao+4>>2]=Eo,Eo=br[ao+396>>2],br[ao+216>>2]=br[ao+392>>2],br[ao+220>>2]=Eo,Eo=br[ao+444>>2],br[ao+200>>2]=br[ao+440>>2],br[ao+204>>2]=Eo,Eo=br[ao+388>>2],br[ao+208>>2]=br[ao+384>>2],br[ao+212>>2]=Eo,Eo=br[ao+436>>2],br[ao+192>>2]=br[ao+432>>2],br[ao+196>>2]=Eo,Mo(at,ao+208|0,ao+192|0),br[ao+444>>2]=Xo^br[ao+540>>2],br[ao+440>>2]=br[ao+536>>2]^Go,br[ao+436>>2]=br[ao+532>>2]^No,br[ao+432>>2]=br[ao+528>>2]^Fo,(jt=(at=jt)+16|0)>>>0<=Kt>>>0;);(jt=15&Kt)&&(q0((Ao=ao+416|0)|jt,0,16-jt|0),U0(Ao,ft+at|0,jt),jt=br[ao+416>>2],Ao=br[ao+420>>2],_o=br[ao+424>>2],$o=br[ao+428>>2],at=br[ao+524>>2],ft=br[ao+520>>2],br[ao+392>>2]=ft,br[ao+396>>2]=at,yo=br[ao+508>>2],br[ao+184>>2]=br[ao+504>>2],br[ao+188>>2]=yo,br[ao+168>>2]=ft,br[ao+172>>2]=at,at=br[ao+516>>2],ft=br[ao+512>>2],br[ao+384>>2]=ft,br[ao+388>>2]=at,yo=br[ao+500>>2],br[ao+176>>2]=br[ao+496>>2],br[ao+180>>2]=yo,br[ao+160>>2]=ft,br[ao+164>>2]=at,Mo(ft=ao+528|0,ao+176|0,ao+160|0),at=br[ao+540>>2],br[ao+520>>2]=br[ao+536>>2],br[ao+524>>2]=at,at=br[ao+492>>2],br[ao+152>>2]=br[ao+488>>2],br[ao+156>>2]=at,at=br[ao+508>>2],br[ao+136>>2]=br[ao+504>>2],br[ao+140>>2]=at,at=br[ao+532>>2],br[ao+512>>2]=br[ao+528>>2],br[ao+516>>2]=at,at=br[ao+484>>2],br[ao+144>>2]=br[ao+480>>2],br[ao+148>>2]=at,at=br[ao+500>>2],br[ao+128>>2]=br[ao+496>>2],br[ao+132>>2]=at,Mo(ft,ao+144|0,ao+128|0),at=br[ao+540>>2],br[ao+504>>2]=br[ao+536>>2],br[ao+508>>2]=at,at=br[ao+476>>2],br[ao+120>>2]=br[ao+472>>2],br[ao+124>>2]=at,at=br[ao+492>>2],br[ao+104>>2]=br[ao+488>>2],br[ao+108>>2]=at,at=br[ao+532>>2],br[ao+496>>2]=br[ao+528>>2],br[ao+500>>2]=at,at=br[ao+468>>2],br[ao+112>>2]=br[ao+464>>2],br[ao+116>>2]=at,at=br[ao+484>>2],br[ao+96>>2]=br[ao+480>>2],br[ao+100>>2]=at,Mo(ft,ao+112|0,ao+96|0),at=br[ao+540>>2],br[ao+488>>2]=br[ao+536>>2],br[ao+492>>2]=at,at=br[ao+460>>2],br[ao+88>>2]=br[ao+456>>2],br[ao+92>>2]=at,at=br[ao+476>>2],br[ao+72>>2]=br[ao+472>>2],br[ao+76>>2]=at,at=br[ao+532>>2],br[ao+480>>2]=br[ao+528>>2],br[ao+484>>2]=at,at=br[ao+452>>2],br[ao+80>>2]=br[ao+448>>2],br[ao+84>>2]=at,at=br[ao+468>>2],br[ao+64>>2]=br[ao+464>>2],br[ao+68>>2]=at,Mo(ft,ao+80|0,ao- -64|0),at=br[ao+540>>2],br[ao+472>>2]=br[ao+536>>2],br[ao+476>>2]=at,at=br[ao+444>>2],br[ao+56>>2]=br[ao+440>>2],br[ao+60>>2]=at,at=br[ao+460>>2],br[ao+40>>2]=br[ao+456>>2],br[ao+44>>2]=at,at=br[ao+532>>2],br[ao+464>>2]=br[ao+528>>2],br[ao+468>>2]=at,at=br[ao+436>>2],br[ao+48>>2]=br[ao+432>>2],br[ao+52>>2]=at,at=br[ao+452>>2],br[ao+32>>2]=br[ao+448>>2],br[ao+36>>2]=at,Mo(ft,ao+48|0,ao+32|0),at=br[ao+540>>2],br[ao+456>>2]=br[ao+536>>2],br[ao+460>>2]=at,at=br[ao+396>>2],br[ao+24>>2]=br[ao+392>>2],br[ao+28>>2]=at,at=br[ao+444>>2],br[ao+8>>2]=br[ao+440>>2],br[ao+12>>2]=at,at=br[ao+532>>2],br[ao+448>>2]=br[ao+528>>2],br[ao+452>>2]=at,at=br[ao+388>>2],br[ao+16>>2]=br[ao+384>>2],br[ao+20>>2]=at,at=br[ao+436>>2],br[ao>>2]=br[ao+432>>2],br[ao+4>>2]=at,Mo(ft,ao+16|0,ao),br[ao+444>>2]=$o^br[ao+540>>2],br[ao+440>>2]=_o^br[ao+536>>2],br[ao+436>>2]=Ao^br[ao+532>>2],br[ao+432>>2]=jt^br[ao+528>>2]);e:{r:{t:{o:{n:{if(zr){if(ft=16,Wr>>>0<16)break n;for(jt=0;KA(zr+jt|0,Ur+jt|0,ao+432|0),jt=at=ft,(ft=at+16|0)>>>0<=Wr>>>0;);}else{if(jt=16,Wr>>>0<16)break t;for(ft=0;KA(ao+528|0,Ur+ft|0,ao+432|0),ft=at=jt,(jt=at+16|0)>>>0<=Wr>>>0;);}if(!(jt=15&Wr))break e;if(zr)break o;break r}if(at=0,!(jt=Wr))break e}WA(zr+at|0,Ur+at|0,jt,ao+432|0);break e}if(at=0,!(jt=Wr))break e}WA(ao+528|0,Ur+at|0,jt,ao+432|0)}GA(ao+384|0,it,Kt,Wr,ao+432|0),at=-1;e:{r:{if(Ur=it-16|0){if((0|Ur)==16)break r;break e}at=rs(ao+384|0,ot);break e}at=lA(ao+384|0,ot)}return!zr|!at||q0(zr,0,Wr),On=ao+544|0,0|at}],MA.grow=function(zr){var Ur=this.length;return this.length=this.length+zr,Ur},MA.set=function(zr,Ur){this[zr]=Ur},MA.get=function(zr){return this[zr]},MA);function x1(){return yl.byteLength/65536|0}return{f:function(){},g:X0,h:su,i:X0,j:_0,k:k1,l:p1,m:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return 0|C2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0,at|=0,ao|=0,Eo|=0,36784)},n:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo,Ao){return 0|R2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0,at|=0,jt|=0,Eo|=0,Ao|=0,36784)},o:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return 0|h2(zr|=0,Ur|=0,ot|=0,it|=0,ft|=0,Kt|=0,at|=0,jt|=0,ao|=0,Eo|=0,36788)},p:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return 0|Q2(zr|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0,at|=0,jt|=0,ao|=0,Eo|=0,36788)},q:_0,r:su,s:_0,t:_0,u:k1,v:Rl,w:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return 0|C2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0,at|=0,ao|=0,Eo|=0,36792)},x:function(zr,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Kt,at,jt,ao,Eo){return zr|=0,Ur|=0,ot|=0,Kt|=0,jt|=0,Kt|=jt=0,!(it|=0)&(ot|=jt)>>>0<4294967280?(t2(zr,zr+ot|0,0,Wr|=0,ot,it,ft|=0,Kt,at|=0,ao|=0,Eo|=0),Ur&&(it=(zr=ot+16|0)>>>0<16?it+1|0:it,br[Ur>>2]=zr,br[Ur+4>>2]=it)):(El(),Qs()),0},W:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return 0|Al(zr|=0,Wr|=0,(zr=0)|(ot|=0),it|=0,ft|=0,Kt|=0,zr|(at|=0),jt|=0,ao|=0,Eo|=0)},X:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao,Eo){return Ur|=0,Wr|=0,ot|=0,it|=0,at|=0,at|=0,Wr=-1,!(ft|=0)&(it|=0)>>>0>=16|ft&&(Wr=Al(zr|=0,ot,it-16|0,ft-(it>>>0<16)|0,(ot+it|0)-16|0,Kt|=0,at,jt|=0,ao|=0,Eo|=0)),Ur&&(br[Ur>>2]=Wr?0:it-16|0,br[Ur+4>>2]=Wr?0:ft-(it>>>0<16)|0),0|Wr},Y:_0,Z:Eu,_:su,$:X0,aa:Pu,ba:Rl,ca:_0,da:_0,ea:function(){return 1464},fa:Cs,ga:s2,ha:Rl,ia:_0,ja:_0,ka:DA,la:Rl,ma:ku,na:function(zr,Ur,Wr,ot){return 0|Cu(zr|=0,Ur|=0,Wr|=0,ot|=0)},oa:cA,pa:function(zr,Ur,Wr,ot,it){var ft;return zr|=0,Ur|=0,Wr|=0,ot|=0,On=ft=On-240|0,ku(ft,it|=0,32),au(ft,Ur,Wr,ot),bu(ft,Ur=ft+208|0),au(Wr=ft+104|0,Ur,32,0),bu(Wr,zr),o0(Ur,32),On=ft+240|0,0},qa:function(zr,Ur,Wr,ot,it){var ft,Kt;return zr|=0,Ur|=0,Wr|=0,ot|=0,On=ft=On-272|0,ku(Kt=ft+32|0,it|=0,32),au(Kt,Ur,Wr,ot),b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,Kt|=0,at|=0,jt|=0)},vc:Hu,wc:function(zr,Ur,Wr,ot,it,ft){zr|=0,Ur|=0,it|=0,ft|=0;var Kt=0,at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0;if(Kt=-1,!((ot|=0)-65>>>0<4294967232|(Wr|=0)>>>0>64)){e:{if(!Wr||!Ur){if(((ao=255&ot)-65&255)>>>0>191){it?(at=725511199^(lt[it+8|0]|lt[it+9|0]<<8|lt[it+10|0]<<16|lt[it+11|0]<<24),Wr=-1694144372^(lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24),Ur=-1377402159^(lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24),it=1359893119^(lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24)):(at=725511199,Wr=-1694144372,Ur=-1377402159,it=1359893119),ft?(jt=327033209^(lt[ft+8|0]|lt[ft+9|0]<<8|lt[ft+10|0]<<16|lt[ft+11|0]<<24),ot=1541459225^(lt[ft+12|0]|lt[ft+13|0]<<8|lt[ft+14|0]<<16|lt[ft+15|0]<<24),Kt=-79577749^(lt[0|ft]|lt[ft+1|0]<<8|lt[ft+2|0]<<16|lt[ft+3|0]<<24),ft=528734635^(lt[ft+4|0]|lt[ft+5|0]<<8|lt[ft+6|0]<<16|lt[ft+7|0]<<24)):(jt=327033209,ot=1541459225,Kt=-79577749,ft=528734635),q0(zr- -64|0,0,293),Vt[zr+56|0]=jt,Vt[zr+57|0]=jt>>>8,Vt[zr+58|0]=jt>>>16,Vt[zr+59|0]=jt>>>24,Vt[zr+60|0]=ot,Vt[zr+61|0]=ot>>>8,Vt[zr+62|0]=ot>>>16,Vt[zr+63|0]=ot>>>24,Vt[zr+48|0]=Kt,Vt[zr+49|0]=Kt>>>8,Vt[zr+50|0]=Kt>>>16,Vt[zr+51|0]=Kt>>>24,Vt[zr+52|0]=ft,Vt[zr+53|0]=ft>>>8,Vt[zr+54|0]=ft>>>16,Vt[zr+55|0]=ft>>>24,Vt[zr+40|0]=at,Vt[zr+41|0]=at>>>8,Vt[zr+42|0]=at>>>16,Vt[zr+43|0]=at>>>24,Vt[zr+44|0]=Wr,Vt[zr+45|0]=Wr>>>8,Vt[zr+46|0]=Wr>>>16,Vt[zr+47|0]=Wr>>>24,Vt[zr+32|0]=Ur,Vt[zr+33|0]=Ur>>>8,Vt[zr+34|0]=Ur>>>16,Vt[zr+35|0]=Ur>>>24,Vt[zr+36|0]=it,Vt[zr+37|0]=it>>>8,Vt[zr+38|0]=it>>>16,Vt[zr+39|0]=it>>>24,Vt[zr+24|0]=241,Vt[zr+25|0]=54,Vt[zr+26|0]=29,Vt[zr+27|0]=95,Vt[zr+28|0]=58,Vt[zr+29|0]=245,Vt[zr+30|0]=79,Vt[zr+31|0]=165,Vt[zr+16|0]=43,Vt[zr+17|0]=248,Vt[zr+18|0]=148,Vt[zr+19|0]=254,Vt[zr+20|0]=114,Vt[zr+21|0]=243,Vt[zr+22|0]=110,Vt[zr+23|0]=60,Vt[zr+8|0]=59,Vt[zr+9|0]=167,Vt[zr+10|0]=202,Vt[zr+11|0]=132,Vt[zr+12|0]=133,Vt[zr+13|0]=174,Vt[zr+14|0]=103,Vt[zr+15|0]=187,Ur=-222443256^ao,Vt[0|zr]=Ur,Vt[zr+1|0]=Ur>>>8,Vt[zr+2|0]=Ur>>>16,Vt[zr+3|0]=Ur>>>24,Vt[zr+4|0]=103,Vt[zr+5|0]=230,Vt[zr+6|0]=9,Vt[zr+7|0]=106;break e}El(),Qs()}On=Ao=On-128|0,!Ur|((yo=255&ot)-65&255)>>>0<=191|((Kt=255&Wr)-65&255)>>>0<=191?(El(),Qs()):(it?(at=725511199^(lt[it+8|0]|lt[it+9|0]<<8|lt[it+10|0]<<16|lt[it+11|0]<<24),Wr=-1694144372^(lt[it+12|0]|lt[it+13|0]<<8|lt[it+14|0]<<16|lt[it+15|0]<<24),ao=-1377402159^(lt[0|it]|lt[it+1|0]<<8|lt[it+2|0]<<16|lt[it+3|0]<<24),it=1359893119^(lt[it+4|0]|lt[it+5|0]<<8|lt[it+6|0]<<16|lt[it+7|0]<<24)):(at=725511199,Wr=-1694144372,ao=-1377402159,it=1359893119),ft?(jt=327033209^(lt[ft+8|0]|lt[ft+9|0]<<8|lt[ft+10|0]<<16|lt[ft+11|0]<<24),ot=1541459225^(lt[ft+12|0]|lt[ft+13|0]<<8|lt[ft+14|0]<<16|lt[ft+15|0]<<24),Eo=-79577749^(lt[0|ft]|lt[ft+1|0]<<8|lt[ft+2|0]<<16|lt[ft+3|0]<<24),ft=528734635^(lt[ft+4|0]|lt[ft+5|0]<<8|lt[ft+6|0]<<16|lt[ft+7|0]<<24)):(jt=327033209,ot=1541459225,Eo=-79577749,ft=528734635),q0(zr- -64|0,0,293),Vt[zr+56|0]=jt,Vt[zr+57|0]=jt>>>8,Vt[zr+58|0]=jt>>>16,Vt[zr+59|0]=jt>>>24,Vt[zr+60|0]=ot,Vt[zr+61|0]=ot>>>8,Vt[zr+62|0]=ot>>>16,Vt[zr+63|0]=ot>>>24,Vt[zr+48|0]=Eo,Vt[zr+49|0]=Eo>>>8,Vt[zr+50|0]=Eo>>>16,Vt[zr+51|0]=Eo>>>24,Vt[zr+52|0]=ft,Vt[zr+53|0]=ft>>>8,Vt[zr+54|0]=ft>>>16,Vt[zr+55|0]=ft>>>24,Vt[zr+40|0]=at,Vt[zr+41|0]=at>>>8,Vt[zr+42|0]=at>>>16,Vt[zr+43|0]=at>>>24,Vt[zr+44|0]=Wr,Vt[zr+45|0]=Wr>>>8,Vt[zr+46|0]=Wr>>>16,Vt[zr+47|0]=Wr>>>24,Vt[zr+32|0]=ao,Vt[zr+33|0]=ao>>>8,Vt[zr+34|0]=ao>>>16,Vt[zr+35|0]=ao>>>24,Vt[zr+36|0]=it,Vt[zr+37|0]=it>>>8,Vt[zr+38|0]=it>>>16,Vt[zr+39|0]=it>>>24,Vt[zr+24|0]=241,Vt[zr+25|0]=54,Vt[zr+26|0]=29,Vt[zr+27|0]=95,Vt[zr+28|0]=58,Vt[zr+29|0]=245,Vt[zr+30|0]=79,Vt[zr+31|0]=165,Vt[zr+16|0]=43,Vt[zr+17|0]=248,Vt[zr+18|0]=148,Vt[zr+19|0]=254,Vt[zr+20|0]=114,Vt[zr+21|0]=243,Vt[zr+22|0]=110,Vt[zr+23|0]=60,Vt[zr+8|0]=59,Vt[zr+9|0]=167,Vt[zr+10|0]=202,Vt[zr+11|0]=132,Vt[zr+12|0]=133,Vt[zr+13|0]=174,Vt[zr+14|0]=103,Vt[zr+15|0]=187,Wr=-222443256^(Kt<<8|yo),Vt[0|zr]=Wr,Vt[zr+1|0]=Wr>>>8,Vt[zr+2|0]=Wr>>>16,Vt[zr+3|0]=Wr>>>24,Wr=Kt>>>24^1779033703,Vt[zr+4|0]=Wr,Vt[zr+5|0]=Wr>>>8,Vt[zr+6|0]=Wr>>>16,Vt[zr+7|0]=Wr>>>24,q0(Kt+Ao|0,0,Kt<<24>>24>=0?128-Kt|0:0),Wr=U0(Ao,Ur,Kt),U0(zr+96|0,Wr,128),Ur=128+(lt[zr+352|0]|lt[zr+353|0]<<8|lt[zr+354|0]<<16|lt[zr+355|0]<<24)|0,Vt[zr+352|0]=Ur,Vt[zr+353|0]=Ur>>>8,Vt[zr+354|0]=Ur>>>16,Vt[zr+355|0]=Ur>>>24,o0(Wr,128),On=Wr+128|0)}Kt=0}return 0|Kt},xc:ru,yc:_A,zc:Tl,Ac:X2,Bc:function(){return 1533},Cc:_0,Dc:function(){return 104},Ec:bp,Fc:function(zr,Ur,Wr,ot){return 0|au(zr|=0,Ur|=0,Wr|=0,ot|=0)},Gc:bu,Hc:function(zr,Ur,Wr,ot){zr|=0,Ur|=0,Wr|=0,ot|=0;var it,ft=0;return On=it=On-112|0,ft=br[8603],br[it+16>>2]=br[8602],br[it+20>>2]=ft,ft=br[8605],br[it+24>>2]=br[8604],br[it+28>>2]=ft,ft=br[8607],br[it+32>>2]=br[8606],br[it+36>>2]=ft,br[it+40>>2]=0,br[it+44>>2]=0,ft=br[8601],br[it+8>>2]=br[8600],br[it+12>>2]=ft,au(ft=it+8|0,Ur,Wr,ot),bu(ft,zr),On=it+112|0,0},Ic:Tl,Jc:DA,Kc:Du,Lc:Hp,Mc:eu,Nc:X2,Oc:X0,Pc:Tl,Qc:Su,Rc:_0,Sc:a2,Tc:y1,Uc:X0,Vc:Tl,Wc:Su,Xc:_0,Yc:a2,Zc:Rl,_c:function(zr,Ur,Wr){return 0|ku(zr|=0,Ur|=0,Wr|=0)},$c:function(zr,Ur,Wr){return 0|Cu(zr|=0,Ur|=0,Wr|=0,0)},ad:function(zr,Ur){return cA(zr|=0,Ur|=0),o0(zr,4),0},bd:function(zr,Ur,Wr,ot,it){var ft;return zr|=0,ot|=0,it|=0,On=ft=On-208|0,ku(ft,Ur|=0,Wr|=0),Cu(ft,ot,it,0),cA(ft,zr),o0(ft,4),On=ft+208|0,0},cd:Rl,dd:function(zr,Ur,Wr,ot,it){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0;var ft,Kt=0,at=0,jt=0;if(On=ft=On-256|0,Vt[ft+15|0]=1,Ur>>>0<=8160){if(Ur>>>0>=32)for(Kt=32;jt=Kt,ku(Kt=ft+48|0,it,32),at&&Cu(Kt,(zr+at|0)-32|0,32,0),Cu(Kt=ft+48|0,Wr,ot,0),Cu(Kt,ft+15|0,1,0),cA(Kt,zr+at|0),Vt[ft+15|0]=lt[ft+15|0]+1,(Kt=(at=jt)+32|0)>>>0<=Ur>>>0;);(at=31&Ur)&&(ku(Ur=ft+48|0,it,32),jt&&Cu(Ur,(zr+jt|0)-32|0,32,0),Cu(Ur=ft+48|0,Wr,ot,0),Cu(Ur,ft+15|0,1,0),cA(Wr=Ur,Ur=ft+16|0),U0(zr+jt|0,Ur,at),o0(Ur,32)),o0(ft+48|0,208),zr=0}else br[9392]=28,zr=-1;return On=ft+256|0,0|zr},ed:_0,fd:su,gd:function(){return 8160},hd:DA,id:e1,jd:function(zr,Ur,Wr){return 0|vu(zr|=0,Ur|=0,Wr|=0,0)},kd:function(zr,Ur){return Tu(zr|=0,Ur|=0),o0(zr,4),0},ld:function(zr,Ur,Wr,ot,it){var ft;return zr|=0,ot|=0,it|=0,On=ft=On-416|0,Wn(ft,Ur|=0,Wr|=0),vu(ft,ot,it,0),Tu(ft,zr),o0(ft,4),On=ft+416|0,0},md:function(zr){Jl(zr|=0,64)},nd:function(zr,Ur,Wr,ot,it){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0;var ft,Kt=0,at=0,jt=0;if(On=ft=On-496|0,Vt[ft+15|0]=1,Ur>>>0<=16320){if(Ur>>>0>=64)for(Kt=64;jt=Kt,Wn(Kt=ft+80|0,it,64),at&&vu(Kt,(zr+at|0)-64|0,64,0),vu(Kt=ft+80|0,Wr,ot,0),vu(Kt,ft+15|0,1,0),Tu(Kt,zr+at|0),Vt[ft+15|0]=lt[ft+15|0]+1,(Kt=(at=jt)- -64|0)>>>0<=Ur>>>0;);(at=63&Ur)&&(Wn(Ur=ft+80|0,it,64),jt&&vu(Ur,(zr+jt|0)-64|0,64,0),vu(Ur=ft+80|0,Wr,ot,0),vu(Ur,ft+15|0,1,0),Tu(Wr=Ur,Ur=ft+16|0),U0(zr+jt|0,Ur,at),o0(Ur,64)),o0(ft+80|0,416),zr=0}else br[9392]=28,zr=-1;return On=ft+496|0,0|zr},od:Tl,pd:su,qd:function(){return 16320},rd:function(zr,Ur,Wr){return zr|=0,Yp(Ur|=0,32,Wr|=0,32,0,0,0),0|Vp(zr,Ur)},sd:function(zr,Ur){return zr|=0,Jl(Ur|=0,32),0|Vp(zr,Ur)},td:function(zr,Ur,Wr,ot,it){Ur|=0,Wr|=0,ot|=0,it|=0;var ft,Kt,at=0,jt=0,ao=0;if(Kt=at=On,On=at=at-512&-64,ft=(zr|=0)||Ur){if(ao=-1,!Jp(jt=at+96|0,ot,it)){for(ot=Ur||zr,zr=0,zu(Ur=at+128|0,0,0,64),ru(Ur,jt,32,0),o0(jt,32),ru(Ur,Wr,32,0),ru(Ur,it,32,0),Ku(Ur,at+32|0,64),o0(Ur,384);Wr=(Ur=at+32|0)+zr|0,Vt[zr+ft|0]=lt[0|Wr],Vt[zr+ot|0]=lt[Wr+32|0],Vt[(it=1|zr)+ft|0]=lt[Ur+it|0],Vt[ot+it|0]=lt[Wr+33|0],(0|(zr=zr+2|0))!=32;);o0(Ur,64),ao=0}return On=Kt,0|ao}El(),Qs()},ud:function(zr,Ur,Wr,ot,it){Ur|=0,Wr|=0,ot|=0,it|=0;var ft,Kt,at=0,jt=0,ao=0;if(Kt=at=On,On=at=at-512&-64,ft=(zr|=0)||Ur){if(ao=-1,!Jp(jt=at+96|0,ot,it)){for(ot=Ur||zr,zr=0,zu(Ur=at+128|0,0,0,64),ru(Ur,jt,32,0),o0(jt,32),ru(Ur,it,32,0),ru(Ur,Wr,32,0),Ku(Ur,at+32|0,64),o0(Ur,384);Wr=(Ur=at+32|0)+zr|0,Vt[zr+ot|0]=lt[0|Wr],Vt[zr+ft|0]=lt[Wr+32|0],Vt[(it=1|zr)+ot|0]=lt[Ur+it|0],Vt[it+ft|0]=lt[Wr+33|0],(0|(zr=zr+2|0))!=32;);o0(Ur,64),ao=0}return On=Kt,0|ao}El(),Qs()},vd:_0,wd:_0,xd:_0,yd:_0,zd:function(){return 1315},Ad:C1,Bd:X0,Cd:_0,Dd:z2,Ed:K2,Fd:function(zr,Ur){return 0|pu(zr|=0,Ur|=0)},Gd:_h,Hd:function(zr,Ur){return 0|hu(zr|=0,Ur|=0)},Id:function(){return 1496},Jd:Rl,Kd:z2,Ld:K2,Md:pu,Nd:_h,Od:hu,Pd:X0,Qd:_0,Rd:C1,Sd:Rl,Td:uA,Ud:X0,Vd:Hl,Wd:su,Xd:Hl,Yd:X0,Zd:Zp,_d:function(){return 1549},$d:Pp,ae:Hl,be:Wp,ce:Kp,de:Xp,ee:f1,fe:function(){return 6},ge:function(){return 134217728},he:Su,ie:function(){return 536870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r,ot,it,ft,Kt,at,jt,ao,2);break e}br[9392]=28,zr=-1}return 0|zr},cf:M2,df:function(zr,Ur,Wr,ot,it,ft,Kt,at){zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0,Wr|=0,it|=0;e:{switch((at|=0)-1|0){case 1:zr=v2(zr,Ur,Wr,ot,it,ft,Kt);break e;default:El(),Qs();case 0:}zr=y2(zr,Ur,Wr,ot,it,ft,Kt)}return 0|zr},ef:function(zr,Ur,Wr,ot){return Ur|=0,Wr|=0,ot|=0,xu(zr|=0,1559,10)?xu(zr,1549,9)?(br[9392]=28,zr=-1):zr=s1(zr,Ur,Wr,ot):zr=a1(zr,Ur,Wr,ot),0|zr},ff:function(zr,Ur,Wr,ot){return Ur|=0,Wr|=0,ot|=0,xu(zr|=0,1559,10)?xu(zr,1549,9)?(br[9392]=28,zr=-1):zr=l1(zr,Ur,Wr,ot):zr=u1(zr,Ur,Wr,ot),0|zr},gf:function(){return 1157},hf:function(){return 1438},jf:Vp,kf:Jp,lf:_0,mf:_0,nf:Bn,of:_p,pf:_0,qf:_0,rf:_0,sf:Eu,tf:_0,uf:X0,vf:X0,wf:Pu,xf:function(){return 1488},yf:wp,zf:kp,Af:Rl,Bf:j2,Cf:function(zr,Ur,Wr,ot,it,ft){return zr|=0,Ur|=0,it|=0,ft|=0,!(ot|=0)&(Wr|=0)>>>0>=4294967280|ot&&(El(),Qs()),x0(zr+16|0,zr,Ur,Wr,ot,it,ft),0},Df:F2,Ef:$2,Ff:wp,Gf:kp,Hf:_0,If:Eu,Jf:_0,Kf:X0,Lf:X0,Mf:Pu,Nf:Rl,Of:Rl,Pf:function(zr,Ur,Wr){return zr|=0,Wr|=0,Jl(Ur|=0,24),Zl(zr,Ur,Wr,0),Vt[zr+32|0]=1,Vt[zr+33|0]=0,Vt[zr+34|0]=0,Vt[zr+35|0]=0,Wr=lt[Ur+16|0]|lt[Ur+17|0]<<8|lt[Ur+18|0]<<16|lt[Ur+19|0]<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=at))}On=Kt+400|0;break e}El(),Qs()}return 0|Fo},Uf:function(){return 52},Vf:function(){return 17},Wf:Eu,Xf:_0,Yf:function(){return-18},Zf:su,_f:uA,$f:dA,ag:Pp,bg:Su,cg:X0,dg:function(){return 1523},eg:ZA,fg:p1,gg:Su,hg:X0,ig:ZA,jg:DA,kg:Tl,lg:_0,mg:_0,ng:Tl,og:E1,pg:function(){return 1449},qg:function(zr,Ur,Wr){return 0|ap(zr|=0,Ur|=0,Wr|=0)},rg:function(zr,Ur){return 0|lp(zr|=0,Ur|=0)},sg:g2,tg:n2,ug:J2,vg:V2,wg:function(zr){return 0|d1(zr|=0)},xg:Hp,yg:function(zr,Ur,Wr,ot){return 0|D2(zr|=0,Ur|=0,Wr|=0,ot|=0)},zg:function(zr,Ur,Wr){return 0|U2(zr|=0,Ur|=0,Wr|=0)},Ag:DA,Bg:Tl,Cg:_0,Dg:_0,Eg:Tl,Fg:E1,Gg:function(zr,Ur){zr|=0;var Wr,ot,it,ft,Kt,at,jt=0;return Wr=lt[8+(jt=Ur|=0)|0]|lt[jt+9|0]<<8|lt[jt+10|0]<<16|lt[jt+11|0]<<24,ot=lt[jt+12|0]|lt[jt+13|0]<<8|lt[jt+14|0]<<16|lt[jt+15|0]<<24,it=lt[jt+16|0]|lt[jt+17|0]<<8|lt[jt+18|0]<<16|lt[jt+19|0]<<24,ft=lt[jt+20|0]|lt[jt+21|0]<<8|lt[jt+22|0]<<16|lt[jt+23|0]<<24,Kt=lt[0|jt]|lt[jt+1|0]<<8|lt[jt+2|0]<<16|lt[jt+3|0]<<24,Ur=lt[jt+4|0]|lt[jt+5|0]<<8|lt[jt+6|0]<<16|lt[jt+7|0]<<24,at=lt[jt+28|0]|lt[jt+29|0]<<8|lt[jt+30|0]<<16|lt[jt+31|0]<<24,jt=lt[jt+24|0]|lt[jt+25|0]<<8|lt[jt+26|0]<<16|lt[jt+27|0]<<24,Vt[zr+24|0]=jt,Vt[zr+25|0]=jt>>>8,Vt[zr+26|0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0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0)},eh:Rl,fh:Rl,gh:_0,hh:Eu,ih:Hl,jh:function(){return 1540},kh:W2,lh:q2,mh:Rl,nh:_0,oh:Su,ph:Hl,qh:function(zr,Ur,Wr,ot,it){return 0|qp(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0)},rh:function(zr,Ur,Wr,ot,it,ft,Kt,at){return 0|QA(zr|=0,Ur|=0,(zr=0)|(Wr|=0),ot|=0,it|=0,zr|(ft|=0),Kt|=0,at|=0)},sh:function(zr,Ur,Wr,ot,it,ft){return 0|xp(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0)},th:Rl,uh:W2,vh:function(zr,Ur,Wr,ot,it,ft,Kt,at){var jt;return zr|=0,Ur|=0,Wr|=0,ot|=0,ft|=0,Kt|=0,On=jt=On-32|0,mu(jt,it|=0,at|=0,0),zr=QA(at=zr,Ur,(zr=0)|Wr,ot,it+16|0,zr|ft,Kt,jt),o0(jt,32),On=jt+32|0,0|zr},wh:q2,xh:_0,yh:Eu,zh:Hl,Ah:Rl,Bh:X0,Ch:_0,Dh:Tl,Eh:rs,Fh:lA,Gh:o1,Hh:function(){return 1089},Ih:function(){var zr,Ur;return On=zr=On-16|0,Vt[zr+15|0]=0,Ur=0|Gl(36800,zr+15|0,0),On=zr+16|0,0|Ur},Jh:Z2,Kh:function(zr){var Ur,Wr=0,ot=0;if(On=Ur=On-16|0,(zr|=0)>>>0>=2){for(Wr=(0-zr>>>0)%(zr>>>0)|0;Vt[Ur+15|0]=0,Wr>>>0>(ot=0|Gl(36800,Ur+15|0,0))>>>0;);Wr=(ot>>>0)%(zr>>>0)|0}return On=Ur+16|0,0|Wr},Lh:Jl,Mh:function(zr,Ur,Wr){Uu(zr|=0,Ur|=0,0,1574,Wr|=0)},Nh:_0,Oh:function(){var zr=0,Ur=0;return(zr=br[9524])&&(zr=br[zr+20>>2])&&(Ur=0|Nl[0|zr]()),0|Ur},Ph:function(zr,Ur,Wr){zr|=0,Ur|=0;var ot,it=0,ft=0,Kt=0;if(On=ot=On-16|0,Wr|=0)uu(1329,1175,197,1092),Qs();else{if(Ur)for(;Vt[ot+15|0]=0,ft=zr+it|0,Kt=0|Gl(36800,ot+15|0,0),Vt[0|ft]=Kt,(0|Ur)!=(0|(it=it+1|0)););On=ot+16|0}},Qh:function(zr,Ur,Wr,ot){zr|=0,Wr|=0;var it=0,ft=0,Kt=0;if(!((ot|=0)>>>0>2147483646|ot<<1>>>0>=(Ur|=0)>>>0)){if(Ur=0,ot){for(;it=(Ur<<1)+zr|0,ft=15&(Kt=lt[Ur+Wr|0]),Vt[it+1|0]=22272+((ft<<8)+(ft+65526&55552)|0)>>>8,ft=it,it=Kt>>>4|0,Vt[0|ft]=87+((it+65526>>>8&217)+it|0),(0|ot)!=(0|(Ur=Ur+1|0)););Ur=ot<<1}else Ur=0;return Vt[Ur+zr|0]=0,0|zr}El(),Qs()},Rh:function(zr,Ur,Wr,ot,it,ft,Kt){zr|=0,Ur|=0,Wr|=0,it|=0,ft|=0,Kt|=0;var at=0,jt=0,ao=0,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0;e:if(ot|=0){r:{t:{o:{n:{if(!it){for(jt=1,it=0;;){if(!(255&((_o=(65526+(ao=(223&(Ao=lt[Wr+at|0]))-55&255)^ao+65520)>>>8|0)|($o=65526+(Ao^=48)>>>8|0))))break o;if(Ur>>>0<=yo>>>0)break n;if(ao=ao&_o|Ao&$o,255&Eo?(Vt[zr+yo|0]=it|ao,yo=yo+1|0):it=ao<<4,Eo^=-1,(0|(at=at+1|0))==(0|ot))break}at=ot;break o}for(;;){a:{c:{A:{i:{l:{if(!(255&((Ao=(65526+(ao=(223&(jt=lt[Wr+at|0]))-55&255)^ao+65520)>>>8|0)|($o=65526+(_o=48^jt)>>>8|0)))){if(255&Eo)break t;if(!iA(it,jt))break e;if((at=Eo=at+1|0)>>>0>>0)break l;break e}if(Ur>>>0<=yo>>>0)break n;if(jt=ao&Ao|_o&$o,!(255&Eo))break i;Vt[zr+yo|0]=jt|Fo,yo=yo+1|0;break a}for(;;){if(!(255&((Ao=(65526+(ao=(223&(jt=lt[Wr+at|0]))-55&255)^ao+65520)>>>8|0)|($o=65526+(_o=48^jt)>>>8|0)))){if(!iA(it,jt))break e;if((at=at+1|0)>>>0>>0)continue;break A}break}if(Ur>>>0<=yo>>>0)break c;jt=ao&Ao|_o&$o}Fo=jt<<4,Eo=0;break a}at=ot>>>0>Eo>>>0?ot:Eo;break e}Eo=0;break n}if(Eo^=-1,jt=1,!((at=at+1|0)>>>0>>0))break}break o}br[9392]=68,jt=0}if(!(255&Eo))break r}br[9392]=28,Do=-1,at=at-1|0,yo=0;break e}jt||(yo=0,Do=-1)}return Kt?br[Kt>>2]=Wr+at:(0|ot)!=(0|at)&&(br[9392]=28,Do=-1),ft&&(br[ft>>2]=yo),0|Do},Sh:function(zr,Ur){zr|=0;var Wr=0;return(-7&(Ur|=0))!=1&&(El(),Qs()),1+((3&(Wr=(Wr=zr)+w0(zr=(zr>>>0)/3|0,-3)|0)?2&Ur?Wr+1|0:4:0)+(zr<<2)|0)|0},Th:xA,Uh:vA,Vh:function(){var zr=0;return br[9525]?zr=1:(Z2(),Jl(38080,16),br[9525]=1,zr=0),0|zr},Wh:function(zr,Ur,Wr,ot,it){zr|=0,Ur|=0,Wr|=0,it|=0;var ft,Kt=0,at=0,jt=0;On=ft=On-16|0;e:{if(ot|=0){if((Kt=ot-1|0)&ot?(at=-1^Wr,Kt=Kt-((Wr>>>0)%(ot>>>0)|0)|0):Kt&=at=-1^Wr,at>>>0<=Kt>>>0)break e;if(at=-1,!((Wr=Wr+Kt|0)>>>0>=it>>>0))for(zr&&(br[zr>>2]=Wr+1),zr=Ur+Wr|0,at=0,Vt[ft+15|0]=0,Wr=0;it=Ur=zr-Wr|0,jt=lt[0|Ur]<[ft+15|0],Ur=(Wr^Kt)-1>>>24|0,Vt[0|it]=jt|128&Ur,Vt[ft+15|0]=Ur|lt[ft+15|0],(0|ot)!=(0|(Wr=Wr+1|0)););}else at=-1;return On=ft+16|0,0|at}El(),Qs()},Xh:function(zr,Ur,Wr,ot){zr|=0,Ur|=0,Wr|=0,ot|=0;var it,ft=0,Kt=0,at=0,jt=0,ao=0;if(br[12+(it=On-16|0)>>2]=0,ot-1>>>0>>0){for(ao=(ft=Wr-1|0)+Ur|0,Wr=0,Ur=0;jt=((128^(Kt=lt[ao-Wr|0]))-1&br[it+12>>2]-1&at-1)>>>8&1,br[it+12>>2]=br[it+12>>2]|0-jt&Wr,Ur|=jt,at|=Kt,(0|ot)!=(0|(Wr=Wr+1|0)););br[zr>>2]=ft-br[it+12>>2],zr=(255&Ur)-1|0}else zr=-1;return 0|zr},Yh:function(){return 1457},Zh:function(){return 26},_h:uA,$h:su,ai:Ps,bi:Sp,ci:function(zr,Ur,Wr){zr|=0;var ot,it=0;return On=ot=On-32|0,it=-1,Bn(ot,Wr|=0,Ur|=0)||(it=Zl(zr,35584,ot,0)),On=ot+32|0,0|it},di:H2,ei:function(zr,Ur,Wr,ot,it,ft,Kt,at){var jt,ao;return zr|=0,Ur|=0,Wr|=0,ft|=0,ao=ot|=0,ot=it|=0,On=jt=On+-64|0,Bn(jt+32|0,at|=0,Kt|=0)?it=-1:(it=-1,Zl(jt,35584,jt+32|0,0)||(it=$0(zr,Ur,Wr,ao,ot,ft,jt),o0(jt,32))),On=jt- -64|0,0|it},fi:function(zr,Ur,Wr,ot,it,ft){return zr|=0,Ur|=0,it|=0,ft|=0,!(ot|=0)&(Wr|=0)>>>0>=4294967280|ot&&(El(),Qs()),0|$0(zr+16|0,zr,Ur,Wr,ot,it,ft)},gi:function(zr,Ur,Wr,ot,it,ft,Kt){return 0|x2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0)},hi:G2,ii:function(zr,Ur,Wr,ot,it,ft,Kt,at){var jt,ao;return zr|=0,Ur|=0,Wr|=0,ft|=0,ao=ot|=0,ot=it|=0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ur>>>24,Ur=br[ft+68>>2],Wr=br[ft+64>>2],Vt[0|zr]=Wr,Vt[zr+1|0]=Wr>>>8,Vt[zr+2|0]=Wr>>>16,Vt[zr+3|0]=Wr>>>24,Vt[zr+4|0]=Ur,Vt[zr+5|0]=Ur>>>8,Vt[zr+6|0]=Ur>>>16,Vt[zr+7|0]=Ur>>>24,o0(at,32),o0(Kt,32),o0(Eo,24)),On=ao,0|ot},ti:function(zr,Ur,Wr,ot,it,ft){zr|=0,Ur|=0,it|=0,ft|=0;var Kt,at,jt=0;return at=jt=On,On=Kt=jt-448&-64,jt=-1,!(ot|=0)&(Wr|=0)>>>0>=48|ot&&(zu(jt=Kt- -64|0,0,0,24),ru(jt,Ur,32,0),ru(jt,it,32,0),Ku(jt,it=Kt+32|0,24),jt=E2(zr,Ur+32|0,Wr-32|0,ot-(Wr>>>0<32)|0,it,Ur,ft)),On=at,0|jt},ui:w1,vi:function(zr){var Ur,Wr=0;return On=Ur=On-160|0,Up(zr|=0)&&(BA(zr)||_u(Ur,zr)||Gu(Ur)&&(Wr=(0|fA(Ur))!=0)),On=Ur+160|0,0|Wr},wi:function(zr,Ur,Wr){zr|=0,Wr|=0;var ot,it,ft=0;return On=ot=On-800|0,ft=-1,_u(it=ot+640|0,Ur|=0)||Gu(it)&&(_u(Ur=ot+480|0,Wr)||Gu(Ur)&&(Ho(ot,Ur),_l(Ur=ot+160|0,it,ot),Ip(Wr=ot+320|0,Ur),Mu(zr,Wr),ft=0)),On=ot+800|0,0|ft},xi:function(zr,Ur,Wr){zr|=0,Wr|=0;var ot,it,ft=0;return On=ot=On-800|0,ft=-1,_u(it=ot+640|0,Ur|=0)||Gu(it)&&(_u(Ur=ot+480|0,Wr)||Gu(Ur)&&(Ho(ot,Ur),oA(Ur=ot+160|0,it,ot),Ip(Wr=ot+320|0,Ur),Mu(zr,Wr),ft=0)),On=ot+800|0,0|ft},yi:function(zr,Ur){return LA(zr|=0,Ur|=0),0},zi:function(zr){var Ur;zr|=0,On=Ur=On-32|0,Jl(Ur,32),LA(zr,Ur),On=Ur+32|0},Ai:T2,Bi:ip,Ci:Ap,Di:dp,Ei:np,Fi:up,Gi:_g,Hi:n1,Ii:_0,Ji:Tl,Ki:_0,Li:Tl,Mi:_0,Ni:function(zr){var Ur;return On=Ur=On-160|0,zr=Qu(Ur,zr|=0),On=Ur+160|0,0|!zr},Oi:function(zr,Ur,Wr){zr|=0,Wr|=0;var ot,it,ft=0;return On=ot=On-800|0,ft=-1,Qu(it=ot+640|0,Ur|=0)||Qu(Ur=ot+480|0,Wr)||(Ho(ot,Ur),_l(Ur=ot+160|0,it,ot),Ip(Wr=ot+320|0,Ur),Fu(zr,Wr),ft=0),On=ot+800|0,0|ft},Pi:function(zr,Ur,Wr){zr|=0,Wr|=0;var ot,it,ft=0;return On=ot=On-800|0,ft=-1,Qu(it=ot+640|0,Ur|=0)||Qu(Ur=ot+480|0,Wr)||(Ho(ot,Ur),oA(Ur=ot+160|0,it,ot),Ip(Wr=ot+320|0,Ur),Fu(zr,Wr),ft=0),On=ot+800|0,0|ft},Qi:function(zr,Ur){return f2(zr|=0,Ur|=0),0},Ri:function(zr){var Ur;zr|=0,On=Ur=On+-64|0,Jl(Ur,64),f2(zr,Ur),On=Ur- -64|0},Si:function(zr){T2(zr|=0)},Ti:function(zr,Ur){return 0|ip(zr|=0,Ur|=0)},Ui:function(zr,Ur){Ap(zr|=0,Ur|=0)},Vi:function(zr,Ur){dp(zr|=0,Ur|=0)},Wi:function(zr,Ur,Wr){np(zr|=0,Ur|=0,Wr|=0)},Xi:function(zr,Ur,Wr){_g(zr|=0,Ur|=0,Wr|=0)},Yi:n1,Zi:function(zr,Ur){up(zr|=0,Ur|=0)},_i:_0,$i:Tl,aj:Tl,bj:_0,cj:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao){return 0|_2(zr|=0,Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0,at|=0,jt|=0,ao|=0)},dj:X0,ej:Hl,fj:su,gj:Hl,hj:_0,ij:function(){return 102},jj:function(){return 1570},kj:function(){return 32768},lj:Hl,mj:h1,nj:Hl,oj:function(){return 524288},pj:h1,qj:f1,rj:zp,sj:function(zr,Ur,Wr,ot,it,ft,Kt,at,jt,ao){var Eo,Ao,yo;Ur|=0,Wr|=0,ot|=0,it|=0,ft|=0,Kt|=0,jt|=0,ao|=0,Ao=0|(at|=0),On=at=On-16|0,yo=Ur|=0,Eo=q0(zr|=0,0,Ur),zr=0|it;e:if((0|(it=Wr|ft))==1|it>>>0>1)br[9392]=22,zr=-1;else if(!Wr&Ur>>>0>=16|Wr){if(yA(Ao,jt,ao,at+12|0,at+8|0,at+4|0),(0|ot)==(0|Eo)){br[9392]=28,zr=-1;break e}it=zr,zr=31&(Ur=br[at+12>>2]),(63&Ur)>>>0>=32?(Ur=1<>>32-zr,zr=_2(ot,it,Kt,32,Wr,Ur,br[at+4>>2],br[at+8>>2],Eo,yo)}else br[9392]=28,zr=-1;return On=at+16|0,0|zr},tj:function(zr,Ur,Wr,ot,it,ft,Kt){Ur|=0,Wr|=0,ot|=0,ft|=0,Kt|=0;var at,jt,ao,Eo=0,Ao=0,yo=0,_o=0,$o=0,Do=0,Fo=0;Eo=it|=0,Eo|=it=0,On=at=On-128|0,jt=q0(zr|=0,0,102),$o=22,ao=Wr|it;e:{if(!ot){yA(Eo,ft,Kt,at+16|0,at+12|0,at+8|0),Jl(Ao=at+96|0,32),$o=28,Wr=at+32|0,ft=br[at+16>>2],Kt=Oo(zr=br[at+12>>2],0,ot=br[at+8>>2],0);r:if(!(!(Eo=Io)&Kt>>>0>1073741823|Eo|ft>>>0>63)&&(Vt[0|Wr]=36,Vt[Wr+1|0]=55,Vt[Wr+2|0]=36,Vt[Wr+3|0]=lt[ft+1024|0],Vt[Wr+4|0]=lt[1024+(63&ot)|0],Vt[Wr+5|0]=lt[1024+(ot>>>6&63)|0],Vt[Wr+6|0]=lt[1024+(ot>>>12&63)|0],Vt[Wr+7|0]=lt[1024+(ot>>>18&63)|0],Vt[Wr+8|0]=lt[1024+(ot>>>24&63)|0],(ot=Wr+9|0)&&(0|ot)!=(0|(yo=Wr+58|0))&&(Vt[0|ot]=lt[1024+(63&zr)|0],(0|(ot=yo-ot|0))!=1&&(Vt[Wr+10|0]=lt[1024+(zr>>>6&63)|0],(0|ot)!=2&&(Vt[Wr+11|0]=lt[1024+(zr>>>12&63)|0],(0|ot)!=3&&(Vt[Wr+12|0]=lt[1024+(zr>>>18&63)|0],(0|ot)!=4&&(Vt[Wr+13|0]=lt[1024+(zr>>>24&63)|0],ft=Wr+14|0))))))){for(Eo=yo-ft|0,zr=0;;){if(ot=ft,!(zr>>>0>=32)){if(ft=lt[zr+Ao|0],(Do=(Kt=zr+1|0)>>>0>=32)?_o=0:(ft=lt[Kt+Ao|0]<<8|ft,(Kt=zr+2|0)>>>0>=32?_o=0:(ft=lt[Kt+Ao|0]<<16|ft,_o=1,Kt=zr+3|0)),zr=Kt,!Eo||(Vt[0|ot]=lt[1024+(63&ft)|0],(0|Eo)==1))break r;if(Vt[ot+1|0]=lt[1024+(ft>>>6&63)|0],Fo=ot+Eo|0,Kt=ot+2|0,!Do){if((0|Eo)==2)break r;if(Vt[ot+2|0]=lt[1024+(ft>>>12&63)|0],Kt=ot+3|0,_o){if((0|Eo)==3)break r;Vt[ot+3|0]=lt[1024+(ft>>>18|0)|0],Kt=ot+4|0}}if(Eo=Fo-(ft=Kt)|0,ft)continue;break r}break}ot>>>0>=yo>>>0||(Vt[0|ot]=0,it=Wr)}if(it&&(zr=-1,Gp(ot=at+20|0),Ur=mp(ot,Ur,ao,Wr,jt),Ep(ot),zr=0,Ur))break e}br[9392]=$o,zr=-1}return On=at+128|0,0|zr},uj:function(zr,Ur,Wr,ot){Ur|=0,ot|=0;var it,ft,Kt=0;it=zr|=0,ft=Wr|=0,Wr=0,On=ot=On-128|0;e:{r:{for(;;){if(!lt[Wr+it|0]){zr=Wr;break r}if(!lt[it+(zr=Wr+1|0)|0]||!lt[it+(zr=Wr+2|0)|0])break r;if((0|(Wr=Wr+3|0))==102)break}Wr=-1;break e}Wr=-1,(0|zr)==101&&(Gp(Kt=ot+4|0)||(q0(zr=ot+16|0,0,102),Ur=mp(Kt,Ur,ft,it,zr),Ep(Kt),Ur&&(Wr=Ju(zr,it,102),o0(zr,102))))}return On=ot+128|0,0|Wr},vj:function(zr,Ur,Wr,ot){var it,ft;ft=zr|=0,On=it=On-32|0,yA(Ur|=0,Wr|=0,ot|=0,it+28|0,it+20|0,it+12|0),zr=0;e:{r:{t:{for(;;){if(lt[zr+ft|0]){if(lt[ft+(Ur=zr+1|0)|0]&<[ft+(Ur=zr+2|0)|0]){if((0|(zr=zr+3|0))!=102)continue;break t}}else Ur=zr;break}if((0|Ur)==101){if(Wr=it+8|0,ot=it+16|0,zr=0,lt[0|ft]!=36|lt[ft+1|0]!=55|lt[ft+2|0]!=36||(Ur=qu(lt[ft+3|0]),br[it+24>>2]=Ur?Ur-1024|0:0,Ur&&(Ur=yp(Wr,ft+4|0))&&(zr=yp(ot,Ur))),zr)break r;br[9392]=28,zr=-1;break e}}br[9392]=28,zr=-1;break e}zr=1,br[it+28>>2]!=br[it+24>>2]|br[it+12>>2]!=br[it+8>>2]||(zr=br[it+20>>2]!=br[it+16>>2])}return On=it+32|0,0|zr},wj:function(zr,Ur,Wr){return 0|fp(zr|=0,Ur|=0,Wr|=0,1)},xj:function(zr,Ur,Wr){return 0|fp(zr|=0,Ur|=0,Wr|=0,0)},yj:function(zr,Ur){return 0|Lo(zr|=0,Ur|=0,1)},zj:function(zr,Ur){return 0|Lo(zr|=0,Ur|=0,0)},Aj:_0,Bj:_0,Cj:function(zr,Ur,Wr){zr|=0,Ur|=0;var ot,it=0;return On=ot=On-320|0,it=-1,Qu(ot,Wr|=0)||(Vt[0|zr]=lt[0|Ur],Vt[zr+1|0]=lt[Ur+1|0],Vt[zr+2|0]=lt[Ur+2|0],Vt[zr+3|0]=lt[Ur+3|0],Vt[zr+4|0]=lt[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0,On=jt=On-32|0,Zl(jt,it|=0,at|=0,0),zr=Vu(at=zr,Ur,(zr=0)|Wr,ot,it+16|0,zr|ft,Kt,jt),On=jt+32|0,0|zr},gk:function(zr,Ur,Wr,ot,it,ft){var Kt;return zr|=0,Ur|=0,Wr|=0,ot|=0,On=Kt=On-32|0,Zl(Kt,it|=0,ft|=0,0),zr=Vu(zr,Ur,Wr,ot,it+16|0,0,0,Kt),On=Kt+32|0,0|zr},hk:Rl,ik:tu,jk:$l,kk:Nl}}(Ln)}(Pn)},instantiate:function(An,Pn){return{then:function(Ln){var qn=new v0.Module(An);Ln({instance:new v0.Instance(qn,Pn)})}}},RuntimeError:Error};Ds=[],typeof v0!="object"&&Rs("no native wasm support detected");var b0,R0,D0,zs,n0,fo,Qo,Ko=!1;function ps(){var An=d0.buffer;ko.HEAP8=b0=new Int8Array(An),ko.HEAP16=D0=new Int16Array(An),ko.HEAPU8=R0=new Uint8Array(An),ko.HEAPU16=new Uint16Array(An),ko.HEAP32=zs=new Int32Array(An),ko.HEAPU32=n0=new Uint32Array(An),ko.HEAPF32=fo=new Float32Array(An),ko.HEAPF64=Qo=new Float64Array(An)}var Kn=ko.INITIAL_MEMORY||50331648;Kn>=65536||Rs("INITIAL_MEMORY should be larger than STACK_SIZE, was "+Kn+"! (STACK_SIZE=65536)"),d0=ko.wasmMemory?ko.wasmMemory:new v0.Memory({initial:Kn/65536,maximum:32768}),ps(),Kn=d0.buffer.byteLength;var gs=[],H0=[],j0=[],hs=0,Ss=null;function Rs(An){throw ko.onAbort&&ko.onAbort(An),Fs(An="Aborted("+An+")"),Ko=!0,An+=". Build with -sASSERTIONS for more info.",new v0.RuntimeError(An)}var e0,g0,E0="data:application/octet-stream;base64,";function Vs(An){return An.startsWith(E0)}Vs(e0="<<< WASM_BINARY_FILE >>>")||(g0=e0,e0=ko.locateFile?ko.locateFile(g0,ms):ms+g0);var Bs,Gs={36800:()=>ko.getRandomValue(),36836:()=>{if(ko.getRandomValue===void 0)try{var An=typeof window=="object"?window:self,Pn=An.crypto!==void 0?An.crypto:An.msCrypto,Ln=function(){var ls=new Uint32Array(1);return Pn.getRandomValues(ls),ls[0]>>>0};Ln(),ko.getRandomValue=Ln}catch{try{var qn=require$$0$3,na=function(){var ls=qn.randomBytes(4);return(ls[0]<<24|ls[1]<<16|ls[2]<<8|ls[3])>>>0};na(),ko.getRandomValue=na}catch{throw"No secure random number generator found"}}}},A0=An=>{for(;An.length>0;)An.shift()(ko)},y0=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,s0=(An,Pn)=>An?((Ln,qn,na)=>{for(var ls=qn+na,Ns=qn;Ln[Ns]&&!(Ns>=ls);)++Ns;if(Ns-qn>16&&Ln.buffer&&y0)return y0.decode(Ln.subarray(qn,Ns));for(var Qs="";qn>10,56320|1023&yl)}}else Qs+=String.fromCharCode((31&p0)<<6|l0)}else Qs+=String.fromCharCode(p0)}return Qs})(R0,An,Pn):"",P0=[],M0=An=>{var Pn=(An-d0.buffer.byteLength+65535)/65536;try{return d0.grow(Pn),ps(),1}catch{}},O0={c:(An,Pn,Ln,qn)=>{Rs(`Assertion failed: ${s0(An)}, at: `+[Pn?s0(Pn):"unknown filename",Ln,qn?s0(qn):"unknown function"])},d:()=>{Rs("")},b:(An,Pn,Ln)=>((qn,na,ls)=>{var Ns=((Qs,p0)=>{var l0;for(P0.length=0;l0=R0[Qs++];)p0+=l0!=105&&p0%8?4:0,P0.push(l0==105?zs[p0>>2]:Qo[p0>>3]),p0+=l0==105?4:8;return P0})(na,ls);return Gs[qn].apply(null,Ns)})(An,Pn,Ln),e:An=>{var Pn=R0.length,Ln=2147483648;if((An>>>=0)>Ln)return!1;for(var qn,na=1;na<=4;na*=2){var ls=Pn*(1+.2/na);ls=Math.min(ls,An+100663296);var Ns=Math.min(Ln,(qn=Math.max(An,ls))+(65536-qn%65536)%65536);if(M0(Ns))return!0}return!1},a:d0},Sn=function(){var An,Pn,Ln={a:O0};function qn(na,ls){var Ns,Qs=na.exports;return(Sn=Qs).kk,Ns=Sn.f,H0.unshift(Ns),function(p0){if(hs--,ko.monitorRunDependencies&&ko.monitorRunDependencies(hs),hs==0&&Ss){var l0=Ss;Ss=null,l0()}}(),Qs}if(hs++,ko.monitorRunDependencies&&ko.monitorRunDependencies(hs),ko.instantiateWasm)try{return ko.instantiateWasm(Ln,qn)}catch(na){return Fs(`Module.instantiateWasm callback failed with error: ${na}`),!1}return An=Ln,Pn=function(na){qn(na.instance)},function(na){return Promise.resolve().then(()=>function(ls){if(ls==e0&&Ds)return new Uint8Array(Ds);var Ns=function(Qs){if(Vs(Qs))return function(p0){if(Us!==void 0&&Us){var l0=Buffer.from(p0,"base64");return new Uint8Array(l0.buffer,l0.byteOffset,l0.length)}try{for(var S0=atob(p0),yl=new Uint8Array(S0.length),Vt=0;Vtv0.instantiate(na,An)).then(na=>na).then(Pn,na=>{Fs(`failed to asynchronously prepare wasm: ${na}`),Rs(na)}),{}}();function T0(){function An(){Bs||(Bs=!0,ko.calledRun=!0,Ko||(A0(H0),ko.onRuntimeInitialized&&ko.onRuntimeInitialized(),function(){if(ko.postRun)for(typeof ko.postRun=="function"&&(ko.postRun=[ko.postRun]);ko.postRun.length;)Pn=ko.postRun.shift(),j0.unshift(Pn);var Pn;A0(j0)}()))}hs>0||(function(){if(ko.preRun)for(typeof ko.preRun=="function"&&(ko.preRun=[ko.preRun]);ko.preRun.length;)Pn=ko.preRun.shift(),gs.unshift(Pn);var Pn;A0(gs)}(),hs>0||(ko.setStatus?(ko.setStatus("Running..."),setTimeout(function(){setTimeout(function(){ko.setStatus("")},1),An()},1)):An()))}if(ko._crypto_aead_aegis128l_keybytes=()=>(ko._crypto_aead_aegis128l_keybytes=Sn.g)(),ko._crypto_aead_aegis128l_nsecbytes=()=>(ko._crypto_aead_aegis128l_nsecbytes=Sn.h)(),ko._crypto_aead_aegis128l_npubbytes=()=>(ko._crypto_aead_aegis128l_npubbytes=Sn.i)(),ko._crypto_aead_aegis128l_abytes=()=>(ko._crypto_aead_aegis128l_abytes=Sn.j)(),ko._crypto_aead_aegis128l_messagebytes_max=()=>(ko._crypto_aead_aegis128l_messagebytes_max=Sn.k)(),ko._crypto_aead_aegis128l_keygen=An=>(ko._crypto_aead_aegis128l_keygen=Sn.l)(An),ko._crypto_aead_aegis128l_encrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_aegis128l_encrypt=Sn.m)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_aegis128l_encrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl)=>(ko._crypto_aead_aegis128l_encrypt_detached=Sn.n)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl),ko._crypto_aead_aegis128l_decrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_aegis128l_decrypt=Sn.o)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_aegis128l_decrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_aegis128l_decrypt_detached=Sn.p)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_aegis256_keybytes=()=>(ko._crypto_aead_aegis256_keybytes=Sn.q)(),ko._crypto_aead_aegis256_nsecbytes=()=>(ko._crypto_aead_aegis256_nsecbytes=Sn.r)(),ko._crypto_aead_aegis256_npubbytes=()=>(ko._crypto_aead_aegis256_npubbytes=Sn.s)(),ko._crypto_aead_aegis256_abytes=()=>(ko._crypto_aead_aegis256_abytes=Sn.t)(),ko._crypto_aead_aegis256_messagebytes_max=()=>(ko._crypto_aead_aegis256_messagebytes_max=Sn.u)(),ko._crypto_aead_aegis256_keygen=An=>(ko._crypto_aead_aegis256_keygen=Sn.v)(An),ko._crypto_aead_aegis256_encrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_aegis256_encrypt=Sn.w)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_aegis256_encrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl)=>(ko._crypto_aead_aegis256_encrypt_detached=Sn.x)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl),ko._crypto_aead_aegis256_decrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_aegis256_decrypt=Sn.y)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_aegis256_decrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_aegis256_decrypt_detached=Sn.z)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_chacha20poly1305_encrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl)=>(ko._crypto_aead_chacha20poly1305_encrypt_detached=Sn.A)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl),ko._crypto_aead_chacha20poly1305_encrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_chacha20poly1305_encrypt=Sn.B)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_chacha20poly1305_ietf_encrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl)=>(ko._crypto_aead_chacha20poly1305_ietf_encrypt_detached=Sn.C)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl),ko._crypto_aead_chacha20poly1305_ietf_encrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_chacha20poly1305_ietf_encrypt=Sn.D)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_chacha20poly1305_decrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_chacha20poly1305_decrypt_detached=Sn.E)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_chacha20poly1305_decrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_chacha20poly1305_decrypt=Sn.F)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_chacha20poly1305_ietf_decrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_chacha20poly1305_ietf_decrypt_detached=Sn.G)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_chacha20poly1305_ietf_decrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_chacha20poly1305_ietf_decrypt=Sn.H)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_chacha20poly1305_ietf_keybytes=()=>(ko._crypto_aead_chacha20poly1305_ietf_keybytes=Sn.I)(),ko._crypto_aead_chacha20poly1305_ietf_npubbytes=()=>(ko._crypto_aead_chacha20poly1305_ietf_npubbytes=Sn.J)(),ko._crypto_aead_chacha20poly1305_ietf_nsecbytes=()=>(ko._crypto_aead_chacha20poly1305_ietf_nsecbytes=Sn.K)(),ko._crypto_aead_chacha20poly1305_ietf_abytes=()=>(ko._crypto_aead_chacha20poly1305_ietf_abytes=Sn.L)(),ko._crypto_aead_chacha20poly1305_ietf_messagebytes_max=()=>(ko._crypto_aead_chacha20poly1305_ietf_messagebytes_max=Sn.M)(),ko._crypto_aead_chacha20poly1305_ietf_keygen=An=>(ko._crypto_aead_chacha20poly1305_ietf_keygen=Sn.N)(An),ko._crypto_aead_chacha20poly1305_keybytes=()=>(ko._crypto_aead_chacha20poly1305_keybytes=Sn.O)(),ko._crypto_aead_chacha20poly1305_npubbytes=()=>(ko._crypto_aead_chacha20poly1305_npubbytes=Sn.P)(),ko._crypto_aead_chacha20poly1305_nsecbytes=()=>(ko._crypto_aead_chacha20poly1305_nsecbytes=Sn.Q)(),ko._crypto_aead_chacha20poly1305_abytes=()=>(ko._crypto_aead_chacha20poly1305_abytes=Sn.R)(),ko._crypto_aead_chacha20poly1305_messagebytes_max=()=>(ko._crypto_aead_chacha20poly1305_messagebytes_max=Sn.S)(),ko._crypto_aead_chacha20poly1305_keygen=An=>(ko._crypto_aead_chacha20poly1305_keygen=Sn.T)(An),ko._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl)=>(ko._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=Sn.U)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl),ko._crypto_aead_xchacha20poly1305_ietf_encrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_xchacha20poly1305_ietf_encrypt=Sn.V)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=Sn.W)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_xchacha20poly1305_ietf_decrypt=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_aead_xchacha20poly1305_ietf_decrypt=Sn.X)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_aead_xchacha20poly1305_ietf_keybytes=()=>(ko._crypto_aead_xchacha20poly1305_ietf_keybytes=Sn.Y)(),ko._crypto_aead_xchacha20poly1305_ietf_npubbytes=()=>(ko._crypto_aead_xchacha20poly1305_ietf_npubbytes=Sn.Z)(),ko._crypto_aead_xchacha20poly1305_ietf_nsecbytes=()=>(ko._crypto_aead_xchacha20poly1305_ietf_nsecbytes=Sn._)(),ko._crypto_aead_xchacha20poly1305_ietf_abytes=()=>(ko._crypto_aead_xchacha20poly1305_ietf_abytes=Sn.$)(),ko._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=()=>(ko._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=Sn.aa)(),ko._crypto_aead_xchacha20poly1305_ietf_keygen=An=>(ko._crypto_aead_xchacha20poly1305_ietf_keygen=Sn.ba)(An),ko._crypto_auth_bytes=()=>(ko._crypto_auth_bytes=Sn.ca)(),ko._crypto_auth_keybytes=()=>(ko._crypto_auth_keybytes=Sn.da)(),ko._crypto_auth_primitive=()=>(ko._crypto_auth_primitive=Sn.ea)(),ko._crypto_auth=(An,Pn,Ln,qn,na)=>(ko._crypto_auth=Sn.fa)(An,Pn,Ln,qn,na),ko._crypto_auth_verify=(An,Pn,Ln,qn,na)=>(ko._crypto_auth_verify=Sn.ga)(An,Pn,Ln,qn,na),ko._crypto_auth_keygen=An=>(ko._crypto_auth_keygen=Sn.ha)(An),ko._crypto_auth_hmacsha256_bytes=()=>(ko._crypto_auth_hmacsha256_bytes=Sn.ia)(),ko._crypto_auth_hmacsha256_keybytes=()=>(ko._crypto_auth_hmacsha256_keybytes=Sn.ja)(),ko._crypto_auth_hmacsha256_statebytes=()=>(ko._crypto_auth_hmacsha256_statebytes=Sn.ka)(),ko._crypto_auth_hmacsha256_keygen=An=>(ko._crypto_auth_hmacsha256_keygen=Sn.la)(An),ko._crypto_auth_hmacsha256_init=(An,Pn,Ln)=>(ko._crypto_auth_hmacsha256_init=Sn.ma)(An,Pn,Ln),ko._crypto_auth_hmacsha256_update=(An,Pn,Ln,qn)=>(ko._crypto_auth_hmacsha256_update=Sn.na)(An,Pn,Ln,qn),ko._crypto_auth_hmacsha256_final=(An,Pn)=>(ko._crypto_auth_hmacsha256_final=Sn.oa)(An,Pn),ko._crypto_auth_hmacsha256=(An,Pn,Ln,qn,na)=>(ko._crypto_auth_hmacsha256=Sn.pa)(An,Pn,Ln,qn,na),ko._crypto_auth_hmacsha256_verify=(An,Pn,Ln,qn,na)=>(ko._crypto_auth_hmacsha256_verify=Sn.qa)(An,Pn,Ln,qn,na),ko._crypto_auth_hmacsha512_bytes=()=>(ko._crypto_auth_hmacsha512_bytes=Sn.ra)(),ko._crypto_auth_hmacsha512_keybytes=()=>(ko._crypto_auth_hmacsha512_keybytes=Sn.sa)(),ko._crypto_auth_hmacsha512_statebytes=()=>(ko._crypto_auth_hmacsha512_statebytes=Sn.ta)(),ko._crypto_auth_hmacsha512_keygen=An=>(ko._crypto_auth_hmacsha512_keygen=Sn.ua)(An),ko._crypto_auth_hmacsha512_init=(An,Pn,Ln)=>(ko._crypto_auth_hmacsha512_init=Sn.va)(An,Pn,Ln),ko._crypto_auth_hmacsha512_update=(An,Pn,Ln,qn)=>(ko._crypto_auth_hmacsha512_update=Sn.wa)(An,Pn,Ln,qn),ko._crypto_auth_hmacsha512_final=(An,Pn)=>(ko._crypto_auth_hmacsha512_final=Sn.xa)(An,Pn),ko._crypto_auth_hmacsha512=(An,Pn,Ln,qn,na)=>(ko._crypto_auth_hmacsha512=Sn.ya)(An,Pn,Ln,qn,na),ko._crypto_auth_hmacsha512_verify=(An,Pn,Ln,qn,na)=>(ko._crypto_auth_hmacsha512_verify=Sn.za)(An,Pn,Ln,qn,na),ko._crypto_auth_hmacsha512256_bytes=()=>(ko._crypto_auth_hmacsha512256_bytes=Sn.Aa)(),ko._crypto_auth_hmacsha512256_keybytes=()=>(ko._crypto_auth_hmacsha512256_keybytes=Sn.Ba)(),ko._crypto_auth_hmacsha512256_statebytes=()=>(ko._crypto_auth_hmacsha512256_statebytes=Sn.Ca)(),ko._crypto_auth_hmacsha512256_keygen=An=>(ko._crypto_auth_hmacsha512256_keygen=Sn.Da)(An),ko._crypto_auth_hmacsha512256_init=(An,Pn,Ln)=>(ko._crypto_auth_hmacsha512256_init=Sn.Ea)(An,Pn,Ln),ko._crypto_auth_hmacsha512256_update=(An,Pn,Ln,qn)=>(ko._crypto_auth_hmacsha512256_update=Sn.Fa)(An,Pn,Ln,qn),ko._crypto_auth_hmacsha512256_final=(An,Pn)=>(ko._crypto_auth_hmacsha512256_final=Sn.Ga)(An,Pn),ko._crypto_auth_hmacsha512256=(An,Pn,Ln,qn,na)=>(ko._crypto_auth_hmacsha512256=Sn.Ha)(An,Pn,Ln,qn,na),ko._crypto_auth_hmacsha512256_verify=(An,Pn,Ln,qn,na)=>(ko._crypto_auth_hmacsha512256_verify=Sn.Ia)(An,Pn,Ln,qn,na),ko._crypto_box_seedbytes=()=>(ko._crypto_box_seedbytes=Sn.Ja)(),ko._crypto_box_publickeybytes=()=>(ko._crypto_box_publickeybytes=Sn.Ka)(),ko._crypto_box_secretkeybytes=()=>(ko._crypto_box_secretkeybytes=Sn.La)(),ko._crypto_box_beforenmbytes=()=>(ko._crypto_box_beforenmbytes=Sn.Ma)(),ko._crypto_box_noncebytes=()=>(ko._crypto_box_noncebytes=Sn.Na)(),ko._crypto_box_zerobytes=()=>(ko._crypto_box_zerobytes=Sn.Oa)(),ko._crypto_box_boxzerobytes=()=>(ko._crypto_box_boxzerobytes=Sn.Pa)(),ko._crypto_box_macbytes=()=>(ko._crypto_box_macbytes=Sn.Qa)(),ko._crypto_box_messagebytes_max=()=>(ko._crypto_box_messagebytes_max=Sn.Ra)(),ko._crypto_box_primitive=()=>(ko._crypto_box_primitive=Sn.Sa)(),ko._crypto_box_seed_keypair=(An,Pn,Ln)=>(ko._crypto_box_seed_keypair=Sn.Ta)(An,Pn,Ln),ko._crypto_box_keypair=(An,Pn)=>(ko._crypto_box_keypair=Sn.Ua)(An,Pn),ko._crypto_box_beforenm=(An,Pn,Ln)=>(ko._crypto_box_beforenm=Sn.Va)(An,Pn,Ln),ko._crypto_box_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_afternm=Sn.Wa)(An,Pn,Ln,qn,na,ls),ko._crypto_box_open_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_open_afternm=Sn.Xa)(An,Pn,Ln,qn,na,ls),ko._crypto_box=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box=Sn.Ya)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_open=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_open=Sn.Za)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_detached_afternm=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_detached_afternm=Sn._a)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_box_detached=Sn.$a)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_box_easy_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_easy_afternm=Sn.ab)(An,Pn,Ln,qn,na,ls),ko._crypto_box_easy=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_easy=Sn.bb)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_open_detached_afternm=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_open_detached_afternm=Sn.cb)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_open_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_box_open_detached=Sn.db)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_box_open_easy_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_open_easy_afternm=Sn.eb)(An,Pn,Ln,qn,na,ls),ko._crypto_box_open_easy=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_open_easy=Sn.fb)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_seal=(An,Pn,Ln,qn,na)=>(ko._crypto_box_seal=Sn.gb)(An,Pn,Ln,qn,na),ko._crypto_box_seal_open=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_seal_open=Sn.hb)(An,Pn,Ln,qn,na,ls),ko._crypto_box_sealbytes=()=>(ko._crypto_box_sealbytes=Sn.ib)(),ko._crypto_box_curve25519xsalsa20poly1305_seed_keypair=(An,Pn,Ln)=>(ko._crypto_box_curve25519xsalsa20poly1305_seed_keypair=Sn.jb)(An,Pn,Ln),ko._crypto_box_curve25519xsalsa20poly1305_keypair=(An,Pn)=>(ko._crypto_box_curve25519xsalsa20poly1305_keypair=Sn.kb)(An,Pn),ko._crypto_box_curve25519xsalsa20poly1305_beforenm=(An,Pn,Ln)=>(ko._crypto_box_curve25519xsalsa20poly1305_beforenm=Sn.lb)(An,Pn,Ln),ko._crypto_box_curve25519xsalsa20poly1305_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_curve25519xsalsa20poly1305_afternm=Sn.mb)(An,Pn,Ln,qn,na,ls),ko._crypto_box_curve25519xsalsa20poly1305_open_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_curve25519xsalsa20poly1305_open_afternm=Sn.nb)(An,Pn,Ln,qn,na,ls),ko._crypto_box_curve25519xsalsa20poly1305=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_curve25519xsalsa20poly1305=Sn.ob)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_curve25519xsalsa20poly1305_open=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_curve25519xsalsa20poly1305_open=Sn.pb)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_curve25519xsalsa20poly1305_seedbytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_seedbytes=Sn.qb)(),ko._crypto_box_curve25519xsalsa20poly1305_publickeybytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_publickeybytes=Sn.rb)(),ko._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=Sn.sb)(),ko._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=Sn.tb)(),ko._crypto_box_curve25519xsalsa20poly1305_noncebytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_noncebytes=Sn.ub)(),ko._crypto_box_curve25519xsalsa20poly1305_zerobytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_zerobytes=Sn.vb)(),ko._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=Sn.wb)(),ko._crypto_box_curve25519xsalsa20poly1305_macbytes=()=>(ko._crypto_box_curve25519xsalsa20poly1305_macbytes=Sn.xb)(),ko._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=()=>(ko._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=Sn.yb)(),ko._crypto_core_hchacha20=(An,Pn,Ln,qn)=>(ko._crypto_core_hchacha20=Sn.zb)(An,Pn,Ln,qn),ko._crypto_core_hchacha20_outputbytes=()=>(ko._crypto_core_hchacha20_outputbytes=Sn.Ab)(),ko._crypto_core_hchacha20_inputbytes=()=>(ko._crypto_core_hchacha20_inputbytes=Sn.Bb)(),ko._crypto_core_hchacha20_keybytes=()=>(ko._crypto_core_hchacha20_keybytes=Sn.Cb)(),ko._crypto_core_hchacha20_constbytes=()=>(ko._crypto_core_hchacha20_constbytes=Sn.Db)(),ko._crypto_core_hsalsa20=(An,Pn,Ln,qn)=>(ko._crypto_core_hsalsa20=Sn.Eb)(An,Pn,Ln,qn),ko._crypto_core_hsalsa20_outputbytes=()=>(ko._crypto_core_hsalsa20_outputbytes=Sn.Fb)(),ko._crypto_core_hsalsa20_inputbytes=()=>(ko._crypto_core_hsalsa20_inputbytes=Sn.Gb)(),ko._crypto_core_hsalsa20_keybytes=()=>(ko._crypto_core_hsalsa20_keybytes=Sn.Hb)(),ko._crypto_core_hsalsa20_constbytes=()=>(ko._crypto_core_hsalsa20_constbytes=Sn.Ib)(),ko._crypto_core_salsa20=(An,Pn,Ln,qn)=>(ko._crypto_core_salsa20=Sn.Jb)(An,Pn,Ln,qn),ko._crypto_core_salsa20_outputbytes=()=>(ko._crypto_core_salsa20_outputbytes=Sn.Kb)(),ko._crypto_core_salsa20_inputbytes=()=>(ko._crypto_core_salsa20_inputbytes=Sn.Lb)(),ko._crypto_core_salsa20_keybytes=()=>(ko._crypto_core_salsa20_keybytes=Sn.Mb)(),ko._crypto_core_salsa20_constbytes=()=>(ko._crypto_core_salsa20_constbytes=Sn.Nb)(),ko._crypto_core_salsa2012=(An,Pn,Ln,qn)=>(ko._crypto_core_salsa2012=Sn.Ob)(An,Pn,Ln,qn),ko._crypto_core_salsa2012_outputbytes=()=>(ko._crypto_core_salsa2012_outputbytes=Sn.Pb)(),ko._crypto_core_salsa2012_inputbytes=()=>(ko._crypto_core_salsa2012_inputbytes=Sn.Qb)(),ko._crypto_core_salsa2012_keybytes=()=>(ko._crypto_core_salsa2012_keybytes=Sn.Rb)(),ko._crypto_core_salsa2012_constbytes=()=>(ko._crypto_core_salsa2012_constbytes=Sn.Sb)(),ko._crypto_core_salsa208=(An,Pn,Ln,qn)=>(ko._crypto_core_salsa208=Sn.Tb)(An,Pn,Ln,qn),ko._crypto_core_salsa208_outputbytes=()=>(ko._crypto_core_salsa208_outputbytes=Sn.Ub)(),ko._crypto_core_salsa208_inputbytes=()=>(ko._crypto_core_salsa208_inputbytes=Sn.Vb)(),ko._crypto_core_salsa208_keybytes=()=>(ko._crypto_core_salsa208_keybytes=Sn.Wb)(),ko._crypto_core_salsa208_constbytes=()=>(ko._crypto_core_salsa208_constbytes=Sn.Xb)(),ko._crypto_generichash_bytes_min=()=>(ko._crypto_generichash_bytes_min=Sn.Yb)(),ko._crypto_generichash_bytes_max=()=>(ko._crypto_generichash_bytes_max=Sn.Zb)(),ko._crypto_generichash_bytes=()=>(ko._crypto_generichash_bytes=Sn._b)(),ko._crypto_generichash_keybytes_min=()=>(ko._crypto_generichash_keybytes_min=Sn.$b)(),ko._crypto_generichash_keybytes_max=()=>(ko._crypto_generichash_keybytes_max=Sn.ac)(),ko._crypto_generichash_keybytes=()=>(ko._crypto_generichash_keybytes=Sn.bc)(),ko._crypto_generichash_primitive=()=>(ko._crypto_generichash_primitive=Sn.cc)(),ko._crypto_generichash_statebytes=()=>(ko._crypto_generichash_statebytes=Sn.dc)(),ko._crypto_generichash=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_generichash=Sn.ec)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_generichash_init=(An,Pn,Ln,qn)=>(ko._crypto_generichash_init=Sn.fc)(An,Pn,Ln,qn),ko._crypto_generichash_update=(An,Pn,Ln,qn)=>(ko._crypto_generichash_update=Sn.gc)(An,Pn,Ln,qn),ko._crypto_generichash_final=(An,Pn,Ln)=>(ko._crypto_generichash_final=Sn.hc)(An,Pn,Ln),ko._crypto_generichash_keygen=An=>(ko._crypto_generichash_keygen=Sn.ic)(An),ko._crypto_generichash_blake2b_bytes_min=()=>(ko._crypto_generichash_blake2b_bytes_min=Sn.jc)(),ko._crypto_generichash_blake2b_bytes_max=()=>(ko._crypto_generichash_blake2b_bytes_max=Sn.kc)(),ko._crypto_generichash_blake2b_bytes=()=>(ko._crypto_generichash_blake2b_bytes=Sn.lc)(),ko._crypto_generichash_blake2b_keybytes_min=()=>(ko._crypto_generichash_blake2b_keybytes_min=Sn.mc)(),ko._crypto_generichash_blake2b_keybytes_max=()=>(ko._crypto_generichash_blake2b_keybytes_max=Sn.nc)(),ko._crypto_generichash_blake2b_keybytes=()=>(ko._crypto_generichash_blake2b_keybytes=Sn.oc)(),ko._crypto_generichash_blake2b_saltbytes=()=>(ko._crypto_generichash_blake2b_saltbytes=Sn.pc)(),ko._crypto_generichash_blake2b_personalbytes=()=>(ko._crypto_generichash_blake2b_personalbytes=Sn.qc)(),ko._crypto_generichash_blake2b_statebytes=()=>(ko._crypto_generichash_blake2b_statebytes=Sn.rc)(),ko._crypto_generichash_blake2b_keygen=An=>(ko._crypto_generichash_blake2b_keygen=Sn.sc)(An),ko._crypto_generichash_blake2b=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_generichash_blake2b=Sn.tc)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_generichash_blake2b_salt_personal=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0)=>(ko._crypto_generichash_blake2b_salt_personal=Sn.uc)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0),ko._crypto_generichash_blake2b_init=(An,Pn,Ln,qn)=>(ko._crypto_generichash_blake2b_init=Sn.vc)(An,Pn,Ln,qn),ko._crypto_generichash_blake2b_init_salt_personal=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_generichash_blake2b_init_salt_personal=Sn.wc)(An,Pn,Ln,qn,na,ls),ko._crypto_generichash_blake2b_update=(An,Pn,Ln,qn)=>(ko._crypto_generichash_blake2b_update=Sn.xc)(An,Pn,Ln,qn),ko._crypto_generichash_blake2b_final=(An,Pn,Ln)=>(ko._crypto_generichash_blake2b_final=Sn.yc)(An,Pn,Ln),ko._crypto_hash_bytes=()=>(ko._crypto_hash_bytes=Sn.zc)(),ko._crypto_hash=(An,Pn,Ln,qn)=>(ko._crypto_hash=Sn.Ac)(An,Pn,Ln,qn),ko._crypto_hash_primitive=()=>(ko._crypto_hash_primitive=Sn.Bc)(),ko._crypto_hash_sha256_bytes=()=>(ko._crypto_hash_sha256_bytes=Sn.Cc)(),ko._crypto_hash_sha256_statebytes=()=>(ko._crypto_hash_sha256_statebytes=Sn.Dc)(),ko._crypto_hash_sha256_init=An=>(ko._crypto_hash_sha256_init=Sn.Ec)(An),ko._crypto_hash_sha256_update=(An,Pn,Ln,qn)=>(ko._crypto_hash_sha256_update=Sn.Fc)(An,Pn,Ln,qn),ko._crypto_hash_sha256_final=(An,Pn)=>(ko._crypto_hash_sha256_final=Sn.Gc)(An,Pn),ko._crypto_hash_sha256=(An,Pn,Ln,qn)=>(ko._crypto_hash_sha256=Sn.Hc)(An,Pn,Ln,qn),ko._crypto_hash_sha512_bytes=()=>(ko._crypto_hash_sha512_bytes=Sn.Ic)(),ko._crypto_hash_sha512_statebytes=()=>(ko._crypto_hash_sha512_statebytes=Sn.Jc)(),ko._crypto_hash_sha512_init=An=>(ko._crypto_hash_sha512_init=Sn.Kc)(An),ko._crypto_hash_sha512_update=(An,Pn,Ln,qn)=>(ko._crypto_hash_sha512_update=Sn.Lc)(An,Pn,Ln,qn),ko._crypto_hash_sha512_final=(An,Pn)=>(ko._crypto_hash_sha512_final=Sn.Mc)(An,Pn),ko._crypto_hash_sha512=(An,Pn,Ln,qn)=>(ko._crypto_hash_sha512=Sn.Nc)(An,Pn,Ln,qn),ko._crypto_kdf_blake2b_bytes_min=()=>(ko._crypto_kdf_blake2b_bytes_min=Sn.Oc)(),ko._crypto_kdf_blake2b_bytes_max=()=>(ko._crypto_kdf_blake2b_bytes_max=Sn.Pc)(),ko._crypto_kdf_blake2b_contextbytes=()=>(ko._crypto_kdf_blake2b_contextbytes=Sn.Qc)(),ko._crypto_kdf_blake2b_keybytes=()=>(ko._crypto_kdf_blake2b_keybytes=Sn.Rc)(),ko._crypto_kdf_blake2b_derive_from_key=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_kdf_blake2b_derive_from_key=Sn.Sc)(An,Pn,Ln,qn,na,ls),ko._crypto_kdf_primitive=()=>(ko._crypto_kdf_primitive=Sn.Tc)(),ko._crypto_kdf_bytes_min=()=>(ko._crypto_kdf_bytes_min=Sn.Uc)(),ko._crypto_kdf_bytes_max=()=>(ko._crypto_kdf_bytes_max=Sn.Vc)(),ko._crypto_kdf_contextbytes=()=>(ko._crypto_kdf_contextbytes=Sn.Wc)(),ko._crypto_kdf_keybytes=()=>(ko._crypto_kdf_keybytes=Sn.Xc)(),ko._crypto_kdf_derive_from_key=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_kdf_derive_from_key=Sn.Yc)(An,Pn,Ln,qn,na,ls),ko._crypto_kdf_keygen=An=>(ko._crypto_kdf_keygen=Sn.Zc)(An),ko._crypto_kdf_hkdf_sha256_extract_init=(An,Pn,Ln)=>(ko._crypto_kdf_hkdf_sha256_extract_init=Sn._c)(An,Pn,Ln),ko._crypto_kdf_hkdf_sha256_extract_update=(An,Pn,Ln)=>(ko._crypto_kdf_hkdf_sha256_extract_update=Sn.$c)(An,Pn,Ln),ko._crypto_kdf_hkdf_sha256_extract_final=(An,Pn)=>(ko._crypto_kdf_hkdf_sha256_extract_final=Sn.ad)(An,Pn),ko._crypto_kdf_hkdf_sha256_extract=(An,Pn,Ln,qn,na)=>(ko._crypto_kdf_hkdf_sha256_extract=Sn.bd)(An,Pn,Ln,qn,na),ko._crypto_kdf_hkdf_sha256_keygen=An=>(ko._crypto_kdf_hkdf_sha256_keygen=Sn.cd)(An),ko._crypto_kdf_hkdf_sha256_expand=(An,Pn,Ln,qn,na)=>(ko._crypto_kdf_hkdf_sha256_expand=Sn.dd)(An,Pn,Ln,qn,na),ko._crypto_kdf_hkdf_sha256_keybytes=()=>(ko._crypto_kdf_hkdf_sha256_keybytes=Sn.ed)(),ko._crypto_kdf_hkdf_sha256_bytes_min=()=>(ko._crypto_kdf_hkdf_sha256_bytes_min=Sn.fd)(),ko._crypto_kdf_hkdf_sha256_bytes_max=()=>(ko._crypto_kdf_hkdf_sha256_bytes_max=Sn.gd)(),ko._crypto_kdf_hkdf_sha256_statebytes=()=>(ko._crypto_kdf_hkdf_sha256_statebytes=Sn.hd)(),ko._crypto_kdf_hkdf_sha512_extract_init=(An,Pn,Ln)=>(ko._crypto_kdf_hkdf_sha512_extract_init=Sn.id)(An,Pn,Ln),ko._crypto_kdf_hkdf_sha512_extract_update=(An,Pn,Ln)=>(ko._crypto_kdf_hkdf_sha512_extract_update=Sn.jd)(An,Pn,Ln),ko._crypto_kdf_hkdf_sha512_extract_final=(An,Pn)=>(ko._crypto_kdf_hkdf_sha512_extract_final=Sn.kd)(An,Pn),ko._crypto_kdf_hkdf_sha512_extract=(An,Pn,Ln,qn,na)=>(ko._crypto_kdf_hkdf_sha512_extract=Sn.ld)(An,Pn,Ln,qn,na),ko._crypto_kdf_hkdf_sha512_keygen=An=>(ko._crypto_kdf_hkdf_sha512_keygen=Sn.md)(An),ko._crypto_kdf_hkdf_sha512_expand=(An,Pn,Ln,qn,na)=>(ko._crypto_kdf_hkdf_sha512_expand=Sn.nd)(An,Pn,Ln,qn,na),ko._crypto_kdf_hkdf_sha512_keybytes=()=>(ko._crypto_kdf_hkdf_sha512_keybytes=Sn.od)(),ko._crypto_kdf_hkdf_sha512_bytes_min=()=>(ko._crypto_kdf_hkdf_sha512_bytes_min=Sn.pd)(),ko._crypto_kdf_hkdf_sha512_bytes_max=()=>(ko._crypto_kdf_hkdf_sha512_bytes_max=Sn.qd)(),ko._crypto_kx_seed_keypair=(An,Pn,Ln)=>(ko._crypto_kx_seed_keypair=Sn.rd)(An,Pn,Ln),ko._crypto_kx_keypair=(An,Pn)=>(ko._crypto_kx_keypair=Sn.sd)(An,Pn),ko._crypto_kx_client_session_keys=(An,Pn,Ln,qn,na)=>(ko._crypto_kx_client_session_keys=Sn.td)(An,Pn,Ln,qn,na),ko._crypto_kx_server_session_keys=(An,Pn,Ln,qn,na)=>(ko._crypto_kx_server_session_keys=Sn.ud)(An,Pn,Ln,qn,na),ko._crypto_kx_publickeybytes=()=>(ko._crypto_kx_publickeybytes=Sn.vd)(),ko._crypto_kx_secretkeybytes=()=>(ko._crypto_kx_secretkeybytes=Sn.wd)(),ko._crypto_kx_seedbytes=()=>(ko._crypto_kx_seedbytes=Sn.xd)(),ko._crypto_kx_sessionkeybytes=()=>(ko._crypto_kx_sessionkeybytes=Sn.yd)(),ko._crypto_kx_primitive=()=>(ko._crypto_kx_primitive=Sn.zd)(),ko._crypto_onetimeauth_statebytes=()=>(ko._crypto_onetimeauth_statebytes=Sn.Ad)(),ko._crypto_onetimeauth_bytes=()=>(ko._crypto_onetimeauth_bytes=Sn.Bd)(),ko._crypto_onetimeauth_keybytes=()=>(ko._crypto_onetimeauth_keybytes=Sn.Cd)(),ko._crypto_onetimeauth=(An,Pn,Ln,qn,na)=>(ko._crypto_onetimeauth=Sn.Dd)(An,Pn,Ln,qn,na),ko._crypto_onetimeauth_verify=(An,Pn,Ln,qn,na)=>(ko._crypto_onetimeauth_verify=Sn.Ed)(An,Pn,Ln,qn,na),ko._crypto_onetimeauth_init=(An,Pn)=>(ko._crypto_onetimeauth_init=Sn.Fd)(An,Pn),ko._crypto_onetimeauth_update=(An,Pn,Ln,qn)=>(ko._crypto_onetimeauth_update=Sn.Gd)(An,Pn,Ln,qn),ko._crypto_onetimeauth_final=(An,Pn)=>(ko._crypto_onetimeauth_final=Sn.Hd)(An,Pn),ko._crypto_onetimeauth_primitive=()=>(ko._crypto_onetimeauth_primitive=Sn.Id)(),ko._crypto_onetimeauth_keygen=An=>(ko._crypto_onetimeauth_keygen=Sn.Jd)(An),ko._crypto_onetimeauth_poly1305=(An,Pn,Ln,qn,na)=>(ko._crypto_onetimeauth_poly1305=Sn.Kd)(An,Pn,Ln,qn,na),ko._crypto_onetimeauth_poly1305_verify=(An,Pn,Ln,qn,na)=>(ko._crypto_onetimeauth_poly1305_verify=Sn.Ld)(An,Pn,Ln,qn,na),ko._crypto_onetimeauth_poly1305_init=(An,Pn)=>(ko._crypto_onetimeauth_poly1305_init=Sn.Md)(An,Pn),ko._crypto_onetimeauth_poly1305_update=(An,Pn,Ln,qn)=>(ko._crypto_onetimeauth_poly1305_update=Sn.Nd)(An,Pn,Ln,qn),ko._crypto_onetimeauth_poly1305_final=(An,Pn)=>(ko._crypto_onetimeauth_poly1305_final=Sn.Od)(An,Pn),ko._crypto_onetimeauth_poly1305_bytes=()=>(ko._crypto_onetimeauth_poly1305_bytes=Sn.Pd)(),ko._crypto_onetimeauth_poly1305_keybytes=()=>(ko._crypto_onetimeauth_poly1305_keybytes=Sn.Qd)(),ko._crypto_onetimeauth_poly1305_statebytes=()=>(ko._crypto_onetimeauth_poly1305_statebytes=Sn.Rd)(),ko._crypto_onetimeauth_poly1305_keygen=An=>(ko._crypto_onetimeauth_poly1305_keygen=Sn.Sd)(An),ko._crypto_pwhash_argon2i_alg_argon2i13=()=>(ko._crypto_pwhash_argon2i_alg_argon2i13=Sn.Td)(),ko._crypto_pwhash_argon2i_bytes_min=()=>(ko._crypto_pwhash_argon2i_bytes_min=Sn.Ud)(),ko._crypto_pwhash_argon2i_bytes_max=()=>(ko._crypto_pwhash_argon2i_bytes_max=Sn.Vd)(),ko._crypto_pwhash_argon2i_passwd_min=()=>(ko._crypto_pwhash_argon2i_passwd_min=Sn.Wd)(),ko._crypto_pwhash_argon2i_passwd_max=()=>(ko._crypto_pwhash_argon2i_passwd_max=Sn.Xd)(),ko._crypto_pwhash_argon2i_saltbytes=()=>(ko._crypto_pwhash_argon2i_saltbytes=Sn.Yd)(),ko._crypto_pwhash_argon2i_strbytes=()=>(ko._crypto_pwhash_argon2i_strbytes=Sn.Zd)(),ko._crypto_pwhash_argon2i_strprefix=()=>(ko._crypto_pwhash_argon2i_strprefix=Sn._d)(),ko._crypto_pwhash_argon2i_opslimit_min=()=>(ko._crypto_pwhash_argon2i_opslimit_min=Sn.$d)(),ko._crypto_pwhash_argon2i_opslimit_max=()=>(ko._crypto_pwhash_argon2i_opslimit_max=Sn.ae)(),ko._crypto_pwhash_argon2i_memlimit_min=()=>(ko._crypto_pwhash_argon2i_memlimit_min=Sn.be)(),ko._crypto_pwhash_argon2i_memlimit_max=()=>(ko._crypto_pwhash_argon2i_memlimit_max=Sn.ce)(),ko._crypto_pwhash_argon2i_opslimit_interactive=()=>(ko._crypto_pwhash_argon2i_opslimit_interactive=Sn.de)(),ko._crypto_pwhash_argon2i_memlimit_interactive=()=>(ko._crypto_pwhash_argon2i_memlimit_interactive=Sn.ee)(),ko._crypto_pwhash_argon2i_opslimit_moderate=()=>(ko._crypto_pwhash_argon2i_opslimit_moderate=Sn.fe)(),ko._crypto_pwhash_argon2i_memlimit_moderate=()=>(ko._crypto_pwhash_argon2i_memlimit_moderate=Sn.ge)(),ko._crypto_pwhash_argon2i_opslimit_sensitive=()=>(ko._crypto_pwhash_argon2i_opslimit_sensitive=Sn.he)(),ko._crypto_pwhash_argon2i_memlimit_sensitive=()=>(ko._crypto_pwhash_argon2i_memlimit_sensitive=Sn.ie)(),ko._crypto_pwhash_argon2i=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_pwhash_argon2i=Sn.je)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_pwhash_argon2i_str=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_pwhash_argon2i_str=Sn.ke)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_pwhash_argon2i_str_verify=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_argon2i_str_verify=Sn.le)(An,Pn,Ln,qn),ko._crypto_pwhash_argon2i_str_needs_rehash=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_argon2i_str_needs_rehash=Sn.me)(An,Pn,Ln,qn),ko._crypto_pwhash_argon2id_str_needs_rehash=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_argon2id_str_needs_rehash=Sn.ne)(An,Pn,Ln,qn),ko._crypto_pwhash_argon2id_alg_argon2id13=()=>(ko._crypto_pwhash_argon2id_alg_argon2id13=Sn.oe)(),ko._crypto_pwhash_argon2id_bytes_min=()=>(ko._crypto_pwhash_argon2id_bytes_min=Sn.pe)(),ko._crypto_pwhash_argon2id_bytes_max=()=>(ko._crypto_pwhash_argon2id_bytes_max=Sn.qe)(),ko._crypto_pwhash_argon2id_passwd_min=()=>(ko._crypto_pwhash_argon2id_passwd_min=Sn.re)(),ko._crypto_pwhash_argon2id_passwd_max=()=>(ko._crypto_pwhash_argon2id_passwd_max=Sn.se)(),ko._crypto_pwhash_argon2id_saltbytes=()=>(ko._crypto_pwhash_argon2id_saltbytes=Sn.te)(),ko._crypto_pwhash_argon2id_strbytes=()=>(ko._crypto_pwhash_argon2id_strbytes=Sn.ue)(),ko._crypto_pwhash_argon2id_strprefix=()=>(ko._crypto_pwhash_argon2id_strprefix=Sn.ve)(),ko._crypto_pwhash_argon2id_opslimit_min=()=>(ko._crypto_pwhash_argon2id_opslimit_min=Sn.we)(),ko._crypto_pwhash_argon2id_opslimit_max=()=>(ko._crypto_pwhash_argon2id_opslimit_max=Sn.xe)(),ko._crypto_pwhash_argon2id_memlimit_min=()=>(ko._crypto_pwhash_argon2id_memlimit_min=Sn.ye)(),ko._crypto_pwhash_argon2id_memlimit_max=()=>(ko._crypto_pwhash_argon2id_memlimit_max=Sn.ze)(),ko._crypto_pwhash_argon2id_opslimit_interactive=()=>(ko._crypto_pwhash_argon2id_opslimit_interactive=Sn.Ae)(),ko._crypto_pwhash_argon2id_memlimit_interactive=()=>(ko._crypto_pwhash_argon2id_memlimit_interactive=Sn.Be)(),ko._crypto_pwhash_argon2id_opslimit_moderate=()=>(ko._crypto_pwhash_argon2id_opslimit_moderate=Sn.Ce)(),ko._crypto_pwhash_argon2id_memlimit_moderate=()=>(ko._crypto_pwhash_argon2id_memlimit_moderate=Sn.De)(),ko._crypto_pwhash_argon2id_opslimit_sensitive=()=>(ko._crypto_pwhash_argon2id_opslimit_sensitive=Sn.Ee)(),ko._crypto_pwhash_argon2id_memlimit_sensitive=()=>(ko._crypto_pwhash_argon2id_memlimit_sensitive=Sn.Fe)(),ko._crypto_pwhash_argon2id=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_pwhash_argon2id=Sn.Ge)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_pwhash_argon2id_str=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_pwhash_argon2id_str=Sn.He)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_pwhash_argon2id_str_verify=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_argon2id_str_verify=Sn.Ie)(An,Pn,Ln,qn),ko._crypto_pwhash_alg_argon2i13=()=>(ko._crypto_pwhash_alg_argon2i13=Sn.Je)(),ko._crypto_pwhash_alg_argon2id13=()=>(ko._crypto_pwhash_alg_argon2id13=Sn.Ke)(),ko._crypto_pwhash_alg_default=()=>(ko._crypto_pwhash_alg_default=Sn.Le)(),ko._crypto_pwhash_bytes_min=()=>(ko._crypto_pwhash_bytes_min=Sn.Me)(),ko._crypto_pwhash_bytes_max=()=>(ko._crypto_pwhash_bytes_max=Sn.Ne)(),ko._crypto_pwhash_passwd_min=()=>(ko._crypto_pwhash_passwd_min=Sn.Oe)(),ko._crypto_pwhash_passwd_max=()=>(ko._crypto_pwhash_passwd_max=Sn.Pe)(),ko._crypto_pwhash_saltbytes=()=>(ko._crypto_pwhash_saltbytes=Sn.Qe)(),ko._crypto_pwhash_strbytes=()=>(ko._crypto_pwhash_strbytes=Sn.Re)(),ko._crypto_pwhash_strprefix=()=>(ko._crypto_pwhash_strprefix=Sn.Se)(),ko._crypto_pwhash_opslimit_min=()=>(ko._crypto_pwhash_opslimit_min=Sn.Te)(),ko._crypto_pwhash_opslimit_max=()=>(ko._crypto_pwhash_opslimit_max=Sn.Ue)(),ko._crypto_pwhash_memlimit_min=()=>(ko._crypto_pwhash_memlimit_min=Sn.Ve)(),ko._crypto_pwhash_memlimit_max=()=>(ko._crypto_pwhash_memlimit_max=Sn.We)(),ko._crypto_pwhash_opslimit_interactive=()=>(ko._crypto_pwhash_opslimit_interactive=Sn.Xe)(),ko._crypto_pwhash_memlimit_interactive=()=>(ko._crypto_pwhash_memlimit_interactive=Sn.Ye)(),ko._crypto_pwhash_opslimit_moderate=()=>(ko._crypto_pwhash_opslimit_moderate=Sn.Ze)(),ko._crypto_pwhash_memlimit_moderate=()=>(ko._crypto_pwhash_memlimit_moderate=Sn._e)(),ko._crypto_pwhash_opslimit_sensitive=()=>(ko._crypto_pwhash_opslimit_sensitive=Sn.$e)(),ko._crypto_pwhash_memlimit_sensitive=()=>(ko._crypto_pwhash_memlimit_sensitive=Sn.af)(),ko._crypto_pwhash=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0)=>(ko._crypto_pwhash=Sn.bf)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0),ko._crypto_pwhash_str=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_pwhash_str=Sn.cf)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_pwhash_str_alg=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_pwhash_str_alg=Sn.df)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_pwhash_str_verify=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_str_verify=Sn.ef)(An,Pn,Ln,qn),ko._crypto_pwhash_str_needs_rehash=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_str_needs_rehash=Sn.ff)(An,Pn,Ln,qn),ko._crypto_pwhash_primitive=()=>(ko._crypto_pwhash_primitive=Sn.gf)(),ko._crypto_scalarmult_primitive=()=>(ko._crypto_scalarmult_primitive=Sn.hf)(),ko._crypto_scalarmult_base=(An,Pn)=>(ko._crypto_scalarmult_base=Sn.jf)(An,Pn),ko._crypto_scalarmult=(An,Pn,Ln)=>(ko._crypto_scalarmult=Sn.kf)(An,Pn,Ln),ko._crypto_scalarmult_bytes=()=>(ko._crypto_scalarmult_bytes=Sn.lf)(),ko._crypto_scalarmult_scalarbytes=()=>(ko._crypto_scalarmult_scalarbytes=Sn.mf)(),ko._crypto_scalarmult_curve25519=(An,Pn,Ln)=>(ko._crypto_scalarmult_curve25519=Sn.nf)(An,Pn,Ln),ko._crypto_scalarmult_curve25519_base=(An,Pn)=>(ko._crypto_scalarmult_curve25519_base=Sn.of)(An,Pn),ko._crypto_scalarmult_curve25519_bytes=()=>(ko._crypto_scalarmult_curve25519_bytes=Sn.pf)(),ko._crypto_scalarmult_curve25519_scalarbytes=()=>(ko._crypto_scalarmult_curve25519_scalarbytes=Sn.qf)(),ko._crypto_secretbox_keybytes=()=>(ko._crypto_secretbox_keybytes=Sn.rf)(),ko._crypto_secretbox_noncebytes=()=>(ko._crypto_secretbox_noncebytes=Sn.sf)(),ko._crypto_secretbox_zerobytes=()=>(ko._crypto_secretbox_zerobytes=Sn.tf)(),ko._crypto_secretbox_boxzerobytes=()=>(ko._crypto_secretbox_boxzerobytes=Sn.uf)(),ko._crypto_secretbox_macbytes=()=>(ko._crypto_secretbox_macbytes=Sn.vf)(),ko._crypto_secretbox_messagebytes_max=()=>(ko._crypto_secretbox_messagebytes_max=Sn.wf)(),ko._crypto_secretbox_primitive=()=>(ko._crypto_secretbox_primitive=Sn.xf)(),ko._crypto_secretbox=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox=Sn.yf)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_open=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox_open=Sn.zf)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_keygen=An=>(ko._crypto_secretbox_keygen=Sn.Af)(An),ko._crypto_secretbox_detached=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_secretbox_detached=Sn.Bf)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_secretbox_easy=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox_easy=Sn.Cf)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_open_detached=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_secretbox_open_detached=Sn.Df)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_secretbox_open_easy=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox_open_easy=Sn.Ef)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_xsalsa20poly1305=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox_xsalsa20poly1305=Sn.Ff)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_xsalsa20poly1305_open=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox_xsalsa20poly1305_open=Sn.Gf)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_xsalsa20poly1305_keybytes=()=>(ko._crypto_secretbox_xsalsa20poly1305_keybytes=Sn.Hf)(),ko._crypto_secretbox_xsalsa20poly1305_noncebytes=()=>(ko._crypto_secretbox_xsalsa20poly1305_noncebytes=Sn.If)(),ko._crypto_secretbox_xsalsa20poly1305_zerobytes=()=>(ko._crypto_secretbox_xsalsa20poly1305_zerobytes=Sn.Jf)(),ko._crypto_secretbox_xsalsa20poly1305_boxzerobytes=()=>(ko._crypto_secretbox_xsalsa20poly1305_boxzerobytes=Sn.Kf)(),ko._crypto_secretbox_xsalsa20poly1305_macbytes=()=>(ko._crypto_secretbox_xsalsa20poly1305_macbytes=Sn.Lf)(),ko._crypto_secretbox_xsalsa20poly1305_messagebytes_max=()=>(ko._crypto_secretbox_xsalsa20poly1305_messagebytes_max=Sn.Mf)(),ko._crypto_secretbox_xsalsa20poly1305_keygen=An=>(ko._crypto_secretbox_xsalsa20poly1305_keygen=Sn.Nf)(An),ko._crypto_secretstream_xchacha20poly1305_keygen=An=>(ko._crypto_secretstream_xchacha20poly1305_keygen=Sn.Of)(An),ko._crypto_secretstream_xchacha20poly1305_init_push=(An,Pn,Ln)=>(ko._crypto_secretstream_xchacha20poly1305_init_push=Sn.Pf)(An,Pn,Ln),ko._crypto_secretstream_xchacha20poly1305_init_pull=(An,Pn,Ln)=>(ko._crypto_secretstream_xchacha20poly1305_init_pull=Sn.Qf)(An,Pn,Ln),ko._crypto_secretstream_xchacha20poly1305_rekey=An=>(ko._crypto_secretstream_xchacha20poly1305_rekey=Sn.Rf)(An),ko._crypto_secretstream_xchacha20poly1305_push=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0)=>(ko._crypto_secretstream_xchacha20poly1305_push=Sn.Sf)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0),ko._crypto_secretstream_xchacha20poly1305_pull=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0)=>(ko._crypto_secretstream_xchacha20poly1305_pull=Sn.Tf)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0),ko._crypto_secretstream_xchacha20poly1305_statebytes=()=>(ko._crypto_secretstream_xchacha20poly1305_statebytes=Sn.Uf)(),ko._crypto_secretstream_xchacha20poly1305_abytes=()=>(ko._crypto_secretstream_xchacha20poly1305_abytes=Sn.Vf)(),ko._crypto_secretstream_xchacha20poly1305_headerbytes=()=>(ko._crypto_secretstream_xchacha20poly1305_headerbytes=Sn.Wf)(),ko._crypto_secretstream_xchacha20poly1305_keybytes=()=>(ko._crypto_secretstream_xchacha20poly1305_keybytes=Sn.Xf)(),ko._crypto_secretstream_xchacha20poly1305_messagebytes_max=()=>(ko._crypto_secretstream_xchacha20poly1305_messagebytes_max=Sn.Yf)(),ko._crypto_secretstream_xchacha20poly1305_tag_message=()=>(ko._crypto_secretstream_xchacha20poly1305_tag_message=Sn.Zf)(),ko._crypto_secretstream_xchacha20poly1305_tag_push=()=>(ko._crypto_secretstream_xchacha20poly1305_tag_push=Sn._f)(),ko._crypto_secretstream_xchacha20poly1305_tag_rekey=()=>(ko._crypto_secretstream_xchacha20poly1305_tag_rekey=Sn.$f)(),ko._crypto_secretstream_xchacha20poly1305_tag_final=()=>(ko._crypto_secretstream_xchacha20poly1305_tag_final=Sn.ag)(),ko._crypto_shorthash_bytes=()=>(ko._crypto_shorthash_bytes=Sn.bg)(),ko._crypto_shorthash_keybytes=()=>(ko._crypto_shorthash_keybytes=Sn.cg)(),ko._crypto_shorthash_primitive=()=>(ko._crypto_shorthash_primitive=Sn.dg)(),ko._crypto_shorthash=(An,Pn,Ln,qn,na)=>(ko._crypto_shorthash=Sn.eg)(An,Pn,Ln,qn,na),ko._crypto_shorthash_keygen=An=>(ko._crypto_shorthash_keygen=Sn.fg)(An),ko._crypto_shorthash_siphash24_bytes=()=>(ko._crypto_shorthash_siphash24_bytes=Sn.gg)(),ko._crypto_shorthash_siphash24_keybytes=()=>(ko._crypto_shorthash_siphash24_keybytes=Sn.hg)(),ko._crypto_shorthash_siphash24=(An,Pn,Ln,qn,na)=>(ko._crypto_shorthash_siphash24=Sn.ig)(An,Pn,Ln,qn,na),ko._crypto_sign_statebytes=()=>(ko._crypto_sign_statebytes=Sn.jg)(),ko._crypto_sign_bytes=()=>(ko._crypto_sign_bytes=Sn.kg)(),ko._crypto_sign_seedbytes=()=>(ko._crypto_sign_seedbytes=Sn.lg)(),ko._crypto_sign_publickeybytes=()=>(ko._crypto_sign_publickeybytes=Sn.mg)(),ko._crypto_sign_secretkeybytes=()=>(ko._crypto_sign_secretkeybytes=Sn.ng)(),ko._crypto_sign_messagebytes_max=()=>(ko._crypto_sign_messagebytes_max=Sn.og)(),ko._crypto_sign_primitive=()=>(ko._crypto_sign_primitive=Sn.pg)(),ko._crypto_sign_seed_keypair=(An,Pn,Ln)=>(ko._crypto_sign_seed_keypair=Sn.qg)(An,Pn,Ln),ko._crypto_sign_keypair=(An,Pn)=>(ko._crypto_sign_keypair=Sn.rg)(An,Pn),ko._crypto_sign=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_sign=Sn.sg)(An,Pn,Ln,qn,na,ls),ko._crypto_sign_open=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_sign_open=Sn.tg)(An,Pn,Ln,qn,na,ls),ko._crypto_sign_detached=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_sign_detached=Sn.ug)(An,Pn,Ln,qn,na,ls),ko._crypto_sign_verify_detached=(An,Pn,Ln,qn,na)=>(ko._crypto_sign_verify_detached=Sn.vg)(An,Pn,Ln,qn,na),ko._crypto_sign_init=An=>(ko._crypto_sign_init=Sn.wg)(An),ko._crypto_sign_update=(An,Pn,Ln,qn)=>(ko._crypto_sign_update=Sn.xg)(An,Pn,Ln,qn),ko._crypto_sign_final_create=(An,Pn,Ln,qn)=>(ko._crypto_sign_final_create=Sn.yg)(An,Pn,Ln,qn),ko._crypto_sign_final_verify=(An,Pn,Ln)=>(ko._crypto_sign_final_verify=Sn.zg)(An,Pn,Ln),ko._crypto_sign_ed25519ph_statebytes=()=>(ko._crypto_sign_ed25519ph_statebytes=Sn.Ag)(),ko._crypto_sign_ed25519_bytes=()=>(ko._crypto_sign_ed25519_bytes=Sn.Bg)(),ko._crypto_sign_ed25519_seedbytes=()=>(ko._crypto_sign_ed25519_seedbytes=Sn.Cg)(),ko._crypto_sign_ed25519_publickeybytes=()=>(ko._crypto_sign_ed25519_publickeybytes=Sn.Dg)(),ko._crypto_sign_ed25519_secretkeybytes=()=>(ko._crypto_sign_ed25519_secretkeybytes=Sn.Eg)(),ko._crypto_sign_ed25519_messagebytes_max=()=>(ko._crypto_sign_ed25519_messagebytes_max=Sn.Fg)(),ko._crypto_sign_ed25519_sk_to_seed=(An,Pn)=>(ko._crypto_sign_ed25519_sk_to_seed=Sn.Gg)(An,Pn),ko._crypto_sign_ed25519_sk_to_pk=(An,Pn)=>(ko._crypto_sign_ed25519_sk_to_pk=Sn.Hg)(An,Pn),ko._crypto_sign_ed25519ph_init=An=>(ko._crypto_sign_ed25519ph_init=Sn.Ig)(An),ko._crypto_sign_ed25519ph_update=(An,Pn,Ln,qn)=>(ko._crypto_sign_ed25519ph_update=Sn.Jg)(An,Pn,Ln,qn),ko._crypto_sign_ed25519ph_final_create=(An,Pn,Ln,qn)=>(ko._crypto_sign_ed25519ph_final_create=Sn.Kg)(An,Pn,Ln,qn),ko._crypto_sign_ed25519ph_final_verify=(An,Pn,Ln)=>(ko._crypto_sign_ed25519ph_final_verify=Sn.Lg)(An,Pn,Ln),ko._crypto_sign_ed25519_seed_keypair=(An,Pn,Ln)=>(ko._crypto_sign_ed25519_seed_keypair=Sn.Mg)(An,Pn,Ln),ko._crypto_sign_ed25519_keypair=(An,Pn)=>(ko._crypto_sign_ed25519_keypair=Sn.Ng)(An,Pn),ko._crypto_sign_ed25519_pk_to_curve25519=(An,Pn)=>(ko._crypto_sign_ed25519_pk_to_curve25519=Sn.Og)(An,Pn),ko._crypto_sign_ed25519_sk_to_curve25519=(An,Pn)=>(ko._crypto_sign_ed25519_sk_to_curve25519=Sn.Pg)(An,Pn),ko._crypto_sign_ed25519_verify_detached=(An,Pn,Ln,qn,na)=>(ko._crypto_sign_ed25519_verify_detached=Sn.Qg)(An,Pn,Ln,qn,na),ko._crypto_sign_ed25519_open=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_sign_ed25519_open=Sn.Rg)(An,Pn,Ln,qn,na,ls),ko._crypto_sign_ed25519_detached=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_sign_ed25519_detached=Sn.Sg)(An,Pn,Ln,qn,na,ls),ko._crypto_sign_ed25519=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_sign_ed25519=Sn.Tg)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_chacha20_keybytes=()=>(ko._crypto_stream_chacha20_keybytes=Sn.Ug)(),ko._crypto_stream_chacha20_noncebytes=()=>(ko._crypto_stream_chacha20_noncebytes=Sn.Vg)(),ko._crypto_stream_chacha20_messagebytes_max=()=>(ko._crypto_stream_chacha20_messagebytes_max=Sn.Wg)(),ko._crypto_stream_chacha20_ietf_keybytes=()=>(ko._crypto_stream_chacha20_ietf_keybytes=Sn.Xg)(),ko._crypto_stream_chacha20_ietf_noncebytes=()=>(ko._crypto_stream_chacha20_ietf_noncebytes=Sn.Yg)(),ko._crypto_stream_chacha20_ietf_messagebytes_max=()=>(ko._crypto_stream_chacha20_ietf_messagebytes_max=Sn.Zg)(),ko._crypto_stream_chacha20=(An,Pn,Ln,qn,na)=>(ko._crypto_stream_chacha20=Sn._g)(An,Pn,Ln,qn,na),ko._crypto_stream_chacha20_xor_ic=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_stream_chacha20_xor_ic=Sn.$g)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_stream_chacha20_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_chacha20_xor=Sn.ah)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_chacha20_ietf=(An,Pn,Ln,qn,na)=>(ko._crypto_stream_chacha20_ietf=Sn.bh)(An,Pn,Ln,qn,na),ko._crypto_stream_chacha20_ietf_xor_ic=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_stream_chacha20_ietf_xor_ic=Sn.ch)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_stream_chacha20_ietf_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_chacha20_ietf_xor=Sn.dh)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_chacha20_ietf_keygen=An=>(ko._crypto_stream_chacha20_ietf_keygen=Sn.eh)(An),ko._crypto_stream_chacha20_keygen=An=>(ko._crypto_stream_chacha20_keygen=Sn.fh)(An),ko._crypto_stream_keybytes=()=>(ko._crypto_stream_keybytes=Sn.gh)(),ko._crypto_stream_noncebytes=()=>(ko._crypto_stream_noncebytes=Sn.hh)(),ko._crypto_stream_messagebytes_max=()=>(ko._crypto_stream_messagebytes_max=Sn.ih)(),ko._crypto_stream_primitive=()=>(ko._crypto_stream_primitive=Sn.jh)(),ko._crypto_stream=(An,Pn,Ln,qn,na)=>(ko._crypto_stream=Sn.kh)(An,Pn,Ln,qn,na),ko._crypto_stream_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_xor=Sn.lh)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_keygen=An=>(ko._crypto_stream_keygen=Sn.mh)(An),ko._crypto_stream_salsa20_keybytes=()=>(ko._crypto_stream_salsa20_keybytes=Sn.nh)(),ko._crypto_stream_salsa20_noncebytes=()=>(ko._crypto_stream_salsa20_noncebytes=Sn.oh)(),ko._crypto_stream_salsa20_messagebytes_max=()=>(ko._crypto_stream_salsa20_messagebytes_max=Sn.ph)(),ko._crypto_stream_salsa20=(An,Pn,Ln,qn,na)=>(ko._crypto_stream_salsa20=Sn.qh)(An,Pn,Ln,qn,na),ko._crypto_stream_salsa20_xor_ic=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_stream_salsa20_xor_ic=Sn.rh)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_stream_salsa20_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_salsa20_xor=Sn.sh)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_salsa20_keygen=An=>(ko._crypto_stream_salsa20_keygen=Sn.th)(An),ko._crypto_stream_xsalsa20=(An,Pn,Ln,qn,na)=>(ko._crypto_stream_xsalsa20=Sn.uh)(An,Pn,Ln,qn,na),ko._crypto_stream_xsalsa20_xor_ic=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_stream_xsalsa20_xor_ic=Sn.vh)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_stream_xsalsa20_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_xsalsa20_xor=Sn.wh)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_xsalsa20_keybytes=()=>(ko._crypto_stream_xsalsa20_keybytes=Sn.xh)(),ko._crypto_stream_xsalsa20_noncebytes=()=>(ko._crypto_stream_xsalsa20_noncebytes=Sn.yh)(),ko._crypto_stream_xsalsa20_messagebytes_max=()=>(ko._crypto_stream_xsalsa20_messagebytes_max=Sn.zh)(),ko._crypto_stream_xsalsa20_keygen=An=>(ko._crypto_stream_xsalsa20_keygen=Sn.Ah)(An),ko._crypto_verify_16_bytes=()=>(ko._crypto_verify_16_bytes=Sn.Bh)(),ko._crypto_verify_32_bytes=()=>(ko._crypto_verify_32_bytes=Sn.Ch)(),ko._crypto_verify_64_bytes=()=>(ko._crypto_verify_64_bytes=Sn.Dh)(),ko._crypto_verify_16=(An,Pn)=>(ko._crypto_verify_16=Sn.Eh)(An,Pn),ko._crypto_verify_32=(An,Pn)=>(ko._crypto_verify_32=Sn.Fh)(An,Pn),ko._crypto_verify_64=(An,Pn)=>(ko._crypto_verify_64=Sn.Gh)(An,Pn),ko._randombytes_implementation_name=()=>(ko._randombytes_implementation_name=Sn.Hh)(),ko._randombytes_random=()=>(ko._randombytes_random=Sn.Ih)(),ko._randombytes_stir=()=>(ko._randombytes_stir=Sn.Jh)(),ko._randombytes_uniform=An=>(ko._randombytes_uniform=Sn.Kh)(An),ko._randombytes_buf=(An,Pn)=>(ko._randombytes_buf=Sn.Lh)(An,Pn),ko._randombytes_buf_deterministic=(An,Pn,Ln)=>(ko._randombytes_buf_deterministic=Sn.Mh)(An,Pn,Ln),ko._randombytes_seedbytes=()=>(ko._randombytes_seedbytes=Sn.Nh)(),ko._randombytes_close=()=>(ko._randombytes_close=Sn.Oh)(),ko._randombytes=(An,Pn,Ln)=>(ko._randombytes=Sn.Ph)(An,Pn,Ln),ko._sodium_bin2hex=(An,Pn,Ln,qn)=>(ko._sodium_bin2hex=Sn.Qh)(An,Pn,Ln,qn),ko._sodium_hex2bin=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._sodium_hex2bin=Sn.Rh)(An,Pn,Ln,qn,na,ls,Ns),ko._sodium_base64_encoded_len=(An,Pn)=>(ko._sodium_base64_encoded_len=Sn.Sh)(An,Pn),ko._sodium_bin2base64=(An,Pn,Ln,qn,na)=>(ko._sodium_bin2base64=Sn.Th)(An,Pn,Ln,qn,na),ko._sodium_base642bin=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._sodium_base642bin=Sn.Uh)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._sodium_init=()=>(ko._sodium_init=Sn.Vh)(),ko._sodium_pad=(An,Pn,Ln,qn,na)=>(ko._sodium_pad=Sn.Wh)(An,Pn,Ln,qn,na),ko._sodium_unpad=(An,Pn,Ln,qn)=>(ko._sodium_unpad=Sn.Xh)(An,Pn,Ln,qn),ko._sodium_version_string=()=>(ko._sodium_version_string=Sn.Yh)(),ko._sodium_library_version_major=()=>(ko._sodium_library_version_major=Sn.Zh)(),ko._sodium_library_version_minor=()=>(ko._sodium_library_version_minor=Sn._h)(),ko._sodium_library_minimal=()=>(ko._sodium_library_minimal=Sn.$h)(),ko._crypto_box_curve25519xchacha20poly1305_seed_keypair=(An,Pn,Ln)=>(ko._crypto_box_curve25519xchacha20poly1305_seed_keypair=Sn.ai)(An,Pn,Ln),ko._crypto_box_curve25519xchacha20poly1305_keypair=(An,Pn)=>(ko._crypto_box_curve25519xchacha20poly1305_keypair=Sn.bi)(An,Pn),ko._crypto_box_curve25519xchacha20poly1305_beforenm=(An,Pn,Ln)=>(ko._crypto_box_curve25519xchacha20poly1305_beforenm=Sn.ci)(An,Pn,Ln),ko._crypto_box_curve25519xchacha20poly1305_detached_afternm=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_curve25519xchacha20poly1305_detached_afternm=Sn.di)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_curve25519xchacha20poly1305_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_box_curve25519xchacha20poly1305_detached=Sn.ei)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_box_curve25519xchacha20poly1305_easy_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_curve25519xchacha20poly1305_easy_afternm=Sn.fi)(An,Pn,Ln,qn,na,ls),ko._crypto_box_curve25519xchacha20poly1305_easy=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_curve25519xchacha20poly1305_easy=Sn.gi)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=Sn.hi)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_curve25519xchacha20poly1305_open_detached=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_box_curve25519xchacha20poly1305_open_detached=Sn.ii)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=Sn.ji)(An,Pn,Ln,qn,na,ls),ko._crypto_box_curve25519xchacha20poly1305_open_easy=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_box_curve25519xchacha20poly1305_open_easy=Sn.ki)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_box_curve25519xchacha20poly1305_seedbytes=()=>(ko._crypto_box_curve25519xchacha20poly1305_seedbytes=Sn.li)(),ko._crypto_box_curve25519xchacha20poly1305_publickeybytes=()=>(ko._crypto_box_curve25519xchacha20poly1305_publickeybytes=Sn.mi)(),ko._crypto_box_curve25519xchacha20poly1305_secretkeybytes=()=>(ko._crypto_box_curve25519xchacha20poly1305_secretkeybytes=Sn.ni)(),ko._crypto_box_curve25519xchacha20poly1305_beforenmbytes=()=>(ko._crypto_box_curve25519xchacha20poly1305_beforenmbytes=Sn.oi)(),ko._crypto_box_curve25519xchacha20poly1305_noncebytes=()=>(ko._crypto_box_curve25519xchacha20poly1305_noncebytes=Sn.pi)(),ko._crypto_box_curve25519xchacha20poly1305_macbytes=()=>(ko._crypto_box_curve25519xchacha20poly1305_macbytes=Sn.qi)(),ko._crypto_box_curve25519xchacha20poly1305_messagebytes_max=()=>(ko._crypto_box_curve25519xchacha20poly1305_messagebytes_max=Sn.ri)(),ko._crypto_box_curve25519xchacha20poly1305_seal=(An,Pn,Ln,qn,na)=>(ko._crypto_box_curve25519xchacha20poly1305_seal=Sn.si)(An,Pn,Ln,qn,na),ko._crypto_box_curve25519xchacha20poly1305_seal_open=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_box_curve25519xchacha20poly1305_seal_open=Sn.ti)(An,Pn,Ln,qn,na,ls),ko._crypto_box_curve25519xchacha20poly1305_sealbytes=()=>(ko._crypto_box_curve25519xchacha20poly1305_sealbytes=Sn.ui)(),ko._crypto_core_ed25519_is_valid_point=An=>(ko._crypto_core_ed25519_is_valid_point=Sn.vi)(An),ko._crypto_core_ed25519_add=(An,Pn,Ln)=>(ko._crypto_core_ed25519_add=Sn.wi)(An,Pn,Ln),ko._crypto_core_ed25519_sub=(An,Pn,Ln)=>(ko._crypto_core_ed25519_sub=Sn.xi)(An,Pn,Ln),ko._crypto_core_ed25519_from_uniform=(An,Pn)=>(ko._crypto_core_ed25519_from_uniform=Sn.yi)(An,Pn),ko._crypto_core_ed25519_random=An=>(ko._crypto_core_ed25519_random=Sn.zi)(An),ko._crypto_core_ed25519_scalar_random=An=>(ko._crypto_core_ed25519_scalar_random=Sn.Ai)(An),ko._crypto_core_ed25519_scalar_invert=(An,Pn)=>(ko._crypto_core_ed25519_scalar_invert=Sn.Bi)(An,Pn),ko._crypto_core_ed25519_scalar_negate=(An,Pn)=>(ko._crypto_core_ed25519_scalar_negate=Sn.Ci)(An,Pn),ko._crypto_core_ed25519_scalar_complement=(An,Pn)=>(ko._crypto_core_ed25519_scalar_complement=Sn.Di)(An,Pn),ko._crypto_core_ed25519_scalar_add=(An,Pn,Ln)=>(ko._crypto_core_ed25519_scalar_add=Sn.Ei)(An,Pn,Ln),ko._crypto_core_ed25519_scalar_reduce=(An,Pn)=>(ko._crypto_core_ed25519_scalar_reduce=Sn.Fi)(An,Pn),ko._crypto_core_ed25519_scalar_sub=(An,Pn,Ln)=>(ko._crypto_core_ed25519_scalar_sub=Sn.Gi)(An,Pn,Ln),ko._crypto_core_ed25519_scalar_mul=(An,Pn,Ln)=>(ko._crypto_core_ed25519_scalar_mul=Sn.Hi)(An,Pn,Ln),ko._crypto_core_ed25519_bytes=()=>(ko._crypto_core_ed25519_bytes=Sn.Ii)(),ko._crypto_core_ed25519_nonreducedscalarbytes=()=>(ko._crypto_core_ed25519_nonreducedscalarbytes=Sn.Ji)(),ko._crypto_core_ed25519_uniformbytes=()=>(ko._crypto_core_ed25519_uniformbytes=Sn.Ki)(),ko._crypto_core_ed25519_hashbytes=()=>(ko._crypto_core_ed25519_hashbytes=Sn.Li)(),ko._crypto_core_ed25519_scalarbytes=()=>(ko._crypto_core_ed25519_scalarbytes=Sn.Mi)(),ko._crypto_core_ristretto255_is_valid_point=An=>(ko._crypto_core_ristretto255_is_valid_point=Sn.Ni)(An),ko._crypto_core_ristretto255_add=(An,Pn,Ln)=>(ko._crypto_core_ristretto255_add=Sn.Oi)(An,Pn,Ln),ko._crypto_core_ristretto255_sub=(An,Pn,Ln)=>(ko._crypto_core_ristretto255_sub=Sn.Pi)(An,Pn,Ln),ko._crypto_core_ristretto255_from_hash=(An,Pn)=>(ko._crypto_core_ristretto255_from_hash=Sn.Qi)(An,Pn),ko._crypto_core_ristretto255_random=An=>(ko._crypto_core_ristretto255_random=Sn.Ri)(An),ko._crypto_core_ristretto255_scalar_random=An=>(ko._crypto_core_ristretto255_scalar_random=Sn.Si)(An),ko._crypto_core_ristretto255_scalar_invert=(An,Pn)=>(ko._crypto_core_ristretto255_scalar_invert=Sn.Ti)(An,Pn),ko._crypto_core_ristretto255_scalar_negate=(An,Pn)=>(ko._crypto_core_ristretto255_scalar_negate=Sn.Ui)(An,Pn),ko._crypto_core_ristretto255_scalar_complement=(An,Pn)=>(ko._crypto_core_ristretto255_scalar_complement=Sn.Vi)(An,Pn),ko._crypto_core_ristretto255_scalar_add=(An,Pn,Ln)=>(ko._crypto_core_ristretto255_scalar_add=Sn.Wi)(An,Pn,Ln),ko._crypto_core_ristretto255_scalar_sub=(An,Pn,Ln)=>(ko._crypto_core_ristretto255_scalar_sub=Sn.Xi)(An,Pn,Ln),ko._crypto_core_ristretto255_scalar_mul=(An,Pn,Ln)=>(ko._crypto_core_ristretto255_scalar_mul=Sn.Yi)(An,Pn,Ln),ko._crypto_core_ristretto255_scalar_reduce=(An,Pn)=>(ko._crypto_core_ristretto255_scalar_reduce=Sn.Zi)(An,Pn),ko._crypto_core_ristretto255_bytes=()=>(ko._crypto_core_ristretto255_bytes=Sn._i)(),ko._crypto_core_ristretto255_nonreducedscalarbytes=()=>(ko._crypto_core_ristretto255_nonreducedscalarbytes=Sn.$i)(),ko._crypto_core_ristretto255_hashbytes=()=>(ko._crypto_core_ristretto255_hashbytes=Sn.aj)(),ko._crypto_core_ristretto255_scalarbytes=()=>(ko._crypto_core_ristretto255_scalarbytes=Sn.bj)(),ko._crypto_pwhash_scryptsalsa208sha256_ll=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0)=>(ko._crypto_pwhash_scryptsalsa208sha256_ll=Sn.cj)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0),ko._crypto_pwhash_scryptsalsa208sha256_bytes_min=()=>(ko._crypto_pwhash_scryptsalsa208sha256_bytes_min=Sn.dj)(),ko._crypto_pwhash_scryptsalsa208sha256_bytes_max=()=>(ko._crypto_pwhash_scryptsalsa208sha256_bytes_max=Sn.ej)(),ko._crypto_pwhash_scryptsalsa208sha256_passwd_min=()=>(ko._crypto_pwhash_scryptsalsa208sha256_passwd_min=Sn.fj)(),ko._crypto_pwhash_scryptsalsa208sha256_passwd_max=()=>(ko._crypto_pwhash_scryptsalsa208sha256_passwd_max=Sn.gj)(),ko._crypto_pwhash_scryptsalsa208sha256_saltbytes=()=>(ko._crypto_pwhash_scryptsalsa208sha256_saltbytes=Sn.hj)(),ko._crypto_pwhash_scryptsalsa208sha256_strbytes=()=>(ko._crypto_pwhash_scryptsalsa208sha256_strbytes=Sn.ij)(),ko._crypto_pwhash_scryptsalsa208sha256_strprefix=()=>(ko._crypto_pwhash_scryptsalsa208sha256_strprefix=Sn.jj)(),ko._crypto_pwhash_scryptsalsa208sha256_opslimit_min=()=>(ko._crypto_pwhash_scryptsalsa208sha256_opslimit_min=Sn.kj)(),ko._crypto_pwhash_scryptsalsa208sha256_opslimit_max=()=>(ko._crypto_pwhash_scryptsalsa208sha256_opslimit_max=Sn.lj)(),ko._crypto_pwhash_scryptsalsa208sha256_memlimit_min=()=>(ko._crypto_pwhash_scryptsalsa208sha256_memlimit_min=Sn.mj)(),ko._crypto_pwhash_scryptsalsa208sha256_memlimit_max=()=>(ko._crypto_pwhash_scryptsalsa208sha256_memlimit_max=Sn.nj)(),ko._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=()=>(ko._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=Sn.oj)(),ko._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=()=>(ko._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=Sn.pj)(),ko._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=()=>(ko._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=Sn.qj)(),ko._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=()=>(ko._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=Sn.rj)(),ko._crypto_pwhash_scryptsalsa208sha256=(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0)=>(ko._crypto_pwhash_scryptsalsa208sha256=Sn.sj)(An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0),ko._crypto_pwhash_scryptsalsa208sha256_str=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_pwhash_scryptsalsa208sha256_str=Sn.tj)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_pwhash_scryptsalsa208sha256_str_verify=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_scryptsalsa208sha256_str_verify=Sn.uj)(An,Pn,Ln,qn),ko._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=(An,Pn,Ln,qn)=>(ko._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=Sn.vj)(An,Pn,Ln,qn),ko._crypto_scalarmult_ed25519=(An,Pn,Ln)=>(ko._crypto_scalarmult_ed25519=Sn.wj)(An,Pn,Ln),ko._crypto_scalarmult_ed25519_noclamp=(An,Pn,Ln)=>(ko._crypto_scalarmult_ed25519_noclamp=Sn.xj)(An,Pn,Ln),ko._crypto_scalarmult_ed25519_base=(An,Pn)=>(ko._crypto_scalarmult_ed25519_base=Sn.yj)(An,Pn),ko._crypto_scalarmult_ed25519_base_noclamp=(An,Pn)=>(ko._crypto_scalarmult_ed25519_base_noclamp=Sn.zj)(An,Pn),ko._crypto_scalarmult_ed25519_bytes=()=>(ko._crypto_scalarmult_ed25519_bytes=Sn.Aj)(),ko._crypto_scalarmult_ed25519_scalarbytes=()=>(ko._crypto_scalarmult_ed25519_scalarbytes=Sn.Bj)(),ko._crypto_scalarmult_ristretto255=(An,Pn,Ln)=>(ko._crypto_scalarmult_ristretto255=Sn.Cj)(An,Pn,Ln),ko._crypto_scalarmult_ristretto255_base=(An,Pn)=>(ko._crypto_scalarmult_ristretto255_base=Sn.Dj)(An,Pn),ko._crypto_scalarmult_ristretto255_bytes=()=>(ko._crypto_scalarmult_ristretto255_bytes=Sn.Ej)(),ko._crypto_scalarmult_ristretto255_scalarbytes=()=>(ko._crypto_scalarmult_ristretto255_scalarbytes=Sn.Fj)(),ko._crypto_secretbox_xchacha20poly1305_detached=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_secretbox_xchacha20poly1305_detached=Sn.Gj)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_secretbox_xchacha20poly1305_easy=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox_xchacha20poly1305_easy=Sn.Hj)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_xchacha20poly1305_open_detached=(An,Pn,Ln,qn,na,ls,Ns)=>(ko._crypto_secretbox_xchacha20poly1305_open_detached=Sn.Ij)(An,Pn,Ln,qn,na,ls,Ns),ko._crypto_secretbox_xchacha20poly1305_open_easy=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_secretbox_xchacha20poly1305_open_easy=Sn.Jj)(An,Pn,Ln,qn,na,ls),ko._crypto_secretbox_xchacha20poly1305_keybytes=()=>(ko._crypto_secretbox_xchacha20poly1305_keybytes=Sn.Kj)(),ko._crypto_secretbox_xchacha20poly1305_noncebytes=()=>(ko._crypto_secretbox_xchacha20poly1305_noncebytes=Sn.Lj)(),ko._crypto_secretbox_xchacha20poly1305_macbytes=()=>(ko._crypto_secretbox_xchacha20poly1305_macbytes=Sn.Mj)(),ko._crypto_secretbox_xchacha20poly1305_messagebytes_max=()=>(ko._crypto_secretbox_xchacha20poly1305_messagebytes_max=Sn.Nj)(),ko._crypto_shorthash_siphashx24_bytes=()=>(ko._crypto_shorthash_siphashx24_bytes=Sn.Oj)(),ko._crypto_shorthash_siphashx24_keybytes=()=>(ko._crypto_shorthash_siphashx24_keybytes=Sn.Pj)(),ko._crypto_shorthash_siphashx24=(An,Pn,Ln,qn,na)=>(ko._crypto_shorthash_siphashx24=Sn.Qj)(An,Pn,Ln,qn,na),ko._crypto_stream_salsa2012=(An,Pn,Ln,qn,na)=>(ko._crypto_stream_salsa2012=Sn.Rj)(An,Pn,Ln,qn,na),ko._crypto_stream_salsa2012_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_salsa2012_xor=Sn.Sj)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_salsa2012_keybytes=()=>(ko._crypto_stream_salsa2012_keybytes=Sn.Tj)(),ko._crypto_stream_salsa2012_noncebytes=()=>(ko._crypto_stream_salsa2012_noncebytes=Sn.Uj)(),ko._crypto_stream_salsa2012_messagebytes_max=()=>(ko._crypto_stream_salsa2012_messagebytes_max=Sn.Vj)(),ko._crypto_stream_salsa2012_keygen=An=>(ko._crypto_stream_salsa2012_keygen=Sn.Wj)(An),ko._crypto_stream_salsa208=(An,Pn,Ln,qn,na)=>(ko._crypto_stream_salsa208=Sn.Xj)(An,Pn,Ln,qn,na),ko._crypto_stream_salsa208_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_salsa208_xor=Sn.Yj)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_salsa208_keybytes=()=>(ko._crypto_stream_salsa208_keybytes=Sn.Zj)(),ko._crypto_stream_salsa208_noncebytes=()=>(ko._crypto_stream_salsa208_noncebytes=Sn._j)(),ko._crypto_stream_salsa208_messagebytes_max=()=>(ko._crypto_stream_salsa208_messagebytes_max=Sn.$j)(),ko._crypto_stream_salsa208_keygen=An=>(ko._crypto_stream_salsa208_keygen=Sn.ak)(An),ko._crypto_stream_xchacha20_keybytes=()=>(ko._crypto_stream_xchacha20_keybytes=Sn.bk)(),ko._crypto_stream_xchacha20_noncebytes=()=>(ko._crypto_stream_xchacha20_noncebytes=Sn.ck)(),ko._crypto_stream_xchacha20_messagebytes_max=()=>(ko._crypto_stream_xchacha20_messagebytes_max=Sn.dk)(),ko._crypto_stream_xchacha20=(An,Pn,Ln,qn,na)=>(ko._crypto_stream_xchacha20=Sn.ek)(An,Pn,Ln,qn,na),ko._crypto_stream_xchacha20_xor_ic=(An,Pn,Ln,qn,na,ls,Ns,Qs)=>(ko._crypto_stream_xchacha20_xor_ic=Sn.fk)(An,Pn,Ln,qn,na,ls,Ns,Qs),ko._crypto_stream_xchacha20_xor=(An,Pn,Ln,qn,na,ls)=>(ko._crypto_stream_xchacha20_xor=Sn.gk)(An,Pn,Ln,qn,na,ls),ko._crypto_stream_xchacha20_keygen=An=>(ko._crypto_stream_xchacha20_keygen=Sn.hk)(An),ko._malloc=An=>(ko._malloc=Sn.ik)(An),ko._free=An=>(ko._free=Sn.jk)(An),ko.setValue=function(An,Pn,Ln="i8"){switch(Ln.endsWith("*")&&(Ln="*"),Ln){case"i1":case"i8":b0[An>>0]=Pn;break;case"i16":D0[An>>1]=Pn;break;case"i32":zs[An>>2]=Pn;break;case"i64":Rs("to do setValue(i64) use WASM_BIGINT");case"float":fo[An>>2]=Pn;break;case"double":Qo[An>>3]=Pn;break;case"*":n0[An>>2]=Pn;break;default:Rs(`invalid type for setValue: ${Ln}`)}},ko.getValue=function(An,Pn="i8"){switch(Pn.endsWith("*")&&(Pn="*"),Pn){case"i1":case"i8":return b0[An>>0];case"i16":return D0[An>>1];case"i32":return zs[An>>2];case"i64":Rs("to do getValue(i64) use WASM_BIGINT");case"float":return fo[An>>2];case"double":return Qo[An>>3];case"*":return n0[An>>2];default:Rs(`invalid type for getValue: ${Pn}`)}},ko.UTF8ToString=s0,Ss=function An(){Bs||T0(),Bs||(Ss=An)},ko.preInit)for(typeof ko.preInit=="function"&&(ko.preInit=[ko.preInit]);ko.preInit.length>0;)ko.preInit.pop()();T0()})};var qt,ro,ht=ht!==void 0?ht:{},po=Object.assign({},ht),no=typeof window=="object",Nt=typeof importScripts=="function",eo=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",Wt="";if(eo){var St=require$$0$3,Ot=require$$0$3;Wt=Nt?Ot.dirname(Wt)+"/":__dirname+"/",qt=(Vo,zo)=>(Vo=function($n){return $n.startsWith("file://")}(Vo)?new URL(Vo):Ot.normalize(Vo),St.readFileSync(Vo,zo?void 0:"utf8")),ro=Vo=>{var zo=qt(Vo,!0);return zo.buffer||(zo=new Uint8Array(zo)),zo},!ht.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),_e.exports=ht,ht.inspect=()=>"[Emscripten Module object]"}else(no||Nt)&&(Nt?Wt=self.location.href:typeof document<"u"&&document.currentScript&&(Wt=document.currentScript.src),Wt=Wt.indexOf("blob:")!==0?Wt.substr(0,Wt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",qt=Vo=>{var zo=new XMLHttpRequest;return zo.open("GET",Vo,!1),zo.send(null),zo.responseText},Nt&&(ro=Vo=>{var zo=new XMLHttpRequest;return zo.open("GET",Vo,!1),zo.responseType="arraybuffer",zo.send(null),new Uint8Array(zo.response)}));ht.print;var uo,go,bo=ht.printErr||void 0;Object.assign(ht,po),po=null,ht.arguments&&ht.arguments,ht.thisProgram&&ht.thisProgram,ht.quit&&ht.quit,ht.wasmBinary&&(uo=ht.wasmBinary),ht.noExitRuntime,typeof WebAssembly!="object"&&Tt("no native wasm support detected");var oo,Ro,pt,lo,so,wo,xt,Mt=!1;function ho(){var Vo=go.buffer;ht.HEAP8=oo=new Int8Array(Vo),ht.HEAP16=pt=new Int16Array(Vo),ht.HEAPU8=Ro=new Uint8Array(Vo),ht.HEAPU16=new Uint16Array(Vo),ht.HEAP32=lo=new Int32Array(Vo),ht.HEAPU32=so=new Uint32Array(Vo),ht.HEAPF32=wo=new Float32Array(Vo),ht.HEAPF64=xt=new Float64Array(Vo)}var io=[],co=[],mo=[],Bo=0,So=null;function Tt(Vo){throw ht.onAbort&&ht.onAbort(Vo),bo(Vo="Aborted("+Vo+")"),Mt=!0,Vo+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(Vo)}var vo,Co,xo="data:application/octet-stream;base64,";function Po(Vo){return Vo.startsWith(xo)}Po(vo="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/f38BfwIfBQFhAWEAAwFhAWIAFAFhAWMAFwFhAWQACQFhAWUABwPLA8kDBAcHBAcBAwMBFwQEDgcOAQIBAgQEAAIFAAkBCQICAgEDAQMOBwcDBQEABA8ACQMABAQAEQkDBQwDAAQACQIDAAEBAAUFBQQJCQMPABUVAQMFBAcEEwAUCRMUFRUUCSEBAAQVBBkDCQkHBB0EHQgIAyITExMVEwMBAQEBAQASBgQJBxQDAAQEBAkEBwcHBAAAAQAAAAgKCggGBQYICAgGCgUGBggFCAoKCgoFBgYXGhsDEREDBQEjBg4kJSYAAwEVAQEaGhsbAwUJAQADAQ8REQIeHwEBAQEHBwQHBAQADiAPIAIeHwEFCgMEBCcOFAcZBwcOARQHGQcHAAMA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fnwgFCAffnwgByAOfnwgDCAVfnwgBCAIfnwgBSAXfnwiIUKAgIAQfCImQhqHfCInQoCAgAh8IihCGYd8Ig8gD0KAgIAQfCIpQoCAgOAPg30+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///wBxrSIHI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QRB3cyALQRh3c3M2AgggACAQIAggCUEId3MgCkEQd3MgB0EYd3NzNgIEIAAgDyAEIAVBCHdzIAZBEHdzIAFBGHdzczYCAAsEAEEgC4AEAQN/IAJBgARPBEAgACABIAIQBCAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAvyAgICfwF+AkAgAkUNACAAIAE6AAAgACACaiIDQQFrIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0EDayABOgAAIANBAmsgAToAACACQQdJDQAgACABOgADIANBBGsgAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkEEayABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBCGsgATYCACACQQxrIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQRBrIAE2AgAgAkEUayABNgIAIAJBGGsgATYCACACQRxrIAE2AgAgBCADQQRxQRhyIgRrIgJBIEkNACABrUKBgICAEH4hBSADIARqIQEDQCABIAU3AxggASAFNwMQIAEgBTcDCCABIAU3AwAgAUEgaiEBIAJBIGsiAkEfSw0ACwsgAAsEAEEQCxgBAX9B2KkCKAIAIgAEQCAAERcACxACAAufBAETfyABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSABQUBrIg4oAgAhDyABKAIcIRAgASgCRCERIAEoAiAhEiABKAJIIRMgASgCACEUIAAgASgCJCABKAJMajYCJCAAIBIgE2o2AiAgACAQIBFqNgIcIAAgDSAPajYCGCAAIAsgDGo2AhQgACAJIApqNgIQIAAgByAIajYCDCAAIAUgBmo2AgggACADIARqNgIEIAAgAiAUajYCACABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSAOKAIAIQ4gASgCHCEPIAEoAkQhECABKAIgIREgASgCSCESIAEoAgAhEyAAIAEoAkwgASgCJGs2AkwgACASIBFrNgJIIAAgECAPazYCRCAAQUBrIA4gDWs2AgAgACAMIAtrNgI8IAAgCiAJazYCOCAAIAggB2s2AjQgACAGIAVrNgIwIAAgBCADazYCLCAAIAIgE2s2AiggACABKQJQNwJQIAAgASkCWDcCWCAAIAEpAmA3AmAgACABKQJoNwJoIAAgASkCcDcCcCAAQfgAaiABQfgAakGgDRAGC+gEAQl/IAAgASgCICIFIAEoAhwiBiABKAIYIgcgASgCFCIIIAEoAhAiCSABKAIMIgogASgCCCIEIAEoAgQiAyABKAIAIgIgASgCJCIBQRNsQYCAgAhqQRl2akEadWpBGXVqQRp1akEZdWpBGnVqQRl1akEadWpBGXVqQRp1IAFqQRl1QRNsIAJqIgI6AAAgACACQRB2OgACIAAgAkEIdjoAASAAIA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ASADQgOIQv8AgyIEfSIIIAJYBEBCACEDIARC/wCFQgNaBEAgCEL8AYMhByAAQdAAaiEKA0AgCiADIAR8p2ogASADp2otAAA6AAAgCiADQgGEIgkgBHynaiABIAmnai0AADoAACAKIANCAoQiCSAEfKdqIAEgCadqLQAAOgAAIAogA0IDhCIJIAR8p2ogASAJp2otAAA6AAAgA0IEfCEDIAVCBHwiBSAHUg0ACwsgCEIDgyIFQgBSBEADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAVSDQALCyAAIABB0ABqIAwgDEGABWoiChBeIAEgCKdqIQEgAiAIfSICQv8AVgRAA0AgACABIAwgChBeIAFBgAFqIQEgAkKAAX0iAkL/AFYNAAsLAkAgAlANACACQgODIQRCACEGQgAhAyACQgRaBEAgAkJ8gyEFIABB0ABqIQpCACECA0AgCiADpyILaiABIAtqLQAAOgAAIAogC0EBciINaiABIA1qLQAAOgAAIAogC0ECciINaiABIA1qLQAAOgAAIAogC0EDciILaiABIAtqLQAAOgAAIANCBHwhAyACQgR8IgIgBVINAAsLIARQDQADQCAAIAOnIgpqIAEgCmotAAA6AFAgA0IBfCEDIAZCAXwiBiAEUg0ACwsgDEHABRAIDAELQgAhAyACQgRaBEAgAkJ8gyEIIABB0ABqIQoDQCAKIAMgBHynaiABIAOnai0AADoAACAKIANCAYQiByAEfKdqIAEgB6dqLQAAOgAAIAogA0IChCIHIAR8p2ogASAHp2otAAA6AAAgCiADQgOEIgcgBHynaiABIAenai0AADoAACADQgR8IQMgBUIEfCIFIAhSDQALCyACQgODIgJQDQADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAJSDQALCyAMQcAFaiQAQQALBABBfwvUAQIFfwJ+An8gAkIAUgRAIABB4AFqIQcgAEHgAGohAyAAKADgAiEEA0AgAyAEaiEGQYACIARrIgWtIgggAloEQCAGIAEgAqciARALGiAAIAAoAOACIAFqNgDgAkEADAMLIAYgASAFEAsaIAAgACgA4AIgBWo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azYCJCAAIBMgEms2AiAgACARIBBrNgIcIAAgDyAOazYCGCAAIA0gDGs2AhQgACALIAprNgIQIAAgCSAIazYCDCAAIAcgBms2AgggACAFIARrNgIEIAAgAyABazYCACAAKAJ4IQEgACgCfCEDIAAoAoABIQQgACgChAEhBSAAKAKIASEGIAAoAowBIQcgACgCkAEhCCAAKAKUASEJIAAoApgBIQogACAAKAKcASAYazYCnAEgACAKIBlrNgKYASAAIAkgGms2ApQBIAAgCCAbazYCkAEgACAHIBxrNgKMASAAIAYgHWs2AogBIAAgBSAeazYChAEgACAEIB9rNgKAASAAIAMgIGs2AnwgACABICFrNgJ4IAJBMGokAAtEAQJ/IwBBEGsiAiQAIAEEQANAIAJBADoADyAAIANqQcCfAiACQQ9qQQAQADoAACADQQFqIgMgAUcNAAsLIAJBEGokAAvdAQEEfyMAQRBrIgJBADoADwJAIAFFDQAgAUEDcSEEIAFBBE8EQCABQXxxIQVBACEBA0AgAiAAIANqLQAAIAItAA9yOgAPIAIgACADQQFyai0AACACLQAPcjoADyACIAAgA0ECcmotAAAgAi0AD3I6AA8gAiAAIANBA3JqLQAAIAItAA9yOgAPIANBBGohAyABQQRqIgEgBUcNAAsLIARFDQBBACEBA0AgAiAAIANqLQAAIAItAA9yOgAPIANBAWohAyABQQFqIgEgBEcNAAsLIAItAA9BAWtBCHZBAXELCgAgACABIAIQFwuOBQERfwJ/IANFBEBBstqIywchBkHuyIGZAyEHQeXwwYsGIQRB9MqB2QYMAQsgAygACCEGIAMoAAQhByADKAAAIQQgAygADAshDyABKAAMIQUgASgACCEMIAEoAAQhCCACKAAcIQogAigAGCELIAIoABQhECACKAAQIQ4gAigADCEDIAIoAAghDSACKAAEIQkgASgAACEBIAIoAAAhAgNAIAIgASACIARqIgJzQRB3IgEgDmoiBHNBDHciDiACaiIRIAFzQQh3IgEgBGoiBCAOc0EHdyICIAMgBSADIA9qIgNzQRB3IgUgCmoiCnNBDHciDiADaiIDaiIPIA0gDCAGIA1qIgZzQRB3Ig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ACAADAELIAAoAggLIQYgACABNgIIIAYgATYCDCABIAA2AgwgASAGNgIIC0HYpQIgBDYCAEHMpQIgAzYCAAsgAkEIaiEACyAKQRBqJAAgAAsEAEEAC3oBA38CQAJAIAAiAUEDcUUNACABLQAARQRAQQAPCwNAIAFBAWoiAUEDcUUNASABLQAADQALDAELA0AgASICQQRqIQEgAigCACIDQX9zIANBgYKECGtxQYCBgoR4cUUNAAsDQCACIgFBAWohAiABLQAADQALCyABIABrCw0AIAAgASACEBUaQQALDQAgACABIAIQIxpBAAv5BQIHfgR/IwBBoAJrIgwkAAJAIAJQDQAgACAAKQMgIgMgAkIDhnw3AyBCwAAgA0IDiEI/gyIEfSIIIAJYBEBCACEDIARCP4VCA1oEQCAIQvwAgyEHIABBKGohCgNAIAogAyAEfKdqIAEgA6dqLQAAOgAAIAogA0IBhCIJIAR8p2ogASAJp2otAAA6AAAgCiADQgKEIgkgBHynaiABIAmnai0AADoAACAKIANCA4QiCSAEfKdqIAEgCadqLQAAOgAAIANCBHwhAyAFQgR8IgUgB1INAAsLIAhCA4MiBUIAUgRAA0AgACADIAR8p2ogASADp2otAAA6ACggA0IBfCEDIAZCAXwiBiAFUg0ACwsgACAAQShqIAwgDEGAAmoiChBhIAEgCKdqIQEgAiAIfSICQj9WBEADQCAAIAEgDCAKEGEgAUFAayEBIAJCQHwiAkI/Vg0ACwsCQCACUA0AIAJCA4MhBEIAIQZCACEDIAJCBFoEQCACQnyDIQUgAEEoaiEKQgAhAgNAIAogA6ciC2ogASALai0AADoAACAKIAtBAXIiDWogASANai0AADoAACAKIAtBAnIiDWogASANai0AADoAACAKIAtBA3IiC2ogASALai0AADoAACADQgR8IQMgAkIEfCICIAVSDQALCyAEUA0AA0AgACADpyIKaiABIApqLQAAOgAoIANCAXwhAyAGQgF8IgYgBFINAAsLIAxBoAIQCAwBC0IAIQMgAkIEWgRAIAJCfIMhCCAAQShqIQoDQCAKIAMgBHynaiABIAOnai0AADoAACAKIANCAYQiByAEfKdqIA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AGIAYgD3MgAnFzNgJcIAAgBSAFIA5zIAJxczYCWCAAIAQgBCANcyACcXM2AlQgACADIAMgDHMgAnFzNgJQIAAoAnghAyABKAJ4IQwgACgCfCEEIAEoAnwhDSAAKAKAASEFIAEoAoABIQ4gACgChAEhBiABKAKEASEPIAAoAogBIQcgASgCiAEhECAAKAKMASEIIAEoAowBIREgACgCkAEhCSABKAKQASESIAAoApQBIQogASgClAEhEyAAKAKYASELIAEoApgBIRQgACAAKAKcASIVIAEoApwBcyACcSAVczYCnAEgACALIAsgFHMgAnFzNgKYASAAIAogCiATcyACcXM2ApQBIAAgCSAJIBJzIAJxczYCkAEgACAIIAggEXMgAnFzNgKMASAAIAcgByAQcyACcXM2AogBIAAgBiAGIA9zIAJxczYChAEgACAFIAUgDnMgAnFzNgKAASAAIAQgBCANcyACcXM2AnwgACADIAMgDHMgAnFzNgJ4C9oEAQh/IwBBwAFrIgUkACACQYEBTwRAIAAQMhogACABIAKtEBUaIAAgBRAdGkHAACECIAUhAQsgABAyGiAFQUBrQTZBgAEQDBoCQCACRQ0AIAJBBE8EQCACQfwBcSEKA0AgBUFAayIIIANqIgQgBC0AACABIANqLQAAczoAACAIIANBAXIiBGoiBiAGLQAAIAEgBGotAABzOgAAIAggA0ECciIEaiIGIAYtAAAgASAEai0AAHM6AAAgCCADQQNyIgRqIgYgBi0AACABIARqLQAAczoAACADQQRqIQMgB0EEaiIHIApHDQALCyACQQNxIgdFDQADQCAFQUBrIANqIgogCi0AACABIANqLQAAczoAACADQQFqIQMgCUEBaiIJIAdHDQALCyAAIAVBQGsiA0KAARAVGiAAQdABaiIAEDIaIANB3ABBgAEQDBoCQCACRQ0AQQAhCUEAIQMgAkEETwRAIAJB/AFxIQpBACEHA0AgBUFAayIIIANqIgQgBC0AACABIANqLQAAczoAACAIIANBAXIiBGoiBiAGLQAAIAEgBGotAABzOgAAIAggA0ECciIEaiIGIAYtAAAgASAEai0AAHM6AAAgCCADQQNyIgRqIgYgBi0AACABIARqLQ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w2AgQgACAOIA4gEHMgA3FzIgM2AgAgAkGgAmogABAQIABBACACLQCgAkEBcSABLQAfQQd2c2siASANQQAgDWtzcSANczYCJCAAIAVBACAFa3MgAXEgBXM2AiAgACAGQQAgBmtzIAFxIAZzNgIcIAAgB0EAIAdrcyABcSAHczYCGCAAIAhBACAIa3MgAXEgCHM2AhQgACAJQQAgCWtzIAFxIAlzNgIQIAAgCkEAIAprcyABcSAKczYCDCAAIAtBACALa3MgAXEgC3M2AgggACAMQQAgDGtzIAFxIAxzNgIEIAAgA0EAIANrcyABcSADczYCACAAQfgAaiAAIBcQBiACQcACaiQAIAQgD3JBAWsLyggBA38jAEHAAWsiAiQAIAJBkAFqIgQgARAFIAJB4ABqIgMgBBAFIAMgAxAFIAMgASADEAYgBCAEIAMQBiACQTBqIgEgBBAFIAMgAyABEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgAyABIAMQBiABIAMQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEgAxAGIAIgARAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAEgAiABEAYgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgAyABIAMQBiABIAMQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEgAxAGIAIgARAFQQEhAQNAIAIgAhAFIAFBAWoiAUHkAEcNAAsgAkEwaiIBIAIgARAGIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAJB4ABqIgMgASADEAYgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgACADIAJBkAFqEAYgAkHAAWokAAv0BAEZfiABMQAfIQIgATEAHiEGIAExAB0hDiABMQAGIQcgATEABSEIIAExAAQhAyABMQAJIQ8gATEACCEQIAExAAchESABMQAMIQkgATEACyEKIAExAAohCyABMQAPIQwgATEADiESIAExAA0hEyABMQAcIQQgATEAGyEUIAExABohFSABMQAZIQUgATEAGCEWIAExABchFyABNQAAIRggACABMQAVQg+GIAExABRCB4aEIAExABZCF4aEIAE1ABAiGUKAgIAIfCIaQhmIfCINIA1CgICAEHwiDUKAgIDgD4N9PgIYIAAgFkINhiAXQgWGhCAFQhWGhCIFIA1CGoh8IAVCgICACHwiBUKAgIDwA4N9PgIcIAAgFEIMhiAVQgSGhCAEQhSGhCAFQhmIfCIEIARCgICAEHwiBEKAgIDgD4N9PgIgIAAgGSAaQoCAgPAPg30gEkIKhiATQgKG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IANzNgKEAyACIAIoAogDIgNBACADa3MgAXEgA3M2AogDIAIgAigCjAMiA0EAIANrcyABcSADczYCjAMgAiACKAKQAyIDQQAgA2tzIAFxIANzNgKQAyACIAIoApQDIgNBACADa3MgAXEgA3M2ApQDIAIgAigCmAMiA0EAIANrcyABcSADczYCmAMgAiACKAKcAyIDQQAgA2tzIAFxIANzNgKcAyACIAIoAqADIgNBACADa3MgAXEgA3M2AqADIAIgASACKAKkAyIBQQAgAWtzcSABczYCpAMgACAZEBAgAkGgBmokAAv4AQEKfwNAIAQgACADai0AACIBIANBkBVqIgItAABzciEEIAogASACLQDAAXNyIQogCSABIAItAKABc3IhCSAIIAEgAi0AgAFzciEIIAcgASACLQBgc3IhByAGIAEgAkFAay0AAHNyIQYgBSABIAItACBzciEFIANBAWoiA0EfRw0ACyAKIAAtAB9B/wBxIgBB/wBzIgFyQf8BcUEBayABIAlyQf8BcUEBayABIAhyQf8BcUEBayAHIABB+gBzckH/AXFBAWsgBiAAQQVzckH/AXFBAWsgACAFckH/AXFBAWsgACAEckH/AXFBAWtycnJycnJBCHZBAXELxQUBHX8jAEHAAmsiASQAIAFB8AFqIgMgABAFIAFBwAFqIgQgAEEoahAFIAFBkAFqIgIgAEHQAGoQBSABKALwASEAIAEoAsABIQUgASgC9AEhBiABKALEASEHIAEoAvgBIQggASgCyAEhCSABKAL8ASEKIAEoAswBIQsgASgCgAIhDCABKALQASENIAEoAoQCIQ4gASgC1AEhDyABKAKIAiEQIAEoAtgBIREgASgCjAIhEiABKALcASETIAEoApACIRQgASgC4AEhFSABIAEoAuQBIAEoApQCazYCVCABIBUgFGs2AlAgASATIBJrNgJMIAEgESAQazYCSCABIA8gDms2AkQgASANIAxrNgJAIAEgCyAKazYCPCABIAkgCGs2AjggASAHIAZrNgI0IAEgBSAAazYCMCABQTBqIhYgFiACEAYgASADIAQQBiABIAFBwAwQBiABQeAAaiACEAUgASgCMCEAIAEoAmAhBSABKAIAIQYgASgCNCEHIAEoAmQhCCABKAIEIQkgASgCOCEKIAEoAmghCyABKAIIIQwgASgCPCENIAEoAmwhDiABKAIMIQ8gASgCQCEQIAEoAnAhESABKAIQIRIgASgCRCETIAEoAnQhFCABKAIUIRUgASgCSCECIAEoAnghAyABKAIYIQQgASgCTCEXIAEoAnwhGCABKAIcIRkgASgCUCEaIAEoAoABIRsgASgCICEcIAEgASgCVCABKAKEASABKAIkams2AlQgASAaIBsgHGprNgJQIAEgFyAYIBlqazYCTCABIAIgAyAEams2AkggASATIBQgFWprNgJEIAEgECARIBJqazYCQCABIA0gDiAPams2AjwgASAKIAsgDGprNgI4IAEgByAIIAlqazYCNCABIAAgBSAGams2AjAgAUGgAmoiACAWEBAgAEEgEBohHSABQcACaiQAIB0LCwAgACABIAIQwgELIwAgAUKAgICAEFoEQBAOAAsgACABIAIgA0H0lgIoAgARDwALFgAgAUEgEBkgACABQZyXAigCABEAAAvGAgICfwF+IwBB4AJrIgYkACAGIAQgBUEAECwaAkAgACACSyAAIAJrrSADVHFFBEAgACACTw0BIAIgAGutIANaDQELIAAgAiADpxBDIQILIAZCADcDOCAGQgA3AzAgBkIANwMoIAZCADcDIEIgIAMgA0IgWhsiCFAiB0UEQCAGQUBrIAIgCKcQCxoLIAZBIGoiBSAFIAhCIHwgBEEQaiIEQgAgBkGklwIoAgARDAAaIAZB4ABqIAVBjJcCKAIAEQAAGiAHRQRAIAAgBkFAayAIpxALGgsgBkEgakHAABAIIANCIVoEQCAAIAinIgVqIAIgBWogAyAIfSAEQgEgBkGklwIoAgARDAAaCyAGQSAQCCAGQeAAaiICIAAgA0GQlwIoAgARAgAaIAIgAUGUlwIoAgARAAAaIAJBgAIQCCAGQeACaiQAQQALtAICAn8BfiMAQeACayIGJAAgBiAEIAVBABAcGgJAIAAgAksgACACa60gA1RxRQRAIAAgAk8NASACIABrrSADWg0BCyAAIAIgA6cQQyECCyAGQgA3AzggBkIANwMwIAZCADcDKCAGQgA3AyBCICADIANCIFobIghQIgdFBEAgBkFAayACIAinEAs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opAwCFNwMAIARBBGoiBEGAAUcNAAsgBUGAEGogC0GACBALGkEAIQNBACEEA0AgBUGAGGogBEEHdGoiAiACKQM4IhcgAikDGCIYfCAYQgGGQv7///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/////D4MgHEIB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AetQoiS95X/zPmE6gCFNwMAQQALIQQCQCADUA0AIAFB4AFqIQogAUHgAGohBQNAIAQgBWohCEGAAiAEayIGrSILIANaBEAgCCACIAOnIgIQCxogASABKALgAiACajYC4AIMAgsgCCACIAYQCxogASABKALgAiAGajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRBWIAUgCkGAARALGiABIAEoAuACQYABayIENgLgAiACIAZqIQIgAyALfSIDQgBSDQALCyABIAAgBxCIARogCSQAQQAMAQsQDgALIQcLIAcL0QYBCn8jAEGgAmsiAiQAIAAoABwhBCAAKAAYIQUgACgAFCEGIAAoABAhByAAKAAEIQggACgACCEJIAAoAAwhCiAAKAAAIQsgAiABKQJ4NwOYAiACIAEpAnA3A5ACIAIgASkCaDcD+AEgAiABKQJgNwPwASACIAEpAng3A+gBIAIgASkCcDcD4AEgAkGAAmoiAyACQfABaiACQeABahAJIAEgAikCiAI3AnggASACKQKAAjcCcCACIAEpAlg3A9gBIAIgASkCUDcD0AEgAiABKQJoNwPIASACIAEpAmA3A8ABIAMgAkHQAWogAkHAAWoQCSABIAIpAogCNwJoIAEgAikCgAI3AmAgAiABKQJINwO4ASACIAFBQGsiACkCADcDsAEgAiABKQJYNwOoASACIAEpAlA3A6ABIAMgAkGwAWogAkGgAWoQCSABIAIpAogCNwJYIAEgAikCgAI3AlAgAiABKQI4NwOYASACIAEpAjA3A5ABIAIgASkCSDcDiAEgAiAAKQIANwOAASADIAJBkAFqIAJBgAFqEAkgASACKQKIAjcCSCAAIAIpAoACNwIAIAIgASkCKDcDeCACIAEpAiA3A3AgAiABKQI4NwNoIAIgASkCMDcDYCADIAJB8ABqIAJB4ABqEAkgASACKQKIAjcCOCABIAIpAoACNwIwIAIgASkCGDcDWCACIAEpAhA3A1AgAiABKQIoNwNIIAIgASkCIDcDQCADIAJB0ABqIAJBQGsQCSABIAIpAogCNwIoIAEgAikCgAI3AiAgAiABKQIINwM4IAIgASkCADcDMCACIAEpAhg3AyggAiABKQIQNwMgIAMgAkEwaiACQSBqEAkgASACKQKIAjcCGCABIAIpAoACNwIQIAIgAikDmAI3AxggAiACKQOQAjcDECACIAEpAgg3AwggAiABKQIANwMAIAMgAkEQaiACEAkgASACKQKIAjcCCCABIAIpAoACNwIAIAEgCiABKAAMczYCDCABIAkgASgACHM2AgggASAIIAEoAARzNgIEIAEgCyABKAAAczYCACAAIAcgACgAAHM2AgAgASAGIAEoAERzNgJEIAEgBSABKABIczYCSCABIAQgASgATHM2AkwgAkGgAmokAAvkBQEkfwJ/IANFBEBB9MqB2QYhEkHl8MGLBiETQbLaiMsHIRRB7siBmQMMAQsgAygADCESIAMoAAghFCADKAAAIRMgAygABAshGCACKAAUIhkhAyACKAAYIhohDCACKAAcIhshESASIQ0gAigAECIcIQsgFCEOIAEoAAwiHSEGIAEoAAgiHiEPIAEoAAQiHyEHIAEoAAAiICEBIBghECACKAAMIiEhCiACKAAIIiIhBSACKAAEIiMhCCACKAAAIiQhAiATIQkgBEEASgRAA0AgAiAQakEHdyAGcyIVIBBqQQl3IAxzIiYgAyAJakEHdyAKcyIWIAlqQQl3IA9zIicgFmpBDXcgA3MiKCAFIAsgDWpBB3dzIhcgDWpBCXcgB3MiByAXakENdyALcyIFIAdqQRJ3IA1zIgogASAOakEHdyARcyIGakEHd3MiAyAKakEJd3MiDCADakENdyAGcyIRIAxqQRJ3IApzIQ0gBSAGIAYgDmpBCXcgCHMiCGpBDXcgAXMiASAIakESdyAOcyIFIBVqQQd3cyILIAVqQQl3ICdzIg8gC2pBDXcgFXMiBiAPakESdyAFcyEOICYgFSAmakENdyACcyICakESdyAQcyIFIBZqQQd3IAFzIgEgBWpBCXcgB3MiByABakENdyAWcyIKIAdqQRJ3IAVzIRAgJyAoakESdyAJcyIJIBdqQQd3IAJzIgIgCWpBCXcgCHMiCCACakENdyAXcyIFIAhqQRJ3IAlzIQkgJUECaiIlIARIDQALCyAAIA0gEmo2ADwgACARIBtqNgA4IAAgDCAaajYANCAAIAMgGWo2ADAgACALIBxqNgAsIAAgDiAUajYAKCAAIAYgHWo2ACQgACAPIB5qNgAgIAAgByAfajYAHCAAIAEgIGo2ABggACAQIBhqNgAUIAAgCiAhajYAECAAIAUgImo2AAwgACAIICNqNgAIIAAgAiAkajYABCAAIAkgE2o2AAALtgkBFX8jAEHAAmsiAyQAIANB8AFqIgQgAhAFIAQgBCACEAYgACAEEAUgACAAIAIQBiAAIAAgARAGIAAgABBuIAAgACAEEAYgACAAIAEQBiADQcABaiIEIAAQBSAEIAQgAhAGIAEoAgQhBSABKAIIIQ0gASgCDCEOIAEoAhAhDyABKAIUIRAgASgCGCERIAEoAhwhEiABKAIgIRMgASgCACEUIAMoAsABIQIgAygCxAEhBCADKALIASEGIAMoAswBIQcgAygC0AEhCCADKALUASEJIAMoAtgBIQogAygC3AEhCyADKALgASEMIAMgAygC5AEiFSABKAIkIhZrNgK0ASADIAwgE2s2ArABIAMgCyASazYCrAEgAyAKIBFrNgKoASADIAkgEGs2AqQBIAMgCCAPazYCoAEgAyAHIA5rNgKcASADIAYgDWs2ApgBIAMgBCAFazYClAEgAyACIBRrNgKQASADIBUgFmo2AoQBIAMgDCATajYCgAEgAyALIBJqNgJ8IAMgCiARajYCeCADIAkgEGo2AnQgAyAIIA9qNgJwIAMgByAOajYCbCADIAYgDWo2AmggAyAEIAVqNgJkIAMgAiAUajYCYCADQTBqIgUgAUHwDBAGIAMgFSADKAJUajYCVCADIAwgAygCUGo2AlAgAyALIAMoAkxqNgJMIAMgCiADKAJIajYCSCADIAkgAygCRGo2AkQgAyAIIAMoAkBqNgJAIAMgByADKAI8ajYCPCADIAYgAygCOGo2AjggAyAEIAMoAjRqNgI0IAMgAiADKAIwajYCMCADIANBkAFqEBAgA0EgEBohDiADIANB4ABqEBAgA0EgEBohDSADIAUQECADQSAQGiEBIAMgAEHwDBAGIAAoAgQhDCAAKAIIIQsgACgCDCEKIAAoAhAhCSAAKAIUIQggACgCGCEHIAAoAhwhBiAAKAIgI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CAMIAMpAgA3AgAgACICQcCHAmosAAAhACABQeADaiILIAFBiA9qEBgCQCAAQQBKBEAgAUHAAmoiDiALIAQQBiAIIAUgBhAGIAkgBiAEEAYgCiALIAUQBiALIA4gAUGABWogAEH+AXFBAXZBoAFsahASDAELIABBAE4NACABQcACaiIOIAFB4ANqIgsgBBAGIAggBSAGEAYgCSAGIAQQBiAKIAsgBRAGIAsgDiABQYAFakEAIABrQf4BcUEBdkGgAWxqEFcLIAEgAUHgA2oiACAEEAYgByAFIAYQBiADIAYgBBAGIA8gACAFEAYgAkEBayEAIAINAAsgAUGABWoiACABEBAgAEEgEBohECABQYAQaiQAIBAL4AkBHn8gASgCKCEDIAEoAgQhBCABKAIsIQUgASgCCCEGIAEoAjAhByABKAIMIQggASgCNCEJIAEoAhAhCiABKAI4IQsgASgCFCEMIAEoAjwhDSABKAIYIQ4gAUFAayIPKAIAIRAgASgCHCERIAEoAkQhEiABKAIgIRMgASgCSCEUIAEoAgAhFSAAIAEoAiQgASgCTGo2AiQgACATIBRqNgIgIAAgESASajYCHCAAIA4gEGo2AhggACAMIA1qNgIUIAAgCiALajYCECAAIAggCWo2AgwgACAGIAdqNgIIIAAgBCAFajYCBCAAIAMgFWo2AgAgASgCKCEFIAEoAgQhAyABKAIsIQYgASgCCCEHIAEoAjAhCCABKAIMIQkgASgCNCEKIAEoAhAhCyABKAI4IQwgASgCFCENIAEoAjwhDiABKAIYIRAgDygCACEPIAEoAhwhBCABKAJEIREgASgCICESIAEoAkghEyABKAIAIRQgACABKAJMIAEoAiRrNgJMIAAgEyASazYCSCAAIBEgBGs2AkQgAEFAayIEIA8gEGs2AgAgACAOIA1rNgI8IAAgDCALazYCOCAAIAogCWs2AjQgACAIIAdrNgIwIAAgBiADazYCLCAAQShqIgMgBSAUazYCACAAQdAAaiAAIAIQBiADIAMgAkEoahAGIABB+ABqIAJB0ABqIAFB+ABqEAYgASgCUCEVIAEoAlQhFiABKAJYIRcgASgCXCEYIAEoAmAhGSABKAJk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gAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgA0HgAGoiBCACIAQQBiAEIAQQBSAEIAQQBSAAIAQgARAGIANBkAFqJAALpgQCDn4KfyAAKAIkIRIgACgCICETIAAoAhwhFCAAKAIYIRUgACgCFCERIAJCEFoEQCAALQBQRUEYdCEWIAAoAhAiF60hDyAAKAIMIhitIQ0gACgCCCIZrSELIAAoAgQiGq0hCSAaQQVsrSEQIBlBBWytIQ4gGEEFbK0hDCAXQQVsrSEKIAA1AgAhCANAIAEoAANBAnZB////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///8fcWoiDUGAgIAgayICQR91IgMgBHEgAkEfdkEBayIEQf///x9xIgIgCHFyIghBGnQgAiAHcSADIAVxcnIiBSAAKAIoaiIHNgAAIAEgBSAHS60gECADIApxIAIgC3FyIgVBFHQgCEEGdnKtfHwiED4ABCABIA8gAyAGcSACIAxxciICQQ50IAVBDHZyrXwgEEIgiHwiDz4ACCABIA4gBCANcSADIAlxckEIdCACQRJ2cq18IA9CIIh8PgAMIABB2AAQCAvfBAIGfgF/AkAgACkDOCIDQgBSBEAgAEIQIAN9IgQgAiACIARWGyIEQgBSBH5CACEDIARCBFoEQCAEQnyDIQUgAEFAayEJA0AgCSAAKQM4IAN8p2ogASADp2otAAA6AAAgCSADQgGEIgggACkDOHynaiABIAinai0AADoAACAJIANCAoQiCCAAKQM4fKdqIAEgCKdqLQAAOgAAIAkgA0IDhCIIIAApAzh8p2ogASAIp2otAAA6AAAgA0IEfCEDIAZCBHwiBiAFUg0ACwsgBEIDgyIGQgBSBEADQCAAIAApAzggA3ynakFAayABIAOnai0AADoAACADQgF8IQMgB0IBfCIHIAZSDQALCyAAKQM4BSADCyAEfCIDNwM4IANCEFQNASAAIABBQGtCEBBvIABCADcDOCACIAR9IQIgASAEp2ohAQsgAkIQWgRAIAAgASACQnCDIgMQbyACQg+DIQIgASADp2ohAQsgAlANAEIAIQdCACEDIAJCBFoEQCACQgyDIQQgAEFAayEJQgAhBgNAIAkgACkDOCADfKdqIAEgA6dqLQAAOgAAIAkgA0IBhCIFIAApAzh8p2ogASAFp2otAAA6AAAgCSADQgKEIgUgACkDOHynaiABIAWnai0AADoAACAJIANCA4QiBSAAKQM4fKdqIAEgBadqLQAAOgAAIANCBHwhAyAGQgR8IgYgBFINAAsLIAJCA4MiBEIAUgRAA0AgACAAKQM4IAN8p2pBQGsgASADp2otAAA6AAAgA0IBfCEDIAdCAXwiByAEUg0ACwsgACAAKQM4IAJ8NwM4CwsXACA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IyAAQoCAgICAAlQNABpBJCAAQoCAgICABFQNABpBJSAAQoCAgICACFQNABpBJiAAQoCAgICAEFQNABpBJyAAQoCAgICAIFQNABpBKCAAQoCAgICAwABUDQAaQSkgAEKAgICAgIABVA0AGkEqIABCgICAgICAAlQNABpBKyAAQoCAgICAgARUDQAaQSwgAEKAgICAgIAIVA0AGkEtIABCgICAgICAEFQNABpBLiAAQoCAgICAgCBUDQAaQS8gAEKAgICAgIDAAFQNABpBMCAAQoCAgICAgIABVA0AGkExIABCgICAgICAgAJUDQAaQTIgAEKAgICAgICABFQNABpBMyAAQoCAgICAgIAIVA0AGkE0IABCgICAgICAgBBUDQAaQTUgAEKAgICAgICAIFQNABpBNiAAQoCAgICAgIDAAFQNABpBNyAAQoCAgICAgICAAVQNABpBOCAAQoCAgICAgICAAlQNABpBOSAAQoCAgICAgICABFQNABpBOiAAQoCAgICAgICACFQNABpBOyAAQoCAgICAgICAEFQNABpBPCAAQoCAgICAgICAIFQNABpBPSAAQoCAgICAgICAwABUDQAaQT5BPyAAQgBZGws2AgALegECfyMAQSBrIgUkAEF/IQYCQCACQiBUDQAgBUIgIAMgBBDSARogAUEQaiABQSBqIAJCIH0gBUGIlwIoAgAREAANACAAIAEgAiADIAQQehogAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAQQAhBgsgBUEgaiQAIAYLRgAgAkIgWgR/IAAgASACIAMgBBB6GiAAQRBqIABBIGogAkIgfSAAQYSXAigCABEQABogAEIANwAIIABCADcAAEEABUF/CwvOJAEzfyMAQdAEayIfJABBfyEGAkAgAEEgaiIHEI0BRQ0AIAAQTA0AIAMQa0UNACADEEwNACAfQYABaiIPIAMQlAENACAfQYADaiIGEDIaIAQEQCAGQZCWAkIiEBUaCyAGIABCIBAVGiAGIANCIBAVGiAGIAEgAhAVGiAGIB9BwAJqIgYQHRogBhAoIB9BCGohECAHIQRBACEDQQAhASMAQeARayIFJAADQCAFQeAPaiIKIANqIAYgA0EDdmoiCS0AACADQQZxdkEBc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DA0BGgsgACgCFCEBIAAoAhBFBEBBbUF6IAEbDwtBeiABQQhJDQAaIAAoAhhFBEBBbCAAKAIcDQEaCyAAKAIgRQRAQWsgACgCJA0BGgsgACgCMCIBRQRAQXAPC0FvIAFB////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/IwAiBCEHIARBwARrQUBxIgQkACAEIAE2ArwBAkAgAUHAAE0EQCAEQcABaiIFQQBBACABEFVBAEgN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oCAgOAPg32nIgNrNgKgAiACQQAgGiAdQoCAgPAPg30gAjQCyAJChtodfiACNALEAkKG2h1+IhpCgICACHwiHUIZh3wiG0KAgIAQfCIcQhqIfKciBWs2ApwCIAJBACAbIBxCgICA4A+DfaciBms2ApgCIAJBACAaIB1CgICA8A+DfSACNALAAkKG2h1+IAI0ArwCQobaHX4iGkKAgIAIfCIdQhmHfCIbQoCAgBB8IhxCGoh8pyIHazYClAIgAkEAIBsgHEKAgIDgD4N9pyIIazYCkAIgAkEAIBogHUKAgIDwD4N9IAI0ArgCQobaHX4gAjQCtAJChtodfiIaQoCAgAh8Ih1CGYd8IhtCgICAEHwiHEIaiHynIglrNgKMAiACQQAgGyAcQoCAgOAPg32nIgprNgKIAiACQQAgGiAdQoCAgPAPg30gHkIZh0ITfiACNAKwAkKG2h1+fCIeQoCAgBB8IhpCGoh8pyILazYChAIgAkEAIB4gGkKAgIDgD4N9pyIMazYCgAIgAkHQAWoiDiACQYACaiIPEAUgAkGgAWogDyAOEAYgAigCxAEhDiACKAKgASEPIAI0AtABIR4gAigCpAEhESACKAKoASESIAI0AtQBIRogAjQC2AEhHSACKAKsASETIAIoArABIRQgAjQC3AEhGyACNALgASEcIAIoArQBIRUgAigCuAEhFiACNALkASEfIAI0AugBISAgAigCvAEhFyACKALAASEYIAIgAjQC9AFChtodfiIhICFCgICACHwiIUKAgIDwD4N9IAI0AvABQobaHX4gAjQC7AFChtodfiIiQoCAgAh8IiNCGYd8IiRCgICAEHwiJUIaiHynIhk2AvQBIAIgDiABayAZajYChAMgAiAkICVCgICA4A+DfaciATYC8AEgAiAYIANrIAFqNgKAAyACICIgI0KAgIDwD4N9ICBChtodfiAfQobaHX4iH0KAgIAIfCIgQhmHfCIiQoCAgBB8IiNCGoh8pyIBNgLsASACIBcgBWsgAWo2AvwCIAIgIiAjQoCAgOAPg32nIgE2AugBIAIgFiAGayABajYC+AIgAiAfICBCgICA8A+DfSAcQobaHX4gG0KG2h1+IhtCgICACHwiHEIZh3wiH0KAgIAQfCIgQhqIfKciATYC5AEgAiAVIAdrIAFqNgL0AiACIB8gIEKAgIDgD4N9pyIBNgLgASACIBQgCGsgAWo2AvACIAIgGyAcQoCAgPAPg30gHUKG2h1+IBpChtodfiIaQoCAgAh8Ih1CGYd8IhtCgICAEHwiHEIaiHynIgE2AtwBIAIgEyAJayABajYC7AIgAiAbIBxCgICA4A+DfaciATYC2AEgAiASIAprIAFqNgLoAiACIBogHUKAgIDwD4N9ICFCGYdCE34gHkKG2h1+fCIeQoCAgBB8IhpCGoh8pyIBNgLUASACIBEgC2sgAWo2AuQCIAIgHiAaQoCAgOAPg32nIgE2AtABIAIgDyAMayABajYC4AIgAkHwBGoiAyACQeACaiIBIAEQBiACIAEgAxAGIAJBkAZqIgEgAhAFIAEgARAFIAJBkAdqIgUgAiABEAYgAkHABGoiAyAFEAUgAyADEAUgAyADEAUgAyADEAUgAkGQBGoiASAFIAMQBiABIAEQBSABIAEQBSABIAEgAhAGIAIgAikDsAQ3A4AEIAIgAikDqAQ3A/gDIAIgAikDoAQ3A/ADIAIgAikDmAQ3A+gDIAIgAikDkAQ3A+ADIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASACQeADaiIDEAYgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAIpA7AENwPQAyACIAIpA6gENwPIAyACIAIpA6AENwPAAyACIAIpA5gENwO4AyACIAIpA5AENwOwAyABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEgAkGwA2oiAxAGIAIgAikDsAQ3A9ADIAIgAikDqAQ3A8gDIAIgAikDoAQ3A8ADIAIgAikDmAQ3A7gDIAIgAikDkAQ3A7ADIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASADEAYgAiACKQOwBDcD0AMgAiACKQOoBDcDyAMgAiACKQOgBDcDwAMgAiACKQOYBDcDuAMgAiACKQOQBDcDsAMDQCACQZAEaiIBIAEQBSAEQQFqIgRB+ABHDQALIAEgASACQbADahAGIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgASACQeADahAGIAEgARAFIAEgARAFIAEgARAFIAEgASACEAYgASABEAUgAkGQA2ogARAQIAIoAoACIQMgAigChAIhBCACKAKIAiEFIAIoAowCIQYgAigCkAIhByACKAKUAiEIIAIoApgCIQkgAigCnAIhCiACKAKgAiELIAJBACACLQCRA0EBcWsiASACKAKkAiIMQQAgDGtzcSAMcyIMNgKUBSACIAsgC0EAIAtrcyABcXMiCzYCkAUgAiAKIApBACAKa3MgAXFzIgo2AowFIAIgCSAJQQAgCWtzIAFxcyIJNgKIBSACIAggCEEAIAhrcyABcXMiCDYChAUgAiAHIAdBAC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JwNwNwIAMgACkCUDcDUCAAKAJ4IQEgACgCfCEEIAAoAoABIQUgACgChAEhBiAAKAKIASEHIAAoAowBIQggACgCkAEhCSAAKAKUASEKIAAoApgBIQsgA0EAIAAoApwBazYCnAEgA0EAIAtrNgKYASADQQAgCms2ApQBIANBACAJazYCkAEgA0EAIAhrNgKMASADQQAgB2s2AogBIANBACAGazYChAEgA0EAIAVrNgKAASADQQAgBGs2AnwgA0EAIAFrNgJ4IAAgAyACQYABcUEHdhAqIANBoAFqJAALjBEBE38jAEHAH2siAyQAIANBoAFqIAIQDyADQYAeaiIGIAIpAiA3AwAgA0H4HWoiByACKQIYNwMAIANB8B1qIgkgAikCEDcDACADQegdaiIMIAIpAgg3AwAgAyACKQIANwPgHSADQZAeaiINIAIpAjA3AwAgA0GYHmoiDiACKQI4NwMAIANBoB5qIg8gAkFAaykCADcDACADQageaiIQIAIpAkg3AwAgAyACKQIoNwOIHiADQbgeaiIRIAIpAlg3AwAgA0HAHmoiEiACKQJgNwMAIANByB5qIhMgAikCaDcDACADQdAeaiIUIAIpAnA3AwAgAyACKQJQNwOwHiADQcgbaiIIIANB4B1qIhUQGCADQegSaiILIAggA0HAHGoiBBAGIANBkBNqIANB8BtqIgUgA0GYHGoiChAGIANBuBNqIAogBBAGIANB4BNqIAggBRAGIANBwAJqIgQgCxAPIANBqBpqIgggAiAEEBIgA0HIEWoiCyAIIANBoBtqIgQQBiADQfARaiADQdAaaiIFIANB+BpqIgoQBiADQZgSaiAKIAQQBiADQcASaiAIIAUQBiADQeADaiALEA8gBiADQYgTaikCADcDACAHIANBgBNqKQIANwMAIAkgA0H4EmopAgA3AwAgDCADQfASaikCADcDACANIANBmBNqKQIANwMAIA4gA0GgE2opAgA3AwAgDyADQagTaikCADcDACAQIANBsBNqKQIANwMAIAMgAykC6BI3A+AdIAMgAykCkBM3A4geIBQgA0HYE2opAgA3AwAgEyADQdATaikCADcDACASIANByBNqKQIANwMAIBEgA0HAE2opAgA3AwAgAyADKQK4EzcDsB4gA0GIGWoiCCAVEBggA0GoEGoiCyAIIANBgBpqIgQQBiADQdAQaiADQbAZaiIFIANB2BlqIgoQBiADQfgQaiAKIAQQBiADQaARaiAIIAUQBiADQYAFaiIEIAsQDyADQegXaiIIIAIgBBASIANBiA9qIgsgCCADQeAYaiIEEAYgA0GwD2ogA0GQGGoiBSADQbgYaiIKEAYgA0HYD2ogCiAEEAYgA0GAEGogCCAFEAYgA0GgBmogCxAPIAYgA0HoEWopAgA3AwAgByADQeARaikCADcDACAJIANB2BFqKQIANwMAIAwgA0HQEWopAgA3AwAgDSADQfgRaikCADcDACAOIANBgBJqKQIANwMAIA8gA0GIEmopAgA3AwAgECADQZASaikCADcDACADIAMpAsgRNwPgHSADIAMpAvARNwOIHiAUIANBuBJqKQIANwMAIBMgA0GwEmopAgA3AwAgEiADQagSaikCADcDACARIANBoBJqKQIANwMAIAMgAykCmBI3A7AeIANByBZqIgggFRAYIANB6A1qIgsgCCADQcAXaiIEEAYgA0GQDmogA0HwFmoiBSADQZgXaiIKEAYgA0G4DmogCiAEEAYgA0HgDmogCCAFEAYgA0HAB2oiBCALEA8gA0GoFWoiCiACIAQQEiADQcgMaiIIIAogA0GgFmoiAhAGIANB8AxqIANB0BVqIgQgA0H4FWoiBRAGIANBmA1qIAUgAhAGIANBwA1qIAogBBAGIANB4AhqIAgQDyAGIANByBBqKQIANwMAIAcgA0HAEGopAgA3AwAgCSADQbgQaikCADcDACAMIANBsBBqKQIANwMAIA0gA0HYEGopAgA3AwAgDiADQeAQaikCADcDACAPIANB6BBqKQIANwMAIBAgA0HwEGopAgA3AwAgAyADKQKoEDcD4B0gAyADKQLQEDcDiB4gFCADQZgRaikCADcDACATIANBkBFqKQIANwMAIBIgA0GIEWopAgA3AwAgESADQYARaikCADcDACADIAMpAvgQNwOwHiADQYgUaiIEIBUQGCADQagLaiIJIAQgA0GAFWoiAhAGIANB0AtqIANBsBRqIgYgA0HYFGoiBxAGIANB+AtqIAcgAhAGIANBoAxqI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iAEIIQZCXAigCABECABogCSAENwM4IAcgAEIIQZCXAigCABECABogByABQZSXAigCABEAABogB0GAAhAIIAIEQCACQhA3AwALIAlBEGpBIBAIIAlBgANqJABBAAsKACAAIAEgAhArC0oBAn8jAEEgayIGJABBfyEHAkAgAkIQVA0AIAYgBCAFEE4NACAAIAFBEGogASACQhB9IAMgBhBfIQcgBkEgEAgLIAZBIGokACAHC08BAn8jAEEgayIGJAAgAkLw////D1QEQEF/IQcgBiAEIAUQTkUEQCAAQRBqIAAgASACIAMgBhBRIQcgBkEgEAgLIAZBIGokACAHDwsQDgAL6AQBAn8jAEGgAWsiBCQAIAAgAS0AADoAACAAIAEtAAE6AAEgACABLQACOgACIAAgAS0AAzoAAyAAIAEtAAQ6AAQgACABLQAFOgAFIAAgAS0ABjoABiAAIAEtAAc6AAcgACABLQAIOgAIIAAgAS0ACToACSAAIAEtAAo6AAogACABLQALOgALIAAgAS0ADDoADCAAIAEtAA06AA0gACABLQAOOgAOIAAgAS0ADzoADyAAIAEtABA6ABAgACABLQAROgARIAAgAS0AEjoAEiAAIAEtABM6ABMgACABLQAUOgAUIAAgAS0AFToAFSAAIAEtABY6ABYgACABLQAXOgAXIAAgAS0AGDoAGCAAIAEtABk6ABkgACABLQAaOgAaIAAgAS0AGzoAGyAAIAEtABw6ABwgACABLQAdOgAdIAAgAS0AHjoAHiABLQAfIQMgACACBH8gACAALQAAQfgBcToAACADQcAAcgUgAwtB/wBxOgAfIAQgABA/IAAgBBAvQX8hAyAALQAfQf8AcSAALQAeIAAtAB0gAC0AHCAALQAbIAAtABogAC0AGSAALQAYIAAtABcgAC0AFiAALQAVIAAtABQgAC0AEyAALQASIAAtABEgAC0AECAALQAPIAAtAA4gAC0ADSAALQAMIAAtAAsgAC0ACiAALQAJIAAtAAggAC0AByAALQAGIAAtAAUgAC0ABCAALQADIAAtAAIgAC0AASAALQAAQQFzcnJycnJycnJycnJycnJycnJycnJycnJycnJycnJyckEBa0GAAnFFBEBBf0EAIAFBIBAaGyEDCyAEQaABaiQAIAMLjgUBAn8jAEHAAmsiBCQAQX8hBQJAIAIQa0UNACACEEwNACAEIAIQNA0AIAQQbEUNACAAIAEtAAA6AAAgACABLQABOgABIAAgAS0AAjoAAiAAIAEtAAM6AAMgACABLQAEOgAEIAAgAS0ABToABSAAIAEtAAY6AAYgACABLQAHOgAHIAAgAS0ACDoACCAAIAEtAAk6AAkgACABLQAKOgAKIAAgAS0ACzoACyAAIAEtAAw6AAwgACABLQANOgANIAAgAS0ADjoADiAAIAEtAA86AA8gACABLQAQOgAQIAAgAS0AEToAESAAIAEtABI6ABIgACABLQATOgATIAAgAS0AFDoAFCAAIAEtABU6ABUgACABLQAWOgAWIAAgAS0AFzoAFyAAIAEtABg6ABggACABLQAZOgAZIAAgAS0AGjoAGiAAIAEtABs6ABsgACABLQAcOgAcIAAgAS0AHToAHSAAIAEtAB46AB4gAS0AHyECIAAgAwR/IAAgAC0AAEH4AXE6AAAgAkHAAHIFIAILQf8AcToAHyAEQaABaiICIAAgBBCRASAAIAIQLyAALQAfQf8AcSAALQAeIAAtAB0gAC0AHCAALQAbIAAtABogAC0AGSAALQAYIAAtABcgAC0AFiAALQAVIAAtABQgAC0AEyAALQASIAAtABEgAC0AECAALQAPIAAtAA4gAC0ADSAALQAMIAAtAAsgAC0ACiAALQAJIAAtAAggAC0AByAALQAGIAAtAAUgAC0ABCAALQADIAAtAAIgAC0AASAALQAAQQFzcnJycnJycnJycnJycnJycnJycnJycnJycnJycnJyckEBa0GAAnENAEF/QQAgAUEgEBobIQULIARBwAJqJAAgBQsHAEGAgIAIC00BBH8jAEEQayILJABBfyEJIAtBBGoiCkEANgIIIApCADcCAEF/IAogACABIAIgAyAEIAUgBiAHIAgQvgEgChBcGyEMIAtBEGokACAMC9oEAQd/IwBBMGsiCCQAIAQEQCAEQeYAEBkLAkAgAy0AAEEkRw0AIAMtAAFBN0cNACADLQACQSRHDQAgAy0AAxA5IgtFDQAgCEEMaiADQQRqEFoiBUUNACAI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NBkJcCKAIAEQIAGiAAIAMgBCAHQQEgCBA4GiAJIAAgBEGQlwIoAgARAgAaIAlBwJYCQgAgBH1CD4NBkJcCKAIAEQIAGiAKIAY3AwggCSAKQQhqIgBCCEGQlwIoAgARAgAaIAogBDcDCCAJIABCCEGQlwIoAgARAgAaIAkgAUGUlwIoAgARAAAaIAlBgAIQCCACBEAgAkIQNwMACyAKQdACaiQAQQALzQEBA38jAEHQAmsiCSQAIAlBEGoiC0LAACAHIAgQTxogCUHQAGoiCiALQYyXAigCABEAABogC0HAABAIIAogBSAGQZCXAigCABECABogCSAGNwMIIAogCUEIaiIFQghBkJcCKAIAEQIAGiAAIAMgBCAHQgEgCBA8GiAKIAAgBEGQlwIoAgARAgAaIAkgBDcDCCAKIAVCCEGQlwIoAgARAgAaIAogAUGUlwIoAgARAAAaIApBgAIQCCACBEAgAkIQNwMACyAJQdACaiQAQQALLAECfyMAQUBqIgMkACAAIAMQHRogASADQsAAIAJBARB4IQQgA0FAayQAIAQLLgECfyMAQUBqIgQkACAAIAQQHRogASACIARCwAAgA0EBEHkhBSAEQUBrJAAgBQsJACAAEDIaQQALBQBBv38LuwECAn8DfiMAQcABayICJAAgAkEgEBkgASACQiAQQhogASABLQAAQfgBcToAACABIAEtAB9BP3FBwAByOgAfIAJBIGoiAyABED8gACADEC8gASACKQMYNwAYIAEgAikDEDcAECABIAIpAwg3AAggASACKQMANwAAIAApAAghBCAAKQAQIQUgACkAACEGIAEgACkAGDcAOCABIAU3ADAgASAENwAoIAEgBjcAICACQSAQCCACQcABaiQAQQALtgECAX8DfiMAQaABayIDJAAgASACQiAQQhogASABLQAAQfgBcToAACABIAEtAB9BP3FBwAByOgAfIAMgARA/IAAgAxAvIAIpAAghBCACKQAQIQUgAikAACEGIAEgAikAGDcAGCABIAU3ABAgASAENwAIIAEgBjcAACAAKQAIIQQgACkAECEFIAApAAAhBiABIAApABg3ADggASAFNwAwIAEgBDcAKCABIAY3ACAgA0GgAWokAEEACwQAQQwLPgEC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BBfwsIAEGAgICAAQsHAEGAgIAgCwUAQZcMCwUAQYADCwoAIAAgASACEAcL8AMCAn8CfiMAQcABayIDJAAgA0IANwOQASADQgA3A5gBIANCADcDaCADQgA3A3AgA0IANwN4IANBuIwCKQMANwOoASADQcCMAikDADcDsAEgA0HIjAIpAwA3A7gBIANCADcDgAEgA0IANwOIASADQgA3A2AgA0GwjAIpAwA3A6ABIAMgAikAEDcDUCADIAIpABg3A1ggAyACKQAANwNAIAMgAikACDcDSCADQYABaiICIANBQGsiBBCEASACECggAyADKQOYATcDGCADIAMpA5ABNwMQIAMgAykDiAE3AwggAyADKQOAATcDACADQgA3A3ggA0IANwNwIANCADcDaCADQgA3A2AgAyABKQAQNwNQIAMgASkAGDcDWCABKQAIIQUgASkAACEGIANCADcDOCADQgA3AzAgA0IANwMoIAMgBjcDQCADIAU3A0ggA0IANwMgIAQgAxDvASADIAMpA3g3A7gBIAMgAykDcDcDsAEgAyADKQNoNwOoASADIAMpA2A3A6ABIAMgAykDWDcDmAEgAyADKQNQNwOQASADIAMpA0g3A4gBIAMgAykDQDcDgAEgAhAoIAAgAykDmAE3ABggACADKQOQATcAECAAIAMpA4gBNwAIIAAgAykDgAE3AAAgAkHAABAIIANBwAFqJAALlwEBAX8jAEFAaiICJAAgAiABKQA4NwM4IAIgASkAMDcDMCACIAEpACg3AyggAiABKQAgNwMgIAIgASkAGDcDGCACIAEpABA3AxAgAiABKQAANwMAIAIgASkACDcDCCACECggACACKQMYNwAYIAAgAikDEDcAECAAIAIpAwg3AAggACACKQMANwAAIAJBwAAQCCACQUBrJAALxwICAX8CfiMAQcABayIDJAAgA0IANwNgIANCADcDaCADQgA3A3AgA0IANwN4IAMgASkAEDcDUCADIAEpABg3A1ggASkACCEEIAEpAAAhBSADQgA3AyggA0IANwMwIANCADcDOCADIAU3A0AgAyAENwNIIANCADcDICADIAIpABA3AxAgAyACKQAYNwMYIAMgAikAADcDACADIAIpAAg3AwggA0FAayADEO8BIAMgAykDeDcDuAEgAyADKQNwNwOwASADIAMpA2g3A6gBIAMgAykDYDcDoAEgAyADKQNYNwOYASADIAMpA1A3A5ABIAMgAykDSDcDiAEgAyADKQNANwOAASADQYABaiIBECggACADKQOYATcAGCAAIAMpA5ABNwAQIAAgAykDiAE3AAggACADKQOAATcAACABQcAAEAggA0HAAWokAAvlAQEBfyMAQYABayICJAAgAkIANwNQIAJCADcDWCACQgA3AyggAkIANwMwIAJCADcDOCACQbiMAikDADcDaCACQcCMAikDADcDcCACQciMAikDADcDeCACQgA3A0AgAkIANwNIIAJBAToAQCACQgA3AyAgAkGwjAIpAwA3A2AgAiABKQAYNwMYIAIgASkAEDcDECACIAEpAAg3AwggAiABKQAANwMAIAJBQGsiASACEIQBIAEQKCAAIAIpA1g3ABggACACKQNQNwAQIAAgAikDSDcACCAAIAIpA0A3AAAgAkGAAWokAAveAQEBfyMAQYABayICJAAgAkIANwNQIAJCADcDWCACQgA3AyggAkIANwMwIAJCADcDOCACQbiMAikDADcDaCACQcCMAikDADcDcCACQciMAikDADcDeCACQgA3A0AgAkIANwNIIAJCADcDICACQbCMAikDADcDYCACIAEpABA3AxAgAiABKQAYNwMYIAIgASkAADcDACACIAEpAAg3AwggAkFAayIBIAIQhAEgARAoIAAgAikDWDcAGCAAIAIpA1A3ABAgACACKQNINwAIIAAgAikDQDcAACACQYABaiQAC88LAQt/IwBB4AVrIgIkACACQcAFaiIHIAEgARAHIAJB4AFqIgYgASAHEAcgAkGgBWoiBCABIAYQByACQYAFaiIFIAQgBBAHIAJBoANqIgkgByAFEAcgAkHAAmoiByABIAkQByACQeAEaiIDIAUgBRAHIAJBoAJqIgUgByAHEAcgAkHABGoiCCAJIAUQByACQcADaiIMIAMgBRAHIAJBoARqIgogCCAIEAcgAkGAA2oiCCADIAoQByACQeACaiILIAYgCBAHIAJBwAFqIgYgAyALEAcgAkGgAWoiAyAEIAYQByACQeAAaiAEIAMQByACQYAEaiIGIAogCxAHIAJB4ANqIgMgBCAGEAcgAkGAAmoiBiAMIAMQByACQYABaiAFIAYQByACQUBrIgUgCCADEAcgAkEgaiIDIAQgBRAHIAIgCSADEAcgACAHIAIQB0EAIQQDQCAAIAAgABAHIARBAWoiBEH+AEcNAAsgACAAIAJB4AJqEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBwAVqEAcgACAAIAIQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQaABahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQYACahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkFAaxAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQeAAahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQcACahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkGABGoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQcABahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQeADahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAIQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBgAFqEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQSBqEAcgAkHgBWokAEEAIAFBIBAaawsoAANAIABBIBAZIAAgAC0AH0EfcToAHyAAEI0BRQ0AIABBIBAaDQALCw0AIAAgASACQQIQ5QELowICBH8BfiMAQUBqIgQkAAJAIAAQICIGQYABSSABQv////8PWHFFBEBBwKUCQRw2AgBBfyEADAELIARBADYCPCAEQgA3AjQgBEIANwIsAkACf0EAIAZFDQAaIAatIginIgUgBkEBckGAgARJDQAaQX8gBSAIQiCIpxsLIgcQHiIFRQ0AIAVBBGstAABBA3FFDQAgBUEAIAcQDBoLIAVFBEBBfyEADAELIARCADcCJCAEIAU2AgwgBCAFNgIUIAQgBjYCGCAEIAU2AgQgBCAGNgIQIARCADcCHCAEIAY2AggCfyAEQQRqIAAgAxDtAQRAQcClAkEcNgIAQX8MAQsgBCgCLCABp0cgBCgCMCACQQp2R3ILIQAgBRATCyAEQUBrJAAgAAsNACAAIAEgAkEBEOUBC0YAAkACQCACQoCAgIAQWgRAQcClAkEWNgIADAELIAAgASACp0EBEOsBIgFFDQEgAUFdRw0AQcClAkEcNgIAC0F/IQELIAELiwEBAn8jAEEQayIFJAAgAEEAQYABEAwhAAJ/IARBgYCAgHhJIAIgA4RC/////w9YcUUEQEHApQJBFjYCAEF/DAELIARB/z9LIANCA1pxRQRAQcCl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IAw3AzggASAONwMwIAEgCzcDKCABIA03AyAgAULx7fT4paf9p6V/NwMYIAFCq/DT9K/uvLc8NwMQIAFCu86qptjQ67O7fzcDCCABIAitQoiS95X/zPmE6gCFNwMAQQALIQQCQCADUA0AIAFB4AFqIQkgAUHgAGohBQNAIAQgBWohB0GAAiAEayIGrSILIANaBEAgByACIAOnIgIQCxogASABKALgAiACajYC4AIMAgsgByACIAYQCxogASABKALgAiAGajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRBWIAUgCUGAARALGiABIAEoAuACQYABayIENgLgAiACIAZqIQIgAyALfSIDQgBSDQALCyABIAAgCBCIARogCiQAQQAMAQsQDgALIQgLIAgLhwEBBH9BASEBA0AgACADaiICIAEgAi0AAGoiAToAACAAIANBAXJqIgIgAi0AACABQQh2aiIBOgAAIAAgA0ECcmoiAiACLQAAIAFBCHZqIgE6AAAgACADQQNyaiICIAItAAAgAUEIdmoiAToAACABQQh2IQEgA0EEaiEDIARBBGoiBEEERw0ACwuGBwEXfyMAQfABayIEJAAgBEHAAWoiCSACakEAQRAgAmsiBkEAIAJBD00bEAwhGiAJIAEgAhALGiADKAAQIQUgA0FAayIBKAAAIQggAygAUCEKIAMoACAhCyADKAAwIQwgAygAFCENIAMoAEQhDiADKABUIQ8gAygAJCEQIAMoADQhESADKAAYIRIgAygASCETIAMoAFghFCADKAAoIRUgAygAOCEWIAQoAsABIRcgBCgCxAEhGCAEKALIASEZIAQgAygALCADKAA8cSADKAAcIAMoAEwgAygAXCAEKALMAXNzc3M2AswBIAQgFSAWcSASIBMgFCAZc3NzczYCyAEgBCAQIBFxIA0gDiAPIBhzc3NzNgLEASAEIAsgDHEgBSAIIAogF3Nzc3M2AsABIBpBACAGEAwaIAAgCSACEAsaIAQoAsABIQAgBCgCxAEhAiAEKALIASEGIAQoAswBIQcgBCADKQJYNwPoASAEIAMpAlA3A+ABIAQgAykCSDcDuAEgBCABKQIANwOwASAEIAMpAlg3A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IQkgAigAUCEKIAIoACAhCyACKAAwIQwgASgABCEGIAIoABQhDSACKABEIQ4gAigAVCEPIAIoACQhECACKAA0IREgASgACCEHIAIoABghEiACKABIIRMgAigAWCEUIAIoACghFSACKAA4IRYgASgAACEIIAAgASgADCIBIAIoACwgAigAPHEgAigAHCACKABcIAIoAExzc3NzNgAMIAAgByAVIBZxIBIgEyAUc3NzczYACCAAIAYgECARcSANIA4gD3Nzc3M2AAQgACAIIAsgDHEgBSAJIApzc3NzNgAAIAMgAikCWDcD2AEgAyACKQJQNwPQASADIAIpAkg3A7gBIAMgBCkCADcDsAEgAyACKQJYNwOoASADIAIpAlA3A6ABIANBwAFqIgAgA0GwAWogA0GgAWoQCSACIAMpAsgBNwJYIAIgAykCwAE3AlAgAyACKQI4NwOYASADIAIpAjA3A5ABIAMgAikCSDcDiAEgAyAEKQIANwOAASAAIANBkAFqIANBgAFqEAkgAiADKQLIATcCSCAEIAMpAsABNwIAIAMgAikCKDcDeCADIAIpAiA3A3AgAyACKQI4NwNoIAMgAikCMDcDYCAAIANB8ABqIANB4ABqEAkgAiADKQLIATcCOCACIAMpAsABNwIwIAMgAikCGDcDWCADIAIpAhA3A1AgAyACKQIoNwNIIAMgAikCIDcDQCAAIANB0ABqIANBQGsQCSACIAMpAsgBNwIoIAIgAykCwAE3AiAgAyACKQIINwM4IAMgAikCADcDMCADIAIpAhg3AyggAyACKQIQNwMgIAAgA0EwaiADQSBqEAkgAiADKQLIATcCGCACIAMpAsABNwIQIAMgAykD2AE3AxggAyADKQPQATcDECADIAIpAgg3AwggAyACKQIANwMAIAAgA0EQaiADEAkgAygCwAEhACADKALEASEEIAMoAsgBIQUgAiABIAMoAswBczYCDCACIAUgB3M2AgggAiAEIAZzNgIEIAIgACAIczYCACADQeABaiQAC/MUARl/IwBBoAZrIgMkACABKAAEIQsgASgACCEMIAEoAAwhDSABKAAQIQ4gASgAFCEEIAEoABghDyABKAAcIRAgACgABCERIAAoAAghEiAAKAAMIRMgACgAECEU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hCCADKAKEBiEJIAMoAogGIQogAiADKAKMBiATczYCDCACIAogEnM2AgggAiAJIBFzNgIEIAIgCCAYczYCACADIAUpAgg3A5gGIAMgBSkCADcDkAYgAyABKQIINwO4BCADIAEpAgA3A7AEIAMgBSkCCDcDqAQgAyAFKQIANwOgBCAHIANBsARqIANBoARqEAkgBSADKQKIBjcCCCAFIAMpAoAGNwIAIAMgACkCCDcDmAQgAyAAKQIANwOQBCADIAEpAgg3A4gEIAMgASkCADcDgAQgByADQZAEaiADQYAEahAJIAEgAykCiAY3AgggASADKQKABjcCACADIAYpAgg3A/gDIAMgBikCADcD8AMgAyAAKQIINwPoAyADIAApAgA3A+ADIAcgA0HwA2ogA0HgA2oQCSAAIAMpAogGNwIIIAAgAykCgAY3AgAgAyAEKQIINwPYAyADIAQpAgA3A9ADIAMgBikCCDcDyAMgAyAGKQIANwPAAyAHIANB0ANqIANBwANqEAkgBiADKQKIBjcCCCAGIAMpAoAGNwIAIAMgAikCCDcDuAMgAyACKQIANwOwAyADIAQpAgg3A6gDIAMgBCkCADcDoAMgByADQbADaiADQaADahAJIAQgAykCiAY3AgggBCADKQKABjcCACADIAMpA5gGNwOYAyADIAMpA5AGNwOQAyADIAIpAgg3A4gDIAMgAikCADcDgAMgByADQZADaiADQYADahAJIAMoAoAGIQggAygChAYhCSADKAKIBiEKIAIgAygCjAYgF3M2AgwgAiAKIBZzNgIIIAIgCSAVczYCBCACIAggFHM2AgAgAyAFKQIINwOYBiADIAUpAgA3A5AGIAMgASkCCDcD+AIgAyABKQIANwPwAiADIAUpAgg3A+gCIAMgBSkCADcD4AIgByADQfACaiADQeACahAJIAUgAykCiAY3AgggBSADKQKABjcCACADIAApAgg3A9gCIAMgACkCADcD0AIgAyABKQIINwPIAiADIAEpAgA3A8ACIAcgA0HQAmogA0HAAmoQCSABIAMpAogGNwIIIAEgAykCgAY3AgAgAyAGKQIINwO4AiADIAYpAgA3A7ACIAMgACkCCDcDqAIgAyAAKQIANwOgAiAHIANBsAJqIANBoAJqEAkgACADKQKIBjcCCCAAIAMpAoAGNwIAIAMgBCkCCDcDmAIgAyAEKQIANwOQAiADIAYpAgg3A4gCIAMgBikCADcDgAIgByADQZACaiADQYACahAJIAYgAykCiAY3AgggBiADKQKABjcCACADIAIpAgg3A/gBIAMgAikCADcD8AEgAyAEKQIINwPoASADIAQpAgA3A+ABIAcgA0HwAWogA0HgAWoQCSAEIAMpAogGNwIIIAQgAykCgAY3AgAgAyADKQOYBjcD2AEgAyADKQOQBjcD0AEgAyACKQIINwPIASADIAIpAgA3A8ABIAcgA0HQAWogA0HAAWoQCSADKAKABiEIIAMoAoQGIQkgAygCiAYhCiACIAMoAowGIA1zNgIMIAIgCiAMczYCCCACIAkgG3M2AgQgAiAIIBlzNgIAIAMgBSkCCDcDmAYgAyAFKQIANwOQBiADIAEpAgg3A7gBIAMgASkCADcDsAEgAyAFKQIINwOoASADIAUpAgA3A6ABIAcgA0GwAWogA0GgAWoQCSAFIAMpAogGNwIIIAUgAykCgAY3AgAgAyAAKQIINwOYASADIAApAgA3A5ABIAMgASkCCDcDiAEgAyABKQIANwOAASAHIANBkAFqIANBgAFqEAkgASADKQKIBjcCCCABIAMpAoAGNwIAIAMgBikCCDcDeCADIAYpAgA3A3AgAyAAKQIINwNoIAMgACkCADcDYCAHIANB8ABqIANB4ABqEAkgACADKQKIBjcCCCAAIAMpAoAGNwIAIAMgBCkCCDcDWCADIAQpAgA3A1AgAyAGKQIINwNIIAMgBikCADcDQCAHIANB0ABqIANBQGsQCSAGIAMpAogGNwIIIAYgAykCgAY3AgAgAyACKQIINwM4IAMgAikCADcDMCADIAQpAgg3AyggAyAEKQIANwMgIAcgA0EwaiADQSBqEAkgBCADKQKIBjcCCCAEIAMpAoAGNwIAIAMgAykDmAY3AxggAyADKQOQBjcDECADIAIpAgg3AwggAyACKQIANwMAIAcgA0EQaiADEAkgAygCgAYhCCADKAKEBiEJIAMoAogGIQogAiADKAKMBiAQczYCDCACIAogD3M2AgggAiAJI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CkCoAI3AlAgBCADKQI4NwOYASAEIAMpAjA3A5ABIAQgAykCSDcDiAEgBCAAKQIANwOAASAFIARBkAFqIARBgAFqEAkgAyAEKQKoAjcCSCAAIAQpAqACNwIAIAQgAykCKDcDeCAEIAMpAiA3A3AgBCADKQI4NwNoIAQgAykCMDcDYCAFIARB8ABqIARB4ABqEAkgAyAEKQKoAjcCOCADIAQpAqACNwIwIAQgAykCGDcDWCAEIAMpAhA3A1AgBCADKQIoNwNIIAQgAykCIDcDQCAFIARB0ABqIARBQGsQCSADIAQpAqgCNwIoIAMgBCkCoAI3AiAgBCADKQIINwM4IAQgAykCADcDMCAEIAMpAhg3AyggBCADKQIQNwMgIAUgBEEwaiAEQSBqEAkgAyAEKQKoAjcCGCADIAQpAqACNwIQIAQgBCkDuAI3AxggBCAEKQOwAjcDECAEIAMpAgg3AwggBCADKQIANwMAIAUgBEEQaiAEEAkgAyAEKQKoAjcCCCADIAQpAqACNwIAIAMgCyADKAAMczYCDCADIAogAygACHM2AgggAyAJIAMoAARzNgIEIAMgCCADKAAAczYCACAAIAcgACgAAHM2AgAgAyAGIAMoAERzNgJEIAMgAiADKABIczYCSCADIAEgAygATHM2AkwgBEHAAmokAAuRCQEefyMAQaACayIDJAAgAigAECEOIAIoADAhDyACKAAUIRAgASgABCERIAIoADQhEiACKAAYIRMgASgACCEUIAIoADghFSACKAAcIQggASgADCEWIAIoADwhFyACKAAgIQUgAigAUCEJIAEoABAhGCACKABwIRkgAigAYCEEIAIoACQhBiACKABUIQogASgAFCEaIAIoAHQhGyACKABkIQwgAigAKCEHIAIoAFghCyABKAAYIRwgAigAeCEdIAIoAGghDSABKAAAIR4gACACKAAsIh8gAigAbCIgIAIoAHxxIAIoAFwgASgAHHNzcyIBNgAcIAAgByANIB1xIAsgHHNzcyILNgAYIAAgBiAMIBtxIAogGnNzcyIKNgAUIAAgBSAEIBlxIAkgGHNzcyIJNgAQIAAgICAXIB9xIAggFnNzcyIINgAMIAAgDSAHIBVxIBMgFHNzcyIHNgAIIAAgDCAGIBJxIBAgEXNzcyIGNgAEIAAgBCAFIA9xIA4gHnNzcyIFNgAAIAMgAikCeDcDmAIgAyACKQJwNwOQAiADIAIpAmg3A/gBIAMgAikCYDcD8AEgAyACKQJ4NwPoASADIAIpAnA3A+ABIANBgAJqIgQgA0HwAWogA0HgAWoQCSACIAMpAogCNwJ4IAIgAykCgAI3AnAgAyACKQJYNwPYASADIAIpAlA3A9ABIAMgAikCaDcDyAEgAyACKQJgNwPAASAEIANB0AFqIANBwAFqEAkgAiADKQKIAjcCaCACIAMpAoACNwJgIAMgAikCSDcDuAEgAyACQUBrIgApAgA3A7ABIAMgAikCWDcDqAEgAyACKQJQNwOgASAEIANBsAFqIANBoAFqEAkgAiADKQKIAjcCWCACIAMpAoACNwJQIAMgAikCODcDmAEgAyACKQIwNwOQASADIAIpAkg3A4gBIAMgACkCADcDgAEgBCADQZABaiADQYABahAJIAIgAykCiAI3AkggACADKQKAAjcCACADIAIpAig3A3ggAyACKQIgNwNwIAMgAikCODcDaCADIAIpAjA3A2AgBCADQfAAaiADQeAAahAJIAIgAykCiAI3AjggAiADKQKAAjcCMCADIAIpAhg3A1ggAyACKQIQNwNQIAMgAikCKDcDSCADIAIpAiA3A0AgBCADQdAAaiADQUBrEAkgAiADKQKIAjcCKCACIAMpAoACNwIgIAMgAikCCDcDOCADIAIpAgA3AzAgAyACKQIYNwMoIAMgAikCEDcDICAEIANBMGogA0EgahAJIAIgAykCiAI3AhggAiADKQKAAjcCECADIAMpA5gCNwMYIAMgAykDkAI3AxAgAyACKQIINwMIIAMgAikCADcDACAEIANBEGogAxAJIAIgAykCiAI3AgggAiADKQKAAjcCACACIAIoAAwgCHM2AgwgAiACKAAIIAdzNgIIIAIgAigABCAGczYCBCACIAIoAAAgBXM2AgAgACAAKAAAIAlzNgIAIAIgAigARCAKczYCRCACIAIoAEggC3M2AkggAiACKABMIAFzNgJMIANBoAJqJAAL0gsBFX8jAEGgAmsiBSQAIAQoACwg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PIAEoAAAhECAAIAIoACwiHyABKAAcIgEgAigAXCACKABsIiAgAigAfHFzc3M2ABwgACANIA4gHSAPIB5xc3NzNgAYIAAgCiALIBsgDCAccXNzczYAFCAAIAQgCCAZIAkgGnFzc3M2ABAgACAgIAcgFyAYIB9xc3NzNgAMIAAgDyAGIBUgDSAWcXNzczYACCAAIAwgBSATIAogFHFzc3M2AAQgACAJIBAgESAEIBJxc3NzNgAAIAMgAikCeDcDmAIgAyACKQJwNwOQAiADIAIpAmg3A/gBIAMgAikCYDcD8AEgAyACKQJ4NwPoASADIAIpAnA3A+ABIANBgAJqIgQgA0HwAWogA0HgAWoQCSACIAMpAogCNwJ4IAIgAykCgAI3AnAgAyACKQJYNwPYASADIAIpAlA3A9ABIAMgAikCaDcDyAEgAyACKQJgNwPAASAEIANB0AFqIANBwAFqEAkgAiADKQKIAjcCaCACIAMpAoACNwJgIAMgAikCSDcDuAEgAyACQUBrIgApAgA3A7ABIAMgAikCWDcDqAEgAyACKQJQNwOgASAEIANBsAFqIANBoAFqEAkgAiADKQKIAjcCWCACIAMpAoACNwJQIAMgAikCODcDmAEgAyACKQIwNwOQASADIAIpAkg3A4gBIAMgACkCADcDgAEgBCADQZABaiADQYABahAJIAIgAykCiAI3AkggACADKQKAAjcCACADIAIpAig3A3ggAyACKQIgNwNwIAMgAikCODcDaCADIAIpAjA3A2AgBCADQfAAaiADQeAAahAJIAIgAykCiAI3AjggAiADKQKAAjcCMCADIAIpAhg3A1ggAyACKQIQNwNQIAMgAikCKDcDSCADIAIpAiA3A0AgBCADQdAAaiADQUBrEAkgAiADKQKIAjcCKCACIAMpAoACNwIgIAMgAikCCDcDOCADIAIpAgA3AzAgAyACKQIYNwMoIAMgAikCEDcDICAEIANBMGogA0EgahAJIAIgAykCiAI3AhggAiADKQKAAjcCECADIAMpA5gCNwMYIAMgAykDkAI3AxAgAyACKQIINwMIIAMgAikCADcDACAEIANBEGogAxAJIAIgAykCiAI3AgggAiADKQKAAjcCACACIAcgAigADHM2AgwgAiAGIAIoAAhzNgIIIAIgBSACKAAEczYCBCACIBAgAigAAHM2AgAgACAIIAAoAABzNgIAIAIgCyACKABEczYCRCACIA4gAigASHM2AkggAiABIAIoAExzNgJMIANBoAJqJAALvQkBEX8jAEGgAmsiAyQAIAEoAAQhECABKAAIIREgASgADCESIAAoAAQhCyAAKAAIIQwgACgADCENIAEoAAAhEyACQfAAaiIBIAAoAAAiDkGAgoQQcyIANgIAIAJB4ABqIgYgDkHb++CoBXM2AgAgAkHQAGoiByAANgIAIAJBQGsiACAOIBNzIgU2AgAgAkKgosSRtK6tlF03AjggAkEwaiIIQtv74KjVzfCXcTcCACACQpXE3MmFsvq84gA3AiggAkEgaiIJQoCChJCwoIGEDTcCACACQqCixJG0rq2UXTcCGCACQRBqIgpC2/vgqNXN8JdxNwIAIAIgBTYCACACIA1BkNPnkwZzIgU2AnwgAiAMQZXE3MkFcyIENgJ4IAIgC0GDiqDoAHMiDzYCdCACIA1B8+qi6X1zNgJsIAIgDEGgosSRBHM2AmggAiALQe2Ev4l/czYCZCACIAU2AlwgAiAENgJYIAIgDzYCVCACIA0gEnMiBTYCTCACIAwgEXMiBDYCSCACIAsgEHMiDzYCRCACIAU2AgwgAiAENgIIIAIgDzYCBEEAIQUDQCADIAEpAgg3A5gCIAMgASkCADcDkAIgAyAGKQIINwP4ASADIAYpAgA3A/ABIAMgASkCCDcD6AEgAyABKQIANwPgASADQYACaiIEIANB8AFqIANB4AFqEAkgASADKQKIAjcCCCABIAMpAoACNwIAIAMgBykCCDcD2AEgAyAHKQIANwPQASADIAYpAgg3A8gBIAMgBikCADcDwAEgBCADQdABaiADQcABahAJIAYgAykCiAI3AgggBiADKQKAAjcCACADIAApAgg3A7gBIAMgACkCADcDsAEgAyAHKQIINwOoASADIAcpAgA3A6ABIAQgA0GwAWogA0GgAWoQCSAHIAMpAogCNwIIIAcgAykCgAI3AgAgAyAIKQIINwOYASADIAgpAgA3A5ABIAMgACkCCDcDiAEgAyAAKQIANwOAASAEIANBkAFqIANBgAFqEAkgACADKQKIAjcCCCAAIAMpAoACNwIAIAMgCSkCCDcDeCADIAkpAgA3A3AgAyAIKQIINwNoIAMgCCkCADcDYCAEIANB8ABqIANB4ABqEAkgCCADKQKIAjcCCCAIIAMpAoACNwIAIAMgCikCCDcDWCADIAopAgA3A1AgAyAJKQIINwNIIAMgCSkCADcDQCAEIANB0ABqIANBQGsQCSAJIAMpAogCNwIIIAkgAykCgAI3AgAgAyACKQIINwM4IAMgAikCADcDMCADIAopAgg3AyggAyAKKQIANwMgIAQgA0EwaiADQSBqEAkgCiADKQKIAjcCCCAKIAMpAoACNwIAIAMgAykDmAI3AxggAyADKQOQAjcDECADIAIpAgg3AwggAyACKQIANwMAIAQgA0EQaiADEAkgAiADKQKIAjcCCCACIAMpAoACNwIAIAIgAigADCASczYCDCACIAIoAAggEXM2AgggAiACKAAEIBBzNgIEIAIgAigAACATczYCACAAIAAoAAAgDnM2AgAgAiACKABEIAtzNgJEIAIgAigASCAMczYCSCACIAIoAEwgDXM2AkwgBUEBaiIFQQpHDQALIANBoAJqJAALhgYBFH8jAEGwAmsiAiQAIAAgAS0AADoAACAAIAEtAAE6AAEgACABLQACOgACIAAgAS0AAzoAAyAAIAEtAAQ6AAQgACABLQAFOgAFIAAgAS0ABjoABiAAIAEtAAc6AAcgACABLQAIOgAIIAAgAS0ACToACSAAIAEtAAo6AAogACABLQALOgALIAAgAS0ADDoADCAAIAEtAA06AA0gACABLQAOOgAOIAAgAS0ADzoADyAAIAEtABA6ABAgACABLQAROgARIAAgAS0AEjoAEiAAIAEtABM6ABMgACABLQAUOgAUIAAgAS0AFToAFSAAIAEtABY6ABYgACABLQAXOgAXIAAgAS0AGDoAGCAAIAEtABk6ABkgACABLQAaOgAaIAAgAS0AGzoAGyAAIAEtABw6ABwgACABLQAdOgAdIAAgAS0AHjoAHiABLQAfIQEgACAALQAAQfgBcToAACAAIAFBP3FBwAByOgAfIAJBMGogABA/IAIoAoQBIQEgAigCX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EgA0EBNgLwASADQgA3AvwBIANCADcDwAEgA0IANwPIASADIAMpA6ACNwOQASADIAMpA6gCNwOYASADQgA3AnQgA0IANwJ8IANBADYChAEgA0IANwJkIANBATYCYCADQgA3AmxB/gEhAkEAIQQDQCADKAKUAiEJIAMoArQBIQYgAygCYCEHIAMoAsABIQogAygCkAEhCyADKALwASENIAMoAmQhCCADKALEASEMIAMoApQBIQUgAygC9AEhECADKAJoIQ4gAygCyAEhESADKAKYASESIAMoAvgBIRMgAygCbCEPIAMoAswBIRQgAygCnAEhFSADKAL8ASEXIAMoAnAhGCADKALQASEcIAMoAqABIR0gAygCgAIhHiADKAJ0IRkgAygC1AEhHyADKAKkASEgIAMoAoQCISEgAygCeCEaIAMoAtgBISIgAygCqAEhIyADKAKIAiEkIAMoAnwhGyADKALcASElIAMoAqwBISYgAygCjAIhJyADKAKAASEWIAMoAuABISggAygCsAEhKSADKAKQAiEsIANBACAEIANB0AJqIi0gAiIBQQN2ai0AACACQQdxdkEBcSIEc2siAiADKAKEASIqIAMoAuQBIitzcSIuICpzIio2AoQBIAMgBiAGIAlzIAJxIi9zIjAgKms2AlQgAyAWIBYgKHMgAnEiMXMiBjYCgAEgAyApICkgLHMgAnEiFnMiKSAGazYCUCADIBsgGyAlcyACcSIycyIbNgJ8IAMgJiAmICdzIAJxIjNzIiYgG2s2AkwgAyAaIBogInMgAnEiNHMiGjYCeCADICMgIyAkcyACcSI1cyIjIBprNgJIIAMgGSAZIB9zIAJxIjZzIhk2AnQgAyAgICAgIXMgAnEiN3MiICAZazYCRCADIBggGCAccyACcSI4cyIYNgJwIAMgHSAdIB5zIAJxIjlzIh0gGGs2AkAgAyAPIA8gFHMgAnEiOnMiDzYCbCADIBUgFSAXcyACcSI7cyIVIA9rNgI8IAMgDiAOIBFzIAJxIjxzIg42AmggAyASIBIgE3MgAnEiPXMiEiAOazYCOCADIAggCCAMcyACcSI+cyIINgJkIAMgBSAFIBBzIAJxIj9zIgUgCGs2AjQgAyAHIAcg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IBdqNgIwIAFBAWshAiAbIANBoAJqIBYQBiAWIAMgGhAGIAENAAsgAygCkAEhECADKALwASECIAMoApQBIQ4gAygC9AEhBiADKAKYASERIAMoAvgBIQcgAygCnAEhEiADKAL8ASEKIAMoAqABIRMgAygCgAIhCyADKAKkASEPIAMoAoQCIQ0gAygCqAEhFCADKAKIAiEIIAMoAqwBIRUgAygCjAIhDCADKAKwASEXIAMoApACIQUgA0EAIARrIgEgAygClAIiBCADKAK0AXNxIARzNgKUAiADIAUgBSAXcyABcXM2ApACIAMgDCAMIBVzIAFxczYCjAIgAyAIIAggFHMgAXFzNgKIAiADIA0gDSAPcyABcXM2AoQCIAMgCyALIBNzIAFxczYCgAIgAyAKIAogEnMgAXFzNgL8ASADIAcgByARcyABcXM2AvgBIAMgBiAGIA5zIAFxczYC9AEgAyACIAIgEHMgAXFzNgLwASADKALAASECIAMoAmAhBSADKALEASEEIAMoAmQhECADKALIASEGIAMoAmghDiADKALMASEHIAMoAmwhESADKALQASEKIAMoAnAhEiADKALUASELIAMoAnQhEyADKALYASENIAMoAnghDyADKALcASEIIAMoAnwhFCADKALgASEMIAMoAoABIRUgAyADKALkASIXIAMoAoQBcyABcSAXczYC5AEgAyAMIAwgFXMgAXFzNgLgASADIAggCCAUcyABcXM2AtwBIAMgDSANIA9zIAFxczYC2AEgAyALIAsgE3MgAXFzNgLUASADIAogCiAScyABcXM2AtABIAMgByAHIBFzIAFxczYCzAEgAyAGIAYgDnMgAXFzNgLIASADIAQgBCAQcyABcXM2AsQBIAMgAiACIAVzIAFxczYCwAEgFiAWEDUgGSAZIBYQBiAAIBkQECAtQSAQCEEAIQkLIANB8AJqJAAgCQsKACAAIAEQcEEACwwAIAAgASACEHFBAAu0AQEBfyAAIAEoAABB////H3E2AgAgACABKAADQQJ2QYP+/x9xNgIEIAAgASgABkEEdkH/gf8fcTYCCCAAIAEoAAlBBnZB///AH3E2AgwgASgADCECIABCADcCFCAAQgA3AhwgAEEANgIkIAAgAkEIdkH//z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EBUaIAIgABAdGiABQcAAEAggBUHgA2okAEEAC30BA38jAEGQAmsiBSQAIAVBIGoiBiAEQSAQMxogBiABIAKtIAOtQiCGhBAjGiAGIAVB8AFqIgEQLhogBUGIAWoiAiABQiAQIxogAiAFEC4aIAFBIBAIIAAgBRBAIQEgBSAAQSAQPSEHIAVBkAJqJAAgB0F/IAEgACAFRhtyC00BA38jAEEQayICJAAgAEECTwRAQQAgAGsgAHAhAQNAIAJBADoAD0HAnwIgAkEPakEAEAAiAyABSQ0ACyADIABwIQELIAJBEGokACABC1sBAX8jAEHwAWsiBSQAIAUgBEEgEDMaIAUgASACrSADrUIghoQQIxogBSAFQdABaiIBEC4aIAVB6ABqIgIgAUIgECMaIAIgABAuGiABQSAQCCAFQfABaiQAQQALEgAgACABIAKtIAOtQiCGhBAiC1sBAn4gB60gCK1CIIaEIQxBfyECIAStIAWtQiCGhCILQhBaBEAgACADIAtCEH0gAyALp2pBEGsgBiAMIAkgChCzASECCyABBEAgAUIAIAtCEH0gAhs3AwALIAILJQAgACACIAOtIAStQiCGhCAFIAYgB60gCK1CIIaEIAkgChCzAQtZAQJ+An8gBq0gB61CIIaEIQwgA60gBK1CIIaEIgtC8P///w9UBEAgACAAIAunakEAIAIgCyAFIAwgCSAKELQBGiABBEAgASALQhB8NwMAC0EADAELEA4ACwsnACAAIAEgAiADIAStIAWtQiCGhCAGIAetIAitQiCGhCAKIAsQtAELWwECfiAHrSAIrUIghoQhDEF/IQIgBK0gBa1CIIaEIgtCEFoEQCAAIAMgC0IQfSADIAunakEQayAGIAwgCSAKEMcBIQILIAEEQCABQgAgC0IQfSACGzcDAAsgAgslACAAIAIgA60gBK1CIIaEIAUgBiAHrSAIrUIghoQgCSAKEMcBC1sBAn4gB60gCK1CIIaEIQxBfyECIAStIAWtQiCGhCILQhBaBEAgACADIAtCEH0gAyALp2pBEGsgBiAMIAkgChDIASECCyABBEAgAUIAIAtCEH0gAhs3AwALIAILJQAgACACIAOtIAStQiCGhCAFIAYgB60gCK1CIIaEIAkgChDIAQtZAQJ+An8gBq0gB61CIIaEIQwgA60gBK1CIIaEIgtC8P///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/IQYgBUHgAGoiCCADIAQQdEUEQCABIAAgARshAUEAIQAgBUGAAWoiA0EAQQBBwAAQOxogAyAIQiAQGxogCEEgEAggAyACQiAQGxogAyAEQiAQGxogAyAFQSBqQcAAEDoaIANBgAMQCANAIAAgB2ogBUEgaiIEIABqIgItAAA6AAAgACABaiACLQAgOgAAIAcgAEEBciIDaiADIARqLQAAOgAAIAEgA2ogAi0AIToAACAAQQJqIgBBIEcNAAsgBEHAABAIQQAhBgsg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ACdtH+IZ4JAIujLv9dRigAbCqO/m/8jv+b35AAM+Wn/0n8m/9edAz/mKDa/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+AEJLLgDm2isA5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o//hO1v/a0c6//EvIQEydewA27E//vRaswAjwtf/vUMy/xeHgQBovSX/uTnCACM+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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I8fX1BGO8vN93trbBr9radUIhIWMgEBAw5f//Gv3z8w6/0tJtgc3NTBgMDBQmExM1w+zsL75fX+E1l5eiiEREzC4XFzmTxMRXVaen8vx+foJ6PT1HyGRkrLpdXecyGRkr5nNzlcBgYKAZgYGYnk9P0aPc3H9EIiJmVCoqfjuQkKsLiIiDjEZGysfu7ilruLjTKBQUPKfe3nm8Xl7iFgsLHa3b23bb4OA7ZDIyVnQ6Ok4UCgoekklJ2wwGBgpIJCRsuFxc5J/Cwl2909NuQ6ys78RiYqY5kZGoMZWVpNPk5DfyeXmL1efnMovIyENuNzdZ2m1ttwGNjYyx1dVknE5O0kmpqeDYbGy0rFZW+vP09AfP6uolymVlr/R6eo5Hrq7pEAgIGG+6utXweHiISiUlb1wuLnI4HBwkV6am8XO0tMeXxsZRy+joI6Hd3XzodHScPh8fIZZLS91hvb3cDYuLhg+KioXgcHCQfD4+QnG1tcTMZmaqkEhI2AYDAwX39vYBHA4OEsJhYaNqNTVfrldX+Wm5udAXhoaRmcHBWDodHScnnp652eHhOOv4+BMrmJizIhERM9Jpabup2dlwB46OiTOUlKctm5u2PB4eIhWHh5LJ6ekgh87OSapVVf9QKCh4pd/fegOMjI9ZoaH4CYmJgBoNDRdlv7/a1+bmMYRCQsbQaGi4gkFBwymZmbBaLS13Hg8PEXuwsMuoVFT8bbu71iwWFjoOAAAADwAAABAAAAAR")||(Co=vo,vo=ht.locateFile?ht.locateFile(Co,Wt):Wt+Co);var Wo,Yn={36800:()=>ht.getRandomValue(),36836:()=>{if(ht.getRandomValue===void 0)try{var Vo=typeof window=="object"?window:self,zo=Vo.crypto!==void 0?Vo.crypto:Vo.msCrypto,$n=function(){var es=new Uint32Array(1);return zo.getRandomValues(es),es[0]>>>0};$n(),ht.getRandomValue=$n}catch{try{var Tn=require$$0$3,ko=function(){var es=Tn.randomBytes(4);return(es[0]<<24|es[1]<<16|es[2]<<8|es[3])>>>0};ko(),ht.getRandomValue=ko}catch{throw"No secure random number generator found"}}}},ba=Vo=>{for(;Vo.length>0;)Vo.shift()(ht)},_a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,$s=(Vo,zo)=>Vo?(($n,Tn,ko)=>{for(var es=Tn+ko,fs=Tn;$n[fs]&&!(fs>=es);)++fs;if(fs-Tn>16&&$n.buffer&&_a)return _a.decode($n.subarray(Tn,fs));for(var Es="";Tn>10,56320|1023&ks)}}else Es+=String.fromCharCode((31&Us)<<6|ms)}else Es+=String.fromCharCode(Us)}return Es})(Ro,Vo,zo):"",vs=[],ss=Vo=>{var zo=(Vo-go.buffer.byteLength+65535)/65536;try{return go.grow(zo),ho(),1}catch{}},Ts={b:(Vo,zo,$n,Tn)=>{Tt(`Assertion failed: ${$s(Vo)}, at: `+[zo?$s(zo):"unknown filename",$n,Tn?$s(Tn):"unknown function"])},c:()=>{Tt("")},a:(Vo,zo,$n)=>((Tn,ko,es)=>{var fs=((Es,Us)=>{var ms;for(vs.length=0;ms=Ro[Es++];)Us+=ms!=105&&Us%8?4:0,vs.push(ms==105?lo[Us>>2]:xt[Us>>3]),Us+=ms==105?4:8;return vs})(ko,es);return Yn[Tn].apply(null,fs)})(Vo,zo,$n),e:(Vo,zo,$n)=>Ro.copyWithin(Vo,zo,zo+$n),d:Vo=>{var zo=Ro.length,$n=2147483648;if((Vo>>>=0)>$n)return!1;for(var Tn,ko=1;ko<=4;ko*=2){var es=zo*(1+.2/ko);es=Math.min(es,Vo+100663296);var fs=Math.min($n,(Tn=Math.max(Vo,es))+(65536-Tn%65536)%65536);if(ss(fs))return!0}return!1}},qo=function(){var Vo,zo,$n={a:Ts};function Tn(ko,es){var fs=ko.exports;return go=(qo=fs).f,ho(),qo.kk,function(Es){if(Bo--,ht.monitorRunDependencies&&ht.monitorRunDependencies(Bo),Bo==0&&So){var Us=So;So=null,Us()}}(),fs}if(Bo++,ht.monitorRunDependencies&&ht.monitorRunDependencies(Bo),ht.instantiateWasm)try{return ht.instantiateWasm($n,Tn)}catch(ko){return bo(`Module.instantiateWasm callback failed with error: ${ko}`),!1}return Vo=$n,zo=function(ko){Tn(ko.instance)},function(ko){return Promise.resolve().then(()=>function(es){if(es==vo&&uo)return new Uint8Array(uo);var fs=function(Es){if(Po(Es))return function(Us){if(eo!==void 0&&eo){var ms=Buffer.from(Us,"base64");return new Uint8Array(ms.buffer,ms.byteOffset,ms.length)}try{for(var bs=atob(Us),ks=new Uint8Array(bs.length),Ds=0;DsWebAssembly.instantiate(ko,Vo)).then(ko=>ko).then(zo,ko=>{bo(`failed to asynchronously prepare wasm: ${ko}`),Tt(ko)}),{}}();function Js(){function Vo(){Wo||(Wo=!0,ht.calledRun=!0,Mt||(ba(co),ht.onRuntimeInitialized&&ht.onRuntimeInitialized(),function(){if(ht.postRun)for(typeof ht.postRun=="function"&&(ht.postRun=[ht.postRun]);ht.postRun.length;)zo=ht.postRun.shift(),mo.unshift(zo);var zo;ba(mo)}()))}Bo>0||(function(){if(ht.preRun)for(typeof ht.preRun=="function"&&(ht.preRun=[ht.preRun]);ht.preRun.length;)zo=ht.preRun.shift(),io.unshift(zo);var zo;ba(io)}(),Bo>0||(ht.setStatus?(ht.setStatus("Running..."),setTimeout(function(){setTimeout(function(){ht.setStatus("")},1),Vo()},1)):Vo()))}if(ht._crypto_aead_aegis128l_keybytes=()=>(ht._crypto_aead_aegis128l_keybytes=qo.g)(),ht._crypto_aead_aegis128l_nsecbytes=()=>(ht._crypto_aead_aegis128l_nsecbytes=qo.h)(),ht._crypto_aead_aegis128l_npubbytes=()=>(ht._crypto_aead_aegis128l_npubbytes=qo.i)(),ht._crypto_aead_aegis128l_abytes=()=>(ht._crypto_aead_aegis128l_abytes=qo.j)(),ht._crypto_aead_aegis128l_messagebytes_max=()=>(ht._crypto_aead_aegis128l_messagebytes_max=qo.k)(),ht._crypto_aead_aegis128l_keygen=Vo=>(ht._crypto_aead_aegis128l_keygen=qo.l)(Vo),ht._crypto_aead_aegis128l_encrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_aegis128l_encrypt=qo.m)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_aegis128l_encrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks)=>(ht._crypto_aead_aegis128l_encrypt_detached=qo.n)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks),ht._crypto_aead_aegis128l_decrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_aegis128l_decrypt=qo.o)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_aegis128l_decrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_aegis128l_decrypt_detached=qo.p)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_aegis256_keybytes=()=>(ht._crypto_aead_aegis256_keybytes=qo.q)(),ht._crypto_aead_aegis256_nsecbytes=()=>(ht._crypto_aead_aegis256_nsecbytes=qo.r)(),ht._crypto_aead_aegis256_npubbytes=()=>(ht._crypto_aead_aegis256_npubbytes=qo.s)(),ht._crypto_aead_aegis256_abytes=()=>(ht._crypto_aead_aegis256_abytes=qo.t)(),ht._crypto_aead_aegis256_messagebytes_max=()=>(ht._crypto_aead_aegis256_messagebytes_max=qo.u)(),ht._crypto_aead_aegis256_keygen=Vo=>(ht._crypto_aead_aegis256_keygen=qo.v)(Vo),ht._crypto_aead_aegis256_encrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_aegis256_encrypt=qo.w)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_aegis256_encrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks)=>(ht._crypto_aead_aegis256_encrypt_detached=qo.x)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks),ht._crypto_aead_aegis256_decrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_aegis256_decrypt=qo.y)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_aegis256_decrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_aegis256_decrypt_detached=qo.z)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_chacha20poly1305_encrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks)=>(ht._crypto_aead_chacha20poly1305_encrypt_detached=qo.A)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks),ht._crypto_aead_chacha20poly1305_encrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_chacha20poly1305_encrypt=qo.B)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_chacha20poly1305_ietf_encrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks)=>(ht._crypto_aead_chacha20poly1305_ietf_encrypt_detached=qo.C)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks),ht._crypto_aead_chacha20poly1305_ietf_encrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_chacha20poly1305_ietf_encrypt=qo.D)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_chacha20poly1305_decrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_chacha20poly1305_decrypt_detached=qo.E)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_chacha20poly1305_decrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_chacha20poly1305_decrypt=qo.F)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_chacha20poly1305_ietf_decrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_chacha20poly1305_ietf_decrypt_detached=qo.G)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_chacha20poly1305_ietf_decrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_chacha20poly1305_ietf_decrypt=qo.H)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_chacha20poly1305_ietf_keybytes=()=>(ht._crypto_aead_chacha20poly1305_ietf_keybytes=qo.I)(),ht._crypto_aead_chacha20poly1305_ietf_npubbytes=()=>(ht._crypto_aead_chacha20poly1305_ietf_npubbytes=qo.J)(),ht._crypto_aead_chacha20poly1305_ietf_nsecbytes=()=>(ht._crypto_aead_chacha20poly1305_ietf_nsecbytes=qo.K)(),ht._crypto_aead_chacha20poly1305_ietf_abytes=()=>(ht._crypto_aead_chacha20poly1305_ietf_abytes=qo.L)(),ht._crypto_aead_chacha20poly1305_ietf_messagebytes_max=()=>(ht._crypto_aead_chacha20poly1305_ietf_messagebytes_max=qo.M)(),ht._crypto_aead_chacha20poly1305_ietf_keygen=Vo=>(ht._crypto_aead_chacha20poly1305_ietf_keygen=qo.N)(Vo),ht._crypto_aead_chacha20poly1305_keybytes=()=>(ht._crypto_aead_chacha20poly1305_keybytes=qo.O)(),ht._crypto_aead_chacha20poly1305_npubbytes=()=>(ht._crypto_aead_chacha20poly1305_npubbytes=qo.P)(),ht._crypto_aead_chacha20poly1305_nsecbytes=()=>(ht._crypto_aead_chacha20poly1305_nsecbytes=qo.Q)(),ht._crypto_aead_chacha20poly1305_abytes=()=>(ht._crypto_aead_chacha20poly1305_abytes=qo.R)(),ht._crypto_aead_chacha20poly1305_messagebytes_max=()=>(ht._crypto_aead_chacha20poly1305_messagebytes_max=qo.S)(),ht._crypto_aead_chacha20poly1305_keygen=Vo=>(ht._crypto_aead_chacha20poly1305_keygen=qo.T)(Vo),ht._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks)=>(ht._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=qo.U)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks),ht._crypto_aead_xchacha20poly1305_ietf_encrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_xchacha20poly1305_ietf_encrypt=qo.V)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=qo.W)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_xchacha20poly1305_ietf_decrypt=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_aead_xchacha20poly1305_ietf_decrypt=qo.X)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_aead_xchacha20poly1305_ietf_keybytes=()=>(ht._crypto_aead_xchacha20poly1305_ietf_keybytes=qo.Y)(),ht._crypto_aead_xchacha20poly1305_ietf_npubbytes=()=>(ht._crypto_aead_xchacha20poly1305_ietf_npubbytes=qo.Z)(),ht._crypto_aead_xchacha20poly1305_ietf_nsecbytes=()=>(ht._crypto_aead_xchacha20poly1305_ietf_nsecbytes=qo._)(),ht._crypto_aead_xchacha20poly1305_ietf_abytes=()=>(ht._crypto_aead_xchacha20poly1305_ietf_abytes=qo.$)(),ht._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=()=>(ht._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=qo.aa)(),ht._crypto_aead_xchacha20poly1305_ietf_keygen=Vo=>(ht._crypto_aead_xchacha20poly1305_ietf_keygen=qo.ba)(Vo),ht._crypto_auth_bytes=()=>(ht._crypto_auth_bytes=qo.ca)(),ht._crypto_auth_keybytes=()=>(ht._crypto_auth_keybytes=qo.da)(),ht._crypto_auth_primitive=()=>(ht._crypto_auth_primitive=qo.ea)(),ht._crypto_auth=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth=qo.fa)(Vo,zo,$n,Tn,ko),ht._crypto_auth_verify=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth_verify=qo.ga)(Vo,zo,$n,Tn,ko),ht._crypto_auth_keygen=Vo=>(ht._crypto_auth_keygen=qo.ha)(Vo),ht._crypto_auth_hmacsha256_bytes=()=>(ht._crypto_auth_hmacsha256_bytes=qo.ia)(),ht._crypto_auth_hmacsha256_keybytes=()=>(ht._crypto_auth_hmacsha256_keybytes=qo.ja)(),ht._crypto_auth_hmacsha256_statebytes=()=>(ht._crypto_auth_hmacsha256_statebytes=qo.ka)(),ht._crypto_auth_hmacsha256_keygen=Vo=>(ht._crypto_auth_hmacsha256_keygen=qo.la)(Vo),ht._crypto_auth_hmacsha256_init=(Vo,zo,$n)=>(ht._crypto_auth_hmacsha256_init=qo.ma)(Vo,zo,$n),ht._crypto_auth_hmacsha256_update=(Vo,zo,$n,Tn)=>(ht._crypto_auth_hmacsha256_update=qo.na)(Vo,zo,$n,Tn),ht._crypto_auth_hmacsha256_final=(Vo,zo)=>(ht._crypto_auth_hmacsha256_final=qo.oa)(Vo,zo),ht._crypto_auth_hmacsha256=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth_hmacsha256=qo.pa)(Vo,zo,$n,Tn,ko),ht._crypto_auth_hmacsha256_verify=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth_hmacsha256_verify=qo.qa)(Vo,zo,$n,Tn,ko),ht._crypto_auth_hmacsha512_bytes=()=>(ht._crypto_auth_hmacsha512_bytes=qo.ra)(),ht._crypto_auth_hmacsha512_keybytes=()=>(ht._crypto_auth_hmacsha512_keybytes=qo.sa)(),ht._crypto_auth_hmacsha512_statebytes=()=>(ht._crypto_auth_hmacsha512_statebytes=qo.ta)(),ht._crypto_auth_hmacsha512_keygen=Vo=>(ht._crypto_auth_hmacsha512_keygen=qo.ua)(Vo),ht._crypto_auth_hmacsha512_init=(Vo,zo,$n)=>(ht._crypto_auth_hmacsha512_init=qo.va)(Vo,zo,$n),ht._crypto_auth_hmacsha512_update=(Vo,zo,$n,Tn)=>(ht._crypto_auth_hmacsha512_update=qo.wa)(Vo,zo,$n,Tn),ht._crypto_auth_hmacsha512_final=(Vo,zo)=>(ht._crypto_auth_hmacsha512_final=qo.xa)(Vo,zo),ht._crypto_auth_hmacsha512=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth_hmacsha512=qo.ya)(Vo,zo,$n,Tn,ko),ht._crypto_auth_hmacsha512_verify=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth_hmacsha512_verify=qo.za)(Vo,zo,$n,Tn,ko),ht._crypto_auth_hmacsha512256_bytes=()=>(ht._crypto_auth_hmacsha512256_bytes=qo.Aa)(),ht._crypto_auth_hmacsha512256_keybytes=()=>(ht._crypto_auth_hmacsha512256_keybytes=qo.Ba)(),ht._crypto_auth_hmacsha512256_statebytes=()=>(ht._crypto_auth_hmacsha512256_statebytes=qo.Ca)(),ht._crypto_auth_hmacsha512256_keygen=Vo=>(ht._crypto_auth_hmacsha512256_keygen=qo.Da)(Vo),ht._crypto_auth_hmacsha512256_init=(Vo,zo,$n)=>(ht._crypto_auth_hmacsha512256_init=qo.Ea)(Vo,zo,$n),ht._crypto_auth_hmacsha512256_update=(Vo,zo,$n,Tn)=>(ht._crypto_auth_hmacsha512256_update=qo.Fa)(Vo,zo,$n,Tn),ht._crypto_auth_hmacsha512256_final=(Vo,zo)=>(ht._crypto_auth_hmacsha512256_final=qo.Ga)(Vo,zo),ht._crypto_auth_hmacsha512256=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth_hmacsha512256=qo.Ha)(Vo,zo,$n,Tn,ko),ht._crypto_auth_hmacsha512256_verify=(Vo,zo,$n,Tn,ko)=>(ht._crypto_auth_hmacsha512256_verify=qo.Ia)(Vo,zo,$n,Tn,ko),ht._crypto_box_seedbytes=()=>(ht._crypto_box_seedbytes=qo.Ja)(),ht._crypto_box_publickeybytes=()=>(ht._crypto_box_publickeybytes=qo.Ka)(),ht._crypto_box_secretkeybytes=()=>(ht._crypto_box_secretkeybytes=qo.La)(),ht._crypto_box_beforenmbytes=()=>(ht._crypto_box_beforenmbytes=qo.Ma)(),ht._crypto_box_noncebytes=()=>(ht._crypto_box_noncebytes=qo.Na)(),ht._crypto_box_zerobytes=()=>(ht._crypto_box_zerobytes=qo.Oa)(),ht._crypto_box_boxzerobytes=()=>(ht._crypto_box_boxzerobytes=qo.Pa)(),ht._crypto_box_macbytes=()=>(ht._crypto_box_macbytes=qo.Qa)(),ht._crypto_box_messagebytes_max=()=>(ht._crypto_box_messagebytes_max=qo.Ra)(),ht._crypto_box_primitive=()=>(ht._crypto_box_primitive=qo.Sa)(),ht._crypto_box_seed_keypair=(Vo,zo,$n)=>(ht._crypto_box_seed_keypair=qo.Ta)(Vo,zo,$n),ht._crypto_box_keypair=(Vo,zo)=>(ht._crypto_box_keypair=qo.Ua)(Vo,zo),ht._crypto_box_beforenm=(Vo,zo,$n)=>(ht._crypto_box_beforenm=qo.Va)(Vo,zo,$n),ht._crypto_box_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_afternm=qo.Wa)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_open_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_open_afternm=qo.Xa)(Vo,zo,$n,Tn,ko,es),ht._crypto_box=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box=qo.Ya)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_open=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_open=qo.Za)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_detached_afternm=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_detached_afternm=qo._a)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_detached=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_box_detached=qo.$a)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_box_easy_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_easy_afternm=qo.ab)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_easy=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_easy=qo.bb)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_open_detached_afternm=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_open_detached_afternm=qo.cb)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_open_detached=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_box_open_detached=qo.db)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_box_open_easy_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_open_easy_afternm=qo.eb)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_open_easy=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_open_easy=qo.fb)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_seal=(Vo,zo,$n,Tn,ko)=>(ht._crypto_box_seal=qo.gb)(Vo,zo,$n,Tn,ko),ht._crypto_box_seal_open=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_seal_open=qo.hb)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_sealbytes=()=>(ht._crypto_box_sealbytes=qo.ib)(),ht._crypto_box_curve25519xsalsa20poly1305_seed_keypair=(Vo,zo,$n)=>(ht._crypto_box_curve25519xsalsa20poly1305_seed_keypair=qo.jb)(Vo,zo,$n),ht._crypto_box_curve25519xsalsa20poly1305_keypair=(Vo,zo)=>(ht._crypto_box_curve25519xsalsa20poly1305_keypair=qo.kb)(Vo,zo),ht._crypto_box_curve25519xsalsa20poly1305_beforenm=(Vo,zo,$n)=>(ht._crypto_box_curve25519xsalsa20poly1305_beforenm=qo.lb)(Vo,zo,$n),ht._crypto_box_curve25519xsalsa20poly1305_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_curve25519xsalsa20poly1305_afternm=qo.mb)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_curve25519xsalsa20poly1305_open_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_curve25519xsalsa20poly1305_open_afternm=qo.nb)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_curve25519xsalsa20poly1305=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_curve25519xsalsa20poly1305=qo.ob)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_curve25519xsalsa20poly1305_open=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_curve25519xsalsa20poly1305_open=qo.pb)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_curve25519xsalsa20poly1305_seedbytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_seedbytes=qo.qb)(),ht._crypto_box_curve25519xsalsa20poly1305_publickeybytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_publickeybytes=qo.rb)(),ht._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_secretkeybytes=qo.sb)(),ht._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_beforenmbytes=qo.tb)(),ht._crypto_box_curve25519xsalsa20poly1305_noncebytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_noncebytes=qo.ub)(),ht._crypto_box_curve25519xsalsa20poly1305_zerobytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_zerobytes=qo.vb)(),ht._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_boxzerobytes=qo.wb)(),ht._crypto_box_curve25519xsalsa20poly1305_macbytes=()=>(ht._crypto_box_curve25519xsalsa20poly1305_macbytes=qo.xb)(),ht._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=()=>(ht._crypto_box_curve25519xsalsa20poly1305_messagebytes_max=qo.yb)(),ht._crypto_core_hchacha20=(Vo,zo,$n,Tn)=>(ht._crypto_core_hchacha20=qo.zb)(Vo,zo,$n,Tn),ht._crypto_core_hchacha20_outputbytes=()=>(ht._crypto_core_hchacha20_outputbytes=qo.Ab)(),ht._crypto_core_hchacha20_inputbytes=()=>(ht._crypto_core_hchacha20_inputbytes=qo.Bb)(),ht._crypto_core_hchacha20_keybytes=()=>(ht._crypto_core_hchacha20_keybytes=qo.Cb)(),ht._crypto_core_hchacha20_constbytes=()=>(ht._crypto_core_hchacha20_constbytes=qo.Db)(),ht._crypto_core_hsalsa20=(Vo,zo,$n,Tn)=>(ht._crypto_core_hsalsa20=qo.Eb)(Vo,zo,$n,Tn),ht._crypto_core_hsalsa20_outputbytes=()=>(ht._crypto_core_hsalsa20_outputbytes=qo.Fb)(),ht._crypto_core_hsalsa20_inputbytes=()=>(ht._crypto_core_hsalsa20_inputbytes=qo.Gb)(),ht._crypto_core_hsalsa20_keybytes=()=>(ht._crypto_core_hsalsa20_keybytes=qo.Hb)(),ht._crypto_core_hsalsa20_constbytes=()=>(ht._crypto_core_hsalsa20_constbytes=qo.Ib)(),ht._crypto_core_salsa20=(Vo,zo,$n,Tn)=>(ht._crypto_core_salsa20=qo.Jb)(Vo,zo,$n,Tn),ht._crypto_core_salsa20_outputbytes=()=>(ht._crypto_core_salsa20_outputbytes=qo.Kb)(),ht._crypto_core_salsa20_inputbytes=()=>(ht._crypto_core_salsa20_inputbytes=qo.Lb)(),ht._crypto_core_salsa20_keybytes=()=>(ht._crypto_core_salsa20_keybytes=qo.Mb)(),ht._crypto_core_salsa20_constbytes=()=>(ht._crypto_core_salsa20_constbytes=qo.Nb)(),ht._crypto_core_salsa2012=(Vo,zo,$n,Tn)=>(ht._crypto_core_salsa2012=qo.Ob)(Vo,zo,$n,Tn),ht._crypto_core_salsa2012_outputbytes=()=>(ht._crypto_core_salsa2012_outputbytes=qo.Pb)(),ht._crypto_core_salsa2012_inputbytes=()=>(ht._crypto_core_salsa2012_inputbytes=qo.Qb)(),ht._crypto_core_salsa2012_keybytes=()=>(ht._crypto_core_salsa2012_keybytes=qo.Rb)(),ht._crypto_core_salsa2012_constbytes=()=>(ht._crypto_core_salsa2012_constbytes=qo.Sb)(),ht._crypto_core_salsa208=(Vo,zo,$n,Tn)=>(ht._crypto_core_salsa208=qo.Tb)(Vo,zo,$n,Tn),ht._crypto_core_salsa208_outputbytes=()=>(ht._crypto_core_salsa208_outputbytes=qo.Ub)(),ht._crypto_core_salsa208_inputbytes=()=>(ht._crypto_core_salsa208_inputbytes=qo.Vb)(),ht._crypto_core_salsa208_keybytes=()=>(ht._crypto_core_salsa208_keybytes=qo.Wb)(),ht._crypto_core_salsa208_constbytes=()=>(ht._crypto_core_salsa208_constbytes=qo.Xb)(),ht._crypto_generichash_bytes_min=()=>(ht._crypto_generichash_bytes_min=qo.Yb)(),ht._crypto_generichash_bytes_max=()=>(ht._crypto_generichash_bytes_max=qo.Zb)(),ht._crypto_generichash_bytes=()=>(ht._crypto_generichash_bytes=qo._b)(),ht._crypto_generichash_keybytes_min=()=>(ht._crypto_generichash_keybytes_min=qo.$b)(),ht._crypto_generichash_keybytes_max=()=>(ht._crypto_generichash_keybytes_max=qo.ac)(),ht._crypto_generichash_keybytes=()=>(ht._crypto_generichash_keybytes=qo.bc)(),ht._crypto_generichash_primitive=()=>(ht._crypto_generichash_primitive=qo.cc)(),ht._crypto_generichash_statebytes=()=>(ht._crypto_generichash_statebytes=qo.dc)(),ht._crypto_generichash=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_generichash=qo.ec)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_generichash_init=(Vo,zo,$n,Tn)=>(ht._crypto_generichash_init=qo.fc)(Vo,zo,$n,Tn),ht._crypto_generichash_update=(Vo,zo,$n,Tn)=>(ht._crypto_generichash_update=qo.gc)(Vo,zo,$n,Tn),ht._crypto_generichash_final=(Vo,zo,$n)=>(ht._crypto_generichash_final=qo.hc)(Vo,zo,$n),ht._crypto_generichash_keygen=Vo=>(ht._crypto_generichash_keygen=qo.ic)(Vo),ht._crypto_generichash_blake2b_bytes_min=()=>(ht._crypto_generichash_blake2b_bytes_min=qo.jc)(),ht._crypto_generichash_blake2b_bytes_max=()=>(ht._crypto_generichash_blake2b_bytes_max=qo.kc)(),ht._crypto_generichash_blake2b_bytes=()=>(ht._crypto_generichash_blake2b_bytes=qo.lc)(),ht._crypto_generichash_blake2b_keybytes_min=()=>(ht._crypto_generichash_blake2b_keybytes_min=qo.mc)(),ht._crypto_generichash_blake2b_keybytes_max=()=>(ht._crypto_generichash_blake2b_keybytes_max=qo.nc)(),ht._crypto_generichash_blake2b_keybytes=()=>(ht._crypto_generichash_blake2b_keybytes=qo.oc)(),ht._crypto_generichash_blake2b_saltbytes=()=>(ht._crypto_generichash_blake2b_saltbytes=qo.pc)(),ht._crypto_generichash_blake2b_personalbytes=()=>(ht._crypto_generichash_blake2b_personalbytes=qo.qc)(),ht._crypto_generichash_blake2b_statebytes=()=>(ht._crypto_generichash_blake2b_statebytes=qo.rc)(),ht._crypto_generichash_blake2b_keygen=Vo=>(ht._crypto_generichash_blake2b_keygen=qo.sc)(Vo),ht._crypto_generichash_blake2b=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_generichash_blake2b=qo.tc)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_generichash_blake2b_salt_personal=(Vo,zo,$n,Tn,ko,es,fs,Es,Us)=>(ht._crypto_generichash_blake2b_salt_personal=qo.uc)(Vo,zo,$n,Tn,ko,es,fs,Es,Us),ht._crypto_generichash_blake2b_init=(Vo,zo,$n,Tn)=>(ht._crypto_generichash_blake2b_init=qo.vc)(Vo,zo,$n,Tn),ht._crypto_generichash_blake2b_init_salt_personal=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_generichash_blake2b_init_salt_personal=qo.wc)(Vo,zo,$n,Tn,ko,es),ht._crypto_generichash_blake2b_update=(Vo,zo,$n,Tn)=>(ht._crypto_generichash_blake2b_update=qo.xc)(Vo,zo,$n,Tn),ht._crypto_generichash_blake2b_final=(Vo,zo,$n)=>(ht._crypto_generichash_blake2b_final=qo.yc)(Vo,zo,$n),ht._crypto_hash_bytes=()=>(ht._crypto_hash_bytes=qo.zc)(),ht._crypto_hash=(Vo,zo,$n,Tn)=>(ht._crypto_hash=qo.Ac)(Vo,zo,$n,Tn),ht._crypto_hash_primitive=()=>(ht._crypto_hash_primitive=qo.Bc)(),ht._crypto_hash_sha256_bytes=()=>(ht._crypto_hash_sha256_bytes=qo.Cc)(),ht._crypto_hash_sha256_statebytes=()=>(ht._crypto_hash_sha256_statebytes=qo.Dc)(),ht._crypto_hash_sha256_init=Vo=>(ht._crypto_hash_sha256_init=qo.Ec)(Vo),ht._crypto_hash_sha256_update=(Vo,zo,$n,Tn)=>(ht._crypto_hash_sha256_update=qo.Fc)(Vo,zo,$n,Tn),ht._crypto_hash_sha256_final=(Vo,zo)=>(ht._crypto_hash_sha256_final=qo.Gc)(Vo,zo),ht._crypto_hash_sha256=(Vo,zo,$n,Tn)=>(ht._crypto_hash_sha256=qo.Hc)(Vo,zo,$n,Tn),ht._crypto_hash_sha512_bytes=()=>(ht._crypto_hash_sha512_bytes=qo.Ic)(),ht._crypto_hash_sha512_statebytes=()=>(ht._crypto_hash_sha512_statebytes=qo.Jc)(),ht._crypto_hash_sha512_init=Vo=>(ht._crypto_hash_sha512_init=qo.Kc)(Vo),ht._crypto_hash_sha512_update=(Vo,zo,$n,Tn)=>(ht._crypto_hash_sha512_update=qo.Lc)(Vo,zo,$n,Tn),ht._crypto_hash_sha512_final=(Vo,zo)=>(ht._crypto_hash_sha512_final=qo.Mc)(Vo,zo),ht._crypto_hash_sha512=(Vo,zo,$n,Tn)=>(ht._crypto_hash_sha512=qo.Nc)(Vo,zo,$n,Tn),ht._crypto_kdf_blake2b_bytes_min=()=>(ht._crypto_kdf_blake2b_bytes_min=qo.Oc)(),ht._crypto_kdf_blake2b_bytes_max=()=>(ht._crypto_kdf_blake2b_bytes_max=qo.Pc)(),ht._crypto_kdf_blake2b_contextbytes=()=>(ht._crypto_kdf_blake2b_contextbytes=qo.Qc)(),ht._crypto_kdf_blake2b_keybytes=()=>(ht._crypto_kdf_blake2b_keybytes=qo.Rc)(),ht._crypto_kdf_blake2b_derive_from_key=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_kdf_blake2b_derive_from_key=qo.Sc)(Vo,zo,$n,Tn,ko,es),ht._crypto_kdf_primitive=()=>(ht._crypto_kdf_primitive=qo.Tc)(),ht._crypto_kdf_bytes_min=()=>(ht._crypto_kdf_bytes_min=qo.Uc)(),ht._crypto_kdf_bytes_max=()=>(ht._crypto_kdf_bytes_max=qo.Vc)(),ht._crypto_kdf_contextbytes=()=>(ht._crypto_kdf_contextbytes=qo.Wc)(),ht._crypto_kdf_keybytes=()=>(ht._crypto_kdf_keybytes=qo.Xc)(),ht._crypto_kdf_derive_from_key=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_kdf_derive_from_key=qo.Yc)(Vo,zo,$n,Tn,ko,es),ht._crypto_kdf_keygen=Vo=>(ht._crypto_kdf_keygen=qo.Zc)(Vo),ht._crypto_kdf_hkdf_sha256_extract_init=(Vo,zo,$n)=>(ht._crypto_kdf_hkdf_sha256_extract_init=qo._c)(Vo,zo,$n),ht._crypto_kdf_hkdf_sha256_extract_update=(Vo,zo,$n)=>(ht._crypto_kdf_hkdf_sha256_extract_update=qo.$c)(Vo,zo,$n),ht._crypto_kdf_hkdf_sha256_extract_final=(Vo,zo)=>(ht._crypto_kdf_hkdf_sha256_extract_final=qo.ad)(Vo,zo),ht._crypto_kdf_hkdf_sha256_extract=(Vo,zo,$n,Tn,ko)=>(ht._crypto_kdf_hkdf_sha256_extract=qo.bd)(Vo,zo,$n,Tn,ko),ht._crypto_kdf_hkdf_sha256_keygen=Vo=>(ht._crypto_kdf_hkdf_sha256_keygen=qo.cd)(Vo),ht._crypto_kdf_hkdf_sha256_expand=(Vo,zo,$n,Tn,ko)=>(ht._crypto_kdf_hkdf_sha256_expand=qo.dd)(Vo,zo,$n,Tn,ko),ht._crypto_kdf_hkdf_sha256_keybytes=()=>(ht._crypto_kdf_hkdf_sha256_keybytes=qo.ed)(),ht._crypto_kdf_hkdf_sha256_bytes_min=()=>(ht._crypto_kdf_hkdf_sha256_bytes_min=qo.fd)(),ht._crypto_kdf_hkdf_sha256_bytes_max=()=>(ht._crypto_kdf_hkdf_sha256_bytes_max=qo.gd)(),ht._crypto_kdf_hkdf_sha256_statebytes=()=>(ht._crypto_kdf_hkdf_sha256_statebytes=qo.hd)(),ht._crypto_kdf_hkdf_sha512_extract_init=(Vo,zo,$n)=>(ht._crypto_kdf_hkdf_sha512_extract_init=qo.id)(Vo,zo,$n),ht._crypto_kdf_hkdf_sha512_extract_update=(Vo,zo,$n)=>(ht._crypto_kdf_hkdf_sha512_extract_update=qo.jd)(Vo,zo,$n),ht._crypto_kdf_hkdf_sha512_extract_final=(Vo,zo)=>(ht._crypto_kdf_hkdf_sha512_extract_final=qo.kd)(Vo,zo),ht._crypto_kdf_hkdf_sha512_extract=(Vo,zo,$n,Tn,ko)=>(ht._crypto_kdf_hkdf_sha512_extract=qo.ld)(Vo,zo,$n,Tn,ko),ht._crypto_kdf_hkdf_sha512_keygen=Vo=>(ht._crypto_kdf_hkdf_sha512_keygen=qo.md)(Vo),ht._crypto_kdf_hkdf_sha512_expand=(Vo,zo,$n,Tn,ko)=>(ht._crypto_kdf_hkdf_sha512_expand=qo.nd)(Vo,zo,$n,Tn,ko),ht._crypto_kdf_hkdf_sha512_keybytes=()=>(ht._crypto_kdf_hkdf_sha512_keybytes=qo.od)(),ht._crypto_kdf_hkdf_sha512_bytes_min=()=>(ht._crypto_kdf_hkdf_sha512_bytes_min=qo.pd)(),ht._crypto_kdf_hkdf_sha512_bytes_max=()=>(ht._crypto_kdf_hkdf_sha512_bytes_max=qo.qd)(),ht._crypto_kx_seed_keypair=(Vo,zo,$n)=>(ht._crypto_kx_seed_keypair=qo.rd)(Vo,zo,$n),ht._crypto_kx_keypair=(Vo,zo)=>(ht._crypto_kx_keypair=qo.sd)(Vo,zo),ht._crypto_kx_client_session_keys=(Vo,zo,$n,Tn,ko)=>(ht._crypto_kx_client_session_keys=qo.td)(Vo,zo,$n,Tn,ko),ht._crypto_kx_server_session_keys=(Vo,zo,$n,Tn,ko)=>(ht._crypto_kx_server_session_keys=qo.ud)(Vo,zo,$n,Tn,ko),ht._crypto_kx_publickeybytes=()=>(ht._crypto_kx_publickeybytes=qo.vd)(),ht._crypto_kx_secretkeybytes=()=>(ht._crypto_kx_secretkeybytes=qo.wd)(),ht._crypto_kx_seedbytes=()=>(ht._crypto_kx_seedbytes=qo.xd)(),ht._crypto_kx_sessionkeybytes=()=>(ht._crypto_kx_sessionkeybytes=qo.yd)(),ht._crypto_kx_primitive=()=>(ht._crypto_kx_primitive=qo.zd)(),ht._crypto_onetimeauth_statebytes=()=>(ht._crypto_onetimeauth_statebytes=qo.Ad)(),ht._crypto_onetimeauth_bytes=()=>(ht._crypto_onetimeauth_bytes=qo.Bd)(),ht._crypto_onetimeauth_keybytes=()=>(ht._crypto_onetimeauth_keybytes=qo.Cd)(),ht._crypto_onetimeauth=(Vo,zo,$n,Tn,ko)=>(ht._crypto_onetimeauth=qo.Dd)(Vo,zo,$n,Tn,ko),ht._crypto_onetimeauth_verify=(Vo,zo,$n,Tn,ko)=>(ht._crypto_onetimeauth_verify=qo.Ed)(Vo,zo,$n,Tn,ko),ht._crypto_onetimeauth_init=(Vo,zo)=>(ht._crypto_onetimeauth_init=qo.Fd)(Vo,zo),ht._crypto_onetimeauth_update=(Vo,zo,$n,Tn)=>(ht._crypto_onetimeauth_update=qo.Gd)(Vo,zo,$n,Tn),ht._crypto_onetimeauth_final=(Vo,zo)=>(ht._crypto_onetimeauth_final=qo.Hd)(Vo,zo),ht._crypto_onetimeauth_primitive=()=>(ht._crypto_onetimeauth_primitive=qo.Id)(),ht._crypto_onetimeauth_keygen=Vo=>(ht._crypto_onetimeauth_keygen=qo.Jd)(Vo),ht._crypto_onetimeauth_poly1305=(Vo,zo,$n,Tn,ko)=>(ht._crypto_onetimeauth_poly1305=qo.Kd)(Vo,zo,$n,Tn,ko),ht._crypto_onetimeauth_poly1305_verify=(Vo,zo,$n,Tn,ko)=>(ht._crypto_onetimeauth_poly1305_verify=qo.Ld)(Vo,zo,$n,Tn,ko),ht._crypto_onetimeauth_poly1305_init=(Vo,zo)=>(ht._crypto_onetimeauth_poly1305_init=qo.Md)(Vo,zo),ht._crypto_onetimeauth_poly1305_update=(Vo,zo,$n,Tn)=>(ht._crypto_onetimeauth_poly1305_update=qo.Nd)(Vo,zo,$n,Tn),ht._crypto_onetimeauth_poly1305_final=(Vo,zo)=>(ht._crypto_onetimeauth_poly1305_final=qo.Od)(Vo,zo),ht._crypto_onetimeauth_poly1305_bytes=()=>(ht._crypto_onetimeauth_poly1305_bytes=qo.Pd)(),ht._crypto_onetimeauth_poly1305_keybytes=()=>(ht._crypto_onetimeauth_poly1305_keybytes=qo.Qd)(),ht._crypto_onetimeauth_poly1305_statebytes=()=>(ht._crypto_onetimeauth_poly1305_statebytes=qo.Rd)(),ht._crypto_onetimeauth_poly1305_keygen=Vo=>(ht._crypto_onetimeauth_poly1305_keygen=qo.Sd)(Vo),ht._crypto_pwhash_argon2i_alg_argon2i13=()=>(ht._crypto_pwhash_argon2i_alg_argon2i13=qo.Td)(),ht._crypto_pwhash_argon2i_bytes_min=()=>(ht._crypto_pwhash_argon2i_bytes_min=qo.Ud)(),ht._crypto_pwhash_argon2i_bytes_max=()=>(ht._crypto_pwhash_argon2i_bytes_max=qo.Vd)(),ht._crypto_pwhash_argon2i_passwd_min=()=>(ht._crypto_pwhash_argon2i_passwd_min=qo.Wd)(),ht._crypto_pwhash_argon2i_passwd_max=()=>(ht._crypto_pwhash_argon2i_passwd_max=qo.Xd)(),ht._crypto_pwhash_argon2i_saltbytes=()=>(ht._crypto_pwhash_argon2i_saltbytes=qo.Yd)(),ht._crypto_pwhash_argon2i_strbytes=()=>(ht._crypto_pwhash_argon2i_strbytes=qo.Zd)(),ht._crypto_pwhash_argon2i_strprefix=()=>(ht._crypto_pwhash_argon2i_strprefix=qo._d)(),ht._crypto_pwhash_argon2i_opslimit_min=()=>(ht._crypto_pwhash_argon2i_opslimit_min=qo.$d)(),ht._crypto_pwhash_argon2i_opslimit_max=()=>(ht._crypto_pwhash_argon2i_opslimit_max=qo.ae)(),ht._crypto_pwhash_argon2i_memlimit_min=()=>(ht._crypto_pwhash_argon2i_memlimit_min=qo.be)(),ht._crypto_pwhash_argon2i_memlimit_max=()=>(ht._crypto_pwhash_argon2i_memlimit_max=qo.ce)(),ht._crypto_pwhash_argon2i_opslimit_interactive=()=>(ht._crypto_pwhash_argon2i_opslimit_interactive=qo.de)(),ht._crypto_pwhash_argon2i_memlimit_interactive=()=>(ht._crypto_pwhash_argon2i_memlimit_interactive=qo.ee)(),ht._crypto_pwhash_argon2i_opslimit_moderate=()=>(ht._crypto_pwhash_argon2i_opslimit_moderate=qo.fe)(),ht._crypto_pwhash_argon2i_memlimit_moderate=()=>(ht._crypto_pwhash_argon2i_memlimit_moderate=qo.ge)(),ht._crypto_pwhash_argon2i_opslimit_sensitive=()=>(ht._crypto_pwhash_argon2i_opslimit_sensitive=qo.he)(),ht._crypto_pwhash_argon2i_memlimit_sensitive=()=>(ht._crypto_pwhash_argon2i_memlimit_sensitive=qo.ie)(),ht._crypto_pwhash_argon2i=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_pwhash_argon2i=qo.je)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_pwhash_argon2i_str=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_pwhash_argon2i_str=qo.ke)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_pwhash_argon2i_str_verify=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_argon2i_str_verify=qo.le)(Vo,zo,$n,Tn),ht._crypto_pwhash_argon2i_str_needs_rehash=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_argon2i_str_needs_rehash=qo.me)(Vo,zo,$n,Tn),ht._crypto_pwhash_argon2id_str_needs_rehash=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_argon2id_str_needs_rehash=qo.ne)(Vo,zo,$n,Tn),ht._crypto_pwhash_argon2id_alg_argon2id13=()=>(ht._crypto_pwhash_argon2id_alg_argon2id13=qo.oe)(),ht._crypto_pwhash_argon2id_bytes_min=()=>(ht._crypto_pwhash_argon2id_bytes_min=qo.pe)(),ht._crypto_pwhash_argon2id_bytes_max=()=>(ht._crypto_pwhash_argon2id_bytes_max=qo.qe)(),ht._crypto_pwhash_argon2id_passwd_min=()=>(ht._crypto_pwhash_argon2id_passwd_min=qo.re)(),ht._crypto_pwhash_argon2id_passwd_max=()=>(ht._crypto_pwhash_argon2id_passwd_max=qo.se)(),ht._crypto_pwhash_argon2id_saltbytes=()=>(ht._crypto_pwhash_argon2id_saltbytes=qo.te)(),ht._crypto_pwhash_argon2id_strbytes=()=>(ht._crypto_pwhash_argon2id_strbytes=qo.ue)(),ht._crypto_pwhash_argon2id_strprefix=()=>(ht._crypto_pwhash_argon2id_strprefix=qo.ve)(),ht._crypto_pwhash_argon2id_opslimit_min=()=>(ht._crypto_pwhash_argon2id_opslimit_min=qo.we)(),ht._crypto_pwhash_argon2id_opslimit_max=()=>(ht._crypto_pwhash_argon2id_opslimit_max=qo.xe)(),ht._crypto_pwhash_argon2id_memlimit_min=()=>(ht._crypto_pwhash_argon2id_memlimit_min=qo.ye)(),ht._crypto_pwhash_argon2id_memlimit_max=()=>(ht._crypto_pwhash_argon2id_memlimit_max=qo.ze)(),ht._crypto_pwhash_argon2id_opslimit_interactive=()=>(ht._crypto_pwhash_argon2id_opslimit_interactive=qo.Ae)(),ht._crypto_pwhash_argon2id_memlimit_interactive=()=>(ht._crypto_pwhash_argon2id_memlimit_interactive=qo.Be)(),ht._crypto_pwhash_argon2id_opslimit_moderate=()=>(ht._crypto_pwhash_argon2id_opslimit_moderate=qo.Ce)(),ht._crypto_pwhash_argon2id_memlimit_moderate=()=>(ht._crypto_pwhash_argon2id_memlimit_moderate=qo.De)(),ht._crypto_pwhash_argon2id_opslimit_sensitive=()=>(ht._crypto_pwhash_argon2id_opslimit_sensitive=qo.Ee)(),ht._crypto_pwhash_argon2id_memlimit_sensitive=()=>(ht._crypto_pwhash_argon2id_memlimit_sensitive=qo.Fe)(),ht._crypto_pwhash_argon2id=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_pwhash_argon2id=qo.Ge)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_pwhash_argon2id_str=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_pwhash_argon2id_str=qo.He)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_pwhash_argon2id_str_verify=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_argon2id_str_verify=qo.Ie)(Vo,zo,$n,Tn),ht._crypto_pwhash_alg_argon2i13=()=>(ht._crypto_pwhash_alg_argon2i13=qo.Je)(),ht._crypto_pwhash_alg_argon2id13=()=>(ht._crypto_pwhash_alg_argon2id13=qo.Ke)(),ht._crypto_pwhash_alg_default=()=>(ht._crypto_pwhash_alg_default=qo.Le)(),ht._crypto_pwhash_bytes_min=()=>(ht._crypto_pwhash_bytes_min=qo.Me)(),ht._crypto_pwhash_bytes_max=()=>(ht._crypto_pwhash_bytes_max=qo.Ne)(),ht._crypto_pwhash_passwd_min=()=>(ht._crypto_pwhash_passwd_min=qo.Oe)(),ht._crypto_pwhash_passwd_max=()=>(ht._crypto_pwhash_passwd_max=qo.Pe)(),ht._crypto_pwhash_saltbytes=()=>(ht._crypto_pwhash_saltbytes=qo.Qe)(),ht._crypto_pwhash_strbytes=()=>(ht._crypto_pwhash_strbytes=qo.Re)(),ht._crypto_pwhash_strprefix=()=>(ht._crypto_pwhash_strprefix=qo.Se)(),ht._crypto_pwhash_opslimit_min=()=>(ht._crypto_pwhash_opslimit_min=qo.Te)(),ht._crypto_pwhash_opslimit_max=()=>(ht._crypto_pwhash_opslimit_max=qo.Ue)(),ht._crypto_pwhash_memlimit_min=()=>(ht._crypto_pwhash_memlimit_min=qo.Ve)(),ht._crypto_pwhash_memlimit_max=()=>(ht._crypto_pwhash_memlimit_max=qo.We)(),ht._crypto_pwhash_opslimit_interactive=()=>(ht._crypto_pwhash_opslimit_interactive=qo.Xe)(),ht._crypto_pwhash_memlimit_interactive=()=>(ht._crypto_pwhash_memlimit_interactive=qo.Ye)(),ht._crypto_pwhash_opslimit_moderate=()=>(ht._crypto_pwhash_opslimit_moderate=qo.Ze)(),ht._crypto_pwhash_memlimit_moderate=()=>(ht._crypto_pwhash_memlimit_moderate=qo._e)(),ht._crypto_pwhash_opslimit_sensitive=()=>(ht._crypto_pwhash_opslimit_sensitive=qo.$e)(),ht._crypto_pwhash_memlimit_sensitive=()=>(ht._crypto_pwhash_memlimit_sensitive=qo.af)(),ht._crypto_pwhash=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs)=>(ht._crypto_pwhash=qo.bf)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs),ht._crypto_pwhash_str=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_pwhash_str=qo.cf)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_pwhash_str_alg=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_pwhash_str_alg=qo.df)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_pwhash_str_verify=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_str_verify=qo.ef)(Vo,zo,$n,Tn),ht._crypto_pwhash_str_needs_rehash=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_str_needs_rehash=qo.ff)(Vo,zo,$n,Tn),ht._crypto_pwhash_primitive=()=>(ht._crypto_pwhash_primitive=qo.gf)(),ht._crypto_scalarmult_primitive=()=>(ht._crypto_scalarmult_primitive=qo.hf)(),ht._crypto_scalarmult_base=(Vo,zo)=>(ht._crypto_scalarmult_base=qo.jf)(Vo,zo),ht._crypto_scalarmult=(Vo,zo,$n)=>(ht._crypto_scalarmult=qo.kf)(Vo,zo,$n),ht._crypto_scalarmult_bytes=()=>(ht._crypto_scalarmult_bytes=qo.lf)(),ht._crypto_scalarmult_scalarbytes=()=>(ht._crypto_scalarmult_scalarbytes=qo.mf)(),ht._crypto_scalarmult_curve25519=(Vo,zo,$n)=>(ht._crypto_scalarmult_curve25519=qo.nf)(Vo,zo,$n),ht._crypto_scalarmult_curve25519_base=(Vo,zo)=>(ht._crypto_scalarmult_curve25519_base=qo.of)(Vo,zo),ht._crypto_scalarmult_curve25519_bytes=()=>(ht._crypto_scalarmult_curve25519_bytes=qo.pf)(),ht._crypto_scalarmult_curve25519_scalarbytes=()=>(ht._crypto_scalarmult_curve25519_scalarbytes=qo.qf)(),ht._crypto_secretbox_keybytes=()=>(ht._crypto_secretbox_keybytes=qo.rf)(),ht._crypto_secretbox_noncebytes=()=>(ht._crypto_secretbox_noncebytes=qo.sf)(),ht._crypto_secretbox_zerobytes=()=>(ht._crypto_secretbox_zerobytes=qo.tf)(),ht._crypto_secretbox_boxzerobytes=()=>(ht._crypto_secretbox_boxzerobytes=qo.uf)(),ht._crypto_secretbox_macbytes=()=>(ht._crypto_secretbox_macbytes=qo.vf)(),ht._crypto_secretbox_messagebytes_max=()=>(ht._crypto_secretbox_messagebytes_max=qo.wf)(),ht._crypto_secretbox_primitive=()=>(ht._crypto_secretbox_primitive=qo.xf)(),ht._crypto_secretbox=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox=qo.yf)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_open=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox_open=qo.zf)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_keygen=Vo=>(ht._crypto_secretbox_keygen=qo.Af)(Vo),ht._crypto_secretbox_detached=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_secretbox_detached=qo.Bf)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_secretbox_easy=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox_easy=qo.Cf)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_open_detached=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_secretbox_open_detached=qo.Df)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_secretbox_open_easy=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox_open_easy=qo.Ef)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_xsalsa20poly1305=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox_xsalsa20poly1305=qo.Ff)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_xsalsa20poly1305_open=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox_xsalsa20poly1305_open=qo.Gf)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_xsalsa20poly1305_keybytes=()=>(ht._crypto_secretbox_xsalsa20poly1305_keybytes=qo.Hf)(),ht._crypto_secretbox_xsalsa20poly1305_noncebytes=()=>(ht._crypto_secretbox_xsalsa20poly1305_noncebytes=qo.If)(),ht._crypto_secretbox_xsalsa20poly1305_zerobytes=()=>(ht._crypto_secretbox_xsalsa20poly1305_zerobytes=qo.Jf)(),ht._crypto_secretbox_xsalsa20poly1305_boxzerobytes=()=>(ht._crypto_secretbox_xsalsa20poly1305_boxzerobytes=qo.Kf)(),ht._crypto_secretbox_xsalsa20poly1305_macbytes=()=>(ht._crypto_secretbox_xsalsa20poly1305_macbytes=qo.Lf)(),ht._crypto_secretbox_xsalsa20poly1305_messagebytes_max=()=>(ht._crypto_secretbox_xsalsa20poly1305_messagebytes_max=qo.Mf)(),ht._crypto_secretbox_xsalsa20poly1305_keygen=Vo=>(ht._crypto_secretbox_xsalsa20poly1305_keygen=qo.Nf)(Vo),ht._crypto_secretstream_xchacha20poly1305_keygen=Vo=>(ht._crypto_secretstream_xchacha20poly1305_keygen=qo.Of)(Vo),ht._crypto_secretstream_xchacha20poly1305_init_push=(Vo,zo,$n)=>(ht._crypto_secretstream_xchacha20poly1305_init_push=qo.Pf)(Vo,zo,$n),ht._crypto_secretstream_xchacha20poly1305_init_pull=(Vo,zo,$n)=>(ht._crypto_secretstream_xchacha20poly1305_init_pull=qo.Qf)(Vo,zo,$n),ht._crypto_secretstream_xchacha20poly1305_rekey=Vo=>(ht._crypto_secretstream_xchacha20poly1305_rekey=qo.Rf)(Vo),ht._crypto_secretstream_xchacha20poly1305_push=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms)=>(ht._crypto_secretstream_xchacha20poly1305_push=qo.Sf)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms),ht._crypto_secretstream_xchacha20poly1305_pull=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms)=>(ht._crypto_secretstream_xchacha20poly1305_pull=qo.Tf)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms),ht._crypto_secretstream_xchacha20poly1305_statebytes=()=>(ht._crypto_secretstream_xchacha20poly1305_statebytes=qo.Uf)(),ht._crypto_secretstream_xchacha20poly1305_abytes=()=>(ht._crypto_secretstream_xchacha20poly1305_abytes=qo.Vf)(),ht._crypto_secretstream_xchacha20poly1305_headerbytes=()=>(ht._crypto_secretstream_xchacha20poly1305_headerbytes=qo.Wf)(),ht._crypto_secretstream_xchacha20poly1305_keybytes=()=>(ht._crypto_secretstream_xchacha20poly1305_keybytes=qo.Xf)(),ht._crypto_secretstream_xchacha20poly1305_messagebytes_max=()=>(ht._crypto_secretstream_xchacha20poly1305_messagebytes_max=qo.Yf)(),ht._crypto_secretstream_xchacha20poly1305_tag_message=()=>(ht._crypto_secretstream_xchacha20poly1305_tag_message=qo.Zf)(),ht._crypto_secretstream_xchacha20poly1305_tag_push=()=>(ht._crypto_secretstream_xchacha20poly1305_tag_push=qo._f)(),ht._crypto_secretstream_xchacha20poly1305_tag_rekey=()=>(ht._crypto_secretstream_xchacha20poly1305_tag_rekey=qo.$f)(),ht._crypto_secretstream_xchacha20poly1305_tag_final=()=>(ht._crypto_secretstream_xchacha20poly1305_tag_final=qo.ag)(),ht._crypto_shorthash_bytes=()=>(ht._crypto_shorthash_bytes=qo.bg)(),ht._crypto_shorthash_keybytes=()=>(ht._crypto_shorthash_keybytes=qo.cg)(),ht._crypto_shorthash_primitive=()=>(ht._crypto_shorthash_primitive=qo.dg)(),ht._crypto_shorthash=(Vo,zo,$n,Tn,ko)=>(ht._crypto_shorthash=qo.eg)(Vo,zo,$n,Tn,ko),ht._crypto_shorthash_keygen=Vo=>(ht._crypto_shorthash_keygen=qo.fg)(Vo),ht._crypto_shorthash_siphash24_bytes=()=>(ht._crypto_shorthash_siphash24_bytes=qo.gg)(),ht._crypto_shorthash_siphash24_keybytes=()=>(ht._crypto_shorthash_siphash24_keybytes=qo.hg)(),ht._crypto_shorthash_siphash24=(Vo,zo,$n,Tn,ko)=>(ht._crypto_shorthash_siphash24=qo.ig)(Vo,zo,$n,Tn,ko),ht._crypto_sign_statebytes=()=>(ht._crypto_sign_statebytes=qo.jg)(),ht._crypto_sign_bytes=()=>(ht._crypto_sign_bytes=qo.kg)(),ht._crypto_sign_seedbytes=()=>(ht._crypto_sign_seedbytes=qo.lg)(),ht._crypto_sign_publickeybytes=()=>(ht._crypto_sign_publickeybytes=qo.mg)(),ht._crypto_sign_secretkeybytes=()=>(ht._crypto_sign_secretkeybytes=qo.ng)(),ht._crypto_sign_messagebytes_max=()=>(ht._crypto_sign_messagebytes_max=qo.og)(),ht._crypto_sign_primitive=()=>(ht._crypto_sign_primitive=qo.pg)(),ht._crypto_sign_seed_keypair=(Vo,zo,$n)=>(ht._crypto_sign_seed_keypair=qo.qg)(Vo,zo,$n),ht._crypto_sign_keypair=(Vo,zo)=>(ht._crypto_sign_keypair=qo.rg)(Vo,zo),ht._crypto_sign=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_sign=qo.sg)(Vo,zo,$n,Tn,ko,es),ht._crypto_sign_open=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_sign_open=qo.tg)(Vo,zo,$n,Tn,ko,es),ht._crypto_sign_detached=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_sign_detached=qo.ug)(Vo,zo,$n,Tn,ko,es),ht._crypto_sign_verify_detached=(Vo,zo,$n,Tn,ko)=>(ht._crypto_sign_verify_detached=qo.vg)(Vo,zo,$n,Tn,ko),ht._crypto_sign_init=Vo=>(ht._crypto_sign_init=qo.wg)(Vo),ht._crypto_sign_update=(Vo,zo,$n,Tn)=>(ht._crypto_sign_update=qo.xg)(Vo,zo,$n,Tn),ht._crypto_sign_final_create=(Vo,zo,$n,Tn)=>(ht._crypto_sign_final_create=qo.yg)(Vo,zo,$n,Tn),ht._crypto_sign_final_verify=(Vo,zo,$n)=>(ht._crypto_sign_final_verify=qo.zg)(Vo,zo,$n),ht._crypto_sign_ed25519ph_statebytes=()=>(ht._crypto_sign_ed25519ph_statebytes=qo.Ag)(),ht._crypto_sign_ed25519_bytes=()=>(ht._crypto_sign_ed25519_bytes=qo.Bg)(),ht._crypto_sign_ed25519_seedbytes=()=>(ht._crypto_sign_ed25519_seedbytes=qo.Cg)(),ht._crypto_sign_ed25519_publickeybytes=()=>(ht._crypto_sign_ed25519_publickeybytes=qo.Dg)(),ht._crypto_sign_ed25519_secretkeybytes=()=>(ht._crypto_sign_ed25519_secretkeybytes=qo.Eg)(),ht._crypto_sign_ed25519_messagebytes_max=()=>(ht._crypto_sign_ed25519_messagebytes_max=qo.Fg)(),ht._crypto_sign_ed25519_sk_to_seed=(Vo,zo)=>(ht._crypto_sign_ed25519_sk_to_seed=qo.Gg)(Vo,zo),ht._crypto_sign_ed25519_sk_to_pk=(Vo,zo)=>(ht._crypto_sign_ed25519_sk_to_pk=qo.Hg)(Vo,zo),ht._crypto_sign_ed25519ph_init=Vo=>(ht._crypto_sign_ed25519ph_init=qo.Ig)(Vo),ht._crypto_sign_ed25519ph_update=(Vo,zo,$n,Tn)=>(ht._crypto_sign_ed25519ph_update=qo.Jg)(Vo,zo,$n,Tn),ht._crypto_sign_ed25519ph_final_create=(Vo,zo,$n,Tn)=>(ht._crypto_sign_ed25519ph_final_create=qo.Kg)(Vo,zo,$n,Tn),ht._crypto_sign_ed25519ph_final_verify=(Vo,zo,$n)=>(ht._crypto_sign_ed25519ph_final_verify=qo.Lg)(Vo,zo,$n),ht._crypto_sign_ed25519_seed_keypair=(Vo,zo,$n)=>(ht._crypto_sign_ed25519_seed_keypair=qo.Mg)(Vo,zo,$n),ht._crypto_sign_ed25519_keypair=(Vo,zo)=>(ht._crypto_sign_ed25519_keypair=qo.Ng)(Vo,zo),ht._crypto_sign_ed25519_pk_to_curve25519=(Vo,zo)=>(ht._crypto_sign_ed25519_pk_to_curve25519=qo.Og)(Vo,zo),ht._crypto_sign_ed25519_sk_to_curve25519=(Vo,zo)=>(ht._crypto_sign_ed25519_sk_to_curve25519=qo.Pg)(Vo,zo),ht._crypto_sign_ed25519_verify_detached=(Vo,zo,$n,Tn,ko)=>(ht._crypto_sign_ed25519_verify_detached=qo.Qg)(Vo,zo,$n,Tn,ko),ht._crypto_sign_ed25519_open=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_sign_ed25519_open=qo.Rg)(Vo,zo,$n,Tn,ko,es),ht._crypto_sign_ed25519_detached=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_sign_ed25519_detached=qo.Sg)(Vo,zo,$n,Tn,ko,es),ht._crypto_sign_ed25519=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_sign_ed25519=qo.Tg)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_chacha20_keybytes=()=>(ht._crypto_stream_chacha20_keybytes=qo.Ug)(),ht._crypto_stream_chacha20_noncebytes=()=>(ht._crypto_stream_chacha20_noncebytes=qo.Vg)(),ht._crypto_stream_chacha20_messagebytes_max=()=>(ht._crypto_stream_chacha20_messagebytes_max=qo.Wg)(),ht._crypto_stream_chacha20_ietf_keybytes=()=>(ht._crypto_stream_chacha20_ietf_keybytes=qo.Xg)(),ht._crypto_stream_chacha20_ietf_noncebytes=()=>(ht._crypto_stream_chacha20_ietf_noncebytes=qo.Yg)(),ht._crypto_stream_chacha20_ietf_messagebytes_max=()=>(ht._crypto_stream_chacha20_ietf_messagebytes_max=qo.Zg)(),ht._crypto_stream_chacha20=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream_chacha20=qo._g)(Vo,zo,$n,Tn,ko),ht._crypto_stream_chacha20_xor_ic=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_stream_chacha20_xor_ic=qo.$g)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_stream_chacha20_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_chacha20_xor=qo.ah)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_chacha20_ietf=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream_chacha20_ietf=qo.bh)(Vo,zo,$n,Tn,ko),ht._crypto_stream_chacha20_ietf_xor_ic=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_stream_chacha20_ietf_xor_ic=qo.ch)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_stream_chacha20_ietf_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_chacha20_ietf_xor=qo.dh)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_chacha20_ietf_keygen=Vo=>(ht._crypto_stream_chacha20_ietf_keygen=qo.eh)(Vo),ht._crypto_stream_chacha20_keygen=Vo=>(ht._crypto_stream_chacha20_keygen=qo.fh)(Vo),ht._crypto_stream_keybytes=()=>(ht._crypto_stream_keybytes=qo.gh)(),ht._crypto_stream_noncebytes=()=>(ht._crypto_stream_noncebytes=qo.hh)(),ht._crypto_stream_messagebytes_max=()=>(ht._crypto_stream_messagebytes_max=qo.ih)(),ht._crypto_stream_primitive=()=>(ht._crypto_stream_primitive=qo.jh)(),ht._crypto_stream=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream=qo.kh)(Vo,zo,$n,Tn,ko),ht._crypto_stream_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_xor=qo.lh)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_keygen=Vo=>(ht._crypto_stream_keygen=qo.mh)(Vo),ht._crypto_stream_salsa20_keybytes=()=>(ht._crypto_stream_salsa20_keybytes=qo.nh)(),ht._crypto_stream_salsa20_noncebytes=()=>(ht._crypto_stream_salsa20_noncebytes=qo.oh)(),ht._crypto_stream_salsa20_messagebytes_max=()=>(ht._crypto_stream_salsa20_messagebytes_max=qo.ph)(),ht._crypto_stream_salsa20=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream_salsa20=qo.qh)(Vo,zo,$n,Tn,ko),ht._crypto_stream_salsa20_xor_ic=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_stream_salsa20_xor_ic=qo.rh)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_stream_salsa20_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_salsa20_xor=qo.sh)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_salsa20_keygen=Vo=>(ht._crypto_stream_salsa20_keygen=qo.th)(Vo),ht._crypto_stream_xsalsa20=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream_xsalsa20=qo.uh)(Vo,zo,$n,Tn,ko),ht._crypto_stream_xsalsa20_xor_ic=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_stream_xsalsa20_xor_ic=qo.vh)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_stream_xsalsa20_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_xsalsa20_xor=qo.wh)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_xsalsa20_keybytes=()=>(ht._crypto_stream_xsalsa20_keybytes=qo.xh)(),ht._crypto_stream_xsalsa20_noncebytes=()=>(ht._crypto_stream_xsalsa20_noncebytes=qo.yh)(),ht._crypto_stream_xsalsa20_messagebytes_max=()=>(ht._crypto_stream_xsalsa20_messagebytes_max=qo.zh)(),ht._crypto_stream_xsalsa20_keygen=Vo=>(ht._crypto_stream_xsalsa20_keygen=qo.Ah)(Vo),ht._crypto_verify_16_bytes=()=>(ht._crypto_verify_16_bytes=qo.Bh)(),ht._crypto_verify_32_bytes=()=>(ht._crypto_verify_32_bytes=qo.Ch)(),ht._crypto_verify_64_bytes=()=>(ht._crypto_verify_64_bytes=qo.Dh)(),ht._crypto_verify_16=(Vo,zo)=>(ht._crypto_verify_16=qo.Eh)(Vo,zo),ht._crypto_verify_32=(Vo,zo)=>(ht._crypto_verify_32=qo.Fh)(Vo,zo),ht._crypto_verify_64=(Vo,zo)=>(ht._crypto_verify_64=qo.Gh)(Vo,zo),ht._randombytes_implementation_name=()=>(ht._randombytes_implementation_name=qo.Hh)(),ht._randombytes_random=()=>(ht._randombytes_random=qo.Ih)(),ht._randombytes_stir=()=>(ht._randombytes_stir=qo.Jh)(),ht._randombytes_uniform=Vo=>(ht._randombytes_uniform=qo.Kh)(Vo),ht._randombytes_buf=(Vo,zo)=>(ht._randombytes_buf=qo.Lh)(Vo,zo),ht._randombytes_buf_deterministic=(Vo,zo,$n)=>(ht._randombytes_buf_deterministic=qo.Mh)(Vo,zo,$n),ht._randombytes_seedbytes=()=>(ht._randombytes_seedbytes=qo.Nh)(),ht._randombytes_close=()=>(ht._randombytes_close=qo.Oh)(),ht._randombytes=(Vo,zo,$n)=>(ht._randombytes=qo.Ph)(Vo,zo,$n),ht._sodium_bin2hex=(Vo,zo,$n,Tn)=>(ht._sodium_bin2hex=qo.Qh)(Vo,zo,$n,Tn),ht._sodium_hex2bin=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._sodium_hex2bin=qo.Rh)(Vo,zo,$n,Tn,ko,es,fs),ht._sodium_base64_encoded_len=(Vo,zo)=>(ht._sodium_base64_encoded_len=qo.Sh)(Vo,zo),ht._sodium_bin2base64=(Vo,zo,$n,Tn,ko)=>(ht._sodium_bin2base64=qo.Th)(Vo,zo,$n,Tn,ko),ht._sodium_base642bin=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._sodium_base642bin=qo.Uh)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._sodium_init=()=>(ht._sodium_init=qo.Vh)(),ht._sodium_pad=(Vo,zo,$n,Tn,ko)=>(ht._sodium_pad=qo.Wh)(Vo,zo,$n,Tn,ko),ht._sodium_unpad=(Vo,zo,$n,Tn)=>(ht._sodium_unpad=qo.Xh)(Vo,zo,$n,Tn),ht._sodium_version_string=()=>(ht._sodium_version_string=qo.Yh)(),ht._sodium_library_version_major=()=>(ht._sodium_library_version_major=qo.Zh)(),ht._sodium_library_version_minor=()=>(ht._sodium_library_version_minor=qo._h)(),ht._sodium_library_minimal=()=>(ht._sodium_library_minimal=qo.$h)(),ht._crypto_box_curve25519xchacha20poly1305_seed_keypair=(Vo,zo,$n)=>(ht._crypto_box_curve25519xchacha20poly1305_seed_keypair=qo.ai)(Vo,zo,$n),ht._crypto_box_curve25519xchacha20poly1305_keypair=(Vo,zo)=>(ht._crypto_box_curve25519xchacha20poly1305_keypair=qo.bi)(Vo,zo),ht._crypto_box_curve25519xchacha20poly1305_beforenm=(Vo,zo,$n)=>(ht._crypto_box_curve25519xchacha20poly1305_beforenm=qo.ci)(Vo,zo,$n),ht._crypto_box_curve25519xchacha20poly1305_detached_afternm=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_curve25519xchacha20poly1305_detached_afternm=qo.di)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_curve25519xchacha20poly1305_detached=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_box_curve25519xchacha20poly1305_detached=qo.ei)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_box_curve25519xchacha20poly1305_easy_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_curve25519xchacha20poly1305_easy_afternm=qo.fi)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_curve25519xchacha20poly1305_easy=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_curve25519xchacha20poly1305_easy=qo.gi)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_curve25519xchacha20poly1305_open_detached_afternm=qo.hi)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_curve25519xchacha20poly1305_open_detached=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_box_curve25519xchacha20poly1305_open_detached=qo.ii)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_curve25519xchacha20poly1305_open_easy_afternm=qo.ji)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_curve25519xchacha20poly1305_open_easy=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_box_curve25519xchacha20poly1305_open_easy=qo.ki)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_box_curve25519xchacha20poly1305_seedbytes=()=>(ht._crypto_box_curve25519xchacha20poly1305_seedbytes=qo.li)(),ht._crypto_box_curve25519xchacha20poly1305_publickeybytes=()=>(ht._crypto_box_curve25519xchacha20poly1305_publickeybytes=qo.mi)(),ht._crypto_box_curve25519xchacha20poly1305_secretkeybytes=()=>(ht._crypto_box_curve25519xchacha20poly1305_secretkeybytes=qo.ni)(),ht._crypto_box_curve25519xchacha20poly1305_beforenmbytes=()=>(ht._crypto_box_curve25519xchacha20poly1305_beforenmbytes=qo.oi)(),ht._crypto_box_curve25519xchacha20poly1305_noncebytes=()=>(ht._crypto_box_curve25519xchacha20poly1305_noncebytes=qo.pi)(),ht._crypto_box_curve25519xchacha20poly1305_macbytes=()=>(ht._crypto_box_curve25519xchacha20poly1305_macbytes=qo.qi)(),ht._crypto_box_curve25519xchacha20poly1305_messagebytes_max=()=>(ht._crypto_box_curve25519xchacha20poly1305_messagebytes_max=qo.ri)(),ht._crypto_box_curve25519xchacha20poly1305_seal=(Vo,zo,$n,Tn,ko)=>(ht._crypto_box_curve25519xchacha20poly1305_seal=qo.si)(Vo,zo,$n,Tn,ko),ht._crypto_box_curve25519xchacha20poly1305_seal_open=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_box_curve25519xchacha20poly1305_seal_open=qo.ti)(Vo,zo,$n,Tn,ko,es),ht._crypto_box_curve25519xchacha20poly1305_sealbytes=()=>(ht._crypto_box_curve25519xchacha20poly1305_sealbytes=qo.ui)(),ht._crypto_core_ed25519_is_valid_point=Vo=>(ht._crypto_core_ed25519_is_valid_point=qo.vi)(Vo),ht._crypto_core_ed25519_add=(Vo,zo,$n)=>(ht._crypto_core_ed25519_add=qo.wi)(Vo,zo,$n),ht._crypto_core_ed25519_sub=(Vo,zo,$n)=>(ht._crypto_core_ed25519_sub=qo.xi)(Vo,zo,$n),ht._crypto_core_ed25519_from_uniform=(Vo,zo)=>(ht._crypto_core_ed25519_from_uniform=qo.yi)(Vo,zo),ht._crypto_core_ed25519_random=Vo=>(ht._crypto_core_ed25519_random=qo.zi)(Vo),ht._crypto_core_ed25519_scalar_random=Vo=>(ht._crypto_core_ed25519_scalar_random=qo.Ai)(Vo),ht._crypto_core_ed25519_scalar_invert=(Vo,zo)=>(ht._crypto_core_ed25519_scalar_invert=qo.Bi)(Vo,zo),ht._crypto_core_ed25519_scalar_negate=(Vo,zo)=>(ht._crypto_core_ed25519_scalar_negate=qo.Ci)(Vo,zo),ht._crypto_core_ed25519_scalar_complement=(Vo,zo)=>(ht._crypto_core_ed25519_scalar_complement=qo.Di)(Vo,zo),ht._crypto_core_ed25519_scalar_add=(Vo,zo,$n)=>(ht._crypto_core_ed25519_scalar_add=qo.Ei)(Vo,zo,$n),ht._crypto_core_ed25519_scalar_reduce=(Vo,zo)=>(ht._crypto_core_ed25519_scalar_reduce=qo.Fi)(Vo,zo),ht._crypto_core_ed25519_scalar_sub=(Vo,zo,$n)=>(ht._crypto_core_ed25519_scalar_sub=qo.Gi)(Vo,zo,$n),ht._crypto_core_ed25519_scalar_mul=(Vo,zo,$n)=>(ht._crypto_core_ed25519_scalar_mul=qo.Hi)(Vo,zo,$n),ht._crypto_core_ed25519_bytes=()=>(ht._crypto_core_ed25519_bytes=qo.Ii)(),ht._crypto_core_ed25519_nonreducedscalarbytes=()=>(ht._crypto_core_ed25519_nonreducedscalarbytes=qo.Ji)(),ht._crypto_core_ed25519_uniformbytes=()=>(ht._crypto_core_ed25519_uniformbytes=qo.Ki)(),ht._crypto_core_ed25519_hashbytes=()=>(ht._crypto_core_ed25519_hashbytes=qo.Li)(),ht._crypto_core_ed25519_scalarbytes=()=>(ht._crypto_core_ed25519_scalarbytes=qo.Mi)(),ht._crypto_core_ristretto255_is_valid_point=Vo=>(ht._crypto_core_ristretto255_is_valid_point=qo.Ni)(Vo),ht._crypto_core_ristretto255_add=(Vo,zo,$n)=>(ht._crypto_core_ristretto255_add=qo.Oi)(Vo,zo,$n),ht._crypto_core_ristretto255_sub=(Vo,zo,$n)=>(ht._crypto_core_ristretto255_sub=qo.Pi)(Vo,zo,$n),ht._crypto_core_ristretto255_from_hash=(Vo,zo)=>(ht._crypto_core_ristretto255_from_hash=qo.Qi)(Vo,zo),ht._crypto_core_ristretto255_random=Vo=>(ht._crypto_core_ristretto255_random=qo.Ri)(Vo),ht._crypto_core_ristretto255_scalar_random=Vo=>(ht._crypto_core_ristretto255_scalar_random=qo.Si)(Vo),ht._crypto_core_ristretto255_scalar_invert=(Vo,zo)=>(ht._crypto_core_ristretto255_scalar_invert=qo.Ti)(Vo,zo),ht._crypto_core_ristretto255_scalar_negate=(Vo,zo)=>(ht._crypto_core_ristretto255_scalar_negate=qo.Ui)(Vo,zo),ht._crypto_core_ristretto255_scalar_complement=(Vo,zo)=>(ht._crypto_core_ristretto255_scalar_complement=qo.Vi)(Vo,zo),ht._crypto_core_ristretto255_scalar_add=(Vo,zo,$n)=>(ht._crypto_core_ristretto255_scalar_add=qo.Wi)(Vo,zo,$n),ht._crypto_core_ristretto255_scalar_sub=(Vo,zo,$n)=>(ht._crypto_core_ristretto255_scalar_sub=qo.Xi)(Vo,zo,$n),ht._crypto_core_ristretto255_scalar_mul=(Vo,zo,$n)=>(ht._crypto_core_ristretto255_scalar_mul=qo.Yi)(Vo,zo,$n),ht._crypto_core_ristretto255_scalar_reduce=(Vo,zo)=>(ht._crypto_core_ristretto255_scalar_reduce=qo.Zi)(Vo,zo),ht._crypto_core_ristretto255_bytes=()=>(ht._crypto_core_ristretto255_bytes=qo._i)(),ht._crypto_core_ristretto255_nonreducedscalarbytes=()=>(ht._crypto_core_ristretto255_nonreducedscalarbytes=qo.$i)(),ht._crypto_core_ristretto255_hashbytes=()=>(ht._crypto_core_ristretto255_hashbytes=qo.aj)(),ht._crypto_core_ristretto255_scalarbytes=()=>(ht._crypto_core_ristretto255_scalarbytes=qo.bj)(),ht._crypto_pwhash_scryptsalsa208sha256_ll=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms)=>(ht._crypto_pwhash_scryptsalsa208sha256_ll=qo.cj)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms),ht._crypto_pwhash_scryptsalsa208sha256_bytes_min=()=>(ht._crypto_pwhash_scryptsalsa208sha256_bytes_min=qo.dj)(),ht._crypto_pwhash_scryptsalsa208sha256_bytes_max=()=>(ht._crypto_pwhash_scryptsalsa208sha256_bytes_max=qo.ej)(),ht._crypto_pwhash_scryptsalsa208sha256_passwd_min=()=>(ht._crypto_pwhash_scryptsalsa208sha256_passwd_min=qo.fj)(),ht._crypto_pwhash_scryptsalsa208sha256_passwd_max=()=>(ht._crypto_pwhash_scryptsalsa208sha256_passwd_max=qo.gj)(),ht._crypto_pwhash_scryptsalsa208sha256_saltbytes=()=>(ht._crypto_pwhash_scryptsalsa208sha256_saltbytes=qo.hj)(),ht._crypto_pwhash_scryptsalsa208sha256_strbytes=()=>(ht._crypto_pwhash_scryptsalsa208sha256_strbytes=qo.ij)(),ht._crypto_pwhash_scryptsalsa208sha256_strprefix=()=>(ht._crypto_pwhash_scryptsalsa208sha256_strprefix=qo.jj)(),ht._crypto_pwhash_scryptsalsa208sha256_opslimit_min=()=>(ht._crypto_pwhash_scryptsalsa208sha256_opslimit_min=qo.kj)(),ht._crypto_pwhash_scryptsalsa208sha256_opslimit_max=()=>(ht._crypto_pwhash_scryptsalsa208sha256_opslimit_max=qo.lj)(),ht._crypto_pwhash_scryptsalsa208sha256_memlimit_min=()=>(ht._crypto_pwhash_scryptsalsa208sha256_memlimit_min=qo.mj)(),ht._crypto_pwhash_scryptsalsa208sha256_memlimit_max=()=>(ht._crypto_pwhash_scryptsalsa208sha256_memlimit_max=qo.nj)(),ht._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=()=>(ht._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive=qo.oj)(),ht._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=()=>(ht._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive=qo.pj)(),ht._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=()=>(ht._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive=qo.qj)(),ht._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=()=>(ht._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive=qo.rj)(),ht._crypto_pwhash_scryptsalsa208sha256=(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms)=>(ht._crypto_pwhash_scryptsalsa208sha256=qo.sj)(Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms),ht._crypto_pwhash_scryptsalsa208sha256_str=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_pwhash_scryptsalsa208sha256_str=qo.tj)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_pwhash_scryptsalsa208sha256_str_verify=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_scryptsalsa208sha256_str_verify=qo.uj)(Vo,zo,$n,Tn),ht._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=(Vo,zo,$n,Tn)=>(ht._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash=qo.vj)(Vo,zo,$n,Tn),ht._crypto_scalarmult_ed25519=(Vo,zo,$n)=>(ht._crypto_scalarmult_ed25519=qo.wj)(Vo,zo,$n),ht._crypto_scalarmult_ed25519_noclamp=(Vo,zo,$n)=>(ht._crypto_scalarmult_ed25519_noclamp=qo.xj)(Vo,zo,$n),ht._crypto_scalarmult_ed25519_base=(Vo,zo)=>(ht._crypto_scalarmult_ed25519_base=qo.yj)(Vo,zo),ht._crypto_scalarmult_ed25519_base_noclamp=(Vo,zo)=>(ht._crypto_scalarmult_ed25519_base_noclamp=qo.zj)(Vo,zo),ht._crypto_scalarmult_ed25519_bytes=()=>(ht._crypto_scalarmult_ed25519_bytes=qo.Aj)(),ht._crypto_scalarmult_ed25519_scalarbytes=()=>(ht._crypto_scalarmult_ed25519_scalarbytes=qo.Bj)(),ht._crypto_scalarmult_ristretto255=(Vo,zo,$n)=>(ht._crypto_scalarmult_ristretto255=qo.Cj)(Vo,zo,$n),ht._crypto_scalarmult_ristretto255_base=(Vo,zo)=>(ht._crypto_scalarmult_ristretto255_base=qo.Dj)(Vo,zo),ht._crypto_scalarmult_ristretto255_bytes=()=>(ht._crypto_scalarmult_ristretto255_bytes=qo.Ej)(),ht._crypto_scalarmult_ristretto255_scalarbytes=()=>(ht._crypto_scalarmult_ristretto255_scalarbytes=qo.Fj)(),ht._crypto_secretbox_xchacha20poly1305_detached=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_secretbox_xchacha20poly1305_detached=qo.Gj)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_secretbox_xchacha20poly1305_easy=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox_xchacha20poly1305_easy=qo.Hj)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_xchacha20poly1305_open_detached=(Vo,zo,$n,Tn,ko,es,fs)=>(ht._crypto_secretbox_xchacha20poly1305_open_detached=qo.Ij)(Vo,zo,$n,Tn,ko,es,fs),ht._crypto_secretbox_xchacha20poly1305_open_easy=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_secretbox_xchacha20poly1305_open_easy=qo.Jj)(Vo,zo,$n,Tn,ko,es),ht._crypto_secretbox_xchacha20poly1305_keybytes=()=>(ht._crypto_secretbox_xchacha20poly1305_keybytes=qo.Kj)(),ht._crypto_secretbox_xchacha20poly1305_noncebytes=()=>(ht._crypto_secretbox_xchacha20poly1305_noncebytes=qo.Lj)(),ht._crypto_secretbox_xchacha20poly1305_macbytes=()=>(ht._crypto_secretbox_xchacha20poly1305_macbytes=qo.Mj)(),ht._crypto_secretbox_xchacha20poly1305_messagebytes_max=()=>(ht._crypto_secretbox_xchacha20poly1305_messagebytes_max=qo.Nj)(),ht._crypto_shorthash_siphashx24_bytes=()=>(ht._crypto_shorthash_siphashx24_bytes=qo.Oj)(),ht._crypto_shorthash_siphashx24_keybytes=()=>(ht._crypto_shorthash_siphashx24_keybytes=qo.Pj)(),ht._crypto_shorthash_siphashx24=(Vo,zo,$n,Tn,ko)=>(ht._crypto_shorthash_siphashx24=qo.Qj)(Vo,zo,$n,Tn,ko),ht._crypto_stream_salsa2012=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream_salsa2012=qo.Rj)(Vo,zo,$n,Tn,ko),ht._crypto_stream_salsa2012_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_salsa2012_xor=qo.Sj)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_salsa2012_keybytes=()=>(ht._crypto_stream_salsa2012_keybytes=qo.Tj)(),ht._crypto_stream_salsa2012_noncebytes=()=>(ht._crypto_stream_salsa2012_noncebytes=qo.Uj)(),ht._crypto_stream_salsa2012_messagebytes_max=()=>(ht._crypto_stream_salsa2012_messagebytes_max=qo.Vj)(),ht._crypto_stream_salsa2012_keygen=Vo=>(ht._crypto_stream_salsa2012_keygen=qo.Wj)(Vo),ht._crypto_stream_salsa208=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream_salsa208=qo.Xj)(Vo,zo,$n,Tn,ko),ht._crypto_stream_salsa208_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_salsa208_xor=qo.Yj)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_salsa208_keybytes=()=>(ht._crypto_stream_salsa208_keybytes=qo.Zj)(),ht._crypto_stream_salsa208_noncebytes=()=>(ht._crypto_stream_salsa208_noncebytes=qo._j)(),ht._crypto_stream_salsa208_messagebytes_max=()=>(ht._crypto_stream_salsa208_messagebytes_max=qo.$j)(),ht._crypto_stream_salsa208_keygen=Vo=>(ht._crypto_stream_salsa208_keygen=qo.ak)(Vo),ht._crypto_stream_xchacha20_keybytes=()=>(ht._crypto_stream_xchacha20_keybytes=qo.bk)(),ht._crypto_stream_xchacha20_noncebytes=()=>(ht._crypto_stream_xchacha20_noncebytes=qo.ck)(),ht._crypto_stream_xchacha20_messagebytes_max=()=>(ht._crypto_stream_xchacha20_messagebytes_max=qo.dk)(),ht._crypto_stream_xchacha20=(Vo,zo,$n,Tn,ko)=>(ht._crypto_stream_xchacha20=qo.ek)(Vo,zo,$n,Tn,ko),ht._crypto_stream_xchacha20_xor_ic=(Vo,zo,$n,Tn,ko,es,fs,Es)=>(ht._crypto_stream_xchacha20_xor_ic=qo.fk)(Vo,zo,$n,Tn,ko,es,fs,Es),ht._crypto_stream_xchacha20_xor=(Vo,zo,$n,Tn,ko,es)=>(ht._crypto_stream_xchacha20_xor=qo.gk)(Vo,zo,$n,Tn,ko,es),ht._crypto_stream_xchacha20_keygen=Vo=>(ht._crypto_stream_xchacha20_keygen=qo.hk)(Vo),ht._malloc=Vo=>(ht._malloc=qo.ik)(Vo),ht._free=Vo=>(ht._free=qo.jk)(Vo),ht.setValue=function(Vo,zo,$n="i8"){switch($n.endsWith("*")&&($n="*"),$n){case"i1":case"i8":oo[Vo>>0]=zo;break;case"i16":pt[Vo>>1]=zo;break;case"i32":lo[Vo>>2]=zo;break;case"i64":Tt("to do setValue(i64) use WASM_BIGINT");case"float":wo[Vo>>2]=zo;break;case"double":xt[Vo>>3]=zo;break;case"*":so[Vo>>2]=zo;break;default:Tt(`invalid type for setValue: ${$n}`)}},ht.getValue=function(Vo,zo="i8"){switch(zo.endsWith("*")&&(zo="*"),zo){case"i1":case"i8":return oo[Vo>>0];case"i16":return pt[Vo>>1];case"i32":return lo[Vo>>2];case"i64":Tt("to do getValue(i64) use WASM_BIGINT");case"float":return wo[Vo>>2];case"double":return xt[Vo>>3];case"*":return so[Vo>>2];default:Tt(`invalid type for getValue: ${zo}`)}},ht.UTF8ToString=$s,So=function Vo(){Wo||Js(),Wo||(So=Vo)},ht.preInit)for(typeof ht.preInit=="function"&&(ht.preInit=[ht.preInit]);ht.preInit.length>0;)ht.preInit.pop()();Js()}).catch(function(){return st.useBackupModule()}),tt}typeof cr.nodeName!="string"?Cr(cr):gr.libsodium=Cr(gr.libsodium_mod||(gr.commonJsStrict={}))})(commonjsGlobal)}(libsodiumSumo,libsodiumSumo.exports)),libsodiumSumo.exports}(function(_e){(function(cr){function gr(Vr,tt){var nt,st="uint8array",dt=tt.ready.then(function(){function jo(){if(nt._sodium_init()!==0)throw new Error("libsodium was not correctly initialized.");for(var Cn=["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"],Dn=[lo,so,wo,xt,Mt,ho,io,co,mo,Bo,So,Tt,vo,Co,xo,Po,Wo,Yn,ba,_a,$s,vs,ss,Ts,qo,Js,Vo,zo,$n,Tn,ko,es,fs,Es,Us,ms,bs,ks,Ds,Fs,d0,v0,b0,R0,D0,zs,n0,fo,Qo,Ko,ps,Kn,gs,H0,j0,hs,Ss,Rs,e0,g0,E0,Vs,Bs,Gs,A0,y0,s0,P0,M0,O0,Sn,T0,An,Pn,Ln,qn,na,ls,Ns,Qs,p0,l0,S0,yl,Vt,br,lt,Sl,w0,Ql,Gl,uu,du,Lu,On,$u,Nu,Io,ju,AA,Ls,Wu,fu,Zu,gA,UA,LA,tu,pA,ns,jA,Xu,FA,HA,GA,JA,qA,YA,Un,_d,VA,eA,eu,zA,KA,Fu,rA,WA,ZA,XA,hA,_g,fA,$l,mA,yA,ep,rp,tp,Qu,bA,op,np,tA,IA,Hu,Zl,_l,oA,CA,Bu,vA,mu,Ol,Ou,ip,ap,yu,EA,au,_u,Ll,sp,lp,bu,up,ku,wA,dp,kA,Ap,Iu,Ru,xA,SA,gp,pp,Gu,Fl,hp,fp,mp],Wn=0;Wn=240?(rs=4,Dn=!0):us>=224?(rs=3,Dn=!0):us>=192?(rs=2,Dn=!0):us<128&&(rs=1,Dn=!0)}while(!Dn);for(var Cs=rs-(Cn.length-Wn),Ps=0;Ps>8&-39)<<8|87+(Ho=jo[Bn]>>>4)+(Ho-10>>8&-39),Jo+=String.fromCharCode(255&Lo)+String.fromCharCode(Lo>>>8);return Jo}var ht={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function po(jo){if(jo==null)return ht.URLSAFE_NO_PADDING;if(jo!==ht.ORIGINAL&&jo!==ht.ORIGINAL_NO_PADDING&&jo!==ht.URLSAFE&&jo!=ht.URLSAFE_NO_PADDING)throw new Error("unsupported base64 variant");return jo}function no(jo,Ho){Ho=po(Ho),jo=pt(Lo,jo,"input");var Mo,Lo=[],Jo=0|Math.floor(jo.length/3),Bn=jo.length-3*Jo,Cn=4*Jo+(Bn!==0?2&Ho?2+(Bn>>>1):4:0),Dn=new St(Cn+1),Wn=Ot(jo);return Lo.push(Wn),Lo.push(Dn.address),nt._sodium_bin2base64(Dn.address,Dn.length,Wn,jo.length,Ho)===0&&bo(Lo,"conversion failed"),Dn.length=Cn,Mo=qt(Dn.to_Uint8Array()),go(Lo),Mo}function Nt(jo,Ho){var Mo=Ho||st;if(!eo(Mo))throw new Error(Mo+" output format is not available");if(jo instanceof St){if(Mo==="uint8array")return jo.to_Uint8Array();if(Mo==="text")return qt(jo.to_Uint8Array());if(Mo==="hex")return ro(jo.to_Uint8Array());if(Mo==="base64")return no(jo.to_Uint8Array(),ht.URLSAFE_NO_PADDING);throw new Error('What is output format "'+Mo+'"?')}if(typeof jo=="object"){for(var Lo=Object.keys(jo),Jo={},Bn=0;Bn>>24>>>8,Cn,Wn);var Ps=Nt(us,Jo);return go(Bn),Ps}function ns(jo){var Ho=[];Wt(jo);var Mo=new St(0|nt._crypto_kdf_keybytes()),Lo=Mo.address;Ho.push(Lo),nt._crypto_kdf_keygen(Lo);var Jo=Nt(Mo,jo);return go(Ho),Jo}function jA(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo),jo=pt(Jo,jo,"clientPublicKey");var Bn,Cn=0|nt._crypto_kx_publickeybytes();jo.length!==Cn&&oo(Jo,"invalid clientPublicKey length"),Bn=Ot(jo),Jo.push(Bn),Ho=pt(Jo,Ho,"clientSecretKey");var Dn,Wn=0|nt._crypto_kx_secretkeybytes();Ho.length!==Wn&&oo(Jo,"invalid clientSecretKey length"),Dn=Ot(Ho),Jo.push(Dn),Mo=pt(Jo,Mo,"serverPublicKey");var rs,us=0|nt._crypto_kx_publickeybytes();Mo.length!==us&&oo(Jo,"invalid serverPublicKey length"),rs=Ot(Mo),Jo.push(rs);var Cs=new St(0|nt._crypto_kx_sessionkeybytes()),Ps=Cs.address;Jo.push(Ps);var Ys=new St(0|nt._crypto_kx_sessionkeybytes()),a0=Ys.address;if(Jo.push(a0),(0|nt._crypto_kx_client_session_keys(Ps,a0,Bn,Dn,rs))==0){var I0=Nt({sharedRx:Cs,sharedTx:Ys},Lo);return go(Jo),I0}bo(Jo,"invalid usage")}function Xu(jo){var Ho=[];Wt(jo);var Mo=new St(0|nt._crypto_kx_publickeybytes()),Lo=Mo.address;Ho.push(Lo);var Jo=new St(0|nt._crypto_kx_secretkeybytes()),Bn=Jo.address;if(Ho.push(Bn),(0|nt._crypto_kx_keypair(Lo,Bn))==0){var Cn={publicKey:Nt(Mo,jo),privateKey:Nt(Jo,jo),keyType:"x25519"};return go(Ho),Cn}bo(Ho,"internal error")}function FA(jo,Ho){var Mo=[];Wt(Ho),jo=pt(Mo,jo,"seed");var Lo,Jo=0|nt._crypto_kx_seedbytes();jo.length!==Jo&&oo(Mo,"invalid seed length"),Lo=Ot(jo),Mo.push(Lo);var Bn=new St(0|nt._crypto_kx_publickeybytes()),Cn=Bn.address;Mo.push(Cn);var Dn=new St(0|nt._crypto_kx_secretkeybytes()),Wn=Dn.address;if(Mo.push(Wn),(0|nt._crypto_kx_seed_keypair(Cn,Wn,Lo))==0){var rs={publicKey:Nt(Bn,Ho),privateKey:Nt(Dn,Ho),keyType:"x25519"};return go(Mo),rs}bo(Mo,"internal error")}function HA(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo),jo=pt(Jo,jo,"serverPublicKey");var Bn,Cn=0|nt._crypto_kx_publickeybytes();jo.length!==Cn&&oo(Jo,"invalid serverPublicKey length"),Bn=Ot(jo),Jo.push(Bn),Ho=pt(Jo,Ho,"serverSecretKey");var Dn,Wn=0|nt._crypto_kx_secretkeybytes();Ho.length!==Wn&&oo(Jo,"invalid serverSecretKey length"),Dn=Ot(Ho),Jo.push(Dn),Mo=pt(Jo,Mo,"clientPublicKey");var rs,us=0|nt._crypto_kx_publickeybytes();Mo.length!==us&&oo(Jo,"invalid clientPublicKey length"),rs=Ot(Mo),Jo.push(rs);var Cs=new St(0|nt._crypto_kx_sessionkeybytes()),Ps=Cs.address;Jo.push(Ps);var Ys=new St(0|nt._crypto_kx_sessionkeybytes()),a0=Ys.address;if(Jo.push(a0),(0|nt._crypto_kx_server_session_keys(Ps,a0,Bn,Dn,rs))==0){var I0=Nt({sharedRx:Cs,sharedTx:Ys},Lo);return go(Jo),I0}bo(Jo,"invalid usage")}function GA(jo,Ho,Mo){var Lo=[];Wt(Mo);var Jo=Ot(jo=pt(Lo,jo,"message")),Bn=jo.length;Lo.push(Jo),Ho=pt(Lo,Ho,"key");var Cn,Dn=0|nt._crypto_onetimeauth_keybytes();Ho.length!==Dn&&oo(Lo,"invalid key length"),Cn=Ot(Ho),Lo.push(Cn);var Wn=new St(0|nt._crypto_onetimeauth_bytes()),rs=Wn.address;if(Lo.push(rs),(0|nt._crypto_onetimeauth(rs,Jo,Bn,0,Cn))==0){var us=Nt(Wn,Mo);return go(Lo),us}bo(Lo,"invalid usage")}function JA(jo,Ho){var Mo=[];Wt(Ho),Ro(Mo,jo,"state_address");var Lo=new St(0|nt._crypto_onetimeauth_bytes()),Jo=Lo.address;if(Mo.push(Jo),(0|nt._crypto_onetimeauth_final(jo,Jo))==0){var Bn=(nt._free(jo),Nt(Lo,Ho));return go(Mo),Bn}bo(Mo,"invalid usage")}function qA(jo,Ho){var Mo=[];Wt(Ho);var Lo=null;jo!=null&&(Lo=Ot(jo=pt(Mo,jo,"key")),jo.length,Mo.push(Lo));var Jo=new St(144).address;if(!(0|nt._crypto_onetimeauth_init(Jo,Lo))){var Bn=Jo;return go(Mo),Bn}bo(Mo,"invalid usage")}function YA(jo){var Ho=[];Wt(jo);var Mo=new St(0|nt._crypto_onetimeauth_keybytes()),Lo=Mo.address;Ho.push(Lo),nt._crypto_onetimeauth_keygen(Lo);var Jo=Nt(Mo,jo);return go(Ho),Jo}function Un(jo,Ho,Mo){var Lo=[];Wt(Mo),Ro(Lo,jo,"state_address");var Jo=Ot(Ho=pt(Lo,Ho,"message_chunk")),Bn=Ho.length;Lo.push(Jo),0|nt._crypto_onetimeauth_update(jo,Jo,Bn)&&bo(Lo,"invalid usage"),go(Lo)}function _d(jo,Ho,Mo){var Lo=[];jo=pt(Lo,jo,"hash");var Jo,Bn=0|nt._crypto_onetimeauth_bytes();jo.length!==Bn&&oo(Lo,"invalid hash length"),Jo=Ot(jo),Lo.push(Jo);var Cn=Ot(Ho=pt(Lo,Ho,"message")),Dn=Ho.length;Lo.push(Cn),Mo=pt(Lo,Mo,"key");var Wn,rs=0|nt._crypto_onetimeauth_keybytes();Mo.length!==rs&&oo(Lo,"invalid key length"),Wn=Ot(Mo),Lo.push(Wn);var us=(0|nt._crypto_onetimeauth_verify(Jo,Cn,Dn,0,Wn))==0;return go(Lo),us}function VA(jo,Ho,Mo,Lo,Jo,Bn,Cn){var Dn=[];Wt(Cn),Ro(Dn,jo,"keyLength"),(typeof jo!="number"||(0|jo)!==jo||jo<0)&&oo(Dn,"keyLength must be an unsigned integer");var Wn=Ot(Ho=pt(Dn,Ho,"password")),rs=Ho.length;Dn.push(Wn),Mo=pt(Dn,Mo,"salt");var us,Cs=0|nt._crypto_pwhash_saltbytes();Mo.length!==Cs&&oo(Dn,"invalid salt length"),us=Ot(Mo),Dn.push(us),Ro(Dn,Lo,"opsLimit"),(typeof Lo!="number"||(0|Lo)!==Lo||Lo<0)&&oo(Dn,"opsLimit must be an unsigned integer"),Ro(Dn,Jo,"memLimit"),(typeof Jo!="number"||(0|Jo)!==Jo||Jo<0)&&oo(Dn,"memLimit must be an unsigned integer"),Ro(Dn,Bn,"algorithm"),(typeof Bn!="number"||(0|Bn)!==Bn||Bn<0)&&oo(Dn,"algorithm must be an unsigned integer");var Ps=new St(0|jo),Ys=Ps.address;if(Dn.push(Ys),(0|nt._crypto_pwhash(Ys,jo,0,Wn,rs,0,us,Lo,0,Jo,Bn))==0){var a0=Nt(Ps,Cn);return go(Dn),a0}bo(Dn,"invalid usage")}function eA(jo,Ho,Mo,Lo,Jo,Bn){var Cn=[];Wt(Bn),Ro(Cn,jo,"keyLength"),(typeof jo!="number"||(0|jo)!==jo||jo<0)&&oo(Cn,"keyLength must be an unsigned integer");var Dn=Ot(Ho=pt(Cn,Ho,"password")),Wn=Ho.length;Cn.push(Dn),Mo=pt(Cn,Mo,"salt");var rs,us=0|nt._crypto_pwhash_scryptsalsa208sha256_saltbytes();Mo.length!==us&&oo(Cn,"invalid salt length"),rs=Ot(Mo),Cn.push(rs),Ro(Cn,Lo,"opsLimit"),(typeof Lo!="number"||(0|Lo)!==Lo||Lo<0)&&oo(Cn,"opsLimit must be an unsigned integer"),Ro(Cn,Jo,"memLimit"),(typeof Jo!="number"||(0|Jo)!==Jo||Jo<0)&&oo(Cn,"memLimit must be an unsigned integer");var Cs=new St(0|jo),Ps=Cs.address;if(Cn.push(Ps),(0|nt._crypto_pwhash_scryptsalsa208sha256(Ps,jo,0,Dn,Wn,0,rs,Lo,0,Jo))==0){var Ys=Nt(Cs,Bn);return go(Cn),Ys}bo(Cn,"invalid usage")}function eu(jo,Ho,Mo,Lo,Jo,Bn,Cn){var Dn=[];Wt(Cn);var Wn=Ot(jo=pt(Dn,jo,"password")),rs=jo.length;Dn.push(Wn);var us=Ot(Ho=pt(Dn,Ho,"salt")),Cs=Ho.length;Dn.push(us),Ro(Dn,Mo,"opsLimit"),(typeof Mo!="number"||(0|Mo)!==Mo||Mo<0)&&oo(Dn,"opsLimit must be an unsigned integer"),Ro(Dn,Lo,"r"),(typeof Lo!="number"||(0|Lo)!==Lo||Lo<0)&&oo(Dn,"r must be an unsigned integer"),Ro(Dn,Jo,"p"),(typeof Jo!="number"||(0|Jo)!==Jo||Jo<0)&&oo(Dn,"p must be an unsigned integer"),Ro(Dn,Bn,"keyLength"),(typeof Bn!="number"||(0|Bn)!==Bn||Bn<0)&&oo(Dn,"keyLength must be an unsigned integer");var Ps=new St(0|Bn),Ys=Ps.address;if(Dn.push(Ys),(0|nt._crypto_pwhash_scryptsalsa208sha256_ll(Wn,rs,us,Cs,Mo,0,Lo,Jo,Ys,Bn))==0){var a0=Nt(Ps,Cn);return go(Dn),a0}bo(Dn,"invalid usage")}function zA(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo);var Bn=Ot(jo=pt(Jo,jo,"password")),Cn=jo.length;Jo.push(Bn),Ro(Jo,Ho,"opsLimit"),(typeof Ho!="number"||(0|Ho)!==Ho||Ho<0)&&oo(Jo,"opsLimit must be an unsigned integer"),Ro(Jo,Mo,"memLimit"),(typeof Mo!="number"||(0|Mo)!==Mo||Mo<0)&&oo(Jo,"memLimit must be an unsigned integer");var Dn=new St(0|nt._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(Jo.push(Dn),(0|nt._crypto_pwhash_scryptsalsa208sha256_str(Dn,Bn,Cn,0,Ho,0,Mo))==0){var Wn=nt.UTF8ToString(Dn);return go(Jo),Wn}bo(Jo,"invalid usage")}function KA(jo,Ho,Mo){var Lo=[];Wt(Mo),typeof jo!="string"&&oo(Lo,"hashed_password must be a string"),jo=kt(jo+"\0"),Bn!=null&&jo.length-1!==Bn&&oo(Lo,"invalid hashed_password length");var Jo=Ot(jo),Bn=jo.length-1;Lo.push(Jo);var Cn=Ot(Ho=pt(Lo,Ho,"password")),Dn=Ho.length;Lo.push(Cn);var Wn=(0|nt._crypto_pwhash_scryptsalsa208sha256_str_verify(Jo,Cn,Dn,0))==0;return go(Lo),Wn}function Fu(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo);var Bn=Ot(jo=pt(Jo,jo,"password")),Cn=jo.length;Jo.push(Bn),Ro(Jo,Ho,"opsLimit"),(typeof Ho!="number"||(0|Ho)!==Ho||Ho<0)&&oo(Jo,"opsLimit must be an unsigned integer"),Ro(Jo,Mo,"memLimit"),(typeof Mo!="number"||(0|Mo)!==Mo||Mo<0)&&oo(Jo,"memLimit must be an unsigned integer");var Dn=new St(0|nt._crypto_pwhash_strbytes()).address;if(Jo.push(Dn),(0|nt._crypto_pwhash_str(Dn,Bn,Cn,0,Ho,0,Mo))==0){var Wn=nt.UTF8ToString(Dn);return go(Jo),Wn}bo(Jo,"invalid usage")}function rA(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo),typeof jo!="string"&&oo(Jo,"hashed_password must be a string"),jo=kt(jo+"\0"),Cn!=null&&jo.length-1!==Cn&&oo(Jo,"invalid hashed_password length");var Bn=Ot(jo),Cn=jo.length-1;Jo.push(Bn),Ro(Jo,Ho,"opsLimit"),(typeof Ho!="number"||(0|Ho)!==Ho||Ho<0)&&oo(Jo,"opsLimit must be an unsigned integer"),Ro(Jo,Mo,"memLimit"),(typeof Mo!="number"||(0|Mo)!==Mo||Mo<0)&&oo(Jo,"memLimit must be an unsigned integer");var Dn=(0|nt._crypto_pwhash_str_needs_rehash(Bn,Ho,0,Mo))!=0;return go(Jo),Dn}function WA(jo,Ho,Mo){var Lo=[];Wt(Mo),typeof jo!="string"&&oo(Lo,"hashed_password must be a string"),jo=kt(jo+"\0"),Bn!=null&&jo.length-1!==Bn&&oo(Lo,"invalid hashed_password length");var Jo=Ot(jo),Bn=jo.length-1;Lo.push(Jo);var Cn=Ot(Ho=pt(Lo,Ho,"password")),Dn=Ho.length;Lo.push(Cn);var Wn=(0|nt._crypto_pwhash_str_verify(Jo,Cn,Dn,0))==0;return go(Lo),Wn}function ZA(jo,Ho,Mo){var Lo=[];Wt(Mo),jo=pt(Lo,jo,"privateKey");var Jo,Bn=0|nt._crypto_scalarmult_scalarbytes();jo.length!==Bn&&oo(Lo,"invalid privateKey length"),Jo=Ot(jo),Lo.push(Jo),Ho=pt(Lo,Ho,"publicKey");var Cn,Dn=0|nt._crypto_scalarmult_bytes();Ho.length!==Dn&&oo(Lo,"invalid publicKey length"),Cn=Ot(Ho),Lo.push(Cn);var Wn=new St(0|nt._crypto_scalarmult_bytes()),rs=Wn.address;if(Lo.push(rs),(0|nt._crypto_scalarmult(rs,Jo,Cn))==0){var us=Nt(Wn,Mo);return go(Lo),us}bo(Lo,"weak public key")}function XA(jo,Ho){var Mo=[];Wt(Ho),jo=pt(Mo,jo,"privateKey");var Lo,Jo=0|nt._crypto_scalarmult_scalarbytes();jo.length!==Jo&&oo(Mo,"invalid privateKey length"),Lo=Ot(jo),Mo.push(Lo);var Bn=new St(0|nt._crypto_scalarmult_bytes()),Cn=Bn.address;if(Mo.push(Cn),(0|nt._crypto_scalarmult_base(Cn,Lo))==0){var Dn=Nt(Bn,Ho);return go(Mo),Dn}bo(Mo,"unknown error")}function hA(jo,Ho,Mo){var Lo=[];Wt(Mo),jo=pt(Lo,jo,"n");var Jo,Bn=0|nt._crypto_scalarmult_ed25519_scalarbytes();jo.length!==Bn&&oo(Lo,"invalid n length"),Jo=Ot(jo),Lo.push(Jo),Ho=pt(Lo,Ho,"p");var Cn,Dn=0|nt._crypto_scalarmult_ed25519_bytes();Ho.length!==Dn&&oo(Lo,"invalid p length"),Cn=Ot(Ho),Lo.push(Cn);var Wn=new St(0|nt._crypto_scalarmult_ed25519_bytes()),rs=Wn.address;if(Lo.push(rs),(0|nt._crypto_scalarmult_ed25519(rs,Jo,Cn))==0){var us=Nt(Wn,Mo);return go(Lo),us}bo(Lo,"invalid point or scalar is 0")}function _g(jo,Ho){var Mo=[];Wt(Ho),jo=pt(Mo,jo,"scalar");var Lo,Jo=0|nt._crypto_scalarmult_ed25519_scalarbytes();jo.length!==Jo&&oo(Mo,"invalid scalar length"),Lo=Ot(jo),Mo.push(Lo);var Bn=new St(0|nt._crypto_scalarmult_ed25519_bytes()),Cn=Bn.address;if(Mo.push(Cn),(0|nt._crypto_scalarmult_ed25519_base(Cn,Lo))==0){var Dn=Nt(Bn,Ho);return go(Mo),Dn}bo(Mo,"scalar is 0")}function fA(jo,Ho){var Mo=[];Wt(Ho),jo=pt(Mo,jo,"scalar");var Lo,Jo=0|nt._crypto_scalarmult_ed25519_scalarbytes();jo.length!==Jo&&oo(Mo,"invalid scalar length"),Lo=Ot(jo),Mo.push(Lo);var Bn=new St(0|nt._crypto_scalarmult_ed25519_bytes()),Cn=Bn.address;if(Mo.push(Cn),(0|nt._crypto_scalarmult_ed25519_base_noclamp(Cn,Lo))==0){var Dn=Nt(Bn,Ho);return go(Mo),Dn}bo(Mo,"scalar is 0")}function $l(jo,Ho,Mo){var Lo=[];Wt(Mo),jo=pt(Lo,jo,"n");var Jo,Bn=0|nt._crypto_scalarmult_ed25519_scalarbytes();jo.length!==Bn&&oo(Lo,"invalid n length"),Jo=Ot(jo),Lo.push(Jo),Ho=pt(Lo,Ho,"p");var Cn,Dn=0|nt._crypto_scalarmult_ed25519_bytes();Ho.length!==Dn&&oo(Lo,"invalid p length"),Cn=Ot(Ho),Lo.push(Cn);var Wn=new St(0|nt._crypto_scalarmult_ed25519_bytes()),rs=Wn.address;if(Lo.push(rs),(0|nt._crypto_scalarmult_ed25519_noclamp(rs,Jo,Cn))==0){var us=Nt(Wn,Mo);return go(Lo),us}bo(Lo,"invalid point or scalar is 0")}function mA(jo,Ho,Mo){var Lo=[];Wt(Mo),jo=pt(Lo,jo,"scalar");var Jo,Bn=0|nt._crypto_scalarmult_ristretto255_scalarbytes();jo.length!==Bn&&oo(Lo,"invalid scalar length"),Jo=Ot(jo),Lo.push(Jo),Ho=pt(Lo,Ho,"element");var Cn,Dn=0|nt._crypto_scalarmult_ristretto255_bytes();Ho.length!==Dn&&oo(Lo,"invalid element length"),Cn=Ot(Ho),Lo.push(Cn);var Wn=new St(0|nt._crypto_scalarmult_ristretto255_bytes()),rs=Wn.address;if(Lo.push(rs),(0|nt._crypto_scalarmult_ristretto255(rs,Jo,Cn))==0){var us=Nt(Wn,Mo);return go(Lo),us}bo(Lo,"result is identity element")}function yA(jo,Ho){var Mo=[];Wt(Ho),jo=pt(Mo,jo,"scalar");var Lo,Jo=0|nt._crypto_core_ristretto255_scalarbytes();jo.length!==Jo&&oo(Mo,"invalid scalar length"),Lo=Ot(jo),Mo.push(Lo);var Bn=new St(0|nt._crypto_core_ristretto255_bytes()),Cn=Bn.address;if(Mo.push(Cn),(0|nt._crypto_scalarmult_ristretto255_base(Cn,Lo))==0){var Dn=Nt(Bn,Ho);return go(Mo),Dn}bo(Mo,"scalar is 0")}function ep(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo);var Bn=Ot(jo=pt(Jo,jo,"message")),Cn=jo.length;Jo.push(Bn),Ho=pt(Jo,Ho,"nonce");var Dn,Wn=0|nt._crypto_secretbox_noncebytes();Ho.length!==Wn&&oo(Jo,"invalid nonce length"),Dn=Ot(Ho),Jo.push(Dn),Mo=pt(Jo,Mo,"key");var rs,us=0|nt._crypto_secretbox_keybytes();Mo.length!==us&&oo(Jo,"invalid key length"),rs=Ot(Mo),Jo.push(rs);var Cs=new St(0|Cn),Ps=Cs.address;Jo.push(Ps);var Ys=new St(0|nt._crypto_secretbox_macbytes()),a0=Ys.address;if(Jo.push(a0),(0|nt._crypto_secretbox_detached(Ps,a0,Bn,Cn,0,Dn,rs))==0){var I0=Nt({mac:Ys,cipher:Cs},Lo);return go(Jo),I0}bo(Jo,"invalid usage")}function rp(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo);var Bn=Ot(jo=pt(Jo,jo,"message")),Cn=jo.length;Jo.push(Bn),Ho=pt(Jo,Ho,"nonce");var Dn,Wn=0|nt._crypto_secretbox_noncebytes();Ho.length!==Wn&&oo(Jo,"invalid nonce length"),Dn=Ot(Ho),Jo.push(Dn),Mo=pt(Jo,Mo,"key");var rs,us=0|nt._crypto_secretbox_keybytes();Mo.length!==us&&oo(Jo,"invalid key length"),rs=Ot(Mo),Jo.push(rs);var Cs=new St(Cn+nt._crypto_secretbox_macbytes()|0),Ps=Cs.address;if(Jo.push(Ps),(0|nt._crypto_secretbox_easy(Ps,Bn,Cn,0,Dn,rs))==0){var Ys=Nt(Cs,Lo);return go(Jo),Ys}bo(Jo,"invalid usage")}function tp(jo){var Ho=[];Wt(jo);var Mo=new St(0|nt._crypto_secretbox_keybytes()),Lo=Mo.address;Ho.push(Lo),nt._crypto_secretbox_keygen(Lo);var Jo=Nt(Mo,jo);return go(Ho),Jo}function Qu(jo,Ho,Mo,Lo,Jo){var Bn=[];Wt(Jo);var Cn=Ot(jo=pt(Bn,jo,"ciphertext")),Dn=jo.length;Bn.push(Cn),Ho=pt(Bn,Ho,"mac");var Wn,rs=0|nt._crypto_secretbox_macbytes();Ho.length!==rs&&oo(Bn,"invalid mac length"),Wn=Ot(Ho),Bn.push(Wn),Mo=pt(Bn,Mo,"nonce");var us,Cs=0|nt._crypto_secretbox_noncebytes();Mo.length!==Cs&&oo(Bn,"invalid nonce length"),us=Ot(Mo),Bn.push(us),Lo=pt(Bn,Lo,"key");var Ps,Ys=0|nt._crypto_secretbox_keybytes();Lo.length!==Ys&&oo(Bn,"invalid key length"),Ps=Ot(Lo),Bn.push(Ps);var a0=new St(0|Dn),I0=a0.address;if(Bn.push(I0),(0|nt._crypto_secretbox_open_detached(I0,Cn,Wn,Dn,0,us,Ps))==0){var $0=Nt(a0,Jo);return go(Bn),$0}bo(Bn,"wrong secret key for the given ciphertext")}function bA(jo,Ho,Mo,Lo){var Jo=[];Wt(Lo),jo=pt(Jo,jo,"ciphertext");var Bn,Cn=nt._crypto_secretbox_macbytes(),Dn=jo.length;Dn>>0;return go([]),Ho}function Fl(jo,Ho){var Mo=[];Wt(Ho);for(var Lo=nt._malloc(24),Jo=0;Jo<6;Jo++)nt.setValue(Lo+4*Jo,nt.Runtime.addFunction(jo[["implementation_name","random","stir","uniform","buf","close"][Jo]]),"i32");0|nt._randombytes_set_implementation(Lo)&&bo(Mo,"unsupported implementation"),go(Mo)}function hp(jo){Wt(jo),nt._randombytes_stir()}function fp(jo,Ho){var Mo=[];Wt(Ho),Ro(Mo,jo,"upper_bound"),(typeof jo!="number"||(0|jo)!==jo||jo<0)&&oo(Mo,"upper_bound must be an unsigned integer");var Lo=nt._randombytes_uniform(jo)>>>0;return go(Mo),Lo}function mp(){var jo=nt._sodium_version_string(),Ho=nt.UTF8ToString(jo);return go([]),Ho}return St.prototype.to_Uint8Array=function(){var jo=new Uint8Array(this.length);return jo.set(nt.HEAPU8.subarray(this.address,this.address+this.length)),jo},Vr.add=function(jo,Ho){if(!(jo instanceof Uint8Array&&Ho instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can added");var Mo=jo.length,Lo=0,Jo=0;if(Ho.length!=jo.length)throw new TypeError("Arguments must have the same length");for(Jo=0;Jo>=8,Lo+=jo[Jo]+Ho[Jo],jo[Jo]=255&Lo},Vr.base64_variants=ht,Vr.compare=function(jo,Ho){if(!(jo instanceof Uint8Array&&Ho instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(jo.length!==Ho.length)throw new TypeError("Only instances of identical length can be compared");for(var Mo=0,Lo=1,Jo=jo.length;Jo-- >0;)Mo|=Ho[Jo]-jo[Jo]>>8&Lo,Lo&=(Ho[Jo]^jo[Jo])-1>>8;return Mo+Mo+Lo-1},Vr.from_base64=function(jo,Ho){Ho=po(Ho);var Mo,Lo=[],Jo=new St(3*(jo=pt(Lo,jo,"input")).length/4),Bn=Ot(jo),Cn=uo(4),Dn=uo(4);return Lo.push(Bn),Lo.push(Jo.address),Lo.push(Jo.result_bin_len_p),Lo.push(Jo.b64_end_p),nt._sodium_base642bin(Jo.address,Jo.length,Bn,jo.length,0,Cn,Dn,Ho)!==0&&bo(Lo,"invalid input"),nt.getValue(Dn,"i32")-Bn!==jo.length&&bo(Lo,"incomplete input"),Jo.length=nt.getValue(Cn,"i32"),Mo=Jo.to_Uint8Array(),go(Lo),Mo},Vr.from_hex=function(jo){var Ho,Mo=[],Lo=new St((jo=pt(Mo,jo,"input")).length/2),Jo=Ot(jo),Bn=uo(4);return Mo.push(Jo),Mo.push(Lo.address),Mo.push(Lo.hex_end_p),nt._sodium_hex2bin(Lo.address,Lo.length,Jo,jo.length,0,0,Bn)!==0&&bo(Mo,"invalid input"),nt.getValue(Bn,"i32")-Jo!==jo.length&&bo(Mo,"incomplete input"),Ho=Lo.to_Uint8Array(),go(Mo),Ho},Vr.from_string=kt,Vr.increment=function(jo){if(!(jo instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be incremented");for(var Ho=256,Mo=0,Lo=jo.length;Mo>=8,Ho+=jo[Mo],jo[Mo]=255&Ho},Vr.is_zero=function(jo){if(!(jo instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be checked");for(var Ho=0,Mo=0,Lo=jo.length;Mo 0");var Mo,Lo=[],Jo=uo(4),Bn=1,Cn=0,Dn=0|jo.length,Wn=new St(Dn+Ho);Lo.push(Jo),Lo.push(Wn.address);for(var rs=Wn.address,us=Wn.address+Dn+Ho;rs>>48|Dn>>>32|Dn>>>16|Dn))-1>>16);return nt._sodium_pad(Jo,Wn.address,jo.length,Ho,Wn.length)!==0&&bo(Lo,"internal error"),Wn.length=nt.getValue(Jo,"i32"),Mo=Wn.to_Uint8Array(),go(Lo),Mo},Vr.unpad=function(jo,Ho){if(!(jo instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((Ho|=0)<=0)throw new Error("block size must be > 0");var Mo=[],Lo=Ot(jo),Jo=uo(4);return Mo.push(Lo),Mo.push(Jo),nt._sodium_unpad(Jo,Lo,jo.length,Ho)!==0&&bo(Mo,"unsupported/invalid padding"),jo=(jo=new Uint8Array(jo)).subarray(0,nt.getValue(Jo,"i32")),go(Mo),jo},Vr.ready=dt,Vr.symbols=function(){return Object.keys(Vr).sort()},Vr.to_base64=no,Vr.to_hex=ro,Vr.to_string=qt,Vr}var Cr=typeof cr.sodium=="object"&&typeof cr.sodium.onload=="function"?cr.sodium.onload:null;typeof _e.nodeName!="string"?gr(_e,requireLibsodiumSumo()):cr.sodium=gr(cr.commonJsStrict={},cr.libsodium),Cr&&cr.sodium.ready.then(function(){Cr(cr.sodium)})})(commonjsGlobal)})(libsodiumWrappers);var __importDefault$i=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(libsodium,"__esModule",{value:!0}),libsodium.Xchacha20poly1305Ietf=libsodium.xchacha20NonceLength=libsodium.Ed25519=libsodium.Ed25519Keypair=libsodium.Argon2id=libsodium.isArgon2idOptions=void 0;const utils_1$j=build$6,libsodium_wrappers_sumo_1=__importDefault$i(libsodiumWrappers);function isArgon2idOptions(_e){return!(!(0,utils_1$j.isNonNullObject)(_e)||typeof _e.outputLength!="number"||typeof _e.opsLimit!="number"||typeof _e.memLimitKib!="number")}libsodium.isArgon2idOptions=isArgon2idOptions;class Argon2id{static async execute(cr,gr,Cr){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_pwhash(Cr.outputLength,cr,gr,Cr.opsLimit,Cr.memLimitKib*1024,libsodium_wrappers_sumo_1.default.crypto_pwhash_ALG_ARGON2ID13)}}libsodium.Argon2id=Argon2id;class Ed25519Keypair{static fromLibsodiumPrivkey(cr){if(cr.length!==64)throw new Error(`Unexpected key length ${cr.length}. Must be 64.`);return new Ed25519Keypair(cr.slice(0,32),cr.slice(32,64))}constructor(cr,gr){this.privkey=cr,this.pubkey=gr}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}libsodium.Ed25519Keypair=Ed25519Keypair;class Ed25519{static async makeKeypair(cr){await libsodium_wrappers_sumo_1.default.ready;const gr=libsodium_wrappers_sumo_1.default.crypto_sign_seed_keypair(cr);return Ed25519Keypair.fromLibsodiumPrivkey(gr.privateKey)}static async createSignature(cr,gr){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_sign_detached(cr,gr.toLibsodiumPrivkey())}static async verifySignature(cr,gr,Cr){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_sign_verify_detached(cr,gr,Cr)}}libsodium.Ed25519=Ed25519,libsodium.xchacha20NonceLength=24;class Xchacha20poly1305Ietf{static async encrypt(cr,gr,Cr){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_aead_xchacha20poly1305_ietf_encrypt(cr,null,null,Cr,gr)}static async decrypt(cr,gr,Cr){return await libsodium_wrappers_sumo_1.default.ready,libsodium_wrappers_sumo_1.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,cr,null,Cr,gr)}}libsodium.Xchacha20poly1305Ietf=Xchacha20poly1305Ietf;var random={};Object.defineProperty(random,"__esModule",{value:!0}),random.Random=void 0;class Random{static getBytes(cr){try{const gr=typeof window=="object"?window:self,Cr=typeof gr.crypto<"u"?gr.crypto:gr.msCrypto,Vr=new Uint8Array(cr);return Cr.getRandomValues(Vr),Vr}catch{try{const gr=require$$0$3;return new Uint8Array([...gr.randomBytes(cr)])}catch{throw new Error("No secure random number generator found")}}}}random.Random=Random;var ripemd$1={},ripemd160$1={};Object.defineProperty(ripemd160$1,"__esModule",{value:!0}),ripemd160$1.ripemd160=ripemd160$1.RIPEMD160=void 0;const _md_js_1=_md,utils_js_1=utils$R,Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=new Uint8Array(new Array(16).fill(0).map((_e,cr)=>cr)),Pi$1=Id.map(_e=>(9*_e+5)%16);let idxL=[Id],idxR=[Pi$1];for(let _e=0;_e<4;_e++)for(let cr of[idxL,idxR])cr.push(cr[_e].map(gr=>Rho[gr]));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(_e=>new Uint8Array(_e)),shiftsL=idxL.map((_e,cr)=>_e.map(gr=>shifts[cr][gr])),shiftsR=idxR.map((_e,cr)=>_e.map(gr=>shifts[cr][gr])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr$1=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function f$4(_e,cr,gr,Cr){return _e===0?cr^gr^Cr:_e===1?cr&gr|~cr&Cr:_e===2?(cr|~gr)^Cr:_e===3?cr&Cr|gr&~Cr:cr^(gr|~Cr)}const R_BUF=new Uint32Array(16);let RIPEMD160$1=class extends _md_js_1.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:_e,h1:cr,h2:gr,h3:Cr,h4:Vr}=this;return[_e,cr,gr,Cr,Vr]}set(_e,cr,gr,Cr,Vr){this.h0=_e|0,this.h1=cr|0,this.h2=gr|0,this.h3=Cr|0,this.h4=Vr|0}process(_e,cr){for(let ht=0;ht<16;ht++,cr+=4)R_BUF[ht]=_e.getUint32(cr,!0);let gr=this.h0|0,Cr=gr,Vr=this.h1|0,tt=Vr,nt=this.h2|0,st=nt,dt=this.h3|0,kt=dt,qt=this.h4|0,ro=qt;for(let ht=0;ht<5;ht++){const po=4-ht,no=Kl[ht],Nt=Kr$1[ht],eo=idxL[ht],Wt=idxR[ht],St=shiftsL[ht],Ot=shiftsR[ht];for(let uo=0;uo<16;uo++){const go=(0,utils_js_1.rotl)(gr+f$4(ht,Vr,nt,dt)+R_BUF[eo[uo]]+no,St[uo])+qt|0;gr=qt,qt=dt,dt=(0,utils_js_1.rotl)(nt,10)|0,nt=Vr,Vr=go}for(let uo=0;uo<16;uo++){const go=(0,utils_js_1.rotl)(Cr+f$4(po,tt,st,kt)+R_BUF[Wt[uo]]+Nt,Ot[uo])+ro|0;Cr=ro,ro=kt,kt=(0,utils_js_1.rotl)(st,10)|0,st=tt,tt=go}}this.set(this.h1+nt+kt|0,this.h2+dt+ro|0,this.h3+qt+Cr|0,this.h4+gr+tt|0,this.h0+Vr+st|0)}roundClean(){R_BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};ripemd160$1.RIPEMD160=RIPEMD160$1,ripemd160$1.ripemd160=(0,utils_js_1.wrapConstructor)(()=>new RIPEMD160$1),Object.defineProperty(ripemd$1,"__esModule",{value:!0}),ripemd$1.ripemd160=ripemd$1.Ripemd160=void 0;const ripemd160_1$1=ripemd160$1,utils_1$i=utils$Q;class Ripemd160{constructor(cr){this.blockSize=512/8,this.impl=ripemd160_1$1.ripemd160.create(),cr&&this.update(cr)}update(cr){return this.impl.update((0,utils_1$i.toRealUint8Array)(cr)),this}digest(){return this.impl.digest()}}ripemd$1.Ripemd160=Ripemd160;function ripemd160(_e){return new Ripemd160(_e).digest()}ripemd$1.ripemd160=ripemd160;var secp256k1$2={},elliptic={};const name$1="elliptic",version$1="6.5.5",description$1="EC cryptography",main$2="lib/elliptic.js",files=["lib"],scripts$1={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$1={type:"git",url:"git@github.com:indutny/elliptic"},keywords$1=["EC","Elliptic","curve","Cryptography"],author$1="Fedor Indutny ",license$1="MIT",bugs$1={url:"https://github.com/indutny/elliptic/issues"},homepage$1="https://github.com/indutny/elliptic",devDependencies$1={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$1={"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$2={name:name$1,version:version$1,description:description$1,main:main$2,files,scripts:scripts$1,repository:repository$1,keywords:keywords$1,author:author$1,license:license$1,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$1,dependencies:dependencies$1};var utils$P={},bn={exports:{}};bn.exports,function(_e){(function(cr,gr){function Cr(so,wo){if(!so)throw new Error(wo||"Assertion failed")}function Vr(so,wo){so.super_=wo;var xt=function(){};xt.prototype=wo.prototype,so.prototype=new xt,so.prototype.constructor=so}function tt(so,wo,xt){if(tt.isBN(so))return so;this.negative=0,this.words=null,this.length=0,this.red=null,so!==null&&((wo==="le"||wo==="be")&&(xt=wo,wo=10),this._init(so||0,wo||10,xt||"be"))}typeof cr=="object"?cr.exports=tt:gr.BN=tt,tt.BN=tt,tt.wordSize=26;var nt;try{typeof window<"u"&&typeof window.Buffer<"u"?nt=window.Buffer:nt=require$$0$3.Buffer}catch{}tt.isBN=function(so){return so instanceof tt?!0:so!==null&&typeof so=="object"&&so.constructor.wordSize===tt.wordSize&&Array.isArray(so.words)},tt.max=function(so,wo){return so.cmp(wo)>0?so:wo},tt.min=function(so,wo){return so.cmp(wo)<0?so:wo},tt.prototype._init=function(so,wo,xt){if(typeof so=="number")return this._initNumber(so,wo,xt);if(typeof so=="object")return this._initArray(so,wo,xt);wo==="hex"&&(wo=16),Cr(wo===(wo|0)&&wo>=2&&wo<=36),so=so.toString().replace(/\s+/g,"");var Mt=0;so[0]==="-"&&(Mt++,this.negative=1),Mt=0;Mt-=3)io=so[Mt]|so[Mt-1]<<8|so[Mt-2]<<16,this.words[ho]|=io<>>26-co&67108863,co+=24,co>=26&&(co-=26,ho++);else if(xt==="le")for(Mt=0,ho=0;Mt>>26-co&67108863,co+=24,co>=26&&(co-=26,ho++);return this.strip()};function st(so,wo){var xt=so.charCodeAt(wo);return xt>=65&&xt<=70?xt-55:xt>=97&&xt<=102?xt-87:xt-48&15}function dt(so,wo,xt){var Mt=st(so,xt);return xt-1>=wo&&(Mt|=st(so,xt-1)<<4),Mt}tt.prototype._parseHex=function(so,wo,xt){this.length=Math.ceil((so.length-wo)/6),this.words=new Array(this.length);for(var Mt=0;Mt=wo;Mt-=2)co=dt(so,wo,Mt)<=18?(ho-=18,io+=1,this.words[io]|=co>>>26):ho+=8;else{var mo=so.length-wo;for(Mt=mo%2===0?wo+1:wo;Mt=18?(ho-=18,io+=1,this.words[io]|=co>>>26):ho+=8}this.strip()};function kt(so,wo,xt,Mt){for(var ho=0,io=Math.min(so.length,xt),co=wo;co=49?ho+=mo-49+10:mo>=17?ho+=mo-17+10:ho+=mo}return ho}tt.prototype._parseBase=function(so,wo,xt){this.words=[0],this.length=1;for(var Mt=0,ho=1;ho<=67108863;ho*=wo)Mt++;Mt--,ho=ho/wo|0;for(var io=so.length-xt,co=io%Mt,mo=Math.min(io,io-co)+xt,Bo=0,So=xt;So1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var qt=["","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"],ro=[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],ht=[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];tt.prototype.toString=function(so,wo){so=so||10,wo=wo|0||1;var xt;if(so===16||so==="hex"){xt="";for(var Mt=0,ho=0,io=0;io>>24-Mt&16777215,ho!==0||io!==this.length-1?xt=qt[6-mo.length]+mo+xt:xt=mo+xt,Mt+=2,Mt>=26&&(Mt-=26,io--)}for(ho!==0&&(xt=ho.toString(16)+xt);xt.length%wo!==0;)xt="0"+xt;return this.negative!==0&&(xt="-"+xt),xt}if(so===(so|0)&&so>=2&&so<=36){var Bo=ro[so],So=ht[so];xt="";var Tt=this.clone();for(Tt.negative=0;!Tt.isZero();){var vo=Tt.modn(So).toString(so);Tt=Tt.idivn(So),Tt.isZero()?xt=vo+xt:xt=qt[Bo-vo.length]+vo+xt}for(this.isZero()&&(xt="0"+xt);xt.length%wo!==0;)xt="0"+xt;return this.negative!==0&&(xt="-"+xt),xt}Cr(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var so=this.words[0];return this.length===2?so+=this.words[1]*67108864:this.length===3&&this.words[2]===1?so+=4503599627370496+this.words[1]*67108864:this.length>2&&Cr(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-so:so},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(so,wo){return Cr(typeof nt<"u"),this.toArrayLike(nt,so,wo)},tt.prototype.toArray=function(so,wo){return this.toArrayLike(Array,so,wo)},tt.prototype.toArrayLike=function(so,wo,xt){var Mt=this.byteLength(),ho=xt||Math.max(1,Mt);Cr(Mt<=ho,"byte array longer than desired length"),Cr(ho>0,"Requested array length <= 0"),this.strip();var io=wo==="le",co=new so(ho),mo,Bo,So=this.clone();if(io){for(Bo=0;!So.isZero();Bo++)mo=So.andln(255),So.iushrn(8),co[Bo]=mo;for(;Bo=4096&&(xt+=13,wo>>>=13),wo>=64&&(xt+=7,wo>>>=7),wo>=8&&(xt+=4,wo>>>=4),wo>=2&&(xt+=2,wo>>>=2),xt+wo},tt.prototype._zeroBits=function(so){if(so===0)return 26;var wo=so,xt=0;return wo&8191||(xt+=13,wo>>>=13),wo&127||(xt+=7,wo>>>=7),wo&15||(xt+=4,wo>>>=4),wo&3||(xt+=2,wo>>>=2),wo&1||xt++,xt},tt.prototype.bitLength=function(){var so=this.words[this.length-1],wo=this._countBits(so);return(this.length-1)*26+wo};function po(so){for(var wo=new Array(so.bitLength()),xt=0;xt>>ho}return wo}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var so=0,wo=0;woso.length?this.clone().ior(so):so.clone().ior(this)},tt.prototype.uor=function(so){return this.length>so.length?this.clone().iuor(so):so.clone().iuor(this)},tt.prototype.iuand=function(so){var wo;this.length>so.length?wo=so:wo=this;for(var xt=0;xtso.length?this.clone().iand(so):so.clone().iand(this)},tt.prototype.uand=function(so){return this.length>so.length?this.clone().iuand(so):so.clone().iuand(this)},tt.prototype.iuxor=function(so){var wo,xt;this.length>so.length?(wo=this,xt=so):(wo=so,xt=this);for(var Mt=0;Mtso.length?this.clone().ixor(so):so.clone().ixor(this)},tt.prototype.uxor=function(so){return this.length>so.length?this.clone().iuxor(so):so.clone().iuxor(this)},tt.prototype.inotn=function(so){Cr(typeof so=="number"&&so>=0);var wo=Math.ceil(so/26)|0,xt=so%26;this._expand(wo),xt>0&&wo--;for(var Mt=0;Mt0&&(this.words[Mt]=~this.words[Mt]&67108863>>26-xt),this.strip()},tt.prototype.notn=function(so){return this.clone().inotn(so)},tt.prototype.setn=function(so,wo){Cr(typeof so=="number"&&so>=0);var xt=so/26|0,Mt=so%26;return this._expand(xt+1),wo?this.words[xt]=this.words[xt]|1<so.length?(xt=this,Mt=so):(xt=so,Mt=this);for(var ho=0,io=0;io>>26;for(;ho!==0&&io>>26;if(this.length=xt.length,ho!==0)this.words[this.length]=ho,this.length++;else if(xt!==this)for(;ioso.length?this.clone().iadd(so):so.clone().iadd(this)},tt.prototype.isub=function(so){if(so.negative!==0){so.negative=0;var wo=this.iadd(so);return so.negative=1,wo._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(so),this.negative=1,this._normSign();var xt=this.cmp(so);if(xt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Mt,ho;xt>0?(Mt=this,ho=so):(Mt=so,ho=this);for(var io=0,co=0;co>26,this.words[co]=wo&67108863;for(;io!==0&&co>26,this.words[co]=wo&67108863;if(io===0&&co>>26,vo=Bo&67108863,Co=Math.min(So,wo.length-1),xo=Math.max(0,So-so.length+1);xo<=Co;xo++){var Po=So-xo|0;ho=so.words[Po]|0,io=wo.words[xo]|0,co=ho*io+vo,Tt+=co/67108864|0,vo=co&67108863}xt.words[So]=vo|0,Bo=Tt|0}return Bo!==0?xt.words[So]=Bo|0:xt.length--,xt.strip()}var Nt=function(so,wo,xt){var Mt=so.words,ho=wo.words,io=xt.words,co=0,mo,Bo,So,Tt=Mt[0]|0,vo=Tt&8191,Co=Tt>>>13,xo=Mt[1]|0,Po=xo&8191,Wo=xo>>>13,Yn=Mt[2]|0,ba=Yn&8191,_a=Yn>>>13,$s=Mt[3]|0,vs=$s&8191,ss=$s>>>13,Ts=Mt[4]|0,qo=Ts&8191,Js=Ts>>>13,Vo=Mt[5]|0,zo=Vo&8191,$n=Vo>>>13,Tn=Mt[6]|0,ko=Tn&8191,es=Tn>>>13,fs=Mt[7]|0,Es=fs&8191,Us=fs>>>13,ms=Mt[8]|0,bs=ms&8191,ks=ms>>>13,Ds=Mt[9]|0,Fs=Ds&8191,d0=Ds>>>13,v0=ho[0]|0,b0=v0&8191,R0=v0>>>13,D0=ho[1]|0,zs=D0&8191,n0=D0>>>13,fo=ho[2]|0,Qo=fo&8191,Ko=fo>>>13,ps=ho[3]|0,Kn=ps&8191,gs=ps>>>13,H0=ho[4]|0,j0=H0&8191,hs=H0>>>13,Ss=ho[5]|0,Rs=Ss&8191,e0=Ss>>>13,g0=ho[6]|0,E0=g0&8191,Vs=g0>>>13,Bs=ho[7]|0,Gs=Bs&8191,A0=Bs>>>13,y0=ho[8]|0,s0=y0&8191,P0=y0>>>13,M0=ho[9]|0,O0=M0&8191,Sn=M0>>>13;xt.negative=so.negative^wo.negative,xt.length=19,mo=Math.imul(vo,b0),Bo=Math.imul(vo,R0),Bo=Bo+Math.imul(Co,b0)|0,So=Math.imul(Co,R0);var T0=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(T0>>>26)|0,T0&=67108863,mo=Math.imul(Po,b0),Bo=Math.imul(Po,R0),Bo=Bo+Math.imul(Wo,b0)|0,So=Math.imul(Wo,R0),mo=mo+Math.imul(vo,zs)|0,Bo=Bo+Math.imul(vo,n0)|0,Bo=Bo+Math.imul(Co,zs)|0,So=So+Math.imul(Co,n0)|0;var An=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(An>>>26)|0,An&=67108863,mo=Math.imul(ba,b0),Bo=Math.imul(ba,R0),Bo=Bo+Math.imul(_a,b0)|0,So=Math.imul(_a,R0),mo=mo+Math.imul(Po,zs)|0,Bo=Bo+Math.imul(Po,n0)|0,Bo=Bo+Math.imul(Wo,zs)|0,So=So+Math.imul(Wo,n0)|0,mo=mo+Math.imul(vo,Qo)|0,Bo=Bo+Math.imul(vo,Ko)|0,Bo=Bo+Math.imul(Co,Qo)|0,So=So+Math.imul(Co,Ko)|0;var Pn=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,mo=Math.imul(vs,b0),Bo=Math.imul(vs,R0),Bo=Bo+Math.imul(ss,b0)|0,So=Math.imul(ss,R0),mo=mo+Math.imul(ba,zs)|0,Bo=Bo+Math.imul(ba,n0)|0,Bo=Bo+Math.imul(_a,zs)|0,So=So+Math.imul(_a,n0)|0,mo=mo+Math.imul(Po,Qo)|0,Bo=Bo+Math.imul(Po,Ko)|0,Bo=Bo+Math.imul(Wo,Qo)|0,So=So+Math.imul(Wo,Ko)|0,mo=mo+Math.imul(vo,Kn)|0,Bo=Bo+Math.imul(vo,gs)|0,Bo=Bo+Math.imul(Co,Kn)|0,So=So+Math.imul(Co,gs)|0;var Ln=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,mo=Math.imul(qo,b0),Bo=Math.imul(qo,R0),Bo=Bo+Math.imul(Js,b0)|0,So=Math.imul(Js,R0),mo=mo+Math.imul(vs,zs)|0,Bo=Bo+Math.imul(vs,n0)|0,Bo=Bo+Math.imul(ss,zs)|0,So=So+Math.imul(ss,n0)|0,mo=mo+Math.imul(ba,Qo)|0,Bo=Bo+Math.imul(ba,Ko)|0,Bo=Bo+Math.imul(_a,Qo)|0,So=So+Math.imul(_a,Ko)|0,mo=mo+Math.imul(Po,Kn)|0,Bo=Bo+Math.imul(Po,gs)|0,Bo=Bo+Math.imul(Wo,Kn)|0,So=So+Math.imul(Wo,gs)|0,mo=mo+Math.imul(vo,j0)|0,Bo=Bo+Math.imul(vo,hs)|0,Bo=Bo+Math.imul(Co,j0)|0,So=So+Math.imul(Co,hs)|0;var qn=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(qn>>>26)|0,qn&=67108863,mo=Math.imul(zo,b0),Bo=Math.imul(zo,R0),Bo=Bo+Math.imul($n,b0)|0,So=Math.imul($n,R0),mo=mo+Math.imul(qo,zs)|0,Bo=Bo+Math.imul(qo,n0)|0,Bo=Bo+Math.imul(Js,zs)|0,So=So+Math.imul(Js,n0)|0,mo=mo+Math.imul(vs,Qo)|0,Bo=Bo+Math.imul(vs,Ko)|0,Bo=Bo+Math.imul(ss,Qo)|0,So=So+Math.imul(ss,Ko)|0,mo=mo+Math.imul(ba,Kn)|0,Bo=Bo+Math.imul(ba,gs)|0,Bo=Bo+Math.imul(_a,Kn)|0,So=So+Math.imul(_a,gs)|0,mo=mo+Math.imul(Po,j0)|0,Bo=Bo+Math.imul(Po,hs)|0,Bo=Bo+Math.imul(Wo,j0)|0,So=So+Math.imul(Wo,hs)|0,mo=mo+Math.imul(vo,Rs)|0,Bo=Bo+Math.imul(vo,e0)|0,Bo=Bo+Math.imul(Co,Rs)|0,So=So+Math.imul(Co,e0)|0;var na=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(na>>>26)|0,na&=67108863,mo=Math.imul(ko,b0),Bo=Math.imul(ko,R0),Bo=Bo+Math.imul(es,b0)|0,So=Math.imul(es,R0),mo=mo+Math.imul(zo,zs)|0,Bo=Bo+Math.imul(zo,n0)|0,Bo=Bo+Math.imul($n,zs)|0,So=So+Math.imul($n,n0)|0,mo=mo+Math.imul(qo,Qo)|0,Bo=Bo+Math.imul(qo,Ko)|0,Bo=Bo+Math.imul(Js,Qo)|0,So=So+Math.imul(Js,Ko)|0,mo=mo+Math.imul(vs,Kn)|0,Bo=Bo+Math.imul(vs,gs)|0,Bo=Bo+Math.imul(ss,Kn)|0,So=So+Math.imul(ss,gs)|0,mo=mo+Math.imul(ba,j0)|0,Bo=Bo+Math.imul(ba,hs)|0,Bo=Bo+Math.imul(_a,j0)|0,So=So+Math.imul(_a,hs)|0,mo=mo+Math.imul(Po,Rs)|0,Bo=Bo+Math.imul(Po,e0)|0,Bo=Bo+Math.imul(Wo,Rs)|0,So=So+Math.imul(Wo,e0)|0,mo=mo+Math.imul(vo,E0)|0,Bo=Bo+Math.imul(vo,Vs)|0,Bo=Bo+Math.imul(Co,E0)|0,So=So+Math.imul(Co,Vs)|0;var ls=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(ls>>>26)|0,ls&=67108863,mo=Math.imul(Es,b0),Bo=Math.imul(Es,R0),Bo=Bo+Math.imul(Us,b0)|0,So=Math.imul(Us,R0),mo=mo+Math.imul(ko,zs)|0,Bo=Bo+Math.imul(ko,n0)|0,Bo=Bo+Math.imul(es,zs)|0,So=So+Math.imul(es,n0)|0,mo=mo+Math.imul(zo,Qo)|0,Bo=Bo+Math.imul(zo,Ko)|0,Bo=Bo+Math.imul($n,Qo)|0,So=So+Math.imul($n,Ko)|0,mo=mo+Math.imul(qo,Kn)|0,Bo=Bo+Math.imul(qo,gs)|0,Bo=Bo+Math.imul(Js,Kn)|0,So=So+Math.imul(Js,gs)|0,mo=mo+Math.imul(vs,j0)|0,Bo=Bo+Math.imul(vs,hs)|0,Bo=Bo+Math.imul(ss,j0)|0,So=So+Math.imul(ss,hs)|0,mo=mo+Math.imul(ba,Rs)|0,Bo=Bo+Math.imul(ba,e0)|0,Bo=Bo+Math.imul(_a,Rs)|0,So=So+Math.imul(_a,e0)|0,mo=mo+Math.imul(Po,E0)|0,Bo=Bo+Math.imul(Po,Vs)|0,Bo=Bo+Math.imul(Wo,E0)|0,So=So+Math.imul(Wo,Vs)|0,mo=mo+Math.imul(vo,Gs)|0,Bo=Bo+Math.imul(vo,A0)|0,Bo=Bo+Math.imul(Co,Gs)|0,So=So+Math.imul(Co,A0)|0;var Ns=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(Ns>>>26)|0,Ns&=67108863,mo=Math.imul(bs,b0),Bo=Math.imul(bs,R0),Bo=Bo+Math.imul(ks,b0)|0,So=Math.imul(ks,R0),mo=mo+Math.imul(Es,zs)|0,Bo=Bo+Math.imul(Es,n0)|0,Bo=Bo+Math.imul(Us,zs)|0,So=So+Math.imul(Us,n0)|0,mo=mo+Math.imul(ko,Qo)|0,Bo=Bo+Math.imul(ko,Ko)|0,Bo=Bo+Math.imul(es,Qo)|0,So=So+Math.imul(es,Ko)|0,mo=mo+Math.imul(zo,Kn)|0,Bo=Bo+Math.imul(zo,gs)|0,Bo=Bo+Math.imul($n,Kn)|0,So=So+Math.imul($n,gs)|0,mo=mo+Math.imul(qo,j0)|0,Bo=Bo+Math.imul(qo,hs)|0,Bo=Bo+Math.imul(Js,j0)|0,So=So+Math.imul(Js,hs)|0,mo=mo+Math.imul(vs,Rs)|0,Bo=Bo+Math.imul(vs,e0)|0,Bo=Bo+Math.imul(ss,Rs)|0,So=So+Math.imul(ss,e0)|0,mo=mo+Math.imul(ba,E0)|0,Bo=Bo+Math.imul(ba,Vs)|0,Bo=Bo+Math.imul(_a,E0)|0,So=So+Math.imul(_a,Vs)|0,mo=mo+Math.imul(Po,Gs)|0,Bo=Bo+Math.imul(Po,A0)|0,Bo=Bo+Math.imul(Wo,Gs)|0,So=So+Math.imul(Wo,A0)|0,mo=mo+Math.imul(vo,s0)|0,Bo=Bo+Math.imul(vo,P0)|0,Bo=Bo+Math.imul(Co,s0)|0,So=So+Math.imul(Co,P0)|0;var Qs=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(Qs>>>26)|0,Qs&=67108863,mo=Math.imul(Fs,b0),Bo=Math.imul(Fs,R0),Bo=Bo+Math.imul(d0,b0)|0,So=Math.imul(d0,R0),mo=mo+Math.imul(bs,zs)|0,Bo=Bo+Math.imul(bs,n0)|0,Bo=Bo+Math.imul(ks,zs)|0,So=So+Math.imul(ks,n0)|0,mo=mo+Math.imul(Es,Qo)|0,Bo=Bo+Math.imul(Es,Ko)|0,Bo=Bo+Math.imul(Us,Qo)|0,So=So+Math.imul(Us,Ko)|0,mo=mo+Math.imul(ko,Kn)|0,Bo=Bo+Math.imul(ko,gs)|0,Bo=Bo+Math.imul(es,Kn)|0,So=So+Math.imul(es,gs)|0,mo=mo+Math.imul(zo,j0)|0,Bo=Bo+Math.imul(zo,hs)|0,Bo=Bo+Math.imul($n,j0)|0,So=So+Math.imul($n,hs)|0,mo=mo+Math.imul(qo,Rs)|0,Bo=Bo+Math.imul(qo,e0)|0,Bo=Bo+Math.imul(Js,Rs)|0,So=So+Math.imul(Js,e0)|0,mo=mo+Math.imul(vs,E0)|0,Bo=Bo+Math.imul(vs,Vs)|0,Bo=Bo+Math.imul(ss,E0)|0,So=So+Math.imul(ss,Vs)|0,mo=mo+Math.imul(ba,Gs)|0,Bo=Bo+Math.imul(ba,A0)|0,Bo=Bo+Math.imul(_a,Gs)|0,So=So+Math.imul(_a,A0)|0,mo=mo+Math.imul(Po,s0)|0,Bo=Bo+Math.imul(Po,P0)|0,Bo=Bo+Math.imul(Wo,s0)|0,So=So+Math.imul(Wo,P0)|0,mo=mo+Math.imul(vo,O0)|0,Bo=Bo+Math.imul(vo,Sn)|0,Bo=Bo+Math.imul(Co,O0)|0,So=So+Math.imul(Co,Sn)|0;var p0=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(p0>>>26)|0,p0&=67108863,mo=Math.imul(Fs,zs),Bo=Math.imul(Fs,n0),Bo=Bo+Math.imul(d0,zs)|0,So=Math.imul(d0,n0),mo=mo+Math.imul(bs,Qo)|0,Bo=Bo+Math.imul(bs,Ko)|0,Bo=Bo+Math.imul(ks,Qo)|0,So=So+Math.imul(ks,Ko)|0,mo=mo+Math.imul(Es,Kn)|0,Bo=Bo+Math.imul(Es,gs)|0,Bo=Bo+Math.imul(Us,Kn)|0,So=So+Math.imul(Us,gs)|0,mo=mo+Math.imul(ko,j0)|0,Bo=Bo+Math.imul(ko,hs)|0,Bo=Bo+Math.imul(es,j0)|0,So=So+Math.imul(es,hs)|0,mo=mo+Math.imul(zo,Rs)|0,Bo=Bo+Math.imul(zo,e0)|0,Bo=Bo+Math.imul($n,Rs)|0,So=So+Math.imul($n,e0)|0,mo=mo+Math.imul(qo,E0)|0,Bo=Bo+Math.imul(qo,Vs)|0,Bo=Bo+Math.imul(Js,E0)|0,So=So+Math.imul(Js,Vs)|0,mo=mo+Math.imul(vs,Gs)|0,Bo=Bo+Math.imul(vs,A0)|0,Bo=Bo+Math.imul(ss,Gs)|0,So=So+Math.imul(ss,A0)|0,mo=mo+Math.imul(ba,s0)|0,Bo=Bo+Math.imul(ba,P0)|0,Bo=Bo+Math.imul(_a,s0)|0,So=So+Math.imul(_a,P0)|0,mo=mo+Math.imul(Po,O0)|0,Bo=Bo+Math.imul(Po,Sn)|0,Bo=Bo+Math.imul(Wo,O0)|0,So=So+Math.imul(Wo,Sn)|0;var l0=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(l0>>>26)|0,l0&=67108863,mo=Math.imul(Fs,Qo),Bo=Math.imul(Fs,Ko),Bo=Bo+Math.imul(d0,Qo)|0,So=Math.imul(d0,Ko),mo=mo+Math.imul(bs,Kn)|0,Bo=Bo+Math.imul(bs,gs)|0,Bo=Bo+Math.imul(ks,Kn)|0,So=So+Math.imul(ks,gs)|0,mo=mo+Math.imul(Es,j0)|0,Bo=Bo+Math.imul(Es,hs)|0,Bo=Bo+Math.imul(Us,j0)|0,So=So+Math.imul(Us,hs)|0,mo=mo+Math.imul(ko,Rs)|0,Bo=Bo+Math.imul(ko,e0)|0,Bo=Bo+Math.imul(es,Rs)|0,So=So+Math.imul(es,e0)|0,mo=mo+Math.imul(zo,E0)|0,Bo=Bo+Math.imul(zo,Vs)|0,Bo=Bo+Math.imul($n,E0)|0,So=So+Math.imul($n,Vs)|0,mo=mo+Math.imul(qo,Gs)|0,Bo=Bo+Math.imul(qo,A0)|0,Bo=Bo+Math.imul(Js,Gs)|0,So=So+Math.imul(Js,A0)|0,mo=mo+Math.imul(vs,s0)|0,Bo=Bo+Math.imul(vs,P0)|0,Bo=Bo+Math.imul(ss,s0)|0,So=So+Math.imul(ss,P0)|0,mo=mo+Math.imul(ba,O0)|0,Bo=Bo+Math.imul(ba,Sn)|0,Bo=Bo+Math.imul(_a,O0)|0,So=So+Math.imul(_a,Sn)|0;var S0=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(S0>>>26)|0,S0&=67108863,mo=Math.imul(Fs,Kn),Bo=Math.imul(Fs,gs),Bo=Bo+Math.imul(d0,Kn)|0,So=Math.imul(d0,gs),mo=mo+Math.imul(bs,j0)|0,Bo=Bo+Math.imul(bs,hs)|0,Bo=Bo+Math.imul(ks,j0)|0,So=So+Math.imul(ks,hs)|0,mo=mo+Math.imul(Es,Rs)|0,Bo=Bo+Math.imul(Es,e0)|0,Bo=Bo+Math.imul(Us,Rs)|0,So=So+Math.imul(Us,e0)|0,mo=mo+Math.imul(ko,E0)|0,Bo=Bo+Math.imul(ko,Vs)|0,Bo=Bo+Math.imul(es,E0)|0,So=So+Math.imul(es,Vs)|0,mo=mo+Math.imul(zo,Gs)|0,Bo=Bo+Math.imul(zo,A0)|0,Bo=Bo+Math.imul($n,Gs)|0,So=So+Math.imul($n,A0)|0,mo=mo+Math.imul(qo,s0)|0,Bo=Bo+Math.imul(qo,P0)|0,Bo=Bo+Math.imul(Js,s0)|0,So=So+Math.imul(Js,P0)|0,mo=mo+Math.imul(vs,O0)|0,Bo=Bo+Math.imul(vs,Sn)|0,Bo=Bo+Math.imul(ss,O0)|0,So=So+Math.imul(ss,Sn)|0;var yl=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(yl>>>26)|0,yl&=67108863,mo=Math.imul(Fs,j0),Bo=Math.imul(Fs,hs),Bo=Bo+Math.imul(d0,j0)|0,So=Math.imul(d0,hs),mo=mo+Math.imul(bs,Rs)|0,Bo=Bo+Math.imul(bs,e0)|0,Bo=Bo+Math.imul(ks,Rs)|0,So=So+Math.imul(ks,e0)|0,mo=mo+Math.imul(Es,E0)|0,Bo=Bo+Math.imul(Es,Vs)|0,Bo=Bo+Math.imul(Us,E0)|0,So=So+Math.imul(Us,Vs)|0,mo=mo+Math.imul(ko,Gs)|0,Bo=Bo+Math.imul(ko,A0)|0,Bo=Bo+Math.imul(es,Gs)|0,So=So+Math.imul(es,A0)|0,mo=mo+Math.imul(zo,s0)|0,Bo=Bo+Math.imul(zo,P0)|0,Bo=Bo+Math.imul($n,s0)|0,So=So+Math.imul($n,P0)|0,mo=mo+Math.imul(qo,O0)|0,Bo=Bo+Math.imul(qo,Sn)|0,Bo=Bo+Math.imul(Js,O0)|0,So=So+Math.imul(Js,Sn)|0;var Vt=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,mo=Math.imul(Fs,Rs),Bo=Math.imul(Fs,e0),Bo=Bo+Math.imul(d0,Rs)|0,So=Math.imul(d0,e0),mo=mo+Math.imul(bs,E0)|0,Bo=Bo+Math.imul(bs,Vs)|0,Bo=Bo+Math.imul(ks,E0)|0,So=So+Math.imul(ks,Vs)|0,mo=mo+Math.imul(Es,Gs)|0,Bo=Bo+Math.imul(Es,A0)|0,Bo=Bo+Math.imul(Us,Gs)|0,So=So+Math.imul(Us,A0)|0,mo=mo+Math.imul(ko,s0)|0,Bo=Bo+Math.imul(ko,P0)|0,Bo=Bo+Math.imul(es,s0)|0,So=So+Math.imul(es,P0)|0,mo=mo+Math.imul(zo,O0)|0,Bo=Bo+Math.imul(zo,Sn)|0,Bo=Bo+Math.imul($n,O0)|0,So=So+Math.imul($n,Sn)|0;var br=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(br>>>26)|0,br&=67108863,mo=Math.imul(Fs,E0),Bo=Math.imul(Fs,Vs),Bo=Bo+Math.imul(d0,E0)|0,So=Math.imul(d0,Vs),mo=mo+Math.imul(bs,Gs)|0,Bo=Bo+Math.imul(bs,A0)|0,Bo=Bo+Math.imul(ks,Gs)|0,So=So+Math.imul(ks,A0)|0,mo=mo+Math.imul(Es,s0)|0,Bo=Bo+Math.imul(Es,P0)|0,Bo=Bo+Math.imul(Us,s0)|0,So=So+Math.imul(Us,P0)|0,mo=mo+Math.imul(ko,O0)|0,Bo=Bo+Math.imul(ko,Sn)|0,Bo=Bo+Math.imul(es,O0)|0,So=So+Math.imul(es,Sn)|0;var lt=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(lt>>>26)|0,lt&=67108863,mo=Math.imul(Fs,Gs),Bo=Math.imul(Fs,A0),Bo=Bo+Math.imul(d0,Gs)|0,So=Math.imul(d0,A0),mo=mo+Math.imul(bs,s0)|0,Bo=Bo+Math.imul(bs,P0)|0,Bo=Bo+Math.imul(ks,s0)|0,So=So+Math.imul(ks,P0)|0,mo=mo+Math.imul(Es,O0)|0,Bo=Bo+Math.imul(Es,Sn)|0,Bo=Bo+Math.imul(Us,O0)|0,So=So+Math.imul(Us,Sn)|0;var Sl=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(Sl>>>26)|0,Sl&=67108863,mo=Math.imul(Fs,s0),Bo=Math.imul(Fs,P0),Bo=Bo+Math.imul(d0,s0)|0,So=Math.imul(d0,P0),mo=mo+Math.imul(bs,O0)|0,Bo=Bo+Math.imul(bs,Sn)|0,Bo=Bo+Math.imul(ks,O0)|0,So=So+Math.imul(ks,Sn)|0;var w0=(co+mo|0)+((Bo&8191)<<13)|0;co=(So+(Bo>>>13)|0)+(w0>>>26)|0,w0&=67108863,mo=Math.imul(Fs,O0),Bo=Math.imul(Fs,Sn),Bo=Bo+Math.imul(d0,O0)|0,So=Math.imul(d0,Sn);var Ql=(co+mo|0)+((Bo&8191)<<13)|0;return co=(So+(Bo>>>13)|0)+(Ql>>>26)|0,Ql&=67108863,io[0]=T0,io[1]=An,io[2]=Pn,io[3]=Ln,io[4]=qn,io[5]=na,io[6]=ls,io[7]=Ns,io[8]=Qs,io[9]=p0,io[10]=l0,io[11]=S0,io[12]=yl,io[13]=Vt,io[14]=br,io[15]=lt,io[16]=Sl,io[17]=w0,io[18]=Ql,co!==0&&(io[19]=co,xt.length++),xt};Math.imul||(Nt=no);function eo(so,wo,xt){xt.negative=wo.negative^so.negative,xt.length=so.length+wo.length;for(var Mt=0,ho=0,io=0;io>>26)|0,ho+=co>>>26,co&=67108863}xt.words[io]=mo,Mt=co,co=ho}return Mt!==0?xt.words[io]=Mt:xt.length--,xt.strip()}function Wt(so,wo,xt){var Mt=new St;return Mt.mulp(so,wo,xt)}tt.prototype.mulTo=function(so,wo){var xt,Mt=this.length+so.length;return this.length===10&&so.length===10?xt=Nt(this,so,wo):Mt<63?xt=no(this,so,wo):Mt<1024?xt=eo(this,so,wo):xt=Wt(this,so,wo),xt};function St(so,wo){this.x=so,this.y=wo}St.prototype.makeRBT=function(so){for(var wo=new Array(so),xt=tt.prototype._countBits(so)-1,Mt=0;Mt>=1;return Mt},St.prototype.permute=function(so,wo,xt,Mt,ho,io){for(var co=0;co>>1)ho++;return 1<>>13,xt[2*io+1]=ho&8191,ho=ho>>>13;for(io=2*wo;io>=26,wo+=Mt/67108864|0,wo+=ho>>>26,this.words[xt]=ho&67108863}return wo!==0&&(this.words[xt]=wo,this.length++),this},tt.prototype.muln=function(so){return this.clone().imuln(so)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(so){var wo=po(so);if(wo.length===0)return new tt(1);for(var xt=this,Mt=0;Mt=0);var wo=so%26,xt=(so-wo)/26,Mt=67108863>>>26-wo<<26-wo,ho;if(wo!==0){var io=0;for(ho=0;ho>>26-wo}io&&(this.words[ho]=io,this.length++)}if(xt!==0){for(ho=this.length-1;ho>=0;ho--)this.words[ho+xt]=this.words[ho];for(ho=0;ho=0);var Mt;wo?Mt=(wo-wo%26)/26:Mt=0;var ho=so%26,io=Math.min((so-ho)/26,this.length),co=67108863^67108863>>>ho<io)for(this.length-=io,Bo=0;Bo=0&&(So!==0||Bo>=Mt);Bo--){var Tt=this.words[Bo]|0;this.words[Bo]=So<<26-ho|Tt>>>ho,So=Tt&co}return mo&&So!==0&&(mo.words[mo.length++]=So),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(so,wo,xt){return Cr(this.negative===0),this.iushrn(so,wo,xt)},tt.prototype.shln=function(so){return this.clone().ishln(so)},tt.prototype.ushln=function(so){return this.clone().iushln(so)},tt.prototype.shrn=function(so){return this.clone().ishrn(so)},tt.prototype.ushrn=function(so){return this.clone().iushrn(so)},tt.prototype.testn=function(so){Cr(typeof so=="number"&&so>=0);var wo=so%26,xt=(so-wo)/26,Mt=1<=0);var wo=so%26,xt=(so-wo)/26;if(Cr(this.negative===0,"imaskn works only with positive numbers"),this.length<=xt)return this;if(wo!==0&&xt++,this.length=Math.min(xt,this.length),wo!==0){var Mt=67108863^67108863>>>wo<=67108864;wo++)this.words[wo]-=67108864,wo===this.length-1?this.words[wo+1]=1:this.words[wo+1]++;return this.length=Math.max(this.length,wo+1),this},tt.prototype.isubn=function(so){if(Cr(typeof so=="number"),Cr(so<67108864),so<0)return this.iaddn(-so);if(this.negative!==0)return this.negative=0,this.iaddn(so),this.negative=1,this;if(this.words[0]-=so,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var wo=0;wo>26)-(mo/67108864|0),this.words[ho+xt]=io&67108863}for(;ho>26,this.words[ho+xt]=io&67108863;if(co===0)return this.strip();for(Cr(co===-1),co=0,ho=0;ho>26,this.words[ho]=io&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(so,wo){var xt=this.length-so.length,Mt=this.clone(),ho=so,io=ho.words[ho.length-1]|0,co=this._countBits(io);xt=26-co,xt!==0&&(ho=ho.ushln(xt),Mt.iushln(xt),io=ho.words[ho.length-1]|0);var mo=Mt.length-ho.length,Bo;if(wo!=="mod"){Bo=new tt(null),Bo.length=mo+1,Bo.words=new Array(Bo.length);for(var So=0;So=0;vo--){var Co=(Mt.words[ho.length+vo]|0)*67108864+(Mt.words[ho.length+vo-1]|0);for(Co=Math.min(Co/io|0,67108863),Mt._ishlnsubmul(ho,Co,vo);Mt.negative!==0;)Co--,Mt.negative=0,Mt._ishlnsubmul(ho,1,vo),Mt.isZero()||(Mt.negative^=1);Bo&&(Bo.words[vo]=Co)}return Bo&&Bo.strip(),Mt.strip(),wo!=="div"&&xt!==0&&Mt.iushrn(xt),{div:Bo||null,mod:Mt}},tt.prototype.divmod=function(so,wo,xt){if(Cr(!so.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var Mt,ho,io;return this.negative!==0&&so.negative===0?(io=this.neg().divmod(so,wo),wo!=="mod"&&(Mt=io.div.neg()),wo!=="div"&&(ho=io.mod.neg(),xt&&ho.negative!==0&&ho.iadd(so)),{div:Mt,mod:ho}):this.negative===0&&so.negative!==0?(io=this.divmod(so.neg(),wo),wo!=="mod"&&(Mt=io.div.neg()),{div:Mt,mod:io.mod}):this.negative&so.negative?(io=this.neg().divmod(so.neg(),wo),wo!=="div"&&(ho=io.mod.neg(),xt&&ho.negative!==0&&ho.isub(so)),{div:io.div,mod:ho}):so.length>this.length||this.cmp(so)<0?{div:new tt(0),mod:this}:so.length===1?wo==="div"?{div:this.divn(so.words[0]),mod:null}:wo==="mod"?{div:null,mod:new tt(this.modn(so.words[0]))}:{div:this.divn(so.words[0]),mod:new tt(this.modn(so.words[0]))}:this._wordDiv(so,wo)},tt.prototype.div=function(so){return this.divmod(so,"div",!1).div},tt.prototype.mod=function(so){return this.divmod(so,"mod",!1).mod},tt.prototype.umod=function(so){return this.divmod(so,"mod",!0).mod},tt.prototype.divRound=function(so){var wo=this.divmod(so);if(wo.mod.isZero())return wo.div;var xt=wo.div.negative!==0?wo.mod.isub(so):wo.mod,Mt=so.ushrn(1),ho=so.andln(1),io=xt.cmp(Mt);return io<0||ho===1&&io===0?wo.div:wo.div.negative!==0?wo.div.isubn(1):wo.div.iaddn(1)},tt.prototype.modn=function(so){Cr(so<=67108863);for(var wo=(1<<26)%so,xt=0,Mt=this.length-1;Mt>=0;Mt--)xt=(wo*xt+(this.words[Mt]|0))%so;return xt},tt.prototype.idivn=function(so){Cr(so<=67108863);for(var wo=0,xt=this.length-1;xt>=0;xt--){var Mt=(this.words[xt]|0)+wo*67108864;this.words[xt]=Mt/so|0,wo=Mt%so}return this.strip()},tt.prototype.divn=function(so){return this.clone().idivn(so)},tt.prototype.egcd=function(so){Cr(so.negative===0),Cr(!so.isZero());var wo=this,xt=so.clone();wo.negative!==0?wo=wo.umod(so):wo=wo.clone();for(var Mt=new tt(1),ho=new tt(0),io=new tt(0),co=new tt(1),mo=0;wo.isEven()&&xt.isEven();)wo.iushrn(1),xt.iushrn(1),++mo;for(var Bo=xt.clone(),So=wo.clone();!wo.isZero();){for(var Tt=0,vo=1;!(wo.words[0]&vo)&&Tt<26;++Tt,vo<<=1);if(Tt>0)for(wo.iushrn(Tt);Tt-- >0;)(Mt.isOdd()||ho.isOdd())&&(Mt.iadd(Bo),ho.isub(So)),Mt.iushrn(1),ho.iushrn(1);for(var Co=0,xo=1;!(xt.words[0]&xo)&&Co<26;++Co,xo<<=1);if(Co>0)for(xt.iushrn(Co);Co-- >0;)(io.isOdd()||co.isOdd())&&(io.iadd(Bo),co.isub(So)),io.iushrn(1),co.iushrn(1);wo.cmp(xt)>=0?(wo.isub(xt),Mt.isub(io),ho.isub(co)):(xt.isub(wo),io.isub(Mt),co.isub(ho))}return{a:io,b:co,gcd:xt.iushln(mo)}},tt.prototype._invmp=function(so){Cr(so.negative===0),Cr(!so.isZero());var wo=this,xt=so.clone();wo.negative!==0?wo=wo.umod(so):wo=wo.clone();for(var Mt=new tt(1),ho=new tt(0),io=xt.clone();wo.cmpn(1)>0&&xt.cmpn(1)>0;){for(var co=0,mo=1;!(wo.words[0]&mo)&&co<26;++co,mo<<=1);if(co>0)for(wo.iushrn(co);co-- >0;)Mt.isOdd()&&Mt.iadd(io),Mt.iushrn(1);for(var Bo=0,So=1;!(xt.words[0]&So)&&Bo<26;++Bo,So<<=1);if(Bo>0)for(xt.iushrn(Bo);Bo-- >0;)ho.isOdd()&&ho.iadd(io),ho.iushrn(1);wo.cmp(xt)>=0?(wo.isub(xt),Mt.isub(ho)):(xt.isub(wo),ho.isub(Mt))}var Tt;return wo.cmpn(1)===0?Tt=Mt:Tt=ho,Tt.cmpn(0)<0&&Tt.iadd(so),Tt},tt.prototype.gcd=function(so){if(this.isZero())return so.abs();if(so.isZero())return this.abs();var wo=this.clone(),xt=so.clone();wo.negative=0,xt.negative=0;for(var Mt=0;wo.isEven()&&xt.isEven();Mt++)wo.iushrn(1),xt.iushrn(1);do{for(;wo.isEven();)wo.iushrn(1);for(;xt.isEven();)xt.iushrn(1);var ho=wo.cmp(xt);if(ho<0){var io=wo;wo=xt,xt=io}else if(ho===0||xt.cmpn(1)===0)break;wo.isub(xt)}while(!0);return xt.iushln(Mt)},tt.prototype.invm=function(so){return this.egcd(so).a.umod(so)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(so){return this.words[0]&so},tt.prototype.bincn=function(so){Cr(typeof so=="number");var wo=so%26,xt=(so-wo)/26,Mt=1<>>26,co&=67108863,this.words[io]=co}return ho!==0&&(this.words[io]=ho,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(so){var wo=so<0;if(this.negative!==0&&!wo)return-1;if(this.negative===0&&wo)return 1;this.strip();var xt;if(this.length>1)xt=1;else{wo&&(so=-so),Cr(so<=67108863,"Number is too big");var Mt=this.words[0]|0;xt=Mt===so?0:Mtso.length)return 1;if(this.length=0;xt--){var Mt=this.words[xt]|0,ho=so.words[xt]|0;if(Mt!==ho){Mtho&&(wo=1);break}}return wo},tt.prototype.gtn=function(so){return this.cmpn(so)===1},tt.prototype.gt=function(so){return this.cmp(so)===1},tt.prototype.gten=function(so){return this.cmpn(so)>=0},tt.prototype.gte=function(so){return this.cmp(so)>=0},tt.prototype.ltn=function(so){return this.cmpn(so)===-1},tt.prototype.lt=function(so){return this.cmp(so)===-1},tt.prototype.lten=function(so){return this.cmpn(so)<=0},tt.prototype.lte=function(so){return this.cmp(so)<=0},tt.prototype.eqn=function(so){return this.cmpn(so)===0},tt.prototype.eq=function(so){return this.cmp(so)===0},tt.red=function(so){return new pt(so)},tt.prototype.toRed=function(so){return Cr(!this.red,"Already a number in reduction context"),Cr(this.negative===0,"red works only with positives"),so.convertTo(this)._forceRed(so)},tt.prototype.fromRed=function(){return Cr(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(so){return this.red=so,this},tt.prototype.forceRed=function(so){return Cr(!this.red,"Already a number in reduction context"),this._forceRed(so)},tt.prototype.redAdd=function(so){return Cr(this.red,"redAdd works only with red numbers"),this.red.add(this,so)},tt.prototype.redIAdd=function(so){return Cr(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,so)},tt.prototype.redSub=function(so){return Cr(this.red,"redSub works only with red numbers"),this.red.sub(this,so)},tt.prototype.redISub=function(so){return Cr(this.red,"redISub works only with red numbers"),this.red.isub(this,so)},tt.prototype.redShl=function(so){return Cr(this.red,"redShl works only with red numbers"),this.red.shl(this,so)},tt.prototype.redMul=function(so){return Cr(this.red,"redMul works only with red numbers"),this.red._verify2(this,so),this.red.mul(this,so)},tt.prototype.redIMul=function(so){return Cr(this.red,"redMul works only with red numbers"),this.red._verify2(this,so),this.red.imul(this,so)},tt.prototype.redSqr=function(){return Cr(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return Cr(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return Cr(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return Cr(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return Cr(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(so){return Cr(this.red&&!so.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,so)};var Ot={k256:null,p224:null,p192:null,p25519:null};function uo(so,wo){this.name=so,this.p=new tt(wo,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}uo.prototype._tmp=function(){var so=new tt(null);return so.words=new Array(Math.ceil(this.n/13)),so},uo.prototype.ireduce=function(so){var wo=so,xt;do this.split(wo,this.tmp),wo=this.imulK(wo),wo=wo.iadd(this.tmp),xt=wo.bitLength();while(xt>this.n);var Mt=xt0?wo.isub(this.p):wo.strip!==void 0?wo.strip():wo._strip(),wo},uo.prototype.split=function(so,wo){so.iushrn(this.n,0,wo)},uo.prototype.imulK=function(so){return so.imul(this.k)};function go(){uo.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}Vr(go,uo),go.prototype.split=function(so,wo){for(var xt=4194303,Mt=Math.min(so.length,9),ho=0;ho>>22,io=co}io>>>=22,so.words[ho-10]=io,io===0&&so.length>10?so.length-=10:so.length-=9},go.prototype.imulK=function(so){so.words[so.length]=0,so.words[so.length+1]=0,so.length+=2;for(var wo=0,xt=0;xt>>=26,so.words[xt]=ho,wo=Mt}return wo!==0&&(so.words[so.length++]=wo),so},tt._prime=function(so){if(Ot[so])return Ot[so];var wo;if(so==="k256")wo=new go;else if(so==="p224")wo=new bo;else if(so==="p192")wo=new oo;else if(so==="p25519")wo=new Ro;else throw new Error("Unknown prime "+so);return Ot[so]=wo,wo};function pt(so){if(typeof so=="string"){var wo=tt._prime(so);this.m=wo.p,this.prime=wo}else Cr(so.gtn(1),"modulus must be greater than 1"),this.m=so,this.prime=null}pt.prototype._verify1=function(so){Cr(so.negative===0,"red works only with positives"),Cr(so.red,"red works only with red numbers")},pt.prototype._verify2=function(so,wo){Cr((so.negative|wo.negative)===0,"red works only with positives"),Cr(so.red&&so.red===wo.red,"red works only with red numbers")},pt.prototype.imod=function(so){return this.prime?this.prime.ireduce(so)._forceRed(this):so.umod(this.m)._forceRed(this)},pt.prototype.neg=function(so){return so.isZero()?so.clone():this.m.sub(so)._forceRed(this)},pt.prototype.add=function(so,wo){this._verify2(so,wo);var xt=so.add(wo);return xt.cmp(this.m)>=0&&xt.isub(this.m),xt._forceRed(this)},pt.prototype.iadd=function(so,wo){this._verify2(so,wo);var xt=so.iadd(wo);return xt.cmp(this.m)>=0&&xt.isub(this.m),xt},pt.prototype.sub=function(so,wo){this._verify2(so,wo);var xt=so.sub(wo);return xt.cmpn(0)<0&&xt.iadd(this.m),xt._forceRed(this)},pt.prototype.isub=function(so,wo){this._verify2(so,wo);var xt=so.isub(wo);return xt.cmpn(0)<0&&xt.iadd(this.m),xt},pt.prototype.shl=function(so,wo){return this._verify1(so),this.imod(so.ushln(wo))},pt.prototype.imul=function(so,wo){return this._verify2(so,wo),this.imod(so.imul(wo))},pt.prototype.mul=function(so,wo){return this._verify2(so,wo),this.imod(so.mul(wo))},pt.prototype.isqr=function(so){return this.imul(so,so.clone())},pt.prototype.sqr=function(so){return this.mul(so,so)},pt.prototype.sqrt=function(so){if(so.isZero())return so.clone();var wo=this.m.andln(3);if(Cr(wo%2===1),wo===3){var xt=this.m.add(new tt(1)).iushrn(2);return this.pow(so,xt)}for(var Mt=this.m.subn(1),ho=0;!Mt.isZero()&&Mt.andln(1)===0;)ho++,Mt.iushrn(1);Cr(!Mt.isZero());var io=new tt(1).toRed(this),co=io.redNeg(),mo=this.m.subn(1).iushrn(1),Bo=this.m.bitLength();for(Bo=new tt(2*Bo*Bo).toRed(this);this.pow(Bo,mo).cmp(co)!==0;)Bo.redIAdd(co);for(var So=this.pow(Bo,Mt),Tt=this.pow(so,Mt.addn(1).iushrn(1)),vo=this.pow(so,Mt),Co=ho;vo.cmp(io)!==0;){for(var xo=vo,Po=0;xo.cmp(io)!==0;Po++)xo=xo.redSqr();Cr(Po=0;ho--){for(var So=wo.words[ho],Tt=Bo-1;Tt>=0;Tt--){var vo=So>>Tt&1;if(io!==Mt[0]&&(io=this.sqr(io)),vo===0&&co===0){mo=0;continue}co<<=1,co|=vo,mo++,!(mo!==xt&&(ho!==0||Tt!==0))&&(io=this.mul(io,Mt[co]),mo=0,co=0)}Bo=26}return io},pt.prototype.convertTo=function(so){var wo=so.umod(this.m);return wo===so?wo.clone():wo},pt.prototype.convertFrom=function(so){var wo=so.clone();return wo.red=null,wo},tt.mont=function(so){return new lo(so)};function lo(so){pt.call(this,so),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}Vr(lo,pt),lo.prototype.convertTo=function(so){return this.imod(so.ushln(this.shift))},lo.prototype.convertFrom=function(so){var wo=this.imod(so.mul(this.rinv));return wo.red=null,wo},lo.prototype.imul=function(so,wo){if(so.isZero()||wo.isZero())return so.words[0]=0,so.length=1,so;var xt=so.imul(wo),Mt=xt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ho=xt.isub(Mt).iushrn(this.shift),io=ho;return ho.cmp(this.m)>=0?io=ho.isub(this.m):ho.cmpn(0)<0&&(io=ho.iadd(this.m)),io._forceRed(this)},lo.prototype.mul=function(so,wo){if(so.isZero()||wo.isZero())return new tt(0)._forceRed(this);var xt=so.mul(wo),Mt=xt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ho=xt.isub(Mt).iushrn(this.shift),io=ho;return ho.cmp(this.m)>=0?io=ho.isub(this.m):ho.cmpn(0)<0&&(io=ho.iadd(this.m)),io._forceRed(this)},lo.prototype.invm=function(so){var wo=this.imod(so._invmp(this.m).mul(this.r2));return wo._forceRed(this)}})(_e,commonjsGlobal)}(bn);var bnExports=bn.exports,minimalisticAssert=assert$h;function assert$h(_e,cr){if(!_e)throw new Error(cr||"Assertion failed")}assert$h.equal=function _e(cr,gr,Cr){if(cr!=gr)throw new Error(Cr||"Assertion failed: "+cr+" != "+gr)};var utils$O={};(function(_e){var cr=_e;function gr(tt,nt){if(Array.isArray(tt))return tt.slice();if(!tt)return[];var st=[];if(typeof tt!="string"){for(var dt=0;dt>8,ro=kt&255;qt?st.push(qt,ro):st.push(ro)}return st}cr.toArray=gr;function Cr(tt){return tt.length===1?"0"+tt:tt}cr.zero2=Cr;function Vr(tt){for(var nt="",st=0;st(Nt>>1)-1?Wt=(Nt>>1)-St:Wt=St,eo.isubn(Wt)):Wt=0,po[no]=Wt,eo.iushrn(1)}return po}cr.getNAF=tt;function nt(qt,ro){var ht=[[],[]];qt=qt.clone(),ro=ro.clone();for(var po=0,no=0,Nt;qt.cmpn(-po)>0||ro.cmpn(-no)>0;){var eo=qt.andln(3)+po&3,Wt=ro.andln(3)+no&3;eo===3&&(eo=-1),Wt===3&&(Wt=-1);var St;eo&1?(Nt=qt.andln(7)+po&7,(Nt===3||Nt===5)&&Wt===2?St=-eo:St=eo):St=0,ht[0].push(St);var Ot;Wt&1?(Nt=ro.andln(7)+no&7,(Nt===3||Nt===5)&&eo===2?Ot=-Wt:Ot=Wt):Ot=0,ht[1].push(Ot),2*po===St+1&&(po=1-po),2*no===Ot+1&&(no=1-no),qt.iushrn(1),ro.iushrn(1)}return ht}cr.getJSF=nt;function st(qt,ro,ht){var po="_"+ro;qt.prototype[ro]=function(){return this[po]!==void 0?this[po]:this[po]=ht.call(this)}}cr.cachedProperty=st;function dt(qt){return typeof qt=="string"?cr.toArray(qt,"hex"):qt}cr.parseBytes=dt;function kt(qt){return new gr(qt,"hex","le")}cr.intFromLE=kt}(utils$P);var brorand={exports:{}},r$6;brorand.exports=function _e(cr){return r$6||(r$6=new Rand(null)),r$6.generate(cr)};function Rand(_e){this.rand=_e}if(brorand.exports.Rand=Rand,Rand.prototype.generate=function _e(cr){return this._rand(cr)},Rand.prototype._rand=function _e(cr){if(this.rand.getBytes)return this.rand.getBytes(cr);for(var gr=new Uint8Array(cr),Cr=0;Cr0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base=BaseCurve;BaseCurve.prototype.point=function _e(){throw new Error("Not implemented")},BaseCurve.prototype.validate=function _e(){throw new Error("Not implemented")},BaseCurve.prototype._fixedNafMul=function _e(cr,gr){assert$g(cr.precomputed);var Cr=cr._getDoubles(),Vr=getNAF(gr,1,this._bitLength),tt=(1<=st;kt--)dt=(dt<<1)+Vr[kt];nt.push(dt)}for(var qt=this.jpoint(null,null,null),ro=this.jpoint(null,null,null),ht=tt;ht>0;ht--){for(st=0;st=0;dt--){for(var kt=0;dt>=0&&nt[dt]===0;dt--)kt++;if(dt>=0&&kt++,st=st.dblp(kt),dt<0)break;var qt=nt[dt];assert$g(qt!==0),cr.type==="affine"?qt>0?st=st.mixedAdd(tt[qt-1>>1]):st=st.mixedAdd(tt[-qt-1>>1].neg()):qt>0?st=st.add(tt[qt-1>>1]):st=st.add(tt[-qt-1>>1].neg())}return cr.type==="affine"?st.toP():st},BaseCurve.prototype._wnafMulAdd=function _e(cr,gr,Cr,Vr,tt){var nt=this._wnafT1,st=this._wnafT2,dt=this._wnafT3,kt=0,qt,ro,ht;for(qt=0;qt=1;qt-=2){var no=qt-1,Nt=qt;if(nt[no]!==1||nt[Nt]!==1){dt[no]=getNAF(Cr[no],nt[no],this._bitLength),dt[Nt]=getNAF(Cr[Nt],nt[Nt],this._bitLength),kt=Math.max(dt[no].length,kt),kt=Math.max(dt[Nt].length,kt);continue}var eo=[gr[no],null,null,gr[Nt]];gr[no].y.cmp(gr[Nt].y)===0?(eo[1]=gr[no].add(gr[Nt]),eo[2]=gr[no].toJ().mixedAdd(gr[Nt].neg())):gr[no].y.cmp(gr[Nt].y.redNeg())===0?(eo[1]=gr[no].toJ().mixedAdd(gr[Nt]),eo[2]=gr[no].add(gr[Nt].neg())):(eo[1]=gr[no].toJ().mixedAdd(gr[Nt]),eo[2]=gr[no].toJ().mixedAdd(gr[Nt].neg()));var Wt=[-3,-1,-5,-7,0,7,5,1,3],St=getJSF(Cr[no],Cr[Nt]);for(kt=Math.max(St[0].length,kt),dt[no]=new Array(kt),dt[Nt]=new Array(kt),ro=0;ro=0;qt--){for(var oo=0;qt>=0;){var Ro=!0;for(ro=0;ro=0&&oo++,go=go.dblp(oo),qt<0)break;for(ro=0;ro0?ht=st[ro][pt-1>>1]:pt<0&&(ht=st[ro][-pt-1>>1].neg()),ht.type==="affine"?go=go.mixedAdd(ht):go=go.add(ht))}}for(qt=0;qt=Math.ceil((cr.bitLength()+1)/gr.step):!1},BasePoint.prototype._getDoubles=function _e(cr,gr){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var Cr=[this],Vr=this,tt=0;tt=0&&(po=kt,no=qt),ro.negative&&(ro=ro.neg(),ht=ht.neg()),po.negative&&(po=po.neg(),no=no.neg()),[{a:ro,b:ht},{a:po,b:no}]},ShortCurve.prototype._endoSplit=function _e(cr){var gr=this.endo.basis,Cr=gr[0],Vr=gr[1],tt=Vr.b.mul(cr).divRound(this.n),nt=Cr.b.neg().mul(cr).divRound(this.n),st=tt.mul(Cr.a),dt=nt.mul(Vr.a),kt=tt.mul(Cr.b),qt=nt.mul(Vr.b),ro=cr.sub(st).sub(dt),ht=kt.add(qt).neg();return{k1:ro,k2:ht}},ShortCurve.prototype.pointFromX=function _e(cr,gr){cr=new BN$6(cr,16),cr.red||(cr=cr.toRed(this.red));var Cr=cr.redSqr().redMul(cr).redIAdd(cr.redMul(this.a)).redIAdd(this.b),Vr=Cr.redSqrt();if(Vr.redSqr().redSub(Cr).cmp(this.zero)!==0)throw new Error("invalid point");var tt=Vr.fromRed().isOdd();return(gr&&!tt||!gr&&tt)&&(Vr=Vr.redNeg()),this.point(cr,Vr)},ShortCurve.prototype.validate=function _e(cr){if(cr.inf)return!0;var gr=cr.x,Cr=cr.y,Vr=this.a.redMul(gr),tt=gr.redSqr().redMul(gr).redIAdd(Vr).redIAdd(this.b);return Cr.redSqr().redISub(tt).cmpn(0)===0},ShortCurve.prototype._endoWnafMulAdd=function _e(cr,gr,Cr){for(var Vr=this._endoWnafT1,tt=this._endoWnafT2,nt=0;nt":""},Point$2.prototype.isInfinity=function _e(){return this.inf},Point$2.prototype.add=function _e(cr){if(this.inf)return cr;if(cr.inf)return this;if(this.eq(cr))return this.dbl();if(this.neg().eq(cr))return this.curve.point(null,null);if(this.x.cmp(cr.x)===0)return this.curve.point(null,null);var gr=this.y.redSub(cr.y);gr.cmpn(0)!==0&&(gr=gr.redMul(this.x.redSub(cr.x).redInvm()));var Cr=gr.redSqr().redISub(this.x).redISub(cr.x),Vr=gr.redMul(this.x.redSub(Cr)).redISub(this.y);return this.curve.point(Cr,Vr)},Point$2.prototype.dbl=function _e(){if(this.inf)return this;var cr=this.y.redAdd(this.y);if(cr.cmpn(0)===0)return this.curve.point(null,null);var gr=this.curve.a,Cr=this.x.redSqr(),Vr=cr.redInvm(),tt=Cr.redAdd(Cr).redIAdd(Cr).redIAdd(gr).redMul(Vr),nt=tt.redSqr().redISub(this.x.redAdd(this.x)),st=tt.redMul(this.x.redSub(nt)).redISub(this.y);return this.curve.point(nt,st)},Point$2.prototype.getX=function _e(){return this.x.fromRed()},Point$2.prototype.getY=function _e(){return this.y.fromRed()},Point$2.prototype.mul=function _e(cr){return cr=new BN$6(cr,16),this.isInfinity()?this:this._hasDoubles(cr)?this.curve._fixedNafMul(this,cr):this.curve.endo?this.curve._endoWnafMulAdd([this],[cr]):this.curve._wnafMul(this,cr)},Point$2.prototype.mulAdd=function _e(cr,gr,Cr){var Vr=[this,gr],tt=[cr,Cr];return this.curve.endo?this.curve._endoWnafMulAdd(Vr,tt):this.curve._wnafMulAdd(1,Vr,tt,2)},Point$2.prototype.jmulAdd=function _e(cr,gr,Cr){var Vr=[this,gr],tt=[cr,Cr];return this.curve.endo?this.curve._endoWnafMulAdd(Vr,tt,!0):this.curve._wnafMulAdd(1,Vr,tt,2,!0)},Point$2.prototype.eq=function _e(cr){return this===cr||this.inf===cr.inf&&(this.inf||this.x.cmp(cr.x)===0&&this.y.cmp(cr.y)===0)},Point$2.prototype.neg=function _e(cr){if(this.inf)return this;var gr=this.curve.point(this.x,this.y.redNeg());if(cr&&this.precomputed){var Cr=this.precomputed,Vr=function(tt){return tt.neg()};gr.precomputed={naf:Cr.naf&&{wnd:Cr.naf.wnd,points:Cr.naf.points.map(Vr)},doubles:Cr.doubles&&{step:Cr.doubles.step,points:Cr.doubles.points.map(Vr)}}}return gr},Point$2.prototype.toJ=function _e(){if(this.inf)return this.curve.jpoint(null,null,null);var cr=this.curve.jpoint(this.x,this.y,this.curve.one);return cr};function JPoint(_e,cr,gr,Cr){Base$2.BasePoint.call(this,_e,"jacobian"),cr===null&&gr===null&&Cr===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$6(0)):(this.x=new BN$6(cr,16),this.y=new BN$6(gr,16),this.z=new BN$6(Cr,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 _e(cr,gr,Cr){return new JPoint(this,cr,gr,Cr)},JPoint.prototype.toP=function _e(){if(this.isInfinity())return this.curve.point(null,null);var cr=this.z.redInvm(),gr=cr.redSqr(),Cr=this.x.redMul(gr),Vr=this.y.redMul(gr).redMul(cr);return this.curve.point(Cr,Vr)},JPoint.prototype.neg=function _e(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JPoint.prototype.add=function _e(cr){if(this.isInfinity())return cr;if(cr.isInfinity())return this;var gr=cr.z.redSqr(),Cr=this.z.redSqr(),Vr=this.x.redMul(gr),tt=cr.x.redMul(Cr),nt=this.y.redMul(gr.redMul(cr.z)),st=cr.y.redMul(Cr.redMul(this.z)),dt=Vr.redSub(tt),kt=nt.redSub(st);if(dt.cmpn(0)===0)return kt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var qt=dt.redSqr(),ro=qt.redMul(dt),ht=Vr.redMul(qt),po=kt.redSqr().redIAdd(ro).redISub(ht).redISub(ht),no=kt.redMul(ht.redISub(po)).redISub(nt.redMul(ro)),Nt=this.z.redMul(cr.z).redMul(dt);return this.curve.jpoint(po,no,Nt)},JPoint.prototype.mixedAdd=function _e(cr){if(this.isInfinity())return cr.toJ();if(cr.isInfinity())return this;var gr=this.z.redSqr(),Cr=this.x,Vr=cr.x.redMul(gr),tt=this.y,nt=cr.y.redMul(gr).redMul(this.z),st=Cr.redSub(Vr),dt=tt.redSub(nt);if(st.cmpn(0)===0)return dt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var kt=st.redSqr(),qt=kt.redMul(st),ro=Cr.redMul(kt),ht=dt.redSqr().redIAdd(qt).redISub(ro).redISub(ro),po=dt.redMul(ro.redISub(ht)).redISub(tt.redMul(qt)),no=this.z.redMul(st);return this.curve.jpoint(ht,po,no)},JPoint.prototype.dblp=function _e(cr){if(cr===0)return this;if(this.isInfinity())return this;if(!cr)return this.dbl();var gr;if(this.curve.zeroA||this.curve.threeA){var Cr=this;for(gr=0;gr=0)return!1;if(Cr.redIAdd(tt),this.x.cmp(Cr)===0)return!0}},JPoint.prototype.inspect=function _e(){return this.isInfinity()?"":""},JPoint.prototype.isInfinity=function _e(){return this.z.cmpn(0)===0};var BN$5=bnExports,inherits$3=inherits_browserExports,Base$1=base,utils$L=utils$P;function MontCurve(_e){Base$1.call(this,"mont",_e),this.a=new BN$5(_e.a,16).toRed(this.red),this.b=new BN$5(_e.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 _e(cr){var gr=cr.normalize().x,Cr=gr.redSqr(),Vr=Cr.redMul(gr).redAdd(Cr.redMul(this.a)).redAdd(gr),tt=Vr.redSqrt();return tt.redSqr().cmp(Vr)===0};function Point$1(_e,cr,gr){Base$1.BasePoint.call(this,_e,"projective"),cr===null&&gr===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$5(cr,16),this.z=new BN$5(gr,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 _e(cr,gr){return this.point(utils$L.toArray(cr,gr),1)},MontCurve.prototype.point=function _e(cr,gr){return new Point$1(this,cr,gr)},MontCurve.prototype.pointFromJSON=function _e(cr){return Point$1.fromJSON(this,cr)},Point$1.prototype.precompute=function _e(){},Point$1.prototype._encode=function _e(){return this.getX().toArray("be",this.curve.p.byteLength())},Point$1.fromJSON=function _e(cr,gr){return new Point$1(cr,gr[0],gr[1]||cr.one)},Point$1.prototype.inspect=function _e(){return this.isInfinity()?"":""},Point$1.prototype.isInfinity=function _e(){return this.z.cmpn(0)===0},Point$1.prototype.dbl=function _e(){var cr=this.x.redAdd(this.z),gr=cr.redSqr(),Cr=this.x.redSub(this.z),Vr=Cr.redSqr(),tt=gr.redSub(Vr),nt=gr.redMul(Vr),st=tt.redMul(Vr.redAdd(this.curve.a24.redMul(tt)));return this.curve.point(nt,st)},Point$1.prototype.add=function _e(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.diffAdd=function _e(cr,gr){var Cr=this.x.redAdd(this.z),Vr=this.x.redSub(this.z),tt=cr.x.redAdd(cr.z),nt=cr.x.redSub(cr.z),st=nt.redMul(Cr),dt=tt.redMul(Vr),kt=gr.z.redMul(st.redAdd(dt).redSqr()),qt=gr.x.redMul(st.redISub(dt).redSqr());return this.curve.point(kt,qt)},Point$1.prototype.mul=function _e(cr){for(var gr=cr.clone(),Cr=this,Vr=this.curve.point(null,null),tt=this,nt=[];gr.cmpn(0)!==0;gr.iushrn(1))nt.push(gr.andln(1));for(var st=nt.length-1;st>=0;st--)nt[st]===0?(Cr=Cr.diffAdd(Vr,tt),Vr=Vr.dbl()):(Vr=Cr.diffAdd(Vr,tt),Cr=Cr.dbl());return Vr},Point$1.prototype.mulAdd=function _e(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.jumlAdd=function _e(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.eq=function _e(cr){return this.getX().cmp(cr.getX())===0},Point$1.prototype.normalize=function _e(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point$1.prototype.getX=function _e(){return this.normalize(),this.x.fromRed()};var utils$K=utils$P,BN$4=bnExports,inherits$2=inherits_browserExports,Base=base,assert$e=utils$K.assert;function EdwardsCurve(_e){this.twisted=(_e.a|0)!==1,this.mOneA=this.twisted&&(_e.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",_e),this.a=new BN$4(_e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$4(_e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$4(_e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$e(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(_e.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function _e(cr){return this.mOneA?cr.redNeg():this.a.redMul(cr)},EdwardsCurve.prototype._mulC=function _e(cr){return this.oneC?cr:this.c.redMul(cr)},EdwardsCurve.prototype.jpoint=function _e(cr,gr,Cr,Vr){return this.point(cr,gr,Cr,Vr)},EdwardsCurve.prototype.pointFromX=function _e(cr,gr){cr=new BN$4(cr,16),cr.red||(cr=cr.toRed(this.red));var Cr=cr.redSqr(),Vr=this.c2.redSub(this.a.redMul(Cr)),tt=this.one.redSub(this.c2.redMul(this.d).redMul(Cr)),nt=Vr.redMul(tt.redInvm()),st=nt.redSqrt();if(st.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");var dt=st.fromRed().isOdd();return(gr&&!dt||!gr&&dt)&&(st=st.redNeg()),this.point(cr,st)},EdwardsCurve.prototype.pointFromY=function _e(cr,gr){cr=new BN$4(cr,16),cr.red||(cr=cr.toRed(this.red));var Cr=cr.redSqr(),Vr=Cr.redSub(this.c2),tt=Cr.redMul(this.d).redMul(this.c2).redSub(this.a),nt=Vr.redMul(tt.redInvm());if(nt.cmp(this.zero)===0){if(gr)throw new Error("invalid point");return this.point(this.zero,cr)}var st=nt.redSqrt();if(st.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");return st.fromRed().isOdd()!==gr&&(st=st.redNeg()),this.point(st,cr)},EdwardsCurve.prototype.validate=function _e(cr){if(cr.isInfinity())return!0;cr.normalize();var gr=cr.x.redSqr(),Cr=cr.y.redSqr(),Vr=gr.redMul(this.a).redAdd(Cr),tt=this.c2.redMul(this.one.redAdd(this.d.redMul(gr).redMul(Cr)));return Vr.cmp(tt)===0};function Point(_e,cr,gr,Cr,Vr){Base.BasePoint.call(this,_e,"projective"),cr===null&&gr===null&&Cr===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(cr,16),this.y=new BN$4(gr,16),this.z=Cr?new BN$4(Cr,16):this.curve.one,this.t=Vr&&new BN$4(Vr,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 _e(cr){return Point.fromJSON(this,cr)},EdwardsCurve.prototype.point=function _e(cr,gr,Cr,Vr){return new Point(this,cr,gr,Cr,Vr)},Point.fromJSON=function _e(cr,gr){return new Point(cr,gr[0],gr[1],gr[2])},Point.prototype.inspect=function _e(){return this.isInfinity()?"":""},Point.prototype.isInfinity=function _e(){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 _e(){var cr=this.x.redSqr(),gr=this.y.redSqr(),Cr=this.z.redSqr();Cr=Cr.redIAdd(Cr);var Vr=this.curve._mulA(cr),tt=this.x.redAdd(this.y).redSqr().redISub(cr).redISub(gr),nt=Vr.redAdd(gr),st=nt.redSub(Cr),dt=Vr.redSub(gr),kt=tt.redMul(st),qt=nt.redMul(dt),ro=tt.redMul(dt),ht=st.redMul(nt);return this.curve.point(kt,qt,ht,ro)},Point.prototype._projDbl=function _e(){var cr=this.x.redAdd(this.y).redSqr(),gr=this.x.redSqr(),Cr=this.y.redSqr(),Vr,tt,nt,st,dt,kt;if(this.curve.twisted){st=this.curve._mulA(gr);var qt=st.redAdd(Cr);this.zOne?(Vr=cr.redSub(gr).redSub(Cr).redMul(qt.redSub(this.curve.two)),tt=qt.redMul(st.redSub(Cr)),nt=qt.redSqr().redSub(qt).redSub(qt)):(dt=this.z.redSqr(),kt=qt.redSub(dt).redISub(dt),Vr=cr.redSub(gr).redISub(Cr).redMul(kt),tt=qt.redMul(st.redSub(Cr)),nt=qt.redMul(kt))}else st=gr.redAdd(Cr),dt=this.curve._mulC(this.z).redSqr(),kt=st.redSub(dt).redSub(dt),Vr=this.curve._mulC(cr.redISub(st)).redMul(kt),tt=this.curve._mulC(st).redMul(gr.redISub(Cr)),nt=st.redMul(kt);return this.curve.point(Vr,tt,nt)},Point.prototype.dbl=function _e(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function _e(cr){var gr=this.y.redSub(this.x).redMul(cr.y.redSub(cr.x)),Cr=this.y.redAdd(this.x).redMul(cr.y.redAdd(cr.x)),Vr=this.t.redMul(this.curve.dd).redMul(cr.t),tt=this.z.redMul(cr.z.redAdd(cr.z)),nt=Cr.redSub(gr),st=tt.redSub(Vr),dt=tt.redAdd(Vr),kt=Cr.redAdd(gr),qt=nt.redMul(st),ro=dt.redMul(kt),ht=nt.redMul(kt),po=st.redMul(dt);return this.curve.point(qt,ro,po,ht)},Point.prototype._projAdd=function _e(cr){var gr=this.z.redMul(cr.z),Cr=gr.redSqr(),Vr=this.x.redMul(cr.x),tt=this.y.redMul(cr.y),nt=this.curve.d.redMul(Vr).redMul(tt),st=Cr.redSub(nt),dt=Cr.redAdd(nt),kt=this.x.redAdd(this.y).redMul(cr.x.redAdd(cr.y)).redISub(Vr).redISub(tt),qt=gr.redMul(st).redMul(kt),ro,ht;return this.curve.twisted?(ro=gr.redMul(dt).redMul(tt.redSub(this.curve._mulA(Vr))),ht=st.redMul(dt)):(ro=gr.redMul(dt).redMul(tt.redSub(Vr)),ht=this.curve._mulC(st).redMul(dt)),this.curve.point(qt,ro,ht)},Point.prototype.add=function _e(cr){return this.isInfinity()?cr:cr.isInfinity()?this:this.curve.extended?this._extAdd(cr):this._projAdd(cr)},Point.prototype.mul=function _e(cr){return this._hasDoubles(cr)?this.curve._fixedNafMul(this,cr):this.curve._wnafMul(this,cr)},Point.prototype.mulAdd=function _e(cr,gr,Cr){return this.curve._wnafMulAdd(1,[this,gr],[cr,Cr],2,!1)},Point.prototype.jmulAdd=function _e(cr,gr,Cr){return this.curve._wnafMulAdd(1,[this,gr],[cr,Cr],2,!0)},Point.prototype.normalize=function _e(){if(this.zOne)return this;var cr=this.z.redInvm();return this.x=this.x.redMul(cr),this.y=this.y.redMul(cr),this.t&&(this.t=this.t.redMul(cr)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function _e(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function _e(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function _e(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function _e(cr){return this===cr||this.getX().cmp(cr.getX())===0&&this.getY().cmp(cr.getY())===0},Point.prototype.eqXToP=function _e(cr){var gr=cr.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(gr)===0)return!0;for(var Cr=cr.clone(),Vr=this.curve.redN.redMul(this.z);;){if(Cr.iadd(this.curve.n),Cr.cmp(this.curve.p)>=0)return!1;if(gr.redIAdd(Vr),this.x.cmp(gr)===0)return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add,function(_e){var cr=_e;cr.base=base,cr.short=short,cr.mont=mont,cr.edwards=edwards}(curve);var curves$2={},hash$6={},utils$J={},assert$d=minimalisticAssert,inherits$1=inherits_browserExports;utils$J.inherits=inherits$1;function isSurrogatePair(_e,cr){return(_e.charCodeAt(cr)&64512)!==55296||cr<0||cr+1>=_e.length?!1:(_e.charCodeAt(cr+1)&64512)===56320}function toArray$2(_e,cr){if(Array.isArray(_e))return _e.slice();if(!_e)return[];var gr=[];if(typeof _e=="string")if(cr){if(cr==="hex")for(_e=_e.replace(/[^a-z0-9]+/ig,""),_e.length%2!==0&&(_e="0"+_e),Vr=0;Vr<_e.length;Vr+=2)gr.push(parseInt(_e[Vr]+_e[Vr+1],16))}else for(var Cr=0,Vr=0;Vr<_e.length;Vr++){var tt=_e.charCodeAt(Vr);tt<128?gr[Cr++]=tt:tt<2048?(gr[Cr++]=tt>>6|192,gr[Cr++]=tt&63|128):isSurrogatePair(_e,Vr)?(tt=65536+((tt&1023)<<10)+(_e.charCodeAt(++Vr)&1023),gr[Cr++]=tt>>18|240,gr[Cr++]=tt>>12&63|128,gr[Cr++]=tt>>6&63|128,gr[Cr++]=tt&63|128):(gr[Cr++]=tt>>12|224,gr[Cr++]=tt>>6&63|128,gr[Cr++]=tt&63|128)}else for(Vr=0;Vr<_e.length;Vr++)gr[Vr]=_e[Vr]|0;return gr}utils$J.toArray=toArray$2;function toHex(_e){for(var cr="",gr=0;gr<_e.length;gr++)cr+=zero2(_e[gr].toString(16));return cr}utils$J.toHex=toHex;function htonl(_e){var cr=_e>>>24|_e>>>8&65280|_e<<8&16711680|(_e&255)<<24;return cr>>>0}utils$J.htonl=htonl;function toHex32(_e,cr){for(var gr="",Cr=0;Cr<_e.length;Cr++){var Vr=_e[Cr];cr==="little"&&(Vr=htonl(Vr)),gr+=zero8(Vr.toString(16))}return gr}utils$J.toHex32=toHex32;function zero2(_e){return _e.length===1?"0"+_e:_e}utils$J.zero2=zero2;function zero8(_e){return _e.length===7?"0"+_e:_e.length===6?"00"+_e:_e.length===5?"000"+_e:_e.length===4?"0000"+_e:_e.length===3?"00000"+_e:_e.length===2?"000000"+_e:_e.length===1?"0000000"+_e:_e}utils$J.zero8=zero8;function join32(_e,cr,gr,Cr){var Vr=gr-cr;assert$d(Vr%4===0);for(var tt=new Array(Vr/4),nt=0,st=cr;nt>>0}return tt}utils$J.join32=join32;function split32(_e,cr){for(var gr=new Array(_e.length*4),Cr=0,Vr=0;Cr<_e.length;Cr++,Vr+=4){var tt=_e[Cr];cr==="big"?(gr[Vr]=tt>>>24,gr[Vr+1]=tt>>>16&255,gr[Vr+2]=tt>>>8&255,gr[Vr+3]=tt&255):(gr[Vr+3]=tt>>>24,gr[Vr+2]=tt>>>16&255,gr[Vr+1]=tt>>>8&255,gr[Vr]=tt&255)}return gr}utils$J.split32=split32;function rotr32$1(_e,cr){return _e>>>cr|_e<<32-cr}utils$J.rotr32=rotr32$1;function rotl32$2(_e,cr){return _e<>>32-cr}utils$J.rotl32=rotl32$2;function sum32$3(_e,cr){return _e+cr>>>0}utils$J.sum32=sum32$3;function sum32_3$1(_e,cr,gr){return _e+cr+gr>>>0}utils$J.sum32_3=sum32_3$1;function sum32_4$2(_e,cr,gr,Cr){return _e+cr+gr+Cr>>>0}utils$J.sum32_4=sum32_4$2;function sum32_5$2(_e,cr,gr,Cr,Vr){return _e+cr+gr+Cr+Vr>>>0}utils$J.sum32_5=sum32_5$2;function sum64$1(_e,cr,gr,Cr){var Vr=_e[cr],tt=_e[cr+1],nt=Cr+tt>>>0,st=(nt>>0,_e[cr+1]=nt}utils$J.sum64=sum64$1;function sum64_hi$1(_e,cr,gr,Cr){var Vr=cr+Cr>>>0,tt=(Vr>>0}utils$J.sum64_hi=sum64_hi$1;function sum64_lo$1(_e,cr,gr,Cr){var Vr=cr+Cr;return Vr>>>0}utils$J.sum64_lo=sum64_lo$1;function sum64_4_hi$1(_e,cr,gr,Cr,Vr,tt,nt,st){var dt=0,kt=cr;kt=kt+Cr>>>0,dt+=kt>>0,dt+=kt>>0,dt+=kt>>0}utils$J.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(_e,cr,gr,Cr,Vr,tt,nt,st){var dt=cr+Cr+tt+st;return dt>>>0}utils$J.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt){var qt=0,ro=cr;ro=ro+Cr>>>0,qt+=ro>>0,qt+=ro>>0,qt+=ro>>0,qt+=ro>>0}utils$J.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt){var qt=cr+Cr+tt+st+kt;return qt>>>0}utils$J.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(_e,cr,gr){var Cr=cr<<32-gr|_e>>>gr;return Cr>>>0}utils$J.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(_e,cr,gr){var Cr=_e<<32-gr|cr>>>gr;return Cr>>>0}utils$J.rotr64_lo=rotr64_lo$1;function shr64_hi$1(_e,cr,gr){return _e>>>gr}utils$J.shr64_hi=shr64_hi$1;function shr64_lo$1(_e,cr,gr){var Cr=_e<<32-gr|cr>>>gr;return Cr>>>0}utils$J.shr64_lo=shr64_lo$1;var common$7={},utils$I=utils$J,assert$c=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$7.BlockHash=BlockHash$4,BlockHash$4.prototype.update=function _e(cr,gr){if(cr=utils$I.toArray(cr,gr),this.pending?this.pending=this.pending.concat(cr):this.pending=cr,this.pendingTotal+=cr.length,this.pending.length>=this._delta8){cr=this.pending;var Cr=cr.length%this._delta8;this.pending=cr.slice(cr.length-Cr,cr.length),this.pending.length===0&&(this.pending=null),cr=utils$I.join32(cr,0,cr.length-Cr,this.endian);for(var Vr=0;Vr>>24&255,Vr[tt++]=cr>>>16&255,Vr[tt++]=cr>>>8&255,Vr[tt++]=cr&255}else for(Vr[tt++]=cr&255,Vr[tt++]=cr>>>8&255,Vr[tt++]=cr>>>16&255,Vr[tt++]=cr>>>24&255,Vr[tt++]=0,Vr[tt++]=0,Vr[tt++]=0,Vr[tt++]=0,nt=8;nt>>3}common$6.g0_256=g0_256$1;function g1_256$1(_e){return rotr32(_e,17)^rotr32(_e,19)^_e>>>10}common$6.g1_256=g1_256$1;var utils$G=utils$J,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$G.rotl32,sum32$2=utils$G.sum32,sum32_5$1=utils$G.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.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$G.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512,SHA1.outSize=160,SHA1.hmacStrength=80,SHA1.padLength=64,SHA1.prototype._update=function _e(cr,gr){for(var Cr=this.W,Vr=0;Vr<16;Vr++)Cr[Vr]=cr[gr+Vr];for(;Vrthis.blockSize&&(cr=new this.Hash().update(cr).digest()),assert$9(cr.length<=this.blockSize);for(var gr=cr.length;gr=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(cr,gr,Cr)}var hmacDrbg=HmacDRBG$1;HmacDRBG$1.prototype._init=function _e(cr,gr,Cr){var Vr=cr.concat(gr).concat(Cr);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var tt=0;tt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(cr.concat(Cr||[])),this._reseed=1},HmacDRBG$1.prototype.generate=function _e(cr,gr,Cr,Vr){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof gr!="string"&&(Vr=Cr,Cr=gr,gr=null),Cr&&(Cr=utils$z.toArray(Cr,Vr||"hex"),this._update(Cr));for(var tt=[];tt.length"};var BN$2=bnExports,utils$x=utils$P,assert$6=utils$x.assert;function Signature$3(_e,cr){if(_e instanceof Signature$3)return _e;this._importDER(_e,cr)||(assert$6(_e.r&&_e.s,"Signature without r or s"),this.r=new BN$2(_e.r,16),this.s=new BN$2(_e.s,16),_e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=_e.recoveryParam)}var signature$2=Signature$3;function Position(){this.place=0}function getLength(_e,cr){var gr=_e[cr.place++];if(!(gr&128))return gr;var Cr=gr&15;if(Cr===0||Cr>4)return!1;for(var Vr=0,tt=0,nt=cr.place;tt>>=0;return Vr<=127?!1:(cr.place=nt,Vr)}function rmPadding(_e){for(var cr=0,gr=_e.length-1;!_e[cr]&&!(_e[cr+1]&128)&&cr>>3);for(_e.push(gr|128);--gr;)_e.push(cr>>>(gr<<3)&255);_e.push(cr)}Signature$3.prototype.toDER=function _e(cr){var gr=this.r.toArray(),Cr=this.s.toArray();for(gr[0]&128&&(gr=[0].concat(gr)),Cr[0]&128&&(Cr=[0].concat(Cr)),gr=rmPadding(gr),Cr=rmPadding(Cr);!Cr[0]&&!(Cr[1]&128);)Cr=Cr.slice(1);var Vr=[2];constructLength(Vr,gr.length),Vr=Vr.concat(gr),Vr.push(2),constructLength(Vr,Cr.length);var tt=Vr.concat(Cr),nt=[48];return constructLength(nt,tt.length),nt=nt.concat(tt),utils$x.encode(nt,cr)};var BN$1=bnExports,HmacDRBG=hmacDrbg,utils$w=utils$P,curves$1=curves$2,rand=brorandExports,assert$5=utils$w.assert,KeyPair$2=key$1,Signature$2=signature$2;function EC(_e){if(!(this instanceof EC))return new EC(_e);typeof _e=="string"&&(assert$5(Object.prototype.hasOwnProperty.call(curves$1,_e),"Unknown curve "+_e),_e=curves$1[_e]),_e instanceof curves$1.PresetCurve&&(_e={curve:_e}),this.curve=_e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=_e.curve.g,this.g.precompute(_e.curve.n.bitLength()+1),this.hash=_e.hash||_e.curve.hash}var ec=EC;EC.prototype.keyPair=function _e(cr){return new KeyPair$2(this,cr)},EC.prototype.keyFromPrivate=function _e(cr,gr){return KeyPair$2.fromPrivate(this,cr,gr)},EC.prototype.keyFromPublic=function _e(cr,gr){return KeyPair$2.fromPublic(this,cr,gr)},EC.prototype.genKeyPair=function _e(cr){cr||(cr={});for(var gr=new HmacDRBG({hash:this.hash,pers:cr.pers,persEnc:cr.persEnc||"utf8",entropy:cr.entropy||rand(this.hash.hmacStrength),entropyEnc:cr.entropy&&cr.entropyEnc||"utf8",nonce:this.n.toArray()}),Cr=this.n.byteLength(),Vr=this.n.sub(new BN$1(2));;){var tt=new BN$1(gr.generate(Cr));if(!(tt.cmp(Vr)>0))return tt.iaddn(1),this.keyFromPrivate(tt)}},EC.prototype._truncateToN=function _e(cr,gr){var Cr=cr.byteLength()*8-this.n.bitLength();return Cr>0&&(cr=cr.ushrn(Cr)),!gr&&cr.cmp(this.n)>=0?cr.sub(this.n):cr},EC.prototype.sign=function _e(cr,gr,Cr,Vr){typeof Cr=="object"&&(Vr=Cr,Cr=null),Vr||(Vr={}),gr=this.keyFromPrivate(gr,Cr),cr=this._truncateToN(new BN$1(cr,16));for(var tt=this.n.byteLength(),nt=gr.getPrivate().toArray("be",tt),st=cr.toArray("be",tt),dt=new HmacDRBG({hash:this.hash,entropy:nt,nonce:st,pers:Vr.pers,persEnc:Vr.persEnc||"utf8"}),kt=this.n.sub(new BN$1(1)),qt=0;;qt++){var ro=Vr.k?Vr.k(qt):new BN$1(dt.generate(this.n.byteLength()));if(ro=this._truncateToN(ro,!0),!(ro.cmpn(1)<=0||ro.cmp(kt)>=0)){var ht=this.g.mul(ro);if(!ht.isInfinity()){var po=ht.getX(),no=po.umod(this.n);if(no.cmpn(0)!==0){var Nt=ro.invm(this.n).mul(no.mul(gr.getPrivate()).iadd(cr));if(Nt=Nt.umod(this.n),Nt.cmpn(0)!==0){var eo=(ht.getY().isOdd()?1:0)|(po.cmp(no)!==0?2:0);return Vr.canonical&&Nt.cmp(this.nh)>0&&(Nt=this.n.sub(Nt),eo^=1),new Signature$2({r:no,s:Nt,recoveryParam:eo})}}}}}},EC.prototype.verify=function _e(cr,gr,Cr,Vr){cr=this._truncateToN(new BN$1(cr,16)),Cr=this.keyFromPublic(Cr,Vr),gr=new Signature$2(gr,"hex");var tt=gr.r,nt=gr.s;if(tt.cmpn(1)<0||tt.cmp(this.n)>=0||nt.cmpn(1)<0||nt.cmp(this.n)>=0)return!1;var st=nt.invm(this.n),dt=st.mul(cr).umod(this.n),kt=st.mul(tt).umod(this.n),qt;return this.curve._maxwellTrick?(qt=this.g.jmulAdd(dt,Cr.getPublic(),kt),qt.isInfinity()?!1:qt.eqXToP(tt)):(qt=this.g.mulAdd(dt,Cr.getPublic(),kt),qt.isInfinity()?!1:qt.getX().umod(this.n).cmp(tt)===0)},EC.prototype.recoverPubKey=function(_e,cr,gr,Cr){assert$5((3&gr)===gr,"The recovery param is more than two bits"),cr=new Signature$2(cr,Cr);var Vr=this.n,tt=new BN$1(_e),nt=cr.r,st=cr.s,dt=gr&1,kt=gr>>1;if(nt.cmp(this.curve.p.umod(this.curve.n))>=0&&kt)throw new Error("Unable to find sencond key candinate");kt?nt=this.curve.pointFromX(nt.add(this.curve.n),dt):nt=this.curve.pointFromX(nt,dt);var qt=cr.r.invm(Vr),ro=Vr.sub(tt).mul(qt).umod(Vr),ht=st.mul(qt).umod(Vr);return this.g.mulAdd(ro,nt,ht)},EC.prototype.getKeyRecoveryParam=function(_e,cr,gr,Cr){if(cr=new Signature$2(cr,Cr),cr.recoveryParam!==null)return cr.recoveryParam;for(var Vr=0;Vr<4;Vr++){var tt;try{tt=this.recoverPubKey(_e,cr,Vr)}catch{continue}if(tt.eq(gr))return Vr}throw new Error("Unable to find valid recovery factor")};var utils$v=utils$P,assert$4=utils$v.assert,parseBytes$2=utils$v.parseBytes,cachedProperty$1=utils$v.cachedProperty;function KeyPair$1(_e,cr){this.eddsa=_e,this._secret=parseBytes$2(cr.secret),_e.isPoint(cr.pub)?this._pub=cr.pub:this._pubBytes=parseBytes$2(cr.pub)}KeyPair$1.fromPublic=function _e(cr,gr){return gr instanceof KeyPair$1?gr:new KeyPair$1(cr,{pub:gr})},KeyPair$1.fromSecret=function _e(cr,gr){return gr instanceof KeyPair$1?gr:new KeyPair$1(cr,{secret:gr})},KeyPair$1.prototype.secret=function _e(){return this._secret},cachedProperty$1(KeyPair$1,"pubBytes",function _e(){return this.eddsa.encodePoint(this.pub())}),cachedProperty$1(KeyPair$1,"pub",function _e(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),cachedProperty$1(KeyPair$1,"privBytes",function _e(){var cr=this.eddsa,gr=this.hash(),Cr=cr.encodingLength-1,Vr=gr.slice(0,cr.encodingLength);return Vr[0]&=248,Vr[Cr]&=127,Vr[Cr]|=64,Vr}),cachedProperty$1(KeyPair$1,"priv",function _e(){return this.eddsa.decodeInt(this.privBytes())}),cachedProperty$1(KeyPair$1,"hash",function _e(){return this.eddsa.hash().update(this.secret()).digest()}),cachedProperty$1(KeyPair$1,"messagePrefix",function _e(){return this.hash().slice(this.eddsa.encodingLength)}),KeyPair$1.prototype.sign=function _e(cr){return assert$4(this._secret,"KeyPair can only verify"),this.eddsa.sign(cr,this)},KeyPair$1.prototype.verify=function _e(cr,gr){return this.eddsa.verify(cr,gr,this)},KeyPair$1.prototype.getSecret=function _e(cr){return assert$4(this._secret,"KeyPair is public only"),utils$v.encode(this.secret(),cr)},KeyPair$1.prototype.getPublic=function _e(cr){return utils$v.encode(this.pubBytes(),cr)};var key=KeyPair$1,BN=bnExports,utils$u=utils$P,assert$3=utils$u.assert,cachedProperty=utils$u.cachedProperty,parseBytes$1=utils$u.parseBytes;function Signature$1(_e,cr){this.eddsa=_e,typeof cr!="object"&&(cr=parseBytes$1(cr)),Array.isArray(cr)&&(cr={R:cr.slice(0,_e.encodingLength),S:cr.slice(_e.encodingLength)}),assert$3(cr.R&&cr.S,"Signature without R or S"),_e.isPoint(cr.R)&&(this._R=cr.R),cr.S instanceof BN&&(this._S=cr.S),this._Rencoded=Array.isArray(cr.R)?cr.R:cr.Rencoded,this._Sencoded=Array.isArray(cr.S)?cr.S:cr.Sencoded}cachedProperty(Signature$1,"S",function _e(){return this.eddsa.decodeInt(this.Sencoded())}),cachedProperty(Signature$1,"R",function _e(){return this.eddsa.decodePoint(this.Rencoded())}),cachedProperty(Signature$1,"Rencoded",function _e(){return this.eddsa.encodePoint(this.R())}),cachedProperty(Signature$1,"Sencoded",function _e(){return this.eddsa.encodeInt(this.S())}),Signature$1.prototype.toBytes=function _e(){return this.Rencoded().concat(this.Sencoded())},Signature$1.prototype.toHex=function _e(){return utils$u.encode(this.toBytes(),"hex").toUpperCase()};var signature$1=Signature$1,hash$4=hash$6,curves=curves$2,utils$t=utils$P,assert$2=utils$t.assert,parseBytes=utils$t.parseBytes,KeyPair=key,Signature=signature$1;function EDDSA(_e){if(assert$2(_e==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(_e);_e=curves[_e].curve,this.curve=_e,this.g=_e.g,this.g.precompute(_e.n.bitLength()+1),this.pointClass=_e.point().constructor,this.encodingLength=Math.ceil(_e.n.bitLength()/8),this.hash=hash$4.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function _e(cr,gr){cr=parseBytes(cr);var Cr=this.keyFromSecret(gr),Vr=this.hashInt(Cr.messagePrefix(),cr),tt=this.g.mul(Vr),nt=this.encodePoint(tt),st=this.hashInt(nt,Cr.pubBytes(),cr).mul(Cr.priv()),dt=Vr.add(st).umod(this.curve.n);return this.makeSignature({R:tt,S:dt,Rencoded:nt})},EDDSA.prototype.verify=function _e(cr,gr,Cr){cr=parseBytes(cr),gr=this.makeSignature(gr);var Vr=this.keyFromPublic(Cr),tt=this.hashInt(gr.Rencoded(),Vr.pubBytes(),cr),nt=this.g.mul(gr.S()),st=gr.R().add(Vr.pub().mul(tt));return st.eq(nt)},EDDSA.prototype.hashInt=function _e(){for(var cr=this.hash(),gr=0;gr=128)throw new Error("Decoding length values above 127 not supported");const tt=cr.slice(gr,gr+Vr);if(gr+=Vr,cr[gr++]!==derTagInteger)throw new Error("INTEGER tag expected");const nt=cr[gr++];if(nt>=128)throw new Error("Decoding length values above 127 not supported");const st=cr.slice(gr,gr+nt);return gr+=nt,new Secp256k1Signature(trimLeadingNullBytes(tt),trimLeadingNullBytes(st))}constructor(cr,gr){if(cr.length>32||cr.length===0||cr[0]===0)throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(gr.length>32||gr.length===0||gr[0]===0)throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:cr,s:gr}}r(cr){if(cr===void 0)return this.data.r;{const gr=cr-this.data.r.length;if(gr<0)throw new Error("Length too small to hold parameter r");const Cr=new Uint8Array(gr);return new Uint8Array([...Cr,...this.data.r])}}s(cr){if(cr===void 0)return this.data.s;{const gr=cr-this.data.s.length;if(gr<0)throw new Error("Length too small to hold parameter s");const Cr=new Uint8Array(gr);return new Uint8Array([...Cr,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){const cr=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,gr=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,Cr=cr.length,Vr=gr.length,tt=new Uint8Array([derTagInteger,Cr,...cr,derTagInteger,Vr,...gr]);return new Uint8Array([48,tt.length,...tt])}}secp256k1signature.Secp256k1Signature=Secp256k1Signature;class ExtendedSecp256k1Signature extends Secp256k1Signature{static fromFixedLength(cr){if(cr.length!==65)throw new Error(`Got invalid data length ${cr.length}. Expected 32 + 32 + 1`);return new ExtendedSecp256k1Signature(trimLeadingNullBytes(cr.slice(0,32)),trimLeadingNullBytes(cr.slice(32,64)),cr[64])}constructor(cr,gr,Cr){if(super(cr,gr),!Number.isInteger(Cr))throw new Error("The recovery parameter must be an integer.");if(Cr<0||Cr>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=Cr}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}secp256k1signature.ExtendedSecp256k1Signature=ExtendedSecp256k1Signature;var __importDefault$h=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(secp256k1$2,"__esModule",{value:!0}),secp256k1$2.Secp256k1=void 0;const encoding_1$u=build$c,bn_js_1=__importDefault$h(bnExports$1),elliptic_1=__importDefault$h(elliptic),secp256k1signature_1=secp256k1signature,secp256k1=new elliptic_1.default.ec("secp256k1"),secp256k1N=new bn_js_1.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");class Secp256k1{static async makeKeypair(cr){if(cr.length!==32)throw new Error("input data is not a valid secp256k1 private key");const gr=secp256k1.keyFromPrivate(cr);if(gr.validate().result!==!0)throw new Error("input data is not a valid secp256k1 private key");if(new bn_js_1.default(cr).gte(secp256k1N))throw new Error("input data is not a valid secp256k1 private key");return{privkey:(0,encoding_1$u.fromHex)(gr.getPrivate("hex")),pubkey:Uint8Array.from(gr.getPublic("array"))}}static async createSignature(cr,gr){if(cr.length===0)throw new Error("Message hash must not be empty");if(cr.length>32)throw new Error("Message hash length must not exceed 32 bytes");const Cr=secp256k1.keyFromPrivate(gr),{r:Vr,s:tt,recoveryParam:nt}=Cr.sign(cr,{canonical:!0});if(typeof nt!="number")throw new Error("Recovery param missing");return new secp256k1signature_1.ExtendedSecp256k1Signature(Uint8Array.from(Vr.toArray()),Uint8Array.from(tt.toArray()),nt)}static async verifySignature(cr,gr,Cr){if(gr.length===0)throw new Error("Message hash must not be empty");if(gr.length>32)throw new Error("Message hash length must not exceed 32 bytes");const Vr=secp256k1.keyFromPublic(Cr);try{return Vr.verify(gr,cr.toDer())}catch{return!1}}static recoverPubkey(cr,gr){const Cr={r:(0,encoding_1$u.toHex)(cr.r()),s:(0,encoding_1$u.toHex)(cr.s())},Vr=secp256k1.recoverPubKey(gr,Cr,cr.recovery),tt=secp256k1.keyFromPublic(Vr);return(0,encoding_1$u.fromHex)(tt.getPublic(!1,"hex"))}static compressPubkey(cr){switch(cr.length){case 33:return cr;case 65:return Uint8Array.from(secp256k1.keyFromPublic(cr).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}static uncompressPubkey(cr){switch(cr.length){case 33:return Uint8Array.from(secp256k1.keyFromPublic(cr).getPublic(!1,"array"));case 65:return cr;default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(cr){switch(cr.length){case 64:return cr;case 65:return cr.slice(0,64);default:throw new Error("Invalid signature length")}}}secp256k1$2.Secp256k1=Secp256k1;var slip10={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__importDefault||function(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.stringToPath=_e.pathToString=_e.Slip10=_e.Slip10RawIndex=_e.slip10CurveFromString=_e.Slip10Curve=void 0;const gr=build$c,Cr=build$b,Vr=cr(bnExports$1),tt=cr(elliptic),nt=hmac$1,st=sha$1;var dt;(function(Nt){Nt.Secp256k1="Bitcoin seed",Nt.Ed25519="ed25519 seed"})(dt=_e.Slip10Curve||(_e.Slip10Curve={}));function kt(Nt){switch(Nt){case dt.Ed25519:return dt.Ed25519;case dt.Secp256k1:return dt.Secp256k1;default:throw new Error(`Unknown curve string: '${Nt}'`)}}_e.slip10CurveFromString=kt;class qt extends Cr.Uint32{static hardened(eo){return new qt(eo+2**31)}static normal(eo){return new qt(eo)}isHardened(){return this.data>=2**31}}_e.Slip10RawIndex=qt;const ro=new tt.default.ec("secp256k1");class ht{static derivePath(eo,Wt,St){let Ot=this.master(eo,Wt);for(const uo of St)Ot=this.child(eo,Ot.privkey,Ot.chainCode,uo);return Ot}static master(eo,Wt){const St=new nt.Hmac(st.Sha512,(0,gr.toAscii)(eo)).update(Wt).digest(),Ot=St.slice(0,32),uo=St.slice(32,64);return eo!==dt.Ed25519&&(this.isZero(Ot)||this.isGteN(eo,Ot))?this.master(eo,St):{chainCode:uo,privkey:Ot}}static child(eo,Wt,St,Ot){let uo;if(Ot.isHardened()){const go=new Uint8Array([0,...Wt,...Ot.toBytesBigEndian()]);uo=new nt.Hmac(st.Sha512,St).update(go).digest()}else{if(eo===dt.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const go=new Uint8Array([...ht.serializedPoint(eo,new Vr.default(Wt)),...Ot.toBytesBigEndian()]);uo=new nt.Hmac(st.Sha512,St).update(go).digest()}}return this.childImpl(eo,Wt,St,Ot,uo)}static serializedPoint(eo,Wt){switch(eo){case dt.Secp256k1:return(0,gr.fromHex)(ro.g.mul(Wt).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(eo,Wt,St,Ot,uo){const go=uo.slice(0,32),bo=uo.slice(32,64),oo=bo;if(eo===dt.Ed25519)return{chainCode:oo,privkey:go};const Ro=this.n(eo),pt=new Vr.default(go).add(new Vr.default(Wt)).mod(Ro),lo=Uint8Array.from(pt.toArray("be",32));if(this.isGteN(eo,go)||this.isZero(lo)){const so=new nt.Hmac(st.Sha512,St).update(new Uint8Array([1,...bo,...Ot.toBytesBigEndian()])).digest();return this.childImpl(eo,Wt,St,Ot,so)}return{chainCode:oo,privkey:lo}}static isZero(eo){return eo.every(Wt=>Wt===0)}static isGteN(eo,Wt){return new Vr.default(Wt).gte(this.n(eo))}static n(eo){switch(eo){case dt.Secp256k1:return new Vr.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}_e.Slip10=ht;function po(Nt){return Nt.reduce((eo,Wt)=>{const St=Wt.isHardened()?`${Wt.toNumber()-2147483648}'`:Wt.toString();return eo+"/"+St},"m")}_e.pathToString=po;function no(Nt){if(!Nt.startsWith("m"))throw new Error("Path string must start with 'm'");let eo=Nt.slice(1);const Wt=new Array;for(;eo;){const St=eo.match(/^\/([0-9]+)('?)/);if(!St)throw new Error("Syntax error while reading path component");const[Ot,uo,go]=St,bo=Cr.Uint53.fromString(uo).toNumber();if(bo>=2**31)throw new Error("Component value too high. Must not exceed 2**31-1.");go?Wt.push(qt.hardened(bo)):Wt.push(qt.normal(bo)),eo=eo.slice(Ot.length)}return Wt}_e.stringToPath=no})(slip10),function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.stringToPath=_e.Slip10RawIndex=_e.slip10CurveFromString=_e.Slip10Curve=_e.Slip10=_e.pathToString=_e.sha512=_e.Sha512=_e.sha256=_e.Sha256=_e.Secp256k1Signature=_e.ExtendedSecp256k1Signature=_e.Secp256k1=_e.ripemd160=_e.Ripemd160=_e.Random=_e.Xchacha20poly1305Ietf=_e.xchacha20NonceLength=_e.isArgon2idOptions=_e.Ed25519Keypair=_e.Ed25519=_e.Argon2id=_e.keccak256=_e.Keccak256=_e.Hmac=_e.EnglishMnemonic=_e.Bip39=void 0;var cr=bip39;Object.defineProperty(_e,"Bip39",{enumerable:!0,get:function(){return cr.Bip39}}),Object.defineProperty(_e,"EnglishMnemonic",{enumerable:!0,get:function(){return cr.EnglishMnemonic}});var gr=hmac$1;Object.defineProperty(_e,"Hmac",{enumerable:!0,get:function(){return gr.Hmac}});var Cr=keccak;Object.defineProperty(_e,"Keccak256",{enumerable:!0,get:function(){return Cr.Keccak256}}),Object.defineProperty(_e,"keccak256",{enumerable:!0,get:function(){return Cr.keccak256}});var Vr=libsodium;Object.defineProperty(_e,"Argon2id",{enumerable:!0,get:function(){return Vr.Argon2id}}),Object.defineProperty(_e,"Ed25519",{enumerable:!0,get:function(){return Vr.Ed25519}}),Object.defineProperty(_e,"Ed25519Keypair",{enumerable:!0,get:function(){return Vr.Ed25519Keypair}}),Object.defineProperty(_e,"isArgon2idOptions",{enumerable:!0,get:function(){return Vr.isArgon2idOptions}}),Object.defineProperty(_e,"xchacha20NonceLength",{enumerable:!0,get:function(){return Vr.xchacha20NonceLength}}),Object.defineProperty(_e,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return Vr.Xchacha20poly1305Ietf}});var tt=random;Object.defineProperty(_e,"Random",{enumerable:!0,get:function(){return tt.Random}});var nt=ripemd$1;Object.defineProperty(_e,"Ripemd160",{enumerable:!0,get:function(){return nt.Ripemd160}}),Object.defineProperty(_e,"ripemd160",{enumerable:!0,get:function(){return nt.ripemd160}});var st=secp256k1$2;Object.defineProperty(_e,"Secp256k1",{enumerable:!0,get:function(){return st.Secp256k1}});var dt=secp256k1signature;Object.defineProperty(_e,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return dt.ExtendedSecp256k1Signature}}),Object.defineProperty(_e,"Secp256k1Signature",{enumerable:!0,get:function(){return dt.Secp256k1Signature}});var kt=sha$1;Object.defineProperty(_e,"Sha256",{enumerable:!0,get:function(){return kt.Sha256}}),Object.defineProperty(_e,"sha256",{enumerable:!0,get:function(){return kt.sha256}}),Object.defineProperty(_e,"Sha512",{enumerable:!0,get:function(){return kt.Sha512}}),Object.defineProperty(_e,"sha512",{enumerable:!0,get:function(){return kt.sha512}});var qt=slip10;Object.defineProperty(_e,"pathToString",{enumerable:!0,get:function(){return qt.pathToString}}),Object.defineProperty(_e,"Slip10",{enumerable:!0,get:function(){return qt.Slip10}}),Object.defineProperty(_e,"Slip10Curve",{enumerable:!0,get:function(){return qt.Slip10Curve}}),Object.defineProperty(_e,"slip10CurveFromString",{enumerable:!0,get:function(){return qt.slip10CurveFromString}}),Object.defineProperty(_e,"Slip10RawIndex",{enumerable:!0,get:function(){return qt.Slip10RawIndex}}),Object.defineProperty(_e,"stringToPath",{enumerable:!0,get:function(){return qt.stringToPath}})}(build$7);var encoding$1={},pubkeys={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.isMultisigThresholdPubkey=_e.isSinglePubkey=_e.pubkeyType=_e.isSecp256k1Pubkey=_e.isEd25519Pubkey=void 0;function cr(tt){return tt.type==="tendermint/PubKeyEd25519"}_e.isEd25519Pubkey=cr;function gr(tt){return tt.type==="tendermint/PubKeySecp256k1"}_e.isSecp256k1Pubkey=gr,_e.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"};function Cr(tt){return[_e.pubkeyType.ed25519,_e.pubkeyType.secp256k1,_e.pubkeyType.sr25519].includes(tt.type)}_e.isSinglePubkey=Cr;function Vr(tt){return tt.type==="tendermint/PubKeyMultisigThreshold"}_e.isMultisigThresholdPubkey=Vr})(pubkeys),Object.defineProperty(encoding$1,"__esModule",{value:!0}),encoding$1.encodeBech32Pubkey=encoding$1.encodeAminoPubkey=encoding$1.decodeBech32Pubkey=encoding$1.decodeAminoPubkey=encoding$1.encodeEd25519Pubkey=encoding$1.encodeSecp256k1Pubkey=void 0;const encoding_1$t=build$c,math_1$g=build$b,utils_1$h=build$6,pubkeys_1$2=pubkeys;function encodeSecp256k1Pubkey(_e){if(_e.length!==33||_e[0]!==2&&_e[0]!==3)throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:pubkeys_1$2.pubkeyType.secp256k1,value:(0,encoding_1$t.toBase64)(_e)}}encoding$1.encodeSecp256k1Pubkey=encodeSecp256k1Pubkey;function encodeEd25519Pubkey(_e){if(_e.length!==32)throw new Error("Ed25519 public key must be 32 bytes long");return{type:pubkeys_1$2.pubkeyType.ed25519,value:(0,encoding_1$t.toBase64)(_e)}}encoding$1.encodeEd25519Pubkey=encodeEd25519Pubkey;const pubkeyAminoPrefixSecp256k1=(0,encoding_1$t.fromHex)("eb5ae98721"),pubkeyAminoPrefixEd25519=(0,encoding_1$t.fromHex)("1624de6420"),pubkeyAminoPrefixSr25519=(0,encoding_1$t.fromHex)("0dfb100520"),pubkeyAminoPrefixMultisigThreshold=(0,encoding_1$t.fromHex)("22c1f7e2");function decodeAminoPubkey(_e){if((0,utils_1$h.arrayContentStartsWith)(_e,pubkeyAminoPrefixSecp256k1)){const cr=_e.slice(pubkeyAminoPrefixSecp256k1.length);if(cr.length!==33)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:pubkeys_1$2.pubkeyType.secp256k1,value:(0,encoding_1$t.toBase64)(cr)}}else if((0,utils_1$h.arrayContentStartsWith)(_e,pubkeyAminoPrefixEd25519)){const cr=_e.slice(pubkeyAminoPrefixEd25519.length);if(cr.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:pubkeys_1$2.pubkeyType.ed25519,value:(0,encoding_1$t.toBase64)(cr)}}else if((0,utils_1$h.arrayContentStartsWith)(_e,pubkeyAminoPrefixSr25519)){const cr=_e.slice(pubkeyAminoPrefixSr25519.length);if(cr.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:pubkeys_1$2.pubkeyType.sr25519,value:(0,encoding_1$t.toBase64)(cr)}}else{if((0,utils_1$h.arrayContentStartsWith)(_e,pubkeyAminoPrefixMultisigThreshold))return decodeMultisigPubkey(_e);throw new Error("Unsupported public key type. Amino data starts with: "+(0,encoding_1$t.toHex)(_e.slice(0,5)))}}encoding$1.decodeAminoPubkey=decodeAminoPubkey;function decodeBech32Pubkey(_e){const{data:cr}=(0,encoding_1$t.fromBech32)(_e);return decodeAminoPubkey(cr)}encoding$1.decodeBech32Pubkey=decodeBech32Pubkey;function decodeUvarint(_e){if(_e.length<1)throw new Error("Can't decode varint. EOF");if(_e[0]>127)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[_e[0],1]}function decodeMultisigPubkey(_e){const cr=Array.from(_e),gr=cr.splice(0,pubkeyAminoPrefixMultisigThreshold.length);if(!(0,utils_1$h.arrayContentStartsWith)(gr,pubkeyAminoPrefixMultisigThreshold))throw new Error("Invalid multisig prefix.");if(cr.shift()!=8)throw new Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");const[Cr,Vr]=decodeUvarint(cr);cr.splice(0,Vr);const tt=[];for(;cr.length>0;){if(cr.shift()!=18)throw new Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");const[nt,st]=decodeUvarint(cr);if(cr.splice(0,st),cr.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[cr]}function encodeAminoPubkey(_e){if((0,pubkeys_1$2.isMultisigThresholdPubkey)(_e)){const cr=Array.from(pubkeyAminoPrefixMultisigThreshold);cr.push(8),cr.push(...encodeUvarint$2(_e.value.threshold));for(const gr of _e.value.pubkeys.map(Cr=>encodeAminoPubkey(Cr)))cr.push(18),cr.push(...encodeUvarint$2(gr.length)),cr.push(...gr);return new Uint8Array(cr)}else{if((0,pubkeys_1$2.isEd25519Pubkey)(_e))return new Uint8Array([...pubkeyAminoPrefixEd25519,...(0,encoding_1$t.fromBase64)(_e.value)]);if((0,pubkeys_1$2.isSecp256k1Pubkey)(_e))return new Uint8Array([...pubkeyAminoPrefixSecp256k1,...(0,encoding_1$t.fromBase64)(_e.value)]);throw new Error("Unsupported pubkey type")}}encoding$1.encodeAminoPubkey=encodeAminoPubkey;function encodeBech32Pubkey(_e,cr){return(0,encoding_1$t.toBech32)(cr,encodeAminoPubkey(_e))}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$b=build$7,encoding_1$s=build$c,encoding_2$1=encoding$1,pubkeys_1$1=pubkeys;function rawEd25519PubkeyToRawAddress$1(_e){if(_e.length!==32)throw new Error(`Invalid Ed25519 pubkey length: ${_e.length}`);return(0,crypto_1$b.sha256)(_e).slice(0,20)}addresses$1.rawEd25519PubkeyToRawAddress=rawEd25519PubkeyToRawAddress$1;function rawSecp256k1PubkeyToRawAddress$1(_e){if(_e.length!==33)throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${_e.length}`);return(0,crypto_1$b.ripemd160)((0,crypto_1$b.sha256)(_e))}addresses$1.rawSecp256k1PubkeyToRawAddress=rawSecp256k1PubkeyToRawAddress$1;function pubkeyToRawAddress$1(_e){if((0,pubkeys_1$1.isSecp256k1Pubkey)(_e)){const cr=(0,encoding_1$s.fromBase64)(_e.value);return rawSecp256k1PubkeyToRawAddress$1(cr)}else if((0,pubkeys_1$1.isEd25519Pubkey)(_e)){const cr=(0,encoding_1$s.fromBase64)(_e.value);return rawEd25519PubkeyToRawAddress$1(cr)}else if((0,pubkeys_1$1.isMultisigThresholdPubkey)(_e)){const cr=(0,encoding_2$1.encodeAminoPubkey)(_e);return(0,crypto_1$b.sha256)(cr).slice(0,20)}else throw new Error("Unsupported public key type")}addresses$1.pubkeyToRawAddress=pubkeyToRawAddress$1;function pubkeyToAddress$1(_e,cr){return(0,encoding_1$s.toBech32)(cr,pubkeyToRawAddress$1(_e))}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$f=build$b;function coin(_e,cr){let gr;if(typeof _e=="number")try{gr=new math_1$f.Uint53(_e).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(!_e.match(/^[0-9]+$/))throw new Error("Invalid unsigned integer string format");gr=_e.replace(/^0*/,"")||"0"}return{amount:gr,denom:cr}}coins$1.coin=coin;function coins(_e,cr){return[coin(_e,cr)]}coins$1.coins=coins;function parseCoins(_e){return _e.replace(/\s/g,"").split(",").filter(Boolean).map(cr=>{const gr=cr.match(/^([0-9]+)([a-zA-Z]+)/);if(!gr)throw new Error("Got an invalid coin string");return{amount:gr[1].replace(/^0+/,"")||"0",denom:gr[2]}})}coins$1.parseCoins=parseCoins;function addCoins(_e,cr){if(_e.denom!==cr.denom)throw new Error("Trying to add two coins with different denoms");return{amount:math_1$f.Decimal.fromAtomics(_e.amount,0).plus(math_1$f.Decimal.fromAtomics(cr.amount,0)).atomics,denom:_e.denom}}coins$1.addCoins=addCoins;var multisig={};Object.defineProperty(multisig,"__esModule",{value:!0}),multisig.createMultisigThresholdPubkey=multisig.compareArrays=void 0;const encoding_1$r=build$c,math_1$e=build$b,addresses_1$2=addresses$1;function compareArrays(_e,cr){const gr=(0,encoding_1$r.toHex)(_e),Cr=(0,encoding_1$r.toHex)(cr);return gr===Cr?0:gr_e.length)throw new Error(`Threshold k = ${Cr.toNumber()} exceeds number of keys n = ${_e.length}`);const Vr=gr?_e:Array.from(_e).sort((tt,nt)=>{const st=(0,addresses_1$2.pubkeyToRawAddress)(tt),dt=(0,addresses_1$2.pubkeyToRawAddress)(nt);return compareArrays(st,dt)});return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:Cr.toString(),pubkeys:Vr}}}multisig.createMultisigThresholdPubkey=createMultisigThresholdPubkey;var paths$1={};Object.defineProperty(paths$1,"__esModule",{value:!0}),paths$1.makeCosmoshubPath=void 0;const crypto_1$a=build$7;function makeCosmoshubPath$1(_e){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(_e)]}paths$1.makeCosmoshubPath=makeCosmoshubPath$1;var secp256k1hdwallet={},signature={};Object.defineProperty(signature,"__esModule",{value:!0}),signature.decodeSignature=signature.encodeSecp256k1Signature=void 0;const encoding_1$q=build$c,encoding_2=encoding$1,pubkeys_1=pubkeys;function encodeSecp256k1Signature(_e,cr){if(cr.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)(_e),signature:(0,encoding_1$q.toBase64)(cr)}}signature.encodeSecp256k1Signature=encodeSecp256k1Signature;function decodeSignature(_e){switch(_e.pub_key.type){case pubkeys_1.pubkeyType.secp256k1:return{pubkey:(0,encoding_1$q.fromBase64)(_e.pub_key.value),signature:(0,encoding_1$q.fromBase64)(_e.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$p=build$c,math_1$d=build$b;function sortedObject(_e){if(typeof _e!="object"||_e===null)return _e;if(Array.isArray(_e))return _e.map(sortedObject);const cr=Object.keys(_e).sort(),gr={};return cr.forEach(Cr=>{gr[Cr]=sortedObject(_e[Cr])}),gr}function sortedJsonStringify(_e){return JSON.stringify(sortedObject(_e))}signdoc.sortedJsonStringify=sortedJsonStringify;function makeSignDoc$1(_e,cr,gr,Cr,Vr,tt){return{chain_id:gr,account_number:math_1$d.Uint53.fromString(Vr.toString()).toString(),sequence:math_1$d.Uint53.fromString(tt.toString()).toString(),fee:cr,msgs:_e,memo:Cr||""}}signdoc.makeSignDoc=makeSignDoc$1;function escapeCharacters(_e){const cr=/&/g,gr=//g;return _e.replace(cr,"\\u0026").replace(gr,"\\u003c").replace(Cr,"\\u003e")}signdoc.escapeCharacters=escapeCharacters;function serializeSignDoc(_e){const cr=escapeCharacters(sortedJsonStringify(_e));return(0,encoding_1$p.toUtf8)(cr)}signdoc.serializeSignDoc=serializeSignDoc;var wallet$1={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.decrypt=_e.encrypt=_e.supportedAlgorithms=_e.executeKdf=_e.cosmjsSalt=void 0;const cr=build$7,gr=build$c;_e.cosmjsSalt=(0,gr.toAscii)("The CosmJS salt.");async function Cr(nt,st){switch(st.algorithm){case"argon2id":{const dt=st.params;if(!(0,cr.isArgon2idOptions)(dt))throw new Error("Invalid format of argon2id params");return cr.Argon2id.execute(nt,_e.cosmjsSalt,dt)}default:throw new Error("Unsupported KDF algorithm")}}_e.executeKdf=Cr,_e.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function Vr(nt,st,dt){switch(dt.algorithm){case _e.supportedAlgorithms.xchacha20poly1305Ietf:{const kt=cr.Random.getBytes(cr.xchacha20NonceLength);return new Uint8Array([...kt,...await cr.Xchacha20poly1305Ietf.encrypt(nt,st,kt)])}default:throw new Error(`Unsupported encryption algorithm: '${dt.algorithm}'`)}}_e.encrypt=Vr;async function tt(nt,st,dt){switch(dt.algorithm){case _e.supportedAlgorithms.xchacha20poly1305Ietf:{const kt=nt.slice(0,cr.xchacha20NonceLength);return cr.Xchacha20poly1305Ietf.decrypt(nt.slice(cr.xchacha20NonceLength),st,kt)}default:throw new Error(`Unsupported encryption algorithm: '${dt.algorithm}'`)}}_e.decrypt=tt})(wallet$1),Object.defineProperty(secp256k1hdwallet,"__esModule",{value:!0}),secp256k1hdwallet.Secp256k1HdWallet=secp256k1hdwallet.extractKdfConfiguration=void 0;const crypto_1$9=build$7,encoding_1$o=build$c,utils_1$g=build$6,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(_e){return!(!(0,utils_1$g.isNonNullObject)(_e)||typeof _e.hdPath!="string"||typeof _e.prefix!="string")}function extractKdfConfigurationV1$1(_e){return _e.kdf}function extractKdfConfiguration$1(_e){const cr=JSON.parse(_e);if(!(0,utils_1$g.isNonNullObject)(cr))throw new Error("Root document is not an object.");switch(cr.type){case serializationTypeV1$1:return extractKdfConfigurationV1$1(cr);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(cr,gr={}){const Cr=new crypto_1$9.EnglishMnemonic(cr),Vr=await crypto_1$9.Bip39.mnemonicToSeed(Cr,gr.bip39Password);return new Secp256k1HdWallet(Cr,{...gr,seed:Vr})}static async generate(cr=12,gr={}){const Cr=4*Math.floor(11*cr/33),Vr=crypto_1$9.Random.getBytes(Cr),tt=crypto_1$9.Bip39.encode(Vr);return Secp256k1HdWallet.fromMnemonic(tt.toString(),gr)}static async deserialize(cr,gr){const Cr=JSON.parse(cr);if(!(0,utils_1$g.isNonNullObject)(Cr))throw new Error("Root document is not an object.");switch(Cr.type){case serializationTypeV1$1:return Secp256k1HdWallet.deserializeTypeV1(cr,gr);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(cr,gr){const Cr=JSON.parse(cr);if(!(0,utils_1$g.isNonNullObject)(Cr))throw new Error("Root document is not an object.");const Vr=Cr;switch(Vr.type){case serializationTypeV1$1:{const tt=await(0,wallet_1$1.decrypt)((0,encoding_1$o.fromBase64)(Vr.data),gr,Vr.encryption),nt=JSON.parse((0,encoding_1$o.fromUtf8)(tt)),{mnemonic:st,accounts:dt}=nt;if((0,utils_1$g.assert)(typeof st=="string"),!Array.isArray(dt))throw new Error("Property 'accounts' is not an array");if(!dt.every(ro=>isDerivationJson$1(ro)))throw new Error("Account is not in the correct format.");const kt=dt[0].prefix;if(!dt.every(({prefix:ro})=>ro===kt))throw new Error("Accounts do not all have the same prefix");const qt=dt.map(({hdPath:ro})=>(0,crypto_1$9.stringToPath)(ro));return Secp256k1HdWallet.fromMnemonic(st,{hdPaths:qt,prefix:kt})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(cr,gr){const Cr=JSON.parse(cr);if(!(0,utils_1$g.isNonNullObject)(Cr))throw new Error("Root document is not an object.");const Vr=await(0,wallet_1$1.executeKdf)(gr,Cr.kdf);return Secp256k1HdWallet.deserializeWithEncryptionKey(cr,Vr)}constructor(cr,gr){const Cr=gr.hdPaths??defaultOptions$1.hdPaths,Vr=gr.prefix??defaultOptions$1.prefix;this.secret=cr,this.seed=gr.seed,this.accounts=Cr.map(tt=>({hdPath:tt,prefix:Vr}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:cr,pubkey:gr,address:Cr})=>({algo:cr,pubkey:gr,address:Cr}))}async signAmino(cr,gr){const Cr=(await this.getAccountsWithPrivkeys()).find(({address:kt})=>kt===cr);if(Cr===void 0)throw new Error(`Address ${cr} not found in wallet`);const{privkey:Vr,pubkey:tt}=Cr,nt=(0,crypto_1$9.sha256)((0,signdoc_1$1.serializeSignDoc)(gr)),st=await crypto_1$9.Secp256k1.createSignature(nt,Vr),dt=new Uint8Array([...st.r(32),...st.s(32)]);return{signed:gr,signature:(0,signature_1$1.encodeSecp256k1Signature)(tt,dt)}}async serialize(cr){const gr=basicPasswordHashingOptions$1,Cr=await(0,wallet_1$1.executeKdf)(cr,gr);return this.serializeWithEncryptionKey(Cr,gr)}async serializeWithEncryptionKey(cr,gr){const Cr={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:dt,prefix:kt})=>({hdPath:(0,crypto_1$9.pathToString)(dt),prefix:kt}))},Vr=(0,encoding_1$o.toUtf8)(JSON.stringify(Cr)),tt={algorithm:wallet_1$1.supportedAlgorithms.xchacha20poly1305Ietf},nt=await(0,wallet_1$1.encrypt)(Vr,cr,tt),st={type:serializationTypeV1$1,kdf:gr,encryption:tt,data:(0,encoding_1$o.toBase64)(nt)};return JSON.stringify(st)}async getKeyPair(cr){const{privkey:gr}=crypto_1$9.Slip10.derivePath(crypto_1$9.Slip10Curve.Secp256k1,this.seed,cr),{pubkey:Cr}=await crypto_1$9.Secp256k1.makeKeypair(gr);return{privkey:gr,pubkey:crypto_1$9.Secp256k1.compressPubkey(Cr)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:cr,prefix:gr})=>{const{privkey:Cr,pubkey:Vr}=await this.getKeyPair(cr),tt=(0,encoding_1$o.toBech32)(gr,(0,addresses_1$1.rawSecp256k1PubkeyToRawAddress)(Vr));return{algo:"secp256k1",privkey:Cr,pubkey:Vr,address:tt}}))}}secp256k1hdwallet.Secp256k1HdWallet=Secp256k1HdWallet;var secp256k1wallet={};Object.defineProperty(secp256k1wallet,"__esModule",{value:!0}),secp256k1wallet.Secp256k1Wallet=void 0;const crypto_1$8=build$7,encoding_1$n=build$c,addresses_1=addresses$1,signature_1=signature,signdoc_1=signdoc;class Secp256k1Wallet{static async fromKey(cr,gr="cosmos"){const Cr=(await crypto_1$8.Secp256k1.makeKeypair(cr)).pubkey;return new Secp256k1Wallet(cr,crypto_1$8.Secp256k1.compressPubkey(Cr),gr)}constructor(cr,gr,Cr){this.privkey=cr,this.pubkey=gr,this.prefix=Cr}get address(){return(0,encoding_1$n.toBech32)(this.prefix,(0,addresses_1.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(cr,gr){if(cr!==this.address)throw new Error(`Address ${cr} not found in wallet`);const Cr=new crypto_1$8.Sha256((0,signdoc_1.serializeSignDoc)(gr)).digest(),Vr=await crypto_1$8.Secp256k1.createSignature(Cr,this.privkey),tt=new Uint8Array([...Vr.r(32),...Vr.s(32)]);return{signed:gr,signature:(0,signature_1.encodeSecp256k1Signature)(this.pubkey,tt)}}}secp256k1wallet.Secp256k1Wallet=Secp256k1Wallet;var stdtx={};Object.defineProperty(stdtx,"__esModule",{value:!0}),stdtx.makeStdTx=stdtx.isStdTx=void 0;function isStdTx(_e){const{memo:cr,msg:gr,fee:Cr,signatures:Vr}=_e;return typeof cr=="string"&&Array.isArray(gr)&&typeof Cr=="object"&&Array.isArray(Vr)}stdtx.isStdTx=isStdTx;function makeStdTx(_e,cr){return{msg:_e.msgs,fee:_e.fee,memo:_e.memo,signatures:Array.isArray(cr)?cr:[cr]}}stdtx.makeStdTx=makeStdTx,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.executeKdf=_e.makeStdTx=_e.isStdTx=_e.serializeSignDoc=_e.makeSignDoc=_e.encodeSecp256k1Signature=_e.decodeSignature=_e.Secp256k1Wallet=_e.Secp256k1HdWallet=_e.extractKdfConfiguration=_e.pubkeyType=_e.isSinglePubkey=_e.isSecp256k1Pubkey=_e.isMultisigThresholdPubkey=_e.isEd25519Pubkey=_e.makeCosmoshubPath=_e.createMultisigThresholdPubkey=_e.encodeSecp256k1Pubkey=_e.encodeEd25519Pubkey=_e.encodeBech32Pubkey=_e.encodeAminoPubkey=_e.decodeBech32Pubkey=_e.decodeAminoPubkey=_e.parseCoins=_e.coins=_e.coin=_e.addCoins=_e.rawSecp256k1PubkeyToRawAddress=_e.rawEd25519PubkeyToRawAddress=_e.pubkeyToRawAddress=_e.pubkeyToAddress=void 0;var cr=addresses$1;Object.defineProperty(_e,"pubkeyToAddress",{enumerable:!0,get:function(){return cr.pubkeyToAddress}}),Object.defineProperty(_e,"pubkeyToRawAddress",{enumerable:!0,get:function(){return cr.pubkeyToRawAddress}}),Object.defineProperty(_e,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return cr.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(_e,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return cr.rawSecp256k1PubkeyToRawAddress}});var gr=coins$1;Object.defineProperty(_e,"addCoins",{enumerable:!0,get:function(){return gr.addCoins}}),Object.defineProperty(_e,"coin",{enumerable:!0,get:function(){return gr.coin}}),Object.defineProperty(_e,"coins",{enumerable:!0,get:function(){return gr.coins}}),Object.defineProperty(_e,"parseCoins",{enumerable:!0,get:function(){return gr.parseCoins}});var Cr=encoding$1;Object.defineProperty(_e,"decodeAminoPubkey",{enumerable:!0,get:function(){return Cr.decodeAminoPubkey}}),Object.defineProperty(_e,"decodeBech32Pubkey",{enumerable:!0,get:function(){return Cr.decodeBech32Pubkey}}),Object.defineProperty(_e,"encodeAminoPubkey",{enumerable:!0,get:function(){return Cr.encodeAminoPubkey}}),Object.defineProperty(_e,"encodeBech32Pubkey",{enumerable:!0,get:function(){return Cr.encodeBech32Pubkey}}),Object.defineProperty(_e,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return Cr.encodeEd25519Pubkey}}),Object.defineProperty(_e,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return Cr.encodeSecp256k1Pubkey}});var Vr=multisig;Object.defineProperty(_e,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return Vr.createMultisigThresholdPubkey}});var tt=paths$1;Object.defineProperty(_e,"makeCosmoshubPath",{enumerable:!0,get:function(){return tt.makeCosmoshubPath}});var nt=pubkeys;Object.defineProperty(_e,"isEd25519Pubkey",{enumerable:!0,get:function(){return nt.isEd25519Pubkey}}),Object.defineProperty(_e,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return nt.isMultisigThresholdPubkey}}),Object.defineProperty(_e,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return nt.isSecp256k1Pubkey}}),Object.defineProperty(_e,"isSinglePubkey",{enumerable:!0,get:function(){return nt.isSinglePubkey}}),Object.defineProperty(_e,"pubkeyType",{enumerable:!0,get:function(){return nt.pubkeyType}});var st=secp256k1hdwallet;Object.defineProperty(_e,"extractKdfConfiguration",{enumerable:!0,get:function(){return st.extractKdfConfiguration}}),Object.defineProperty(_e,"Secp256k1HdWallet",{enumerable:!0,get:function(){return st.Secp256k1HdWallet}});var dt=secp256k1wallet;Object.defineProperty(_e,"Secp256k1Wallet",{enumerable:!0,get:function(){return dt.Secp256k1Wallet}});var kt=signature;Object.defineProperty(_e,"decodeSignature",{enumerable:!0,get:function(){return kt.decodeSignature}}),Object.defineProperty(_e,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return kt.encodeSecp256k1Signature}});var qt=signdoc;Object.defineProperty(_e,"makeSignDoc",{enumerable:!0,get:function(){return qt.makeSignDoc}}),Object.defineProperty(_e,"serializeSignDoc",{enumerable:!0,get:function(){return qt.serializeSignDoc}});var ro=stdtx;Object.defineProperty(_e,"isStdTx",{enumerable:!0,get:function(){return ro.isStdTx}}),Object.defineProperty(_e,"makeStdTx",{enumerable:!0,get:function(){return ro.makeStdTx}});var ht=wallet$1;Object.defineProperty(_e,"executeKdf",{enumerable:!0,get:function(){return ht.executeKdf}})}(build$8);var signing={},__importDefault$g=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(signing,"__esModule",{value:!0}),signing.makeSignBytes=signing.makeSignDoc=signing.makeAuthInfoBytes=void 0;const utils_1$f=build$6,signing_1$5=signing$1,tx_1$f=tx$e,long_1$c=__importDefault$g(long);function makeSignerInfos(_e,cr){return _e.map(({pubkey:gr,sequence:Cr})=>({publicKey:gr,modeInfo:{single:{mode:cr}},sequence:long_1$c.default.fromNumber(Cr)}))}function makeAuthInfoBytes(_e,cr,gr,Cr,Vr,tt=signing_1$5.SignMode.SIGN_MODE_DIRECT){(0,utils_1$f.assert)(Cr===void 0||typeof Cr=="string","feeGranter must be undefined or string"),(0,utils_1$f.assert)(Vr===void 0||typeof Vr=="string","feePayer must be undefined or string");const nt=tx_1$f.AuthInfo.fromPartial({signerInfos:makeSignerInfos(_e,tt),fee:{amount:[...cr],gasLimit:long_1$c.default.fromNumber(gr),granter:Cr,payer:Vr}});return tx_1$f.AuthInfo.encode(nt).finish()}signing.makeAuthInfoBytes=makeAuthInfoBytes;function makeSignDoc(_e,cr,gr,Cr){return{bodyBytes:_e,authInfoBytes:cr,chainId:gr,accountNumber:long_1$c.default.fromNumber(Cr)}}signing.makeSignDoc=makeSignDoc;function makeSignBytes({accountNumber:_e,authInfoBytes:cr,bodyBytes:gr,chainId:Cr}){const Vr=tx_1$f.SignDoc.fromPartial({accountNumber:_e,authInfoBytes:cr,bodyBytes:gr,chainId:Cr});return tx_1$f.SignDoc.encode(Vr).finish()}signing.makeSignBytes=makeSignBytes;var wallet={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.decrypt=_e.encrypt=_e.supportedAlgorithms=_e.executeKdf=_e.cosmjsSalt=void 0;const cr=build$7,gr=build$c;_e.cosmjsSalt=(0,gr.toAscii)("The CosmJS salt.");async function Cr(nt,st){switch(st.algorithm){case"argon2id":{const dt=st.params;if(!(0,cr.isArgon2idOptions)(dt))throw new Error("Invalid format of argon2id params");return cr.Argon2id.execute(nt,_e.cosmjsSalt,dt)}default:throw new Error("Unsupported KDF algorithm")}}_e.executeKdf=Cr,_e.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function Vr(nt,st,dt){switch(dt.algorithm){case _e.supportedAlgorithms.xchacha20poly1305Ietf:{const kt=cr.Random.getBytes(cr.xchacha20NonceLength);return new Uint8Array([...kt,...await cr.Xchacha20poly1305Ietf.encrypt(nt,st,kt)])}default:throw new Error(`Unsupported encryption algorithm: '${dt.algorithm}'`)}}_e.encrypt=Vr;async function tt(nt,st,dt){switch(dt.algorithm){case _e.supportedAlgorithms.xchacha20poly1305Ietf:{const kt=nt.slice(0,cr.xchacha20NonceLength);return cr.Xchacha20poly1305Ietf.decrypt(nt.slice(cr.xchacha20NonceLength),st,kt)}default:throw new Error(`Unsupported encryption algorithm: '${dt.algorithm}'`)}}_e.decrypt=tt})(wallet),Object.defineProperty(directsecp256k1hdwallet,"__esModule",{value:!0}),directsecp256k1hdwallet.DirectSecp256k1HdWallet=directsecp256k1hdwallet.extractKdfConfiguration=void 0;const amino_1$5=build$8,crypto_1$7=build$7,encoding_1$m=build$c,utils_1$e=build$6,signing_1$4=signing,wallet_1=wallet,serializationTypeV1="directsecp256k1hdwallet-v1",basicPasswordHashingOptions={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function isDerivationJson(_e){return!(!(0,utils_1$e.isNonNullObject)(_e)||typeof _e.hdPath!="string"||typeof _e.prefix!="string")}function extractKdfConfigurationV1(_e){return _e.kdf}function extractKdfConfiguration(_e){const cr=JSON.parse(_e);if(!(0,utils_1$e.isNonNullObject)(cr))throw new Error("Root document is not an object.");switch(cr.type){case serializationTypeV1:return extractKdfConfigurationV1(cr);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(cr,gr={}){const Cr=new crypto_1$7.EnglishMnemonic(cr),Vr=await crypto_1$7.Bip39.mnemonicToSeed(Cr,gr.bip39Password);return new DirectSecp256k1HdWallet(Cr,{...gr,seed:Vr})}static async generate(cr=12,gr={}){const Cr=4*Math.floor(11*cr/33),Vr=crypto_1$7.Random.getBytes(Cr),tt=crypto_1$7.Bip39.encode(Vr);return DirectSecp256k1HdWallet.fromMnemonic(tt.toString(),gr)}static async deserialize(cr,gr){const Cr=JSON.parse(cr);if(!(0,utils_1$e.isNonNullObject)(Cr))throw new Error("Root document is not an object.");switch(Cr.type){case serializationTypeV1:return DirectSecp256k1HdWallet.deserializeTypeV1(cr,gr);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(cr,gr){const Cr=JSON.parse(cr);if(!(0,utils_1$e.isNonNullObject)(Cr))throw new Error("Root document is not an object.");const Vr=Cr;switch(Vr.type){case serializationTypeV1:{const tt=await(0,wallet_1.decrypt)((0,encoding_1$m.fromBase64)(Vr.data),gr,Vr.encryption),nt=JSON.parse((0,encoding_1$m.fromUtf8)(tt)),{mnemonic:st,accounts:dt}=nt;if((0,utils_1$e.assert)(typeof st=="string"),!Array.isArray(dt))throw new Error("Property 'accounts' is not an array");if(!dt.every(ro=>isDerivationJson(ro)))throw new Error("Account is not in the correct format.");const kt=dt[0].prefix;if(!dt.every(({prefix:ro})=>ro===kt))throw new Error("Accounts do not all have the same prefix");const qt=dt.map(({hdPath:ro})=>(0,crypto_1$7.stringToPath)(ro));return DirectSecp256k1HdWallet.fromMnemonic(st,{hdPaths:qt,prefix:kt})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(cr,gr){const Cr=JSON.parse(cr);if(!(0,utils_1$e.isNonNullObject)(Cr))throw new Error("Root document is not an object.");const Vr=await(0,wallet_1.executeKdf)(gr,Cr.kdf);return DirectSecp256k1HdWallet.deserializeWithEncryptionKey(cr,Vr)}constructor(cr,gr){const Cr=gr.prefix??defaultOptions.prefix,Vr=gr.hdPaths??defaultOptions.hdPaths;this.secret=cr,this.seed=gr.seed,this.accounts=Vr.map(tt=>({hdPath:tt,prefix:Cr}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:cr,pubkey:gr,address:Cr})=>({algo:cr,pubkey:gr,address:Cr}))}async signDirect(cr,gr){const Cr=(await this.getAccountsWithPrivkeys()).find(({address:ro})=>ro===cr);if(Cr===void 0)throw new Error(`Address ${cr} not found in wallet`);const{privkey:Vr,pubkey:tt}=Cr,nt=(0,signing_1$4.makeSignBytes)(gr),st=(0,crypto_1$7.sha256)(nt),dt=await crypto_1$7.Secp256k1.createSignature(st,Vr),kt=new Uint8Array([...dt.r(32),...dt.s(32)]),qt=(0,amino_1$5.encodeSecp256k1Signature)(tt,kt);return{signed:gr,signature:qt}}async serialize(cr){const gr=basicPasswordHashingOptions,Cr=await(0,wallet_1.executeKdf)(cr,gr);return this.serializeWithEncryptionKey(Cr,gr)}async serializeWithEncryptionKey(cr,gr){const Cr={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:dt,prefix:kt})=>({hdPath:(0,crypto_1$7.pathToString)(dt),prefix:kt}))},Vr=(0,encoding_1$m.toUtf8)(JSON.stringify(Cr)),tt={algorithm:wallet_1.supportedAlgorithms.xchacha20poly1305Ietf},nt=await(0,wallet_1.encrypt)(Vr,cr,tt),st={type:serializationTypeV1,kdf:gr,encryption:tt,data:(0,encoding_1$m.toBase64)(nt)};return JSON.stringify(st)}async getKeyPair(cr){const{privkey:gr}=crypto_1$7.Slip10.derivePath(crypto_1$7.Slip10Curve.Secp256k1,this.seed,cr),{pubkey:Cr}=await crypto_1$7.Secp256k1.makeKeypair(gr);return{privkey:gr,pubkey:crypto_1$7.Secp256k1.compressPubkey(Cr)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:cr,prefix:gr})=>{const{privkey:Cr,pubkey:Vr}=await this.getKeyPair(cr),tt=(0,encoding_1$m.toBech32)(gr,(0,amino_1$5.rawSecp256k1PubkeyToRawAddress)(Vr));return{algo:"secp256k1",privkey:Cr,pubkey:Vr,address:tt}}))}}directsecp256k1hdwallet.DirectSecp256k1HdWallet=DirectSecp256k1HdWallet;var directsecp256k1wallet={};Object.defineProperty(directsecp256k1wallet,"__esModule",{value:!0}),directsecp256k1wallet.DirectSecp256k1Wallet=void 0;const amino_1$4=build$8,crypto_1$6=build$7,encoding_1$l=build$c,signing_1$3=signing;class DirectSecp256k1Wallet{static async fromKey(cr,gr="cosmos"){const Cr=(await crypto_1$6.Secp256k1.makeKeypair(cr)).pubkey;return new DirectSecp256k1Wallet(cr,crypto_1$6.Secp256k1.compressPubkey(Cr),gr)}constructor(cr,gr,Cr){this.privkey=cr,this.pubkey=gr,this.prefix=Cr}get address(){return(0,encoding_1$l.toBech32)(this.prefix,(0,amino_1$4.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(cr,gr){const Cr=(0,signing_1$3.makeSignBytes)(gr);if(cr!==this.address)throw new Error(`Address ${cr} not found in wallet`);const Vr=(0,crypto_1$6.sha256)(Cr),tt=await crypto_1$6.Secp256k1.createSignature(Vr,this.privkey),nt=new Uint8Array([...tt.r(32),...tt.s(32)]),st=(0,amino_1$4.encodeSecp256k1Signature)(this.pubkey,nt);return{signed:gr,signature:st}}}directsecp256k1wallet.DirectSecp256k1Wallet=DirectSecp256k1Wallet;var paths={};Object.defineProperty(paths,"__esModule",{value:!0}),paths.makeCosmoshubPath=void 0;const crypto_1$5=build$7;function makeCosmoshubPath(_e){return[crypto_1$5.Slip10RawIndex.hardened(44),crypto_1$5.Slip10RawIndex.hardened(118),crypto_1$5.Slip10RawIndex.hardened(0),crypto_1$5.Slip10RawIndex.normal(0),crypto_1$5.Slip10RawIndex.normal(_e)]}paths.makeCosmoshubPath=makeCosmoshubPath;var pubkey={},keys$8={},__createBinding$i=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$i=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$i=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$i(cr,_e,gr);return __setModuleDefault$i(cr,_e),cr};Object.defineProperty(keys$8,"__esModule",{value:!0}),keys$8.PrivKey=keys$8.PubKey=keys$8.protobufPackage=void 0;const _m0$d=__importStar$i(minimal),helpers_1$d=helpers;keys$8.protobufPackage="cosmos.crypto.ed25519";function createBasePubKey$1(){return{key:new Uint8Array}}keys$8.PubKey={encode(_e,cr=_m0$d.Writer.create()){return _e.key.length!==0&&cr.uint32(10).bytes(_e.key),cr},decode(_e,cr){const gr=_e instanceof _m0$d.Reader?_e:new _m0$d.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBasePubKey$1();for(;gr.pos>>3){case 1:Vr.key=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{key:(0,helpers_1$d.isSet)(_e.key)?(0,helpers_1$d.bytesFromBase64)(_e.key):new Uint8Array}},toJSON(_e){const cr={};return _e.key!==void 0&&(cr.key=(0,helpers_1$d.base64FromBytes)(_e.key!==void 0?_e.key:new Uint8Array)),cr},fromPartial(_e){const cr=createBasePubKey$1();return cr.key=_e.key??new Uint8Array,cr}};function createBasePrivKey$1(){return{key:new Uint8Array}}keys$8.PrivKey={encode(_e,cr=_m0$d.Writer.create()){return _e.key.length!==0&&cr.uint32(10).bytes(_e.key),cr},decode(_e,cr){const gr=_e instanceof _m0$d.Reader?_e:new _m0$d.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBasePrivKey$1();for(;gr.pos>>3){case 1:Vr.key=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{key:(0,helpers_1$d.isSet)(_e.key)?(0,helpers_1$d.bytesFromBase64)(_e.key):new Uint8Array}},toJSON(_e){const cr={};return _e.key!==void 0&&(cr.key=(0,helpers_1$d.base64FromBytes)(_e.key!==void 0?_e.key:new Uint8Array)),cr},fromPartial(_e){const cr=createBasePrivKey$1();return cr.key=_e.key??new Uint8Array,cr}};var keys$7={},__createBinding$h=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$h=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$h=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$h(cr,_e,gr);return __setModuleDefault$h(cr,_e),cr};Object.defineProperty(keys$7,"__esModule",{value:!0}),keys$7.LegacyAminoPubKey=keys$7.protobufPackage=void 0;const any_1$4=any,_m0$c=__importStar$h(minimal),helpers_1$c=helpers;keys$7.protobufPackage="cosmos.crypto.multisig";function createBaseLegacyAminoPubKey(){return{threshold:0,publicKeys:[]}}keys$7.LegacyAminoPubKey={encode(_e,cr=_m0$c.Writer.create()){_e.threshold!==0&&cr.uint32(8).uint32(_e.threshold);for(const gr of _e.publicKeys)any_1$4.Any.encode(gr,cr.uint32(18).fork()).ldelim();return cr},decode(_e,cr){const gr=_e instanceof _m0$c.Reader?_e:new _m0$c.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseLegacyAminoPubKey();for(;gr.pos>>3){case 1:Vr.threshold=gr.uint32();break;case 2:Vr.publicKeys.push(any_1$4.Any.decode(gr,gr.uint32()));break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{threshold:(0,helpers_1$c.isSet)(_e.threshold)?Number(_e.threshold):0,publicKeys:Array.isArray(_e==null?void 0:_e.publicKeys)?_e.publicKeys.map(cr=>any_1$4.Any.fromJSON(cr)):[]}},toJSON(_e){const cr={};return _e.threshold!==void 0&&(cr.threshold=Math.round(_e.threshold)),_e.publicKeys?cr.publicKeys=_e.publicKeys.map(gr=>gr?any_1$4.Any.toJSON(gr):void 0):cr.publicKeys=[],cr},fromPartial(_e){var gr;const cr=createBaseLegacyAminoPubKey();return cr.threshold=_e.threshold??0,cr.publicKeys=((gr=_e.publicKeys)==null?void 0:gr.map(Cr=>any_1$4.Any.fromPartial(Cr)))||[],cr}};var keys$6={},__createBinding$g=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$g=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$g=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$g(cr,_e,gr);return __setModuleDefault$g(cr,_e),cr};Object.defineProperty(keys$6,"__esModule",{value:!0}),keys$6.PrivKey=keys$6.PubKey=keys$6.protobufPackage=void 0;const _m0$b=__importStar$g(minimal),helpers_1$b=helpers;keys$6.protobufPackage="cosmos.crypto.secp256k1";function createBasePubKey(){return{key:new Uint8Array}}keys$6.PubKey={encode(_e,cr=_m0$b.Writer.create()){return _e.key.length!==0&&cr.uint32(10).bytes(_e.key),cr},decode(_e,cr){const gr=_e instanceof _m0$b.Reader?_e:new _m0$b.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBasePubKey();for(;gr.pos>>3){case 1:Vr.key=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{key:(0,helpers_1$b.isSet)(_e.key)?(0,helpers_1$b.bytesFromBase64)(_e.key):new Uint8Array}},toJSON(_e){const cr={};return _e.key!==void 0&&(cr.key=(0,helpers_1$b.base64FromBytes)(_e.key!==void 0?_e.key:new Uint8Array)),cr},fromPartial(_e){const cr=createBasePubKey();return cr.key=_e.key??new Uint8Array,cr}};function createBasePrivKey(){return{key:new Uint8Array}}keys$6.PrivKey={encode(_e,cr=_m0$b.Writer.create()){return _e.key.length!==0&&cr.uint32(10).bytes(_e.key),cr},decode(_e,cr){const gr=_e instanceof _m0$b.Reader?_e:new _m0$b.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBasePrivKey();for(;gr.pos>>3){case 1:Vr.key=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{key:(0,helpers_1$b.isSet)(_e.key)?(0,helpers_1$b.bytesFromBase64)(_e.key):new Uint8Array}},toJSON(_e){const cr={};return _e.key!==void 0&&(cr.key=(0,helpers_1$b.base64FromBytes)(_e.key!==void 0?_e.key:new Uint8Array)),cr},fromPartial(_e){const cr=createBasePrivKey();return cr.key=_e.key??new Uint8Array,cr}},Object.defineProperty(pubkey,"__esModule",{value:!0}),pubkey.decodePubkey=pubkey.anyToSinglePubkey=pubkey.encodePubkey=void 0;const amino_1$3=build$8,encoding_1$k=build$c,math_1$c=build$b,keys_1$1=keys$8,keys_2=keys$7,keys_3=keys$6,any_1$3=any;function encodePubkey(_e){if((0,amino_1$3.isSecp256k1Pubkey)(_e)){const cr=keys_3.PubKey.fromPartial({key:(0,encoding_1$k.fromBase64)(_e.value)});return any_1$3.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(keys_3.PubKey.encode(cr).finish())})}else if((0,amino_1$3.isEd25519Pubkey)(_e)){const cr=keys_1$1.PubKey.fromPartial({key:(0,encoding_1$k.fromBase64)(_e.value)});return any_1$3.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(keys_1$1.PubKey.encode(cr).finish())})}else if((0,amino_1$3.isMultisigThresholdPubkey)(_e)){const cr=keys_2.LegacyAminoPubKey.fromPartial({threshold:math_1$c.Uint53.fromString(_e.value.threshold).toNumber(),publicKeys:_e.value.pubkeys.map(encodePubkey)});return any_1$3.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(keys_2.LegacyAminoPubKey.encode(cr).finish())})}else throw new Error(`Pubkey type ${_e.type} not recognized`)}pubkey.encodePubkey=encodePubkey;function anyToSinglePubkey(_e){switch(_e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{const{key:cr}=keys_3.PubKey.decode(_e.value);return(0,amino_1$3.encodeSecp256k1Pubkey)(cr)}case"/cosmos.crypto.ed25519.PubKey":{const{key:cr}=keys_1$1.PubKey.decode(_e.value);return(0,amino_1$3.encodeEd25519Pubkey)(cr)}default:throw new Error(`Pubkey type_url ${_e.typeUrl} not recognized as single public key type`)}}pubkey.anyToSinglePubkey=anyToSinglePubkey;function decodePubkey$2(_e){switch(_e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return anyToSinglePubkey(_e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":{const{threshold:cr,publicKeys:gr}=keys_2.LegacyAminoPubKey.decode(_e.value);return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:cr.toString(),pubkeys:gr.map(anyToSinglePubkey)}}}default:throw new Error(`Pubkey type_url ${_e.typeUrl} not recognized`)}}pubkey.decodePubkey=decodePubkey$2;var registry={},tx$d={},bank={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo);var St=Object.getOwnPropertyDescriptor(Nt,eo);(!St||("get"in St?!Nt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return Nt[eo]}}),Object.defineProperty(no,Wt,St)}:function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo),no[Wt]=Nt[eo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(no,Nt){Object.defineProperty(no,"default",{enumerable:!0,value:Nt})}:function(no,Nt){no.default=Nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(no){if(no&&no.__esModule)return no;var Nt={};if(no!=null)for(var eo in no)eo!=="default"&&Object.prototype.hasOwnProperty.call(no,eo)&&cr(Nt,no,eo);return gr(Nt,no),Nt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Metadata=_e.DenomUnit=_e.Supply=_e.Output=_e.Input=_e.SendEnabled=_e.Params=_e.protobufPackage=void 0;const Vr=coin$1,tt=Cr(minimal),nt=helpers;_e.protobufPackage="cosmos.bank.v1beta1";function st(){return{sendEnabled:[],defaultSendEnabled:!1}}_e.Params={encode(no,Nt=tt.Writer.create()){for(const eo of no.sendEnabled)_e.SendEnabled.encode(eo,Nt.uint32(10).fork()).ldelim();return no.defaultSendEnabled===!0&&Nt.uint32(16).bool(no.defaultSendEnabled),Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=st();for(;eo.pos>>3){case 1:St.sendEnabled.push(_e.SendEnabled.decode(eo,eo.uint32()));break;case 2:St.defaultSendEnabled=eo.bool();break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{sendEnabled:Array.isArray(no==null?void 0:no.sendEnabled)?no.sendEnabled.map(Nt=>_e.SendEnabled.fromJSON(Nt)):[],defaultSendEnabled:(0,nt.isSet)(no.defaultSendEnabled)?!!no.defaultSendEnabled:!1}},toJSON(no){const Nt={};return no.sendEnabled?Nt.sendEnabled=no.sendEnabled.map(eo=>eo?_e.SendEnabled.toJSON(eo):void 0):Nt.sendEnabled=[],no.defaultSendEnabled!==void 0&&(Nt.defaultSendEnabled=no.defaultSendEnabled),Nt},fromPartial(no){var eo;const Nt=st();return Nt.sendEnabled=((eo=no.sendEnabled)==null?void 0:eo.map(Wt=>_e.SendEnabled.fromPartial(Wt)))||[],Nt.defaultSendEnabled=no.defaultSendEnabled??!1,Nt}};function dt(){return{denom:"",enabled:!1}}_e.SendEnabled={encode(no,Nt=tt.Writer.create()){return no.denom!==""&&Nt.uint32(10).string(no.denom),no.enabled===!0&&Nt.uint32(16).bool(no.enabled),Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=dt();for(;eo.pos>>3){case 1:St.denom=eo.string();break;case 2:St.enabled=eo.bool();break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{denom:(0,nt.isSet)(no.denom)?String(no.denom):"",enabled:(0,nt.isSet)(no.enabled)?!!no.enabled:!1}},toJSON(no){const Nt={};return no.denom!==void 0&&(Nt.denom=no.denom),no.enabled!==void 0&&(Nt.enabled=no.enabled),Nt},fromPartial(no){const Nt=dt();return Nt.denom=no.denom??"",Nt.enabled=no.enabled??!1,Nt}};function kt(){return{address:"",coins:[]}}_e.Input={encode(no,Nt=tt.Writer.create()){no.address!==""&&Nt.uint32(10).string(no.address);for(const eo of no.coins)Vr.Coin.encode(eo,Nt.uint32(18).fork()).ldelim();return Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=kt();for(;eo.pos>>3){case 1:St.address=eo.string();break;case 2:St.coins.push(Vr.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{address:(0,nt.isSet)(no.address)?String(no.address):"",coins:Array.isArray(no==null?void 0:no.coins)?no.coins.map(Nt=>Vr.Coin.fromJSON(Nt)):[]}},toJSON(no){const Nt={};return no.address!==void 0&&(Nt.address=no.address),no.coins?Nt.coins=no.coins.map(eo=>eo?Vr.Coin.toJSON(eo):void 0):Nt.coins=[],Nt},fromPartial(no){var eo;const Nt=kt();return Nt.address=no.address??"",Nt.coins=((eo=no.coins)==null?void 0:eo.map(Wt=>Vr.Coin.fromPartial(Wt)))||[],Nt}};function qt(){return{address:"",coins:[]}}_e.Output={encode(no,Nt=tt.Writer.create()){no.address!==""&&Nt.uint32(10).string(no.address);for(const eo of no.coins)Vr.Coin.encode(eo,Nt.uint32(18).fork()).ldelim();return Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=qt();for(;eo.pos>>3){case 1:St.address=eo.string();break;case 2:St.coins.push(Vr.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{address:(0,nt.isSet)(no.address)?String(no.address):"",coins:Array.isArray(no==null?void 0:no.coins)?no.coins.map(Nt=>Vr.Coin.fromJSON(Nt)):[]}},toJSON(no){const Nt={};return no.address!==void 0&&(Nt.address=no.address),no.coins?Nt.coins=no.coins.map(eo=>eo?Vr.Coin.toJSON(eo):void 0):Nt.coins=[],Nt},fromPartial(no){var eo;const Nt=qt();return Nt.address=no.address??"",Nt.coins=((eo=no.coins)==null?void 0:eo.map(Wt=>Vr.Coin.fromPartial(Wt)))||[],Nt}};function ro(){return{total:[]}}_e.Supply={encode(no,Nt=tt.Writer.create()){for(const eo of no.total)Vr.Coin.encode(eo,Nt.uint32(10).fork()).ldelim();return Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ro();for(;eo.pos>>3){case 1:St.total.push(Vr.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{total:Array.isArray(no==null?void 0:no.total)?no.total.map(Nt=>Vr.Coin.fromJSON(Nt)):[]}},toJSON(no){const Nt={};return no.total?Nt.total=no.total.map(eo=>eo?Vr.Coin.toJSON(eo):void 0):Nt.total=[],Nt},fromPartial(no){var eo;const Nt=ro();return Nt.total=((eo=no.total)==null?void 0:eo.map(Wt=>Vr.Coin.fromPartial(Wt)))||[],Nt}};function ht(){return{denom:"",exponent:0,aliases:[]}}_e.DenomUnit={encode(no,Nt=tt.Writer.create()){no.denom!==""&&Nt.uint32(10).string(no.denom),no.exponent!==0&&Nt.uint32(16).uint32(no.exponent);for(const eo of no.aliases)Nt.uint32(26).string(eo);return Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ht();for(;eo.pos>>3){case 1:St.denom=eo.string();break;case 2:St.exponent=eo.uint32();break;case 3:St.aliases.push(eo.string());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{denom:(0,nt.isSet)(no.denom)?String(no.denom):"",exponent:(0,nt.isSet)(no.exponent)?Number(no.exponent):0,aliases:Array.isArray(no==null?void 0:no.aliases)?no.aliases.map(Nt=>String(Nt)):[]}},toJSON(no){const Nt={};return no.denom!==void 0&&(Nt.denom=no.denom),no.exponent!==void 0&&(Nt.exponent=Math.round(no.exponent)),no.aliases?Nt.aliases=no.aliases.map(eo=>eo):Nt.aliases=[],Nt},fromPartial(no){var eo;const Nt=ht();return Nt.denom=no.denom??"",Nt.exponent=no.exponent??0,Nt.aliases=((eo=no.aliases)==null?void 0:eo.map(Wt=>Wt))||[],Nt}};function po(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol:"",uri:"",uriHash:""}}_e.Metadata={encode(no,Nt=tt.Writer.create()){no.description!==""&&Nt.uint32(10).string(no.description);for(const eo of no.denomUnits)_e.DenomUnit.encode(eo,Nt.uint32(18).fork()).ldelim();return no.base!==""&&Nt.uint32(26).string(no.base),no.display!==""&&Nt.uint32(34).string(no.display),no.name!==""&&Nt.uint32(42).string(no.name),no.symbol!==""&&Nt.uint32(50).string(no.symbol),no.uri!==""&&Nt.uint32(58).string(no.uri),no.uriHash!==""&&Nt.uint32(66).string(no.uriHash),Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=po();for(;eo.pos>>3){case 1:St.description=eo.string();break;case 2:St.denomUnits.push(_e.DenomUnit.decode(eo,eo.uint32()));break;case 3:St.base=eo.string();break;case 4:St.display=eo.string();break;case 5:St.name=eo.string();break;case 6:St.symbol=eo.string();break;case 7:St.uri=eo.string();break;case 8:St.uriHash=eo.string();break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{description:(0,nt.isSet)(no.description)?String(no.description):"",denomUnits:Array.isArray(no==null?void 0:no.denomUnits)?no.denomUnits.map(Nt=>_e.DenomUnit.fromJSON(Nt)):[],base:(0,nt.isSet)(no.base)?String(no.base):"",display:(0,nt.isSet)(no.display)?String(no.display):"",name:(0,nt.isSet)(no.name)?String(no.name):"",symbol:(0,nt.isSet)(no.symbol)?String(no.symbol):"",uri:(0,nt.isSet)(no.uri)?String(no.uri):"",uriHash:(0,nt.isSet)(no.uriHash)?String(no.uriHash):""}},toJSON(no){const Nt={};return no.description!==void 0&&(Nt.description=no.description),no.denomUnits?Nt.denomUnits=no.denomUnits.map(eo=>eo?_e.DenomUnit.toJSON(eo):void 0):Nt.denomUnits=[],no.base!==void 0&&(Nt.base=no.base),no.display!==void 0&&(Nt.display=no.display),no.name!==void 0&&(Nt.name=no.name),no.symbol!==void 0&&(Nt.symbol=no.symbol),no.uri!==void 0&&(Nt.uri=no.uri),no.uriHash!==void 0&&(Nt.uriHash=no.uriHash),Nt},fromPartial(no){var eo;const Nt=po();return Nt.description=no.description??"",Nt.denomUnits=((eo=no.denomUnits)==null?void 0:eo.map(Wt=>_e.DenomUnit.fromPartial(Wt)))||[],Nt.base=no.base??"",Nt.display=no.display??"",Nt.name=no.name??"",Nt.symbol=no.symbol??"",Nt.uri=no.uri??"",Nt.uriHash=no.uriHash??"",Nt}}})(bank),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Wt,St,Ot,uo){uo===void 0&&(uo=Ot);var go=Object.getOwnPropertyDescriptor(St,Ot);(!go||("get"in go?!St.__esModule:go.writable||go.configurable))&&(go={enumerable:!0,get:function(){return St[Ot]}}),Object.defineProperty(Wt,uo,go)}:function(Wt,St,Ot,uo){uo===void 0&&(uo=Ot),Wt[uo]=St[Ot]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Wt,St){Object.defineProperty(Wt,"default",{enumerable:!0,value:St})}:function(Wt,St){Wt.default=St}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Wt){if(Wt&&Wt.__esModule)return Wt;var St={};if(Wt!=null)for(var Ot in Wt)Ot!=="default"&&Object.prototype.hasOwnProperty.call(Wt,Ot)&&cr(St,Wt,Ot);return gr(St,Wt),St};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgSetSendEnabledResponse=_e.MsgSetSendEnabled=_e.MsgUpdateParamsResponse=_e.MsgUpdateParams=_e.MsgMultiSendResponse=_e.MsgMultiSend=_e.MsgSendResponse=_e.MsgSend=_e.protobufPackage=void 0;const Vr=coin$1,tt=bank,nt=Cr(minimal),st=helpers;_e.protobufPackage="cosmos.bank.v1beta1";function dt(){return{fromAddress:"",toAddress:"",amount:[]}}_e.MsgSend={encode(Wt,St=nt.Writer.create()){Wt.fromAddress!==""&&St.uint32(10).string(Wt.fromAddress),Wt.toAddress!==""&&St.uint32(18).string(Wt.toAddress);for(const Ot of Wt.amount)Vr.Coin.encode(Ot,St.uint32(26).fork()).ldelim();return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=dt();for(;Ot.pos>>3){case 1:go.fromAddress=Ot.string();break;case 2:go.toAddress=Ot.string();break;case 3:go.amount.push(Vr.Coin.decode(Ot,Ot.uint32()));break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{fromAddress:(0,st.isSet)(Wt.fromAddress)?String(Wt.fromAddress):"",toAddress:(0,st.isSet)(Wt.toAddress)?String(Wt.toAddress):"",amount:Array.isArray(Wt==null?void 0:Wt.amount)?Wt.amount.map(St=>Vr.Coin.fromJSON(St)):[]}},toJSON(Wt){const St={};return Wt.fromAddress!==void 0&&(St.fromAddress=Wt.fromAddress),Wt.toAddress!==void 0&&(St.toAddress=Wt.toAddress),Wt.amount?St.amount=Wt.amount.map(Ot=>Ot?Vr.Coin.toJSON(Ot):void 0):St.amount=[],St},fromPartial(Wt){var Ot;const St=dt();return St.fromAddress=Wt.fromAddress??"",St.toAddress=Wt.toAddress??"",St.amount=((Ot=Wt.amount)==null?void 0:Ot.map(uo=>Vr.Coin.fromPartial(uo)))||[],St}};function kt(){return{}}_e.MsgSendResponse={encode(Wt,St=nt.Writer.create()){return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=kt();for(;Ot.pos>>3){default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{}},toJSON(Wt){return{}},fromPartial(Wt){return kt()}};function qt(){return{inputs:[],outputs:[]}}_e.MsgMultiSend={encode(Wt,St=nt.Writer.create()){for(const Ot of Wt.inputs)tt.Input.encode(Ot,St.uint32(10).fork()).ldelim();for(const Ot of Wt.outputs)tt.Output.encode(Ot,St.uint32(18).fork()).ldelim();return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=qt();for(;Ot.pos>>3){case 1:go.inputs.push(tt.Input.decode(Ot,Ot.uint32()));break;case 2:go.outputs.push(tt.Output.decode(Ot,Ot.uint32()));break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{inputs:Array.isArray(Wt==null?void 0:Wt.inputs)?Wt.inputs.map(St=>tt.Input.fromJSON(St)):[],outputs:Array.isArray(Wt==null?void 0:Wt.outputs)?Wt.outputs.map(St=>tt.Output.fromJSON(St)):[]}},toJSON(Wt){const St={};return Wt.inputs?St.inputs=Wt.inputs.map(Ot=>Ot?tt.Input.toJSON(Ot):void 0):St.inputs=[],Wt.outputs?St.outputs=Wt.outputs.map(Ot=>Ot?tt.Output.toJSON(Ot):void 0):St.outputs=[],St},fromPartial(Wt){var Ot,uo;const St=qt();return St.inputs=((Ot=Wt.inputs)==null?void 0:Ot.map(go=>tt.Input.fromPartial(go)))||[],St.outputs=((uo=Wt.outputs)==null?void 0:uo.map(go=>tt.Output.fromPartial(go)))||[],St}};function ro(){return{}}_e.MsgMultiSendResponse={encode(Wt,St=nt.Writer.create()){return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=ro();for(;Ot.pos>>3){default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{}},toJSON(Wt){return{}},fromPartial(Wt){return ro()}};function ht(){return{authority:"",params:void 0}}_e.MsgUpdateParams={encode(Wt,St=nt.Writer.create()){return Wt.authority!==""&&St.uint32(10).string(Wt.authority),Wt.params!==void 0&&tt.Params.encode(Wt.params,St.uint32(18).fork()).ldelim(),St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=ht();for(;Ot.pos>>3){case 1:go.authority=Ot.string();break;case 2:go.params=tt.Params.decode(Ot,Ot.uint32());break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{authority:(0,st.isSet)(Wt.authority)?String(Wt.authority):"",params:(0,st.isSet)(Wt.params)?tt.Params.fromJSON(Wt.params):void 0}},toJSON(Wt){const St={};return Wt.authority!==void 0&&(St.authority=Wt.authority),Wt.params!==void 0&&(St.params=Wt.params?tt.Params.toJSON(Wt.params):void 0),St},fromPartial(Wt){const St=ht();return St.authority=Wt.authority??"",St.params=Wt.params!==void 0&&Wt.params!==null?tt.Params.fromPartial(Wt.params):void 0,St}};function po(){return{}}_e.MsgUpdateParamsResponse={encode(Wt,St=nt.Writer.create()){return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=po();for(;Ot.pos>>3){default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{}},toJSON(Wt){return{}},fromPartial(Wt){return po()}};function no(){return{authority:"",sendEnabled:[],useDefaultFor:[]}}_e.MsgSetSendEnabled={encode(Wt,St=nt.Writer.create()){Wt.authority!==""&&St.uint32(10).string(Wt.authority);for(const Ot of Wt.sendEnabled)tt.SendEnabled.encode(Ot,St.uint32(18).fork()).ldelim();for(const Ot of Wt.useDefaultFor)St.uint32(26).string(Ot);return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=no();for(;Ot.pos>>3){case 1:go.authority=Ot.string();break;case 2:go.sendEnabled.push(tt.SendEnabled.decode(Ot,Ot.uint32()));break;case 3:go.useDefaultFor.push(Ot.string());break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{authority:(0,st.isSet)(Wt.authority)?String(Wt.authority):"",sendEnabled:Array.isArray(Wt==null?void 0:Wt.sendEnabled)?Wt.sendEnabled.map(St=>tt.SendEnabled.fromJSON(St)):[],useDefaultFor:Array.isArray(Wt==null?void 0:Wt.useDefaultFor)?Wt.useDefaultFor.map(St=>String(St)):[]}},toJSON(Wt){const St={};return Wt.authority!==void 0&&(St.authority=Wt.authority),Wt.sendEnabled?St.sendEnabled=Wt.sendEnabled.map(Ot=>Ot?tt.SendEnabled.toJSON(Ot):void 0):St.sendEnabled=[],Wt.useDefaultFor?St.useDefaultFor=Wt.useDefaultFor.map(Ot=>Ot):St.useDefaultFor=[],St},fromPartial(Wt){var Ot,uo;const St=no();return St.authority=Wt.authority??"",St.sendEnabled=((Ot=Wt.sendEnabled)==null?void 0:Ot.map(go=>tt.SendEnabled.fromPartial(go)))||[],St.useDefaultFor=((uo=Wt.useDefaultFor)==null?void 0:uo.map(go=>go))||[],St}};function Nt(){return{}}_e.MsgSetSendEnabledResponse={encode(Wt,St=nt.Writer.create()){return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=Nt();for(;Ot.pos>>3){default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{}},toJSON(Wt){return{}},fromPartial(Wt){return Nt()}};class eo{constructor(St){this.rpc=St,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(St){const Ot=_e.MsgSend.encode(St).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",Ot).then(uo=>_e.MsgSendResponse.decode(new nt.Reader(uo)))}MultiSend(St){const Ot=_e.MsgMultiSend.encode(St).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",Ot).then(uo=>_e.MsgMultiSendResponse.decode(new nt.Reader(uo)))}UpdateParams(St){const Ot=_e.MsgUpdateParams.encode(St).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","UpdateParams",Ot).then(uo=>_e.MsgUpdateParamsResponse.decode(new nt.Reader(uo)))}SetSendEnabled(St){const Ot=_e.MsgSetSendEnabled.encode(St).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","SetSendEnabled",Ot).then(uo=>_e.MsgSetSendEnabledResponse.decode(new nt.Reader(uo)))}}_e.MsgClientImpl=eo}(tx$d),Object.defineProperty(registry,"__esModule",{value:!0}),registry.Registry=registry.isTxBodyEncodeObject=registry.isPbjsGeneratedType=registry.isTsProtoGeneratedType=void 0;const tx_1$e=tx$d,coin_1=coin$1,tx_2$4=tx$e,any_1$2=any;function isTsProtoGeneratedType(_e){return typeof _e.fromPartial=="function"}registry.isTsProtoGeneratedType=isTsProtoGeneratedType;function isPbjsGeneratedType(_e){return!isTsProtoGeneratedType(_e)}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(_e){return _e.typeUrl==="/cosmos.tx.v1beta1.TxBody"}registry.isTxBodyEncodeObject=isTxBodyEncodeObject;class Registry{constructor(cr){const{cosmosCoin:gr,cosmosMsgSend:Cr}=defaultTypeUrls;this.types=cr?new Map([...cr]):new Map([[gr,coin_1.Coin],[Cr,tx_1$e.MsgSend]])}register(cr,gr){this.types.set(cr,gr)}lookupType(cr){return this.types.get(cr)}lookupTypeWithError(cr){const gr=this.lookupType(cr);if(!gr)throw new Error(`Unregistered type url: ${cr}`);return gr}encode(cr){const{value:gr,typeUrl:Cr}=cr;if(isTxBodyEncodeObject(cr))return this.encodeTxBody(gr);const Vr=this.lookupTypeWithError(Cr),tt=isTsProtoGeneratedType(Vr)?Vr.fromPartial(gr):Vr.create(gr);return Vr.encode(tt).finish()}encodeAsAny(cr){const gr=this.encode(cr);return any_1$2.Any.fromPartial({typeUrl:cr.typeUrl,value:gr})}encodeTxBody(cr){const gr=cr.messages.map(Vr=>this.encodeAsAny(Vr)),Cr=tx_2$4.TxBody.fromPartial({...cr,messages:gr});return tx_2$4.TxBody.encode(Cr).finish()}decode({typeUrl:cr,value:gr}){if(cr===defaultTypeUrls.cosmosTxBody)return this.decodeTxBody(gr);const Cr=this.lookupTypeWithError(cr).decode(gr);return Object.entries(Cr).forEach(([Vr,tt])=>{typeof Buffer<"u"&&typeof Buffer.isBuffer<"u"&&Buffer.isBuffer(tt)&&(Cr[Vr]=Uint8Array.from(tt))}),Cr}decodeTxBody(cr){const gr=tx_2$4.TxBody.decode(cr);return{...gr,messages:gr.messages.map(({typeUrl:Cr,value:Vr})=>{if(!Cr)throw new Error("Missing type_url in Any");if(!Vr)throw new Error("Missing value in Any");return this.decode({typeUrl:Cr,value:Vr})})}}}registry.Registry=Registry;var signer={};Object.defineProperty(signer,"__esModule",{value:!0}),signer.isOfflineDirectSigner=void 0;function isOfflineDirectSigner(_e){return _e.signDirect!==void 0}signer.isOfflineDirectSigner=isOfflineDirectSigner,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.coins=_e.coin=_e.executeKdf=_e.makeSignDoc=_e.makeSignBytes=_e.makeAuthInfoBytes=_e.isOfflineDirectSigner=_e.Registry=_e.isTxBodyEncodeObject=_e.isTsProtoGeneratedType=_e.isPbjsGeneratedType=_e.encodePubkey=_e.decodePubkey=_e.anyToSinglePubkey=_e.makeCosmoshubPath=_e.DirectSecp256k1Wallet=_e.extractKdfConfiguration=_e.DirectSecp256k1HdWallet=_e.decodeTxRaw=_e.parseCoins=void 0;var cr=coins$2;Object.defineProperty(_e,"parseCoins",{enumerable:!0,get:function(){return cr.parseCoins}});var gr=decode;Object.defineProperty(_e,"decodeTxRaw",{enumerable:!0,get:function(){return gr.decodeTxRaw}});var Cr=directsecp256k1hdwallet;Object.defineProperty(_e,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return Cr.DirectSecp256k1HdWallet}}),Object.defineProperty(_e,"extractKdfConfiguration",{enumerable:!0,get:function(){return Cr.extractKdfConfiguration}});var Vr=directsecp256k1wallet;Object.defineProperty(_e,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return Vr.DirectSecp256k1Wallet}});var tt=paths;Object.defineProperty(_e,"makeCosmoshubPath",{enumerable:!0,get:function(){return tt.makeCosmoshubPath}});var nt=pubkey;Object.defineProperty(_e,"anyToSinglePubkey",{enumerable:!0,get:function(){return nt.anyToSinglePubkey}}),Object.defineProperty(_e,"decodePubkey",{enumerable:!0,get:function(){return nt.decodePubkey}}),Object.defineProperty(_e,"encodePubkey",{enumerable:!0,get:function(){return nt.encodePubkey}});var st=registry;Object.defineProperty(_e,"isPbjsGeneratedType",{enumerable:!0,get:function(){return st.isPbjsGeneratedType}}),Object.defineProperty(_e,"isTsProtoGeneratedType",{enumerable:!0,get:function(){return st.isTsProtoGeneratedType}}),Object.defineProperty(_e,"isTxBodyEncodeObject",{enumerable:!0,get:function(){return st.isTxBodyEncodeObject}}),Object.defineProperty(_e,"Registry",{enumerable:!0,get:function(){return st.Registry}});var dt=signer;Object.defineProperty(_e,"isOfflineDirectSigner",{enumerable:!0,get:function(){return dt.isOfflineDirectSigner}});var kt=signing;Object.defineProperty(_e,"makeAuthInfoBytes",{enumerable:!0,get:function(){return kt.makeAuthInfoBytes}}),Object.defineProperty(_e,"makeSignBytes",{enumerable:!0,get:function(){return kt.makeSignBytes}}),Object.defineProperty(_e,"makeSignDoc",{enumerable:!0,get:function(){return kt.makeSignDoc}});var qt=wallet;Object.defineProperty(_e,"executeKdf",{enumerable:!0,get:function(){return qt.executeKdf}});var ro=build$8;Object.defineProperty(_e,"coin",{enumerable:!0,get:function(){return ro.coin}}),Object.defineProperty(_e,"coins",{enumerable:!0,get:function(){return ro.coins}})}(build$9);var auth={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ro,ht,po,no){no===void 0&&(no=po);var Nt=Object.getOwnPropertyDescriptor(ht,po);(!Nt||("get"in Nt?!ht.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return ht[po]}}),Object.defineProperty(ro,no,Nt)}:function(ro,ht,po,no){no===void 0&&(no=po),ro[no]=ht[po]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ro,ht){Object.defineProperty(ro,"default",{enumerable:!0,value:ht})}:function(ro,ht){ro.default=ht}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(ro){if(ro&&ro.__esModule)return ro;var ht={};if(ro!=null)for(var po in ro)po!=="default"&&Object.prototype.hasOwnProperty.call(ro,po)&&cr(ht,ro,po);return gr(ht,ro),ht};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Params=_e.ModuleCredential=_e.ModuleAccount=_e.BaseAccount=_e.protobufPackage=void 0;const Vr=any,tt=helpers,nt=Cr(minimal);_e.protobufPackage="cosmos.auth.v1beta1";function st(){return{address:"",pubKey:void 0,accountNumber:tt.Long.UZERO,sequence:tt.Long.UZERO}}_e.BaseAccount={encode(ro,ht=nt.Writer.create()){return ro.address!==""&&ht.uint32(10).string(ro.address),ro.pubKey!==void 0&&Vr.Any.encode(ro.pubKey,ht.uint32(18).fork()).ldelim(),ro.accountNumber.isZero()||ht.uint32(24).uint64(ro.accountNumber),ro.sequence.isZero()||ht.uint32(32).uint64(ro.sequence),ht},decode(ro,ht){const po=ro instanceof nt.Reader?ro:new nt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=st();for(;po.pos>>3){case 1:Nt.address=po.string();break;case 2:Nt.pubKey=Vr.Any.decode(po,po.uint32());break;case 3:Nt.accountNumber=po.uint64();break;case 4:Nt.sequence=po.uint64();break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{address:(0,tt.isSet)(ro.address)?String(ro.address):"",pubKey:(0,tt.isSet)(ro.pubKey)?Vr.Any.fromJSON(ro.pubKey):void 0,accountNumber:(0,tt.isSet)(ro.accountNumber)?tt.Long.fromValue(ro.accountNumber):tt.Long.UZERO,sequence:(0,tt.isSet)(ro.sequence)?tt.Long.fromValue(ro.sequence):tt.Long.UZERO}},toJSON(ro){const ht={};return ro.address!==void 0&&(ht.address=ro.address),ro.pubKey!==void 0&&(ht.pubKey=ro.pubKey?Vr.Any.toJSON(ro.pubKey):void 0),ro.accountNumber!==void 0&&(ht.accountNumber=(ro.accountNumber||tt.Long.UZERO).toString()),ro.sequence!==void 0&&(ht.sequence=(ro.sequence||tt.Long.UZERO).toString()),ht},fromPartial(ro){const ht=st();return ht.address=ro.address??"",ht.pubKey=ro.pubKey!==void 0&&ro.pubKey!==null?Vr.Any.fromPartial(ro.pubKey):void 0,ht.accountNumber=ro.accountNumber!==void 0&&ro.accountNumber!==null?tt.Long.fromValue(ro.accountNumber):tt.Long.UZERO,ht.sequence=ro.sequence!==void 0&&ro.sequence!==null?tt.Long.fromValue(ro.sequence):tt.Long.UZERO,ht}};function dt(){return{baseAccount:void 0,name:"",permissions:[]}}_e.ModuleAccount={encode(ro,ht=nt.Writer.create()){ro.baseAccount!==void 0&&_e.BaseAccount.encode(ro.baseAccount,ht.uint32(10).fork()).ldelim(),ro.name!==""&&ht.uint32(18).string(ro.name);for(const po of ro.permissions)ht.uint32(26).string(po);return ht},decode(ro,ht){const po=ro instanceof nt.Reader?ro:new nt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=dt();for(;po.pos>>3){case 1:Nt.baseAccount=_e.BaseAccount.decode(po,po.uint32());break;case 2:Nt.name=po.string();break;case 3:Nt.permissions.push(po.string());break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{baseAccount:(0,tt.isSet)(ro.baseAccount)?_e.BaseAccount.fromJSON(ro.baseAccount):void 0,name:(0,tt.isSet)(ro.name)?String(ro.name):"",permissions:Array.isArray(ro==null?void 0:ro.permissions)?ro.permissions.map(ht=>String(ht)):[]}},toJSON(ro){const ht={};return ro.baseAccount!==void 0&&(ht.baseAccount=ro.baseAccount?_e.BaseAccount.toJSON(ro.baseAccount):void 0),ro.name!==void 0&&(ht.name=ro.name),ro.permissions?ht.permissions=ro.permissions.map(po=>po):ht.permissions=[],ht},fromPartial(ro){var po;const ht=dt();return ht.baseAccount=ro.baseAccount!==void 0&&ro.baseAccount!==null?_e.BaseAccount.fromPartial(ro.baseAccount):void 0,ht.name=ro.name??"",ht.permissions=((po=ro.permissions)==null?void 0:po.map(no=>no))||[],ht}};function kt(){return{moduleName:"",derivationKeys:[]}}_e.ModuleCredential={encode(ro,ht=nt.Writer.create()){ro.moduleName!==""&&ht.uint32(10).string(ro.moduleName);for(const po of ro.derivationKeys)ht.uint32(18).bytes(po);return ht},decode(ro,ht){const po=ro instanceof nt.Reader?ro:new nt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=kt();for(;po.pos>>3){case 1:Nt.moduleName=po.string();break;case 2:Nt.derivationKeys.push(po.bytes());break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{moduleName:(0,tt.isSet)(ro.moduleName)?String(ro.moduleName):"",derivationKeys:Array.isArray(ro==null?void 0:ro.derivationKeys)?ro.derivationKeys.map(ht=>(0,tt.bytesFromBase64)(ht)):[]}},toJSON(ro){const ht={};return ro.moduleName!==void 0&&(ht.moduleName=ro.moduleName),ro.derivationKeys?ht.derivationKeys=ro.derivationKeys.map(po=>(0,tt.base64FromBytes)(po!==void 0?po:new Uint8Array)):ht.derivationKeys=[],ht},fromPartial(ro){var po;const ht=kt();return ht.moduleName=ro.moduleName??"",ht.derivationKeys=((po=ro.derivationKeys)==null?void 0:po.map(no=>no))||[],ht}};function qt(){return{maxMemoCharacters:tt.Long.UZERO,txSigLimit:tt.Long.UZERO,txSizeCostPerByte:tt.Long.UZERO,sigVerifyCostEd25519:tt.Long.UZERO,sigVerifyCostSecp256k1:tt.Long.UZERO}}_e.Params={encode(ro,ht=nt.Writer.create()){return ro.maxMemoCharacters.isZero()||ht.uint32(8).uint64(ro.maxMemoCharacters),ro.txSigLimit.isZero()||ht.uint32(16).uint64(ro.txSigLimit),ro.txSizeCostPerByte.isZero()||ht.uint32(24).uint64(ro.txSizeCostPerByte),ro.sigVerifyCostEd25519.isZero()||ht.uint32(32).uint64(ro.sigVerifyCostEd25519),ro.sigVerifyCostSecp256k1.isZero()||ht.uint32(40).uint64(ro.sigVerifyCostSecp256k1),ht},decode(ro,ht){const po=ro instanceof nt.Reader?ro:new nt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=qt();for(;po.pos>>3){case 1:Nt.maxMemoCharacters=po.uint64();break;case 2:Nt.txSigLimit=po.uint64();break;case 3:Nt.txSizeCostPerByte=po.uint64();break;case 4:Nt.sigVerifyCostEd25519=po.uint64();break;case 5:Nt.sigVerifyCostSecp256k1=po.uint64();break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{maxMemoCharacters:(0,tt.isSet)(ro.maxMemoCharacters)?tt.Long.fromValue(ro.maxMemoCharacters):tt.Long.UZERO,txSigLimit:(0,tt.isSet)(ro.txSigLimit)?tt.Long.fromValue(ro.txSigLimit):tt.Long.UZERO,txSizeCostPerByte:(0,tt.isSet)(ro.txSizeCostPerByte)?tt.Long.fromValue(ro.txSizeCostPerByte):tt.Long.UZERO,sigVerifyCostEd25519:(0,tt.isSet)(ro.sigVerifyCostEd25519)?tt.Long.fromValue(ro.sigVerifyCostEd25519):tt.Long.UZERO,sigVerifyCostSecp256k1:(0,tt.isSet)(ro.sigVerifyCostSecp256k1)?tt.Long.fromValue(ro.sigVerifyCostSecp256k1):tt.Long.UZERO}},toJSON(ro){const ht={};return ro.maxMemoCharacters!==void 0&&(ht.maxMemoCharacters=(ro.maxMemoCharacters||tt.Long.UZERO).toString()),ro.txSigLimit!==void 0&&(ht.txSigLimit=(ro.txSigLimit||tt.Long.UZERO).toString()),ro.txSizeCostPerByte!==void 0&&(ht.txSizeCostPerByte=(ro.txSizeCostPerByte||tt.Long.UZERO).toString()),ro.sigVerifyCostEd25519!==void 0&&(ht.sigVerifyCostEd25519=(ro.sigVerifyCostEd25519||tt.Long.UZERO).toString()),ro.sigVerifyCostSecp256k1!==void 0&&(ht.sigVerifyCostSecp256k1=(ro.sigVerifyCostSecp256k1||tt.Long.UZERO).toString()),ht},fromPartial(ro){const ht=qt();return ht.maxMemoCharacters=ro.maxMemoCharacters!==void 0&&ro.maxMemoCharacters!==null?tt.Long.fromValue(ro.maxMemoCharacters):tt.Long.UZERO,ht.txSigLimit=ro.txSigLimit!==void 0&&ro.txSigLimit!==null?tt.Long.fromValue(ro.txSigLimit):tt.Long.UZERO,ht.txSizeCostPerByte=ro.txSizeCostPerByte!==void 0&&ro.txSizeCostPerByte!==null?tt.Long.fromValue(ro.txSizeCostPerByte):tt.Long.UZERO,ht.sigVerifyCostEd25519=ro.sigVerifyCostEd25519!==void 0&&ro.sigVerifyCostEd25519!==null?tt.Long.fromValue(ro.sigVerifyCostEd25519):tt.Long.UZERO,ht.sigVerifyCostSecp256k1=ro.sigVerifyCostSecp256k1!==void 0&&ro.sigVerifyCostSecp256k1!==null?tt.Long.fromValue(ro.sigVerifyCostSecp256k1):tt.Long.UZERO,ht}}})(auth);var vesting={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo);var St=Object.getOwnPropertyDescriptor(Nt,eo);(!St||("get"in St?!Nt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return Nt[eo]}}),Object.defineProperty(no,Wt,St)}:function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo),no[Wt]=Nt[eo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(no,Nt){Object.defineProperty(no,"default",{enumerable:!0,value:Nt})}:function(no,Nt){no.default=Nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(no){if(no&&no.__esModule)return no;var Nt={};if(no!=null)for(var eo in no)eo!=="default"&&Object.prototype.hasOwnProperty.call(no,eo)&&cr(Nt,no,eo);return gr(Nt,no),Nt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.PermanentLockedAccount=_e.PeriodicVestingAccount=_e.Period=_e.DelayedVestingAccount=_e.ContinuousVestingAccount=_e.BaseVestingAccount=_e.protobufPackage=void 0;const Vr=auth,tt=coin$1,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.vesting.v1beta1";function dt(){return{baseAccount:void 0,originalVesting:[],delegatedFree:[],delegatedVesting:[],endTime:nt.Long.ZERO}}_e.BaseVestingAccount={encode(no,Nt=st.Writer.create()){no.baseAccount!==void 0&&Vr.BaseAccount.encode(no.baseAccount,Nt.uint32(10).fork()).ldelim();for(const eo of no.originalVesting)tt.Coin.encode(eo,Nt.uint32(18).fork()).ldelim();for(const eo of no.delegatedFree)tt.Coin.encode(eo,Nt.uint32(26).fork()).ldelim();for(const eo of no.delegatedVesting)tt.Coin.encode(eo,Nt.uint32(34).fork()).ldelim();return no.endTime.isZero()||Nt.uint32(40).int64(no.endTime),Nt},decode(no,Nt){const eo=no instanceof st.Reader?no:new st.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=dt();for(;eo.pos>>3){case 1:St.baseAccount=Vr.BaseAccount.decode(eo,eo.uint32());break;case 2:St.originalVesting.push(tt.Coin.decode(eo,eo.uint32()));break;case 3:St.delegatedFree.push(tt.Coin.decode(eo,eo.uint32()));break;case 4:St.delegatedVesting.push(tt.Coin.decode(eo,eo.uint32()));break;case 5:St.endTime=eo.int64();break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{baseAccount:(0,nt.isSet)(no.baseAccount)?Vr.BaseAccount.fromJSON(no.baseAccount):void 0,originalVesting:Array.isArray(no==null?void 0:no.originalVesting)?no.originalVesting.map(Nt=>tt.Coin.fromJSON(Nt)):[],delegatedFree:Array.isArray(no==null?void 0:no.delegatedFree)?no.delegatedFree.map(Nt=>tt.Coin.fromJSON(Nt)):[],delegatedVesting:Array.isArray(no==null?void 0:no.delegatedVesting)?no.delegatedVesting.map(Nt=>tt.Coin.fromJSON(Nt)):[],endTime:(0,nt.isSet)(no.endTime)?nt.Long.fromValue(no.endTime):nt.Long.ZERO}},toJSON(no){const Nt={};return no.baseAccount!==void 0&&(Nt.baseAccount=no.baseAccount?Vr.BaseAccount.toJSON(no.baseAccount):void 0),no.originalVesting?Nt.originalVesting=no.originalVesting.map(eo=>eo?tt.Coin.toJSON(eo):void 0):Nt.originalVesting=[],no.delegatedFree?Nt.delegatedFree=no.delegatedFree.map(eo=>eo?tt.Coin.toJSON(eo):void 0):Nt.delegatedFree=[],no.delegatedVesting?Nt.delegatedVesting=no.delegatedVesting.map(eo=>eo?tt.Coin.toJSON(eo):void 0):Nt.delegatedVesting=[],no.endTime!==void 0&&(Nt.endTime=(no.endTime||nt.Long.ZERO).toString()),Nt},fromPartial(no){var eo,Wt,St;const Nt=dt();return Nt.baseAccount=no.baseAccount!==void 0&&no.baseAccount!==null?Vr.BaseAccount.fromPartial(no.baseAccount):void 0,Nt.originalVesting=((eo=no.originalVesting)==null?void 0:eo.map(Ot=>tt.Coin.fromPartial(Ot)))||[],Nt.delegatedFree=((Wt=no.delegatedFree)==null?void 0:Wt.map(Ot=>tt.Coin.fromPartial(Ot)))||[],Nt.delegatedVesting=((St=no.delegatedVesting)==null?void 0:St.map(Ot=>tt.Coin.fromPartial(Ot)))||[],Nt.endTime=no.endTime!==void 0&&no.endTime!==null?nt.Long.fromValue(no.endTime):nt.Long.ZERO,Nt}};function kt(){return{baseVestingAccount:void 0,startTime:nt.Long.ZERO}}_e.ContinuousVestingAccount={encode(no,Nt=st.Writer.create()){return no.baseVestingAccount!==void 0&&_e.BaseVestingAccount.encode(no.baseVestingAccount,Nt.uint32(10).fork()).ldelim(),no.startTime.isZero()||Nt.uint32(16).int64(no.startTime),Nt},decode(no,Nt){const eo=no instanceof st.Reader?no:new st.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=kt();for(;eo.pos>>3){case 1:St.baseVestingAccount=_e.BaseVestingAccount.decode(eo,eo.uint32());break;case 2:St.startTime=eo.int64();break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{baseVestingAccount:(0,nt.isSet)(no.baseVestingAccount)?_e.BaseVestingAccount.fromJSON(no.baseVestingAccount):void 0,startTime:(0,nt.isSet)(no.startTime)?nt.Long.fromValue(no.startTime):nt.Long.ZERO}},toJSON(no){const Nt={};return no.baseVestingAccount!==void 0&&(Nt.baseVestingAccount=no.baseVestingAccount?_e.BaseVestingAccount.toJSON(no.baseVestingAccount):void 0),no.startTime!==void 0&&(Nt.startTime=(no.startTime||nt.Long.ZERO).toString()),Nt},fromPartial(no){const Nt=kt();return Nt.baseVestingAccount=no.baseVestingAccount!==void 0&&no.baseVestingAccount!==null?_e.BaseVestingAccount.fromPartial(no.baseVestingAccount):void 0,Nt.startTime=no.startTime!==void 0&&no.startTime!==null?nt.Long.fromValue(no.startTime):nt.Long.ZERO,Nt}};function qt(){return{baseVestingAccount:void 0}}_e.DelayedVestingAccount={encode(no,Nt=st.Writer.create()){return no.baseVestingAccount!==void 0&&_e.BaseVestingAccount.encode(no.baseVestingAccount,Nt.uint32(10).fork()).ldelim(),Nt},decode(no,Nt){const eo=no instanceof st.Reader?no:new st.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=qt();for(;eo.pos>>3){case 1:St.baseVestingAccount=_e.BaseVestingAccount.decode(eo,eo.uint32());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{baseVestingAccount:(0,nt.isSet)(no.baseVestingAccount)?_e.BaseVestingAccount.fromJSON(no.baseVestingAccount):void 0}},toJSON(no){const Nt={};return no.baseVestingAccount!==void 0&&(Nt.baseVestingAccount=no.baseVestingAccount?_e.BaseVestingAccount.toJSON(no.baseVestingAccount):void 0),Nt},fromPartial(no){const Nt=qt();return Nt.baseVestingAccount=no.baseVestingAccount!==void 0&&no.baseVestingAccount!==null?_e.BaseVestingAccount.fromPartial(no.baseVestingAccount):void 0,Nt}};function ro(){return{length:nt.Long.ZERO,amount:[]}}_e.Period={encode(no,Nt=st.Writer.create()){no.length.isZero()||Nt.uint32(8).int64(no.length);for(const eo of no.amount)tt.Coin.encode(eo,Nt.uint32(18).fork()).ldelim();return Nt},decode(no,Nt){const eo=no instanceof st.Reader?no:new st.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ro();for(;eo.pos>>3){case 1:St.length=eo.int64();break;case 2:St.amount.push(tt.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{length:(0,nt.isSet)(no.length)?nt.Long.fromValue(no.length):nt.Long.ZERO,amount:Array.isArray(no==null?void 0:no.amount)?no.amount.map(Nt=>tt.Coin.fromJSON(Nt)):[]}},toJSON(no){const Nt={};return no.length!==void 0&&(Nt.length=(no.length||nt.Long.ZERO).toString()),no.amount?Nt.amount=no.amount.map(eo=>eo?tt.Coin.toJSON(eo):void 0):Nt.amount=[],Nt},fromPartial(no){var eo;const Nt=ro();return Nt.length=no.length!==void 0&&no.length!==null?nt.Long.fromValue(no.length):nt.Long.ZERO,Nt.amount=((eo=no.amount)==null?void 0:eo.map(Wt=>tt.Coin.fromPartial(Wt)))||[],Nt}};function ht(){return{baseVestingAccount:void 0,startTime:nt.Long.ZERO,vestingPeriods:[]}}_e.PeriodicVestingAccount={encode(no,Nt=st.Writer.create()){no.baseVestingAccount!==void 0&&_e.BaseVestingAccount.encode(no.baseVestingAccount,Nt.uint32(10).fork()).ldelim(),no.startTime.isZero()||Nt.uint32(16).int64(no.startTime);for(const eo of no.vestingPeriods)_e.Period.encode(eo,Nt.uint32(26).fork()).ldelim();return Nt},decode(no,Nt){const eo=no instanceof st.Reader?no:new st.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ht();for(;eo.pos>>3){case 1:St.baseVestingAccount=_e.BaseVestingAccount.decode(eo,eo.uint32());break;case 2:St.startTime=eo.int64();break;case 3:St.vestingPeriods.push(_e.Period.decode(eo,eo.uint32()));break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{baseVestingAccount:(0,nt.isSet)(no.baseVestingAccount)?_e.BaseVestingAccount.fromJSON(no.baseVestingAccount):void 0,startTime:(0,nt.isSet)(no.startTime)?nt.Long.fromValue(no.startTime):nt.Long.ZERO,vestingPeriods:Array.isArray(no==null?void 0:no.vestingPeriods)?no.vestingPeriods.map(Nt=>_e.Period.fromJSON(Nt)):[]}},toJSON(no){const Nt={};return no.baseVestingAccount!==void 0&&(Nt.baseVestingAccount=no.baseVestingAccount?_e.BaseVestingAccount.toJSON(no.baseVestingAccount):void 0),no.startTime!==void 0&&(Nt.startTime=(no.startTime||nt.Long.ZERO).toString()),no.vestingPeriods?Nt.vestingPeriods=no.vestingPeriods.map(eo=>eo?_e.Period.toJSON(eo):void 0):Nt.vestingPeriods=[],Nt},fromPartial(no){var eo;const Nt=ht();return Nt.baseVestingAccount=no.baseVestingAccount!==void 0&&no.baseVestingAccount!==null?_e.BaseVestingAccount.fromPartial(no.baseVestingAccount):void 0,Nt.startTime=no.startTime!==void 0&&no.startTime!==null?nt.Long.fromValue(no.startTime):nt.Long.ZERO,Nt.vestingPeriods=((eo=no.vestingPeriods)==null?void 0:eo.map(Wt=>_e.Period.fromPartial(Wt)))||[],Nt}};function po(){return{baseVestingAccount:void 0}}_e.PermanentLockedAccount={encode(no,Nt=st.Writer.create()){return no.baseVestingAccount!==void 0&&_e.BaseVestingAccount.encode(no.baseVestingAccount,Nt.uint32(10).fork()).ldelim(),Nt},decode(no,Nt){const eo=no instanceof st.Reader?no:new st.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=po();for(;eo.pos>>3){case 1:St.baseVestingAccount=_e.BaseVestingAccount.decode(eo,eo.uint32());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{baseVestingAccount:(0,nt.isSet)(no.baseVestingAccount)?_e.BaseVestingAccount.fromJSON(no.baseVestingAccount):void 0}},toJSON(no){const Nt={};return no.baseVestingAccount!==void 0&&(Nt.baseVestingAccount=no.baseVestingAccount?_e.BaseVestingAccount.toJSON(no.baseVestingAccount):void 0),Nt},fromPartial(no){const Nt=po();return Nt.baseVestingAccount=no.baseVestingAccount!==void 0&&no.baseVestingAccount!==null?_e.BaseVestingAccount.fromPartial(no.baseVestingAccount):void 0,Nt}}})(vesting),Object.defineProperty(accounts,"__esModule",{value:!0}),accounts.accountFromAny=void 0;const math_1$b=build$b,proto_signing_1$5=build$9,utils_1$d=build$6,auth_1=auth,vesting_1=vesting;function uint64FromProto(_e){return math_1$b.Uint64.fromString(_e.toString())}function accountFromBaseAccount(_e){const{address:cr,pubKey:gr,accountNumber:Cr,sequence:Vr}=_e,tt=gr?(0,proto_signing_1$5.decodePubkey)(gr):null;return{address:cr,pubkey:tt,accountNumber:uint64FromProto(Cr).toNumber(),sequence:uint64FromProto(Vr).toNumber()}}function accountFromAny(_e){var Cr,Vr,tt,nt,st,dt,kt;const{typeUrl:cr,value:gr}=_e;switch(cr){case"/cosmos.auth.v1beta1.BaseAccount":return accountFromBaseAccount(auth_1.BaseAccount.decode(gr));case"/cosmos.auth.v1beta1.ModuleAccount":{const qt=auth_1.ModuleAccount.decode(gr).baseAccount;return(0,utils_1$d.assert)(qt),accountFromBaseAccount(qt)}case"/cosmos.vesting.v1beta1.BaseVestingAccount":{const qt=(Cr=vesting_1.BaseVestingAccount.decode(gr))==null?void 0:Cr.baseAccount;return(0,utils_1$d.assert)(qt),accountFromBaseAccount(qt)}case"/cosmos.vesting.v1beta1.ContinuousVestingAccount":{const qt=(tt=(Vr=vesting_1.ContinuousVestingAccount.decode(gr))==null?void 0:Vr.baseVestingAccount)==null?void 0:tt.baseAccount;return(0,utils_1$d.assert)(qt),accountFromBaseAccount(qt)}case"/cosmos.vesting.v1beta1.DelayedVestingAccount":{const qt=(st=(nt=vesting_1.DelayedVestingAccount.decode(gr))==null?void 0:nt.baseVestingAccount)==null?void 0:st.baseAccount;return(0,utils_1$d.assert)(qt),accountFromBaseAccount(qt)}case"/cosmos.vesting.v1beta1.PeriodicVestingAccount":{const qt=(kt=(dt=vesting_1.PeriodicVestingAccount.decode(gr))==null?void 0:dt.baseVestingAccount)==null?void 0:kt.baseAccount;return(0,utils_1$d.assert)(qt),accountFromBaseAccount(qt)}default:throw new Error(`Unsupported type: '${cr}'`)}}accounts.accountFromAny=accountFromAny;var aminotypes={};Object.defineProperty(aminotypes,"__esModule",{value:!0}),aminotypes.AminoTypes=void 0;class AminoTypes{constructor(cr){this.register=cr}toAmino({typeUrl:cr,value:gr}){const Cr=this.register[cr];if(!Cr)throw new Error(`Type URL '${cr}' 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:Cr.aminoType,value:Cr.toAmino(gr)}}fromAmino({type:cr,value:gr}){const Cr=Object.entries(this.register).filter(([Vr,{aminoType:tt}])=>tt===cr);switch(Cr.length){case 0:throw new Error(`Amino type identifier '${cr}' 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[Vr,tt]=Cr[0];return{typeUrl:Vr,value:tt.fromAmino(gr)}}default:throw new Error(`Multiple types are registered with Amino type identifier '${cr}': '`+Cr.map(([Vr,tt])=>Vr).sort().join("', '")+"'. Thus fromAmino cannot be performed.")}}}aminotypes.AminoTypes=AminoTypes;var events={};Object.defineProperty(events,"__esModule",{value:!0}),events.fromTendermintEvent=void 0;const encoding_1$j=build$c;function fromTendermintEvent(_e){return{type:_e.type,attributes:_e.attributes.map(cr=>({key:typeof cr.key=="string"?cr.key:(0,encoding_1$j.fromUtf8)(cr.key,!0),value:typeof cr.value=="string"?cr.value:(0,encoding_1$j.fromUtf8)(cr.value,!0)}))}}events.fromTendermintEvent=fromTendermintEvent;var fee={};Object.defineProperty(fee,"__esModule",{value:!0}),fee.calculateFee=fee.GasPrice=void 0;const math_1$a=build$b,proto_signing_1$4=build$9;function checkDenom(_e){if(_e.length<3||_e.length>128)throw new Error("Denom must be between 3 and 128 characters")}class GasPrice{constructor(cr,gr){this.amount=cr,this.denom=gr}static fromString(cr){const gr=cr.match(/^([0-9.]+)([a-z][a-z0-9]*)$/i);if(!gr)throw new Error("Invalid gas price string");const[Cr,Vr,tt]=gr;checkDenom(tt);const nt=math_1$a.Decimal.fromUserInput(Vr,18);return new GasPrice(nt,tt)}toString(){return this.amount.toString()+this.denom}}fee.GasPrice=GasPrice;function calculateFee$3(_e,cr){const gr=typeof cr=="string"?GasPrice.fromString(cr):cr,{denom:Cr,amount:Vr}=gr,tt=Vr.multiply(new math_1$a.Uint53(_e)).ceil().toString();return{amount:(0,proto_signing_1$4.coins)(tt,Cr),gas:_e.toString()}}fee.calculateFee=calculateFee$3;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$c=build$6;function parseAttribute(_e){if(!(0,utils_1$c.isNonNullObject)(_e))throw new Error("Attribute must be a non-null object");const{key:cr,value:gr}=_e;if(typeof cr!="string"||!cr)throw new Error("Attribute's key must be a non-empty string");if(typeof gr!="string"&&typeof gr<"u")throw new Error("Attribute's value must be a string or unset");return{key:cr,value:gr||""}}logs.parseAttribute=parseAttribute;function parseEvent(_e){if(!(0,utils_1$c.isNonNullObject)(_e))throw new Error("Event must be a non-null object");const{type:cr,attributes:gr}=_e;if(typeof cr!="string"||cr==="")throw new Error("Event type must be a non-empty string");if(!Array.isArray(gr))throw new Error("Event's attributes must be an array");return{type:cr,attributes:gr.map(parseAttribute)}}logs.parseEvent=parseEvent;function parseLog(_e){if(!(0,utils_1$c.isNonNullObject)(_e))throw new Error("Log must be a non-null object");const{msg_index:cr,log:gr,events:Cr}=_e;if(typeof cr!="number")throw new Error("Log's msg_index must be a number");if(typeof gr!="string")throw new Error("Log's log must be a string");if(!Array.isArray(Cr))throw new Error("Log's events must be an array");return{msg_index:cr,log:gr,events:Cr.map(parseEvent)}}logs.parseLog=parseLog;function parseLogs(_e){if(!Array.isArray(_e))throw new Error("Logs must be an array");return _e.map(parseLog)}logs.parseLogs=parseLogs;function parseRawLog(_e="[]"){const cr=JSON.parse(_e).map(({events:gr},Cr)=>({msg_index:Cr,events:gr,log:""}));return parseLogs(cr)}logs.parseRawLog=parseRawLog;function findAttribute(_e,cr,gr){var Vr,tt;const Cr=(tt=(Vr=_e.find(()=>!0))==null?void 0:Vr.events.find(nt=>nt.type===cr))==null?void 0:tt.attributes.find(nt=>nt.key===gr);if(!Cr)throw new Error(`Could not find attribute '${gr}' in first event of type '${cr}' in first log.`);return Cr}logs.findAttribute=findAttribute;var modules$1={},queries$b={},query$d={},pagination={},__createBinding$f=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$f=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$f=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$f(cr,_e,gr);return __setModuleDefault$f(cr,_e),cr};Object.defineProperty(pagination,"__esModule",{value:!0}),pagination.PageResponse=pagination.PageRequest=pagination.protobufPackage=void 0;const helpers_1$a=helpers,_m0$a=__importStar$f(minimal);pagination.protobufPackage="cosmos.base.query.v1beta1";function createBasePageRequest(){return{key:new Uint8Array,offset:helpers_1$a.Long.UZERO,limit:helpers_1$a.Long.UZERO,countTotal:!1,reverse:!1}}pagination.PageRequest={encode(_e,cr=_m0$a.Writer.create()){return _e.key.length!==0&&cr.uint32(10).bytes(_e.key),_e.offset.isZero()||cr.uint32(16).uint64(_e.offset),_e.limit.isZero()||cr.uint32(24).uint64(_e.limit),_e.countTotal===!0&&cr.uint32(32).bool(_e.countTotal),_e.reverse===!0&&cr.uint32(40).bool(_e.reverse),cr},decode(_e,cr){const gr=_e instanceof _m0$a.Reader?_e:new _m0$a.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBasePageRequest();for(;gr.pos>>3){case 1:Vr.key=gr.bytes();break;case 2:Vr.offset=gr.uint64();break;case 3:Vr.limit=gr.uint64();break;case 4:Vr.countTotal=gr.bool();break;case 5:Vr.reverse=gr.bool();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{key:(0,helpers_1$a.isSet)(_e.key)?(0,helpers_1$a.bytesFromBase64)(_e.key):new Uint8Array,offset:(0,helpers_1$a.isSet)(_e.offset)?helpers_1$a.Long.fromValue(_e.offset):helpers_1$a.Long.UZERO,limit:(0,helpers_1$a.isSet)(_e.limit)?helpers_1$a.Long.fromValue(_e.limit):helpers_1$a.Long.UZERO,countTotal:(0,helpers_1$a.isSet)(_e.countTotal)?!!_e.countTotal:!1,reverse:(0,helpers_1$a.isSet)(_e.reverse)?!!_e.reverse:!1}},toJSON(_e){const cr={};return _e.key!==void 0&&(cr.key=(0,helpers_1$a.base64FromBytes)(_e.key!==void 0?_e.key:new Uint8Array)),_e.offset!==void 0&&(cr.offset=(_e.offset||helpers_1$a.Long.UZERO).toString()),_e.limit!==void 0&&(cr.limit=(_e.limit||helpers_1$a.Long.UZERO).toString()),_e.countTotal!==void 0&&(cr.countTotal=_e.countTotal),_e.reverse!==void 0&&(cr.reverse=_e.reverse),cr},fromPartial(_e){const cr=createBasePageRequest();return cr.key=_e.key??new Uint8Array,cr.offset=_e.offset!==void 0&&_e.offset!==null?helpers_1$a.Long.fromValue(_e.offset):helpers_1$a.Long.UZERO,cr.limit=_e.limit!==void 0&&_e.limit!==null?helpers_1$a.Long.fromValue(_e.limit):helpers_1$a.Long.UZERO,cr.countTotal=_e.countTotal??!1,cr.reverse=_e.reverse??!1,cr}};function createBasePageResponse(){return{nextKey:new Uint8Array,total:helpers_1$a.Long.UZERO}}pagination.PageResponse={encode(_e,cr=_m0$a.Writer.create()){return _e.nextKey.length!==0&&cr.uint32(10).bytes(_e.nextKey),_e.total.isZero()||cr.uint32(16).uint64(_e.total),cr},decode(_e,cr){const gr=_e instanceof _m0$a.Reader?_e:new _m0$a.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBasePageResponse();for(;gr.pos>>3){case 1:Vr.nextKey=gr.bytes();break;case 2:Vr.total=gr.uint64();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{nextKey:(0,helpers_1$a.isSet)(_e.nextKey)?(0,helpers_1$a.bytesFromBase64)(_e.nextKey):new Uint8Array,total:(0,helpers_1$a.isSet)(_e.total)?helpers_1$a.Long.fromValue(_e.total):helpers_1$a.Long.UZERO}},toJSON(_e){const cr={};return _e.nextKey!==void 0&&(cr.nextKey=(0,helpers_1$a.base64FromBytes)(_e.nextKey!==void 0?_e.nextKey:new Uint8Array)),_e.total!==void 0&&(cr.total=(_e.total||helpers_1$a.Long.UZERO).toString()),cr},fromPartial(_e){const cr=createBasePageResponse();return cr.nextKey=_e.nextKey??new Uint8Array,cr.total=_e.total!==void 0&&_e.total!==null?helpers_1$a.Long.fromValue(_e.total):helpers_1$a.Long.UZERO,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,ho,io,co){co===void 0&&(co=io);var mo=Object.getOwnPropertyDescriptor(ho,io);(!mo||("get"in mo?!ho.__esModule:mo.writable||mo.configurable))&&(mo={enumerable:!0,get:function(){return ho[io]}}),Object.defineProperty(Mt,co,mo)}:function(Mt,ho,io,co){co===void 0&&(co=io),Mt[co]=ho[io]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,ho){Object.defineProperty(Mt,"default",{enumerable:!0,value:ho})}:function(Mt,ho){Mt.default=ho}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var ho={};if(Mt!=null)for(var io in Mt)io!=="default"&&Object.prototype.hasOwnProperty.call(Mt,io)&&cr(ho,Mt,io);return gr(ho,Mt),ho};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryAccountInfoResponse=_e.QueryAccountInfoRequest=_e.QueryAccountAddressByIDResponse=_e.QueryAccountAddressByIDRequest=_e.AddressStringToBytesResponse=_e.AddressStringToBytesRequest=_e.AddressBytesToStringResponse=_e.AddressBytesToStringRequest=_e.Bech32PrefixResponse=_e.Bech32PrefixRequest=_e.QueryModuleAccountByNameResponse=_e.QueryModuleAccountByNameRequest=_e.QueryModuleAccountsResponse=_e.QueryModuleAccountsRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.QueryAccountResponse=_e.QueryAccountRequest=_e.QueryAccountsResponse=_e.QueryAccountsRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=any,nt=auth,st=helpers,dt=Cr(minimal);_e.protobufPackage="cosmos.auth.v1beta1";function kt(){return{pagination:void 0}}_e.QueryAccountsRequest={encode(Mt,ho=dt.Writer.create()){return Mt.pagination!==void 0&&Vr.PageRequest.encode(Mt.pagination,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=kt();for(;io.pos>>3){case 1:mo.pagination=Vr.PageRequest.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{pagination:(0,st.isSet)(Mt.pagination)?Vr.PageRequest.fromJSON(Mt.pagination):void 0}},toJSON(Mt){const ho={};return Mt.pagination!==void 0&&(ho.pagination=Mt.pagination?Vr.PageRequest.toJSON(Mt.pagination):void 0),ho},fromPartial(Mt){const ho=kt();return ho.pagination=Mt.pagination!==void 0&&Mt.pagination!==null?Vr.PageRequest.fromPartial(Mt.pagination):void 0,ho}};function qt(){return{accounts:[],pagination:void 0}}_e.QueryAccountsResponse={encode(Mt,ho=dt.Writer.create()){for(const io of Mt.accounts)tt.Any.encode(io,ho.uint32(10).fork()).ldelim();return Mt.pagination!==void 0&&Vr.PageResponse.encode(Mt.pagination,ho.uint32(18).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=qt();for(;io.pos>>3){case 1:mo.accounts.push(tt.Any.decode(io,io.uint32()));break;case 2:mo.pagination=Vr.PageResponse.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{accounts:Array.isArray(Mt==null?void 0:Mt.accounts)?Mt.accounts.map(ho=>tt.Any.fromJSON(ho)):[],pagination:(0,st.isSet)(Mt.pagination)?Vr.PageResponse.fromJSON(Mt.pagination):void 0}},toJSON(Mt){const ho={};return Mt.accounts?ho.accounts=Mt.accounts.map(io=>io?tt.Any.toJSON(io):void 0):ho.accounts=[],Mt.pagination!==void 0&&(ho.pagination=Mt.pagination?Vr.PageResponse.toJSON(Mt.pagination):void 0),ho},fromPartial(Mt){var io;const ho=qt();return ho.accounts=((io=Mt.accounts)==null?void 0:io.map(co=>tt.Any.fromPartial(co)))||[],ho.pagination=Mt.pagination!==void 0&&Mt.pagination!==null?Vr.PageResponse.fromPartial(Mt.pagination):void 0,ho}};function ro(){return{address:""}}_e.QueryAccountRequest={encode(Mt,ho=dt.Writer.create()){return Mt.address!==""&&ho.uint32(10).string(Mt.address),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=ro();for(;io.pos>>3){case 1:mo.address=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{address:(0,st.isSet)(Mt.address)?String(Mt.address):""}},toJSON(Mt){const ho={};return Mt.address!==void 0&&(ho.address=Mt.address),ho},fromPartial(Mt){const ho=ro();return ho.address=Mt.address??"",ho}};function ht(){return{account:void 0}}_e.QueryAccountResponse={encode(Mt,ho=dt.Writer.create()){return Mt.account!==void 0&&tt.Any.encode(Mt.account,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=ht();for(;io.pos>>3){case 1:mo.account=tt.Any.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{account:(0,st.isSet)(Mt.account)?tt.Any.fromJSON(Mt.account):void 0}},toJSON(Mt){const ho={};return Mt.account!==void 0&&(ho.account=Mt.account?tt.Any.toJSON(Mt.account):void 0),ho},fromPartial(Mt){const ho=ht();return ho.account=Mt.account!==void 0&&Mt.account!==null?tt.Any.fromPartial(Mt.account):void 0,ho}};function po(){return{}}_e.QueryParamsRequest={encode(Mt,ho=dt.Writer.create()){return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=po();for(;io.pos>>3){default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return po()}};function no(){return{params:void 0}}_e.QueryParamsResponse={encode(Mt,ho=dt.Writer.create()){return Mt.params!==void 0&&nt.Params.encode(Mt.params,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=no();for(;io.pos>>3){case 1:mo.params=nt.Params.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{params:(0,st.isSet)(Mt.params)?nt.Params.fromJSON(Mt.params):void 0}},toJSON(Mt){const ho={};return Mt.params!==void 0&&(ho.params=Mt.params?nt.Params.toJSON(Mt.params):void 0),ho},fromPartial(Mt){const ho=no();return ho.params=Mt.params!==void 0&&Mt.params!==null?nt.Params.fromPartial(Mt.params):void 0,ho}};function Nt(){return{}}_e.QueryModuleAccountsRequest={encode(Mt,ho=dt.Writer.create()){return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Nt();for(;io.pos>>3){default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return Nt()}};function eo(){return{accounts:[]}}_e.QueryModuleAccountsResponse={encode(Mt,ho=dt.Writer.create()){for(const io of Mt.accounts)tt.Any.encode(io,ho.uint32(10).fork()).ldelim();return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=eo();for(;io.pos>>3){case 1:mo.accounts.push(tt.Any.decode(io,io.uint32()));break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{accounts:Array.isArray(Mt==null?void 0:Mt.accounts)?Mt.accounts.map(ho=>tt.Any.fromJSON(ho)):[]}},toJSON(Mt){const ho={};return Mt.accounts?ho.accounts=Mt.accounts.map(io=>io?tt.Any.toJSON(io):void 0):ho.accounts=[],ho},fromPartial(Mt){var io;const ho=eo();return ho.accounts=((io=Mt.accounts)==null?void 0:io.map(co=>tt.Any.fromPartial(co)))||[],ho}};function Wt(){return{name:""}}_e.QueryModuleAccountByNameRequest={encode(Mt,ho=dt.Writer.create()){return Mt.name!==""&&ho.uint32(10).string(Mt.name),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Wt();for(;io.pos>>3){case 1:mo.name=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{name:(0,st.isSet)(Mt.name)?String(Mt.name):""}},toJSON(Mt){const ho={};return Mt.name!==void 0&&(ho.name=Mt.name),ho},fromPartial(Mt){const ho=Wt();return ho.name=Mt.name??"",ho}};function St(){return{account:void 0}}_e.QueryModuleAccountByNameResponse={encode(Mt,ho=dt.Writer.create()){return Mt.account!==void 0&&tt.Any.encode(Mt.account,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=St();for(;io.pos>>3){case 1:mo.account=tt.Any.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{account:(0,st.isSet)(Mt.account)?tt.Any.fromJSON(Mt.account):void 0}},toJSON(Mt){const ho={};return Mt.account!==void 0&&(ho.account=Mt.account?tt.Any.toJSON(Mt.account):void 0),ho},fromPartial(Mt){const ho=St();return ho.account=Mt.account!==void 0&&Mt.account!==null?tt.Any.fromPartial(Mt.account):void 0,ho}};function Ot(){return{}}_e.Bech32PrefixRequest={encode(Mt,ho=dt.Writer.create()){return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Ot();for(;io.pos>>3){default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return Ot()}};function uo(){return{bech32Prefix:""}}_e.Bech32PrefixResponse={encode(Mt,ho=dt.Writer.create()){return Mt.bech32Prefix!==""&&ho.uint32(10).string(Mt.bech32Prefix),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=uo();for(;io.pos>>3){case 1:mo.bech32Prefix=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{bech32Prefix:(0,st.isSet)(Mt.bech32Prefix)?String(Mt.bech32Prefix):""}},toJSON(Mt){const ho={};return Mt.bech32Prefix!==void 0&&(ho.bech32Prefix=Mt.bech32Prefix),ho},fromPartial(Mt){const ho=uo();return ho.bech32Prefix=Mt.bech32Prefix??"",ho}};function go(){return{addressBytes:new Uint8Array}}_e.AddressBytesToStringRequest={encode(Mt,ho=dt.Writer.create()){return Mt.addressBytes.length!==0&&ho.uint32(10).bytes(Mt.addressBytes),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=go();for(;io.pos>>3){case 1:mo.addressBytes=io.bytes();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{addressBytes:(0,st.isSet)(Mt.addressBytes)?(0,st.bytesFromBase64)(Mt.addressBytes):new Uint8Array}},toJSON(Mt){const ho={};return Mt.addressBytes!==void 0&&(ho.addressBytes=(0,st.base64FromBytes)(Mt.addressBytes!==void 0?Mt.addressBytes:new Uint8Array)),ho},fromPartial(Mt){const ho=go();return ho.addressBytes=Mt.addressBytes??new Uint8Array,ho}};function bo(){return{addressString:""}}_e.AddressBytesToStringResponse={encode(Mt,ho=dt.Writer.create()){return Mt.addressString!==""&&ho.uint32(10).string(Mt.addressString),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=bo();for(;io.pos>>3){case 1:mo.addressString=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{addressString:(0,st.isSet)(Mt.addressString)?String(Mt.addressString):""}},toJSON(Mt){const ho={};return Mt.addressString!==void 0&&(ho.addressString=Mt.addressString),ho},fromPartial(Mt){const ho=bo();return ho.addressString=Mt.addressString??"",ho}};function oo(){return{addressString:""}}_e.AddressStringToBytesRequest={encode(Mt,ho=dt.Writer.create()){return Mt.addressString!==""&&ho.uint32(10).string(Mt.addressString),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=oo();for(;io.pos>>3){case 1:mo.addressString=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{addressString:(0,st.isSet)(Mt.addressString)?String(Mt.addressString):""}},toJSON(Mt){const ho={};return Mt.addressString!==void 0&&(ho.addressString=Mt.addressString),ho},fromPartial(Mt){const ho=oo();return ho.addressString=Mt.addressString??"",ho}};function Ro(){return{addressBytes:new Uint8Array}}_e.AddressStringToBytesResponse={encode(Mt,ho=dt.Writer.create()){return Mt.addressBytes.length!==0&&ho.uint32(10).bytes(Mt.addressBytes),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Ro();for(;io.pos>>3){case 1:mo.addressBytes=io.bytes();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{addressBytes:(0,st.isSet)(Mt.addressBytes)?(0,st.bytesFromBase64)(Mt.addressBytes):new Uint8Array}},toJSON(Mt){const ho={};return Mt.addressBytes!==void 0&&(ho.addressBytes=(0,st.base64FromBytes)(Mt.addressBytes!==void 0?Mt.addressBytes:new Uint8Array)),ho},fromPartial(Mt){const ho=Ro();return ho.addressBytes=Mt.addressBytes??new Uint8Array,ho}};function pt(){return{id:st.Long.ZERO,accountId:st.Long.UZERO}}_e.QueryAccountAddressByIDRequest={encode(Mt,ho=dt.Writer.create()){return Mt.id.isZero()||ho.uint32(8).int64(Mt.id),Mt.accountId.isZero()||ho.uint32(16).uint64(Mt.accountId),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=pt();for(;io.pos>>3){case 1:mo.id=io.int64();break;case 2:mo.accountId=io.uint64();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{id:(0,st.isSet)(Mt.id)?st.Long.fromValue(Mt.id):st.Long.ZERO,accountId:(0,st.isSet)(Mt.accountId)?st.Long.fromValue(Mt.accountId):st.Long.UZERO}},toJSON(Mt){const ho={};return Mt.id!==void 0&&(ho.id=(Mt.id||st.Long.ZERO).toString()),Mt.accountId!==void 0&&(ho.accountId=(Mt.accountId||st.Long.UZERO).toString()),ho},fromPartial(Mt){const ho=pt();return ho.id=Mt.id!==void 0&&Mt.id!==null?st.Long.fromValue(Mt.id):st.Long.ZERO,ho.accountId=Mt.accountId!==void 0&&Mt.accountId!==null?st.Long.fromValue(Mt.accountId):st.Long.UZERO,ho}};function lo(){return{accountAddress:""}}_e.QueryAccountAddressByIDResponse={encode(Mt,ho=dt.Writer.create()){return Mt.accountAddress!==""&&ho.uint32(10).string(Mt.accountAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=lo();for(;io.pos>>3){case 1:mo.accountAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{accountAddress:(0,st.isSet)(Mt.accountAddress)?String(Mt.accountAddress):""}},toJSON(Mt){const ho={};return Mt.accountAddress!==void 0&&(ho.accountAddress=Mt.accountAddress),ho},fromPartial(Mt){const ho=lo();return ho.accountAddress=Mt.accountAddress??"",ho}};function so(){return{address:""}}_e.QueryAccountInfoRequest={encode(Mt,ho=dt.Writer.create()){return Mt.address!==""&&ho.uint32(10).string(Mt.address),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=so();for(;io.pos>>3){case 1:mo.address=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{address:(0,st.isSet)(Mt.address)?String(Mt.address):""}},toJSON(Mt){const ho={};return Mt.address!==void 0&&(ho.address=Mt.address),ho},fromPartial(Mt){const ho=so();return ho.address=Mt.address??"",ho}};function wo(){return{info:void 0}}_e.QueryAccountInfoResponse={encode(Mt,ho=dt.Writer.create()){return Mt.info!==void 0&&nt.BaseAccount.encode(Mt.info,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=wo();for(;io.pos>>3){case 1:mo.info=nt.BaseAccount.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{info:(0,st.isSet)(Mt.info)?nt.BaseAccount.fromJSON(Mt.info):void 0}},toJSON(Mt){const ho={};return Mt.info!==void 0&&(ho.info=Mt.info?nt.BaseAccount.toJSON(Mt.info):void 0),ho},fromPartial(Mt){const ho=wo();return ho.info=Mt.info!==void 0&&Mt.info!==null?nt.BaseAccount.fromPartial(Mt.info):void 0,ho}};class xt{constructor(ho){this.rpc=ho,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(ho={pagination:void 0}){const io=_e.QueryAccountsRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Accounts",io).then(co=>_e.QueryAccountsResponse.decode(new dt.Reader(co)))}Account(ho){const io=_e.QueryAccountRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Account",io).then(co=>_e.QueryAccountResponse.decode(new dt.Reader(co)))}AccountAddressByID(ho){const io=_e.QueryAccountAddressByIDRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountAddressByID",io).then(co=>_e.QueryAccountAddressByIDResponse.decode(new dt.Reader(co)))}Params(ho={}){const io=_e.QueryParamsRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Params",io).then(co=>_e.QueryParamsResponse.decode(new dt.Reader(co)))}ModuleAccounts(ho={}){const io=_e.QueryModuleAccountsRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccounts",io).then(co=>_e.QueryModuleAccountsResponse.decode(new dt.Reader(co)))}ModuleAccountByName(ho){const io=_e.QueryModuleAccountByNameRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccountByName",io).then(co=>_e.QueryModuleAccountByNameResponse.decode(new dt.Reader(co)))}Bech32Prefix(ho={}){const io=_e.Bech32PrefixRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","Bech32Prefix",io).then(co=>_e.Bech32PrefixResponse.decode(new dt.Reader(co)))}AddressBytesToString(ho){const io=_e.AddressBytesToStringRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressBytesToString",io).then(co=>_e.AddressBytesToStringResponse.decode(new dt.Reader(co)))}AddressStringToBytes(ho){const io=_e.AddressStringToBytesRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AddressStringToBytes",io).then(co=>_e.AddressStringToBytesResponse.decode(new dt.Reader(co)))}AccountInfo(ho){const io=_e.QueryAccountInfoRequest.encode(ho).finish();return this.rpc.request("cosmos.auth.v1beta1.Query","AccountInfo",io).then(co=>_e.QueryAccountInfoResponse.decode(new dt.Reader(co)))}}_e.QueryClientImpl=xt}(query$d);var queryclient$1={},queryclient={},build$5={},$protobuf=minimal,$Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util,$root=$protobuf.roots.default||($protobuf.roots.default={});$root.ics23=function(){var _e={};return _e.HashOp=function(){var cr={},gr=Object.create(cr);return gr[cr[0]="NO_HASH"]=0,gr[cr[1]="SHA256"]=1,gr[cr[2]="SHA512"]=2,gr[cr[3]="KECCAK"]=3,gr[cr[4]="RIPEMD160"]=4,gr[cr[5]="BITCOIN"]=5,gr[cr[6]="SHA512_256"]=6,gr}(),_e.LengthOp=function(){var cr={},gr=Object.create(cr);return gr[cr[0]="NO_PREFIX"]=0,gr[cr[1]="VAR_PROTO"]=1,gr[cr[2]="VAR_RLP"]=2,gr[cr[3]="FIXED32_BIG"]=3,gr[cr[4]="FIXED32_LITTLE"]=4,gr[cr[5]="FIXED64_BIG"]=5,gr[cr[6]="FIXED64_LITTLE"]=6,gr[cr[7]="REQUIRE_32_BYTES"]=7,gr[cr[8]="REQUIRE_64_BYTES"]=8,gr}(),_e.ExistenceProof=function(){function cr(gr){if(this.path=[],gr)for(var Cr=Object.keys(gr),Vr=0;Vr>>3){case 1:tt.key=gr.bytes();break;case 2:tt.value=gr.bytes();break;case 3:tt.leaf=$root.ics23.LeafOp.decode(gr,gr.uint32());break;case 4:tt.path&&tt.path.length||(tt.path=[]),tt.path.push($root.ics23.InnerOp.decode(gr,gr.uint32()));break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.key!=null&&gr.hasOwnProperty("key")&&!(gr.key&&typeof gr.key.length=="number"||$util.isString(gr.key)))return"key: buffer expected";if(gr.value!=null&&gr.hasOwnProperty("value")&&!(gr.value&&typeof gr.value.length=="number"||$util.isString(gr.value)))return"value: buffer expected";if(gr.leaf!=null&&gr.hasOwnProperty("leaf")){var Cr=$root.ics23.LeafOp.verify(gr.leaf);if(Cr)return"leaf."+Cr}if(gr.path!=null&&gr.hasOwnProperty("path")){if(!Array.isArray(gr.path))return"path: array expected";for(var Vr=0;Vr>>3){case 1:tt.key=gr.bytes();break;case 2:tt.left=$root.ics23.ExistenceProof.decode(gr,gr.uint32());break;case 3:tt.right=$root.ics23.ExistenceProof.decode(gr,gr.uint32());break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.key!=null&&gr.hasOwnProperty("key")&&!(gr.key&&typeof gr.key.length=="number"||$util.isString(gr.key)))return"key: buffer expected";if(gr.left!=null&&gr.hasOwnProperty("left")){var Cr=$root.ics23.ExistenceProof.verify(gr.left);if(Cr)return"left."+Cr}if(gr.right!=null&&gr.hasOwnProperty("right")){var Cr=$root.ics23.ExistenceProof.verify(gr.right);if(Cr)return"right."+Cr}return null},cr.fromObject=function(gr){if(gr instanceof $root.ics23.NonExistenceProof)return gr;var Cr=new $root.ics23.NonExistenceProof;if(gr.key!=null&&(typeof gr.key=="string"?$util.base64.decode(gr.key,Cr.key=$util.newBuffer($util.base64.length(gr.key)),0):gr.key.length&&(Cr.key=gr.key)),gr.left!=null){if(typeof gr.left!="object")throw TypeError(".ics23.NonExistenceProof.left: object expected");Cr.left=$root.ics23.ExistenceProof.fromObject(gr.left)}if(gr.right!=null){if(typeof gr.right!="object")throw TypeError(".ics23.NonExistenceProof.right: object expected");Cr.right=$root.ics23.ExistenceProof.fromObject(gr.right)}return Cr},cr.toObject=function(gr,Cr){Cr||(Cr={});var Vr={};return Cr.defaults&&(Cr.bytes===String?Vr.key="":(Vr.key=[],Cr.bytes!==Array&&(Vr.key=$util.newBuffer(Vr.key))),Vr.left=null,Vr.right=null),gr.key!=null&&gr.hasOwnProperty("key")&&(Vr.key=Cr.bytes===String?$util.base64.encode(gr.key,0,gr.key.length):Cr.bytes===Array?Array.prototype.slice.call(gr.key):gr.key),gr.left!=null&&gr.hasOwnProperty("left")&&(Vr.left=$root.ics23.ExistenceProof.toObject(gr.left,Cr)),gr.right!=null&&gr.hasOwnProperty("right")&&(Vr.right=$root.ics23.ExistenceProof.toObject(gr.right,Cr)),Vr},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e.CommitmentProof=function(){function cr(Cr){if(Cr)for(var Vr=Object.keys(Cr),tt=0;tt>>3){case 1:nt.exist=$root.ics23.ExistenceProof.decode(Cr,Cr.uint32());break;case 2:nt.nonexist=$root.ics23.NonExistenceProof.decode(Cr,Cr.uint32());break;case 3:nt.batch=$root.ics23.BatchProof.decode(Cr,Cr.uint32());break;case 4:nt.compressed=$root.ics23.CompressedBatchProof.decode(Cr,Cr.uint32());break;default:Cr.skipType(st&7);break}}return nt},cr.decodeDelimited=function(Cr){return Cr instanceof $Reader||(Cr=new $Reader(Cr)),this.decode(Cr,Cr.uint32())},cr.verify=function(Cr){if(typeof Cr!="object"||Cr===null)return"object expected";var Vr={};if(Cr.exist!=null&&Cr.hasOwnProperty("exist")){Vr.proof=1;{var tt=$root.ics23.ExistenceProof.verify(Cr.exist);if(tt)return"exist."+tt}}if(Cr.nonexist!=null&&Cr.hasOwnProperty("nonexist")){if(Vr.proof===1)return"proof: multiple values";Vr.proof=1;{var tt=$root.ics23.NonExistenceProof.verify(Cr.nonexist);if(tt)return"nonexist."+tt}}if(Cr.batch!=null&&Cr.hasOwnProperty("batch")){if(Vr.proof===1)return"proof: multiple values";Vr.proof=1;{var tt=$root.ics23.BatchProof.verify(Cr.batch);if(tt)return"batch."+tt}}if(Cr.compressed!=null&&Cr.hasOwnProperty("compressed")){if(Vr.proof===1)return"proof: multiple values";Vr.proof=1;{var tt=$root.ics23.CompressedBatchProof.verify(Cr.compressed);if(tt)return"compressed."+tt}}return null},cr.fromObject=function(Cr){if(Cr instanceof $root.ics23.CommitmentProof)return Cr;var Vr=new $root.ics23.CommitmentProof;if(Cr.exist!=null){if(typeof Cr.exist!="object")throw TypeError(".ics23.CommitmentProof.exist: object expected");Vr.exist=$root.ics23.ExistenceProof.fromObject(Cr.exist)}if(Cr.nonexist!=null){if(typeof Cr.nonexist!="object")throw TypeError(".ics23.CommitmentProof.nonexist: object expected");Vr.nonexist=$root.ics23.NonExistenceProof.fromObject(Cr.nonexist)}if(Cr.batch!=null){if(typeof Cr.batch!="object")throw TypeError(".ics23.CommitmentProof.batch: object expected");Vr.batch=$root.ics23.BatchProof.fromObject(Cr.batch)}if(Cr.compressed!=null){if(typeof Cr.compressed!="object")throw TypeError(".ics23.CommitmentProof.compressed: object expected");Vr.compressed=$root.ics23.CompressedBatchProof.fromObject(Cr.compressed)}return Vr},cr.toObject=function(Cr,Vr){Vr||(Vr={});var tt={};return Cr.exist!=null&&Cr.hasOwnProperty("exist")&&(tt.exist=$root.ics23.ExistenceProof.toObject(Cr.exist,Vr),Vr.oneofs&&(tt.proof="exist")),Cr.nonexist!=null&&Cr.hasOwnProperty("nonexist")&&(tt.nonexist=$root.ics23.NonExistenceProof.toObject(Cr.nonexist,Vr),Vr.oneofs&&(tt.proof="nonexist")),Cr.batch!=null&&Cr.hasOwnProperty("batch")&&(tt.batch=$root.ics23.BatchProof.toObject(Cr.batch,Vr),Vr.oneofs&&(tt.proof="batch")),Cr.compressed!=null&&Cr.hasOwnProperty("compressed")&&(tt.compressed=$root.ics23.CompressedBatchProof.toObject(Cr.compressed,Vr),Vr.oneofs&&(tt.proof="compressed")),tt},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e.LeafOp=function(){function cr(gr){if(gr)for(var Cr=Object.keys(gr),Vr=0;Vr>>3){case 1:tt.hash=gr.int32();break;case 2:tt.prehashKey=gr.int32();break;case 3:tt.prehashValue=gr.int32();break;case 4:tt.length=gr.int32();break;case 5:tt.prefix=gr.bytes();break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.hash!=null&&gr.hasOwnProperty("hash"))switch(gr.hash){default:return"hash: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}if(gr.prehashKey!=null&&gr.hasOwnProperty("prehashKey"))switch(gr.prehashKey){default:return"prehashKey: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}if(gr.prehashValue!=null&&gr.hasOwnProperty("prehashValue"))switch(gr.prehashValue){default:return"prehashValue: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}if(gr.length!=null&&gr.hasOwnProperty("length"))switch(gr.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 gr.prefix!=null&&gr.hasOwnProperty("prefix")&&!(gr.prefix&&typeof gr.prefix.length=="number"||$util.isString(gr.prefix))?"prefix: buffer expected":null},cr.fromObject=function(gr){if(gr instanceof $root.ics23.LeafOp)return gr;var Cr=new $root.ics23.LeafOp;switch(gr.hash){case"NO_HASH":case 0:Cr.hash=0;break;case"SHA256":case 1:Cr.hash=1;break;case"SHA512":case 2:Cr.hash=2;break;case"KECCAK":case 3:Cr.hash=3;break;case"RIPEMD160":case 4:Cr.hash=4;break;case"BITCOIN":case 5:Cr.hash=5;break;case"SHA512_256":case 6:Cr.hash=6;break}switch(gr.prehashKey){case"NO_HASH":case 0:Cr.prehashKey=0;break;case"SHA256":case 1:Cr.prehashKey=1;break;case"SHA512":case 2:Cr.prehashKey=2;break;case"KECCAK":case 3:Cr.prehashKey=3;break;case"RIPEMD160":case 4:Cr.prehashKey=4;break;case"BITCOIN":case 5:Cr.prehashKey=5;break;case"SHA512_256":case 6:Cr.prehashKey=6;break}switch(gr.prehashValue){case"NO_HASH":case 0:Cr.prehashValue=0;break;case"SHA256":case 1:Cr.prehashValue=1;break;case"SHA512":case 2:Cr.prehashValue=2;break;case"KECCAK":case 3:Cr.prehashValue=3;break;case"RIPEMD160":case 4:Cr.prehashValue=4;break;case"BITCOIN":case 5:Cr.prehashValue=5;break;case"SHA512_256":case 6:Cr.prehashValue=6;break}switch(gr.length){case"NO_PREFIX":case 0:Cr.length=0;break;case"VAR_PROTO":case 1:Cr.length=1;break;case"VAR_RLP":case 2:Cr.length=2;break;case"FIXED32_BIG":case 3:Cr.length=3;break;case"FIXED32_LITTLE":case 4:Cr.length=4;break;case"FIXED64_BIG":case 5:Cr.length=5;break;case"FIXED64_LITTLE":case 6:Cr.length=6;break;case"REQUIRE_32_BYTES":case 7:Cr.length=7;break;case"REQUIRE_64_BYTES":case 8:Cr.length=8;break}return gr.prefix!=null&&(typeof gr.prefix=="string"?$util.base64.decode(gr.prefix,Cr.prefix=$util.newBuffer($util.base64.length(gr.prefix)),0):gr.prefix.length&&(Cr.prefix=gr.prefix)),Cr},cr.toObject=function(gr,Cr){Cr||(Cr={});var Vr={};return Cr.defaults&&(Vr.hash=Cr.enums===String?"NO_HASH":0,Vr.prehashKey=Cr.enums===String?"NO_HASH":0,Vr.prehashValue=Cr.enums===String?"NO_HASH":0,Vr.length=Cr.enums===String?"NO_PREFIX":0,Cr.bytes===String?Vr.prefix="":(Vr.prefix=[],Cr.bytes!==Array&&(Vr.prefix=$util.newBuffer(Vr.prefix)))),gr.hash!=null&&gr.hasOwnProperty("hash")&&(Vr.hash=Cr.enums===String?$root.ics23.HashOp[gr.hash]:gr.hash),gr.prehashKey!=null&&gr.hasOwnProperty("prehashKey")&&(Vr.prehashKey=Cr.enums===String?$root.ics23.HashOp[gr.prehashKey]:gr.prehashKey),gr.prehashValue!=null&&gr.hasOwnProperty("prehashValue")&&(Vr.prehashValue=Cr.enums===String?$root.ics23.HashOp[gr.prehashValue]:gr.prehashValue),gr.length!=null&&gr.hasOwnProperty("length")&&(Vr.length=Cr.enums===String?$root.ics23.LengthOp[gr.length]:gr.length),gr.prefix!=null&&gr.hasOwnProperty("prefix")&&(Vr.prefix=Cr.bytes===String?$util.base64.encode(gr.prefix,0,gr.prefix.length):Cr.bytes===Array?Array.prototype.slice.call(gr.prefix):gr.prefix),Vr},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e.InnerOp=function(){function cr(gr){if(gr)for(var Cr=Object.keys(gr),Vr=0;Vr>>3){case 1:tt.hash=gr.int32();break;case 2:tt.prefix=gr.bytes();break;case 3:tt.suffix=gr.bytes();break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.hash!=null&&gr.hasOwnProperty("hash"))switch(gr.hash){default:return"hash: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:break}return gr.prefix!=null&&gr.hasOwnProperty("prefix")&&!(gr.prefix&&typeof gr.prefix.length=="number"||$util.isString(gr.prefix))?"prefix: buffer expected":gr.suffix!=null&&gr.hasOwnProperty("suffix")&&!(gr.suffix&&typeof gr.suffix.length=="number"||$util.isString(gr.suffix))?"suffix: buffer expected":null},cr.fromObject=function(gr){if(gr instanceof $root.ics23.InnerOp)return gr;var Cr=new $root.ics23.InnerOp;switch(gr.hash){case"NO_HASH":case 0:Cr.hash=0;break;case"SHA256":case 1:Cr.hash=1;break;case"SHA512":case 2:Cr.hash=2;break;case"KECCAK":case 3:Cr.hash=3;break;case"RIPEMD160":case 4:Cr.hash=4;break;case"BITCOIN":case 5:Cr.hash=5;break;case"SHA512_256":case 6:Cr.hash=6;break}return gr.prefix!=null&&(typeof gr.prefix=="string"?$util.base64.decode(gr.prefix,Cr.prefix=$util.newBuffer($util.base64.length(gr.prefix)),0):gr.prefix.length&&(Cr.prefix=gr.prefix)),gr.suffix!=null&&(typeof gr.suffix=="string"?$util.base64.decode(gr.suffix,Cr.suffix=$util.newBuffer($util.base64.length(gr.suffix)),0):gr.suffix.length&&(Cr.suffix=gr.suffix)),Cr},cr.toObject=function(gr,Cr){Cr||(Cr={});var Vr={};return Cr.defaults&&(Vr.hash=Cr.enums===String?"NO_HASH":0,Cr.bytes===String?Vr.prefix="":(Vr.prefix=[],Cr.bytes!==Array&&(Vr.prefix=$util.newBuffer(Vr.prefix))),Cr.bytes===String?Vr.suffix="":(Vr.suffix=[],Cr.bytes!==Array&&(Vr.suffix=$util.newBuffer(Vr.suffix)))),gr.hash!=null&&gr.hasOwnProperty("hash")&&(Vr.hash=Cr.enums===String?$root.ics23.HashOp[gr.hash]:gr.hash),gr.prefix!=null&&gr.hasOwnProperty("prefix")&&(Vr.prefix=Cr.bytes===String?$util.base64.encode(gr.prefix,0,gr.prefix.length):Cr.bytes===Array?Array.prototype.slice.call(gr.prefix):gr.prefix),gr.suffix!=null&&gr.hasOwnProperty("suffix")&&(Vr.suffix=Cr.bytes===String?$util.base64.encode(gr.suffix,0,gr.suffix.length):Cr.bytes===Array?Array.prototype.slice.call(gr.suffix):gr.suffix),Vr},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e.ProofSpec=function(){function cr(gr){if(gr)for(var Cr=Object.keys(gr),Vr=0;Vr>>3){case 1:tt.leafSpec=$root.ics23.LeafOp.decode(gr,gr.uint32());break;case 2:tt.innerSpec=$root.ics23.InnerSpec.decode(gr,gr.uint32());break;case 3:tt.maxDepth=gr.int32();break;case 4:tt.minDepth=gr.int32();break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.leafSpec!=null&&gr.hasOwnProperty("leafSpec")){var Cr=$root.ics23.LeafOp.verify(gr.leafSpec);if(Cr)return"leafSpec."+Cr}if(gr.innerSpec!=null&&gr.hasOwnProperty("innerSpec")){var Cr=$root.ics23.InnerSpec.verify(gr.innerSpec);if(Cr)return"innerSpec."+Cr}return gr.maxDepth!=null&&gr.hasOwnProperty("maxDepth")&&!$util.isInteger(gr.maxDepth)?"maxDepth: integer expected":gr.minDepth!=null&&gr.hasOwnProperty("minDepth")&&!$util.isInteger(gr.minDepth)?"minDepth: integer expected":null},cr.fromObject=function(gr){if(gr instanceof $root.ics23.ProofSpec)return gr;var Cr=new $root.ics23.ProofSpec;if(gr.leafSpec!=null){if(typeof gr.leafSpec!="object")throw TypeError(".ics23.ProofSpec.leafSpec: object expected");Cr.leafSpec=$root.ics23.LeafOp.fromObject(gr.leafSpec)}if(gr.innerSpec!=null){if(typeof gr.innerSpec!="object")throw TypeError(".ics23.ProofSpec.innerSpec: object expected");Cr.innerSpec=$root.ics23.InnerSpec.fromObject(gr.innerSpec)}return gr.maxDepth!=null&&(Cr.maxDepth=gr.maxDepth|0),gr.minDepth!=null&&(Cr.minDepth=gr.minDepth|0),Cr},cr.toObject=function(gr,Cr){Cr||(Cr={});var Vr={};return Cr.defaults&&(Vr.leafSpec=null,Vr.innerSpec=null,Vr.maxDepth=0,Vr.minDepth=0),gr.leafSpec!=null&&gr.hasOwnProperty("leafSpec")&&(Vr.leafSpec=$root.ics23.LeafOp.toObject(gr.leafSpec,Cr)),gr.innerSpec!=null&&gr.hasOwnProperty("innerSpec")&&(Vr.innerSpec=$root.ics23.InnerSpec.toObject(gr.innerSpec,Cr)),gr.maxDepth!=null&&gr.hasOwnProperty("maxDepth")&&(Vr.maxDepth=gr.maxDepth),gr.minDepth!=null&&gr.hasOwnProperty("minDepth")&&(Vr.minDepth=gr.minDepth),Vr},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e.InnerSpec=function(){function cr(gr){if(this.childOrder=[],gr)for(var Cr=Object.keys(gr),Vr=0;Vr>>3){case 1:if(tt.childOrder&&tt.childOrder.length||(tt.childOrder=[]),(nt&7)===2)for(var st=gr.uint32()+gr.pos;gr.pos>>3){case 1:tt.entries&&tt.entries.length||(tt.entries=[]),tt.entries.push($root.ics23.BatchEntry.decode(gr,gr.uint32()));break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.entries!=null&&gr.hasOwnProperty("entries")){if(!Array.isArray(gr.entries))return"entries: array expected";for(var Cr=0;Cr>>3){case 1:nt.exist=$root.ics23.ExistenceProof.decode(Cr,Cr.uint32());break;case 2:nt.nonexist=$root.ics23.NonExistenceProof.decode(Cr,Cr.uint32());break;default:Cr.skipType(st&7);break}}return nt},cr.decodeDelimited=function(Cr){return Cr instanceof $Reader||(Cr=new $Reader(Cr)),this.decode(Cr,Cr.uint32())},cr.verify=function(Cr){if(typeof Cr!="object"||Cr===null)return"object expected";var Vr={};if(Cr.exist!=null&&Cr.hasOwnProperty("exist")){Vr.proof=1;{var tt=$root.ics23.ExistenceProof.verify(Cr.exist);if(tt)return"exist."+tt}}if(Cr.nonexist!=null&&Cr.hasOwnProperty("nonexist")){if(Vr.proof===1)return"proof: multiple values";Vr.proof=1;{var tt=$root.ics23.NonExistenceProof.verify(Cr.nonexist);if(tt)return"nonexist."+tt}}return null},cr.fromObject=function(Cr){if(Cr instanceof $root.ics23.BatchEntry)return Cr;var Vr=new $root.ics23.BatchEntry;if(Cr.exist!=null){if(typeof Cr.exist!="object")throw TypeError(".ics23.BatchEntry.exist: object expected");Vr.exist=$root.ics23.ExistenceProof.fromObject(Cr.exist)}if(Cr.nonexist!=null){if(typeof Cr.nonexist!="object")throw TypeError(".ics23.BatchEntry.nonexist: object expected");Vr.nonexist=$root.ics23.NonExistenceProof.fromObject(Cr.nonexist)}return Vr},cr.toObject=function(Cr,Vr){Vr||(Vr={});var tt={};return Cr.exist!=null&&Cr.hasOwnProperty("exist")&&(tt.exist=$root.ics23.ExistenceProof.toObject(Cr.exist,Vr),Vr.oneofs&&(tt.proof="exist")),Cr.nonexist!=null&&Cr.hasOwnProperty("nonexist")&&(tt.nonexist=$root.ics23.NonExistenceProof.toObject(Cr.nonexist,Vr),Vr.oneofs&&(tt.proof="nonexist")),tt},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e.CompressedBatchProof=function(){function cr(gr){if(this.entries=[],this.lookupInners=[],gr)for(var Cr=Object.keys(gr),Vr=0;Vr>>3){case 1:tt.entries&&tt.entries.length||(tt.entries=[]),tt.entries.push($root.ics23.CompressedBatchEntry.decode(gr,gr.uint32()));break;case 2:tt.lookupInners&&tt.lookupInners.length||(tt.lookupInners=[]),tt.lookupInners.push($root.ics23.InnerOp.decode(gr,gr.uint32()));break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.entries!=null&&gr.hasOwnProperty("entries")){if(!Array.isArray(gr.entries))return"entries: array expected";for(var Cr=0;Cr>>3){case 1:nt.exist=$root.ics23.CompressedExistenceProof.decode(Cr,Cr.uint32());break;case 2:nt.nonexist=$root.ics23.CompressedNonExistenceProof.decode(Cr,Cr.uint32());break;default:Cr.skipType(st&7);break}}return nt},cr.decodeDelimited=function(Cr){return Cr instanceof $Reader||(Cr=new $Reader(Cr)),this.decode(Cr,Cr.uint32())},cr.verify=function(Cr){if(typeof Cr!="object"||Cr===null)return"object expected";var Vr={};if(Cr.exist!=null&&Cr.hasOwnProperty("exist")){Vr.proof=1;{var tt=$root.ics23.CompressedExistenceProof.verify(Cr.exist);if(tt)return"exist."+tt}}if(Cr.nonexist!=null&&Cr.hasOwnProperty("nonexist")){if(Vr.proof===1)return"proof: multiple values";Vr.proof=1;{var tt=$root.ics23.CompressedNonExistenceProof.verify(Cr.nonexist);if(tt)return"nonexist."+tt}}return null},cr.fromObject=function(Cr){if(Cr instanceof $root.ics23.CompressedBatchEntry)return Cr;var Vr=new $root.ics23.CompressedBatchEntry;if(Cr.exist!=null){if(typeof Cr.exist!="object")throw TypeError(".ics23.CompressedBatchEntry.exist: object expected");Vr.exist=$root.ics23.CompressedExistenceProof.fromObject(Cr.exist)}if(Cr.nonexist!=null){if(typeof Cr.nonexist!="object")throw TypeError(".ics23.CompressedBatchEntry.nonexist: object expected");Vr.nonexist=$root.ics23.CompressedNonExistenceProof.fromObject(Cr.nonexist)}return Vr},cr.toObject=function(Cr,Vr){Vr||(Vr={});var tt={};return Cr.exist!=null&&Cr.hasOwnProperty("exist")&&(tt.exist=$root.ics23.CompressedExistenceProof.toObject(Cr.exist,Vr),Vr.oneofs&&(tt.proof="exist")),Cr.nonexist!=null&&Cr.hasOwnProperty("nonexist")&&(tt.nonexist=$root.ics23.CompressedNonExistenceProof.toObject(Cr.nonexist,Vr),Vr.oneofs&&(tt.proof="nonexist")),tt},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e.CompressedExistenceProof=function(){function cr(gr){if(this.path=[],gr)for(var Cr=Object.keys(gr),Vr=0;Vr>>3){case 1:tt.key=gr.bytes();break;case 2:tt.value=gr.bytes();break;case 3:tt.leaf=$root.ics23.LeafOp.decode(gr,gr.uint32());break;case 4:if(tt.path&&tt.path.length||(tt.path=[]),(nt&7)===2)for(var st=gr.uint32()+gr.pos;gr.pos>>3){case 1:tt.key=gr.bytes();break;case 2:tt.left=$root.ics23.CompressedExistenceProof.decode(gr,gr.uint32());break;case 3:tt.right=$root.ics23.CompressedExistenceProof.decode(gr,gr.uint32());break;default:gr.skipType(nt&7);break}}return tt},cr.decodeDelimited=function(gr){return gr instanceof $Reader||(gr=new $Reader(gr)),this.decode(gr,gr.uint32())},cr.verify=function(gr){if(typeof gr!="object"||gr===null)return"object expected";if(gr.key!=null&&gr.hasOwnProperty("key")&&!(gr.key&&typeof gr.key.length=="number"||$util.isString(gr.key)))return"key: buffer expected";if(gr.left!=null&&gr.hasOwnProperty("left")){var Cr=$root.ics23.CompressedExistenceProof.verify(gr.left);if(Cr)return"left."+Cr}if(gr.right!=null&&gr.hasOwnProperty("right")){var Cr=$root.ics23.CompressedExistenceProof.verify(gr.right);if(Cr)return"right."+Cr}return null},cr.fromObject=function(gr){if(gr instanceof $root.ics23.CompressedNonExistenceProof)return gr;var Cr=new $root.ics23.CompressedNonExistenceProof;if(gr.key!=null&&(typeof gr.key=="string"?$util.base64.decode(gr.key,Cr.key=$util.newBuffer($util.base64.length(gr.key)),0):gr.key.length&&(Cr.key=gr.key)),gr.left!=null){if(typeof gr.left!="object")throw TypeError(".ics23.CompressedNonExistenceProof.left: object expected");Cr.left=$root.ics23.CompressedExistenceProof.fromObject(gr.left)}if(gr.right!=null){if(typeof gr.right!="object")throw TypeError(".ics23.CompressedNonExistenceProof.right: object expected");Cr.right=$root.ics23.CompressedExistenceProof.fromObject(gr.right)}return Cr},cr.toObject=function(gr,Cr){Cr||(Cr={});var Vr={};return Cr.defaults&&(Cr.bytes===String?Vr.key="":(Vr.key=[],Cr.bytes!==Array&&(Vr.key=$util.newBuffer(Vr.key))),Vr.left=null,Vr.right=null),gr.key!=null&&gr.hasOwnProperty("key")&&(Vr.key=Cr.bytes===String?$util.base64.encode(gr.key,0,gr.key.length):Cr.bytes===Array?Array.prototype.slice.call(gr.key):gr.key),gr.left!=null&&gr.hasOwnProperty("left")&&(Vr.left=$root.ics23.CompressedExistenceProof.toObject(gr.left,Cr)),gr.right!=null&&gr.hasOwnProperty("right")&&(Vr.right=$root.ics23.CompressedExistenceProof.toObject(gr.right,Cr)),Vr},cr.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},cr}(),_e}();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(_e){return _e.batch?{compressed:compressBatch(_e.batch)}:_e}compress$1.compress=compress;function decompress(_e){return _e.compressed?{batch:decompressBatch(_e.compressed)}:_e}compress$1.decompress=decompress;function compressBatch(_e){const cr=[],gr=[],Cr=new Map;for(const Vr of _e.entries)if(Vr.exist){const tt={exist:compressExist(Vr.exist,gr,Cr)};cr.push(tt)}else if(Vr.nonexist){const tt=Vr.nonexist,nt={nonexist:{key:tt.key,left:compressExist(tt.left,gr,Cr),right:compressExist(tt.right,gr,Cr)}};cr.push(nt)}else throw new Error("Unexpected batch entry during compress");return{entries:cr,lookupInners:gr}}function compressExist(_e,cr,gr){if(!_e)return;const Cr=_e.path.map(Vr=>{const tt=codecimpl_1$2.ics23.InnerOp.encode(Vr).finish();let nt=gr.get(tt);return nt===void 0&&(nt=cr.length,cr.push(Vr),gr.set(tt,nt)),nt});return{key:_e.key,value:_e.value,leaf:_e.leaf,path:Cr}}function decompressBatch(_e){const cr=_e.lookupInners;return{entries:_e.entries.map(gr=>{if(gr.exist)return{exist:decompressExist(gr.exist,cr)};if(gr.nonexist){const Cr=gr.nonexist;return{nonexist:{key:Cr.key,left:decompressExist(Cr.left,cr),right:decompressExist(Cr.right,cr)}}}else throw new Error("Unexpected batch entry during compress")})}}function decompressExist(_e,cr){if(!_e)return;const{key:gr,value:Cr,leaf:Vr,path:tt}=_e,nt=(tt||[]).map(st=>cr[st]);return{key:gr,value:Cr,leaf:Vr,path:nt}}var proofs$1={},ops={};Object.defineProperty(ops,"__esModule",{value:!0}),ops.doHash=ops.applyInner=ops.applyLeaf=void 0;const ripemd160_1=ripemd160$1,sha256_1=sha256$1,sha512_1=sha512$1,codecimpl_1$1=codecimpl;function applyLeaf(_e,cr,gr){if(cr.length===0)throw new Error("Missing key");if(gr.length===0)throw new Error("Missing value");const Cr=prepareLeafData(ensureHash(_e.prehashKey),ensureLength(_e.length),cr),Vr=prepareLeafData(ensureHash(_e.prehashValue),ensureLength(_e.length),gr),tt=new Uint8Array([...ensureBytes(_e.prefix),...Cr,...Vr]);return doHash(ensureHash(_e.hash),tt)}ops.applyLeaf=applyLeaf;function applyInner(_e,cr){if(cr.length===0)throw new Error("Inner op needs child value");const gr=new Uint8Array([...ensureBytes(_e.prefix),...cr,...ensureBytes(_e.suffix)]);return doHash(ensureHash(_e.hash),gr)}ops.applyInner=applyInner;function ensure(_e,cr){return _e??cr}const ensureHash=_e=>ensure(_e,codecimpl_1$1.ics23.HashOp.NO_HASH),ensureLength=_e=>ensure(_e,codecimpl_1$1.ics23.LengthOp.NO_PREFIX),ensureBytes=_e=>ensure(_e,new Uint8Array([]));function prepareLeafData(_e,cr,gr){const Cr=doHashOrNoop(_e,gr);return doLengthOp(cr,Cr)}function doHashOrNoop(_e,cr){return _e===codecimpl_1$1.ics23.HashOp.NO_HASH?cr:doHash(_e,cr)}function doHash(_e,cr){switch(_e){case codecimpl_1$1.ics23.HashOp.SHA256:return(0,sha256_1.sha256)(cr);case codecimpl_1$1.ics23.HashOp.SHA512:return(0,sha512_1.sha512)(cr);case codecimpl_1$1.ics23.HashOp.RIPEMD160:return(0,ripemd160_1.ripemd160)(cr);case codecimpl_1$1.ics23.HashOp.BITCOIN:return(0,ripemd160_1.ripemd160)((0,sha256_1.sha256)(cr));case codecimpl_1$1.ics23.HashOp.SHA512_256:return(0,sha512_1.sha512_256)(cr)}throw new Error(`Unsupported hashop: ${_e}`)}ops.doHash=doHash;function doLengthOp(_e,cr){switch(_e){case codecimpl_1$1.ics23.LengthOp.NO_PREFIX:return cr;case codecimpl_1$1.ics23.LengthOp.VAR_PROTO:return new Uint8Array([...encodeVarintProto(cr.length),...cr]);case codecimpl_1$1.ics23.LengthOp.REQUIRE_32_BYTES:if(cr.length!==32)throw new Error(`Length is ${cr.length}, not 32 bytes`);return cr;case codecimpl_1$1.ics23.LengthOp.REQUIRE_64_BYTES:if(cr.length!==64)throw new Error(`Length is ${cr.length}, not 64 bytes`);return cr;case codecimpl_1$1.ics23.LengthOp.FIXED32_LITTLE:return new Uint8Array([...encodeFixed32Le(cr.length),...cr])}throw new Error(`Unsupported lengthop: ${_e}`)}function encodeVarintProto(_e){let cr=[],gr=_e;for(;gr>=128;){const Cr=gr%128+128;cr=[...cr,Cr],gr=gr/128}return cr=[...cr,gr],new Uint8Array(cr)}function encodeFixed32Le(_e){const cr=new Uint8Array(4);let gr=_e;for(let Cr=cr.length;Cr>0;Cr--)cr[Math.abs(Cr-cr.length)]=gr%256,gr=Math.floor(gr/256);return cr}var specs={};Object.defineProperty(specs,"__esModule",{value:!0}),specs.bytesBefore=specs.ensureBytesBefore=specs.bytesEqual=specs.ensureBytesEqual=specs.ensureInner=specs.ensureLeaf=void 0;function ensureLeaf(_e,cr){if(_e.hash!==cr.hash)throw new Error(`Unexpected hashOp: ${_e.hash}`);if(_e.prehashKey!==cr.prehashKey)throw new Error(`Unexpected prehashKey: ${_e.prehashKey}`);if(_e.prehashValue!==cr.prehashValue)throw new Error(`Unexpected prehashValue: ${_e.prehashValue}`);if(_e.length!==cr.length)throw new Error(`Unexpected length op: ${_e.length}`);ensurePrefix(_e.prefix,cr.prefix)}specs.ensureLeaf=ensureLeaf;function ensureInner(_e,cr,gr){if(_e.hash!==gr.hash)throw new Error(`Unexpected hashOp: ${_e.hash}`);if(!_e.prefix)throw new Error("No prefix set for inner node");if(hasPrefix(_e.prefix,cr))throw new Error("Inner node has leaf prefix");if(_e.prefix.length<(gr.minPrefixLength||0))throw new Error(`Prefix too short: ${_e.prefix.length} bytes`);const Cr=(gr.childOrder.length-1)*gr.childSize;if(_e.prefix.length>(gr.maxPrefixLength||0)+Cr)throw new Error(`Prefix too long: ${_e.prefix.length} bytes`)}specs.ensureInner=ensureInner;function ensurePrefix(_e,cr){if(!(!cr||cr.length===0)){if(!_e)throw new Error("Target bytes missing");ensureBytesEqual(cr,_e.slice(0,cr.length))}}function ensureBytesEqual(_e,cr){if(_e.length!==cr.length)throw new Error(`Different lengths ${_e.length} vs ${cr.length}`);for(let gr=0;gr<_e.length;gr++)if(_e[gr]!==cr[gr])throw new Error(`Arrays differ at index ${gr}: ${_e[gr]} vs ${cr[gr]}`)}specs.ensureBytesEqual=ensureBytesEqual;function bytesEqual(_e,cr){if(_e.length!==cr.length)return!1;for(let gr=0;gr<_e.length;gr++)if(_e[gr]!==cr[gr])return!1;return!0}specs.bytesEqual=bytesEqual;function hasPrefix(_e,cr){if(!cr||cr.length===0||!_e||_e.length<=cr.length)return!1;for(let gr=0;grcr[Cr])return!1}return _e.lengthcr.maxDepth)throw new Error(`Too many inner nodes ${gr.length}`);for(const Cr of gr)(0,specs_1$1.ensureInner)(Cr,cr.leafSpec.prefix,cr.innerSpec)}proofs$1.ensureSpec=ensureSpec;function ensureLeftMost(_e,cr){const{minPrefix:gr,maxPrefix:Cr,suffix:Vr}=getPadding(_e,0);for(const tt of cr)if(!hasPadding(tt,gr,Cr,Vr))throw new Error("Step not leftmost")}function ensureRightMost(_e,cr){const gr=_e.childOrder.length-1,{minPrefix:Cr,maxPrefix:Vr,suffix:tt}=getPadding(_e,gr);for(const nt of cr)if(!hasPadding(nt,Cr,Vr,tt))throw new Error("Step not leftmost")}function ensureLeftNeighbor(_e,cr,gr){const Cr=[...cr],Vr=[...gr];let tt=Cr.pop(),nt=Vr.pop();for(;(0,specs_1$1.bytesEqual)(tt.prefix,nt.prefix)&&(0,specs_1$1.bytesEqual)(tt.suffix,nt.suffix);)tt=Cr.pop(),nt=Vr.pop();if(!isLeftStep(_e,tt,nt))throw new Error("Not left neightbor at first divergent step");ensureRightMost(_e,Cr),ensureLeftMost(_e,Vr)}proofs$1.ensureLeftNeighbor=ensureLeftNeighbor;function isLeftStep(_e,cr,gr){const Cr=orderFromPadding(_e,cr);return orderFromPadding(_e,gr)===Cr+1}function orderFromPadding(_e,cr){for(let gr=0;gr<_e.childOrder.length;gr++){const{minPrefix:Cr,maxPrefix:Vr,suffix:tt}=getPadding(_e,gr);if(hasPadding(cr,Cr,Vr,tt))return gr}throw new Error("Cannot find any valid spacing for this node")}function hasPadding(_e,cr,gr,Cr){return(_e.prefix||[]).lengthgr?!1:(_e.suffix||[]).length===Cr}function getPadding(_e,cr){const gr=getPosition$1(_e.childOrder,cr),Cr=gr*_e.childSize,Vr=Cr+_e.minPrefixLength,tt=Cr+_e.maxPrefixLength,nt=(_e.childOrder.length-1-gr)*_e.childSize;return{minPrefix:Vr,maxPrefix:tt,suffix:nt}}function getPosition$1(_e,cr){if(cr<0||cr>=_e.length)throw new Error(`Invalid branch: ${cr}`);return _e.findIndex(gr=>gr===cr)}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(_e,cr,gr,Cr,Vr){const tt=(0,compress_1.decompress)(_e),nt=getExistForKey(tt,Cr);if(!nt)return!1;try{return(0,proofs_1$1.verifyExistence)(nt,cr,gr,Cr,Vr),!0}catch{return!1}}ics23.verifyMembership=verifyMembership;function verifyNonMembership(_e,cr,gr,Cr){const Vr=(0,compress_1.decompress)(_e),tt=getNonExistForKey(Vr,Cr);if(!tt)return!1;try{return(0,proofs_1$1.verifyNonExistence)(tt,cr,gr,Cr),!0}catch{return!1}}ics23.verifyNonMembership=verifyNonMembership;function batchVerifyMembership(_e,cr,gr,Cr){const Vr=(0,compress_1.decompress)(_e);for(const[tt,nt]of Cr.entries())if(!verifyMembership(Vr,cr,gr,tt,nt))return!1;return!0}ics23.batchVerifyMembership=batchVerifyMembership;function batchVerifyNonMembership(_e,cr,gr,Cr){const Vr=(0,compress_1.decompress)(_e);for(const tt of Cr)if(!verifyNonMembership(Vr,cr,gr,tt))return!1;return!0}ics23.batchVerifyNonMembership=batchVerifyNonMembership;function getExistForKey(_e,cr){const gr=Cr=>!!Cr&&(0,specs_1.bytesEqual)(cr,Cr.key);if(gr(_e.exist))return _e.exist;if(_e.batch)return _e.batch.entries.map(Cr=>Cr.exist||null).find(gr)}function getNonExistForKey(_e,cr){const gr=Cr=>!!Cr&&(!Cr.left||(0,specs_1.bytesBefore)(Cr.left.key,cr))&&(!Cr.right||(0,specs_1.bytesBefore)(cr,Cr.right.key));if(gr(_e.nonexist))return _e.nonexist;if(_e.batch)return _e.batch.entries.map(Cr=>Cr.nonexist||null).find(gr)}(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.verifyNonExistence=_e.verifyExistence=_e.tendermintSpec=_e.iavlSpec=_e.calculateExistenceRoot=_e.verifyNonMembership=_e.verifyMembership=_e.ics23=void 0;var cr=codecimpl;Object.defineProperty(_e,"ics23",{enumerable:!0,get:function(){return cr.ics23}});var gr=ics23;Object.defineProperty(_e,"verifyMembership",{enumerable:!0,get:function(){return gr.verifyMembership}}),Object.defineProperty(_e,"verifyNonMembership",{enumerable:!0,get:function(){return gr.verifyNonMembership}});var Cr=proofs$1;Object.defineProperty(_e,"calculateExistenceRoot",{enumerable:!0,get:function(){return Cr.calculateExistenceRoot}}),Object.defineProperty(_e,"iavlSpec",{enumerable:!0,get:function(){return Cr.iavlSpec}}),Object.defineProperty(_e,"tendermintSpec",{enumerable:!0,get:function(){return Cr.tendermintSpec}}),Object.defineProperty(_e,"verifyExistence",{enumerable:!0,get:function(){return Cr.verifyExistence}}),Object.defineProperty(_e,"verifyNonExistence",{enumerable:!0,get:function(){return Cr.verifyNonExistence}})})(build$5);var build$4={},concat$2={},xstream={},ponyfill$1={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=cr;function cr(gr){var Cr,Vr=gr.Symbol;if(typeof Vr=="function")if(Vr.observable)Cr=Vr.observable;else{Cr=Vr.for("https://github.com/benlesh/symbol-observable");try{Vr.observable=Cr}catch{}}else Cr="@@observable";return Cr}})(ponyfill$1);var ponyfill=ponyfill$1,toStr$2=Object.prototype.toString,isArguments$5=function _e(cr){var gr=toStr$2.call(cr),Cr=gr==="[object Arguments]";return Cr||(Cr=gr!=="[object Array]"&&cr!==null&&typeof cr=="object"&&typeof cr.length=="number"&&cr.length>=0&&toStr$2.call(cr.callee)==="[object Function]"),Cr},implementation$4,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation$4;hasRequiredImplementation=1;var _e;if(!Object.keys){var cr=Object.prototype.hasOwnProperty,gr=Object.prototype.toString,Cr=isArguments$5,Vr=Object.prototype.propertyIsEnumerable,tt=!Vr.call({toString:null},"toString"),nt=Vr.call(function(){},"prototype"),st=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dt=function(ht){var po=ht.constructor;return po&&po.prototype===ht},kt={$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},qt=function(){if(typeof window>"u")return!1;for(var ht in window)try{if(!kt["$"+ht]&&cr.call(window,ht)&&window[ht]!==null&&typeof window[ht]=="object")try{dt(window[ht])}catch{return!0}}catch{return!0}return!1}(),ro=function(ht){if(typeof window>"u"||!qt)return dt(ht);try{return dt(ht)}catch{return!1}};_e=function(ht){var po=ht!==null&&typeof ht=="object",no=gr.call(ht)==="[object Function]",Nt=Cr(ht),eo=po&&gr.call(ht)==="[object String]",Wt=[];if(!po&&!no&&!Nt)throw new TypeError("Object.keys called on a non-object");var St=nt&&no;if(eo&&ht.length>0&&!cr.call(ht,0))for(var Ot=0;Ot0)for(var uo=0;uo"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(_e){var errorProto=getProto(getProto(_e));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function _e(cr){var gr;if(cr==="%AsyncFunction%")gr=getEvalledConstructor("async function () {}");else if(cr==="%GeneratorFunction%")gr=getEvalledConstructor("function* () {}");else if(cr==="%AsyncGeneratorFunction%")gr=getEvalledConstructor("async function* () {}");else if(cr==="%AsyncGenerator%"){var Cr=_e("%AsyncGeneratorFunction%");Cr&&(gr=Cr.prototype)}else if(cr==="%AsyncIteratorPrototype%"){var Vr=_e("%AsyncGenerator%");Vr&&getProto&&(gr=getProto(Vr.prototype))}return INTRINSICS[cr]=gr,gr},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$6=functionBind,hasOwn=hasown,$concat=bind$6.call(Function.call,Array.prototype.concat),$spliceApply=bind$6.call(Function.apply,Array.prototype.splice),$replace=bind$6.call(Function.call,String.prototype.replace),$strSlice=bind$6.call(Function.call,String.prototype.slice),$exec=bind$6.call(Function.call,RegExp.prototype.exec),rePropName$1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=function _e(cr){var gr=$strSlice(cr,0,1),Cr=$strSlice(cr,-1);if(gr==="%"&&Cr!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(Cr==="%"&&gr!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var Vr=[];return $replace(cr,rePropName$1,function(tt,nt,st,dt){Vr[Vr.length]=st?$replace(dt,reEscapeChar$1,"$1"):nt||tt}),Vr},getBaseIntrinsic=function _e(cr,gr){var Cr=cr,Vr;if(hasOwn(LEGACY_ALIASES,Cr)&&(Vr=LEGACY_ALIASES[Cr],Cr="%"+Vr[0]+"%"),hasOwn(INTRINSICS,Cr)){var tt=INTRINSICS[Cr];if(tt===needsEval&&(tt=doEval(Cr)),typeof tt>"u"&&!gr)throw new $TypeError$1("intrinsic "+cr+" exists, but is not available. Please file an issue!");return{alias:Vr,name:Cr,value:tt}}throw new $SyntaxError$1("intrinsic "+cr+" does not exist!")},getIntrinsic=function _e(cr,gr){if(typeof cr!="string"||cr.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof gr!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,cr)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Cr=stringToPath$2(cr),Vr=Cr.length>0?Cr[0]:"",tt=getBaseIntrinsic("%"+Vr+"%",gr),nt=tt.name,st=tt.value,dt=!1,kt=tt.alias;kt&&(Vr=kt[0],$spliceApply(Cr,$concat([0,1],kt)));for(var qt=1,ro=!0;qt=Cr.length){var Nt=$gOPD$1(st,ht);ro=!!Nt,ro&&"get"in Nt&&!("originalValue"in Nt.get)?st=Nt.get:st=st[ht]}else ro=hasOwn(st,ht),st=st[ht];ro&&!dt&&(INTRINSICS[nt]=st)}}return st},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 _e(cr,gr,Cr){if(!cr||typeof cr!="object"&&typeof cr!="function")throw new $TypeError("`obj` must be an object or a function`");if(typeof gr!="string"&&typeof gr!="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 Vr=arguments.length>3?arguments[3]:null,tt=arguments.length>4?arguments[4]:null,nt=arguments.length>5?arguments[5]:null,st=arguments.length>6?arguments[6]:!1,dt=!!gopd&&gopd(cr,gr);if($defineProperty$1)$defineProperty$1(cr,gr,{configurable:nt===null&&dt?dt.configurable:!nt,enumerable:Vr===null&&dt?dt.enumerable:!Vr,value:Cr,writable:tt===null&&dt?dt.writable:!tt});else if(st||!Vr&&!tt&&!nt)cr[gr]=Cr;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=esDefineProperty,hasPropertyDescriptors=function _e(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function _e(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,keys$5=objectKeys$1,hasSymbols=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",toStr=Object.prototype.toString,concat$1=Array.prototype.concat,defineDataProperty=defineDataProperty$1,isFunction$6=function(_e){return typeof _e=="function"&&toStr.call(_e)==="[object Function]"},supportsDescriptors=hasPropertyDescriptors_1(),defineProperty$3=function(_e,cr,gr,Cr){if(cr in _e){if(Cr===!0){if(_e[cr]===gr)return}else if(!isFunction$6(Cr)||!Cr())return}supportsDescriptors?defineDataProperty(_e,cr,gr,!0):defineDataProperty(_e,cr,gr)},defineProperties$1=function(_e,cr){var gr=arguments.length>2?arguments[2]:{},Cr=keys$5(cr);hasSymbols&&(Cr=concat$1.call(Cr,Object.getOwnPropertySymbols(cr)));for(var Vr=0;Vr=this.max&&gr._n(cr)},_e.prototype._e=function(cr){var gr=this.out;gr!==NO&&gr._e(cr)},_e.prototype._c=function(){var cr=this.out;cr!==NO&&cr._c()},_e}(),EndWhenListener=function(){function _e(cr,gr){this.out=cr,this.op=gr}return _e.prototype._n=function(){this.op.end()},_e.prototype._e=function(cr){this.out._e(cr)},_e.prototype._c=function(){this.op.end()},_e}(),EndWhen=function(){function _e(cr,gr){this.type="endWhen",this.ins=gr,this.out=NO,this.o=cr,this.oil=NO_IL}return _e.prototype._start=function(cr){this.out=cr,this.o._add(this.oil=new EndWhenListener(cr,this)),this.ins._add(this)},_e.prototype._stop=function(){this.ins._remove(this),this.o._remove(this.oil),this.out=NO,this.oil=NO_IL},_e.prototype.end=function(){var cr=this.out;cr!==NO&&cr._c()},_e.prototype._n=function(cr){var gr=this.out;gr!==NO&&gr._n(cr)},_e.prototype._e=function(cr){var gr=this.out;gr!==NO&&gr._e(cr)},_e.prototype._c=function(){this.end()},_e}(),Filter=function(){function _e(cr,gr){this.type="filter",this.ins=gr,this.out=NO,this.f=cr}return _e.prototype._start=function(cr){this.out=cr,this.ins._add(this)},_e.prototype._stop=function(){this.ins._remove(this),this.out=NO},_e.prototype._n=function(cr){var gr=this.out;if(gr!==NO){var Cr=_try(this,cr,gr);Cr===NO||!Cr||gr._n(cr)}},_e.prototype._e=function(cr){var gr=this.out;gr!==NO&&gr._e(cr)},_e.prototype._c=function(){var cr=this.out;cr!==NO&&cr._c()},_e}(),FlattenListener=function(){function _e(cr,gr){this.out=cr,this.op=gr}return _e.prototype._n=function(cr){this.out._n(cr)},_e.prototype._e=function(cr){this.out._e(cr)},_e.prototype._c=function(){this.op.inner=NO,this.op.less()},_e}(),Flatten=function(){function _e(cr){this.type="flatten",this.ins=cr,this.out=NO,this.open=!0,this.inner=NO,this.il=NO_IL}return _e.prototype._start=function(cr){this.out=cr,this.open=!0,this.inner=NO,this.il=NO_IL,this.ins._add(this)},_e.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},_e.prototype.less=function(){var cr=this.out;cr!==NO&&!this.open&&this.inner===NO&&cr._c()},_e.prototype._n=function(cr){var gr=this.out;if(gr!==NO){var Cr=this,Vr=Cr.inner,tt=Cr.il;Vr!==NO&&tt!==NO_IL&&Vr._remove(tt),(this.inner=cr)._add(this.il=new FlattenListener(gr,this))}},_e.prototype._e=function(cr){var gr=this.out;gr!==NO&&gr._e(cr)},_e.prototype._c=function(){this.open=!1,this.less()},_e}(),Fold=function(){function _e(cr,gr,Cr){var Vr=this;this.type="fold",this.ins=Cr,this.out=NO,this.f=function(tt){return cr(Vr.acc,tt)},this.acc=this.seed=gr}return _e.prototype._start=function(cr){this.out=cr,this.acc=this.seed,cr._n(this.acc),this.ins._add(this)},_e.prototype._stop=function(){this.ins._remove(this),this.out=NO,this.acc=this.seed},_e.prototype._n=function(cr){var gr=this.out;if(gr!==NO){var Cr=_try(this,cr,gr);Cr!==NO&&gr._n(this.acc=Cr)}},_e.prototype._e=function(cr){var gr=this.out;gr!==NO&&gr._e(cr)},_e.prototype._c=function(){var cr=this.out;cr!==NO&&cr._c()},_e}(),Last=function(){function _e(cr){this.type="last",this.ins=cr,this.out=NO,this.has=!1,this.val=NO}return _e.prototype._start=function(cr){this.out=cr,this.has=!1,this.ins._add(this)},_e.prototype._stop=function(){this.ins._remove(this),this.out=NO,this.val=NO},_e.prototype._n=function(cr){this.has=!0,this.val=cr},_e.prototype._e=function(cr){var gr=this.out;gr!==NO&&gr._e(cr)},_e.prototype._c=function(){var cr=this.out;cr!==NO&&(this.has?(cr._n(this.val),cr._c()):cr._e(new Error("last() failed because input stream completed")))},_e}(),MapOp=function(){function _e(cr,gr){this.type="map",this.ins=gr,this.out=NO,this.f=cr}return _e.prototype._start=function(cr){this.out=cr,this.ins._add(this)},_e.prototype._stop=function(){this.ins._remove(this),this.out=NO},_e.prototype._n=function(cr){var gr=this.out;if(gr!==NO){var Cr=_try(this,cr,gr);Cr!==NO&&gr._n(Cr)}},_e.prototype._e=function(cr){var gr=this.out;gr!==NO&&gr._e(cr)},_e.prototype._c=function(){var cr=this.out;cr!==NO&&cr._c()},_e}(),Remember=function(){function _e(cr){this.type="remember",this.ins=cr,this.out=NO}return _e.prototype._start=function(cr){this.out=cr,this.ins._add(cr)},_e.prototype._stop=function(){this.ins._remove(this.out),this.out=NO},_e}(),ReplaceError=function(){function _e(cr,gr){this.type="replaceError",this.ins=gr,this.out=NO,this.f=cr}return _e.prototype._start=function(cr){this.out=cr,this.ins._add(this)},_e.prototype._stop=function(){this.ins._remove(this),this.out=NO},_e.prototype._n=function(cr){var gr=this.out;gr!==NO&&gr._n(cr)},_e.prototype._e=function(cr){var gr=this.out;if(gr!==NO)try{this.ins._remove(this),(this.ins=this.f(cr))._add(this)}catch(Cr){gr._e(Cr)}},_e.prototype._c=function(){var cr=this.out;cr!==NO&&cr._c()},_e}(),StartWith=function(){function _e(cr,gr){this.type="startWith",this.ins=cr,this.out=NO,this.val=gr}return _e.prototype._start=function(cr){this.out=cr,this.out._n(this.val),this.ins._add(cr)},_e.prototype._stop=function(){this.ins._remove(this.out),this.out=NO},_e}(),Take=function(){function _e(cr,gr){this.type="take",this.ins=gr,this.out=NO,this.max=cr,this.taken=0}return _e.prototype._start=function(cr){this.out=cr,this.taken=0,this.max<=0?cr._c():this.ins._add(this)},_e.prototype._stop=function(){this.ins._remove(this),this.out=NO},_e.prototype._n=function(cr){var gr=this.out;if(gr!==NO){var Cr=++this.taken;Cr1))if(this._stopID!==NO)clearTimeout(this._stopID),this._stopID=NO;else{var Vr=this._prod;Vr!==NO&&Vr._start(this)}},_e.prototype._remove=function(cr){var gr=this,Cr=this._target;if(Cr)return Cr._remove(cr);var Vr=this._ils,tt=Vr.indexOf(cr);tt>-1&&(Vr.splice(tt,1),this._prod!==NO&&Vr.length<=0?(this._err=NO,this._stopID=setTimeout(function(){return gr._stopNow()})):Vr.length===1&&this._pruneCycles())},_e.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])},_e.prototype._hasNoSinks=function(cr,gr){if(gr.indexOf(cr)!==-1||cr.out===this)return!0;if(cr.out&&cr.out!==NO)return this._hasNoSinks(cr.out,gr.concat(cr));if(cr._ils){for(var Cr=0,Vr=cr._ils.length;Cr1){this._has&&gr._n(this._v);return}if(this._stopID!==NO)this._has&&gr._n(this._v),clearTimeout(this._stopID),this._stopID=NO;else if(this._has)gr._n(this._v);else{var tt=this._prod;tt!==NO&&tt._start(this)}},cr.prototype._stopNow=function(){this._has=!1,_e.prototype._stopNow.call(this)},cr.prototype._x=function(){this._has=!1,_e.prototype._x.call(this)},cr.prototype.map=function(gr){return this._map(gr)},cr.prototype.mapTo=function(gr){return _e.prototype.mapTo.call(this,gr)},cr.prototype.take=function(gr){return _e.prototype.take.call(this,gr)},cr.prototype.endWhen=function(gr){return _e.prototype.endWhen.call(this,gr)},cr.prototype.replaceError=function(gr){return _e.prototype.replaceError.call(this,gr)},cr.prototype.remember=function(){return this},cr.prototype.debug=function(gr){return _e.prototype.debug.call(this,gr)},cr}(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(..._e){const cr=new Array,gr=new Array,Cr=new Set;let Vr=0;function tt(){for(;cr.length>0;)cr.shift().unsubscribe();gr.length=0,Cr.clear(),Vr=0}const nt={start:st=>{_e.forEach(qt=>gr.push([]));function dt(qt){for(;;){const ro=gr[qt].shift();if(ro===void 0)return;st.next(ro)}}function kt(){return Vr>=_e.length}if(kt()){st.complete();return}_e.forEach((qt,ro)=>{cr.push(qt.subscribe({next:ht=>{ro===Vr?st.next(ht):gr[ro].push(ht)},complete:()=>{for(Cr.add(ro);Cr.has(Vr);)dt(Vr),Vr++;kt()?st.complete():dt(Vr)},error:ht=>{st.error(ht),tt()}}))})},stop:()=>{tt()}};return xstream_1$5.Stream.create(nt)}concat$2.concat=concat;var defaultvalueproducer={};Object.defineProperty(defaultvalueproducer,"__esModule",{value:!0}),defaultvalueproducer.DefaultValueProducer=void 0;class DefaultValueProducer{get value(){return this.internalValue}constructor(cr,gr){this.callbacks=gr,this.internalValue=cr}update(cr){this.internalValue=cr,this.listener&&this.listener.next(cr)}error(cr){this.listener&&this.listener.error(cr)}start(cr){this.listener=cr,cr.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(_e){return cr=>{const gr=new Set;return cr.filter(Cr=>!gr.has(_e(Cr))).debug(Cr=>gr.add(_e(Cr)))}}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(_e){const cr={start:gr=>{_e.then(Cr=>{for(const Vr of Cr)gr.next(Vr);gr.complete()}).catch(Cr=>gr.error(Cr))},stop:()=>{}};return xstream_1$4.Stream.create(cr)}promise.fromListPromise=fromListPromise;async function toListPromise(_e,cr){return new Promise((gr,Cr)=>{if(cr===0){gr([]);return}const Vr=new Array;_e.take(cr).subscribe({next:tt=>{Vr.push(tt),Vr.length===cr&&gr(Vr)},complete:()=>{Cr(`Stream completed before all events could be collected. Collected ${Vr.length}, expected ${cr}`)},error:tt=>Cr(tt)})})}promise.toListPromise=toListPromise;async function firstEvent(_e){return(await toListPromise(_e,1))[0]}promise.firstEvent=firstEvent;var reducer$6={};Object.defineProperty(reducer$6,"__esModule",{value:!0}),reducer$6.lastValue=reducer$6.asArray=reducer$6.countStream=reducer$6.Reducer=void 0;class Reducer{constructor(cr,gr,Cr){this.stream=cr,this.reducer=gr,this.state=Cr,this.completed=new Promise((Vr,tt)=>{const nt=this.stream.subscribe({next:st=>{this.state=this.reducer(this.state,st)},complete:()=>{Vr(),nt.unsubscribe()},error:st=>{tt(st),nt.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}}reducer$6.Reducer=Reducer;function increment(_e,cr){return _e+1}function countStream(_e){return new Reducer(_e,increment,0)}reducer$6.countStream=countStream;function append$1(_e,cr){return[..._e,cr]}function asArray(_e){return new Reducer(_e,append$1,[])}reducer$6.asArray=asArray;function last$2(_e,cr){return cr}function lastValue(_e){return new Reducer(_e,last$2,void 0)}reducer$6.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(cr){this.producer=cr,this.updates=xstream_1$3.MemoryStream.createWithMemory(this.producer)}async waitFor(cr){const gr=typeof cr=="function"?cr:Cr=>Cr===cr;return new Promise((Cr,Vr)=>{const tt=this.updates.subscribe({next:nt=>{gr(nt)&&(Cr(nt),setTimeout(()=>tt.unsubscribe(),0))},complete:()=>{tt.unsubscribe(),Vr("Update stream completed without expected value")},error:nt=>{Vr(nt)}})})}}valueandupdates.ValueAndUpdates=ValueAndUpdates,function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(dt,kt,qt,ro){ro===void 0&&(ro=qt);var ht=Object.getOwnPropertyDescriptor(kt,qt);(!ht||("get"in ht?!kt.__esModule:ht.writable||ht.configurable))&&(ht={enumerable:!0,get:function(){return kt[qt]}}),Object.defineProperty(dt,ro,ht)}:function(dt,kt,qt,ro){ro===void 0&&(ro=qt),dt[ro]=kt[qt]}),gr=commonjsGlobal&&commonjsGlobal.__exportStar||function(dt,kt){for(var qt in dt)qt!=="default"&&!Object.prototype.hasOwnProperty.call(kt,qt)&&cr(kt,dt,qt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ValueAndUpdates=_e.toListPromise=_e.fromListPromise=_e.firstEvent=_e.dropDuplicates=_e.DefaultValueProducer=_e.concat=void 0;var Cr=concat$2;Object.defineProperty(_e,"concat",{enumerable:!0,get:function(){return Cr.concat}});var Vr=defaultvalueproducer;Object.defineProperty(_e,"DefaultValueProducer",{enumerable:!0,get:function(){return Vr.DefaultValueProducer}});var tt=dropduplicates;Object.defineProperty(_e,"dropDuplicates",{enumerable:!0,get:function(){return tt.dropDuplicates}});var nt=promise;Object.defineProperty(_e,"firstEvent",{enumerable:!0,get:function(){return nt.firstEvent}}),Object.defineProperty(_e,"fromListPromise",{enumerable:!0,get:function(){return nt.fromListPromise}}),Object.defineProperty(_e,"toListPromise",{enumerable:!0,get:function(){return nt.toListPromise}}),gr(reducer$6,_e);var st=valueandupdates;Object.defineProperty(_e,"ValueAndUpdates",{enumerable:!0,get:function(){return st.ValueAndUpdates}})}(build$4),Object.defineProperty(queryclient,"__esModule",{value:!0}),queryclient.QueryClient=void 0;const ics23_1=build$5,encoding_1$i=build$c,stream_1$2=build$4,utils_1$b=build$6;function checkAndParseOp(_e,cr,gr){if(_e.type!==cr)throw new Error(`Op expected to be ${cr}, got "${_e.type}`);if(!(0,utils_1$b.arrayContentEquals)(gr,_e.key))throw new Error(`Proven key different than queried key. Query: ${(0,encoding_1$i.toHex)(gr)} Proven: ${(0,encoding_1$i.toHex)(_e.key)}`);return ics23_1.ics23.CommitmentProof.decode(_e.data)}class QueryClient{static withExtensions(cr,...gr){const Cr=new QueryClient(cr),Vr=gr.map(tt=>tt(Cr));for(const tt of Vr){(0,utils_1$b.assert)((0,utils_1$b.isNonNullObject)(tt),"Extension must be a non-null object");for(const[nt,st]of Object.entries(tt)){(0,utils_1$b.assert)((0,utils_1$b.isNonNullObject)(st),`Module must be a non-null object. Found type ${typeof st} for module "${nt}".`);const dt=Cr[nt]||{};Cr[nt]={...dt,...st}}}return Cr}constructor(cr){this.tmClient=cr}async queryStoreVerified(cr,gr,Cr){const{height:Vr,proof:tt,key:nt,value:st}=await this.queryRawProof(cr,gr,Cr),dt=checkAndParseOp(tt.ops[0],"ics23:iavl",gr),kt=checkAndParseOp(tt.ops[1],"ics23:simple",(0,encoding_1$i.toAscii)(cr));(0,utils_1$b.assert)(kt.exist),(0,utils_1$b.assert)(kt.exist.value),!st||st.length===0?((0,utils_1$b.assert)(dt.nonexist),(0,ics23_1.verifyNonExistence)(dt.nonexist,ics23_1.iavlSpec,kt.exist.value,gr)):((0,utils_1$b.assert)(dt.exist),(0,utils_1$b.assert)(dt.exist.value),(0,ics23_1.verifyExistence)(dt.exist,ics23_1.iavlSpec,kt.exist.value,gr,st));const qt=await this.getNextHeader(Vr);return(0,ics23_1.verifyExistence)(kt.exist,ics23_1.tendermintSpec,qt.appHash,(0,encoding_1$i.toAscii)(cr),kt.exist.value),{key:nt,value:st,height:Vr}}async queryRawProof(cr,gr,Cr){const{key:Vr,value:tt,height:nt,proof:st,code:dt,log:kt}=await this.tmClient.abciQuery({path:`/store/${cr}/key`,data:gr,prove:!0,height:Cr});if(dt)throw new Error(`Query failed with (${dt}): ${kt}`);if(!(0,utils_1$b.arrayContentEquals)(gr,Vr))throw new Error(`Response key ${(0,encoding_1$i.toHex)(Vr)} doesn't match query key ${(0,encoding_1$i.toHex)(gr)}`);if(!nt)throw new Error("No query height returned");if(!st||st.ops.length!==2)throw new Error(`Expected 2 proof ops, got ${(st==null?void 0:st.ops.length)??0}. Are you using stargate?`);return checkAndParseOp(st.ops[0],"ics23:iavl",Vr),checkAndParseOp(st.ops[1],"ics23:simple",(0,encoding_1$i.toAscii)(cr)),{key:Vr,value:tt,height:nt,proof:{ops:[...st.ops]}}}async queryAbci(cr,gr,Cr){const Vr=await this.tmClient.abciQuery({path:cr,data:gr,prove:!1,height:Cr});if(Vr.code)throw new Error(`Query failed with (${Vr.code}): ${Vr.log}`);if(!Vr.height)throw new Error("No query height returned");return{value:Vr.value,height:Vr.height}}async getNextHeader(cr){if((0,utils_1$b.assertDefined)(cr),cr===0)throw new Error("Query returned height 0, cannot prove it");const gr=cr+1;let Cr,Vr;try{Vr=this.tmClient.subscribeNewBlockHeader()}catch{}if(Vr){const tt=await(0,stream_1$2.firstEvent)(Vr);tt.height===gr&&(Cr=tt)}for(;!Cr;){const tt=(await this.tmClient.blockchain(cr,gr)).blockMetas.map(nt=>nt.header).find(nt=>nt.height===gr);tt?Cr=tt:await(0,utils_1$b.sleep)(1e3)}return(0,utils_1$b.assert)(Cr.height===gr,"Got wrong header. This is a bug in the logic above."),Cr}}queryclient.QueryClient=QueryClient;var utils$s={},__importDefault$f=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(utils$s,"__esModule",{value:!0}),utils$s.decodeCosmosSdkDecFromProto=utils$s.longify=utils$s.createProtobufRpcClient=utils$s.createPagination=utils$s.toAccAddress=void 0;const encoding_1$h=build$c,math_1$9=build$b,pagination_1=pagination,long_1$b=__importDefault$f(long);function toAccAddress(_e){return(0,encoding_1$h.fromBech32)(_e).data}utils$s.toAccAddress=toAccAddress;function createPagination(_e){return _e?pagination_1.PageRequest.fromPartial({key:_e}):void 0}utils$s.createPagination=createPagination;function createProtobufRpcClient(_e){return{request:async(cr,gr,Cr)=>{const Vr=`/${cr}/${gr}`;return(await _e.queryAbci(Vr,Cr,void 0)).value}}}utils$s.createProtobufRpcClient=createProtobufRpcClient;function longify(_e){const cr=math_1$9.Uint64.fromString(_e.toString());return long_1$b.default.fromBytesBE([...cr.toBytesBigEndian()],!0)}utils$s.longify=longify;function decodeCosmosSdkDecFromProto(_e){const cr=typeof _e=="string"?_e:(0,encoding_1$h.fromAscii)(_e);return math_1$9.Decimal.fromAtomics(cr,18)}utils$s.decodeCosmosSdkDecFromProto=decodeCosmosSdkDecFromProto,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.longify=_e.decodeCosmosSdkDecFromProto=_e.createProtobufRpcClient=_e.createPagination=_e.QueryClient=void 0;var cr=queryclient;Object.defineProperty(_e,"QueryClient",{enumerable:!0,get:function(){return cr.QueryClient}});var gr=utils$s;Object.defineProperty(_e,"createPagination",{enumerable:!0,get:function(){return gr.createPagination}}),Object.defineProperty(_e,"createProtobufRpcClient",{enumerable:!0,get:function(){return gr.createProtobufRpcClient}}),Object.defineProperty(_e,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return gr.decodeCosmosSdkDecFromProto}}),Object.defineProperty(_e,"longify",{enumerable:!0,get:function(){return gr.longify}})}(queryclient$1),Object.defineProperty(queries$b,"__esModule",{value:!0}),queries$b.setupAuthExtension=void 0;const query_1$a=query$d,queryclient_1$c=queryclient$1;function setupAuthExtension(_e){const cr=(0,queryclient_1$c.createProtobufRpcClient)(_e),gr=new query_1$a.QueryClientImpl(cr);return{auth:{account:async Cr=>{const{account:Vr}=await gr.Account({address:Cr});return Vr??null}}}}queries$b.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$c={},authz={},timestamp={},__createBinding$e=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$e=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$e=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$e(cr,_e,gr);return __setModuleDefault$e(cr,_e),cr};Object.defineProperty(timestamp,"__esModule",{value:!0}),timestamp.Timestamp=timestamp.protobufPackage=void 0;const helpers_1$9=helpers,_m0$9=__importStar$e(minimal);timestamp.protobufPackage="google.protobuf";function createBaseTimestamp(){return{seconds:helpers_1$9.Long.ZERO,nanos:0}}timestamp.Timestamp={encode(_e,cr=_m0$9.Writer.create()){return _e.seconds.isZero()||cr.uint32(8).int64(_e.seconds),_e.nanos!==0&&cr.uint32(16).int32(_e.nanos),cr},decode(_e,cr){const gr=_e instanceof _m0$9.Reader?_e:new _m0$9.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseTimestamp();for(;gr.pos>>3){case 1:Vr.seconds=gr.int64();break;case 2:Vr.nanos=gr.int32();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{seconds:(0,helpers_1$9.isSet)(_e.seconds)?helpers_1$9.Long.fromValue(_e.seconds):helpers_1$9.Long.ZERO,nanos:(0,helpers_1$9.isSet)(_e.nanos)?Number(_e.nanos):0}},toJSON(_e){const cr={};return _e.seconds!==void 0&&(cr.seconds=(_e.seconds||helpers_1$9.Long.ZERO).toString()),_e.nanos!==void 0&&(cr.nanos=Math.round(_e.nanos)),cr},fromPartial(_e){const cr=createBaseTimestamp();return cr.seconds=_e.seconds!==void 0&&_e.seconds!==null?helpers_1$9.Long.fromValue(_e.seconds):helpers_1$9.Long.ZERO,cr.nanos=_e.nanos??0,cr}};var __createBinding$d=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$d=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$d=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$d(cr,_e,gr);return __setModuleDefault$d(cr,_e),cr};Object.defineProperty(authz,"__esModule",{value:!0}),authz.GrantQueueItem=authz.GrantAuthorization=authz.Grant=authz.GenericAuthorization=authz.protobufPackage=void 0;const any_1$1=any,timestamp_1$1=timestamp,_m0$8=__importStar$d(minimal),helpers_1$8=helpers;authz.protobufPackage="cosmos.authz.v1beta1";function createBaseGenericAuthorization(){return{msg:""}}authz.GenericAuthorization={encode(_e,cr=_m0$8.Writer.create()){return _e.msg!==""&&cr.uint32(10).string(_e.msg),cr},decode(_e,cr){const gr=_e instanceof _m0$8.Reader?_e:new _m0$8.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseGenericAuthorization();for(;gr.pos>>3){case 1:Vr.msg=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{msg:(0,helpers_1$8.isSet)(_e.msg)?String(_e.msg):""}},toJSON(_e){const cr={};return _e.msg!==void 0&&(cr.msg=_e.msg),cr},fromPartial(_e){const cr=createBaseGenericAuthorization();return cr.msg=_e.msg??"",cr}};function createBaseGrant(){return{authorization:void 0,expiration:void 0}}authz.Grant={encode(_e,cr=_m0$8.Writer.create()){return _e.authorization!==void 0&&any_1$1.Any.encode(_e.authorization,cr.uint32(10).fork()).ldelim(),_e.expiration!==void 0&×tamp_1$1.Timestamp.encode(_e.expiration,cr.uint32(18).fork()).ldelim(),cr},decode(_e,cr){const gr=_e instanceof _m0$8.Reader?_e:new _m0$8.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseGrant();for(;gr.pos>>3){case 1:Vr.authorization=any_1$1.Any.decode(gr,gr.uint32());break;case 2:Vr.expiration=timestamp_1$1.Timestamp.decode(gr,gr.uint32());break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{authorization:(0,helpers_1$8.isSet)(_e.authorization)?any_1$1.Any.fromJSON(_e.authorization):void 0,expiration:(0,helpers_1$8.isSet)(_e.expiration)?(0,helpers_1$8.fromJsonTimestamp)(_e.expiration):void 0}},toJSON(_e){const cr={};return _e.authorization!==void 0&&(cr.authorization=_e.authorization?any_1$1.Any.toJSON(_e.authorization):void 0),_e.expiration!==void 0&&(cr.expiration=(0,helpers_1$8.fromTimestamp)(_e.expiration).toISOString()),cr},fromPartial(_e){const cr=createBaseGrant();return cr.authorization=_e.authorization!==void 0&&_e.authorization!==null?any_1$1.Any.fromPartial(_e.authorization):void 0,cr.expiration=_e.expiration!==void 0&&_e.expiration!==null?timestamp_1$1.Timestamp.fromPartial(_e.expiration):void 0,cr}};function createBaseGrantAuthorization(){return{granter:"",grantee:"",authorization:void 0,expiration:void 0}}authz.GrantAuthorization={encode(_e,cr=_m0$8.Writer.create()){return _e.granter!==""&&cr.uint32(10).string(_e.granter),_e.grantee!==""&&cr.uint32(18).string(_e.grantee),_e.authorization!==void 0&&any_1$1.Any.encode(_e.authorization,cr.uint32(26).fork()).ldelim(),_e.expiration!==void 0&×tamp_1$1.Timestamp.encode(_e.expiration,cr.uint32(34).fork()).ldelim(),cr},decode(_e,cr){const gr=_e instanceof _m0$8.Reader?_e:new _m0$8.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseGrantAuthorization();for(;gr.pos>>3){case 1:Vr.granter=gr.string();break;case 2:Vr.grantee=gr.string();break;case 3:Vr.authorization=any_1$1.Any.decode(gr,gr.uint32());break;case 4:Vr.expiration=timestamp_1$1.Timestamp.decode(gr,gr.uint32());break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{granter:(0,helpers_1$8.isSet)(_e.granter)?String(_e.granter):"",grantee:(0,helpers_1$8.isSet)(_e.grantee)?String(_e.grantee):"",authorization:(0,helpers_1$8.isSet)(_e.authorization)?any_1$1.Any.fromJSON(_e.authorization):void 0,expiration:(0,helpers_1$8.isSet)(_e.expiration)?(0,helpers_1$8.fromJsonTimestamp)(_e.expiration):void 0}},toJSON(_e){const cr={};return _e.granter!==void 0&&(cr.granter=_e.granter),_e.grantee!==void 0&&(cr.grantee=_e.grantee),_e.authorization!==void 0&&(cr.authorization=_e.authorization?any_1$1.Any.toJSON(_e.authorization):void 0),_e.expiration!==void 0&&(cr.expiration=(0,helpers_1$8.fromTimestamp)(_e.expiration).toISOString()),cr},fromPartial(_e){const cr=createBaseGrantAuthorization();return cr.granter=_e.granter??"",cr.grantee=_e.grantee??"",cr.authorization=_e.authorization!==void 0&&_e.authorization!==null?any_1$1.Any.fromPartial(_e.authorization):void 0,cr.expiration=_e.expiration!==void 0&&_e.expiration!==null?timestamp_1$1.Timestamp.fromPartial(_e.expiration):void 0,cr}};function createBaseGrantQueueItem(){return{msgTypeUrls:[]}}authz.GrantQueueItem={encode(_e,cr=_m0$8.Writer.create()){for(const gr of _e.msgTypeUrls)cr.uint32(10).string(gr);return cr},decode(_e,cr){const gr=_e instanceof _m0$8.Reader?_e:new _m0$8.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseGrantQueueItem();for(;gr.pos>>3){case 1:Vr.msgTypeUrls.push(gr.string());break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{msgTypeUrls:Array.isArray(_e==null?void 0:_e.msgTypeUrls)?_e.msgTypeUrls.map(cr=>String(cr)):[]}},toJSON(_e){const cr={};return _e.msgTypeUrls?cr.msgTypeUrls=_e.msgTypeUrls.map(gr=>gr):cr.msgTypeUrls=[],cr},fromPartial(_e){var gr;const cr=createBaseGrantQueueItem();return cr.msgTypeUrls=((gr=_e.msgTypeUrls)==null?void 0:gr.map(Cr=>Cr))||[],cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,eo,Wt,St){St===void 0&&(St=Wt);var Ot=Object.getOwnPropertyDescriptor(eo,Wt);(!Ot||("get"in Ot?!eo.__esModule:Ot.writable||Ot.configurable))&&(Ot={enumerable:!0,get:function(){return eo[Wt]}}),Object.defineProperty(Nt,St,Ot)}:function(Nt,eo,Wt,St){St===void 0&&(St=Wt),Nt[St]=eo[Wt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,eo){Object.defineProperty(Nt,"default",{enumerable:!0,value:eo})}:function(Nt,eo){Nt.default=eo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var eo={};if(Nt!=null)for(var Wt in Nt)Wt!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Wt)&&cr(eo,Nt,Wt);return gr(eo,Nt),eo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgRevokeResponse=_e.MsgRevoke=_e.MsgGrantResponse=_e.MsgExec=_e.MsgExecResponse=_e.MsgGrant=_e.protobufPackage=void 0;const Vr=authz,tt=any,nt=Cr(minimal),st=helpers;_e.protobufPackage="cosmos.authz.v1beta1";function dt(){return{granter:"",grantee:"",grant:void 0}}_e.MsgGrant={encode(Nt,eo=nt.Writer.create()){return Nt.granter!==""&&eo.uint32(10).string(Nt.granter),Nt.grantee!==""&&eo.uint32(18).string(Nt.grantee),Nt.grant!==void 0&&Vr.Grant.encode(Nt.grant,eo.uint32(26).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=dt();for(;Wt.pos>>3){case 1:Ot.granter=Wt.string();break;case 2:Ot.grantee=Wt.string();break;case 3:Ot.grant=Vr.Grant.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{granter:(0,st.isSet)(Nt.granter)?String(Nt.granter):"",grantee:(0,st.isSet)(Nt.grantee)?String(Nt.grantee):"",grant:(0,st.isSet)(Nt.grant)?Vr.Grant.fromJSON(Nt.grant):void 0}},toJSON(Nt){const eo={};return Nt.granter!==void 0&&(eo.granter=Nt.granter),Nt.grantee!==void 0&&(eo.grantee=Nt.grantee),Nt.grant!==void 0&&(eo.grant=Nt.grant?Vr.Grant.toJSON(Nt.grant):void 0),eo},fromPartial(Nt){const eo=dt();return eo.granter=Nt.granter??"",eo.grantee=Nt.grantee??"",eo.grant=Nt.grant!==void 0&&Nt.grant!==null?Vr.Grant.fromPartial(Nt.grant):void 0,eo}};function kt(){return{results:[]}}_e.MsgExecResponse={encode(Nt,eo=nt.Writer.create()){for(const Wt of Nt.results)eo.uint32(10).bytes(Wt);return eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=kt();for(;Wt.pos>>3){case 1:Ot.results.push(Wt.bytes());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{results:Array.isArray(Nt==null?void 0:Nt.results)?Nt.results.map(eo=>(0,st.bytesFromBase64)(eo)):[]}},toJSON(Nt){const eo={};return Nt.results?eo.results=Nt.results.map(Wt=>(0,st.base64FromBytes)(Wt!==void 0?Wt:new Uint8Array)):eo.results=[],eo},fromPartial(Nt){var Wt;const eo=kt();return eo.results=((Wt=Nt.results)==null?void 0:Wt.map(St=>St))||[],eo}};function qt(){return{grantee:"",msgs:[]}}_e.MsgExec={encode(Nt,eo=nt.Writer.create()){Nt.grantee!==""&&eo.uint32(10).string(Nt.grantee);for(const Wt of Nt.msgs)tt.Any.encode(Wt,eo.uint32(18).fork()).ldelim();return eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=qt();for(;Wt.pos>>3){case 1:Ot.grantee=Wt.string();break;case 2:Ot.msgs.push(tt.Any.decode(Wt,Wt.uint32()));break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{grantee:(0,st.isSet)(Nt.grantee)?String(Nt.grantee):"",msgs:Array.isArray(Nt==null?void 0:Nt.msgs)?Nt.msgs.map(eo=>tt.Any.fromJSON(eo)):[]}},toJSON(Nt){const eo={};return Nt.grantee!==void 0&&(eo.grantee=Nt.grantee),Nt.msgs?eo.msgs=Nt.msgs.map(Wt=>Wt?tt.Any.toJSON(Wt):void 0):eo.msgs=[],eo},fromPartial(Nt){var Wt;const eo=qt();return eo.grantee=Nt.grantee??"",eo.msgs=((Wt=Nt.msgs)==null?void 0:Wt.map(St=>tt.Any.fromPartial(St)))||[],eo}};function ro(){return{}}_e.MsgGrantResponse={encode(Nt,eo=nt.Writer.create()){return eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ro();for(;Wt.pos>>3){default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return ro()}};function ht(){return{granter:"",grantee:"",msgTypeUrl:""}}_e.MsgRevoke={encode(Nt,eo=nt.Writer.create()){return Nt.granter!==""&&eo.uint32(10).string(Nt.granter),Nt.grantee!==""&&eo.uint32(18).string(Nt.grantee),Nt.msgTypeUrl!==""&&eo.uint32(26).string(Nt.msgTypeUrl),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ht();for(;Wt.pos>>3){case 1:Ot.granter=Wt.string();break;case 2:Ot.grantee=Wt.string();break;case 3:Ot.msgTypeUrl=Wt.string();break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{granter:(0,st.isSet)(Nt.granter)?String(Nt.granter):"",grantee:(0,st.isSet)(Nt.grantee)?String(Nt.grantee):"",msgTypeUrl:(0,st.isSet)(Nt.msgTypeUrl)?String(Nt.msgTypeUrl):""}},toJSON(Nt){const eo={};return Nt.granter!==void 0&&(eo.granter=Nt.granter),Nt.grantee!==void 0&&(eo.grantee=Nt.grantee),Nt.msgTypeUrl!==void 0&&(eo.msgTypeUrl=Nt.msgTypeUrl),eo},fromPartial(Nt){const eo=ht();return eo.granter=Nt.granter??"",eo.grantee=Nt.grantee??"",eo.msgTypeUrl=Nt.msgTypeUrl??"",eo}};function po(){return{}}_e.MsgRevokeResponse={encode(Nt,eo=nt.Writer.create()){return eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=po();for(;Wt.pos>>3){default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return po()}};class no{constructor(eo){this.rpc=eo,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(eo){const Wt=_e.MsgGrant.encode(eo).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",Wt).then(St=>_e.MsgGrantResponse.decode(new nt.Reader(St)))}Exec(eo){const Wt=_e.MsgExec.encode(eo).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",Wt).then(St=>_e.MsgExecResponse.decode(new nt.Reader(St)))}Revoke(eo){const Wt=_e.MsgRevoke.encode(eo).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",Wt).then(St=>_e.MsgRevokeResponse.decode(new nt.Reader(St)))}}_e.MsgClientImpl=no}(tx$c),Object.defineProperty(messages$a,"__esModule",{value:!0}),messages$a.authzTypes=void 0;const tx_1$d=tx$c;messages$a.authzTypes=[["/cosmos.authz.v1beta1.MsgExec",tx_1$d.MsgExec],["/cosmos.authz.v1beta1.MsgGrant",tx_1$d.MsgGrant],["/cosmos.authz.v1beta1.MsgRevoke",tx_1$d.MsgRevoke]];var queries$a={},query$c={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,eo,Wt,St){St===void 0&&(St=Wt);var Ot=Object.getOwnPropertyDescriptor(eo,Wt);(!Ot||("get"in Ot?!eo.__esModule:Ot.writable||Ot.configurable))&&(Ot={enumerable:!0,get:function(){return eo[Wt]}}),Object.defineProperty(Nt,St,Ot)}:function(Nt,eo,Wt,St){St===void 0&&(St=Wt),Nt[St]=eo[Wt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,eo){Object.defineProperty(Nt,"default",{enumerable:!0,value:eo})}:function(Nt,eo){Nt.default=eo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var eo={};if(Nt!=null)for(var Wt in Nt)Wt!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Wt)&&cr(eo,Nt,Wt);return gr(eo,Nt),eo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryGranteeGrantsResponse=_e.QueryGranteeGrantsRequest=_e.QueryGranterGrantsResponse=_e.QueryGranterGrantsRequest=_e.QueryGrantsResponse=_e.QueryGrantsRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=authz,nt=Cr(minimal),st=helpers;_e.protobufPackage="cosmos.authz.v1beta1";function dt(){return{granter:"",grantee:"",msgTypeUrl:"",pagination:void 0}}_e.QueryGrantsRequest={encode(Nt,eo=nt.Writer.create()){return Nt.granter!==""&&eo.uint32(10).string(Nt.granter),Nt.grantee!==""&&eo.uint32(18).string(Nt.grantee),Nt.msgTypeUrl!==""&&eo.uint32(26).string(Nt.msgTypeUrl),Nt.pagination!==void 0&&Vr.PageRequest.encode(Nt.pagination,eo.uint32(34).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=dt();for(;Wt.pos>>3){case 1:Ot.granter=Wt.string();break;case 2:Ot.grantee=Wt.string();break;case 3:Ot.msgTypeUrl=Wt.string();break;case 4:Ot.pagination=Vr.PageRequest.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{granter:(0,st.isSet)(Nt.granter)?String(Nt.granter):"",grantee:(0,st.isSet)(Nt.grantee)?String(Nt.grantee):"",msgTypeUrl:(0,st.isSet)(Nt.msgTypeUrl)?String(Nt.msgTypeUrl):"",pagination:(0,st.isSet)(Nt.pagination)?Vr.PageRequest.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.granter!==void 0&&(eo.granter=Nt.granter),Nt.grantee!==void 0&&(eo.grantee=Nt.grantee),Nt.msgTypeUrl!==void 0&&(eo.msgTypeUrl=Nt.msgTypeUrl),Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageRequest.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){const eo=dt();return eo.granter=Nt.granter??"",eo.grantee=Nt.grantee??"",eo.msgTypeUrl=Nt.msgTypeUrl??"",eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageRequest.fromPartial(Nt.pagination):void 0,eo}};function kt(){return{grants:[],pagination:void 0}}_e.QueryGrantsResponse={encode(Nt,eo=nt.Writer.create()){for(const Wt of Nt.grants)tt.Grant.encode(Wt,eo.uint32(10).fork()).ldelim();return Nt.pagination!==void 0&&Vr.PageResponse.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=kt();for(;Wt.pos>>3){case 1:Ot.grants.push(tt.Grant.decode(Wt,Wt.uint32()));break;case 2:Ot.pagination=Vr.PageResponse.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{grants:Array.isArray(Nt==null?void 0:Nt.grants)?Nt.grants.map(eo=>tt.Grant.fromJSON(eo)):[],pagination:(0,st.isSet)(Nt.pagination)?Vr.PageResponse.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.grants?eo.grants=Nt.grants.map(Wt=>Wt?tt.Grant.toJSON(Wt):void 0):eo.grants=[],Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageResponse.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){var Wt;const eo=kt();return eo.grants=((Wt=Nt.grants)==null?void 0:Wt.map(St=>tt.Grant.fromPartial(St)))||[],eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageResponse.fromPartial(Nt.pagination):void 0,eo}};function qt(){return{granter:"",pagination:void 0}}_e.QueryGranterGrantsRequest={encode(Nt,eo=nt.Writer.create()){return Nt.granter!==""&&eo.uint32(10).string(Nt.granter),Nt.pagination!==void 0&&Vr.PageRequest.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=qt();for(;Wt.pos>>3){case 1:Ot.granter=Wt.string();break;case 2:Ot.pagination=Vr.PageRequest.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{granter:(0,st.isSet)(Nt.granter)?String(Nt.granter):"",pagination:(0,st.isSet)(Nt.pagination)?Vr.PageRequest.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.granter!==void 0&&(eo.granter=Nt.granter),Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageRequest.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){const eo=qt();return eo.granter=Nt.granter??"",eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageRequest.fromPartial(Nt.pagination):void 0,eo}};function ro(){return{grants:[],pagination:void 0}}_e.QueryGranterGrantsResponse={encode(Nt,eo=nt.Writer.create()){for(const Wt of Nt.grants)tt.GrantAuthorization.encode(Wt,eo.uint32(10).fork()).ldelim();return Nt.pagination!==void 0&&Vr.PageResponse.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ro();for(;Wt.pos>>3){case 1:Ot.grants.push(tt.GrantAuthorization.decode(Wt,Wt.uint32()));break;case 2:Ot.pagination=Vr.PageResponse.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{grants:Array.isArray(Nt==null?void 0:Nt.grants)?Nt.grants.map(eo=>tt.GrantAuthorization.fromJSON(eo)):[],pagination:(0,st.isSet)(Nt.pagination)?Vr.PageResponse.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.grants?eo.grants=Nt.grants.map(Wt=>Wt?tt.GrantAuthorization.toJSON(Wt):void 0):eo.grants=[],Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageResponse.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){var Wt;const eo=ro();return eo.grants=((Wt=Nt.grants)==null?void 0:Wt.map(St=>tt.GrantAuthorization.fromPartial(St)))||[],eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageResponse.fromPartial(Nt.pagination):void 0,eo}};function ht(){return{grantee:"",pagination:void 0}}_e.QueryGranteeGrantsRequest={encode(Nt,eo=nt.Writer.create()){return Nt.grantee!==""&&eo.uint32(10).string(Nt.grantee),Nt.pagination!==void 0&&Vr.PageRequest.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ht();for(;Wt.pos>>3){case 1:Ot.grantee=Wt.string();break;case 2:Ot.pagination=Vr.PageRequest.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{grantee:(0,st.isSet)(Nt.grantee)?String(Nt.grantee):"",pagination:(0,st.isSet)(Nt.pagination)?Vr.PageRequest.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.grantee!==void 0&&(eo.grantee=Nt.grantee),Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageRequest.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){const eo=ht();return eo.grantee=Nt.grantee??"",eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageRequest.fromPartial(Nt.pagination):void 0,eo}};function po(){return{grants:[],pagination:void 0}}_e.QueryGranteeGrantsResponse={encode(Nt,eo=nt.Writer.create()){for(const Wt of Nt.grants)tt.GrantAuthorization.encode(Wt,eo.uint32(10).fork()).ldelim();return Nt.pagination!==void 0&&Vr.PageResponse.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=po();for(;Wt.pos>>3){case 1:Ot.grants.push(tt.GrantAuthorization.decode(Wt,Wt.uint32()));break;case 2:Ot.pagination=Vr.PageResponse.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{grants:Array.isArray(Nt==null?void 0:Nt.grants)?Nt.grants.map(eo=>tt.GrantAuthorization.fromJSON(eo)):[],pagination:(0,st.isSet)(Nt.pagination)?Vr.PageResponse.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.grants?eo.grants=Nt.grants.map(Wt=>Wt?tt.GrantAuthorization.toJSON(Wt):void 0):eo.grants=[],Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageResponse.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){var Wt;const eo=po();return eo.grants=((Wt=Nt.grants)==null?void 0:Wt.map(St=>tt.GrantAuthorization.fromPartial(St)))||[],eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageResponse.fromPartial(Nt.pagination):void 0,eo}};class no{constructor(eo){this.rpc=eo,this.Grants=this.Grants.bind(this),this.GranterGrants=this.GranterGrants.bind(this),this.GranteeGrants=this.GranteeGrants.bind(this)}Grants(eo){const Wt=_e.QueryGrantsRequest.encode(eo).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","Grants",Wt).then(St=>_e.QueryGrantsResponse.decode(new nt.Reader(St)))}GranterGrants(eo){const Wt=_e.QueryGranterGrantsRequest.encode(eo).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranterGrants",Wt).then(St=>_e.QueryGranterGrantsResponse.decode(new nt.Reader(St)))}GranteeGrants(eo){const Wt=_e.QueryGranteeGrantsRequest.encode(eo).finish();return this.rpc.request("cosmos.authz.v1beta1.Query","GranteeGrants",Wt).then(St=>_e.QueryGranteeGrantsResponse.decode(new nt.Reader(St)))}}_e.QueryClientImpl=no})(query$c),Object.defineProperty(queries$a,"__esModule",{value:!0}),queries$a.setupAuthzExtension=void 0;const query_1$9=query$c,queryclient_1$b=queryclient$1;function setupAuthzExtension(_e){const cr=(0,queryclient_1$b.createProtobufRpcClient)(_e),gr=new query_1$9.QueryClientImpl(cr);return{authz:{grants:async(Cr,Vr,tt,nt)=>await gr.Grants({granter:Cr,grantee:Vr,msgTypeUrl:tt,pagination:(0,queryclient_1$b.createPagination)(nt)}),granteeGrants:async(Cr,Vr)=>await gr.GranteeGrants({grantee:Cr,pagination:(0,queryclient_1$b.createPagination)(Vr)}),granterGrants:async(Cr,Vr)=>await gr.GranterGrants({granter:Cr,pagination:(0,queryclient_1$b.createPagination)(Vr)})}}}queries$a.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(_e){return _e.type==="cosmos-sdk/MsgSend"}aminomessages$b.isAminoMsgSend=isAminoMsgSend;function isAminoMsgMultiSend(_e){return _e.type==="cosmos-sdk/MsgMultiSend"}aminomessages$b.isAminoMsgMultiSend=isAminoMsgMultiSend;function createBankAminoConverters(){return{"/cosmos.bank.v1beta1.MsgSend":{aminoType:"cosmos-sdk/MsgSend",toAmino:({fromAddress:_e,toAddress:cr,amount:gr})=>({from_address:_e,to_address:cr,amount:[...gr]}),fromAmino:({from_address:_e,to_address:cr,amount:gr})=>({fromAddress:_e,toAddress:cr,amount:[...gr]})},"/cosmos.bank.v1beta1.MsgMultiSend":{aminoType:"cosmos-sdk/MsgMultiSend",toAmino:({inputs:_e,outputs:cr})=>({inputs:_e.map(gr=>({address:gr.address,coins:[...gr.coins]})),outputs:cr.map(gr=>({address:gr.address,coins:[...gr.coins]}))}),fromAmino:({inputs:_e,outputs:cr})=>({inputs:_e.map(gr=>({address:gr.address,coins:[...gr.coins]})),outputs:cr.map(gr=>({address:gr.address,coins:[...gr.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$c=tx$d;messages$9.bankTypes=[["/cosmos.bank.v1beta1.MsgMultiSend",tx_1$c.MsgMultiSend],["/cosmos.bank.v1beta1.MsgSend",tx_1$c.MsgSend]];function isMsgSendEncodeObject(_e){return _e.typeUrl==="/cosmos.bank.v1beta1.MsgSend"}messages$9.isMsgSendEncodeObject=isMsgSendEncodeObject;var queries$9={},query$b={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(co,mo,Bo,So){So===void 0&&(So=Bo);var Tt=Object.getOwnPropertyDescriptor(mo,Bo);(!Tt||("get"in Tt?!mo.__esModule:Tt.writable||Tt.configurable))&&(Tt={enumerable:!0,get:function(){return mo[Bo]}}),Object.defineProperty(co,So,Tt)}:function(co,mo,Bo,So){So===void 0&&(So=Bo),co[So]=mo[Bo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(co,mo){Object.defineProperty(co,"default",{enumerable:!0,value:mo})}:function(co,mo){co.default=mo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(co){if(co&&co.__esModule)return co;var mo={};if(co!=null)for(var Bo in co)Bo!=="default"&&Object.prototype.hasOwnProperty.call(co,Bo)&&cr(mo,co,Bo);return gr(mo,co),mo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QuerySendEnabledResponse=_e.QuerySendEnabledRequest=_e.QueryDenomOwnersResponse=_e.DenomOwner=_e.QueryDenomOwnersRequest=_e.QueryDenomMetadataResponse=_e.QueryDenomMetadataRequest=_e.QueryDenomsMetadataResponse=_e.QueryDenomsMetadataRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.QuerySupplyOfResponse=_e.QuerySupplyOfRequest=_e.QueryTotalSupplyResponse=_e.QueryTotalSupplyRequest=_e.QuerySpendableBalanceByDenomResponse=_e.QuerySpendableBalanceByDenomRequest=_e.QuerySpendableBalancesResponse=_e.QuerySpendableBalancesRequest=_e.QueryAllBalancesResponse=_e.QueryAllBalancesRequest=_e.QueryBalanceResponse=_e.QueryBalanceRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=coin$1,nt=bank,st=Cr(minimal),dt=helpers;_e.protobufPackage="cosmos.bank.v1beta1";function kt(){return{address:"",denom:""}}_e.QueryBalanceRequest={encode(co,mo=st.Writer.create()){return co.address!==""&&mo.uint32(10).string(co.address),co.denom!==""&&mo.uint32(18).string(co.denom),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=kt();for(;Bo.pos>>3){case 1:Tt.address=Bo.string();break;case 2:Tt.denom=Bo.string();break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{address:(0,dt.isSet)(co.address)?String(co.address):"",denom:(0,dt.isSet)(co.denom)?String(co.denom):""}},toJSON(co){const mo={};return co.address!==void 0&&(mo.address=co.address),co.denom!==void 0&&(mo.denom=co.denom),mo},fromPartial(co){const mo=kt();return mo.address=co.address??"",mo.denom=co.denom??"",mo}};function qt(){return{balance:void 0}}_e.QueryBalanceResponse={encode(co,mo=st.Writer.create()){return co.balance!==void 0&&tt.Coin.encode(co.balance,mo.uint32(10).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=qt();for(;Bo.pos>>3){case 1:Tt.balance=tt.Coin.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{balance:(0,dt.isSet)(co.balance)?tt.Coin.fromJSON(co.balance):void 0}},toJSON(co){const mo={};return co.balance!==void 0&&(mo.balance=co.balance?tt.Coin.toJSON(co.balance):void 0),mo},fromPartial(co){const mo=qt();return mo.balance=co.balance!==void 0&&co.balance!==null?tt.Coin.fromPartial(co.balance):void 0,mo}};function ro(){return{address:"",pagination:void 0}}_e.QueryAllBalancesRequest={encode(co,mo=st.Writer.create()){return co.address!==""&&mo.uint32(10).string(co.address),co.pagination!==void 0&&Vr.PageRequest.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=ro();for(;Bo.pos>>3){case 1:Tt.address=Bo.string();break;case 2:Tt.pagination=Vr.PageRequest.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{address:(0,dt.isSet)(co.address)?String(co.address):"",pagination:(0,dt.isSet)(co.pagination)?Vr.PageRequest.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.address!==void 0&&(mo.address=co.address),co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageRequest.toJSON(co.pagination):void 0),mo},fromPartial(co){const mo=ro();return mo.address=co.address??"",mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageRequest.fromPartial(co.pagination):void 0,mo}};function ht(){return{balances:[],pagination:void 0}}_e.QueryAllBalancesResponse={encode(co,mo=st.Writer.create()){for(const Bo of co.balances)tt.Coin.encode(Bo,mo.uint32(10).fork()).ldelim();return co.pagination!==void 0&&Vr.PageResponse.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=ht();for(;Bo.pos>>3){case 1:Tt.balances.push(tt.Coin.decode(Bo,Bo.uint32()));break;case 2:Tt.pagination=Vr.PageResponse.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{balances:Array.isArray(co==null?void 0:co.balances)?co.balances.map(mo=>tt.Coin.fromJSON(mo)):[],pagination:(0,dt.isSet)(co.pagination)?Vr.PageResponse.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.balances?mo.balances=co.balances.map(Bo=>Bo?tt.Coin.toJSON(Bo):void 0):mo.balances=[],co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageResponse.toJSON(co.pagination):void 0),mo},fromPartial(co){var Bo;const mo=ht();return mo.balances=((Bo=co.balances)==null?void 0:Bo.map(So=>tt.Coin.fromPartial(So)))||[],mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageResponse.fromPartial(co.pagination):void 0,mo}};function po(){return{address:"",pagination:void 0}}_e.QuerySpendableBalancesRequest={encode(co,mo=st.Writer.create()){return co.address!==""&&mo.uint32(10).string(co.address),co.pagination!==void 0&&Vr.PageRequest.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=po();for(;Bo.pos>>3){case 1:Tt.address=Bo.string();break;case 2:Tt.pagination=Vr.PageRequest.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{address:(0,dt.isSet)(co.address)?String(co.address):"",pagination:(0,dt.isSet)(co.pagination)?Vr.PageRequest.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.address!==void 0&&(mo.address=co.address),co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageRequest.toJSON(co.pagination):void 0),mo},fromPartial(co){const mo=po();return mo.address=co.address??"",mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageRequest.fromPartial(co.pagination):void 0,mo}};function no(){return{balances:[],pagination:void 0}}_e.QuerySpendableBalancesResponse={encode(co,mo=st.Writer.create()){for(const Bo of co.balances)tt.Coin.encode(Bo,mo.uint32(10).fork()).ldelim();return co.pagination!==void 0&&Vr.PageResponse.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=no();for(;Bo.pos>>3){case 1:Tt.balances.push(tt.Coin.decode(Bo,Bo.uint32()));break;case 2:Tt.pagination=Vr.PageResponse.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{balances:Array.isArray(co==null?void 0:co.balances)?co.balances.map(mo=>tt.Coin.fromJSON(mo)):[],pagination:(0,dt.isSet)(co.pagination)?Vr.PageResponse.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.balances?mo.balances=co.balances.map(Bo=>Bo?tt.Coin.toJSON(Bo):void 0):mo.balances=[],co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageResponse.toJSON(co.pagination):void 0),mo},fromPartial(co){var Bo;const mo=no();return mo.balances=((Bo=co.balances)==null?void 0:Bo.map(So=>tt.Coin.fromPartial(So)))||[],mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageResponse.fromPartial(co.pagination):void 0,mo}};function Nt(){return{address:"",denom:""}}_e.QuerySpendableBalanceByDenomRequest={encode(co,mo=st.Writer.create()){return co.address!==""&&mo.uint32(10).string(co.address),co.denom!==""&&mo.uint32(18).string(co.denom),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=Nt();for(;Bo.pos>>3){case 1:Tt.address=Bo.string();break;case 2:Tt.denom=Bo.string();break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{address:(0,dt.isSet)(co.address)?String(co.address):"",denom:(0,dt.isSet)(co.denom)?String(co.denom):""}},toJSON(co){const mo={};return co.address!==void 0&&(mo.address=co.address),co.denom!==void 0&&(mo.denom=co.denom),mo},fromPartial(co){const mo=Nt();return mo.address=co.address??"",mo.denom=co.denom??"",mo}};function eo(){return{balance:void 0}}_e.QuerySpendableBalanceByDenomResponse={encode(co,mo=st.Writer.create()){return co.balance!==void 0&&tt.Coin.encode(co.balance,mo.uint32(10).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=eo();for(;Bo.pos>>3){case 1:Tt.balance=tt.Coin.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{balance:(0,dt.isSet)(co.balance)?tt.Coin.fromJSON(co.balance):void 0}},toJSON(co){const mo={};return co.balance!==void 0&&(mo.balance=co.balance?tt.Coin.toJSON(co.balance):void 0),mo},fromPartial(co){const mo=eo();return mo.balance=co.balance!==void 0&&co.balance!==null?tt.Coin.fromPartial(co.balance):void 0,mo}};function Wt(){return{pagination:void 0}}_e.QueryTotalSupplyRequest={encode(co,mo=st.Writer.create()){return co.pagination!==void 0&&Vr.PageRequest.encode(co.pagination,mo.uint32(10).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=Wt();for(;Bo.pos>>3){case 1:Tt.pagination=Vr.PageRequest.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{pagination:(0,dt.isSet)(co.pagination)?Vr.PageRequest.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageRequest.toJSON(co.pagination):void 0),mo},fromPartial(co){const mo=Wt();return mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageRequest.fromPartial(co.pagination):void 0,mo}};function St(){return{supply:[],pagination:void 0}}_e.QueryTotalSupplyResponse={encode(co,mo=st.Writer.create()){for(const Bo of co.supply)tt.Coin.encode(Bo,mo.uint32(10).fork()).ldelim();return co.pagination!==void 0&&Vr.PageResponse.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=St();for(;Bo.pos>>3){case 1:Tt.supply.push(tt.Coin.decode(Bo,Bo.uint32()));break;case 2:Tt.pagination=Vr.PageResponse.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{supply:Array.isArray(co==null?void 0:co.supply)?co.supply.map(mo=>tt.Coin.fromJSON(mo)):[],pagination:(0,dt.isSet)(co.pagination)?Vr.PageResponse.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.supply?mo.supply=co.supply.map(Bo=>Bo?tt.Coin.toJSON(Bo):void 0):mo.supply=[],co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageResponse.toJSON(co.pagination):void 0),mo},fromPartial(co){var Bo;const mo=St();return mo.supply=((Bo=co.supply)==null?void 0:Bo.map(So=>tt.Coin.fromPartial(So)))||[],mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageResponse.fromPartial(co.pagination):void 0,mo}};function Ot(){return{denom:""}}_e.QuerySupplyOfRequest={encode(co,mo=st.Writer.create()){return co.denom!==""&&mo.uint32(10).string(co.denom),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=Ot();for(;Bo.pos>>3){case 1:Tt.denom=Bo.string();break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{denom:(0,dt.isSet)(co.denom)?String(co.denom):""}},toJSON(co){const mo={};return co.denom!==void 0&&(mo.denom=co.denom),mo},fromPartial(co){const mo=Ot();return mo.denom=co.denom??"",mo}};function uo(){return{amount:void 0}}_e.QuerySupplyOfResponse={encode(co,mo=st.Writer.create()){return co.amount!==void 0&&tt.Coin.encode(co.amount,mo.uint32(10).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=uo();for(;Bo.pos>>3){case 1:Tt.amount=tt.Coin.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{amount:(0,dt.isSet)(co.amount)?tt.Coin.fromJSON(co.amount):void 0}},toJSON(co){const mo={};return co.amount!==void 0&&(mo.amount=co.amount?tt.Coin.toJSON(co.amount):void 0),mo},fromPartial(co){const mo=uo();return mo.amount=co.amount!==void 0&&co.amount!==null?tt.Coin.fromPartial(co.amount):void 0,mo}};function go(){return{}}_e.QueryParamsRequest={encode(co,mo=st.Writer.create()){return mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=go();for(;Bo.pos>>3){default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{}},toJSON(co){return{}},fromPartial(co){return go()}};function bo(){return{params:void 0}}_e.QueryParamsResponse={encode(co,mo=st.Writer.create()){return co.params!==void 0&&nt.Params.encode(co.params,mo.uint32(10).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=bo();for(;Bo.pos>>3){case 1:Tt.params=nt.Params.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{params:(0,dt.isSet)(co.params)?nt.Params.fromJSON(co.params):void 0}},toJSON(co){const mo={};return co.params!==void 0&&(mo.params=co.params?nt.Params.toJSON(co.params):void 0),mo},fromPartial(co){const mo=bo();return mo.params=co.params!==void 0&&co.params!==null?nt.Params.fromPartial(co.params):void 0,mo}};function oo(){return{pagination:void 0}}_e.QueryDenomsMetadataRequest={encode(co,mo=st.Writer.create()){return co.pagination!==void 0&&Vr.PageRequest.encode(co.pagination,mo.uint32(10).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=oo();for(;Bo.pos>>3){case 1:Tt.pagination=Vr.PageRequest.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{pagination:(0,dt.isSet)(co.pagination)?Vr.PageRequest.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageRequest.toJSON(co.pagination):void 0),mo},fromPartial(co){const mo=oo();return mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageRequest.fromPartial(co.pagination):void 0,mo}};function Ro(){return{metadatas:[],pagination:void 0}}_e.QueryDenomsMetadataResponse={encode(co,mo=st.Writer.create()){for(const Bo of co.metadatas)nt.Metadata.encode(Bo,mo.uint32(10).fork()).ldelim();return co.pagination!==void 0&&Vr.PageResponse.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=Ro();for(;Bo.pos>>3){case 1:Tt.metadatas.push(nt.Metadata.decode(Bo,Bo.uint32()));break;case 2:Tt.pagination=Vr.PageResponse.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{metadatas:Array.isArray(co==null?void 0:co.metadatas)?co.metadatas.map(mo=>nt.Metadata.fromJSON(mo)):[],pagination:(0,dt.isSet)(co.pagination)?Vr.PageResponse.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.metadatas?mo.metadatas=co.metadatas.map(Bo=>Bo?nt.Metadata.toJSON(Bo):void 0):mo.metadatas=[],co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageResponse.toJSON(co.pagination):void 0),mo},fromPartial(co){var Bo;const mo=Ro();return mo.metadatas=((Bo=co.metadatas)==null?void 0:Bo.map(So=>nt.Metadata.fromPartial(So)))||[],mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageResponse.fromPartial(co.pagination):void 0,mo}};function pt(){return{denom:""}}_e.QueryDenomMetadataRequest={encode(co,mo=st.Writer.create()){return co.denom!==""&&mo.uint32(10).string(co.denom),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=pt();for(;Bo.pos>>3){case 1:Tt.denom=Bo.string();break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{denom:(0,dt.isSet)(co.denom)?String(co.denom):""}},toJSON(co){const mo={};return co.denom!==void 0&&(mo.denom=co.denom),mo},fromPartial(co){const mo=pt();return mo.denom=co.denom??"",mo}};function lo(){return{metadata:void 0}}_e.QueryDenomMetadataResponse={encode(co,mo=st.Writer.create()){return co.metadata!==void 0&&nt.Metadata.encode(co.metadata,mo.uint32(10).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=lo();for(;Bo.pos>>3){case 1:Tt.metadata=nt.Metadata.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{metadata:(0,dt.isSet)(co.metadata)?nt.Metadata.fromJSON(co.metadata):void 0}},toJSON(co){const mo={};return co.metadata!==void 0&&(mo.metadata=co.metadata?nt.Metadata.toJSON(co.metadata):void 0),mo},fromPartial(co){const mo=lo();return mo.metadata=co.metadata!==void 0&&co.metadata!==null?nt.Metadata.fromPartial(co.metadata):void 0,mo}};function so(){return{denom:"",pagination:void 0}}_e.QueryDenomOwnersRequest={encode(co,mo=st.Writer.create()){return co.denom!==""&&mo.uint32(10).string(co.denom),co.pagination!==void 0&&Vr.PageRequest.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=so();for(;Bo.pos>>3){case 1:Tt.denom=Bo.string();break;case 2:Tt.pagination=Vr.PageRequest.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{denom:(0,dt.isSet)(co.denom)?String(co.denom):"",pagination:(0,dt.isSet)(co.pagination)?Vr.PageRequest.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.denom!==void 0&&(mo.denom=co.denom),co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageRequest.toJSON(co.pagination):void 0),mo},fromPartial(co){const mo=so();return mo.denom=co.denom??"",mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageRequest.fromPartial(co.pagination):void 0,mo}};function wo(){return{address:"",balance:void 0}}_e.DenomOwner={encode(co,mo=st.Writer.create()){return co.address!==""&&mo.uint32(10).string(co.address),co.balance!==void 0&&tt.Coin.encode(co.balance,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=wo();for(;Bo.pos>>3){case 1:Tt.address=Bo.string();break;case 2:Tt.balance=tt.Coin.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{address:(0,dt.isSet)(co.address)?String(co.address):"",balance:(0,dt.isSet)(co.balance)?tt.Coin.fromJSON(co.balance):void 0}},toJSON(co){const mo={};return co.address!==void 0&&(mo.address=co.address),co.balance!==void 0&&(mo.balance=co.balance?tt.Coin.toJSON(co.balance):void 0),mo},fromPartial(co){const mo=wo();return mo.address=co.address??"",mo.balance=co.balance!==void 0&&co.balance!==null?tt.Coin.fromPartial(co.balance):void 0,mo}};function xt(){return{denomOwners:[],pagination:void 0}}_e.QueryDenomOwnersResponse={encode(co,mo=st.Writer.create()){for(const Bo of co.denomOwners)_e.DenomOwner.encode(Bo,mo.uint32(10).fork()).ldelim();return co.pagination!==void 0&&Vr.PageResponse.encode(co.pagination,mo.uint32(18).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=xt();for(;Bo.pos>>3){case 1:Tt.denomOwners.push(_e.DenomOwner.decode(Bo,Bo.uint32()));break;case 2:Tt.pagination=Vr.PageResponse.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{denomOwners:Array.isArray(co==null?void 0:co.denomOwners)?co.denomOwners.map(mo=>_e.DenomOwner.fromJSON(mo)):[],pagination:(0,dt.isSet)(co.pagination)?Vr.PageResponse.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.denomOwners?mo.denomOwners=co.denomOwners.map(Bo=>Bo?_e.DenomOwner.toJSON(Bo):void 0):mo.denomOwners=[],co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageResponse.toJSON(co.pagination):void 0),mo},fromPartial(co){var Bo;const mo=xt();return mo.denomOwners=((Bo=co.denomOwners)==null?void 0:Bo.map(So=>_e.DenomOwner.fromPartial(So)))||[],mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageResponse.fromPartial(co.pagination):void 0,mo}};function Mt(){return{denoms:[],pagination:void 0}}_e.QuerySendEnabledRequest={encode(co,mo=st.Writer.create()){for(const Bo of co.denoms)mo.uint32(10).string(Bo);return co.pagination!==void 0&&Vr.PageRequest.encode(co.pagination,mo.uint32(794).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=Mt();for(;Bo.pos>>3){case 1:Tt.denoms.push(Bo.string());break;case 99:Tt.pagination=Vr.PageRequest.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{denoms:Array.isArray(co==null?void 0:co.denoms)?co.denoms.map(mo=>String(mo)):[],pagination:(0,dt.isSet)(co.pagination)?Vr.PageRequest.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.denoms?mo.denoms=co.denoms.map(Bo=>Bo):mo.denoms=[],co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageRequest.toJSON(co.pagination):void 0),mo},fromPartial(co){var Bo;const mo=Mt();return mo.denoms=((Bo=co.denoms)==null?void 0:Bo.map(So=>So))||[],mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageRequest.fromPartial(co.pagination):void 0,mo}};function ho(){return{sendEnabled:[],pagination:void 0}}_e.QuerySendEnabledResponse={encode(co,mo=st.Writer.create()){for(const Bo of co.sendEnabled)nt.SendEnabled.encode(Bo,mo.uint32(10).fork()).ldelim();return co.pagination!==void 0&&Vr.PageResponse.encode(co.pagination,mo.uint32(794).fork()).ldelim(),mo},decode(co,mo){const Bo=co instanceof st.Reader?co:new st.Reader(co);let So=mo===void 0?Bo.len:Bo.pos+mo;const Tt=ho();for(;Bo.pos>>3){case 1:Tt.sendEnabled.push(nt.SendEnabled.decode(Bo,Bo.uint32()));break;case 99:Tt.pagination=Vr.PageResponse.decode(Bo,Bo.uint32());break;default:Bo.skipType(vo&7);break}}return Tt},fromJSON(co){return{sendEnabled:Array.isArray(co==null?void 0:co.sendEnabled)?co.sendEnabled.map(mo=>nt.SendEnabled.fromJSON(mo)):[],pagination:(0,dt.isSet)(co.pagination)?Vr.PageResponse.fromJSON(co.pagination):void 0}},toJSON(co){const mo={};return co.sendEnabled?mo.sendEnabled=co.sendEnabled.map(Bo=>Bo?nt.SendEnabled.toJSON(Bo):void 0):mo.sendEnabled=[],co.pagination!==void 0&&(mo.pagination=co.pagination?Vr.PageResponse.toJSON(co.pagination):void 0),mo},fromPartial(co){var Bo;const mo=ho();return mo.sendEnabled=((Bo=co.sendEnabled)==null?void 0:Bo.map(So=>nt.SendEnabled.fromPartial(So)))||[],mo.pagination=co.pagination!==void 0&&co.pagination!==null?Vr.PageResponse.fromPartial(co.pagination):void 0,mo}};class io{constructor(mo){this.rpc=mo,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(mo){const Bo=_e.QueryBalanceRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Balance",Bo).then(So=>_e.QueryBalanceResponse.decode(new st.Reader(So)))}AllBalances(mo){const Bo=_e.QueryAllBalancesRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","AllBalances",Bo).then(So=>_e.QueryAllBalancesResponse.decode(new st.Reader(So)))}SpendableBalances(mo){const Bo=_e.QuerySpendableBalancesRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalances",Bo).then(So=>_e.QuerySpendableBalancesResponse.decode(new st.Reader(So)))}SpendableBalanceByDenom(mo){const Bo=_e.QuerySpendableBalanceByDenomRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalanceByDenom",Bo).then(So=>_e.QuerySpendableBalanceByDenomResponse.decode(new st.Reader(So)))}TotalSupply(mo={pagination:void 0}){const Bo=_e.QueryTotalSupplyRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","TotalSupply",Bo).then(So=>_e.QueryTotalSupplyResponse.decode(new st.Reader(So)))}SupplyOf(mo){const Bo=_e.QuerySupplyOfRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SupplyOf",Bo).then(So=>_e.QuerySupplyOfResponse.decode(new st.Reader(So)))}Params(mo={}){const Bo=_e.QueryParamsRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","Params",Bo).then(So=>_e.QueryParamsResponse.decode(new st.Reader(So)))}DenomMetadata(mo){const Bo=_e.QueryDenomMetadataRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomMetadata",Bo).then(So=>_e.QueryDenomMetadataResponse.decode(new st.Reader(So)))}DenomsMetadata(mo={pagination:void 0}){const Bo=_e.QueryDenomsMetadataRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomsMetadata",Bo).then(So=>_e.QueryDenomsMetadataResponse.decode(new st.Reader(So)))}DenomOwners(mo){const Bo=_e.QueryDenomOwnersRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","DenomOwners",Bo).then(So=>_e.QueryDenomOwnersResponse.decode(new st.Reader(So)))}SendEnabled(mo){const Bo=_e.QuerySendEnabledRequest.encode(mo).finish();return this.rpc.request("cosmos.bank.v1beta1.Query","SendEnabled",Bo).then(So=>_e.QuerySendEnabledResponse.decode(new st.Reader(So)))}}_e.QueryClientImpl=io})(query$b),Object.defineProperty(queries$9,"__esModule",{value:!0}),queries$9.setupBankExtension=void 0;const utils_1$a=build$6,query_1$8=query$b,queryclient_1$a=queryclient$1;function setupBankExtension(_e){const cr=(0,queryclient_1$a.createProtobufRpcClient)(_e),gr=new query_1$8.QueryClientImpl(cr);return{bank:{balance:async(Cr,Vr)=>{const{balance:tt}=await gr.Balance({address:Cr,denom:Vr});return(0,utils_1$a.assert)(tt),tt},allBalances:async Cr=>{const{balances:Vr}=await gr.AllBalances({address:Cr});return Vr},totalSupply:async Cr=>await gr.TotalSupply({pagination:(0,queryclient_1$a.createPagination)(Cr)}),supplyOf:async Cr=>{const{amount:Vr}=await gr.SupplyOf({denom:Cr});return(0,utils_1$a.assert)(Vr),Vr},denomMetadata:async Cr=>{const{metadata:Vr}=await gr.DenomMetadata({denom:Cr});return(0,utils_1$a.assert)(Vr),Vr},denomsMetadata:async()=>{const{metadatas:Cr}=await gr.DenomsMetadata({pagination:void 0});return Cr}}}}queries$9.setupBankExtension=setupBankExtension;var aminomessages$a={};Object.defineProperty(aminomessages$a,"__esModule",{value:!0}),aminomessages$a.createCrysisAminoConverters=aminomessages$a.isAminoMsgVerifyInvariant=void 0;function isAminoMsgVerifyInvariant(_e){return _e.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(_e){return _e.type==="cosmos-sdk/MsgModifyWithdrawAddress"}aminomessages$9.isAminoMsgSetWithdrawAddress=isAminoMsgSetWithdrawAddress;function isAminoMsgWithdrawDelegatorReward(_e){return _e.type==="cosmos-sdk/MsgWithdrawDelegationReward"}aminomessages$9.isAminoMsgWithdrawDelegatorReward=isAminoMsgWithdrawDelegatorReward;function isAminoMsgWithdrawValidatorCommission(_e){return _e.type==="cosmos-sdk/MsgWithdrawValidatorCommission"}aminomessages$9.isAminoMsgWithdrawValidatorCommission=isAminoMsgWithdrawValidatorCommission;function isAminoMsgFundCommunityPool(_e){return _e.type==="cosmos-sdk/MsgFundCommunityPool"}aminomessages$9.isAminoMsgFundCommunityPool=isAminoMsgFundCommunityPool;function createDistributionAminoConverters(){return{"/cosmos.distribution.v1beta1.MsgFundCommunityPool":{aminoType:"cosmos-sdk/MsgFundCommunityPool",toAmino:({amount:_e,depositor:cr})=>({amount:[..._e],depositor:cr}),fromAmino:({amount:_e,depositor:cr})=>({amount:[..._e],depositor:cr})},"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":{aminoType:"cosmos-sdk/MsgModifyWithdrawAddress",toAmino:({delegatorAddress:_e,withdrawAddress:cr})=>({delegator_address:_e,withdraw_address:cr}),fromAmino:({delegator_address:_e,withdraw_address:cr})=>({delegatorAddress:_e,withdrawAddress:cr})},"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":{aminoType:"cosmos-sdk/MsgWithdrawDelegationReward",toAmino:({delegatorAddress:_e,validatorAddress:cr})=>({delegator_address:_e,validator_address:cr}),fromAmino:({delegator_address:_e,validator_address:cr})=>({delegatorAddress:_e,validatorAddress:cr})},"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":{aminoType:"cosmos-sdk/MsgWithdrawValidatorCommission",toAmino:({validatorAddress:_e})=>({validator_address:_e}),fromAmino:({validator_address:_e})=>({validatorAddress:_e})}}}aminomessages$9.createDistributionAminoConverters=createDistributionAminoConverters;var messages$8={},tx$b={},distribution={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ot,uo,go,bo){bo===void 0&&(bo=go);var oo=Object.getOwnPropertyDescriptor(uo,go);(!oo||("get"in oo?!uo.__esModule:oo.writable||oo.configurable))&&(oo={enumerable:!0,get:function(){return uo[go]}}),Object.defineProperty(Ot,bo,oo)}:function(Ot,uo,go,bo){bo===void 0&&(bo=go),Ot[bo]=uo[go]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Ot,uo){Object.defineProperty(Ot,"default",{enumerable:!0,value:uo})}:function(Ot,uo){Ot.default=uo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Ot){if(Ot&&Ot.__esModule)return Ot;var uo={};if(Ot!=null)for(var go in Ot)go!=="default"&&Object.prototype.hasOwnProperty.call(Ot,go)&&cr(uo,Ot,go);return gr(uo,Ot),uo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CommunityPoolSpendProposalWithDeposit=_e.DelegationDelegatorReward=_e.DelegatorStartingInfo=_e.CommunityPoolSpendProposal=_e.FeePool=_e.ValidatorSlashEvents=_e.ValidatorSlashEvent=_e.ValidatorOutstandingRewards=_e.ValidatorAccumulatedCommission=_e.ValidatorCurrentRewards=_e.ValidatorHistoricalRewards=_e.Params=_e.protobufPackage=void 0;const Vr=coin$1,tt=helpers,nt=Cr(minimal);_e.protobufPackage="cosmos.distribution.v1beta1";function st(){return{communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1}}_e.Params={encode(Ot,uo=nt.Writer.create()){return Ot.communityTax!==""&&uo.uint32(10).string(Ot.communityTax),Ot.baseProposerReward!==""&&uo.uint32(18).string(Ot.baseProposerReward),Ot.bonusProposerReward!==""&&uo.uint32(26).string(Ot.bonusProposerReward),Ot.withdrawAddrEnabled===!0&&uo.uint32(32).bool(Ot.withdrawAddrEnabled),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=st();for(;go.pos>>3){case 1:oo.communityTax=go.string();break;case 2:oo.baseProposerReward=go.string();break;case 3:oo.bonusProposerReward=go.string();break;case 4:oo.withdrawAddrEnabled=go.bool();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{communityTax:(0,tt.isSet)(Ot.communityTax)?String(Ot.communityTax):"",baseProposerReward:(0,tt.isSet)(Ot.baseProposerReward)?String(Ot.baseProposerReward):"",bonusProposerReward:(0,tt.isSet)(Ot.bonusProposerReward)?String(Ot.bonusProposerReward):"",withdrawAddrEnabled:(0,tt.isSet)(Ot.withdrawAddrEnabled)?!!Ot.withdrawAddrEnabled:!1}},toJSON(Ot){const uo={};return Ot.communityTax!==void 0&&(uo.communityTax=Ot.communityTax),Ot.baseProposerReward!==void 0&&(uo.baseProposerReward=Ot.baseProposerReward),Ot.bonusProposerReward!==void 0&&(uo.bonusProposerReward=Ot.bonusProposerReward),Ot.withdrawAddrEnabled!==void 0&&(uo.withdrawAddrEnabled=Ot.withdrawAddrEnabled),uo},fromPartial(Ot){const uo=st();return uo.communityTax=Ot.communityTax??"",uo.baseProposerReward=Ot.baseProposerReward??"",uo.bonusProposerReward=Ot.bonusProposerReward??"",uo.withdrawAddrEnabled=Ot.withdrawAddrEnabled??!1,uo}};function dt(){return{cumulativeRewardRatio:[],referenceCount:0}}_e.ValidatorHistoricalRewards={encode(Ot,uo=nt.Writer.create()){for(const go of Ot.cumulativeRewardRatio)Vr.DecCoin.encode(go,uo.uint32(10).fork()).ldelim();return Ot.referenceCount!==0&&uo.uint32(16).uint32(Ot.referenceCount),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=dt();for(;go.pos>>3){case 1:oo.cumulativeRewardRatio.push(Vr.DecCoin.decode(go,go.uint32()));break;case 2:oo.referenceCount=go.uint32();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{cumulativeRewardRatio:Array.isArray(Ot==null?void 0:Ot.cumulativeRewardRatio)?Ot.cumulativeRewardRatio.map(uo=>Vr.DecCoin.fromJSON(uo)):[],referenceCount:(0,tt.isSet)(Ot.referenceCount)?Number(Ot.referenceCount):0}},toJSON(Ot){const uo={};return Ot.cumulativeRewardRatio?uo.cumulativeRewardRatio=Ot.cumulativeRewardRatio.map(go=>go?Vr.DecCoin.toJSON(go):void 0):uo.cumulativeRewardRatio=[],Ot.referenceCount!==void 0&&(uo.referenceCount=Math.round(Ot.referenceCount)),uo},fromPartial(Ot){var go;const uo=dt();return uo.cumulativeRewardRatio=((go=Ot.cumulativeRewardRatio)==null?void 0:go.map(bo=>Vr.DecCoin.fromPartial(bo)))||[],uo.referenceCount=Ot.referenceCount??0,uo}};function kt(){return{rewards:[],period:tt.Long.UZERO}}_e.ValidatorCurrentRewards={encode(Ot,uo=nt.Writer.create()){for(const go of Ot.rewards)Vr.DecCoin.encode(go,uo.uint32(10).fork()).ldelim();return Ot.period.isZero()||uo.uint32(16).uint64(Ot.period),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=kt();for(;go.pos>>3){case 1:oo.rewards.push(Vr.DecCoin.decode(go,go.uint32()));break;case 2:oo.period=go.uint64();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{rewards:Array.isArray(Ot==null?void 0:Ot.rewards)?Ot.rewards.map(uo=>Vr.DecCoin.fromJSON(uo)):[],period:(0,tt.isSet)(Ot.period)?tt.Long.fromValue(Ot.period):tt.Long.UZERO}},toJSON(Ot){const uo={};return Ot.rewards?uo.rewards=Ot.rewards.map(go=>go?Vr.DecCoin.toJSON(go):void 0):uo.rewards=[],Ot.period!==void 0&&(uo.period=(Ot.period||tt.Long.UZERO).toString()),uo},fromPartial(Ot){var go;const uo=kt();return uo.rewards=((go=Ot.rewards)==null?void 0:go.map(bo=>Vr.DecCoin.fromPartial(bo)))||[],uo.period=Ot.period!==void 0&&Ot.period!==null?tt.Long.fromValue(Ot.period):tt.Long.UZERO,uo}};function qt(){return{commission:[]}}_e.ValidatorAccumulatedCommission={encode(Ot,uo=nt.Writer.create()){for(const go of Ot.commission)Vr.DecCoin.encode(go,uo.uint32(10).fork()).ldelim();return uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=qt();for(;go.pos>>3){case 1:oo.commission.push(Vr.DecCoin.decode(go,go.uint32()));break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{commission:Array.isArray(Ot==null?void 0:Ot.commission)?Ot.commission.map(uo=>Vr.DecCoin.fromJSON(uo)):[]}},toJSON(Ot){const uo={};return Ot.commission?uo.commission=Ot.commission.map(go=>go?Vr.DecCoin.toJSON(go):void 0):uo.commission=[],uo},fromPartial(Ot){var go;const uo=qt();return uo.commission=((go=Ot.commission)==null?void 0:go.map(bo=>Vr.DecCoin.fromPartial(bo)))||[],uo}};function ro(){return{rewards:[]}}_e.ValidatorOutstandingRewards={encode(Ot,uo=nt.Writer.create()){for(const go of Ot.rewards)Vr.DecCoin.encode(go,uo.uint32(10).fork()).ldelim();return uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=ro();for(;go.pos>>3){case 1:oo.rewards.push(Vr.DecCoin.decode(go,go.uint32()));break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{rewards:Array.isArray(Ot==null?void 0:Ot.rewards)?Ot.rewards.map(uo=>Vr.DecCoin.fromJSON(uo)):[]}},toJSON(Ot){const uo={};return Ot.rewards?uo.rewards=Ot.rewards.map(go=>go?Vr.DecCoin.toJSON(go):void 0):uo.rewards=[],uo},fromPartial(Ot){var go;const uo=ro();return uo.rewards=((go=Ot.rewards)==null?void 0:go.map(bo=>Vr.DecCoin.fromPartial(bo)))||[],uo}};function ht(){return{validatorPeriod:tt.Long.UZERO,fraction:""}}_e.ValidatorSlashEvent={encode(Ot,uo=nt.Writer.create()){return Ot.validatorPeriod.isZero()||uo.uint32(8).uint64(Ot.validatorPeriod),Ot.fraction!==""&&uo.uint32(18).string(Ot.fraction),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=ht();for(;go.pos>>3){case 1:oo.validatorPeriod=go.uint64();break;case 2:oo.fraction=go.string();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{validatorPeriod:(0,tt.isSet)(Ot.validatorPeriod)?tt.Long.fromValue(Ot.validatorPeriod):tt.Long.UZERO,fraction:(0,tt.isSet)(Ot.fraction)?String(Ot.fraction):""}},toJSON(Ot){const uo={};return Ot.validatorPeriod!==void 0&&(uo.validatorPeriod=(Ot.validatorPeriod||tt.Long.UZERO).toString()),Ot.fraction!==void 0&&(uo.fraction=Ot.fraction),uo},fromPartial(Ot){const uo=ht();return uo.validatorPeriod=Ot.validatorPeriod!==void 0&&Ot.validatorPeriod!==null?tt.Long.fromValue(Ot.validatorPeriod):tt.Long.UZERO,uo.fraction=Ot.fraction??"",uo}};function po(){return{validatorSlashEvents:[]}}_e.ValidatorSlashEvents={encode(Ot,uo=nt.Writer.create()){for(const go of Ot.validatorSlashEvents)_e.ValidatorSlashEvent.encode(go,uo.uint32(10).fork()).ldelim();return uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=po();for(;go.pos>>3){case 1:oo.validatorSlashEvents.push(_e.ValidatorSlashEvent.decode(go,go.uint32()));break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{validatorSlashEvents:Array.isArray(Ot==null?void 0:Ot.validatorSlashEvents)?Ot.validatorSlashEvents.map(uo=>_e.ValidatorSlashEvent.fromJSON(uo)):[]}},toJSON(Ot){const uo={};return Ot.validatorSlashEvents?uo.validatorSlashEvents=Ot.validatorSlashEvents.map(go=>go?_e.ValidatorSlashEvent.toJSON(go):void 0):uo.validatorSlashEvents=[],uo},fromPartial(Ot){var go;const uo=po();return uo.validatorSlashEvents=((go=Ot.validatorSlashEvents)==null?void 0:go.map(bo=>_e.ValidatorSlashEvent.fromPartial(bo)))||[],uo}};function no(){return{communityPool:[]}}_e.FeePool={encode(Ot,uo=nt.Writer.create()){for(const go of Ot.communityPool)Vr.DecCoin.encode(go,uo.uint32(10).fork()).ldelim();return uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=no();for(;go.pos>>3){case 1:oo.communityPool.push(Vr.DecCoin.decode(go,go.uint32()));break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{communityPool:Array.isArray(Ot==null?void 0:Ot.communityPool)?Ot.communityPool.map(uo=>Vr.DecCoin.fromJSON(uo)):[]}},toJSON(Ot){const uo={};return Ot.communityPool?uo.communityPool=Ot.communityPool.map(go=>go?Vr.DecCoin.toJSON(go):void 0):uo.communityPool=[],uo},fromPartial(Ot){var go;const uo=no();return uo.communityPool=((go=Ot.communityPool)==null?void 0:go.map(bo=>Vr.DecCoin.fromPartial(bo)))||[],uo}};function Nt(){return{title:"",description:"",recipient:"",amount:[]}}_e.CommunityPoolSpendProposal={encode(Ot,uo=nt.Writer.create()){Ot.title!==""&&uo.uint32(10).string(Ot.title),Ot.description!==""&&uo.uint32(18).string(Ot.description),Ot.recipient!==""&&uo.uint32(26).string(Ot.recipient);for(const go of Ot.amount)Vr.Coin.encode(go,uo.uint32(34).fork()).ldelim();return uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=Nt();for(;go.pos>>3){case 1:oo.title=go.string();break;case 2:oo.description=go.string();break;case 3:oo.recipient=go.string();break;case 4:oo.amount.push(Vr.Coin.decode(go,go.uint32()));break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{title:(0,tt.isSet)(Ot.title)?String(Ot.title):"",description:(0,tt.isSet)(Ot.description)?String(Ot.description):"",recipient:(0,tt.isSet)(Ot.recipient)?String(Ot.recipient):"",amount:Array.isArray(Ot==null?void 0:Ot.amount)?Ot.amount.map(uo=>Vr.Coin.fromJSON(uo)):[]}},toJSON(Ot){const uo={};return Ot.title!==void 0&&(uo.title=Ot.title),Ot.description!==void 0&&(uo.description=Ot.description),Ot.recipient!==void 0&&(uo.recipient=Ot.recipient),Ot.amount?uo.amount=Ot.amount.map(go=>go?Vr.Coin.toJSON(go):void 0):uo.amount=[],uo},fromPartial(Ot){var go;const uo=Nt();return uo.title=Ot.title??"",uo.description=Ot.description??"",uo.recipient=Ot.recipient??"",uo.amount=((go=Ot.amount)==null?void 0:go.map(bo=>Vr.Coin.fromPartial(bo)))||[],uo}};function eo(){return{previousPeriod:tt.Long.UZERO,stake:"",height:tt.Long.UZERO}}_e.DelegatorStartingInfo={encode(Ot,uo=nt.Writer.create()){return Ot.previousPeriod.isZero()||uo.uint32(8).uint64(Ot.previousPeriod),Ot.stake!==""&&uo.uint32(18).string(Ot.stake),Ot.height.isZero()||uo.uint32(24).uint64(Ot.height),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=eo();for(;go.pos>>3){case 1:oo.previousPeriod=go.uint64();break;case 2:oo.stake=go.string();break;case 3:oo.height=go.uint64();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{previousPeriod:(0,tt.isSet)(Ot.previousPeriod)?tt.Long.fromValue(Ot.previousPeriod):tt.Long.UZERO,stake:(0,tt.isSet)(Ot.stake)?String(Ot.stake):"",height:(0,tt.isSet)(Ot.height)?tt.Long.fromValue(Ot.height):tt.Long.UZERO}},toJSON(Ot){const uo={};return Ot.previousPeriod!==void 0&&(uo.previousPeriod=(Ot.previousPeriod||tt.Long.UZERO).toString()),Ot.stake!==void 0&&(uo.stake=Ot.stake),Ot.height!==void 0&&(uo.height=(Ot.height||tt.Long.UZERO).toString()),uo},fromPartial(Ot){const uo=eo();return uo.previousPeriod=Ot.previousPeriod!==void 0&&Ot.previousPeriod!==null?tt.Long.fromValue(Ot.previousPeriod):tt.Long.UZERO,uo.stake=Ot.stake??"",uo.height=Ot.height!==void 0&&Ot.height!==null?tt.Long.fromValue(Ot.height):tt.Long.UZERO,uo}};function Wt(){return{validatorAddress:"",reward:[]}}_e.DelegationDelegatorReward={encode(Ot,uo=nt.Writer.create()){Ot.validatorAddress!==""&&uo.uint32(10).string(Ot.validatorAddress);for(const go of Ot.reward)Vr.DecCoin.encode(go,uo.uint32(18).fork()).ldelim();return uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=Wt();for(;go.pos>>3){case 1:oo.validatorAddress=go.string();break;case 2:oo.reward.push(Vr.DecCoin.decode(go,go.uint32()));break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{validatorAddress:(0,tt.isSet)(Ot.validatorAddress)?String(Ot.validatorAddress):"",reward:Array.isArray(Ot==null?void 0:Ot.reward)?Ot.reward.map(uo=>Vr.DecCoin.fromJSON(uo)):[]}},toJSON(Ot){const uo={};return Ot.validatorAddress!==void 0&&(uo.validatorAddress=Ot.validatorAddress),Ot.reward?uo.reward=Ot.reward.map(go=>go?Vr.DecCoin.toJSON(go):void 0):uo.reward=[],uo},fromPartial(Ot){var go;const uo=Wt();return uo.validatorAddress=Ot.validatorAddress??"",uo.reward=((go=Ot.reward)==null?void 0:go.map(bo=>Vr.DecCoin.fromPartial(bo)))||[],uo}};function St(){return{title:"",description:"",recipient:"",amount:"",deposit:""}}_e.CommunityPoolSpendProposalWithDeposit={encode(Ot,uo=nt.Writer.create()){return Ot.title!==""&&uo.uint32(10).string(Ot.title),Ot.description!==""&&uo.uint32(18).string(Ot.description),Ot.recipient!==""&&uo.uint32(26).string(Ot.recipient),Ot.amount!==""&&uo.uint32(34).string(Ot.amount),Ot.deposit!==""&&uo.uint32(42).string(Ot.deposit),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=St();for(;go.pos>>3){case 1:oo.title=go.string();break;case 2:oo.description=go.string();break;case 3:oo.recipient=go.string();break;case 4:oo.amount=go.string();break;case 5:oo.deposit=go.string();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{title:(0,tt.isSet)(Ot.title)?String(Ot.title):"",description:(0,tt.isSet)(Ot.description)?String(Ot.description):"",recipient:(0,tt.isSet)(Ot.recipient)?String(Ot.recipient):"",amount:(0,tt.isSet)(Ot.amount)?String(Ot.amount):"",deposit:(0,tt.isSet)(Ot.deposit)?String(Ot.deposit):""}},toJSON(Ot){const uo={};return Ot.title!==void 0&&(uo.title=Ot.title),Ot.description!==void 0&&(uo.description=Ot.description),Ot.recipient!==void 0&&(uo.recipient=Ot.recipient),Ot.amount!==void 0&&(uo.amount=Ot.amount),Ot.deposit!==void 0&&(uo.deposit=Ot.deposit),uo},fromPartial(Ot){const uo=St();return uo.title=Ot.title??"",uo.description=Ot.description??"",uo.recipient=Ot.recipient??"",uo.amount=Ot.amount??"",uo.deposit=Ot.deposit??"",uo}}})(distribution),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(go,bo,oo,Ro){Ro===void 0&&(Ro=oo);var pt=Object.getOwnPropertyDescriptor(bo,oo);(!pt||("get"in pt?!bo.__esModule:pt.writable||pt.configurable))&&(pt={enumerable:!0,get:function(){return bo[oo]}}),Object.defineProperty(go,Ro,pt)}:function(go,bo,oo,Ro){Ro===void 0&&(Ro=oo),go[Ro]=bo[oo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(go,bo){Object.defineProperty(go,"default",{enumerable:!0,value:bo})}:function(go,bo){go.default=bo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(go){if(go&&go.__esModule)return go;var bo={};if(go!=null)for(var oo in go)oo!=="default"&&Object.prototype.hasOwnProperty.call(go,oo)&&cr(bo,go,oo);return gr(bo,go),bo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgCommunityPoolSpendResponse=_e.MsgCommunityPoolSpend=_e.MsgUpdateParamsResponse=_e.MsgUpdateParams=_e.MsgFundCommunityPoolResponse=_e.MsgFundCommunityPool=_e.MsgWithdrawValidatorCommissionResponse=_e.MsgWithdrawValidatorCommission=_e.MsgWithdrawDelegatorRewardResponse=_e.MsgWithdrawDelegatorReward=_e.MsgSetWithdrawAddressResponse=_e.MsgSetWithdrawAddress=_e.protobufPackage=void 0;const Vr=coin$1,tt=distribution,nt=Cr(minimal),st=helpers;_e.protobufPackage="cosmos.distribution.v1beta1";function dt(){return{delegatorAddress:"",withdrawAddress:""}}_e.MsgSetWithdrawAddress={encode(go,bo=nt.Writer.create()){return go.delegatorAddress!==""&&bo.uint32(10).string(go.delegatorAddress),go.withdrawAddress!==""&&bo.uint32(18).string(go.withdrawAddress),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=dt();for(;oo.pos>>3){case 1:pt.delegatorAddress=oo.string();break;case 2:pt.withdrawAddress=oo.string();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{delegatorAddress:(0,st.isSet)(go.delegatorAddress)?String(go.delegatorAddress):"",withdrawAddress:(0,st.isSet)(go.withdrawAddress)?String(go.withdrawAddress):""}},toJSON(go){const bo={};return go.delegatorAddress!==void 0&&(bo.delegatorAddress=go.delegatorAddress),go.withdrawAddress!==void 0&&(bo.withdrawAddress=go.withdrawAddress),bo},fromPartial(go){const bo=dt();return bo.delegatorAddress=go.delegatorAddress??"",bo.withdrawAddress=go.withdrawAddress??"",bo}};function kt(){return{}}_e.MsgSetWithdrawAddressResponse={encode(go,bo=nt.Writer.create()){return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=kt();for(;oo.pos>>3){default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{}},toJSON(go){return{}},fromPartial(go){return kt()}};function qt(){return{delegatorAddress:"",validatorAddress:""}}_e.MsgWithdrawDelegatorReward={encode(go,bo=nt.Writer.create()){return go.delegatorAddress!==""&&bo.uint32(10).string(go.delegatorAddress),go.validatorAddress!==""&&bo.uint32(18).string(go.validatorAddress),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=qt();for(;oo.pos>>3){case 1:pt.delegatorAddress=oo.string();break;case 2:pt.validatorAddress=oo.string();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{delegatorAddress:(0,st.isSet)(go.delegatorAddress)?String(go.delegatorAddress):"",validatorAddress:(0,st.isSet)(go.validatorAddress)?String(go.validatorAddress):""}},toJSON(go){const bo={};return go.delegatorAddress!==void 0&&(bo.delegatorAddress=go.delegatorAddress),go.validatorAddress!==void 0&&(bo.validatorAddress=go.validatorAddress),bo},fromPartial(go){const bo=qt();return bo.delegatorAddress=go.delegatorAddress??"",bo.validatorAddress=go.validatorAddress??"",bo}};function ro(){return{amount:[]}}_e.MsgWithdrawDelegatorRewardResponse={encode(go,bo=nt.Writer.create()){for(const oo of go.amount)Vr.Coin.encode(oo,bo.uint32(10).fork()).ldelim();return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=ro();for(;oo.pos>>3){case 1:pt.amount.push(Vr.Coin.decode(oo,oo.uint32()));break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{amount:Array.isArray(go==null?void 0:go.amount)?go.amount.map(bo=>Vr.Coin.fromJSON(bo)):[]}},toJSON(go){const bo={};return go.amount?bo.amount=go.amount.map(oo=>oo?Vr.Coin.toJSON(oo):void 0):bo.amount=[],bo},fromPartial(go){var oo;const bo=ro();return bo.amount=((oo=go.amount)==null?void 0:oo.map(Ro=>Vr.Coin.fromPartial(Ro)))||[],bo}};function ht(){return{validatorAddress:""}}_e.MsgWithdrawValidatorCommission={encode(go,bo=nt.Writer.create()){return go.validatorAddress!==""&&bo.uint32(10).string(go.validatorAddress),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=ht();for(;oo.pos>>3){case 1:pt.validatorAddress=oo.string();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{validatorAddress:(0,st.isSet)(go.validatorAddress)?String(go.validatorAddress):""}},toJSON(go){const bo={};return go.validatorAddress!==void 0&&(bo.validatorAddress=go.validatorAddress),bo},fromPartial(go){const bo=ht();return bo.validatorAddress=go.validatorAddress??"",bo}};function po(){return{amount:[]}}_e.MsgWithdrawValidatorCommissionResponse={encode(go,bo=nt.Writer.create()){for(const oo of go.amount)Vr.Coin.encode(oo,bo.uint32(10).fork()).ldelim();return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=po();for(;oo.pos>>3){case 1:pt.amount.push(Vr.Coin.decode(oo,oo.uint32()));break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{amount:Array.isArray(go==null?void 0:go.amount)?go.amount.map(bo=>Vr.Coin.fromJSON(bo)):[]}},toJSON(go){const bo={};return go.amount?bo.amount=go.amount.map(oo=>oo?Vr.Coin.toJSON(oo):void 0):bo.amount=[],bo},fromPartial(go){var oo;const bo=po();return bo.amount=((oo=go.amount)==null?void 0:oo.map(Ro=>Vr.Coin.fromPartial(Ro)))||[],bo}};function no(){return{amount:[],depositor:""}}_e.MsgFundCommunityPool={encode(go,bo=nt.Writer.create()){for(const oo of go.amount)Vr.Coin.encode(oo,bo.uint32(10).fork()).ldelim();return go.depositor!==""&&bo.uint32(18).string(go.depositor),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=no();for(;oo.pos>>3){case 1:pt.amount.push(Vr.Coin.decode(oo,oo.uint32()));break;case 2:pt.depositor=oo.string();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{amount:Array.isArray(go==null?void 0:go.amount)?go.amount.map(bo=>Vr.Coin.fromJSON(bo)):[],depositor:(0,st.isSet)(go.depositor)?String(go.depositor):""}},toJSON(go){const bo={};return go.amount?bo.amount=go.amount.map(oo=>oo?Vr.Coin.toJSON(oo):void 0):bo.amount=[],go.depositor!==void 0&&(bo.depositor=go.depositor),bo},fromPartial(go){var oo;const bo=no();return bo.amount=((oo=go.amount)==null?void 0:oo.map(Ro=>Vr.Coin.fromPartial(Ro)))||[],bo.depositor=go.depositor??"",bo}};function Nt(){return{}}_e.MsgFundCommunityPoolResponse={encode(go,bo=nt.Writer.create()){return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Nt();for(;oo.pos>>3){default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{}},toJSON(go){return{}},fromPartial(go){return Nt()}};function eo(){return{authority:"",params:void 0}}_e.MsgUpdateParams={encode(go,bo=nt.Writer.create()){return go.authority!==""&&bo.uint32(10).string(go.authority),go.params!==void 0&&tt.Params.encode(go.params,bo.uint32(18).fork()).ldelim(),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=eo();for(;oo.pos>>3){case 1:pt.authority=oo.string();break;case 2:pt.params=tt.Params.decode(oo,oo.uint32());break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{authority:(0,st.isSet)(go.authority)?String(go.authority):"",params:(0,st.isSet)(go.params)?tt.Params.fromJSON(go.params):void 0}},toJSON(go){const bo={};return go.authority!==void 0&&(bo.authority=go.authority),go.params!==void 0&&(bo.params=go.params?tt.Params.toJSON(go.params):void 0),bo},fromPartial(go){const bo=eo();return bo.authority=go.authority??"",bo.params=go.params!==void 0&&go.params!==null?tt.Params.fromPartial(go.params):void 0,bo}};function Wt(){return{}}_e.MsgUpdateParamsResponse={encode(go,bo=nt.Writer.create()){return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Wt();for(;oo.pos>>3){default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{}},toJSON(go){return{}},fromPartial(go){return Wt()}};function St(){return{authority:"",recipient:"",amount:[]}}_e.MsgCommunityPoolSpend={encode(go,bo=nt.Writer.create()){go.authority!==""&&bo.uint32(10).string(go.authority),go.recipient!==""&&bo.uint32(18).string(go.recipient);for(const oo of go.amount)Vr.Coin.encode(oo,bo.uint32(26).fork()).ldelim();return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=St();for(;oo.pos>>3){case 1:pt.authority=oo.string();break;case 2:pt.recipient=oo.string();break;case 3:pt.amount.push(Vr.Coin.decode(oo,oo.uint32()));break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{authority:(0,st.isSet)(go.authority)?String(go.authority):"",recipient:(0,st.isSet)(go.recipient)?String(go.recipient):"",amount:Array.isArray(go==null?void 0:go.amount)?go.amount.map(bo=>Vr.Coin.fromJSON(bo)):[]}},toJSON(go){const bo={};return go.authority!==void 0&&(bo.authority=go.authority),go.recipient!==void 0&&(bo.recipient=go.recipient),go.amount?bo.amount=go.amount.map(oo=>oo?Vr.Coin.toJSON(oo):void 0):bo.amount=[],bo},fromPartial(go){var oo;const bo=St();return bo.authority=go.authority??"",bo.recipient=go.recipient??"",bo.amount=((oo=go.amount)==null?void 0:oo.map(Ro=>Vr.Coin.fromPartial(Ro)))||[],bo}};function Ot(){return{}}_e.MsgCommunityPoolSpendResponse={encode(go,bo=nt.Writer.create()){return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Ot();for(;oo.pos>>3){default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{}},toJSON(go){return{}},fromPartial(go){return Ot()}};class uo{constructor(bo){this.rpc=bo,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(bo){const oo=_e.MsgSetWithdrawAddress.encode(bo).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",oo).then(Ro=>_e.MsgSetWithdrawAddressResponse.decode(new nt.Reader(Ro)))}WithdrawDelegatorReward(bo){const oo=_e.MsgWithdrawDelegatorReward.encode(bo).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",oo).then(Ro=>_e.MsgWithdrawDelegatorRewardResponse.decode(new nt.Reader(Ro)))}WithdrawValidatorCommission(bo){const oo=_e.MsgWithdrawValidatorCommission.encode(bo).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",oo).then(Ro=>_e.MsgWithdrawValidatorCommissionResponse.decode(new nt.Reader(Ro)))}FundCommunityPool(bo){const oo=_e.MsgFundCommunityPool.encode(bo).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",oo).then(Ro=>_e.MsgFundCommunityPoolResponse.decode(new nt.Reader(Ro)))}UpdateParams(bo){const oo=_e.MsgUpdateParams.encode(bo).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","UpdateParams",oo).then(Ro=>_e.MsgUpdateParamsResponse.decode(new nt.Reader(Ro)))}CommunityPoolSpend(bo){const oo=_e.MsgCommunityPoolSpend.encode(bo).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","CommunityPoolSpend",oo).then(Ro=>_e.MsgCommunityPoolSpendResponse.decode(new nt.Reader(Ro)))}}_e.MsgClientImpl=uo}(tx$b),Object.defineProperty(messages$8,"__esModule",{value:!0}),messages$8.isMsgWithdrawDelegatorRewardEncodeObject=messages$8.distributionTypes=void 0;const tx_1$b=tx$b;messages$8.distributionTypes=[["/cosmos.distribution.v1beta1.MsgFundCommunityPool",tx_1$b.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",tx_1$b.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",tx_1$b.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",tx_1$b.MsgWithdrawValidatorCommission]];function isMsgWithdrawDelegatorRewardEncodeObject(_e){return _e.typeUrl==="/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"}messages$8.isMsgWithdrawDelegatorRewardEncodeObject=isMsgWithdrawDelegatorRewardEncodeObject;var queries$8={},query$a={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Mt,ho,io,co){co===void 0&&(co=io);var mo=Object.getOwnPropertyDescriptor(ho,io);(!mo||("get"in mo?!ho.__esModule:mo.writable||mo.configurable))&&(mo={enumerable:!0,get:function(){return ho[io]}}),Object.defineProperty(Mt,co,mo)}:function(Mt,ho,io,co){co===void 0&&(co=io),Mt[co]=ho[io]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Mt,ho){Object.defineProperty(Mt,"default",{enumerable:!0,value:ho})}:function(Mt,ho){Mt.default=ho}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Mt){if(Mt&&Mt.__esModule)return Mt;var ho={};if(Mt!=null)for(var io in Mt)io!=="default"&&Object.prototype.hasOwnProperty.call(Mt,io)&&cr(ho,Mt,io);return gr(ho,Mt),ho};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryCommunityPoolResponse=_e.QueryCommunityPoolRequest=_e.QueryDelegatorWithdrawAddressResponse=_e.QueryDelegatorWithdrawAddressRequest=_e.QueryDelegatorValidatorsResponse=_e.QueryDelegatorValidatorsRequest=_e.QueryDelegationTotalRewardsResponse=_e.QueryDelegationTotalRewardsRequest=_e.QueryDelegationRewardsResponse=_e.QueryDelegationRewardsRequest=_e.QueryValidatorSlashesResponse=_e.QueryValidatorSlashesRequest=_e.QueryValidatorCommissionResponse=_e.QueryValidatorCommissionRequest=_e.QueryValidatorOutstandingRewardsResponse=_e.QueryValidatorOutstandingRewardsRequest=_e.QueryValidatorDistributionInfoResponse=_e.QueryValidatorDistributionInfoRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=distribution,nt=coin$1,st=helpers,dt=Cr(minimal);_e.protobufPackage="cosmos.distribution.v1beta1";function kt(){return{}}_e.QueryParamsRequest={encode(Mt,ho=dt.Writer.create()){return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=kt();for(;io.pos>>3){default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return kt()}};function qt(){return{params:void 0}}_e.QueryParamsResponse={encode(Mt,ho=dt.Writer.create()){return Mt.params!==void 0&&tt.Params.encode(Mt.params,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=qt();for(;io.pos>>3){case 1:mo.params=tt.Params.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{params:(0,st.isSet)(Mt.params)?tt.Params.fromJSON(Mt.params):void 0}},toJSON(Mt){const ho={};return Mt.params!==void 0&&(ho.params=Mt.params?tt.Params.toJSON(Mt.params):void 0),ho},fromPartial(Mt){const ho=qt();return ho.params=Mt.params!==void 0&&Mt.params!==null?tt.Params.fromPartial(Mt.params):void 0,ho}};function ro(){return{validatorAddress:""}}_e.QueryValidatorDistributionInfoRequest={encode(Mt,ho=dt.Writer.create()){return Mt.validatorAddress!==""&&ho.uint32(10).string(Mt.validatorAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=ro();for(;io.pos>>3){case 1:mo.validatorAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{validatorAddress:(0,st.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):""}},toJSON(Mt){const ho={};return Mt.validatorAddress!==void 0&&(ho.validatorAddress=Mt.validatorAddress),ho},fromPartial(Mt){const ho=ro();return ho.validatorAddress=Mt.validatorAddress??"",ho}};function ht(){return{operatorAddress:"",selfBondRewards:[],commission:[]}}_e.QueryValidatorDistributionInfoResponse={encode(Mt,ho=dt.Writer.create()){Mt.operatorAddress!==""&&ho.uint32(10).string(Mt.operatorAddress);for(const io of Mt.selfBondRewards)nt.DecCoin.encode(io,ho.uint32(18).fork()).ldelim();for(const io of Mt.commission)nt.DecCoin.encode(io,ho.uint32(26).fork()).ldelim();return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=ht();for(;io.pos>>3){case 1:mo.operatorAddress=io.string();break;case 2:mo.selfBondRewards.push(nt.DecCoin.decode(io,io.uint32()));break;case 3:mo.commission.push(nt.DecCoin.decode(io,io.uint32()));break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{operatorAddress:(0,st.isSet)(Mt.operatorAddress)?String(Mt.operatorAddress):"",selfBondRewards:Array.isArray(Mt==null?void 0:Mt.selfBondRewards)?Mt.selfBondRewards.map(ho=>nt.DecCoin.fromJSON(ho)):[],commission:Array.isArray(Mt==null?void 0:Mt.commission)?Mt.commission.map(ho=>nt.DecCoin.fromJSON(ho)):[]}},toJSON(Mt){const ho={};return Mt.operatorAddress!==void 0&&(ho.operatorAddress=Mt.operatorAddress),Mt.selfBondRewards?ho.selfBondRewards=Mt.selfBondRewards.map(io=>io?nt.DecCoin.toJSON(io):void 0):ho.selfBondRewards=[],Mt.commission?ho.commission=Mt.commission.map(io=>io?nt.DecCoin.toJSON(io):void 0):ho.commission=[],ho},fromPartial(Mt){var io,co;const ho=ht();return ho.operatorAddress=Mt.operatorAddress??"",ho.selfBondRewards=((io=Mt.selfBondRewards)==null?void 0:io.map(mo=>nt.DecCoin.fromPartial(mo)))||[],ho.commission=((co=Mt.commission)==null?void 0:co.map(mo=>nt.DecCoin.fromPartial(mo)))||[],ho}};function po(){return{validatorAddress:""}}_e.QueryValidatorOutstandingRewardsRequest={encode(Mt,ho=dt.Writer.create()){return Mt.validatorAddress!==""&&ho.uint32(10).string(Mt.validatorAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=po();for(;io.pos>>3){case 1:mo.validatorAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{validatorAddress:(0,st.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):""}},toJSON(Mt){const ho={};return Mt.validatorAddress!==void 0&&(ho.validatorAddress=Mt.validatorAddress),ho},fromPartial(Mt){const ho=po();return ho.validatorAddress=Mt.validatorAddress??"",ho}};function no(){return{rewards:void 0}}_e.QueryValidatorOutstandingRewardsResponse={encode(Mt,ho=dt.Writer.create()){return Mt.rewards!==void 0&&tt.ValidatorOutstandingRewards.encode(Mt.rewards,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=no();for(;io.pos>>3){case 1:mo.rewards=tt.ValidatorOutstandingRewards.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{rewards:(0,st.isSet)(Mt.rewards)?tt.ValidatorOutstandingRewards.fromJSON(Mt.rewards):void 0}},toJSON(Mt){const ho={};return Mt.rewards!==void 0&&(ho.rewards=Mt.rewards?tt.ValidatorOutstandingRewards.toJSON(Mt.rewards):void 0),ho},fromPartial(Mt){const ho=no();return ho.rewards=Mt.rewards!==void 0&&Mt.rewards!==null?tt.ValidatorOutstandingRewards.fromPartial(Mt.rewards):void 0,ho}};function Nt(){return{validatorAddress:""}}_e.QueryValidatorCommissionRequest={encode(Mt,ho=dt.Writer.create()){return Mt.validatorAddress!==""&&ho.uint32(10).string(Mt.validatorAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Nt();for(;io.pos>>3){case 1:mo.validatorAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{validatorAddress:(0,st.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):""}},toJSON(Mt){const ho={};return Mt.validatorAddress!==void 0&&(ho.validatorAddress=Mt.validatorAddress),ho},fromPartial(Mt){const ho=Nt();return ho.validatorAddress=Mt.validatorAddress??"",ho}};function eo(){return{commission:void 0}}_e.QueryValidatorCommissionResponse={encode(Mt,ho=dt.Writer.create()){return Mt.commission!==void 0&&tt.ValidatorAccumulatedCommission.encode(Mt.commission,ho.uint32(10).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=eo();for(;io.pos>>3){case 1:mo.commission=tt.ValidatorAccumulatedCommission.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{commission:(0,st.isSet)(Mt.commission)?tt.ValidatorAccumulatedCommission.fromJSON(Mt.commission):void 0}},toJSON(Mt){const ho={};return Mt.commission!==void 0&&(ho.commission=Mt.commission?tt.ValidatorAccumulatedCommission.toJSON(Mt.commission):void 0),ho},fromPartial(Mt){const ho=eo();return ho.commission=Mt.commission!==void 0&&Mt.commission!==null?tt.ValidatorAccumulatedCommission.fromPartial(Mt.commission):void 0,ho}};function Wt(){return{validatorAddress:"",startingHeight:st.Long.UZERO,endingHeight:st.Long.UZERO,pagination:void 0}}_e.QueryValidatorSlashesRequest={encode(Mt,ho=dt.Writer.create()){return Mt.validatorAddress!==""&&ho.uint32(10).string(Mt.validatorAddress),Mt.startingHeight.isZero()||ho.uint32(16).uint64(Mt.startingHeight),Mt.endingHeight.isZero()||ho.uint32(24).uint64(Mt.endingHeight),Mt.pagination!==void 0&&Vr.PageRequest.encode(Mt.pagination,ho.uint32(34).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Wt();for(;io.pos>>3){case 1:mo.validatorAddress=io.string();break;case 2:mo.startingHeight=io.uint64();break;case 3:mo.endingHeight=io.uint64();break;case 4:mo.pagination=Vr.PageRequest.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{validatorAddress:(0,st.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):"",startingHeight:(0,st.isSet)(Mt.startingHeight)?st.Long.fromValue(Mt.startingHeight):st.Long.UZERO,endingHeight:(0,st.isSet)(Mt.endingHeight)?st.Long.fromValue(Mt.endingHeight):st.Long.UZERO,pagination:(0,st.isSet)(Mt.pagination)?Vr.PageRequest.fromJSON(Mt.pagination):void 0}},toJSON(Mt){const ho={};return Mt.validatorAddress!==void 0&&(ho.validatorAddress=Mt.validatorAddress),Mt.startingHeight!==void 0&&(ho.startingHeight=(Mt.startingHeight||st.Long.UZERO).toString()),Mt.endingHeight!==void 0&&(ho.endingHeight=(Mt.endingHeight||st.Long.UZERO).toString()),Mt.pagination!==void 0&&(ho.pagination=Mt.pagination?Vr.PageRequest.toJSON(Mt.pagination):void 0),ho},fromPartial(Mt){const ho=Wt();return ho.validatorAddress=Mt.validatorAddress??"",ho.startingHeight=Mt.startingHeight!==void 0&&Mt.startingHeight!==null?st.Long.fromValue(Mt.startingHeight):st.Long.UZERO,ho.endingHeight=Mt.endingHeight!==void 0&&Mt.endingHeight!==null?st.Long.fromValue(Mt.endingHeight):st.Long.UZERO,ho.pagination=Mt.pagination!==void 0&&Mt.pagination!==null?Vr.PageRequest.fromPartial(Mt.pagination):void 0,ho}};function St(){return{slashes:[],pagination:void 0}}_e.QueryValidatorSlashesResponse={encode(Mt,ho=dt.Writer.create()){for(const io of Mt.slashes)tt.ValidatorSlashEvent.encode(io,ho.uint32(10).fork()).ldelim();return Mt.pagination!==void 0&&Vr.PageResponse.encode(Mt.pagination,ho.uint32(18).fork()).ldelim(),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=St();for(;io.pos>>3){case 1:mo.slashes.push(tt.ValidatorSlashEvent.decode(io,io.uint32()));break;case 2:mo.pagination=Vr.PageResponse.decode(io,io.uint32());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{slashes:Array.isArray(Mt==null?void 0:Mt.slashes)?Mt.slashes.map(ho=>tt.ValidatorSlashEvent.fromJSON(ho)):[],pagination:(0,st.isSet)(Mt.pagination)?Vr.PageResponse.fromJSON(Mt.pagination):void 0}},toJSON(Mt){const ho={};return Mt.slashes?ho.slashes=Mt.slashes.map(io=>io?tt.ValidatorSlashEvent.toJSON(io):void 0):ho.slashes=[],Mt.pagination!==void 0&&(ho.pagination=Mt.pagination?Vr.PageResponse.toJSON(Mt.pagination):void 0),ho},fromPartial(Mt){var io;const ho=St();return ho.slashes=((io=Mt.slashes)==null?void 0:io.map(co=>tt.ValidatorSlashEvent.fromPartial(co)))||[],ho.pagination=Mt.pagination!==void 0&&Mt.pagination!==null?Vr.PageResponse.fromPartial(Mt.pagination):void 0,ho}};function Ot(){return{delegatorAddress:"",validatorAddress:""}}_e.QueryDelegationRewardsRequest={encode(Mt,ho=dt.Writer.create()){return Mt.delegatorAddress!==""&&ho.uint32(10).string(Mt.delegatorAddress),Mt.validatorAddress!==""&&ho.uint32(18).string(Mt.validatorAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Ot();for(;io.pos>>3){case 1:mo.delegatorAddress=io.string();break;case 2:mo.validatorAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{delegatorAddress:(0,st.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):"",validatorAddress:(0,st.isSet)(Mt.validatorAddress)?String(Mt.validatorAddress):""}},toJSON(Mt){const ho={};return Mt.delegatorAddress!==void 0&&(ho.delegatorAddress=Mt.delegatorAddress),Mt.validatorAddress!==void 0&&(ho.validatorAddress=Mt.validatorAddress),ho},fromPartial(Mt){const ho=Ot();return ho.delegatorAddress=Mt.delegatorAddress??"",ho.validatorAddress=Mt.validatorAddress??"",ho}};function uo(){return{rewards:[]}}_e.QueryDelegationRewardsResponse={encode(Mt,ho=dt.Writer.create()){for(const io of Mt.rewards)nt.DecCoin.encode(io,ho.uint32(10).fork()).ldelim();return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=uo();for(;io.pos>>3){case 1:mo.rewards.push(nt.DecCoin.decode(io,io.uint32()));break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{rewards:Array.isArray(Mt==null?void 0:Mt.rewards)?Mt.rewards.map(ho=>nt.DecCoin.fromJSON(ho)):[]}},toJSON(Mt){const ho={};return Mt.rewards?ho.rewards=Mt.rewards.map(io=>io?nt.DecCoin.toJSON(io):void 0):ho.rewards=[],ho},fromPartial(Mt){var io;const ho=uo();return ho.rewards=((io=Mt.rewards)==null?void 0:io.map(co=>nt.DecCoin.fromPartial(co)))||[],ho}};function go(){return{delegatorAddress:""}}_e.QueryDelegationTotalRewardsRequest={encode(Mt,ho=dt.Writer.create()){return Mt.delegatorAddress!==""&&ho.uint32(10).string(Mt.delegatorAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=go();for(;io.pos>>3){case 1:mo.delegatorAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{delegatorAddress:(0,st.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):""}},toJSON(Mt){const ho={};return Mt.delegatorAddress!==void 0&&(ho.delegatorAddress=Mt.delegatorAddress),ho},fromPartial(Mt){const ho=go();return ho.delegatorAddress=Mt.delegatorAddress??"",ho}};function bo(){return{rewards:[],total:[]}}_e.QueryDelegationTotalRewardsResponse={encode(Mt,ho=dt.Writer.create()){for(const io of Mt.rewards)tt.DelegationDelegatorReward.encode(io,ho.uint32(10).fork()).ldelim();for(const io of Mt.total)nt.DecCoin.encode(io,ho.uint32(18).fork()).ldelim();return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=bo();for(;io.pos>>3){case 1:mo.rewards.push(tt.DelegationDelegatorReward.decode(io,io.uint32()));break;case 2:mo.total.push(nt.DecCoin.decode(io,io.uint32()));break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{rewards:Array.isArray(Mt==null?void 0:Mt.rewards)?Mt.rewards.map(ho=>tt.DelegationDelegatorReward.fromJSON(ho)):[],total:Array.isArray(Mt==null?void 0:Mt.total)?Mt.total.map(ho=>nt.DecCoin.fromJSON(ho)):[]}},toJSON(Mt){const ho={};return Mt.rewards?ho.rewards=Mt.rewards.map(io=>io?tt.DelegationDelegatorReward.toJSON(io):void 0):ho.rewards=[],Mt.total?ho.total=Mt.total.map(io=>io?nt.DecCoin.toJSON(io):void 0):ho.total=[],ho},fromPartial(Mt){var io,co;const ho=bo();return ho.rewards=((io=Mt.rewards)==null?void 0:io.map(mo=>tt.DelegationDelegatorReward.fromPartial(mo)))||[],ho.total=((co=Mt.total)==null?void 0:co.map(mo=>nt.DecCoin.fromPartial(mo)))||[],ho}};function oo(){return{delegatorAddress:""}}_e.QueryDelegatorValidatorsRequest={encode(Mt,ho=dt.Writer.create()){return Mt.delegatorAddress!==""&&ho.uint32(10).string(Mt.delegatorAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=oo();for(;io.pos>>3){case 1:mo.delegatorAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{delegatorAddress:(0,st.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):""}},toJSON(Mt){const ho={};return Mt.delegatorAddress!==void 0&&(ho.delegatorAddress=Mt.delegatorAddress),ho},fromPartial(Mt){const ho=oo();return ho.delegatorAddress=Mt.delegatorAddress??"",ho}};function Ro(){return{validators:[]}}_e.QueryDelegatorValidatorsResponse={encode(Mt,ho=dt.Writer.create()){for(const io of Mt.validators)ho.uint32(10).string(io);return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=Ro();for(;io.pos>>3){case 1:mo.validators.push(io.string());break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{validators:Array.isArray(Mt==null?void 0:Mt.validators)?Mt.validators.map(ho=>String(ho)):[]}},toJSON(Mt){const ho={};return Mt.validators?ho.validators=Mt.validators.map(io=>io):ho.validators=[],ho},fromPartial(Mt){var io;const ho=Ro();return ho.validators=((io=Mt.validators)==null?void 0:io.map(co=>co))||[],ho}};function pt(){return{delegatorAddress:""}}_e.QueryDelegatorWithdrawAddressRequest={encode(Mt,ho=dt.Writer.create()){return Mt.delegatorAddress!==""&&ho.uint32(10).string(Mt.delegatorAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=pt();for(;io.pos>>3){case 1:mo.delegatorAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{delegatorAddress:(0,st.isSet)(Mt.delegatorAddress)?String(Mt.delegatorAddress):""}},toJSON(Mt){const ho={};return Mt.delegatorAddress!==void 0&&(ho.delegatorAddress=Mt.delegatorAddress),ho},fromPartial(Mt){const ho=pt();return ho.delegatorAddress=Mt.delegatorAddress??"",ho}};function lo(){return{withdrawAddress:""}}_e.QueryDelegatorWithdrawAddressResponse={encode(Mt,ho=dt.Writer.create()){return Mt.withdrawAddress!==""&&ho.uint32(10).string(Mt.withdrawAddress),ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=lo();for(;io.pos>>3){case 1:mo.withdrawAddress=io.string();break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{withdrawAddress:(0,st.isSet)(Mt.withdrawAddress)?String(Mt.withdrawAddress):""}},toJSON(Mt){const ho={};return Mt.withdrawAddress!==void 0&&(ho.withdrawAddress=Mt.withdrawAddress),ho},fromPartial(Mt){const ho=lo();return ho.withdrawAddress=Mt.withdrawAddress??"",ho}};function so(){return{}}_e.QueryCommunityPoolRequest={encode(Mt,ho=dt.Writer.create()){return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=so();for(;io.pos>>3){default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{}},toJSON(Mt){return{}},fromPartial(Mt){return so()}};function wo(){return{pool:[]}}_e.QueryCommunityPoolResponse={encode(Mt,ho=dt.Writer.create()){for(const io of Mt.pool)nt.DecCoin.encode(io,ho.uint32(10).fork()).ldelim();return ho},decode(Mt,ho){const io=Mt instanceof dt.Reader?Mt:new dt.Reader(Mt);let co=ho===void 0?io.len:io.pos+ho;const mo=wo();for(;io.pos>>3){case 1:mo.pool.push(nt.DecCoin.decode(io,io.uint32()));break;default:io.skipType(Bo&7);break}}return mo},fromJSON(Mt){return{pool:Array.isArray(Mt==null?void 0:Mt.pool)?Mt.pool.map(ho=>nt.DecCoin.fromJSON(ho)):[]}},toJSON(Mt){const ho={};return Mt.pool?ho.pool=Mt.pool.map(io=>io?nt.DecCoin.toJSON(io):void 0):ho.pool=[],ho},fromPartial(Mt){var io;const ho=wo();return ho.pool=((io=Mt.pool)==null?void 0:io.map(co=>nt.DecCoin.fromPartial(co)))||[],ho}};class xt{constructor(ho){this.rpc=ho,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(ho={}){const io=_e.QueryParamsRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","Params",io).then(co=>_e.QueryParamsResponse.decode(new dt.Reader(co)))}ValidatorDistributionInfo(ho){const io=_e.QueryValidatorDistributionInfoRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorDistributionInfo",io).then(co=>_e.QueryValidatorDistributionInfoResponse.decode(new dt.Reader(co)))}ValidatorOutstandingRewards(ho){const io=_e.QueryValidatorOutstandingRewardsRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorOutstandingRewards",io).then(co=>_e.QueryValidatorOutstandingRewardsResponse.decode(new dt.Reader(co)))}ValidatorCommission(ho){const io=_e.QueryValidatorCommissionRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorCommission",io).then(co=>_e.QueryValidatorCommissionResponse.decode(new dt.Reader(co)))}ValidatorSlashes(ho){const io=_e.QueryValidatorSlashesRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorSlashes",io).then(co=>_e.QueryValidatorSlashesResponse.decode(new dt.Reader(co)))}DelegationRewards(ho){const io=_e.QueryDelegationRewardsRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationRewards",io).then(co=>_e.QueryDelegationRewardsResponse.decode(new dt.Reader(co)))}DelegationTotalRewards(ho){const io=_e.QueryDelegationTotalRewardsRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationTotalRewards",io).then(co=>_e.QueryDelegationTotalRewardsResponse.decode(new dt.Reader(co)))}DelegatorValidators(ho){const io=_e.QueryDelegatorValidatorsRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorValidators",io).then(co=>_e.QueryDelegatorValidatorsResponse.decode(new dt.Reader(co)))}DelegatorWithdrawAddress(ho){const io=_e.QueryDelegatorWithdrawAddressRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorWithdrawAddress",io).then(co=>_e.QueryDelegatorWithdrawAddressResponse.decode(new dt.Reader(co)))}CommunityPool(ho={}){const io=_e.QueryCommunityPoolRequest.encode(ho).finish();return this.rpc.request("cosmos.distribution.v1beta1.Query","CommunityPool",io).then(co=>_e.QueryCommunityPoolResponse.decode(new dt.Reader(co)))}}_e.QueryClientImpl=xt})(query$a);var __importDefault$e=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(queries$8,"__esModule",{value:!0}),queries$8.setupDistributionExtension=void 0;const query_1$7=query$a,long_1$a=__importDefault$e(long),queryclient_1$9=queryclient$1;function setupDistributionExtension(_e){const cr=(0,queryclient_1$9.createProtobufRpcClient)(_e),gr=new query_1$7.QueryClientImpl(cr);return{distribution:{communityPool:async()=>await gr.CommunityPool({}),delegationRewards:async(Cr,Vr)=>await gr.DelegationRewards({delegatorAddress:Cr,validatorAddress:Vr}),delegationTotalRewards:async Cr=>await gr.DelegationTotalRewards({delegatorAddress:Cr}),delegatorValidators:async Cr=>await gr.DelegatorValidators({delegatorAddress:Cr}),delegatorWithdrawAddress:async Cr=>await gr.DelegatorWithdrawAddress({delegatorAddress:Cr}),params:async()=>await gr.Params({}),validatorCommission:async Cr=>await gr.ValidatorCommission({validatorAddress:Cr}),validatorOutstandingRewards:async Cr=>await gr.ValidatorOutstandingRewards({validatorAddress:Cr}),validatorSlashes:async(Cr,Vr,tt,nt)=>await gr.ValidatorSlashes({validatorAddress:Cr,startingHeight:long_1$a.default.fromNumber(Vr,!0),endingHeight:long_1$a.default.fromNumber(tt,!0),pagination:(0,queryclient_1$9.createPagination)(nt)})}}}queries$8.setupDistributionExtension=setupDistributionExtension;var aminomessages$8={};Object.defineProperty(aminomessages$8,"__esModule",{value:!0}),aminomessages$8.createEvidenceAminoConverters=aminomessages$8.isAminoMsgSubmitEvidence=void 0;function isAminoMsgSubmitEvidence(_e){return _e.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$a={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,po,no,Nt){Nt===void 0&&(Nt=no);var eo=Object.getOwnPropertyDescriptor(po,no);(!eo||("get"in eo?!po.__esModule:eo.writable||eo.configurable))&&(eo={enumerable:!0,get:function(){return po[no]}}),Object.defineProperty(ht,Nt,eo)}:function(ht,po,no,Nt){Nt===void 0&&(Nt=no),ht[Nt]=po[no]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,po){Object.defineProperty(ht,"default",{enumerable:!0,value:po})}:function(ht,po){ht.default=po}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var po={};if(ht!=null)for(var no in ht)no!=="default"&&Object.prototype.hasOwnProperty.call(ht,no)&&cr(po,ht,no);return gr(po,ht),po};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgRevokeAllowanceResponse=_e.MsgRevokeAllowance=_e.MsgGrantAllowanceResponse=_e.MsgGrantAllowance=_e.protobufPackage=void 0;const Vr=any,tt=Cr(minimal),nt=helpers;_e.protobufPackage="cosmos.feegrant.v1beta1";function st(){return{granter:"",grantee:"",allowance:void 0}}_e.MsgGrantAllowance={encode(ht,po=tt.Writer.create()){return ht.granter!==""&&po.uint32(10).string(ht.granter),ht.grantee!==""&&po.uint32(18).string(ht.grantee),ht.allowance!==void 0&&Vr.Any.encode(ht.allowance,po.uint32(26).fork()).ldelim(),po},decode(ht,po){const no=ht instanceof tt.Reader?ht:new tt.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=st();for(;no.pos>>3){case 1:eo.granter=no.string();break;case 2:eo.grantee=no.string();break;case 3:eo.allowance=Vr.Any.decode(no,no.uint32());break;default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{granter:(0,nt.isSet)(ht.granter)?String(ht.granter):"",grantee:(0,nt.isSet)(ht.grantee)?String(ht.grantee):"",allowance:(0,nt.isSet)(ht.allowance)?Vr.Any.fromJSON(ht.allowance):void 0}},toJSON(ht){const po={};return ht.granter!==void 0&&(po.granter=ht.granter),ht.grantee!==void 0&&(po.grantee=ht.grantee),ht.allowance!==void 0&&(po.allowance=ht.allowance?Vr.Any.toJSON(ht.allowance):void 0),po},fromPartial(ht){const po=st();return po.granter=ht.granter??"",po.grantee=ht.grantee??"",po.allowance=ht.allowance!==void 0&&ht.allowance!==null?Vr.Any.fromPartial(ht.allowance):void 0,po}};function dt(){return{}}_e.MsgGrantAllowanceResponse={encode(ht,po=tt.Writer.create()){return po},decode(ht,po){const no=ht instanceof tt.Reader?ht:new tt.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=dt();for(;no.pos>>3){default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{}},toJSON(ht){return{}},fromPartial(ht){return dt()}};function kt(){return{granter:"",grantee:""}}_e.MsgRevokeAllowance={encode(ht,po=tt.Writer.create()){return ht.granter!==""&&po.uint32(10).string(ht.granter),ht.grantee!==""&&po.uint32(18).string(ht.grantee),po},decode(ht,po){const no=ht instanceof tt.Reader?ht:new tt.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=kt();for(;no.pos>>3){case 1:eo.granter=no.string();break;case 2:eo.grantee=no.string();break;default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{granter:(0,nt.isSet)(ht.granter)?String(ht.granter):"",grantee:(0,nt.isSet)(ht.grantee)?String(ht.grantee):""}},toJSON(ht){const po={};return ht.granter!==void 0&&(po.granter=ht.granter),ht.grantee!==void 0&&(po.grantee=ht.grantee),po},fromPartial(ht){const po=kt();return po.granter=ht.granter??"",po.grantee=ht.grantee??"",po}};function qt(){return{}}_e.MsgRevokeAllowanceResponse={encode(ht,po=tt.Writer.create()){return po},decode(ht,po){const no=ht instanceof tt.Reader?ht:new tt.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=qt();for(;no.pos>>3){default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{}},toJSON(ht){return{}},fromPartial(ht){return qt()}};class ro{constructor(po){this.rpc=po,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(po){const no=_e.MsgGrantAllowance.encode(po).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",no).then(Nt=>_e.MsgGrantAllowanceResponse.decode(new tt.Reader(Nt)))}RevokeAllowance(po){const no=_e.MsgRevokeAllowance.encode(po).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",no).then(Nt=>_e.MsgRevokeAllowanceResponse.decode(new tt.Reader(Nt)))}}_e.MsgClientImpl=ro})(tx$a),Object.defineProperty(messages$7,"__esModule",{value:!0}),messages$7.feegrantTypes=void 0;const tx_1$a=tx$a;messages$7.feegrantTypes=[["/cosmos.feegrant.v1beta1.MsgGrantAllowance",tx_1$a.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",tx_1$a.MsgRevokeAllowance]];var queries$7={},query$9={},feegrant={},duration$1={},__createBinding$c=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$c=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$c(cr,_e,gr);return __setModuleDefault$c(cr,_e),cr};Object.defineProperty(duration$1,"__esModule",{value:!0}),duration$1.Duration=duration$1.protobufPackage=void 0;const helpers_1$7=helpers,_m0$7=__importStar$c(minimal);duration$1.protobufPackage="google.protobuf";function createBaseDuration(){return{seconds:helpers_1$7.Long.ZERO,nanos:0}}duration$1.Duration={encode(_e,cr=_m0$7.Writer.create()){return _e.seconds.isZero()||cr.uint32(8).int64(_e.seconds),_e.nanos!==0&&cr.uint32(16).int32(_e.nanos),cr},decode(_e,cr){const gr=_e instanceof _m0$7.Reader?_e:new _m0$7.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseDuration();for(;gr.pos>>3){case 1:Vr.seconds=gr.int64();break;case 2:Vr.nanos=gr.int32();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{seconds:(0,helpers_1$7.isSet)(_e.seconds)?helpers_1$7.Long.fromValue(_e.seconds):helpers_1$7.Long.ZERO,nanos:(0,helpers_1$7.isSet)(_e.nanos)?Number(_e.nanos):0}},toJSON(_e){const cr={};return _e.seconds!==void 0&&(cr.seconds=(_e.seconds||helpers_1$7.Long.ZERO).toString()),_e.nanos!==void 0&&(cr.nanos=Math.round(_e.nanos)),cr},fromPartial(_e){const cr=createBaseDuration();return cr.seconds=_e.seconds!==void 0&&_e.seconds!==null?helpers_1$7.Long.fromValue(_e.seconds):helpers_1$7.Long.ZERO,cr.nanos=_e.nanos??0,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo);var St=Object.getOwnPropertyDescriptor(Nt,eo);(!St||("get"in St?!Nt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return Nt[eo]}}),Object.defineProperty(no,Wt,St)}:function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo),no[Wt]=Nt[eo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(no,Nt){Object.defineProperty(no,"default",{enumerable:!0,value:Nt})}:function(no,Nt){no.default=Nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(no){if(no&&no.__esModule)return no;var Nt={};if(no!=null)for(var eo in no)eo!=="default"&&Object.prototype.hasOwnProperty.call(no,eo)&&cr(Nt,no,eo);return gr(Nt,no),Nt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Grant=_e.AllowedMsgAllowance=_e.PeriodicAllowance=_e.BasicAllowance=_e.protobufPackage=void 0;const Vr=coin$1,tt=timestamp,nt=duration$1,st=any,dt=Cr(minimal),kt=helpers;_e.protobufPackage="cosmos.feegrant.v1beta1";function qt(){return{spendLimit:[],expiration:void 0}}_e.BasicAllowance={encode(no,Nt=dt.Writer.create()){for(const eo of no.spendLimit)Vr.Coin.encode(eo,Nt.uint32(10).fork()).ldelim();return no.expiration!==void 0&&tt.Timestamp.encode(no.expiration,Nt.uint32(18).fork()).ldelim(),Nt},decode(no,Nt){const eo=no instanceof dt.Reader?no:new dt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=qt();for(;eo.pos>>3){case 1:St.spendLimit.push(Vr.Coin.decode(eo,eo.uint32()));break;case 2:St.expiration=tt.Timestamp.decode(eo,eo.uint32());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{spendLimit:Array.isArray(no==null?void 0:no.spendLimit)?no.spendLimit.map(Nt=>Vr.Coin.fromJSON(Nt)):[],expiration:(0,kt.isSet)(no.expiration)?(0,kt.fromJsonTimestamp)(no.expiration):void 0}},toJSON(no){const Nt={};return no.spendLimit?Nt.spendLimit=no.spendLimit.map(eo=>eo?Vr.Coin.toJSON(eo):void 0):Nt.spendLimit=[],no.expiration!==void 0&&(Nt.expiration=(0,kt.fromTimestamp)(no.expiration).toISOString()),Nt},fromPartial(no){var eo;const Nt=qt();return Nt.spendLimit=((eo=no.spendLimit)==null?void 0:eo.map(Wt=>Vr.Coin.fromPartial(Wt)))||[],Nt.expiration=no.expiration!==void 0&&no.expiration!==null?tt.Timestamp.fromPartial(no.expiration):void 0,Nt}};function ro(){return{basic:void 0,period:void 0,periodSpendLimit:[],periodCanSpend:[],periodReset:void 0}}_e.PeriodicAllowance={encode(no,Nt=dt.Writer.create()){no.basic!==void 0&&_e.BasicAllowance.encode(no.basic,Nt.uint32(10).fork()).ldelim(),no.period!==void 0&&nt.Duration.encode(no.period,Nt.uint32(18).fork()).ldelim();for(const eo of no.periodSpendLimit)Vr.Coin.encode(eo,Nt.uint32(26).fork()).ldelim();for(const eo of no.periodCanSpend)Vr.Coin.encode(eo,Nt.uint32(34).fork()).ldelim();return no.periodReset!==void 0&&tt.Timestamp.encode(no.periodReset,Nt.uint32(42).fork()).ldelim(),Nt},decode(no,Nt){const eo=no instanceof dt.Reader?no:new dt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ro();for(;eo.pos>>3){case 1:St.basic=_e.BasicAllowance.decode(eo,eo.uint32());break;case 2:St.period=nt.Duration.decode(eo,eo.uint32());break;case 3:St.periodSpendLimit.push(Vr.Coin.decode(eo,eo.uint32()));break;case 4:St.periodCanSpend.push(Vr.Coin.decode(eo,eo.uint32()));break;case 5:St.periodReset=tt.Timestamp.decode(eo,eo.uint32());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{basic:(0,kt.isSet)(no.basic)?_e.BasicAllowance.fromJSON(no.basic):void 0,period:(0,kt.isSet)(no.period)?nt.Duration.fromJSON(no.period):void 0,periodSpendLimit:Array.isArray(no==null?void 0:no.periodSpendLimit)?no.periodSpendLimit.map(Nt=>Vr.Coin.fromJSON(Nt)):[],periodCanSpend:Array.isArray(no==null?void 0:no.periodCanSpend)?no.periodCanSpend.map(Nt=>Vr.Coin.fromJSON(Nt)):[],periodReset:(0,kt.isSet)(no.periodReset)?(0,kt.fromJsonTimestamp)(no.periodReset):void 0}},toJSON(no){const Nt={};return no.basic!==void 0&&(Nt.basic=no.basic?_e.BasicAllowance.toJSON(no.basic):void 0),no.period!==void 0&&(Nt.period=no.period?nt.Duration.toJSON(no.period):void 0),no.periodSpendLimit?Nt.periodSpendLimit=no.periodSpendLimit.map(eo=>eo?Vr.Coin.toJSON(eo):void 0):Nt.periodSpendLimit=[],no.periodCanSpend?Nt.periodCanSpend=no.periodCanSpend.map(eo=>eo?Vr.Coin.toJSON(eo):void 0):Nt.periodCanSpend=[],no.periodReset!==void 0&&(Nt.periodReset=(0,kt.fromTimestamp)(no.periodReset).toISOString()),Nt},fromPartial(no){var eo,Wt;const Nt=ro();return Nt.basic=no.basic!==void 0&&no.basic!==null?_e.BasicAllowance.fromPartial(no.basic):void 0,Nt.period=no.period!==void 0&&no.period!==null?nt.Duration.fromPartial(no.period):void 0,Nt.periodSpendLimit=((eo=no.periodSpendLimit)==null?void 0:eo.map(St=>Vr.Coin.fromPartial(St)))||[],Nt.periodCanSpend=((Wt=no.periodCanSpend)==null?void 0:Wt.map(St=>Vr.Coin.fromPartial(St)))||[],Nt.periodReset=no.periodReset!==void 0&&no.periodReset!==null?tt.Timestamp.fromPartial(no.periodReset):void 0,Nt}};function ht(){return{allowance:void 0,allowedMessages:[]}}_e.AllowedMsgAllowance={encode(no,Nt=dt.Writer.create()){no.allowance!==void 0&&st.Any.encode(no.allowance,Nt.uint32(10).fork()).ldelim();for(const eo of no.allowedMessages)Nt.uint32(18).string(eo);return Nt},decode(no,Nt){const eo=no instanceof dt.Reader?no:new dt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ht();for(;eo.pos>>3){case 1:St.allowance=st.Any.decode(eo,eo.uint32());break;case 2:St.allowedMessages.push(eo.string());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{allowance:(0,kt.isSet)(no.allowance)?st.Any.fromJSON(no.allowance):void 0,allowedMessages:Array.isArray(no==null?void 0:no.allowedMessages)?no.allowedMessages.map(Nt=>String(Nt)):[]}},toJSON(no){const Nt={};return no.allowance!==void 0&&(Nt.allowance=no.allowance?st.Any.toJSON(no.allowance):void 0),no.allowedMessages?Nt.allowedMessages=no.allowedMessages.map(eo=>eo):Nt.allowedMessages=[],Nt},fromPartial(no){var eo;const Nt=ht();return Nt.allowance=no.allowance!==void 0&&no.allowance!==null?st.Any.fromPartial(no.allowance):void 0,Nt.allowedMessages=((eo=no.allowedMessages)==null?void 0:eo.map(Wt=>Wt))||[],Nt}};function po(){return{granter:"",grantee:"",allowance:void 0}}_e.Grant={encode(no,Nt=dt.Writer.create()){return no.granter!==""&&Nt.uint32(10).string(no.granter),no.grantee!==""&&Nt.uint32(18).string(no.grantee),no.allowance!==void 0&&st.Any.encode(no.allowance,Nt.uint32(26).fork()).ldelim(),Nt},decode(no,Nt){const eo=no instanceof dt.Reader?no:new dt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=po();for(;eo.pos>>3){case 1:St.granter=eo.string();break;case 2:St.grantee=eo.string();break;case 3:St.allowance=st.Any.decode(eo,eo.uint32());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{granter:(0,kt.isSet)(no.granter)?String(no.granter):"",grantee:(0,kt.isSet)(no.grantee)?String(no.grantee):"",allowance:(0,kt.isSet)(no.allowance)?st.Any.fromJSON(no.allowance):void 0}},toJSON(no){const Nt={};return no.granter!==void 0&&(Nt.granter=no.granter),no.grantee!==void 0&&(Nt.grantee=no.grantee),no.allowance!==void 0&&(Nt.allowance=no.allowance?st.Any.toJSON(no.allowance):void 0),Nt},fromPartial(no){const Nt=po();return Nt.granter=no.granter??"",Nt.grantee=no.grantee??"",Nt.allowance=no.allowance!==void 0&&no.allowance!==null?st.Any.fromPartial(no.allowance):void 0,Nt}}}(feegrant),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,eo,Wt,St){St===void 0&&(St=Wt);var Ot=Object.getOwnPropertyDescriptor(eo,Wt);(!Ot||("get"in Ot?!eo.__esModule:Ot.writable||Ot.configurable))&&(Ot={enumerable:!0,get:function(){return eo[Wt]}}),Object.defineProperty(Nt,St,Ot)}:function(Nt,eo,Wt,St){St===void 0&&(St=Wt),Nt[St]=eo[Wt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,eo){Object.defineProperty(Nt,"default",{enumerable:!0,value:eo})}:function(Nt,eo){Nt.default=eo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var eo={};if(Nt!=null)for(var Wt in Nt)Wt!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Wt)&&cr(eo,Nt,Wt);return gr(eo,Nt),eo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryAllowancesByGranterResponse=_e.QueryAllowancesByGranterRequest=_e.QueryAllowancesResponse=_e.QueryAllowancesRequest=_e.QueryAllowanceResponse=_e.QueryAllowanceRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=feegrant,nt=Cr(minimal),st=helpers;_e.protobufPackage="cosmos.feegrant.v1beta1";function dt(){return{granter:"",grantee:""}}_e.QueryAllowanceRequest={encode(Nt,eo=nt.Writer.create()){return Nt.granter!==""&&eo.uint32(10).string(Nt.granter),Nt.grantee!==""&&eo.uint32(18).string(Nt.grantee),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=dt();for(;Wt.pos>>3){case 1:Ot.granter=Wt.string();break;case 2:Ot.grantee=Wt.string();break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{granter:(0,st.isSet)(Nt.granter)?String(Nt.granter):"",grantee:(0,st.isSet)(Nt.grantee)?String(Nt.grantee):""}},toJSON(Nt){const eo={};return Nt.granter!==void 0&&(eo.granter=Nt.granter),Nt.grantee!==void 0&&(eo.grantee=Nt.grantee),eo},fromPartial(Nt){const eo=dt();return eo.granter=Nt.granter??"",eo.grantee=Nt.grantee??"",eo}};function kt(){return{allowance:void 0}}_e.QueryAllowanceResponse={encode(Nt,eo=nt.Writer.create()){return Nt.allowance!==void 0&&tt.Grant.encode(Nt.allowance,eo.uint32(10).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=kt();for(;Wt.pos>>3){case 1:Ot.allowance=tt.Grant.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{allowance:(0,st.isSet)(Nt.allowance)?tt.Grant.fromJSON(Nt.allowance):void 0}},toJSON(Nt){const eo={};return Nt.allowance!==void 0&&(eo.allowance=Nt.allowance?tt.Grant.toJSON(Nt.allowance):void 0),eo},fromPartial(Nt){const eo=kt();return eo.allowance=Nt.allowance!==void 0&&Nt.allowance!==null?tt.Grant.fromPartial(Nt.allowance):void 0,eo}};function qt(){return{grantee:"",pagination:void 0}}_e.QueryAllowancesRequest={encode(Nt,eo=nt.Writer.create()){return Nt.grantee!==""&&eo.uint32(10).string(Nt.grantee),Nt.pagination!==void 0&&Vr.PageRequest.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=qt();for(;Wt.pos>>3){case 1:Ot.grantee=Wt.string();break;case 2:Ot.pagination=Vr.PageRequest.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{grantee:(0,st.isSet)(Nt.grantee)?String(Nt.grantee):"",pagination:(0,st.isSet)(Nt.pagination)?Vr.PageRequest.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.grantee!==void 0&&(eo.grantee=Nt.grantee),Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageRequest.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){const eo=qt();return eo.grantee=Nt.grantee??"",eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageRequest.fromPartial(Nt.pagination):void 0,eo}};function ro(){return{allowances:[],pagination:void 0}}_e.QueryAllowancesResponse={encode(Nt,eo=nt.Writer.create()){for(const Wt of Nt.allowances)tt.Grant.encode(Wt,eo.uint32(10).fork()).ldelim();return Nt.pagination!==void 0&&Vr.PageResponse.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ro();for(;Wt.pos>>3){case 1:Ot.allowances.push(tt.Grant.decode(Wt,Wt.uint32()));break;case 2:Ot.pagination=Vr.PageResponse.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{allowances:Array.isArray(Nt==null?void 0:Nt.allowances)?Nt.allowances.map(eo=>tt.Grant.fromJSON(eo)):[],pagination:(0,st.isSet)(Nt.pagination)?Vr.PageResponse.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.allowances?eo.allowances=Nt.allowances.map(Wt=>Wt?tt.Grant.toJSON(Wt):void 0):eo.allowances=[],Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageResponse.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){var Wt;const eo=ro();return eo.allowances=((Wt=Nt.allowances)==null?void 0:Wt.map(St=>tt.Grant.fromPartial(St)))||[],eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageResponse.fromPartial(Nt.pagination):void 0,eo}};function ht(){return{granter:"",pagination:void 0}}_e.QueryAllowancesByGranterRequest={encode(Nt,eo=nt.Writer.create()){return Nt.granter!==""&&eo.uint32(10).string(Nt.granter),Nt.pagination!==void 0&&Vr.PageRequest.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ht();for(;Wt.pos>>3){case 1:Ot.granter=Wt.string();break;case 2:Ot.pagination=Vr.PageRequest.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{granter:(0,st.isSet)(Nt.granter)?String(Nt.granter):"",pagination:(0,st.isSet)(Nt.pagination)?Vr.PageRequest.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.granter!==void 0&&(eo.granter=Nt.granter),Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageRequest.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){const eo=ht();return eo.granter=Nt.granter??"",eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageRequest.fromPartial(Nt.pagination):void 0,eo}};function po(){return{allowances:[],pagination:void 0}}_e.QueryAllowancesByGranterResponse={encode(Nt,eo=nt.Writer.create()){for(const Wt of Nt.allowances)tt.Grant.encode(Wt,eo.uint32(10).fork()).ldelim();return Nt.pagination!==void 0&&Vr.PageResponse.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=po();for(;Wt.pos>>3){case 1:Ot.allowances.push(tt.Grant.decode(Wt,Wt.uint32()));break;case 2:Ot.pagination=Vr.PageResponse.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{allowances:Array.isArray(Nt==null?void 0:Nt.allowances)?Nt.allowances.map(eo=>tt.Grant.fromJSON(eo)):[],pagination:(0,st.isSet)(Nt.pagination)?Vr.PageResponse.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.allowances?eo.allowances=Nt.allowances.map(Wt=>Wt?tt.Grant.toJSON(Wt):void 0):eo.allowances=[],Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageResponse.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){var Wt;const eo=po();return eo.allowances=((Wt=Nt.allowances)==null?void 0:Wt.map(St=>tt.Grant.fromPartial(St)))||[],eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageResponse.fromPartial(Nt.pagination):void 0,eo}};class no{constructor(eo){this.rpc=eo,this.Allowance=this.Allowance.bind(this),this.Allowances=this.Allowances.bind(this),this.AllowancesByGranter=this.AllowancesByGranter.bind(this)}Allowance(eo){const Wt=_e.QueryAllowanceRequest.encode(eo).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowance",Wt).then(St=>_e.QueryAllowanceResponse.decode(new nt.Reader(St)))}Allowances(eo){const Wt=_e.QueryAllowancesRequest.encode(eo).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowances",Wt).then(St=>_e.QueryAllowancesResponse.decode(new nt.Reader(St)))}AllowancesByGranter(eo){const Wt=_e.QueryAllowancesByGranterRequest.encode(eo).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Query","AllowancesByGranter",Wt).then(St=>_e.QueryAllowancesByGranterResponse.decode(new nt.Reader(St)))}}_e.QueryClientImpl=no}(query$9),Object.defineProperty(queries$7,"__esModule",{value:!0}),queries$7.setupFeegrantExtension=void 0;const query_1$6=query$9,queryclient_1$8=queryclient$1;function setupFeegrantExtension(_e){const cr=(0,queryclient_1$8.createProtobufRpcClient)(_e),gr=new query_1$6.QueryClientImpl(cr);return{feegrant:{allowance:async(Cr,Vr)=>await gr.Allowance({granter:Cr,grantee:Vr}),allowances:async(Cr,Vr)=>await gr.Allowances({grantee:Cr,pagination:(0,queryclient_1$8.createPagination)(Vr)})}}}queries$7.setupFeegrantExtension=setupFeegrantExtension;var aminomessages$6={},gov$1={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(pt,lo,so,wo){wo===void 0&&(wo=so);var xt=Object.getOwnPropertyDescriptor(lo,so);(!xt||("get"in xt?!lo.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return lo[so]}}),Object.defineProperty(pt,wo,xt)}:function(pt,lo,so,wo){wo===void 0&&(wo=so),pt[wo]=lo[so]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(pt,lo){Object.defineProperty(pt,"default",{enumerable:!0,value:lo})}:function(pt,lo){pt.default=lo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(pt){if(pt&&pt.__esModule)return pt;var lo={};if(pt!=null)for(var so in pt)so!=="default"&&Object.prototype.hasOwnProperty.call(pt,so)&&cr(lo,pt,so);return gr(lo,pt),lo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TallyParams=_e.VotingParams=_e.DepositParams=_e.Vote=_e.TallyResult=_e.Proposal=_e.Deposit=_e.TextProposal=_e.WeightedVoteOption=_e.proposalStatusToJSON=_e.proposalStatusFromJSON=_e.ProposalStatus=_e.voteOptionToJSON=_e.voteOptionFromJSON=_e.VoteOption=_e.protobufPackage=void 0;const Vr=coin$1,tt=any,nt=timestamp,st=duration$1,dt=helpers,kt=Cr(minimal);_e.protobufPackage="cosmos.gov.v1beta1";var qt;(function(pt){pt[pt.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",pt[pt.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",pt[pt.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",pt[pt.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",pt[pt.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",pt[pt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qt=_e.VoteOption||(_e.VoteOption={}));function ro(pt){switch(pt){case 0:case"VOTE_OPTION_UNSPECIFIED":return qt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return qt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return qt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return qt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return qt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return qt.UNRECOGNIZED}}_e.voteOptionFromJSON=ro;function ht(pt){switch(pt){case qt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case qt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case qt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case qt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case qt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.voteOptionToJSON=ht;var po;(function(pt){pt[pt.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",pt[pt.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",pt[pt.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",pt[pt.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",pt[pt.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",pt[pt.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",pt[pt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(po=_e.ProposalStatus||(_e.ProposalStatus={}));function no(pt){switch(pt){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return po.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return po.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return po.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return po.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return po.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return po.PROPOSAL_STATUS_FAILED;case-1:case"UNRECOGNIZED":default:return po.UNRECOGNIZED}}_e.proposalStatusFromJSON=no;function Nt(pt){switch(pt){case po.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case po.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case po.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case po.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case po.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case po.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case po.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.proposalStatusToJSON=Nt;function eo(){return{option:0,weight:""}}_e.WeightedVoteOption={encode(pt,lo=kt.Writer.create()){return pt.option!==0&&lo.uint32(8).int32(pt.option),pt.weight!==""&&lo.uint32(18).string(pt.weight),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=eo();for(;so.pos>>3){case 1:xt.option=so.int32();break;case 2:xt.weight=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{option:(0,dt.isSet)(pt.option)?ro(pt.option):0,weight:(0,dt.isSet)(pt.weight)?String(pt.weight):""}},toJSON(pt){const lo={};return pt.option!==void 0&&(lo.option=ht(pt.option)),pt.weight!==void 0&&(lo.weight=pt.weight),lo},fromPartial(pt){const lo=eo();return lo.option=pt.option??0,lo.weight=pt.weight??"",lo}};function Wt(){return{title:"",description:""}}_e.TextProposal={encode(pt,lo=kt.Writer.create()){return pt.title!==""&&lo.uint32(10).string(pt.title),pt.description!==""&&lo.uint32(18).string(pt.description),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Wt();for(;so.pos>>3){case 1:xt.title=so.string();break;case 2:xt.description=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{title:(0,dt.isSet)(pt.title)?String(pt.title):"",description:(0,dt.isSet)(pt.description)?String(pt.description):""}},toJSON(pt){const lo={};return pt.title!==void 0&&(lo.title=pt.title),pt.description!==void 0&&(lo.description=pt.description),lo},fromPartial(pt){const lo=Wt();return lo.title=pt.title??"",lo.description=pt.description??"",lo}};function St(){return{proposalId:dt.Long.UZERO,depositor:"",amount:[]}}_e.Deposit={encode(pt,lo=kt.Writer.create()){pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.depositor!==""&&lo.uint32(18).string(pt.depositor);for(const so of pt.amount)Vr.Coin.encode(so,lo.uint32(26).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=St();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.depositor=so.string();break;case 3:xt.amount.push(Vr.Coin.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,dt.isSet)(pt.proposalId)?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,depositor:(0,dt.isSet)(pt.depositor)?String(pt.depositor):"",amount:Array.isArray(pt==null?void 0:pt.amount)?pt.amount.map(lo=>Vr.Coin.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||dt.Long.UZERO).toString()),pt.depositor!==void 0&&(lo.depositor=pt.depositor),pt.amount?lo.amount=pt.amount.map(so=>so?Vr.Coin.toJSON(so):void 0):lo.amount=[],lo},fromPartial(pt){var so;const lo=St();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,lo.depositor=pt.depositor??"",lo.amount=((so=pt.amount)==null?void 0:so.map(wo=>Vr.Coin.fromPartial(wo)))||[],lo}};function Ot(){return{proposalId:dt.Long.UZERO,content:void 0,status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0}}_e.Proposal={encode(pt,lo=kt.Writer.create()){pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.content!==void 0&&tt.Any.encode(pt.content,lo.uint32(18).fork()).ldelim(),pt.status!==0&&lo.uint32(24).int32(pt.status),pt.finalTallyResult!==void 0&&_e.TallyResult.encode(pt.finalTallyResult,lo.uint32(34).fork()).ldelim(),pt.submitTime!==void 0&&nt.Timestamp.encode(pt.submitTime,lo.uint32(42).fork()).ldelim(),pt.depositEndTime!==void 0&&nt.Timestamp.encode(pt.depositEndTime,lo.uint32(50).fork()).ldelim();for(const so of pt.totalDeposit)Vr.Coin.encode(so,lo.uint32(58).fork()).ldelim();return pt.votingStartTime!==void 0&&nt.Timestamp.encode(pt.votingStartTime,lo.uint32(66).fork()).ldelim(),pt.votingEndTime!==void 0&&nt.Timestamp.encode(pt.votingEndTime,lo.uint32(74).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ot();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.content=tt.Any.decode(so,so.uint32());break;case 3:xt.status=so.int32();break;case 4:xt.finalTallyResult=_e.TallyResult.decode(so,so.uint32());break;case 5:xt.submitTime=nt.Timestamp.decode(so,so.uint32());break;case 6:xt.depositEndTime=nt.Timestamp.decode(so,so.uint32());break;case 7:xt.totalDeposit.push(Vr.Coin.decode(so,so.uint32()));break;case 8:xt.votingStartTime=nt.Timestamp.decode(so,so.uint32());break;case 9:xt.votingEndTime=nt.Timestamp.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,dt.isSet)(pt.proposalId)?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,content:(0,dt.isSet)(pt.content)?tt.Any.fromJSON(pt.content):void 0,status:(0,dt.isSet)(pt.status)?no(pt.status):0,finalTallyResult:(0,dt.isSet)(pt.finalTallyResult)?_e.TallyResult.fromJSON(pt.finalTallyResult):void 0,submitTime:(0,dt.isSet)(pt.submitTime)?(0,dt.fromJsonTimestamp)(pt.submitTime):void 0,depositEndTime:(0,dt.isSet)(pt.depositEndTime)?(0,dt.fromJsonTimestamp)(pt.depositEndTime):void 0,totalDeposit:Array.isArray(pt==null?void 0:pt.totalDeposit)?pt.totalDeposit.map(lo=>Vr.Coin.fromJSON(lo)):[],votingStartTime:(0,dt.isSet)(pt.votingStartTime)?(0,dt.fromJsonTimestamp)(pt.votingStartTime):void 0,votingEndTime:(0,dt.isSet)(pt.votingEndTime)?(0,dt.fromJsonTimestamp)(pt.votingEndTime):void 0}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||dt.Long.UZERO).toString()),pt.content!==void 0&&(lo.content=pt.content?tt.Any.toJSON(pt.content):void 0),pt.status!==void 0&&(lo.status=Nt(pt.status)),pt.finalTallyResult!==void 0&&(lo.finalTallyResult=pt.finalTallyResult?_e.TallyResult.toJSON(pt.finalTallyResult):void 0),pt.submitTime!==void 0&&(lo.submitTime=(0,dt.fromTimestamp)(pt.submitTime).toISOString()),pt.depositEndTime!==void 0&&(lo.depositEndTime=(0,dt.fromTimestamp)(pt.depositEndTime).toISOString()),pt.totalDeposit?lo.totalDeposit=pt.totalDeposit.map(so=>so?Vr.Coin.toJSON(so):void 0):lo.totalDeposit=[],pt.votingStartTime!==void 0&&(lo.votingStartTime=(0,dt.fromTimestamp)(pt.votingStartTime).toISOString()),pt.votingEndTime!==void 0&&(lo.votingEndTime=(0,dt.fromTimestamp)(pt.votingEndTime).toISOString()),lo},fromPartial(pt){var so;const lo=Ot();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,lo.content=pt.content!==void 0&&pt.content!==null?tt.Any.fromPartial(pt.content):void 0,lo.status=pt.status??0,lo.finalTallyResult=pt.finalTallyResult!==void 0&&pt.finalTallyResult!==null?_e.TallyResult.fromPartial(pt.finalTallyResult):void 0,lo.submitTime=pt.submitTime!==void 0&&pt.submitTime!==null?nt.Timestamp.fromPartial(pt.submitTime):void 0,lo.depositEndTime=pt.depositEndTime!==void 0&&pt.depositEndTime!==null?nt.Timestamp.fromPartial(pt.depositEndTime):void 0,lo.totalDeposit=((so=pt.totalDeposit)==null?void 0:so.map(wo=>Vr.Coin.fromPartial(wo)))||[],lo.votingStartTime=pt.votingStartTime!==void 0&&pt.votingStartTime!==null?nt.Timestamp.fromPartial(pt.votingStartTime):void 0,lo.votingEndTime=pt.votingEndTime!==void 0&&pt.votingEndTime!==null?nt.Timestamp.fromPartial(pt.votingEndTime):void 0,lo}};function uo(){return{yes:"",abstain:"",no:"",noWithVeto:""}}_e.TallyResult={encode(pt,lo=kt.Writer.create()){return pt.yes!==""&&lo.uint32(10).string(pt.yes),pt.abstain!==""&&lo.uint32(18).string(pt.abstain),pt.no!==""&&lo.uint32(26).string(pt.no),pt.noWithVeto!==""&&lo.uint32(34).string(pt.noWithVeto),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=uo();for(;so.pos>>3){case 1:xt.yes=so.string();break;case 2:xt.abstain=so.string();break;case 3:xt.no=so.string();break;case 4:xt.noWithVeto=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{yes:(0,dt.isSet)(pt.yes)?String(pt.yes):"",abstain:(0,dt.isSet)(pt.abstain)?String(pt.abstain):"",no:(0,dt.isSet)(pt.no)?String(pt.no):"",noWithVeto:(0,dt.isSet)(pt.noWithVeto)?String(pt.noWithVeto):""}},toJSON(pt){const lo={};return pt.yes!==void 0&&(lo.yes=pt.yes),pt.abstain!==void 0&&(lo.abstain=pt.abstain),pt.no!==void 0&&(lo.no=pt.no),pt.noWithVeto!==void 0&&(lo.noWithVeto=pt.noWithVeto),lo},fromPartial(pt){const lo=uo();return lo.yes=pt.yes??"",lo.abstain=pt.abstain??"",lo.no=pt.no??"",lo.noWithVeto=pt.noWithVeto??"",lo}};function go(){return{proposalId:dt.Long.UZERO,voter:"",option:0,options:[]}}_e.Vote={encode(pt,lo=kt.Writer.create()){pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.voter!==""&&lo.uint32(18).string(pt.voter),pt.option!==0&&lo.uint32(24).int32(pt.option);for(const so of pt.options)_e.WeightedVoteOption.encode(so,lo.uint32(34).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=go();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.voter=so.string();break;case 3:xt.option=so.int32();break;case 4:xt.options.push(_e.WeightedVoteOption.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,dt.isSet)(pt.proposalId)?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,voter:(0,dt.isSet)(pt.voter)?String(pt.voter):"",option:(0,dt.isSet)(pt.option)?ro(pt.option):0,options:Array.isArray(pt==null?void 0:pt.options)?pt.options.map(lo=>_e.WeightedVoteOption.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||dt.Long.UZERO).toString()),pt.voter!==void 0&&(lo.voter=pt.voter),pt.option!==void 0&&(lo.option=ht(pt.option)),pt.options?lo.options=pt.options.map(so=>so?_e.WeightedVoteOption.toJSON(so):void 0):lo.options=[],lo},fromPartial(pt){var so;const lo=go();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,lo.voter=pt.voter??"",lo.option=pt.option??0,lo.options=((so=pt.options)==null?void 0:so.map(wo=>_e.WeightedVoteOption.fromPartial(wo)))||[],lo}};function bo(){return{minDeposit:[],maxDepositPeriod:void 0}}_e.DepositParams={encode(pt,lo=kt.Writer.create()){for(const so of pt.minDeposit)Vr.Coin.encode(so,lo.uint32(10).fork()).ldelim();return pt.maxDepositPeriod!==void 0&&st.Duration.encode(pt.maxDepositPeriod,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=bo();for(;so.pos>>3){case 1:xt.minDeposit.push(Vr.Coin.decode(so,so.uint32()));break;case 2:xt.maxDepositPeriod=st.Duration.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{minDeposit:Array.isArray(pt==null?void 0:pt.minDeposit)?pt.minDeposit.map(lo=>Vr.Coin.fromJSON(lo)):[],maxDepositPeriod:(0,dt.isSet)(pt.maxDepositPeriod)?st.Duration.fromJSON(pt.maxDepositPeriod):void 0}},toJSON(pt){const lo={};return pt.minDeposit?lo.minDeposit=pt.minDeposit.map(so=>so?Vr.Coin.toJSON(so):void 0):lo.minDeposit=[],pt.maxDepositPeriod!==void 0&&(lo.maxDepositPeriod=pt.maxDepositPeriod?st.Duration.toJSON(pt.maxDepositPeriod):void 0),lo},fromPartial(pt){var so;const lo=bo();return lo.minDeposit=((so=pt.minDeposit)==null?void 0:so.map(wo=>Vr.Coin.fromPartial(wo)))||[],lo.maxDepositPeriod=pt.maxDepositPeriod!==void 0&&pt.maxDepositPeriod!==null?st.Duration.fromPartial(pt.maxDepositPeriod):void 0,lo}};function oo(){return{votingPeriod:void 0}}_e.VotingParams={encode(pt,lo=kt.Writer.create()){return pt.votingPeriod!==void 0&&st.Duration.encode(pt.votingPeriod,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=oo();for(;so.pos>>3){case 1:xt.votingPeriod=st.Duration.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{votingPeriod:(0,dt.isSet)(pt.votingPeriod)?st.Duration.fromJSON(pt.votingPeriod):void 0}},toJSON(pt){const lo={};return pt.votingPeriod!==void 0&&(lo.votingPeriod=pt.votingPeriod?st.Duration.toJSON(pt.votingPeriod):void 0),lo},fromPartial(pt){const lo=oo();return lo.votingPeriod=pt.votingPeriod!==void 0&&pt.votingPeriod!==null?st.Duration.fromPartial(pt.votingPeriod):void 0,lo}};function Ro(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}_e.TallyParams={encode(pt,lo=kt.Writer.create()){return pt.quorum.length!==0&&lo.uint32(10).bytes(pt.quorum),pt.threshold.length!==0&&lo.uint32(18).bytes(pt.threshold),pt.vetoThreshold.length!==0&&lo.uint32(26).bytes(pt.vetoThreshold),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ro();for(;so.pos>>3){case 1:xt.quorum=so.bytes();break;case 2:xt.threshold=so.bytes();break;case 3:xt.vetoThreshold=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{quorum:(0,dt.isSet)(pt.quorum)?(0,dt.bytesFromBase64)(pt.quorum):new Uint8Array,threshold:(0,dt.isSet)(pt.threshold)?(0,dt.bytesFromBase64)(pt.threshold):new Uint8Array,vetoThreshold:(0,dt.isSet)(pt.vetoThreshold)?(0,dt.bytesFromBase64)(pt.vetoThreshold):new Uint8Array}},toJSON(pt){const lo={};return pt.quorum!==void 0&&(lo.quorum=(0,dt.base64FromBytes)(pt.quorum!==void 0?pt.quorum:new Uint8Array)),pt.threshold!==void 0&&(lo.threshold=(0,dt.base64FromBytes)(pt.threshold!==void 0?pt.threshold:new Uint8Array)),pt.vetoThreshold!==void 0&&(lo.vetoThreshold=(0,dt.base64FromBytes)(pt.vetoThreshold!==void 0?pt.vetoThreshold:new Uint8Array)),lo},fromPartial(pt){const lo=Ro();return lo.quorum=pt.quorum??new Uint8Array,lo.threshold=pt.threshold??new Uint8Array,lo.vetoThreshold=pt.vetoThreshold??new Uint8Array,lo}}})(gov$1);var __importDefault$d=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};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$8=build$b,utils_1$9=build$6,gov_1=gov$1,any_1=any,long_1$9=__importDefault$d(long),queryclient_1$7=queryclient$1;function isAminoMsgSubmitProposal(_e){return _e.type==="cosmos-sdk/MsgSubmitProposal"}aminomessages$6.isAminoMsgSubmitProposal=isAminoMsgSubmitProposal;function isAminoMsgVote(_e){return _e.type==="cosmos-sdk/MsgVote"}aminomessages$6.isAminoMsgVote=isAminoMsgVote;function isAminoMsgVoteWeighted(_e){return _e.type==="cosmos-sdk/MsgVoteWeighted"}aminomessages$6.isAminoMsgVoteWeighted=isAminoMsgVoteWeighted;function isAminoMsgDeposit(_e){return _e.type==="cosmos-sdk/MsgDeposit"}aminomessages$6.isAminoMsgDeposit=isAminoMsgDeposit;function createGovAminoConverters(){return{"/cosmos.gov.v1beta1.MsgDeposit":{aminoType:"cosmos-sdk/MsgDeposit",toAmino:({amount:_e,depositor:cr,proposalId:gr})=>({amount:_e,depositor:cr,proposal_id:gr.toString()}),fromAmino:({amount:_e,depositor:cr,proposal_id:gr})=>({amount:Array.from(_e),depositor:cr,proposalId:long_1$9.default.fromString(gr)})},"/cosmos.gov.v1beta1.MsgVote":{aminoType:"cosmos-sdk/MsgVote",toAmino:({option:_e,proposalId:cr,voter:gr})=>({option:_e,proposal_id:cr.toString(),voter:gr}),fromAmino:({option:_e,proposal_id:cr,voter:gr})=>({option:(0,gov_1.voteOptionFromJSON)(_e),proposalId:long_1$9.default.fromString(cr),voter:gr})},"/cosmos.gov.v1beta1.MsgVoteWeighted":{aminoType:"cosmos-sdk/MsgVoteWeighted",toAmino:({options:_e,proposalId:cr,voter:gr})=>({options:_e.map(Cr=>({option:Cr.option,weight:(0,queryclient_1$7.decodeCosmosSdkDecFromProto)(Cr.weight).toString().padEnd(20,"0")})),proposal_id:cr.toString(),voter:gr}),fromAmino:({options:_e,proposal_id:cr,voter:gr})=>({proposalId:long_1$9.default.fromString(cr),voter:gr,options:_e.map(Cr=>({option:(0,gov_1.voteOptionFromJSON)(Cr.option),weight:math_1$8.Decimal.fromUserInput(Cr.weight,18).atomics}))})},"/cosmos.gov.v1beta1.MsgSubmitProposal":{aminoType:"cosmos-sdk/MsgSubmitProposal",toAmino:({initialDeposit:_e,proposer:cr,content:gr})=>{(0,utils_1$9.assertDefinedAndNotNull)(gr);let Cr;switch(gr.typeUrl){case"/cosmos.gov.v1beta1.TextProposal":{const Vr=gov_1.TextProposal.decode(gr.value);Cr={type:"cosmos-sdk/TextProposal",value:{description:Vr.description,title:Vr.title}};break}default:throw new Error(`Unsupported proposal type: '${gr.typeUrl}'`)}return{initial_deposit:_e,proposer:cr,content:Cr}},fromAmino:({initial_deposit:_e,proposer:cr,content:gr})=>{let Cr;switch(gr.type){case"cosmos-sdk/TextProposal":{const{value:Vr}=gr;(0,utils_1$9.assert)((0,utils_1$9.isNonNullObject)(Vr));const{title:tt,description:nt}=Vr;(0,utils_1$9.assert)(typeof tt=="string"),(0,utils_1$9.assert)(typeof nt=="string"),Cr=any_1.Any.fromPartial({typeUrl:"/cosmos.gov.v1beta1.TextProposal",value:gov_1.TextProposal.encode(gov_1.TextProposal.fromPartial({title:tt,description:nt})).finish()});break}default:throw new Error(`Unsupported proposal type: '${gr.type}'`)}return{initialDeposit:Array.from(_e),proposer:cr,content:Cr}}}}}aminomessages$6.createGovAminoConverters=createGovAminoConverters;var messages$6={},tx$9={},gov={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(pt,lo,so,wo){wo===void 0&&(wo=so);var xt=Object.getOwnPropertyDescriptor(lo,so);(!xt||("get"in xt?!lo.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return lo[so]}}),Object.defineProperty(pt,wo,xt)}:function(pt,lo,so,wo){wo===void 0&&(wo=so),pt[wo]=lo[so]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(pt,lo){Object.defineProperty(pt,"default",{enumerable:!0,value:lo})}:function(pt,lo){pt.default=lo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(pt){if(pt&&pt.__esModule)return pt;var lo={};if(pt!=null)for(var so in pt)so!=="default"&&Object.prototype.hasOwnProperty.call(pt,so)&&cr(lo,pt,so);return gr(lo,pt),lo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Params=_e.TallyParams=_e.VotingParams=_e.DepositParams=_e.Vote=_e.TallyResult=_e.Proposal=_e.Deposit=_e.WeightedVoteOption=_e.proposalStatusToJSON=_e.proposalStatusFromJSON=_e.ProposalStatus=_e.voteOptionToJSON=_e.voteOptionFromJSON=_e.VoteOption=_e.protobufPackage=void 0;const Vr=coin$1,tt=any,nt=timestamp,st=duration$1,dt=helpers,kt=Cr(minimal);_e.protobufPackage="cosmos.gov.v1";var qt;(function(pt){pt[pt.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",pt[pt.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",pt[pt.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",pt[pt.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",pt[pt.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",pt[pt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qt=_e.VoteOption||(_e.VoteOption={}));function ro(pt){switch(pt){case 0:case"VOTE_OPTION_UNSPECIFIED":return qt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return qt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return qt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return qt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return qt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return qt.UNRECOGNIZED}}_e.voteOptionFromJSON=ro;function ht(pt){switch(pt){case qt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case qt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case qt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case qt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case qt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.voteOptionToJSON=ht;var po;(function(pt){pt[pt.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",pt[pt.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",pt[pt.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",pt[pt.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",pt[pt.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",pt[pt.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",pt[pt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(po=_e.ProposalStatus||(_e.ProposalStatus={}));function no(pt){switch(pt){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return po.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return po.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return po.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return po.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return po.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return po.PROPOSAL_STATUS_FAILED;case-1:case"UNRECOGNIZED":default:return po.UNRECOGNIZED}}_e.proposalStatusFromJSON=no;function Nt(pt){switch(pt){case po.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case po.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case po.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case po.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case po.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case po.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case po.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.proposalStatusToJSON=Nt;function eo(){return{option:0,weight:""}}_e.WeightedVoteOption={encode(pt,lo=kt.Writer.create()){return pt.option!==0&&lo.uint32(8).int32(pt.option),pt.weight!==""&&lo.uint32(18).string(pt.weight),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=eo();for(;so.pos>>3){case 1:xt.option=so.int32();break;case 2:xt.weight=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{option:(0,dt.isSet)(pt.option)?ro(pt.option):0,weight:(0,dt.isSet)(pt.weight)?String(pt.weight):""}},toJSON(pt){const lo={};return pt.option!==void 0&&(lo.option=ht(pt.option)),pt.weight!==void 0&&(lo.weight=pt.weight),lo},fromPartial(pt){const lo=eo();return lo.option=pt.option??0,lo.weight=pt.weight??"",lo}};function Wt(){return{proposalId:dt.Long.UZERO,depositor:"",amount:[]}}_e.Deposit={encode(pt,lo=kt.Writer.create()){pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.depositor!==""&&lo.uint32(18).string(pt.depositor);for(const so of pt.amount)Vr.Coin.encode(so,lo.uint32(26).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Wt();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.depositor=so.string();break;case 3:xt.amount.push(Vr.Coin.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,dt.isSet)(pt.proposalId)?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,depositor:(0,dt.isSet)(pt.depositor)?String(pt.depositor):"",amount:Array.isArray(pt==null?void 0:pt.amount)?pt.amount.map(lo=>Vr.Coin.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||dt.Long.UZERO).toString()),pt.depositor!==void 0&&(lo.depositor=pt.depositor),pt.amount?lo.amount=pt.amount.map(so=>so?Vr.Coin.toJSON(so):void 0):lo.amount=[],lo},fromPartial(pt){var so;const lo=Wt();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,lo.depositor=pt.depositor??"",lo.amount=((so=pt.amount)==null?void 0:so.map(wo=>Vr.Coin.fromPartial(wo)))||[],lo}};function St(){return{id:dt.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:""}}_e.Proposal={encode(pt,lo=kt.Writer.create()){pt.id.isZero()||lo.uint32(8).uint64(pt.id);for(const so of pt.messages)tt.Any.encode(so,lo.uint32(18).fork()).ldelim();pt.status!==0&&lo.uint32(24).int32(pt.status),pt.finalTallyResult!==void 0&&_e.TallyResult.encode(pt.finalTallyResult,lo.uint32(34).fork()).ldelim(),pt.submitTime!==void 0&&nt.Timestamp.encode(pt.submitTime,lo.uint32(42).fork()).ldelim(),pt.depositEndTime!==void 0&&nt.Timestamp.encode(pt.depositEndTime,lo.uint32(50).fork()).ldelim();for(const so of pt.totalDeposit)Vr.Coin.encode(so,lo.uint32(58).fork()).ldelim();return pt.votingStartTime!==void 0&&nt.Timestamp.encode(pt.votingStartTime,lo.uint32(66).fork()).ldelim(),pt.votingEndTime!==void 0&&nt.Timestamp.encode(pt.votingEndTime,lo.uint32(74).fork()).ldelim(),pt.metadata!==""&&lo.uint32(82).string(pt.metadata),pt.title!==""&&lo.uint32(90).string(pt.title),pt.summary!==""&&lo.uint32(98).string(pt.summary),pt.proposer!==""&&lo.uint32(106).string(pt.proposer),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=St();for(;so.pos>>3){case 1:xt.id=so.uint64();break;case 2:xt.messages.push(tt.Any.decode(so,so.uint32()));break;case 3:xt.status=so.int32();break;case 4:xt.finalTallyResult=_e.TallyResult.decode(so,so.uint32());break;case 5:xt.submitTime=nt.Timestamp.decode(so,so.uint32());break;case 6:xt.depositEndTime=nt.Timestamp.decode(so,so.uint32());break;case 7:xt.totalDeposit.push(Vr.Coin.decode(so,so.uint32()));break;case 8:xt.votingStartTime=nt.Timestamp.decode(so,so.uint32());break;case 9:xt.votingEndTime=nt.Timestamp.decode(so,so.uint32());break;case 10:xt.metadata=so.string();break;case 11:xt.title=so.string();break;case 12:xt.summary=so.string();break;case 13:xt.proposer=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{id:(0,dt.isSet)(pt.id)?dt.Long.fromValue(pt.id):dt.Long.UZERO,messages:Array.isArray(pt==null?void 0:pt.messages)?pt.messages.map(lo=>tt.Any.fromJSON(lo)):[],status:(0,dt.isSet)(pt.status)?no(pt.status):0,finalTallyResult:(0,dt.isSet)(pt.finalTallyResult)?_e.TallyResult.fromJSON(pt.finalTallyResult):void 0,submitTime:(0,dt.isSet)(pt.submitTime)?(0,dt.fromJsonTimestamp)(pt.submitTime):void 0,depositEndTime:(0,dt.isSet)(pt.depositEndTime)?(0,dt.fromJsonTimestamp)(pt.depositEndTime):void 0,totalDeposit:Array.isArray(pt==null?void 0:pt.totalDeposit)?pt.totalDeposit.map(lo=>Vr.Coin.fromJSON(lo)):[],votingStartTime:(0,dt.isSet)(pt.votingStartTime)?(0,dt.fromJsonTimestamp)(pt.votingStartTime):void 0,votingEndTime:(0,dt.isSet)(pt.votingEndTime)?(0,dt.fromJsonTimestamp)(pt.votingEndTime):void 0,metadata:(0,dt.isSet)(pt.metadata)?String(pt.metadata):"",title:(0,dt.isSet)(pt.title)?String(pt.title):"",summary:(0,dt.isSet)(pt.summary)?String(pt.summary):"",proposer:(0,dt.isSet)(pt.proposer)?String(pt.proposer):""}},toJSON(pt){const lo={};return pt.id!==void 0&&(lo.id=(pt.id||dt.Long.UZERO).toString()),pt.messages?lo.messages=pt.messages.map(so=>so?tt.Any.toJSON(so):void 0):lo.messages=[],pt.status!==void 0&&(lo.status=Nt(pt.status)),pt.finalTallyResult!==void 0&&(lo.finalTallyResult=pt.finalTallyResult?_e.TallyResult.toJSON(pt.finalTallyResult):void 0),pt.submitTime!==void 0&&(lo.submitTime=(0,dt.fromTimestamp)(pt.submitTime).toISOString()),pt.depositEndTime!==void 0&&(lo.depositEndTime=(0,dt.fromTimestamp)(pt.depositEndTime).toISOString()),pt.totalDeposit?lo.totalDeposit=pt.totalDeposit.map(so=>so?Vr.Coin.toJSON(so):void 0):lo.totalDeposit=[],pt.votingStartTime!==void 0&&(lo.votingStartTime=(0,dt.fromTimestamp)(pt.votingStartTime).toISOString()),pt.votingEndTime!==void 0&&(lo.votingEndTime=(0,dt.fromTimestamp)(pt.votingEndTime).toISOString()),pt.metadata!==void 0&&(lo.metadata=pt.metadata),pt.title!==void 0&&(lo.title=pt.title),pt.summary!==void 0&&(lo.summary=pt.summary),pt.proposer!==void 0&&(lo.proposer=pt.proposer),lo},fromPartial(pt){var so,wo;const lo=St();return lo.id=pt.id!==void 0&&pt.id!==null?dt.Long.fromValue(pt.id):dt.Long.UZERO,lo.messages=((so=pt.messages)==null?void 0:so.map(xt=>tt.Any.fromPartial(xt)))||[],lo.status=pt.status??0,lo.finalTallyResult=pt.finalTallyResult!==void 0&&pt.finalTallyResult!==null?_e.TallyResult.fromPartial(pt.finalTallyResult):void 0,lo.submitTime=pt.submitTime!==void 0&&pt.submitTime!==null?nt.Timestamp.fromPartial(pt.submitTime):void 0,lo.depositEndTime=pt.depositEndTime!==void 0&&pt.depositEndTime!==null?nt.Timestamp.fromPartial(pt.depositEndTime):void 0,lo.totalDeposit=((wo=pt.totalDeposit)==null?void 0:wo.map(xt=>Vr.Coin.fromPartial(xt)))||[],lo.votingStartTime=pt.votingStartTime!==void 0&&pt.votingStartTime!==null?nt.Timestamp.fromPartial(pt.votingStartTime):void 0,lo.votingEndTime=pt.votingEndTime!==void 0&&pt.votingEndTime!==null?nt.Timestamp.fromPartial(pt.votingEndTime):void 0,lo.metadata=pt.metadata??"",lo.title=pt.title??"",lo.summary=pt.summary??"",lo.proposer=pt.proposer??"",lo}};function Ot(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}_e.TallyResult={encode(pt,lo=kt.Writer.create()){return pt.yesCount!==""&&lo.uint32(10).string(pt.yesCount),pt.abstainCount!==""&&lo.uint32(18).string(pt.abstainCount),pt.noCount!==""&&lo.uint32(26).string(pt.noCount),pt.noWithVetoCount!==""&&lo.uint32(34).string(pt.noWithVetoCount),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ot();for(;so.pos>>3){case 1:xt.yesCount=so.string();break;case 2:xt.abstainCount=so.string();break;case 3:xt.noCount=so.string();break;case 4:xt.noWithVetoCount=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{yesCount:(0,dt.isSet)(pt.yesCount)?String(pt.yesCount):"",abstainCount:(0,dt.isSet)(pt.abstainCount)?String(pt.abstainCount):"",noCount:(0,dt.isSet)(pt.noCount)?String(pt.noCount):"",noWithVetoCount:(0,dt.isSet)(pt.noWithVetoCount)?String(pt.noWithVetoCount):""}},toJSON(pt){const lo={};return pt.yesCount!==void 0&&(lo.yesCount=pt.yesCount),pt.abstainCount!==void 0&&(lo.abstainCount=pt.abstainCount),pt.noCount!==void 0&&(lo.noCount=pt.noCount),pt.noWithVetoCount!==void 0&&(lo.noWithVetoCount=pt.noWithVetoCount),lo},fromPartial(pt){const lo=Ot();return lo.yesCount=pt.yesCount??"",lo.abstainCount=pt.abstainCount??"",lo.noCount=pt.noCount??"",lo.noWithVetoCount=pt.noWithVetoCount??"",lo}};function uo(){return{proposalId:dt.Long.UZERO,voter:"",options:[],metadata:""}}_e.Vote={encode(pt,lo=kt.Writer.create()){pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.voter!==""&&lo.uint32(18).string(pt.voter);for(const so of pt.options)_e.WeightedVoteOption.encode(so,lo.uint32(34).fork()).ldelim();return pt.metadata!==""&&lo.uint32(42).string(pt.metadata),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=uo();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.voter=so.string();break;case 4:xt.options.push(_e.WeightedVoteOption.decode(so,so.uint32()));break;case 5:xt.metadata=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,dt.isSet)(pt.proposalId)?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,voter:(0,dt.isSet)(pt.voter)?String(pt.voter):"",options:Array.isArray(pt==null?void 0:pt.options)?pt.options.map(lo=>_e.WeightedVoteOption.fromJSON(lo)):[],metadata:(0,dt.isSet)(pt.metadata)?String(pt.metadata):""}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||dt.Long.UZERO).toString()),pt.voter!==void 0&&(lo.voter=pt.voter),pt.options?lo.options=pt.options.map(so=>so?_e.WeightedVoteOption.toJSON(so):void 0):lo.options=[],pt.metadata!==void 0&&(lo.metadata=pt.metadata),lo},fromPartial(pt){var so;const lo=uo();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?dt.Long.fromValue(pt.proposalId):dt.Long.UZERO,lo.voter=pt.voter??"",lo.options=((so=pt.options)==null?void 0:so.map(wo=>_e.WeightedVoteOption.fromPartial(wo)))||[],lo.metadata=pt.metadata??"",lo}};function go(){return{minDeposit:[],maxDepositPeriod:void 0}}_e.DepositParams={encode(pt,lo=kt.Writer.create()){for(const so of pt.minDeposit)Vr.Coin.encode(so,lo.uint32(10).fork()).ldelim();return pt.maxDepositPeriod!==void 0&&st.Duration.encode(pt.maxDepositPeriod,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=go();for(;so.pos>>3){case 1:xt.minDeposit.push(Vr.Coin.decode(so,so.uint32()));break;case 2:xt.maxDepositPeriod=st.Duration.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{minDeposit:Array.isArray(pt==null?void 0:pt.minDeposit)?pt.minDeposit.map(lo=>Vr.Coin.fromJSON(lo)):[],maxDepositPeriod:(0,dt.isSet)(pt.maxDepositPeriod)?st.Duration.fromJSON(pt.maxDepositPeriod):void 0}},toJSON(pt){const lo={};return pt.minDeposit?lo.minDeposit=pt.minDeposit.map(so=>so?Vr.Coin.toJSON(so):void 0):lo.minDeposit=[],pt.maxDepositPeriod!==void 0&&(lo.maxDepositPeriod=pt.maxDepositPeriod?st.Duration.toJSON(pt.maxDepositPeriod):void 0),lo},fromPartial(pt){var so;const lo=go();return lo.minDeposit=((so=pt.minDeposit)==null?void 0:so.map(wo=>Vr.Coin.fromPartial(wo)))||[],lo.maxDepositPeriod=pt.maxDepositPeriod!==void 0&&pt.maxDepositPeriod!==null?st.Duration.fromPartial(pt.maxDepositPeriod):void 0,lo}};function bo(){return{votingPeriod:void 0}}_e.VotingParams={encode(pt,lo=kt.Writer.create()){return pt.votingPeriod!==void 0&&st.Duration.encode(pt.votingPeriod,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=bo();for(;so.pos>>3){case 1:xt.votingPeriod=st.Duration.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{votingPeriod:(0,dt.isSet)(pt.votingPeriod)?st.Duration.fromJSON(pt.votingPeriod):void 0}},toJSON(pt){const lo={};return pt.votingPeriod!==void 0&&(lo.votingPeriod=pt.votingPeriod?st.Duration.toJSON(pt.votingPeriod):void 0),lo},fromPartial(pt){const lo=bo();return lo.votingPeriod=pt.votingPeriod!==void 0&&pt.votingPeriod!==null?st.Duration.fromPartial(pt.votingPeriod):void 0,lo}};function oo(){return{quorum:"",threshold:"",vetoThreshold:""}}_e.TallyParams={encode(pt,lo=kt.Writer.create()){return pt.quorum!==""&&lo.uint32(10).string(pt.quorum),pt.threshold!==""&&lo.uint32(18).string(pt.threshold),pt.vetoThreshold!==""&&lo.uint32(26).string(pt.vetoThreshold),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=oo();for(;so.pos>>3){case 1:xt.quorum=so.string();break;case 2:xt.threshold=so.string();break;case 3:xt.vetoThreshold=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{quorum:(0,dt.isSet)(pt.quorum)?String(pt.quorum):"",threshold:(0,dt.isSet)(pt.threshold)?String(pt.threshold):"",vetoThreshold:(0,dt.isSet)(pt.vetoThreshold)?String(pt.vetoThreshold):""}},toJSON(pt){const lo={};return pt.quorum!==void 0&&(lo.quorum=pt.quorum),pt.threshold!==void 0&&(lo.threshold=pt.threshold),pt.vetoThreshold!==void 0&&(lo.vetoThreshold=pt.vetoThreshold),lo},fromPartial(pt){const lo=oo();return lo.quorum=pt.quorum??"",lo.threshold=pt.threshold??"",lo.vetoThreshold=pt.vetoThreshold??"",lo}};function Ro(){return{minDeposit:[],maxDepositPeriod:void 0,votingPeriod:void 0,quorum:"",threshold:"",vetoThreshold:"",minInitialDepositRatio:"",burnVoteQuorum:!1,burnProposalDepositPrevote:!1,burnVoteVeto:!1}}_e.Params={encode(pt,lo=kt.Writer.create()){for(const so of pt.minDeposit)Vr.Coin.encode(so,lo.uint32(10).fork()).ldelim();return pt.maxDepositPeriod!==void 0&&st.Duration.encode(pt.maxDepositPeriod,lo.uint32(18).fork()).ldelim(),pt.votingPeriod!==void 0&&st.Duration.encode(pt.votingPeriod,lo.uint32(26).fork()).ldelim(),pt.quorum!==""&&lo.uint32(34).string(pt.quorum),pt.threshold!==""&&lo.uint32(42).string(pt.threshold),pt.vetoThreshold!==""&&lo.uint32(50).string(pt.vetoThreshold),pt.minInitialDepositRatio!==""&&lo.uint32(58).string(pt.minInitialDepositRatio),pt.burnVoteQuorum===!0&&lo.uint32(104).bool(pt.burnVoteQuorum),pt.burnProposalDepositPrevote===!0&&lo.uint32(112).bool(pt.burnProposalDepositPrevote),pt.burnVoteVeto===!0&&lo.uint32(120).bool(pt.burnVoteVeto),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ro();for(;so.pos>>3){case 1:xt.minDeposit.push(Vr.Coin.decode(so,so.uint32()));break;case 2:xt.maxDepositPeriod=st.Duration.decode(so,so.uint32());break;case 3:xt.votingPeriod=st.Duration.decode(so,so.uint32());break;case 4:xt.quorum=so.string();break;case 5:xt.threshold=so.string();break;case 6:xt.vetoThreshold=so.string();break;case 7:xt.minInitialDepositRatio=so.string();break;case 13:xt.burnVoteQuorum=so.bool();break;case 14:xt.burnProposalDepositPrevote=so.bool();break;case 15:xt.burnVoteVeto=so.bool();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{minDeposit:Array.isArray(pt==null?void 0:pt.minDeposit)?pt.minDeposit.map(lo=>Vr.Coin.fromJSON(lo)):[],maxDepositPeriod:(0,dt.isSet)(pt.maxDepositPeriod)?st.Duration.fromJSON(pt.maxDepositPeriod):void 0,votingPeriod:(0,dt.isSet)(pt.votingPeriod)?st.Duration.fromJSON(pt.votingPeriod):void 0,quorum:(0,dt.isSet)(pt.quorum)?String(pt.quorum):"",threshold:(0,dt.isSet)(pt.threshold)?String(pt.threshold):"",vetoThreshold:(0,dt.isSet)(pt.vetoThreshold)?String(pt.vetoThreshold):"",minInitialDepositRatio:(0,dt.isSet)(pt.minInitialDepositRatio)?String(pt.minInitialDepositRatio):"",burnVoteQuorum:(0,dt.isSet)(pt.burnVoteQuorum)?!!pt.burnVoteQuorum:!1,burnProposalDepositPrevote:(0,dt.isSet)(pt.burnProposalDepositPrevote)?!!pt.burnProposalDepositPrevote:!1,burnVoteVeto:(0,dt.isSet)(pt.burnVoteVeto)?!!pt.burnVoteVeto:!1}},toJSON(pt){const lo={};return pt.minDeposit?lo.minDeposit=pt.minDeposit.map(so=>so?Vr.Coin.toJSON(so):void 0):lo.minDeposit=[],pt.maxDepositPeriod!==void 0&&(lo.maxDepositPeriod=pt.maxDepositPeriod?st.Duration.toJSON(pt.maxDepositPeriod):void 0),pt.votingPeriod!==void 0&&(lo.votingPeriod=pt.votingPeriod?st.Duration.toJSON(pt.votingPeriod):void 0),pt.quorum!==void 0&&(lo.quorum=pt.quorum),pt.threshold!==void 0&&(lo.threshold=pt.threshold),pt.vetoThreshold!==void 0&&(lo.vetoThreshold=pt.vetoThreshold),pt.minInitialDepositRatio!==void 0&&(lo.minInitialDepositRatio=pt.minInitialDepositRatio),pt.burnVoteQuorum!==void 0&&(lo.burnVoteQuorum=pt.burnVoteQuorum),pt.burnProposalDepositPrevote!==void 0&&(lo.burnProposalDepositPrevote=pt.burnProposalDepositPrevote),pt.burnVoteVeto!==void 0&&(lo.burnVoteVeto=pt.burnVoteVeto),lo},fromPartial(pt){var so;const lo=Ro();return lo.minDeposit=((so=pt.minDeposit)==null?void 0:so.map(wo=>Vr.Coin.fromPartial(wo)))||[],lo.maxDepositPeriod=pt.maxDepositPeriod!==void 0&&pt.maxDepositPeriod!==null?st.Duration.fromPartial(pt.maxDepositPeriod):void 0,lo.votingPeriod=pt.votingPeriod!==void 0&&pt.votingPeriod!==null?st.Duration.fromPartial(pt.votingPeriod):void 0,lo.quorum=pt.quorum??"",lo.threshold=pt.threshold??"",lo.vetoThreshold=pt.vetoThreshold??"",lo.minInitialDepositRatio=pt.minInitialDepositRatio??"",lo.burnVoteQuorum=pt.burnVoteQuorum??!1,lo.burnProposalDepositPrevote=pt.burnProposalDepositPrevote??!1,lo.burnVoteVeto=pt.burnVoteVeto??!1,lo}}})(gov),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(bo,oo,Ro,pt){pt===void 0&&(pt=Ro);var lo=Object.getOwnPropertyDescriptor(oo,Ro);(!lo||("get"in lo?!oo.__esModule:lo.writable||lo.configurable))&&(lo={enumerable:!0,get:function(){return oo[Ro]}}),Object.defineProperty(bo,pt,lo)}:function(bo,oo,Ro,pt){pt===void 0&&(pt=Ro),bo[pt]=oo[Ro]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(bo,oo){Object.defineProperty(bo,"default",{enumerable:!0,value:oo})}:function(bo,oo){bo.default=oo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(bo){if(bo&&bo.__esModule)return bo;var oo={};if(bo!=null)for(var Ro in bo)Ro!=="default"&&Object.prototype.hasOwnProperty.call(bo,Ro)&&cr(oo,bo,Ro);return gr(oo,bo),oo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgUpdateParamsResponse=_e.MsgUpdateParams=_e.MsgDepositResponse=_e.MsgDeposit=_e.MsgVoteWeightedResponse=_e.MsgVoteWeighted=_e.MsgVoteResponse=_e.MsgVote=_e.MsgExecLegacyContentResponse=_e.MsgExecLegacyContent=_e.MsgSubmitProposalResponse=_e.MsgSubmitProposal=_e.protobufPackage=void 0;const Vr=any,tt=coin$1,nt=gov,st=helpers,dt=Cr(minimal);_e.protobufPackage="cosmos.gov.v1";function kt(){return{messages:[],initialDeposit:[],proposer:"",metadata:"",title:"",summary:""}}_e.MsgSubmitProposal={encode(bo,oo=dt.Writer.create()){for(const Ro of bo.messages)Vr.Any.encode(Ro,oo.uint32(10).fork()).ldelim();for(const Ro of bo.initialDeposit)tt.Coin.encode(Ro,oo.uint32(18).fork()).ldelim();return bo.proposer!==""&&oo.uint32(26).string(bo.proposer),bo.metadata!==""&&oo.uint32(34).string(bo.metadata),bo.title!==""&&oo.uint32(42).string(bo.title),bo.summary!==""&&oo.uint32(50).string(bo.summary),oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=kt();for(;Ro.pos>>3){case 1:lo.messages.push(Vr.Any.decode(Ro,Ro.uint32()));break;case 2:lo.initialDeposit.push(tt.Coin.decode(Ro,Ro.uint32()));break;case 3:lo.proposer=Ro.string();break;case 4:lo.metadata=Ro.string();break;case 5:lo.title=Ro.string();break;case 6:lo.summary=Ro.string();break;default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{messages:Array.isArray(bo==null?void 0:bo.messages)?bo.messages.map(oo=>Vr.Any.fromJSON(oo)):[],initialDeposit:Array.isArray(bo==null?void 0:bo.initialDeposit)?bo.initialDeposit.map(oo=>tt.Coin.fromJSON(oo)):[],proposer:(0,st.isSet)(bo.proposer)?String(bo.proposer):"",metadata:(0,st.isSet)(bo.metadata)?String(bo.metadata):"",title:(0,st.isSet)(bo.title)?String(bo.title):"",summary:(0,st.isSet)(bo.summary)?String(bo.summary):""}},toJSON(bo){const oo={};return bo.messages?oo.messages=bo.messages.map(Ro=>Ro?Vr.Any.toJSON(Ro):void 0):oo.messages=[],bo.initialDeposit?oo.initialDeposit=bo.initialDeposit.map(Ro=>Ro?tt.Coin.toJSON(Ro):void 0):oo.initialDeposit=[],bo.proposer!==void 0&&(oo.proposer=bo.proposer),bo.metadata!==void 0&&(oo.metadata=bo.metadata),bo.title!==void 0&&(oo.title=bo.title),bo.summary!==void 0&&(oo.summary=bo.summary),oo},fromPartial(bo){var Ro,pt;const oo=kt();return oo.messages=((Ro=bo.messages)==null?void 0:Ro.map(lo=>Vr.Any.fromPartial(lo)))||[],oo.initialDeposit=((pt=bo.initialDeposit)==null?void 0:pt.map(lo=>tt.Coin.fromPartial(lo)))||[],oo.proposer=bo.proposer??"",oo.metadata=bo.metadata??"",oo.title=bo.title??"",oo.summary=bo.summary??"",oo}};function qt(){return{proposalId:st.Long.UZERO}}_e.MsgSubmitProposalResponse={encode(bo,oo=dt.Writer.create()){return bo.proposalId.isZero()||oo.uint32(8).uint64(bo.proposalId),oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=qt();for(;Ro.pos>>3){case 1:lo.proposalId=Ro.uint64();break;default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{proposalId:(0,st.isSet)(bo.proposalId)?st.Long.fromValue(bo.proposalId):st.Long.UZERO}},toJSON(bo){const oo={};return bo.proposalId!==void 0&&(oo.proposalId=(bo.proposalId||st.Long.UZERO).toString()),oo},fromPartial(bo){const oo=qt();return oo.proposalId=bo.proposalId!==void 0&&bo.proposalId!==null?st.Long.fromValue(bo.proposalId):st.Long.UZERO,oo}};function ro(){return{content:void 0,authority:""}}_e.MsgExecLegacyContent={encode(bo,oo=dt.Writer.create()){return bo.content!==void 0&&Vr.Any.encode(bo.content,oo.uint32(10).fork()).ldelim(),bo.authority!==""&&oo.uint32(18).string(bo.authority),oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=ro();for(;Ro.pos>>3){case 1:lo.content=Vr.Any.decode(Ro,Ro.uint32());break;case 2:lo.authority=Ro.string();break;default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{content:(0,st.isSet)(bo.content)?Vr.Any.fromJSON(bo.content):void 0,authority:(0,st.isSet)(bo.authority)?String(bo.authority):""}},toJSON(bo){const oo={};return bo.content!==void 0&&(oo.content=bo.content?Vr.Any.toJSON(bo.content):void 0),bo.authority!==void 0&&(oo.authority=bo.authority),oo},fromPartial(bo){const oo=ro();return oo.content=bo.content!==void 0&&bo.content!==null?Vr.Any.fromPartial(bo.content):void 0,oo.authority=bo.authority??"",oo}};function ht(){return{}}_e.MsgExecLegacyContentResponse={encode(bo,oo=dt.Writer.create()){return oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=ht();for(;Ro.pos>>3){default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{}},toJSON(bo){return{}},fromPartial(bo){return ht()}};function po(){return{proposalId:st.Long.UZERO,voter:"",option:0,metadata:""}}_e.MsgVote={encode(bo,oo=dt.Writer.create()){return bo.proposalId.isZero()||oo.uint32(8).uint64(bo.proposalId),bo.voter!==""&&oo.uint32(18).string(bo.voter),bo.option!==0&&oo.uint32(24).int32(bo.option),bo.metadata!==""&&oo.uint32(34).string(bo.metadata),oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=po();for(;Ro.pos>>3){case 1:lo.proposalId=Ro.uint64();break;case 2:lo.voter=Ro.string();break;case 3:lo.option=Ro.int32();break;case 4:lo.metadata=Ro.string();break;default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{proposalId:(0,st.isSet)(bo.proposalId)?st.Long.fromValue(bo.proposalId):st.Long.UZERO,voter:(0,st.isSet)(bo.voter)?String(bo.voter):"",option:(0,st.isSet)(bo.option)?(0,nt.voteOptionFromJSON)(bo.option):0,metadata:(0,st.isSet)(bo.metadata)?String(bo.metadata):""}},toJSON(bo){const oo={};return bo.proposalId!==void 0&&(oo.proposalId=(bo.proposalId||st.Long.UZERO).toString()),bo.voter!==void 0&&(oo.voter=bo.voter),bo.option!==void 0&&(oo.option=(0,nt.voteOptionToJSON)(bo.option)),bo.metadata!==void 0&&(oo.metadata=bo.metadata),oo},fromPartial(bo){const oo=po();return oo.proposalId=bo.proposalId!==void 0&&bo.proposalId!==null?st.Long.fromValue(bo.proposalId):st.Long.UZERO,oo.voter=bo.voter??"",oo.option=bo.option??0,oo.metadata=bo.metadata??"",oo}};function no(){return{}}_e.MsgVoteResponse={encode(bo,oo=dt.Writer.create()){return oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=no();for(;Ro.pos>>3){default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{}},toJSON(bo){return{}},fromPartial(bo){return no()}};function Nt(){return{proposalId:st.Long.UZERO,voter:"",options:[],metadata:""}}_e.MsgVoteWeighted={encode(bo,oo=dt.Writer.create()){bo.proposalId.isZero()||oo.uint32(8).uint64(bo.proposalId),bo.voter!==""&&oo.uint32(18).string(bo.voter);for(const Ro of bo.options)nt.WeightedVoteOption.encode(Ro,oo.uint32(26).fork()).ldelim();return bo.metadata!==""&&oo.uint32(34).string(bo.metadata),oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=Nt();for(;Ro.pos>>3){case 1:lo.proposalId=Ro.uint64();break;case 2:lo.voter=Ro.string();break;case 3:lo.options.push(nt.WeightedVoteOption.decode(Ro,Ro.uint32()));break;case 4:lo.metadata=Ro.string();break;default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{proposalId:(0,st.isSet)(bo.proposalId)?st.Long.fromValue(bo.proposalId):st.Long.UZERO,voter:(0,st.isSet)(bo.voter)?String(bo.voter):"",options:Array.isArray(bo==null?void 0:bo.options)?bo.options.map(oo=>nt.WeightedVoteOption.fromJSON(oo)):[],metadata:(0,st.isSet)(bo.metadata)?String(bo.metadata):""}},toJSON(bo){const oo={};return bo.proposalId!==void 0&&(oo.proposalId=(bo.proposalId||st.Long.UZERO).toString()),bo.voter!==void 0&&(oo.voter=bo.voter),bo.options?oo.options=bo.options.map(Ro=>Ro?nt.WeightedVoteOption.toJSON(Ro):void 0):oo.options=[],bo.metadata!==void 0&&(oo.metadata=bo.metadata),oo},fromPartial(bo){var Ro;const oo=Nt();return oo.proposalId=bo.proposalId!==void 0&&bo.proposalId!==null?st.Long.fromValue(bo.proposalId):st.Long.UZERO,oo.voter=bo.voter??"",oo.options=((Ro=bo.options)==null?void 0:Ro.map(pt=>nt.WeightedVoteOption.fromPartial(pt)))||[],oo.metadata=bo.metadata??"",oo}};function eo(){return{}}_e.MsgVoteWeightedResponse={encode(bo,oo=dt.Writer.create()){return oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=eo();for(;Ro.pos>>3){default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{}},toJSON(bo){return{}},fromPartial(bo){return eo()}};function Wt(){return{proposalId:st.Long.UZERO,depositor:"",amount:[]}}_e.MsgDeposit={encode(bo,oo=dt.Writer.create()){bo.proposalId.isZero()||oo.uint32(8).uint64(bo.proposalId),bo.depositor!==""&&oo.uint32(18).string(bo.depositor);for(const Ro of bo.amount)tt.Coin.encode(Ro,oo.uint32(26).fork()).ldelim();return oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=Wt();for(;Ro.pos>>3){case 1:lo.proposalId=Ro.uint64();break;case 2:lo.depositor=Ro.string();break;case 3:lo.amount.push(tt.Coin.decode(Ro,Ro.uint32()));break;default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{proposalId:(0,st.isSet)(bo.proposalId)?st.Long.fromValue(bo.proposalId):st.Long.UZERO,depositor:(0,st.isSet)(bo.depositor)?String(bo.depositor):"",amount:Array.isArray(bo==null?void 0:bo.amount)?bo.amount.map(oo=>tt.Coin.fromJSON(oo)):[]}},toJSON(bo){const oo={};return bo.proposalId!==void 0&&(oo.proposalId=(bo.proposalId||st.Long.UZERO).toString()),bo.depositor!==void 0&&(oo.depositor=bo.depositor),bo.amount?oo.amount=bo.amount.map(Ro=>Ro?tt.Coin.toJSON(Ro):void 0):oo.amount=[],oo},fromPartial(bo){var Ro;const oo=Wt();return oo.proposalId=bo.proposalId!==void 0&&bo.proposalId!==null?st.Long.fromValue(bo.proposalId):st.Long.UZERO,oo.depositor=bo.depositor??"",oo.amount=((Ro=bo.amount)==null?void 0:Ro.map(pt=>tt.Coin.fromPartial(pt)))||[],oo}};function St(){return{}}_e.MsgDepositResponse={encode(bo,oo=dt.Writer.create()){return oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=St();for(;Ro.pos>>3){default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{}},toJSON(bo){return{}},fromPartial(bo){return St()}};function Ot(){return{authority:"",params:void 0}}_e.MsgUpdateParams={encode(bo,oo=dt.Writer.create()){return bo.authority!==""&&oo.uint32(10).string(bo.authority),bo.params!==void 0&&nt.Params.encode(bo.params,oo.uint32(18).fork()).ldelim(),oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=Ot();for(;Ro.pos>>3){case 1:lo.authority=Ro.string();break;case 2:lo.params=nt.Params.decode(Ro,Ro.uint32());break;default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{authority:(0,st.isSet)(bo.authority)?String(bo.authority):"",params:(0,st.isSet)(bo.params)?nt.Params.fromJSON(bo.params):void 0}},toJSON(bo){const oo={};return bo.authority!==void 0&&(oo.authority=bo.authority),bo.params!==void 0&&(oo.params=bo.params?nt.Params.toJSON(bo.params):void 0),oo},fromPartial(bo){const oo=Ot();return oo.authority=bo.authority??"",oo.params=bo.params!==void 0&&bo.params!==null?nt.Params.fromPartial(bo.params):void 0,oo}};function uo(){return{}}_e.MsgUpdateParamsResponse={encode(bo,oo=dt.Writer.create()){return oo},decode(bo,oo){const Ro=bo instanceof dt.Reader?bo:new dt.Reader(bo);let pt=oo===void 0?Ro.len:Ro.pos+oo;const lo=uo();for(;Ro.pos>>3){default:Ro.skipType(so&7);break}}return lo},fromJSON(bo){return{}},toJSON(bo){return{}},fromPartial(bo){return uo()}};class go{constructor(oo){this.rpc=oo,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(oo){const Ro=_e.MsgSubmitProposal.encode(oo).finish();return this.rpc.request("cosmos.gov.v1.Msg","SubmitProposal",Ro).then(pt=>_e.MsgSubmitProposalResponse.decode(new dt.Reader(pt)))}ExecLegacyContent(oo){const Ro=_e.MsgExecLegacyContent.encode(oo).finish();return this.rpc.request("cosmos.gov.v1.Msg","ExecLegacyContent",Ro).then(pt=>_e.MsgExecLegacyContentResponse.decode(new dt.Reader(pt)))}Vote(oo){const Ro=_e.MsgVote.encode(oo).finish();return this.rpc.request("cosmos.gov.v1.Msg","Vote",Ro).then(pt=>_e.MsgVoteResponse.decode(new dt.Reader(pt)))}VoteWeighted(oo){const Ro=_e.MsgVoteWeighted.encode(oo).finish();return this.rpc.request("cosmos.gov.v1.Msg","VoteWeighted",Ro).then(pt=>_e.MsgVoteWeightedResponse.decode(new dt.Reader(pt)))}Deposit(oo){const Ro=_e.MsgDeposit.encode(oo).finish();return this.rpc.request("cosmos.gov.v1.Msg","Deposit",Ro).then(pt=>_e.MsgDepositResponse.decode(new dt.Reader(pt)))}UpdateParams(oo){const Ro=_e.MsgUpdateParams.encode(oo).finish();return this.rpc.request("cosmos.gov.v1.Msg","UpdateParams",Ro).then(pt=>_e.MsgUpdateParamsResponse.decode(new dt.Reader(pt)))}}_e.MsgClientImpl=go}(tx$9);var tx$8={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,Ot,uo,go){go===void 0&&(go=uo);var bo=Object.getOwnPropertyDescriptor(Ot,uo);(!bo||("get"in bo?!Ot.__esModule:bo.writable||bo.configurable))&&(bo={enumerable:!0,get:function(){return Ot[uo]}}),Object.defineProperty(St,go,bo)}:function(St,Ot,uo,go){go===void 0&&(go=uo),St[go]=Ot[uo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,Ot){Object.defineProperty(St,"default",{enumerable:!0,value:Ot})}:function(St,Ot){St.default=Ot}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var Ot={};if(St!=null)for(var uo in St)uo!=="default"&&Object.prototype.hasOwnProperty.call(St,uo)&&cr(Ot,St,uo);return gr(Ot,St),Ot};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgDepositResponse=_e.MsgDeposit=_e.MsgVoteWeightedResponse=_e.MsgVoteWeighted=_e.MsgVoteResponse=_e.MsgVote=_e.MsgSubmitProposalResponse=_e.MsgSubmitProposal=_e.protobufPackage=void 0;const Vr=any,tt=coin$1,nt=gov$1,st=helpers,dt=Cr(minimal);_e.protobufPackage="cosmos.gov.v1beta1";function kt(){return{content:void 0,initialDeposit:[],proposer:""}}_e.MsgSubmitProposal={encode(St,Ot=dt.Writer.create()){St.content!==void 0&&Vr.Any.encode(St.content,Ot.uint32(10).fork()).ldelim();for(const uo of St.initialDeposit)tt.Coin.encode(uo,Ot.uint32(18).fork()).ldelim();return St.proposer!==""&&Ot.uint32(26).string(St.proposer),Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=kt();for(;uo.pos>>3){case 1:bo.content=Vr.Any.decode(uo,uo.uint32());break;case 2:bo.initialDeposit.push(tt.Coin.decode(uo,uo.uint32()));break;case 3:bo.proposer=uo.string();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{content:(0,st.isSet)(St.content)?Vr.Any.fromJSON(St.content):void 0,initialDeposit:Array.isArray(St==null?void 0:St.initialDeposit)?St.initialDeposit.map(Ot=>tt.Coin.fromJSON(Ot)):[],proposer:(0,st.isSet)(St.proposer)?String(St.proposer):""}},toJSON(St){const Ot={};return St.content!==void 0&&(Ot.content=St.content?Vr.Any.toJSON(St.content):void 0),St.initialDeposit?Ot.initialDeposit=St.initialDeposit.map(uo=>uo?tt.Coin.toJSON(uo):void 0):Ot.initialDeposit=[],St.proposer!==void 0&&(Ot.proposer=St.proposer),Ot},fromPartial(St){var uo;const Ot=kt();return Ot.content=St.content!==void 0&&St.content!==null?Vr.Any.fromPartial(St.content):void 0,Ot.initialDeposit=((uo=St.initialDeposit)==null?void 0:uo.map(go=>tt.Coin.fromPartial(go)))||[],Ot.proposer=St.proposer??"",Ot}};function qt(){return{proposalId:st.Long.UZERO}}_e.MsgSubmitProposalResponse={encode(St,Ot=dt.Writer.create()){return St.proposalId.isZero()||Ot.uint32(8).uint64(St.proposalId),Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=qt();for(;uo.pos>>3){case 1:bo.proposalId=uo.uint64();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{proposalId:(0,st.isSet)(St.proposalId)?st.Long.fromValue(St.proposalId):st.Long.UZERO}},toJSON(St){const Ot={};return St.proposalId!==void 0&&(Ot.proposalId=(St.proposalId||st.Long.UZERO).toString()),Ot},fromPartial(St){const Ot=qt();return Ot.proposalId=St.proposalId!==void 0&&St.proposalId!==null?st.Long.fromValue(St.proposalId):st.Long.UZERO,Ot}};function ro(){return{proposalId:st.Long.UZERO,voter:"",option:0}}_e.MsgVote={encode(St,Ot=dt.Writer.create()){return St.proposalId.isZero()||Ot.uint32(8).uint64(St.proposalId),St.voter!==""&&Ot.uint32(18).string(St.voter),St.option!==0&&Ot.uint32(24).int32(St.option),Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=ro();for(;uo.pos>>3){case 1:bo.proposalId=uo.uint64();break;case 2:bo.voter=uo.string();break;case 3:bo.option=uo.int32();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{proposalId:(0,st.isSet)(St.proposalId)?st.Long.fromValue(St.proposalId):st.Long.UZERO,voter:(0,st.isSet)(St.voter)?String(St.voter):"",option:(0,st.isSet)(St.option)?(0,nt.voteOptionFromJSON)(St.option):0}},toJSON(St){const Ot={};return St.proposalId!==void 0&&(Ot.proposalId=(St.proposalId||st.Long.UZERO).toString()),St.voter!==void 0&&(Ot.voter=St.voter),St.option!==void 0&&(Ot.option=(0,nt.voteOptionToJSON)(St.option)),Ot},fromPartial(St){const Ot=ro();return Ot.proposalId=St.proposalId!==void 0&&St.proposalId!==null?st.Long.fromValue(St.proposalId):st.Long.UZERO,Ot.voter=St.voter??"",Ot.option=St.option??0,Ot}};function ht(){return{}}_e.MsgVoteResponse={encode(St,Ot=dt.Writer.create()){return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=ht();for(;uo.pos>>3){default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{}},toJSON(St){return{}},fromPartial(St){return ht()}};function po(){return{proposalId:st.Long.UZERO,voter:"",options:[]}}_e.MsgVoteWeighted={encode(St,Ot=dt.Writer.create()){St.proposalId.isZero()||Ot.uint32(8).uint64(St.proposalId),St.voter!==""&&Ot.uint32(18).string(St.voter);for(const uo of St.options)nt.WeightedVoteOption.encode(uo,Ot.uint32(26).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=po();for(;uo.pos>>3){case 1:bo.proposalId=uo.uint64();break;case 2:bo.voter=uo.string();break;case 3:bo.options.push(nt.WeightedVoteOption.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{proposalId:(0,st.isSet)(St.proposalId)?st.Long.fromValue(St.proposalId):st.Long.UZERO,voter:(0,st.isSet)(St.voter)?String(St.voter):"",options:Array.isArray(St==null?void 0:St.options)?St.options.map(Ot=>nt.WeightedVoteOption.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.proposalId!==void 0&&(Ot.proposalId=(St.proposalId||st.Long.UZERO).toString()),St.voter!==void 0&&(Ot.voter=St.voter),St.options?Ot.options=St.options.map(uo=>uo?nt.WeightedVoteOption.toJSON(uo):void 0):Ot.options=[],Ot},fromPartial(St){var uo;const Ot=po();return Ot.proposalId=St.proposalId!==void 0&&St.proposalId!==null?st.Long.fromValue(St.proposalId):st.Long.UZERO,Ot.voter=St.voter??"",Ot.options=((uo=St.options)==null?void 0:uo.map(go=>nt.WeightedVoteOption.fromPartial(go)))||[],Ot}};function no(){return{}}_e.MsgVoteWeightedResponse={encode(St,Ot=dt.Writer.create()){return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=no();for(;uo.pos>>3){default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{}},toJSON(St){return{}},fromPartial(St){return no()}};function Nt(){return{proposalId:st.Long.UZERO,depositor:"",amount:[]}}_e.MsgDeposit={encode(St,Ot=dt.Writer.create()){St.proposalId.isZero()||Ot.uint32(8).uint64(St.proposalId),St.depositor!==""&&Ot.uint32(18).string(St.depositor);for(const uo of St.amount)tt.Coin.encode(uo,Ot.uint32(26).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=Nt();for(;uo.pos>>3){case 1:bo.proposalId=uo.uint64();break;case 2:bo.depositor=uo.string();break;case 3:bo.amount.push(tt.Coin.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{proposalId:(0,st.isSet)(St.proposalId)?st.Long.fromValue(St.proposalId):st.Long.UZERO,depositor:(0,st.isSet)(St.depositor)?String(St.depositor):"",amount:Array.isArray(St==null?void 0:St.amount)?St.amount.map(Ot=>tt.Coin.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.proposalId!==void 0&&(Ot.proposalId=(St.proposalId||st.Long.UZERO).toString()),St.depositor!==void 0&&(Ot.depositor=St.depositor),St.amount?Ot.amount=St.amount.map(uo=>uo?tt.Coin.toJSON(uo):void 0):Ot.amount=[],Ot},fromPartial(St){var uo;const Ot=Nt();return Ot.proposalId=St.proposalId!==void 0&&St.proposalId!==null?st.Long.fromValue(St.proposalId):st.Long.UZERO,Ot.depositor=St.depositor??"",Ot.amount=((uo=St.amount)==null?void 0:uo.map(go=>tt.Coin.fromPartial(go)))||[],Ot}};function eo(){return{}}_e.MsgDepositResponse={encode(St,Ot=dt.Writer.create()){return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=eo();for(;uo.pos>>3){default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{}},toJSON(St){return{}},fromPartial(St){return eo()}};class Wt{constructor(Ot){this.rpc=Ot,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(Ot){const uo=_e.MsgSubmitProposal.encode(Ot).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",uo).then(go=>_e.MsgSubmitProposalResponse.decode(new dt.Reader(go)))}Vote(Ot){const uo=_e.MsgVote.encode(Ot).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",uo).then(go=>_e.MsgVoteResponse.decode(new dt.Reader(go)))}VoteWeighted(Ot){const uo=_e.MsgVoteWeighted.encode(Ot).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",uo).then(go=>_e.MsgVoteWeightedResponse.decode(new dt.Reader(go)))}Deposit(Ot){const uo=_e.MsgDeposit.encode(Ot).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",uo).then(go=>_e.MsgDepositResponse.decode(new dt.Reader(go)))}}_e.MsgClientImpl=Wt})(tx$8),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$9=tx$9,tx_2$3=tx$8;messages$6.govTypes=[["/cosmos.gov.v1.MsgDeposit",tx_1$9.MsgDeposit],["/cosmos.gov.v1.MsgSubmitProposal",tx_1$9.MsgSubmitProposal],["/cosmos.gov.v1.MsgUpdateParams",tx_1$9.MsgUpdateParams],["/cosmos.gov.v1.MsgVote",tx_1$9.MsgVote],["/cosmos.gov.v1.MsgVoteWeighted",tx_1$9.MsgVoteWeighted],["/cosmos.gov.v1beta1.MsgDeposit",tx_2$3.MsgDeposit],["/cosmos.gov.v1beta1.MsgSubmitProposal",tx_2$3.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",tx_2$3.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",tx_2$3.MsgVoteWeighted]];function isMsgDepositEncodeObject(_e){return _e.typeUrl==="/cosmos.gov.v1beta1.MsgDeposit"}messages$6.isMsgDepositEncodeObject=isMsgDepositEncodeObject;function isMsgSubmitProposalEncodeObject(_e){return _e.typeUrl==="/cosmos.gov.v1beta1.MsgSubmitProposal"}messages$6.isMsgSubmitProposalEncodeObject=isMsgSubmitProposalEncodeObject;function isMsgVoteEncodeObject(_e){return _e.typeUrl==="/cosmos.gov.v1beta1.MsgVote"}messages$6.isMsgVoteEncodeObject=isMsgVoteEncodeObject;function isMsgVoteWeightedEncodeObject(_e){return _e.typeUrl==="/cosmos.gov.v1beta1.MsgVoteWeighted"}messages$6.isMsgVoteWeightedEncodeObject=isMsgVoteWeightedEncodeObject;var queries$6={},query$8={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(pt,lo,so,wo){wo===void 0&&(wo=so);var xt=Object.getOwnPropertyDescriptor(lo,so);(!xt||("get"in xt?!lo.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return lo[so]}}),Object.defineProperty(pt,wo,xt)}:function(pt,lo,so,wo){wo===void 0&&(wo=so),pt[wo]=lo[so]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(pt,lo){Object.defineProperty(pt,"default",{enumerable:!0,value:lo})}:function(pt,lo){pt.default=lo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(pt){if(pt&&pt.__esModule)return pt;var lo={};if(pt!=null)for(var so in pt)so!=="default"&&Object.prototype.hasOwnProperty.call(pt,so)&&cr(lo,pt,so);return gr(lo,pt),lo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryTallyResultResponse=_e.QueryTallyResultRequest=_e.QueryDepositsResponse=_e.QueryDepositsRequest=_e.QueryDepositResponse=_e.QueryDepositRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.QueryVotesResponse=_e.QueryVotesRequest=_e.QueryVoteResponse=_e.QueryVoteRequest=_e.QueryProposalsResponse=_e.QueryProposalsRequest=_e.QueryProposalResponse=_e.QueryProposalRequest=_e.protobufPackage=void 0;const Vr=gov$1,tt=pagination,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.gov.v1beta1";function dt(){return{proposalId:nt.Long.UZERO}}_e.QueryProposalRequest={encode(pt,lo=st.Writer.create()){return pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=dt();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,nt.isSet)(pt.proposalId)?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||nt.Long.UZERO).toString()),lo},fromPartial(pt){const lo=dt();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,lo}};function kt(){return{proposal:void 0}}_e.QueryProposalResponse={encode(pt,lo=st.Writer.create()){return pt.proposal!==void 0&&Vr.Proposal.encode(pt.proposal,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=kt();for(;so.pos>>3){case 1:xt.proposal=Vr.Proposal.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposal:(0,nt.isSet)(pt.proposal)?Vr.Proposal.fromJSON(pt.proposal):void 0}},toJSON(pt){const lo={};return pt.proposal!==void 0&&(lo.proposal=pt.proposal?Vr.Proposal.toJSON(pt.proposal):void 0),lo},fromPartial(pt){const lo=kt();return lo.proposal=pt.proposal!==void 0&&pt.proposal!==null?Vr.Proposal.fromPartial(pt.proposal):void 0,lo}};function qt(){return{proposalStatus:0,voter:"",depositor:"",pagination:void 0}}_e.QueryProposalsRequest={encode(pt,lo=st.Writer.create()){return pt.proposalStatus!==0&&lo.uint32(8).int32(pt.proposalStatus),pt.voter!==""&&lo.uint32(18).string(pt.voter),pt.depositor!==""&&lo.uint32(26).string(pt.depositor),pt.pagination!==void 0&&tt.PageRequest.encode(pt.pagination,lo.uint32(34).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=qt();for(;so.pos>>3){case 1:xt.proposalStatus=so.int32();break;case 2:xt.voter=so.string();break;case 3:xt.depositor=so.string();break;case 4:xt.pagination=tt.PageRequest.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalStatus:(0,nt.isSet)(pt.proposalStatus)?(0,Vr.proposalStatusFromJSON)(pt.proposalStatus):0,voter:(0,nt.isSet)(pt.voter)?String(pt.voter):"",depositor:(0,nt.isSet)(pt.depositor)?String(pt.depositor):"",pagination:(0,nt.isSet)(pt.pagination)?tt.PageRequest.fromJSON(pt.pagination):void 0}},toJSON(pt){const lo={};return pt.proposalStatus!==void 0&&(lo.proposalStatus=(0,Vr.proposalStatusToJSON)(pt.proposalStatus)),pt.voter!==void 0&&(lo.voter=pt.voter),pt.depositor!==void 0&&(lo.depositor=pt.depositor),pt.pagination!==void 0&&(lo.pagination=pt.pagination?tt.PageRequest.toJSON(pt.pagination):void 0),lo},fromPartial(pt){const lo=qt();return lo.proposalStatus=pt.proposalStatus??0,lo.voter=pt.voter??"",lo.depositor=pt.depositor??"",lo.pagination=pt.pagination!==void 0&&pt.pagination!==null?tt.PageRequest.fromPartial(pt.pagination):void 0,lo}};function ro(){return{proposals:[],pagination:void 0}}_e.QueryProposalsResponse={encode(pt,lo=st.Writer.create()){for(const so of pt.proposals)Vr.Proposal.encode(so,lo.uint32(10).fork()).ldelim();return pt.pagination!==void 0&&tt.PageResponse.encode(pt.pagination,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ro();for(;so.pos>>3){case 1:xt.proposals.push(Vr.Proposal.decode(so,so.uint32()));break;case 2:xt.pagination=tt.PageResponse.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposals:Array.isArray(pt==null?void 0:pt.proposals)?pt.proposals.map(lo=>Vr.Proposal.fromJSON(lo)):[],pagination:(0,nt.isSet)(pt.pagination)?tt.PageResponse.fromJSON(pt.pagination):void 0}},toJSON(pt){const lo={};return pt.proposals?lo.proposals=pt.proposals.map(so=>so?Vr.Proposal.toJSON(so):void 0):lo.proposals=[],pt.pagination!==void 0&&(lo.pagination=pt.pagination?tt.PageResponse.toJSON(pt.pagination):void 0),lo},fromPartial(pt){var so;const lo=ro();return lo.proposals=((so=pt.proposals)==null?void 0:so.map(wo=>Vr.Proposal.fromPartial(wo)))||[],lo.pagination=pt.pagination!==void 0&&pt.pagination!==null?tt.PageResponse.fromPartial(pt.pagination):void 0,lo}};function ht(){return{proposalId:nt.Long.UZERO,voter:""}}_e.QueryVoteRequest={encode(pt,lo=st.Writer.create()){return pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.voter!==""&&lo.uint32(18).string(pt.voter),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ht();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.voter=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,nt.isSet)(pt.proposalId)?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,voter:(0,nt.isSet)(pt.voter)?String(pt.voter):""}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||nt.Long.UZERO).toString()),pt.voter!==void 0&&(lo.voter=pt.voter),lo},fromPartial(pt){const lo=ht();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,lo.voter=pt.voter??"",lo}};function po(){return{vote:void 0}}_e.QueryVoteResponse={encode(pt,lo=st.Writer.create()){return pt.vote!==void 0&&Vr.Vote.encode(pt.vote,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=po();for(;so.pos>>3){case 1:xt.vote=Vr.Vote.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{vote:(0,nt.isSet)(pt.vote)?Vr.Vote.fromJSON(pt.vote):void 0}},toJSON(pt){const lo={};return pt.vote!==void 0&&(lo.vote=pt.vote?Vr.Vote.toJSON(pt.vote):void 0),lo},fromPartial(pt){const lo=po();return lo.vote=pt.vote!==void 0&&pt.vote!==null?Vr.Vote.fromPartial(pt.vote):void 0,lo}};function no(){return{proposalId:nt.Long.UZERO,pagination:void 0}}_e.QueryVotesRequest={encode(pt,lo=st.Writer.create()){return pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.pagination!==void 0&&tt.PageRequest.encode(pt.pagination,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=no();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.pagination=tt.PageRequest.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,nt.isSet)(pt.proposalId)?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,pagination:(0,nt.isSet)(pt.pagination)?tt.PageRequest.fromJSON(pt.pagination):void 0}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||nt.Long.UZERO).toString()),pt.pagination!==void 0&&(lo.pagination=pt.pagination?tt.PageRequest.toJSON(pt.pagination):void 0),lo},fromPartial(pt){const lo=no();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,lo.pagination=pt.pagination!==void 0&&pt.pagination!==null?tt.PageRequest.fromPartial(pt.pagination):void 0,lo}};function Nt(){return{votes:[],pagination:void 0}}_e.QueryVotesResponse={encode(pt,lo=st.Writer.create()){for(const so of pt.votes)Vr.Vote.encode(so,lo.uint32(10).fork()).ldelim();return pt.pagination!==void 0&&tt.PageResponse.encode(pt.pagination,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Nt();for(;so.pos>>3){case 1:xt.votes.push(Vr.Vote.decode(so,so.uint32()));break;case 2:xt.pagination=tt.PageResponse.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{votes:Array.isArray(pt==null?void 0:pt.votes)?pt.votes.map(lo=>Vr.Vote.fromJSON(lo)):[],pagination:(0,nt.isSet)(pt.pagination)?tt.PageResponse.fromJSON(pt.pagination):void 0}},toJSON(pt){const lo={};return pt.votes?lo.votes=pt.votes.map(so=>so?Vr.Vote.toJSON(so):void 0):lo.votes=[],pt.pagination!==void 0&&(lo.pagination=pt.pagination?tt.PageResponse.toJSON(pt.pagination):void 0),lo},fromPartial(pt){var so;const lo=Nt();return lo.votes=((so=pt.votes)==null?void 0:so.map(wo=>Vr.Vote.fromPartial(wo)))||[],lo.pagination=pt.pagination!==void 0&&pt.pagination!==null?tt.PageResponse.fromPartial(pt.pagination):void 0,lo}};function eo(){return{paramsType:""}}_e.QueryParamsRequest={encode(pt,lo=st.Writer.create()){return pt.paramsType!==""&&lo.uint32(10).string(pt.paramsType),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=eo();for(;so.pos>>3){case 1:xt.paramsType=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{paramsType:(0,nt.isSet)(pt.paramsType)?String(pt.paramsType):""}},toJSON(pt){const lo={};return pt.paramsType!==void 0&&(lo.paramsType=pt.paramsType),lo},fromPartial(pt){const lo=eo();return lo.paramsType=pt.paramsType??"",lo}};function Wt(){return{votingParams:void 0,depositParams:void 0,tallyParams:void 0}}_e.QueryParamsResponse={encode(pt,lo=st.Writer.create()){return pt.votingParams!==void 0&&Vr.VotingParams.encode(pt.votingParams,lo.uint32(10).fork()).ldelim(),pt.depositParams!==void 0&&Vr.DepositParams.encode(pt.depositParams,lo.uint32(18).fork()).ldelim(),pt.tallyParams!==void 0&&Vr.TallyParams.encode(pt.tallyParams,lo.uint32(26).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Wt();for(;so.pos>>3){case 1:xt.votingParams=Vr.VotingParams.decode(so,so.uint32());break;case 2:xt.depositParams=Vr.DepositParams.decode(so,so.uint32());break;case 3:xt.tallyParams=Vr.TallyParams.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{votingParams:(0,nt.isSet)(pt.votingParams)?Vr.VotingParams.fromJSON(pt.votingParams):void 0,depositParams:(0,nt.isSet)(pt.depositParams)?Vr.DepositParams.fromJSON(pt.depositParams):void 0,tallyParams:(0,nt.isSet)(pt.tallyParams)?Vr.TallyParams.fromJSON(pt.tallyParams):void 0}},toJSON(pt){const lo={};return pt.votingParams!==void 0&&(lo.votingParams=pt.votingParams?Vr.VotingParams.toJSON(pt.votingParams):void 0),pt.depositParams!==void 0&&(lo.depositParams=pt.depositParams?Vr.DepositParams.toJSON(pt.depositParams):void 0),pt.tallyParams!==void 0&&(lo.tallyParams=pt.tallyParams?Vr.TallyParams.toJSON(pt.tallyParams):void 0),lo},fromPartial(pt){const lo=Wt();return lo.votingParams=pt.votingParams!==void 0&&pt.votingParams!==null?Vr.VotingParams.fromPartial(pt.votingParams):void 0,lo.depositParams=pt.depositParams!==void 0&&pt.depositParams!==null?Vr.DepositParams.fromPartial(pt.depositParams):void 0,lo.tallyParams=pt.tallyParams!==void 0&&pt.tallyParams!==null?Vr.TallyParams.fromPartial(pt.tallyParams):void 0,lo}};function St(){return{proposalId:nt.Long.UZERO,depositor:""}}_e.QueryDepositRequest={encode(pt,lo=st.Writer.create()){return pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.depositor!==""&&lo.uint32(18).string(pt.depositor),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=St();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.depositor=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,nt.isSet)(pt.proposalId)?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,depositor:(0,nt.isSet)(pt.depositor)?String(pt.depositor):""}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||nt.Long.UZERO).toString()),pt.depositor!==void 0&&(lo.depositor=pt.depositor),lo},fromPartial(pt){const lo=St();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,lo.depositor=pt.depositor??"",lo}};function Ot(){return{deposit:void 0}}_e.QueryDepositResponse={encode(pt,lo=st.Writer.create()){return pt.deposit!==void 0&&Vr.Deposit.encode(pt.deposit,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ot();for(;so.pos>>3){case 1:xt.deposit=Vr.Deposit.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{deposit:(0,nt.isSet)(pt.deposit)?Vr.Deposit.fromJSON(pt.deposit):void 0}},toJSON(pt){const lo={};return pt.deposit!==void 0&&(lo.deposit=pt.deposit?Vr.Deposit.toJSON(pt.deposit):void 0),lo},fromPartial(pt){const lo=Ot();return lo.deposit=pt.deposit!==void 0&&pt.deposit!==null?Vr.Deposit.fromPartial(pt.deposit):void 0,lo}};function uo(){return{proposalId:nt.Long.UZERO,pagination:void 0}}_e.QueryDepositsRequest={encode(pt,lo=st.Writer.create()){return pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),pt.pagination!==void 0&&tt.PageRequest.encode(pt.pagination,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=uo();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;case 2:xt.pagination=tt.PageRequest.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,nt.isSet)(pt.proposalId)?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,pagination:(0,nt.isSet)(pt.pagination)?tt.PageRequest.fromJSON(pt.pagination):void 0}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||nt.Long.UZERO).toString()),pt.pagination!==void 0&&(lo.pagination=pt.pagination?tt.PageRequest.toJSON(pt.pagination):void 0),lo},fromPartial(pt){const lo=uo();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,lo.pagination=pt.pagination!==void 0&&pt.pagination!==null?tt.PageRequest.fromPartial(pt.pagination):void 0,lo}};function go(){return{deposits:[],pagination:void 0}}_e.QueryDepositsResponse={encode(pt,lo=st.Writer.create()){for(const so of pt.deposits)Vr.Deposit.encode(so,lo.uint32(10).fork()).ldelim();return pt.pagination!==void 0&&tt.PageResponse.encode(pt.pagination,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=go();for(;so.pos>>3){case 1:xt.deposits.push(Vr.Deposit.decode(so,so.uint32()));break;case 2:xt.pagination=tt.PageResponse.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{deposits:Array.isArray(pt==null?void 0:pt.deposits)?pt.deposits.map(lo=>Vr.Deposit.fromJSON(lo)):[],pagination:(0,nt.isSet)(pt.pagination)?tt.PageResponse.fromJSON(pt.pagination):void 0}},toJSON(pt){const lo={};return pt.deposits?lo.deposits=pt.deposits.map(so=>so?Vr.Deposit.toJSON(so):void 0):lo.deposits=[],pt.pagination!==void 0&&(lo.pagination=pt.pagination?tt.PageResponse.toJSON(pt.pagination):void 0),lo},fromPartial(pt){var so;const lo=go();return lo.deposits=((so=pt.deposits)==null?void 0:so.map(wo=>Vr.Deposit.fromPartial(wo)))||[],lo.pagination=pt.pagination!==void 0&&pt.pagination!==null?tt.PageResponse.fromPartial(pt.pagination):void 0,lo}};function bo(){return{proposalId:nt.Long.UZERO}}_e.QueryTallyResultRequest={encode(pt,lo=st.Writer.create()){return pt.proposalId.isZero()||lo.uint32(8).uint64(pt.proposalId),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=bo();for(;so.pos>>3){case 1:xt.proposalId=so.uint64();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{proposalId:(0,nt.isSet)(pt.proposalId)?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO}},toJSON(pt){const lo={};return pt.proposalId!==void 0&&(lo.proposalId=(pt.proposalId||nt.Long.UZERO).toString()),lo},fromPartial(pt){const lo=bo();return lo.proposalId=pt.proposalId!==void 0&&pt.proposalId!==null?nt.Long.fromValue(pt.proposalId):nt.Long.UZERO,lo}};function oo(){return{tally:void 0}}_e.QueryTallyResultResponse={encode(pt,lo=st.Writer.create()){return pt.tally!==void 0&&Vr.TallyResult.encode(pt.tally,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=oo();for(;so.pos>>3){case 1:xt.tally=Vr.TallyResult.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{tally:(0,nt.isSet)(pt.tally)?Vr.TallyResult.fromJSON(pt.tally):void 0}},toJSON(pt){const lo={};return pt.tally!==void 0&&(lo.tally=pt.tally?Vr.TallyResult.toJSON(pt.tally):void 0),lo},fromPartial(pt){const lo=oo();return lo.tally=pt.tally!==void 0&&pt.tally!==null?Vr.TallyResult.fromPartial(pt.tally):void 0,lo}};class Ro{constructor(lo){this.rpc=lo,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(lo){const so=_e.QueryProposalRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposal",so).then(wo=>_e.QueryProposalResponse.decode(new st.Reader(wo)))}Proposals(lo){const so=_e.QueryProposalsRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Proposals",so).then(wo=>_e.QueryProposalsResponse.decode(new st.Reader(wo)))}Vote(lo){const so=_e.QueryVoteRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Vote",so).then(wo=>_e.QueryVoteResponse.decode(new st.Reader(wo)))}Votes(lo){const so=_e.QueryVotesRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Votes",so).then(wo=>_e.QueryVotesResponse.decode(new st.Reader(wo)))}Params(lo){const so=_e.QueryParamsRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Params",so).then(wo=>_e.QueryParamsResponse.decode(new st.Reader(wo)))}Deposit(lo){const so=_e.QueryDepositRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposit",so).then(wo=>_e.QueryDepositResponse.decode(new st.Reader(wo)))}Deposits(lo){const so=_e.QueryDepositsRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","Deposits",so).then(wo=>_e.QueryDepositsResponse.decode(new st.Reader(wo)))}TallyResult(lo){const so=_e.QueryTallyResultRequest.encode(lo).finish();return this.rpc.request("cosmos.gov.v1beta1.Query","TallyResult",so).then(wo=>_e.QueryTallyResultResponse.decode(new st.Reader(wo)))}}_e.QueryClientImpl=Ro})(query$8),Object.defineProperty(queries$6,"__esModule",{value:!0}),queries$6.setupGovExtension=void 0;const query_1$5=query$8,queryclient_1$6=queryclient$1;function setupGovExtension(_e){const cr=(0,queryclient_1$6.createProtobufRpcClient)(_e),gr=new query_1$5.QueryClientImpl(cr);return{gov:{params:async Cr=>await gr.Params({paramsType:Cr}),proposals:async(Cr,Vr,tt,nt)=>await gr.Proposals({proposalStatus:Cr,depositor:Vr,voter:tt,pagination:(0,queryclient_1$6.createPagination)(nt)}),proposal:async Cr=>await gr.Proposal({proposalId:(0,queryclient_1$6.longify)(Cr)}),deposits:async(Cr,Vr)=>await gr.Deposits({proposalId:(0,queryclient_1$6.longify)(Cr),pagination:(0,queryclient_1$6.createPagination)(Vr)}),deposit:async(Cr,Vr)=>await gr.Deposit({proposalId:(0,queryclient_1$6.longify)(Cr),depositor:Vr}),tally:async Cr=>await gr.TallyResult({proposalId:(0,queryclient_1$6.longify)(Cr)}),votes:async(Cr,Vr)=>await gr.Votes({proposalId:(0,queryclient_1$6.longify)(Cr),pagination:(0,queryclient_1$6.createPagination)(Vr)}),vote:async(Cr,Vr)=>await gr.Vote({proposalId:(0,queryclient_1$6.longify)(Cr),voter:Vr})}}}queries$6.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$7={},types$7={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,Mt,ho,io){io===void 0&&(io=ho);var co=Object.getOwnPropertyDescriptor(Mt,ho);(!co||("get"in co?!Mt.__esModule:co.writable||co.configurable))&&(co={enumerable:!0,get:function(){return Mt[ho]}}),Object.defineProperty(xt,io,co)}:function(xt,Mt,ho,io){io===void 0&&(io=ho),xt[io]=Mt[ho]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(xt,Mt){Object.defineProperty(xt,"default",{enumerable:!0,value:Mt})}:function(xt,Mt){xt.default=Mt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(xt){if(xt&&xt.__esModule)return xt;var Mt={};if(xt!=null)for(var ho in xt)ho!=="default"&&Object.prototype.hasOwnProperty.call(xt,ho)&&cr(Mt,xt,ho);return gr(Mt,xt),Mt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Vote=_e.TallyResult=_e.Proposal=_e.GroupPolicyInfo=_e.GroupMember=_e.GroupInfo=_e.DecisionPolicyWindows=_e.PercentageDecisionPolicy=_e.ThresholdDecisionPolicy=_e.MemberRequest=_e.Member=_e.proposalExecutorResultToJSON=_e.proposalExecutorResultFromJSON=_e.ProposalExecutorResult=_e.proposalStatusToJSON=_e.proposalStatusFromJSON=_e.ProposalStatus=_e.voteOptionToJSON=_e.voteOptionFromJSON=_e.VoteOption=_e.protobufPackage=void 0;const Vr=timestamp,tt=duration$1,nt=any,st=helpers,dt=Cr(minimal);_e.protobufPackage="cosmos.group.v1";var kt;(function(xt){xt[xt.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",xt[xt.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",xt[xt.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",xt[xt.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",xt[xt.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",xt[xt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kt=_e.VoteOption||(_e.VoteOption={}));function qt(xt){switch(xt){case 0:case"VOTE_OPTION_UNSPECIFIED":return kt.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return kt.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return kt.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return kt.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return kt.VOTE_OPTION_NO_WITH_VETO;case-1:case"UNRECOGNIZED":default:return kt.UNRECOGNIZED}}_e.voteOptionFromJSON=qt;function ro(xt){switch(xt){case kt.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case kt.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case kt.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case kt.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case kt.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case kt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.voteOptionToJSON=ro;var ht;(function(xt){xt[xt.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",xt[xt.PROPOSAL_STATUS_SUBMITTED=1]="PROPOSAL_STATUS_SUBMITTED",xt[xt.PROPOSAL_STATUS_ACCEPTED=2]="PROPOSAL_STATUS_ACCEPTED",xt[xt.PROPOSAL_STATUS_REJECTED=3]="PROPOSAL_STATUS_REJECTED",xt[xt.PROPOSAL_STATUS_ABORTED=4]="PROPOSAL_STATUS_ABORTED",xt[xt.PROPOSAL_STATUS_WITHDRAWN=5]="PROPOSAL_STATUS_WITHDRAWN",xt[xt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ht=_e.ProposalStatus||(_e.ProposalStatus={}));function po(xt){switch(xt){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return ht.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_SUBMITTED":return ht.PROPOSAL_STATUS_SUBMITTED;case 2:case"PROPOSAL_STATUS_ACCEPTED":return ht.PROPOSAL_STATUS_ACCEPTED;case 3:case"PROPOSAL_STATUS_REJECTED":return ht.PROPOSAL_STATUS_REJECTED;case 4:case"PROPOSAL_STATUS_ABORTED":return ht.PROPOSAL_STATUS_ABORTED;case 5:case"PROPOSAL_STATUS_WITHDRAWN":return ht.PROPOSAL_STATUS_WITHDRAWN;case-1:case"UNRECOGNIZED":default:return ht.UNRECOGNIZED}}_e.proposalStatusFromJSON=po;function no(xt){switch(xt){case ht.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case ht.PROPOSAL_STATUS_SUBMITTED:return"PROPOSAL_STATUS_SUBMITTED";case ht.PROPOSAL_STATUS_ACCEPTED:return"PROPOSAL_STATUS_ACCEPTED";case ht.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case ht.PROPOSAL_STATUS_ABORTED:return"PROPOSAL_STATUS_ABORTED";case ht.PROPOSAL_STATUS_WITHDRAWN:return"PROPOSAL_STATUS_WITHDRAWN";case ht.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.proposalStatusToJSON=no;var Nt;(function(xt){xt[xt.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED=0]="PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",xt[xt.PROPOSAL_EXECUTOR_RESULT_NOT_RUN=1]="PROPOSAL_EXECUTOR_RESULT_NOT_RUN",xt[xt.PROPOSAL_EXECUTOR_RESULT_SUCCESS=2]="PROPOSAL_EXECUTOR_RESULT_SUCCESS",xt[xt.PROPOSAL_EXECUTOR_RESULT_FAILURE=3]="PROPOSAL_EXECUTOR_RESULT_FAILURE",xt[xt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nt=_e.ProposalExecutorResult||(_e.ProposalExecutorResult={}));function eo(xt){switch(xt){case 0:case"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":return Nt.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;case 1:case"PROPOSAL_EXECUTOR_RESULT_NOT_RUN":return Nt.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;case 2:case"PROPOSAL_EXECUTOR_RESULT_SUCCESS":return Nt.PROPOSAL_EXECUTOR_RESULT_SUCCESS;case 3:case"PROPOSAL_EXECUTOR_RESULT_FAILURE":return Nt.PROPOSAL_EXECUTOR_RESULT_FAILURE;case-1:case"UNRECOGNIZED":default:return Nt.UNRECOGNIZED}}_e.proposalExecutorResultFromJSON=eo;function Wt(xt){switch(xt){case Nt.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:return"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";case Nt.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:return"PROPOSAL_EXECUTOR_RESULT_NOT_RUN";case Nt.PROPOSAL_EXECUTOR_RESULT_SUCCESS:return"PROPOSAL_EXECUTOR_RESULT_SUCCESS";case Nt.PROPOSAL_EXECUTOR_RESULT_FAILURE:return"PROPOSAL_EXECUTOR_RESULT_FAILURE";case Nt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.proposalExecutorResultToJSON=Wt;function St(){return{address:"",weight:"",metadata:"",addedAt:void 0}}_e.Member={encode(xt,Mt=dt.Writer.create()){return xt.address!==""&&Mt.uint32(10).string(xt.address),xt.weight!==""&&Mt.uint32(18).string(xt.weight),xt.metadata!==""&&Mt.uint32(26).string(xt.metadata),xt.addedAt!==void 0&&Vr.Timestamp.encode(xt.addedAt,Mt.uint32(34).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=St();for(;ho.pos>>3){case 1:co.address=ho.string();break;case 2:co.weight=ho.string();break;case 3:co.metadata=ho.string();break;case 4:co.addedAt=Vr.Timestamp.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{address:(0,st.isSet)(xt.address)?String(xt.address):"",weight:(0,st.isSet)(xt.weight)?String(xt.weight):"",metadata:(0,st.isSet)(xt.metadata)?String(xt.metadata):"",addedAt:(0,st.isSet)(xt.addedAt)?(0,st.fromJsonTimestamp)(xt.addedAt):void 0}},toJSON(xt){const Mt={};return xt.address!==void 0&&(Mt.address=xt.address),xt.weight!==void 0&&(Mt.weight=xt.weight),xt.metadata!==void 0&&(Mt.metadata=xt.metadata),xt.addedAt!==void 0&&(Mt.addedAt=(0,st.fromTimestamp)(xt.addedAt).toISOString()),Mt},fromPartial(xt){const Mt=St();return Mt.address=xt.address??"",Mt.weight=xt.weight??"",Mt.metadata=xt.metadata??"",Mt.addedAt=xt.addedAt!==void 0&&xt.addedAt!==null?Vr.Timestamp.fromPartial(xt.addedAt):void 0,Mt}};function Ot(){return{address:"",weight:"",metadata:""}}_e.MemberRequest={encode(xt,Mt=dt.Writer.create()){return xt.address!==""&&Mt.uint32(10).string(xt.address),xt.weight!==""&&Mt.uint32(18).string(xt.weight),xt.metadata!==""&&Mt.uint32(26).string(xt.metadata),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=Ot();for(;ho.pos>>3){case 1:co.address=ho.string();break;case 2:co.weight=ho.string();break;case 3:co.metadata=ho.string();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{address:(0,st.isSet)(xt.address)?String(xt.address):"",weight:(0,st.isSet)(xt.weight)?String(xt.weight):"",metadata:(0,st.isSet)(xt.metadata)?String(xt.metadata):""}},toJSON(xt){const Mt={};return xt.address!==void 0&&(Mt.address=xt.address),xt.weight!==void 0&&(Mt.weight=xt.weight),xt.metadata!==void 0&&(Mt.metadata=xt.metadata),Mt},fromPartial(xt){const Mt=Ot();return Mt.address=xt.address??"",Mt.weight=xt.weight??"",Mt.metadata=xt.metadata??"",Mt}};function uo(){return{threshold:"",windows:void 0}}_e.ThresholdDecisionPolicy={encode(xt,Mt=dt.Writer.create()){return xt.threshold!==""&&Mt.uint32(10).string(xt.threshold),xt.windows!==void 0&&_e.DecisionPolicyWindows.encode(xt.windows,Mt.uint32(18).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=uo();for(;ho.pos>>3){case 1:co.threshold=ho.string();break;case 2:co.windows=_e.DecisionPolicyWindows.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{threshold:(0,st.isSet)(xt.threshold)?String(xt.threshold):"",windows:(0,st.isSet)(xt.windows)?_e.DecisionPolicyWindows.fromJSON(xt.windows):void 0}},toJSON(xt){const Mt={};return xt.threshold!==void 0&&(Mt.threshold=xt.threshold),xt.windows!==void 0&&(Mt.windows=xt.windows?_e.DecisionPolicyWindows.toJSON(xt.windows):void 0),Mt},fromPartial(xt){const Mt=uo();return Mt.threshold=xt.threshold??"",Mt.windows=xt.windows!==void 0&&xt.windows!==null?_e.DecisionPolicyWindows.fromPartial(xt.windows):void 0,Mt}};function go(){return{percentage:"",windows:void 0}}_e.PercentageDecisionPolicy={encode(xt,Mt=dt.Writer.create()){return xt.percentage!==""&&Mt.uint32(10).string(xt.percentage),xt.windows!==void 0&&_e.DecisionPolicyWindows.encode(xt.windows,Mt.uint32(18).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=go();for(;ho.pos>>3){case 1:co.percentage=ho.string();break;case 2:co.windows=_e.DecisionPolicyWindows.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{percentage:(0,st.isSet)(xt.percentage)?String(xt.percentage):"",windows:(0,st.isSet)(xt.windows)?_e.DecisionPolicyWindows.fromJSON(xt.windows):void 0}},toJSON(xt){const Mt={};return xt.percentage!==void 0&&(Mt.percentage=xt.percentage),xt.windows!==void 0&&(Mt.windows=xt.windows?_e.DecisionPolicyWindows.toJSON(xt.windows):void 0),Mt},fromPartial(xt){const Mt=go();return Mt.percentage=xt.percentage??"",Mt.windows=xt.windows!==void 0&&xt.windows!==null?_e.DecisionPolicyWindows.fromPartial(xt.windows):void 0,Mt}};function bo(){return{votingPeriod:void 0,minExecutionPeriod:void 0}}_e.DecisionPolicyWindows={encode(xt,Mt=dt.Writer.create()){return xt.votingPeriod!==void 0&&tt.Duration.encode(xt.votingPeriod,Mt.uint32(10).fork()).ldelim(),xt.minExecutionPeriod!==void 0&&tt.Duration.encode(xt.minExecutionPeriod,Mt.uint32(18).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=bo();for(;ho.pos>>3){case 1:co.votingPeriod=tt.Duration.decode(ho,ho.uint32());break;case 2:co.minExecutionPeriod=tt.Duration.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{votingPeriod:(0,st.isSet)(xt.votingPeriod)?tt.Duration.fromJSON(xt.votingPeriod):void 0,minExecutionPeriod:(0,st.isSet)(xt.minExecutionPeriod)?tt.Duration.fromJSON(xt.minExecutionPeriod):void 0}},toJSON(xt){const Mt={};return xt.votingPeriod!==void 0&&(Mt.votingPeriod=xt.votingPeriod?tt.Duration.toJSON(xt.votingPeriod):void 0),xt.minExecutionPeriod!==void 0&&(Mt.minExecutionPeriod=xt.minExecutionPeriod?tt.Duration.toJSON(xt.minExecutionPeriod):void 0),Mt},fromPartial(xt){const Mt=bo();return Mt.votingPeriod=xt.votingPeriod!==void 0&&xt.votingPeriod!==null?tt.Duration.fromPartial(xt.votingPeriod):void 0,Mt.minExecutionPeriod=xt.minExecutionPeriod!==void 0&&xt.minExecutionPeriod!==null?tt.Duration.fromPartial(xt.minExecutionPeriod):void 0,Mt}};function oo(){return{id:st.Long.UZERO,admin:"",metadata:"",version:st.Long.UZERO,totalWeight:"",createdAt:void 0}}_e.GroupInfo={encode(xt,Mt=dt.Writer.create()){return xt.id.isZero()||Mt.uint32(8).uint64(xt.id),xt.admin!==""&&Mt.uint32(18).string(xt.admin),xt.metadata!==""&&Mt.uint32(26).string(xt.metadata),xt.version.isZero()||Mt.uint32(32).uint64(xt.version),xt.totalWeight!==""&&Mt.uint32(42).string(xt.totalWeight),xt.createdAt!==void 0&&Vr.Timestamp.encode(xt.createdAt,Mt.uint32(50).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=oo();for(;ho.pos>>3){case 1:co.id=ho.uint64();break;case 2:co.admin=ho.string();break;case 3:co.metadata=ho.string();break;case 4:co.version=ho.uint64();break;case 5:co.totalWeight=ho.string();break;case 6:co.createdAt=Vr.Timestamp.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{id:(0,st.isSet)(xt.id)?st.Long.fromValue(xt.id):st.Long.UZERO,admin:(0,st.isSet)(xt.admin)?String(xt.admin):"",metadata:(0,st.isSet)(xt.metadata)?String(xt.metadata):"",version:(0,st.isSet)(xt.version)?st.Long.fromValue(xt.version):st.Long.UZERO,totalWeight:(0,st.isSet)(xt.totalWeight)?String(xt.totalWeight):"",createdAt:(0,st.isSet)(xt.createdAt)?(0,st.fromJsonTimestamp)(xt.createdAt):void 0}},toJSON(xt){const Mt={};return xt.id!==void 0&&(Mt.id=(xt.id||st.Long.UZERO).toString()),xt.admin!==void 0&&(Mt.admin=xt.admin),xt.metadata!==void 0&&(Mt.metadata=xt.metadata),xt.version!==void 0&&(Mt.version=(xt.version||st.Long.UZERO).toString()),xt.totalWeight!==void 0&&(Mt.totalWeight=xt.totalWeight),xt.createdAt!==void 0&&(Mt.createdAt=(0,st.fromTimestamp)(xt.createdAt).toISOString()),Mt},fromPartial(xt){const Mt=oo();return Mt.id=xt.id!==void 0&&xt.id!==null?st.Long.fromValue(xt.id):st.Long.UZERO,Mt.admin=xt.admin??"",Mt.metadata=xt.metadata??"",Mt.version=xt.version!==void 0&&xt.version!==null?st.Long.fromValue(xt.version):st.Long.UZERO,Mt.totalWeight=xt.totalWeight??"",Mt.createdAt=xt.createdAt!==void 0&&xt.createdAt!==null?Vr.Timestamp.fromPartial(xt.createdAt):void 0,Mt}};function Ro(){return{groupId:st.Long.UZERO,member:void 0}}_e.GroupMember={encode(xt,Mt=dt.Writer.create()){return xt.groupId.isZero()||Mt.uint32(8).uint64(xt.groupId),xt.member!==void 0&&_e.Member.encode(xt.member,Mt.uint32(18).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=Ro();for(;ho.pos>>3){case 1:co.groupId=ho.uint64();break;case 2:co.member=_e.Member.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{groupId:(0,st.isSet)(xt.groupId)?st.Long.fromValue(xt.groupId):st.Long.UZERO,member:(0,st.isSet)(xt.member)?_e.Member.fromJSON(xt.member):void 0}},toJSON(xt){const Mt={};return xt.groupId!==void 0&&(Mt.groupId=(xt.groupId||st.Long.UZERO).toString()),xt.member!==void 0&&(Mt.member=xt.member?_e.Member.toJSON(xt.member):void 0),Mt},fromPartial(xt){const Mt=Ro();return Mt.groupId=xt.groupId!==void 0&&xt.groupId!==null?st.Long.fromValue(xt.groupId):st.Long.UZERO,Mt.member=xt.member!==void 0&&xt.member!==null?_e.Member.fromPartial(xt.member):void 0,Mt}};function pt(){return{address:"",groupId:st.Long.UZERO,admin:"",metadata:"",version:st.Long.UZERO,decisionPolicy:void 0,createdAt:void 0}}_e.GroupPolicyInfo={encode(xt,Mt=dt.Writer.create()){return xt.address!==""&&Mt.uint32(10).string(xt.address),xt.groupId.isZero()||Mt.uint32(16).uint64(xt.groupId),xt.admin!==""&&Mt.uint32(26).string(xt.admin),xt.metadata!==""&&Mt.uint32(34).string(xt.metadata),xt.version.isZero()||Mt.uint32(40).uint64(xt.version),xt.decisionPolicy!==void 0&&nt.Any.encode(xt.decisionPolicy,Mt.uint32(50).fork()).ldelim(),xt.createdAt!==void 0&&Vr.Timestamp.encode(xt.createdAt,Mt.uint32(58).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=pt();for(;ho.pos>>3){case 1:co.address=ho.string();break;case 2:co.groupId=ho.uint64();break;case 3:co.admin=ho.string();break;case 4:co.metadata=ho.string();break;case 5:co.version=ho.uint64();break;case 6:co.decisionPolicy=nt.Any.decode(ho,ho.uint32());break;case 7:co.createdAt=Vr.Timestamp.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{address:(0,st.isSet)(xt.address)?String(xt.address):"",groupId:(0,st.isSet)(xt.groupId)?st.Long.fromValue(xt.groupId):st.Long.UZERO,admin:(0,st.isSet)(xt.admin)?String(xt.admin):"",metadata:(0,st.isSet)(xt.metadata)?String(xt.metadata):"",version:(0,st.isSet)(xt.version)?st.Long.fromValue(xt.version):st.Long.UZERO,decisionPolicy:(0,st.isSet)(xt.decisionPolicy)?nt.Any.fromJSON(xt.decisionPolicy):void 0,createdAt:(0,st.isSet)(xt.createdAt)?(0,st.fromJsonTimestamp)(xt.createdAt):void 0}},toJSON(xt){const Mt={};return xt.address!==void 0&&(Mt.address=xt.address),xt.groupId!==void 0&&(Mt.groupId=(xt.groupId||st.Long.UZERO).toString()),xt.admin!==void 0&&(Mt.admin=xt.admin),xt.metadata!==void 0&&(Mt.metadata=xt.metadata),xt.version!==void 0&&(Mt.version=(xt.version||st.Long.UZERO).toString()),xt.decisionPolicy!==void 0&&(Mt.decisionPolicy=xt.decisionPolicy?nt.Any.toJSON(xt.decisionPolicy):void 0),xt.createdAt!==void 0&&(Mt.createdAt=(0,st.fromTimestamp)(xt.createdAt).toISOString()),Mt},fromPartial(xt){const Mt=pt();return Mt.address=xt.address??"",Mt.groupId=xt.groupId!==void 0&&xt.groupId!==null?st.Long.fromValue(xt.groupId):st.Long.UZERO,Mt.admin=xt.admin??"",Mt.metadata=xt.metadata??"",Mt.version=xt.version!==void 0&&xt.version!==null?st.Long.fromValue(xt.version):st.Long.UZERO,Mt.decisionPolicy=xt.decisionPolicy!==void 0&&xt.decisionPolicy!==null?nt.Any.fromPartial(xt.decisionPolicy):void 0,Mt.createdAt=xt.createdAt!==void 0&&xt.createdAt!==null?Vr.Timestamp.fromPartial(xt.createdAt):void 0,Mt}};function lo(){return{id:st.Long.UZERO,groupPolicyAddress:"",metadata:"",proposers:[],submitTime:void 0,groupVersion:st.Long.UZERO,groupPolicyVersion:st.Long.UZERO,status:0,finalTallyResult:void 0,votingPeriodEnd:void 0,executorResult:0,messages:[],title:"",summary:""}}_e.Proposal={encode(xt,Mt=dt.Writer.create()){xt.id.isZero()||Mt.uint32(8).uint64(xt.id),xt.groupPolicyAddress!==""&&Mt.uint32(18).string(xt.groupPolicyAddress),xt.metadata!==""&&Mt.uint32(26).string(xt.metadata);for(const ho of xt.proposers)Mt.uint32(34).string(ho);xt.submitTime!==void 0&&Vr.Timestamp.encode(xt.submitTime,Mt.uint32(42).fork()).ldelim(),xt.groupVersion.isZero()||Mt.uint32(48).uint64(xt.groupVersion),xt.groupPolicyVersion.isZero()||Mt.uint32(56).uint64(xt.groupPolicyVersion),xt.status!==0&&Mt.uint32(64).int32(xt.status),xt.finalTallyResult!==void 0&&_e.TallyResult.encode(xt.finalTallyResult,Mt.uint32(74).fork()).ldelim(),xt.votingPeriodEnd!==void 0&&Vr.Timestamp.encode(xt.votingPeriodEnd,Mt.uint32(82).fork()).ldelim(),xt.executorResult!==0&&Mt.uint32(88).int32(xt.executorResult);for(const ho of xt.messages)nt.Any.encode(ho,Mt.uint32(98).fork()).ldelim();return xt.title!==""&&Mt.uint32(106).string(xt.title),xt.summary!==""&&Mt.uint32(114).string(xt.summary),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=lo();for(;ho.pos>>3){case 1:co.id=ho.uint64();break;case 2:co.groupPolicyAddress=ho.string();break;case 3:co.metadata=ho.string();break;case 4:co.proposers.push(ho.string());break;case 5:co.submitTime=Vr.Timestamp.decode(ho,ho.uint32());break;case 6:co.groupVersion=ho.uint64();break;case 7:co.groupPolicyVersion=ho.uint64();break;case 8:co.status=ho.int32();break;case 9:co.finalTallyResult=_e.TallyResult.decode(ho,ho.uint32());break;case 10:co.votingPeriodEnd=Vr.Timestamp.decode(ho,ho.uint32());break;case 11:co.executorResult=ho.int32();break;case 12:co.messages.push(nt.Any.decode(ho,ho.uint32()));break;case 13:co.title=ho.string();break;case 14:co.summary=ho.string();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{id:(0,st.isSet)(xt.id)?st.Long.fromValue(xt.id):st.Long.UZERO,groupPolicyAddress:(0,st.isSet)(xt.groupPolicyAddress)?String(xt.groupPolicyAddress):"",metadata:(0,st.isSet)(xt.metadata)?String(xt.metadata):"",proposers:Array.isArray(xt==null?void 0:xt.proposers)?xt.proposers.map(Mt=>String(Mt)):[],submitTime:(0,st.isSet)(xt.submitTime)?(0,st.fromJsonTimestamp)(xt.submitTime):void 0,groupVersion:(0,st.isSet)(xt.groupVersion)?st.Long.fromValue(xt.groupVersion):st.Long.UZERO,groupPolicyVersion:(0,st.isSet)(xt.groupPolicyVersion)?st.Long.fromValue(xt.groupPolicyVersion):st.Long.UZERO,status:(0,st.isSet)(xt.status)?po(xt.status):0,finalTallyResult:(0,st.isSet)(xt.finalTallyResult)?_e.TallyResult.fromJSON(xt.finalTallyResult):void 0,votingPeriodEnd:(0,st.isSet)(xt.votingPeriodEnd)?(0,st.fromJsonTimestamp)(xt.votingPeriodEnd):void 0,executorResult:(0,st.isSet)(xt.executorResult)?eo(xt.executorResult):0,messages:Array.isArray(xt==null?void 0:xt.messages)?xt.messages.map(Mt=>nt.Any.fromJSON(Mt)):[],title:(0,st.isSet)(xt.title)?String(xt.title):"",summary:(0,st.isSet)(xt.summary)?String(xt.summary):""}},toJSON(xt){const Mt={};return xt.id!==void 0&&(Mt.id=(xt.id||st.Long.UZERO).toString()),xt.groupPolicyAddress!==void 0&&(Mt.groupPolicyAddress=xt.groupPolicyAddress),xt.metadata!==void 0&&(Mt.metadata=xt.metadata),xt.proposers?Mt.proposers=xt.proposers.map(ho=>ho):Mt.proposers=[],xt.submitTime!==void 0&&(Mt.submitTime=(0,st.fromTimestamp)(xt.submitTime).toISOString()),xt.groupVersion!==void 0&&(Mt.groupVersion=(xt.groupVersion||st.Long.UZERO).toString()),xt.groupPolicyVersion!==void 0&&(Mt.groupPolicyVersion=(xt.groupPolicyVersion||st.Long.UZERO).toString()),xt.status!==void 0&&(Mt.status=no(xt.status)),xt.finalTallyResult!==void 0&&(Mt.finalTallyResult=xt.finalTallyResult?_e.TallyResult.toJSON(xt.finalTallyResult):void 0),xt.votingPeriodEnd!==void 0&&(Mt.votingPeriodEnd=(0,st.fromTimestamp)(xt.votingPeriodEnd).toISOString()),xt.executorResult!==void 0&&(Mt.executorResult=Wt(xt.executorResult)),xt.messages?Mt.messages=xt.messages.map(ho=>ho?nt.Any.toJSON(ho):void 0):Mt.messages=[],xt.title!==void 0&&(Mt.title=xt.title),xt.summary!==void 0&&(Mt.summary=xt.summary),Mt},fromPartial(xt){var ho,io;const Mt=lo();return Mt.id=xt.id!==void 0&&xt.id!==null?st.Long.fromValue(xt.id):st.Long.UZERO,Mt.groupPolicyAddress=xt.groupPolicyAddress??"",Mt.metadata=xt.metadata??"",Mt.proposers=((ho=xt.proposers)==null?void 0:ho.map(co=>co))||[],Mt.submitTime=xt.submitTime!==void 0&&xt.submitTime!==null?Vr.Timestamp.fromPartial(xt.submitTime):void 0,Mt.groupVersion=xt.groupVersion!==void 0&&xt.groupVersion!==null?st.Long.fromValue(xt.groupVersion):st.Long.UZERO,Mt.groupPolicyVersion=xt.groupPolicyVersion!==void 0&&xt.groupPolicyVersion!==null?st.Long.fromValue(xt.groupPolicyVersion):st.Long.UZERO,Mt.status=xt.status??0,Mt.finalTallyResult=xt.finalTallyResult!==void 0&&xt.finalTallyResult!==null?_e.TallyResult.fromPartial(xt.finalTallyResult):void 0,Mt.votingPeriodEnd=xt.votingPeriodEnd!==void 0&&xt.votingPeriodEnd!==null?Vr.Timestamp.fromPartial(xt.votingPeriodEnd):void 0,Mt.executorResult=xt.executorResult??0,Mt.messages=((io=xt.messages)==null?void 0:io.map(co=>nt.Any.fromPartial(co)))||[],Mt.title=xt.title??"",Mt.summary=xt.summary??"",Mt}};function so(){return{yesCount:"",abstainCount:"",noCount:"",noWithVetoCount:""}}_e.TallyResult={encode(xt,Mt=dt.Writer.create()){return xt.yesCount!==""&&Mt.uint32(10).string(xt.yesCount),xt.abstainCount!==""&&Mt.uint32(18).string(xt.abstainCount),xt.noCount!==""&&Mt.uint32(26).string(xt.noCount),xt.noWithVetoCount!==""&&Mt.uint32(34).string(xt.noWithVetoCount),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=so();for(;ho.pos>>3){case 1:co.yesCount=ho.string();break;case 2:co.abstainCount=ho.string();break;case 3:co.noCount=ho.string();break;case 4:co.noWithVetoCount=ho.string();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{yesCount:(0,st.isSet)(xt.yesCount)?String(xt.yesCount):"",abstainCount:(0,st.isSet)(xt.abstainCount)?String(xt.abstainCount):"",noCount:(0,st.isSet)(xt.noCount)?String(xt.noCount):"",noWithVetoCount:(0,st.isSet)(xt.noWithVetoCount)?String(xt.noWithVetoCount):""}},toJSON(xt){const Mt={};return xt.yesCount!==void 0&&(Mt.yesCount=xt.yesCount),xt.abstainCount!==void 0&&(Mt.abstainCount=xt.abstainCount),xt.noCount!==void 0&&(Mt.noCount=xt.noCount),xt.noWithVetoCount!==void 0&&(Mt.noWithVetoCount=xt.noWithVetoCount),Mt},fromPartial(xt){const Mt=so();return Mt.yesCount=xt.yesCount??"",Mt.abstainCount=xt.abstainCount??"",Mt.noCount=xt.noCount??"",Mt.noWithVetoCount=xt.noWithVetoCount??"",Mt}};function wo(){return{proposalId:st.Long.UZERO,voter:"",option:0,metadata:"",submitTime:void 0}}_e.Vote={encode(xt,Mt=dt.Writer.create()){return xt.proposalId.isZero()||Mt.uint32(8).uint64(xt.proposalId),xt.voter!==""&&Mt.uint32(18).string(xt.voter),xt.option!==0&&Mt.uint32(24).int32(xt.option),xt.metadata!==""&&Mt.uint32(34).string(xt.metadata),xt.submitTime!==void 0&&Vr.Timestamp.encode(xt.submitTime,Mt.uint32(42).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof dt.Reader?xt:new dt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=wo();for(;ho.pos>>3){case 1:co.proposalId=ho.uint64();break;case 2:co.voter=ho.string();break;case 3:co.option=ho.int32();break;case 4:co.metadata=ho.string();break;case 5:co.submitTime=Vr.Timestamp.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{proposalId:(0,st.isSet)(xt.proposalId)?st.Long.fromValue(xt.proposalId):st.Long.UZERO,voter:(0,st.isSet)(xt.voter)?String(xt.voter):"",option:(0,st.isSet)(xt.option)?qt(xt.option):0,metadata:(0,st.isSet)(xt.metadata)?String(xt.metadata):"",submitTime:(0,st.isSet)(xt.submitTime)?(0,st.fromJsonTimestamp)(xt.submitTime):void 0}},toJSON(xt){const Mt={};return xt.proposalId!==void 0&&(Mt.proposalId=(xt.proposalId||st.Long.UZERO).toString()),xt.voter!==void 0&&(Mt.voter=xt.voter),xt.option!==void 0&&(Mt.option=ro(xt.option)),xt.metadata!==void 0&&(Mt.metadata=xt.metadata),xt.submitTime!==void 0&&(Mt.submitTime=(0,st.fromTimestamp)(xt.submitTime).toISOString()),Mt},fromPartial(xt){const Mt=wo();return Mt.proposalId=xt.proposalId!==void 0&&xt.proposalId!==null?st.Long.fromValue(xt.proposalId):st.Long.UZERO,Mt.voter=xt.voter??"",Mt.option=xt.option??0,Mt.metadata=xt.metadata??"",Mt.submitTime=xt.submitTime!==void 0&&xt.submitTime!==null?Vr.Timestamp.fromPartial(xt.submitTime):void 0,Mt}}})(types$7),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xo,Po,Wo,Yn){Yn===void 0&&(Yn=Wo);var ba=Object.getOwnPropertyDescriptor(Po,Wo);(!ba||("get"in ba?!Po.__esModule:ba.writable||ba.configurable))&&(ba={enumerable:!0,get:function(){return Po[Wo]}}),Object.defineProperty(xo,Yn,ba)}:function(xo,Po,Wo,Yn){Yn===void 0&&(Yn=Wo),xo[Yn]=Po[Wo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(xo,Po){Object.defineProperty(xo,"default",{enumerable:!0,value:Po})}:function(xo,Po){xo.default=Po}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(xo){if(xo&&xo.__esModule)return xo;var Po={};if(xo!=null)for(var Wo in xo)Wo!=="default"&&Object.prototype.hasOwnProperty.call(xo,Wo)&&cr(Po,xo,Wo);return gr(Po,xo),Po};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgLeaveGroupResponse=_e.MsgLeaveGroup=_e.MsgExecResponse=_e.MsgExec=_e.MsgVoteResponse=_e.MsgVote=_e.MsgWithdrawProposalResponse=_e.MsgWithdrawProposal=_e.MsgSubmitProposalResponse=_e.MsgSubmitProposal=_e.MsgUpdateGroupPolicyMetadataResponse=_e.MsgUpdateGroupPolicyMetadata=_e.MsgUpdateGroupPolicyDecisionPolicyResponse=_e.MsgUpdateGroupPolicyDecisionPolicy=_e.MsgCreateGroupWithPolicyResponse=_e.MsgCreateGroupWithPolicy=_e.MsgUpdateGroupPolicyAdminResponse=_e.MsgUpdateGroupPolicyAdmin=_e.MsgCreateGroupPolicyResponse=_e.MsgCreateGroupPolicy=_e.MsgUpdateGroupMetadataResponse=_e.MsgUpdateGroupMetadata=_e.MsgUpdateGroupAdminResponse=_e.MsgUpdateGroupAdmin=_e.MsgUpdateGroupMembersResponse=_e.MsgUpdateGroupMembers=_e.MsgCreateGroupResponse=_e.MsgCreateGroup=_e.execToJSON=_e.execFromJSON=_e.Exec=_e.protobufPackage=void 0;const Vr=types$7,tt=any,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.group.v1";var dt;(function(xo){xo[xo.EXEC_UNSPECIFIED=0]="EXEC_UNSPECIFIED",xo[xo.EXEC_TRY=1]="EXEC_TRY",xo[xo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dt=_e.Exec||(_e.Exec={}));function kt(xo){switch(xo){case 0:case"EXEC_UNSPECIFIED":return dt.EXEC_UNSPECIFIED;case 1:case"EXEC_TRY":return dt.EXEC_TRY;case-1:case"UNRECOGNIZED":default:return dt.UNRECOGNIZED}}_e.execFromJSON=kt;function qt(xo){switch(xo){case dt.EXEC_UNSPECIFIED:return"EXEC_UNSPECIFIED";case dt.EXEC_TRY:return"EXEC_TRY";case dt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.execToJSON=qt;function ro(){return{admin:"",members:[],metadata:""}}_e.MsgCreateGroup={encode(xo,Po=st.Writer.create()){xo.admin!==""&&Po.uint32(10).string(xo.admin);for(const Wo of xo.members)Vr.MemberRequest.encode(Wo,Po.uint32(18).fork()).ldelim();return xo.metadata!==""&&Po.uint32(26).string(xo.metadata),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=ro();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.members.push(Vr.MemberRequest.decode(Wo,Wo.uint32()));break;case 3:ba.metadata=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",members:Array.isArray(xo==null?void 0:xo.members)?xo.members.map(Po=>Vr.MemberRequest.fromJSON(Po)):[],metadata:(0,nt.isSet)(xo.metadata)?String(xo.metadata):""}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.members?Po.members=xo.members.map(Wo=>Wo?Vr.MemberRequest.toJSON(Wo):void 0):Po.members=[],xo.metadata!==void 0&&(Po.metadata=xo.metadata),Po},fromPartial(xo){var Wo;const Po=ro();return Po.admin=xo.admin??"",Po.members=((Wo=xo.members)==null?void 0:Wo.map(Yn=>Vr.MemberRequest.fromPartial(Yn)))||[],Po.metadata=xo.metadata??"",Po}};function ht(){return{groupId:nt.Long.UZERO}}_e.MsgCreateGroupResponse={encode(xo,Po=st.Writer.create()){return xo.groupId.isZero()||Po.uint32(8).uint64(xo.groupId),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=ht();for(;Wo.pos>>3){case 1:ba.groupId=Wo.uint64();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{groupId:(0,nt.isSet)(xo.groupId)?nt.Long.fromValue(xo.groupId):nt.Long.UZERO}},toJSON(xo){const Po={};return xo.groupId!==void 0&&(Po.groupId=(xo.groupId||nt.Long.UZERO).toString()),Po},fromPartial(xo){const Po=ht();return Po.groupId=xo.groupId!==void 0&&xo.groupId!==null?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,Po}};function po(){return{admin:"",groupId:nt.Long.UZERO,memberUpdates:[]}}_e.MsgUpdateGroupMembers={encode(xo,Po=st.Writer.create()){xo.admin!==""&&Po.uint32(10).string(xo.admin),xo.groupId.isZero()||Po.uint32(16).uint64(xo.groupId);for(const Wo of xo.memberUpdates)Vr.MemberRequest.encode(Wo,Po.uint32(26).fork()).ldelim();return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=po();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.groupId=Wo.uint64();break;case 3:ba.memberUpdates.push(Vr.MemberRequest.decode(Wo,Wo.uint32()));break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",groupId:(0,nt.isSet)(xo.groupId)?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,memberUpdates:Array.isArray(xo==null?void 0:xo.memberUpdates)?xo.memberUpdates.map(Po=>Vr.MemberRequest.fromJSON(Po)):[]}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.groupId!==void 0&&(Po.groupId=(xo.groupId||nt.Long.UZERO).toString()),xo.memberUpdates?Po.memberUpdates=xo.memberUpdates.map(Wo=>Wo?Vr.MemberRequest.toJSON(Wo):void 0):Po.memberUpdates=[],Po},fromPartial(xo){var Wo;const Po=po();return Po.admin=xo.admin??"",Po.groupId=xo.groupId!==void 0&&xo.groupId!==null?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,Po.memberUpdates=((Wo=xo.memberUpdates)==null?void 0:Wo.map(Yn=>Vr.MemberRequest.fromPartial(Yn)))||[],Po}};function no(){return{}}_e.MsgUpdateGroupMembersResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=no();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return no()}};function Nt(){return{admin:"",groupId:nt.Long.UZERO,newAdmin:""}}_e.MsgUpdateGroupAdmin={encode(xo,Po=st.Writer.create()){return xo.admin!==""&&Po.uint32(10).string(xo.admin),xo.groupId.isZero()||Po.uint32(16).uint64(xo.groupId),xo.newAdmin!==""&&Po.uint32(26).string(xo.newAdmin),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=Nt();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.groupId=Wo.uint64();break;case 3:ba.newAdmin=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",groupId:(0,nt.isSet)(xo.groupId)?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,newAdmin:(0,nt.isSet)(xo.newAdmin)?String(xo.newAdmin):""}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.groupId!==void 0&&(Po.groupId=(xo.groupId||nt.Long.UZERO).toString()),xo.newAdmin!==void 0&&(Po.newAdmin=xo.newAdmin),Po},fromPartial(xo){const Po=Nt();return Po.admin=xo.admin??"",Po.groupId=xo.groupId!==void 0&&xo.groupId!==null?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,Po.newAdmin=xo.newAdmin??"",Po}};function eo(){return{}}_e.MsgUpdateGroupAdminResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=eo();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return eo()}};function Wt(){return{admin:"",groupId:nt.Long.UZERO,metadata:""}}_e.MsgUpdateGroupMetadata={encode(xo,Po=st.Writer.create()){return xo.admin!==""&&Po.uint32(10).string(xo.admin),xo.groupId.isZero()||Po.uint32(16).uint64(xo.groupId),xo.metadata!==""&&Po.uint32(26).string(xo.metadata),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=Wt();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.groupId=Wo.uint64();break;case 3:ba.metadata=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",groupId:(0,nt.isSet)(xo.groupId)?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,metadata:(0,nt.isSet)(xo.metadata)?String(xo.metadata):""}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.groupId!==void 0&&(Po.groupId=(xo.groupId||nt.Long.UZERO).toString()),xo.metadata!==void 0&&(Po.metadata=xo.metadata),Po},fromPartial(xo){const Po=Wt();return Po.admin=xo.admin??"",Po.groupId=xo.groupId!==void 0&&xo.groupId!==null?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,Po.metadata=xo.metadata??"",Po}};function St(){return{}}_e.MsgUpdateGroupMetadataResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=St();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return St()}};function Ot(){return{admin:"",groupId:nt.Long.UZERO,metadata:"",decisionPolicy:void 0}}_e.MsgCreateGroupPolicy={encode(xo,Po=st.Writer.create()){return xo.admin!==""&&Po.uint32(10).string(xo.admin),xo.groupId.isZero()||Po.uint32(16).uint64(xo.groupId),xo.metadata!==""&&Po.uint32(26).string(xo.metadata),xo.decisionPolicy!==void 0&&tt.Any.encode(xo.decisionPolicy,Po.uint32(34).fork()).ldelim(),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=Ot();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.groupId=Wo.uint64();break;case 3:ba.metadata=Wo.string();break;case 4:ba.decisionPolicy=tt.Any.decode(Wo,Wo.uint32());break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",groupId:(0,nt.isSet)(xo.groupId)?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,metadata:(0,nt.isSet)(xo.metadata)?String(xo.metadata):"",decisionPolicy:(0,nt.isSet)(xo.decisionPolicy)?tt.Any.fromJSON(xo.decisionPolicy):void 0}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.groupId!==void 0&&(Po.groupId=(xo.groupId||nt.Long.UZERO).toString()),xo.metadata!==void 0&&(Po.metadata=xo.metadata),xo.decisionPolicy!==void 0&&(Po.decisionPolicy=xo.decisionPolicy?tt.Any.toJSON(xo.decisionPolicy):void 0),Po},fromPartial(xo){const Po=Ot();return Po.admin=xo.admin??"",Po.groupId=xo.groupId!==void 0&&xo.groupId!==null?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,Po.metadata=xo.metadata??"",Po.decisionPolicy=xo.decisionPolicy!==void 0&&xo.decisionPolicy!==null?tt.Any.fromPartial(xo.decisionPolicy):void 0,Po}};function uo(){return{address:""}}_e.MsgCreateGroupPolicyResponse={encode(xo,Po=st.Writer.create()){return xo.address!==""&&Po.uint32(10).string(xo.address),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=uo();for(;Wo.pos>>3){case 1:ba.address=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{address:(0,nt.isSet)(xo.address)?String(xo.address):""}},toJSON(xo){const Po={};return xo.address!==void 0&&(Po.address=xo.address),Po},fromPartial(xo){const Po=uo();return Po.address=xo.address??"",Po}};function go(){return{admin:"",groupPolicyAddress:"",newAdmin:""}}_e.MsgUpdateGroupPolicyAdmin={encode(xo,Po=st.Writer.create()){return xo.admin!==""&&Po.uint32(10).string(xo.admin),xo.groupPolicyAddress!==""&&Po.uint32(18).string(xo.groupPolicyAddress),xo.newAdmin!==""&&Po.uint32(26).string(xo.newAdmin),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=go();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.groupPolicyAddress=Wo.string();break;case 3:ba.newAdmin=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",groupPolicyAddress:(0,nt.isSet)(xo.groupPolicyAddress)?String(xo.groupPolicyAddress):"",newAdmin:(0,nt.isSet)(xo.newAdmin)?String(xo.newAdmin):""}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.groupPolicyAddress!==void 0&&(Po.groupPolicyAddress=xo.groupPolicyAddress),xo.newAdmin!==void 0&&(Po.newAdmin=xo.newAdmin),Po},fromPartial(xo){const Po=go();return Po.admin=xo.admin??"",Po.groupPolicyAddress=xo.groupPolicyAddress??"",Po.newAdmin=xo.newAdmin??"",Po}};function bo(){return{}}_e.MsgUpdateGroupPolicyAdminResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=bo();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return bo()}};function oo(){return{admin:"",members:[],groupMetadata:"",groupPolicyMetadata:"",groupPolicyAsAdmin:!1,decisionPolicy:void 0}}_e.MsgCreateGroupWithPolicy={encode(xo,Po=st.Writer.create()){xo.admin!==""&&Po.uint32(10).string(xo.admin);for(const Wo of xo.members)Vr.MemberRequest.encode(Wo,Po.uint32(18).fork()).ldelim();return xo.groupMetadata!==""&&Po.uint32(26).string(xo.groupMetadata),xo.groupPolicyMetadata!==""&&Po.uint32(34).string(xo.groupPolicyMetadata),xo.groupPolicyAsAdmin===!0&&Po.uint32(40).bool(xo.groupPolicyAsAdmin),xo.decisionPolicy!==void 0&&tt.Any.encode(xo.decisionPolicy,Po.uint32(50).fork()).ldelim(),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=oo();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.members.push(Vr.MemberRequest.decode(Wo,Wo.uint32()));break;case 3:ba.groupMetadata=Wo.string();break;case 4:ba.groupPolicyMetadata=Wo.string();break;case 5:ba.groupPolicyAsAdmin=Wo.bool();break;case 6:ba.decisionPolicy=tt.Any.decode(Wo,Wo.uint32());break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",members:Array.isArray(xo==null?void 0:xo.members)?xo.members.map(Po=>Vr.MemberRequest.fromJSON(Po)):[],groupMetadata:(0,nt.isSet)(xo.groupMetadata)?String(xo.groupMetadata):"",groupPolicyMetadata:(0,nt.isSet)(xo.groupPolicyMetadata)?String(xo.groupPolicyMetadata):"",groupPolicyAsAdmin:(0,nt.isSet)(xo.groupPolicyAsAdmin)?!!xo.groupPolicyAsAdmin:!1,decisionPolicy:(0,nt.isSet)(xo.decisionPolicy)?tt.Any.fromJSON(xo.decisionPolicy):void 0}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.members?Po.members=xo.members.map(Wo=>Wo?Vr.MemberRequest.toJSON(Wo):void 0):Po.members=[],xo.groupMetadata!==void 0&&(Po.groupMetadata=xo.groupMetadata),xo.groupPolicyMetadata!==void 0&&(Po.groupPolicyMetadata=xo.groupPolicyMetadata),xo.groupPolicyAsAdmin!==void 0&&(Po.groupPolicyAsAdmin=xo.groupPolicyAsAdmin),xo.decisionPolicy!==void 0&&(Po.decisionPolicy=xo.decisionPolicy?tt.Any.toJSON(xo.decisionPolicy):void 0),Po},fromPartial(xo){var Wo;const Po=oo();return Po.admin=xo.admin??"",Po.members=((Wo=xo.members)==null?void 0:Wo.map(Yn=>Vr.MemberRequest.fromPartial(Yn)))||[],Po.groupMetadata=xo.groupMetadata??"",Po.groupPolicyMetadata=xo.groupPolicyMetadata??"",Po.groupPolicyAsAdmin=xo.groupPolicyAsAdmin??!1,Po.decisionPolicy=xo.decisionPolicy!==void 0&&xo.decisionPolicy!==null?tt.Any.fromPartial(xo.decisionPolicy):void 0,Po}};function Ro(){return{groupId:nt.Long.UZERO,groupPolicyAddress:""}}_e.MsgCreateGroupWithPolicyResponse={encode(xo,Po=st.Writer.create()){return xo.groupId.isZero()||Po.uint32(8).uint64(xo.groupId),xo.groupPolicyAddress!==""&&Po.uint32(18).string(xo.groupPolicyAddress),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=Ro();for(;Wo.pos>>3){case 1:ba.groupId=Wo.uint64();break;case 2:ba.groupPolicyAddress=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{groupId:(0,nt.isSet)(xo.groupId)?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,groupPolicyAddress:(0,nt.isSet)(xo.groupPolicyAddress)?String(xo.groupPolicyAddress):""}},toJSON(xo){const Po={};return xo.groupId!==void 0&&(Po.groupId=(xo.groupId||nt.Long.UZERO).toString()),xo.groupPolicyAddress!==void 0&&(Po.groupPolicyAddress=xo.groupPolicyAddress),Po},fromPartial(xo){const Po=Ro();return Po.groupId=xo.groupId!==void 0&&xo.groupId!==null?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,Po.groupPolicyAddress=xo.groupPolicyAddress??"",Po}};function pt(){return{admin:"",groupPolicyAddress:"",decisionPolicy:void 0}}_e.MsgUpdateGroupPolicyDecisionPolicy={encode(xo,Po=st.Writer.create()){return xo.admin!==""&&Po.uint32(10).string(xo.admin),xo.groupPolicyAddress!==""&&Po.uint32(18).string(xo.groupPolicyAddress),xo.decisionPolicy!==void 0&&tt.Any.encode(xo.decisionPolicy,Po.uint32(26).fork()).ldelim(),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=pt();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.groupPolicyAddress=Wo.string();break;case 3:ba.decisionPolicy=tt.Any.decode(Wo,Wo.uint32());break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",groupPolicyAddress:(0,nt.isSet)(xo.groupPolicyAddress)?String(xo.groupPolicyAddress):"",decisionPolicy:(0,nt.isSet)(xo.decisionPolicy)?tt.Any.fromJSON(xo.decisionPolicy):void 0}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.groupPolicyAddress!==void 0&&(Po.groupPolicyAddress=xo.groupPolicyAddress),xo.decisionPolicy!==void 0&&(Po.decisionPolicy=xo.decisionPolicy?tt.Any.toJSON(xo.decisionPolicy):void 0),Po},fromPartial(xo){const Po=pt();return Po.admin=xo.admin??"",Po.groupPolicyAddress=xo.groupPolicyAddress??"",Po.decisionPolicy=xo.decisionPolicy!==void 0&&xo.decisionPolicy!==null?tt.Any.fromPartial(xo.decisionPolicy):void 0,Po}};function lo(){return{}}_e.MsgUpdateGroupPolicyDecisionPolicyResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=lo();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return lo()}};function so(){return{admin:"",groupPolicyAddress:"",metadata:""}}_e.MsgUpdateGroupPolicyMetadata={encode(xo,Po=st.Writer.create()){return xo.admin!==""&&Po.uint32(10).string(xo.admin),xo.groupPolicyAddress!==""&&Po.uint32(18).string(xo.groupPolicyAddress),xo.metadata!==""&&Po.uint32(26).string(xo.metadata),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=so();for(;Wo.pos>>3){case 1:ba.admin=Wo.string();break;case 2:ba.groupPolicyAddress=Wo.string();break;case 3:ba.metadata=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{admin:(0,nt.isSet)(xo.admin)?String(xo.admin):"",groupPolicyAddress:(0,nt.isSet)(xo.groupPolicyAddress)?String(xo.groupPolicyAddress):"",metadata:(0,nt.isSet)(xo.metadata)?String(xo.metadata):""}},toJSON(xo){const Po={};return xo.admin!==void 0&&(Po.admin=xo.admin),xo.groupPolicyAddress!==void 0&&(Po.groupPolicyAddress=xo.groupPolicyAddress),xo.metadata!==void 0&&(Po.metadata=xo.metadata),Po},fromPartial(xo){const Po=so();return Po.admin=xo.admin??"",Po.groupPolicyAddress=xo.groupPolicyAddress??"",Po.metadata=xo.metadata??"",Po}};function wo(){return{}}_e.MsgUpdateGroupPolicyMetadataResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=wo();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return wo()}};function xt(){return{groupPolicyAddress:"",proposers:[],metadata:"",messages:[],exec:0,title:"",summary:""}}_e.MsgSubmitProposal={encode(xo,Po=st.Writer.create()){xo.groupPolicyAddress!==""&&Po.uint32(10).string(xo.groupPolicyAddress);for(const Wo of xo.proposers)Po.uint32(18).string(Wo);xo.metadata!==""&&Po.uint32(26).string(xo.metadata);for(const Wo of xo.messages)tt.Any.encode(Wo,Po.uint32(34).fork()).ldelim();return xo.exec!==0&&Po.uint32(40).int32(xo.exec),xo.title!==""&&Po.uint32(50).string(xo.title),xo.summary!==""&&Po.uint32(58).string(xo.summary),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=xt();for(;Wo.pos>>3){case 1:ba.groupPolicyAddress=Wo.string();break;case 2:ba.proposers.push(Wo.string());break;case 3:ba.metadata=Wo.string();break;case 4:ba.messages.push(tt.Any.decode(Wo,Wo.uint32()));break;case 5:ba.exec=Wo.int32();break;case 6:ba.title=Wo.string();break;case 7:ba.summary=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{groupPolicyAddress:(0,nt.isSet)(xo.groupPolicyAddress)?String(xo.groupPolicyAddress):"",proposers:Array.isArray(xo==null?void 0:xo.proposers)?xo.proposers.map(Po=>String(Po)):[],metadata:(0,nt.isSet)(xo.metadata)?String(xo.metadata):"",messages:Array.isArray(xo==null?void 0:xo.messages)?xo.messages.map(Po=>tt.Any.fromJSON(Po)):[],exec:(0,nt.isSet)(xo.exec)?kt(xo.exec):0,title:(0,nt.isSet)(xo.title)?String(xo.title):"",summary:(0,nt.isSet)(xo.summary)?String(xo.summary):""}},toJSON(xo){const Po={};return xo.groupPolicyAddress!==void 0&&(Po.groupPolicyAddress=xo.groupPolicyAddress),xo.proposers?Po.proposers=xo.proposers.map(Wo=>Wo):Po.proposers=[],xo.metadata!==void 0&&(Po.metadata=xo.metadata),xo.messages?Po.messages=xo.messages.map(Wo=>Wo?tt.Any.toJSON(Wo):void 0):Po.messages=[],xo.exec!==void 0&&(Po.exec=qt(xo.exec)),xo.title!==void 0&&(Po.title=xo.title),xo.summary!==void 0&&(Po.summary=xo.summary),Po},fromPartial(xo){var Wo,Yn;const Po=xt();return Po.groupPolicyAddress=xo.groupPolicyAddress??"",Po.proposers=((Wo=xo.proposers)==null?void 0:Wo.map(ba=>ba))||[],Po.metadata=xo.metadata??"",Po.messages=((Yn=xo.messages)==null?void 0:Yn.map(ba=>tt.Any.fromPartial(ba)))||[],Po.exec=xo.exec??0,Po.title=xo.title??"",Po.summary=xo.summary??"",Po}};function Mt(){return{proposalId:nt.Long.UZERO}}_e.MsgSubmitProposalResponse={encode(xo,Po=st.Writer.create()){return xo.proposalId.isZero()||Po.uint32(8).uint64(xo.proposalId),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=Mt();for(;Wo.pos>>3){case 1:ba.proposalId=Wo.uint64();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{proposalId:(0,nt.isSet)(xo.proposalId)?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO}},toJSON(xo){const Po={};return xo.proposalId!==void 0&&(Po.proposalId=(xo.proposalId||nt.Long.UZERO).toString()),Po},fromPartial(xo){const Po=Mt();return Po.proposalId=xo.proposalId!==void 0&&xo.proposalId!==null?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO,Po}};function ho(){return{proposalId:nt.Long.UZERO,address:""}}_e.MsgWithdrawProposal={encode(xo,Po=st.Writer.create()){return xo.proposalId.isZero()||Po.uint32(8).uint64(xo.proposalId),xo.address!==""&&Po.uint32(18).string(xo.address),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=ho();for(;Wo.pos>>3){case 1:ba.proposalId=Wo.uint64();break;case 2:ba.address=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{proposalId:(0,nt.isSet)(xo.proposalId)?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO,address:(0,nt.isSet)(xo.address)?String(xo.address):""}},toJSON(xo){const Po={};return xo.proposalId!==void 0&&(Po.proposalId=(xo.proposalId||nt.Long.UZERO).toString()),xo.address!==void 0&&(Po.address=xo.address),Po},fromPartial(xo){const Po=ho();return Po.proposalId=xo.proposalId!==void 0&&xo.proposalId!==null?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO,Po.address=xo.address??"",Po}};function io(){return{}}_e.MsgWithdrawProposalResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=io();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return io()}};function co(){return{proposalId:nt.Long.UZERO,voter:"",option:0,metadata:"",exec:0}}_e.MsgVote={encode(xo,Po=st.Writer.create()){return xo.proposalId.isZero()||Po.uint32(8).uint64(xo.proposalId),xo.voter!==""&&Po.uint32(18).string(xo.voter),xo.option!==0&&Po.uint32(24).int32(xo.option),xo.metadata!==""&&Po.uint32(34).string(xo.metadata),xo.exec!==0&&Po.uint32(40).int32(xo.exec),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=co();for(;Wo.pos>>3){case 1:ba.proposalId=Wo.uint64();break;case 2:ba.voter=Wo.string();break;case 3:ba.option=Wo.int32();break;case 4:ba.metadata=Wo.string();break;case 5:ba.exec=Wo.int32();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{proposalId:(0,nt.isSet)(xo.proposalId)?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO,voter:(0,nt.isSet)(xo.voter)?String(xo.voter):"",option:(0,nt.isSet)(xo.option)?(0,Vr.voteOptionFromJSON)(xo.option):0,metadata:(0,nt.isSet)(xo.metadata)?String(xo.metadata):"",exec:(0,nt.isSet)(xo.exec)?kt(xo.exec):0}},toJSON(xo){const Po={};return xo.proposalId!==void 0&&(Po.proposalId=(xo.proposalId||nt.Long.UZERO).toString()),xo.voter!==void 0&&(Po.voter=xo.voter),xo.option!==void 0&&(Po.option=(0,Vr.voteOptionToJSON)(xo.option)),xo.metadata!==void 0&&(Po.metadata=xo.metadata),xo.exec!==void 0&&(Po.exec=qt(xo.exec)),Po},fromPartial(xo){const Po=co();return Po.proposalId=xo.proposalId!==void 0&&xo.proposalId!==null?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO,Po.voter=xo.voter??"",Po.option=xo.option??0,Po.metadata=xo.metadata??"",Po.exec=xo.exec??0,Po}};function mo(){return{}}_e.MsgVoteResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=mo();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return mo()}};function Bo(){return{proposalId:nt.Long.UZERO,executor:""}}_e.MsgExec={encode(xo,Po=st.Writer.create()){return xo.proposalId.isZero()||Po.uint32(8).uint64(xo.proposalId),xo.executor!==""&&Po.uint32(18).string(xo.executor),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=Bo();for(;Wo.pos>>3){case 1:ba.proposalId=Wo.uint64();break;case 2:ba.executor=Wo.string();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{proposalId:(0,nt.isSet)(xo.proposalId)?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO,executor:(0,nt.isSet)(xo.executor)?String(xo.executor):""}},toJSON(xo){const Po={};return xo.proposalId!==void 0&&(Po.proposalId=(xo.proposalId||nt.Long.UZERO).toString()),xo.executor!==void 0&&(Po.executor=xo.executor),Po},fromPartial(xo){const Po=Bo();return Po.proposalId=xo.proposalId!==void 0&&xo.proposalId!==null?nt.Long.fromValue(xo.proposalId):nt.Long.UZERO,Po.executor=xo.executor??"",Po}};function So(){return{result:0}}_e.MsgExecResponse={encode(xo,Po=st.Writer.create()){return xo.result!==0&&Po.uint32(16).int32(xo.result),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=So();for(;Wo.pos>>3){case 2:ba.result=Wo.int32();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{result:(0,nt.isSet)(xo.result)?(0,Vr.proposalExecutorResultFromJSON)(xo.result):0}},toJSON(xo){const Po={};return xo.result!==void 0&&(Po.result=(0,Vr.proposalExecutorResultToJSON)(xo.result)),Po},fromPartial(xo){const Po=So();return Po.result=xo.result??0,Po}};function Tt(){return{address:"",groupId:nt.Long.UZERO}}_e.MsgLeaveGroup={encode(xo,Po=st.Writer.create()){return xo.address!==""&&Po.uint32(10).string(xo.address),xo.groupId.isZero()||Po.uint32(16).uint64(xo.groupId),Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=Tt();for(;Wo.pos>>3){case 1:ba.address=Wo.string();break;case 2:ba.groupId=Wo.uint64();break;default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{address:(0,nt.isSet)(xo.address)?String(xo.address):"",groupId:(0,nt.isSet)(xo.groupId)?nt.Long.fromValue(xo.groupId):nt.Long.UZERO}},toJSON(xo){const Po={};return xo.address!==void 0&&(Po.address=xo.address),xo.groupId!==void 0&&(Po.groupId=(xo.groupId||nt.Long.UZERO).toString()),Po},fromPartial(xo){const Po=Tt();return Po.address=xo.address??"",Po.groupId=xo.groupId!==void 0&&xo.groupId!==null?nt.Long.fromValue(xo.groupId):nt.Long.UZERO,Po}};function vo(){return{}}_e.MsgLeaveGroupResponse={encode(xo,Po=st.Writer.create()){return Po},decode(xo,Po){const Wo=xo instanceof st.Reader?xo:new st.Reader(xo);let Yn=Po===void 0?Wo.len:Wo.pos+Po;const ba=vo();for(;Wo.pos>>3){default:Wo.skipType(_a&7);break}}return ba},fromJSON(xo){return{}},toJSON(xo){return{}},fromPartial(xo){return vo()}};class Co{constructor(Po){this.rpc=Po,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(Po){const Wo=_e.MsgCreateGroup.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroup",Wo).then(Yn=>_e.MsgCreateGroupResponse.decode(new st.Reader(Yn)))}UpdateGroupMembers(Po){const Wo=_e.MsgUpdateGroupMembers.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMembers",Wo).then(Yn=>_e.MsgUpdateGroupMembersResponse.decode(new st.Reader(Yn)))}UpdateGroupAdmin(Po){const Wo=_e.MsgUpdateGroupAdmin.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupAdmin",Wo).then(Yn=>_e.MsgUpdateGroupAdminResponse.decode(new st.Reader(Yn)))}UpdateGroupMetadata(Po){const Wo=_e.MsgUpdateGroupMetadata.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupMetadata",Wo).then(Yn=>_e.MsgUpdateGroupMetadataResponse.decode(new st.Reader(Yn)))}CreateGroupPolicy(Po){const Wo=_e.MsgCreateGroupPolicy.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupPolicy",Wo).then(Yn=>_e.MsgCreateGroupPolicyResponse.decode(new st.Reader(Yn)))}CreateGroupWithPolicy(Po){const Wo=_e.MsgCreateGroupWithPolicy.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","CreateGroupWithPolicy",Wo).then(Yn=>_e.MsgCreateGroupWithPolicyResponse.decode(new st.Reader(Yn)))}UpdateGroupPolicyAdmin(Po){const Wo=_e.MsgUpdateGroupPolicyAdmin.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyAdmin",Wo).then(Yn=>_e.MsgUpdateGroupPolicyAdminResponse.decode(new st.Reader(Yn)))}UpdateGroupPolicyDecisionPolicy(Po){const Wo=_e.MsgUpdateGroupPolicyDecisionPolicy.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyDecisionPolicy",Wo).then(Yn=>_e.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new st.Reader(Yn)))}UpdateGroupPolicyMetadata(Po){const Wo=_e.MsgUpdateGroupPolicyMetadata.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","UpdateGroupPolicyMetadata",Wo).then(Yn=>_e.MsgUpdateGroupPolicyMetadataResponse.decode(new st.Reader(Yn)))}SubmitProposal(Po){const Wo=_e.MsgSubmitProposal.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","SubmitProposal",Wo).then(Yn=>_e.MsgSubmitProposalResponse.decode(new st.Reader(Yn)))}WithdrawProposal(Po){const Wo=_e.MsgWithdrawProposal.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","WithdrawProposal",Wo).then(Yn=>_e.MsgWithdrawProposalResponse.decode(new st.Reader(Yn)))}Vote(Po){const Wo=_e.MsgVote.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","Vote",Wo).then(Yn=>_e.MsgVoteResponse.decode(new st.Reader(Yn)))}Exec(Po){const Wo=_e.MsgExec.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","Exec",Wo).then(Yn=>_e.MsgExecResponse.decode(new st.Reader(Yn)))}LeaveGroup(Po){const Wo=_e.MsgLeaveGroup.encode(Po).finish();return this.rpc.request("cosmos.group.v1.Msg","LeaveGroup",Wo).then(Yn=>_e.MsgLeaveGroupResponse.decode(new st.Reader(Yn)))}}_e.MsgClientImpl=Co}(tx$7),Object.defineProperty(messages$5,"__esModule",{value:!0}),messages$5.groupTypes=void 0;const tx_1$8=tx$7;messages$5.groupTypes=[["/cosmos.group.v1.MsgCreateGroup",tx_1$8.MsgCreateGroup],["/cosmos.group.v1.MsgCreateGroupPolicy",tx_1$8.MsgCreateGroupPolicy],["/cosmos.group.v1.MsgCreateGroupWithPolicy",tx_1$8.MsgCreateGroupWithPolicy],["/cosmos.group.v1.MsgExec",tx_1$8.MsgExec],["/cosmos.group.v1.MsgLeaveGroup",tx_1$8.MsgLeaveGroup],["/cosmos.group.v1.MsgSubmitProposal",tx_1$8.MsgSubmitProposal],["/cosmos.group.v1.MsgUpdateGroupAdmin",tx_1$8.MsgUpdateGroupAdmin],["/cosmos.group.v1.MsgUpdateGroupMembers",tx_1$8.MsgUpdateGroupMembers],["/cosmos.group.v1.MsgUpdateGroupMetadata",tx_1$8.MsgUpdateGroupMetadata],["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",tx_1$8.MsgUpdateGroupPolicyAdmin],["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",tx_1$8.MsgUpdateGroupPolicyDecisionPolicy],["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",tx_1$8.MsgUpdateGroupPolicyMetadata],["/cosmos.group.v1.MsgVote",tx_1$8.MsgVote],["/cosmos.group.v1.MsgWithdrawProposal",tx_1$8.MsgWithdrawProposal]];var aminomessages$4={},tx$6={},client={},upgrade={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,po,no,Nt){Nt===void 0&&(Nt=no);var eo=Object.getOwnPropertyDescriptor(po,no);(!eo||("get"in eo?!po.__esModule:eo.writable||eo.configurable))&&(eo={enumerable:!0,get:function(){return po[no]}}),Object.defineProperty(ht,Nt,eo)}:function(ht,po,no,Nt){Nt===void 0&&(Nt=no),ht[Nt]=po[no]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,po){Object.defineProperty(ht,"default",{enumerable:!0,value:po})}:function(ht,po){ht.default=po}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var po={};if(ht!=null)for(var no in ht)no!=="default"&&Object.prototype.hasOwnProperty.call(ht,no)&&cr(po,ht,no);return gr(po,ht),po};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ModuleVersion=_e.CancelSoftwareUpgradeProposal=_e.SoftwareUpgradeProposal=_e.Plan=_e.protobufPackage=void 0;const Vr=timestamp,tt=any,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.upgrade.v1beta1";function dt(){return{name:"",time:void 0,height:nt.Long.ZERO,info:"",upgradedClientState:void 0}}_e.Plan={encode(ht,po=st.Writer.create()){return ht.name!==""&&po.uint32(10).string(ht.name),ht.time!==void 0&&Vr.Timestamp.encode(ht.time,po.uint32(18).fork()).ldelim(),ht.height.isZero()||po.uint32(24).int64(ht.height),ht.info!==""&&po.uint32(34).string(ht.info),ht.upgradedClientState!==void 0&&tt.Any.encode(ht.upgradedClientState,po.uint32(42).fork()).ldelim(),po},decode(ht,po){const no=ht instanceof st.Reader?ht:new st.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=dt();for(;no.pos>>3){case 1:eo.name=no.string();break;case 2:eo.time=Vr.Timestamp.decode(no,no.uint32());break;case 3:eo.height=no.int64();break;case 4:eo.info=no.string();break;case 5:eo.upgradedClientState=tt.Any.decode(no,no.uint32());break;default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{name:(0,nt.isSet)(ht.name)?String(ht.name):"",time:(0,nt.isSet)(ht.time)?(0,nt.fromJsonTimestamp)(ht.time):void 0,height:(0,nt.isSet)(ht.height)?nt.Long.fromValue(ht.height):nt.Long.ZERO,info:(0,nt.isSet)(ht.info)?String(ht.info):"",upgradedClientState:(0,nt.isSet)(ht.upgradedClientState)?tt.Any.fromJSON(ht.upgradedClientState):void 0}},toJSON(ht){const po={};return ht.name!==void 0&&(po.name=ht.name),ht.time!==void 0&&(po.time=(0,nt.fromTimestamp)(ht.time).toISOString()),ht.height!==void 0&&(po.height=(ht.height||nt.Long.ZERO).toString()),ht.info!==void 0&&(po.info=ht.info),ht.upgradedClientState!==void 0&&(po.upgradedClientState=ht.upgradedClientState?tt.Any.toJSON(ht.upgradedClientState):void 0),po},fromPartial(ht){const po=dt();return po.name=ht.name??"",po.time=ht.time!==void 0&&ht.time!==null?Vr.Timestamp.fromPartial(ht.time):void 0,po.height=ht.height!==void 0&&ht.height!==null?nt.Long.fromValue(ht.height):nt.Long.ZERO,po.info=ht.info??"",po.upgradedClientState=ht.upgradedClientState!==void 0&&ht.upgradedClientState!==null?tt.Any.fromPartial(ht.upgradedClientState):void 0,po}};function kt(){return{title:"",description:"",plan:void 0}}_e.SoftwareUpgradeProposal={encode(ht,po=st.Writer.create()){return ht.title!==""&&po.uint32(10).string(ht.title),ht.description!==""&&po.uint32(18).string(ht.description),ht.plan!==void 0&&_e.Plan.encode(ht.plan,po.uint32(26).fork()).ldelim(),po},decode(ht,po){const no=ht instanceof st.Reader?ht:new st.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=kt();for(;no.pos>>3){case 1:eo.title=no.string();break;case 2:eo.description=no.string();break;case 3:eo.plan=_e.Plan.decode(no,no.uint32());break;default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{title:(0,nt.isSet)(ht.title)?String(ht.title):"",description:(0,nt.isSet)(ht.description)?String(ht.description):"",plan:(0,nt.isSet)(ht.plan)?_e.Plan.fromJSON(ht.plan):void 0}},toJSON(ht){const po={};return ht.title!==void 0&&(po.title=ht.title),ht.description!==void 0&&(po.description=ht.description),ht.plan!==void 0&&(po.plan=ht.plan?_e.Plan.toJSON(ht.plan):void 0),po},fromPartial(ht){const po=kt();return po.title=ht.title??"",po.description=ht.description??"",po.plan=ht.plan!==void 0&&ht.plan!==null?_e.Plan.fromPartial(ht.plan):void 0,po}};function qt(){return{title:"",description:""}}_e.CancelSoftwareUpgradeProposal={encode(ht,po=st.Writer.create()){return ht.title!==""&&po.uint32(10).string(ht.title),ht.description!==""&&po.uint32(18).string(ht.description),po},decode(ht,po){const no=ht instanceof st.Reader?ht:new st.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=qt();for(;no.pos>>3){case 1:eo.title=no.string();break;case 2:eo.description=no.string();break;default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{title:(0,nt.isSet)(ht.title)?String(ht.title):"",description:(0,nt.isSet)(ht.description)?String(ht.description):""}},toJSON(ht){const po={};return ht.title!==void 0&&(po.title=ht.title),ht.description!==void 0&&(po.description=ht.description),po},fromPartial(ht){const po=qt();return po.title=ht.title??"",po.description=ht.description??"",po}};function ro(){return{name:"",version:nt.Long.UZERO}}_e.ModuleVersion={encode(ht,po=st.Writer.create()){return ht.name!==""&&po.uint32(10).string(ht.name),ht.version.isZero()||po.uint32(16).uint64(ht.version),po},decode(ht,po){const no=ht instanceof st.Reader?ht:new st.Reader(ht);let Nt=po===void 0?no.len:no.pos+po;const eo=ro();for(;no.pos>>3){case 1:eo.name=no.string();break;case 2:eo.version=no.uint64();break;default:no.skipType(Wt&7);break}}return eo},fromJSON(ht){return{name:(0,nt.isSet)(ht.name)?String(ht.name):"",version:(0,nt.isSet)(ht.version)?nt.Long.fromValue(ht.version):nt.Long.UZERO}},toJSON(ht){const po={};return ht.name!==void 0&&(po.name=ht.name),ht.version!==void 0&&(po.version=(ht.version||nt.Long.UZERO).toString()),po},fromPartial(ht){const po=ro();return po.name=ht.name??"",po.version=ht.version!==void 0&&ht.version!==null?nt.Long.fromValue(ht.version):nt.Long.UZERO,po}}})(upgrade),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,eo,Wt,St){St===void 0&&(St=Wt);var Ot=Object.getOwnPropertyDescriptor(eo,Wt);(!Ot||("get"in Ot?!eo.__esModule:Ot.writable||Ot.configurable))&&(Ot={enumerable:!0,get:function(){return eo[Wt]}}),Object.defineProperty(Nt,St,Ot)}:function(Nt,eo,Wt,St){St===void 0&&(St=Wt),Nt[St]=eo[Wt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,eo){Object.defineProperty(Nt,"default",{enumerable:!0,value:eo})}:function(Nt,eo){Nt.default=eo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var eo={};if(Nt!=null)for(var Wt in Nt)Wt!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Wt)&&cr(eo,Nt,Wt);return gr(eo,Nt),eo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Params=_e.Height=_e.UpgradeProposal=_e.ClientUpdateProposal=_e.ClientConsensusStates=_e.ConsensusStateWithHeight=_e.IdentifiedClientState=_e.protobufPackage=void 0;const Vr=any,tt=upgrade,nt=helpers,st=Cr(minimal);_e.protobufPackage="ibc.core.client.v1";function dt(){return{clientId:"",clientState:void 0}}_e.IdentifiedClientState={encode(Nt,eo=st.Writer.create()){return Nt.clientId!==""&&eo.uint32(10).string(Nt.clientId),Nt.clientState!==void 0&&Vr.Any.encode(Nt.clientState,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=dt();for(;Wt.pos>>3){case 1:Ot.clientId=Wt.string();break;case 2:Ot.clientState=Vr.Any.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{clientId:(0,nt.isSet)(Nt.clientId)?String(Nt.clientId):"",clientState:(0,nt.isSet)(Nt.clientState)?Vr.Any.fromJSON(Nt.clientState):void 0}},toJSON(Nt){const eo={};return Nt.clientId!==void 0&&(eo.clientId=Nt.clientId),Nt.clientState!==void 0&&(eo.clientState=Nt.clientState?Vr.Any.toJSON(Nt.clientState):void 0),eo},fromPartial(Nt){const eo=dt();return eo.clientId=Nt.clientId??"",eo.clientState=Nt.clientState!==void 0&&Nt.clientState!==null?Vr.Any.fromPartial(Nt.clientState):void 0,eo}};function kt(){return{height:void 0,consensusState:void 0}}_e.ConsensusStateWithHeight={encode(Nt,eo=st.Writer.create()){return Nt.height!==void 0&&_e.Height.encode(Nt.height,eo.uint32(10).fork()).ldelim(),Nt.consensusState!==void 0&&Vr.Any.encode(Nt.consensusState,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=kt();for(;Wt.pos>>3){case 1:Ot.height=_e.Height.decode(Wt,Wt.uint32());break;case 2:Ot.consensusState=Vr.Any.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{height:(0,nt.isSet)(Nt.height)?_e.Height.fromJSON(Nt.height):void 0,consensusState:(0,nt.isSet)(Nt.consensusState)?Vr.Any.fromJSON(Nt.consensusState):void 0}},toJSON(Nt){const eo={};return Nt.height!==void 0&&(eo.height=Nt.height?_e.Height.toJSON(Nt.height):void 0),Nt.consensusState!==void 0&&(eo.consensusState=Nt.consensusState?Vr.Any.toJSON(Nt.consensusState):void 0),eo},fromPartial(Nt){const eo=kt();return eo.height=Nt.height!==void 0&&Nt.height!==null?_e.Height.fromPartial(Nt.height):void 0,eo.consensusState=Nt.consensusState!==void 0&&Nt.consensusState!==null?Vr.Any.fromPartial(Nt.consensusState):void 0,eo}};function qt(){return{clientId:"",consensusStates:[]}}_e.ClientConsensusStates={encode(Nt,eo=st.Writer.create()){Nt.clientId!==""&&eo.uint32(10).string(Nt.clientId);for(const Wt of Nt.consensusStates)_e.ConsensusStateWithHeight.encode(Wt,eo.uint32(18).fork()).ldelim();return eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=qt();for(;Wt.pos>>3){case 1:Ot.clientId=Wt.string();break;case 2:Ot.consensusStates.push(_e.ConsensusStateWithHeight.decode(Wt,Wt.uint32()));break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{clientId:(0,nt.isSet)(Nt.clientId)?String(Nt.clientId):"",consensusStates:Array.isArray(Nt==null?void 0:Nt.consensusStates)?Nt.consensusStates.map(eo=>_e.ConsensusStateWithHeight.fromJSON(eo)):[]}},toJSON(Nt){const eo={};return Nt.clientId!==void 0&&(eo.clientId=Nt.clientId),Nt.consensusStates?eo.consensusStates=Nt.consensusStates.map(Wt=>Wt?_e.ConsensusStateWithHeight.toJSON(Wt):void 0):eo.consensusStates=[],eo},fromPartial(Nt){var Wt;const eo=qt();return eo.clientId=Nt.clientId??"",eo.consensusStates=((Wt=Nt.consensusStates)==null?void 0:Wt.map(St=>_e.ConsensusStateWithHeight.fromPartial(St)))||[],eo}};function ro(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}_e.ClientUpdateProposal={encode(Nt,eo=st.Writer.create()){return Nt.title!==""&&eo.uint32(10).string(Nt.title),Nt.description!==""&&eo.uint32(18).string(Nt.description),Nt.subjectClientId!==""&&eo.uint32(26).string(Nt.subjectClientId),Nt.substituteClientId!==""&&eo.uint32(34).string(Nt.substituteClientId),eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ro();for(;Wt.pos>>3){case 1:Ot.title=Wt.string();break;case 2:Ot.description=Wt.string();break;case 3:Ot.subjectClientId=Wt.string();break;case 4:Ot.substituteClientId=Wt.string();break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{title:(0,nt.isSet)(Nt.title)?String(Nt.title):"",description:(0,nt.isSet)(Nt.description)?String(Nt.description):"",subjectClientId:(0,nt.isSet)(Nt.subjectClientId)?String(Nt.subjectClientId):"",substituteClientId:(0,nt.isSet)(Nt.substituteClientId)?String(Nt.substituteClientId):""}},toJSON(Nt){const eo={};return Nt.title!==void 0&&(eo.title=Nt.title),Nt.description!==void 0&&(eo.description=Nt.description),Nt.subjectClientId!==void 0&&(eo.subjectClientId=Nt.subjectClientId),Nt.substituteClientId!==void 0&&(eo.substituteClientId=Nt.substituteClientId),eo},fromPartial(Nt){const eo=ro();return eo.title=Nt.title??"",eo.description=Nt.description??"",eo.subjectClientId=Nt.subjectClientId??"",eo.substituteClientId=Nt.substituteClientId??"",eo}};function ht(){return{title:"",description:"",plan:void 0,upgradedClientState:void 0}}_e.UpgradeProposal={encode(Nt,eo=st.Writer.create()){return Nt.title!==""&&eo.uint32(10).string(Nt.title),Nt.description!==""&&eo.uint32(18).string(Nt.description),Nt.plan!==void 0&&tt.Plan.encode(Nt.plan,eo.uint32(26).fork()).ldelim(),Nt.upgradedClientState!==void 0&&Vr.Any.encode(Nt.upgradedClientState,eo.uint32(34).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ht();for(;Wt.pos>>3){case 1:Ot.title=Wt.string();break;case 2:Ot.description=Wt.string();break;case 3:Ot.plan=tt.Plan.decode(Wt,Wt.uint32());break;case 4:Ot.upgradedClientState=Vr.Any.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{title:(0,nt.isSet)(Nt.title)?String(Nt.title):"",description:(0,nt.isSet)(Nt.description)?String(Nt.description):"",plan:(0,nt.isSet)(Nt.plan)?tt.Plan.fromJSON(Nt.plan):void 0,upgradedClientState:(0,nt.isSet)(Nt.upgradedClientState)?Vr.Any.fromJSON(Nt.upgradedClientState):void 0}},toJSON(Nt){const eo={};return Nt.title!==void 0&&(eo.title=Nt.title),Nt.description!==void 0&&(eo.description=Nt.description),Nt.plan!==void 0&&(eo.plan=Nt.plan?tt.Plan.toJSON(Nt.plan):void 0),Nt.upgradedClientState!==void 0&&(eo.upgradedClientState=Nt.upgradedClientState?Vr.Any.toJSON(Nt.upgradedClientState):void 0),eo},fromPartial(Nt){const eo=ht();return eo.title=Nt.title??"",eo.description=Nt.description??"",eo.plan=Nt.plan!==void 0&&Nt.plan!==null?tt.Plan.fromPartial(Nt.plan):void 0,eo.upgradedClientState=Nt.upgradedClientState!==void 0&&Nt.upgradedClientState!==null?Vr.Any.fromPartial(Nt.upgradedClientState):void 0,eo}};function po(){return{revisionNumber:nt.Long.UZERO,revisionHeight:nt.Long.UZERO}}_e.Height={encode(Nt,eo=st.Writer.create()){return Nt.revisionNumber.isZero()||eo.uint32(8).uint64(Nt.revisionNumber),Nt.revisionHeight.isZero()||eo.uint32(16).uint64(Nt.revisionHeight),eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=po();for(;Wt.pos>>3){case 1:Ot.revisionNumber=Wt.uint64();break;case 2:Ot.revisionHeight=Wt.uint64();break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{revisionNumber:(0,nt.isSet)(Nt.revisionNumber)?nt.Long.fromValue(Nt.revisionNumber):nt.Long.UZERO,revisionHeight:(0,nt.isSet)(Nt.revisionHeight)?nt.Long.fromValue(Nt.revisionHeight):nt.Long.UZERO}},toJSON(Nt){const eo={};return Nt.revisionNumber!==void 0&&(eo.revisionNumber=(Nt.revisionNumber||nt.Long.UZERO).toString()),Nt.revisionHeight!==void 0&&(eo.revisionHeight=(Nt.revisionHeight||nt.Long.UZERO).toString()),eo},fromPartial(Nt){const eo=po();return eo.revisionNumber=Nt.revisionNumber!==void 0&&Nt.revisionNumber!==null?nt.Long.fromValue(Nt.revisionNumber):nt.Long.UZERO,eo.revisionHeight=Nt.revisionHeight!==void 0&&Nt.revisionHeight!==null?nt.Long.fromValue(Nt.revisionHeight):nt.Long.UZERO,eo}};function no(){return{allowedClients:[]}}_e.Params={encode(Nt,eo=st.Writer.create()){for(const Wt of Nt.allowedClients)eo.uint32(10).string(Wt);return eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=no();for(;Wt.pos>>3){case 1:Ot.allowedClients.push(Wt.string());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{allowedClients:Array.isArray(Nt==null?void 0:Nt.allowedClients)?Nt.allowedClients.map(eo=>String(eo)):[]}},toJSON(Nt){const eo={};return Nt.allowedClients?eo.allowedClients=Nt.allowedClients.map(Wt=>Wt):eo.allowedClients=[],eo},fromPartial(Nt){var Wt;const eo=no();return eo.allowedClients=((Wt=Nt.allowedClients)==null?void 0:Wt.map(St=>St))||[],eo}}}(client),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ro,ht,po,no){no===void 0&&(no=po);var Nt=Object.getOwnPropertyDescriptor(ht,po);(!Nt||("get"in Nt?!ht.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return ht[po]}}),Object.defineProperty(ro,no,Nt)}:function(ro,ht,po,no){no===void 0&&(no=po),ro[no]=ht[po]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ro,ht){Object.defineProperty(ro,"default",{enumerable:!0,value:ht})}:function(ro,ht){ro.default=ht}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(ro){if(ro&&ro.__esModule)return ro;var ht={};if(ro!=null)for(var po in ro)po!=="default"&&Object.prototype.hasOwnProperty.call(ro,po)&&cr(ht,ro,po);return gr(ht,ro),ht};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgTransferResponse=_e.MsgTransfer=_e.protobufPackage=void 0;const Vr=coin$1,tt=client,nt=helpers,st=Cr(minimal);_e.protobufPackage="ibc.applications.transfer.v1";function dt(){return{sourcePort:"",sourceChannel:"",token:void 0,sender:"",receiver:"",timeoutHeight:void 0,timeoutTimestamp:nt.Long.UZERO,memo:""}}_e.MsgTransfer={encode(ro,ht=st.Writer.create()){return ro.sourcePort!==""&&ht.uint32(10).string(ro.sourcePort),ro.sourceChannel!==""&&ht.uint32(18).string(ro.sourceChannel),ro.token!==void 0&&Vr.Coin.encode(ro.token,ht.uint32(26).fork()).ldelim(),ro.sender!==""&&ht.uint32(34).string(ro.sender),ro.receiver!==""&&ht.uint32(42).string(ro.receiver),ro.timeoutHeight!==void 0&&tt.Height.encode(ro.timeoutHeight,ht.uint32(50).fork()).ldelim(),ro.timeoutTimestamp.isZero()||ht.uint32(56).uint64(ro.timeoutTimestamp),ro.memo!==""&&ht.uint32(66).string(ro.memo),ht},decode(ro,ht){const po=ro instanceof st.Reader?ro:new st.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=dt();for(;po.pos>>3){case 1:Nt.sourcePort=po.string();break;case 2:Nt.sourceChannel=po.string();break;case 3:Nt.token=Vr.Coin.decode(po,po.uint32());break;case 4:Nt.sender=po.string();break;case 5:Nt.receiver=po.string();break;case 6:Nt.timeoutHeight=tt.Height.decode(po,po.uint32());break;case 7:Nt.timeoutTimestamp=po.uint64();break;case 8:Nt.memo=po.string();break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{sourcePort:(0,nt.isSet)(ro.sourcePort)?String(ro.sourcePort):"",sourceChannel:(0,nt.isSet)(ro.sourceChannel)?String(ro.sourceChannel):"",token:(0,nt.isSet)(ro.token)?Vr.Coin.fromJSON(ro.token):void 0,sender:(0,nt.isSet)(ro.sender)?String(ro.sender):"",receiver:(0,nt.isSet)(ro.receiver)?String(ro.receiver):"",timeoutHeight:(0,nt.isSet)(ro.timeoutHeight)?tt.Height.fromJSON(ro.timeoutHeight):void 0,timeoutTimestamp:(0,nt.isSet)(ro.timeoutTimestamp)?nt.Long.fromValue(ro.timeoutTimestamp):nt.Long.UZERO,memo:(0,nt.isSet)(ro.memo)?String(ro.memo):""}},toJSON(ro){const ht={};return ro.sourcePort!==void 0&&(ht.sourcePort=ro.sourcePort),ro.sourceChannel!==void 0&&(ht.sourceChannel=ro.sourceChannel),ro.token!==void 0&&(ht.token=ro.token?Vr.Coin.toJSON(ro.token):void 0),ro.sender!==void 0&&(ht.sender=ro.sender),ro.receiver!==void 0&&(ht.receiver=ro.receiver),ro.timeoutHeight!==void 0&&(ht.timeoutHeight=ro.timeoutHeight?tt.Height.toJSON(ro.timeoutHeight):void 0),ro.timeoutTimestamp!==void 0&&(ht.timeoutTimestamp=(ro.timeoutTimestamp||nt.Long.UZERO).toString()),ro.memo!==void 0&&(ht.memo=ro.memo),ht},fromPartial(ro){const ht=dt();return ht.sourcePort=ro.sourcePort??"",ht.sourceChannel=ro.sourceChannel??"",ht.token=ro.token!==void 0&&ro.token!==null?Vr.Coin.fromPartial(ro.token):void 0,ht.sender=ro.sender??"",ht.receiver=ro.receiver??"",ht.timeoutHeight=ro.timeoutHeight!==void 0&&ro.timeoutHeight!==null?tt.Height.fromPartial(ro.timeoutHeight):void 0,ht.timeoutTimestamp=ro.timeoutTimestamp!==void 0&&ro.timeoutTimestamp!==null?nt.Long.fromValue(ro.timeoutTimestamp):nt.Long.UZERO,ht.memo=ro.memo??"",ht}};function kt(){return{sequence:nt.Long.UZERO}}_e.MsgTransferResponse={encode(ro,ht=st.Writer.create()){return ro.sequence.isZero()||ht.uint32(8).uint64(ro.sequence),ht},decode(ro,ht){const po=ro instanceof st.Reader?ro:new st.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=kt();for(;po.pos>>3){case 1:Nt.sequence=po.uint64();break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{sequence:(0,nt.isSet)(ro.sequence)?nt.Long.fromValue(ro.sequence):nt.Long.UZERO}},toJSON(ro){const ht={};return ro.sequence!==void 0&&(ht.sequence=(ro.sequence||nt.Long.UZERO).toString()),ht},fromPartial(ro){const ht=kt();return ht.sequence=ro.sequence!==void 0&&ro.sequence!==null?nt.Long.fromValue(ro.sequence):nt.Long.UZERO,ht}};class qt{constructor(ht){this.rpc=ht,this.Transfer=this.Transfer.bind(this)}Transfer(ht){const po=_e.MsgTransfer.encode(ht).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",po).then(no=>_e.MsgTransferResponse.decode(new st.Reader(no)))}}_e.MsgClientImpl=qt}(tx$6);var __importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(aminomessages$4,"__esModule",{value:!0}),aminomessages$4.createIbcAminoConverters=aminomessages$4.isAminoMsgTransfer=void 0;const tx_1$7=tx$6,long_1$8=__importDefault$c(long);function isAminoMsgTransfer(_e){return _e.type==="cosmos-sdk/MsgTransfer"}aminomessages$4.isAminoMsgTransfer=isAminoMsgTransfer;function omitDefault(_e){if(typeof _e=="string")return _e===""?void 0:_e;if(typeof _e=="number")return _e===0?void 0:_e;if(long_1$8.default.isLong(_e))return _e.isZero()?void 0:_e;throw new Error(`Got unsupported type '${typeof _e}'`)}function createIbcAminoConverters(){return{"/ibc.applications.transfer.v1.MsgTransfer":{aminoType:"cosmos-sdk/MsgTransfer",toAmino:({sourcePort:_e,sourceChannel:cr,token:gr,sender:Cr,receiver:Vr,timeoutHeight:tt,timeoutTimestamp:nt,memo:st})=>{var dt,kt,qt,ro;return{source_port:_e,source_channel:cr,token:gr,sender:Cr,receiver:Vr,timeout_height:tt?{revision_height:(dt=omitDefault(tt.revisionHeight))==null?void 0:dt.toString(),revision_number:(kt=omitDefault(tt.revisionNumber))==null?void 0:kt.toString()}:{},timeout_timestamp:(qt=omitDefault(nt))==null?void 0:qt.toString(),memo:(ro=omitDefault(st))==null?void 0:ro.toString()}},fromAmino:({source_port:_e,source_channel:cr,token:gr,sender:Cr,receiver:Vr,timeout_height:tt,timeout_timestamp:nt,memo:st})=>tx_1$7.MsgTransfer.fromPartial({sourcePort:_e,sourceChannel:cr,token:gr,sender:Cr,receiver:Vr,timeoutHeight:tt?{revisionHeight:long_1$8.default.fromString(tt.revision_height||"0",!0),revisionNumber:long_1$8.default.fromString(tt.revision_number||"0",!0)}:void 0,timeoutTimestamp:long_1$8.default.fromString(nt||"0",!0),memo:st??""})}}}aminomessages$4.createIbcAminoConverters=createIbcAminoConverters;var messages$4={},tx$5={},channel={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(uo,go,bo,oo){oo===void 0&&(oo=bo);var Ro=Object.getOwnPropertyDescriptor(go,bo);(!Ro||("get"in Ro?!go.__esModule:Ro.writable||Ro.configurable))&&(Ro={enumerable:!0,get:function(){return go[bo]}}),Object.defineProperty(uo,oo,Ro)}:function(uo,go,bo,oo){oo===void 0&&(oo=bo),uo[oo]=go[bo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(uo,go){Object.defineProperty(uo,"default",{enumerable:!0,value:go})}:function(uo,go){uo.default=go}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(uo){if(uo&&uo.__esModule)return uo;var go={};if(uo!=null)for(var bo in uo)bo!=="default"&&Object.prototype.hasOwnProperty.call(uo,bo)&&cr(go,uo,bo);return gr(go,uo),go};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Acknowledgement=_e.PacketId=_e.PacketState=_e.Packet=_e.Counterparty=_e.IdentifiedChannel=_e.Channel=_e.orderToJSON=_e.orderFromJSON=_e.Order=_e.stateToJSON=_e.stateFromJSON=_e.State=_e.protobufPackage=void 0;const Vr=client,tt=helpers,nt=Cr(minimal);_e.protobufPackage="ibc.core.channel.v1";var st;(function(uo){uo[uo.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",uo[uo.STATE_INIT=1]="STATE_INIT",uo[uo.STATE_TRYOPEN=2]="STATE_TRYOPEN",uo[uo.STATE_OPEN=3]="STATE_OPEN",uo[uo.STATE_CLOSED=4]="STATE_CLOSED",uo[uo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(st=_e.State||(_e.State={}));function dt(uo){switch(uo){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return st.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return st.STATE_INIT;case 2:case"STATE_TRYOPEN":return st.STATE_TRYOPEN;case 3:case"STATE_OPEN":return st.STATE_OPEN;case 4:case"STATE_CLOSED":return st.STATE_CLOSED;case-1:case"UNRECOGNIZED":default:return st.UNRECOGNIZED}}_e.stateFromJSON=dt;function kt(uo){switch(uo){case st.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case st.STATE_INIT:return"STATE_INIT";case st.STATE_TRYOPEN:return"STATE_TRYOPEN";case st.STATE_OPEN:return"STATE_OPEN";case st.STATE_CLOSED:return"STATE_CLOSED";case st.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.stateToJSON=kt;var qt;(function(uo){uo[uo.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",uo[uo.ORDER_UNORDERED=1]="ORDER_UNORDERED",uo[uo.ORDER_ORDERED=2]="ORDER_ORDERED",uo[uo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qt=_e.Order||(_e.Order={}));function ro(uo){switch(uo){case 0:case"ORDER_NONE_UNSPECIFIED":return qt.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return qt.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return qt.ORDER_ORDERED;case-1:case"UNRECOGNIZED":default:return qt.UNRECOGNIZED}}_e.orderFromJSON=ro;function ht(uo){switch(uo){case qt.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case qt.ORDER_UNORDERED:return"ORDER_UNORDERED";case qt.ORDER_ORDERED:return"ORDER_ORDERED";case qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.orderToJSON=ht;function po(){return{state:0,ordering:0,counterparty:void 0,connectionHops:[],version:""}}_e.Channel={encode(uo,go=nt.Writer.create()){uo.state!==0&&go.uint32(8).int32(uo.state),uo.ordering!==0&&go.uint32(16).int32(uo.ordering),uo.counterparty!==void 0&&_e.Counterparty.encode(uo.counterparty,go.uint32(26).fork()).ldelim();for(const bo of uo.connectionHops)go.uint32(34).string(bo);return uo.version!==""&&go.uint32(42).string(uo.version),go},decode(uo,go){const bo=uo instanceof nt.Reader?uo:new nt.Reader(uo);let oo=go===void 0?bo.len:bo.pos+go;const Ro=po();for(;bo.pos>>3){case 1:Ro.state=bo.int32();break;case 2:Ro.ordering=bo.int32();break;case 3:Ro.counterparty=_e.Counterparty.decode(bo,bo.uint32());break;case 4:Ro.connectionHops.push(bo.string());break;case 5:Ro.version=bo.string();break;default:bo.skipType(pt&7);break}}return Ro},fromJSON(uo){return{state:(0,tt.isSet)(uo.state)?dt(uo.state):0,ordering:(0,tt.isSet)(uo.ordering)?ro(uo.ordering):0,counterparty:(0,tt.isSet)(uo.counterparty)?_e.Counterparty.fromJSON(uo.counterparty):void 0,connectionHops:Array.isArray(uo==null?void 0:uo.connectionHops)?uo.connectionHops.map(go=>String(go)):[],version:(0,tt.isSet)(uo.version)?String(uo.version):""}},toJSON(uo){const go={};return uo.state!==void 0&&(go.state=kt(uo.state)),uo.ordering!==void 0&&(go.ordering=ht(uo.ordering)),uo.counterparty!==void 0&&(go.counterparty=uo.counterparty?_e.Counterparty.toJSON(uo.counterparty):void 0),uo.connectionHops?go.connectionHops=uo.connectionHops.map(bo=>bo):go.connectionHops=[],uo.version!==void 0&&(go.version=uo.version),go},fromPartial(uo){var bo;const go=po();return go.state=uo.state??0,go.ordering=uo.ordering??0,go.counterparty=uo.counterparty!==void 0&&uo.counterparty!==null?_e.Counterparty.fromPartial(uo.counterparty):void 0,go.connectionHops=((bo=uo.connectionHops)==null?void 0:bo.map(oo=>oo))||[],go.version=uo.version??"",go}};function no(){return{state:0,ordering:0,counterparty:void 0,connectionHops:[],version:"",portId:"",channelId:""}}_e.IdentifiedChannel={encode(uo,go=nt.Writer.create()){uo.state!==0&&go.uint32(8).int32(uo.state),uo.ordering!==0&&go.uint32(16).int32(uo.ordering),uo.counterparty!==void 0&&_e.Counterparty.encode(uo.counterparty,go.uint32(26).fork()).ldelim();for(const bo of uo.connectionHops)go.uint32(34).string(bo);return uo.version!==""&&go.uint32(42).string(uo.version),uo.portId!==""&&go.uint32(50).string(uo.portId),uo.channelId!==""&&go.uint32(58).string(uo.channelId),go},decode(uo,go){const bo=uo instanceof nt.Reader?uo:new nt.Reader(uo);let oo=go===void 0?bo.len:bo.pos+go;const Ro=no();for(;bo.pos>>3){case 1:Ro.state=bo.int32();break;case 2:Ro.ordering=bo.int32();break;case 3:Ro.counterparty=_e.Counterparty.decode(bo,bo.uint32());break;case 4:Ro.connectionHops.push(bo.string());break;case 5:Ro.version=bo.string();break;case 6:Ro.portId=bo.string();break;case 7:Ro.channelId=bo.string();break;default:bo.skipType(pt&7);break}}return Ro},fromJSON(uo){return{state:(0,tt.isSet)(uo.state)?dt(uo.state):0,ordering:(0,tt.isSet)(uo.ordering)?ro(uo.ordering):0,counterparty:(0,tt.isSet)(uo.counterparty)?_e.Counterparty.fromJSON(uo.counterparty):void 0,connectionHops:Array.isArray(uo==null?void 0:uo.connectionHops)?uo.connectionHops.map(go=>String(go)):[],version:(0,tt.isSet)(uo.version)?String(uo.version):"",portId:(0,tt.isSet)(uo.portId)?String(uo.portId):"",channelId:(0,tt.isSet)(uo.channelId)?String(uo.channelId):""}},toJSON(uo){const go={};return uo.state!==void 0&&(go.state=kt(uo.state)),uo.ordering!==void 0&&(go.ordering=ht(uo.ordering)),uo.counterparty!==void 0&&(go.counterparty=uo.counterparty?_e.Counterparty.toJSON(uo.counterparty):void 0),uo.connectionHops?go.connectionHops=uo.connectionHops.map(bo=>bo):go.connectionHops=[],uo.version!==void 0&&(go.version=uo.version),uo.portId!==void 0&&(go.portId=uo.portId),uo.channelId!==void 0&&(go.channelId=uo.channelId),go},fromPartial(uo){var bo;const go=no();return go.state=uo.state??0,go.ordering=uo.ordering??0,go.counterparty=uo.counterparty!==void 0&&uo.counterparty!==null?_e.Counterparty.fromPartial(uo.counterparty):void 0,go.connectionHops=((bo=uo.connectionHops)==null?void 0:bo.map(oo=>oo))||[],go.version=uo.version??"",go.portId=uo.portId??"",go.channelId=uo.channelId??"",go}};function Nt(){return{portId:"",channelId:""}}_e.Counterparty={encode(uo,go=nt.Writer.create()){return uo.portId!==""&&go.uint32(10).string(uo.portId),uo.channelId!==""&&go.uint32(18).string(uo.channelId),go},decode(uo,go){const bo=uo instanceof nt.Reader?uo:new nt.Reader(uo);let oo=go===void 0?bo.len:bo.pos+go;const Ro=Nt();for(;bo.pos>>3){case 1:Ro.portId=bo.string();break;case 2:Ro.channelId=bo.string();break;default:bo.skipType(pt&7);break}}return Ro},fromJSON(uo){return{portId:(0,tt.isSet)(uo.portId)?String(uo.portId):"",channelId:(0,tt.isSet)(uo.channelId)?String(uo.channelId):""}},toJSON(uo){const go={};return uo.portId!==void 0&&(go.portId=uo.portId),uo.channelId!==void 0&&(go.channelId=uo.channelId),go},fromPartial(uo){const go=Nt();return go.portId=uo.portId??"",go.channelId=uo.channelId??"",go}};function eo(){return{sequence:tt.Long.UZERO,sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",data:new Uint8Array,timeoutHeight:void 0,timeoutTimestamp:tt.Long.UZERO}}_e.Packet={encode(uo,go=nt.Writer.create()){return uo.sequence.isZero()||go.uint32(8).uint64(uo.sequence),uo.sourcePort!==""&&go.uint32(18).string(uo.sourcePort),uo.sourceChannel!==""&&go.uint32(26).string(uo.sourceChannel),uo.destinationPort!==""&&go.uint32(34).string(uo.destinationPort),uo.destinationChannel!==""&&go.uint32(42).string(uo.destinationChannel),uo.data.length!==0&&go.uint32(50).bytes(uo.data),uo.timeoutHeight!==void 0&&Vr.Height.encode(uo.timeoutHeight,go.uint32(58).fork()).ldelim(),uo.timeoutTimestamp.isZero()||go.uint32(64).uint64(uo.timeoutTimestamp),go},decode(uo,go){const bo=uo instanceof nt.Reader?uo:new nt.Reader(uo);let oo=go===void 0?bo.len:bo.pos+go;const Ro=eo();for(;bo.pos>>3){case 1:Ro.sequence=bo.uint64();break;case 2:Ro.sourcePort=bo.string();break;case 3:Ro.sourceChannel=bo.string();break;case 4:Ro.destinationPort=bo.string();break;case 5:Ro.destinationChannel=bo.string();break;case 6:Ro.data=bo.bytes();break;case 7:Ro.timeoutHeight=Vr.Height.decode(bo,bo.uint32());break;case 8:Ro.timeoutTimestamp=bo.uint64();break;default:bo.skipType(pt&7);break}}return Ro},fromJSON(uo){return{sequence:(0,tt.isSet)(uo.sequence)?tt.Long.fromValue(uo.sequence):tt.Long.UZERO,sourcePort:(0,tt.isSet)(uo.sourcePort)?String(uo.sourcePort):"",sourceChannel:(0,tt.isSet)(uo.sourceChannel)?String(uo.sourceChannel):"",destinationPort:(0,tt.isSet)(uo.destinationPort)?String(uo.destinationPort):"",destinationChannel:(0,tt.isSet)(uo.destinationChannel)?String(uo.destinationChannel):"",data:(0,tt.isSet)(uo.data)?(0,tt.bytesFromBase64)(uo.data):new Uint8Array,timeoutHeight:(0,tt.isSet)(uo.timeoutHeight)?Vr.Height.fromJSON(uo.timeoutHeight):void 0,timeoutTimestamp:(0,tt.isSet)(uo.timeoutTimestamp)?tt.Long.fromValue(uo.timeoutTimestamp):tt.Long.UZERO}},toJSON(uo){const go={};return uo.sequence!==void 0&&(go.sequence=(uo.sequence||tt.Long.UZERO).toString()),uo.sourcePort!==void 0&&(go.sourcePort=uo.sourcePort),uo.sourceChannel!==void 0&&(go.sourceChannel=uo.sourceChannel),uo.destinationPort!==void 0&&(go.destinationPort=uo.destinationPort),uo.destinationChannel!==void 0&&(go.destinationChannel=uo.destinationChannel),uo.data!==void 0&&(go.data=(0,tt.base64FromBytes)(uo.data!==void 0?uo.data:new Uint8Array)),uo.timeoutHeight!==void 0&&(go.timeoutHeight=uo.timeoutHeight?Vr.Height.toJSON(uo.timeoutHeight):void 0),uo.timeoutTimestamp!==void 0&&(go.timeoutTimestamp=(uo.timeoutTimestamp||tt.Long.UZERO).toString()),go},fromPartial(uo){const go=eo();return go.sequence=uo.sequence!==void 0&&uo.sequence!==null?tt.Long.fromValue(uo.sequence):tt.Long.UZERO,go.sourcePort=uo.sourcePort??"",go.sourceChannel=uo.sourceChannel??"",go.destinationPort=uo.destinationPort??"",go.destinationChannel=uo.destinationChannel??"",go.data=uo.data??new Uint8Array,go.timeoutHeight=uo.timeoutHeight!==void 0&&uo.timeoutHeight!==null?Vr.Height.fromPartial(uo.timeoutHeight):void 0,go.timeoutTimestamp=uo.timeoutTimestamp!==void 0&&uo.timeoutTimestamp!==null?tt.Long.fromValue(uo.timeoutTimestamp):tt.Long.UZERO,go}};function Wt(){return{portId:"",channelId:"",sequence:tt.Long.UZERO,data:new Uint8Array}}_e.PacketState={encode(uo,go=nt.Writer.create()){return uo.portId!==""&&go.uint32(10).string(uo.portId),uo.channelId!==""&&go.uint32(18).string(uo.channelId),uo.sequence.isZero()||go.uint32(24).uint64(uo.sequence),uo.data.length!==0&&go.uint32(34).bytes(uo.data),go},decode(uo,go){const bo=uo instanceof nt.Reader?uo:new nt.Reader(uo);let oo=go===void 0?bo.len:bo.pos+go;const Ro=Wt();for(;bo.pos>>3){case 1:Ro.portId=bo.string();break;case 2:Ro.channelId=bo.string();break;case 3:Ro.sequence=bo.uint64();break;case 4:Ro.data=bo.bytes();break;default:bo.skipType(pt&7);break}}return Ro},fromJSON(uo){return{portId:(0,tt.isSet)(uo.portId)?String(uo.portId):"",channelId:(0,tt.isSet)(uo.channelId)?String(uo.channelId):"",sequence:(0,tt.isSet)(uo.sequence)?tt.Long.fromValue(uo.sequence):tt.Long.UZERO,data:(0,tt.isSet)(uo.data)?(0,tt.bytesFromBase64)(uo.data):new Uint8Array}},toJSON(uo){const go={};return uo.portId!==void 0&&(go.portId=uo.portId),uo.channelId!==void 0&&(go.channelId=uo.channelId),uo.sequence!==void 0&&(go.sequence=(uo.sequence||tt.Long.UZERO).toString()),uo.data!==void 0&&(go.data=(0,tt.base64FromBytes)(uo.data!==void 0?uo.data:new Uint8Array)),go},fromPartial(uo){const go=Wt();return go.portId=uo.portId??"",go.channelId=uo.channelId??"",go.sequence=uo.sequence!==void 0&&uo.sequence!==null?tt.Long.fromValue(uo.sequence):tt.Long.UZERO,go.data=uo.data??new Uint8Array,go}};function St(){return{portId:"",channelId:"",sequence:tt.Long.UZERO}}_e.PacketId={encode(uo,go=nt.Writer.create()){return uo.portId!==""&&go.uint32(10).string(uo.portId),uo.channelId!==""&&go.uint32(18).string(uo.channelId),uo.sequence.isZero()||go.uint32(24).uint64(uo.sequence),go},decode(uo,go){const bo=uo instanceof nt.Reader?uo:new nt.Reader(uo);let oo=go===void 0?bo.len:bo.pos+go;const Ro=St();for(;bo.pos>>3){case 1:Ro.portId=bo.string();break;case 2:Ro.channelId=bo.string();break;case 3:Ro.sequence=bo.uint64();break;default:bo.skipType(pt&7);break}}return Ro},fromJSON(uo){return{portId:(0,tt.isSet)(uo.portId)?String(uo.portId):"",channelId:(0,tt.isSet)(uo.channelId)?String(uo.channelId):"",sequence:(0,tt.isSet)(uo.sequence)?tt.Long.fromValue(uo.sequence):tt.Long.UZERO}},toJSON(uo){const go={};return uo.portId!==void 0&&(go.portId=uo.portId),uo.channelId!==void 0&&(go.channelId=uo.channelId),uo.sequence!==void 0&&(go.sequence=(uo.sequence||tt.Long.UZERO).toString()),go},fromPartial(uo){const go=St();return go.portId=uo.portId??"",go.channelId=uo.channelId??"",go.sequence=uo.sequence!==void 0&&uo.sequence!==null?tt.Long.fromValue(uo.sequence):tt.Long.UZERO,go}};function Ot(){return{result:void 0,error:void 0}}_e.Acknowledgement={encode(uo,go=nt.Writer.create()){return uo.result!==void 0&&go.uint32(170).bytes(uo.result),uo.error!==void 0&&go.uint32(178).string(uo.error),go},decode(uo,go){const bo=uo instanceof nt.Reader?uo:new nt.Reader(uo);let oo=go===void 0?bo.len:bo.pos+go;const Ro=Ot();for(;bo.pos>>3){case 21:Ro.result=bo.bytes();break;case 22:Ro.error=bo.string();break;default:bo.skipType(pt&7);break}}return Ro},fromJSON(uo){return{result:(0,tt.isSet)(uo.result)?(0,tt.bytesFromBase64)(uo.result):void 0,error:(0,tt.isSet)(uo.error)?String(uo.error):void 0}},toJSON(uo){const go={};return uo.result!==void 0&&(go.result=uo.result!==void 0?(0,tt.base64FromBytes)(uo.result):void 0),uo.error!==void 0&&(go.error=uo.error),go},fromPartial(uo){const go=Ot();return go.result=uo.result??void 0,go.error=uo.error??void 0,go}}})(channel),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(io,co,mo,Bo){Bo===void 0&&(Bo=mo);var So=Object.getOwnPropertyDescriptor(co,mo);(!So||("get"in So?!co.__esModule:So.writable||So.configurable))&&(So={enumerable:!0,get:function(){return co[mo]}}),Object.defineProperty(io,Bo,So)}:function(io,co,mo,Bo){Bo===void 0&&(Bo=mo),io[Bo]=co[mo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(io,co){Object.defineProperty(io,"default",{enumerable:!0,value:co})}:function(io,co){io.default=co}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(io){if(io&&io.__esModule)return io;var co={};if(io!=null)for(var mo in io)mo!=="default"&&Object.prototype.hasOwnProperty.call(io,mo)&&cr(co,io,mo);return gr(co,io),co};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgAcknowledgementResponse=_e.MsgAcknowledgement=_e.MsgTimeoutOnCloseResponse=_e.MsgTimeoutOnClose=_e.MsgTimeoutResponse=_e.MsgTimeout=_e.MsgRecvPacketResponse=_e.MsgRecvPacket=_e.MsgChannelCloseConfirmResponse=_e.MsgChannelCloseConfirm=_e.MsgChannelCloseInitResponse=_e.MsgChannelCloseInit=_e.MsgChannelOpenConfirmResponse=_e.MsgChannelOpenConfirm=_e.MsgChannelOpenAckResponse=_e.MsgChannelOpenAck=_e.MsgChannelOpenTryResponse=_e.MsgChannelOpenTry=_e.MsgChannelOpenInitResponse=_e.MsgChannelOpenInit=_e.responseResultTypeToJSON=_e.responseResultTypeFromJSON=_e.ResponseResultType=_e.protobufPackage=void 0;const Vr=channel,tt=client,nt=helpers,st=Cr(minimal);_e.protobufPackage="ibc.core.channel.v1";var dt;(function(io){io[io.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",io[io.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",io[io.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",io[io.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dt=_e.ResponseResultType||(_e.ResponseResultType={}));function kt(io){switch(io){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return dt.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return dt.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return dt.RESPONSE_RESULT_TYPE_SUCCESS;case-1:case"UNRECOGNIZED":default:return dt.UNRECOGNIZED}}_e.responseResultTypeFromJSON=kt;function qt(io){switch(io){case dt.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case dt.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case dt.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";case dt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.responseResultTypeToJSON=qt;function ro(){return{portId:"",channel:void 0,signer:""}}_e.MsgChannelOpenInit={encode(io,co=st.Writer.create()){return io.portId!==""&&co.uint32(10).string(io.portId),io.channel!==void 0&&Vr.Channel.encode(io.channel,co.uint32(18).fork()).ldelim(),io.signer!==""&&co.uint32(26).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=ro();for(;mo.pos>>3){case 1:So.portId=mo.string();break;case 2:So.channel=Vr.Channel.decode(mo,mo.uint32());break;case 3:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{portId:(0,nt.isSet)(io.portId)?String(io.portId):"",channel:(0,nt.isSet)(io.channel)?Vr.Channel.fromJSON(io.channel):void 0,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.portId!==void 0&&(co.portId=io.portId),io.channel!==void 0&&(co.channel=io.channel?Vr.Channel.toJSON(io.channel):void 0),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=ro();return co.portId=io.portId??"",co.channel=io.channel!==void 0&&io.channel!==null?Vr.Channel.fromPartial(io.channel):void 0,co.signer=io.signer??"",co}};function ht(){return{channelId:"",version:""}}_e.MsgChannelOpenInitResponse={encode(io,co=st.Writer.create()){return io.channelId!==""&&co.uint32(10).string(io.channelId),io.version!==""&&co.uint32(18).string(io.version),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=ht();for(;mo.pos>>3){case 1:So.channelId=mo.string();break;case 2:So.version=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{channelId:(0,nt.isSet)(io.channelId)?String(io.channelId):"",version:(0,nt.isSet)(io.version)?String(io.version):""}},toJSON(io){const co={};return io.channelId!==void 0&&(co.channelId=io.channelId),io.version!==void 0&&(co.version=io.version),co},fromPartial(io){const co=ht();return co.channelId=io.channelId??"",co.version=io.version??"",co}};function po(){return{portId:"",previousChannelId:"",channel:void 0,counterpartyVersion:"",proofInit:new Uint8Array,proofHeight:void 0,signer:""}}_e.MsgChannelOpenTry={encode(io,co=st.Writer.create()){return io.portId!==""&&co.uint32(10).string(io.portId),io.previousChannelId!==""&&co.uint32(18).string(io.previousChannelId),io.channel!==void 0&&Vr.Channel.encode(io.channel,co.uint32(26).fork()).ldelim(),io.counterpartyVersion!==""&&co.uint32(34).string(io.counterpartyVersion),io.proofInit.length!==0&&co.uint32(42).bytes(io.proofInit),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(50).fork()).ldelim(),io.signer!==""&&co.uint32(58).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=po();for(;mo.pos>>3){case 1:So.portId=mo.string();break;case 2:So.previousChannelId=mo.string();break;case 3:So.channel=Vr.Channel.decode(mo,mo.uint32());break;case 4:So.counterpartyVersion=mo.string();break;case 5:So.proofInit=mo.bytes();break;case 6:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 7:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{portId:(0,nt.isSet)(io.portId)?String(io.portId):"",previousChannelId:(0,nt.isSet)(io.previousChannelId)?String(io.previousChannelId):"",channel:(0,nt.isSet)(io.channel)?Vr.Channel.fromJSON(io.channel):void 0,counterpartyVersion:(0,nt.isSet)(io.counterpartyVersion)?String(io.counterpartyVersion):"",proofInit:(0,nt.isSet)(io.proofInit)?(0,nt.bytesFromBase64)(io.proofInit):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.portId!==void 0&&(co.portId=io.portId),io.previousChannelId!==void 0&&(co.previousChannelId=io.previousChannelId),io.channel!==void 0&&(co.channel=io.channel?Vr.Channel.toJSON(io.channel):void 0),io.counterpartyVersion!==void 0&&(co.counterpartyVersion=io.counterpartyVersion),io.proofInit!==void 0&&(co.proofInit=(0,nt.base64FromBytes)(io.proofInit!==void 0?io.proofInit:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=po();return co.portId=io.portId??"",co.previousChannelId=io.previousChannelId??"",co.channel=io.channel!==void 0&&io.channel!==null?Vr.Channel.fromPartial(io.channel):void 0,co.counterpartyVersion=io.counterpartyVersion??"",co.proofInit=io.proofInit??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.signer=io.signer??"",co}};function no(){return{version:""}}_e.MsgChannelOpenTryResponse={encode(io,co=st.Writer.create()){return io.version!==""&&co.uint32(10).string(io.version),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=no();for(;mo.pos>>3){case 1:So.version=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{version:(0,nt.isSet)(io.version)?String(io.version):""}},toJSON(io){const co={};return io.version!==void 0&&(co.version=io.version),co},fromPartial(io){const co=no();return co.version=io.version??"",co}};function Nt(){return{portId:"",channelId:"",counterpartyChannelId:"",counterpartyVersion:"",proofTry:new Uint8Array,proofHeight:void 0,signer:""}}_e.MsgChannelOpenAck={encode(io,co=st.Writer.create()){return io.portId!==""&&co.uint32(10).string(io.portId),io.channelId!==""&&co.uint32(18).string(io.channelId),io.counterpartyChannelId!==""&&co.uint32(26).string(io.counterpartyChannelId),io.counterpartyVersion!==""&&co.uint32(34).string(io.counterpartyVersion),io.proofTry.length!==0&&co.uint32(42).bytes(io.proofTry),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(50).fork()).ldelim(),io.signer!==""&&co.uint32(58).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Nt();for(;mo.pos>>3){case 1:So.portId=mo.string();break;case 2:So.channelId=mo.string();break;case 3:So.counterpartyChannelId=mo.string();break;case 4:So.counterpartyVersion=mo.string();break;case 5:So.proofTry=mo.bytes();break;case 6:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 7:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{portId:(0,nt.isSet)(io.portId)?String(io.portId):"",channelId:(0,nt.isSet)(io.channelId)?String(io.channelId):"",counterpartyChannelId:(0,nt.isSet)(io.counterpartyChannelId)?String(io.counterpartyChannelId):"",counterpartyVersion:(0,nt.isSet)(io.counterpartyVersion)?String(io.counterpartyVersion):"",proofTry:(0,nt.isSet)(io.proofTry)?(0,nt.bytesFromBase64)(io.proofTry):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.portId!==void 0&&(co.portId=io.portId),io.channelId!==void 0&&(co.channelId=io.channelId),io.counterpartyChannelId!==void 0&&(co.counterpartyChannelId=io.counterpartyChannelId),io.counterpartyVersion!==void 0&&(co.counterpartyVersion=io.counterpartyVersion),io.proofTry!==void 0&&(co.proofTry=(0,nt.base64FromBytes)(io.proofTry!==void 0?io.proofTry:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=Nt();return co.portId=io.portId??"",co.channelId=io.channelId??"",co.counterpartyChannelId=io.counterpartyChannelId??"",co.counterpartyVersion=io.counterpartyVersion??"",co.proofTry=io.proofTry??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.signer=io.signer??"",co}};function eo(){return{}}_e.MsgChannelOpenAckResponse={encode(io,co=st.Writer.create()){return co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=eo();for(;mo.pos>>3){default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{}},toJSON(io){return{}},fromPartial(io){return eo()}};function Wt(){return{portId:"",channelId:"",proofAck:new Uint8Array,proofHeight:void 0,signer:""}}_e.MsgChannelOpenConfirm={encode(io,co=st.Writer.create()){return io.portId!==""&&co.uint32(10).string(io.portId),io.channelId!==""&&co.uint32(18).string(io.channelId),io.proofAck.length!==0&&co.uint32(26).bytes(io.proofAck),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(34).fork()).ldelim(),io.signer!==""&&co.uint32(42).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Wt();for(;mo.pos>>3){case 1:So.portId=mo.string();break;case 2:So.channelId=mo.string();break;case 3:So.proofAck=mo.bytes();break;case 4:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 5:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{portId:(0,nt.isSet)(io.portId)?String(io.portId):"",channelId:(0,nt.isSet)(io.channelId)?String(io.channelId):"",proofAck:(0,nt.isSet)(io.proofAck)?(0,nt.bytesFromBase64)(io.proofAck):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.portId!==void 0&&(co.portId=io.portId),io.channelId!==void 0&&(co.channelId=io.channelId),io.proofAck!==void 0&&(co.proofAck=(0,nt.base64FromBytes)(io.proofAck!==void 0?io.proofAck:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=Wt();return co.portId=io.portId??"",co.channelId=io.channelId??"",co.proofAck=io.proofAck??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.signer=io.signer??"",co}};function St(){return{}}_e.MsgChannelOpenConfirmResponse={encode(io,co=st.Writer.create()){return co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=St();for(;mo.pos>>3){default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{}},toJSON(io){return{}},fromPartial(io){return St()}};function Ot(){return{portId:"",channelId:"",signer:""}}_e.MsgChannelCloseInit={encode(io,co=st.Writer.create()){return io.portId!==""&&co.uint32(10).string(io.portId),io.channelId!==""&&co.uint32(18).string(io.channelId),io.signer!==""&&co.uint32(26).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Ot();for(;mo.pos>>3){case 1:So.portId=mo.string();break;case 2:So.channelId=mo.string();break;case 3:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{portId:(0,nt.isSet)(io.portId)?String(io.portId):"",channelId:(0,nt.isSet)(io.channelId)?String(io.channelId):"",signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.portId!==void 0&&(co.portId=io.portId),io.channelId!==void 0&&(co.channelId=io.channelId),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=Ot();return co.portId=io.portId??"",co.channelId=io.channelId??"",co.signer=io.signer??"",co}};function uo(){return{}}_e.MsgChannelCloseInitResponse={encode(io,co=st.Writer.create()){return co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=uo();for(;mo.pos>>3){default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{}},toJSON(io){return{}},fromPartial(io){return uo()}};function go(){return{portId:"",channelId:"",proofInit:new Uint8Array,proofHeight:void 0,signer:""}}_e.MsgChannelCloseConfirm={encode(io,co=st.Writer.create()){return io.portId!==""&&co.uint32(10).string(io.portId),io.channelId!==""&&co.uint32(18).string(io.channelId),io.proofInit.length!==0&&co.uint32(26).bytes(io.proofInit),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(34).fork()).ldelim(),io.signer!==""&&co.uint32(42).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=go();for(;mo.pos>>3){case 1:So.portId=mo.string();break;case 2:So.channelId=mo.string();break;case 3:So.proofInit=mo.bytes();break;case 4:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 5:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{portId:(0,nt.isSet)(io.portId)?String(io.portId):"",channelId:(0,nt.isSet)(io.channelId)?String(io.channelId):"",proofInit:(0,nt.isSet)(io.proofInit)?(0,nt.bytesFromBase64)(io.proofInit):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.portId!==void 0&&(co.portId=io.portId),io.channelId!==void 0&&(co.channelId=io.channelId),io.proofInit!==void 0&&(co.proofInit=(0,nt.base64FromBytes)(io.proofInit!==void 0?io.proofInit:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=go();return co.portId=io.portId??"",co.channelId=io.channelId??"",co.proofInit=io.proofInit??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.signer=io.signer??"",co}};function bo(){return{}}_e.MsgChannelCloseConfirmResponse={encode(io,co=st.Writer.create()){return co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=bo();for(;mo.pos>>3){default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{}},toJSON(io){return{}},fromPartial(io){return bo()}};function oo(){return{packet:void 0,proofCommitment:new Uint8Array,proofHeight:void 0,signer:""}}_e.MsgRecvPacket={encode(io,co=st.Writer.create()){return io.packet!==void 0&&Vr.Packet.encode(io.packet,co.uint32(10).fork()).ldelim(),io.proofCommitment.length!==0&&co.uint32(18).bytes(io.proofCommitment),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(26).fork()).ldelim(),io.signer!==""&&co.uint32(34).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=oo();for(;mo.pos>>3){case 1:So.packet=Vr.Packet.decode(mo,mo.uint32());break;case 2:So.proofCommitment=mo.bytes();break;case 3:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 4:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{packet:(0,nt.isSet)(io.packet)?Vr.Packet.fromJSON(io.packet):void 0,proofCommitment:(0,nt.isSet)(io.proofCommitment)?(0,nt.bytesFromBase64)(io.proofCommitment):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.packet!==void 0&&(co.packet=io.packet?Vr.Packet.toJSON(io.packet):void 0),io.proofCommitment!==void 0&&(co.proofCommitment=(0,nt.base64FromBytes)(io.proofCommitment!==void 0?io.proofCommitment:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=oo();return co.packet=io.packet!==void 0&&io.packet!==null?Vr.Packet.fromPartial(io.packet):void 0,co.proofCommitment=io.proofCommitment??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.signer=io.signer??"",co}};function Ro(){return{result:0}}_e.MsgRecvPacketResponse={encode(io,co=st.Writer.create()){return io.result!==0&&co.uint32(8).int32(io.result),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Ro();for(;mo.pos>>3){case 1:So.result=mo.int32();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{result:(0,nt.isSet)(io.result)?kt(io.result):0}},toJSON(io){const co={};return io.result!==void 0&&(co.result=qt(io.result)),co},fromPartial(io){const co=Ro();return co.result=io.result??0,co}};function pt(){return{packet:void 0,proofUnreceived:new Uint8Array,proofHeight:void 0,nextSequenceRecv:nt.Long.UZERO,signer:""}}_e.MsgTimeout={encode(io,co=st.Writer.create()){return io.packet!==void 0&&Vr.Packet.encode(io.packet,co.uint32(10).fork()).ldelim(),io.proofUnreceived.length!==0&&co.uint32(18).bytes(io.proofUnreceived),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(26).fork()).ldelim(),io.nextSequenceRecv.isZero()||co.uint32(32).uint64(io.nextSequenceRecv),io.signer!==""&&co.uint32(42).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=pt();for(;mo.pos>>3){case 1:So.packet=Vr.Packet.decode(mo,mo.uint32());break;case 2:So.proofUnreceived=mo.bytes();break;case 3:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 4:So.nextSequenceRecv=mo.uint64();break;case 5:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{packet:(0,nt.isSet)(io.packet)?Vr.Packet.fromJSON(io.packet):void 0,proofUnreceived:(0,nt.isSet)(io.proofUnreceived)?(0,nt.bytesFromBase64)(io.proofUnreceived):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,nextSequenceRecv:(0,nt.isSet)(io.nextSequenceRecv)?nt.Long.fromValue(io.nextSequenceRecv):nt.Long.UZERO,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.packet!==void 0&&(co.packet=io.packet?Vr.Packet.toJSON(io.packet):void 0),io.proofUnreceived!==void 0&&(co.proofUnreceived=(0,nt.base64FromBytes)(io.proofUnreceived!==void 0?io.proofUnreceived:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.nextSequenceRecv!==void 0&&(co.nextSequenceRecv=(io.nextSequenceRecv||nt.Long.UZERO).toString()),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=pt();return co.packet=io.packet!==void 0&&io.packet!==null?Vr.Packet.fromPartial(io.packet):void 0,co.proofUnreceived=io.proofUnreceived??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.nextSequenceRecv=io.nextSequenceRecv!==void 0&&io.nextSequenceRecv!==null?nt.Long.fromValue(io.nextSequenceRecv):nt.Long.UZERO,co.signer=io.signer??"",co}};function lo(){return{result:0}}_e.MsgTimeoutResponse={encode(io,co=st.Writer.create()){return io.result!==0&&co.uint32(8).int32(io.result),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=lo();for(;mo.pos>>3){case 1:So.result=mo.int32();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{result:(0,nt.isSet)(io.result)?kt(io.result):0}},toJSON(io){const co={};return io.result!==void 0&&(co.result=qt(io.result)),co},fromPartial(io){const co=lo();return co.result=io.result??0,co}};function so(){return{packet:void 0,proofUnreceived:new Uint8Array,proofClose:new Uint8Array,proofHeight:void 0,nextSequenceRecv:nt.Long.UZERO,signer:""}}_e.MsgTimeoutOnClose={encode(io,co=st.Writer.create()){return io.packet!==void 0&&Vr.Packet.encode(io.packet,co.uint32(10).fork()).ldelim(),io.proofUnreceived.length!==0&&co.uint32(18).bytes(io.proofUnreceived),io.proofClose.length!==0&&co.uint32(26).bytes(io.proofClose),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(34).fork()).ldelim(),io.nextSequenceRecv.isZero()||co.uint32(40).uint64(io.nextSequenceRecv),io.signer!==""&&co.uint32(50).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=so();for(;mo.pos>>3){case 1:So.packet=Vr.Packet.decode(mo,mo.uint32());break;case 2:So.proofUnreceived=mo.bytes();break;case 3:So.proofClose=mo.bytes();break;case 4:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 5:So.nextSequenceRecv=mo.uint64();break;case 6:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{packet:(0,nt.isSet)(io.packet)?Vr.Packet.fromJSON(io.packet):void 0,proofUnreceived:(0,nt.isSet)(io.proofUnreceived)?(0,nt.bytesFromBase64)(io.proofUnreceived):new Uint8Array,proofClose:(0,nt.isSet)(io.proofClose)?(0,nt.bytesFromBase64)(io.proofClose):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,nextSequenceRecv:(0,nt.isSet)(io.nextSequenceRecv)?nt.Long.fromValue(io.nextSequenceRecv):nt.Long.UZERO,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.packet!==void 0&&(co.packet=io.packet?Vr.Packet.toJSON(io.packet):void 0),io.proofUnreceived!==void 0&&(co.proofUnreceived=(0,nt.base64FromBytes)(io.proofUnreceived!==void 0?io.proofUnreceived:new Uint8Array)),io.proofClose!==void 0&&(co.proofClose=(0,nt.base64FromBytes)(io.proofClose!==void 0?io.proofClose:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.nextSequenceRecv!==void 0&&(co.nextSequenceRecv=(io.nextSequenceRecv||nt.Long.UZERO).toString()),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=so();return co.packet=io.packet!==void 0&&io.packet!==null?Vr.Packet.fromPartial(io.packet):void 0,co.proofUnreceived=io.proofUnreceived??new Uint8Array,co.proofClose=io.proofClose??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.nextSequenceRecv=io.nextSequenceRecv!==void 0&&io.nextSequenceRecv!==null?nt.Long.fromValue(io.nextSequenceRecv):nt.Long.UZERO,co.signer=io.signer??"",co}};function wo(){return{result:0}}_e.MsgTimeoutOnCloseResponse={encode(io,co=st.Writer.create()){return io.result!==0&&co.uint32(8).int32(io.result),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=wo();for(;mo.pos>>3){case 1:So.result=mo.int32();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{result:(0,nt.isSet)(io.result)?kt(io.result):0}},toJSON(io){const co={};return io.result!==void 0&&(co.result=qt(io.result)),co},fromPartial(io){const co=wo();return co.result=io.result??0,co}};function xt(){return{packet:void 0,acknowledgement:new Uint8Array,proofAcked:new Uint8Array,proofHeight:void 0,signer:""}}_e.MsgAcknowledgement={encode(io,co=st.Writer.create()){return io.packet!==void 0&&Vr.Packet.encode(io.packet,co.uint32(10).fork()).ldelim(),io.acknowledgement.length!==0&&co.uint32(18).bytes(io.acknowledgement),io.proofAcked.length!==0&&co.uint32(26).bytes(io.proofAcked),io.proofHeight!==void 0&&tt.Height.encode(io.proofHeight,co.uint32(34).fork()).ldelim(),io.signer!==""&&co.uint32(42).string(io.signer),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=xt();for(;mo.pos>>3){case 1:So.packet=Vr.Packet.decode(mo,mo.uint32());break;case 2:So.acknowledgement=mo.bytes();break;case 3:So.proofAcked=mo.bytes();break;case 4:So.proofHeight=tt.Height.decode(mo,mo.uint32());break;case 5:So.signer=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{packet:(0,nt.isSet)(io.packet)?Vr.Packet.fromJSON(io.packet):void 0,acknowledgement:(0,nt.isSet)(io.acknowledgement)?(0,nt.bytesFromBase64)(io.acknowledgement):new Uint8Array,proofAcked:(0,nt.isSet)(io.proofAcked)?(0,nt.bytesFromBase64)(io.proofAcked):new Uint8Array,proofHeight:(0,nt.isSet)(io.proofHeight)?tt.Height.fromJSON(io.proofHeight):void 0,signer:(0,nt.isSet)(io.signer)?String(io.signer):""}},toJSON(io){const co={};return io.packet!==void 0&&(co.packet=io.packet?Vr.Packet.toJSON(io.packet):void 0),io.acknowledgement!==void 0&&(co.acknowledgement=(0,nt.base64FromBytes)(io.acknowledgement!==void 0?io.acknowledgement:new Uint8Array)),io.proofAcked!==void 0&&(co.proofAcked=(0,nt.base64FromBytes)(io.proofAcked!==void 0?io.proofAcked:new Uint8Array)),io.proofHeight!==void 0&&(co.proofHeight=io.proofHeight?tt.Height.toJSON(io.proofHeight):void 0),io.signer!==void 0&&(co.signer=io.signer),co},fromPartial(io){const co=xt();return co.packet=io.packet!==void 0&&io.packet!==null?Vr.Packet.fromPartial(io.packet):void 0,co.acknowledgement=io.acknowledgement??new Uint8Array,co.proofAcked=io.proofAcked??new Uint8Array,co.proofHeight=io.proofHeight!==void 0&&io.proofHeight!==null?tt.Height.fromPartial(io.proofHeight):void 0,co.signer=io.signer??"",co}};function Mt(){return{result:0}}_e.MsgAcknowledgementResponse={encode(io,co=st.Writer.create()){return io.result!==0&&co.uint32(8).int32(io.result),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Mt();for(;mo.pos>>3){case 1:So.result=mo.int32();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{result:(0,nt.isSet)(io.result)?kt(io.result):0}},toJSON(io){const co={};return io.result!==void 0&&(co.result=qt(io.result)),co},fromPartial(io){const co=Mt();return co.result=io.result??0,co}};class ho{constructor(co){this.rpc=co,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(co){const mo=_e.MsgChannelOpenInit.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",mo).then(Bo=>_e.MsgChannelOpenInitResponse.decode(new st.Reader(Bo)))}ChannelOpenTry(co){const mo=_e.MsgChannelOpenTry.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",mo).then(Bo=>_e.MsgChannelOpenTryResponse.decode(new st.Reader(Bo)))}ChannelOpenAck(co){const mo=_e.MsgChannelOpenAck.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",mo).then(Bo=>_e.MsgChannelOpenAckResponse.decode(new st.Reader(Bo)))}ChannelOpenConfirm(co){const mo=_e.MsgChannelOpenConfirm.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",mo).then(Bo=>_e.MsgChannelOpenConfirmResponse.decode(new st.Reader(Bo)))}ChannelCloseInit(co){const mo=_e.MsgChannelCloseInit.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",mo).then(Bo=>_e.MsgChannelCloseInitResponse.decode(new st.Reader(Bo)))}ChannelCloseConfirm(co){const mo=_e.MsgChannelCloseConfirm.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",mo).then(Bo=>_e.MsgChannelCloseConfirmResponse.decode(new st.Reader(Bo)))}RecvPacket(co){const mo=_e.MsgRecvPacket.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",mo).then(Bo=>_e.MsgRecvPacketResponse.decode(new st.Reader(Bo)))}Timeout(co){const mo=_e.MsgTimeout.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Timeout",mo).then(Bo=>_e.MsgTimeoutResponse.decode(new st.Reader(Bo)))}TimeoutOnClose(co){const mo=_e.MsgTimeoutOnClose.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",mo).then(Bo=>_e.MsgTimeoutOnCloseResponse.decode(new st.Reader(Bo)))}Acknowledgement(co){const mo=_e.MsgAcknowledgement.encode(co).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",mo).then(Bo=>_e.MsgAcknowledgementResponse.decode(new st.Reader(Bo)))}}_e.MsgClientImpl=ho}(tx$5);var tx$4={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(eo,Wt,St,Ot){Ot===void 0&&(Ot=St);var uo=Object.getOwnPropertyDescriptor(Wt,St);(!uo||("get"in uo?!Wt.__esModule:uo.writable||uo.configurable))&&(uo={enumerable:!0,get:function(){return Wt[St]}}),Object.defineProperty(eo,Ot,uo)}:function(eo,Wt,St,Ot){Ot===void 0&&(Ot=St),eo[Ot]=Wt[St]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(eo,Wt){Object.defineProperty(eo,"default",{enumerable:!0,value:Wt})}:function(eo,Wt){eo.default=Wt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(eo){if(eo&&eo.__esModule)return eo;var Wt={};if(eo!=null)for(var St in eo)St!=="default"&&Object.prototype.hasOwnProperty.call(eo,St)&&cr(Wt,eo,St);return gr(Wt,eo),Wt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgSubmitMisbehaviourResponse=_e.MsgSubmitMisbehaviour=_e.MsgUpgradeClientResponse=_e.MsgUpgradeClient=_e.MsgUpdateClientResponse=_e.MsgUpdateClient=_e.MsgCreateClientResponse=_e.MsgCreateClient=_e.protobufPackage=void 0;const Vr=any,tt=Cr(minimal),nt=helpers;_e.protobufPackage="ibc.core.client.v1";function st(){return{clientState:void 0,consensusState:void 0,signer:""}}_e.MsgCreateClient={encode(eo,Wt=tt.Writer.create()){return eo.clientState!==void 0&&Vr.Any.encode(eo.clientState,Wt.uint32(10).fork()).ldelim(),eo.consensusState!==void 0&&Vr.Any.encode(eo.consensusState,Wt.uint32(18).fork()).ldelim(),eo.signer!==""&&Wt.uint32(26).string(eo.signer),Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=st();for(;St.pos>>3){case 1:uo.clientState=Vr.Any.decode(St,St.uint32());break;case 2:uo.consensusState=Vr.Any.decode(St,St.uint32());break;case 3:uo.signer=St.string();break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{clientState:(0,nt.isSet)(eo.clientState)?Vr.Any.fromJSON(eo.clientState):void 0,consensusState:(0,nt.isSet)(eo.consensusState)?Vr.Any.fromJSON(eo.consensusState):void 0,signer:(0,nt.isSet)(eo.signer)?String(eo.signer):""}},toJSON(eo){const Wt={};return eo.clientState!==void 0&&(Wt.clientState=eo.clientState?Vr.Any.toJSON(eo.clientState):void 0),eo.consensusState!==void 0&&(Wt.consensusState=eo.consensusState?Vr.Any.toJSON(eo.consensusState):void 0),eo.signer!==void 0&&(Wt.signer=eo.signer),Wt},fromPartial(eo){const Wt=st();return Wt.clientState=eo.clientState!==void 0&&eo.clientState!==null?Vr.Any.fromPartial(eo.clientState):void 0,Wt.consensusState=eo.consensusState!==void 0&&eo.consensusState!==null?Vr.Any.fromPartial(eo.consensusState):void 0,Wt.signer=eo.signer??"",Wt}};function dt(){return{}}_e.MsgCreateClientResponse={encode(eo,Wt=tt.Writer.create()){return Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=dt();for(;St.pos>>3){default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{}},toJSON(eo){return{}},fromPartial(eo){return dt()}};function kt(){return{clientId:"",clientMessage:void 0,signer:""}}_e.MsgUpdateClient={encode(eo,Wt=tt.Writer.create()){return eo.clientId!==""&&Wt.uint32(10).string(eo.clientId),eo.clientMessage!==void 0&&Vr.Any.encode(eo.clientMessage,Wt.uint32(18).fork()).ldelim(),eo.signer!==""&&Wt.uint32(26).string(eo.signer),Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=kt();for(;St.pos>>3){case 1:uo.clientId=St.string();break;case 2:uo.clientMessage=Vr.Any.decode(St,St.uint32());break;case 3:uo.signer=St.string();break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{clientId:(0,nt.isSet)(eo.clientId)?String(eo.clientId):"",clientMessage:(0,nt.isSet)(eo.clientMessage)?Vr.Any.fromJSON(eo.clientMessage):void 0,signer:(0,nt.isSet)(eo.signer)?String(eo.signer):""}},toJSON(eo){const Wt={};return eo.clientId!==void 0&&(Wt.clientId=eo.clientId),eo.clientMessage!==void 0&&(Wt.clientMessage=eo.clientMessage?Vr.Any.toJSON(eo.clientMessage):void 0),eo.signer!==void 0&&(Wt.signer=eo.signer),Wt},fromPartial(eo){const Wt=kt();return Wt.clientId=eo.clientId??"",Wt.clientMessage=eo.clientMessage!==void 0&&eo.clientMessage!==null?Vr.Any.fromPartial(eo.clientMessage):void 0,Wt.signer=eo.signer??"",Wt}};function qt(){return{}}_e.MsgUpdateClientResponse={encode(eo,Wt=tt.Writer.create()){return Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=qt();for(;St.pos>>3){default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{}},toJSON(eo){return{}},fromPartial(eo){return qt()}};function ro(){return{clientId:"",clientState:void 0,consensusState:void 0,proofUpgradeClient:new Uint8Array,proofUpgradeConsensusState:new Uint8Array,signer:""}}_e.MsgUpgradeClient={encode(eo,Wt=tt.Writer.create()){return eo.clientId!==""&&Wt.uint32(10).string(eo.clientId),eo.clientState!==void 0&&Vr.Any.encode(eo.clientState,Wt.uint32(18).fork()).ldelim(),eo.consensusState!==void 0&&Vr.Any.encode(eo.consensusState,Wt.uint32(26).fork()).ldelim(),eo.proofUpgradeClient.length!==0&&Wt.uint32(34).bytes(eo.proofUpgradeClient),eo.proofUpgradeConsensusState.length!==0&&Wt.uint32(42).bytes(eo.proofUpgradeConsensusState),eo.signer!==""&&Wt.uint32(50).string(eo.signer),Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=ro();for(;St.pos>>3){case 1:uo.clientId=St.string();break;case 2:uo.clientState=Vr.Any.decode(St,St.uint32());break;case 3:uo.consensusState=Vr.Any.decode(St,St.uint32());break;case 4:uo.proofUpgradeClient=St.bytes();break;case 5:uo.proofUpgradeConsensusState=St.bytes();break;case 6:uo.signer=St.string();break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{clientId:(0,nt.isSet)(eo.clientId)?String(eo.clientId):"",clientState:(0,nt.isSet)(eo.clientState)?Vr.Any.fromJSON(eo.clientState):void 0,consensusState:(0,nt.isSet)(eo.consensusState)?Vr.Any.fromJSON(eo.consensusState):void 0,proofUpgradeClient:(0,nt.isSet)(eo.proofUpgradeClient)?(0,nt.bytesFromBase64)(eo.proofUpgradeClient):new Uint8Array,proofUpgradeConsensusState:(0,nt.isSet)(eo.proofUpgradeConsensusState)?(0,nt.bytesFromBase64)(eo.proofUpgradeConsensusState):new Uint8Array,signer:(0,nt.isSet)(eo.signer)?String(eo.signer):""}},toJSON(eo){const Wt={};return eo.clientId!==void 0&&(Wt.clientId=eo.clientId),eo.clientState!==void 0&&(Wt.clientState=eo.clientState?Vr.Any.toJSON(eo.clientState):void 0),eo.consensusState!==void 0&&(Wt.consensusState=eo.consensusState?Vr.Any.toJSON(eo.consensusState):void 0),eo.proofUpgradeClient!==void 0&&(Wt.proofUpgradeClient=(0,nt.base64FromBytes)(eo.proofUpgradeClient!==void 0?eo.proofUpgradeClient:new Uint8Array)),eo.proofUpgradeConsensusState!==void 0&&(Wt.proofUpgradeConsensusState=(0,nt.base64FromBytes)(eo.proofUpgradeConsensusState!==void 0?eo.proofUpgradeConsensusState:new Uint8Array)),eo.signer!==void 0&&(Wt.signer=eo.signer),Wt},fromPartial(eo){const Wt=ro();return Wt.clientId=eo.clientId??"",Wt.clientState=eo.clientState!==void 0&&eo.clientState!==null?Vr.Any.fromPartial(eo.clientState):void 0,Wt.consensusState=eo.consensusState!==void 0&&eo.consensusState!==null?Vr.Any.fromPartial(eo.consensusState):void 0,Wt.proofUpgradeClient=eo.proofUpgradeClient??new Uint8Array,Wt.proofUpgradeConsensusState=eo.proofUpgradeConsensusState??new Uint8Array,Wt.signer=eo.signer??"",Wt}};function ht(){return{}}_e.MsgUpgradeClientResponse={encode(eo,Wt=tt.Writer.create()){return Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=ht();for(;St.pos>>3){default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{}},toJSON(eo){return{}},fromPartial(eo){return ht()}};function po(){return{clientId:"",misbehaviour:void 0,signer:""}}_e.MsgSubmitMisbehaviour={encode(eo,Wt=tt.Writer.create()){return eo.clientId!==""&&Wt.uint32(10).string(eo.clientId),eo.misbehaviour!==void 0&&Vr.Any.encode(eo.misbehaviour,Wt.uint32(18).fork()).ldelim(),eo.signer!==""&&Wt.uint32(26).string(eo.signer),Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=po();for(;St.pos>>3){case 1:uo.clientId=St.string();break;case 2:uo.misbehaviour=Vr.Any.decode(St,St.uint32());break;case 3:uo.signer=St.string();break;default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{clientId:(0,nt.isSet)(eo.clientId)?String(eo.clientId):"",misbehaviour:(0,nt.isSet)(eo.misbehaviour)?Vr.Any.fromJSON(eo.misbehaviour):void 0,signer:(0,nt.isSet)(eo.signer)?String(eo.signer):""}},toJSON(eo){const Wt={};return eo.clientId!==void 0&&(Wt.clientId=eo.clientId),eo.misbehaviour!==void 0&&(Wt.misbehaviour=eo.misbehaviour?Vr.Any.toJSON(eo.misbehaviour):void 0),eo.signer!==void 0&&(Wt.signer=eo.signer),Wt},fromPartial(eo){const Wt=po();return Wt.clientId=eo.clientId??"",Wt.misbehaviour=eo.misbehaviour!==void 0&&eo.misbehaviour!==null?Vr.Any.fromPartial(eo.misbehaviour):void 0,Wt.signer=eo.signer??"",Wt}};function no(){return{}}_e.MsgSubmitMisbehaviourResponse={encode(eo,Wt=tt.Writer.create()){return Wt},decode(eo,Wt){const St=eo instanceof tt.Reader?eo:new tt.Reader(eo);let Ot=Wt===void 0?St.len:St.pos+Wt;const uo=no();for(;St.pos>>3){default:St.skipType(go&7);break}}return uo},fromJSON(eo){return{}},toJSON(eo){return{}},fromPartial(eo){return no()}};class Nt{constructor(Wt){this.rpc=Wt,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(Wt){const St=_e.MsgCreateClient.encode(Wt).finish();return this.rpc.request("ibc.core.client.v1.Msg","CreateClient",St).then(Ot=>_e.MsgCreateClientResponse.decode(new tt.Reader(Ot)))}UpdateClient(Wt){const St=_e.MsgUpdateClient.encode(Wt).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",St).then(Ot=>_e.MsgUpdateClientResponse.decode(new tt.Reader(Ot)))}UpgradeClient(Wt){const St=_e.MsgUpgradeClient.encode(Wt).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",St).then(Ot=>_e.MsgUpgradeClientResponse.decode(new tt.Reader(Ot)))}SubmitMisbehaviour(Wt){const St=_e.MsgSubmitMisbehaviour.encode(Wt).finish();return this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",St).then(Ot=>_e.MsgSubmitMisbehaviourResponse.decode(new tt.Reader(Ot)))}}_e.MsgClientImpl=Nt})(tx$4);var tx$3={},connection={},commitment={},proofs={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(pt,lo,so,wo){wo===void 0&&(wo=so);var xt=Object.getOwnPropertyDescriptor(lo,so);(!xt||("get"in xt?!lo.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return lo[so]}}),Object.defineProperty(pt,wo,xt)}:function(pt,lo,so,wo){wo===void 0&&(wo=so),pt[wo]=lo[so]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(pt,lo){Object.defineProperty(pt,"default",{enumerable:!0,value:lo})}:function(pt,lo){pt.default=lo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(pt){if(pt&&pt.__esModule)return pt;var lo={};if(pt!=null)for(var so in pt)so!=="default"&&Object.prototype.hasOwnProperty.call(pt,so)&&cr(lo,pt,so);return gr(lo,pt),lo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CompressedNonExistenceProof=_e.CompressedExistenceProof=_e.CompressedBatchEntry=_e.CompressedBatchProof=_e.BatchEntry=_e.BatchProof=_e.InnerSpec=_e.ProofSpec=_e.InnerOp=_e.LeafOp=_e.CommitmentProof=_e.NonExistenceProof=_e.ExistenceProof=_e.lengthOpToJSON=_e.lengthOpFromJSON=_e.LengthOp=_e.hashOpToJSON=_e.hashOpFromJSON=_e.HashOp=_e.protobufPackage=void 0;const Vr=Cr(minimal),tt=helpers;_e.protobufPackage="cosmos.ics23.v1";var nt;(function(pt){pt[pt.NO_HASH=0]="NO_HASH",pt[pt.SHA256=1]="SHA256",pt[pt.SHA512=2]="SHA512",pt[pt.KECCAK=3]="KECCAK",pt[pt.RIPEMD160=4]="RIPEMD160",pt[pt.BITCOIN=5]="BITCOIN",pt[pt.SHA512_256=6]="SHA512_256",pt[pt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nt=_e.HashOp||(_e.HashOp={}));function st(pt){switch(pt){case 0:case"NO_HASH":return nt.NO_HASH;case 1:case"SHA256":return nt.SHA256;case 2:case"SHA512":return nt.SHA512;case 3:case"KECCAK":return nt.KECCAK;case 4:case"RIPEMD160":return nt.RIPEMD160;case 5:case"BITCOIN":return nt.BITCOIN;case 6:case"SHA512_256":return nt.SHA512_256;case-1:case"UNRECOGNIZED":default:return nt.UNRECOGNIZED}}_e.hashOpFromJSON=st;function dt(pt){switch(pt){case nt.NO_HASH:return"NO_HASH";case nt.SHA256:return"SHA256";case nt.SHA512:return"SHA512";case nt.KECCAK:return"KECCAK";case nt.RIPEMD160:return"RIPEMD160";case nt.BITCOIN:return"BITCOIN";case nt.SHA512_256:return"SHA512_256";case nt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.hashOpToJSON=dt;var kt;(function(pt){pt[pt.NO_PREFIX=0]="NO_PREFIX",pt[pt.VAR_PROTO=1]="VAR_PROTO",pt[pt.VAR_RLP=2]="VAR_RLP",pt[pt.FIXED32_BIG=3]="FIXED32_BIG",pt[pt.FIXED32_LITTLE=4]="FIXED32_LITTLE",pt[pt.FIXED64_BIG=5]="FIXED64_BIG",pt[pt.FIXED64_LITTLE=6]="FIXED64_LITTLE",pt[pt.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",pt[pt.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",pt[pt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kt=_e.LengthOp||(_e.LengthOp={}));function qt(pt){switch(pt){case 0:case"NO_PREFIX":return kt.NO_PREFIX;case 1:case"VAR_PROTO":return kt.VAR_PROTO;case 2:case"VAR_RLP":return kt.VAR_RLP;case 3:case"FIXED32_BIG":return kt.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return kt.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return kt.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return kt.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return kt.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return kt.REQUIRE_64_BYTES;case-1:case"UNRECOGNIZED":default:return kt.UNRECOGNIZED}}_e.lengthOpFromJSON=qt;function ro(pt){switch(pt){case kt.NO_PREFIX:return"NO_PREFIX";case kt.VAR_PROTO:return"VAR_PROTO";case kt.VAR_RLP:return"VAR_RLP";case kt.FIXED32_BIG:return"FIXED32_BIG";case kt.FIXED32_LITTLE:return"FIXED32_LITTLE";case kt.FIXED64_BIG:return"FIXED64_BIG";case kt.FIXED64_LITTLE:return"FIXED64_LITTLE";case kt.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case kt.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";case kt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.lengthOpToJSON=ro;function ht(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}_e.ExistenceProof={encode(pt,lo=Vr.Writer.create()){pt.key.length!==0&&lo.uint32(10).bytes(pt.key),pt.value.length!==0&&lo.uint32(18).bytes(pt.value),pt.leaf!==void 0&&_e.LeafOp.encode(pt.leaf,lo.uint32(26).fork()).ldelim();for(const so of pt.path)_e.InnerOp.encode(so,lo.uint32(34).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ht();for(;so.pos>>3){case 1:xt.key=so.bytes();break;case 2:xt.value=so.bytes();break;case 3:xt.leaf=_e.LeafOp.decode(so,so.uint32());break;case 4:xt.path.push(_e.InnerOp.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{key:(0,tt.isSet)(pt.key)?(0,tt.bytesFromBase64)(pt.key):new Uint8Array,value:(0,tt.isSet)(pt.value)?(0,tt.bytesFromBase64)(pt.value):new Uint8Array,leaf:(0,tt.isSet)(pt.leaf)?_e.LeafOp.fromJSON(pt.leaf):void 0,path:Array.isArray(pt==null?void 0:pt.path)?pt.path.map(lo=>_e.InnerOp.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.key!==void 0&&(lo.key=(0,tt.base64FromBytes)(pt.key!==void 0?pt.key:new Uint8Array)),pt.value!==void 0&&(lo.value=(0,tt.base64FromBytes)(pt.value!==void 0?pt.value:new Uint8Array)),pt.leaf!==void 0&&(lo.leaf=pt.leaf?_e.LeafOp.toJSON(pt.leaf):void 0),pt.path?lo.path=pt.path.map(so=>so?_e.InnerOp.toJSON(so):void 0):lo.path=[],lo},fromPartial(pt){var so;const lo=ht();return lo.key=pt.key??new Uint8Array,lo.value=pt.value??new Uint8Array,lo.leaf=pt.leaf!==void 0&&pt.leaf!==null?_e.LeafOp.fromPartial(pt.leaf):void 0,lo.path=((so=pt.path)==null?void 0:so.map(wo=>_e.InnerOp.fromPartial(wo)))||[],lo}};function po(){return{key:new Uint8Array,left:void 0,right:void 0}}_e.NonExistenceProof={encode(pt,lo=Vr.Writer.create()){return pt.key.length!==0&&lo.uint32(10).bytes(pt.key),pt.left!==void 0&&_e.ExistenceProof.encode(pt.left,lo.uint32(18).fork()).ldelim(),pt.right!==void 0&&_e.ExistenceProof.encode(pt.right,lo.uint32(26).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=po();for(;so.pos>>3){case 1:xt.key=so.bytes();break;case 2:xt.left=_e.ExistenceProof.decode(so,so.uint32());break;case 3:xt.right=_e.ExistenceProof.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{key:(0,tt.isSet)(pt.key)?(0,tt.bytesFromBase64)(pt.key):new Uint8Array,left:(0,tt.isSet)(pt.left)?_e.ExistenceProof.fromJSON(pt.left):void 0,right:(0,tt.isSet)(pt.right)?_e.ExistenceProof.fromJSON(pt.right):void 0}},toJSON(pt){const lo={};return pt.key!==void 0&&(lo.key=(0,tt.base64FromBytes)(pt.key!==void 0?pt.key:new Uint8Array)),pt.left!==void 0&&(lo.left=pt.left?_e.ExistenceProof.toJSON(pt.left):void 0),pt.right!==void 0&&(lo.right=pt.right?_e.ExistenceProof.toJSON(pt.right):void 0),lo},fromPartial(pt){const lo=po();return lo.key=pt.key??new Uint8Array,lo.left=pt.left!==void 0&&pt.left!==null?_e.ExistenceProof.fromPartial(pt.left):void 0,lo.right=pt.right!==void 0&&pt.right!==null?_e.ExistenceProof.fromPartial(pt.right):void 0,lo}};function no(){return{exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0}}_e.CommitmentProof={encode(pt,lo=Vr.Writer.create()){return pt.exist!==void 0&&_e.ExistenceProof.encode(pt.exist,lo.uint32(10).fork()).ldelim(),pt.nonexist!==void 0&&_e.NonExistenceProof.encode(pt.nonexist,lo.uint32(18).fork()).ldelim(),pt.batch!==void 0&&_e.BatchProof.encode(pt.batch,lo.uint32(26).fork()).ldelim(),pt.compressed!==void 0&&_e.CompressedBatchProof.encode(pt.compressed,lo.uint32(34).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=no();for(;so.pos>>3){case 1:xt.exist=_e.ExistenceProof.decode(so,so.uint32());break;case 2:xt.nonexist=_e.NonExistenceProof.decode(so,so.uint32());break;case 3:xt.batch=_e.BatchProof.decode(so,so.uint32());break;case 4:xt.compressed=_e.CompressedBatchProof.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{exist:(0,tt.isSet)(pt.exist)?_e.ExistenceProof.fromJSON(pt.exist):void 0,nonexist:(0,tt.isSet)(pt.nonexist)?_e.NonExistenceProof.fromJSON(pt.nonexist):void 0,batch:(0,tt.isSet)(pt.batch)?_e.BatchProof.fromJSON(pt.batch):void 0,compressed:(0,tt.isSet)(pt.compressed)?_e.CompressedBatchProof.fromJSON(pt.compressed):void 0}},toJSON(pt){const lo={};return pt.exist!==void 0&&(lo.exist=pt.exist?_e.ExistenceProof.toJSON(pt.exist):void 0),pt.nonexist!==void 0&&(lo.nonexist=pt.nonexist?_e.NonExistenceProof.toJSON(pt.nonexist):void 0),pt.batch!==void 0&&(lo.batch=pt.batch?_e.BatchProof.toJSON(pt.batch):void 0),pt.compressed!==void 0&&(lo.compressed=pt.compressed?_e.CompressedBatchProof.toJSON(pt.compressed):void 0),lo},fromPartial(pt){const lo=no();return lo.exist=pt.exist!==void 0&&pt.exist!==null?_e.ExistenceProof.fromPartial(pt.exist):void 0,lo.nonexist=pt.nonexist!==void 0&&pt.nonexist!==null?_e.NonExistenceProof.fromPartial(pt.nonexist):void 0,lo.batch=pt.batch!==void 0&&pt.batch!==null?_e.BatchProof.fromPartial(pt.batch):void 0,lo.compressed=pt.compressed!==void 0&&pt.compressed!==null?_e.CompressedBatchProof.fromPartial(pt.compressed):void 0,lo}};function Nt(){return{hash:0,prehashKey:0,prehashValue:0,length:0,prefix:new Uint8Array}}_e.LeafOp={encode(pt,lo=Vr.Writer.create()){return pt.hash!==0&&lo.uint32(8).int32(pt.hash),pt.prehashKey!==0&&lo.uint32(16).int32(pt.prehashKey),pt.prehashValue!==0&&lo.uint32(24).int32(pt.prehashValue),pt.length!==0&&lo.uint32(32).int32(pt.length),pt.prefix.length!==0&&lo.uint32(42).bytes(pt.prefix),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Nt();for(;so.pos>>3){case 1:xt.hash=so.int32();break;case 2:xt.prehashKey=so.int32();break;case 3:xt.prehashValue=so.int32();break;case 4:xt.length=so.int32();break;case 5:xt.prefix=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{hash:(0,tt.isSet)(pt.hash)?st(pt.hash):0,prehashKey:(0,tt.isSet)(pt.prehashKey)?st(pt.prehashKey):0,prehashValue:(0,tt.isSet)(pt.prehashValue)?st(pt.prehashValue):0,length:(0,tt.isSet)(pt.length)?qt(pt.length):0,prefix:(0,tt.isSet)(pt.prefix)?(0,tt.bytesFromBase64)(pt.prefix):new Uint8Array}},toJSON(pt){const lo={};return pt.hash!==void 0&&(lo.hash=dt(pt.hash)),pt.prehashKey!==void 0&&(lo.prehashKey=dt(pt.prehashKey)),pt.prehashValue!==void 0&&(lo.prehashValue=dt(pt.prehashValue)),pt.length!==void 0&&(lo.length=ro(pt.length)),pt.prefix!==void 0&&(lo.prefix=(0,tt.base64FromBytes)(pt.prefix!==void 0?pt.prefix:new Uint8Array)),lo},fromPartial(pt){const lo=Nt();return lo.hash=pt.hash??0,lo.prehashKey=pt.prehashKey??0,lo.prehashValue=pt.prehashValue??0,lo.length=pt.length??0,lo.prefix=pt.prefix??new Uint8Array,lo}};function eo(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}_e.InnerOp={encode(pt,lo=Vr.Writer.create()){return pt.hash!==0&&lo.uint32(8).int32(pt.hash),pt.prefix.length!==0&&lo.uint32(18).bytes(pt.prefix),pt.suffix.length!==0&&lo.uint32(26).bytes(pt.suffix),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=eo();for(;so.pos>>3){case 1:xt.hash=so.int32();break;case 2:xt.prefix=so.bytes();break;case 3:xt.suffix=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{hash:(0,tt.isSet)(pt.hash)?st(pt.hash):0,prefix:(0,tt.isSet)(pt.prefix)?(0,tt.bytesFromBase64)(pt.prefix):new Uint8Array,suffix:(0,tt.isSet)(pt.suffix)?(0,tt.bytesFromBase64)(pt.suffix):new Uint8Array}},toJSON(pt){const lo={};return pt.hash!==void 0&&(lo.hash=dt(pt.hash)),pt.prefix!==void 0&&(lo.prefix=(0,tt.base64FromBytes)(pt.prefix!==void 0?pt.prefix:new Uint8Array)),pt.suffix!==void 0&&(lo.suffix=(0,tt.base64FromBytes)(pt.suffix!==void 0?pt.suffix:new Uint8Array)),lo},fromPartial(pt){const lo=eo();return lo.hash=pt.hash??0,lo.prefix=pt.prefix??new Uint8Array,lo.suffix=pt.suffix??new Uint8Array,lo}};function Wt(){return{leafSpec:void 0,innerSpec:void 0,maxDepth:0,minDepth:0}}_e.ProofSpec={encode(pt,lo=Vr.Writer.create()){return pt.leafSpec!==void 0&&_e.LeafOp.encode(pt.leafSpec,lo.uint32(10).fork()).ldelim(),pt.innerSpec!==void 0&&_e.InnerSpec.encode(pt.innerSpec,lo.uint32(18).fork()).ldelim(),pt.maxDepth!==0&&lo.uint32(24).int32(pt.maxDepth),pt.minDepth!==0&&lo.uint32(32).int32(pt.minDepth),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Wt();for(;so.pos>>3){case 1:xt.leafSpec=_e.LeafOp.decode(so,so.uint32());break;case 2:xt.innerSpec=_e.InnerSpec.decode(so,so.uint32());break;case 3:xt.maxDepth=so.int32();break;case 4:xt.minDepth=so.int32();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{leafSpec:(0,tt.isSet)(pt.leafSpec)?_e.LeafOp.fromJSON(pt.leafSpec):void 0,innerSpec:(0,tt.isSet)(pt.innerSpec)?_e.InnerSpec.fromJSON(pt.innerSpec):void 0,maxDepth:(0,tt.isSet)(pt.maxDepth)?Number(pt.maxDepth):0,minDepth:(0,tt.isSet)(pt.minDepth)?Number(pt.minDepth):0}},toJSON(pt){const lo={};return pt.leafSpec!==void 0&&(lo.leafSpec=pt.leafSpec?_e.LeafOp.toJSON(pt.leafSpec):void 0),pt.innerSpec!==void 0&&(lo.innerSpec=pt.innerSpec?_e.InnerSpec.toJSON(pt.innerSpec):void 0),pt.maxDepth!==void 0&&(lo.maxDepth=Math.round(pt.maxDepth)),pt.minDepth!==void 0&&(lo.minDepth=Math.round(pt.minDepth)),lo},fromPartial(pt){const lo=Wt();return lo.leafSpec=pt.leafSpec!==void 0&&pt.leafSpec!==null?_e.LeafOp.fromPartial(pt.leafSpec):void 0,lo.innerSpec=pt.innerSpec!==void 0&&pt.innerSpec!==null?_e.InnerSpec.fromPartial(pt.innerSpec):void 0,lo.maxDepth=pt.maxDepth??0,lo.minDepth=pt.minDepth??0,lo}};function St(){return{childOrder:[],childSize:0,minPrefixLength:0,maxPrefixLength:0,emptyChild:new Uint8Array,hash:0}}_e.InnerSpec={encode(pt,lo=Vr.Writer.create()){lo.uint32(10).fork();for(const so of pt.childOrder)lo.int32(so);return lo.ldelim(),pt.childSize!==0&&lo.uint32(16).int32(pt.childSize),pt.minPrefixLength!==0&&lo.uint32(24).int32(pt.minPrefixLength),pt.maxPrefixLength!==0&&lo.uint32(32).int32(pt.maxPrefixLength),pt.emptyChild.length!==0&&lo.uint32(42).bytes(pt.emptyChild),pt.hash!==0&&lo.uint32(48).int32(pt.hash),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=St();for(;so.pos>>3){case 1:if((Mt&7)===2){const ho=so.uint32()+so.pos;for(;so.posNumber(lo)):[],childSize:(0,tt.isSet)(pt.childSize)?Number(pt.childSize):0,minPrefixLength:(0,tt.isSet)(pt.minPrefixLength)?Number(pt.minPrefixLength):0,maxPrefixLength:(0,tt.isSet)(pt.maxPrefixLength)?Number(pt.maxPrefixLength):0,emptyChild:(0,tt.isSet)(pt.emptyChild)?(0,tt.bytesFromBase64)(pt.emptyChild):new Uint8Array,hash:(0,tt.isSet)(pt.hash)?st(pt.hash):0}},toJSON(pt){const lo={};return pt.childOrder?lo.childOrder=pt.childOrder.map(so=>Math.round(so)):lo.childOrder=[],pt.childSize!==void 0&&(lo.childSize=Math.round(pt.childSize)),pt.minPrefixLength!==void 0&&(lo.minPrefixLength=Math.round(pt.minPrefixLength)),pt.maxPrefixLength!==void 0&&(lo.maxPrefixLength=Math.round(pt.maxPrefixLength)),pt.emptyChild!==void 0&&(lo.emptyChild=(0,tt.base64FromBytes)(pt.emptyChild!==void 0?pt.emptyChild:new Uint8Array)),pt.hash!==void 0&&(lo.hash=dt(pt.hash)),lo},fromPartial(pt){var so;const lo=St();return lo.childOrder=((so=pt.childOrder)==null?void 0:so.map(wo=>wo))||[],lo.childSize=pt.childSize??0,lo.minPrefixLength=pt.minPrefixLength??0,lo.maxPrefixLength=pt.maxPrefixLength??0,lo.emptyChild=pt.emptyChild??new Uint8Array,lo.hash=pt.hash??0,lo}};function Ot(){return{entries:[]}}_e.BatchProof={encode(pt,lo=Vr.Writer.create()){for(const so of pt.entries)_e.BatchEntry.encode(so,lo.uint32(10).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ot();for(;so.pos>>3){case 1:xt.entries.push(_e.BatchEntry.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{entries:Array.isArray(pt==null?void 0:pt.entries)?pt.entries.map(lo=>_e.BatchEntry.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.entries?lo.entries=pt.entries.map(so=>so?_e.BatchEntry.toJSON(so):void 0):lo.entries=[],lo},fromPartial(pt){var so;const lo=Ot();return lo.entries=((so=pt.entries)==null?void 0:so.map(wo=>_e.BatchEntry.fromPartial(wo)))||[],lo}};function uo(){return{exist:void 0,nonexist:void 0}}_e.BatchEntry={encode(pt,lo=Vr.Writer.create()){return pt.exist!==void 0&&_e.ExistenceProof.encode(pt.exist,lo.uint32(10).fork()).ldelim(),pt.nonexist!==void 0&&_e.NonExistenceProof.encode(pt.nonexist,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=uo();for(;so.pos>>3){case 1:xt.exist=_e.ExistenceProof.decode(so,so.uint32());break;case 2:xt.nonexist=_e.NonExistenceProof.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{exist:(0,tt.isSet)(pt.exist)?_e.ExistenceProof.fromJSON(pt.exist):void 0,nonexist:(0,tt.isSet)(pt.nonexist)?_e.NonExistenceProof.fromJSON(pt.nonexist):void 0}},toJSON(pt){const lo={};return pt.exist!==void 0&&(lo.exist=pt.exist?_e.ExistenceProof.toJSON(pt.exist):void 0),pt.nonexist!==void 0&&(lo.nonexist=pt.nonexist?_e.NonExistenceProof.toJSON(pt.nonexist):void 0),lo},fromPartial(pt){const lo=uo();return lo.exist=pt.exist!==void 0&&pt.exist!==null?_e.ExistenceProof.fromPartial(pt.exist):void 0,lo.nonexist=pt.nonexist!==void 0&&pt.nonexist!==null?_e.NonExistenceProof.fromPartial(pt.nonexist):void 0,lo}};function go(){return{entries:[],lookupInners:[]}}_e.CompressedBatchProof={encode(pt,lo=Vr.Writer.create()){for(const so of pt.entries)_e.CompressedBatchEntry.encode(so,lo.uint32(10).fork()).ldelim();for(const so of pt.lookupInners)_e.InnerOp.encode(so,lo.uint32(18).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=go();for(;so.pos>>3){case 1:xt.entries.push(_e.CompressedBatchEntry.decode(so,so.uint32()));break;case 2:xt.lookupInners.push(_e.InnerOp.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{entries:Array.isArray(pt==null?void 0:pt.entries)?pt.entries.map(lo=>_e.CompressedBatchEntry.fromJSON(lo)):[],lookupInners:Array.isArray(pt==null?void 0:pt.lookupInners)?pt.lookupInners.map(lo=>_e.InnerOp.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.entries?lo.entries=pt.entries.map(so=>so?_e.CompressedBatchEntry.toJSON(so):void 0):lo.entries=[],pt.lookupInners?lo.lookupInners=pt.lookupInners.map(so=>so?_e.InnerOp.toJSON(so):void 0):lo.lookupInners=[],lo},fromPartial(pt){var so,wo;const lo=go();return lo.entries=((so=pt.entries)==null?void 0:so.map(xt=>_e.CompressedBatchEntry.fromPartial(xt)))||[],lo.lookupInners=((wo=pt.lookupInners)==null?void 0:wo.map(xt=>_e.InnerOp.fromPartial(xt)))||[],lo}};function bo(){return{exist:void 0,nonexist:void 0}}_e.CompressedBatchEntry={encode(pt,lo=Vr.Writer.create()){return pt.exist!==void 0&&_e.CompressedExistenceProof.encode(pt.exist,lo.uint32(10).fork()).ldelim(),pt.nonexist!==void 0&&_e.CompressedNonExistenceProof.encode(pt.nonexist,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=bo();for(;so.pos>>3){case 1:xt.exist=_e.CompressedExistenceProof.decode(so,so.uint32());break;case 2:xt.nonexist=_e.CompressedNonExistenceProof.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{exist:(0,tt.isSet)(pt.exist)?_e.CompressedExistenceProof.fromJSON(pt.exist):void 0,nonexist:(0,tt.isSet)(pt.nonexist)?_e.CompressedNonExistenceProof.fromJSON(pt.nonexist):void 0}},toJSON(pt){const lo={};return pt.exist!==void 0&&(lo.exist=pt.exist?_e.CompressedExistenceProof.toJSON(pt.exist):void 0),pt.nonexist!==void 0&&(lo.nonexist=pt.nonexist?_e.CompressedNonExistenceProof.toJSON(pt.nonexist):void 0),lo},fromPartial(pt){const lo=bo();return lo.exist=pt.exist!==void 0&&pt.exist!==null?_e.CompressedExistenceProof.fromPartial(pt.exist):void 0,lo.nonexist=pt.nonexist!==void 0&&pt.nonexist!==null?_e.CompressedNonExistenceProof.fromPartial(pt.nonexist):void 0,lo}};function oo(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}_e.CompressedExistenceProof={encode(pt,lo=Vr.Writer.create()){pt.key.length!==0&&lo.uint32(10).bytes(pt.key),pt.value.length!==0&&lo.uint32(18).bytes(pt.value),pt.leaf!==void 0&&_e.LeafOp.encode(pt.leaf,lo.uint32(26).fork()).ldelim(),lo.uint32(34).fork();for(const so of pt.path)lo.int32(so);return lo.ldelim(),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=oo();for(;so.pos>>3){case 1:xt.key=so.bytes();break;case 2:xt.value=so.bytes();break;case 3:xt.leaf=_e.LeafOp.decode(so,so.uint32());break;case 4:if((Mt&7)===2){const ho=so.uint32()+so.pos;for(;so.posNumber(lo)):[]}},toJSON(pt){const lo={};return pt.key!==void 0&&(lo.key=(0,tt.base64FromBytes)(pt.key!==void 0?pt.key:new Uint8Array)),pt.value!==void 0&&(lo.value=(0,tt.base64FromBytes)(pt.value!==void 0?pt.value:new Uint8Array)),pt.leaf!==void 0&&(lo.leaf=pt.leaf?_e.LeafOp.toJSON(pt.leaf):void 0),pt.path?lo.path=pt.path.map(so=>Math.round(so)):lo.path=[],lo},fromPartial(pt){var so;const lo=oo();return lo.key=pt.key??new Uint8Array,lo.value=pt.value??new Uint8Array,lo.leaf=pt.leaf!==void 0&&pt.leaf!==null?_e.LeafOp.fromPartial(pt.leaf):void 0,lo.path=((so=pt.path)==null?void 0:so.map(wo=>wo))||[],lo}};function Ro(){return{key:new Uint8Array,left:void 0,right:void 0}}_e.CompressedNonExistenceProof={encode(pt,lo=Vr.Writer.create()){return pt.key.length!==0&&lo.uint32(10).bytes(pt.key),pt.left!==void 0&&_e.CompressedExistenceProof.encode(pt.left,lo.uint32(18).fork()).ldelim(),pt.right!==void 0&&_e.CompressedExistenceProof.encode(pt.right,lo.uint32(26).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof Vr.Reader?pt:new Vr.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ro();for(;so.pos>>3){case 1:xt.key=so.bytes();break;case 2:xt.left=_e.CompressedExistenceProof.decode(so,so.uint32());break;case 3:xt.right=_e.CompressedExistenceProof.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{key:(0,tt.isSet)(pt.key)?(0,tt.bytesFromBase64)(pt.key):new Uint8Array,left:(0,tt.isSet)(pt.left)?_e.CompressedExistenceProof.fromJSON(pt.left):void 0,right:(0,tt.isSet)(pt.right)?_e.CompressedExistenceProof.fromJSON(pt.right):void 0}},toJSON(pt){const lo={};return pt.key!==void 0&&(lo.key=(0,tt.base64FromBytes)(pt.key!==void 0?pt.key:new Uint8Array)),pt.left!==void 0&&(lo.left=pt.left?_e.CompressedExistenceProof.toJSON(pt.left):void 0),pt.right!==void 0&&(lo.right=pt.right?_e.CompressedExistenceProof.toJSON(pt.right):void 0),lo},fromPartial(pt){const lo=Ro();return lo.key=pt.key??new Uint8Array,lo.left=pt.left!==void 0&&pt.left!==null?_e.CompressedExistenceProof.fromPartial(pt.left):void 0,lo.right=pt.right!==void 0&&pt.right!==null?_e.CompressedExistenceProof.fromPartial(pt.right):void 0,lo}}})(proofs);var __createBinding$b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$b=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$b=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$b(cr,_e,gr);return __setModuleDefault$b(cr,_e),cr};Object.defineProperty(commitment,"__esModule",{value:!0}),commitment.MerkleProof=commitment.MerklePath=commitment.MerklePrefix=commitment.MerkleRoot=commitment.protobufPackage=void 0;const proofs_1=proofs,_m0$6=__importStar$b(minimal),helpers_1$6=helpers;commitment.protobufPackage="ibc.core.commitment.v1";function createBaseMerkleRoot(){return{hash:new Uint8Array}}commitment.MerkleRoot={encode(_e,cr=_m0$6.Writer.create()){return _e.hash.length!==0&&cr.uint32(10).bytes(_e.hash),cr},decode(_e,cr){const gr=_e instanceof _m0$6.Reader?_e:new _m0$6.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseMerkleRoot();for(;gr.pos>>3){case 1:Vr.hash=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{hash:(0,helpers_1$6.isSet)(_e.hash)?(0,helpers_1$6.bytesFromBase64)(_e.hash):new Uint8Array}},toJSON(_e){const cr={};return _e.hash!==void 0&&(cr.hash=(0,helpers_1$6.base64FromBytes)(_e.hash!==void 0?_e.hash:new Uint8Array)),cr},fromPartial(_e){const cr=createBaseMerkleRoot();return cr.hash=_e.hash??new Uint8Array,cr}};function createBaseMerklePrefix(){return{keyPrefix:new Uint8Array}}commitment.MerklePrefix={encode(_e,cr=_m0$6.Writer.create()){return _e.keyPrefix.length!==0&&cr.uint32(10).bytes(_e.keyPrefix),cr},decode(_e,cr){const gr=_e instanceof _m0$6.Reader?_e:new _m0$6.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseMerklePrefix();for(;gr.pos>>3){case 1:Vr.keyPrefix=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{keyPrefix:(0,helpers_1$6.isSet)(_e.keyPrefix)?(0,helpers_1$6.bytesFromBase64)(_e.keyPrefix):new Uint8Array}},toJSON(_e){const cr={};return _e.keyPrefix!==void 0&&(cr.keyPrefix=(0,helpers_1$6.base64FromBytes)(_e.keyPrefix!==void 0?_e.keyPrefix:new Uint8Array)),cr},fromPartial(_e){const cr=createBaseMerklePrefix();return cr.keyPrefix=_e.keyPrefix??new Uint8Array,cr}};function createBaseMerklePath(){return{keyPath:[]}}commitment.MerklePath={encode(_e,cr=_m0$6.Writer.create()){for(const gr of _e.keyPath)cr.uint32(10).string(gr);return cr},decode(_e,cr){const gr=_e instanceof _m0$6.Reader?_e:new _m0$6.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseMerklePath();for(;gr.pos>>3){case 1:Vr.keyPath.push(gr.string());break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{keyPath:Array.isArray(_e==null?void 0:_e.keyPath)?_e.keyPath.map(cr=>String(cr)):[]}},toJSON(_e){const cr={};return _e.keyPath?cr.keyPath=_e.keyPath.map(gr=>gr):cr.keyPath=[],cr},fromPartial(_e){var gr;const cr=createBaseMerklePath();return cr.keyPath=((gr=_e.keyPath)==null?void 0:gr.map(Cr=>Cr))||[],cr}};function createBaseMerkleProof(){return{proofs:[]}}commitment.MerkleProof={encode(_e,cr=_m0$6.Writer.create()){for(const gr of _e.proofs)proofs_1.CommitmentProof.encode(gr,cr.uint32(10).fork()).ldelim();return cr},decode(_e,cr){const gr=_e instanceof _m0$6.Reader?_e:new _m0$6.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseMerkleProof();for(;gr.pos>>3){case 1:Vr.proofs.push(proofs_1.CommitmentProof.decode(gr,gr.uint32()));break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{proofs:Array.isArray(_e==null?void 0:_e.proofs)?_e.proofs.map(cr=>proofs_1.CommitmentProof.fromJSON(cr)):[]}},toJSON(_e){const cr={};return _e.proofs?cr.proofs=_e.proofs.map(gr=>gr?proofs_1.CommitmentProof.toJSON(gr):void 0):cr.proofs=[],cr},fromPartial(_e){var gr;const cr=createBaseMerkleProof();return cr.proofs=((gr=_e.proofs)==null?void 0:gr.map(Cr=>proofs_1.CommitmentProof.fromPartial(Cr)))||[],cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Wt,St,Ot,uo){uo===void 0&&(uo=Ot);var go=Object.getOwnPropertyDescriptor(St,Ot);(!go||("get"in go?!St.__esModule:go.writable||go.configurable))&&(go={enumerable:!0,get:function(){return St[Ot]}}),Object.defineProperty(Wt,uo,go)}:function(Wt,St,Ot,uo){uo===void 0&&(uo=Ot),Wt[uo]=St[Ot]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Wt,St){Object.defineProperty(Wt,"default",{enumerable:!0,value:St})}:function(Wt,St){Wt.default=St}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Wt){if(Wt&&Wt.__esModule)return Wt;var St={};if(Wt!=null)for(var Ot in Wt)Ot!=="default"&&Object.prototype.hasOwnProperty.call(Wt,Ot)&&cr(St,Wt,Ot);return gr(St,Wt),St};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Params=_e.Version=_e.ConnectionPaths=_e.ClientPaths=_e.Counterparty=_e.IdentifiedConnection=_e.ConnectionEnd=_e.stateToJSON=_e.stateFromJSON=_e.State=_e.protobufPackage=void 0;const Vr=commitment,tt=helpers,nt=Cr(minimal);_e.protobufPackage="ibc.core.connection.v1";var st;(function(Wt){Wt[Wt.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",Wt[Wt.STATE_INIT=1]="STATE_INIT",Wt[Wt.STATE_TRYOPEN=2]="STATE_TRYOPEN",Wt[Wt.STATE_OPEN=3]="STATE_OPEN",Wt[Wt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(st=_e.State||(_e.State={}));function dt(Wt){switch(Wt){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return st.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return st.STATE_INIT;case 2:case"STATE_TRYOPEN":return st.STATE_TRYOPEN;case 3:case"STATE_OPEN":return st.STATE_OPEN;case-1:case"UNRECOGNIZED":default:return st.UNRECOGNIZED}}_e.stateFromJSON=dt;function kt(Wt){switch(Wt){case st.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case st.STATE_INIT:return"STATE_INIT";case st.STATE_TRYOPEN:return"STATE_TRYOPEN";case st.STATE_OPEN:return"STATE_OPEN";case st.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.stateToJSON=kt;function qt(){return{clientId:"",versions:[],state:0,counterparty:void 0,delayPeriod:tt.Long.UZERO}}_e.ConnectionEnd={encode(Wt,St=nt.Writer.create()){Wt.clientId!==""&&St.uint32(10).string(Wt.clientId);for(const Ot of Wt.versions)_e.Version.encode(Ot,St.uint32(18).fork()).ldelim();return Wt.state!==0&&St.uint32(24).int32(Wt.state),Wt.counterparty!==void 0&&_e.Counterparty.encode(Wt.counterparty,St.uint32(34).fork()).ldelim(),Wt.delayPeriod.isZero()||St.uint32(40).uint64(Wt.delayPeriod),St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=qt();for(;Ot.pos>>3){case 1:go.clientId=Ot.string();break;case 2:go.versions.push(_e.Version.decode(Ot,Ot.uint32()));break;case 3:go.state=Ot.int32();break;case 4:go.counterparty=_e.Counterparty.decode(Ot,Ot.uint32());break;case 5:go.delayPeriod=Ot.uint64();break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{clientId:(0,tt.isSet)(Wt.clientId)?String(Wt.clientId):"",versions:Array.isArray(Wt==null?void 0:Wt.versions)?Wt.versions.map(St=>_e.Version.fromJSON(St)):[],state:(0,tt.isSet)(Wt.state)?dt(Wt.state):0,counterparty:(0,tt.isSet)(Wt.counterparty)?_e.Counterparty.fromJSON(Wt.counterparty):void 0,delayPeriod:(0,tt.isSet)(Wt.delayPeriod)?tt.Long.fromValue(Wt.delayPeriod):tt.Long.UZERO}},toJSON(Wt){const St={};return Wt.clientId!==void 0&&(St.clientId=Wt.clientId),Wt.versions?St.versions=Wt.versions.map(Ot=>Ot?_e.Version.toJSON(Ot):void 0):St.versions=[],Wt.state!==void 0&&(St.state=kt(Wt.state)),Wt.counterparty!==void 0&&(St.counterparty=Wt.counterparty?_e.Counterparty.toJSON(Wt.counterparty):void 0),Wt.delayPeriod!==void 0&&(St.delayPeriod=(Wt.delayPeriod||tt.Long.UZERO).toString()),St},fromPartial(Wt){var Ot;const St=qt();return St.clientId=Wt.clientId??"",St.versions=((Ot=Wt.versions)==null?void 0:Ot.map(uo=>_e.Version.fromPartial(uo)))||[],St.state=Wt.state??0,St.counterparty=Wt.counterparty!==void 0&&Wt.counterparty!==null?_e.Counterparty.fromPartial(Wt.counterparty):void 0,St.delayPeriod=Wt.delayPeriod!==void 0&&Wt.delayPeriod!==null?tt.Long.fromValue(Wt.delayPeriod):tt.Long.UZERO,St}};function ro(){return{id:"",clientId:"",versions:[],state:0,counterparty:void 0,delayPeriod:tt.Long.UZERO}}_e.IdentifiedConnection={encode(Wt,St=nt.Writer.create()){Wt.id!==""&&St.uint32(10).string(Wt.id),Wt.clientId!==""&&St.uint32(18).string(Wt.clientId);for(const Ot of Wt.versions)_e.Version.encode(Ot,St.uint32(26).fork()).ldelim();return Wt.state!==0&&St.uint32(32).int32(Wt.state),Wt.counterparty!==void 0&&_e.Counterparty.encode(Wt.counterparty,St.uint32(42).fork()).ldelim(),Wt.delayPeriod.isZero()||St.uint32(48).uint64(Wt.delayPeriod),St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=ro();for(;Ot.pos>>3){case 1:go.id=Ot.string();break;case 2:go.clientId=Ot.string();break;case 3:go.versions.push(_e.Version.decode(Ot,Ot.uint32()));break;case 4:go.state=Ot.int32();break;case 5:go.counterparty=_e.Counterparty.decode(Ot,Ot.uint32());break;case 6:go.delayPeriod=Ot.uint64();break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{id:(0,tt.isSet)(Wt.id)?String(Wt.id):"",clientId:(0,tt.isSet)(Wt.clientId)?String(Wt.clientId):"",versions:Array.isArray(Wt==null?void 0:Wt.versions)?Wt.versions.map(St=>_e.Version.fromJSON(St)):[],state:(0,tt.isSet)(Wt.state)?dt(Wt.state):0,counterparty:(0,tt.isSet)(Wt.counterparty)?_e.Counterparty.fromJSON(Wt.counterparty):void 0,delayPeriod:(0,tt.isSet)(Wt.delayPeriod)?tt.Long.fromValue(Wt.delayPeriod):tt.Long.UZERO}},toJSON(Wt){const St={};return Wt.id!==void 0&&(St.id=Wt.id),Wt.clientId!==void 0&&(St.clientId=Wt.clientId),Wt.versions?St.versions=Wt.versions.map(Ot=>Ot?_e.Version.toJSON(Ot):void 0):St.versions=[],Wt.state!==void 0&&(St.state=kt(Wt.state)),Wt.counterparty!==void 0&&(St.counterparty=Wt.counterparty?_e.Counterparty.toJSON(Wt.counterparty):void 0),Wt.delayPeriod!==void 0&&(St.delayPeriod=(Wt.delayPeriod||tt.Long.UZERO).toString()),St},fromPartial(Wt){var Ot;const St=ro();return St.id=Wt.id??"",St.clientId=Wt.clientId??"",St.versions=((Ot=Wt.versions)==null?void 0:Ot.map(uo=>_e.Version.fromPartial(uo)))||[],St.state=Wt.state??0,St.counterparty=Wt.counterparty!==void 0&&Wt.counterparty!==null?_e.Counterparty.fromPartial(Wt.counterparty):void 0,St.delayPeriod=Wt.delayPeriod!==void 0&&Wt.delayPeriod!==null?tt.Long.fromValue(Wt.delayPeriod):tt.Long.UZERO,St}};function ht(){return{clientId:"",connectionId:"",prefix:void 0}}_e.Counterparty={encode(Wt,St=nt.Writer.create()){return Wt.clientId!==""&&St.uint32(10).string(Wt.clientId),Wt.connectionId!==""&&St.uint32(18).string(Wt.connectionId),Wt.prefix!==void 0&&Vr.MerklePrefix.encode(Wt.prefix,St.uint32(26).fork()).ldelim(),St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=ht();for(;Ot.pos>>3){case 1:go.clientId=Ot.string();break;case 2:go.connectionId=Ot.string();break;case 3:go.prefix=Vr.MerklePrefix.decode(Ot,Ot.uint32());break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{clientId:(0,tt.isSet)(Wt.clientId)?String(Wt.clientId):"",connectionId:(0,tt.isSet)(Wt.connectionId)?String(Wt.connectionId):"",prefix:(0,tt.isSet)(Wt.prefix)?Vr.MerklePrefix.fromJSON(Wt.prefix):void 0}},toJSON(Wt){const St={};return Wt.clientId!==void 0&&(St.clientId=Wt.clientId),Wt.connectionId!==void 0&&(St.connectionId=Wt.connectionId),Wt.prefix!==void 0&&(St.prefix=Wt.prefix?Vr.MerklePrefix.toJSON(Wt.prefix):void 0),St},fromPartial(Wt){const St=ht();return St.clientId=Wt.clientId??"",St.connectionId=Wt.connectionId??"",St.prefix=Wt.prefix!==void 0&&Wt.prefix!==null?Vr.MerklePrefix.fromPartial(Wt.prefix):void 0,St}};function po(){return{paths:[]}}_e.ClientPaths={encode(Wt,St=nt.Writer.create()){for(const Ot of Wt.paths)St.uint32(10).string(Ot);return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=po();for(;Ot.pos>>3){case 1:go.paths.push(Ot.string());break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{paths:Array.isArray(Wt==null?void 0:Wt.paths)?Wt.paths.map(St=>String(St)):[]}},toJSON(Wt){const St={};return Wt.paths?St.paths=Wt.paths.map(Ot=>Ot):St.paths=[],St},fromPartial(Wt){var Ot;const St=po();return St.paths=((Ot=Wt.paths)==null?void 0:Ot.map(uo=>uo))||[],St}};function no(){return{clientId:"",paths:[]}}_e.ConnectionPaths={encode(Wt,St=nt.Writer.create()){Wt.clientId!==""&&St.uint32(10).string(Wt.clientId);for(const Ot of Wt.paths)St.uint32(18).string(Ot);return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=no();for(;Ot.pos>>3){case 1:go.clientId=Ot.string();break;case 2:go.paths.push(Ot.string());break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{clientId:(0,tt.isSet)(Wt.clientId)?String(Wt.clientId):"",paths:Array.isArray(Wt==null?void 0:Wt.paths)?Wt.paths.map(St=>String(St)):[]}},toJSON(Wt){const St={};return Wt.clientId!==void 0&&(St.clientId=Wt.clientId),Wt.paths?St.paths=Wt.paths.map(Ot=>Ot):St.paths=[],St},fromPartial(Wt){var Ot;const St=no();return St.clientId=Wt.clientId??"",St.paths=((Ot=Wt.paths)==null?void 0:Ot.map(uo=>uo))||[],St}};function Nt(){return{identifier:"",features:[]}}_e.Version={encode(Wt,St=nt.Writer.create()){Wt.identifier!==""&&St.uint32(10).string(Wt.identifier);for(const Ot of Wt.features)St.uint32(18).string(Ot);return St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=Nt();for(;Ot.pos>>3){case 1:go.identifier=Ot.string();break;case 2:go.features.push(Ot.string());break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{identifier:(0,tt.isSet)(Wt.identifier)?String(Wt.identifier):"",features:Array.isArray(Wt==null?void 0:Wt.features)?Wt.features.map(St=>String(St)):[]}},toJSON(Wt){const St={};return Wt.identifier!==void 0&&(St.identifier=Wt.identifier),Wt.features?St.features=Wt.features.map(Ot=>Ot):St.features=[],St},fromPartial(Wt){var Ot;const St=Nt();return St.identifier=Wt.identifier??"",St.features=((Ot=Wt.features)==null?void 0:Ot.map(uo=>uo))||[],St}};function eo(){return{maxExpectedTimePerBlock:tt.Long.UZERO}}_e.Params={encode(Wt,St=nt.Writer.create()){return Wt.maxExpectedTimePerBlock.isZero()||St.uint32(8).uint64(Wt.maxExpectedTimePerBlock),St},decode(Wt,St){const Ot=Wt instanceof nt.Reader?Wt:new nt.Reader(Wt);let uo=St===void 0?Ot.len:Ot.pos+St;const go=eo();for(;Ot.pos>>3){case 1:go.maxExpectedTimePerBlock=Ot.uint64();break;default:Ot.skipType(bo&7);break}}return go},fromJSON(Wt){return{maxExpectedTimePerBlock:(0,tt.isSet)(Wt.maxExpectedTimePerBlock)?tt.Long.fromValue(Wt.maxExpectedTimePerBlock):tt.Long.UZERO}},toJSON(Wt){const St={};return Wt.maxExpectedTimePerBlock!==void 0&&(St.maxExpectedTimePerBlock=(Wt.maxExpectedTimePerBlock||tt.Long.UZERO).toString()),St},fromPartial(Wt){const St=eo();return St.maxExpectedTimePerBlock=Wt.maxExpectedTimePerBlock!==void 0&&Wt.maxExpectedTimePerBlock!==null?tt.Long.fromValue(Wt.maxExpectedTimePerBlock):tt.Long.UZERO,St}}}(connection),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,Ot,uo,go){go===void 0&&(go=uo);var bo=Object.getOwnPropertyDescriptor(Ot,uo);(!bo||("get"in bo?!Ot.__esModule:bo.writable||bo.configurable))&&(bo={enumerable:!0,get:function(){return Ot[uo]}}),Object.defineProperty(St,go,bo)}:function(St,Ot,uo,go){go===void 0&&(go=uo),St[go]=Ot[uo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,Ot){Object.defineProperty(St,"default",{enumerable:!0,value:Ot})}:function(St,Ot){St.default=Ot}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var Ot={};if(St!=null)for(var uo in St)uo!=="default"&&Object.prototype.hasOwnProperty.call(St,uo)&&cr(Ot,St,uo);return gr(Ot,St),Ot};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgConnectionOpenConfirmResponse=_e.MsgConnectionOpenConfirm=_e.MsgConnectionOpenAckResponse=_e.MsgConnectionOpenAck=_e.MsgConnectionOpenTryResponse=_e.MsgConnectionOpenTry=_e.MsgConnectionOpenInitResponse=_e.MsgConnectionOpenInit=_e.protobufPackage=void 0;const Vr=connection,tt=any,nt=client,st=helpers,dt=Cr(minimal);_e.protobufPackage="ibc.core.connection.v1";function kt(){return{clientId:"",counterparty:void 0,version:void 0,delayPeriod:st.Long.UZERO,signer:""}}_e.MsgConnectionOpenInit={encode(St,Ot=dt.Writer.create()){return St.clientId!==""&&Ot.uint32(10).string(St.clientId),St.counterparty!==void 0&&Vr.Counterparty.encode(St.counterparty,Ot.uint32(18).fork()).ldelim(),St.version!==void 0&&Vr.Version.encode(St.version,Ot.uint32(26).fork()).ldelim(),St.delayPeriod.isZero()||Ot.uint32(32).uint64(St.delayPeriod),St.signer!==""&&Ot.uint32(42).string(St.signer),Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=kt();for(;uo.pos>>3){case 1:bo.clientId=uo.string();break;case 2:bo.counterparty=Vr.Counterparty.decode(uo,uo.uint32());break;case 3:bo.version=Vr.Version.decode(uo,uo.uint32());break;case 4:bo.delayPeriod=uo.uint64();break;case 5:bo.signer=uo.string();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{clientId:(0,st.isSet)(St.clientId)?String(St.clientId):"",counterparty:(0,st.isSet)(St.counterparty)?Vr.Counterparty.fromJSON(St.counterparty):void 0,version:(0,st.isSet)(St.version)?Vr.Version.fromJSON(St.version):void 0,delayPeriod:(0,st.isSet)(St.delayPeriod)?st.Long.fromValue(St.delayPeriod):st.Long.UZERO,signer:(0,st.isSet)(St.signer)?String(St.signer):""}},toJSON(St){const Ot={};return St.clientId!==void 0&&(Ot.clientId=St.clientId),St.counterparty!==void 0&&(Ot.counterparty=St.counterparty?Vr.Counterparty.toJSON(St.counterparty):void 0),St.version!==void 0&&(Ot.version=St.version?Vr.Version.toJSON(St.version):void 0),St.delayPeriod!==void 0&&(Ot.delayPeriod=(St.delayPeriod||st.Long.UZERO).toString()),St.signer!==void 0&&(Ot.signer=St.signer),Ot},fromPartial(St){const Ot=kt();return Ot.clientId=St.clientId??"",Ot.counterparty=St.counterparty!==void 0&&St.counterparty!==null?Vr.Counterparty.fromPartial(St.counterparty):void 0,Ot.version=St.version!==void 0&&St.version!==null?Vr.Version.fromPartial(St.version):void 0,Ot.delayPeriod=St.delayPeriod!==void 0&&St.delayPeriod!==null?st.Long.fromValue(St.delayPeriod):st.Long.UZERO,Ot.signer=St.signer??"",Ot}};function qt(){return{}}_e.MsgConnectionOpenInitResponse={encode(St,Ot=dt.Writer.create()){return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=qt();for(;uo.pos>>3){default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{}},toJSON(St){return{}},fromPartial(St){return qt()}};function ro(){return{clientId:"",previousConnectionId:"",clientState:void 0,counterparty:void 0,delayPeriod:st.Long.UZERO,counterpartyVersions:[],proofHeight:void 0,proofInit:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:void 0,signer:"",hostConsensusStateProof:new Uint8Array}}_e.MsgConnectionOpenTry={encode(St,Ot=dt.Writer.create()){St.clientId!==""&&Ot.uint32(10).string(St.clientId),St.previousConnectionId!==""&&Ot.uint32(18).string(St.previousConnectionId),St.clientState!==void 0&&tt.Any.encode(St.clientState,Ot.uint32(26).fork()).ldelim(),St.counterparty!==void 0&&Vr.Counterparty.encode(St.counterparty,Ot.uint32(34).fork()).ldelim(),St.delayPeriod.isZero()||Ot.uint32(40).uint64(St.delayPeriod);for(const uo of St.counterpartyVersions)Vr.Version.encode(uo,Ot.uint32(50).fork()).ldelim();return St.proofHeight!==void 0&&nt.Height.encode(St.proofHeight,Ot.uint32(58).fork()).ldelim(),St.proofInit.length!==0&&Ot.uint32(66).bytes(St.proofInit),St.proofClient.length!==0&&Ot.uint32(74).bytes(St.proofClient),St.proofConsensus.length!==0&&Ot.uint32(82).bytes(St.proofConsensus),St.consensusHeight!==void 0&&nt.Height.encode(St.consensusHeight,Ot.uint32(90).fork()).ldelim(),St.signer!==""&&Ot.uint32(98).string(St.signer),St.hostConsensusStateProof.length!==0&&Ot.uint32(106).bytes(St.hostConsensusStateProof),Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=ro();for(;uo.pos>>3){case 1:bo.clientId=uo.string();break;case 2:bo.previousConnectionId=uo.string();break;case 3:bo.clientState=tt.Any.decode(uo,uo.uint32());break;case 4:bo.counterparty=Vr.Counterparty.decode(uo,uo.uint32());break;case 5:bo.delayPeriod=uo.uint64();break;case 6:bo.counterpartyVersions.push(Vr.Version.decode(uo,uo.uint32()));break;case 7:bo.proofHeight=nt.Height.decode(uo,uo.uint32());break;case 8:bo.proofInit=uo.bytes();break;case 9:bo.proofClient=uo.bytes();break;case 10:bo.proofConsensus=uo.bytes();break;case 11:bo.consensusHeight=nt.Height.decode(uo,uo.uint32());break;case 12:bo.signer=uo.string();break;case 13:bo.hostConsensusStateProof=uo.bytes();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{clientId:(0,st.isSet)(St.clientId)?String(St.clientId):"",previousConnectionId:(0,st.isSet)(St.previousConnectionId)?String(St.previousConnectionId):"",clientState:(0,st.isSet)(St.clientState)?tt.Any.fromJSON(St.clientState):void 0,counterparty:(0,st.isSet)(St.counterparty)?Vr.Counterparty.fromJSON(St.counterparty):void 0,delayPeriod:(0,st.isSet)(St.delayPeriod)?st.Long.fromValue(St.delayPeriod):st.Long.UZERO,counterpartyVersions:Array.isArray(St==null?void 0:St.counterpartyVersions)?St.counterpartyVersions.map(Ot=>Vr.Version.fromJSON(Ot)):[],proofHeight:(0,st.isSet)(St.proofHeight)?nt.Height.fromJSON(St.proofHeight):void 0,proofInit:(0,st.isSet)(St.proofInit)?(0,st.bytesFromBase64)(St.proofInit):new Uint8Array,proofClient:(0,st.isSet)(St.proofClient)?(0,st.bytesFromBase64)(St.proofClient):new Uint8Array,proofConsensus:(0,st.isSet)(St.proofConsensus)?(0,st.bytesFromBase64)(St.proofConsensus):new Uint8Array,consensusHeight:(0,st.isSet)(St.consensusHeight)?nt.Height.fromJSON(St.consensusHeight):void 0,signer:(0,st.isSet)(St.signer)?String(St.signer):"",hostConsensusStateProof:(0,st.isSet)(St.hostConsensusStateProof)?(0,st.bytesFromBase64)(St.hostConsensusStateProof):new Uint8Array}},toJSON(St){const Ot={};return St.clientId!==void 0&&(Ot.clientId=St.clientId),St.previousConnectionId!==void 0&&(Ot.previousConnectionId=St.previousConnectionId),St.clientState!==void 0&&(Ot.clientState=St.clientState?tt.Any.toJSON(St.clientState):void 0),St.counterparty!==void 0&&(Ot.counterparty=St.counterparty?Vr.Counterparty.toJSON(St.counterparty):void 0),St.delayPeriod!==void 0&&(Ot.delayPeriod=(St.delayPeriod||st.Long.UZERO).toString()),St.counterpartyVersions?Ot.counterpartyVersions=St.counterpartyVersions.map(uo=>uo?Vr.Version.toJSON(uo):void 0):Ot.counterpartyVersions=[],St.proofHeight!==void 0&&(Ot.proofHeight=St.proofHeight?nt.Height.toJSON(St.proofHeight):void 0),St.proofInit!==void 0&&(Ot.proofInit=(0,st.base64FromBytes)(St.proofInit!==void 0?St.proofInit:new Uint8Array)),St.proofClient!==void 0&&(Ot.proofClient=(0,st.base64FromBytes)(St.proofClient!==void 0?St.proofClient:new Uint8Array)),St.proofConsensus!==void 0&&(Ot.proofConsensus=(0,st.base64FromBytes)(St.proofConsensus!==void 0?St.proofConsensus:new Uint8Array)),St.consensusHeight!==void 0&&(Ot.consensusHeight=St.consensusHeight?nt.Height.toJSON(St.consensusHeight):void 0),St.signer!==void 0&&(Ot.signer=St.signer),St.hostConsensusStateProof!==void 0&&(Ot.hostConsensusStateProof=(0,st.base64FromBytes)(St.hostConsensusStateProof!==void 0?St.hostConsensusStateProof:new Uint8Array)),Ot},fromPartial(St){var uo;const Ot=ro();return Ot.clientId=St.clientId??"",Ot.previousConnectionId=St.previousConnectionId??"",Ot.clientState=St.clientState!==void 0&&St.clientState!==null?tt.Any.fromPartial(St.clientState):void 0,Ot.counterparty=St.counterparty!==void 0&&St.counterparty!==null?Vr.Counterparty.fromPartial(St.counterparty):void 0,Ot.delayPeriod=St.delayPeriod!==void 0&&St.delayPeriod!==null?st.Long.fromValue(St.delayPeriod):st.Long.UZERO,Ot.counterpartyVersions=((uo=St.counterpartyVersions)==null?void 0:uo.map(go=>Vr.Version.fromPartial(go)))||[],Ot.proofHeight=St.proofHeight!==void 0&&St.proofHeight!==null?nt.Height.fromPartial(St.proofHeight):void 0,Ot.proofInit=St.proofInit??new Uint8Array,Ot.proofClient=St.proofClient??new Uint8Array,Ot.proofConsensus=St.proofConsensus??new Uint8Array,Ot.consensusHeight=St.consensusHeight!==void 0&&St.consensusHeight!==null?nt.Height.fromPartial(St.consensusHeight):void 0,Ot.signer=St.signer??"",Ot.hostConsensusStateProof=St.hostConsensusStateProof??new Uint8Array,Ot}};function ht(){return{}}_e.MsgConnectionOpenTryResponse={encode(St,Ot=dt.Writer.create()){return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=ht();for(;uo.pos>>3){default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{}},toJSON(St){return{}},fromPartial(St){return ht()}};function po(){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}}_e.MsgConnectionOpenAck={encode(St,Ot=dt.Writer.create()){return St.connectionId!==""&&Ot.uint32(10).string(St.connectionId),St.counterpartyConnectionId!==""&&Ot.uint32(18).string(St.counterpartyConnectionId),St.version!==void 0&&Vr.Version.encode(St.version,Ot.uint32(26).fork()).ldelim(),St.clientState!==void 0&&tt.Any.encode(St.clientState,Ot.uint32(34).fork()).ldelim(),St.proofHeight!==void 0&&nt.Height.encode(St.proofHeight,Ot.uint32(42).fork()).ldelim(),St.proofTry.length!==0&&Ot.uint32(50).bytes(St.proofTry),St.proofClient.length!==0&&Ot.uint32(58).bytes(St.proofClient),St.proofConsensus.length!==0&&Ot.uint32(66).bytes(St.proofConsensus),St.consensusHeight!==void 0&&nt.Height.encode(St.consensusHeight,Ot.uint32(74).fork()).ldelim(),St.signer!==""&&Ot.uint32(82).string(St.signer),St.hostConsensusStateProof.length!==0&&Ot.uint32(90).bytes(St.hostConsensusStateProof),Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=po();for(;uo.pos>>3){case 1:bo.connectionId=uo.string();break;case 2:bo.counterpartyConnectionId=uo.string();break;case 3:bo.version=Vr.Version.decode(uo,uo.uint32());break;case 4:bo.clientState=tt.Any.decode(uo,uo.uint32());break;case 5:bo.proofHeight=nt.Height.decode(uo,uo.uint32());break;case 6:bo.proofTry=uo.bytes();break;case 7:bo.proofClient=uo.bytes();break;case 8:bo.proofConsensus=uo.bytes();break;case 9:bo.consensusHeight=nt.Height.decode(uo,uo.uint32());break;case 10:bo.signer=uo.string();break;case 11:bo.hostConsensusStateProof=uo.bytes();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{connectionId:(0,st.isSet)(St.connectionId)?String(St.connectionId):"",counterpartyConnectionId:(0,st.isSet)(St.counterpartyConnectionId)?String(St.counterpartyConnectionId):"",version:(0,st.isSet)(St.version)?Vr.Version.fromJSON(St.version):void 0,clientState:(0,st.isSet)(St.clientState)?tt.Any.fromJSON(St.clientState):void 0,proofHeight:(0,st.isSet)(St.proofHeight)?nt.Height.fromJSON(St.proofHeight):void 0,proofTry:(0,st.isSet)(St.proofTry)?(0,st.bytesFromBase64)(St.proofTry):new Uint8Array,proofClient:(0,st.isSet)(St.proofClient)?(0,st.bytesFromBase64)(St.proofClient):new Uint8Array,proofConsensus:(0,st.isSet)(St.proofConsensus)?(0,st.bytesFromBase64)(St.proofConsensus):new Uint8Array,consensusHeight:(0,st.isSet)(St.consensusHeight)?nt.Height.fromJSON(St.consensusHeight):void 0,signer:(0,st.isSet)(St.signer)?String(St.signer):"",hostConsensusStateProof:(0,st.isSet)(St.hostConsensusStateProof)?(0,st.bytesFromBase64)(St.hostConsensusStateProof):new Uint8Array}},toJSON(St){const Ot={};return St.connectionId!==void 0&&(Ot.connectionId=St.connectionId),St.counterpartyConnectionId!==void 0&&(Ot.counterpartyConnectionId=St.counterpartyConnectionId),St.version!==void 0&&(Ot.version=St.version?Vr.Version.toJSON(St.version):void 0),St.clientState!==void 0&&(Ot.clientState=St.clientState?tt.Any.toJSON(St.clientState):void 0),St.proofHeight!==void 0&&(Ot.proofHeight=St.proofHeight?nt.Height.toJSON(St.proofHeight):void 0),St.proofTry!==void 0&&(Ot.proofTry=(0,st.base64FromBytes)(St.proofTry!==void 0?St.proofTry:new Uint8Array)),St.proofClient!==void 0&&(Ot.proofClient=(0,st.base64FromBytes)(St.proofClient!==void 0?St.proofClient:new Uint8Array)),St.proofConsensus!==void 0&&(Ot.proofConsensus=(0,st.base64FromBytes)(St.proofConsensus!==void 0?St.proofConsensus:new Uint8Array)),St.consensusHeight!==void 0&&(Ot.consensusHeight=St.consensusHeight?nt.Height.toJSON(St.consensusHeight):void 0),St.signer!==void 0&&(Ot.signer=St.signer),St.hostConsensusStateProof!==void 0&&(Ot.hostConsensusStateProof=(0,st.base64FromBytes)(St.hostConsensusStateProof!==void 0?St.hostConsensusStateProof:new Uint8Array)),Ot},fromPartial(St){const Ot=po();return Ot.connectionId=St.connectionId??"",Ot.counterpartyConnectionId=St.counterpartyConnectionId??"",Ot.version=St.version!==void 0&&St.version!==null?Vr.Version.fromPartial(St.version):void 0,Ot.clientState=St.clientState!==void 0&&St.clientState!==null?tt.Any.fromPartial(St.clientState):void 0,Ot.proofHeight=St.proofHeight!==void 0&&St.proofHeight!==null?nt.Height.fromPartial(St.proofHeight):void 0,Ot.proofTry=St.proofTry??new Uint8Array,Ot.proofClient=St.proofClient??new Uint8Array,Ot.proofConsensus=St.proofConsensus??new Uint8Array,Ot.consensusHeight=St.consensusHeight!==void 0&&St.consensusHeight!==null?nt.Height.fromPartial(St.consensusHeight):void 0,Ot.signer=St.signer??"",Ot.hostConsensusStateProof=St.hostConsensusStateProof??new Uint8Array,Ot}};function no(){return{}}_e.MsgConnectionOpenAckResponse={encode(St,Ot=dt.Writer.create()){return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=no();for(;uo.pos>>3){default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{}},toJSON(St){return{}},fromPartial(St){return no()}};function Nt(){return{connectionId:"",proofAck:new Uint8Array,proofHeight:void 0,signer:""}}_e.MsgConnectionOpenConfirm={encode(St,Ot=dt.Writer.create()){return St.connectionId!==""&&Ot.uint32(10).string(St.connectionId),St.proofAck.length!==0&&Ot.uint32(18).bytes(St.proofAck),St.proofHeight!==void 0&&nt.Height.encode(St.proofHeight,Ot.uint32(26).fork()).ldelim(),St.signer!==""&&Ot.uint32(34).string(St.signer),Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=Nt();for(;uo.pos>>3){case 1:bo.connectionId=uo.string();break;case 2:bo.proofAck=uo.bytes();break;case 3:bo.proofHeight=nt.Height.decode(uo,uo.uint32());break;case 4:bo.signer=uo.string();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{connectionId:(0,st.isSet)(St.connectionId)?String(St.connectionId):"",proofAck:(0,st.isSet)(St.proofAck)?(0,st.bytesFromBase64)(St.proofAck):new Uint8Array,proofHeight:(0,st.isSet)(St.proofHeight)?nt.Height.fromJSON(St.proofHeight):void 0,signer:(0,st.isSet)(St.signer)?String(St.signer):""}},toJSON(St){const Ot={};return St.connectionId!==void 0&&(Ot.connectionId=St.connectionId),St.proofAck!==void 0&&(Ot.proofAck=(0,st.base64FromBytes)(St.proofAck!==void 0?St.proofAck:new Uint8Array)),St.proofHeight!==void 0&&(Ot.proofHeight=St.proofHeight?nt.Height.toJSON(St.proofHeight):void 0),St.signer!==void 0&&(Ot.signer=St.signer),Ot},fromPartial(St){const Ot=Nt();return Ot.connectionId=St.connectionId??"",Ot.proofAck=St.proofAck??new Uint8Array,Ot.proofHeight=St.proofHeight!==void 0&&St.proofHeight!==null?nt.Height.fromPartial(St.proofHeight):void 0,Ot.signer=St.signer??"",Ot}};function eo(){return{}}_e.MsgConnectionOpenConfirmResponse={encode(St,Ot=dt.Writer.create()){return Ot},decode(St,Ot){const uo=St instanceof dt.Reader?St:new dt.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=eo();for(;uo.pos>>3){default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{}},toJSON(St){return{}},fromPartial(St){return eo()}};class Wt{constructor(Ot){this.rpc=Ot,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(Ot){const uo=_e.MsgConnectionOpenInit.encode(Ot).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",uo).then(go=>_e.MsgConnectionOpenInitResponse.decode(new dt.Reader(go)))}ConnectionOpenTry(Ot){const uo=_e.MsgConnectionOpenTry.encode(Ot).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",uo).then(go=>_e.MsgConnectionOpenTryResponse.decode(new dt.Reader(go)))}ConnectionOpenAck(Ot){const uo=_e.MsgConnectionOpenAck.encode(Ot).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",uo).then(go=>_e.MsgConnectionOpenAckResponse.decode(new dt.Reader(go)))}ConnectionOpenConfirm(Ot){const uo=_e.MsgConnectionOpenConfirm.encode(Ot).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",uo).then(go=>_e.MsgConnectionOpenConfirmResponse.decode(new dt.Reader(go)))}}_e.MsgClientImpl=Wt}(tx$3),Object.defineProperty(messages$4,"__esModule",{value:!0}),messages$4.isMsgTransferEncodeObject=messages$4.ibcTypes=void 0;const tx_1$6=tx$6,tx_2$2=tx$5,tx_3$1=tx$4,tx_4$1=tx$3;messages$4.ibcTypes=[["/ibc.applications.transfer.v1.MsgTransfer",tx_1$6.MsgTransfer],["/ibc.core.channel.v1.MsgAcknowledgement",tx_2$2.MsgAcknowledgement],["/ibc.core.channel.v1.MsgChannelCloseConfirm",tx_2$2.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",tx_2$2.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelOpenAck",tx_2$2.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",tx_2$2.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelOpenInit",tx_2$2.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",tx_2$2.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgRecvPacket",tx_2$2.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",tx_2$2.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",tx_2$2.MsgTimeoutOnClose],["/ibc.core.client.v1.MsgCreateClient",tx_3$1.MsgCreateClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",tx_3$1.MsgSubmitMisbehaviour],["/ibc.core.client.v1.MsgUpdateClient",tx_3$1.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",tx_3$1.MsgUpgradeClient],["/ibc.core.connection.v1.MsgConnectionOpenAck",tx_4$1.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",tx_4$1.MsgConnectionOpenConfirm],["/ibc.core.connection.v1.MsgConnectionOpenInit",tx_4$1.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",tx_4$1.MsgConnectionOpenTry]];function isMsgTransferEncodeObject(_e){return _e.typeUrl==="/ibc.applications.transfer.v1.MsgTransfer"}messages$4.isMsgTransferEncodeObject=isMsgTransferEncodeObject;var queries$5={},query$7={},transfer={},__createBinding$a=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$a=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$a=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$a(cr,_e,gr);return __setModuleDefault$a(cr,_e),cr};Object.defineProperty(transfer,"__esModule",{value:!0}),transfer.Params=transfer.DenomTrace=transfer.protobufPackage=void 0;const _m0$5=__importStar$a(minimal),helpers_1$5=helpers;transfer.protobufPackage="ibc.applications.transfer.v1";function createBaseDenomTrace(){return{path:"",baseDenom:""}}transfer.DenomTrace={encode(_e,cr=_m0$5.Writer.create()){return _e.path!==""&&cr.uint32(10).string(_e.path),_e.baseDenom!==""&&cr.uint32(18).string(_e.baseDenom),cr},decode(_e,cr){const gr=_e instanceof _m0$5.Reader?_e:new _m0$5.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseDenomTrace();for(;gr.pos>>3){case 1:Vr.path=gr.string();break;case 2:Vr.baseDenom=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{path:(0,helpers_1$5.isSet)(_e.path)?String(_e.path):"",baseDenom:(0,helpers_1$5.isSet)(_e.baseDenom)?String(_e.baseDenom):""}},toJSON(_e){const cr={};return _e.path!==void 0&&(cr.path=_e.path),_e.baseDenom!==void 0&&(cr.baseDenom=_e.baseDenom),cr},fromPartial(_e){const cr=createBaseDenomTrace();return cr.path=_e.path??"",cr.baseDenom=_e.baseDenom??"",cr}};function createBaseParams$2(){return{sendEnabled:!1,receiveEnabled:!1}}transfer.Params={encode(_e,cr=_m0$5.Writer.create()){return _e.sendEnabled===!0&&cr.uint32(8).bool(_e.sendEnabled),_e.receiveEnabled===!0&&cr.uint32(16).bool(_e.receiveEnabled),cr},decode(_e,cr){const gr=_e instanceof _m0$5.Reader?_e:new _m0$5.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseParams$2();for(;gr.pos>>3){case 1:Vr.sendEnabled=gr.bool();break;case 2:Vr.receiveEnabled=gr.bool();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{sendEnabled:(0,helpers_1$5.isSet)(_e.sendEnabled)?!!_e.sendEnabled:!1,receiveEnabled:(0,helpers_1$5.isSet)(_e.receiveEnabled)?!!_e.receiveEnabled:!1}},toJSON(_e){const cr={};return _e.sendEnabled!==void 0&&(cr.sendEnabled=_e.sendEnabled),_e.receiveEnabled!==void 0&&(cr.receiveEnabled=_e.receiveEnabled),cr},fromPartial(_e){const cr=createBaseParams$2();return cr.sendEnabled=_e.sendEnabled??!1,cr.receiveEnabled=_e.receiveEnabled??!1,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ot,uo,go,bo){bo===void 0&&(bo=go);var oo=Object.getOwnPropertyDescriptor(uo,go);(!oo||("get"in oo?!uo.__esModule:oo.writable||oo.configurable))&&(oo={enumerable:!0,get:function(){return uo[go]}}),Object.defineProperty(Ot,bo,oo)}:function(Ot,uo,go,bo){bo===void 0&&(bo=go),Ot[bo]=uo[go]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Ot,uo){Object.defineProperty(Ot,"default",{enumerable:!0,value:uo})}:function(Ot,uo){Ot.default=uo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Ot){if(Ot&&Ot.__esModule)return Ot;var uo={};if(Ot!=null)for(var go in Ot)go!=="default"&&Object.prototype.hasOwnProperty.call(Ot,go)&&cr(uo,Ot,go);return gr(uo,Ot),uo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryEscrowAddressResponse=_e.QueryEscrowAddressRequest=_e.QueryDenomHashResponse=_e.QueryDenomHashRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.QueryDenomTracesResponse=_e.QueryDenomTracesRequest=_e.QueryDenomTraceResponse=_e.QueryDenomTraceRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=transfer,nt=Cr(minimal),st=helpers;_e.protobufPackage="ibc.applications.transfer.v1";function dt(){return{hash:""}}_e.QueryDenomTraceRequest={encode(Ot,uo=nt.Writer.create()){return Ot.hash!==""&&uo.uint32(10).string(Ot.hash),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=dt();for(;go.pos>>3){case 1:oo.hash=go.string();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{hash:(0,st.isSet)(Ot.hash)?String(Ot.hash):""}},toJSON(Ot){const uo={};return Ot.hash!==void 0&&(uo.hash=Ot.hash),uo},fromPartial(Ot){const uo=dt();return uo.hash=Ot.hash??"",uo}};function kt(){return{denomTrace:void 0}}_e.QueryDenomTraceResponse={encode(Ot,uo=nt.Writer.create()){return Ot.denomTrace!==void 0&&tt.DenomTrace.encode(Ot.denomTrace,uo.uint32(10).fork()).ldelim(),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=kt();for(;go.pos>>3){case 1:oo.denomTrace=tt.DenomTrace.decode(go,go.uint32());break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{denomTrace:(0,st.isSet)(Ot.denomTrace)?tt.DenomTrace.fromJSON(Ot.denomTrace):void 0}},toJSON(Ot){const uo={};return Ot.denomTrace!==void 0&&(uo.denomTrace=Ot.denomTrace?tt.DenomTrace.toJSON(Ot.denomTrace):void 0),uo},fromPartial(Ot){const uo=kt();return uo.denomTrace=Ot.denomTrace!==void 0&&Ot.denomTrace!==null?tt.DenomTrace.fromPartial(Ot.denomTrace):void 0,uo}};function qt(){return{pagination:void 0}}_e.QueryDenomTracesRequest={encode(Ot,uo=nt.Writer.create()){return Ot.pagination!==void 0&&Vr.PageRequest.encode(Ot.pagination,uo.uint32(10).fork()).ldelim(),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=qt();for(;go.pos>>3){case 1:oo.pagination=Vr.PageRequest.decode(go,go.uint32());break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{pagination:(0,st.isSet)(Ot.pagination)?Vr.PageRequest.fromJSON(Ot.pagination):void 0}},toJSON(Ot){const uo={};return Ot.pagination!==void 0&&(uo.pagination=Ot.pagination?Vr.PageRequest.toJSON(Ot.pagination):void 0),uo},fromPartial(Ot){const uo=qt();return uo.pagination=Ot.pagination!==void 0&&Ot.pagination!==null?Vr.PageRequest.fromPartial(Ot.pagination):void 0,uo}};function ro(){return{denomTraces:[],pagination:void 0}}_e.QueryDenomTracesResponse={encode(Ot,uo=nt.Writer.create()){for(const go of Ot.denomTraces)tt.DenomTrace.encode(go,uo.uint32(10).fork()).ldelim();return Ot.pagination!==void 0&&Vr.PageResponse.encode(Ot.pagination,uo.uint32(18).fork()).ldelim(),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=ro();for(;go.pos>>3){case 1:oo.denomTraces.push(tt.DenomTrace.decode(go,go.uint32()));break;case 2:oo.pagination=Vr.PageResponse.decode(go,go.uint32());break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{denomTraces:Array.isArray(Ot==null?void 0:Ot.denomTraces)?Ot.denomTraces.map(uo=>tt.DenomTrace.fromJSON(uo)):[],pagination:(0,st.isSet)(Ot.pagination)?Vr.PageResponse.fromJSON(Ot.pagination):void 0}},toJSON(Ot){const uo={};return Ot.denomTraces?uo.denomTraces=Ot.denomTraces.map(go=>go?tt.DenomTrace.toJSON(go):void 0):uo.denomTraces=[],Ot.pagination!==void 0&&(uo.pagination=Ot.pagination?Vr.PageResponse.toJSON(Ot.pagination):void 0),uo},fromPartial(Ot){var go;const uo=ro();return uo.denomTraces=((go=Ot.denomTraces)==null?void 0:go.map(bo=>tt.DenomTrace.fromPartial(bo)))||[],uo.pagination=Ot.pagination!==void 0&&Ot.pagination!==null?Vr.PageResponse.fromPartial(Ot.pagination):void 0,uo}};function ht(){return{}}_e.QueryParamsRequest={encode(Ot,uo=nt.Writer.create()){return uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=ht();for(;go.pos>>3){default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{}},toJSON(Ot){return{}},fromPartial(Ot){return ht()}};function po(){return{params:void 0}}_e.QueryParamsResponse={encode(Ot,uo=nt.Writer.create()){return Ot.params!==void 0&&tt.Params.encode(Ot.params,uo.uint32(10).fork()).ldelim(),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=po();for(;go.pos>>3){case 1:oo.params=tt.Params.decode(go,go.uint32());break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{params:(0,st.isSet)(Ot.params)?tt.Params.fromJSON(Ot.params):void 0}},toJSON(Ot){const uo={};return Ot.params!==void 0&&(uo.params=Ot.params?tt.Params.toJSON(Ot.params):void 0),uo},fromPartial(Ot){const uo=po();return uo.params=Ot.params!==void 0&&Ot.params!==null?tt.Params.fromPartial(Ot.params):void 0,uo}};function no(){return{trace:""}}_e.QueryDenomHashRequest={encode(Ot,uo=nt.Writer.create()){return Ot.trace!==""&&uo.uint32(10).string(Ot.trace),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=no();for(;go.pos>>3){case 1:oo.trace=go.string();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{trace:(0,st.isSet)(Ot.trace)?String(Ot.trace):""}},toJSON(Ot){const uo={};return Ot.trace!==void 0&&(uo.trace=Ot.trace),uo},fromPartial(Ot){const uo=no();return uo.trace=Ot.trace??"",uo}};function Nt(){return{hash:""}}_e.QueryDenomHashResponse={encode(Ot,uo=nt.Writer.create()){return Ot.hash!==""&&uo.uint32(10).string(Ot.hash),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=Nt();for(;go.pos>>3){case 1:oo.hash=go.string();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{hash:(0,st.isSet)(Ot.hash)?String(Ot.hash):""}},toJSON(Ot){const uo={};return Ot.hash!==void 0&&(uo.hash=Ot.hash),uo},fromPartial(Ot){const uo=Nt();return uo.hash=Ot.hash??"",uo}};function eo(){return{portId:"",channelId:""}}_e.QueryEscrowAddressRequest={encode(Ot,uo=nt.Writer.create()){return Ot.portId!==""&&uo.uint32(10).string(Ot.portId),Ot.channelId!==""&&uo.uint32(18).string(Ot.channelId),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=eo();for(;go.pos>>3){case 1:oo.portId=go.string();break;case 2:oo.channelId=go.string();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{portId:(0,st.isSet)(Ot.portId)?String(Ot.portId):"",channelId:(0,st.isSet)(Ot.channelId)?String(Ot.channelId):""}},toJSON(Ot){const uo={};return Ot.portId!==void 0&&(uo.portId=Ot.portId),Ot.channelId!==void 0&&(uo.channelId=Ot.channelId),uo},fromPartial(Ot){const uo=eo();return uo.portId=Ot.portId??"",uo.channelId=Ot.channelId??"",uo}};function Wt(){return{escrowAddress:""}}_e.QueryEscrowAddressResponse={encode(Ot,uo=nt.Writer.create()){return Ot.escrowAddress!==""&&uo.uint32(10).string(Ot.escrowAddress),uo},decode(Ot,uo){const go=Ot instanceof nt.Reader?Ot:new nt.Reader(Ot);let bo=uo===void 0?go.len:go.pos+uo;const oo=Wt();for(;go.pos>>3){case 1:oo.escrowAddress=go.string();break;default:go.skipType(Ro&7);break}}return oo},fromJSON(Ot){return{escrowAddress:(0,st.isSet)(Ot.escrowAddress)?String(Ot.escrowAddress):""}},toJSON(Ot){const uo={};return Ot.escrowAddress!==void 0&&(uo.escrowAddress=Ot.escrowAddress),uo},fromPartial(Ot){const uo=Wt();return uo.escrowAddress=Ot.escrowAddress??"",uo}};class St{constructor(uo){this.rpc=uo,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(uo){const go=_e.QueryDenomTraceRequest.encode(uo).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTrace",go).then(bo=>_e.QueryDenomTraceResponse.decode(new nt.Reader(bo)))}DenomTraces(uo={pagination:void 0}){const go=_e.QueryDenomTracesRequest.encode(uo).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomTraces",go).then(bo=>_e.QueryDenomTracesResponse.decode(new nt.Reader(bo)))}Params(uo={}){const go=_e.QueryParamsRequest.encode(uo).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","Params",go).then(bo=>_e.QueryParamsResponse.decode(new nt.Reader(bo)))}DenomHash(uo){const go=_e.QueryDenomHashRequest.encode(uo).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","DenomHash",go).then(bo=>_e.QueryDenomHashResponse.decode(new nt.Reader(bo)))}EscrowAddress(uo){const go=_e.QueryEscrowAddressRequest.encode(uo).finish();return this.rpc.request("ibc.applications.transfer.v1.Query","EscrowAddress",go).then(bo=>_e.QueryEscrowAddressResponse.decode(new nt.Reader(bo)))}}_e.QueryClientImpl=St}(query$7);var query$6={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Tt,vo,Co,xo){xo===void 0&&(xo=Co);var Po=Object.getOwnPropertyDescriptor(vo,Co);(!Po||("get"in Po?!vo.__esModule:Po.writable||Po.configurable))&&(Po={enumerable:!0,get:function(){return vo[Co]}}),Object.defineProperty(Tt,xo,Po)}:function(Tt,vo,Co,xo){xo===void 0&&(xo=Co),Tt[xo]=vo[Co]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Tt,vo){Object.defineProperty(Tt,"default",{enumerable:!0,value:vo})}:function(Tt,vo){Tt.default=vo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Tt){if(Tt&&Tt.__esModule)return Tt;var vo={};if(Tt!=null)for(var Co in Tt)Co!=="default"&&Object.prototype.hasOwnProperty.call(Tt,Co)&&cr(vo,Tt,Co);return gr(vo,Tt),vo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryNextSequenceReceiveResponse=_e.QueryNextSequenceReceiveRequest=_e.QueryUnreceivedAcksResponse=_e.QueryUnreceivedAcksRequest=_e.QueryUnreceivedPacketsResponse=_e.QueryUnreceivedPacketsRequest=_e.QueryPacketAcknowledgementsResponse=_e.QueryPacketAcknowledgementsRequest=_e.QueryPacketAcknowledgementResponse=_e.QueryPacketAcknowledgementRequest=_e.QueryPacketReceiptResponse=_e.QueryPacketReceiptRequest=_e.QueryPacketCommitmentsResponse=_e.QueryPacketCommitmentsRequest=_e.QueryPacketCommitmentResponse=_e.QueryPacketCommitmentRequest=_e.QueryChannelConsensusStateResponse=_e.QueryChannelConsensusStateRequest=_e.QueryChannelClientStateResponse=_e.QueryChannelClientStateRequest=_e.QueryConnectionChannelsResponse=_e.QueryConnectionChannelsRequest=_e.QueryChannelsResponse=_e.QueryChannelsRequest=_e.QueryChannelResponse=_e.QueryChannelRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=channel,nt=client,st=any,dt=helpers,kt=Cr(minimal);_e.protobufPackage="ibc.core.channel.v1";function qt(){return{portId:"",channelId:""}}_e.QueryChannelRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=qt();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):""}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),vo},fromPartial(Tt){const vo=qt();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo}};function ro(){return{channel:void 0,proof:new Uint8Array,proofHeight:void 0}}_e.QueryChannelResponse={encode(Tt,vo=kt.Writer.create()){return Tt.channel!==void 0&&tt.Channel.encode(Tt.channel,vo.uint32(10).fork()).ldelim(),Tt.proof.length!==0&&vo.uint32(18).bytes(Tt.proof),Tt.proofHeight!==void 0&&nt.Height.encode(Tt.proofHeight,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=ro();for(;Co.pos>>3){case 1:Po.channel=tt.Channel.decode(Co,Co.uint32());break;case 2:Po.proof=Co.bytes();break;case 3:Po.proofHeight=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{channel:(0,dt.isSet)(Tt.channel)?tt.Channel.fromJSON(Tt.channel):void 0,proof:(0,dt.isSet)(Tt.proof)?(0,dt.bytesFromBase64)(Tt.proof):new Uint8Array,proofHeight:(0,dt.isSet)(Tt.proofHeight)?nt.Height.fromJSON(Tt.proofHeight):void 0}},toJSON(Tt){const vo={};return Tt.channel!==void 0&&(vo.channel=Tt.channel?tt.Channel.toJSON(Tt.channel):void 0),Tt.proof!==void 0&&(vo.proof=(0,dt.base64FromBytes)(Tt.proof!==void 0?Tt.proof:new Uint8Array)),Tt.proofHeight!==void 0&&(vo.proofHeight=Tt.proofHeight?nt.Height.toJSON(Tt.proofHeight):void 0),vo},fromPartial(Tt){const vo=ro();return vo.channel=Tt.channel!==void 0&&Tt.channel!==null?tt.Channel.fromPartial(Tt.channel):void 0,vo.proof=Tt.proof??new Uint8Array,vo.proofHeight=Tt.proofHeight!==void 0&&Tt.proofHeight!==null?nt.Height.fromPartial(Tt.proofHeight):void 0,vo}};function ht(){return{pagination:void 0}}_e.QueryChannelsRequest={encode(Tt,vo=kt.Writer.create()){return Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=ht();for(;Co.pos>>3){case 1:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{pagination:(0,dt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=ht();return vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function po(){return{channels:[],pagination:void 0,height:void 0}}_e.QueryChannelsResponse={encode(Tt,vo=kt.Writer.create()){for(const Co of Tt.channels)tt.IdentifiedChannel.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),Tt.height!==void 0&&nt.Height.encode(Tt.height,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=po();for(;Co.pos>>3){case 1:Po.channels.push(tt.IdentifiedChannel.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;case 3:Po.height=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{channels:Array.isArray(Tt==null?void 0:Tt.channels)?Tt.channels.map(vo=>tt.IdentifiedChannel.fromJSON(vo)):[],pagination:(0,dt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0,height:(0,dt.isSet)(Tt.height)?nt.Height.fromJSON(Tt.height):void 0}},toJSON(Tt){const vo={};return Tt.channels?vo.channels=Tt.channels.map(Co=>Co?tt.IdentifiedChannel.toJSON(Co):void 0):vo.channels=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),Tt.height!==void 0&&(vo.height=Tt.height?nt.Height.toJSON(Tt.height):void 0),vo},fromPartial(Tt){var Co;const vo=po();return vo.channels=((Co=Tt.channels)==null?void 0:Co.map(xo=>tt.IdentifiedChannel.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo.height=Tt.height!==void 0&&Tt.height!==null?nt.Height.fromPartial(Tt.height):void 0,vo}};function no(){return{connection:"",pagination:void 0}}_e.QueryConnectionChannelsRequest={encode(Tt,vo=kt.Writer.create()){return Tt.connection!==""&&vo.uint32(10).string(Tt.connection),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=no();for(;Co.pos>>3){case 1:Po.connection=Co.string();break;case 2:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{connection:(0,dt.isSet)(Tt.connection)?String(Tt.connection):"",pagination:(0,dt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.connection!==void 0&&(vo.connection=Tt.connection),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=no();return vo.connection=Tt.connection??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function Nt(){return{channels:[],pagination:void 0,height:void 0}}_e.QueryConnectionChannelsResponse={encode(Tt,vo=kt.Writer.create()){for(const Co of Tt.channels)tt.IdentifiedChannel.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),Tt.height!==void 0&&nt.Height.encode(Tt.height,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Nt();for(;Co.pos>>3){case 1:Po.channels.push(tt.IdentifiedChannel.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;case 3:Po.height=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{channels:Array.isArray(Tt==null?void 0:Tt.channels)?Tt.channels.map(vo=>tt.IdentifiedChannel.fromJSON(vo)):[],pagination:(0,dt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0,height:(0,dt.isSet)(Tt.height)?nt.Height.fromJSON(Tt.height):void 0}},toJSON(Tt){const vo={};return Tt.channels?vo.channels=Tt.channels.map(Co=>Co?tt.IdentifiedChannel.toJSON(Co):void 0):vo.channels=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),Tt.height!==void 0&&(vo.height=Tt.height?nt.Height.toJSON(Tt.height):void 0),vo},fromPartial(Tt){var Co;const vo=Nt();return vo.channels=((Co=Tt.channels)==null?void 0:Co.map(xo=>tt.IdentifiedChannel.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo.height=Tt.height!==void 0&&Tt.height!==null?nt.Height.fromPartial(Tt.height):void 0,vo}};function eo(){return{portId:"",channelId:""}}_e.QueryChannelClientStateRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=eo();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):""}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),vo},fromPartial(Tt){const vo=eo();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo}};function Wt(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:void 0}}_e.QueryChannelClientStateResponse={encode(Tt,vo=kt.Writer.create()){return Tt.identifiedClientState!==void 0&&nt.IdentifiedClientState.encode(Tt.identifiedClientState,vo.uint32(10).fork()).ldelim(),Tt.proof.length!==0&&vo.uint32(18).bytes(Tt.proof),Tt.proofHeight!==void 0&&nt.Height.encode(Tt.proofHeight,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Wt();for(;Co.pos>>3){case 1:Po.identifiedClientState=nt.IdentifiedClientState.decode(Co,Co.uint32());break;case 2:Po.proof=Co.bytes();break;case 3:Po.proofHeight=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{identifiedClientState:(0,dt.isSet)(Tt.identifiedClientState)?nt.IdentifiedClientState.fromJSON(Tt.identifiedClientState):void 0,proof:(0,dt.isSet)(Tt.proof)?(0,dt.bytesFromBase64)(Tt.proof):new Uint8Array,proofHeight:(0,dt.isSet)(Tt.proofHeight)?nt.Height.fromJSON(Tt.proofHeight):void 0}},toJSON(Tt){const vo={};return Tt.identifiedClientState!==void 0&&(vo.identifiedClientState=Tt.identifiedClientState?nt.IdentifiedClientState.toJSON(Tt.identifiedClientState):void 0),Tt.proof!==void 0&&(vo.proof=(0,dt.base64FromBytes)(Tt.proof!==void 0?Tt.proof:new Uint8Array)),Tt.proofHeight!==void 0&&(vo.proofHeight=Tt.proofHeight?nt.Height.toJSON(Tt.proofHeight):void 0),vo},fromPartial(Tt){const vo=Wt();return vo.identifiedClientState=Tt.identifiedClientState!==void 0&&Tt.identifiedClientState!==null?nt.IdentifiedClientState.fromPartial(Tt.identifiedClientState):void 0,vo.proof=Tt.proof??new Uint8Array,vo.proofHeight=Tt.proofHeight!==void 0&&Tt.proofHeight!==null?nt.Height.fromPartial(Tt.proofHeight):void 0,vo}};function St(){return{portId:"",channelId:"",revisionNumber:dt.Long.UZERO,revisionHeight:dt.Long.UZERO}}_e.QueryChannelConsensusStateRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),Tt.revisionNumber.isZero()||vo.uint32(24).uint64(Tt.revisionNumber),Tt.revisionHeight.isZero()||vo.uint32(32).uint64(Tt.revisionHeight),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=St();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:Po.revisionNumber=Co.uint64();break;case 4:Po.revisionHeight=Co.uint64();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):"",revisionNumber:(0,dt.isSet)(Tt.revisionNumber)?dt.Long.fromValue(Tt.revisionNumber):dt.Long.UZERO,revisionHeight:(0,dt.isSet)(Tt.revisionHeight)?dt.Long.fromValue(Tt.revisionHeight):dt.Long.UZERO}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.revisionNumber!==void 0&&(vo.revisionNumber=(Tt.revisionNumber||dt.Long.UZERO).toString()),Tt.revisionHeight!==void 0&&(vo.revisionHeight=(Tt.revisionHeight||dt.Long.UZERO).toString()),vo},fromPartial(Tt){const vo=St();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.revisionNumber=Tt.revisionNumber!==void 0&&Tt.revisionNumber!==null?dt.Long.fromValue(Tt.revisionNumber):dt.Long.UZERO,vo.revisionHeight=Tt.revisionHeight!==void 0&&Tt.revisionHeight!==null?dt.Long.fromValue(Tt.revisionHeight):dt.Long.UZERO,vo}};function Ot(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:void 0}}_e.QueryChannelConsensusStateResponse={encode(Tt,vo=kt.Writer.create()){return Tt.consensusState!==void 0&&st.Any.encode(Tt.consensusState,vo.uint32(10).fork()).ldelim(),Tt.clientId!==""&&vo.uint32(18).string(Tt.clientId),Tt.proof.length!==0&&vo.uint32(26).bytes(Tt.proof),Tt.proofHeight!==void 0&&nt.Height.encode(Tt.proofHeight,vo.uint32(34).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Ot();for(;Co.pos>>3){case 1:Po.consensusState=st.Any.decode(Co,Co.uint32());break;case 2:Po.clientId=Co.string();break;case 3:Po.proof=Co.bytes();break;case 4:Po.proofHeight=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{consensusState:(0,dt.isSet)(Tt.consensusState)?st.Any.fromJSON(Tt.consensusState):void 0,clientId:(0,dt.isSet)(Tt.clientId)?String(Tt.clientId):"",proof:(0,dt.isSet)(Tt.proof)?(0,dt.bytesFromBase64)(Tt.proof):new Uint8Array,proofHeight:(0,dt.isSet)(Tt.proofHeight)?nt.Height.fromJSON(Tt.proofHeight):void 0}},toJSON(Tt){const vo={};return Tt.consensusState!==void 0&&(vo.consensusState=Tt.consensusState?st.Any.toJSON(Tt.consensusState):void 0),Tt.clientId!==void 0&&(vo.clientId=Tt.clientId),Tt.proof!==void 0&&(vo.proof=(0,dt.base64FromBytes)(Tt.proof!==void 0?Tt.proof:new Uint8Array)),Tt.proofHeight!==void 0&&(vo.proofHeight=Tt.proofHeight?nt.Height.toJSON(Tt.proofHeight):void 0),vo},fromPartial(Tt){const vo=Ot();return vo.consensusState=Tt.consensusState!==void 0&&Tt.consensusState!==null?st.Any.fromPartial(Tt.consensusState):void 0,vo.clientId=Tt.clientId??"",vo.proof=Tt.proof??new Uint8Array,vo.proofHeight=Tt.proofHeight!==void 0&&Tt.proofHeight!==null?nt.Height.fromPartial(Tt.proofHeight):void 0,vo}};function uo(){return{portId:"",channelId:"",sequence:dt.Long.UZERO}}_e.QueryPacketCommitmentRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),Tt.sequence.isZero()||vo.uint32(24).uint64(Tt.sequence),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=uo();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:Po.sequence=Co.uint64();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):"",sequence:(0,dt.isSet)(Tt.sequence)?dt.Long.fromValue(Tt.sequence):dt.Long.UZERO}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.sequence!==void 0&&(vo.sequence=(Tt.sequence||dt.Long.UZERO).toString()),vo},fromPartial(Tt){const vo=uo();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?dt.Long.fromValue(Tt.sequence):dt.Long.UZERO,vo}};function go(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:void 0}}_e.QueryPacketCommitmentResponse={encode(Tt,vo=kt.Writer.create()){return Tt.commitment.length!==0&&vo.uint32(10).bytes(Tt.commitment),Tt.proof.length!==0&&vo.uint32(18).bytes(Tt.proof),Tt.proofHeight!==void 0&&nt.Height.encode(Tt.proofHeight,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=go();for(;Co.pos>>3){case 1:Po.commitment=Co.bytes();break;case 2:Po.proof=Co.bytes();break;case 3:Po.proofHeight=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{commitment:(0,dt.isSet)(Tt.commitment)?(0,dt.bytesFromBase64)(Tt.commitment):new Uint8Array,proof:(0,dt.isSet)(Tt.proof)?(0,dt.bytesFromBase64)(Tt.proof):new Uint8Array,proofHeight:(0,dt.isSet)(Tt.proofHeight)?nt.Height.fromJSON(Tt.proofHeight):void 0}},toJSON(Tt){const vo={};return Tt.commitment!==void 0&&(vo.commitment=(0,dt.base64FromBytes)(Tt.commitment!==void 0?Tt.commitment:new Uint8Array)),Tt.proof!==void 0&&(vo.proof=(0,dt.base64FromBytes)(Tt.proof!==void 0?Tt.proof:new Uint8Array)),Tt.proofHeight!==void 0&&(vo.proofHeight=Tt.proofHeight?nt.Height.toJSON(Tt.proofHeight):void 0),vo},fromPartial(Tt){const vo=go();return vo.commitment=Tt.commitment??new Uint8Array,vo.proof=Tt.proof??new Uint8Array,vo.proofHeight=Tt.proofHeight!==void 0&&Tt.proofHeight!==null?nt.Height.fromPartial(Tt.proofHeight):void 0,vo}};function bo(){return{portId:"",channelId:"",pagination:void 0}}_e.QueryPacketCommitmentsRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=bo();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):"",pagination:(0,dt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=bo();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function oo(){return{commitments:[],pagination:void 0,height:void 0}}_e.QueryPacketCommitmentsResponse={encode(Tt,vo=kt.Writer.create()){for(const Co of Tt.commitments)tt.PacketState.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),Tt.height!==void 0&&nt.Height.encode(Tt.height,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=oo();for(;Co.pos>>3){case 1:Po.commitments.push(tt.PacketState.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;case 3:Po.height=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{commitments:Array.isArray(Tt==null?void 0:Tt.commitments)?Tt.commitments.map(vo=>tt.PacketState.fromJSON(vo)):[],pagination:(0,dt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0,height:(0,dt.isSet)(Tt.height)?nt.Height.fromJSON(Tt.height):void 0}},toJSON(Tt){const vo={};return Tt.commitments?vo.commitments=Tt.commitments.map(Co=>Co?tt.PacketState.toJSON(Co):void 0):vo.commitments=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),Tt.height!==void 0&&(vo.height=Tt.height?nt.Height.toJSON(Tt.height):void 0),vo},fromPartial(Tt){var Co;const vo=oo();return vo.commitments=((Co=Tt.commitments)==null?void 0:Co.map(xo=>tt.PacketState.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo.height=Tt.height!==void 0&&Tt.height!==null?nt.Height.fromPartial(Tt.height):void 0,vo}};function Ro(){return{portId:"",channelId:"",sequence:dt.Long.UZERO}}_e.QueryPacketReceiptRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),Tt.sequence.isZero()||vo.uint32(24).uint64(Tt.sequence),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Ro();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:Po.sequence=Co.uint64();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):"",sequence:(0,dt.isSet)(Tt.sequence)?dt.Long.fromValue(Tt.sequence):dt.Long.UZERO}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.sequence!==void 0&&(vo.sequence=(Tt.sequence||dt.Long.UZERO).toString()),vo},fromPartial(Tt){const vo=Ro();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?dt.Long.fromValue(Tt.sequence):dt.Long.UZERO,vo}};function pt(){return{received:!1,proof:new Uint8Array,proofHeight:void 0}}_e.QueryPacketReceiptResponse={encode(Tt,vo=kt.Writer.create()){return Tt.received===!0&&vo.uint32(16).bool(Tt.received),Tt.proof.length!==0&&vo.uint32(26).bytes(Tt.proof),Tt.proofHeight!==void 0&&nt.Height.encode(Tt.proofHeight,vo.uint32(34).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=pt();for(;Co.pos>>3){case 2:Po.received=Co.bool();break;case 3:Po.proof=Co.bytes();break;case 4:Po.proofHeight=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{received:(0,dt.isSet)(Tt.received)?!!Tt.received:!1,proof:(0,dt.isSet)(Tt.proof)?(0,dt.bytesFromBase64)(Tt.proof):new Uint8Array,proofHeight:(0,dt.isSet)(Tt.proofHeight)?nt.Height.fromJSON(Tt.proofHeight):void 0}},toJSON(Tt){const vo={};return Tt.received!==void 0&&(vo.received=Tt.received),Tt.proof!==void 0&&(vo.proof=(0,dt.base64FromBytes)(Tt.proof!==void 0?Tt.proof:new Uint8Array)),Tt.proofHeight!==void 0&&(vo.proofHeight=Tt.proofHeight?nt.Height.toJSON(Tt.proofHeight):void 0),vo},fromPartial(Tt){const vo=pt();return vo.received=Tt.received??!1,vo.proof=Tt.proof??new Uint8Array,vo.proofHeight=Tt.proofHeight!==void 0&&Tt.proofHeight!==null?nt.Height.fromPartial(Tt.proofHeight):void 0,vo}};function lo(){return{portId:"",channelId:"",sequence:dt.Long.UZERO}}_e.QueryPacketAcknowledgementRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),Tt.sequence.isZero()||vo.uint32(24).uint64(Tt.sequence),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=lo();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:Po.sequence=Co.uint64();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):"",sequence:(0,dt.isSet)(Tt.sequence)?dt.Long.fromValue(Tt.sequence):dt.Long.UZERO}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.sequence!==void 0&&(vo.sequence=(Tt.sequence||dt.Long.UZERO).toString()),vo},fromPartial(Tt){const vo=lo();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.sequence=Tt.sequence!==void 0&&Tt.sequence!==null?dt.Long.fromValue(Tt.sequence):dt.Long.UZERO,vo}};function so(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:void 0}}_e.QueryPacketAcknowledgementResponse={encode(Tt,vo=kt.Writer.create()){return Tt.acknowledgement.length!==0&&vo.uint32(10).bytes(Tt.acknowledgement),Tt.proof.length!==0&&vo.uint32(18).bytes(Tt.proof),Tt.proofHeight!==void 0&&nt.Height.encode(Tt.proofHeight,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=so();for(;Co.pos>>3){case 1:Po.acknowledgement=Co.bytes();break;case 2:Po.proof=Co.bytes();break;case 3:Po.proofHeight=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{acknowledgement:(0,dt.isSet)(Tt.acknowledgement)?(0,dt.bytesFromBase64)(Tt.acknowledgement):new Uint8Array,proof:(0,dt.isSet)(Tt.proof)?(0,dt.bytesFromBase64)(Tt.proof):new Uint8Array,proofHeight:(0,dt.isSet)(Tt.proofHeight)?nt.Height.fromJSON(Tt.proofHeight):void 0}},toJSON(Tt){const vo={};return Tt.acknowledgement!==void 0&&(vo.acknowledgement=(0,dt.base64FromBytes)(Tt.acknowledgement!==void 0?Tt.acknowledgement:new Uint8Array)),Tt.proof!==void 0&&(vo.proof=(0,dt.base64FromBytes)(Tt.proof!==void 0?Tt.proof:new Uint8Array)),Tt.proofHeight!==void 0&&(vo.proofHeight=Tt.proofHeight?nt.Height.toJSON(Tt.proofHeight):void 0),vo},fromPartial(Tt){const vo=so();return vo.acknowledgement=Tt.acknowledgement??new Uint8Array,vo.proof=Tt.proof??new Uint8Array,vo.proofHeight=Tt.proofHeight!==void 0&&Tt.proofHeight!==null?nt.Height.fromPartial(Tt.proofHeight):void 0,vo}};function wo(){return{portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]}}_e.QueryPacketAcknowledgementsRequest={encode(Tt,vo=kt.Writer.create()){Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(26).fork()).ldelim(),vo.uint32(34).fork();for(const Co of Tt.packetCommitmentSequences)vo.uint64(Co);return vo.ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=wo();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;case 4:if((Wo&7)===2){const Yn=Co.uint32()+Co.pos;for(;Co.posdt.Long.fromValue(vo)):[]}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),Tt.packetCommitmentSequences?vo.packetCommitmentSequences=Tt.packetCommitmentSequences.map(Co=>(Co||dt.Long.UZERO).toString()):vo.packetCommitmentSequences=[],vo},fromPartial(Tt){var Co;const vo=wo();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo.packetCommitmentSequences=((Co=Tt.packetCommitmentSequences)==null?void 0:Co.map(xo=>dt.Long.fromValue(xo)))||[],vo}};function xt(){return{acknowledgements:[],pagination:void 0,height:void 0}}_e.QueryPacketAcknowledgementsResponse={encode(Tt,vo=kt.Writer.create()){for(const Co of Tt.acknowledgements)tt.PacketState.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),Tt.height!==void 0&&nt.Height.encode(Tt.height,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=xt();for(;Co.pos>>3){case 1:Po.acknowledgements.push(tt.PacketState.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;case 3:Po.height=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{acknowledgements:Array.isArray(Tt==null?void 0:Tt.acknowledgements)?Tt.acknowledgements.map(vo=>tt.PacketState.fromJSON(vo)):[],pagination:(0,dt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0,height:(0,dt.isSet)(Tt.height)?nt.Height.fromJSON(Tt.height):void 0}},toJSON(Tt){const vo={};return Tt.acknowledgements?vo.acknowledgements=Tt.acknowledgements.map(Co=>Co?tt.PacketState.toJSON(Co):void 0):vo.acknowledgements=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),Tt.height!==void 0&&(vo.height=Tt.height?nt.Height.toJSON(Tt.height):void 0),vo},fromPartial(Tt){var Co;const vo=xt();return vo.acknowledgements=((Co=Tt.acknowledgements)==null?void 0:Co.map(xo=>tt.PacketState.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo.height=Tt.height!==void 0&&Tt.height!==null?nt.Height.fromPartial(Tt.height):void 0,vo}};function Mt(){return{portId:"",channelId:"",packetCommitmentSequences:[]}}_e.QueryUnreceivedPacketsRequest={encode(Tt,vo=kt.Writer.create()){Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),vo.uint32(26).fork();for(const Co of Tt.packetCommitmentSequences)vo.uint64(Co);return vo.ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Mt();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:if((Wo&7)===2){const Yn=Co.uint32()+Co.pos;for(;Co.posdt.Long.fromValue(vo)):[]}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.packetCommitmentSequences?vo.packetCommitmentSequences=Tt.packetCommitmentSequences.map(Co=>(Co||dt.Long.UZERO).toString()):vo.packetCommitmentSequences=[],vo},fromPartial(Tt){var Co;const vo=Mt();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.packetCommitmentSequences=((Co=Tt.packetCommitmentSequences)==null?void 0:Co.map(xo=>dt.Long.fromValue(xo)))||[],vo}};function ho(){return{sequences:[],height:void 0}}_e.QueryUnreceivedPacketsResponse={encode(Tt,vo=kt.Writer.create()){vo.uint32(10).fork();for(const Co of Tt.sequences)vo.uint64(Co);return vo.ldelim(),Tt.height!==void 0&&nt.Height.encode(Tt.height,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=ho();for(;Co.pos>>3){case 1:if((Wo&7)===2){const Yn=Co.uint32()+Co.pos;for(;Co.posdt.Long.fromValue(vo)):[],height:(0,dt.isSet)(Tt.height)?nt.Height.fromJSON(Tt.height):void 0}},toJSON(Tt){const vo={};return Tt.sequences?vo.sequences=Tt.sequences.map(Co=>(Co||dt.Long.UZERO).toString()):vo.sequences=[],Tt.height!==void 0&&(vo.height=Tt.height?nt.Height.toJSON(Tt.height):void 0),vo},fromPartial(Tt){var Co;const vo=ho();return vo.sequences=((Co=Tt.sequences)==null?void 0:Co.map(xo=>dt.Long.fromValue(xo)))||[],vo.height=Tt.height!==void 0&&Tt.height!==null?nt.Height.fromPartial(Tt.height):void 0,vo}};function io(){return{portId:"",channelId:"",packetAckSequences:[]}}_e.QueryUnreceivedAcksRequest={encode(Tt,vo=kt.Writer.create()){Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),vo.uint32(26).fork();for(const Co of Tt.packetAckSequences)vo.uint64(Co);return vo.ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=io();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;case 3:if((Wo&7)===2){const Yn=Co.uint32()+Co.pos;for(;Co.posdt.Long.fromValue(vo)):[]}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),Tt.packetAckSequences?vo.packetAckSequences=Tt.packetAckSequences.map(Co=>(Co||dt.Long.UZERO).toString()):vo.packetAckSequences=[],vo},fromPartial(Tt){var Co;const vo=io();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo.packetAckSequences=((Co=Tt.packetAckSequences)==null?void 0:Co.map(xo=>dt.Long.fromValue(xo)))||[],vo}};function co(){return{sequences:[],height:void 0}}_e.QueryUnreceivedAcksResponse={encode(Tt,vo=kt.Writer.create()){vo.uint32(10).fork();for(const Co of Tt.sequences)vo.uint64(Co);return vo.ldelim(),Tt.height!==void 0&&nt.Height.encode(Tt.height,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=co();for(;Co.pos>>3){case 1:if((Wo&7)===2){const Yn=Co.uint32()+Co.pos;for(;Co.posdt.Long.fromValue(vo)):[],height:(0,dt.isSet)(Tt.height)?nt.Height.fromJSON(Tt.height):void 0}},toJSON(Tt){const vo={};return Tt.sequences?vo.sequences=Tt.sequences.map(Co=>(Co||dt.Long.UZERO).toString()):vo.sequences=[],Tt.height!==void 0&&(vo.height=Tt.height?nt.Height.toJSON(Tt.height):void 0),vo},fromPartial(Tt){var Co;const vo=co();return vo.sequences=((Co=Tt.sequences)==null?void 0:Co.map(xo=>dt.Long.fromValue(xo)))||[],vo.height=Tt.height!==void 0&&Tt.height!==null?nt.Height.fromPartial(Tt.height):void 0,vo}};function mo(){return{portId:"",channelId:""}}_e.QueryNextSequenceReceiveRequest={encode(Tt,vo=kt.Writer.create()){return Tt.portId!==""&&vo.uint32(10).string(Tt.portId),Tt.channelId!==""&&vo.uint32(18).string(Tt.channelId),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=mo();for(;Co.pos>>3){case 1:Po.portId=Co.string();break;case 2:Po.channelId=Co.string();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{portId:(0,dt.isSet)(Tt.portId)?String(Tt.portId):"",channelId:(0,dt.isSet)(Tt.channelId)?String(Tt.channelId):""}},toJSON(Tt){const vo={};return Tt.portId!==void 0&&(vo.portId=Tt.portId),Tt.channelId!==void 0&&(vo.channelId=Tt.channelId),vo},fromPartial(Tt){const vo=mo();return vo.portId=Tt.portId??"",vo.channelId=Tt.channelId??"",vo}};function Bo(){return{nextSequenceReceive:dt.Long.UZERO,proof:new Uint8Array,proofHeight:void 0}}_e.QueryNextSequenceReceiveResponse={encode(Tt,vo=kt.Writer.create()){return Tt.nextSequenceReceive.isZero()||vo.uint32(8).uint64(Tt.nextSequenceReceive),Tt.proof.length!==0&&vo.uint32(18).bytes(Tt.proof),Tt.proofHeight!==void 0&&nt.Height.encode(Tt.proofHeight,vo.uint32(26).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof kt.Reader?Tt:new kt.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Bo();for(;Co.pos>>3){case 1:Po.nextSequenceReceive=Co.uint64();break;case 2:Po.proof=Co.bytes();break;case 3:Po.proofHeight=nt.Height.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{nextSequenceReceive:(0,dt.isSet)(Tt.nextSequenceReceive)?dt.Long.fromValue(Tt.nextSequenceReceive):dt.Long.UZERO,proof:(0,dt.isSet)(Tt.proof)?(0,dt.bytesFromBase64)(Tt.proof):new Uint8Array,proofHeight:(0,dt.isSet)(Tt.proofHeight)?nt.Height.fromJSON(Tt.proofHeight):void 0}},toJSON(Tt){const vo={};return Tt.nextSequenceReceive!==void 0&&(vo.nextSequenceReceive=(Tt.nextSequenceReceive||dt.Long.UZERO).toString()),Tt.proof!==void 0&&(vo.proof=(0,dt.base64FromBytes)(Tt.proof!==void 0?Tt.proof:new Uint8Array)),Tt.proofHeight!==void 0&&(vo.proofHeight=Tt.proofHeight?nt.Height.toJSON(Tt.proofHeight):void 0),vo},fromPartial(Tt){const vo=Bo();return vo.nextSequenceReceive=Tt.nextSequenceReceive!==void 0&&Tt.nextSequenceReceive!==null?dt.Long.fromValue(Tt.nextSequenceReceive):dt.Long.UZERO,vo.proof=Tt.proof??new Uint8Array,vo.proofHeight=Tt.proofHeight!==void 0&&Tt.proofHeight!==null?nt.Height.fromPartial(Tt.proofHeight):void 0,vo}};class So{constructor(vo){this.rpc=vo,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(vo){const Co=_e.QueryChannelRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channel",Co).then(xo=>_e.QueryChannelResponse.decode(new kt.Reader(xo)))}Channels(vo={pagination:void 0}){const Co=_e.QueryChannelsRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","Channels",Co).then(xo=>_e.QueryChannelsResponse.decode(new kt.Reader(xo)))}ConnectionChannels(vo){const Co=_e.QueryConnectionChannelsRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","ConnectionChannels",Co).then(xo=>_e.QueryConnectionChannelsResponse.decode(new kt.Reader(xo)))}ChannelClientState(vo){const Co=_e.QueryChannelClientStateRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelClientState",Co).then(xo=>_e.QueryChannelClientStateResponse.decode(new kt.Reader(xo)))}ChannelConsensusState(vo){const Co=_e.QueryChannelConsensusStateRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","ChannelConsensusState",Co).then(xo=>_e.QueryChannelConsensusStateResponse.decode(new kt.Reader(xo)))}PacketCommitment(vo){const Co=_e.QueryPacketCommitmentRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitment",Co).then(xo=>_e.QueryPacketCommitmentResponse.decode(new kt.Reader(xo)))}PacketCommitments(vo){const Co=_e.QueryPacketCommitmentsRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketCommitments",Co).then(xo=>_e.QueryPacketCommitmentsResponse.decode(new kt.Reader(xo)))}PacketReceipt(vo){const Co=_e.QueryPacketReceiptRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketReceipt",Co).then(xo=>_e.QueryPacketReceiptResponse.decode(new kt.Reader(xo)))}PacketAcknowledgement(vo){const Co=_e.QueryPacketAcknowledgementRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgement",Co).then(xo=>_e.QueryPacketAcknowledgementResponse.decode(new kt.Reader(xo)))}PacketAcknowledgements(vo){const Co=_e.QueryPacketAcknowledgementsRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgements",Co).then(xo=>_e.QueryPacketAcknowledgementsResponse.decode(new kt.Reader(xo)))}UnreceivedPackets(vo){const Co=_e.QueryUnreceivedPacketsRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedPackets",Co).then(xo=>_e.QueryUnreceivedPacketsResponse.decode(new kt.Reader(xo)))}UnreceivedAcks(vo){const Co=_e.QueryUnreceivedAcksRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","UnreceivedAcks",Co).then(xo=>_e.QueryUnreceivedAcksResponse.decode(new kt.Reader(xo)))}NextSequenceReceive(vo){const Co=_e.QueryNextSequenceReceiveRequest.encode(vo).finish();return this.rpc.request("ibc.core.channel.v1.Query","NextSequenceReceive",Co).then(xo=>_e.QueryNextSequenceReceiveResponse.decode(new kt.Reader(xo)))}}_e.QueryClientImpl=So})(query$6);var query$5={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wo,xt,Mt,ho){ho===void 0&&(ho=Mt);var io=Object.getOwnPropertyDescriptor(xt,Mt);(!io||("get"in io?!xt.__esModule:io.writable||io.configurable))&&(io={enumerable:!0,get:function(){return xt[Mt]}}),Object.defineProperty(wo,ho,io)}:function(wo,xt,Mt,ho){ho===void 0&&(ho=Mt),wo[ho]=xt[Mt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wo,xt){Object.defineProperty(wo,"default",{enumerable:!0,value:xt})}:function(wo,xt){wo.default=xt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(wo){if(wo&&wo.__esModule)return wo;var xt={};if(wo!=null)for(var Mt in wo)Mt!=="default"&&Object.prototype.hasOwnProperty.call(wo,Mt)&&cr(xt,wo,Mt);return gr(xt,wo),xt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryUpgradedConsensusStateResponse=_e.QueryUpgradedConsensusStateRequest=_e.QueryUpgradedClientStateResponse=_e.QueryUpgradedClientStateRequest=_e.QueryClientParamsResponse=_e.QueryClientParamsRequest=_e.QueryClientStatusResponse=_e.QueryClientStatusRequest=_e.QueryConsensusStateHeightsResponse=_e.QueryConsensusStateHeightsRequest=_e.QueryConsensusStatesResponse=_e.QueryConsensusStatesRequest=_e.QueryConsensusStateResponse=_e.QueryConsensusStateRequest=_e.QueryClientStatesResponse=_e.QueryClientStatesRequest=_e.QueryClientStateResponse=_e.QueryClientStateRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=any,nt=client,st=helpers,dt=Cr(minimal);_e.protobufPackage="ibc.core.client.v1";function kt(){return{clientId:""}}_e.QueryClientStateRequest={encode(wo,xt=dt.Writer.create()){return wo.clientId!==""&&xt.uint32(10).string(wo.clientId),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=kt();for(;Mt.pos>>3){case 1:io.clientId=Mt.string();break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{clientId:(0,st.isSet)(wo.clientId)?String(wo.clientId):""}},toJSON(wo){const xt={};return wo.clientId!==void 0&&(xt.clientId=wo.clientId),xt},fromPartial(wo){const xt=kt();return xt.clientId=wo.clientId??"",xt}};function qt(){return{clientState:void 0,proof:new Uint8Array,proofHeight:void 0}}_e.QueryClientStateResponse={encode(wo,xt=dt.Writer.create()){return wo.clientState!==void 0&&tt.Any.encode(wo.clientState,xt.uint32(10).fork()).ldelim(),wo.proof.length!==0&&xt.uint32(18).bytes(wo.proof),wo.proofHeight!==void 0&&nt.Height.encode(wo.proofHeight,xt.uint32(26).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=qt();for(;Mt.pos>>3){case 1:io.clientState=tt.Any.decode(Mt,Mt.uint32());break;case 2:io.proof=Mt.bytes();break;case 3:io.proofHeight=nt.Height.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{clientState:(0,st.isSet)(wo.clientState)?tt.Any.fromJSON(wo.clientState):void 0,proof:(0,st.isSet)(wo.proof)?(0,st.bytesFromBase64)(wo.proof):new Uint8Array,proofHeight:(0,st.isSet)(wo.proofHeight)?nt.Height.fromJSON(wo.proofHeight):void 0}},toJSON(wo){const xt={};return wo.clientState!==void 0&&(xt.clientState=wo.clientState?tt.Any.toJSON(wo.clientState):void 0),wo.proof!==void 0&&(xt.proof=(0,st.base64FromBytes)(wo.proof!==void 0?wo.proof:new Uint8Array)),wo.proofHeight!==void 0&&(xt.proofHeight=wo.proofHeight?nt.Height.toJSON(wo.proofHeight):void 0),xt},fromPartial(wo){const xt=qt();return xt.clientState=wo.clientState!==void 0&&wo.clientState!==null?tt.Any.fromPartial(wo.clientState):void 0,xt.proof=wo.proof??new Uint8Array,xt.proofHeight=wo.proofHeight!==void 0&&wo.proofHeight!==null?nt.Height.fromPartial(wo.proofHeight):void 0,xt}};function ro(){return{pagination:void 0}}_e.QueryClientStatesRequest={encode(wo,xt=dt.Writer.create()){return wo.pagination!==void 0&&Vr.PageRequest.encode(wo.pagination,xt.uint32(10).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=ro();for(;Mt.pos>>3){case 1:io.pagination=Vr.PageRequest.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{pagination:(0,st.isSet)(wo.pagination)?Vr.PageRequest.fromJSON(wo.pagination):void 0}},toJSON(wo){const xt={};return wo.pagination!==void 0&&(xt.pagination=wo.pagination?Vr.PageRequest.toJSON(wo.pagination):void 0),xt},fromPartial(wo){const xt=ro();return xt.pagination=wo.pagination!==void 0&&wo.pagination!==null?Vr.PageRequest.fromPartial(wo.pagination):void 0,xt}};function ht(){return{clientStates:[],pagination:void 0}}_e.QueryClientStatesResponse={encode(wo,xt=dt.Writer.create()){for(const Mt of wo.clientStates)nt.IdentifiedClientState.encode(Mt,xt.uint32(10).fork()).ldelim();return wo.pagination!==void 0&&Vr.PageResponse.encode(wo.pagination,xt.uint32(18).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=ht();for(;Mt.pos>>3){case 1:io.clientStates.push(nt.IdentifiedClientState.decode(Mt,Mt.uint32()));break;case 2:io.pagination=Vr.PageResponse.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{clientStates:Array.isArray(wo==null?void 0:wo.clientStates)?wo.clientStates.map(xt=>nt.IdentifiedClientState.fromJSON(xt)):[],pagination:(0,st.isSet)(wo.pagination)?Vr.PageResponse.fromJSON(wo.pagination):void 0}},toJSON(wo){const xt={};return wo.clientStates?xt.clientStates=wo.clientStates.map(Mt=>Mt?nt.IdentifiedClientState.toJSON(Mt):void 0):xt.clientStates=[],wo.pagination!==void 0&&(xt.pagination=wo.pagination?Vr.PageResponse.toJSON(wo.pagination):void 0),xt},fromPartial(wo){var Mt;const xt=ht();return xt.clientStates=((Mt=wo.clientStates)==null?void 0:Mt.map(ho=>nt.IdentifiedClientState.fromPartial(ho)))||[],xt.pagination=wo.pagination!==void 0&&wo.pagination!==null?Vr.PageResponse.fromPartial(wo.pagination):void 0,xt}};function po(){return{clientId:"",revisionNumber:st.Long.UZERO,revisionHeight:st.Long.UZERO,latestHeight:!1}}_e.QueryConsensusStateRequest={encode(wo,xt=dt.Writer.create()){return wo.clientId!==""&&xt.uint32(10).string(wo.clientId),wo.revisionNumber.isZero()||xt.uint32(16).uint64(wo.revisionNumber),wo.revisionHeight.isZero()||xt.uint32(24).uint64(wo.revisionHeight),wo.latestHeight===!0&&xt.uint32(32).bool(wo.latestHeight),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=po();for(;Mt.pos>>3){case 1:io.clientId=Mt.string();break;case 2:io.revisionNumber=Mt.uint64();break;case 3:io.revisionHeight=Mt.uint64();break;case 4:io.latestHeight=Mt.bool();break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{clientId:(0,st.isSet)(wo.clientId)?String(wo.clientId):"",revisionNumber:(0,st.isSet)(wo.revisionNumber)?st.Long.fromValue(wo.revisionNumber):st.Long.UZERO,revisionHeight:(0,st.isSet)(wo.revisionHeight)?st.Long.fromValue(wo.revisionHeight):st.Long.UZERO,latestHeight:(0,st.isSet)(wo.latestHeight)?!!wo.latestHeight:!1}},toJSON(wo){const xt={};return wo.clientId!==void 0&&(xt.clientId=wo.clientId),wo.revisionNumber!==void 0&&(xt.revisionNumber=(wo.revisionNumber||st.Long.UZERO).toString()),wo.revisionHeight!==void 0&&(xt.revisionHeight=(wo.revisionHeight||st.Long.UZERO).toString()),wo.latestHeight!==void 0&&(xt.latestHeight=wo.latestHeight),xt},fromPartial(wo){const xt=po();return xt.clientId=wo.clientId??"",xt.revisionNumber=wo.revisionNumber!==void 0&&wo.revisionNumber!==null?st.Long.fromValue(wo.revisionNumber):st.Long.UZERO,xt.revisionHeight=wo.revisionHeight!==void 0&&wo.revisionHeight!==null?st.Long.fromValue(wo.revisionHeight):st.Long.UZERO,xt.latestHeight=wo.latestHeight??!1,xt}};function no(){return{consensusState:void 0,proof:new Uint8Array,proofHeight:void 0}}_e.QueryConsensusStateResponse={encode(wo,xt=dt.Writer.create()){return wo.consensusState!==void 0&&tt.Any.encode(wo.consensusState,xt.uint32(10).fork()).ldelim(),wo.proof.length!==0&&xt.uint32(18).bytes(wo.proof),wo.proofHeight!==void 0&&nt.Height.encode(wo.proofHeight,xt.uint32(26).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=no();for(;Mt.pos>>3){case 1:io.consensusState=tt.Any.decode(Mt,Mt.uint32());break;case 2:io.proof=Mt.bytes();break;case 3:io.proofHeight=nt.Height.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{consensusState:(0,st.isSet)(wo.consensusState)?tt.Any.fromJSON(wo.consensusState):void 0,proof:(0,st.isSet)(wo.proof)?(0,st.bytesFromBase64)(wo.proof):new Uint8Array,proofHeight:(0,st.isSet)(wo.proofHeight)?nt.Height.fromJSON(wo.proofHeight):void 0}},toJSON(wo){const xt={};return wo.consensusState!==void 0&&(xt.consensusState=wo.consensusState?tt.Any.toJSON(wo.consensusState):void 0),wo.proof!==void 0&&(xt.proof=(0,st.base64FromBytes)(wo.proof!==void 0?wo.proof:new Uint8Array)),wo.proofHeight!==void 0&&(xt.proofHeight=wo.proofHeight?nt.Height.toJSON(wo.proofHeight):void 0),xt},fromPartial(wo){const xt=no();return xt.consensusState=wo.consensusState!==void 0&&wo.consensusState!==null?tt.Any.fromPartial(wo.consensusState):void 0,xt.proof=wo.proof??new Uint8Array,xt.proofHeight=wo.proofHeight!==void 0&&wo.proofHeight!==null?nt.Height.fromPartial(wo.proofHeight):void 0,xt}};function Nt(){return{clientId:"",pagination:void 0}}_e.QueryConsensusStatesRequest={encode(wo,xt=dt.Writer.create()){return wo.clientId!==""&&xt.uint32(10).string(wo.clientId),wo.pagination!==void 0&&Vr.PageRequest.encode(wo.pagination,xt.uint32(18).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=Nt();for(;Mt.pos>>3){case 1:io.clientId=Mt.string();break;case 2:io.pagination=Vr.PageRequest.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{clientId:(0,st.isSet)(wo.clientId)?String(wo.clientId):"",pagination:(0,st.isSet)(wo.pagination)?Vr.PageRequest.fromJSON(wo.pagination):void 0}},toJSON(wo){const xt={};return wo.clientId!==void 0&&(xt.clientId=wo.clientId),wo.pagination!==void 0&&(xt.pagination=wo.pagination?Vr.PageRequest.toJSON(wo.pagination):void 0),xt},fromPartial(wo){const xt=Nt();return xt.clientId=wo.clientId??"",xt.pagination=wo.pagination!==void 0&&wo.pagination!==null?Vr.PageRequest.fromPartial(wo.pagination):void 0,xt}};function eo(){return{consensusStates:[],pagination:void 0}}_e.QueryConsensusStatesResponse={encode(wo,xt=dt.Writer.create()){for(const Mt of wo.consensusStates)nt.ConsensusStateWithHeight.encode(Mt,xt.uint32(10).fork()).ldelim();return wo.pagination!==void 0&&Vr.PageResponse.encode(wo.pagination,xt.uint32(18).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=eo();for(;Mt.pos>>3){case 1:io.consensusStates.push(nt.ConsensusStateWithHeight.decode(Mt,Mt.uint32()));break;case 2:io.pagination=Vr.PageResponse.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{consensusStates:Array.isArray(wo==null?void 0:wo.consensusStates)?wo.consensusStates.map(xt=>nt.ConsensusStateWithHeight.fromJSON(xt)):[],pagination:(0,st.isSet)(wo.pagination)?Vr.PageResponse.fromJSON(wo.pagination):void 0}},toJSON(wo){const xt={};return wo.consensusStates?xt.consensusStates=wo.consensusStates.map(Mt=>Mt?nt.ConsensusStateWithHeight.toJSON(Mt):void 0):xt.consensusStates=[],wo.pagination!==void 0&&(xt.pagination=wo.pagination?Vr.PageResponse.toJSON(wo.pagination):void 0),xt},fromPartial(wo){var Mt;const xt=eo();return xt.consensusStates=((Mt=wo.consensusStates)==null?void 0:Mt.map(ho=>nt.ConsensusStateWithHeight.fromPartial(ho)))||[],xt.pagination=wo.pagination!==void 0&&wo.pagination!==null?Vr.PageResponse.fromPartial(wo.pagination):void 0,xt}};function Wt(){return{clientId:"",pagination:void 0}}_e.QueryConsensusStateHeightsRequest={encode(wo,xt=dt.Writer.create()){return wo.clientId!==""&&xt.uint32(10).string(wo.clientId),wo.pagination!==void 0&&Vr.PageRequest.encode(wo.pagination,xt.uint32(18).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=Wt();for(;Mt.pos>>3){case 1:io.clientId=Mt.string();break;case 2:io.pagination=Vr.PageRequest.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{clientId:(0,st.isSet)(wo.clientId)?String(wo.clientId):"",pagination:(0,st.isSet)(wo.pagination)?Vr.PageRequest.fromJSON(wo.pagination):void 0}},toJSON(wo){const xt={};return wo.clientId!==void 0&&(xt.clientId=wo.clientId),wo.pagination!==void 0&&(xt.pagination=wo.pagination?Vr.PageRequest.toJSON(wo.pagination):void 0),xt},fromPartial(wo){const xt=Wt();return xt.clientId=wo.clientId??"",xt.pagination=wo.pagination!==void 0&&wo.pagination!==null?Vr.PageRequest.fromPartial(wo.pagination):void 0,xt}};function St(){return{consensusStateHeights:[],pagination:void 0}}_e.QueryConsensusStateHeightsResponse={encode(wo,xt=dt.Writer.create()){for(const Mt of wo.consensusStateHeights)nt.Height.encode(Mt,xt.uint32(10).fork()).ldelim();return wo.pagination!==void 0&&Vr.PageResponse.encode(wo.pagination,xt.uint32(18).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=St();for(;Mt.pos>>3){case 1:io.consensusStateHeights.push(nt.Height.decode(Mt,Mt.uint32()));break;case 2:io.pagination=Vr.PageResponse.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{consensusStateHeights:Array.isArray(wo==null?void 0:wo.consensusStateHeights)?wo.consensusStateHeights.map(xt=>nt.Height.fromJSON(xt)):[],pagination:(0,st.isSet)(wo.pagination)?Vr.PageResponse.fromJSON(wo.pagination):void 0}},toJSON(wo){const xt={};return wo.consensusStateHeights?xt.consensusStateHeights=wo.consensusStateHeights.map(Mt=>Mt?nt.Height.toJSON(Mt):void 0):xt.consensusStateHeights=[],wo.pagination!==void 0&&(xt.pagination=wo.pagination?Vr.PageResponse.toJSON(wo.pagination):void 0),xt},fromPartial(wo){var Mt;const xt=St();return xt.consensusStateHeights=((Mt=wo.consensusStateHeights)==null?void 0:Mt.map(ho=>nt.Height.fromPartial(ho)))||[],xt.pagination=wo.pagination!==void 0&&wo.pagination!==null?Vr.PageResponse.fromPartial(wo.pagination):void 0,xt}};function Ot(){return{clientId:""}}_e.QueryClientStatusRequest={encode(wo,xt=dt.Writer.create()){return wo.clientId!==""&&xt.uint32(10).string(wo.clientId),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=Ot();for(;Mt.pos>>3){case 1:io.clientId=Mt.string();break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{clientId:(0,st.isSet)(wo.clientId)?String(wo.clientId):""}},toJSON(wo){const xt={};return wo.clientId!==void 0&&(xt.clientId=wo.clientId),xt},fromPartial(wo){const xt=Ot();return xt.clientId=wo.clientId??"",xt}};function uo(){return{status:""}}_e.QueryClientStatusResponse={encode(wo,xt=dt.Writer.create()){return wo.status!==""&&xt.uint32(10).string(wo.status),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=uo();for(;Mt.pos>>3){case 1:io.status=Mt.string();break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{status:(0,st.isSet)(wo.status)?String(wo.status):""}},toJSON(wo){const xt={};return wo.status!==void 0&&(xt.status=wo.status),xt},fromPartial(wo){const xt=uo();return xt.status=wo.status??"",xt}};function go(){return{}}_e.QueryClientParamsRequest={encode(wo,xt=dt.Writer.create()){return xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=go();for(;Mt.pos>>3){default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{}},toJSON(wo){return{}},fromPartial(wo){return go()}};function bo(){return{params:void 0}}_e.QueryClientParamsResponse={encode(wo,xt=dt.Writer.create()){return wo.params!==void 0&&nt.Params.encode(wo.params,xt.uint32(10).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=bo();for(;Mt.pos>>3){case 1:io.params=nt.Params.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{params:(0,st.isSet)(wo.params)?nt.Params.fromJSON(wo.params):void 0}},toJSON(wo){const xt={};return wo.params!==void 0&&(xt.params=wo.params?nt.Params.toJSON(wo.params):void 0),xt},fromPartial(wo){const xt=bo();return xt.params=wo.params!==void 0&&wo.params!==null?nt.Params.fromPartial(wo.params):void 0,xt}};function oo(){return{}}_e.QueryUpgradedClientStateRequest={encode(wo,xt=dt.Writer.create()){return xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=oo();for(;Mt.pos>>3){default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{}},toJSON(wo){return{}},fromPartial(wo){return oo()}};function Ro(){return{upgradedClientState:void 0}}_e.QueryUpgradedClientStateResponse={encode(wo,xt=dt.Writer.create()){return wo.upgradedClientState!==void 0&&tt.Any.encode(wo.upgradedClientState,xt.uint32(10).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=Ro();for(;Mt.pos>>3){case 1:io.upgradedClientState=tt.Any.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{upgradedClientState:(0,st.isSet)(wo.upgradedClientState)?tt.Any.fromJSON(wo.upgradedClientState):void 0}},toJSON(wo){const xt={};return wo.upgradedClientState!==void 0&&(xt.upgradedClientState=wo.upgradedClientState?tt.Any.toJSON(wo.upgradedClientState):void 0),xt},fromPartial(wo){const xt=Ro();return xt.upgradedClientState=wo.upgradedClientState!==void 0&&wo.upgradedClientState!==null?tt.Any.fromPartial(wo.upgradedClientState):void 0,xt}};function pt(){return{}}_e.QueryUpgradedConsensusStateRequest={encode(wo,xt=dt.Writer.create()){return xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=pt();for(;Mt.pos>>3){default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{}},toJSON(wo){return{}},fromPartial(wo){return pt()}};function lo(){return{upgradedConsensusState:void 0}}_e.QueryUpgradedConsensusStateResponse={encode(wo,xt=dt.Writer.create()){return wo.upgradedConsensusState!==void 0&&tt.Any.encode(wo.upgradedConsensusState,xt.uint32(10).fork()).ldelim(),xt},decode(wo,xt){const Mt=wo instanceof dt.Reader?wo:new dt.Reader(wo);let ho=xt===void 0?Mt.len:Mt.pos+xt;const io=lo();for(;Mt.pos>>3){case 1:io.upgradedConsensusState=tt.Any.decode(Mt,Mt.uint32());break;default:Mt.skipType(co&7);break}}return io},fromJSON(wo){return{upgradedConsensusState:(0,st.isSet)(wo.upgradedConsensusState)?tt.Any.fromJSON(wo.upgradedConsensusState):void 0}},toJSON(wo){const xt={};return wo.upgradedConsensusState!==void 0&&(xt.upgradedConsensusState=wo.upgradedConsensusState?tt.Any.toJSON(wo.upgradedConsensusState):void 0),xt},fromPartial(wo){const xt=lo();return xt.upgradedConsensusState=wo.upgradedConsensusState!==void 0&&wo.upgradedConsensusState!==null?tt.Any.fromPartial(wo.upgradedConsensusState):void 0,xt}};class so{constructor(xt){this.rpc=xt,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(xt){const Mt=_e.QueryClientStateRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientState",Mt).then(ho=>_e.QueryClientStateResponse.decode(new dt.Reader(ho)))}ClientStates(xt={pagination:void 0}){const Mt=_e.QueryClientStatesRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStates",Mt).then(ho=>_e.QueryClientStatesResponse.decode(new dt.Reader(ho)))}ConsensusState(xt){const Mt=_e.QueryConsensusStateRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusState",Mt).then(ho=>_e.QueryConsensusStateResponse.decode(new dt.Reader(ho)))}ConsensusStates(xt){const Mt=_e.QueryConsensusStatesRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStates",Mt).then(ho=>_e.QueryConsensusStatesResponse.decode(new dt.Reader(ho)))}ConsensusStateHeights(xt){const Mt=_e.QueryConsensusStateHeightsRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","ConsensusStateHeights",Mt).then(ho=>_e.QueryConsensusStateHeightsResponse.decode(new dt.Reader(ho)))}ClientStatus(xt){const Mt=_e.QueryClientStatusRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientStatus",Mt).then(ho=>_e.QueryClientStatusResponse.decode(new dt.Reader(ho)))}ClientParams(xt={}){const Mt=_e.QueryClientParamsRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","ClientParams",Mt).then(ho=>_e.QueryClientParamsResponse.decode(new dt.Reader(ho)))}UpgradedClientState(xt={}){const Mt=_e.QueryUpgradedClientStateRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedClientState",Mt).then(ho=>_e.QueryUpgradedClientStateResponse.decode(new dt.Reader(ho)))}UpgradedConsensusState(xt={}){const Mt=_e.QueryUpgradedConsensusStateRequest.encode(xt).finish();return this.rpc.request("ibc.core.client.v1.Query","UpgradedConsensusState",Mt).then(ho=>_e.QueryUpgradedConsensusStateResponse.decode(new dt.Reader(ho)))}}_e.QueryClientImpl=so})(query$5);var query$4={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(oo,Ro,pt,lo){lo===void 0&&(lo=pt);var so=Object.getOwnPropertyDescriptor(Ro,pt);(!so||("get"in so?!Ro.__esModule:so.writable||so.configurable))&&(so={enumerable:!0,get:function(){return Ro[pt]}}),Object.defineProperty(oo,lo,so)}:function(oo,Ro,pt,lo){lo===void 0&&(lo=pt),oo[lo]=Ro[pt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(oo,Ro){Object.defineProperty(oo,"default",{enumerable:!0,value:Ro})}:function(oo,Ro){oo.default=Ro}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(oo){if(oo&&oo.__esModule)return oo;var Ro={};if(oo!=null)for(var pt in oo)pt!=="default"&&Object.prototype.hasOwnProperty.call(oo,pt)&&cr(Ro,oo,pt);return gr(Ro,oo),Ro};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryConnectionParamsResponse=_e.QueryConnectionParamsRequest=_e.QueryConnectionConsensusStateResponse=_e.QueryConnectionConsensusStateRequest=_e.QueryConnectionClientStateResponse=_e.QueryConnectionClientStateRequest=_e.QueryClientConnectionsResponse=_e.QueryClientConnectionsRequest=_e.QueryConnectionsResponse=_e.QueryConnectionsRequest=_e.QueryConnectionResponse=_e.QueryConnectionRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=connection,nt=client,st=any,dt=helpers,kt=Cr(minimal);_e.protobufPackage="ibc.core.connection.v1";function qt(){return{connectionId:""}}_e.QueryConnectionRequest={encode(oo,Ro=kt.Writer.create()){return oo.connectionId!==""&&Ro.uint32(10).string(oo.connectionId),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=qt();for(;pt.pos>>3){case 1:so.connectionId=pt.string();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{connectionId:(0,dt.isSet)(oo.connectionId)?String(oo.connectionId):""}},toJSON(oo){const Ro={};return oo.connectionId!==void 0&&(Ro.connectionId=oo.connectionId),Ro},fromPartial(oo){const Ro=qt();return Ro.connectionId=oo.connectionId??"",Ro}};function ro(){return{connection:void 0,proof:new Uint8Array,proofHeight:void 0}}_e.QueryConnectionResponse={encode(oo,Ro=kt.Writer.create()){return oo.connection!==void 0&&tt.ConnectionEnd.encode(oo.connection,Ro.uint32(10).fork()).ldelim(),oo.proof.length!==0&&Ro.uint32(18).bytes(oo.proof),oo.proofHeight!==void 0&&nt.Height.encode(oo.proofHeight,Ro.uint32(26).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=ro();for(;pt.pos>>3){case 1:so.connection=tt.ConnectionEnd.decode(pt,pt.uint32());break;case 2:so.proof=pt.bytes();break;case 3:so.proofHeight=nt.Height.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{connection:(0,dt.isSet)(oo.connection)?tt.ConnectionEnd.fromJSON(oo.connection):void 0,proof:(0,dt.isSet)(oo.proof)?(0,dt.bytesFromBase64)(oo.proof):new Uint8Array,proofHeight:(0,dt.isSet)(oo.proofHeight)?nt.Height.fromJSON(oo.proofHeight):void 0}},toJSON(oo){const Ro={};return oo.connection!==void 0&&(Ro.connection=oo.connection?tt.ConnectionEnd.toJSON(oo.connection):void 0),oo.proof!==void 0&&(Ro.proof=(0,dt.base64FromBytes)(oo.proof!==void 0?oo.proof:new Uint8Array)),oo.proofHeight!==void 0&&(Ro.proofHeight=oo.proofHeight?nt.Height.toJSON(oo.proofHeight):void 0),Ro},fromPartial(oo){const Ro=ro();return Ro.connection=oo.connection!==void 0&&oo.connection!==null?tt.ConnectionEnd.fromPartial(oo.connection):void 0,Ro.proof=oo.proof??new Uint8Array,Ro.proofHeight=oo.proofHeight!==void 0&&oo.proofHeight!==null?nt.Height.fromPartial(oo.proofHeight):void 0,Ro}};function ht(){return{pagination:void 0}}_e.QueryConnectionsRequest={encode(oo,Ro=kt.Writer.create()){return oo.pagination!==void 0&&Vr.PageRequest.encode(oo.pagination,Ro.uint32(10).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=ht();for(;pt.pos>>3){case 1:so.pagination=Vr.PageRequest.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{pagination:(0,dt.isSet)(oo.pagination)?Vr.PageRequest.fromJSON(oo.pagination):void 0}},toJSON(oo){const Ro={};return oo.pagination!==void 0&&(Ro.pagination=oo.pagination?Vr.PageRequest.toJSON(oo.pagination):void 0),Ro},fromPartial(oo){const Ro=ht();return Ro.pagination=oo.pagination!==void 0&&oo.pagination!==null?Vr.PageRequest.fromPartial(oo.pagination):void 0,Ro}};function po(){return{connections:[],pagination:void 0,height:void 0}}_e.QueryConnectionsResponse={encode(oo,Ro=kt.Writer.create()){for(const pt of oo.connections)tt.IdentifiedConnection.encode(pt,Ro.uint32(10).fork()).ldelim();return oo.pagination!==void 0&&Vr.PageResponse.encode(oo.pagination,Ro.uint32(18).fork()).ldelim(),oo.height!==void 0&&nt.Height.encode(oo.height,Ro.uint32(26).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=po();for(;pt.pos>>3){case 1:so.connections.push(tt.IdentifiedConnection.decode(pt,pt.uint32()));break;case 2:so.pagination=Vr.PageResponse.decode(pt,pt.uint32());break;case 3:so.height=nt.Height.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{connections:Array.isArray(oo==null?void 0:oo.connections)?oo.connections.map(Ro=>tt.IdentifiedConnection.fromJSON(Ro)):[],pagination:(0,dt.isSet)(oo.pagination)?Vr.PageResponse.fromJSON(oo.pagination):void 0,height:(0,dt.isSet)(oo.height)?nt.Height.fromJSON(oo.height):void 0}},toJSON(oo){const Ro={};return oo.connections?Ro.connections=oo.connections.map(pt=>pt?tt.IdentifiedConnection.toJSON(pt):void 0):Ro.connections=[],oo.pagination!==void 0&&(Ro.pagination=oo.pagination?Vr.PageResponse.toJSON(oo.pagination):void 0),oo.height!==void 0&&(Ro.height=oo.height?nt.Height.toJSON(oo.height):void 0),Ro},fromPartial(oo){var pt;const Ro=po();return Ro.connections=((pt=oo.connections)==null?void 0:pt.map(lo=>tt.IdentifiedConnection.fromPartial(lo)))||[],Ro.pagination=oo.pagination!==void 0&&oo.pagination!==null?Vr.PageResponse.fromPartial(oo.pagination):void 0,Ro.height=oo.height!==void 0&&oo.height!==null?nt.Height.fromPartial(oo.height):void 0,Ro}};function no(){return{clientId:""}}_e.QueryClientConnectionsRequest={encode(oo,Ro=kt.Writer.create()){return oo.clientId!==""&&Ro.uint32(10).string(oo.clientId),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=no();for(;pt.pos>>3){case 1:so.clientId=pt.string();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{clientId:(0,dt.isSet)(oo.clientId)?String(oo.clientId):""}},toJSON(oo){const Ro={};return oo.clientId!==void 0&&(Ro.clientId=oo.clientId),Ro},fromPartial(oo){const Ro=no();return Ro.clientId=oo.clientId??"",Ro}};function Nt(){return{connectionPaths:[],proof:new Uint8Array,proofHeight:void 0}}_e.QueryClientConnectionsResponse={encode(oo,Ro=kt.Writer.create()){for(const pt of oo.connectionPaths)Ro.uint32(10).string(pt);return oo.proof.length!==0&&Ro.uint32(18).bytes(oo.proof),oo.proofHeight!==void 0&&nt.Height.encode(oo.proofHeight,Ro.uint32(26).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=Nt();for(;pt.pos>>3){case 1:so.connectionPaths.push(pt.string());break;case 2:so.proof=pt.bytes();break;case 3:so.proofHeight=nt.Height.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{connectionPaths:Array.isArray(oo==null?void 0:oo.connectionPaths)?oo.connectionPaths.map(Ro=>String(Ro)):[],proof:(0,dt.isSet)(oo.proof)?(0,dt.bytesFromBase64)(oo.proof):new Uint8Array,proofHeight:(0,dt.isSet)(oo.proofHeight)?nt.Height.fromJSON(oo.proofHeight):void 0}},toJSON(oo){const Ro={};return oo.connectionPaths?Ro.connectionPaths=oo.connectionPaths.map(pt=>pt):Ro.connectionPaths=[],oo.proof!==void 0&&(Ro.proof=(0,dt.base64FromBytes)(oo.proof!==void 0?oo.proof:new Uint8Array)),oo.proofHeight!==void 0&&(Ro.proofHeight=oo.proofHeight?nt.Height.toJSON(oo.proofHeight):void 0),Ro},fromPartial(oo){var pt;const Ro=Nt();return Ro.connectionPaths=((pt=oo.connectionPaths)==null?void 0:pt.map(lo=>lo))||[],Ro.proof=oo.proof??new Uint8Array,Ro.proofHeight=oo.proofHeight!==void 0&&oo.proofHeight!==null?nt.Height.fromPartial(oo.proofHeight):void 0,Ro}};function eo(){return{connectionId:""}}_e.QueryConnectionClientStateRequest={encode(oo,Ro=kt.Writer.create()){return oo.connectionId!==""&&Ro.uint32(10).string(oo.connectionId),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=eo();for(;pt.pos>>3){case 1:so.connectionId=pt.string();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{connectionId:(0,dt.isSet)(oo.connectionId)?String(oo.connectionId):""}},toJSON(oo){const Ro={};return oo.connectionId!==void 0&&(Ro.connectionId=oo.connectionId),Ro},fromPartial(oo){const Ro=eo();return Ro.connectionId=oo.connectionId??"",Ro}};function Wt(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:void 0}}_e.QueryConnectionClientStateResponse={encode(oo,Ro=kt.Writer.create()){return oo.identifiedClientState!==void 0&&nt.IdentifiedClientState.encode(oo.identifiedClientState,Ro.uint32(10).fork()).ldelim(),oo.proof.length!==0&&Ro.uint32(18).bytes(oo.proof),oo.proofHeight!==void 0&&nt.Height.encode(oo.proofHeight,Ro.uint32(26).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=Wt();for(;pt.pos>>3){case 1:so.identifiedClientState=nt.IdentifiedClientState.decode(pt,pt.uint32());break;case 2:so.proof=pt.bytes();break;case 3:so.proofHeight=nt.Height.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{identifiedClientState:(0,dt.isSet)(oo.identifiedClientState)?nt.IdentifiedClientState.fromJSON(oo.identifiedClientState):void 0,proof:(0,dt.isSet)(oo.proof)?(0,dt.bytesFromBase64)(oo.proof):new Uint8Array,proofHeight:(0,dt.isSet)(oo.proofHeight)?nt.Height.fromJSON(oo.proofHeight):void 0}},toJSON(oo){const Ro={};return oo.identifiedClientState!==void 0&&(Ro.identifiedClientState=oo.identifiedClientState?nt.IdentifiedClientState.toJSON(oo.identifiedClientState):void 0),oo.proof!==void 0&&(Ro.proof=(0,dt.base64FromBytes)(oo.proof!==void 0?oo.proof:new Uint8Array)),oo.proofHeight!==void 0&&(Ro.proofHeight=oo.proofHeight?nt.Height.toJSON(oo.proofHeight):void 0),Ro},fromPartial(oo){const Ro=Wt();return Ro.identifiedClientState=oo.identifiedClientState!==void 0&&oo.identifiedClientState!==null?nt.IdentifiedClientState.fromPartial(oo.identifiedClientState):void 0,Ro.proof=oo.proof??new Uint8Array,Ro.proofHeight=oo.proofHeight!==void 0&&oo.proofHeight!==null?nt.Height.fromPartial(oo.proofHeight):void 0,Ro}};function St(){return{connectionId:"",revisionNumber:dt.Long.UZERO,revisionHeight:dt.Long.UZERO}}_e.QueryConnectionConsensusStateRequest={encode(oo,Ro=kt.Writer.create()){return oo.connectionId!==""&&Ro.uint32(10).string(oo.connectionId),oo.revisionNumber.isZero()||Ro.uint32(16).uint64(oo.revisionNumber),oo.revisionHeight.isZero()||Ro.uint32(24).uint64(oo.revisionHeight),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=St();for(;pt.pos>>3){case 1:so.connectionId=pt.string();break;case 2:so.revisionNumber=pt.uint64();break;case 3:so.revisionHeight=pt.uint64();break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{connectionId:(0,dt.isSet)(oo.connectionId)?String(oo.connectionId):"",revisionNumber:(0,dt.isSet)(oo.revisionNumber)?dt.Long.fromValue(oo.revisionNumber):dt.Long.UZERO,revisionHeight:(0,dt.isSet)(oo.revisionHeight)?dt.Long.fromValue(oo.revisionHeight):dt.Long.UZERO}},toJSON(oo){const Ro={};return oo.connectionId!==void 0&&(Ro.connectionId=oo.connectionId),oo.revisionNumber!==void 0&&(Ro.revisionNumber=(oo.revisionNumber||dt.Long.UZERO).toString()),oo.revisionHeight!==void 0&&(Ro.revisionHeight=(oo.revisionHeight||dt.Long.UZERO).toString()),Ro},fromPartial(oo){const Ro=St();return Ro.connectionId=oo.connectionId??"",Ro.revisionNumber=oo.revisionNumber!==void 0&&oo.revisionNumber!==null?dt.Long.fromValue(oo.revisionNumber):dt.Long.UZERO,Ro.revisionHeight=oo.revisionHeight!==void 0&&oo.revisionHeight!==null?dt.Long.fromValue(oo.revisionHeight):dt.Long.UZERO,Ro}};function Ot(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:void 0}}_e.QueryConnectionConsensusStateResponse={encode(oo,Ro=kt.Writer.create()){return oo.consensusState!==void 0&&st.Any.encode(oo.consensusState,Ro.uint32(10).fork()).ldelim(),oo.clientId!==""&&Ro.uint32(18).string(oo.clientId),oo.proof.length!==0&&Ro.uint32(26).bytes(oo.proof),oo.proofHeight!==void 0&&nt.Height.encode(oo.proofHeight,Ro.uint32(34).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=Ot();for(;pt.pos>>3){case 1:so.consensusState=st.Any.decode(pt,pt.uint32());break;case 2:so.clientId=pt.string();break;case 3:so.proof=pt.bytes();break;case 4:so.proofHeight=nt.Height.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{consensusState:(0,dt.isSet)(oo.consensusState)?st.Any.fromJSON(oo.consensusState):void 0,clientId:(0,dt.isSet)(oo.clientId)?String(oo.clientId):"",proof:(0,dt.isSet)(oo.proof)?(0,dt.bytesFromBase64)(oo.proof):new Uint8Array,proofHeight:(0,dt.isSet)(oo.proofHeight)?nt.Height.fromJSON(oo.proofHeight):void 0}},toJSON(oo){const Ro={};return oo.consensusState!==void 0&&(Ro.consensusState=oo.consensusState?st.Any.toJSON(oo.consensusState):void 0),oo.clientId!==void 0&&(Ro.clientId=oo.clientId),oo.proof!==void 0&&(Ro.proof=(0,dt.base64FromBytes)(oo.proof!==void 0?oo.proof:new Uint8Array)),oo.proofHeight!==void 0&&(Ro.proofHeight=oo.proofHeight?nt.Height.toJSON(oo.proofHeight):void 0),Ro},fromPartial(oo){const Ro=Ot();return Ro.consensusState=oo.consensusState!==void 0&&oo.consensusState!==null?st.Any.fromPartial(oo.consensusState):void 0,Ro.clientId=oo.clientId??"",Ro.proof=oo.proof??new Uint8Array,Ro.proofHeight=oo.proofHeight!==void 0&&oo.proofHeight!==null?nt.Height.fromPartial(oo.proofHeight):void 0,Ro}};function uo(){return{}}_e.QueryConnectionParamsRequest={encode(oo,Ro=kt.Writer.create()){return Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=uo();for(;pt.pos>>3){default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{}},toJSON(oo){return{}},fromPartial(oo){return uo()}};function go(){return{params:void 0}}_e.QueryConnectionParamsResponse={encode(oo,Ro=kt.Writer.create()){return oo.params!==void 0&&nt.Params.encode(oo.params,Ro.uint32(10).fork()).ldelim(),Ro},decode(oo,Ro){const pt=oo instanceof kt.Reader?oo:new kt.Reader(oo);let lo=Ro===void 0?pt.len:pt.pos+Ro;const so=go();for(;pt.pos>>3){case 1:so.params=nt.Params.decode(pt,pt.uint32());break;default:pt.skipType(wo&7);break}}return so},fromJSON(oo){return{params:(0,dt.isSet)(oo.params)?nt.Params.fromJSON(oo.params):void 0}},toJSON(oo){const Ro={};return oo.params!==void 0&&(Ro.params=oo.params?nt.Params.toJSON(oo.params):void 0),Ro},fromPartial(oo){const Ro=go();return Ro.params=oo.params!==void 0&&oo.params!==null?nt.Params.fromPartial(oo.params):void 0,Ro}};class bo{constructor(Ro){this.rpc=Ro,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(Ro){const pt=_e.QueryConnectionRequest.encode(Ro).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connection",pt).then(lo=>_e.QueryConnectionResponse.decode(new kt.Reader(lo)))}Connections(Ro={pagination:void 0}){const pt=_e.QueryConnectionsRequest.encode(Ro).finish();return this.rpc.request("ibc.core.connection.v1.Query","Connections",pt).then(lo=>_e.QueryConnectionsResponse.decode(new kt.Reader(lo)))}ClientConnections(Ro){const pt=_e.QueryClientConnectionsRequest.encode(Ro).finish();return this.rpc.request("ibc.core.connection.v1.Query","ClientConnections",pt).then(lo=>_e.QueryClientConnectionsResponse.decode(new kt.Reader(lo)))}ConnectionClientState(Ro){const pt=_e.QueryConnectionClientStateRequest.encode(Ro).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionClientState",pt).then(lo=>_e.QueryConnectionClientStateResponse.decode(new kt.Reader(lo)))}ConnectionConsensusState(Ro){const pt=_e.QueryConnectionConsensusStateRequest.encode(Ro).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionConsensusState",pt).then(lo=>_e.QueryConnectionConsensusStateResponse.decode(new kt.Reader(lo)))}ConnectionParams(Ro={}){const pt=_e.QueryConnectionParamsRequest.encode(Ro).finish();return this.rpc.request("ibc.core.connection.v1.Query","ConnectionParams",pt).then(lo=>_e.QueryConnectionParamsResponse.decode(new kt.Reader(lo)))}}_e.QueryClientImpl=bo})(query$4);var tendermint={},types$6={},proof={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ro,ht,po,no){no===void 0&&(no=po);var Nt=Object.getOwnPropertyDescriptor(ht,po);(!Nt||("get"in Nt?!ht.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return ht[po]}}),Object.defineProperty(ro,no,Nt)}:function(ro,ht,po,no){no===void 0&&(no=po),ro[no]=ht[po]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ro,ht){Object.defineProperty(ro,"default",{enumerable:!0,value:ht})}:function(ro,ht){ro.default=ht}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(ro){if(ro&&ro.__esModule)return ro;var ht={};if(ro!=null)for(var po in ro)po!=="default"&&Object.prototype.hasOwnProperty.call(ro,po)&&cr(ht,ro,po);return gr(ht,ro),ht};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProofOps=_e.ProofOp=_e.DominoOp=_e.ValueOp=_e.Proof=_e.protobufPackage=void 0;const Vr=helpers,tt=Cr(minimal);_e.protobufPackage="tendermint.crypto";function nt(){return{total:Vr.Long.ZERO,index:Vr.Long.ZERO,leafHash:new Uint8Array,aunts:[]}}_e.Proof={encode(ro,ht=tt.Writer.create()){ro.total.isZero()||ht.uint32(8).int64(ro.total),ro.index.isZero()||ht.uint32(16).int64(ro.index),ro.leafHash.length!==0&&ht.uint32(26).bytes(ro.leafHash);for(const po of ro.aunts)ht.uint32(34).bytes(po);return ht},decode(ro,ht){const po=ro instanceof tt.Reader?ro:new tt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=nt();for(;po.pos>>3){case 1:Nt.total=po.int64();break;case 2:Nt.index=po.int64();break;case 3:Nt.leafHash=po.bytes();break;case 4:Nt.aunts.push(po.bytes());break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{total:(0,Vr.isSet)(ro.total)?Vr.Long.fromValue(ro.total):Vr.Long.ZERO,index:(0,Vr.isSet)(ro.index)?Vr.Long.fromValue(ro.index):Vr.Long.ZERO,leafHash:(0,Vr.isSet)(ro.leafHash)?(0,Vr.bytesFromBase64)(ro.leafHash):new Uint8Array,aunts:Array.isArray(ro==null?void 0:ro.aunts)?ro.aunts.map(ht=>(0,Vr.bytesFromBase64)(ht)):[]}},toJSON(ro){const ht={};return ro.total!==void 0&&(ht.total=(ro.total||Vr.Long.ZERO).toString()),ro.index!==void 0&&(ht.index=(ro.index||Vr.Long.ZERO).toString()),ro.leafHash!==void 0&&(ht.leafHash=(0,Vr.base64FromBytes)(ro.leafHash!==void 0?ro.leafHash:new Uint8Array)),ro.aunts?ht.aunts=ro.aunts.map(po=>(0,Vr.base64FromBytes)(po!==void 0?po:new Uint8Array)):ht.aunts=[],ht},fromPartial(ro){var po;const ht=nt();return ht.total=ro.total!==void 0&&ro.total!==null?Vr.Long.fromValue(ro.total):Vr.Long.ZERO,ht.index=ro.index!==void 0&&ro.index!==null?Vr.Long.fromValue(ro.index):Vr.Long.ZERO,ht.leafHash=ro.leafHash??new Uint8Array,ht.aunts=((po=ro.aunts)==null?void 0:po.map(no=>no))||[],ht}};function st(){return{key:new Uint8Array,proof:void 0}}_e.ValueOp={encode(ro,ht=tt.Writer.create()){return ro.key.length!==0&&ht.uint32(10).bytes(ro.key),ro.proof!==void 0&&_e.Proof.encode(ro.proof,ht.uint32(18).fork()).ldelim(),ht},decode(ro,ht){const po=ro instanceof tt.Reader?ro:new tt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=st();for(;po.pos>>3){case 1:Nt.key=po.bytes();break;case 2:Nt.proof=_e.Proof.decode(po,po.uint32());break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{key:(0,Vr.isSet)(ro.key)?(0,Vr.bytesFromBase64)(ro.key):new Uint8Array,proof:(0,Vr.isSet)(ro.proof)?_e.Proof.fromJSON(ro.proof):void 0}},toJSON(ro){const ht={};return ro.key!==void 0&&(ht.key=(0,Vr.base64FromBytes)(ro.key!==void 0?ro.key:new Uint8Array)),ro.proof!==void 0&&(ht.proof=ro.proof?_e.Proof.toJSON(ro.proof):void 0),ht},fromPartial(ro){const ht=st();return ht.key=ro.key??new Uint8Array,ht.proof=ro.proof!==void 0&&ro.proof!==null?_e.Proof.fromPartial(ro.proof):void 0,ht}};function dt(){return{key:"",input:"",output:""}}_e.DominoOp={encode(ro,ht=tt.Writer.create()){return ro.key!==""&&ht.uint32(10).string(ro.key),ro.input!==""&&ht.uint32(18).string(ro.input),ro.output!==""&&ht.uint32(26).string(ro.output),ht},decode(ro,ht){const po=ro instanceof tt.Reader?ro:new tt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=dt();for(;po.pos>>3){case 1:Nt.key=po.string();break;case 2:Nt.input=po.string();break;case 3:Nt.output=po.string();break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{key:(0,Vr.isSet)(ro.key)?String(ro.key):"",input:(0,Vr.isSet)(ro.input)?String(ro.input):"",output:(0,Vr.isSet)(ro.output)?String(ro.output):""}},toJSON(ro){const ht={};return ro.key!==void 0&&(ht.key=ro.key),ro.input!==void 0&&(ht.input=ro.input),ro.output!==void 0&&(ht.output=ro.output),ht},fromPartial(ro){const ht=dt();return ht.key=ro.key??"",ht.input=ro.input??"",ht.output=ro.output??"",ht}};function kt(){return{type:"",key:new Uint8Array,data:new Uint8Array}}_e.ProofOp={encode(ro,ht=tt.Writer.create()){return ro.type!==""&&ht.uint32(10).string(ro.type),ro.key.length!==0&&ht.uint32(18).bytes(ro.key),ro.data.length!==0&&ht.uint32(26).bytes(ro.data),ht},decode(ro,ht){const po=ro instanceof tt.Reader?ro:new tt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=kt();for(;po.pos>>3){case 1:Nt.type=po.string();break;case 2:Nt.key=po.bytes();break;case 3:Nt.data=po.bytes();break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{type:(0,Vr.isSet)(ro.type)?String(ro.type):"",key:(0,Vr.isSet)(ro.key)?(0,Vr.bytesFromBase64)(ro.key):new Uint8Array,data:(0,Vr.isSet)(ro.data)?(0,Vr.bytesFromBase64)(ro.data):new Uint8Array}},toJSON(ro){const ht={};return ro.type!==void 0&&(ht.type=ro.type),ro.key!==void 0&&(ht.key=(0,Vr.base64FromBytes)(ro.key!==void 0?ro.key:new Uint8Array)),ro.data!==void 0&&(ht.data=(0,Vr.base64FromBytes)(ro.data!==void 0?ro.data:new Uint8Array)),ht},fromPartial(ro){const ht=kt();return ht.type=ro.type??"",ht.key=ro.key??new Uint8Array,ht.data=ro.data??new Uint8Array,ht}};function qt(){return{ops:[]}}_e.ProofOps={encode(ro,ht=tt.Writer.create()){for(const po of ro.ops)_e.ProofOp.encode(po,ht.uint32(10).fork()).ldelim();return ht},decode(ro,ht){const po=ro instanceof tt.Reader?ro:new tt.Reader(ro);let no=ht===void 0?po.len:po.pos+ht;const Nt=qt();for(;po.pos>>3){case 1:Nt.ops.push(_e.ProofOp.decode(po,po.uint32()));break;default:po.skipType(eo&7);break}}return Nt},fromJSON(ro){return{ops:Array.isArray(ro==null?void 0:ro.ops)?ro.ops.map(ht=>_e.ProofOp.fromJSON(ht)):[]}},toJSON(ro){const ht={};return ro.ops?ht.ops=ro.ops.map(po=>po?_e.ProofOp.toJSON(po):void 0):ht.ops=[],ht},fromPartial(ro){var po;const ht=qt();return ht.ops=((po=ro.ops)==null?void 0:po.map(no=>_e.ProofOp.fromPartial(no)))||[],ht}}})(proof);var types$5={},__createBinding$9=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$9=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$9=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$9(cr,_e,gr);return __setModuleDefault$9(cr,_e),cr};Object.defineProperty(types$5,"__esModule",{value:!0}),types$5.Consensus=types$5.App=types$5.protobufPackage=void 0;const helpers_1$4=helpers,_m0$4=__importStar$9(minimal);types$5.protobufPackage="tendermint.version";function createBaseApp(){return{protocol:helpers_1$4.Long.UZERO,software:""}}types$5.App={encode(_e,cr=_m0$4.Writer.create()){return _e.protocol.isZero()||cr.uint32(8).uint64(_e.protocol),_e.software!==""&&cr.uint32(18).string(_e.software),cr},decode(_e,cr){const gr=_e instanceof _m0$4.Reader?_e:new _m0$4.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseApp();for(;gr.pos>>3){case 1:Vr.protocol=gr.uint64();break;case 2:Vr.software=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{protocol:(0,helpers_1$4.isSet)(_e.protocol)?helpers_1$4.Long.fromValue(_e.protocol):helpers_1$4.Long.UZERO,software:(0,helpers_1$4.isSet)(_e.software)?String(_e.software):""}},toJSON(_e){const cr={};return _e.protocol!==void 0&&(cr.protocol=(_e.protocol||helpers_1$4.Long.UZERO).toString()),_e.software!==void 0&&(cr.software=_e.software),cr},fromPartial(_e){const cr=createBaseApp();return cr.protocol=_e.protocol!==void 0&&_e.protocol!==null?helpers_1$4.Long.fromValue(_e.protocol):helpers_1$4.Long.UZERO,cr.software=_e.software??"",cr}};function createBaseConsensus(){return{block:helpers_1$4.Long.UZERO,app:helpers_1$4.Long.UZERO}}types$5.Consensus={encode(_e,cr=_m0$4.Writer.create()){return _e.block.isZero()||cr.uint32(8).uint64(_e.block),_e.app.isZero()||cr.uint32(16).uint64(_e.app),cr},decode(_e,cr){const gr=_e instanceof _m0$4.Reader?_e:new _m0$4.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseConsensus();for(;gr.pos>>3){case 1:Vr.block=gr.uint64();break;case 2:Vr.app=gr.uint64();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{block:(0,helpers_1$4.isSet)(_e.block)?helpers_1$4.Long.fromValue(_e.block):helpers_1$4.Long.UZERO,app:(0,helpers_1$4.isSet)(_e.app)?helpers_1$4.Long.fromValue(_e.app):helpers_1$4.Long.UZERO}},toJSON(_e){const cr={};return _e.block!==void 0&&(cr.block=(_e.block||helpers_1$4.Long.UZERO).toString()),_e.app!==void 0&&(cr.app=(_e.app||helpers_1$4.Long.UZERO).toString()),cr},fromPartial(_e){const cr=createBaseConsensus();return cr.block=_e.block!==void 0&&_e.block!==null?helpers_1$4.Long.fromValue(_e.block):helpers_1$4.Long.UZERO,cr.app=_e.app!==void 0&&_e.app!==null?helpers_1$4.Long.fromValue(_e.app):helpers_1$4.Long.UZERO,cr}};var validator$4={},keys$4={},__createBinding$8=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$8=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$8=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$8(cr,_e,gr);return __setModuleDefault$8(cr,_e),cr};Object.defineProperty(keys$4,"__esModule",{value:!0}),keys$4.PublicKey=keys$4.protobufPackage=void 0;const _m0$3=__importStar$8(minimal),helpers_1$3=helpers;keys$4.protobufPackage="tendermint.crypto";function createBasePublicKey(){return{ed25519:void 0,secp256k1:void 0}}keys$4.PublicKey={encode(_e,cr=_m0$3.Writer.create()){return _e.ed25519!==void 0&&cr.uint32(10).bytes(_e.ed25519),_e.secp256k1!==void 0&&cr.uint32(18).bytes(_e.secp256k1),cr},decode(_e,cr){const gr=_e instanceof _m0$3.Reader?_e:new _m0$3.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBasePublicKey();for(;gr.pos>>3){case 1:Vr.ed25519=gr.bytes();break;case 2:Vr.secp256k1=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{ed25519:(0,helpers_1$3.isSet)(_e.ed25519)?(0,helpers_1$3.bytesFromBase64)(_e.ed25519):void 0,secp256k1:(0,helpers_1$3.isSet)(_e.secp256k1)?(0,helpers_1$3.bytesFromBase64)(_e.secp256k1):void 0}},toJSON(_e){const cr={};return _e.ed25519!==void 0&&(cr.ed25519=_e.ed25519!==void 0?(0,helpers_1$3.base64FromBytes)(_e.ed25519):void 0),_e.secp256k1!==void 0&&(cr.secp256k1=_e.secp256k1!==void 0?(0,helpers_1$3.base64FromBytes)(_e.secp256k1):void 0),cr},fromPartial(_e){const cr=createBasePublicKey();return cr.ed25519=_e.ed25519??void 0,cr.secp256k1=_e.secp256k1??void 0,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(qt,ro,ht,po){po===void 0&&(po=ht);var no=Object.getOwnPropertyDescriptor(ro,ht);(!no||("get"in no?!ro.__esModule:no.writable||no.configurable))&&(no={enumerable:!0,get:function(){return ro[ht]}}),Object.defineProperty(qt,po,no)}:function(qt,ro,ht,po){po===void 0&&(po=ht),qt[po]=ro[ht]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(qt,ro){Object.defineProperty(qt,"default",{enumerable:!0,value:ro})}:function(qt,ro){qt.default=ro}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(qt){if(qt&&qt.__esModule)return qt;var ro={};if(qt!=null)for(var ht in qt)ht!=="default"&&Object.prototype.hasOwnProperty.call(qt,ht)&&cr(ro,qt,ht);return gr(ro,qt),ro};Object.defineProperty(_e,"__esModule",{value:!0}),_e.SimpleValidator=_e.Validator=_e.ValidatorSet=_e.protobufPackage=void 0;const Vr=keys$4,tt=helpers,nt=Cr(minimal);_e.protobufPackage="tendermint.types";function st(){return{validators:[],proposer:void 0,totalVotingPower:tt.Long.ZERO}}_e.ValidatorSet={encode(qt,ro=nt.Writer.create()){for(const ht of qt.validators)_e.Validator.encode(ht,ro.uint32(10).fork()).ldelim();return qt.proposer!==void 0&&_e.Validator.encode(qt.proposer,ro.uint32(18).fork()).ldelim(),qt.totalVotingPower.isZero()||ro.uint32(24).int64(qt.totalVotingPower),ro},decode(qt,ro){const ht=qt instanceof nt.Reader?qt:new nt.Reader(qt);let po=ro===void 0?ht.len:ht.pos+ro;const no=st();for(;ht.pos>>3){case 1:no.validators.push(_e.Validator.decode(ht,ht.uint32()));break;case 2:no.proposer=_e.Validator.decode(ht,ht.uint32());break;case 3:no.totalVotingPower=ht.int64();break;default:ht.skipType(Nt&7);break}}return no},fromJSON(qt){return{validators:Array.isArray(qt==null?void 0:qt.validators)?qt.validators.map(ro=>_e.Validator.fromJSON(ro)):[],proposer:(0,tt.isSet)(qt.proposer)?_e.Validator.fromJSON(qt.proposer):void 0,totalVotingPower:(0,tt.isSet)(qt.totalVotingPower)?tt.Long.fromValue(qt.totalVotingPower):tt.Long.ZERO}},toJSON(qt){const ro={};return qt.validators?ro.validators=qt.validators.map(ht=>ht?_e.Validator.toJSON(ht):void 0):ro.validators=[],qt.proposer!==void 0&&(ro.proposer=qt.proposer?_e.Validator.toJSON(qt.proposer):void 0),qt.totalVotingPower!==void 0&&(ro.totalVotingPower=(qt.totalVotingPower||tt.Long.ZERO).toString()),ro},fromPartial(qt){var ht;const ro=st();return ro.validators=((ht=qt.validators)==null?void 0:ht.map(po=>_e.Validator.fromPartial(po)))||[],ro.proposer=qt.proposer!==void 0&&qt.proposer!==null?_e.Validator.fromPartial(qt.proposer):void 0,ro.totalVotingPower=qt.totalVotingPower!==void 0&&qt.totalVotingPower!==null?tt.Long.fromValue(qt.totalVotingPower):tt.Long.ZERO,ro}};function dt(){return{address:new Uint8Array,pubKey:void 0,votingPower:tt.Long.ZERO,proposerPriority:tt.Long.ZERO}}_e.Validator={encode(qt,ro=nt.Writer.create()){return qt.address.length!==0&&ro.uint32(10).bytes(qt.address),qt.pubKey!==void 0&&Vr.PublicKey.encode(qt.pubKey,ro.uint32(18).fork()).ldelim(),qt.votingPower.isZero()||ro.uint32(24).int64(qt.votingPower),qt.proposerPriority.isZero()||ro.uint32(32).int64(qt.proposerPriority),ro},decode(qt,ro){const ht=qt instanceof nt.Reader?qt:new nt.Reader(qt);let po=ro===void 0?ht.len:ht.pos+ro;const no=dt();for(;ht.pos>>3){case 1:no.address=ht.bytes();break;case 2:no.pubKey=Vr.PublicKey.decode(ht,ht.uint32());break;case 3:no.votingPower=ht.int64();break;case 4:no.proposerPriority=ht.int64();break;default:ht.skipType(Nt&7);break}}return no},fromJSON(qt){return{address:(0,tt.isSet)(qt.address)?(0,tt.bytesFromBase64)(qt.address):new Uint8Array,pubKey:(0,tt.isSet)(qt.pubKey)?Vr.PublicKey.fromJSON(qt.pubKey):void 0,votingPower:(0,tt.isSet)(qt.votingPower)?tt.Long.fromValue(qt.votingPower):tt.Long.ZERO,proposerPriority:(0,tt.isSet)(qt.proposerPriority)?tt.Long.fromValue(qt.proposerPriority):tt.Long.ZERO}},toJSON(qt){const ro={};return qt.address!==void 0&&(ro.address=(0,tt.base64FromBytes)(qt.address!==void 0?qt.address:new Uint8Array)),qt.pubKey!==void 0&&(ro.pubKey=qt.pubKey?Vr.PublicKey.toJSON(qt.pubKey):void 0),qt.votingPower!==void 0&&(ro.votingPower=(qt.votingPower||tt.Long.ZERO).toString()),qt.proposerPriority!==void 0&&(ro.proposerPriority=(qt.proposerPriority||tt.Long.ZERO).toString()),ro},fromPartial(qt){const ro=dt();return ro.address=qt.address??new Uint8Array,ro.pubKey=qt.pubKey!==void 0&&qt.pubKey!==null?Vr.PublicKey.fromPartial(qt.pubKey):void 0,ro.votingPower=qt.votingPower!==void 0&&qt.votingPower!==null?tt.Long.fromValue(qt.votingPower):tt.Long.ZERO,ro.proposerPriority=qt.proposerPriority!==void 0&&qt.proposerPriority!==null?tt.Long.fromValue(qt.proposerPriority):tt.Long.ZERO,ro}};function kt(){return{pubKey:void 0,votingPower:tt.Long.ZERO}}_e.SimpleValidator={encode(qt,ro=nt.Writer.create()){return qt.pubKey!==void 0&&Vr.PublicKey.encode(qt.pubKey,ro.uint32(10).fork()).ldelim(),qt.votingPower.isZero()||ro.uint32(16).int64(qt.votingPower),ro},decode(qt,ro){const ht=qt instanceof nt.Reader?qt:new nt.Reader(qt);let po=ro===void 0?ht.len:ht.pos+ro;const no=kt();for(;ht.pos>>3){case 1:no.pubKey=Vr.PublicKey.decode(ht,ht.uint32());break;case 2:no.votingPower=ht.int64();break;default:ht.skipType(Nt&7);break}}return no},fromJSON(qt){return{pubKey:(0,tt.isSet)(qt.pubKey)?Vr.PublicKey.fromJSON(qt.pubKey):void 0,votingPower:(0,tt.isSet)(qt.votingPower)?tt.Long.fromValue(qt.votingPower):tt.Long.ZERO}},toJSON(qt){const ro={};return qt.pubKey!==void 0&&(ro.pubKey=qt.pubKey?Vr.PublicKey.toJSON(qt.pubKey):void 0),qt.votingPower!==void 0&&(ro.votingPower=(qt.votingPower||tt.Long.ZERO).toString()),ro},fromPartial(qt){const ro=kt();return ro.pubKey=qt.pubKey!==void 0&&qt.pubKey!==null?Vr.PublicKey.fromPartial(qt.pubKey):void 0,ro.votingPower=qt.votingPower!==void 0&&qt.votingPower!==null?tt.Long.fromValue(qt.votingPower):tt.Long.ZERO,ro}}}(validator$4),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,Mt,ho,io){io===void 0&&(io=ho);var co=Object.getOwnPropertyDescriptor(Mt,ho);(!co||("get"in co?!Mt.__esModule:co.writable||co.configurable))&&(co={enumerable:!0,get:function(){return Mt[ho]}}),Object.defineProperty(xt,io,co)}:function(xt,Mt,ho,io){io===void 0&&(io=ho),xt[io]=Mt[ho]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(xt,Mt){Object.defineProperty(xt,"default",{enumerable:!0,value:Mt})}:function(xt,Mt){xt.default=Mt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(xt){if(xt&&xt.__esModule)return xt;var Mt={};if(xt!=null)for(var ho in xt)ho!=="default"&&Object.prototype.hasOwnProperty.call(xt,ho)&&cr(Mt,xt,ho);return gr(Mt,xt),Mt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TxProof=_e.BlockMeta=_e.LightBlock=_e.SignedHeader=_e.Proposal=_e.CommitSig=_e.Commit=_e.Vote=_e.Data=_e.Header=_e.BlockID=_e.Part=_e.PartSetHeader=_e.signedMsgTypeToJSON=_e.signedMsgTypeFromJSON=_e.SignedMsgType=_e.blockIDFlagToJSON=_e.blockIDFlagFromJSON=_e.BlockIDFlag=_e.protobufPackage=void 0;const Vr=proof,tt=types$5,nt=timestamp,st=validator$4,dt=helpers,kt=Cr(minimal);_e.protobufPackage="tendermint.types";var qt;(function(xt){xt[xt.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",xt[xt.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",xt[xt.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",xt[xt.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",xt[xt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qt=_e.BlockIDFlag||(_e.BlockIDFlag={}));function ro(xt){switch(xt){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return qt.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return qt.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return qt.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return qt.BLOCK_ID_FLAG_NIL;case-1:case"UNRECOGNIZED":default:return qt.UNRECOGNIZED}}_e.blockIDFlagFromJSON=ro;function ht(xt){switch(xt){case qt.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case qt.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case qt.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case qt.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";case qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.blockIDFlagToJSON=ht;var po;(function(xt){xt[xt.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",xt[xt.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",xt[xt.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",xt[xt.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",xt[xt.UNRECOGNIZED=-1]="UNRECOGNIZED"})(po=_e.SignedMsgType||(_e.SignedMsgType={}));function no(xt){switch(xt){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return po.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return po.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return po.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return po.SIGNED_MSG_TYPE_PROPOSAL;case-1:case"UNRECOGNIZED":default:return po.UNRECOGNIZED}}_e.signedMsgTypeFromJSON=no;function Nt(xt){switch(xt){case po.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case po.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case po.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case po.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";case po.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.signedMsgTypeToJSON=Nt;function eo(){return{total:0,hash:new Uint8Array}}_e.PartSetHeader={encode(xt,Mt=kt.Writer.create()){return xt.total!==0&&Mt.uint32(8).uint32(xt.total),xt.hash.length!==0&&Mt.uint32(18).bytes(xt.hash),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=eo();for(;ho.pos>>3){case 1:co.total=ho.uint32();break;case 2:co.hash=ho.bytes();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{total:(0,dt.isSet)(xt.total)?Number(xt.total):0,hash:(0,dt.isSet)(xt.hash)?(0,dt.bytesFromBase64)(xt.hash):new Uint8Array}},toJSON(xt){const Mt={};return xt.total!==void 0&&(Mt.total=Math.round(xt.total)),xt.hash!==void 0&&(Mt.hash=(0,dt.base64FromBytes)(xt.hash!==void 0?xt.hash:new Uint8Array)),Mt},fromPartial(xt){const Mt=eo();return Mt.total=xt.total??0,Mt.hash=xt.hash??new Uint8Array,Mt}};function Wt(){return{index:0,bytes:new Uint8Array,proof:void 0}}_e.Part={encode(xt,Mt=kt.Writer.create()){return xt.index!==0&&Mt.uint32(8).uint32(xt.index),xt.bytes.length!==0&&Mt.uint32(18).bytes(xt.bytes),xt.proof!==void 0&&Vr.Proof.encode(xt.proof,Mt.uint32(26).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=Wt();for(;ho.pos>>3){case 1:co.index=ho.uint32();break;case 2:co.bytes=ho.bytes();break;case 3:co.proof=Vr.Proof.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{index:(0,dt.isSet)(xt.index)?Number(xt.index):0,bytes:(0,dt.isSet)(xt.bytes)?(0,dt.bytesFromBase64)(xt.bytes):new Uint8Array,proof:(0,dt.isSet)(xt.proof)?Vr.Proof.fromJSON(xt.proof):void 0}},toJSON(xt){const Mt={};return xt.index!==void 0&&(Mt.index=Math.round(xt.index)),xt.bytes!==void 0&&(Mt.bytes=(0,dt.base64FromBytes)(xt.bytes!==void 0?xt.bytes:new Uint8Array)),xt.proof!==void 0&&(Mt.proof=xt.proof?Vr.Proof.toJSON(xt.proof):void 0),Mt},fromPartial(xt){const Mt=Wt();return Mt.index=xt.index??0,Mt.bytes=xt.bytes??new Uint8Array,Mt.proof=xt.proof!==void 0&&xt.proof!==null?Vr.Proof.fromPartial(xt.proof):void 0,Mt}};function St(){return{hash:new Uint8Array,partSetHeader:void 0}}_e.BlockID={encode(xt,Mt=kt.Writer.create()){return xt.hash.length!==0&&Mt.uint32(10).bytes(xt.hash),xt.partSetHeader!==void 0&&_e.PartSetHeader.encode(xt.partSetHeader,Mt.uint32(18).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=St();for(;ho.pos>>3){case 1:co.hash=ho.bytes();break;case 2:co.partSetHeader=_e.PartSetHeader.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{hash:(0,dt.isSet)(xt.hash)?(0,dt.bytesFromBase64)(xt.hash):new Uint8Array,partSetHeader:(0,dt.isSet)(xt.partSetHeader)?_e.PartSetHeader.fromJSON(xt.partSetHeader):void 0}},toJSON(xt){const Mt={};return xt.hash!==void 0&&(Mt.hash=(0,dt.base64FromBytes)(xt.hash!==void 0?xt.hash:new Uint8Array)),xt.partSetHeader!==void 0&&(Mt.partSetHeader=xt.partSetHeader?_e.PartSetHeader.toJSON(xt.partSetHeader):void 0),Mt},fromPartial(xt){const Mt=St();return Mt.hash=xt.hash??new Uint8Array,Mt.partSetHeader=xt.partSetHeader!==void 0&&xt.partSetHeader!==null?_e.PartSetHeader.fromPartial(xt.partSetHeader):void 0,Mt}};function Ot(){return{version:void 0,chainId:"",height:dt.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}}_e.Header={encode(xt,Mt=kt.Writer.create()){return xt.version!==void 0&&tt.Consensus.encode(xt.version,Mt.uint32(10).fork()).ldelim(),xt.chainId!==""&&Mt.uint32(18).string(xt.chainId),xt.height.isZero()||Mt.uint32(24).int64(xt.height),xt.time!==void 0&&nt.Timestamp.encode(xt.time,Mt.uint32(34).fork()).ldelim(),xt.lastBlockId!==void 0&&_e.BlockID.encode(xt.lastBlockId,Mt.uint32(42).fork()).ldelim(),xt.lastCommitHash.length!==0&&Mt.uint32(50).bytes(xt.lastCommitHash),xt.dataHash.length!==0&&Mt.uint32(58).bytes(xt.dataHash),xt.validatorsHash.length!==0&&Mt.uint32(66).bytes(xt.validatorsHash),xt.nextValidatorsHash.length!==0&&Mt.uint32(74).bytes(xt.nextValidatorsHash),xt.consensusHash.length!==0&&Mt.uint32(82).bytes(xt.consensusHash),xt.appHash.length!==0&&Mt.uint32(90).bytes(xt.appHash),xt.lastResultsHash.length!==0&&Mt.uint32(98).bytes(xt.lastResultsHash),xt.evidenceHash.length!==0&&Mt.uint32(106).bytes(xt.evidenceHash),xt.proposerAddress.length!==0&&Mt.uint32(114).bytes(xt.proposerAddress),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=Ot();for(;ho.pos>>3){case 1:co.version=tt.Consensus.decode(ho,ho.uint32());break;case 2:co.chainId=ho.string();break;case 3:co.height=ho.int64();break;case 4:co.time=nt.Timestamp.decode(ho,ho.uint32());break;case 5:co.lastBlockId=_e.BlockID.decode(ho,ho.uint32());break;case 6:co.lastCommitHash=ho.bytes();break;case 7:co.dataHash=ho.bytes();break;case 8:co.validatorsHash=ho.bytes();break;case 9:co.nextValidatorsHash=ho.bytes();break;case 10:co.consensusHash=ho.bytes();break;case 11:co.appHash=ho.bytes();break;case 12:co.lastResultsHash=ho.bytes();break;case 13:co.evidenceHash=ho.bytes();break;case 14:co.proposerAddress=ho.bytes();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{version:(0,dt.isSet)(xt.version)?tt.Consensus.fromJSON(xt.version):void 0,chainId:(0,dt.isSet)(xt.chainId)?String(xt.chainId):"",height:(0,dt.isSet)(xt.height)?dt.Long.fromValue(xt.height):dt.Long.ZERO,time:(0,dt.isSet)(xt.time)?(0,dt.fromJsonTimestamp)(xt.time):void 0,lastBlockId:(0,dt.isSet)(xt.lastBlockId)?_e.BlockID.fromJSON(xt.lastBlockId):void 0,lastCommitHash:(0,dt.isSet)(xt.lastCommitHash)?(0,dt.bytesFromBase64)(xt.lastCommitHash):new Uint8Array,dataHash:(0,dt.isSet)(xt.dataHash)?(0,dt.bytesFromBase64)(xt.dataHash):new Uint8Array,validatorsHash:(0,dt.isSet)(xt.validatorsHash)?(0,dt.bytesFromBase64)(xt.validatorsHash):new Uint8Array,nextValidatorsHash:(0,dt.isSet)(xt.nextValidatorsHash)?(0,dt.bytesFromBase64)(xt.nextValidatorsHash):new Uint8Array,consensusHash:(0,dt.isSet)(xt.consensusHash)?(0,dt.bytesFromBase64)(xt.consensusHash):new Uint8Array,appHash:(0,dt.isSet)(xt.appHash)?(0,dt.bytesFromBase64)(xt.appHash):new Uint8Array,lastResultsHash:(0,dt.isSet)(xt.lastResultsHash)?(0,dt.bytesFromBase64)(xt.lastResultsHash):new Uint8Array,evidenceHash:(0,dt.isSet)(xt.evidenceHash)?(0,dt.bytesFromBase64)(xt.evidenceHash):new Uint8Array,proposerAddress:(0,dt.isSet)(xt.proposerAddress)?(0,dt.bytesFromBase64)(xt.proposerAddress):new Uint8Array}},toJSON(xt){const Mt={};return xt.version!==void 0&&(Mt.version=xt.version?tt.Consensus.toJSON(xt.version):void 0),xt.chainId!==void 0&&(Mt.chainId=xt.chainId),xt.height!==void 0&&(Mt.height=(xt.height||dt.Long.ZERO).toString()),xt.time!==void 0&&(Mt.time=(0,dt.fromTimestamp)(xt.time).toISOString()),xt.lastBlockId!==void 0&&(Mt.lastBlockId=xt.lastBlockId?_e.BlockID.toJSON(xt.lastBlockId):void 0),xt.lastCommitHash!==void 0&&(Mt.lastCommitHash=(0,dt.base64FromBytes)(xt.lastCommitHash!==void 0?xt.lastCommitHash:new Uint8Array)),xt.dataHash!==void 0&&(Mt.dataHash=(0,dt.base64FromBytes)(xt.dataHash!==void 0?xt.dataHash:new Uint8Array)),xt.validatorsHash!==void 0&&(Mt.validatorsHash=(0,dt.base64FromBytes)(xt.validatorsHash!==void 0?xt.validatorsHash:new Uint8Array)),xt.nextValidatorsHash!==void 0&&(Mt.nextValidatorsHash=(0,dt.base64FromBytes)(xt.nextValidatorsHash!==void 0?xt.nextValidatorsHash:new Uint8Array)),xt.consensusHash!==void 0&&(Mt.consensusHash=(0,dt.base64FromBytes)(xt.consensusHash!==void 0?xt.consensusHash:new Uint8Array)),xt.appHash!==void 0&&(Mt.appHash=(0,dt.base64FromBytes)(xt.appHash!==void 0?xt.appHash:new Uint8Array)),xt.lastResultsHash!==void 0&&(Mt.lastResultsHash=(0,dt.base64FromBytes)(xt.lastResultsHash!==void 0?xt.lastResultsHash:new Uint8Array)),xt.evidenceHash!==void 0&&(Mt.evidenceHash=(0,dt.base64FromBytes)(xt.evidenceHash!==void 0?xt.evidenceHash:new Uint8Array)),xt.proposerAddress!==void 0&&(Mt.proposerAddress=(0,dt.base64FromBytes)(xt.proposerAddress!==void 0?xt.proposerAddress:new Uint8Array)),Mt},fromPartial(xt){const Mt=Ot();return Mt.version=xt.version!==void 0&&xt.version!==null?tt.Consensus.fromPartial(xt.version):void 0,Mt.chainId=xt.chainId??"",Mt.height=xt.height!==void 0&&xt.height!==null?dt.Long.fromValue(xt.height):dt.Long.ZERO,Mt.time=xt.time!==void 0&&xt.time!==null?nt.Timestamp.fromPartial(xt.time):void 0,Mt.lastBlockId=xt.lastBlockId!==void 0&&xt.lastBlockId!==null?_e.BlockID.fromPartial(xt.lastBlockId):void 0,Mt.lastCommitHash=xt.lastCommitHash??new Uint8Array,Mt.dataHash=xt.dataHash??new Uint8Array,Mt.validatorsHash=xt.validatorsHash??new Uint8Array,Mt.nextValidatorsHash=xt.nextValidatorsHash??new Uint8Array,Mt.consensusHash=xt.consensusHash??new Uint8Array,Mt.appHash=xt.appHash??new Uint8Array,Mt.lastResultsHash=xt.lastResultsHash??new Uint8Array,Mt.evidenceHash=xt.evidenceHash??new Uint8Array,Mt.proposerAddress=xt.proposerAddress??new Uint8Array,Mt}};function uo(){return{txs:[]}}_e.Data={encode(xt,Mt=kt.Writer.create()){for(const ho of xt.txs)Mt.uint32(10).bytes(ho);return Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=uo();for(;ho.pos>>3){case 1:co.txs.push(ho.bytes());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{txs:Array.isArray(xt==null?void 0:xt.txs)?xt.txs.map(Mt=>(0,dt.bytesFromBase64)(Mt)):[]}},toJSON(xt){const Mt={};return xt.txs?Mt.txs=xt.txs.map(ho=>(0,dt.base64FromBytes)(ho!==void 0?ho:new Uint8Array)):Mt.txs=[],Mt},fromPartial(xt){var ho;const Mt=uo();return Mt.txs=((ho=xt.txs)==null?void 0:ho.map(io=>io))||[],Mt}};function go(){return{type:0,height:dt.Long.ZERO,round:0,blockId:void 0,timestamp:void 0,validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}_e.Vote={encode(xt,Mt=kt.Writer.create()){return xt.type!==0&&Mt.uint32(8).int32(xt.type),xt.height.isZero()||Mt.uint32(16).int64(xt.height),xt.round!==0&&Mt.uint32(24).int32(xt.round),xt.blockId!==void 0&&_e.BlockID.encode(xt.blockId,Mt.uint32(34).fork()).ldelim(),xt.timestamp!==void 0&&nt.Timestamp.encode(xt.timestamp,Mt.uint32(42).fork()).ldelim(),xt.validatorAddress.length!==0&&Mt.uint32(50).bytes(xt.validatorAddress),xt.validatorIndex!==0&&Mt.uint32(56).int32(xt.validatorIndex),xt.signature.length!==0&&Mt.uint32(66).bytes(xt.signature),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=go();for(;ho.pos>>3){case 1:co.type=ho.int32();break;case 2:co.height=ho.int64();break;case 3:co.round=ho.int32();break;case 4:co.blockId=_e.BlockID.decode(ho,ho.uint32());break;case 5:co.timestamp=nt.Timestamp.decode(ho,ho.uint32());break;case 6:co.validatorAddress=ho.bytes();break;case 7:co.validatorIndex=ho.int32();break;case 8:co.signature=ho.bytes();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{type:(0,dt.isSet)(xt.type)?no(xt.type):0,height:(0,dt.isSet)(xt.height)?dt.Long.fromValue(xt.height):dt.Long.ZERO,round:(0,dt.isSet)(xt.round)?Number(xt.round):0,blockId:(0,dt.isSet)(xt.blockId)?_e.BlockID.fromJSON(xt.blockId):void 0,timestamp:(0,dt.isSet)(xt.timestamp)?(0,dt.fromJsonTimestamp)(xt.timestamp):void 0,validatorAddress:(0,dt.isSet)(xt.validatorAddress)?(0,dt.bytesFromBase64)(xt.validatorAddress):new Uint8Array,validatorIndex:(0,dt.isSet)(xt.validatorIndex)?Number(xt.validatorIndex):0,signature:(0,dt.isSet)(xt.signature)?(0,dt.bytesFromBase64)(xt.signature):new Uint8Array}},toJSON(xt){const Mt={};return xt.type!==void 0&&(Mt.type=Nt(xt.type)),xt.height!==void 0&&(Mt.height=(xt.height||dt.Long.ZERO).toString()),xt.round!==void 0&&(Mt.round=Math.round(xt.round)),xt.blockId!==void 0&&(Mt.blockId=xt.blockId?_e.BlockID.toJSON(xt.blockId):void 0),xt.timestamp!==void 0&&(Mt.timestamp=(0,dt.fromTimestamp)(xt.timestamp).toISOString()),xt.validatorAddress!==void 0&&(Mt.validatorAddress=(0,dt.base64FromBytes)(xt.validatorAddress!==void 0?xt.validatorAddress:new Uint8Array)),xt.validatorIndex!==void 0&&(Mt.validatorIndex=Math.round(xt.validatorIndex)),xt.signature!==void 0&&(Mt.signature=(0,dt.base64FromBytes)(xt.signature!==void 0?xt.signature:new Uint8Array)),Mt},fromPartial(xt){const Mt=go();return Mt.type=xt.type??0,Mt.height=xt.height!==void 0&&xt.height!==null?dt.Long.fromValue(xt.height):dt.Long.ZERO,Mt.round=xt.round??0,Mt.blockId=xt.blockId!==void 0&&xt.blockId!==null?_e.BlockID.fromPartial(xt.blockId):void 0,Mt.timestamp=xt.timestamp!==void 0&&xt.timestamp!==null?nt.Timestamp.fromPartial(xt.timestamp):void 0,Mt.validatorAddress=xt.validatorAddress??new Uint8Array,Mt.validatorIndex=xt.validatorIndex??0,Mt.signature=xt.signature??new Uint8Array,Mt}};function bo(){return{height:dt.Long.ZERO,round:0,blockId:void 0,signatures:[]}}_e.Commit={encode(xt,Mt=kt.Writer.create()){xt.height.isZero()||Mt.uint32(8).int64(xt.height),xt.round!==0&&Mt.uint32(16).int32(xt.round),xt.blockId!==void 0&&_e.BlockID.encode(xt.blockId,Mt.uint32(26).fork()).ldelim();for(const ho of xt.signatures)_e.CommitSig.encode(ho,Mt.uint32(34).fork()).ldelim();return Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=bo();for(;ho.pos>>3){case 1:co.height=ho.int64();break;case 2:co.round=ho.int32();break;case 3:co.blockId=_e.BlockID.decode(ho,ho.uint32());break;case 4:co.signatures.push(_e.CommitSig.decode(ho,ho.uint32()));break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{height:(0,dt.isSet)(xt.height)?dt.Long.fromValue(xt.height):dt.Long.ZERO,round:(0,dt.isSet)(xt.round)?Number(xt.round):0,blockId:(0,dt.isSet)(xt.blockId)?_e.BlockID.fromJSON(xt.blockId):void 0,signatures:Array.isArray(xt==null?void 0:xt.signatures)?xt.signatures.map(Mt=>_e.CommitSig.fromJSON(Mt)):[]}},toJSON(xt){const Mt={};return xt.height!==void 0&&(Mt.height=(xt.height||dt.Long.ZERO).toString()),xt.round!==void 0&&(Mt.round=Math.round(xt.round)),xt.blockId!==void 0&&(Mt.blockId=xt.blockId?_e.BlockID.toJSON(xt.blockId):void 0),xt.signatures?Mt.signatures=xt.signatures.map(ho=>ho?_e.CommitSig.toJSON(ho):void 0):Mt.signatures=[],Mt},fromPartial(xt){var ho;const Mt=bo();return Mt.height=xt.height!==void 0&&xt.height!==null?dt.Long.fromValue(xt.height):dt.Long.ZERO,Mt.round=xt.round??0,Mt.blockId=xt.blockId!==void 0&&xt.blockId!==null?_e.BlockID.fromPartial(xt.blockId):void 0,Mt.signatures=((ho=xt.signatures)==null?void 0:ho.map(io=>_e.CommitSig.fromPartial(io)))||[],Mt}};function oo(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}_e.CommitSig={encode(xt,Mt=kt.Writer.create()){return xt.blockIdFlag!==0&&Mt.uint32(8).int32(xt.blockIdFlag),xt.validatorAddress.length!==0&&Mt.uint32(18).bytes(xt.validatorAddress),xt.timestamp!==void 0&&nt.Timestamp.encode(xt.timestamp,Mt.uint32(26).fork()).ldelim(),xt.signature.length!==0&&Mt.uint32(34).bytes(xt.signature),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=oo();for(;ho.pos>>3){case 1:co.blockIdFlag=ho.int32();break;case 2:co.validatorAddress=ho.bytes();break;case 3:co.timestamp=nt.Timestamp.decode(ho,ho.uint32());break;case 4:co.signature=ho.bytes();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{blockIdFlag:(0,dt.isSet)(xt.blockIdFlag)?ro(xt.blockIdFlag):0,validatorAddress:(0,dt.isSet)(xt.validatorAddress)?(0,dt.bytesFromBase64)(xt.validatorAddress):new Uint8Array,timestamp:(0,dt.isSet)(xt.timestamp)?(0,dt.fromJsonTimestamp)(xt.timestamp):void 0,signature:(0,dt.isSet)(xt.signature)?(0,dt.bytesFromBase64)(xt.signature):new Uint8Array}},toJSON(xt){const Mt={};return xt.blockIdFlag!==void 0&&(Mt.blockIdFlag=ht(xt.blockIdFlag)),xt.validatorAddress!==void 0&&(Mt.validatorAddress=(0,dt.base64FromBytes)(xt.validatorAddress!==void 0?xt.validatorAddress:new Uint8Array)),xt.timestamp!==void 0&&(Mt.timestamp=(0,dt.fromTimestamp)(xt.timestamp).toISOString()),xt.signature!==void 0&&(Mt.signature=(0,dt.base64FromBytes)(xt.signature!==void 0?xt.signature:new Uint8Array)),Mt},fromPartial(xt){const Mt=oo();return Mt.blockIdFlag=xt.blockIdFlag??0,Mt.validatorAddress=xt.validatorAddress??new Uint8Array,Mt.timestamp=xt.timestamp!==void 0&&xt.timestamp!==null?nt.Timestamp.fromPartial(xt.timestamp):void 0,Mt.signature=xt.signature??new Uint8Array,Mt}};function Ro(){return{type:0,height:dt.Long.ZERO,round:0,polRound:0,blockId:void 0,timestamp:void 0,signature:new Uint8Array}}_e.Proposal={encode(xt,Mt=kt.Writer.create()){return xt.type!==0&&Mt.uint32(8).int32(xt.type),xt.height.isZero()||Mt.uint32(16).int64(xt.height),xt.round!==0&&Mt.uint32(24).int32(xt.round),xt.polRound!==0&&Mt.uint32(32).int32(xt.polRound),xt.blockId!==void 0&&_e.BlockID.encode(xt.blockId,Mt.uint32(42).fork()).ldelim(),xt.timestamp!==void 0&&nt.Timestamp.encode(xt.timestamp,Mt.uint32(50).fork()).ldelim(),xt.signature.length!==0&&Mt.uint32(58).bytes(xt.signature),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=Ro();for(;ho.pos>>3){case 1:co.type=ho.int32();break;case 2:co.height=ho.int64();break;case 3:co.round=ho.int32();break;case 4:co.polRound=ho.int32();break;case 5:co.blockId=_e.BlockID.decode(ho,ho.uint32());break;case 6:co.timestamp=nt.Timestamp.decode(ho,ho.uint32());break;case 7:co.signature=ho.bytes();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{type:(0,dt.isSet)(xt.type)?no(xt.type):0,height:(0,dt.isSet)(xt.height)?dt.Long.fromValue(xt.height):dt.Long.ZERO,round:(0,dt.isSet)(xt.round)?Number(xt.round):0,polRound:(0,dt.isSet)(xt.polRound)?Number(xt.polRound):0,blockId:(0,dt.isSet)(xt.blockId)?_e.BlockID.fromJSON(xt.blockId):void 0,timestamp:(0,dt.isSet)(xt.timestamp)?(0,dt.fromJsonTimestamp)(xt.timestamp):void 0,signature:(0,dt.isSet)(xt.signature)?(0,dt.bytesFromBase64)(xt.signature):new Uint8Array}},toJSON(xt){const Mt={};return xt.type!==void 0&&(Mt.type=Nt(xt.type)),xt.height!==void 0&&(Mt.height=(xt.height||dt.Long.ZERO).toString()),xt.round!==void 0&&(Mt.round=Math.round(xt.round)),xt.polRound!==void 0&&(Mt.polRound=Math.round(xt.polRound)),xt.blockId!==void 0&&(Mt.blockId=xt.blockId?_e.BlockID.toJSON(xt.blockId):void 0),xt.timestamp!==void 0&&(Mt.timestamp=(0,dt.fromTimestamp)(xt.timestamp).toISOString()),xt.signature!==void 0&&(Mt.signature=(0,dt.base64FromBytes)(xt.signature!==void 0?xt.signature:new Uint8Array)),Mt},fromPartial(xt){const Mt=Ro();return Mt.type=xt.type??0,Mt.height=xt.height!==void 0&&xt.height!==null?dt.Long.fromValue(xt.height):dt.Long.ZERO,Mt.round=xt.round??0,Mt.polRound=xt.polRound??0,Mt.blockId=xt.blockId!==void 0&&xt.blockId!==null?_e.BlockID.fromPartial(xt.blockId):void 0,Mt.timestamp=xt.timestamp!==void 0&&xt.timestamp!==null?nt.Timestamp.fromPartial(xt.timestamp):void 0,Mt.signature=xt.signature??new Uint8Array,Mt}};function pt(){return{header:void 0,commit:void 0}}_e.SignedHeader={encode(xt,Mt=kt.Writer.create()){return xt.header!==void 0&&_e.Header.encode(xt.header,Mt.uint32(10).fork()).ldelim(),xt.commit!==void 0&&_e.Commit.encode(xt.commit,Mt.uint32(18).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=pt();for(;ho.pos>>3){case 1:co.header=_e.Header.decode(ho,ho.uint32());break;case 2:co.commit=_e.Commit.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{header:(0,dt.isSet)(xt.header)?_e.Header.fromJSON(xt.header):void 0,commit:(0,dt.isSet)(xt.commit)?_e.Commit.fromJSON(xt.commit):void 0}},toJSON(xt){const Mt={};return xt.header!==void 0&&(Mt.header=xt.header?_e.Header.toJSON(xt.header):void 0),xt.commit!==void 0&&(Mt.commit=xt.commit?_e.Commit.toJSON(xt.commit):void 0),Mt},fromPartial(xt){const Mt=pt();return Mt.header=xt.header!==void 0&&xt.header!==null?_e.Header.fromPartial(xt.header):void 0,Mt.commit=xt.commit!==void 0&&xt.commit!==null?_e.Commit.fromPartial(xt.commit):void 0,Mt}};function lo(){return{signedHeader:void 0,validatorSet:void 0}}_e.LightBlock={encode(xt,Mt=kt.Writer.create()){return xt.signedHeader!==void 0&&_e.SignedHeader.encode(xt.signedHeader,Mt.uint32(10).fork()).ldelim(),xt.validatorSet!==void 0&&st.ValidatorSet.encode(xt.validatorSet,Mt.uint32(18).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=lo();for(;ho.pos>>3){case 1:co.signedHeader=_e.SignedHeader.decode(ho,ho.uint32());break;case 2:co.validatorSet=st.ValidatorSet.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{signedHeader:(0,dt.isSet)(xt.signedHeader)?_e.SignedHeader.fromJSON(xt.signedHeader):void 0,validatorSet:(0,dt.isSet)(xt.validatorSet)?st.ValidatorSet.fromJSON(xt.validatorSet):void 0}},toJSON(xt){const Mt={};return xt.signedHeader!==void 0&&(Mt.signedHeader=xt.signedHeader?_e.SignedHeader.toJSON(xt.signedHeader):void 0),xt.validatorSet!==void 0&&(Mt.validatorSet=xt.validatorSet?st.ValidatorSet.toJSON(xt.validatorSet):void 0),Mt},fromPartial(xt){const Mt=lo();return Mt.signedHeader=xt.signedHeader!==void 0&&xt.signedHeader!==null?_e.SignedHeader.fromPartial(xt.signedHeader):void 0,Mt.validatorSet=xt.validatorSet!==void 0&&xt.validatorSet!==null?st.ValidatorSet.fromPartial(xt.validatorSet):void 0,Mt}};function so(){return{blockId:void 0,blockSize:dt.Long.ZERO,header:void 0,numTxs:dt.Long.ZERO}}_e.BlockMeta={encode(xt,Mt=kt.Writer.create()){return xt.blockId!==void 0&&_e.BlockID.encode(xt.blockId,Mt.uint32(10).fork()).ldelim(),xt.blockSize.isZero()||Mt.uint32(16).int64(xt.blockSize),xt.header!==void 0&&_e.Header.encode(xt.header,Mt.uint32(26).fork()).ldelim(),xt.numTxs.isZero()||Mt.uint32(32).int64(xt.numTxs),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=so();for(;ho.pos>>3){case 1:co.blockId=_e.BlockID.decode(ho,ho.uint32());break;case 2:co.blockSize=ho.int64();break;case 3:co.header=_e.Header.decode(ho,ho.uint32());break;case 4:co.numTxs=ho.int64();break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{blockId:(0,dt.isSet)(xt.blockId)?_e.BlockID.fromJSON(xt.blockId):void 0,blockSize:(0,dt.isSet)(xt.blockSize)?dt.Long.fromValue(xt.blockSize):dt.Long.ZERO,header:(0,dt.isSet)(xt.header)?_e.Header.fromJSON(xt.header):void 0,numTxs:(0,dt.isSet)(xt.numTxs)?dt.Long.fromValue(xt.numTxs):dt.Long.ZERO}},toJSON(xt){const Mt={};return xt.blockId!==void 0&&(Mt.blockId=xt.blockId?_e.BlockID.toJSON(xt.blockId):void 0),xt.blockSize!==void 0&&(Mt.blockSize=(xt.blockSize||dt.Long.ZERO).toString()),xt.header!==void 0&&(Mt.header=xt.header?_e.Header.toJSON(xt.header):void 0),xt.numTxs!==void 0&&(Mt.numTxs=(xt.numTxs||dt.Long.ZERO).toString()),Mt},fromPartial(xt){const Mt=so();return Mt.blockId=xt.blockId!==void 0&&xt.blockId!==null?_e.BlockID.fromPartial(xt.blockId):void 0,Mt.blockSize=xt.blockSize!==void 0&&xt.blockSize!==null?dt.Long.fromValue(xt.blockSize):dt.Long.ZERO,Mt.header=xt.header!==void 0&&xt.header!==null?_e.Header.fromPartial(xt.header):void 0,Mt.numTxs=xt.numTxs!==void 0&&xt.numTxs!==null?dt.Long.fromValue(xt.numTxs):dt.Long.ZERO,Mt}};function wo(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}_e.TxProof={encode(xt,Mt=kt.Writer.create()){return xt.rootHash.length!==0&&Mt.uint32(10).bytes(xt.rootHash),xt.data.length!==0&&Mt.uint32(18).bytes(xt.data),xt.proof!==void 0&&Vr.Proof.encode(xt.proof,Mt.uint32(26).fork()).ldelim(),Mt},decode(xt,Mt){const ho=xt instanceof kt.Reader?xt:new kt.Reader(xt);let io=Mt===void 0?ho.len:ho.pos+Mt;const co=wo();for(;ho.pos>>3){case 1:co.rootHash=ho.bytes();break;case 2:co.data=ho.bytes();break;case 3:co.proof=Vr.Proof.decode(ho,ho.uint32());break;default:ho.skipType(mo&7);break}}return co},fromJSON(xt){return{rootHash:(0,dt.isSet)(xt.rootHash)?(0,dt.bytesFromBase64)(xt.rootHash):new Uint8Array,data:(0,dt.isSet)(xt.data)?(0,dt.bytesFromBase64)(xt.data):new Uint8Array,proof:(0,dt.isSet)(xt.proof)?Vr.Proof.fromJSON(xt.proof):void 0}},toJSON(xt){const Mt={};return xt.rootHash!==void 0&&(Mt.rootHash=(0,dt.base64FromBytes)(xt.rootHash!==void 0?xt.rootHash:new Uint8Array)),xt.data!==void 0&&(Mt.data=(0,dt.base64FromBytes)(xt.data!==void 0?xt.data:new Uint8Array)),xt.proof!==void 0&&(Mt.proof=xt.proof?Vr.Proof.toJSON(xt.proof):void 0),Mt},fromPartial(xt){const Mt=wo();return Mt.rootHash=xt.rootHash??new Uint8Array,Mt.data=xt.data??new Uint8Array,Mt.proof=xt.proof!==void 0&&xt.proof!==null?Vr.Proof.fromPartial(xt.proof):void 0,Mt}}}(types$6),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,Ot,uo,go){go===void 0&&(go=uo);var bo=Object.getOwnPropertyDescriptor(Ot,uo);(!bo||("get"in bo?!Ot.__esModule:bo.writable||bo.configurable))&&(bo={enumerable:!0,get:function(){return Ot[uo]}}),Object.defineProperty(St,go,bo)}:function(St,Ot,uo,go){go===void 0&&(go=uo),St[go]=Ot[uo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,Ot){Object.defineProperty(St,"default",{enumerable:!0,value:Ot})}:function(St,Ot){St.default=Ot}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var Ot={};if(St!=null)for(var uo in St)uo!=="default"&&Object.prototype.hasOwnProperty.call(St,uo)&&cr(Ot,St,uo);return gr(Ot,St),Ot};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Fraction=_e.Header=_e.Misbehaviour=_e.ConsensusState=_e.ClientState=_e.protobufPackage=void 0;const Vr=duration$1,tt=client,nt=proofs,st=timestamp,dt=commitment,kt=types$6,qt=validator$4,ro=helpers,ht=Cr(minimal);_e.protobufPackage="ibc.lightclients.tendermint.v1";function po(){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}}_e.ClientState={encode(St,Ot=ht.Writer.create()){St.chainId!==""&&Ot.uint32(10).string(St.chainId),St.trustLevel!==void 0&&_e.Fraction.encode(St.trustLevel,Ot.uint32(18).fork()).ldelim(),St.trustingPeriod!==void 0&&Vr.Duration.encode(St.trustingPeriod,Ot.uint32(26).fork()).ldelim(),St.unbondingPeriod!==void 0&&Vr.Duration.encode(St.unbondingPeriod,Ot.uint32(34).fork()).ldelim(),St.maxClockDrift!==void 0&&Vr.Duration.encode(St.maxClockDrift,Ot.uint32(42).fork()).ldelim(),St.frozenHeight!==void 0&&tt.Height.encode(St.frozenHeight,Ot.uint32(50).fork()).ldelim(),St.latestHeight!==void 0&&tt.Height.encode(St.latestHeight,Ot.uint32(58).fork()).ldelim();for(const uo of St.proofSpecs)nt.ProofSpec.encode(uo,Ot.uint32(66).fork()).ldelim();for(const uo of St.upgradePath)Ot.uint32(74).string(uo);return St.allowUpdateAfterExpiry===!0&&Ot.uint32(80).bool(St.allowUpdateAfterExpiry),St.allowUpdateAfterMisbehaviour===!0&&Ot.uint32(88).bool(St.allowUpdateAfterMisbehaviour),Ot},decode(St,Ot){const uo=St instanceof ht.Reader?St:new ht.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=po();for(;uo.pos>>3){case 1:bo.chainId=uo.string();break;case 2:bo.trustLevel=_e.Fraction.decode(uo,uo.uint32());break;case 3:bo.trustingPeriod=Vr.Duration.decode(uo,uo.uint32());break;case 4:bo.unbondingPeriod=Vr.Duration.decode(uo,uo.uint32());break;case 5:bo.maxClockDrift=Vr.Duration.decode(uo,uo.uint32());break;case 6:bo.frozenHeight=tt.Height.decode(uo,uo.uint32());break;case 7:bo.latestHeight=tt.Height.decode(uo,uo.uint32());break;case 8:bo.proofSpecs.push(nt.ProofSpec.decode(uo,uo.uint32()));break;case 9:bo.upgradePath.push(uo.string());break;case 10:bo.allowUpdateAfterExpiry=uo.bool();break;case 11:bo.allowUpdateAfterMisbehaviour=uo.bool();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{chainId:(0,ro.isSet)(St.chainId)?String(St.chainId):"",trustLevel:(0,ro.isSet)(St.trustLevel)?_e.Fraction.fromJSON(St.trustLevel):void 0,trustingPeriod:(0,ro.isSet)(St.trustingPeriod)?Vr.Duration.fromJSON(St.trustingPeriod):void 0,unbondingPeriod:(0,ro.isSet)(St.unbondingPeriod)?Vr.Duration.fromJSON(St.unbondingPeriod):void 0,maxClockDrift:(0,ro.isSet)(St.maxClockDrift)?Vr.Duration.fromJSON(St.maxClockDrift):void 0,frozenHeight:(0,ro.isSet)(St.frozenHeight)?tt.Height.fromJSON(St.frozenHeight):void 0,latestHeight:(0,ro.isSet)(St.latestHeight)?tt.Height.fromJSON(St.latestHeight):void 0,proofSpecs:Array.isArray(St==null?void 0:St.proofSpecs)?St.proofSpecs.map(Ot=>nt.ProofSpec.fromJSON(Ot)):[],upgradePath:Array.isArray(St==null?void 0:St.upgradePath)?St.upgradePath.map(Ot=>String(Ot)):[],allowUpdateAfterExpiry:(0,ro.isSet)(St.allowUpdateAfterExpiry)?!!St.allowUpdateAfterExpiry:!1,allowUpdateAfterMisbehaviour:(0,ro.isSet)(St.allowUpdateAfterMisbehaviour)?!!St.allowUpdateAfterMisbehaviour:!1}},toJSON(St){const Ot={};return St.chainId!==void 0&&(Ot.chainId=St.chainId),St.trustLevel!==void 0&&(Ot.trustLevel=St.trustLevel?_e.Fraction.toJSON(St.trustLevel):void 0),St.trustingPeriod!==void 0&&(Ot.trustingPeriod=St.trustingPeriod?Vr.Duration.toJSON(St.trustingPeriod):void 0),St.unbondingPeriod!==void 0&&(Ot.unbondingPeriod=St.unbondingPeriod?Vr.Duration.toJSON(St.unbondingPeriod):void 0),St.maxClockDrift!==void 0&&(Ot.maxClockDrift=St.maxClockDrift?Vr.Duration.toJSON(St.maxClockDrift):void 0),St.frozenHeight!==void 0&&(Ot.frozenHeight=St.frozenHeight?tt.Height.toJSON(St.frozenHeight):void 0),St.latestHeight!==void 0&&(Ot.latestHeight=St.latestHeight?tt.Height.toJSON(St.latestHeight):void 0),St.proofSpecs?Ot.proofSpecs=St.proofSpecs.map(uo=>uo?nt.ProofSpec.toJSON(uo):void 0):Ot.proofSpecs=[],St.upgradePath?Ot.upgradePath=St.upgradePath.map(uo=>uo):Ot.upgradePath=[],St.allowUpdateAfterExpiry!==void 0&&(Ot.allowUpdateAfterExpiry=St.allowUpdateAfterExpiry),St.allowUpdateAfterMisbehaviour!==void 0&&(Ot.allowUpdateAfterMisbehaviour=St.allowUpdateAfterMisbehaviour),Ot},fromPartial(St){var uo,go;const Ot=po();return Ot.chainId=St.chainId??"",Ot.trustLevel=St.trustLevel!==void 0&&St.trustLevel!==null?_e.Fraction.fromPartial(St.trustLevel):void 0,Ot.trustingPeriod=St.trustingPeriod!==void 0&&St.trustingPeriod!==null?Vr.Duration.fromPartial(St.trustingPeriod):void 0,Ot.unbondingPeriod=St.unbondingPeriod!==void 0&&St.unbondingPeriod!==null?Vr.Duration.fromPartial(St.unbondingPeriod):void 0,Ot.maxClockDrift=St.maxClockDrift!==void 0&&St.maxClockDrift!==null?Vr.Duration.fromPartial(St.maxClockDrift):void 0,Ot.frozenHeight=St.frozenHeight!==void 0&&St.frozenHeight!==null?tt.Height.fromPartial(St.frozenHeight):void 0,Ot.latestHeight=St.latestHeight!==void 0&&St.latestHeight!==null?tt.Height.fromPartial(St.latestHeight):void 0,Ot.proofSpecs=((uo=St.proofSpecs)==null?void 0:uo.map(bo=>nt.ProofSpec.fromPartial(bo)))||[],Ot.upgradePath=((go=St.upgradePath)==null?void 0:go.map(bo=>bo))||[],Ot.allowUpdateAfterExpiry=St.allowUpdateAfterExpiry??!1,Ot.allowUpdateAfterMisbehaviour=St.allowUpdateAfterMisbehaviour??!1,Ot}};function no(){return{timestamp:void 0,root:void 0,nextValidatorsHash:new Uint8Array}}_e.ConsensusState={encode(St,Ot=ht.Writer.create()){return St.timestamp!==void 0&&st.Timestamp.encode(St.timestamp,Ot.uint32(10).fork()).ldelim(),St.root!==void 0&&dt.MerkleRoot.encode(St.root,Ot.uint32(18).fork()).ldelim(),St.nextValidatorsHash.length!==0&&Ot.uint32(26).bytes(St.nextValidatorsHash),Ot},decode(St,Ot){const uo=St instanceof ht.Reader?St:new ht.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=no();for(;uo.pos>>3){case 1:bo.timestamp=st.Timestamp.decode(uo,uo.uint32());break;case 2:bo.root=dt.MerkleRoot.decode(uo,uo.uint32());break;case 3:bo.nextValidatorsHash=uo.bytes();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{timestamp:(0,ro.isSet)(St.timestamp)?(0,ro.fromJsonTimestamp)(St.timestamp):void 0,root:(0,ro.isSet)(St.root)?dt.MerkleRoot.fromJSON(St.root):void 0,nextValidatorsHash:(0,ro.isSet)(St.nextValidatorsHash)?(0,ro.bytesFromBase64)(St.nextValidatorsHash):new Uint8Array}},toJSON(St){const Ot={};return St.timestamp!==void 0&&(Ot.timestamp=(0,ro.fromTimestamp)(St.timestamp).toISOString()),St.root!==void 0&&(Ot.root=St.root?dt.MerkleRoot.toJSON(St.root):void 0),St.nextValidatorsHash!==void 0&&(Ot.nextValidatorsHash=(0,ro.base64FromBytes)(St.nextValidatorsHash!==void 0?St.nextValidatorsHash:new Uint8Array)),Ot},fromPartial(St){const Ot=no();return Ot.timestamp=St.timestamp!==void 0&&St.timestamp!==null?st.Timestamp.fromPartial(St.timestamp):void 0,Ot.root=St.root!==void 0&&St.root!==null?dt.MerkleRoot.fromPartial(St.root):void 0,Ot.nextValidatorsHash=St.nextValidatorsHash??new Uint8Array,Ot}};function Nt(){return{clientId:"",header1:void 0,header2:void 0}}_e.Misbehaviour={encode(St,Ot=ht.Writer.create()){return St.clientId!==""&&Ot.uint32(10).string(St.clientId),St.header1!==void 0&&_e.Header.encode(St.header1,Ot.uint32(18).fork()).ldelim(),St.header2!==void 0&&_e.Header.encode(St.header2,Ot.uint32(26).fork()).ldelim(),Ot},decode(St,Ot){const uo=St instanceof ht.Reader?St:new ht.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=Nt();for(;uo.pos>>3){case 1:bo.clientId=uo.string();break;case 2:bo.header1=_e.Header.decode(uo,uo.uint32());break;case 3:bo.header2=_e.Header.decode(uo,uo.uint32());break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{clientId:(0,ro.isSet)(St.clientId)?String(St.clientId):"",header1:(0,ro.isSet)(St.header1)?_e.Header.fromJSON(St.header1):void 0,header2:(0,ro.isSet)(St.header2)?_e.Header.fromJSON(St.header2):void 0}},toJSON(St){const Ot={};return St.clientId!==void 0&&(Ot.clientId=St.clientId),St.header1!==void 0&&(Ot.header1=St.header1?_e.Header.toJSON(St.header1):void 0),St.header2!==void 0&&(Ot.header2=St.header2?_e.Header.toJSON(St.header2):void 0),Ot},fromPartial(St){const Ot=Nt();return Ot.clientId=St.clientId??"",Ot.header1=St.header1!==void 0&&St.header1!==null?_e.Header.fromPartial(St.header1):void 0,Ot.header2=St.header2!==void 0&&St.header2!==null?_e.Header.fromPartial(St.header2):void 0,Ot}};function eo(){return{signedHeader:void 0,validatorSet:void 0,trustedHeight:void 0,trustedValidators:void 0}}_e.Header={encode(St,Ot=ht.Writer.create()){return St.signedHeader!==void 0&&kt.SignedHeader.encode(St.signedHeader,Ot.uint32(10).fork()).ldelim(),St.validatorSet!==void 0&&qt.ValidatorSet.encode(St.validatorSet,Ot.uint32(18).fork()).ldelim(),St.trustedHeight!==void 0&&tt.Height.encode(St.trustedHeight,Ot.uint32(26).fork()).ldelim(),St.trustedValidators!==void 0&&qt.ValidatorSet.encode(St.trustedValidators,Ot.uint32(34).fork()).ldelim(),Ot},decode(St,Ot){const uo=St instanceof ht.Reader?St:new ht.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=eo();for(;uo.pos>>3){case 1:bo.signedHeader=kt.SignedHeader.decode(uo,uo.uint32());break;case 2:bo.validatorSet=qt.ValidatorSet.decode(uo,uo.uint32());break;case 3:bo.trustedHeight=tt.Height.decode(uo,uo.uint32());break;case 4:bo.trustedValidators=qt.ValidatorSet.decode(uo,uo.uint32());break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{signedHeader:(0,ro.isSet)(St.signedHeader)?kt.SignedHeader.fromJSON(St.signedHeader):void 0,validatorSet:(0,ro.isSet)(St.validatorSet)?qt.ValidatorSet.fromJSON(St.validatorSet):void 0,trustedHeight:(0,ro.isSet)(St.trustedHeight)?tt.Height.fromJSON(St.trustedHeight):void 0,trustedValidators:(0,ro.isSet)(St.trustedValidators)?qt.ValidatorSet.fromJSON(St.trustedValidators):void 0}},toJSON(St){const Ot={};return St.signedHeader!==void 0&&(Ot.signedHeader=St.signedHeader?kt.SignedHeader.toJSON(St.signedHeader):void 0),St.validatorSet!==void 0&&(Ot.validatorSet=St.validatorSet?qt.ValidatorSet.toJSON(St.validatorSet):void 0),St.trustedHeight!==void 0&&(Ot.trustedHeight=St.trustedHeight?tt.Height.toJSON(St.trustedHeight):void 0),St.trustedValidators!==void 0&&(Ot.trustedValidators=St.trustedValidators?qt.ValidatorSet.toJSON(St.trustedValidators):void 0),Ot},fromPartial(St){const Ot=eo();return Ot.signedHeader=St.signedHeader!==void 0&&St.signedHeader!==null?kt.SignedHeader.fromPartial(St.signedHeader):void 0,Ot.validatorSet=St.validatorSet!==void 0&&St.validatorSet!==null?qt.ValidatorSet.fromPartial(St.validatorSet):void 0,Ot.trustedHeight=St.trustedHeight!==void 0&&St.trustedHeight!==null?tt.Height.fromPartial(St.trustedHeight):void 0,Ot.trustedValidators=St.trustedValidators!==void 0&&St.trustedValidators!==null?qt.ValidatorSet.fromPartial(St.trustedValidators):void 0,Ot}};function Wt(){return{numerator:ro.Long.UZERO,denominator:ro.Long.UZERO}}_e.Fraction={encode(St,Ot=ht.Writer.create()){return St.numerator.isZero()||Ot.uint32(8).uint64(St.numerator),St.denominator.isZero()||Ot.uint32(16).uint64(St.denominator),Ot},decode(St,Ot){const uo=St instanceof ht.Reader?St:new ht.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=Wt();for(;uo.pos>>3){case 1:bo.numerator=uo.uint64();break;case 2:bo.denominator=uo.uint64();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{numerator:(0,ro.isSet)(St.numerator)?ro.Long.fromValue(St.numerator):ro.Long.UZERO,denominator:(0,ro.isSet)(St.denominator)?ro.Long.fromValue(St.denominator):ro.Long.UZERO}},toJSON(St){const Ot={};return St.numerator!==void 0&&(Ot.numerator=(St.numerator||ro.Long.UZERO).toString()),St.denominator!==void 0&&(Ot.denominator=(St.denominator||ro.Long.UZERO).toString()),Ot},fromPartial(St){const Ot=Wt();return Ot.numerator=St.numerator!==void 0&&St.numerator!==null?ro.Long.fromValue(St.numerator):ro.Long.UZERO,Ot.denominator=St.denominator!==void 0&&St.denominator!==null?ro.Long.fromValue(St.denominator):ro.Long.UZERO,Ot}}}(tendermint);var __importDefault$b=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(queries$5,"__esModule",{value:!0}),queries$5.setupIbcExtension=void 0;const encoding_1$g=build$c,math_1$7=build$b,query_1$4=query$7,channel_1=channel,query_2=query$6,query_3=query$5,query_4=query$4,tendermint_1=tendermint,long_1$7=__importDefault$b(long),queryclient_1$5=queryclient$1;function decodeTendermintClientStateAny(_e){if((_e==null?void 0:_e.typeUrl)!=="/ibc.lightclients.tendermint.v1.ClientState")throw new Error(`Unexpected client state type: ${_e==null?void 0:_e.typeUrl}`);return tendermint_1.ClientState.decode(_e.value)}function decodeTendermintConsensusStateAny(_e){if((_e==null?void 0:_e.typeUrl)!=="/ibc.lightclients.tendermint.v1.ConsensusState")throw new Error(`Unexpected client state type: ${_e==null?void 0:_e.typeUrl}`);return tendermint_1.ConsensusState.decode(_e.value)}function setupIbcExtension(_e){const cr=(0,queryclient_1$5.createProtobufRpcClient)(_e),gr=new query_2.QueryClientImpl(cr),Cr=new query_3.QueryClientImpl(cr),Vr=new query_4.QueryClientImpl(cr),tt=new query_1$4.QueryClientImpl(cr);return{ibc:{channel:{channel:async(nt,st)=>gr.Channel({portId:nt,channelId:st}),channels:async nt=>gr.Channels({pagination:(0,queryclient_1$5.createPagination)(nt)}),allChannels:async()=>{var kt;const nt=[];let st,dt;do st=await gr.Channels({pagination:(0,queryclient_1$5.createPagination)(dt)}),nt.push(...st.channels),dt=(kt=st.pagination)==null?void 0:kt.nextKey;while(dt&&dt.length);return{channels:nt,height:st.height}},connectionChannels:async(nt,st)=>gr.ConnectionChannels({connection:nt,pagination:(0,queryclient_1$5.createPagination)(st)}),allConnectionChannels:async nt=>{var qt;const st=[];let dt,kt;do dt=await gr.ConnectionChannels({connection:nt,pagination:(0,queryclient_1$5.createPagination)(kt)}),st.push(...dt.channels),kt=(qt=dt.pagination)==null?void 0:qt.nextKey;while(kt&&kt.length);return{channels:st,height:dt.height}},clientState:async(nt,st)=>gr.ChannelClientState({portId:nt,channelId:st}),consensusState:async(nt,st,dt,kt)=>gr.ChannelConsensusState({portId:nt,channelId:st,revisionNumber:long_1$7.default.fromNumber(dt,!0),revisionHeight:long_1$7.default.fromNumber(kt,!0)}),packetCommitment:async(nt,st,dt)=>gr.PacketCommitment({portId:nt,channelId:st,sequence:long_1$7.default.fromNumber(dt,!0)}),packetCommitments:async(nt,st,dt)=>gr.PacketCommitments({channelId:st,portId:nt,pagination:(0,queryclient_1$5.createPagination)(dt)}),allPacketCommitments:async(nt,st)=>{var ro;const dt=[];let kt,qt;do kt=await gr.PacketCommitments({channelId:st,portId:nt,pagination:(0,queryclient_1$5.createPagination)(qt)}),dt.push(...kt.commitments),qt=(ro=kt.pagination)==null?void 0:ro.nextKey;while(qt&&qt.length);return{commitments:dt,height:kt.height}},packetReceipt:async(nt,st,dt)=>gr.PacketReceipt({portId:nt,channelId:st,sequence:long_1$7.default.fromNumber(dt,!0)}),packetAcknowledgement:async(nt,st,dt)=>gr.PacketAcknowledgement({portId:nt,channelId:st,sequence:long_1$7.default.fromNumber(dt,!0)}),packetAcknowledgements:async(nt,st,dt)=>{const kt=query_2.QueryPacketAcknowledgementsRequest.fromPartial({portId:nt,channelId:st,pagination:(0,queryclient_1$5.createPagination)(dt)});return gr.PacketAcknowledgements(kt)},allPacketAcknowledgements:async(nt,st)=>{var ro;const dt=[];let kt,qt;do{const ht=query_2.QueryPacketAcknowledgementsRequest.fromPartial({channelId:st,portId:nt,pagination:(0,queryclient_1$5.createPagination)(qt)});kt=await gr.PacketAcknowledgements(ht),dt.push(...kt.acknowledgements),qt=(ro=kt.pagination)==null?void 0:ro.nextKey}while(qt&&qt.length);return{acknowledgements:dt,height:kt.height}},unreceivedPackets:async(nt,st,dt)=>gr.UnreceivedPackets({portId:nt,channelId:st,packetCommitmentSequences:dt.map(kt=>long_1$7.default.fromNumber(kt,!0))}),unreceivedAcks:async(nt,st,dt)=>gr.UnreceivedAcks({portId:nt,channelId:st,packetAckSequences:dt.map(kt=>long_1$7.default.fromNumber(kt,!0))}),nextSequenceReceive:async(nt,st)=>gr.NextSequenceReceive({portId:nt,channelId:st})},client:{state:async nt=>Cr.ClientState({clientId:nt}),states:async nt=>Cr.ClientStates({pagination:(0,queryclient_1$5.createPagination)(nt)}),allStates:async()=>{var kt;const nt=[];let st,dt;do st=await Cr.ClientStates({pagination:(0,queryclient_1$5.createPagination)(dt)}),nt.push(...st.clientStates),dt=(kt=st.pagination)==null?void 0:kt.nextKey;while(dt&&dt.length);return{clientStates:nt}},consensusState:async(nt,st)=>Cr.ConsensusState(query_3.QueryConsensusStateRequest.fromPartial({clientId:nt,revisionHeight:st!==void 0?long_1$7.default.fromNumber(st,!0):void 0,latestHeight:st===void 0})),consensusStates:async(nt,st)=>Cr.ConsensusStates({clientId:nt,pagination:(0,queryclient_1$5.createPagination)(st)}),allConsensusStates:async nt=>{var qt;const st=[];let dt,kt;do dt=await Cr.ConsensusStates({clientId:nt,pagination:(0,queryclient_1$5.createPagination)(kt)}),st.push(...dt.consensusStates),kt=(qt=dt.pagination)==null?void 0:qt.nextKey;while(kt&&kt.length);return{consensusStates:st}},params:async()=>Cr.ClientParams({}),stateTm:async nt=>{const st=await Cr.ClientState({clientId:nt});return decodeTendermintClientStateAny(st.clientState)},statesTm:async nt=>{const{clientStates:st}=await Cr.ClientStates({pagination:(0,queryclient_1$5.createPagination)(nt)});return st.map(({clientState:dt})=>decodeTendermintClientStateAny(dt))},allStatesTm:async()=>{var kt;const nt=[];let st,dt;do st=await Cr.ClientStates({pagination:(0,queryclient_1$5.createPagination)(dt)}),nt.push(...st.clientStates),dt=(kt=st.pagination)==null?void 0:kt.nextKey;while(dt&&dt.length);return nt.map(({clientState:qt})=>decodeTendermintClientStateAny(qt))},consensusStateTm:async(nt,st)=>{const dt=await Cr.ConsensusState(query_3.QueryConsensusStateRequest.fromPartial({clientId:nt,revisionHeight:st==null?void 0:st.revisionHeight,revisionNumber:st==null?void 0:st.revisionNumber,latestHeight:st===void 0}));return decodeTendermintConsensusStateAny(dt.consensusState)}},connection:{connection:async nt=>Vr.Connection({connectionId:nt}),connections:async nt=>Vr.Connections({pagination:(0,queryclient_1$5.createPagination)(nt)}),allConnections:async()=>{var kt;const nt=[];let st,dt;do st=await Vr.Connections({pagination:(0,queryclient_1$5.createPagination)(dt)}),nt.push(...st.connections),dt=(kt=st.pagination)==null?void 0:kt.nextKey;while(dt&&dt.length);return{connections:nt,height:st.height}},clientConnections:async nt=>Vr.ClientConnections({clientId:nt}),clientState:async nt=>Vr.ConnectionClientState({connectionId:nt}),consensusState:async(nt,st)=>Vr.ConnectionConsensusState(query_4.QueryConnectionConsensusStateRequest.fromPartial({connectionId:nt,revisionHeight:long_1$7.default.fromNumber(st,!0)}))},transfer:{denomTrace:async nt=>tt.DenomTrace({hash:nt}),denomTraces:async nt=>tt.DenomTraces({pagination:(0,queryclient_1$5.createPagination)(nt)}),allDenomTraces:async()=>{var kt;const nt=[];let st,dt;do st=await tt.DenomTraces({pagination:(0,queryclient_1$5.createPagination)(dt)}),nt.push(...st.denomTraces),dt=(kt=st.pagination)==null?void 0:kt.nextKey;while(dt&&dt.length);return{denomTraces:nt}},params:async()=>tt.Params({})},verified:{channel:{channel:async(nt,st)=>{const dt=(0,encoding_1$g.toAscii)(`channelEnds/ports/${nt}/channels/${st}`),{value:kt}=await _e.queryStoreVerified("ibc",dt);return kt.length?channel_1.Channel.decode(kt):null},packetCommitment:async(nt,st,dt)=>{const kt=(0,encoding_1$g.toAscii)(`commitments/ports/${nt}/channels/${st}/packets/${dt}`),{value:qt}=await _e.queryStoreVerified("ibc",kt);return qt},packetAcknowledgement:async(nt,st,dt)=>{const kt=(0,encoding_1$g.toAscii)(`acks/ports/${nt}/channels/${st}/acknowledgements/${dt}`),{value:qt}=await _e.queryStoreVerified("ibc",kt);return qt},nextSequenceReceive:async(nt,st)=>{const dt=(0,encoding_1$g.toAscii)(`seqAcks/ports/${nt}/channels/${st}/nextSequenceAck`),{value:kt}=await _e.queryStoreVerified("ibc",dt);return kt.length?math_1$7.Uint64.fromBytes(kt).toNumber():null}}}}}}queries$5.setupIbcExtension=setupIbcExtension;var queries$4={},query$3={},mint={},__createBinding$7=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$7=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$7=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$7(cr,_e,gr);return __setModuleDefault$7(cr,_e),cr};Object.defineProperty(mint,"__esModule",{value:!0}),mint.Params=mint.Minter=mint.protobufPackage=void 0;const helpers_1$2=helpers,_m0$2=__importStar$7(minimal);mint.protobufPackage="cosmos.mint.v1beta1";function createBaseMinter(){return{inflation:"",annualProvisions:""}}mint.Minter={encode(_e,cr=_m0$2.Writer.create()){return _e.inflation!==""&&cr.uint32(10).string(_e.inflation),_e.annualProvisions!==""&&cr.uint32(18).string(_e.annualProvisions),cr},decode(_e,cr){const gr=_e instanceof _m0$2.Reader?_e:new _m0$2.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseMinter();for(;gr.pos>>3){case 1:Vr.inflation=gr.string();break;case 2:Vr.annualProvisions=gr.string();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{inflation:(0,helpers_1$2.isSet)(_e.inflation)?String(_e.inflation):"",annualProvisions:(0,helpers_1$2.isSet)(_e.annualProvisions)?String(_e.annualProvisions):""}},toJSON(_e){const cr={};return _e.inflation!==void 0&&(cr.inflation=_e.inflation),_e.annualProvisions!==void 0&&(cr.annualProvisions=_e.annualProvisions),cr},fromPartial(_e){const cr=createBaseMinter();return cr.inflation=_e.inflation??"",cr.annualProvisions=_e.annualProvisions??"",cr}};function createBaseParams$1(){return{mintDenom:"",inflationRateChange:"",inflationMax:"",inflationMin:"",goalBonded:"",blocksPerYear:helpers_1$2.Long.UZERO}}mint.Params={encode(_e,cr=_m0$2.Writer.create()){return _e.mintDenom!==""&&cr.uint32(10).string(_e.mintDenom),_e.inflationRateChange!==""&&cr.uint32(18).string(_e.inflationRateChange),_e.inflationMax!==""&&cr.uint32(26).string(_e.inflationMax),_e.inflationMin!==""&&cr.uint32(34).string(_e.inflationMin),_e.goalBonded!==""&&cr.uint32(42).string(_e.goalBonded),_e.blocksPerYear.isZero()||cr.uint32(48).uint64(_e.blocksPerYear),cr},decode(_e,cr){const gr=_e instanceof _m0$2.Reader?_e:new _m0$2.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseParams$1();for(;gr.pos>>3){case 1:Vr.mintDenom=gr.string();break;case 2:Vr.inflationRateChange=gr.string();break;case 3:Vr.inflationMax=gr.string();break;case 4:Vr.inflationMin=gr.string();break;case 5:Vr.goalBonded=gr.string();break;case 6:Vr.blocksPerYear=gr.uint64();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{mintDenom:(0,helpers_1$2.isSet)(_e.mintDenom)?String(_e.mintDenom):"",inflationRateChange:(0,helpers_1$2.isSet)(_e.inflationRateChange)?String(_e.inflationRateChange):"",inflationMax:(0,helpers_1$2.isSet)(_e.inflationMax)?String(_e.inflationMax):"",inflationMin:(0,helpers_1$2.isSet)(_e.inflationMin)?String(_e.inflationMin):"",goalBonded:(0,helpers_1$2.isSet)(_e.goalBonded)?String(_e.goalBonded):"",blocksPerYear:(0,helpers_1$2.isSet)(_e.blocksPerYear)?helpers_1$2.Long.fromValue(_e.blocksPerYear):helpers_1$2.Long.UZERO}},toJSON(_e){const cr={};return _e.mintDenom!==void 0&&(cr.mintDenom=_e.mintDenom),_e.inflationRateChange!==void 0&&(cr.inflationRateChange=_e.inflationRateChange),_e.inflationMax!==void 0&&(cr.inflationMax=_e.inflationMax),_e.inflationMin!==void 0&&(cr.inflationMin=_e.inflationMin),_e.goalBonded!==void 0&&(cr.goalBonded=_e.goalBonded),_e.blocksPerYear!==void 0&&(cr.blocksPerYear=(_e.blocksPerYear||helpers_1$2.Long.UZERO).toString()),cr},fromPartial(_e){const cr=createBaseParams$1();return cr.mintDenom=_e.mintDenom??"",cr.inflationRateChange=_e.inflationRateChange??"",cr.inflationMax=_e.inflationMax??"",cr.inflationMin=_e.inflationMin??"",cr.goalBonded=_e.goalBonded??"",cr.blocksPerYear=_e.blocksPerYear!==void 0&&_e.blocksPerYear!==null?helpers_1$2.Long.fromValue(_e.blocksPerYear):helpers_1$2.Long.UZERO,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo);var St=Object.getOwnPropertyDescriptor(Nt,eo);(!St||("get"in St?!Nt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return Nt[eo]}}),Object.defineProperty(no,Wt,St)}:function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo),no[Wt]=Nt[eo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(no,Nt){Object.defineProperty(no,"default",{enumerable:!0,value:Nt})}:function(no,Nt){no.default=Nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(no){if(no&&no.__esModule)return no;var Nt={};if(no!=null)for(var eo in no)eo!=="default"&&Object.prototype.hasOwnProperty.call(no,eo)&&cr(Nt,no,eo);return gr(Nt,no),Nt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryAnnualProvisionsResponse=_e.QueryAnnualProvisionsRequest=_e.QueryInflationResponse=_e.QueryInflationRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.protobufPackage=void 0;const Vr=mint,tt=Cr(minimal),nt=helpers;_e.protobufPackage="cosmos.mint.v1beta1";function st(){return{}}_e.QueryParamsRequest={encode(no,Nt=tt.Writer.create()){return Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=st();for(;eo.pos>>3){default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{}},toJSON(no){return{}},fromPartial(no){return st()}};function dt(){return{params:void 0}}_e.QueryParamsResponse={encode(no,Nt=tt.Writer.create()){return no.params!==void 0&&Vr.Params.encode(no.params,Nt.uint32(10).fork()).ldelim(),Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=dt();for(;eo.pos>>3){case 1:St.params=Vr.Params.decode(eo,eo.uint32());break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{params:(0,nt.isSet)(no.params)?Vr.Params.fromJSON(no.params):void 0}},toJSON(no){const Nt={};return no.params!==void 0&&(Nt.params=no.params?Vr.Params.toJSON(no.params):void 0),Nt},fromPartial(no){const Nt=dt();return Nt.params=no.params!==void 0&&no.params!==null?Vr.Params.fromPartial(no.params):void 0,Nt}};function kt(){return{}}_e.QueryInflationRequest={encode(no,Nt=tt.Writer.create()){return Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=kt();for(;eo.pos>>3){default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{}},toJSON(no){return{}},fromPartial(no){return kt()}};function qt(){return{inflation:new Uint8Array}}_e.QueryInflationResponse={encode(no,Nt=tt.Writer.create()){return no.inflation.length!==0&&Nt.uint32(10).bytes(no.inflation),Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=qt();for(;eo.pos>>3){case 1:St.inflation=eo.bytes();break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{inflation:(0,nt.isSet)(no.inflation)?(0,nt.bytesFromBase64)(no.inflation):new Uint8Array}},toJSON(no){const Nt={};return no.inflation!==void 0&&(Nt.inflation=(0,nt.base64FromBytes)(no.inflation!==void 0?no.inflation:new Uint8Array)),Nt},fromPartial(no){const Nt=qt();return Nt.inflation=no.inflation??new Uint8Array,Nt}};function ro(){return{}}_e.QueryAnnualProvisionsRequest={encode(no,Nt=tt.Writer.create()){return Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ro();for(;eo.pos>>3){default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{}},toJSON(no){return{}},fromPartial(no){return ro()}};function ht(){return{annualProvisions:new Uint8Array}}_e.QueryAnnualProvisionsResponse={encode(no,Nt=tt.Writer.create()){return no.annualProvisions.length!==0&&Nt.uint32(10).bytes(no.annualProvisions),Nt},decode(no,Nt){const eo=no instanceof tt.Reader?no:new tt.Reader(no);let Wt=Nt===void 0?eo.len:eo.pos+Nt;const St=ht();for(;eo.pos>>3){case 1:St.annualProvisions=eo.bytes();break;default:eo.skipType(Ot&7);break}}return St},fromJSON(no){return{annualProvisions:(0,nt.isSet)(no.annualProvisions)?(0,nt.bytesFromBase64)(no.annualProvisions):new Uint8Array}},toJSON(no){const Nt={};return no.annualProvisions!==void 0&&(Nt.annualProvisions=(0,nt.base64FromBytes)(no.annualProvisions!==void 0?no.annualProvisions:new Uint8Array)),Nt},fromPartial(no){const Nt=ht();return Nt.annualProvisions=no.annualProvisions??new Uint8Array,Nt}};class po{constructor(Nt){this.rpc=Nt,this.Params=this.Params.bind(this),this.Inflation=this.Inflation.bind(this),this.AnnualProvisions=this.AnnualProvisions.bind(this)}Params(Nt={}){const eo=_e.QueryParamsRequest.encode(Nt).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Params",eo).then(Wt=>_e.QueryParamsResponse.decode(new tt.Reader(Wt)))}Inflation(Nt={}){const eo=_e.QueryInflationRequest.encode(Nt).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","Inflation",eo).then(Wt=>_e.QueryInflationResponse.decode(new tt.Reader(Wt)))}AnnualProvisions(Nt={}){const eo=_e.QueryAnnualProvisionsRequest.encode(Nt).finish();return this.rpc.request("cosmos.mint.v1beta1.Query","AnnualProvisions",eo).then(Wt=>_e.QueryAnnualProvisionsResponse.decode(new tt.Reader(Wt)))}}_e.QueryClientImpl=po}(query$3),Object.defineProperty(queries$4,"__esModule",{value:!0}),queries$4.setupMintExtension=void 0;const utils_1$8=build$6,query_1$3=query$3,queryclient_1$4=queryclient$1;function setupMintExtension(_e){const cr=(0,queryclient_1$4.createProtobufRpcClient)(_e),gr=new query_1$3.QueryClientImpl(cr);return{mint:{params:async()=>{const{params:Cr}=await gr.Params({});return(0,utils_1$8.assert)(Cr),{blocksPerYear:Cr.blocksPerYear,goalBonded:(0,queryclient_1$4.decodeCosmosSdkDecFromProto)(Cr.goalBonded),inflationMin:(0,queryclient_1$4.decodeCosmosSdkDecFromProto)(Cr.inflationMin),inflationMax:(0,queryclient_1$4.decodeCosmosSdkDecFromProto)(Cr.inflationMax),inflationRateChange:(0,queryclient_1$4.decodeCosmosSdkDecFromProto)(Cr.inflationRateChange),mintDenom:Cr.mintDenom}},inflation:async()=>{const{inflation:Cr}=await gr.Inflation({});return(0,queryclient_1$4.decodeCosmosSdkDecFromProto)(Cr)},annualProvisions:async()=>{const{annualProvisions:Cr}=await gr.AnnualProvisions({});return(0,queryclient_1$4.decodeCosmosSdkDecFromProto)(Cr)}}}}queries$4.setupMintExtension=setupMintExtension;var aminomessages$3={};Object.defineProperty(aminomessages$3,"__esModule",{value:!0}),aminomessages$3.createSlashingAminoConverters=aminomessages$3.isAminoMsgUnjail=void 0;function isAminoMsgUnjail(_e){return _e.type==="cosmos-sdk/MsgUnjail"}aminomessages$3.isAminoMsgUnjail=isAminoMsgUnjail;function createSlashingAminoConverters(){throw new Error("Not implemented")}aminomessages$3.createSlashingAminoConverters=createSlashingAminoConverters;var queries$3={},query$2={},slashing={},__createBinding$6=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$6=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$6=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$6(cr,_e,gr);return __setModuleDefault$6(cr,_e),cr};Object.defineProperty(slashing,"__esModule",{value:!0}),slashing.Params=slashing.ValidatorSigningInfo=slashing.protobufPackage=void 0;const timestamp_1=timestamp,duration_1=duration$1,helpers_1$1=helpers,_m0$1=__importStar$6(minimal);slashing.protobufPackage="cosmos.slashing.v1beta1";function createBaseValidatorSigningInfo(){return{address:"",startHeight:helpers_1$1.Long.ZERO,indexOffset:helpers_1$1.Long.ZERO,jailedUntil:void 0,tombstoned:!1,missedBlocksCounter:helpers_1$1.Long.ZERO}}slashing.ValidatorSigningInfo={encode(_e,cr=_m0$1.Writer.create()){return _e.address!==""&&cr.uint32(10).string(_e.address),_e.startHeight.isZero()||cr.uint32(16).int64(_e.startHeight),_e.indexOffset.isZero()||cr.uint32(24).int64(_e.indexOffset),_e.jailedUntil!==void 0&×tamp_1.Timestamp.encode(_e.jailedUntil,cr.uint32(34).fork()).ldelim(),_e.tombstoned===!0&&cr.uint32(40).bool(_e.tombstoned),_e.missedBlocksCounter.isZero()||cr.uint32(48).int64(_e.missedBlocksCounter),cr},decode(_e,cr){const gr=_e instanceof _m0$1.Reader?_e:new _m0$1.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseValidatorSigningInfo();for(;gr.pos>>3){case 1:Vr.address=gr.string();break;case 2:Vr.startHeight=gr.int64();break;case 3:Vr.indexOffset=gr.int64();break;case 4:Vr.jailedUntil=timestamp_1.Timestamp.decode(gr,gr.uint32());break;case 5:Vr.tombstoned=gr.bool();break;case 6:Vr.missedBlocksCounter=gr.int64();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{address:(0,helpers_1$1.isSet)(_e.address)?String(_e.address):"",startHeight:(0,helpers_1$1.isSet)(_e.startHeight)?helpers_1$1.Long.fromValue(_e.startHeight):helpers_1$1.Long.ZERO,indexOffset:(0,helpers_1$1.isSet)(_e.indexOffset)?helpers_1$1.Long.fromValue(_e.indexOffset):helpers_1$1.Long.ZERO,jailedUntil:(0,helpers_1$1.isSet)(_e.jailedUntil)?(0,helpers_1$1.fromJsonTimestamp)(_e.jailedUntil):void 0,tombstoned:(0,helpers_1$1.isSet)(_e.tombstoned)?!!_e.tombstoned:!1,missedBlocksCounter:(0,helpers_1$1.isSet)(_e.missedBlocksCounter)?helpers_1$1.Long.fromValue(_e.missedBlocksCounter):helpers_1$1.Long.ZERO}},toJSON(_e){const cr={};return _e.address!==void 0&&(cr.address=_e.address),_e.startHeight!==void 0&&(cr.startHeight=(_e.startHeight||helpers_1$1.Long.ZERO).toString()),_e.indexOffset!==void 0&&(cr.indexOffset=(_e.indexOffset||helpers_1$1.Long.ZERO).toString()),_e.jailedUntil!==void 0&&(cr.jailedUntil=(0,helpers_1$1.fromTimestamp)(_e.jailedUntil).toISOString()),_e.tombstoned!==void 0&&(cr.tombstoned=_e.tombstoned),_e.missedBlocksCounter!==void 0&&(cr.missedBlocksCounter=(_e.missedBlocksCounter||helpers_1$1.Long.ZERO).toString()),cr},fromPartial(_e){const cr=createBaseValidatorSigningInfo();return cr.address=_e.address??"",cr.startHeight=_e.startHeight!==void 0&&_e.startHeight!==null?helpers_1$1.Long.fromValue(_e.startHeight):helpers_1$1.Long.ZERO,cr.indexOffset=_e.indexOffset!==void 0&&_e.indexOffset!==null?helpers_1$1.Long.fromValue(_e.indexOffset):helpers_1$1.Long.ZERO,cr.jailedUntil=_e.jailedUntil!==void 0&&_e.jailedUntil!==null?timestamp_1.Timestamp.fromPartial(_e.jailedUntil):void 0,cr.tombstoned=_e.tombstoned??!1,cr.missedBlocksCounter=_e.missedBlocksCounter!==void 0&&_e.missedBlocksCounter!==null?helpers_1$1.Long.fromValue(_e.missedBlocksCounter):helpers_1$1.Long.ZERO,cr}};function createBaseParams(){return{signedBlocksWindow:helpers_1$1.Long.ZERO,minSignedPerWindow:new Uint8Array,downtimeJailDuration:void 0,slashFractionDoubleSign:new Uint8Array,slashFractionDowntime:new Uint8Array}}slashing.Params={encode(_e,cr=_m0$1.Writer.create()){return _e.signedBlocksWindow.isZero()||cr.uint32(8).int64(_e.signedBlocksWindow),_e.minSignedPerWindow.length!==0&&cr.uint32(18).bytes(_e.minSignedPerWindow),_e.downtimeJailDuration!==void 0&&duration_1.Duration.encode(_e.downtimeJailDuration,cr.uint32(26).fork()).ldelim(),_e.slashFractionDoubleSign.length!==0&&cr.uint32(34).bytes(_e.slashFractionDoubleSign),_e.slashFractionDowntime.length!==0&&cr.uint32(42).bytes(_e.slashFractionDowntime),cr},decode(_e,cr){const gr=_e instanceof _m0$1.Reader?_e:new _m0$1.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseParams();for(;gr.pos>>3){case 1:Vr.signedBlocksWindow=gr.int64();break;case 2:Vr.minSignedPerWindow=gr.bytes();break;case 3:Vr.downtimeJailDuration=duration_1.Duration.decode(gr,gr.uint32());break;case 4:Vr.slashFractionDoubleSign=gr.bytes();break;case 5:Vr.slashFractionDowntime=gr.bytes();break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{signedBlocksWindow:(0,helpers_1$1.isSet)(_e.signedBlocksWindow)?helpers_1$1.Long.fromValue(_e.signedBlocksWindow):helpers_1$1.Long.ZERO,minSignedPerWindow:(0,helpers_1$1.isSet)(_e.minSignedPerWindow)?(0,helpers_1$1.bytesFromBase64)(_e.minSignedPerWindow):new Uint8Array,downtimeJailDuration:(0,helpers_1$1.isSet)(_e.downtimeJailDuration)?duration_1.Duration.fromJSON(_e.downtimeJailDuration):void 0,slashFractionDoubleSign:(0,helpers_1$1.isSet)(_e.slashFractionDoubleSign)?(0,helpers_1$1.bytesFromBase64)(_e.slashFractionDoubleSign):new Uint8Array,slashFractionDowntime:(0,helpers_1$1.isSet)(_e.slashFractionDowntime)?(0,helpers_1$1.bytesFromBase64)(_e.slashFractionDowntime):new Uint8Array}},toJSON(_e){const cr={};return _e.signedBlocksWindow!==void 0&&(cr.signedBlocksWindow=(_e.signedBlocksWindow||helpers_1$1.Long.ZERO).toString()),_e.minSignedPerWindow!==void 0&&(cr.minSignedPerWindow=(0,helpers_1$1.base64FromBytes)(_e.minSignedPerWindow!==void 0?_e.minSignedPerWindow:new Uint8Array)),_e.downtimeJailDuration!==void 0&&(cr.downtimeJailDuration=_e.downtimeJailDuration?duration_1.Duration.toJSON(_e.downtimeJailDuration):void 0),_e.slashFractionDoubleSign!==void 0&&(cr.slashFractionDoubleSign=(0,helpers_1$1.base64FromBytes)(_e.slashFractionDoubleSign!==void 0?_e.slashFractionDoubleSign:new Uint8Array)),_e.slashFractionDowntime!==void 0&&(cr.slashFractionDowntime=(0,helpers_1$1.base64FromBytes)(_e.slashFractionDowntime!==void 0?_e.slashFractionDowntime:new Uint8Array)),cr},fromPartial(_e){const cr=createBaseParams();return cr.signedBlocksWindow=_e.signedBlocksWindow!==void 0&&_e.signedBlocksWindow!==null?helpers_1$1.Long.fromValue(_e.signedBlocksWindow):helpers_1$1.Long.ZERO,cr.minSignedPerWindow=_e.minSignedPerWindow??new Uint8Array,cr.downtimeJailDuration=_e.downtimeJailDuration!==void 0&&_e.downtimeJailDuration!==null?duration_1.Duration.fromPartial(_e.downtimeJailDuration):void 0,cr.slashFractionDoubleSign=_e.slashFractionDoubleSign??new Uint8Array,cr.slashFractionDowntime=_e.slashFractionDowntime??new Uint8Array,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,eo,Wt,St){St===void 0&&(St=Wt);var Ot=Object.getOwnPropertyDescriptor(eo,Wt);(!Ot||("get"in Ot?!eo.__esModule:Ot.writable||Ot.configurable))&&(Ot={enumerable:!0,get:function(){return eo[Wt]}}),Object.defineProperty(Nt,St,Ot)}:function(Nt,eo,Wt,St){St===void 0&&(St=Wt),Nt[St]=eo[Wt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,eo){Object.defineProperty(Nt,"default",{enumerable:!0,value:eo})}:function(Nt,eo){Nt.default=eo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var eo={};if(Nt!=null)for(var Wt in Nt)Wt!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Wt)&&cr(eo,Nt,Wt);return gr(eo,Nt),eo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QuerySigningInfosResponse=_e.QuerySigningInfosRequest=_e.QuerySigningInfoResponse=_e.QuerySigningInfoRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=slashing,nt=Cr(minimal),st=helpers;_e.protobufPackage="cosmos.slashing.v1beta1";function dt(){return{}}_e.QueryParamsRequest={encode(Nt,eo=nt.Writer.create()){return eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=dt();for(;Wt.pos>>3){default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return dt()}};function kt(){return{params:void 0}}_e.QueryParamsResponse={encode(Nt,eo=nt.Writer.create()){return Nt.params!==void 0&&tt.Params.encode(Nt.params,eo.uint32(10).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=kt();for(;Wt.pos>>3){case 1:Ot.params=tt.Params.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{params:(0,st.isSet)(Nt.params)?tt.Params.fromJSON(Nt.params):void 0}},toJSON(Nt){const eo={};return Nt.params!==void 0&&(eo.params=Nt.params?tt.Params.toJSON(Nt.params):void 0),eo},fromPartial(Nt){const eo=kt();return eo.params=Nt.params!==void 0&&Nt.params!==null?tt.Params.fromPartial(Nt.params):void 0,eo}};function qt(){return{consAddress:""}}_e.QuerySigningInfoRequest={encode(Nt,eo=nt.Writer.create()){return Nt.consAddress!==""&&eo.uint32(10).string(Nt.consAddress),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=qt();for(;Wt.pos>>3){case 1:Ot.consAddress=Wt.string();break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{consAddress:(0,st.isSet)(Nt.consAddress)?String(Nt.consAddress):""}},toJSON(Nt){const eo={};return Nt.consAddress!==void 0&&(eo.consAddress=Nt.consAddress),eo},fromPartial(Nt){const eo=qt();return eo.consAddress=Nt.consAddress??"",eo}};function ro(){return{valSigningInfo:void 0}}_e.QuerySigningInfoResponse={encode(Nt,eo=nt.Writer.create()){return Nt.valSigningInfo!==void 0&&tt.ValidatorSigningInfo.encode(Nt.valSigningInfo,eo.uint32(10).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ro();for(;Wt.pos>>3){case 1:Ot.valSigningInfo=tt.ValidatorSigningInfo.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{valSigningInfo:(0,st.isSet)(Nt.valSigningInfo)?tt.ValidatorSigningInfo.fromJSON(Nt.valSigningInfo):void 0}},toJSON(Nt){const eo={};return Nt.valSigningInfo!==void 0&&(eo.valSigningInfo=Nt.valSigningInfo?tt.ValidatorSigningInfo.toJSON(Nt.valSigningInfo):void 0),eo},fromPartial(Nt){const eo=ro();return eo.valSigningInfo=Nt.valSigningInfo!==void 0&&Nt.valSigningInfo!==null?tt.ValidatorSigningInfo.fromPartial(Nt.valSigningInfo):void 0,eo}};function ht(){return{pagination:void 0}}_e.QuerySigningInfosRequest={encode(Nt,eo=nt.Writer.create()){return Nt.pagination!==void 0&&Vr.PageRequest.encode(Nt.pagination,eo.uint32(10).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ht();for(;Wt.pos>>3){case 1:Ot.pagination=Vr.PageRequest.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{pagination:(0,st.isSet)(Nt.pagination)?Vr.PageRequest.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageRequest.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){const eo=ht();return eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageRequest.fromPartial(Nt.pagination):void 0,eo}};function po(){return{info:[],pagination:void 0}}_e.QuerySigningInfosResponse={encode(Nt,eo=nt.Writer.create()){for(const Wt of Nt.info)tt.ValidatorSigningInfo.encode(Wt,eo.uint32(10).fork()).ldelim();return Nt.pagination!==void 0&&Vr.PageResponse.encode(Nt.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(Nt,eo){const Wt=Nt instanceof nt.Reader?Nt:new nt.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=po();for(;Wt.pos>>3){case 1:Ot.info.push(tt.ValidatorSigningInfo.decode(Wt,Wt.uint32()));break;case 2:Ot.pagination=Vr.PageResponse.decode(Wt,Wt.uint32());break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{info:Array.isArray(Nt==null?void 0:Nt.info)?Nt.info.map(eo=>tt.ValidatorSigningInfo.fromJSON(eo)):[],pagination:(0,st.isSet)(Nt.pagination)?Vr.PageResponse.fromJSON(Nt.pagination):void 0}},toJSON(Nt){const eo={};return Nt.info?eo.info=Nt.info.map(Wt=>Wt?tt.ValidatorSigningInfo.toJSON(Wt):void 0):eo.info=[],Nt.pagination!==void 0&&(eo.pagination=Nt.pagination?Vr.PageResponse.toJSON(Nt.pagination):void 0),eo},fromPartial(Nt){var Wt;const eo=po();return eo.info=((Wt=Nt.info)==null?void 0:Wt.map(St=>tt.ValidatorSigningInfo.fromPartial(St)))||[],eo.pagination=Nt.pagination!==void 0&&Nt.pagination!==null?Vr.PageResponse.fromPartial(Nt.pagination):void 0,eo}};class no{constructor(eo){this.rpc=eo,this.Params=this.Params.bind(this),this.SigningInfo=this.SigningInfo.bind(this),this.SigningInfos=this.SigningInfos.bind(this)}Params(eo={}){const Wt=_e.QueryParamsRequest.encode(eo).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","Params",Wt).then(St=>_e.QueryParamsResponse.decode(new nt.Reader(St)))}SigningInfo(eo){const Wt=_e.QuerySigningInfoRequest.encode(eo).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfo",Wt).then(St=>_e.QuerySigningInfoResponse.decode(new nt.Reader(St)))}SigningInfos(eo={pagination:void 0}){const Wt=_e.QuerySigningInfosRequest.encode(eo).finish();return this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfos",Wt).then(St=>_e.QuerySigningInfosResponse.decode(new nt.Reader(St)))}}_e.QueryClientImpl=no}(query$2),Object.defineProperty(queries$3,"__esModule",{value:!0}),queries$3.setupSlashingExtension=void 0;const query_1$2=query$2,queryclient_1$3=queryclient$1;function setupSlashingExtension(_e){const cr=(0,queryclient_1$3.createProtobufRpcClient)(_e),gr=new query_1$2.QueryClientImpl(cr);return{slashing:{signingInfo:async Cr=>await gr.SigningInfo({consAddress:Cr}),signingInfos:async Cr=>await gr.SigningInfos({pagination:(0,queryclient_1$3.createPagination)(Cr)}),params:async()=>await gr.Params({})}}}queries$3.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$6=build$b,proto_signing_1$3=build$9,utils_1$7=build$6;function protoDecimalToJson(_e){const cr=math_1$6.Decimal.fromAtomics(_e,18),[gr,Cr]=cr.toString().split(".");return`${gr}.${(Cr??"").padEnd(18,"0")}`}aminomessages$2.protoDecimalToJson=protoDecimalToJson;function jsonDecimalToProto(_e){return math_1$6.Decimal.fromUserInput(_e,18).atomics}function isAminoMsgCreateValidator(_e){return _e.type==="cosmos-sdk/MsgCreateValidator"}aminomessages$2.isAminoMsgCreateValidator=isAminoMsgCreateValidator;function isAminoMsgEditValidator(_e){return _e.type==="cosmos-sdk/MsgEditValidator"}aminomessages$2.isAminoMsgEditValidator=isAminoMsgEditValidator;function isAminoMsgDelegate(_e){return _e.type==="cosmos-sdk/MsgDelegate"}aminomessages$2.isAminoMsgDelegate=isAminoMsgDelegate;function isAminoMsgBeginRedelegate(_e){return _e.type==="cosmos-sdk/MsgBeginRedelegate"}aminomessages$2.isAminoMsgBeginRedelegate=isAminoMsgBeginRedelegate;function isAminoMsgUndelegate(_e){return _e.type==="cosmos-sdk/MsgUndelegate"}aminomessages$2.isAminoMsgUndelegate=isAminoMsgUndelegate;function createStakingAminoConverters(){return{"/cosmos.staking.v1beta1.MsgBeginRedelegate":{aminoType:"cosmos-sdk/MsgBeginRedelegate",toAmino:({delegatorAddress:_e,validatorSrcAddress:cr,validatorDstAddress:gr,amount:Cr})=>((0,utils_1$7.assertDefinedAndNotNull)(Cr,"missing amount"),{delegator_address:_e,validator_src_address:cr,validator_dst_address:gr,amount:Cr}),fromAmino:({delegator_address:_e,validator_src_address:cr,validator_dst_address:gr,amount:Cr})=>({delegatorAddress:_e,validatorSrcAddress:cr,validatorDstAddress:gr,amount:Cr})},"/cosmos.staking.v1beta1.MsgCreateValidator":{aminoType:"cosmos-sdk/MsgCreateValidator",toAmino:({description:_e,commission:cr,minSelfDelegation:gr,delegatorAddress:Cr,validatorAddress:Vr,pubkey:tt,value:nt})=>((0,utils_1$7.assertDefinedAndNotNull)(_e,"missing description"),(0,utils_1$7.assertDefinedAndNotNull)(cr,"missing commission"),(0,utils_1$7.assertDefinedAndNotNull)(tt,"missing pubkey"),(0,utils_1$7.assertDefinedAndNotNull)(nt,"missing value"),{description:{moniker:_e.moniker,identity:_e.identity,website:_e.website,security_contact:_e.securityContact,details:_e.details},commission:{rate:protoDecimalToJson(cr.rate),max_rate:protoDecimalToJson(cr.maxRate),max_change_rate:protoDecimalToJson(cr.maxChangeRate)},min_self_delegation:gr,delegator_address:Cr,validator_address:Vr,pubkey:(0,proto_signing_1$3.decodePubkey)(tt),value:nt}),fromAmino:({description:_e,commission:cr,min_self_delegation:gr,delegator_address:Cr,validator_address:Vr,pubkey:tt,value:nt})=>({description:{moniker:_e.moniker,identity:_e.identity,website:_e.website,securityContact:_e.security_contact,details:_e.details},commission:{rate:jsonDecimalToProto(cr.rate),maxRate:jsonDecimalToProto(cr.max_rate),maxChangeRate:jsonDecimalToProto(cr.max_change_rate)},minSelfDelegation:gr,delegatorAddress:Cr,validatorAddress:Vr,pubkey:(0,proto_signing_1$3.encodePubkey)(tt),value:nt})},"/cosmos.staking.v1beta1.MsgDelegate":{aminoType:"cosmos-sdk/MsgDelegate",toAmino:({delegatorAddress:_e,validatorAddress:cr,amount:gr})=>((0,utils_1$7.assertDefinedAndNotNull)(gr,"missing amount"),{delegator_address:_e,validator_address:cr,amount:gr}),fromAmino:({delegator_address:_e,validator_address:cr,amount:gr})=>({delegatorAddress:_e,validatorAddress:cr,amount:gr})},"/cosmos.staking.v1beta1.MsgEditValidator":{aminoType:"cosmos-sdk/MsgEditValidator",toAmino:({description:_e,commissionRate:cr,minSelfDelegation:gr,validatorAddress:Cr})=>((0,utils_1$7.assertDefinedAndNotNull)(_e,"missing description"),{description:{moniker:_e.moniker,identity:_e.identity,website:_e.website,security_contact:_e.securityContact,details:_e.details},commission_rate:cr?protoDecimalToJson(cr):void 0,min_self_delegation:gr||void 0,validator_address:Cr}),fromAmino:({description:_e,commission_rate:cr,min_self_delegation:gr,validator_address:Cr})=>({description:{moniker:_e.moniker,identity:_e.identity,website:_e.website,securityContact:_e.security_contact,details:_e.details},commissionRate:cr?jsonDecimalToProto(cr):"",minSelfDelegation:gr??"",validatorAddress:Cr})},"/cosmos.staking.v1beta1.MsgUndelegate":{aminoType:"cosmos-sdk/MsgUndelegate",toAmino:({delegatorAddress:_e,validatorAddress:cr,amount:gr})=>((0,utils_1$7.assertDefinedAndNotNull)(gr,"missing amount"),{delegator_address:_e,validator_address:cr,amount:gr}),fromAmino:({delegator_address:_e,validator_address:cr,amount:gr})=>({delegatorAddress:_e,validatorAddress:cr,amount:gr})}}}aminomessages$2.createStakingAminoConverters=createStakingAminoConverters;var messages$3={},tx$2={},staking={},types$4={},params={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(po,no,Nt,eo){eo===void 0&&(eo=Nt);var Wt=Object.getOwnPropertyDescriptor(no,Nt);(!Wt||("get"in Wt?!no.__esModule:Wt.writable||Wt.configurable))&&(Wt={enumerable:!0,get:function(){return no[Nt]}}),Object.defineProperty(po,eo,Wt)}:function(po,no,Nt,eo){eo===void 0&&(eo=Nt),po[eo]=no[Nt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(po,no){Object.defineProperty(po,"default",{enumerable:!0,value:no})}:function(po,no){po.default=no}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(po){if(po&&po.__esModule)return po;var no={};if(po!=null)for(var Nt in po)Nt!=="default"&&Object.prototype.hasOwnProperty.call(po,Nt)&&cr(no,po,Nt);return gr(no,po),no};Object.defineProperty(_e,"__esModule",{value:!0}),_e.HashedParams=_e.VersionParams=_e.ValidatorParams=_e.EvidenceParams=_e.BlockParams=_e.ConsensusParams=_e.protobufPackage=void 0;const Vr=duration$1,tt=helpers,nt=Cr(minimal);_e.protobufPackage="tendermint.types";function st(){return{block:void 0,evidence:void 0,validator:void 0,version:void 0}}_e.ConsensusParams={encode(po,no=nt.Writer.create()){return po.block!==void 0&&_e.BlockParams.encode(po.block,no.uint32(10).fork()).ldelim(),po.evidence!==void 0&&_e.EvidenceParams.encode(po.evidence,no.uint32(18).fork()).ldelim(),po.validator!==void 0&&_e.ValidatorParams.encode(po.validator,no.uint32(26).fork()).ldelim(),po.version!==void 0&&_e.VersionParams.encode(po.version,no.uint32(34).fork()).ldelim(),no},decode(po,no){const Nt=po instanceof nt.Reader?po:new nt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=st();for(;Nt.pos>>3){case 1:Wt.block=_e.BlockParams.decode(Nt,Nt.uint32());break;case 2:Wt.evidence=_e.EvidenceParams.decode(Nt,Nt.uint32());break;case 3:Wt.validator=_e.ValidatorParams.decode(Nt,Nt.uint32());break;case 4:Wt.version=_e.VersionParams.decode(Nt,Nt.uint32());break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{block:(0,tt.isSet)(po.block)?_e.BlockParams.fromJSON(po.block):void 0,evidence:(0,tt.isSet)(po.evidence)?_e.EvidenceParams.fromJSON(po.evidence):void 0,validator:(0,tt.isSet)(po.validator)?_e.ValidatorParams.fromJSON(po.validator):void 0,version:(0,tt.isSet)(po.version)?_e.VersionParams.fromJSON(po.version):void 0}},toJSON(po){const no={};return po.block!==void 0&&(no.block=po.block?_e.BlockParams.toJSON(po.block):void 0),po.evidence!==void 0&&(no.evidence=po.evidence?_e.EvidenceParams.toJSON(po.evidence):void 0),po.validator!==void 0&&(no.validator=po.validator?_e.ValidatorParams.toJSON(po.validator):void 0),po.version!==void 0&&(no.version=po.version?_e.VersionParams.toJSON(po.version):void 0),no},fromPartial(po){const no=st();return no.block=po.block!==void 0&&po.block!==null?_e.BlockParams.fromPartial(po.block):void 0,no.evidence=po.evidence!==void 0&&po.evidence!==null?_e.EvidenceParams.fromPartial(po.evidence):void 0,no.validator=po.validator!==void 0&&po.validator!==null?_e.ValidatorParams.fromPartial(po.validator):void 0,no.version=po.version!==void 0&&po.version!==null?_e.VersionParams.fromPartial(po.version):void 0,no}};function dt(){return{maxBytes:tt.Long.ZERO,maxGas:tt.Long.ZERO}}_e.BlockParams={encode(po,no=nt.Writer.create()){return po.maxBytes.isZero()||no.uint32(8).int64(po.maxBytes),po.maxGas.isZero()||no.uint32(16).int64(po.maxGas),no},decode(po,no){const Nt=po instanceof nt.Reader?po:new nt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=dt();for(;Nt.pos>>3){case 1:Wt.maxBytes=Nt.int64();break;case 2:Wt.maxGas=Nt.int64();break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{maxBytes:(0,tt.isSet)(po.maxBytes)?tt.Long.fromValue(po.maxBytes):tt.Long.ZERO,maxGas:(0,tt.isSet)(po.maxGas)?tt.Long.fromValue(po.maxGas):tt.Long.ZERO}},toJSON(po){const no={};return po.maxBytes!==void 0&&(no.maxBytes=(po.maxBytes||tt.Long.ZERO).toString()),po.maxGas!==void 0&&(no.maxGas=(po.maxGas||tt.Long.ZERO).toString()),no},fromPartial(po){const no=dt();return no.maxBytes=po.maxBytes!==void 0&&po.maxBytes!==null?tt.Long.fromValue(po.maxBytes):tt.Long.ZERO,no.maxGas=po.maxGas!==void 0&&po.maxGas!==null?tt.Long.fromValue(po.maxGas):tt.Long.ZERO,no}};function kt(){return{maxAgeNumBlocks:tt.Long.ZERO,maxAgeDuration:void 0,maxBytes:tt.Long.ZERO}}_e.EvidenceParams={encode(po,no=nt.Writer.create()){return po.maxAgeNumBlocks.isZero()||no.uint32(8).int64(po.maxAgeNumBlocks),po.maxAgeDuration!==void 0&&Vr.Duration.encode(po.maxAgeDuration,no.uint32(18).fork()).ldelim(),po.maxBytes.isZero()||no.uint32(24).int64(po.maxBytes),no},decode(po,no){const Nt=po instanceof nt.Reader?po:new nt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=kt();for(;Nt.pos>>3){case 1:Wt.maxAgeNumBlocks=Nt.int64();break;case 2:Wt.maxAgeDuration=Vr.Duration.decode(Nt,Nt.uint32());break;case 3:Wt.maxBytes=Nt.int64();break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{maxAgeNumBlocks:(0,tt.isSet)(po.maxAgeNumBlocks)?tt.Long.fromValue(po.maxAgeNumBlocks):tt.Long.ZERO,maxAgeDuration:(0,tt.isSet)(po.maxAgeDuration)?Vr.Duration.fromJSON(po.maxAgeDuration):void 0,maxBytes:(0,tt.isSet)(po.maxBytes)?tt.Long.fromValue(po.maxBytes):tt.Long.ZERO}},toJSON(po){const no={};return po.maxAgeNumBlocks!==void 0&&(no.maxAgeNumBlocks=(po.maxAgeNumBlocks||tt.Long.ZERO).toString()),po.maxAgeDuration!==void 0&&(no.maxAgeDuration=po.maxAgeDuration?Vr.Duration.toJSON(po.maxAgeDuration):void 0),po.maxBytes!==void 0&&(no.maxBytes=(po.maxBytes||tt.Long.ZERO).toString()),no},fromPartial(po){const no=kt();return no.maxAgeNumBlocks=po.maxAgeNumBlocks!==void 0&&po.maxAgeNumBlocks!==null?tt.Long.fromValue(po.maxAgeNumBlocks):tt.Long.ZERO,no.maxAgeDuration=po.maxAgeDuration!==void 0&&po.maxAgeDuration!==null?Vr.Duration.fromPartial(po.maxAgeDuration):void 0,no.maxBytes=po.maxBytes!==void 0&&po.maxBytes!==null?tt.Long.fromValue(po.maxBytes):tt.Long.ZERO,no}};function qt(){return{pubKeyTypes:[]}}_e.ValidatorParams={encode(po,no=nt.Writer.create()){for(const Nt of po.pubKeyTypes)no.uint32(10).string(Nt);return no},decode(po,no){const Nt=po instanceof nt.Reader?po:new nt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=qt();for(;Nt.pos>>3){case 1:Wt.pubKeyTypes.push(Nt.string());break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{pubKeyTypes:Array.isArray(po==null?void 0:po.pubKeyTypes)?po.pubKeyTypes.map(no=>String(no)):[]}},toJSON(po){const no={};return po.pubKeyTypes?no.pubKeyTypes=po.pubKeyTypes.map(Nt=>Nt):no.pubKeyTypes=[],no},fromPartial(po){var Nt;const no=qt();return no.pubKeyTypes=((Nt=po.pubKeyTypes)==null?void 0:Nt.map(eo=>eo))||[],no}};function ro(){return{app:tt.Long.UZERO}}_e.VersionParams={encode(po,no=nt.Writer.create()){return po.app.isZero()||no.uint32(8).uint64(po.app),no},decode(po,no){const Nt=po instanceof nt.Reader?po:new nt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=ro();for(;Nt.pos>>3){case 1:Wt.app=Nt.uint64();break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{app:(0,tt.isSet)(po.app)?tt.Long.fromValue(po.app):tt.Long.UZERO}},toJSON(po){const no={};return po.app!==void 0&&(no.app=(po.app||tt.Long.UZERO).toString()),no},fromPartial(po){const no=ro();return no.app=po.app!==void 0&&po.app!==null?tt.Long.fromValue(po.app):tt.Long.UZERO,no}};function ht(){return{blockMaxBytes:tt.Long.ZERO,blockMaxGas:tt.Long.ZERO}}_e.HashedParams={encode(po,no=nt.Writer.create()){return po.blockMaxBytes.isZero()||no.uint32(8).int64(po.blockMaxBytes),po.blockMaxGas.isZero()||no.uint32(16).int64(po.blockMaxGas),no},decode(po,no){const Nt=po instanceof nt.Reader?po:new nt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=ht();for(;Nt.pos>>3){case 1:Wt.blockMaxBytes=Nt.int64();break;case 2:Wt.blockMaxGas=Nt.int64();break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{blockMaxBytes:(0,tt.isSet)(po.blockMaxBytes)?tt.Long.fromValue(po.blockMaxBytes):tt.Long.ZERO,blockMaxGas:(0,tt.isSet)(po.blockMaxGas)?tt.Long.fromValue(po.blockMaxGas):tt.Long.ZERO}},toJSON(po){const no={};return po.blockMaxBytes!==void 0&&(no.blockMaxBytes=(po.blockMaxBytes||tt.Long.ZERO).toString()),po.blockMaxGas!==void 0&&(no.blockMaxGas=(po.blockMaxGas||tt.Long.ZERO).toString()),no},fromPartial(po){const no=ht();return no.blockMaxBytes=po.blockMaxBytes!==void 0&&po.blockMaxBytes!==null?tt.Long.fromValue(po.blockMaxBytes):tt.Long.ZERO,no.blockMaxGas=po.blockMaxGas!==void 0&&po.blockMaxGas!==null?tt.Long.fromValue(po.blockMaxGas):tt.Long.ZERO,no}}})(params),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(fo,Qo,Ko,ps){ps===void 0&&(ps=Ko);var Kn=Object.getOwnPropertyDescriptor(Qo,Ko);(!Kn||("get"in Kn?!Qo.__esModule:Kn.writable||Kn.configurable))&&(Kn={enumerable:!0,get:function(){return Qo[Ko]}}),Object.defineProperty(fo,ps,Kn)}:function(fo,Qo,Ko,ps){ps===void 0&&(ps=Ko),fo[ps]=Qo[Ko]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(fo,Qo){Object.defineProperty(fo,"default",{enumerable:!0,value:Qo})}:function(fo,Qo){fo.default=Qo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(fo){if(fo&&fo.__esModule)return fo;var Qo={};if(fo!=null)for(var Ko in fo)Ko!=="default"&&Object.prototype.hasOwnProperty.call(fo,Ko)&&cr(Qo,fo,Ko);return gr(Qo,fo),Qo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ResponsePrepareProposal=_e.ResponseApplySnapshotChunk=_e.ResponseLoadSnapshotChunk=_e.ResponseOfferSnapshot=_e.ResponseListSnapshots=_e.ResponseCommit=_e.ResponseEndBlock=_e.ResponseDeliverTx=_e.ResponseCheckTx=_e.ResponseBeginBlock=_e.ResponseQuery=_e.ResponseInitChain=_e.ResponseInfo=_e.ResponseFlush=_e.ResponseEcho=_e.ResponseException=_e.Response=_e.RequestProcessProposal=_e.RequestPrepareProposal=_e.RequestApplySnapshotChunk=_e.RequestLoadSnapshotChunk=_e.RequestOfferSnapshot=_e.RequestListSnapshots=_e.RequestCommit=_e.RequestEndBlock=_e.RequestDeliverTx=_e.RequestCheckTx=_e.RequestBeginBlock=_e.RequestQuery=_e.RequestInitChain=_e.RequestInfo=_e.RequestFlush=_e.RequestEcho=_e.Request=_e.misbehaviorTypeToJSON=_e.misbehaviorTypeFromJSON=_e.MisbehaviorType=_e.responseProcessProposal_ProposalStatusToJSON=_e.responseProcessProposal_ProposalStatusFromJSON=_e.ResponseProcessProposal_ProposalStatus=_e.responseApplySnapshotChunk_ResultToJSON=_e.responseApplySnapshotChunk_ResultFromJSON=_e.ResponseApplySnapshotChunk_Result=_e.responseOfferSnapshot_ResultToJSON=_e.responseOfferSnapshot_ResultFromJSON=_e.ResponseOfferSnapshot_Result=_e.checkTxTypeToJSON=_e.checkTxTypeFromJSON=_e.CheckTxType=_e.protobufPackage=void 0,_e.ABCIApplicationClientImpl=_e.Snapshot=_e.Misbehavior=_e.ExtendedVoteInfo=_e.VoteInfo=_e.ValidatorUpdate=_e.Validator=_e.TxResult=_e.EventAttribute=_e.Event=_e.ExtendedCommitInfo=_e.CommitInfo=_e.ResponseProcessProposal=void 0;const Vr=timestamp,tt=params,nt=types$6,st=proof,dt=keys$4,kt=helpers,qt=Cr(minimal);_e.protobufPackage="tendermint.abci";var ro;(function(fo){fo[fo.NEW=0]="NEW",fo[fo.RECHECK=1]="RECHECK",fo[fo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ro=_e.CheckTxType||(_e.CheckTxType={}));function ht(fo){switch(fo){case 0:case"NEW":return ro.NEW;case 1:case"RECHECK":return ro.RECHECK;case-1:case"UNRECOGNIZED":default:return ro.UNRECOGNIZED}}_e.checkTxTypeFromJSON=ht;function po(fo){switch(fo){case ro.NEW:return"NEW";case ro.RECHECK:return"RECHECK";case ro.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.checkTxTypeToJSON=po;var no;(function(fo){fo[fo.UNKNOWN=0]="UNKNOWN",fo[fo.ACCEPT=1]="ACCEPT",fo[fo.ABORT=2]="ABORT",fo[fo.REJECT=3]="REJECT",fo[fo.REJECT_FORMAT=4]="REJECT_FORMAT",fo[fo.REJECT_SENDER=5]="REJECT_SENDER",fo[fo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(no=_e.ResponseOfferSnapshot_Result||(_e.ResponseOfferSnapshot_Result={}));function Nt(fo){switch(fo){case 0:case"UNKNOWN":return no.UNKNOWN;case 1:case"ACCEPT":return no.ACCEPT;case 2:case"ABORT":return no.ABORT;case 3:case"REJECT":return no.REJECT;case 4:case"REJECT_FORMAT":return no.REJECT_FORMAT;case 5:case"REJECT_SENDER":return no.REJECT_SENDER;case-1:case"UNRECOGNIZED":default:return no.UNRECOGNIZED}}_e.responseOfferSnapshot_ResultFromJSON=Nt;function eo(fo){switch(fo){case no.UNKNOWN:return"UNKNOWN";case no.ACCEPT:return"ACCEPT";case no.ABORT:return"ABORT";case no.REJECT:return"REJECT";case no.REJECT_FORMAT:return"REJECT_FORMAT";case no.REJECT_SENDER:return"REJECT_SENDER";case no.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.responseOfferSnapshot_ResultToJSON=eo;var Wt;(function(fo){fo[fo.UNKNOWN=0]="UNKNOWN",fo[fo.ACCEPT=1]="ACCEPT",fo[fo.ABORT=2]="ABORT",fo[fo.RETRY=3]="RETRY",fo[fo.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",fo[fo.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",fo[fo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wt=_e.ResponseApplySnapshotChunk_Result||(_e.ResponseApplySnapshotChunk_Result={}));function St(fo){switch(fo){case 0:case"UNKNOWN":return Wt.UNKNOWN;case 1:case"ACCEPT":return Wt.ACCEPT;case 2:case"ABORT":return Wt.ABORT;case 3:case"RETRY":return Wt.RETRY;case 4:case"RETRY_SNAPSHOT":return Wt.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return Wt.REJECT_SNAPSHOT;case-1:case"UNRECOGNIZED":default:return Wt.UNRECOGNIZED}}_e.responseApplySnapshotChunk_ResultFromJSON=St;function Ot(fo){switch(fo){case Wt.UNKNOWN:return"UNKNOWN";case Wt.ACCEPT:return"ACCEPT";case Wt.ABORT:return"ABORT";case Wt.RETRY:return"RETRY";case Wt.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case Wt.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";case Wt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.responseApplySnapshotChunk_ResultToJSON=Ot;var uo;(function(fo){fo[fo.UNKNOWN=0]="UNKNOWN",fo[fo.ACCEPT=1]="ACCEPT",fo[fo.REJECT=2]="REJECT",fo[fo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uo=_e.ResponseProcessProposal_ProposalStatus||(_e.ResponseProcessProposal_ProposalStatus={}));function go(fo){switch(fo){case 0:case"UNKNOWN":return uo.UNKNOWN;case 1:case"ACCEPT":return uo.ACCEPT;case 2:case"REJECT":return uo.REJECT;case-1:case"UNRECOGNIZED":default:return uo.UNRECOGNIZED}}_e.responseProcessProposal_ProposalStatusFromJSON=go;function bo(fo){switch(fo){case uo.UNKNOWN:return"UNKNOWN";case uo.ACCEPT:return"ACCEPT";case uo.REJECT:return"REJECT";case uo.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.responseProcessProposal_ProposalStatusToJSON=bo;var oo;(function(fo){fo[fo.UNKNOWN=0]="UNKNOWN",fo[fo.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",fo[fo.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",fo[fo.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oo=_e.MisbehaviorType||(_e.MisbehaviorType={}));function Ro(fo){switch(fo){case 0:case"UNKNOWN":return oo.UNKNOWN;case 1:case"DUPLICATE_VOTE":return oo.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return oo.LIGHT_CLIENT_ATTACK;case-1:case"UNRECOGNIZED":default:return oo.UNRECOGNIZED}}_e.misbehaviorTypeFromJSON=Ro;function pt(fo){switch(fo){case oo.UNKNOWN:return"UNKNOWN";case oo.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case oo.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";case oo.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.misbehaviorTypeToJSON=pt;function lo(){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}}_e.Request={encode(fo,Qo=qt.Writer.create()){return fo.echo!==void 0&&_e.RequestEcho.encode(fo.echo,Qo.uint32(10).fork()).ldelim(),fo.flush!==void 0&&_e.RequestFlush.encode(fo.flush,Qo.uint32(18).fork()).ldelim(),fo.info!==void 0&&_e.RequestInfo.encode(fo.info,Qo.uint32(26).fork()).ldelim(),fo.initChain!==void 0&&_e.RequestInitChain.encode(fo.initChain,Qo.uint32(42).fork()).ldelim(),fo.query!==void 0&&_e.RequestQuery.encode(fo.query,Qo.uint32(50).fork()).ldelim(),fo.beginBlock!==void 0&&_e.RequestBeginBlock.encode(fo.beginBlock,Qo.uint32(58).fork()).ldelim(),fo.checkTx!==void 0&&_e.RequestCheckTx.encode(fo.checkTx,Qo.uint32(66).fork()).ldelim(),fo.deliverTx!==void 0&&_e.RequestDeliverTx.encode(fo.deliverTx,Qo.uint32(74).fork()).ldelim(),fo.endBlock!==void 0&&_e.RequestEndBlock.encode(fo.endBlock,Qo.uint32(82).fork()).ldelim(),fo.commit!==void 0&&_e.RequestCommit.encode(fo.commit,Qo.uint32(90).fork()).ldelim(),fo.listSnapshots!==void 0&&_e.RequestListSnapshots.encode(fo.listSnapshots,Qo.uint32(98).fork()).ldelim(),fo.offerSnapshot!==void 0&&_e.RequestOfferSnapshot.encode(fo.offerSnapshot,Qo.uint32(106).fork()).ldelim(),fo.loadSnapshotChunk!==void 0&&_e.RequestLoadSnapshotChunk.encode(fo.loadSnapshotChunk,Qo.uint32(114).fork()).ldelim(),fo.applySnapshotChunk!==void 0&&_e.RequestApplySnapshotChunk.encode(fo.applySnapshotChunk,Qo.uint32(122).fork()).ldelim(),fo.prepareProposal!==void 0&&_e.RequestPrepareProposal.encode(fo.prepareProposal,Qo.uint32(130).fork()).ldelim(),fo.processProposal!==void 0&&_e.RequestProcessProposal.encode(fo.processProposal,Qo.uint32(138).fork()).ldelim(),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=lo();for(;Ko.pos>>3){case 1:Kn.echo=_e.RequestEcho.decode(Ko,Ko.uint32());break;case 2:Kn.flush=_e.RequestFlush.decode(Ko,Ko.uint32());break;case 3:Kn.info=_e.RequestInfo.decode(Ko,Ko.uint32());break;case 5:Kn.initChain=_e.RequestInitChain.decode(Ko,Ko.uint32());break;case 6:Kn.query=_e.RequestQuery.decode(Ko,Ko.uint32());break;case 7:Kn.beginBlock=_e.RequestBeginBlock.decode(Ko,Ko.uint32());break;case 8:Kn.checkTx=_e.RequestCheckTx.decode(Ko,Ko.uint32());break;case 9:Kn.deliverTx=_e.RequestDeliverTx.decode(Ko,Ko.uint32());break;case 10:Kn.endBlock=_e.RequestEndBlock.decode(Ko,Ko.uint32());break;case 11:Kn.commit=_e.RequestCommit.decode(Ko,Ko.uint32());break;case 12:Kn.listSnapshots=_e.RequestListSnapshots.decode(Ko,Ko.uint32());break;case 13:Kn.offerSnapshot=_e.RequestOfferSnapshot.decode(Ko,Ko.uint32());break;case 14:Kn.loadSnapshotChunk=_e.RequestLoadSnapshotChunk.decode(Ko,Ko.uint32());break;case 15:Kn.applySnapshotChunk=_e.RequestApplySnapshotChunk.decode(Ko,Ko.uint32());break;case 16:Kn.prepareProposal=_e.RequestPrepareProposal.decode(Ko,Ko.uint32());break;case 17:Kn.processProposal=_e.RequestProcessProposal.decode(Ko,Ko.uint32());break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{echo:(0,kt.isSet)(fo.echo)?_e.RequestEcho.fromJSON(fo.echo):void 0,flush:(0,kt.isSet)(fo.flush)?_e.RequestFlush.fromJSON(fo.flush):void 0,info:(0,kt.isSet)(fo.info)?_e.RequestInfo.fromJSON(fo.info):void 0,initChain:(0,kt.isSet)(fo.initChain)?_e.RequestInitChain.fromJSON(fo.initChain):void 0,query:(0,kt.isSet)(fo.query)?_e.RequestQuery.fromJSON(fo.query):void 0,beginBlock:(0,kt.isSet)(fo.beginBlock)?_e.RequestBeginBlock.fromJSON(fo.beginBlock):void 0,checkTx:(0,kt.isSet)(fo.checkTx)?_e.RequestCheckTx.fromJSON(fo.checkTx):void 0,deliverTx:(0,kt.isSet)(fo.deliverTx)?_e.RequestDeliverTx.fromJSON(fo.deliverTx):void 0,endBlock:(0,kt.isSet)(fo.endBlock)?_e.RequestEndBlock.fromJSON(fo.endBlock):void 0,commit:(0,kt.isSet)(fo.commit)?_e.RequestCommit.fromJSON(fo.commit):void 0,listSnapshots:(0,kt.isSet)(fo.listSnapshots)?_e.RequestListSnapshots.fromJSON(fo.listSnapshots):void 0,offerSnapshot:(0,kt.isSet)(fo.offerSnapshot)?_e.RequestOfferSnapshot.fromJSON(fo.offerSnapshot):void 0,loadSnapshotChunk:(0,kt.isSet)(fo.loadSnapshotChunk)?_e.RequestLoadSnapshotChunk.fromJSON(fo.loadSnapshotChunk):void 0,applySnapshotChunk:(0,kt.isSet)(fo.applySnapshotChunk)?_e.RequestApplySnapshotChunk.fromJSON(fo.applySnapshotChunk):void 0,prepareProposal:(0,kt.isSet)(fo.prepareProposal)?_e.RequestPrepareProposal.fromJSON(fo.prepareProposal):void 0,processProposal:(0,kt.isSet)(fo.processProposal)?_e.RequestProcessProposal.fromJSON(fo.processProposal):void 0}},toJSON(fo){const Qo={};return fo.echo!==void 0&&(Qo.echo=fo.echo?_e.RequestEcho.toJSON(fo.echo):void 0),fo.flush!==void 0&&(Qo.flush=fo.flush?_e.RequestFlush.toJSON(fo.flush):void 0),fo.info!==void 0&&(Qo.info=fo.info?_e.RequestInfo.toJSON(fo.info):void 0),fo.initChain!==void 0&&(Qo.initChain=fo.initChain?_e.RequestInitChain.toJSON(fo.initChain):void 0),fo.query!==void 0&&(Qo.query=fo.query?_e.RequestQuery.toJSON(fo.query):void 0),fo.beginBlock!==void 0&&(Qo.beginBlock=fo.beginBlock?_e.RequestBeginBlock.toJSON(fo.beginBlock):void 0),fo.checkTx!==void 0&&(Qo.checkTx=fo.checkTx?_e.RequestCheckTx.toJSON(fo.checkTx):void 0),fo.deliverTx!==void 0&&(Qo.deliverTx=fo.deliverTx?_e.RequestDeliverTx.toJSON(fo.deliverTx):void 0),fo.endBlock!==void 0&&(Qo.endBlock=fo.endBlock?_e.RequestEndBlock.toJSON(fo.endBlock):void 0),fo.commit!==void 0&&(Qo.commit=fo.commit?_e.RequestCommit.toJSON(fo.commit):void 0),fo.listSnapshots!==void 0&&(Qo.listSnapshots=fo.listSnapshots?_e.RequestListSnapshots.toJSON(fo.listSnapshots):void 0),fo.offerSnapshot!==void 0&&(Qo.offerSnapshot=fo.offerSnapshot?_e.RequestOfferSnapshot.toJSON(fo.offerSnapshot):void 0),fo.loadSnapshotChunk!==void 0&&(Qo.loadSnapshotChunk=fo.loadSnapshotChunk?_e.RequestLoadSnapshotChunk.toJSON(fo.loadSnapshotChunk):void 0),fo.applySnapshotChunk!==void 0&&(Qo.applySnapshotChunk=fo.applySnapshotChunk?_e.RequestApplySnapshotChunk.toJSON(fo.applySnapshotChunk):void 0),fo.prepareProposal!==void 0&&(Qo.prepareProposal=fo.prepareProposal?_e.RequestPrepareProposal.toJSON(fo.prepareProposal):void 0),fo.processProposal!==void 0&&(Qo.processProposal=fo.processProposal?_e.RequestProcessProposal.toJSON(fo.processProposal):void 0),Qo},fromPartial(fo){const Qo=lo();return Qo.echo=fo.echo!==void 0&&fo.echo!==null?_e.RequestEcho.fromPartial(fo.echo):void 0,Qo.flush=fo.flush!==void 0&&fo.flush!==null?_e.RequestFlush.fromPartial(fo.flush):void 0,Qo.info=fo.info!==void 0&&fo.info!==null?_e.RequestInfo.fromPartial(fo.info):void 0,Qo.initChain=fo.initChain!==void 0&&fo.initChain!==null?_e.RequestInitChain.fromPartial(fo.initChain):void 0,Qo.query=fo.query!==void 0&&fo.query!==null?_e.RequestQuery.fromPartial(fo.query):void 0,Qo.beginBlock=fo.beginBlock!==void 0&&fo.beginBlock!==null?_e.RequestBeginBlock.fromPartial(fo.beginBlock):void 0,Qo.checkTx=fo.checkTx!==void 0&&fo.checkTx!==null?_e.RequestCheckTx.fromPartial(fo.checkTx):void 0,Qo.deliverTx=fo.deliverTx!==void 0&&fo.deliverTx!==null?_e.RequestDeliverTx.fromPartial(fo.deliverTx):void 0,Qo.endBlock=fo.endBlock!==void 0&&fo.endBlock!==null?_e.RequestEndBlock.fromPartial(fo.endBlock):void 0,Qo.commit=fo.commit!==void 0&&fo.commit!==null?_e.RequestCommit.fromPartial(fo.commit):void 0,Qo.listSnapshots=fo.listSnapshots!==void 0&&fo.listSnapshots!==null?_e.RequestListSnapshots.fromPartial(fo.listSnapshots):void 0,Qo.offerSnapshot=fo.offerSnapshot!==void 0&&fo.offerSnapshot!==null?_e.RequestOfferSnapshot.fromPartial(fo.offerSnapshot):void 0,Qo.loadSnapshotChunk=fo.loadSnapshotChunk!==void 0&&fo.loadSnapshotChunk!==null?_e.RequestLoadSnapshotChunk.fromPartial(fo.loadSnapshotChunk):void 0,Qo.applySnapshotChunk=fo.applySnapshotChunk!==void 0&&fo.applySnapshotChunk!==null?_e.RequestApplySnapshotChunk.fromPartial(fo.applySnapshotChunk):void 0,Qo.prepareProposal=fo.prepareProposal!==void 0&&fo.prepareProposal!==null?_e.RequestPrepareProposal.fromPartial(fo.prepareProposal):void 0,Qo.processProposal=fo.processProposal!==void 0&&fo.processProposal!==null?_e.RequestProcessProposal.fromPartial(fo.processProposal):void 0,Qo}};function so(){return{message:""}}_e.RequestEcho={encode(fo,Qo=qt.Writer.create()){return fo.message!==""&&Qo.uint32(10).string(fo.message),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=so();for(;Ko.pos>>3){case 1:Kn.message=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{message:(0,kt.isSet)(fo.message)?String(fo.message):""}},toJSON(fo){const Qo={};return fo.message!==void 0&&(Qo.message=fo.message),Qo},fromPartial(fo){const Qo=so();return Qo.message=fo.message??"",Qo}};function wo(){return{}}_e.RequestFlush={encode(fo,Qo=qt.Writer.create()){return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=wo();for(;Ko.pos>>3){default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{}},toJSON(fo){return{}},fromPartial(fo){return wo()}};function xt(){return{version:"",blockVersion:kt.Long.UZERO,p2pVersion:kt.Long.UZERO,abciVersion:""}}_e.RequestInfo={encode(fo,Qo=qt.Writer.create()){return fo.version!==""&&Qo.uint32(10).string(fo.version),fo.blockVersion.isZero()||Qo.uint32(16).uint64(fo.blockVersion),fo.p2pVersion.isZero()||Qo.uint32(24).uint64(fo.p2pVersion),fo.abciVersion!==""&&Qo.uint32(34).string(fo.abciVersion),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=xt();for(;Ko.pos>>3){case 1:Kn.version=Ko.string();break;case 2:Kn.blockVersion=Ko.uint64();break;case 3:Kn.p2pVersion=Ko.uint64();break;case 4:Kn.abciVersion=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{version:(0,kt.isSet)(fo.version)?String(fo.version):"",blockVersion:(0,kt.isSet)(fo.blockVersion)?kt.Long.fromValue(fo.blockVersion):kt.Long.UZERO,p2pVersion:(0,kt.isSet)(fo.p2pVersion)?kt.Long.fromValue(fo.p2pVersion):kt.Long.UZERO,abciVersion:(0,kt.isSet)(fo.abciVersion)?String(fo.abciVersion):""}},toJSON(fo){const Qo={};return fo.version!==void 0&&(Qo.version=fo.version),fo.blockVersion!==void 0&&(Qo.blockVersion=(fo.blockVersion||kt.Long.UZERO).toString()),fo.p2pVersion!==void 0&&(Qo.p2pVersion=(fo.p2pVersion||kt.Long.UZERO).toString()),fo.abciVersion!==void 0&&(Qo.abciVersion=fo.abciVersion),Qo},fromPartial(fo){const Qo=xt();return Qo.version=fo.version??"",Qo.blockVersion=fo.blockVersion!==void 0&&fo.blockVersion!==null?kt.Long.fromValue(fo.blockVersion):kt.Long.UZERO,Qo.p2pVersion=fo.p2pVersion!==void 0&&fo.p2pVersion!==null?kt.Long.fromValue(fo.p2pVersion):kt.Long.UZERO,Qo.abciVersion=fo.abciVersion??"",Qo}};function Mt(){return{time:void 0,chainId:"",consensusParams:void 0,validators:[],appStateBytes:new Uint8Array,initialHeight:kt.Long.ZERO}}_e.RequestInitChain={encode(fo,Qo=qt.Writer.create()){fo.time!==void 0&&Vr.Timestamp.encode(fo.time,Qo.uint32(10).fork()).ldelim(),fo.chainId!==""&&Qo.uint32(18).string(fo.chainId),fo.consensusParams!==void 0&&tt.ConsensusParams.encode(fo.consensusParams,Qo.uint32(26).fork()).ldelim();for(const Ko of fo.validators)_e.ValidatorUpdate.encode(Ko,Qo.uint32(34).fork()).ldelim();return fo.appStateBytes.length!==0&&Qo.uint32(42).bytes(fo.appStateBytes),fo.initialHeight.isZero()||Qo.uint32(48).int64(fo.initialHeight),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Mt();for(;Ko.pos>>3){case 1:Kn.time=Vr.Timestamp.decode(Ko,Ko.uint32());break;case 2:Kn.chainId=Ko.string();break;case 3:Kn.consensusParams=tt.ConsensusParams.decode(Ko,Ko.uint32());break;case 4:Kn.validators.push(_e.ValidatorUpdate.decode(Ko,Ko.uint32()));break;case 5:Kn.appStateBytes=Ko.bytes();break;case 6:Kn.initialHeight=Ko.int64();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{time:(0,kt.isSet)(fo.time)?(0,kt.fromJsonTimestamp)(fo.time):void 0,chainId:(0,kt.isSet)(fo.chainId)?String(fo.chainId):"",consensusParams:(0,kt.isSet)(fo.consensusParams)?tt.ConsensusParams.fromJSON(fo.consensusParams):void 0,validators:Array.isArray(fo==null?void 0:fo.validators)?fo.validators.map(Qo=>_e.ValidatorUpdate.fromJSON(Qo)):[],appStateBytes:(0,kt.isSet)(fo.appStateBytes)?(0,kt.bytesFromBase64)(fo.appStateBytes):new Uint8Array,initialHeight:(0,kt.isSet)(fo.initialHeight)?kt.Long.fromValue(fo.initialHeight):kt.Long.ZERO}},toJSON(fo){const Qo={};return fo.time!==void 0&&(Qo.time=(0,kt.fromTimestamp)(fo.time).toISOString()),fo.chainId!==void 0&&(Qo.chainId=fo.chainId),fo.consensusParams!==void 0&&(Qo.consensusParams=fo.consensusParams?tt.ConsensusParams.toJSON(fo.consensusParams):void 0),fo.validators?Qo.validators=fo.validators.map(Ko=>Ko?_e.ValidatorUpdate.toJSON(Ko):void 0):Qo.validators=[],fo.appStateBytes!==void 0&&(Qo.appStateBytes=(0,kt.base64FromBytes)(fo.appStateBytes!==void 0?fo.appStateBytes:new Uint8Array)),fo.initialHeight!==void 0&&(Qo.initialHeight=(fo.initialHeight||kt.Long.ZERO).toString()),Qo},fromPartial(fo){var Ko;const Qo=Mt();return Qo.time=fo.time!==void 0&&fo.time!==null?Vr.Timestamp.fromPartial(fo.time):void 0,Qo.chainId=fo.chainId??"",Qo.consensusParams=fo.consensusParams!==void 0&&fo.consensusParams!==null?tt.ConsensusParams.fromPartial(fo.consensusParams):void 0,Qo.validators=((Ko=fo.validators)==null?void 0:Ko.map(ps=>_e.ValidatorUpdate.fromPartial(ps)))||[],Qo.appStateBytes=fo.appStateBytes??new Uint8Array,Qo.initialHeight=fo.initialHeight!==void 0&&fo.initialHeight!==null?kt.Long.fromValue(fo.initialHeight):kt.Long.ZERO,Qo}};function ho(){return{data:new Uint8Array,path:"",height:kt.Long.ZERO,prove:!1}}_e.RequestQuery={encode(fo,Qo=qt.Writer.create()){return fo.data.length!==0&&Qo.uint32(10).bytes(fo.data),fo.path!==""&&Qo.uint32(18).string(fo.path),fo.height.isZero()||Qo.uint32(24).int64(fo.height),fo.prove===!0&&Qo.uint32(32).bool(fo.prove),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=ho();for(;Ko.pos>>3){case 1:Kn.data=Ko.bytes();break;case 2:Kn.path=Ko.string();break;case 3:Kn.height=Ko.int64();break;case 4:Kn.prove=Ko.bool();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{data:(0,kt.isSet)(fo.data)?(0,kt.bytesFromBase64)(fo.data):new Uint8Array,path:(0,kt.isSet)(fo.path)?String(fo.path):"",height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.ZERO,prove:(0,kt.isSet)(fo.prove)?!!fo.prove:!1}},toJSON(fo){const Qo={};return fo.data!==void 0&&(Qo.data=(0,kt.base64FromBytes)(fo.data!==void 0?fo.data:new Uint8Array)),fo.path!==void 0&&(Qo.path=fo.path),fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.ZERO).toString()),fo.prove!==void 0&&(Qo.prove=fo.prove),Qo},fromPartial(fo){const Qo=ho();return Qo.data=fo.data??new Uint8Array,Qo.path=fo.path??"",Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.ZERO,Qo.prove=fo.prove??!1,Qo}};function io(){return{hash:new Uint8Array,header:void 0,lastCommitInfo:void 0,byzantineValidators:[]}}_e.RequestBeginBlock={encode(fo,Qo=qt.Writer.create()){fo.hash.length!==0&&Qo.uint32(10).bytes(fo.hash),fo.header!==void 0&&nt.Header.encode(fo.header,Qo.uint32(18).fork()).ldelim(),fo.lastCommitInfo!==void 0&&_e.CommitInfo.encode(fo.lastCommitInfo,Qo.uint32(26).fork()).ldelim();for(const Ko of fo.byzantineValidators)_e.Misbehavior.encode(Ko,Qo.uint32(34).fork()).ldelim();return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=io();for(;Ko.pos>>3){case 1:Kn.hash=Ko.bytes();break;case 2:Kn.header=nt.Header.decode(Ko,Ko.uint32());break;case 3:Kn.lastCommitInfo=_e.CommitInfo.decode(Ko,Ko.uint32());break;case 4:Kn.byzantineValidators.push(_e.Misbehavior.decode(Ko,Ko.uint32()));break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{hash:(0,kt.isSet)(fo.hash)?(0,kt.bytesFromBase64)(fo.hash):new Uint8Array,header:(0,kt.isSet)(fo.header)?nt.Header.fromJSON(fo.header):void 0,lastCommitInfo:(0,kt.isSet)(fo.lastCommitInfo)?_e.CommitInfo.fromJSON(fo.lastCommitInfo):void 0,byzantineValidators:Array.isArray(fo==null?void 0:fo.byzantineValidators)?fo.byzantineValidators.map(Qo=>_e.Misbehavior.fromJSON(Qo)):[]}},toJSON(fo){const Qo={};return fo.hash!==void 0&&(Qo.hash=(0,kt.base64FromBytes)(fo.hash!==void 0?fo.hash:new Uint8Array)),fo.header!==void 0&&(Qo.header=fo.header?nt.Header.toJSON(fo.header):void 0),fo.lastCommitInfo!==void 0&&(Qo.lastCommitInfo=fo.lastCommitInfo?_e.CommitInfo.toJSON(fo.lastCommitInfo):void 0),fo.byzantineValidators?Qo.byzantineValidators=fo.byzantineValidators.map(Ko=>Ko?_e.Misbehavior.toJSON(Ko):void 0):Qo.byzantineValidators=[],Qo},fromPartial(fo){var Ko;const Qo=io();return Qo.hash=fo.hash??new Uint8Array,Qo.header=fo.header!==void 0&&fo.header!==null?nt.Header.fromPartial(fo.header):void 0,Qo.lastCommitInfo=fo.lastCommitInfo!==void 0&&fo.lastCommitInfo!==null?_e.CommitInfo.fromPartial(fo.lastCommitInfo):void 0,Qo.byzantineValidators=((Ko=fo.byzantineValidators)==null?void 0:Ko.map(ps=>_e.Misbehavior.fromPartial(ps)))||[],Qo}};function co(){return{tx:new Uint8Array,type:0}}_e.RequestCheckTx={encode(fo,Qo=qt.Writer.create()){return fo.tx.length!==0&&Qo.uint32(10).bytes(fo.tx),fo.type!==0&&Qo.uint32(16).int32(fo.type),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=co();for(;Ko.pos>>3){case 1:Kn.tx=Ko.bytes();break;case 2:Kn.type=Ko.int32();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{tx:(0,kt.isSet)(fo.tx)?(0,kt.bytesFromBase64)(fo.tx):new Uint8Array,type:(0,kt.isSet)(fo.type)?ht(fo.type):0}},toJSON(fo){const Qo={};return fo.tx!==void 0&&(Qo.tx=(0,kt.base64FromBytes)(fo.tx!==void 0?fo.tx:new Uint8Array)),fo.type!==void 0&&(Qo.type=po(fo.type)),Qo},fromPartial(fo){const Qo=co();return Qo.tx=fo.tx??new Uint8Array,Qo.type=fo.type??0,Qo}};function mo(){return{tx:new Uint8Array}}_e.RequestDeliverTx={encode(fo,Qo=qt.Writer.create()){return fo.tx.length!==0&&Qo.uint32(10).bytes(fo.tx),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=mo();for(;Ko.pos>>3){case 1:Kn.tx=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{tx:(0,kt.isSet)(fo.tx)?(0,kt.bytesFromBase64)(fo.tx):new Uint8Array}},toJSON(fo){const Qo={};return fo.tx!==void 0&&(Qo.tx=(0,kt.base64FromBytes)(fo.tx!==void 0?fo.tx:new Uint8Array)),Qo},fromPartial(fo){const Qo=mo();return Qo.tx=fo.tx??new Uint8Array,Qo}};function Bo(){return{height:kt.Long.ZERO}}_e.RequestEndBlock={encode(fo,Qo=qt.Writer.create()){return fo.height.isZero()||Qo.uint32(8).int64(fo.height),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Bo();for(;Ko.pos>>3){case 1:Kn.height=Ko.int64();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.ZERO}},toJSON(fo){const Qo={};return fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.ZERO).toString()),Qo},fromPartial(fo){const Qo=Bo();return Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.ZERO,Qo}};function So(){return{}}_e.RequestCommit={encode(fo,Qo=qt.Writer.create()){return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=So();for(;Ko.pos>>3){default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{}},toJSON(fo){return{}},fromPartial(fo){return So()}};function Tt(){return{}}_e.RequestListSnapshots={encode(fo,Qo=qt.Writer.create()){return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Tt();for(;Ko.pos>>3){default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{}},toJSON(fo){return{}},fromPartial(fo){return Tt()}};function vo(){return{snapshot:void 0,appHash:new Uint8Array}}_e.RequestOfferSnapshot={encode(fo,Qo=qt.Writer.create()){return fo.snapshot!==void 0&&_e.Snapshot.encode(fo.snapshot,Qo.uint32(10).fork()).ldelim(),fo.appHash.length!==0&&Qo.uint32(18).bytes(fo.appHash),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=vo();for(;Ko.pos>>3){case 1:Kn.snapshot=_e.Snapshot.decode(Ko,Ko.uint32());break;case 2:Kn.appHash=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{snapshot:(0,kt.isSet)(fo.snapshot)?_e.Snapshot.fromJSON(fo.snapshot):void 0,appHash:(0,kt.isSet)(fo.appHash)?(0,kt.bytesFromBase64)(fo.appHash):new Uint8Array}},toJSON(fo){const Qo={};return fo.snapshot!==void 0&&(Qo.snapshot=fo.snapshot?_e.Snapshot.toJSON(fo.snapshot):void 0),fo.appHash!==void 0&&(Qo.appHash=(0,kt.base64FromBytes)(fo.appHash!==void 0?fo.appHash:new Uint8Array)),Qo},fromPartial(fo){const Qo=vo();return Qo.snapshot=fo.snapshot!==void 0&&fo.snapshot!==null?_e.Snapshot.fromPartial(fo.snapshot):void 0,Qo.appHash=fo.appHash??new Uint8Array,Qo}};function Co(){return{height:kt.Long.UZERO,format:0,chunk:0}}_e.RequestLoadSnapshotChunk={encode(fo,Qo=qt.Writer.create()){return fo.height.isZero()||Qo.uint32(8).uint64(fo.height),fo.format!==0&&Qo.uint32(16).uint32(fo.format),fo.chunk!==0&&Qo.uint32(24).uint32(fo.chunk),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Co();for(;Ko.pos>>3){case 1:Kn.height=Ko.uint64();break;case 2:Kn.format=Ko.uint32();break;case 3:Kn.chunk=Ko.uint32();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.UZERO,format:(0,kt.isSet)(fo.format)?Number(fo.format):0,chunk:(0,kt.isSet)(fo.chunk)?Number(fo.chunk):0}},toJSON(fo){const Qo={};return fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.UZERO).toString()),fo.format!==void 0&&(Qo.format=Math.round(fo.format)),fo.chunk!==void 0&&(Qo.chunk=Math.round(fo.chunk)),Qo},fromPartial(fo){const Qo=Co();return Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.UZERO,Qo.format=fo.format??0,Qo.chunk=fo.chunk??0,Qo}};function xo(){return{index:0,chunk:new Uint8Array,sender:""}}_e.RequestApplySnapshotChunk={encode(fo,Qo=qt.Writer.create()){return fo.index!==0&&Qo.uint32(8).uint32(fo.index),fo.chunk.length!==0&&Qo.uint32(18).bytes(fo.chunk),fo.sender!==""&&Qo.uint32(26).string(fo.sender),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=xo();for(;Ko.pos>>3){case 1:Kn.index=Ko.uint32();break;case 2:Kn.chunk=Ko.bytes();break;case 3:Kn.sender=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{index:(0,kt.isSet)(fo.index)?Number(fo.index):0,chunk:(0,kt.isSet)(fo.chunk)?(0,kt.bytesFromBase64)(fo.chunk):new Uint8Array,sender:(0,kt.isSet)(fo.sender)?String(fo.sender):""}},toJSON(fo){const Qo={};return fo.index!==void 0&&(Qo.index=Math.round(fo.index)),fo.chunk!==void 0&&(Qo.chunk=(0,kt.base64FromBytes)(fo.chunk!==void 0?fo.chunk:new Uint8Array)),fo.sender!==void 0&&(Qo.sender=fo.sender),Qo},fromPartial(fo){const Qo=xo();return Qo.index=fo.index??0,Qo.chunk=fo.chunk??new Uint8Array,Qo.sender=fo.sender??"",Qo}};function Po(){return{maxTxBytes:kt.Long.ZERO,txs:[],localLastCommit:void 0,misbehavior:[],height:kt.Long.ZERO,time:void 0,nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}_e.RequestPrepareProposal={encode(fo,Qo=qt.Writer.create()){fo.maxTxBytes.isZero()||Qo.uint32(8).int64(fo.maxTxBytes);for(const Ko of fo.txs)Qo.uint32(18).bytes(Ko);fo.localLastCommit!==void 0&&_e.ExtendedCommitInfo.encode(fo.localLastCommit,Qo.uint32(26).fork()).ldelim();for(const Ko of fo.misbehavior)_e.Misbehavior.encode(Ko,Qo.uint32(34).fork()).ldelim();return fo.height.isZero()||Qo.uint32(40).int64(fo.height),fo.time!==void 0&&Vr.Timestamp.encode(fo.time,Qo.uint32(50).fork()).ldelim(),fo.nextValidatorsHash.length!==0&&Qo.uint32(58).bytes(fo.nextValidatorsHash),fo.proposerAddress.length!==0&&Qo.uint32(66).bytes(fo.proposerAddress),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Po();for(;Ko.pos>>3){case 1:Kn.maxTxBytes=Ko.int64();break;case 2:Kn.txs.push(Ko.bytes());break;case 3:Kn.localLastCommit=_e.ExtendedCommitInfo.decode(Ko,Ko.uint32());break;case 4:Kn.misbehavior.push(_e.Misbehavior.decode(Ko,Ko.uint32()));break;case 5:Kn.height=Ko.int64();break;case 6:Kn.time=Vr.Timestamp.decode(Ko,Ko.uint32());break;case 7:Kn.nextValidatorsHash=Ko.bytes();break;case 8:Kn.proposerAddress=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{maxTxBytes:(0,kt.isSet)(fo.maxTxBytes)?kt.Long.fromValue(fo.maxTxBytes):kt.Long.ZERO,txs:Array.isArray(fo==null?void 0:fo.txs)?fo.txs.map(Qo=>(0,kt.bytesFromBase64)(Qo)):[],localLastCommit:(0,kt.isSet)(fo.localLastCommit)?_e.ExtendedCommitInfo.fromJSON(fo.localLastCommit):void 0,misbehavior:Array.isArray(fo==null?void 0:fo.misbehavior)?fo.misbehavior.map(Qo=>_e.Misbehavior.fromJSON(Qo)):[],height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.ZERO,time:(0,kt.isSet)(fo.time)?(0,kt.fromJsonTimestamp)(fo.time):void 0,nextValidatorsHash:(0,kt.isSet)(fo.nextValidatorsHash)?(0,kt.bytesFromBase64)(fo.nextValidatorsHash):new Uint8Array,proposerAddress:(0,kt.isSet)(fo.proposerAddress)?(0,kt.bytesFromBase64)(fo.proposerAddress):new Uint8Array}},toJSON(fo){const Qo={};return fo.maxTxBytes!==void 0&&(Qo.maxTxBytes=(fo.maxTxBytes||kt.Long.ZERO).toString()),fo.txs?Qo.txs=fo.txs.map(Ko=>(0,kt.base64FromBytes)(Ko!==void 0?Ko:new Uint8Array)):Qo.txs=[],fo.localLastCommit!==void 0&&(Qo.localLastCommit=fo.localLastCommit?_e.ExtendedCommitInfo.toJSON(fo.localLastCommit):void 0),fo.misbehavior?Qo.misbehavior=fo.misbehavior.map(Ko=>Ko?_e.Misbehavior.toJSON(Ko):void 0):Qo.misbehavior=[],fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.ZERO).toString()),fo.time!==void 0&&(Qo.time=(0,kt.fromTimestamp)(fo.time).toISOString()),fo.nextValidatorsHash!==void 0&&(Qo.nextValidatorsHash=(0,kt.base64FromBytes)(fo.nextValidatorsHash!==void 0?fo.nextValidatorsHash:new Uint8Array)),fo.proposerAddress!==void 0&&(Qo.proposerAddress=(0,kt.base64FromBytes)(fo.proposerAddress!==void 0?fo.proposerAddress:new Uint8Array)),Qo},fromPartial(fo){var Ko,ps;const Qo=Po();return Qo.maxTxBytes=fo.maxTxBytes!==void 0&&fo.maxTxBytes!==null?kt.Long.fromValue(fo.maxTxBytes):kt.Long.ZERO,Qo.txs=((Ko=fo.txs)==null?void 0:Ko.map(Kn=>Kn))||[],Qo.localLastCommit=fo.localLastCommit!==void 0&&fo.localLastCommit!==null?_e.ExtendedCommitInfo.fromPartial(fo.localLastCommit):void 0,Qo.misbehavior=((ps=fo.misbehavior)==null?void 0:ps.map(Kn=>_e.Misbehavior.fromPartial(Kn)))||[],Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.ZERO,Qo.time=fo.time!==void 0&&fo.time!==null?Vr.Timestamp.fromPartial(fo.time):void 0,Qo.nextValidatorsHash=fo.nextValidatorsHash??new Uint8Array,Qo.proposerAddress=fo.proposerAddress??new Uint8Array,Qo}};function Wo(){return{txs:[],proposedLastCommit:void 0,misbehavior:[],hash:new Uint8Array,height:kt.Long.ZERO,time:void 0,nextValidatorsHash:new Uint8Array,proposerAddress:new Uint8Array}}_e.RequestProcessProposal={encode(fo,Qo=qt.Writer.create()){for(const Ko of fo.txs)Qo.uint32(10).bytes(Ko);fo.proposedLastCommit!==void 0&&_e.CommitInfo.encode(fo.proposedLastCommit,Qo.uint32(18).fork()).ldelim();for(const Ko of fo.misbehavior)_e.Misbehavior.encode(Ko,Qo.uint32(26).fork()).ldelim();return fo.hash.length!==0&&Qo.uint32(34).bytes(fo.hash),fo.height.isZero()||Qo.uint32(40).int64(fo.height),fo.time!==void 0&&Vr.Timestamp.encode(fo.time,Qo.uint32(50).fork()).ldelim(),fo.nextValidatorsHash.length!==0&&Qo.uint32(58).bytes(fo.nextValidatorsHash),fo.proposerAddress.length!==0&&Qo.uint32(66).bytes(fo.proposerAddress),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Wo();for(;Ko.pos>>3){case 1:Kn.txs.push(Ko.bytes());break;case 2:Kn.proposedLastCommit=_e.CommitInfo.decode(Ko,Ko.uint32());break;case 3:Kn.misbehavior.push(_e.Misbehavior.decode(Ko,Ko.uint32()));break;case 4:Kn.hash=Ko.bytes();break;case 5:Kn.height=Ko.int64();break;case 6:Kn.time=Vr.Timestamp.decode(Ko,Ko.uint32());break;case 7:Kn.nextValidatorsHash=Ko.bytes();break;case 8:Kn.proposerAddress=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{txs:Array.isArray(fo==null?void 0:fo.txs)?fo.txs.map(Qo=>(0,kt.bytesFromBase64)(Qo)):[],proposedLastCommit:(0,kt.isSet)(fo.proposedLastCommit)?_e.CommitInfo.fromJSON(fo.proposedLastCommit):void 0,misbehavior:Array.isArray(fo==null?void 0:fo.misbehavior)?fo.misbehavior.map(Qo=>_e.Misbehavior.fromJSON(Qo)):[],hash:(0,kt.isSet)(fo.hash)?(0,kt.bytesFromBase64)(fo.hash):new Uint8Array,height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.ZERO,time:(0,kt.isSet)(fo.time)?(0,kt.fromJsonTimestamp)(fo.time):void 0,nextValidatorsHash:(0,kt.isSet)(fo.nextValidatorsHash)?(0,kt.bytesFromBase64)(fo.nextValidatorsHash):new Uint8Array,proposerAddress:(0,kt.isSet)(fo.proposerAddress)?(0,kt.bytesFromBase64)(fo.proposerAddress):new Uint8Array}},toJSON(fo){const Qo={};return fo.txs?Qo.txs=fo.txs.map(Ko=>(0,kt.base64FromBytes)(Ko!==void 0?Ko:new Uint8Array)):Qo.txs=[],fo.proposedLastCommit!==void 0&&(Qo.proposedLastCommit=fo.proposedLastCommit?_e.CommitInfo.toJSON(fo.proposedLastCommit):void 0),fo.misbehavior?Qo.misbehavior=fo.misbehavior.map(Ko=>Ko?_e.Misbehavior.toJSON(Ko):void 0):Qo.misbehavior=[],fo.hash!==void 0&&(Qo.hash=(0,kt.base64FromBytes)(fo.hash!==void 0?fo.hash:new Uint8Array)),fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.ZERO).toString()),fo.time!==void 0&&(Qo.time=(0,kt.fromTimestamp)(fo.time).toISOString()),fo.nextValidatorsHash!==void 0&&(Qo.nextValidatorsHash=(0,kt.base64FromBytes)(fo.nextValidatorsHash!==void 0?fo.nextValidatorsHash:new Uint8Array)),fo.proposerAddress!==void 0&&(Qo.proposerAddress=(0,kt.base64FromBytes)(fo.proposerAddress!==void 0?fo.proposerAddress:new Uint8Array)),Qo},fromPartial(fo){var Ko,ps;const Qo=Wo();return Qo.txs=((Ko=fo.txs)==null?void 0:Ko.map(Kn=>Kn))||[],Qo.proposedLastCommit=fo.proposedLastCommit!==void 0&&fo.proposedLastCommit!==null?_e.CommitInfo.fromPartial(fo.proposedLastCommit):void 0,Qo.misbehavior=((ps=fo.misbehavior)==null?void 0:ps.map(Kn=>_e.Misbehavior.fromPartial(Kn)))||[],Qo.hash=fo.hash??new Uint8Array,Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.ZERO,Qo.time=fo.time!==void 0&&fo.time!==null?Vr.Timestamp.fromPartial(fo.time):void 0,Qo.nextValidatorsHash=fo.nextValidatorsHash??new Uint8Array,Qo.proposerAddress=fo.proposerAddress??new Uint8Array,Qo}};function Yn(){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}}_e.Response={encode(fo,Qo=qt.Writer.create()){return fo.exception!==void 0&&_e.ResponseException.encode(fo.exception,Qo.uint32(10).fork()).ldelim(),fo.echo!==void 0&&_e.ResponseEcho.encode(fo.echo,Qo.uint32(18).fork()).ldelim(),fo.flush!==void 0&&_e.ResponseFlush.encode(fo.flush,Qo.uint32(26).fork()).ldelim(),fo.info!==void 0&&_e.ResponseInfo.encode(fo.info,Qo.uint32(34).fork()).ldelim(),fo.initChain!==void 0&&_e.ResponseInitChain.encode(fo.initChain,Qo.uint32(50).fork()).ldelim(),fo.query!==void 0&&_e.ResponseQuery.encode(fo.query,Qo.uint32(58).fork()).ldelim(),fo.beginBlock!==void 0&&_e.ResponseBeginBlock.encode(fo.beginBlock,Qo.uint32(66).fork()).ldelim(),fo.checkTx!==void 0&&_e.ResponseCheckTx.encode(fo.checkTx,Qo.uint32(74).fork()).ldelim(),fo.deliverTx!==void 0&&_e.ResponseDeliverTx.encode(fo.deliverTx,Qo.uint32(82).fork()).ldelim(),fo.endBlock!==void 0&&_e.ResponseEndBlock.encode(fo.endBlock,Qo.uint32(90).fork()).ldelim(),fo.commit!==void 0&&_e.ResponseCommit.encode(fo.commit,Qo.uint32(98).fork()).ldelim(),fo.listSnapshots!==void 0&&_e.ResponseListSnapshots.encode(fo.listSnapshots,Qo.uint32(106).fork()).ldelim(),fo.offerSnapshot!==void 0&&_e.ResponseOfferSnapshot.encode(fo.offerSnapshot,Qo.uint32(114).fork()).ldelim(),fo.loadSnapshotChunk!==void 0&&_e.ResponseLoadSnapshotChunk.encode(fo.loadSnapshotChunk,Qo.uint32(122).fork()).ldelim(),fo.applySnapshotChunk!==void 0&&_e.ResponseApplySnapshotChunk.encode(fo.applySnapshotChunk,Qo.uint32(130).fork()).ldelim(),fo.prepareProposal!==void 0&&_e.ResponsePrepareProposal.encode(fo.prepareProposal,Qo.uint32(138).fork()).ldelim(),fo.processProposal!==void 0&&_e.ResponseProcessProposal.encode(fo.processProposal,Qo.uint32(146).fork()).ldelim(),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Yn();for(;Ko.pos>>3){case 1:Kn.exception=_e.ResponseException.decode(Ko,Ko.uint32());break;case 2:Kn.echo=_e.ResponseEcho.decode(Ko,Ko.uint32());break;case 3:Kn.flush=_e.ResponseFlush.decode(Ko,Ko.uint32());break;case 4:Kn.info=_e.ResponseInfo.decode(Ko,Ko.uint32());break;case 6:Kn.initChain=_e.ResponseInitChain.decode(Ko,Ko.uint32());break;case 7:Kn.query=_e.ResponseQuery.decode(Ko,Ko.uint32());break;case 8:Kn.beginBlock=_e.ResponseBeginBlock.decode(Ko,Ko.uint32());break;case 9:Kn.checkTx=_e.ResponseCheckTx.decode(Ko,Ko.uint32());break;case 10:Kn.deliverTx=_e.ResponseDeliverTx.decode(Ko,Ko.uint32());break;case 11:Kn.endBlock=_e.ResponseEndBlock.decode(Ko,Ko.uint32());break;case 12:Kn.commit=_e.ResponseCommit.decode(Ko,Ko.uint32());break;case 13:Kn.listSnapshots=_e.ResponseListSnapshots.decode(Ko,Ko.uint32());break;case 14:Kn.offerSnapshot=_e.ResponseOfferSnapshot.decode(Ko,Ko.uint32());break;case 15:Kn.loadSnapshotChunk=_e.ResponseLoadSnapshotChunk.decode(Ko,Ko.uint32());break;case 16:Kn.applySnapshotChunk=_e.ResponseApplySnapshotChunk.decode(Ko,Ko.uint32());break;case 17:Kn.prepareProposal=_e.ResponsePrepareProposal.decode(Ko,Ko.uint32());break;case 18:Kn.processProposal=_e.ResponseProcessProposal.decode(Ko,Ko.uint32());break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{exception:(0,kt.isSet)(fo.exception)?_e.ResponseException.fromJSON(fo.exception):void 0,echo:(0,kt.isSet)(fo.echo)?_e.ResponseEcho.fromJSON(fo.echo):void 0,flush:(0,kt.isSet)(fo.flush)?_e.ResponseFlush.fromJSON(fo.flush):void 0,info:(0,kt.isSet)(fo.info)?_e.ResponseInfo.fromJSON(fo.info):void 0,initChain:(0,kt.isSet)(fo.initChain)?_e.ResponseInitChain.fromJSON(fo.initChain):void 0,query:(0,kt.isSet)(fo.query)?_e.ResponseQuery.fromJSON(fo.query):void 0,beginBlock:(0,kt.isSet)(fo.beginBlock)?_e.ResponseBeginBlock.fromJSON(fo.beginBlock):void 0,checkTx:(0,kt.isSet)(fo.checkTx)?_e.ResponseCheckTx.fromJSON(fo.checkTx):void 0,deliverTx:(0,kt.isSet)(fo.deliverTx)?_e.ResponseDeliverTx.fromJSON(fo.deliverTx):void 0,endBlock:(0,kt.isSet)(fo.endBlock)?_e.ResponseEndBlock.fromJSON(fo.endBlock):void 0,commit:(0,kt.isSet)(fo.commit)?_e.ResponseCommit.fromJSON(fo.commit):void 0,listSnapshots:(0,kt.isSet)(fo.listSnapshots)?_e.ResponseListSnapshots.fromJSON(fo.listSnapshots):void 0,offerSnapshot:(0,kt.isSet)(fo.offerSnapshot)?_e.ResponseOfferSnapshot.fromJSON(fo.offerSnapshot):void 0,loadSnapshotChunk:(0,kt.isSet)(fo.loadSnapshotChunk)?_e.ResponseLoadSnapshotChunk.fromJSON(fo.loadSnapshotChunk):void 0,applySnapshotChunk:(0,kt.isSet)(fo.applySnapshotChunk)?_e.ResponseApplySnapshotChunk.fromJSON(fo.applySnapshotChunk):void 0,prepareProposal:(0,kt.isSet)(fo.prepareProposal)?_e.ResponsePrepareProposal.fromJSON(fo.prepareProposal):void 0,processProposal:(0,kt.isSet)(fo.processProposal)?_e.ResponseProcessProposal.fromJSON(fo.processProposal):void 0}},toJSON(fo){const Qo={};return fo.exception!==void 0&&(Qo.exception=fo.exception?_e.ResponseException.toJSON(fo.exception):void 0),fo.echo!==void 0&&(Qo.echo=fo.echo?_e.ResponseEcho.toJSON(fo.echo):void 0),fo.flush!==void 0&&(Qo.flush=fo.flush?_e.ResponseFlush.toJSON(fo.flush):void 0),fo.info!==void 0&&(Qo.info=fo.info?_e.ResponseInfo.toJSON(fo.info):void 0),fo.initChain!==void 0&&(Qo.initChain=fo.initChain?_e.ResponseInitChain.toJSON(fo.initChain):void 0),fo.query!==void 0&&(Qo.query=fo.query?_e.ResponseQuery.toJSON(fo.query):void 0),fo.beginBlock!==void 0&&(Qo.beginBlock=fo.beginBlock?_e.ResponseBeginBlock.toJSON(fo.beginBlock):void 0),fo.checkTx!==void 0&&(Qo.checkTx=fo.checkTx?_e.ResponseCheckTx.toJSON(fo.checkTx):void 0),fo.deliverTx!==void 0&&(Qo.deliverTx=fo.deliverTx?_e.ResponseDeliverTx.toJSON(fo.deliverTx):void 0),fo.endBlock!==void 0&&(Qo.endBlock=fo.endBlock?_e.ResponseEndBlock.toJSON(fo.endBlock):void 0),fo.commit!==void 0&&(Qo.commit=fo.commit?_e.ResponseCommit.toJSON(fo.commit):void 0),fo.listSnapshots!==void 0&&(Qo.listSnapshots=fo.listSnapshots?_e.ResponseListSnapshots.toJSON(fo.listSnapshots):void 0),fo.offerSnapshot!==void 0&&(Qo.offerSnapshot=fo.offerSnapshot?_e.ResponseOfferSnapshot.toJSON(fo.offerSnapshot):void 0),fo.loadSnapshotChunk!==void 0&&(Qo.loadSnapshotChunk=fo.loadSnapshotChunk?_e.ResponseLoadSnapshotChunk.toJSON(fo.loadSnapshotChunk):void 0),fo.applySnapshotChunk!==void 0&&(Qo.applySnapshotChunk=fo.applySnapshotChunk?_e.ResponseApplySnapshotChunk.toJSON(fo.applySnapshotChunk):void 0),fo.prepareProposal!==void 0&&(Qo.prepareProposal=fo.prepareProposal?_e.ResponsePrepareProposal.toJSON(fo.prepareProposal):void 0),fo.processProposal!==void 0&&(Qo.processProposal=fo.processProposal?_e.ResponseProcessProposal.toJSON(fo.processProposal):void 0),Qo},fromPartial(fo){const Qo=Yn();return Qo.exception=fo.exception!==void 0&&fo.exception!==null?_e.ResponseException.fromPartial(fo.exception):void 0,Qo.echo=fo.echo!==void 0&&fo.echo!==null?_e.ResponseEcho.fromPartial(fo.echo):void 0,Qo.flush=fo.flush!==void 0&&fo.flush!==null?_e.ResponseFlush.fromPartial(fo.flush):void 0,Qo.info=fo.info!==void 0&&fo.info!==null?_e.ResponseInfo.fromPartial(fo.info):void 0,Qo.initChain=fo.initChain!==void 0&&fo.initChain!==null?_e.ResponseInitChain.fromPartial(fo.initChain):void 0,Qo.query=fo.query!==void 0&&fo.query!==null?_e.ResponseQuery.fromPartial(fo.query):void 0,Qo.beginBlock=fo.beginBlock!==void 0&&fo.beginBlock!==null?_e.ResponseBeginBlock.fromPartial(fo.beginBlock):void 0,Qo.checkTx=fo.checkTx!==void 0&&fo.checkTx!==null?_e.ResponseCheckTx.fromPartial(fo.checkTx):void 0,Qo.deliverTx=fo.deliverTx!==void 0&&fo.deliverTx!==null?_e.ResponseDeliverTx.fromPartial(fo.deliverTx):void 0,Qo.endBlock=fo.endBlock!==void 0&&fo.endBlock!==null?_e.ResponseEndBlock.fromPartial(fo.endBlock):void 0,Qo.commit=fo.commit!==void 0&&fo.commit!==null?_e.ResponseCommit.fromPartial(fo.commit):void 0,Qo.listSnapshots=fo.listSnapshots!==void 0&&fo.listSnapshots!==null?_e.ResponseListSnapshots.fromPartial(fo.listSnapshots):void 0,Qo.offerSnapshot=fo.offerSnapshot!==void 0&&fo.offerSnapshot!==null?_e.ResponseOfferSnapshot.fromPartial(fo.offerSnapshot):void 0,Qo.loadSnapshotChunk=fo.loadSnapshotChunk!==void 0&&fo.loadSnapshotChunk!==null?_e.ResponseLoadSnapshotChunk.fromPartial(fo.loadSnapshotChunk):void 0,Qo.applySnapshotChunk=fo.applySnapshotChunk!==void 0&&fo.applySnapshotChunk!==null?_e.ResponseApplySnapshotChunk.fromPartial(fo.applySnapshotChunk):void 0,Qo.prepareProposal=fo.prepareProposal!==void 0&&fo.prepareProposal!==null?_e.ResponsePrepareProposal.fromPartial(fo.prepareProposal):void 0,Qo.processProposal=fo.processProposal!==void 0&&fo.processProposal!==null?_e.ResponseProcessProposal.fromPartial(fo.processProposal):void 0,Qo}};function ba(){return{error:""}}_e.ResponseException={encode(fo,Qo=qt.Writer.create()){return fo.error!==""&&Qo.uint32(10).string(fo.error),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=ba();for(;Ko.pos>>3){case 1:Kn.error=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{error:(0,kt.isSet)(fo.error)?String(fo.error):""}},toJSON(fo){const Qo={};return fo.error!==void 0&&(Qo.error=fo.error),Qo},fromPartial(fo){const Qo=ba();return Qo.error=fo.error??"",Qo}};function _a(){return{message:""}}_e.ResponseEcho={encode(fo,Qo=qt.Writer.create()){return fo.message!==""&&Qo.uint32(10).string(fo.message),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=_a();for(;Ko.pos>>3){case 1:Kn.message=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{message:(0,kt.isSet)(fo.message)?String(fo.message):""}},toJSON(fo){const Qo={};return fo.message!==void 0&&(Qo.message=fo.message),Qo},fromPartial(fo){const Qo=_a();return Qo.message=fo.message??"",Qo}};function $s(){return{}}_e.ResponseFlush={encode(fo,Qo=qt.Writer.create()){return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=$s();for(;Ko.pos>>3){default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{}},toJSON(fo){return{}},fromPartial(fo){return $s()}};function vs(){return{data:"",version:"",appVersion:kt.Long.UZERO,lastBlockHeight:kt.Long.ZERO,lastBlockAppHash:new Uint8Array}}_e.ResponseInfo={encode(fo,Qo=qt.Writer.create()){return fo.data!==""&&Qo.uint32(10).string(fo.data),fo.version!==""&&Qo.uint32(18).string(fo.version),fo.appVersion.isZero()||Qo.uint32(24).uint64(fo.appVersion),fo.lastBlockHeight.isZero()||Qo.uint32(32).int64(fo.lastBlockHeight),fo.lastBlockAppHash.length!==0&&Qo.uint32(42).bytes(fo.lastBlockAppHash),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=vs();for(;Ko.pos>>3){case 1:Kn.data=Ko.string();break;case 2:Kn.version=Ko.string();break;case 3:Kn.appVersion=Ko.uint64();break;case 4:Kn.lastBlockHeight=Ko.int64();break;case 5:Kn.lastBlockAppHash=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{data:(0,kt.isSet)(fo.data)?String(fo.data):"",version:(0,kt.isSet)(fo.version)?String(fo.version):"",appVersion:(0,kt.isSet)(fo.appVersion)?kt.Long.fromValue(fo.appVersion):kt.Long.UZERO,lastBlockHeight:(0,kt.isSet)(fo.lastBlockHeight)?kt.Long.fromValue(fo.lastBlockHeight):kt.Long.ZERO,lastBlockAppHash:(0,kt.isSet)(fo.lastBlockAppHash)?(0,kt.bytesFromBase64)(fo.lastBlockAppHash):new Uint8Array}},toJSON(fo){const Qo={};return fo.data!==void 0&&(Qo.data=fo.data),fo.version!==void 0&&(Qo.version=fo.version),fo.appVersion!==void 0&&(Qo.appVersion=(fo.appVersion||kt.Long.UZERO).toString()),fo.lastBlockHeight!==void 0&&(Qo.lastBlockHeight=(fo.lastBlockHeight||kt.Long.ZERO).toString()),fo.lastBlockAppHash!==void 0&&(Qo.lastBlockAppHash=(0,kt.base64FromBytes)(fo.lastBlockAppHash!==void 0?fo.lastBlockAppHash:new Uint8Array)),Qo},fromPartial(fo){const Qo=vs();return Qo.data=fo.data??"",Qo.version=fo.version??"",Qo.appVersion=fo.appVersion!==void 0&&fo.appVersion!==null?kt.Long.fromValue(fo.appVersion):kt.Long.UZERO,Qo.lastBlockHeight=fo.lastBlockHeight!==void 0&&fo.lastBlockHeight!==null?kt.Long.fromValue(fo.lastBlockHeight):kt.Long.ZERO,Qo.lastBlockAppHash=fo.lastBlockAppHash??new Uint8Array,Qo}};function ss(){return{consensusParams:void 0,validators:[],appHash:new Uint8Array}}_e.ResponseInitChain={encode(fo,Qo=qt.Writer.create()){fo.consensusParams!==void 0&&tt.ConsensusParams.encode(fo.consensusParams,Qo.uint32(10).fork()).ldelim();for(const Ko of fo.validators)_e.ValidatorUpdate.encode(Ko,Qo.uint32(18).fork()).ldelim();return fo.appHash.length!==0&&Qo.uint32(26).bytes(fo.appHash),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=ss();for(;Ko.pos>>3){case 1:Kn.consensusParams=tt.ConsensusParams.decode(Ko,Ko.uint32());break;case 2:Kn.validators.push(_e.ValidatorUpdate.decode(Ko,Ko.uint32()));break;case 3:Kn.appHash=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{consensusParams:(0,kt.isSet)(fo.consensusParams)?tt.ConsensusParams.fromJSON(fo.consensusParams):void 0,validators:Array.isArray(fo==null?void 0:fo.validators)?fo.validators.map(Qo=>_e.ValidatorUpdate.fromJSON(Qo)):[],appHash:(0,kt.isSet)(fo.appHash)?(0,kt.bytesFromBase64)(fo.appHash):new Uint8Array}},toJSON(fo){const Qo={};return fo.consensusParams!==void 0&&(Qo.consensusParams=fo.consensusParams?tt.ConsensusParams.toJSON(fo.consensusParams):void 0),fo.validators?Qo.validators=fo.validators.map(Ko=>Ko?_e.ValidatorUpdate.toJSON(Ko):void 0):Qo.validators=[],fo.appHash!==void 0&&(Qo.appHash=(0,kt.base64FromBytes)(fo.appHash!==void 0?fo.appHash:new Uint8Array)),Qo},fromPartial(fo){var Ko;const Qo=ss();return Qo.consensusParams=fo.consensusParams!==void 0&&fo.consensusParams!==null?tt.ConsensusParams.fromPartial(fo.consensusParams):void 0,Qo.validators=((Ko=fo.validators)==null?void 0:Ko.map(ps=>_e.ValidatorUpdate.fromPartial(ps)))||[],Qo.appHash=fo.appHash??new Uint8Array,Qo}};function Ts(){return{code:0,log:"",info:"",index:kt.Long.ZERO,key:new Uint8Array,value:new Uint8Array,proofOps:void 0,height:kt.Long.ZERO,codespace:""}}_e.ResponseQuery={encode(fo,Qo=qt.Writer.create()){return fo.code!==0&&Qo.uint32(8).uint32(fo.code),fo.log!==""&&Qo.uint32(26).string(fo.log),fo.info!==""&&Qo.uint32(34).string(fo.info),fo.index.isZero()||Qo.uint32(40).int64(fo.index),fo.key.length!==0&&Qo.uint32(50).bytes(fo.key),fo.value.length!==0&&Qo.uint32(58).bytes(fo.value),fo.proofOps!==void 0&&st.ProofOps.encode(fo.proofOps,Qo.uint32(66).fork()).ldelim(),fo.height.isZero()||Qo.uint32(72).int64(fo.height),fo.codespace!==""&&Qo.uint32(82).string(fo.codespace),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Ts();for(;Ko.pos>>3){case 1:Kn.code=Ko.uint32();break;case 3:Kn.log=Ko.string();break;case 4:Kn.info=Ko.string();break;case 5:Kn.index=Ko.int64();break;case 6:Kn.key=Ko.bytes();break;case 7:Kn.value=Ko.bytes();break;case 8:Kn.proofOps=st.ProofOps.decode(Ko,Ko.uint32());break;case 9:Kn.height=Ko.int64();break;case 10:Kn.codespace=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{code:(0,kt.isSet)(fo.code)?Number(fo.code):0,log:(0,kt.isSet)(fo.log)?String(fo.log):"",info:(0,kt.isSet)(fo.info)?String(fo.info):"",index:(0,kt.isSet)(fo.index)?kt.Long.fromValue(fo.index):kt.Long.ZERO,key:(0,kt.isSet)(fo.key)?(0,kt.bytesFromBase64)(fo.key):new Uint8Array,value:(0,kt.isSet)(fo.value)?(0,kt.bytesFromBase64)(fo.value):new Uint8Array,proofOps:(0,kt.isSet)(fo.proofOps)?st.ProofOps.fromJSON(fo.proofOps):void 0,height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.ZERO,codespace:(0,kt.isSet)(fo.codespace)?String(fo.codespace):""}},toJSON(fo){const Qo={};return fo.code!==void 0&&(Qo.code=Math.round(fo.code)),fo.log!==void 0&&(Qo.log=fo.log),fo.info!==void 0&&(Qo.info=fo.info),fo.index!==void 0&&(Qo.index=(fo.index||kt.Long.ZERO).toString()),fo.key!==void 0&&(Qo.key=(0,kt.base64FromBytes)(fo.key!==void 0?fo.key:new Uint8Array)),fo.value!==void 0&&(Qo.value=(0,kt.base64FromBytes)(fo.value!==void 0?fo.value:new Uint8Array)),fo.proofOps!==void 0&&(Qo.proofOps=fo.proofOps?st.ProofOps.toJSON(fo.proofOps):void 0),fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.ZERO).toString()),fo.codespace!==void 0&&(Qo.codespace=fo.codespace),Qo},fromPartial(fo){const Qo=Ts();return Qo.code=fo.code??0,Qo.log=fo.log??"",Qo.info=fo.info??"",Qo.index=fo.index!==void 0&&fo.index!==null?kt.Long.fromValue(fo.index):kt.Long.ZERO,Qo.key=fo.key??new Uint8Array,Qo.value=fo.value??new Uint8Array,Qo.proofOps=fo.proofOps!==void 0&&fo.proofOps!==null?st.ProofOps.fromPartial(fo.proofOps):void 0,Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.ZERO,Qo.codespace=fo.codespace??"",Qo}};function qo(){return{events:[]}}_e.ResponseBeginBlock={encode(fo,Qo=qt.Writer.create()){for(const Ko of fo.events)_e.Event.encode(Ko,Qo.uint32(10).fork()).ldelim();return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=qo();for(;Ko.pos>>3){case 1:Kn.events.push(_e.Event.decode(Ko,Ko.uint32()));break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{events:Array.isArray(fo==null?void 0:fo.events)?fo.events.map(Qo=>_e.Event.fromJSON(Qo)):[]}},toJSON(fo){const Qo={};return fo.events?Qo.events=fo.events.map(Ko=>Ko?_e.Event.toJSON(Ko):void 0):Qo.events=[],Qo},fromPartial(fo){var Ko;const Qo=qo();return Qo.events=((Ko=fo.events)==null?void 0:Ko.map(ps=>_e.Event.fromPartial(ps)))||[],Qo}};function Js(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:kt.Long.ZERO,gasUsed:kt.Long.ZERO,events:[],codespace:"",sender:"",priority:kt.Long.ZERO,mempoolError:""}}_e.ResponseCheckTx={encode(fo,Qo=qt.Writer.create()){fo.code!==0&&Qo.uint32(8).uint32(fo.code),fo.data.length!==0&&Qo.uint32(18).bytes(fo.data),fo.log!==""&&Qo.uint32(26).string(fo.log),fo.info!==""&&Qo.uint32(34).string(fo.info),fo.gasWanted.isZero()||Qo.uint32(40).int64(fo.gasWanted),fo.gasUsed.isZero()||Qo.uint32(48).int64(fo.gasUsed);for(const Ko of fo.events)_e.Event.encode(Ko,Qo.uint32(58).fork()).ldelim();return fo.codespace!==""&&Qo.uint32(66).string(fo.codespace),fo.sender!==""&&Qo.uint32(74).string(fo.sender),fo.priority.isZero()||Qo.uint32(80).int64(fo.priority),fo.mempoolError!==""&&Qo.uint32(90).string(fo.mempoolError),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Js();for(;Ko.pos>>3){case 1:Kn.code=Ko.uint32();break;case 2:Kn.data=Ko.bytes();break;case 3:Kn.log=Ko.string();break;case 4:Kn.info=Ko.string();break;case 5:Kn.gasWanted=Ko.int64();break;case 6:Kn.gasUsed=Ko.int64();break;case 7:Kn.events.push(_e.Event.decode(Ko,Ko.uint32()));break;case 8:Kn.codespace=Ko.string();break;case 9:Kn.sender=Ko.string();break;case 10:Kn.priority=Ko.int64();break;case 11:Kn.mempoolError=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{code:(0,kt.isSet)(fo.code)?Number(fo.code):0,data:(0,kt.isSet)(fo.data)?(0,kt.bytesFromBase64)(fo.data):new Uint8Array,log:(0,kt.isSet)(fo.log)?String(fo.log):"",info:(0,kt.isSet)(fo.info)?String(fo.info):"",gasWanted:(0,kt.isSet)(fo.gas_wanted)?kt.Long.fromValue(fo.gas_wanted):kt.Long.ZERO,gasUsed:(0,kt.isSet)(fo.gas_used)?kt.Long.fromValue(fo.gas_used):kt.Long.ZERO,events:Array.isArray(fo==null?void 0:fo.events)?fo.events.map(Qo=>_e.Event.fromJSON(Qo)):[],codespace:(0,kt.isSet)(fo.codespace)?String(fo.codespace):"",sender:(0,kt.isSet)(fo.sender)?String(fo.sender):"",priority:(0,kt.isSet)(fo.priority)?kt.Long.fromValue(fo.priority):kt.Long.ZERO,mempoolError:(0,kt.isSet)(fo.mempoolError)?String(fo.mempoolError):""}},toJSON(fo){const Qo={};return fo.code!==void 0&&(Qo.code=Math.round(fo.code)),fo.data!==void 0&&(Qo.data=(0,kt.base64FromBytes)(fo.data!==void 0?fo.data:new Uint8Array)),fo.log!==void 0&&(Qo.log=fo.log),fo.info!==void 0&&(Qo.info=fo.info),fo.gasWanted!==void 0&&(Qo.gas_wanted=(fo.gasWanted||kt.Long.ZERO).toString()),fo.gasUsed!==void 0&&(Qo.gas_used=(fo.gasUsed||kt.Long.ZERO).toString()),fo.events?Qo.events=fo.events.map(Ko=>Ko?_e.Event.toJSON(Ko):void 0):Qo.events=[],fo.codespace!==void 0&&(Qo.codespace=fo.codespace),fo.sender!==void 0&&(Qo.sender=fo.sender),fo.priority!==void 0&&(Qo.priority=(fo.priority||kt.Long.ZERO).toString()),fo.mempoolError!==void 0&&(Qo.mempoolError=fo.mempoolError),Qo},fromPartial(fo){var Ko;const Qo=Js();return Qo.code=fo.code??0,Qo.data=fo.data??new Uint8Array,Qo.log=fo.log??"",Qo.info=fo.info??"",Qo.gasWanted=fo.gasWanted!==void 0&&fo.gasWanted!==null?kt.Long.fromValue(fo.gasWanted):kt.Long.ZERO,Qo.gasUsed=fo.gasUsed!==void 0&&fo.gasUsed!==null?kt.Long.fromValue(fo.gasUsed):kt.Long.ZERO,Qo.events=((Ko=fo.events)==null?void 0:Ko.map(ps=>_e.Event.fromPartial(ps)))||[],Qo.codespace=fo.codespace??"",Qo.sender=fo.sender??"",Qo.priority=fo.priority!==void 0&&fo.priority!==null?kt.Long.fromValue(fo.priority):kt.Long.ZERO,Qo.mempoolError=fo.mempoolError??"",Qo}};function Vo(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:kt.Long.ZERO,gasUsed:kt.Long.ZERO,events:[],codespace:""}}_e.ResponseDeliverTx={encode(fo,Qo=qt.Writer.create()){fo.code!==0&&Qo.uint32(8).uint32(fo.code),fo.data.length!==0&&Qo.uint32(18).bytes(fo.data),fo.log!==""&&Qo.uint32(26).string(fo.log),fo.info!==""&&Qo.uint32(34).string(fo.info),fo.gasWanted.isZero()||Qo.uint32(40).int64(fo.gasWanted),fo.gasUsed.isZero()||Qo.uint32(48).int64(fo.gasUsed);for(const Ko of fo.events)_e.Event.encode(Ko,Qo.uint32(58).fork()).ldelim();return fo.codespace!==""&&Qo.uint32(66).string(fo.codespace),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Vo();for(;Ko.pos>>3){case 1:Kn.code=Ko.uint32();break;case 2:Kn.data=Ko.bytes();break;case 3:Kn.log=Ko.string();break;case 4:Kn.info=Ko.string();break;case 5:Kn.gasWanted=Ko.int64();break;case 6:Kn.gasUsed=Ko.int64();break;case 7:Kn.events.push(_e.Event.decode(Ko,Ko.uint32()));break;case 8:Kn.codespace=Ko.string();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{code:(0,kt.isSet)(fo.code)?Number(fo.code):0,data:(0,kt.isSet)(fo.data)?(0,kt.bytesFromBase64)(fo.data):new Uint8Array,log:(0,kt.isSet)(fo.log)?String(fo.log):"",info:(0,kt.isSet)(fo.info)?String(fo.info):"",gasWanted:(0,kt.isSet)(fo.gas_wanted)?kt.Long.fromValue(fo.gas_wanted):kt.Long.ZERO,gasUsed:(0,kt.isSet)(fo.gas_used)?kt.Long.fromValue(fo.gas_used):kt.Long.ZERO,events:Array.isArray(fo==null?void 0:fo.events)?fo.events.map(Qo=>_e.Event.fromJSON(Qo)):[],codespace:(0,kt.isSet)(fo.codespace)?String(fo.codespace):""}},toJSON(fo){const Qo={};return fo.code!==void 0&&(Qo.code=Math.round(fo.code)),fo.data!==void 0&&(Qo.data=(0,kt.base64FromBytes)(fo.data!==void 0?fo.data:new Uint8Array)),fo.log!==void 0&&(Qo.log=fo.log),fo.info!==void 0&&(Qo.info=fo.info),fo.gasWanted!==void 0&&(Qo.gas_wanted=(fo.gasWanted||kt.Long.ZERO).toString()),fo.gasUsed!==void 0&&(Qo.gas_used=(fo.gasUsed||kt.Long.ZERO).toString()),fo.events?Qo.events=fo.events.map(Ko=>Ko?_e.Event.toJSON(Ko):void 0):Qo.events=[],fo.codespace!==void 0&&(Qo.codespace=fo.codespace),Qo},fromPartial(fo){var Ko;const Qo=Vo();return Qo.code=fo.code??0,Qo.data=fo.data??new Uint8Array,Qo.log=fo.log??"",Qo.info=fo.info??"",Qo.gasWanted=fo.gasWanted!==void 0&&fo.gasWanted!==null?kt.Long.fromValue(fo.gasWanted):kt.Long.ZERO,Qo.gasUsed=fo.gasUsed!==void 0&&fo.gasUsed!==null?kt.Long.fromValue(fo.gasUsed):kt.Long.ZERO,Qo.events=((Ko=fo.events)==null?void 0:Ko.map(ps=>_e.Event.fromPartial(ps)))||[],Qo.codespace=fo.codespace??"",Qo}};function zo(){return{validatorUpdates:[],consensusParamUpdates:void 0,events:[]}}_e.ResponseEndBlock={encode(fo,Qo=qt.Writer.create()){for(const Ko of fo.validatorUpdates)_e.ValidatorUpdate.encode(Ko,Qo.uint32(10).fork()).ldelim();fo.consensusParamUpdates!==void 0&&tt.ConsensusParams.encode(fo.consensusParamUpdates,Qo.uint32(18).fork()).ldelim();for(const Ko of fo.events)_e.Event.encode(Ko,Qo.uint32(26).fork()).ldelim();return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=zo();for(;Ko.pos>>3){case 1:Kn.validatorUpdates.push(_e.ValidatorUpdate.decode(Ko,Ko.uint32()));break;case 2:Kn.consensusParamUpdates=tt.ConsensusParams.decode(Ko,Ko.uint32());break;case 3:Kn.events.push(_e.Event.decode(Ko,Ko.uint32()));break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{validatorUpdates:Array.isArray(fo==null?void 0:fo.validatorUpdates)?fo.validatorUpdates.map(Qo=>_e.ValidatorUpdate.fromJSON(Qo)):[],consensusParamUpdates:(0,kt.isSet)(fo.consensusParamUpdates)?tt.ConsensusParams.fromJSON(fo.consensusParamUpdates):void 0,events:Array.isArray(fo==null?void 0:fo.events)?fo.events.map(Qo=>_e.Event.fromJSON(Qo)):[]}},toJSON(fo){const Qo={};return fo.validatorUpdates?Qo.validatorUpdates=fo.validatorUpdates.map(Ko=>Ko?_e.ValidatorUpdate.toJSON(Ko):void 0):Qo.validatorUpdates=[],fo.consensusParamUpdates!==void 0&&(Qo.consensusParamUpdates=fo.consensusParamUpdates?tt.ConsensusParams.toJSON(fo.consensusParamUpdates):void 0),fo.events?Qo.events=fo.events.map(Ko=>Ko?_e.Event.toJSON(Ko):void 0):Qo.events=[],Qo},fromPartial(fo){var Ko,ps;const Qo=zo();return Qo.validatorUpdates=((Ko=fo.validatorUpdates)==null?void 0:Ko.map(Kn=>_e.ValidatorUpdate.fromPartial(Kn)))||[],Qo.consensusParamUpdates=fo.consensusParamUpdates!==void 0&&fo.consensusParamUpdates!==null?tt.ConsensusParams.fromPartial(fo.consensusParamUpdates):void 0,Qo.events=((ps=fo.events)==null?void 0:ps.map(Kn=>_e.Event.fromPartial(Kn)))||[],Qo}};function $n(){return{data:new Uint8Array,retainHeight:kt.Long.ZERO}}_e.ResponseCommit={encode(fo,Qo=qt.Writer.create()){return fo.data.length!==0&&Qo.uint32(18).bytes(fo.data),fo.retainHeight.isZero()||Qo.uint32(24).int64(fo.retainHeight),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=$n();for(;Ko.pos>>3){case 2:Kn.data=Ko.bytes();break;case 3:Kn.retainHeight=Ko.int64();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{data:(0,kt.isSet)(fo.data)?(0,kt.bytesFromBase64)(fo.data):new Uint8Array,retainHeight:(0,kt.isSet)(fo.retainHeight)?kt.Long.fromValue(fo.retainHeight):kt.Long.ZERO}},toJSON(fo){const Qo={};return fo.data!==void 0&&(Qo.data=(0,kt.base64FromBytes)(fo.data!==void 0?fo.data:new Uint8Array)),fo.retainHeight!==void 0&&(Qo.retainHeight=(fo.retainHeight||kt.Long.ZERO).toString()),Qo},fromPartial(fo){const Qo=$n();return Qo.data=fo.data??new Uint8Array,Qo.retainHeight=fo.retainHeight!==void 0&&fo.retainHeight!==null?kt.Long.fromValue(fo.retainHeight):kt.Long.ZERO,Qo}};function Tn(){return{snapshots:[]}}_e.ResponseListSnapshots={encode(fo,Qo=qt.Writer.create()){for(const Ko of fo.snapshots)_e.Snapshot.encode(Ko,Qo.uint32(10).fork()).ldelim();return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Tn();for(;Ko.pos>>3){case 1:Kn.snapshots.push(_e.Snapshot.decode(Ko,Ko.uint32()));break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{snapshots:Array.isArray(fo==null?void 0:fo.snapshots)?fo.snapshots.map(Qo=>_e.Snapshot.fromJSON(Qo)):[]}},toJSON(fo){const Qo={};return fo.snapshots?Qo.snapshots=fo.snapshots.map(Ko=>Ko?_e.Snapshot.toJSON(Ko):void 0):Qo.snapshots=[],Qo},fromPartial(fo){var Ko;const Qo=Tn();return Qo.snapshots=((Ko=fo.snapshots)==null?void 0:Ko.map(ps=>_e.Snapshot.fromPartial(ps)))||[],Qo}};function ko(){return{result:0}}_e.ResponseOfferSnapshot={encode(fo,Qo=qt.Writer.create()){return fo.result!==0&&Qo.uint32(8).int32(fo.result),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=ko();for(;Ko.pos>>3){case 1:Kn.result=Ko.int32();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{result:(0,kt.isSet)(fo.result)?Nt(fo.result):0}},toJSON(fo){const Qo={};return fo.result!==void 0&&(Qo.result=eo(fo.result)),Qo},fromPartial(fo){const Qo=ko();return Qo.result=fo.result??0,Qo}};function es(){return{chunk:new Uint8Array}}_e.ResponseLoadSnapshotChunk={encode(fo,Qo=qt.Writer.create()){return fo.chunk.length!==0&&Qo.uint32(10).bytes(fo.chunk),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=es();for(;Ko.pos>>3){case 1:Kn.chunk=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{chunk:(0,kt.isSet)(fo.chunk)?(0,kt.bytesFromBase64)(fo.chunk):new Uint8Array}},toJSON(fo){const Qo={};return fo.chunk!==void 0&&(Qo.chunk=(0,kt.base64FromBytes)(fo.chunk!==void 0?fo.chunk:new Uint8Array)),Qo},fromPartial(fo){const Qo=es();return Qo.chunk=fo.chunk??new Uint8Array,Qo}};function fs(){return{result:0,refetchChunks:[],rejectSenders:[]}}_e.ResponseApplySnapshotChunk={encode(fo,Qo=qt.Writer.create()){fo.result!==0&&Qo.uint32(8).int32(fo.result),Qo.uint32(18).fork();for(const Ko of fo.refetchChunks)Qo.uint32(Ko);Qo.ldelim();for(const Ko of fo.rejectSenders)Qo.uint32(26).string(Ko);return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=fs();for(;Ko.pos>>3){case 1:Kn.result=Ko.int32();break;case 2:if((gs&7)===2){const H0=Ko.uint32()+Ko.pos;for(;Ko.posNumber(Qo)):[],rejectSenders:Array.isArray(fo==null?void 0:fo.rejectSenders)?fo.rejectSenders.map(Qo=>String(Qo)):[]}},toJSON(fo){const Qo={};return fo.result!==void 0&&(Qo.result=Ot(fo.result)),fo.refetchChunks?Qo.refetchChunks=fo.refetchChunks.map(Ko=>Math.round(Ko)):Qo.refetchChunks=[],fo.rejectSenders?Qo.rejectSenders=fo.rejectSenders.map(Ko=>Ko):Qo.rejectSenders=[],Qo},fromPartial(fo){var Ko,ps;const Qo=fs();return Qo.result=fo.result??0,Qo.refetchChunks=((Ko=fo.refetchChunks)==null?void 0:Ko.map(Kn=>Kn))||[],Qo.rejectSenders=((ps=fo.rejectSenders)==null?void 0:ps.map(Kn=>Kn))||[],Qo}};function Es(){return{txs:[]}}_e.ResponsePrepareProposal={encode(fo,Qo=qt.Writer.create()){for(const Ko of fo.txs)Qo.uint32(10).bytes(Ko);return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Es();for(;Ko.pos>>3){case 1:Kn.txs.push(Ko.bytes());break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{txs:Array.isArray(fo==null?void 0:fo.txs)?fo.txs.map(Qo=>(0,kt.bytesFromBase64)(Qo)):[]}},toJSON(fo){const Qo={};return fo.txs?Qo.txs=fo.txs.map(Ko=>(0,kt.base64FromBytes)(Ko!==void 0?Ko:new Uint8Array)):Qo.txs=[],Qo},fromPartial(fo){var Ko;const Qo=Es();return Qo.txs=((Ko=fo.txs)==null?void 0:Ko.map(ps=>ps))||[],Qo}};function Us(){return{status:0}}_e.ResponseProcessProposal={encode(fo,Qo=qt.Writer.create()){return fo.status!==0&&Qo.uint32(8).int32(fo.status),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Us();for(;Ko.pos>>3){case 1:Kn.status=Ko.int32();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{status:(0,kt.isSet)(fo.status)?go(fo.status):0}},toJSON(fo){const Qo={};return fo.status!==void 0&&(Qo.status=bo(fo.status)),Qo},fromPartial(fo){const Qo=Us();return Qo.status=fo.status??0,Qo}};function ms(){return{round:0,votes:[]}}_e.CommitInfo={encode(fo,Qo=qt.Writer.create()){fo.round!==0&&Qo.uint32(8).int32(fo.round);for(const Ko of fo.votes)_e.VoteInfo.encode(Ko,Qo.uint32(18).fork()).ldelim();return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=ms();for(;Ko.pos>>3){case 1:Kn.round=Ko.int32();break;case 2:Kn.votes.push(_e.VoteInfo.decode(Ko,Ko.uint32()));break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{round:(0,kt.isSet)(fo.round)?Number(fo.round):0,votes:Array.isArray(fo==null?void 0:fo.votes)?fo.votes.map(Qo=>_e.VoteInfo.fromJSON(Qo)):[]}},toJSON(fo){const Qo={};return fo.round!==void 0&&(Qo.round=Math.round(fo.round)),fo.votes?Qo.votes=fo.votes.map(Ko=>Ko?_e.VoteInfo.toJSON(Ko):void 0):Qo.votes=[],Qo},fromPartial(fo){var Ko;const Qo=ms();return Qo.round=fo.round??0,Qo.votes=((Ko=fo.votes)==null?void 0:Ko.map(ps=>_e.VoteInfo.fromPartial(ps)))||[],Qo}};function bs(){return{round:0,votes:[]}}_e.ExtendedCommitInfo={encode(fo,Qo=qt.Writer.create()){fo.round!==0&&Qo.uint32(8).int32(fo.round);for(const Ko of fo.votes)_e.ExtendedVoteInfo.encode(Ko,Qo.uint32(18).fork()).ldelim();return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=bs();for(;Ko.pos>>3){case 1:Kn.round=Ko.int32();break;case 2:Kn.votes.push(_e.ExtendedVoteInfo.decode(Ko,Ko.uint32()));break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{round:(0,kt.isSet)(fo.round)?Number(fo.round):0,votes:Array.isArray(fo==null?void 0:fo.votes)?fo.votes.map(Qo=>_e.ExtendedVoteInfo.fromJSON(Qo)):[]}},toJSON(fo){const Qo={};return fo.round!==void 0&&(Qo.round=Math.round(fo.round)),fo.votes?Qo.votes=fo.votes.map(Ko=>Ko?_e.ExtendedVoteInfo.toJSON(Ko):void 0):Qo.votes=[],Qo},fromPartial(fo){var Ko;const Qo=bs();return Qo.round=fo.round??0,Qo.votes=((Ko=fo.votes)==null?void 0:Ko.map(ps=>_e.ExtendedVoteInfo.fromPartial(ps)))||[],Qo}};function ks(){return{type:"",attributes:[]}}_e.Event={encode(fo,Qo=qt.Writer.create()){fo.type!==""&&Qo.uint32(10).string(fo.type);for(const Ko of fo.attributes)_e.EventAttribute.encode(Ko,Qo.uint32(18).fork()).ldelim();return Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=ks();for(;Ko.pos>>3){case 1:Kn.type=Ko.string();break;case 2:Kn.attributes.push(_e.EventAttribute.decode(Ko,Ko.uint32()));break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{type:(0,kt.isSet)(fo.type)?String(fo.type):"",attributes:Array.isArray(fo==null?void 0:fo.attributes)?fo.attributes.map(Qo=>_e.EventAttribute.fromJSON(Qo)):[]}},toJSON(fo){const Qo={};return fo.type!==void 0&&(Qo.type=fo.type),fo.attributes?Qo.attributes=fo.attributes.map(Ko=>Ko?_e.EventAttribute.toJSON(Ko):void 0):Qo.attributes=[],Qo},fromPartial(fo){var Ko;const Qo=ks();return Qo.type=fo.type??"",Qo.attributes=((Ko=fo.attributes)==null?void 0:Ko.map(ps=>_e.EventAttribute.fromPartial(ps)))||[],Qo}};function Ds(){return{key:"",value:"",index:!1}}_e.EventAttribute={encode(fo,Qo=qt.Writer.create()){return fo.key!==""&&Qo.uint32(10).string(fo.key),fo.value!==""&&Qo.uint32(18).string(fo.value),fo.index===!0&&Qo.uint32(24).bool(fo.index),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Ds();for(;Ko.pos>>3){case 1:Kn.key=Ko.string();break;case 2:Kn.value=Ko.string();break;case 3:Kn.index=Ko.bool();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{key:(0,kt.isSet)(fo.key)?String(fo.key):"",value:(0,kt.isSet)(fo.value)?String(fo.value):"",index:(0,kt.isSet)(fo.index)?!!fo.index:!1}},toJSON(fo){const Qo={};return fo.key!==void 0&&(Qo.key=fo.key),fo.value!==void 0&&(Qo.value=fo.value),fo.index!==void 0&&(Qo.index=fo.index),Qo},fromPartial(fo){const Qo=Ds();return Qo.key=fo.key??"",Qo.value=fo.value??"",Qo.index=fo.index??!1,Qo}};function Fs(){return{height:kt.Long.ZERO,index:0,tx:new Uint8Array,result:void 0}}_e.TxResult={encode(fo,Qo=qt.Writer.create()){return fo.height.isZero()||Qo.uint32(8).int64(fo.height),fo.index!==0&&Qo.uint32(16).uint32(fo.index),fo.tx.length!==0&&Qo.uint32(26).bytes(fo.tx),fo.result!==void 0&&_e.ResponseDeliverTx.encode(fo.result,Qo.uint32(34).fork()).ldelim(),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=Fs();for(;Ko.pos>>3){case 1:Kn.height=Ko.int64();break;case 2:Kn.index=Ko.uint32();break;case 3:Kn.tx=Ko.bytes();break;case 4:Kn.result=_e.ResponseDeliverTx.decode(Ko,Ko.uint32());break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.ZERO,index:(0,kt.isSet)(fo.index)?Number(fo.index):0,tx:(0,kt.isSet)(fo.tx)?(0,kt.bytesFromBase64)(fo.tx):new Uint8Array,result:(0,kt.isSet)(fo.result)?_e.ResponseDeliverTx.fromJSON(fo.result):void 0}},toJSON(fo){const Qo={};return fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.ZERO).toString()),fo.index!==void 0&&(Qo.index=Math.round(fo.index)),fo.tx!==void 0&&(Qo.tx=(0,kt.base64FromBytes)(fo.tx!==void 0?fo.tx:new Uint8Array)),fo.result!==void 0&&(Qo.result=fo.result?_e.ResponseDeliverTx.toJSON(fo.result):void 0),Qo},fromPartial(fo){const Qo=Fs();return Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.ZERO,Qo.index=fo.index??0,Qo.tx=fo.tx??new Uint8Array,Qo.result=fo.result!==void 0&&fo.result!==null?_e.ResponseDeliverTx.fromPartial(fo.result):void 0,Qo}};function d0(){return{address:new Uint8Array,power:kt.Long.ZERO}}_e.Validator={encode(fo,Qo=qt.Writer.create()){return fo.address.length!==0&&Qo.uint32(10).bytes(fo.address),fo.power.isZero()||Qo.uint32(24).int64(fo.power),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=d0();for(;Ko.pos>>3){case 1:Kn.address=Ko.bytes();break;case 3:Kn.power=Ko.int64();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{address:(0,kt.isSet)(fo.address)?(0,kt.bytesFromBase64)(fo.address):new Uint8Array,power:(0,kt.isSet)(fo.power)?kt.Long.fromValue(fo.power):kt.Long.ZERO}},toJSON(fo){const Qo={};return fo.address!==void 0&&(Qo.address=(0,kt.base64FromBytes)(fo.address!==void 0?fo.address:new Uint8Array)),fo.power!==void 0&&(Qo.power=(fo.power||kt.Long.ZERO).toString()),Qo},fromPartial(fo){const Qo=d0();return Qo.address=fo.address??new Uint8Array,Qo.power=fo.power!==void 0&&fo.power!==null?kt.Long.fromValue(fo.power):kt.Long.ZERO,Qo}};function v0(){return{pubKey:void 0,power:kt.Long.ZERO}}_e.ValidatorUpdate={encode(fo,Qo=qt.Writer.create()){return fo.pubKey!==void 0&&dt.PublicKey.encode(fo.pubKey,Qo.uint32(10).fork()).ldelim(),fo.power.isZero()||Qo.uint32(16).int64(fo.power),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=v0();for(;Ko.pos>>3){case 1:Kn.pubKey=dt.PublicKey.decode(Ko,Ko.uint32());break;case 2:Kn.power=Ko.int64();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{pubKey:(0,kt.isSet)(fo.pubKey)?dt.PublicKey.fromJSON(fo.pubKey):void 0,power:(0,kt.isSet)(fo.power)?kt.Long.fromValue(fo.power):kt.Long.ZERO}},toJSON(fo){const Qo={};return fo.pubKey!==void 0&&(Qo.pubKey=fo.pubKey?dt.PublicKey.toJSON(fo.pubKey):void 0),fo.power!==void 0&&(Qo.power=(fo.power||kt.Long.ZERO).toString()),Qo},fromPartial(fo){const Qo=v0();return Qo.pubKey=fo.pubKey!==void 0&&fo.pubKey!==null?dt.PublicKey.fromPartial(fo.pubKey):void 0,Qo.power=fo.power!==void 0&&fo.power!==null?kt.Long.fromValue(fo.power):kt.Long.ZERO,Qo}};function b0(){return{validator:void 0,signedLastBlock:!1}}_e.VoteInfo={encode(fo,Qo=qt.Writer.create()){return fo.validator!==void 0&&_e.Validator.encode(fo.validator,Qo.uint32(10).fork()).ldelim(),fo.signedLastBlock===!0&&Qo.uint32(16).bool(fo.signedLastBlock),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=b0();for(;Ko.pos>>3){case 1:Kn.validator=_e.Validator.decode(Ko,Ko.uint32());break;case 2:Kn.signedLastBlock=Ko.bool();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{validator:(0,kt.isSet)(fo.validator)?_e.Validator.fromJSON(fo.validator):void 0,signedLastBlock:(0,kt.isSet)(fo.signedLastBlock)?!!fo.signedLastBlock:!1}},toJSON(fo){const Qo={};return fo.validator!==void 0&&(Qo.validator=fo.validator?_e.Validator.toJSON(fo.validator):void 0),fo.signedLastBlock!==void 0&&(Qo.signedLastBlock=fo.signedLastBlock),Qo},fromPartial(fo){const Qo=b0();return Qo.validator=fo.validator!==void 0&&fo.validator!==null?_e.Validator.fromPartial(fo.validator):void 0,Qo.signedLastBlock=fo.signedLastBlock??!1,Qo}};function R0(){return{validator:void 0,signedLastBlock:!1,voteExtension:new Uint8Array}}_e.ExtendedVoteInfo={encode(fo,Qo=qt.Writer.create()){return fo.validator!==void 0&&_e.Validator.encode(fo.validator,Qo.uint32(10).fork()).ldelim(),fo.signedLastBlock===!0&&Qo.uint32(16).bool(fo.signedLastBlock),fo.voteExtension.length!==0&&Qo.uint32(26).bytes(fo.voteExtension),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=R0();for(;Ko.pos>>3){case 1:Kn.validator=_e.Validator.decode(Ko,Ko.uint32());break;case 2:Kn.signedLastBlock=Ko.bool();break;case 3:Kn.voteExtension=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{validator:(0,kt.isSet)(fo.validator)?_e.Validator.fromJSON(fo.validator):void 0,signedLastBlock:(0,kt.isSet)(fo.signedLastBlock)?!!fo.signedLastBlock:!1,voteExtension:(0,kt.isSet)(fo.voteExtension)?(0,kt.bytesFromBase64)(fo.voteExtension):new Uint8Array}},toJSON(fo){const Qo={};return fo.validator!==void 0&&(Qo.validator=fo.validator?_e.Validator.toJSON(fo.validator):void 0),fo.signedLastBlock!==void 0&&(Qo.signedLastBlock=fo.signedLastBlock),fo.voteExtension!==void 0&&(Qo.voteExtension=(0,kt.base64FromBytes)(fo.voteExtension!==void 0?fo.voteExtension:new Uint8Array)),Qo},fromPartial(fo){const Qo=R0();return Qo.validator=fo.validator!==void 0&&fo.validator!==null?_e.Validator.fromPartial(fo.validator):void 0,Qo.signedLastBlock=fo.signedLastBlock??!1,Qo.voteExtension=fo.voteExtension??new Uint8Array,Qo}};function D0(){return{type:0,validator:void 0,height:kt.Long.ZERO,time:void 0,totalVotingPower:kt.Long.ZERO}}_e.Misbehavior={encode(fo,Qo=qt.Writer.create()){return fo.type!==0&&Qo.uint32(8).int32(fo.type),fo.validator!==void 0&&_e.Validator.encode(fo.validator,Qo.uint32(18).fork()).ldelim(),fo.height.isZero()||Qo.uint32(24).int64(fo.height),fo.time!==void 0&&Vr.Timestamp.encode(fo.time,Qo.uint32(34).fork()).ldelim(),fo.totalVotingPower.isZero()||Qo.uint32(40).int64(fo.totalVotingPower),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=D0();for(;Ko.pos>>3){case 1:Kn.type=Ko.int32();break;case 2:Kn.validator=_e.Validator.decode(Ko,Ko.uint32());break;case 3:Kn.height=Ko.int64();break;case 4:Kn.time=Vr.Timestamp.decode(Ko,Ko.uint32());break;case 5:Kn.totalVotingPower=Ko.int64();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{type:(0,kt.isSet)(fo.type)?Ro(fo.type):0,validator:(0,kt.isSet)(fo.validator)?_e.Validator.fromJSON(fo.validator):void 0,height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.ZERO,time:(0,kt.isSet)(fo.time)?(0,kt.fromJsonTimestamp)(fo.time):void 0,totalVotingPower:(0,kt.isSet)(fo.totalVotingPower)?kt.Long.fromValue(fo.totalVotingPower):kt.Long.ZERO}},toJSON(fo){const Qo={};return fo.type!==void 0&&(Qo.type=pt(fo.type)),fo.validator!==void 0&&(Qo.validator=fo.validator?_e.Validator.toJSON(fo.validator):void 0),fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.ZERO).toString()),fo.time!==void 0&&(Qo.time=(0,kt.fromTimestamp)(fo.time).toISOString()),fo.totalVotingPower!==void 0&&(Qo.totalVotingPower=(fo.totalVotingPower||kt.Long.ZERO).toString()),Qo},fromPartial(fo){const Qo=D0();return Qo.type=fo.type??0,Qo.validator=fo.validator!==void 0&&fo.validator!==null?_e.Validator.fromPartial(fo.validator):void 0,Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.ZERO,Qo.time=fo.time!==void 0&&fo.time!==null?Vr.Timestamp.fromPartial(fo.time):void 0,Qo.totalVotingPower=fo.totalVotingPower!==void 0&&fo.totalVotingPower!==null?kt.Long.fromValue(fo.totalVotingPower):kt.Long.ZERO,Qo}};function zs(){return{height:kt.Long.UZERO,format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}_e.Snapshot={encode(fo,Qo=qt.Writer.create()){return fo.height.isZero()||Qo.uint32(8).uint64(fo.height),fo.format!==0&&Qo.uint32(16).uint32(fo.format),fo.chunks!==0&&Qo.uint32(24).uint32(fo.chunks),fo.hash.length!==0&&Qo.uint32(34).bytes(fo.hash),fo.metadata.length!==0&&Qo.uint32(42).bytes(fo.metadata),Qo},decode(fo,Qo){const Ko=fo instanceof qt.Reader?fo:new qt.Reader(fo);let ps=Qo===void 0?Ko.len:Ko.pos+Qo;const Kn=zs();for(;Ko.pos>>3){case 1:Kn.height=Ko.uint64();break;case 2:Kn.format=Ko.uint32();break;case 3:Kn.chunks=Ko.uint32();break;case 4:Kn.hash=Ko.bytes();break;case 5:Kn.metadata=Ko.bytes();break;default:Ko.skipType(gs&7);break}}return Kn},fromJSON(fo){return{height:(0,kt.isSet)(fo.height)?kt.Long.fromValue(fo.height):kt.Long.UZERO,format:(0,kt.isSet)(fo.format)?Number(fo.format):0,chunks:(0,kt.isSet)(fo.chunks)?Number(fo.chunks):0,hash:(0,kt.isSet)(fo.hash)?(0,kt.bytesFromBase64)(fo.hash):new Uint8Array,metadata:(0,kt.isSet)(fo.metadata)?(0,kt.bytesFromBase64)(fo.metadata):new Uint8Array}},toJSON(fo){const Qo={};return fo.height!==void 0&&(Qo.height=(fo.height||kt.Long.UZERO).toString()),fo.format!==void 0&&(Qo.format=Math.round(fo.format)),fo.chunks!==void 0&&(Qo.chunks=Math.round(fo.chunks)),fo.hash!==void 0&&(Qo.hash=(0,kt.base64FromBytes)(fo.hash!==void 0?fo.hash:new Uint8Array)),fo.metadata!==void 0&&(Qo.metadata=(0,kt.base64FromBytes)(fo.metadata!==void 0?fo.metadata:new Uint8Array)),Qo},fromPartial(fo){const Qo=zs();return Qo.height=fo.height!==void 0&&fo.height!==null?kt.Long.fromValue(fo.height):kt.Long.UZERO,Qo.format=fo.format??0,Qo.chunks=fo.chunks??0,Qo.hash=fo.hash??new Uint8Array,Qo.metadata=fo.metadata??new Uint8Array,Qo}};class n0{constructor(Qo){this.rpc=Qo,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(Qo){const Ko=_e.RequestEcho.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",Ko).then(ps=>_e.ResponseEcho.decode(new qt.Reader(ps)))}Flush(Qo={}){const Ko=_e.RequestFlush.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",Ko).then(ps=>_e.ResponseFlush.decode(new qt.Reader(ps)))}Info(Qo){const Ko=_e.RequestInfo.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",Ko).then(ps=>_e.ResponseInfo.decode(new qt.Reader(ps)))}DeliverTx(Qo){const Ko=_e.RequestDeliverTx.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",Ko).then(ps=>_e.ResponseDeliverTx.decode(new qt.Reader(ps)))}CheckTx(Qo){const Ko=_e.RequestCheckTx.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",Ko).then(ps=>_e.ResponseCheckTx.decode(new qt.Reader(ps)))}Query(Qo){const Ko=_e.RequestQuery.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",Ko).then(ps=>_e.ResponseQuery.decode(new qt.Reader(ps)))}Commit(Qo={}){const Ko=_e.RequestCommit.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",Ko).then(ps=>_e.ResponseCommit.decode(new qt.Reader(ps)))}InitChain(Qo){const Ko=_e.RequestInitChain.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",Ko).then(ps=>_e.ResponseInitChain.decode(new qt.Reader(ps)))}BeginBlock(Qo){const Ko=_e.RequestBeginBlock.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",Ko).then(ps=>_e.ResponseBeginBlock.decode(new qt.Reader(ps)))}EndBlock(Qo){const Ko=_e.RequestEndBlock.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",Ko).then(ps=>_e.ResponseEndBlock.decode(new qt.Reader(ps)))}ListSnapshots(Qo={}){const Ko=_e.RequestListSnapshots.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",Ko).then(ps=>_e.ResponseListSnapshots.decode(new qt.Reader(ps)))}OfferSnapshot(Qo){const Ko=_e.RequestOfferSnapshot.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",Ko).then(ps=>_e.ResponseOfferSnapshot.decode(new qt.Reader(ps)))}LoadSnapshotChunk(Qo){const Ko=_e.RequestLoadSnapshotChunk.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",Ko).then(ps=>_e.ResponseLoadSnapshotChunk.decode(new qt.Reader(ps)))}ApplySnapshotChunk(Qo){const Ko=_e.RequestApplySnapshotChunk.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",Ko).then(ps=>_e.ResponseApplySnapshotChunk.decode(new qt.Reader(ps)))}PrepareProposal(Qo){const Ko=_e.RequestPrepareProposal.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","PrepareProposal",Ko).then(ps=>_e.ResponsePrepareProposal.decode(new qt.Reader(ps)))}ProcessProposal(Qo){const Ko=_e.RequestProcessProposal.encode(Qo).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ProcessProposal",Ko).then(ps=>_e.ResponseProcessProposal.decode(new qt.Reader(ps)))}}_e.ABCIApplicationClientImpl=n0}(types$4),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Co,xo,Po,Wo){Wo===void 0&&(Wo=Po);var Yn=Object.getOwnPropertyDescriptor(xo,Po);(!Yn||("get"in Yn?!xo.__esModule:Yn.writable||Yn.configurable))&&(Yn={enumerable:!0,get:function(){return xo[Po]}}),Object.defineProperty(Co,Wo,Yn)}:function(Co,xo,Po,Wo){Wo===void 0&&(Wo=Po),Co[Wo]=xo[Po]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Co,xo){Object.defineProperty(Co,"default",{enumerable:!0,value:xo})}:function(Co,xo){Co.default=xo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Co){if(Co&&Co.__esModule)return Co;var xo={};if(Co!=null)for(var Po in Co)Po!=="default"&&Object.prototype.hasOwnProperty.call(Co,Po)&&cr(xo,Co,Po);return gr(xo,Co),xo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ValidatorUpdates=_e.Pool=_e.RedelegationResponse=_e.RedelegationEntryResponse=_e.DelegationResponse=_e.Params=_e.Redelegation=_e.RedelegationEntry=_e.UnbondingDelegationEntry=_e.UnbondingDelegation=_e.Delegation=_e.DVVTriplets=_e.DVVTriplet=_e.DVPairs=_e.DVPair=_e.ValAddresses=_e.Validator=_e.Description=_e.Commission=_e.CommissionRates=_e.HistoricalInfo=_e.infractionToJSON=_e.infractionFromJSON=_e.Infraction=_e.bondStatusToJSON=_e.bondStatusFromJSON=_e.BondStatus=_e.protobufPackage=void 0;const Vr=types$6,tt=timestamp,nt=any,st=duration$1,dt=coin$1,kt=types$4,qt=helpers,ro=Cr(minimal);_e.protobufPackage="cosmos.staking.v1beta1";var ht;(function(Co){Co[Co.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",Co[Co.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",Co[Co.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",Co[Co.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",Co[Co.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ht=_e.BondStatus||(_e.BondStatus={}));function po(Co){switch(Co){case 0:case"BOND_STATUS_UNSPECIFIED":return ht.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return ht.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return ht.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return ht.BOND_STATUS_BONDED;case-1:case"UNRECOGNIZED":default:return ht.UNRECOGNIZED}}_e.bondStatusFromJSON=po;function no(Co){switch(Co){case ht.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case ht.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case ht.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case ht.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";case ht.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.bondStatusToJSON=no;var Nt;(function(Co){Co[Co.INFRACTION_UNSPECIFIED=0]="INFRACTION_UNSPECIFIED",Co[Co.INFRACTION_DOUBLE_SIGN=1]="INFRACTION_DOUBLE_SIGN",Co[Co.INFRACTION_DOWNTIME=2]="INFRACTION_DOWNTIME",Co[Co.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nt=_e.Infraction||(_e.Infraction={}));function eo(Co){switch(Co){case 0:case"INFRACTION_UNSPECIFIED":return Nt.INFRACTION_UNSPECIFIED;case 1:case"INFRACTION_DOUBLE_SIGN":return Nt.INFRACTION_DOUBLE_SIGN;case 2:case"INFRACTION_DOWNTIME":return Nt.INFRACTION_DOWNTIME;case-1:case"UNRECOGNIZED":default:return Nt.UNRECOGNIZED}}_e.infractionFromJSON=eo;function Wt(Co){switch(Co){case Nt.INFRACTION_UNSPECIFIED:return"INFRACTION_UNSPECIFIED";case Nt.INFRACTION_DOUBLE_SIGN:return"INFRACTION_DOUBLE_SIGN";case Nt.INFRACTION_DOWNTIME:return"INFRACTION_DOWNTIME";case Nt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.infractionToJSON=Wt;function St(){return{header:void 0,valset:[]}}_e.HistoricalInfo={encode(Co,xo=ro.Writer.create()){Co.header!==void 0&&Vr.Header.encode(Co.header,xo.uint32(10).fork()).ldelim();for(const Po of Co.valset)_e.Validator.encode(Po,xo.uint32(18).fork()).ldelim();return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=St();for(;Po.pos>>3){case 1:Yn.header=Vr.Header.decode(Po,Po.uint32());break;case 2:Yn.valset.push(_e.Validator.decode(Po,Po.uint32()));break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{header:(0,qt.isSet)(Co.header)?Vr.Header.fromJSON(Co.header):void 0,valset:Array.isArray(Co==null?void 0:Co.valset)?Co.valset.map(xo=>_e.Validator.fromJSON(xo)):[]}},toJSON(Co){const xo={};return Co.header!==void 0&&(xo.header=Co.header?Vr.Header.toJSON(Co.header):void 0),Co.valset?xo.valset=Co.valset.map(Po=>Po?_e.Validator.toJSON(Po):void 0):xo.valset=[],xo},fromPartial(Co){var Po;const xo=St();return xo.header=Co.header!==void 0&&Co.header!==null?Vr.Header.fromPartial(Co.header):void 0,xo.valset=((Po=Co.valset)==null?void 0:Po.map(Wo=>_e.Validator.fromPartial(Wo)))||[],xo}};function Ot(){return{rate:"",maxRate:"",maxChangeRate:""}}_e.CommissionRates={encode(Co,xo=ro.Writer.create()){return Co.rate!==""&&xo.uint32(10).string(Co.rate),Co.maxRate!==""&&xo.uint32(18).string(Co.maxRate),Co.maxChangeRate!==""&&xo.uint32(26).string(Co.maxChangeRate),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=Ot();for(;Po.pos>>3){case 1:Yn.rate=Po.string();break;case 2:Yn.maxRate=Po.string();break;case 3:Yn.maxChangeRate=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{rate:(0,qt.isSet)(Co.rate)?String(Co.rate):"",maxRate:(0,qt.isSet)(Co.maxRate)?String(Co.maxRate):"",maxChangeRate:(0,qt.isSet)(Co.maxChangeRate)?String(Co.maxChangeRate):""}},toJSON(Co){const xo={};return Co.rate!==void 0&&(xo.rate=Co.rate),Co.maxRate!==void 0&&(xo.maxRate=Co.maxRate),Co.maxChangeRate!==void 0&&(xo.maxChangeRate=Co.maxChangeRate),xo},fromPartial(Co){const xo=Ot();return xo.rate=Co.rate??"",xo.maxRate=Co.maxRate??"",xo.maxChangeRate=Co.maxChangeRate??"",xo}};function uo(){return{commissionRates:void 0,updateTime:void 0}}_e.Commission={encode(Co,xo=ro.Writer.create()){return Co.commissionRates!==void 0&&_e.CommissionRates.encode(Co.commissionRates,xo.uint32(10).fork()).ldelim(),Co.updateTime!==void 0&&tt.Timestamp.encode(Co.updateTime,xo.uint32(18).fork()).ldelim(),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=uo();for(;Po.pos>>3){case 1:Yn.commissionRates=_e.CommissionRates.decode(Po,Po.uint32());break;case 2:Yn.updateTime=tt.Timestamp.decode(Po,Po.uint32());break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{commissionRates:(0,qt.isSet)(Co.commissionRates)?_e.CommissionRates.fromJSON(Co.commissionRates):void 0,updateTime:(0,qt.isSet)(Co.updateTime)?(0,qt.fromJsonTimestamp)(Co.updateTime):void 0}},toJSON(Co){const xo={};return Co.commissionRates!==void 0&&(xo.commissionRates=Co.commissionRates?_e.CommissionRates.toJSON(Co.commissionRates):void 0),Co.updateTime!==void 0&&(xo.updateTime=(0,qt.fromTimestamp)(Co.updateTime).toISOString()),xo},fromPartial(Co){const xo=uo();return xo.commissionRates=Co.commissionRates!==void 0&&Co.commissionRates!==null?_e.CommissionRates.fromPartial(Co.commissionRates):void 0,xo.updateTime=Co.updateTime!==void 0&&Co.updateTime!==null?tt.Timestamp.fromPartial(Co.updateTime):void 0,xo}};function go(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}_e.Description={encode(Co,xo=ro.Writer.create()){return Co.moniker!==""&&xo.uint32(10).string(Co.moniker),Co.identity!==""&&xo.uint32(18).string(Co.identity),Co.website!==""&&xo.uint32(26).string(Co.website),Co.securityContact!==""&&xo.uint32(34).string(Co.securityContact),Co.details!==""&&xo.uint32(42).string(Co.details),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=go();for(;Po.pos>>3){case 1:Yn.moniker=Po.string();break;case 2:Yn.identity=Po.string();break;case 3:Yn.website=Po.string();break;case 4:Yn.securityContact=Po.string();break;case 5:Yn.details=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{moniker:(0,qt.isSet)(Co.moniker)?String(Co.moniker):"",identity:(0,qt.isSet)(Co.identity)?String(Co.identity):"",website:(0,qt.isSet)(Co.website)?String(Co.website):"",securityContact:(0,qt.isSet)(Co.securityContact)?String(Co.securityContact):"",details:(0,qt.isSet)(Co.details)?String(Co.details):""}},toJSON(Co){const xo={};return Co.moniker!==void 0&&(xo.moniker=Co.moniker),Co.identity!==void 0&&(xo.identity=Co.identity),Co.website!==void 0&&(xo.website=Co.website),Co.securityContact!==void 0&&(xo.securityContact=Co.securityContact),Co.details!==void 0&&(xo.details=Co.details),xo},fromPartial(Co){const xo=go();return xo.moniker=Co.moniker??"",xo.identity=Co.identity??"",xo.website=Co.website??"",xo.securityContact=Co.securityContact??"",xo.details=Co.details??"",xo}};function bo(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:void 0,unbondingHeight:qt.Long.ZERO,unbondingTime:void 0,commission:void 0,minSelfDelegation:"",unbondingOnHoldRefCount:qt.Long.ZERO,unbondingIds:[]}}_e.Validator={encode(Co,xo=ro.Writer.create()){Co.operatorAddress!==""&&xo.uint32(10).string(Co.operatorAddress),Co.consensusPubkey!==void 0&&nt.Any.encode(Co.consensusPubkey,xo.uint32(18).fork()).ldelim(),Co.jailed===!0&&xo.uint32(24).bool(Co.jailed),Co.status!==0&&xo.uint32(32).int32(Co.status),Co.tokens!==""&&xo.uint32(42).string(Co.tokens),Co.delegatorShares!==""&&xo.uint32(50).string(Co.delegatorShares),Co.description!==void 0&&_e.Description.encode(Co.description,xo.uint32(58).fork()).ldelim(),Co.unbondingHeight.isZero()||xo.uint32(64).int64(Co.unbondingHeight),Co.unbondingTime!==void 0&&tt.Timestamp.encode(Co.unbondingTime,xo.uint32(74).fork()).ldelim(),Co.commission!==void 0&&_e.Commission.encode(Co.commission,xo.uint32(82).fork()).ldelim(),Co.minSelfDelegation!==""&&xo.uint32(90).string(Co.minSelfDelegation),Co.unbondingOnHoldRefCount.isZero()||xo.uint32(96).int64(Co.unbondingOnHoldRefCount),xo.uint32(106).fork();for(const Po of Co.unbondingIds)xo.uint64(Po);return xo.ldelim(),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=bo();for(;Po.pos>>3){case 1:Yn.operatorAddress=Po.string();break;case 2:Yn.consensusPubkey=nt.Any.decode(Po,Po.uint32());break;case 3:Yn.jailed=Po.bool();break;case 4:Yn.status=Po.int32();break;case 5:Yn.tokens=Po.string();break;case 6:Yn.delegatorShares=Po.string();break;case 7:Yn.description=_e.Description.decode(Po,Po.uint32());break;case 8:Yn.unbondingHeight=Po.int64();break;case 9:Yn.unbondingTime=tt.Timestamp.decode(Po,Po.uint32());break;case 10:Yn.commission=_e.Commission.decode(Po,Po.uint32());break;case 11:Yn.minSelfDelegation=Po.string();break;case 12:Yn.unbondingOnHoldRefCount=Po.int64();break;case 13:if((ba&7)===2){const _a=Po.uint32()+Po.pos;for(;Po.pos<_a;)Yn.unbondingIds.push(Po.uint64())}else Yn.unbondingIds.push(Po.uint64());break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{operatorAddress:(0,qt.isSet)(Co.operatorAddress)?String(Co.operatorAddress):"",consensusPubkey:(0,qt.isSet)(Co.consensusPubkey)?nt.Any.fromJSON(Co.consensusPubkey):void 0,jailed:(0,qt.isSet)(Co.jailed)?!!Co.jailed:!1,status:(0,qt.isSet)(Co.status)?po(Co.status):0,tokens:(0,qt.isSet)(Co.tokens)?String(Co.tokens):"",delegatorShares:(0,qt.isSet)(Co.delegatorShares)?String(Co.delegatorShares):"",description:(0,qt.isSet)(Co.description)?_e.Description.fromJSON(Co.description):void 0,unbondingHeight:(0,qt.isSet)(Co.unbondingHeight)?qt.Long.fromValue(Co.unbondingHeight):qt.Long.ZERO,unbondingTime:(0,qt.isSet)(Co.unbondingTime)?(0,qt.fromJsonTimestamp)(Co.unbondingTime):void 0,commission:(0,qt.isSet)(Co.commission)?_e.Commission.fromJSON(Co.commission):void 0,minSelfDelegation:(0,qt.isSet)(Co.minSelfDelegation)?String(Co.minSelfDelegation):"",unbondingOnHoldRefCount:(0,qt.isSet)(Co.unbondingOnHoldRefCount)?qt.Long.fromValue(Co.unbondingOnHoldRefCount):qt.Long.ZERO,unbondingIds:Array.isArray(Co==null?void 0:Co.unbondingIds)?Co.unbondingIds.map(xo=>qt.Long.fromValue(xo)):[]}},toJSON(Co){const xo={};return Co.operatorAddress!==void 0&&(xo.operatorAddress=Co.operatorAddress),Co.consensusPubkey!==void 0&&(xo.consensusPubkey=Co.consensusPubkey?nt.Any.toJSON(Co.consensusPubkey):void 0),Co.jailed!==void 0&&(xo.jailed=Co.jailed),Co.status!==void 0&&(xo.status=no(Co.status)),Co.tokens!==void 0&&(xo.tokens=Co.tokens),Co.delegatorShares!==void 0&&(xo.delegatorShares=Co.delegatorShares),Co.description!==void 0&&(xo.description=Co.description?_e.Description.toJSON(Co.description):void 0),Co.unbondingHeight!==void 0&&(xo.unbondingHeight=(Co.unbondingHeight||qt.Long.ZERO).toString()),Co.unbondingTime!==void 0&&(xo.unbondingTime=(0,qt.fromTimestamp)(Co.unbondingTime).toISOString()),Co.commission!==void 0&&(xo.commission=Co.commission?_e.Commission.toJSON(Co.commission):void 0),Co.minSelfDelegation!==void 0&&(xo.minSelfDelegation=Co.minSelfDelegation),Co.unbondingOnHoldRefCount!==void 0&&(xo.unbondingOnHoldRefCount=(Co.unbondingOnHoldRefCount||qt.Long.ZERO).toString()),Co.unbondingIds?xo.unbondingIds=Co.unbondingIds.map(Po=>(Po||qt.Long.UZERO).toString()):xo.unbondingIds=[],xo},fromPartial(Co){var Po;const xo=bo();return xo.operatorAddress=Co.operatorAddress??"",xo.consensusPubkey=Co.consensusPubkey!==void 0&&Co.consensusPubkey!==null?nt.Any.fromPartial(Co.consensusPubkey):void 0,xo.jailed=Co.jailed??!1,xo.status=Co.status??0,xo.tokens=Co.tokens??"",xo.delegatorShares=Co.delegatorShares??"",xo.description=Co.description!==void 0&&Co.description!==null?_e.Description.fromPartial(Co.description):void 0,xo.unbondingHeight=Co.unbondingHeight!==void 0&&Co.unbondingHeight!==null?qt.Long.fromValue(Co.unbondingHeight):qt.Long.ZERO,xo.unbondingTime=Co.unbondingTime!==void 0&&Co.unbondingTime!==null?tt.Timestamp.fromPartial(Co.unbondingTime):void 0,xo.commission=Co.commission!==void 0&&Co.commission!==null?_e.Commission.fromPartial(Co.commission):void 0,xo.minSelfDelegation=Co.minSelfDelegation??"",xo.unbondingOnHoldRefCount=Co.unbondingOnHoldRefCount!==void 0&&Co.unbondingOnHoldRefCount!==null?qt.Long.fromValue(Co.unbondingOnHoldRefCount):qt.Long.ZERO,xo.unbondingIds=((Po=Co.unbondingIds)==null?void 0:Po.map(Wo=>qt.Long.fromValue(Wo)))||[],xo}};function oo(){return{addresses:[]}}_e.ValAddresses={encode(Co,xo=ro.Writer.create()){for(const Po of Co.addresses)xo.uint32(10).string(Po);return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=oo();for(;Po.pos>>3){case 1:Yn.addresses.push(Po.string());break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{addresses:Array.isArray(Co==null?void 0:Co.addresses)?Co.addresses.map(xo=>String(xo)):[]}},toJSON(Co){const xo={};return Co.addresses?xo.addresses=Co.addresses.map(Po=>Po):xo.addresses=[],xo},fromPartial(Co){var Po;const xo=oo();return xo.addresses=((Po=Co.addresses)==null?void 0:Po.map(Wo=>Wo))||[],xo}};function Ro(){return{delegatorAddress:"",validatorAddress:""}}_e.DVPair={encode(Co,xo=ro.Writer.create()){return Co.delegatorAddress!==""&&xo.uint32(10).string(Co.delegatorAddress),Co.validatorAddress!==""&&xo.uint32(18).string(Co.validatorAddress),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=Ro();for(;Po.pos>>3){case 1:Yn.delegatorAddress=Po.string();break;case 2:Yn.validatorAddress=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{delegatorAddress:(0,qt.isSet)(Co.delegatorAddress)?String(Co.delegatorAddress):"",validatorAddress:(0,qt.isSet)(Co.validatorAddress)?String(Co.validatorAddress):""}},toJSON(Co){const xo={};return Co.delegatorAddress!==void 0&&(xo.delegatorAddress=Co.delegatorAddress),Co.validatorAddress!==void 0&&(xo.validatorAddress=Co.validatorAddress),xo},fromPartial(Co){const xo=Ro();return xo.delegatorAddress=Co.delegatorAddress??"",xo.validatorAddress=Co.validatorAddress??"",xo}};function pt(){return{pairs:[]}}_e.DVPairs={encode(Co,xo=ro.Writer.create()){for(const Po of Co.pairs)_e.DVPair.encode(Po,xo.uint32(10).fork()).ldelim();return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=pt();for(;Po.pos>>3){case 1:Yn.pairs.push(_e.DVPair.decode(Po,Po.uint32()));break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{pairs:Array.isArray(Co==null?void 0:Co.pairs)?Co.pairs.map(xo=>_e.DVPair.fromJSON(xo)):[]}},toJSON(Co){const xo={};return Co.pairs?xo.pairs=Co.pairs.map(Po=>Po?_e.DVPair.toJSON(Po):void 0):xo.pairs=[],xo},fromPartial(Co){var Po;const xo=pt();return xo.pairs=((Po=Co.pairs)==null?void 0:Po.map(Wo=>_e.DVPair.fromPartial(Wo)))||[],xo}};function lo(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}_e.DVVTriplet={encode(Co,xo=ro.Writer.create()){return Co.delegatorAddress!==""&&xo.uint32(10).string(Co.delegatorAddress),Co.validatorSrcAddress!==""&&xo.uint32(18).string(Co.validatorSrcAddress),Co.validatorDstAddress!==""&&xo.uint32(26).string(Co.validatorDstAddress),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=lo();for(;Po.pos>>3){case 1:Yn.delegatorAddress=Po.string();break;case 2:Yn.validatorSrcAddress=Po.string();break;case 3:Yn.validatorDstAddress=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{delegatorAddress:(0,qt.isSet)(Co.delegatorAddress)?String(Co.delegatorAddress):"",validatorSrcAddress:(0,qt.isSet)(Co.validatorSrcAddress)?String(Co.validatorSrcAddress):"",validatorDstAddress:(0,qt.isSet)(Co.validatorDstAddress)?String(Co.validatorDstAddress):""}},toJSON(Co){const xo={};return Co.delegatorAddress!==void 0&&(xo.delegatorAddress=Co.delegatorAddress),Co.validatorSrcAddress!==void 0&&(xo.validatorSrcAddress=Co.validatorSrcAddress),Co.validatorDstAddress!==void 0&&(xo.validatorDstAddress=Co.validatorDstAddress),xo},fromPartial(Co){const xo=lo();return xo.delegatorAddress=Co.delegatorAddress??"",xo.validatorSrcAddress=Co.validatorSrcAddress??"",xo.validatorDstAddress=Co.validatorDstAddress??"",xo}};function so(){return{triplets:[]}}_e.DVVTriplets={encode(Co,xo=ro.Writer.create()){for(const Po of Co.triplets)_e.DVVTriplet.encode(Po,xo.uint32(10).fork()).ldelim();return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=so();for(;Po.pos>>3){case 1:Yn.triplets.push(_e.DVVTriplet.decode(Po,Po.uint32()));break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{triplets:Array.isArray(Co==null?void 0:Co.triplets)?Co.triplets.map(xo=>_e.DVVTriplet.fromJSON(xo)):[]}},toJSON(Co){const xo={};return Co.triplets?xo.triplets=Co.triplets.map(Po=>Po?_e.DVVTriplet.toJSON(Po):void 0):xo.triplets=[],xo},fromPartial(Co){var Po;const xo=so();return xo.triplets=((Po=Co.triplets)==null?void 0:Po.map(Wo=>_e.DVVTriplet.fromPartial(Wo)))||[],xo}};function wo(){return{delegatorAddress:"",validatorAddress:"",shares:""}}_e.Delegation={encode(Co,xo=ro.Writer.create()){return Co.delegatorAddress!==""&&xo.uint32(10).string(Co.delegatorAddress),Co.validatorAddress!==""&&xo.uint32(18).string(Co.validatorAddress),Co.shares!==""&&xo.uint32(26).string(Co.shares),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=wo();for(;Po.pos>>3){case 1:Yn.delegatorAddress=Po.string();break;case 2:Yn.validatorAddress=Po.string();break;case 3:Yn.shares=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{delegatorAddress:(0,qt.isSet)(Co.delegatorAddress)?String(Co.delegatorAddress):"",validatorAddress:(0,qt.isSet)(Co.validatorAddress)?String(Co.validatorAddress):"",shares:(0,qt.isSet)(Co.shares)?String(Co.shares):""}},toJSON(Co){const xo={};return Co.delegatorAddress!==void 0&&(xo.delegatorAddress=Co.delegatorAddress),Co.validatorAddress!==void 0&&(xo.validatorAddress=Co.validatorAddress),Co.shares!==void 0&&(xo.shares=Co.shares),xo},fromPartial(Co){const xo=wo();return xo.delegatorAddress=Co.delegatorAddress??"",xo.validatorAddress=Co.validatorAddress??"",xo.shares=Co.shares??"",xo}};function xt(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}_e.UnbondingDelegation={encode(Co,xo=ro.Writer.create()){Co.delegatorAddress!==""&&xo.uint32(10).string(Co.delegatorAddress),Co.validatorAddress!==""&&xo.uint32(18).string(Co.validatorAddress);for(const Po of Co.entries)_e.UnbondingDelegationEntry.encode(Po,xo.uint32(26).fork()).ldelim();return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=xt();for(;Po.pos>>3){case 1:Yn.delegatorAddress=Po.string();break;case 2:Yn.validatorAddress=Po.string();break;case 3:Yn.entries.push(_e.UnbondingDelegationEntry.decode(Po,Po.uint32()));break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{delegatorAddress:(0,qt.isSet)(Co.delegatorAddress)?String(Co.delegatorAddress):"",validatorAddress:(0,qt.isSet)(Co.validatorAddress)?String(Co.validatorAddress):"",entries:Array.isArray(Co==null?void 0:Co.entries)?Co.entries.map(xo=>_e.UnbondingDelegationEntry.fromJSON(xo)):[]}},toJSON(Co){const xo={};return Co.delegatorAddress!==void 0&&(xo.delegatorAddress=Co.delegatorAddress),Co.validatorAddress!==void 0&&(xo.validatorAddress=Co.validatorAddress),Co.entries?xo.entries=Co.entries.map(Po=>Po?_e.UnbondingDelegationEntry.toJSON(Po):void 0):xo.entries=[],xo},fromPartial(Co){var Po;const xo=xt();return xo.delegatorAddress=Co.delegatorAddress??"",xo.validatorAddress=Co.validatorAddress??"",xo.entries=((Po=Co.entries)==null?void 0:Po.map(Wo=>_e.UnbondingDelegationEntry.fromPartial(Wo)))||[],xo}};function Mt(){return{creationHeight:qt.Long.ZERO,completionTime:void 0,initialBalance:"",balance:"",unbondingId:qt.Long.UZERO,unbondingOnHoldRefCount:qt.Long.ZERO}}_e.UnbondingDelegationEntry={encode(Co,xo=ro.Writer.create()){return Co.creationHeight.isZero()||xo.uint32(8).int64(Co.creationHeight),Co.completionTime!==void 0&&tt.Timestamp.encode(Co.completionTime,xo.uint32(18).fork()).ldelim(),Co.initialBalance!==""&&xo.uint32(26).string(Co.initialBalance),Co.balance!==""&&xo.uint32(34).string(Co.balance),Co.unbondingId.isZero()||xo.uint32(40).uint64(Co.unbondingId),Co.unbondingOnHoldRefCount.isZero()||xo.uint32(48).int64(Co.unbondingOnHoldRefCount),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=Mt();for(;Po.pos>>3){case 1:Yn.creationHeight=Po.int64();break;case 2:Yn.completionTime=tt.Timestamp.decode(Po,Po.uint32());break;case 3:Yn.initialBalance=Po.string();break;case 4:Yn.balance=Po.string();break;case 5:Yn.unbondingId=Po.uint64();break;case 6:Yn.unbondingOnHoldRefCount=Po.int64();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{creationHeight:(0,qt.isSet)(Co.creationHeight)?qt.Long.fromValue(Co.creationHeight):qt.Long.ZERO,completionTime:(0,qt.isSet)(Co.completionTime)?(0,qt.fromJsonTimestamp)(Co.completionTime):void 0,initialBalance:(0,qt.isSet)(Co.initialBalance)?String(Co.initialBalance):"",balance:(0,qt.isSet)(Co.balance)?String(Co.balance):"",unbondingId:(0,qt.isSet)(Co.unbondingId)?qt.Long.fromValue(Co.unbondingId):qt.Long.UZERO,unbondingOnHoldRefCount:(0,qt.isSet)(Co.unbondingOnHoldRefCount)?qt.Long.fromValue(Co.unbondingOnHoldRefCount):qt.Long.ZERO}},toJSON(Co){const xo={};return Co.creationHeight!==void 0&&(xo.creationHeight=(Co.creationHeight||qt.Long.ZERO).toString()),Co.completionTime!==void 0&&(xo.completionTime=(0,qt.fromTimestamp)(Co.completionTime).toISOString()),Co.initialBalance!==void 0&&(xo.initialBalance=Co.initialBalance),Co.balance!==void 0&&(xo.balance=Co.balance),Co.unbondingId!==void 0&&(xo.unbondingId=(Co.unbondingId||qt.Long.UZERO).toString()),Co.unbondingOnHoldRefCount!==void 0&&(xo.unbondingOnHoldRefCount=(Co.unbondingOnHoldRefCount||qt.Long.ZERO).toString()),xo},fromPartial(Co){const xo=Mt();return xo.creationHeight=Co.creationHeight!==void 0&&Co.creationHeight!==null?qt.Long.fromValue(Co.creationHeight):qt.Long.ZERO,xo.completionTime=Co.completionTime!==void 0&&Co.completionTime!==null?tt.Timestamp.fromPartial(Co.completionTime):void 0,xo.initialBalance=Co.initialBalance??"",xo.balance=Co.balance??"",xo.unbondingId=Co.unbondingId!==void 0&&Co.unbondingId!==null?qt.Long.fromValue(Co.unbondingId):qt.Long.UZERO,xo.unbondingOnHoldRefCount=Co.unbondingOnHoldRefCount!==void 0&&Co.unbondingOnHoldRefCount!==null?qt.Long.fromValue(Co.unbondingOnHoldRefCount):qt.Long.ZERO,xo}};function ho(){return{creationHeight:qt.Long.ZERO,completionTime:void 0,initialBalance:"",sharesDst:"",unbondingId:qt.Long.UZERO,unbondingOnHoldRefCount:qt.Long.ZERO}}_e.RedelegationEntry={encode(Co,xo=ro.Writer.create()){return Co.creationHeight.isZero()||xo.uint32(8).int64(Co.creationHeight),Co.completionTime!==void 0&&tt.Timestamp.encode(Co.completionTime,xo.uint32(18).fork()).ldelim(),Co.initialBalance!==""&&xo.uint32(26).string(Co.initialBalance),Co.sharesDst!==""&&xo.uint32(34).string(Co.sharesDst),Co.unbondingId.isZero()||xo.uint32(40).uint64(Co.unbondingId),Co.unbondingOnHoldRefCount.isZero()||xo.uint32(48).int64(Co.unbondingOnHoldRefCount),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=ho();for(;Po.pos>>3){case 1:Yn.creationHeight=Po.int64();break;case 2:Yn.completionTime=tt.Timestamp.decode(Po,Po.uint32());break;case 3:Yn.initialBalance=Po.string();break;case 4:Yn.sharesDst=Po.string();break;case 5:Yn.unbondingId=Po.uint64();break;case 6:Yn.unbondingOnHoldRefCount=Po.int64();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{creationHeight:(0,qt.isSet)(Co.creationHeight)?qt.Long.fromValue(Co.creationHeight):qt.Long.ZERO,completionTime:(0,qt.isSet)(Co.completionTime)?(0,qt.fromJsonTimestamp)(Co.completionTime):void 0,initialBalance:(0,qt.isSet)(Co.initialBalance)?String(Co.initialBalance):"",sharesDst:(0,qt.isSet)(Co.sharesDst)?String(Co.sharesDst):"",unbondingId:(0,qt.isSet)(Co.unbondingId)?qt.Long.fromValue(Co.unbondingId):qt.Long.UZERO,unbondingOnHoldRefCount:(0,qt.isSet)(Co.unbondingOnHoldRefCount)?qt.Long.fromValue(Co.unbondingOnHoldRefCount):qt.Long.ZERO}},toJSON(Co){const xo={};return Co.creationHeight!==void 0&&(xo.creationHeight=(Co.creationHeight||qt.Long.ZERO).toString()),Co.completionTime!==void 0&&(xo.completionTime=(0,qt.fromTimestamp)(Co.completionTime).toISOString()),Co.initialBalance!==void 0&&(xo.initialBalance=Co.initialBalance),Co.sharesDst!==void 0&&(xo.sharesDst=Co.sharesDst),Co.unbondingId!==void 0&&(xo.unbondingId=(Co.unbondingId||qt.Long.UZERO).toString()),Co.unbondingOnHoldRefCount!==void 0&&(xo.unbondingOnHoldRefCount=(Co.unbondingOnHoldRefCount||qt.Long.ZERO).toString()),xo},fromPartial(Co){const xo=ho();return xo.creationHeight=Co.creationHeight!==void 0&&Co.creationHeight!==null?qt.Long.fromValue(Co.creationHeight):qt.Long.ZERO,xo.completionTime=Co.completionTime!==void 0&&Co.completionTime!==null?tt.Timestamp.fromPartial(Co.completionTime):void 0,xo.initialBalance=Co.initialBalance??"",xo.sharesDst=Co.sharesDst??"",xo.unbondingId=Co.unbondingId!==void 0&&Co.unbondingId!==null?qt.Long.fromValue(Co.unbondingId):qt.Long.UZERO,xo.unbondingOnHoldRefCount=Co.unbondingOnHoldRefCount!==void 0&&Co.unbondingOnHoldRefCount!==null?qt.Long.fromValue(Co.unbondingOnHoldRefCount):qt.Long.ZERO,xo}};function io(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}_e.Redelegation={encode(Co,xo=ro.Writer.create()){Co.delegatorAddress!==""&&xo.uint32(10).string(Co.delegatorAddress),Co.validatorSrcAddress!==""&&xo.uint32(18).string(Co.validatorSrcAddress),Co.validatorDstAddress!==""&&xo.uint32(26).string(Co.validatorDstAddress);for(const Po of Co.entries)_e.RedelegationEntry.encode(Po,xo.uint32(34).fork()).ldelim();return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=io();for(;Po.pos>>3){case 1:Yn.delegatorAddress=Po.string();break;case 2:Yn.validatorSrcAddress=Po.string();break;case 3:Yn.validatorDstAddress=Po.string();break;case 4:Yn.entries.push(_e.RedelegationEntry.decode(Po,Po.uint32()));break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{delegatorAddress:(0,qt.isSet)(Co.delegatorAddress)?String(Co.delegatorAddress):"",validatorSrcAddress:(0,qt.isSet)(Co.validatorSrcAddress)?String(Co.validatorSrcAddress):"",validatorDstAddress:(0,qt.isSet)(Co.validatorDstAddress)?String(Co.validatorDstAddress):"",entries:Array.isArray(Co==null?void 0:Co.entries)?Co.entries.map(xo=>_e.RedelegationEntry.fromJSON(xo)):[]}},toJSON(Co){const xo={};return Co.delegatorAddress!==void 0&&(xo.delegatorAddress=Co.delegatorAddress),Co.validatorSrcAddress!==void 0&&(xo.validatorSrcAddress=Co.validatorSrcAddress),Co.validatorDstAddress!==void 0&&(xo.validatorDstAddress=Co.validatorDstAddress),Co.entries?xo.entries=Co.entries.map(Po=>Po?_e.RedelegationEntry.toJSON(Po):void 0):xo.entries=[],xo},fromPartial(Co){var Po;const xo=io();return xo.delegatorAddress=Co.delegatorAddress??"",xo.validatorSrcAddress=Co.validatorSrcAddress??"",xo.validatorDstAddress=Co.validatorDstAddress??"",xo.entries=((Po=Co.entries)==null?void 0:Po.map(Wo=>_e.RedelegationEntry.fromPartial(Wo)))||[],xo}};function co(){return{unbondingTime:void 0,maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:"",minCommissionRate:""}}_e.Params={encode(Co,xo=ro.Writer.create()){return Co.unbondingTime!==void 0&&st.Duration.encode(Co.unbondingTime,xo.uint32(10).fork()).ldelim(),Co.maxValidators!==0&&xo.uint32(16).uint32(Co.maxValidators),Co.maxEntries!==0&&xo.uint32(24).uint32(Co.maxEntries),Co.historicalEntries!==0&&xo.uint32(32).uint32(Co.historicalEntries),Co.bondDenom!==""&&xo.uint32(42).string(Co.bondDenom),Co.minCommissionRate!==""&&xo.uint32(50).string(Co.minCommissionRate),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=co();for(;Po.pos>>3){case 1:Yn.unbondingTime=st.Duration.decode(Po,Po.uint32());break;case 2:Yn.maxValidators=Po.uint32();break;case 3:Yn.maxEntries=Po.uint32();break;case 4:Yn.historicalEntries=Po.uint32();break;case 5:Yn.bondDenom=Po.string();break;case 6:Yn.minCommissionRate=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{unbondingTime:(0,qt.isSet)(Co.unbondingTime)?st.Duration.fromJSON(Co.unbondingTime):void 0,maxValidators:(0,qt.isSet)(Co.maxValidators)?Number(Co.maxValidators):0,maxEntries:(0,qt.isSet)(Co.maxEntries)?Number(Co.maxEntries):0,historicalEntries:(0,qt.isSet)(Co.historicalEntries)?Number(Co.historicalEntries):0,bondDenom:(0,qt.isSet)(Co.bondDenom)?String(Co.bondDenom):"",minCommissionRate:(0,qt.isSet)(Co.minCommissionRate)?String(Co.minCommissionRate):""}},toJSON(Co){const xo={};return Co.unbondingTime!==void 0&&(xo.unbondingTime=Co.unbondingTime?st.Duration.toJSON(Co.unbondingTime):void 0),Co.maxValidators!==void 0&&(xo.maxValidators=Math.round(Co.maxValidators)),Co.maxEntries!==void 0&&(xo.maxEntries=Math.round(Co.maxEntries)),Co.historicalEntries!==void 0&&(xo.historicalEntries=Math.round(Co.historicalEntries)),Co.bondDenom!==void 0&&(xo.bondDenom=Co.bondDenom),Co.minCommissionRate!==void 0&&(xo.minCommissionRate=Co.minCommissionRate),xo},fromPartial(Co){const xo=co();return xo.unbondingTime=Co.unbondingTime!==void 0&&Co.unbondingTime!==null?st.Duration.fromPartial(Co.unbondingTime):void 0,xo.maxValidators=Co.maxValidators??0,xo.maxEntries=Co.maxEntries??0,xo.historicalEntries=Co.historicalEntries??0,xo.bondDenom=Co.bondDenom??"",xo.minCommissionRate=Co.minCommissionRate??"",xo}};function mo(){return{delegation:void 0,balance:void 0}}_e.DelegationResponse={encode(Co,xo=ro.Writer.create()){return Co.delegation!==void 0&&_e.Delegation.encode(Co.delegation,xo.uint32(10).fork()).ldelim(),Co.balance!==void 0&&dt.Coin.encode(Co.balance,xo.uint32(18).fork()).ldelim(),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=mo();for(;Po.pos>>3){case 1:Yn.delegation=_e.Delegation.decode(Po,Po.uint32());break;case 2:Yn.balance=dt.Coin.decode(Po,Po.uint32());break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{delegation:(0,qt.isSet)(Co.delegation)?_e.Delegation.fromJSON(Co.delegation):void 0,balance:(0,qt.isSet)(Co.balance)?dt.Coin.fromJSON(Co.balance):void 0}},toJSON(Co){const xo={};return Co.delegation!==void 0&&(xo.delegation=Co.delegation?_e.Delegation.toJSON(Co.delegation):void 0),Co.balance!==void 0&&(xo.balance=Co.balance?dt.Coin.toJSON(Co.balance):void 0),xo},fromPartial(Co){const xo=mo();return xo.delegation=Co.delegation!==void 0&&Co.delegation!==null?_e.Delegation.fromPartial(Co.delegation):void 0,xo.balance=Co.balance!==void 0&&Co.balance!==null?dt.Coin.fromPartial(Co.balance):void 0,xo}};function Bo(){return{redelegationEntry:void 0,balance:""}}_e.RedelegationEntryResponse={encode(Co,xo=ro.Writer.create()){return Co.redelegationEntry!==void 0&&_e.RedelegationEntry.encode(Co.redelegationEntry,xo.uint32(10).fork()).ldelim(),Co.balance!==""&&xo.uint32(34).string(Co.balance),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=Bo();for(;Po.pos>>3){case 1:Yn.redelegationEntry=_e.RedelegationEntry.decode(Po,Po.uint32());break;case 4:Yn.balance=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{redelegationEntry:(0,qt.isSet)(Co.redelegationEntry)?_e.RedelegationEntry.fromJSON(Co.redelegationEntry):void 0,balance:(0,qt.isSet)(Co.balance)?String(Co.balance):""}},toJSON(Co){const xo={};return Co.redelegationEntry!==void 0&&(xo.redelegationEntry=Co.redelegationEntry?_e.RedelegationEntry.toJSON(Co.redelegationEntry):void 0),Co.balance!==void 0&&(xo.balance=Co.balance),xo},fromPartial(Co){const xo=Bo();return xo.redelegationEntry=Co.redelegationEntry!==void 0&&Co.redelegationEntry!==null?_e.RedelegationEntry.fromPartial(Co.redelegationEntry):void 0,xo.balance=Co.balance??"",xo}};function So(){return{redelegation:void 0,entries:[]}}_e.RedelegationResponse={encode(Co,xo=ro.Writer.create()){Co.redelegation!==void 0&&_e.Redelegation.encode(Co.redelegation,xo.uint32(10).fork()).ldelim();for(const Po of Co.entries)_e.RedelegationEntryResponse.encode(Po,xo.uint32(18).fork()).ldelim();return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=So();for(;Po.pos>>3){case 1:Yn.redelegation=_e.Redelegation.decode(Po,Po.uint32());break;case 2:Yn.entries.push(_e.RedelegationEntryResponse.decode(Po,Po.uint32()));break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{redelegation:(0,qt.isSet)(Co.redelegation)?_e.Redelegation.fromJSON(Co.redelegation):void 0,entries:Array.isArray(Co==null?void 0:Co.entries)?Co.entries.map(xo=>_e.RedelegationEntryResponse.fromJSON(xo)):[]}},toJSON(Co){const xo={};return Co.redelegation!==void 0&&(xo.redelegation=Co.redelegation?_e.Redelegation.toJSON(Co.redelegation):void 0),Co.entries?xo.entries=Co.entries.map(Po=>Po?_e.RedelegationEntryResponse.toJSON(Po):void 0):xo.entries=[],xo},fromPartial(Co){var Po;const xo=So();return xo.redelegation=Co.redelegation!==void 0&&Co.redelegation!==null?_e.Redelegation.fromPartial(Co.redelegation):void 0,xo.entries=((Po=Co.entries)==null?void 0:Po.map(Wo=>_e.RedelegationEntryResponse.fromPartial(Wo)))||[],xo}};function Tt(){return{notBondedTokens:"",bondedTokens:""}}_e.Pool={encode(Co,xo=ro.Writer.create()){return Co.notBondedTokens!==""&&xo.uint32(10).string(Co.notBondedTokens),Co.bondedTokens!==""&&xo.uint32(18).string(Co.bondedTokens),xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=Tt();for(;Po.pos>>3){case 1:Yn.notBondedTokens=Po.string();break;case 2:Yn.bondedTokens=Po.string();break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{notBondedTokens:(0,qt.isSet)(Co.notBondedTokens)?String(Co.notBondedTokens):"",bondedTokens:(0,qt.isSet)(Co.bondedTokens)?String(Co.bondedTokens):""}},toJSON(Co){const xo={};return Co.notBondedTokens!==void 0&&(xo.notBondedTokens=Co.notBondedTokens),Co.bondedTokens!==void 0&&(xo.bondedTokens=Co.bondedTokens),xo},fromPartial(Co){const xo=Tt();return xo.notBondedTokens=Co.notBondedTokens??"",xo.bondedTokens=Co.bondedTokens??"",xo}};function vo(){return{updates:[]}}_e.ValidatorUpdates={encode(Co,xo=ro.Writer.create()){for(const Po of Co.updates)kt.ValidatorUpdate.encode(Po,xo.uint32(10).fork()).ldelim();return xo},decode(Co,xo){const Po=Co instanceof ro.Reader?Co:new ro.Reader(Co);let Wo=xo===void 0?Po.len:Po.pos+xo;const Yn=vo();for(;Po.pos>>3){case 1:Yn.updates.push(kt.ValidatorUpdate.decode(Po,Po.uint32()));break;default:Po.skipType(ba&7);break}}return Yn},fromJSON(Co){return{updates:Array.isArray(Co==null?void 0:Co.updates)?Co.updates.map(xo=>kt.ValidatorUpdate.fromJSON(xo)):[]}},toJSON(Co){const xo={};return Co.updates?xo.updates=Co.updates.map(Po=>Po?kt.ValidatorUpdate.toJSON(Po):void 0):xo.updates=[],xo},fromPartial(Co){var Po;const xo=vo();return xo.updates=((Po=Co.updates)==null?void 0:Po.map(Wo=>kt.ValidatorUpdate.fromPartial(Wo)))||[],xo}}}(staking),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(pt,lo,so,wo){wo===void 0&&(wo=so);var xt=Object.getOwnPropertyDescriptor(lo,so);(!xt||("get"in xt?!lo.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return lo[so]}}),Object.defineProperty(pt,wo,xt)}:function(pt,lo,so,wo){wo===void 0&&(wo=so),pt[wo]=lo[so]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(pt,lo){Object.defineProperty(pt,"default",{enumerable:!0,value:lo})}:function(pt,lo){pt.default=lo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(pt){if(pt&&pt.__esModule)return pt;var lo={};if(pt!=null)for(var so in pt)so!=="default"&&Object.prototype.hasOwnProperty.call(pt,so)&&cr(lo,pt,so);return gr(lo,pt),lo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgUpdateParamsResponse=_e.MsgUpdateParams=_e.MsgCancelUnbondingDelegationResponse=_e.MsgCancelUnbondingDelegation=_e.MsgUndelegateResponse=_e.MsgUndelegate=_e.MsgBeginRedelegateResponse=_e.MsgBeginRedelegate=_e.MsgDelegateResponse=_e.MsgDelegate=_e.MsgEditValidatorResponse=_e.MsgEditValidator=_e.MsgCreateValidatorResponse=_e.MsgCreateValidator=_e.protobufPackage=void 0;const Vr=staking,tt=any,nt=coin$1,st=timestamp,dt=helpers,kt=Cr(minimal);_e.protobufPackage="cosmos.staking.v1beta1";function qt(){return{description:void 0,commission:void 0,minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:void 0}}_e.MsgCreateValidator={encode(pt,lo=kt.Writer.create()){return pt.description!==void 0&&Vr.Description.encode(pt.description,lo.uint32(10).fork()).ldelim(),pt.commission!==void 0&&Vr.CommissionRates.encode(pt.commission,lo.uint32(18).fork()).ldelim(),pt.minSelfDelegation!==""&&lo.uint32(26).string(pt.minSelfDelegation),pt.delegatorAddress!==""&&lo.uint32(34).string(pt.delegatorAddress),pt.validatorAddress!==""&&lo.uint32(42).string(pt.validatorAddress),pt.pubkey!==void 0&&tt.Any.encode(pt.pubkey,lo.uint32(50).fork()).ldelim(),pt.value!==void 0&&nt.Coin.encode(pt.value,lo.uint32(58).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=qt();for(;so.pos>>3){case 1:xt.description=Vr.Description.decode(so,so.uint32());break;case 2:xt.commission=Vr.CommissionRates.decode(so,so.uint32());break;case 3:xt.minSelfDelegation=so.string();break;case 4:xt.delegatorAddress=so.string();break;case 5:xt.validatorAddress=so.string();break;case 6:xt.pubkey=tt.Any.decode(so,so.uint32());break;case 7:xt.value=nt.Coin.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{description:(0,dt.isSet)(pt.description)?Vr.Description.fromJSON(pt.description):void 0,commission:(0,dt.isSet)(pt.commission)?Vr.CommissionRates.fromJSON(pt.commission):void 0,minSelfDelegation:(0,dt.isSet)(pt.minSelfDelegation)?String(pt.minSelfDelegation):"",delegatorAddress:(0,dt.isSet)(pt.delegatorAddress)?String(pt.delegatorAddress):"",validatorAddress:(0,dt.isSet)(pt.validatorAddress)?String(pt.validatorAddress):"",pubkey:(0,dt.isSet)(pt.pubkey)?tt.Any.fromJSON(pt.pubkey):void 0,value:(0,dt.isSet)(pt.value)?nt.Coin.fromJSON(pt.value):void 0}},toJSON(pt){const lo={};return pt.description!==void 0&&(lo.description=pt.description?Vr.Description.toJSON(pt.description):void 0),pt.commission!==void 0&&(lo.commission=pt.commission?Vr.CommissionRates.toJSON(pt.commission):void 0),pt.minSelfDelegation!==void 0&&(lo.minSelfDelegation=pt.minSelfDelegation),pt.delegatorAddress!==void 0&&(lo.delegatorAddress=pt.delegatorAddress),pt.validatorAddress!==void 0&&(lo.validatorAddress=pt.validatorAddress),pt.pubkey!==void 0&&(lo.pubkey=pt.pubkey?tt.Any.toJSON(pt.pubkey):void 0),pt.value!==void 0&&(lo.value=pt.value?nt.Coin.toJSON(pt.value):void 0),lo},fromPartial(pt){const lo=qt();return lo.description=pt.description!==void 0&&pt.description!==null?Vr.Description.fromPartial(pt.description):void 0,lo.commission=pt.commission!==void 0&&pt.commission!==null?Vr.CommissionRates.fromPartial(pt.commission):void 0,lo.minSelfDelegation=pt.minSelfDelegation??"",lo.delegatorAddress=pt.delegatorAddress??"",lo.validatorAddress=pt.validatorAddress??"",lo.pubkey=pt.pubkey!==void 0&&pt.pubkey!==null?tt.Any.fromPartial(pt.pubkey):void 0,lo.value=pt.value!==void 0&&pt.value!==null?nt.Coin.fromPartial(pt.value):void 0,lo}};function ro(){return{}}_e.MsgCreateValidatorResponse={encode(pt,lo=kt.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ro();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return ro()}};function ht(){return{description:void 0,validatorAddress:"",commissionRate:"",minSelfDelegation:""}}_e.MsgEditValidator={encode(pt,lo=kt.Writer.create()){return pt.description!==void 0&&Vr.Description.encode(pt.description,lo.uint32(10).fork()).ldelim(),pt.validatorAddress!==""&&lo.uint32(18).string(pt.validatorAddress),pt.commissionRate!==""&&lo.uint32(26).string(pt.commissionRate),pt.minSelfDelegation!==""&&lo.uint32(34).string(pt.minSelfDelegation),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ht();for(;so.pos>>3){case 1:xt.description=Vr.Description.decode(so,so.uint32());break;case 2:xt.validatorAddress=so.string();break;case 3:xt.commissionRate=so.string();break;case 4:xt.minSelfDelegation=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{description:(0,dt.isSet)(pt.description)?Vr.Description.fromJSON(pt.description):void 0,validatorAddress:(0,dt.isSet)(pt.validatorAddress)?String(pt.validatorAddress):"",commissionRate:(0,dt.isSet)(pt.commissionRate)?String(pt.commissionRate):"",minSelfDelegation:(0,dt.isSet)(pt.minSelfDelegation)?String(pt.minSelfDelegation):""}},toJSON(pt){const lo={};return pt.description!==void 0&&(lo.description=pt.description?Vr.Description.toJSON(pt.description):void 0),pt.validatorAddress!==void 0&&(lo.validatorAddress=pt.validatorAddress),pt.commissionRate!==void 0&&(lo.commissionRate=pt.commissionRate),pt.minSelfDelegation!==void 0&&(lo.minSelfDelegation=pt.minSelfDelegation),lo},fromPartial(pt){const lo=ht();return lo.description=pt.description!==void 0&&pt.description!==null?Vr.Description.fromPartial(pt.description):void 0,lo.validatorAddress=pt.validatorAddress??"",lo.commissionRate=pt.commissionRate??"",lo.minSelfDelegation=pt.minSelfDelegation??"",lo}};function po(){return{}}_e.MsgEditValidatorResponse={encode(pt,lo=kt.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=po();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return po()}};function no(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}_e.MsgDelegate={encode(pt,lo=kt.Writer.create()){return pt.delegatorAddress!==""&&lo.uint32(10).string(pt.delegatorAddress),pt.validatorAddress!==""&&lo.uint32(18).string(pt.validatorAddress),pt.amount!==void 0&&nt.Coin.encode(pt.amount,lo.uint32(26).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=no();for(;so.pos>>3){case 1:xt.delegatorAddress=so.string();break;case 2:xt.validatorAddress=so.string();break;case 3:xt.amount=nt.Coin.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{delegatorAddress:(0,dt.isSet)(pt.delegatorAddress)?String(pt.delegatorAddress):"",validatorAddress:(0,dt.isSet)(pt.validatorAddress)?String(pt.validatorAddress):"",amount:(0,dt.isSet)(pt.amount)?nt.Coin.fromJSON(pt.amount):void 0}},toJSON(pt){const lo={};return pt.delegatorAddress!==void 0&&(lo.delegatorAddress=pt.delegatorAddress),pt.validatorAddress!==void 0&&(lo.validatorAddress=pt.validatorAddress),pt.amount!==void 0&&(lo.amount=pt.amount?nt.Coin.toJSON(pt.amount):void 0),lo},fromPartial(pt){const lo=no();return lo.delegatorAddress=pt.delegatorAddress??"",lo.validatorAddress=pt.validatorAddress??"",lo.amount=pt.amount!==void 0&&pt.amount!==null?nt.Coin.fromPartial(pt.amount):void 0,lo}};function Nt(){return{}}_e.MsgDelegateResponse={encode(pt,lo=kt.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Nt();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return Nt()}};function eo(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:void 0}}_e.MsgBeginRedelegate={encode(pt,lo=kt.Writer.create()){return pt.delegatorAddress!==""&&lo.uint32(10).string(pt.delegatorAddress),pt.validatorSrcAddress!==""&&lo.uint32(18).string(pt.validatorSrcAddress),pt.validatorDstAddress!==""&&lo.uint32(26).string(pt.validatorDstAddress),pt.amount!==void 0&&nt.Coin.encode(pt.amount,lo.uint32(34).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=eo();for(;so.pos>>3){case 1:xt.delegatorAddress=so.string();break;case 2:xt.validatorSrcAddress=so.string();break;case 3:xt.validatorDstAddress=so.string();break;case 4:xt.amount=nt.Coin.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{delegatorAddress:(0,dt.isSet)(pt.delegatorAddress)?String(pt.delegatorAddress):"",validatorSrcAddress:(0,dt.isSet)(pt.validatorSrcAddress)?String(pt.validatorSrcAddress):"",validatorDstAddress:(0,dt.isSet)(pt.validatorDstAddress)?String(pt.validatorDstAddress):"",amount:(0,dt.isSet)(pt.amount)?nt.Coin.fromJSON(pt.amount):void 0}},toJSON(pt){const lo={};return pt.delegatorAddress!==void 0&&(lo.delegatorAddress=pt.delegatorAddress),pt.validatorSrcAddress!==void 0&&(lo.validatorSrcAddress=pt.validatorSrcAddress),pt.validatorDstAddress!==void 0&&(lo.validatorDstAddress=pt.validatorDstAddress),pt.amount!==void 0&&(lo.amount=pt.amount?nt.Coin.toJSON(pt.amount):void 0),lo},fromPartial(pt){const lo=eo();return lo.delegatorAddress=pt.delegatorAddress??"",lo.validatorSrcAddress=pt.validatorSrcAddress??"",lo.validatorDstAddress=pt.validatorDstAddress??"",lo.amount=pt.amount!==void 0&&pt.amount!==null?nt.Coin.fromPartial(pt.amount):void 0,lo}};function Wt(){return{completionTime:void 0}}_e.MsgBeginRedelegateResponse={encode(pt,lo=kt.Writer.create()){return pt.completionTime!==void 0&&st.Timestamp.encode(pt.completionTime,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Wt();for(;so.pos>>3){case 1:xt.completionTime=st.Timestamp.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{completionTime:(0,dt.isSet)(pt.completionTime)?(0,dt.fromJsonTimestamp)(pt.completionTime):void 0}},toJSON(pt){const lo={};return pt.completionTime!==void 0&&(lo.completionTime=(0,dt.fromTimestamp)(pt.completionTime).toISOString()),lo},fromPartial(pt){const lo=Wt();return lo.completionTime=pt.completionTime!==void 0&&pt.completionTime!==null?st.Timestamp.fromPartial(pt.completionTime):void 0,lo}};function St(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}_e.MsgUndelegate={encode(pt,lo=kt.Writer.create()){return pt.delegatorAddress!==""&&lo.uint32(10).string(pt.delegatorAddress),pt.validatorAddress!==""&&lo.uint32(18).string(pt.validatorAddress),pt.amount!==void 0&&nt.Coin.encode(pt.amount,lo.uint32(26).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=St();for(;so.pos>>3){case 1:xt.delegatorAddress=so.string();break;case 2:xt.validatorAddress=so.string();break;case 3:xt.amount=nt.Coin.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{delegatorAddress:(0,dt.isSet)(pt.delegatorAddress)?String(pt.delegatorAddress):"",validatorAddress:(0,dt.isSet)(pt.validatorAddress)?String(pt.validatorAddress):"",amount:(0,dt.isSet)(pt.amount)?nt.Coin.fromJSON(pt.amount):void 0}},toJSON(pt){const lo={};return pt.delegatorAddress!==void 0&&(lo.delegatorAddress=pt.delegatorAddress),pt.validatorAddress!==void 0&&(lo.validatorAddress=pt.validatorAddress),pt.amount!==void 0&&(lo.amount=pt.amount?nt.Coin.toJSON(pt.amount):void 0),lo},fromPartial(pt){const lo=St();return lo.delegatorAddress=pt.delegatorAddress??"",lo.validatorAddress=pt.validatorAddress??"",lo.amount=pt.amount!==void 0&&pt.amount!==null?nt.Coin.fromPartial(pt.amount):void 0,lo}};function Ot(){return{completionTime:void 0}}_e.MsgUndelegateResponse={encode(pt,lo=kt.Writer.create()){return pt.completionTime!==void 0&&st.Timestamp.encode(pt.completionTime,lo.uint32(10).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ot();for(;so.pos>>3){case 1:xt.completionTime=st.Timestamp.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{completionTime:(0,dt.isSet)(pt.completionTime)?(0,dt.fromJsonTimestamp)(pt.completionTime):void 0}},toJSON(pt){const lo={};return pt.completionTime!==void 0&&(lo.completionTime=(0,dt.fromTimestamp)(pt.completionTime).toISOString()),lo},fromPartial(pt){const lo=Ot();return lo.completionTime=pt.completionTime!==void 0&&pt.completionTime!==null?st.Timestamp.fromPartial(pt.completionTime):void 0,lo}};function uo(){return{delegatorAddress:"",validatorAddress:"",amount:void 0,creationHeight:dt.Long.ZERO}}_e.MsgCancelUnbondingDelegation={encode(pt,lo=kt.Writer.create()){return pt.delegatorAddress!==""&&lo.uint32(10).string(pt.delegatorAddress),pt.validatorAddress!==""&&lo.uint32(18).string(pt.validatorAddress),pt.amount!==void 0&&nt.Coin.encode(pt.amount,lo.uint32(26).fork()).ldelim(),pt.creationHeight.isZero()||lo.uint32(32).int64(pt.creationHeight),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=uo();for(;so.pos>>3){case 1:xt.delegatorAddress=so.string();break;case 2:xt.validatorAddress=so.string();break;case 3:xt.amount=nt.Coin.decode(so,so.uint32());break;case 4:xt.creationHeight=so.int64();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{delegatorAddress:(0,dt.isSet)(pt.delegatorAddress)?String(pt.delegatorAddress):"",validatorAddress:(0,dt.isSet)(pt.validatorAddress)?String(pt.validatorAddress):"",amount:(0,dt.isSet)(pt.amount)?nt.Coin.fromJSON(pt.amount):void 0,creationHeight:(0,dt.isSet)(pt.creationHeight)?dt.Long.fromValue(pt.creationHeight):dt.Long.ZERO}},toJSON(pt){const lo={};return pt.delegatorAddress!==void 0&&(lo.delegatorAddress=pt.delegatorAddress),pt.validatorAddress!==void 0&&(lo.validatorAddress=pt.validatorAddress),pt.amount!==void 0&&(lo.amount=pt.amount?nt.Coin.toJSON(pt.amount):void 0),pt.creationHeight!==void 0&&(lo.creationHeight=(pt.creationHeight||dt.Long.ZERO).toString()),lo},fromPartial(pt){const lo=uo();return lo.delegatorAddress=pt.delegatorAddress??"",lo.validatorAddress=pt.validatorAddress??"",lo.amount=pt.amount!==void 0&&pt.amount!==null?nt.Coin.fromPartial(pt.amount):void 0,lo.creationHeight=pt.creationHeight!==void 0&&pt.creationHeight!==null?dt.Long.fromValue(pt.creationHeight):dt.Long.ZERO,lo}};function go(){return{}}_e.MsgCancelUnbondingDelegationResponse={encode(pt,lo=kt.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=go();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return go()}};function bo(){return{authority:"",params:void 0}}_e.MsgUpdateParams={encode(pt,lo=kt.Writer.create()){return pt.authority!==""&&lo.uint32(10).string(pt.authority),pt.params!==void 0&&Vr.Params.encode(pt.params,lo.uint32(18).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=bo();for(;so.pos>>3){case 1:xt.authority=so.string();break;case 2:xt.params=Vr.Params.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{authority:(0,dt.isSet)(pt.authority)?String(pt.authority):"",params:(0,dt.isSet)(pt.params)?Vr.Params.fromJSON(pt.params):void 0}},toJSON(pt){const lo={};return pt.authority!==void 0&&(lo.authority=pt.authority),pt.params!==void 0&&(lo.params=pt.params?Vr.Params.toJSON(pt.params):void 0),lo},fromPartial(pt){const lo=bo();return lo.authority=pt.authority??"",lo.params=pt.params!==void 0&&pt.params!==null?Vr.Params.fromPartial(pt.params):void 0,lo}};function oo(){return{}}_e.MsgUpdateParamsResponse={encode(pt,lo=kt.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof kt.Reader?pt:new kt.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=oo();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return oo()}};class Ro{constructor(lo){this.rpc=lo,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(lo){const so=_e.MsgCreateValidator.encode(lo).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",so).then(wo=>_e.MsgCreateValidatorResponse.decode(new kt.Reader(wo)))}EditValidator(lo){const so=_e.MsgEditValidator.encode(lo).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",so).then(wo=>_e.MsgEditValidatorResponse.decode(new kt.Reader(wo)))}Delegate(lo){const so=_e.MsgDelegate.encode(lo).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",so).then(wo=>_e.MsgDelegateResponse.decode(new kt.Reader(wo)))}BeginRedelegate(lo){const so=_e.MsgBeginRedelegate.encode(lo).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",so).then(wo=>_e.MsgBeginRedelegateResponse.decode(new kt.Reader(wo)))}Undelegate(lo){const so=_e.MsgUndelegate.encode(lo).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",so).then(wo=>_e.MsgUndelegateResponse.decode(new kt.Reader(wo)))}CancelUnbondingDelegation(lo){const so=_e.MsgCancelUnbondingDelegation.encode(lo).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CancelUnbondingDelegation",so).then(wo=>_e.MsgCancelUnbondingDelegationResponse.decode(new kt.Reader(wo)))}UpdateParams(lo){const so=_e.MsgUpdateParams.encode(lo).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","UpdateParams",so).then(wo=>_e.MsgUpdateParamsResponse.decode(new kt.Reader(wo)))}}_e.MsgClientImpl=Ro}(tx$2),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$5=tx$2;messages$3.stakingTypes=[["/cosmos.staking.v1beta1.MsgBeginRedelegate",tx_1$5.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgCreateValidator",tx_1$5.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgDelegate",tx_1$5.MsgDelegate],["/cosmos.staking.v1beta1.MsgEditValidator",tx_1$5.MsgEditValidator],["/cosmos.staking.v1beta1.MsgUndelegate",tx_1$5.MsgUndelegate]];function isMsgBeginRedelegateEncodeObject(_e){return _e.typeUrl==="/cosmos.staking.v1beta1.MsgBeginRedelegate"}messages$3.isMsgBeginRedelegateEncodeObject=isMsgBeginRedelegateEncodeObject;function isMsgCreateValidatorEncodeObject(_e){return _e.typeUrl==="/cosmos.staking.v1beta1.MsgCreateValidator"}messages$3.isMsgCreateValidatorEncodeObject=isMsgCreateValidatorEncodeObject;function isMsgDelegateEncodeObject(_e){return _e.typeUrl==="/cosmos.staking.v1beta1.MsgDelegate"}messages$3.isMsgDelegateEncodeObject=isMsgDelegateEncodeObject;function isMsgEditValidatorEncodeObject(_e){return _e.typeUrl==="/cosmos.staking.v1beta1.MsgEditValidator"}messages$3.isMsgEditValidatorEncodeObject=isMsgEditValidatorEncodeObject;function isMsgUndelegateEncodeObject(_e){return _e.typeUrl==="/cosmos.staking.v1beta1.MsgUndelegate"}messages$3.isMsgUndelegateEncodeObject=isMsgUndelegateEncodeObject;var queries$2={},query$1={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Tt,vo,Co,xo){xo===void 0&&(xo=Co);var Po=Object.getOwnPropertyDescriptor(vo,Co);(!Po||("get"in Po?!vo.__esModule:Po.writable||Po.configurable))&&(Po={enumerable:!0,get:function(){return vo[Co]}}),Object.defineProperty(Tt,xo,Po)}:function(Tt,vo,Co,xo){xo===void 0&&(xo=Co),Tt[xo]=vo[Co]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Tt,vo){Object.defineProperty(Tt,"default",{enumerable:!0,value:vo})}:function(Tt,vo){Tt.default=vo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Tt){if(Tt&&Tt.__esModule)return Tt;var vo={};if(Tt!=null)for(var Co in Tt)Co!=="default"&&Object.prototype.hasOwnProperty.call(Tt,Co)&&cr(vo,Tt,Co);return gr(vo,Tt),vo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.QueryPoolResponse=_e.QueryPoolRequest=_e.QueryHistoricalInfoResponse=_e.QueryHistoricalInfoRequest=_e.QueryDelegatorValidatorResponse=_e.QueryDelegatorValidatorRequest=_e.QueryDelegatorValidatorsResponse=_e.QueryDelegatorValidatorsRequest=_e.QueryRedelegationsResponse=_e.QueryRedelegationsRequest=_e.QueryDelegatorUnbondingDelegationsResponse=_e.QueryDelegatorUnbondingDelegationsRequest=_e.QueryDelegatorDelegationsResponse=_e.QueryDelegatorDelegationsRequest=_e.QueryUnbondingDelegationResponse=_e.QueryUnbondingDelegationRequest=_e.QueryDelegationResponse=_e.QueryDelegationRequest=_e.QueryValidatorUnbondingDelegationsResponse=_e.QueryValidatorUnbondingDelegationsRequest=_e.QueryValidatorDelegationsResponse=_e.QueryValidatorDelegationsRequest=_e.QueryValidatorResponse=_e.QueryValidatorRequest=_e.QueryValidatorsResponse=_e.QueryValidatorsRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=staking,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.staking.v1beta1";function dt(){return{status:"",pagination:void 0}}_e.QueryValidatorsRequest={encode(Tt,vo=st.Writer.create()){return Tt.status!==""&&vo.uint32(10).string(Tt.status),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=dt();for(;Co.pos>>3){case 1:Po.status=Co.string();break;case 2:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{status:(0,nt.isSet)(Tt.status)?String(Tt.status):"",pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.status!==void 0&&(vo.status=Tt.status),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=dt();return vo.status=Tt.status??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function kt(){return{validators:[],pagination:void 0}}_e.QueryValidatorsResponse={encode(Tt,vo=st.Writer.create()){for(const Co of Tt.validators)tt.Validator.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=kt();for(;Co.pos>>3){case 1:Po.validators.push(tt.Validator.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{validators:Array.isArray(Tt==null?void 0:Tt.validators)?Tt.validators.map(vo=>tt.Validator.fromJSON(vo)):[],pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.validators?vo.validators=Tt.validators.map(Co=>Co?tt.Validator.toJSON(Co):void 0):vo.validators=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){var Co;const vo=kt();return vo.validators=((Co=Tt.validators)==null?void 0:Co.map(xo=>tt.Validator.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo}};function qt(){return{validatorAddr:""}}_e.QueryValidatorRequest={encode(Tt,vo=st.Writer.create()){return Tt.validatorAddr!==""&&vo.uint32(10).string(Tt.validatorAddr),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=qt();for(;Co.pos>>3){case 1:Po.validatorAddr=Co.string();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{validatorAddr:(0,nt.isSet)(Tt.validatorAddr)?String(Tt.validatorAddr):""}},toJSON(Tt){const vo={};return Tt.validatorAddr!==void 0&&(vo.validatorAddr=Tt.validatorAddr),vo},fromPartial(Tt){const vo=qt();return vo.validatorAddr=Tt.validatorAddr??"",vo}};function ro(){return{validator:void 0}}_e.QueryValidatorResponse={encode(Tt,vo=st.Writer.create()){return Tt.validator!==void 0&&tt.Validator.encode(Tt.validator,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=ro();for(;Co.pos>>3){case 1:Po.validator=tt.Validator.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{validator:(0,nt.isSet)(Tt.validator)?tt.Validator.fromJSON(Tt.validator):void 0}},toJSON(Tt){const vo={};return Tt.validator!==void 0&&(vo.validator=Tt.validator?tt.Validator.toJSON(Tt.validator):void 0),vo},fromPartial(Tt){const vo=ro();return vo.validator=Tt.validator!==void 0&&Tt.validator!==null?tt.Validator.fromPartial(Tt.validator):void 0,vo}};function ht(){return{validatorAddr:"",pagination:void 0}}_e.QueryValidatorDelegationsRequest={encode(Tt,vo=st.Writer.create()){return Tt.validatorAddr!==""&&vo.uint32(10).string(Tt.validatorAddr),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=ht();for(;Co.pos>>3){case 1:Po.validatorAddr=Co.string();break;case 2:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{validatorAddr:(0,nt.isSet)(Tt.validatorAddr)?String(Tt.validatorAddr):"",pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.validatorAddr!==void 0&&(vo.validatorAddr=Tt.validatorAddr),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=ht();return vo.validatorAddr=Tt.validatorAddr??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function po(){return{delegationResponses:[],pagination:void 0}}_e.QueryValidatorDelegationsResponse={encode(Tt,vo=st.Writer.create()){for(const Co of Tt.delegationResponses)tt.DelegationResponse.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=po();for(;Co.pos>>3){case 1:Po.delegationResponses.push(tt.DelegationResponse.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegationResponses:Array.isArray(Tt==null?void 0:Tt.delegationResponses)?Tt.delegationResponses.map(vo=>tt.DelegationResponse.fromJSON(vo)):[],pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.delegationResponses?vo.delegationResponses=Tt.delegationResponses.map(Co=>Co?tt.DelegationResponse.toJSON(Co):void 0):vo.delegationResponses=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){var Co;const vo=po();return vo.delegationResponses=((Co=Tt.delegationResponses)==null?void 0:Co.map(xo=>tt.DelegationResponse.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo}};function no(){return{validatorAddr:"",pagination:void 0}}_e.QueryValidatorUnbondingDelegationsRequest={encode(Tt,vo=st.Writer.create()){return Tt.validatorAddr!==""&&vo.uint32(10).string(Tt.validatorAddr),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=no();for(;Co.pos>>3){case 1:Po.validatorAddr=Co.string();break;case 2:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{validatorAddr:(0,nt.isSet)(Tt.validatorAddr)?String(Tt.validatorAddr):"",pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.validatorAddr!==void 0&&(vo.validatorAddr=Tt.validatorAddr),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=no();return vo.validatorAddr=Tt.validatorAddr??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function Nt(){return{unbondingResponses:[],pagination:void 0}}_e.QueryValidatorUnbondingDelegationsResponse={encode(Tt,vo=st.Writer.create()){for(const Co of Tt.unbondingResponses)tt.UnbondingDelegation.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Nt();for(;Co.pos>>3){case 1:Po.unbondingResponses.push(tt.UnbondingDelegation.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{unbondingResponses:Array.isArray(Tt==null?void 0:Tt.unbondingResponses)?Tt.unbondingResponses.map(vo=>tt.UnbondingDelegation.fromJSON(vo)):[],pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.unbondingResponses?vo.unbondingResponses=Tt.unbondingResponses.map(Co=>Co?tt.UnbondingDelegation.toJSON(Co):void 0):vo.unbondingResponses=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){var Co;const vo=Nt();return vo.unbondingResponses=((Co=Tt.unbondingResponses)==null?void 0:Co.map(xo=>tt.UnbondingDelegation.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo}};function eo(){return{delegatorAddr:"",validatorAddr:""}}_e.QueryDelegationRequest={encode(Tt,vo=st.Writer.create()){return Tt.delegatorAddr!==""&&vo.uint32(10).string(Tt.delegatorAddr),Tt.validatorAddr!==""&&vo.uint32(18).string(Tt.validatorAddr),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=eo();for(;Co.pos>>3){case 1:Po.delegatorAddr=Co.string();break;case 2:Po.validatorAddr=Co.string();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegatorAddr:(0,nt.isSet)(Tt.delegatorAddr)?String(Tt.delegatorAddr):"",validatorAddr:(0,nt.isSet)(Tt.validatorAddr)?String(Tt.validatorAddr):""}},toJSON(Tt){const vo={};return Tt.delegatorAddr!==void 0&&(vo.delegatorAddr=Tt.delegatorAddr),Tt.validatorAddr!==void 0&&(vo.validatorAddr=Tt.validatorAddr),vo},fromPartial(Tt){const vo=eo();return vo.delegatorAddr=Tt.delegatorAddr??"",vo.validatorAddr=Tt.validatorAddr??"",vo}};function Wt(){return{delegationResponse:void 0}}_e.QueryDelegationResponse={encode(Tt,vo=st.Writer.create()){return Tt.delegationResponse!==void 0&&tt.DelegationResponse.encode(Tt.delegationResponse,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Wt();for(;Co.pos>>3){case 1:Po.delegationResponse=tt.DelegationResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegationResponse:(0,nt.isSet)(Tt.delegationResponse)?tt.DelegationResponse.fromJSON(Tt.delegationResponse):void 0}},toJSON(Tt){const vo={};return Tt.delegationResponse!==void 0&&(vo.delegationResponse=Tt.delegationResponse?tt.DelegationResponse.toJSON(Tt.delegationResponse):void 0),vo},fromPartial(Tt){const vo=Wt();return vo.delegationResponse=Tt.delegationResponse!==void 0&&Tt.delegationResponse!==null?tt.DelegationResponse.fromPartial(Tt.delegationResponse):void 0,vo}};function St(){return{delegatorAddr:"",validatorAddr:""}}_e.QueryUnbondingDelegationRequest={encode(Tt,vo=st.Writer.create()){return Tt.delegatorAddr!==""&&vo.uint32(10).string(Tt.delegatorAddr),Tt.validatorAddr!==""&&vo.uint32(18).string(Tt.validatorAddr),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=St();for(;Co.pos>>3){case 1:Po.delegatorAddr=Co.string();break;case 2:Po.validatorAddr=Co.string();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegatorAddr:(0,nt.isSet)(Tt.delegatorAddr)?String(Tt.delegatorAddr):"",validatorAddr:(0,nt.isSet)(Tt.validatorAddr)?String(Tt.validatorAddr):""}},toJSON(Tt){const vo={};return Tt.delegatorAddr!==void 0&&(vo.delegatorAddr=Tt.delegatorAddr),Tt.validatorAddr!==void 0&&(vo.validatorAddr=Tt.validatorAddr),vo},fromPartial(Tt){const vo=St();return vo.delegatorAddr=Tt.delegatorAddr??"",vo.validatorAddr=Tt.validatorAddr??"",vo}};function Ot(){return{unbond:void 0}}_e.QueryUnbondingDelegationResponse={encode(Tt,vo=st.Writer.create()){return Tt.unbond!==void 0&&tt.UnbondingDelegation.encode(Tt.unbond,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Ot();for(;Co.pos>>3){case 1:Po.unbond=tt.UnbondingDelegation.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{unbond:(0,nt.isSet)(Tt.unbond)?tt.UnbondingDelegation.fromJSON(Tt.unbond):void 0}},toJSON(Tt){const vo={};return Tt.unbond!==void 0&&(vo.unbond=Tt.unbond?tt.UnbondingDelegation.toJSON(Tt.unbond):void 0),vo},fromPartial(Tt){const vo=Ot();return vo.unbond=Tt.unbond!==void 0&&Tt.unbond!==null?tt.UnbondingDelegation.fromPartial(Tt.unbond):void 0,vo}};function uo(){return{delegatorAddr:"",pagination:void 0}}_e.QueryDelegatorDelegationsRequest={encode(Tt,vo=st.Writer.create()){return Tt.delegatorAddr!==""&&vo.uint32(10).string(Tt.delegatorAddr),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=uo();for(;Co.pos>>3){case 1:Po.delegatorAddr=Co.string();break;case 2:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegatorAddr:(0,nt.isSet)(Tt.delegatorAddr)?String(Tt.delegatorAddr):"",pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.delegatorAddr!==void 0&&(vo.delegatorAddr=Tt.delegatorAddr),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=uo();return vo.delegatorAddr=Tt.delegatorAddr??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function go(){return{delegationResponses:[],pagination:void 0}}_e.QueryDelegatorDelegationsResponse={encode(Tt,vo=st.Writer.create()){for(const Co of Tt.delegationResponses)tt.DelegationResponse.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=go();for(;Co.pos>>3){case 1:Po.delegationResponses.push(tt.DelegationResponse.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegationResponses:Array.isArray(Tt==null?void 0:Tt.delegationResponses)?Tt.delegationResponses.map(vo=>tt.DelegationResponse.fromJSON(vo)):[],pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.delegationResponses?vo.delegationResponses=Tt.delegationResponses.map(Co=>Co?tt.DelegationResponse.toJSON(Co):void 0):vo.delegationResponses=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){var Co;const vo=go();return vo.delegationResponses=((Co=Tt.delegationResponses)==null?void 0:Co.map(xo=>tt.DelegationResponse.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo}};function bo(){return{delegatorAddr:"",pagination:void 0}}_e.QueryDelegatorUnbondingDelegationsRequest={encode(Tt,vo=st.Writer.create()){return Tt.delegatorAddr!==""&&vo.uint32(10).string(Tt.delegatorAddr),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=bo();for(;Co.pos>>3){case 1:Po.delegatorAddr=Co.string();break;case 2:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegatorAddr:(0,nt.isSet)(Tt.delegatorAddr)?String(Tt.delegatorAddr):"",pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.delegatorAddr!==void 0&&(vo.delegatorAddr=Tt.delegatorAddr),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=bo();return vo.delegatorAddr=Tt.delegatorAddr??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function oo(){return{unbondingResponses:[],pagination:void 0}}_e.QueryDelegatorUnbondingDelegationsResponse={encode(Tt,vo=st.Writer.create()){for(const Co of Tt.unbondingResponses)tt.UnbondingDelegation.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=oo();for(;Co.pos>>3){case 1:Po.unbondingResponses.push(tt.UnbondingDelegation.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{unbondingResponses:Array.isArray(Tt==null?void 0:Tt.unbondingResponses)?Tt.unbondingResponses.map(vo=>tt.UnbondingDelegation.fromJSON(vo)):[],pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.unbondingResponses?vo.unbondingResponses=Tt.unbondingResponses.map(Co=>Co?tt.UnbondingDelegation.toJSON(Co):void 0):vo.unbondingResponses=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){var Co;const vo=oo();return vo.unbondingResponses=((Co=Tt.unbondingResponses)==null?void 0:Co.map(xo=>tt.UnbondingDelegation.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo}};function Ro(){return{delegatorAddr:"",srcValidatorAddr:"",dstValidatorAddr:"",pagination:void 0}}_e.QueryRedelegationsRequest={encode(Tt,vo=st.Writer.create()){return Tt.delegatorAddr!==""&&vo.uint32(10).string(Tt.delegatorAddr),Tt.srcValidatorAddr!==""&&vo.uint32(18).string(Tt.srcValidatorAddr),Tt.dstValidatorAddr!==""&&vo.uint32(26).string(Tt.dstValidatorAddr),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(34).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Ro();for(;Co.pos>>3){case 1:Po.delegatorAddr=Co.string();break;case 2:Po.srcValidatorAddr=Co.string();break;case 3:Po.dstValidatorAddr=Co.string();break;case 4:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegatorAddr:(0,nt.isSet)(Tt.delegatorAddr)?String(Tt.delegatorAddr):"",srcValidatorAddr:(0,nt.isSet)(Tt.srcValidatorAddr)?String(Tt.srcValidatorAddr):"",dstValidatorAddr:(0,nt.isSet)(Tt.dstValidatorAddr)?String(Tt.dstValidatorAddr):"",pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.delegatorAddr!==void 0&&(vo.delegatorAddr=Tt.delegatorAddr),Tt.srcValidatorAddr!==void 0&&(vo.srcValidatorAddr=Tt.srcValidatorAddr),Tt.dstValidatorAddr!==void 0&&(vo.dstValidatorAddr=Tt.dstValidatorAddr),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=Ro();return vo.delegatorAddr=Tt.delegatorAddr??"",vo.srcValidatorAddr=Tt.srcValidatorAddr??"",vo.dstValidatorAddr=Tt.dstValidatorAddr??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function pt(){return{redelegationResponses:[],pagination:void 0}}_e.QueryRedelegationsResponse={encode(Tt,vo=st.Writer.create()){for(const Co of Tt.redelegationResponses)tt.RedelegationResponse.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=pt();for(;Co.pos>>3){case 1:Po.redelegationResponses.push(tt.RedelegationResponse.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{redelegationResponses:Array.isArray(Tt==null?void 0:Tt.redelegationResponses)?Tt.redelegationResponses.map(vo=>tt.RedelegationResponse.fromJSON(vo)):[],pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.redelegationResponses?vo.redelegationResponses=Tt.redelegationResponses.map(Co=>Co?tt.RedelegationResponse.toJSON(Co):void 0):vo.redelegationResponses=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){var Co;const vo=pt();return vo.redelegationResponses=((Co=Tt.redelegationResponses)==null?void 0:Co.map(xo=>tt.RedelegationResponse.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo}};function lo(){return{delegatorAddr:"",pagination:void 0}}_e.QueryDelegatorValidatorsRequest={encode(Tt,vo=st.Writer.create()){return Tt.delegatorAddr!==""&&vo.uint32(10).string(Tt.delegatorAddr),Tt.pagination!==void 0&&Vr.PageRequest.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=lo();for(;Co.pos>>3){case 1:Po.delegatorAddr=Co.string();break;case 2:Po.pagination=Vr.PageRequest.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegatorAddr:(0,nt.isSet)(Tt.delegatorAddr)?String(Tt.delegatorAddr):"",pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageRequest.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.delegatorAddr!==void 0&&(vo.delegatorAddr=Tt.delegatorAddr),Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageRequest.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){const vo=lo();return vo.delegatorAddr=Tt.delegatorAddr??"",vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageRequest.fromPartial(Tt.pagination):void 0,vo}};function so(){return{validators:[],pagination:void 0}}_e.QueryDelegatorValidatorsResponse={encode(Tt,vo=st.Writer.create()){for(const Co of Tt.validators)tt.Validator.encode(Co,vo.uint32(10).fork()).ldelim();return Tt.pagination!==void 0&&Vr.PageResponse.encode(Tt.pagination,vo.uint32(18).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=so();for(;Co.pos>>3){case 1:Po.validators.push(tt.Validator.decode(Co,Co.uint32()));break;case 2:Po.pagination=Vr.PageResponse.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{validators:Array.isArray(Tt==null?void 0:Tt.validators)?Tt.validators.map(vo=>tt.Validator.fromJSON(vo)):[],pagination:(0,nt.isSet)(Tt.pagination)?Vr.PageResponse.fromJSON(Tt.pagination):void 0}},toJSON(Tt){const vo={};return Tt.validators?vo.validators=Tt.validators.map(Co=>Co?tt.Validator.toJSON(Co):void 0):vo.validators=[],Tt.pagination!==void 0&&(vo.pagination=Tt.pagination?Vr.PageResponse.toJSON(Tt.pagination):void 0),vo},fromPartial(Tt){var Co;const vo=so();return vo.validators=((Co=Tt.validators)==null?void 0:Co.map(xo=>tt.Validator.fromPartial(xo)))||[],vo.pagination=Tt.pagination!==void 0&&Tt.pagination!==null?Vr.PageResponse.fromPartial(Tt.pagination):void 0,vo}};function wo(){return{delegatorAddr:"",validatorAddr:""}}_e.QueryDelegatorValidatorRequest={encode(Tt,vo=st.Writer.create()){return Tt.delegatorAddr!==""&&vo.uint32(10).string(Tt.delegatorAddr),Tt.validatorAddr!==""&&vo.uint32(18).string(Tt.validatorAddr),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=wo();for(;Co.pos>>3){case 1:Po.delegatorAddr=Co.string();break;case 2:Po.validatorAddr=Co.string();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{delegatorAddr:(0,nt.isSet)(Tt.delegatorAddr)?String(Tt.delegatorAddr):"",validatorAddr:(0,nt.isSet)(Tt.validatorAddr)?String(Tt.validatorAddr):""}},toJSON(Tt){const vo={};return Tt.delegatorAddr!==void 0&&(vo.delegatorAddr=Tt.delegatorAddr),Tt.validatorAddr!==void 0&&(vo.validatorAddr=Tt.validatorAddr),vo},fromPartial(Tt){const vo=wo();return vo.delegatorAddr=Tt.delegatorAddr??"",vo.validatorAddr=Tt.validatorAddr??"",vo}};function xt(){return{validator:void 0}}_e.QueryDelegatorValidatorResponse={encode(Tt,vo=st.Writer.create()){return Tt.validator!==void 0&&tt.Validator.encode(Tt.validator,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=xt();for(;Co.pos>>3){case 1:Po.validator=tt.Validator.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{validator:(0,nt.isSet)(Tt.validator)?tt.Validator.fromJSON(Tt.validator):void 0}},toJSON(Tt){const vo={};return Tt.validator!==void 0&&(vo.validator=Tt.validator?tt.Validator.toJSON(Tt.validator):void 0),vo},fromPartial(Tt){const vo=xt();return vo.validator=Tt.validator!==void 0&&Tt.validator!==null?tt.Validator.fromPartial(Tt.validator):void 0,vo}};function Mt(){return{height:nt.Long.ZERO}}_e.QueryHistoricalInfoRequest={encode(Tt,vo=st.Writer.create()){return Tt.height.isZero()||vo.uint32(8).int64(Tt.height),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Mt();for(;Co.pos>>3){case 1:Po.height=Co.int64();break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{height:(0,nt.isSet)(Tt.height)?nt.Long.fromValue(Tt.height):nt.Long.ZERO}},toJSON(Tt){const vo={};return Tt.height!==void 0&&(vo.height=(Tt.height||nt.Long.ZERO).toString()),vo},fromPartial(Tt){const vo=Mt();return vo.height=Tt.height!==void 0&&Tt.height!==null?nt.Long.fromValue(Tt.height):nt.Long.ZERO,vo}};function ho(){return{hist:void 0}}_e.QueryHistoricalInfoResponse={encode(Tt,vo=st.Writer.create()){return Tt.hist!==void 0&&tt.HistoricalInfo.encode(Tt.hist,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=ho();for(;Co.pos>>3){case 1:Po.hist=tt.HistoricalInfo.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{hist:(0,nt.isSet)(Tt.hist)?tt.HistoricalInfo.fromJSON(Tt.hist):void 0}},toJSON(Tt){const vo={};return Tt.hist!==void 0&&(vo.hist=Tt.hist?tt.HistoricalInfo.toJSON(Tt.hist):void 0),vo},fromPartial(Tt){const vo=ho();return vo.hist=Tt.hist!==void 0&&Tt.hist!==null?tt.HistoricalInfo.fromPartial(Tt.hist):void 0,vo}};function io(){return{}}_e.QueryPoolRequest={encode(Tt,vo=st.Writer.create()){return vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=io();for(;Co.pos>>3){default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{}},toJSON(Tt){return{}},fromPartial(Tt){return io()}};function co(){return{pool:void 0}}_e.QueryPoolResponse={encode(Tt,vo=st.Writer.create()){return Tt.pool!==void 0&&tt.Pool.encode(Tt.pool,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=co();for(;Co.pos>>3){case 1:Po.pool=tt.Pool.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{pool:(0,nt.isSet)(Tt.pool)?tt.Pool.fromJSON(Tt.pool):void 0}},toJSON(Tt){const vo={};return Tt.pool!==void 0&&(vo.pool=Tt.pool?tt.Pool.toJSON(Tt.pool):void 0),vo},fromPartial(Tt){const vo=co();return vo.pool=Tt.pool!==void 0&&Tt.pool!==null?tt.Pool.fromPartial(Tt.pool):void 0,vo}};function mo(){return{}}_e.QueryParamsRequest={encode(Tt,vo=st.Writer.create()){return vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=mo();for(;Co.pos>>3){default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{}},toJSON(Tt){return{}},fromPartial(Tt){return mo()}};function Bo(){return{params:void 0}}_e.QueryParamsResponse={encode(Tt,vo=st.Writer.create()){return Tt.params!==void 0&&tt.Params.encode(Tt.params,vo.uint32(10).fork()).ldelim(),vo},decode(Tt,vo){const Co=Tt instanceof st.Reader?Tt:new st.Reader(Tt);let xo=vo===void 0?Co.len:Co.pos+vo;const Po=Bo();for(;Co.pos>>3){case 1:Po.params=tt.Params.decode(Co,Co.uint32());break;default:Co.skipType(Wo&7);break}}return Po},fromJSON(Tt){return{params:(0,nt.isSet)(Tt.params)?tt.Params.fromJSON(Tt.params):void 0}},toJSON(Tt){const vo={};return Tt.params!==void 0&&(vo.params=Tt.params?tt.Params.toJSON(Tt.params):void 0),vo},fromPartial(Tt){const vo=Bo();return vo.params=Tt.params!==void 0&&Tt.params!==null?tt.Params.fromPartial(Tt.params):void 0,vo}};class So{constructor(vo){this.rpc=vo,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(vo){const Co=_e.QueryValidatorsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validators",Co).then(xo=>_e.QueryValidatorsResponse.decode(new st.Reader(xo)))}Validator(vo){const Co=_e.QueryValidatorRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Validator",Co).then(xo=>_e.QueryValidatorResponse.decode(new st.Reader(xo)))}ValidatorDelegations(vo){const Co=_e.QueryValidatorDelegationsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorDelegations",Co).then(xo=>_e.QueryValidatorDelegationsResponse.decode(new st.Reader(xo)))}ValidatorUnbondingDelegations(vo){const Co=_e.QueryValidatorUnbondingDelegationsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorUnbondingDelegations",Co).then(xo=>_e.QueryValidatorUnbondingDelegationsResponse.decode(new st.Reader(xo)))}Delegation(vo){const Co=_e.QueryDelegationRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Delegation",Co).then(xo=>_e.QueryDelegationResponse.decode(new st.Reader(xo)))}UnbondingDelegation(vo){const Co=_e.QueryUnbondingDelegationRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","UnbondingDelegation",Co).then(xo=>_e.QueryUnbondingDelegationResponse.decode(new st.Reader(xo)))}DelegatorDelegations(vo){const Co=_e.QueryDelegatorDelegationsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorDelegations",Co).then(xo=>_e.QueryDelegatorDelegationsResponse.decode(new st.Reader(xo)))}DelegatorUnbondingDelegations(vo){const Co=_e.QueryDelegatorUnbondingDelegationsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorUnbondingDelegations",Co).then(xo=>_e.QueryDelegatorUnbondingDelegationsResponse.decode(new st.Reader(xo)))}Redelegations(vo){const Co=_e.QueryRedelegationsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Redelegations",Co).then(xo=>_e.QueryRedelegationsResponse.decode(new st.Reader(xo)))}DelegatorValidators(vo){const Co=_e.QueryDelegatorValidatorsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidators",Co).then(xo=>_e.QueryDelegatorValidatorsResponse.decode(new st.Reader(xo)))}DelegatorValidator(vo){const Co=_e.QueryDelegatorValidatorRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidator",Co).then(xo=>_e.QueryDelegatorValidatorResponse.decode(new st.Reader(xo)))}HistoricalInfo(vo){const Co=_e.QueryHistoricalInfoRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","HistoricalInfo",Co).then(xo=>_e.QueryHistoricalInfoResponse.decode(new st.Reader(xo)))}Pool(vo={}){const Co=_e.QueryPoolRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Pool",Co).then(xo=>_e.QueryPoolResponse.decode(new st.Reader(xo)))}Params(vo={}){const Co=_e.QueryParamsRequest.encode(vo).finish();return this.rpc.request("cosmos.staking.v1beta1.Query","Params",Co).then(xo=>_e.QueryParamsResponse.decode(new st.Reader(xo)))}}_e.QueryClientImpl=So})(query$1);var __importDefault$a=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(queries$2,"__esModule",{value:!0}),queries$2.setupStakingExtension=void 0;const query_1$1=query$1,long_1$6=__importDefault$a(long),queryclient_1$2=queryclient$1;function setupStakingExtension(_e){const cr=(0,queryclient_1$2.createProtobufRpcClient)(_e),gr=new query_1$1.QueryClientImpl(cr);return{staking:{delegation:async(Cr,Vr)=>await gr.Delegation({delegatorAddr:Cr,validatorAddr:Vr}),delegatorDelegations:async(Cr,Vr)=>await gr.DelegatorDelegations({delegatorAddr:Cr,pagination:(0,queryclient_1$2.createPagination)(Vr)}),delegatorUnbondingDelegations:async(Cr,Vr)=>await gr.DelegatorUnbondingDelegations({delegatorAddr:Cr,pagination:(0,queryclient_1$2.createPagination)(Vr)}),delegatorValidator:async(Cr,Vr)=>await gr.DelegatorValidator({delegatorAddr:Cr,validatorAddr:Vr}),delegatorValidators:async(Cr,Vr)=>await gr.DelegatorValidators({delegatorAddr:Cr,pagination:(0,queryclient_1$2.createPagination)(Vr)}),historicalInfo:async Cr=>await gr.HistoricalInfo({height:long_1$6.default.fromNumber(Cr,!0)}),params:async()=>await gr.Params({}),pool:async()=>await gr.Pool({}),redelegations:async(Cr,Vr,tt,nt)=>await gr.Redelegations({delegatorAddr:Cr,srcValidatorAddr:Vr,dstValidatorAddr:tt,pagination:(0,queryclient_1$2.createPagination)(nt)}),unbondingDelegation:async(Cr,Vr)=>await gr.UnbondingDelegation({delegatorAddr:Cr,validatorAddr:Vr}),validator:async Cr=>await gr.Validator({validatorAddr:Cr}),validatorDelegations:async(Cr,Vr)=>await gr.ValidatorDelegations({validatorAddr:Cr,pagination:(0,queryclient_1$2.createPagination)(Vr)}),validators:async(Cr,Vr)=>await gr.Validators({status:Cr,pagination:(0,queryclient_1$2.createPagination)(Vr)}),validatorUnbondingDelegations:async(Cr,Vr)=>await gr.ValidatorUnbondingDelegations({validatorAddr:Cr,pagination:(0,queryclient_1$2.createPagination)(Vr)})}}}queries$2.setupStakingExtension=setupStakingExtension;var queries$1={},service={},abci={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(St,Ot,uo,go){go===void 0&&(go=uo);var bo=Object.getOwnPropertyDescriptor(Ot,uo);(!bo||("get"in bo?!Ot.__esModule:bo.writable||bo.configurable))&&(bo={enumerable:!0,get:function(){return Ot[uo]}}),Object.defineProperty(St,go,bo)}:function(St,Ot,uo,go){go===void 0&&(go=uo),St[go]=Ot[uo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(St,Ot){Object.defineProperty(St,"default",{enumerable:!0,value:Ot})}:function(St,Ot){St.default=Ot}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(St){if(St&&St.__esModule)return St;var Ot={};if(St!=null)for(var uo in St)uo!=="default"&&Object.prototype.hasOwnProperty.call(St,uo)&&cr(Ot,St,uo);return gr(Ot,St),Ot};Object.defineProperty(_e,"__esModule",{value:!0}),_e.SearchTxsResult=_e.TxMsgData=_e.MsgData=_e.SimulationResponse=_e.Result=_e.GasInfo=_e.Attribute=_e.StringEvent=_e.ABCIMessageLog=_e.TxResponse=_e.protobufPackage=void 0;const Vr=any,tt=types$4,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.base.abci.v1beta1";function dt(){return{height:nt.Long.ZERO,txhash:"",codespace:"",code:0,data:"",rawLog:"",logs:[],info:"",gasWanted:nt.Long.ZERO,gasUsed:nt.Long.ZERO,tx:void 0,timestamp:"",events:[]}}_e.TxResponse={encode(St,Ot=st.Writer.create()){St.height.isZero()||Ot.uint32(8).int64(St.height),St.txhash!==""&&Ot.uint32(18).string(St.txhash),St.codespace!==""&&Ot.uint32(26).string(St.codespace),St.code!==0&&Ot.uint32(32).uint32(St.code),St.data!==""&&Ot.uint32(42).string(St.data),St.rawLog!==""&&Ot.uint32(50).string(St.rawLog);for(const uo of St.logs)_e.ABCIMessageLog.encode(uo,Ot.uint32(58).fork()).ldelim();St.info!==""&&Ot.uint32(66).string(St.info),St.gasWanted.isZero()||Ot.uint32(72).int64(St.gasWanted),St.gasUsed.isZero()||Ot.uint32(80).int64(St.gasUsed),St.tx!==void 0&&Vr.Any.encode(St.tx,Ot.uint32(90).fork()).ldelim(),St.timestamp!==""&&Ot.uint32(98).string(St.timestamp);for(const uo of St.events)tt.Event.encode(uo,Ot.uint32(106).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=dt();for(;uo.pos>>3){case 1:bo.height=uo.int64();break;case 2:bo.txhash=uo.string();break;case 3:bo.codespace=uo.string();break;case 4:bo.code=uo.uint32();break;case 5:bo.data=uo.string();break;case 6:bo.rawLog=uo.string();break;case 7:bo.logs.push(_e.ABCIMessageLog.decode(uo,uo.uint32()));break;case 8:bo.info=uo.string();break;case 9:bo.gasWanted=uo.int64();break;case 10:bo.gasUsed=uo.int64();break;case 11:bo.tx=Vr.Any.decode(uo,uo.uint32());break;case 12:bo.timestamp=uo.string();break;case 13:bo.events.push(tt.Event.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{height:(0,nt.isSet)(St.height)?nt.Long.fromValue(St.height):nt.Long.ZERO,txhash:(0,nt.isSet)(St.txhash)?String(St.txhash):"",codespace:(0,nt.isSet)(St.codespace)?String(St.codespace):"",code:(0,nt.isSet)(St.code)?Number(St.code):0,data:(0,nt.isSet)(St.data)?String(St.data):"",rawLog:(0,nt.isSet)(St.rawLog)?String(St.rawLog):"",logs:Array.isArray(St==null?void 0:St.logs)?St.logs.map(Ot=>_e.ABCIMessageLog.fromJSON(Ot)):[],info:(0,nt.isSet)(St.info)?String(St.info):"",gasWanted:(0,nt.isSet)(St.gasWanted)?nt.Long.fromValue(St.gasWanted):nt.Long.ZERO,gasUsed:(0,nt.isSet)(St.gasUsed)?nt.Long.fromValue(St.gasUsed):nt.Long.ZERO,tx:(0,nt.isSet)(St.tx)?Vr.Any.fromJSON(St.tx):void 0,timestamp:(0,nt.isSet)(St.timestamp)?String(St.timestamp):"",events:Array.isArray(St==null?void 0:St.events)?St.events.map(Ot=>tt.Event.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.height!==void 0&&(Ot.height=(St.height||nt.Long.ZERO).toString()),St.txhash!==void 0&&(Ot.txhash=St.txhash),St.codespace!==void 0&&(Ot.codespace=St.codespace),St.code!==void 0&&(Ot.code=Math.round(St.code)),St.data!==void 0&&(Ot.data=St.data),St.rawLog!==void 0&&(Ot.rawLog=St.rawLog),St.logs?Ot.logs=St.logs.map(uo=>uo?_e.ABCIMessageLog.toJSON(uo):void 0):Ot.logs=[],St.info!==void 0&&(Ot.info=St.info),St.gasWanted!==void 0&&(Ot.gasWanted=(St.gasWanted||nt.Long.ZERO).toString()),St.gasUsed!==void 0&&(Ot.gasUsed=(St.gasUsed||nt.Long.ZERO).toString()),St.tx!==void 0&&(Ot.tx=St.tx?Vr.Any.toJSON(St.tx):void 0),St.timestamp!==void 0&&(Ot.timestamp=St.timestamp),St.events?Ot.events=St.events.map(uo=>uo?tt.Event.toJSON(uo):void 0):Ot.events=[],Ot},fromPartial(St){var uo,go;const Ot=dt();return Ot.height=St.height!==void 0&&St.height!==null?nt.Long.fromValue(St.height):nt.Long.ZERO,Ot.txhash=St.txhash??"",Ot.codespace=St.codespace??"",Ot.code=St.code??0,Ot.data=St.data??"",Ot.rawLog=St.rawLog??"",Ot.logs=((uo=St.logs)==null?void 0:uo.map(bo=>_e.ABCIMessageLog.fromPartial(bo)))||[],Ot.info=St.info??"",Ot.gasWanted=St.gasWanted!==void 0&&St.gasWanted!==null?nt.Long.fromValue(St.gasWanted):nt.Long.ZERO,Ot.gasUsed=St.gasUsed!==void 0&&St.gasUsed!==null?nt.Long.fromValue(St.gasUsed):nt.Long.ZERO,Ot.tx=St.tx!==void 0&&St.tx!==null?Vr.Any.fromPartial(St.tx):void 0,Ot.timestamp=St.timestamp??"",Ot.events=((go=St.events)==null?void 0:go.map(bo=>tt.Event.fromPartial(bo)))||[],Ot}};function kt(){return{msgIndex:0,log:"",events:[]}}_e.ABCIMessageLog={encode(St,Ot=st.Writer.create()){St.msgIndex!==0&&Ot.uint32(8).uint32(St.msgIndex),St.log!==""&&Ot.uint32(18).string(St.log);for(const uo of St.events)_e.StringEvent.encode(uo,Ot.uint32(26).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=kt();for(;uo.pos>>3){case 1:bo.msgIndex=uo.uint32();break;case 2:bo.log=uo.string();break;case 3:bo.events.push(_e.StringEvent.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{msgIndex:(0,nt.isSet)(St.msgIndex)?Number(St.msgIndex):0,log:(0,nt.isSet)(St.log)?String(St.log):"",events:Array.isArray(St==null?void 0:St.events)?St.events.map(Ot=>_e.StringEvent.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.msgIndex!==void 0&&(Ot.msgIndex=Math.round(St.msgIndex)),St.log!==void 0&&(Ot.log=St.log),St.events?Ot.events=St.events.map(uo=>uo?_e.StringEvent.toJSON(uo):void 0):Ot.events=[],Ot},fromPartial(St){var uo;const Ot=kt();return Ot.msgIndex=St.msgIndex??0,Ot.log=St.log??"",Ot.events=((uo=St.events)==null?void 0:uo.map(go=>_e.StringEvent.fromPartial(go)))||[],Ot}};function qt(){return{type:"",attributes:[]}}_e.StringEvent={encode(St,Ot=st.Writer.create()){St.type!==""&&Ot.uint32(10).string(St.type);for(const uo of St.attributes)_e.Attribute.encode(uo,Ot.uint32(18).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=qt();for(;uo.pos>>3){case 1:bo.type=uo.string();break;case 2:bo.attributes.push(_e.Attribute.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{type:(0,nt.isSet)(St.type)?String(St.type):"",attributes:Array.isArray(St==null?void 0:St.attributes)?St.attributes.map(Ot=>_e.Attribute.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.type!==void 0&&(Ot.type=St.type),St.attributes?Ot.attributes=St.attributes.map(uo=>uo?_e.Attribute.toJSON(uo):void 0):Ot.attributes=[],Ot},fromPartial(St){var uo;const Ot=qt();return Ot.type=St.type??"",Ot.attributes=((uo=St.attributes)==null?void 0:uo.map(go=>_e.Attribute.fromPartial(go)))||[],Ot}};function ro(){return{key:"",value:""}}_e.Attribute={encode(St,Ot=st.Writer.create()){return St.key!==""&&Ot.uint32(10).string(St.key),St.value!==""&&Ot.uint32(18).string(St.value),Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=ro();for(;uo.pos>>3){case 1:bo.key=uo.string();break;case 2:bo.value=uo.string();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{key:(0,nt.isSet)(St.key)?String(St.key):"",value:(0,nt.isSet)(St.value)?String(St.value):""}},toJSON(St){const Ot={};return St.key!==void 0&&(Ot.key=St.key),St.value!==void 0&&(Ot.value=St.value),Ot},fromPartial(St){const Ot=ro();return Ot.key=St.key??"",Ot.value=St.value??"",Ot}};function ht(){return{gasWanted:nt.Long.UZERO,gasUsed:nt.Long.UZERO}}_e.GasInfo={encode(St,Ot=st.Writer.create()){return St.gasWanted.isZero()||Ot.uint32(8).uint64(St.gasWanted),St.gasUsed.isZero()||Ot.uint32(16).uint64(St.gasUsed),Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=ht();for(;uo.pos>>3){case 1:bo.gasWanted=uo.uint64();break;case 2:bo.gasUsed=uo.uint64();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{gasWanted:(0,nt.isSet)(St.gasWanted)?nt.Long.fromValue(St.gasWanted):nt.Long.UZERO,gasUsed:(0,nt.isSet)(St.gasUsed)?nt.Long.fromValue(St.gasUsed):nt.Long.UZERO}},toJSON(St){const Ot={};return St.gasWanted!==void 0&&(Ot.gasWanted=(St.gasWanted||nt.Long.UZERO).toString()),St.gasUsed!==void 0&&(Ot.gasUsed=(St.gasUsed||nt.Long.UZERO).toString()),Ot},fromPartial(St){const Ot=ht();return Ot.gasWanted=St.gasWanted!==void 0&&St.gasWanted!==null?nt.Long.fromValue(St.gasWanted):nt.Long.UZERO,Ot.gasUsed=St.gasUsed!==void 0&&St.gasUsed!==null?nt.Long.fromValue(St.gasUsed):nt.Long.UZERO,Ot}};function po(){return{data:new Uint8Array,log:"",events:[],msgResponses:[]}}_e.Result={encode(St,Ot=st.Writer.create()){St.data.length!==0&&Ot.uint32(10).bytes(St.data),St.log!==""&&Ot.uint32(18).string(St.log);for(const uo of St.events)tt.Event.encode(uo,Ot.uint32(26).fork()).ldelim();for(const uo of St.msgResponses)Vr.Any.encode(uo,Ot.uint32(34).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=po();for(;uo.pos>>3){case 1:bo.data=uo.bytes();break;case 2:bo.log=uo.string();break;case 3:bo.events.push(tt.Event.decode(uo,uo.uint32()));break;case 4:bo.msgResponses.push(Vr.Any.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{data:(0,nt.isSet)(St.data)?(0,nt.bytesFromBase64)(St.data):new Uint8Array,log:(0,nt.isSet)(St.log)?String(St.log):"",events:Array.isArray(St==null?void 0:St.events)?St.events.map(Ot=>tt.Event.fromJSON(Ot)):[],msgResponses:Array.isArray(St==null?void 0:St.msgResponses)?St.msgResponses.map(Ot=>Vr.Any.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.data!==void 0&&(Ot.data=(0,nt.base64FromBytes)(St.data!==void 0?St.data:new Uint8Array)),St.log!==void 0&&(Ot.log=St.log),St.events?Ot.events=St.events.map(uo=>uo?tt.Event.toJSON(uo):void 0):Ot.events=[],St.msgResponses?Ot.msgResponses=St.msgResponses.map(uo=>uo?Vr.Any.toJSON(uo):void 0):Ot.msgResponses=[],Ot},fromPartial(St){var uo,go;const Ot=po();return Ot.data=St.data??new Uint8Array,Ot.log=St.log??"",Ot.events=((uo=St.events)==null?void 0:uo.map(bo=>tt.Event.fromPartial(bo)))||[],Ot.msgResponses=((go=St.msgResponses)==null?void 0:go.map(bo=>Vr.Any.fromPartial(bo)))||[],Ot}};function no(){return{gasInfo:void 0,result:void 0}}_e.SimulationResponse={encode(St,Ot=st.Writer.create()){return St.gasInfo!==void 0&&_e.GasInfo.encode(St.gasInfo,Ot.uint32(10).fork()).ldelim(),St.result!==void 0&&_e.Result.encode(St.result,Ot.uint32(18).fork()).ldelim(),Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=no();for(;uo.pos>>3){case 1:bo.gasInfo=_e.GasInfo.decode(uo,uo.uint32());break;case 2:bo.result=_e.Result.decode(uo,uo.uint32());break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{gasInfo:(0,nt.isSet)(St.gasInfo)?_e.GasInfo.fromJSON(St.gasInfo):void 0,result:(0,nt.isSet)(St.result)?_e.Result.fromJSON(St.result):void 0}},toJSON(St){const Ot={};return St.gasInfo!==void 0&&(Ot.gasInfo=St.gasInfo?_e.GasInfo.toJSON(St.gasInfo):void 0),St.result!==void 0&&(Ot.result=St.result?_e.Result.toJSON(St.result):void 0),Ot},fromPartial(St){const Ot=no();return Ot.gasInfo=St.gasInfo!==void 0&&St.gasInfo!==null?_e.GasInfo.fromPartial(St.gasInfo):void 0,Ot.result=St.result!==void 0&&St.result!==null?_e.Result.fromPartial(St.result):void 0,Ot}};function Nt(){return{msgType:"",data:new Uint8Array}}_e.MsgData={encode(St,Ot=st.Writer.create()){return St.msgType!==""&&Ot.uint32(10).string(St.msgType),St.data.length!==0&&Ot.uint32(18).bytes(St.data),Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=Nt();for(;uo.pos>>3){case 1:bo.msgType=uo.string();break;case 2:bo.data=uo.bytes();break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{msgType:(0,nt.isSet)(St.msgType)?String(St.msgType):"",data:(0,nt.isSet)(St.data)?(0,nt.bytesFromBase64)(St.data):new Uint8Array}},toJSON(St){const Ot={};return St.msgType!==void 0&&(Ot.msgType=St.msgType),St.data!==void 0&&(Ot.data=(0,nt.base64FromBytes)(St.data!==void 0?St.data:new Uint8Array)),Ot},fromPartial(St){const Ot=Nt();return Ot.msgType=St.msgType??"",Ot.data=St.data??new Uint8Array,Ot}};function eo(){return{data:[],msgResponses:[]}}_e.TxMsgData={encode(St,Ot=st.Writer.create()){for(const uo of St.data)_e.MsgData.encode(uo,Ot.uint32(10).fork()).ldelim();for(const uo of St.msgResponses)Vr.Any.encode(uo,Ot.uint32(18).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=eo();for(;uo.pos>>3){case 1:bo.data.push(_e.MsgData.decode(uo,uo.uint32()));break;case 2:bo.msgResponses.push(Vr.Any.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{data:Array.isArray(St==null?void 0:St.data)?St.data.map(Ot=>_e.MsgData.fromJSON(Ot)):[],msgResponses:Array.isArray(St==null?void 0:St.msgResponses)?St.msgResponses.map(Ot=>Vr.Any.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.data?Ot.data=St.data.map(uo=>uo?_e.MsgData.toJSON(uo):void 0):Ot.data=[],St.msgResponses?Ot.msgResponses=St.msgResponses.map(uo=>uo?Vr.Any.toJSON(uo):void 0):Ot.msgResponses=[],Ot},fromPartial(St){var uo,go;const Ot=eo();return Ot.data=((uo=St.data)==null?void 0:uo.map(bo=>_e.MsgData.fromPartial(bo)))||[],Ot.msgResponses=((go=St.msgResponses)==null?void 0:go.map(bo=>Vr.Any.fromPartial(bo)))||[],Ot}};function Wt(){return{totalCount:nt.Long.UZERO,count:nt.Long.UZERO,pageNumber:nt.Long.UZERO,pageTotal:nt.Long.UZERO,limit:nt.Long.UZERO,txs:[]}}_e.SearchTxsResult={encode(St,Ot=st.Writer.create()){St.totalCount.isZero()||Ot.uint32(8).uint64(St.totalCount),St.count.isZero()||Ot.uint32(16).uint64(St.count),St.pageNumber.isZero()||Ot.uint32(24).uint64(St.pageNumber),St.pageTotal.isZero()||Ot.uint32(32).uint64(St.pageTotal),St.limit.isZero()||Ot.uint32(40).uint64(St.limit);for(const uo of St.txs)_e.TxResponse.encode(uo,Ot.uint32(50).fork()).ldelim();return Ot},decode(St,Ot){const uo=St instanceof st.Reader?St:new st.Reader(St);let go=Ot===void 0?uo.len:uo.pos+Ot;const bo=Wt();for(;uo.pos>>3){case 1:bo.totalCount=uo.uint64();break;case 2:bo.count=uo.uint64();break;case 3:bo.pageNumber=uo.uint64();break;case 4:bo.pageTotal=uo.uint64();break;case 5:bo.limit=uo.uint64();break;case 6:bo.txs.push(_e.TxResponse.decode(uo,uo.uint32()));break;default:uo.skipType(oo&7);break}}return bo},fromJSON(St){return{totalCount:(0,nt.isSet)(St.totalCount)?nt.Long.fromValue(St.totalCount):nt.Long.UZERO,count:(0,nt.isSet)(St.count)?nt.Long.fromValue(St.count):nt.Long.UZERO,pageNumber:(0,nt.isSet)(St.pageNumber)?nt.Long.fromValue(St.pageNumber):nt.Long.UZERO,pageTotal:(0,nt.isSet)(St.pageTotal)?nt.Long.fromValue(St.pageTotal):nt.Long.UZERO,limit:(0,nt.isSet)(St.limit)?nt.Long.fromValue(St.limit):nt.Long.UZERO,txs:Array.isArray(St==null?void 0:St.txs)?St.txs.map(Ot=>_e.TxResponse.fromJSON(Ot)):[]}},toJSON(St){const Ot={};return St.totalCount!==void 0&&(Ot.totalCount=(St.totalCount||nt.Long.UZERO).toString()),St.count!==void 0&&(Ot.count=(St.count||nt.Long.UZERO).toString()),St.pageNumber!==void 0&&(Ot.pageNumber=(St.pageNumber||nt.Long.UZERO).toString()),St.pageTotal!==void 0&&(Ot.pageTotal=(St.pageTotal||nt.Long.UZERO).toString()),St.limit!==void 0&&(Ot.limit=(St.limit||nt.Long.UZERO).toString()),St.txs?Ot.txs=St.txs.map(uo=>uo?_e.TxResponse.toJSON(uo):void 0):Ot.txs=[],Ot},fromPartial(St){var uo;const Ot=Wt();return Ot.totalCount=St.totalCount!==void 0&&St.totalCount!==null?nt.Long.fromValue(St.totalCount):nt.Long.UZERO,Ot.count=St.count!==void 0&&St.count!==null?nt.Long.fromValue(St.count):nt.Long.UZERO,Ot.pageNumber=St.pageNumber!==void 0&&St.pageNumber!==null?nt.Long.fromValue(St.pageNumber):nt.Long.UZERO,Ot.pageTotal=St.pageTotal!==void 0&&St.pageTotal!==null?nt.Long.fromValue(St.pageTotal):nt.Long.UZERO,Ot.limit=St.limit!==void 0&&St.limit!==null?nt.Long.fromValue(St.limit):nt.Long.UZERO,Ot.txs=((uo=St.txs)==null?void 0:uo.map(go=>_e.TxResponse.fromPartial(go)))||[],Ot}}})(abci);var block={},evidence={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(po,no,Nt,eo){eo===void 0&&(eo=Nt);var Wt=Object.getOwnPropertyDescriptor(no,Nt);(!Wt||("get"in Wt?!no.__esModule:Wt.writable||Wt.configurable))&&(Wt={enumerable:!0,get:function(){return no[Nt]}}),Object.defineProperty(po,eo,Wt)}:function(po,no,Nt,eo){eo===void 0&&(eo=Nt),po[eo]=no[Nt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(po,no){Object.defineProperty(po,"default",{enumerable:!0,value:no})}:function(po,no){po.default=no}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(po){if(po&&po.__esModule)return po;var no={};if(po!=null)for(var Nt in po)Nt!=="default"&&Object.prototype.hasOwnProperty.call(po,Nt)&&cr(no,po,Nt);return gr(no,po),no};Object.defineProperty(_e,"__esModule",{value:!0}),_e.EvidenceList=_e.LightClientAttackEvidence=_e.DuplicateVoteEvidence=_e.Evidence=_e.protobufPackage=void 0;const Vr=types$6,tt=timestamp,nt=validator$4,st=helpers,dt=Cr(minimal);_e.protobufPackage="tendermint.types";function kt(){return{duplicateVoteEvidence:void 0,lightClientAttackEvidence:void 0}}_e.Evidence={encode(po,no=dt.Writer.create()){return po.duplicateVoteEvidence!==void 0&&_e.DuplicateVoteEvidence.encode(po.duplicateVoteEvidence,no.uint32(10).fork()).ldelim(),po.lightClientAttackEvidence!==void 0&&_e.LightClientAttackEvidence.encode(po.lightClientAttackEvidence,no.uint32(18).fork()).ldelim(),no},decode(po,no){const Nt=po instanceof dt.Reader?po:new dt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=kt();for(;Nt.pos>>3){case 1:Wt.duplicateVoteEvidence=_e.DuplicateVoteEvidence.decode(Nt,Nt.uint32());break;case 2:Wt.lightClientAttackEvidence=_e.LightClientAttackEvidence.decode(Nt,Nt.uint32());break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{duplicateVoteEvidence:(0,st.isSet)(po.duplicateVoteEvidence)?_e.DuplicateVoteEvidence.fromJSON(po.duplicateVoteEvidence):void 0,lightClientAttackEvidence:(0,st.isSet)(po.lightClientAttackEvidence)?_e.LightClientAttackEvidence.fromJSON(po.lightClientAttackEvidence):void 0}},toJSON(po){const no={};return po.duplicateVoteEvidence!==void 0&&(no.duplicateVoteEvidence=po.duplicateVoteEvidence?_e.DuplicateVoteEvidence.toJSON(po.duplicateVoteEvidence):void 0),po.lightClientAttackEvidence!==void 0&&(no.lightClientAttackEvidence=po.lightClientAttackEvidence?_e.LightClientAttackEvidence.toJSON(po.lightClientAttackEvidence):void 0),no},fromPartial(po){const no=kt();return no.duplicateVoteEvidence=po.duplicateVoteEvidence!==void 0&&po.duplicateVoteEvidence!==null?_e.DuplicateVoteEvidence.fromPartial(po.duplicateVoteEvidence):void 0,no.lightClientAttackEvidence=po.lightClientAttackEvidence!==void 0&&po.lightClientAttackEvidence!==null?_e.LightClientAttackEvidence.fromPartial(po.lightClientAttackEvidence):void 0,no}};function qt(){return{voteA:void 0,voteB:void 0,totalVotingPower:st.Long.ZERO,validatorPower:st.Long.ZERO,timestamp:void 0}}_e.DuplicateVoteEvidence={encode(po,no=dt.Writer.create()){return po.voteA!==void 0&&Vr.Vote.encode(po.voteA,no.uint32(10).fork()).ldelim(),po.voteB!==void 0&&Vr.Vote.encode(po.voteB,no.uint32(18).fork()).ldelim(),po.totalVotingPower.isZero()||no.uint32(24).int64(po.totalVotingPower),po.validatorPower.isZero()||no.uint32(32).int64(po.validatorPower),po.timestamp!==void 0&&tt.Timestamp.encode(po.timestamp,no.uint32(42).fork()).ldelim(),no},decode(po,no){const Nt=po instanceof dt.Reader?po:new dt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=qt();for(;Nt.pos>>3){case 1:Wt.voteA=Vr.Vote.decode(Nt,Nt.uint32());break;case 2:Wt.voteB=Vr.Vote.decode(Nt,Nt.uint32());break;case 3:Wt.totalVotingPower=Nt.int64();break;case 4:Wt.validatorPower=Nt.int64();break;case 5:Wt.timestamp=tt.Timestamp.decode(Nt,Nt.uint32());break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{voteA:(0,st.isSet)(po.voteA)?Vr.Vote.fromJSON(po.voteA):void 0,voteB:(0,st.isSet)(po.voteB)?Vr.Vote.fromJSON(po.voteB):void 0,totalVotingPower:(0,st.isSet)(po.totalVotingPower)?st.Long.fromValue(po.totalVotingPower):st.Long.ZERO,validatorPower:(0,st.isSet)(po.validatorPower)?st.Long.fromValue(po.validatorPower):st.Long.ZERO,timestamp:(0,st.isSet)(po.timestamp)?(0,st.fromJsonTimestamp)(po.timestamp):void 0}},toJSON(po){const no={};return po.voteA!==void 0&&(no.voteA=po.voteA?Vr.Vote.toJSON(po.voteA):void 0),po.voteB!==void 0&&(no.voteB=po.voteB?Vr.Vote.toJSON(po.voteB):void 0),po.totalVotingPower!==void 0&&(no.totalVotingPower=(po.totalVotingPower||st.Long.ZERO).toString()),po.validatorPower!==void 0&&(no.validatorPower=(po.validatorPower||st.Long.ZERO).toString()),po.timestamp!==void 0&&(no.timestamp=(0,st.fromTimestamp)(po.timestamp).toISOString()),no},fromPartial(po){const no=qt();return no.voteA=po.voteA!==void 0&&po.voteA!==null?Vr.Vote.fromPartial(po.voteA):void 0,no.voteB=po.voteB!==void 0&&po.voteB!==null?Vr.Vote.fromPartial(po.voteB):void 0,no.totalVotingPower=po.totalVotingPower!==void 0&&po.totalVotingPower!==null?st.Long.fromValue(po.totalVotingPower):st.Long.ZERO,no.validatorPower=po.validatorPower!==void 0&&po.validatorPower!==null?st.Long.fromValue(po.validatorPower):st.Long.ZERO,no.timestamp=po.timestamp!==void 0&&po.timestamp!==null?tt.Timestamp.fromPartial(po.timestamp):void 0,no}};function ro(){return{conflictingBlock:void 0,commonHeight:st.Long.ZERO,byzantineValidators:[],totalVotingPower:st.Long.ZERO,timestamp:void 0}}_e.LightClientAttackEvidence={encode(po,no=dt.Writer.create()){po.conflictingBlock!==void 0&&Vr.LightBlock.encode(po.conflictingBlock,no.uint32(10).fork()).ldelim(),po.commonHeight.isZero()||no.uint32(16).int64(po.commonHeight);for(const Nt of po.byzantineValidators)nt.Validator.encode(Nt,no.uint32(26).fork()).ldelim();return po.totalVotingPower.isZero()||no.uint32(32).int64(po.totalVotingPower),po.timestamp!==void 0&&tt.Timestamp.encode(po.timestamp,no.uint32(42).fork()).ldelim(),no},decode(po,no){const Nt=po instanceof dt.Reader?po:new dt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=ro();for(;Nt.pos>>3){case 1:Wt.conflictingBlock=Vr.LightBlock.decode(Nt,Nt.uint32());break;case 2:Wt.commonHeight=Nt.int64();break;case 3:Wt.byzantineValidators.push(nt.Validator.decode(Nt,Nt.uint32()));break;case 4:Wt.totalVotingPower=Nt.int64();break;case 5:Wt.timestamp=tt.Timestamp.decode(Nt,Nt.uint32());break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{conflictingBlock:(0,st.isSet)(po.conflictingBlock)?Vr.LightBlock.fromJSON(po.conflictingBlock):void 0,commonHeight:(0,st.isSet)(po.commonHeight)?st.Long.fromValue(po.commonHeight):st.Long.ZERO,byzantineValidators:Array.isArray(po==null?void 0:po.byzantineValidators)?po.byzantineValidators.map(no=>nt.Validator.fromJSON(no)):[],totalVotingPower:(0,st.isSet)(po.totalVotingPower)?st.Long.fromValue(po.totalVotingPower):st.Long.ZERO,timestamp:(0,st.isSet)(po.timestamp)?(0,st.fromJsonTimestamp)(po.timestamp):void 0}},toJSON(po){const no={};return po.conflictingBlock!==void 0&&(no.conflictingBlock=po.conflictingBlock?Vr.LightBlock.toJSON(po.conflictingBlock):void 0),po.commonHeight!==void 0&&(no.commonHeight=(po.commonHeight||st.Long.ZERO).toString()),po.byzantineValidators?no.byzantineValidators=po.byzantineValidators.map(Nt=>Nt?nt.Validator.toJSON(Nt):void 0):no.byzantineValidators=[],po.totalVotingPower!==void 0&&(no.totalVotingPower=(po.totalVotingPower||st.Long.ZERO).toString()),po.timestamp!==void 0&&(no.timestamp=(0,st.fromTimestamp)(po.timestamp).toISOString()),no},fromPartial(po){var Nt;const no=ro();return no.conflictingBlock=po.conflictingBlock!==void 0&&po.conflictingBlock!==null?Vr.LightBlock.fromPartial(po.conflictingBlock):void 0,no.commonHeight=po.commonHeight!==void 0&&po.commonHeight!==null?st.Long.fromValue(po.commonHeight):st.Long.ZERO,no.byzantineValidators=((Nt=po.byzantineValidators)==null?void 0:Nt.map(eo=>nt.Validator.fromPartial(eo)))||[],no.totalVotingPower=po.totalVotingPower!==void 0&&po.totalVotingPower!==null?st.Long.fromValue(po.totalVotingPower):st.Long.ZERO,no.timestamp=po.timestamp!==void 0&&po.timestamp!==null?tt.Timestamp.fromPartial(po.timestamp):void 0,no}};function ht(){return{evidence:[]}}_e.EvidenceList={encode(po,no=dt.Writer.create()){for(const Nt of po.evidence)_e.Evidence.encode(Nt,no.uint32(10).fork()).ldelim();return no},decode(po,no){const Nt=po instanceof dt.Reader?po:new dt.Reader(po);let eo=no===void 0?Nt.len:Nt.pos+no;const Wt=ht();for(;Nt.pos>>3){case 1:Wt.evidence.push(_e.Evidence.decode(Nt,Nt.uint32()));break;default:Nt.skipType(St&7);break}}return Wt},fromJSON(po){return{evidence:Array.isArray(po==null?void 0:po.evidence)?po.evidence.map(no=>_e.Evidence.fromJSON(no)):[]}},toJSON(po){const no={};return po.evidence?no.evidence=po.evidence.map(Nt=>Nt?_e.Evidence.toJSON(Nt):void 0):no.evidence=[],no},fromPartial(po){var Nt;const no=ht();return no.evidence=((Nt=po.evidence)==null?void 0:Nt.map(eo=>_e.Evidence.fromPartial(eo)))||[],no}}})(evidence);var __createBinding$5=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$5=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$5=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$5(cr,_e,gr);return __setModuleDefault$5(cr,_e),cr};Object.defineProperty(block,"__esModule",{value:!0}),block.Block=block.protobufPackage=void 0;const types_1$5=types$6,evidence_1=evidence,_m0=__importStar$5(minimal),helpers_1=helpers;block.protobufPackage="tendermint.types";function createBaseBlock(){return{header:void 0,data:void 0,evidence:void 0,lastCommit:void 0}}block.Block={encode(_e,cr=_m0.Writer.create()){return _e.header!==void 0&&types_1$5.Header.encode(_e.header,cr.uint32(10).fork()).ldelim(),_e.data!==void 0&&types_1$5.Data.encode(_e.data,cr.uint32(18).fork()).ldelim(),_e.evidence!==void 0&&evidence_1.EvidenceList.encode(_e.evidence,cr.uint32(26).fork()).ldelim(),_e.lastCommit!==void 0&&types_1$5.Commit.encode(_e.lastCommit,cr.uint32(34).fork()).ldelim(),cr},decode(_e,cr){const gr=_e instanceof _m0.Reader?_e:new _m0.Reader(_e);let Cr=cr===void 0?gr.len:gr.pos+cr;const Vr=createBaseBlock();for(;gr.pos>>3){case 1:Vr.header=types_1$5.Header.decode(gr,gr.uint32());break;case 2:Vr.data=types_1$5.Data.decode(gr,gr.uint32());break;case 3:Vr.evidence=evidence_1.EvidenceList.decode(gr,gr.uint32());break;case 4:Vr.lastCommit=types_1$5.Commit.decode(gr,gr.uint32());break;default:gr.skipType(tt&7);break}}return Vr},fromJSON(_e){return{header:(0,helpers_1.isSet)(_e.header)?types_1$5.Header.fromJSON(_e.header):void 0,data:(0,helpers_1.isSet)(_e.data)?types_1$5.Data.fromJSON(_e.data):void 0,evidence:(0,helpers_1.isSet)(_e.evidence)?evidence_1.EvidenceList.fromJSON(_e.evidence):void 0,lastCommit:(0,helpers_1.isSet)(_e.lastCommit)?types_1$5.Commit.fromJSON(_e.lastCommit):void 0}},toJSON(_e){const cr={};return _e.header!==void 0&&(cr.header=_e.header?types_1$5.Header.toJSON(_e.header):void 0),_e.data!==void 0&&(cr.data=_e.data?types_1$5.Data.toJSON(_e.data):void 0),_e.evidence!==void 0&&(cr.evidence=_e.evidence?evidence_1.EvidenceList.toJSON(_e.evidence):void 0),_e.lastCommit!==void 0&&(cr.lastCommit=_e.lastCommit?types_1$5.Commit.toJSON(_e.lastCommit):void 0),cr},fromPartial(_e){const cr=createBaseBlock();return cr.header=_e.header!==void 0&&_e.header!==null?types_1$5.Header.fromPartial(_e.header):void 0,cr.data=_e.data!==void 0&&_e.data!==null?types_1$5.Data.fromPartial(_e.data):void 0,cr.evidence=_e.evidence!==void 0&&_e.evidence!==null?evidence_1.EvidenceList.fromPartial(_e.evidence):void 0,cr.lastCommit=_e.lastCommit!==void 0&&_e.lastCommit!==null?types_1$5.Commit.fromPartial(_e.lastCommit):void 0,cr}},function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(So,Tt,vo,Co){Co===void 0&&(Co=vo);var xo=Object.getOwnPropertyDescriptor(Tt,vo);(!xo||("get"in xo?!Tt.__esModule:xo.writable||xo.configurable))&&(xo={enumerable:!0,get:function(){return Tt[vo]}}),Object.defineProperty(So,Co,xo)}:function(So,Tt,vo,Co){Co===void 0&&(Co=vo),So[Co]=Tt[vo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(So,Tt){Object.defineProperty(So,"default",{enumerable:!0,value:Tt})}:function(So,Tt){So.default=Tt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(So){if(So&&So.__esModule)return So;var Tt={};if(So!=null)for(var vo in So)vo!=="default"&&Object.prototype.hasOwnProperty.call(So,vo)&&cr(Tt,So,vo);return gr(Tt,So),Tt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ServiceClientImpl=_e.TxDecodeAminoResponse=_e.TxDecodeAminoRequest=_e.TxEncodeAminoResponse=_e.TxEncodeAminoRequest=_e.TxEncodeResponse=_e.TxEncodeRequest=_e.TxDecodeResponse=_e.TxDecodeRequest=_e.GetBlockWithTxsResponse=_e.GetBlockWithTxsRequest=_e.GetTxResponse=_e.GetTxRequest=_e.SimulateResponse=_e.SimulateRequest=_e.BroadcastTxResponse=_e.BroadcastTxRequest=_e.GetTxsEventResponse=_e.GetTxsEventRequest=_e.broadcastModeToJSON=_e.broadcastModeFromJSON=_e.BroadcastMode=_e.orderByToJSON=_e.orderByFromJSON=_e.OrderBy=_e.protobufPackage=void 0;const Vr=tx$e,tt=pagination,nt=abci,st=types$6,dt=block,kt=helpers,qt=Cr(minimal);_e.protobufPackage="cosmos.tx.v1beta1";var ro;(function(So){So[So.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",So[So.ORDER_BY_ASC=1]="ORDER_BY_ASC",So[So.ORDER_BY_DESC=2]="ORDER_BY_DESC",So[So.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ro=_e.OrderBy||(_e.OrderBy={}));function ht(So){switch(So){case 0:case"ORDER_BY_UNSPECIFIED":return ro.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return ro.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return ro.ORDER_BY_DESC;case-1:case"UNRECOGNIZED":default:return ro.UNRECOGNIZED}}_e.orderByFromJSON=ht;function po(So){switch(So){case ro.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case ro.ORDER_BY_ASC:return"ORDER_BY_ASC";case ro.ORDER_BY_DESC:return"ORDER_BY_DESC";case ro.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.orderByToJSON=po;var no;(function(So){So[So.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",So[So.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",So[So.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",So[So.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",So[So.UNRECOGNIZED=-1]="UNRECOGNIZED"})(no=_e.BroadcastMode||(_e.BroadcastMode={}));function Nt(So){switch(So){case 0:case"BROADCAST_MODE_UNSPECIFIED":return no.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return no.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return no.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return no.BROADCAST_MODE_ASYNC;case-1:case"UNRECOGNIZED":default:return no.UNRECOGNIZED}}_e.broadcastModeFromJSON=Nt;function eo(So){switch(So){case no.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case no.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case no.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case no.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";case no.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.broadcastModeToJSON=eo;function Wt(){return{events:[],pagination:void 0,orderBy:0,page:kt.Long.UZERO,limit:kt.Long.UZERO}}_e.GetTxsEventRequest={encode(So,Tt=qt.Writer.create()){for(const vo of So.events)Tt.uint32(10).string(vo);return So.pagination!==void 0&&tt.PageRequest.encode(So.pagination,Tt.uint32(18).fork()).ldelim(),So.orderBy!==0&&Tt.uint32(24).int32(So.orderBy),So.page.isZero()||Tt.uint32(32).uint64(So.page),So.limit.isZero()||Tt.uint32(40).uint64(So.limit),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=Wt();for(;vo.pos>>3){case 1:xo.events.push(vo.string());break;case 2:xo.pagination=tt.PageRequest.decode(vo,vo.uint32());break;case 3:xo.orderBy=vo.int32();break;case 4:xo.page=vo.uint64();break;case 5:xo.limit=vo.uint64();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{events:Array.isArray(So==null?void 0:So.events)?So.events.map(Tt=>String(Tt)):[],pagination:(0,kt.isSet)(So.pagination)?tt.PageRequest.fromJSON(So.pagination):void 0,orderBy:(0,kt.isSet)(So.orderBy)?ht(So.orderBy):0,page:(0,kt.isSet)(So.page)?kt.Long.fromValue(So.page):kt.Long.UZERO,limit:(0,kt.isSet)(So.limit)?kt.Long.fromValue(So.limit):kt.Long.UZERO}},toJSON(So){const Tt={};return So.events?Tt.events=So.events.map(vo=>vo):Tt.events=[],So.pagination!==void 0&&(Tt.pagination=So.pagination?tt.PageRequest.toJSON(So.pagination):void 0),So.orderBy!==void 0&&(Tt.orderBy=po(So.orderBy)),So.page!==void 0&&(Tt.page=(So.page||kt.Long.UZERO).toString()),So.limit!==void 0&&(Tt.limit=(So.limit||kt.Long.UZERO).toString()),Tt},fromPartial(So){var vo;const Tt=Wt();return Tt.events=((vo=So.events)==null?void 0:vo.map(Co=>Co))||[],Tt.pagination=So.pagination!==void 0&&So.pagination!==null?tt.PageRequest.fromPartial(So.pagination):void 0,Tt.orderBy=So.orderBy??0,Tt.page=So.page!==void 0&&So.page!==null?kt.Long.fromValue(So.page):kt.Long.UZERO,Tt.limit=So.limit!==void 0&&So.limit!==null?kt.Long.fromValue(So.limit):kt.Long.UZERO,Tt}};function St(){return{txs:[],txResponses:[],pagination:void 0,total:kt.Long.UZERO}}_e.GetTxsEventResponse={encode(So,Tt=qt.Writer.create()){for(const vo of So.txs)Vr.Tx.encode(vo,Tt.uint32(10).fork()).ldelim();for(const vo of So.txResponses)nt.TxResponse.encode(vo,Tt.uint32(18).fork()).ldelim();return So.pagination!==void 0&&tt.PageResponse.encode(So.pagination,Tt.uint32(26).fork()).ldelim(),So.total.isZero()||Tt.uint32(32).uint64(So.total),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=St();for(;vo.pos>>3){case 1:xo.txs.push(Vr.Tx.decode(vo,vo.uint32()));break;case 2:xo.txResponses.push(nt.TxResponse.decode(vo,vo.uint32()));break;case 3:xo.pagination=tt.PageResponse.decode(vo,vo.uint32());break;case 4:xo.total=vo.uint64();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{txs:Array.isArray(So==null?void 0:So.txs)?So.txs.map(Tt=>Vr.Tx.fromJSON(Tt)):[],txResponses:Array.isArray(So==null?void 0:So.txResponses)?So.txResponses.map(Tt=>nt.TxResponse.fromJSON(Tt)):[],pagination:(0,kt.isSet)(So.pagination)?tt.PageResponse.fromJSON(So.pagination):void 0,total:(0,kt.isSet)(So.total)?kt.Long.fromValue(So.total):kt.Long.UZERO}},toJSON(So){const Tt={};return So.txs?Tt.txs=So.txs.map(vo=>vo?Vr.Tx.toJSON(vo):void 0):Tt.txs=[],So.txResponses?Tt.txResponses=So.txResponses.map(vo=>vo?nt.TxResponse.toJSON(vo):void 0):Tt.txResponses=[],So.pagination!==void 0&&(Tt.pagination=So.pagination?tt.PageResponse.toJSON(So.pagination):void 0),So.total!==void 0&&(Tt.total=(So.total||kt.Long.UZERO).toString()),Tt},fromPartial(So){var vo,Co;const Tt=St();return Tt.txs=((vo=So.txs)==null?void 0:vo.map(xo=>Vr.Tx.fromPartial(xo)))||[],Tt.txResponses=((Co=So.txResponses)==null?void 0:Co.map(xo=>nt.TxResponse.fromPartial(xo)))||[],Tt.pagination=So.pagination!==void 0&&So.pagination!==null?tt.PageResponse.fromPartial(So.pagination):void 0,Tt.total=So.total!==void 0&&So.total!==null?kt.Long.fromValue(So.total):kt.Long.UZERO,Tt}};function Ot(){return{txBytes:new Uint8Array,mode:0}}_e.BroadcastTxRequest={encode(So,Tt=qt.Writer.create()){return So.txBytes.length!==0&&Tt.uint32(10).bytes(So.txBytes),So.mode!==0&&Tt.uint32(16).int32(So.mode),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=Ot();for(;vo.pos>>3){case 1:xo.txBytes=vo.bytes();break;case 2:xo.mode=vo.int32();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{txBytes:(0,kt.isSet)(So.txBytes)?(0,kt.bytesFromBase64)(So.txBytes):new Uint8Array,mode:(0,kt.isSet)(So.mode)?Nt(So.mode):0}},toJSON(So){const Tt={};return So.txBytes!==void 0&&(Tt.txBytes=(0,kt.base64FromBytes)(So.txBytes!==void 0?So.txBytes:new Uint8Array)),So.mode!==void 0&&(Tt.mode=eo(So.mode)),Tt},fromPartial(So){const Tt=Ot();return Tt.txBytes=So.txBytes??new Uint8Array,Tt.mode=So.mode??0,Tt}};function uo(){return{txResponse:void 0}}_e.BroadcastTxResponse={encode(So,Tt=qt.Writer.create()){return So.txResponse!==void 0&&nt.TxResponse.encode(So.txResponse,Tt.uint32(10).fork()).ldelim(),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=uo();for(;vo.pos>>3){case 1:xo.txResponse=nt.TxResponse.decode(vo,vo.uint32());break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{txResponse:(0,kt.isSet)(So.txResponse)?nt.TxResponse.fromJSON(So.txResponse):void 0}},toJSON(So){const Tt={};return So.txResponse!==void 0&&(Tt.txResponse=So.txResponse?nt.TxResponse.toJSON(So.txResponse):void 0),Tt},fromPartial(So){const Tt=uo();return Tt.txResponse=So.txResponse!==void 0&&So.txResponse!==null?nt.TxResponse.fromPartial(So.txResponse):void 0,Tt}};function go(){return{tx:void 0,txBytes:new Uint8Array}}_e.SimulateRequest={encode(So,Tt=qt.Writer.create()){return So.tx!==void 0&&Vr.Tx.encode(So.tx,Tt.uint32(10).fork()).ldelim(),So.txBytes.length!==0&&Tt.uint32(18).bytes(So.txBytes),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=go();for(;vo.pos>>3){case 1:xo.tx=Vr.Tx.decode(vo,vo.uint32());break;case 2:xo.txBytes=vo.bytes();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{tx:(0,kt.isSet)(So.tx)?Vr.Tx.fromJSON(So.tx):void 0,txBytes:(0,kt.isSet)(So.txBytes)?(0,kt.bytesFromBase64)(So.txBytes):new Uint8Array}},toJSON(So){const Tt={};return So.tx!==void 0&&(Tt.tx=So.tx?Vr.Tx.toJSON(So.tx):void 0),So.txBytes!==void 0&&(Tt.txBytes=(0,kt.base64FromBytes)(So.txBytes!==void 0?So.txBytes:new Uint8Array)),Tt},fromPartial(So){const Tt=go();return Tt.tx=So.tx!==void 0&&So.tx!==null?Vr.Tx.fromPartial(So.tx):void 0,Tt.txBytes=So.txBytes??new Uint8Array,Tt}};function bo(){return{gasInfo:void 0,result:void 0}}_e.SimulateResponse={encode(So,Tt=qt.Writer.create()){return So.gasInfo!==void 0&&nt.GasInfo.encode(So.gasInfo,Tt.uint32(10).fork()).ldelim(),So.result!==void 0&&nt.Result.encode(So.result,Tt.uint32(18).fork()).ldelim(),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=bo();for(;vo.pos>>3){case 1:xo.gasInfo=nt.GasInfo.decode(vo,vo.uint32());break;case 2:xo.result=nt.Result.decode(vo,vo.uint32());break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{gasInfo:(0,kt.isSet)(So.gasInfo)?nt.GasInfo.fromJSON(So.gasInfo):void 0,result:(0,kt.isSet)(So.result)?nt.Result.fromJSON(So.result):void 0}},toJSON(So){const Tt={};return So.gasInfo!==void 0&&(Tt.gasInfo=So.gasInfo?nt.GasInfo.toJSON(So.gasInfo):void 0),So.result!==void 0&&(Tt.result=So.result?nt.Result.toJSON(So.result):void 0),Tt},fromPartial(So){const Tt=bo();return Tt.gasInfo=So.gasInfo!==void 0&&So.gasInfo!==null?nt.GasInfo.fromPartial(So.gasInfo):void 0,Tt.result=So.result!==void 0&&So.result!==null?nt.Result.fromPartial(So.result):void 0,Tt}};function oo(){return{hash:""}}_e.GetTxRequest={encode(So,Tt=qt.Writer.create()){return So.hash!==""&&Tt.uint32(10).string(So.hash),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=oo();for(;vo.pos>>3){case 1:xo.hash=vo.string();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{hash:(0,kt.isSet)(So.hash)?String(So.hash):""}},toJSON(So){const Tt={};return So.hash!==void 0&&(Tt.hash=So.hash),Tt},fromPartial(So){const Tt=oo();return Tt.hash=So.hash??"",Tt}};function Ro(){return{tx:void 0,txResponse:void 0}}_e.GetTxResponse={encode(So,Tt=qt.Writer.create()){return So.tx!==void 0&&Vr.Tx.encode(So.tx,Tt.uint32(10).fork()).ldelim(),So.txResponse!==void 0&&nt.TxResponse.encode(So.txResponse,Tt.uint32(18).fork()).ldelim(),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=Ro();for(;vo.pos>>3){case 1:xo.tx=Vr.Tx.decode(vo,vo.uint32());break;case 2:xo.txResponse=nt.TxResponse.decode(vo,vo.uint32());break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{tx:(0,kt.isSet)(So.tx)?Vr.Tx.fromJSON(So.tx):void 0,txResponse:(0,kt.isSet)(So.txResponse)?nt.TxResponse.fromJSON(So.txResponse):void 0}},toJSON(So){const Tt={};return So.tx!==void 0&&(Tt.tx=So.tx?Vr.Tx.toJSON(So.tx):void 0),So.txResponse!==void 0&&(Tt.txResponse=So.txResponse?nt.TxResponse.toJSON(So.txResponse):void 0),Tt},fromPartial(So){const Tt=Ro();return Tt.tx=So.tx!==void 0&&So.tx!==null?Vr.Tx.fromPartial(So.tx):void 0,Tt.txResponse=So.txResponse!==void 0&&So.txResponse!==null?nt.TxResponse.fromPartial(So.txResponse):void 0,Tt}};function pt(){return{height:kt.Long.ZERO,pagination:void 0}}_e.GetBlockWithTxsRequest={encode(So,Tt=qt.Writer.create()){return So.height.isZero()||Tt.uint32(8).int64(So.height),So.pagination!==void 0&&tt.PageRequest.encode(So.pagination,Tt.uint32(18).fork()).ldelim(),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=pt();for(;vo.pos>>3){case 1:xo.height=vo.int64();break;case 2:xo.pagination=tt.PageRequest.decode(vo,vo.uint32());break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{height:(0,kt.isSet)(So.height)?kt.Long.fromValue(So.height):kt.Long.ZERO,pagination:(0,kt.isSet)(So.pagination)?tt.PageRequest.fromJSON(So.pagination):void 0}},toJSON(So){const Tt={};return So.height!==void 0&&(Tt.height=(So.height||kt.Long.ZERO).toString()),So.pagination!==void 0&&(Tt.pagination=So.pagination?tt.PageRequest.toJSON(So.pagination):void 0),Tt},fromPartial(So){const Tt=pt();return Tt.height=So.height!==void 0&&So.height!==null?kt.Long.fromValue(So.height):kt.Long.ZERO,Tt.pagination=So.pagination!==void 0&&So.pagination!==null?tt.PageRequest.fromPartial(So.pagination):void 0,Tt}};function lo(){return{txs:[],blockId:void 0,block:void 0,pagination:void 0}}_e.GetBlockWithTxsResponse={encode(So,Tt=qt.Writer.create()){for(const vo of So.txs)Vr.Tx.encode(vo,Tt.uint32(10).fork()).ldelim();return So.blockId!==void 0&&st.BlockID.encode(So.blockId,Tt.uint32(18).fork()).ldelim(),So.block!==void 0&&dt.Block.encode(So.block,Tt.uint32(26).fork()).ldelim(),So.pagination!==void 0&&tt.PageResponse.encode(So.pagination,Tt.uint32(34).fork()).ldelim(),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=lo();for(;vo.pos>>3){case 1:xo.txs.push(Vr.Tx.decode(vo,vo.uint32()));break;case 2:xo.blockId=st.BlockID.decode(vo,vo.uint32());break;case 3:xo.block=dt.Block.decode(vo,vo.uint32());break;case 4:xo.pagination=tt.PageResponse.decode(vo,vo.uint32());break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{txs:Array.isArray(So==null?void 0:So.txs)?So.txs.map(Tt=>Vr.Tx.fromJSON(Tt)):[],blockId:(0,kt.isSet)(So.blockId)?st.BlockID.fromJSON(So.blockId):void 0,block:(0,kt.isSet)(So.block)?dt.Block.fromJSON(So.block):void 0,pagination:(0,kt.isSet)(So.pagination)?tt.PageResponse.fromJSON(So.pagination):void 0}},toJSON(So){const Tt={};return So.txs?Tt.txs=So.txs.map(vo=>vo?Vr.Tx.toJSON(vo):void 0):Tt.txs=[],So.blockId!==void 0&&(Tt.blockId=So.blockId?st.BlockID.toJSON(So.blockId):void 0),So.block!==void 0&&(Tt.block=So.block?dt.Block.toJSON(So.block):void 0),So.pagination!==void 0&&(Tt.pagination=So.pagination?tt.PageResponse.toJSON(So.pagination):void 0),Tt},fromPartial(So){var vo;const Tt=lo();return Tt.txs=((vo=So.txs)==null?void 0:vo.map(Co=>Vr.Tx.fromPartial(Co)))||[],Tt.blockId=So.blockId!==void 0&&So.blockId!==null?st.BlockID.fromPartial(So.blockId):void 0,Tt.block=So.block!==void 0&&So.block!==null?dt.Block.fromPartial(So.block):void 0,Tt.pagination=So.pagination!==void 0&&So.pagination!==null?tt.PageResponse.fromPartial(So.pagination):void 0,Tt}};function so(){return{txBytes:new Uint8Array}}_e.TxDecodeRequest={encode(So,Tt=qt.Writer.create()){return So.txBytes.length!==0&&Tt.uint32(10).bytes(So.txBytes),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=so();for(;vo.pos>>3){case 1:xo.txBytes=vo.bytes();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{txBytes:(0,kt.isSet)(So.txBytes)?(0,kt.bytesFromBase64)(So.txBytes):new Uint8Array}},toJSON(So){const Tt={};return So.txBytes!==void 0&&(Tt.txBytes=(0,kt.base64FromBytes)(So.txBytes!==void 0?So.txBytes:new Uint8Array)),Tt},fromPartial(So){const Tt=so();return Tt.txBytes=So.txBytes??new Uint8Array,Tt}};function wo(){return{tx:void 0}}_e.TxDecodeResponse={encode(So,Tt=qt.Writer.create()){return So.tx!==void 0&&Vr.Tx.encode(So.tx,Tt.uint32(10).fork()).ldelim(),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=wo();for(;vo.pos>>3){case 1:xo.tx=Vr.Tx.decode(vo,vo.uint32());break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{tx:(0,kt.isSet)(So.tx)?Vr.Tx.fromJSON(So.tx):void 0}},toJSON(So){const Tt={};return So.tx!==void 0&&(Tt.tx=So.tx?Vr.Tx.toJSON(So.tx):void 0),Tt},fromPartial(So){const Tt=wo();return Tt.tx=So.tx!==void 0&&So.tx!==null?Vr.Tx.fromPartial(So.tx):void 0,Tt}};function xt(){return{tx:void 0}}_e.TxEncodeRequest={encode(So,Tt=qt.Writer.create()){return So.tx!==void 0&&Vr.Tx.encode(So.tx,Tt.uint32(10).fork()).ldelim(),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=xt();for(;vo.pos>>3){case 1:xo.tx=Vr.Tx.decode(vo,vo.uint32());break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{tx:(0,kt.isSet)(So.tx)?Vr.Tx.fromJSON(So.tx):void 0}},toJSON(So){const Tt={};return So.tx!==void 0&&(Tt.tx=So.tx?Vr.Tx.toJSON(So.tx):void 0),Tt},fromPartial(So){const Tt=xt();return Tt.tx=So.tx!==void 0&&So.tx!==null?Vr.Tx.fromPartial(So.tx):void 0,Tt}};function Mt(){return{txBytes:new Uint8Array}}_e.TxEncodeResponse={encode(So,Tt=qt.Writer.create()){return So.txBytes.length!==0&&Tt.uint32(10).bytes(So.txBytes),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=Mt();for(;vo.pos>>3){case 1:xo.txBytes=vo.bytes();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{txBytes:(0,kt.isSet)(So.txBytes)?(0,kt.bytesFromBase64)(So.txBytes):new Uint8Array}},toJSON(So){const Tt={};return So.txBytes!==void 0&&(Tt.txBytes=(0,kt.base64FromBytes)(So.txBytes!==void 0?So.txBytes:new Uint8Array)),Tt},fromPartial(So){const Tt=Mt();return Tt.txBytes=So.txBytes??new Uint8Array,Tt}};function ho(){return{aminoJson:""}}_e.TxEncodeAminoRequest={encode(So,Tt=qt.Writer.create()){return So.aminoJson!==""&&Tt.uint32(10).string(So.aminoJson),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=ho();for(;vo.pos>>3){case 1:xo.aminoJson=vo.string();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{aminoJson:(0,kt.isSet)(So.aminoJson)?String(So.aminoJson):""}},toJSON(So){const Tt={};return So.aminoJson!==void 0&&(Tt.aminoJson=So.aminoJson),Tt},fromPartial(So){const Tt=ho();return Tt.aminoJson=So.aminoJson??"",Tt}};function io(){return{aminoBinary:new Uint8Array}}_e.TxEncodeAminoResponse={encode(So,Tt=qt.Writer.create()){return So.aminoBinary.length!==0&&Tt.uint32(10).bytes(So.aminoBinary),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=io();for(;vo.pos>>3){case 1:xo.aminoBinary=vo.bytes();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{aminoBinary:(0,kt.isSet)(So.aminoBinary)?(0,kt.bytesFromBase64)(So.aminoBinary):new Uint8Array}},toJSON(So){const Tt={};return So.aminoBinary!==void 0&&(Tt.aminoBinary=(0,kt.base64FromBytes)(So.aminoBinary!==void 0?So.aminoBinary:new Uint8Array)),Tt},fromPartial(So){const Tt=io();return Tt.aminoBinary=So.aminoBinary??new Uint8Array,Tt}};function co(){return{aminoBinary:new Uint8Array}}_e.TxDecodeAminoRequest={encode(So,Tt=qt.Writer.create()){return So.aminoBinary.length!==0&&Tt.uint32(10).bytes(So.aminoBinary),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=co();for(;vo.pos>>3){case 1:xo.aminoBinary=vo.bytes();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{aminoBinary:(0,kt.isSet)(So.aminoBinary)?(0,kt.bytesFromBase64)(So.aminoBinary):new Uint8Array}},toJSON(So){const Tt={};return So.aminoBinary!==void 0&&(Tt.aminoBinary=(0,kt.base64FromBytes)(So.aminoBinary!==void 0?So.aminoBinary:new Uint8Array)),Tt},fromPartial(So){const Tt=co();return Tt.aminoBinary=So.aminoBinary??new Uint8Array,Tt}};function mo(){return{aminoJson:""}}_e.TxDecodeAminoResponse={encode(So,Tt=qt.Writer.create()){return So.aminoJson!==""&&Tt.uint32(10).string(So.aminoJson),Tt},decode(So,Tt){const vo=So instanceof qt.Reader?So:new qt.Reader(So);let Co=Tt===void 0?vo.len:vo.pos+Tt;const xo=mo();for(;vo.pos>>3){case 1:xo.aminoJson=vo.string();break;default:vo.skipType(Po&7);break}}return xo},fromJSON(So){return{aminoJson:(0,kt.isSet)(So.aminoJson)?String(So.aminoJson):""}},toJSON(So){const Tt={};return So.aminoJson!==void 0&&(Tt.aminoJson=So.aminoJson),Tt},fromPartial(So){const Tt=mo();return Tt.aminoJson=So.aminoJson??"",Tt}};class Bo{constructor(Tt){this.rpc=Tt,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(Tt){const vo=_e.SimulateRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","Simulate",vo).then(Co=>_e.SimulateResponse.decode(new qt.Reader(Co)))}GetTx(Tt){const vo=_e.GetTxRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTx",vo).then(Co=>_e.GetTxResponse.decode(new qt.Reader(Co)))}BroadcastTx(Tt){const vo=_e.BroadcastTxRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","BroadcastTx",vo).then(Co=>_e.BroadcastTxResponse.decode(new qt.Reader(Co)))}GetTxsEvent(Tt){const vo=_e.GetTxsEventRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTxsEvent",vo).then(Co=>_e.GetTxsEventResponse.decode(new qt.Reader(Co)))}GetBlockWithTxs(Tt){const vo=_e.GetBlockWithTxsRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetBlockWithTxs",vo).then(Co=>_e.GetBlockWithTxsResponse.decode(new qt.Reader(Co)))}TxDecode(Tt){const vo=_e.TxDecodeRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecode",vo).then(Co=>_e.TxDecodeResponse.decode(new qt.Reader(Co)))}TxEncode(Tt){const vo=_e.TxEncodeRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncode",vo).then(Co=>_e.TxEncodeResponse.decode(new qt.Reader(Co)))}TxEncodeAmino(Tt){const vo=_e.TxEncodeAminoRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxEncodeAmino",vo).then(Co=>_e.TxEncodeAminoResponse.decode(new qt.Reader(Co)))}TxDecodeAmino(Tt){const vo=_e.TxDecodeAminoRequest.encode(Tt).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","TxDecodeAmino",vo).then(Co=>_e.TxDecodeAminoResponse.decode(new qt.Reader(Co)))}}_e.ServiceClientImpl=Bo}(service);var __importDefault$9=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(queries$1,"__esModule",{value:!0}),queries$1.setupTxExtension=void 0;const proto_signing_1$2=build$9,signing_1$2=signing$1,service_1=service,tx_1$4=tx$e,long_1$5=__importDefault$9(long),queryclient_1$1=queryclient$1;function setupTxExtension(_e){const cr=(0,queryclient_1$1.createProtobufRpcClient)(_e),gr=new service_1.ServiceClientImpl(cr);return{tx:{getTx:async Cr=>{const Vr={hash:Cr};return await gr.GetTx(Vr)},simulate:async(Cr,Vr,tt,nt)=>{const st=tx_1$4.Tx.fromPartial({authInfo:tx_1$4.AuthInfo.fromPartial({fee:tx_1$4.Fee.fromPartial({}),signerInfos:[{publicKey:(0,proto_signing_1$2.encodePubkey)(tt),sequence:long_1$5.default.fromNumber(nt,!0),modeInfo:{single:{mode:signing_1$2.SignMode.SIGN_MODE_UNSPECIFIED}}}]}),body:tx_1$4.TxBody.fromPartial({messages:Array.from(Cr),memo:Vr}),signatures:[new Uint8Array]}),dt=service_1.SimulateRequest.fromPartial({txBytes:tx_1$4.Tx.encode(st).finish()});return await gr.Simulate(dt)}}}}queries$1.setupTxExtension=setupTxExtension;var aminomessages$1={},__importDefault$8=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(aminomessages$1,"__esModule",{value:!0}),aminomessages$1.createVestingAminoConverters=aminomessages$1.isAminoMsgCreateVestingAccount=void 0;const long_1$4=__importDefault$8(long);function isAminoMsgCreateVestingAccount(_e){return _e.type==="cosmos-sdk/MsgCreateVestingAccount"}aminomessages$1.isAminoMsgCreateVestingAccount=isAminoMsgCreateVestingAccount;function createVestingAminoConverters(){return{"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":{aminoType:"cosmos-sdk/MsgCreateVestingAccount",toAmino:({fromAddress:_e,toAddress:cr,amount:gr,endTime:Cr,delayed:Vr})=>({from_address:_e,to_address:cr,amount:[...gr],end_time:Cr.toString(),delayed:Vr}),fromAmino:({from_address:_e,to_address:cr,amount:gr,end_time:Cr,delayed:Vr})=>({fromAddress:_e,toAddress:cr,amount:[...gr],endTime:long_1$4.default.fromString(Cr),delayed:Vr})}}}aminomessages$1.createVestingAminoConverters=createVestingAminoConverters;var messages$2={},tx$1={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Nt,eo,Wt,St){St===void 0&&(St=Wt);var Ot=Object.getOwnPropertyDescriptor(eo,Wt);(!Ot||("get"in Ot?!eo.__esModule:Ot.writable||Ot.configurable))&&(Ot={enumerable:!0,get:function(){return eo[Wt]}}),Object.defineProperty(Nt,St,Ot)}:function(Nt,eo,Wt,St){St===void 0&&(St=Wt),Nt[St]=eo[Wt]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(Nt,eo){Object.defineProperty(Nt,"default",{enumerable:!0,value:eo})}:function(Nt,eo){Nt.default=eo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(Nt){if(Nt&&Nt.__esModule)return Nt;var eo={};if(Nt!=null)for(var Wt in Nt)Wt!=="default"&&Object.prototype.hasOwnProperty.call(Nt,Wt)&&cr(eo,Nt,Wt);return gr(eo,Nt),eo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgCreatePeriodicVestingAccountResponse=_e.MsgCreatePeriodicVestingAccount=_e.MsgCreatePermanentLockedAccountResponse=_e.MsgCreatePermanentLockedAccount=_e.MsgCreateVestingAccountResponse=_e.MsgCreateVestingAccount=_e.protobufPackage=void 0;const Vr=coin$1,tt=vesting,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmos.vesting.v1beta1";function dt(){return{fromAddress:"",toAddress:"",amount:[],endTime:nt.Long.ZERO,delayed:!1}}_e.MsgCreateVestingAccount={encode(Nt,eo=st.Writer.create()){Nt.fromAddress!==""&&eo.uint32(10).string(Nt.fromAddress),Nt.toAddress!==""&&eo.uint32(18).string(Nt.toAddress);for(const Wt of Nt.amount)Vr.Coin.encode(Wt,eo.uint32(26).fork()).ldelim();return Nt.endTime.isZero()||eo.uint32(32).int64(Nt.endTime),Nt.delayed===!0&&eo.uint32(40).bool(Nt.delayed),eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=dt();for(;Wt.pos>>3){case 1:Ot.fromAddress=Wt.string();break;case 2:Ot.toAddress=Wt.string();break;case 3:Ot.amount.push(Vr.Coin.decode(Wt,Wt.uint32()));break;case 4:Ot.endTime=Wt.int64();break;case 5:Ot.delayed=Wt.bool();break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{fromAddress:(0,nt.isSet)(Nt.fromAddress)?String(Nt.fromAddress):"",toAddress:(0,nt.isSet)(Nt.toAddress)?String(Nt.toAddress):"",amount:Array.isArray(Nt==null?void 0:Nt.amount)?Nt.amount.map(eo=>Vr.Coin.fromJSON(eo)):[],endTime:(0,nt.isSet)(Nt.endTime)?nt.Long.fromValue(Nt.endTime):nt.Long.ZERO,delayed:(0,nt.isSet)(Nt.delayed)?!!Nt.delayed:!1}},toJSON(Nt){const eo={};return Nt.fromAddress!==void 0&&(eo.fromAddress=Nt.fromAddress),Nt.toAddress!==void 0&&(eo.toAddress=Nt.toAddress),Nt.amount?eo.amount=Nt.amount.map(Wt=>Wt?Vr.Coin.toJSON(Wt):void 0):eo.amount=[],Nt.endTime!==void 0&&(eo.endTime=(Nt.endTime||nt.Long.ZERO).toString()),Nt.delayed!==void 0&&(eo.delayed=Nt.delayed),eo},fromPartial(Nt){var Wt;const eo=dt();return eo.fromAddress=Nt.fromAddress??"",eo.toAddress=Nt.toAddress??"",eo.amount=((Wt=Nt.amount)==null?void 0:Wt.map(St=>Vr.Coin.fromPartial(St)))||[],eo.endTime=Nt.endTime!==void 0&&Nt.endTime!==null?nt.Long.fromValue(Nt.endTime):nt.Long.ZERO,eo.delayed=Nt.delayed??!1,eo}};function kt(){return{}}_e.MsgCreateVestingAccountResponse={encode(Nt,eo=st.Writer.create()){return eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=kt();for(;Wt.pos>>3){default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return kt()}};function qt(){return{fromAddress:"",toAddress:"",amount:[]}}_e.MsgCreatePermanentLockedAccount={encode(Nt,eo=st.Writer.create()){Nt.fromAddress!==""&&eo.uint32(10).string(Nt.fromAddress),Nt.toAddress!==""&&eo.uint32(18).string(Nt.toAddress);for(const Wt of Nt.amount)Vr.Coin.encode(Wt,eo.uint32(26).fork()).ldelim();return eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=qt();for(;Wt.pos>>3){case 1:Ot.fromAddress=Wt.string();break;case 2:Ot.toAddress=Wt.string();break;case 3:Ot.amount.push(Vr.Coin.decode(Wt,Wt.uint32()));break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{fromAddress:(0,nt.isSet)(Nt.fromAddress)?String(Nt.fromAddress):"",toAddress:(0,nt.isSet)(Nt.toAddress)?String(Nt.toAddress):"",amount:Array.isArray(Nt==null?void 0:Nt.amount)?Nt.amount.map(eo=>Vr.Coin.fromJSON(eo)):[]}},toJSON(Nt){const eo={};return Nt.fromAddress!==void 0&&(eo.fromAddress=Nt.fromAddress),Nt.toAddress!==void 0&&(eo.toAddress=Nt.toAddress),Nt.amount?eo.amount=Nt.amount.map(Wt=>Wt?Vr.Coin.toJSON(Wt):void 0):eo.amount=[],eo},fromPartial(Nt){var Wt;const eo=qt();return eo.fromAddress=Nt.fromAddress??"",eo.toAddress=Nt.toAddress??"",eo.amount=((Wt=Nt.amount)==null?void 0:Wt.map(St=>Vr.Coin.fromPartial(St)))||[],eo}};function ro(){return{}}_e.MsgCreatePermanentLockedAccountResponse={encode(Nt,eo=st.Writer.create()){return eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ro();for(;Wt.pos>>3){default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return ro()}};function ht(){return{fromAddress:"",toAddress:"",startTime:nt.Long.ZERO,vestingPeriods:[]}}_e.MsgCreatePeriodicVestingAccount={encode(Nt,eo=st.Writer.create()){Nt.fromAddress!==""&&eo.uint32(10).string(Nt.fromAddress),Nt.toAddress!==""&&eo.uint32(18).string(Nt.toAddress),Nt.startTime.isZero()||eo.uint32(24).int64(Nt.startTime);for(const Wt of Nt.vestingPeriods)tt.Period.encode(Wt,eo.uint32(34).fork()).ldelim();return eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=ht();for(;Wt.pos>>3){case 1:Ot.fromAddress=Wt.string();break;case 2:Ot.toAddress=Wt.string();break;case 3:Ot.startTime=Wt.int64();break;case 4:Ot.vestingPeriods.push(tt.Period.decode(Wt,Wt.uint32()));break;default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{fromAddress:(0,nt.isSet)(Nt.fromAddress)?String(Nt.fromAddress):"",toAddress:(0,nt.isSet)(Nt.toAddress)?String(Nt.toAddress):"",startTime:(0,nt.isSet)(Nt.startTime)?nt.Long.fromValue(Nt.startTime):nt.Long.ZERO,vestingPeriods:Array.isArray(Nt==null?void 0:Nt.vestingPeriods)?Nt.vestingPeriods.map(eo=>tt.Period.fromJSON(eo)):[]}},toJSON(Nt){const eo={};return Nt.fromAddress!==void 0&&(eo.fromAddress=Nt.fromAddress),Nt.toAddress!==void 0&&(eo.toAddress=Nt.toAddress),Nt.startTime!==void 0&&(eo.startTime=(Nt.startTime||nt.Long.ZERO).toString()),Nt.vestingPeriods?eo.vestingPeriods=Nt.vestingPeriods.map(Wt=>Wt?tt.Period.toJSON(Wt):void 0):eo.vestingPeriods=[],eo},fromPartial(Nt){var Wt;const eo=ht();return eo.fromAddress=Nt.fromAddress??"",eo.toAddress=Nt.toAddress??"",eo.startTime=Nt.startTime!==void 0&&Nt.startTime!==null?nt.Long.fromValue(Nt.startTime):nt.Long.ZERO,eo.vestingPeriods=((Wt=Nt.vestingPeriods)==null?void 0:Wt.map(St=>tt.Period.fromPartial(St)))||[],eo}};function po(){return{}}_e.MsgCreatePeriodicVestingAccountResponse={encode(Nt,eo=st.Writer.create()){return eo},decode(Nt,eo){const Wt=Nt instanceof st.Reader?Nt:new st.Reader(Nt);let St=eo===void 0?Wt.len:Wt.pos+eo;const Ot=po();for(;Wt.pos>>3){default:Wt.skipType(uo&7);break}}return Ot},fromJSON(Nt){return{}},toJSON(Nt){return{}},fromPartial(Nt){return po()}};class no{constructor(eo){this.rpc=eo,this.CreateVestingAccount=this.CreateVestingAccount.bind(this),this.CreatePermanentLockedAccount=this.CreatePermanentLockedAccount.bind(this),this.CreatePeriodicVestingAccount=this.CreatePeriodicVestingAccount.bind(this)}CreateVestingAccount(eo){const Wt=_e.MsgCreateVestingAccount.encode(eo).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",Wt).then(St=>_e.MsgCreateVestingAccountResponse.decode(new st.Reader(St)))}CreatePermanentLockedAccount(eo){const Wt=_e.MsgCreatePermanentLockedAccount.encode(eo).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePermanentLockedAccount",Wt).then(St=>_e.MsgCreatePermanentLockedAccountResponse.decode(new st.Reader(St)))}CreatePeriodicVestingAccount(eo){const Wt=_e.MsgCreatePeriodicVestingAccount.encode(eo).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePeriodicVestingAccount",Wt).then(St=>_e.MsgCreatePeriodicVestingAccountResponse.decode(new st.Reader(St)))}}_e.MsgClientImpl=no})(tx$1),Object.defineProperty(messages$2,"__esModule",{value:!0}),messages$2.vestingTypes=void 0;const tx_1$3=tx$1;messages$2.vestingTypes=[["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",tx_1$3.MsgCreateVestingAccount]],function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.isAminoMsgCreateValidator=_e.isAminoMsgBeginRedelegate=_e.createStakingAminoConverters=_e.setupSlashingExtension=_e.isAminoMsgUnjail=_e.createSlashingAminoConverters=_e.setupMintExtension=_e.setupIbcExtension=_e.isMsgTransferEncodeObject=_e.ibcTypes=_e.isAminoMsgTransfer=_e.createIbcAminoConverters=_e.groupTypes=_e.createGroupAminoConverters=_e.setupGovExtension=_e.isMsgVoteWeightedEncodeObject=_e.isMsgVoteEncodeObject=_e.isMsgSubmitProposalEncodeObject=_e.isMsgDepositEncodeObject=_e.govTypes=_e.isAminoMsgVoteWeighted=_e.isAminoMsgVote=_e.isAminoMsgSubmitProposal=_e.isAminoMsgDeposit=_e.createGovAminoConverters=_e.setupFeegrantExtension=_e.feegrantTypes=_e.createFeegrantAminoConverters=_e.isAminoMsgSubmitEvidence=_e.createEvidenceAminoConverters=_e.setupDistributionExtension=_e.isMsgWithdrawDelegatorRewardEncodeObject=_e.distributionTypes=_e.isAminoMsgWithdrawValidatorCommission=_e.isAminoMsgWithdrawDelegatorReward=_e.isAminoMsgSetWithdrawAddress=_e.isAminoMsgFundCommunityPool=_e.createDistributionAminoConverters=_e.isAminoMsgVerifyInvariant=_e.createCrysisAminoConverters=_e.setupBankExtension=_e.isMsgSendEncodeObject=_e.bankTypes=_e.isAminoMsgSend=_e.isAminoMsgMultiSend=_e.createBankAminoConverters=_e.setupAuthzExtension=_e.authzTypes=_e.createAuthzAminoConverters=_e.setupAuthExtension=void 0,_e.vestingTypes=_e.isAminoMsgCreateVestingAccount=_e.createVestingAminoConverters=_e.setupTxExtension=_e.setupStakingExtension=_e.stakingTypes=_e.isMsgUndelegateEncodeObject=_e.isMsgEditValidatorEncodeObject=_e.isMsgDelegateEncodeObject=_e.isMsgCreateValidatorEncodeObject=_e.isMsgBeginRedelegateEncodeObject=_e.isAminoMsgUndelegate=_e.isAminoMsgEditValidator=_e.isAminoMsgDelegate=void 0;var cr=queries$b;Object.defineProperty(_e,"setupAuthExtension",{enumerable:!0,get:function(){return cr.setupAuthExtension}});var gr=aminomessages$c;Object.defineProperty(_e,"createAuthzAminoConverters",{enumerable:!0,get:function(){return gr.createAuthzAminoConverters}});var Cr=messages$a;Object.defineProperty(_e,"authzTypes",{enumerable:!0,get:function(){return Cr.authzTypes}});var Vr=queries$a;Object.defineProperty(_e,"setupAuthzExtension",{enumerable:!0,get:function(){return Vr.setupAuthzExtension}});var tt=aminomessages$b;Object.defineProperty(_e,"createBankAminoConverters",{enumerable:!0,get:function(){return tt.createBankAminoConverters}}),Object.defineProperty(_e,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return tt.isAminoMsgMultiSend}}),Object.defineProperty(_e,"isAminoMsgSend",{enumerable:!0,get:function(){return tt.isAminoMsgSend}});var nt=messages$9;Object.defineProperty(_e,"bankTypes",{enumerable:!0,get:function(){return nt.bankTypes}}),Object.defineProperty(_e,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return nt.isMsgSendEncodeObject}});var st=queries$9;Object.defineProperty(_e,"setupBankExtension",{enumerable:!0,get:function(){return st.setupBankExtension}});var dt=aminomessages$a;Object.defineProperty(_e,"createCrysisAminoConverters",{enumerable:!0,get:function(){return dt.createCrysisAminoConverters}}),Object.defineProperty(_e,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return dt.isAminoMsgVerifyInvariant}});var kt=aminomessages$9;Object.defineProperty(_e,"createDistributionAminoConverters",{enumerable:!0,get:function(){return kt.createDistributionAminoConverters}}),Object.defineProperty(_e,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return kt.isAminoMsgFundCommunityPool}}),Object.defineProperty(_e,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return kt.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(_e,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return kt.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(_e,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return kt.isAminoMsgWithdrawValidatorCommission}});var qt=messages$8;Object.defineProperty(_e,"distributionTypes",{enumerable:!0,get:function(){return qt.distributionTypes}}),Object.defineProperty(_e,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return qt.isMsgWithdrawDelegatorRewardEncodeObject}});var ro=queries$8;Object.defineProperty(_e,"setupDistributionExtension",{enumerable:!0,get:function(){return ro.setupDistributionExtension}});var ht=aminomessages$8;Object.defineProperty(_e,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return ht.createEvidenceAminoConverters}}),Object.defineProperty(_e,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return ht.isAminoMsgSubmitEvidence}});var po=aminomessages$7;Object.defineProperty(_e,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return po.createFeegrantAminoConverters}});var no=messages$7;Object.defineProperty(_e,"feegrantTypes",{enumerable:!0,get:function(){return no.feegrantTypes}});var Nt=queries$7;Object.defineProperty(_e,"setupFeegrantExtension",{enumerable:!0,get:function(){return Nt.setupFeegrantExtension}});var eo=aminomessages$6;Object.defineProperty(_e,"createGovAminoConverters",{enumerable:!0,get:function(){return eo.createGovAminoConverters}}),Object.defineProperty(_e,"isAminoMsgDeposit",{enumerable:!0,get:function(){return eo.isAminoMsgDeposit}}),Object.defineProperty(_e,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return eo.isAminoMsgSubmitProposal}}),Object.defineProperty(_e,"isAminoMsgVote",{enumerable:!0,get:function(){return eo.isAminoMsgVote}}),Object.defineProperty(_e,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return eo.isAminoMsgVoteWeighted}});var Wt=messages$6;Object.defineProperty(_e,"govTypes",{enumerable:!0,get:function(){return Wt.govTypes}}),Object.defineProperty(_e,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return Wt.isMsgDepositEncodeObject}}),Object.defineProperty(_e,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return Wt.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(_e,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return Wt.isMsgVoteEncodeObject}}),Object.defineProperty(_e,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return Wt.isMsgVoteWeightedEncodeObject}});var St=queries$6;Object.defineProperty(_e,"setupGovExtension",{enumerable:!0,get:function(){return St.setupGovExtension}});var Ot=aminomessages$5;Object.defineProperty(_e,"createGroupAminoConverters",{enumerable:!0,get:function(){return Ot.createGroupAminoConverters}});var uo=messages$5;Object.defineProperty(_e,"groupTypes",{enumerable:!0,get:function(){return uo.groupTypes}});var go=aminomessages$4;Object.defineProperty(_e,"createIbcAminoConverters",{enumerable:!0,get:function(){return go.createIbcAminoConverters}}),Object.defineProperty(_e,"isAminoMsgTransfer",{enumerable:!0,get:function(){return go.isAminoMsgTransfer}});var bo=messages$4;Object.defineProperty(_e,"ibcTypes",{enumerable:!0,get:function(){return bo.ibcTypes}}),Object.defineProperty(_e,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return bo.isMsgTransferEncodeObject}});var oo=queries$5;Object.defineProperty(_e,"setupIbcExtension",{enumerable:!0,get:function(){return oo.setupIbcExtension}});var Ro=queries$4;Object.defineProperty(_e,"setupMintExtension",{enumerable:!0,get:function(){return Ro.setupMintExtension}});var pt=aminomessages$3;Object.defineProperty(_e,"createSlashingAminoConverters",{enumerable:!0,get:function(){return pt.createSlashingAminoConverters}}),Object.defineProperty(_e,"isAminoMsgUnjail",{enumerable:!0,get:function(){return pt.isAminoMsgUnjail}});var lo=queries$3;Object.defineProperty(_e,"setupSlashingExtension",{enumerable:!0,get:function(){return lo.setupSlashingExtension}});var so=aminomessages$2;Object.defineProperty(_e,"createStakingAminoConverters",{enumerable:!0,get:function(){return so.createStakingAminoConverters}}),Object.defineProperty(_e,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return so.isAminoMsgBeginRedelegate}}),Object.defineProperty(_e,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return so.isAminoMsgCreateValidator}}),Object.defineProperty(_e,"isAminoMsgDelegate",{enumerable:!0,get:function(){return so.isAminoMsgDelegate}}),Object.defineProperty(_e,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return so.isAminoMsgEditValidator}}),Object.defineProperty(_e,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return so.isAminoMsgUndelegate}});var wo=messages$3;Object.defineProperty(_e,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return wo.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(_e,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return wo.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(_e,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return wo.isMsgDelegateEncodeObject}}),Object.defineProperty(_e,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return wo.isMsgEditValidatorEncodeObject}}),Object.defineProperty(_e,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return wo.isMsgUndelegateEncodeObject}}),Object.defineProperty(_e,"stakingTypes",{enumerable:!0,get:function(){return wo.stakingTypes}});var xt=queries$2;Object.defineProperty(_e,"setupStakingExtension",{enumerable:!0,get:function(){return xt.setupStakingExtension}});var Mt=queries$1;Object.defineProperty(_e,"setupTxExtension",{enumerable:!0,get:function(){return Mt.setupTxExtension}});var ho=aminomessages$1;Object.defineProperty(_e,"createVestingAminoConverters",{enumerable:!0,get:function(){return ho.createVestingAminoConverters}}),Object.defineProperty(_e,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return ho.isAminoMsgCreateVestingAccount}});var io=messages$2;Object.defineProperty(_e,"vestingTypes",{enumerable:!0,get:function(){return io.vestingTypes}})}(modules$1);var multisignature={},__importDefault$7=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(multisignature,"__esModule",{value:!0}),multisignature.makeMultisignedTxBytes=multisignature.makeMultisignedTx=multisignature.makeCompactBitArray=void 0;const amino_1$2=build$8,encoding_1$f=build$c,proto_signing_1$1=build$9,multisig_1=multisig$1,signing_1$1=signing$1,tx_1$2=tx$e,tx_2$1=tx$e,long_1$3=__importDefault$7(long);function makeCompactBitArray(_e){const cr=Math.ceil(_e.length/8),gr=_e.length-Math.floor(_e.length/8)*8,Cr=new Uint8Array(cr);return _e.forEach((Vr,tt)=>{const nt=Math.floor(tt/8),st=tt%8;Vr&&(Cr[nt]|=1<<7-st)}),multisig_1.CompactBitArray.fromPartial({elems:Cr,extraBitsStored:gr})}multisignature.makeCompactBitArray=makeCompactBitArray;function makeMultisignedTx(_e,cr,gr,Cr,Vr){const tt=Array.from(Vr.keys()),nt=(0,encoding_1$f.fromBech32)(tt[0]).prefix,st=Array(_e.value.pubkeys.length).fill(!1),dt=new Array;for(let ht=0;ht<_e.value.pubkeys.length;ht++){const po=(0,amino_1$2.pubkeyToAddress)(_e.value.pubkeys[ht],nt),no=Vr.get(po);no&&(st[ht]=!0,dt.push(no))}const kt={publicKey:(0,proto_signing_1$1.encodePubkey)(_e),modeInfo:{multi:{bitarray:makeCompactBitArray(st),modeInfos:dt.map(ht=>({single:{mode:signing_1$1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON}}))}},sequence:long_1$3.default.fromNumber(cr)},qt=tx_1$2.AuthInfo.fromPartial({signerInfos:[kt],fee:{amount:[...gr.amount],gasLimit:long_1$3.default.fromString(gr.gas)}}),ro=tx_1$2.AuthInfo.encode(qt).finish();return tx_2$1.TxRaw.fromPartial({bodyBytes:Cr,authInfoBytes:ro,signatures:[multisig_1.MultiSignature.encode(multisig_1.MultiSignature.fromPartial({signatures:dt})).finish()]})}multisignature.makeMultisignedTx=makeMultisignedTx;function makeMultisignedTxBytes(_e,cr,gr,Cr,Vr){const tt=makeMultisignedTx(_e,cr,gr,Cr,Vr);return Uint8Array.from(tx_2$1.TxRaw.encode(tt).finish())}multisignature.makeMultisignedTxBytes=makeMultisignedTxBytes;var signingstargateclient={},build$3={},addresses={};Object.defineProperty(addresses,"__esModule",{value:!0}),addresses.pubkeyToAddress=addresses.pubkeyToRawAddress=addresses.rawSecp256k1PubkeyToRawAddress=addresses.rawEd25519PubkeyToRawAddress=void 0;const crypto_1$4=build$7,encoding_1$e=build$c;function rawEd25519PubkeyToRawAddress(_e){if(_e.length!==32)throw new Error(`Invalid Ed25519 pubkey length: ${_e.length}`);return(0,crypto_1$4.sha256)(_e).slice(0,20)}addresses.rawEd25519PubkeyToRawAddress=rawEd25519PubkeyToRawAddress;function rawSecp256k1PubkeyToRawAddress(_e){if(_e.length!==33)throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${_e.length}`);return(0,crypto_1$4.ripemd160)((0,crypto_1$4.sha256)(_e))}addresses.rawSecp256k1PubkeyToRawAddress=rawSecp256k1PubkeyToRawAddress;function pubkeyToRawAddress(_e,cr){switch(_e){case"ed25519":return rawEd25519PubkeyToRawAddress(cr);case"secp256k1":return rawSecp256k1PubkeyToRawAddress(cr);default:throw new Error(`Pubkey type ${_e} not supported`)}}addresses.pubkeyToRawAddress=pubkeyToRawAddress;function pubkeyToAddress(_e,cr){return(0,encoding_1$e.toHex)(pubkeyToRawAddress(_e,cr)).toUpperCase()}addresses.pubkeyToAddress=pubkeyToAddress;var dates={};Object.defineProperty(dates,"__esModule",{value:!0}),dates.DateTime=dates.toSeconds=dates.fromSeconds=dates.toRfc3339WithNanoseconds=dates.fromRfc3339WithNanoseconds=void 0;const encoding_1$d=build$c,math_1$5=build$b;function fromRfc3339WithNanoseconds(_e){const cr=(0,encoding_1$d.fromRfc3339)(_e),gr=_e.match(/\.(\d+)Z$/),Cr=gr?gr[1].slice(3):"";return cr.nanoseconds=parseInt(Cr.padEnd(6,"0"),10),cr}dates.fromRfc3339WithNanoseconds=fromRfc3339WithNanoseconds;function toRfc3339WithNanoseconds(_e){var Cr;const cr=_e.toISOString(),gr=((Cr=_e.nanoseconds)==null?void 0:Cr.toString())??"";return`${cr.slice(0,-1)}${gr.padStart(6,"0")}Z`}dates.toRfc3339WithNanoseconds=toRfc3339WithNanoseconds;function fromSeconds(_e,cr=0){const gr=new math_1$5.Uint32(cr).toNumber();if(gr>999999999)throw new Error("Nano seconds must not exceed 999999999");const Cr=new Date(_e*1e3+Math.floor(gr/1e6));return Cr.nanoseconds=gr%1e6,Cr}dates.fromSeconds=fromSeconds;function toSeconds(_e){return{seconds:Math.floor(_e.getTime()/1e3),nanos:_e.getTime()%1e3*1e6+(_e.nanoseconds??0)}}dates.toSeconds=toSeconds;class DateTime{static decode(cr){return fromRfc3339WithNanoseconds(cr)}static encode(cr){return toRfc3339WithNanoseconds(cr)}}dates.DateTime=DateTime;var rpcclients={},httpbatchclient={},build$2={},id$1={};Object.defineProperty(id$1,"__esModule",{value:!0}),id$1.makeJsonRpcId=void 0;let counter$2=1e4;function makeJsonRpcId(){return counter$2+=1}id$1.makeJsonRpcId=makeJsonRpcId;var jsonrpcclient={},types$3={};Object.defineProperty(types$3,"__esModule",{value:!0}),types$3.jsonRpcCode=types$3.isJsonRpcSuccessResponse=types$3.isJsonRpcErrorResponse=void 0;function isJsonRpcErrorResponse(_e){return typeof _e.error=="object"}types$3.isJsonRpcErrorResponse=isJsonRpcErrorResponse;function isJsonRpcSuccessResponse(_e){return!isJsonRpcErrorResponse(_e)}types$3.isJsonRpcSuccessResponse=isJsonRpcSuccessResponse,types$3.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$4=types$3;class JsonRpcClient{constructor(cr){this.connection=cr}async run(cr){const gr=this.connection.responseStream.filter(tt=>tt.id===cr.id),Cr=(0,stream_1$1.firstEvent)(gr);this.connection.sendRequest(cr);const Vr=await Cr;if((0,types_1$4.isJsonRpcErrorResponse)(Vr)){const tt=Vr.error;throw new Error(`JSON RPC error: code=${tt.code}; message='${tt.message}'`)}return Vr}}jsonrpcclient.JsonRpcClient=JsonRpcClient;var parse$2={},compatibility={};Object.defineProperty(compatibility,"__esModule",{value:!0}),compatibility.isJsonCompatibleDictionary=compatibility.isJsonCompatibleArray=compatibility.isJsonCompatibleValue=void 0;function isJsonCompatibleValue(_e){return!!(typeof _e=="string"||typeof _e=="number"||typeof _e=="boolean"||_e===null||isJsonCompatibleArray(_e)||isJsonCompatibleDictionary(_e))}compatibility.isJsonCompatibleValue=isJsonCompatibleValue;function isJsonCompatibleArray(_e){if(!Array.isArray(_e))return!1;for(const cr of _e)if(!isJsonCompatibleValue(cr))return!1;return!0}compatibility.isJsonCompatibleArray=isJsonCompatibleArray;function isJsonCompatibleDictionary(_e){return typeof _e!="object"||_e===null||Object.prototype.toString.call(_e)!=="[object Object]"?!1:Object.values(_e).every(isJsonCompatibleValue)}compatibility.isJsonCompatibleDictionary=isJsonCompatibleDictionary,Object.defineProperty(parse$2,"__esModule",{value:!0}),parse$2.parseJsonRpcResponse=parse$2.parseJsonRpcSuccessResponse=parse$2.parseJsonRpcErrorResponse=parse$2.parseJsonRpcRequest=parse$2.parseJsonRpcId=void 0;const compatibility_1=compatibility;function parseJsonRpcId(_e){if(!(0,compatibility_1.isJsonCompatibleDictionary)(_e))throw new Error("Data must be JSON compatible dictionary");const cr=_e.id;return typeof cr!="number"&&typeof cr!="string"?null:cr}parse$2.parseJsonRpcId=parseJsonRpcId;function parseJsonRpcRequest(_e){if(!(0,compatibility_1.isJsonCompatibleDictionary)(_e))throw new Error("Data must be JSON compatible dictionary");if(_e.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${_e.jsonrpc}`);const cr=parseJsonRpcId(_e);if(cr===null)throw new Error("Invalid id field");const gr=_e.method;if(typeof gr!="string")throw new Error("Invalid method field");if(!(0,compatibility_1.isJsonCompatibleArray)(_e.params)&&!(0,compatibility_1.isJsonCompatibleDictionary)(_e.params))throw new Error("Invalid params field");return{jsonrpc:"2.0",id:cr,method:gr,params:_e.params}}parse$2.parseJsonRpcRequest=parseJsonRpcRequest;function parseError(_e){if(typeof _e.code!="number")throw new Error("Error property 'code' is not a number");if(typeof _e.message!="string")throw new Error("Error property 'message' is not a string");let cr;if(_e.data===void 0)cr=void 0;else if((0,compatibility_1.isJsonCompatibleValue)(_e.data))cr=_e.data;else throw new Error("Error property 'data' is defined but not a JSON compatible value.");return{code:_e.code,message:_e.message,...cr!==void 0?{data:cr}:{}}}function parseJsonRpcErrorResponse(_e){if(!(0,compatibility_1.isJsonCompatibleDictionary)(_e))throw new Error("Data must be JSON compatible dictionary");if(_e.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(_e)}`);const cr=_e.id;if(typeof cr!="number"&&typeof cr!="string"&&cr!==null)throw new Error("Invalid id field");if(typeof _e.error>"u"||!(0,compatibility_1.isJsonCompatibleDictionary)(_e.error))throw new Error("Invalid error field");return{jsonrpc:"2.0",id:cr,error:parseError(_e.error)}}parse$2.parseJsonRpcErrorResponse=parseJsonRpcErrorResponse;function parseJsonRpcSuccessResponse(_e){if(!(0,compatibility_1.isJsonCompatibleDictionary)(_e))throw new Error("Data must be JSON compatible dictionary");if(_e.jsonrpc!=="2.0")throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(_e)}`);const cr=_e.id;if(typeof cr!="number"&&typeof cr!="string")throw new Error("Invalid id field");if(typeof _e.result>"u")throw new Error("Invalid result field");const gr=_e.result;return{jsonrpc:"2.0",id:cr,result:gr}}parse$2.parseJsonRpcSuccessResponse=parseJsonRpcSuccessResponse;function parseJsonRpcResponse(_e){let cr;try{cr=parseJsonRpcErrorResponse(_e)}catch{cr=parseJsonRpcSuccessResponse(_e)}return cr}parse$2.parseJsonRpcResponse=parseJsonRpcResponse,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.jsonRpcCode=_e.isJsonRpcSuccessResponse=_e.isJsonRpcErrorResponse=_e.parseJsonRpcSuccessResponse=_e.parseJsonRpcResponse=_e.parseJsonRpcRequest=_e.parseJsonRpcId=_e.parseJsonRpcErrorResponse=_e.JsonRpcClient=_e.makeJsonRpcId=void 0;var cr=id$1;Object.defineProperty(_e,"makeJsonRpcId",{enumerable:!0,get:function(){return cr.makeJsonRpcId}});var gr=jsonrpcclient;Object.defineProperty(_e,"JsonRpcClient",{enumerable:!0,get:function(){return gr.JsonRpcClient}});var Cr=parse$2;Object.defineProperty(_e,"parseJsonRpcErrorResponse",{enumerable:!0,get:function(){return Cr.parseJsonRpcErrorResponse}}),Object.defineProperty(_e,"parseJsonRpcId",{enumerable:!0,get:function(){return Cr.parseJsonRpcId}}),Object.defineProperty(_e,"parseJsonRpcRequest",{enumerable:!0,get:function(){return Cr.parseJsonRpcRequest}}),Object.defineProperty(_e,"parseJsonRpcResponse",{enumerable:!0,get:function(){return Cr.parseJsonRpcResponse}}),Object.defineProperty(_e,"parseJsonRpcSuccessResponse",{enumerable:!0,get:function(){return Cr.parseJsonRpcSuccessResponse}});var Vr=types$3;Object.defineProperty(_e,"isJsonRpcErrorResponse",{enumerable:!0,get:function(){return Vr.isJsonRpcErrorResponse}}),Object.defineProperty(_e,"isJsonRpcSuccessResponse",{enumerable:!0,get:function(){return Vr.isJsonRpcSuccessResponse}}),Object.defineProperty(_e,"jsonRpcCode",{enumerable:!0,get:function(){return Vr.jsonRpcCode}})}(build$2);var http$1={},axios$6={exports:{}},bind$5=function _e(cr,gr){return function(){for(var Cr=new Array(arguments.length),Vr=0;Vr"u"}function isBuffer$5(_e){return _e!==null&&!isUndefined$1(_e)&&_e.constructor!==null&&!isUndefined$1(_e.constructor)&&typeof _e.constructor.isBuffer=="function"&&_e.constructor.isBuffer(_e)}function isArrayBuffer$1(_e){return toString$7.call(_e)==="[object ArrayBuffer]"}function isFormData$1(_e){return typeof FormData<"u"&&_e instanceof FormData}function isArrayBufferView$1(_e){var cr;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?cr=ArrayBuffer.isView(_e):cr=_e&&_e.buffer&&_e.buffer instanceof ArrayBuffer,cr}function isString$4(_e){return typeof _e=="string"}function isNumber$2(_e){return typeof _e=="number"}function isObject$e(_e){return _e!==null&&typeof _e=="object"}function isPlainObject$4(_e){if(toString$7.call(_e)!=="[object Object]")return!1;var cr=Object.getPrototypeOf(_e);return cr===null||cr===Object.prototype}function isDate$2(_e){return toString$7.call(_e)==="[object Date]"}function isFile$1(_e){return toString$7.call(_e)==="[object File]"}function isBlob$1(_e){return toString$7.call(_e)==="[object Blob]"}function isFunction$5(_e){return toString$7.call(_e)==="[object Function]"}function isStream$1(_e){return isObject$e(_e)&&isFunction$5(_e.pipe)}function isURLSearchParams$1(_e){return typeof URLSearchParams<"u"&&_e instanceof URLSearchParams}function trim$2(_e){return _e.trim?_e.trim():_e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv$1(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach$1(_e,cr){if(!(_e===null||typeof _e>"u"))if(typeof _e!="object"&&(_e=[_e]),isArray$f(_e))for(var gr=0,Cr=_e.length;gr"u"||(utils$q.isArray(st)?dt=dt+"[]":st=[st],utils$q.forEach(st,function(kt){utils$q.isDate(kt)?kt=kt.toISOString():utils$q.isObject(kt)&&(kt=JSON.stringify(kt)),tt.push(encode$2(dt)+"="+encode$2(kt))}))}),Vr=tt.join("&")}if(Vr){var nt=cr.indexOf("#");nt!==-1&&(cr=cr.slice(0,nt)),cr+=(cr.indexOf("?")===-1?"?":"&")+Vr}return cr},utils$p=utils$r;function InterceptorManager$3(){this.handlers=[]}InterceptorManager$3.prototype.use=function _e(cr,gr,Cr){return this.handlers.push({fulfilled:cr,rejected:gr,synchronous:Cr?Cr.synchronous:!1,runWhen:Cr?Cr.runWhen:null}),this.handlers.length-1},InterceptorManager$3.prototype.eject=function _e(cr){this.handlers[cr]&&(this.handlers[cr]=null)},InterceptorManager$3.prototype.forEach=function _e(cr){utils$p.forEach(this.handlers,function(gr){gr!==null&&cr(gr)})};var InterceptorManager_1$1=InterceptorManager$3,utils$o=utils$r,normalizeHeaderName$4=function _e(cr,gr){utils$o.forEach(cr,function(Cr,Vr){Vr!==gr&&Vr.toUpperCase()===gr.toUpperCase()&&(cr[gr]=Cr,delete cr[Vr])})},enhanceError$1=function _e(cr,gr,Cr,Vr,tt){return cr.config=gr,Cr&&(cr.code=Cr),cr.request=Vr,cr.response=tt,cr.isAxiosError=!0,cr.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}},cr},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var _e=enhanceError$1;return createError=function(cr,gr,Cr,Vr,tt){var nt=new Error(cr);return _e(nt,gr,Cr,Vr,tt)},createError}var settle$1,hasRequiredSettle$1;function requireSettle$1(){if(hasRequiredSettle$1)return settle$1;hasRequiredSettle$1=1;var _e=requireCreateError();return settle$1=function(cr,gr,Cr){var Vr=Cr.config.validateStatus;!Cr.status||!Vr||Vr(Cr.status)?cr(Cr):gr(_e("Request failed with status code "+Cr.status,Cr.config,null,Cr.request,Cr))},settle$1}var cookies$1,hasRequiredCookies$1;function requireCookies$1(){if(hasRequiredCookies$1)return cookies$1;hasRequiredCookies$1=1;var _e=utils$r;return cookies$1=_e.isStandardBrowserEnv()?function(){return{write:function(cr,gr,Cr,Vr,tt,nt){var st=[];st.push(cr+"="+encodeURIComponent(gr)),_e.isNumber(Cr)&&st.push("expires="+new Date(Cr).toGMTString()),_e.isString(Vr)&&st.push("path="+Vr),_e.isString(tt)&&st.push("domain="+tt),nt===!0&&st.push("secure"),document.cookie=st.join("; ")},read:function(cr){var gr=document.cookie.match(new RegExp("(^|;\\s*)("+cr+")=([^;]*)"));return gr?decodeURIComponent(gr[3]):null},remove:function(cr){this.write(cr,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies$1}var isAbsoluteURL$2,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL$2=function(_e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(_e)}),isAbsoluteURL$2}var combineURLs$2,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs$2=function(_e,cr){return cr?_e.replace(/\/+$/,"")+"/"+cr.replace(/^\/+/,""):_e}),combineURLs$2}var buildFullPath$2,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath$2;hasRequiredBuildFullPath=1;var _e=requireIsAbsoluteURL(),cr=requireCombineURLs();return buildFullPath$2=function(gr,Cr){return gr&&!_e(Cr)?cr(gr,Cr):Cr},buildFullPath$2}var parseHeaders$1,hasRequiredParseHeaders$1;function requireParseHeaders$1(){if(hasRequiredParseHeaders$1)return parseHeaders$1;hasRequiredParseHeaders$1=1;var _e=utils$r,cr=["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$1=function(gr){var Cr={},Vr,tt,nt;return gr&&_e.forEach(gr.split(` -`),function(st){if(nt=st.indexOf(":"),Vr=_e.trim(st.substr(0,nt)).toLowerCase(),tt=_e.trim(st.substr(nt+1)),Vr){if(Cr[Vr]&&cr.indexOf(Vr)>=0)return;Vr==="set-cookie"?Cr[Vr]=(Cr[Vr]?Cr[Vr]:[]).concat([tt]):Cr[Vr]=Cr[Vr]?Cr[Vr]+", "+tt:tt}}),Cr},parseHeaders$1}var isURLSameOrigin$1,hasRequiredIsURLSameOrigin$1;function requireIsURLSameOrigin$1(){if(hasRequiredIsURLSameOrigin$1)return isURLSameOrigin$1;hasRequiredIsURLSameOrigin$1=1;var _e=utils$r;return isURLSameOrigin$1=_e.isStandardBrowserEnv()?function(){var cr=/(msie|trident)/i.test(navigator.userAgent),gr=document.createElement("a"),Cr;function Vr(tt){var nt=tt;return cr&&(gr.setAttribute("href",nt),nt=gr.href),gr.setAttribute("href",nt),{href:gr.href,protocol:gr.protocol?gr.protocol.replace(/:$/,""):"",host:gr.host,search:gr.search?gr.search.replace(/^\?/,""):"",hash:gr.hash?gr.hash.replace(/^#/,""):"",hostname:gr.hostname,port:gr.port,pathname:gr.pathname.charAt(0)==="/"?gr.pathname:"/"+gr.pathname}}return Cr=Vr(window.location.href),function(tt){var nt=_e.isString(tt)?Vr(tt):tt;return nt.protocol===Cr.protocol&&nt.host===Cr.host}}():function(){return function(){return!0}}(),isURLSameOrigin$1}var xhr$1,hasRequiredXhr$1;function requireXhr$1(){if(hasRequiredXhr$1)return xhr$1;hasRequiredXhr$1=1;var _e=utils$r,cr=requireSettle$1(),gr=requireCookies$1(),Cr=buildURL$3,Vr=requireBuildFullPath(),tt=requireParseHeaders$1(),nt=requireIsURLSameOrigin$1(),st=requireCreateError();return xhr$1=function(dt){return new Promise(function(kt,qt){var ro=dt.data,ht=dt.headers,po=dt.responseType;_e.isFormData(ro)&&delete ht["Content-Type"];var no=new XMLHttpRequest;if(dt.auth){var Nt=dt.auth.username||"",eo=dt.auth.password?unescape(encodeURIComponent(dt.auth.password)):"";ht.Authorization="Basic "+btoa(Nt+":"+eo)}var Wt=Vr(dt.baseURL,dt.url);no.open(dt.method.toUpperCase(),Cr(Wt,dt.params,dt.paramsSerializer),!0),no.timeout=dt.timeout;function St(){if(no){var uo="getAllResponseHeaders"in no?tt(no.getAllResponseHeaders()):null,go=!po||po==="text"||po==="json"?no.responseText:no.response,bo={data:go,status:no.status,statusText:no.statusText,headers:uo,config:dt,request:no};cr(kt,qt,bo),no=null}}if("onloadend"in no?no.onloadend=St:no.onreadystatechange=function(){!no||no.readyState!==4||no.status===0&&!(no.responseURL&&no.responseURL.indexOf("file:")===0)||setTimeout(St)},no.onabort=function(){no&&(qt(st("Request aborted",dt,"ECONNABORTED",no)),no=null)},no.onerror=function(){qt(st("Network Error",dt,null,no)),no=null},no.ontimeout=function(){var uo="timeout of "+dt.timeout+"ms exceeded";dt.timeoutErrorMessage&&(uo=dt.timeoutErrorMessage),qt(st(uo,dt,dt.transitional&&dt.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",no)),no=null},_e.isStandardBrowserEnv()){var Ot=(dt.withCredentials||nt(Wt))&&dt.xsrfCookieName?gr.read(dt.xsrfCookieName):void 0;Ot&&(ht[dt.xsrfHeaderName]=Ot)}"setRequestHeader"in no&&_e.forEach(ht,function(uo,go){typeof ro>"u"&&go.toLowerCase()==="content-type"?delete ht[go]:no.setRequestHeader(go,uo)}),_e.isUndefined(dt.withCredentials)||(no.withCredentials=!!dt.withCredentials),po&&po!=="json"&&(no.responseType=dt.responseType),typeof dt.onDownloadProgress=="function"&&no.addEventListener("progress",dt.onDownloadProgress),typeof dt.onUploadProgress=="function"&&no.upload&&no.upload.addEventListener("progress",dt.onUploadProgress),dt.cancelToken&&dt.cancelToken.promise.then(function(uo){no&&(no.abort(),qt(uo),no=null)}),ro||(ro=null),no.send(ro)})},xhr$1}var utils$n=utils$r,normalizeHeaderName$3=normalizeHeaderName$4,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE$1={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset$1(_e,cr){!utils$n.isUndefined(_e)&&utils$n.isUndefined(_e["Content-Type"])&&(_e["Content-Type"]=cr)}function getDefaultAdapter$1(){var _e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(_e=requireXhr$1()),_e}function stringifySafely$1(_e,cr,gr){if(utils$n.isString(_e))try{return(cr||JSON.parse)(_e),utils$n.trim(_e)}catch(Cr){if(Cr.name!=="SyntaxError")throw Cr}return(0,JSON.stringify)(_e)}var defaults$9={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter$1(),transformRequest:[function _e(cr,gr){return normalizeHeaderName$3(gr,"Accept"),normalizeHeaderName$3(gr,"Content-Type"),utils$n.isFormData(cr)||utils$n.isArrayBuffer(cr)||utils$n.isBuffer(cr)||utils$n.isStream(cr)||utils$n.isFile(cr)||utils$n.isBlob(cr)?cr:utils$n.isArrayBufferView(cr)?cr.buffer:utils$n.isURLSearchParams(cr)?(setContentTypeIfUnset$1(gr,"application/x-www-form-urlencoded;charset=utf-8"),cr.toString()):utils$n.isObject(cr)||gr&&gr["Content-Type"]==="application/json"?(setContentTypeIfUnset$1(gr,"application/json"),stringifySafely$1(cr)):cr}],transformResponse:[function _e(cr){var gr=this.transitional,Cr=gr&&gr.silentJSONParsing,Vr=gr&&gr.forcedJSONParsing,tt=!Cr&&this.responseType==="json";if(tt||Vr&&utils$n.isString(cr)&&cr.length)try{return JSON.parse(cr)}catch(nt){if(tt)throw nt.name==="SyntaxError"?enhanceError(nt,this,"E_JSON_PARSE"):nt}return cr}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function _e(cr){return cr>=200&&cr<300}};defaults$9.headers={common:{Accept:"application/json, text/plain, */*"}},utils$n.forEach(["delete","get","head"],function _e(cr){defaults$9.headers[cr]={}}),utils$n.forEach(["post","put","patch"],function _e(cr){defaults$9.headers[cr]=utils$n.merge(DEFAULT_CONTENT_TYPE$1)});var defaults_1$1=defaults$9,utils$m=utils$r,defaults$8=defaults_1$1,transformData$3=function _e(cr,gr,Cr){var Vr=this||defaults$8;return utils$m.forEach(Cr,function(tt){cr=tt.call(Vr,cr,gr)}),cr},isCancel$3,hasRequiredIsCancel$1;function requireIsCancel$1(){return hasRequiredIsCancel$1||(hasRequiredIsCancel$1=1,isCancel$3=function(_e){return!!(_e&&_e.__CANCEL__)}),isCancel$3}var utils$l=utils$r,transformData$2=transformData$3,isCancel$2=requireIsCancel$1(),defaults$7=defaults_1$1;function throwIfCancellationRequested$1(_e){_e.cancelToken&&_e.cancelToken.throwIfRequested()}var dispatchRequest$3=function _e(cr){throwIfCancellationRequested$1(cr),cr.headers=cr.headers||{},cr.data=transformData$2.call(cr,cr.data,cr.headers,cr.transformRequest),cr.headers=utils$l.merge(cr.headers.common||{},cr.headers[cr.method]||{},cr.headers),utils$l.forEach(["delete","get","head","post","put","patch","common"],function(Cr){delete cr.headers[Cr]});var gr=cr.adapter||defaults$7.adapter;return gr(cr).then(function(Cr){return throwIfCancellationRequested$1(cr),Cr.data=transformData$2.call(cr,Cr.data,Cr.headers,cr.transformResponse),Cr},function(Cr){return isCancel$2(Cr)||(throwIfCancellationRequested$1(cr),Cr&&Cr.response&&(Cr.response.data=transformData$2.call(cr,Cr.response.data,Cr.response.headers,cr.transformResponse))),Promise.reject(Cr)})},utils$k=utils$r,mergeConfig$6=function _e(cr,gr){gr=gr||{};var Cr={},Vr=["url","method","data"],tt=["headers","auth","proxy","params"],nt=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],st=["validateStatus"];function dt(ht,po){return utils$k.isPlainObject(ht)&&utils$k.isPlainObject(po)?utils$k.merge(ht,po):utils$k.isPlainObject(po)?utils$k.merge({},po):utils$k.isArray(po)?po.slice():po}function kt(ht){utils$k.isUndefined(gr[ht])?utils$k.isUndefined(cr[ht])||(Cr[ht]=dt(void 0,cr[ht])):Cr[ht]=dt(cr[ht],gr[ht])}utils$k.forEach(Vr,function(ht){utils$k.isUndefined(gr[ht])||(Cr[ht]=dt(void 0,gr[ht]))}),utils$k.forEach(tt,kt),utils$k.forEach(nt,function(ht){utils$k.isUndefined(gr[ht])?utils$k.isUndefined(cr[ht])||(Cr[ht]=dt(void 0,cr[ht])):Cr[ht]=dt(void 0,gr[ht])}),utils$k.forEach(st,function(ht){ht in gr?Cr[ht]=dt(cr[ht],gr[ht]):ht in cr&&(Cr[ht]=dt(void 0,cr[ht]))});var qt=Vr.concat(tt).concat(nt).concat(st),ro=Object.keys(cr).concat(Object.keys(gr)).filter(function(ht){return qt.indexOf(ht)===-1});return utils$k.forEach(ro,kt),Cr};const name="axios",version="0.21.4",description="Promise based HTTP client for the browser and node.js",main$1="index.js",scripts={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={type:"git",url:"https://github.com/axios/axios.git"},keywords=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={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$3={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0$1={name,version,description,main:main$1,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,browser:browser$3,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0$1,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(_e,cr){validators$3[_e]=function(gr){return typeof gr===_e||"a"+(cr<1?"n ":" ")+_e}});var deprecatedWarnings$1={},currentVerArr=pkg.version.split(".");function isOlderVersion(_e,cr){for(var gr=cr?cr.split("."):currentVerArr,Cr=_e.split("."),Vr=0;Vr<3;Vr++){if(gr[Vr]>Cr[Vr])return!0;if(gr[Vr]0;){var tt=Cr[Vr],nt=cr[tt];if(nt){var st=_e[tt],dt=st===void 0||nt(st,tt,_e);if(dt!==!0)throw new TypeError("option "+tt+" must be "+dt);continue}if(gr!==!0)throw Error("Unknown option "+tt)}}var validator$3={isOlderVersion,assertOptions:assertOptions$1,validators:validators$3},utils$j=utils$r,buildURL$2=buildURL$3,InterceptorManager$2=InterceptorManager_1$1,dispatchRequest$2=dispatchRequest$3,mergeConfig$5=mergeConfig$6,validator$2=validator$3,validators$2=validator$2.validators;function Axios$3(_e){this.defaults=_e,this.interceptors={request:new InterceptorManager$2,response:new InterceptorManager$2}}Axios$3.prototype.request=function _e(cr){typeof cr=="string"?(cr=arguments[1]||{},cr.url=arguments[0]):cr=cr||{},cr=mergeConfig$5(this.defaults,cr),cr.method?cr.method=cr.method.toLowerCase():this.defaults.method?cr.method=this.defaults.method.toLowerCase():cr.method="get";var gr=cr.transitional;gr!==void 0&&validator$2.assertOptions(gr,{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 Cr=[],Vr=!0;this.interceptors.request.forEach(function(ro){typeof ro.runWhen=="function"&&ro.runWhen(cr)===!1||(Vr=Vr&&ro.synchronous,Cr.unshift(ro.fulfilled,ro.rejected))});var tt=[];this.interceptors.response.forEach(function(ro){tt.push(ro.fulfilled,ro.rejected)});var nt;if(!Vr){var st=[dispatchRequest$2,void 0];for(Array.prototype.unshift.apply(st,Cr),st=st.concat(tt),nt=Promise.resolve(cr);st.length;)nt=nt.then(st.shift(),st.shift());return nt}for(var dt=cr;Cr.length;){var kt=Cr.shift(),qt=Cr.shift();try{dt=kt(dt)}catch(ro){qt(ro);break}}try{nt=dispatchRequest$2(dt)}catch(ro){return Promise.reject(ro)}for(;tt.length;)nt=nt.then(tt.shift(),tt.shift());return nt},Axios$3.prototype.getUri=function _e(cr){return cr=mergeConfig$5(this.defaults,cr),buildURL$2(cr.url,cr.params,cr.paramsSerializer).replace(/^\?/,"")},utils$j.forEach(["delete","get","head","options"],function _e(cr){Axios$3.prototype[cr]=function(gr,Cr){return this.request(mergeConfig$5(Cr||{},{method:cr,url:gr,data:(Cr||{}).data}))}}),utils$j.forEach(["post","put","patch"],function _e(cr){Axios$3.prototype[cr]=function(gr,Cr,Vr){return this.request(mergeConfig$5(Vr||{},{method:cr,url:gr,data:Cr}))}});var Axios_1$1=Axios$3,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function _e(cr){this.message=cr}return _e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},_e.prototype.__CANCEL__=!0,Cancel_1=_e,Cancel_1}var CancelToken_1$1,hasRequiredCancelToken$1;function requireCancelToken$1(){if(hasRequiredCancelToken$1)return CancelToken_1$1;hasRequiredCancelToken$1=1;var _e=requireCancel();function cr(gr){if(typeof gr!="function")throw new TypeError("executor must be a function.");var Cr;this.promise=new Promise(function(tt){Cr=tt});var Vr=this;gr(function(tt){Vr.reason||(Vr.reason=new _e(tt),Cr(Vr.reason))})}return cr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},cr.source=function(){var gr,Cr=new cr(function(Vr){gr=Vr});return{token:Cr,cancel:gr}},CancelToken_1$1=cr,CancelToken_1$1}var spread$1,hasRequiredSpread$1;function requireSpread$1(){return hasRequiredSpread$1||(hasRequiredSpread$1=1,spread$1=function(_e){return function(cr){return _e.apply(null,cr)}}),spread$1}var isAxiosError$1,hasRequiredIsAxiosError$1;function requireIsAxiosError$1(){return hasRequiredIsAxiosError$1||(hasRequiredIsAxiosError$1=1,isAxiosError$1=function(_e){return typeof _e=="object"&&_e.isAxiosError===!0}),isAxiosError$1}var utils$i=utils$r,bind$3=bind$5,Axios$2=Axios_1$1,mergeConfig$4=mergeConfig$6,defaults$6=defaults_1$1;function createInstance$1(_e){var cr=new Axios$2(_e),gr=bind$3(Axios$2.prototype.request,cr);return utils$i.extend(gr,Axios$2.prototype,cr),utils$i.extend(gr,cr),gr}var axios$5=createInstance$1(defaults$6);axios$5.Axios=Axios$2,axios$5.create=function _e(cr){return createInstance$1(mergeConfig$4(axios$5.defaults,cr))},axios$5.Cancel=requireCancel(),axios$5.CancelToken=requireCancelToken$1(),axios$5.isCancel=requireIsCancel$1(),axios$5.all=function _e(cr){return Promise.all(cr)},axios$5.spread=requireSpread$1(),axios$5.isAxiosError=requireIsAxiosError$1(),axios$6.exports=axios$5,axios$6.exports.default=axios$5;var axiosExports$1=axios$6.exports,axios$4=axiosExports$1,__importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(http$1,"__esModule",{value:!0}),http$1.http=void 0;const axios_1=__importDefault$6(axios$4);function filterBadStatus(_e){if(_e.status>=400)throw new Error(`Bad status on response: ${_e.status}`);return _e}function isExperimental(_e){return _e.toString().includes("emitExperimentalWarning")}async function http(_e,cr,gr,Cr){if(typeof fetch=="function"&&!isExperimental(fetch)){const Vr={method:_e,body:Cr?JSON.stringify(Cr):void 0,headers:{"Content-Type":"application/json",...gr}};return fetch(cr,Vr).then(filterBadStatus).then(tt=>tt.json())}else return axios_1.default.request({url:cr,method:_e,data:Cr,headers:gr}).then(Vr=>Vr.data)}http$1.http=http;var rpcclient={};Object.defineProperty(rpcclient,"__esModule",{value:!0}),rpcclient.hasProtocol=rpcclient.instanceOfRpcStreamingClient=void 0;function instanceOfRpcStreamingClient(_e){return typeof _e.listen=="function"}rpcclient.instanceOfRpcStreamingClient=instanceOfRpcStreamingClient;function hasProtocol(_e){return _e.search("://")!==-1}rpcclient.hasProtocol=hasProtocol,Object.defineProperty(httpbatchclient,"__esModule",{value:!0}),httpbatchclient.HttpBatchClient=void 0;const json_rpc_1$2=build$2,http_1$1=http$1,rpcclient_1$2=rpcclient,defaultHttpBatchClientOptions={dispatchInterval:20,batchSizeLimit:20};class HttpBatchClient{constructor(cr,gr={}){this.queue=[],this.options={batchSizeLimit:gr.batchSizeLimit??defaultHttpBatchClientOptions.batchSizeLimit,dispatchInterval:gr.dispatchInterval??defaultHttpBatchClientOptions.dispatchInterval},typeof cr=="string"?this.url=(0,rpcclient_1$2.hasProtocol)(cr)?cr:"http://"+cr:(this.url=cr.url,this.headers=cr.headers),this.timer=setInterval(()=>this.tick(),gr.dispatchInterval),this.validate()}disconnect(){this.timer&&clearInterval(this.timer),this.timer=void 0}async execute(cr){return new Promise((gr,Cr)=>{this.queue.push({request:cr,resolve:gr,reject:Cr}),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 cr=this.queue.splice(0,this.options.batchSizeLimit);if(!cr.length)return;const gr=cr.map(Vr=>Vr.request),Cr=gr.map(Vr=>Vr.id);(0,http_1$1.http)("POST",this.url,this.headers,gr).then(Vr=>{(Array.isArray(Vr)?Vr:[Vr]).forEach(tt=>{const nt=cr.find(qt=>qt.request.id===tt.id);if(!nt)return;const{reject:st,resolve:dt}=nt,kt=(0,json_rpc_1$2.parseJsonRpcResponse)(tt);(0,json_rpc_1$2.isJsonRpcErrorResponse)(kt)?st(new Error(JSON.stringify(kt.error))):dt(kt)})},Vr=>{for(const tt of Cr){const nt=cr.find(st=>st.request.id===tt);if(!nt)return;nt.reject(Vr)}})}}httpbatchclient.HttpBatchClient=HttpBatchClient;var httpclient={};Object.defineProperty(httpclient,"__esModule",{value:!0}),httpclient.HttpClient=void 0;const json_rpc_1$1=build$2,http_1=http$1,rpcclient_1$1=rpcclient;class HttpClient{constructor(cr){typeof cr=="string"?this.url=(0,rpcclient_1$1.hasProtocol)(cr)?cr:"http://"+cr:(this.url=cr.url,this.headers=cr.headers)}disconnect(){}async execute(cr){const gr=(0,json_rpc_1$1.parseJsonRpcResponse)(await(0,http_1.http)("POST",this.url,this.headers,cr));if((0,json_rpc_1$1.isJsonRpcErrorResponse)(gr))throw new Error(JSON.stringify(gr.error));return gr}}httpclient.HttpClient=HttpClient;var websocketclient={},build$1={},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$2=ws,__importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(socketwrapper,"__esModule",{value:!0}),socketwrapper.SocketWrapper=void 0;const isomorphic_ws_1=__importDefault$5(browser$2);function environmentIsNodeJs(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}class SocketWrapper{constructor(cr,gr,Cr,Vr,tt,nt=1e4){this.closed=!1,this.connected=new Promise((st,dt)=>{this.connectedResolver=st,this.connectedRejecter=dt}),this.url=cr,this.messageHandler=gr,this.errorHandler=Cr,this.openHandler=Vr,this.closeHandler=tt,this.timeout=nt}connect(){const cr=new isomorphic_ws_1.default(this.url);cr.onerror=Cr=>{this.clearTimeout(),this.errorHandler&&this.errorHandler(Cr)},cr.onmessage=Cr=>{this.messageHandler({type:Cr.type,data:Cr.data})},cr.onopen=Cr=>{this.clearTimeout(),this.connectedResolver(),this.openHandler&&this.openHandler()},cr.onclose=Cr=>{this.closed=!0,this.closeHandler&&this.closeHandler(Cr)};const gr=Date.now();this.timeoutId=setTimeout(()=>{cr.onmessage=()=>0,cr.onerror=()=>0,cr.onopen=()=>0,cr.onclose=()=>0,cr.close(),this.socket=void 0;const Cr=Math.floor(Date.now()-gr);this.connectedRejecter(`Connection attempt timed out after ${Cr} ms`)},this.timeout),this.socket=cr}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(cr){return new Promise((gr,Cr)=>{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(cr,Vr=>Vr?Cr(Vr):gr()):(this.socket.send(cr),gr())})}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(cr,gr=1e4){this.socket=new socketwrapper_1.SocketWrapper(cr,Vr=>{this.eventProducerListener&&this.eventProducerListener.next(Vr)},Vr=>{this.eventProducerListener&&this.eventProducerListener.error(Vr)},()=>{},Vr=>{this.eventProducerListener&&(Vr.wasClean?this.eventProducerListener.complete():this.eventProducerListener.error("Socket was closed unclean"))},gr),this.connected=this.socket.connected;const Cr={start:Vr=>this.eventProducerListener=Vr,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$2.Stream.create(Cr)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}async send(cr){return this.socket.send(cr)}}streamingsocket.StreamingSocket=StreamingSocket,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueueingStreamingSocket=_e.ConnectionStatus=void 0;const cr=build$4,gr=xstream,Cr=streamingsocket;var Vr;(function(nt){nt[nt.Unconnected=0]="Unconnected",nt[nt.Connecting=1]="Connecting",nt[nt.Connected=2]="Connected",nt[nt.Disconnected=3]="Disconnected"})(Vr=_e.ConnectionStatus||(_e.ConnectionStatus={}));class tt{constructor(st,dt=1e4,kt){this.queue=[],this.isProcessingQueue=!1,this.url=st,this.timeout=dt,this.reconnectedHandler=kt;const qt={start:ro=>this.eventProducerListener=ro,stop:()=>this.eventProducerListener=void 0};this.events=gr.Stream.create(qt),this.connectionStatusProducer=new cr.DefaultValueProducer(Vr.Unconnected),this.connectionStatus=new cr.ValueAndUpdates(this.connectionStatusProducer),this.socket=new Cr.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:ro=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(ro)},error:()=>this.connectionStatusProducer.update(Vr.Disconnected)})}connect(){this.connectionStatusProducer.update(Vr.Connecting),this.socket.connected.then(async()=>(this.connectionStatusProducer.update(Vr.Connected),this.processQueue()),()=>this.connectionStatusProducer.update(Vr.Disconnected)),this.socket.connect()}disconnect(){this.connectionStatusProducer.update(Vr.Disconnected),this.socket.disconnect()}reconnect(){this.socket=new Cr.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:st=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(st)},error:()=>this.connectionStatusProducer.update(Vr.Disconnected)}),this.socket.connected.then(()=>{this.reconnectedHandler&&this.reconnectedHandler()}),this.connect()}getQueueLength(){return this.queue.length}queueRequest(st){this.queue.push(st),this.processQueue()}async processQueue(){if(this.isProcessingQueue||this.connectionStatus.value!==Vr.Connected)return;this.isProcessingQueue=!0;let st;for(;st=this.queue.shift();)try{await this.socket.send(st),this.isProcessingQueue=!1}catch{this.queue.unshift(st),this.isProcessingQueue=!1;return}}}_e.QueueingStreamingSocket=tt}(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(cr){return Math.min(2**cr*100,5e3)}constructor(cr,gr=1e4,Cr){this.unconnected=!0,this.disconnected=!1,this.timeoutIndex=0,this.reconnectTimeout=null;const Vr={start:tt=>this.eventProducerListener=tt,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$1.Stream.create(Vr),this.socket=new queueingstreamingsocket_1.QueueingStreamingSocket(cr,gr,Cr),this.socket.events.subscribe({next:tt=>{this.eventProducerListener&&this.eventProducerListener.next(tt)},error:tt=>{this.eventProducerListener&&this.eventProducerListener.error(tt)}}),this.connectionStatus=this.socket.connectionStatus,this.connectionStatus.updates.subscribe({next:tt=>{tt===queueingstreamingsocket_1.ConnectionStatus.Connected&&(this.timeoutIndex=0),tt===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(cr){if(this.disconnected)throw new Error("Cannot queue request: socket has disconnected");this.socket.queueRequest(cr)}}reconnectingsocket.ReconnectingSocket=ReconnectingSocket,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.StreamingSocket=_e.SocketWrapper=_e.ReconnectingSocket=_e.QueueingStreamingSocket=_e.ConnectionStatus=void 0;var cr=queueingstreamingsocket;Object.defineProperty(_e,"ConnectionStatus",{enumerable:!0,get:function(){return cr.ConnectionStatus}}),Object.defineProperty(_e,"QueueingStreamingSocket",{enumerable:!0,get:function(){return cr.QueueingStreamingSocket}});var gr=reconnectingsocket;Object.defineProperty(_e,"ReconnectingSocket",{enumerable:!0,get:function(){return gr.ReconnectingSocket}});var Cr=socketwrapper;Object.defineProperty(_e,"SocketWrapper",{enumerable:!0,get:function(){return Cr.SocketWrapper}});var Vr=streamingsocket;Object.defineProperty(_e,"StreamingSocket",{enumerable:!0,get:function(){return Vr.StreamingSocket}})}(build$1),Object.defineProperty(websocketclient,"__esModule",{value:!0}),websocketclient.WebsocketClient=void 0;const json_rpc_1=build$2,socket_1=build$1,stream_1=build$4,xstream_1=xstream,rpcclient_1=rpcclient;function defaultErrorHandler(_e){throw _e}function toJsonRpcResponse(_e){if(_e.type!=="message")throw new Error(`Unexcepted message type on websocket: ${_e.type}`);return(0,json_rpc_1.parseJsonRpcResponse)(JSON.parse(_e.data))}class RpcEventProducer{constructor(cr,gr){this.running=!1,this.subscriptions=[],this.request=cr,this.socket=gr}start(cr){if(this.running)throw Error("Already started. Please stop first before restarting.");this.running=!0,this.connectToClient(cr),this.socket.queueRequest(JSON.stringify(this.request))}stop(){this.running=!1;const cr={...this.request,method:"unsubscribe"};try{this.socket.queueRequest(JSON.stringify(cr))}catch(gr){if(!(gr instanceof Error&&gr.message.match(/socket has disconnected/i)))throw gr}}connectToClient(cr){const gr=this.socket.events.map(toJsonRpcResponse),Cr=gr.filter(nt=>nt.id===this.request.id).subscribe({next:nt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(nt)&&(this.closeSubscriptions(),cr.error(JSON.stringify(nt.error))),Cr.unsubscribe()}}),Vr=gr.filter(nt=>nt.id===this.request.id).subscribe({next:nt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(nt)?(this.closeSubscriptions(),cr.error(JSON.stringify(nt.error))):cr.next(nt.result)}}),tt=gr.subscribe({error:nt=>{this.closeSubscriptions(),cr.error(nt)},complete:()=>{this.closeSubscriptions(),cr.complete()}});this.subscriptions.push(Cr,Vr,tt)}closeSubscriptions(){for(const cr of this.subscriptions)cr.unsubscribe();this.subscriptions=[]}}class WebsocketClient{constructor(cr,gr=defaultErrorHandler){this.subscriptionStreams=new Map;const Cr=cr.endsWith("/")?"websocket":"/websocket",Vr=(0,rpcclient_1.hasProtocol)(cr)?cr:"ws://"+cr;this.url=Vr+Cr,this.socket=new socket_1.ReconnectingSocket(this.url);const tt=this.socket.events.subscribe({error:nt=>{gr(nt),tt.unsubscribe()}});this.jsonRpcResponseStream=this.socket.events.map(toJsonRpcResponse),this.socket.connect()}async execute(cr){const gr=this.responseForRequestId(cr.id);this.socket.queueRequest(JSON.stringify(cr));const Cr=await gr;if((0,json_rpc_1.isJsonRpcErrorResponse)(Cr))throw new Error(JSON.stringify(Cr.error));return Cr}listen(cr){if(cr.method!=="subscribe")throw new Error('Request method must be "subscribe" to start event listening');const gr=cr.params.query;if(typeof gr!="string")throw new Error("request.params.query must be a string");if(!this.subscriptionStreams.has(gr)){const Cr=new RpcEventProducer(cr,this.socket),Vr=xstream_1.Stream.create(Cr);this.subscriptionStreams.set(gr,Vr)}return this.subscriptionStreams.get(gr).filter(Cr=>Cr.query!==void 0)}async connected(){await this.socket.connectionStatus.waitFor(socket_1.ConnectionStatus.Connected)}disconnect(){this.socket.disconnect()}async responseForRequestId(cr){return(0,stream_1.firstEvent)(this.jsonRpcResponseStream.filter(gr=>gr.id===cr))}}websocketclient.WebsocketClient=WebsocketClient,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WebsocketClient=_e.instanceOfRpcStreamingClient=_e.HttpClient=_e.HttpBatchClient=void 0;var cr=httpbatchclient;Object.defineProperty(_e,"HttpBatchClient",{enumerable:!0,get:function(){return cr.HttpBatchClient}});var gr=httpclient;Object.defineProperty(_e,"HttpClient",{enumerable:!0,get:function(){return gr.HttpClient}});var Cr=rpcclient;Object.defineProperty(_e,"instanceOfRpcStreamingClient",{enumerable:!0,get:function(){return Cr.instanceOfRpcStreamingClient}});var Vr=websocketclient;Object.defineProperty(_e,"WebsocketClient",{enumerable:!0,get:function(){return Vr.WebsocketClient}})}(rpcclients);var tendermint34={},requests$7={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.buildQuery=_e.SubscriptionEventType=_e.Method=void 0,function(gr){gr.AbciInfo="abci_info",gr.AbciQuery="abci_query",gr.Block="block",gr.Blockchain="blockchain",gr.BlockResults="block_results",gr.BlockSearch="block_search",gr.BroadcastTxAsync="broadcast_tx_async",gr.BroadcastTxSync="broadcast_tx_sync",gr.BroadcastTxCommit="broadcast_tx_commit",gr.Commit="commit",gr.Genesis="genesis",gr.Health="health",gr.NumUnconfirmedTxs="num_unconfirmed_txs",gr.Status="status",gr.Subscribe="subscribe",gr.Tx="tx",gr.TxSearch="tx_search",gr.Validators="validators",gr.Unsubscribe="unsubscribe"}(_e.Method||(_e.Method={})),function(gr){gr.NewBlock="NewBlock",gr.NewBlockHeader="NewBlockHeader",gr.Tx="Tx"}(_e.SubscriptionEventType||(_e.SubscriptionEventType={}));function cr(gr){const Cr=(gr.tags?gr.tags:[]).map(tt=>`${tt.key}='${tt.value}'`),Vr=gr.raw?[gr.raw]:[];return[...Cr,...Vr].join(" AND ")}_e.buildQuery=cr})(requests$7);var responses$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.VoteType=_e.broadcastTxCommitSuccess=_e.broadcastTxSyncSuccess=void 0;function cr(Cr){return Cr.code===0}_e.broadcastTxSyncSuccess=cr;function gr(Cr){return Cr.checkTx.code===0&&!!Cr.deliverTx&&Cr.deliverTx.code===0}_e.broadcastTxCommitSuccess=gr,function(Cr){Cr[Cr.PreVote=1]="PreVote",Cr[Cr.PreCommit=2]="PreCommit"}(_e.VoteType||(_e.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(_e,cr){const gr=cr?{...cr}:{};return{jsonrpc:"2.0",id:randomId(),method:_e,params:gr}}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$c=build$c;function assertSet$1(_e){if(_e===void 0)throw new Error("Value must not be undefined");if(_e===null)throw new Error("Value must not be null");return _e}encodings$1.assertSet=assertSet$1;function assertBoolean$1(_e){if(assertSet$1(_e),typeof _e!="boolean")throw new Error("Value must be a boolean");return _e}encodings$1.assertBoolean=assertBoolean$1;function assertString$1(_e){if(assertSet$1(_e),typeof _e!="string")throw new Error("Value must be a string");return _e}encodings$1.assertString=assertString$1;function assertNumber$1(_e){if(assertSet$1(_e),typeof _e!="number")throw new Error("Value must be a number");return _e}encodings$1.assertNumber=assertNumber$1;function assertArray$1(_e){if(assertSet$1(_e),!Array.isArray(_e))throw new Error("Value must be a an array");return _e}encodings$1.assertArray=assertArray$1;function assertObject$1(_e){if(assertSet$1(_e),typeof _e!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(_e)!=="[object Object]")throw new Error("Value must be a simple object");return _e}encodings$1.assertObject=assertObject$1;function assertNotEmpty$1(_e){if(assertSet$1(_e),typeof _e=="number"&&_e===0)throw new Error("must provide a non-zero value");if(_e.length===0)throw new Error("must provide a non-empty value");return _e}encodings$1.assertNotEmpty=assertNotEmpty$1;function may$1(_e,cr){return cr==null?void 0:_e(cr)}encodings$1.may=may$1;function dictionaryToStringMap$1(_e){const cr=new Map;for(const gr of Object.keys(_e)){const Cr=_e[gr];if(typeof Cr!="string")throw new Error("Found dictionary value of type other than string");cr.set(gr,Cr)}return cr}encodings$1.dictionaryToStringMap=dictionaryToStringMap$1;function encodeString$2(_e){const cr=(0,encoding_1$c.toUtf8)(_e);return Uint8Array.from([cr.length,...cr])}encodings$1.encodeString=encodeString$2;function encodeUvarint$1(_e){return _e>=128?Uint8Array.from([_e&255|128,...encodeUvarint$1(_e>>7)]):Uint8Array.from([_e&255])}encodings$1.encodeUvarint=encodeUvarint$1;function encodeTime$1(_e){const cr=_e.getTime(),gr=Math.floor(cr/1e3),Cr=gr?[8,...encodeUvarint$1(gr)]:new Uint8Array,Vr=(_e.nanoseconds||0)+cr%1e3*1e6,tt=Vr?[16,...encodeUvarint$1(Vr)]:new Uint8Array;return Uint8Array.from([...Cr,...tt])}encodings$1.encodeTime=encodeTime$1;function encodeBytes$1(_e){if(_e.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return _e.length?Uint8Array.from([_e.length,..._e]):new Uint8Array}encodings$1.encodeBytes=encodeBytes$1;function encodeVersion$1(_e){const cr=_e.block?Uint8Array.from([8,...encodeUvarint$1(_e.block)]):new Uint8Array,gr=_e.app?Uint8Array.from([16,...encodeUvarint$1(_e.app)]):new Uint8Array;return Uint8Array.from([...cr,...gr])}encodings$1.encodeVersion=encodeVersion$1;function encodeBlockId$1(_e){return Uint8Array.from([10,_e.hash.length,..._e.hash,18,_e.parts.hash.length+4,8,_e.parts.total,18,_e.parts.hash.length,..._e.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$3=build$7,encodings_1$6=encodings$1;function hashTx$1(_e){return(0,crypto_1$3.sha256)(_e)}hasher$1.hashTx=hashTx$1;function getSplitPoint$1(_e){if(_e<1)throw new Error("Cannot split an empty tree");const cr=2**Math.floor(Math.log2(_e));return cr<_e?cr:cr/2}function hashLeaf$1(_e){const cr=new crypto_1$3.Sha256(Uint8Array.from([0]));return cr.update(_e),cr.digest()}function hashInner$1(_e,cr){const gr=new crypto_1$3.Sha256(Uint8Array.from([1]));return gr.update(_e),gr.update(cr),gr.digest()}function hashTree$1(_e){switch(_e.length){case 0:throw new Error("Cannot hash empty tree");case 1:return hashLeaf$1(_e[0]);default:{const cr=getSplitPoint$1(_e.length),gr=hashTree$1(_e.slice(0,cr)),Cr=hashTree$1(_e.slice(cr));return hashInner$1(gr,Cr)}}}function hashBlock$1(_e){if(!_e.lastBlockId)throw new Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");const cr=[(0,encodings_1$6.encodeVersion)(_e.version),(0,encodings_1$6.encodeString)(_e.chainId),(0,encodings_1$6.encodeUvarint)(_e.height),(0,encodings_1$6.encodeTime)(_e.time),(0,encodings_1$6.encodeBlockId)(_e.lastBlockId),(0,encodings_1$6.encodeBytes)(_e.lastCommitHash),(0,encodings_1$6.encodeBytes)(_e.dataHash),(0,encodings_1$6.encodeBytes)(_e.validatorsHash),(0,encodings_1$6.encodeBytes)(_e.nextValidatorsHash),(0,encodings_1$6.encodeBytes)(_e.consensusHash),(0,encodings_1$6.encodeBytes)(_e.appHash),(0,encodings_1$6.encodeBytes)(_e.lastResultsHash),(0,encodings_1$6.encodeBytes)(_e.evidenceHash),(0,encodings_1$6.encodeBytes)(_e.proposerAddress)];return hashTree$1(cr)}hasher$1.hashBlock=hashBlock$1;var requests$6={},inthelpers={};Object.defineProperty(inthelpers,"__esModule",{value:!0}),inthelpers.smallIntToApi=inthelpers.apiToBigInt=inthelpers.apiToSmallInt=void 0;const math_1$4=build$b,encodings_1$5=encodings$1;function apiToSmallInt(_e){return(typeof _e=="number"?new math_1$4.Int53(_e):math_1$4.Int53.fromString(_e)).toNumber()}inthelpers.apiToSmallInt=apiToSmallInt;function apiToBigInt(_e){if((0,encodings_1$5.assertString)(_e),!_e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return BigInt(_e)}inthelpers.apiToBigInt=apiToBigInt;function smallIntToApi(_e){return new math_1$4.Int53(_e).toString()}inthelpers.smallIntToApi=smallIntToApi;var __createBinding$4=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$4=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$4=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$4(cr,_e,gr);return __setModuleDefault$4(cr,_e),cr};Object.defineProperty(requests$6,"__esModule",{value:!0}),requests$6.Params=void 0;const encoding_1$b=build$c,inthelpers_1$3=inthelpers,jsonrpc_1$3=jsonrpc,encodings_1$4=encodings$1,requests$5=__importStar$4(requests$7);function encodeHeightParam$1(_e){return{height:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.height)}}function encodeBlockchainRequestParams$1(_e){return{minHeight:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.minHeight),maxHeight:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.maxHeight)}}function encodeBlockSearchParams$1(_e){return{query:_e.query,page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.page),per_page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeAbciQueryParams$1(_e){return{path:(0,encodings_1$4.assertNotEmpty)(_e.path),data:(0,encoding_1$b.toHex)(_e.data),height:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.height),prove:_e.prove}}function encodeBroadcastTxParams$1(_e){return{tx:(0,encoding_1$b.toBase64)((0,encodings_1$4.assertNotEmpty)(_e.tx))}}function encodeTxParams$1(_e){return{hash:(0,encoding_1$b.toBase64)((0,encodings_1$4.assertNotEmpty)(_e.hash)),prove:_e.prove}}function encodeTxSearchParams$1(_e){return{query:_e.query,prove:_e.prove,page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.page),per_page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeValidatorsParams$1(_e){return{height:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.height),page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.page),per_page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.per_page)}}let Params$1=class{static encodeAbciInfo(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeAbciQuery(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeAbciQueryParams$1(_e.params))}static encodeBlock(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeHeightParam$1(_e.params))}static encodeBlockchain(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeBlockchainRequestParams$1(_e.params))}static encodeBlockResults(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeHeightParam$1(_e.params))}static encodeBlockSearch(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeBlockSearchParams$1(_e.params))}static encodeBroadcastTx(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeBroadcastTxParams$1(_e.params))}static encodeCommit(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeHeightParam$1(_e.params))}static encodeGenesis(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeHealth(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeNumUnconfirmedTxs(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeStatus(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeSubscribe(_e){const cr={key:"tm.event",value:_e.query.type},gr=requests$5.buildQuery({tags:[cr],raw:_e.query.raw});return(0,jsonrpc_1$3.createJsonRpcRequest)("subscribe",{query:gr})}static encodeTx(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeTxParams$1(_e.params))}static encodeTxSearch(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeTxSearchParams$1(_e.params))}static encodeValidators(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeValidatorsParams$1(_e.params))}};requests$6.Params=Params$1;var responses$2={},types$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BlockIdFlag=void 0,function(cr){cr[cr.Unknown=0]="Unknown",cr[cr.Absent=1]="Absent",cr[cr.Commit=2]="Commit",cr[cr.Nil=3]="Nil",cr[cr.Unrecognized=-1]="Unrecognized"}(_e.BlockIdFlag||(_e.BlockIdFlag={}))})(types$2),Object.defineProperty(responses$2,"__esModule",{value:!0}),responses$2.Responses=responses$2.decodeValidatorInfo=responses$2.decodeValidatorGenesis=responses$2.decodeValidatorUpdate=responses$2.decodeEvent=void 0;const encoding_1$a=build$c,utils_1$6=build$6,dates_1$1=dates,inthelpers_1$2=inthelpers,types_1$3=types$2,encodings_1$3=encodings$1,hasher_1$3=hasher$1;function decodeAbciInfo$1(_e){return{data:_e.data,lastBlockHeight:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.last_block_height),lastBlockAppHash:(0,encodings_1$3.may)(encoding_1$a.fromBase64,_e.last_block_app_hash)}}function decodeQueryProof$1(_e){return{ops:_e.ops.map(cr=>({type:cr.type,key:(0,encoding_1$a.fromBase64)(cr.key),data:(0,encoding_1$a.fromBase64)(cr.data)}))}}function decodeAbciQuery$1(_e){return{key:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertString)(_e.key??"")),value:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertString)(_e.value??"")),proof:(0,encodings_1$3.may)(decodeQueryProof$1,_e.proofOps),height:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.height),code:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.code),codespace:(0,encodings_1$3.assertString)(_e.codespace??""),index:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.index),log:_e.log,info:(0,encodings_1$3.assertString)(_e.info??"")}}function decodeAttribute(_e){return{key:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.key)),value:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertString)(_e.value??""))}}function decodeAttributes$1(_e){return(0,encodings_1$3.assertArray)(_e).map(decodeAttribute)}function decodeEvent$1(_e){return{type:_e.type,attributes:_e.attributes?decodeAttributes$1(_e.attributes):[]}}responses$2.decodeEvent=decodeEvent$1;function decodeEvents$1(_e){return(0,encodings_1$3.assertArray)(_e).map(decodeEvent$1)}function decodeTxData$1(_e){return{code:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(_e.code??0)),codespace:_e.codespace,log:_e.log,data:(0,encodings_1$3.may)(encoding_1$a.fromBase64,_e.data),events:_e.events?decodeEvents$1(_e.events):[],gasWanted:(0,inthelpers_1$2.apiToSmallInt)(_e.gas_wanted??"0"),gasUsed:(0,inthelpers_1$2.apiToSmallInt)(_e.gas_used??"0")}}function decodePubkey$1(_e){if("Sum"in _e){const[[cr,gr]]=Object.entries(_e.Sum.value);return(0,utils_1$6.assert)(cr==="ed25519"||cr==="secp256k1",`unknown pubkey type: ${cr}`),{algorithm:cr,data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(gr))}}else switch(_e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.value))};default:throw new Error(`unknown pubkey type: ${_e.type}`)}}function decodeBlockParams$1(_e){return{maxBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_bytes)),maxGas:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_gas))}}function decodeEvidenceParams$1(_e){return{maxAgeNumBlocks:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_age_duration))}}function decodeConsensusParams$1(_e){return{block:decodeBlockParams$1((0,encodings_1$3.assertObject)(_e.block)),evidence:decodeEvidenceParams$1((0,encodings_1$3.assertObject)(_e.evidence))}}function decodeValidatorUpdate$1(_e){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)(_e.power??"0")}}responses$2.decodeValidatorUpdate=decodeValidatorUpdate$1;function decodeBlockResults$1(_e){return{height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),results:(_e.txs_results||[]).map(decodeTxData$1),validatorUpdates:(_e.validator_updates||[]).map(decodeValidatorUpdate$1),consensusUpdates:(0,encodings_1$3.may)(decodeConsensusParams$1,_e.consensus_param_updates),beginBlockEvents:decodeEvents$1(_e.begin_block_events||[]),endBlockEvents:decodeEvents$1(_e.end_block_events||[])}}function decodeBlockId$1(_e){return{hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash)),parts:{total:(0,encodings_1$3.assertNotEmpty)(_e.parts.total),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.parts.hash))}}}function decodeBlockVersion$1(_e){return{block:(0,inthelpers_1$2.apiToSmallInt)(_e.block),app:(0,inthelpers_1$2.apiToSmallInt)(_e.app??0)}}function decodeHeader$1(_e){return{version:decodeBlockVersion$1(_e.version),chainId:(0,encodings_1$3.assertNotEmpty)(_e.chain_id),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),time:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(_e.time)),lastBlockId:_e.last_block_id.hash?decodeBlockId$1(_e.last_block_id):null,lastCommitHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.last_commit_hash)),dataHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.data_hash)),validatorsHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.validators_hash)),nextValidatorsHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.next_validators_hash)),consensusHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.consensus_hash)),appHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.app_hash)),lastResultsHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.last_results_hash)),evidenceHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.evidence_hash)),proposerAddress:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.proposer_address))}}function decodeBlockMeta$1(_e){return{blockId:decodeBlockId$1(_e.block_id),blockSize:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.block_size)),header:decodeHeader$1(_e.header),numTxs:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.num_txs))}}function decodeBlockchain$1(_e){return{lastHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.last_height)),blockMetas:(0,encodings_1$3.assertArray)(_e.block_metas).map(decodeBlockMeta$1)}}function decodeBroadcastTxSync$1(_e){return{...decodeTxData$1(_e),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash))}}function decodeBroadcastTxCommit$1(_e){return{height:(0,inthelpers_1$2.apiToSmallInt)(_e.height),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash)),checkTx:decodeTxData$1((0,encodings_1$3.assertObject)(_e.check_tx)),deliverTx:(0,encodings_1$3.may)(decodeTxData$1,_e.deliver_tx)}}function decodeBlockIdFlag$1(_e){return(0,utils_1$6.assert)(_e in types_1$3.BlockIdFlag),_e}function decodeOptionalTime$1(_e){return _e&&!_e.startsWith("0001-01-01")?(0,dates_1$1.fromRfc3339WithNanoseconds)(_e):void 0}function decodeCommitSignature$1(_e){return{blockIdFlag:decodeBlockIdFlag$1(_e.block_id_flag),validatorAddress:_e.validator_address?(0,encoding_1$a.fromHex)(_e.validator_address):void 0,timestamp:decodeOptionalTime$1(_e.timestamp),signature:_e.signature?(0,encoding_1$a.fromBase64)(_e.signature):void 0}}function decodeCommit$1(_e){return{blockId:decodeBlockId$1((0,encodings_1$3.assertObject)(_e.block_id)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),round:(0,inthelpers_1$2.apiToSmallInt)(_e.round),signatures:(0,encodings_1$3.assertArray)(_e.signatures).map(decodeCommitSignature$1)}}function decodeCommitResponse$1(_e){return{canonical:(0,encodings_1$3.assertBoolean)(_e.canonical),header:decodeHeader$1(_e.signed_header.header),commit:decodeCommit$1(_e.signed_header.commit)}}function decodeValidatorGenesis$1(_e){return{address:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.address)),pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(_e.power))}}responses$2.decodeValidatorGenesis=decodeValidatorGenesis$1;function decodeGenesis$1(_e){return{genesisTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(_e.genesis_time)),chainId:(0,encodings_1$3.assertNotEmpty)(_e.chain_id),consensusParams:decodeConsensusParams$1(_e.consensus_params),validators:_e.validators?(0,encodings_1$3.assertArray)(_e.validators).map(decodeValidatorGenesis$1):[],appHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.app_hash)),appState:_e.app_state}}function decodeValidatorInfo$1(_e){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(_e.voting_power)),address:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.address)),proposerPriority:_e.proposer_priority?(0,inthelpers_1$2.apiToSmallInt)(_e.proposer_priority):void 0}}responses$2.decodeValidatorInfo=decodeValidatorInfo$1;function decodeNodeInfo$1(_e){return{id:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.id)),listenAddr:(0,encodings_1$3.assertNotEmpty)(_e.listen_addr),network:(0,encodings_1$3.assertNotEmpty)(_e.network),version:(0,encodings_1$3.assertString)(_e.version),channels:(0,encodings_1$3.assertNotEmpty)(_e.channels),moniker:(0,encodings_1$3.assertNotEmpty)(_e.moniker),other:(0,encodings_1$3.dictionaryToStringMap)(_e.other),protocolVersion:{app:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.protocol_version.app)),block:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.protocol_version.block)),p2p:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.protocol_version.p2p))}}}function decodeSyncInfo$1(_e){const cr=_e.earliest_block_height?(0,inthelpers_1$2.apiToSmallInt)(_e.earliest_block_height):void 0,gr=_e.earliest_block_time?(0,dates_1$1.fromRfc3339WithNanoseconds)(_e.earliest_block_time):void 0;return{earliestAppHash:_e.earliest_app_hash?(0,encoding_1$a.fromHex)(_e.earliest_app_hash):void 0,earliestBlockHash:_e.earliest_block_hash?(0,encoding_1$a.fromHex)(_e.earliest_block_hash):void 0,earliestBlockHeight:cr||void 0,earliestBlockTime:gr!=null&&gr.getTime()?gr:void 0,latestBlockHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.latest_block_hash)),latestAppHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.latest_app_hash)),latestBlockTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(_e.latest_block_time)),latestBlockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.latest_block_height)),catchingUp:(0,encodings_1$3.assertBoolean)(_e.catching_up)}}function decodeStatus$1(_e){return{nodeInfo:decodeNodeInfo$1(_e.node_info),syncInfo:decodeSyncInfo$1(_e.sync_info),validatorInfo:decodeValidatorInfo$1(_e.validator_info)}}function decodeTxProof$1(_e){return{data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.data)),rootHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.root_hash)),proof:{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.proof.total)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.proof.index)),leafHash:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.proof.leaf_hash)),aunts:(0,encodings_1$3.assertArray)(_e.proof.aunts).map(encoding_1$a.fromBase64)}}}function decodeTxResponse$1(_e){return{tx:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.tx)),result:decodeTxData$1((0,encodings_1$3.assertObject)(_e.tx_result)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(_e.index)),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash)),proof:(0,encodings_1$3.may)(decodeTxProof$1,_e.proof)}}function decodeTxSearch$1(_e){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total_count)),txs:(0,encodings_1$3.assertArray)(_e.txs).map(decodeTxResponse$1)}}function decodeTxEvent$1(_e){const cr=(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.tx));return{tx:cr,hash:(0,hasher_1$3.hashTx)(cr),result:decodeTxData$1(_e.result),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height))}}function decodeValidators$1(_e){return{blockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.block_height)),validators:(0,encodings_1$3.assertArray)(_e.validators).map(decodeValidatorInfo$1),count:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.count)),total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total))}}function decodeBlock$1(_e){var cr;return{header:decodeHeader$1((0,encodings_1$3.assertObject)(_e.header)),lastCommit:_e.last_commit.block_id.hash?decodeCommit$1((0,encodings_1$3.assertObject)(_e.last_commit)):null,txs:_e.data.txs?(0,encodings_1$3.assertArray)(_e.data.txs).map(encoding_1$a.fromBase64):[],evidence:((cr=_e.evidence)==null?void 0:cr.evidence)??[]}}function decodeBlockResponse$1(_e){return{blockId:decodeBlockId$1(_e.block_id),block:decodeBlock$1(_e.block)}}function decodeBlockSearch$1(_e){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total_count)),blocks:(0,encodings_1$3.assertArray)(_e.blocks).map(decodeBlockResponse$1)}}function decodeNumUnconfirmedTxs$1(_e){return{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total)),totalBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total_bytes))}}let Responses$1=class S1{static decodeAbciInfo(cr){return decodeAbciInfo$1((0,encodings_1$3.assertObject)(cr.result.response))}static decodeAbciQuery(cr){return decodeAbciQuery$1((0,encodings_1$3.assertObject)(cr.result.response))}static decodeBlock(cr){return decodeBlockResponse$1(cr.result)}static decodeBlockResults(cr){return decodeBlockResults$1(cr.result)}static decodeBlockSearch(cr){return decodeBlockSearch$1(cr.result)}static decodeBlockchain(cr){return decodeBlockchain$1(cr.result)}static decodeBroadcastTxSync(cr){return decodeBroadcastTxSync$1(cr.result)}static decodeBroadcastTxAsync(cr){return S1.decodeBroadcastTxSync(cr)}static decodeBroadcastTxCommit(cr){return decodeBroadcastTxCommit$1(cr.result)}static decodeCommit(cr){return decodeCommitResponse$1(cr.result)}static decodeGenesis(cr){return decodeGenesis$1((0,encodings_1$3.assertObject)(cr.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(cr){return decodeNumUnconfirmedTxs$1(cr.result)}static decodeStatus(cr){return decodeStatus$1(cr.result)}static decodeNewBlockEvent(cr){return decodeBlock$1(cr.data.value.block)}static decodeNewBlockHeaderEvent(cr){return decodeHeader$1(cr.data.value.header)}static decodeTxEvent(cr){return decodeTxEvent$1(cr.data.value.TxResult)}static decodeTx(cr){return decodeTxResponse$1(cr.result)}static decodeTxSearch(cr){return decodeTxSearch$1(cr.result)}static decodeValidators(cr){return decodeValidators$1(cr.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$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$3(cr,_e,gr);return __setModuleDefault$3(cr,_e),cr};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$3(requests$7);class Tendermint34Client{static async connect(cr){let gr;return typeof cr=="object"?gr=new rpcclients_1$1.HttpClient(cr):gr=cr.startsWith("http://")||cr.startsWith("https://")?new rpcclients_1$1.HttpClient(cr):new rpcclients_1$1.WebsocketClient(cr),await this.detectVersion(gr),Tendermint34Client.create(gr)}static async create(cr){return new Tendermint34Client(cr)}static async detectVersion(cr){const gr=(0,jsonrpc_1$2.createJsonRpcRequest)(requests$4.Method.Status),Cr=(await cr.execute(gr)).result;if(!Cr||!Cr.node_info)throw new Error("Unrecognized format for status response");const Vr=Cr.node_info.version;if(typeof Vr!="string")throw new Error("Unrecognized version format: must be string");return Vr}constructor(cr){this.client=cr,this.p=adaptor_1$1.adaptor34.params,this.r=adaptor_1$1.adaptor34.responses}disconnect(){this.client.disconnect()}async abciInfo(){const cr={method:requests$4.Method.AbciInfo};return this.doCall(cr,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(cr){const gr={params:cr,method:requests$4.Method.AbciQuery};return this.doCall(gr,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(cr){const gr={method:requests$4.Method.Block,params:{height:cr}};return this.doCall(gr,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(cr){const gr={method:requests$4.Method.BlockResults,params:{height:cr}};return this.doCall(gr,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(cr){const gr={params:cr,method:requests$4.Method.BlockSearch},Cr=await this.doCall(gr,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...Cr,blocks:[...Cr.blocks].sort((Vr,tt)=>Vr.block.header.height-tt.block.header.height)}}async blockSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.blockSearch({...cr,page:gr});Cr.push(...tt.blocks),Cr.lengthtt.block.header.height-nt.block.header.height),{totalCount:Cr.length,blocks:Cr}}async blockchain(cr,gr){const Cr={method:requests$4.Method.Blockchain,params:{minHeight:cr,maxHeight:gr}};return this.doCall(Cr,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(cr){const gr={params:cr,method:requests$4.Method.BroadcastTxSync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(cr){const gr={params:cr,method:requests$4.Method.BroadcastTxAsync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(cr){const gr={params:cr,method:requests$4.Method.BroadcastTxCommit};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(cr){const gr={method:requests$4.Method.Commit,params:{height:cr}};return this.doCall(gr,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const cr={method:requests$4.Method.Genesis};return this.doCall(cr,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const cr={method:requests$4.Method.Health};return this.doCall(cr,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const cr={method:requests$4.Method.NumUnconfirmedTxs};return this.doCall(cr,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const cr={method:requests$4.Method.Status};return this.doCall(cr,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const cr={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlock}};return this.subscribe(cr,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const cr={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlockHeader}};return this.subscribe(cr,this.r.decodeNewBlockHeaderEvent)}subscribeTx(cr){const gr={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.Tx,raw:cr}};return this.subscribe(gr,this.r.decodeTxEvent)}async tx(cr){const gr={params:cr,method:requests$4.Method.Tx};return this.doCall(gr,this.p.encodeTx,this.r.decodeTx)}async txSearch(cr){const gr={params:cr,method:requests$4.Method.TxSearch};return this.doCall(gr,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.txSearch({...cr,page:gr});Cr.push(...tt.txs),Cr.lengthgr(Vr))}}tendermint34client.Tendermint34Client=Tendermint34Client,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Tendermint34Client=_e.VoteType=_e.broadcastTxSyncSuccess=_e.broadcastTxCommitSuccess=_e.SubscriptionEventType=_e.Method=void 0;var cr=requests$7;Object.defineProperty(_e,"Method",{enumerable:!0,get:function(){return cr.Method}}),Object.defineProperty(_e,"SubscriptionEventType",{enumerable:!0,get:function(){return cr.SubscriptionEventType}});var gr=responses$3;Object.defineProperty(_e,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return gr.broadcastTxCommitSuccess}}),Object.defineProperty(_e,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return gr.broadcastTxSyncSuccess}}),Object.defineProperty(_e,"VoteType",{enumerable:!0,get:function(){return gr.VoteType}});var Cr=tendermint34client;Object.defineProperty(_e,"Tendermint34Client",{enumerable:!0,get:function(){return Cr.Tendermint34Client}})}(tendermint34);var tendermint37={},requests$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.buildQuery=_e.SubscriptionEventType=_e.Method=void 0,function(gr){gr.AbciInfo="abci_info",gr.AbciQuery="abci_query",gr.Block="block",gr.Blockchain="blockchain",gr.BlockResults="block_results",gr.BlockSearch="block_search",gr.BroadcastTxAsync="broadcast_tx_async",gr.BroadcastTxSync="broadcast_tx_sync",gr.BroadcastTxCommit="broadcast_tx_commit",gr.Commit="commit",gr.Genesis="genesis",gr.Health="health",gr.NumUnconfirmedTxs="num_unconfirmed_txs",gr.Status="status",gr.Subscribe="subscribe",gr.Tx="tx",gr.TxSearch="tx_search",gr.Validators="validators",gr.Unsubscribe="unsubscribe"}(_e.Method||(_e.Method={})),function(gr){gr.NewBlock="NewBlock",gr.NewBlockHeader="NewBlockHeader",gr.Tx="Tx"}(_e.SubscriptionEventType||(_e.SubscriptionEventType={}));function cr(gr){const Cr=(gr.tags?gr.tags:[]).map(tt=>`${tt.key}='${tt.value}'`),Vr=gr.raw?[gr.raw]:[];return[...Cr,...Vr].join(" AND ")}_e.buildQuery=cr})(requests$3);var responses$1={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.VoteType=_e.broadcastTxCommitSuccess=_e.broadcastTxSyncSuccess=void 0;function cr(Cr){return Cr.code===0}_e.broadcastTxSyncSuccess=cr;function gr(Cr){return Cr.checkTx.code===0&&!!Cr.deliverTx&&Cr.deliverTx.code===0}_e.broadcastTxCommitSuccess=gr,function(Cr){Cr[Cr.PreVote=1]="PreVote",Cr[Cr.PreCommit=2]="PreCommit"}(_e.VoteType||(_e.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$9=build$c;function assertSet(_e){if(_e===void 0)throw new Error("Value must not be undefined");if(_e===null)throw new Error("Value must not be null");return _e}encodings.assertSet=assertSet;function assertBoolean(_e){if(assertSet(_e),typeof _e!="boolean")throw new Error("Value must be a boolean");return _e}encodings.assertBoolean=assertBoolean;function assertString(_e){if(assertSet(_e),typeof _e!="string")throw new Error("Value must be a string");return _e}encodings.assertString=assertString;function assertNumber(_e){if(assertSet(_e),typeof _e!="number")throw new Error("Value must be a number");return _e}encodings.assertNumber=assertNumber;function assertArray(_e){if(assertSet(_e),!Array.isArray(_e))throw new Error("Value must be a an array");return _e}encodings.assertArray=assertArray;function assertObject(_e){if(assertSet(_e),typeof _e!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(_e)!=="[object Object]")throw new Error("Value must be a simple object");return _e}encodings.assertObject=assertObject;function assertNotEmpty(_e){if(assertSet(_e),typeof _e=="number"&&_e===0)throw new Error("must provide a non-zero value");if(_e.length===0)throw new Error("must provide a non-empty value");return _e}encodings.assertNotEmpty=assertNotEmpty;function may(_e,cr){return cr==null?void 0:_e(cr)}encodings.may=may;function dictionaryToStringMap(_e){const cr=new Map;for(const gr of Object.keys(_e)){const Cr=_e[gr];if(typeof Cr!="string")throw new Error("Found dictionary value of type other than string");cr.set(gr,Cr)}return cr}encodings.dictionaryToStringMap=dictionaryToStringMap;function encodeString$1(_e){const cr=(0,encoding_1$9.toUtf8)(_e);return Uint8Array.from([cr.length,...cr])}encodings.encodeString=encodeString$1;function encodeUvarint(_e){return _e>=128?Uint8Array.from([_e&255|128,...encodeUvarint(_e>>7)]):Uint8Array.from([_e&255])}encodings.encodeUvarint=encodeUvarint;function encodeTime(_e){const cr=_e.getTime(),gr=Math.floor(cr/1e3),Cr=gr?[8,...encodeUvarint(gr)]:new Uint8Array,Vr=(_e.nanoseconds||0)+cr%1e3*1e6,tt=Vr?[16,...encodeUvarint(Vr)]:new Uint8Array;return Uint8Array.from([...Cr,...tt])}encodings.encodeTime=encodeTime;function encodeBytes(_e){if(_e.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return _e.length?Uint8Array.from([_e.length,..._e]):new Uint8Array}encodings.encodeBytes=encodeBytes;function encodeVersion(_e){const cr=_e.block?Uint8Array.from([8,...encodeUvarint(_e.block)]):new Uint8Array,gr=_e.app?Uint8Array.from([16,...encodeUvarint(_e.app)]):new Uint8Array;return Uint8Array.from([...cr,...gr])}encodings.encodeVersion=encodeVersion;function encodeBlockId(_e){return Uint8Array.from([10,_e.hash.length,..._e.hash,18,_e.parts.hash.length+4,8,_e.parts.total,18,_e.parts.hash.length,..._e.parts.hash])}encodings.encodeBlockId=encodeBlockId,Object.defineProperty(hasher,"__esModule",{value:!0}),hasher.hashBlock=hasher.hashTx=void 0;const crypto_1$2=build$7,encodings_1$2=encodings;function hashTx(_e){return(0,crypto_1$2.sha256)(_e)}hasher.hashTx=hashTx;function getSplitPoint(_e){if(_e<1)throw new Error("Cannot split an empty tree");const cr=2**Math.floor(Math.log2(_e));return cr<_e?cr:cr/2}function hashLeaf(_e){const cr=new crypto_1$2.Sha256(Uint8Array.from([0]));return cr.update(_e),cr.digest()}function hashInner(_e,cr){const gr=new crypto_1$2.Sha256(Uint8Array.from([1]));return gr.update(_e),gr.update(cr),gr.digest()}function hashTree(_e){switch(_e.length){case 0:throw new Error("Cannot hash empty tree");case 1:return hashLeaf(_e[0]);default:{const cr=getSplitPoint(_e.length),gr=hashTree(_e.slice(0,cr)),Cr=hashTree(_e.slice(cr));return hashInner(gr,Cr)}}}function hashBlock(_e){if(!_e.lastBlockId)throw new Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");const cr=[(0,encodings_1$2.encodeVersion)(_e.version),(0,encodings_1$2.encodeString)(_e.chainId),(0,encodings_1$2.encodeUvarint)(_e.height),(0,encodings_1$2.encodeTime)(_e.time),(0,encodings_1$2.encodeBlockId)(_e.lastBlockId),(0,encodings_1$2.encodeBytes)(_e.lastCommitHash),(0,encodings_1$2.encodeBytes)(_e.dataHash),(0,encodings_1$2.encodeBytes)(_e.validatorsHash),(0,encodings_1$2.encodeBytes)(_e.nextValidatorsHash),(0,encodings_1$2.encodeBytes)(_e.consensusHash),(0,encodings_1$2.encodeBytes)(_e.appHash),(0,encodings_1$2.encodeBytes)(_e.lastResultsHash),(0,encodings_1$2.encodeBytes)(_e.evidenceHash),(0,encodings_1$2.encodeBytes)(_e.proposerAddress)];return hashTree(cr)}hasher.hashBlock=hashBlock;var requests$2={},__createBinding$2=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$2=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$2=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$2(cr,_e,gr);return __setModuleDefault$2(cr,_e),cr};Object.defineProperty(requests$2,"__esModule",{value:!0}),requests$2.Params=void 0;const encoding_1$8=build$c,inthelpers_1$1=inthelpers,jsonrpc_1$1=jsonrpc,encodings_1$1=encodings,requests$1=__importStar$2(requests$3);function encodeHeightParam(_e){return{height:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.height)}}function encodeBlockchainRequestParams(_e){return{minHeight:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.minHeight),maxHeight:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.maxHeight)}}function encodeBlockSearchParams(_e){return{query:_e.query,page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.page),per_page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeAbciQueryParams(_e){return{path:(0,encodings_1$1.assertNotEmpty)(_e.path),data:(0,encoding_1$8.toHex)(_e.data),height:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.height),prove:_e.prove}}function encodeBroadcastTxParams(_e){return{tx:(0,encoding_1$8.toBase64)((0,encodings_1$1.assertNotEmpty)(_e.tx))}}function encodeTxParams(_e){return{hash:(0,encoding_1$8.toBase64)((0,encodings_1$1.assertNotEmpty)(_e.hash)),prove:_e.prove}}function encodeTxSearchParams(_e){return{query:_e.query,prove:_e.prove,page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.page),per_page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeValidatorsParams(_e){return{height:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.height),page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.page),per_page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.per_page)}}class Params{static encodeAbciInfo(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeAbciQuery(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeAbciQueryParams(cr.params))}static encodeBlock(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeHeightParam(cr.params))}static encodeBlockchain(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeBlockchainRequestParams(cr.params))}static encodeBlockResults(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeHeightParam(cr.params))}static encodeBlockSearch(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeBlockSearchParams(cr.params))}static encodeBroadcastTx(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeBroadcastTxParams(cr.params))}static encodeCommit(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeHeightParam(cr.params))}static encodeGenesis(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeHealth(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeNumUnconfirmedTxs(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeStatus(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeSubscribe(cr){const gr={key:"tm.event",value:cr.query.type},Cr=requests$1.buildQuery({tags:[gr],raw:cr.query.raw});return(0,jsonrpc_1$1.createJsonRpcRequest)("subscribe",{query:Cr})}static encodeTx(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeTxParams(cr.params))}static encodeTxSearch(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeTxSearchParams(cr.params))}static encodeValidators(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeValidatorsParams(cr.params))}}requests$2.Params=Params;var responses={};Object.defineProperty(responses,"__esModule",{value:!0}),responses.Responses=responses.decodeValidatorInfo=responses.decodeValidatorGenesis=responses.decodeValidatorUpdate=responses.decodeEvent=void 0;const encoding_1$7=build$c,utils_1$5=build$6,dates_1=dates,inthelpers_1=inthelpers,types_1$2=types$2,encodings_1=encodings,hasher_1$1=hasher;function decodeAbciInfo(_e){return{data:_e.data,lastBlockHeight:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.last_block_height),lastBlockAppHash:(0,encodings_1.may)(encoding_1$7.fromBase64,_e.last_block_app_hash)}}function decodeQueryProof(_e){return{ops:_e.ops.map(cr=>({type:cr.type,key:(0,encoding_1$7.fromBase64)(cr.key),data:(0,encoding_1$7.fromBase64)(cr.data)}))}}function decodeAbciQuery(_e){return{key:(0,encoding_1$7.fromBase64)((0,encodings_1.assertString)(_e.key??"")),value:(0,encoding_1$7.fromBase64)((0,encodings_1.assertString)(_e.value??"")),proof:(0,encodings_1.may)(decodeQueryProof,_e.proofOps),height:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.height),code:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.code),codespace:(0,encodings_1.assertString)(_e.codespace??""),index:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.index),log:_e.log,info:(0,encodings_1.assertString)(_e.info??"")}}function decodeEventAttribute(_e){return{key:(0,encodings_1.assertNotEmpty)(_e.key),value:_e.value??""}}function decodeAttributes(_e){return(0,encodings_1.assertArray)(_e).map(decodeEventAttribute)}function decodeEvent(_e){return{type:_e.type,attributes:_e.attributes?decodeAttributes(_e.attributes):[]}}responses.decodeEvent=decodeEvent;function decodeEvents(_e){return(0,encodings_1.assertArray)(_e).map(decodeEvent)}function decodeTxData(_e){return{code:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(_e.code??0)),codespace:_e.codespace,log:_e.log,data:(0,encodings_1.may)(encoding_1$7.fromBase64,_e.data),events:_e.events?decodeEvents(_e.events):[],gasWanted:(0,inthelpers_1.apiToSmallInt)(_e.gas_wanted??"0"),gasUsed:(0,inthelpers_1.apiToSmallInt)(_e.gas_used??"0")}}function decodePubkey(_e){if("Sum"in _e){const[[cr,gr]]=Object.entries(_e.Sum.value);return(0,utils_1$5.assert)(cr==="ed25519"||cr==="secp256k1",`unknown pubkey type: ${cr}`),{algorithm:cr,data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(gr))}}else switch(_e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.value))};default:throw new Error(`unknown pubkey type: ${_e.type}`)}}function decodeBlockParams(_e){return{maxBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_bytes)),maxGas:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_gas))}}function decodeEvidenceParams(_e){return{maxAgeNumBlocks:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_age_duration))}}function decodeConsensusParams(_e){return{block:decodeBlockParams((0,encodings_1.assertObject)(_e.block)),evidence:decodeEvidenceParams((0,encodings_1.assertObject)(_e.evidence))}}function decodeValidatorUpdate(_e){return{pubkey:decodePubkey((0,encodings_1.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)(_e.power??"0")}}responses.decodeValidatorUpdate=decodeValidatorUpdate;function decodeBlockResults(_e){return{height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),results:(_e.txs_results||[]).map(decodeTxData),validatorUpdates:(_e.validator_updates||[]).map(decodeValidatorUpdate),consensusUpdates:(0,encodings_1.may)(decodeConsensusParams,_e.consensus_param_updates),beginBlockEvents:decodeEvents(_e.begin_block_events||[]),endBlockEvents:decodeEvents(_e.end_block_events||[])}}function decodeBlockId(_e){return{hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash)),parts:{total:(0,encodings_1.assertNotEmpty)(_e.parts.total),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.parts.hash))}}}function decodeBlockVersion(_e){return{block:(0,inthelpers_1.apiToSmallInt)(_e.block),app:(0,inthelpers_1.apiToSmallInt)(_e.app??0)}}function decodeHeader(_e){return{version:decodeBlockVersion(_e.version),chainId:(0,encodings_1.assertNotEmpty)(_e.chain_id),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),time:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(_e.time)),lastBlockId:_e.last_block_id.hash?decodeBlockId(_e.last_block_id):null,lastCommitHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.last_commit_hash)),dataHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.data_hash)),validatorsHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.validators_hash)),nextValidatorsHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.next_validators_hash)),consensusHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.consensus_hash)),appHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.app_hash)),lastResultsHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.last_results_hash)),evidenceHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.evidence_hash)),proposerAddress:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.proposer_address))}}function decodeBlockMeta(_e){return{blockId:decodeBlockId(_e.block_id),blockSize:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.block_size)),header:decodeHeader(_e.header),numTxs:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.num_txs))}}function decodeBlockchain(_e){return{lastHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.last_height)),blockMetas:(0,encodings_1.assertArray)(_e.block_metas).map(decodeBlockMeta)}}function decodeBroadcastTxSync(_e){return{...decodeTxData(_e),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash))}}function decodeBroadcastTxCommit(_e){return{height:(0,inthelpers_1.apiToSmallInt)(_e.height),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash)),checkTx:decodeTxData((0,encodings_1.assertObject)(_e.check_tx)),deliverTx:(0,encodings_1.may)(decodeTxData,_e.deliver_tx)}}function decodeBlockIdFlag(_e){return(0,utils_1$5.assert)(_e in types_1$2.BlockIdFlag),_e}function decodeOptionalTime(_e){return _e&&!_e.startsWith("0001-01-01")?(0,dates_1.fromRfc3339WithNanoseconds)(_e):void 0}function decodeCommitSignature(_e){return{blockIdFlag:decodeBlockIdFlag(_e.block_id_flag),validatorAddress:_e.validator_address?(0,encoding_1$7.fromHex)(_e.validator_address):void 0,timestamp:decodeOptionalTime(_e.timestamp),signature:_e.signature?(0,encoding_1$7.fromBase64)(_e.signature):void 0}}function decodeCommit(_e){return{blockId:decodeBlockId((0,encodings_1.assertObject)(_e.block_id)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),round:(0,inthelpers_1.apiToSmallInt)(_e.round),signatures:(0,encodings_1.assertArray)(_e.signatures).map(decodeCommitSignature)}}function decodeCommitResponse(_e){return{canonical:(0,encodings_1.assertBoolean)(_e.canonical),header:decodeHeader(_e.signed_header.header),commit:decodeCommit(_e.signed_header.commit)}}function decodeValidatorGenesis(_e){return{address:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.address)),pubkey:decodePubkey((0,encodings_1.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(_e.power))}}responses.decodeValidatorGenesis=decodeValidatorGenesis;function decodeGenesis(_e){return{genesisTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(_e.genesis_time)),chainId:(0,encodings_1.assertNotEmpty)(_e.chain_id),consensusParams:decodeConsensusParams(_e.consensus_params),validators:_e.validators?(0,encodings_1.assertArray)(_e.validators).map(decodeValidatorGenesis):[],appHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.app_hash)),appState:_e.app_state}}function decodeValidatorInfo(_e){return{pubkey:decodePubkey((0,encodings_1.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(_e.voting_power)),address:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.address)),proposerPriority:_e.proposer_priority?(0,inthelpers_1.apiToSmallInt)(_e.proposer_priority):void 0}}responses.decodeValidatorInfo=decodeValidatorInfo;function decodeNodeInfo(_e){return{id:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.id)),listenAddr:(0,encodings_1.assertNotEmpty)(_e.listen_addr),network:(0,encodings_1.assertNotEmpty)(_e.network),version:(0,encodings_1.assertString)(_e.version),channels:(0,encodings_1.assertNotEmpty)(_e.channels),moniker:(0,encodings_1.assertNotEmpty)(_e.moniker),other:(0,encodings_1.dictionaryToStringMap)(_e.other),protocolVersion:{app:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.protocol_version.app)),block:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.protocol_version.block)),p2p:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.protocol_version.p2p))}}}function decodeSyncInfo(_e){const cr=_e.earliest_block_height?(0,inthelpers_1.apiToSmallInt)(_e.earliest_block_height):void 0,gr=_e.earliest_block_time?(0,dates_1.fromRfc3339WithNanoseconds)(_e.earliest_block_time):void 0;return{earliestAppHash:_e.earliest_app_hash?(0,encoding_1$7.fromHex)(_e.earliest_app_hash):void 0,earliestBlockHash:_e.earliest_block_hash?(0,encoding_1$7.fromHex)(_e.earliest_block_hash):void 0,earliestBlockHeight:cr||void 0,earliestBlockTime:gr!=null&&gr.getTime()?gr:void 0,latestBlockHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.latest_block_hash)),latestAppHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.latest_app_hash)),latestBlockTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(_e.latest_block_time)),latestBlockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.latest_block_height)),catchingUp:(0,encodings_1.assertBoolean)(_e.catching_up)}}function decodeStatus(_e){return{nodeInfo:decodeNodeInfo(_e.node_info),syncInfo:decodeSyncInfo(_e.sync_info),validatorInfo:decodeValidatorInfo(_e.validator_info)}}function decodeTxProof(_e){return{data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.data)),rootHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.root_hash)),proof:{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.proof.total)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.proof.index)),leafHash:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.proof.leaf_hash)),aunts:(0,encodings_1.assertArray)(_e.proof.aunts).map(encoding_1$7.fromBase64)}}}function decodeTxResponse(_e){return{tx:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.tx)),result:decodeTxData((0,encodings_1.assertObject)(_e.tx_result)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(_e.index)),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash)),proof:(0,encodings_1.may)(decodeTxProof,_e.proof)}}function decodeTxSearch(_e){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total_count)),txs:(0,encodings_1.assertArray)(_e.txs).map(decodeTxResponse)}}function decodeTxEvent(_e){const cr=(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.tx));return{tx:cr,hash:(0,hasher_1$1.hashTx)(cr),result:decodeTxData(_e.result),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height))}}function decodeValidators(_e){return{blockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.block_height)),validators:(0,encodings_1.assertArray)(_e.validators).map(decodeValidatorInfo),count:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.count)),total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total))}}function decodeBlock(_e){var cr;return{header:decodeHeader((0,encodings_1.assertObject)(_e.header)),lastCommit:_e.last_commit.block_id.hash?decodeCommit((0,encodings_1.assertObject)(_e.last_commit)):null,txs:_e.data.txs?(0,encodings_1.assertArray)(_e.data.txs).map(encoding_1$7.fromBase64):[],evidence:((cr=_e.evidence)==null?void 0:cr.evidence)??[]}}function decodeBlockResponse(_e){return{blockId:decodeBlockId(_e.block_id),block:decodeBlock(_e.block)}}function decodeBlockSearch(_e){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total_count)),blocks:(0,encodings_1.assertArray)(_e.blocks).map(decodeBlockResponse)}}function decodeNumUnconfirmedTxs(_e){return{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total)),totalBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total_bytes))}}class Responses{static decodeAbciInfo(cr){return decodeAbciInfo((0,encodings_1.assertObject)(cr.result.response))}static decodeAbciQuery(cr){return decodeAbciQuery((0,encodings_1.assertObject)(cr.result.response))}static decodeBlock(cr){return decodeBlockResponse(cr.result)}static decodeBlockResults(cr){return decodeBlockResults(cr.result)}static decodeBlockSearch(cr){return decodeBlockSearch(cr.result)}static decodeBlockchain(cr){return decodeBlockchain(cr.result)}static decodeBroadcastTxSync(cr){return decodeBroadcastTxSync(cr.result)}static decodeBroadcastTxAsync(cr){return Responses.decodeBroadcastTxSync(cr)}static decodeBroadcastTxCommit(cr){return decodeBroadcastTxCommit(cr.result)}static decodeCommit(cr){return decodeCommitResponse(cr.result)}static decodeGenesis(cr){return decodeGenesis((0,encodings_1.assertObject)(cr.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(cr){return decodeNumUnconfirmedTxs(cr.result)}static decodeStatus(cr){return decodeStatus(cr.result)}static decodeNewBlockEvent(cr){return decodeBlock(cr.data.value.block)}static decodeNewBlockHeaderEvent(cr){return decodeHeader(cr.data.value.header)}static decodeTxEvent(cr){return decodeTxEvent(cr.data.value.TxResult)}static decodeTx(cr){return decodeTxResponse(cr.result)}static decodeTxSearch(cr){return decodeTxSearch(cr.result)}static decodeValidators(cr){return decodeValidators(cr.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$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$1(cr,_e,gr);return __setModuleDefault$1(cr,_e),cr};Object.defineProperty(tendermint37client,"__esModule",{value:!0}),tendermint37client.Tendermint37Client=void 0;const jsonrpc_1=jsonrpc,rpcclients_1=rpcclients,adaptor_1=adaptor,requests=__importStar$1(requests$3);class Tendermint37Client{static async connect(cr){let gr;return typeof cr=="object"?gr=new rpcclients_1.HttpClient(cr):gr=cr.startsWith("http://")||cr.startsWith("https://")?new rpcclients_1.HttpClient(cr):new rpcclients_1.WebsocketClient(cr),await this.detectVersion(gr),Tendermint37Client.create(gr)}static async create(cr){return new Tendermint37Client(cr)}static async detectVersion(cr){const gr=(0,jsonrpc_1.createJsonRpcRequest)(requests.Method.Status),Cr=(await cr.execute(gr)).result;if(!Cr||!Cr.node_info)throw new Error("Unrecognized format for status response");const Vr=Cr.node_info.version;if(typeof Vr!="string")throw new Error("Unrecognized version format: must be string");return Vr}constructor(cr){this.client=cr,this.p=adaptor_1.adaptor37.params,this.r=adaptor_1.adaptor37.responses}disconnect(){this.client.disconnect()}async abciInfo(){const cr={method:requests.Method.AbciInfo};return this.doCall(cr,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(cr){const gr={params:cr,method:requests.Method.AbciQuery};return this.doCall(gr,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(cr){const gr={method:requests.Method.Block,params:{height:cr}};return this.doCall(gr,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(cr){const gr={method:requests.Method.BlockResults,params:{height:cr}};return this.doCall(gr,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(cr){const gr={params:cr,method:requests.Method.BlockSearch},Cr=await this.doCall(gr,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...Cr,blocks:[...Cr.blocks].sort((Vr,tt)=>Vr.block.header.height-tt.block.header.height)}}async blockSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.blockSearch({...cr,page:gr});Cr.push(...tt.blocks),Cr.lengthtt.block.header.height-nt.block.header.height),{totalCount:Cr.length,blocks:Cr}}async blockchain(cr,gr){const Cr={method:requests.Method.Blockchain,params:{minHeight:cr,maxHeight:gr}};return this.doCall(Cr,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(cr){const gr={params:cr,method:requests.Method.BroadcastTxSync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(cr){const gr={params:cr,method:requests.Method.BroadcastTxAsync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(cr){const gr={params:cr,method:requests.Method.BroadcastTxCommit};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(cr){const gr={method:requests.Method.Commit,params:{height:cr}};return this.doCall(gr,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const cr={method:requests.Method.Genesis};return this.doCall(cr,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const cr={method:requests.Method.Health};return this.doCall(cr,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const cr={method:requests.Method.NumUnconfirmedTxs};return this.doCall(cr,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const cr={method:requests.Method.Status};return this.doCall(cr,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const cr={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlock}};return this.subscribe(cr,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const cr={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlockHeader}};return this.subscribe(cr,this.r.decodeNewBlockHeaderEvent)}subscribeTx(cr){const gr={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.Tx,raw:cr}};return this.subscribe(gr,this.r.decodeTxEvent)}async tx(cr){const gr={params:cr,method:requests.Method.Tx};return this.doCall(gr,this.p.encodeTx,this.r.decodeTx)}async txSearch(cr){const gr={params:cr,method:requests.Method.TxSearch};return this.doCall(gr,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.txSearch({...cr,page:gr});Cr.push(...tt.txs),Cr.lengthgr(Vr))}}tendermint37client.Tendermint37Client=Tendermint37Client,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Tendermint37Client=_e.VoteType=_e.broadcastTxSyncSuccess=_e.broadcastTxCommitSuccess=_e.SubscriptionEventType=_e.Method=void 0;var cr=requests$3;Object.defineProperty(_e,"Method",{enumerable:!0,get:function(){return cr.Method}}),Object.defineProperty(_e,"SubscriptionEventType",{enumerable:!0,get:function(){return cr.SubscriptionEventType}});var gr=responses$1;Object.defineProperty(_e,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return gr.broadcastTxCommitSuccess}}),Object.defineProperty(_e,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return gr.broadcastTxSyncSuccess}}),Object.defineProperty(_e,"VoteType",{enumerable:!0,get:function(){return gr.VoteType}});var Cr=tendermint37client;Object.defineProperty(_e,"Tendermint37Client",{enumerable:!0,get:function(){return Cr.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(_e){return _e instanceof tendermint34_1.Tendermint34Client}tendermintclient.isTendermint34Client=isTendermint34Client;function isTendermint37Client(_e){return _e instanceof tendermint37_1.Tendermint37Client}tendermintclient.isTendermint37Client=isTendermint37Client,function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,po,no,Nt){Nt===void 0&&(Nt=no);var eo=Object.getOwnPropertyDescriptor(po,no);(!eo||("get"in eo?!po.__esModule:eo.writable||eo.configurable))&&(eo={enumerable:!0,get:function(){return po[no]}}),Object.defineProperty(ht,Nt,eo)}:function(ht,po,no,Nt){Nt===void 0&&(Nt=no),ht[Nt]=po[no]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,po){Object.defineProperty(ht,"default",{enumerable:!0,value:po})}:function(ht,po){ht.default=po}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var po={};if(ht!=null)for(var no in ht)no!=="default"&&Object.prototype.hasOwnProperty.call(ht,no)&&cr(po,ht,no);return gr(po,ht),po};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BlockIdFlag=_e.isTendermint37Client=_e.isTendermint34Client=_e.Tendermint37Client=_e.tendermint37=_e.Tendermint34Client=_e.tendermint34=_e.VoteType=_e.SubscriptionEventType=_e.Method=_e.broadcastTxSyncSuccess=_e.broadcastTxCommitSuccess=_e.WebsocketClient=_e.HttpClient=_e.HttpBatchClient=_e.toSeconds=_e.toRfc3339WithNanoseconds=_e.fromSeconds=_e.fromRfc3339WithNanoseconds=_e.DateTime=_e.rawSecp256k1PubkeyToRawAddress=_e.rawEd25519PubkeyToRawAddress=_e.pubkeyToRawAddress=_e.pubkeyToAddress=void 0;var Vr=addresses;Object.defineProperty(_e,"pubkeyToAddress",{enumerable:!0,get:function(){return Vr.pubkeyToAddress}}),Object.defineProperty(_e,"pubkeyToRawAddress",{enumerable:!0,get:function(){return Vr.pubkeyToRawAddress}}),Object.defineProperty(_e,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return Vr.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(_e,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return Vr.rawSecp256k1PubkeyToRawAddress}});var tt=dates;Object.defineProperty(_e,"DateTime",{enumerable:!0,get:function(){return tt.DateTime}}),Object.defineProperty(_e,"fromRfc3339WithNanoseconds",{enumerable:!0,get:function(){return tt.fromRfc3339WithNanoseconds}}),Object.defineProperty(_e,"fromSeconds",{enumerable:!0,get:function(){return tt.fromSeconds}}),Object.defineProperty(_e,"toRfc3339WithNanoseconds",{enumerable:!0,get:function(){return tt.toRfc3339WithNanoseconds}}),Object.defineProperty(_e,"toSeconds",{enumerable:!0,get:function(){return tt.toSeconds}});var nt=rpcclients;Object.defineProperty(_e,"HttpBatchClient",{enumerable:!0,get:function(){return nt.HttpBatchClient}}),Object.defineProperty(_e,"HttpClient",{enumerable:!0,get:function(){return nt.HttpClient}}),Object.defineProperty(_e,"WebsocketClient",{enumerable:!0,get:function(){return nt.WebsocketClient}});var st=tendermint34;Object.defineProperty(_e,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return st.broadcastTxCommitSuccess}}),Object.defineProperty(_e,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return st.broadcastTxSyncSuccess}}),Object.defineProperty(_e,"Method",{enumerable:!0,get:function(){return st.Method}}),Object.defineProperty(_e,"SubscriptionEventType",{enumerable:!0,get:function(){return st.SubscriptionEventType}}),Object.defineProperty(_e,"VoteType",{enumerable:!0,get:function(){return st.VoteType}}),_e.tendermint34=Cr(tendermint34);var dt=tendermint34;Object.defineProperty(_e,"Tendermint34Client",{enumerable:!0,get:function(){return dt.Tendermint34Client}}),_e.tendermint37=Cr(tendermint37);var kt=tendermint37;Object.defineProperty(_e,"Tendermint37Client",{enumerable:!0,get:function(){return kt.Tendermint37Client}});var qt=tendermintclient;Object.defineProperty(_e,"isTendermint34Client",{enumerable:!0,get:function(){return qt.isTendermint34Client}}),Object.defineProperty(_e,"isTendermint37Client",{enumerable:!0,get:function(){return qt.isTendermint37Client}});var ro=types$2;Object.defineProperty(_e,"BlockIdFlag",{enumerable:!0,get:function(){return ro.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$8,encoding_1$6=build$c,math_1$3=build$b,tendermint_rpc_1$2=build$3,utils_1$4=build$6,abci_1$1=abci,accounts_1=accounts,events_1=events,modules_1$2=modules$1,queryclient_1=queryclient$1;class TimeoutError extends Error{constructor(cr,gr){super(cr),this.txId=gr}}stargateclient.TimeoutError=TimeoutError;function isDeliverTxFailure(_e){return!!_e.code}stargateclient.isDeliverTxFailure=isDeliverTxFailure;function isDeliverTxSuccess(_e){return!isDeliverTxFailure(_e)}stargateclient.isDeliverTxSuccess=isDeliverTxSuccess;function assertIsDeliverTxSuccess(_e){if(isDeliverTxFailure(_e))throw new Error(`Error when broadcasting tx ${_e.transactionHash} at height ${_e.height}. Code: ${_e.code}; Raw log: ${_e.rawLog}`)}stargateclient.assertIsDeliverTxSuccess=assertIsDeliverTxSuccess;function assertIsDeliverTxFailure(_e){if(isDeliverTxSuccess(_e))throw new Error(`Transaction ${_e.transactionHash} did not fail at height ${_e.height}. Code: ${_e.code}; Raw log: ${_e.rawLog}`)}stargateclient.assertIsDeliverTxFailure=assertIsDeliverTxFailure;class BroadcastTxError extends Error{constructor(cr,gr,Cr){super(`Broadcasting transaction failed with code ${cr} (codespace: ${gr}). Log: ${Cr}`),this.code=cr,this.codespace=gr,this.log=Cr}}stargateclient.BroadcastTxError=BroadcastTxError;class StargateClient{static async connect(cr,gr={}){let Cr;const Vr=await tendermint_rpc_1$2.Tendermint37Client.connect(cr);return(await Vr.status()).nodeInfo.version.startsWith("0.37.")?Cr=Vr:(Vr.disconnect(),Cr=await tendermint_rpc_1$2.Tendermint34Client.connect(cr)),StargateClient.create(Cr,gr)}static async create(cr,gr={}){return new StargateClient(cr,gr)}constructor(cr,gr){cr&&(this.tmClient=cr,this.queryClient=queryclient_1.QueryClient.withExtensions(cr,modules_1$2.setupAuthExtension,modules_1$2.setupBankExtension,modules_1$2.setupStakingExtension,modules_1$2.setupTxExtension));const{accountParser:Cr=accounts_1.accountFromAny}=gr;this.accountParser=Cr}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 cr=(await this.forceGetTmClient().status()).nodeInfo.network;if(!cr)throw new Error("Chain ID must not be empty");this.chainId=cr}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(cr){try{const gr=await this.forceGetQueryClient().auth.account(cr);return gr?this.accountParser(gr):null}catch(gr){if(/rpc error: code = NotFound/i.test(gr.toString()))return null;throw gr}}async getSequence(cr){const gr=await this.getAccount(cr);if(!gr)throw new Error(`Account '${cr}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:gr.accountNumber,sequence:gr.sequence}}async getBlock(cr){const gr=await this.forceGetTmClient().block(cr);return{id:(0,encoding_1$6.toHex)(gr.blockId.hash).toUpperCase(),header:{version:{block:new math_1$3.Uint53(gr.block.header.version.block).toString(),app:new math_1$3.Uint53(gr.block.header.version.app).toString()},height:gr.block.header.height,chainId:gr.block.header.chainId,time:(0,tendermint_rpc_1$2.toRfc3339WithNanoseconds)(gr.block.header.time)},txs:gr.block.txs}}async getBalance(cr,gr){return this.forceGetQueryClient().bank.balance(cr,gr)}async getAllBalances(cr){return this.forceGetQueryClient().bank.allBalances(cr)}async getBalanceStaked(cr){const gr=[];let Cr;do{const{delegationResponses:Vr,pagination:tt}=await this.forceGetQueryClient().staking.delegatorDelegations(cr,Cr),nt=Vr||[];gr.push(...nt),Cr=tt==null?void 0:tt.nextKey}while(Cr!==void 0&&Cr.length!==0);return gr.reduce((Vr,tt)=>((0,utils_1$4.assert)(tt.balance),Vr!==null?(0,amino_1$1.addCoins)(Vr,tt.balance):tt.balance),null)}async getDelegation(cr,gr){var Vr;let Cr;try{Cr=(Vr=(await this.forceGetQueryClient().staking.delegation(cr,gr)).delegationResponse)==null?void 0:Vr.balance}catch(tt){if(!tt.toString().includes("key not found"))throw tt}return Cr||null}async getTx(cr){return(await this.txsQuery(`tx.hash='${cr}'`))[0]??null}async searchTx(cr){let gr;if(typeof cr=="string")gr=cr;else if(Array.isArray(cr))gr=cr.map(Cr=>`${Cr.key}='${Cr.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(gr)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(cr,gr=6e4,Cr=3e3){let Vr=!1;const tt=setTimeout(()=>{Vr=!0},gr),nt=async dt=>{if(Vr)throw new TimeoutError(`Transaction with ID ${dt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${gr/1e3} seconds.`,dt);await(0,utils_1$4.sleep)(Cr);const kt=await this.getTx(dt);return kt?{code:kt.code,height:kt.height,txIndex:kt.txIndex,events:kt.events,rawLog:kt.rawLog,transactionHash:dt,msgResponses:kt.msgResponses,gasUsed:kt.gasUsed,gasWanted:kt.gasWanted}:nt(dt)},st=await this.broadcastTxSync(cr);return new Promise((dt,kt)=>nt(st).then(qt=>{clearTimeout(tt),dt(qt)},qt=>{clearTimeout(tt),kt(qt)}))}async broadcastTxSync(cr){const gr=await this.forceGetTmClient().broadcastTxSync({tx:cr});return gr.code?Promise.reject(new BroadcastTxError(gr.code,gr.codespace??"",gr.log)):(0,encoding_1$6.toHex)(gr.hash).toUpperCase()}async txsQuery(cr){return(await this.forceGetTmClient().txSearchAll({query:cr})).txs.map(gr=>{const Cr=abci_1$1.TxMsgData.decode(gr.result.data??new Uint8Array);return{height:gr.height,txIndex:gr.index,hash:(0,encoding_1$6.toHex)(gr.hash).toUpperCase(),code:gr.result.code,events:gr.result.events.map(events_1.fromTendermintEvent),rawLog:gr.result.log||"",tx:gr.tx,msgResponses:Cr.msgResponses,gasUsed:gr.result.gasUsed,gasWanted:gr.result.gasWanted}})}}stargateclient.StargateClient=StargateClient,function(_e){var cr=commonjsGlobal&&commonjsGlobal.__importDefault||function(bo){return bo&&bo.__esModule?bo:{default:bo}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.SigningStargateClient=_e.createDefaultAminoConverters=_e.defaultRegistryTypes=void 0;const gr=build$8,Cr=build$c,Vr=build$b,tt=build$9,nt=build$3,st=build$6,dt=coin$1,kt=tx$b,qt=tx$2,ro=signing$1,ht=tx$e,po=tx$6,no=cr(long),Nt=aminotypes,eo=fee,Wt=modules$1,St=modules$1,Ot=stargateclient;_e.defaultRegistryTypes=[["/cosmos.base.v1beta1.Coin",dt.Coin],...Wt.authzTypes,...Wt.bankTypes,...Wt.distributionTypes,...Wt.feegrantTypes,...Wt.govTypes,...Wt.groupTypes,...Wt.stakingTypes,...Wt.ibcTypes,...Wt.vestingTypes];function uo(){return{...(0,St.createAuthzAminoConverters)(),...(0,St.createBankAminoConverters)(),...(0,St.createDistributionAminoConverters)(),...(0,St.createGovAminoConverters)(),...(0,St.createStakingAminoConverters)(),...(0,St.createIbcAminoConverters)(),...(0,St.createFeegrantAminoConverters)(),...(0,St.createVestingAminoConverters)()}}_e.createDefaultAminoConverters=uo;class go extends Ot.StargateClient{static async connectWithSigner(oo,Ro,pt={}){let lo;const so=await nt.Tendermint37Client.connect(oo);return(await so.status()).nodeInfo.version.startsWith("0.37.")?lo=so:(so.disconnect(),lo=await nt.Tendermint34Client.connect(oo)),go.createWithSigner(lo,Ro,pt)}static async createWithSigner(oo,Ro,pt={}){return new go(oo,Ro,pt)}static async offline(oo,Ro={}){return new go(void 0,oo,Ro)}constructor(oo,Ro,pt){super(oo,pt);const{registry:lo=new tt.Registry(_e.defaultRegistryTypes),aminoTypes:so=new Nt.AminoTypes(uo())}=pt;this.registry=lo,this.aminoTypes=so,this.signer=Ro,this.broadcastTimeoutMs=pt.broadcastTimeoutMs,this.broadcastPollIntervalMs=pt.broadcastPollIntervalMs,this.gasPrice=pt.gasPrice}async simulate(oo,Ro,pt){const lo=Ro.map(ho=>this.registry.encodeAsAny(ho)),so=(await this.signer.getAccounts()).find(ho=>ho.address===oo);if(!so)throw new Error("Failed to retrieve account from signer");const wo=(0,gr.encodeSecp256k1Pubkey)(so.pubkey),{sequence:xt}=await this.getSequence(oo),{gasInfo:Mt}=await this.forceGetQueryClient().tx.simulate(lo,pt,wo,xt);return(0,st.assertDefined)(Mt),Vr.Uint53.fromString(Mt.gasUsed.toString()).toNumber()}async sendTokens(oo,Ro,pt,lo,so=""){const wo={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:oo,toAddress:Ro,amount:[...pt]}};return this.signAndBroadcast(oo,[wo],lo,so)}async delegateTokens(oo,Ro,pt,lo,so=""){const wo={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:qt.MsgDelegate.fromPartial({delegatorAddress:oo,validatorAddress:Ro,amount:pt})};return this.signAndBroadcast(oo,[wo],lo,so)}async undelegateTokens(oo,Ro,pt,lo,so=""){const wo={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:qt.MsgUndelegate.fromPartial({delegatorAddress:oo,validatorAddress:Ro,amount:pt})};return this.signAndBroadcast(oo,[wo],lo,so)}async withdrawRewards(oo,Ro,pt,lo=""){const so={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:kt.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:oo,validatorAddress:Ro})};return this.signAndBroadcast(oo,[so],pt,lo)}async sendIbcTokens(oo,Ro,pt,lo,so,wo,xt,Mt,ho=""){const io=xt?no.default.fromNumber(xt).multiply(1e9):void 0,co={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:po.MsgTransfer.fromPartial({sourcePort:lo,sourceChannel:so,sender:oo,receiver:Ro,token:pt,timeoutHeight:wo,timeoutTimestamp:io})};return this.signAndBroadcast(oo,[co],Mt,ho)}async signAndBroadcast(oo,Ro,pt,lo=""){let so;if(pt=="auto"||typeof pt=="number"){(0,st.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const Mt=await this.simulate(oo,Ro,lo),ho=typeof pt=="number"?pt:1.4;so=(0,eo.calculateFee)(Math.round(Mt*ho),this.gasPrice)}else so=pt;const wo=await this.sign(oo,Ro,so,lo),xt=ht.TxRaw.encode(wo).finish();return this.broadcastTx(xt,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(oo,Ro,pt,lo=""){let so;if(pt=="auto"||typeof pt=="number"){(0,st.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const Mt=await this.simulate(oo,Ro,lo),ho=typeof pt=="number"?pt:1.3;so=(0,eo.calculateFee)(Math.round(Mt*ho),this.gasPrice)}else so=pt;const wo=await this.sign(oo,Ro,so,lo),xt=ht.TxRaw.encode(wo).finish();return this.broadcastTxSync(xt)}async sign(oo,Ro,pt,lo,so){let wo;if(so)wo=so;else{const{accountNumber:xt,sequence:Mt}=await this.getSequence(oo),ho=await this.getChainId();wo={accountNumber:xt,sequence:Mt,chainId:ho}}return(0,tt.isOfflineDirectSigner)(this.signer)?this.signDirect(oo,Ro,pt,lo,wo):this.signAmino(oo,Ro,pt,lo,wo)}async signAmino(oo,Ro,pt,lo,{accountNumber:so,sequence:wo,chainId:xt}){(0,st.assert)(!(0,tt.isOfflineDirectSigner)(this.signer));const Mt=(await this.signer.getAccounts()).find(Wo=>Wo.address===oo);if(!Mt)throw new Error("Failed to retrieve account from signer");const ho=(0,tt.encodePubkey)((0,gr.encodeSecp256k1Pubkey)(Mt.pubkey)),io=ro.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,co=Ro.map(Wo=>this.aminoTypes.toAmino(Wo)),mo=(0,gr.makeSignDoc)(co,pt,xt,lo,so,wo),{signature:Bo,signed:So}=await this.signer.signAmino(oo,mo),Tt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:So.msgs.map(Wo=>this.aminoTypes.fromAmino(Wo)),memo:So.memo}},vo=this.registry.encode(Tt),Co=Vr.Int53.fromString(So.fee.gas).toNumber(),xo=Vr.Int53.fromString(So.sequence).toNumber(),Po=(0,tt.makeAuthInfoBytes)([{pubkey:ho,sequence:xo}],So.fee.amount,Co,So.fee.granter,So.fee.payer,io);return ht.TxRaw.fromPartial({bodyBytes:vo,authInfoBytes:Po,signatures:[(0,Cr.fromBase64)(Bo.signature)]})}async signDirect(oo,Ro,pt,lo,{accountNumber:so,sequence:wo,chainId:xt}){(0,st.assert)((0,tt.isOfflineDirectSigner)(this.signer));const Mt=(await this.signer.getAccounts()).find(Co=>Co.address===oo);if(!Mt)throw new Error("Failed to retrieve account from signer");const ho=(0,tt.encodePubkey)((0,gr.encodeSecp256k1Pubkey)(Mt.pubkey)),io={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:Ro,memo:lo}},co=this.registry.encode(io),mo=Vr.Int53.fromString(pt.gas).toNumber(),Bo=(0,tt.makeAuthInfoBytes)([{pubkey:ho,sequence:wo}],pt.amount,mo,pt.granter,pt.payer),So=(0,tt.makeSignDoc)(co,Bo,xt,so),{signature:Tt,signed:vo}=await this.signer.signDirect(oo,So);return ht.TxRaw.fromPartial({bodyBytes:vo.bodyBytes,authInfoBytes:vo.authInfoBytes,signatures:[(0,Cr.fromBase64)(Tt.signature)]})}}_e.SigningStargateClient=go}(signingstargateclient),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo);var St=Object.getOwnPropertyDescriptor(Nt,eo);(!St||("get"in St?!Nt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return Nt[eo]}}),Object.defineProperty(no,Wt,St)}:function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo),no[Wt]=Nt[eo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(no,Nt){Object.defineProperty(no,"default",{enumerable:!0,value:Nt})}:function(no,Nt){no.default=Nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(no){if(no&&no.__esModule)return no;var Nt={};if(no!=null)for(var eo in no)eo!=="default"&&Object.prototype.hasOwnProperty.call(no,eo)&&cr(Nt,no,eo);return gr(Nt,no),Nt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.isMsgWithdrawDelegatorRewardEncodeObject=_e.isMsgVoteWeightedEncodeObject=_e.isMsgVoteEncodeObject=_e.isMsgUndelegateEncodeObject=_e.isMsgTransferEncodeObject=_e.isMsgSubmitProposalEncodeObject=_e.isMsgSendEncodeObject=_e.isMsgEditValidatorEncodeObject=_e.isMsgDepositEncodeObject=_e.isMsgDelegateEncodeObject=_e.isMsgCreateValidatorEncodeObject=_e.isMsgBeginRedelegateEncodeObject=_e.isAminoMsgWithdrawValidatorCommission=_e.isAminoMsgWithdrawDelegatorReward=_e.isAminoMsgVoteWeighted=_e.isAminoMsgVote=_e.isAminoMsgVerifyInvariant=_e.isAminoMsgUnjail=_e.isAminoMsgUndelegate=_e.isAminoMsgTransfer=_e.isAminoMsgSubmitProposal=_e.isAminoMsgSubmitEvidence=_e.isAminoMsgSetWithdrawAddress=_e.isAminoMsgSend=_e.isAminoMsgMultiSend=_e.isAminoMsgFundCommunityPool=_e.isAminoMsgEditValidator=_e.isAminoMsgDeposit=_e.isAminoMsgDelegate=_e.isAminoMsgCreateVestingAccount=_e.isAminoMsgCreateValidator=_e.isAminoMsgBeginRedelegate=_e.createVestingAminoConverters=_e.createStakingAminoConverters=_e.createSlashingAminoConverters=_e.createIbcAminoConverters=_e.createGroupAminoConverters=_e.createGovAminoConverters=_e.createFeegrantAminoConverters=_e.createEvidenceAminoConverters=_e.createDistributionAminoConverters=_e.createCrysisAminoConverters=_e.createBankAminoConverters=_e.createAuthzAminoConverters=_e.logs=_e.GasPrice=_e.calculateFee=_e.fromTendermintEvent=_e.AminoTypes=_e.accountFromAny=void 0,_e.parseCoins=_e.makeCosmoshubPath=_e.coins=_e.coin=_e.TimeoutError=_e.StargateClient=_e.isDeliverTxSuccess=_e.isDeliverTxFailure=_e.BroadcastTxError=_e.assertIsDeliverTxSuccess=_e.assertIsDeliverTxFailure=_e.SigningStargateClient=_e.defaultRegistryTypes=_e.createDefaultAminoConverters=_e.QueryClient=_e.decodeCosmosSdkDecFromProto=_e.createProtobufRpcClient=_e.createPagination=_e.makeMultisignedTxBytes=_e.makeMultisignedTx=_e.setupTxExtension=_e.setupStakingExtension=_e.setupSlashingExtension=_e.setupMintExtension=_e.setupIbcExtension=_e.setupGovExtension=_e.setupFeegrantExtension=_e.setupDistributionExtension=_e.setupBankExtension=_e.setupAuthzExtension=_e.setupAuthExtension=void 0;var Vr=accounts;Object.defineProperty(_e,"accountFromAny",{enumerable:!0,get:function(){return Vr.accountFromAny}});var tt=aminotypes;Object.defineProperty(_e,"AminoTypes",{enumerable:!0,get:function(){return tt.AminoTypes}});var nt=events;Object.defineProperty(_e,"fromTendermintEvent",{enumerable:!0,get:function(){return nt.fromTendermintEvent}});var st=fee;Object.defineProperty(_e,"calculateFee",{enumerable:!0,get:function(){return st.calculateFee}}),Object.defineProperty(_e,"GasPrice",{enumerable:!0,get:function(){return st.GasPrice}}),_e.logs=Cr(logs);var dt=modules$1;Object.defineProperty(_e,"createAuthzAminoConverters",{enumerable:!0,get:function(){return dt.createAuthzAminoConverters}}),Object.defineProperty(_e,"createBankAminoConverters",{enumerable:!0,get:function(){return dt.createBankAminoConverters}}),Object.defineProperty(_e,"createCrysisAminoConverters",{enumerable:!0,get:function(){return dt.createCrysisAminoConverters}}),Object.defineProperty(_e,"createDistributionAminoConverters",{enumerable:!0,get:function(){return dt.createDistributionAminoConverters}}),Object.defineProperty(_e,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return dt.createEvidenceAminoConverters}}),Object.defineProperty(_e,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return dt.createFeegrantAminoConverters}}),Object.defineProperty(_e,"createGovAminoConverters",{enumerable:!0,get:function(){return dt.createGovAminoConverters}}),Object.defineProperty(_e,"createGroupAminoConverters",{enumerable:!0,get:function(){return dt.createGroupAminoConverters}}),Object.defineProperty(_e,"createIbcAminoConverters",{enumerable:!0,get:function(){return dt.createIbcAminoConverters}}),Object.defineProperty(_e,"createSlashingAminoConverters",{enumerable:!0,get:function(){return dt.createSlashingAminoConverters}}),Object.defineProperty(_e,"createStakingAminoConverters",{enumerable:!0,get:function(){return dt.createStakingAminoConverters}}),Object.defineProperty(_e,"createVestingAminoConverters",{enumerable:!0,get:function(){return dt.createVestingAminoConverters}}),Object.defineProperty(_e,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return dt.isAminoMsgBeginRedelegate}}),Object.defineProperty(_e,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return dt.isAminoMsgCreateValidator}}),Object.defineProperty(_e,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return dt.isAminoMsgCreateVestingAccount}}),Object.defineProperty(_e,"isAminoMsgDelegate",{enumerable:!0,get:function(){return dt.isAminoMsgDelegate}}),Object.defineProperty(_e,"isAminoMsgDeposit",{enumerable:!0,get:function(){return dt.isAminoMsgDeposit}}),Object.defineProperty(_e,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return dt.isAminoMsgEditValidator}}),Object.defineProperty(_e,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return dt.isAminoMsgFundCommunityPool}}),Object.defineProperty(_e,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return dt.isAminoMsgMultiSend}}),Object.defineProperty(_e,"isAminoMsgSend",{enumerable:!0,get:function(){return dt.isAminoMsgSend}}),Object.defineProperty(_e,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return dt.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(_e,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return dt.isAminoMsgSubmitEvidence}}),Object.defineProperty(_e,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return dt.isAminoMsgSubmitProposal}}),Object.defineProperty(_e,"isAminoMsgTransfer",{enumerable:!0,get:function(){return dt.isAminoMsgTransfer}}),Object.defineProperty(_e,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return dt.isAminoMsgUndelegate}}),Object.defineProperty(_e,"isAminoMsgUnjail",{enumerable:!0,get:function(){return dt.isAminoMsgUnjail}}),Object.defineProperty(_e,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return dt.isAminoMsgVerifyInvariant}}),Object.defineProperty(_e,"isAminoMsgVote",{enumerable:!0,get:function(){return dt.isAminoMsgVote}}),Object.defineProperty(_e,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return dt.isAminoMsgVoteWeighted}}),Object.defineProperty(_e,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return dt.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(_e,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return dt.isAminoMsgWithdrawValidatorCommission}}),Object.defineProperty(_e,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(_e,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return dt.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(_e,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgDelegateEncodeObject}}),Object.defineProperty(_e,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return dt.isMsgDepositEncodeObject}}),Object.defineProperty(_e,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return dt.isMsgEditValidatorEncodeObject}}),Object.defineProperty(_e,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return dt.isMsgSendEncodeObject}}),Object.defineProperty(_e,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return dt.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(_e,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return dt.isMsgTransferEncodeObject}}),Object.defineProperty(_e,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgUndelegateEncodeObject}}),Object.defineProperty(_e,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return dt.isMsgVoteEncodeObject}}),Object.defineProperty(_e,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return dt.isMsgVoteWeightedEncodeObject}}),Object.defineProperty(_e,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return dt.isMsgWithdrawDelegatorRewardEncodeObject}}),Object.defineProperty(_e,"setupAuthExtension",{enumerable:!0,get:function(){return dt.setupAuthExtension}}),Object.defineProperty(_e,"setupAuthzExtension",{enumerable:!0,get:function(){return dt.setupAuthzExtension}}),Object.defineProperty(_e,"setupBankExtension",{enumerable:!0,get:function(){return dt.setupBankExtension}}),Object.defineProperty(_e,"setupDistributionExtension",{enumerable:!0,get:function(){return dt.setupDistributionExtension}}),Object.defineProperty(_e,"setupFeegrantExtension",{enumerable:!0,get:function(){return dt.setupFeegrantExtension}}),Object.defineProperty(_e,"setupGovExtension",{enumerable:!0,get:function(){return dt.setupGovExtension}}),Object.defineProperty(_e,"setupIbcExtension",{enumerable:!0,get:function(){return dt.setupIbcExtension}}),Object.defineProperty(_e,"setupMintExtension",{enumerable:!0,get:function(){return dt.setupMintExtension}}),Object.defineProperty(_e,"setupSlashingExtension",{enumerable:!0,get:function(){return dt.setupSlashingExtension}}),Object.defineProperty(_e,"setupStakingExtension",{enumerable:!0,get:function(){return dt.setupStakingExtension}}),Object.defineProperty(_e,"setupTxExtension",{enumerable:!0,get:function(){return dt.setupTxExtension}});var kt=multisignature;Object.defineProperty(_e,"makeMultisignedTx",{enumerable:!0,get:function(){return kt.makeMultisignedTx}}),Object.defineProperty(_e,"makeMultisignedTxBytes",{enumerable:!0,get:function(){return kt.makeMultisignedTxBytes}});var qt=queryclient$1;Object.defineProperty(_e,"createPagination",{enumerable:!0,get:function(){return qt.createPagination}}),Object.defineProperty(_e,"createProtobufRpcClient",{enumerable:!0,get:function(){return qt.createProtobufRpcClient}}),Object.defineProperty(_e,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return qt.decodeCosmosSdkDecFromProto}}),Object.defineProperty(_e,"QueryClient",{enumerable:!0,get:function(){return qt.QueryClient}});var ro=signingstargateclient;Object.defineProperty(_e,"createDefaultAminoConverters",{enumerable:!0,get:function(){return ro.createDefaultAminoConverters}}),Object.defineProperty(_e,"defaultRegistryTypes",{enumerable:!0,get:function(){return ro.defaultRegistryTypes}}),Object.defineProperty(_e,"SigningStargateClient",{enumerable:!0,get:function(){return ro.SigningStargateClient}});var ht=stargateclient;Object.defineProperty(_e,"assertIsDeliverTxFailure",{enumerable:!0,get:function(){return ht.assertIsDeliverTxFailure}}),Object.defineProperty(_e,"assertIsDeliverTxSuccess",{enumerable:!0,get:function(){return ht.assertIsDeliverTxSuccess}}),Object.defineProperty(_e,"BroadcastTxError",{enumerable:!0,get:function(){return ht.BroadcastTxError}}),Object.defineProperty(_e,"isDeliverTxFailure",{enumerable:!0,get:function(){return ht.isDeliverTxFailure}}),Object.defineProperty(_e,"isDeliverTxSuccess",{enumerable:!0,get:function(){return ht.isDeliverTxSuccess}}),Object.defineProperty(_e,"StargateClient",{enumerable:!0,get:function(){return ht.StargateClient}}),Object.defineProperty(_e,"TimeoutError",{enumerable:!0,get:function(){return ht.TimeoutError}});var po=build$9;Object.defineProperty(_e,"coin",{enumerable:!0,get:function(){return po.coin}}),Object.defineProperty(_e,"coins",{enumerable:!0,get:function(){return po.coins}}),Object.defineProperty(_e,"makeCosmoshubPath",{enumerable:!0,get:function(){return po.makeCosmoshubPath}}),Object.defineProperty(_e,"parseCoins",{enumerable:!0,get:function(){return po.parseCoins}})}(build$a);var types$1={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(go,bo,oo,Ro){Ro===void 0&&(Ro=oo);var pt=Object.getOwnPropertyDescriptor(bo,oo);(!pt||("get"in pt?!bo.__esModule:pt.writable||pt.configurable))&&(pt={enumerable:!0,get:function(){return bo[oo]}}),Object.defineProperty(go,Ro,pt)}:function(go,bo,oo,Ro){Ro===void 0&&(Ro=oo),go[Ro]=bo[oo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(go,bo){Object.defineProperty(go,"default",{enumerable:!0,value:bo})}:function(go,bo){go.default=bo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(go){if(go&&go.__esModule)return go;var bo={};if(go!=null)for(var oo in go)oo!=="default"&&Object.prototype.hasOwnProperty.call(go,oo)&&cr(bo,go,oo);return gr(bo,go),bo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Model=_e.AbsoluteTxPosition=_e.ContractCodeHistoryEntry=_e.ContractInfo=_e.CodeInfo=_e.Params=_e.AccessConfig=_e.AccessTypeParam=_e.contractCodeHistoryOperationTypeToJSON=_e.contractCodeHistoryOperationTypeFromJSON=_e.ContractCodeHistoryOperationType=_e.accessTypeToJSON=_e.accessTypeFromJSON=_e.AccessType=_e.protobufPackage=void 0;const Vr=any,tt=helpers,nt=Cr(minimal);_e.protobufPackage="cosmwasm.wasm.v1";var st;(function(go){go[go.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",go[go.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",go[go.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",go[go.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",go[go.ACCESS_TYPE_ANY_OF_ADDRESSES=4]="ACCESS_TYPE_ANY_OF_ADDRESSES",go[go.UNRECOGNIZED=-1]="UNRECOGNIZED"})(st=_e.AccessType||(_e.AccessType={}));function dt(go){switch(go){case 0:case"ACCESS_TYPE_UNSPECIFIED":return st.ACCESS_TYPE_UNSPECIFIED;case 1:case"ACCESS_TYPE_NOBODY":return st.ACCESS_TYPE_NOBODY;case 2:case"ACCESS_TYPE_ONLY_ADDRESS":return st.ACCESS_TYPE_ONLY_ADDRESS;case 3:case"ACCESS_TYPE_EVERYBODY":return st.ACCESS_TYPE_EVERYBODY;case 4:case"ACCESS_TYPE_ANY_OF_ADDRESSES":return st.ACCESS_TYPE_ANY_OF_ADDRESSES;case-1:case"UNRECOGNIZED":default:return st.UNRECOGNIZED}}_e.accessTypeFromJSON=dt;function kt(go){switch(go){case st.ACCESS_TYPE_UNSPECIFIED:return"ACCESS_TYPE_UNSPECIFIED";case st.ACCESS_TYPE_NOBODY:return"ACCESS_TYPE_NOBODY";case st.ACCESS_TYPE_ONLY_ADDRESS:return"ACCESS_TYPE_ONLY_ADDRESS";case st.ACCESS_TYPE_EVERYBODY:return"ACCESS_TYPE_EVERYBODY";case st.ACCESS_TYPE_ANY_OF_ADDRESSES:return"ACCESS_TYPE_ANY_OF_ADDRESSES";case st.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.accessTypeToJSON=kt;var qt;(function(go){go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",go[go.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qt=_e.ContractCodeHistoryOperationType||(_e.ContractCodeHistoryOperationType={}));function ro(go){switch(go){case 0:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;case-1:case"UNRECOGNIZED":default:return qt.UNRECOGNIZED}}_e.contractCodeHistoryOperationTypeFromJSON=ro;function ht(go){switch(go){case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";case qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.contractCodeHistoryOperationTypeToJSON=ht;function po(){return{value:0}}_e.AccessTypeParam={encode(go,bo=nt.Writer.create()){return go.value!==0&&bo.uint32(8).int32(go.value),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=po();for(;oo.pos>>3){case 1:pt.value=oo.int32();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{value:(0,tt.isSet)(go.value)?dt(go.value):0}},toJSON(go){const bo={};return go.value!==void 0&&(bo.value=kt(go.value)),bo},fromPartial(go){const bo=po();return bo.value=go.value??0,bo}};function no(){return{permission:0,address:"",addresses:[]}}_e.AccessConfig={encode(go,bo=nt.Writer.create()){go.permission!==0&&bo.uint32(8).int32(go.permission),go.address!==""&&bo.uint32(18).string(go.address);for(const oo of go.addresses)bo.uint32(26).string(oo);return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=no();for(;oo.pos>>3){case 1:pt.permission=oo.int32();break;case 2:pt.address=oo.string();break;case 3:pt.addresses.push(oo.string());break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{permission:(0,tt.isSet)(go.permission)?dt(go.permission):0,address:(0,tt.isSet)(go.address)?String(go.address):"",addresses:Array.isArray(go==null?void 0:go.addresses)?go.addresses.map(bo=>String(bo)):[]}},toJSON(go){const bo={};return go.permission!==void 0&&(bo.permission=kt(go.permission)),go.address!==void 0&&(bo.address=go.address),go.addresses?bo.addresses=go.addresses.map(oo=>oo):bo.addresses=[],bo},fromPartial(go){var oo;const bo=no();return bo.permission=go.permission??0,bo.address=go.address??"",bo.addresses=((oo=go.addresses)==null?void 0:oo.map(Ro=>Ro))||[],bo}};function Nt(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0}}_e.Params={encode(go,bo=nt.Writer.create()){return go.codeUploadAccess!==void 0&&_e.AccessConfig.encode(go.codeUploadAccess,bo.uint32(10).fork()).ldelim(),go.instantiateDefaultPermission!==0&&bo.uint32(16).int32(go.instantiateDefaultPermission),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Nt();for(;oo.pos>>3){case 1:pt.codeUploadAccess=_e.AccessConfig.decode(oo,oo.uint32());break;case 2:pt.instantiateDefaultPermission=oo.int32();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{codeUploadAccess:(0,tt.isSet)(go.codeUploadAccess)?_e.AccessConfig.fromJSON(go.codeUploadAccess):void 0,instantiateDefaultPermission:(0,tt.isSet)(go.instantiateDefaultPermission)?dt(go.instantiateDefaultPermission):0}},toJSON(go){const bo={};return go.codeUploadAccess!==void 0&&(bo.codeUploadAccess=go.codeUploadAccess?_e.AccessConfig.toJSON(go.codeUploadAccess):void 0),go.instantiateDefaultPermission!==void 0&&(bo.instantiateDefaultPermission=kt(go.instantiateDefaultPermission)),bo},fromPartial(go){const bo=Nt();return bo.codeUploadAccess=go.codeUploadAccess!==void 0&&go.codeUploadAccess!==null?_e.AccessConfig.fromPartial(go.codeUploadAccess):void 0,bo.instantiateDefaultPermission=go.instantiateDefaultPermission??0,bo}};function eo(){return{codeHash:new Uint8Array,creator:"",instantiateConfig:void 0}}_e.CodeInfo={encode(go,bo=nt.Writer.create()){return go.codeHash.length!==0&&bo.uint32(10).bytes(go.codeHash),go.creator!==""&&bo.uint32(18).string(go.creator),go.instantiateConfig!==void 0&&_e.AccessConfig.encode(go.instantiateConfig,bo.uint32(42).fork()).ldelim(),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=eo();for(;oo.pos>>3){case 1:pt.codeHash=oo.bytes();break;case 2:pt.creator=oo.string();break;case 5:pt.instantiateConfig=_e.AccessConfig.decode(oo,oo.uint32());break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{codeHash:(0,tt.isSet)(go.codeHash)?(0,tt.bytesFromBase64)(go.codeHash):new Uint8Array,creator:(0,tt.isSet)(go.creator)?String(go.creator):"",instantiateConfig:(0,tt.isSet)(go.instantiateConfig)?_e.AccessConfig.fromJSON(go.instantiateConfig):void 0}},toJSON(go){const bo={};return go.codeHash!==void 0&&(bo.codeHash=(0,tt.base64FromBytes)(go.codeHash!==void 0?go.codeHash:new Uint8Array)),go.creator!==void 0&&(bo.creator=go.creator),go.instantiateConfig!==void 0&&(bo.instantiateConfig=go.instantiateConfig?_e.AccessConfig.toJSON(go.instantiateConfig):void 0),bo},fromPartial(go){const bo=eo();return bo.codeHash=go.codeHash??new Uint8Array,bo.creator=go.creator??"",bo.instantiateConfig=go.instantiateConfig!==void 0&&go.instantiateConfig!==null?_e.AccessConfig.fromPartial(go.instantiateConfig):void 0,bo}};function Wt(){return{codeId:tt.Long.UZERO,creator:"",admin:"",label:"",created:void 0,ibcPortId:"",extension:void 0}}_e.ContractInfo={encode(go,bo=nt.Writer.create()){return go.codeId.isZero()||bo.uint32(8).uint64(go.codeId),go.creator!==""&&bo.uint32(18).string(go.creator),go.admin!==""&&bo.uint32(26).string(go.admin),go.label!==""&&bo.uint32(34).string(go.label),go.created!==void 0&&_e.AbsoluteTxPosition.encode(go.created,bo.uint32(42).fork()).ldelim(),go.ibcPortId!==""&&bo.uint32(50).string(go.ibcPortId),go.extension!==void 0&&Vr.Any.encode(go.extension,bo.uint32(58).fork()).ldelim(),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Wt();for(;oo.pos>>3){case 1:pt.codeId=oo.uint64();break;case 2:pt.creator=oo.string();break;case 3:pt.admin=oo.string();break;case 4:pt.label=oo.string();break;case 5:pt.created=_e.AbsoluteTxPosition.decode(oo,oo.uint32());break;case 6:pt.ibcPortId=oo.string();break;case 7:pt.extension=Vr.Any.decode(oo,oo.uint32());break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{codeId:(0,tt.isSet)(go.codeId)?tt.Long.fromValue(go.codeId):tt.Long.UZERO,creator:(0,tt.isSet)(go.creator)?String(go.creator):"",admin:(0,tt.isSet)(go.admin)?String(go.admin):"",label:(0,tt.isSet)(go.label)?String(go.label):"",created:(0,tt.isSet)(go.created)?_e.AbsoluteTxPosition.fromJSON(go.created):void 0,ibcPortId:(0,tt.isSet)(go.ibcPortId)?String(go.ibcPortId):"",extension:(0,tt.isSet)(go.extension)?Vr.Any.fromJSON(go.extension):void 0}},toJSON(go){const bo={};return go.codeId!==void 0&&(bo.codeId=(go.codeId||tt.Long.UZERO).toString()),go.creator!==void 0&&(bo.creator=go.creator),go.admin!==void 0&&(bo.admin=go.admin),go.label!==void 0&&(bo.label=go.label),go.created!==void 0&&(bo.created=go.created?_e.AbsoluteTxPosition.toJSON(go.created):void 0),go.ibcPortId!==void 0&&(bo.ibcPortId=go.ibcPortId),go.extension!==void 0&&(bo.extension=go.extension?Vr.Any.toJSON(go.extension):void 0),bo},fromPartial(go){const bo=Wt();return bo.codeId=go.codeId!==void 0&&go.codeId!==null?tt.Long.fromValue(go.codeId):tt.Long.UZERO,bo.creator=go.creator??"",bo.admin=go.admin??"",bo.label=go.label??"",bo.created=go.created!==void 0&&go.created!==null?_e.AbsoluteTxPosition.fromPartial(go.created):void 0,bo.ibcPortId=go.ibcPortId??"",bo.extension=go.extension!==void 0&&go.extension!==null?Vr.Any.fromPartial(go.extension):void 0,bo}};function St(){return{operation:0,codeId:tt.Long.UZERO,updated:void 0,msg:new Uint8Array}}_e.ContractCodeHistoryEntry={encode(go,bo=nt.Writer.create()){return go.operation!==0&&bo.uint32(8).int32(go.operation),go.codeId.isZero()||bo.uint32(16).uint64(go.codeId),go.updated!==void 0&&_e.AbsoluteTxPosition.encode(go.updated,bo.uint32(26).fork()).ldelim(),go.msg.length!==0&&bo.uint32(34).bytes(go.msg),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=St();for(;oo.pos>>3){case 1:pt.operation=oo.int32();break;case 2:pt.codeId=oo.uint64();break;case 3:pt.updated=_e.AbsoluteTxPosition.decode(oo,oo.uint32());break;case 4:pt.msg=oo.bytes();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{operation:(0,tt.isSet)(go.operation)?ro(go.operation):0,codeId:(0,tt.isSet)(go.codeId)?tt.Long.fromValue(go.codeId):tt.Long.UZERO,updated:(0,tt.isSet)(go.updated)?_e.AbsoluteTxPosition.fromJSON(go.updated):void 0,msg:(0,tt.isSet)(go.msg)?(0,tt.bytesFromBase64)(go.msg):new Uint8Array}},toJSON(go){const bo={};return go.operation!==void 0&&(bo.operation=ht(go.operation)),go.codeId!==void 0&&(bo.codeId=(go.codeId||tt.Long.UZERO).toString()),go.updated!==void 0&&(bo.updated=go.updated?_e.AbsoluteTxPosition.toJSON(go.updated):void 0),go.msg!==void 0&&(bo.msg=(0,tt.base64FromBytes)(go.msg!==void 0?go.msg:new Uint8Array)),bo},fromPartial(go){const bo=St();return bo.operation=go.operation??0,bo.codeId=go.codeId!==void 0&&go.codeId!==null?tt.Long.fromValue(go.codeId):tt.Long.UZERO,bo.updated=go.updated!==void 0&&go.updated!==null?_e.AbsoluteTxPosition.fromPartial(go.updated):void 0,bo.msg=go.msg??new Uint8Array,bo}};function Ot(){return{blockHeight:tt.Long.UZERO,txIndex:tt.Long.UZERO}}_e.AbsoluteTxPosition={encode(go,bo=nt.Writer.create()){return go.blockHeight.isZero()||bo.uint32(8).uint64(go.blockHeight),go.txIndex.isZero()||bo.uint32(16).uint64(go.txIndex),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Ot();for(;oo.pos>>3){case 1:pt.blockHeight=oo.uint64();break;case 2:pt.txIndex=oo.uint64();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{blockHeight:(0,tt.isSet)(go.blockHeight)?tt.Long.fromValue(go.blockHeight):tt.Long.UZERO,txIndex:(0,tt.isSet)(go.txIndex)?tt.Long.fromValue(go.txIndex):tt.Long.UZERO}},toJSON(go){const bo={};return go.blockHeight!==void 0&&(bo.blockHeight=(go.blockHeight||tt.Long.UZERO).toString()),go.txIndex!==void 0&&(bo.txIndex=(go.txIndex||tt.Long.UZERO).toString()),bo},fromPartial(go){const bo=Ot();return bo.blockHeight=go.blockHeight!==void 0&&go.blockHeight!==null?tt.Long.fromValue(go.blockHeight):tt.Long.UZERO,bo.txIndex=go.txIndex!==void 0&&go.txIndex!==null?tt.Long.fromValue(go.txIndex):tt.Long.UZERO,bo}};function uo(){return{key:new Uint8Array,value:new Uint8Array}}_e.Model={encode(go,bo=nt.Writer.create()){return go.key.length!==0&&bo.uint32(10).bytes(go.key),go.value.length!==0&&bo.uint32(18).bytes(go.value),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=uo();for(;oo.pos>>3){case 1:pt.key=oo.bytes();break;case 2:pt.value=oo.bytes();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{key:(0,tt.isSet)(go.key)?(0,tt.bytesFromBase64)(go.key):new Uint8Array,value:(0,tt.isSet)(go.value)?(0,tt.bytesFromBase64)(go.value):new Uint8Array}},toJSON(go){const bo={};return go.key!==void 0&&(bo.key=(0,tt.base64FromBytes)(go.key!==void 0?go.key:new Uint8Array)),go.value!==void 0&&(bo.value=(0,tt.base64FromBytes)(go.value!==void 0?go.value:new Uint8Array)),bo},fromPartial(go){const bo=uo();return bo.key=go.key??new Uint8Array,bo.value=go.value??new Uint8Array,bo}}})(types$1);var modules={},aminomessages={},__importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(aminomessages,"__esModule",{value:!0}),aminomessages.createWasmAminoConverters=aminomessages.accessTypeToString=aminomessages.accessTypeFromString=void 0;const encoding_1$5=build$c,types_1$1=types$1,long_1$2=__importDefault$4(long);function accessTypeFromString(_e){switch(_e){case"Unspecified":return types_1$1.AccessType.ACCESS_TYPE_UNSPECIFIED;case"Nobody":return types_1$1.AccessType.ACCESS_TYPE_NOBODY;case"OnlyAddress":return types_1$1.AccessType.ACCESS_TYPE_ONLY_ADDRESS;case"Everybody":return types_1$1.AccessType.ACCESS_TYPE_EVERYBODY;case"AnyOfAddresses":return types_1$1.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES;default:return types_1$1.AccessType.UNRECOGNIZED}}aminomessages.accessTypeFromString=accessTypeFromString;function accessTypeToString(_e){switch(_e){case types_1$1.AccessType.ACCESS_TYPE_UNSPECIFIED:return"Unspecified";case types_1$1.AccessType.ACCESS_TYPE_NOBODY:return"Nobody";case types_1$1.AccessType.ACCESS_TYPE_ONLY_ADDRESS:return"OnlyAddress";case types_1$1.AccessType.ACCESS_TYPE_EVERYBODY:return"Everybody";case types_1$1.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES:return"AnyOfAddresses";case types_1$1.AccessType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}aminomessages.accessTypeToString=accessTypeToString;function createWasmAminoConverters(){return{"/cosmwasm.wasm.v1.MsgStoreCode":{aminoType:"wasm/MsgStoreCode",toAmino:({sender:_e,wasmByteCode:cr,instantiatePermission:gr})=>({sender:_e,wasm_byte_code:(0,encoding_1$5.toBase64)(cr),instantiate_permission:gr?{permission:accessTypeToString(gr.permission),address:gr.address||void 0,addresses:gr.addresses.length!==0?gr.addresses:void 0}:void 0}),fromAmino:({sender:_e,wasm_byte_code:cr,instantiate_permission:gr})=>({sender:_e,wasmByteCode:(0,encoding_1$5.fromBase64)(cr),instantiatePermission:gr?{permission:accessTypeFromString(gr.permission),address:gr.address??"",addresses:gr.addresses??[]}:void 0})},"/cosmwasm.wasm.v1.MsgInstantiateContract":{aminoType:"wasm/MsgInstantiateContract",toAmino:({sender:_e,codeId:cr,label:gr,msg:Cr,funds:Vr,admin:tt})=>({sender:_e,code_id:cr.toString(),label:gr,msg:JSON.parse((0,encoding_1$5.fromUtf8)(Cr)),funds:Vr,admin:tt||void 0}),fromAmino:({sender:_e,code_id:cr,label:gr,msg:Cr,funds:Vr,admin:tt})=>({sender:_e,codeId:long_1$2.default.fromString(cr),label:gr,msg:(0,encoding_1$5.toUtf8)(JSON.stringify(Cr)),funds:[...Vr],admin:tt??""})},"/cosmwasm.wasm.v1.MsgInstantiateContract2":{aminoType:"wasm/MsgInstantiateContract2",toAmino:({sender:_e,codeId:cr,label:gr,msg:Cr,funds:Vr,admin:tt,salt:nt,fixMsg:st})=>({sender:_e,code_id:cr.toString(),label:gr,msg:JSON.parse((0,encoding_1$5.fromUtf8)(Cr)),funds:Vr,admin:tt||void 0,salt:(0,encoding_1$5.toBase64)(nt),fix_msg:st}),fromAmino:({sender:_e,code_id:cr,label:gr,msg:Cr,funds:Vr,admin:tt,salt:nt,fix_msg:st})=>({sender:_e,codeId:long_1$2.default.fromString(cr),label:gr,msg:(0,encoding_1$5.toUtf8)(JSON.stringify(Cr)),funds:[...Vr],admin:tt??"",salt:(0,encoding_1$5.fromBase64)(nt),fixMsg:st})},"/cosmwasm.wasm.v1.MsgUpdateAdmin":{aminoType:"wasm/MsgUpdateAdmin",toAmino:({sender:_e,newAdmin:cr,contract:gr})=>({sender:_e,new_admin:cr,contract:gr}),fromAmino:({sender:_e,new_admin:cr,contract:gr})=>({sender:_e,newAdmin:cr,contract:gr})},"/cosmwasm.wasm.v1.MsgClearAdmin":{aminoType:"wasm/MsgClearAdmin",toAmino:({sender:_e,contract:cr})=>({sender:_e,contract:cr}),fromAmino:({sender:_e,contract:cr})=>({sender:_e,contract:cr})},"/cosmwasm.wasm.v1.MsgExecuteContract":{aminoType:"wasm/MsgExecuteContract",toAmino:({sender:_e,contract:cr,msg:gr,funds:Cr})=>({sender:_e,contract:cr,msg:JSON.parse((0,encoding_1$5.fromUtf8)(gr)),funds:Cr}),fromAmino:({sender:_e,contract:cr,msg:gr,funds:Cr})=>({sender:_e,contract:cr,msg:(0,encoding_1$5.toUtf8)(JSON.stringify(gr)),funds:[...Cr]})},"/cosmwasm.wasm.v1.MsgMigrateContract":{aminoType:"wasm/MsgMigrateContract",toAmino:({sender:_e,contract:cr,codeId:gr,msg:Cr})=>({sender:_e,contract:cr,code_id:gr.toString(),msg:JSON.parse((0,encoding_1$5.fromUtf8)(Cr))}),fromAmino:({sender:_e,contract:cr,code_id:gr,msg:Cr})=>({sender:_e,contract:cr,codeId:long_1$2.default.fromString(gr),msg:(0,encoding_1$5.toUtf8)(JSON.stringify(Cr))})}}}aminomessages.createWasmAminoConverters=createWasmAminoConverters;var messages$1={},tx={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(pt,lo,so,wo){wo===void 0&&(wo=so);var xt=Object.getOwnPropertyDescriptor(lo,so);(!xt||("get"in xt?!lo.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return lo[so]}}),Object.defineProperty(pt,wo,xt)}:function(pt,lo,so,wo){wo===void 0&&(wo=so),pt[wo]=lo[so]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(pt,lo){Object.defineProperty(pt,"default",{enumerable:!0,value:lo})}:function(pt,lo){pt.default=lo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(pt){if(pt&&pt.__esModule)return pt;var lo={};if(pt!=null)for(var so in pt)so!=="default"&&Object.prototype.hasOwnProperty.call(pt,so)&&cr(lo,pt,so);return gr(lo,pt),lo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgUpdateInstantiateConfigResponse=_e.MsgUpdateInstantiateConfig=_e.MsgClearAdminResponse=_e.MsgClearAdmin=_e.MsgUpdateAdminResponse=_e.MsgUpdateAdmin=_e.MsgMigrateContractResponse=_e.MsgMigrateContract=_e.MsgExecuteContractResponse=_e.MsgExecuteContract=_e.MsgInstantiateContract2Response=_e.MsgInstantiateContractResponse=_e.MsgInstantiateContract2=_e.MsgInstantiateContract=_e.MsgStoreCodeResponse=_e.MsgStoreCode=_e.protobufPackage=void 0;const Vr=types$1,tt=coin$1,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmwasm.wasm.v1";function dt(){return{sender:"",wasmByteCode:new Uint8Array,instantiatePermission:void 0}}_e.MsgStoreCode={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.wasmByteCode.length!==0&&lo.uint32(18).bytes(pt.wasmByteCode),pt.instantiatePermission!==void 0&&Vr.AccessConfig.encode(pt.instantiatePermission,lo.uint32(42).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=dt();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.wasmByteCode=so.bytes();break;case 5:xt.instantiatePermission=Vr.AccessConfig.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",wasmByteCode:(0,nt.isSet)(pt.wasmByteCode)?(0,nt.bytesFromBase64)(pt.wasmByteCode):new Uint8Array,instantiatePermission:(0,nt.isSet)(pt.instantiatePermission)?Vr.AccessConfig.fromJSON(pt.instantiatePermission):void 0}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.wasmByteCode!==void 0&&(lo.wasmByteCode=(0,nt.base64FromBytes)(pt.wasmByteCode!==void 0?pt.wasmByteCode:new Uint8Array)),pt.instantiatePermission!==void 0&&(lo.instantiatePermission=pt.instantiatePermission?Vr.AccessConfig.toJSON(pt.instantiatePermission):void 0),lo},fromPartial(pt){const lo=dt();return lo.sender=pt.sender??"",lo.wasmByteCode=pt.wasmByteCode??new Uint8Array,lo.instantiatePermission=pt.instantiatePermission!==void 0&&pt.instantiatePermission!==null?Vr.AccessConfig.fromPartial(pt.instantiatePermission):void 0,lo}};function kt(){return{codeId:nt.Long.UZERO,checksum:new Uint8Array}}_e.MsgStoreCodeResponse={encode(pt,lo=st.Writer.create()){return pt.codeId.isZero()||lo.uint32(8).uint64(pt.codeId),pt.checksum.length!==0&&lo.uint32(18).bytes(pt.checksum),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=kt();for(;so.pos>>3){case 1:xt.codeId=so.uint64();break;case 2:xt.checksum=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,checksum:(0,nt.isSet)(pt.checksum)?(0,nt.bytesFromBase64)(pt.checksum):new Uint8Array}},toJSON(pt){const lo={};return pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.checksum!==void 0&&(lo.checksum=(0,nt.base64FromBytes)(pt.checksum!==void 0?pt.checksum:new Uint8Array)),lo},fromPartial(pt){const lo=kt();return lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.checksum=pt.checksum??new Uint8Array,lo}};function qt(){return{sender:"",admin:"",codeId:nt.Long.UZERO,label:"",msg:new Uint8Array,funds:[]}}_e.MsgInstantiateContract={encode(pt,lo=st.Writer.create()){pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.admin!==""&&lo.uint32(18).string(pt.admin),pt.codeId.isZero()||lo.uint32(24).uint64(pt.codeId),pt.label!==""&&lo.uint32(34).string(pt.label),pt.msg.length!==0&&lo.uint32(42).bytes(pt.msg);for(const so of pt.funds)tt.Coin.encode(so,lo.uint32(50).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=qt();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.admin=so.string();break;case 3:xt.codeId=so.uint64();break;case 4:xt.label=so.string();break;case 5:xt.msg=so.bytes();break;case 6:xt.funds.push(tt.Coin.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",admin:(0,nt.isSet)(pt.admin)?String(pt.admin):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,label:(0,nt.isSet)(pt.label)?String(pt.label):"",msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array,funds:Array.isArray(pt==null?void 0:pt.funds)?pt.funds.map(lo=>tt.Coin.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.admin!==void 0&&(lo.admin=pt.admin),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.label!==void 0&&(lo.label=pt.label),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),pt.funds?lo.funds=pt.funds.map(so=>so?tt.Coin.toJSON(so):void 0):lo.funds=[],lo},fromPartial(pt){var so;const lo=qt();return lo.sender=pt.sender??"",lo.admin=pt.admin??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.label=pt.label??"",lo.msg=pt.msg??new Uint8Array,lo.funds=((so=pt.funds)==null?void 0:so.map(wo=>tt.Coin.fromPartial(wo)))||[],lo}};function ro(){return{sender:"",admin:"",codeId:nt.Long.UZERO,label:"",msg:new Uint8Array,funds:[],salt:new Uint8Array,fixMsg:!1}}_e.MsgInstantiateContract2={encode(pt,lo=st.Writer.create()){pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.admin!==""&&lo.uint32(18).string(pt.admin),pt.codeId.isZero()||lo.uint32(24).uint64(pt.codeId),pt.label!==""&&lo.uint32(34).string(pt.label),pt.msg.length!==0&&lo.uint32(42).bytes(pt.msg);for(const so of pt.funds)tt.Coin.encode(so,lo.uint32(50).fork()).ldelim();return pt.salt.length!==0&&lo.uint32(58).bytes(pt.salt),pt.fixMsg===!0&&lo.uint32(64).bool(pt.fixMsg),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ro();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.admin=so.string();break;case 3:xt.codeId=so.uint64();break;case 4:xt.label=so.string();break;case 5:xt.msg=so.bytes();break;case 6:xt.funds.push(tt.Coin.decode(so,so.uint32()));break;case 7:xt.salt=so.bytes();break;case 8:xt.fixMsg=so.bool();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",admin:(0,nt.isSet)(pt.admin)?String(pt.admin):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,label:(0,nt.isSet)(pt.label)?String(pt.label):"",msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array,funds:Array.isArray(pt==null?void 0:pt.funds)?pt.funds.map(lo=>tt.Coin.fromJSON(lo)):[],salt:(0,nt.isSet)(pt.salt)?(0,nt.bytesFromBase64)(pt.salt):new Uint8Array,fixMsg:(0,nt.isSet)(pt.fixMsg)?!!pt.fixMsg:!1}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.admin!==void 0&&(lo.admin=pt.admin),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.label!==void 0&&(lo.label=pt.label),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),pt.funds?lo.funds=pt.funds.map(so=>so?tt.Coin.toJSON(so):void 0):lo.funds=[],pt.salt!==void 0&&(lo.salt=(0,nt.base64FromBytes)(pt.salt!==void 0?pt.salt:new Uint8Array)),pt.fixMsg!==void 0&&(lo.fixMsg=pt.fixMsg),lo},fromPartial(pt){var so;const lo=ro();return lo.sender=pt.sender??"",lo.admin=pt.admin??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.label=pt.label??"",lo.msg=pt.msg??new Uint8Array,lo.funds=((so=pt.funds)==null?void 0:so.map(wo=>tt.Coin.fromPartial(wo)))||[],lo.salt=pt.salt??new Uint8Array,lo.fixMsg=pt.fixMsg??!1,lo}};function ht(){return{address:"",data:new Uint8Array}}_e.MsgInstantiateContractResponse={encode(pt,lo=st.Writer.create()){return pt.address!==""&&lo.uint32(10).string(pt.address),pt.data.length!==0&&lo.uint32(18).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ht();for(;so.pos>>3){case 1:xt.address=so.string();break;case 2:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{address:(0,nt.isSet)(pt.address)?String(pt.address):"",data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.address!==void 0&&(lo.address=pt.address),pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=ht();return lo.address=pt.address??"",lo.data=pt.data??new Uint8Array,lo}};function po(){return{address:"",data:new Uint8Array}}_e.MsgInstantiateContract2Response={encode(pt,lo=st.Writer.create()){return pt.address!==""&&lo.uint32(10).string(pt.address),pt.data.length!==0&&lo.uint32(18).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=po();for(;so.pos>>3){case 1:xt.address=so.string();break;case 2:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{address:(0,nt.isSet)(pt.address)?String(pt.address):"",data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.address!==void 0&&(lo.address=pt.address),pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=po();return lo.address=pt.address??"",lo.data=pt.data??new Uint8Array,lo}};function no(){return{sender:"",contract:"",msg:new Uint8Array,funds:[]}}_e.MsgExecuteContract={encode(pt,lo=st.Writer.create()){pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.contract!==""&&lo.uint32(18).string(pt.contract),pt.msg.length!==0&&lo.uint32(26).bytes(pt.msg);for(const so of pt.funds)tt.Coin.encode(so,lo.uint32(42).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=no();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.contract=so.string();break;case 3:xt.msg=so.bytes();break;case 5:xt.funds.push(tt.Coin.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):"",msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array,funds:Array.isArray(pt==null?void 0:pt.funds)?pt.funds.map(lo=>tt.Coin.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.contract!==void 0&&(lo.contract=pt.contract),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),pt.funds?lo.funds=pt.funds.map(so=>so?tt.Coin.toJSON(so):void 0):lo.funds=[],lo},fromPartial(pt){var so;const lo=no();return lo.sender=pt.sender??"",lo.contract=pt.contract??"",lo.msg=pt.msg??new Uint8Array,lo.funds=((so=pt.funds)==null?void 0:so.map(wo=>tt.Coin.fromPartial(wo)))||[],lo}};function Nt(){return{data:new Uint8Array}}_e.MsgExecuteContractResponse={encode(pt,lo=st.Writer.create()){return pt.data.length!==0&&lo.uint32(10).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Nt();for(;so.pos>>3){case 1:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=Nt();return lo.data=pt.data??new Uint8Array,lo}};function eo(){return{sender:"",contract:"",codeId:nt.Long.UZERO,msg:new Uint8Array}}_e.MsgMigrateContract={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.contract!==""&&lo.uint32(18).string(pt.contract),pt.codeId.isZero()||lo.uint32(24).uint64(pt.codeId),pt.msg.length!==0&&lo.uint32(34).bytes(pt.msg),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=eo();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.contract=so.string();break;case 3:xt.codeId=so.uint64();break;case 4:xt.msg=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.contract!==void 0&&(lo.contract=pt.contract),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),lo},fromPartial(pt){const lo=eo();return lo.sender=pt.sender??"",lo.contract=pt.contract??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.msg=pt.msg??new Uint8Array,lo}};function Wt(){return{data:new Uint8Array}}_e.MsgMigrateContractResponse={encode(pt,lo=st.Writer.create()){return pt.data.length!==0&&lo.uint32(10).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Wt();for(;so.pos>>3){case 1:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=Wt();return lo.data=pt.data??new Uint8Array,lo}};function St(){return{sender:"",newAdmin:"",contract:""}}_e.MsgUpdateAdmin={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.newAdmin!==""&&lo.uint32(18).string(pt.newAdmin),pt.contract!==""&&lo.uint32(26).string(pt.contract),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=St();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.newAdmin=so.string();break;case 3:xt.contract=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",newAdmin:(0,nt.isSet)(pt.newAdmin)?String(pt.newAdmin):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):""}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.newAdmin!==void 0&&(lo.newAdmin=pt.newAdmin),pt.contract!==void 0&&(lo.contract=pt.contract),lo},fromPartial(pt){const lo=St();return lo.sender=pt.sender??"",lo.newAdmin=pt.newAdmin??"",lo.contract=pt.contract??"",lo}};function Ot(){return{}}_e.MsgUpdateAdminResponse={encode(pt,lo=st.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ot();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return Ot()}};function uo(){return{sender:"",contract:""}}_e.MsgClearAdmin={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.contract!==""&&lo.uint32(26).string(pt.contract),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=uo();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 3:xt.contract=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):""}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.contract!==void 0&&(lo.contract=pt.contract),lo},fromPartial(pt){const lo=uo();return lo.sender=pt.sender??"",lo.contract=pt.contract??"",lo}};function go(){return{}}_e.MsgClearAdminResponse={encode(pt,lo=st.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=go();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return go()}};function bo(){return{sender:"",codeId:nt.Long.UZERO,newInstantiatePermission:void 0}}_e.MsgUpdateInstantiateConfig={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.codeId.isZero()||lo.uint32(16).uint64(pt.codeId),pt.newInstantiatePermission!==void 0&&Vr.AccessConfig.encode(pt.newInstantiatePermission,lo.uint32(26).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=bo();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.codeId=so.uint64();break;case 3:xt.newInstantiatePermission=Vr.AccessConfig.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,newInstantiatePermission:(0,nt.isSet)(pt.newInstantiatePermission)?Vr.AccessConfig.fromJSON(pt.newInstantiatePermission):void 0}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.newInstantiatePermission!==void 0&&(lo.newInstantiatePermission=pt.newInstantiatePermission?Vr.AccessConfig.toJSON(pt.newInstantiatePermission):void 0),lo},fromPartial(pt){const lo=bo();return lo.sender=pt.sender??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.newInstantiatePermission=pt.newInstantiatePermission!==void 0&&pt.newInstantiatePermission!==null?Vr.AccessConfig.fromPartial(pt.newInstantiatePermission):void 0,lo}};function oo(){return{}}_e.MsgUpdateInstantiateConfigResponse={encode(pt,lo=st.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=oo();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return oo()}};class Ro{constructor(lo){this.rpc=lo,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(lo){const so=_e.MsgStoreCode.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","StoreCode",so).then(wo=>_e.MsgStoreCodeResponse.decode(new st.Reader(wo)))}InstantiateContract(lo){const so=_e.MsgInstantiateContract.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract",so).then(wo=>_e.MsgInstantiateContractResponse.decode(new st.Reader(wo)))}InstantiateContract2(lo){const so=_e.MsgInstantiateContract2.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract2",so).then(wo=>_e.MsgInstantiateContract2Response.decode(new st.Reader(wo)))}ExecuteContract(lo){const so=_e.MsgExecuteContract.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ExecuteContract",so).then(wo=>_e.MsgExecuteContractResponse.decode(new st.Reader(wo)))}MigrateContract(lo){const so=_e.MsgMigrateContract.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","MigrateContract",so).then(wo=>_e.MsgMigrateContractResponse.decode(new st.Reader(wo)))}UpdateAdmin(lo){const so=_e.MsgUpdateAdmin.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateAdmin",so).then(wo=>_e.MsgUpdateAdminResponse.decode(new st.Reader(wo)))}ClearAdmin(lo){const so=_e.MsgClearAdmin.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ClearAdmin",so).then(wo=>_e.MsgClearAdminResponse.decode(new st.Reader(wo)))}UpdateInstantiateConfig(lo){const so=_e.MsgUpdateInstantiateConfig.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateInstantiateConfig",so).then(wo=>_e.MsgUpdateInstantiateConfigResponse.decode(new st.Reader(wo)))}}_e.MsgClientImpl=Ro})(tx),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$1=tx;messages$1.wasmTypes=[["/cosmwasm.wasm.v1.MsgClearAdmin",tx_1$1.MsgClearAdmin],["/cosmwasm.wasm.v1.MsgExecuteContract",tx_1$1.MsgExecuteContract],["/cosmwasm.wasm.v1.MsgMigrateContract",tx_1$1.MsgMigrateContract],["/cosmwasm.wasm.v1.MsgStoreCode",tx_1$1.MsgStoreCode],["/cosmwasm.wasm.v1.MsgInstantiateContract",tx_1$1.MsgInstantiateContract],["/cosmwasm.wasm.v1.MsgInstantiateContract2",tx_1$1.MsgInstantiateContract2],["/cosmwasm.wasm.v1.MsgUpdateAdmin",tx_1$1.MsgUpdateAdmin]];function isMsgStoreCodeEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgStoreCode"}messages$1.isMsgStoreCodeEncodeObject=isMsgStoreCodeEncodeObject;function isMsgInstantiateContractEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract"}messages$1.isMsgInstantiateContractEncodeObject=isMsgInstantiateContractEncodeObject;function isMsgInstantiateContract2EncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract2"}messages$1.isMsgInstantiateContract2EncodeObject=isMsgInstantiateContract2EncodeObject;function isMsgUpdateAdminEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgUpdateAdmin"}messages$1.isMsgUpdateAdminEncodeObject=isMsgUpdateAdminEncodeObject;function isMsgClearAdminEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgClearAdmin"}messages$1.isMsgClearAdminEncodeObject=isMsgClearAdminEncodeObject;function isMsgMigrateEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgMigrateContract"}messages$1.isMsgMigrateEncodeObject=isMsgMigrateEncodeObject;function isMsgExecuteEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgExecuteContract"}messages$1.isMsgExecuteEncodeObject=isMsgExecuteEncodeObject;var queries={},query={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(io,co,mo,Bo){Bo===void 0&&(Bo=mo);var So=Object.getOwnPropertyDescriptor(co,mo);(!So||("get"in So?!co.__esModule:So.writable||So.configurable))&&(So={enumerable:!0,get:function(){return co[mo]}}),Object.defineProperty(io,Bo,So)}:function(io,co,mo,Bo){Bo===void 0&&(Bo=mo),io[Bo]=co[mo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(io,co){Object.defineProperty(io,"default",{enumerable:!0,value:co})}:function(io,co){io.default=co}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(io){if(io&&io.__esModule)return io;var co={};if(io!=null)for(var mo in io)mo!=="default"&&Object.prototype.hasOwnProperty.call(io,mo)&&cr(co,io,mo);return gr(co,io),co};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryContractsByCreatorResponse=_e.QueryContractsByCreatorRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.QueryPinnedCodesResponse=_e.QueryPinnedCodesRequest=_e.QueryCodesResponse=_e.QueryCodesRequest=_e.QueryCodeResponse=_e.CodeInfoResponse=_e.QueryCodeRequest=_e.QuerySmartContractStateResponse=_e.QuerySmartContractStateRequest=_e.QueryRawContractStateResponse=_e.QueryRawContractStateRequest=_e.QueryAllContractStateResponse=_e.QueryAllContractStateRequest=_e.QueryContractsByCodeResponse=_e.QueryContractsByCodeRequest=_e.QueryContractHistoryResponse=_e.QueryContractHistoryRequest=_e.QueryContractInfoResponse=_e.QueryContractInfoRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=types$1,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmwasm.wasm.v1";function dt(){return{address:""}}_e.QueryContractInfoRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=dt();for(;mo.pos>>3){case 1:So.address=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):""}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),co},fromPartial(io){const co=dt();return co.address=io.address??"",co}};function kt(){return{address:"",contractInfo:void 0}}_e.QueryContractInfoResponse={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.contractInfo!==void 0&&tt.ContractInfo.encode(io.contractInfo,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=kt();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.contractInfo=tt.ContractInfo.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",contractInfo:(0,nt.isSet)(io.contractInfo)?tt.ContractInfo.fromJSON(io.contractInfo):void 0}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.contractInfo!==void 0&&(co.contractInfo=io.contractInfo?tt.ContractInfo.toJSON(io.contractInfo):void 0),co},fromPartial(io){const co=kt();return co.address=io.address??"",co.contractInfo=io.contractInfo!==void 0&&io.contractInfo!==null?tt.ContractInfo.fromPartial(io.contractInfo):void 0,co}};function qt(){return{address:"",pagination:void 0}}_e.QueryContractHistoryRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=qt();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=qt();return co.address=io.address??"",co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function ro(){return{entries:[],pagination:void 0}}_e.QueryContractHistoryResponse={encode(io,co=st.Writer.create()){for(const mo of io.entries)tt.ContractCodeHistoryEntry.encode(mo,co.uint32(10).fork()).ldelim();return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=ro();for(;mo.pos>>3){case 1:So.entries.push(tt.ContractCodeHistoryEntry.decode(mo,mo.uint32()));break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{entries:Array.isArray(io==null?void 0:io.entries)?io.entries.map(co=>tt.ContractCodeHistoryEntry.fromJSON(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.entries?co.entries=io.entries.map(mo=>mo?tt.ContractCodeHistoryEntry.toJSON(mo):void 0):co.entries=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=ro();return co.entries=((mo=io.entries)==null?void 0:mo.map(Bo=>tt.ContractCodeHistoryEntry.fromPartial(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function ht(){return{codeId:nt.Long.UZERO,pagination:void 0}}_e.QueryContractsByCodeRequest={encode(io,co=st.Writer.create()){return io.codeId.isZero()||co.uint32(8).uint64(io.codeId),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=ht();for(;mo.pos>>3){case 1:So.codeId=mo.uint64();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeId:(0,nt.isSet)(io.codeId)?nt.Long.fromValue(io.codeId):nt.Long.UZERO,pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.codeId!==void 0&&(co.codeId=(io.codeId||nt.Long.UZERO).toString()),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=ht();return co.codeId=io.codeId!==void 0&&io.codeId!==null?nt.Long.fromValue(io.codeId):nt.Long.UZERO,co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function po(){return{contracts:[],pagination:void 0}}_e.QueryContractsByCodeResponse={encode(io,co=st.Writer.create()){for(const mo of io.contracts)co.uint32(10).string(mo);return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=po();for(;mo.pos>>3){case 1:So.contracts.push(mo.string());break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{contracts:Array.isArray(io==null?void 0:io.contracts)?io.contracts.map(co=>String(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.contracts?co.contracts=io.contracts.map(mo=>mo):co.contracts=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=po();return co.contracts=((mo=io.contracts)==null?void 0:mo.map(Bo=>Bo))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function no(){return{address:"",pagination:void 0}}_e.QueryAllContractStateRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=no();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=no();return co.address=io.address??"",co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function Nt(){return{models:[],pagination:void 0}}_e.QueryAllContractStateResponse={encode(io,co=st.Writer.create()){for(const mo of io.models)tt.Model.encode(mo,co.uint32(10).fork()).ldelim();return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Nt();for(;mo.pos>>3){case 1:So.models.push(tt.Model.decode(mo,mo.uint32()));break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{models:Array.isArray(io==null?void 0:io.models)?io.models.map(co=>tt.Model.fromJSON(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.models?co.models=io.models.map(mo=>mo?tt.Model.toJSON(mo):void 0):co.models=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=Nt();return co.models=((mo=io.models)==null?void 0:mo.map(Bo=>tt.Model.fromPartial(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function eo(){return{address:"",queryData:new Uint8Array}}_e.QueryRawContractStateRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.queryData.length!==0&&co.uint32(18).bytes(io.queryData),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=eo();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.queryData=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",queryData:(0,nt.isSet)(io.queryData)?(0,nt.bytesFromBase64)(io.queryData):new Uint8Array}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.queryData!==void 0&&(co.queryData=(0,nt.base64FromBytes)(io.queryData!==void 0?io.queryData:new Uint8Array)),co},fromPartial(io){const co=eo();return co.address=io.address??"",co.queryData=io.queryData??new Uint8Array,co}};function Wt(){return{data:new Uint8Array}}_e.QueryRawContractStateResponse={encode(io,co=st.Writer.create()){return io.data.length!==0&&co.uint32(10).bytes(io.data),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Wt();for(;mo.pos>>3){case 1:So.data=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{data:(0,nt.isSet)(io.data)?(0,nt.bytesFromBase64)(io.data):new Uint8Array}},toJSON(io){const co={};return io.data!==void 0&&(co.data=(0,nt.base64FromBytes)(io.data!==void 0?io.data:new Uint8Array)),co},fromPartial(io){const co=Wt();return co.data=io.data??new Uint8Array,co}};function St(){return{address:"",queryData:new Uint8Array}}_e.QuerySmartContractStateRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.queryData.length!==0&&co.uint32(18).bytes(io.queryData),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=St();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.queryData=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",queryData:(0,nt.isSet)(io.queryData)?(0,nt.bytesFromBase64)(io.queryData):new Uint8Array}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.queryData!==void 0&&(co.queryData=(0,nt.base64FromBytes)(io.queryData!==void 0?io.queryData:new Uint8Array)),co},fromPartial(io){const co=St();return co.address=io.address??"",co.queryData=io.queryData??new Uint8Array,co}};function Ot(){return{data:new Uint8Array}}_e.QuerySmartContractStateResponse={encode(io,co=st.Writer.create()){return io.data.length!==0&&co.uint32(10).bytes(io.data),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Ot();for(;mo.pos>>3){case 1:So.data=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{data:(0,nt.isSet)(io.data)?(0,nt.bytesFromBase64)(io.data):new Uint8Array}},toJSON(io){const co={};return io.data!==void 0&&(co.data=(0,nt.base64FromBytes)(io.data!==void 0?io.data:new Uint8Array)),co},fromPartial(io){const co=Ot();return co.data=io.data??new Uint8Array,co}};function uo(){return{codeId:nt.Long.UZERO}}_e.QueryCodeRequest={encode(io,co=st.Writer.create()){return io.codeId.isZero()||co.uint32(8).uint64(io.codeId),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=uo();for(;mo.pos>>3){case 1:So.codeId=mo.uint64();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeId:(0,nt.isSet)(io.codeId)?nt.Long.fromValue(io.codeId):nt.Long.UZERO}},toJSON(io){const co={};return io.codeId!==void 0&&(co.codeId=(io.codeId||nt.Long.UZERO).toString()),co},fromPartial(io){const co=uo();return co.codeId=io.codeId!==void 0&&io.codeId!==null?nt.Long.fromValue(io.codeId):nt.Long.UZERO,co}};function go(){return{codeId:nt.Long.UZERO,creator:"",dataHash:new Uint8Array,instantiatePermission:void 0}}_e.CodeInfoResponse={encode(io,co=st.Writer.create()){return io.codeId.isZero()||co.uint32(8).uint64(io.codeId),io.creator!==""&&co.uint32(18).string(io.creator),io.dataHash.length!==0&&co.uint32(26).bytes(io.dataHash),io.instantiatePermission!==void 0&&tt.AccessConfig.encode(io.instantiatePermission,co.uint32(50).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=go();for(;mo.pos>>3){case 1:So.codeId=mo.uint64();break;case 2:So.creator=mo.string();break;case 3:So.dataHash=mo.bytes();break;case 6:So.instantiatePermission=tt.AccessConfig.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeId:(0,nt.isSet)(io.codeId)?nt.Long.fromValue(io.codeId):nt.Long.UZERO,creator:(0,nt.isSet)(io.creator)?String(io.creator):"",dataHash:(0,nt.isSet)(io.dataHash)?(0,nt.bytesFromBase64)(io.dataHash):new Uint8Array,instantiatePermission:(0,nt.isSet)(io.instantiatePermission)?tt.AccessConfig.fromJSON(io.instantiatePermission):void 0}},toJSON(io){const co={};return io.codeId!==void 0&&(co.codeId=(io.codeId||nt.Long.UZERO).toString()),io.creator!==void 0&&(co.creator=io.creator),io.dataHash!==void 0&&(co.dataHash=(0,nt.base64FromBytes)(io.dataHash!==void 0?io.dataHash:new Uint8Array)),io.instantiatePermission!==void 0&&(co.instantiatePermission=io.instantiatePermission?tt.AccessConfig.toJSON(io.instantiatePermission):void 0),co},fromPartial(io){const co=go();return co.codeId=io.codeId!==void 0&&io.codeId!==null?nt.Long.fromValue(io.codeId):nt.Long.UZERO,co.creator=io.creator??"",co.dataHash=io.dataHash??new Uint8Array,co.instantiatePermission=io.instantiatePermission!==void 0&&io.instantiatePermission!==null?tt.AccessConfig.fromPartial(io.instantiatePermission):void 0,co}};function bo(){return{codeInfo:void 0,data:new Uint8Array}}_e.QueryCodeResponse={encode(io,co=st.Writer.create()){return io.codeInfo!==void 0&&_e.CodeInfoResponse.encode(io.codeInfo,co.uint32(10).fork()).ldelim(),io.data.length!==0&&co.uint32(18).bytes(io.data),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=bo();for(;mo.pos>>3){case 1:So.codeInfo=_e.CodeInfoResponse.decode(mo,mo.uint32());break;case 2:So.data=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeInfo:(0,nt.isSet)(io.codeInfo)?_e.CodeInfoResponse.fromJSON(io.codeInfo):void 0,data:(0,nt.isSet)(io.data)?(0,nt.bytesFromBase64)(io.data):new Uint8Array}},toJSON(io){const co={};return io.codeInfo!==void 0&&(co.codeInfo=io.codeInfo?_e.CodeInfoResponse.toJSON(io.codeInfo):void 0),io.data!==void 0&&(co.data=(0,nt.base64FromBytes)(io.data!==void 0?io.data:new Uint8Array)),co},fromPartial(io){const co=bo();return co.codeInfo=io.codeInfo!==void 0&&io.codeInfo!==null?_e.CodeInfoResponse.fromPartial(io.codeInfo):void 0,co.data=io.data??new Uint8Array,co}};function oo(){return{pagination:void 0}}_e.QueryCodesRequest={encode(io,co=st.Writer.create()){return io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(10).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=oo();for(;mo.pos>>3){case 1:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=oo();return co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function Ro(){return{codeInfos:[],pagination:void 0}}_e.QueryCodesResponse={encode(io,co=st.Writer.create()){for(const mo of io.codeInfos)_e.CodeInfoResponse.encode(mo,co.uint32(10).fork()).ldelim();return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Ro();for(;mo.pos>>3){case 1:So.codeInfos.push(_e.CodeInfoResponse.decode(mo,mo.uint32()));break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeInfos:Array.isArray(io==null?void 0:io.codeInfos)?io.codeInfos.map(co=>_e.CodeInfoResponse.fromJSON(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.codeInfos?co.codeInfos=io.codeInfos.map(mo=>mo?_e.CodeInfoResponse.toJSON(mo):void 0):co.codeInfos=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=Ro();return co.codeInfos=((mo=io.codeInfos)==null?void 0:mo.map(Bo=>_e.CodeInfoResponse.fromPartial(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function pt(){return{pagination:void 0}}_e.QueryPinnedCodesRequest={encode(io,co=st.Writer.create()){return io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=pt();for(;mo.pos>>3){case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=pt();return co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function lo(){return{codeIds:[],pagination:void 0}}_e.QueryPinnedCodesResponse={encode(io,co=st.Writer.create()){co.uint32(10).fork();for(const mo of io.codeIds)co.uint64(mo);return co.ldelim(),io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=lo();for(;mo.pos>>3){case 1:if((Tt&7)===2){const vo=mo.uint32()+mo.pos;for(;mo.posnt.Long.fromValue(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.codeIds?co.codeIds=io.codeIds.map(mo=>(mo||nt.Long.UZERO).toString()):co.codeIds=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=lo();return co.codeIds=((mo=io.codeIds)==null?void 0:mo.map(Bo=>nt.Long.fromValue(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function so(){return{}}_e.QueryParamsRequest={encode(io,co=st.Writer.create()){return co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=so();for(;mo.pos>>3){default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{}},toJSON(io){return{}},fromPartial(io){return so()}};function wo(){return{params:void 0}}_e.QueryParamsResponse={encode(io,co=st.Writer.create()){return io.params!==void 0&&tt.Params.encode(io.params,co.uint32(10).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=wo();for(;mo.pos>>3){case 1:So.params=tt.Params.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{params:(0,nt.isSet)(io.params)?tt.Params.fromJSON(io.params):void 0}},toJSON(io){const co={};return io.params!==void 0&&(co.params=io.params?tt.Params.toJSON(io.params):void 0),co},fromPartial(io){const co=wo();return co.params=io.params!==void 0&&io.params!==null?tt.Params.fromPartial(io.params):void 0,co}};function xt(){return{creatorAddress:"",pagination:void 0}}_e.QueryContractsByCreatorRequest={encode(io,co=st.Writer.create()){return io.creatorAddress!==""&&co.uint32(10).string(io.creatorAddress),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=xt();for(;mo.pos>>3){case 1:So.creatorAddress=mo.string();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{creatorAddress:(0,nt.isSet)(io.creatorAddress)?String(io.creatorAddress):"",pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.creatorAddress!==void 0&&(co.creatorAddress=io.creatorAddress),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=xt();return co.creatorAddress=io.creatorAddress??"",co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function Mt(){return{contractAddresses:[],pagination:void 0}}_e.QueryContractsByCreatorResponse={encode(io,co=st.Writer.create()){for(const mo of io.contractAddresses)co.uint32(10).string(mo);return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Mt();for(;mo.pos>>3){case 1:So.contractAddresses.push(mo.string());break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{contractAddresses:Array.isArray(io==null?void 0:io.contractAddresses)?io.contractAddresses.map(co=>String(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.contractAddresses?co.contractAddresses=io.contractAddresses.map(mo=>mo):co.contractAddresses=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=Mt();return co.contractAddresses=((mo=io.contractAddresses)==null?void 0:mo.map(Bo=>Bo))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};class ho{constructor(co){this.rpc=co,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(co){const mo=_e.QueryContractInfoRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractInfo",mo).then(Bo=>_e.QueryContractInfoResponse.decode(new st.Reader(Bo)))}ContractHistory(co){const mo=_e.QueryContractHistoryRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractHistory",mo).then(Bo=>_e.QueryContractHistoryResponse.decode(new st.Reader(Bo)))}ContractsByCode(co){const mo=_e.QueryContractsByCodeRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCode",mo).then(Bo=>_e.QueryContractsByCodeResponse.decode(new st.Reader(Bo)))}AllContractState(co){const mo=_e.QueryAllContractStateRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","AllContractState",mo).then(Bo=>_e.QueryAllContractStateResponse.decode(new st.Reader(Bo)))}RawContractState(co){const mo=_e.QueryRawContractStateRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","RawContractState",mo).then(Bo=>_e.QueryRawContractStateResponse.decode(new st.Reader(Bo)))}SmartContractState(co){const mo=_e.QuerySmartContractStateRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","SmartContractState",mo).then(Bo=>_e.QuerySmartContractStateResponse.decode(new st.Reader(Bo)))}Code(co){const mo=_e.QueryCodeRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Code",mo).then(Bo=>_e.QueryCodeResponse.decode(new st.Reader(Bo)))}Codes(co={pagination:void 0}){const mo=_e.QueryCodesRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Codes",mo).then(Bo=>_e.QueryCodesResponse.decode(new st.Reader(Bo)))}PinnedCodes(co={pagination:void 0}){const mo=_e.QueryPinnedCodesRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","PinnedCodes",mo).then(Bo=>_e.QueryPinnedCodesResponse.decode(new st.Reader(Bo)))}Params(co={}){const mo=_e.QueryParamsRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Params",mo).then(Bo=>_e.QueryParamsResponse.decode(new st.Reader(Bo)))}ContractsByCreator(co){const mo=_e.QueryContractsByCreatorRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCreator",mo).then(Bo=>_e.QueryContractsByCreatorResponse.decode(new st.Reader(Bo)))}}_e.QueryClientImpl=ho})(query);var __importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(queries,"__esModule",{value:!0}),queries.setupWasmExtension=void 0;const encoding_1$4=build$c,stargate_1$2=build$a,query_1=query,long_1$1=__importDefault$3(long);function setupWasmExtension(_e){const cr=(0,stargate_1$2.createProtobufRpcClient)(_e),gr=new query_1.QueryClientImpl(cr);return{wasm:{listCodeInfo:async Cr=>{const Vr={pagination:(0,stargate_1$2.createPagination)(Cr)};return gr.Codes(Vr)},getCode:async Cr=>{const Vr={codeId:long_1$1.default.fromNumber(Cr)};return gr.Code(Vr)},listContractsByCodeId:async(Cr,Vr)=>{const tt={codeId:long_1$1.default.fromNumber(Cr),pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.ContractsByCode(tt)},listContractsByCreator:async(Cr,Vr)=>{const tt={creatorAddress:Cr,pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.ContractsByCreator(tt)},getContractInfo:async Cr=>{const Vr={address:Cr};return gr.ContractInfo(Vr)},getContractCodeHistory:async(Cr,Vr)=>{const tt={address:Cr,pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.ContractHistory(tt)},getAllContractState:async(Cr,Vr)=>{const tt={address:Cr,pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.AllContractState(tt)},queryContractRaw:async(Cr,Vr)=>{const tt={address:Cr,queryData:Vr};return gr.RawContractState(tt)},queryContractSmart:async(Cr,Vr)=>{const tt={address:Cr,queryData:(0,encoding_1$4.toUtf8)(JSON.stringify(Vr))},{data:nt}=await gr.SmartContractState(tt);let st;try{st=(0,encoding_1$4.fromUtf8)(nt)}catch(dt){throw new Error(`Could not UTF-8 decode smart query response from contract: ${dt}`)}try{return JSON.parse(st)}catch(dt){throw new Error(`Could not JSON parse smart query response from contract: ${dt}`)}}}}}queries.setupWasmExtension=setupWasmExtension,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.setupWasmExtension=_e.wasmTypes=_e.isMsgUpdateAdminEncodeObject=_e.isMsgStoreCodeEncodeObject=_e.isMsgMigrateEncodeObject=_e.isMsgInstantiateContractEncodeObject=_e.isMsgInstantiateContract2EncodeObject=_e.isMsgExecuteEncodeObject=_e.isMsgClearAdminEncodeObject=_e.createWasmAminoConverters=void 0;var cr=aminomessages;Object.defineProperty(_e,"createWasmAminoConverters",{enumerable:!0,get:function(){return cr.createWasmAminoConverters}});var gr=messages$1;Object.defineProperty(_e,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return gr.isMsgClearAdminEncodeObject}}),Object.defineProperty(_e,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return gr.isMsgExecuteEncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return gr.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return gr.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(_e,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return gr.isMsgMigrateEncodeObject}}),Object.defineProperty(_e,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return gr.isMsgStoreCodeEncodeObject}}),Object.defineProperty(_e,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return gr.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(_e,"wasmTypes",{enumerable:!0,get:function(){return gr.wasmTypes}});var Cr=queries;Object.defineProperty(_e,"setupWasmExtension",{enumerable:!0,get:function(){return Cr.setupWasmExtension}})}(modules),Object.defineProperty(cosmwasmclient,"__esModule",{value:!0}),cosmwasmclient.CosmWasmClient=void 0;const encoding_1$3=build$c,math_1$2=build$b,stargate_1$1=build$a,tendermint_rpc_1$1=build$3,utils_1$3=build$6,abci_1=abci,types_1=types$1,modules_1$1=modules;class CosmWasmClient{static async connect(cr){let gr;const Cr=await tendermint_rpc_1$1.Tendermint37Client.connect(cr);return(await Cr.status()).nodeInfo.version.startsWith("0.37.")?gr=Cr:(Cr.disconnect(),gr=await tendermint_rpc_1$1.Tendermint34Client.connect(cr)),CosmWasmClient.create(gr)}static async create(cr){return new CosmWasmClient(cr)}constructor(cr){this.codesCache=new Map,cr&&(this.tmClient=cr,this.queryClient=stargate_1$1.QueryClient.withExtensions(cr,stargate_1$1.setupAuthExtension,stargate_1$1.setupBankExtension,modules_1$1.setupWasmExtension,stargate_1$1.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 cr=(await this.forceGetTmClient().status()).nodeInfo.network;if(!cr)throw new Error("Chain ID must not be empty");this.chainId=cr}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(cr){try{const gr=await this.forceGetQueryClient().auth.account(cr);return gr?(0,stargate_1$1.accountFromAny)(gr):null}catch(gr){if(/rpc error: code = NotFound/i.test(gr.toString()))return null;throw gr}}async getSequence(cr){const gr=await this.getAccount(cr);if(!gr)throw new Error(`Account '${cr}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:gr.accountNumber,sequence:gr.sequence}}async getBlock(cr){const gr=await this.forceGetTmClient().block(cr);return{id:(0,encoding_1$3.toHex)(gr.blockId.hash).toUpperCase(),header:{version:{block:new math_1$2.Uint53(gr.block.header.version.block).toString(),app:new math_1$2.Uint53(gr.block.header.version.app).toString()},height:gr.block.header.height,chainId:gr.block.header.chainId,time:(0,tendermint_rpc_1$1.toRfc3339WithNanoseconds)(gr.block.header.time)},txs:gr.block.txs}}async getBalance(cr,gr){return this.forceGetQueryClient().bank.balance(cr,gr)}async getTx(cr){return(await this.txsQuery(`tx.hash='${cr}'`))[0]??null}async searchTx(cr){let gr;if(typeof cr=="string")gr=cr;else if(Array.isArray(cr))gr=cr.map(Cr=>`${Cr.key}='${Cr.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(gr)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(cr,gr=6e4,Cr=3e3){let Vr=!1;const tt=setTimeout(()=>{Vr=!0},gr),nt=async dt=>{if(Vr)throw new stargate_1$1.TimeoutError(`Transaction with ID ${dt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${gr/1e3} seconds.`,dt);await(0,utils_1$3.sleep)(Cr);const kt=await this.getTx(dt);return kt?{code:kt.code,height:kt.height,txIndex:kt.txIndex,rawLog:kt.rawLog,transactionHash:dt,events:kt.events,msgResponses:kt.msgResponses,gasUsed:kt.gasUsed,gasWanted:kt.gasWanted}:nt(dt)},st=await this.broadcastTxSync(cr);return new Promise((dt,kt)=>nt(st).then(qt=>{clearTimeout(tt),dt(qt)},qt=>{clearTimeout(tt),kt(qt)}))}async broadcastTxSync(cr){const gr=await this.forceGetTmClient().broadcastTxSync({tx:cr});return gr.code?Promise.reject(new stargate_1$1.BroadcastTxError(gr.code,gr.codespace??"",gr.log)):(0,encoding_1$3.toHex)(gr.hash).toUpperCase()}async getCodes(){const cr=[];let gr;do{const{codeInfos:Cr,pagination:Vr}=await this.forceGetQueryClient().wasm.listCodeInfo(gr),tt=Cr||[];cr.push(...tt),gr=Vr==null?void 0:Vr.nextKey}while((gr==null?void 0:gr.length)!==0);return cr.map(Cr=>((0,utils_1$3.assert)(Cr.creator&&Cr.codeId&&Cr.dataHash,"entry incomplete"),{id:Cr.codeId.toNumber(),creator:Cr.creator,checksum:(0,encoding_1$3.toHex)(Cr.dataHash)}))}async getCodeDetails(cr){const gr=this.codesCache.get(cr);if(gr)return gr;const{codeInfo:Cr,data:Vr}=await this.forceGetQueryClient().wasm.getCode(cr);(0,utils_1$3.assert)(Cr&&Cr.codeId&&Cr.creator&&Cr.dataHash&&Vr,"codeInfo missing or incomplete");const tt={id:Cr.codeId.toNumber(),creator:Cr.creator,checksum:(0,encoding_1$3.toHex)(Cr.dataHash),data:Vr};return this.codesCache.set(cr,tt),tt}async getContracts(cr){const gr=[];let Cr;do{const{contracts:Vr,pagination:tt}=await this.forceGetQueryClient().wasm.listContractsByCodeId(cr,Cr);gr.push(...Vr),Cr=tt==null?void 0:tt.nextKey}while((Cr==null?void 0:Cr.length)!==0&&Cr!==void 0);return gr}async getContractsByCreator(cr){const gr=[];let Cr;do{const{contractAddresses:Vr,pagination:tt}=await this.forceGetQueryClient().wasm.listContractsByCreator(cr,Cr);gr.push(...Vr),Cr=tt==null?void 0:tt.nextKey}while((Cr==null?void 0:Cr.length)!==0&&Cr!==void 0);return gr}async getContract(cr){const{address:gr,contractInfo:Cr}=await this.forceGetQueryClient().wasm.getContractInfo(cr);if(!Cr)throw new Error(`No contract found at address "${cr}"`);return(0,utils_1$3.assert)(gr,"address missing"),(0,utils_1$3.assert)(Cr.codeId&&Cr.creator&&Cr.label,"contractInfo incomplete"),{address:gr,codeId:Cr.codeId.toNumber(),creator:Cr.creator,admin:Cr.admin||void 0,label:Cr.label,ibcPortId:Cr.ibcPortId||void 0}}async getContractCodeHistory(cr){const gr=await this.forceGetQueryClient().wasm.getContractCodeHistory(cr);if(!gr)throw new Error(`No contract history found for address "${cr}"`);const Cr={[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(gr.entries||[]).map(Vr=>((0,utils_1$3.assert)(Vr.operation&&Vr.codeId&&Vr.msg),{operation:Cr[Vr.operation],codeId:Vr.codeId.toNumber(),msg:JSON.parse((0,encoding_1$3.fromUtf8)(Vr.msg))}))}async queryContractRaw(cr,gr){await this.getContract(cr);const{data:Cr}=await this.forceGetQueryClient().wasm.queryContractRaw(cr,gr);return Cr??null}async queryContractSmart(cr,gr){try{return await this.forceGetQueryClient().wasm.queryContractSmart(cr,gr)}catch(Cr){throw Cr instanceof Error&&Cr.message.startsWith("not found: contract")?new Error(`No contract found at address "${cr}"`):Cr}}async txsQuery(cr){return(await this.forceGetTmClient().txSearchAll({query:cr})).txs.map(gr=>{const Cr=abci_1.TxMsgData.decode(gr.result.data??new Uint8Array);return{height:gr.height,txIndex:gr.index,hash:(0,encoding_1$3.toHex)(gr.hash).toUpperCase(),code:gr.result.code,events:gr.result.events.map(stargate_1$1.fromTendermintEvent),rawLog:gr.result.log||"",tx:gr.tx,msgResponses:Cr.msgResponses,gasUsed:gr.result.gasUsed,gasWanted:gr.result.gasWanted}})}}cosmwasmclient.CosmWasmClient=CosmWasmClient;var encoding={};Object.defineProperty(encoding,"__esModule",{value:!0}),encoding.fromBinary=encoding.toBinary=void 0;const encoding_1$2=build$c;function toBinary(_e){return(0,encoding_1$2.toBase64)((0,encoding_1$2.toUtf8)(JSON.stringify(_e)))}encoding.toBinary=toBinary;function fromBinary(_e){return JSON.parse((0,encoding_1$2.fromUtf8)((0,encoding_1$2.fromBase64)(_e)))}encoding.fromBinary=fromBinary;var instantiate2={};Object.defineProperty(instantiate2,"__esModule",{value:!0}),instantiate2.instantiate2Address=instantiate2._instantiate2AddressIntermediate=void 0;const crypto_1$1=build$7,encoding_1$1=build$c,math_1$1=build$b,utils_1$2=build$6;function hash$3(_e,cr){return new crypto_1$1.Sha256((0,crypto_1$1.sha256)((0,encoding_1$1.toAscii)(_e))).update(cr).digest()}function toUint64(_e){return math_1$1.Uint64.fromNumber(_e).toBytesBigEndian()}function _instantiate2AddressIntermediate(_e,cr,gr,Cr,Vr){(0,utils_1$2.assert)(_e.length===32);const tt=(0,encoding_1$1.fromBech32)(cr).data,nt=typeof Cr=="string"?(0,encoding_1$1.toUtf8)(Cr):new Uint8Array;if(gr.length<1||gr.length>64)throw new Error("Salt must be between 1 and 64 bytes");const st=new Uint8Array([...(0,encoding_1$1.toAscii)("wasm"),0,...toUint64(_e.length),..._e,...toUint64(tt.length),...tt,...toUint64(gr.length),...gr,...toUint64(nt.length),...nt]),dt=hash$3("module",st),kt=(0,encoding_1$1.toBech32)(Vr,dt);return{key:st,addressData:dt,address:kt}}instantiate2._instantiate2AddressIntermediate=_instantiate2AddressIntermediate;function instantiate2Address(_e,cr,gr,Cr){return _instantiate2AddressIntermediate(_e,cr,gr,null,Cr).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$3(_e){let cr=_e.length;for(;--cr>=0;)_e[cr]=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$3(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$3(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$3(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$3(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$3(base_length);const base_dist=new Array(D_CODES$1);zero$3(base_dist);function StaticTreeDesc(_e,cr,gr,Cr,Vr){this.static_tree=_e,this.extra_bits=cr,this.extra_base=gr,this.elems=Cr,this.max_length=Vr,this.has_stree=_e&&_e.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(_e,cr){this.dyn_tree=_e,this.max_code=0,this.stat_desc=cr}const d_code=_e=>_e<256?_dist_code[_e]:_dist_code[256+(_e>>>7)],put_short=(_e,cr)=>{_e.pending_buf[_e.pending++]=cr&255,_e.pending_buf[_e.pending++]=cr>>>8&255},send_bits=(_e,cr,gr)=>{_e.bi_valid>Buf_size-gr?(_e.bi_buf|=cr<<_e.bi_valid&65535,put_short(_e,_e.bi_buf),_e.bi_buf=cr>>Buf_size-_e.bi_valid,_e.bi_valid+=gr-Buf_size):(_e.bi_buf|=cr<<_e.bi_valid&65535,_e.bi_valid+=gr)},send_code=(_e,cr,gr)=>{send_bits(_e,gr[cr*2],gr[cr*2+1])},bi_reverse=(_e,cr)=>{let gr=0;do gr|=_e&1,_e>>>=1,gr<<=1;while(--cr>0);return gr>>>1},bi_flush=_e=>{_e.bi_valid===16?(put_short(_e,_e.bi_buf),_e.bi_buf=0,_e.bi_valid=0):_e.bi_valid>=8&&(_e.pending_buf[_e.pending++]=_e.bi_buf&255,_e.bi_buf>>=8,_e.bi_valid-=8)},gen_bitlen=(_e,cr)=>{const gr=cr.dyn_tree,Cr=cr.max_code,Vr=cr.stat_desc.static_tree,tt=cr.stat_desc.has_stree,nt=cr.stat_desc.extra_bits,st=cr.stat_desc.extra_base,dt=cr.stat_desc.max_length;let kt,qt,ro,ht,po,no,Nt=0;for(ht=0;ht<=MAX_BITS$1;ht++)_e.bl_count[ht]=0;for(gr[_e.heap[_e.heap_max]*2+1]=0,kt=_e.heap_max+1;ktdt&&(ht=dt,Nt++),gr[qt*2+1]=ht,!(qt>Cr)&&(_e.bl_count[ht]++,po=0,qt>=st&&(po=nt[qt-st]),no=gr[qt*2],_e.opt_len+=no*(ht+po),tt&&(_e.static_len+=no*(Vr[qt*2+1]+po)));if(Nt!==0){do{for(ht=dt-1;_e.bl_count[ht]===0;)ht--;_e.bl_count[ht]--,_e.bl_count[ht+1]+=2,_e.bl_count[dt]--,Nt-=2}while(Nt>0);for(ht=dt;ht!==0;ht--)for(qt=_e.bl_count[ht];qt!==0;)ro=_e.heap[--kt],!(ro>Cr)&&(gr[ro*2+1]!==ht&&(_e.opt_len+=(ht-gr[ro*2+1])*gr[ro*2],gr[ro*2+1]=ht),qt--)}},gen_codes=(_e,cr,gr)=>{const Cr=new Array(MAX_BITS$1+1);let Vr=0,tt,nt;for(tt=1;tt<=MAX_BITS$1;tt++)Vr=Vr+gr[tt-1]<<1,Cr[tt]=Vr;for(nt=0;nt<=cr;nt++){let st=_e[nt*2+1];st!==0&&(_e[nt*2]=bi_reverse(Cr[st]++,st))}},tr_static_init=()=>{let _e,cr,gr,Cr,Vr;const tt=new Array(MAX_BITS$1+1);for(gr=0,Cr=0;Cr>=7;Cr{let cr;for(cr=0;cr{_e.bi_valid>8?put_short(_e,_e.bi_buf):_e.bi_valid>0&&(_e.pending_buf[_e.pending++]=_e.bi_buf),_e.bi_buf=0,_e.bi_valid=0},smaller=(_e,cr,gr,Cr)=>{const Vr=cr*2,tt=gr*2;return _e[Vr]<_e[tt]||_e[Vr]===_e[tt]&&Cr[cr]<=Cr[gr]},pqdownheap=(_e,cr,gr)=>{const Cr=_e.heap[gr];let Vr=gr<<1;for(;Vr<=_e.heap_len&&(Vr<_e.heap_len&&smaller(cr,_e.heap[Vr+1],_e.heap[Vr],_e.depth)&&Vr++,!smaller(cr,Cr,_e.heap[Vr],_e.depth));)_e.heap[gr]=_e.heap[Vr],gr=Vr,Vr<<=1;_e.heap[gr]=Cr},compress_block=(_e,cr,gr)=>{let Cr,Vr,tt=0,nt,st;if(_e.sym_next!==0)do Cr=_e.pending_buf[_e.sym_buf+tt++]&255,Cr+=(_e.pending_buf[_e.sym_buf+tt++]&255)<<8,Vr=_e.pending_buf[_e.sym_buf+tt++],Cr===0?send_code(_e,Vr,cr):(nt=_length_code[Vr],send_code(_e,nt+LITERALS$1+1,cr),st=extra_lbits[nt],st!==0&&(Vr-=base_length[nt],send_bits(_e,Vr,st)),Cr--,nt=d_code(Cr),send_code(_e,nt,gr),st=extra_dbits[nt],st!==0&&(Cr-=base_dist[nt],send_bits(_e,Cr,st)));while(tt<_e.sym_next);send_code(_e,END_BLOCK,cr)},build_tree=(_e,cr)=>{const gr=cr.dyn_tree,Cr=cr.stat_desc.static_tree,Vr=cr.stat_desc.has_stree,tt=cr.stat_desc.elems;let nt,st,dt=-1,kt;for(_e.heap_len=0,_e.heap_max=HEAP_SIZE$1,nt=0;nt>1;nt>=1;nt--)pqdownheap(_e,gr,nt);kt=tt;do nt=_e.heap[1],_e.heap[1]=_e.heap[_e.heap_len--],pqdownheap(_e,gr,1),st=_e.heap[1],_e.heap[--_e.heap_max]=nt,_e.heap[--_e.heap_max]=st,gr[kt*2]=gr[nt*2]+gr[st*2],_e.depth[kt]=(_e.depth[nt]>=_e.depth[st]?_e.depth[nt]:_e.depth[st])+1,gr[nt*2+1]=gr[st*2+1]=kt,_e.heap[1]=kt++,pqdownheap(_e,gr,1);while(_e.heap_len>=2);_e.heap[--_e.heap_max]=_e.heap[1],gen_bitlen(_e,cr),gen_codes(gr,dt,_e.bl_count)},scan_tree=(_e,cr,gr)=>{let Cr,Vr=-1,tt,nt=cr[0*2+1],st=0,dt=7,kt=4;for(nt===0&&(dt=138,kt=3),cr[(gr+1)*2+1]=65535,Cr=0;Cr<=gr;Cr++)tt=nt,nt=cr[(Cr+1)*2+1],!(++st{let Cr,Vr=-1,tt,nt=cr[0*2+1],st=0,dt=7,kt=4;for(nt===0&&(dt=138,kt=3),Cr=0;Cr<=gr;Cr++)if(tt=nt,nt=cr[(Cr+1)*2+1],!(++st{let cr;for(scan_tree(_e,_e.dyn_ltree,_e.l_desc.max_code),scan_tree(_e,_e.dyn_dtree,_e.d_desc.max_code),build_tree(_e,_e.bl_desc),cr=BL_CODES$1-1;cr>=3&&_e.bl_tree[bl_order[cr]*2+1]===0;cr--);return _e.opt_len+=3*(cr+1)+5+5+4,cr},send_all_trees=(_e,cr,gr,Cr)=>{let Vr;for(send_bits(_e,cr-257,5),send_bits(_e,gr-1,5),send_bits(_e,Cr-4,4),Vr=0;Vr{let cr=4093624447,gr;for(gr=0;gr<=31;gr++,cr>>>=1)if(cr&1&&_e.dyn_ltree[gr*2]!==0)return Z_BINARY;if(_e.dyn_ltree[9*2]!==0||_e.dyn_ltree[10*2]!==0||_e.dyn_ltree[13*2]!==0)return Z_TEXT;for(gr=32;gr{static_init_done||(tr_static_init(),static_init_done=!0),_e.l_desc=new TreeDesc(_e.dyn_ltree,static_l_desc),_e.d_desc=new TreeDesc(_e.dyn_dtree,static_d_desc),_e.bl_desc=new TreeDesc(_e.bl_tree,static_bl_desc),_e.bi_buf=0,_e.bi_valid=0,init_block(_e)},_tr_stored_block$1=(_e,cr,gr,Cr)=>{send_bits(_e,(STORED_BLOCK<<1)+(Cr?1:0),3),bi_windup(_e),put_short(_e,gr),put_short(_e,~gr),gr&&_e.pending_buf.set(_e.window.subarray(cr,cr+gr),_e.pending),_e.pending+=gr},_tr_align$1=_e=>{send_bits(_e,STATIC_TREES<<1,3),send_code(_e,END_BLOCK,static_ltree),bi_flush(_e)},_tr_flush_block$1=(_e,cr,gr,Cr)=>{let Vr,tt,nt=0;_e.level>0?(_e.strm.data_type===Z_UNKNOWN$1&&(_e.strm.data_type=detect_data_type(_e)),build_tree(_e,_e.l_desc),build_tree(_e,_e.d_desc),nt=build_bl_tree(_e),Vr=_e.opt_len+3+7>>>3,tt=_e.static_len+3+7>>>3,tt<=Vr&&(Vr=tt)):Vr=tt=gr+5,gr+4<=Vr&&cr!==-1?_tr_stored_block$1(_e,cr,gr,Cr):_e.strategy===Z_FIXED$1||tt===Vr?(send_bits(_e,(STATIC_TREES<<1)+(Cr?1:0),3),compress_block(_e,static_ltree,static_dtree)):(send_bits(_e,(DYN_TREES<<1)+(Cr?1:0),3),send_all_trees(_e,_e.l_desc.max_code+1,_e.d_desc.max_code+1,nt+1),compress_block(_e,_e.dyn_ltree,_e.dyn_dtree)),init_block(_e),Cr&&bi_windup(_e)},_tr_tally$1=(_e,cr,gr)=>(_e.pending_buf[_e.sym_buf+_e.sym_next++]=cr,_e.pending_buf[_e.sym_buf+_e.sym_next++]=cr>>8,_e.pending_buf[_e.sym_buf+_e.sym_next++]=gr,cr===0?_e.dyn_ltree[gr*2]++:(_e.matches++,cr--,_e.dyn_ltree[(_length_code[gr]+LITERALS$1+1)*2]++,_e.dyn_dtree[d_code(cr)*2]++),_e.sym_next===_e.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=(_e,cr,gr,Cr)=>{let Vr=_e&65535|0,tt=_e>>>16&65535|0,nt=0;for(;gr!==0;){nt=gr>2e3?2e3:gr,gr-=nt;do Vr=Vr+cr[Cr++]|0,tt=tt+Vr|0;while(--nt);Vr%=65521,tt%=65521}return Vr|tt<<16|0};var adler32_1=adler32$2;const makeTable=()=>{let _e,cr=[];for(var gr=0;gr<256;gr++){_e=gr;for(var Cr=0;Cr<8;Cr++)_e=_e&1?3988292384^_e>>>1:_e>>>1;cr[gr]=_e}return cr},crcTable=new Uint32Array(makeTable()),crc32$2=(_e,cr,gr,Cr)=>{const Vr=crcTable,tt=Cr+gr;_e^=-1;for(let nt=Cr;nt>>8^Vr[(_e^cr[nt])&255];return _e^-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$2={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$2,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=(_e,cr)=>(_e.msg=msg$2[cr],cr),rank=_e=>_e*2-(_e>4?9:0),zero$2=_e=>{let cr=_e.length;for(;--cr>=0;)_e[cr]=0},slide_hash=_e=>{let cr,gr,Cr,Vr=_e.w_size;cr=_e.hash_size,Cr=cr;do gr=_e.head[--Cr],_e.head[Cr]=gr>=Vr?gr-Vr:0;while(--cr);cr=Vr,Cr=cr;do gr=_e.prev[--Cr],_e.prev[Cr]=gr>=Vr?gr-Vr:0;while(--cr)};let HASH_ZLIB=(_e,cr,gr)=>(cr<<_e.hash_shift^gr)&_e.hash_mask,HASH=HASH_ZLIB;const flush_pending=_e=>{const cr=_e.state;let gr=cr.pending;gr>_e.avail_out&&(gr=_e.avail_out),gr!==0&&(_e.output.set(cr.pending_buf.subarray(cr.pending_out,cr.pending_out+gr),_e.next_out),_e.next_out+=gr,cr.pending_out+=gr,_e.total_out+=gr,_e.avail_out-=gr,cr.pending-=gr,cr.pending===0&&(cr.pending_out=0))},flush_block_only=(_e,cr)=>{_tr_flush_block(_e,_e.block_start>=0?_e.block_start:-1,_e.strstart-_e.block_start,cr),_e.block_start=_e.strstart,flush_pending(_e.strm)},put_byte=(_e,cr)=>{_e.pending_buf[_e.pending++]=cr},putShortMSB=(_e,cr)=>{_e.pending_buf[_e.pending++]=cr>>>8&255,_e.pending_buf[_e.pending++]=cr&255},read_buf=(_e,cr,gr,Cr)=>{let Vr=_e.avail_in;return Vr>Cr&&(Vr=Cr),Vr===0?0:(_e.avail_in-=Vr,cr.set(_e.input.subarray(_e.next_in,_e.next_in+Vr),gr),_e.state.wrap===1?_e.adler=adler32$1(_e.adler,cr,Vr,gr):_e.state.wrap===2&&(_e.adler=crc32$1(_e.adler,cr,Vr,gr)),_e.next_in+=Vr,_e.total_in+=Vr,Vr)},longest_match=(_e,cr)=>{let gr=_e.max_chain_length,Cr=_e.strstart,Vr,tt,nt=_e.prev_length,st=_e.nice_match;const dt=_e.strstart>_e.w_size-MIN_LOOKAHEAD?_e.strstart-(_e.w_size-MIN_LOOKAHEAD):0,kt=_e.window,qt=_e.w_mask,ro=_e.prev,ht=_e.strstart+MAX_MATCH;let po=kt[Cr+nt-1],no=kt[Cr+nt];_e.prev_length>=_e.good_match&&(gr>>=2),st>_e.lookahead&&(st=_e.lookahead);do if(Vr=cr,!(kt[Vr+nt]!==no||kt[Vr+nt-1]!==po||kt[Vr]!==kt[Cr]||kt[++Vr]!==kt[Cr+1])){Cr+=2,Vr++;do;while(kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&Crnt){if(_e.match_start=cr,nt=tt,tt>=st)break;po=kt[Cr+nt-1],no=kt[Cr+nt]}}while((cr=ro[cr&qt])>dt&&--gr!==0);return nt<=_e.lookahead?nt:_e.lookahead},fill_window=_e=>{const cr=_e.w_size;let gr,Cr,Vr;do{if(Cr=_e.window_size-_e.lookahead-_e.strstart,_e.strstart>=cr+(cr-MIN_LOOKAHEAD)&&(_e.window.set(_e.window.subarray(cr,cr+cr-Cr),0),_e.match_start-=cr,_e.strstart-=cr,_e.block_start-=cr,_e.insert>_e.strstart&&(_e.insert=_e.strstart),slide_hash(_e),Cr+=cr),_e.strm.avail_in===0)break;if(gr=read_buf(_e.strm,_e.window,_e.strstart+_e.lookahead,Cr),_e.lookahead+=gr,_e.lookahead+_e.insert>=MIN_MATCH)for(Vr=_e.strstart-_e.insert,_e.ins_h=_e.window[Vr],_e.ins_h=HASH(_e,_e.ins_h,_e.window[Vr+1]);_e.insert&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[Vr+MIN_MATCH-1]),_e.prev[Vr&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=Vr,Vr++,_e.insert--,!(_e.lookahead+_e.insert{let gr=_e.pending_buf_size-5>_e.w_size?_e.w_size:_e.pending_buf_size-5,Cr,Vr,tt,nt=0,st=_e.strm.avail_in;do{if(Cr=65535,tt=_e.bi_valid+42>>3,_e.strm.avail_outVr+_e.strm.avail_in&&(Cr=Vr+_e.strm.avail_in),Cr>tt&&(Cr=tt),Cr>8,_e.pending_buf[_e.pending-2]=~Cr,_e.pending_buf[_e.pending-1]=~Cr>>8,flush_pending(_e.strm),Vr&&(Vr>Cr&&(Vr=Cr),_e.strm.output.set(_e.window.subarray(_e.block_start,_e.block_start+Vr),_e.strm.next_out),_e.strm.next_out+=Vr,_e.strm.avail_out-=Vr,_e.strm.total_out+=Vr,_e.block_start+=Vr,Cr-=Vr),Cr&&(read_buf(_e.strm,_e.strm.output,_e.strm.next_out,Cr),_e.strm.next_out+=Cr,_e.strm.avail_out-=Cr,_e.strm.total_out+=Cr)}while(nt===0);return st-=_e.strm.avail_in,st&&(st>=_e.w_size?(_e.matches=2,_e.window.set(_e.strm.input.subarray(_e.strm.next_in-_e.w_size,_e.strm.next_in),0),_e.strstart=_e.w_size,_e.insert=_e.strstart):(_e.window_size-_e.strstart<=st&&(_e.strstart-=_e.w_size,_e.window.set(_e.window.subarray(_e.w_size,_e.w_size+_e.strstart),0),_e.matches<2&&_e.matches++,_e.insert>_e.strstart&&(_e.insert=_e.strstart)),_e.window.set(_e.strm.input.subarray(_e.strm.next_in-st,_e.strm.next_in),_e.strstart),_e.strstart+=st,_e.insert+=st>_e.w_size-_e.insert?_e.w_size-_e.insert:st),_e.block_start=_e.strstart),_e.high_water<_e.strstart&&(_e.high_water=_e.strstart),nt?BS_FINISH_DONE:cr!==Z_NO_FLUSH$2&&cr!==Z_FINISH$3&&_e.strm.avail_in===0&&_e.strstart===_e.block_start?BS_BLOCK_DONE:(tt=_e.window_size-_e.strstart,_e.strm.avail_in>tt&&_e.block_start>=_e.w_size&&(_e.block_start-=_e.w_size,_e.strstart-=_e.w_size,_e.window.set(_e.window.subarray(_e.w_size,_e.w_size+_e.strstart),0),_e.matches<2&&_e.matches++,tt+=_e.w_size,_e.insert>_e.strstart&&(_e.insert=_e.strstart)),tt>_e.strm.avail_in&&(tt=_e.strm.avail_in),tt&&(read_buf(_e.strm,_e.window,_e.strstart,tt),_e.strstart+=tt,_e.insert+=tt>_e.w_size-_e.insert?_e.w_size-_e.insert:tt),_e.high_water<_e.strstart&&(_e.high_water=_e.strstart),tt=_e.bi_valid+42>>3,tt=_e.pending_buf_size-tt>65535?65535:_e.pending_buf_size-tt,gr=tt>_e.w_size?_e.w_size:tt,Vr=_e.strstart-_e.block_start,(Vr>=gr||(Vr||cr===Z_FINISH$3)&&cr!==Z_NO_FLUSH$2&&_e.strm.avail_in===0&&Vr<=tt)&&(Cr=Vr>tt?tt:Vr,nt=cr===Z_FINISH$3&&_e.strm.avail_in===0&&Cr===Vr?1:0,_tr_stored_block(_e,_e.block_start,Cr,nt),_e.block_start+=Cr,flush_pending(_e.strm)),nt?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(_e,cr)=>{let gr,Cr;for(;;){if(_e.lookahead=MIN_MATCH&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart),gr!==0&&_e.strstart-gr<=_e.w_size-MIN_LOOKAHEAD&&(_e.match_length=longest_match(_e,gr)),_e.match_length>=MIN_MATCH)if(Cr=_tr_tally(_e,_e.strstart-_e.match_start,_e.match_length-MIN_MATCH),_e.lookahead-=_e.match_length,_e.match_length<=_e.max_lazy_match&&_e.lookahead>=MIN_MATCH){_e.match_length--;do _e.strstart++,_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart;while(--_e.match_length!==0);_e.strstart++}else _e.strstart+=_e.match_length,_e.match_length=0,_e.ins_h=_e.window[_e.strstart],_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+1]);else Cr=_tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++;if(Cr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}return _e.insert=_e.strstart{let gr,Cr,Vr;for(;;){if(_e.lookahead=MIN_MATCH&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart),_e.prev_length=_e.match_length,_e.prev_match=_e.match_start,_e.match_length=MIN_MATCH-1,gr!==0&&_e.prev_length<_e.max_lazy_match&&_e.strstart-gr<=_e.w_size-MIN_LOOKAHEAD&&(_e.match_length=longest_match(_e,gr),_e.match_length<=5&&(_e.strategy===Z_FILTERED||_e.match_length===MIN_MATCH&&_e.strstart-_e.match_start>4096)&&(_e.match_length=MIN_MATCH-1)),_e.prev_length>=MIN_MATCH&&_e.match_length<=_e.prev_length){Vr=_e.strstart+_e.lookahead-MIN_MATCH,Cr=_tr_tally(_e,_e.strstart-1-_e.prev_match,_e.prev_length-MIN_MATCH),_e.lookahead-=_e.prev_length-1,_e.prev_length-=2;do++_e.strstart<=Vr&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart);while(--_e.prev_length!==0);if(_e.match_available=0,_e.match_length=MIN_MATCH-1,_e.strstart++,Cr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}else if(_e.match_available){if(Cr=_tr_tally(_e,0,_e.window[_e.strstart-1]),Cr&&flush_block_only(_e,!1),_e.strstart++,_e.lookahead--,_e.strm.avail_out===0)return BS_NEED_MORE}else _e.match_available=1,_e.strstart++,_e.lookahead--}return _e.match_available&&(Cr=_tr_tally(_e,0,_e.window[_e.strstart-1]),_e.match_available=0),_e.insert=_e.strstart{let gr,Cr,Vr,tt;const nt=_e.window;for(;;){if(_e.lookahead<=MAX_MATCH){if(fill_window(_e),_e.lookahead<=MAX_MATCH&&cr===Z_NO_FLUSH$2)return BS_NEED_MORE;if(_e.lookahead===0)break}if(_e.match_length=0,_e.lookahead>=MIN_MATCH&&_e.strstart>0&&(Vr=_e.strstart-1,Cr=nt[Vr],Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr])){tt=_e.strstart+MAX_MATCH;do;while(Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Vr_e.lookahead&&(_e.match_length=_e.lookahead)}if(_e.match_length>=MIN_MATCH?(gr=_tr_tally(_e,1,_e.match_length-MIN_MATCH),_e.lookahead-=_e.match_length,_e.strstart+=_e.match_length,_e.match_length=0):(gr=_tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++),gr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}return _e.insert=0,cr===Z_FINISH$3?(flush_block_only(_e,!0),_e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):_e.sym_next&&(flush_block_only(_e,!1),_e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(_e,cr)=>{let gr;for(;;){if(_e.lookahead===0&&(fill_window(_e),_e.lookahead===0)){if(cr===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(_e.match_length=0,gr=_tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++,gr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}return _e.insert=0,cr===Z_FINISH$3?(flush_block_only(_e,!0),_e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):_e.sym_next&&(flush_block_only(_e,!1),_e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(_e,cr,gr,Cr,Vr){this.good_length=_e,this.max_lazy=cr,this.nice_length=gr,this.max_chain=Cr,this.func=Vr}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=_e=>{_e.window_size=2*_e.w_size,zero$2(_e.head),_e.max_lazy_match=configuration_table[_e.level].max_lazy,_e.good_match=configuration_table[_e.level].good_length,_e.nice_match=configuration_table[_e.level].nice_length,_e.max_chain_length=configuration_table[_e.level].max_chain,_e.strstart=0,_e.block_start=0,_e.lookahead=0,_e.insert=0,_e.match_length=_e.prev_length=MIN_MATCH-1,_e.match_available=0,_e.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$2(this.dyn_ltree),zero$2(this.dyn_dtree),zero$2(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$2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero$2(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=_e=>{if(!_e)return 1;const cr=_e.state;return!cr||cr.strm!==_e||cr.status!==INIT_STATE&&cr.status!==GZIP_STATE&&cr.status!==EXTRA_STATE&&cr.status!==NAME_STATE&&cr.status!==COMMENT_STATE&&cr.status!==HCRC_STATE&&cr.status!==BUSY_STATE&&cr.status!==FINISH_STATE?1:0},deflateResetKeep=_e=>{if(deflateStateCheck(_e))return err(_e,Z_STREAM_ERROR$2);_e.total_in=_e.total_out=0,_e.data_type=Z_UNKNOWN;const cr=_e.state;return cr.pending=0,cr.pending_out=0,cr.wrap<0&&(cr.wrap=-cr.wrap),cr.status=cr.wrap===2?GZIP_STATE:cr.wrap?INIT_STATE:BUSY_STATE,_e.adler=cr.wrap===2?0:1,cr.last_flush=-2,_tr_init(cr),Z_OK$3},deflateReset=_e=>{const cr=deflateResetKeep(_e);return cr===Z_OK$3&&lm_init(_e.state),cr},deflateSetHeader=(_e,cr)=>deflateStateCheck(_e)||_e.state.wrap!==2?Z_STREAM_ERROR$2:(_e.state.gzhead=cr,Z_OK$3),deflateInit2=(_e,cr,gr,Cr,Vr,tt)=>{if(!_e)return Z_STREAM_ERROR$2;let nt=1;if(cr===Z_DEFAULT_COMPRESSION$1&&(cr=6),Cr<0?(nt=0,Cr=-Cr):Cr>15&&(nt=2,Cr-=16),Vr<1||Vr>MAX_MEM_LEVEL||gr!==Z_DEFLATED$2||Cr<8||Cr>15||cr<0||cr>9||tt<0||tt>Z_FIXED||Cr===8&&nt!==1)return err(_e,Z_STREAM_ERROR$2);Cr===8&&(Cr=9);const st=new DeflateState;return _e.state=st,st.strm=_e,st.status=INIT_STATE,st.wrap=nt,st.gzhead=null,st.w_bits=Cr,st.w_size=1<deflateInit2(_e,cr,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(_e,cr)=>{if(deflateStateCheck(_e)||cr>Z_BLOCK$1||cr<0)return _e?err(_e,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const gr=_e.state;if(!_e.output||_e.avail_in!==0&&!_e.input||gr.status===FINISH_STATE&&cr!==Z_FINISH$3)return err(_e,_e.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const Cr=gr.last_flush;if(gr.last_flush=cr,gr.pending!==0){if(flush_pending(_e),_e.avail_out===0)return gr.last_flush=-1,Z_OK$3}else if(_e.avail_in===0&&rank(cr)<=rank(Cr)&&cr!==Z_FINISH$3)return err(_e,Z_BUF_ERROR$1);if(gr.status===FINISH_STATE&&_e.avail_in!==0)return err(_e,Z_BUF_ERROR$1);if(gr.status===INIT_STATE&&gr.wrap===0&&(gr.status=BUSY_STATE),gr.status===INIT_STATE){let Vr=Z_DEFLATED$2+(gr.w_bits-8<<4)<<8,tt=-1;if(gr.strategy>=Z_HUFFMAN_ONLY||gr.level<2?tt=0:gr.level<6?tt=1:gr.level===6?tt=2:tt=3,Vr|=tt<<6,gr.strstart!==0&&(Vr|=PRESET_DICT),Vr+=31-Vr%31,putShortMSB(gr,Vr),gr.strstart!==0&&(putShortMSB(gr,_e.adler>>>16),putShortMSB(gr,_e.adler&65535)),_e.adler=1,gr.status=BUSY_STATE,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3}if(gr.status===GZIP_STATE){if(_e.adler=0,put_byte(gr,31),put_byte(gr,139),put_byte(gr,8),gr.gzhead)put_byte(gr,(gr.gzhead.text?1:0)+(gr.gzhead.hcrc?2:0)+(gr.gzhead.extra?4:0)+(gr.gzhead.name?8:0)+(gr.gzhead.comment?16:0)),put_byte(gr,gr.gzhead.time&255),put_byte(gr,gr.gzhead.time>>8&255),put_byte(gr,gr.gzhead.time>>16&255),put_byte(gr,gr.gzhead.time>>24&255),put_byte(gr,gr.level===9?2:gr.strategy>=Z_HUFFMAN_ONLY||gr.level<2?4:0),put_byte(gr,gr.gzhead.os&255),gr.gzhead.extra&&gr.gzhead.extra.length&&(put_byte(gr,gr.gzhead.extra.length&255),put_byte(gr,gr.gzhead.extra.length>>8&255)),gr.gzhead.hcrc&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending,0)),gr.gzindex=0,gr.status=EXTRA_STATE;else if(put_byte(gr,0),put_byte(gr,0),put_byte(gr,0),put_byte(gr,0),put_byte(gr,0),put_byte(gr,gr.level===9?2:gr.strategy>=Z_HUFFMAN_ONLY||gr.level<2?4:0),put_byte(gr,OS_CODE),gr.status=BUSY_STATE,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3}if(gr.status===EXTRA_STATE){if(gr.gzhead.extra){let Vr=gr.pending,tt=(gr.gzhead.extra.length&65535)-gr.gzindex;for(;gr.pending+tt>gr.pending_buf_size;){let st=gr.pending_buf_size-gr.pending;if(gr.pending_buf.set(gr.gzhead.extra.subarray(gr.gzindex,gr.gzindex+st),gr.pending),gr.pending=gr.pending_buf_size,gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),gr.gzindex+=st,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3;Vr=0,tt-=st}let nt=new Uint8Array(gr.gzhead.extra);gr.pending_buf.set(nt.subarray(gr.gzindex,gr.gzindex+tt),gr.pending),gr.pending+=tt,gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),gr.gzindex=0}gr.status=NAME_STATE}if(gr.status===NAME_STATE){if(gr.gzhead.name){let Vr=gr.pending,tt;do{if(gr.pending===gr.pending_buf_size){if(gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3;Vr=0}gr.gzindexVr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),gr.gzindex=0}gr.status=COMMENT_STATE}if(gr.status===COMMENT_STATE){if(gr.gzhead.comment){let Vr=gr.pending,tt;do{if(gr.pending===gr.pending_buf_size){if(gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3;Vr=0}gr.gzindexVr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr))}gr.status=HCRC_STATE}if(gr.status===HCRC_STATE){if(gr.gzhead.hcrc){if(gr.pending+2>gr.pending_buf_size&&(flush_pending(_e),gr.pending!==0))return gr.last_flush=-1,Z_OK$3;put_byte(gr,_e.adler&255),put_byte(gr,_e.adler>>8&255),_e.adler=0}if(gr.status=BUSY_STATE,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3}if(_e.avail_in!==0||gr.lookahead!==0||cr!==Z_NO_FLUSH$2&&gr.status!==FINISH_STATE){let Vr=gr.level===0?deflate_stored(gr,cr):gr.strategy===Z_HUFFMAN_ONLY?deflate_huff(gr,cr):gr.strategy===Z_RLE?deflate_rle(gr,cr):configuration_table[gr.level].func(gr,cr);if((Vr===BS_FINISH_STARTED||Vr===BS_FINISH_DONE)&&(gr.status=FINISH_STATE),Vr===BS_NEED_MORE||Vr===BS_FINISH_STARTED)return _e.avail_out===0&&(gr.last_flush=-1),Z_OK$3;if(Vr===BS_BLOCK_DONE&&(cr===Z_PARTIAL_FLUSH?_tr_align(gr):cr!==Z_BLOCK$1&&(_tr_stored_block(gr,0,0,!1),cr===Z_FULL_FLUSH$1&&(zero$2(gr.head),gr.lookahead===0&&(gr.strstart=0,gr.block_start=0,gr.insert=0))),flush_pending(_e),_e.avail_out===0))return gr.last_flush=-1,Z_OK$3}return cr!==Z_FINISH$3?Z_OK$3:gr.wrap<=0?Z_STREAM_END$3:(gr.wrap===2?(put_byte(gr,_e.adler&255),put_byte(gr,_e.adler>>8&255),put_byte(gr,_e.adler>>16&255),put_byte(gr,_e.adler>>24&255),put_byte(gr,_e.total_in&255),put_byte(gr,_e.total_in>>8&255),put_byte(gr,_e.total_in>>16&255),put_byte(gr,_e.total_in>>24&255)):(putShortMSB(gr,_e.adler>>>16),putShortMSB(gr,_e.adler&65535)),flush_pending(_e),gr.wrap>0&&(gr.wrap=-gr.wrap),gr.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=_e=>{if(deflateStateCheck(_e))return Z_STREAM_ERROR$2;const cr=_e.state.status;return _e.state=null,cr===BUSY_STATE?err(_e,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(_e,cr)=>{let gr=cr.length;if(deflateStateCheck(_e))return Z_STREAM_ERROR$2;const Cr=_e.state,Vr=Cr.wrap;if(Vr===2||Vr===1&&Cr.status!==INIT_STATE||Cr.lookahead)return Z_STREAM_ERROR$2;if(Vr===1&&(_e.adler=adler32$1(_e.adler,cr,gr,0)),Cr.wrap=0,gr>=Cr.w_size){Vr===0&&(zero$2(Cr.head),Cr.strstart=0,Cr.block_start=0,Cr.insert=0);let dt=new Uint8Array(Cr.w_size);dt.set(cr.subarray(gr-Cr.w_size,gr),0),cr=dt,gr=Cr.w_size}const tt=_e.avail_in,nt=_e.next_in,st=_e.input;for(_e.avail_in=gr,_e.next_in=0,_e.input=cr,fill_window(Cr);Cr.lookahead>=MIN_MATCH;){let dt=Cr.strstart,kt=Cr.lookahead-(MIN_MATCH-1);do Cr.ins_h=HASH(Cr,Cr.ins_h,Cr.window[dt+MIN_MATCH-1]),Cr.prev[dt&Cr.w_mask]=Cr.head[Cr.ins_h],Cr.head[Cr.ins_h]=dt,dt++;while(--kt);Cr.strstart=dt,Cr.lookahead=MIN_MATCH-1,fill_window(Cr)}return Cr.strstart+=Cr.lookahead,Cr.block_start=Cr.strstart,Cr.insert=Cr.lookahead,Cr.lookahead=0,Cr.match_length=Cr.prev_length=MIN_MATCH-1,Cr.match_available=0,_e.next_in=nt,_e.input=st,_e.avail_in=tt,Cr.wrap=Vr,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$1={};const _has=(_e,cr)=>Object.prototype.hasOwnProperty.call(_e,cr);common$1.assign=function(_e){const cr=Array.prototype.slice.call(arguments,1);for(;cr.length;){const gr=cr.shift();if(gr){if(typeof gr!="object")throw new TypeError(gr+"must be non-object");for(const Cr in gr)_has(gr,Cr)&&(_e[Cr]=gr[Cr])}}return _e},common$1.flattenChunks=_e=>{let cr=0;for(let Cr=0,Vr=_e.length;Cr=252?6:_e>=248?5:_e>=240?4:_e>=224?3:_e>=192?2:1;_utf8len[254]=_utf8len[254]=1,strings$2.string2buf=_e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(_e);let cr,gr,Cr,Vr,tt,nt=_e.length,st=0;for(Vr=0;Vr>>6,cr[tt++]=128|gr&63):gr<65536?(cr[tt++]=224|gr>>>12,cr[tt++]=128|gr>>>6&63,cr[tt++]=128|gr&63):(cr[tt++]=240|gr>>>18,cr[tt++]=128|gr>>>12&63,cr[tt++]=128|gr>>>6&63,cr[tt++]=128|gr&63);return cr};const buf2binstring=(_e,cr)=>{if(cr<65534&&_e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,_e.length===cr?_e:_e.subarray(0,cr));let gr="";for(let Cr=0;Cr{const gr=cr||_e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(_e.subarray(0,cr));let Cr,Vr;const tt=new Array(gr*2);for(Vr=0,Cr=0;Cr4){tt[Vr++]=65533,Cr+=st-1;continue}for(nt&=st===2?31:st===3?15:7;st>1&&Cr1){tt[Vr++]=65533;continue}nt<65536?tt[Vr++]=nt:(nt-=65536,tt[Vr++]=55296|nt>>10&1023,tt[Vr++]=56320|nt&1023)}return buf2binstring(tt,Vr)},strings$2.utf8border=(_e,cr)=>{cr=cr||_e.length,cr>_e.length&&(cr=_e.length);let gr=cr-1;for(;gr>=0&&(_e[gr]&192)===128;)gr--;return gr<0||gr===0?cr:gr+_utf8len[_e[gr]]>cr?gr:cr};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$h=common$1,strings$1=strings$2,msg$1=messages,ZStream$1=zstream,toString$6=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$2;function Deflate$1(_e){this.options=utils$h.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},_e||{});let cr=this.options;cr.raw&&cr.windowBits>0?cr.windowBits=-cr.windowBits:cr.gzip&&cr.windowBits>0&&cr.windowBits<16&&(cr.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream$1,this.strm.avail_out=0;let gr=zlib_deflate.deflateInit2(this.strm,cr.level,cr.method,cr.windowBits,cr.memLevel,cr.strategy);if(gr!==Z_OK$2)throw new Error(msg$1[gr]);if(cr.header&&zlib_deflate.deflateSetHeader(this.strm,cr.header),cr.dictionary){let Cr;if(typeof cr.dictionary=="string"?Cr=strings$1.string2buf(cr.dictionary):toString$6.call(cr.dictionary)==="[object ArrayBuffer]"?Cr=new Uint8Array(cr.dictionary):Cr=cr.dictionary,gr=zlib_deflate.deflateSetDictionary(this.strm,Cr),gr!==Z_OK$2)throw new Error(msg$1[gr]);this._dict_set=!0}}Deflate$1.prototype.push=function(_e,cr){const gr=this.strm,Cr=this.options.chunkSize;let Vr,tt;if(this.ended)return!1;for(cr===~~cr?tt=cr:tt=cr===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof _e=="string"?gr.input=strings$1.string2buf(_e):toString$6.call(_e)==="[object ArrayBuffer]"?gr.input=new Uint8Array(_e):gr.input=_e,gr.next_in=0,gr.avail_in=gr.input.length;;){if(gr.avail_out===0&&(gr.output=new Uint8Array(Cr),gr.next_out=0,gr.avail_out=Cr),(tt===Z_SYNC_FLUSH||tt===Z_FULL_FLUSH)&&gr.avail_out<=6){this.onData(gr.output.subarray(0,gr.next_out)),gr.avail_out=0;continue}if(Vr=zlib_deflate.deflate(gr,tt),Vr===Z_STREAM_END$2)return gr.next_out>0&&this.onData(gr.output.subarray(0,gr.next_out)),Vr=zlib_deflate.deflateEnd(this.strm),this.onEnd(Vr),this.ended=!0,Vr===Z_OK$2;if(gr.avail_out===0){this.onData(gr.output);continue}if(tt>0&&gr.next_out>0){this.onData(gr.output.subarray(0,gr.next_out)),gr.avail_out=0;continue}if(gr.avail_in===0)break}return!0},Deflate$1.prototype.onData=function(_e){this.chunks.push(_e)},Deflate$1.prototype.onEnd=function(_e){_e===Z_OK$2&&(this.result=utils$h.flattenChunks(this.chunks)),this.chunks=[],this.err=_e,this.msg=this.strm.msg};function deflate$1(_e,cr){const gr=new Deflate$1(cr);if(gr.push(_e,!0),gr.err)throw gr.msg||msg$1[gr.err];return gr.result}function deflateRaw$1(_e,cr){return cr=cr||{},cr.raw=!0,deflate$1(_e,cr)}function gzip$1(_e,cr){return cr=cr||{},cr.gzip=!0,deflate$1(_e,cr)}deflate$4.Deflate=Deflate$1,deflate$4.deflate=deflate$1,deflate$4.deflateRaw=deflateRaw$1,deflate$4.gzip=gzip$1,deflate$4.constants=constants$2;var inflate$4={},inflate$3={};const BAD$1=16209,TYPE$1=16191;var inffast=function _e(cr,gr){let Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt,eo,Wt,St,Ot,uo,go,bo,oo,Ro,pt,lo;const so=cr.state;Cr=cr.next_in,pt=cr.input,Vr=Cr+(cr.avail_in-5),tt=cr.next_out,lo=cr.output,nt=tt-(gr-cr.avail_out),st=tt+(cr.avail_out-257),dt=so.dmax,kt=so.wsize,qt=so.whave,ro=so.wnext,ht=so.window,po=so.hold,no=so.bits,Nt=so.lencode,eo=so.distcode,Wt=(1<>>24,po>>>=uo,no-=uo,uo=Ot>>>16&255,uo===0)lo[tt++]=Ot&65535;else if(uo&16){go=Ot&65535,uo&=15,uo&&(no>>=uo,no-=uo),no<15&&(po+=pt[Cr++]<>>24,po>>>=uo,no-=uo,uo=Ot>>>16&255,uo&16){if(bo=Ot&65535,uo&=15,nodt){cr.msg="invalid distance too far back",so.mode=BAD$1;break e}if(po>>>=uo,no-=uo,uo=tt-nt,bo>uo){if(uo=bo-uo,uo>qt&&so.sane){cr.msg="invalid distance too far back",so.mode=BAD$1;break e}if(oo=0,Ro=ht,ro===0){if(oo+=kt-uo,uo2;)lo[tt++]=Ro[oo++],lo[tt++]=Ro[oo++],lo[tt++]=Ro[oo++],go-=3;go&&(lo[tt++]=Ro[oo++],go>1&&(lo[tt++]=Ro[oo++]))}else{oo=tt-bo;do lo[tt++]=lo[oo++],lo[tt++]=lo[oo++],lo[tt++]=lo[oo++],go-=3;while(go>2);go&&(lo[tt++]=lo[oo++],go>1&&(lo[tt++]=lo[oo++]))}}else if(uo&64){cr.msg="invalid distance code",so.mode=BAD$1;break e}else{Ot=eo[(Ot&65535)+(po&(1<>3,Cr-=go,no-=go<<3,po&=(1<{const dt=st.bits;let kt=0,qt=0,ro=0,ht=0,po=0,no=0,Nt=0,eo=0,Wt=0,St=0,Ot,uo,go,bo,oo,Ro=null,pt;const lo=new Uint16Array(MAXBITS+1),so=new Uint16Array(MAXBITS+1);let wo=null,xt,Mt,ho;for(kt=0;kt<=MAXBITS;kt++)lo[kt]=0;for(qt=0;qt=1&&lo[ht]===0;ht--);if(po>ht&&(po=ht),ht===0)return Vr[tt++]=1<<24|64<<16|0,Vr[tt++]=1<<24|64<<16|0,st.bits=1,0;for(ro=1;ro0&&(_e===CODES$1||ht!==1))return-1;for(so[1]=0,kt=1;ktENOUGH_LENS$1||_e===DISTS$1&&Wt>ENOUGH_DISTS$1)return 1;for(;;){xt=kt-Nt,nt[qt]+1=pt?(Mt=wo[nt[qt]-pt],ho=Ro[nt[qt]-pt]):(Mt=96,ho=0),Ot=1<>Nt)+uo]=xt<<24|Mt<<16|ho|0;while(uo!==0);for(Ot=1<>=1;if(Ot!==0?(St&=Ot-1,St+=Ot):St=0,qt++,--lo[kt]===0){if(kt===ht)break;kt=cr[gr+nt[qt]]}if(kt>po&&(St&bo)!==go){for(Nt===0&&(Nt=po),oo+=ro,no=kt-Nt,eo=1<ENOUGH_LENS$1||_e===DISTS$1&&Wt>ENOUGH_DISTS$1)return 1;go=St&bo,Vr[go]=po<<24|no<<16|oo-tt|0}}return St!==0&&(Vr[oo+St]=kt-Nt<<24|64<<16|0),st.bits=po,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$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT$1=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=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=_e=>(_e>>>24&255)+(_e>>>8&65280)+((_e&65280)<<8)+((_e&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=_e=>{if(!_e)return 1;const cr=_e.state;return!cr||cr.strm!==_e||cr.modeSYNC?1:0},inflateResetKeep=_e=>{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const cr=_e.state;return _e.total_in=_e.total_out=cr.total=0,_e.msg="",cr.wrap&&(_e.adler=cr.wrap&1),cr.mode=HEAD,cr.last=0,cr.havedict=0,cr.flags=-1,cr.dmax=32768,cr.head=null,cr.hold=0,cr.bits=0,cr.lencode=cr.lendyn=new Int32Array(ENOUGH_LENS),cr.distcode=cr.distdyn=new Int32Array(ENOUGH_DISTS),cr.sane=1,cr.back=-1,Z_OK$1},inflateReset=_e=>{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const cr=_e.state;return cr.wsize=0,cr.whave=0,cr.wnext=0,inflateResetKeep(_e)},inflateReset2=(_e,cr)=>{let gr;if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const Cr=_e.state;return cr<0?(gr=0,cr=-cr):(gr=(cr>>4)+5,cr<48&&(cr&=15)),cr&&(cr<8||cr>15)?Z_STREAM_ERROR$1:(Cr.window!==null&&Cr.wbits!==cr&&(Cr.window=null),Cr.wrap=gr,Cr.wbits=cr,inflateReset(_e))},inflateInit2=(_e,cr)=>{if(!_e)return Z_STREAM_ERROR$1;const gr=new InflateState;_e.state=gr,gr.strm=_e,gr.window=null,gr.mode=HEAD;const Cr=inflateReset2(_e,cr);return Cr!==Z_OK$1&&(_e.state=null),Cr},inflateInit=_e=>inflateInit2(_e,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=_e=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let cr=0;for(;cr<144;)_e.lens[cr++]=8;for(;cr<256;)_e.lens[cr++]=9;for(;cr<280;)_e.lens[cr++]=7;for(;cr<288;)_e.lens[cr++]=8;for(inflate_table(LENS,_e.lens,0,288,lenfix,0,_e.work,{bits:9}),cr=0;cr<32;)_e.lens[cr++]=5;inflate_table(DISTS,_e.lens,0,32,distfix,0,_e.work,{bits:5}),virgin=!1}_e.lencode=lenfix,_e.lenbits=9,_e.distcode=distfix,_e.distbits=5},updatewindow=(_e,cr,gr,Cr)=>{let Vr;const tt=_e.state;return tt.window===null&&(tt.wsize=1<=tt.wsize?(tt.window.set(cr.subarray(gr-tt.wsize,gr),0),tt.wnext=0,tt.whave=tt.wsize):(Vr=tt.wsize-tt.wnext,Vr>Cr&&(Vr=Cr),tt.window.set(cr.subarray(gr-Cr,gr-Cr+Vr),tt.wnext),Cr-=Vr,Cr?(tt.window.set(cr.subarray(gr-Cr,gr),0),tt.wnext=Cr,tt.whave=tt.wsize):(tt.wnext+=Vr,tt.wnext===tt.wsize&&(tt.wnext=0),tt.whave{let gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt,eo=0,Wt,St,Ot,uo,go,bo,oo,Ro;const pt=new Uint8Array(4);let lo,so;const wo=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(_e)||!_e.output||!_e.input&&_e.avail_in!==0)return Z_STREAM_ERROR$1;gr=_e.state,gr.mode===TYPE&&(gr.mode=TYPEDO),nt=_e.next_out,Vr=_e.output,dt=_e.avail_out,tt=_e.next_in,Cr=_e.input,st=_e.avail_in,kt=gr.hold,qt=gr.bits,ro=st,ht=dt,Ro=Z_OK$1;e:for(;;)switch(gr.mode){case HEAD:if(gr.wrap===0){gr.mode=TYPEDO;break}for(;qt<16;){if(st===0)break e;st--,kt+=Cr[tt++]<>>8&255,gr.check=crc32(gr.check,pt,2,0),kt=0,qt=0,gr.mode=FLAGS;break}if(gr.head&&(gr.head.done=!1),!(gr.wrap&1)||(((kt&255)<<8)+(kt>>8))%31){_e.msg="incorrect header check",gr.mode=BAD;break}if((kt&15)!==Z_DEFLATED){_e.msg="unknown compression method",gr.mode=BAD;break}if(kt>>>=4,qt-=4,oo=(kt&15)+8,gr.wbits===0&&(gr.wbits=oo),oo>15||oo>gr.wbits){_e.msg="invalid window size",gr.mode=BAD;break}gr.dmax=1<>8&1),gr.flags&512&&gr.wrap&4&&(pt[0]=kt&255,pt[1]=kt>>>8&255,gr.check=crc32(gr.check,pt,2,0)),kt=0,qt=0,gr.mode=TIME;case TIME:for(;qt<32;){if(st===0)break e;st--,kt+=Cr[tt++]<>>8&255,pt[2]=kt>>>16&255,pt[3]=kt>>>24&255,gr.check=crc32(gr.check,pt,4,0)),kt=0,qt=0,gr.mode=OS;case OS:for(;qt<16;){if(st===0)break e;st--,kt+=Cr[tt++]<>8),gr.flags&512&&gr.wrap&4&&(pt[0]=kt&255,pt[1]=kt>>>8&255,gr.check=crc32(gr.check,pt,2,0)),kt=0,qt=0,gr.mode=EXLEN;case EXLEN:if(gr.flags&1024){for(;qt<16;){if(st===0)break e;st--,kt+=Cr[tt++]<>>8&255,gr.check=crc32(gr.check,pt,2,0)),kt=0,qt=0}else gr.head&&(gr.head.extra=null);gr.mode=EXTRA;case EXTRA:if(gr.flags&1024&&(po=gr.length,po>st&&(po=st),po&&(gr.head&&(oo=gr.head.extra_len-gr.length,gr.head.extra||(gr.head.extra=new Uint8Array(gr.head.extra_len)),gr.head.extra.set(Cr.subarray(tt,tt+po),oo)),gr.flags&512&&gr.wrap&4&&(gr.check=crc32(gr.check,Cr,po,tt)),st-=po,tt+=po,gr.length-=po),gr.length))break e;gr.length=0,gr.mode=NAME;case NAME:if(gr.flags&2048){if(st===0)break e;po=0;do oo=Cr[tt+po++],gr.head&&oo&&gr.length<65536&&(gr.head.name+=String.fromCharCode(oo));while(oo&&po>9&1,gr.head.done=!0),_e.adler=gr.check=0,gr.mode=TYPE;break;case DICTID:for(;qt<32;){if(st===0)break e;st--,kt+=Cr[tt++]<>>=qt&7,qt-=qt&7,gr.mode=CHECK;break}for(;qt<3;){if(st===0)break e;st--,kt+=Cr[tt++]<>>=1,qt-=1,kt&3){case 0:gr.mode=STORED;break;case 1:if(fixedtables(gr),gr.mode=LEN_,cr===Z_TREES){kt>>>=2,qt-=2;break e}break;case 2:gr.mode=TABLE;break;case 3:_e.msg="invalid block type",gr.mode=BAD}kt>>>=2,qt-=2;break;case STORED:for(kt>>>=qt&7,qt-=qt&7;qt<32;){if(st===0)break e;st--,kt+=Cr[tt++]<>>16^65535)){_e.msg="invalid stored block lengths",gr.mode=BAD;break}if(gr.length=kt&65535,kt=0,qt=0,gr.mode=COPY_,cr===Z_TREES)break e;case COPY_:gr.mode=COPY;case COPY:if(po=gr.length,po){if(po>st&&(po=st),po>dt&&(po=dt),po===0)break e;Vr.set(Cr.subarray(tt,tt+po),nt),st-=po,tt+=po,dt-=po,nt+=po,gr.length-=po;break}gr.mode=TYPE;break;case TABLE:for(;qt<14;){if(st===0)break e;st--,kt+=Cr[tt++]<>>=5,qt-=5,gr.ndist=(kt&31)+1,kt>>>=5,qt-=5,gr.ncode=(kt&15)+4,kt>>>=4,qt-=4,gr.nlen>286||gr.ndist>30){_e.msg="too many length or distance symbols",gr.mode=BAD;break}gr.have=0,gr.mode=LENLENS;case LENLENS:for(;gr.have>>=3,qt-=3}for(;gr.have<19;)gr.lens[wo[gr.have++]]=0;if(gr.lencode=gr.lendyn,gr.lenbits=7,lo={bits:gr.lenbits},Ro=inflate_table(CODES,gr.lens,0,19,gr.lencode,0,gr.work,lo),gr.lenbits=lo.bits,Ro){_e.msg="invalid code lengths set",gr.mode=BAD;break}gr.have=0,gr.mode=CODELENS;case CODELENS:for(;gr.have>>24,St=eo>>>16&255,Ot=eo&65535,!(Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>>=Wt,qt-=Wt,gr.lens[gr.have++]=Ot;else{if(Ot===16){for(so=Wt+2;qt>>=Wt,qt-=Wt,gr.have===0){_e.msg="invalid bit length repeat",gr.mode=BAD;break}oo=gr.lens[gr.have-1],po=3+(kt&3),kt>>>=2,qt-=2}else if(Ot===17){for(so=Wt+3;qt>>=Wt,qt-=Wt,oo=0,po=3+(kt&7),kt>>>=3,qt-=3}else{for(so=Wt+7;qt>>=Wt,qt-=Wt,oo=0,po=11+(kt&127),kt>>>=7,qt-=7}if(gr.have+po>gr.nlen+gr.ndist){_e.msg="invalid bit length repeat",gr.mode=BAD;break}for(;po--;)gr.lens[gr.have++]=oo}}if(gr.mode===BAD)break;if(gr.lens[256]===0){_e.msg="invalid code -- missing end-of-block",gr.mode=BAD;break}if(gr.lenbits=9,lo={bits:gr.lenbits},Ro=inflate_table(LENS,gr.lens,0,gr.nlen,gr.lencode,0,gr.work,lo),gr.lenbits=lo.bits,Ro){_e.msg="invalid literal/lengths set",gr.mode=BAD;break}if(gr.distbits=6,gr.distcode=gr.distdyn,lo={bits:gr.distbits},Ro=inflate_table(DISTS,gr.lens,gr.nlen,gr.ndist,gr.distcode,0,gr.work,lo),gr.distbits=lo.bits,Ro){_e.msg="invalid distances set",gr.mode=BAD;break}if(gr.mode=LEN_,cr===Z_TREES)break e;case LEN_:gr.mode=LEN;case LEN:if(st>=6&&dt>=258){_e.next_out=nt,_e.avail_out=dt,_e.next_in=tt,_e.avail_in=st,gr.hold=kt,gr.bits=qt,inflate_fast(_e,ht),nt=_e.next_out,Vr=_e.output,dt=_e.avail_out,tt=_e.next_in,Cr=_e.input,st=_e.avail_in,kt=gr.hold,qt=gr.bits,gr.mode===TYPE&&(gr.back=-1);break}for(gr.back=0;eo=gr.lencode[kt&(1<>>24,St=eo>>>16&255,Ot=eo&65535,!(Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>uo)],Wt=eo>>>24,St=eo>>>16&255,Ot=eo&65535,!(uo+Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>>=uo,qt-=uo,gr.back+=uo}if(kt>>>=Wt,qt-=Wt,gr.back+=Wt,gr.length=Ot,St===0){gr.mode=LIT;break}if(St&32){gr.back=-1,gr.mode=TYPE;break}if(St&64){_e.msg="invalid literal/length code",gr.mode=BAD;break}gr.extra=St&15,gr.mode=LENEXT;case LENEXT:if(gr.extra){for(so=gr.extra;qt>>=gr.extra,qt-=gr.extra,gr.back+=gr.extra}gr.was=gr.length,gr.mode=DIST;case DIST:for(;eo=gr.distcode[kt&(1<>>24,St=eo>>>16&255,Ot=eo&65535,!(Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>uo)],Wt=eo>>>24,St=eo>>>16&255,Ot=eo&65535,!(uo+Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>>=uo,qt-=uo,gr.back+=uo}if(kt>>>=Wt,qt-=Wt,gr.back+=Wt,St&64){_e.msg="invalid distance code",gr.mode=BAD;break}gr.offset=Ot,gr.extra=St&15,gr.mode=DISTEXT;case DISTEXT:if(gr.extra){for(so=gr.extra;qt>>=gr.extra,qt-=gr.extra,gr.back+=gr.extra}if(gr.offset>gr.dmax){_e.msg="invalid distance too far back",gr.mode=BAD;break}gr.mode=MATCH;case MATCH:if(dt===0)break e;if(po=ht-dt,gr.offset>po){if(po=gr.offset-po,po>gr.whave&&gr.sane){_e.msg="invalid distance too far back",gr.mode=BAD;break}po>gr.wnext?(po-=gr.wnext,no=gr.wsize-po):no=gr.wnext-po,po>gr.length&&(po=gr.length),Nt=gr.window}else Nt=Vr,no=nt-gr.offset,po=gr.length;po>dt&&(po=dt),dt-=po,gr.length-=po;do Vr[nt++]=Nt[no++];while(--po);gr.length===0&&(gr.mode=LEN);break;case LIT:if(dt===0)break e;Vr[nt++]=gr.length,dt--,gr.mode=LEN;break;case CHECK:if(gr.wrap){for(;qt<32;){if(st===0)break e;st--,kt|=Cr[tt++]<{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;let cr=_e.state;return cr.window&&(cr.window=null),_e.state=null,Z_OK$1},inflateGetHeader=(_e,cr)=>{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const gr=_e.state;return gr.wrap&2?(gr.head=cr,cr.done=!1,Z_OK$1):Z_STREAM_ERROR$1},inflateSetDictionary=(_e,cr)=>{const gr=cr.length;let Cr,Vr,tt;return inflateStateCheck(_e)||(Cr=_e.state,Cr.wrap!==0&&Cr.mode!==DICT)?Z_STREAM_ERROR$1:Cr.mode===DICT&&(Vr=1,Vr=adler32(Vr,cr,gr,0),Vr!==Cr.check)?Z_DATA_ERROR$1:(tt=updatewindow(_e,cr,gr,gr),tt?(Cr.mode=MEM,Z_MEM_ERROR$1):(Cr.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$g=common$1,strings=strings$2,msg=messages,ZStream=zstream,GZheader=gzheader,toString$5=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$2;function Inflate$1(_e){this.options=utils$g.assign({chunkSize:1024*64,windowBits:15,to:""},_e||{});const cr=this.options;cr.raw&&cr.windowBits>=0&&cr.windowBits<16&&(cr.windowBits=-cr.windowBits,cr.windowBits===0&&(cr.windowBits=-15)),cr.windowBits>=0&&cr.windowBits<16&&!(_e&&_e.windowBits)&&(cr.windowBits+=32),cr.windowBits>15&&cr.windowBits<48&&(cr.windowBits&15||(cr.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;let gr=zlib_inflate.inflateInit2(this.strm,cr.windowBits);if(gr!==Z_OK)throw new Error(msg[gr]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),cr.dictionary&&(typeof cr.dictionary=="string"?cr.dictionary=strings.string2buf(cr.dictionary):toString$5.call(cr.dictionary)==="[object ArrayBuffer]"&&(cr.dictionary=new Uint8Array(cr.dictionary)),cr.raw&&(gr=zlib_inflate.inflateSetDictionary(this.strm,cr.dictionary),gr!==Z_OK)))throw new Error(msg[gr])}Inflate$1.prototype.push=function(_e,cr){const gr=this.strm,Cr=this.options.chunkSize,Vr=this.options.dictionary;let tt,nt,st;if(this.ended)return!1;for(cr===~~cr?nt=cr:nt=cr===!0?Z_FINISH:Z_NO_FLUSH,toString$5.call(_e)==="[object ArrayBuffer]"?gr.input=new Uint8Array(_e):gr.input=_e,gr.next_in=0,gr.avail_in=gr.input.length;;){for(gr.avail_out===0&&(gr.output=new Uint8Array(Cr),gr.next_out=0,gr.avail_out=Cr),tt=zlib_inflate.inflate(gr,nt),tt===Z_NEED_DICT&&Vr&&(tt=zlib_inflate.inflateSetDictionary(gr,Vr),tt===Z_OK?tt=zlib_inflate.inflate(gr,nt):tt===Z_DATA_ERROR&&(tt=Z_NEED_DICT));gr.avail_in>0&&tt===Z_STREAM_END&&gr.state.wrap>0&&_e[gr.next_in]!==0;)zlib_inflate.inflateReset(gr),tt=zlib_inflate.inflate(gr,nt);switch(tt){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(tt),this.ended=!0,!1}if(st=gr.avail_out,gr.next_out&&(gr.avail_out===0||tt===Z_STREAM_END))if(this.options.to==="string"){let dt=strings.utf8border(gr.output,gr.next_out),kt=gr.next_out-dt,qt=strings.buf2string(gr.output,dt);gr.next_out=kt,gr.avail_out=Cr-kt,kt&&gr.output.set(gr.output.subarray(dt,dt+kt),0),this.onData(qt)}else this.onData(gr.output.length===gr.next_out?gr.output:gr.output.subarray(0,gr.next_out));if(!(tt===Z_OK&&st===0)){if(tt===Z_STREAM_END)return tt=zlib_inflate.inflateEnd(this.strm),this.onEnd(tt),this.ended=!0,!0;if(gr.avail_in===0)break}}return!0},Inflate$1.prototype.onData=function(_e){this.chunks.push(_e)},Inflate$1.prototype.onEnd=function(_e){_e===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=utils$g.flattenChunks(this.chunks)),this.chunks=[],this.err=_e,this.msg=this.strm.msg};function inflate$1(_e,cr){const gr=new Inflate$1(cr);if(gr.push(_e),gr.err)throw gr.msg||msg[gr.err];return gr.result}function inflateRaw$1(_e,cr){return cr=cr||{},cr.raw=!0,inflate$1(_e,cr)}inflate$4.Inflate=Inflate$1,inflate$4.inflate=inflate$1,inflate$4.inflateRaw=inflateRaw$1,inflate$4.ungzip=inflate$1,inflate$4.constants=constants$2;const{Deflate,deflate,deflateRaw,gzip}=deflate$4,{Inflate,inflate,inflateRaw,ungzip}=inflate$4,constants$1=constants$2;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$1;var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(signingcosmwasmclient,"__esModule",{value:!0}),signingcosmwasmclient.SigningCosmWasmClient=void 0;const amino_1=build$8,crypto_1=build$7,encoding_1=build$c,math_1=build$b,proto_signing_1=build$9,stargate_1=build$a,tendermint_rpc_1=build$3,utils_1$1=build$6,tx_1=tx$b,tx_2=tx$2,signing_1=signing$1,tx_3=tx$e,tx_4=tx,long_1=__importDefault$2(long),pako_1=__importDefault$2(pako),cosmwasmclient_1=cosmwasmclient,modules_1=modules;function createDeliverTxResponseErrorMessage(_e){return`Error when broadcasting tx ${_e.transactionHash} at height ${_e.height}. Code: ${_e.code}; Raw log: ${_e.rawLog}`}class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient{static async connectWithSigner(cr,gr,Cr={}){let Vr;const tt=await tendermint_rpc_1.Tendermint37Client.connect(cr);return(await tt.status()).nodeInfo.version.startsWith("0.37.")?Vr=tt:(tt.disconnect(),Vr=await tendermint_rpc_1.Tendermint34Client.connect(cr)),SigningCosmWasmClient.createWithSigner(Vr,gr,Cr)}static async createWithSigner(cr,gr,Cr={}){return new SigningCosmWasmClient(cr,gr,Cr)}static async offline(cr,gr={}){return new SigningCosmWasmClient(void 0,cr,gr)}constructor(cr,gr,Cr){super(cr);const{registry:Vr=new proto_signing_1.Registry([...stargate_1.defaultRegistryTypes,...modules_1.wasmTypes]),aminoTypes:tt=new stargate_1.AminoTypes({...(0,stargate_1.createDefaultAminoConverters)(),...(0,modules_1.createWasmAminoConverters)()})}=Cr;this.registry=Vr,this.aminoTypes=tt,this.signer=gr,this.broadcastTimeoutMs=Cr.broadcastTimeoutMs,this.broadcastPollIntervalMs=Cr.broadcastPollIntervalMs,this.gasPrice=Cr.gasPrice}async simulate(cr,gr,Cr){const Vr=gr.map(kt=>this.registry.encodeAsAny(kt)),tt=(await this.signer.getAccounts()).find(kt=>kt.address===cr);if(!tt)throw new Error("Failed to retrieve account from signer");const nt=(0,amino_1.encodeSecp256k1Pubkey)(tt.pubkey),{sequence:st}=await this.getSequence(cr),{gasInfo:dt}=await this.forceGetQueryClient().tx.simulate(Vr,Cr,nt,st);return(0,utils_1$1.assertDefined)(dt),math_1.Uint53.fromString(dt.gasUsed.toString()).toNumber()}async upload(cr,gr,Cr,Vr="",tt){const nt=pako_1.default.gzip(gr,{level:9}),st={typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:tx_4.MsgStoreCode.fromPartial({sender:cr,wasmByteCode:nt,instantiatePermission:tt})},dt=Cr=="auto"?1.1:Cr,kt=await this.signAndBroadcast(cr,[st],dt,Vr);if((0,stargate_1.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));const qt=stargate_1.logs.parseRawLog(kt.rawLog),ro=stargate_1.logs.findAttribute(qt,"store_code","code_id");return{checksum:(0,encoding_1.toHex)((0,crypto_1.sha256)(gr)),originalSize:gr.length,compressedSize:nt.length,codeId:Number.parseInt(ro.value,10),logs:qt,height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async instantiate(cr,gr,Cr,Vr,tt,nt={}){const st={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:tx_4.MsgInstantiateContract.fromPartial({sender:cr,codeId:long_1.default.fromString(new math_1.Uint53(gr).toString()),label:Vr,msg:(0,encoding_1.toUtf8)(JSON.stringify(Cr)),funds:[...nt.funds||[]],admin:nt.admin})},dt=await this.signAndBroadcast(cr,[st],tt,nt.memo);if((0,stargate_1.isDeliverTxFailure)(dt))throw new Error(createDeliverTxResponseErrorMessage(dt));const kt=stargate_1.logs.parseRawLog(dt.rawLog);return{contractAddress:stargate_1.logs.findAttribute(kt,"instantiate","_contract_address").value,logs:kt,height:dt.height,transactionHash:dt.transactionHash,events:dt.events,gasWanted:dt.gasWanted,gasUsed:dt.gasUsed}}async instantiate2(cr,gr,Cr,Vr,tt,nt,st={}){const dt={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract2",value:tx_4.MsgInstantiateContract2.fromPartial({sender:cr,codeId:long_1.default.fromString(new math_1.Uint53(gr).toString()),label:tt,msg:(0,encoding_1.toUtf8)(JSON.stringify(Vr)),funds:[...st.funds||[]],admin:st.admin,salt:Cr,fixMsg:!1})},kt=await this.signAndBroadcast(cr,[dt],nt,st.memo);if((0,stargate_1.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));const qt=stargate_1.logs.parseRawLog(kt.rawLog);return{contractAddress:stargate_1.logs.findAttribute(qt,"instantiate","_contract_address").value,logs:qt,height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async updateAdmin(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:tx_4.MsgUpdateAdmin.fromPartial({sender:cr,contract:gr,newAdmin:Cr})},st=await this.signAndBroadcast(cr,[nt],Vr,tt);if((0,stargate_1.isDeliverTxFailure)(st))throw new Error(createDeliverTxResponseErrorMessage(st));return{logs:stargate_1.logs.parseRawLog(st.rawLog),height:st.height,transactionHash:st.transactionHash,events:st.events,gasWanted:st.gasWanted,gasUsed:st.gasUsed}}async clearAdmin(cr,gr,Cr,Vr=""){const tt={typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:tx_4.MsgClearAdmin.fromPartial({sender:cr,contract:gr})},nt=await this.signAndBroadcast(cr,[tt],Cr,Vr);if((0,stargate_1.isDeliverTxFailure)(nt))throw new Error(createDeliverTxResponseErrorMessage(nt));return{logs:stargate_1.logs.parseRawLog(nt.rawLog),height:nt.height,transactionHash:nt.transactionHash,events:nt.events,gasWanted:nt.gasWanted,gasUsed:nt.gasUsed}}async migrate(cr,gr,Cr,Vr,tt,nt=""){const st={typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:tx_4.MsgMigrateContract.fromPartial({sender:cr,contract:gr,codeId:long_1.default.fromString(new math_1.Uint53(Cr).toString()),msg:(0,encoding_1.toUtf8)(JSON.stringify(Vr))})},dt=await this.signAndBroadcast(cr,[st],tt,nt);if((0,stargate_1.isDeliverTxFailure)(dt))throw new Error(createDeliverTxResponseErrorMessage(dt));return{logs:stargate_1.logs.parseRawLog(dt.rawLog),height:dt.height,transactionHash:dt.transactionHash,events:dt.events,gasWanted:dt.gasWanted,gasUsed:dt.gasUsed}}async execute(cr,gr,Cr,Vr,tt="",nt){const st={contractAddress:gr,msg:Cr,funds:nt};return this.executeMultiple(cr,[st],Vr,tt)}async executeMultiple(cr,gr,Cr,Vr=""){const tt=gr.map(st=>({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:tx_4.MsgExecuteContract.fromPartial({sender:cr,contract:st.contractAddress,msg:(0,encoding_1.toUtf8)(JSON.stringify(st.msg)),funds:[...st.funds||[]]})})),nt=await this.signAndBroadcast(cr,tt,Cr,Vr);if((0,stargate_1.isDeliverTxFailure)(nt))throw new Error(createDeliverTxResponseErrorMessage(nt));return{logs:stargate_1.logs.parseRawLog(nt.rawLog),height:nt.height,transactionHash:nt.transactionHash,events:nt.events,gasWanted:nt.gasWanted,gasUsed:nt.gasUsed}}async sendTokens(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:cr,toAddress:gr,amount:[...Cr]}};return this.signAndBroadcast(cr,[nt],Vr,tt)}async delegateTokens(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:tx_2.MsgDelegate.fromPartial({delegatorAddress:cr,validatorAddress:gr,amount:Cr})};return this.signAndBroadcast(cr,[nt],Vr,tt)}async undelegateTokens(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:tx_2.MsgUndelegate.fromPartial({delegatorAddress:cr,validatorAddress:gr,amount:Cr})};return this.signAndBroadcast(cr,[nt],Vr,tt)}async withdrawRewards(cr,gr,Cr,Vr=""){const tt={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:tx_1.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:cr,validatorAddress:gr})};return this.signAndBroadcast(cr,[tt],Cr,Vr)}async signAndBroadcast(cr,gr,Cr,Vr=""){let tt;if(Cr=="auto"||typeof Cr=="number"){(0,utils_1$1.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const dt=await this.simulate(cr,gr,Vr),kt=typeof Cr=="number"?Cr:1.4;tt=(0,stargate_1.calculateFee)(Math.round(dt*kt),this.gasPrice)}else tt=Cr;const nt=await this.sign(cr,gr,tt,Vr),st=tx_3.TxRaw.encode(nt).finish();return this.broadcastTx(st,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(cr,gr,Cr,Vr=""){let tt;if(Cr=="auto"||typeof Cr=="number"){(0,utils_1$1.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const dt=await this.simulate(cr,gr,Vr),kt=typeof Cr=="number"?Cr:1.3;tt=(0,stargate_1.calculateFee)(Math.round(dt*kt),this.gasPrice)}else tt=Cr;const nt=await this.sign(cr,gr,tt,Vr),st=tx_3.TxRaw.encode(nt).finish();return this.broadcastTxSync(st)}async sign(cr,gr,Cr,Vr,tt){let nt;if(tt)nt=tt;else{const{accountNumber:st,sequence:dt}=await this.getSequence(cr),kt=await this.getChainId();nt={accountNumber:st,sequence:dt,chainId:kt}}return(0,proto_signing_1.isOfflineDirectSigner)(this.signer)?this.signDirect(cr,gr,Cr,Vr,nt):this.signAmino(cr,gr,Cr,Vr,nt)}async signAmino(cr,gr,Cr,Vr,{accountNumber:tt,sequence:nt,chainId:st}){(0,utils_1$1.assert)(!(0,proto_signing_1.isOfflineDirectSigner)(this.signer));const dt=(await this.signer.getAccounts()).find(uo=>uo.address===cr);if(!dt)throw new Error("Failed to retrieve account from signer");const kt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(dt.pubkey)),qt=signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,ro=gr.map(uo=>this.aminoTypes.toAmino(uo)),ht=(0,amino_1.makeSignDoc)(ro,Cr,st,Vr,tt,nt),{signature:po,signed:no}=await this.signer.signAmino(cr,ht),Nt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:no.msgs.map(uo=>this.aminoTypes.fromAmino(uo)),memo:no.memo}},eo=this.registry.encode(Nt),Wt=math_1.Int53.fromString(no.fee.gas).toNumber(),St=math_1.Int53.fromString(no.sequence).toNumber(),Ot=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:kt,sequence:St}],no.fee.amount,Wt,no.fee.granter,no.fee.payer,qt);return tx_3.TxRaw.fromPartial({bodyBytes:eo,authInfoBytes:Ot,signatures:[(0,encoding_1.fromBase64)(po.signature)]})}async signDirect(cr,gr,Cr,Vr,{accountNumber:tt,sequence:nt,chainId:st}){(0,utils_1$1.assert)((0,proto_signing_1.isOfflineDirectSigner)(this.signer));const dt=(await this.signer.getAccounts()).find(Wt=>Wt.address===cr);if(!dt)throw new Error("Failed to retrieve account from signer");const kt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(dt.pubkey)),qt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:gr,memo:Vr}},ro=this.registry.encode(qt),ht=math_1.Int53.fromString(Cr.gas).toNumber(),po=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:kt,sequence:nt}],Cr.amount,ht,Cr.granter,Cr.payer),no=(0,proto_signing_1.makeSignDoc)(ro,po,st,tt),{signature:Nt,signed:eo}=await this.signer.signDirect(cr,no);return tx_3.TxRaw.fromPartial({bodyBytes:eo.bodyBytes,authInfoBytes:eo.authInfoBytes,signatures:[(0,encoding_1.fromBase64)(Nt.signature)]})}}signingcosmwasmclient.SigningCosmWasmClient=SigningCosmWasmClient,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SigningCosmWasmClient=_e.wasmTypes=_e.setupWasmExtension=_e.isMsgUpdateAdminEncodeObject=_e.isMsgStoreCodeEncodeObject=_e.isMsgMigrateEncodeObject=_e.isMsgInstantiateContractEncodeObject=_e.isMsgInstantiateContract2EncodeObject=_e.isMsgExecuteEncodeObject=_e.isMsgClearAdminEncodeObject=_e.createWasmAminoConverters=_e.instantiate2Address=_e._instantiate2AddressIntermediate=_e.toBinary=_e.fromBinary=_e.CosmWasmClient=void 0;var cr=cosmwasmclient;Object.defineProperty(_e,"CosmWasmClient",{enumerable:!0,get:function(){return cr.CosmWasmClient}});var gr=encoding;Object.defineProperty(_e,"fromBinary",{enumerable:!0,get:function(){return gr.fromBinary}}),Object.defineProperty(_e,"toBinary",{enumerable:!0,get:function(){return gr.toBinary}});var Cr=instantiate2;Object.defineProperty(_e,"_instantiate2AddressIntermediate",{enumerable:!0,get:function(){return Cr._instantiate2AddressIntermediate}}),Object.defineProperty(_e,"instantiate2Address",{enumerable:!0,get:function(){return Cr.instantiate2Address}});var Vr=modules;Object.defineProperty(_e,"createWasmAminoConverters",{enumerable:!0,get:function(){return Vr.createWasmAminoConverters}}),Object.defineProperty(_e,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgClearAdminEncodeObject}}),Object.defineProperty(_e,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgExecuteEncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return Vr.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(_e,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgMigrateEncodeObject}}),Object.defineProperty(_e,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgStoreCodeEncodeObject}}),Object.defineProperty(_e,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(_e,"setupWasmExtension",{enumerable:!0,get:function(){return Vr.setupWasmExtension}}),Object.defineProperty(_e,"wasmTypes",{enumerable:!0,get:function(){return Vr.wasmTypes}});var tt=signingcosmwasmclient;Object.defineProperty(_e,"SigningCosmWasmClient",{enumerable:!0,get:function(){return tt.SigningCosmWasmClient}})}(build$d);class OraiswapV3QueryClient{constructor(cr,gr){Cl(this,"client");Cl(this,"contractAddress");Cl(this,"protocolFee",async()=>this.client.queryContractSmart(this.contractAddress,{protocol_fee:{}}));Cl(this,"position",async({index:cr,ownerId:gr})=>this.client.queryContractSmart(this.contractAddress,{position:{index:cr,owner_id:gr}}));Cl(this,"positions",async({limit:cr,offset:gr,ownerId:Cr})=>this.client.queryContractSmart(this.contractAddress,{positions:{limit:cr,offset:gr,owner_id:Cr}}));Cl(this,"feeTierExist",async({feeTier:cr})=>this.client.queryContractSmart(this.contractAddress,{fee_tier_exist:{fee_tier:cr}}));Cl(this,"pool",async({feeTier:cr,token0:gr,token1:Cr})=>this.client.queryContractSmart(this.contractAddress,{pool:{fee_tier:cr,token_0:gr,token_1:Cr}}));Cl(this,"pools",async({limit:cr,startAfter:gr})=>this.client.queryContractSmart(this.contractAddress,{pools:{limit:cr,start_after:gr}}));Cl(this,"tick",async({index:cr,key:gr})=>this.client.queryContractSmart(this.contractAddress,{tick:{index:cr,key:gr}}));Cl(this,"isTickInitialized",async({index:cr,key:gr})=>this.client.queryContractSmart(this.contractAddress,{is_tick_initialized:{index:cr,key:gr}}));Cl(this,"feeTiers",async()=>this.client.queryContractSmart(this.contractAddress,{fee_tiers:{}}));Cl(this,"positionTicks",async({offset:cr,owner:gr})=>this.client.queryContractSmart(this.contractAddress,{position_ticks:{offset:cr,owner:gr}}));Cl(this,"userPositionAmount",async({owner:cr})=>this.client.queryContractSmart(this.contractAddress,{user_position_amount:{owner:cr}}));Cl(this,"tickMap",async({lowerTickIndex:cr,poolKey:gr,upperTickIndex:Cr,xToY:Vr})=>this.client.queryContractSmart(this.contractAddress,{tick_map:{lower_tick_index:cr,pool_key:gr,upper_tick_index:Cr,x_to_y:Vr}}));Cl(this,"liquidityTicks",async({poolKey:cr,tickIndexes:gr})=>this.client.queryContractSmart(this.contractAddress,{liquidity_ticks:{pool_key:cr,tick_indexes:gr}}));Cl(this,"liquidityTicksAmount",async({lowerTick:cr,poolKey:gr,upperTick:Cr})=>this.client.queryContractSmart(this.contractAddress,{liquidity_ticks_amount:{lower_tick:cr,pool_key:gr,upper_tick:Cr}}));Cl(this,"poolsForPair",async({token0:cr,token1:gr})=>this.client.queryContractSmart(this.contractAddress,{pools_for_pair:{token_0:cr,token_1:gr}}));Cl(this,"quote",async({amount:cr,byAmountIn:gr,poolKey:Cr,sqrtPriceLimit:Vr,xToY:tt})=>this.client.queryContractSmart(this.contractAddress,{quote:{amount:cr,by_amount_in:gr,pool_key:Cr,sqrt_price_limit:Vr,x_to_y:tt}}));Cl(this,"quoteRoute",async({amountIn:cr,swaps:gr})=>this.client.queryContractSmart(this.contractAddress,{quote_route:{amount_in:cr,swaps:gr}}));this.client=cr,this.contractAddress=gr,this.protocolFee=this.protocolFee.bind(this),this.position=this.position.bind(this),this.positions=this.positions.bind(this),this.feeTierExist=this.feeTierExist.bind(this),this.pool=this.pool.bind(this),this.pools=this.pools.bind(this),this.tick=this.tick.bind(this),this.isTickInitialized=this.isTickInitialized.bind(this),this.feeTiers=this.feeTiers.bind(this),this.positionTicks=this.positionTicks.bind(this),this.userPositionAmount=this.userPositionAmount.bind(this),this.tickMap=this.tickMap.bind(this),this.liquidityTicks=this.liquidityTicks.bind(this),this.liquidityTicksAmount=this.liquidityTicksAmount.bind(this),this.poolsForPair=this.poolsForPair.bind(this),this.quote=this.quote.bind(this),this.quoteRoute=this.quoteRoute.bind(this)}}class OraiswapV3Client extends OraiswapV3QueryClient{constructor(gr,Cr,Vr){super(gr,Vr);Cl(this,"sender");Cl(this,"withdrawProtocolFee",async({poolKey:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{withdraw_protocol_fee:{pool_key:gr}},Cr,Vr,tt));Cl(this,"changeProtocolFee",async({protocolFee:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{change_protocol_fee:{protocol_fee:gr}},Cr,Vr,tt));Cl(this,"changeFeeReceiver",async({feeReceiver:gr,poolKey:Cr},Vr="auto",tt,nt)=>await this.client.execute(this.sender,this.contractAddress,{change_fee_receiver:{fee_receiver:gr,pool_key:Cr}},Vr,tt,nt));Cl(this,"createPosition",async({liquidityDelta:gr,lowerTick:Cr,poolKey:Vr,slippageLimitLower:tt,slippageLimitUpper:nt,upperTick:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{create_position:{liquidity_delta:gr,lower_tick:Cr,pool_key:Vr,slippage_limit_lower:tt,slippage_limit_upper:nt,upper_tick:st}},dt,kt,qt));Cl(this,"swap",async({amount:gr,byAmountIn:Cr,poolKey:Vr,sqrtPriceLimit:tt,xToY:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{swap:{amount:gr,by_amount_in:Cr,pool_key:Vr,sqrt_price_limit:tt,x_to_y:nt}},st,dt,kt));Cl(this,"swapRoute",async({amountIn:gr,expectedAmountOut:Cr,slippage:Vr,swaps:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{swap_route:{amount_in:gr,expected_amount_out:Cr,slippage:Vr,swaps:tt}},nt,st,dt));Cl(this,"transferPosition",async({index:gr,receiver:Cr},Vr="auto",tt,nt)=>await this.client.execute(this.sender,this.contractAddress,{transfer_position:{index:gr,receiver:Cr}},Vr,tt,nt));Cl(this,"claimFee",async({index:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{claim_fee:{index:gr}},Cr,Vr,tt));Cl(this,"removePosition",async({index:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{remove_position:{index:gr}},Cr,Vr,tt));Cl(this,"createPool",async({feeTier:gr,initSqrtPrice:Cr,initTick:Vr,token0:tt,token1:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{create_pool:{fee_tier:gr,init_sqrt_price:Cr,init_tick:Vr,token_0:tt,token_1:nt}},st,dt,kt));Cl(this,"addFeeTier",async({feeTier:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{add_fee_tier:{fee_tier:gr}},Cr,Vr,tt));Cl(this,"removeFeeTier",async({feeTier:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{remove_fee_tier:{fee_tier:gr}},Cr,Vr,tt));this.client=gr,this.sender=Cr,this.contractAddress=Vr,this.withdrawProtocolFee=this.withdrawProtocolFee.bind(this),this.changeProtocolFee=this.changeProtocolFee.bind(this),this.changeFeeReceiver=this.changeFeeReceiver.bind(this),this.createPosition=this.createPosition.bind(this),this.swap=this.swap.bind(this),this.swapRoute=this.swapRoute.bind(this),this.transferPosition=this.transferPosition.bind(this),this.claimFee=this.claimFee.bind(this),this.removePosition=this.removePosition.bind(this),this.createPool=this.createPool.bind(this),this.addFeeTier=this.addFeeTier.bind(this),this.removeFeeTier=this.removeFeeTier.bind(this)}}var build={},OraiswapConverter_types={};Object.defineProperty(OraiswapConverter_types,"__esModule",{value:!0});var OraiswapConverter_client={};Object.defineProperty(OraiswapConverter_client,"__esModule",{value:!0}),OraiswapConverter_client.OraiswapConverterClient=OraiswapConverter_client.OraiswapConverterQueryClient=void 0;class OraiswapConverterQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.convertInfo=async({assetInfo:Cr})=>this.client.queryContractSmart(this.contractAddress,{convert_info:{asset_info:Cr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.convertInfo=this.convertInfo.bind(this)}}OraiswapConverter_client.OraiswapConverterQueryClient=OraiswapConverterQueryClient;class OraiswapConverterClient extends OraiswapConverterQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.updateConfig=async({owner:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{owner:Vr}},tt,nt,st),this.convert=async(Vr="auto",tt,nt)=>await this.client.execute(this.sender,this.contractAddress,{convert:{}},Vr,tt,nt),this.updatePair=async({from:Vr,to:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_pair:{from:Vr,to:tt}},nt,st,dt),this.unregisterPair=async({from:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{unregister_pair:{from:Vr}},tt,nt,st),this.convertReverse=async({fromAsset:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{convert_reverse:{from_asset:Vr}},tt,nt,st),this.withdrawTokens=async({assetInfos:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{withdraw_tokens:{asset_infos:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.updateConfig=this.updateConfig.bind(this),this.convert=this.convert.bind(this),this.updatePair=this.updatePair.bind(this),this.unregisterPair=this.unregisterPair.bind(this),this.convertReverse=this.convertReverse.bind(this),this.withdrawTokens=this.withdrawTokens.bind(this)}}OraiswapConverter_client.OraiswapConverterClient=OraiswapConverterClient;var OraiswapFactory_types={};Object.defineProperty(OraiswapFactory_types,"__esModule",{value:!0});var OraiswapFactory_client={};Object.defineProperty(OraiswapFactory_client,"__esModule",{value:!0}),OraiswapFactory_client.OraiswapFactoryClient=OraiswapFactory_client.OraiswapFactoryQueryClient=void 0;class OraiswapFactoryQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.pair=async({assetInfos:Cr})=>this.client.queryContractSmart(this.contractAddress,{pair:{asset_infos:Cr}}),this.pairs=async({limit:Cr,startAfter:Vr})=>this.client.queryContractSmart(this.contractAddress,{pairs:{limit:Cr,start_after:Vr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.pair=this.pair.bind(this),this.pairs=this.pairs.bind(this)}}OraiswapFactory_client.OraiswapFactoryQueryClient=OraiswapFactoryQueryClient;class OraiswapFactoryClient extends OraiswapFactoryQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.updateConfig=async({owner:Vr,pairCodeId:tt,tokenCodeId:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{owner:Vr,pair_code_id:tt,token_code_id:nt}},st,dt,kt),this.createPair=async({assetInfos:Vr,pairAdmin:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{create_pair:{asset_infos:Vr,pair_admin:tt}},nt,st,dt),this.addPair=async({pairInfo:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{add_pair:{pair_info:Vr}},tt,nt,st),this.migrateContract=async({contractAddr:Vr,msg:tt,newCodeId:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{migrate_contract:{contract_addr:Vr,msg:tt,new_code_id:nt}},st,dt,kt),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.updateConfig=this.updateConfig.bind(this),this.createPair=this.createPair.bind(this),this.addPair=this.addPair.bind(this),this.migrateContract=this.migrateContract.bind(this)}}OraiswapFactory_client.OraiswapFactoryClient=OraiswapFactoryClient;var OraiswapLimitOrder_types={};Object.defineProperty(OraiswapLimitOrder_types,"__esModule",{value:!0});var OraiswapLimitOrder_client={};Object.defineProperty(OraiswapLimitOrder_client,"__esModule",{value:!0}),OraiswapLimitOrder_client.OraiswapLimitOrderClient=OraiswapLimitOrder_client.OraiswapLimitOrderQueryClient=void 0;class OraiswapLimitOrderQueryClient{constructor(cr,gr){this.contractInfo=async()=>this.client.queryContractSmart(this.contractAddress,{contract_info:{}}),this.orderBook=async({assetInfos:Cr})=>this.client.queryContractSmart(this.contractAddress,{order_book:{asset_infos:Cr}}),this.orderBooks=async({limit:Cr,orderBy:Vr,startAfter:tt})=>this.client.queryContractSmart(this.contractAddress,{order_books:{limit:Cr,order_by:Vr,start_after:tt}}),this.order=async({assetInfos:Cr,orderId:Vr})=>this.client.queryContractSmart(this.contractAddress,{order:{asset_infos:Cr,order_id:Vr}}),this.orders=async({assetInfos:Cr,direction:Vr,filter:tt,limit:nt,orderBy:st,startAfter:dt})=>this.client.queryContractSmart(this.contractAddress,{orders:{asset_infos:Cr,direction:Vr,filter:tt,limit:nt,order_by:st,start_after:dt}}),this.tick=async({assetInfos:Cr,direction:Vr,price:tt})=>this.client.queryContractSmart(this.contractAddress,{tick:{asset_infos:Cr,direction:Vr,price:tt}}),this.ticks=async({assetInfos:Cr,direction:Vr,end:tt,limit:nt,orderBy:st,startAfter:dt})=>this.client.queryContractSmart(this.contractAddress,{ticks:{asset_infos:Cr,direction:Vr,end:tt,limit:nt,order_by:st,start_after:dt}}),this.lastOrderId=async()=>this.client.queryContractSmart(this.contractAddress,{last_order_id:{}}),this.orderBookMatchable=async({assetInfos:Cr})=>this.client.queryContractSmart(this.contractAddress,{order_book_matchable:{asset_infos:Cr}}),this.client=cr,this.contractAddress=gr,this.contractInfo=this.contractInfo.bind(this),this.orderBook=this.orderBook.bind(this),this.orderBooks=this.orderBooks.bind(this),this.order=this.order.bind(this),this.orders=this.orders.bind(this),this.tick=this.tick.bind(this),this.ticks=this.ticks.bind(this),this.lastOrderId=this.lastOrderId.bind(this),this.orderBookMatchable=this.orderBookMatchable.bind(this)}}OraiswapLimitOrder_client.OraiswapLimitOrderQueryClient=OraiswapLimitOrderQueryClient;class OraiswapLimitOrderClient extends OraiswapLimitOrderQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.updateAdmin=async({admin:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_admin:{admin:Vr}},tt,nt,st),this.updateConfig=async({commissionRate:Vr,rewardAddress:tt,spreadAddress:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{commission_rate:Vr,reward_address:tt,spread_address:nt}},st,dt,kt),this.createOrderBookPair=async({baseCoinInfo:Vr,minQuoteCoinAmount:tt,quoteCoinInfo:nt,spread:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{create_order_book_pair:{base_coin_info:Vr,min_quote_coin_amount:tt,quote_coin_info:nt,spread:st}},dt,kt,qt),this.submitOrder=async({assets:Vr,direction:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{submit_order:{assets:Vr,direction:tt}},nt,st,dt),this.cancelOrder=async({assetInfos:Vr,orderId:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{cancel_order:{asset_infos:Vr,order_id:tt}},nt,st,dt),this.executeOrderBookPair=async({assetInfos:Vr,limit:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{execute_order_book_pair:{asset_infos:Vr,limit:tt}},nt,st,dt),this.removeOrderBookPair=async({assetInfos:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{remove_order_book_pair:{asset_infos:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.updateAdmin=this.updateAdmin.bind(this),this.updateConfig=this.updateConfig.bind(this),this.createOrderBookPair=this.createOrderBookPair.bind(this),this.submitOrder=this.submitOrder.bind(this),this.cancelOrder=this.cancelOrder.bind(this),this.executeOrderBookPair=this.executeOrderBookPair.bind(this),this.removeOrderBookPair=this.removeOrderBookPair.bind(this)}}OraiswapLimitOrder_client.OraiswapLimitOrderClient=OraiswapLimitOrderClient;var OraiswapOracle_types={};Object.defineProperty(OraiswapOracle_types,"__esModule",{value:!0});var OraiswapOracle_client={};Object.defineProperty(OraiswapOracle_client,"__esModule",{value:!0}),OraiswapOracle_client.OraiswapOracleClient=OraiswapOracle_client.OraiswapOracleQueryClient=void 0;class OraiswapOracleQueryClient{constructor(cr,gr){this.treasury=async Cr=>this.client.queryContractSmart(this.contractAddress,{treasury:Cr}),this.exchange=async Cr=>this.client.queryContractSmart(this.contractAddress,{exchange:Cr}),this.contract=async Cr=>this.client.queryContractSmart(this.contractAddress,{contract:Cr}),this.client=cr,this.contractAddress=gr,this.treasury=this.treasury.bind(this),this.exchange=this.exchange.bind(this),this.contract=this.contract.bind(this)}}OraiswapOracle_client.OraiswapOracleQueryClient=OraiswapOracleQueryClient;class OraiswapOracleClient extends OraiswapOracleQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.updateAdmin=async({admin:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_admin:{admin:Vr}},tt,nt,st),this.updateExchangeRate=async({denom:Vr,exchangeRate:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_exchange_rate:{denom:Vr,exchange_rate:tt}},nt,st,dt),this.deleteExchangeRate=async({denom:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{delete_exchange_rate:{denom:Vr}},tt,nt,st),this.updateTaxCap=async({cap:Vr,denom:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_tax_cap:{cap:Vr,denom:tt}},nt,st,dt),this.updateTaxRate=async({rate:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_tax_rate:{rate:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.updateAdmin=this.updateAdmin.bind(this),this.updateExchangeRate=this.updateExchangeRate.bind(this),this.deleteExchangeRate=this.deleteExchangeRate.bind(this),this.updateTaxCap=this.updateTaxCap.bind(this),this.updateTaxRate=this.updateTaxRate.bind(this)}}OraiswapOracle_client.OraiswapOracleClient=OraiswapOracleClient;var OraiswapPair_types={};Object.defineProperty(OraiswapPair_types,"__esModule",{value:!0});var OraiswapPair_client={};Object.defineProperty(OraiswapPair_client,"__esModule",{value:!0}),OraiswapPair_client.OraiswapPairClient=OraiswapPair_client.OraiswapPairQueryClient=void 0;class OraiswapPairQueryClient{constructor(cr,gr){this.pair=async()=>this.client.queryContractSmart(this.contractAddress,{pair:{}}),this.pool=async()=>this.client.queryContractSmart(this.contractAddress,{pool:{}}),this.simulation=async({offerAsset:Cr})=>this.client.queryContractSmart(this.contractAddress,{simulation:{offer_asset:Cr}}),this.reverseSimulation=async({askAsset:Cr})=>this.client.queryContractSmart(this.contractAddress,{reverse_simulation:{ask_asset:Cr}}),this.client=cr,this.contractAddress=gr,this.pair=this.pair.bind(this),this.pool=this.pool.bind(this),this.simulation=this.simulation.bind(this),this.reverseSimulation=this.reverseSimulation.bind(this)}}OraiswapPair_client.OraiswapPairQueryClient=OraiswapPairQueryClient;class OraiswapPairClient extends OraiswapPairQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.provideLiquidity=async({assets:Vr,receiver:tt,slippageTolerance:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{provide_liquidity:{assets:Vr,receiver:tt,slippage_tolerance:nt}},st,dt,kt),this.swap=async({beliefPrice:Vr,maxSpread:tt,offerAsset:nt,to:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{swap:{belief_price:Vr,max_spread:tt,offer_asset:nt,to:st}},dt,kt,qt),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.provideLiquidity=this.provideLiquidity.bind(this),this.swap=this.swap.bind(this)}}OraiswapPair_client.OraiswapPairClient=OraiswapPairClient;var OraiswapRewarder_types={};Object.defineProperty(OraiswapRewarder_types,"__esModule",{value:!0});var OraiswapRewarder_client={};Object.defineProperty(OraiswapRewarder_client,"__esModule",{value:!0}),OraiswapRewarder_client.OraiswapRewarderClient=OraiswapRewarder_client.OraiswapRewarderQueryClient=void 0;class OraiswapRewarderQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.distributionInfo=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{distribution_info:{staking_token:Cr}}),this.rewardAmountPerSec=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{reward_amount_per_sec:{staking_token:Cr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.distributionInfo=this.distributionInfo.bind(this),this.rewardAmountPerSec=this.rewardAmountPerSec.bind(this)}}OraiswapRewarder_client.OraiswapRewarderQueryClient=OraiswapRewarderQueryClient;class OraiswapRewarderClient extends OraiswapRewarderQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.updateConfig=async({distributionInterval:Vr,owner:tt,stakingContract:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{distribution_interval:Vr,owner:tt,staking_contract:nt}},st,dt,kt),this.distribute=async({stakingTokens:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{distribute:{staking_tokens:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.updateConfig=this.updateConfig.bind(this),this.distribute=this.distribute.bind(this)}}OraiswapRewarder_client.OraiswapRewarderClient=OraiswapRewarderClient;var OraiswapRouter_types={};Object.defineProperty(OraiswapRouter_types,"__esModule",{value:!0});var OraiswapRouter_client={};Object.defineProperty(OraiswapRouter_client,"__esModule",{value:!0}),OraiswapRouter_client.OraiswapRouterClient=OraiswapRouter_client.OraiswapRouterQueryClient=void 0;class OraiswapRouterQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.simulateSwapOperations=async({offerAmount:Cr,operations:Vr})=>this.client.queryContractSmart(this.contractAddress,{simulate_swap_operations:{offer_amount:Cr,operations:Vr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.simulateSwapOperations=this.simulateSwapOperations.bind(this)}}OraiswapRouter_client.OraiswapRouterQueryClient=OraiswapRouterQueryClient;class OraiswapRouterClient extends OraiswapRouterQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.executeSwapOperations=async({minimumReceive:Vr,operations:tt,to:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{execute_swap_operations:{minimum_receive:Vr,operations:tt,to:nt}},st,dt,kt),this.executeSwapOperation=async({operation:Vr,to:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{execute_swap_operation:{operation:Vr,to:tt}},nt,st,dt),this.assertMinimumReceive=async({assetInfo:Vr,minimumReceive:tt,prevBalance:nt,receiver:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{assert_minimum_receive:{asset_info:Vr,minimum_receive:tt,prev_balance:nt,receiver:st}},dt,kt,qt),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.executeSwapOperations=this.executeSwapOperations.bind(this),this.executeSwapOperation=this.executeSwapOperation.bind(this),this.assertMinimumReceive=this.assertMinimumReceive.bind(this)}}OraiswapRouter_client.OraiswapRouterClient=OraiswapRouterClient;var OraiswapStaking_types={};Object.defineProperty(OraiswapStaking_types,"__esModule",{value:!0});var OraiswapStaking_client={};Object.defineProperty(OraiswapStaking_client,"__esModule",{value:!0}),OraiswapStaking_client.OraiswapStakingClient=OraiswapStaking_client.OraiswapStakingQueryClient=void 0;class OraiswapStakingQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.poolInfo=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{pool_info:{staking_token:Cr}}),this.rewardsPerSec=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{rewards_per_sec:{staking_token:Cr}}),this.rewardInfo=async({stakerAddr:Cr,stakingToken:Vr})=>this.client.queryContractSmart(this.contractAddress,{reward_info:{staker_addr:Cr,staking_token:Vr}}),this.rewardInfos=async({limit:Cr,order:Vr,stakingToken:tt,startAfter:nt})=>this.client.queryContractSmart(this.contractAddress,{reward_infos:{limit:Cr,order:Vr,staking_token:tt,start_after:nt}}),this.getPoolsInformation=async()=>this.client.queryContractSmart(this.contractAddress,{get_pools_information:{}}),this.queryOldStore=async({storeType:Cr})=>this.client.queryContractSmart(this.contractAddress,{query_old_store:{store_type:Cr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.poolInfo=this.poolInfo.bind(this),this.rewardsPerSec=this.rewardsPerSec.bind(this),this.rewardInfo=this.rewardInfo.bind(this),this.rewardInfos=this.rewardInfos.bind(this),this.getPoolsInformation=this.getPoolsInformation.bind(this),this.queryOldStore=this.queryOldStore.bind(this)}}OraiswapStaking_client.OraiswapStakingQueryClient=OraiswapStakingQueryClient;class OraiswapStakingClient extends OraiswapStakingQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.updateConfig=async({migrateStoreStatus:Vr,owner:tt,rewarder:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{migrate_store_status:Vr,owner:tt,rewarder:nt}},st,dt,kt),this.registerAsset=async({stakingToken:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{register_asset:{staking_token:Vr}},tt,nt,st),this.deprecateStakingToken=async({newStakingToken:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{deprecate_staking_token:{new_staking_token:Vr,staking_token:tt}},nt,st,dt),this.updateRewardsPerSec=async({assets:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_rewards_per_sec:{assets:Vr,staking_token:tt}},nt,st,dt),this.depositReward=async({rewards:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{deposit_reward:{rewards:Vr}},tt,nt,st),this.unbond=async({amount:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{unbond:{amount:Vr,staking_token:tt}},nt,st,dt),this.withdraw=async({stakingToken:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{withdraw:{staking_token:Vr}},tt,nt,st),this.withdrawOthers=async({stakerAddrs:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{withdraw_others:{staker_addrs:Vr,staking_token:tt}},nt,st,dt),this.autoStake=async({assets:Vr,slippageTolerance:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{auto_stake:{assets:Vr,slippage_tolerance:tt}},nt,st,dt),this.autoStakeHook=async({prevStakingTokenAmount:Vr,stakerAddr:tt,stakingToken:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{auto_stake_hook:{prev_staking_token_amount:Vr,staker_addr:tt,staking_token:nt}},st,dt,kt),this.migrateStore=async({assetInfo:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{migrate_store:{asset_info:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.updateConfig=this.updateConfig.bind(this),this.registerAsset=this.registerAsset.bind(this),this.deprecateStakingToken=this.deprecateStakingToken.bind(this),this.updateRewardsPerSec=this.updateRewardsPerSec.bind(this),this.depositReward=this.depositReward.bind(this),this.unbond=this.unbond.bind(this),this.withdraw=this.withdraw.bind(this),this.withdrawOthers=this.withdrawOthers.bind(this),this.autoStake=this.autoStake.bind(this),this.autoStakeHook=this.autoStakeHook.bind(this),this.migrateStore=this.migrateStore.bind(this)}}OraiswapStaking_client.OraiswapStakingClient=OraiswapStakingClient;var OraiswapToken_types={};Object.defineProperty(OraiswapToken_types,"__esModule",{value:!0});var OraiswapToken_client={};Object.defineProperty(OraiswapToken_client,"__esModule",{value:!0}),OraiswapToken_client.OraiswapTokenClient=OraiswapToken_client.OraiswapTokenQueryClient=void 0;class OraiswapTokenQueryClient{constructor(cr,gr){this.balance=async({address:Cr})=>this.client.queryContractSmart(this.contractAddress,{balance:{address:Cr}}),this.tokenInfo=async()=>this.client.queryContractSmart(this.contractAddress,{token_info:{}}),this.minter=async()=>this.client.queryContractSmart(this.contractAddress,{minter:{}}),this.allowance=async({owner:Cr,spender:Vr})=>this.client.queryContractSmart(this.contractAddress,{allowance:{owner:Cr,spender:Vr}}),this.allAllowances=async({limit:Cr,owner:Vr,startAfter:tt})=>this.client.queryContractSmart(this.contractAddress,{all_allowances:{limit:Cr,owner:Vr,start_after:tt}}),this.allSpenderAllowances=async({limit:Cr,spender:Vr,startAfter:tt})=>this.client.queryContractSmart(this.contractAddress,{all_spender_allowances:{limit:Cr,spender:Vr,start_after:tt}}),this.allAccounts=async({limit:Cr,startAfter:Vr})=>this.client.queryContractSmart(this.contractAddress,{all_accounts:{limit:Cr,start_after:Vr}}),this.marketingInfo=async()=>this.client.queryContractSmart(this.contractAddress,{marketing_info:{}}),this.downloadLogo=async()=>this.client.queryContractSmart(this.contractAddress,{download_logo:{}}),this.client=cr,this.contractAddress=gr,this.balance=this.balance.bind(this),this.tokenInfo=this.tokenInfo.bind(this),this.minter=this.minter.bind(this),this.allowance=this.allowance.bind(this),this.allAllowances=this.allAllowances.bind(this),this.allSpenderAllowances=this.allSpenderAllowances.bind(this),this.allAccounts=this.allAccounts.bind(this),this.marketingInfo=this.marketingInfo.bind(this),this.downloadLogo=this.downloadLogo.bind(this)}}OraiswapToken_client.OraiswapTokenQueryClient=OraiswapTokenQueryClient;class OraiswapTokenClient extends OraiswapTokenQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.transfer=async({amount:Vr,recipient:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{transfer:{amount:Vr,recipient:tt}},nt,st,dt),this.burn=async({amount:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{burn:{amount:Vr}},tt,nt,st),this.send=async({amount:Vr,contract:tt,msg:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{send:{amount:Vr,contract:tt,msg:nt}},st,dt,kt),this.increaseAllowance=async({amount:Vr,expires:tt,spender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{increase_allowance:{amount:Vr,expires:tt,spender:nt}},st,dt,kt),this.decreaseAllowance=async({amount:Vr,expires:tt,spender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{decrease_allowance:{amount:Vr,expires:tt,spender:nt}},st,dt,kt),this.transferFrom=async({amount:Vr,owner:tt,recipient:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{transfer_from:{amount:Vr,owner:tt,recipient:nt}},st,dt,kt),this.sendFrom=async({amount:Vr,contract:tt,msg:nt,owner:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{send_from:{amount:Vr,contract:tt,msg:nt,owner:st}},dt,kt,qt),this.burnFrom=async({amount:Vr,owner:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{burn_from:{amount:Vr,owner:tt}},nt,st,dt),this.mint=async({amount:Vr,recipient:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{mint:{amount:Vr,recipient:tt}},nt,st,dt),this.updateMinter=async({newMinter:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_minter:{new_minter:Vr}},tt,nt,st),this.updateMarketing=async({description:Vr,marketing:tt,project:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_marketing:{description:Vr,marketing:tt,project:nt}},st,dt,kt),this.uploadLogo=async(Vr,tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{upload_logo:Vr},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.transfer=this.transfer.bind(this),this.burn=this.burn.bind(this),this.send=this.send.bind(this),this.increaseAllowance=this.increaseAllowance.bind(this),this.decreaseAllowance=this.decreaseAllowance.bind(this),this.transferFrom=this.transferFrom.bind(this),this.sendFrom=this.sendFrom.bind(this),this.burnFrom=this.burnFrom.bind(this),this.mint=this.mint.bind(this),this.updateMinter=this.updateMinter.bind(this),this.updateMarketing=this.updateMarketing.bind(this),this.uploadLogo=this.uploadLogo.bind(this)}}OraiswapToken_client.OraiswapTokenClient=OraiswapTokenClient;var types={};Object.defineProperty(types,"__esModule",{value:!0}),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(tt,nt,st,dt){dt===void 0&&(dt=st);var kt=Object.getOwnPropertyDescriptor(nt,st);(!kt||("get"in kt?!nt.__esModule:kt.writable||kt.configurable))&&(kt={enumerable:!0,get:function(){return nt[st]}}),Object.defineProperty(tt,dt,kt)}:function(tt,nt,st,dt){dt===void 0&&(dt=st),tt[dt]=nt[st]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(tt,nt){Object.defineProperty(tt,"default",{enumerable:!0,value:nt})}:function(tt,nt){tt.default=nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var nt={};if(tt!=null)for(var st in tt)st!=="default"&&Object.prototype.hasOwnProperty.call(tt,st)&&cr(nt,tt,st);return gr(nt,tt),nt},Vr=commonjsGlobal&&commonjsGlobal.__exportStar||function(tt,nt){for(var st in tt)st!=="default"&&!Object.prototype.hasOwnProperty.call(nt,st)&&cr(nt,tt,st)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OraiswapTokenTypes=_e.OraiswapStakingTypes=_e.OraiswapRouterTypes=_e.OraiswapRewarderTypes=_e.OraiswapPairTypes=_e.OraiswapOracleTypes=_e.OraiswapLimitOrderTypes=_e.OraiswapFactoryTypes=_e.OraiswapConverterTypes=void 0,_e.OraiswapConverterTypes=Cr(OraiswapConverter_types),Vr(OraiswapConverter_client,_e),_e.OraiswapFactoryTypes=Cr(OraiswapFactory_types),Vr(OraiswapFactory_client,_e),_e.OraiswapLimitOrderTypes=Cr(OraiswapLimitOrder_types),Vr(OraiswapLimitOrder_client,_e),_e.OraiswapOracleTypes=Cr(OraiswapOracle_types),Vr(OraiswapOracle_client,_e),_e.OraiswapPairTypes=Cr(OraiswapPair_types),Vr(OraiswapPair_client,_e),_e.OraiswapRewarderTypes=Cr(OraiswapRewarder_types),Vr(OraiswapRewarder_client,_e),_e.OraiswapRouterTypes=Cr(OraiswapRouter_types),Vr(OraiswapRouter_client,_e),_e.OraiswapStakingTypes=Cr(OraiswapStaking_types),Vr(OraiswapStaking_client,_e),_e.OraiswapTokenTypes=Cr(OraiswapToken_types),Vr(OraiswapToken_client,_e),Vr(types,_e)}(build);const __vite__wasmUrl="/v3/assets/oraiswap_v3_wasm_bg-Db5GqR1D.wasm",__vite__initWasm=async(_e={},cr)=>{let gr;if(cr.startsWith("data:")){const Cr=cr.replace(/^data:.*?base64,/,"");let Vr;if(typeof Buffer=="function"&&typeof Buffer.from=="function")Vr=Buffer.from(Cr,"base64");else if(typeof atob=="function"){const tt=atob(Cr);Vr=new Uint8Array(tt.length);for(let nt=0;nt"u"?(0,module.require)("util").TextDecoder:TextDecoder;let cachedTextDecoder=new lTextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});cachedTextDecoder.decode();let cachedUint8Memory0=null;function getUint8Memory0(){return(cachedUint8Memory0===null||cachedUint8Memory0.byteLength===0)&&(cachedUint8Memory0=new Uint8Array(wasm$1.memory.buffer)),cachedUint8Memory0}function getStringFromWasm0(_e,cr){return _e=_e>>>0,cachedTextDecoder.decode(getUint8Memory0().subarray(_e,_e+cr))}function isLikeNone(_e){return _e==null}let cachedFloat64Memory0=null;function getFloat64Memory0(){return(cachedFloat64Memory0===null||cachedFloat64Memory0.byteLength===0)&&(cachedFloat64Memory0=new Float64Array(wasm$1.memory.buffer)),cachedFloat64Memory0}let cachedInt32Memory0=null;function getInt32Memory0(){return(cachedInt32Memory0===null||cachedInt32Memory0.byteLength===0)&&(cachedInt32Memory0=new Int32Array(wasm$1.memory.buffer)),cachedInt32Memory0}let WASM_VECTOR_LEN=0;const lTextEncoder=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let cachedTextEncoder=new lTextEncoder("utf-8");const encodeString=typeof cachedTextEncoder.encodeInto=="function"?function(_e,cr){return cachedTextEncoder.encodeInto(_e,cr)}:function(_e,cr){const gr=cachedTextEncoder.encode(_e);return cr.set(gr),{read:_e.length,written:gr.length}};function passStringToWasm0(_e,cr,gr){if(gr===void 0){const st=cachedTextEncoder.encode(_e),dt=cr(st.length,1)>>>0;return getUint8Memory0().subarray(dt,dt+st.length).set(st),WASM_VECTOR_LEN=st.length,dt}let Cr=_e.length,Vr=cr(Cr,1)>>>0;const tt=getUint8Memory0();let nt=0;for(;nt127)break;tt[Vr+nt]=st}if(nt!==Cr){nt!==0&&(_e=_e.slice(nt)),Vr=gr(Vr,Cr,Cr=nt+_e.length*3,1)>>>0;const st=getUint8Memory0().subarray(Vr+nt,Vr+Cr),dt=encodeString(_e,st);nt+=dt.written,Vr=gr(Vr,Cr,nt,1)>>>0}return WASM_VECTOR_LEN=nt,Vr}let cachedBigInt64Memory0=null;function getBigInt64Memory0(){return(cachedBigInt64Memory0===null||cachedBigInt64Memory0.byteLength===0)&&(cachedBigInt64Memory0=new BigInt64Array(wasm$1.memory.buffer)),cachedBigInt64Memory0}function debugString(_e){const cr=typeof _e;if(cr=="number"||cr=="boolean"||_e==null)return`${_e}`;if(cr=="string")return`"${_e}"`;if(cr=="symbol"){const Vr=_e.description;return Vr==null?"Symbol":`Symbol(${Vr})`}if(cr=="function"){const Vr=_e.name;return typeof Vr=="string"&&Vr.length>0?`Function(${Vr})`:"Function"}if(Array.isArray(_e)){const Vr=_e.length;let tt="[";Vr>0&&(tt+=debugString(_e[0]));for(let nt=1;nt1)Cr=gr[1];else return toString.call(_e);if(Cr=="Object")try{return"Object("+JSON.stringify(_e)+")"}catch{return"Object"}return _e instanceof Error?`${_e.name}: ${_e.message} -${_e.stack}`:Cr}function calculateAmountDelta$1(_e,cr,gr,Cr,Vr,tt){try{const kt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.calculateAmountDelta(kt,_e,addHeapObject(cr),addHeapObject(gr),Cr,Vr,tt);var nt=getInt32Memory0()[kt/4+0],st=getInt32Memory0()[kt/4+1],dt=getInt32Memory0()[kt/4+2];if(dt)throw takeObject(st);return takeObject(nt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getGlobalMaxSqrtPrice$1(){const _e=wasm$1.getGlobalMaxSqrtPrice();return takeObject(_e)}function getGlobalMinSqrtPrice$1(){const _e=wasm$1.getGlobalMinSqrtPrice();return takeObject(_e)}function getChunkSize$1(){return wasm$1.getChunkSize()}function getMaxTickmapQuerySize$1(){return wasm$1.getMaxTickmapQuerySize()>>>0}function getLiquidityTicksLimit$1(){return wasm$1.getLiquidityTicksLimit()>>>0}function calculateFee$2(_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro){try{const Nt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.calculateFee(Nt,_e,addHeapObject(cr),addHeapObject(gr),Cr,addHeapObject(Vr),addHeapObject(tt),nt,addHeapObject(st),addHeapObject(dt),addHeapObject(kt),addHeapObject(qt),addHeapObject(ro));var ht=getInt32Memory0()[Nt/4+0],po=getInt32Memory0()[Nt/4+1],no=getInt32Memory0()[Nt/4+2];if(no)throw takeObject(po);return takeObject(ht)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function alignTickToSpacing$1(_e,cr){return wasm$1.alignTickToSpacing(_e,cr)}function getTickAtSqrtPrice$1(_e,cr){try{const tt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.getTickAtSqrtPrice(tt,addHeapObject(_e),cr);var gr=getInt32Memory0()[tt/4+0],Cr=getInt32Memory0()[tt/4+1],Vr=getInt32Memory0()[tt/4+2];if(Vr)throw takeObject(Cr);return gr}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getLiquidityByX$1(_e,cr,gr,Cr,Vr){try{const dt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.getLiquidityByX(dt,addHeapObject(_e),cr,gr,addHeapObject(Cr),Vr);var tt=getInt32Memory0()[dt/4+0],nt=getInt32Memory0()[dt/4+1],st=getInt32Memory0()[dt/4+2];if(st)throw takeObject(nt);return takeObject(tt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getLiquidityByY$1(_e,cr,gr,Cr,Vr){try{const dt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.getLiquidityByY(dt,addHeapObject(_e),cr,gr,addHeapObject(Cr),Vr);var tt=getInt32Memory0()[dt/4+0],nt=getInt32Memory0()[dt/4+1],st=getInt32Memory0()[dt/4+2];if(st)throw takeObject(nt);return takeObject(tt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function newPoolKey$1(_e,cr,gr){try{const nt=wasm$1.__wbindgen_add_to_stack_pointer(-16),st=passStringToWasm0(_e,wasm$1.__wbindgen_malloc,wasm$1.__wbindgen_realloc),dt=WASM_VECTOR_LEN,kt=passStringToWasm0(cr,wasm$1.__wbindgen_malloc,wasm$1.__wbindgen_realloc),qt=WASM_VECTOR_LEN;wasm$1.newPoolKey(nt,st,dt,kt,qt,addHeapObject(gr));var Cr=getInt32Memory0()[nt/4+0],Vr=getInt32Memory0()[nt/4+1],tt=getInt32Memory0()[nt/4+2];if(tt)throw takeObject(Vr);return takeObject(Cr)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getPercentageScale$1(){const _e=wasm$1.getFixedPointScale();return takeObject(_e)}function getPercentageDenominator$1(){const _e=wasm$1.getPercentageDenominator();return takeObject(_e)}function getPriceScale$1(){const _e=wasm$1.getPriceScale();return takeObject(_e)}function getSqrtPriceDenominator$1(){const _e=wasm$1.getPriceDenominator();return takeObject(_e)}function toSqrtPrice$1(_e,cr){try{const tt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.toSqrtPrice(tt,_e,cr);var gr=getInt32Memory0()[tt/4+0],Cr=getInt32Memory0()[tt/4+1],Vr=getInt32Memory0()[tt/4+2];if(Vr)throw takeObject(Cr);return takeObject(gr)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function calculateSqrtPrice$1(_e){try{const Vr=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.calculateSqrtPrice(Vr,_e);var cr=getInt32Memory0()[Vr/4+0],gr=getInt32Memory0()[Vr/4+1],Cr=getInt32Memory0()[Vr/4+2];if(Cr)throw takeObject(gr);return takeObject(cr)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getMaxTick$1(_e){return wasm$1.getMaxTick(_e)}function getMinTick$1(_e){return wasm$1.getMinTick(_e)}function simulateSwap$1(_e,cr,gr,Cr,Vr,tt,nt,st){try{const ro=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.simulateSwap(ro,addHeapObject(_e),addHeapObject(cr),addHeapObject(gr),addHeapObject(Cr),Vr,addHeapObject(tt),nt,addHeapObject(st));var dt=getInt32Memory0()[ro/4+0],kt=getInt32Memory0()[ro/4+1],qt=getInt32Memory0()[ro/4+2];if(qt)throw takeObject(kt);return takeObject(dt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function positionToTick$1(_e,cr,gr){return wasm$1.positionToTick(_e,cr,gr)}function handleError(_e,cr){try{return _e.apply(this,cr)}catch(gr){wasm$1.__wbindgen_exn_store(addHeapObject(gr))}}const SwapError=Object.freeze({NotAdmin:0,0:"NotAdmin",NotFeeReceiver:1,1:"NotFeeReceiver",PoolAlreadyExist:2,2:"PoolAlreadyExist",PoolNotFound:3,3:"PoolNotFound",TickAlreadyExist:4,4:"TickAlreadyExist",InvalidTickIndexOrTickSpacing:5,5:"InvalidTickIndexOrTickSpacing",PositionNotFound:6,6:"PositionNotFound",TickNotFound:7,7:"TickNotFound",FeeTierNotFound:8,8:"FeeTierNotFound",PoolKeyNotFound:9,9:"PoolKeyNotFound",AmountIsZero:10,10:"AmountIsZero",WrongLimit:11,11:"WrongLimit",PriceLimitReached:12,12:"PriceLimitReached",NoGainSwap:13,13:"NoGainSwap",InvalidTickSpacing:14,14:"InvalidTickSpacing",FeeTierAlreadyExist:15,15:"FeeTierAlreadyExist",PoolKeyAlreadyExist:16,16:"PoolKeyAlreadyExist",UnauthorizedFeeReceiver:17,17:"UnauthorizedFeeReceiver",ZeroLiquidity:18,18:"ZeroLiquidity",TransferError:19,19:"TransferError",TokensAreSame:20,20:"TokensAreSame",AmountUnderMinimumAmountOut:21,21:"AmountUnderMinimumAmountOut",InvalidFee:22,22:"InvalidFee",NotEmptyTickDeinitialization:23,23:"NotEmptyTickDeinitialization",InvalidInitTick:24,24:"InvalidInitTick",InvalidInitSqrtPrice:25,25:"InvalidInitSqrtPrice",TickLimitReached:26,26:"TickLimitReached",NoRouteFound:27,27:"NoRouteFound",MaxTicksCrossed:28,28:"MaxTicksCrossed",StateOutdated:29,29:"StateOutdated",InsufficientLiquidity:30,30:"InsufficientLiquidity"});function __wbindgen_object_drop_ref(_e){takeObject(_e)}function __wbindgen_bigint_from_u64(_e){const cr=BigInt.asUintN(64,_e);return addHeapObject(cr)}function __wbindgen_shr(_e,cr){const gr=getObject(_e)>>getObject(cr);return addHeapObject(gr)}function __wbindgen_jsval_eq(_e,cr){return getObject(_e)===getObject(cr)}function __wbindgen_error_new(_e,cr){const gr=new Error(getStringFromWasm0(_e,cr));return addHeapObject(gr)}function __wbindgen_is_bigint(_e){return typeof getObject(_e)=="bigint"}function __wbindgen_is_object(_e){const cr=getObject(_e);return typeof cr=="object"&&cr!==null}function __wbindgen_is_undefined(_e){return getObject(_e)===void 0}function __wbindgen_in(_e,cr){return getObject(_e)in getObject(cr)}function __wbindgen_boolean_get(_e){const cr=getObject(_e);return typeof cr=="boolean"?cr?1:0:2}function __wbindgen_object_clone_ref(_e){const cr=getObject(_e);return addHeapObject(cr)}function __wbindgen_bigint_from_u128(_e,cr){const gr=BigInt.asUintN(64,_e)<>>0];return addHeapObject(gr)}function __wbg_length_cd7af8117672b8b8(_e){return getObject(_e).length}function __wbg_new_16b304a2cfa7ff4a(){const _e=new Array;return addHeapObject(_e)}function __wbg_BigInt_42b692c18e1ac6d6(_e){const cr=BigInt(getObject(_e));return addHeapObject(cr)}function __wbindgen_is_function(_e){return typeof getObject(_e)=="function"}function __wbg_next_40fc327bfc8770e6(_e){const cr=getObject(_e).next;return addHeapObject(cr)}function __wbg_next_196c84450b364254(){return handleError(function(_e){const cr=getObject(_e).next();return addHeapObject(cr)},arguments)}function __wbg_done_298b57d23c0fc80c(_e){return getObject(_e).done}function __wbg_value_d93c65011f51a456(_e){const cr=getObject(_e).value;return addHeapObject(cr)}function __wbg_iterator_2cee6dadfd956dfa(){return addHeapObject(Symbol.iterator)}function __wbg_get_e3c254076557e348(){return handleError(function(_e,cr){const gr=Reflect.get(getObject(_e),getObject(cr));return addHeapObject(gr)},arguments)}function __wbg_call_27c0f87801dedf93(){return handleError(function(_e,cr){const gr=getObject(_e).call(getObject(cr));return addHeapObject(gr)},arguments)}function __wbg_new_72fb9a18b5ae2624(){const _e=new Object;return addHeapObject(_e)}function __wbg_set_d4638f722068f043(_e,cr,gr){getObject(_e)[cr>>>0]=takeObject(gr)}function __wbg_isArray_2ab64d95e09ea0ae(_e){return Array.isArray(getObject(_e))}function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(_e){let cr;try{cr=getObject(_e)instanceof ArrayBuffer}catch{cr=!1}return cr}function __wbg_isSafeInteger_f7b04ef02296c4d2(_e){return Number.isSafeInteger(getObject(_e))}function __wbg_entries_95cc2c823b285a09(_e){const cr=Object.entries(getObject(_e));return addHeapObject(cr)}function __wbg_buffer_12d079cc21e14bdb(_e){const cr=getObject(_e).buffer;return addHeapObject(cr)}function __wbg_new_63b92bc8671ed464(_e){const cr=new Uint8Array(getObject(_e));return addHeapObject(cr)}function __wbg_set_a47bac70306a19a7(_e,cr,gr){getObject(_e).set(getObject(cr),gr>>>0)}function __wbg_length_c20a40f15020d68a(_e){return getObject(_e).length}function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(_e){let cr;try{cr=getObject(_e)instanceof Uint8Array}catch{cr=!1}return cr}function __wbindgen_bigint_get_as_i64(_e,cr){const gr=getObject(cr),Cr=typeof gr=="bigint"?gr:void 0;getBigInt64Memory0()[_e/8+1]=isLikeNone(Cr)?BigInt(0):Cr,getInt32Memory0()[_e/4+0]=!isLikeNone(Cr)}function __wbindgen_debug_string(_e,cr){const gr=debugString(getObject(cr)),Cr=passStringToWasm0(gr,wasm$1.__wbindgen_malloc,wasm$1.__wbindgen_realloc),Vr=WASM_VECTOR_LEN;getInt32Memory0()[_e/4+1]=Vr,getInt32Memory0()[_e/4+0]=Cr}function __wbindgen_throw(_e,cr){throw new Error(getStringFromWasm0(_e,cr))}function __wbindgen_memory(){const _e=wasm$1.memory;return addHeapObject(_e)}URL=globalThis.URL;const __vite__wasmModule=await __vite__initWasm({"./oraiswap_v3_wasm_bg.js":{__wbindgen_object_drop_ref,__wbindgen_bigint_from_u64,__wbindgen_shr,__wbindgen_jsval_eq,__wbindgen_error_new,__wbindgen_is_bigint,__wbindgen_is_object,__wbindgen_is_undefined,__wbindgen_in,__wbindgen_boolean_get,__wbindgen_object_clone_ref,__wbindgen_bigint_from_u128,__wbindgen_number_new,__wbindgen_number_get,__wbindgen_string_get,__wbindgen_jsval_loose_eq,__wbindgen_as_number,__wbindgen_string_new,__wbg_getwithrefkey_edc2c8960f0f1191,__wbg_String_88810dfeb4021902,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_set_841ac57cff3d672b,__wbg_get_bd8e338fbd5f5cc8,__wbg_length_cd7af8117672b8b8,__wbg_new_16b304a2cfa7ff4a,__wbg_BigInt_42b692c18e1ac6d6,__wbindgen_is_function,__wbg_next_40fc327bfc8770e6,__wbg_next_196c84450b364254,__wbg_done_298b57d23c0fc80c,__wbg_value_d93c65011f51a456,__wbg_iterator_2cee6dadfd956dfa,__wbg_get_e3c254076557e348,__wbg_call_27c0f87801dedf93,__wbg_new_72fb9a18b5ae2624,__wbg_set_d4638f722068f043,__wbg_isArray_2ab64d95e09ea0ae,__wbg_instanceof_ArrayBuffer_836825be07d4c9d2,__wbg_isSafeInteger_f7b04ef02296c4d2,__wbg_entries_95cc2c823b285a09,__wbg_buffer_12d079cc21e14bdb,__wbg_new_63b92bc8671ed464,__wbg_set_a47bac70306a19a7,__wbg_length_c20a40f15020d68a,__wbg_instanceof_Uint8Array_2b3bbecd033d19f6,__wbindgen_bigint_get_as_i64,__wbindgen_debug_string,__wbindgen_throw,__wbindgen_memory}},__vite__wasmUrl),memory=__vite__wasmModule.memory,computeSwapStep=__vite__wasmModule.computeSwapStep,getDeltaX=__vite__wasmModule.getDeltaX,getDeltaY=__vite__wasmModule.getDeltaY,getNextSqrtPriceFromInput=__vite__wasmModule.getNextSqrtPriceFromInput,getNextSqrtPriceFromOutput=__vite__wasmModule.getNextSqrtPriceFromOutput,getNextSqrtPriceXUp=__vite__wasmModule.getNextSqrtPriceXUp,getNextSqrtPriceYDown=__vite__wasmModule.getNextSqrtPriceYDown,calculateAmountDelta=__vite__wasmModule.calculateAmountDelta,isEnoughAmountToChangePrice=__vite__wasmModule.isEnoughAmountToChangePrice,calculateMaxLiquidityPerTick=__vite__wasmModule.calculateMaxLiquidityPerTick,checkTicks=__vite__wasmModule.checkTicks,checkTick=__vite__wasmModule.checkTick,calculateMinAmountOut=__vite__wasmModule.calculateMinAmountOut,getGlobalMaxSqrtPrice=__vite__wasmModule.getGlobalMaxSqrtPrice,getGlobalMinSqrtPrice=__vite__wasmModule.getGlobalMinSqrtPrice,getTickSearchRange=__vite__wasmModule.getTickSearchRange,getMaxChunk=__vite__wasmModule.getMaxChunk,getChunkSize=__vite__wasmModule.getChunkSize,getMaxTickCross=__vite__wasmModule.getMaxTickCross,getMaxTickmapQuerySize=__vite__wasmModule.getMaxTickmapQuerySize,getLiquidityTicksLimit=__vite__wasmModule.getLiquidityTicksLimit,getMaxPoolKeysReturned=__vite__wasmModule.getMaxPoolKeysReturned,getMaxPoolPairsReturned=__vite__wasmModule.getMaxPoolPairsReturned,calculateFee$1=__vite__wasmModule.calculateFee,isTokenX=__vite__wasmModule.isTokenX,checkTickToSqrtPriceRelationship=__vite__wasmModule.checkTickToSqrtPriceRelationship,alignTickToSpacing=__vite__wasmModule.alignTickToSpacing,getTickAtSqrtPrice=__vite__wasmModule.getTickAtSqrtPrice,getLiquidityByX=__vite__wasmModule.getLiquidityByX,getLiquidityByY=__vite__wasmModule.getLiquidityByY,newFeeTier=__vite__wasmModule.newFeeTier,newPoolKey=__vite__wasmModule.newPoolKey,getFeeGrowthScale=__vite__wasmModule.getFeeGrowthScale,getFeeGrowthDenominator=__vite__wasmModule.getFeeGrowthDenominator,toFeeGrowth=__vite__wasmModule.toFeeGrowth,getFixedPointScale=__vite__wasmModule.getFixedPointScale,getFixedPointDenominator=__vite__wasmModule.getFixedPointDenominator,toFixedPoint=__vite__wasmModule.toFixedPoint,getLiquidityScale=__vite__wasmModule.getLiquidityScale,getLiquidityDenominator=__vite__wasmModule.getLiquidityDenominator,toLiquidity=__vite__wasmModule.toLiquidity,getPercentageDenominator=__vite__wasmModule.getPercentageDenominator,toPercentage=__vite__wasmModule.toPercentage,getPriceScale=__vite__wasmModule.getPriceScale,getPriceDenominator=__vite__wasmModule.getPriceDenominator,toPrice=__vite__wasmModule.toPrice,toSecondsPerLiquidity=__vite__wasmModule.toSecondsPerLiquidity,toSqrtPrice=__vite__wasmModule.toSqrtPrice,calculateSqrtPrice=__vite__wasmModule.calculateSqrtPrice,getMaxTick=__vite__wasmModule.getMaxTick,getMinTick=__vite__wasmModule.getMinTick,getMaxSqrtPrice=__vite__wasmModule.getMaxSqrtPrice,getMinSqrtPrice=__vite__wasmModule.getMinSqrtPrice,getTokenAmountScale=__vite__wasmModule.getTokenAmountScale,getTokenAmountDenominator=__vite__wasmModule.getTokenAmountDenominator,toTokenAmount=__vite__wasmModule.toTokenAmount,simulateSwap=__vite__wasmModule.simulateSwap,tickToPositionJs=__vite__wasmModule.tickToPositionJs,positionToTick=__vite__wasmModule.positionToTick,getSecondsPerLiquidityDenominator=__vite__wasmModule.getSecondsPerLiquidityDenominator,getSqrtPriceDenominator=__vite__wasmModule.getSqrtPriceDenominator,getPercentageScale=__vite__wasmModule.getPercentageScale,getSecondsPerLiquidityScale=__vite__wasmModule.getSecondsPerLiquidityScale,getSqrtPriceScale=__vite__wasmModule.getSqrtPriceScale,__wbindgen_malloc=__vite__wasmModule.__wbindgen_malloc,__wbindgen_realloc=__vite__wasmModule.__wbindgen_realloc,__wbindgen_add_to_stack_pointer=__vite__wasmModule.__wbindgen_add_to_stack_pointer,__wbindgen_exn_store=__vite__wasmModule.__wbindgen_exn_store,wasm=Object.freeze(Object.defineProperty({__proto__:null,__wbindgen_add_to_stack_pointer,__wbindgen_exn_store,__wbindgen_malloc,__wbindgen_realloc,alignTickToSpacing,calculateAmountDelta,calculateFee:calculateFee$1,calculateMaxLiquidityPerTick,calculateMinAmountOut,calculateSqrtPrice,checkTick,checkTickToSqrtPriceRelationship,checkTicks,computeSwapStep,getChunkSize,getDeltaX,getDeltaY,getFeeGrowthDenominator,getFeeGrowthScale,getFixedPointDenominator,getFixedPointScale,getGlobalMaxSqrtPrice,getGlobalMinSqrtPrice,getLiquidityByX,getLiquidityByY,getLiquidityDenominator,getLiquidityScale,getLiquidityTicksLimit,getMaxChunk,getMaxPoolKeysReturned,getMaxPoolPairsReturned,getMaxSqrtPrice,getMaxTick,getMaxTickCross,getMaxTickmapQuerySize,getMinSqrtPrice,getMinTick,getNextSqrtPriceFromInput,getNextSqrtPriceFromOutput,getNextSqrtPriceXUp,getNextSqrtPriceYDown,getPercentageDenominator,getPercentageScale,getPriceDenominator,getPriceScale,getSecondsPerLiquidityDenominator,getSecondsPerLiquidityScale,getSqrtPriceDenominator,getSqrtPriceScale,getTickAtSqrtPrice,getTickSearchRange,getTokenAmountDenominator,getTokenAmountScale,isEnoughAmountToChangePrice,isTokenX,memory,newFeeTier,newPoolKey,positionToTick,simulateSwap,tickToPositionJs,toFeeGrowth,toFixedPoint,toLiquidity,toPercentage,toPrice,toSecondsPerLiquidity,toSqrtPrice,toTokenAmount},Symbol.toStringTag,{value:"Module"}));__wbg_set_wasm(wasm);const OraiIcon="data:image/svg+xml,%3csvg%20width='44'%20height='44'%20viewBox='0%200%2032%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_323_8004)'%3e%3cg%20clip-path='url(%23clip1_323_8004)'%3e%3cpath%20d='M13.2528%2014.1654L14.2668%2017.1603H11.9794L13.0523%2014.1654H13.2528ZM18.7237%2018.7638H17.0494V19.3534H21.1761V18.7638H19.5254V14.0475H21.1761V13.458H17.0494V14.0475H18.7237V18.7638ZM11.1894%2019.3534L11.7553%2017.7734H14.479L15.0096%2019.3534H15.8821L13.7598%2013.458H12.5571L10.3994%2019.3534H11.1894ZM24.4657%2024.9657H7.53427V8.03427H24.4657V24.9657Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M17.6507%2032.5C25.2086%2031.7218%2031.2219%2025.7085%2032.0001%2018.1507H30.0074C29.3%2024.7063%2024.3361%2029.9296%2017.6507%2030.6724V32.5Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M0%2018.1507C0.778187%2025.7085%206.79145%2031.7218%2014.3493%2032.5V30.6724C7.66396%2029.9296%202.71186%2024.6945%201.99263%2018.1507H0Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M32.0001%2014.8493C31.2219%207.29145%2025.2086%201.27819%2017.6507%200.5V2.32756C24.3361%203.07038%2029.2882%208.30545%2030.0074%2014.8493H32.0001Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M14.3493%200.5C6.79145%201.27819%200.778187%207.29145%200%2014.8493H1.99263C2.70007%208.29367%207.66397%203.07038%2014.3493%202.32756V0.5Z'%20fill='white'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_323_8004'%3e%3crect%20width='44'%20height='44'%20fill='white'%20transform='translate(0%200.5)'%3e%3c/rect%3e%3c/clipPath%3e%3cclipPath%20id='clip1_323_8004'%3e%3crect%20width='44'%20height='44'%20fill='white'%20transform='translate(0%200.5)'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",OraiXIcon="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2045%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20class='logo'%3e%3cpath%20d='M0%2019.7264H2.44673C2.51127%2019.1572%202.60515%2018.5939%202.71663%2018.0365C2.9748%2016.775%203.36205%2015.5311%203.86078%2014.3459C4.35365%2013.1783%204.96386%2012.0576%205.67382%2011.0015C6.37792%209.95706%207.18763%208.9772%208.07948%208.08534C8.97133%207.19349%209.95119%206.38378%2010.9956%205.67969C12.0459%204.96973%2013.1724%204.35952%2014.34%203.86665C15.5253%203.36792%2016.7692%202.98067%2018.0307%202.7225C18.5881%202.61102%2019.1514%202.51713%2019.7205%202.45259V0C9.32925%201.06788%201.06201%209.32924%200%2019.7264ZM41.5533%2024.2795C41.4887%2024.8486%2041.3949%2025.4119%2041.2834%2025.9693C41.0252%2027.2308%2040.638%2028.4747%2040.1392%2029.66C39.6464%2030.8276%2039.0361%2031.9483%2038.3262%2033.0044C37.6221%2034.0488%2036.8124%2035.0287%2035.9205%2035.9205C35.0287%2036.8124%2034.0488%2037.6221%2033.0044%2038.3262C31.9541%2039.0361%2030.8276%2039.6464%2029.66%2040.1392C28.4747%2040.638%2027.2308%2041.0252%2025.9693%2041.2834C25.4119%2041.3949%2024.8486%2041.4887%2024.2795%2041.5533V44C34.6708%2042.938%2042.938%2034.6708%2044%2024.2795H41.5533ZM14.34%2040.1392C13.1724%2039.6464%2012.0517%2039.0361%2010.9956%2038.3262C9.95119%2037.6221%208.97133%2036.8124%208.07948%2035.9205C7.18763%2035.0287%206.37792%2034.0488%205.67382%2033.0044C4.96386%2031.9541%204.35365%2030.8276%203.86078%2029.66C3.36205%2028.4747%202.9748%2027.2308%202.71663%2025.9693C2.60515%2025.4119%202.51127%2024.8486%202.44673%2024.2795H0C1.06201%2034.6708%209.32925%2042.938%2019.7205%2044V41.5533C19.1514%2041.4887%2018.5881%2041.3949%2018.0307%2041.2834C16.7692%2041.0311%2015.5253%2040.6438%2014.34%2040.1392ZM24.2795%200V2.44673C24.8486%202.51127%2025.4119%202.60515%2025.9693%202.71663C27.2308%202.9748%2028.4747%203.36205%2029.66%203.86078C30.8276%204.35365%2031.9483%204.96386%2033.0044%205.67382C34.0488%206.37792%2035.0287%207.18763%2035.9205%208.07948C36.8124%208.97133%2037.6221%209.95119%2038.3262%2010.9956C39.0361%2012.0459%2039.6464%2013.1724%2040.1392%2014.34C40.638%2015.5253%2041.0252%2016.7692%2041.2834%2018.0307C41.3949%2018.5881%2041.4887%2019.1514%2041.5533%2019.7205H44.0059C42.938%209.32924%2034.6766%201.06788%2024.2795%200Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M14.7387%2010.5381H10.5435V14.7333H14.7387V10.5381Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M33.4736%2010.5381H27.8115V16.2002H33.4736V10.5381Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M33.4737%2026.0215V33.4673H26.0278V26.0215H33.4737Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M12.9843%2031.0215H10.5435V33.4623H12.9843V31.0215Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M22.0085%2022.1623L10.696%2033.4689H10.5435V33.3105L21.85%2022.0039L22.0085%2022.1623Z'%20fill='url(%23paint0_linear_1311_9895)'%3e%3c/path%3e%3cpath%20d='M33.4733%2010.5381V10.6965L27.9638%2016.2002L22.1667%2022.0031L22.0083%2021.8447L27.8112%2016.0476L33.3149%2010.5381H33.4733Z'%20fill='url(%23paint1_linear_1311_9895)'%3e%3c/path%3e%3cpath%20d='M22.0085%2021.8447L21.85%2022.0031L10.5435%2010.6965V10.5381H10.696L22.0085%2021.8447Z'%20fill='url(%23paint2_linear_1311_9895)'%3e%3c/path%3e%3cpath%20d='M33.4733%2033.3105V33.4689H33.3149L22.0083%2022.1623L22.1667%2022.0039L33.4733%2033.3105Z'%20fill='url(%23paint3_linear_1311_9895)'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20x1='21.9282'%20y1='22.0815'%20x2='12.9518'%20y2='31.0579'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='22.0848'%20y1='21.925'%20x2='27.7815'%20y2='16.2282'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='21.8781'%20y1='21.8754'%20x2='14.7094'%20y2='14.7068'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='22.0622'%20y1='22.0595'%20x2='26.158'%20y2='26.1553'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.9809'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";var OraichainNetworks=(_e=>(_e.TEST="https://testnet.rpc.orai.io",_e.MAIN="https://rpc.orai.io",_e))(OraichainNetworks||{});const POSITIONS_PER_PAGE=5,STABLECOIN_ADDRESSES=[],bestTiers={Testnet:[],Mainnet:[],Local:[]},commonTokensForNetworks={Testnet:[],Mainnet:[],Local:[]},FaucetTokenList={ORAI:"orai",ORAIX:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",OCH:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",USDT:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",USDC:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd"},allowTokenSymbol=Object.keys(FaucetTokenList),OCH={symbol:"OCH",address:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",decimals:6,name:"OCH",logoURI:"https://assets.coingecko.com/coins/images/34236/standard/orchai_logo_white_copy_4x-8_%281%29.png?1704307670",coingeckoId:"och"},USDT={symbol:"USDT",address:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",decimals:6,name:"USDT",logoURI:"https://assets.coingecko.com/coins/images/325/standard/Tether.png",coingeckoId:"tether"},USDC={symbol:"USDC",address:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",decimals:6,name:"USDC",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",coingeckoId:"usd-coin"},ORAI={symbol:"ORAI",address:"orai",decimals:6,name:"Oraichain Native Token",logoURI:OraiIcon,coingeckoId:"oraichain-token"},ORAIX={symbol:"ORAIX",address:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",decimals:6,name:"ORAIX",logoURI:OraiXIcon,coingeckoId:"oraidex"},U128MAX=2n**128n-1n;BigInt(Math.ceil(.05*10**12)),BigInt(Math.ceil(.05*10**12));const REFRESHER_INTERVAL=20,SWAP_HOPS_CACHE={"orai-orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge-0-0":[{pool_key:{token_x:"orai",token_y:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0}],"orai-orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q-0-0":[{pool_key:{token_x:"orai",token_y:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0}],"orai-orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd-0-0":[{pool_key:{token_x:"orai",token_y:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",fee_tier:{fee:5e8,tick_spacing:10}},x_to_y:!0}],"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge-orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q-0-0":[{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!1},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0}],"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge-orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd-0-0":[{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!1},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",fee_tier:{fee:5e8,tick_spacing:10}},x_to_y:!0}],"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q-orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd-0-0":[{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!1},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",fee_tier:{fee:5e8,tick_spacing:10}},x_to_y:!0}]};var Status$1=(_e=>(_e.Uninitialized="uninitialized",_e.Init="init",_e.Error="error",_e.Initialized="initalized",_e))(Status$1||{});const defaultState$4={status:"uninitialized",message:"",networkType:"Mainnet",blockNumber:0,rpcAddress:OraichainNetworks.MAIN,dexAddress:"orai10s0c75gw5y5eftms5ncfknw6lzmx0dyhedn75uz793m8zwz4g8zq4d9x9a"},connectionSliceName="connection",connectionSlice=createSlice({name:connectionSliceName,initialState:defaultState$4,reducers:{initOraichainConnection(_e){return _e.status="init",_e},setStatus(_e,cr){return _e.status=cr.payload,_e},setMessage(_e,cr){return _e.message=cr.payload,_e},setNetwork(_e,cr){return _e.networkType=cr.payload.networkType,_e.rpcAddress=cr.payload.rpcAddress,_e},updateSlot(_e){return _e},setSlot(_e,cr){return _e.blockNumber=cr.payload,_e}}}),actions$5=connectionSlice.actions,reducer$5=connectionSlice.reducer,assert$1=(_e,cr)=>{if(!_e)throw new Error("assertion failed")},Wl=class Wl{constructor(){}static get dex(){return this._dex}static get dexQuerier(){return this._dexQuerier}static get tokens(){return this._tokens}static get nativeTokens(){return this._nativeTokens}static async load(cr,gr){(!this.dex||defaultState$4.dexAddress!==this.dex.contractAddress)&&(this._dex=new OraiswapV3Client(cr,gr,defaultState$4.dexAddress));const Cr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");this._dexQuerier=new OraiswapV3QueryClient(Cr,defaultState$4.dexAddress)}static async loadCw20(cr,gr){this._tokens[gr]=new build.OraiswapTokenClient(this._dex.client,cr,gr)}static async loadNative(cr){this._nativeTokens[cr]=cr}static async queryBalance(cr,gr="orai"){if(!cr)return"0";const Cr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/"),{amount:Vr}=await Cr.getBalance(cr,gr);return Vr}static async getRawTickmap(cr,gr,Cr,Vr){const tt=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");return await new OraiswapV3QueryClient(tt,defaultState$4.dexAddress).tickMap({lowerTickIndex:gr,upperTickIndex:Cr,xToY:Vr,poolKey:cr})}static async getTokensInfo(cr,gr){return await Promise.all(cr.map(async Cr=>{if(Cr.includes("ibc")||Cr=="orai"){const qt=this._dex?BigInt(await this.queryBalance(gr,Cr)):BigInt(0);return{address:Cr,balance:qt,symbol:Cr=="orai"?"ORAI":"IBC",decimals:6,name:Cr=="orai"?"ORAI":"IBC Token"}}const Vr=new build.OraiswapTokenQueryClient(this.dex.client,Cr),tt=await Vr.balance({address:gr}),nt=await Vr.tokenInfo(),st=nt.symbol,dt=nt.decimals,kt=nt.name;return{address:Cr,balance:BigInt(tt.balance),symbol:st,decimals:dt,name:kt}}))}static async getPools(){const cr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");return await new OraiswapV3QueryClient(cr,defaultState$4.dexAddress).pools({})}static async getPool(cr){const gr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");return{pool:await new OraiswapV3QueryClient(gr,defaultState$4.dexAddress).pool({feeTier:cr.fee_tier,token0:cr.token_x,token1:cr.token_y}),pool_key:cr}}static async getAllPosition(cr,gr,Cr){return await this.dex.client.queryContractSmart(defaultState$4.dexAddress,{positions:{limit:gr,offset:Cr,owner_id:cr}})}static async getFullTickmap(cr){const gr=getMaxTick$1(cr.fee_tier.tick_spacing);let Cr=getMinTick$1(cr.fee_tier.tick_spacing);const Vr=!1,tt=[],nt=cr.fee_tier.tick_spacing;assert$1(nt<=100),assert$1(MAX_TICKMAP_QUERY_SIZE>3),assert$1(CHUNK_SIZE*2>nt);const st=(MAX_TICKMAP_QUERY_SIZE-3)*CHUNK_SIZE;for(;Cr<=gr;){let kt=Cr+st;const qt=kt%nt;qt>0?kt+=nt-qt:qt<0&&(kt-=qt);let ro=kt;ro>gr&&(ro=gr),assert$1(ro%nt===0),assert$1(Cr%nt===0);const ht=this.getRawTickmap(cr,Cr,ro,Vr).then(po=>po.map(([no,Nt])=>[BigInt(no),BigInt(Nt)]));tt.push(ht),Cr=ro+nt}const dt=(await Promise.all(tt)).flat(1);return{bitmap:new Map(dt)}}static async getAllLiquidityTicks(cr,gr){const Cr=[];for(const[nt,st]of gr.bitmap.entries())for(let dt=0;dtawait new build.OraiswapTokenClient(Wl.dex.client,Cr,cr).increaseAllowance({amount:gr.toString(),spender:Wl.dex.contractAddress}));let SingletonOraiswapV3=Wl;var axios$3={exports:{}},bind$2=function _e(cr,gr){return function(){return cr.apply(gr,arguments)}},bind$1=bind$2,toString$4=Object.prototype.toString,kindOf=function(_e){return function(cr){var gr=toString$4.call(cr);return _e[gr]||(_e[gr]=gr.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(_e){return _e=_e.toLowerCase(),function(cr){return kindOf(cr)===_e}}function isArray$e(_e){return Array.isArray(_e)}function isUndefined(_e){return typeof _e>"u"}function isBuffer$4(_e){return _e!==null&&!isUndefined(_e)&&_e.constructor!==null&&!isUndefined(_e.constructor)&&typeof _e.constructor.isBuffer=="function"&&_e.constructor.isBuffer(_e)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(_e){var cr;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?cr=ArrayBuffer.isView(_e):cr=_e&&_e.buffer&&isArrayBuffer(_e.buffer),cr}function isString$3(_e){return typeof _e=="string"}function isNumber$1(_e){return typeof _e=="number"}function isObject$d(_e){return _e!==null&&typeof _e=="object"}function isPlainObject$3(_e){if(kindOf(_e)!=="object")return!1;var cr=Object.getPrototypeOf(_e);return cr===null||cr===Object.prototype}function isEmptyObject(_e){return _e&&Object.keys(_e).length===0&&Object.getPrototypeOf(_e)===Object.prototype}var isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList");function isFunction$4(_e){return toString$4.call(_e)==="[object Function]"}function isStream(_e){return isObject$d(_e)&&isFunction$4(_e.pipe)}function isFormData(_e){var cr="[object FormData]";return _e&&(typeof FormData=="function"&&_e instanceof FormData||toString$4.call(_e)===cr||isFunction$4(_e.toString)&&_e.toString()===cr)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim$1(_e){return _e.trim?_e.trim():_e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function isStandardBrowserEnv(){var _e;return typeof navigator<"u"&&((_e=navigator.product)==="ReactNative"||_e==="NativeScript"||_e==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(_e,cr){if(!(_e===null||typeof _e>"u"))if(typeof _e!="object"&&(_e=[_e]),isArray$e(_e))for(var gr=0,Cr=_e.length;gr0;)nt=Vr[tt],(!Cr||Cr(nt,_e,cr))&&!st[nt]&&(cr[nt]=_e[nt],st[nt]=!0);_e=gr!==!1&&Object.getPrototypeOf(_e)}while(_e&&(!gr||gr(_e,cr))&&_e!==Object.prototype);return cr}function endsWith(_e,cr,gr){_e=String(_e),(gr===void 0||gr>_e.length)&&(gr=_e.length),gr-=cr.length;var Cr=_e.indexOf(cr,gr);return Cr!==-1&&Cr===gr}function toArray$1(_e){if(!_e)return null;if(isArray$e(_e))return _e;var cr=_e.length;if(!isNumber$1(cr))return null;for(var gr=new Array(cr);cr-- >0;)gr[cr]=_e[cr];return gr}var isTypedArray$4=function(_e){return function(cr){return _e&&cr instanceof _e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));function forEachEntry(_e,cr){for(var gr=_e&&_e[Symbol.iterator],Cr=gr.call(_e),Vr;(Vr=Cr.next())&&!Vr.done;){var tt=Vr.value;cr.call(_e,tt[0],tt[1])}}function matchAll(_e,cr){for(var gr,Cr=[];(gr=_e.exec(cr))!==null;)Cr.push(gr);return Cr}var isHTMLForm=kindOfTest("HTMLFormElement"),hasOwnProperty$c=function _e(cr){return function(gr,Cr){return cr.call(gr,Cr)}}(Object.prototype.hasOwnProperty),utils$f={isArray:isArray$e,isArrayBuffer,isBuffer:isBuffer$4,isFormData,isArrayBufferView,isString:isString$3,isNumber:isNumber$1,isObject:isObject$d,isPlainObject:isPlainObject$3,isEmptyObject,isUndefined,isDate:isDate$1,isFile,isBlob,isFunction:isFunction$4,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge:merge$4,extend:extend$1,trim:trim$1,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,isTypedArray:isTypedArray$4,isFileList,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$c},utils$e=utils$f;function AxiosError$3(_e,cr,gr,Cr,Vr){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_e,this.name="AxiosError",cr&&(this.code=cr),gr&&(this.config=gr),Cr&&(this.request=Cr),Vr&&(this.response=Vr)}utils$e.inherits(AxiosError$3,Error,{toJSON:function _e(){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,status:this.response&&this.response.status?this.response.status:null}}});var prototype$1=AxiosError$3.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(_e){descriptors[_e]={value:_e}}),Object.defineProperties(AxiosError$3,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$3.from=function(_e,cr,gr,Cr,Vr,tt){var nt=Object.create(prototype$1);return utils$e.toFlatObject(_e,nt,function(st){return st!==Error.prototype}),AxiosError$3.call(nt,_e.message,cr,gr,Cr,Vr),nt.cause=_e,nt.name=_e.name,tt&&Object.assign(nt,tt),nt};var AxiosError_1=AxiosError$3,browser$1=typeof self=="object"?self.FormData:window.FormData,FormData$1=browser$1,utils$d=utils$f,AxiosError$2=AxiosError_1,envFormData=FormData$1;function isVisitable(_e){return utils$d.isPlainObject(_e)||utils$d.isArray(_e)}function removeBrackets(_e){return utils$d.endsWith(_e,"[]")?_e.slice(0,-2):_e}function renderKey(_e,cr,gr){return _e?_e.concat(cr).map(function(Cr,Vr){return Cr=removeBrackets(Cr),!gr&&Vr?"["+Cr+"]":Cr}).join(gr?".":""):cr}function isFlatArray(_e){return utils$d.isArray(_e)&&!_e.some(isVisitable)}var predicates=utils$d.toFlatObject(utils$d,{},null,function _e(cr){return/^is[A-Z]/.test(cr)});function isSpecCompliant(_e){return _e&&utils$d.isFunction(_e.append)&&_e[Symbol.toStringTag]==="FormData"&&_e[Symbol.iterator]}function toFormData$3(_e,cr,gr){if(!utils$d.isObject(_e))throw new TypeError("target must be an object");cr=cr||new(envFormData||FormData),gr=utils$d.toFlatObject(gr,{metaTokens:!0,dots:!1,indexes:!1},!1,function(no,Nt){return!utils$d.isUndefined(Nt[no])});var Cr=gr.metaTokens,Vr=gr.visitor||qt,tt=gr.dots,nt=gr.indexes,st=gr.Blob||typeof Blob<"u"&&Blob,dt=st&&isSpecCompliant(cr);if(!utils$d.isFunction(Vr))throw new TypeError("visitor must be a function");function kt(no){if(no===null)return"";if(utils$d.isDate(no))return no.toISOString();if(!dt&&utils$d.isBlob(no))throw new AxiosError$2("Blob is not supported. Use a Buffer instead.");return utils$d.isArrayBuffer(no)||utils$d.isTypedArray(no)?dt&&typeof Blob=="function"?new Blob([no]):Buffer.from(no):no}function qt(no,Nt,eo){var Wt=no;if(no&&!eo&&typeof no=="object"){if(utils$d.endsWith(Nt,"{}"))Nt=Cr?Nt:Nt.slice(0,-2),no=JSON.stringify(no);else if(utils$d.isArray(no)&&isFlatArray(no)||utils$d.isFileList(no)||utils$d.endsWith(Nt,"[]")&&(Wt=utils$d.toArray(no)))return Nt=removeBrackets(Nt),Wt.forEach(function(St,Ot){!utils$d.isUndefined(St)&&cr.append(nt===!0?renderKey([Nt],Ot,tt):nt===null?Nt:Nt+"[]",kt(St))}),!1}return isVisitable(no)?!0:(cr.append(renderKey(eo,Nt,tt),kt(no)),!1)}var ro=[],ht=Object.assign(predicates,{defaultVisitor:qt,convertValue:kt,isVisitable});function po(no,Nt){if(!utils$d.isUndefined(no)){if(ro.indexOf(no)!==-1)throw Error("Circular reference detected in "+Nt.join("."));ro.push(no),utils$d.forEach(no,function(eo,Wt){var St=!utils$d.isUndefined(eo)&&Vr.call(cr,eo,utils$d.isString(Wt)?Wt.trim():Wt,Nt,ht);St===!0&&po(eo,Nt?Nt.concat(Wt):[Wt])}),ro.pop()}}if(!utils$d.isObject(_e))throw new TypeError("data must be an object");return po(_e),cr}var toFormData_1=toFormData$3,toFormData$2=toFormData_1;function encode$1(_e){var cr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_e).replace(/[!'\(\)~]|%20|%00/g,function(gr){return cr[gr]})}function AxiosURLSearchParams$2(_e,cr){this._pairs=[],_e&&toFormData$2(_e,this,cr)}var prototype=AxiosURLSearchParams$2.prototype;prototype.append=function _e(cr,gr){this._pairs.push([cr,gr])},prototype.toString=function _e(cr){var gr=cr?function(Cr){return cr.call(this,Cr,encode$1)}:encode$1;return this._pairs.map(function(Cr){return gr(Cr[0])+"="+gr(Cr[1])},"").join("&")};var AxiosURLSearchParams_1=AxiosURLSearchParams$2,utils$c=utils$f,AxiosURLSearchParams$1=AxiosURLSearchParams_1;function encode(_e){return encodeURIComponent(_e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function _e(cr,gr,Cr){if(!gr)return cr;var Vr=cr.indexOf("#");Vr!==-1&&(cr=cr.slice(0,Vr));var tt=Cr&&Cr.encode||encode,nt=Cr&&Cr.serialize,st;return nt?st=nt(gr,Cr):st=utils$c.isURLSearchParams(gr)?gr.toString():new AxiosURLSearchParams$1(gr,Cr).toString(tt),st&&(cr+=(cr.indexOf("?")===-1?"?":"&")+st),cr},utils$b=utils$f;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function _e(cr,gr,Cr){return this.handlers.push({fulfilled:cr,rejected:gr,synchronous:Cr?Cr.synchronous:!1,runWhen:Cr?Cr.runWhen:null}),this.handlers.length-1},InterceptorManager$1.prototype.eject=function _e(cr){this.handlers[cr]&&(this.handlers[cr]=null)},InterceptorManager$1.prototype.clear=function _e(){this.handlers&&(this.handlers=[])},InterceptorManager$1.prototype.forEach=function _e(cr){utils$b.forEach(this.handlers,function(gr){gr!==null&&cr(gr)})};var InterceptorManager_1=InterceptorManager$1,utils$a=utils$f,normalizeHeaderName$2=function _e(cr,gr){utils$a.forEach(cr,function(Cr,Vr){Vr!==gr&&Vr.toUpperCase()===gr.toUpperCase()&&(cr[gr]=Cr,delete cr[Vr])})},transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AxiosURLSearchParams=AxiosURLSearchParams_1,URLSearchParams_1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData_1=FormData,browser={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_1,FormData:FormData_1,Blob},protocols:["http","https","file","blob","url","data"]},platform$2=browser,utils$9=utils$f,toFormData$1=toFormData_1,platform$1=platform$2,toURLEncodedForm$1=function _e(cr,gr){return toFormData$1(cr,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(Cr,Vr,tt,nt){return platform$1.isNode&&utils$9.isBuffer(Cr)?(this.append(Vr,Cr.toString("base64")),!1):nt.defaultVisitor.apply(this,arguments)}},gr))},utils$8=utils$f;function parsePropPath(_e){return utils$8.matchAll(/\w+|\[(\w*)]/g,_e).map(function(cr){return cr[0]==="[]"?"":cr[1]||cr[0]})}function arrayToObject(_e){var cr={},gr=Object.keys(_e),Cr,Vr=gr.length,tt;for(Cr=0;Cr=Cr.length;if(st=!st&&utils$8.isArray(tt)?tt.length:st,kt)return utils$8.hasOwnProperty(tt,st)?tt[st]=[tt[st],Vr]:tt[st]=Vr,!dt;(!tt[st]||!utils$8.isObject(tt[st]))&&(tt[st]=[]);var qt=cr(Cr,Vr,tt[st],nt);return qt&&utils$8.isArray(tt[st])&&(tt[st]=arrayToObject(tt[st])),!dt}if(utils$8.isFormData(_e)&&utils$8.isFunction(_e.entries)){var gr={};return utils$8.forEachEntry(_e,function(Cr,Vr){cr(parsePropPath(Cr),Vr,gr,0)}),gr}return null}var formDataToJSON_1=formDataToJSON$2,settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var _e=AxiosError_1;return settle=function(cr,gr,Cr){var Vr=Cr.config.validateStatus;!Cr.status||!Vr||Vr(Cr.status)?cr(Cr):gr(new _e("Request failed with status code "+Cr.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(Cr.status/100)-4],Cr.config,Cr.request,Cr))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var _e=utils$f;return cookies=_e.isStandardBrowserEnv()?function(){return{write:function(cr,gr,Cr,Vr,tt,nt){var st=[];st.push(cr+"="+encodeURIComponent(gr)),_e.isNumber(Cr)&&st.push("expires="+new Date(Cr).toGMTString()),_e.isString(Vr)&&st.push("path="+Vr),_e.isString(tt)&&st.push("domain="+tt),nt===!0&&st.push("secure"),document.cookie=st.join("; ")},read:function(cr){var gr=document.cookie.match(new RegExp("(^|;\\s*)("+cr+")=([^;]*)"));return gr?decodeURIComponent(gr[3]):null},remove:function(cr){this.write(cr,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL$1=function _e(cr){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(cr)},combineURLs$1=function _e(cr,gr){return gr?cr.replace(/\/+$/,"")+"/"+gr.replace(/^\/+/,""):cr},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function _e(cr,gr){return cr&&!isAbsoluteURL(gr)?combineURLs(cr,gr):gr},parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var _e=utils$f,cr=["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=function(gr){var Cr={},Vr,tt,nt;return gr&&_e.forEach(gr.split(` +`),function(st){if(nt=st.indexOf(":"),Vr=_e.trim(st.substr(0,nt)).toLowerCase(),tt=_e.trim(st.substr(nt+1)),Vr){if(Cr[Vr]&&cr.indexOf(Vr)>=0)return;Vr==="set-cookie"?Cr[Vr]=(Cr[Vr]?Cr[Vr]:[]).concat([tt]):Cr[Vr]=Cr[Vr]?Cr[Vr]+", "+tt:tt}}),Cr},parseHeaders$1}var isURLSameOrigin$1,hasRequiredIsURLSameOrigin$1;function requireIsURLSameOrigin$1(){if(hasRequiredIsURLSameOrigin$1)return isURLSameOrigin$1;hasRequiredIsURLSameOrigin$1=1;var _e=utils$r;return isURLSameOrigin$1=_e.isStandardBrowserEnv()?function(){var cr=/(msie|trident)/i.test(navigator.userAgent),gr=document.createElement("a"),Cr;function Vr(tt){var nt=tt;return cr&&(gr.setAttribute("href",nt),nt=gr.href),gr.setAttribute("href",nt),{href:gr.href,protocol:gr.protocol?gr.protocol.replace(/:$/,""):"",host:gr.host,search:gr.search?gr.search.replace(/^\?/,""):"",hash:gr.hash?gr.hash.replace(/^#/,""):"",hostname:gr.hostname,port:gr.port,pathname:gr.pathname.charAt(0)==="/"?gr.pathname:"/"+gr.pathname}}return Cr=Vr(window.location.href),function(tt){var nt=_e.isString(tt)?Vr(tt):tt;return nt.protocol===Cr.protocol&&nt.host===Cr.host}}():function(){return function(){return!0}}(),isURLSameOrigin$1}var xhr$1,hasRequiredXhr$1;function requireXhr$1(){if(hasRequiredXhr$1)return xhr$1;hasRequiredXhr$1=1;var _e=utils$r,cr=requireSettle$1(),gr=requireCookies$1(),Cr=buildURL$3,Vr=requireBuildFullPath(),tt=requireParseHeaders$1(),nt=requireIsURLSameOrigin$1(),st=requireCreateError();return xhr$1=function(dt){return new Promise(function(kt,qt){var ro=dt.data,ht=dt.headers,po=dt.responseType;_e.isFormData(ro)&&delete ht["Content-Type"];var no=new XMLHttpRequest;if(dt.auth){var Nt=dt.auth.username||"",eo=dt.auth.password?unescape(encodeURIComponent(dt.auth.password)):"";ht.Authorization="Basic "+btoa(Nt+":"+eo)}var Wt=Vr(dt.baseURL,dt.url);no.open(dt.method.toUpperCase(),Cr(Wt,dt.params,dt.paramsSerializer),!0),no.timeout=dt.timeout;function St(){if(no){var uo="getAllResponseHeaders"in no?tt(no.getAllResponseHeaders()):null,go=!po||po==="text"||po==="json"?no.responseText:no.response,bo={data:go,status:no.status,statusText:no.statusText,headers:uo,config:dt,request:no};cr(kt,qt,bo),no=null}}if("onloadend"in no?no.onloadend=St:no.onreadystatechange=function(){!no||no.readyState!==4||no.status===0&&!(no.responseURL&&no.responseURL.indexOf("file:")===0)||setTimeout(St)},no.onabort=function(){no&&(qt(st("Request aborted",dt,"ECONNABORTED",no)),no=null)},no.onerror=function(){qt(st("Network Error",dt,null,no)),no=null},no.ontimeout=function(){var uo="timeout of "+dt.timeout+"ms exceeded";dt.timeoutErrorMessage&&(uo=dt.timeoutErrorMessage),qt(st(uo,dt,dt.transitional&&dt.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",no)),no=null},_e.isStandardBrowserEnv()){var Ot=(dt.withCredentials||nt(Wt))&&dt.xsrfCookieName?gr.read(dt.xsrfCookieName):void 0;Ot&&(ht[dt.xsrfHeaderName]=Ot)}"setRequestHeader"in no&&_e.forEach(ht,function(uo,go){typeof ro>"u"&&go.toLowerCase()==="content-type"?delete ht[go]:no.setRequestHeader(go,uo)}),_e.isUndefined(dt.withCredentials)||(no.withCredentials=!!dt.withCredentials),po&&po!=="json"&&(no.responseType=dt.responseType),typeof dt.onDownloadProgress=="function"&&no.addEventListener("progress",dt.onDownloadProgress),typeof dt.onUploadProgress=="function"&&no.upload&&no.upload.addEventListener("progress",dt.onUploadProgress),dt.cancelToken&&dt.cancelToken.promise.then(function(uo){no&&(no.abort(),qt(uo),no=null)}),ro||(ro=null),no.send(ro)})},xhr$1}var utils$n=utils$r,normalizeHeaderName$3=normalizeHeaderName$4,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE$1={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset$1(_e,cr){!utils$n.isUndefined(_e)&&utils$n.isUndefined(_e["Content-Type"])&&(_e["Content-Type"]=cr)}function getDefaultAdapter$1(){var _e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(_e=requireXhr$1()),_e}function stringifySafely$1(_e,cr,gr){if(utils$n.isString(_e))try{return(cr||JSON.parse)(_e),utils$n.trim(_e)}catch(Cr){if(Cr.name!=="SyntaxError")throw Cr}return(0,JSON.stringify)(_e)}var defaults$9={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter$1(),transformRequest:[function _e(cr,gr){return normalizeHeaderName$3(gr,"Accept"),normalizeHeaderName$3(gr,"Content-Type"),utils$n.isFormData(cr)||utils$n.isArrayBuffer(cr)||utils$n.isBuffer(cr)||utils$n.isStream(cr)||utils$n.isFile(cr)||utils$n.isBlob(cr)?cr:utils$n.isArrayBufferView(cr)?cr.buffer:utils$n.isURLSearchParams(cr)?(setContentTypeIfUnset$1(gr,"application/x-www-form-urlencoded;charset=utf-8"),cr.toString()):utils$n.isObject(cr)||gr&&gr["Content-Type"]==="application/json"?(setContentTypeIfUnset$1(gr,"application/json"),stringifySafely$1(cr)):cr}],transformResponse:[function _e(cr){var gr=this.transitional,Cr=gr&&gr.silentJSONParsing,Vr=gr&&gr.forcedJSONParsing,tt=!Cr&&this.responseType==="json";if(tt||Vr&&utils$n.isString(cr)&&cr.length)try{return JSON.parse(cr)}catch(nt){if(tt)throw nt.name==="SyntaxError"?enhanceError(nt,this,"E_JSON_PARSE"):nt}return cr}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function _e(cr){return cr>=200&&cr<300}};defaults$9.headers={common:{Accept:"application/json, text/plain, */*"}},utils$n.forEach(["delete","get","head"],function _e(cr){defaults$9.headers[cr]={}}),utils$n.forEach(["post","put","patch"],function _e(cr){defaults$9.headers[cr]=utils$n.merge(DEFAULT_CONTENT_TYPE$1)});var defaults_1$1=defaults$9,utils$m=utils$r,defaults$8=defaults_1$1,transformData$3=function _e(cr,gr,Cr){var Vr=this||defaults$8;return utils$m.forEach(Cr,function(tt){cr=tt.call(Vr,cr,gr)}),cr},isCancel$3,hasRequiredIsCancel$1;function requireIsCancel$1(){return hasRequiredIsCancel$1||(hasRequiredIsCancel$1=1,isCancel$3=function(_e){return!!(_e&&_e.__CANCEL__)}),isCancel$3}var utils$l=utils$r,transformData$2=transformData$3,isCancel$2=requireIsCancel$1(),defaults$7=defaults_1$1;function throwIfCancellationRequested$1(_e){_e.cancelToken&&_e.cancelToken.throwIfRequested()}var dispatchRequest$3=function _e(cr){throwIfCancellationRequested$1(cr),cr.headers=cr.headers||{},cr.data=transformData$2.call(cr,cr.data,cr.headers,cr.transformRequest),cr.headers=utils$l.merge(cr.headers.common||{},cr.headers[cr.method]||{},cr.headers),utils$l.forEach(["delete","get","head","post","put","patch","common"],function(Cr){delete cr.headers[Cr]});var gr=cr.adapter||defaults$7.adapter;return gr(cr).then(function(Cr){return throwIfCancellationRequested$1(cr),Cr.data=transformData$2.call(cr,Cr.data,Cr.headers,cr.transformResponse),Cr},function(Cr){return isCancel$2(Cr)||(throwIfCancellationRequested$1(cr),Cr&&Cr.response&&(Cr.response.data=transformData$2.call(cr,Cr.response.data,Cr.response.headers,cr.transformResponse))),Promise.reject(Cr)})},utils$k=utils$r,mergeConfig$6=function _e(cr,gr){gr=gr||{};var Cr={},Vr=["url","method","data"],tt=["headers","auth","proxy","params"],nt=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],st=["validateStatus"];function dt(ht,po){return utils$k.isPlainObject(ht)&&utils$k.isPlainObject(po)?utils$k.merge(ht,po):utils$k.isPlainObject(po)?utils$k.merge({},po):utils$k.isArray(po)?po.slice():po}function kt(ht){utils$k.isUndefined(gr[ht])?utils$k.isUndefined(cr[ht])||(Cr[ht]=dt(void 0,cr[ht])):Cr[ht]=dt(cr[ht],gr[ht])}utils$k.forEach(Vr,function(ht){utils$k.isUndefined(gr[ht])||(Cr[ht]=dt(void 0,gr[ht]))}),utils$k.forEach(tt,kt),utils$k.forEach(nt,function(ht){utils$k.isUndefined(gr[ht])?utils$k.isUndefined(cr[ht])||(Cr[ht]=dt(void 0,cr[ht])):Cr[ht]=dt(void 0,gr[ht])}),utils$k.forEach(st,function(ht){ht in gr?Cr[ht]=dt(cr[ht],gr[ht]):ht in cr&&(Cr[ht]=dt(void 0,cr[ht]))});var qt=Vr.concat(tt).concat(nt).concat(st),ro=Object.keys(cr).concat(Object.keys(gr)).filter(function(ht){return qt.indexOf(ht)===-1});return utils$k.forEach(ro,kt),Cr};const name="axios",version="0.21.4",description="Promise based HTTP client for the browser and node.js",main$1="index.js",scripts={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={type:"git",url:"https://github.com/axios/axios.git"},keywords=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={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$3={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0$1={name,version,description,main:main$1,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,browser:browser$3,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0$1,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(_e,cr){validators$3[_e]=function(gr){return typeof gr===_e||"a"+(cr<1?"n ":" ")+_e}});var deprecatedWarnings$1={},currentVerArr=pkg.version.split(".");function isOlderVersion(_e,cr){for(var gr=cr?cr.split("."):currentVerArr,Cr=_e.split("."),Vr=0;Vr<3;Vr++){if(gr[Vr]>Cr[Vr])return!0;if(gr[Vr]0;){var tt=Cr[Vr],nt=cr[tt];if(nt){var st=_e[tt],dt=st===void 0||nt(st,tt,_e);if(dt!==!0)throw new TypeError("option "+tt+" must be "+dt);continue}if(gr!==!0)throw Error("Unknown option "+tt)}}var validator$3={isOlderVersion,assertOptions:assertOptions$1,validators:validators$3},utils$j=utils$r,buildURL$2=buildURL$3,InterceptorManager$2=InterceptorManager_1$1,dispatchRequest$2=dispatchRequest$3,mergeConfig$5=mergeConfig$6,validator$2=validator$3,validators$2=validator$2.validators;function Axios$3(_e){this.defaults=_e,this.interceptors={request:new InterceptorManager$2,response:new InterceptorManager$2}}Axios$3.prototype.request=function _e(cr){typeof cr=="string"?(cr=arguments[1]||{},cr.url=arguments[0]):cr=cr||{},cr=mergeConfig$5(this.defaults,cr),cr.method?cr.method=cr.method.toLowerCase():this.defaults.method?cr.method=this.defaults.method.toLowerCase():cr.method="get";var gr=cr.transitional;gr!==void 0&&validator$2.assertOptions(gr,{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 Cr=[],Vr=!0;this.interceptors.request.forEach(function(ro){typeof ro.runWhen=="function"&&ro.runWhen(cr)===!1||(Vr=Vr&&ro.synchronous,Cr.unshift(ro.fulfilled,ro.rejected))});var tt=[];this.interceptors.response.forEach(function(ro){tt.push(ro.fulfilled,ro.rejected)});var nt;if(!Vr){var st=[dispatchRequest$2,void 0];for(Array.prototype.unshift.apply(st,Cr),st=st.concat(tt),nt=Promise.resolve(cr);st.length;)nt=nt.then(st.shift(),st.shift());return nt}for(var dt=cr;Cr.length;){var kt=Cr.shift(),qt=Cr.shift();try{dt=kt(dt)}catch(ro){qt(ro);break}}try{nt=dispatchRequest$2(dt)}catch(ro){return Promise.reject(ro)}for(;tt.length;)nt=nt.then(tt.shift(),tt.shift());return nt},Axios$3.prototype.getUri=function _e(cr){return cr=mergeConfig$5(this.defaults,cr),buildURL$2(cr.url,cr.params,cr.paramsSerializer).replace(/^\?/,"")},utils$j.forEach(["delete","get","head","options"],function _e(cr){Axios$3.prototype[cr]=function(gr,Cr){return this.request(mergeConfig$5(Cr||{},{method:cr,url:gr,data:(Cr||{}).data}))}}),utils$j.forEach(["post","put","patch"],function _e(cr){Axios$3.prototype[cr]=function(gr,Cr,Vr){return this.request(mergeConfig$5(Vr||{},{method:cr,url:gr,data:Cr}))}});var Axios_1$1=Axios$3,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function _e(cr){this.message=cr}return _e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},_e.prototype.__CANCEL__=!0,Cancel_1=_e,Cancel_1}var CancelToken_1$1,hasRequiredCancelToken$1;function requireCancelToken$1(){if(hasRequiredCancelToken$1)return CancelToken_1$1;hasRequiredCancelToken$1=1;var _e=requireCancel();function cr(gr){if(typeof gr!="function")throw new TypeError("executor must be a function.");var Cr;this.promise=new Promise(function(tt){Cr=tt});var Vr=this;gr(function(tt){Vr.reason||(Vr.reason=new _e(tt),Cr(Vr.reason))})}return cr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},cr.source=function(){var gr,Cr=new cr(function(Vr){gr=Vr});return{token:Cr,cancel:gr}},CancelToken_1$1=cr,CancelToken_1$1}var spread$1,hasRequiredSpread$1;function requireSpread$1(){return hasRequiredSpread$1||(hasRequiredSpread$1=1,spread$1=function(_e){return function(cr){return _e.apply(null,cr)}}),spread$1}var isAxiosError$1,hasRequiredIsAxiosError$1;function requireIsAxiosError$1(){return hasRequiredIsAxiosError$1||(hasRequiredIsAxiosError$1=1,isAxiosError$1=function(_e){return typeof _e=="object"&&_e.isAxiosError===!0}),isAxiosError$1}var utils$i=utils$r,bind$3=bind$5,Axios$2=Axios_1$1,mergeConfig$4=mergeConfig$6,defaults$6=defaults_1$1;function createInstance$1(_e){var cr=new Axios$2(_e),gr=bind$3(Axios$2.prototype.request,cr);return utils$i.extend(gr,Axios$2.prototype,cr),utils$i.extend(gr,cr),gr}var axios$5=createInstance$1(defaults$6);axios$5.Axios=Axios$2,axios$5.create=function _e(cr){return createInstance$1(mergeConfig$4(axios$5.defaults,cr))},axios$5.Cancel=requireCancel(),axios$5.CancelToken=requireCancelToken$1(),axios$5.isCancel=requireIsCancel$1(),axios$5.all=function _e(cr){return Promise.all(cr)},axios$5.spread=requireSpread$1(),axios$5.isAxiosError=requireIsAxiosError$1(),axios$6.exports=axios$5,axios$6.exports.default=axios$5;var axiosExports$1=axios$6.exports,axios$4=axiosExports$1,__importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(http$1,"__esModule",{value:!0}),http$1.http=void 0;const axios_1=__importDefault$6(axios$4);function filterBadStatus(_e){if(_e.status>=400)throw new Error(`Bad status on response: ${_e.status}`);return _e}function isExperimental(_e){return _e.toString().includes("emitExperimentalWarning")}async function http(_e,cr,gr,Cr){if(typeof fetch=="function"&&!isExperimental(fetch)){const Vr={method:_e,body:Cr?JSON.stringify(Cr):void 0,headers:{"Content-Type":"application/json",...gr}};return fetch(cr,Vr).then(filterBadStatus).then(tt=>tt.json())}else return axios_1.default.request({url:cr,method:_e,data:Cr,headers:gr}).then(Vr=>Vr.data)}http$1.http=http;var rpcclient={};Object.defineProperty(rpcclient,"__esModule",{value:!0}),rpcclient.hasProtocol=rpcclient.instanceOfRpcStreamingClient=void 0;function instanceOfRpcStreamingClient(_e){return typeof _e.listen=="function"}rpcclient.instanceOfRpcStreamingClient=instanceOfRpcStreamingClient;function hasProtocol(_e){return _e.search("://")!==-1}rpcclient.hasProtocol=hasProtocol,Object.defineProperty(httpbatchclient,"__esModule",{value:!0}),httpbatchclient.HttpBatchClient=void 0;const json_rpc_1$2=build$2,http_1$1=http$1,rpcclient_1$2=rpcclient,defaultHttpBatchClientOptions={dispatchInterval:20,batchSizeLimit:20};class HttpBatchClient{constructor(cr,gr={}){this.queue=[],this.options={batchSizeLimit:gr.batchSizeLimit??defaultHttpBatchClientOptions.batchSizeLimit,dispatchInterval:gr.dispatchInterval??defaultHttpBatchClientOptions.dispatchInterval},typeof cr=="string"?this.url=(0,rpcclient_1$2.hasProtocol)(cr)?cr:"http://"+cr:(this.url=cr.url,this.headers=cr.headers),this.timer=setInterval(()=>this.tick(),gr.dispatchInterval),this.validate()}disconnect(){this.timer&&clearInterval(this.timer),this.timer=void 0}async execute(cr){return new Promise((gr,Cr)=>{this.queue.push({request:cr,resolve:gr,reject:Cr}),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 cr=this.queue.splice(0,this.options.batchSizeLimit);if(!cr.length)return;const gr=cr.map(Vr=>Vr.request),Cr=gr.map(Vr=>Vr.id);(0,http_1$1.http)("POST",this.url,this.headers,gr).then(Vr=>{(Array.isArray(Vr)?Vr:[Vr]).forEach(tt=>{const nt=cr.find(qt=>qt.request.id===tt.id);if(!nt)return;const{reject:st,resolve:dt}=nt,kt=(0,json_rpc_1$2.parseJsonRpcResponse)(tt);(0,json_rpc_1$2.isJsonRpcErrorResponse)(kt)?st(new Error(JSON.stringify(kt.error))):dt(kt)})},Vr=>{for(const tt of Cr){const nt=cr.find(st=>st.request.id===tt);if(!nt)return;nt.reject(Vr)}})}}httpbatchclient.HttpBatchClient=HttpBatchClient;var httpclient={};Object.defineProperty(httpclient,"__esModule",{value:!0}),httpclient.HttpClient=void 0;const json_rpc_1$1=build$2,http_1=http$1,rpcclient_1$1=rpcclient;class HttpClient{constructor(cr){typeof cr=="string"?this.url=(0,rpcclient_1$1.hasProtocol)(cr)?cr:"http://"+cr:(this.url=cr.url,this.headers=cr.headers)}disconnect(){}async execute(cr){const gr=(0,json_rpc_1$1.parseJsonRpcResponse)(await(0,http_1.http)("POST",this.url,this.headers,cr));if((0,json_rpc_1$1.isJsonRpcErrorResponse)(gr))throw new Error(JSON.stringify(gr.error));return gr}}httpclient.HttpClient=HttpClient;var websocketclient={},build$1={},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$2=ws,__importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(socketwrapper,"__esModule",{value:!0}),socketwrapper.SocketWrapper=void 0;const isomorphic_ws_1=__importDefault$5(browser$2);function environmentIsNodeJs(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}class SocketWrapper{constructor(cr,gr,Cr,Vr,tt,nt=1e4){this.closed=!1,this.connected=new Promise((st,dt)=>{this.connectedResolver=st,this.connectedRejecter=dt}),this.url=cr,this.messageHandler=gr,this.errorHandler=Cr,this.openHandler=Vr,this.closeHandler=tt,this.timeout=nt}connect(){const cr=new isomorphic_ws_1.default(this.url);cr.onerror=Cr=>{this.clearTimeout(),this.errorHandler&&this.errorHandler(Cr)},cr.onmessage=Cr=>{this.messageHandler({type:Cr.type,data:Cr.data})},cr.onopen=Cr=>{this.clearTimeout(),this.connectedResolver(),this.openHandler&&this.openHandler()},cr.onclose=Cr=>{this.closed=!0,this.closeHandler&&this.closeHandler(Cr)};const gr=Date.now();this.timeoutId=setTimeout(()=>{cr.onmessage=()=>0,cr.onerror=()=>0,cr.onopen=()=>0,cr.onclose=()=>0,cr.close(),this.socket=void 0;const Cr=Math.floor(Date.now()-gr);this.connectedRejecter(`Connection attempt timed out after ${Cr} ms`)},this.timeout),this.socket=cr}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(cr){return new Promise((gr,Cr)=>{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(cr,Vr=>Vr?Cr(Vr):gr()):(this.socket.send(cr),gr())})}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(cr,gr=1e4){this.socket=new socketwrapper_1.SocketWrapper(cr,Vr=>{this.eventProducerListener&&this.eventProducerListener.next(Vr)},Vr=>{this.eventProducerListener&&this.eventProducerListener.error(Vr)},()=>{},Vr=>{this.eventProducerListener&&(Vr.wasClean?this.eventProducerListener.complete():this.eventProducerListener.error("Socket was closed unclean"))},gr),this.connected=this.socket.connected;const Cr={start:Vr=>this.eventProducerListener=Vr,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$2.Stream.create(Cr)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}async send(cr){return this.socket.send(cr)}}streamingsocket.StreamingSocket=StreamingSocket,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueueingStreamingSocket=_e.ConnectionStatus=void 0;const cr=build$4,gr=xstream,Cr=streamingsocket;var Vr;(function(nt){nt[nt.Unconnected=0]="Unconnected",nt[nt.Connecting=1]="Connecting",nt[nt.Connected=2]="Connected",nt[nt.Disconnected=3]="Disconnected"})(Vr=_e.ConnectionStatus||(_e.ConnectionStatus={}));class tt{constructor(st,dt=1e4,kt){this.queue=[],this.isProcessingQueue=!1,this.url=st,this.timeout=dt,this.reconnectedHandler=kt;const qt={start:ro=>this.eventProducerListener=ro,stop:()=>this.eventProducerListener=void 0};this.events=gr.Stream.create(qt),this.connectionStatusProducer=new cr.DefaultValueProducer(Vr.Unconnected),this.connectionStatus=new cr.ValueAndUpdates(this.connectionStatusProducer),this.socket=new Cr.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:ro=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(ro)},error:()=>this.connectionStatusProducer.update(Vr.Disconnected)})}connect(){this.connectionStatusProducer.update(Vr.Connecting),this.socket.connected.then(async()=>(this.connectionStatusProducer.update(Vr.Connected),this.processQueue()),()=>this.connectionStatusProducer.update(Vr.Disconnected)),this.socket.connect()}disconnect(){this.connectionStatusProducer.update(Vr.Disconnected),this.socket.disconnect()}reconnect(){this.socket=new Cr.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:st=>{if(!this.eventProducerListener)throw new Error("No event producer listener set");this.eventProducerListener.next(st)},error:()=>this.connectionStatusProducer.update(Vr.Disconnected)}),this.socket.connected.then(()=>{this.reconnectedHandler&&this.reconnectedHandler()}),this.connect()}getQueueLength(){return this.queue.length}queueRequest(st){this.queue.push(st),this.processQueue()}async processQueue(){if(this.isProcessingQueue||this.connectionStatus.value!==Vr.Connected)return;this.isProcessingQueue=!0;let st;for(;st=this.queue.shift();)try{await this.socket.send(st),this.isProcessingQueue=!1}catch{this.queue.unshift(st),this.isProcessingQueue=!1;return}}}_e.QueueingStreamingSocket=tt}(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(cr){return Math.min(2**cr*100,5e3)}constructor(cr,gr=1e4,Cr){this.unconnected=!0,this.disconnected=!1,this.timeoutIndex=0,this.reconnectTimeout=null;const Vr={start:tt=>this.eventProducerListener=tt,stop:()=>this.eventProducerListener=void 0};this.events=xstream_1$1.Stream.create(Vr),this.socket=new queueingstreamingsocket_1.QueueingStreamingSocket(cr,gr,Cr),this.socket.events.subscribe({next:tt=>{this.eventProducerListener&&this.eventProducerListener.next(tt)},error:tt=>{this.eventProducerListener&&this.eventProducerListener.error(tt)}}),this.connectionStatus=this.socket.connectionStatus,this.connectionStatus.updates.subscribe({next:tt=>{tt===queueingstreamingsocket_1.ConnectionStatus.Connected&&(this.timeoutIndex=0),tt===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(cr){if(this.disconnected)throw new Error("Cannot queue request: socket has disconnected");this.socket.queueRequest(cr)}}reconnectingsocket.ReconnectingSocket=ReconnectingSocket,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.StreamingSocket=_e.SocketWrapper=_e.ReconnectingSocket=_e.QueueingStreamingSocket=_e.ConnectionStatus=void 0;var cr=queueingstreamingsocket;Object.defineProperty(_e,"ConnectionStatus",{enumerable:!0,get:function(){return cr.ConnectionStatus}}),Object.defineProperty(_e,"QueueingStreamingSocket",{enumerable:!0,get:function(){return cr.QueueingStreamingSocket}});var gr=reconnectingsocket;Object.defineProperty(_e,"ReconnectingSocket",{enumerable:!0,get:function(){return gr.ReconnectingSocket}});var Cr=socketwrapper;Object.defineProperty(_e,"SocketWrapper",{enumerable:!0,get:function(){return Cr.SocketWrapper}});var Vr=streamingsocket;Object.defineProperty(_e,"StreamingSocket",{enumerable:!0,get:function(){return Vr.StreamingSocket}})}(build$1),Object.defineProperty(websocketclient,"__esModule",{value:!0}),websocketclient.WebsocketClient=void 0;const json_rpc_1=build$2,socket_1=build$1,stream_1=build$4,xstream_1=xstream,rpcclient_1=rpcclient;function defaultErrorHandler(_e){throw _e}function toJsonRpcResponse(_e){if(_e.type!=="message")throw new Error(`Unexcepted message type on websocket: ${_e.type}`);return(0,json_rpc_1.parseJsonRpcResponse)(JSON.parse(_e.data))}class RpcEventProducer{constructor(cr,gr){this.running=!1,this.subscriptions=[],this.request=cr,this.socket=gr}start(cr){if(this.running)throw Error("Already started. Please stop first before restarting.");this.running=!0,this.connectToClient(cr),this.socket.queueRequest(JSON.stringify(this.request))}stop(){this.running=!1;const cr={...this.request,method:"unsubscribe"};try{this.socket.queueRequest(JSON.stringify(cr))}catch(gr){if(!(gr instanceof Error&&gr.message.match(/socket has disconnected/i)))throw gr}}connectToClient(cr){const gr=this.socket.events.map(toJsonRpcResponse),Cr=gr.filter(nt=>nt.id===this.request.id).subscribe({next:nt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(nt)&&(this.closeSubscriptions(),cr.error(JSON.stringify(nt.error))),Cr.unsubscribe()}}),Vr=gr.filter(nt=>nt.id===this.request.id).subscribe({next:nt=>{(0,json_rpc_1.isJsonRpcErrorResponse)(nt)?(this.closeSubscriptions(),cr.error(JSON.stringify(nt.error))):cr.next(nt.result)}}),tt=gr.subscribe({error:nt=>{this.closeSubscriptions(),cr.error(nt)},complete:()=>{this.closeSubscriptions(),cr.complete()}});this.subscriptions.push(Cr,Vr,tt)}closeSubscriptions(){for(const cr of this.subscriptions)cr.unsubscribe();this.subscriptions=[]}}class WebsocketClient{constructor(cr,gr=defaultErrorHandler){this.subscriptionStreams=new Map;const Cr=cr.endsWith("/")?"websocket":"/websocket",Vr=(0,rpcclient_1.hasProtocol)(cr)?cr:"ws://"+cr;this.url=Vr+Cr,this.socket=new socket_1.ReconnectingSocket(this.url);const tt=this.socket.events.subscribe({error:nt=>{gr(nt),tt.unsubscribe()}});this.jsonRpcResponseStream=this.socket.events.map(toJsonRpcResponse),this.socket.connect()}async execute(cr){const gr=this.responseForRequestId(cr.id);this.socket.queueRequest(JSON.stringify(cr));const Cr=await gr;if((0,json_rpc_1.isJsonRpcErrorResponse)(Cr))throw new Error(JSON.stringify(Cr.error));return Cr}listen(cr){if(cr.method!=="subscribe")throw new Error('Request method must be "subscribe" to start event listening');const gr=cr.params.query;if(typeof gr!="string")throw new Error("request.params.query must be a string");if(!this.subscriptionStreams.has(gr)){const Cr=new RpcEventProducer(cr,this.socket),Vr=xstream_1.Stream.create(Cr);this.subscriptionStreams.set(gr,Vr)}return this.subscriptionStreams.get(gr).filter(Cr=>Cr.query!==void 0)}async connected(){await this.socket.connectionStatus.waitFor(socket_1.ConnectionStatus.Connected)}disconnect(){this.socket.disconnect()}async responseForRequestId(cr){return(0,stream_1.firstEvent)(this.jsonRpcResponseStream.filter(gr=>gr.id===cr))}}websocketclient.WebsocketClient=WebsocketClient,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WebsocketClient=_e.instanceOfRpcStreamingClient=_e.HttpClient=_e.HttpBatchClient=void 0;var cr=httpbatchclient;Object.defineProperty(_e,"HttpBatchClient",{enumerable:!0,get:function(){return cr.HttpBatchClient}});var gr=httpclient;Object.defineProperty(_e,"HttpClient",{enumerable:!0,get:function(){return gr.HttpClient}});var Cr=rpcclient;Object.defineProperty(_e,"instanceOfRpcStreamingClient",{enumerable:!0,get:function(){return Cr.instanceOfRpcStreamingClient}});var Vr=websocketclient;Object.defineProperty(_e,"WebsocketClient",{enumerable:!0,get:function(){return Vr.WebsocketClient}})}(rpcclients);var tendermint34={},requests$7={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.buildQuery=_e.SubscriptionEventType=_e.Method=void 0,function(gr){gr.AbciInfo="abci_info",gr.AbciQuery="abci_query",gr.Block="block",gr.Blockchain="blockchain",gr.BlockResults="block_results",gr.BlockSearch="block_search",gr.BroadcastTxAsync="broadcast_tx_async",gr.BroadcastTxSync="broadcast_tx_sync",gr.BroadcastTxCommit="broadcast_tx_commit",gr.Commit="commit",gr.Genesis="genesis",gr.Health="health",gr.NumUnconfirmedTxs="num_unconfirmed_txs",gr.Status="status",gr.Subscribe="subscribe",gr.Tx="tx",gr.TxSearch="tx_search",gr.Validators="validators",gr.Unsubscribe="unsubscribe"}(_e.Method||(_e.Method={})),function(gr){gr.NewBlock="NewBlock",gr.NewBlockHeader="NewBlockHeader",gr.Tx="Tx"}(_e.SubscriptionEventType||(_e.SubscriptionEventType={}));function cr(gr){const Cr=(gr.tags?gr.tags:[]).map(tt=>`${tt.key}='${tt.value}'`),Vr=gr.raw?[gr.raw]:[];return[...Cr,...Vr].join(" AND ")}_e.buildQuery=cr})(requests$7);var responses$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.VoteType=_e.broadcastTxCommitSuccess=_e.broadcastTxSyncSuccess=void 0;function cr(Cr){return Cr.code===0}_e.broadcastTxSyncSuccess=cr;function gr(Cr){return Cr.checkTx.code===0&&!!Cr.deliverTx&&Cr.deliverTx.code===0}_e.broadcastTxCommitSuccess=gr,function(Cr){Cr[Cr.PreVote=1]="PreVote",Cr[Cr.PreCommit=2]="PreCommit"}(_e.VoteType||(_e.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(_e,cr){const gr=cr?{...cr}:{};return{jsonrpc:"2.0",id:randomId(),method:_e,params:gr}}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$c=build$c;function assertSet$1(_e){if(_e===void 0)throw new Error("Value must not be undefined");if(_e===null)throw new Error("Value must not be null");return _e}encodings$1.assertSet=assertSet$1;function assertBoolean$1(_e){if(assertSet$1(_e),typeof _e!="boolean")throw new Error("Value must be a boolean");return _e}encodings$1.assertBoolean=assertBoolean$1;function assertString$1(_e){if(assertSet$1(_e),typeof _e!="string")throw new Error("Value must be a string");return _e}encodings$1.assertString=assertString$1;function assertNumber$1(_e){if(assertSet$1(_e),typeof _e!="number")throw new Error("Value must be a number");return _e}encodings$1.assertNumber=assertNumber$1;function assertArray$1(_e){if(assertSet$1(_e),!Array.isArray(_e))throw new Error("Value must be a an array");return _e}encodings$1.assertArray=assertArray$1;function assertObject$1(_e){if(assertSet$1(_e),typeof _e!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(_e)!=="[object Object]")throw new Error("Value must be a simple object");return _e}encodings$1.assertObject=assertObject$1;function assertNotEmpty$1(_e){if(assertSet$1(_e),typeof _e=="number"&&_e===0)throw new Error("must provide a non-zero value");if(_e.length===0)throw new Error("must provide a non-empty value");return _e}encodings$1.assertNotEmpty=assertNotEmpty$1;function may$1(_e,cr){return cr==null?void 0:_e(cr)}encodings$1.may=may$1;function dictionaryToStringMap$1(_e){const cr=new Map;for(const gr of Object.keys(_e)){const Cr=_e[gr];if(typeof Cr!="string")throw new Error("Found dictionary value of type other than string");cr.set(gr,Cr)}return cr}encodings$1.dictionaryToStringMap=dictionaryToStringMap$1;function encodeString$2(_e){const cr=(0,encoding_1$c.toUtf8)(_e);return Uint8Array.from([cr.length,...cr])}encodings$1.encodeString=encodeString$2;function encodeUvarint$1(_e){return _e>=128?Uint8Array.from([_e&255|128,...encodeUvarint$1(_e>>7)]):Uint8Array.from([_e&255])}encodings$1.encodeUvarint=encodeUvarint$1;function encodeTime$1(_e){const cr=_e.getTime(),gr=Math.floor(cr/1e3),Cr=gr?[8,...encodeUvarint$1(gr)]:new Uint8Array,Vr=(_e.nanoseconds||0)+cr%1e3*1e6,tt=Vr?[16,...encodeUvarint$1(Vr)]:new Uint8Array;return Uint8Array.from([...Cr,...tt])}encodings$1.encodeTime=encodeTime$1;function encodeBytes$1(_e){if(_e.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return _e.length?Uint8Array.from([_e.length,..._e]):new Uint8Array}encodings$1.encodeBytes=encodeBytes$1;function encodeVersion$1(_e){const cr=_e.block?Uint8Array.from([8,...encodeUvarint$1(_e.block)]):new Uint8Array,gr=_e.app?Uint8Array.from([16,...encodeUvarint$1(_e.app)]):new Uint8Array;return Uint8Array.from([...cr,...gr])}encodings$1.encodeVersion=encodeVersion$1;function encodeBlockId$1(_e){return Uint8Array.from([10,_e.hash.length,..._e.hash,18,_e.parts.hash.length+4,8,_e.parts.total,18,_e.parts.hash.length,..._e.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$3=build$7,encodings_1$6=encodings$1;function hashTx$1(_e){return(0,crypto_1$3.sha256)(_e)}hasher$1.hashTx=hashTx$1;function getSplitPoint$1(_e){if(_e<1)throw new Error("Cannot split an empty tree");const cr=2**Math.floor(Math.log2(_e));return cr<_e?cr:cr/2}function hashLeaf$1(_e){const cr=new crypto_1$3.Sha256(Uint8Array.from([0]));return cr.update(_e),cr.digest()}function hashInner$1(_e,cr){const gr=new crypto_1$3.Sha256(Uint8Array.from([1]));return gr.update(_e),gr.update(cr),gr.digest()}function hashTree$1(_e){switch(_e.length){case 0:throw new Error("Cannot hash empty tree");case 1:return hashLeaf$1(_e[0]);default:{const cr=getSplitPoint$1(_e.length),gr=hashTree$1(_e.slice(0,cr)),Cr=hashTree$1(_e.slice(cr));return hashInner$1(gr,Cr)}}}function hashBlock$1(_e){if(!_e.lastBlockId)throw new Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");const cr=[(0,encodings_1$6.encodeVersion)(_e.version),(0,encodings_1$6.encodeString)(_e.chainId),(0,encodings_1$6.encodeUvarint)(_e.height),(0,encodings_1$6.encodeTime)(_e.time),(0,encodings_1$6.encodeBlockId)(_e.lastBlockId),(0,encodings_1$6.encodeBytes)(_e.lastCommitHash),(0,encodings_1$6.encodeBytes)(_e.dataHash),(0,encodings_1$6.encodeBytes)(_e.validatorsHash),(0,encodings_1$6.encodeBytes)(_e.nextValidatorsHash),(0,encodings_1$6.encodeBytes)(_e.consensusHash),(0,encodings_1$6.encodeBytes)(_e.appHash),(0,encodings_1$6.encodeBytes)(_e.lastResultsHash),(0,encodings_1$6.encodeBytes)(_e.evidenceHash),(0,encodings_1$6.encodeBytes)(_e.proposerAddress)];return hashTree$1(cr)}hasher$1.hashBlock=hashBlock$1;var requests$6={},inthelpers={};Object.defineProperty(inthelpers,"__esModule",{value:!0}),inthelpers.smallIntToApi=inthelpers.apiToBigInt=inthelpers.apiToSmallInt=void 0;const math_1$4=build$b,encodings_1$5=encodings$1;function apiToSmallInt(_e){return(typeof _e=="number"?new math_1$4.Int53(_e):math_1$4.Int53.fromString(_e)).toNumber()}inthelpers.apiToSmallInt=apiToSmallInt;function apiToBigInt(_e){if((0,encodings_1$5.assertString)(_e),!_e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return BigInt(_e)}inthelpers.apiToBigInt=apiToBigInt;function smallIntToApi(_e){return new math_1$4.Int53(_e).toString()}inthelpers.smallIntToApi=smallIntToApi;var __createBinding$4=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$4=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$4=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$4(cr,_e,gr);return __setModuleDefault$4(cr,_e),cr};Object.defineProperty(requests$6,"__esModule",{value:!0}),requests$6.Params=void 0;const encoding_1$b=build$c,inthelpers_1$3=inthelpers,jsonrpc_1$3=jsonrpc,encodings_1$4=encodings$1,requests$5=__importStar$4(requests$7);function encodeHeightParam$1(_e){return{height:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.height)}}function encodeBlockchainRequestParams$1(_e){return{minHeight:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.minHeight),maxHeight:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.maxHeight)}}function encodeBlockSearchParams$1(_e){return{query:_e.query,page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.page),per_page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeAbciQueryParams$1(_e){return{path:(0,encodings_1$4.assertNotEmpty)(_e.path),data:(0,encoding_1$b.toHex)(_e.data),height:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.height),prove:_e.prove}}function encodeBroadcastTxParams$1(_e){return{tx:(0,encoding_1$b.toBase64)((0,encodings_1$4.assertNotEmpty)(_e.tx))}}function encodeTxParams$1(_e){return{hash:(0,encoding_1$b.toBase64)((0,encodings_1$4.assertNotEmpty)(_e.hash)),prove:_e.prove}}function encodeTxSearchParams$1(_e){return{query:_e.query,prove:_e.prove,page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.page),per_page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeValidatorsParams$1(_e){return{height:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.height),page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.page),per_page:(0,encodings_1$4.may)(inthelpers_1$3.smallIntToApi,_e.per_page)}}let Params$1=class{static encodeAbciInfo(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeAbciQuery(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeAbciQueryParams$1(_e.params))}static encodeBlock(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeHeightParam$1(_e.params))}static encodeBlockchain(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeBlockchainRequestParams$1(_e.params))}static encodeBlockResults(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeHeightParam$1(_e.params))}static encodeBlockSearch(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeBlockSearchParams$1(_e.params))}static encodeBroadcastTx(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeBroadcastTxParams$1(_e.params))}static encodeCommit(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeHeightParam$1(_e.params))}static encodeGenesis(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeHealth(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeNumUnconfirmedTxs(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeStatus(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method)}static encodeSubscribe(_e){const cr={key:"tm.event",value:_e.query.type},gr=requests$5.buildQuery({tags:[cr],raw:_e.query.raw});return(0,jsonrpc_1$3.createJsonRpcRequest)("subscribe",{query:gr})}static encodeTx(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeTxParams$1(_e.params))}static encodeTxSearch(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeTxSearchParams$1(_e.params))}static encodeValidators(_e){return(0,jsonrpc_1$3.createJsonRpcRequest)(_e.method,encodeValidatorsParams$1(_e.params))}};requests$6.Params=Params$1;var responses$2={},types$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BlockIdFlag=void 0,function(cr){cr[cr.Unknown=0]="Unknown",cr[cr.Absent=1]="Absent",cr[cr.Commit=2]="Commit",cr[cr.Nil=3]="Nil",cr[cr.Unrecognized=-1]="Unrecognized"}(_e.BlockIdFlag||(_e.BlockIdFlag={}))})(types$2),Object.defineProperty(responses$2,"__esModule",{value:!0}),responses$2.Responses=responses$2.decodeValidatorInfo=responses$2.decodeValidatorGenesis=responses$2.decodeValidatorUpdate=responses$2.decodeEvent=void 0;const encoding_1$a=build$c,utils_1$6=build$6,dates_1$1=dates,inthelpers_1$2=inthelpers,types_1$3=types$2,encodings_1$3=encodings$1,hasher_1$3=hasher$1;function decodeAbciInfo$1(_e){return{data:_e.data,lastBlockHeight:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.last_block_height),lastBlockAppHash:(0,encodings_1$3.may)(encoding_1$a.fromBase64,_e.last_block_app_hash)}}function decodeQueryProof$1(_e){return{ops:_e.ops.map(cr=>({type:cr.type,key:(0,encoding_1$a.fromBase64)(cr.key),data:(0,encoding_1$a.fromBase64)(cr.data)}))}}function decodeAbciQuery$1(_e){return{key:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertString)(_e.key??"")),value:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertString)(_e.value??"")),proof:(0,encodings_1$3.may)(decodeQueryProof$1,_e.proofOps),height:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.height),code:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.code),codespace:(0,encodings_1$3.assertString)(_e.codespace??""),index:(0,encodings_1$3.may)(inthelpers_1$2.apiToSmallInt,_e.index),log:_e.log,info:(0,encodings_1$3.assertString)(_e.info??"")}}function decodeAttribute(_e){return{key:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.key)),value:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertString)(_e.value??""))}}function decodeAttributes$1(_e){return(0,encodings_1$3.assertArray)(_e).map(decodeAttribute)}function decodeEvent$1(_e){return{type:_e.type,attributes:_e.attributes?decodeAttributes$1(_e.attributes):[]}}responses$2.decodeEvent=decodeEvent$1;function decodeEvents$1(_e){return(0,encodings_1$3.assertArray)(_e).map(decodeEvent$1)}function decodeTxData$1(_e){return{code:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(_e.code??0)),codespace:_e.codespace,log:_e.log,data:(0,encodings_1$3.may)(encoding_1$a.fromBase64,_e.data),events:_e.events?decodeEvents$1(_e.events):[],gasWanted:(0,inthelpers_1$2.apiToSmallInt)(_e.gas_wanted??"0"),gasUsed:(0,inthelpers_1$2.apiToSmallInt)(_e.gas_used??"0")}}function decodePubkey$1(_e){if("Sum"in _e){const[[cr,gr]]=Object.entries(_e.Sum.value);return(0,utils_1$6.assert)(cr==="ed25519"||cr==="secp256k1",`unknown pubkey type: ${cr}`),{algorithm:cr,data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(gr))}}else switch(_e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.value))};default:throw new Error(`unknown pubkey type: ${_e.type}`)}}function decodeBlockParams$1(_e){return{maxBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_bytes)),maxGas:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_gas))}}function decodeEvidenceParams$1(_e){return{maxAgeNumBlocks:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.max_age_duration))}}function decodeConsensusParams$1(_e){return{block:decodeBlockParams$1((0,encodings_1$3.assertObject)(_e.block)),evidence:decodeEvidenceParams$1((0,encodings_1$3.assertObject)(_e.evidence))}}function decodeValidatorUpdate$1(_e){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)(_e.power??"0")}}responses$2.decodeValidatorUpdate=decodeValidatorUpdate$1;function decodeBlockResults$1(_e){return{height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),results:(_e.txs_results||[]).map(decodeTxData$1),validatorUpdates:(_e.validator_updates||[]).map(decodeValidatorUpdate$1),consensusUpdates:(0,encodings_1$3.may)(decodeConsensusParams$1,_e.consensus_param_updates),beginBlockEvents:decodeEvents$1(_e.begin_block_events||[]),endBlockEvents:decodeEvents$1(_e.end_block_events||[])}}function decodeBlockId$1(_e){return{hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash)),parts:{total:(0,encodings_1$3.assertNotEmpty)(_e.parts.total),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.parts.hash))}}}function decodeBlockVersion$1(_e){return{block:(0,inthelpers_1$2.apiToSmallInt)(_e.block),app:(0,inthelpers_1$2.apiToSmallInt)(_e.app??0)}}function decodeHeader$1(_e){return{version:decodeBlockVersion$1(_e.version),chainId:(0,encodings_1$3.assertNotEmpty)(_e.chain_id),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),time:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(_e.time)),lastBlockId:_e.last_block_id.hash?decodeBlockId$1(_e.last_block_id):null,lastCommitHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.last_commit_hash)),dataHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.data_hash)),validatorsHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.validators_hash)),nextValidatorsHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.next_validators_hash)),consensusHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.consensus_hash)),appHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.app_hash)),lastResultsHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.last_results_hash)),evidenceHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.evidence_hash)),proposerAddress:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.proposer_address))}}function decodeBlockMeta$1(_e){return{blockId:decodeBlockId$1(_e.block_id),blockSize:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.block_size)),header:decodeHeader$1(_e.header),numTxs:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.num_txs))}}function decodeBlockchain$1(_e){return{lastHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.last_height)),blockMetas:(0,encodings_1$3.assertArray)(_e.block_metas).map(decodeBlockMeta$1)}}function decodeBroadcastTxSync$1(_e){return{...decodeTxData$1(_e),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash))}}function decodeBroadcastTxCommit$1(_e){return{height:(0,inthelpers_1$2.apiToSmallInt)(_e.height),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash)),checkTx:decodeTxData$1((0,encodings_1$3.assertObject)(_e.check_tx)),deliverTx:(0,encodings_1$3.may)(decodeTxData$1,_e.deliver_tx)}}function decodeBlockIdFlag$1(_e){return(0,utils_1$6.assert)(_e in types_1$3.BlockIdFlag),_e}function decodeOptionalTime$1(_e){return _e&&!_e.startsWith("0001-01-01")?(0,dates_1$1.fromRfc3339WithNanoseconds)(_e):void 0}function decodeCommitSignature$1(_e){return{blockIdFlag:decodeBlockIdFlag$1(_e.block_id_flag),validatorAddress:_e.validator_address?(0,encoding_1$a.fromHex)(_e.validator_address):void 0,timestamp:decodeOptionalTime$1(_e.timestamp),signature:_e.signature?(0,encoding_1$a.fromBase64)(_e.signature):void 0}}function decodeCommit$1(_e){return{blockId:decodeBlockId$1((0,encodings_1$3.assertObject)(_e.block_id)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),round:(0,inthelpers_1$2.apiToSmallInt)(_e.round),signatures:(0,encodings_1$3.assertArray)(_e.signatures).map(decodeCommitSignature$1)}}function decodeCommitResponse$1(_e){return{canonical:(0,encodings_1$3.assertBoolean)(_e.canonical),header:decodeHeader$1(_e.signed_header.header),commit:decodeCommit$1(_e.signed_header.commit)}}function decodeValidatorGenesis$1(_e){return{address:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.address)),pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(_e.power))}}responses$2.decodeValidatorGenesis=decodeValidatorGenesis$1;function decodeGenesis$1(_e){return{genesisTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(_e.genesis_time)),chainId:(0,encodings_1$3.assertNotEmpty)(_e.chain_id),consensusParams:decodeConsensusParams$1(_e.consensus_params),validators:_e.validators?(0,encodings_1$3.assertArray)(_e.validators).map(decodeValidatorGenesis$1):[],appHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertSet)(_e.app_hash)),appState:_e.app_state}}function decodeValidatorInfo$1(_e){return{pubkey:decodePubkey$1((0,encodings_1$3.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1$2.apiToBigInt)((0,encodings_1$3.assertNotEmpty)(_e.voting_power)),address:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.address)),proposerPriority:_e.proposer_priority?(0,inthelpers_1$2.apiToSmallInt)(_e.proposer_priority):void 0}}responses$2.decodeValidatorInfo=decodeValidatorInfo$1;function decodeNodeInfo$1(_e){return{id:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.id)),listenAddr:(0,encodings_1$3.assertNotEmpty)(_e.listen_addr),network:(0,encodings_1$3.assertNotEmpty)(_e.network),version:(0,encodings_1$3.assertString)(_e.version),channels:(0,encodings_1$3.assertNotEmpty)(_e.channels),moniker:(0,encodings_1$3.assertNotEmpty)(_e.moniker),other:(0,encodings_1$3.dictionaryToStringMap)(_e.other),protocolVersion:{app:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.protocol_version.app)),block:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.protocol_version.block)),p2p:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.protocol_version.p2p))}}}function decodeSyncInfo$1(_e){const cr=_e.earliest_block_height?(0,inthelpers_1$2.apiToSmallInt)(_e.earliest_block_height):void 0,gr=_e.earliest_block_time?(0,dates_1$1.fromRfc3339WithNanoseconds)(_e.earliest_block_time):void 0;return{earliestAppHash:_e.earliest_app_hash?(0,encoding_1$a.fromHex)(_e.earliest_app_hash):void 0,earliestBlockHash:_e.earliest_block_hash?(0,encoding_1$a.fromHex)(_e.earliest_block_hash):void 0,earliestBlockHeight:cr||void 0,earliestBlockTime:gr!=null&&gr.getTime()?gr:void 0,latestBlockHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.latest_block_hash)),latestAppHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.latest_app_hash)),latestBlockTime:(0,dates_1$1.fromRfc3339WithNanoseconds)((0,encodings_1$3.assertNotEmpty)(_e.latest_block_time)),latestBlockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.latest_block_height)),catchingUp:(0,encodings_1$3.assertBoolean)(_e.catching_up)}}function decodeStatus$1(_e){return{nodeInfo:decodeNodeInfo$1(_e.node_info),syncInfo:decodeSyncInfo$1(_e.sync_info),validatorInfo:decodeValidatorInfo$1(_e.validator_info)}}function decodeTxProof$1(_e){return{data:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.data)),rootHash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.root_hash)),proof:{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.proof.total)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.proof.index)),leafHash:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.proof.leaf_hash)),aunts:(0,encodings_1$3.assertArray)(_e.proof.aunts).map(encoding_1$a.fromBase64)}}}function decodeTxResponse$1(_e){return{tx:(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.tx)),result:decodeTxData$1((0,encodings_1$3.assertObject)(_e.tx_result)),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height)),index:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNumber)(_e.index)),hash:(0,encoding_1$a.fromHex)((0,encodings_1$3.assertNotEmpty)(_e.hash)),proof:(0,encodings_1$3.may)(decodeTxProof$1,_e.proof)}}function decodeTxSearch$1(_e){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total_count)),txs:(0,encodings_1$3.assertArray)(_e.txs).map(decodeTxResponse$1)}}function decodeTxEvent$1(_e){const cr=(0,encoding_1$a.fromBase64)((0,encodings_1$3.assertNotEmpty)(_e.tx));return{tx:cr,hash:(0,hasher_1$3.hashTx)(cr),result:decodeTxData$1(_e.result),height:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.height))}}function decodeValidators$1(_e){return{blockHeight:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.block_height)),validators:(0,encodings_1$3.assertArray)(_e.validators).map(decodeValidatorInfo$1),count:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.count)),total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total))}}function decodeBlock$1(_e){var cr;return{header:decodeHeader$1((0,encodings_1$3.assertObject)(_e.header)),lastCommit:_e.last_commit.block_id.hash?decodeCommit$1((0,encodings_1$3.assertObject)(_e.last_commit)):null,txs:_e.data.txs?(0,encodings_1$3.assertArray)(_e.data.txs).map(encoding_1$a.fromBase64):[],evidence:((cr=_e.evidence)==null?void 0:cr.evidence)??[]}}function decodeBlockResponse$1(_e){return{blockId:decodeBlockId$1(_e.block_id),block:decodeBlock$1(_e.block)}}function decodeBlockSearch$1(_e){return{totalCount:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total_count)),blocks:(0,encodings_1$3.assertArray)(_e.blocks).map(decodeBlockResponse$1)}}function decodeNumUnconfirmedTxs$1(_e){return{total:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total)),totalBytes:(0,inthelpers_1$2.apiToSmallInt)((0,encodings_1$3.assertNotEmpty)(_e.total_bytes))}}let Responses$1=class S1{static decodeAbciInfo(cr){return decodeAbciInfo$1((0,encodings_1$3.assertObject)(cr.result.response))}static decodeAbciQuery(cr){return decodeAbciQuery$1((0,encodings_1$3.assertObject)(cr.result.response))}static decodeBlock(cr){return decodeBlockResponse$1(cr.result)}static decodeBlockResults(cr){return decodeBlockResults$1(cr.result)}static decodeBlockSearch(cr){return decodeBlockSearch$1(cr.result)}static decodeBlockchain(cr){return decodeBlockchain$1(cr.result)}static decodeBroadcastTxSync(cr){return decodeBroadcastTxSync$1(cr.result)}static decodeBroadcastTxAsync(cr){return S1.decodeBroadcastTxSync(cr)}static decodeBroadcastTxCommit(cr){return decodeBroadcastTxCommit$1(cr.result)}static decodeCommit(cr){return decodeCommitResponse$1(cr.result)}static decodeGenesis(cr){return decodeGenesis$1((0,encodings_1$3.assertObject)(cr.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(cr){return decodeNumUnconfirmedTxs$1(cr.result)}static decodeStatus(cr){return decodeStatus$1(cr.result)}static decodeNewBlockEvent(cr){return decodeBlock$1(cr.data.value.block)}static decodeNewBlockHeaderEvent(cr){return decodeHeader$1(cr.data.value.header)}static decodeTxEvent(cr){return decodeTxEvent$1(cr.data.value.TxResult)}static decodeTx(cr){return decodeTxResponse$1(cr.result)}static decodeTxSearch(cr){return decodeTxSearch$1(cr.result)}static decodeValidators(cr){return decodeValidators$1(cr.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$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$3(cr,_e,gr);return __setModuleDefault$3(cr,_e),cr};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$3(requests$7);class Tendermint34Client{static async connect(cr){let gr;return typeof cr=="object"?gr=new rpcclients_1$1.HttpClient(cr):gr=cr.startsWith("http://")||cr.startsWith("https://")?new rpcclients_1$1.HttpClient(cr):new rpcclients_1$1.WebsocketClient(cr),await this.detectVersion(gr),Tendermint34Client.create(gr)}static async create(cr){return new Tendermint34Client(cr)}static async detectVersion(cr){const gr=(0,jsonrpc_1$2.createJsonRpcRequest)(requests$4.Method.Status),Cr=(await cr.execute(gr)).result;if(!Cr||!Cr.node_info)throw new Error("Unrecognized format for status response");const Vr=Cr.node_info.version;if(typeof Vr!="string")throw new Error("Unrecognized version format: must be string");return Vr}constructor(cr){this.client=cr,this.p=adaptor_1$1.adaptor34.params,this.r=adaptor_1$1.adaptor34.responses}disconnect(){this.client.disconnect()}async abciInfo(){const cr={method:requests$4.Method.AbciInfo};return this.doCall(cr,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(cr){const gr={params:cr,method:requests$4.Method.AbciQuery};return this.doCall(gr,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(cr){const gr={method:requests$4.Method.Block,params:{height:cr}};return this.doCall(gr,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(cr){const gr={method:requests$4.Method.BlockResults,params:{height:cr}};return this.doCall(gr,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(cr){const gr={params:cr,method:requests$4.Method.BlockSearch},Cr=await this.doCall(gr,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...Cr,blocks:[...Cr.blocks].sort((Vr,tt)=>Vr.block.header.height-tt.block.header.height)}}async blockSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.blockSearch({...cr,page:gr});Cr.push(...tt.blocks),Cr.lengthtt.block.header.height-nt.block.header.height),{totalCount:Cr.length,blocks:Cr}}async blockchain(cr,gr){const Cr={method:requests$4.Method.Blockchain,params:{minHeight:cr,maxHeight:gr}};return this.doCall(Cr,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(cr){const gr={params:cr,method:requests$4.Method.BroadcastTxSync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(cr){const gr={params:cr,method:requests$4.Method.BroadcastTxAsync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(cr){const gr={params:cr,method:requests$4.Method.BroadcastTxCommit};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(cr){const gr={method:requests$4.Method.Commit,params:{height:cr}};return this.doCall(gr,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const cr={method:requests$4.Method.Genesis};return this.doCall(cr,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const cr={method:requests$4.Method.Health};return this.doCall(cr,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const cr={method:requests$4.Method.NumUnconfirmedTxs};return this.doCall(cr,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const cr={method:requests$4.Method.Status};return this.doCall(cr,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const cr={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlock}};return this.subscribe(cr,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const cr={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.NewBlockHeader}};return this.subscribe(cr,this.r.decodeNewBlockHeaderEvent)}subscribeTx(cr){const gr={method:requests$4.Method.Subscribe,query:{type:requests$4.SubscriptionEventType.Tx,raw:cr}};return this.subscribe(gr,this.r.decodeTxEvent)}async tx(cr){const gr={params:cr,method:requests$4.Method.Tx};return this.doCall(gr,this.p.encodeTx,this.r.decodeTx)}async txSearch(cr){const gr={params:cr,method:requests$4.Method.TxSearch};return this.doCall(gr,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.txSearch({...cr,page:gr});Cr.push(...tt.txs),Cr.lengthgr(Vr))}}tendermint34client.Tendermint34Client=Tendermint34Client,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Tendermint34Client=_e.VoteType=_e.broadcastTxSyncSuccess=_e.broadcastTxCommitSuccess=_e.SubscriptionEventType=_e.Method=void 0;var cr=requests$7;Object.defineProperty(_e,"Method",{enumerable:!0,get:function(){return cr.Method}}),Object.defineProperty(_e,"SubscriptionEventType",{enumerable:!0,get:function(){return cr.SubscriptionEventType}});var gr=responses$3;Object.defineProperty(_e,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return gr.broadcastTxCommitSuccess}}),Object.defineProperty(_e,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return gr.broadcastTxSyncSuccess}}),Object.defineProperty(_e,"VoteType",{enumerable:!0,get:function(){return gr.VoteType}});var Cr=tendermint34client;Object.defineProperty(_e,"Tendermint34Client",{enumerable:!0,get:function(){return Cr.Tendermint34Client}})}(tendermint34);var tendermint37={},requests$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.buildQuery=_e.SubscriptionEventType=_e.Method=void 0,function(gr){gr.AbciInfo="abci_info",gr.AbciQuery="abci_query",gr.Block="block",gr.Blockchain="blockchain",gr.BlockResults="block_results",gr.BlockSearch="block_search",gr.BroadcastTxAsync="broadcast_tx_async",gr.BroadcastTxSync="broadcast_tx_sync",gr.BroadcastTxCommit="broadcast_tx_commit",gr.Commit="commit",gr.Genesis="genesis",gr.Health="health",gr.NumUnconfirmedTxs="num_unconfirmed_txs",gr.Status="status",gr.Subscribe="subscribe",gr.Tx="tx",gr.TxSearch="tx_search",gr.Validators="validators",gr.Unsubscribe="unsubscribe"}(_e.Method||(_e.Method={})),function(gr){gr.NewBlock="NewBlock",gr.NewBlockHeader="NewBlockHeader",gr.Tx="Tx"}(_e.SubscriptionEventType||(_e.SubscriptionEventType={}));function cr(gr){const Cr=(gr.tags?gr.tags:[]).map(tt=>`${tt.key}='${tt.value}'`),Vr=gr.raw?[gr.raw]:[];return[...Cr,...Vr].join(" AND ")}_e.buildQuery=cr})(requests$3);var responses$1={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.VoteType=_e.broadcastTxCommitSuccess=_e.broadcastTxSyncSuccess=void 0;function cr(Cr){return Cr.code===0}_e.broadcastTxSyncSuccess=cr;function gr(Cr){return Cr.checkTx.code===0&&!!Cr.deliverTx&&Cr.deliverTx.code===0}_e.broadcastTxCommitSuccess=gr,function(Cr){Cr[Cr.PreVote=1]="PreVote",Cr[Cr.PreCommit=2]="PreCommit"}(_e.VoteType||(_e.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$9=build$c;function assertSet(_e){if(_e===void 0)throw new Error("Value must not be undefined");if(_e===null)throw new Error("Value must not be null");return _e}encodings.assertSet=assertSet;function assertBoolean(_e){if(assertSet(_e),typeof _e!="boolean")throw new Error("Value must be a boolean");return _e}encodings.assertBoolean=assertBoolean;function assertString(_e){if(assertSet(_e),typeof _e!="string")throw new Error("Value must be a string");return _e}encodings.assertString=assertString;function assertNumber(_e){if(assertSet(_e),typeof _e!="number")throw new Error("Value must be a number");return _e}encodings.assertNumber=assertNumber;function assertArray(_e){if(assertSet(_e),!Array.isArray(_e))throw new Error("Value must be a an array");return _e}encodings.assertArray=assertArray;function assertObject(_e){if(assertSet(_e),typeof _e!="object")throw new Error("Value must be an object");if(Object.prototype.toString.call(_e)!=="[object Object]")throw new Error("Value must be a simple object");return _e}encodings.assertObject=assertObject;function assertNotEmpty(_e){if(assertSet(_e),typeof _e=="number"&&_e===0)throw new Error("must provide a non-zero value");if(_e.length===0)throw new Error("must provide a non-empty value");return _e}encodings.assertNotEmpty=assertNotEmpty;function may(_e,cr){return cr==null?void 0:_e(cr)}encodings.may=may;function dictionaryToStringMap(_e){const cr=new Map;for(const gr of Object.keys(_e)){const Cr=_e[gr];if(typeof Cr!="string")throw new Error("Found dictionary value of type other than string");cr.set(gr,Cr)}return cr}encodings.dictionaryToStringMap=dictionaryToStringMap;function encodeString$1(_e){const cr=(0,encoding_1$9.toUtf8)(_e);return Uint8Array.from([cr.length,...cr])}encodings.encodeString=encodeString$1;function encodeUvarint(_e){return _e>=128?Uint8Array.from([_e&255|128,...encodeUvarint(_e>>7)]):Uint8Array.from([_e&255])}encodings.encodeUvarint=encodeUvarint;function encodeTime(_e){const cr=_e.getTime(),gr=Math.floor(cr/1e3),Cr=gr?[8,...encodeUvarint(gr)]:new Uint8Array,Vr=(_e.nanoseconds||0)+cr%1e3*1e6,tt=Vr?[16,...encodeUvarint(Vr)]:new Uint8Array;return Uint8Array.from([...Cr,...tt])}encodings.encodeTime=encodeTime;function encodeBytes(_e){if(_e.length>=128)throw new Error("Not implemented for byte arrays of length 128 or more");return _e.length?Uint8Array.from([_e.length,..._e]):new Uint8Array}encodings.encodeBytes=encodeBytes;function encodeVersion(_e){const cr=_e.block?Uint8Array.from([8,...encodeUvarint(_e.block)]):new Uint8Array,gr=_e.app?Uint8Array.from([16,...encodeUvarint(_e.app)]):new Uint8Array;return Uint8Array.from([...cr,...gr])}encodings.encodeVersion=encodeVersion;function encodeBlockId(_e){return Uint8Array.from([10,_e.hash.length,..._e.hash,18,_e.parts.hash.length+4,8,_e.parts.total,18,_e.parts.hash.length,..._e.parts.hash])}encodings.encodeBlockId=encodeBlockId,Object.defineProperty(hasher,"__esModule",{value:!0}),hasher.hashBlock=hasher.hashTx=void 0;const crypto_1$2=build$7,encodings_1$2=encodings;function hashTx(_e){return(0,crypto_1$2.sha256)(_e)}hasher.hashTx=hashTx;function getSplitPoint(_e){if(_e<1)throw new Error("Cannot split an empty tree");const cr=2**Math.floor(Math.log2(_e));return cr<_e?cr:cr/2}function hashLeaf(_e){const cr=new crypto_1$2.Sha256(Uint8Array.from([0]));return cr.update(_e),cr.digest()}function hashInner(_e,cr){const gr=new crypto_1$2.Sha256(Uint8Array.from([1]));return gr.update(_e),gr.update(cr),gr.digest()}function hashTree(_e){switch(_e.length){case 0:throw new Error("Cannot hash empty tree");case 1:return hashLeaf(_e[0]);default:{const cr=getSplitPoint(_e.length),gr=hashTree(_e.slice(0,cr)),Cr=hashTree(_e.slice(cr));return hashInner(gr,Cr)}}}function hashBlock(_e){if(!_e.lastBlockId)throw new Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");const cr=[(0,encodings_1$2.encodeVersion)(_e.version),(0,encodings_1$2.encodeString)(_e.chainId),(0,encodings_1$2.encodeUvarint)(_e.height),(0,encodings_1$2.encodeTime)(_e.time),(0,encodings_1$2.encodeBlockId)(_e.lastBlockId),(0,encodings_1$2.encodeBytes)(_e.lastCommitHash),(0,encodings_1$2.encodeBytes)(_e.dataHash),(0,encodings_1$2.encodeBytes)(_e.validatorsHash),(0,encodings_1$2.encodeBytes)(_e.nextValidatorsHash),(0,encodings_1$2.encodeBytes)(_e.consensusHash),(0,encodings_1$2.encodeBytes)(_e.appHash),(0,encodings_1$2.encodeBytes)(_e.lastResultsHash),(0,encodings_1$2.encodeBytes)(_e.evidenceHash),(0,encodings_1$2.encodeBytes)(_e.proposerAddress)];return hashTree(cr)}hasher.hashBlock=hashBlock;var requests$2={},__createBinding$2=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$2=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$2=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$2(cr,_e,gr);return __setModuleDefault$2(cr,_e),cr};Object.defineProperty(requests$2,"__esModule",{value:!0}),requests$2.Params=void 0;const encoding_1$8=build$c,inthelpers_1$1=inthelpers,jsonrpc_1$1=jsonrpc,encodings_1$1=encodings,requests$1=__importStar$2(requests$3);function encodeHeightParam(_e){return{height:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.height)}}function encodeBlockchainRequestParams(_e){return{minHeight:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.minHeight),maxHeight:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.maxHeight)}}function encodeBlockSearchParams(_e){return{query:_e.query,page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.page),per_page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeAbciQueryParams(_e){return{path:(0,encodings_1$1.assertNotEmpty)(_e.path),data:(0,encoding_1$8.toHex)(_e.data),height:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.height),prove:_e.prove}}function encodeBroadcastTxParams(_e){return{tx:(0,encoding_1$8.toBase64)((0,encodings_1$1.assertNotEmpty)(_e.tx))}}function encodeTxParams(_e){return{hash:(0,encoding_1$8.toBase64)((0,encodings_1$1.assertNotEmpty)(_e.hash)),prove:_e.prove}}function encodeTxSearchParams(_e){return{query:_e.query,prove:_e.prove,page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.page),per_page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.per_page),order_by:_e.order_by}}function encodeValidatorsParams(_e){return{height:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.height),page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.page),per_page:(0,encodings_1$1.may)(inthelpers_1$1.smallIntToApi,_e.per_page)}}class Params{static encodeAbciInfo(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeAbciQuery(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeAbciQueryParams(cr.params))}static encodeBlock(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeHeightParam(cr.params))}static encodeBlockchain(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeBlockchainRequestParams(cr.params))}static encodeBlockResults(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeHeightParam(cr.params))}static encodeBlockSearch(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeBlockSearchParams(cr.params))}static encodeBroadcastTx(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeBroadcastTxParams(cr.params))}static encodeCommit(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeHeightParam(cr.params))}static encodeGenesis(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeHealth(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeNumUnconfirmedTxs(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeStatus(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method)}static encodeSubscribe(cr){const gr={key:"tm.event",value:cr.query.type},Cr=requests$1.buildQuery({tags:[gr],raw:cr.query.raw});return(0,jsonrpc_1$1.createJsonRpcRequest)("subscribe",{query:Cr})}static encodeTx(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeTxParams(cr.params))}static encodeTxSearch(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeTxSearchParams(cr.params))}static encodeValidators(cr){return(0,jsonrpc_1$1.createJsonRpcRequest)(cr.method,encodeValidatorsParams(cr.params))}}requests$2.Params=Params;var responses={};Object.defineProperty(responses,"__esModule",{value:!0}),responses.Responses=responses.decodeValidatorInfo=responses.decodeValidatorGenesis=responses.decodeValidatorUpdate=responses.decodeEvent=void 0;const encoding_1$7=build$c,utils_1$5=build$6,dates_1=dates,inthelpers_1=inthelpers,types_1$2=types$2,encodings_1=encodings,hasher_1$1=hasher;function decodeAbciInfo(_e){return{data:_e.data,lastBlockHeight:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.last_block_height),lastBlockAppHash:(0,encodings_1.may)(encoding_1$7.fromBase64,_e.last_block_app_hash)}}function decodeQueryProof(_e){return{ops:_e.ops.map(cr=>({type:cr.type,key:(0,encoding_1$7.fromBase64)(cr.key),data:(0,encoding_1$7.fromBase64)(cr.data)}))}}function decodeAbciQuery(_e){return{key:(0,encoding_1$7.fromBase64)((0,encodings_1.assertString)(_e.key??"")),value:(0,encoding_1$7.fromBase64)((0,encodings_1.assertString)(_e.value??"")),proof:(0,encodings_1.may)(decodeQueryProof,_e.proofOps),height:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.height),code:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.code),codespace:(0,encodings_1.assertString)(_e.codespace??""),index:(0,encodings_1.may)(inthelpers_1.apiToSmallInt,_e.index),log:_e.log,info:(0,encodings_1.assertString)(_e.info??"")}}function decodeEventAttribute(_e){return{key:(0,encodings_1.assertNotEmpty)(_e.key),value:_e.value??""}}function decodeAttributes(_e){return(0,encodings_1.assertArray)(_e).map(decodeEventAttribute)}function decodeEvent(_e){return{type:_e.type,attributes:_e.attributes?decodeAttributes(_e.attributes):[]}}responses.decodeEvent=decodeEvent;function decodeEvents(_e){return(0,encodings_1.assertArray)(_e).map(decodeEvent)}function decodeTxData(_e){return{code:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(_e.code??0)),codespace:_e.codespace,log:_e.log,data:(0,encodings_1.may)(encoding_1$7.fromBase64,_e.data),events:_e.events?decodeEvents(_e.events):[],gasWanted:(0,inthelpers_1.apiToSmallInt)(_e.gas_wanted??"0"),gasUsed:(0,inthelpers_1.apiToSmallInt)(_e.gas_used??"0")}}function decodePubkey(_e){if("Sum"in _e){const[[cr,gr]]=Object.entries(_e.Sum.value);return(0,utils_1$5.assert)(cr==="ed25519"||cr==="secp256k1",`unknown pubkey type: ${cr}`),{algorithm:cr,data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(gr))}}else switch(_e.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.value))};default:throw new Error(`unknown pubkey type: ${_e.type}`)}}function decodeBlockParams(_e){return{maxBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_bytes)),maxGas:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_gas))}}function decodeEvidenceParams(_e){return{maxAgeNumBlocks:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_age_num_blocks)),maxAgeDuration:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.max_age_duration))}}function decodeConsensusParams(_e){return{block:decodeBlockParams((0,encodings_1.assertObject)(_e.block)),evidence:decodeEvidenceParams((0,encodings_1.assertObject)(_e.evidence))}}function decodeValidatorUpdate(_e){return{pubkey:decodePubkey((0,encodings_1.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)(_e.power??"0")}}responses.decodeValidatorUpdate=decodeValidatorUpdate;function decodeBlockResults(_e){return{height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),results:(_e.txs_results||[]).map(decodeTxData),validatorUpdates:(_e.validator_updates||[]).map(decodeValidatorUpdate),consensusUpdates:(0,encodings_1.may)(decodeConsensusParams,_e.consensus_param_updates),beginBlockEvents:decodeEvents(_e.begin_block_events||[]),endBlockEvents:decodeEvents(_e.end_block_events||[])}}function decodeBlockId(_e){return{hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash)),parts:{total:(0,encodings_1.assertNotEmpty)(_e.parts.total),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.parts.hash))}}}function decodeBlockVersion(_e){return{block:(0,inthelpers_1.apiToSmallInt)(_e.block),app:(0,inthelpers_1.apiToSmallInt)(_e.app??0)}}function decodeHeader(_e){return{version:decodeBlockVersion(_e.version),chainId:(0,encodings_1.assertNotEmpty)(_e.chain_id),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),time:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(_e.time)),lastBlockId:_e.last_block_id.hash?decodeBlockId(_e.last_block_id):null,lastCommitHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.last_commit_hash)),dataHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.data_hash)),validatorsHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.validators_hash)),nextValidatorsHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.next_validators_hash)),consensusHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.consensus_hash)),appHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.app_hash)),lastResultsHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.last_results_hash)),evidenceHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.evidence_hash)),proposerAddress:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.proposer_address))}}function decodeBlockMeta(_e){return{blockId:decodeBlockId(_e.block_id),blockSize:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.block_size)),header:decodeHeader(_e.header),numTxs:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.num_txs))}}function decodeBlockchain(_e){return{lastHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.last_height)),blockMetas:(0,encodings_1.assertArray)(_e.block_metas).map(decodeBlockMeta)}}function decodeBroadcastTxSync(_e){return{...decodeTxData(_e),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash))}}function decodeBroadcastTxCommit(_e){return{height:(0,inthelpers_1.apiToSmallInt)(_e.height),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash)),checkTx:decodeTxData((0,encodings_1.assertObject)(_e.check_tx)),deliverTx:(0,encodings_1.may)(decodeTxData,_e.deliver_tx)}}function decodeBlockIdFlag(_e){return(0,utils_1$5.assert)(_e in types_1$2.BlockIdFlag),_e}function decodeOptionalTime(_e){return _e&&!_e.startsWith("0001-01-01")?(0,dates_1.fromRfc3339WithNanoseconds)(_e):void 0}function decodeCommitSignature(_e){return{blockIdFlag:decodeBlockIdFlag(_e.block_id_flag),validatorAddress:_e.validator_address?(0,encoding_1$7.fromHex)(_e.validator_address):void 0,timestamp:decodeOptionalTime(_e.timestamp),signature:_e.signature?(0,encoding_1$7.fromBase64)(_e.signature):void 0}}function decodeCommit(_e){return{blockId:decodeBlockId((0,encodings_1.assertObject)(_e.block_id)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),round:(0,inthelpers_1.apiToSmallInt)(_e.round),signatures:(0,encodings_1.assertArray)(_e.signatures).map(decodeCommitSignature)}}function decodeCommitResponse(_e){return{canonical:(0,encodings_1.assertBoolean)(_e.canonical),header:decodeHeader(_e.signed_header.header),commit:decodeCommit(_e.signed_header.commit)}}function decodeValidatorGenesis(_e){return{address:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.address)),pubkey:decodePubkey((0,encodings_1.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(_e.power))}}responses.decodeValidatorGenesis=decodeValidatorGenesis;function decodeGenesis(_e){return{genesisTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(_e.genesis_time)),chainId:(0,encodings_1.assertNotEmpty)(_e.chain_id),consensusParams:decodeConsensusParams(_e.consensus_params),validators:_e.validators?(0,encodings_1.assertArray)(_e.validators).map(decodeValidatorGenesis):[],appHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertSet)(_e.app_hash)),appState:_e.app_state}}function decodeValidatorInfo(_e){return{pubkey:decodePubkey((0,encodings_1.assertObject)(_e.pub_key)),votingPower:(0,inthelpers_1.apiToBigInt)((0,encodings_1.assertNotEmpty)(_e.voting_power)),address:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.address)),proposerPriority:_e.proposer_priority?(0,inthelpers_1.apiToSmallInt)(_e.proposer_priority):void 0}}responses.decodeValidatorInfo=decodeValidatorInfo;function decodeNodeInfo(_e){return{id:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.id)),listenAddr:(0,encodings_1.assertNotEmpty)(_e.listen_addr),network:(0,encodings_1.assertNotEmpty)(_e.network),version:(0,encodings_1.assertString)(_e.version),channels:(0,encodings_1.assertNotEmpty)(_e.channels),moniker:(0,encodings_1.assertNotEmpty)(_e.moniker),other:(0,encodings_1.dictionaryToStringMap)(_e.other),protocolVersion:{app:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.protocol_version.app)),block:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.protocol_version.block)),p2p:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.protocol_version.p2p))}}}function decodeSyncInfo(_e){const cr=_e.earliest_block_height?(0,inthelpers_1.apiToSmallInt)(_e.earliest_block_height):void 0,gr=_e.earliest_block_time?(0,dates_1.fromRfc3339WithNanoseconds)(_e.earliest_block_time):void 0;return{earliestAppHash:_e.earliest_app_hash?(0,encoding_1$7.fromHex)(_e.earliest_app_hash):void 0,earliestBlockHash:_e.earliest_block_hash?(0,encoding_1$7.fromHex)(_e.earliest_block_hash):void 0,earliestBlockHeight:cr||void 0,earliestBlockTime:gr!=null&&gr.getTime()?gr:void 0,latestBlockHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.latest_block_hash)),latestAppHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.latest_app_hash)),latestBlockTime:(0,dates_1.fromRfc3339WithNanoseconds)((0,encodings_1.assertNotEmpty)(_e.latest_block_time)),latestBlockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.latest_block_height)),catchingUp:(0,encodings_1.assertBoolean)(_e.catching_up)}}function decodeStatus(_e){return{nodeInfo:decodeNodeInfo(_e.node_info),syncInfo:decodeSyncInfo(_e.sync_info),validatorInfo:decodeValidatorInfo(_e.validator_info)}}function decodeTxProof(_e){return{data:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.data)),rootHash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.root_hash)),proof:{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.proof.total)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.proof.index)),leafHash:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.proof.leaf_hash)),aunts:(0,encodings_1.assertArray)(_e.proof.aunts).map(encoding_1$7.fromBase64)}}}function decodeTxResponse(_e){return{tx:(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.tx)),result:decodeTxData((0,encodings_1.assertObject)(_e.tx_result)),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height)),index:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNumber)(_e.index)),hash:(0,encoding_1$7.fromHex)((0,encodings_1.assertNotEmpty)(_e.hash)),proof:(0,encodings_1.may)(decodeTxProof,_e.proof)}}function decodeTxSearch(_e){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total_count)),txs:(0,encodings_1.assertArray)(_e.txs).map(decodeTxResponse)}}function decodeTxEvent(_e){const cr=(0,encoding_1$7.fromBase64)((0,encodings_1.assertNotEmpty)(_e.tx));return{tx:cr,hash:(0,hasher_1$1.hashTx)(cr),result:decodeTxData(_e.result),height:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.height))}}function decodeValidators(_e){return{blockHeight:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.block_height)),validators:(0,encodings_1.assertArray)(_e.validators).map(decodeValidatorInfo),count:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.count)),total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total))}}function decodeBlock(_e){var cr;return{header:decodeHeader((0,encodings_1.assertObject)(_e.header)),lastCommit:_e.last_commit.block_id.hash?decodeCommit((0,encodings_1.assertObject)(_e.last_commit)):null,txs:_e.data.txs?(0,encodings_1.assertArray)(_e.data.txs).map(encoding_1$7.fromBase64):[],evidence:((cr=_e.evidence)==null?void 0:cr.evidence)??[]}}function decodeBlockResponse(_e){return{blockId:decodeBlockId(_e.block_id),block:decodeBlock(_e.block)}}function decodeBlockSearch(_e){return{totalCount:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total_count)),blocks:(0,encodings_1.assertArray)(_e.blocks).map(decodeBlockResponse)}}function decodeNumUnconfirmedTxs(_e){return{total:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total)),totalBytes:(0,inthelpers_1.apiToSmallInt)((0,encodings_1.assertNotEmpty)(_e.total_bytes))}}class Responses{static decodeAbciInfo(cr){return decodeAbciInfo((0,encodings_1.assertObject)(cr.result.response))}static decodeAbciQuery(cr){return decodeAbciQuery((0,encodings_1.assertObject)(cr.result.response))}static decodeBlock(cr){return decodeBlockResponse(cr.result)}static decodeBlockResults(cr){return decodeBlockResults(cr.result)}static decodeBlockSearch(cr){return decodeBlockSearch(cr.result)}static decodeBlockchain(cr){return decodeBlockchain(cr.result)}static decodeBroadcastTxSync(cr){return decodeBroadcastTxSync(cr.result)}static decodeBroadcastTxAsync(cr){return Responses.decodeBroadcastTxSync(cr)}static decodeBroadcastTxCommit(cr){return decodeBroadcastTxCommit(cr.result)}static decodeCommit(cr){return decodeCommitResponse(cr.result)}static decodeGenesis(cr){return decodeGenesis((0,encodings_1.assertObject)(cr.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(cr){return decodeNumUnconfirmedTxs(cr.result)}static decodeStatus(cr){return decodeStatus(cr.result)}static decodeNewBlockEvent(cr){return decodeBlock(cr.data.value.block)}static decodeNewBlockHeaderEvent(cr){return decodeHeader(cr.data.value.header)}static decodeTxEvent(cr){return decodeTxEvent(cr.data.value.TxResult)}static decodeTx(cr){return decodeTxResponse(cr.result)}static decodeTxSearch(cr){return decodeTxSearch(cr.result)}static decodeValidators(cr){return decodeValidators(cr.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$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr);var Vr=Object.getOwnPropertyDescriptor(cr,gr);(!Vr||("get"in Vr?!cr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return cr[gr]}}),Object.defineProperty(_e,Cr,Vr)}:function(_e,cr,gr,Cr){Cr===void 0&&(Cr=gr),_e[Cr]=cr[gr]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,cr){Object.defineProperty(_e,"default",{enumerable:!0,value:cr})}:function(_e,cr){_e.default=cr}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var cr={};if(_e!=null)for(var gr in _e)gr!=="default"&&Object.prototype.hasOwnProperty.call(_e,gr)&&__createBinding$1(cr,_e,gr);return __setModuleDefault$1(cr,_e),cr};Object.defineProperty(tendermint37client,"__esModule",{value:!0}),tendermint37client.Tendermint37Client=void 0;const jsonrpc_1=jsonrpc,rpcclients_1=rpcclients,adaptor_1=adaptor,requests=__importStar$1(requests$3);class Tendermint37Client{static async connect(cr){let gr;return typeof cr=="object"?gr=new rpcclients_1.HttpClient(cr):gr=cr.startsWith("http://")||cr.startsWith("https://")?new rpcclients_1.HttpClient(cr):new rpcclients_1.WebsocketClient(cr),await this.detectVersion(gr),Tendermint37Client.create(gr)}static async create(cr){return new Tendermint37Client(cr)}static async detectVersion(cr){const gr=(0,jsonrpc_1.createJsonRpcRequest)(requests.Method.Status),Cr=(await cr.execute(gr)).result;if(!Cr||!Cr.node_info)throw new Error("Unrecognized format for status response");const Vr=Cr.node_info.version;if(typeof Vr!="string")throw new Error("Unrecognized version format: must be string");return Vr}constructor(cr){this.client=cr,this.p=adaptor_1.adaptor37.params,this.r=adaptor_1.adaptor37.responses}disconnect(){this.client.disconnect()}async abciInfo(){const cr={method:requests.Method.AbciInfo};return this.doCall(cr,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(cr){const gr={params:cr,method:requests.Method.AbciQuery};return this.doCall(gr,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(cr){const gr={method:requests.Method.Block,params:{height:cr}};return this.doCall(gr,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(cr){const gr={method:requests.Method.BlockResults,params:{height:cr}};return this.doCall(gr,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(cr){const gr={params:cr,method:requests.Method.BlockSearch},Cr=await this.doCall(gr,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...Cr,blocks:[...Cr.blocks].sort((Vr,tt)=>Vr.block.header.height-tt.block.header.height)}}async blockSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.blockSearch({...cr,page:gr});Cr.push(...tt.blocks),Cr.lengthtt.block.header.height-nt.block.header.height),{totalCount:Cr.length,blocks:Cr}}async blockchain(cr,gr){const Cr={method:requests.Method.Blockchain,params:{minHeight:cr,maxHeight:gr}};return this.doCall(Cr,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(cr){const gr={params:cr,method:requests.Method.BroadcastTxSync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(cr){const gr={params:cr,method:requests.Method.BroadcastTxAsync};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(cr){const gr={params:cr,method:requests.Method.BroadcastTxCommit};return this.doCall(gr,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(cr){const gr={method:requests.Method.Commit,params:{height:cr}};return this.doCall(gr,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){const cr={method:requests.Method.Genesis};return this.doCall(cr,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){const cr={method:requests.Method.Health};return this.doCall(cr,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){const cr={method:requests.Method.NumUnconfirmedTxs};return this.doCall(cr,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){const cr={method:requests.Method.Status};return this.doCall(cr,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){const cr={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlock}};return this.subscribe(cr,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){const cr={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.NewBlockHeader}};return this.subscribe(cr,this.r.decodeNewBlockHeaderEvent)}subscribeTx(cr){const gr={method:requests.Method.Subscribe,query:{type:requests.SubscriptionEventType.Tx,raw:cr}};return this.subscribe(gr,this.r.decodeTxEvent)}async tx(cr){const gr={params:cr,method:requests.Method.Tx};return this.doCall(gr,this.p.encodeTx,this.r.decodeTx)}async txSearch(cr){const gr={params:cr,method:requests.Method.TxSearch};return this.doCall(gr,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(cr){let gr=cr.page||1;const Cr=[];let Vr=!1;for(;!Vr;){const tt=await this.txSearch({...cr,page:gr});Cr.push(...tt.txs),Cr.lengthgr(Vr))}}tendermint37client.Tendermint37Client=Tendermint37Client,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Tendermint37Client=_e.VoteType=_e.broadcastTxSyncSuccess=_e.broadcastTxCommitSuccess=_e.SubscriptionEventType=_e.Method=void 0;var cr=requests$3;Object.defineProperty(_e,"Method",{enumerable:!0,get:function(){return cr.Method}}),Object.defineProperty(_e,"SubscriptionEventType",{enumerable:!0,get:function(){return cr.SubscriptionEventType}});var gr=responses$1;Object.defineProperty(_e,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return gr.broadcastTxCommitSuccess}}),Object.defineProperty(_e,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return gr.broadcastTxSyncSuccess}}),Object.defineProperty(_e,"VoteType",{enumerable:!0,get:function(){return gr.VoteType}});var Cr=tendermint37client;Object.defineProperty(_e,"Tendermint37Client",{enumerable:!0,get:function(){return Cr.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(_e){return _e instanceof tendermint34_1.Tendermint34Client}tendermintclient.isTendermint34Client=isTendermint34Client;function isTendermint37Client(_e){return _e instanceof tendermint37_1.Tendermint37Client}tendermintclient.isTendermint37Client=isTendermint37Client,function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,po,no,Nt){Nt===void 0&&(Nt=no);var eo=Object.getOwnPropertyDescriptor(po,no);(!eo||("get"in eo?!po.__esModule:eo.writable||eo.configurable))&&(eo={enumerable:!0,get:function(){return po[no]}}),Object.defineProperty(ht,Nt,eo)}:function(ht,po,no,Nt){Nt===void 0&&(Nt=no),ht[Nt]=po[no]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,po){Object.defineProperty(ht,"default",{enumerable:!0,value:po})}:function(ht,po){ht.default=po}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var po={};if(ht!=null)for(var no in ht)no!=="default"&&Object.prototype.hasOwnProperty.call(ht,no)&&cr(po,ht,no);return gr(po,ht),po};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BlockIdFlag=_e.isTendermint37Client=_e.isTendermint34Client=_e.Tendermint37Client=_e.tendermint37=_e.Tendermint34Client=_e.tendermint34=_e.VoteType=_e.SubscriptionEventType=_e.Method=_e.broadcastTxSyncSuccess=_e.broadcastTxCommitSuccess=_e.WebsocketClient=_e.HttpClient=_e.HttpBatchClient=_e.toSeconds=_e.toRfc3339WithNanoseconds=_e.fromSeconds=_e.fromRfc3339WithNanoseconds=_e.DateTime=_e.rawSecp256k1PubkeyToRawAddress=_e.rawEd25519PubkeyToRawAddress=_e.pubkeyToRawAddress=_e.pubkeyToAddress=void 0;var Vr=addresses;Object.defineProperty(_e,"pubkeyToAddress",{enumerable:!0,get:function(){return Vr.pubkeyToAddress}}),Object.defineProperty(_e,"pubkeyToRawAddress",{enumerable:!0,get:function(){return Vr.pubkeyToRawAddress}}),Object.defineProperty(_e,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return Vr.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(_e,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return Vr.rawSecp256k1PubkeyToRawAddress}});var tt=dates;Object.defineProperty(_e,"DateTime",{enumerable:!0,get:function(){return tt.DateTime}}),Object.defineProperty(_e,"fromRfc3339WithNanoseconds",{enumerable:!0,get:function(){return tt.fromRfc3339WithNanoseconds}}),Object.defineProperty(_e,"fromSeconds",{enumerable:!0,get:function(){return tt.fromSeconds}}),Object.defineProperty(_e,"toRfc3339WithNanoseconds",{enumerable:!0,get:function(){return tt.toRfc3339WithNanoseconds}}),Object.defineProperty(_e,"toSeconds",{enumerable:!0,get:function(){return tt.toSeconds}});var nt=rpcclients;Object.defineProperty(_e,"HttpBatchClient",{enumerable:!0,get:function(){return nt.HttpBatchClient}}),Object.defineProperty(_e,"HttpClient",{enumerable:!0,get:function(){return nt.HttpClient}}),Object.defineProperty(_e,"WebsocketClient",{enumerable:!0,get:function(){return nt.WebsocketClient}});var st=tendermint34;Object.defineProperty(_e,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return st.broadcastTxCommitSuccess}}),Object.defineProperty(_e,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return st.broadcastTxSyncSuccess}}),Object.defineProperty(_e,"Method",{enumerable:!0,get:function(){return st.Method}}),Object.defineProperty(_e,"SubscriptionEventType",{enumerable:!0,get:function(){return st.SubscriptionEventType}}),Object.defineProperty(_e,"VoteType",{enumerable:!0,get:function(){return st.VoteType}}),_e.tendermint34=Cr(tendermint34);var dt=tendermint34;Object.defineProperty(_e,"Tendermint34Client",{enumerable:!0,get:function(){return dt.Tendermint34Client}}),_e.tendermint37=Cr(tendermint37);var kt=tendermint37;Object.defineProperty(_e,"Tendermint37Client",{enumerable:!0,get:function(){return kt.Tendermint37Client}});var qt=tendermintclient;Object.defineProperty(_e,"isTendermint34Client",{enumerable:!0,get:function(){return qt.isTendermint34Client}}),Object.defineProperty(_e,"isTendermint37Client",{enumerable:!0,get:function(){return qt.isTendermint37Client}});var ro=types$2;Object.defineProperty(_e,"BlockIdFlag",{enumerable:!0,get:function(){return ro.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$8,encoding_1$6=build$c,math_1$3=build$b,tendermint_rpc_1$2=build$3,utils_1$4=build$6,abci_1$1=abci,accounts_1=accounts,events_1=events,modules_1$2=modules$1,queryclient_1=queryclient$1;class TimeoutError extends Error{constructor(cr,gr){super(cr),this.txId=gr}}stargateclient.TimeoutError=TimeoutError;function isDeliverTxFailure(_e){return!!_e.code}stargateclient.isDeliverTxFailure=isDeliverTxFailure;function isDeliverTxSuccess(_e){return!isDeliverTxFailure(_e)}stargateclient.isDeliverTxSuccess=isDeliverTxSuccess;function assertIsDeliverTxSuccess(_e){if(isDeliverTxFailure(_e))throw new Error(`Error when broadcasting tx ${_e.transactionHash} at height ${_e.height}. Code: ${_e.code}; Raw log: ${_e.rawLog}`)}stargateclient.assertIsDeliverTxSuccess=assertIsDeliverTxSuccess;function assertIsDeliverTxFailure(_e){if(isDeliverTxSuccess(_e))throw new Error(`Transaction ${_e.transactionHash} did not fail at height ${_e.height}. Code: ${_e.code}; Raw log: ${_e.rawLog}`)}stargateclient.assertIsDeliverTxFailure=assertIsDeliverTxFailure;class BroadcastTxError extends Error{constructor(cr,gr,Cr){super(`Broadcasting transaction failed with code ${cr} (codespace: ${gr}). Log: ${Cr}`),this.code=cr,this.codespace=gr,this.log=Cr}}stargateclient.BroadcastTxError=BroadcastTxError;class StargateClient{static async connect(cr,gr={}){let Cr;const Vr=await tendermint_rpc_1$2.Tendermint37Client.connect(cr);return(await Vr.status()).nodeInfo.version.startsWith("0.37.")?Cr=Vr:(Vr.disconnect(),Cr=await tendermint_rpc_1$2.Tendermint34Client.connect(cr)),StargateClient.create(Cr,gr)}static async create(cr,gr={}){return new StargateClient(cr,gr)}constructor(cr,gr){cr&&(this.tmClient=cr,this.queryClient=queryclient_1.QueryClient.withExtensions(cr,modules_1$2.setupAuthExtension,modules_1$2.setupBankExtension,modules_1$2.setupStakingExtension,modules_1$2.setupTxExtension));const{accountParser:Cr=accounts_1.accountFromAny}=gr;this.accountParser=Cr}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 cr=(await this.forceGetTmClient().status()).nodeInfo.network;if(!cr)throw new Error("Chain ID must not be empty");this.chainId=cr}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(cr){try{const gr=await this.forceGetQueryClient().auth.account(cr);return gr?this.accountParser(gr):null}catch(gr){if(/rpc error: code = NotFound/i.test(gr.toString()))return null;throw gr}}async getSequence(cr){const gr=await this.getAccount(cr);if(!gr)throw new Error(`Account '${cr}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:gr.accountNumber,sequence:gr.sequence}}async getBlock(cr){const gr=await this.forceGetTmClient().block(cr);return{id:(0,encoding_1$6.toHex)(gr.blockId.hash).toUpperCase(),header:{version:{block:new math_1$3.Uint53(gr.block.header.version.block).toString(),app:new math_1$3.Uint53(gr.block.header.version.app).toString()},height:gr.block.header.height,chainId:gr.block.header.chainId,time:(0,tendermint_rpc_1$2.toRfc3339WithNanoseconds)(gr.block.header.time)},txs:gr.block.txs}}async getBalance(cr,gr){return this.forceGetQueryClient().bank.balance(cr,gr)}async getAllBalances(cr){return this.forceGetQueryClient().bank.allBalances(cr)}async getBalanceStaked(cr){const gr=[];let Cr;do{const{delegationResponses:Vr,pagination:tt}=await this.forceGetQueryClient().staking.delegatorDelegations(cr,Cr),nt=Vr||[];gr.push(...nt),Cr=tt==null?void 0:tt.nextKey}while(Cr!==void 0&&Cr.length!==0);return gr.reduce((Vr,tt)=>((0,utils_1$4.assert)(tt.balance),Vr!==null?(0,amino_1$1.addCoins)(Vr,tt.balance):tt.balance),null)}async getDelegation(cr,gr){var Vr;let Cr;try{Cr=(Vr=(await this.forceGetQueryClient().staking.delegation(cr,gr)).delegationResponse)==null?void 0:Vr.balance}catch(tt){if(!tt.toString().includes("key not found"))throw tt}return Cr||null}async getTx(cr){return(await this.txsQuery(`tx.hash='${cr}'`))[0]??null}async searchTx(cr){let gr;if(typeof cr=="string")gr=cr;else if(Array.isArray(cr))gr=cr.map(Cr=>`${Cr.key}='${Cr.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(gr)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(cr,gr=6e4,Cr=3e3){let Vr=!1;const tt=setTimeout(()=>{Vr=!0},gr),nt=async dt=>{if(Vr)throw new TimeoutError(`Transaction with ID ${dt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${gr/1e3} seconds.`,dt);await(0,utils_1$4.sleep)(Cr);const kt=await this.getTx(dt);return kt?{code:kt.code,height:kt.height,txIndex:kt.txIndex,events:kt.events,rawLog:kt.rawLog,transactionHash:dt,msgResponses:kt.msgResponses,gasUsed:kt.gasUsed,gasWanted:kt.gasWanted}:nt(dt)},st=await this.broadcastTxSync(cr);return new Promise((dt,kt)=>nt(st).then(qt=>{clearTimeout(tt),dt(qt)},qt=>{clearTimeout(tt),kt(qt)}))}async broadcastTxSync(cr){const gr=await this.forceGetTmClient().broadcastTxSync({tx:cr});return gr.code?Promise.reject(new BroadcastTxError(gr.code,gr.codespace??"",gr.log)):(0,encoding_1$6.toHex)(gr.hash).toUpperCase()}async txsQuery(cr){return(await this.forceGetTmClient().txSearchAll({query:cr})).txs.map(gr=>{const Cr=abci_1$1.TxMsgData.decode(gr.result.data??new Uint8Array);return{height:gr.height,txIndex:gr.index,hash:(0,encoding_1$6.toHex)(gr.hash).toUpperCase(),code:gr.result.code,events:gr.result.events.map(events_1.fromTendermintEvent),rawLog:gr.result.log||"",tx:gr.tx,msgResponses:Cr.msgResponses,gasUsed:gr.result.gasUsed,gasWanted:gr.result.gasWanted}})}}stargateclient.StargateClient=StargateClient,function(_e){var cr=commonjsGlobal&&commonjsGlobal.__importDefault||function(bo){return bo&&bo.__esModule?bo:{default:bo}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.SigningStargateClient=_e.createDefaultAminoConverters=_e.defaultRegistryTypes=void 0;const gr=build$8,Cr=build$c,Vr=build$b,tt=build$9,nt=build$3,st=build$6,dt=coin$1,kt=tx$b,qt=tx$2,ro=signing$1,ht=tx$e,po=tx$6,no=cr(long),Nt=aminotypes,eo=fee,Wt=modules$1,St=modules$1,Ot=stargateclient;_e.defaultRegistryTypes=[["/cosmos.base.v1beta1.Coin",dt.Coin],...Wt.authzTypes,...Wt.bankTypes,...Wt.distributionTypes,...Wt.feegrantTypes,...Wt.govTypes,...Wt.groupTypes,...Wt.stakingTypes,...Wt.ibcTypes,...Wt.vestingTypes];function uo(){return{...(0,St.createAuthzAminoConverters)(),...(0,St.createBankAminoConverters)(),...(0,St.createDistributionAminoConverters)(),...(0,St.createGovAminoConverters)(),...(0,St.createStakingAminoConverters)(),...(0,St.createIbcAminoConverters)(),...(0,St.createFeegrantAminoConverters)(),...(0,St.createVestingAminoConverters)()}}_e.createDefaultAminoConverters=uo;class go extends Ot.StargateClient{static async connectWithSigner(oo,Ro,pt={}){let lo;const so=await nt.Tendermint37Client.connect(oo);return(await so.status()).nodeInfo.version.startsWith("0.37.")?lo=so:(so.disconnect(),lo=await nt.Tendermint34Client.connect(oo)),go.createWithSigner(lo,Ro,pt)}static async createWithSigner(oo,Ro,pt={}){return new go(oo,Ro,pt)}static async offline(oo,Ro={}){return new go(void 0,oo,Ro)}constructor(oo,Ro,pt){super(oo,pt);const{registry:lo=new tt.Registry(_e.defaultRegistryTypes),aminoTypes:so=new Nt.AminoTypes(uo())}=pt;this.registry=lo,this.aminoTypes=so,this.signer=Ro,this.broadcastTimeoutMs=pt.broadcastTimeoutMs,this.broadcastPollIntervalMs=pt.broadcastPollIntervalMs,this.gasPrice=pt.gasPrice}async simulate(oo,Ro,pt){const lo=Ro.map(ho=>this.registry.encodeAsAny(ho)),so=(await this.signer.getAccounts()).find(ho=>ho.address===oo);if(!so)throw new Error("Failed to retrieve account from signer");const wo=(0,gr.encodeSecp256k1Pubkey)(so.pubkey),{sequence:xt}=await this.getSequence(oo),{gasInfo:Mt}=await this.forceGetQueryClient().tx.simulate(lo,pt,wo,xt);return(0,st.assertDefined)(Mt),Vr.Uint53.fromString(Mt.gasUsed.toString()).toNumber()}async sendTokens(oo,Ro,pt,lo,so=""){const wo={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:oo,toAddress:Ro,amount:[...pt]}};return this.signAndBroadcast(oo,[wo],lo,so)}async delegateTokens(oo,Ro,pt,lo,so=""){const wo={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:qt.MsgDelegate.fromPartial({delegatorAddress:oo,validatorAddress:Ro,amount:pt})};return this.signAndBroadcast(oo,[wo],lo,so)}async undelegateTokens(oo,Ro,pt,lo,so=""){const wo={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:qt.MsgUndelegate.fromPartial({delegatorAddress:oo,validatorAddress:Ro,amount:pt})};return this.signAndBroadcast(oo,[wo],lo,so)}async withdrawRewards(oo,Ro,pt,lo=""){const so={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:kt.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:oo,validatorAddress:Ro})};return this.signAndBroadcast(oo,[so],pt,lo)}async sendIbcTokens(oo,Ro,pt,lo,so,wo,xt,Mt,ho=""){const io=xt?no.default.fromNumber(xt).multiply(1e9):void 0,co={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:po.MsgTransfer.fromPartial({sourcePort:lo,sourceChannel:so,sender:oo,receiver:Ro,token:pt,timeoutHeight:wo,timeoutTimestamp:io})};return this.signAndBroadcast(oo,[co],Mt,ho)}async signAndBroadcast(oo,Ro,pt,lo=""){let so;if(pt=="auto"||typeof pt=="number"){(0,st.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const Mt=await this.simulate(oo,Ro,lo),ho=typeof pt=="number"?pt:1.4;so=(0,eo.calculateFee)(Math.round(Mt*ho),this.gasPrice)}else so=pt;const wo=await this.sign(oo,Ro,so,lo),xt=ht.TxRaw.encode(wo).finish();return this.broadcastTx(xt,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(oo,Ro,pt,lo=""){let so;if(pt=="auto"||typeof pt=="number"){(0,st.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const Mt=await this.simulate(oo,Ro,lo),ho=typeof pt=="number"?pt:1.3;so=(0,eo.calculateFee)(Math.round(Mt*ho),this.gasPrice)}else so=pt;const wo=await this.sign(oo,Ro,so,lo),xt=ht.TxRaw.encode(wo).finish();return this.broadcastTxSync(xt)}async sign(oo,Ro,pt,lo,so){let wo;if(so)wo=so;else{const{accountNumber:xt,sequence:Mt}=await this.getSequence(oo),ho=await this.getChainId();wo={accountNumber:xt,sequence:Mt,chainId:ho}}return(0,tt.isOfflineDirectSigner)(this.signer)?this.signDirect(oo,Ro,pt,lo,wo):this.signAmino(oo,Ro,pt,lo,wo)}async signAmino(oo,Ro,pt,lo,{accountNumber:so,sequence:wo,chainId:xt}){(0,st.assert)(!(0,tt.isOfflineDirectSigner)(this.signer));const Mt=(await this.signer.getAccounts()).find(Wo=>Wo.address===oo);if(!Mt)throw new Error("Failed to retrieve account from signer");const ho=(0,tt.encodePubkey)((0,gr.encodeSecp256k1Pubkey)(Mt.pubkey)),io=ro.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,co=Ro.map(Wo=>this.aminoTypes.toAmino(Wo)),mo=(0,gr.makeSignDoc)(co,pt,xt,lo,so,wo),{signature:Bo,signed:So}=await this.signer.signAmino(oo,mo),Tt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:So.msgs.map(Wo=>this.aminoTypes.fromAmino(Wo)),memo:So.memo}},vo=this.registry.encode(Tt),Co=Vr.Int53.fromString(So.fee.gas).toNumber(),xo=Vr.Int53.fromString(So.sequence).toNumber(),Po=(0,tt.makeAuthInfoBytes)([{pubkey:ho,sequence:xo}],So.fee.amount,Co,So.fee.granter,So.fee.payer,io);return ht.TxRaw.fromPartial({bodyBytes:vo,authInfoBytes:Po,signatures:[(0,Cr.fromBase64)(Bo.signature)]})}async signDirect(oo,Ro,pt,lo,{accountNumber:so,sequence:wo,chainId:xt}){(0,st.assert)((0,tt.isOfflineDirectSigner)(this.signer));const Mt=(await this.signer.getAccounts()).find(Co=>Co.address===oo);if(!Mt)throw new Error("Failed to retrieve account from signer");const ho=(0,tt.encodePubkey)((0,gr.encodeSecp256k1Pubkey)(Mt.pubkey)),io={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:Ro,memo:lo}},co=this.registry.encode(io),mo=Vr.Int53.fromString(pt.gas).toNumber(),Bo=(0,tt.makeAuthInfoBytes)([{pubkey:ho,sequence:wo}],pt.amount,mo,pt.granter,pt.payer),So=(0,tt.makeSignDoc)(co,Bo,xt,so),{signature:Tt,signed:vo}=await this.signer.signDirect(oo,So);return ht.TxRaw.fromPartial({bodyBytes:vo.bodyBytes,authInfoBytes:vo.authInfoBytes,signatures:[(0,Cr.fromBase64)(Tt.signature)]})}}_e.SigningStargateClient=go}(signingstargateclient),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo);var St=Object.getOwnPropertyDescriptor(Nt,eo);(!St||("get"in St?!Nt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return Nt[eo]}}),Object.defineProperty(no,Wt,St)}:function(no,Nt,eo,Wt){Wt===void 0&&(Wt=eo),no[Wt]=Nt[eo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(no,Nt){Object.defineProperty(no,"default",{enumerable:!0,value:Nt})}:function(no,Nt){no.default=Nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(no){if(no&&no.__esModule)return no;var Nt={};if(no!=null)for(var eo in no)eo!=="default"&&Object.prototype.hasOwnProperty.call(no,eo)&&cr(Nt,no,eo);return gr(Nt,no),Nt};Object.defineProperty(_e,"__esModule",{value:!0}),_e.isMsgWithdrawDelegatorRewardEncodeObject=_e.isMsgVoteWeightedEncodeObject=_e.isMsgVoteEncodeObject=_e.isMsgUndelegateEncodeObject=_e.isMsgTransferEncodeObject=_e.isMsgSubmitProposalEncodeObject=_e.isMsgSendEncodeObject=_e.isMsgEditValidatorEncodeObject=_e.isMsgDepositEncodeObject=_e.isMsgDelegateEncodeObject=_e.isMsgCreateValidatorEncodeObject=_e.isMsgBeginRedelegateEncodeObject=_e.isAminoMsgWithdrawValidatorCommission=_e.isAminoMsgWithdrawDelegatorReward=_e.isAminoMsgVoteWeighted=_e.isAminoMsgVote=_e.isAminoMsgVerifyInvariant=_e.isAminoMsgUnjail=_e.isAminoMsgUndelegate=_e.isAminoMsgTransfer=_e.isAminoMsgSubmitProposal=_e.isAminoMsgSubmitEvidence=_e.isAminoMsgSetWithdrawAddress=_e.isAminoMsgSend=_e.isAminoMsgMultiSend=_e.isAminoMsgFundCommunityPool=_e.isAminoMsgEditValidator=_e.isAminoMsgDeposit=_e.isAminoMsgDelegate=_e.isAminoMsgCreateVestingAccount=_e.isAminoMsgCreateValidator=_e.isAminoMsgBeginRedelegate=_e.createVestingAminoConverters=_e.createStakingAminoConverters=_e.createSlashingAminoConverters=_e.createIbcAminoConverters=_e.createGroupAminoConverters=_e.createGovAminoConverters=_e.createFeegrantAminoConverters=_e.createEvidenceAminoConverters=_e.createDistributionAminoConverters=_e.createCrysisAminoConverters=_e.createBankAminoConverters=_e.createAuthzAminoConverters=_e.logs=_e.GasPrice=_e.calculateFee=_e.fromTendermintEvent=_e.AminoTypes=_e.accountFromAny=void 0,_e.parseCoins=_e.makeCosmoshubPath=_e.coins=_e.coin=_e.TimeoutError=_e.StargateClient=_e.isDeliverTxSuccess=_e.isDeliverTxFailure=_e.BroadcastTxError=_e.assertIsDeliverTxSuccess=_e.assertIsDeliverTxFailure=_e.SigningStargateClient=_e.defaultRegistryTypes=_e.createDefaultAminoConverters=_e.QueryClient=_e.decodeCosmosSdkDecFromProto=_e.createProtobufRpcClient=_e.createPagination=_e.makeMultisignedTxBytes=_e.makeMultisignedTx=_e.setupTxExtension=_e.setupStakingExtension=_e.setupSlashingExtension=_e.setupMintExtension=_e.setupIbcExtension=_e.setupGovExtension=_e.setupFeegrantExtension=_e.setupDistributionExtension=_e.setupBankExtension=_e.setupAuthzExtension=_e.setupAuthExtension=void 0;var Vr=accounts;Object.defineProperty(_e,"accountFromAny",{enumerable:!0,get:function(){return Vr.accountFromAny}});var tt=aminotypes;Object.defineProperty(_e,"AminoTypes",{enumerable:!0,get:function(){return tt.AminoTypes}});var nt=events;Object.defineProperty(_e,"fromTendermintEvent",{enumerable:!0,get:function(){return nt.fromTendermintEvent}});var st=fee;Object.defineProperty(_e,"calculateFee",{enumerable:!0,get:function(){return st.calculateFee}}),Object.defineProperty(_e,"GasPrice",{enumerable:!0,get:function(){return st.GasPrice}}),_e.logs=Cr(logs);var dt=modules$1;Object.defineProperty(_e,"createAuthzAminoConverters",{enumerable:!0,get:function(){return dt.createAuthzAminoConverters}}),Object.defineProperty(_e,"createBankAminoConverters",{enumerable:!0,get:function(){return dt.createBankAminoConverters}}),Object.defineProperty(_e,"createCrysisAminoConverters",{enumerable:!0,get:function(){return dt.createCrysisAminoConverters}}),Object.defineProperty(_e,"createDistributionAminoConverters",{enumerable:!0,get:function(){return dt.createDistributionAminoConverters}}),Object.defineProperty(_e,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return dt.createEvidenceAminoConverters}}),Object.defineProperty(_e,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return dt.createFeegrantAminoConverters}}),Object.defineProperty(_e,"createGovAminoConverters",{enumerable:!0,get:function(){return dt.createGovAminoConverters}}),Object.defineProperty(_e,"createGroupAminoConverters",{enumerable:!0,get:function(){return dt.createGroupAminoConverters}}),Object.defineProperty(_e,"createIbcAminoConverters",{enumerable:!0,get:function(){return dt.createIbcAminoConverters}}),Object.defineProperty(_e,"createSlashingAminoConverters",{enumerable:!0,get:function(){return dt.createSlashingAminoConverters}}),Object.defineProperty(_e,"createStakingAminoConverters",{enumerable:!0,get:function(){return dt.createStakingAminoConverters}}),Object.defineProperty(_e,"createVestingAminoConverters",{enumerable:!0,get:function(){return dt.createVestingAminoConverters}}),Object.defineProperty(_e,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return dt.isAminoMsgBeginRedelegate}}),Object.defineProperty(_e,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return dt.isAminoMsgCreateValidator}}),Object.defineProperty(_e,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return dt.isAminoMsgCreateVestingAccount}}),Object.defineProperty(_e,"isAminoMsgDelegate",{enumerable:!0,get:function(){return dt.isAminoMsgDelegate}}),Object.defineProperty(_e,"isAminoMsgDeposit",{enumerable:!0,get:function(){return dt.isAminoMsgDeposit}}),Object.defineProperty(_e,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return dt.isAminoMsgEditValidator}}),Object.defineProperty(_e,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return dt.isAminoMsgFundCommunityPool}}),Object.defineProperty(_e,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return dt.isAminoMsgMultiSend}}),Object.defineProperty(_e,"isAminoMsgSend",{enumerable:!0,get:function(){return dt.isAminoMsgSend}}),Object.defineProperty(_e,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return dt.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(_e,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return dt.isAminoMsgSubmitEvidence}}),Object.defineProperty(_e,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return dt.isAminoMsgSubmitProposal}}),Object.defineProperty(_e,"isAminoMsgTransfer",{enumerable:!0,get:function(){return dt.isAminoMsgTransfer}}),Object.defineProperty(_e,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return dt.isAminoMsgUndelegate}}),Object.defineProperty(_e,"isAminoMsgUnjail",{enumerable:!0,get:function(){return dt.isAminoMsgUnjail}}),Object.defineProperty(_e,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return dt.isAminoMsgVerifyInvariant}}),Object.defineProperty(_e,"isAminoMsgVote",{enumerable:!0,get:function(){return dt.isAminoMsgVote}}),Object.defineProperty(_e,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return dt.isAminoMsgVoteWeighted}}),Object.defineProperty(_e,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return dt.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(_e,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return dt.isAminoMsgWithdrawValidatorCommission}}),Object.defineProperty(_e,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(_e,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return dt.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(_e,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgDelegateEncodeObject}}),Object.defineProperty(_e,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return dt.isMsgDepositEncodeObject}}),Object.defineProperty(_e,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return dt.isMsgEditValidatorEncodeObject}}),Object.defineProperty(_e,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return dt.isMsgSendEncodeObject}}),Object.defineProperty(_e,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return dt.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(_e,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return dt.isMsgTransferEncodeObject}}),Object.defineProperty(_e,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return dt.isMsgUndelegateEncodeObject}}),Object.defineProperty(_e,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return dt.isMsgVoteEncodeObject}}),Object.defineProperty(_e,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return dt.isMsgVoteWeightedEncodeObject}}),Object.defineProperty(_e,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return dt.isMsgWithdrawDelegatorRewardEncodeObject}}),Object.defineProperty(_e,"setupAuthExtension",{enumerable:!0,get:function(){return dt.setupAuthExtension}}),Object.defineProperty(_e,"setupAuthzExtension",{enumerable:!0,get:function(){return dt.setupAuthzExtension}}),Object.defineProperty(_e,"setupBankExtension",{enumerable:!0,get:function(){return dt.setupBankExtension}}),Object.defineProperty(_e,"setupDistributionExtension",{enumerable:!0,get:function(){return dt.setupDistributionExtension}}),Object.defineProperty(_e,"setupFeegrantExtension",{enumerable:!0,get:function(){return dt.setupFeegrantExtension}}),Object.defineProperty(_e,"setupGovExtension",{enumerable:!0,get:function(){return dt.setupGovExtension}}),Object.defineProperty(_e,"setupIbcExtension",{enumerable:!0,get:function(){return dt.setupIbcExtension}}),Object.defineProperty(_e,"setupMintExtension",{enumerable:!0,get:function(){return dt.setupMintExtension}}),Object.defineProperty(_e,"setupSlashingExtension",{enumerable:!0,get:function(){return dt.setupSlashingExtension}}),Object.defineProperty(_e,"setupStakingExtension",{enumerable:!0,get:function(){return dt.setupStakingExtension}}),Object.defineProperty(_e,"setupTxExtension",{enumerable:!0,get:function(){return dt.setupTxExtension}});var kt=multisignature;Object.defineProperty(_e,"makeMultisignedTx",{enumerable:!0,get:function(){return kt.makeMultisignedTx}}),Object.defineProperty(_e,"makeMultisignedTxBytes",{enumerable:!0,get:function(){return kt.makeMultisignedTxBytes}});var qt=queryclient$1;Object.defineProperty(_e,"createPagination",{enumerable:!0,get:function(){return qt.createPagination}}),Object.defineProperty(_e,"createProtobufRpcClient",{enumerable:!0,get:function(){return qt.createProtobufRpcClient}}),Object.defineProperty(_e,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return qt.decodeCosmosSdkDecFromProto}}),Object.defineProperty(_e,"QueryClient",{enumerable:!0,get:function(){return qt.QueryClient}});var ro=signingstargateclient;Object.defineProperty(_e,"createDefaultAminoConverters",{enumerable:!0,get:function(){return ro.createDefaultAminoConverters}}),Object.defineProperty(_e,"defaultRegistryTypes",{enumerable:!0,get:function(){return ro.defaultRegistryTypes}}),Object.defineProperty(_e,"SigningStargateClient",{enumerable:!0,get:function(){return ro.SigningStargateClient}});var ht=stargateclient;Object.defineProperty(_e,"assertIsDeliverTxFailure",{enumerable:!0,get:function(){return ht.assertIsDeliverTxFailure}}),Object.defineProperty(_e,"assertIsDeliverTxSuccess",{enumerable:!0,get:function(){return ht.assertIsDeliverTxSuccess}}),Object.defineProperty(_e,"BroadcastTxError",{enumerable:!0,get:function(){return ht.BroadcastTxError}}),Object.defineProperty(_e,"isDeliverTxFailure",{enumerable:!0,get:function(){return ht.isDeliverTxFailure}}),Object.defineProperty(_e,"isDeliverTxSuccess",{enumerable:!0,get:function(){return ht.isDeliverTxSuccess}}),Object.defineProperty(_e,"StargateClient",{enumerable:!0,get:function(){return ht.StargateClient}}),Object.defineProperty(_e,"TimeoutError",{enumerable:!0,get:function(){return ht.TimeoutError}});var po=build$9;Object.defineProperty(_e,"coin",{enumerable:!0,get:function(){return po.coin}}),Object.defineProperty(_e,"coins",{enumerable:!0,get:function(){return po.coins}}),Object.defineProperty(_e,"makeCosmoshubPath",{enumerable:!0,get:function(){return po.makeCosmoshubPath}}),Object.defineProperty(_e,"parseCoins",{enumerable:!0,get:function(){return po.parseCoins}})}(build$a);var types$1={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(go,bo,oo,Ro){Ro===void 0&&(Ro=oo);var pt=Object.getOwnPropertyDescriptor(bo,oo);(!pt||("get"in pt?!bo.__esModule:pt.writable||pt.configurable))&&(pt={enumerable:!0,get:function(){return bo[oo]}}),Object.defineProperty(go,Ro,pt)}:function(go,bo,oo,Ro){Ro===void 0&&(Ro=oo),go[Ro]=bo[oo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(go,bo){Object.defineProperty(go,"default",{enumerable:!0,value:bo})}:function(go,bo){go.default=bo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(go){if(go&&go.__esModule)return go;var bo={};if(go!=null)for(var oo in go)oo!=="default"&&Object.prototype.hasOwnProperty.call(go,oo)&&cr(bo,go,oo);return gr(bo,go),bo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Model=_e.AbsoluteTxPosition=_e.ContractCodeHistoryEntry=_e.ContractInfo=_e.CodeInfo=_e.Params=_e.AccessConfig=_e.AccessTypeParam=_e.contractCodeHistoryOperationTypeToJSON=_e.contractCodeHistoryOperationTypeFromJSON=_e.ContractCodeHistoryOperationType=_e.accessTypeToJSON=_e.accessTypeFromJSON=_e.AccessType=_e.protobufPackage=void 0;const Vr=any,tt=helpers,nt=Cr(minimal);_e.protobufPackage="cosmwasm.wasm.v1";var st;(function(go){go[go.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",go[go.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",go[go.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",go[go.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",go[go.ACCESS_TYPE_ANY_OF_ADDRESSES=4]="ACCESS_TYPE_ANY_OF_ADDRESSES",go[go.UNRECOGNIZED=-1]="UNRECOGNIZED"})(st=_e.AccessType||(_e.AccessType={}));function dt(go){switch(go){case 0:case"ACCESS_TYPE_UNSPECIFIED":return st.ACCESS_TYPE_UNSPECIFIED;case 1:case"ACCESS_TYPE_NOBODY":return st.ACCESS_TYPE_NOBODY;case 2:case"ACCESS_TYPE_ONLY_ADDRESS":return st.ACCESS_TYPE_ONLY_ADDRESS;case 3:case"ACCESS_TYPE_EVERYBODY":return st.ACCESS_TYPE_EVERYBODY;case 4:case"ACCESS_TYPE_ANY_OF_ADDRESSES":return st.ACCESS_TYPE_ANY_OF_ADDRESSES;case-1:case"UNRECOGNIZED":default:return st.UNRECOGNIZED}}_e.accessTypeFromJSON=dt;function kt(go){switch(go){case st.ACCESS_TYPE_UNSPECIFIED:return"ACCESS_TYPE_UNSPECIFIED";case st.ACCESS_TYPE_NOBODY:return"ACCESS_TYPE_NOBODY";case st.ACCESS_TYPE_ONLY_ADDRESS:return"ACCESS_TYPE_ONLY_ADDRESS";case st.ACCESS_TYPE_EVERYBODY:return"ACCESS_TYPE_EVERYBODY";case st.ACCESS_TYPE_ANY_OF_ADDRESSES:return"ACCESS_TYPE_ANY_OF_ADDRESSES";case st.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.accessTypeToJSON=kt;var qt;(function(go){go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",go[go.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",go[go.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qt=_e.ContractCodeHistoryOperationType||(_e.ContractCodeHistoryOperationType={}));function ro(go){switch(go){case 0:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":return qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;case-1:case"UNRECOGNIZED":default:return qt.UNRECOGNIZED}}_e.contractCodeHistoryOperationTypeFromJSON=ro;function ht(go){switch(go){case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";case qt.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";case qt.UNRECOGNIZED:default:return"UNRECOGNIZED"}}_e.contractCodeHistoryOperationTypeToJSON=ht;function po(){return{value:0}}_e.AccessTypeParam={encode(go,bo=nt.Writer.create()){return go.value!==0&&bo.uint32(8).int32(go.value),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=po();for(;oo.pos>>3){case 1:pt.value=oo.int32();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{value:(0,tt.isSet)(go.value)?dt(go.value):0}},toJSON(go){const bo={};return go.value!==void 0&&(bo.value=kt(go.value)),bo},fromPartial(go){const bo=po();return bo.value=go.value??0,bo}};function no(){return{permission:0,address:"",addresses:[]}}_e.AccessConfig={encode(go,bo=nt.Writer.create()){go.permission!==0&&bo.uint32(8).int32(go.permission),go.address!==""&&bo.uint32(18).string(go.address);for(const oo of go.addresses)bo.uint32(26).string(oo);return bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=no();for(;oo.pos>>3){case 1:pt.permission=oo.int32();break;case 2:pt.address=oo.string();break;case 3:pt.addresses.push(oo.string());break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{permission:(0,tt.isSet)(go.permission)?dt(go.permission):0,address:(0,tt.isSet)(go.address)?String(go.address):"",addresses:Array.isArray(go==null?void 0:go.addresses)?go.addresses.map(bo=>String(bo)):[]}},toJSON(go){const bo={};return go.permission!==void 0&&(bo.permission=kt(go.permission)),go.address!==void 0&&(bo.address=go.address),go.addresses?bo.addresses=go.addresses.map(oo=>oo):bo.addresses=[],bo},fromPartial(go){var oo;const bo=no();return bo.permission=go.permission??0,bo.address=go.address??"",bo.addresses=((oo=go.addresses)==null?void 0:oo.map(Ro=>Ro))||[],bo}};function Nt(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0}}_e.Params={encode(go,bo=nt.Writer.create()){return go.codeUploadAccess!==void 0&&_e.AccessConfig.encode(go.codeUploadAccess,bo.uint32(10).fork()).ldelim(),go.instantiateDefaultPermission!==0&&bo.uint32(16).int32(go.instantiateDefaultPermission),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Nt();for(;oo.pos>>3){case 1:pt.codeUploadAccess=_e.AccessConfig.decode(oo,oo.uint32());break;case 2:pt.instantiateDefaultPermission=oo.int32();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{codeUploadAccess:(0,tt.isSet)(go.codeUploadAccess)?_e.AccessConfig.fromJSON(go.codeUploadAccess):void 0,instantiateDefaultPermission:(0,tt.isSet)(go.instantiateDefaultPermission)?dt(go.instantiateDefaultPermission):0}},toJSON(go){const bo={};return go.codeUploadAccess!==void 0&&(bo.codeUploadAccess=go.codeUploadAccess?_e.AccessConfig.toJSON(go.codeUploadAccess):void 0),go.instantiateDefaultPermission!==void 0&&(bo.instantiateDefaultPermission=kt(go.instantiateDefaultPermission)),bo},fromPartial(go){const bo=Nt();return bo.codeUploadAccess=go.codeUploadAccess!==void 0&&go.codeUploadAccess!==null?_e.AccessConfig.fromPartial(go.codeUploadAccess):void 0,bo.instantiateDefaultPermission=go.instantiateDefaultPermission??0,bo}};function eo(){return{codeHash:new Uint8Array,creator:"",instantiateConfig:void 0}}_e.CodeInfo={encode(go,bo=nt.Writer.create()){return go.codeHash.length!==0&&bo.uint32(10).bytes(go.codeHash),go.creator!==""&&bo.uint32(18).string(go.creator),go.instantiateConfig!==void 0&&_e.AccessConfig.encode(go.instantiateConfig,bo.uint32(42).fork()).ldelim(),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=eo();for(;oo.pos>>3){case 1:pt.codeHash=oo.bytes();break;case 2:pt.creator=oo.string();break;case 5:pt.instantiateConfig=_e.AccessConfig.decode(oo,oo.uint32());break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{codeHash:(0,tt.isSet)(go.codeHash)?(0,tt.bytesFromBase64)(go.codeHash):new Uint8Array,creator:(0,tt.isSet)(go.creator)?String(go.creator):"",instantiateConfig:(0,tt.isSet)(go.instantiateConfig)?_e.AccessConfig.fromJSON(go.instantiateConfig):void 0}},toJSON(go){const bo={};return go.codeHash!==void 0&&(bo.codeHash=(0,tt.base64FromBytes)(go.codeHash!==void 0?go.codeHash:new Uint8Array)),go.creator!==void 0&&(bo.creator=go.creator),go.instantiateConfig!==void 0&&(bo.instantiateConfig=go.instantiateConfig?_e.AccessConfig.toJSON(go.instantiateConfig):void 0),bo},fromPartial(go){const bo=eo();return bo.codeHash=go.codeHash??new Uint8Array,bo.creator=go.creator??"",bo.instantiateConfig=go.instantiateConfig!==void 0&&go.instantiateConfig!==null?_e.AccessConfig.fromPartial(go.instantiateConfig):void 0,bo}};function Wt(){return{codeId:tt.Long.UZERO,creator:"",admin:"",label:"",created:void 0,ibcPortId:"",extension:void 0}}_e.ContractInfo={encode(go,bo=nt.Writer.create()){return go.codeId.isZero()||bo.uint32(8).uint64(go.codeId),go.creator!==""&&bo.uint32(18).string(go.creator),go.admin!==""&&bo.uint32(26).string(go.admin),go.label!==""&&bo.uint32(34).string(go.label),go.created!==void 0&&_e.AbsoluteTxPosition.encode(go.created,bo.uint32(42).fork()).ldelim(),go.ibcPortId!==""&&bo.uint32(50).string(go.ibcPortId),go.extension!==void 0&&Vr.Any.encode(go.extension,bo.uint32(58).fork()).ldelim(),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Wt();for(;oo.pos>>3){case 1:pt.codeId=oo.uint64();break;case 2:pt.creator=oo.string();break;case 3:pt.admin=oo.string();break;case 4:pt.label=oo.string();break;case 5:pt.created=_e.AbsoluteTxPosition.decode(oo,oo.uint32());break;case 6:pt.ibcPortId=oo.string();break;case 7:pt.extension=Vr.Any.decode(oo,oo.uint32());break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{codeId:(0,tt.isSet)(go.codeId)?tt.Long.fromValue(go.codeId):tt.Long.UZERO,creator:(0,tt.isSet)(go.creator)?String(go.creator):"",admin:(0,tt.isSet)(go.admin)?String(go.admin):"",label:(0,tt.isSet)(go.label)?String(go.label):"",created:(0,tt.isSet)(go.created)?_e.AbsoluteTxPosition.fromJSON(go.created):void 0,ibcPortId:(0,tt.isSet)(go.ibcPortId)?String(go.ibcPortId):"",extension:(0,tt.isSet)(go.extension)?Vr.Any.fromJSON(go.extension):void 0}},toJSON(go){const bo={};return go.codeId!==void 0&&(bo.codeId=(go.codeId||tt.Long.UZERO).toString()),go.creator!==void 0&&(bo.creator=go.creator),go.admin!==void 0&&(bo.admin=go.admin),go.label!==void 0&&(bo.label=go.label),go.created!==void 0&&(bo.created=go.created?_e.AbsoluteTxPosition.toJSON(go.created):void 0),go.ibcPortId!==void 0&&(bo.ibcPortId=go.ibcPortId),go.extension!==void 0&&(bo.extension=go.extension?Vr.Any.toJSON(go.extension):void 0),bo},fromPartial(go){const bo=Wt();return bo.codeId=go.codeId!==void 0&&go.codeId!==null?tt.Long.fromValue(go.codeId):tt.Long.UZERO,bo.creator=go.creator??"",bo.admin=go.admin??"",bo.label=go.label??"",bo.created=go.created!==void 0&&go.created!==null?_e.AbsoluteTxPosition.fromPartial(go.created):void 0,bo.ibcPortId=go.ibcPortId??"",bo.extension=go.extension!==void 0&&go.extension!==null?Vr.Any.fromPartial(go.extension):void 0,bo}};function St(){return{operation:0,codeId:tt.Long.UZERO,updated:void 0,msg:new Uint8Array}}_e.ContractCodeHistoryEntry={encode(go,bo=nt.Writer.create()){return go.operation!==0&&bo.uint32(8).int32(go.operation),go.codeId.isZero()||bo.uint32(16).uint64(go.codeId),go.updated!==void 0&&_e.AbsoluteTxPosition.encode(go.updated,bo.uint32(26).fork()).ldelim(),go.msg.length!==0&&bo.uint32(34).bytes(go.msg),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=St();for(;oo.pos>>3){case 1:pt.operation=oo.int32();break;case 2:pt.codeId=oo.uint64();break;case 3:pt.updated=_e.AbsoluteTxPosition.decode(oo,oo.uint32());break;case 4:pt.msg=oo.bytes();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{operation:(0,tt.isSet)(go.operation)?ro(go.operation):0,codeId:(0,tt.isSet)(go.codeId)?tt.Long.fromValue(go.codeId):tt.Long.UZERO,updated:(0,tt.isSet)(go.updated)?_e.AbsoluteTxPosition.fromJSON(go.updated):void 0,msg:(0,tt.isSet)(go.msg)?(0,tt.bytesFromBase64)(go.msg):new Uint8Array}},toJSON(go){const bo={};return go.operation!==void 0&&(bo.operation=ht(go.operation)),go.codeId!==void 0&&(bo.codeId=(go.codeId||tt.Long.UZERO).toString()),go.updated!==void 0&&(bo.updated=go.updated?_e.AbsoluteTxPosition.toJSON(go.updated):void 0),go.msg!==void 0&&(bo.msg=(0,tt.base64FromBytes)(go.msg!==void 0?go.msg:new Uint8Array)),bo},fromPartial(go){const bo=St();return bo.operation=go.operation??0,bo.codeId=go.codeId!==void 0&&go.codeId!==null?tt.Long.fromValue(go.codeId):tt.Long.UZERO,bo.updated=go.updated!==void 0&&go.updated!==null?_e.AbsoluteTxPosition.fromPartial(go.updated):void 0,bo.msg=go.msg??new Uint8Array,bo}};function Ot(){return{blockHeight:tt.Long.UZERO,txIndex:tt.Long.UZERO}}_e.AbsoluteTxPosition={encode(go,bo=nt.Writer.create()){return go.blockHeight.isZero()||bo.uint32(8).uint64(go.blockHeight),go.txIndex.isZero()||bo.uint32(16).uint64(go.txIndex),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=Ot();for(;oo.pos>>3){case 1:pt.blockHeight=oo.uint64();break;case 2:pt.txIndex=oo.uint64();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{blockHeight:(0,tt.isSet)(go.blockHeight)?tt.Long.fromValue(go.blockHeight):tt.Long.UZERO,txIndex:(0,tt.isSet)(go.txIndex)?tt.Long.fromValue(go.txIndex):tt.Long.UZERO}},toJSON(go){const bo={};return go.blockHeight!==void 0&&(bo.blockHeight=(go.blockHeight||tt.Long.UZERO).toString()),go.txIndex!==void 0&&(bo.txIndex=(go.txIndex||tt.Long.UZERO).toString()),bo},fromPartial(go){const bo=Ot();return bo.blockHeight=go.blockHeight!==void 0&&go.blockHeight!==null?tt.Long.fromValue(go.blockHeight):tt.Long.UZERO,bo.txIndex=go.txIndex!==void 0&&go.txIndex!==null?tt.Long.fromValue(go.txIndex):tt.Long.UZERO,bo}};function uo(){return{key:new Uint8Array,value:new Uint8Array}}_e.Model={encode(go,bo=nt.Writer.create()){return go.key.length!==0&&bo.uint32(10).bytes(go.key),go.value.length!==0&&bo.uint32(18).bytes(go.value),bo},decode(go,bo){const oo=go instanceof nt.Reader?go:new nt.Reader(go);let Ro=bo===void 0?oo.len:oo.pos+bo;const pt=uo();for(;oo.pos>>3){case 1:pt.key=oo.bytes();break;case 2:pt.value=oo.bytes();break;default:oo.skipType(lo&7);break}}return pt},fromJSON(go){return{key:(0,tt.isSet)(go.key)?(0,tt.bytesFromBase64)(go.key):new Uint8Array,value:(0,tt.isSet)(go.value)?(0,tt.bytesFromBase64)(go.value):new Uint8Array}},toJSON(go){const bo={};return go.key!==void 0&&(bo.key=(0,tt.base64FromBytes)(go.key!==void 0?go.key:new Uint8Array)),go.value!==void 0&&(bo.value=(0,tt.base64FromBytes)(go.value!==void 0?go.value:new Uint8Array)),bo},fromPartial(go){const bo=uo();return bo.key=go.key??new Uint8Array,bo.value=go.value??new Uint8Array,bo}}})(types$1);var modules={},aminomessages={},__importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(aminomessages,"__esModule",{value:!0}),aminomessages.createWasmAminoConverters=aminomessages.accessTypeToString=aminomessages.accessTypeFromString=void 0;const encoding_1$5=build$c,types_1$1=types$1,long_1$2=__importDefault$4(long);function accessTypeFromString(_e){switch(_e){case"Unspecified":return types_1$1.AccessType.ACCESS_TYPE_UNSPECIFIED;case"Nobody":return types_1$1.AccessType.ACCESS_TYPE_NOBODY;case"OnlyAddress":return types_1$1.AccessType.ACCESS_TYPE_ONLY_ADDRESS;case"Everybody":return types_1$1.AccessType.ACCESS_TYPE_EVERYBODY;case"AnyOfAddresses":return types_1$1.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES;default:return types_1$1.AccessType.UNRECOGNIZED}}aminomessages.accessTypeFromString=accessTypeFromString;function accessTypeToString(_e){switch(_e){case types_1$1.AccessType.ACCESS_TYPE_UNSPECIFIED:return"Unspecified";case types_1$1.AccessType.ACCESS_TYPE_NOBODY:return"Nobody";case types_1$1.AccessType.ACCESS_TYPE_ONLY_ADDRESS:return"OnlyAddress";case types_1$1.AccessType.ACCESS_TYPE_EVERYBODY:return"Everybody";case types_1$1.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES:return"AnyOfAddresses";case types_1$1.AccessType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}aminomessages.accessTypeToString=accessTypeToString;function createWasmAminoConverters(){return{"/cosmwasm.wasm.v1.MsgStoreCode":{aminoType:"wasm/MsgStoreCode",toAmino:({sender:_e,wasmByteCode:cr,instantiatePermission:gr})=>({sender:_e,wasm_byte_code:(0,encoding_1$5.toBase64)(cr),instantiate_permission:gr?{permission:accessTypeToString(gr.permission),address:gr.address||void 0,addresses:gr.addresses.length!==0?gr.addresses:void 0}:void 0}),fromAmino:({sender:_e,wasm_byte_code:cr,instantiate_permission:gr})=>({sender:_e,wasmByteCode:(0,encoding_1$5.fromBase64)(cr),instantiatePermission:gr?{permission:accessTypeFromString(gr.permission),address:gr.address??"",addresses:gr.addresses??[]}:void 0})},"/cosmwasm.wasm.v1.MsgInstantiateContract":{aminoType:"wasm/MsgInstantiateContract",toAmino:({sender:_e,codeId:cr,label:gr,msg:Cr,funds:Vr,admin:tt})=>({sender:_e,code_id:cr.toString(),label:gr,msg:JSON.parse((0,encoding_1$5.fromUtf8)(Cr)),funds:Vr,admin:tt||void 0}),fromAmino:({sender:_e,code_id:cr,label:gr,msg:Cr,funds:Vr,admin:tt})=>({sender:_e,codeId:long_1$2.default.fromString(cr),label:gr,msg:(0,encoding_1$5.toUtf8)(JSON.stringify(Cr)),funds:[...Vr],admin:tt??""})},"/cosmwasm.wasm.v1.MsgInstantiateContract2":{aminoType:"wasm/MsgInstantiateContract2",toAmino:({sender:_e,codeId:cr,label:gr,msg:Cr,funds:Vr,admin:tt,salt:nt,fixMsg:st})=>({sender:_e,code_id:cr.toString(),label:gr,msg:JSON.parse((0,encoding_1$5.fromUtf8)(Cr)),funds:Vr,admin:tt||void 0,salt:(0,encoding_1$5.toBase64)(nt),fix_msg:st}),fromAmino:({sender:_e,code_id:cr,label:gr,msg:Cr,funds:Vr,admin:tt,salt:nt,fix_msg:st})=>({sender:_e,codeId:long_1$2.default.fromString(cr),label:gr,msg:(0,encoding_1$5.toUtf8)(JSON.stringify(Cr)),funds:[...Vr],admin:tt??"",salt:(0,encoding_1$5.fromBase64)(nt),fixMsg:st})},"/cosmwasm.wasm.v1.MsgUpdateAdmin":{aminoType:"wasm/MsgUpdateAdmin",toAmino:({sender:_e,newAdmin:cr,contract:gr})=>({sender:_e,new_admin:cr,contract:gr}),fromAmino:({sender:_e,new_admin:cr,contract:gr})=>({sender:_e,newAdmin:cr,contract:gr})},"/cosmwasm.wasm.v1.MsgClearAdmin":{aminoType:"wasm/MsgClearAdmin",toAmino:({sender:_e,contract:cr})=>({sender:_e,contract:cr}),fromAmino:({sender:_e,contract:cr})=>({sender:_e,contract:cr})},"/cosmwasm.wasm.v1.MsgExecuteContract":{aminoType:"wasm/MsgExecuteContract",toAmino:({sender:_e,contract:cr,msg:gr,funds:Cr})=>({sender:_e,contract:cr,msg:JSON.parse((0,encoding_1$5.fromUtf8)(gr)),funds:Cr}),fromAmino:({sender:_e,contract:cr,msg:gr,funds:Cr})=>({sender:_e,contract:cr,msg:(0,encoding_1$5.toUtf8)(JSON.stringify(gr)),funds:[...Cr]})},"/cosmwasm.wasm.v1.MsgMigrateContract":{aminoType:"wasm/MsgMigrateContract",toAmino:({sender:_e,contract:cr,codeId:gr,msg:Cr})=>({sender:_e,contract:cr,code_id:gr.toString(),msg:JSON.parse((0,encoding_1$5.fromUtf8)(Cr))}),fromAmino:({sender:_e,contract:cr,code_id:gr,msg:Cr})=>({sender:_e,contract:cr,codeId:long_1$2.default.fromString(gr),msg:(0,encoding_1$5.toUtf8)(JSON.stringify(Cr))})}}}aminomessages.createWasmAminoConverters=createWasmAminoConverters;var messages$1={},tx={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(pt,lo,so,wo){wo===void 0&&(wo=so);var xt=Object.getOwnPropertyDescriptor(lo,so);(!xt||("get"in xt?!lo.__esModule:xt.writable||xt.configurable))&&(xt={enumerable:!0,get:function(){return lo[so]}}),Object.defineProperty(pt,wo,xt)}:function(pt,lo,so,wo){wo===void 0&&(wo=so),pt[wo]=lo[so]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(pt,lo){Object.defineProperty(pt,"default",{enumerable:!0,value:lo})}:function(pt,lo){pt.default=lo}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(pt){if(pt&&pt.__esModule)return pt;var lo={};if(pt!=null)for(var so in pt)so!=="default"&&Object.prototype.hasOwnProperty.call(pt,so)&&cr(lo,pt,so);return gr(lo,pt),lo};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MsgClientImpl=_e.MsgUpdateInstantiateConfigResponse=_e.MsgUpdateInstantiateConfig=_e.MsgClearAdminResponse=_e.MsgClearAdmin=_e.MsgUpdateAdminResponse=_e.MsgUpdateAdmin=_e.MsgMigrateContractResponse=_e.MsgMigrateContract=_e.MsgExecuteContractResponse=_e.MsgExecuteContract=_e.MsgInstantiateContract2Response=_e.MsgInstantiateContractResponse=_e.MsgInstantiateContract2=_e.MsgInstantiateContract=_e.MsgStoreCodeResponse=_e.MsgStoreCode=_e.protobufPackage=void 0;const Vr=types$1,tt=coin$1,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmwasm.wasm.v1";function dt(){return{sender:"",wasmByteCode:new Uint8Array,instantiatePermission:void 0}}_e.MsgStoreCode={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.wasmByteCode.length!==0&&lo.uint32(18).bytes(pt.wasmByteCode),pt.instantiatePermission!==void 0&&Vr.AccessConfig.encode(pt.instantiatePermission,lo.uint32(42).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=dt();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.wasmByteCode=so.bytes();break;case 5:xt.instantiatePermission=Vr.AccessConfig.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",wasmByteCode:(0,nt.isSet)(pt.wasmByteCode)?(0,nt.bytesFromBase64)(pt.wasmByteCode):new Uint8Array,instantiatePermission:(0,nt.isSet)(pt.instantiatePermission)?Vr.AccessConfig.fromJSON(pt.instantiatePermission):void 0}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.wasmByteCode!==void 0&&(lo.wasmByteCode=(0,nt.base64FromBytes)(pt.wasmByteCode!==void 0?pt.wasmByteCode:new Uint8Array)),pt.instantiatePermission!==void 0&&(lo.instantiatePermission=pt.instantiatePermission?Vr.AccessConfig.toJSON(pt.instantiatePermission):void 0),lo},fromPartial(pt){const lo=dt();return lo.sender=pt.sender??"",lo.wasmByteCode=pt.wasmByteCode??new Uint8Array,lo.instantiatePermission=pt.instantiatePermission!==void 0&&pt.instantiatePermission!==null?Vr.AccessConfig.fromPartial(pt.instantiatePermission):void 0,lo}};function kt(){return{codeId:nt.Long.UZERO,checksum:new Uint8Array}}_e.MsgStoreCodeResponse={encode(pt,lo=st.Writer.create()){return pt.codeId.isZero()||lo.uint32(8).uint64(pt.codeId),pt.checksum.length!==0&&lo.uint32(18).bytes(pt.checksum),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=kt();for(;so.pos>>3){case 1:xt.codeId=so.uint64();break;case 2:xt.checksum=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,checksum:(0,nt.isSet)(pt.checksum)?(0,nt.bytesFromBase64)(pt.checksum):new Uint8Array}},toJSON(pt){const lo={};return pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.checksum!==void 0&&(lo.checksum=(0,nt.base64FromBytes)(pt.checksum!==void 0?pt.checksum:new Uint8Array)),lo},fromPartial(pt){const lo=kt();return lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.checksum=pt.checksum??new Uint8Array,lo}};function qt(){return{sender:"",admin:"",codeId:nt.Long.UZERO,label:"",msg:new Uint8Array,funds:[]}}_e.MsgInstantiateContract={encode(pt,lo=st.Writer.create()){pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.admin!==""&&lo.uint32(18).string(pt.admin),pt.codeId.isZero()||lo.uint32(24).uint64(pt.codeId),pt.label!==""&&lo.uint32(34).string(pt.label),pt.msg.length!==0&&lo.uint32(42).bytes(pt.msg);for(const so of pt.funds)tt.Coin.encode(so,lo.uint32(50).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=qt();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.admin=so.string();break;case 3:xt.codeId=so.uint64();break;case 4:xt.label=so.string();break;case 5:xt.msg=so.bytes();break;case 6:xt.funds.push(tt.Coin.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",admin:(0,nt.isSet)(pt.admin)?String(pt.admin):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,label:(0,nt.isSet)(pt.label)?String(pt.label):"",msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array,funds:Array.isArray(pt==null?void 0:pt.funds)?pt.funds.map(lo=>tt.Coin.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.admin!==void 0&&(lo.admin=pt.admin),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.label!==void 0&&(lo.label=pt.label),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),pt.funds?lo.funds=pt.funds.map(so=>so?tt.Coin.toJSON(so):void 0):lo.funds=[],lo},fromPartial(pt){var so;const lo=qt();return lo.sender=pt.sender??"",lo.admin=pt.admin??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.label=pt.label??"",lo.msg=pt.msg??new Uint8Array,lo.funds=((so=pt.funds)==null?void 0:so.map(wo=>tt.Coin.fromPartial(wo)))||[],lo}};function ro(){return{sender:"",admin:"",codeId:nt.Long.UZERO,label:"",msg:new Uint8Array,funds:[],salt:new Uint8Array,fixMsg:!1}}_e.MsgInstantiateContract2={encode(pt,lo=st.Writer.create()){pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.admin!==""&&lo.uint32(18).string(pt.admin),pt.codeId.isZero()||lo.uint32(24).uint64(pt.codeId),pt.label!==""&&lo.uint32(34).string(pt.label),pt.msg.length!==0&&lo.uint32(42).bytes(pt.msg);for(const so of pt.funds)tt.Coin.encode(so,lo.uint32(50).fork()).ldelim();return pt.salt.length!==0&&lo.uint32(58).bytes(pt.salt),pt.fixMsg===!0&&lo.uint32(64).bool(pt.fixMsg),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ro();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.admin=so.string();break;case 3:xt.codeId=so.uint64();break;case 4:xt.label=so.string();break;case 5:xt.msg=so.bytes();break;case 6:xt.funds.push(tt.Coin.decode(so,so.uint32()));break;case 7:xt.salt=so.bytes();break;case 8:xt.fixMsg=so.bool();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",admin:(0,nt.isSet)(pt.admin)?String(pt.admin):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,label:(0,nt.isSet)(pt.label)?String(pt.label):"",msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array,funds:Array.isArray(pt==null?void 0:pt.funds)?pt.funds.map(lo=>tt.Coin.fromJSON(lo)):[],salt:(0,nt.isSet)(pt.salt)?(0,nt.bytesFromBase64)(pt.salt):new Uint8Array,fixMsg:(0,nt.isSet)(pt.fixMsg)?!!pt.fixMsg:!1}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.admin!==void 0&&(lo.admin=pt.admin),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.label!==void 0&&(lo.label=pt.label),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),pt.funds?lo.funds=pt.funds.map(so=>so?tt.Coin.toJSON(so):void 0):lo.funds=[],pt.salt!==void 0&&(lo.salt=(0,nt.base64FromBytes)(pt.salt!==void 0?pt.salt:new Uint8Array)),pt.fixMsg!==void 0&&(lo.fixMsg=pt.fixMsg),lo},fromPartial(pt){var so;const lo=ro();return lo.sender=pt.sender??"",lo.admin=pt.admin??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.label=pt.label??"",lo.msg=pt.msg??new Uint8Array,lo.funds=((so=pt.funds)==null?void 0:so.map(wo=>tt.Coin.fromPartial(wo)))||[],lo.salt=pt.salt??new Uint8Array,lo.fixMsg=pt.fixMsg??!1,lo}};function ht(){return{address:"",data:new Uint8Array}}_e.MsgInstantiateContractResponse={encode(pt,lo=st.Writer.create()){return pt.address!==""&&lo.uint32(10).string(pt.address),pt.data.length!==0&&lo.uint32(18).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=ht();for(;so.pos>>3){case 1:xt.address=so.string();break;case 2:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{address:(0,nt.isSet)(pt.address)?String(pt.address):"",data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.address!==void 0&&(lo.address=pt.address),pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=ht();return lo.address=pt.address??"",lo.data=pt.data??new Uint8Array,lo}};function po(){return{address:"",data:new Uint8Array}}_e.MsgInstantiateContract2Response={encode(pt,lo=st.Writer.create()){return pt.address!==""&&lo.uint32(10).string(pt.address),pt.data.length!==0&&lo.uint32(18).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=po();for(;so.pos>>3){case 1:xt.address=so.string();break;case 2:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{address:(0,nt.isSet)(pt.address)?String(pt.address):"",data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.address!==void 0&&(lo.address=pt.address),pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=po();return lo.address=pt.address??"",lo.data=pt.data??new Uint8Array,lo}};function no(){return{sender:"",contract:"",msg:new Uint8Array,funds:[]}}_e.MsgExecuteContract={encode(pt,lo=st.Writer.create()){pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.contract!==""&&lo.uint32(18).string(pt.contract),pt.msg.length!==0&&lo.uint32(26).bytes(pt.msg);for(const so of pt.funds)tt.Coin.encode(so,lo.uint32(42).fork()).ldelim();return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=no();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.contract=so.string();break;case 3:xt.msg=so.bytes();break;case 5:xt.funds.push(tt.Coin.decode(so,so.uint32()));break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):"",msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array,funds:Array.isArray(pt==null?void 0:pt.funds)?pt.funds.map(lo=>tt.Coin.fromJSON(lo)):[]}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.contract!==void 0&&(lo.contract=pt.contract),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),pt.funds?lo.funds=pt.funds.map(so=>so?tt.Coin.toJSON(so):void 0):lo.funds=[],lo},fromPartial(pt){var so;const lo=no();return lo.sender=pt.sender??"",lo.contract=pt.contract??"",lo.msg=pt.msg??new Uint8Array,lo.funds=((so=pt.funds)==null?void 0:so.map(wo=>tt.Coin.fromPartial(wo)))||[],lo}};function Nt(){return{data:new Uint8Array}}_e.MsgExecuteContractResponse={encode(pt,lo=st.Writer.create()){return pt.data.length!==0&&lo.uint32(10).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Nt();for(;so.pos>>3){case 1:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=Nt();return lo.data=pt.data??new Uint8Array,lo}};function eo(){return{sender:"",contract:"",codeId:nt.Long.UZERO,msg:new Uint8Array}}_e.MsgMigrateContract={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.contract!==""&&lo.uint32(18).string(pt.contract),pt.codeId.isZero()||lo.uint32(24).uint64(pt.codeId),pt.msg.length!==0&&lo.uint32(34).bytes(pt.msg),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=eo();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.contract=so.string();break;case 3:xt.codeId=so.uint64();break;case 4:xt.msg=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,msg:(0,nt.isSet)(pt.msg)?(0,nt.bytesFromBase64)(pt.msg):new Uint8Array}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.contract!==void 0&&(lo.contract=pt.contract),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.msg!==void 0&&(lo.msg=(0,nt.base64FromBytes)(pt.msg!==void 0?pt.msg:new Uint8Array)),lo},fromPartial(pt){const lo=eo();return lo.sender=pt.sender??"",lo.contract=pt.contract??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.msg=pt.msg??new Uint8Array,lo}};function Wt(){return{data:new Uint8Array}}_e.MsgMigrateContractResponse={encode(pt,lo=st.Writer.create()){return pt.data.length!==0&&lo.uint32(10).bytes(pt.data),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Wt();for(;so.pos>>3){case 1:xt.data=so.bytes();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{data:(0,nt.isSet)(pt.data)?(0,nt.bytesFromBase64)(pt.data):new Uint8Array}},toJSON(pt){const lo={};return pt.data!==void 0&&(lo.data=(0,nt.base64FromBytes)(pt.data!==void 0?pt.data:new Uint8Array)),lo},fromPartial(pt){const lo=Wt();return lo.data=pt.data??new Uint8Array,lo}};function St(){return{sender:"",newAdmin:"",contract:""}}_e.MsgUpdateAdmin={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.newAdmin!==""&&lo.uint32(18).string(pt.newAdmin),pt.contract!==""&&lo.uint32(26).string(pt.contract),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=St();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.newAdmin=so.string();break;case 3:xt.contract=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",newAdmin:(0,nt.isSet)(pt.newAdmin)?String(pt.newAdmin):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):""}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.newAdmin!==void 0&&(lo.newAdmin=pt.newAdmin),pt.contract!==void 0&&(lo.contract=pt.contract),lo},fromPartial(pt){const lo=St();return lo.sender=pt.sender??"",lo.newAdmin=pt.newAdmin??"",lo.contract=pt.contract??"",lo}};function Ot(){return{}}_e.MsgUpdateAdminResponse={encode(pt,lo=st.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=Ot();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return Ot()}};function uo(){return{sender:"",contract:""}}_e.MsgClearAdmin={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.contract!==""&&lo.uint32(26).string(pt.contract),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=uo();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 3:xt.contract=so.string();break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",contract:(0,nt.isSet)(pt.contract)?String(pt.contract):""}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.contract!==void 0&&(lo.contract=pt.contract),lo},fromPartial(pt){const lo=uo();return lo.sender=pt.sender??"",lo.contract=pt.contract??"",lo}};function go(){return{}}_e.MsgClearAdminResponse={encode(pt,lo=st.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=go();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return go()}};function bo(){return{sender:"",codeId:nt.Long.UZERO,newInstantiatePermission:void 0}}_e.MsgUpdateInstantiateConfig={encode(pt,lo=st.Writer.create()){return pt.sender!==""&&lo.uint32(10).string(pt.sender),pt.codeId.isZero()||lo.uint32(16).uint64(pt.codeId),pt.newInstantiatePermission!==void 0&&Vr.AccessConfig.encode(pt.newInstantiatePermission,lo.uint32(26).fork()).ldelim(),lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=bo();for(;so.pos>>3){case 1:xt.sender=so.string();break;case 2:xt.codeId=so.uint64();break;case 3:xt.newInstantiatePermission=Vr.AccessConfig.decode(so,so.uint32());break;default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{sender:(0,nt.isSet)(pt.sender)?String(pt.sender):"",codeId:(0,nt.isSet)(pt.codeId)?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,newInstantiatePermission:(0,nt.isSet)(pt.newInstantiatePermission)?Vr.AccessConfig.fromJSON(pt.newInstantiatePermission):void 0}},toJSON(pt){const lo={};return pt.sender!==void 0&&(lo.sender=pt.sender),pt.codeId!==void 0&&(lo.codeId=(pt.codeId||nt.Long.UZERO).toString()),pt.newInstantiatePermission!==void 0&&(lo.newInstantiatePermission=pt.newInstantiatePermission?Vr.AccessConfig.toJSON(pt.newInstantiatePermission):void 0),lo},fromPartial(pt){const lo=bo();return lo.sender=pt.sender??"",lo.codeId=pt.codeId!==void 0&&pt.codeId!==null?nt.Long.fromValue(pt.codeId):nt.Long.UZERO,lo.newInstantiatePermission=pt.newInstantiatePermission!==void 0&&pt.newInstantiatePermission!==null?Vr.AccessConfig.fromPartial(pt.newInstantiatePermission):void 0,lo}};function oo(){return{}}_e.MsgUpdateInstantiateConfigResponse={encode(pt,lo=st.Writer.create()){return lo},decode(pt,lo){const so=pt instanceof st.Reader?pt:new st.Reader(pt);let wo=lo===void 0?so.len:so.pos+lo;const xt=oo();for(;so.pos>>3){default:so.skipType(Mt&7);break}}return xt},fromJSON(pt){return{}},toJSON(pt){return{}},fromPartial(pt){return oo()}};class Ro{constructor(lo){this.rpc=lo,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(lo){const so=_e.MsgStoreCode.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","StoreCode",so).then(wo=>_e.MsgStoreCodeResponse.decode(new st.Reader(wo)))}InstantiateContract(lo){const so=_e.MsgInstantiateContract.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract",so).then(wo=>_e.MsgInstantiateContractResponse.decode(new st.Reader(wo)))}InstantiateContract2(lo){const so=_e.MsgInstantiateContract2.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","InstantiateContract2",so).then(wo=>_e.MsgInstantiateContract2Response.decode(new st.Reader(wo)))}ExecuteContract(lo){const so=_e.MsgExecuteContract.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ExecuteContract",so).then(wo=>_e.MsgExecuteContractResponse.decode(new st.Reader(wo)))}MigrateContract(lo){const so=_e.MsgMigrateContract.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","MigrateContract",so).then(wo=>_e.MsgMigrateContractResponse.decode(new st.Reader(wo)))}UpdateAdmin(lo){const so=_e.MsgUpdateAdmin.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateAdmin",so).then(wo=>_e.MsgUpdateAdminResponse.decode(new st.Reader(wo)))}ClearAdmin(lo){const so=_e.MsgClearAdmin.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","ClearAdmin",so).then(wo=>_e.MsgClearAdminResponse.decode(new st.Reader(wo)))}UpdateInstantiateConfig(lo){const so=_e.MsgUpdateInstantiateConfig.encode(lo).finish();return this.rpc.request("cosmwasm.wasm.v1.Msg","UpdateInstantiateConfig",so).then(wo=>_e.MsgUpdateInstantiateConfigResponse.decode(new st.Reader(wo)))}}_e.MsgClientImpl=Ro})(tx),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$1=tx;messages$1.wasmTypes=[["/cosmwasm.wasm.v1.MsgClearAdmin",tx_1$1.MsgClearAdmin],["/cosmwasm.wasm.v1.MsgExecuteContract",tx_1$1.MsgExecuteContract],["/cosmwasm.wasm.v1.MsgMigrateContract",tx_1$1.MsgMigrateContract],["/cosmwasm.wasm.v1.MsgStoreCode",tx_1$1.MsgStoreCode],["/cosmwasm.wasm.v1.MsgInstantiateContract",tx_1$1.MsgInstantiateContract],["/cosmwasm.wasm.v1.MsgInstantiateContract2",tx_1$1.MsgInstantiateContract2],["/cosmwasm.wasm.v1.MsgUpdateAdmin",tx_1$1.MsgUpdateAdmin]];function isMsgStoreCodeEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgStoreCode"}messages$1.isMsgStoreCodeEncodeObject=isMsgStoreCodeEncodeObject;function isMsgInstantiateContractEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract"}messages$1.isMsgInstantiateContractEncodeObject=isMsgInstantiateContractEncodeObject;function isMsgInstantiateContract2EncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgInstantiateContract2"}messages$1.isMsgInstantiateContract2EncodeObject=isMsgInstantiateContract2EncodeObject;function isMsgUpdateAdminEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgUpdateAdmin"}messages$1.isMsgUpdateAdminEncodeObject=isMsgUpdateAdminEncodeObject;function isMsgClearAdminEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgClearAdmin"}messages$1.isMsgClearAdminEncodeObject=isMsgClearAdminEncodeObject;function isMsgMigrateEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgMigrateContract"}messages$1.isMsgMigrateEncodeObject=isMsgMigrateEncodeObject;function isMsgExecuteEncodeObject(_e){return _e.typeUrl==="/cosmwasm.wasm.v1.MsgExecuteContract"}messages$1.isMsgExecuteEncodeObject=isMsgExecuteEncodeObject;var queries={},query={};(function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(io,co,mo,Bo){Bo===void 0&&(Bo=mo);var So=Object.getOwnPropertyDescriptor(co,mo);(!So||("get"in So?!co.__esModule:So.writable||So.configurable))&&(So={enumerable:!0,get:function(){return co[mo]}}),Object.defineProperty(io,Bo,So)}:function(io,co,mo,Bo){Bo===void 0&&(Bo=mo),io[Bo]=co[mo]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(io,co){Object.defineProperty(io,"default",{enumerable:!0,value:co})}:function(io,co){io.default=co}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(io){if(io&&io.__esModule)return io;var co={};if(io!=null)for(var mo in io)mo!=="default"&&Object.prototype.hasOwnProperty.call(io,mo)&&cr(co,io,mo);return gr(co,io),co};Object.defineProperty(_e,"__esModule",{value:!0}),_e.QueryClientImpl=_e.QueryContractsByCreatorResponse=_e.QueryContractsByCreatorRequest=_e.QueryParamsResponse=_e.QueryParamsRequest=_e.QueryPinnedCodesResponse=_e.QueryPinnedCodesRequest=_e.QueryCodesResponse=_e.QueryCodesRequest=_e.QueryCodeResponse=_e.CodeInfoResponse=_e.QueryCodeRequest=_e.QuerySmartContractStateResponse=_e.QuerySmartContractStateRequest=_e.QueryRawContractStateResponse=_e.QueryRawContractStateRequest=_e.QueryAllContractStateResponse=_e.QueryAllContractStateRequest=_e.QueryContractsByCodeResponse=_e.QueryContractsByCodeRequest=_e.QueryContractHistoryResponse=_e.QueryContractHistoryRequest=_e.QueryContractInfoResponse=_e.QueryContractInfoRequest=_e.protobufPackage=void 0;const Vr=pagination,tt=types$1,nt=helpers,st=Cr(minimal);_e.protobufPackage="cosmwasm.wasm.v1";function dt(){return{address:""}}_e.QueryContractInfoRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=dt();for(;mo.pos>>3){case 1:So.address=mo.string();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):""}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),co},fromPartial(io){const co=dt();return co.address=io.address??"",co}};function kt(){return{address:"",contractInfo:void 0}}_e.QueryContractInfoResponse={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.contractInfo!==void 0&&tt.ContractInfo.encode(io.contractInfo,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=kt();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.contractInfo=tt.ContractInfo.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",contractInfo:(0,nt.isSet)(io.contractInfo)?tt.ContractInfo.fromJSON(io.contractInfo):void 0}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.contractInfo!==void 0&&(co.contractInfo=io.contractInfo?tt.ContractInfo.toJSON(io.contractInfo):void 0),co},fromPartial(io){const co=kt();return co.address=io.address??"",co.contractInfo=io.contractInfo!==void 0&&io.contractInfo!==null?tt.ContractInfo.fromPartial(io.contractInfo):void 0,co}};function qt(){return{address:"",pagination:void 0}}_e.QueryContractHistoryRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=qt();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=qt();return co.address=io.address??"",co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function ro(){return{entries:[],pagination:void 0}}_e.QueryContractHistoryResponse={encode(io,co=st.Writer.create()){for(const mo of io.entries)tt.ContractCodeHistoryEntry.encode(mo,co.uint32(10).fork()).ldelim();return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=ro();for(;mo.pos>>3){case 1:So.entries.push(tt.ContractCodeHistoryEntry.decode(mo,mo.uint32()));break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{entries:Array.isArray(io==null?void 0:io.entries)?io.entries.map(co=>tt.ContractCodeHistoryEntry.fromJSON(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.entries?co.entries=io.entries.map(mo=>mo?tt.ContractCodeHistoryEntry.toJSON(mo):void 0):co.entries=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=ro();return co.entries=((mo=io.entries)==null?void 0:mo.map(Bo=>tt.ContractCodeHistoryEntry.fromPartial(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function ht(){return{codeId:nt.Long.UZERO,pagination:void 0}}_e.QueryContractsByCodeRequest={encode(io,co=st.Writer.create()){return io.codeId.isZero()||co.uint32(8).uint64(io.codeId),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=ht();for(;mo.pos>>3){case 1:So.codeId=mo.uint64();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeId:(0,nt.isSet)(io.codeId)?nt.Long.fromValue(io.codeId):nt.Long.UZERO,pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.codeId!==void 0&&(co.codeId=(io.codeId||nt.Long.UZERO).toString()),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=ht();return co.codeId=io.codeId!==void 0&&io.codeId!==null?nt.Long.fromValue(io.codeId):nt.Long.UZERO,co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function po(){return{contracts:[],pagination:void 0}}_e.QueryContractsByCodeResponse={encode(io,co=st.Writer.create()){for(const mo of io.contracts)co.uint32(10).string(mo);return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=po();for(;mo.pos>>3){case 1:So.contracts.push(mo.string());break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{contracts:Array.isArray(io==null?void 0:io.contracts)?io.contracts.map(co=>String(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.contracts?co.contracts=io.contracts.map(mo=>mo):co.contracts=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=po();return co.contracts=((mo=io.contracts)==null?void 0:mo.map(Bo=>Bo))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function no(){return{address:"",pagination:void 0}}_e.QueryAllContractStateRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=no();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=no();return co.address=io.address??"",co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function Nt(){return{models:[],pagination:void 0}}_e.QueryAllContractStateResponse={encode(io,co=st.Writer.create()){for(const mo of io.models)tt.Model.encode(mo,co.uint32(10).fork()).ldelim();return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Nt();for(;mo.pos>>3){case 1:So.models.push(tt.Model.decode(mo,mo.uint32()));break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{models:Array.isArray(io==null?void 0:io.models)?io.models.map(co=>tt.Model.fromJSON(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.models?co.models=io.models.map(mo=>mo?tt.Model.toJSON(mo):void 0):co.models=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=Nt();return co.models=((mo=io.models)==null?void 0:mo.map(Bo=>tt.Model.fromPartial(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function eo(){return{address:"",queryData:new Uint8Array}}_e.QueryRawContractStateRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.queryData.length!==0&&co.uint32(18).bytes(io.queryData),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=eo();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.queryData=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",queryData:(0,nt.isSet)(io.queryData)?(0,nt.bytesFromBase64)(io.queryData):new Uint8Array}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.queryData!==void 0&&(co.queryData=(0,nt.base64FromBytes)(io.queryData!==void 0?io.queryData:new Uint8Array)),co},fromPartial(io){const co=eo();return co.address=io.address??"",co.queryData=io.queryData??new Uint8Array,co}};function Wt(){return{data:new Uint8Array}}_e.QueryRawContractStateResponse={encode(io,co=st.Writer.create()){return io.data.length!==0&&co.uint32(10).bytes(io.data),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Wt();for(;mo.pos>>3){case 1:So.data=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{data:(0,nt.isSet)(io.data)?(0,nt.bytesFromBase64)(io.data):new Uint8Array}},toJSON(io){const co={};return io.data!==void 0&&(co.data=(0,nt.base64FromBytes)(io.data!==void 0?io.data:new Uint8Array)),co},fromPartial(io){const co=Wt();return co.data=io.data??new Uint8Array,co}};function St(){return{address:"",queryData:new Uint8Array}}_e.QuerySmartContractStateRequest={encode(io,co=st.Writer.create()){return io.address!==""&&co.uint32(10).string(io.address),io.queryData.length!==0&&co.uint32(18).bytes(io.queryData),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=St();for(;mo.pos>>3){case 1:So.address=mo.string();break;case 2:So.queryData=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{address:(0,nt.isSet)(io.address)?String(io.address):"",queryData:(0,nt.isSet)(io.queryData)?(0,nt.bytesFromBase64)(io.queryData):new Uint8Array}},toJSON(io){const co={};return io.address!==void 0&&(co.address=io.address),io.queryData!==void 0&&(co.queryData=(0,nt.base64FromBytes)(io.queryData!==void 0?io.queryData:new Uint8Array)),co},fromPartial(io){const co=St();return co.address=io.address??"",co.queryData=io.queryData??new Uint8Array,co}};function Ot(){return{data:new Uint8Array}}_e.QuerySmartContractStateResponse={encode(io,co=st.Writer.create()){return io.data.length!==0&&co.uint32(10).bytes(io.data),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Ot();for(;mo.pos>>3){case 1:So.data=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{data:(0,nt.isSet)(io.data)?(0,nt.bytesFromBase64)(io.data):new Uint8Array}},toJSON(io){const co={};return io.data!==void 0&&(co.data=(0,nt.base64FromBytes)(io.data!==void 0?io.data:new Uint8Array)),co},fromPartial(io){const co=Ot();return co.data=io.data??new Uint8Array,co}};function uo(){return{codeId:nt.Long.UZERO}}_e.QueryCodeRequest={encode(io,co=st.Writer.create()){return io.codeId.isZero()||co.uint32(8).uint64(io.codeId),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=uo();for(;mo.pos>>3){case 1:So.codeId=mo.uint64();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeId:(0,nt.isSet)(io.codeId)?nt.Long.fromValue(io.codeId):nt.Long.UZERO}},toJSON(io){const co={};return io.codeId!==void 0&&(co.codeId=(io.codeId||nt.Long.UZERO).toString()),co},fromPartial(io){const co=uo();return co.codeId=io.codeId!==void 0&&io.codeId!==null?nt.Long.fromValue(io.codeId):nt.Long.UZERO,co}};function go(){return{codeId:nt.Long.UZERO,creator:"",dataHash:new Uint8Array,instantiatePermission:void 0}}_e.CodeInfoResponse={encode(io,co=st.Writer.create()){return io.codeId.isZero()||co.uint32(8).uint64(io.codeId),io.creator!==""&&co.uint32(18).string(io.creator),io.dataHash.length!==0&&co.uint32(26).bytes(io.dataHash),io.instantiatePermission!==void 0&&tt.AccessConfig.encode(io.instantiatePermission,co.uint32(50).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=go();for(;mo.pos>>3){case 1:So.codeId=mo.uint64();break;case 2:So.creator=mo.string();break;case 3:So.dataHash=mo.bytes();break;case 6:So.instantiatePermission=tt.AccessConfig.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeId:(0,nt.isSet)(io.codeId)?nt.Long.fromValue(io.codeId):nt.Long.UZERO,creator:(0,nt.isSet)(io.creator)?String(io.creator):"",dataHash:(0,nt.isSet)(io.dataHash)?(0,nt.bytesFromBase64)(io.dataHash):new Uint8Array,instantiatePermission:(0,nt.isSet)(io.instantiatePermission)?tt.AccessConfig.fromJSON(io.instantiatePermission):void 0}},toJSON(io){const co={};return io.codeId!==void 0&&(co.codeId=(io.codeId||nt.Long.UZERO).toString()),io.creator!==void 0&&(co.creator=io.creator),io.dataHash!==void 0&&(co.dataHash=(0,nt.base64FromBytes)(io.dataHash!==void 0?io.dataHash:new Uint8Array)),io.instantiatePermission!==void 0&&(co.instantiatePermission=io.instantiatePermission?tt.AccessConfig.toJSON(io.instantiatePermission):void 0),co},fromPartial(io){const co=go();return co.codeId=io.codeId!==void 0&&io.codeId!==null?nt.Long.fromValue(io.codeId):nt.Long.UZERO,co.creator=io.creator??"",co.dataHash=io.dataHash??new Uint8Array,co.instantiatePermission=io.instantiatePermission!==void 0&&io.instantiatePermission!==null?tt.AccessConfig.fromPartial(io.instantiatePermission):void 0,co}};function bo(){return{codeInfo:void 0,data:new Uint8Array}}_e.QueryCodeResponse={encode(io,co=st.Writer.create()){return io.codeInfo!==void 0&&_e.CodeInfoResponse.encode(io.codeInfo,co.uint32(10).fork()).ldelim(),io.data.length!==0&&co.uint32(18).bytes(io.data),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=bo();for(;mo.pos>>3){case 1:So.codeInfo=_e.CodeInfoResponse.decode(mo,mo.uint32());break;case 2:So.data=mo.bytes();break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeInfo:(0,nt.isSet)(io.codeInfo)?_e.CodeInfoResponse.fromJSON(io.codeInfo):void 0,data:(0,nt.isSet)(io.data)?(0,nt.bytesFromBase64)(io.data):new Uint8Array}},toJSON(io){const co={};return io.codeInfo!==void 0&&(co.codeInfo=io.codeInfo?_e.CodeInfoResponse.toJSON(io.codeInfo):void 0),io.data!==void 0&&(co.data=(0,nt.base64FromBytes)(io.data!==void 0?io.data:new Uint8Array)),co},fromPartial(io){const co=bo();return co.codeInfo=io.codeInfo!==void 0&&io.codeInfo!==null?_e.CodeInfoResponse.fromPartial(io.codeInfo):void 0,co.data=io.data??new Uint8Array,co}};function oo(){return{pagination:void 0}}_e.QueryCodesRequest={encode(io,co=st.Writer.create()){return io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(10).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=oo();for(;mo.pos>>3){case 1:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=oo();return co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function Ro(){return{codeInfos:[],pagination:void 0}}_e.QueryCodesResponse={encode(io,co=st.Writer.create()){for(const mo of io.codeInfos)_e.CodeInfoResponse.encode(mo,co.uint32(10).fork()).ldelim();return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Ro();for(;mo.pos>>3){case 1:So.codeInfos.push(_e.CodeInfoResponse.decode(mo,mo.uint32()));break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{codeInfos:Array.isArray(io==null?void 0:io.codeInfos)?io.codeInfos.map(co=>_e.CodeInfoResponse.fromJSON(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.codeInfos?co.codeInfos=io.codeInfos.map(mo=>mo?_e.CodeInfoResponse.toJSON(mo):void 0):co.codeInfos=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=Ro();return co.codeInfos=((mo=io.codeInfos)==null?void 0:mo.map(Bo=>_e.CodeInfoResponse.fromPartial(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function pt(){return{pagination:void 0}}_e.QueryPinnedCodesRequest={encode(io,co=st.Writer.create()){return io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=pt();for(;mo.pos>>3){case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=pt();return co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function lo(){return{codeIds:[],pagination:void 0}}_e.QueryPinnedCodesResponse={encode(io,co=st.Writer.create()){co.uint32(10).fork();for(const mo of io.codeIds)co.uint64(mo);return co.ldelim(),io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=lo();for(;mo.pos>>3){case 1:if((Tt&7)===2){const vo=mo.uint32()+mo.pos;for(;mo.posnt.Long.fromValue(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.codeIds?co.codeIds=io.codeIds.map(mo=>(mo||nt.Long.UZERO).toString()):co.codeIds=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=lo();return co.codeIds=((mo=io.codeIds)==null?void 0:mo.map(Bo=>nt.Long.fromValue(Bo)))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};function so(){return{}}_e.QueryParamsRequest={encode(io,co=st.Writer.create()){return co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=so();for(;mo.pos>>3){default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{}},toJSON(io){return{}},fromPartial(io){return so()}};function wo(){return{params:void 0}}_e.QueryParamsResponse={encode(io,co=st.Writer.create()){return io.params!==void 0&&tt.Params.encode(io.params,co.uint32(10).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=wo();for(;mo.pos>>3){case 1:So.params=tt.Params.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{params:(0,nt.isSet)(io.params)?tt.Params.fromJSON(io.params):void 0}},toJSON(io){const co={};return io.params!==void 0&&(co.params=io.params?tt.Params.toJSON(io.params):void 0),co},fromPartial(io){const co=wo();return co.params=io.params!==void 0&&io.params!==null?tt.Params.fromPartial(io.params):void 0,co}};function xt(){return{creatorAddress:"",pagination:void 0}}_e.QueryContractsByCreatorRequest={encode(io,co=st.Writer.create()){return io.creatorAddress!==""&&co.uint32(10).string(io.creatorAddress),io.pagination!==void 0&&Vr.PageRequest.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=xt();for(;mo.pos>>3){case 1:So.creatorAddress=mo.string();break;case 2:So.pagination=Vr.PageRequest.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{creatorAddress:(0,nt.isSet)(io.creatorAddress)?String(io.creatorAddress):"",pagination:(0,nt.isSet)(io.pagination)?Vr.PageRequest.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.creatorAddress!==void 0&&(co.creatorAddress=io.creatorAddress),io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageRequest.toJSON(io.pagination):void 0),co},fromPartial(io){const co=xt();return co.creatorAddress=io.creatorAddress??"",co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageRequest.fromPartial(io.pagination):void 0,co}};function Mt(){return{contractAddresses:[],pagination:void 0}}_e.QueryContractsByCreatorResponse={encode(io,co=st.Writer.create()){for(const mo of io.contractAddresses)co.uint32(10).string(mo);return io.pagination!==void 0&&Vr.PageResponse.encode(io.pagination,co.uint32(18).fork()).ldelim(),co},decode(io,co){const mo=io instanceof st.Reader?io:new st.Reader(io);let Bo=co===void 0?mo.len:mo.pos+co;const So=Mt();for(;mo.pos>>3){case 1:So.contractAddresses.push(mo.string());break;case 2:So.pagination=Vr.PageResponse.decode(mo,mo.uint32());break;default:mo.skipType(Tt&7);break}}return So},fromJSON(io){return{contractAddresses:Array.isArray(io==null?void 0:io.contractAddresses)?io.contractAddresses.map(co=>String(co)):[],pagination:(0,nt.isSet)(io.pagination)?Vr.PageResponse.fromJSON(io.pagination):void 0}},toJSON(io){const co={};return io.contractAddresses?co.contractAddresses=io.contractAddresses.map(mo=>mo):co.contractAddresses=[],io.pagination!==void 0&&(co.pagination=io.pagination?Vr.PageResponse.toJSON(io.pagination):void 0),co},fromPartial(io){var mo;const co=Mt();return co.contractAddresses=((mo=io.contractAddresses)==null?void 0:mo.map(Bo=>Bo))||[],co.pagination=io.pagination!==void 0&&io.pagination!==null?Vr.PageResponse.fromPartial(io.pagination):void 0,co}};class ho{constructor(co){this.rpc=co,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(co){const mo=_e.QueryContractInfoRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractInfo",mo).then(Bo=>_e.QueryContractInfoResponse.decode(new st.Reader(Bo)))}ContractHistory(co){const mo=_e.QueryContractHistoryRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractHistory",mo).then(Bo=>_e.QueryContractHistoryResponse.decode(new st.Reader(Bo)))}ContractsByCode(co){const mo=_e.QueryContractsByCodeRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCode",mo).then(Bo=>_e.QueryContractsByCodeResponse.decode(new st.Reader(Bo)))}AllContractState(co){const mo=_e.QueryAllContractStateRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","AllContractState",mo).then(Bo=>_e.QueryAllContractStateResponse.decode(new st.Reader(Bo)))}RawContractState(co){const mo=_e.QueryRawContractStateRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","RawContractState",mo).then(Bo=>_e.QueryRawContractStateResponse.decode(new st.Reader(Bo)))}SmartContractState(co){const mo=_e.QuerySmartContractStateRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","SmartContractState",mo).then(Bo=>_e.QuerySmartContractStateResponse.decode(new st.Reader(Bo)))}Code(co){const mo=_e.QueryCodeRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Code",mo).then(Bo=>_e.QueryCodeResponse.decode(new st.Reader(Bo)))}Codes(co={pagination:void 0}){const mo=_e.QueryCodesRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Codes",mo).then(Bo=>_e.QueryCodesResponse.decode(new st.Reader(Bo)))}PinnedCodes(co={pagination:void 0}){const mo=_e.QueryPinnedCodesRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","PinnedCodes",mo).then(Bo=>_e.QueryPinnedCodesResponse.decode(new st.Reader(Bo)))}Params(co={}){const mo=_e.QueryParamsRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","Params",mo).then(Bo=>_e.QueryParamsResponse.decode(new st.Reader(Bo)))}ContractsByCreator(co){const mo=_e.QueryContractsByCreatorRequest.encode(co).finish();return this.rpc.request("cosmwasm.wasm.v1.Query","ContractsByCreator",mo).then(Bo=>_e.QueryContractsByCreatorResponse.decode(new st.Reader(Bo)))}}_e.QueryClientImpl=ho})(query);var __importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(queries,"__esModule",{value:!0}),queries.setupWasmExtension=void 0;const encoding_1$4=build$c,stargate_1$2=build$a,query_1=query,long_1$1=__importDefault$3(long);function setupWasmExtension(_e){const cr=(0,stargate_1$2.createProtobufRpcClient)(_e),gr=new query_1.QueryClientImpl(cr);return{wasm:{listCodeInfo:async Cr=>{const Vr={pagination:(0,stargate_1$2.createPagination)(Cr)};return gr.Codes(Vr)},getCode:async Cr=>{const Vr={codeId:long_1$1.default.fromNumber(Cr)};return gr.Code(Vr)},listContractsByCodeId:async(Cr,Vr)=>{const tt={codeId:long_1$1.default.fromNumber(Cr),pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.ContractsByCode(tt)},listContractsByCreator:async(Cr,Vr)=>{const tt={creatorAddress:Cr,pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.ContractsByCreator(tt)},getContractInfo:async Cr=>{const Vr={address:Cr};return gr.ContractInfo(Vr)},getContractCodeHistory:async(Cr,Vr)=>{const tt={address:Cr,pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.ContractHistory(tt)},getAllContractState:async(Cr,Vr)=>{const tt={address:Cr,pagination:(0,stargate_1$2.createPagination)(Vr)};return gr.AllContractState(tt)},queryContractRaw:async(Cr,Vr)=>{const tt={address:Cr,queryData:Vr};return gr.RawContractState(tt)},queryContractSmart:async(Cr,Vr)=>{const tt={address:Cr,queryData:(0,encoding_1$4.toUtf8)(JSON.stringify(Vr))},{data:nt}=await gr.SmartContractState(tt);let st;try{st=(0,encoding_1$4.fromUtf8)(nt)}catch(dt){throw new Error(`Could not UTF-8 decode smart query response from contract: ${dt}`)}try{return JSON.parse(st)}catch(dt){throw new Error(`Could not JSON parse smart query response from contract: ${dt}`)}}}}}queries.setupWasmExtension=setupWasmExtension,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.setupWasmExtension=_e.wasmTypes=_e.isMsgUpdateAdminEncodeObject=_e.isMsgStoreCodeEncodeObject=_e.isMsgMigrateEncodeObject=_e.isMsgInstantiateContractEncodeObject=_e.isMsgInstantiateContract2EncodeObject=_e.isMsgExecuteEncodeObject=_e.isMsgClearAdminEncodeObject=_e.createWasmAminoConverters=void 0;var cr=aminomessages;Object.defineProperty(_e,"createWasmAminoConverters",{enumerable:!0,get:function(){return cr.createWasmAminoConverters}});var gr=messages$1;Object.defineProperty(_e,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return gr.isMsgClearAdminEncodeObject}}),Object.defineProperty(_e,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return gr.isMsgExecuteEncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return gr.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return gr.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(_e,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return gr.isMsgMigrateEncodeObject}}),Object.defineProperty(_e,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return gr.isMsgStoreCodeEncodeObject}}),Object.defineProperty(_e,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return gr.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(_e,"wasmTypes",{enumerable:!0,get:function(){return gr.wasmTypes}});var Cr=queries;Object.defineProperty(_e,"setupWasmExtension",{enumerable:!0,get:function(){return Cr.setupWasmExtension}})}(modules),Object.defineProperty(cosmwasmclient,"__esModule",{value:!0}),cosmwasmclient.CosmWasmClient=void 0;const encoding_1$3=build$c,math_1$2=build$b,stargate_1$1=build$a,tendermint_rpc_1$1=build$3,utils_1$3=build$6,abci_1=abci,types_1=types$1,modules_1$1=modules;class CosmWasmClient{static async connect(cr){let gr;const Cr=await tendermint_rpc_1$1.Tendermint37Client.connect(cr);return(await Cr.status()).nodeInfo.version.startsWith("0.37.")?gr=Cr:(Cr.disconnect(),gr=await tendermint_rpc_1$1.Tendermint34Client.connect(cr)),CosmWasmClient.create(gr)}static async create(cr){return new CosmWasmClient(cr)}constructor(cr){this.codesCache=new Map,cr&&(this.tmClient=cr,this.queryClient=stargate_1$1.QueryClient.withExtensions(cr,stargate_1$1.setupAuthExtension,stargate_1$1.setupBankExtension,modules_1$1.setupWasmExtension,stargate_1$1.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 cr=(await this.forceGetTmClient().status()).nodeInfo.network;if(!cr)throw new Error("Chain ID must not be empty");this.chainId=cr}return this.chainId}async getHeight(){return(await this.forceGetTmClient().status()).syncInfo.latestBlockHeight}async getAccount(cr){try{const gr=await this.forceGetQueryClient().auth.account(cr);return gr?(0,stargate_1$1.accountFromAny)(gr):null}catch(gr){if(/rpc error: code = NotFound/i.test(gr.toString()))return null;throw gr}}async getSequence(cr){const gr=await this.getAccount(cr);if(!gr)throw new Error(`Account '${cr}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:gr.accountNumber,sequence:gr.sequence}}async getBlock(cr){const gr=await this.forceGetTmClient().block(cr);return{id:(0,encoding_1$3.toHex)(gr.blockId.hash).toUpperCase(),header:{version:{block:new math_1$2.Uint53(gr.block.header.version.block).toString(),app:new math_1$2.Uint53(gr.block.header.version.app).toString()},height:gr.block.header.height,chainId:gr.block.header.chainId,time:(0,tendermint_rpc_1$1.toRfc3339WithNanoseconds)(gr.block.header.time)},txs:gr.block.txs}}async getBalance(cr,gr){return this.forceGetQueryClient().bank.balance(cr,gr)}async getTx(cr){return(await this.txsQuery(`tx.hash='${cr}'`))[0]??null}async searchTx(cr){let gr;if(typeof cr=="string")gr=cr;else if(Array.isArray(cr))gr=cr.map(Cr=>`${Cr.key}='${Cr.value}'`).join(" AND ");else throw new Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(gr)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(cr,gr=6e4,Cr=3e3){let Vr=!1;const tt=setTimeout(()=>{Vr=!0},gr),nt=async dt=>{if(Vr)throw new stargate_1$1.TimeoutError(`Transaction with ID ${dt} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${gr/1e3} seconds.`,dt);await(0,utils_1$3.sleep)(Cr);const kt=await this.getTx(dt);return kt?{code:kt.code,height:kt.height,txIndex:kt.txIndex,rawLog:kt.rawLog,transactionHash:dt,events:kt.events,msgResponses:kt.msgResponses,gasUsed:kt.gasUsed,gasWanted:kt.gasWanted}:nt(dt)},st=await this.broadcastTxSync(cr);return new Promise((dt,kt)=>nt(st).then(qt=>{clearTimeout(tt),dt(qt)},qt=>{clearTimeout(tt),kt(qt)}))}async broadcastTxSync(cr){const gr=await this.forceGetTmClient().broadcastTxSync({tx:cr});return gr.code?Promise.reject(new stargate_1$1.BroadcastTxError(gr.code,gr.codespace??"",gr.log)):(0,encoding_1$3.toHex)(gr.hash).toUpperCase()}async getCodes(){const cr=[];let gr;do{const{codeInfos:Cr,pagination:Vr}=await this.forceGetQueryClient().wasm.listCodeInfo(gr),tt=Cr||[];cr.push(...tt),gr=Vr==null?void 0:Vr.nextKey}while((gr==null?void 0:gr.length)!==0);return cr.map(Cr=>((0,utils_1$3.assert)(Cr.creator&&Cr.codeId&&Cr.dataHash,"entry incomplete"),{id:Cr.codeId.toNumber(),creator:Cr.creator,checksum:(0,encoding_1$3.toHex)(Cr.dataHash)}))}async getCodeDetails(cr){const gr=this.codesCache.get(cr);if(gr)return gr;const{codeInfo:Cr,data:Vr}=await this.forceGetQueryClient().wasm.getCode(cr);(0,utils_1$3.assert)(Cr&&Cr.codeId&&Cr.creator&&Cr.dataHash&&Vr,"codeInfo missing or incomplete");const tt={id:Cr.codeId.toNumber(),creator:Cr.creator,checksum:(0,encoding_1$3.toHex)(Cr.dataHash),data:Vr};return this.codesCache.set(cr,tt),tt}async getContracts(cr){const gr=[];let Cr;do{const{contracts:Vr,pagination:tt}=await this.forceGetQueryClient().wasm.listContractsByCodeId(cr,Cr);gr.push(...Vr),Cr=tt==null?void 0:tt.nextKey}while((Cr==null?void 0:Cr.length)!==0&&Cr!==void 0);return gr}async getContractsByCreator(cr){const gr=[];let Cr;do{const{contractAddresses:Vr,pagination:tt}=await this.forceGetQueryClient().wasm.listContractsByCreator(cr,Cr);gr.push(...Vr),Cr=tt==null?void 0:tt.nextKey}while((Cr==null?void 0:Cr.length)!==0&&Cr!==void 0);return gr}async getContract(cr){const{address:gr,contractInfo:Cr}=await this.forceGetQueryClient().wasm.getContractInfo(cr);if(!Cr)throw new Error(`No contract found at address "${cr}"`);return(0,utils_1$3.assert)(gr,"address missing"),(0,utils_1$3.assert)(Cr.codeId&&Cr.creator&&Cr.label,"contractInfo incomplete"),{address:gr,codeId:Cr.codeId.toNumber(),creator:Cr.creator,admin:Cr.admin||void 0,label:Cr.label,ibcPortId:Cr.ibcPortId||void 0}}async getContractCodeHistory(cr){const gr=await this.forceGetQueryClient().wasm.getContractCodeHistory(cr);if(!gr)throw new Error(`No contract history found for address "${cr}"`);const Cr={[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(gr.entries||[]).map(Vr=>((0,utils_1$3.assert)(Vr.operation&&Vr.codeId&&Vr.msg),{operation:Cr[Vr.operation],codeId:Vr.codeId.toNumber(),msg:JSON.parse((0,encoding_1$3.fromUtf8)(Vr.msg))}))}async queryContractRaw(cr,gr){await this.getContract(cr);const{data:Cr}=await this.forceGetQueryClient().wasm.queryContractRaw(cr,gr);return Cr??null}async queryContractSmart(cr,gr){try{return await this.forceGetQueryClient().wasm.queryContractSmart(cr,gr)}catch(Cr){throw Cr instanceof Error&&Cr.message.startsWith("not found: contract")?new Error(`No contract found at address "${cr}"`):Cr}}async txsQuery(cr){return(await this.forceGetTmClient().txSearchAll({query:cr})).txs.map(gr=>{const Cr=abci_1.TxMsgData.decode(gr.result.data??new Uint8Array);return{height:gr.height,txIndex:gr.index,hash:(0,encoding_1$3.toHex)(gr.hash).toUpperCase(),code:gr.result.code,events:gr.result.events.map(stargate_1$1.fromTendermintEvent),rawLog:gr.result.log||"",tx:gr.tx,msgResponses:Cr.msgResponses,gasUsed:gr.result.gasUsed,gasWanted:gr.result.gasWanted}})}}cosmwasmclient.CosmWasmClient=CosmWasmClient;var encoding={};Object.defineProperty(encoding,"__esModule",{value:!0}),encoding.fromBinary=encoding.toBinary=void 0;const encoding_1$2=build$c;function toBinary(_e){return(0,encoding_1$2.toBase64)((0,encoding_1$2.toUtf8)(JSON.stringify(_e)))}encoding.toBinary=toBinary;function fromBinary(_e){return JSON.parse((0,encoding_1$2.fromUtf8)((0,encoding_1$2.fromBase64)(_e)))}encoding.fromBinary=fromBinary;var instantiate2={};Object.defineProperty(instantiate2,"__esModule",{value:!0}),instantiate2.instantiate2Address=instantiate2._instantiate2AddressIntermediate=void 0;const crypto_1$1=build$7,encoding_1$1=build$c,math_1$1=build$b,utils_1$2=build$6;function hash$3(_e,cr){return new crypto_1$1.Sha256((0,crypto_1$1.sha256)((0,encoding_1$1.toAscii)(_e))).update(cr).digest()}function toUint64(_e){return math_1$1.Uint64.fromNumber(_e).toBytesBigEndian()}function _instantiate2AddressIntermediate(_e,cr,gr,Cr,Vr){(0,utils_1$2.assert)(_e.length===32);const tt=(0,encoding_1$1.fromBech32)(cr).data,nt=typeof Cr=="string"?(0,encoding_1$1.toUtf8)(Cr):new Uint8Array;if(gr.length<1||gr.length>64)throw new Error("Salt must be between 1 and 64 bytes");const st=new Uint8Array([...(0,encoding_1$1.toAscii)("wasm"),0,...toUint64(_e.length),..._e,...toUint64(tt.length),...tt,...toUint64(gr.length),...gr,...toUint64(nt.length),...nt]),dt=hash$3("module",st),kt=(0,encoding_1$1.toBech32)(Vr,dt);return{key:st,addressData:dt,address:kt}}instantiate2._instantiate2AddressIntermediate=_instantiate2AddressIntermediate;function instantiate2Address(_e,cr,gr,Cr){return _instantiate2AddressIntermediate(_e,cr,gr,null,Cr).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$3(_e){let cr=_e.length;for(;--cr>=0;)_e[cr]=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$3(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$3(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$3(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$3(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$3(base_length);const base_dist=new Array(D_CODES$1);zero$3(base_dist);function StaticTreeDesc(_e,cr,gr,Cr,Vr){this.static_tree=_e,this.extra_bits=cr,this.extra_base=gr,this.elems=Cr,this.max_length=Vr,this.has_stree=_e&&_e.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(_e,cr){this.dyn_tree=_e,this.max_code=0,this.stat_desc=cr}const d_code=_e=>_e<256?_dist_code[_e]:_dist_code[256+(_e>>>7)],put_short=(_e,cr)=>{_e.pending_buf[_e.pending++]=cr&255,_e.pending_buf[_e.pending++]=cr>>>8&255},send_bits=(_e,cr,gr)=>{_e.bi_valid>Buf_size-gr?(_e.bi_buf|=cr<<_e.bi_valid&65535,put_short(_e,_e.bi_buf),_e.bi_buf=cr>>Buf_size-_e.bi_valid,_e.bi_valid+=gr-Buf_size):(_e.bi_buf|=cr<<_e.bi_valid&65535,_e.bi_valid+=gr)},send_code=(_e,cr,gr)=>{send_bits(_e,gr[cr*2],gr[cr*2+1])},bi_reverse=(_e,cr)=>{let gr=0;do gr|=_e&1,_e>>>=1,gr<<=1;while(--cr>0);return gr>>>1},bi_flush=_e=>{_e.bi_valid===16?(put_short(_e,_e.bi_buf),_e.bi_buf=0,_e.bi_valid=0):_e.bi_valid>=8&&(_e.pending_buf[_e.pending++]=_e.bi_buf&255,_e.bi_buf>>=8,_e.bi_valid-=8)},gen_bitlen=(_e,cr)=>{const gr=cr.dyn_tree,Cr=cr.max_code,Vr=cr.stat_desc.static_tree,tt=cr.stat_desc.has_stree,nt=cr.stat_desc.extra_bits,st=cr.stat_desc.extra_base,dt=cr.stat_desc.max_length;let kt,qt,ro,ht,po,no,Nt=0;for(ht=0;ht<=MAX_BITS$1;ht++)_e.bl_count[ht]=0;for(gr[_e.heap[_e.heap_max]*2+1]=0,kt=_e.heap_max+1;ktdt&&(ht=dt,Nt++),gr[qt*2+1]=ht,!(qt>Cr)&&(_e.bl_count[ht]++,po=0,qt>=st&&(po=nt[qt-st]),no=gr[qt*2],_e.opt_len+=no*(ht+po),tt&&(_e.static_len+=no*(Vr[qt*2+1]+po)));if(Nt!==0){do{for(ht=dt-1;_e.bl_count[ht]===0;)ht--;_e.bl_count[ht]--,_e.bl_count[ht+1]+=2,_e.bl_count[dt]--,Nt-=2}while(Nt>0);for(ht=dt;ht!==0;ht--)for(qt=_e.bl_count[ht];qt!==0;)ro=_e.heap[--kt],!(ro>Cr)&&(gr[ro*2+1]!==ht&&(_e.opt_len+=(ht-gr[ro*2+1])*gr[ro*2],gr[ro*2+1]=ht),qt--)}},gen_codes=(_e,cr,gr)=>{const Cr=new Array(MAX_BITS$1+1);let Vr=0,tt,nt;for(tt=1;tt<=MAX_BITS$1;tt++)Vr=Vr+gr[tt-1]<<1,Cr[tt]=Vr;for(nt=0;nt<=cr;nt++){let st=_e[nt*2+1];st!==0&&(_e[nt*2]=bi_reverse(Cr[st]++,st))}},tr_static_init=()=>{let _e,cr,gr,Cr,Vr;const tt=new Array(MAX_BITS$1+1);for(gr=0,Cr=0;Cr>=7;Cr{let cr;for(cr=0;cr{_e.bi_valid>8?put_short(_e,_e.bi_buf):_e.bi_valid>0&&(_e.pending_buf[_e.pending++]=_e.bi_buf),_e.bi_buf=0,_e.bi_valid=0},smaller=(_e,cr,gr,Cr)=>{const Vr=cr*2,tt=gr*2;return _e[Vr]<_e[tt]||_e[Vr]===_e[tt]&&Cr[cr]<=Cr[gr]},pqdownheap=(_e,cr,gr)=>{const Cr=_e.heap[gr];let Vr=gr<<1;for(;Vr<=_e.heap_len&&(Vr<_e.heap_len&&smaller(cr,_e.heap[Vr+1],_e.heap[Vr],_e.depth)&&Vr++,!smaller(cr,Cr,_e.heap[Vr],_e.depth));)_e.heap[gr]=_e.heap[Vr],gr=Vr,Vr<<=1;_e.heap[gr]=Cr},compress_block=(_e,cr,gr)=>{let Cr,Vr,tt=0,nt,st;if(_e.sym_next!==0)do Cr=_e.pending_buf[_e.sym_buf+tt++]&255,Cr+=(_e.pending_buf[_e.sym_buf+tt++]&255)<<8,Vr=_e.pending_buf[_e.sym_buf+tt++],Cr===0?send_code(_e,Vr,cr):(nt=_length_code[Vr],send_code(_e,nt+LITERALS$1+1,cr),st=extra_lbits[nt],st!==0&&(Vr-=base_length[nt],send_bits(_e,Vr,st)),Cr--,nt=d_code(Cr),send_code(_e,nt,gr),st=extra_dbits[nt],st!==0&&(Cr-=base_dist[nt],send_bits(_e,Cr,st)));while(tt<_e.sym_next);send_code(_e,END_BLOCK,cr)},build_tree=(_e,cr)=>{const gr=cr.dyn_tree,Cr=cr.stat_desc.static_tree,Vr=cr.stat_desc.has_stree,tt=cr.stat_desc.elems;let nt,st,dt=-1,kt;for(_e.heap_len=0,_e.heap_max=HEAP_SIZE$1,nt=0;nt>1;nt>=1;nt--)pqdownheap(_e,gr,nt);kt=tt;do nt=_e.heap[1],_e.heap[1]=_e.heap[_e.heap_len--],pqdownheap(_e,gr,1),st=_e.heap[1],_e.heap[--_e.heap_max]=nt,_e.heap[--_e.heap_max]=st,gr[kt*2]=gr[nt*2]+gr[st*2],_e.depth[kt]=(_e.depth[nt]>=_e.depth[st]?_e.depth[nt]:_e.depth[st])+1,gr[nt*2+1]=gr[st*2+1]=kt,_e.heap[1]=kt++,pqdownheap(_e,gr,1);while(_e.heap_len>=2);_e.heap[--_e.heap_max]=_e.heap[1],gen_bitlen(_e,cr),gen_codes(gr,dt,_e.bl_count)},scan_tree=(_e,cr,gr)=>{let Cr,Vr=-1,tt,nt=cr[0*2+1],st=0,dt=7,kt=4;for(nt===0&&(dt=138,kt=3),cr[(gr+1)*2+1]=65535,Cr=0;Cr<=gr;Cr++)tt=nt,nt=cr[(Cr+1)*2+1],!(++st{let Cr,Vr=-1,tt,nt=cr[0*2+1],st=0,dt=7,kt=4;for(nt===0&&(dt=138,kt=3),Cr=0;Cr<=gr;Cr++)if(tt=nt,nt=cr[(Cr+1)*2+1],!(++st{let cr;for(scan_tree(_e,_e.dyn_ltree,_e.l_desc.max_code),scan_tree(_e,_e.dyn_dtree,_e.d_desc.max_code),build_tree(_e,_e.bl_desc),cr=BL_CODES$1-1;cr>=3&&_e.bl_tree[bl_order[cr]*2+1]===0;cr--);return _e.opt_len+=3*(cr+1)+5+5+4,cr},send_all_trees=(_e,cr,gr,Cr)=>{let Vr;for(send_bits(_e,cr-257,5),send_bits(_e,gr-1,5),send_bits(_e,Cr-4,4),Vr=0;Vr{let cr=4093624447,gr;for(gr=0;gr<=31;gr++,cr>>>=1)if(cr&1&&_e.dyn_ltree[gr*2]!==0)return Z_BINARY;if(_e.dyn_ltree[9*2]!==0||_e.dyn_ltree[10*2]!==0||_e.dyn_ltree[13*2]!==0)return Z_TEXT;for(gr=32;gr{static_init_done||(tr_static_init(),static_init_done=!0),_e.l_desc=new TreeDesc(_e.dyn_ltree,static_l_desc),_e.d_desc=new TreeDesc(_e.dyn_dtree,static_d_desc),_e.bl_desc=new TreeDesc(_e.bl_tree,static_bl_desc),_e.bi_buf=0,_e.bi_valid=0,init_block(_e)},_tr_stored_block$1=(_e,cr,gr,Cr)=>{send_bits(_e,(STORED_BLOCK<<1)+(Cr?1:0),3),bi_windup(_e),put_short(_e,gr),put_short(_e,~gr),gr&&_e.pending_buf.set(_e.window.subarray(cr,cr+gr),_e.pending),_e.pending+=gr},_tr_align$1=_e=>{send_bits(_e,STATIC_TREES<<1,3),send_code(_e,END_BLOCK,static_ltree),bi_flush(_e)},_tr_flush_block$1=(_e,cr,gr,Cr)=>{let Vr,tt,nt=0;_e.level>0?(_e.strm.data_type===Z_UNKNOWN$1&&(_e.strm.data_type=detect_data_type(_e)),build_tree(_e,_e.l_desc),build_tree(_e,_e.d_desc),nt=build_bl_tree(_e),Vr=_e.opt_len+3+7>>>3,tt=_e.static_len+3+7>>>3,tt<=Vr&&(Vr=tt)):Vr=tt=gr+5,gr+4<=Vr&&cr!==-1?_tr_stored_block$1(_e,cr,gr,Cr):_e.strategy===Z_FIXED$1||tt===Vr?(send_bits(_e,(STATIC_TREES<<1)+(Cr?1:0),3),compress_block(_e,static_ltree,static_dtree)):(send_bits(_e,(DYN_TREES<<1)+(Cr?1:0),3),send_all_trees(_e,_e.l_desc.max_code+1,_e.d_desc.max_code+1,nt+1),compress_block(_e,_e.dyn_ltree,_e.dyn_dtree)),init_block(_e),Cr&&bi_windup(_e)},_tr_tally$1=(_e,cr,gr)=>(_e.pending_buf[_e.sym_buf+_e.sym_next++]=cr,_e.pending_buf[_e.sym_buf+_e.sym_next++]=cr>>8,_e.pending_buf[_e.sym_buf+_e.sym_next++]=gr,cr===0?_e.dyn_ltree[gr*2]++:(_e.matches++,cr--,_e.dyn_ltree[(_length_code[gr]+LITERALS$1+1)*2]++,_e.dyn_dtree[d_code(cr)*2]++),_e.sym_next===_e.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=(_e,cr,gr,Cr)=>{let Vr=_e&65535|0,tt=_e>>>16&65535|0,nt=0;for(;gr!==0;){nt=gr>2e3?2e3:gr,gr-=nt;do Vr=Vr+cr[Cr++]|0,tt=tt+Vr|0;while(--nt);Vr%=65521,tt%=65521}return Vr|tt<<16|0};var adler32_1=adler32$2;const makeTable=()=>{let _e,cr=[];for(var gr=0;gr<256;gr++){_e=gr;for(var Cr=0;Cr<8;Cr++)_e=_e&1?3988292384^_e>>>1:_e>>>1;cr[gr]=_e}return cr},crcTable=new Uint32Array(makeTable()),crc32$2=(_e,cr,gr,Cr)=>{const Vr=crcTable,tt=Cr+gr;_e^=-1;for(let nt=Cr;nt>>8^Vr[(_e^cr[nt])&255];return _e^-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$2={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$2,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=(_e,cr)=>(_e.msg=msg$2[cr],cr),rank=_e=>_e*2-(_e>4?9:0),zero$2=_e=>{let cr=_e.length;for(;--cr>=0;)_e[cr]=0},slide_hash=_e=>{let cr,gr,Cr,Vr=_e.w_size;cr=_e.hash_size,Cr=cr;do gr=_e.head[--Cr],_e.head[Cr]=gr>=Vr?gr-Vr:0;while(--cr);cr=Vr,Cr=cr;do gr=_e.prev[--Cr],_e.prev[Cr]=gr>=Vr?gr-Vr:0;while(--cr)};let HASH_ZLIB=(_e,cr,gr)=>(cr<<_e.hash_shift^gr)&_e.hash_mask,HASH=HASH_ZLIB;const flush_pending=_e=>{const cr=_e.state;let gr=cr.pending;gr>_e.avail_out&&(gr=_e.avail_out),gr!==0&&(_e.output.set(cr.pending_buf.subarray(cr.pending_out,cr.pending_out+gr),_e.next_out),_e.next_out+=gr,cr.pending_out+=gr,_e.total_out+=gr,_e.avail_out-=gr,cr.pending-=gr,cr.pending===0&&(cr.pending_out=0))},flush_block_only=(_e,cr)=>{_tr_flush_block(_e,_e.block_start>=0?_e.block_start:-1,_e.strstart-_e.block_start,cr),_e.block_start=_e.strstart,flush_pending(_e.strm)},put_byte=(_e,cr)=>{_e.pending_buf[_e.pending++]=cr},putShortMSB=(_e,cr)=>{_e.pending_buf[_e.pending++]=cr>>>8&255,_e.pending_buf[_e.pending++]=cr&255},read_buf=(_e,cr,gr,Cr)=>{let Vr=_e.avail_in;return Vr>Cr&&(Vr=Cr),Vr===0?0:(_e.avail_in-=Vr,cr.set(_e.input.subarray(_e.next_in,_e.next_in+Vr),gr),_e.state.wrap===1?_e.adler=adler32$1(_e.adler,cr,Vr,gr):_e.state.wrap===2&&(_e.adler=crc32$1(_e.adler,cr,Vr,gr)),_e.next_in+=Vr,_e.total_in+=Vr,Vr)},longest_match=(_e,cr)=>{let gr=_e.max_chain_length,Cr=_e.strstart,Vr,tt,nt=_e.prev_length,st=_e.nice_match;const dt=_e.strstart>_e.w_size-MIN_LOOKAHEAD?_e.strstart-(_e.w_size-MIN_LOOKAHEAD):0,kt=_e.window,qt=_e.w_mask,ro=_e.prev,ht=_e.strstart+MAX_MATCH;let po=kt[Cr+nt-1],no=kt[Cr+nt];_e.prev_length>=_e.good_match&&(gr>>=2),st>_e.lookahead&&(st=_e.lookahead);do if(Vr=cr,!(kt[Vr+nt]!==no||kt[Vr+nt-1]!==po||kt[Vr]!==kt[Cr]||kt[++Vr]!==kt[Cr+1])){Cr+=2,Vr++;do;while(kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&kt[++Cr]===kt[++Vr]&&Crnt){if(_e.match_start=cr,nt=tt,tt>=st)break;po=kt[Cr+nt-1],no=kt[Cr+nt]}}while((cr=ro[cr&qt])>dt&&--gr!==0);return nt<=_e.lookahead?nt:_e.lookahead},fill_window=_e=>{const cr=_e.w_size;let gr,Cr,Vr;do{if(Cr=_e.window_size-_e.lookahead-_e.strstart,_e.strstart>=cr+(cr-MIN_LOOKAHEAD)&&(_e.window.set(_e.window.subarray(cr,cr+cr-Cr),0),_e.match_start-=cr,_e.strstart-=cr,_e.block_start-=cr,_e.insert>_e.strstart&&(_e.insert=_e.strstart),slide_hash(_e),Cr+=cr),_e.strm.avail_in===0)break;if(gr=read_buf(_e.strm,_e.window,_e.strstart+_e.lookahead,Cr),_e.lookahead+=gr,_e.lookahead+_e.insert>=MIN_MATCH)for(Vr=_e.strstart-_e.insert,_e.ins_h=_e.window[Vr],_e.ins_h=HASH(_e,_e.ins_h,_e.window[Vr+1]);_e.insert&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[Vr+MIN_MATCH-1]),_e.prev[Vr&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=Vr,Vr++,_e.insert--,!(_e.lookahead+_e.insert{let gr=_e.pending_buf_size-5>_e.w_size?_e.w_size:_e.pending_buf_size-5,Cr,Vr,tt,nt=0,st=_e.strm.avail_in;do{if(Cr=65535,tt=_e.bi_valid+42>>3,_e.strm.avail_outVr+_e.strm.avail_in&&(Cr=Vr+_e.strm.avail_in),Cr>tt&&(Cr=tt),Cr>8,_e.pending_buf[_e.pending-2]=~Cr,_e.pending_buf[_e.pending-1]=~Cr>>8,flush_pending(_e.strm),Vr&&(Vr>Cr&&(Vr=Cr),_e.strm.output.set(_e.window.subarray(_e.block_start,_e.block_start+Vr),_e.strm.next_out),_e.strm.next_out+=Vr,_e.strm.avail_out-=Vr,_e.strm.total_out+=Vr,_e.block_start+=Vr,Cr-=Vr),Cr&&(read_buf(_e.strm,_e.strm.output,_e.strm.next_out,Cr),_e.strm.next_out+=Cr,_e.strm.avail_out-=Cr,_e.strm.total_out+=Cr)}while(nt===0);return st-=_e.strm.avail_in,st&&(st>=_e.w_size?(_e.matches=2,_e.window.set(_e.strm.input.subarray(_e.strm.next_in-_e.w_size,_e.strm.next_in),0),_e.strstart=_e.w_size,_e.insert=_e.strstart):(_e.window_size-_e.strstart<=st&&(_e.strstart-=_e.w_size,_e.window.set(_e.window.subarray(_e.w_size,_e.w_size+_e.strstart),0),_e.matches<2&&_e.matches++,_e.insert>_e.strstart&&(_e.insert=_e.strstart)),_e.window.set(_e.strm.input.subarray(_e.strm.next_in-st,_e.strm.next_in),_e.strstart),_e.strstart+=st,_e.insert+=st>_e.w_size-_e.insert?_e.w_size-_e.insert:st),_e.block_start=_e.strstart),_e.high_water<_e.strstart&&(_e.high_water=_e.strstart),nt?BS_FINISH_DONE:cr!==Z_NO_FLUSH$2&&cr!==Z_FINISH$3&&_e.strm.avail_in===0&&_e.strstart===_e.block_start?BS_BLOCK_DONE:(tt=_e.window_size-_e.strstart,_e.strm.avail_in>tt&&_e.block_start>=_e.w_size&&(_e.block_start-=_e.w_size,_e.strstart-=_e.w_size,_e.window.set(_e.window.subarray(_e.w_size,_e.w_size+_e.strstart),0),_e.matches<2&&_e.matches++,tt+=_e.w_size,_e.insert>_e.strstart&&(_e.insert=_e.strstart)),tt>_e.strm.avail_in&&(tt=_e.strm.avail_in),tt&&(read_buf(_e.strm,_e.window,_e.strstart,tt),_e.strstart+=tt,_e.insert+=tt>_e.w_size-_e.insert?_e.w_size-_e.insert:tt),_e.high_water<_e.strstart&&(_e.high_water=_e.strstart),tt=_e.bi_valid+42>>3,tt=_e.pending_buf_size-tt>65535?65535:_e.pending_buf_size-tt,gr=tt>_e.w_size?_e.w_size:tt,Vr=_e.strstart-_e.block_start,(Vr>=gr||(Vr||cr===Z_FINISH$3)&&cr!==Z_NO_FLUSH$2&&_e.strm.avail_in===0&&Vr<=tt)&&(Cr=Vr>tt?tt:Vr,nt=cr===Z_FINISH$3&&_e.strm.avail_in===0&&Cr===Vr?1:0,_tr_stored_block(_e,_e.block_start,Cr,nt),_e.block_start+=Cr,flush_pending(_e.strm)),nt?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(_e,cr)=>{let gr,Cr;for(;;){if(_e.lookahead=MIN_MATCH&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart),gr!==0&&_e.strstart-gr<=_e.w_size-MIN_LOOKAHEAD&&(_e.match_length=longest_match(_e,gr)),_e.match_length>=MIN_MATCH)if(Cr=_tr_tally(_e,_e.strstart-_e.match_start,_e.match_length-MIN_MATCH),_e.lookahead-=_e.match_length,_e.match_length<=_e.max_lazy_match&&_e.lookahead>=MIN_MATCH){_e.match_length--;do _e.strstart++,_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart;while(--_e.match_length!==0);_e.strstart++}else _e.strstart+=_e.match_length,_e.match_length=0,_e.ins_h=_e.window[_e.strstart],_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+1]);else Cr=_tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++;if(Cr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}return _e.insert=_e.strstart{let gr,Cr,Vr;for(;;){if(_e.lookahead=MIN_MATCH&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart),_e.prev_length=_e.match_length,_e.prev_match=_e.match_start,_e.match_length=MIN_MATCH-1,gr!==0&&_e.prev_length<_e.max_lazy_match&&_e.strstart-gr<=_e.w_size-MIN_LOOKAHEAD&&(_e.match_length=longest_match(_e,gr),_e.match_length<=5&&(_e.strategy===Z_FILTERED||_e.match_length===MIN_MATCH&&_e.strstart-_e.match_start>4096)&&(_e.match_length=MIN_MATCH-1)),_e.prev_length>=MIN_MATCH&&_e.match_length<=_e.prev_length){Vr=_e.strstart+_e.lookahead-MIN_MATCH,Cr=_tr_tally(_e,_e.strstart-1-_e.prev_match,_e.prev_length-MIN_MATCH),_e.lookahead-=_e.prev_length-1,_e.prev_length-=2;do++_e.strstart<=Vr&&(_e.ins_h=HASH(_e,_e.ins_h,_e.window[_e.strstart+MIN_MATCH-1]),gr=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart);while(--_e.prev_length!==0);if(_e.match_available=0,_e.match_length=MIN_MATCH-1,_e.strstart++,Cr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}else if(_e.match_available){if(Cr=_tr_tally(_e,0,_e.window[_e.strstart-1]),Cr&&flush_block_only(_e,!1),_e.strstart++,_e.lookahead--,_e.strm.avail_out===0)return BS_NEED_MORE}else _e.match_available=1,_e.strstart++,_e.lookahead--}return _e.match_available&&(Cr=_tr_tally(_e,0,_e.window[_e.strstart-1]),_e.match_available=0),_e.insert=_e.strstart{let gr,Cr,Vr,tt;const nt=_e.window;for(;;){if(_e.lookahead<=MAX_MATCH){if(fill_window(_e),_e.lookahead<=MAX_MATCH&&cr===Z_NO_FLUSH$2)return BS_NEED_MORE;if(_e.lookahead===0)break}if(_e.match_length=0,_e.lookahead>=MIN_MATCH&&_e.strstart>0&&(Vr=_e.strstart-1,Cr=nt[Vr],Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr])){tt=_e.strstart+MAX_MATCH;do;while(Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Cr===nt[++Vr]&&Vr_e.lookahead&&(_e.match_length=_e.lookahead)}if(_e.match_length>=MIN_MATCH?(gr=_tr_tally(_e,1,_e.match_length-MIN_MATCH),_e.lookahead-=_e.match_length,_e.strstart+=_e.match_length,_e.match_length=0):(gr=_tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++),gr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}return _e.insert=0,cr===Z_FINISH$3?(flush_block_only(_e,!0),_e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):_e.sym_next&&(flush_block_only(_e,!1),_e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(_e,cr)=>{let gr;for(;;){if(_e.lookahead===0&&(fill_window(_e),_e.lookahead===0)){if(cr===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(_e.match_length=0,gr=_tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++,gr&&(flush_block_only(_e,!1),_e.strm.avail_out===0))return BS_NEED_MORE}return _e.insert=0,cr===Z_FINISH$3?(flush_block_only(_e,!0),_e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):_e.sym_next&&(flush_block_only(_e,!1),_e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(_e,cr,gr,Cr,Vr){this.good_length=_e,this.max_lazy=cr,this.nice_length=gr,this.max_chain=Cr,this.func=Vr}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=_e=>{_e.window_size=2*_e.w_size,zero$2(_e.head),_e.max_lazy_match=configuration_table[_e.level].max_lazy,_e.good_match=configuration_table[_e.level].good_length,_e.nice_match=configuration_table[_e.level].nice_length,_e.max_chain_length=configuration_table[_e.level].max_chain,_e.strstart=0,_e.block_start=0,_e.lookahead=0,_e.insert=0,_e.match_length=_e.prev_length=MIN_MATCH-1,_e.match_available=0,_e.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$2(this.dyn_ltree),zero$2(this.dyn_dtree),zero$2(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$2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero$2(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=_e=>{if(!_e)return 1;const cr=_e.state;return!cr||cr.strm!==_e||cr.status!==INIT_STATE&&cr.status!==GZIP_STATE&&cr.status!==EXTRA_STATE&&cr.status!==NAME_STATE&&cr.status!==COMMENT_STATE&&cr.status!==HCRC_STATE&&cr.status!==BUSY_STATE&&cr.status!==FINISH_STATE?1:0},deflateResetKeep=_e=>{if(deflateStateCheck(_e))return err(_e,Z_STREAM_ERROR$2);_e.total_in=_e.total_out=0,_e.data_type=Z_UNKNOWN;const cr=_e.state;return cr.pending=0,cr.pending_out=0,cr.wrap<0&&(cr.wrap=-cr.wrap),cr.status=cr.wrap===2?GZIP_STATE:cr.wrap?INIT_STATE:BUSY_STATE,_e.adler=cr.wrap===2?0:1,cr.last_flush=-2,_tr_init(cr),Z_OK$3},deflateReset=_e=>{const cr=deflateResetKeep(_e);return cr===Z_OK$3&&lm_init(_e.state),cr},deflateSetHeader=(_e,cr)=>deflateStateCheck(_e)||_e.state.wrap!==2?Z_STREAM_ERROR$2:(_e.state.gzhead=cr,Z_OK$3),deflateInit2=(_e,cr,gr,Cr,Vr,tt)=>{if(!_e)return Z_STREAM_ERROR$2;let nt=1;if(cr===Z_DEFAULT_COMPRESSION$1&&(cr=6),Cr<0?(nt=0,Cr=-Cr):Cr>15&&(nt=2,Cr-=16),Vr<1||Vr>MAX_MEM_LEVEL||gr!==Z_DEFLATED$2||Cr<8||Cr>15||cr<0||cr>9||tt<0||tt>Z_FIXED||Cr===8&&nt!==1)return err(_e,Z_STREAM_ERROR$2);Cr===8&&(Cr=9);const st=new DeflateState;return _e.state=st,st.strm=_e,st.status=INIT_STATE,st.wrap=nt,st.gzhead=null,st.w_bits=Cr,st.w_size=1<deflateInit2(_e,cr,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(_e,cr)=>{if(deflateStateCheck(_e)||cr>Z_BLOCK$1||cr<0)return _e?err(_e,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const gr=_e.state;if(!_e.output||_e.avail_in!==0&&!_e.input||gr.status===FINISH_STATE&&cr!==Z_FINISH$3)return err(_e,_e.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const Cr=gr.last_flush;if(gr.last_flush=cr,gr.pending!==0){if(flush_pending(_e),_e.avail_out===0)return gr.last_flush=-1,Z_OK$3}else if(_e.avail_in===0&&rank(cr)<=rank(Cr)&&cr!==Z_FINISH$3)return err(_e,Z_BUF_ERROR$1);if(gr.status===FINISH_STATE&&_e.avail_in!==0)return err(_e,Z_BUF_ERROR$1);if(gr.status===INIT_STATE&&gr.wrap===0&&(gr.status=BUSY_STATE),gr.status===INIT_STATE){let Vr=Z_DEFLATED$2+(gr.w_bits-8<<4)<<8,tt=-1;if(gr.strategy>=Z_HUFFMAN_ONLY||gr.level<2?tt=0:gr.level<6?tt=1:gr.level===6?tt=2:tt=3,Vr|=tt<<6,gr.strstart!==0&&(Vr|=PRESET_DICT),Vr+=31-Vr%31,putShortMSB(gr,Vr),gr.strstart!==0&&(putShortMSB(gr,_e.adler>>>16),putShortMSB(gr,_e.adler&65535)),_e.adler=1,gr.status=BUSY_STATE,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3}if(gr.status===GZIP_STATE){if(_e.adler=0,put_byte(gr,31),put_byte(gr,139),put_byte(gr,8),gr.gzhead)put_byte(gr,(gr.gzhead.text?1:0)+(gr.gzhead.hcrc?2:0)+(gr.gzhead.extra?4:0)+(gr.gzhead.name?8:0)+(gr.gzhead.comment?16:0)),put_byte(gr,gr.gzhead.time&255),put_byte(gr,gr.gzhead.time>>8&255),put_byte(gr,gr.gzhead.time>>16&255),put_byte(gr,gr.gzhead.time>>24&255),put_byte(gr,gr.level===9?2:gr.strategy>=Z_HUFFMAN_ONLY||gr.level<2?4:0),put_byte(gr,gr.gzhead.os&255),gr.gzhead.extra&&gr.gzhead.extra.length&&(put_byte(gr,gr.gzhead.extra.length&255),put_byte(gr,gr.gzhead.extra.length>>8&255)),gr.gzhead.hcrc&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending,0)),gr.gzindex=0,gr.status=EXTRA_STATE;else if(put_byte(gr,0),put_byte(gr,0),put_byte(gr,0),put_byte(gr,0),put_byte(gr,0),put_byte(gr,gr.level===9?2:gr.strategy>=Z_HUFFMAN_ONLY||gr.level<2?4:0),put_byte(gr,OS_CODE),gr.status=BUSY_STATE,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3}if(gr.status===EXTRA_STATE){if(gr.gzhead.extra){let Vr=gr.pending,tt=(gr.gzhead.extra.length&65535)-gr.gzindex;for(;gr.pending+tt>gr.pending_buf_size;){let st=gr.pending_buf_size-gr.pending;if(gr.pending_buf.set(gr.gzhead.extra.subarray(gr.gzindex,gr.gzindex+st),gr.pending),gr.pending=gr.pending_buf_size,gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),gr.gzindex+=st,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3;Vr=0,tt-=st}let nt=new Uint8Array(gr.gzhead.extra);gr.pending_buf.set(nt.subarray(gr.gzindex,gr.gzindex+tt),gr.pending),gr.pending+=tt,gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),gr.gzindex=0}gr.status=NAME_STATE}if(gr.status===NAME_STATE){if(gr.gzhead.name){let Vr=gr.pending,tt;do{if(gr.pending===gr.pending_buf_size){if(gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3;Vr=0}gr.gzindexVr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),gr.gzindex=0}gr.status=COMMENT_STATE}if(gr.status===COMMENT_STATE){if(gr.gzhead.comment){let Vr=gr.pending,tt;do{if(gr.pending===gr.pending_buf_size){if(gr.gzhead.hcrc&&gr.pending>Vr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr)),flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3;Vr=0}gr.gzindexVr&&(_e.adler=crc32$1(_e.adler,gr.pending_buf,gr.pending-Vr,Vr))}gr.status=HCRC_STATE}if(gr.status===HCRC_STATE){if(gr.gzhead.hcrc){if(gr.pending+2>gr.pending_buf_size&&(flush_pending(_e),gr.pending!==0))return gr.last_flush=-1,Z_OK$3;put_byte(gr,_e.adler&255),put_byte(gr,_e.adler>>8&255),_e.adler=0}if(gr.status=BUSY_STATE,flush_pending(_e),gr.pending!==0)return gr.last_flush=-1,Z_OK$3}if(_e.avail_in!==0||gr.lookahead!==0||cr!==Z_NO_FLUSH$2&&gr.status!==FINISH_STATE){let Vr=gr.level===0?deflate_stored(gr,cr):gr.strategy===Z_HUFFMAN_ONLY?deflate_huff(gr,cr):gr.strategy===Z_RLE?deflate_rle(gr,cr):configuration_table[gr.level].func(gr,cr);if((Vr===BS_FINISH_STARTED||Vr===BS_FINISH_DONE)&&(gr.status=FINISH_STATE),Vr===BS_NEED_MORE||Vr===BS_FINISH_STARTED)return _e.avail_out===0&&(gr.last_flush=-1),Z_OK$3;if(Vr===BS_BLOCK_DONE&&(cr===Z_PARTIAL_FLUSH?_tr_align(gr):cr!==Z_BLOCK$1&&(_tr_stored_block(gr,0,0,!1),cr===Z_FULL_FLUSH$1&&(zero$2(gr.head),gr.lookahead===0&&(gr.strstart=0,gr.block_start=0,gr.insert=0))),flush_pending(_e),_e.avail_out===0))return gr.last_flush=-1,Z_OK$3}return cr!==Z_FINISH$3?Z_OK$3:gr.wrap<=0?Z_STREAM_END$3:(gr.wrap===2?(put_byte(gr,_e.adler&255),put_byte(gr,_e.adler>>8&255),put_byte(gr,_e.adler>>16&255),put_byte(gr,_e.adler>>24&255),put_byte(gr,_e.total_in&255),put_byte(gr,_e.total_in>>8&255),put_byte(gr,_e.total_in>>16&255),put_byte(gr,_e.total_in>>24&255)):(putShortMSB(gr,_e.adler>>>16),putShortMSB(gr,_e.adler&65535)),flush_pending(_e),gr.wrap>0&&(gr.wrap=-gr.wrap),gr.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=_e=>{if(deflateStateCheck(_e))return Z_STREAM_ERROR$2;const cr=_e.state.status;return _e.state=null,cr===BUSY_STATE?err(_e,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(_e,cr)=>{let gr=cr.length;if(deflateStateCheck(_e))return Z_STREAM_ERROR$2;const Cr=_e.state,Vr=Cr.wrap;if(Vr===2||Vr===1&&Cr.status!==INIT_STATE||Cr.lookahead)return Z_STREAM_ERROR$2;if(Vr===1&&(_e.adler=adler32$1(_e.adler,cr,gr,0)),Cr.wrap=0,gr>=Cr.w_size){Vr===0&&(zero$2(Cr.head),Cr.strstart=0,Cr.block_start=0,Cr.insert=0);let dt=new Uint8Array(Cr.w_size);dt.set(cr.subarray(gr-Cr.w_size,gr),0),cr=dt,gr=Cr.w_size}const tt=_e.avail_in,nt=_e.next_in,st=_e.input;for(_e.avail_in=gr,_e.next_in=0,_e.input=cr,fill_window(Cr);Cr.lookahead>=MIN_MATCH;){let dt=Cr.strstart,kt=Cr.lookahead-(MIN_MATCH-1);do Cr.ins_h=HASH(Cr,Cr.ins_h,Cr.window[dt+MIN_MATCH-1]),Cr.prev[dt&Cr.w_mask]=Cr.head[Cr.ins_h],Cr.head[Cr.ins_h]=dt,dt++;while(--kt);Cr.strstart=dt,Cr.lookahead=MIN_MATCH-1,fill_window(Cr)}return Cr.strstart+=Cr.lookahead,Cr.block_start=Cr.strstart,Cr.insert=Cr.lookahead,Cr.lookahead=0,Cr.match_length=Cr.prev_length=MIN_MATCH-1,Cr.match_available=0,_e.next_in=nt,_e.input=st,_e.avail_in=tt,Cr.wrap=Vr,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$1={};const _has=(_e,cr)=>Object.prototype.hasOwnProperty.call(_e,cr);common$1.assign=function(_e){const cr=Array.prototype.slice.call(arguments,1);for(;cr.length;){const gr=cr.shift();if(gr){if(typeof gr!="object")throw new TypeError(gr+"must be non-object");for(const Cr in gr)_has(gr,Cr)&&(_e[Cr]=gr[Cr])}}return _e},common$1.flattenChunks=_e=>{let cr=0;for(let Cr=0,Vr=_e.length;Cr=252?6:_e>=248?5:_e>=240?4:_e>=224?3:_e>=192?2:1;_utf8len[254]=_utf8len[254]=1,strings$2.string2buf=_e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(_e);let cr,gr,Cr,Vr,tt,nt=_e.length,st=0;for(Vr=0;Vr>>6,cr[tt++]=128|gr&63):gr<65536?(cr[tt++]=224|gr>>>12,cr[tt++]=128|gr>>>6&63,cr[tt++]=128|gr&63):(cr[tt++]=240|gr>>>18,cr[tt++]=128|gr>>>12&63,cr[tt++]=128|gr>>>6&63,cr[tt++]=128|gr&63);return cr};const buf2binstring=(_e,cr)=>{if(cr<65534&&_e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,_e.length===cr?_e:_e.subarray(0,cr));let gr="";for(let Cr=0;Cr{const gr=cr||_e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(_e.subarray(0,cr));let Cr,Vr;const tt=new Array(gr*2);for(Vr=0,Cr=0;Cr4){tt[Vr++]=65533,Cr+=st-1;continue}for(nt&=st===2?31:st===3?15:7;st>1&&Cr1){tt[Vr++]=65533;continue}nt<65536?tt[Vr++]=nt:(nt-=65536,tt[Vr++]=55296|nt>>10&1023,tt[Vr++]=56320|nt&1023)}return buf2binstring(tt,Vr)},strings$2.utf8border=(_e,cr)=>{cr=cr||_e.length,cr>_e.length&&(cr=_e.length);let gr=cr-1;for(;gr>=0&&(_e[gr]&192)===128;)gr--;return gr<0||gr===0?cr:gr+_utf8len[_e[gr]]>cr?gr:cr};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$h=common$1,strings$1=strings$2,msg$1=messages,ZStream$1=zstream,toString$6=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$2;function Deflate$1(_e){this.options=utils$h.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},_e||{});let cr=this.options;cr.raw&&cr.windowBits>0?cr.windowBits=-cr.windowBits:cr.gzip&&cr.windowBits>0&&cr.windowBits<16&&(cr.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream$1,this.strm.avail_out=0;let gr=zlib_deflate.deflateInit2(this.strm,cr.level,cr.method,cr.windowBits,cr.memLevel,cr.strategy);if(gr!==Z_OK$2)throw new Error(msg$1[gr]);if(cr.header&&zlib_deflate.deflateSetHeader(this.strm,cr.header),cr.dictionary){let Cr;if(typeof cr.dictionary=="string"?Cr=strings$1.string2buf(cr.dictionary):toString$6.call(cr.dictionary)==="[object ArrayBuffer]"?Cr=new Uint8Array(cr.dictionary):Cr=cr.dictionary,gr=zlib_deflate.deflateSetDictionary(this.strm,Cr),gr!==Z_OK$2)throw new Error(msg$1[gr]);this._dict_set=!0}}Deflate$1.prototype.push=function(_e,cr){const gr=this.strm,Cr=this.options.chunkSize;let Vr,tt;if(this.ended)return!1;for(cr===~~cr?tt=cr:tt=cr===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof _e=="string"?gr.input=strings$1.string2buf(_e):toString$6.call(_e)==="[object ArrayBuffer]"?gr.input=new Uint8Array(_e):gr.input=_e,gr.next_in=0,gr.avail_in=gr.input.length;;){if(gr.avail_out===0&&(gr.output=new Uint8Array(Cr),gr.next_out=0,gr.avail_out=Cr),(tt===Z_SYNC_FLUSH||tt===Z_FULL_FLUSH)&&gr.avail_out<=6){this.onData(gr.output.subarray(0,gr.next_out)),gr.avail_out=0;continue}if(Vr=zlib_deflate.deflate(gr,tt),Vr===Z_STREAM_END$2)return gr.next_out>0&&this.onData(gr.output.subarray(0,gr.next_out)),Vr=zlib_deflate.deflateEnd(this.strm),this.onEnd(Vr),this.ended=!0,Vr===Z_OK$2;if(gr.avail_out===0){this.onData(gr.output);continue}if(tt>0&&gr.next_out>0){this.onData(gr.output.subarray(0,gr.next_out)),gr.avail_out=0;continue}if(gr.avail_in===0)break}return!0},Deflate$1.prototype.onData=function(_e){this.chunks.push(_e)},Deflate$1.prototype.onEnd=function(_e){_e===Z_OK$2&&(this.result=utils$h.flattenChunks(this.chunks)),this.chunks=[],this.err=_e,this.msg=this.strm.msg};function deflate$1(_e,cr){const gr=new Deflate$1(cr);if(gr.push(_e,!0),gr.err)throw gr.msg||msg$1[gr.err];return gr.result}function deflateRaw$1(_e,cr){return cr=cr||{},cr.raw=!0,deflate$1(_e,cr)}function gzip$1(_e,cr){return cr=cr||{},cr.gzip=!0,deflate$1(_e,cr)}deflate$4.Deflate=Deflate$1,deflate$4.deflate=deflate$1,deflate$4.deflateRaw=deflateRaw$1,deflate$4.gzip=gzip$1,deflate$4.constants=constants$2;var inflate$4={},inflate$3={};const BAD$1=16209,TYPE$1=16191;var inffast=function _e(cr,gr){let Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt,eo,Wt,St,Ot,uo,go,bo,oo,Ro,pt,lo;const so=cr.state;Cr=cr.next_in,pt=cr.input,Vr=Cr+(cr.avail_in-5),tt=cr.next_out,lo=cr.output,nt=tt-(gr-cr.avail_out),st=tt+(cr.avail_out-257),dt=so.dmax,kt=so.wsize,qt=so.whave,ro=so.wnext,ht=so.window,po=so.hold,no=so.bits,Nt=so.lencode,eo=so.distcode,Wt=(1<>>24,po>>>=uo,no-=uo,uo=Ot>>>16&255,uo===0)lo[tt++]=Ot&65535;else if(uo&16){go=Ot&65535,uo&=15,uo&&(no>>=uo,no-=uo),no<15&&(po+=pt[Cr++]<>>24,po>>>=uo,no-=uo,uo=Ot>>>16&255,uo&16){if(bo=Ot&65535,uo&=15,nodt){cr.msg="invalid distance too far back",so.mode=BAD$1;break e}if(po>>>=uo,no-=uo,uo=tt-nt,bo>uo){if(uo=bo-uo,uo>qt&&so.sane){cr.msg="invalid distance too far back",so.mode=BAD$1;break e}if(oo=0,Ro=ht,ro===0){if(oo+=kt-uo,uo2;)lo[tt++]=Ro[oo++],lo[tt++]=Ro[oo++],lo[tt++]=Ro[oo++],go-=3;go&&(lo[tt++]=Ro[oo++],go>1&&(lo[tt++]=Ro[oo++]))}else{oo=tt-bo;do lo[tt++]=lo[oo++],lo[tt++]=lo[oo++],lo[tt++]=lo[oo++],go-=3;while(go>2);go&&(lo[tt++]=lo[oo++],go>1&&(lo[tt++]=lo[oo++]))}}else if(uo&64){cr.msg="invalid distance code",so.mode=BAD$1;break e}else{Ot=eo[(Ot&65535)+(po&(1<>3,Cr-=go,no-=go<<3,po&=(1<{const dt=st.bits;let kt=0,qt=0,ro=0,ht=0,po=0,no=0,Nt=0,eo=0,Wt=0,St=0,Ot,uo,go,bo,oo,Ro=null,pt;const lo=new Uint16Array(MAXBITS+1),so=new Uint16Array(MAXBITS+1);let wo=null,xt,Mt,ho;for(kt=0;kt<=MAXBITS;kt++)lo[kt]=0;for(qt=0;qt=1&&lo[ht]===0;ht--);if(po>ht&&(po=ht),ht===0)return Vr[tt++]=1<<24|64<<16|0,Vr[tt++]=1<<24|64<<16|0,st.bits=1,0;for(ro=1;ro0&&(_e===CODES$1||ht!==1))return-1;for(so[1]=0,kt=1;ktENOUGH_LENS$1||_e===DISTS$1&&Wt>ENOUGH_DISTS$1)return 1;for(;;){xt=kt-Nt,nt[qt]+1=pt?(Mt=wo[nt[qt]-pt],ho=Ro[nt[qt]-pt]):(Mt=96,ho=0),Ot=1<>Nt)+uo]=xt<<24|Mt<<16|ho|0;while(uo!==0);for(Ot=1<>=1;if(Ot!==0?(St&=Ot-1,St+=Ot):St=0,qt++,--lo[kt]===0){if(kt===ht)break;kt=cr[gr+nt[qt]]}if(kt>po&&(St&bo)!==go){for(Nt===0&&(Nt=po),oo+=ro,no=kt-Nt,eo=1<ENOUGH_LENS$1||_e===DISTS$1&&Wt>ENOUGH_DISTS$1)return 1;go=St&bo,Vr[go]=po<<24|no<<16|oo-tt|0}}return St!==0&&(Vr[oo+St]=kt-Nt<<24|64<<16|0),st.bits=po,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$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT$1=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=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=_e=>(_e>>>24&255)+(_e>>>8&65280)+((_e&65280)<<8)+((_e&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=_e=>{if(!_e)return 1;const cr=_e.state;return!cr||cr.strm!==_e||cr.modeSYNC?1:0},inflateResetKeep=_e=>{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const cr=_e.state;return _e.total_in=_e.total_out=cr.total=0,_e.msg="",cr.wrap&&(_e.adler=cr.wrap&1),cr.mode=HEAD,cr.last=0,cr.havedict=0,cr.flags=-1,cr.dmax=32768,cr.head=null,cr.hold=0,cr.bits=0,cr.lencode=cr.lendyn=new Int32Array(ENOUGH_LENS),cr.distcode=cr.distdyn=new Int32Array(ENOUGH_DISTS),cr.sane=1,cr.back=-1,Z_OK$1},inflateReset=_e=>{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const cr=_e.state;return cr.wsize=0,cr.whave=0,cr.wnext=0,inflateResetKeep(_e)},inflateReset2=(_e,cr)=>{let gr;if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const Cr=_e.state;return cr<0?(gr=0,cr=-cr):(gr=(cr>>4)+5,cr<48&&(cr&=15)),cr&&(cr<8||cr>15)?Z_STREAM_ERROR$1:(Cr.window!==null&&Cr.wbits!==cr&&(Cr.window=null),Cr.wrap=gr,Cr.wbits=cr,inflateReset(_e))},inflateInit2=(_e,cr)=>{if(!_e)return Z_STREAM_ERROR$1;const gr=new InflateState;_e.state=gr,gr.strm=_e,gr.window=null,gr.mode=HEAD;const Cr=inflateReset2(_e,cr);return Cr!==Z_OK$1&&(_e.state=null),Cr},inflateInit=_e=>inflateInit2(_e,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=_e=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let cr=0;for(;cr<144;)_e.lens[cr++]=8;for(;cr<256;)_e.lens[cr++]=9;for(;cr<280;)_e.lens[cr++]=7;for(;cr<288;)_e.lens[cr++]=8;for(inflate_table(LENS,_e.lens,0,288,lenfix,0,_e.work,{bits:9}),cr=0;cr<32;)_e.lens[cr++]=5;inflate_table(DISTS,_e.lens,0,32,distfix,0,_e.work,{bits:5}),virgin=!1}_e.lencode=lenfix,_e.lenbits=9,_e.distcode=distfix,_e.distbits=5},updatewindow=(_e,cr,gr,Cr)=>{let Vr;const tt=_e.state;return tt.window===null&&(tt.wsize=1<=tt.wsize?(tt.window.set(cr.subarray(gr-tt.wsize,gr),0),tt.wnext=0,tt.whave=tt.wsize):(Vr=tt.wsize-tt.wnext,Vr>Cr&&(Vr=Cr),tt.window.set(cr.subarray(gr-Cr,gr-Cr+Vr),tt.wnext),Cr-=Vr,Cr?(tt.window.set(cr.subarray(gr-Cr,gr),0),tt.wnext=Cr,tt.whave=tt.wsize):(tt.wnext+=Vr,tt.wnext===tt.wsize&&(tt.wnext=0),tt.whave{let gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt,eo=0,Wt,St,Ot,uo,go,bo,oo,Ro;const pt=new Uint8Array(4);let lo,so;const wo=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(_e)||!_e.output||!_e.input&&_e.avail_in!==0)return Z_STREAM_ERROR$1;gr=_e.state,gr.mode===TYPE&&(gr.mode=TYPEDO),nt=_e.next_out,Vr=_e.output,dt=_e.avail_out,tt=_e.next_in,Cr=_e.input,st=_e.avail_in,kt=gr.hold,qt=gr.bits,ro=st,ht=dt,Ro=Z_OK$1;e:for(;;)switch(gr.mode){case HEAD:if(gr.wrap===0){gr.mode=TYPEDO;break}for(;qt<16;){if(st===0)break e;st--,kt+=Cr[tt++]<>>8&255,gr.check=crc32(gr.check,pt,2,0),kt=0,qt=0,gr.mode=FLAGS;break}if(gr.head&&(gr.head.done=!1),!(gr.wrap&1)||(((kt&255)<<8)+(kt>>8))%31){_e.msg="incorrect header check",gr.mode=BAD;break}if((kt&15)!==Z_DEFLATED){_e.msg="unknown compression method",gr.mode=BAD;break}if(kt>>>=4,qt-=4,oo=(kt&15)+8,gr.wbits===0&&(gr.wbits=oo),oo>15||oo>gr.wbits){_e.msg="invalid window size",gr.mode=BAD;break}gr.dmax=1<>8&1),gr.flags&512&&gr.wrap&4&&(pt[0]=kt&255,pt[1]=kt>>>8&255,gr.check=crc32(gr.check,pt,2,0)),kt=0,qt=0,gr.mode=TIME;case TIME:for(;qt<32;){if(st===0)break e;st--,kt+=Cr[tt++]<>>8&255,pt[2]=kt>>>16&255,pt[3]=kt>>>24&255,gr.check=crc32(gr.check,pt,4,0)),kt=0,qt=0,gr.mode=OS;case OS:for(;qt<16;){if(st===0)break e;st--,kt+=Cr[tt++]<>8),gr.flags&512&&gr.wrap&4&&(pt[0]=kt&255,pt[1]=kt>>>8&255,gr.check=crc32(gr.check,pt,2,0)),kt=0,qt=0,gr.mode=EXLEN;case EXLEN:if(gr.flags&1024){for(;qt<16;){if(st===0)break e;st--,kt+=Cr[tt++]<>>8&255,gr.check=crc32(gr.check,pt,2,0)),kt=0,qt=0}else gr.head&&(gr.head.extra=null);gr.mode=EXTRA;case EXTRA:if(gr.flags&1024&&(po=gr.length,po>st&&(po=st),po&&(gr.head&&(oo=gr.head.extra_len-gr.length,gr.head.extra||(gr.head.extra=new Uint8Array(gr.head.extra_len)),gr.head.extra.set(Cr.subarray(tt,tt+po),oo)),gr.flags&512&&gr.wrap&4&&(gr.check=crc32(gr.check,Cr,po,tt)),st-=po,tt+=po,gr.length-=po),gr.length))break e;gr.length=0,gr.mode=NAME;case NAME:if(gr.flags&2048){if(st===0)break e;po=0;do oo=Cr[tt+po++],gr.head&&oo&&gr.length<65536&&(gr.head.name+=String.fromCharCode(oo));while(oo&&po>9&1,gr.head.done=!0),_e.adler=gr.check=0,gr.mode=TYPE;break;case DICTID:for(;qt<32;){if(st===0)break e;st--,kt+=Cr[tt++]<>>=qt&7,qt-=qt&7,gr.mode=CHECK;break}for(;qt<3;){if(st===0)break e;st--,kt+=Cr[tt++]<>>=1,qt-=1,kt&3){case 0:gr.mode=STORED;break;case 1:if(fixedtables(gr),gr.mode=LEN_,cr===Z_TREES){kt>>>=2,qt-=2;break e}break;case 2:gr.mode=TABLE;break;case 3:_e.msg="invalid block type",gr.mode=BAD}kt>>>=2,qt-=2;break;case STORED:for(kt>>>=qt&7,qt-=qt&7;qt<32;){if(st===0)break e;st--,kt+=Cr[tt++]<>>16^65535)){_e.msg="invalid stored block lengths",gr.mode=BAD;break}if(gr.length=kt&65535,kt=0,qt=0,gr.mode=COPY_,cr===Z_TREES)break e;case COPY_:gr.mode=COPY;case COPY:if(po=gr.length,po){if(po>st&&(po=st),po>dt&&(po=dt),po===0)break e;Vr.set(Cr.subarray(tt,tt+po),nt),st-=po,tt+=po,dt-=po,nt+=po,gr.length-=po;break}gr.mode=TYPE;break;case TABLE:for(;qt<14;){if(st===0)break e;st--,kt+=Cr[tt++]<>>=5,qt-=5,gr.ndist=(kt&31)+1,kt>>>=5,qt-=5,gr.ncode=(kt&15)+4,kt>>>=4,qt-=4,gr.nlen>286||gr.ndist>30){_e.msg="too many length or distance symbols",gr.mode=BAD;break}gr.have=0,gr.mode=LENLENS;case LENLENS:for(;gr.have>>=3,qt-=3}for(;gr.have<19;)gr.lens[wo[gr.have++]]=0;if(gr.lencode=gr.lendyn,gr.lenbits=7,lo={bits:gr.lenbits},Ro=inflate_table(CODES,gr.lens,0,19,gr.lencode,0,gr.work,lo),gr.lenbits=lo.bits,Ro){_e.msg="invalid code lengths set",gr.mode=BAD;break}gr.have=0,gr.mode=CODELENS;case CODELENS:for(;gr.have>>24,St=eo>>>16&255,Ot=eo&65535,!(Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>>=Wt,qt-=Wt,gr.lens[gr.have++]=Ot;else{if(Ot===16){for(so=Wt+2;qt>>=Wt,qt-=Wt,gr.have===0){_e.msg="invalid bit length repeat",gr.mode=BAD;break}oo=gr.lens[gr.have-1],po=3+(kt&3),kt>>>=2,qt-=2}else if(Ot===17){for(so=Wt+3;qt>>=Wt,qt-=Wt,oo=0,po=3+(kt&7),kt>>>=3,qt-=3}else{for(so=Wt+7;qt>>=Wt,qt-=Wt,oo=0,po=11+(kt&127),kt>>>=7,qt-=7}if(gr.have+po>gr.nlen+gr.ndist){_e.msg="invalid bit length repeat",gr.mode=BAD;break}for(;po--;)gr.lens[gr.have++]=oo}}if(gr.mode===BAD)break;if(gr.lens[256]===0){_e.msg="invalid code -- missing end-of-block",gr.mode=BAD;break}if(gr.lenbits=9,lo={bits:gr.lenbits},Ro=inflate_table(LENS,gr.lens,0,gr.nlen,gr.lencode,0,gr.work,lo),gr.lenbits=lo.bits,Ro){_e.msg="invalid literal/lengths set",gr.mode=BAD;break}if(gr.distbits=6,gr.distcode=gr.distdyn,lo={bits:gr.distbits},Ro=inflate_table(DISTS,gr.lens,gr.nlen,gr.ndist,gr.distcode,0,gr.work,lo),gr.distbits=lo.bits,Ro){_e.msg="invalid distances set",gr.mode=BAD;break}if(gr.mode=LEN_,cr===Z_TREES)break e;case LEN_:gr.mode=LEN;case LEN:if(st>=6&&dt>=258){_e.next_out=nt,_e.avail_out=dt,_e.next_in=tt,_e.avail_in=st,gr.hold=kt,gr.bits=qt,inflate_fast(_e,ht),nt=_e.next_out,Vr=_e.output,dt=_e.avail_out,tt=_e.next_in,Cr=_e.input,st=_e.avail_in,kt=gr.hold,qt=gr.bits,gr.mode===TYPE&&(gr.back=-1);break}for(gr.back=0;eo=gr.lencode[kt&(1<>>24,St=eo>>>16&255,Ot=eo&65535,!(Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>uo)],Wt=eo>>>24,St=eo>>>16&255,Ot=eo&65535,!(uo+Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>>=uo,qt-=uo,gr.back+=uo}if(kt>>>=Wt,qt-=Wt,gr.back+=Wt,gr.length=Ot,St===0){gr.mode=LIT;break}if(St&32){gr.back=-1,gr.mode=TYPE;break}if(St&64){_e.msg="invalid literal/length code",gr.mode=BAD;break}gr.extra=St&15,gr.mode=LENEXT;case LENEXT:if(gr.extra){for(so=gr.extra;qt>>=gr.extra,qt-=gr.extra,gr.back+=gr.extra}gr.was=gr.length,gr.mode=DIST;case DIST:for(;eo=gr.distcode[kt&(1<>>24,St=eo>>>16&255,Ot=eo&65535,!(Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>uo)],Wt=eo>>>24,St=eo>>>16&255,Ot=eo&65535,!(uo+Wt<=qt);){if(st===0)break e;st--,kt+=Cr[tt++]<>>=uo,qt-=uo,gr.back+=uo}if(kt>>>=Wt,qt-=Wt,gr.back+=Wt,St&64){_e.msg="invalid distance code",gr.mode=BAD;break}gr.offset=Ot,gr.extra=St&15,gr.mode=DISTEXT;case DISTEXT:if(gr.extra){for(so=gr.extra;qt>>=gr.extra,qt-=gr.extra,gr.back+=gr.extra}if(gr.offset>gr.dmax){_e.msg="invalid distance too far back",gr.mode=BAD;break}gr.mode=MATCH;case MATCH:if(dt===0)break e;if(po=ht-dt,gr.offset>po){if(po=gr.offset-po,po>gr.whave&&gr.sane){_e.msg="invalid distance too far back",gr.mode=BAD;break}po>gr.wnext?(po-=gr.wnext,no=gr.wsize-po):no=gr.wnext-po,po>gr.length&&(po=gr.length),Nt=gr.window}else Nt=Vr,no=nt-gr.offset,po=gr.length;po>dt&&(po=dt),dt-=po,gr.length-=po;do Vr[nt++]=Nt[no++];while(--po);gr.length===0&&(gr.mode=LEN);break;case LIT:if(dt===0)break e;Vr[nt++]=gr.length,dt--,gr.mode=LEN;break;case CHECK:if(gr.wrap){for(;qt<32;){if(st===0)break e;st--,kt|=Cr[tt++]<{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;let cr=_e.state;return cr.window&&(cr.window=null),_e.state=null,Z_OK$1},inflateGetHeader=(_e,cr)=>{if(inflateStateCheck(_e))return Z_STREAM_ERROR$1;const gr=_e.state;return gr.wrap&2?(gr.head=cr,cr.done=!1,Z_OK$1):Z_STREAM_ERROR$1},inflateSetDictionary=(_e,cr)=>{const gr=cr.length;let Cr,Vr,tt;return inflateStateCheck(_e)||(Cr=_e.state,Cr.wrap!==0&&Cr.mode!==DICT)?Z_STREAM_ERROR$1:Cr.mode===DICT&&(Vr=1,Vr=adler32(Vr,cr,gr,0),Vr!==Cr.check)?Z_DATA_ERROR$1:(tt=updatewindow(_e,cr,gr,gr),tt?(Cr.mode=MEM,Z_MEM_ERROR$1):(Cr.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$g=common$1,strings=strings$2,msg=messages,ZStream=zstream,GZheader=gzheader,toString$5=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$2;function Inflate$1(_e){this.options=utils$g.assign({chunkSize:1024*64,windowBits:15,to:""},_e||{});const cr=this.options;cr.raw&&cr.windowBits>=0&&cr.windowBits<16&&(cr.windowBits=-cr.windowBits,cr.windowBits===0&&(cr.windowBits=-15)),cr.windowBits>=0&&cr.windowBits<16&&!(_e&&_e.windowBits)&&(cr.windowBits+=32),cr.windowBits>15&&cr.windowBits<48&&(cr.windowBits&15||(cr.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;let gr=zlib_inflate.inflateInit2(this.strm,cr.windowBits);if(gr!==Z_OK)throw new Error(msg[gr]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),cr.dictionary&&(typeof cr.dictionary=="string"?cr.dictionary=strings.string2buf(cr.dictionary):toString$5.call(cr.dictionary)==="[object ArrayBuffer]"&&(cr.dictionary=new Uint8Array(cr.dictionary)),cr.raw&&(gr=zlib_inflate.inflateSetDictionary(this.strm,cr.dictionary),gr!==Z_OK)))throw new Error(msg[gr])}Inflate$1.prototype.push=function(_e,cr){const gr=this.strm,Cr=this.options.chunkSize,Vr=this.options.dictionary;let tt,nt,st;if(this.ended)return!1;for(cr===~~cr?nt=cr:nt=cr===!0?Z_FINISH:Z_NO_FLUSH,toString$5.call(_e)==="[object ArrayBuffer]"?gr.input=new Uint8Array(_e):gr.input=_e,gr.next_in=0,gr.avail_in=gr.input.length;;){for(gr.avail_out===0&&(gr.output=new Uint8Array(Cr),gr.next_out=0,gr.avail_out=Cr),tt=zlib_inflate.inflate(gr,nt),tt===Z_NEED_DICT&&Vr&&(tt=zlib_inflate.inflateSetDictionary(gr,Vr),tt===Z_OK?tt=zlib_inflate.inflate(gr,nt):tt===Z_DATA_ERROR&&(tt=Z_NEED_DICT));gr.avail_in>0&&tt===Z_STREAM_END&&gr.state.wrap>0&&_e[gr.next_in]!==0;)zlib_inflate.inflateReset(gr),tt=zlib_inflate.inflate(gr,nt);switch(tt){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(tt),this.ended=!0,!1}if(st=gr.avail_out,gr.next_out&&(gr.avail_out===0||tt===Z_STREAM_END))if(this.options.to==="string"){let dt=strings.utf8border(gr.output,gr.next_out),kt=gr.next_out-dt,qt=strings.buf2string(gr.output,dt);gr.next_out=kt,gr.avail_out=Cr-kt,kt&&gr.output.set(gr.output.subarray(dt,dt+kt),0),this.onData(qt)}else this.onData(gr.output.length===gr.next_out?gr.output:gr.output.subarray(0,gr.next_out));if(!(tt===Z_OK&&st===0)){if(tt===Z_STREAM_END)return tt=zlib_inflate.inflateEnd(this.strm),this.onEnd(tt),this.ended=!0,!0;if(gr.avail_in===0)break}}return!0},Inflate$1.prototype.onData=function(_e){this.chunks.push(_e)},Inflate$1.prototype.onEnd=function(_e){_e===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=utils$g.flattenChunks(this.chunks)),this.chunks=[],this.err=_e,this.msg=this.strm.msg};function inflate$1(_e,cr){const gr=new Inflate$1(cr);if(gr.push(_e),gr.err)throw gr.msg||msg[gr.err];return gr.result}function inflateRaw$1(_e,cr){return cr=cr||{},cr.raw=!0,inflate$1(_e,cr)}inflate$4.Inflate=Inflate$1,inflate$4.inflate=inflate$1,inflate$4.inflateRaw=inflateRaw$1,inflate$4.ungzip=inflate$1,inflate$4.constants=constants$2;const{Deflate,deflate,deflateRaw,gzip}=deflate$4,{Inflate,inflate,inflateRaw,ungzip}=inflate$4,constants$1=constants$2;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$1;var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(signingcosmwasmclient,"__esModule",{value:!0}),signingcosmwasmclient.SigningCosmWasmClient=void 0;const amino_1=build$8,crypto_1=build$7,encoding_1=build$c,math_1=build$b,proto_signing_1=build$9,stargate_1=build$a,tendermint_rpc_1=build$3,utils_1$1=build$6,tx_1=tx$b,tx_2=tx$2,signing_1=signing$1,tx_3=tx$e,tx_4=tx,long_1=__importDefault$2(long),pako_1=__importDefault$2(pako),cosmwasmclient_1=cosmwasmclient,modules_1=modules;function createDeliverTxResponseErrorMessage(_e){return`Error when broadcasting tx ${_e.transactionHash} at height ${_e.height}. Code: ${_e.code}; Raw log: ${_e.rawLog}`}class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient{static async connectWithSigner(cr,gr,Cr={}){let Vr;const tt=await tendermint_rpc_1.Tendermint37Client.connect(cr);return(await tt.status()).nodeInfo.version.startsWith("0.37.")?Vr=tt:(tt.disconnect(),Vr=await tendermint_rpc_1.Tendermint34Client.connect(cr)),SigningCosmWasmClient.createWithSigner(Vr,gr,Cr)}static async createWithSigner(cr,gr,Cr={}){return new SigningCosmWasmClient(cr,gr,Cr)}static async offline(cr,gr={}){return new SigningCosmWasmClient(void 0,cr,gr)}constructor(cr,gr,Cr){super(cr);const{registry:Vr=new proto_signing_1.Registry([...stargate_1.defaultRegistryTypes,...modules_1.wasmTypes]),aminoTypes:tt=new stargate_1.AminoTypes({...(0,stargate_1.createDefaultAminoConverters)(),...(0,modules_1.createWasmAminoConverters)()})}=Cr;this.registry=Vr,this.aminoTypes=tt,this.signer=gr,this.broadcastTimeoutMs=Cr.broadcastTimeoutMs,this.broadcastPollIntervalMs=Cr.broadcastPollIntervalMs,this.gasPrice=Cr.gasPrice}async simulate(cr,gr,Cr){const Vr=gr.map(kt=>this.registry.encodeAsAny(kt)),tt=(await this.signer.getAccounts()).find(kt=>kt.address===cr);if(!tt)throw new Error("Failed to retrieve account from signer");const nt=(0,amino_1.encodeSecp256k1Pubkey)(tt.pubkey),{sequence:st}=await this.getSequence(cr),{gasInfo:dt}=await this.forceGetQueryClient().tx.simulate(Vr,Cr,nt,st);return(0,utils_1$1.assertDefined)(dt),math_1.Uint53.fromString(dt.gasUsed.toString()).toNumber()}async upload(cr,gr,Cr,Vr="",tt){const nt=pako_1.default.gzip(gr,{level:9}),st={typeUrl:"/cosmwasm.wasm.v1.MsgStoreCode",value:tx_4.MsgStoreCode.fromPartial({sender:cr,wasmByteCode:nt,instantiatePermission:tt})},dt=Cr=="auto"?1.1:Cr,kt=await this.signAndBroadcast(cr,[st],dt,Vr);if((0,stargate_1.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));const qt=stargate_1.logs.parseRawLog(kt.rawLog),ro=stargate_1.logs.findAttribute(qt,"store_code","code_id");return{checksum:(0,encoding_1.toHex)((0,crypto_1.sha256)(gr)),originalSize:gr.length,compressedSize:nt.length,codeId:Number.parseInt(ro.value,10),logs:qt,height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async instantiate(cr,gr,Cr,Vr,tt,nt={}){const st={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:tx_4.MsgInstantiateContract.fromPartial({sender:cr,codeId:long_1.default.fromString(new math_1.Uint53(gr).toString()),label:Vr,msg:(0,encoding_1.toUtf8)(JSON.stringify(Cr)),funds:[...nt.funds||[]],admin:nt.admin})},dt=await this.signAndBroadcast(cr,[st],tt,nt.memo);if((0,stargate_1.isDeliverTxFailure)(dt))throw new Error(createDeliverTxResponseErrorMessage(dt));const kt=stargate_1.logs.parseRawLog(dt.rawLog);return{contractAddress:stargate_1.logs.findAttribute(kt,"instantiate","_contract_address").value,logs:kt,height:dt.height,transactionHash:dt.transactionHash,events:dt.events,gasWanted:dt.gasWanted,gasUsed:dt.gasUsed}}async instantiate2(cr,gr,Cr,Vr,tt,nt,st={}){const dt={typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract2",value:tx_4.MsgInstantiateContract2.fromPartial({sender:cr,codeId:long_1.default.fromString(new math_1.Uint53(gr).toString()),label:tt,msg:(0,encoding_1.toUtf8)(JSON.stringify(Vr)),funds:[...st.funds||[]],admin:st.admin,salt:Cr,fixMsg:!1})},kt=await this.signAndBroadcast(cr,[dt],nt,st.memo);if((0,stargate_1.isDeliverTxFailure)(kt))throw new Error(createDeliverTxResponseErrorMessage(kt));const qt=stargate_1.logs.parseRawLog(kt.rawLog);return{contractAddress:stargate_1.logs.findAttribute(qt,"instantiate","_contract_address").value,logs:qt,height:kt.height,transactionHash:kt.transactionHash,events:kt.events,gasWanted:kt.gasWanted,gasUsed:kt.gasUsed}}async updateAdmin(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:tx_4.MsgUpdateAdmin.fromPartial({sender:cr,contract:gr,newAdmin:Cr})},st=await this.signAndBroadcast(cr,[nt],Vr,tt);if((0,stargate_1.isDeliverTxFailure)(st))throw new Error(createDeliverTxResponseErrorMessage(st));return{logs:stargate_1.logs.parseRawLog(st.rawLog),height:st.height,transactionHash:st.transactionHash,events:st.events,gasWanted:st.gasWanted,gasUsed:st.gasUsed}}async clearAdmin(cr,gr,Cr,Vr=""){const tt={typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:tx_4.MsgClearAdmin.fromPartial({sender:cr,contract:gr})},nt=await this.signAndBroadcast(cr,[tt],Cr,Vr);if((0,stargate_1.isDeliverTxFailure)(nt))throw new Error(createDeliverTxResponseErrorMessage(nt));return{logs:stargate_1.logs.parseRawLog(nt.rawLog),height:nt.height,transactionHash:nt.transactionHash,events:nt.events,gasWanted:nt.gasWanted,gasUsed:nt.gasUsed}}async migrate(cr,gr,Cr,Vr,tt,nt=""){const st={typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:tx_4.MsgMigrateContract.fromPartial({sender:cr,contract:gr,codeId:long_1.default.fromString(new math_1.Uint53(Cr).toString()),msg:(0,encoding_1.toUtf8)(JSON.stringify(Vr))})},dt=await this.signAndBroadcast(cr,[st],tt,nt);if((0,stargate_1.isDeliverTxFailure)(dt))throw new Error(createDeliverTxResponseErrorMessage(dt));return{logs:stargate_1.logs.parseRawLog(dt.rawLog),height:dt.height,transactionHash:dt.transactionHash,events:dt.events,gasWanted:dt.gasWanted,gasUsed:dt.gasUsed}}async execute(cr,gr,Cr,Vr,tt="",nt){const st={contractAddress:gr,msg:Cr,funds:nt};return this.executeMultiple(cr,[st],Vr,tt)}async executeMultiple(cr,gr,Cr,Vr=""){const tt=gr.map(st=>({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:tx_4.MsgExecuteContract.fromPartial({sender:cr,contract:st.contractAddress,msg:(0,encoding_1.toUtf8)(JSON.stringify(st.msg)),funds:[...st.funds||[]]})})),nt=await this.signAndBroadcast(cr,tt,Cr,Vr);if((0,stargate_1.isDeliverTxFailure)(nt))throw new Error(createDeliverTxResponseErrorMessage(nt));return{logs:stargate_1.logs.parseRawLog(nt.rawLog),height:nt.height,transactionHash:nt.transactionHash,events:nt.events,gasWanted:nt.gasWanted,gasUsed:nt.gasUsed}}async sendTokens(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:cr,toAddress:gr,amount:[...Cr]}};return this.signAndBroadcast(cr,[nt],Vr,tt)}async delegateTokens(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:tx_2.MsgDelegate.fromPartial({delegatorAddress:cr,validatorAddress:gr,amount:Cr})};return this.signAndBroadcast(cr,[nt],Vr,tt)}async undelegateTokens(cr,gr,Cr,Vr,tt=""){const nt={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:tx_2.MsgUndelegate.fromPartial({delegatorAddress:cr,validatorAddress:gr,amount:Cr})};return this.signAndBroadcast(cr,[nt],Vr,tt)}async withdrawRewards(cr,gr,Cr,Vr=""){const tt={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:tx_1.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:cr,validatorAddress:gr})};return this.signAndBroadcast(cr,[tt],Cr,Vr)}async signAndBroadcast(cr,gr,Cr,Vr=""){let tt;if(Cr=="auto"||typeof Cr=="number"){(0,utils_1$1.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const dt=await this.simulate(cr,gr,Vr),kt=typeof Cr=="number"?Cr:1.4;tt=(0,stargate_1.calculateFee)(Math.round(dt*kt),this.gasPrice)}else tt=Cr;const nt=await this.sign(cr,gr,tt,Vr),st=tx_3.TxRaw.encode(nt).finish();return this.broadcastTx(st,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async signAndBroadcastSync(cr,gr,Cr,Vr=""){let tt;if(Cr=="auto"||typeof Cr=="number"){(0,utils_1$1.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");const dt=await this.simulate(cr,gr,Vr),kt=typeof Cr=="number"?Cr:1.3;tt=(0,stargate_1.calculateFee)(Math.round(dt*kt),this.gasPrice)}else tt=Cr;const nt=await this.sign(cr,gr,tt,Vr),st=tx_3.TxRaw.encode(nt).finish();return this.broadcastTxSync(st)}async sign(cr,gr,Cr,Vr,tt){let nt;if(tt)nt=tt;else{const{accountNumber:st,sequence:dt}=await this.getSequence(cr),kt=await this.getChainId();nt={accountNumber:st,sequence:dt,chainId:kt}}return(0,proto_signing_1.isOfflineDirectSigner)(this.signer)?this.signDirect(cr,gr,Cr,Vr,nt):this.signAmino(cr,gr,Cr,Vr,nt)}async signAmino(cr,gr,Cr,Vr,{accountNumber:tt,sequence:nt,chainId:st}){(0,utils_1$1.assert)(!(0,proto_signing_1.isOfflineDirectSigner)(this.signer));const dt=(await this.signer.getAccounts()).find(uo=>uo.address===cr);if(!dt)throw new Error("Failed to retrieve account from signer");const kt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(dt.pubkey)),qt=signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,ro=gr.map(uo=>this.aminoTypes.toAmino(uo)),ht=(0,amino_1.makeSignDoc)(ro,Cr,st,Vr,tt,nt),{signature:po,signed:no}=await this.signer.signAmino(cr,ht),Nt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:no.msgs.map(uo=>this.aminoTypes.fromAmino(uo)),memo:no.memo}},eo=this.registry.encode(Nt),Wt=math_1.Int53.fromString(no.fee.gas).toNumber(),St=math_1.Int53.fromString(no.sequence).toNumber(),Ot=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:kt,sequence:St}],no.fee.amount,Wt,no.fee.granter,no.fee.payer,qt);return tx_3.TxRaw.fromPartial({bodyBytes:eo,authInfoBytes:Ot,signatures:[(0,encoding_1.fromBase64)(po.signature)]})}async signDirect(cr,gr,Cr,Vr,{accountNumber:tt,sequence:nt,chainId:st}){(0,utils_1$1.assert)((0,proto_signing_1.isOfflineDirectSigner)(this.signer));const dt=(await this.signer.getAccounts()).find(Wt=>Wt.address===cr);if(!dt)throw new Error("Failed to retrieve account from signer");const kt=(0,proto_signing_1.encodePubkey)((0,amino_1.encodeSecp256k1Pubkey)(dt.pubkey)),qt={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:gr,memo:Vr}},ro=this.registry.encode(qt),ht=math_1.Int53.fromString(Cr.gas).toNumber(),po=(0,proto_signing_1.makeAuthInfoBytes)([{pubkey:kt,sequence:nt}],Cr.amount,ht,Cr.granter,Cr.payer),no=(0,proto_signing_1.makeSignDoc)(ro,po,st,tt),{signature:Nt,signed:eo}=await this.signer.signDirect(cr,no);return tx_3.TxRaw.fromPartial({bodyBytes:eo.bodyBytes,authInfoBytes:eo.authInfoBytes,signatures:[(0,encoding_1.fromBase64)(Nt.signature)]})}}signingcosmwasmclient.SigningCosmWasmClient=SigningCosmWasmClient,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SigningCosmWasmClient=_e.wasmTypes=_e.setupWasmExtension=_e.isMsgUpdateAdminEncodeObject=_e.isMsgStoreCodeEncodeObject=_e.isMsgMigrateEncodeObject=_e.isMsgInstantiateContractEncodeObject=_e.isMsgInstantiateContract2EncodeObject=_e.isMsgExecuteEncodeObject=_e.isMsgClearAdminEncodeObject=_e.createWasmAminoConverters=_e.instantiate2Address=_e._instantiate2AddressIntermediate=_e.toBinary=_e.fromBinary=_e.CosmWasmClient=void 0;var cr=cosmwasmclient;Object.defineProperty(_e,"CosmWasmClient",{enumerable:!0,get:function(){return cr.CosmWasmClient}});var gr=encoding;Object.defineProperty(_e,"fromBinary",{enumerable:!0,get:function(){return gr.fromBinary}}),Object.defineProperty(_e,"toBinary",{enumerable:!0,get:function(){return gr.toBinary}});var Cr=instantiate2;Object.defineProperty(_e,"_instantiate2AddressIntermediate",{enumerable:!0,get:function(){return Cr._instantiate2AddressIntermediate}}),Object.defineProperty(_e,"instantiate2Address",{enumerable:!0,get:function(){return Cr.instantiate2Address}});var Vr=modules;Object.defineProperty(_e,"createWasmAminoConverters",{enumerable:!0,get:function(){return Vr.createWasmAminoConverters}}),Object.defineProperty(_e,"isMsgClearAdminEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgClearAdminEncodeObject}}),Object.defineProperty(_e,"isMsgExecuteEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgExecuteEncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContract2EncodeObject",{enumerable:!0,get:function(){return Vr.isMsgInstantiateContract2EncodeObject}}),Object.defineProperty(_e,"isMsgInstantiateContractEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgInstantiateContractEncodeObject}}),Object.defineProperty(_e,"isMsgMigrateEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgMigrateEncodeObject}}),Object.defineProperty(_e,"isMsgStoreCodeEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgStoreCodeEncodeObject}}),Object.defineProperty(_e,"isMsgUpdateAdminEncodeObject",{enumerable:!0,get:function(){return Vr.isMsgUpdateAdminEncodeObject}}),Object.defineProperty(_e,"setupWasmExtension",{enumerable:!0,get:function(){return Vr.setupWasmExtension}}),Object.defineProperty(_e,"wasmTypes",{enumerable:!0,get:function(){return Vr.wasmTypes}});var tt=signingcosmwasmclient;Object.defineProperty(_e,"SigningCosmWasmClient",{enumerable:!0,get:function(){return tt.SigningCosmWasmClient}})}(build$d);class OraiswapV3QueryClient{constructor(cr,gr){Cl(this,"client");Cl(this,"contractAddress");Cl(this,"protocolFee",async()=>this.client.queryContractSmart(this.contractAddress,{protocol_fee:{}}));Cl(this,"position",async({index:cr,ownerId:gr})=>this.client.queryContractSmart(this.contractAddress,{position:{index:cr,owner_id:gr}}));Cl(this,"positions",async({limit:cr,offset:gr,ownerId:Cr})=>this.client.queryContractSmart(this.contractAddress,{positions:{limit:cr,offset:gr,owner_id:Cr}}));Cl(this,"feeTierExist",async({feeTier:cr})=>this.client.queryContractSmart(this.contractAddress,{fee_tier_exist:{fee_tier:cr}}));Cl(this,"pool",async({feeTier:cr,token0:gr,token1:Cr})=>this.client.queryContractSmart(this.contractAddress,{pool:{fee_tier:cr,token_0:gr,token_1:Cr}}));Cl(this,"pools",async({limit:cr,startAfter:gr})=>this.client.queryContractSmart(this.contractAddress,{pools:{limit:cr,start_after:gr}}));Cl(this,"tick",async({index:cr,key:gr})=>this.client.queryContractSmart(this.contractAddress,{tick:{index:cr,key:gr}}));Cl(this,"isTickInitialized",async({index:cr,key:gr})=>this.client.queryContractSmart(this.contractAddress,{is_tick_initialized:{index:cr,key:gr}}));Cl(this,"feeTiers",async()=>this.client.queryContractSmart(this.contractAddress,{fee_tiers:{}}));Cl(this,"positionTicks",async({offset:cr,owner:gr})=>this.client.queryContractSmart(this.contractAddress,{position_ticks:{offset:cr,owner:gr}}));Cl(this,"userPositionAmount",async({owner:cr})=>this.client.queryContractSmart(this.contractAddress,{user_position_amount:{owner:cr}}));Cl(this,"tickMap",async({lowerTickIndex:cr,poolKey:gr,upperTickIndex:Cr,xToY:Vr})=>this.client.queryContractSmart(this.contractAddress,{tick_map:{lower_tick_index:cr,pool_key:gr,upper_tick_index:Cr,x_to_y:Vr}}));Cl(this,"liquidityTicks",async({poolKey:cr,tickIndexes:gr})=>this.client.queryContractSmart(this.contractAddress,{liquidity_ticks:{pool_key:cr,tick_indexes:gr}}));Cl(this,"liquidityTicksAmount",async({lowerTick:cr,poolKey:gr,upperTick:Cr})=>this.client.queryContractSmart(this.contractAddress,{liquidity_ticks_amount:{lower_tick:cr,pool_key:gr,upper_tick:Cr}}));Cl(this,"poolsForPair",async({token0:cr,token1:gr})=>this.client.queryContractSmart(this.contractAddress,{pools_for_pair:{token_0:cr,token_1:gr}}));Cl(this,"quote",async({amount:cr,byAmountIn:gr,poolKey:Cr,sqrtPriceLimit:Vr,xToY:tt})=>this.client.queryContractSmart(this.contractAddress,{quote:{amount:cr,by_amount_in:gr,pool_key:Cr,sqrt_price_limit:Vr,x_to_y:tt}}));Cl(this,"quoteRoute",async({amountIn:cr,swaps:gr})=>this.client.queryContractSmart(this.contractAddress,{quote_route:{amount_in:cr,swaps:gr}}));this.client=cr,this.contractAddress=gr,this.protocolFee=this.protocolFee.bind(this),this.position=this.position.bind(this),this.positions=this.positions.bind(this),this.feeTierExist=this.feeTierExist.bind(this),this.pool=this.pool.bind(this),this.pools=this.pools.bind(this),this.tick=this.tick.bind(this),this.isTickInitialized=this.isTickInitialized.bind(this),this.feeTiers=this.feeTiers.bind(this),this.positionTicks=this.positionTicks.bind(this),this.userPositionAmount=this.userPositionAmount.bind(this),this.tickMap=this.tickMap.bind(this),this.liquidityTicks=this.liquidityTicks.bind(this),this.liquidityTicksAmount=this.liquidityTicksAmount.bind(this),this.poolsForPair=this.poolsForPair.bind(this),this.quote=this.quote.bind(this),this.quoteRoute=this.quoteRoute.bind(this)}}class OraiswapV3Client extends OraiswapV3QueryClient{constructor(gr,Cr,Vr){super(gr,Vr);Cl(this,"sender");Cl(this,"withdrawProtocolFee",async({poolKey:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{withdraw_protocol_fee:{pool_key:gr}},Cr,Vr,tt));Cl(this,"changeProtocolFee",async({protocolFee:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{change_protocol_fee:{protocol_fee:gr}},Cr,Vr,tt));Cl(this,"changeFeeReceiver",async({feeReceiver:gr,poolKey:Cr},Vr="auto",tt,nt)=>await this.client.execute(this.sender,this.contractAddress,{change_fee_receiver:{fee_receiver:gr,pool_key:Cr}},Vr,tt,nt));Cl(this,"createPosition",async({liquidityDelta:gr,lowerTick:Cr,poolKey:Vr,slippageLimitLower:tt,slippageLimitUpper:nt,upperTick:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{create_position:{liquidity_delta:gr,lower_tick:Cr,pool_key:Vr,slippage_limit_lower:tt,slippage_limit_upper:nt,upper_tick:st}},dt,kt,qt));Cl(this,"swap",async({amount:gr,byAmountIn:Cr,poolKey:Vr,sqrtPriceLimit:tt,xToY:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{swap:{amount:gr,by_amount_in:Cr,pool_key:Vr,sqrt_price_limit:tt,x_to_y:nt}},st,dt,kt));Cl(this,"swapRoute",async({amountIn:gr,expectedAmountOut:Cr,slippage:Vr,swaps:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{swap_route:{amount_in:gr,expected_amount_out:Cr,slippage:Vr,swaps:tt}},nt,st,dt));Cl(this,"transferPosition",async({index:gr,receiver:Cr},Vr="auto",tt,nt)=>await this.client.execute(this.sender,this.contractAddress,{transfer_position:{index:gr,receiver:Cr}},Vr,tt,nt));Cl(this,"claimFee",async({index:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{claim_fee:{index:gr}},Cr,Vr,tt));Cl(this,"removePosition",async({index:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{remove_position:{index:gr}},Cr,Vr,tt));Cl(this,"createPool",async({feeTier:gr,initSqrtPrice:Cr,initTick:Vr,token0:tt,token1:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{create_pool:{fee_tier:gr,init_sqrt_price:Cr,init_tick:Vr,token_0:tt,token_1:nt}},st,dt,kt));Cl(this,"addFeeTier",async({feeTier:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{add_fee_tier:{fee_tier:gr}},Cr,Vr,tt));Cl(this,"removeFeeTier",async({feeTier:gr},Cr="auto",Vr,tt)=>await this.client.execute(this.sender,this.contractAddress,{remove_fee_tier:{fee_tier:gr}},Cr,Vr,tt));this.client=gr,this.sender=Cr,this.contractAddress=Vr,this.withdrawProtocolFee=this.withdrawProtocolFee.bind(this),this.changeProtocolFee=this.changeProtocolFee.bind(this),this.changeFeeReceiver=this.changeFeeReceiver.bind(this),this.createPosition=this.createPosition.bind(this),this.swap=this.swap.bind(this),this.swapRoute=this.swapRoute.bind(this),this.transferPosition=this.transferPosition.bind(this),this.claimFee=this.claimFee.bind(this),this.removePosition=this.removePosition.bind(this),this.createPool=this.createPool.bind(this),this.addFeeTier=this.addFeeTier.bind(this),this.removeFeeTier=this.removeFeeTier.bind(this)}}var build={},OraiswapConverter_types={};Object.defineProperty(OraiswapConverter_types,"__esModule",{value:!0});var OraiswapConverter_client={};Object.defineProperty(OraiswapConverter_client,"__esModule",{value:!0}),OraiswapConverter_client.OraiswapConverterClient=OraiswapConverter_client.OraiswapConverterQueryClient=void 0;class OraiswapConverterQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.convertInfo=async({assetInfo:Cr})=>this.client.queryContractSmart(this.contractAddress,{convert_info:{asset_info:Cr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.convertInfo=this.convertInfo.bind(this)}}OraiswapConverter_client.OraiswapConverterQueryClient=OraiswapConverterQueryClient;class OraiswapConverterClient extends OraiswapConverterQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.updateConfig=async({owner:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{owner:Vr}},tt,nt,st),this.convert=async(Vr="auto",tt,nt)=>await this.client.execute(this.sender,this.contractAddress,{convert:{}},Vr,tt,nt),this.updatePair=async({from:Vr,to:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_pair:{from:Vr,to:tt}},nt,st,dt),this.unregisterPair=async({from:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{unregister_pair:{from:Vr}},tt,nt,st),this.convertReverse=async({fromAsset:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{convert_reverse:{from_asset:Vr}},tt,nt,st),this.withdrawTokens=async({assetInfos:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{withdraw_tokens:{asset_infos:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.updateConfig=this.updateConfig.bind(this),this.convert=this.convert.bind(this),this.updatePair=this.updatePair.bind(this),this.unregisterPair=this.unregisterPair.bind(this),this.convertReverse=this.convertReverse.bind(this),this.withdrawTokens=this.withdrawTokens.bind(this)}}OraiswapConverter_client.OraiswapConverterClient=OraiswapConverterClient;var OraiswapFactory_types={};Object.defineProperty(OraiswapFactory_types,"__esModule",{value:!0});var OraiswapFactory_client={};Object.defineProperty(OraiswapFactory_client,"__esModule",{value:!0}),OraiswapFactory_client.OraiswapFactoryClient=OraiswapFactory_client.OraiswapFactoryQueryClient=void 0;class OraiswapFactoryQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.pair=async({assetInfos:Cr})=>this.client.queryContractSmart(this.contractAddress,{pair:{asset_infos:Cr}}),this.pairs=async({limit:Cr,startAfter:Vr})=>this.client.queryContractSmart(this.contractAddress,{pairs:{limit:Cr,start_after:Vr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.pair=this.pair.bind(this),this.pairs=this.pairs.bind(this)}}OraiswapFactory_client.OraiswapFactoryQueryClient=OraiswapFactoryQueryClient;class OraiswapFactoryClient extends OraiswapFactoryQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.updateConfig=async({owner:Vr,pairCodeId:tt,tokenCodeId:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{owner:Vr,pair_code_id:tt,token_code_id:nt}},st,dt,kt),this.createPair=async({assetInfos:Vr,pairAdmin:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{create_pair:{asset_infos:Vr,pair_admin:tt}},nt,st,dt),this.addPair=async({pairInfo:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{add_pair:{pair_info:Vr}},tt,nt,st),this.migrateContract=async({contractAddr:Vr,msg:tt,newCodeId:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{migrate_contract:{contract_addr:Vr,msg:tt,new_code_id:nt}},st,dt,kt),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.updateConfig=this.updateConfig.bind(this),this.createPair=this.createPair.bind(this),this.addPair=this.addPair.bind(this),this.migrateContract=this.migrateContract.bind(this)}}OraiswapFactory_client.OraiswapFactoryClient=OraiswapFactoryClient;var OraiswapLimitOrder_types={};Object.defineProperty(OraiswapLimitOrder_types,"__esModule",{value:!0});var OraiswapLimitOrder_client={};Object.defineProperty(OraiswapLimitOrder_client,"__esModule",{value:!0}),OraiswapLimitOrder_client.OraiswapLimitOrderClient=OraiswapLimitOrder_client.OraiswapLimitOrderQueryClient=void 0;class OraiswapLimitOrderQueryClient{constructor(cr,gr){this.contractInfo=async()=>this.client.queryContractSmart(this.contractAddress,{contract_info:{}}),this.orderBook=async({assetInfos:Cr})=>this.client.queryContractSmart(this.contractAddress,{order_book:{asset_infos:Cr}}),this.orderBooks=async({limit:Cr,orderBy:Vr,startAfter:tt})=>this.client.queryContractSmart(this.contractAddress,{order_books:{limit:Cr,order_by:Vr,start_after:tt}}),this.order=async({assetInfos:Cr,orderId:Vr})=>this.client.queryContractSmart(this.contractAddress,{order:{asset_infos:Cr,order_id:Vr}}),this.orders=async({assetInfos:Cr,direction:Vr,filter:tt,limit:nt,orderBy:st,startAfter:dt})=>this.client.queryContractSmart(this.contractAddress,{orders:{asset_infos:Cr,direction:Vr,filter:tt,limit:nt,order_by:st,start_after:dt}}),this.tick=async({assetInfos:Cr,direction:Vr,price:tt})=>this.client.queryContractSmart(this.contractAddress,{tick:{asset_infos:Cr,direction:Vr,price:tt}}),this.ticks=async({assetInfos:Cr,direction:Vr,end:tt,limit:nt,orderBy:st,startAfter:dt})=>this.client.queryContractSmart(this.contractAddress,{ticks:{asset_infos:Cr,direction:Vr,end:tt,limit:nt,order_by:st,start_after:dt}}),this.lastOrderId=async()=>this.client.queryContractSmart(this.contractAddress,{last_order_id:{}}),this.orderBookMatchable=async({assetInfos:Cr})=>this.client.queryContractSmart(this.contractAddress,{order_book_matchable:{asset_infos:Cr}}),this.client=cr,this.contractAddress=gr,this.contractInfo=this.contractInfo.bind(this),this.orderBook=this.orderBook.bind(this),this.orderBooks=this.orderBooks.bind(this),this.order=this.order.bind(this),this.orders=this.orders.bind(this),this.tick=this.tick.bind(this),this.ticks=this.ticks.bind(this),this.lastOrderId=this.lastOrderId.bind(this),this.orderBookMatchable=this.orderBookMatchable.bind(this)}}OraiswapLimitOrder_client.OraiswapLimitOrderQueryClient=OraiswapLimitOrderQueryClient;class OraiswapLimitOrderClient extends OraiswapLimitOrderQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.updateAdmin=async({admin:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_admin:{admin:Vr}},tt,nt,st),this.updateConfig=async({commissionRate:Vr,rewardAddress:tt,spreadAddress:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{commission_rate:Vr,reward_address:tt,spread_address:nt}},st,dt,kt),this.createOrderBookPair=async({baseCoinInfo:Vr,minQuoteCoinAmount:tt,quoteCoinInfo:nt,spread:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{create_order_book_pair:{base_coin_info:Vr,min_quote_coin_amount:tt,quote_coin_info:nt,spread:st}},dt,kt,qt),this.submitOrder=async({assets:Vr,direction:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{submit_order:{assets:Vr,direction:tt}},nt,st,dt),this.cancelOrder=async({assetInfos:Vr,orderId:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{cancel_order:{asset_infos:Vr,order_id:tt}},nt,st,dt),this.executeOrderBookPair=async({assetInfos:Vr,limit:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{execute_order_book_pair:{asset_infos:Vr,limit:tt}},nt,st,dt),this.removeOrderBookPair=async({assetInfos:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{remove_order_book_pair:{asset_infos:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.updateAdmin=this.updateAdmin.bind(this),this.updateConfig=this.updateConfig.bind(this),this.createOrderBookPair=this.createOrderBookPair.bind(this),this.submitOrder=this.submitOrder.bind(this),this.cancelOrder=this.cancelOrder.bind(this),this.executeOrderBookPair=this.executeOrderBookPair.bind(this),this.removeOrderBookPair=this.removeOrderBookPair.bind(this)}}OraiswapLimitOrder_client.OraiswapLimitOrderClient=OraiswapLimitOrderClient;var OraiswapOracle_types={};Object.defineProperty(OraiswapOracle_types,"__esModule",{value:!0});var OraiswapOracle_client={};Object.defineProperty(OraiswapOracle_client,"__esModule",{value:!0}),OraiswapOracle_client.OraiswapOracleClient=OraiswapOracle_client.OraiswapOracleQueryClient=void 0;class OraiswapOracleQueryClient{constructor(cr,gr){this.treasury=async Cr=>this.client.queryContractSmart(this.contractAddress,{treasury:Cr}),this.exchange=async Cr=>this.client.queryContractSmart(this.contractAddress,{exchange:Cr}),this.contract=async Cr=>this.client.queryContractSmart(this.contractAddress,{contract:Cr}),this.client=cr,this.contractAddress=gr,this.treasury=this.treasury.bind(this),this.exchange=this.exchange.bind(this),this.contract=this.contract.bind(this)}}OraiswapOracle_client.OraiswapOracleQueryClient=OraiswapOracleQueryClient;class OraiswapOracleClient extends OraiswapOracleQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.updateAdmin=async({admin:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_admin:{admin:Vr}},tt,nt,st),this.updateExchangeRate=async({denom:Vr,exchangeRate:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_exchange_rate:{denom:Vr,exchange_rate:tt}},nt,st,dt),this.deleteExchangeRate=async({denom:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{delete_exchange_rate:{denom:Vr}},tt,nt,st),this.updateTaxCap=async({cap:Vr,denom:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_tax_cap:{cap:Vr,denom:tt}},nt,st,dt),this.updateTaxRate=async({rate:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_tax_rate:{rate:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.updateAdmin=this.updateAdmin.bind(this),this.updateExchangeRate=this.updateExchangeRate.bind(this),this.deleteExchangeRate=this.deleteExchangeRate.bind(this),this.updateTaxCap=this.updateTaxCap.bind(this),this.updateTaxRate=this.updateTaxRate.bind(this)}}OraiswapOracle_client.OraiswapOracleClient=OraiswapOracleClient;var OraiswapPair_types={};Object.defineProperty(OraiswapPair_types,"__esModule",{value:!0});var OraiswapPair_client={};Object.defineProperty(OraiswapPair_client,"__esModule",{value:!0}),OraiswapPair_client.OraiswapPairClient=OraiswapPair_client.OraiswapPairQueryClient=void 0;class OraiswapPairQueryClient{constructor(cr,gr){this.pair=async()=>this.client.queryContractSmart(this.contractAddress,{pair:{}}),this.pool=async()=>this.client.queryContractSmart(this.contractAddress,{pool:{}}),this.simulation=async({offerAsset:Cr})=>this.client.queryContractSmart(this.contractAddress,{simulation:{offer_asset:Cr}}),this.reverseSimulation=async({askAsset:Cr})=>this.client.queryContractSmart(this.contractAddress,{reverse_simulation:{ask_asset:Cr}}),this.client=cr,this.contractAddress=gr,this.pair=this.pair.bind(this),this.pool=this.pool.bind(this),this.simulation=this.simulation.bind(this),this.reverseSimulation=this.reverseSimulation.bind(this)}}OraiswapPair_client.OraiswapPairQueryClient=OraiswapPairQueryClient;class OraiswapPairClient extends OraiswapPairQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.provideLiquidity=async({assets:Vr,receiver:tt,slippageTolerance:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{provide_liquidity:{assets:Vr,receiver:tt,slippage_tolerance:nt}},st,dt,kt),this.swap=async({beliefPrice:Vr,maxSpread:tt,offerAsset:nt,to:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{swap:{belief_price:Vr,max_spread:tt,offer_asset:nt,to:st}},dt,kt,qt),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.provideLiquidity=this.provideLiquidity.bind(this),this.swap=this.swap.bind(this)}}OraiswapPair_client.OraiswapPairClient=OraiswapPairClient;var OraiswapRewarder_types={};Object.defineProperty(OraiswapRewarder_types,"__esModule",{value:!0});var OraiswapRewarder_client={};Object.defineProperty(OraiswapRewarder_client,"__esModule",{value:!0}),OraiswapRewarder_client.OraiswapRewarderClient=OraiswapRewarder_client.OraiswapRewarderQueryClient=void 0;class OraiswapRewarderQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.distributionInfo=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{distribution_info:{staking_token:Cr}}),this.rewardAmountPerSec=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{reward_amount_per_sec:{staking_token:Cr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.distributionInfo=this.distributionInfo.bind(this),this.rewardAmountPerSec=this.rewardAmountPerSec.bind(this)}}OraiswapRewarder_client.OraiswapRewarderQueryClient=OraiswapRewarderQueryClient;class OraiswapRewarderClient extends OraiswapRewarderQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.updateConfig=async({distributionInterval:Vr,owner:tt,stakingContract:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{distribution_interval:Vr,owner:tt,staking_contract:nt}},st,dt,kt),this.distribute=async({stakingTokens:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{distribute:{staking_tokens:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.updateConfig=this.updateConfig.bind(this),this.distribute=this.distribute.bind(this)}}OraiswapRewarder_client.OraiswapRewarderClient=OraiswapRewarderClient;var OraiswapRouter_types={};Object.defineProperty(OraiswapRouter_types,"__esModule",{value:!0});var OraiswapRouter_client={};Object.defineProperty(OraiswapRouter_client,"__esModule",{value:!0}),OraiswapRouter_client.OraiswapRouterClient=OraiswapRouter_client.OraiswapRouterQueryClient=void 0;class OraiswapRouterQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.simulateSwapOperations=async({offerAmount:Cr,operations:Vr})=>this.client.queryContractSmart(this.contractAddress,{simulate_swap_operations:{offer_amount:Cr,operations:Vr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.simulateSwapOperations=this.simulateSwapOperations.bind(this)}}OraiswapRouter_client.OraiswapRouterQueryClient=OraiswapRouterQueryClient;class OraiswapRouterClient extends OraiswapRouterQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.executeSwapOperations=async({minimumReceive:Vr,operations:tt,to:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{execute_swap_operations:{minimum_receive:Vr,operations:tt,to:nt}},st,dt,kt),this.executeSwapOperation=async({operation:Vr,to:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{execute_swap_operation:{operation:Vr,to:tt}},nt,st,dt),this.assertMinimumReceive=async({assetInfo:Vr,minimumReceive:tt,prevBalance:nt,receiver:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{assert_minimum_receive:{asset_info:Vr,minimum_receive:tt,prev_balance:nt,receiver:st}},dt,kt,qt),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.executeSwapOperations=this.executeSwapOperations.bind(this),this.executeSwapOperation=this.executeSwapOperation.bind(this),this.assertMinimumReceive=this.assertMinimumReceive.bind(this)}}OraiswapRouter_client.OraiswapRouterClient=OraiswapRouterClient;var OraiswapStaking_types={};Object.defineProperty(OraiswapStaking_types,"__esModule",{value:!0});var OraiswapStaking_client={};Object.defineProperty(OraiswapStaking_client,"__esModule",{value:!0}),OraiswapStaking_client.OraiswapStakingClient=OraiswapStaking_client.OraiswapStakingQueryClient=void 0;class OraiswapStakingQueryClient{constructor(cr,gr){this.config=async()=>this.client.queryContractSmart(this.contractAddress,{config:{}}),this.poolInfo=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{pool_info:{staking_token:Cr}}),this.rewardsPerSec=async({stakingToken:Cr})=>this.client.queryContractSmart(this.contractAddress,{rewards_per_sec:{staking_token:Cr}}),this.rewardInfo=async({stakerAddr:Cr,stakingToken:Vr})=>this.client.queryContractSmart(this.contractAddress,{reward_info:{staker_addr:Cr,staking_token:Vr}}),this.rewardInfos=async({limit:Cr,order:Vr,stakingToken:tt,startAfter:nt})=>this.client.queryContractSmart(this.contractAddress,{reward_infos:{limit:Cr,order:Vr,staking_token:tt,start_after:nt}}),this.getPoolsInformation=async()=>this.client.queryContractSmart(this.contractAddress,{get_pools_information:{}}),this.queryOldStore=async({storeType:Cr})=>this.client.queryContractSmart(this.contractAddress,{query_old_store:{store_type:Cr}}),this.client=cr,this.contractAddress=gr,this.config=this.config.bind(this),this.poolInfo=this.poolInfo.bind(this),this.rewardsPerSec=this.rewardsPerSec.bind(this),this.rewardInfo=this.rewardInfo.bind(this),this.rewardInfos=this.rewardInfos.bind(this),this.getPoolsInformation=this.getPoolsInformation.bind(this),this.queryOldStore=this.queryOldStore.bind(this)}}OraiswapStaking_client.OraiswapStakingQueryClient=OraiswapStakingQueryClient;class OraiswapStakingClient extends OraiswapStakingQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.receive=async({amount:Vr,msg:tt,sender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{receive:{amount:Vr,msg:tt,sender:nt}},st,dt,kt),this.updateConfig=async({migrateStoreStatus:Vr,owner:tt,rewarder:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_config:{migrate_store_status:Vr,owner:tt,rewarder:nt}},st,dt,kt),this.registerAsset=async({stakingToken:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{register_asset:{staking_token:Vr}},tt,nt,st),this.deprecateStakingToken=async({newStakingToken:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{deprecate_staking_token:{new_staking_token:Vr,staking_token:tt}},nt,st,dt),this.updateRewardsPerSec=async({assets:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{update_rewards_per_sec:{assets:Vr,staking_token:tt}},nt,st,dt),this.depositReward=async({rewards:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{deposit_reward:{rewards:Vr}},tt,nt,st),this.unbond=async({amount:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{unbond:{amount:Vr,staking_token:tt}},nt,st,dt),this.withdraw=async({stakingToken:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{withdraw:{staking_token:Vr}},tt,nt,st),this.withdrawOthers=async({stakerAddrs:Vr,stakingToken:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{withdraw_others:{staker_addrs:Vr,staking_token:tt}},nt,st,dt),this.autoStake=async({assets:Vr,slippageTolerance:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{auto_stake:{assets:Vr,slippage_tolerance:tt}},nt,st,dt),this.autoStakeHook=async({prevStakingTokenAmount:Vr,stakerAddr:tt,stakingToken:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{auto_stake_hook:{prev_staking_token_amount:Vr,staker_addr:tt,staking_token:nt}},st,dt,kt),this.migrateStore=async({assetInfo:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{migrate_store:{asset_info:Vr}},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.receive=this.receive.bind(this),this.updateConfig=this.updateConfig.bind(this),this.registerAsset=this.registerAsset.bind(this),this.deprecateStakingToken=this.deprecateStakingToken.bind(this),this.updateRewardsPerSec=this.updateRewardsPerSec.bind(this),this.depositReward=this.depositReward.bind(this),this.unbond=this.unbond.bind(this),this.withdraw=this.withdraw.bind(this),this.withdrawOthers=this.withdrawOthers.bind(this),this.autoStake=this.autoStake.bind(this),this.autoStakeHook=this.autoStakeHook.bind(this),this.migrateStore=this.migrateStore.bind(this)}}OraiswapStaking_client.OraiswapStakingClient=OraiswapStakingClient;var OraiswapToken_types={};Object.defineProperty(OraiswapToken_types,"__esModule",{value:!0});var OraiswapToken_client={};Object.defineProperty(OraiswapToken_client,"__esModule",{value:!0}),OraiswapToken_client.OraiswapTokenClient=OraiswapToken_client.OraiswapTokenQueryClient=void 0;class OraiswapTokenQueryClient{constructor(cr,gr){this.balance=async({address:Cr})=>this.client.queryContractSmart(this.contractAddress,{balance:{address:Cr}}),this.tokenInfo=async()=>this.client.queryContractSmart(this.contractAddress,{token_info:{}}),this.minter=async()=>this.client.queryContractSmart(this.contractAddress,{minter:{}}),this.allowance=async({owner:Cr,spender:Vr})=>this.client.queryContractSmart(this.contractAddress,{allowance:{owner:Cr,spender:Vr}}),this.allAllowances=async({limit:Cr,owner:Vr,startAfter:tt})=>this.client.queryContractSmart(this.contractAddress,{all_allowances:{limit:Cr,owner:Vr,start_after:tt}}),this.allSpenderAllowances=async({limit:Cr,spender:Vr,startAfter:tt})=>this.client.queryContractSmart(this.contractAddress,{all_spender_allowances:{limit:Cr,spender:Vr,start_after:tt}}),this.allAccounts=async({limit:Cr,startAfter:Vr})=>this.client.queryContractSmart(this.contractAddress,{all_accounts:{limit:Cr,start_after:Vr}}),this.marketingInfo=async()=>this.client.queryContractSmart(this.contractAddress,{marketing_info:{}}),this.downloadLogo=async()=>this.client.queryContractSmart(this.contractAddress,{download_logo:{}}),this.client=cr,this.contractAddress=gr,this.balance=this.balance.bind(this),this.tokenInfo=this.tokenInfo.bind(this),this.minter=this.minter.bind(this),this.allowance=this.allowance.bind(this),this.allAllowances=this.allAllowances.bind(this),this.allSpenderAllowances=this.allSpenderAllowances.bind(this),this.allAccounts=this.allAccounts.bind(this),this.marketingInfo=this.marketingInfo.bind(this),this.downloadLogo=this.downloadLogo.bind(this)}}OraiswapToken_client.OraiswapTokenQueryClient=OraiswapTokenQueryClient;class OraiswapTokenClient extends OraiswapTokenQueryClient{constructor(cr,gr,Cr){super(cr,Cr),this.transfer=async({amount:Vr,recipient:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{transfer:{amount:Vr,recipient:tt}},nt,st,dt),this.burn=async({amount:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{burn:{amount:Vr}},tt,nt,st),this.send=async({amount:Vr,contract:tt,msg:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{send:{amount:Vr,contract:tt,msg:nt}},st,dt,kt),this.increaseAllowance=async({amount:Vr,expires:tt,spender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{increase_allowance:{amount:Vr,expires:tt,spender:nt}},st,dt,kt),this.decreaseAllowance=async({amount:Vr,expires:tt,spender:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{decrease_allowance:{amount:Vr,expires:tt,spender:nt}},st,dt,kt),this.transferFrom=async({amount:Vr,owner:tt,recipient:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{transfer_from:{amount:Vr,owner:tt,recipient:nt}},st,dt,kt),this.sendFrom=async({amount:Vr,contract:tt,msg:nt,owner:st},dt="auto",kt,qt)=>await this.client.execute(this.sender,this.contractAddress,{send_from:{amount:Vr,contract:tt,msg:nt,owner:st}},dt,kt,qt),this.burnFrom=async({amount:Vr,owner:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{burn_from:{amount:Vr,owner:tt}},nt,st,dt),this.mint=async({amount:Vr,recipient:tt},nt="auto",st,dt)=>await this.client.execute(this.sender,this.contractAddress,{mint:{amount:Vr,recipient:tt}},nt,st,dt),this.updateMinter=async({newMinter:Vr},tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{update_minter:{new_minter:Vr}},tt,nt,st),this.updateMarketing=async({description:Vr,marketing:tt,project:nt},st="auto",dt,kt)=>await this.client.execute(this.sender,this.contractAddress,{update_marketing:{description:Vr,marketing:tt,project:nt}},st,dt,kt),this.uploadLogo=async(Vr,tt="auto",nt,st)=>await this.client.execute(this.sender,this.contractAddress,{upload_logo:Vr},tt,nt,st),this.client=cr,this.sender=gr,this.contractAddress=Cr,this.transfer=this.transfer.bind(this),this.burn=this.burn.bind(this),this.send=this.send.bind(this),this.increaseAllowance=this.increaseAllowance.bind(this),this.decreaseAllowance=this.decreaseAllowance.bind(this),this.transferFrom=this.transferFrom.bind(this),this.sendFrom=this.sendFrom.bind(this),this.burnFrom=this.burnFrom.bind(this),this.mint=this.mint.bind(this),this.updateMinter=this.updateMinter.bind(this),this.updateMarketing=this.updateMarketing.bind(this),this.uploadLogo=this.uploadLogo.bind(this)}}OraiswapToken_client.OraiswapTokenClient=OraiswapTokenClient;var types={};Object.defineProperty(types,"__esModule",{value:!0}),function(_e){var cr=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(tt,nt,st,dt){dt===void 0&&(dt=st);var kt=Object.getOwnPropertyDescriptor(nt,st);(!kt||("get"in kt?!nt.__esModule:kt.writable||kt.configurable))&&(kt={enumerable:!0,get:function(){return nt[st]}}),Object.defineProperty(tt,dt,kt)}:function(tt,nt,st,dt){dt===void 0&&(dt=st),tt[dt]=nt[st]}),gr=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(tt,nt){Object.defineProperty(tt,"default",{enumerable:!0,value:nt})}:function(tt,nt){tt.default=nt}),Cr=commonjsGlobal&&commonjsGlobal.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var nt={};if(tt!=null)for(var st in tt)st!=="default"&&Object.prototype.hasOwnProperty.call(tt,st)&&cr(nt,tt,st);return gr(nt,tt),nt},Vr=commonjsGlobal&&commonjsGlobal.__exportStar||function(tt,nt){for(var st in tt)st!=="default"&&!Object.prototype.hasOwnProperty.call(nt,st)&&cr(nt,tt,st)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OraiswapTokenTypes=_e.OraiswapStakingTypes=_e.OraiswapRouterTypes=_e.OraiswapRewarderTypes=_e.OraiswapPairTypes=_e.OraiswapOracleTypes=_e.OraiswapLimitOrderTypes=_e.OraiswapFactoryTypes=_e.OraiswapConverterTypes=void 0,_e.OraiswapConverterTypes=Cr(OraiswapConverter_types),Vr(OraiswapConverter_client,_e),_e.OraiswapFactoryTypes=Cr(OraiswapFactory_types),Vr(OraiswapFactory_client,_e),_e.OraiswapLimitOrderTypes=Cr(OraiswapLimitOrder_types),Vr(OraiswapLimitOrder_client,_e),_e.OraiswapOracleTypes=Cr(OraiswapOracle_types),Vr(OraiswapOracle_client,_e),_e.OraiswapPairTypes=Cr(OraiswapPair_types),Vr(OraiswapPair_client,_e),_e.OraiswapRewarderTypes=Cr(OraiswapRewarder_types),Vr(OraiswapRewarder_client,_e),_e.OraiswapRouterTypes=Cr(OraiswapRouter_types),Vr(OraiswapRouter_client,_e),_e.OraiswapStakingTypes=Cr(OraiswapStaking_types),Vr(OraiswapStaking_client,_e),_e.OraiswapTokenTypes=Cr(OraiswapToken_types),Vr(OraiswapToken_client,_e),Vr(types,_e)}(build);const __vite__wasmUrl="/v3/assets/oraiswap_v3_wasm_bg-DbZ7j55v.wasm",__vite__initWasm=async(_e={},cr)=>{let gr;if(cr.startsWith("data:")){const Cr=cr.replace(/^data:.*?base64,/,"");let Vr;if(typeof Buffer=="function"&&typeof Buffer.from=="function")Vr=Buffer.from(Cr,"base64");else if(typeof atob=="function"){const tt=atob(Cr);Vr=new Uint8Array(tt.length);for(let nt=0;nt"u"?(0,module.require)("util").TextDecoder:TextDecoder;let cachedTextDecoder=new lTextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});cachedTextDecoder.decode();let cachedUint8Memory0=null;function getUint8Memory0(){return(cachedUint8Memory0===null||cachedUint8Memory0.byteLength===0)&&(cachedUint8Memory0=new Uint8Array(wasm$1.memory.buffer)),cachedUint8Memory0}function getStringFromWasm0(_e,cr){return _e=_e>>>0,cachedTextDecoder.decode(getUint8Memory0().subarray(_e,_e+cr))}function isLikeNone(_e){return _e==null}let cachedFloat64Memory0=null;function getFloat64Memory0(){return(cachedFloat64Memory0===null||cachedFloat64Memory0.byteLength===0)&&(cachedFloat64Memory0=new Float64Array(wasm$1.memory.buffer)),cachedFloat64Memory0}let cachedInt32Memory0=null;function getInt32Memory0(){return(cachedInt32Memory0===null||cachedInt32Memory0.byteLength===0)&&(cachedInt32Memory0=new Int32Array(wasm$1.memory.buffer)),cachedInt32Memory0}let WASM_VECTOR_LEN=0;const lTextEncoder=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let cachedTextEncoder=new lTextEncoder("utf-8");const encodeString=typeof cachedTextEncoder.encodeInto=="function"?function(_e,cr){return cachedTextEncoder.encodeInto(_e,cr)}:function(_e,cr){const gr=cachedTextEncoder.encode(_e);return cr.set(gr),{read:_e.length,written:gr.length}};function passStringToWasm0(_e,cr,gr){if(gr===void 0){const st=cachedTextEncoder.encode(_e),dt=cr(st.length,1)>>>0;return getUint8Memory0().subarray(dt,dt+st.length).set(st),WASM_VECTOR_LEN=st.length,dt}let Cr=_e.length,Vr=cr(Cr,1)>>>0;const tt=getUint8Memory0();let nt=0;for(;nt127)break;tt[Vr+nt]=st}if(nt!==Cr){nt!==0&&(_e=_e.slice(nt)),Vr=gr(Vr,Cr,Cr=nt+_e.length*3,1)>>>0;const st=getUint8Memory0().subarray(Vr+nt,Vr+Cr),dt=encodeString(_e,st);nt+=dt.written,Vr=gr(Vr,Cr,nt,1)>>>0}return WASM_VECTOR_LEN=nt,Vr}let cachedBigInt64Memory0=null;function getBigInt64Memory0(){return(cachedBigInt64Memory0===null||cachedBigInt64Memory0.byteLength===0)&&(cachedBigInt64Memory0=new BigInt64Array(wasm$1.memory.buffer)),cachedBigInt64Memory0}function debugString(_e){const cr=typeof _e;if(cr=="number"||cr=="boolean"||_e==null)return`${_e}`;if(cr=="string")return`"${_e}"`;if(cr=="symbol"){const Vr=_e.description;return Vr==null?"Symbol":`Symbol(${Vr})`}if(cr=="function"){const Vr=_e.name;return typeof Vr=="string"&&Vr.length>0?`Function(${Vr})`:"Function"}if(Array.isArray(_e)){const Vr=_e.length;let tt="[";Vr>0&&(tt+=debugString(_e[0]));for(let nt=1;nt1)Cr=gr[1];else return toString.call(_e);if(Cr=="Object")try{return"Object("+JSON.stringify(_e)+")"}catch{return"Object"}return _e instanceof Error?`${_e.name}: ${_e.message} +${_e.stack}`:Cr}function calculateAmountDelta$1(_e,cr,gr,Cr,Vr,tt){try{const kt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.calculateAmountDelta(kt,_e,addHeapObject(cr),addHeapObject(gr),Cr,Vr,tt);var nt=getInt32Memory0()[kt/4+0],st=getInt32Memory0()[kt/4+1],dt=getInt32Memory0()[kt/4+2];if(dt)throw takeObject(st);return takeObject(nt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getGlobalMaxSqrtPrice$1(){const _e=wasm$1.getGlobalMaxSqrtPrice();return takeObject(_e)}function getGlobalMinSqrtPrice$1(){const _e=wasm$1.getGlobalMinSqrtPrice();return takeObject(_e)}function getChunkSize$1(){return wasm$1.getChunkSize()}function getMaxTickmapQuerySize$1(){return wasm$1.getMaxTickmapQuerySize()>>>0}function getLiquidityTicksLimit$1(){return wasm$1.getLiquidityTicksLimit()>>>0}function calculateFee$2(_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro){try{const Nt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.calculateFee(Nt,_e,addHeapObject(cr),addHeapObject(gr),Cr,addHeapObject(Vr),addHeapObject(tt),nt,addHeapObject(st),addHeapObject(dt),addHeapObject(kt),addHeapObject(qt),addHeapObject(ro));var ht=getInt32Memory0()[Nt/4+0],po=getInt32Memory0()[Nt/4+1],no=getInt32Memory0()[Nt/4+2];if(no)throw takeObject(po);return takeObject(ht)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function alignTickToSpacing$1(_e,cr){return wasm$1.alignTickToSpacing(_e,cr)}function getTickAtSqrtPrice$1(_e,cr){try{const tt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.getTickAtSqrtPrice(tt,addHeapObject(_e),cr);var gr=getInt32Memory0()[tt/4+0],Cr=getInt32Memory0()[tt/4+1],Vr=getInt32Memory0()[tt/4+2];if(Vr)throw takeObject(Cr);return gr}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getLiquidityByX$1(_e,cr,gr,Cr,Vr){try{const dt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.getLiquidityByX(dt,addHeapObject(_e),cr,gr,addHeapObject(Cr),Vr);var tt=getInt32Memory0()[dt/4+0],nt=getInt32Memory0()[dt/4+1],st=getInt32Memory0()[dt/4+2];if(st)throw takeObject(nt);return takeObject(tt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getLiquidityByY$1(_e,cr,gr,Cr,Vr){try{const dt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.getLiquidityByY(dt,addHeapObject(_e),cr,gr,addHeapObject(Cr),Vr);var tt=getInt32Memory0()[dt/4+0],nt=getInt32Memory0()[dt/4+1],st=getInt32Memory0()[dt/4+2];if(st)throw takeObject(nt);return takeObject(tt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function newPoolKey$1(_e,cr,gr){try{const nt=wasm$1.__wbindgen_add_to_stack_pointer(-16),st=passStringToWasm0(_e,wasm$1.__wbindgen_malloc,wasm$1.__wbindgen_realloc),dt=WASM_VECTOR_LEN,kt=passStringToWasm0(cr,wasm$1.__wbindgen_malloc,wasm$1.__wbindgen_realloc),qt=WASM_VECTOR_LEN;wasm$1.newPoolKey(nt,st,dt,kt,qt,addHeapObject(gr));var Cr=getInt32Memory0()[nt/4+0],Vr=getInt32Memory0()[nt/4+1],tt=getInt32Memory0()[nt/4+2];if(tt)throw takeObject(Vr);return takeObject(Cr)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getPercentageScale$1(){const _e=wasm$1.getFixedPointScale();return takeObject(_e)}function getPercentageDenominator$1(){const _e=wasm$1.getPercentageDenominator();return takeObject(_e)}function getPriceScale$1(){const _e=wasm$1.getPriceScale();return takeObject(_e)}function getSqrtPriceDenominator$1(){const _e=wasm$1.getPriceDenominator();return takeObject(_e)}function toSqrtPrice$1(_e,cr){try{const tt=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.toSqrtPrice(tt,_e,isLikeNone(cr)?16777215:cr);var gr=getInt32Memory0()[tt/4+0],Cr=getInt32Memory0()[tt/4+1],Vr=getInt32Memory0()[tt/4+2];if(Vr)throw takeObject(Cr);return takeObject(gr)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function calculateSqrtPrice$1(_e){try{const Vr=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.calculateSqrtPrice(Vr,_e);var cr=getInt32Memory0()[Vr/4+0],gr=getInt32Memory0()[Vr/4+1],Cr=getInt32Memory0()[Vr/4+2];if(Cr)throw takeObject(gr);return takeObject(cr)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function getMaxTick$1(_e){return wasm$1.getMaxTick(_e)}function getMinTick$1(_e){return wasm$1.getMinTick(_e)}function simulateSwap$1(_e,cr,gr,Cr,Vr,tt,nt,st){try{const ro=wasm$1.__wbindgen_add_to_stack_pointer(-16);wasm$1.simulateSwap(ro,addHeapObject(_e),addHeapObject(cr),addHeapObject(gr),addHeapObject(Cr),Vr,addHeapObject(tt),nt,addHeapObject(st));var dt=getInt32Memory0()[ro/4+0],kt=getInt32Memory0()[ro/4+1],qt=getInt32Memory0()[ro/4+2];if(qt)throw takeObject(kt);return takeObject(dt)}finally{wasm$1.__wbindgen_add_to_stack_pointer(16)}}function positionToTick$1(_e,cr,gr){return wasm$1.positionToTick(_e,cr,gr)}function handleError(_e,cr){try{return _e.apply(this,cr)}catch(gr){wasm$1.__wbindgen_exn_store(addHeapObject(gr))}}const SwapError=Object.freeze({NotAdmin:0,0:"NotAdmin",NotFeeReceiver:1,1:"NotFeeReceiver",PoolAlreadyExist:2,2:"PoolAlreadyExist",PoolNotFound:3,3:"PoolNotFound",TickAlreadyExist:4,4:"TickAlreadyExist",InvalidTickIndexOrTickSpacing:5,5:"InvalidTickIndexOrTickSpacing",PositionNotFound:6,6:"PositionNotFound",TickNotFound:7,7:"TickNotFound",FeeTierNotFound:8,8:"FeeTierNotFound",PoolKeyNotFound:9,9:"PoolKeyNotFound",AmountIsZero:10,10:"AmountIsZero",WrongLimit:11,11:"WrongLimit",PriceLimitReached:12,12:"PriceLimitReached",NoGainSwap:13,13:"NoGainSwap",InvalidTickSpacing:14,14:"InvalidTickSpacing",FeeTierAlreadyExist:15,15:"FeeTierAlreadyExist",PoolKeyAlreadyExist:16,16:"PoolKeyAlreadyExist",UnauthorizedFeeReceiver:17,17:"UnauthorizedFeeReceiver",ZeroLiquidity:18,18:"ZeroLiquidity",TransferError:19,19:"TransferError",TokensAreSame:20,20:"TokensAreSame",AmountUnderMinimumAmountOut:21,21:"AmountUnderMinimumAmountOut",InvalidFee:22,22:"InvalidFee",NotEmptyTickDeinitialization:23,23:"NotEmptyTickDeinitialization",InvalidInitTick:24,24:"InvalidInitTick",InvalidInitSqrtPrice:25,25:"InvalidInitSqrtPrice",TickLimitReached:26,26:"TickLimitReached",NoRouteFound:27,27:"NoRouteFound",MaxTicksCrossed:28,28:"MaxTicksCrossed",StateOutdated:29,29:"StateOutdated",InsufficientLiquidity:30,30:"InsufficientLiquidity"});function __wbindgen_object_drop_ref(_e){takeObject(_e)}function __wbindgen_bigint_from_u64(_e){const cr=BigInt.asUintN(64,_e);return addHeapObject(cr)}function __wbindgen_shr(_e,cr){const gr=getObject(_e)>>getObject(cr);return addHeapObject(gr)}function __wbindgen_jsval_eq(_e,cr){return getObject(_e)===getObject(cr)}function __wbindgen_error_new(_e,cr){const gr=new Error(getStringFromWasm0(_e,cr));return addHeapObject(gr)}function __wbindgen_is_bigint(_e){return typeof getObject(_e)=="bigint"}function __wbindgen_is_object(_e){const cr=getObject(_e);return typeof cr=="object"&&cr!==null}function __wbindgen_is_undefined(_e){return getObject(_e)===void 0}function __wbindgen_in(_e,cr){return getObject(_e)in getObject(cr)}function __wbindgen_boolean_get(_e){const cr=getObject(_e);return typeof cr=="boolean"?cr?1:0:2}function __wbindgen_object_clone_ref(_e){const cr=getObject(_e);return addHeapObject(cr)}function __wbindgen_bigint_from_u128(_e,cr){const gr=BigInt.asUintN(64,_e)<>>0];return addHeapObject(gr)}function __wbg_length_cd7af8117672b8b8(_e){return getObject(_e).length}function __wbg_new_16b304a2cfa7ff4a(){const _e=new Array;return addHeapObject(_e)}function __wbg_BigInt_42b692c18e1ac6d6(_e){const cr=BigInt(getObject(_e));return addHeapObject(cr)}function __wbindgen_is_function(_e){return typeof getObject(_e)=="function"}function __wbg_next_40fc327bfc8770e6(_e){const cr=getObject(_e).next;return addHeapObject(cr)}function __wbg_next_196c84450b364254(){return handleError(function(_e){const cr=getObject(_e).next();return addHeapObject(cr)},arguments)}function __wbg_done_298b57d23c0fc80c(_e){return getObject(_e).done}function __wbg_value_d93c65011f51a456(_e){const cr=getObject(_e).value;return addHeapObject(cr)}function __wbg_iterator_2cee6dadfd956dfa(){return addHeapObject(Symbol.iterator)}function __wbg_get_e3c254076557e348(){return handleError(function(_e,cr){const gr=Reflect.get(getObject(_e),getObject(cr));return addHeapObject(gr)},arguments)}function __wbg_call_27c0f87801dedf93(){return handleError(function(_e,cr){const gr=getObject(_e).call(getObject(cr));return addHeapObject(gr)},arguments)}function __wbg_new_72fb9a18b5ae2624(){const _e=new Object;return addHeapObject(_e)}function __wbg_set_d4638f722068f043(_e,cr,gr){getObject(_e)[cr>>>0]=takeObject(gr)}function __wbg_isArray_2ab64d95e09ea0ae(_e){return Array.isArray(getObject(_e))}function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(_e){let cr;try{cr=getObject(_e)instanceof ArrayBuffer}catch{cr=!1}return cr}function __wbg_isSafeInteger_f7b04ef02296c4d2(_e){return Number.isSafeInteger(getObject(_e))}function __wbg_entries_95cc2c823b285a09(_e){const cr=Object.entries(getObject(_e));return addHeapObject(cr)}function __wbg_buffer_12d079cc21e14bdb(_e){const cr=getObject(_e).buffer;return addHeapObject(cr)}function __wbg_new_63b92bc8671ed464(_e){const cr=new Uint8Array(getObject(_e));return addHeapObject(cr)}function __wbg_set_a47bac70306a19a7(_e,cr,gr){getObject(_e).set(getObject(cr),gr>>>0)}function __wbg_length_c20a40f15020d68a(_e){return getObject(_e).length}function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(_e){let cr;try{cr=getObject(_e)instanceof Uint8Array}catch{cr=!1}return cr}function __wbindgen_bigint_get_as_i64(_e,cr){const gr=getObject(cr),Cr=typeof gr=="bigint"?gr:void 0;getBigInt64Memory0()[_e/8+1]=isLikeNone(Cr)?BigInt(0):Cr,getInt32Memory0()[_e/4+0]=!isLikeNone(Cr)}function __wbindgen_debug_string(_e,cr){const gr=debugString(getObject(cr)),Cr=passStringToWasm0(gr,wasm$1.__wbindgen_malloc,wasm$1.__wbindgen_realloc),Vr=WASM_VECTOR_LEN;getInt32Memory0()[_e/4+1]=Vr,getInt32Memory0()[_e/4+0]=Cr}function __wbindgen_throw(_e,cr){throw new Error(getStringFromWasm0(_e,cr))}function __wbindgen_memory(){const _e=wasm$1.memory;return addHeapObject(_e)}URL=globalThis.URL;const __vite__wasmModule=await __vite__initWasm({"./oraiswap_v3_wasm_bg.js":{__wbindgen_object_drop_ref,__wbindgen_bigint_from_u64,__wbindgen_shr,__wbindgen_jsval_eq,__wbindgen_error_new,__wbindgen_is_bigint,__wbindgen_is_object,__wbindgen_is_undefined,__wbindgen_in,__wbindgen_boolean_get,__wbindgen_object_clone_ref,__wbindgen_bigint_from_u128,__wbindgen_number_new,__wbindgen_number_get,__wbindgen_string_get,__wbindgen_jsval_loose_eq,__wbindgen_as_number,__wbindgen_string_new,__wbg_getwithrefkey_edc2c8960f0f1191,__wbg_String_88810dfeb4021902,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_set_841ac57cff3d672b,__wbg_get_bd8e338fbd5f5cc8,__wbg_length_cd7af8117672b8b8,__wbg_new_16b304a2cfa7ff4a,__wbg_BigInt_42b692c18e1ac6d6,__wbindgen_is_function,__wbg_next_40fc327bfc8770e6,__wbg_next_196c84450b364254,__wbg_done_298b57d23c0fc80c,__wbg_value_d93c65011f51a456,__wbg_iterator_2cee6dadfd956dfa,__wbg_get_e3c254076557e348,__wbg_call_27c0f87801dedf93,__wbg_new_72fb9a18b5ae2624,__wbg_set_d4638f722068f043,__wbg_isArray_2ab64d95e09ea0ae,__wbg_instanceof_ArrayBuffer_836825be07d4c9d2,__wbg_isSafeInteger_f7b04ef02296c4d2,__wbg_entries_95cc2c823b285a09,__wbg_buffer_12d079cc21e14bdb,__wbg_new_63b92bc8671ed464,__wbg_set_a47bac70306a19a7,__wbg_length_c20a40f15020d68a,__wbg_instanceof_Uint8Array_2b3bbecd033d19f6,__wbindgen_bigint_get_as_i64,__wbindgen_debug_string,__wbindgen_throw,__wbindgen_memory}},__vite__wasmUrl),memory=__vite__wasmModule.memory,computeSwapStep=__vite__wasmModule.computeSwapStep,getDeltaX=__vite__wasmModule.getDeltaX,getDeltaY=__vite__wasmModule.getDeltaY,getNextSqrtPriceFromInput=__vite__wasmModule.getNextSqrtPriceFromInput,getNextSqrtPriceFromOutput=__vite__wasmModule.getNextSqrtPriceFromOutput,getNextSqrtPriceXUp=__vite__wasmModule.getNextSqrtPriceXUp,getNextSqrtPriceYDown=__vite__wasmModule.getNextSqrtPriceYDown,calculateAmountDelta=__vite__wasmModule.calculateAmountDelta,isEnoughAmountToChangePrice=__vite__wasmModule.isEnoughAmountToChangePrice,calculateMaxLiquidityPerTick=__vite__wasmModule.calculateMaxLiquidityPerTick,checkTicks=__vite__wasmModule.checkTicks,checkTick=__vite__wasmModule.checkTick,calculateMinAmountOut=__vite__wasmModule.calculateMinAmountOut,getGlobalMaxSqrtPrice=__vite__wasmModule.getGlobalMaxSqrtPrice,getGlobalMinSqrtPrice=__vite__wasmModule.getGlobalMinSqrtPrice,getTickSearchRange=__vite__wasmModule.getTickSearchRange,getMaxChunk=__vite__wasmModule.getMaxChunk,getChunkSize=__vite__wasmModule.getChunkSize,getMaxTickCross=__vite__wasmModule.getMaxTickCross,getMaxTickmapQuerySize=__vite__wasmModule.getMaxTickmapQuerySize,getLiquidityTicksLimit=__vite__wasmModule.getLiquidityTicksLimit,getMaxPoolKeysReturned=__vite__wasmModule.getMaxPoolKeysReturned,getMaxPoolPairsReturned=__vite__wasmModule.getMaxPoolPairsReturned,calculateFee$1=__vite__wasmModule.calculateFee,isTokenX=__vite__wasmModule.isTokenX,checkTickToSqrtPriceRelationship=__vite__wasmModule.checkTickToSqrtPriceRelationship,alignTickToSpacing=__vite__wasmModule.alignTickToSpacing,getTickAtSqrtPrice=__vite__wasmModule.getTickAtSqrtPrice,getLiquidityByX=__vite__wasmModule.getLiquidityByX,getLiquidityByY=__vite__wasmModule.getLiquidityByY,newFeeTier=__vite__wasmModule.newFeeTier,newPoolKey=__vite__wasmModule.newPoolKey,getFeeGrowthScale=__vite__wasmModule.getFeeGrowthScale,getFeeGrowthDenominator=__vite__wasmModule.getFeeGrowthDenominator,toFeeGrowth=__vite__wasmModule.toFeeGrowth,getFixedPointScale=__vite__wasmModule.getFixedPointScale,getFixedPointDenominator=__vite__wasmModule.getFixedPointDenominator,toFixedPoint=__vite__wasmModule.toFixedPoint,getLiquidityScale=__vite__wasmModule.getLiquidityScale,getLiquidityDenominator=__vite__wasmModule.getLiquidityDenominator,toLiquidity=__vite__wasmModule.toLiquidity,getPercentageDenominator=__vite__wasmModule.getPercentageDenominator,toPercentage=__vite__wasmModule.toPercentage,getPriceScale=__vite__wasmModule.getPriceScale,getPriceDenominator=__vite__wasmModule.getPriceDenominator,toPrice=__vite__wasmModule.toPrice,toSecondsPerLiquidity=__vite__wasmModule.toSecondsPerLiquidity,toSqrtPrice=__vite__wasmModule.toSqrtPrice,calculateSqrtPrice=__vite__wasmModule.calculateSqrtPrice,getMaxTick=__vite__wasmModule.getMaxTick,getMinTick=__vite__wasmModule.getMinTick,getMaxSqrtPrice=__vite__wasmModule.getMaxSqrtPrice,getMinSqrtPrice=__vite__wasmModule.getMinSqrtPrice,getTokenAmountScale=__vite__wasmModule.getTokenAmountScale,getTokenAmountDenominator=__vite__wasmModule.getTokenAmountDenominator,toTokenAmount=__vite__wasmModule.toTokenAmount,simulateSwap=__vite__wasmModule.simulateSwap,tickToPositionJs=__vite__wasmModule.tickToPositionJs,positionToTick=__vite__wasmModule.positionToTick,getSecondsPerLiquidityDenominator=__vite__wasmModule.getSecondsPerLiquidityDenominator,getSqrtPriceDenominator=__vite__wasmModule.getSqrtPriceDenominator,getPercentageScale=__vite__wasmModule.getPercentageScale,getSecondsPerLiquidityScale=__vite__wasmModule.getSecondsPerLiquidityScale,getSqrtPriceScale=__vite__wasmModule.getSqrtPriceScale,__wbindgen_malloc=__vite__wasmModule.__wbindgen_malloc,__wbindgen_realloc=__vite__wasmModule.__wbindgen_realloc,__wbindgen_add_to_stack_pointer=__vite__wasmModule.__wbindgen_add_to_stack_pointer,__wbindgen_exn_store=__vite__wasmModule.__wbindgen_exn_store,wasm=Object.freeze(Object.defineProperty({__proto__:null,__wbindgen_add_to_stack_pointer,__wbindgen_exn_store,__wbindgen_malloc,__wbindgen_realloc,alignTickToSpacing,calculateAmountDelta,calculateFee:calculateFee$1,calculateMaxLiquidityPerTick,calculateMinAmountOut,calculateSqrtPrice,checkTick,checkTickToSqrtPriceRelationship,checkTicks,computeSwapStep,getChunkSize,getDeltaX,getDeltaY,getFeeGrowthDenominator,getFeeGrowthScale,getFixedPointDenominator,getFixedPointScale,getGlobalMaxSqrtPrice,getGlobalMinSqrtPrice,getLiquidityByX,getLiquidityByY,getLiquidityDenominator,getLiquidityScale,getLiquidityTicksLimit,getMaxChunk,getMaxPoolKeysReturned,getMaxPoolPairsReturned,getMaxSqrtPrice,getMaxTick,getMaxTickCross,getMaxTickmapQuerySize,getMinSqrtPrice,getMinTick,getNextSqrtPriceFromInput,getNextSqrtPriceFromOutput,getNextSqrtPriceXUp,getNextSqrtPriceYDown,getPercentageDenominator,getPercentageScale,getPriceDenominator,getPriceScale,getSecondsPerLiquidityDenominator,getSecondsPerLiquidityScale,getSqrtPriceDenominator,getSqrtPriceScale,getTickAtSqrtPrice,getTickSearchRange,getTokenAmountDenominator,getTokenAmountScale,isEnoughAmountToChangePrice,isTokenX,memory,newFeeTier,newPoolKey,positionToTick,simulateSwap,tickToPositionJs,toFeeGrowth,toFixedPoint,toLiquidity,toPercentage,toPrice,toSecondsPerLiquidity,toSqrtPrice,toTokenAmount},Symbol.toStringTag,{value:"Module"}));__wbg_set_wasm(wasm);const OraiIcon="data:image/svg+xml,%3csvg%20width='44'%20height='44'%20viewBox='0%200%2032%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_323_8004)'%3e%3cg%20clip-path='url(%23clip1_323_8004)'%3e%3cpath%20d='M13.2528%2014.1654L14.2668%2017.1603H11.9794L13.0523%2014.1654H13.2528ZM18.7237%2018.7638H17.0494V19.3534H21.1761V18.7638H19.5254V14.0475H21.1761V13.458H17.0494V14.0475H18.7237V18.7638ZM11.1894%2019.3534L11.7553%2017.7734H14.479L15.0096%2019.3534H15.8821L13.7598%2013.458H12.5571L10.3994%2019.3534H11.1894ZM24.4657%2024.9657H7.53427V8.03427H24.4657V24.9657Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M17.6507%2032.5C25.2086%2031.7218%2031.2219%2025.7085%2032.0001%2018.1507H30.0074C29.3%2024.7063%2024.3361%2029.9296%2017.6507%2030.6724V32.5Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M0%2018.1507C0.778187%2025.7085%206.79145%2031.7218%2014.3493%2032.5V30.6724C7.66396%2029.9296%202.71186%2024.6945%201.99263%2018.1507H0Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M32.0001%2014.8493C31.2219%207.29145%2025.2086%201.27819%2017.6507%200.5V2.32756C24.3361%203.07038%2029.2882%208.30545%2030.0074%2014.8493H32.0001Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M14.3493%200.5C6.79145%201.27819%200.778187%207.29145%200%2014.8493H1.99263C2.70007%208.29367%207.66397%203.07038%2014.3493%202.32756V0.5Z'%20fill='white'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_323_8004'%3e%3crect%20width='44'%20height='44'%20fill='white'%20transform='translate(0%200.5)'%3e%3c/rect%3e%3c/clipPath%3e%3cclipPath%20id='clip1_323_8004'%3e%3crect%20width='44'%20height='44'%20fill='white'%20transform='translate(0%200.5)'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",OraiXIcon="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2045%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20class='logo'%3e%3cpath%20d='M0%2019.7264H2.44673C2.51127%2019.1572%202.60515%2018.5939%202.71663%2018.0365C2.9748%2016.775%203.36205%2015.5311%203.86078%2014.3459C4.35365%2013.1783%204.96386%2012.0576%205.67382%2011.0015C6.37792%209.95706%207.18763%208.9772%208.07948%208.08534C8.97133%207.19349%209.95119%206.38378%2010.9956%205.67969C12.0459%204.96973%2013.1724%204.35952%2014.34%203.86665C15.5253%203.36792%2016.7692%202.98067%2018.0307%202.7225C18.5881%202.61102%2019.1514%202.51713%2019.7205%202.45259V0C9.32925%201.06788%201.06201%209.32924%200%2019.7264ZM41.5533%2024.2795C41.4887%2024.8486%2041.3949%2025.4119%2041.2834%2025.9693C41.0252%2027.2308%2040.638%2028.4747%2040.1392%2029.66C39.6464%2030.8276%2039.0361%2031.9483%2038.3262%2033.0044C37.6221%2034.0488%2036.8124%2035.0287%2035.9205%2035.9205C35.0287%2036.8124%2034.0488%2037.6221%2033.0044%2038.3262C31.9541%2039.0361%2030.8276%2039.6464%2029.66%2040.1392C28.4747%2040.638%2027.2308%2041.0252%2025.9693%2041.2834C25.4119%2041.3949%2024.8486%2041.4887%2024.2795%2041.5533V44C34.6708%2042.938%2042.938%2034.6708%2044%2024.2795H41.5533ZM14.34%2040.1392C13.1724%2039.6464%2012.0517%2039.0361%2010.9956%2038.3262C9.95119%2037.6221%208.97133%2036.8124%208.07948%2035.9205C7.18763%2035.0287%206.37792%2034.0488%205.67382%2033.0044C4.96386%2031.9541%204.35365%2030.8276%203.86078%2029.66C3.36205%2028.4747%202.9748%2027.2308%202.71663%2025.9693C2.60515%2025.4119%202.51127%2024.8486%202.44673%2024.2795H0C1.06201%2034.6708%209.32925%2042.938%2019.7205%2044V41.5533C19.1514%2041.4887%2018.5881%2041.3949%2018.0307%2041.2834C16.7692%2041.0311%2015.5253%2040.6438%2014.34%2040.1392ZM24.2795%200V2.44673C24.8486%202.51127%2025.4119%202.60515%2025.9693%202.71663C27.2308%202.9748%2028.4747%203.36205%2029.66%203.86078C30.8276%204.35365%2031.9483%204.96386%2033.0044%205.67382C34.0488%206.37792%2035.0287%207.18763%2035.9205%208.07948C36.8124%208.97133%2037.6221%209.95119%2038.3262%2010.9956C39.0361%2012.0459%2039.6464%2013.1724%2040.1392%2014.34C40.638%2015.5253%2041.0252%2016.7692%2041.2834%2018.0307C41.3949%2018.5881%2041.4887%2019.1514%2041.5533%2019.7205H44.0059C42.938%209.32924%2034.6766%201.06788%2024.2795%200Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M14.7387%2010.5381H10.5435V14.7333H14.7387V10.5381Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M33.4736%2010.5381H27.8115V16.2002H33.4736V10.5381Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M33.4737%2026.0215V33.4673H26.0278V26.0215H33.4737Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M12.9843%2031.0215H10.5435V33.4623H12.9843V31.0215Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M22.0085%2022.1623L10.696%2033.4689H10.5435V33.3105L21.85%2022.0039L22.0085%2022.1623Z'%20fill='url(%23paint0_linear_1311_9895)'%3e%3c/path%3e%3cpath%20d='M33.4733%2010.5381V10.6965L27.9638%2016.2002L22.1667%2022.0031L22.0083%2021.8447L27.8112%2016.0476L33.3149%2010.5381H33.4733Z'%20fill='url(%23paint1_linear_1311_9895)'%3e%3c/path%3e%3cpath%20d='M22.0085%2021.8447L21.85%2022.0031L10.5435%2010.6965V10.5381H10.696L22.0085%2021.8447Z'%20fill='url(%23paint2_linear_1311_9895)'%3e%3c/path%3e%3cpath%20d='M33.4733%2033.3105V33.4689H33.3149L22.0083%2022.1623L22.1667%2022.0039L33.4733%2033.3105Z'%20fill='url(%23paint3_linear_1311_9895)'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20x1='21.9282'%20y1='22.0815'%20x2='12.9518'%20y2='31.0579'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='22.0848'%20y1='21.925'%20x2='27.7815'%20y2='16.2282'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='21.8781'%20y1='21.8754'%20x2='14.7094'%20y2='14.7068'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='22.0622'%20y1='22.0595'%20x2='26.158'%20y2='26.1553'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.9809'%20stop-color='white'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";var OraichainNetworks=(_e=>(_e.TEST="https://testnet.rpc.orai.io",_e.MAIN="https://rpc.orai.io",_e))(OraichainNetworks||{});const POSITIONS_PER_PAGE=5,STABLECOIN_ADDRESSES=[],bestTiers={Testnet:[],Mainnet:[],Local:[]},commonTokensForNetworks={Testnet:[],Mainnet:[],Local:[]},FaucetTokenList={ORAI:"orai",ORAIX:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",OCH:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",USDT:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",USDC:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd"},allowTokenSymbol=Object.keys(FaucetTokenList),OCH={symbol:"OCH",address:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",decimals:6,name:"OCH",logoURI:"https://assets.coingecko.com/coins/images/34236/standard/orchai_logo_white_copy_4x-8_%281%29.png?1704307670",coingeckoId:"och"},USDT={symbol:"USDT",address:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",decimals:6,name:"USDT",logoURI:"https://assets.coingecko.com/coins/images/325/standard/Tether.png",coingeckoId:"tether"},USDC={symbol:"USDC",address:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",decimals:6,name:"USDC",logoURI:"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png",coingeckoId:"usd-coin"},ORAI={symbol:"ORAI",address:"orai",decimals:6,name:"Oraichain Native Token",logoURI:OraiIcon,coingeckoId:"oraichain-token"},ORAIX={symbol:"ORAIX",address:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",decimals:6,name:"ORAIX",logoURI:OraiXIcon,coingeckoId:"oraidex"},U128MAX=2n**128n-1n;BigInt(Math.ceil(.05*10**12)),BigInt(Math.ceil(.05*10**12));const REFRESHER_INTERVAL=20,SWAP_HOPS_CACHE={"orai-orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge-0-0":[{pool_key:{token_x:"orai",token_y:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0}],"orai-orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q-0-0":[{pool_key:{token_x:"orai",token_y:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0}],"orai-orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd-0-0":[{pool_key:{token_x:"orai",token_y:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",fee_tier:{fee:5e8,tick_spacing:10}},x_to_y:!0}],"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge-orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q-0-0":[{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!1},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!0}],"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge-orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd-0-0":[{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1lus0f0rhx8s03gdllx2n6vhkmf0536dv57wfge",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!1},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",fee_tier:{fee:5e8,tick_spacing:10}},x_to_y:!0}],"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q-orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd-0-0":[{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai1hn8w33cqvysun2aujk5sv33tku4pgcxhhnsxmvnkfvdxagcx0p8qa4l98q",fee_tier:{fee:3e9,tick_spacing:100}},x_to_y:!1},{pool_key:{token_x:"orai12hzjxfh77wl572gdzct2fxv2arxcwh6gykc7qh",token_y:"orai15un8msx3n5zf9ahlxmfeqd2kwa5wm0nrpxer304m9nd5q6qq0g6sku5pdd",fee_tier:{fee:5e8,tick_spacing:10}},x_to_y:!0}]};var Status$1=(_e=>(_e.Uninitialized="uninitialized",_e.Init="init",_e.Error="error",_e.Initialized="initalized",_e))(Status$1||{});const defaultState$4={status:"uninitialized",message:"",networkType:"Mainnet",blockNumber:0,rpcAddress:OraichainNetworks.MAIN,dexAddress:"orai10s0c75gw5y5eftms5ncfknw6lzmx0dyhedn75uz793m8zwz4g8zq4d9x9a"},connectionSliceName="connection",connectionSlice=createSlice({name:connectionSliceName,initialState:defaultState$4,reducers:{initOraichainConnection(_e){return _e.status="init",_e},setStatus(_e,cr){return _e.status=cr.payload,_e},setMessage(_e,cr){return _e.message=cr.payload,_e},setNetwork(_e,cr){return _e.networkType=cr.payload.networkType,_e.rpcAddress=cr.payload.rpcAddress,_e},updateSlot(_e){return _e},setSlot(_e,cr){return _e.blockNumber=cr.payload,_e}}}),actions$5=connectionSlice.actions,reducer$5=connectionSlice.reducer,assert$1=(_e,cr)=>{if(!_e)throw new Error("assertion failed")},Wl=class Wl{constructor(){}static get dex(){return this._dex}static get dexQuerier(){return this._dexQuerier}static get tokens(){return this._tokens}static get nativeTokens(){return this._nativeTokens}static async load(cr,gr){(!this.dex||defaultState$4.dexAddress!==this.dex.contractAddress)&&(this._dex=new OraiswapV3Client(cr,gr,defaultState$4.dexAddress));const Cr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");this._dexQuerier=new OraiswapV3QueryClient(Cr,defaultState$4.dexAddress)}static async loadCw20(cr,gr){this._tokens[gr]=new build.OraiswapTokenClient(this._dex.client,cr,gr)}static async loadNative(cr){this._nativeTokens[cr]=cr}static async queryBalance(cr,gr="orai"){if(!cr)return"0";const Cr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/"),{amount:Vr}=await Cr.getBalance(cr,gr);return Vr}static async getRawTickmap(cr,gr,Cr,Vr){const tt=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");return await new OraiswapV3QueryClient(tt,defaultState$4.dexAddress).tickMap({lowerTickIndex:gr,upperTickIndex:Cr,xToY:Vr,poolKey:cr})}static async getTokensInfo(cr,gr){return await Promise.all(cr.map(async Cr=>{if(Cr.includes("ibc")||Cr=="orai"){const qt=this._dex?BigInt(await this.queryBalance(gr,Cr)):BigInt(0);return{address:Cr,balance:qt,symbol:Cr=="orai"?"ORAI":"IBC",decimals:6,name:Cr=="orai"?"ORAI":"IBC Token"}}const Vr=new build.OraiswapTokenQueryClient(this.dex.client,Cr),tt=await Vr.balance({address:gr}),nt=await Vr.tokenInfo(),st=nt.symbol,dt=nt.decimals,kt=nt.name;return{address:Cr,balance:BigInt(tt.balance),symbol:st,decimals:dt,name:kt}}))}static async getPools(){const cr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");return await new OraiswapV3QueryClient(cr,defaultState$4.dexAddress).pools({})}static async getPool(cr){const gr=await build$d.CosmWasmClient.connect("https://rpc.orai.io/");return{pool:await new OraiswapV3QueryClient(gr,defaultState$4.dexAddress).pool({feeTier:cr.fee_tier,token0:cr.token_x,token1:cr.token_y}),pool_key:cr}}static async getAllPosition(cr,gr,Cr){return await this.dex.client.queryContractSmart(defaultState$4.dexAddress,{positions:{limit:gr,offset:Cr,owner_id:cr}})}static async getFullTickmap(cr){const gr=getMaxTick$1(cr.fee_tier.tick_spacing);let Cr=getMinTick$1(cr.fee_tier.tick_spacing);const Vr=!1,tt=[],nt=cr.fee_tier.tick_spacing;assert$1(nt<=100),assert$1(MAX_TICKMAP_QUERY_SIZE>3),assert$1(CHUNK_SIZE*2>nt);const st=(MAX_TICKMAP_QUERY_SIZE-3)*CHUNK_SIZE;for(;Cr<=gr;){let kt=Cr+st;const qt=kt%nt;qt>0?kt+=nt-qt:qt<0&&(kt-=qt);let ro=kt;ro>gr&&(ro=gr),assert$1(ro%nt===0),assert$1(Cr%nt===0);const ht=this.getRawTickmap(cr,Cr,ro,Vr).then(po=>po.map(([no,Nt])=>[BigInt(no),BigInt(Nt)]));tt.push(ht),Cr=ro+nt}const dt=(await Promise.all(tt)).flat(1);return{bitmap:new Map(dt)}}static async getAllLiquidityTicks(cr,gr){const Cr=[];for(const[nt,st]of gr.bitmap.entries())for(let dt=0;dtawait new build.OraiswapTokenClient(Wl.dex.client,Cr,cr).increaseAllowance({amount:gr.toString(),spender:Wl.dex.contractAddress}));let SingletonOraiswapV3=Wl;var axios$3={exports:{}},bind$2=function _e(cr,gr){return function(){return cr.apply(gr,arguments)}},bind$1=bind$2,toString$4=Object.prototype.toString,kindOf=function(_e){return function(cr){var gr=toString$4.call(cr);return _e[gr]||(_e[gr]=gr.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(_e){return _e=_e.toLowerCase(),function(cr){return kindOf(cr)===_e}}function isArray$e(_e){return Array.isArray(_e)}function isUndefined(_e){return typeof _e>"u"}function isBuffer$4(_e){return _e!==null&&!isUndefined(_e)&&_e.constructor!==null&&!isUndefined(_e.constructor)&&typeof _e.constructor.isBuffer=="function"&&_e.constructor.isBuffer(_e)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(_e){var cr;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?cr=ArrayBuffer.isView(_e):cr=_e&&_e.buffer&&isArrayBuffer(_e.buffer),cr}function isString$3(_e){return typeof _e=="string"}function isNumber$1(_e){return typeof _e=="number"}function isObject$d(_e){return _e!==null&&typeof _e=="object"}function isPlainObject$3(_e){if(kindOf(_e)!=="object")return!1;var cr=Object.getPrototypeOf(_e);return cr===null||cr===Object.prototype}function isEmptyObject(_e){return _e&&Object.keys(_e).length===0&&Object.getPrototypeOf(_e)===Object.prototype}var isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList");function isFunction$4(_e){return toString$4.call(_e)==="[object Function]"}function isStream(_e){return isObject$d(_e)&&isFunction$4(_e.pipe)}function isFormData(_e){var cr="[object FormData]";return _e&&(typeof FormData=="function"&&_e instanceof FormData||toString$4.call(_e)===cr||isFunction$4(_e.toString)&&_e.toString()===cr)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim$1(_e){return _e.trim?_e.trim():_e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function isStandardBrowserEnv(){var _e;return typeof navigator<"u"&&((_e=navigator.product)==="ReactNative"||_e==="NativeScript"||_e==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(_e,cr){if(!(_e===null||typeof _e>"u"))if(typeof _e!="object"&&(_e=[_e]),isArray$e(_e))for(var gr=0,Cr=_e.length;gr0;)nt=Vr[tt],(!Cr||Cr(nt,_e,cr))&&!st[nt]&&(cr[nt]=_e[nt],st[nt]=!0);_e=gr!==!1&&Object.getPrototypeOf(_e)}while(_e&&(!gr||gr(_e,cr))&&_e!==Object.prototype);return cr}function endsWith(_e,cr,gr){_e=String(_e),(gr===void 0||gr>_e.length)&&(gr=_e.length),gr-=cr.length;var Cr=_e.indexOf(cr,gr);return Cr!==-1&&Cr===gr}function toArray$1(_e){if(!_e)return null;if(isArray$e(_e))return _e;var cr=_e.length;if(!isNumber$1(cr))return null;for(var gr=new Array(cr);cr-- >0;)gr[cr]=_e[cr];return gr}var isTypedArray$4=function(_e){return function(cr){return _e&&cr instanceof _e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));function forEachEntry(_e,cr){for(var gr=_e&&_e[Symbol.iterator],Cr=gr.call(_e),Vr;(Vr=Cr.next())&&!Vr.done;){var tt=Vr.value;cr.call(_e,tt[0],tt[1])}}function matchAll(_e,cr){for(var gr,Cr=[];(gr=_e.exec(cr))!==null;)Cr.push(gr);return Cr}var isHTMLForm=kindOfTest("HTMLFormElement"),hasOwnProperty$c=function _e(cr){return function(gr,Cr){return cr.call(gr,Cr)}}(Object.prototype.hasOwnProperty),utils$f={isArray:isArray$e,isArrayBuffer,isBuffer:isBuffer$4,isFormData,isArrayBufferView,isString:isString$3,isNumber:isNumber$1,isObject:isObject$d,isPlainObject:isPlainObject$3,isEmptyObject,isUndefined,isDate:isDate$1,isFile,isBlob,isFunction:isFunction$4,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge:merge$4,extend:extend$1,trim:trim$1,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,isTypedArray:isTypedArray$4,isFileList,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$c},utils$e=utils$f;function AxiosError$3(_e,cr,gr,Cr,Vr){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_e,this.name="AxiosError",cr&&(this.code=cr),gr&&(this.config=gr),Cr&&(this.request=Cr),Vr&&(this.response=Vr)}utils$e.inherits(AxiosError$3,Error,{toJSON:function _e(){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,status:this.response&&this.response.status?this.response.status:null}}});var prototype$1=AxiosError$3.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(_e){descriptors[_e]={value:_e}}),Object.defineProperties(AxiosError$3,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$3.from=function(_e,cr,gr,Cr,Vr,tt){var nt=Object.create(prototype$1);return utils$e.toFlatObject(_e,nt,function(st){return st!==Error.prototype}),AxiosError$3.call(nt,_e.message,cr,gr,Cr,Vr),nt.cause=_e,nt.name=_e.name,tt&&Object.assign(nt,tt),nt};var AxiosError_1=AxiosError$3,browser$1=typeof self=="object"?self.FormData:window.FormData,FormData$1=browser$1,utils$d=utils$f,AxiosError$2=AxiosError_1,envFormData=FormData$1;function isVisitable(_e){return utils$d.isPlainObject(_e)||utils$d.isArray(_e)}function removeBrackets(_e){return utils$d.endsWith(_e,"[]")?_e.slice(0,-2):_e}function renderKey(_e,cr,gr){return _e?_e.concat(cr).map(function(Cr,Vr){return Cr=removeBrackets(Cr),!gr&&Vr?"["+Cr+"]":Cr}).join(gr?".":""):cr}function isFlatArray(_e){return utils$d.isArray(_e)&&!_e.some(isVisitable)}var predicates=utils$d.toFlatObject(utils$d,{},null,function _e(cr){return/^is[A-Z]/.test(cr)});function isSpecCompliant(_e){return _e&&utils$d.isFunction(_e.append)&&_e[Symbol.toStringTag]==="FormData"&&_e[Symbol.iterator]}function toFormData$3(_e,cr,gr){if(!utils$d.isObject(_e))throw new TypeError("target must be an object");cr=cr||new(envFormData||FormData),gr=utils$d.toFlatObject(gr,{metaTokens:!0,dots:!1,indexes:!1},!1,function(no,Nt){return!utils$d.isUndefined(Nt[no])});var Cr=gr.metaTokens,Vr=gr.visitor||qt,tt=gr.dots,nt=gr.indexes,st=gr.Blob||typeof Blob<"u"&&Blob,dt=st&&isSpecCompliant(cr);if(!utils$d.isFunction(Vr))throw new TypeError("visitor must be a function");function kt(no){if(no===null)return"";if(utils$d.isDate(no))return no.toISOString();if(!dt&&utils$d.isBlob(no))throw new AxiosError$2("Blob is not supported. Use a Buffer instead.");return utils$d.isArrayBuffer(no)||utils$d.isTypedArray(no)?dt&&typeof Blob=="function"?new Blob([no]):Buffer.from(no):no}function qt(no,Nt,eo){var Wt=no;if(no&&!eo&&typeof no=="object"){if(utils$d.endsWith(Nt,"{}"))Nt=Cr?Nt:Nt.slice(0,-2),no=JSON.stringify(no);else if(utils$d.isArray(no)&&isFlatArray(no)||utils$d.isFileList(no)||utils$d.endsWith(Nt,"[]")&&(Wt=utils$d.toArray(no)))return Nt=removeBrackets(Nt),Wt.forEach(function(St,Ot){!utils$d.isUndefined(St)&&cr.append(nt===!0?renderKey([Nt],Ot,tt):nt===null?Nt:Nt+"[]",kt(St))}),!1}return isVisitable(no)?!0:(cr.append(renderKey(eo,Nt,tt),kt(no)),!1)}var ro=[],ht=Object.assign(predicates,{defaultVisitor:qt,convertValue:kt,isVisitable});function po(no,Nt){if(!utils$d.isUndefined(no)){if(ro.indexOf(no)!==-1)throw Error("Circular reference detected in "+Nt.join("."));ro.push(no),utils$d.forEach(no,function(eo,Wt){var St=!utils$d.isUndefined(eo)&&Vr.call(cr,eo,utils$d.isString(Wt)?Wt.trim():Wt,Nt,ht);St===!0&&po(eo,Nt?Nt.concat(Wt):[Wt])}),ro.pop()}}if(!utils$d.isObject(_e))throw new TypeError("data must be an object");return po(_e),cr}var toFormData_1=toFormData$3,toFormData$2=toFormData_1;function encode$1(_e){var cr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_e).replace(/[!'\(\)~]|%20|%00/g,function(gr){return cr[gr]})}function AxiosURLSearchParams$2(_e,cr){this._pairs=[],_e&&toFormData$2(_e,this,cr)}var prototype=AxiosURLSearchParams$2.prototype;prototype.append=function _e(cr,gr){this._pairs.push([cr,gr])},prototype.toString=function _e(cr){var gr=cr?function(Cr){return cr.call(this,Cr,encode$1)}:encode$1;return this._pairs.map(function(Cr){return gr(Cr[0])+"="+gr(Cr[1])},"").join("&")};var AxiosURLSearchParams_1=AxiosURLSearchParams$2,utils$c=utils$f,AxiosURLSearchParams$1=AxiosURLSearchParams_1;function encode(_e){return encodeURIComponent(_e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function _e(cr,gr,Cr){if(!gr)return cr;var Vr=cr.indexOf("#");Vr!==-1&&(cr=cr.slice(0,Vr));var tt=Cr&&Cr.encode||encode,nt=Cr&&Cr.serialize,st;return nt?st=nt(gr,Cr):st=utils$c.isURLSearchParams(gr)?gr.toString():new AxiosURLSearchParams$1(gr,Cr).toString(tt),st&&(cr+=(cr.indexOf("?")===-1?"?":"&")+st),cr},utils$b=utils$f;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function _e(cr,gr,Cr){return this.handlers.push({fulfilled:cr,rejected:gr,synchronous:Cr?Cr.synchronous:!1,runWhen:Cr?Cr.runWhen:null}),this.handlers.length-1},InterceptorManager$1.prototype.eject=function _e(cr){this.handlers[cr]&&(this.handlers[cr]=null)},InterceptorManager$1.prototype.clear=function _e(){this.handlers&&(this.handlers=[])},InterceptorManager$1.prototype.forEach=function _e(cr){utils$b.forEach(this.handlers,function(gr){gr!==null&&cr(gr)})};var InterceptorManager_1=InterceptorManager$1,utils$a=utils$f,normalizeHeaderName$2=function _e(cr,gr){utils$a.forEach(cr,function(Cr,Vr){Vr!==gr&&Vr.toUpperCase()===gr.toUpperCase()&&(cr[gr]=Cr,delete cr[Vr])})},transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AxiosURLSearchParams=AxiosURLSearchParams_1,URLSearchParams_1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData_1=FormData,browser={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_1,FormData:FormData_1,Blob},protocols:["http","https","file","blob","url","data"]},platform$2=browser,utils$9=utils$f,toFormData$1=toFormData_1,platform$1=platform$2,toURLEncodedForm$1=function _e(cr,gr){return toFormData$1(cr,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(Cr,Vr,tt,nt){return platform$1.isNode&&utils$9.isBuffer(Cr)?(this.append(Vr,Cr.toString("base64")),!1):nt.defaultVisitor.apply(this,arguments)}},gr))},utils$8=utils$f;function parsePropPath(_e){return utils$8.matchAll(/\w+|\[(\w*)]/g,_e).map(function(cr){return cr[0]==="[]"?"":cr[1]||cr[0]})}function arrayToObject(_e){var cr={},gr=Object.keys(_e),Cr,Vr=gr.length,tt;for(Cr=0;Cr=Cr.length;if(st=!st&&utils$8.isArray(tt)?tt.length:st,kt)return utils$8.hasOwnProperty(tt,st)?tt[st]=[tt[st],Vr]:tt[st]=Vr,!dt;(!tt[st]||!utils$8.isObject(tt[st]))&&(tt[st]=[]);var qt=cr(Cr,Vr,tt[st],nt);return qt&&utils$8.isArray(tt[st])&&(tt[st]=arrayToObject(tt[st])),!dt}if(utils$8.isFormData(_e)&&utils$8.isFunction(_e.entries)){var gr={};return utils$8.forEachEntry(_e,function(Cr,Vr){cr(parsePropPath(Cr),Vr,gr,0)}),gr}return null}var formDataToJSON_1=formDataToJSON$2,settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var _e=AxiosError_1;return settle=function(cr,gr,Cr){var Vr=Cr.config.validateStatus;!Cr.status||!Vr||Vr(Cr.status)?cr(Cr):gr(new _e("Request failed with status code "+Cr.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(Cr.status/100)-4],Cr.config,Cr.request,Cr))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var _e=utils$f;return cookies=_e.isStandardBrowserEnv()?function(){return{write:function(cr,gr,Cr,Vr,tt,nt){var st=[];st.push(cr+"="+encodeURIComponent(gr)),_e.isNumber(Cr)&&st.push("expires="+new Date(Cr).toGMTString()),_e.isString(Vr)&&st.push("path="+Vr),_e.isString(tt)&&st.push("domain="+tt),nt===!0&&st.push("secure"),document.cookie=st.join("; ")},read:function(cr){var gr=document.cookie.match(new RegExp("(^|;\\s*)("+cr+")=([^;]*)"));return gr?decodeURIComponent(gr[3]):null},remove:function(cr){this.write(cr,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL$1=function _e(cr){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(cr)},combineURLs$1=function _e(cr,gr){return gr?cr.replace(/\/+$/,"")+"/"+gr.replace(/^\/+/,""):cr},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function _e(cr,gr){return cr&&!isAbsoluteURL(gr)?combineURLs(cr,gr):gr},parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var _e=utils$f,cr=["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=function(gr){var Cr={},Vr,tt,nt;return gr&&_e.forEach(gr.split(` `),function(st){if(nt=st.indexOf(":"),Vr=_e.trim(st.slice(0,nt)).toLowerCase(),tt=_e.trim(st.slice(nt+1)),Vr){if(Cr[Vr]&&cr.indexOf(Vr)>=0)return;Vr==="set-cookie"?Cr[Vr]=(Cr[Vr]?Cr[Vr]:[]).concat([tt]):Cr[Vr]=Cr[Vr]?Cr[Vr]+", "+tt:tt}}),Cr},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var _e=utils$f;return isURLSameOrigin=_e.isStandardBrowserEnv()?function(){var cr=/(msie|trident)/i.test(navigator.userAgent),gr=document.createElement("a"),Cr;function Vr(tt){var nt=tt;return cr&&(gr.setAttribute("href",nt),nt=gr.href),gr.setAttribute("href",nt),{href:gr.href,protocol:gr.protocol?gr.protocol.replace(/:$/,""):"",host:gr.host,search:gr.search?gr.search.replace(/^\?/,""):"",hash:gr.hash?gr.hash.replace(/^#/,""):"",hostname:gr.hostname,port:gr.port,pathname:gr.pathname.charAt(0)==="/"?gr.pathname:"/"+gr.pathname}}return Cr=Vr(window.location.href),function(tt){var nt=_e.isString(tt)?Vr(tt):tt;return nt.protocol===Cr.protocol&&nt.host===Cr.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var CanceledError_1,hasRequiredCanceledError;function requireCanceledError(){if(hasRequiredCanceledError)return CanceledError_1;hasRequiredCanceledError=1;var _e=AxiosError_1,cr=utils$f;function gr(Cr,Vr,tt){_e.call(this,Cr??"canceled",_e.ERR_CANCELED,Vr,tt),this.name="CanceledError"}return cr.inherits(gr,_e,{__CANCEL__:!0}),CanceledError_1=gr,CanceledError_1}var parseProtocol,hasRequiredParseProtocol;function requireParseProtocol(){return hasRequiredParseProtocol||(hasRequiredParseProtocol=1,parseProtocol=function(_e){var cr=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_e);return cr&&cr[1]||""}),parseProtocol}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var _e=utils$f,cr=requireSettle(),gr=requireCookies(),Cr=buildURL$1,Vr=buildFullPath$1,tt=requireParseHeaders(),nt=requireIsURLSameOrigin(),st=transitional,dt=AxiosError_1,kt=requireCanceledError(),qt=requireParseProtocol(),ro=platform$2;return xhr=function(ht){return new Promise(function(po,no){var Nt=ht.data,eo=ht.headers,Wt=ht.responseType,St=ht.withXSRFToken,Ot;function uo(){ht.cancelToken&&ht.cancelToken.unsubscribe(Ot),ht.signal&&ht.signal.removeEventListener("abort",Ot)}_e.isFormData(Nt)&&_e.isStandardBrowserEnv()&&delete eo["Content-Type"];var go=new XMLHttpRequest;if(ht.auth){var bo=ht.auth.username||"",oo=ht.auth.password?unescape(encodeURIComponent(ht.auth.password)):"";eo.Authorization="Basic "+btoa(bo+":"+oo)}var Ro=Vr(ht.baseURL,ht.url);go.open(ht.method.toUpperCase(),Cr(Ro,ht.params,ht.paramsSerializer),!0),go.timeout=ht.timeout;function pt(){if(go){var wo="getAllResponseHeaders"in go?tt(go.getAllResponseHeaders()):null,xt=!Wt||Wt==="text"||Wt==="json"?go.responseText:go.response,Mt={data:xt,status:go.status,statusText:go.statusText,headers:wo,config:ht,request:go};cr(function(ho){po(ho),uo()},function(ho){no(ho),uo()},Mt),go=null}}if("onloadend"in go?go.onloadend=pt:go.onreadystatechange=function(){!go||go.readyState!==4||go.status===0&&!(go.responseURL&&go.responseURL.indexOf("file:")===0)||setTimeout(pt)},go.onabort=function(){go&&(no(new dt("Request aborted",dt.ECONNABORTED,ht,go)),go=null)},go.onerror=function(){no(new dt("Network Error",dt.ERR_NETWORK,ht,go)),go=null},go.ontimeout=function(){var wo=ht.timeout?"timeout of "+ht.timeout+"ms exceeded":"timeout exceeded",xt=ht.transitional||st;ht.timeoutErrorMessage&&(wo=ht.timeoutErrorMessage),no(new dt(wo,xt.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,ht,go)),go=null},_e.isStandardBrowserEnv()&&(St&&_e.isFunction(St)&&(St=St(ht)),St||St!==!1&&nt(Ro))){var lo=ht.xsrfHeaderName&&ht.xsrfCookieName&&gr.read(ht.xsrfCookieName);lo&&(eo[ht.xsrfHeaderName]=lo)}"setRequestHeader"in go&&_e.forEach(eo,function(wo,xt){typeof Nt>"u"&&xt.toLowerCase()==="content-type"?delete eo[xt]:go.setRequestHeader(xt,wo)}),_e.isUndefined(ht.withCredentials)||(go.withCredentials=!!ht.withCredentials),Wt&&Wt!=="json"&&(go.responseType=ht.responseType),typeof ht.onDownloadProgress=="function"&&go.addEventListener("progress",ht.onDownloadProgress),typeof ht.onUploadProgress=="function"&&go.upload&&go.upload.addEventListener("progress",ht.onUploadProgress),(ht.cancelToken||ht.signal)&&(Ot=function(wo){go&&(no(!wo||wo.type?new kt(null,ht,go):wo),go.abort(),go=null)},ht.cancelToken&&ht.cancelToken.subscribe(Ot),ht.signal&&(ht.signal.aborted?Ot():ht.signal.addEventListener("abort",Ot))),!Nt&&Nt!==!1&&Nt!==0&&Nt!==""&&(Nt=null);var so=qt(Ro);if(so&&ro.protocols.indexOf(so)===-1){no(new dt("Unsupported protocol "+so+":",dt.ERR_BAD_REQUEST,ht));return}go.send(Nt)})},xhr}var utils$7=utils$f,normalizeHeaderName$1=normalizeHeaderName$2,AxiosError$1=AxiosError_1,transitionalDefaults=transitional,toFormData=toFormData_1,toURLEncodedForm=toURLEncodedForm$1,platform=platform$2,formDataToJSON$1=formDataToJSON_1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(_e,cr){!utils$7.isUndefined(_e)&&utils$7.isUndefined(_e["Content-Type"])&&(_e["Content-Type"]=cr)}function getDefaultAdapter(){var _e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(_e=requireXhr()),_e}function stringifySafely(_e,cr,gr){if(utils$7.isString(_e))try{return(cr||JSON.parse)(_e),utils$7.trim(_e)}catch(Cr){if(Cr.name!=="SyntaxError")throw Cr}return(0,JSON.stringify)(_e)}var defaults$5={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function _e(cr,gr){normalizeHeaderName$1(gr,"Accept"),normalizeHeaderName$1(gr,"Content-Type");var Cr=gr&&gr["Content-Type"]||"",Vr=Cr.indexOf("application/json")>-1,tt=utils$7.isObject(cr);tt&&utils$7.isHTMLForm(cr)&&(cr=new FormData(cr));var nt=utils$7.isFormData(cr);if(nt)return Vr?JSON.stringify(formDataToJSON$1(cr)):cr;if(utils$7.isArrayBuffer(cr)||utils$7.isBuffer(cr)||utils$7.isStream(cr)||utils$7.isFile(cr)||utils$7.isBlob(cr))return cr;if(utils$7.isArrayBufferView(cr))return cr.buffer;if(utils$7.isURLSearchParams(cr))return setContentTypeIfUnset(gr,"application/x-www-form-urlencoded;charset=utf-8"),cr.toString();var st;if(tt){if(Cr.indexOf("application/x-www-form-urlencoded")!==-1)return toURLEncodedForm(cr,this.formSerializer).toString();if((st=utils$7.isFileList(cr))||Cr.indexOf("multipart/form-data")>-1){var dt=this.env&&this.env.FormData;return toFormData(st?{"files[]":cr}:cr,dt&&new dt,this.formSerializer)}}return tt||Vr?(setContentTypeIfUnset(gr,"application/json"),stringifySafely(cr)):cr}],transformResponse:[function _e(cr){var gr=this.transitional||defaults$5.transitional,Cr=gr&&gr.forcedJSONParsing,Vr=this.responseType==="json";if(cr&&utils$7.isString(cr)&&(Cr&&!this.responseType||Vr)){var tt=gr&&gr.silentJSONParsing,nt=!tt&&Vr;try{return JSON.parse(cr)}catch(st){if(nt)throw st.name==="SyntaxError"?AxiosError$1.from(st,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):st}}return cr}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function _e(cr){return cr>=200&&cr<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$7.forEach(["delete","get","head"],function _e(cr){defaults$5.headers[cr]={}}),utils$7.forEach(["post","put","patch"],function _e(cr){defaults$5.headers[cr]=utils$7.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$5,utils$6=utils$f,defaults$4=defaults_1,transformData$1=function _e(cr,gr,Cr,Vr){var tt=this||defaults$4;return utils$6.forEach(Vr,function(nt){cr=nt.call(tt,cr,gr,Cr)}),cr},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(_e){return!!(_e&&_e.__CANCEL__)}),isCancel$1}var utils$5=utils$f,transformData=transformData$1,isCancel=requireIsCancel(),defaults$3=defaults_1,CanceledError=requireCanceledError(),normalizeHeaderName=normalizeHeaderName$2;function throwIfCancellationRequested(_e){if(_e.cancelToken&&_e.cancelToken.throwIfRequested(),_e.signal&&_e.signal.aborted)throw new CanceledError}var dispatchRequest$1=function _e(cr){throwIfCancellationRequested(cr),cr.headers=cr.headers||{},cr.data=transformData.call(cr,cr.data,cr.headers,null,cr.transformRequest),normalizeHeaderName(cr.headers,"Accept"),normalizeHeaderName(cr.headers,"Content-Type"),cr.headers=utils$5.merge(cr.headers.common||{},cr.headers[cr.method]||{},cr.headers),utils$5.forEach(["delete","get","head","post","put","patch","common"],function(Cr){delete cr.headers[Cr]});var gr=cr.adapter||defaults$3.adapter;return gr(cr).then(function(Cr){return throwIfCancellationRequested(cr),Cr.data=transformData.call(cr,Cr.data,Cr.headers,Cr.status,cr.transformResponse),Cr},function(Cr){return isCancel(Cr)||(throwIfCancellationRequested(cr),Cr&&Cr.response&&(Cr.response.data=transformData.call(cr,Cr.response.data,Cr.response.headers,Cr.response.status,cr.transformResponse))),Promise.reject(Cr)})},utils$4=utils$f,mergeConfig$3=function _e(cr,gr){gr=gr||{};var Cr={};function Vr(qt,ro){return utils$4.isPlainObject(qt)&&utils$4.isPlainObject(ro)?utils$4.merge(qt,ro):utils$4.isEmptyObject(ro)?utils$4.merge({},qt):utils$4.isPlainObject(ro)?utils$4.merge({},ro):utils$4.isArray(ro)?ro.slice():ro}function tt(qt){if(utils$4.isUndefined(gr[qt])){if(!utils$4.isUndefined(cr[qt]))return Vr(void 0,cr[qt])}else return Vr(cr[qt],gr[qt])}function nt(qt){if(!utils$4.isUndefined(gr[qt]))return Vr(void 0,gr[qt])}function st(qt){if(utils$4.isUndefined(gr[qt])){if(!utils$4.isUndefined(cr[qt]))return Vr(void 0,cr[qt])}else return Vr(void 0,gr[qt])}function dt(qt){if(qt in gr)return Vr(cr[qt],gr[qt]);if(qt in cr)return Vr(void 0,cr[qt])}var kt={url:nt,method:nt,data:nt,baseURL:st,transformRequest:st,transformResponse:st,paramsSerializer:st,timeout:st,timeoutMessage:st,withCredentials:st,withXSRFToken:st,adapter:st,responseType:st,xsrfCookieName:st,xsrfHeaderName:st,onUploadProgress:st,onDownloadProgress:st,decompress:st,maxContentLength:st,maxBodyLength:st,beforeRedirect:st,transport:st,httpAgent:st,httpsAgent:st,cancelToken:st,socketPath:st,responseEncoding:st,validateStatus:dt};return utils$4.forEach(Object.keys(cr).concat(Object.keys(gr)),function(qt){var ro=kt[qt]||tt,ht=ro(qt);utils$4.isUndefined(ht)&&ro!==dt||(Cr[qt]=ht)}),Cr},data,hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,data={version:"0.28.1"}),data}var VERSION=requireData().version,AxiosError=AxiosError_1,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(_e,cr){validators$1[_e]=function(gr){return typeof gr===_e||"a"+(cr<1?"n ":" ")+_e}});var deprecatedWarnings={};validators$1.transitional=function _e(cr,gr,Cr){function Vr(tt,nt){return"[Axios v"+VERSION+"] Transitional option '"+tt+"'"+nt+(Cr?". "+Cr:"")}return function(tt,nt,st){if(cr===!1)throw new AxiosError(Vr(nt," has been removed"+(gr?" in "+gr:"")),AxiosError.ERR_DEPRECATED);return gr&&!deprecatedWarnings[nt]&&(deprecatedWarnings[nt]=!0,console.warn(Vr(nt," has been deprecated since v"+gr+" and will be removed in the near future"))),cr?cr(tt,nt,st):!0}};function assertOptions(_e,cr,gr){if(typeof _e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var Cr=Object.keys(_e),Vr=Cr.length;Vr-- >0;){var tt=Cr[Vr],nt=cr[tt];if(nt){var st=_e[tt],dt=st===void 0||nt(st,tt,_e);if(dt!==!0)throw new AxiosError("option "+tt+" must be "+dt,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(gr!==!0)throw new AxiosError("Unknown option "+tt,AxiosError.ERR_BAD_OPTION)}}var validator$1={assertOptions,validators:validators$1},utils$3=utils$f,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$2=mergeConfig$3,buildFullPath=buildFullPath$1,validator=validator$1,validators=validator.validators;function Axios$1(_e){this.defaults=_e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function _e(cr,gr){typeof cr=="string"?(gr=gr||{},gr.url=cr):gr=cr||{},gr=mergeConfig$2(this.defaults,gr),gr.method?gr.method=gr.method.toLowerCase():this.defaults.method?gr.method=this.defaults.method.toLowerCase():gr.method="get";var Cr=gr.transitional;Cr!==void 0&&validator.assertOptions(Cr,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var Vr=gr.paramsSerializer;Vr!==void 0&&validator.assertOptions(Vr,{encode:validators.function,serialize:validators.function},!0),utils$3.isFunction(Vr)&&(gr.paramsSerializer={serialize:Vr});var tt=[],nt=!0;this.interceptors.request.forEach(function(po){typeof po.runWhen=="function"&&po.runWhen(gr)===!1||(nt=nt&&po.synchronous,tt.unshift(po.fulfilled,po.rejected))});var st=[];this.interceptors.response.forEach(function(po){st.push(po.fulfilled,po.rejected)});var dt;if(!nt){var kt=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(kt,tt),kt=kt.concat(st),dt=Promise.resolve(gr);kt.length;)dt=dt.then(kt.shift(),kt.shift());return dt}for(var qt=gr;tt.length;){var ro=tt.shift(),ht=tt.shift();try{qt=ro(qt)}catch(po){ht(po);break}}try{dt=dispatchRequest(qt)}catch(po){return Promise.reject(po)}for(;st.length;)dt=dt.then(st.shift(),st.shift());return dt},Axios$1.prototype.getUri=function _e(cr){cr=mergeConfig$2(this.defaults,cr);var gr=buildFullPath(cr.baseURL,cr.url);return buildURL(gr,cr.params,cr.paramsSerializer)},utils$3.forEach(["delete","get","head","options"],function _e(cr){Axios$1.prototype[cr]=function(gr,Cr){return this.request(mergeConfig$2(Cr||{},{method:cr,url:gr,data:(Cr||{}).data}))}}),utils$3.forEach(["post","put","patch"],function _e(cr){function gr(Cr){return function(Vr,tt,nt){return this.request(mergeConfig$2(nt||{},{method:cr,headers:Cr?{"Content-Type":"multipart/form-data"}:{},url:Vr,data:tt}))}}Axios$1.prototype[cr]=gr(),Axios$1.prototype[cr+"Form"]=gr(!0)});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var _e=requireCanceledError();function cr(gr){if(typeof gr!="function")throw new TypeError("executor must be a function.");var Cr;this.promise=new Promise(function(tt){Cr=tt});var Vr=this;this.promise.then(function(tt){if(Vr._listeners){for(var nt=Vr._listeners.length;nt-- >0;)Vr._listeners[nt](tt);Vr._listeners=null}}),this.promise.then=function(tt){var nt,st=new Promise(function(dt){Vr.subscribe(dt),nt=dt}).then(tt);return st.cancel=function(){Vr.unsubscribe(nt)},st},gr(function(tt,nt,st){Vr.reason||(Vr.reason=new _e(tt,nt,st),Cr(Vr.reason))})}return cr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},cr.prototype.subscribe=function(gr){if(this.reason){gr(this.reason);return}this._listeners?this._listeners.push(gr):this._listeners=[gr]},cr.prototype.unsubscribe=function(gr){if(this._listeners){var Cr=this._listeners.indexOf(gr);Cr!==-1&&this._listeners.splice(Cr,1)}},cr.source=function(){var gr,Cr=new cr(function(Vr){gr=Vr});return{token:Cr,cancel:gr}},CancelToken_1=cr,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(_e){return function(cr){return _e.apply(null,cr)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){if(hasRequiredIsAxiosError)return isAxiosError;hasRequiredIsAxiosError=1;var _e=utils$f;return isAxiosError=function(cr){return _e.isObject(cr)&&cr.isAxiosError===!0},isAxiosError}var utils$2=utils$f,bind=bind$2,Axios=Axios_1,mergeConfig$1=mergeConfig$3,defaults$2=defaults_1,formDataToJSON=formDataToJSON_1;function createInstance(_e){var cr=new Axios(_e),gr=bind(Axios.prototype.request,cr);return utils$2.extend(gr,Axios.prototype,cr),utils$2.extend(gr,cr),gr.create=function(Cr){return createInstance(mergeConfig$1(_e,Cr))},gr}var axios$2=createInstance(defaults$2);axios$2.Axios=Axios,axios$2.CanceledError=requireCanceledError(),axios$2.CancelToken=requireCancelToken(),axios$2.isCancel=requireIsCancel(),axios$2.VERSION=requireData().version,axios$2.toFormData=toFormData_1,axios$2.AxiosError=AxiosError_1,axios$2.Cancel=axios$2.CanceledError,axios$2.all=function _e(cr){return Promise.all(cr)},axios$2.spread=requireSpread(),axios$2.isAxiosError=requireIsAxiosError(),axios$2.formToJSON=function(_e){return formDataToJSON(utils$2.isHTMLForm(_e)?new FormData(_e):_e)},axios$3.exports=axios$2,axios$3.exports.default=axios$2;var axiosExports=axios$3.exports,axios=axiosExports;const axios$1=getDefaultExportFromCjs(axios),parse$1=_e=>{if(isArray$d(_e))return _e.map(cr=>parse$1(cr));if(isObject$c(_e)){const cr={};return Object.entries(_e).forEach(([gr,Cr])=>{cr[gr]=parse$1(Cr)}),cr}if(isBoolean(_e)||isNumber(_e))return _e;try{return BigInt(_e)}catch{return _e}},isBoolean=_e=>typeof _e=="boolean",isNumber=_e=>typeof _e=="number",isArray$d=_e=>Array.isArray(_e),isObject$c=_e=>typeof _e=="object"&&_e!==null,MAX_SQRT_PRICE=getGlobalMaxSqrtPrice$1(),MIN_SQRT_PRICE=getGlobalMinSqrtPrice$1(),MAX_TICKMAP_QUERY_SIZE=getMaxTickmapQuerySize$1(),LIQUIDITY_TICKS_LIMIT=getLiquidityTicksLimit$1(),PERCENTAGE_SCALE=Number(getPercentageScale$1()),PERCENTAGE_DENOMINATOR=getPercentageDenominator$1(),CHUNK_SIZE=getChunkSize$1(),PRICE_SCALE=Number(getPriceScale$1()),CONCENTRATION_FACTOR=1.00001526069123,createLoaderKey=()=>(new Date().getMilliseconds()+Math.random()).toString(),defaultPrefixConfig={B:1e9,M:1e6,K:1e4},showPrefix=(_e,cr=defaultPrefixConfig)=>{const gr=Math.abs(_e);return typeof cr.B<"u"&&gr>=cr.B?"B":typeof cr.M<"u"&&gr>=cr.M?"M":typeof cr.K<"u"&&gr>=cr.K?"K":""},defaultThresholds=[{value:10,decimals:4},{value:1e3,decimals:2},{value:1e4,decimals:1},{value:1e6,decimals:2,divider:1e3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],formatNumbers=(_e=defaultThresholds)=>cr=>{const gr=Number(cr),Cr=Math.abs(gr),Vr=_e.sort((nt,st)=>nt.value-st.value).find(nt=>Cr_e.replace(/(\.\d*?)0+$/,"$1").replace(/^0+(\d)|(\d)0+$/gm,"$1$2").replace(/\.$/,""),calculateFee=(_e,cr,gr,Cr)=>calculateFee$2(gr.index,BigInt(gr.fee_growth_outside_x),BigInt(gr.fee_growth_outside_y),Cr.index,BigInt(Cr.fee_growth_outside_x),BigInt(Cr.fee_growth_outside_y),_e.current_tick_index,BigInt(_e.fee_growth_global_x),BigInt(_e.fee_growth_global_y),BigInt(cr.fee_growth_inside_x),BigInt(cr.fee_growth_inside_y),BigInt(cr.liquidity)),calcYPerXPriceByTickIndex=(_e,cr,gr)=>{const Cr=+printBigint(calculateSqrtPrice$1(_e),PRICE_SCALE);return Cr*Cr/10**(gr-cr)},calcYPerXPriceBySqrtPrice=(_e,cr,gr)=>{const Cr=+printBigint(_e,PRICE_SCALE);return Cr*Cr/10**(gr-cr)},trimLeadingZeros=_e=>{const cr=_e.split(".");if(!cr.length)return"0";if(cr.length===1)return cr[0];const gr=Array.from(cr[1]).reverse(),Cr=gr.findIndex(tt=>tt!=="0");if(Cr===-1)return cr[0];const Vr=gr.slice(Cr,gr.length).reverse().join("");return`${cr[0]}.${Vr}`},getScaleFromString=_e=>{var gr;const cr=_e.split(".");return((cr==null?void 0:cr.length)??0)<2?0:((gr=cr[1])==null?void 0:gr.length)??0},toMaxNumericPlaces=(_e,cr)=>{const gr=Math.floor(Math.log10(_e));return gr>=cr?_e.toFixed(0):gr>=0?_e.toFixed(cr-gr-1):_e.toFixed(cr+Math.abs(gr)-1)},calcPrice=(_e,cr,gr,Cr)=>{const Vr=calcYPerXPriceByTickIndex(_e,gr,Cr);return cr?Vr:1/Vr},createPlaceholderLiquidityPlot=(_e,cr,gr,Cr,Vr)=>{const tt=[],nt=getMinTick$1(gr),st=getMaxTick$1(gr),dt=calcPrice(nt,_e,Cr,Vr);tt.push({x:dt,y:cr,index:nt});const kt=calcPrice(st,_e,Cr,Vr);return tt.push({x:kt,y:cr,index:st}),_e?tt:tt.reverse()},calculateTokenAmounts=(_e,cr)=>_calculateTokenAmounts(_e,cr,!1),_calculateTokenAmounts=(_e,cr,gr)=>calculateAmountDelta$1(_e.current_tick_index,BigInt(_e.sqrt_price),BigInt(cr.liquidity),gr,cr.upper_tick_index,cr.lower_tick_index),getCoingeckoTokenPrice=async _e=>await axios$1.get(`https://price.market.orai.io/simple/price?ids=${_e}&vs_currencies=usd`).then(cr=>({price:cr.data[_e].usd??0,priceChange:0})),getCoingeckoTokenPriceV2=async _e=>await axios$1.get(`https://price.market.orai.io/simple/price?vs_currencies=usd&ids=${_e}`).then(cr=>{var gr;return{price:((gr=cr.data[_e])==null?void 0:gr.usd)??0}}),tokensPrices={Testnet:{},Mainnet:{ORAI_TEST:{price:16.5},USDT_TEST:{price:1},TOKEN1_TEST:{price:2},TOKEN2_TEST:{price:2}},Local:{}},getMockedTokenPrice=(_e,cr)=>{const gr=cr==="Testnet"?"_TEST":"_MAIN",Cr=tokensPrices[cr];switch(_e){case"ORAI":return Cr[_e+gr];case"USDT":return Cr[_e+gr];case"USDC":return Cr[_e+gr];case"ORAIX":return Cr[_e+gr];case"OCH":return Cr[_e+gr];default:return{price:0}}},printBigint=(_e,cr)=>{const gr=_e.toString(),Cr=gr.length>0&&gr[0]==="-",Vr=Cr?gr.slice(1):gr;return Vr.length<=cr?(Cr?"-":"")+"0."+"0".repeat(cr-Vr.length)+Vr:(Cr?"-":"")+trimZeros(Vr.substring(0,Vr.length-cr)+"."+Vr.substring(Vr.length-cr))},parseFeeToPathFee=_e=>{const cr=(_e/BigInt(Math.pow(10,8))).toString().padStart(3,"0");return cr.slice(0,cr.length-2)+"_"+cr.slice(cr.length-2)},getPoolsByPoolKeys=async _e=>{const cr=_e.map(({token_x:gr,token_y:Cr,fee_tier:Vr})=>SingletonOraiswapV3.getPool({token_x:gr,token_y:Cr,fee_tier:Vr}));return await Promise.all(cr)},getTokenDataByAddresses=async(_e,cr)=>{const gr=await SingletonOraiswapV3.getTokensInfo(_e,cr),Cr={};return gr.forEach(Vr=>{Cr[Vr.address]={symbol:Vr.symbol?Vr.symbol:"UNKNOWN",address:Vr.address,name:Vr.name?Vr.name:"",decimals:Vr.decimals,balance:Vr.balance,logoURI:"/unknownToken.svg",isUnknown:!0}}),Cr},createPoolTx=async(_e,cr,gr)=>{const Cr=getTickAtSqrtPrice$1(BigInt(cr),_e.fee_tier.tick_spacing);return SingletonOraiswapV3.dex.sender!==gr&&SingletonOraiswapV3.load(SingletonOraiswapV3.dex.client,gr),(await SingletonOraiswapV3.dex.createPool({feeTier:_e.fee_tier,initSqrtPrice:cr,initTick:Cr,token0:_e.token_x,token1:_e.token_y})).transactionHash},createPositionTx=async(_e,cr,gr,Cr,Vr,tt,nt)=>{const st=calculateSqrtPriceAfterSlippage(Vr,Number(tt),!1),dt=calculateSqrtPriceAfterSlippage(Vr,Number(tt),!0);return SingletonOraiswapV3.dex.sender!==nt&&SingletonOraiswapV3.load(SingletonOraiswapV3.dex.client,nt),(await SingletonOraiswapV3.dex.createPosition({poolKey:_e,lowerTick:cr,upperTick:gr,liquidityDelta:Cr.toString(),slippageLimitLower:st.toString(),slippageLimitUpper:dt.toString()})).transactionHash},getPool=async _e=>await SingletonOraiswapV3.getPool(_e),getAllPools=async()=>await SingletonOraiswapV3.getPools(),getPoolKeys=async()=>{try{return(await SingletonOraiswapV3.getPools()).map(_e=>_e.pool_key)}catch{return[]}},poolKeyToString=_e=>_e.token_x+"-"+_e.token_y+"-"+_e.fee_tier.fee+"-"+_e.fee_tier.tick_spacing,getTokenBalances=async(_e,cr)=>await Promise.all(_e.map(async gr=>{if(gr!=="orai"&&!gr.includes("ibc")){if(!cr)return{address:gr,balance:0n};SingletonOraiswapV3.loadCw20(cr,gr);const{balance:Cr}=await SingletonOraiswapV3.tokens[gr].balance({address:cr});return{address:gr,balance:BigInt(Cr)}}else{if(!cr)return{address:gr,balance:0n};const Cr=await SingletonOraiswapV3.queryBalance(cr,gr);return{address:gr,balance:BigInt(Cr)}}})),getPrimaryUnitsPrice=(_e,cr,gr,Cr)=>(cr?_e:1/_e)*10**(Cr-gr),logBase=(_e,cr)=>Math.log(_e)/Math.log(cr),adjustToSpacing=(_e,cr,gr)=>{const Cr=_e%cr;if(Math.abs(Cr)===0)return _e;let Vr;return gr?_e>=0?Vr=cr-Cr:Vr=Math.abs(Cr):_e>=0?Vr=-Cr:Vr=-(cr-Math.abs(Cr)),_e+Vr},spacingMultiplicityLte=(_e,cr)=>adjustToSpacing(_e,cr,!1),spacingMultiplicityGte=(_e,cr)=>adjustToSpacing(_e,cr,!0),nearestSpacingMultiplicity=(_e,cr)=>{const gr=spacingMultiplicityGte(_e,cr),Cr=spacingMultiplicityLte(_e,cr),Vr=Math.abs(gr-_e){const tt=getMinTick$1(cr),nt=getMaxTick$1(cr),st=Math.max(_e,Number(calcPrice(gr?tt:nt,gr,Cr,Vr))),dt=getPrimaryUnitsPrice(st,gr,Number(Cr),Number(Vr)),kt=Math.round(logBase(dt,1.0001));return Math.max(Math.min(kt,Number(getMaxTick$1(cr))),Number(getMinTick$1(cr)))},nearestTickIndex=(_e,cr,gr,Cr,Vr)=>{const tt=getTickAtSqrtPriceFromBalance(_e,cr,gr,Cr,Vr);return nearestSpacingMultiplicity(tt,cr)},getConcentrationArray=(_e,cr,gr)=>{const Cr=[];let Vr=0,tt=0,nt=calculateConcentration(_e,cr,Vr)+1,st=1;for(;st>=1;)tt=calculateConcentration(_e,cr,Vr),Cr.push(tt),st=nt-tt,nt=tt,Vr++;for(tt=Math.ceil(Cr[Cr.length-1]);tt>1;)Cr.push(tt),tt--;const dt=alignTickToSpacing$1(getMaxTick$1(1),_e);if(cr/2*_e>dt-Math.abs(gr))throw new Error(String(SwapError.TickLimitReached));const kt=(dt-Math.abs(gr)-cr/2*_e)/_e;return Cr.slice(0,kt)},convertBalanceToBigint=(_e,cr)=>{const gr=_e.split(".");return gr.length!==2?BigInt(gr[0]+"0".repeat(Number(cr))):gr[1].length<=cr?BigInt(gr[0]+gr[1]+"0".repeat(Number(cr)-gr[1].length)):0n};var PositionTokenBlock=(_e=>(_e[_e.None=0]="None",_e[_e.A=1]="A",_e[_e.B=2]="B",_e))(PositionTokenBlock||{});const determinePositionTokenBlock=(_e,cr,gr,Cr)=>{const Vr=calculateSqrtPrice$1(cr),tt=calculateSqrtPrice$1(gr),nt=Vr>=_e,st=tt<=_e;return nt?Cr?2:1:st?Cr?1:2:0},findPairs=(_e,cr,gr)=>gr.filter(Cr=>_e===Cr.pool_key.token_x&&cr===Cr.pool_key.token_y||_e===Cr.pool_key.token_y&&cr===Cr.pool_key.token_x),findPairsByPoolKeys=(_e,cr,gr)=>gr.filter(Cr=>_e===Cr.token_x&&cr===Cr.token_y||_e===Cr.token_y&&cr===Cr.token_x),getPools=async _e=>(await SingletonOraiswapV3.getPools()).map((cr,gr)=>({...cr,poolKey:_e[gr]})),getFullTickmap=async _e=>await SingletonOraiswapV3.getFullTickmap(_e),getAllLiquidityTicks=async(_e,cr)=>{const gr=[];for(const[Cr,Vr]of cr.bitmap.entries())for(let tt=0;tt<64;tt++)if((Vr&1n<({index:Cr.index,liquidity_change:BigInt(Cr.liquidity_change),sign:Cr.sign}))},getTickAtSqrtPriceDelta=(_e,cr,gr)=>{const Cr=Math.pow(1.0001,-(_e/4)),Vr=(1-1/(gr*CONCENTRATION_FACTOR))/Math.pow(1.0001,-_e*cr/4);return Math.ceil(Math.log(Vr)/Math.log(Cr)/2)},calculateConcentration=(_e,cr,gr)=>1/(1-Math.pow(1.0001,-_e*(cr+2*gr)/4))/CONCENTRATION_FACTOR,calculateConcentrationRange=(_e,cr,gr,Cr,Vr)=>{const tt=getTickAtSqrtPriceDelta(_e,gr,cr),nt=Cr-(gr/2+tt)*_e,st=Cr+(gr/2+tt)*_e;return{leftRange:Vr?nt:st,rightRange:Vr?st:nt}},calcTicksAmountInRange=(_e,cr,gr,Cr,Vr,tt)=>{const nt=getPrimaryUnitsPrice(_e,Cr,Vr,tt),st=getPrimaryUnitsPrice(cr,Cr,Vr,tt),dt=logBase(nt,1.0001),kt=logBase(st,1.0001);return Math.ceil(Math.abs(kt-dt)/gr)},deserializeTickmap=_e=>{const cr=new Map(JSON.parse(_e)),gr=new Map;for(const[Cr,Vr]of cr)gr.set(BigInt(Cr),BigInt(Vr));return{bitmap:gr}},calculateAmountInWithSlippage=(_e,cr,gr,Cr)=>{const Vr=+printBigint(sqrtPriceToPrice(cr),PRICE_SCALE),tt=gr?Number(_e)*Vr:Number(_e)/Vr;if(Cr===0n)return BigInt(Math.ceil(Number(tt)*(Number(PERCENTAGE_DENOMINATOR)/Number(PERCENTAGE_DENOMINATOR))));const nt=Number(tt)*(Number(PERCENTAGE_DENOMINATOR)/(Number(PERCENTAGE_DENOMINATOR)-Number(Cr)));return BigInt(Math.ceil(nt))},sqrtPriceToPrice=_e=>BigInt(_e)*BigInt(_e)/getSqrtPriceDenominator$1(),getTick=async(_e,cr)=>{const gr=await SingletonOraiswapV3.dexQuerier.tick({key:cr,index:Number(_e)});return{fee_growth_outside_x:BigInt(gr.fee_growth_outside_x),fee_growth_outside_y:BigInt(gr.fee_growth_outside_y),index:gr.index,liquidity_change:BigInt(gr.liquidity_change),sign:gr.sign,liquidity_gross:BigInt(gr.liquidity_gross),seconds_outside:gr.seconds_outside,sqrt_price:BigInt(gr.sqrt_price)}},calculateLiquidityBreakpoints=_e=>{let cr=0n;return _e.map(gr=>(cr=cr+BigInt(gr.liquidity_change)*(gr.sign?1n:-1n),{liquidity:cr,index:BigInt(gr.index)}))},createLiquidityPlot=(_e,cr,gr,Cr,Vr)=>{const tt=_e.sort((ht,po)=>Number(ht.index-po.index)),nt=_e.length?calculateLiquidityBreakpoints(tt):[],st=_e.map((ht,po)=>({...ht,liqudity:nt[po].liquidity})),dt=[],kt=getMinTick$1(cr),qt=getMaxTick$1(cr);if(!st.length||st[0].index>kt){const ht=calcPrice(kt,gr,Cr,Vr);dt.push({x:ht,y:0,index:kt})}st.forEach((ht,po)=>{const no=ht.index;if(po===0&&no-cr>kt){const eo=calcPrice(no-cr,gr,Cr,Vr);dt.push({x:eo,y:0,index:no-cr})}else if(po>0&&no-cr>st[po-1].index){const eo=calcPrice(no-cr,gr,Cr,Vr);dt.push({x:eo,y:+printBigint(st[po-1].liqudity,12),index:no-cr})}const Nt=calcPrice(no,gr,Cr,Vr);dt.push({x:Nt,y:+printBigint(st[po].liqudity,12),index:no})});const ro=st[st.length-1].index;if(st.length){if(rocr){const po=calcPrice(ro+cr,gr,Cr,Vr);dt.push({x:po,y:0,index:ro+cr})}const ht=calcPrice(qt,gr,Cr,Vr);dt.push({x:ht,y:0,index:qt})}}else{const ht=calcPrice(qt,gr,Cr,Vr);dt.push({x:ht,y:0,index:qt})}return gr?dt:dt.reverse()},sqrt=_e=>{if(_e<0n)throw"square root of negative numbers is not supported";return _e<2n?_e:newtonIteration(_e,1n)},newtonIteration=(_e,cr)=>{const gr=_e/cr+cr>>1n;return cr===gr||cr===gr-1n?cr:newtonIteration(_e,gr)},priceToSqrtPrice=_e=>sqrt(_e*getSqrtPriceDenominator$1()),calculateSqrtPriceAfterSlippage=(_e,cr,gr)=>{if(cr===0)return BigInt(_e);const Cr=getPercentageDenominator$1()+BigInt(gr?cr:-cr),Vr=sqrtPriceToPrice(_e),tt=BigInt(Vr)*Cr*getPercentageDenominator$1();return priceToSqrtPrice(tt)/getPercentageDenominator$1()},calculateTokenAmountsWithSlippage=(_e,cr,gr,Cr,Vr,tt,nt)=>{const st=calculateSqrtPriceAfterSlippage(cr,tt,!1),dt=calculateSqrtPriceAfterSlippage(cr,tt,!0),kt=getTickAtSqrtPrice$1(cr,_e),{x:qt,y:ro}=calculateAmountDelta$1(kt,st,gr,nt,Vr,Cr),{x:ht,y:po}=calculateAmountDelta$1(kt,dt,gr,nt,Vr,Cr),no=qt>ht?qt:ht,Nt=ro>po?ro:po;return[no,Nt]},calculatePriceImpact=(_e,cr)=>{const gr=_e*_e,Cr=cr*cr,Vr=gr-Cr,tt=Vr>0n?Vr:-Vr,nt=gr>Cr?gr:Cr;return tt*getPercentageDenominator$1()/nt},getPosition=async(_e,cr)=>{const gr=await SingletonOraiswapV3.dexQuerier.position({index:Number(_e),ownerId:cr});return{pool_key:gr.pool_key,liquidity:BigInt(gr.liquidity),lower_tick_index:gr.lower_tick_index,upper_tick_index:gr.upper_tick_index,fee_growth_inside_x:BigInt(gr.fee_growth_inside_x),fee_growth_inside_y:BigInt(gr.fee_growth_inside_y),last_block_number:gr.last_block_number,tokens_owed_x:BigInt(gr.tokens_owed_x),tokens_owed_y:BigInt(gr.tokens_owed_y)}},positionList=async _e=>{var cr;return(await((cr=SingletonOraiswapV3.dexQuerier)==null?void 0:cr.positions({ownerId:_e}))||[]).map(gr=>({pool_key:gr.pool_key,liquidity:BigInt(gr.liquidity),lower_tick_index:gr.lower_tick_index,upper_tick_index:gr.upper_tick_index,fee_growth_inside_x:BigInt(gr.fee_growth_inside_x),fee_growth_inside_y:BigInt(gr.fee_growth_inside_y),last_block_number:gr.last_block_number,tokens_owed_x:BigInt(gr.tokens_owed_x),tokens_owed_y:BigInt(gr.tokens_owed_y)}))},isNativeToken=_e=>_e==="orai"||_e.includes("ibc"),approveToken=async(_e,cr,gr)=>isNativeToken(_e)?"":(await SingletonOraiswapV3.approveToken(_e,cr,gr)).transactionHash,approveListToken=async(_e,cr)=>(await SingletonOraiswapV3.dex.client.executeMultiple(cr,_e,"auto")).transactionHash,swapRouteWithSlippageTx=async(_e,cr,gr,Cr,Vr,tt,nt)=>{if(SingletonOraiswapV3.dex.sender!==tt&&SingletonOraiswapV3.load(SingletonOraiswapV3.dex.client,tt),isNativeToken(_e.token_x)||isNativeToken(_e.token_y)){const st=cr?_e.token_x:_e.token_y,dt=isNativeToken(st)?[{denom:st,amount:gr.toString()}]:[];return(await SingletonOraiswapV3.dex.swapRoute({amountIn:gr.toString(),slippage:Vr,expectedAmountOut:Cr.toString(),swaps:nt},"auto","",dt)).transactionHash}try{return(await SingletonOraiswapV3.dex.swapRoute({amountIn:gr.toString(),slippage:Vr,expectedAmountOut:Cr.toString(),swaps:nt})).transactionHash}catch(st){console.log("error",st)}},swapWithSlippageTx=async(_e,cr,gr,Cr,Vr,tt,nt)=>{const st=calculateSqrtPriceAfterSlippage(Vr,tt,!cr);if(SingletonOraiswapV3.dex.sender!==nt&&SingletonOraiswapV3.load(SingletonOraiswapV3.dex.client,nt),isNativeToken(_e.token_x)||isNativeToken(_e.token_y)){const dt=cr?_e.token_x:_e.token_y,kt=isNativeToken(dt)?[{denom:dt,amount:gr.toString()}]:[];return(await SingletonOraiswapV3.dex.swap({poolKey:_e,xToY:cr,amount:gr.toString(),byAmountIn:Cr,sqrtPriceLimit:st.toString()},"auto","",kt)).transactionHash}try{return(await SingletonOraiswapV3.dex.swap({poolKey:_e,xToY:cr,amount:gr.toString(),byAmountIn:Cr,sqrtPriceLimit:cr?(st-1n).toString():(st+1n).toString()})).transactionHash}catch(dt){console.log("error",dt)}},claimFee=async(_e,cr)=>(SingletonOraiswapV3.dex.sender!==cr&&SingletonOraiswapV3.load(SingletonOraiswapV3.dex.client,cr),(await SingletonOraiswapV3.dex.claimFee({index:Number(_e)})).transactionHash),removePosition=async(_e,cr)=>(SingletonOraiswapV3.dex.sender!==cr&&SingletonOraiswapV3.load(SingletonOraiswapV3.dex.client,cr),(await SingletonOraiswapV3.dex.removePosition({index:Number(_e)})).transactionHash),getBalance=async _e=>{const cr=await SingletonOraiswapV3.queryBalance(_e,"orai");return BigInt(cr)},createPositionWithNativeTx=async(_e,cr,gr,Cr,Vr,tt,nt,st,dt)=>{const kt=calculateSqrtPriceAfterSlippage(Vr,Number(tt),!1),qt=calculateSqrtPriceAfterSlippage(Vr,Number(tt),!0),ro=_e.token_x,ht=_e.token_y,po=[];return isNativeToken(ro)&&po.push({denom:ro,amount:nt.toString()}),isNativeToken(ht)&&po.push({denom:ht,amount:st.toString()}),SingletonOraiswapV3.dex.sender!==dt&&SingletonOraiswapV3.load(SingletonOraiswapV3.dex.client,dt),(await SingletonOraiswapV3.dex.createPosition({poolKey:_e,lowerTick:cr,upperTick:gr,liquidityDelta:Cr.toString(),slippageLimitLower:kt.toString(),slippageLimitUpper:qt.toString()},"auto","",po)).transactionHash},quoteRoute=async(_e,cr)=>{const gr=await SingletonOraiswapV3.dexQuerier.quoteRoute({amountIn:_e,swaps:cr});return BigInt(gr)},reverseSwapHopArray=_e=>(_e=_e.map((cr,gr)=>_e[_e.length-1-gr]),_e=_e.map(cr=>({pool_key:cr.pool_key,x_to_y:!cr.x_to_y})),_e),handleGetSimulateResultMultiHop=async _e=>{try{const{fromToken:cr,toToken:gr,amount:Cr}=_e.payload;let{byAmountIn:Vr}=_e.payload,tt=cr+"-"+gr+"-0-0",nt=SWAP_HOPS_CACHE[tt];if(!nt){if(tt=gr+"-"+cr+"-0-0",nt=SWAP_HOPS_CACHE[tt],!nt)return{poolKey:null,amountOut:0n,priceImpact:0,targetSqrtPrice:0n,errors:[SwapError.NoRouteFound]};Vr=!Vr}const st={fee_tier:{fee:0,tick_spacing:0},token_x:cr,token_y:gr};if(Cr===0n)return{poolKey:null,amountOut:0n,priceImpact:0,targetSqrtPrice:0n,errors:[SwapError.AmountIsZero]};let dt=0;nt.forEach(po=>{dt+=po.pool_key.fee_tier.fee}),st.fee_tier.fee=dt,Vr||(nt=reverseSwapHopArray(nt));let kt=0n;const qt=0;let ro=0n;const ht=[];return kt=await quoteRoute(Cr.toString(),nt),ro=Vr?priceToSqrtPrice(Cr):kt,{poolKey:st,amountOut:kt,priceImpact:qt,targetSqrtPrice:ro,errors:ht}}catch(cr){console.log(cr)}},extractAndSortTokenAddresses=_e=>{let cr=[];return _e.forEach(gr=>{let Cr=gr.x_to_y?gr.pool_key.token_x:gr.pool_key.token_y;isNativeToken(Cr)||cr.push(Cr)}),[...new Set(cr)]},genMsgAllowance=_e=>{const cr="18446744073709551615",gr="orai10s0c75gw5y5eftms5ncfknw6lzmx0dyhedn75uz793m8zwz4g8zq4d9x9a";return _e.map(Cr=>({contractAddress:Cr,msg:{increase_allowance:{amount:cr,spender:gr}}}))},defaultStatus={snackbars:[]},snackbarsSliceName="snackbars",snackbarsSlice=createSlice({name:snackbarsSliceName,initialState:defaultStatus,reducers:{add(_e,cr){return _e.snackbars.push({key:cr.payload.key?cr.payload.key:createLoaderKey(),...cr.payload,open:!0}),_e},hide(_e,cr){const gr=_e.snackbars.findIndex(Cr=>Cr.key===cr.payload);return gr===-1||(_e.snackbars[gr].open=!1),_e},remove(_e,cr){return _e.snackbars=_e.snackbars.filter(gr=>gr.key!==cr.payload),_e}}}),actions$4=snackbarsSlice.actions,reducer$4=snackbarsSlice.reducer;var Status=(_e=>(_e.Uninitialized="uninitialized",_e.Init="init",_e.Error="error",_e.Initialized="initalized",_e))(Status||{});const defaultState$3={status:"uninitialized",address:"",balance:0n,tokensBalances:{},balanceLoading:!1},walletSliceName="wallet",walletSlice=createSlice({name:walletSliceName,initialState:defaultState$3,reducers:{resetState(){return defaultState$3},initWallet(_e){return _e},setAddress(_e,cr){return _e.address=cr.payload,_e},setStatus(_e,cr){return _e.status=cr.payload,_e},setBalance(_e,cr){return _e.balance=cr.payload,_e},getBalance(_e){return _e},getBalances(_e,cr){return _e},setIsBalanceLoading(_e,cr){return cr.payload?_e.balanceLoading=!0:_e.balanceLoading=!1,_e},addTokenBalance(_e,cr){return _e.tokensBalances[cr.payload.address]=cr.payload,_e},addTokenBalances(_e,cr){return cr.payload.forEach(gr=>{_e.tokensBalances[gr.address]=gr}),_e},setTokenBalance(_e,cr){return _e.tokensBalances[cr.payload.address.toString()]=cr.payload,_e},getTokens(_e){return _e},getSelectedTokens(_e,cr){return _e},rescanTokens(){},airdrop(){},connect(){},disconnect(){}}}),actions$3=walletSlice.actions,reducer$3=walletSlice.reducer,defaultState$2={lastPage:1,plotTicks:{data:[],loading:!1},positionsList:{list:[],loading:!0},currentPositionTicks:{lowerTick:void 0,upperTick:void 0,loading:!1},initPosition:{inProgress:!1,success:!1}},positionsSliceName="positions",positionsSlice=createSlice({name:"positions",initialState:defaultState$2,reducers:{setLastPage(_e,cr){return _e.lastPage=cr.payload,_e},initPosition(_e,cr){return _e.initPosition.inProgress=!0,_e},setInitPositionSuccess(_e,cr){return _e.initPosition.inProgress=!1,_e.initPosition.success=cr.payload,_e},setPlotTicks(_e,cr){return _e.plotTicks.data=cr.payload,_e.plotTicks.loading=!1,_e.plotTicks.hasError=!1,_e},setErrorPlotTicks(_e,cr){return _e.plotTicks.data=cr.payload,_e.plotTicks.loading=!1,_e.plotTicks.hasError=!0,_e},getCurrentPlotTicks(_e,cr){return _e.plotTicks.hasError=!1,_e.plotTicks.loading=!cr.payload.disableLoading,_e},setPositionsList(_e,cr){return _e.positionsList.list=cr.payload,_e.positionsList.loading=!1,_e},getPositionsList(_e){return _e.positionsList.loading=!0,_e},getSinglePosition(_e,cr){return _e},setSinglePosition(_e,cr){return _e.positionsList.list[Number(cr.payload.index)]=cr.payload.position,_e},getCurrentPositionTicks(_e,cr){return _e.currentPositionTicks.loading=!0,_e},setCurrentPositionTicks(_e,cr){return _e.currentPositionTicks={...cr.payload,loading:!1},_e},claimFee(_e,cr){return _e},closePosition(_e,cr){return _e},resetState(_e){return _e=defaultState$2,_e}}}),actions$2=positionsSlice.actions,reducer$2=positionsSlice.reducer;var __spreadArray=function(_e,cr,gr){if(gr||arguments.length===2)for(var Cr=0,Vr=cr.length,tt;Cr(_e[_e.POSITIONS=0]="POSITIONS",_e[_e.FARMS=1]="FARMS",_e))(ListType||{});const poolsSliceName="pools",poolsSlice=createSlice({name:poolsSliceName,initialState:defaultState$1,reducers:{initPool(_e,cr){return _e},setLastPoolPage(_e,cr){return _e.lastPage=cr.payload,_e},addTokens(_e,cr){return _e.tokens={..._e.tokens,...cr.payload},_e},updateTokenBalances(_e,cr){return cr.payload.map(gr=>{_e.tokens[gr.address]={..._e.tokens[gr.address],balance:gr.balance}}),_e},setPoolKeys(_e,cr){return _e.isLoadingPoolKeys=!1,cr.payload.map(gr=>{const Cr=poolKeyToString(gr);_e.poolKeys[Cr]=gr}),_e},getPoolKeys(_e){return _e.isLoadingPoolKeys=!0,_e},addPool(_e,cr){if(cr.payload){const gr=cr.payload.pool_key,Cr=poolKeyToString(gr);_e.pools[Cr]||(_e.pools[Cr]=cr.payload)}return _e.isLoadingLatestPoolsForTransaction=!1,_e},getPoolData(_e,cr){return _e.isLoadingLatestPoolsForTransaction=!0,_e},getAllPoolData(_e){return _e.isLoadingAllPool=!0,_e},setAllPools(_e,cr){const gr=cr.payload.reduce((Cr,Vr)=>({...Cr,[poolKeyToString(Vr.pool_key)]:Vr}),{});return _e.pools=merge$3(_e.pools,gr),_e.isLoadingAllPool=!1,_e},setTickMaps(_e,cr){return _e.tickMaps[poolKeyToString(cr.payload.poolKey)]=JSON.stringify(Array.from(cr.payload.tickMapStructure.bitmap.entries()).map(([gr,Cr])=>[gr.toString(),Cr.toString()])),_e},stopIsLoadingTicksAndTickMaps(_e){_e.isLoadingTicksAndTickMaps=!1},setTicks(_e,cr){return _e.poolTicks[poolKeyToString(cr.payload.poolKey)]=cr.payload.tickStructure,_e},addPools(_e,cr){const gr=cr.payload.reduce((Cr,Vr)=>({...Cr,[poolKeyToString(Vr.pool_key)]:Vr}),{});return _e.pools=merge$3(_e.pools,gr),_e.isLoadingLatestPoolsForTransaction=!1,_e},addPoolsForList(_e,cr){const gr=cr.payload.data.reduce((Cr,Vr)=>({...Cr,[poolKeyToString(Vr.pool_key)]:Vr}),{});return _e.pools=merge$3(_e.pools,gr),_e},getAllPoolsForPairData(_e,cr){return _e.isLoadingLatestPoolsForTransaction=!0,_e},getPoolsDataForList(_e,cr){},getTicksAndTickMaps(_e,cr){return _e.isLoadingTicksAndTickMaps=!0,_e}}}),actions$1=poolsSlice.actions,reducer$1=poolsSlice.reducer,defaultState={swap:{slippage:0,estimatedPriceAfterSwap:0n,tokenFrom:"",tokenTo:"",amountIn:0n,byAmountIn:!1,amountOut:0n},simulateResult:{poolKey:null,amountOut:0n,priceImpact:0,targetSqrtPrice:0n,errors:[]}},swapSliceName="swap",swapSlice=createSlice({name:swapSliceName,initialState:defaultState,reducers:{swap(_e,cr){return _e.swap={...cr.payload,inProgress:!0},_e},setSwapSuccess(_e,cr){return _e.swap.inProgress=!1,_e.swap.success=cr.payload,_e},setPair(_e,cr){return _e.swap.tokenFrom=cr.payload.tokenFrom,_e.swap.tokenTo=cr.payload.tokenTo,_e},getSimulateResult(_e,cr){return _e},setSimulateResult(_e,cr){return _e.simulateResult=cr.payload,_e}}}),actions=swapSlice.actions,reducer=swapSlice.reducer,combinedReducers=combineReducers({[snackbarsSliceName]:reducer$4,[connectionSliceName]:reducer$5,[walletSliceName]:reducer$3,[positionsSliceName]:reducer$2,[poolsSliceName]:reducer$1,[swapSliceName]:reducer});var done=function _e(cr){return{done:!0,value:cr}},qEnd={};function safeName(_e){return channel$2(_e)?"channel":stringableFunc(_e)?String(_e):func(_e)?_e.name:String(_e)}function fsmIterator(_e,cr,gr){var Cr,Vr,tt,nt=cr;function st(dt,kt){if(nt===qEnd)return done(dt);if(kt&&!Vr)throw nt=qEnd,kt;Cr&&Cr(dt);var qt=kt?_e[Vr](kt):_e[nt]();return nt=qt.nextState,tt=qt.effect,Cr=qt.stateUpdater,Vr=qt.errorState,nt===qEnd?done(dt):tt}return makeIterator(st,function(dt){return st(null,dt)},gr)}function takeEvery$1(_e,cr){for(var gr=arguments.length,Cr=new Array(gr>2?gr-2:0),Vr=2;Vr2?gr-2:0),Vr=2;Vr2?gr-2:0),Vr=2;Vr2?gr-2:0),Vr=2;Vr2?gr-2:0),Vr=2;Vr2?gr-2:0),Vr=2;Vrcr.reduce((gr,Cr)=>(gr[Cr]=createSelector(_e,Vr=>Vr[Cr]),gr),{}),store$6=_e=>_e[poolsSliceName],{pools,poolKeys,tokens,poolTicks,isLoadingLatestPoolsForTransaction,isLoadingAllPool,tickMaps,nearestPoolTicksForPair,isLoadingTicksAndTickMaps,isLoadingPoolKeys}=keySelectors(store$6,["pools","poolKeys","tokens","poolTicks","isLoadingLatestPoolsForTransaction","isLoadingAllPool","tickMaps","nearestPoolTicksForPair","isLoadingTicksAndTickMaps","isLoadingPoolKeys"]),poolsArraySortedByFees=createSelector(pools,_e=>Object.values(_e).sort((cr,gr)=>Number(cr.pool_key.fee_tier.fee-gr.pool_key.fee_tier.fee)));createSelector(tokens,_e=>!!Object.values(_e).length);function r$4(_e){var cr,gr,Cr="";if(typeof _e=="string"||typeof _e=="number")Cr+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(cr=0;cr<_e.length;cr++)_e[cr]&&(gr=r$4(_e[cr]))&&(Cr&&(Cr+=" "),Cr+=gr);else for(cr in _e)_e[cr]&&(Cr&&(Cr+=" "),Cr+=cr);return Cr}function clsx$1(){for(var _e,cr,gr=0,Cr="";grtypeof window=="object"?((_e?_e.querySelector("#_goober"):window._goober)||Object.assign((_e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:_e||e$4,l$3=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a$2=/\/\*[^]*?\*\/| +/g,n$4=/\n+/g,o$1=(_e,cr)=>{let gr="",Cr="",Vr="";for(let tt in _e){let nt=_e[tt];tt[0]=="@"?tt[1]=="i"?gr=tt+" "+nt+";":Cr+=tt[1]=="f"?o$1(nt,tt):tt+"{"+o$1(nt,tt[1]=="k"?"":cr)+"}":typeof nt=="object"?Cr+=o$1(nt,cr?cr.replace(/([^,])+/g,st=>tt.replace(/(^:.*)|([^,])+/g,dt=>/&/.test(dt)?dt.replace(/&/g,st):st?st+" "+dt:dt)):tt):nt!=null&&(tt=/^--/.test(tt)?tt:tt.replace(/[A-Z]/g,"-$&").toLowerCase(),Vr+=o$1.p?o$1.p(tt,nt):tt+":"+nt+";")}return gr+(cr&&Vr?cr+"{"+Vr+"}":Vr)+Cr},c$4={},s=_e=>{if(typeof _e=="object"){let cr="";for(let gr in _e)cr+=gr+s(_e[gr]);return cr}return _e},i$2=(_e,cr,gr,Cr,Vr)=>{let tt=s(_e),nt=c$4[tt]||(c$4[tt]=(dt=>{let kt=0,qt=11;for(;kt>>0;return"go"+qt})(tt));if(!c$4[nt]){let dt=tt!==_e?_e:(kt=>{let qt,ro,ht=[{}];for(;qt=l$3.exec(kt.replace(a$2,""));)qt[4]?ht.shift():qt[3]?(ro=qt[3].replace(n$4," ").trim(),ht.unshift(ht[0][ro]=ht[0][ro]||{})):ht[0][qt[1]]=qt[2].replace(n$4," ").trim();return ht[0]})(_e);c$4[nt]=o$1(Vr?{["@keyframes "+nt]:dt}:dt,gr?"":"."+nt)}let st=gr&&c$4.g?c$4.g:null;return gr&&(c$4.g=c$4[nt]),((dt,kt,qt,ro)=>{ro?kt.data=kt.data.replace(ro,dt):kt.data.indexOf(dt)===-1&&(kt.data=qt?dt+kt.data:kt.data+dt)})(c$4[nt],cr,Cr,st),nt},p$4=(_e,cr,gr)=>_e.reduce((Cr,Vr,tt)=>{let nt=cr[tt];if(nt&&nt.call){let st=nt(gr),dt=st&&st.props&&st.props.className||/^go/.test(st)&&st;nt=dt?"."+dt:st&&typeof st=="object"?st.props?"":o$1(st,""):st===!1?"":st}return Cr+Vr+(nt??"")},"");function u$3(_e){let cr=this||{},gr=_e.call?_e(cr.p):_e;return i$2(gr.unshift?gr.raw?p$4(gr,[].slice.call(arguments,1),cr.p):gr.reduce((Cr,Vr)=>Object.assign(Cr,Vr&&Vr.call?Vr(cr.p):Vr),{}):gr,t$4(cr.target),cr.g,cr.o,cr.k)}u$3.bind({g:1}),u$3.bind({k:1});function _defineProperties(_e,cr){for(var gr=0;gr=0)&&(gr[Vr]=_e[Vr]);return gr}function _assertThisInitialized$1(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}var noOp=function _e(){return""},SnackbarContext=React$3.createContext({enqueueSnackbar:noOp,closeSnackbar:noOp}),breakpoints={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},capitalise=function _e(cr){return cr.charAt(0).toUpperCase()+cr.slice(1)},originKeyExtractor=function _e(cr){return""+capitalise(cr.vertical)+capitalise(cr.horizontal)},isDefined=function _e(cr){return!!cr||cr===0},UNMOUNTED$1="unmounted",EXITED$1="exited",ENTERING$1="entering",ENTERED$1="entered",EXITING$1="exiting",Transition$1=function(_e){_inheritsLoose$1(cr,_e);function cr(Cr){var Vr;Vr=_e.call(this,Cr)||this;var tt=Cr.appear,nt;return Vr.appearStatus=null,Cr.in?tt?(nt=EXITED$1,Vr.appearStatus=ENTERING$1):nt=ENTERED$1:Cr.unmountOnExit||Cr.mountOnEnter?nt=UNMOUNTED$1:nt=EXITED$1,Vr.state={status:nt},Vr.nextCallback=null,Vr}cr.getDerivedStateFromProps=function(Cr,Vr){var tt=Cr.in;return tt&&Vr.status===UNMOUNTED$1?{status:EXITED$1}:null};var gr=cr.prototype;return gr.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},gr.componentDidUpdate=function(Cr){var Vr=null;if(Cr!==this.props){var tt=this.state.status;this.props.in?tt!==ENTERING$1&&tt!==ENTERED$1&&(Vr=ENTERING$1):(tt===ENTERING$1||tt===ENTERED$1)&&(Vr=EXITING$1)}this.updateStatus(!1,Vr)},gr.componentWillUnmount=function(){this.cancelNextCallback()},gr.getTimeouts=function(){var Cr=this.props.timeout,Vr=Cr,tt=Cr;return Cr!=null&&typeof Cr!="number"&&typeof Cr!="string"&&(tt=Cr.exit,Vr=Cr.enter),{exit:tt,enter:Vr}},gr.updateStatus=function(Cr,Vr){Cr===void 0&&(Cr=!1),Vr!==null?(this.cancelNextCallback(),Vr===ENTERING$1?this.performEnter(Cr):this.performExit()):this.props.unmountOnExit&&this.state.status===EXITED$1&&this.setState({status:UNMOUNTED$1})},gr.performEnter=function(Cr){var Vr=this,tt=this.props.enter,nt=Cr,st=this.getTimeouts();if(!Cr&&!tt){this.safeSetState({status:ENTERED$1},function(){Vr.props.onEntered&&Vr.props.onEntered(Vr.node,nt)});return}this.props.onEnter&&this.props.onEnter(this.node,nt),this.safeSetState({status:ENTERING$1},function(){Vr.props.onEntering&&Vr.props.onEntering(Vr.node,nt),Vr.onTransitionEnd(st.enter,function(){Vr.safeSetState({status:ENTERED$1},function(){Vr.props.onEntered&&Vr.props.onEntered(Vr.node,nt)})})})},gr.performExit=function(){var Cr=this,Vr=this.props.exit,tt=this.getTimeouts();if(!Vr){this.safeSetState({status:EXITED$1},function(){Cr.props.onExited&&Cr.props.onExited(Cr.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:EXITING$1},function(){Cr.props.onExiting&&Cr.props.onExiting(Cr.node),Cr.onTransitionEnd(tt.exit,function(){Cr.safeSetState({status:EXITED$1},function(){Cr.props.onExited&&Cr.props.onExited(Cr.node)})})})},gr.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},gr.safeSetState=function(Cr,Vr){Vr=this.setNextCallback(Vr),this.setState(Cr,Vr)},gr.setNextCallback=function(Cr){var Vr=this,tt=!0;return this.nextCallback=function(){tt&&(tt=!1,Vr.nextCallback=null,Cr())},this.nextCallback.cancel=function(){tt=!1},this.nextCallback},gr.onTransitionEnd=function(Cr,Vr){this.setNextCallback(Vr);var tt=Cr==null&&!this.props.addEndListener;if(!this.node||tt){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),Cr!=null&&setTimeout(this.nextCallback,Cr)},gr.render=function(){var Cr=this.state.status;if(Cr===UNMOUNTED$1)return null;var Vr=this.props,tt=Vr.children,nt=_objectWithoutPropertiesLoose$1(Vr,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return tt(Cr,nt)},_createClass(cr,[{key:"node",get:function(){var Cr,Vr=(Cr=this.props.nodeRef)===null||Cr===void 0?void 0:Cr.current;if(!Vr)throw new Error("notistack - Custom snackbar is not refForwarding");return Vr}}]),cr}(React$3.Component);function noop$5(){}Transition$1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$5,onEntering:noop$5,onEntered:noop$5,onExit:noop$5,onExiting:noop$5,onExited:noop$5};function setRef$1(_e,cr){typeof _e=="function"?_e(cr):_e&&(_e.current=cr)}function useForkRef$1(_e,cr){return reactExports.useMemo(function(){return _e==null&&cr==null?null:function(gr){setRef$1(_e,gr),setRef$1(cr,gr)}},[_e,cr])}function getTransitionProps$1(_e){var cr=_e.timeout,gr=_e.style,Cr=gr===void 0?{}:gr,Vr=_e.mode;return{duration:typeof cr=="object"?cr[Vr]||0:cr,easing:Cr.transitionTimingFunction,delay:Cr.transitionDelay}}var defaultEasing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},reflow$1=function _e(cr){cr.scrollTop=cr.scrollTop},formatMs$1=function _e(cr){return Math.round(cr)+"ms"};function createTransition(_e,cr){_e===void 0&&(_e=["all"]);var gr=cr||{},Cr=gr.duration,Vr=Cr===void 0?300:Cr,tt=gr.easing,nt=tt===void 0?defaultEasing.easeInOut:tt,st=gr.delay,dt=st===void 0?0:st,kt=Array.isArray(_e)?_e:[_e];return kt.map(function(qt){var ro=typeof Vr=="string"?Vr:formatMs$1(Vr),ht=typeof dt=="string"?dt:formatMs$1(dt);return qt+" "+ro+" "+nt+" "+ht}).join(",")}function ownerDocument$1(_e){return _e&&_e.ownerDocument||document}function ownerWindow$1(_e){var cr=ownerDocument$1(_e);return cr.defaultView||window}function debounce$4(_e,cr){cr===void 0&&(cr=166);var gr;function Cr(){for(var Vr=this,tt=arguments.length,nt=new Array(tt),st=0;st-1,Ot=eo.snacks.findIndex(Wt)>-1;if(St||Ot)return eo}return Vr.handleDisplaySnack(_extends$4({},eo,{queue:[].concat(eo.queue,[Nt])}))}),po},Vr.handleDisplaySnack=function(tt){var nt=tt.snacks;return nt.length>=Vr.maxSnack?Vr.handleDismissOldest(tt):Vr.processQueue(tt)},Vr.processQueue=function(tt){var nt=tt.queue,st=tt.snacks;return nt.length>0?_extends$4({},tt,{snacks:[].concat(st,[nt[0]]),queue:nt.slice(1,nt.length)}):tt},Vr.handleDismissOldest=function(tt){if(tt.snacks.some(function(qt){return!qt.open||qt.requestClose}))return tt;var nt=!1,st=!1,dt=tt.snacks.reduce(function(qt,ro){return qt+(ro.open&&ro.persist?1:0)},0);dt===Vr.maxSnack&&(st=!0);var kt=tt.snacks.map(function(qt){return!nt&&(!qt.persist||st)?(nt=!0,qt.entered?(qt.onClose&&qt.onClose(null,"maxsnack",qt.id),Vr.props.onClose&&Vr.props.onClose(null,"maxsnack",qt.id),_extends$4({},qt,{open:!1})):_extends$4({},qt,{requestClose:!0})):_extends$4({},qt)});return _extends$4({},tt,{snacks:kt})},Vr.handleEnteredSnack=function(tt,nt,st){if(!isDefined(st))throw new Error("handleEnteredSnack Cannot be called with undefined key");Vr.setState(function(dt){var kt=dt.snacks;return{snacks:kt.map(function(qt){return qt.id===st?_extends$4({},qt,{entered:!0}):_extends$4({},qt)})}})},Vr.handleCloseSnack=function(tt,nt,st){Vr.props.onClose&&Vr.props.onClose(tt,nt,st);var dt=st===void 0;Vr.setState(function(kt){var qt=kt.snacks,ro=kt.queue;return{snacks:qt.map(function(ht){return!dt&&ht.id!==st?_extends$4({},ht):ht.entered?_extends$4({},ht,{open:!1}):_extends$4({},ht,{requestClose:!0})}),queue:ro.filter(function(ht){return ht.id!==st})}})},Vr.closeSnackbar=function(tt){var nt=Vr.state.snacks.find(function(st){return st.id===tt});isDefined(tt)&&nt&&nt.onClose&&nt.onClose(null,"instructed",tt),Vr.handleCloseSnack(null,"instructed",tt)},Vr.handleExitedSnack=function(tt,nt){if(!isDefined(nt))throw new Error("handleExitedSnack Cannot be called with undefined key");Vr.setState(function(st){var dt=Vr.processQueue(_extends$4({},st,{snacks:st.snacks.filter(function(kt){return kt.id!==nt})}));return dt.queue.length===0?dt:Vr.handleDismissOldest(dt)})},Vr.enqueueSnackbar,closeSnackbar=Vr.closeSnackbar,Vr.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:Vr.enqueueSnackbar.bind(_assertThisInitialized$1(Vr)),closeSnackbar:Vr.closeSnackbar.bind(_assertThisInitialized$1(Vr))}},Vr}var gr=cr.prototype;return gr.render=function(){var Cr=this,Vr=this.state.contextValue,tt=this.props,nt=tt.domRoot,st=tt.children,dt=tt.dense,kt=dt===void 0?!1:dt,qt=tt.Components,ro=qt===void 0?{}:qt,ht=tt.classes,po=this.state.snacks.reduce(function(Nt,eo){var Wt,St=originKeyExtractor(eo.anchorOrigin),Ot=Nt[St]||[];return _extends$4({},Nt,(Wt={},Wt[St]=[].concat(Ot,[eo]),Wt))},{}),no=Object.keys(po).map(function(Nt){var eo=po[Nt],Wt=eo[0];return React$3.createElement(SnackbarContainer$1,{key:Nt,dense:kt,anchorOrigin:Wt.anchorOrigin,classes:ht},eo.map(function(St){return React$3.createElement(SnackbarItem,{key:St.id,snack:St,classes:ht,Component:ro[St.variant],onClose:Cr.handleCloseSnack,onEnter:Cr.props.onEnter,onExit:Cr.props.onExit,onExited:createChainedFunction$1([Cr.handleExitedSnack,Cr.props.onExited],St.id),onEntered:createChainedFunction$1([Cr.handleEnteredSnack,Cr.props.onEntered],St.id)})}))});return React$3.createElement(SnackbarContext.Provider,{value:Vr},st,nt?reactDomExports.createPortal(no,nt):no)},_createClass(cr,[{key:"maxSnack",get:function(){return this.props.maxSnack||defaults$1.maxSnack}}]),cr}(reactExports.Component),useSnackbar=function(){return reactExports.useContext(SnackbarContext)};function*takeEvery(..._e){return yield takeEvery$1$1(..._e)}function*takeLatest(..._e){return yield takeLatest$1$1(..._e)}function*takeLeading(..._e){return yield takeLeading$1$1(..._e)}function*put(..._e){return yield put$1(..._e)}function*call$1(..._e){return yield call$3(..._e)}function*fork(..._e){return yield fork$1(..._e)}function*spawn(..._e){return yield spawn$1(..._e)}function*join(..._e){return yield join$1(..._e)}function*select(..._e){return yield select$1(..._e)}function*all(..._e){return yield all$1(..._e)}const store$5=_e=>_e[walletSliceName],{address,balance,tokensBalances,status:status$1,balanceLoading}=keySelectors(store$5,["address","balance","tokensBalances","status","balanceLoading"]),swapTokens=createSelector(tokensBalances,tokens,balance,(_e,cr,gr)=>Object.values(cr).filter(Cr=>allowTokenSymbol.includes(Cr.symbol)).map(Cr=>{var Vr;return{...Cr,assetAddress:Cr.address,balance:((Vr=_e[Cr.address])==null?void 0:Vr.balance)??0n}}));createSelector(tokensBalances,tokens,balance,(_e,cr,gr)=>Object.values(cr).map(Cr=>{var Vr;return{...Cr,assetAddress:Cr.address,balance:((Vr=_e[Cr.address])==null?void 0:Vr.balance)??0n}}));const swapTokensDict=createSelector(tokensBalances,tokens,balance,(_e,cr,gr)=>{const Cr={};return Object.entries(cr).forEach(([Vr,tt])=>{var nt;Cr[Vr]={...tt,assetAddress:tt.address,balance:((nt=_e[tt.address])==null?void 0:nt.balance)??0n}}),Cr}),canCreateNewPool=()=>createSelector(balance,()=>!0),canCreateNewPosition=()=>createSelector(balance,()=>!0);function*fetchPoolsDataForList(_e){const cr=yield*select(address),gr=yield*call$1(getPoolsByPoolKeys,_e.payload.poolKeys),Cr=yield*select(tokens),Vr=new Set(_e.payload.poolKeys.flatMap(({token_x:dt,token_y:kt})=>[dt,kt].filter(qt=>!Cr[qt]))),tt=new Set(_e.payload.poolKeys.flatMap(({token_x:dt,token_y:kt})=>[dt,kt].filter(qt=>Cr[qt]))),nt=yield*call$1(getTokenDataByAddresses,[...Vr],cr),st=yield*call$1(getTokenBalances,[...tt],cr);yield*put(actions$1.addTokens(nt)),yield*put(actions$1.updateTokenBalances(st)),yield*put(actions$1.addPoolsForList({data:gr,listType:_e.payload.listType}))}function*handleInitPool(_e){const cr=yield*select(address),gr=createLoaderKey(),Cr=createLoaderKey();try{yield put(actions$4.add({message:"Creating new pool...",variant:"pending",persist:!0,key:gr}));const{token_x:Vr,token_y:tt,fee_tier:nt}=_e.payload,st=newPoolKey$1(Vr,tt,nt),dt=toSqrtPrice$1(1,0),kt=yield*call$1(createPoolTx,st,dt.toString(),cr);yield put(actions$4.add({message:"Pool successfully created",variant:"success",persist:!1,txid:kt})),closeSnackbar(gr),yield put(actions$4.remove(gr))}catch(Vr){console.log(Vr),closeSnackbar(gr),yield put(actions$4.remove(gr)),closeSnackbar(Cr),yield put(actions$4.remove(Cr))}}function*fetchAllPoolData(){try{const _e=yield*call$1(getAllPools);_e?yield*put(actions$1.setAllPools(_e)):yield*put(actions$1.setAllPools([]))}catch(_e){console.log(_e),yield*put(actions$1.setAllPools([]))}}function*fetchPoolData(_e){const{fee_tier:cr,token_x:gr,token_y:Cr}=_e.payload;console.log("fetching pool data",cr,gr,Cr);try{const Vr=yield*call$1(getPool,{fee_tier:cr,token_x:gr,token_y:Cr});Vr?yield*put(actions$1.addPool(Vr)):yield*put(actions$1.addPool())}catch(Vr){console.log(Vr),yield*put(actions$1.addPool())}}function*fetchAllPoolKeys(){try{const _e=yield*call$1(getPoolKeys);yield*put(actions$1.setPoolKeys(_e));const cr={payload:{poolKeys:_e,listType:ListType.POSITIONS}};yield call$1(fetchPoolsDataForList,cr)}catch(_e){yield*put(actions$1.setPoolKeys([])),console.log(_e)}}function*fetchAllPoolsForPairData(_e){const cr=yield*call$1(getPoolKeys),gr=findPairsByPoolKeys(_e.payload.first.toString(),_e.payload.second.toString(),cr),Cr=yield*call$1(getPools,gr);yield*put(actions$1.addPools(Cr))}function*fetchTicksAndTickMaps(_e){const{tokenFrom:cr,tokenTo:gr,allPools:Cr}=_e.payload;try{const Vr=findPairs(cr.toString(),gr.toString(),Cr),tt=Vr.map(kt=>call$1(getFullTickmap,kt.pool_key)),nt=yield*all(tt);for(const[kt,qt]of Vr.entries())yield*put(actions$1.setTickMaps({poolKey:qt.pool_key,tickMapStructure:nt[kt]}));const st=Vr.map((kt,qt)=>call$1(getAllLiquidityTicks,kt.pool_key,nt[qt])),dt=yield*all(st);for(const[kt,qt]of Vr.entries())yield*put(actions$1.setTicks({poolKey:qt.pool_key,tickStructure:dt[kt]}));yield*put(actions$1.stopIsLoadingTicksAndTickMaps())}catch(Vr){console.log(Vr)}}function*getPoolsDataForListHandler(){yield*takeEvery(actions$1.getPoolsDataForList,fetchPoolsDataForList)}function*initPoolHandler(){yield*takeLatest(actions$1.initPool,handleInitPool)}function*getPoolDataHandler(){yield*takeLatest(actions$1.getPoolData,fetchPoolData)}function*getAllPoolDataHandler(){yield*takeLatest(actions$1.getAllPoolData,fetchAllPoolData)}function*getPoolKeysHandler(){yield*takeLatest(actions$1.getPoolKeys,fetchAllPoolKeys)}function*getAllPoolsForPairDataHandler(){yield*takeLatest(actions$1.getAllPoolsForPairData,fetchAllPoolsForPairData)}function*getTicksAndTickMapsHandler(){yield*takeEvery(actions$1.getTicksAndTickMaps,fetchTicksAndTickMaps)}function*poolsSaga(){yield all([initPoolHandler,getPoolDataHandler,getPoolKeysHandler,getPoolsDataForListHandler,getAllPoolsForPairDataHandler,getTicksAndTickMapsHandler,getAllPoolDataHandler].map(spawn))}function*fetchSelectedTokensBalances(_e){const cr=yield*select(address),gr=_e.payload,Cr=(yield*call$1(getTokenBalances,gr,cr)).map(Vr=>({address:Vr[0],balance:Vr[1]}));yield*put(actions$3.addTokenBalances(Cr))}function*fetchTokensBalances(){const _e=yield*select(address),cr=Object.values(FaucetTokenList),gr=(yield*call$1(getTokenBalances,cr,_e)).map(Cr=>({address:Cr[0],balance:Cr[1]}));yield*put(actions$3.addTokenBalances(gr))}function*init(){try{yield*put(actions$3.setStatus(Status.Init)),yield*put(actions$3.setAddress(SingletonOraiswapV3.dex.sender)),yield*put(actions$3.setIsBalanceLoading(!0));const _e=yield*call$1(getBalance,SingletonOraiswapV3.dex.sender);yield*put(actions$3.setBalance(BigInt(_e))),yield*put(actions$3.setStatus(Status.Initialized)),yield*call$1(fetchTokensBalances),yield*put(actions$3.setIsBalanceLoading(!1))}catch(_e){console.log(_e)}}function*handleConnect(){if((yield*select(status$1))===Status.Initialized){yield*put(actions$4.add({message:"Wallet already connected.",variant:"info",persist:!1}));return}yield*call$1(init)}function*handleDisconnect(){try{yield*put(actions$3.resetState()),yield*put(actions$2.setPositionsList([])),yield*put(actions$2.setCurrentPositionTicks({lowerTick:void 0,upperTick:void 0}))}catch(_e){console.log(_e)}}function*fetchBalances(_e){const cr=yield*select(address);yield*put(actions$3.setIsBalanceLoading(!0));const gr=yield*call$1(getBalance,cr);yield*put(actions$3.setBalance(BigInt(gr)));const Cr=yield*call$1(getTokenBalances,_e,cr);yield*put(actions$3.addTokenBalances(Cr.map(Vr=>({address:Vr.address,balance:Vr.balance})))),yield*put(actions$3.setIsBalanceLoading(!1))}function*handleGetBalances(_e){yield*call$1(fetchBalances,_e.payload)}function*connectHandler(){yield takeLatest(actions$3.connect,handleConnect)}function*disconnectHandler(){yield takeLatest(actions$3.disconnect,handleDisconnect)}function*initSaga(){yield takeLeading(actions$3.initWallet,init)}function*handleFetchTokensBalances(){yield takeLeading(actions$3.getTokens,fetchTokensBalances)}function*handleFetchSelectedTokensBalances(){yield takeLeading(actions$3.getSelectedTokens,fetchSelectedTokensBalances)}function*getBalancesHandler(){yield takeLeading(actions$3.getBalances,handleGetBalances)}function*walletSaga(){yield all([initSaga,connectHandler,disconnectHandler,handleFetchTokensBalances,handleFetchSelectedTokensBalances,getBalancesHandler].map(spawn))}function*handleInitPosition(_e){const{poolKeyData:cr,lowerTick:gr,upperTick:Cr,spotSqrtPrice:Vr,tokenXAmount:tt,tokenYAmount:nt,liquidityDelta:st,initPool:dt,slippageTolerance:kt}=_e.payload,{token_x:qt,token_y:ro,fee_tier:ht}=cr,po=yield*select(address);if(isNativeToken(qt)&&tt!==0n||isNativeToken(ro)&&nt!==0n)return yield*call$1(handleInitPositionWithNative,_e);const no=createLoaderKey(),Nt=createLoaderKey();try{yield put(actions$4.add({message:"Creating position...",variant:"pending",persist:!0,key:no}));const eo=[],[Wt,St]=calculateTokenAmountsWithSlippage(ht.tick_spacing,Vr,st,gr,Cr,Number(kt),!0),Ot=yield*call$1(approveToken,qt,Wt,po);eo.push(Ot);const uo=yield*call$1(approveToken,ro,St,po);eo.push(uo);const go=newPoolKey$1(qt,ro,ht);if(dt){const oo=yield*call$1(createPoolTx,go,Vr.toString(),po);eo.push(oo)}const bo=yield*call$1(createPositionTx,go,gr,Cr,st,Vr,kt,po);eo.push(bo),yield put(actions$4.add({message:"Signing transaction...",variant:"pending",persist:!0,key:Nt})),closeSnackbar(Nt),yield put(actions$4.remove(Nt)),yield*put(actions$2.setInitPositionSuccess(!0)),closeSnackbar(no),yield put(actions$4.remove(no)),yield put(actions$4.add({message:"Position successfully created",variant:"success",persist:!1,txid:bo})),yield put(actions$2.getPositionsList()),yield*call$1(fetchBalances,[qt,ro]),yield*put(actions$1.getPoolKeys())}catch(eo){console.log(eo),yield*put(actions$2.setInitPositionSuccess(!1)),closeSnackbar(no),yield put(actions$4.remove(no)),closeSnackbar(Nt),yield put(actions$4.remove(Nt)),eo.message?yield put(actions$4.add({message:eo.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to send. Please try again.",variant:"error",persist:!1}))}}function*handleGetPositionsList(){try{const _e=yield*select(address),cr=yield*call$1(positionList,_e),gr=[],Cr=new Set;for(let Vr=0;Vr>",_e),yield*put(actions$2.setPositionsList([]))}}function*handleGetCurrentPositionTicks(_e){const{poolKey:cr,lowerTickIndex:gr,upperTickIndex:Cr}=_e.payload,[Vr,tt]=yield*all([call$1(getTick,gr,cr),call$1(getTick,Cr,cr)]);yield put(actions$2.setCurrentPositionTicks({lowerTick:Vr,upperTick:tt}))}function*handleInitPositionWithNative(_e){const cr=yield*select(address),gr=createLoaderKey(),Cr=createLoaderKey(),{poolKeyData:Vr,lowerTick:tt,upperTick:nt,spotSqrtPrice:st,liquidityDelta:dt,initPool:kt,slippageTolerance:qt}=_e.payload,{token_x:ro,token_y:ht,fee_tier:po}=Vr;try{yield put(actions$4.add({message:"Creating position...",variant:"pending",persist:!0,key:gr}));const[no,Nt]=calculateTokenAmountsWithSlippage(po.tick_spacing,st,dt,tt,nt,Number(qt),!0);yield*call$1(approveToken,ro,no,cr),yield*call$1(approveToken,ht,Nt,cr);const eo=newPoolKey$1(ro,ht,po);kt&&(yield*call$1(createPoolTx,eo,st.toString(),cr));const Wt=yield*call$1(createPositionWithNativeTx,eo,tt,nt,dt,st,qt,no,Nt,cr);yield put(actions$4.add({message:"Signing transaction...",variant:"pending",persist:!0,key:Cr})),closeSnackbar(Cr),yield put(actions$4.remove(Cr)),yield*put(actions$2.setInitPositionSuccess(!0)),closeSnackbar(gr),yield put(actions$4.remove(gr)),yield put(actions$4.add({message:"Position successfully created",variant:"success",persist:!1,txid:Wt})),yield put(actions$3.getSelectedTokens([ro,ht])),yield put(actions$2.getPositionsList()),yield*call$1(fetchBalances,[ro,ht]),yield*put(actions$1.getPoolKeys())}catch(no){console.log(no),yield*put(actions$2.setInitPositionSuccess(!1)),closeSnackbar(gr),yield put(actions$4.remove(gr)),closeSnackbar(Cr),yield put(actions$4.remove(Cr)),no.message?yield put(actions$4.add({message:no.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to send. Please try again.",variant:"error",persist:!1}))}}function*handleGetCurrentPlotTicks(_e){const{poolKey:cr,isXtoY:gr,fetchTicksAndTickmap:Cr}=_e.payload;let Vr=yield*select(tickMaps);const tt=yield*select(tokens),nt=yield*select(poolsArraySortedByFees),st=tt[cr.token_x].decimals,dt=tt[cr.token_y].decimals;try{if(!Vr[poolKeyToString(cr)]||Cr){const ro={type:actions$1.getTicksAndTickMaps.type,payload:{tokenFrom:tt[cr.token_x].address,tokenTo:tt[cr.token_y].address,allPools:nt}},ht=yield*fork(fetchTicksAndTickMaps,ro);yield*join(ht),Vr=yield*select(tickMaps)}if(!Vr[poolKeyToString(cr)]){const ro=createPlaceholderLiquidityPlot(_e.payload.isXtoY,0,cr.fee_tier.tick_spacing,st,dt);yield*put(actions$2.setPlotTicks(ro));return}const kt=yield*call$1(getAllLiquidityTicks,cr,deserializeTickmap(Vr[poolKeyToString(cr)]));if(kt.length===0){const ro=createPlaceholderLiquidityPlot(_e.payload.isXtoY,0,cr.fee_tier.tick_spacing,st,dt);yield*put(actions$2.setPlotTicks(ro));return}const qt=createLiquidityPlot(kt,cr.fee_tier.tick_spacing,gr,st,dt);yield put(actions$2.setPlotTicks(qt))}catch(kt){console.log(kt);const qt=createPlaceholderLiquidityPlot(_e.payload.isXtoY,10,cr.fee_tier.tick_spacing,st,dt);yield*put(actions$2.setErrorPlotTicks(qt))}}function*handleClaimFee(_e){const{index:cr,addressTokenX:gr,addressTokenY:Cr}=_e.payload,Vr=yield*select(address),tt=createLoaderKey(),nt=createLoaderKey();try{yield put(actions$4.add({message:"Claiming fee...",variant:"pending",persist:!0,key:tt})),yield put(actions$4.add({message:"Signing transaction...",variant:"pending",persist:!0,key:nt})),closeSnackbar(nt),yield put(actions$4.remove(nt));const st=yield*call$1(claimFee,cr,Vr);closeSnackbar(tt),yield put(actions$4.remove(tt)),yield put(actions$4.add({message:"Fee successfully claimed",variant:"success",persist:!1,txid:st})),yield put(actions$2.getSinglePosition(cr)),yield*call$1(fetchBalances,[gr===ORAI.address?Cr:gr])}catch(st){closeSnackbar(nt),yield put(actions$4.remove(nt)),closeSnackbar(tt),yield put(actions$4.remove(tt)),st.message?yield put(actions$4.add({message:st.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to claim fee. Please try again.",variant:"error",persist:!1})),console.log(st)}}function*handleGetSinglePosition(_e){const cr=yield*select(address),gr=yield*call$1(getPosition,_e.payload,cr);yield*put(actions$2.setSinglePosition({index:_e.payload,position:gr})),yield*put(actions$2.getCurrentPositionTicks({poolKey:gr.pool_key,lowerTickIndex:BigInt(gr.lower_tick_index),upperTickIndex:BigInt(gr.upper_tick_index)})),yield*put(actions$1.getPoolsDataForList({poolKeys:[gr.pool_key],listType:ListType.POSITIONS}))}function*handleClosePosition(_e){const cr=yield*select(address),{addressTokenX:gr,addressTokenY:Cr,onSuccess:Vr,positionIndex:tt}=_e.payload,nt=createLoaderKey(),st=createLoaderKey();try{yield put(actions$4.add({message:"Removing position...",variant:"pending",persist:!0,key:nt}));const dt=yield*call$1(removePosition,tt,cr);closeSnackbar(nt),yield put(actions$4.remove(nt)),yield put(actions$4.add({message:"Position successfully removed",variant:"success",persist:!1,txid:dt})),yield*put(actions$2.getPositionsList()),Vr(),yield*call$1(fetchBalances,[gr,Cr])}catch(dt){closeSnackbar(st),yield put(actions$4.remove(st)),closeSnackbar(nt),yield put(actions$4.remove(nt)),dt.message?yield put(actions$4.add({message:dt.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to close position. Please try again.",variant:"error",persist:!1})),console.log(dt)}}function*initPositionHandler(){yield*takeEvery(actions$2.initPosition,handleInitPosition)}function*getPositionsListHandler(){yield*takeLatest(actions$2.getPositionsList,handleGetPositionsList)}function*getCurrentPositionTicksHandler(){yield*takeEvery(actions$2.getCurrentPositionTicks,handleGetCurrentPositionTicks)}function*getCurrentPlotTicksHandler(){yield*takeLatest(actions$2.getCurrentPlotTicks,handleGetCurrentPlotTicks)}function*claimFeeHandler(){yield*takeEvery(actions$2.claimFee,handleClaimFee)}function*getSinglePositionHandler(){yield*takeEvery(actions$2.getSinglePosition,handleGetSinglePosition)}function*closePositionHandler(){yield*takeEvery(actions$2.closePosition,handleClosePosition)}function*positionsSaga(){yield all([initPositionHandler,getPositionsListHandler,getCurrentPositionTicksHandler,getCurrentPlotTicksHandler,claimFeeHandler,getSinglePositionHandler,closePositionHandler].map(spawn))}function*handleSwap(_e){const cr=yield*select(address),{poolKey:gr,tokenFrom:Cr,slippage:Vr,amountIn:tt,amountOut:nt,byAmountIn:st,estimatedPriceAfterSwap:dt,tokenTo:kt}=_e.payload;if(gr.fee_tier.tick_spacing==0)return yield*call$1(handleSwapWithMultiHop,_e);if(!gr)return;if(isNativeToken(gr.token_x)||isNativeToken(gr.token_y))return yield*call$1(handleSwapWithNative,_e);const qt=createLoaderKey(),ro=createLoaderKey();try{const ht=yield*select(tokens);yield put(actions$4.add({message:"Swapping tokens...",variant:"pending",persist:!0,key:qt}));const po=ht[gr.token_x],no=ht[gr.token_y],Nt=Cr.toString()===gr.token_x,eo=[],Wt=calculateSqrtPriceAfterSlippage(dt,Vr,!Nt);let St=Vr?calculateAmountInWithSlippage(nt,Wt,Nt,BigInt(gr.fee_tier.fee)):tt;if(St0n?qt.amountOut:0n:qt.amountOut>0n?qt.amountOut:U128MAX,po=0,no=0n;const Nt=[];for(const eo of kt){const Wt=cr.toString()===eo.pool_key.token_x,St=tt[poolKeyToString(eo.pool_key)].pool,Ot={current_tick_index:St.current_tick_index,fee_growth_global_x:BigInt(St.fee_growth_global_x),fee_growth_global_y:BigInt(St.fee_growth_global_y),fee_protocol_token_x:BigInt(St.fee_protocol_token_x),fee_protocol_token_y:BigInt(St.fee_protocol_token_y),fee_receiver:St.fee_receiver,liquidity:BigInt(St.liquidity),last_timestamp:Number(St.last_timestamp.toFixed(0)),sqrt_price:BigInt(St.sqrt_price),start_timestamp:Number(St.start_timestamp.toFixed(0))};try{const uo=simulateSwap$1(deserializeTickmap(st[poolKeyToString(eo.pool_key)]),eo.pool_key.fee_tier,Ot,dt[poolKeyToString(eo.pool_key)],Wt,Cr,Vr,Wt?MIN_SQRT_PRICE:MAX_SQRT_PRICE);if(uo.global_insufficient_liquidity){Nt.push(SwapError.InsufficientLiquidity);continue}if(uo.max_ticks_crossed){Nt.push(SwapError.MaxTicksCrossed);continue}if(uo.state_outdated){Nt.push(SwapError.StateOutdated);continue}if(uo.amount_out===0n){Nt.push(SwapError.AmountIsZero);continue}(Vr?uo.amount_out>ht:uo.amount_in+uo.fee=ht&&(ro=qt.poolKey,ht=qt.amountOut,po=qt.priceImpact,no=qt.targetSqrtPrice),yield put(actions.setSimulateResult({poolKey:ro,amountOut:ht,priceImpact:po,targetSqrtPrice:no,errors:Nt}))}catch(cr){console.log(cr)}}function*swapHandler(){yield*takeEvery(actions.swap,handleSwap)}function*getSimulateResultHandler(){yield*takeEvery(actions.getSimulateResult,handleGetSimulateResult)}function*swapSaga(){yield all([swapHandler,getSimulateResultHandler].map(spawn))}function*rootSaga(){yield all$1([walletSaga,poolsSaga,positionsSaga,swapSaga].map(spawn$1))}const isSerializable=_e=>typeof _e=="bigint"||isPlain(_e),getEntries=_e=>typeof _e=="bigint"?[["bigint",_e.toString()]]:Object.entries(_e),configureAppStore=(_e={})=>{const cr=sagaMiddlewareFactory({}),gr=[cr],Cr=configureStore({reducer:combinedReducers,middleware:Vr=>Vr({serializableCheck:{isSerializable,getEntries,ignoredActions:["positions/closePosition","pools/setTickMaps"]}}).concat(gr),preloadedState:_e,devTools:{serialize:{replacer:(Vr,tt)=>typeof tt=="bigint"?tt.toString():tt,options:!0}}});return cr.run(rootSaga),Cr},store$4=configureAppStore();function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(_e){for(var cr=1;cr"u")throw new Error(cr)}function warning(_e,cr){if(!_e){typeof console<"u"&&console.warn(cr);try{throw new Error(cr)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(_e,cr){return{usr:_e.state,key:_e.key,idx:cr}}function createLocation(_e,cr,gr,Cr){return gr===void 0&&(gr=null),_extends$3({pathname:typeof _e=="string"?_e:_e.pathname,search:"",hash:""},typeof cr=="string"?parsePath(cr):cr,{state:gr,key:cr&&cr.key||Cr||createKey()})}function createPath(_e){let{pathname:cr="/",search:gr="",hash:Cr=""}=_e;return gr&&gr!=="?"&&(cr+=gr.charAt(0)==="?"?gr:"?"+gr),Cr&&Cr!=="#"&&(cr+=Cr.charAt(0)==="#"?Cr:"#"+Cr),cr}function parsePath(_e){let cr={};if(_e){let gr=_e.indexOf("#");gr>=0&&(cr.hash=_e.substr(gr),_e=_e.substr(0,gr));let Cr=_e.indexOf("?");Cr>=0&&(cr.search=_e.substr(Cr),_e=_e.substr(0,Cr)),_e&&(cr.pathname=_e)}return cr}function getUrlBasedHistory(_e,cr,gr,Cr){Cr===void 0&&(Cr={});let{window:Vr=document.defaultView,v5Compat:tt=!1}=Cr,nt=Vr.history,st=Action.Pop,dt=null,kt=qt();kt==null&&(kt=0,nt.replaceState(_extends$3({},nt.state,{idx:kt}),""));function qt(){return(nt.state||{idx:null}).idx}function ro(){st=Action.Pop;let eo=qt(),Wt=eo==null?null:eo-kt;kt=eo,dt&&dt({action:st,location:Nt.location,delta:Wt})}function ht(eo,Wt){st=Action.Push;let St=createLocation(Nt.location,eo,Wt);kt=qt()+1;let Ot=getHistoryState(St,kt),uo=Nt.createHref(St);try{nt.pushState(Ot,"",uo)}catch(go){if(go instanceof DOMException&&go.name==="DataCloneError")throw go;Vr.location.assign(uo)}tt&&dt&&dt({action:st,location:Nt.location,delta:1})}function po(eo,Wt){st=Action.Replace;let St=createLocation(Nt.location,eo,Wt);kt=qt();let Ot=getHistoryState(St,kt),uo=Nt.createHref(St);nt.replaceState(Ot,"",uo),tt&&dt&&dt({action:st,location:Nt.location,delta:0})}function no(eo){let Wt=Vr.location.origin!=="null"?Vr.location.origin:Vr.location.href,St=typeof eo=="string"?eo:createPath(eo);return St=St.replace(/ $/,"%20"),invariant(Wt,"No window.location.(origin|href) available to create URL for href: "+St),new URL(St,Wt)}let Nt={get action(){return st},get location(){return _e(Vr,nt)},listen(eo){if(dt)throw new Error("A history only accepts one active listener");return Vr.addEventListener(PopStateEventType,ro),dt=eo,()=>{Vr.removeEventListener(PopStateEventType,ro),dt=null}},createHref(eo){return cr(Vr,eo)},createURL:no,encodeLocation(eo){let Wt=no(eo);return{pathname:Wt.pathname,search:Wt.search,hash:Wt.hash}},push:ht,replace:po,go(eo){return nt.go(eo)}};return Nt}var ResultType;(function(_e){_e.data="data",_e.deferred="deferred",_e.redirect="redirect",_e.error="error"})(ResultType||(ResultType={}));const immutableRouteKeys=new Set(["lazy","caseSensitive","path","id","index","children"]);function isIndexRoute(_e){return _e.index===!0}function convertRoutesToDataRoutes(_e,cr,gr,Cr){return gr===void 0&&(gr=[]),Cr===void 0&&(Cr={}),_e.map((Vr,tt)=>{let nt=[...gr,tt],st=typeof Vr.id=="string"?Vr.id:nt.join("-");if(invariant(Vr.index!==!0||!Vr.children,"Cannot specify children on an index route"),invariant(!Cr[st],'Found a route id collision on id "'+st+`". Route id's must be globally unique within Data Router usages`),isIndexRoute(Vr)){let dt=_extends$3({},Vr,cr(Vr),{id:st});return Cr[st]=dt,dt}else{let dt=_extends$3({},Vr,cr(Vr),{id:st,children:void 0});return Cr[st]=dt,Vr.children&&(dt.children=convertRoutesToDataRoutes(Vr.children,cr,nt,Cr)),dt}})}function matchRoutes(_e,cr,gr){gr===void 0&&(gr="/");let Cr=typeof cr=="string"?parsePath(cr):cr,Vr=stripBasename(Cr.pathname||"/",gr);if(Vr==null)return null;let tt=flattenRoutes(_e);rankRouteBranches(tt);let nt=null;for(let st=0;nt==null&&st{let dt={relativePath:st===void 0?tt.path||"":st,caseSensitive:tt.caseSensitive===!0,childrenIndex:nt,route:tt};dt.relativePath.startsWith("/")&&(invariant(dt.relativePath.startsWith(Cr),'Absolute route path "'+dt.relativePath+'" nested under path '+('"'+Cr+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),dt.relativePath=dt.relativePath.slice(Cr.length));let kt=joinPaths([Cr,dt.relativePath]),qt=gr.concat(dt);tt.children&&tt.children.length>0&&(invariant(tt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+kt+'".')),flattenRoutes(tt.children,cr,qt,kt)),!(tt.path==null&&!tt.index)&&cr.push({path:kt,score:computeScore(kt,tt.index),routesMeta:qt})};return _e.forEach((tt,nt)=>{var st;if(tt.path===""||!((st=tt.path)!=null&&st.includes("?")))Vr(tt,nt);else for(let dt of explodeOptionalSegments(tt.path))Vr(tt,nt,dt)}),cr}function explodeOptionalSegments(_e){let cr=_e.split("/");if(cr.length===0)return[];let[gr,...Cr]=cr,Vr=gr.endsWith("?"),tt=gr.replace(/\?$/,"");if(Cr.length===0)return Vr?[tt,""]:[tt];let nt=explodeOptionalSegments(Cr.join("/")),st=[];return st.push(...nt.map(dt=>dt===""?tt:[tt,dt].join("/"))),Vr&&st.push(...nt),st.map(dt=>_e.startsWith("/")&&dt===""?"/":dt)}function rankRouteBranches(_e){_e.sort((cr,gr)=>cr.score!==gr.score?gr.score-cr.score:compareIndexes(cr.routesMeta.map(Cr=>Cr.childrenIndex),gr.routesMeta.map(Cr=>Cr.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=_e=>_e==="*";function computeScore(_e,cr){let gr=_e.split("/"),Cr=gr.length;return gr.some(isSplat)&&(Cr+=splatPenalty),cr&&(Cr+=indexRouteValue),gr.filter(Vr=>!isSplat(Vr)).reduce((Vr,tt)=>Vr+(paramRe.test(tt)?dynamicSegmentValue:tt===""?emptySegmentValue:staticSegmentValue),Cr)}function compareIndexes(_e,cr){return _e.length===cr.length&&_e.slice(0,-1).every((gr,Cr)=>gr===cr[Cr])?_e[_e.length-1]-cr[cr.length-1]:0}function matchRouteBranch(_e,cr){let{routesMeta:gr}=_e,Cr={},Vr="/",tt=[];for(let nt=0;nt{let{paramName:ro,isOptional:ht}=kt;if(ro==="*"){let no=st[qt]||"";nt=tt.slice(0,tt.length-no.length).replace(/(.)\/+$/,"$1")}const po=st[qt];return ht&&!po?dt[ro]=void 0:dt[ro]=(po||"").replace(/%2F/g,"/"),dt},{}),pathname:tt,pathnameBase:nt,pattern:_e}}function compilePath(_e,cr,gr){cr===void 0&&(cr=!1),gr===void 0&&(gr=!0),warning(_e==="*"||!_e.endsWith("*")||_e.endsWith("/*"),'Route path "'+_e+'" will be treated as if it were '+('"'+_e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+_e.replace(/\*$/,"/*")+'".'));let Cr=[],Vr="^"+_e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(tt,nt,st)=>(Cr.push({paramName:nt,isOptional:st!=null}),st?"/?([^\\/]+)?":"/([^\\/]+)"));return _e.endsWith("*")?(Cr.push({paramName:"*"}),Vr+=_e==="*"||_e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):gr?Vr+="\\/*$":_e!==""&&_e!=="/"&&(Vr+="(?:(?=\\/|$))"),[new RegExp(Vr,cr?void 0:"i"),Cr]}function decodePath(_e){try{return _e.split("/").map(cr=>decodeURIComponent(cr).replace(/\//g,"%2F")).join("/")}catch(cr){return warning(!1,'The URL path "'+_e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+cr+").")),_e}}function stripBasename(_e,cr){if(cr==="/")return _e;if(!_e.toLowerCase().startsWith(cr.toLowerCase()))return null;let gr=cr.endsWith("/")?cr.length-1:cr.length,Cr=_e.charAt(gr);return Cr&&Cr!=="/"?null:_e.slice(gr)||"/"}function resolvePath(_e,cr){cr===void 0&&(cr="/");let{pathname:gr,search:Cr="",hash:Vr=""}=typeof _e=="string"?parsePath(_e):_e;return{pathname:gr?gr.startsWith("/")?gr:resolvePathname(gr,cr):cr,search:normalizeSearch(Cr),hash:normalizeHash(Vr)}}function resolvePathname(_e,cr){let gr=cr.replace(/\/+$/,"").split("/");return _e.split("/").forEach(Cr=>{Cr===".."?gr.length>1&&gr.pop():Cr!=="."&&gr.push(Cr)}),gr.length>1?gr.join("/"):"/"}function getInvalidPathError(_e,cr,gr,Cr){return"Cannot include a '"+_e+"' character in a manually specified "+("`to."+cr+"` field ["+JSON.stringify(Cr)+"]. Please separate it out to the ")+("`to."+gr+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(_e){return _e.filter((cr,gr)=>gr===0||cr.route.path&&cr.route.path.length>0)}function getResolveToMatches(_e,cr){let gr=getPathContributingMatches(_e);return cr?gr.map((Cr,Vr)=>Vr===_e.length-1?Cr.pathname:Cr.pathnameBase):gr.map(Cr=>Cr.pathnameBase)}function resolveTo(_e,cr,gr,Cr){Cr===void 0&&(Cr=!1);let Vr;typeof _e=="string"?Vr=parsePath(_e):(Vr=_extends$3({},_e),invariant(!Vr.pathname||!Vr.pathname.includes("?"),getInvalidPathError("?","pathname","search",Vr)),invariant(!Vr.pathname||!Vr.pathname.includes("#"),getInvalidPathError("#","pathname","hash",Vr)),invariant(!Vr.search||!Vr.search.includes("#"),getInvalidPathError("#","search","hash",Vr)));let tt=_e===""||Vr.pathname==="",nt=tt?"/":Vr.pathname,st;if(nt==null)st=gr;else{let ro=cr.length-1;if(!Cr&&nt.startsWith("..")){let ht=nt.split("/");for(;ht[0]==="..";)ht.shift(),ro-=1;Vr.pathname=ht.join("/")}st=ro>=0?cr[ro]:"/"}let dt=resolvePath(Vr,st),kt=nt&&nt!=="/"&&nt.endsWith("/"),qt=(tt||nt===".")&&gr.endsWith("/");return!dt.pathname.endsWith("/")&&(kt||qt)&&(dt.pathname+="/"),dt}const joinPaths=_e=>_e.join("/").replace(/\/\/+/g,"/"),normalizePathname=_e=>_e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=_e=>!_e||_e==="?"?"":_e.startsWith("?")?_e:"?"+_e,normalizeHash=_e=>!_e||_e==="#"?"":_e.startsWith("#")?_e:"#"+_e;class ErrorResponseImpl{constructor(cr,gr,Cr,Vr){Vr===void 0&&(Vr=!1),this.status=cr,this.statusText=gr||"",this.internal=Vr,Cr instanceof Error?(this.data=Cr.toString(),this.error=Cr):this.data=Cr}}function isRouteErrorResponse(_e){return _e!=null&&typeof _e.status=="number"&&typeof _e.statusText=="string"&&typeof _e.internal=="boolean"&&"data"in _e}const validMutationMethodsArr=["post","put","patch","delete"],validMutationMethods=new Set(validMutationMethodsArr),validRequestMethodsArr=["get",...validMutationMethodsArr],validRequestMethods=new Set(validRequestMethodsArr),redirectStatusCodes=new Set([301,302,303,307,308]),redirectPreserveMethodStatusCodes=new Set([307,308]),IDLE_NAVIGATION={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_FETCHER={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_BLOCKER={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ABSOLUTE_URL_REGEX$1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,defaultMapRouteProperties=_e=>({hasErrorBoundary:!!_e.hasErrorBoundary}),TRANSITIONS_STORAGE_KEY="remix-router-transitions";function createRouter(_e){const cr=_e.window?_e.window:typeof window<"u"?window:void 0,gr=typeof cr<"u"&&typeof cr.document<"u"&&typeof cr.document.createElement<"u",Cr=!gr;invariant(_e.routes.length>0,"You must provide a non-empty routes array to createRouter");let Vr;if(_e.mapRouteProperties)Vr=_e.mapRouteProperties;else if(_e.detectErrorBoundary){let hs=_e.detectErrorBoundary;Vr=Ss=>({hasErrorBoundary:hs(Ss)})}else Vr=defaultMapRouteProperties;let tt={},nt=convertRoutesToDataRoutes(_e.routes,Vr,void 0,tt),st,dt=_e.basename||"/",kt=_e.unstable_dataStrategy||defaultDataStrategy,qt=_extends$3({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},_e.future),ro=null,ht=new Set,po=null,no=null,Nt=null,eo=_e.hydrationData!=null,Wt=matchRoutes(nt,_e.history.location,dt),St=null;if(Wt==null){let hs=getInternalRouterError(404,{pathname:_e.history.location.pathname}),{matches:Ss,route:Rs}=getShortCircuitMatches(nt);Wt=Ss,St={[Rs.id]:hs}}let Ot,uo=Wt.some(hs=>hs.route.lazy),go=Wt.some(hs=>hs.route.loader);if(uo)Ot=!1;else if(!go)Ot=!0;else if(qt.v7_partialHydration){let hs=_e.hydrationData?_e.hydrationData.loaderData:null,Ss=_e.hydrationData?_e.hydrationData.errors:null,Rs=e0=>e0.route.loader?typeof e0.route.loader=="function"&&e0.route.loader.hydrate===!0?!1:hs&&hs[e0.route.id]!==void 0||Ss&&Ss[e0.route.id]!==void 0:!0;if(Ss){let e0=Wt.findIndex(g0=>Ss[g0.route.id]!==void 0);Ot=Wt.slice(0,e0+1).every(Rs)}else Ot=Wt.every(Rs)}else Ot=_e.hydrationData!=null;let bo,oo={historyAction:_e.history.action,location:_e.history.location,matches:Wt,initialized:Ot,navigation:IDLE_NAVIGATION,restoreScrollPosition:_e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:_e.hydrationData&&_e.hydrationData.loaderData||{},actionData:_e.hydrationData&&_e.hydrationData.actionData||null,errors:_e.hydrationData&&_e.hydrationData.errors||St,fetchers:new Map,blockers:new Map},Ro=Action.Pop,pt=!1,lo,so=!1,wo=new Map,xt=null,Mt=!1,ho=!1,io=[],co=[],mo=new Map,Bo=0,So=-1,Tt=new Map,vo=new Set,Co=new Map,xo=new Map,Po=new Set,Wo=new Map,Yn=new Map,ba=!1;function _a(){if(ro=_e.history.listen(hs=>{let{action:Ss,location:Rs,delta:e0}=hs;if(ba){ba=!1;return}warning(Yn.size===0||e0!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let g0=Qo({currentLocation:oo.location,nextLocation:Rs,historyAction:Ss});if(g0&&e0!=null){ba=!0,_e.history.go(e0*-1),fo(g0,{state:"blocked",location:Rs,proceed(){fo(g0,{state:"proceeding",proceed:void 0,reset:void 0,location:Rs}),_e.history.go(e0)},reset(){let E0=new Map(oo.blockers);E0.set(g0,IDLE_BLOCKER),ss({blockers:E0})}});return}return Vo(Ss,Rs)}),gr){restoreAppliedTransitions(cr,wo);let hs=()=>persistAppliedTransitions(cr,wo);cr.addEventListener("pagehide",hs),xt=()=>cr.removeEventListener("pagehide",hs)}return oo.initialized||Vo(Action.Pop,oo.location,{initialHydration:!0}),bo}function $s(){ro&&ro(),xt&&xt(),ht.clear(),lo&&lo.abort(),oo.fetchers.forEach((hs,Ss)=>Fs(Ss)),oo.blockers.forEach((hs,Ss)=>n0(Ss))}function vs(hs){return ht.add(hs),()=>ht.delete(hs)}function ss(hs,Ss){Ss===void 0&&(Ss={}),oo=_extends$3({},oo,hs);let Rs=[],e0=[];qt.v7_fetcherPersist&&oo.fetchers.forEach((g0,E0)=>{g0.state==="idle"&&(Po.has(E0)?e0.push(E0):Rs.push(E0))}),[...ht].forEach(g0=>g0(oo,{deletedFetchers:e0,unstable_viewTransitionOpts:Ss.viewTransitionOpts,unstable_flushSync:Ss.flushSync===!0})),qt.v7_fetcherPersist&&(Rs.forEach(g0=>oo.fetchers.delete(g0)),e0.forEach(g0=>Fs(g0)))}function Ts(hs,Ss,Rs){var e0,g0;let{flushSync:E0}=Rs===void 0?{}:Rs,Vs=oo.actionData!=null&&oo.navigation.formMethod!=null&&isMutationMethod(oo.navigation.formMethod)&&oo.navigation.state==="loading"&&((e0=hs.state)==null?void 0:e0._isRedirect)!==!0,Bs;Ss.actionData?Object.keys(Ss.actionData).length>0?Bs=Ss.actionData:Bs=null:Vs?Bs=oo.actionData:Bs=null;let Gs=Ss.loaderData?mergeLoaderData(oo.loaderData,Ss.loaderData,Ss.matches||[],Ss.errors):oo.loaderData,A0=oo.blockers;A0.size>0&&(A0=new Map(A0),A0.forEach((P0,M0)=>A0.set(M0,IDLE_BLOCKER)));let y0=pt===!0||oo.navigation.formMethod!=null&&isMutationMethod(oo.navigation.formMethod)&&((g0=hs.state)==null?void 0:g0._isRedirect)!==!0;st&&(nt=st,st=void 0),Mt||Ro===Action.Pop||(Ro===Action.Push?_e.history.push(hs,hs.state):Ro===Action.Replace&&_e.history.replace(hs,hs.state));let s0;if(Ro===Action.Pop){let P0=wo.get(oo.location.pathname);P0&&P0.has(hs.pathname)?s0={currentLocation:oo.location,nextLocation:hs}:wo.has(hs.pathname)&&(s0={currentLocation:hs,nextLocation:oo.location})}else if(so){let P0=wo.get(oo.location.pathname);P0?P0.add(hs.pathname):(P0=new Set([hs.pathname]),wo.set(oo.location.pathname,P0)),s0={currentLocation:oo.location,nextLocation:hs}}ss(_extends$3({},Ss,{actionData:Bs,loaderData:Gs,historyAction:Ro,location:hs,initialized:!0,navigation:IDLE_NAVIGATION,revalidation:"idle",restoreScrollPosition:H0(hs,Ss.matches||oo.matches),preventScrollReset:y0,blockers:A0}),{viewTransitionOpts:s0,flushSync:E0===!0}),Ro=Action.Pop,pt=!1,so=!1,Mt=!1,ho=!1,io=[],co=[]}async function qo(hs,Ss){if(typeof hs=="number"){_e.history.go(hs);return}let Rs=normalizeTo(oo.location,oo.matches,dt,qt.v7_prependBasename,hs,qt.v7_relativeSplatPath,Ss==null?void 0:Ss.fromRouteId,Ss==null?void 0:Ss.relative),{path:e0,submission:g0,error:E0}=normalizeNavigateOptions(qt.v7_normalizeFormMethod,!1,Rs,Ss),Vs=oo.location,Bs=createLocation(oo.location,e0,Ss&&Ss.state);Bs=_extends$3({},Bs,_e.history.encodeLocation(Bs));let Gs=Ss&&Ss.replace!=null?Ss.replace:void 0,A0=Action.Push;Gs===!0?A0=Action.Replace:Gs===!1||g0!=null&&isMutationMethod(g0.formMethod)&&g0.formAction===oo.location.pathname+oo.location.search&&(A0=Action.Replace);let y0=Ss&&"preventScrollReset"in Ss?Ss.preventScrollReset===!0:void 0,s0=(Ss&&Ss.unstable_flushSync)===!0,P0=Qo({currentLocation:Vs,nextLocation:Bs,historyAction:A0});if(P0){fo(P0,{state:"blocked",location:Bs,proceed(){fo(P0,{state:"proceeding",proceed:void 0,reset:void 0,location:Bs}),qo(hs,Ss)},reset(){let M0=new Map(oo.blockers);M0.set(P0,IDLE_BLOCKER),ss({blockers:M0})}});return}return await Vo(A0,Bs,{submission:g0,pendingError:E0,preventScrollReset:y0,replace:Ss&&Ss.replace,enableViewTransition:Ss&&Ss.unstable_viewTransition,flushSync:s0})}function Js(){if(ms(),ss({revalidation:"loading"}),oo.navigation.state!=="submitting"){if(oo.navigation.state==="idle"){Vo(oo.historyAction,oo.location,{startUninterruptedRevalidation:!0});return}Vo(Ro||oo.historyAction,oo.navigation.location,{overrideNavigation:oo.navigation})}}async function Vo(hs,Ss,Rs){lo&&lo.abort(),lo=null,Ro=hs,Mt=(Rs&&Rs.startUninterruptedRevalidation)===!0,gs(oo.location,oo.matches),pt=(Rs&&Rs.preventScrollReset)===!0,so=(Rs&&Rs.enableViewTransition)===!0;let e0=st||nt,g0=Rs&&Rs.overrideNavigation,E0=matchRoutes(e0,Ss,dt),Vs=(Rs&&Rs.flushSync)===!0;if(!E0){let P0=getInternalRouterError(404,{pathname:Ss.pathname}),{matches:M0,route:O0}=getShortCircuitMatches(e0);Ko(),Ts(Ss,{matches:M0,loaderData:{},errors:{[O0.id]:P0}},{flushSync:Vs});return}if(oo.initialized&&!ho&&isHashChangeOnly(oo.location,Ss)&&!(Rs&&Rs.submission&&isMutationMethod(Rs.submission.formMethod))){Ts(Ss,{matches:E0},{flushSync:Vs});return}lo=new AbortController;let Bs=createClientSideRequest(_e.history,Ss,lo.signal,Rs&&Rs.submission),Gs;if(Rs&&Rs.pendingError)Gs=[findNearestBoundary(E0).route.id,{type:ResultType.error,error:Rs.pendingError}];else if(Rs&&Rs.submission&&isMutationMethod(Rs.submission.formMethod)){let P0=await zo(Bs,Ss,Rs.submission,E0,{replace:Rs.replace,flushSync:Vs});if(P0.shortCircuited)return;Gs=P0.pendingActionResult,g0=getLoadingNavigation(Ss,Rs.submission),Vs=!1,Bs=createClientSideRequest(_e.history,Bs.url,Bs.signal)}let{shortCircuited:A0,loaderData:y0,errors:s0}=await $n(Bs,Ss,E0,g0,Rs&&Rs.submission,Rs&&Rs.fetcherSubmission,Rs&&Rs.replace,Rs&&Rs.initialHydration===!0,Vs,Gs);A0||(lo=null,Ts(Ss,_extends$3({matches:E0},getActionDataForCommit(Gs),{loaderData:y0,errors:s0})))}async function zo(hs,Ss,Rs,e0,g0){g0===void 0&&(g0={}),ms();let E0=getSubmittingNavigation(Ss,Rs);ss({navigation:E0},{flushSync:g0.flushSync===!0});let Vs,Bs=getTargetMatch(e0,Ss);if(!Bs.route.action&&!Bs.route.lazy)Vs={type:ResultType.error,error:getInternalRouterError(405,{method:hs.method,pathname:Ss.pathname,routeId:Bs.route.id})};else if(Vs=(await Es("action",hs,[Bs],e0))[0],hs.signal.aborted)return{shortCircuited:!0};if(isRedirectResult(Vs)){let Gs;return g0&&g0.replace!=null?Gs=g0.replace:Gs=normalizeRedirectLocation(Vs.response.headers.get("Location"),new URL(hs.url),dt)===oo.location.pathname+oo.location.search,await fs(hs,Vs,{submission:Rs,replace:Gs}),{shortCircuited:!0}}if(isDeferredResult(Vs))throw getInternalRouterError(400,{type:"defer-action"});if(isErrorResult(Vs)){let Gs=findNearestBoundary(e0,Bs.route.id);return(g0&&g0.replace)!==!0&&(Ro=Action.Push),{pendingActionResult:[Gs.route.id,Vs]}}return{pendingActionResult:[Bs.route.id,Vs]}}async function $n(hs,Ss,Rs,e0,g0,E0,Vs,Bs,Gs,A0){let y0=e0||getLoadingNavigation(Ss,g0),s0=g0||E0||getSubmissionFromNavigation(y0),P0=st||nt,[M0,O0]=getMatchesToLoad(_e.history,oo,Rs,s0,Ss,qt.v7_partialHydration&&Bs===!0,qt.unstable_skipActionErrorRevalidation,ho,io,co,Po,Co,vo,P0,dt,A0);if(Ko(Qs=>!(Rs&&Rs.some(p0=>p0.route.id===Qs))||M0&&M0.some(p0=>p0.route.id===Qs)),So=++Bo,M0.length===0&&O0.length===0){let Qs=R0();return Ts(Ss,_extends$3({matches:Rs,loaderData:{},errors:A0&&isErrorResult(A0[1])?{[A0[0]]:A0[1].error}:null},getActionDataForCommit(A0),Qs?{fetchers:new Map(oo.fetchers)}:{}),{flushSync:Gs}),{shortCircuited:!0}}if(!Mt&&(!qt.v7_partialHydration||!Bs)){O0.forEach(p0=>{let l0=oo.fetchers.get(p0.key),S0=getLoadingFetcher(void 0,l0?l0.data:void 0);oo.fetchers.set(p0.key,S0)});let Qs;A0&&!isErrorResult(A0[1])?Qs={[A0[0]]:A0[1].data}:oo.actionData&&(Object.keys(oo.actionData).length===0?Qs=null:Qs=oo.actionData),ss(_extends$3({navigation:y0},Qs!==void 0?{actionData:Qs}:{},O0.length>0?{fetchers:new Map(oo.fetchers)}:{}),{flushSync:Gs})}O0.forEach(Qs=>{mo.has(Qs.key)&&v0(Qs.key),Qs.controller&&mo.set(Qs.key,Qs.controller)});let Sn=()=>O0.forEach(Qs=>v0(Qs.key));lo&&lo.signal.addEventListener("abort",Sn);let{loaderResults:T0,fetcherResults:An}=await Us(oo.matches,Rs,M0,O0,hs);if(hs.signal.aborted)return{shortCircuited:!0};lo&&lo.signal.removeEventListener("abort",Sn),O0.forEach(Qs=>mo.delete(Qs.key));let Pn=findRedirect([...T0,...An]);if(Pn){if(Pn.idx>=M0.length){let Qs=O0[Pn.idx-M0.length].key;vo.add(Qs)}return await fs(hs,Pn.result,{replace:Vs}),{shortCircuited:!0}}let{loaderData:Ln,errors:qn}=processLoaderData(oo,Rs,M0,T0,A0,O0,An,Wo);Wo.forEach((Qs,p0)=>{Qs.subscribe(l0=>{(l0||Qs.done)&&Wo.delete(p0)})}),qt.v7_partialHydration&&Bs&&oo.errors&&Object.entries(oo.errors).filter(Qs=>{let[p0]=Qs;return!M0.some(l0=>l0.route.id===p0)}).forEach(Qs=>{let[p0,l0]=Qs;qn=Object.assign(qn||{},{[p0]:l0})});let na=R0(),ls=D0(So),Ns=na||ls||O0.length>0;return _extends$3({loaderData:Ln,errors:qn},Ns?{fetchers:new Map(oo.fetchers)}:{})}function Tn(hs,Ss,Rs,e0){if(Cr)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");mo.has(hs)&&v0(hs);let g0=(e0&&e0.unstable_flushSync)===!0,E0=st||nt,Vs=normalizeTo(oo.location,oo.matches,dt,qt.v7_prependBasename,Rs,qt.v7_relativeSplatPath,Ss,e0==null?void 0:e0.relative),Bs=matchRoutes(E0,Vs,dt);if(!Bs){ks(hs,Ss,getInternalRouterError(404,{pathname:Vs}),{flushSync:g0});return}let{path:Gs,submission:A0,error:y0}=normalizeNavigateOptions(qt.v7_normalizeFormMethod,!0,Vs,e0);if(y0){ks(hs,Ss,y0,{flushSync:g0});return}let s0=getTargetMatch(Bs,Gs);if(pt=(e0&&e0.preventScrollReset)===!0,A0&&isMutationMethod(A0.formMethod)){ko(hs,Ss,Gs,s0,Bs,g0,A0);return}Co.set(hs,{routeId:Ss,path:Gs}),es(hs,Ss,Gs,s0,Bs,g0,A0)}async function ko(hs,Ss,Rs,e0,g0,E0,Vs){if(ms(),Co.delete(hs),!e0.route.action&&!e0.route.lazy){let l0=getInternalRouterError(405,{method:Vs.formMethod,pathname:Rs,routeId:Ss});ks(hs,Ss,l0,{flushSync:E0});return}let Bs=oo.fetchers.get(hs);bs(hs,getSubmittingFetcher(Vs,Bs),{flushSync:E0});let Gs=new AbortController,A0=createClientSideRequest(_e.history,Rs,Gs.signal,Vs);mo.set(hs,Gs);let y0=Bo,s0=(await Es("action",A0,[e0],g0))[0];if(A0.signal.aborted){mo.get(hs)===Gs&&mo.delete(hs);return}if(qt.v7_fetcherPersist&&Po.has(hs)){if(isRedirectResult(s0)||isErrorResult(s0)){bs(hs,getDoneFetcher(void 0));return}}else{if(isRedirectResult(s0))if(mo.delete(hs),So>y0){bs(hs,getDoneFetcher(void 0));return}else return vo.add(hs),bs(hs,getLoadingFetcher(Vs)),fs(A0,s0,{fetcherSubmission:Vs});if(isErrorResult(s0)){ks(hs,Ss,s0.error);return}}if(isDeferredResult(s0))throw getInternalRouterError(400,{type:"defer-action"});let P0=oo.navigation.location||oo.location,M0=createClientSideRequest(_e.history,P0,Gs.signal),O0=st||nt,Sn=oo.navigation.state!=="idle"?matchRoutes(O0,oo.navigation.location,dt):oo.matches;invariant(Sn,"Didn't find any matches after fetcher action");let T0=++Bo;Tt.set(hs,T0);let An=getLoadingFetcher(Vs,s0.data);oo.fetchers.set(hs,An);let[Pn,Ln]=getMatchesToLoad(_e.history,oo,Sn,Vs,P0,!1,qt.unstable_skipActionErrorRevalidation,ho,io,co,Po,Co,vo,O0,dt,[e0.route.id,s0]);Ln.filter(l0=>l0.key!==hs).forEach(l0=>{let S0=l0.key,yl=oo.fetchers.get(S0),Vt=getLoadingFetcher(void 0,yl?yl.data:void 0);oo.fetchers.set(S0,Vt),mo.has(S0)&&v0(S0),l0.controller&&mo.set(S0,l0.controller)}),ss({fetchers:new Map(oo.fetchers)});let qn=()=>Ln.forEach(l0=>v0(l0.key));Gs.signal.addEventListener("abort",qn);let{loaderResults:na,fetcherResults:ls}=await Us(oo.matches,Sn,Pn,Ln,M0);if(Gs.signal.aborted)return;Gs.signal.removeEventListener("abort",qn),Tt.delete(hs),mo.delete(hs),Ln.forEach(l0=>mo.delete(l0.key));let Ns=findRedirect([...na,...ls]);if(Ns){if(Ns.idx>=Pn.length){let l0=Ln[Ns.idx-Pn.length].key;vo.add(l0)}return fs(M0,Ns.result)}let{loaderData:Qs,errors:p0}=processLoaderData(oo,oo.matches,Pn,na,void 0,Ln,ls,Wo);if(oo.fetchers.has(hs)){let l0=getDoneFetcher(s0.data);oo.fetchers.set(hs,l0)}D0(T0),oo.navigation.state==="loading"&&T0>So?(invariant(Ro,"Expected pending action"),lo&&lo.abort(),Ts(oo.navigation.location,{matches:Sn,loaderData:Qs,errors:p0,fetchers:new Map(oo.fetchers)})):(ss({errors:p0,loaderData:mergeLoaderData(oo.loaderData,Qs,Sn,p0),fetchers:new Map(oo.fetchers)}),ho=!1)}async function es(hs,Ss,Rs,e0,g0,E0,Vs){let Bs=oo.fetchers.get(hs);bs(hs,getLoadingFetcher(Vs,Bs?Bs.data:void 0),{flushSync:E0});let Gs=new AbortController,A0=createClientSideRequest(_e.history,Rs,Gs.signal);mo.set(hs,Gs);let y0=Bo,s0=(await Es("loader",A0,[e0],g0))[0];if(isDeferredResult(s0)&&(s0=await resolveDeferredData(s0,A0.signal,!0)||s0),mo.get(hs)===Gs&&mo.delete(hs),!A0.signal.aborted){if(Po.has(hs)){bs(hs,getDoneFetcher(void 0));return}if(isRedirectResult(s0))if(So>y0){bs(hs,getDoneFetcher(void 0));return}else{vo.add(hs),await fs(A0,s0);return}if(isErrorResult(s0)){ks(hs,Ss,s0.error);return}invariant(!isDeferredResult(s0),"Unhandled fetcher deferred data"),bs(hs,getDoneFetcher(s0.data))}}async function fs(hs,Ss,Rs){let{submission:e0,fetcherSubmission:g0,replace:E0}=Rs===void 0?{}:Rs;Ss.response.headers.has("X-Remix-Revalidate")&&(ho=!0);let Vs=Ss.response.headers.get("Location");invariant(Vs,"Expected a Location header on the redirect Response"),Vs=normalizeRedirectLocation(Vs,new URL(hs.url),dt);let Bs=createLocation(oo.location,Vs,{_isRedirect:!0});if(gr){let M0=!1;if(Ss.response.headers.has("X-Remix-Reload-Document"))M0=!0;else if(ABSOLUTE_URL_REGEX$1.test(Vs)){const O0=_e.history.createURL(Vs);M0=O0.origin!==cr.location.origin||stripBasename(O0.pathname,dt)==null}if(M0){E0?cr.location.replace(Vs):cr.location.assign(Vs);return}}lo=null;let Gs=E0===!0?Action.Replace:Action.Push,{formMethod:A0,formAction:y0,formEncType:s0}=oo.navigation;!e0&&!g0&&A0&&y0&&s0&&(e0=getSubmissionFromNavigation(oo.navigation));let P0=e0||g0;if(redirectPreserveMethodStatusCodes.has(Ss.response.status)&&P0&&isMutationMethod(P0.formMethod))await Vo(Gs,Bs,{submission:_extends$3({},P0,{formAction:Vs}),preventScrollReset:pt});else{let M0=getLoadingNavigation(Bs,e0);await Vo(Gs,Bs,{overrideNavigation:M0,fetcherSubmission:g0,preventScrollReset:pt})}}async function Es(hs,Ss,Rs,e0){try{let g0=await callDataStrategyImpl(kt,hs,Ss,Rs,e0,tt,Vr);return await Promise.all(g0.map((E0,Vs)=>{if(isRedirectHandlerResult(E0)){let Bs=E0.result;return{type:ResultType.redirect,response:normalizeRelativeRoutingRedirectResponse(Bs,Ss,Rs[Vs].route.id,e0,dt,qt.v7_relativeSplatPath)}}return convertHandlerResultToDataResult(E0)}))}catch(g0){return Rs.map(()=>({type:ResultType.error,error:g0}))}}async function Us(hs,Ss,Rs,e0,g0){let[E0,...Vs]=await Promise.all([Rs.length?Es("loader",g0,Rs,Ss):[],...e0.map(Bs=>{if(Bs.matches&&Bs.match&&Bs.controller){let Gs=createClientSideRequest(_e.history,Bs.path,Bs.controller.signal);return Es("loader",Gs,[Bs.match],Bs.matches).then(A0=>A0[0])}else return Promise.resolve({type:ResultType.error,error:getInternalRouterError(404,{pathname:Bs.path})})})]);return await Promise.all([resolveDeferredResults(hs,Rs,E0,E0.map(()=>g0.signal),!1,oo.loaderData),resolveDeferredResults(hs,e0.map(Bs=>Bs.match),Vs,e0.map(Bs=>Bs.controller?Bs.controller.signal:null),!0)]),{loaderResults:E0,fetcherResults:Vs}}function ms(){ho=!0,io.push(...Ko()),Co.forEach((hs,Ss)=>{mo.has(Ss)&&(co.push(Ss),v0(Ss))})}function bs(hs,Ss,Rs){Rs===void 0&&(Rs={}),oo.fetchers.set(hs,Ss),ss({fetchers:new Map(oo.fetchers)},{flushSync:(Rs&&Rs.flushSync)===!0})}function ks(hs,Ss,Rs,e0){e0===void 0&&(e0={});let g0=findNearestBoundary(oo.matches,Ss);Fs(hs),ss({errors:{[g0.route.id]:Rs},fetchers:new Map(oo.fetchers)},{flushSync:(e0&&e0.flushSync)===!0})}function Ds(hs){return qt.v7_fetcherPersist&&(xo.set(hs,(xo.get(hs)||0)+1),Po.has(hs)&&Po.delete(hs)),oo.fetchers.get(hs)||IDLE_FETCHER}function Fs(hs){let Ss=oo.fetchers.get(hs);mo.has(hs)&&!(Ss&&Ss.state==="loading"&&Tt.has(hs))&&v0(hs),Co.delete(hs),Tt.delete(hs),vo.delete(hs),Po.delete(hs),oo.fetchers.delete(hs)}function d0(hs){if(qt.v7_fetcherPersist){let Ss=(xo.get(hs)||0)-1;Ss<=0?(xo.delete(hs),Po.add(hs)):xo.set(hs,Ss)}else Fs(hs);ss({fetchers:new Map(oo.fetchers)})}function v0(hs){let Ss=mo.get(hs);invariant(Ss,"Expected fetch controller: "+hs),Ss.abort(),mo.delete(hs)}function b0(hs){for(let Ss of hs){let Rs=Ds(Ss),e0=getDoneFetcher(Rs.data);oo.fetchers.set(Ss,e0)}}function R0(){let hs=[],Ss=!1;for(let Rs of vo){let e0=oo.fetchers.get(Rs);invariant(e0,"Expected fetcher: "+Rs),e0.state==="loading"&&(vo.delete(Rs),hs.push(Rs),Ss=!0)}return b0(hs),Ss}function D0(hs){let Ss=[];for(let[Rs,e0]of Tt)if(e00}function zs(hs,Ss){let Rs=oo.blockers.get(hs)||IDLE_BLOCKER;return Yn.get(hs)!==Ss&&Yn.set(hs,Ss),Rs}function n0(hs){oo.blockers.delete(hs),Yn.delete(hs)}function fo(hs,Ss){let Rs=oo.blockers.get(hs)||IDLE_BLOCKER;invariant(Rs.state==="unblocked"&&Ss.state==="blocked"||Rs.state==="blocked"&&Ss.state==="blocked"||Rs.state==="blocked"&&Ss.state==="proceeding"||Rs.state==="blocked"&&Ss.state==="unblocked"||Rs.state==="proceeding"&&Ss.state==="unblocked","Invalid blocker state transition: "+Rs.state+" -> "+Ss.state);let e0=new Map(oo.blockers);e0.set(hs,Ss),ss({blockers:e0})}function Qo(hs){let{currentLocation:Ss,nextLocation:Rs,historyAction:e0}=hs;if(Yn.size===0)return;Yn.size>1&&warning(!1,"A router only supports one blocker at a time");let g0=Array.from(Yn.entries()),[E0,Vs]=g0[g0.length-1],Bs=oo.blockers.get(E0);if(!(Bs&&Bs.state==="proceeding")&&Vs({currentLocation:Ss,nextLocation:Rs,historyAction:e0}))return E0}function Ko(hs){let Ss=[];return Wo.forEach((Rs,e0)=>{(!hs||hs(e0))&&(Rs.cancel(),Ss.push(e0),Wo.delete(e0))}),Ss}function ps(hs,Ss,Rs){if(po=hs,Nt=Ss,no=Rs||null,!eo&&oo.navigation===IDLE_NAVIGATION){eo=!0;let e0=H0(oo.location,oo.matches);e0!=null&&ss({restoreScrollPosition:e0})}return()=>{po=null,Nt=null,no=null}}function Kn(hs,Ss){return no&&no(hs,Ss.map(Rs=>convertRouteMatchToUiMatch(Rs,oo.loaderData)))||hs.key}function gs(hs,Ss){if(po&&Nt){let Rs=Kn(hs,Ss);po[Rs]=Nt()}}function H0(hs,Ss){if(po){let Rs=Kn(hs,Ss),e0=po[Rs];if(typeof e0=="number")return e0}return null}function j0(hs){tt={},st=convertRoutesToDataRoutes(hs,Vr,void 0,tt)}return bo={get basename(){return dt},get future(){return qt},get state(){return oo},get routes(){return nt},get window(){return cr},initialize:_a,subscribe:vs,enableScrollRestoration:ps,navigate:qo,fetch:Tn,revalidate:Js,createHref:hs=>_e.history.createHref(hs),encodeLocation:hs=>_e.history.encodeLocation(hs),getFetcher:Ds,deleteFetcher:d0,dispose:$s,getBlocker:zs,deleteBlocker:n0,_internalFetchControllers:mo,_internalActiveDeferreds:Wo,_internalSetRoutes:j0},bo}function isSubmissionNavigation(_e){return _e!=null&&("formData"in _e&&_e.formData!=null||"body"in _e&&_e.body!==void 0)}function normalizeTo(_e,cr,gr,Cr,Vr,tt,nt,st){let dt,kt;if(nt){dt=[];for(let ro of cr)if(dt.push(ro),ro.route.id===nt){kt=ro;break}}else dt=cr,kt=cr[cr.length-1];let qt=resolveTo(Vr||".",getResolveToMatches(dt,tt),stripBasename(_e.pathname,gr)||_e.pathname,st==="path");return Vr==null&&(qt.search=_e.search,qt.hash=_e.hash),(Vr==null||Vr===""||Vr===".")&&kt&&kt.route.index&&!hasNakedIndexQuery(qt.search)&&(qt.search=qt.search?qt.search.replace(/^\?/,"?index&"):"?index"),Cr&&gr!=="/"&&(qt.pathname=qt.pathname==="/"?gr:joinPaths([gr,qt.pathname])),createPath(qt)}function normalizeNavigateOptions(_e,cr,gr,Cr){if(!Cr||!isSubmissionNavigation(Cr))return{path:gr};if(Cr.formMethod&&!isValidMethod(Cr.formMethod))return{path:gr,error:getInternalRouterError(405,{method:Cr.formMethod})};let Vr=()=>({path:gr,error:getInternalRouterError(400,{type:"invalid-body"})}),tt=Cr.formMethod||"get",nt=_e?tt.toUpperCase():tt.toLowerCase(),st=stripHashFromPath(gr);if(Cr.body!==void 0){if(Cr.formEncType==="text/plain"){if(!isMutationMethod(nt))return Vr();let ht=typeof Cr.body=="string"?Cr.body:Cr.body instanceof FormData||Cr.body instanceof URLSearchParams?Array.from(Cr.body.entries()).reduce((po,no)=>{let[Nt,eo]=no;return""+po+Nt+"="+eo+` + 0 22,12A10,10 0 0,0 12,2Z`}))},defaultIconVariants={default:void 0,success:React$3.createElement(CheckIcon,null),warning:React$3.createElement(WarningIcon,null),error:React$3.createElement(ErrorIcon,null),info:React$3.createElement(InfoIcon,null)},defaults$1={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:defaultIconVariants,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Slide,transitionDuration:{enter:225,exit:195}},getAutoHideDuration=function _e(cr,gr){var Cr=function(Vr){return typeof Vr=="number"||Vr===null};return Cr(cr)?cr:Cr(gr)?gr:defaults$1.autoHideDuration},getTransitionDuration=function _e(cr,gr){var Cr=function(Vr,tt){return tt.some(function(nt){return typeof Vr===nt})};return Cr(cr,["string","number"])?cr:Cr(cr,["object"])?_extends$4({},defaults$1.transitionDuration,{},Cr(gr,["object"])&&gr,{},cr):Cr(gr,["string","number"])?gr:Cr(gr,["object"])?_extends$4({},defaults$1.transitionDuration,{},gr):defaults$1.transitionDuration},merge$2=function _e(cr,gr){return function(Cr,Vr){return Vr===void 0&&(Vr=!1),Vr?_extends$4({},defaults$1[Cr],{},gr[Cr],{},cr[Cr]):Cr==="autoHideDuration"?getAutoHideDuration(cr.autoHideDuration,gr.autoHideDuration):Cr==="transitionDuration"?getTransitionDuration(cr.transitionDuration,gr.transitionDuration):cr[Cr]||gr[Cr]||defaults$1[Cr]}};function makeStyles$1(_e){return Object.entries(_e).reduce(function(cr,gr){var Cr,Vr=gr[0],tt=gr[1];return _extends$4({},cr,(Cr={},Cr[Vr]=u$3(tt),Cr))},{})}var ComponentClasses={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function _e(cr){return"notistack-MuiContent-"+cr}},classes=makeStyles$1({root:{height:0},entered:{height:"auto"}}),collapsedSize="0px",timeout=175,Collapse=reactExports.forwardRef(function(_e,cr){var gr=_e.children,Cr=_e.in,Vr=_e.onExited,tt=reactExports.useRef(null),nt=reactExports.useRef(null),st=useForkRef$1(cr,nt),dt=function(){return tt.current?tt.current.clientHeight:0},kt=function(no){no.style.height=collapsedSize},qt=function(no){var Nt=dt(),eo=getTransitionProps$1({timeout,mode:"enter"}),Wt=eo.duration,St=eo.easing;no.style.transitionDuration=typeof Wt=="string"?Wt:Wt+"ms",no.style.height=Nt+"px",no.style.transitionTimingFunction=St||""},ro=function(no){no.style.height="auto"},ht=function(no){no.style.height=dt()+"px"},po=function(no){reflow$1(no);var Nt=getTransitionProps$1({timeout,mode:"exit"}),eo=Nt.duration,Wt=Nt.easing;no.style.transitionDuration=typeof eo=="string"?eo:eo+"ms",no.style.height=collapsedSize,no.style.transitionTimingFunction=Wt||""};return reactExports.createElement(Transition$1,{in:Cr,unmountOnExit:!0,onEnter:kt,onEntered:ro,onEntering:qt,onExit:ht,onExited:Vr,onExiting:po,nodeRef:nt,timeout},function(no,Nt){return reactExports.createElement("div",Object.assign({ref:st,className:clsx$1(classes.root,no==="entered"&&classes.entered),style:_extends$4({pointerEvents:"all",overflow:"hidden",minHeight:collapsedSize,transition:createTransition("height")},no==="entered"&&{overflow:"visible"},{},no==="exited"&&!Cr&&{visibility:"hidden"})},Nt),reactExports.createElement("div",{ref:tt,className:ComponentClasses.CollapseWrapper,style:{display:"flex",width:"100%"}},gr))})});Collapse.displayName="Collapse";var direction={right:"left",left:"right",bottom:"up",top:"down"},getSlideDirection=function _e(cr){return cr.horizontal!=="center"?direction[cr.horizontal]:direction[cr.vertical]},toSnackbarAnchorOrigin=function _e(cr){return"anchorOrigin"+originKeyExtractor(cr)},keepSnackbarClassKeys=function _e(cr){cr===void 0&&(cr={});var gr={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(cr).filter(function(Cr){return!gr[Cr]}).reduce(function(Cr,Vr){var tt;return _extends$4({},Cr,(tt={},tt[Vr]=cr[Vr],tt))},{})},noOp$1=function _e(){};function createChainedFunction$1(_e,cr){return _e.reduce(function(gr,Cr){return Cr==null?gr:function(){for(var Vr=arguments.length,tt=new Array(Vr),nt=0;nt-1,Ot=eo.snacks.findIndex(Wt)>-1;if(St||Ot)return eo}return Vr.handleDisplaySnack(_extends$4({},eo,{queue:[].concat(eo.queue,[Nt])}))}),po},Vr.handleDisplaySnack=function(tt){var nt=tt.snacks;return nt.length>=Vr.maxSnack?Vr.handleDismissOldest(tt):Vr.processQueue(tt)},Vr.processQueue=function(tt){var nt=tt.queue,st=tt.snacks;return nt.length>0?_extends$4({},tt,{snacks:[].concat(st,[nt[0]]),queue:nt.slice(1,nt.length)}):tt},Vr.handleDismissOldest=function(tt){if(tt.snacks.some(function(qt){return!qt.open||qt.requestClose}))return tt;var nt=!1,st=!1,dt=tt.snacks.reduce(function(qt,ro){return qt+(ro.open&&ro.persist?1:0)},0);dt===Vr.maxSnack&&(st=!0);var kt=tt.snacks.map(function(qt){return!nt&&(!qt.persist||st)?(nt=!0,qt.entered?(qt.onClose&&qt.onClose(null,"maxsnack",qt.id),Vr.props.onClose&&Vr.props.onClose(null,"maxsnack",qt.id),_extends$4({},qt,{open:!1})):_extends$4({},qt,{requestClose:!0})):_extends$4({},qt)});return _extends$4({},tt,{snacks:kt})},Vr.handleEnteredSnack=function(tt,nt,st){if(!isDefined(st))throw new Error("handleEnteredSnack Cannot be called with undefined key");Vr.setState(function(dt){var kt=dt.snacks;return{snacks:kt.map(function(qt){return qt.id===st?_extends$4({},qt,{entered:!0}):_extends$4({},qt)})}})},Vr.handleCloseSnack=function(tt,nt,st){Vr.props.onClose&&Vr.props.onClose(tt,nt,st);var dt=st===void 0;Vr.setState(function(kt){var qt=kt.snacks,ro=kt.queue;return{snacks:qt.map(function(ht){return!dt&&ht.id!==st?_extends$4({},ht):ht.entered?_extends$4({},ht,{open:!1}):_extends$4({},ht,{requestClose:!0})}),queue:ro.filter(function(ht){return ht.id!==st})}})},Vr.closeSnackbar=function(tt){var nt=Vr.state.snacks.find(function(st){return st.id===tt});isDefined(tt)&&nt&&nt.onClose&&nt.onClose(null,"instructed",tt),Vr.handleCloseSnack(null,"instructed",tt)},Vr.handleExitedSnack=function(tt,nt){if(!isDefined(nt))throw new Error("handleExitedSnack Cannot be called with undefined key");Vr.setState(function(st){var dt=Vr.processQueue(_extends$4({},st,{snacks:st.snacks.filter(function(kt){return kt.id!==nt})}));return dt.queue.length===0?dt:Vr.handleDismissOldest(dt)})},Vr.enqueueSnackbar,closeSnackbar=Vr.closeSnackbar,Vr.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:Vr.enqueueSnackbar.bind(_assertThisInitialized$1(Vr)),closeSnackbar:Vr.closeSnackbar.bind(_assertThisInitialized$1(Vr))}},Vr}var gr=cr.prototype;return gr.render=function(){var Cr=this,Vr=this.state.contextValue,tt=this.props,nt=tt.domRoot,st=tt.children,dt=tt.dense,kt=dt===void 0?!1:dt,qt=tt.Components,ro=qt===void 0?{}:qt,ht=tt.classes,po=this.state.snacks.reduce(function(Nt,eo){var Wt,St=originKeyExtractor(eo.anchorOrigin),Ot=Nt[St]||[];return _extends$4({},Nt,(Wt={},Wt[St]=[].concat(Ot,[eo]),Wt))},{}),no=Object.keys(po).map(function(Nt){var eo=po[Nt],Wt=eo[0];return React$3.createElement(SnackbarContainer$1,{key:Nt,dense:kt,anchorOrigin:Wt.anchorOrigin,classes:ht},eo.map(function(St){return React$3.createElement(SnackbarItem,{key:St.id,snack:St,classes:ht,Component:ro[St.variant],onClose:Cr.handleCloseSnack,onEnter:Cr.props.onEnter,onExit:Cr.props.onExit,onExited:createChainedFunction$1([Cr.handleExitedSnack,Cr.props.onExited],St.id),onEntered:createChainedFunction$1([Cr.handleEnteredSnack,Cr.props.onEntered],St.id)})}))});return React$3.createElement(SnackbarContext.Provider,{value:Vr},st,nt?reactDomExports.createPortal(no,nt):no)},_createClass(cr,[{key:"maxSnack",get:function(){return this.props.maxSnack||defaults$1.maxSnack}}]),cr}(reactExports.Component),useSnackbar=function(){return reactExports.useContext(SnackbarContext)};function*takeEvery(..._e){return yield takeEvery$1$1(..._e)}function*takeLatest(..._e){return yield takeLatest$1$1(..._e)}function*takeLeading(..._e){return yield takeLeading$1$1(..._e)}function*put(..._e){return yield put$1(..._e)}function*call$1(..._e){return yield call$3(..._e)}function*fork(..._e){return yield fork$1(..._e)}function*spawn(..._e){return yield spawn$1(..._e)}function*join(..._e){return yield join$1(..._e)}function*select(..._e){return yield select$1(..._e)}function*all(..._e){return yield all$1(..._e)}const store$5=_e=>_e[walletSliceName],{address,balance,tokensBalances,status:status$1,balanceLoading}=keySelectors(store$5,["address","balance","tokensBalances","status","balanceLoading"]),swapTokens=createSelector(tokensBalances,tokens,balance,(_e,cr,gr)=>Object.values(cr).filter(Cr=>allowTokenSymbol.includes(Cr.symbol)).map(Cr=>{var Vr;return{...Cr,assetAddress:Cr.address,balance:((Vr=_e[Cr.address])==null?void 0:Vr.balance)??0n}}));createSelector(tokensBalances,tokens,balance,(_e,cr,gr)=>Object.values(cr).map(Cr=>{var Vr;return{...Cr,assetAddress:Cr.address,balance:((Vr=_e[Cr.address])==null?void 0:Vr.balance)??0n}}));const swapTokensDict=createSelector(tokensBalances,tokens,balance,(_e,cr,gr)=>{const Cr={};return Object.entries(cr).forEach(([Vr,tt])=>{var nt;Cr[Vr]={...tt,assetAddress:tt.address,balance:((nt=_e[tt.address])==null?void 0:nt.balance)??0n}}),Cr}),canCreateNewPool=()=>createSelector(balance,()=>!0),canCreateNewPosition=()=>createSelector(balance,()=>!0);function*fetchPoolsDataForList(_e){const cr=yield*select(address),gr=yield*call$1(getPoolsByPoolKeys,_e.payload.poolKeys),Cr=yield*select(tokens),Vr=new Set(_e.payload.poolKeys.flatMap(({token_x:dt,token_y:kt})=>[dt,kt].filter(qt=>!Cr[qt]))),tt=new Set(_e.payload.poolKeys.flatMap(({token_x:dt,token_y:kt})=>[dt,kt].filter(qt=>Cr[qt]))),nt=yield*call$1(getTokenDataByAddresses,[...Vr],cr),st=yield*call$1(getTokenBalances,[...tt],cr);yield*put(actions$1.addTokens(nt)),yield*put(actions$1.updateTokenBalances(st)),yield*put(actions$1.addPoolsForList({data:gr,listType:_e.payload.listType}))}function*handleInitPool(_e){const cr=yield*select(address),gr=createLoaderKey(),Cr=createLoaderKey();try{yield put(actions$4.add({message:"Creating new pool...",variant:"pending",persist:!0,key:gr}));const{token_x:Vr,token_y:tt,fee_tier:nt}=_e.payload,st=newPoolKey$1(Vr,tt,nt),dt=toSqrtPrice$1(1n),kt=yield*call$1(createPoolTx,st,dt.toString(),cr);yield put(actions$4.add({message:"Pool successfully created",variant:"success",persist:!1,txid:kt})),closeSnackbar(gr),yield put(actions$4.remove(gr))}catch(Vr){console.log(Vr),closeSnackbar(gr),yield put(actions$4.remove(gr)),closeSnackbar(Cr),yield put(actions$4.remove(Cr))}}function*fetchAllPoolData(){try{const _e=yield*call$1(getAllPools);_e?yield*put(actions$1.setAllPools(_e)):yield*put(actions$1.setAllPools([]))}catch(_e){console.log(_e),yield*put(actions$1.setAllPools([]))}}function*fetchPoolData(_e){const{fee_tier:cr,token_x:gr,token_y:Cr}=_e.payload;console.log("fetching pool data",cr,gr,Cr);try{const Vr=yield*call$1(getPool,{fee_tier:cr,token_x:gr,token_y:Cr});Vr?yield*put(actions$1.addPool(Vr)):yield*put(actions$1.addPool())}catch(Vr){console.log(Vr),yield*put(actions$1.addPool())}}function*fetchAllPoolKeys(){try{const _e=yield*call$1(getPoolKeys);yield*put(actions$1.setPoolKeys(_e));const cr={payload:{poolKeys:_e,listType:ListType.POSITIONS}};yield call$1(fetchPoolsDataForList,cr)}catch(_e){yield*put(actions$1.setPoolKeys([])),console.log(_e)}}function*fetchAllPoolsForPairData(_e){const cr=yield*call$1(getPoolKeys),gr=findPairsByPoolKeys(_e.payload.first.toString(),_e.payload.second.toString(),cr),Cr=yield*call$1(getPools,gr);yield*put(actions$1.addPools(Cr))}function*fetchTicksAndTickMaps(_e){const{tokenFrom:cr,tokenTo:gr,allPools:Cr}=_e.payload;try{const Vr=findPairs(cr.toString(),gr.toString(),Cr),tt=Vr.map(kt=>call$1(getFullTickmap,kt.pool_key)),nt=yield*all(tt);for(const[kt,qt]of Vr.entries())yield*put(actions$1.setTickMaps({poolKey:qt.pool_key,tickMapStructure:nt[kt]}));const st=Vr.map((kt,qt)=>call$1(getAllLiquidityTicks,kt.pool_key,nt[qt])),dt=yield*all(st);for(const[kt,qt]of Vr.entries())yield*put(actions$1.setTicks({poolKey:qt.pool_key,tickStructure:dt[kt]}));yield*put(actions$1.stopIsLoadingTicksAndTickMaps())}catch(Vr){console.log(Vr)}}function*getPoolsDataForListHandler(){yield*takeEvery(actions$1.getPoolsDataForList,fetchPoolsDataForList)}function*initPoolHandler(){yield*takeLatest(actions$1.initPool,handleInitPool)}function*getPoolDataHandler(){yield*takeLatest(actions$1.getPoolData,fetchPoolData)}function*getAllPoolDataHandler(){yield*takeLatest(actions$1.getAllPoolData,fetchAllPoolData)}function*getPoolKeysHandler(){yield*takeLatest(actions$1.getPoolKeys,fetchAllPoolKeys)}function*getAllPoolsForPairDataHandler(){yield*takeLatest(actions$1.getAllPoolsForPairData,fetchAllPoolsForPairData)}function*getTicksAndTickMapsHandler(){yield*takeEvery(actions$1.getTicksAndTickMaps,fetchTicksAndTickMaps)}function*poolsSaga(){yield all([initPoolHandler,getPoolDataHandler,getPoolKeysHandler,getPoolsDataForListHandler,getAllPoolsForPairDataHandler,getTicksAndTickMapsHandler,getAllPoolDataHandler].map(spawn))}function*fetchSelectedTokensBalances(_e){const cr=yield*select(address),gr=_e.payload,Cr=(yield*call$1(getTokenBalances,gr,cr)).map(Vr=>({address:Vr[0],balance:Vr[1]}));yield*put(actions$3.addTokenBalances(Cr))}function*fetchTokensBalances(){const _e=yield*select(address),cr=Object.values(FaucetTokenList),gr=(yield*call$1(getTokenBalances,cr,_e)).map(Cr=>({address:Cr[0],balance:Cr[1]}));yield*put(actions$3.addTokenBalances(gr))}function*init(){try{yield*put(actions$3.setStatus(Status.Init)),yield*put(actions$3.setAddress(SingletonOraiswapV3.dex.sender)),yield*put(actions$3.setIsBalanceLoading(!0));const _e=yield*call$1(getBalance,SingletonOraiswapV3.dex.sender);yield*put(actions$3.setBalance(BigInt(_e))),yield*put(actions$3.setStatus(Status.Initialized)),yield*call$1(fetchTokensBalances),yield*put(actions$3.setIsBalanceLoading(!1))}catch(_e){console.log(_e)}}function*handleConnect(){if((yield*select(status$1))===Status.Initialized){yield*put(actions$4.add({message:"Wallet already connected.",variant:"info",persist:!1}));return}yield*call$1(init)}function*handleDisconnect(){try{yield*put(actions$3.resetState()),yield*put(actions$2.setPositionsList([])),yield*put(actions$2.setCurrentPositionTicks({lowerTick:void 0,upperTick:void 0}))}catch(_e){console.log(_e)}}function*fetchBalances(_e){const cr=yield*select(address);yield*put(actions$3.setIsBalanceLoading(!0));const gr=yield*call$1(getBalance,cr);yield*put(actions$3.setBalance(BigInt(gr)));const Cr=yield*call$1(getTokenBalances,_e,cr);yield*put(actions$3.addTokenBalances(Cr.map(Vr=>({address:Vr.address,balance:Vr.balance})))),yield*put(actions$3.setIsBalanceLoading(!1))}function*handleGetBalances(_e){yield*call$1(fetchBalances,_e.payload)}function*connectHandler(){yield takeLatest(actions$3.connect,handleConnect)}function*disconnectHandler(){yield takeLatest(actions$3.disconnect,handleDisconnect)}function*initSaga(){yield takeLeading(actions$3.initWallet,init)}function*handleFetchTokensBalances(){yield takeLeading(actions$3.getTokens,fetchTokensBalances)}function*handleFetchSelectedTokensBalances(){yield takeLeading(actions$3.getSelectedTokens,fetchSelectedTokensBalances)}function*getBalancesHandler(){yield takeLeading(actions$3.getBalances,handleGetBalances)}function*walletSaga(){yield all([initSaga,connectHandler,disconnectHandler,handleFetchTokensBalances,handleFetchSelectedTokensBalances,getBalancesHandler].map(spawn))}function*handleInitPosition(_e){const{poolKeyData:cr,lowerTick:gr,upperTick:Cr,spotSqrtPrice:Vr,tokenXAmount:tt,tokenYAmount:nt,liquidityDelta:st,initPool:dt,slippageTolerance:kt}=_e.payload,{token_x:qt,token_y:ro,fee_tier:ht}=cr,po=yield*select(address);if(isNativeToken(qt)&&tt!==0n||isNativeToken(ro)&&nt!==0n)return yield*call$1(handleInitPositionWithNative,_e);const no=createLoaderKey(),Nt=createLoaderKey();try{yield put(actions$4.add({message:"Creating position...",variant:"pending",persist:!0,key:no}));const eo=[],[Wt,St]=calculateTokenAmountsWithSlippage(ht.tick_spacing,Vr,st,gr,Cr,Number(kt),!0),Ot=yield*call$1(approveToken,qt,Wt,po);eo.push(Ot);const uo=yield*call$1(approveToken,ro,St,po);eo.push(uo);const go=newPoolKey$1(qt,ro,ht);if(dt){const oo=yield*call$1(createPoolTx,go,Vr.toString(),po);eo.push(oo)}const bo=yield*call$1(createPositionTx,go,gr,Cr,st,Vr,kt,po);eo.push(bo),yield put(actions$4.add({message:"Signing transaction...",variant:"pending",persist:!0,key:Nt})),closeSnackbar(Nt),yield put(actions$4.remove(Nt)),yield*put(actions$2.setInitPositionSuccess(!0)),closeSnackbar(no),yield put(actions$4.remove(no)),yield put(actions$4.add({message:"Position successfully created",variant:"success",persist:!1,txid:bo})),yield put(actions$2.getPositionsList()),yield*call$1(fetchBalances,[qt,ro]),yield*put(actions$1.getPoolKeys())}catch(eo){console.log(eo),yield*put(actions$2.setInitPositionSuccess(!1)),closeSnackbar(no),yield put(actions$4.remove(no)),closeSnackbar(Nt),yield put(actions$4.remove(Nt)),eo.message?yield put(actions$4.add({message:eo.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to send. Please try again.",variant:"error",persist:!1}))}}function*handleGetPositionsList(){try{const _e=yield*select(address),cr=yield*call$1(positionList,_e),gr=[],Cr=new Set;for(let Vr=0;Vr>",_e),yield*put(actions$2.setPositionsList([]))}}function*handleGetCurrentPositionTicks(_e){const{poolKey:cr,lowerTickIndex:gr,upperTickIndex:Cr}=_e.payload,[Vr,tt]=yield*all([call$1(getTick,gr,cr),call$1(getTick,Cr,cr)]);yield put(actions$2.setCurrentPositionTicks({lowerTick:Vr,upperTick:tt}))}function*handleInitPositionWithNative(_e){const cr=yield*select(address),gr=createLoaderKey(),Cr=createLoaderKey(),{poolKeyData:Vr,lowerTick:tt,upperTick:nt,spotSqrtPrice:st,liquidityDelta:dt,initPool:kt,slippageTolerance:qt}=_e.payload,{token_x:ro,token_y:ht,fee_tier:po}=Vr;try{yield put(actions$4.add({message:"Creating position...",variant:"pending",persist:!0,key:gr}));const[no,Nt]=calculateTokenAmountsWithSlippage(po.tick_spacing,st,dt,tt,nt,Number(qt),!0);yield*call$1(approveToken,ro,no,cr),yield*call$1(approveToken,ht,Nt,cr);const eo=newPoolKey$1(ro,ht,po);kt&&(yield*call$1(createPoolTx,eo,st.toString(),cr));const Wt=yield*call$1(createPositionWithNativeTx,eo,tt,nt,dt,st,qt,no,Nt,cr);yield put(actions$4.add({message:"Signing transaction...",variant:"pending",persist:!0,key:Cr})),closeSnackbar(Cr),yield put(actions$4.remove(Cr)),yield*put(actions$2.setInitPositionSuccess(!0)),closeSnackbar(gr),yield put(actions$4.remove(gr)),yield put(actions$4.add({message:"Position successfully created",variant:"success",persist:!1,txid:Wt})),yield put(actions$3.getSelectedTokens([ro,ht])),yield put(actions$2.getPositionsList()),yield*call$1(fetchBalances,[ro,ht]),yield*put(actions$1.getPoolKeys())}catch(no){console.log(no),yield*put(actions$2.setInitPositionSuccess(!1)),closeSnackbar(gr),yield put(actions$4.remove(gr)),closeSnackbar(Cr),yield put(actions$4.remove(Cr)),no.message?yield put(actions$4.add({message:no.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to send. Please try again.",variant:"error",persist:!1}))}}function*handleGetCurrentPlotTicks(_e){const{poolKey:cr,isXtoY:gr,fetchTicksAndTickmap:Cr}=_e.payload;let Vr=yield*select(tickMaps);const tt=yield*select(tokens),nt=yield*select(poolsArraySortedByFees),st=tt[cr.token_x].decimals,dt=tt[cr.token_y].decimals;try{if(!Vr[poolKeyToString(cr)]||Cr){const ro={type:actions$1.getTicksAndTickMaps.type,payload:{tokenFrom:tt[cr.token_x].address,tokenTo:tt[cr.token_y].address,allPools:nt}},ht=yield*fork(fetchTicksAndTickMaps,ro);yield*join(ht),Vr=yield*select(tickMaps)}if(!Vr[poolKeyToString(cr)]){const ro=createPlaceholderLiquidityPlot(_e.payload.isXtoY,0,cr.fee_tier.tick_spacing,st,dt);yield*put(actions$2.setPlotTicks(ro));return}const kt=yield*call$1(getAllLiquidityTicks,cr,deserializeTickmap(Vr[poolKeyToString(cr)]));if(kt.length===0){const ro=createPlaceholderLiquidityPlot(_e.payload.isXtoY,0,cr.fee_tier.tick_spacing,st,dt);yield*put(actions$2.setPlotTicks(ro));return}const qt=createLiquidityPlot(kt,cr.fee_tier.tick_spacing,gr,st,dt);yield put(actions$2.setPlotTicks(qt))}catch(kt){console.log(kt);const qt=createPlaceholderLiquidityPlot(_e.payload.isXtoY,10,cr.fee_tier.tick_spacing,st,dt);yield*put(actions$2.setErrorPlotTicks(qt))}}function*handleClaimFee(_e){const{index:cr,addressTokenX:gr,addressTokenY:Cr}=_e.payload,Vr=yield*select(address),tt=createLoaderKey(),nt=createLoaderKey();try{yield put(actions$4.add({message:"Claiming fee...",variant:"pending",persist:!0,key:tt})),yield put(actions$4.add({message:"Signing transaction...",variant:"pending",persist:!0,key:nt})),closeSnackbar(nt),yield put(actions$4.remove(nt));const st=yield*call$1(claimFee,cr,Vr);closeSnackbar(tt),yield put(actions$4.remove(tt)),yield put(actions$4.add({message:"Fee successfully claimed",variant:"success",persist:!1,txid:st})),yield put(actions$2.getSinglePosition(cr)),yield*call$1(fetchBalances,[gr===ORAI.address?Cr:gr])}catch(st){closeSnackbar(nt),yield put(actions$4.remove(nt)),closeSnackbar(tt),yield put(actions$4.remove(tt)),st.message?yield put(actions$4.add({message:st.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to claim fee. Please try again.",variant:"error",persist:!1})),console.log(st)}}function*handleGetSinglePosition(_e){const cr=yield*select(address),gr=yield*call$1(getPosition,_e.payload,cr);yield*put(actions$2.setSinglePosition({index:_e.payload,position:gr})),yield*put(actions$2.getCurrentPositionTicks({poolKey:gr.pool_key,lowerTickIndex:BigInt(gr.lower_tick_index),upperTickIndex:BigInt(gr.upper_tick_index)})),yield*put(actions$1.getPoolsDataForList({poolKeys:[gr.pool_key],listType:ListType.POSITIONS}))}function*handleClosePosition(_e){const cr=yield*select(address),{addressTokenX:gr,addressTokenY:Cr,onSuccess:Vr,positionIndex:tt}=_e.payload,nt=createLoaderKey(),st=createLoaderKey();try{yield put(actions$4.add({message:"Removing position...",variant:"pending",persist:!0,key:nt}));const dt=yield*call$1(removePosition,tt,cr);closeSnackbar(nt),yield put(actions$4.remove(nt)),yield put(actions$4.add({message:"Position successfully removed",variant:"success",persist:!1,txid:dt})),yield*put(actions$2.getPositionsList()),Vr(),yield*call$1(fetchBalances,[gr,Cr])}catch(dt){closeSnackbar(st),yield put(actions$4.remove(st)),closeSnackbar(nt),yield put(actions$4.remove(nt)),dt.message?yield put(actions$4.add({message:dt.message,variant:"error",persist:!1})):yield put(actions$4.add({message:"Failed to close position. Please try again.",variant:"error",persist:!1})),console.log(dt)}}function*initPositionHandler(){yield*takeEvery(actions$2.initPosition,handleInitPosition)}function*getPositionsListHandler(){yield*takeLatest(actions$2.getPositionsList,handleGetPositionsList)}function*getCurrentPositionTicksHandler(){yield*takeEvery(actions$2.getCurrentPositionTicks,handleGetCurrentPositionTicks)}function*getCurrentPlotTicksHandler(){yield*takeLatest(actions$2.getCurrentPlotTicks,handleGetCurrentPlotTicks)}function*claimFeeHandler(){yield*takeEvery(actions$2.claimFee,handleClaimFee)}function*getSinglePositionHandler(){yield*takeEvery(actions$2.getSinglePosition,handleGetSinglePosition)}function*closePositionHandler(){yield*takeEvery(actions$2.closePosition,handleClosePosition)}function*positionsSaga(){yield all([initPositionHandler,getPositionsListHandler,getCurrentPositionTicksHandler,getCurrentPlotTicksHandler,claimFeeHandler,getSinglePositionHandler,closePositionHandler].map(spawn))}function*handleSwap(_e){const cr=yield*select(address),{poolKey:gr,tokenFrom:Cr,slippage:Vr,amountIn:tt,amountOut:nt,byAmountIn:st,estimatedPriceAfterSwap:dt,tokenTo:kt}=_e.payload;if(gr.fee_tier.tick_spacing==0)return yield*call$1(handleSwapWithMultiHop,_e);if(!gr)return;if(isNativeToken(gr.token_x)||isNativeToken(gr.token_y))return yield*call$1(handleSwapWithNative,_e);const qt=createLoaderKey(),ro=createLoaderKey();try{const ht=yield*select(tokens);yield put(actions$4.add({message:"Swapping tokens...",variant:"pending",persist:!0,key:qt}));const po=ht[gr.token_x],no=ht[gr.token_y],Nt=Cr.toString()===gr.token_x,eo=[],Wt=calculateSqrtPriceAfterSlippage(dt,Vr,!Nt);let St=Vr?calculateAmountInWithSlippage(nt,Wt,Nt,BigInt(gr.fee_tier.fee)):tt;if(St0n?qt.amountOut:0n:qt.amountOut>0n?qt.amountOut:U128MAX,po=0,no=0n;const Nt=[];for(const eo of kt){const Wt=cr.toString()===eo.pool_key.token_x,St=tt[poolKeyToString(eo.pool_key)].pool,Ot={current_tick_index:St.current_tick_index,fee_growth_global_x:BigInt(St.fee_growth_global_x),fee_growth_global_y:BigInt(St.fee_growth_global_y),fee_protocol_token_x:BigInt(St.fee_protocol_token_x),fee_protocol_token_y:BigInt(St.fee_protocol_token_y),fee_receiver:St.fee_receiver,liquidity:BigInt(St.liquidity),last_timestamp:Number(St.last_timestamp.toFixed(0)),sqrt_price:BigInt(St.sqrt_price),start_timestamp:Number(St.start_timestamp.toFixed(0))};try{const uo=simulateSwap$1(deserializeTickmap(st[poolKeyToString(eo.pool_key)]),eo.pool_key.fee_tier,Ot,dt[poolKeyToString(eo.pool_key)],Wt,Cr,Vr,Wt?MIN_SQRT_PRICE:MAX_SQRT_PRICE);if(uo.global_insufficient_liquidity){Nt.push(SwapError.InsufficientLiquidity);continue}if(uo.max_ticks_crossed){Nt.push(SwapError.MaxTicksCrossed);continue}if(uo.state_outdated){Nt.push(SwapError.StateOutdated);continue}if(uo.amount_out===0n){Nt.push(SwapError.AmountIsZero);continue}(Vr?uo.amount_out>ht:uo.amount_in+uo.fee=ht&&(ro=qt.poolKey,ht=qt.amountOut,po=qt.priceImpact,no=qt.targetSqrtPrice),yield put(actions.setSimulateResult({poolKey:ro,amountOut:ht,priceImpact:po,targetSqrtPrice:no,errors:Nt}))}catch(cr){console.log(cr)}}function*swapHandler(){yield*takeEvery(actions.swap,handleSwap)}function*getSimulateResultHandler(){yield*takeEvery(actions.getSimulateResult,handleGetSimulateResult)}function*swapSaga(){yield all([swapHandler,getSimulateResultHandler].map(spawn))}function*rootSaga(){yield all$1([walletSaga,poolsSaga,positionsSaga,swapSaga].map(spawn$1))}const isSerializable=_e=>typeof _e=="bigint"||isPlain(_e),getEntries=_e=>typeof _e=="bigint"?[["bigint",_e.toString()]]:Object.entries(_e),configureAppStore=(_e={})=>{const cr=sagaMiddlewareFactory({}),gr=[cr],Cr=configureStore({reducer:combinedReducers,middleware:Vr=>Vr({serializableCheck:{isSerializable,getEntries,ignoredActions:["positions/closePosition","pools/setTickMaps"]}}).concat(gr),preloadedState:_e,devTools:{serialize:{replacer:(Vr,tt)=>typeof tt=="bigint"?tt.toString():tt,options:!0}}});return cr.run(rootSaga),Cr},store$4=configureAppStore();function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(_e){for(var cr=1;cr"u")throw new Error(cr)}function warning(_e,cr){if(!_e){typeof console<"u"&&console.warn(cr);try{throw new Error(cr)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(_e,cr){return{usr:_e.state,key:_e.key,idx:cr}}function createLocation(_e,cr,gr,Cr){return gr===void 0&&(gr=null),_extends$3({pathname:typeof _e=="string"?_e:_e.pathname,search:"",hash:""},typeof cr=="string"?parsePath(cr):cr,{state:gr,key:cr&&cr.key||Cr||createKey()})}function createPath(_e){let{pathname:cr="/",search:gr="",hash:Cr=""}=_e;return gr&&gr!=="?"&&(cr+=gr.charAt(0)==="?"?gr:"?"+gr),Cr&&Cr!=="#"&&(cr+=Cr.charAt(0)==="#"?Cr:"#"+Cr),cr}function parsePath(_e){let cr={};if(_e){let gr=_e.indexOf("#");gr>=0&&(cr.hash=_e.substr(gr),_e=_e.substr(0,gr));let Cr=_e.indexOf("?");Cr>=0&&(cr.search=_e.substr(Cr),_e=_e.substr(0,Cr)),_e&&(cr.pathname=_e)}return cr}function getUrlBasedHistory(_e,cr,gr,Cr){Cr===void 0&&(Cr={});let{window:Vr=document.defaultView,v5Compat:tt=!1}=Cr,nt=Vr.history,st=Action.Pop,dt=null,kt=qt();kt==null&&(kt=0,nt.replaceState(_extends$3({},nt.state,{idx:kt}),""));function qt(){return(nt.state||{idx:null}).idx}function ro(){st=Action.Pop;let eo=qt(),Wt=eo==null?null:eo-kt;kt=eo,dt&&dt({action:st,location:Nt.location,delta:Wt})}function ht(eo,Wt){st=Action.Push;let St=createLocation(Nt.location,eo,Wt);kt=qt()+1;let Ot=getHistoryState(St,kt),uo=Nt.createHref(St);try{nt.pushState(Ot,"",uo)}catch(go){if(go instanceof DOMException&&go.name==="DataCloneError")throw go;Vr.location.assign(uo)}tt&&dt&&dt({action:st,location:Nt.location,delta:1})}function po(eo,Wt){st=Action.Replace;let St=createLocation(Nt.location,eo,Wt);kt=qt();let Ot=getHistoryState(St,kt),uo=Nt.createHref(St);nt.replaceState(Ot,"",uo),tt&&dt&&dt({action:st,location:Nt.location,delta:0})}function no(eo){let Wt=Vr.location.origin!=="null"?Vr.location.origin:Vr.location.href,St=typeof eo=="string"?eo:createPath(eo);return St=St.replace(/ $/,"%20"),invariant(Wt,"No window.location.(origin|href) available to create URL for href: "+St),new URL(St,Wt)}let Nt={get action(){return st},get location(){return _e(Vr,nt)},listen(eo){if(dt)throw new Error("A history only accepts one active listener");return Vr.addEventListener(PopStateEventType,ro),dt=eo,()=>{Vr.removeEventListener(PopStateEventType,ro),dt=null}},createHref(eo){return cr(Vr,eo)},createURL:no,encodeLocation(eo){let Wt=no(eo);return{pathname:Wt.pathname,search:Wt.search,hash:Wt.hash}},push:ht,replace:po,go(eo){return nt.go(eo)}};return Nt}var ResultType;(function(_e){_e.data="data",_e.deferred="deferred",_e.redirect="redirect",_e.error="error"})(ResultType||(ResultType={}));const immutableRouteKeys=new Set(["lazy","caseSensitive","path","id","index","children"]);function isIndexRoute(_e){return _e.index===!0}function convertRoutesToDataRoutes(_e,cr,gr,Cr){return gr===void 0&&(gr=[]),Cr===void 0&&(Cr={}),_e.map((Vr,tt)=>{let nt=[...gr,tt],st=typeof Vr.id=="string"?Vr.id:nt.join("-");if(invariant(Vr.index!==!0||!Vr.children,"Cannot specify children on an index route"),invariant(!Cr[st],'Found a route id collision on id "'+st+`". Route id's must be globally unique within Data Router usages`),isIndexRoute(Vr)){let dt=_extends$3({},Vr,cr(Vr),{id:st});return Cr[st]=dt,dt}else{let dt=_extends$3({},Vr,cr(Vr),{id:st,children:void 0});return Cr[st]=dt,Vr.children&&(dt.children=convertRoutesToDataRoutes(Vr.children,cr,nt,Cr)),dt}})}function matchRoutes(_e,cr,gr){gr===void 0&&(gr="/");let Cr=typeof cr=="string"?parsePath(cr):cr,Vr=stripBasename(Cr.pathname||"/",gr);if(Vr==null)return null;let tt=flattenRoutes(_e);rankRouteBranches(tt);let nt=null;for(let st=0;nt==null&&st{let dt={relativePath:st===void 0?tt.path||"":st,caseSensitive:tt.caseSensitive===!0,childrenIndex:nt,route:tt};dt.relativePath.startsWith("/")&&(invariant(dt.relativePath.startsWith(Cr),'Absolute route path "'+dt.relativePath+'" nested under path '+('"'+Cr+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),dt.relativePath=dt.relativePath.slice(Cr.length));let kt=joinPaths([Cr,dt.relativePath]),qt=gr.concat(dt);tt.children&&tt.children.length>0&&(invariant(tt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+kt+'".')),flattenRoutes(tt.children,cr,qt,kt)),!(tt.path==null&&!tt.index)&&cr.push({path:kt,score:computeScore(kt,tt.index),routesMeta:qt})};return _e.forEach((tt,nt)=>{var st;if(tt.path===""||!((st=tt.path)!=null&&st.includes("?")))Vr(tt,nt);else for(let dt of explodeOptionalSegments(tt.path))Vr(tt,nt,dt)}),cr}function explodeOptionalSegments(_e){let cr=_e.split("/");if(cr.length===0)return[];let[gr,...Cr]=cr,Vr=gr.endsWith("?"),tt=gr.replace(/\?$/,"");if(Cr.length===0)return Vr?[tt,""]:[tt];let nt=explodeOptionalSegments(Cr.join("/")),st=[];return st.push(...nt.map(dt=>dt===""?tt:[tt,dt].join("/"))),Vr&&st.push(...nt),st.map(dt=>_e.startsWith("/")&&dt===""?"/":dt)}function rankRouteBranches(_e){_e.sort((cr,gr)=>cr.score!==gr.score?gr.score-cr.score:compareIndexes(cr.routesMeta.map(Cr=>Cr.childrenIndex),gr.routesMeta.map(Cr=>Cr.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=_e=>_e==="*";function computeScore(_e,cr){let gr=_e.split("/"),Cr=gr.length;return gr.some(isSplat)&&(Cr+=splatPenalty),cr&&(Cr+=indexRouteValue),gr.filter(Vr=>!isSplat(Vr)).reduce((Vr,tt)=>Vr+(paramRe.test(tt)?dynamicSegmentValue:tt===""?emptySegmentValue:staticSegmentValue),Cr)}function compareIndexes(_e,cr){return _e.length===cr.length&&_e.slice(0,-1).every((gr,Cr)=>gr===cr[Cr])?_e[_e.length-1]-cr[cr.length-1]:0}function matchRouteBranch(_e,cr){let{routesMeta:gr}=_e,Cr={},Vr="/",tt=[];for(let nt=0;nt{let{paramName:ro,isOptional:ht}=kt;if(ro==="*"){let no=st[qt]||"";nt=tt.slice(0,tt.length-no.length).replace(/(.)\/+$/,"$1")}const po=st[qt];return ht&&!po?dt[ro]=void 0:dt[ro]=(po||"").replace(/%2F/g,"/"),dt},{}),pathname:tt,pathnameBase:nt,pattern:_e}}function compilePath(_e,cr,gr){cr===void 0&&(cr=!1),gr===void 0&&(gr=!0),warning(_e==="*"||!_e.endsWith("*")||_e.endsWith("/*"),'Route path "'+_e+'" will be treated as if it were '+('"'+_e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+_e.replace(/\*$/,"/*")+'".'));let Cr=[],Vr="^"+_e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(tt,nt,st)=>(Cr.push({paramName:nt,isOptional:st!=null}),st?"/?([^\\/]+)?":"/([^\\/]+)"));return _e.endsWith("*")?(Cr.push({paramName:"*"}),Vr+=_e==="*"||_e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):gr?Vr+="\\/*$":_e!==""&&_e!=="/"&&(Vr+="(?:(?=\\/|$))"),[new RegExp(Vr,cr?void 0:"i"),Cr]}function decodePath(_e){try{return _e.split("/").map(cr=>decodeURIComponent(cr).replace(/\//g,"%2F")).join("/")}catch(cr){return warning(!1,'The URL path "'+_e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+cr+").")),_e}}function stripBasename(_e,cr){if(cr==="/")return _e;if(!_e.toLowerCase().startsWith(cr.toLowerCase()))return null;let gr=cr.endsWith("/")?cr.length-1:cr.length,Cr=_e.charAt(gr);return Cr&&Cr!=="/"?null:_e.slice(gr)||"/"}function resolvePath(_e,cr){cr===void 0&&(cr="/");let{pathname:gr,search:Cr="",hash:Vr=""}=typeof _e=="string"?parsePath(_e):_e;return{pathname:gr?gr.startsWith("/")?gr:resolvePathname(gr,cr):cr,search:normalizeSearch(Cr),hash:normalizeHash(Vr)}}function resolvePathname(_e,cr){let gr=cr.replace(/\/+$/,"").split("/");return _e.split("/").forEach(Cr=>{Cr===".."?gr.length>1&&gr.pop():Cr!=="."&&gr.push(Cr)}),gr.length>1?gr.join("/"):"/"}function getInvalidPathError(_e,cr,gr,Cr){return"Cannot include a '"+_e+"' character in a manually specified "+("`to."+cr+"` field ["+JSON.stringify(Cr)+"]. Please separate it out to the ")+("`to."+gr+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(_e){return _e.filter((cr,gr)=>gr===0||cr.route.path&&cr.route.path.length>0)}function getResolveToMatches(_e,cr){let gr=getPathContributingMatches(_e);return cr?gr.map((Cr,Vr)=>Vr===_e.length-1?Cr.pathname:Cr.pathnameBase):gr.map(Cr=>Cr.pathnameBase)}function resolveTo(_e,cr,gr,Cr){Cr===void 0&&(Cr=!1);let Vr;typeof _e=="string"?Vr=parsePath(_e):(Vr=_extends$3({},_e),invariant(!Vr.pathname||!Vr.pathname.includes("?"),getInvalidPathError("?","pathname","search",Vr)),invariant(!Vr.pathname||!Vr.pathname.includes("#"),getInvalidPathError("#","pathname","hash",Vr)),invariant(!Vr.search||!Vr.search.includes("#"),getInvalidPathError("#","search","hash",Vr)));let tt=_e===""||Vr.pathname==="",nt=tt?"/":Vr.pathname,st;if(nt==null)st=gr;else{let ro=cr.length-1;if(!Cr&&nt.startsWith("..")){let ht=nt.split("/");for(;ht[0]==="..";)ht.shift(),ro-=1;Vr.pathname=ht.join("/")}st=ro>=0?cr[ro]:"/"}let dt=resolvePath(Vr,st),kt=nt&&nt!=="/"&&nt.endsWith("/"),qt=(tt||nt===".")&&gr.endsWith("/");return!dt.pathname.endsWith("/")&&(kt||qt)&&(dt.pathname+="/"),dt}const joinPaths=_e=>_e.join("/").replace(/\/\/+/g,"/"),normalizePathname=_e=>_e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=_e=>!_e||_e==="?"?"":_e.startsWith("?")?_e:"?"+_e,normalizeHash=_e=>!_e||_e==="#"?"":_e.startsWith("#")?_e:"#"+_e;class ErrorResponseImpl{constructor(cr,gr,Cr,Vr){Vr===void 0&&(Vr=!1),this.status=cr,this.statusText=gr||"",this.internal=Vr,Cr instanceof Error?(this.data=Cr.toString(),this.error=Cr):this.data=Cr}}function isRouteErrorResponse(_e){return _e!=null&&typeof _e.status=="number"&&typeof _e.statusText=="string"&&typeof _e.internal=="boolean"&&"data"in _e}const validMutationMethodsArr=["post","put","patch","delete"],validMutationMethods=new Set(validMutationMethodsArr),validRequestMethodsArr=["get",...validMutationMethodsArr],validRequestMethods=new Set(validRequestMethodsArr),redirectStatusCodes=new Set([301,302,303,307,308]),redirectPreserveMethodStatusCodes=new Set([307,308]),IDLE_NAVIGATION={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_FETCHER={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_BLOCKER={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ABSOLUTE_URL_REGEX$1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,defaultMapRouteProperties=_e=>({hasErrorBoundary:!!_e.hasErrorBoundary}),TRANSITIONS_STORAGE_KEY="remix-router-transitions";function createRouter(_e){const cr=_e.window?_e.window:typeof window<"u"?window:void 0,gr=typeof cr<"u"&&typeof cr.document<"u"&&typeof cr.document.createElement<"u",Cr=!gr;invariant(_e.routes.length>0,"You must provide a non-empty routes array to createRouter");let Vr;if(_e.mapRouteProperties)Vr=_e.mapRouteProperties;else if(_e.detectErrorBoundary){let hs=_e.detectErrorBoundary;Vr=Ss=>({hasErrorBoundary:hs(Ss)})}else Vr=defaultMapRouteProperties;let tt={},nt=convertRoutesToDataRoutes(_e.routes,Vr,void 0,tt),st,dt=_e.basename||"/",kt=_e.unstable_dataStrategy||defaultDataStrategy,qt=_extends$3({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},_e.future),ro=null,ht=new Set,po=null,no=null,Nt=null,eo=_e.hydrationData!=null,Wt=matchRoutes(nt,_e.history.location,dt),St=null;if(Wt==null){let hs=getInternalRouterError(404,{pathname:_e.history.location.pathname}),{matches:Ss,route:Rs}=getShortCircuitMatches(nt);Wt=Ss,St={[Rs.id]:hs}}let Ot,uo=Wt.some(hs=>hs.route.lazy),go=Wt.some(hs=>hs.route.loader);if(uo)Ot=!1;else if(!go)Ot=!0;else if(qt.v7_partialHydration){let hs=_e.hydrationData?_e.hydrationData.loaderData:null,Ss=_e.hydrationData?_e.hydrationData.errors:null,Rs=e0=>e0.route.loader?typeof e0.route.loader=="function"&&e0.route.loader.hydrate===!0?!1:hs&&hs[e0.route.id]!==void 0||Ss&&Ss[e0.route.id]!==void 0:!0;if(Ss){let e0=Wt.findIndex(g0=>Ss[g0.route.id]!==void 0);Ot=Wt.slice(0,e0+1).every(Rs)}else Ot=Wt.every(Rs)}else Ot=_e.hydrationData!=null;let bo,oo={historyAction:_e.history.action,location:_e.history.location,matches:Wt,initialized:Ot,navigation:IDLE_NAVIGATION,restoreScrollPosition:_e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:_e.hydrationData&&_e.hydrationData.loaderData||{},actionData:_e.hydrationData&&_e.hydrationData.actionData||null,errors:_e.hydrationData&&_e.hydrationData.errors||St,fetchers:new Map,blockers:new Map},Ro=Action.Pop,pt=!1,lo,so=!1,wo=new Map,xt=null,Mt=!1,ho=!1,io=[],co=[],mo=new Map,Bo=0,So=-1,Tt=new Map,vo=new Set,Co=new Map,xo=new Map,Po=new Set,Wo=new Map,Yn=new Map,ba=!1;function _a(){if(ro=_e.history.listen(hs=>{let{action:Ss,location:Rs,delta:e0}=hs;if(ba){ba=!1;return}warning(Yn.size===0||e0!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let g0=Qo({currentLocation:oo.location,nextLocation:Rs,historyAction:Ss});if(g0&&e0!=null){ba=!0,_e.history.go(e0*-1),fo(g0,{state:"blocked",location:Rs,proceed(){fo(g0,{state:"proceeding",proceed:void 0,reset:void 0,location:Rs}),_e.history.go(e0)},reset(){let E0=new Map(oo.blockers);E0.set(g0,IDLE_BLOCKER),ss({blockers:E0})}});return}return Vo(Ss,Rs)}),gr){restoreAppliedTransitions(cr,wo);let hs=()=>persistAppliedTransitions(cr,wo);cr.addEventListener("pagehide",hs),xt=()=>cr.removeEventListener("pagehide",hs)}return oo.initialized||Vo(Action.Pop,oo.location,{initialHydration:!0}),bo}function $s(){ro&&ro(),xt&&xt(),ht.clear(),lo&&lo.abort(),oo.fetchers.forEach((hs,Ss)=>Fs(Ss)),oo.blockers.forEach((hs,Ss)=>n0(Ss))}function vs(hs){return ht.add(hs),()=>ht.delete(hs)}function ss(hs,Ss){Ss===void 0&&(Ss={}),oo=_extends$3({},oo,hs);let Rs=[],e0=[];qt.v7_fetcherPersist&&oo.fetchers.forEach((g0,E0)=>{g0.state==="idle"&&(Po.has(E0)?e0.push(E0):Rs.push(E0))}),[...ht].forEach(g0=>g0(oo,{deletedFetchers:e0,unstable_viewTransitionOpts:Ss.viewTransitionOpts,unstable_flushSync:Ss.flushSync===!0})),qt.v7_fetcherPersist&&(Rs.forEach(g0=>oo.fetchers.delete(g0)),e0.forEach(g0=>Fs(g0)))}function Ts(hs,Ss,Rs){var e0,g0;let{flushSync:E0}=Rs===void 0?{}:Rs,Vs=oo.actionData!=null&&oo.navigation.formMethod!=null&&isMutationMethod(oo.navigation.formMethod)&&oo.navigation.state==="loading"&&((e0=hs.state)==null?void 0:e0._isRedirect)!==!0,Bs;Ss.actionData?Object.keys(Ss.actionData).length>0?Bs=Ss.actionData:Bs=null:Vs?Bs=oo.actionData:Bs=null;let Gs=Ss.loaderData?mergeLoaderData(oo.loaderData,Ss.loaderData,Ss.matches||[],Ss.errors):oo.loaderData,A0=oo.blockers;A0.size>0&&(A0=new Map(A0),A0.forEach((P0,M0)=>A0.set(M0,IDLE_BLOCKER)));let y0=pt===!0||oo.navigation.formMethod!=null&&isMutationMethod(oo.navigation.formMethod)&&((g0=hs.state)==null?void 0:g0._isRedirect)!==!0;st&&(nt=st,st=void 0),Mt||Ro===Action.Pop||(Ro===Action.Push?_e.history.push(hs,hs.state):Ro===Action.Replace&&_e.history.replace(hs,hs.state));let s0;if(Ro===Action.Pop){let P0=wo.get(oo.location.pathname);P0&&P0.has(hs.pathname)?s0={currentLocation:oo.location,nextLocation:hs}:wo.has(hs.pathname)&&(s0={currentLocation:hs,nextLocation:oo.location})}else if(so){let P0=wo.get(oo.location.pathname);P0?P0.add(hs.pathname):(P0=new Set([hs.pathname]),wo.set(oo.location.pathname,P0)),s0={currentLocation:oo.location,nextLocation:hs}}ss(_extends$3({},Ss,{actionData:Bs,loaderData:Gs,historyAction:Ro,location:hs,initialized:!0,navigation:IDLE_NAVIGATION,revalidation:"idle",restoreScrollPosition:H0(hs,Ss.matches||oo.matches),preventScrollReset:y0,blockers:A0}),{viewTransitionOpts:s0,flushSync:E0===!0}),Ro=Action.Pop,pt=!1,so=!1,Mt=!1,ho=!1,io=[],co=[]}async function qo(hs,Ss){if(typeof hs=="number"){_e.history.go(hs);return}let Rs=normalizeTo(oo.location,oo.matches,dt,qt.v7_prependBasename,hs,qt.v7_relativeSplatPath,Ss==null?void 0:Ss.fromRouteId,Ss==null?void 0:Ss.relative),{path:e0,submission:g0,error:E0}=normalizeNavigateOptions(qt.v7_normalizeFormMethod,!1,Rs,Ss),Vs=oo.location,Bs=createLocation(oo.location,e0,Ss&&Ss.state);Bs=_extends$3({},Bs,_e.history.encodeLocation(Bs));let Gs=Ss&&Ss.replace!=null?Ss.replace:void 0,A0=Action.Push;Gs===!0?A0=Action.Replace:Gs===!1||g0!=null&&isMutationMethod(g0.formMethod)&&g0.formAction===oo.location.pathname+oo.location.search&&(A0=Action.Replace);let y0=Ss&&"preventScrollReset"in Ss?Ss.preventScrollReset===!0:void 0,s0=(Ss&&Ss.unstable_flushSync)===!0,P0=Qo({currentLocation:Vs,nextLocation:Bs,historyAction:A0});if(P0){fo(P0,{state:"blocked",location:Bs,proceed(){fo(P0,{state:"proceeding",proceed:void 0,reset:void 0,location:Bs}),qo(hs,Ss)},reset(){let M0=new Map(oo.blockers);M0.set(P0,IDLE_BLOCKER),ss({blockers:M0})}});return}return await Vo(A0,Bs,{submission:g0,pendingError:E0,preventScrollReset:y0,replace:Ss&&Ss.replace,enableViewTransition:Ss&&Ss.unstable_viewTransition,flushSync:s0})}function Js(){if(ms(),ss({revalidation:"loading"}),oo.navigation.state!=="submitting"){if(oo.navigation.state==="idle"){Vo(oo.historyAction,oo.location,{startUninterruptedRevalidation:!0});return}Vo(Ro||oo.historyAction,oo.navigation.location,{overrideNavigation:oo.navigation})}}async function Vo(hs,Ss,Rs){lo&&lo.abort(),lo=null,Ro=hs,Mt=(Rs&&Rs.startUninterruptedRevalidation)===!0,gs(oo.location,oo.matches),pt=(Rs&&Rs.preventScrollReset)===!0,so=(Rs&&Rs.enableViewTransition)===!0;let e0=st||nt,g0=Rs&&Rs.overrideNavigation,E0=matchRoutes(e0,Ss,dt),Vs=(Rs&&Rs.flushSync)===!0;if(!E0){let P0=getInternalRouterError(404,{pathname:Ss.pathname}),{matches:M0,route:O0}=getShortCircuitMatches(e0);Ko(),Ts(Ss,{matches:M0,loaderData:{},errors:{[O0.id]:P0}},{flushSync:Vs});return}if(oo.initialized&&!ho&&isHashChangeOnly(oo.location,Ss)&&!(Rs&&Rs.submission&&isMutationMethod(Rs.submission.formMethod))){Ts(Ss,{matches:E0},{flushSync:Vs});return}lo=new AbortController;let Bs=createClientSideRequest(_e.history,Ss,lo.signal,Rs&&Rs.submission),Gs;if(Rs&&Rs.pendingError)Gs=[findNearestBoundary(E0).route.id,{type:ResultType.error,error:Rs.pendingError}];else if(Rs&&Rs.submission&&isMutationMethod(Rs.submission.formMethod)){let P0=await zo(Bs,Ss,Rs.submission,E0,{replace:Rs.replace,flushSync:Vs});if(P0.shortCircuited)return;Gs=P0.pendingActionResult,g0=getLoadingNavigation(Ss,Rs.submission),Vs=!1,Bs=createClientSideRequest(_e.history,Bs.url,Bs.signal)}let{shortCircuited:A0,loaderData:y0,errors:s0}=await $n(Bs,Ss,E0,g0,Rs&&Rs.submission,Rs&&Rs.fetcherSubmission,Rs&&Rs.replace,Rs&&Rs.initialHydration===!0,Vs,Gs);A0||(lo=null,Ts(Ss,_extends$3({matches:E0},getActionDataForCommit(Gs),{loaderData:y0,errors:s0})))}async function zo(hs,Ss,Rs,e0,g0){g0===void 0&&(g0={}),ms();let E0=getSubmittingNavigation(Ss,Rs);ss({navigation:E0},{flushSync:g0.flushSync===!0});let Vs,Bs=getTargetMatch(e0,Ss);if(!Bs.route.action&&!Bs.route.lazy)Vs={type:ResultType.error,error:getInternalRouterError(405,{method:hs.method,pathname:Ss.pathname,routeId:Bs.route.id})};else if(Vs=(await Es("action",hs,[Bs],e0))[0],hs.signal.aborted)return{shortCircuited:!0};if(isRedirectResult(Vs)){let Gs;return g0&&g0.replace!=null?Gs=g0.replace:Gs=normalizeRedirectLocation(Vs.response.headers.get("Location"),new URL(hs.url),dt)===oo.location.pathname+oo.location.search,await fs(hs,Vs,{submission:Rs,replace:Gs}),{shortCircuited:!0}}if(isDeferredResult(Vs))throw getInternalRouterError(400,{type:"defer-action"});if(isErrorResult(Vs)){let Gs=findNearestBoundary(e0,Bs.route.id);return(g0&&g0.replace)!==!0&&(Ro=Action.Push),{pendingActionResult:[Gs.route.id,Vs]}}return{pendingActionResult:[Bs.route.id,Vs]}}async function $n(hs,Ss,Rs,e0,g0,E0,Vs,Bs,Gs,A0){let y0=e0||getLoadingNavigation(Ss,g0),s0=g0||E0||getSubmissionFromNavigation(y0),P0=st||nt,[M0,O0]=getMatchesToLoad(_e.history,oo,Rs,s0,Ss,qt.v7_partialHydration&&Bs===!0,qt.unstable_skipActionErrorRevalidation,ho,io,co,Po,Co,vo,P0,dt,A0);if(Ko(Qs=>!(Rs&&Rs.some(p0=>p0.route.id===Qs))||M0&&M0.some(p0=>p0.route.id===Qs)),So=++Bo,M0.length===0&&O0.length===0){let Qs=R0();return Ts(Ss,_extends$3({matches:Rs,loaderData:{},errors:A0&&isErrorResult(A0[1])?{[A0[0]]:A0[1].error}:null},getActionDataForCommit(A0),Qs?{fetchers:new Map(oo.fetchers)}:{}),{flushSync:Gs}),{shortCircuited:!0}}if(!Mt&&(!qt.v7_partialHydration||!Bs)){O0.forEach(p0=>{let l0=oo.fetchers.get(p0.key),S0=getLoadingFetcher(void 0,l0?l0.data:void 0);oo.fetchers.set(p0.key,S0)});let Qs;A0&&!isErrorResult(A0[1])?Qs={[A0[0]]:A0[1].data}:oo.actionData&&(Object.keys(oo.actionData).length===0?Qs=null:Qs=oo.actionData),ss(_extends$3({navigation:y0},Qs!==void 0?{actionData:Qs}:{},O0.length>0?{fetchers:new Map(oo.fetchers)}:{}),{flushSync:Gs})}O0.forEach(Qs=>{mo.has(Qs.key)&&v0(Qs.key),Qs.controller&&mo.set(Qs.key,Qs.controller)});let Sn=()=>O0.forEach(Qs=>v0(Qs.key));lo&&lo.signal.addEventListener("abort",Sn);let{loaderResults:T0,fetcherResults:An}=await Us(oo.matches,Rs,M0,O0,hs);if(hs.signal.aborted)return{shortCircuited:!0};lo&&lo.signal.removeEventListener("abort",Sn),O0.forEach(Qs=>mo.delete(Qs.key));let Pn=findRedirect([...T0,...An]);if(Pn){if(Pn.idx>=M0.length){let Qs=O0[Pn.idx-M0.length].key;vo.add(Qs)}return await fs(hs,Pn.result,{replace:Vs}),{shortCircuited:!0}}let{loaderData:Ln,errors:qn}=processLoaderData(oo,Rs,M0,T0,A0,O0,An,Wo);Wo.forEach((Qs,p0)=>{Qs.subscribe(l0=>{(l0||Qs.done)&&Wo.delete(p0)})}),qt.v7_partialHydration&&Bs&&oo.errors&&Object.entries(oo.errors).filter(Qs=>{let[p0]=Qs;return!M0.some(l0=>l0.route.id===p0)}).forEach(Qs=>{let[p0,l0]=Qs;qn=Object.assign(qn||{},{[p0]:l0})});let na=R0(),ls=D0(So),Ns=na||ls||O0.length>0;return _extends$3({loaderData:Ln,errors:qn},Ns?{fetchers:new Map(oo.fetchers)}:{})}function Tn(hs,Ss,Rs,e0){if(Cr)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");mo.has(hs)&&v0(hs);let g0=(e0&&e0.unstable_flushSync)===!0,E0=st||nt,Vs=normalizeTo(oo.location,oo.matches,dt,qt.v7_prependBasename,Rs,qt.v7_relativeSplatPath,Ss,e0==null?void 0:e0.relative),Bs=matchRoutes(E0,Vs,dt);if(!Bs){ks(hs,Ss,getInternalRouterError(404,{pathname:Vs}),{flushSync:g0});return}let{path:Gs,submission:A0,error:y0}=normalizeNavigateOptions(qt.v7_normalizeFormMethod,!0,Vs,e0);if(y0){ks(hs,Ss,y0,{flushSync:g0});return}let s0=getTargetMatch(Bs,Gs);if(pt=(e0&&e0.preventScrollReset)===!0,A0&&isMutationMethod(A0.formMethod)){ko(hs,Ss,Gs,s0,Bs,g0,A0);return}Co.set(hs,{routeId:Ss,path:Gs}),es(hs,Ss,Gs,s0,Bs,g0,A0)}async function ko(hs,Ss,Rs,e0,g0,E0,Vs){if(ms(),Co.delete(hs),!e0.route.action&&!e0.route.lazy){let l0=getInternalRouterError(405,{method:Vs.formMethod,pathname:Rs,routeId:Ss});ks(hs,Ss,l0,{flushSync:E0});return}let Bs=oo.fetchers.get(hs);bs(hs,getSubmittingFetcher(Vs,Bs),{flushSync:E0});let Gs=new AbortController,A0=createClientSideRequest(_e.history,Rs,Gs.signal,Vs);mo.set(hs,Gs);let y0=Bo,s0=(await Es("action",A0,[e0],g0))[0];if(A0.signal.aborted){mo.get(hs)===Gs&&mo.delete(hs);return}if(qt.v7_fetcherPersist&&Po.has(hs)){if(isRedirectResult(s0)||isErrorResult(s0)){bs(hs,getDoneFetcher(void 0));return}}else{if(isRedirectResult(s0))if(mo.delete(hs),So>y0){bs(hs,getDoneFetcher(void 0));return}else return vo.add(hs),bs(hs,getLoadingFetcher(Vs)),fs(A0,s0,{fetcherSubmission:Vs});if(isErrorResult(s0)){ks(hs,Ss,s0.error);return}}if(isDeferredResult(s0))throw getInternalRouterError(400,{type:"defer-action"});let P0=oo.navigation.location||oo.location,M0=createClientSideRequest(_e.history,P0,Gs.signal),O0=st||nt,Sn=oo.navigation.state!=="idle"?matchRoutes(O0,oo.navigation.location,dt):oo.matches;invariant(Sn,"Didn't find any matches after fetcher action");let T0=++Bo;Tt.set(hs,T0);let An=getLoadingFetcher(Vs,s0.data);oo.fetchers.set(hs,An);let[Pn,Ln]=getMatchesToLoad(_e.history,oo,Sn,Vs,P0,!1,qt.unstable_skipActionErrorRevalidation,ho,io,co,Po,Co,vo,O0,dt,[e0.route.id,s0]);Ln.filter(l0=>l0.key!==hs).forEach(l0=>{let S0=l0.key,yl=oo.fetchers.get(S0),Vt=getLoadingFetcher(void 0,yl?yl.data:void 0);oo.fetchers.set(S0,Vt),mo.has(S0)&&v0(S0),l0.controller&&mo.set(S0,l0.controller)}),ss({fetchers:new Map(oo.fetchers)});let qn=()=>Ln.forEach(l0=>v0(l0.key));Gs.signal.addEventListener("abort",qn);let{loaderResults:na,fetcherResults:ls}=await Us(oo.matches,Sn,Pn,Ln,M0);if(Gs.signal.aborted)return;Gs.signal.removeEventListener("abort",qn),Tt.delete(hs),mo.delete(hs),Ln.forEach(l0=>mo.delete(l0.key));let Ns=findRedirect([...na,...ls]);if(Ns){if(Ns.idx>=Pn.length){let l0=Ln[Ns.idx-Pn.length].key;vo.add(l0)}return fs(M0,Ns.result)}let{loaderData:Qs,errors:p0}=processLoaderData(oo,oo.matches,Pn,na,void 0,Ln,ls,Wo);if(oo.fetchers.has(hs)){let l0=getDoneFetcher(s0.data);oo.fetchers.set(hs,l0)}D0(T0),oo.navigation.state==="loading"&&T0>So?(invariant(Ro,"Expected pending action"),lo&&lo.abort(),Ts(oo.navigation.location,{matches:Sn,loaderData:Qs,errors:p0,fetchers:new Map(oo.fetchers)})):(ss({errors:p0,loaderData:mergeLoaderData(oo.loaderData,Qs,Sn,p0),fetchers:new Map(oo.fetchers)}),ho=!1)}async function es(hs,Ss,Rs,e0,g0,E0,Vs){let Bs=oo.fetchers.get(hs);bs(hs,getLoadingFetcher(Vs,Bs?Bs.data:void 0),{flushSync:E0});let Gs=new AbortController,A0=createClientSideRequest(_e.history,Rs,Gs.signal);mo.set(hs,Gs);let y0=Bo,s0=(await Es("loader",A0,[e0],g0))[0];if(isDeferredResult(s0)&&(s0=await resolveDeferredData(s0,A0.signal,!0)||s0),mo.get(hs)===Gs&&mo.delete(hs),!A0.signal.aborted){if(Po.has(hs)){bs(hs,getDoneFetcher(void 0));return}if(isRedirectResult(s0))if(So>y0){bs(hs,getDoneFetcher(void 0));return}else{vo.add(hs),await fs(A0,s0);return}if(isErrorResult(s0)){ks(hs,Ss,s0.error);return}invariant(!isDeferredResult(s0),"Unhandled fetcher deferred data"),bs(hs,getDoneFetcher(s0.data))}}async function fs(hs,Ss,Rs){let{submission:e0,fetcherSubmission:g0,replace:E0}=Rs===void 0?{}:Rs;Ss.response.headers.has("X-Remix-Revalidate")&&(ho=!0);let Vs=Ss.response.headers.get("Location");invariant(Vs,"Expected a Location header on the redirect Response"),Vs=normalizeRedirectLocation(Vs,new URL(hs.url),dt);let Bs=createLocation(oo.location,Vs,{_isRedirect:!0});if(gr){let M0=!1;if(Ss.response.headers.has("X-Remix-Reload-Document"))M0=!0;else if(ABSOLUTE_URL_REGEX$1.test(Vs)){const O0=_e.history.createURL(Vs);M0=O0.origin!==cr.location.origin||stripBasename(O0.pathname,dt)==null}if(M0){E0?cr.location.replace(Vs):cr.location.assign(Vs);return}}lo=null;let Gs=E0===!0?Action.Replace:Action.Push,{formMethod:A0,formAction:y0,formEncType:s0}=oo.navigation;!e0&&!g0&&A0&&y0&&s0&&(e0=getSubmissionFromNavigation(oo.navigation));let P0=e0||g0;if(redirectPreserveMethodStatusCodes.has(Ss.response.status)&&P0&&isMutationMethod(P0.formMethod))await Vo(Gs,Bs,{submission:_extends$3({},P0,{formAction:Vs}),preventScrollReset:pt});else{let M0=getLoadingNavigation(Bs,e0);await Vo(Gs,Bs,{overrideNavigation:M0,fetcherSubmission:g0,preventScrollReset:pt})}}async function Es(hs,Ss,Rs,e0){try{let g0=await callDataStrategyImpl(kt,hs,Ss,Rs,e0,tt,Vr);return await Promise.all(g0.map((E0,Vs)=>{if(isRedirectHandlerResult(E0)){let Bs=E0.result;return{type:ResultType.redirect,response:normalizeRelativeRoutingRedirectResponse(Bs,Ss,Rs[Vs].route.id,e0,dt,qt.v7_relativeSplatPath)}}return convertHandlerResultToDataResult(E0)}))}catch(g0){return Rs.map(()=>({type:ResultType.error,error:g0}))}}async function Us(hs,Ss,Rs,e0,g0){let[E0,...Vs]=await Promise.all([Rs.length?Es("loader",g0,Rs,Ss):[],...e0.map(Bs=>{if(Bs.matches&&Bs.match&&Bs.controller){let Gs=createClientSideRequest(_e.history,Bs.path,Bs.controller.signal);return Es("loader",Gs,[Bs.match],Bs.matches).then(A0=>A0[0])}else return Promise.resolve({type:ResultType.error,error:getInternalRouterError(404,{pathname:Bs.path})})})]);return await Promise.all([resolveDeferredResults(hs,Rs,E0,E0.map(()=>g0.signal),!1,oo.loaderData),resolveDeferredResults(hs,e0.map(Bs=>Bs.match),Vs,e0.map(Bs=>Bs.controller?Bs.controller.signal:null),!0)]),{loaderResults:E0,fetcherResults:Vs}}function ms(){ho=!0,io.push(...Ko()),Co.forEach((hs,Ss)=>{mo.has(Ss)&&(co.push(Ss),v0(Ss))})}function bs(hs,Ss,Rs){Rs===void 0&&(Rs={}),oo.fetchers.set(hs,Ss),ss({fetchers:new Map(oo.fetchers)},{flushSync:(Rs&&Rs.flushSync)===!0})}function ks(hs,Ss,Rs,e0){e0===void 0&&(e0={});let g0=findNearestBoundary(oo.matches,Ss);Fs(hs),ss({errors:{[g0.route.id]:Rs},fetchers:new Map(oo.fetchers)},{flushSync:(e0&&e0.flushSync)===!0})}function Ds(hs){return qt.v7_fetcherPersist&&(xo.set(hs,(xo.get(hs)||0)+1),Po.has(hs)&&Po.delete(hs)),oo.fetchers.get(hs)||IDLE_FETCHER}function Fs(hs){let Ss=oo.fetchers.get(hs);mo.has(hs)&&!(Ss&&Ss.state==="loading"&&Tt.has(hs))&&v0(hs),Co.delete(hs),Tt.delete(hs),vo.delete(hs),Po.delete(hs),oo.fetchers.delete(hs)}function d0(hs){if(qt.v7_fetcherPersist){let Ss=(xo.get(hs)||0)-1;Ss<=0?(xo.delete(hs),Po.add(hs)):xo.set(hs,Ss)}else Fs(hs);ss({fetchers:new Map(oo.fetchers)})}function v0(hs){let Ss=mo.get(hs);invariant(Ss,"Expected fetch controller: "+hs),Ss.abort(),mo.delete(hs)}function b0(hs){for(let Ss of hs){let Rs=Ds(Ss),e0=getDoneFetcher(Rs.data);oo.fetchers.set(Ss,e0)}}function R0(){let hs=[],Ss=!1;for(let Rs of vo){let e0=oo.fetchers.get(Rs);invariant(e0,"Expected fetcher: "+Rs),e0.state==="loading"&&(vo.delete(Rs),hs.push(Rs),Ss=!0)}return b0(hs),Ss}function D0(hs){let Ss=[];for(let[Rs,e0]of Tt)if(e00}function zs(hs,Ss){let Rs=oo.blockers.get(hs)||IDLE_BLOCKER;return Yn.get(hs)!==Ss&&Yn.set(hs,Ss),Rs}function n0(hs){oo.blockers.delete(hs),Yn.delete(hs)}function fo(hs,Ss){let Rs=oo.blockers.get(hs)||IDLE_BLOCKER;invariant(Rs.state==="unblocked"&&Ss.state==="blocked"||Rs.state==="blocked"&&Ss.state==="blocked"||Rs.state==="blocked"&&Ss.state==="proceeding"||Rs.state==="blocked"&&Ss.state==="unblocked"||Rs.state==="proceeding"&&Ss.state==="unblocked","Invalid blocker state transition: "+Rs.state+" -> "+Ss.state);let e0=new Map(oo.blockers);e0.set(hs,Ss),ss({blockers:e0})}function Qo(hs){let{currentLocation:Ss,nextLocation:Rs,historyAction:e0}=hs;if(Yn.size===0)return;Yn.size>1&&warning(!1,"A router only supports one blocker at a time");let g0=Array.from(Yn.entries()),[E0,Vs]=g0[g0.length-1],Bs=oo.blockers.get(E0);if(!(Bs&&Bs.state==="proceeding")&&Vs({currentLocation:Ss,nextLocation:Rs,historyAction:e0}))return E0}function Ko(hs){let Ss=[];return Wo.forEach((Rs,e0)=>{(!hs||hs(e0))&&(Rs.cancel(),Ss.push(e0),Wo.delete(e0))}),Ss}function ps(hs,Ss,Rs){if(po=hs,Nt=Ss,no=Rs||null,!eo&&oo.navigation===IDLE_NAVIGATION){eo=!0;let e0=H0(oo.location,oo.matches);e0!=null&&ss({restoreScrollPosition:e0})}return()=>{po=null,Nt=null,no=null}}function Kn(hs,Ss){return no&&no(hs,Ss.map(Rs=>convertRouteMatchToUiMatch(Rs,oo.loaderData)))||hs.key}function gs(hs,Ss){if(po&&Nt){let Rs=Kn(hs,Ss);po[Rs]=Nt()}}function H0(hs,Ss){if(po){let Rs=Kn(hs,Ss),e0=po[Rs];if(typeof e0=="number")return e0}return null}function j0(hs){tt={},st=convertRoutesToDataRoutes(hs,Vr,void 0,tt)}return bo={get basename(){return dt},get future(){return qt},get state(){return oo},get routes(){return nt},get window(){return cr},initialize:_a,subscribe:vs,enableScrollRestoration:ps,navigate:qo,fetch:Tn,revalidate:Js,createHref:hs=>_e.history.createHref(hs),encodeLocation:hs=>_e.history.encodeLocation(hs),getFetcher:Ds,deleteFetcher:d0,dispose:$s,getBlocker:zs,deleteBlocker:n0,_internalFetchControllers:mo,_internalActiveDeferreds:Wo,_internalSetRoutes:j0},bo}function isSubmissionNavigation(_e){return _e!=null&&("formData"in _e&&_e.formData!=null||"body"in _e&&_e.body!==void 0)}function normalizeTo(_e,cr,gr,Cr,Vr,tt,nt,st){let dt,kt;if(nt){dt=[];for(let ro of cr)if(dt.push(ro),ro.route.id===nt){kt=ro;break}}else dt=cr,kt=cr[cr.length-1];let qt=resolveTo(Vr||".",getResolveToMatches(dt,tt),stripBasename(_e.pathname,gr)||_e.pathname,st==="path");return Vr==null&&(qt.search=_e.search,qt.hash=_e.hash),(Vr==null||Vr===""||Vr===".")&&kt&&kt.route.index&&!hasNakedIndexQuery(qt.search)&&(qt.search=qt.search?qt.search.replace(/^\?/,"?index&"):"?index"),Cr&&gr!=="/"&&(qt.pathname=qt.pathname==="/"?gr:joinPaths([gr,qt.pathname])),createPath(qt)}function normalizeNavigateOptions(_e,cr,gr,Cr){if(!Cr||!isSubmissionNavigation(Cr))return{path:gr};if(Cr.formMethod&&!isValidMethod(Cr.formMethod))return{path:gr,error:getInternalRouterError(405,{method:Cr.formMethod})};let Vr=()=>({path:gr,error:getInternalRouterError(400,{type:"invalid-body"})}),tt=Cr.formMethod||"get",nt=_e?tt.toUpperCase():tt.toLowerCase(),st=stripHashFromPath(gr);if(Cr.body!==void 0){if(Cr.formEncType==="text/plain"){if(!isMutationMethod(nt))return Vr();let ht=typeof Cr.body=="string"?Cr.body:Cr.body instanceof FormData||Cr.body instanceof URLSearchParams?Array.from(Cr.body.entries()).reduce((po,no)=>{let[Nt,eo]=no;return""+po+Nt+"="+eo+` `},""):String(Cr.body);return{path:gr,submission:{formMethod:nt,formAction:st,formEncType:Cr.formEncType,formData:void 0,json:void 0,text:ht}}}else if(Cr.formEncType==="application/json"){if(!isMutationMethod(nt))return Vr();try{let ht=typeof Cr.body=="string"?JSON.parse(Cr.body):Cr.body;return{path:gr,submission:{formMethod:nt,formAction:st,formEncType:Cr.formEncType,formData:void 0,json:ht,text:void 0}}}catch{return Vr()}}}invariant(typeof FormData=="function","FormData is not available in this environment");let dt,kt;if(Cr.formData)dt=convertFormDataToSearchParams(Cr.formData),kt=Cr.formData;else if(Cr.body instanceof FormData)dt=convertFormDataToSearchParams(Cr.body),kt=Cr.body;else if(Cr.body instanceof URLSearchParams)dt=Cr.body,kt=convertSearchParamsToFormData(dt);else if(Cr.body==null)dt=new URLSearchParams,kt=new FormData;else try{dt=new URLSearchParams(Cr.body),kt=convertSearchParamsToFormData(dt)}catch{return Vr()}let qt={formMethod:nt,formAction:st,formEncType:Cr&&Cr.formEncType||"application/x-www-form-urlencoded",formData:kt,json:void 0,text:void 0};if(isMutationMethod(qt.formMethod))return{path:gr,submission:qt};let ro=parsePath(gr);return cr&&ro.search&&hasNakedIndexQuery(ro.search)&&dt.append("index",""),ro.search="?"+dt,{path:createPath(ro),submission:qt}}function getLoaderMatchesUntilBoundary(_e,cr){let gr=_e;if(cr){let Cr=_e.findIndex(Vr=>Vr.route.id===cr);Cr>=0&&(gr=_e.slice(0,Cr))}return gr}function getMatchesToLoad(_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt,qt,ro,ht,po,no,Nt){let eo=Nt?isErrorResult(Nt[1])?Nt[1].error:Nt[1].data:void 0,Wt=_e.createURL(cr.location),St=_e.createURL(Vr),Ot=Nt&&isErrorResult(Nt[1])?Nt[0]:void 0,uo=Ot?getLoaderMatchesUntilBoundary(gr,Ot):gr,go=Nt?Nt[1].statusCode:void 0,bo=nt&&go&&go>=400,oo=uo.filter((pt,lo)=>{let{route:so}=pt;if(so.lazy)return!0;if(so.loader==null)return!1;if(tt)return typeof so.loader!="function"||so.loader.hydrate?!0:cr.loaderData[so.id]===void 0&&(!cr.errors||cr.errors[so.id]===void 0);if(isNewLoader(cr.loaderData,cr.matches[lo],pt)||dt.some(Mt=>Mt===pt.route.id))return!0;let wo=cr.matches[lo],xt=pt;return shouldRevalidateLoader(pt,_extends$3({currentUrl:Wt,currentParams:wo.params,nextUrl:St,nextParams:xt.params},Cr,{actionResult:eo,unstable_actionStatus:go,defaultShouldRevalidate:bo?!1:st||Wt.pathname+Wt.search===St.pathname+St.search||Wt.search!==St.search||isNewRouteInstance(wo,xt)}))}),Ro=[];return ro.forEach((pt,lo)=>{if(tt||!gr.some(ho=>ho.route.id===pt.routeId)||qt.has(lo))return;let so=matchRoutes(po,pt.path,no);if(!so){Ro.push({key:lo,routeId:pt.routeId,path:pt.path,matches:null,match:null,controller:null});return}let wo=cr.fetchers.get(lo),xt=getTargetMatch(so,pt.path),Mt=!1;ht.has(lo)?Mt=!1:kt.includes(lo)?Mt=!0:wo&&wo.state!=="idle"&&wo.data===void 0?Mt=st:Mt=shouldRevalidateLoader(xt,_extends$3({currentUrl:Wt,currentParams:cr.matches[cr.matches.length-1].params,nextUrl:St,nextParams:gr[gr.length-1].params},Cr,{actionResult:eo,unstable_actionStatus:go,defaultShouldRevalidate:bo?!1:st})),Mt&&Ro.push({key:lo,routeId:pt.routeId,path:pt.path,matches:so,match:xt,controller:new AbortController})}),[oo,Ro]}function isNewLoader(_e,cr,gr){let Cr=!cr||gr.route.id!==cr.route.id,Vr=_e[gr.route.id]===void 0;return Cr||Vr}function isNewRouteInstance(_e,cr){let gr=_e.route.path;return _e.pathname!==cr.pathname||gr!=null&&gr.endsWith("*")&&_e.params["*"]!==cr.params["*"]}function shouldRevalidateLoader(_e,cr){if(_e.route.shouldRevalidate){let gr=_e.route.shouldRevalidate(cr);if(typeof gr=="boolean")return gr}return cr.defaultShouldRevalidate}async function loadLazyRouteModule(_e,cr,gr){if(!_e.lazy)return;let Cr=await _e.lazy();if(!_e.lazy)return;let Vr=gr[_e.id];invariant(Vr,"No route found in manifest");let tt={};for(let nt in Cr){let st=Vr[nt]!==void 0&&nt!=="hasErrorBoundary";warning(!st,'Route "'+Vr.id+'" has a static property "'+nt+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+nt+'" will be ignored.')),!st&&!immutableRouteKeys.has(nt)&&(tt[nt]=Cr[nt])}Object.assign(Vr,tt),Object.assign(Vr,_extends$3({},cr(Vr),{lazy:void 0}))}function defaultDataStrategy(_e){return Promise.all(_e.matches.map(cr=>cr.resolve()))}async function callDataStrategyImpl(_e,cr,gr,Cr,Vr,tt,nt,st){let dt=Cr.reduce((ro,ht)=>ro.add(ht.route.id),new Set),kt=new Set,qt=await _e({matches:Vr.map(ro=>{let ht=dt.has(ro.route.id);return _extends$3({},ro,{shouldLoad:ht,resolve:po=>(kt.add(ro.route.id),ht?callLoaderOrAction(cr,gr,ro,tt,nt,po,st):Promise.resolve({type:ResultType.data,result:void 0}))})}),request:gr,params:Vr[0].params,context:st});return Vr.forEach(ro=>invariant(kt.has(ro.route.id),'`match.resolve()` was not called for route id "'+ro.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),qt.filter((ro,ht)=>dt.has(Vr[ht].route.id))}async function callLoaderOrAction(_e,cr,gr,Cr,Vr,tt,nt){let st,dt,kt=qt=>{let ro,ht=new Promise((Nt,eo)=>ro=eo);dt=()=>ro(),cr.signal.addEventListener("abort",dt);let po=Nt=>typeof qt!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+_e+'" [routeId: '+gr.route.id+"]"))):qt({request:cr,params:gr.params,context:nt},...Nt!==void 0?[Nt]:[]),no;return tt?no=tt(Nt=>po(Nt)):no=(async()=>{try{return{type:"data",result:await po()}}catch(Nt){return{type:"error",result:Nt}}})(),Promise.race([no,ht])};try{let qt=gr.route[_e];if(gr.route.lazy)if(qt){let ro,[ht]=await Promise.all([kt(qt).catch(po=>{ro=po}),loadLazyRouteModule(gr.route,Vr,Cr)]);if(ro!==void 0)throw ro;st=ht}else if(await loadLazyRouteModule(gr.route,Vr,Cr),qt=gr.route[_e],qt)st=await kt(qt);else if(_e==="action"){let ro=new URL(cr.url),ht=ro.pathname+ro.search;throw getInternalRouterError(405,{method:cr.method,pathname:ht,routeId:gr.route.id})}else return{type:ResultType.data,result:void 0};else if(qt)st=await kt(qt);else{let ro=new URL(cr.url),ht=ro.pathname+ro.search;throw getInternalRouterError(404,{pathname:ht})}invariant(st.result!==void 0,"You defined "+(_e==="action"?"an action":"a loader")+" for route "+('"'+gr.route.id+"\" but didn't return anything from your `"+_e+"` ")+"function. Please return a value or `null`.")}catch(qt){return{type:ResultType.error,result:qt}}finally{dt&&cr.signal.removeEventListener("abort",dt)}return st}async function convertHandlerResultToDataResult(_e){let{result:cr,type:gr,status:Cr}=_e;if(isResponse(cr)){let nt;try{let st=cr.headers.get("Content-Type");st&&/\bapplication\/json\b/.test(st)?cr.body==null?nt=null:nt=await cr.json():nt=await cr.text()}catch(st){return{type:ResultType.error,error:st}}return gr===ResultType.error?{type:ResultType.error,error:new ErrorResponseImpl(cr.status,cr.statusText,nt),statusCode:cr.status,headers:cr.headers}:{type:ResultType.data,data:nt,statusCode:cr.status,headers:cr.headers}}if(gr===ResultType.error)return{type:ResultType.error,error:cr,statusCode:isRouteErrorResponse(cr)?cr.status:Cr};if(isDeferredData(cr)){var Vr,tt;return{type:ResultType.deferred,deferredData:cr,statusCode:(Vr=cr.init)==null?void 0:Vr.status,headers:((tt=cr.init)==null?void 0:tt.headers)&&new Headers(cr.init.headers)}}return{type:ResultType.data,data:cr,statusCode:Cr}}function normalizeRelativeRoutingRedirectResponse(_e,cr,gr,Cr,Vr,tt){let nt=_e.headers.get("Location");if(invariant(nt,"Redirects returned/thrown from loaders/actions must have a Location header"),!ABSOLUTE_URL_REGEX$1.test(nt)){let st=Cr.slice(0,Cr.findIndex(dt=>dt.route.id===gr)+1);nt=normalizeTo(new URL(cr.url),st,Vr,!0,nt,tt),_e.headers.set("Location",nt)}return _e}function normalizeRedirectLocation(_e,cr,gr){if(ABSOLUTE_URL_REGEX$1.test(_e)){let Cr=_e,Vr=Cr.startsWith("//")?new URL(cr.protocol+Cr):new URL(Cr),tt=stripBasename(Vr.pathname,gr)!=null;if(Vr.origin===cr.origin&&tt)return Vr.pathname+Vr.search+Vr.hash}return _e}function createClientSideRequest(_e,cr,gr,Cr){let Vr=_e.createURL(stripHashFromPath(cr)).toString(),tt={signal:gr};if(Cr&&isMutationMethod(Cr.formMethod)){let{formMethod:nt,formEncType:st}=Cr;tt.method=nt.toUpperCase(),st==="application/json"?(tt.headers=new Headers({"Content-Type":st}),tt.body=JSON.stringify(Cr.json)):st==="text/plain"?tt.body=Cr.text:st==="application/x-www-form-urlencoded"&&Cr.formData?tt.body=convertFormDataToSearchParams(Cr.formData):tt.body=Cr.formData}return new Request(Vr,tt)}function convertFormDataToSearchParams(_e){let cr=new URLSearchParams;for(let[gr,Cr]of _e.entries())cr.append(gr,typeof Cr=="string"?Cr:Cr.name);return cr}function convertSearchParamsToFormData(_e){let cr=new FormData;for(let[gr,Cr]of _e.entries())cr.append(gr,Cr);return cr}function processRouteLoaderData(_e,cr,gr,Cr,Vr,tt){let nt={},st=null,dt,kt=!1,qt={},ro=Cr&&isErrorResult(Cr[1])?Cr[1].error:void 0;return gr.forEach((ht,po)=>{let no=cr[po].route.id;if(invariant(!isRedirectResult(ht),"Cannot handle redirect results in processLoaderData"),isErrorResult(ht)){let Nt=ht.error;ro!==void 0&&(Nt=ro,ro=void 0),st=st||{};{let eo=findNearestBoundary(_e,no);st[eo.route.id]==null&&(st[eo.route.id]=Nt)}nt[no]=void 0,kt||(kt=!0,dt=isRouteErrorResponse(ht.error)?ht.error.status:500),ht.headers&&(qt[no]=ht.headers)}else isDeferredResult(ht)?(Vr.set(no,ht.deferredData),nt[no]=ht.deferredData.data,ht.statusCode!=null&&ht.statusCode!==200&&!kt&&(dt=ht.statusCode),ht.headers&&(qt[no]=ht.headers)):(nt[no]=ht.data,ht.statusCode&&ht.statusCode!==200&&!kt&&(dt=ht.statusCode),ht.headers&&(qt[no]=ht.headers))}),ro!==void 0&&Cr&&(st={[Cr[0]]:ro},nt[Cr[0]]=void 0),{loaderData:nt,errors:st,statusCode:dt||200,loaderHeaders:qt}}function processLoaderData(_e,cr,gr,Cr,Vr,tt,nt,st){let{loaderData:dt,errors:kt}=processRouteLoaderData(cr,gr,Cr,Vr,st);for(let qt=0;qtgr.route.id===cr)+1):[..._e]).reverse().find(gr=>gr.route.hasErrorBoundary===!0)||_e[0]}function getShortCircuitMatches(_e){let cr=_e.length===1?_e[0]:_e.find(gr=>gr.index||!gr.path||gr.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:cr}],route:cr}}function getInternalRouterError(_e,cr){let{pathname:gr,routeId:Cr,method:Vr,type:tt}=cr===void 0?{}:cr,nt="Unknown Server Error",st="Unknown @remix-run/router error";return _e===400?(nt="Bad Request",Vr&&gr&&Cr?st="You made a "+Vr+' request to "'+gr+'" but '+('did not provide a `loader` for route "'+Cr+'", ')+"so there is no way to handle the request.":tt==="defer-action"?st="defer() is not supported in actions":tt==="invalid-body"&&(st="Unable to encode submission body")):_e===403?(nt="Forbidden",st='Route "'+Cr+'" does not match URL "'+gr+'"'):_e===404?(nt="Not Found",st='No route matches URL "'+gr+'"'):_e===405&&(nt="Method Not Allowed",Vr&&gr&&Cr?st="You made a "+Vr.toUpperCase()+' request to "'+gr+'" but '+('did not provide an `action` for route "'+Cr+'", ')+"so there is no way to handle the request.":Vr&&(st='Invalid request method "'+Vr.toUpperCase()+'"')),new ErrorResponseImpl(_e||500,nt,new Error(st),!0)}function findRedirect(_e){for(let cr=_e.length-1;cr>=0;cr--){let gr=_e[cr];if(isRedirectResult(gr))return{result:gr,idx:cr}}}function stripHashFromPath(_e){let cr=typeof _e=="string"?parsePath(_e):_e;return createPath(_extends$3({},cr,{hash:""}))}function isHashChangeOnly(_e,cr){return _e.pathname!==cr.pathname||_e.search!==cr.search?!1:_e.hash===""?cr.hash!=="":_e.hash===cr.hash?!0:cr.hash!==""}function isRedirectHandlerResult(_e){return isResponse(_e.result)&&redirectStatusCodes.has(_e.result.status)}function isDeferredResult(_e){return _e.type===ResultType.deferred}function isErrorResult(_e){return _e.type===ResultType.error}function isRedirectResult(_e){return(_e&&_e.type)===ResultType.redirect}function isDeferredData(_e){let cr=_e;return cr&&typeof cr=="object"&&typeof cr.data=="object"&&typeof cr.subscribe=="function"&&typeof cr.cancel=="function"&&typeof cr.resolveData=="function"}function isResponse(_e){return _e!=null&&typeof _e.status=="number"&&typeof _e.statusText=="string"&&typeof _e.headers=="object"&&typeof _e.body<"u"}function isValidMethod(_e){return validRequestMethods.has(_e.toLowerCase())}function isMutationMethod(_e){return validMutationMethods.has(_e.toLowerCase())}async function resolveDeferredResults(_e,cr,gr,Cr,Vr,tt){for(let nt=0;ntro.route.id===dt.route.id),qt=kt!=null&&!isNewRouteInstance(kt,dt)&&(tt&&tt[dt.route.id])!==void 0;if(isDeferredResult(st)&&(Vr||qt)){let ro=Cr[nt];invariant(ro,"Expected an AbortSignal for revalidating fetcher deferred result"),await resolveDeferredData(st,ro,Vr).then(ht=>{ht&&(gr[nt]=ht||gr[nt])})}}}async function resolveDeferredData(_e,cr,gr){if(gr===void 0&&(gr=!1),!await _e.deferredData.resolveData(cr)){if(gr)try{return{type:ResultType.data,data:_e.deferredData.unwrappedData}}catch(Cr){return{type:ResultType.error,error:Cr}}return{type:ResultType.data,data:_e.deferredData.data}}}function hasNakedIndexQuery(_e){return new URLSearchParams(_e).getAll("index").some(cr=>cr==="")}function getTargetMatch(_e,cr){let gr=typeof cr=="string"?parsePath(cr).search:cr.search;if(_e[_e.length-1].route.index&&hasNakedIndexQuery(gr||""))return _e[_e.length-1];let Cr=getPathContributingMatches(_e);return Cr[Cr.length-1]}function getSubmissionFromNavigation(_e){let{formMethod:cr,formAction:gr,formEncType:Cr,text:Vr,formData:tt,json:nt}=_e;if(!(!cr||!gr||!Cr)){if(Vr!=null)return{formMethod:cr,formAction:gr,formEncType:Cr,formData:void 0,json:void 0,text:Vr};if(tt!=null)return{formMethod:cr,formAction:gr,formEncType:Cr,formData:tt,json:void 0,text:void 0};if(nt!==void 0)return{formMethod:cr,formAction:gr,formEncType:Cr,formData:void 0,json:nt,text:void 0}}}function getLoadingNavigation(_e,cr){return cr?{state:"loading",location:_e,formMethod:cr.formMethod,formAction:cr.formAction,formEncType:cr.formEncType,formData:cr.formData,json:cr.json,text:cr.text}:{state:"loading",location:_e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function getSubmittingNavigation(_e,cr){return{state:"submitting",location:_e,formMethod:cr.formMethod,formAction:cr.formAction,formEncType:cr.formEncType,formData:cr.formData,json:cr.json,text:cr.text}}function getLoadingFetcher(_e,cr){return _e?{state:"loading",formMethod:_e.formMethod,formAction:_e.formAction,formEncType:_e.formEncType,formData:_e.formData,json:_e.json,text:_e.text,data:cr}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:cr}}function getSubmittingFetcher(_e,cr){return{state:"submitting",formMethod:_e.formMethod,formAction:_e.formAction,formEncType:_e.formEncType,formData:_e.formData,json:_e.json,text:_e.text,data:cr?cr.data:void 0}}function getDoneFetcher(_e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:_e}}function restoreAppliedTransitions(_e,cr){try{let gr=_e.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);if(gr){let Cr=JSON.parse(gr);for(let[Vr,tt]of Object.entries(Cr||{}))tt&&Array.isArray(tt)&&cr.set(Vr,new Set(tt||[]))}}catch{}}function persistAppliedTransitions(_e,cr){if(cr.size>0){let gr={};for(let[Cr,Vr]of cr)gr[Cr]=[...Vr];try{_e.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY,JSON.stringify(gr))}catch(Cr){warning(!1,"Failed to save applied view transitions in sessionStorage ("+Cr+").")}}}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(_e){for(var cr=1;cr{st.current=!0}),reactExports.useCallback(function(dt,kt){if(kt===void 0&&(kt={}),!st.current)return;if(typeof dt=="number"){Cr.go(dt);return}let qt=resolveTo(dt,JSON.parse(nt),tt,kt.relative==="path");_e==null&&cr!=="/"&&(qt.pathname=qt.pathname==="/"?cr:joinPaths([cr,qt.pathname])),(kt.replace?Cr.replace:Cr.push)(qt,kt.state,kt)},[cr,Cr,nt,tt,_e])}const OutletContext=reactExports.createContext(null);function useOutlet(_e){let cr=reactExports.useContext(RouteContext).outlet;return cr&&reactExports.createElement(OutletContext.Provider,{value:_e},cr)}function useParams(){let{matches:_e}=reactExports.useContext(RouteContext),cr=_e[_e.length-1];return cr?cr.params:{}}function useResolvedPath(_e,cr){let{relative:gr}=cr===void 0?{}:cr,{future:Cr}=reactExports.useContext(NavigationContext),{matches:Vr}=reactExports.useContext(RouteContext),{pathname:tt}=useLocation(),nt=JSON.stringify(getResolveToMatches(Vr,Cr.v7_relativeSplatPath));return reactExports.useMemo(()=>resolveTo(_e,JSON.parse(nt),tt,gr==="path"),[_e,nt,tt,gr])}function useRoutesImpl(_e,cr,gr,Cr){useInRouterContext()||invariant(!1);let{navigator:Vr}=reactExports.useContext(NavigationContext),{matches:tt}=reactExports.useContext(RouteContext),nt=tt[tt.length-1],st=nt?nt.params:{};nt&&nt.pathname;let dt=nt?nt.pathnameBase:"/";nt&&nt.route;let kt=useLocation(),qt;qt=kt;let ro=qt.pathname||"/",ht=ro;if(dt!=="/"){let no=dt.replace(/^\//,"").split("/");ht="/"+ro.replace(/^\//,"").split("/").slice(no.length).join("/")}let po=matchRoutes(_e,{pathname:ht});return _renderMatches(po&&po.map(no=>Object.assign({},no,{params:Object.assign({},st,no.params),pathname:joinPaths([dt,Vr.encodeLocation?Vr.encodeLocation(no.pathname).pathname:no.pathname]),pathnameBase:no.pathnameBase==="/"?dt:joinPaths([dt,Vr.encodeLocation?Vr.encodeLocation(no.pathnameBase).pathname:no.pathnameBase])})),tt,gr,Cr)}function DefaultErrorComponent(){let _e=useRouteError(),cr=isRouteErrorResponse(_e)?_e.status+" "+_e.statusText:_e instanceof Error?_e.message:JSON.stringify(_e),gr=_e instanceof Error?_e.stack:null,Cr={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},cr),gr?reactExports.createElement("pre",{style:Cr},gr):null,null)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(cr){super(cr),this.state={location:cr.location,revalidation:cr.revalidation,error:cr.error}}static getDerivedStateFromError(cr){return{error:cr}}static getDerivedStateFromProps(cr,gr){return gr.location!==cr.location||gr.revalidation!=="idle"&&cr.revalidation==="idle"?{error:cr.error,location:cr.location,revalidation:cr.revalidation}:{error:cr.error!==void 0?cr.error:gr.error,location:gr.location,revalidation:cr.revalidation||gr.revalidation}}componentDidCatch(cr,gr){console.error("React Router caught the following error during render",cr,gr)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(_e){let{routeContext:cr,match:gr,children:Cr}=_e,Vr=reactExports.useContext(DataRouterContext);return Vr&&Vr.static&&Vr.staticContext&&(gr.route.errorElement||gr.route.ErrorBoundary)&&(Vr.staticContext._deepestRenderedBoundaryId=gr.route.id),reactExports.createElement(RouteContext.Provider,{value:cr},Cr)}function _renderMatches(_e,cr,gr,Cr){var Vr;if(cr===void 0&&(cr=[]),gr===void 0&&(gr=null),Cr===void 0&&(Cr=null),_e==null){var tt;if((tt=gr)!=null&&tt.errors)_e=gr.matches;else return null}let nt=_e,st=(Vr=gr)==null?void 0:Vr.errors;if(st!=null){let qt=nt.findIndex(ro=>ro.route.id&&(st==null?void 0:st[ro.route.id])!==void 0);qt>=0||invariant(!1),nt=nt.slice(0,Math.min(nt.length,qt+1))}let dt=!1,kt=-1;if(gr&&Cr&&Cr.v7_partialHydration)for(let qt=0;qt=0?nt=nt.slice(0,kt+1):nt=[nt[0]];break}}}return nt.reduceRight((qt,ro,ht)=>{let po,no=!1,Nt=null,eo=null;gr&&(po=st&&ro.route.id?st[ro.route.id]:void 0,Nt=ro.route.errorElement||defaultErrorElement,dt&&(kt<0&&ht===0?(no=!0,eo=null):kt===ht&&(no=!0,eo=ro.route.hydrateFallbackElement||null)));let Wt=cr.concat(nt.slice(0,ht+1)),St=()=>{let Ot;return po?Ot=Nt:no?Ot=eo:ro.route.Component?Ot=reactExports.createElement(ro.route.Component,null):ro.route.element?Ot=ro.route.element:Ot=qt,reactExports.createElement(RenderedRoute,{match:ro,routeContext:{outlet:qt,matches:Wt,isDataRoute:gr!=null},children:Ot})};return gr&&(ro.route.ErrorBoundary||ro.route.errorElement||ht===0)?reactExports.createElement(RenderErrorBoundary,{location:gr.location,revalidation:gr.revalidation,component:Nt,error:po,children:St(),routeContext:{outlet:null,matches:Wt,isDataRoute:!0}}):St()},null)}var DataRouterHook$1=function(_e){return _e.UseBlocker="useBlocker",_e.UseRevalidator="useRevalidator",_e.UseNavigateStable="useNavigate",_e}(DataRouterHook$1||{}),DataRouterStateHook$1=function(_e){return _e.UseBlocker="useBlocker",_e.UseLoaderData="useLoaderData",_e.UseActionData="useActionData",_e.UseRouteError="useRouteError",_e.UseNavigation="useNavigation",_e.UseRouteLoaderData="useRouteLoaderData",_e.UseMatches="useMatches",_e.UseRevalidator="useRevalidator",_e.UseNavigateStable="useNavigate",_e.UseRouteId="useRouteId",_e}(DataRouterStateHook$1||{});function useDataRouterContext(_e){let cr=reactExports.useContext(DataRouterContext);return cr||invariant(!1),cr}function useDataRouterState(_e){let cr=reactExports.useContext(DataRouterStateContext);return cr||invariant(!1),cr}function useRouteContext(_e){let cr=reactExports.useContext(RouteContext);return cr||invariant(!1),cr}function useCurrentRouteId(_e){let cr=useRouteContext(),gr=cr.matches[cr.matches.length-1];return gr.route.id||invariant(!1),gr.route.id}function useRouteError(){var _e;let cr=reactExports.useContext(RouteErrorContext),gr=useDataRouterState(DataRouterStateHook$1.UseRouteError),Cr=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return cr!==void 0?cr:(_e=gr.errors)==null?void 0:_e[Cr]}function useNavigateStable(){let{router:_e}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),cr=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),gr=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>{gr.current=!0}),reactExports.useCallback(function(Cr,Vr){Vr===void 0&&(Vr={}),gr.current&&(typeof Cr=="number"?_e.navigate(Cr):_e.navigate(Cr,_extends$2({fromRouteId:cr},Vr)))},[_e,cr])}function Navigate(_e){let{to:cr,replace:gr,state:Cr,relative:Vr}=_e;useInRouterContext()||invariant(!1);let{future:tt,static:nt}=reactExports.useContext(NavigationContext),{matches:st}=reactExports.useContext(RouteContext),{pathname:dt}=useLocation(),kt=useNavigate(),qt=resolveTo(cr,getResolveToMatches(st,tt.v7_relativeSplatPath),dt,Vr==="path"),ro=JSON.stringify(qt);return reactExports.useEffect(()=>kt(JSON.parse(ro),{replace:gr,state:Cr,relative:Vr}),[kt,ro,Vr,gr,Cr]),null}function Outlet(_e){return useOutlet(_e.context)}function Route(_e){invariant(!1)}function Router(_e){let{basename:cr="/",children:gr=null,location:Cr,navigationType:Vr=Action.Pop,navigator:tt,static:nt=!1,future:st}=_e;useInRouterContext()&&invariant(!1);let dt=cr.replace(/^\/*/,"/"),kt=reactExports.useMemo(()=>({basename:dt,navigator:tt,static:nt,future:_extends$2({v7_relativeSplatPath:!1},st)}),[dt,st,tt,nt]);typeof Cr=="string"&&(Cr=parsePath(Cr));let{pathname:qt="/",search:ro="",hash:ht="",state:po=null,key:no="default"}=Cr,Nt=reactExports.useMemo(()=>{let eo=stripBasename(qt,dt);return eo==null?null:{location:{pathname:eo,search:ro,hash:ht,state:po,key:no},navigationType:Vr}},[dt,qt,ro,ht,po,no,Vr]);return Nt==null?null:reactExports.createElement(NavigationContext.Provider,{value:kt},reactExports.createElement(LocationContext.Provider,{children:gr,value:Nt}))}new Promise(()=>{});function createRoutesFromChildren(_e,cr){cr===void 0&&(cr=[]);let gr=[];return reactExports.Children.forEach(_e,(Cr,Vr)=>{if(!reactExports.isValidElement(Cr))return;let tt=[...cr,Vr];if(Cr.type===reactExports.Fragment){gr.push.apply(gr,createRoutesFromChildren(Cr.props.children,tt));return}Cr.type!==Route&&invariant(!1),!Cr.props.index||!Cr.props.children||invariant(!1);let nt={id:Cr.props.id||tt.join("-"),caseSensitive:Cr.props.caseSensitive,element:Cr.props.element,Component:Cr.props.Component,index:Cr.props.index,path:Cr.props.path,loader:Cr.props.loader,action:Cr.props.action,errorElement:Cr.props.errorElement,ErrorBoundary:Cr.props.ErrorBoundary,hasErrorBoundary:Cr.props.ErrorBoundary!=null||Cr.props.errorElement!=null,shouldRevalidate:Cr.props.shouldRevalidate,handle:Cr.props.handle,lazy:Cr.props.lazy};Cr.props.children&&(nt.children=createRoutesFromChildren(Cr.props.children,tt)),gr.push(nt)}),gr}function mapRouteProperties(_e){let cr={hasErrorBoundary:_e.ErrorBoundary!=null||_e.errorElement!=null};return _e.Component&&Object.assign(cr,{element:reactExports.createElement(_e.Component),Component:void 0}),_e.HydrateFallback&&Object.assign(cr,{hydrateFallbackElement:reactExports.createElement(_e.HydrateFallback),HydrateFallback:void 0}),_e.ErrorBoundary&&Object.assign(cr,{errorElement:reactExports.createElement(_e.ErrorBoundary),ErrorBoundary:void 0}),cr}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(_e){for(var cr=1;cr=0)&&(gr[Vr]=_e[Vr]);return gr}function isModifiedEvent(_e){return!!(_e.metaKey||_e.altKey||_e.ctrlKey||_e.shiftKey)}function shouldProcessLinkClick(_e,cr){return _e.button===0&&(!cr||cr==="_self")&&!isModifiedEvent(_e)}const _excluded$M=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch(_e){}function createBrowserRouter(_e,cr){return createRouter({basename:void 0,future:_extends$1({},void 0,{v7_prependBasename:!0}),history:createBrowserHistory({window:void 0}),hydrationData:parseHydrationData(),routes:_e,mapRouteProperties,unstable_dataStrategy:void 0,window:void 0}).initialize()}function parseHydrationData(){var _e;let cr=(_e=window)==null?void 0:_e.__staticRouterHydrationData;return cr&&cr.errors&&(cr=_extends$1({},cr,{errors:deserializeErrors(cr.errors)})),cr}function deserializeErrors(_e){if(!_e)return null;let cr=Object.entries(_e),gr={};for(let[Cr,Vr]of cr)if(Vr&&Vr.__type==="RouteErrorResponse")gr[Cr]=new ErrorResponseImpl(Vr.status,Vr.statusText,Vr.data,Vr.internal===!0);else if(Vr&&Vr.__type==="Error"){if(Vr.__subType){let tt=window[Vr.__subType];if(typeof tt=="function")try{let nt=new tt(Vr.message);nt.stack="",gr[Cr]=nt}catch{}}if(gr[Cr]==null){let tt=new Error(Vr.message);tt.stack="",gr[Cr]=tt}}else gr[Cr]=Vr;return gr}const ViewTransitionContext=reactExports.createContext({isTransitioning:!1}),FetchersContext=reactExports.createContext(new Map),START_TRANSITION="startTransition",startTransitionImpl=React$4[START_TRANSITION],FLUSH_SYNC="flushSync",flushSyncImpl=ReactDOM$1[FLUSH_SYNC];function startTransitionSafe(_e){startTransitionImpl?startTransitionImpl(_e):_e()}function flushSyncSafe(_e){flushSyncImpl?flushSyncImpl(_e):_e()}class Deferred{constructor(){this.status="pending",this.promise=new Promise((cr,gr)=>{this.resolve=Cr=>{this.status==="pending"&&(this.status="resolved",cr(Cr))},this.reject=Cr=>{this.status==="pending"&&(this.status="rejected",gr(Cr))}})}}function RouterProvider(_e){let{fallbackElement:cr,router:gr,future:Cr}=_e,[Vr,tt]=reactExports.useState(gr.state),[nt,st]=reactExports.useState(),[dt,kt]=reactExports.useState({isTransitioning:!1}),[qt,ro]=reactExports.useState(),[ht,po]=reactExports.useState(),[no,Nt]=reactExports.useState(),eo=reactExports.useRef(new Map),{v7_startTransition:Wt}=Cr||{},St=reactExports.useCallback(oo=>{Wt?startTransitionSafe(oo):oo()},[Wt]),Ot=reactExports.useCallback((oo,Ro)=>{let{deletedFetchers:pt,unstable_flushSync:lo,unstable_viewTransitionOpts:so}=Ro;pt.forEach(xt=>eo.current.delete(xt)),oo.fetchers.forEach((xt,Mt)=>{xt.data!==void 0&&eo.current.set(Mt,xt.data)});let wo=gr.window==null||gr.window.document==null||typeof gr.window.document.startViewTransition!="function";if(!so||wo){lo?flushSyncSafe(()=>tt(oo)):St(()=>tt(oo));return}if(lo){flushSyncSafe(()=>{ht&&(qt&&qt.resolve(),ht.skipTransition()),kt({isTransitioning:!0,flushSync:!0,currentLocation:so.currentLocation,nextLocation:so.nextLocation})});let xt=gr.window.document.startViewTransition(()=>{flushSyncSafe(()=>tt(oo))});xt.finished.finally(()=>{flushSyncSafe(()=>{ro(void 0),po(void 0),st(void 0),kt({isTransitioning:!1})})}),flushSyncSafe(()=>po(xt));return}ht?(qt&&qt.resolve(),ht.skipTransition(),Nt({state:oo,currentLocation:so.currentLocation,nextLocation:so.nextLocation})):(st(oo),kt({isTransitioning:!0,flushSync:!1,currentLocation:so.currentLocation,nextLocation:so.nextLocation}))},[gr.window,ht,qt,eo,St]);reactExports.useLayoutEffect(()=>gr.subscribe(Ot),[gr,Ot]),reactExports.useEffect(()=>{dt.isTransitioning&&!dt.flushSync&&ro(new Deferred)},[dt]),reactExports.useEffect(()=>{if(qt&&nt&&gr.window){let oo=nt,Ro=qt.promise,pt=gr.window.document.startViewTransition(async()=>{St(()=>tt(oo)),await Ro});pt.finished.finally(()=>{ro(void 0),po(void 0),st(void 0),kt({isTransitioning:!1})}),po(pt)}},[St,nt,qt,gr.window]),reactExports.useEffect(()=>{qt&&nt&&Vr.location.key===nt.location.key&&qt.resolve()},[qt,ht,Vr.location,nt]),reactExports.useEffect(()=>{!dt.isTransitioning&&no&&(st(no.state),kt({isTransitioning:!0,flushSync:!1,currentLocation:no.currentLocation,nextLocation:no.nextLocation}),Nt(void 0))},[dt.isTransitioning,no]),reactExports.useEffect(()=>{},[]);let uo=reactExports.useMemo(()=>({createHref:gr.createHref,encodeLocation:gr.encodeLocation,go:oo=>gr.navigate(oo),push:(oo,Ro,pt)=>gr.navigate(oo,{state:Ro,preventScrollReset:pt==null?void 0:pt.preventScrollReset}),replace:(oo,Ro,pt)=>gr.navigate(oo,{replace:!0,state:Ro,preventScrollReset:pt==null?void 0:pt.preventScrollReset})}),[gr]),go=gr.basename||"/",bo=reactExports.useMemo(()=>({router:gr,navigator:uo,static:!1,basename:go}),[gr,uo,go]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(DataRouterContext.Provider,{value:bo},reactExports.createElement(DataRouterStateContext.Provider,{value:Vr},reactExports.createElement(FetchersContext.Provider,{value:eo.current},reactExports.createElement(ViewTransitionContext.Provider,{value:dt},reactExports.createElement(Router,{basename:go,location:Vr.location,navigationType:Vr.historyAction,navigator:uo,future:{v7_relativeSplatPath:gr.future.v7_relativeSplatPath}},Vr.initialized||gr.future.v7_partialHydration?reactExports.createElement(DataRoutes,{routes:gr.routes,future:gr.future,state:Vr}):cr))))),null)}function DataRoutes(_e){let{routes:cr,future:gr,state:Cr}=_e;return useRoutesImpl(cr,void 0,Cr,gr)}const isBrowser$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function _e(cr,gr){let{onClick:Cr,relative:Vr,reloadDocument:tt,replace:nt,state:st,target:dt,to:kt,preventScrollReset:qt,unstable_viewTransition:ro}=cr,ht=_objectWithoutPropertiesLoose(cr,_excluded$M),{basename:po}=reactExports.useContext(NavigationContext),no,Nt=!1;if(typeof kt=="string"&&ABSOLUTE_URL_REGEX.test(kt)&&(no=kt,isBrowser$1))try{let Ot=new URL(window.location.href),uo=kt.startsWith("//")?new URL(Ot.protocol+kt):new URL(kt),go=stripBasename(uo.pathname,po);uo.origin===Ot.origin&&go!=null?kt=go+uo.search+uo.hash:Nt=!0}catch{}let eo=useHref(kt,{relative:Vr}),Wt=useLinkClickHandler(kt,{replace:nt,state:st,target:dt,preventScrollReset:qt,relative:Vr,unstable_viewTransition:ro});function St(Ot){Cr&&Cr(Ot),Ot.defaultPrevented||Wt(Ot)}return reactExports.createElement("a",_extends$1({},ht,{href:no||eo,onClick:Nt||tt?Cr:St,ref:gr,target:dt}))});var DataRouterHook;(function(_e){_e.UseScrollRestoration="useScrollRestoration",_e.UseSubmit="useSubmit",_e.UseSubmitFetcher="useSubmitFetcher",_e.UseFetcher="useFetcher",_e.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(_e){_e.UseFetcher="useFetcher",_e.UseFetchers="useFetchers",_e.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(_e,cr){let{target:gr,replace:Cr,state:Vr,preventScrollReset:tt,relative:nt,unstable_viewTransition:st}=cr===void 0?{}:cr,dt=useNavigate(),kt=useLocation(),qt=useResolvedPath(_e,{relative:nt});return reactExports.useCallback(ro=>{if(shouldProcessLinkClick(ro,gr)){ro.preventDefault();let ht=Cr!==void 0?Cr:createPath(kt)===createPath(qt);dt(_e,{replace:ht,state:Vr,preventScrollReset:tt,relative:nt,unstable_viewTransition:st})}},[kt,dt,qt,Cr,Vr,gr,_e,tt,nt,st])}function formatMuiErrorMessage$1(_e){let cr="https://mui.com/production-error/?code="+_e;for(let gr=1;gr0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(_e,cr){for(;--cr&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(_e,caret()+(cr<6&&peek()==32&&next()==32))}function delimiter(_e){for(;next();)switch(character){case _e:return position;case 34:case 39:_e!==34&&_e!==39&&delimiter(character);break;case 40:_e===41&&delimiter(_e);break;case 92:next();break}return position}function commenter(_e,cr){for(;next()&&_e+character!==57&&!(_e+character===84&&peek()===47););return"/*"+slice(cr,position-1)+"*"+from(_e===47?_e:next())}function identifier(_e){for(;!token(peek());)next();return slice(_e,position)}function compile(_e){return dealloc(parse("",null,null,null,[""],_e=alloc(_e),0,[0],_e))}function parse(_e,cr,gr,Cr,Vr,tt,nt,st,dt){for(var kt=0,qt=0,ro=nt,ht=0,po=0,no=0,Nt=1,eo=1,Wt=1,St=0,Ot="",uo=Vr,go=tt,bo=Cr,oo=Ot;eo;)switch(no=St,St=next()){case 40:if(no!=108&&charat(oo,ro-1)==58){indexof(oo+=replace(delimit(St),"&","&\f"),"&\f")!=-1&&(Wt=-1);break}case 34:case 39:case 91:oo+=delimit(St);break;case 9:case 10:case 13:case 32:oo+=whitespace(no);break;case 92:oo+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),cr,gr),dt);break;default:oo+="/"}break;case 123*Nt:st[kt++]=strlen(oo)*Wt;case 125*Nt:case 59:case 0:switch(St){case 0:case 125:eo=0;case 59+qt:Wt==-1&&(oo=replace(oo,/\f/g,"")),po>0&&strlen(oo)-ro&&append(po>32?declaration(oo+";",Cr,gr,ro-1):declaration(replace(oo," ","")+";",Cr,gr,ro-2),dt);break;case 59:oo+=";";default:if(append(bo=ruleset(oo,cr,gr,kt,qt,Vr,st,Ot,uo=[],go=[],ro),tt),St===123)if(qt===0)parse(oo,cr,bo,bo,uo,tt,ro,st,go);else switch(ht===99&&charat(oo,3)===110?100:ht){case 100:case 108:case 109:case 115:parse(_e,bo,bo,Cr&&append(ruleset(_e,bo,bo,0,0,Vr,st,Ot,Vr,uo=[],ro),go),Vr,go,ro,st,Cr?uo:go);break;default:parse(oo,bo,bo,bo,[""],go,0,st,go)}}kt=qt=po=0,Nt=Wt=1,Ot=oo="",ro=nt;break;case 58:ro=1+strlen(oo),po=no;default:if(Nt<1){if(St==123)--Nt;else if(St==125&&Nt++==0&&prev()==125)continue}switch(oo+=from(St),St*Nt){case 38:Wt=qt>0?1:(oo+="\f",-1);break;case 44:st[kt++]=(strlen(oo)-1)*Wt,Wt=1;break;case 64:peek()===45&&(oo+=delimit(next())),ht=peek(),qt=ro=strlen(Ot=oo+=identifier(caret())),St++;break;case 45:no===45&&strlen(oo)==2&&(Nt=0)}}return tt}function ruleset(_e,cr,gr,Cr,Vr,tt,nt,st,dt,kt,qt){for(var ro=Vr-1,ht=Vr===0?tt:[""],po=sizeof(ht),no=0,Nt=0,eo=0;no0?ht[Wt]+" "+St:replace(St,/&\f/g,ht[Wt])))&&(dt[eo++]=Ot);return node(_e,cr,gr,Vr===0?RULESET:st,dt,kt,qt)}function comment(_e,cr,gr){return node(_e,cr,gr,COMMENT,from(char()),substr(_e,2,-2),0)}function declaration(_e,cr,gr,Cr){return node(_e,cr,gr,DECLARATION,substr(_e,0,Cr),substr(_e,Cr+1,-1),Cr)}function serialize(_e,cr){for(var gr="",Cr=sizeof(_e),Vr=0;Vr6)switch(charat(_e,cr+1)){case 109:if(charat(_e,cr+4)!==45)break;case 102:return replace(_e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(_e,cr+3)==108?"$3":"$2-$3"))+_e;case 115:return~indexof(_e,"stretch")?prefix$2(replace(_e,"stretch","fill-available"),cr)+_e:_e}break;case 4949:if(charat(_e,cr+1)!==115)break;case 6444:switch(charat(_e,strlen(_e)-3-(~indexof(_e,"!important")&&10))){case 107:return replace(_e,":",":"+WEBKIT)+_e;case 101:return replace(_e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(_e,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+_e}break;case 5936:switch(charat(_e,cr+11)){case 114:return WEBKIT+_e+MS+replace(_e,/[svh]\w+-[tblr]{2}/,"tb")+_e;case 108:return WEBKIT+_e+MS+replace(_e,/[svh]\w+-[tblr]{2}/,"tb-rl")+_e;case 45:return WEBKIT+_e+MS+replace(_e,/[svh]\w+-[tblr]{2}/,"lr")+_e}return WEBKIT+_e+MS+_e+_e}return _e}var prefixer=function _e(cr,gr,Cr,Vr){if(cr.length>-1&&!cr.return)switch(cr.type){case DECLARATION:cr.return=prefix$2(cr.value,cr.length);break;case KEYFRAMES:return serialize([copy$1(cr,{value:replace(cr.value,"@","@"+WEBKIT)})],Vr);case RULESET:if(cr.length)return combine(cr.props,function(tt){switch(match(tt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy$1(cr,{props:[replace(tt,/:(read-\w+)/,":"+MOZ+"$1")]})],Vr);case"::placeholder":return serialize([copy$1(cr,{props:[replace(tt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy$1(cr,{props:[replace(tt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy$1(cr,{props:[replace(tt,/:(plac\w+)/,MS+"input-$1")]})],Vr)}return""})}},defaultStylisPlugins=[prefixer],createCache=function _e(cr){var gr=cr.key;if(gr==="css"){var Cr=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Cr,function(Nt){var eo=Nt.getAttribute("data-emotion");eo.indexOf(" ")!==-1&&(document.head.appendChild(Nt),Nt.setAttribute("data-s",""))})}var Vr=cr.stylisPlugins||defaultStylisPlugins,tt={},nt,st=[];nt=cr.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+gr+' "]'),function(Nt){for(var eo=Nt.getAttribute("data-emotion").split(" "),Wt=1;Wt=4;++Cr,Vr-=4)gr=_e.charCodeAt(Cr)&255|(_e.charCodeAt(++Cr)&255)<<8|(_e.charCodeAt(++Cr)&255)<<16|(_e.charCodeAt(++Cr)&255)<<24,gr=(gr&65535)*1540483477+((gr>>>16)*59797<<16),gr^=gr>>>24,cr=(gr&65535)*1540483477+((gr>>>16)*59797<<16)^(cr&65535)*1540483477+((cr>>>16)*59797<<16);switch(Vr){case 3:cr^=(_e.charCodeAt(Cr+2)&255)<<16;case 2:cr^=(_e.charCodeAt(Cr+1)&255)<<8;case 1:cr^=_e.charCodeAt(Cr)&255,cr=(cr&65535)*1540483477+((cr>>>16)*59797<<16)}return cr^=cr>>>13,cr=(cr&65535)*1540483477+((cr>>>16)*59797<<16),((cr^cr>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function _e(cr){return cr.charCodeAt(1)===45},isProcessableValue=function _e(cr){return cr!=null&&typeof cr!="boolean"},processStyleName=memoize$3(function(_e){return isCustomProperty(_e)?_e:_e.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function _e(cr,gr){switch(cr){case"animation":case"animationName":if(typeof gr=="string")return gr.replace(animationRegex,function(Cr,Vr,tt){return cursor={name:Vr,styles:tt,next:cursor},Vr})}return unitlessKeys[cr]!==1&&!isCustomProperty(cr)&&typeof gr=="number"&&gr!==0?gr+"px":gr},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(_e,cr,gr){if(gr==null)return"";if(gr.__emotion_styles!==void 0)return gr;switch(typeof gr){case"boolean":return"";case"object":{if(gr.anim===1)return cursor={name:gr.name,styles:gr.styles,next:cursor},gr.name;if(gr.styles!==void 0){var Cr=gr.next;if(Cr!==void 0)for(;Cr!==void 0;)cursor={name:Cr.name,styles:Cr.styles,next:cursor},Cr=Cr.next;var Vr=gr.styles+";";return Vr}return createStringFromObject(_e,cr,gr)}case"function":{if(_e!==void 0){var tt=cursor,nt=gr(_e);return cursor=tt,handleInterpolation(_e,cr,nt)}break}}if(cr==null)return gr;var st=cr[gr];return st!==void 0?st:gr}function createStringFromObject(_e,cr,gr){var Cr="";if(Array.isArray(gr))for(var Vr=0;Vr96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function _e(cr,gr,Cr){var Vr;if(gr){var tt=gr.shouldForwardProp;Vr=cr.__emotion_forwardProp&&tt?function(nt){return cr.__emotion_forwardProp(nt)&&tt(nt)}:tt}return typeof Vr!="function"&&Cr&&(Vr=cr.__emotion_forwardProp),Vr},Insertion=function _e(cr){var gr=cr.cache,Cr=cr.serialized,Vr=cr.isStringTag;return registerStyles(gr,Cr,Vr),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(gr,Cr,Vr)}),null},createStyled$3=function _e(cr,gr){var Cr=cr.__emotion_real===cr,Vr=Cr&&cr.__emotion_base||cr,tt,nt;gr!==void 0&&(tt=gr.label,nt=gr.target);var st=composeShouldForwardProps(cr,gr,Cr),dt=st||getDefaultShouldForwardProp(Vr),kt=!dt("as");return function(){var qt=arguments,ro=Cr&&cr.__emotion_styles!==void 0?cr.__emotion_styles.slice(0):[];if(tt!==void 0&&ro.push("label:"+tt+";"),qt[0]==null||qt[0].raw===void 0)ro.push.apply(ro,qt);else{ro.push(qt[0][0]);for(var ht=qt.length,po=1;pocr(isEmpty$3(Vr)?gr:Vr):cr;return jsxRuntimeExports.jsx(Global,{styles:Cr})}function styled$2(_e,cr){return newStyled(_e,cr)}const internal_processStyles=(_e,cr)=>{Array.isArray(_e.__emotion_styles)&&(_e.__emotion_styles=cr(_e.__emotion_styles))},styledEngine=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:GlobalStyles$2,StyledEngineProvider,ThemeContext:ThemeContext$1,css,default:styled$2,internal_processStyles,keyframes},Symbol.toStringTag,{value:"Module"}));function isPlainObject$2(_e){if(typeof _e!="object"||_e===null)return!1;const cr=Object.getPrototypeOf(_e);return(cr===null||cr===Object.prototype||Object.getPrototypeOf(cr)===null)&&!(Symbol.toStringTag in _e)&&!(Symbol.iterator in _e)}function deepClone(_e){if(!isPlainObject$2(_e))return _e;const cr={};return Object.keys(_e).forEach(gr=>{cr[gr]=deepClone(_e[gr])}),cr}function deepmerge$1(_e,cr,gr={clone:!0}){const Cr=gr.clone?_extends$5({},_e):_e;return isPlainObject$2(_e)&&isPlainObject$2(cr)&&Object.keys(cr).forEach(Vr=>{Vr!=="__proto__"&&(isPlainObject$2(cr[Vr])&&Vr in _e&&isPlainObject$2(_e[Vr])?Cr[Vr]=deepmerge$1(_e[Vr],cr[Vr],gr):gr.clone?Cr[Vr]=isPlainObject$2(cr[Vr])?deepClone(cr[Vr]):cr[Vr]:Cr[Vr]=cr[Vr])}),Cr}const deepmerge=Object.freeze(Object.defineProperty({__proto__:null,default:deepmerge$1,isPlainObject:isPlainObject$2},Symbol.toStringTag,{value:"Module"})),_excluded$L=["values","unit","step"],sortBreakpointsValues=_e=>{const cr=Object.keys(_e).map(gr=>({key:gr,val:_e[gr]}))||[];return cr.sort((gr,Cr)=>gr.val-Cr.val),cr.reduce((gr,Cr)=>_extends$5({},gr,{[Cr.key]:Cr.val}),{})};function createBreakpoints(_e){const{values:cr={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:gr="px",step:Cr=5}=_e,Vr=_objectWithoutPropertiesLoose$2(_e,_excluded$L),tt=sortBreakpointsValues(cr),nt=Object.keys(tt);function st(ht){return`@media (min-width:${typeof cr[ht]=="number"?cr[ht]:ht}${gr})`}function dt(ht){return`@media (max-width:${(typeof cr[ht]=="number"?cr[ht]:ht)-Cr/100}${gr})`}function kt(ht,po){const no=nt.indexOf(po);return`@media (min-width:${typeof cr[ht]=="number"?cr[ht]:ht}${gr}) and (max-width:${(no!==-1&&typeof cr[nt[no]]=="number"?cr[nt[no]]:po)-Cr/100}${gr})`}function qt(ht){return nt.indexOf(ht)+1`@media (min-width:${values$1[_e]}px)`};function handleBreakpoints(_e,cr,gr){const Cr=_e.theme||{};if(Array.isArray(cr)){const Vr=Cr.breakpoints||defaultBreakpoints;return cr.reduce((tt,nt,st)=>(tt[Vr.up(Vr.keys[st])]=gr(cr[st]),tt),{})}if(typeof cr=="object"){const Vr=Cr.breakpoints||defaultBreakpoints;return Object.keys(cr).reduce((tt,nt)=>{if(Object.keys(Vr.values||values$1).indexOf(nt)!==-1){const st=Vr.up(nt);tt[st]=gr(cr[nt],nt)}else{const st=nt;tt[st]=cr[st]}return tt},{})}return gr(cr)}function createEmptyBreakpointObject(_e={}){var cr;return((cr=_e.keys)==null?void 0:cr.reduce((gr,Cr)=>{const Vr=_e.up(Cr);return gr[Vr]={},gr},{}))||{}}function removeUnusedBreakpoints(_e,cr){return _e.reduce((gr,Cr)=>{const Vr=gr[Cr];return(!Vr||Object.keys(Vr).length===0)&&delete gr[Cr],gr},cr)}function mergeBreakpointsInOrder(_e,...cr){const gr=createEmptyBreakpointObject(_e),Cr=[gr,...cr].reduce((Vr,tt)=>deepmerge$1(Vr,tt),{});return removeUnusedBreakpoints(Object.keys(gr),Cr)}function computeBreakpointsBase(_e,cr){if(typeof _e!="object")return{};const gr={},Cr=Object.keys(cr);return Array.isArray(_e)?Cr.forEach((Vr,tt)=>{tt<_e.length&&(gr[Vr]=!0)}):Cr.forEach(Vr=>{_e[Vr]!=null&&(gr[Vr]=!0)}),gr}function resolveBreakpointValues({values:_e,breakpoints:cr,base:gr}){const Cr=gr||computeBreakpointsBase(_e,cr),Vr=Object.keys(Cr);if(Vr.length===0)return _e;let tt;return Vr.reduce((nt,st,dt)=>(Array.isArray(_e)?(nt[st]=_e[dt]!=null?_e[dt]:_e[tt],tt=dt):typeof _e=="object"?(nt[st]=_e[st]!=null?_e[st]:_e[tt],tt=st):nt[st]=_e,nt),{})}function capitalize$2(_e){if(typeof _e!="string")throw new Error(formatMuiErrorMessage$1(7));return _e.charAt(0).toUpperCase()+_e.slice(1)}const capitalize$1=Object.freeze(Object.defineProperty({__proto__:null,default:capitalize$2},Symbol.toStringTag,{value:"Module"}));function getPath(_e,cr,gr=!0){if(!cr||typeof cr!="string")return null;if(_e&&_e.vars&&gr){const Cr=`vars.${cr}`.split(".").reduce((Vr,tt)=>Vr&&Vr[tt]?Vr[tt]:null,_e);if(Cr!=null)return Cr}return cr.split(".").reduce((Cr,Vr)=>Cr&&Cr[Vr]!=null?Cr[Vr]:null,_e)}function getStyleValue$1(_e,cr,gr,Cr=gr){let Vr;return typeof _e=="function"?Vr=_e(gr):Array.isArray(_e)?Vr=_e[gr]||Cr:Vr=getPath(_e,gr)||Cr,cr&&(Vr=cr(Vr,Cr,_e)),Vr}function style$3(_e){const{prop:cr,cssProperty:gr=_e.prop,themeKey:Cr,transform:Vr}=_e,tt=nt=>{if(nt[cr]==null)return null;const st=nt[cr],dt=nt.theme,kt=getPath(dt,Cr)||{};return handleBreakpoints(nt,st,qt=>{let ro=getStyleValue$1(kt,Vr,qt);return qt===ro&&typeof qt=="string"&&(ro=getStyleValue$1(kt,Vr,`${cr}${qt==="default"?"":capitalize$2(qt)}`,qt)),gr===!1?ro:{[gr]:ro}})};return tt.propTypes={},tt.filterProps=[cr],tt}function memoize$2(_e){const cr={};return gr=>(cr[gr]===void 0&&(cr[gr]=_e(gr)),cr[gr])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize$2(_e=>{if(_e.length>2)if(aliases[_e])_e=aliases[_e];else return[_e];const[cr,gr]=_e.split(""),Cr=properties[cr],Vr=directions[gr]||"";return Array.isArray(Vr)?Vr.map(tt=>Cr+tt):[Cr+Vr]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(_e,cr,gr,Cr){var Vr;const tt=(Vr=getPath(_e,cr,!1))!=null?Vr:gr;return typeof tt=="number"?nt=>typeof nt=="string"?nt:tt*nt:Array.isArray(tt)?nt=>typeof nt=="string"?nt:tt[nt]:typeof tt=="function"?tt:()=>{}}function createUnarySpacing(_e){return createUnaryUnit(_e,"spacing",8)}function getValue$2(_e,cr){if(typeof cr=="string"||cr==null)return cr;const gr=Math.abs(cr),Cr=_e(gr);return cr>=0?Cr:typeof Cr=="number"?-Cr:`-${Cr}`}function getStyleFromPropValue(_e,cr){return gr=>_e.reduce((Cr,Vr)=>(Cr[Vr]=getValue$2(cr,gr),Cr),{})}function resolveCssProperty(_e,cr,gr,Cr){if(cr.indexOf(gr)===-1)return null;const Vr=getCssProperties(gr),tt=getStyleFromPropValue(Vr,Cr),nt=_e[gr];return handleBreakpoints(_e,nt,tt)}function style$2(_e,cr){const gr=createUnarySpacing(_e.theme);return Object.keys(_e).map(Cr=>resolveCssProperty(_e,cr,Cr,gr)).reduce(merge$1,{})}function margin(_e){return style$2(_e,marginKeys)}margin.propTypes={},margin.filterProps=marginKeys;function padding(_e){return style$2(_e,paddingKeys)}padding.propTypes={},padding.filterProps=paddingKeys;function createSpacing(_e=8){if(_e.mui)return _e;const cr=createUnarySpacing({spacing:_e}),gr=(...Cr)=>(Cr.length===0?[1]:Cr).map(Vr=>{const tt=cr(Vr);return typeof tt=="number"?`${tt}px`:tt}).join(" ");return gr.mui=!0,gr}function compose(..._e){const cr=_e.reduce((Cr,Vr)=>(Vr.filterProps.forEach(tt=>{Cr[tt]=Vr}),Cr),{}),gr=Cr=>Object.keys(Cr).reduce((Vr,tt)=>cr[tt]?merge$1(Vr,cr[tt](Cr)):Vr,{});return gr.propTypes={},gr.filterProps=_e.reduce((Cr,Vr)=>Cr.concat(Vr.filterProps),[]),gr}function borderTransform(_e){return typeof _e!="number"?_e:`${_e}px solid`}function createBorderStyle(_e,cr){return style$3({prop:_e,themeKey:"borders",transform:cr})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=_e=>{if(_e.borderRadius!==void 0&&_e.borderRadius!==null){const cr=createUnaryUnit(_e.theme,"shape.borderRadius",4),gr=Cr=>({borderRadius:getValue$2(cr,Cr)});return handleBreakpoints(_e,_e.borderRadius,gr)}return null};borderRadius.propTypes={},borderRadius.filterProps=["borderRadius"],compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=_e=>{if(_e.gap!==void 0&&_e.gap!==null){const cr=createUnaryUnit(_e.theme,"spacing",8),gr=Cr=>({gap:getValue$2(cr,Cr)});return handleBreakpoints(_e,_e.gap,gr)}return null};gap.propTypes={},gap.filterProps=["gap"];const columnGap=_e=>{if(_e.columnGap!==void 0&&_e.columnGap!==null){const cr=createUnaryUnit(_e.theme,"spacing",8),gr=Cr=>({columnGap:getValue$2(cr,Cr)});return handleBreakpoints(_e,_e.columnGap,gr)}return null};columnGap.propTypes={},columnGap.filterProps=["columnGap"];const rowGap=_e=>{if(_e.rowGap!==void 0&&_e.rowGap!==null){const cr=createUnaryUnit(_e.theme,"spacing",8),gr=Cr=>({rowGap:getValue$2(cr,Cr)});return handleBreakpoints(_e,_e.rowGap,gr)}return null};rowGap.propTypes={},rowGap.filterProps=["rowGap"];const gridColumn=style$3({prop:"gridColumn"}),gridRow=style$3({prop:"gridRow"}),gridAutoFlow=style$3({prop:"gridAutoFlow"}),gridAutoColumns=style$3({prop:"gridAutoColumns"}),gridAutoRows=style$3({prop:"gridAutoRows"}),gridTemplateColumns=style$3({prop:"gridTemplateColumns"}),gridTemplateRows=style$3({prop:"gridTemplateRows"}),gridTemplateAreas=style$3({prop:"gridTemplateAreas"}),gridArea=style$3({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(_e,cr){return cr==="grey"?cr:_e}const color$1=style$3({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$3({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$3({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color$1,bgcolor,backgroundColor);function sizingTransform(_e){return _e<=1&&_e!==0?`${_e*100}%`:_e}const width=style$3({prop:"width",transform:sizingTransform}),maxWidth=_e=>{if(_e.maxWidth!==void 0&&_e.maxWidth!==null){const cr=gr=>{var Cr,Vr;const tt=((Cr=_e.theme)==null||(Cr=Cr.breakpoints)==null||(Cr=Cr.values)==null?void 0:Cr[gr])||values$1[gr];return tt?((Vr=_e.theme)==null||(Vr=Vr.breakpoints)==null?void 0:Vr.unit)!=="px"?{maxWidth:`${tt}${_e.theme.breakpoints.unit}`}:{maxWidth:tt}:{maxWidth:sizingTransform(gr)}};return handleBreakpoints(_e,_e.maxWidth,cr)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$3({prop:"minWidth",transform:sizingTransform}),height=style$3({prop:"height",transform:sizingTransform}),maxHeight=style$3({prop:"maxHeight",transform:sizingTransform}),minHeight=style$3({prop:"minHeight",transform:sizingTransform});style$3({prop:"size",cssProperty:"width",transform:sizingTransform}),style$3({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$3({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:_e=>({"@media print":{display:_e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function objectsHaveSameKeys(..._e){const cr=_e.reduce((Cr,Vr)=>Cr.concat(Object.keys(Vr)),[]),gr=new Set(cr);return _e.every(Cr=>gr.size===Object.keys(Cr).length)}function callIfFn(_e,cr){return typeof _e=="function"?_e(cr):_e}function unstable_createStyleFunctionSx(){function _e(gr,Cr,Vr,tt){const nt={[gr]:Cr,theme:Vr},st=tt[gr];if(!st)return{[gr]:Cr};const{cssProperty:dt=gr,themeKey:kt,transform:qt,style:ro}=st;if(Cr==null)return null;if(kt==="typography"&&Cr==="inherit")return{[gr]:Cr};const ht=getPath(Vr,kt)||{};return ro?ro(nt):handleBreakpoints(nt,Cr,po=>{let no=getStyleValue$1(ht,qt,po);return po===no&&typeof po=="string"&&(no=getStyleValue$1(ht,qt,`${gr}${po==="default"?"":capitalize$2(po)}`,po)),dt===!1?no:{[dt]:no}})}function cr(gr){var Cr;const{sx:Vr,theme:tt={}}=gr||{};if(!Vr)return null;const nt=(Cr=tt.unstable_sxConfig)!=null?Cr:defaultSxConfig;function st(dt){let kt=dt;if(typeof dt=="function")kt=dt(tt);else if(typeof dt!="object")return dt;if(!kt)return null;const qt=createEmptyBreakpointObject(tt.breakpoints),ro=Object.keys(qt);let ht=qt;return Object.keys(kt).forEach(po=>{const no=callIfFn(kt[po],tt);if(no!=null)if(typeof no=="object")if(nt[po])ht=merge$1(ht,_e(po,no,tt,nt));else{const Nt=handleBreakpoints({theme:tt},no,eo=>({[po]:eo}));objectsHaveSameKeys(Nt,no)?ht[po]=cr({sx:no,theme:tt}):ht=merge$1(ht,Nt)}else ht=merge$1(ht,_e(po,no,tt,nt))}),removeUnusedBreakpoints(ro,ht)}return Array.isArray(Vr)?Vr.map(st):st(Vr)}return cr}const styleFunctionSx$1=unstable_createStyleFunctionSx();styleFunctionSx$1.filterProps=["sx"];function applyStyles$2(_e,cr){const gr=this;return gr.vars&&typeof gr.getColorSchemeSelector=="function"?{[gr.getColorSchemeSelector(_e).replace(/(\[[^\]]+\])/,"*:where($1)")]:cr}:gr.palette.mode===_e?cr:{}}const _excluded$K=["breakpoints","palette","spacing","shape"];function createTheme$2(_e={},...cr){const{breakpoints:gr={},palette:Cr={},spacing:Vr,shape:tt={}}=_e,nt=_objectWithoutPropertiesLoose$2(_e,_excluded$K),st=createBreakpoints(gr),dt=createSpacing(Vr);let kt=deepmerge$1({breakpoints:st,direction:"ltr",components:{},palette:_extends$5({mode:"light"},Cr),spacing:dt,shape:_extends$5({},shape,tt)},nt);return kt.applyStyles=applyStyles$2,kt=cr.reduce((qt,ro)=>deepmerge$1(qt,ro),kt),kt.unstable_sxConfig=_extends$5({},defaultSxConfig,nt==null?void 0:nt.unstable_sxConfig),kt.unstable_sx=function(qt){return styleFunctionSx$1({sx:qt,theme:this})},kt}const createTheme$1=Object.freeze(Object.defineProperty({__proto__:null,default:createTheme$2,private_createBreakpoints:createBreakpoints,unstable_applyStyles:applyStyles$2},Symbol.toStringTag,{value:"Module"}));function isObjectEmpty$1(_e){return Object.keys(_e).length===0}function useTheme$4(_e=null){const cr=reactExports.useContext(ThemeContext$1);return!cr||isObjectEmpty$1(cr)?_e:cr}const systemDefaultTheme$2=createTheme$2();function useTheme$3(_e=systemDefaultTheme$2){return useTheme$4(_e)}function GlobalStyles$1({styles:_e,themeId:cr,defaultTheme:gr={}}){const Cr=useTheme$3(gr),Vr=typeof _e=="function"?_e(cr&&Cr[cr]||Cr):_e;return jsxRuntimeExports.jsx(GlobalStyles$2,{styles:Vr})}const _excluded$J=["sx"],splitProps=_e=>{var cr,gr;const Cr={systemProps:{},otherProps:{}},Vr=(cr=_e==null||(gr=_e.theme)==null?void 0:gr.unstable_sxConfig)!=null?cr:defaultSxConfig;return Object.keys(_e).forEach(tt=>{Vr[tt]?Cr.systemProps[tt]=_e[tt]:Cr.otherProps[tt]=_e[tt]}),Cr};function extendSxProp(_e){const{sx:cr}=_e,gr=_objectWithoutPropertiesLoose$2(_e,_excluded$J),{systemProps:Cr,otherProps:Vr}=splitProps(gr);let tt;return Array.isArray(cr)?tt=[Cr,...cr]:typeof cr=="function"?tt=(...nt)=>{const st=cr(...nt);return isPlainObject$2(st)?_extends$5({},Cr,st):Cr}:tt=_extends$5({},Cr,cr),_extends$5({},Vr,{sx:tt})}const styleFunctionSx=Object.freeze(Object.defineProperty({__proto__:null,default:styleFunctionSx$1,extendSxProp,unstable_createStyleFunctionSx,unstable_defaultSxConfig:defaultSxConfig},Symbol.toStringTag,{value:"Module"})),defaultGenerator=_e=>_e,createClassNameGenerator=()=>{let _e=defaultGenerator;return{configure(cr){_e=cr},generate(cr){return _e(cr)},reset(){_e=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();function r$2(_e){var cr,gr,Cr="";if(typeof _e=="string"||typeof _e=="number")Cr+=_e;else if(typeof _e=="object")if(Array.isArray(_e)){var Vr=_e.length;for(cr=0;crnt!=="theme"&&nt!=="sx"&&nt!=="as"})(styleFunctionSx$1);return reactExports.forwardRef(function(nt,st){const dt=useTheme$3(gr),kt=extendSxProp(nt),{className:qt,component:ro="div"}=kt,ht=_objectWithoutPropertiesLoose$2(kt,_excluded$I);return jsxRuntimeExports.jsx(tt,_extends$5({as:ro,ref:st,className:clsx(qt,Vr?Vr(Cr):Cr),theme:cr&&dt[cr]||dt},ht))})}const globalStateClasses={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass$1(_e,cr,gr="Mui"){const Cr=globalStateClasses[cr];return Cr?`${gr}-${Cr}`:`${ClassNameGenerator.generate(_e)}-${cr}`}function generateUtilityClasses$1(_e,cr,gr="Mui"){const Cr={};return cr.forEach(Vr=>{Cr[Vr]=generateUtilityClass$1(_e,Vr,gr)}),Cr}const boxClasses$1=generateUtilityClasses$1("MuiBox",["root"]),Box$1=createBox({defaultClassName:boxClasses$1.root,generateClassName:ClassNameGenerator.generate});var reactIs={exports:{}},reactIs_production_min={},b$5=Symbol.for("react.element"),c$2=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e$2=Symbol.for("react.strict_mode"),f$1=Symbol.for("react.profiler"),g$2=Symbol.for("react.provider"),h=Symbol.for("react.context"),k$4=Symbol.for("react.server_context"),l$1=Symbol.for("react.forward_ref"),m$3=Symbol.for("react.suspense"),n$2=Symbol.for("react.suspense_list"),p$2=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t$2=Symbol.for("react.offscreen"),u$2;u$2=Symbol.for("react.module.reference");function v$4(_e){if(typeof _e=="object"&&_e!==null){var cr=_e.$$typeof;switch(cr){case b$5:switch(_e=_e.type,_e){case d:case f$1:case e$2:case m$3:case n$2:return _e;default:switch(_e=_e&&_e.$$typeof,_e){case k$4:case h:case l$1:case q:case p$2:case g$2:return _e;default:return cr}}case c$2:return cr}}}reactIs_production_min.ContextConsumer=h,reactIs_production_min.ContextProvider=g$2,reactIs_production_min.Element=b$5,reactIs_production_min.ForwardRef=l$1,reactIs_production_min.Fragment=d,reactIs_production_min.Lazy=q,reactIs_production_min.Memo=p$2,reactIs_production_min.Portal=c$2,reactIs_production_min.Profiler=f$1,reactIs_production_min.StrictMode=e$2,reactIs_production_min.Suspense=m$3,reactIs_production_min.SuspenseList=n$2,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(_e){return v$4(_e)===h},reactIs_production_min.isContextProvider=function(_e){return v$4(_e)===g$2},reactIs_production_min.isElement=function(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===b$5},reactIs_production_min.isForwardRef=function(_e){return v$4(_e)===l$1},reactIs_production_min.isFragment=function(_e){return v$4(_e)===d},reactIs_production_min.isLazy=function(_e){return v$4(_e)===q},reactIs_production_min.isMemo=function(_e){return v$4(_e)===p$2},reactIs_production_min.isPortal=function(_e){return v$4(_e)===c$2},reactIs_production_min.isProfiler=function(_e){return v$4(_e)===f$1},reactIs_production_min.isStrictMode=function(_e){return v$4(_e)===e$2},reactIs_production_min.isSuspense=function(_e){return v$4(_e)===m$3},reactIs_production_min.isSuspenseList=function(_e){return v$4(_e)===n$2},reactIs_production_min.isValidElementType=function(_e){return typeof _e=="string"||typeof _e=="function"||_e===d||_e===f$1||_e===e$2||_e===m$3||_e===n$2||_e===t$2||typeof _e=="object"&&_e!==null&&(_e.$$typeof===q||_e.$$typeof===p$2||_e.$$typeof===g$2||_e.$$typeof===h||_e.$$typeof===l$1||_e.$$typeof===u$2||_e.getModuleId!==void 0)},reactIs_production_min.typeOf=v$4,reactIs.exports=reactIs_production_min;var reactIsExports=reactIs.exports;const fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName(_e){const cr=`${_e}`.match(fnNameMatchRegex);return cr&&cr[1]||""}function getFunctionComponentName(_e,cr=""){return _e.displayName||_e.name||getFunctionName(_e)||cr}function getWrappedName(_e,cr,gr){const Cr=getFunctionComponentName(cr);return _e.displayName||(Cr!==""?`${gr}(${Cr})`:gr)}function getDisplayName$2(_e){if(_e!=null){if(typeof _e=="string")return _e;if(typeof _e=="function")return getFunctionComponentName(_e,"Component");if(typeof _e=="object")switch(_e.$$typeof){case reactIsExports.ForwardRef:return getWrappedName(_e,_e.render,"ForwardRef");case reactIsExports.Memo:return getWrappedName(_e,_e.type,"memo");default:return}}}const getDisplayName$1=Object.freeze(Object.defineProperty({__proto__:null,default:getDisplayName$2,getFunctionName},Symbol.toStringTag,{value:"Module"})),_excluded$H=["ownerState"],_excluded2$3=["variants"],_excluded3$2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$2(_e){return Object.keys(_e).length===0}function isStringTag$1(_e){return typeof _e=="string"&&_e.charCodeAt(0)>96}function shouldForwardProp$1(_e){return _e!=="ownerState"&&_e!=="theme"&&_e!=="sx"&&_e!=="as"}const systemDefaultTheme$1=createTheme$2(),lowercaseFirstLetter$1=_e=>_e&&_e.charAt(0).toLowerCase()+_e.slice(1);function resolveTheme$1({defaultTheme:_e,theme:cr,themeId:gr}){return isEmpty$2(cr)?_e:cr[gr]||cr}function defaultOverridesResolver$1(_e){return _e?(cr,gr)=>gr[_e]:null}function processStyleArg$1(_e,cr){let{ownerState:gr}=cr,Cr=_objectWithoutPropertiesLoose$2(cr,_excluded$H);const Vr=typeof _e=="function"?_e(_extends$5({ownerState:gr},Cr)):_e;if(Array.isArray(Vr))return Vr.flatMap(tt=>processStyleArg$1(tt,_extends$5({ownerState:gr},Cr)));if(Vr&&typeof Vr=="object"&&Array.isArray(Vr.variants)){const{variants:tt=[]}=Vr;let nt=_objectWithoutPropertiesLoose$2(Vr,_excluded2$3);return tt.forEach(st=>{let dt=!0;typeof st.props=="function"?dt=st.props(_extends$5({ownerState:gr},Cr,gr)):Object.keys(st.props).forEach(kt=>{(gr==null?void 0:gr[kt])!==st.props[kt]&&Cr[kt]!==st.props[kt]&&(dt=!1)}),dt&&(Array.isArray(nt)||(nt=[nt]),nt.push(typeof st.style=="function"?st.style(_extends$5({ownerState:gr},Cr,gr)):st.style))}),nt}return Vr}function createStyled$2(_e={}){const{themeId:cr,defaultTheme:gr=systemDefaultTheme$1,rootShouldForwardProp:Cr=shouldForwardProp$1,slotShouldForwardProp:Vr=shouldForwardProp$1}=_e,tt=nt=>styleFunctionSx$1(_extends$5({},nt,{theme:resolveTheme$1(_extends$5({},nt,{defaultTheme:gr,themeId:cr}))}));return tt.__mui_systemSx=!0,(nt,st={})=>{internal_processStyles(nt,go=>go.filter(bo=>!(bo!=null&&bo.__mui_systemSx)));const{name:dt,slot:kt,skipVariantsResolver:qt,skipSx:ro,overridesResolver:ht=defaultOverridesResolver$1(lowercaseFirstLetter$1(kt))}=st,po=_objectWithoutPropertiesLoose$2(st,_excluded3$2),no=qt!==void 0?qt:kt&&kt!=="Root"&&kt!=="root"||!1,Nt=ro||!1;let eo,Wt=shouldForwardProp$1;kt==="Root"||kt==="root"?Wt=Cr:kt?Wt=Vr:isStringTag$1(nt)&&(Wt=void 0);const St=styled$2(nt,_extends$5({shouldForwardProp:Wt,label:eo},po)),Ot=go=>typeof go=="function"&&go.__emotion_real!==go||isPlainObject$2(go)?bo=>processStyleArg$1(go,_extends$5({},bo,{theme:resolveTheme$1({theme:bo.theme,defaultTheme:gr,themeId:cr})})):go,uo=(go,...bo)=>{let oo=Ot(go);const Ro=bo?bo.map(Ot):[];dt&&ht&&Ro.push(so=>{const wo=resolveTheme$1(_extends$5({},so,{defaultTheme:gr,themeId:cr}));if(!wo.components||!wo.components[dt]||!wo.components[dt].styleOverrides)return null;const xt=wo.components[dt].styleOverrides,Mt={};return Object.entries(xt).forEach(([ho,io])=>{Mt[ho]=processStyleArg$1(io,_extends$5({},so,{theme:wo}))}),ht(so,Mt)}),dt&&!no&&Ro.push(so=>{var wo;const xt=resolveTheme$1(_extends$5({},so,{defaultTheme:gr,themeId:cr})),Mt=xt==null||(wo=xt.components)==null||(wo=wo[dt])==null?void 0:wo.variants;return processStyleArg$1({variants:Mt},_extends$5({},so,{theme:xt}))}),Nt||Ro.push(tt);const pt=Ro.length-bo.length;if(Array.isArray(go)&&pt>0){const so=new Array(pt).fill("");oo=[...go,...so],oo.raw=[...go.raw,...so]}const lo=St(oo,...Ro);return nt.muiName&&(lo.muiName=nt.muiName),lo};return St.withConfig&&(uo.withConfig=St.withConfig),uo}}const styled$1=createStyled$2();function resolveProps(_e,cr){const gr=_extends$5({},cr);return Object.keys(_e).forEach(Cr=>{if(Cr.toString().match(/^(components|slots)$/))gr[Cr]=_extends$5({},_e[Cr],gr[Cr]);else if(Cr.toString().match(/^(componentsProps|slotProps)$/)){const Vr=_e[Cr]||{},tt=cr[Cr];gr[Cr]={},!tt||!Object.keys(tt)?gr[Cr]=Vr:!Vr||!Object.keys(Vr)?gr[Cr]=tt:(gr[Cr]=_extends$5({},tt),Object.keys(Vr).forEach(nt=>{gr[Cr][nt]=resolveProps(Vr[nt],tt[nt])}))}else gr[Cr]===void 0&&(gr[Cr]=_e[Cr])}),gr}function getThemeProps(_e){const{theme:cr,name:gr,props:Cr}=_e;return!cr||!cr.components||!cr.components[gr]||!cr.components[gr].defaultProps?Cr:resolveProps(cr.components[gr].defaultProps,Cr)}function useThemeProps$2({props:_e,name:cr,defaultTheme:gr,themeId:Cr}){let Vr=useTheme$3(gr);return Cr&&(Vr=Vr[Cr]||Vr),getThemeProps({theme:Vr,name:cr,props:_e})}const useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useMediaQueryOld(_e,cr,gr,Cr,Vr){const[tt,nt]=reactExports.useState(()=>Vr&&gr?gr(_e).matches:Cr?Cr(_e).matches:cr);return useEnhancedEffect(()=>{let st=!0;if(!gr)return;const dt=gr(_e),kt=()=>{st&&nt(dt.matches)};return kt(),dt.addListener(kt),()=>{st=!1,dt.removeListener(kt)}},[_e,gr]),tt}const maybeReactUseSyncExternalStore=reactExports.useSyncExternalStore;function useMediaQueryNew(_e,cr,gr,Cr,Vr){const tt=reactExports.useCallback(()=>cr,[cr]),nt=reactExports.useMemo(()=>{if(Vr&&gr)return()=>gr(_e).matches;if(Cr!==null){const{matches:kt}=Cr(_e);return()=>kt}return tt},[tt,_e,Cr,Vr,gr]),[st,dt]=reactExports.useMemo(()=>{if(gr===null)return[tt,()=>()=>{}];const kt=gr(_e);return[()=>kt.matches,qt=>(kt.addListener(qt),()=>{kt.removeListener(qt)})]},[tt,gr,_e]);return maybeReactUseSyncExternalStore(dt,st,nt)}function useMediaQuery(_e,cr={}){const gr=useTheme$4(),Cr=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:Vr=!1,matchMedia:tt=Cr?window.matchMedia:null,ssrMatchMedia:nt=null,noSsr:st=!1}=getThemeProps({name:"MuiUseMediaQuery",props:cr,theme:gr});let dt=typeof _e=="function"?_e(gr):_e;return dt=dt.replace(/^@media( ?)/m,""),(maybeReactUseSyncExternalStore!==void 0?useMediaQueryNew:useMediaQueryOld)(dt,Vr,tt,nt,st)}function clamp$2(_e,cr=Number.MIN_SAFE_INTEGER,gr=Number.MAX_SAFE_INTEGER){return Math.max(cr,Math.min(_e,gr))}const clamp$1=Object.freeze(Object.defineProperty({__proto__:null,default:clamp$2},Symbol.toStringTag,{value:"Module"}));function createChainedFunction(..._e){return _e.reduce((cr,gr)=>gr==null?cr:function(...Cr){cr.apply(this,Cr),gr.apply(this,Cr)},()=>{})}function debounce$3(_e,cr=166){let gr;function Cr(...Vr){const tt=()=>{_e.apply(this,Vr)};clearTimeout(gr),gr=setTimeout(tt,cr)}return Cr.clear=()=>{clearTimeout(gr)},Cr}function deprecatedPropType(_e,cr){return()=>null}function isMuiElement(_e,cr){var gr,Cr;return reactExports.isValidElement(_e)&&cr.indexOf((gr=_e.type.muiName)!=null?gr:(Cr=_e.type)==null||(Cr=Cr._payload)==null||(Cr=Cr.value)==null?void 0:Cr.muiName)!==-1}function ownerDocument(_e){return _e&&_e.ownerDocument||document}function ownerWindow(_e){return ownerDocument(_e).defaultView||window}function requirePropFactory(_e,cr){return()=>null}function setRef(_e,cr){typeof _e=="function"?_e(cr):_e&&(_e.current=cr)}let globalId=0;function useGlobalId(_e){const[cr,gr]=reactExports.useState(_e),Cr=_e||cr;return reactExports.useEffect(()=>{cr==null&&(globalId+=1,gr(`mui-${globalId}`))},[cr]),Cr}const maybeReactUseId=React$4.useId;function useId(_e){if(maybeReactUseId!==void 0){const cr=maybeReactUseId();return _e??cr}return useGlobalId(_e)}function unsupportedProp(_e,cr,gr,Cr,Vr){return null}function useControlled({controlled:_e,default:cr,name:gr,state:Cr="value"}){const{current:Vr}=reactExports.useRef(_e!==void 0),[tt,nt]=reactExports.useState(cr),st=Vr?_e:tt,dt=reactExports.useCallback(kt=>{Vr||nt(kt)},[]);return[st,dt]}function useEventCallback(_e){const cr=reactExports.useRef(_e);return useEnhancedEffect(()=>{cr.current=_e}),reactExports.useRef((...gr)=>(0,cr.current)(...gr)).current}function useForkRef(..._e){return reactExports.useMemo(()=>_e.every(cr=>cr==null)?null:cr=>{_e.forEach(gr=>{setRef(gr,cr)})},_e)}const UNINITIALIZED={};function useLazyRef(_e,cr){const gr=reactExports.useRef(UNINITIALIZED);return gr.current===UNINITIALIZED&&(gr.current=_e(cr)),gr}const EMPTY=[];function useOnMount(_e){reactExports.useEffect(_e,EMPTY)}class Timeout{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Timeout}start(cr,gr){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,gr()},cr)}}function useTimeout(){const _e=useLazyRef(Timeout.create).current;return useOnMount(_e.disposeEffect),_e}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1;const hadFocusVisibleRecentlyTimeout=new Timeout,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(_e){const{type:cr,tagName:gr}=_e;return!!(gr==="INPUT"&&inputTypesWhitelist[cr]&&!_e.readOnly||gr==="TEXTAREA"&&!_e.readOnly||_e.isContentEditable)}function handleKeyDown(_e){_e.metaKey||_e.altKey||_e.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(_e){_e.addEventListener("keydown",handleKeyDown,!0),_e.addEventListener("mousedown",handlePointerDown,!0),_e.addEventListener("pointerdown",handlePointerDown,!0),_e.addEventListener("touchstart",handlePointerDown,!0),_e.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(_e){const{target:cr}=_e;try{return cr.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(cr)}function useIsFocusVisible(){const _e=reactExports.useCallback(Vr=>{Vr!=null&&prepare(Vr.ownerDocument)},[]),cr=reactExports.useRef(!1);function gr(){return cr.current?(hadFocusVisibleRecently=!0,hadFocusVisibleRecentlyTimeout.start(100,()=>{hadFocusVisibleRecently=!1}),cr.current=!1,!0):!1}function Cr(Vr){return isFocusVisible(Vr)?(cr.current=!0,!0):!1}return{isFocusVisibleRef:cr,onFocus:Cr,onBlur:gr,ref:_e}}function getScrollbarSize$1(_e){const cr=_e.documentElement.clientWidth;return Math.abs(window.innerWidth-cr)}let cachedType;function detectScrollType(){if(cachedType)return cachedType;const _e=document.createElement("div"),cr=document.createElement("div");return cr.style.width="10px",cr.style.height="1px",_e.appendChild(cr),_e.dir="rtl",_e.style.fontSize="14px",_e.style.width="4px",_e.style.height="1px",_e.style.position="absolute",_e.style.top="-1000px",_e.style.overflow="scroll",document.body.appendChild(_e),cachedType="reverse",_e.scrollLeft>0?cachedType="default":(_e.scrollLeft=1,_e.scrollLeft===0&&(cachedType="negative")),document.body.removeChild(_e),cachedType}function getNormalizedScrollLeft(_e,cr){const gr=_e.scrollLeft;if(cr!=="rtl")return gr;switch(detectScrollType()){case"negative":return _e.scrollWidth-_e.clientWidth+gr;case"reverse":return _e.scrollWidth-_e.clientWidth-gr;default:return gr}}const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function composeClasses(_e,cr,gr=void 0){const Cr={};return Object.keys(_e).forEach(Vr=>{Cr[Vr]=_e[Vr].reduce((tt,nt)=>{if(nt){const st=cr(nt);st!==""&&tt.push(st),gr&&gr[nt]&&tt.push(gr[nt])}return tt},[]).join(" ")}),Cr}const ThemeContext=reactExports.createContext(null);function useTheme$2(){return reactExports.useContext(ThemeContext)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(_e,cr){return typeof cr=="function"?cr(_e):_extends$5({},_e,cr)}function ThemeProvider$2(_e){const{children:cr,theme:gr}=_e,Cr=useTheme$2(),Vr=reactExports.useMemo(()=>{const tt=Cr===null?gr:mergeOuterLocalTheme(Cr,gr);return tt!=null&&(tt[nested]=Cr!==null),tt},[gr,Cr]);return jsxRuntimeExports.jsx(ThemeContext.Provider,{value:Vr,children:cr})}const _excluded$G=["value"],RtlContext=reactExports.createContext();function RtlProvider(_e){let{value:cr}=_e,gr=_objectWithoutPropertiesLoose$2(_e,_excluded$G);return jsxRuntimeExports.jsx(RtlContext.Provider,_extends$5({value:cr??!0},gr))}const useRtl=()=>reactExports.useContext(RtlContext)??!1,EMPTY_THEME={};function useThemeScoping(_e,cr,gr,Cr=!1){return reactExports.useMemo(()=>{const Vr=_e&&cr[_e]||cr;if(typeof gr=="function"){const tt=gr(Vr),nt=_e?_extends$5({},cr,{[_e]:tt}):tt;return Cr?()=>nt:nt}return _e?_extends$5({},cr,{[_e]:gr}):_extends$5({},cr,gr)},[_e,cr,gr,Cr])}function ThemeProvider$1(_e){const{children:cr,theme:gr,themeId:Cr}=_e,Vr=useTheme$4(EMPTY_THEME),tt=useTheme$2()||EMPTY_THEME,nt=useThemeScoping(Cr,Vr,gr),st=useThemeScoping(Cr,tt,gr,!0),dt=nt.direction==="rtl";return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:st,children:jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:nt,children:jsxRuntimeExports.jsx(RtlProvider,{value:dt,children:cr})})})}const _excluded$F=["component","direction","spacing","divider","children","className","useFlexGap"],defaultTheme$2=createTheme$2(),defaultCreateStyledComponent=styled$1("div",{name:"MuiStack",slot:"Root",overridesResolver:(_e,cr)=>cr.root});function useThemePropsDefault(_e){return useThemeProps$2({props:_e,name:"MuiStack",defaultTheme:defaultTheme$2})}function joinChildren(_e,cr){const gr=reactExports.Children.toArray(_e).filter(Boolean);return gr.reduce((Cr,Vr,tt)=>(Cr.push(Vr),tt({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[_e],style$1=({ownerState:_e,theme:cr})=>{let gr=_extends$5({display:"flex",flexDirection:"column"},handleBreakpoints({theme:cr},resolveBreakpointValues({values:_e.direction,breakpoints:cr.breakpoints.values}),Cr=>({flexDirection:Cr})));if(_e.spacing){const Cr=createUnarySpacing(cr),Vr=Object.keys(cr.breakpoints.values).reduce((st,dt)=>((typeof _e.spacing=="object"&&_e.spacing[dt]!=null||typeof _e.direction=="object"&&_e.direction[dt]!=null)&&(st[dt]=!0),st),{}),tt=resolveBreakpointValues({values:_e.direction,base:Vr}),nt=resolveBreakpointValues({values:_e.spacing,base:Vr});typeof tt=="object"&&Object.keys(tt).forEach((st,dt,kt)=>{if(!tt[st]){const qt=dt>0?tt[kt[dt-1]]:"column";tt[st]=qt}}),gr=deepmerge$1(gr,handleBreakpoints({theme:cr},nt,(st,dt)=>_e.useFlexGap?{gap:getValue$2(Cr,st)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${getSideFromDirection(dt?tt[dt]:_e.direction)}`]:getValue$2(Cr,st)}}))}return gr=mergeBreakpointsInOrder(cr.breakpoints,gr),gr};function createStack(_e={}){const{createStyledComponent:cr=defaultCreateStyledComponent,useThemeProps:gr=useThemePropsDefault,componentName:Cr="MuiStack"}=_e,Vr=()=>composeClasses({root:["root"]},nt=>generateUtilityClass$1(Cr,nt),{}),tt=cr(style$1);return reactExports.forwardRef(function(nt,st){const dt=gr(nt),kt=extendSxProp(dt),{component:qt="div",direction:ro="column",spacing:ht=0,divider:po,children:no,className:Nt,useFlexGap:eo=!1}=kt,Wt=_objectWithoutPropertiesLoose$2(kt,_excluded$F),St={direction:ro,spacing:ht,useFlexGap:eo},Ot=Vr();return jsxRuntimeExports.jsx(tt,_extends$5({as:qt,ownerState:St,ref:st,className:clsx(Ot.root,Nt)},Wt,{children:po?joinChildren(no,po):no}))})}function createMixins(_e,cr){return _extends$5({toolbar:{minHeight:56,[_e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[_e.up("sm")]:{minHeight:64}}},cr)}var colorManipulator={},interopRequireDefault={exports:{}};(function(_e){function cr(gr){return gr&&gr.__esModule?gr:{default:gr}}_e.exports=cr,_e.exports.__esModule=!0,_e.exports.default=_e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports;const require$$1$1=getAugmentedNamespace(formatMuiErrorMessage),require$$2=getAugmentedNamespace(clamp$1);var _interopRequireDefault$5=interopRequireDefaultExports;Object.defineProperty(colorManipulator,"__esModule",{value:!0});var alpha_1=colorManipulator.alpha=alpha;colorManipulator.blend=blend,colorManipulator.colorChannel=void 0;var darken_1=colorManipulator.darken=darken;colorManipulator.decomposeColor=decomposeColor,colorManipulator.emphasize=emphasize;var getContrastRatio_1=colorManipulator.getContrastRatio=getContrastRatio;colorManipulator.getLuminance=getLuminance,colorManipulator.hexToRgb=hexToRgb,colorManipulator.hslToRgb=hslToRgb$1;var lighten_1=colorManipulator.lighten=lighten;colorManipulator.private_safeAlpha=private_safeAlpha,colorManipulator.private_safeColorChannel=void 0,colorManipulator.private_safeDarken=private_safeDarken,colorManipulator.private_safeEmphasize=private_safeEmphasize,colorManipulator.private_safeLighten=private_safeLighten,colorManipulator.recomposeColor=recomposeColor,colorManipulator.rgbToHex=rgbToHex;var _formatMuiErrorMessage2=_interopRequireDefault$5(require$$1$1),_clamp=_interopRequireDefault$5(require$$2);function clampWrapper(_e,cr=0,gr=1){return(0,_clamp.default)(_e,cr,gr)}function hexToRgb(_e){_e=_e.slice(1);const cr=new RegExp(`.{1,${_e.length>=6?2:1}}`,"g");let gr=_e.match(cr);return gr&&gr[0].length===1&&(gr=gr.map(Cr=>Cr+Cr)),gr?`rgb${gr.length===4?"a":""}(${gr.map((Cr,Vr)=>Vr<3?parseInt(Cr,16):Math.round(parseInt(Cr,16)/255*1e3)/1e3).join(", ")})`:""}function intToHex(_e){const cr=_e.toString(16);return cr.length===1?`0${cr}`:cr}function decomposeColor(_e){if(_e.type)return _e;if(_e.charAt(0)==="#")return decomposeColor(hexToRgb(_e));const cr=_e.indexOf("("),gr=_e.substring(0,cr);if(["rgb","rgba","hsl","hsla","color"].indexOf(gr)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(9,_e));let Cr=_e.substring(cr+1,_e.length-1),Vr;if(gr==="color"){if(Cr=Cr.split(" "),Vr=Cr.shift(),Cr.length===4&&Cr[3].charAt(0)==="/"&&(Cr[3]=Cr[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(Vr)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(10,Vr))}else Cr=Cr.split(",");return Cr=Cr.map(tt=>parseFloat(tt)),{type:gr,values:Cr,colorSpace:Vr}}const colorChannel=_e=>{const cr=decomposeColor(_e);return cr.values.slice(0,3).map((gr,Cr)=>cr.type.indexOf("hsl")!==-1&&Cr!==0?`${gr}%`:gr).join(" ")};colorManipulator.colorChannel=colorChannel;const private_safeColorChannel=(_e,cr)=>{try{return colorChannel(_e)}catch{return _e}};colorManipulator.private_safeColorChannel=private_safeColorChannel;function recomposeColor(_e){const{type:cr,colorSpace:gr}=_e;let{values:Cr}=_e;return cr.indexOf("rgb")!==-1?Cr=Cr.map((Vr,tt)=>tt<3?parseInt(Vr,10):Vr):cr.indexOf("hsl")!==-1&&(Cr[1]=`${Cr[1]}%`,Cr[2]=`${Cr[2]}%`),cr.indexOf("color")!==-1?Cr=`${gr} ${Cr.join(" ")}`:Cr=`${Cr.join(", ")}`,`${cr}(${Cr})`}function rgbToHex(_e){if(_e.indexOf("#")===0)return _e;const{values:cr}=decomposeColor(_e);return`#${cr.map((gr,Cr)=>intToHex(Cr===3?Math.round(255*gr):gr)).join("")}`}function hslToRgb$1(_e){_e=decomposeColor(_e);const{values:cr}=_e,gr=cr[0],Cr=cr[1]/100,Vr=cr[2]/100,tt=Cr*Math.min(Vr,1-Vr),nt=(kt,qt=(kt+gr/30)%12)=>Vr-tt*Math.max(Math.min(qt-3,9-qt,1),-1);let st="rgb";const dt=[Math.round(nt(0)*255),Math.round(nt(8)*255),Math.round(nt(4)*255)];return _e.type==="hsla"&&(st+="a",dt.push(cr[3])),recomposeColor({type:st,values:dt})}function getLuminance(_e){_e=decomposeColor(_e);let cr=_e.type==="hsl"||_e.type==="hsla"?decomposeColor(hslToRgb$1(_e)).values:_e.values;return cr=cr.map(gr=>(_e.type!=="color"&&(gr/=255),gr<=.03928?gr/12.92:((gr+.055)/1.055)**2.4)),Number((.2126*cr[0]+.7152*cr[1]+.0722*cr[2]).toFixed(3))}function getContrastRatio(_e,cr){const gr=getLuminance(_e),Cr=getLuminance(cr);return(Math.max(gr,Cr)+.05)/(Math.min(gr,Cr)+.05)}function alpha(_e,cr){return _e=decomposeColor(_e),cr=clampWrapper(cr),(_e.type==="rgb"||_e.type==="hsl")&&(_e.type+="a"),_e.type==="color"?_e.values[3]=`/${cr}`:_e.values[3]=cr,recomposeColor(_e)}function private_safeAlpha(_e,cr,gr){try{return alpha(_e,cr)}catch{return _e}}function darken(_e,cr){if(_e=decomposeColor(_e),cr=clampWrapper(cr),_e.type.indexOf("hsl")!==-1)_e.values[2]*=1-cr;else if(_e.type.indexOf("rgb")!==-1||_e.type.indexOf("color")!==-1)for(let gr=0;gr<3;gr+=1)_e.values[gr]*=1-cr;return recomposeColor(_e)}function private_safeDarken(_e,cr,gr){try{return darken(_e,cr)}catch{return _e}}function lighten(_e,cr){if(_e=decomposeColor(_e),cr=clampWrapper(cr),_e.type.indexOf("hsl")!==-1)_e.values[2]+=(100-_e.values[2])*cr;else if(_e.type.indexOf("rgb")!==-1)for(let gr=0;gr<3;gr+=1)_e.values[gr]+=(255-_e.values[gr])*cr;else if(_e.type.indexOf("color")!==-1)for(let gr=0;gr<3;gr+=1)_e.values[gr]+=(1-_e.values[gr])*cr;return recomposeColor(_e)}function private_safeLighten(_e,cr,gr){try{return lighten(_e,cr)}catch{return _e}}function emphasize(_e,cr=.15){return getLuminance(_e)>.5?darken(_e,cr):lighten(_e,cr)}function private_safeEmphasize(_e,cr,gr){try{return emphasize(_e,cr)}catch{return _e}}function blend(_e,cr,gr,Cr=1){const Vr=(dt,kt)=>Math.round((dt**(1/Cr)*(1-gr)+kt**(1/Cr)*gr)**Cr),tt=decomposeColor(_e),nt=decomposeColor(cr),st=[Vr(tt.values[0],nt.values[0]),Vr(tt.values[1],nt.values[1]),Vr(tt.values[2],nt.values[2])];return recomposeColor({type:"rgb",values:st})}const common={black:"#000",white:"#fff"},grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},_excluded$E=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common.white,default:common.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(_e,cr,gr,Cr){const Vr=Cr.light||Cr,tt=Cr.dark||Cr*1.5;_e[cr]||(_e.hasOwnProperty(gr)?_e[cr]=_e[gr]:cr==="light"?_e.light=lighten_1(_e.main,Vr):cr==="dark"&&(_e.dark=darken_1(_e.main,tt)))}function getDefaultPrimary(_e="light"){return _e==="dark"?{main:blue[200],light:blue[50],dark:blue[400]}:{main:blue[700],light:blue[400],dark:blue[800]}}function getDefaultSecondary(_e="light"){return _e==="dark"?{main:purple[200],light:purple[50],dark:purple[400]}:{main:purple[500],light:purple[300],dark:purple[700]}}function getDefaultError(_e="light"){return _e==="dark"?{main:red[500],light:red[300],dark:red[700]}:{main:red[700],light:red[400],dark:red[800]}}function getDefaultInfo(_e="light"){return _e==="dark"?{main:lightBlue[400],light:lightBlue[300],dark:lightBlue[700]}:{main:lightBlue[700],light:lightBlue[500],dark:lightBlue[900]}}function getDefaultSuccess(_e="light"){return _e==="dark"?{main:green[400],light:green[300],dark:green[700]}:{main:green[800],light:green[500],dark:green[900]}}function getDefaultWarning(_e="light"){return _e==="dark"?{main:orange[400],light:orange[300],dark:orange[700]}:{main:"#ed6c02",light:orange[500],dark:orange[900]}}function createPalette(_e){const{mode:cr="light",contrastThreshold:gr=3,tonalOffset:Cr=.2}=_e,Vr=_objectWithoutPropertiesLoose$2(_e,_excluded$E),tt=_e.primary||getDefaultPrimary(cr),nt=_e.secondary||getDefaultSecondary(cr),st=_e.error||getDefaultError(cr),dt=_e.info||getDefaultInfo(cr),kt=_e.success||getDefaultSuccess(cr),qt=_e.warning||getDefaultWarning(cr);function ro(no){return getContrastRatio_1(no,dark.text.primary)>=gr?dark.text.primary:light.text.primary}const ht=({color:no,name:Nt,mainShade:eo=500,lightShade:Wt=300,darkShade:St=700})=>{if(no=_extends$5({},no),!no.main&&no[eo]&&(no.main=no[eo]),!no.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage$1(11,Nt?` (${Nt})`:"",eo));if(typeof no.main!="string")throw new Error(formatMuiErrorMessage$1(12,Nt?` (${Nt})`:"",JSON.stringify(no.main)));return addLightOrDark(no,"light",Wt,Cr),addLightOrDark(no,"dark",St,Cr),no.contrastText||(no.contrastText=ro(no.main)),no},po={dark,light};return deepmerge$1(_extends$5({common:_extends$5({},common),mode:cr,primary:ht({color:tt,name:"primary"}),secondary:ht({color:nt,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:ht({color:st,name:"error"}),warning:ht({color:qt,name:"warning"}),info:ht({color:dt,name:"info"}),success:ht({color:kt,name:"success"}),grey,contrastThreshold:gr,getContrastText:ro,augmentColor:ht,tonalOffset:Cr},po[cr]),Vr)}const _excluded$D=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round$2(_e){return Math.round(_e*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(_e,cr){const gr=typeof cr=="function"?cr(_e):cr,{fontFamily:Cr=defaultFontFamily,fontSize:Vr=14,fontWeightLight:tt=300,fontWeightRegular:nt=400,fontWeightMedium:st=500,fontWeightBold:dt=700,htmlFontSize:kt=16,allVariants:qt,pxToRem:ro}=gr,ht=_objectWithoutPropertiesLoose$2(gr,_excluded$D),po=Vr/14,no=ro||(Wt=>`${Wt/kt*po}rem`),Nt=(Wt,St,Ot,uo,go)=>_extends$5({fontFamily:Cr,fontWeight:Wt,fontSize:no(St),lineHeight:Ot},Cr===defaultFontFamily?{letterSpacing:`${round$2(uo/St)}em`}:{},go,qt),eo={h1:Nt(tt,96,1.167,-1.5),h2:Nt(tt,60,1.2,-.5),h3:Nt(nt,48,1.167,0),h4:Nt(nt,34,1.235,.25),h5:Nt(nt,24,1.334,0),h6:Nt(st,20,1.6,.15),subtitle1:Nt(nt,16,1.75,.15),subtitle2:Nt(st,14,1.57,.1),body1:Nt(nt,16,1.5,.15),body2:Nt(nt,14,1.43,.15),button:Nt(st,14,1.75,.4,caseAllCaps),caption:Nt(nt,12,1.66,.4),overline:Nt(nt,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge$1(_extends$5({htmlFontSize:kt,pxToRem:no,fontFamily:Cr,fontSize:Vr,fontWeightLight:tt,fontWeightRegular:nt,fontWeightMedium:st,fontWeightBold:dt},eo),ht,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(..._e){return[`${_e[0]}px ${_e[1]}px ${_e[2]}px ${_e[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${_e[4]}px ${_e[5]}px ${_e[6]}px ${_e[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${_e[8]}px ${_e[9]}px ${_e[10]}px ${_e[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],_excluded$C=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(_e){return`${Math.round(_e)}ms`}function getAutoHeightDuration(_e){if(!_e)return 0;const cr=_e/36;return Math.round((4+15*cr**.25+cr/5)*10)}function createTransitions(_e){const cr=_extends$5({},easing,_e.easing),gr=_extends$5({},duration,_e.duration);return _extends$5({getAutoHeightDuration,create:(Cr=["all"],Vr={})=>{const{duration:tt=gr.standard,easing:nt=cr.easeInOut,delay:st=0}=Vr;return _objectWithoutPropertiesLoose$2(Vr,_excluded$C),(Array.isArray(Cr)?Cr:[Cr]).map(dt=>`${dt} ${typeof tt=="string"?tt:formatMs(tt)} ${nt} ${typeof st=="string"?st:formatMs(st)}`).join(",")}},_e,{easing:cr,duration:gr})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_excluded$B=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(_e={},...cr){const{mixins:gr={},palette:Cr={},transitions:Vr={},typography:tt={}}=_e,nt=_objectWithoutPropertiesLoose$2(_e,_excluded$B);if(_e.vars)throw new Error(formatMuiErrorMessage$1(18));const st=createPalette(Cr),dt=createTheme$2(_e);let kt=deepmerge$1(dt,{mixins:createMixins(dt.breakpoints,gr),palette:st,shadows:shadows.slice(),typography:createTypography(st,tt),transitions:createTransitions(Vr),zIndex:_extends$5({},zIndex)});return kt=deepmerge$1(kt,nt),kt=cr.reduce((qt,ro)=>deepmerge$1(qt,ro),kt),kt.unstable_sxConfig=_extends$5({},defaultSxConfig,nt==null?void 0:nt.unstable_sxConfig),kt.unstable_sx=function(qt){return styleFunctionSx$1({sx:qt,theme:this})},kt}const defaultTheme$1=createTheme();function useTheme$1(){const _e=useTheme$3(defaultTheme$1);return _e[THEME_ID]||_e}function useThemeProps$1({props:_e,name:cr}){return useThemeProps$2({props:_e,name:cr,defaultTheme:defaultTheme$1,themeId:THEME_ID})}var createStyled$1={},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(_e){function cr(gr,Cr){if(gr==null)return{};var Vr={};for(var tt in gr)if({}.hasOwnProperty.call(gr,tt)){if(Cr.indexOf(tt)>=0)continue;Vr[tt]=gr[tt]}return Vr}_e.exports=cr,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}const require$$1=getAugmentedNamespace(styledEngine),require$$4=getAugmentedNamespace(deepmerge),require$$5=getAugmentedNamespace(capitalize$1),require$$6=getAugmentedNamespace(getDisplayName$1),require$$7=getAugmentedNamespace(createTheme$1),require$$8=getAugmentedNamespace(styleFunctionSx);var _interopRequireDefault$4=interopRequireDefaultExports;Object.defineProperty(createStyled$1,"__esModule",{value:!0});var _default=createStyled$1.default=createStyled;createStyled$1.shouldForwardProp=shouldForwardProp,createStyled$1.systemDefaultTheme=void 0;var _extends2=_interopRequireDefault$4(require_extends()),_objectWithoutPropertiesLoose2=_interopRequireDefault$4(requireObjectWithoutPropertiesLoose()),_styledEngine$1=_interopRequireWildcard$1(require$$1),_deepmerge=require$$4;_interopRequireDefault$4(require$$5),_interopRequireDefault$4(require$$6);var _createTheme=_interopRequireDefault$4(require$$7),_styleFunctionSx=_interopRequireDefault$4(require$$8);const _excluded$A=["ownerState"],_excluded2$2=["variants"],_excluded3$1=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache$1(_e){if(typeof WeakMap!="function")return null;var cr=new WeakMap,gr=new WeakMap;return(_getRequireWildcardCache$1=function(Cr){return Cr?gr:cr})(_e)}function _interopRequireWildcard$1(_e,cr){if(_e&&_e.__esModule)return _e;if(_e===null||typeof _e!="object"&&typeof _e!="function")return{default:_e};var gr=_getRequireWildcardCache$1(cr);if(gr&&gr.has(_e))return gr.get(_e);var Cr={__proto__:null},Vr=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var tt in _e)if(tt!=="default"&&Object.prototype.hasOwnProperty.call(_e,tt)){var nt=Vr?Object.getOwnPropertyDescriptor(_e,tt):null;nt&&(nt.get||nt.set)?Object.defineProperty(Cr,tt,nt):Cr[tt]=_e[tt]}return Cr.default=_e,gr&&gr.set(_e,Cr),Cr}function isEmpty$1(_e){return Object.keys(_e).length===0}function isStringTag(_e){return typeof _e=="string"&&_e.charCodeAt(0)>96}function shouldForwardProp(_e){return _e!=="ownerState"&&_e!=="theme"&&_e!=="sx"&&_e!=="as"}const systemDefaultTheme=createStyled$1.systemDefaultTheme=(0,_createTheme.default)(),lowercaseFirstLetter=_e=>_e&&_e.charAt(0).toLowerCase()+_e.slice(1);function resolveTheme({defaultTheme:_e,theme:cr,themeId:gr}){return isEmpty$1(cr)?_e:cr[gr]||cr}function defaultOverridesResolver(_e){return _e?(cr,gr)=>gr[_e]:null}function processStyleArg(_e,cr){let{ownerState:gr}=cr,Cr=(0,_objectWithoutPropertiesLoose2.default)(cr,_excluded$A);const Vr=typeof _e=="function"?_e((0,_extends2.default)({ownerState:gr},Cr)):_e;if(Array.isArray(Vr))return Vr.flatMap(tt=>processStyleArg(tt,(0,_extends2.default)({ownerState:gr},Cr)));if(Vr&&typeof Vr=="object"&&Array.isArray(Vr.variants)){const{variants:tt=[]}=Vr;let nt=(0,_objectWithoutPropertiesLoose2.default)(Vr,_excluded2$2);return tt.forEach(st=>{let dt=!0;typeof st.props=="function"?dt=st.props((0,_extends2.default)({ownerState:gr},Cr,gr)):Object.keys(st.props).forEach(kt=>{(gr==null?void 0:gr[kt])!==st.props[kt]&&Cr[kt]!==st.props[kt]&&(dt=!1)}),dt&&(Array.isArray(nt)||(nt=[nt]),nt.push(typeof st.style=="function"?st.style((0,_extends2.default)({ownerState:gr},Cr,gr)):st.style))}),nt}return Vr}function createStyled(_e={}){const{themeId:cr,defaultTheme:gr=systemDefaultTheme,rootShouldForwardProp:Cr=shouldForwardProp,slotShouldForwardProp:Vr=shouldForwardProp}=_e,tt=nt=>(0,_styleFunctionSx.default)((0,_extends2.default)({},nt,{theme:resolveTheme((0,_extends2.default)({},nt,{defaultTheme:gr,themeId:cr}))}));return tt.__mui_systemSx=!0,(nt,st={})=>{(0,_styledEngine$1.internal_processStyles)(nt,go=>go.filter(bo=>!(bo!=null&&bo.__mui_systemSx)));const{name:dt,slot:kt,skipVariantsResolver:qt,skipSx:ro,overridesResolver:ht=defaultOverridesResolver(lowercaseFirstLetter(kt))}=st,po=(0,_objectWithoutPropertiesLoose2.default)(st,_excluded3$1),no=qt!==void 0?qt:kt&&kt!=="Root"&&kt!=="root"||!1,Nt=ro||!1;let eo,Wt=shouldForwardProp;kt==="Root"||kt==="root"?Wt=Cr:kt?Wt=Vr:isStringTag(nt)&&(Wt=void 0);const St=(0,_styledEngine$1.default)(nt,(0,_extends2.default)({shouldForwardProp:Wt,label:eo},po)),Ot=go=>typeof go=="function"&&go.__emotion_real!==go||(0,_deepmerge.isPlainObject)(go)?bo=>processStyleArg(go,(0,_extends2.default)({},bo,{theme:resolveTheme({theme:bo.theme,defaultTheme:gr,themeId:cr})})):go,uo=(go,...bo)=>{let oo=Ot(go);const Ro=bo?bo.map(Ot):[];dt&&ht&&Ro.push(so=>{const wo=resolveTheme((0,_extends2.default)({},so,{defaultTheme:gr,themeId:cr}));if(!wo.components||!wo.components[dt]||!wo.components[dt].styleOverrides)return null;const xt=wo.components[dt].styleOverrides,Mt={};return Object.entries(xt).forEach(([ho,io])=>{Mt[ho]=processStyleArg(io,(0,_extends2.default)({},so,{theme:wo}))}),ht(so,Mt)}),dt&&!no&&Ro.push(so=>{var wo;const xt=resolveTheme((0,_extends2.default)({},so,{defaultTheme:gr,themeId:cr})),Mt=xt==null||(wo=xt.components)==null||(wo=wo[dt])==null?void 0:wo.variants;return processStyleArg({variants:Mt},(0,_extends2.default)({},so,{theme:xt}))}),Nt||Ro.push(tt);const pt=Ro.length-bo.length;if(Array.isArray(go)&&pt>0){const so=new Array(pt).fill("");oo=[...go,...so],oo.raw=[...go.raw,...so]}const lo=St(oo,...Ro);return nt.muiName&&(lo.muiName=nt.muiName),lo};return St.withConfig&&(uo.withConfig=St.withConfig),uo}}function slotShouldForwardProp(_e){return _e!=="ownerState"&&_e!=="theme"&&_e!=="sx"&&_e!=="as"}const rootShouldForwardProp=_e=>slotShouldForwardProp(_e)&&_e!=="classes",styled=_default({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),_excluded$z=["theme"];function ThemeProvider(_e){let{theme:cr}=_e,gr=_objectWithoutPropertiesLoose$2(_e,_excluded$z);const Cr=cr[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends$5({},gr,{themeId:Cr?THEME_ID:void 0,theme:Cr||cr}))}const getOverlayAlpha=_e=>{let cr;return _e<1?cr=5.11916*_e**2:cr=4.5*Math.log(_e+1)+2,(cr/100).toFixed(2)},objectFromEntries=Object.fromEntries?Object.fromEntries:_e=>{if(!_e||!_e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const cr={};return Object.keys(_e).forEach(gr=>{const[Cr,Vr]=_e[gr];cr[Cr]=Vr}),cr};function objectKeys(_e){return Object.keys(_e)}function assert(_e,cr){if(!_e)throw new Error(cr)}function typeGuard(_e,cr){return cr}const classnames$1=_e=>{const cr=_e.length;let gr=0,Cr="";for(;grVr===cr[tt]).indexOf(!1)>=0)&&(Cr.current={v:_e(),prevDeps:[...cr]}),Cr.current.v}function matchCSSObject(_e){return _e instanceof Object&&!("styles"in _e)&&!("length"in _e)&&!("__emotion_styles"in _e)}const{createCssAndCx}=(()=>{function _e(gr,Cr,Vr){const tt=[],nt=getRegisteredStyles(gr,tt,Vr);return tt.length<2?Vr:nt+Cr(tt)}function cr(gr){const{cache:Cr}=gr,Vr=(...tt)=>{const nt=serializeStyles(tt,Cr.registered);insertStyles(Cr,nt,!1);const st=`${Cr.key}-${nt.name}`;e:{const dt=tt[0];if(!matchCSSObject(dt))break e;increaseSpecificityToTakePrecedenceOverMediaQueries.saveClassNameCSSObjectMapping(Cr,st,dt)}return st};return{css:Vr,cx:(...tt)=>{const nt=classnames$1(tt),st=increaseSpecificityToTakePrecedenceOverMediaQueries.fixClassName(Cr,nt,Vr);return _e(Cr.registered,Vr,st)}}}return{createCssAndCx:cr}})();function createUseCssAndCx(_e){const{useCache:cr}=_e;function gr(){const Cr=cr(),{css:Vr,cx:tt}=useGuaranteedMemo(()=>createCssAndCx({cache:Cr}),[Cr]);return{css:Vr,cx:tt}}return{useCssAndCx:gr}}const increaseSpecificityToTakePrecedenceOverMediaQueries=(()=>{const _e=new WeakMap;return{saveClassNameCSSObjectMapping:(cr,gr,Cr)=>{let Vr=_e.get(cr);Vr===void 0&&(Vr=new Map,_e.set(cr,Vr)),Vr.set(gr,Cr)},fixClassName:(()=>{function cr(gr){let Cr=!1;return gr.map(([Vr,tt])=>{if(tt===void 0)return Vr;let nt;if(Cr)nt={"&&":tt};else{nt=Vr;for(const st in tt)if(st.startsWith("@media")){Cr=!0;break}}return nt})}return(gr,Cr,Vr)=>{const tt=_e.get(gr);return classnames$1(cr(Cr.split(" ").map(nt=>[nt,tt==null?void 0:tt.get(nt)])).map(nt=>typeof nt=="string"?nt:Vr(nt)))}})()}})();function getDependencyArrayRef(_e){if(!(_e instanceof Object)||typeof _e=="function")return _e;const cr=[];for(const gr in _e){const Cr=_e[gr],Vr=typeof Cr;if(!(Vr==="string"||Vr==="number"&&!isNaN(Cr)||Vr==="boolean"||Cr===void 0||Cr===null))return _e;cr.push(`${gr}:${Vr}_${Cr}`)}return"xSqLiJdLMd9s"+cr.join("|")}function mergeClasses$2(_e,cr,gr){if(!(cr instanceof Object))return _e;const Cr={};return objectKeys(_e).forEach(Vr=>Cr[Vr]=gr(_e[Vr],cr[Vr])),objectKeys(cr).forEach(Vr=>{if(Vr in _e)return;const tt=cr[Vr];typeof tt=="string"&&(Cr[Vr]=tt)}),Cr}const useMuiThemeStyleOverridesPlugin=({classes:_e,theme:cr,muiStyleOverridesParams:gr,css:Cr,cx:Vr,name:tt})=>{var nt,st;e:{if(tt==="makeStyle no name"){tt=void 0;break e}if(gr!==void 0&&tt===void 0)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}let dt;try{dt=tt===void 0?void 0:((st=(nt=cr.components)===null||nt===void 0?void 0:nt[tt])===null||st===void 0?void 0:st.styleOverrides)||void 0}catch{}const kt=reactExports.useMemo(()=>{if(dt===void 0)return;const qt={};for(const ro in dt){const ht=dt[ro];ht instanceof Object&&(qt[ro]=Cr(typeof ht=="function"?ht(Object.assign({theme:cr,ownerState:gr==null?void 0:gr.ownerState},gr==null?void 0:gr.props)):ht))}return qt},[dt,getDependencyArrayRef(gr==null?void 0:gr.props),getDependencyArrayRef(gr==null?void 0:gr.ownerState),Cr]);return _e=reactExports.useMemo(()=>mergeClasses$2(_e,kt,Vr),[_e,kt,Vr]),{classes:_e}};let counter$1=0;function createMakeStyles(_e){const{useTheme:cr,cache:gr}=_e,{useCache:Cr}=createUseCache({cacheProvidedAtInception:gr}),{useCssAndCx:Vr}=createUseCssAndCx({useCache:Cr});function tt(st){const{name:dt,uniqId:kt=`${counter$1++}`}=st??{},qt=typeof dt!="object"?dt:Object.keys(dt)[0];return function(ro){const ht=typeof ro=="function"?ro:()=>ro;return function(po,no){const Nt=cr();let{css:eo,cx:Wt}=Vr();const St=Cr();let Ot=reactExports.useMemo(()=>{const uo={},go=typeof Proxy<"u"&&new Proxy({},{get:(Ro,pt)=>(typeof pt=="symbol"&&assert(!1),uo[pt]=`${St.key}-${kt}${qt!==void 0?`-${qt}`:""}-${pt}-ref`)}),bo=ht(Nt,po,go||{}),oo=objectFromEntries(objectKeys(bo).map(Ro=>{const pt=bo[Ro];return pt.label||(pt.label=`${qt!==void 0?`${qt}-`:""}${Ro}`),[Ro,`${eo(pt)}${typeGuard(Ro,Ro in uo)?` ${uo[Ro]}`:""}`]}));return objectKeys(uo).forEach(Ro=>{Ro in oo||(oo[Ro]=uo[Ro])}),oo},[St,eo,Wt,Nt,getDependencyArrayRef(po)]);{const uo=no==null?void 0:no.props.classes;Ot=reactExports.useMemo(()=>mergeClasses$2(Ot,uo,Wt),[Ot,getDependencyArrayRef(uo),Wt])}{const uo=useMuiThemeStyleOverridesPlugin({classes:Ot,css:eo,cx:Wt,name:qt??"makeStyle no name",idOfUseStyles:kt,muiStyleOverridesParams:no,theme:Nt});uo.classes!==void 0&&(Ot=uo.classes),uo.css!==void 0&&(eo=uo.css),uo.cx!==void 0&&(Wt=uo.cx)}return{classes:Ot,theme:Nt,css:eo,cx:Wt}}}}function nt(){const st=cr(),{css:dt,cx:kt}=Vr();return{theme:st,css:dt,cx:kt}}return{makeStyles:tt,useStyles:nt}}const reactContext=reactExports.createContext(void 0),{createUseCache}=(()=>{function _e(){return reactExports.useContext(reactContext)}function cr(gr){const{cacheProvidedAtInception:Cr}=gr;function Vr(){var tt;const nt=__unsafe_useEmotionCache(),st=_e(),dt=(tt=Cr??st)!==null&&tt!==void 0?tt:nt;if(dt===null)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join(` `));return dt}return{useCache:Vr}}return{createUseCache:cr}})();function capitalize(_e){return _e.charAt(0).toUpperCase()+_e.slice(1)}var __rest$3=function(_e,cr){var gr={};for(var Cr in _e)Object.prototype.hasOwnProperty.call(_e,Cr)&&cr.indexOf(Cr)<0&&(gr[Cr]=_e[Cr]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vr=0,Cr=Object.getOwnPropertySymbols(_e);Vr{const po=tt,no=function(Nt){var{children:eo}=Nt,Wt=__rest$3(Nt,["children"]);return reactExports.createElement(po,Wt,eo)};return Object.defineProperty(no,"name",{value:capitalize(po)}),no})():tt,kt=(()=>{{const{name:no}=st??{};if(no!==void 0)return typeof no!="object"?no:Object.keys(no)[0]}let po;e:{const no=dt.displayName;if(typeof no!="string"||no==="")break e;po=no}e:{if(po!==void 0)break e;const no=dt.name;if(typeof no!="string"||no==="")break e;po=no}if(po!==void 0)return po=po.replace(/\$/g,"usd"),po=po.replace(/\(/g,"_").replace(/\)/g,"_"),po=po.replace(/[^a-zA-Z0-9-_]/g,"_"),po})(),qt=Cr(Object.assign(Object.assign({},st),{name:kt}))(typeof nt=="function"?(po,no,Nt)=>incorporateMediaQueries(nt(po,no,Nt)):incorporateMediaQueries(nt));function ro(po){for(const no in po)if(no!=="root")return!0;return!1}const ht=reactExports.forwardRef(function(po,no){const{className:Nt,classes:eo}=po,Wt=__rest$3(po,["className","classes"]),{classes:St,cx:Ot}=qt(po,{props:po}),uo=Ot(St.root,Nt);return fixedClassesByClasses.set(St,Object.assign(Object.assign({},St),{root:uo})),React$3.createElement(dt,Object.assign({ref:no,className:ro(St)?Nt:uo},typeof tt=="string"?{}:{classes:St},Wt))});return kt!==void 0&&(ht.displayName=`${capitalize(kt)}WithStyles`,Object.defineProperty(ht,"name",{value:ht.displayName})),ht}return Vr.getClasses=getClasses,{withStyles:Vr}}const fixedClassesByClasses=new WeakMap,errorMessageGetClasses="getClasses should only be used in conjunction with withStyles";function getClasses(_e){const cr=_e.classes;if(cr===void 0)throw new Error(errorMessageGetClasses);const gr=fixedClassesByClasses.get(cr);if(gr===void 0)throw new Error(errorMessageGetClasses);return gr}function incorporateMediaQueries(_e){const cr={},gr={};return Object.keys(_e).forEach(Cr=>(Cr.startsWith("@media")?gr:cr)[Cr]=_e[Cr]),Object.keys(gr).forEach(Cr=>{const Vr=gr[Cr];Object.keys(Vr).forEach(tt=>{var nt;return cr[tt]=Object.assign(Object.assign({},(nt=cr[tt])!==null&&nt!==void 0?nt:{}),{[Cr]:Vr[tt]})})}),cr}const isSSR$1=!(typeof document=="object"&&typeof(document==null?void 0:document.getElementById)=="function")&&!(typeof jest<"u")&&!(typeof mocha<"u")&&!(typeof __vitest_worker__<"u");var __rest$2=function(_e,cr){var gr={};for(var Cr in _e)Object.prototype.hasOwnProperty.call(_e,Cr)&&cr.indexOf(Cr)<0&&(gr[Cr]=_e[Cr]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vr=0,Cr=Object.getOwnPropertySymbols(_e);Vr({classes:nt,cx:st,css:dt})),name:void 0,doesUseNestedSelectors:!1})}}let counter=0;const nestedSelectorUsageTrackRecord=[];function createTss_internal(_e){const{useContext:cr,useCache:gr,useCssAndCx:Cr,usePlugin:Vr,name:tt,doesUseNestedSelectors:nt}=_e;return{withParams:()=>createTss_internal(Object.assign({},_e)),withName:st=>createTss_internal(Object.assign(Object.assign({},_e),{name:typeof st!="object"?st:Object.keys(st)[0]})),withNestedSelectors:()=>createTss_internal(Object.assign(Object.assign({},_e),{doesUseNestedSelectors:!0})),create:st=>{const dt=`x${counter++}`;if(tt!==void 0)for(;;){const qt=nestedSelectorUsageTrackRecord.find(ro=>ro.name===tt);if(qt===void 0)break;nestedSelectorUsageTrackRecord.splice(nestedSelectorUsageTrackRecord.indexOf(qt),1)}const kt=typeof st=="function"?st:()=>st;return function(qt){var ro,ht,po;const no=qt??{},{classesOverrides:Nt}=no,eo=__rest$2(no,["classesOverrides"]),Wt=cr(),{css:St,cx:Ot}=Cr(),uo=gr();let go=reactExports.useMemo(()=>{const oo={},Ro=kt(Object.assign(Object.assign(Object.assign({},qt),Wt),nt?{classes:typeof Proxy>"u"?{}:new Proxy({},{get:(lo,so)=>{if(typeof so=="symbol"&&assert(!1),isSSR$1&&tt===void 0)throw new Error(["tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.",'Solution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.'].join(` `));e:{if(tt===void 0)break e;let wo=nestedSelectorUsageTrackRecord.find(xt=>xt.name===tt&&xt.idOfUseStyles===dt);wo===void 0&&(wo={name:tt,idOfUseStyles:dt,nestedSelectorRuleNames:new Set},nestedSelectorUsageTrackRecord.push(wo)),wo.nestedSelectorRuleNames.add(so)}e:{if(tt===void 0||nestedSelectorUsageTrackRecord.find(wo=>wo.name===tt&&wo.idOfUseStyles!==dt&&wo.nestedSelectorRuleNames.has(so))===void 0)break e;throw new Error([`tss-react: There are in your codebase two different useStyles named "${tt}" that`,`both use use the nested selector ${so}. @@ -150,4 +150,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L`+Cr+" "+Cr+` L0 `+Cr+` L`+Cr/2+` 0 - `,fill:Vr,opacity:nt,strokeWidth:dt,stroke:kt===void 0?"transparent":kt,style:{pointerEvents:"none"}})})};function p(){return p=Object.assign?Object.assign.bind():function(_e){for(var cr=1;cr>1;if(gr>0&&typeof cr[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=cr;const Cr=Math.max(2*gr-5,0);this._triangles=new Uint32Array(Cr*3),this._halfedges=new Int32Array(Cr*3),this._hashSize=Math.ceil(Math.sqrt(gr)),this._hullPrev=new Uint32Array(gr),this._hullNext=new Uint32Array(gr),this._hullTri=new Uint32Array(gr),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(gr),this._dists=new Float64Array(gr),this.update()}update(){const{coords:cr,_hullPrev:gr,_hullNext:Cr,_hullTri:Vr,_hullHash:tt}=this,nt=cr.length>>1;let st=1/0,dt=1/0,kt=-1/0,qt=-1/0;for(let lo=0;lokt&&(kt=so),wo>qt&&(qt=wo),this._ids[lo]=lo}const ro=(st+kt)/2,ht=(dt+qt)/2;let po=1/0,no,Nt,eo;for(let lo=0;lo0&&(Nt=lo,po=so)}let Ot=cr[2*Nt],uo=cr[2*Nt+1],go=1/0;for(let lo=0;loxt&&(lo[so++]=Mt,xt=this._dists[Mt])}this.hull=lo.subarray(0,so),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(orient(Wt,St,Ot,uo,bo,oo)){const lo=Nt,so=Ot,wo=uo;Nt=eo,Ot=bo,uo=oo,eo=lo,bo=so,oo=wo}const Ro=circumcenter(Wt,St,Ot,uo,bo,oo);this._cx=Ro.x,this._cy=Ro.y;for(let lo=0;lo0&&Math.abs(Mt-so)<=EPSILON&&Math.abs(ho-wo)<=EPSILON||(so=Mt,wo=ho,xt===no||xt===Nt||xt===eo))continue;let io=0;for(let Tt=0,vo=this._hashKey(Mt,ho);Tt0?3-gr:1+gr)/4}function dist(_e,cr,gr,Cr){const Vr=_e-gr,tt=cr-Cr;return Vr*Vr+tt*tt}function orientIfSure(_e,cr,gr,Cr,Vr,tt){const nt=(Cr-cr)*(Vr-_e),st=(gr-_e)*(tt-cr);return Math.abs(nt-st)>=33306690738754716e-32*Math.abs(nt+st)?nt-st:0}function orient(_e,cr,gr,Cr,Vr,tt){return(orientIfSure(Vr,tt,_e,cr,gr,Cr)||orientIfSure(_e,cr,gr,Cr,Vr,tt)||orientIfSure(gr,Cr,Vr,tt,_e,cr))<0}function inCircle(_e,cr,gr,Cr,Vr,tt,nt,st){const dt=_e-nt,kt=cr-st,qt=gr-nt,ro=Cr-st,ht=Vr-nt,po=tt-st,no=dt*dt+kt*kt,Nt=qt*qt+ro*ro,eo=ht*ht+po*po;return dt*(ro*eo-Nt*po)-kt*(qt*eo-Nt*ht)+no*(qt*po-ro*ht)<0}function circumradius(_e,cr,gr,Cr,Vr,tt){const nt=gr-_e,st=Cr-cr,dt=Vr-_e,kt=tt-cr,qt=nt*nt+st*st,ro=dt*dt+kt*kt,ht=.5/(nt*kt-st*dt),po=(kt*qt-st*ro)*ht,no=(nt*ro-dt*qt)*ht;return po*po+no*no}function circumcenter(_e,cr,gr,Cr,Vr,tt){const nt=gr-_e,st=Cr-cr,dt=Vr-_e,kt=tt-cr,qt=nt*nt+st*st,ro=dt*dt+kt*kt,ht=.5/(nt*kt-st*dt),po=_e+(kt*qt-st*ro)*ht,no=cr+(nt*ro-dt*qt)*ht;return{x:po,y:no}}function quicksort(_e,cr,gr,Cr){if(Cr-gr<=20)for(let Vr=gr+1;Vr<=Cr;Vr++){const tt=_e[Vr],nt=cr[tt];let st=Vr-1;for(;st>=gr&&cr[_e[st]]>nt;)_e[st+1]=_e[st--];_e[st+1]=tt}else{const Vr=gr+Cr>>1;let tt=gr+1,nt=Cr;swap$1(_e,Vr,tt),cr[_e[gr]]>cr[_e[Cr]]&&swap$1(_e,gr,Cr),cr[_e[tt]]>cr[_e[Cr]]&&swap$1(_e,tt,Cr),cr[_e[gr]]>cr[_e[tt]]&&swap$1(_e,gr,tt);const st=_e[tt],dt=cr[st];for(;;){do tt++;while(cr[_e[tt]]dt);if(nt=nt-gr?(quicksort(_e,cr,tt,Cr),quicksort(_e,cr,gr,nt-1)):(quicksort(_e,cr,gr,nt-1),quicksort(_e,cr,tt,Cr))}}function swap$1(_e,cr,gr){const Cr=_e[cr];_e[cr]=_e[gr],_e[gr]=Cr}function defaultGetX(_e){return _e[0]}function defaultGetY(_e){return _e[1]}const epsilon=1e-6;class Path{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(cr,gr){this._+=`M${this._x0=this._x1=+cr},${this._y0=this._y1=+gr}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(cr,gr){this._+=`L${this._x1=+cr},${this._y1=+gr}`}arc(cr,gr,Cr){cr=+cr,gr=+gr,Cr=+Cr;const Vr=cr+Cr,tt=gr;if(Cr<0)throw new Error("negative radius");this._x1===null?this._+=`M${Vr},${tt}`:(Math.abs(this._x1-Vr)>epsilon||Math.abs(this._y1-tt)>epsilon)&&(this._+="L"+Vr+","+tt),Cr&&(this._+=`A${Cr},${Cr},0,1,1,${cr-Cr},${gr}A${Cr},${Cr},0,1,1,${this._x1=Vr},${this._y1=tt}`)}rect(cr,gr,Cr,Vr){this._+=`M${this._x0=this._x1=+cr},${this._y0=this._y1=+gr}h${+Cr}v${+Vr}h${-Cr}Z`}value(){return this._||null}}class Polygon{constructor(){this._=[]}moveTo(cr,gr){this._.push([cr,gr])}closePath(){this._.push(this._[0].slice())}lineTo(cr,gr){this._.push([cr,gr])}value(){return this._.length?this._:null}}class Voronoi{constructor(cr,[gr,Cr,Vr,tt]=[0,0,960,500]){if(!((Vr=+Vr)>=(gr=+gr))||!((tt=+tt)>=(Cr=+Cr)))throw new Error("invalid bounds");this.delaunay=cr,this._circumcenters=new Float64Array(cr.points.length*2),this.vectors=new Float64Array(cr.points.length*2),this.xmax=Vr,this.xmin=gr,this.ymax=tt,this.ymin=Cr,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:cr,hull:gr,triangles:Cr},vectors:Vr}=this,tt=this.circumcenters=this._circumcenters.subarray(0,Cr.length/3*2);for(let po=0,no=0,Nt=Cr.length,eo,Wt;po1;)tt-=2;for(let nt=2;nt4)for(let nt=0;nt0){if(gr>=this.ymax)return null;(nt=(this.ymax-gr)/Vr)0){if(cr>=this.xmax)return null;(nt=(this.xmax-cr)/Cr)this.xmax?2:0)|(grthis.ymax?8:0)}}const tau=2*Math.PI,pow=Math.pow;function pointX(_e){return _e[0]}function pointY(_e){return _e[1]}function collinear(_e){const{triangles:cr,coords:gr}=_e;for(let Cr=0;Cr1e-10)return!1}return!0}function jitter(_e,cr,gr){return[_e+Math.sin(_e+cr)*gr,cr+Math.cos(_e-cr)*gr]}class Delaunay{static from(cr,gr=pointX,Cr=pointY,Vr){return new Delaunay("length"in cr?flatArray(cr,gr,Cr,Vr):Float64Array.from(flatIterable(cr,gr,Cr,Vr)))}constructor(cr){this._delaunator=new Delaunator(cr),this.inedges=new Int32Array(cr.length/2),this._hullIndex=new Int32Array(cr.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const cr=this._delaunator,gr=this.points;if(cr.hull&&cr.hull.length>2&&collinear(cr)){this.collinear=Int32Array.from({length:gr.length/2},(ht,po)=>po).sort((ht,po)=>gr[2*ht]-gr[2*po]||gr[2*ht+1]-gr[2*po+1]);const dt=this.collinear[0],kt=this.collinear[this.collinear.length-1],qt=[gr[2*dt],gr[2*dt+1],gr[2*kt],gr[2*kt+1]],ro=1e-8*Math.hypot(qt[3]-qt[1],qt[2]-qt[0]);for(let ht=0,po=gr.length/2;ht0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=Vr[0],this.triangles[1]=Vr[1],this.triangles[2]=Vr[1],nt[Vr[0]]=1,Vr.length===2&&(nt[Vr[1]]=0))}voronoi(cr){return new Voronoi(this,cr)}*neighbors(cr){const{inedges:gr,hull:Cr,_hullIndex:Vr,halfedges:tt,triangles:nt,collinear:st}=this;if(st){const ro=st.indexOf(cr);ro>0&&(yield st[ro-1]),ro=0&&tt!==Cr&&tt!==Vr;)Cr=tt;return tt}_step(cr,gr,Cr){const{inedges:Vr,hull:tt,_hullIndex:nt,halfedges:st,triangles:dt,points:kt}=this;if(Vr[cr]===-1||!kt.length)return(cr+1)%(kt.length>>1);let qt=cr,ro=pow(gr-kt[cr*2],2)+pow(Cr-kt[cr*2+1],2);const ht=Vr[cr];let po=ht;do{let no=dt[po];const Nt=pow(gr-kt[no*2],2)+pow(Cr-kt[no*2+1],2);if(Nt-1?Yn.filter(function(ba){return ba!==Wo}):[].concat(Yn,[Wo])})},[]),xo=function(Wo){var Yn=Wo.series,ba=Wo.getPointColor,_a=Wo.getPointBorderColor,$s=Wo.formatX,vs=Wo.formatY;return reactExports.useMemo(function(){return Yn.reduce(function(ss,Ts){return[].concat(ss,Ts.data.filter(function(qo){return qo.position.x!==null&&qo.position.y!==null}).map(function(qo,Js){var Vo={id:Ts.id+"."+Js,index:ss.length+Js,serieId:Ts.id,serieColor:Ts.color,x:qo.position.x,y:qo.position.y};return Vo.color=ba(Ts),Vo.borderColor=_a(Vo),Vo.data=re({},qo.data,{xFormatted:$s(qo.data.x),yFormatted:vs(qo.data.y)}),Vo}))},[])},[Yn,ba,_a,$s,vs])}({series:vo,getPointColor:so,getPointBorderColor:wo,formatX:oo,formatY:Ro}),Po=ye({componentId:bo,enableSlices:go,points:xo,width:dt,height:kt});return{legendData:Tt,toggleSerie:Co,lineGenerator:pe({curve:po}),areaGenerator:ve({curve:po,yScale:mo,areaBaselineValue:Nt}),getColor:pt,series:vo,xScale:co,yScale:mo,slices:Po,points:xo}},ge=function(_e){var cr=_e.areaBlendMode,gr=_e.areaOpacity,Cr=_e.color,Vr=_e.fill,tt=_e.path,nt=Zr(),st=nt.animate,dt=nt.config,kt=$r(tt),qt=useSpring({color:Cr,config:dt,immediate:!st});return jsxRuntimeExports.jsx(animated.path,{d:kt,fill:Vr||qt.color,fillOpacity:gr,strokeWidth:0,style:{mixBlendMode:cr}})};ge.propTypes={areaBlendMode:zt.isRequired,areaOpacity:N$2.number.isRequired,color:N$2.string,fill:N$2.string,path:N$2.string.isRequired};var xe=function(_e){var cr=_e.areaGenerator,gr=_e.areaOpacity,Cr=_e.areaBlendMode,Vr=_e.lines.slice(0).reverse();return jsxRuntimeExports.jsx("g",{children:Vr.map(function(tt){return jsxRuntimeExports.jsx(ge,re({path:cr(tt.data.map(function(nt){return nt.position}))},re({areaOpacity:gr,areaBlendMode:Cr},tt)),tt.id)})})};xe.propTypes={areaGenerator:N$2.func.isRequired,areaOpacity:N$2.number.isRequired,areaBlendMode:zt.isRequired,lines:N$2.arrayOf(N$2.object).isRequired};var Re=reactExports.memo(xe),Te=function(_e){var cr=_e.lineGenerator,gr=_e.points,Cr=_e.color,Vr=_e.thickness,tt=reactExports.useMemo(function(){return cr(gr)},[cr,gr]),nt=$r(tt);return jsxRuntimeExports.jsx(animated.path,{d:nt,fill:"none",strokeWidth:Vr,stroke:Cr})};Te.propTypes={points:N$2.arrayOf(N$2.shape({x:N$2.oneOfType([N$2.string,N$2.number]),y:N$2.oneOfType([N$2.string,N$2.number])})),lineGenerator:N$2.func.isRequired,color:N$2.string.isRequired,thickness:N$2.number.isRequired};var qe=reactExports.memo(Te),Me=function(_e){var cr=_e.lines,gr=_e.lineGenerator,Cr=_e.lineWidth;return cr.slice(0).reverse().map(function(Vr){var tt=Vr.id,nt=Vr.data,st=Vr.color;return jsxRuntimeExports.jsx(qe,{id:tt,points:nt.map(function(dt){return dt.position}),lineGenerator:gr,color:st,thickness:Cr},tt)})};Me.propTypes={lines:N$2.arrayOf(N$2.shape({id:N$2.oneOfType([N$2.string,N$2.number]).isRequired,color:N$2.string.isRequired,data:N$2.arrayOf(N$2.shape({data:N$2.shape({x:N$2.oneOfType([N$2.string,N$2.number,N$2.instanceOf(Date)]),y:N$2.oneOfType([N$2.string,N$2.number,N$2.instanceOf(Date)])}).isRequired,position:N$2.shape({x:N$2.number,y:N$2.number}).isRequired})).isRequired})).isRequired,lineWidth:N$2.number.isRequired,lineGenerator:N$2.func.isRequired};var Oe=reactExports.memo(Me),Se=function(_e){var cr=_e.slice,gr=_e.slices,Cr=_e.axis,Vr=_e.debug,tt=_e.tooltip,nt=_e.isCurrent,st=_e.setCurrent,dt=_e.onMouseEnter,kt=_e.onMouseMove,qt=_e.onMouseLeave,ro=_e.onClick,ht=_e.onTouchStart,po=_e.onTouchMove,no=_e.onTouchEnd,Nt=k$3(),eo=Nt.showTooltipFromEvent,Wt=Nt.hideTooltip,St=reactExports.useCallback(function(pt){eo(reactExports.createElement(tt,{slice:cr,axis:Cr}),pt,"right"),st(cr),dt&&dt(cr,pt)},[eo,tt,cr,Cr,st,dt]),Ot=reactExports.useCallback(function(pt){eo(reactExports.createElement(tt,{slice:cr,axis:Cr}),pt,"right"),kt&&kt(cr,pt)},[eo,tt,cr,Cr,kt]),uo=reactExports.useCallback(function(pt){Wt(),st(null),qt&&qt(cr,pt)},[Wt,st,qt,cr]),go=reactExports.useCallback(function(pt){ro&&ro(cr,pt)},[cr,ro]),bo=reactExports.useCallback(function(pt){eo(reactExports.createElement(tt,{slice:cr,axis:Cr}),pt,"right"),st(cr),ht&&ht(cr,pt)},[Cr,ht,st,eo,cr,tt]),oo=reactExports.useCallback(function(pt){var lo=pt.touches[0],so=document.elementFromPoint(lo.clientX,lo.clientY),wo=so==null?void 0:so.getAttribute("data-ref");if(wo){var xt=gr.find(function(Mt){return Mt.id===wo});xt&&(eo(reactExports.createElement(tt,{slice:xt,axis:Cr}),pt,"right"),st(xt))}po&&po(cr,pt)},[Cr,po,st,eo,cr,gr,tt]),Ro=reactExports.useCallback(function(pt){Wt(),st(null),no&&no(cr,pt)},[Wt,st,no,cr]);return jsxRuntimeExports.jsx("rect",{x:cr.x0,y:cr.y0,width:cr.width,height:cr.height,stroke:"red",strokeWidth:Vr?1:0,strokeOpacity:.75,fill:"red",fillOpacity:nt&&Vr?.35:0,onMouseEnter:St,onMouseMove:Ot,onMouseLeave:uo,onClick:go,onTouchStart:bo,onTouchMove:oo,onTouchEnd:Ro,"data-ref":cr.id})};Se.propTypes={slice:N$2.object.isRequired,slices:N$2.arrayOf(N$2.object).isRequired,axis:N$2.oneOf(["x","y"]).isRequired,debug:N$2.bool.isRequired,height:N$2.number.isRequired,tooltip:N$2.oneOfType([N$2.func,N$2.object]),isCurrent:N$2.bool.isRequired,setCurrent:N$2.func.isRequired,onMouseEnter:N$2.func,onMouseMove:N$2.func,onMouseLeave:N$2.func,onClick:N$2.func};var Ce=reactExports.memo(Se),we=function(_e){var cr=_e.slices,gr=_e.axis,Cr=_e.debug,Vr=_e.height,tt=_e.tooltip,nt=_e.current,st=_e.setCurrent,dt=_e.onMouseEnter,kt=_e.onMouseMove,qt=_e.onMouseLeave,ro=_e.onClick,ht=_e.onTouchStart,po=_e.onTouchMove,no=_e.onTouchEnd;return cr.map(function(Nt){return jsxRuntimeExports.jsx(Ce,{slice:Nt,slices:cr,axis:gr,debug:Cr,height:Vr,tooltip:tt,setCurrent:st,isCurrent:nt!==null&&nt.id===Nt.id,onMouseEnter:dt,onMouseMove:kt,onMouseLeave:qt,onClick:ro,onTouchStart:ht,onTouchMove:po,onTouchEnd:no},Nt.id)})};we.propTypes={slices:N$2.arrayOf(N$2.shape({id:N$2.oneOfType([N$2.number,N$2.string,N$2.instanceOf(Date)]).isRequired,x:N$2.number.isRequired,y:N$2.number.isRequired,points:N$2.arrayOf(N$2.object).isRequired})).isRequired,axis:N$2.oneOf(["x","y"]).isRequired,debug:N$2.bool.isRequired,height:N$2.number.isRequired,tooltip:N$2.oneOfType([N$2.func,N$2.object]).isRequired,current:N$2.object,setCurrent:N$2.func.isRequired,onMouseEnter:N$2.func,onMouseMove:N$2.func,onMouseLeave:N$2.func,onClick:N$2.func,onTouchStart:N$2.func,onTouchMove:N$2.func,onTouchEnd:N$2.func};var ke=reactExports.memo(we),Be=function(_e){var cr=_e.points,gr=_e.symbol,Cr=_e.size,Vr=_e.borderWidth,tt=_e.enableLabel,nt=_e.label,st=_e.labelYOffset,dt=Et(),kt=Li(nt),qt=cr.slice(0).reverse().map(function(ro){return{id:ro.id,x:ro.x,y:ro.y,datum:ro.data,fill:ro.color,stroke:ro.borderColor,label:tt?kt(ro.data):null}});return jsxRuntimeExports.jsx("g",{children:qt.map(function(ro){return jsxRuntimeExports.jsx(Ti,{x:ro.x,y:ro.y,datum:ro.datum,symbol:gr,size:Cr,color:ro.fill,borderWidth:Vr,borderColor:ro.stroke,label:ro.label,labelYOffset:st,theme:dt},ro.id)})})};Be.propTypes={points:N$2.arrayOf(N$2.object),symbol:N$2.func,size:N$2.number.isRequired,color:N$2.func.isRequired,borderWidth:N$2.number.isRequired,borderColor:N$2.func.isRequired,enableLabel:N$2.bool.isRequired,label:N$2.oneOfType([N$2.string,N$2.func]).isRequired,labelYOffset:N$2.number};var Ee=reactExports.memo(Be),Le=function(_e){var cr=_e.points,gr=_e.width,Cr=_e.height,Vr=_e.margin,tt=_e.setCurrent,nt=_e.onMouseEnter,st=_e.onMouseMove,dt=_e.onMouseLeave,kt=_e.onClick,qt=_e.onTouchStart,ro=_e.onTouchMove,ht=_e.onTouchEnd,po=_e.tooltip,no=_e.debug,Nt=_e.enableTouchCrosshair,eo=k$3(),Wt=eo.showTooltipAt,St=eo.hideTooltip,Ot=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),nt&&nt(lo,so)},[tt,Wt,po,nt,Vr]),uo=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),st&&st(lo,so)},[Wt,po,Vr.left,Vr.top,tt,st]),go=reactExports.useCallback(function(lo,so){St(),tt(null),dt&&dt(lo,so)},[St,tt,dt]),bo=reactExports.useCallback(function(lo,so){kt&&kt(lo,so)},[kt]),oo=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),qt&&qt(lo,so)},[Vr.left,Vr.top,qt,tt,Wt,po]),Ro=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),ro&&ro(lo,so)},[Vr.left,Vr.top,ro,tt,Wt,po]),pt=reactExports.useCallback(function(lo,so){St(),tt(null),ht&&ht(lo,so)},[ht,St,tt]);return jsxRuntimeExports.jsx(S,{nodes:cr,width:gr,height:Cr,onMouseEnter:Ot,onMouseMove:uo,onMouseLeave:go,onClick:bo,onTouchStart:oo,onTouchMove:Ro,onTouchEnd:pt,enableTouchCrosshair:Nt,debug:no})};Le.propTypes={points:N$2.arrayOf(N$2.object).isRequired,width:N$2.number.isRequired,height:N$2.number.isRequired,margin:N$2.object.isRequired,setCurrent:N$2.func.isRequired,onMouseEnter:N$2.func,onMouseMove:N$2.func,onMouseLeave:N$2.func,onClick:N$2.func,onTouchStart:N$2.func,onTouchMove:N$2.func,onTouchEnd:N$2.func,tooltip:N$2.oneOfType([N$2.func,N$2.object]).isRequired,debug:N$2.bool.isRequired};var We=reactExports.memo(Le),Ge=function(_e){var cr=_e.data,gr=_e.xScale,Cr=gr===void 0?{type:"point"}:gr,Vr=_e.xFormat,tt=_e.yScale,nt=tt===void 0?{type:"linear",min:0,max:"auto"}:tt,st=_e.yFormat,dt=_e.layers,kt=dt===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:dt,qt=_e.curve,ro=qt===void 0?"linear":qt,ht=_e.areaBaselineValue,po=ht===void 0?0:ht,no=_e.colors,Nt=no===void 0?{scheme:"nivo"}:no,eo=_e.margin,Wt=_e.width,St=_e.height,Ot=_e.axisTop,uo=_e.axisRight,go=_e.axisBottom,bo=go===void 0?{}:go,oo=_e.axisLeft,Ro=oo===void 0?{}:oo,pt=_e.enableGridX,lo=pt===void 0||pt,so=_e.enableGridY,wo=so===void 0||so,xt=_e.gridXValues,Mt=_e.gridYValues,ho=_e.lineWidth,io=ho===void 0?2:ho,co=_e.enableArea,mo=co!==void 0&&co,Bo=_e.areaOpacity,So=Bo===void 0?.2:Bo,Tt=_e.areaBlendMode,vo=Tt===void 0?"normal":Tt,Co=_e.enablePoints,xo=Co===void 0||Co,Po=_e.pointSymbol,Wo=_e.pointSize,Yn=Wo===void 0?6:Wo,ba=_e.pointColor,_a=ba===void 0?{from:"color"}:ba,$s=_e.pointBorderWidth,vs=$s===void 0?0:$s,ss=_e.pointBorderColor,Ts=ss===void 0?{theme:"background"}:ss,qo=_e.enablePointLabel,Js=qo!==void 0&&qo,Vo=_e.pointLabel,zo=Vo===void 0?"yFormatted":Vo,$n=_e.pointLabelYOffset,Tn=_e.defs,ko=Tn===void 0?[]:Tn,es=_e.fill,fs=es===void 0?[]:es,Es=_e.markers,Us=_e.legends,ms=Us===void 0?[]:Us,bs=_e.isInteractive,ks=bs===void 0||bs,Ds=_e.useMesh,Fs=Ds!==void 0&&Ds,d0=_e.debugMesh,v0=d0!==void 0&&d0,b0=_e.onMouseEnter,R0=_e.onMouseMove,D0=_e.onMouseLeave,zs=_e.onClick,n0=_e.onTouchStart,fo=_e.onTouchMove,Qo=_e.onTouchEnd,Ko=_e.tooltip,ps=Ko===void 0?te:Ko,Kn=_e.enableSlices,gs=Kn!==void 0&&Kn,H0=_e.debugSlices,j0=H0!==void 0&&H0,hs=_e.sliceTooltip,Ss=hs===void 0?se:hs,Rs=_e.enableCrosshair,e0=Rs===void 0||Rs,g0=_e.crosshairType,E0=g0===void 0?"bottom-left":g0,Vs=_e.enableTouchCrosshair,Bs=Vs!==void 0&&Vs,Gs=_e.role,A0=Gs===void 0?"img":Gs,y0=Bt(Wt,St,eo),s0=y0.margin,P0=y0.innerWidth,M0=y0.innerHeight,O0=y0.outerWidth,Sn=y0.outerHeight,T0=me({data:cr,xScale:Cr,xFormat:Vr,yScale:nt,yFormat:st,width:P0,height:M0,colors:Nt,curve:ro,areaBaselineValue:po,pointColor:_a,pointBorderColor:Ts,enableSlices:gs}),An=T0.legendData,Pn=T0.toggleSerie,Ln=T0.lineGenerator,qn=T0.areaGenerator,na=T0.series,ls=T0.xScale,Ns=T0.yScale,Qs=T0.slices,p0=T0.points,l0=Et(),S0=We$1(_a,l0),yl=We$1(Ts,l0),Vt=reactExports.useState(null),br=Vt[0],lt=Vt[1],Sl=reactExports.useState(null),w0=Sl[0],Ql=Sl[1],Gl={grid:jsxRuntimeExports.jsx(z,{theme:l0,width:P0,height:M0,xScale:lo?ls:null,yScale:wo?Ns:null,xValues:xt,yValues:Mt},"grid"),markers:jsxRuntimeExports.jsx(Pi,{markers:Es,width:P0,height:M0,xScale:ls,yScale:Ns,theme:l0},"markers"),axes:jsxRuntimeExports.jsx(X$1,{xScale:ls,yScale:Ns,width:P0,height:M0,theme:l0,top:Ot,right:uo,bottom:bo,left:Ro},"axes"),areas:null,lines:jsxRuntimeExports.jsx(Oe,{lines:na,lineGenerator:Ln,lineWidth:io},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:ms.map(function(du,Lu){return jsxRuntimeExports.jsx(X,re({},du,{containerWidth:P0,containerHeight:M0,data:du.data||An,theme:l0,toggleSerie:du.toggleSerie?Pn:void 0}),"legend."+Lu)})},uu=Vi(ko,na,fs);return mo&&(Gl.areas=jsxRuntimeExports.jsx(Re,{areaGenerator:qn,areaOpacity:So,areaBlendMode:vo,lines:na},"areas")),ks&&gs!==!1&&(Gl.slices=jsxRuntimeExports.jsx(ke,{slices:Qs,axis:gs,debug:j0,height:M0,tooltip:Ss,current:w0,setCurrent:Ql,onMouseEnter:b0,onMouseMove:R0,onMouseLeave:D0,onClick:zs,onTouchStart:n0,onTouchMove:fo,onTouchEnd:Qo},"slices")),xo&&(Gl.points=jsxRuntimeExports.jsx(Ee,{points:p0,symbol:Po,size:Yn,color:S0,borderWidth:vs,borderColor:yl,enableLabel:Js,label:zo,labelYOffset:$n},"points")),ks&&e0&&(br!==null&&(Gl.crosshair=jsxRuntimeExports.jsx(P$1,{width:P0,height:M0,x:br.x,y:br.y,type:E0},"crosshair")),w0!==null&&(Gl.crosshair=jsxRuntimeExports.jsx(P$1,{width:P0,height:M0,x:w0.x,y:w0.y,type:gs},"crosshair"))),ks&&Fs&&gs===!1&&(Gl.mesh=jsxRuntimeExports.jsx(We,{points:p0,width:P0,height:M0,margin:s0,current:br,setCurrent:lt,onMouseEnter:b0,onMouseMove:R0,onMouseLeave:D0,onClick:zs,onTouchStart:n0,onTouchMove:fo,onTouchEnd:Qo,tooltip:ps,enableTouchCrosshair:Bs,debug:v0},"mesh")),jsxRuntimeExports.jsx(Oi,{defs:uu,width:O0,height:Sn,margin:s0,role:A0,children:kt.map(function(du,Lu){return typeof du=="function"?jsxRuntimeExports.jsx(reactExports.Fragment,{children:du(re({},_e,{innerWidth:P0,innerHeight:M0,series:na,slices:Qs,points:p0,xScale:ls,yScale:Ns,lineGenerator:Ln,areaGenerator:qn,currentPoint:br,setCurrentPoint:lt,currentSlice:w0,setCurrentSlice:Ql}))},Lu):Gl[du]})})};Ge.propTypes=ue;var Pe=Gi(Ge),je=function(_e){return jsxRuntimeExports.jsx(Jt,{children:function(cr){var gr=cr.width,Cr=cr.height;return jsxRuntimeExports.jsx(Pe,re({width:gr,height:Cr},_e))}})},Fe=function(_e){var cr=reactExports.useRef(null),gr=_e.width,Cr=_e.height,Vr=_e.margin,tt=_e.pixelRatio,nt=tt===void 0?typeof window<"u"&&window.devicePixelRatio||1:tt,st=_e.data,dt=_e.xScale,kt=dt===void 0?{type:"point"}:dt,qt=_e.xFormat,ro=_e.yScale,ht=ro===void 0?{type:"linear",min:0,max:"auto"}:ro,po=_e.yFormat,no=_e.curve,Nt=no===void 0?"linear":no,eo=_e.layers,Wt=eo===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:eo,St=_e.colors,Ot=St===void 0?{scheme:"nivo"}:St,uo=_e.lineWidth,go=uo===void 0?2:uo,bo=_e.enableArea,oo=bo!==void 0&&bo,Ro=_e.areaBaselineValue,pt=Ro===void 0?0:Ro,lo=_e.areaOpacity,so=lo===void 0?.2:lo,wo=_e.enablePoints,xt=wo===void 0||wo,Mt=_e.pointSize,ho=Mt===void 0?6:Mt,io=_e.pointColor,co=io===void 0?{from:"color"}:io,mo=_e.pointBorderWidth,Bo=mo===void 0?0:mo,So=_e.pointBorderColor,Tt=So===void 0?{theme:"background"}:So,vo=_e.enableGridX,Co=vo===void 0||vo,xo=_e.gridXValues,Po=_e.enableGridY,Wo=Po===void 0||Po,Yn=_e.gridYValues,ba=_e.axisTop,_a=_e.axisRight,$s=_e.axisBottom,vs=$s===void 0?{}:$s,ss=_e.axisLeft,Ts=ss===void 0?{}:ss,qo=_e.legends,Js=qo===void 0?[]:qo,Vo=_e.isInteractive,zo=Vo===void 0||Vo,$n=_e.debugMesh,Tn=$n!==void 0&&$n,ko=_e.onMouseLeave,es=_e.onClick,fs=_e.tooltip,Es=fs===void 0?te:fs,Us=_e.canvasRef,ms=Bt(gr,Cr,Vr),bs=ms.margin,ks=ms.innerWidth,Ds=ms.innerHeight,Fs=ms.outerWidth,d0=ms.outerHeight,v0=Et(),b0=reactExports.useState(null),R0=b0[0],D0=b0[1],zs=me({data:st,xScale:kt,xFormat:qt,yScale:ht,yFormat:po,width:ks,height:Ds,colors:Ot,curve:Nt,areaBaselineValue:pt,pointColor:co,pointBorderColor:Tt}),n0=zs.lineGenerator,fo=zs.areaGenerator,Qo=zs.series,Ko=zs.xScale,ps=zs.yScale,Kn=zs.points,gs=C({points:Kn,width:ks,height:Ds,debug:Tn}),H0=gs.delaunay,j0=gs.voronoi;reactExports.useEffect(function(){Us&&(Us.current=cr.current),cr.current.width=Fs*nt,cr.current.height=d0*nt;var Bs=cr.current.getContext("2d");Bs.scale(nt,nt),Bs.fillStyle=v0.background,Bs.fillRect(0,0,Fs,d0),Bs.translate(bs.left,bs.top),Wt.forEach(function(Gs){if(typeof Gs=="function"&&Gs({ctx:Bs,innerWidth:ks,innerHeight:Ds,series:Qo,points:Kn,xScale:Ko,yScale:ps,lineWidth:go,lineGenerator:n0,areaGenerator:fo,currentPoint:R0,setCurrentPoint:D0}),Gs==="grid"&&v0.grid.line.strokeWidth>0&&(Bs.lineWidth=v0.grid.line.strokeWidth,Bs.strokeStyle=v0.grid.line.stroke,Co&&D(Bs,{width:ks,height:Ds,scale:Ko,axis:"x",values:xo}),Wo&&D(Bs,{width:ks,height:Ds,scale:ps,axis:"y",values:Yn})),Gs==="axes"&&j(Bs,{xScale:Ko,yScale:ps,width:ks,height:Ds,top:ba,right:_a,bottom:vs,left:Ts,theme:v0}),Gs==="areas"&&oo===!0&&(Bs.save(),Bs.globalAlpha=so,fo.context(Bs),Qo.forEach(function(y0){Bs.fillStyle=y0.color,Bs.beginPath(),fo(y0.data.map(function(s0){return s0.position})),Bs.fill()}),Bs.restore()),Gs==="lines"&&(n0.context(Bs),Qo.forEach(function(y0){Bs.strokeStyle=y0.color,Bs.lineWidth=go,Bs.beginPath(),n0(y0.data.map(function(s0){return s0.position})),Bs.stroke()})),Gs==="points"&&xt===!0&&ho>0&&Kn.forEach(function(y0){Bs.fillStyle=y0.color,Bs.beginPath(),Bs.arc(y0.x,y0.y,ho/2,0,2*Math.PI),Bs.fill(),Bo>0&&(Bs.strokeStyle=y0.borderColor,Bs.lineWidth=Bo,Bs.stroke())}),Gs==="mesh"&&Tn===!0&&(T(Bs,j0),R0&&O(Bs,j0,R0.index)),Gs==="legends"){var A0=Qo.map(function(y0){return{id:y0.id,label:y0.id,color:y0.color}}).reverse();Js.forEach(function(y0){H(Bs,re({},y0,{data:y0.data||A0,containerWidth:ks,containerHeight:Ds,theme:v0}))})}})},[cr,Fs,d0,Wt,v0,n0,Qo,Ko,ps,Co,xo,Wo,Yn,ba,_a,vs,Ts,Js,Kn,xt,ho,R0]);var hs=reactExports.useCallback(function(Bs){var Gs=Xi(cr.current,Bs),A0=Gs[0],y0=Gs[1];if(!Ui(bs.left,bs.top,ks,Ds,A0,y0))return null;var s0=H0.find(A0-bs.left,y0-bs.top);return Kn[s0]},[cr,bs,ks,Ds,H0]),Ss=k$3(),Rs=Ss.showTooltipFromEvent,e0=Ss.hideTooltip,g0=reactExports.useCallback(function(Bs){var Gs=hs(Bs);D0(Gs),Gs?Rs(reactExports.createElement(Es,{point:Gs}),Bs):e0()},[hs,D0,Rs,e0,Es]),E0=reactExports.useCallback(function(Bs){e0(),D0(null),R0&&ko&&ko(R0,Bs)},[e0,D0,ko]),Vs=reactExports.useCallback(function(Bs){if(es){var Gs=hs(Bs);Gs&&es(Gs,Bs)}},[hs,es]);return jsxRuntimeExports.jsx("canvas",{ref:cr,width:Fs*nt,height:d0*nt,style:{width:Fs,height:d0,cursor:zo?"auto":"normal"},onMouseEnter:zo?g0:void 0,onMouseMove:zo?g0:void 0,onMouseLeave:zo?E0:void 0,onClick:zo?Vs:void 0})};Fe.propTypes=de;var Ve=Gi(Fe),Ye=reactExports.forwardRef(function(_e,cr){return jsxRuntimeExports.jsx(Ve,re({},_e,{canvasRef:cr}))});reactExports.forwardRef(function(_e,cr){return jsxRuntimeExports.jsx(Jt,{children:function(gr){var Cr=gr.width,Vr=gr.height;return jsxRuntimeExports.jsx(Ye,re({width:Cr,height:Vr},_e,{ref:cr}))}})});const ZoomInIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M5.33333%207.33333H7.33333M7.33333%207.33333H9.33333M7.33333%207.33333V5.33333M7.33333%207.33333V9.33333M11.3333%2011.3333L14%2014M2%207.33333C2%208.74782%202.5619%2010.1044%203.5621%2011.1046C4.56229%2012.1048%205.91885%2012.6667%207.33333%2012.6667C8.74782%2012.6667%2010.1044%2012.1048%2011.1046%2011.1046C12.1048%2010.1044%2012.6667%208.74782%2012.6667%207.33333C12.6667%205.91885%2012.1048%204.56229%2011.1046%203.5621C10.1044%202.5619%208.74782%202%207.33333%202C5.91885%202%204.56229%202.5619%203.5621%203.5621C2.5619%204.56229%202%205.91885%202%207.33333Z'%20stroke='%23EFEFEF'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",ZoomOutIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M11.3333%2011.3333L14%2014M5.33333%207.33333H9.33333M2%207.33333C2%208.74782%202.5619%2010.1044%203.5621%2011.1046C4.56229%2012.1048%205.91885%2012.6667%207.33333%2012.6667C8.74782%2012.6667%2010.1044%2012.1048%2011.1046%2011.1046C12.1048%2010.1044%2012.6667%208.74782%2012.6667%207.33333C12.6667%205.91885%2012.1048%204.56229%2011.1046%203.5621C10.1044%202.5619%208.74782%202%207.33333%202C5.91885%202%204.56229%202.5619%203.5621%203.5621C2.5619%204.56229%202%205.91885%202%207.33333Z'%20stroke='%23EFEFEF'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",useStyles$q=makeStyles()(()=>({handle:{cursor:"ew-resize"}})),MaxText=({x:_e,textColor:cr})=>jsxRuntimeExports.jsx("svg",{width:"20",height:"7",viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:_e,y:6,children:jsxRuntimeExports.jsx("path",{d:"M1.20516 0.699999H2.75516L3.75516 3.84C3.84182 4.11333 3.92182 4.38667 3.99516 4.66C4.07516 4.92667 4.14516 5.19 4.20516 5.45H4.24516C4.27182 5.33667 4.30182 5.21333 4.33516 5.08C4.37516 4.94 4.41516 4.8 4.45516 4.66C4.49516 4.51333 4.53182 4.37 4.56516 4.23C4.60516 4.09 4.64516 3.96 4.68516 3.84L5.65516 0.699999H7.20516L7.70516 7H6.53516C6.48182 6.31333 6.43182 5.63 6.38516 4.95C6.34516 4.26333 6.31849 3.57667 6.30516 2.89L6.27516 1.9H6.24516C6.14516 2.29333 6.03849 2.69667 5.92516 3.11C5.81182 3.52333 5.69849 3.9 5.58516 4.24L4.70516 7H3.71516L2.81516 4.24C2.66182 3.77333 2.53182 3.34667 2.42516 2.96C2.32516 2.56667 2.23849 2.21333 2.16516 1.9H2.14516C2.13182 2.42 2.10849 2.96333 2.07516 3.53C2.04849 4.09667 2.01849 4.62 1.98516 5.1L1.87516 7H0.725156L1.20516 0.699999ZM10.2369 4.54H11.9869L11.6569 3.61C11.5635 3.33 11.4735 3.06667 11.3869 2.82C11.3069 2.57333 11.2235 2.30333 11.1369 2.01H11.1169C11.0235 2.28333 10.9335 2.55 10.8469 2.81C10.7602 3.06333 10.6669 3.33 10.5669 3.61L10.2369 4.54ZM10.5369 0.699999H11.7569L14.1469 7H12.8569L12.2969 5.45H9.94688L9.38688 7H8.11688L10.5369 0.699999ZM15.5385 0.699999L16.9285 2.99L18.3285 0.699999H19.7185L17.6685 3.8L19.8185 7H18.3785L16.8785 4.62L15.4085 7H14.0285L16.0985 3.8L14.1185 0.699999H15.5385Z",fill:cr})}),MinText=({x:_e,textColor:cr})=>jsxRuntimeExports.jsx("svg",{width:"20",height:"7",viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:_e,y:6,children:jsxRuntimeExports.jsx("path",{d:"M0.601641 0.699999H2.15164L3.15164 3.84C3.23831 4.11333 3.31831 4.38667 3.39164 4.66C3.47164 4.92667 3.54164 5.19 3.60164 5.45H3.64164C3.66831 5.33667 3.69831 5.21333 3.73164 5.08C3.77164 4.94 3.81164 4.8 3.85164 4.66C3.89164 4.51333 3.92831 4.37 3.96164 4.23C4.00164 4.09 4.04164 3.96 4.08164 3.84L5.05164 0.699999H6.60164L7.10164 7H5.93164C5.87831 6.31333 5.82831 5.63 5.78164 4.95C5.74164 4.26333 5.71497 3.57667 5.70164 2.89L5.67164 1.9H5.64164C5.54164 2.29333 5.43497 2.69667 5.32164 3.11C5.20831 3.52333 5.09497 3.9 4.98164 4.24L4.10164 7H3.11164L2.21164 4.24C2.05831 3.77333 1.92831 3.34667 1.82164 2.96C1.72164 2.56667 1.63497 2.21333 1.56164 1.9H1.54164C1.52831 2.42 1.50497 2.96333 1.47164 3.53C1.44497 4.09667 1.41497 4.62 1.38164 5.1L1.27164 7H0.121641L0.601641 0.699999ZM9.39336 0.699999V7H8.17336V0.699999H9.39336ZM10.5394 0.699999H11.6394L14.0394 4.24C14.1727 4.44 14.296 4.64 14.4094 4.84C14.5227 5.03333 14.6127 5.19333 14.6794 5.32H14.6994C14.6594 4.86 14.6394 4.4 14.6394 3.94C14.6394 3.47333 14.6394 3.01 14.6394 2.55V0.699999H15.7894V7H14.6894L12.3994 3.65C12.246 3.42333 12.0994 3.18667 11.9594 2.94C11.826 2.69333 11.7227 2.49333 11.6494 2.34H11.6294C11.6627 2.83333 11.6794 3.31333 11.6794 3.78C11.686 4.24 11.6894 4.71 11.6894 5.19V7H10.5394V0.699999Z",fill:cr})}),LeftHandle=({height:_e=0,fill:cr})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:`M36 ${_e}V0`,stroke:cr,strokeWidth:"2"}),jsxRuntimeExports.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H37V20H4C1.79086 20 0 18.2091 0 16V4Z",fill:cr}),jsxRuntimeExports.jsx("path",{d:"M5 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"}),jsxRuntimeExports.jsx("path",{d:"M8 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"})]}),RightHandle=({height:_e=0,fill:cr})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:`M1 ${_e}V0`,stroke:cr,strokeWidth:"2"}),jsxRuntimeExports.jsx("path",{d:"M37 4C37 1.79086 35.2091 0 33 0H0V20H33C35.2091 20 37 18.2091 37 16V4Z",fill:cr}),jsxRuntimeExports.jsx("path",{d:"M29 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"}),jsxRuntimeExports.jsx("path",{d:"M32 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"})]}),MaxHandle=({height:_e,className:cr,x:gr,fill:Cr,textColor:Vr,isReversed:tt=!1})=>jsxRuntimeExports.jsxs("svg",{className:cr,width:"37",height:_e,viewBox:`0 0 37 ${_e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",x:gr,children:[tt?jsxRuntimeExports.jsx(LeftHandle,{height:_e,fill:Cr}):jsxRuntimeExports.jsx(RightHandle,{height:_e,fill:Cr}),jsxRuntimeExports.jsx(MaxText,{textColor:Vr,x:tt?14:5})]}),MinHandle=({height:_e,className:cr,x:gr,fill:Cr,textColor:Vr,isReversed:tt=!1})=>jsxRuntimeExports.jsxs("svg",{className:cr,width:"37",height:_e,viewBox:`0 0 37 ${_e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",x:gr,children:[tt?jsxRuntimeExports.jsx(RightHandle,{height:_e,fill:Cr}):jsxRuntimeExports.jsx(LeftHandle,{height:_e,fill:Cr}),jsxRuntimeExports.jsx(MinText,{textColor:Vr,x:tt?5:14})]}),Handle=({plotWidth:_e,height:cr,position:gr,minPosition:Cr,maxPosition:Vr,onDrop:tt,isStart:nt=!1,onStart:st,disabled:dt=!1})=>{const{classes:kt}=useStyles$q(),[qt,ro]=reactExports.useState(!1),[ht,po]=reactExports.useState(gr),[no,Nt]=reactExports.useState(0),eo=reactExports.useRef(null);reactExports.useEffect(()=>{po(gr)},[gr,qt]);const Wt=oo=>{if(st(),ro(!0),eo.current){const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.clientX-Ro.e)/Ro.a;Nt(pt-ht)}}},St=oo=>{if(st(),ro(!0),eo.current){const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.targetTouches[0].clientX-Ro.e)/Ro.a;Nt(pt-ht)}}},Ot=()=>{qt&&(ro(!1),tt(ht))},uo=oo=>{if(qt&&eo.current){oo.preventDefault(),oo.stopPropagation();const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.clientX-Ro.e)/Ro.a-no;pt>=Cr&&pt<=Vr&&po(pt)}}},go=oo=>{if(qt&&eo.current){oo.preventDefault(),oo.stopPropagation();const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.targetTouches[0].clientX-Ro.e)/Ro.a-no;pt>=Cr&&pt<=Vr&&po(pt)}}},bo=()=>nt?ht<37:_e-ht<37;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[nt?jsxRuntimeExports.jsx(MinHandle,{height:cr,x:bo()?ht:ht-37,fill:dt?colors$2.oraidex.light:colors$2.oraidex.pink,textColor:dt?colors$2.oraidex.lightHover:colors$2.oraidex.componentBcg,isReversed:bo()}):jsxRuntimeExports.jsx(MaxHandle,{height:cr,x:bo()?ht-37:ht,fill:dt?colors$2.oraidex.light:colors$2.oraidex.pink,textColor:dt?colors$2.oraidex.lightHover:colors$2.oraidex.componentBcg,isReversed:bo()}),jsxRuntimeExports.jsx("rect",{className:dt?void 0:kt.handle,ref:eo,x:qt?0:nt&&!bo()||!nt&&bo()?ht-40:ht,y:0,width:qt?_e:42,height:cr,onMouseDown:dt?void 0:Wt,onMouseUp:dt?void 0:Ot,onMouseMove:dt?void 0:uo,onMouseLeave:dt?void 0:Ot,onTouchStart:dt?void 0:St,onTouchEnd:dt?void 0:Ot,onTouchMove:dt?void 0:go,onTouchCancel:dt?void 0:Ot,fill:"transparent"})]})},InnerBrush=({innerHeight:_e,innerWidth:cr,leftPosition:gr,rightPosition:Cr,onLeftDrop:Vr,onRightDrop:tt,plotMin:nt,plotMax:st,disabled:dt})=>{const kt=cr/(st-nt),[qt,ro]=reactExports.useState(!1),ht=typeof gr<"u"&&gr>=nt&&gr<=st?jsxRuntimeExports.jsx(Handle,{plotWidth:cr,height:_e,position:(gr-nt)*kt,minPosition:Math.max(0,-nt*kt),maxPosition:typeof Cr<"u"?(Cr-nt)*kt-.001:cr,onDrop:no=>{Vr(no/cr),(gr-nt)*kt<37&&ro(!1)},isStart:!0,onStart:()=>{ro(!0)},disabled:dt},"start"):null,po=typeof Cr<"u"&&Cr>=nt&&Cr<=st?jsxRuntimeExports.jsx(Handle,{plotWidth:cr,height:_e,position:(Cr-nt)*kt,minPosition:typeof gr<"u"?(gr-nt)*kt+.001:Math.max(0,-nt*kt),maxPosition:cr,onDrop:no=>{tt(no/cr),cr-(Cr-nt)*kt<37&&ro(!0)},onStart:()=>{ro(!1)},disabled:dt},"end"):null;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[qt?po:ht,qt?ht:po]})},Brush=(_e,cr,gr,Cr,Vr,tt,nt=!1)=>st=>jsxRuntimeExports.jsx(InnerBrush,{leftPosition:_e,rightPosition:cr,onLeftDrop:gr,onRightDrop:Cr,plotMin:Vr,plotMax:tt,disabled:nt,...st}),useStyles$p=makeStyles()(_e=>({container:{marginTop:32,height:"100%",position:"relative","& g > text":{stroke:"none",fill:"#A9B6BF!important",fontFamily:"IBM Plex Sans!important",[_e.breakpoints.down("sm")]:{fontSize:"8px!important"}}},zoomIcon:{},zoomButton:{minWidth:28,width:28,height:28,borderRadius:8,backgroundColor:"transparent",border:"1px solid",borderColor:colors$2.oraidex.border,padding:"8px 0","&:not(:last-child)":{marginBottom:4},"&:hover":{backgroundColor:"transparent",opacity:.7},[_e.breakpoints.down("sm")]:{width:40,height:40}},zoomButtonsWrapper:{position:"absolute",top:0,right:8,maxWidth:21,height:64,zIndex:10,flexDirection:"row",[_e.breakpoints.down("sm")]:{flexDirection:"row",maxWidth:92,height:40}},loadingText:{fill:colors$2.oraidex.black,...typography.heading4},errorWrapper:{margin:"auto"},errorText:{color:colors$2.white.main,...typography.heading4},reloadButton:{width:130,height:40,borderRadius:14,background:colors$2.oraidex.greenLinearGradientOpacity,color:colors$2.oraidex.dark,...typography.body1,marginTop:24,textTransform:"none","&:hover":{background:colors$2.oraidex.greenLinearGradient}},cover:{width:"calc(100% + 10px)",height:"calc(100% + 10px)",background:"#01051499",position:"absolute",zIndex:11,borderRadius:10,backdropFilter:"blur(16px)"},loader:{height:100,width:100,margin:"auto"}})),PriceRangePlot=({data:_e,leftRange:cr,rightRange:gr,midPrice:Cr,onChangeRange:Vr,style:tt,className:nt,disabled:st=!1,plotMin:dt,plotMax:kt,zoomMinus:qt,zoomPlus:ro,loading:ht,isXtoY:po,xDecimal:no,yDecimal:Nt,tickSpacing:eo,isDiscrete:Wt=!1,coverOnLoading:St=!1,hasError:Ot=!1,reloadHandler:uo})=>{const{classes:go}=useStyles$p(),bo=useMediaQuery(theme.breakpoints.down("sm")),oo=reactExports.useRef(null),Ro=reactExports.useMemo(()=>Math.max(..._e.map(co=>co.y)),[_e]),pt=reactExports.useCallback(co=>{if(oo.current===null||co.length<=1e3)return co;const mo=oo.current.offsetWidth/1e5,Bo=oo.current.offsetHeight/1e3,So=[];return co.forEach((Tt,vo)=>{(vo===0||vo===co.length-1||So.length>0&&((Tt.x-So[So.length-1].x)/(kt-dt)>=mo||Math.abs(Tt.y-So[So.length-1].y)/Ro>=Bo))&&So.push(Tt)}),So},[oo.current,dt,kt,Ro]),lo=reactExports.useMemo(()=>{if(!_e.length||st||cr.xBo.x<=cr.x);const mo=_e.filter(Bo=>Bo.xMath.max(dt,_e[0].x)&&co.unshift({x:Math.max(dt,_e[0].x),y:mo.length>0?mo[mo.length-1].y:0}),pt(co)):[]},[st,cr,_e,dt,kt,pt]),so=reactExports.useMemo(()=>{if(!_e.length)return;if(st){const Bo=_e.filter(vo=>vo.xvo.x>Math.min(kt,_e[_e.length-1].x)),Tt=_e.slice(Bo.length,_e.length-So.length);return(!Tt.length||Tt[0].x>Math.max(dt,_e[0].x))&&Tt.unshift({x:Math.max(dt,_e[0].x),y:Bo.length>0?Bo[Bo.length-1].y:0}),Tt[Tt.length-1].xkt||gr.xBo.x<=cr.x).length;let mo=_e.filter(Bo=>Bo.x>=cr.x&&Bo.x<=gr.x);if(!mo.length)mo.push({x:Math.max(cr.x,dt),y:_e[co-1].y}),mo.push({x:Math.min(gr.x,kt),y:_e[co-1].y});else{mo[0].x>cr.x&&mo.unshift({x:cr.x,y:mo[0].y}),mo[mo.length-1].xvo.xvo.x>Math.min(kt,_e[_e.length-1].x)),Tt=mo.slice(Bo.length,mo.length-So.length);(!Tt.length||Tt[0].x>Math.max(dt,mo[0].x))&&Tt.unshift({x:Math.max(dt,mo[0].x),y:Bo.length>0?Bo[Bo.length-1].y:0}),Tt[Tt.length-1].x{if(!_e.length||st||gr.x>kt)return[];let co=_e.filter(Bo=>Bo.x>=gr.x);const mo=_e.filter(Bo=>Bo.x>Math.min(kt,_e[_e.length-1].x));return co.length?(co[0].x>gr.x&&co.unshift({x:gr.x,y:co[0].y}),co=co.slice(0,co.length-mo.length),co[co.length-1].x{if(typeof Cr>"u")return null;const Bo=co/(kt-dt);return jsxRuntimeExports.jsxs("svg",{x:(Cr.x-dt)*Bo-20,y:-20,width:40,height:mo+20,children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("filter",{id:"shadow-global-price",x:"-10",y:"-9",width:"20",height:mo,children:jsxRuntimeExports.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8"})})}),jsxRuntimeExports.jsx("rect",{x:14,y:20,width:"16",height:mo,filter:"url(#shadow-global-price)",opacity:"0.3"}),jsxRuntimeExports.jsx("rect",{x:19,y:20,width:"3",height:mo,fill:colors$2.oraidex.yellow})]})},Mt=({innerWidth:co,innerHeight:mo})=>{const Bo=mo;return jsxRuntimeExports.jsx("rect",{x:0,y:Bo,width:co,height:1,fill:colors$2.oraidex.light})},ho=({innerWidth:co,innerHeight:mo})=>!ht||St?null:jsxRuntimeExports.jsxs("svg",{width:co,height:mo+5,viewBox:`0 0 ${co} ${mo+5}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",x:0,y:-5,children:[jsxRuntimeExports.jsx("rect",{x:0,y:0,width:"100%",height:"100%",fill:`${colors$2.white.main}10`}),jsxRuntimeExports.jsx("text",{x:"50%",y:"50%",dominantBaseline:"middle",textAnchor:"middle",className:go.loadingText,children:"Loading liquidity data..."})]}),io=Brush(cr.x,gr.x,co=>{const mo=nearestTickIndex(dt+co*(kt-dt),eo,po,no,Nt);Vr==null||Vr(po?Math.min(gr.index-eo,mo):Math.max(gr.index+eo,mo),gr.index)},co=>{const mo=nearestTickIndex(dt+co*(kt-dt),eo,po,no,Nt);Vr==null||Vr(cr.index,po?Math.max(cr.index+eo,mo):Math.min(cr.index-eo,mo))},dt,kt,st);return jsxRuntimeExports.jsxs(Grid,{container:!0,className:classNames(go.container,nt),style:tt,ref:oo,children:[ht&&St?jsxRuntimeExports.jsx(Grid,{container:!0,className:go.cover,children:jsxRuntimeExports.jsx("img",{src:loader$1,className:go.loader})}):null,!ht&&Ot?jsxRuntimeExports.jsx(Grid,{container:!0,className:go.cover,children:jsxRuntimeExports.jsxs(Grid,{className:go.errorWrapper,container:!0,direction:"column",alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{className:go.errorText,children:"Unable to load liquidity chart"}),jsxRuntimeExports.jsx(Button,{className:go.reloadButton,onClick:uo,children:"Reload chart"})]})}):null,jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:classNames(go.zoomButtonsWrapper,"zoomBtns"),justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Button,{className:go.zoomButton,onClick:ro,disableRipple:!0,children:jsxRuntimeExports.jsx("img",{src:ZoomInIcon,className:go.zoomIcon})}),jsxRuntimeExports.jsx(Button,{className:go.zoomButton,onClick:qt,disableRipple:!0,children:jsxRuntimeExports.jsx("img",{src:ZoomOutIcon,className:go.zoomIcon})})]}),jsxRuntimeExports.jsx(je,{data:[{id:"less than range",data:lo.length?lo:[{x:dt,y:0}]},{id:"range",data:so},{id:"greater than range",data:wo.length?wo:[{x:kt,y:0}]}],curve:Wt?po?"stepAfter":"stepBefore":"basis",margin:{top:bo?55:25,bottom:15},colors:[colors$2.oraidex.pink,colors$2.oraidex.green,colors$2.oraidex.pink],axisTop:null,axisRight:null,axisLeft:null,axisBottom:{tickSize:0,tickPadding:0,tickRotation:0,tickValues:5},xScale:{type:"linear",min:dt,max:kt},yScale:{type:"linear",min:0,max:Ro},enableGridX:!1,enableGridY:!1,enablePoints:!1,enableArea:!0,legends:[],isInteractive:!1,animate:!1,role:"application",layers:[Mt,"grid","markers","areas","lines",ho,xt,io,"axes","legends"],defs:[$t("gradient",[{offset:0,color:"inherit"},{offset:50,color:"inherit"},{offset:100,color:"inherit",opacity:0}])],fill:[{match:"*",id:"gradient"}]})]})},activeLiquidity="data:image/svg+xml,%3csvg%20width='56'%20height='43'%20viewBox='0%200%2056%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28%201C13.4525%201%2012.8268%2042.5%200%2042.5H56C43.486%2042.5%2042.5475%201%2028%201Z'%20fill='url(%23paint0_linear_6454_13876)'/%3e%3cpath%20d='M0%2042.5C12.8268%2042.5%2013.4525%201%2028%201C42.5475%201%2043.486%2042.5%2056%2042.5'%20stroke='%232EE09A'%20stroke-width='0.5'/%3e%3cline%20x1='14'%20y1='0.5'%20x2='14'%20y2='41.5'%20stroke='white'%20stroke-linecap='round'%20stroke-dasharray='4%204'/%3e%3cline%20x1='42'%20y1='0.5'%20x2='42'%20y2='41.5'%20stroke='white'%20stroke-linecap='round'%20stroke-dasharray='4%204'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6454_13876'%20x1='28'%20y1='1'%20x2='28'%20y2='42.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232EE09A'%20stop-opacity='0.5'/%3e%3cstop%20offset='1'%20stop-color='%232EE09A'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",useThumbStyles=makeStyles()(()=>({outerCircle:{background:colors$2.oraidex.greenLinearGradient,width:28,height:28,borderRadius:"100%",padding:6,boxSizing:"border-box"},innerCircle:{background:"linear-gradient(180deg, #FFFFFF 0%, #A2A2A2 100%)",width:16,height:16,borderRadius:"100%"}})),useSliderStyles=makeStyles()((_e,{disabledRange:cr,valuesLength:gr})=>({root:{width:"100%",paddingBlock:13},thumb:{width:"auto",height:"auto",boxShadow:"none !important"},rail:{background:cr>0?`linear-gradient(90deg, ${colors$2.oraidex.lightGrey} 0%, ${colors$2.oraidex.lightGrey} ${cr}%, ${colors$2.oraidex.green} ${cr+1}%, ${colors$2.oraidex.green} 100%)`:colors$2.oraidex.green,height:6,opacity:1},track:{background:colors$2.oraidex.lightGrey,height:6},markLabel:{color:colors$2.oraidex.text,...typography.body1,marginTop:10,top:26,'&[data-index="0"]':{transform:"translateX(-30%)"},[`&[data-index="${gr-1}"]`]:{transform:"translateX(-90%)"}},mark:{display:"none",[`&[data-index="${gr-1}"], &[data-index="0"]`]:{display:"block",width:14,height:14,borderRadius:"100%",transform:"translate(-6px, -6px)"},'&[data-index="0"]':{background:cr>0?colors$2.oraidex.lightGrey:colors$2.oraidex.green},[`&[data-index="${gr-1}"]`]:{background:colors$2.oraidex.green}},valueLabel:{padding:"2px 15px",width:300,height:17,position:"absolute",margin:0,top:-8,borderRadius:7,background:colors$2.oraidex.light,"& span":{display:"flex",justifyContent:"center",alignItems:"center",color:colors$2.oraidex.text,...typography.caption1,minWidth:28},"&::before":{display:"none"}},valueLabelLabel:{width:300,background:colors$2.oraidex.pink},valueLabelCircle:{width:120,background:colors$2.oraidex.pink},valueLabelOpen:{width:200,background:colors$2.oraidex.pink}}));function ThumbComponent(_e){const{classes:cr}=useThumbStyles(),{children:gr,...Cr}=_e;return jsxRuntimeExports.jsxs(SliderThumb,{...Cr,children:[gr,jsxRuntimeExports.jsx(Grid,{className:cr.outerCircle,children:jsxRuntimeExports.jsx(Grid,{className:cr.innerCircle})})]})}const ConcentrationSlider=({values:_e,valueChangeHandler:cr,valueIndex:gr,dragHandler:Cr,minimumSliderIndex:Vr})=>{const tt=100*Vr/_e.length,{classes:nt}=useSliderStyles({valuesLength:_e.length,disabledRange:tt}),st=reactExports.useCallback((qt,ro)=>{cr(ro)},[cr]),dt=reactExports.useCallback((qt,ro)=>{Cr(ro)},[Cr]),kt=_e.map((qt,ro)=>({value:ro,label:ro===0||ro===_e.length-1?`${qt.toFixed(0)}x`:void 0}));return jsxRuntimeExports.jsx(Slider,{classes:nt,onChange:dt,onChangeCommitted:st,marks:kt,min:0,max:_e.length-1,value:gr,valueLabelDisplay:"on",track:!1,slots:{thumb:ThumbComponent},valueLabelFormat:qt=>`${_e[qt].toFixed(0)}x`})},useStyles$o=makeStyles()(_e=>({wrapper:{borderRadius:10,backgroundColor:colors$2.oraidex.component,padding:"16px 24px 8px 24px",flex:"1 1 0%"},headerContainer:{marginBottom:12},header:{...typography.heading4,color:colors$2.white.main},innerWrapper:{borderRadius:8,backgroundColor:colors$2.oraidex.component,width:"100%",position:"relative",gap:4},plot:{width:"100%",height:185},subheader:{...typography.heading4,marginBottom:14,color:colors$2.white.main},inputs:{marginBottom:8,flexDirection:"row",gap:16},input:{flex:"1 1 0%",gap:12,[_e.breakpoints.down("sm")]:{"&:first-of-type":{marginRight:0,marginBottom:8}}},button:{width:"100%",flex:"1 1 0%",...typography.body2,color:colors$2.white.main,textTransform:"none",height:36,paddingInline:8,backgroundColor:colors$2.oraidex.light,borderRadius:11,[_e.breakpoints.down("sm")]:{"&:first-of-type":{marginRight:0,marginBottom:0}}},blocker:{position:"absolute",background:"red",top:0,right:0,zIndex:11,width:"49%",height:"100%",backgroundColor:"rgba(11, 12, 13, 0.8)",borderRadius:11,[_e.breakpoints.down("sm")]:{top:562,right:0,zIndex:11,width:"100%",height:555,borderRadius:9},[_e.breakpoints.down("xs")]:{top:545}},blockedInfo:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",...typography.heading4,color:colors$2.oraidex.lightHover,zIndex:99},buttons:{width:"100%",flexDirection:"row",gap:16,alignItems:"center"},sliderWrapper:{paddingTop:24,paddingInline:8,height:77,position:"relative"},warningWrapper:{position:"absolute",top:60,left:30,[_e.breakpoints.down("xs")]:{top:61}},unsafeWarning:{...typography.body2,color:colors$2.oraidex.Error,[_e.breakpoints.down("xs")]:{...typography.caption4}},questionMark:{width:14,height:14,marginLeft:5},tooltip:{background:colors$2.oraidex.componentBcg,borderRadius:12,width:300,textAlign:"justify",padding:10},tooltipText:{...typography.caption4,fontSize:13,color:colors$2.white.main},loader:{height:150,width:150,margin:"auto"},infoRow:{marginBottom:16},activeLiquidity:{color:colors$2.oraidex.text,...typography.caption2,display:"flex",flexDirection:"row",alignItems:"center",cursor:"default"},activeLiquidityIcon:{marginLeft:5,height:14,width:14,border:"1px solid #FFFFFF",color:colors$2.oraidex.text,borderRadius:"50%",fontSize:8,lineHeight:"10px",fontWeight:400,textAlign:"center",boxSizing:"border-box",paddingTop:3,cursor:"default"},liquidityTooltip:{background:colors$2.oraidex.component,boxShadow:"0px 4px 18px rgba(0, 0, 0, 0.35)",borderRadius:20,padding:16,maxWidth:376,boxSizing:"border-box",[_e.breakpoints.down("xs")]:{maxWidth:360}},liquidityTitle:{color:colors$2.oraidex.text,...typography.heading4,marginBottom:12},liquidityDesc:{color:colors$2.oraidex.text,...typography.caption2},liquidityNote:{color:colors$2.oraidex.textGrey,...typography.caption2},liquidityImg:{width:80,minWidth:80,height:60,marginLeft:16},currentPrice:{display:"inline-block",color:colors$2.oraidex.yellow,...typography.caption2,textAlign:"right"}})),RangeSelector=({data:_e,midPrice:cr,tokenASymbol:gr,tokenBSymbol:Cr,onChangeRange:Vr,blocked:tt=!1,blockerInfo:nt,ticksLoading:st,isXtoY:dt,xDecimal:kt,yDecimal:qt,tickSpacing:ro,currentPairReversed:ht,initialIsDiscreteValue:po,onDiscreteChange:no,positionOpeningMethod:Nt,hasTicksError:eo,reloadHandler:Wt,concentrationArray:St,minimumSliderIndex:Ot,concentrationIndex:uo,setConcentrationIndex:go,getTicksInsideRange:bo})=>{const{classes:oo}=useStyles$o(),[Ro,pt]=reactExports.useState(getMinTick$1(ro)),[lo,so]=reactExports.useState(getMaxTick$1(ro)),[wo,xt]=reactExports.useState(""),[Mt,ho]=reactExports.useState(""),[io,co]=reactExports.useState(""),[mo,Bo]=reactExports.useState(""),[So,Tt]=reactExports.useState(0),[vo,Co]=reactExports.useState(1),[xo,Po]=reactExports.useState(po),Wo=reactExports.useRef(!1);reactExports.useEffect(()=>(Wo.current=!0,()=>{Wo.current=!1}),[]);const Yn=()=>{const zo=vo-So,$n=So-zo/4,Tn=vo+zo/4;Tt($n),Co(Tn)},ba=()=>{const zo=vo-So,$n=So+zo/6,Tn=vo-zo/6;calcTicksAmountInRange(Math.max($n,0),Tn,ro,dt,Number(kt),Number(qt))>=4&&(Tt($n),Co(Tn))},_a=zo=>{xt(zo),co(toMaxNumericPlaces(+zo,5))},$s=zo=>{ho(zo),Bo(toMaxNumericPlaces(+zo,5))},vs=zo=>{xt(zo),co(zo)},ss=zo=>{ho(zo),Bo(zo)},Ts=(zo,$n)=>{let Tn,ko;if(Nt==="range"){const{leftInRange:es,rightInRange:fs}=bo(zo,$n,dt);Tn=es,ko=fs}else Tn=zo,ko=$n;pt(Number(Tn)),so(Number(ko)),_a(calcPrice(Number(Tn),dt,kt,qt).toString()),$s(calcPrice(Number(ko),dt,kt,qt).toString()),Vr(zo,$n)},qo=()=>{if(Nt==="range"){const zo=Math.abs(cr.x-calcPrice(Math.max(getMinTick$1(ro),Number(cr.index)-ro*15),dt,kt,qt)),$n=Math.max(Number(getMinTick$1(Number(ro))),Number(cr.index)-Number(ro)*10),Tn=Math.min(Number(getMaxTick$1(Number(ro))),Number(cr.index)+Number(ro)*10);Ts(dt?$n:Tn,dt?Tn:$n),Tt(cr.x-zo),Co(cr.x+zo)}else{go(0);const{leftRange:zo,rightRange:$n}=calculateConcentrationRange(ro,St[0],2,cr.index,dt);Ts(zo,$n),Vo(zo,$n,!0)}},Js=()=>{if(Ts(lo,Ro),So>0){const zo=1/So;Tt(1/vo),Co(zo)}else{const zo=Math.abs(cr.x-calcPrice(Math.max(getMinTick$1(ro),cr.index-ro*15),dt,kt,qt));Tt(cr.x-zo),Co(cr.x+zo)}};reactExports.useEffect(()=>{ht!==null&&Wo.current&&Js()},[ht]),reactExports.useEffect(()=>{!st&&Wo.current&&qo()},[st,cr]);const Vo=(zo,$n,Tn=!1)=>{const ko=calcPrice(zo,dt,kt,qt),es=calcPrice($n,dt,kt,qt),fs=Math.max(getMinTick$1(ro),zo-ro*15),Es=Math.min(getMaxTick$1(ro),zo+ro*15),Us=Math.min(getMaxTick$1(ro),$n+ro*15),ms=Math.max(getMinTick$1(ro),$n-ro*15);if(kovo||Tn){const bs=Math.abs(ko-calcPrice(dt?fs:Es,dt,kt,qt)),ks=Math.abs(es-calcPrice(dt?Us:ms,dt,kt,qt));let Ds;kovo?Ds=Math.max(bs,ks):ko{if(Nt==="concentration"&&Wo.current&&!st){go(0);const{leftRange:zo,rightRange:$n}=calculateConcentrationRange(ro,St[0],2,cr.index,dt);Ts(zo,$n),Vo(zo,$n,!0)}else Ts(Ro,lo)},[Nt]),reactExports.useEffect(()=>{if(Nt==="concentration"&&!st&&Wo.current){const zo=uo>St.length-1?St.length-1:uo;go(zo);const{leftRange:$n,rightRange:Tn}=calculateConcentrationRange(ro,St[zo],2,cr.index,dt);Ts($n,Tn),Vo($n,Tn,!0)}},[cr.index,St]),jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.wrapper,direction:"column",children:[jsxRuntimeExports.jsxs(Grid,{className:oo.headerContainer,container:!0,justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Typography,{className:oo.header,children:"Price range"}),jsxRuntimeExports.jsx(PlotTypeSwitch,{onSwitch:zo=>{Po(zo),no(zo)},initialValue:xo?1:0})]}),jsxRuntimeExports.jsx(Grid,{className:oo.infoRow,container:!0,justifyContent:"flex-end",children:jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",alignItems:"flex-end",children:[jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{className:oo.liquidityTitle,children:"Active liquidity"}),jsxRuntimeExports.jsx(Typography,{className:oo.liquidityDesc,style:{marginBottom:12},children:"While selecting the price range, note where active liquidity is located. Your liquidity can be inactive and, as a consequence, not generate profits."}),jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"row",wrap:"nowrap",alignItems:"center",style:{marginBottom:12},children:[jsxRuntimeExports.jsx(Typography,{className:oo.liquidityDesc,children:"The active liquidity range is represented by white, dashed lines in the liquidity chart. Active liquidity is determined by the maximum price range resulting from the statistical volume of swaps for the last 7 days."}),jsxRuntimeExports.jsx("img",{className:oo.liquidityImg,src:activeLiquidity})]}),jsxRuntimeExports.jsx(Typography,{className:oo.liquidityNote,children:"Note: active liquidity borders are always aligned to the nearest initialized ticks."})]}),placement:"bottom",classes:{tooltip:oo.liquidityTooltip},children:jsxRuntimeExports.jsxs(Typography,{className:oo.activeLiquidity,children:["Active liquidity ",jsxRuntimeExports.jsx("span",{className:oo.activeLiquidityIcon,children:"i"})]})}),jsxRuntimeExports.jsx(Grid,{children:jsxRuntimeExports.jsx(Typography,{className:oo.currentPrice,children:"Current price"})})]})}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.innerWrapper,children:[jsxRuntimeExports.jsx(PriceRangePlot,{className:oo.plot,data:_e,onChangeRange:Ts,leftRange:{index:Ro,x:calcPrice(Ro,dt,kt,qt)},rightRange:{index:lo,x:calcPrice(lo,dt,kt,qt)},midPrice:cr,plotMin:So,plotMax:vo,zoomMinus:Yn,zoomPlus:ba,loading:st,isXtoY:dt,tickSpacing:ro,xDecimal:kt,yDecimal:qt,isDiscrete:xo,disabled:Nt==="concentration",hasError:eo,reloadHandler:Wt}),jsxRuntimeExports.jsx(Typography,{className:oo.subheader,children:"Set price range"}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.inputs,children:[jsxRuntimeExports.jsx(RangeInput,{disabled:Nt==="concentration",className:oo.input,label:"Min price",tokenFromSymbol:gr,tokenToSymbol:Cr,currentValue:io,setValue:vs,decreaseValue:()=>{const zo=dt?Math.max(Number(getMinTick$1(Number(ro))),Number(Ro-Number(ro))):Math.min(Number(getMaxTick$1(Number(ro))),Number(Ro+Number(ro)));Ts(zo,lo),Vo(zo,lo)},increaseValue:()=>{const zo=dt?Math.min(Number(lo-Number(ro)),Number(Ro+Number(ro))):Math.max(Number(lo+Number(ro)),Number(Ro-Number(ro)));Ts(zo,lo),Vo(zo,lo)},onBlur:()=>{const zo=dt?Math.min(lo-ro,nearestTickIndex(+wo,ro,dt,kt,qt)):Math.max(lo+ro,nearestTickIndex(+wo,ro,dt,kt,qt));Ts(zo,lo),Vo(zo,lo)},diffLabel:"Min - Current price",percentDiff:(+wo-cr.x)/cr.x*100}),jsxRuntimeExports.jsx(RangeInput,{disabled:Nt==="concentration",className:oo.input,label:"Max price",tokenFromSymbol:gr,tokenToSymbol:Cr,currentValue:mo,setValue:ss,decreaseValue:()=>{const zo=dt?Math.max(Number(lo-Number(ro)),Number(Ro+Number(ro))):Math.min(Number(lo+Number(ro)),Number(Ro-Number(ro)));Ts(Ro,zo),Vo(Ro,zo)},increaseValue:()=>{const zo=dt?Math.min(Number(getMaxTick$1(Number(ro))),Number(lo+Number(ro))):Math.max(Number(getMinTick$1(Number(ro))),Number(lo-Number(ro)));Ts(Ro,zo),Vo(Ro,zo)},onBlur:()=>{const zo=dt?Math.max(Number(Ro+Number(ro)),Number(nearestTickIndex(+Mt,Number(ro),dt,kt,qt))):Math.min(Number(Ro-Number(ro)),Number(nearestTickIndex(+Mt,Number(ro),dt,kt,qt)));Ts(Ro,zo),Vo(Ro,zo)},diffLabel:"Max - Current price",percentDiff:(+Mt-cr.x)/cr.x*100})]}),Nt==="concentration"?jsxRuntimeExports.jsx(Grid,{container:!0,className:oo.sliderWrapper,children:jsxRuntimeExports.jsx(ConcentrationSlider,{valueIndex:uo,values:St,valueChangeHandler:zo=>{go(zo);const{leftRange:$n,rightRange:Tn}=calculateConcentrationRange(ro,St[zo],2,cr.index,dt);Ts($n,Tn),Vo($n,Tn,!0)},dragHandler:zo=>{go(zo)},minimumSliderIndex:Ot})}):jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.buttons,children:[jsxRuntimeExports.jsx(Button,{className:oo.button,onClick:qo,children:"Reset range"}),jsxRuntimeExports.jsx(Button,{className:oo.button,onClick:()=>{const zo=dt?getMinTick$1(Number(ro)):getMaxTick$1(Number(ro)),$n=dt?getMaxTick$1(Number(ro)):getMinTick$1(Number(ro));Ts(zo,$n),Vo(zo,$n)},children:"Set full range"})]})]}),tt&&jsxRuntimeExports.jsx(Grid,{className:oo.blocker,children:nt==="Loading pool info..."?jsxRuntimeExports.jsx(Grid,{container:!0,style:{height:"100%"},children:jsxRuntimeExports.jsx("img",{src:loader$1,className:oo.loader})}):jsxRuntimeExports.jsx(Typography,{className:oo.blockedInfo,children:nt})})]})},useStyles$n=makeStyles()(_e=>({wrapper:{width:952,borderRadius:"12px",border:"1px solid #232521",backgroundColor:"#1B1D19",padding:"24px",[_e.breakpoints.down("sm")]:{padding:10}},head:{borderBottom:"1px solid #232521",marginBottom:30},back:{height:24,marginBottom:18,width:"fit-content",transition:"filter 300ms","&:hover":{filter:"brightness(2)"}},backIcon:{width:22,height:24,marginRight:12,cursor:"pointer"},backText:{color:colors$2.oraidex.lightHover,WebkitPaddingBefore:"2px",...typography.body2},title:{color:colors$2.white.main,...typography.heading4,marginBottom:18,[_e.breakpoints.down("xs")]:{fontSize:18}},row:{minWidth:464,minHeight:540,position:"relative",flexDirection:"row","& .noConnectedLayer":{height:"100%"},[_e.breakpoints.down("sm")]:{flexDirection:"column",minWidth:0,"& .noConnectedInfo":{justifyContent:"flex-start",paddingTop:60}}},deposit:{marginRight:24,[_e.breakpoints.down("sm")]:{marginBottom:24,marginRight:0}},settingsIconBtn:{width:20,height:20,padding:0,margin:0,marginLeft:10,minWidth:"auto",background:"none","&:hover":{backgroundColor:"none"}},settingsIcon:{width:20,height:20,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}},options:{width:"fit-content",marginBottom:18,height:28},switch:{transition:"opacity 500ms"}})),NewPosition=({initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr,tokens:Cr,data:Vr,midPrice:tt,setMidPrice:nt,addLiquidityHandler:st,progress:dt="progress",onChangePositionTokens:kt,isCurrentPoolExisting:qt,calcAmount:ro,feeTiers:ht,ticksLoading:po,showNoConnected:no,noConnectedBlockerProps:Nt,isXtoY:eo,xDecimal:Wt,yDecimal:St,tickSpacing:Ot,isWaitingForNewPool:uo,poolIndex:go,currentPairReversed:bo,bestTiers:oo,initialIsDiscreteValue:Ro,onDiscreteChange:pt,canCreateNewPool:lo,canCreateNewPosition:so,handleAddToken:wo,commonTokens:xt,initialOpeningPositionMethod:Mt,initialHideUnknownTokensValue:ho,onHideUnknownTokensChange:io,tokenAPriceData:co,tokenBPriceData:mo,priceALoading:Bo,priceBLoading:So,hasTicksError:Tt,reloadHandler:vo,currentFeeIndex:Co,onSlippageChange:xo,initialSlippage:Po,poolKey:Wo,currentPriceSqrt:Yn,onRefresh:ba})=>{var E0;const{classes:_a}=useStyles$n(),$s=useNavigate(),[vs,ss]=reactExports.useState(Mt),[Ts,qo]=reactExports.useState(getMinTick$1(Number(Ot))),[Js,Vo]=reactExports.useState(getMaxTick$1(Number(Ot))),[zo,$n]=reactExports.useState(null),[Tn,ko]=reactExports.useState(null),[es,fs]=reactExports.useState(""),[Es,Us]=reactExports.useState(""),[ms,bs]=React$3.useState(!1),[ks,Ds]=React$3.useState(Po),[Fs,d0]=React$3.useState(null),[v0,b0]=reactExports.useState(0),[R0,D0]=reactExports.useState(0),[zs,n0]=React$3.useState(REFRESHER_INTERVAL),fo=reactExports.useMemo(()=>getConcentrationArray(Number(Ot),2,Number(tt.index)).sort((Vs,Bs)=>Vs-Bs),[Ot]),Qo=()=>zo===null||Tn===null?"Select tokens to set price range.":zo===Tn?"Token A can't be the same as token B":uo?"Loading pool info...":"",Ko={data:Array(100).fill(1).map((Vs,Bs)=>({x:Bs,y:Bs,index:Bs})),midPrice:{x:50,index:50},tokenASymbol:"ABC",tokenBSymbol:"XYZ"},ps=(Vs,Bs,Gs,A0)=>{const[y0,s0]=A0?[Tn,zo]:[zo,Tn];if(y0===null||s0===null)return"0.0";const P0=ro(Vs,Bs,Gs,Cr[s0].assetAddress);return trimLeadingZeros(printBigint(P0,Cr[y0].decimals))},Kn=(Vs,Bs,Gs)=>{const A0=Gs?getMinTick$1(Ot):getMaxTick$1(Ot),y0=Gs?getMaxTick$1(Ot):getMinTick$1(Ot);let s0,P0;return Gs?(s0=Vsy0?y0:Bs):(s0=Vs>A0?A0:Vs,P0=Bs{let Gs,A0;if(vs==="range"){const{leftInRange:y0,rightInRange:s0}=Kn(Vs,Bs,eo);Gs=y0,A0=s0}else Gs=Vs,A0=Bs;if(Gs=Vs,A0=Bs,console.log({tickSpacing:Ot,left:Vs,right:Bs}),qo(Number(Vs)),Vo(Number(Bs)),zo!==null&&(eo?A0>tt.index:A0tt.index)){const y0=Es,s0=ps(convertBalanceToBigint(y0,Number(Cr[Tn].decimals)),Number(Gs),Number(A0),!1);zo!==null&&+y0!=0&&(Us(y0),fs(s0))}},H0=Vs=>{const Bs=Number(Vs);if(nt({index:Bs,x:calcPrice(Bs,eo,Wt,St)}),zo!==null&&(eo?Js>Bs:JsBs)){const Gs=Es,A0=ps(convertBalanceToBigint(Gs,Cr[Tn].decimals),Ts,Js,!1);zo!==null&&+Gs!=0&&(Us(Gs),fs(A0))}},j0=zo===null||Tn===null?void 0:((E0=oo.find(Vs=>{const Bs=Cr[zo].assetAddress,Gs=Cr[Tn].assetAddress;return Vs.tokenX===Bs&&Vs.tokenY===Gs||Vs.tokenX===Gs&&Vs.tokenY===Bs}))==null?void 0:E0.bestTierIndex)??void 0,hs=()=>{let Vs=0;for(let Bs=0;Bs{const Vs=setTimeout(()=>{zs>0&&Wo!==""?n0(zs-1):(ba(),n0(REFRESHER_INTERVAL))},1e3);return()=>clearTimeout(Vs)},[zs,Wo]),reactExports.useEffect(()=>{if(vs==="concentration"){const Vs=hs();D0(Vs)}},[go,vs,tt.index]),reactExports.useEffect(()=>{!po&&vs==="range"&&gs(Ts,Js)},[tt.index]);const Ss=Vs=>{d0(Vs.currentTarget),blurContent(),bs(!0)},Rs=()=>{unblurContent(),bs(!1)},e0=Vs=>{Ds(Vs),xo(Vs)},g0=(Vs,Bs,Gs)=>{const A0=ht[Gs].feeValue;if(Vs!=null&&Bs!=null){const y0=Cr[Vs].symbol,s0=Cr[Bs].symbol;$s(`/newPosition/${y0}/${s0}/${A0}`,{replace:!0})}else if(Vs!=null){const y0=Cr[Vs].symbol;$s(`/newPosition/${y0}/${A0}`,{replace:!0})}else if(Bs!=null){const y0=Cr[Bs].symbol;$s(`/newPosition/${y0}/${A0}`,{replace:!0})}else Gs!=null&&$s(`/newPosition/${A0}`,{replace:!0})};return jsxRuntimeExports.jsxs(Grid,{container:!0,className:_a.wrapper,direction:"column",children:[jsxRuntimeExports.jsxs(Grid,{className:_a.head,container:!0,direction:"row",justifyContent:"space-between",alignContent:"center",wrap:"nowrap",children:[jsxRuntimeExports.jsx(Grid,{className:_a.back,container:!0,item:!0,alignItems:"center",children:jsxRuntimeExports.jsx("img",{className:_a.backIcon,src:backIcon,onClick:()=>$s(-1)})}),jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"center",children:jsxRuntimeExports.jsx(Typography,{className:_a.title,children:"Add new liquidity position"})}),jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,alignItems:"center",className:_a.options,children:jsxRuntimeExports.jsx(Button,{onClick:Ss,className:_a.settingsIconBtn,disableRipple:!0,children:jsxRuntimeExports.jsx("img",{src:settingIcon,className:_a.settingsIcon})})})]}),jsxRuntimeExports.jsx(Slippage,{open:ms,setSlippage:e0,handleClose:Rs,anchorEl:Fs,defaultSlippage:"1",initialSlippage:Po,infoText:"Slippage tolerance is a pricing difference between the price at the confirmation time and the actual price of the transaction users are willing to accept when initializing position.",headerText:"Position Transaction Settings"}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:_a.row,alignItems:"stretch",children:[no&&jsxRuntimeExports.jsx(NoConnected,{...Nt}),jsxRuntimeExports.jsx(DepositSelector,{initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr,className:_a.deposit,tokens:Cr,setPositionTokens:(Vs,Bs,Gs)=>{$n(Vs),ko(Bs),kt(Vs,Bs,Gs),g0(Vs,Bs,Gs)},onAddLiquidity:()=>{if(zo!==null&&Tn!==null){const Vs=Cr[zo].decimals,Bs=Cr[Tn].decimals;st(Ts,Js,eo?convertBalanceToBigint(es,Vs):convertBalanceToBigint(Es,Bs),eo?convertBalanceToBigint(Es,Bs):convertBalanceToBigint(es,Vs),BigInt(+ks*Number(PERCENTAGE_DENOMINATOR))/100n)}},tokenAInputState:{value:es,setValue:Vs=>{zo!==null&&(fs(Vs),Us(ps(convertBalanceToBigint(Vs,Cr[zo].decimals),Number(Ts),Number(Js),!0)))},blocked:zo!==null&&Tn!==null&&!uo&&determinePositionTokenBlock(BigInt(Yn),Math.min(Number(Ts),Number(Js)),Math.max(Number(Ts),Number(Js)),eo)===PositionTokenBlock.A,blockerInfo:"Range only for single-asset deposit.",decimalsLimit:zo!==null?Number(Cr[zo].decimals):0},tokenBInputState:{value:Es,setValue:Vs=>{Tn!==null&&(Us(Vs),fs(ps(convertBalanceToBigint(Vs,Number(Cr[Tn].decimals)),Number(Ts),Number(Js),!1)))},blocked:zo!==null&&Tn!==null&&!uo&&determinePositionTokenBlock(BigInt(Yn),Math.min(Number(Ts),Number(Js)),Math.max(Number(Ts),Number(Js)),eo)===PositionTokenBlock.B,blockerInfo:"Range only for single-asset deposit.",decimalsLimit:Tn!==null?Number(Cr[Tn].decimals):0},feeTiers:ht.map(Vs=>Vs.feeValue),progress:dt,onReverseTokens:()=>{if(zo===null||Tn===null)return;const Vs=zo;$n(Tn),ko(Vs),kt(Tn,zo,Co),g0(Tn,zo,Co)},poolIndex:go,bestTierIndex:j0,canCreateNewPool:lo,canCreateNewPosition:so,handleAddToken:wo,commonTokens:xt,initialHideUnknownTokensValue:ho,onHideUnknownTokensChange:io,priceA:co==null?void 0:co.price,priceB:mo==null?void 0:mo.price,priceALoading:Bo,priceBLoading:So,feeTierIndex:Co,concentrationArray:fo,concentrationIndex:v0,minimumSliderIndex:R0,positionOpeningMethod:vs}),qt||zo===null||Tn===null||zo===Tn||uo?jsxRuntimeExports.jsx(RangeSelector,{poolIndex:go,onChangeRange:gs,blocked:zo===null||Tn===null||zo===Tn||Vr.length===0||uo,blockerInfo:Qo(),...zo===null||Tn===null||!qt||Vr.length===0||uo?Ko:{data:Vr,midPrice:tt,tokenASymbol:Cr[zo].symbol,tokenBSymbol:Cr[Tn].symbol},ticksLoading:po,isXtoY:eo,tickSpacing:Ot,xDecimal:Wt,yDecimal:St,currentPairReversed:bo,initialIsDiscreteValue:Ro,onDiscreteChange:pt,positionOpeningMethod:vs,hasTicksError:Tt,reloadHandler:vo,concentrationArray:fo,setConcentrationIndex:b0,concentrationIndex:v0,minimumSliderIndex:R0,getTicksInsideRange:Kn}):jsxRuntimeExports.jsx(PoolInit,{onChangeRange:gs,isXtoY:eo,tickSpacing:Number(Ot),xDecimal:Wt,yDecimal:St,tokenASymbol:zo!==null&&Cr[zo]?Cr[zo].symbol:"ABC",tokenBSymbol:Tn!==null&&Cr[Tn]?Cr[Tn].symbol:"XYZ",midPrice:BigInt(tt.index),onChangeMidPrice:H0,currentPairReversed:bo})]})]})},store$2=_e=>_e[connectionSliceName],{networkType,status,blockNumber,rpcAddress,dexAddress}=keySelectors(store$2,["networkType","status","blockNumber","rpcAddress","dexAddress"]),ALL_FEE_TIERS_DATA=[{fee:1e8,tick_spacing:1},{fee:5e8,tick_spacing:10},{fee:3e9,tick_spacing:100},{fee:1e10,tick_spacing:100}],NewPositionWrapper=({initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr})=>{const Cr=useDispatch(),Vr=useSelector(swapTokens),tt=useSelector(status$1),nt=useSelector(poolsArraySortedByFees),st=useSelector(poolKeys),dt=useSelector(pools),kt=useSelector(isLoadingTicksAndTickMaps),qt=useSelector(address),{success:ro,inProgress:ht}=useSelector(initPosition),{data:po,loading:no,hasError:Nt}=useSelector(plotTicks),eo=useSelector(isLoadingLatestPoolsForTransaction),Wt=useSelector(networkType),St=useSelector(canCreateNewPool()),Ot=useSelector(canCreateNewPosition()),[uo,go]=reactExports.useState(null),[bo,oo]=reactExports.useState(""),[Ro,pt]=reactExports.useState("none"),[lo,so]=reactExports.useState(null),[wo,xt]=reactExports.useState(null),[Mt,ho]=reactExports.useState(null),io=reactExports.useRef(!1);reactExports.useEffect(()=>{if(lo!==null&&wo!==null){const ks=mo?Vr[lo].assetAddress:Vr[wo].assetAddress,Ds=mo?Vr[wo].assetAddress:Vr[lo].assetAddress;Cr(actions$1.getTicksAndTickMaps({tokenFrom:ks,tokenTo:Ds,allPools:nt}))}},[lo,wo,nt]),reactExports.useEffect(()=>{Cr(actions$1.getPoolKeys())},[tt,qt]),reactExports.useEffect(()=>(io.current=!0,()=>{io.current=!1}),[]);const co=reactExports.useRef(0n);reactExports.useEffect(()=>{pt("none")},[uo]),reactExports.useEffect(()=>{let ks,Ds;return!ht&&Ro==="progress"&&(pt(ro?"approvedWithSuccess":"approvedWithFail"),ks=setTimeout(()=>{pt(ro?"success":"failed")},1500),Ds=setTimeout(()=>{pt("none")},3e3)),()=>{clearTimeout(ks),clearTimeout(Ds)}},[ro,ht]),reactExports.useEffect(()=>{ro&&bo!==""&&lo!==null&&wo!==null&&uo!==null&&!kt&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:nt[uo].pool_key.token_x===Vr[Mt===!0?wo:lo].assetAddress,disableLoading:!0}))},[ro,bo,lo,wo,uo,kt]);const mo=reactExports.useMemo(()=>lo!==null&&wo!==null?Vr[lo].assetAddress.toString()lo!==null&&wo!==null?Vr[lo].assetAddress.toString()lo!==null&&wo!==null?Vr[lo].assetAddress.toString()ALL_FEE_TIERS_DATA[Tt]?ALL_FEE_TIERS_DATA[Tt].fee:1n,[Tt]),xo=reactExports.useMemo(()=>ALL_FEE_TIERS_DATA[Tt]?ALL_FEE_TIERS_DATA[Tt].tick_spacing:1,[Tt]),[Po,Wo]=reactExports.useState({index:0,x:1}),Yn=reactExports.useMemo(()=>bo!==""?!1:eo,[eo,bo]);reactExports.useEffect(()=>{if(lo!==null&&wo!==null){const ks=Vr[lo].assetAddress.toString(),Ds=Vr[wo].assetAddress.toString(),Fs=poolKeyToString({token_x:mo?ks:Ds,token_y:mo?Ds:ks,fee_tier:ALL_FEE_TIERS_DATA[Tt]});st[Fs]?oo(Fs):oo("");const d0=nt.findIndex(v0=>v0.pool_key.fee_tier.fee===Co&&(v0.pool_key.token_x===Vr[lo].assetAddress&&v0.pool_key.token_x===Vr[wo].assetAddress||v0.pool_key.token_y===Vr[wo].assetAddress&&v0.pool_key.token_y===Vr[lo].assetAddress));go(d0!==-1?d0:null),bo!==""&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:mo}))}},[Yn,lo,wo,Tt,uo,bo,st]),reactExports.useEffect(()=>{dt[bo]&&Wo({index:dt[bo].pool.current_tick_index,x:calcYPerXPriceBySqrtPrice(BigInt(dt[bo].pool.sqrt_price),Bo,So)**(mo?1:-1)})},[bo,mo,Bo,So,dt]),reactExports.useEffect(()=>{bo===""&&Wo({index:0,x:calcPrice(0,mo,Bo,So)})},[uo,mo,Bo,So,bo]);const ba=reactExports.useMemo(()=>no&&xo?createPlaceholderLiquidityPlot(mo,10,xo,Bo,So):po,[po,no,mo,xo,Bo,So]);reactExports.useEffect(()=>{lo!==null&&wo!==null&&uo===null&&Cr(actions$1.getPoolData(newPoolKey$1(Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString(),ALL_FEE_TIERS_DATA[Tt])))},[lo,wo,uo]);const _a=localStorage.getItem("IS_PLOT_DISCRETE")?localStorage.getItem("IS_PLOT_DISCRETE")==="true":!0,$s=ks=>{localStorage.setItem("IS_PLOT_DISCRETE",ks?"true":"false")},vs=(ks,Ds)=>{Cr(actions$4.add({message:ks,variant:Ds,persist:!1}))},ss=ks=>{localStorage.setItem("OPENING_METHOD",ks)},Ts=localStorage.getItem("HIDE_UNKNOWN_TOKENS")==="true"||localStorage.getItem("HIDE_UNKNOWN_TOKENS")===null,qo=ks=>{localStorage.setItem("HIDE_UNKNOWN_TOKENS",ks?"true":"false")},[Js,Vo]=reactExports.useState(void 0),[zo,$n]=reactExports.useState(!1);reactExports.useEffect(()=>{if(lo===null)return;const ks=Vr[lo].coingeckoId??"";ks.length?($n(!0),getCoingeckoTokenPrice(ks).then(Ds=>Vo(Ds)).catch(()=>Vo(getMockedTokenPrice(Vr[lo].symbol,Wt))).finally(()=>$n(!1))):Vo(void 0)},[lo]);const[Tn,ko]=reactExports.useState(void 0),[es,fs]=reactExports.useState(!1);reactExports.useEffect(()=>{if(wo===null)return;const ks=Vr[wo].coingeckoId??"";ks.length?(fs(!0),getCoingeckoTokenPrice(ks).then(Ds=>ko(Ds)).catch(()=>ko(getMockedTokenPrice(Vr[wo].symbol,Wt))).finally(()=>fs(!1))):ko(void 0)},[wo]);const Es=localStorage.getItem("INVARIANT_NEW_POSITION_SLIPPAGE")??"1",Us=ks=>{localStorage.setItem("INVARIANT_NEW_POSITION_SLIPPAGE",ks)},ms=(ks,Ds,Fs,d0)=>{if(lo===null||wo===null||isNaN(Ds)||isNaN(Fs))return BigInt(0);const v0=d0===(mo?Vr[lo].assetAddress:Vr[wo].assetAddress),b0=Math.min(Ds,Fs),R0=Math.max(Ds,Fs);try{if(v0){const{amount:n0,l:fo}=getLiquidityByX$1(ks,b0,R0,dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),!0);return io.current&&(co.current=fo),n0}const{amount:D0,l:zs}=getLiquidityByY$1(ks,b0,R0,dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),!0);return io.current&&(co.current=zs),D0}catch{const D0=(v0?getLiquidityByY$1:getLiquidityByX$1)(BigInt(ks),b0,R0,dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),!0);io.current&&(co.current=D0.l)}return BigInt(0)},bs=()=>{lo!==null&&wo!==null&&(Cr(actions$3.getBalances([Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString()])),Cr(actions$1.getPoolData(newPoolKey$1(Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString(),ALL_FEE_TIERS_DATA[Tt]))),bo!==""&&uo!==null&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:nt[uo].pool_key.token_x===Vr[Mt===!0?wo:lo].assetAddress,fetchTicksAndTickmap:!0})))};return jsxRuntimeExports.jsx(NewPosition,{initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr,copyPoolAddressHandler:vs,tokens:Vr,data:ba,midPrice:Po,setMidPrice:Wo,onChangePositionTokens:(ks,Ds,Fs)=>{if(ks!==null&&Ds!==null&&ks!==Ds&&!(lo===ks&&wo===Ds&&Co===ALL_FEE_TIERS_DATA[Fs].fee)){const d0=nt.findIndex(v0=>v0.pool_key.fee_tier.fee===Co&&(v0.pool_key.token_x===Vr[ks].assetAddress&&v0.pool_key.token_x===Vr[Ds].assetAddress||v0.pool_key.token_y===Vr[Ds].assetAddress&&v0.pool_key.token_y===Vr[ks].assetAddress));d0!==uo&&!(lo===Ds&&wo===ks&&Co===ALL_FEE_TIERS_DATA[Fs].fee)?io.current&&(go(d0!==-1?d0:null),ho(null)):lo===Ds&&wo===ks&&Co===ALL_FEE_TIERS_DATA[Fs].fee&&io.current&&ho(Mt===null?!0:!Mt),bo.length>0&&d0!==uo&&lo!==null?Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:st[bo].token_x===Vr[lo].assetAddress.toString()})):lo===Ds&&wo===ks&&Co===ALL_FEE_TIERS_DATA[Fs].fee||Cr(actions$1.getPoolData(newPoolKey$1(Vr[ks].assetAddress.toString(),Vr[Ds].assetAddress.toString(),ALL_FEE_TIERS_DATA[Fs])))}so(ks),xt(Ds),vo(Fs)},isCurrentPoolExisting:bo!=="",calcAmount:ms,feeTiers:ALL_FEE_TIERS_DATA.map(ks=>({feeValue:+printBigint(BigInt(ks.fee),10)})),ticksLoading:no,loadingTicksAndTickMaps:kt,isXtoY:mo,xDecimal:Bo,yDecimal:So,tickSpacing:xo,isWaitingForNewPool:Yn,poolIndex:uo,currentPairReversed:Mt,bestTiers:bestTiers[Wt],initialIsDiscreteValue:_a,onDiscreteChange:$s,currentPriceSqrt:dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),canCreateNewPool:St,canCreateNewPosition:Ot,handleAddToken:()=>console.log("Add token mock function"),commonTokens:commonTokensForNetworks[Wt],initialOpeningPositionMethod:"range",onPositionOpeningMethodChange:ss,initialHideUnknownTokensValue:Ts,onHideUnknownTokensChange:qo,tokenAPriceData:Js,tokenBPriceData:Tn,priceALoading:zo,priceBLoading:es,hasTicksError:Nt,reloadHandler:()=>{bo!==""&&lo!==null&&wo!==null&&uo!==null&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:nt[uo].pool_key.token_x===Vr[Mt===!0?wo:lo].assetAddress}))},currentFeeIndex:Tt,onSlippageChange:Us,initialSlippage:Es,progress:Ro,addLiquidityHandler:(ks,Ds,Fs,d0,v0)=>{if(lo===null||wo===null)return;Ro==="none"&&pt("progress");const b0=ksks?Ds:ks;console.log({beforeHandle:bo}),Cr(actions$2.initPosition({poolKeyData:newPoolKey$1(Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString(),ALL_FEE_TIERS_DATA[Tt]),lowerTick:b0,upperTick:R0,liquidityDelta:co.current,spotSqrtPrice:dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),slippageTolerance:v0,tokenXAmount:BigInt(Fs),tokenYAmount:BigInt(d0),initPool:bo===""}))},showNoConnected:tt!==Status.Initialized,noConnectedBlockerProps:{onConnect:openWalletSelectorModal,descCustomText:"Cannot add any liquidity."},poolKey:bo,onRefresh:bs})},NewPositionPage=()=>{const{classes:_e}=useStyles$C(),{item1:cr,item2:gr,item3:Cr}=useParams();let Vr="",tt="",nt="";return Cr?(Vr=cr||"",tt=gr||"",nt=Cr):gr?(Vr=cr||"",nt=gr):cr&&(nt=cr),jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx(Grid,{item:!0,children:jsxRuntimeExports.jsx(NewPositionWrapper,{initialTokenFrom:Vr,initialTokenTo:tt,initialFee:nt})})})},store$1=_e=>_e[swapSliceName],{swap,simulateResult}=keySelectors(store$1,["swap","simulateResult"]),MarketEvents=()=>{const _e=useDispatch(),cr=useSelector(status),{tokenFrom:gr,tokenTo:Cr}=useSelector(swap),Vr=useSelector(poolsArraySortedByFees);return reactExports.useEffect(()=>{},[_e,cr]),reactExports.useEffect(()=>{gr&&Cr&&_e(actions$1.getTicksAndTickMaps({tokenFrom:gr,tokenTo:Cr,allPools:Vr}))},[gr,Cr]),null},EventHandler=()=>jsxRuntimeExports.jsx(MarketEvents,{}),useStyles$m=makeStyles()(()=>({button:{backgroundColor:"transparent",color:"#979995",height:32,...typography.body1,textTransform:"capitalize",boxShadow:"none",borderRadius:99,fontWeight:500,fontSize:16,"&:hover":{backgroundColor:"#232521",color:"#979995",fontWeight:500},textAlign:"center",width:"100%",[theme.breakpoints.down("sm")]:{fontSize:14}},active:{background:"#fff",color:"#292F23",...typography.body1,fontWeight:500,fontSize:16,"&:hover":{background:"#fff",color:"#292F23"}},disabled:{opacity:1}})),NavbarButton=({name:_e,active:cr,onClick:gr,className:Cr,disabled:Vr=!1,startIcon:tt})=>{const{classes:nt}=useStyles$m();return jsxRuntimeExports.jsx(Button,{className:classNames(Cr,nt.button,cr?nt.active:void 0),variant:"contained",classes:{disabled:nt.disabled},disabled:Vr,type:gr?"button":"submit",startIcon:tt,onClick:gr,children:_e})},useStyles$l=makeStyles()(_e=>({root:{margin:"auto",maxWidth:1312,paddingInline:94,height:70,[_e.breakpoints.down("md")]:{paddingInline:36},[_e.breakpoints.down("sm")]:{paddingInline:10},[_e.breakpoints.down("xs")]:{paddingInline:16}},logo:{minWidth:150,height:40},logoShort:{minWidth:40,height:30,marginRight:8},routers:{padding:4,borderRadius:"99px",transition:"left 300ms",width:"fit-content",backgroundColor:"#232521",[_e.breakpoints.down("sm")]:{width:"100%"}},rightMenu:{backgroundColor:"#232521",padding:4,borderRadius:"99px",transition:"all ease-in 300ms","&:hover":{}},connectedWalletIcon:{minWidth:21,height:21,marginRight:0,color:colors$2.oraidex.green,"& >circle":{boxShadow:"0px 0px 10px rgba(157, 212, 109, 0.5)"}},buttons:{justifyContent:"flex-end",flex:"1 1 0%",[_e.breakpoints.up("lg")]:{minWidth:350},[_e.breakpoints.only("md")]:{minWidth:350},[_e.breakpoints.down("lg")]:{marginLeft:0},[_e.breakpoints.down("lg")]:{justifyContent:"center"}},buttonsLgConnected:{[_e.breakpoints.up("lg")]:{minWidth:433}},link:{textDecoration:"none",minWidth:"fit-content",[_e.breakpoints.down("sm")]:{width:"100%"}},menu:{width:40,height:25,transition:"filter 300ms"},menuButton:{borderRadius:10,paddingInline:6,paddingBlock:1,height:45,transition:"background 300ms",marginLeft:8,"&:hover":{background:"transparent"},"&:hover $menu":{filter:"brightness(2)"}},leftSide:{flex:"1 1 0%"}})),Header=({landing:_e})=>{const{classes:cr}=useStyles$l(),gr=[{link:"swap",name:"Swap"},{link:"pools",name:"Pools"},{link:"positions",name:"Your Positions"}],Cr={positions:[/^newPosition\/*/,/^position\/*/]},[Vr,tt]=reactExports.useState("swap");return reactExports.useEffect(()=>{tt(_e)},[_e]),jsxRuntimeExports.jsx(Grid,{container:!0,children:jsxRuntimeExports.jsx(Grid,{container:!0,className:cr.root,direction:"row",alignItems:"center",justifyContent:"space-between",wrap:"wrap",gap:1,children:jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,className:cr.routers,wrap:"nowrap",children:gr.map(nt=>jsxRuntimeExports.jsx(Link,{to:`/${nt.link}`,className:cr.link,children:jsxRuntimeExports.jsx(NavbarButton,{name:nt.name,onClick:()=>{tt(nt.link)},active:nt.link===Vr||!!Cr[nt.link]&&Cr[nt.link].some(st=>st.test(Vr))})},`path-${nt.link}`))})})})},HeaderWrapper=()=>{const _e=useDispatch(),cr=useLocation(),{walletAddress:gr,signingClient:Cr,connectWallet:Vr}=useSigningClient();return reactExports.useEffect(()=>{(async()=>{if(window.walletType&&(gr==""&&Vr(),Cr&&gr)){SingletonOraiswapV3.load(Cr,gr),_e(actions$3.setStatus(Status.Init)),_e(actions$3.setAddress(gr)),_e(actions$3.setIsBalanceLoading(!0));const tt=await SingletonOraiswapV3.queryBalance(gr);_e(actions$3.setBalance(BigInt(tt))),_e(actions$3.setStatus(Status.Initialized));const nt=Object.values(FaucetTokenList),st=await getTokenBalances(nt,gr);_e(actions$3.addTokenBalances(st)),_e(actions$3.setIsBalanceLoading(!1))}})()},[gr]),reactExports.useEffect(()=>(window.addEventListener("keplr_keystorechange",Vr),()=>{window.removeEventListener("keplr_keystorechange",Vr)}),[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Header,{landing:cr.pathname.substring(1)})})},RootPage=()=>{const _e=useDispatch(),cr=useSelector(status),gr=useSelector(status$1),Cr=useSelector(address),Vr=useNavigate(),tt=useLocation();return reactExports.useEffect(()=>{tt.pathname==="/"&&Vr("/swap"),_e(actions$5.initOraichainConnection())},[_e]),reactExports.useEffect(()=>{cr===Status$1.Initialized&&gr===Status.Initialized&&Cr&&_e(actions$2.getPositionsList())},[cr,gr,Cr]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[cr===Status$1.Initialized&&jsxRuntimeExports.jsx(EventHandler,{}),jsxRuntimeExports.jsxs("div",{id:toBlur,children:[jsxRuntimeExports.jsx(HeaderWrapper,{}),jsxRuntimeExports.jsx(Outlet,{})]})]})},empty="/v3/assets/empty-DaHy228n.svg",useStyles$k=makeStyles()(()=>({wrapper:{width:300},image:{width:160,height:180},title:{...typography.heading2,marginBlock:24,color:colors$2.oraidex.textGrey,opacity:.7},desc:{color:colors$2.oraidex.textGrey,opacity:.7,...typography.heading4,fontWeight:400,textAlign:"center"}})),EmptyPlaceholder=({desc:_e,className:cr,style:gr})=>{const{classes:Cr}=useStyles$k();return jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",alignItems:"center",className:classNames(Cr.wrapper,cr),style:gr,children:[jsxRuntimeExports.jsx("img",{src:empty,className:Cr.image}),jsxRuntimeExports.jsx(Typography,{className:Cr.title,children:"It's empty here..."}),jsxRuntimeExports.jsx(Typography,{className:Cr.desc,children:_e})]})},useStyles$j=makeStyles()(_e=>({root:{background:colors$2.oraidex.component,width:480,borderRadius:24,padding:"20px 24px"},popover:{marginTop:"calc(50vh - 143px)",marginLeft:"calc(50vw - 241px)",[_e.breakpoints.down("xs")]:{display:"flex",marginLeft:"auto",justifyContent:"center"}},paper:{background:"transparent",boxShadow:"none"},upperRow:{height:20,marginBottom:16},title:{...typography.heading4,color:colors$2.oraidex.yellow},desc:{...typography.body2,color:colors$2.oraidex.text,marginBottom:16},close:{minWidth:0,maxHeight:20,maxWidth:16,fontSize:20,background:"none","&:hover":{background:"none !important"}},input:{backgroundColor:colors$2.oraidex.newDark,width:"100%",height:60,color:colors$2.white.main,borderRadius:20,padding:"7px 10px 6px",...typography.heading4,fontWeight:400,marginRight:16,"&::placeholder":{color:colors$2.oraidex.light,...typography.heading4,fontWeight:400},"&:focus":{outline:"none"}},closeButton:{height:44,background:colors$2.oraidex.greenLinearGradientOpacity,...typography.body1,color:colors$2.oraidex.black,textTransform:"none",borderRadius:18,marginBottom:10,"&:hover":{background:colors$2.oraidex.greenLinearGradient}},claimButton:{height:44,background:colors$2.oraidex.greenLinearGradientOpacity,...typography.body1,color:colors$2.oraidex.black,textTransform:"none",borderRadius:18,"&:hover":{background:colors$2.oraidex.greenLinearGradient}},cancelButton:{height:44,background:colors$2.oraidex.light,...typography.body1,color:colors$2.oraidex.black,textTransform:"none",borderRadius:18,marginBottom:10,"&:hover":{background:colors$2.oraidex.lightHover}}})),ClosePositionWarning=({open:_e,onCancel:cr,onClose:gr,onClaim:Cr})=>{const{classes:Vr}=useStyles$j();return jsxRuntimeExports.jsx(Popover,{classes:{paper:Vr.paper},className:Vr.popover,open:_e,anchorReference:"none",onClose:cr,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:jsxRuntimeExports.jsxs(Grid,{container:!0,className:Vr.root,direction:"column",justifyContent:"space-between",children:[jsxRuntimeExports.jsxs(Grid,{className:Vr.upperRow,container:!0,direction:"row",justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Typography,{className:Vr.title,children:"Warning!"}),jsxRuntimeExports.jsx(Button,{className:Vr.close,onClick:cr,children:"\u2715"})]}),jsxRuntimeExports.jsx(Typography,{className:Vr.desc,children:"This position is staked on our farms. If you close it before claiming rewards, you will be unable to do it after."}),jsxRuntimeExports.jsx(Button,{className:Vr.cancelButton,onClick:cr,children:"Cancel"}),jsxRuntimeExports.jsx(Button,{className:Vr.closeButton,onClick:gr,children:"Close position"}),jsxRuntimeExports.jsx(Button,{className:Vr.claimButton,onClick:Cr,children:"Claim farms rewards and close position"})]})})},SwapArrows="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.457143'%20y='31.5429'%20width='31.0857'%20height='31.0857'%20rx='15.5429'%20transform='rotate(-90%200.457143%2031.5429)'%20fill='%23494949'%20/%3e%3crect%20x='0.457143'%20y='31.5429'%20width='31.0857'%20height='31.0857'%20rx='15.5429'%20transform='rotate(-90%200.457143%2031.5429)'%20stroke='%23595B57'%20stroke-width='0.914286'%20/%3e%3cpath%20d='M20.5732%2023.3161L20.5732%208.6875M20.5732%208.6875L23.3161%2011.4304M20.5732%208.6875L17.8304%2011.4304M11.4304%208.6875L11.4304%2023.3161M11.4304%2023.3161L14.1732%2020.5732M11.4304%2023.3161L8.6875%2020.5732'%20stroke='%23F7F7F7'%20stroke-width='1.37143'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",loader="/v3/assets/loading2-DtOXnG-e.gif",useStyles$i=makeStyles()(_e=>({root:{width:"100%",flexGrow:1,display:"flex",flexDirection:"column"},iconsGrid:{display:"flex",alignItems:"center"},icon:{width:35,borderRadius:"100%",[_e.breakpoints.down("xs")]:{width:22}},icon2:{width:35,borderRadius:"100%",marginLeft:"-5px",[_e.breakpoints.down("xs")]:{width:22}},arrowIcon:{width:22,marginRight:8,marginLeft:8,[_e.breakpoints.down("xs")]:{width:15,marginRight:2,marginLeft:2}},text:{...typography.body1,color:colors$2.oraidex.text,background:"#494949",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:8,padding:"4px 8px",width:"100%"},rangeGrid:{display:"flex",flexDirection:"row",paddingRight:10},header:{display:"flex",flexDirection:"row",justifyContent:"space-between",[_e.breakpoints.down("xs")]:{flexDirection:"column"}},headerButtons:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:16,button:{flex:1},[_e.breakpoints.down("sm")]:{display:"none"}},btnMobile:{zIndex:11,display:"none",[_e.breakpoints.down("sm")]:{display:"flex",flexDirection:"column",gap:12},"&.closeButton":{marginRight:"0 !important"}},buttonTextMb:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,color:colors$2.oraidex.neutralTextLight,height:28,textDecoration:"underline",cursor:"pointer","& svg":{height:20}},feeText:{...typography.body4,marginLeft:12,[_e.breakpoints.down("xs")]:{}},closedText:{width:100,paddingRight:0},namesGrid:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",paddingLeft:8,"& #pause":{padding:" 0px 3px"},[_e.breakpoints.down("xs")]:{paddingLeft:4}},name:{...typography.heading5,color:colors$2.oraidex.text,lineHeight:"28px",[_e.breakpoints.down("xs")]:{...typography.heading4}},bottomGrid:{marginTop:24,borderRadius:24,flexGrow:1,display:"flex",flexDirection:"column",justifyContent:"space-between"},iconSmall:{width:24,height:24,marginRight:8,borderRadius:"100%"},boxInfo:{borderRadius:16,position:"relative",marginBottom:24},title:{...typography.heading4,color:colors$2.oraidex.text},titleValue:{...typography.heading3,color:colors$2.oraidex.text,fontFamily:"IBM Plex Sans"},violetButton:{background:colors$2.oraidex.greenLinearGradientOpacity,borderRadius:99,padding:"8px 16px",textTransform:"none",color:colors$2.oraidex.dark,...typography.body1,"&:hover":{background:colors$2.oraidex.greenLinearGradient,boxShadow:"0px 0px 16px rgba(46, 224, 154, 0.35)"},"&:disabled":{background:colors$2.oraidex.light,color:colors$2.oraidex.dark},[_e.breakpoints.down("xs")]:{...typography.body1,maxHeight:28,minWidth:105}},tokenGrid:{position:"relative",display:"flex",flexDirection:"row",justifyContent:"space-between",paddingTop:14,"&:not(:last-child)":{paddingTop:24}},tokenArea:{backgroundColor:colors$2.oraidex.newDark,borderRadius:8,flexDirection:"row",width:"100%",justifyContent:"space-between",padding:12,"&:not(:last-child)":{marginBottom:8}},tokenAreaUpperPart:{display:"flex",flexDirection:"row",justifyContent:"space-between"},tokenAreaLowerPart:{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingTop:16},token:{backgroundColor:colors$2.oraidex.light,border:"1px solid",borderColor:colors$2.oraidex.border,borderRadius:99,display:"flex",flexDirection:"row",alignItems:"center",padding:"8px 13px"},tokenName:{color:colors$2.white.main,...typography.heading4,fontWeight:400},tokenValue:{color:colors$2.oraidex.text,display:"flex",alignItems:"center",justifyContent:"center",...typography.heading5,fontWeight:600},tokenBalance:{color:colors$2.oraidex.neutralText,...typography.caption2},bal:{color:colors$2.oraidex.neutralTextLight},tokenUSDValue:{color:colors$2.oraidex.neutralText,...typography.caption2},closeButton:{color:colors$2.oraidex.text,background:colors$2.oraidex.light,border:"1px solid",borderColor:colors$2.oraidex.border,padding:"8px 16px",textTransform:"none",transition:"300ms",borderRadius:99,...typography.body1,"&:hover":{background:colors$2.oraidex.light,opacity:.7},[_e.breakpoints.down("md")]:{marginRight:10},[_e.breakpoints.down("sm")]:{marginRight:0},[_e.breakpoints.down("xs")]:{width:"50%",...typography.caption1,height:40}},button:{color:colors$2.oraidex.black,...typography.body1,textTransform:"none",background:colors$2.oraidex.greenLinearGradientOpacity,borderRadius:12,height:40,width:130,paddingRight:9,paddingLeft:9,letterSpacing:-.03,"&:hover":{background:colors$2.oraidex.greenLinearGradient,boxShadow:`0 0 16px ${colors$2.oraidex.pink}`},[_e.breakpoints.down("xs")]:{width:"50%",...typography.caption1}},buttonText:{WebkitPaddingBefore:"2px",[_e.breakpoints.down("xs")]:{WebkitPaddingBefore:0}},buttons:{width:" 100%",display:"flex",flexDirection:"column",flexWrap:"wrap"},iconText:{paddingRight:10,paddingBottom:3,width:19,height:19},arrowsIcon:{width:32,height:32,position:"absolute",top:"calc(50% - 8px)",left:"calc(50% - 16px)",cursor:"pointer","&:hover":{filter:"brightness(2)"}},cover:{width:"100%",height:"calc(100% - 12px)",background:`${colors$2.oraidex.black}dd`,position:"absolute",borderRadius:10,zIndex:1},loader:{height:50,width:50,margin:"auto"}})),BoxInfo=({title:_e,tokenB:cr,tokenA:gr,showBalance:Cr=!1,swapHandler:Vr,showLoader:tt=!1})=>{const{classes:nt}=useStyles$i(),st=ht=>[{value:10,decimals:ht},{value:1e4,decimals:6},{value:1e5,decimals:4},{value:1e6,decimals:3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],dt=[{value:1e3,decimals:2},{value:1e4,decimals:1},{value:1e6,decimals:2,divider:1e3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],kt={B:1e9,M:1e6},qt=Math.abs(Number(gr.value))<10**Number(-gr.decimal)?0:Number(gr.value),ro=Math.abs(Number(cr.value))<10**Number(-cr.decimal)?0:Number(cr.value);return jsxRuntimeExports.jsxs(Grid,{className:nt.boxInfo,children:[jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"space-between",children:jsxRuntimeExports.jsxs(Typography,{className:nt.title,children:[" ",_e]})}),jsxRuntimeExports.jsxs(Grid,{className:nt.tokenGrid,container:!0,direction:"column",children:[tt?jsxRuntimeExports.jsx(Grid,{container:!0,className:nt.cover,children:jsxRuntimeExports.jsx("img",{src:loader,className:nt.loader})}):null,jsxRuntimeExports.jsxs(Grid,{className:nt.tokenArea,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaUpperPart,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.token,children:[jsxRuntimeExports.jsx("img",{className:nt.iconSmall,src:gr.icon,alt:gr.name}),jsxRuntimeExports.jsx(Typography,{className:nt.tokenName,children:gr.name})]}),jsxRuntimeExports.jsxs(Typography,{className:nt.tokenValue,children:[formatNumbers(st(Number(gr.decimal)))(`${qt}`),showPrefix(qt,kt)]})]}),Cr?jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaLowerPart,children:[jsxRuntimeExports.jsxs(Typography,{className:nt.tokenBalance,children:["Balance:"," ",jsxRuntimeExports.jsxs("span",{className:nt.bal,children:[gr.balance," ",gr.name]})]}),typeof gr.usdValue<"u"&&gr.price?jsxRuntimeExports.jsxs(Typography,{className:nt.tokenUSDValue,children:["\u2248$",formatNumbers(dt)((gr.value*gr.price).toString()),showPrefix(gr.value*gr.price)]}):null]}):null]}),typeof Vr<"u"?jsxRuntimeExports.jsx("img",{src:SwapArrows,className:nt.arrowsIcon,onClick:Vr}):null,jsxRuntimeExports.jsxs(Grid,{className:nt.tokenArea,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaUpperPart,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.token,children:[jsxRuntimeExports.jsx("img",{className:nt.iconSmall,src:cr.icon,alt:cr.name}),jsxRuntimeExports.jsx(Typography,{className:nt.tokenName,children:cr.name})]}),jsxRuntimeExports.jsxs(Typography,{className:nt.tokenValue,children:[formatNumbers(st(Number(cr.decimal)))(`${ro}`),showPrefix(ro,kt)]})]}),Cr?jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaLowerPart,children:[jsxRuntimeExports.jsxs(Typography,{className:nt.tokenBalance,children:["Balance:"," ",jsxRuntimeExports.jsxs("span",{className:nt.bal,children:[cr.balance," ",cr.name]})]}),typeof cr.usdValue<"u"&&cr.price?jsxRuntimeExports.jsxs(Typography,{className:nt.tokenUSDValue,children:["\u2248$",formatNumbers(dt)((cr.value*cr.price).toString()),showPrefix(cr.value*cr.price)]}):null]}):null]})]})]})},useLabelStyles=makeStyles()(()=>({marketId:{fontFamily:"IBM Plex Sans",fontSize:12,fontWeight:400,lineHeight:"20px",letterSpacing:"-0.03px",textAlign:"left",color:`${colors$2.oraidex.neutralText} !important`,paddingRight:7,paddingTop:8},clipboardIcon:{width:15,height:13,cursor:"pointer"}}));var FileCopyOutlined={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(FileCopyOutlined,"__esModule",{value:!0});var default_1=FileCopyOutlined.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports;default_1=FileCopyOutlined.default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11zM8 21V7h6v5h5v9z"}),"FileCopyOutlined");const MarketIdLabel=({displayLength:_e,marketId:cr,copyPoolAddressHandler:gr,style:Cr})=>{const{classes:Vr}=useLabelStyles(),tt=()=>{navigator.clipboard.writeText(cr).then(()=>{gr("Market ID copied to Clipboard","success")}).catch(()=>{gr("Failed to copy Market ID to Clipboard","error")})};return jsxRuntimeExports.jsxs(Typography,{className:Vr.marketId,style:Cr,children:["Market ID: ",cr.slice(0,_e),"...",cr.slice(cr.length-_e,cr.length)," ",jsxRuntimeExports.jsx(default_1,{className:Vr.clipboardIcon,onClick:tt})]})},SinglePositionInfo=({fee:_e,onClickClaimFee:cr,closePosition:gr,tokenX:Cr,tokenY:Vr,tokenXPriceData:tt,tokenYPriceData:nt,xToY:st,swapHandler:dt,showFeesLoader:kt=!1,userHasStakes:qt=!1,poolAddress:ro,copyPoolAddressHandler:ht,navigateAdd:po})=>{const[no,Nt]=reactExports.useState(!1),{classes:eo}=useStyles$i();useNavigate();const Wt=st?{...Cr,value:Cr.claimValue}:{...Vr,value:Vr.claimValue},St=st?{...Vr,value:Vr.claimValue}:{...Cr,value:Cr.claimValue},Ot=Math.abs(Number(Wt.value))<10**Number(-Wt.decimal)&&Math.abs(Number(St.value))<10**Number(-St.decimal);return jsxRuntimeExports.jsxs(Grid,{className:eo.root,children:[jsxRuntimeExports.jsx(ClosePositionWarning,{open:no,onCancel:()=>{Nt(!1),unblurContent()},onClose:()=>{gr(),Nt(!1),unblurContent()},onClaim:()=>{gr(!0),Nt(!1),unblurContent()}}),jsxRuntimeExports.jsx(Grid,{className:eo.header,children:jsxRuntimeExports.jsxs(Grid,{className:eo.iconsGrid,children:[jsxRuntimeExports.jsx("img",{className:eo.icon,src:st?Cr.icon:Vr.icon,alt:st?Cr.name:Vr.name}),jsxRuntimeExports.jsx("img",{className:eo.icon2,src:st?Vr.icon:Cr.icon,alt:st?Vr.name:Cr.name}),jsxRuntimeExports.jsxs(Grid,{className:eo.namesGrid,children:[jsxRuntimeExports.jsx(Typography,{className:eo.name,children:st?Cr.name:Vr.name}),jsxRuntimeExports.jsx(Typography,{id:"pause",className:eo.name,children:"/"}),jsxRuntimeExports.jsx(Typography,{className:eo.name,children:st?Vr.name:Cr.name})]}),jsxRuntimeExports.jsx(Grid,{className:eo.rangeGrid,children:jsxRuntimeExports.jsxs(Typography,{className:classNames(eo.text,eo.feeText),children:["Fee: ",_e.toString(),"%"]})})]})}),jsxRuntimeExports.jsx(MarketIdLabel,{marketId:ro.toString(),displayLength:9,copyPoolAddressHandler:ht}),jsxRuntimeExports.jsxs(Grid,{className:eo.bottomGrid,children:[jsxRuntimeExports.jsx(BoxInfo,{title:"Liquidity",tokenA:st?{...Cr,value:Cr.liqValue,price:tt==null?void 0:tt.price}:{...Vr,value:Vr.liqValue,price:nt==null?void 0:nt.price},tokenB:st?{...Vr,value:Vr.liqValue,price:nt==null?void 0:nt.price}:{...Cr,value:Cr.liqValue,price:tt==null?void 0:tt.price},showBalance:!0,swapHandler:dt}),jsxRuntimeExports.jsx(BoxInfo,{title:"Unclaimed fees",tokenA:st?{...Cr,value:Cr.claimValue}:{...Vr,value:Vr.claimValue},tokenB:st?{...Vr,value:Vr.claimValue}:{...Cr,value:Cr.claimValue},onClickButton:cr,showLoader:kt})]}),jsxRuntimeExports.jsxs(Grid,{className:eo.headerButtons,children:[jsxRuntimeExports.jsx(Button,{className:eo.closeButton,variant:"contained",onClick:()=>{qt?(Nt(!0),blurContent()):gr()},children:"Close Position"}),jsxRuntimeExports.jsx(Button,{className:eo.violetButton,variant:"contained",onClick:cr,disabled:Ot,children:"Claim Fee"})]}),jsxRuntimeExports.jsxs("div",{className:eo.btnMobile,children:[jsxRuntimeExports.jsx(Button,{className:eo.closeButton,variant:"contained",onClick:()=>{qt?(Nt(!0),blurContent()):gr()},children:"Close Position"}),jsxRuntimeExports.jsx(Button,{className:eo.violetButton,variant:"contained",onClick:cr,disabled:Ot,children:"Claim Fee"}),jsxRuntimeExports.jsxs("span",{className:eo.buttonTextMb,onClick:()=>po&&po(),children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M18.5 10C18.5 10.2767 18.3901 10.5422 18.1944 10.7379C17.9987 10.9335 17.7333 11.0435 17.4565 11.0435H11.5435V16.9565C11.5435 17.2333 11.4335 17.4987 11.2379 17.6944C11.0422 17.8901 10.7767 18 10.5 18C10.2233 18 9.95784 17.8901 9.76215 17.6944C9.56646 17.4987 9.45652 17.2333 9.45652 16.9565V11.0435H3.54348C3.26673 11.0435 3.00132 10.9335 2.80563 10.7379C2.60994 10.5422 2.5 10.2767 2.5 10C2.5 9.72325 2.60994 9.45784 2.80563 9.26215C3.00132 9.06646 3.26673 8.95652 3.54348 8.95652H9.45652V3.04348C9.45652 2.76673 9.56646 2.50132 9.76215 2.30563C9.95784 2.10994 10.2233 2 10.5 2C10.7767 2 11.0422 2.10994 11.2379 2.30563C11.4335 2.50132 11.5435 2.76673 11.5435 3.04348V8.95652H17.4565C17.7333 8.95652 17.9987 9.06646 18.1944 9.26215C18.3901 9.45784 18.5 9.72325 18.5 10Z",fill:"#F7F7F7"})}),jsxRuntimeExports.jsx("p",{children:"Add Liquidity"})]})]})]})},useStyles$h=makeStyles()(_e=>({infoTypeLabel:{color:colors$2.oraidex.neutralText,...typography.body4},infoSwap:{textAlign:"right"},infoTypeSwap:{display:"flex",backgroundColor:colors$2.oraidex.newDark,borderRadius:12,padding:12,lineHeight:"20px",alignItems:"center",justifyContent:"space-between"},infoType:{borderRadius:12,textAlign:"left",marginRight:6},infoAmount:{textAlign:"right",color:colors$2.oraidex.text,...typography.heading5},infoSwapToken:{textAlign:"right",color:colors$2.oraidex.lightGrey,...typography.body4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}})),LiquidationRangeInfo=({label:_e,amount:cr,tokenX:gr,tokenY:Cr})=>{const{classes:Vr}=useStyles$h();return jsxRuntimeExports.jsx(Grid,{children:jsxRuntimeExports.jsxs(Grid,{className:Vr.infoTypeSwap,children:[jsxRuntimeExports.jsx(Grid,{className:Vr.infoType,children:jsxRuntimeExports.jsx(Typography,{component:"span",className:Vr.infoTypeLabel,children:_e})}),jsxRuntimeExports.jsxs(Grid,{className:Vr.infoSwap,children:[jsxRuntimeExports.jsxs(Typography,{component:"span",className:Vr.infoAmount,children:[formatNumbers()(cr.toString()),showPrefix(cr)]}),jsxRuntimeExports.jsxs(Typography,{component:"p",className:Vr.infoSwapToken,children:[Cr," / ",gr]})]})]})})},useStyles$g=makeStyles()(_e=>({root:{width:"100%",padding:24,paddingTop:18,borderRadius:24},headerContainer:{...typography.heading4,color:"#FFFFFF"},header:{paddingBottom:10},plotWrapper:{paddingBottom:29},minMaxInfo:{marginTop:12,display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:"15px",paddingBottom:16,[_e.breakpoints.down("xs")]:{gridTemplateColumns:"1fr",gridGap:"8px"}},currentPriceContainer:{backgroundColor:colors$2.oraidex.black,borderRadius:12,padding:12,display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},currentPriceLabel:{flex:1,color:colors$2.oraidex.neutralText,textAlign:"left","& p":{...typography.body4}},currentPriceAmonut:{textAlign:"right",borderRadius:"11px!important","& span":{color:colors$2.oraidex.text,...typography.heading5},"& p":{color:colors$2.oraidex.neutralText,...typography.body4,fontSize:12}},plot:{width:"100%",height:255,borderRadius:10,[_e.breakpoints.down("xs")]:{height:253}},infoRow:{marginBottom:16},activeLiquidity:{color:colors$2.oraidex.neutralText,...typography.body4,fontSize:12,display:"flex",flexDirection:"row",alignItems:"center",cursor:"default"},activeLiquidityIcon:{marginLeft:5,height:14,width:14,border:"1px solid",borderColor:colors$2.oraidex.neutralText,color:colors$2.oraidex.neutralText,borderRadius:"50%",fontSize:8,lineHeight:"10px",fontWeight:400,textAlign:"center",boxSizing:"border-box",paddingTop:3,cursor:"default"},liquidityTooltip:{background:colors$2.oraidex.component,boxShadow:"0px 4px 18px rgba(0, 0, 0, 0.35)",borderRadius:20,padding:16,maxWidth:376,boxSizing:"border-box",[_e.breakpoints.down("xs")]:{maxWidth:360}},liquidityTitle:{color:colors$2.oraidex.text,...typography.heading4,marginBottom:12},liquidityDesc:{color:colors$2.oraidex.text,...typography.caption2},liquidityNote:{color:colors$2.oraidex.textGrey,...typography.caption2},liquidityImg:{width:80,minWidth:80,height:60,marginLeft:16},currentPrice:{color:colors$2.oraidex.yellow,...typography.caption2,textAlign:"right"}})),SinglePositionPlot=({data:_e,leftRange:cr,rightRange:gr,midPrice:Cr,currentPrice:Vr,tokenY:tt,tokenX:nt,ticksLoading:st,tickSpacing:dt,min:kt,max:qt,xToY:ro,initialIsDiscreteValue:ht,onDiscreteChange:po,hasTicksError:no,reloadHandler:Nt})=>{const{classes:eo}=useStyles$g(),[Wt,St]=reactExports.useState(0),[Ot,uo]=reactExports.useState(1),[go,bo]=reactExports.useState(ht);reactExports.useEffect(()=>{const pt=Math.abs(cr.x-calcPrice(Math.max(spacingMultiplicityGte(Number(getMinTick$1(Number(dt))),Number(dt)),Number(cr.index)-Number(dt)*15),ro,nt.decimal,tt.decimal));St(cr.x-pt),uo(gr.x+pt)},[st,cr,gr]);const oo=()=>{const pt=Ot-Wt,lo=Wt-pt/4,so=Ot+pt/4;St(lo),uo(so)},Ro=()=>{const pt=Ot-Wt,lo=Wt+pt/6,so=Ot-pt/6;calcTicksAmountInRange(Math.max(lo,0),so,Number(dt),ro,Number(nt.decimal),Number(tt.decimal))>=4&&(St(lo),uo(so))};return jsxRuntimeExports.jsxs(Grid,{item:!0,className:eo.root,children:[jsxRuntimeExports.jsxs(Grid,{className:eo.headerContainer,container:!0,alignItems:"center",justifyContent:"space-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{className:eo.header,children:"Price range"}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{className:eo.liquidityTitle,children:"Active liquidity"}),jsxRuntimeExports.jsx(Typography,{className:eo.liquidityDesc,style:{marginBottom:12},children:"While selecting the price range, note where active liquidity is located. Your liquidity can be inactive and, as a consequence, not generate profits."}),jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"row",wrap:"nowrap",alignItems:"center",style:{marginBottom:12},children:[jsxRuntimeExports.jsx(Typography,{className:eo.liquidityDesc,children:"The active liquidity range is represented by white, dashed lines in the liquidity chart. Active liquidity is determined by the maximum price range resulting from the statistical volume of swaps for the last 7 days."}),jsxRuntimeExports.jsx("img",{className:eo.liquidityImg,src:activeLiquidity})]}),jsxRuntimeExports.jsx(Typography,{className:eo.liquidityNote,children:"Note: active liquidity borders are always aligned to the nearest initialized ticks."})]}),placement:"bottom",classes:{tooltip:eo.liquidityTooltip},children:jsxRuntimeExports.jsxs(Typography,{className:eo.activeLiquidity,children:["Active liquidity ",jsxRuntimeExports.jsx("span",{className:eo.activeLiquidityIcon,children:"i"})]})})]}),jsxRuntimeExports.jsx(PlotTypeSwitch,{onSwitch:pt=>{bo(pt),po(pt)},initialValue:go?1:0})]}),jsxRuntimeExports.jsx(Grid,{className:eo.plotWrapper,children:jsxRuntimeExports.jsx(PriceRangePlot,{data:_e,plotMin:Wt,plotMax:Ot,zoomMinus:oo,zoomPlus:Ro,disabled:!0,leftRange:cr,rightRange:gr,midPrice:Cr,className:eo.plot,loading:st,isXtoY:ro,tickSpacing:dt,xDecimal:nt.decimal,yDecimal:tt.decimal,isDiscrete:go,coverOnLoading:!0,hasError:no,reloadHandler:Nt})}),jsxRuntimeExports.jsxs(Grid,{className:eo.currentPriceContainer,children:[jsxRuntimeExports.jsx("div",{className:eo.currentPriceLabel,children:jsxRuntimeExports.jsx(Typography,{component:"p",children:"Current Price"})}),jsxRuntimeExports.jsx("div",{className:eo.currentPriceAmonut,children:jsxRuntimeExports.jsxs(Typography,{component:"p",children:[jsxRuntimeExports.jsx(Typography,{component:"span",children:Vr.toFixed(6)}),jsxRuntimeExports.jsx("br",{}),ro?tt.name:nt.name," / ",ro?nt.name:tt.name]})})]}),jsxRuntimeExports.jsxs(Grid,{className:eo.minMaxInfo,children:[jsxRuntimeExports.jsx(LiquidationRangeInfo,{label:"Min Price",amount:kt,tokenX:ro?nt.name:tt.name,tokenY:ro?tt.name:nt.name}),jsxRuntimeExports.jsx(LiquidationRangeInfo,{label:"Max Price",amount:qt,tokenX:ro?nt.name:tt.name,tokenY:ro?tt.name:nt.name})]})]})},useStyles$f=makeStyles()(_e=>({container:{display:"flex",flexDirection:"column",padding:"24px",gap:"32px",borderRadius:"12px",border:"1px solid #232521",background:"#1B1D19",boxShadow:"0px 4px 24px 0px rgba(0, 0, 0, 0.05)"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#F7F7F7",fontSize:"18px",fontWeight:600,lineHeight:1.5,borderBottom:"1px solid #232521",[_e.breakpoints.down("sm")]:{paddingBottom:20}},wrapperContainer:{width:1004,flexDirection:"row",[_e.breakpoints.down("sm")]:{flexDirection:"column"}},positionDetails:{width:517,marginRight:24,[_e.breakpoints.down("md")]:{width:"100%"},[_e.breakpoints.down("sm")]:{marginRight:0,marginBottom:32}},right:{width:517,[_e.breakpoints.down("md")]:{width:"100%"}},back:{height:40,marginBottom:16,width:"fit-content",transition:"filter 300ms","&:hover":{filter:"brightness(2)"}},backWrap:{flex:1},backIcon:{width:22,height:24,marginRight:12,"&:hover":{opacity:.7}},backText:{color:"rgba(169, 182, 191, 1)",WebkitPaddingBefore:"2px",...typography.body2},button:{color:colors$2.oraidex.black,...typography.body1,textTransform:"none",background:colors$2.oraidex.greenLinearGradientOpacity,borderRadius:14,height:40,width:130,marginBottom:16,paddingRight:9,paddingLeft:9,letterSpacing:-.03,"&:hover":{background:colors$2.oraidex.greenLinearGradient,boxShadow:`0 0 16px ${colors$2.oraidex.pink}`}},buttonStartIcon:{marginRight:0},buttonTextWrap:{flex:1,display:"flex",justifyContent:"flex-end",[_e.breakpoints.down("sm")]:{visibility:"hidden",height:0}},buttonText:{width:"fit-content",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-end",flexWrap:"wrap",gap:"8px",transition:"all easy-in-out 0.3s",opacity:1,p:{textDecoration:"underline"},"&:hover":{opacity:.7}}})),PositionDetails=({tokenXAddress:_e,tokenYAddress:cr,poolAddress:gr,copyPoolAddressHandler:Cr,detailsData:Vr,leftRange:tt,rightRange:nt,midPrice:st,currentPrice:dt,tokenY:kt,tokenX:qt,tokenXPriceData:ro,tokenYPriceData:ht,onClickClaimFee:po,closePosition:no,ticksLoading:Nt,tickSpacing:eo,fee:Wt,min:St,max:Ot,initialIsDiscreteValue:uo,onDiscreteChange:go,showFeesLoader:bo=!1,hasTicksError:oo,reloadHandler:Ro,userHasStakes:pt=!1})=>{const{classes:lo}=useStyles$f(),so=useNavigate(),[wo,xt]=reactExports.useState(initialXtoY(_e.toString(),cr.toString())),Mt=()=>{const ho=parseFeeToPathFee(Wt),io=addressToTicker(_e.toString()),co=addressToTicker(cr.toString());so(`/newPosition/${io}/${co}/${ho}`)};return jsxRuntimeExports.jsxs("div",{className:lo.container,children:[jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx(Link,{to:"/positions",style:{textDecoration:"none"},className:lo.backWrap,children:jsxRuntimeExports.jsx("img",{className:lo.backIcon,src:backIcon})}),jsxRuntimeExports.jsx("span",{children:"Liquidity Position Detail"}),jsxRuntimeExports.jsx("div",{className:lo.buttonTextWrap,children:jsxRuntimeExports.jsxs("span",{className:lo.buttonText,onClick:()=>Mt(),children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M18.5 10C18.5 10.2767 18.3901 10.5422 18.1944 10.7379C17.9987 10.9335 17.7333 11.0435 17.4565 11.0435H11.5435V16.9565C11.5435 17.2333 11.4335 17.4987 11.2379 17.6944C11.0422 17.8901 10.7767 18 10.5 18C10.2233 18 9.95784 17.8901 9.76215 17.6944C9.56646 17.4987 9.45652 17.2333 9.45652 16.9565V11.0435H3.54348C3.26673 11.0435 3.00132 10.9335 2.80563 10.7379C2.60994 10.5422 2.5 10.2767 2.5 10C2.5 9.72325 2.60994 9.45784 2.80563 9.26215C3.00132 9.06646 3.26673 8.95652 3.54348 8.95652H9.45652V3.04348C9.45652 2.76673 9.56646 2.50132 9.76215 2.30563C9.95784 2.10994 10.2233 2 10.5 2C10.7767 2 11.0422 2.10994 11.2379 2.30563C11.4335 2.50132 11.5435 2.76673 11.5435 3.04348V8.95652H17.4565C17.7333 8.95652 17.9987 9.06646 18.1944 9.26215C18.3901 9.45784 18.5 9.72325 18.5 10Z",fill:"#F7F7F7"})}),jsxRuntimeExports.jsx("p",{children:"Add Liquidity"})]})})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:lo.wrapperContainer,wrap:"nowrap",children:[jsxRuntimeExports.jsx(Grid,{className:lo.positionDetails,container:!0,item:!0,direction:"column",children:jsxRuntimeExports.jsx(SinglePositionInfo,{fee:+printBigint(Wt,PERCENTAGE_SCALE-2),onClickClaimFee:po,closePosition:no,tokenX:qt,tokenY:kt,tokenXPriceData:ro,tokenYPriceData:ht,xToY:wo,swapHandler:()=>xt(!wo),showFeesLoader:bo,userHasStakes:pt,poolAddress:gr,copyPoolAddressHandler:Cr,navigateAdd:Mt})}),jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,direction:"column",alignItems:"flex-end",className:lo.right,wrap:"nowrap",children:jsxRuntimeExports.jsx(SinglePositionPlot,{data:Vr.length?wo?Vr:Vr.map(ho=>({...ho,x:1/ho.x})).reverse():Array(100).fill(1).map((ho,io)=>({x:io,y:io,index:io})),leftRange:wo?tt:{...nt,x:1/nt.x},rightRange:wo?nt:{...tt,x:1/tt.x},midPrice:{...st,x:st.x**(wo?1:-1)},currentPrice:dt**(wo?1:-1),tokenY:kt,tokenX:qt,ticksLoading:Nt,tickSpacing:eo,min:wo?St:1/Ot,max:wo?Ot:1/St,xToY:wo,initialIsDiscreteValue:uo,onDiscreteChange:go,hasTicksError:oo,reloadHandler:Ro})})]})]})},useStyles$e=makeStyles()(()=>({placeholderText:{...typography.heading1,textAlign:"center",color:colors$2.white.main},loading:{width:150,height:150,margin:"auto"},fullHeightContainer:{height:"100%"}})),SinglePositionWrapper=({id:_e})=>{const{classes:cr}=useStyles$e(),gr=useDispatch(),Cr=useNavigate(),Vr=useSelector(poolsArraySortedByFees),tt=useSelector(networkType);useSelector(address);const nt=useSelector(singlePositionData(_e)),st=useSelector(isLoadingPositionsList),{data:dt,loading:kt,hasError:qt}=useSelector(plotTicks),ro=useSelector(tickMaps),{lowerTick:ht,upperTick:po,loading:no}=useSelector(currentPositionTicks),Nt=useSelector(status$1),[eo,Wt]=reactExports.useState(null),[St,Ot]=reactExports.useState(!0),[uo,go]=reactExports.useState(!1),bo=nt&&poolKeyToString(nt==null?void 0:nt.pool_key)||"";reactExports.useEffect(()=>{nt&&nt.tokenX&&nt.tokenY&&gr(actions$1.getTicksAndTickMaps({tokenFrom:nt.tokenX.assetAddress,tokenTo:nt.tokenY.assetAddress,allPools:Vr}))},[eo,nt==null?void 0:nt.tokenX,nt==null?void 0:nt.tokenY]),reactExports.useEffect(()=>{nt&&nt.pool_key&&eo===null&&ro[bo]!==void 0&&(Wt(!0),gr(actions$2.getCurrentPositionTicks({poolKey:nt.pool_key,lowerTickIndex:BigInt(nt.lower_tick_index),upperTickIndex:BigInt(nt.upper_tick_index)})),gr(actions$2.getCurrentPlotTicks({poolKey:nt.pool_key,isXtoY:!0})))},[nt,nt==null?void 0:nt.pool_key,ro,eo]),reactExports.useEffect(()=>{eo===!0&&!no&&Wt(!1)},[no]);const oo=reactExports.useMemo(()=>nt!=null&&nt.poolData?{index:Number(nt.poolData.pool.current_tick_index),x:calcYPerXPriceByTickIndex(nt.poolData.pool.current_tick_index,nt.tokenX.decimals,nt.tokenY.decimals)}:{index:0n,x:0},[nt]),Ro=reactExports.useMemo(()=>nt?{index:nt.lower_tick_index,x:calcPrice(nt.lower_tick_index,!0,nt.tokenX.decimals,nt.tokenY.decimals)}:{index:0n,x:0},[nt==null?void 0:nt.pool_key]),pt=reactExports.useMemo(()=>nt?{index:nt.upper_tick_index,x:calcPrice(nt.upper_tick_index,!0,nt.tokenX.decimals,nt.tokenY.decimals)}:{index:0n,x:0},[nt==null?void 0:nt.pool_key]),lo=reactExports.useMemo(()=>nt?calcYPerXPriceByTickIndex(nt.lower_tick_index,nt.tokenX.decimals,nt.tokenY.decimals):0,[nt==null?void 0:nt.lower_tick_index]),so=reactExports.useMemo(()=>nt?calcYPerXPriceByTickIndex(nt.upper_tick_index,nt.tokenX.decimals,nt.tokenY.decimals):0,[nt==null?void 0:nt.upper_tick_index]),wo=reactExports.useMemo(()=>nt!=null&&nt.poolData?calcYPerXPriceByTickIndex(nt.poolData.pool.current_tick_index,nt.tokenX.decimals,nt.tokenY.decimals):0,[nt]),[xt,Mt]=reactExports.useMemo(()=>{if(nt!=null&&nt.poolData){const Wo={liquidity:BigInt(nt.poolData.pool.liquidity),sqrt_price:BigInt(nt.poolData.pool.sqrt_price),current_tick_index:nt.poolData.pool.current_tick_index,fee_growth_global_x:BigInt(nt.poolData.pool.fee_growth_global_x),fee_growth_global_y:BigInt(nt.poolData.pool.fee_growth_global_y),fee_protocol_token_x:BigInt(nt.poolData.pool.fee_protocol_token_x),fee_protocol_token_y:BigInt(nt.poolData.pool.fee_protocol_token_y),start_timestamp:nt.poolData.pool.start_timestamp,last_timestamp:nt.poolData.pool.last_timestamp,fee_receiver:nt.poolData.pool.fee_receiver},Yn=calculateTokenAmounts(Wo,nt),ba=Yn.x,_a=Yn.y;return[+printBigint(ba,nt.tokenX.decimals),+printBigint(_a,nt.tokenY.decimals)]}return[0,0]},[nt]),[ho,io]=reactExports.useMemo(()=>{if(eo===!1&&(nt!=null&&nt.poolData)&&typeof ht<"u"&&typeof po<"u"&&nt.poolData){const Wo={liquidity:BigInt(nt.poolData.pool.liquidity),sqrt_price:BigInt(nt.poolData.pool.sqrt_price),current_tick_index:nt.poolData.pool.current_tick_index,fee_growth_global_x:BigInt(nt.poolData.pool.fee_growth_global_x),fee_growth_global_y:BigInt(nt.poolData.pool.fee_growth_global_y),fee_protocol_token_x:BigInt(nt.poolData.pool.fee_protocol_token_x),fee_protocol_token_y:BigInt(nt.poolData.pool.fee_protocol_token_y),start_timestamp:nt.poolData.pool.start_timestamp,last_timestamp:nt.poolData.pool.last_timestamp,fee_receiver:nt.poolData.pool.fee_receiver},Yn=calculateFee(Wo,nt,ht,po),ba=Yn.x,_a=Yn.y;return Ot(!1),[+printBigint(ba,nt.tokenX.decimals),+printBigint(_a,nt.tokenY.decimals)]}return[0,0]},[nt,ht,po,eo]),co=reactExports.useMemo(()=>kt&&nt?createPlaceholderLiquidityPlot(!0,10,nt.pool_key.fee_tier.tick_spacing,nt.tokenX.decimals,nt.tokenY.decimals):dt,[dt,kt,nt,nt==null?void 0:nt.tokenX,nt==null?void 0:nt.tokenY]),mo=localStorage.getItem("IS_PLOT_DISCRETE")?localStorage.getItem("IS_PLOT_DISCRETE")==="true":!0,Bo=Wo=>{localStorage.setItem("IS_PLOT_DISCRETE",Wo?"true":"false")},[So,Tt]=reactExports.useState(void 0),[vo,Co]=reactExports.useState(void 0);reactExports.useEffect(()=>{if(!nt)return;const Wo=nt.tokenX.coingeckoId??"";Wo.length?getCoingeckoTokenPrice(Wo).then(ba=>Tt(ba)).catch(()=>Tt(getMockedTokenPrice(nt.tokenX.symbol,tt))):Tt(void 0);const Yn=nt.tokenY.coingeckoId??"";Yn.length?getCoingeckoTokenPrice(Yn).then(ba=>Co(ba)).catch(()=>Co(getMockedTokenPrice(nt.tokenY.symbol,tt))):Co(void 0)},[nt]);const xo=(Wo,Yn)=>{gr(actions$4.add({message:Wo,variant:Yn,persist:!1}))};reactExports.useEffect(()=>{const Wo=setTimeout(()=>{go(!0)},1e3);return()=>{clearTimeout(Wo)}},[Nt]),reactExports.useEffect(()=>{uo&&go(!1)},[Nt]),reactExports.useEffect(()=>{Po()},[]);const Po=()=>{Ot(!0),gr(actions$2.getSinglePosition(_e)),nt&&(gr(actions$2.getCurrentPlotTicks({poolKey:nt.pool_key,isXtoY:!0,fetchTicksAndTickmap:!0})),gr(actions$3.getBalances([nt==null?void 0:nt.pool_key.token_x,nt==null?void 0:nt.pool_key.token_y])))};return nt?jsxRuntimeExports.jsx(PositionDetails,{tokenXAddress:nt.pool_key.token_x,tokenYAddress:nt.pool_key.token_y,poolAddress:nt?poolKeyToString(nt.pool_key):"",copyPoolAddressHandler:xo,detailsData:co,midPrice:oo,leftRange:Ro,rightRange:pt,currentPrice:wo,onClickClaimFee:()=>gr(actions$2.claimFee({index:_e,addressTokenX:nt==null?void 0:nt.pool_key.token_x,addressTokenY:nt==null?void 0:nt.pool_key.token_y})),closePosition:()=>gr(actions$2.closePosition({positionIndex:_e,onSuccess:()=>{Cr("/positions")},addressTokenX:nt.pool_key.token_x,addressTokenY:nt.pool_key.token_y})),ticksLoading:kt,tickSpacing:nt.pool_key.fee_tier.tick_spacing,tokenX:{name:nt.tokenX.symbol,icon:nt.tokenX.logoURI,decimal:nt.tokenX.decimals,balance:+printBigint(BigInt(nt.tokenX.balance)??0n,nt.tokenX.decimals),liqValue:xt,claimValue:ho,usdValue:typeof(So==null?void 0:So.price)>"u"?void 0:So.price*+printBigint(BigInt(nt.tokenX.balance)??0n,nt.tokenX.decimals)},tokenXPriceData:So,tokenY:{name:nt.tokenY.symbol,icon:nt.tokenY.logoURI,decimal:nt.tokenY.decimals,balance:+printBigint(BigInt(nt.tokenY.balance)??0n,nt.tokenY.decimals),liqValue:Mt,claimValue:io,usdValue:typeof(vo==null?void 0:vo.price)>"u"?void 0:vo.price*+printBigint(BigInt(nt.tokenY.balance)??0n,nt.tokenY.decimals)},tokenYPriceData:vo,fee:BigInt(nt.pool_key.fee_tier.fee),min:lo,max:so,initialIsDiscreteValue:mo,onDiscreteChange:Bo,showFeesLoader:St,hasTicksError:qt,reloadHandler:()=>{gr(actions$2.getCurrentPlotTicks({poolKey:nt.pool_key,isXtoY:!0}))}}):st&&Nt===Status.Initialized||!nt&&Nt===Status.Uninitialized&&!uo?jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"center",alignItems:"center",className:cr.fullHeightContainer,children:jsxRuntimeExports.jsx("img",{src:loader$1,className:cr.loading})}):!nt&&Nt===Status.Initialized&&uo?jsxRuntimeExports.jsx(Navigate,{to:"/positions"}):jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"center",alignItems:"center",className:cr.fullHeightContainer,children:jsxRuntimeExports.jsx(EmptyPlaceholder,{desc:"Position does not exist in your list!"})})},useStyles$d=makeStyles()(_e=>({container:{backgroundColor:"transparent",marginTop:45,paddingInline:138,minHeight:"70vh",[_e.breakpoints.down("md")]:{paddingInline:36},[_e.breakpoints.down("sm")]:{paddingInline:10},[_e.breakpoints.down("xs")]:{paddingInline:16}}})),SinglePositionPage=()=>{const{address:_e,id:cr}=useParams(),{classes:gr}=useStyles$d();return jsxRuntimeExports.jsx(Grid,{container:!0,className:gr.container,justifyContent:"center",children:jsxRuntimeExports.jsx(Grid,{item:!0,children:jsxRuntimeExports.jsx(SinglePositionWrapper,{address:_e??"",id:cr?BigInt(cr):-1n})})})},workInProgress="/v3/assets/work-in-progress-vtvs62rR.png",useStyles$c=makeStyles()(()=>({container:{display:"flex",minHeight:"70vh",marginTop:"65px",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",paddingInline:94},workInProgress:{height:231,width:799}})),StatsPage=()=>{const{classes:_e}=useStyles$c();return jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx("img",{className:_e.workInProgress,src:workInProgress,alt:"Work in progress icon"})})},useStyles$b=makeStyles()(_e=>({headerButton:{background:colors$2.oraidex.light,color:colors$2.white.main,paddingInline:12,borderRadius:10,textTransform:"none",...typography.body1,lineHeight:"22px",height:40,"&:hover":{background:colors$2.blue.deep},"&:active":{"& #downIcon":{transform:"rotateX(180deg)"}}},label:{WebkitPaddingBefore:"2px"},headerButtonConnect:{background:colors$2.oraidex.greenLinearGradientOpacity,color:colors$2.oraidex.newDark,paddingInline:12,borderRadius:10,textTransform:"none",...typography.body1,height:40,minWidth:130,[_e.breakpoints.down("xs")]:{minWidth:100,width:130},"&:hover":{boxShadow:`0 0 15px ${colors$2.oraidex.light}`,backgroundColor:colors$2.oraidex.light}},headerButtonConnected:{background:colors$2.oraidex.light,color:colors$2.white.main,paddingInline:12,borderRadius:10,textTransform:"none",...typography.body1,height:40,"&:hover":{background:colors$2.blue.deep}},headerButtonTextEllipsis:{textTransform:"none",overflow:"hidden",textOverflow:"ellipsis",color:colors$2.oraidex.neutralText,...typography.body1,whiteSpace:"nowrap"},disabled:{opacity:1},paper:{background:"transparent",boxShadow:"none"},startIcon:{marginLeft:0,marginBottom:3},endIcon:{minWidth:20,marginTop:2},innerEndIcon:{marginLeft:0,marginBottom:3}})),useStyles$a=makeStyles()(()=>({root:{background:colors$2.oraidex.component,width:170,borderRadius:20,marginTop:8,padding:8},list:{background:"transparent",borderRadius:5,marginTop:7,padding:2},listItem:{color:colors$2.oraidex.lightGrey,borderRadius:11,padding:"6px 7px",width:"100%",cursor:"pointer",display:"flex",alignItems:"center","&:hover":{color:colors$2.white.main,background:colors$2.oraidex.light},"&:first-of-type":{marginBottom:"4px"},"&:not(:first-of-type)":{margin:"4px 0"},"&:last-of-type":{}},title:{...typography.body1,margin:10},dotIcon:{width:12,marginLeft:"auto",color:colors$2.oraidex.green,display:"none"},icon:{width:20,height:20,display:"inline",float:"left",marginRight:8},name:{textTransform:"capitalize",...typography.body2,float:"left",paddingTop:"2px"},paper:{background:"transparent",boxShadow:"none"},active:{background:colors$2.oraidex.light,color:colors$2.white.main,"& $icon":{opacity:1},"& $dotIcon":{display:"block"}}})),ExitToApp=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp"),ConnectWallet=({open:_e,anchorEl:cr,handleClose:gr,callDisconect:Cr})=>{const{classes:Vr}=useStyles$a();return jsxRuntimeExports.jsx(Popover,{classes:{paper:Vr.paper},open:_e,anchorEl:cr,onClose:gr,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:jsxRuntimeExports.jsx(Grid,{className:Vr.root,container:!0,alignContent:"space-around",direction:"column",children:jsxRuntimeExports.jsxs(Grid,{item:!0,className:Vr.listItem,onClick:Cr,children:[jsxRuntimeExports.jsx(ExitToApp,{className:Vr.icon}),jsxRuntimeExports.jsx(Typography,{className:Vr.name,children:"Disconnect"})]})})})},ChangeWalletButton=({name:_e,onConnect:cr,connected:gr,startIcon:Cr,hideArrow:Vr,onDisconnect:tt,className:nt})=>{const{classes:st}=useStyles$b(),[dt,kt]=React$3.useState(null),[qt,ro]=React$3.useState(!1),ht=Nt=>{if(!gr){cr();return}kt(Nt.currentTarget),blurContent(),ro(!0)},po=()=>{unblurContent(),ro(!1)},no=()=>{tt(),unblurContent(),ro(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{id:"connect-wallet-button",className:classNames(nt,gr?st.headerButtonConnected:st.headerButtonConnect),disabled:!0,variant:"contained",classes:{disabled:st.disabled,startIcon:st.startIcon,endIcon:st.innerEndIcon},sx:{"& .MuiButton-label":st.label},onClick:ht,startIcon:Cr,endIcon:gr&&!Vr?jsxRuntimeExports.jsx(default_1$3,{className:st.endIcon}):void 0,children:jsxRuntimeExports.jsx(Typography,{className:st.headerButtonTextEllipsis,children:_e})}),jsxRuntimeExports.jsx(ConnectWallet,{open:qt,anchorEl:dt,handleClose:po,callDisconect:no})]})},useStyles$9=makeStyles()(()=>({general:{width:26,maxWidth:26,height:14,...typography.tiny2,background:"rgba(46, 224, 154, 0.8)",borderRadius:4,marginLeft:4,marginTop:1,textTransform:"none","&:hover":{background:`${colors$2.oraidex.green} !important`},[theme.breakpoints.down("sm")]:{...typography.tiny2,width:26,maxWidth:26,height:14,marginTop:1}},activeButton:{background:`${colors$2.oraidex.green} !important`},disabled:{...typography.tiny2,display:"none",width:20,maxWidth:26,height:15,color:`${colors$2.oraidex.dark} !important`,background:`${colors$2.oraidex.light} !important`,"&:hover":{background:colors$2.oraidex.light,cursor:"default"}}})),OutlinedButton=({name:_e,onClick:cr,color:gr="primary",className:Cr,disabled:Vr=!1,startIcon:tt,labelClassName:nt})=>{const{classes:st}=useStyles$9();return jsxRuntimeExports.jsx(Button,{className:classNames(st.general,!Vr&&st.activeButton,Cr),variant:"contained",color:gr,classes:{disabled:st.disabled},disabled:Vr,type:cr?"button":"submit",startIcon:tt,onClick:cr,sx:{"& .MuiButton-label":classNames(nt)},children:_e})},useStyles$8=makeStyles()((_e,{walletDisconnected:cr})=>({amountInput:{background:colors$2.oraidex.newDark,color:colors$2.oraidex.light,borderRadius:20,...typography.heading2,width:"100%",textAlign:"right",transition:"all .4s","& ::placeholder":{textAlign:"right"}},maxButton:{color:colors$2.oraidex.greenLinearGradient,...typography.body4,borderRadius:4,width:26,minWidth:26,height:14,marginLeft:4,fontSize:12,background:"none !important",outline:"none",boxShadow:"none","&:hover":{background:"none !important",opacity:.7},[_e.breakpoints.down("sm")]:{width:26,minWidth:26,height:14,marginTop:2}},maxButtonNotActive:{backgroundColor:colors$2.oraidex.light,"&:hover":{backgroundColor:colors$2.oraidex.light,cursor:"default"}},select:{marginRight:20},input:{textAlign:"right",color:colors$2.white.main,"& ::placeholder":{textAlign:"right"}},label:{top:-1,color:colors$2.oraidex.dark},balanceContainer:{display:"flex",alignItems:"center",cursor:"pointer",paddingBlock:6,flexShrink:1,marginRight:10},BalanceTypography:{color:colors$2.oraidex.neutralText,...typography.caption2,marginRight:3,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center"},bal:{color:colors$2.oraidex.text},walletBalanace:{color:colors$2.oraidex.neutralText},exchangeContainer:{padding:`10px 15px ${cr?"10px":"0"} 15px `,display:"flex"},noData:{color:colors$2.oraidex.warning,...typography.caption2,display:"flex",flexDirection:"row",cursor:"default",paddingBottom:10},noDataIcon:{marginRight:5,height:9.5,width:9.5,border:"1px solid #EFD063",color:colors$2.oraidex.warning,borderRadius:"50%",fontSize:8,lineHeight:"10px",fontWeight:400,textAlign:"center",alignSelf:"center",cursor:"default"},loading:{width:15,height:15},loadingBalance:{padding:"0 10px 0 20px",width:15,height:15},tooltip:{background:colors$2.oraidex.componentBcg,border:`1px solid ${colors$2.oraidex.lightGrey}`,borderRadius:12,padding:10,...typography.caption4,fontSize:13,color:colors$2.white.main},percentages:{flexShrink:0,width:"fit-content",justifyContent:"end",height:17},percentage:{...typography.tiny1,borderRadius:5,paddingInline:5,marginRight:3,height:16,lineHeight:"16px",display:"flex",flexShrink:0,marginTop:1},percentagePositive:{color:colors$2.oraidex.green,backgroundColor:`${colors$2.oraidex.green}40`},percentageNegative:{color:colors$2.oraidex.Error,backgroundColor:`${colors$2.oraidex.Error}40`},caption2:{...typography.caption2,color:colors$2.oraidex.neutralText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:hover":{color:colors$2.white.main}},bottom:{padding:12}})),AmountInput=({value:_e,setValue:cr,error:gr,className:Cr,decimal:Vr,placeholder:tt,style:nt,onMaxClick:st,current:dt,tokens:kt,onSelect:qt,disabled:ro,balance:ht,hideBalances:po=!1,handleAddToken:no,commonTokens:Nt,limit:eo,initialHideUnknownTokensValue:Wt,onHideUnknownTokensChange:St,tokenPrice:Ot,priceLoading:uo=!1,isBalanceLoading:go,showMaxButton:bo=!0})=>{const{classes:oo}=useStyles$8({walletDisconnected:po}),Ro=reactExports.useRef(null),pt=[{value:10,decimals:Number(Vr)},{value:100,decimals:4},{value:1e3,decimals:2},{value:1e4,decimals:1},{value:1e6,decimals:2,divider:1e3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],lo=[{value:1e3,decimals:2},{value:1e4,decimals:1},{value:1e6,decimals:2,divider:1e3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],so=ho=>{const io=/^\d*\.?\d*$/,co=`^\\d*\\.?\\d{0,${Vr}}$`,mo=new RegExp(co,"g");if(ho.target.value===""||mo.test(ho.target.value)){if(typeof eo<"u"&&+ho.target.value>eo)return;const Bo=ho.target.value,So=ho.target.selectionStart;let Tt=ho.target.value;/^\.\d*$/.test(Tt)&&(Tt=`0${Tt}`);const vo=Bo.length-Tt.length;cr(Tt),So!==null&&Tt!==Bo&&setTimeout(()=>{Ro.current&&(Ro.current.selectionStart=Math.max(So-vo,0),Ro.current.selectionEnd=Math.max(So-vo,0))},0)}else io.test(ho.target.value)?mo.test(ho.target.value)||cr(ho.target.value.slice(0,ho.target.value.length-1)):cr("")},wo=dt?dt.symbol:"",xt=Ot&&ht?Ot*+ht:0,Mt=ht?" "+formatNumbers(pt)(ht.toString()):0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",wrap:"nowrap",className:oo.exchangeContainer,children:[jsxRuntimeExports.jsx(Select,{centered:!0,tokens:kt,onSelect:qt,current:dt,className:oo.select,hideBalancesInModal:po,handleAddToken:no,commonTokens:Nt,initialHideUnknownTokensValue:Wt,onHideUnknownTokensChange:St}),jsxRuntimeExports.jsx(Input$2,{inputRef:Ro,error:!!gr,className:classNames(oo.amountInput,Cr),classes:{input:oo.input},style:nt,type:"text",value:_e,disableUnderline:!0,placeholder:tt,onChange:so})]}),!po&&jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",alignItems:"center",direction:"row",wrap:"nowrap",className:oo.bottom,children:[jsxRuntimeExports.jsxs(Grid,{className:oo.balanceContainer,onClick:st,children:[jsxRuntimeExports.jsxs(Typography,{className:oo.BalanceTypography,children:["Balance:",go?jsxRuntimeExports.jsx("img",{src:loadingAnimation,className:oo.loadingBalance}):jsxRuntimeExports.jsxs("span",{className:oo.bal,children:["\xA0",Mt]}),showPrefix(Number(ht))," ",jsxRuntimeExports.jsxs("span",{className:oo.bal,children:["\xA0",wo.slice(0,8)]}),wo.length>8?"...":""]}),bo&&jsxRuntimeExports.jsx(OutlinedButton,{name:"Max",color:"primary",onClick:st,className:oo.maxButton,labelClassName:oo.label,disabled:ro&&isNaN(Number(ht))?ro:isNaN(Number(ht))||po})]}),jsxRuntimeExports.jsx(Grid,{className:oo.percentages,container:!0,alignItems:"center",wrap:"nowrap",children:dt?uo?jsxRuntimeExports.jsx("img",{src:loadingAnimation,className:oo.loading}):Ot?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Typography,{className:oo.caption2,children:["\u2248$",formatNumbers(lo)(xt.toString())+showPrefix(xt)]})}):jsxRuntimeExports.jsx(Tooltip,{title:"Cannot fetch price of token",placement:"bottom",classes:{tooltip:oo.tooltip},children:jsxRuntimeExports.jsxs(Typography,{className:oo.noData,children:[jsxRuntimeExports.jsx("span",{className:oo.noDataIcon,children:"?"}),"No data"]})}):null})]})]})},useStyles$7=makeStyles()((_e,{open:cr})=>({wrapper:{padding:0,overflow:"hidden",transition:"max-height 300ms",maxHeight:cr?160:0,marginBottom:16},innerWrapper:{},row:{marginTop:8},label:{...typography.caption2,color:colors$2.oraidex.neutralText,lineHeight:"21px",marginRight:3},value:{...typography.caption2,lineHeight:"21px",color:colors$2.oraidex.text},loadingContainer:{width:20,justifyContent:"center",overflow:"hidden"},loading:{width:15,height:15}})),TransactionDetailsBox=({open:_e,fee:cr,exchangeRate:gr,slippage:Cr,priceImpact:Vr,isLoadingRate:tt=!1})=>{const{classes:nt}=useStyles$7({open:_e}),st=Number(printBigint(cr,PERCENTAGE_SCALE-2)),dt=Vr*100;return jsxRuntimeExports.jsx(Grid,{container:!0,className:nt.wrapper,children:jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",wrap:"nowrap",className:nt.innerWrapper,children:[jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Exchange rate:"}),tt?jsxRuntimeExports.jsx("img",{src:loadingAnimation,className:nt.loading}):jsxRuntimeExports.jsx(Typography,{className:nt.value,children:gr.val===1/0?"-":`${gr.val.toFixed(gr.decimal)} ${gr.symbol}`})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Fee:"}),jsxRuntimeExports.jsx(Typography,{className:nt.value,children:`${st}%`})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Price impact:"}),jsxRuntimeExports.jsx(Typography,{className:nt.value,children:dt<.01?"<0.01%":`${dt.toFixed(2)}%`})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Slippage tolerance:"}),jsxRuntimeExports.jsxs(Typography,{className:nt.value,children:[Cr,"%"]})]})]})})},useStyles$6=makeStyles()(_e=>({"@keyframes slide-down":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(60%)"},"100%":{transform:"translateY(0%)"}},"@keyframes slide-up":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(-70%)"},"100%":{transform:"translateY(0%)"}},"@keyframes slide-down-xs":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(90%)"},"100%":{transform:"translateY(0%)"}},"@keyframes slide-up-xs":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(-110%)"},"100%":{transform:"translateY(0%)"}},swapWrapper:{display:"flex",flexDirection:"column",[_e.breakpoints.down("xs")]:{padding:"0 16px"}},header:{display:"flex",alignItems:"center",justifyContent:"space-between",width:500,position:"relative",paddingBottom:24,"& h1":{...typography.heading4,color:colors$2.white.main}},headerLeft:{flex:1,visibility:"hidden"},refreshIcon:{width:26,height:21,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}},settingsIcon:{width:20,height:20,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}},divider:{width:"100%",borderBottom:"1px solid",borderColor:colors$2.oraidex.newDark},HiddenTransactionButton:{paddingInline:0,width:"100%",background:"none !important",border:"none",minWidth:"auto",color:colors$2.oraidex.lightHover,"&:hover":{filter:"brightness(1.15)",cursor:"pointer"}},transactionDetailDisabled:{width:"100%",background:"none !important",border:"none",minWidth:"auto",color:colors$2.oraidex.lightHover},swapControls:{display:"flex",gap:8,flex:1,justifyContent:"flex-end"},refreshIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none","&:hover":{background:"none"},"&:disabled":{opacity:.5}},settingsIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none","&:hover":{background:"none"}},slippage:{position:"absolute"},root:{background:"#1B1D19",borderRadius:12,paddingInline:24,paddingBottom:22,paddingTop:16,width:500,border:"1px solid #232521",boxShadow:"0px 4px 24px 0px rgba(0, 0, 0, 0.05)"},connectWalletButton:{height:"48px !important",borderRadius:"16px !important",width:"100%",[_e.breakpoints.down("xs")]:{width:"100% !important"}},tokenComponentTextContainer:{display:"flex",justifyContent:"space-between",position:"relative"},amountInput:{position:"relative"},amountInputDown:{animation:"$slide-down 300ms linear",[_e.breakpoints.down("xs")]:{animation:"$slide-down-xs 300ms linear"}},amountInputUp:{animation:"$slide-up 300ms linear",[_e.breakpoints.down("xs")]:{animation:"$slide-up-xs 300ms linear"}},swapArrowBox:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:colors$2.oraidex.component,width:50,height:50,borderRadius:"50%",position:"absolute",zIndex:2,left:"50%",top:"0%",transform:"translateX(-50%) translateY(-40%)",cursor:"pointer",transition:"background-color 200ms",[_e.breakpoints.down("xs")]:{transform:"translateX(-50%) translateY(-14%)"}},swapImgRoot:{width:50,height:50,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:100,"&:hover":{opacity:.7}},swapArrows:{width:"100%",height:"100%",objectFit:"contain",marginBlock:13,marginInline:6,transition:".4s all"},transactionDetails:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",flexFlow:"row nowrap",marginTop:5,position:"relative",cursor:"default",filter:"brightness(0.9)"},transactionDetailsWrapper:{width:"100%",display:"flex",flexDirection:"row",margin:"16px 0 8px 0",borderRadius:"10px",alignItems:"center",justifyContent:"space-between"},transactionDetailsHeader:{...typography.heading5,whiteSpace:"nowrap",pointerEvents:"none",color:colors$2.oraidex.text,fontSize:17,[_e.breakpoints.down("xs")]:{...typography.caption2}},swapButton:{width:"100%",height:48},exchangeRoot:{marginTop:24,position:"relative",background:colors$2.oraidex.newDark,borderRadius:8},transactionTop:{marginTop:10},hideBalance:{padding:"5px 15px 5px 15px"},transactionBottom:{marginTop:10,[_e.breakpoints.down("xs")]:{marginTop:36}},transtactionData:{border:`1px solid ${colors$2.oraidex.light}`,borderRadius:"10px",padding:"5px 15px 5px 15px",color:colors$2.oraidex.lightGrey},buttonSelectDisabled:{background:`${colors$2.oraidex.greenLinearGradient} !important`,"&:hover":{filter:"brightness(1.15)",boxShadow:"0px 3px 1px -2px rgba(43, 193, 144, 0.2),0px 1px 2px 0px rgba(45, 168, 128, 0.14),0px 0px 5px 7px rgba(59, 183, 142, 0.12)"}},ButtonSwapActive:{transition:"filter 0.3s linear",background:`${colors$2.oraidex.greenLinearGradient} !important`,filter:"brightness(0.8)","&:hover":{filter:"brightness(1.15)",boxShadow:"0px 3px 1px -2px rgba(43, 193, 144, 0.2),0px 1px 2px 0px rgba(45, 168, 128, 0.14),0px 0px 5px 7px rgba(59, 183, 142, 0.12)"}},infoIcon:{width:10,height:10,marginLeft:4,marginBottom:2,filter:"brightness(0.8)",pointerEvents:"none"}})),Swap=({isFetchingNewPool:_e,walletStatus:cr,tokens:gr,pools:Cr,tickmap:Vr,onSwap:tt,onSetPair:nt,progress:st,poolTicks:dt,isWaitingForNewPool:kt,onConnectWallet:qt,onDisconnectWallet:ro,initialTokenFromIndex:ht,initialTokenToIndex:po,handleAddToken:no,commonTokens:Nt,initialHideUnknownTokensValue:eo,onHideUnknownTokensChange:Wt,tokenFromPriceData:St,tokenToPriceData:Ot,priceFromLoading:uo,priceToLoading:go,onSlippageChange:bo,initialSlippage:oo,isBalanceLoading:Ro,swapData:pt,simulateResult:lo})=>{var Ko,ps,Kn;const{classes:so}=useStyles$6();let wo;(gs=>{gs.FROM="from",gs.TO="to"})(wo||(wo={}));const[xt,Mt]=React$3.useState(null),[ho,io]=React$3.useState(null),[co,mo]=React$3.useState(null),[Bo,So]=React$3.useState(!1),[Tt,vo]=React$3.useState(""),[Co,xo]=React$3.useState(""),[Po,Wo]=React$3.useState(null),[Yn,ba]=React$3.useState(0),[_a,$s]=React$3.useState(oo),[vs,ss]=React$3.useState(!1),[Ts,qo]=React$3.useState(!1),[Js,Vo]=React$3.useState(!1),[zo,$n]=React$3.useState("from"),[Tn,ko]=React$3.useState(!1),es=reactExports.useRef(0),fs=useDispatch();reactExports.useEffect(()=>{if(gr.length&&xt===null&&ho===null){const gs=Nt.length?gr.findIndex(H0=>H0.assetAddress===Nt[0]):-1;Mt(ht!==null?ht:gs!==-1?gs:0),io(po)}},[gr]),reactExports.useEffect(()=>{nt(xt===null?null:gr[xt].assetAddress,ho===null?null:gr[ho].assetAddress)},[xt,ho,Cr.length]),reactExports.useEffect(()=>{zo==="from"&&!(Tt===""&&Co==="")&&Es()},[Tt,ho,xt,_a,Object.keys(dt).length,Object.keys(Vr).length]),reactExports.useEffect(()=>{zo==="to"&&!(Tt===""&&Co==="")&&Es()},[Co,ho,xt,_a,Object.keys(dt).length,Object.keys(Vr).length]),reactExports.useEffect(()=>{st==="none"&&!(Tt===""&&Co==="")&&Es()},[st]);const Es=()=>{ss(!0),clearTimeout(es.current);const gs=setTimeout(()=>{ms().finally(()=>{ss(!1)})},500);es.current=gs};reactExports.useEffect(()=>{if(xt!==null&&ho!==null)if(zo==="from"){const gs=Us(gr[ho]);xo(+gs==0?"":trimLeadingZeros(gs))}else{const gs=Us(gr[xt]);vo(+gs==0?"":trimLeadingZeros(gs))}},[lo]),reactExports.useEffect(()=>{ks()},[ho,xt,Cr.length]),reactExports.useEffect(()=>{const gs=Tt;vo(Co),xo(gs),$n(zo==="from"?"to":"from")},[Po]),reactExports.useEffect(()=>{ko(!1)},[xt,ho]);const Us=gs=>Number(printBigint(lo.amountOut,gs.decimals)).toFixed(Number(gs.decimals)),ms=async()=>{xt!==null&&ho!==null&&pt&&fs(zo==="from"?actions.getSimulateResult({fromToken:gr[xt].assetAddress,toToken:gr[ho].assetAddress,amount:convertBalanceToBigint(Tt,Number(gr[xt].decimals)),byAmountIn:!0}):actions.getSimulateResult({fromToken:gr[xt].assetAddress,toToken:gr[ho].assetAddress,amount:convertBalanceToBigint(Co,Number(gr[ho].decimals)),byAmountIn:!1}))},bs=(gs,H0)=>{const j0=Cr.find(hs=>gs===hs.pool_key.token_x&&H0===hs.pool_key.token_y||gs===hs.pool_key.token_y&&H0===hs.pool_key.token_x);if(!j0){const hs=gs+"-"+H0+"-0-0";if(SWAP_HOPS_CACHE[hs])return!0;{const Ss=H0+"-"+gs+"-0-0";return!!SWAP_HOPS_CACHE[Ss]}}return!!j0},ks=()=>{if(xt!==null&&ho!==null){const gs=Us(gr[ho]);xo(+gs==0?"":trimLeadingZeros(gs))}},Ds=()=>xt!==null&&ho!==null&&vs||kt?"Loading":cr!==Status.Initialized?"Connect a wallet":xt===null||ho===null?"Select a token":xt===ho?"Select different tokens":bs(gr[xt].assetAddress,gr[ho].assetAddress)?lo.poolKey===null&&(b0(SwapError.InsufficientLiquidity)||b0(SwapError.MaxTicksCrossed))?"Insufficient liquidity":convertBalanceToBigint(Tt,Number(gr[xt].decimals))>gr[xt].balance?"Insufficient balance":convertBalanceToBigint(Tt,Number(gr[xt].decimals))===0n||lo.poolKey===null&&b0(SwapError.AmountIsZero)?"Insufficient volume":"Swap Tokens":"No route found",Fs=()=>Ds()==="Swap Tokens"||Ds()==="Loading"||Ds()==="Connect a wallet",d0=gs=>{$s(gs),bo(gs)},v0=gs=>{mo(gs.currentTarget),blurContent(),qo(!0)},b0=gs=>lo.errors?lo.errors.some(H0=>H0===gs):!1,R0=()=>{unblurContent(),qo(!1)},D0=()=>{Vo(!Js)};reactExports.useEffect(()=>{let gs;return Bo&&(gs=setTimeout(()=>So(!1),500)),()=>{gs&&clearTimeout(gs)}},[Bo]);const zs=xt===null||ho===null||Tt===""||Co===""?0:+Co/+Tt,n0=xt!==null&&ho!==null&&Fs()&&(Ds()==="Loading"||zs!==0&&zs!==1/0&&!isNaN(zs))&&Tt!==""&&Co!=="",[fo,Qo]=reactExports.useState(Js&&n0);return reactExports.useEffect(()=>{Ds()!=="Loading"&&Qo(Js&&n0)},[Js,n0]),reactExports.useEffect(()=>{ms()},[_e]),jsxRuntimeExports.jsx(Grid,{container:!0,className:so.swapWrapper,alignItems:"center",children:jsxRuntimeExports.jsxs(Grid,{container:!0,className:so.root,direction:"column",children:[jsxRuntimeExports.jsxs(Grid,{container:!0,className:so.header,children:[jsxRuntimeExports.jsx("div",{className:so.headerLeft}),jsxRuntimeExports.jsx(Typography,{component:"h1",children:"Swap Tokens"}),jsxRuntimeExports.jsx(Box,{className:so.swapControls,children:jsxRuntimeExports.jsx(Button,{onClick:v0,className:so.settingsIconBtn,children:jsxRuntimeExports.jsx("img",{src:settingIcon,className:so.settingsIcon})})}),jsxRuntimeExports.jsx(Grid,{className:so.slippage,children:jsxRuntimeExports.jsx(Slippage,{open:Ts,setSlippage:d0,handleClose:R0,anchorEl:co,defaultSlippage:"1",initialSlippage:oo})})]}),jsxRuntimeExports.jsx("div",{className:so.divider}),jsxRuntimeExports.jsx(Box,{className:classNames(so.exchangeRoot,Bo?so.amountInputDown:void 0),children:jsxRuntimeExports.jsx(AmountInput,{value:Tt,balance:xt!==null?printBigint(BigInt(gr[xt].balance),gr[xt].decimals):"- -",decimal:xt!==null?gr[xt].decimals:12,className:so.amountInput,setValue:gs=>{gs.match(/^\d*\.?\d*$/)&&(vo(gs),$n("from"))},placeholder:`0.${"0".repeat(6)}`,onMaxClick:()=>{xt!==null&&($n("from"),vo(printBigint(BigInt(gr[xt].balance),gr[xt].decimals)))},tokens:gr,current:xt!==null?gr[xt]:null,onSelect:gs=>{gs===ho?(Mt(ho),io(xt)):Mt(gs)},disabled:xt===null,hideBalances:cr!==Status.Initialized,handleAddToken:no,commonTokens:Nt,limit:1e14,initialHideUnknownTokensValue:eo,onHideUnknownTokensChange:Wt,tokenPrice:St==null?void 0:St.price,priceLoading:uo,isBalanceLoading:Ro,showMaxButton:!0})}),jsxRuntimeExports.jsx(Box,{className:so.tokenComponentTextContainer,children:jsxRuntimeExports.jsx(Box,{className:so.swapArrowBox,onClick:()=>{Bo||(So(!Bo),ba(Yn+1),Wo(Po!==null?!Po:!0),setTimeout(()=>{const gs=xt;Mt(ho),io(gs)},50))},children:jsxRuntimeExports.jsx(Box,{className:so.swapImgRoot,children:jsxRuntimeExports.jsx("img",{src:SwapArrows,style:{transform:`rotate(${-Yn*180}deg)`},className:so.swapArrows})})})}),jsxRuntimeExports.jsx(Box,{className:classNames(so.exchangeRoot,so.transactionBottom,Bo?so.amountInputUp:void 0),children:jsxRuntimeExports.jsx(AmountInput,{value:Co,balance:ho!==null?printBigint(BigInt(gr[ho].balance),gr[ho].decimals):"- -",className:so.amountInput,decimal:ho!==null?gr[ho].decimals:12,setValue:gs=>{gs.match(/^\d*\.?\d*$/)&&(xo(gs),$n("to"))},placeholder:`0.${"0".repeat(6)}`,onMaxClick:()=>{xt!==null&&($n("from"),vo(printBigint(BigInt(gr[xt].balance),gr[xt].decimals)))},tokens:gr,current:ho!==null?gr[ho]:null,onSelect:gs=>{gs===xt?(io(xt),Mt(ho)):io(gs)},disabled:xt===null,hideBalances:cr!==Status.Initialized,handleAddToken:no,commonTokens:Nt,limit:1e14,initialHideUnknownTokensValue:eo,onHideUnknownTokensChange:Wt,tokenPrice:Ot==null?void 0:Ot.price,priceLoading:go,isBalanceLoading:Ro,showMaxButton:!1})}),jsxRuntimeExports.jsx(Box,{className:so.transactionDetails,children:jsxRuntimeExports.jsx("button",{onClick:xt!==null&&ho!==null&&Fs()&&Tt!==""&&Co!==""?D0:void 0,className:xt!==null&&ho!==null&&Fs()&&Tt!==""&&Co!==""?so.HiddenTransactionButton:so.transactionDetailDisabled,children:n0?jsxRuntimeExports.jsxs(Grid,{className:so.transactionDetailsWrapper,children:[jsxRuntimeExports.jsxs(Typography,{className:so.transactionDetailsHeader,children:["1"," ",(Ko=gr[Tn?ho:xt])==null?void 0:Ko.symbol," \u2248"," ",Number(Tn?1/zs:zs).toFixed(6)," ",(ps=gr[Tn?xt:ho])==null?void 0:ps.symbol]}),jsxRuntimeExports.jsx(default_1$3,{})]}):null})}),jsxRuntimeExports.jsx(TransactionDetailsBox,{open:Ds()!=="Loading"?Js&&n0:fo,fee:BigInt(((Kn=lo.poolKey)==null?void 0:Kn.fee_tier.fee)??0),exchangeRate:{val:Tn?1/zs:zs,symbol:n0?gr[Tn?xt:ho].symbol:"",decimal:n0?Number(gr[Tn?xt:ho].decimals):0},priceImpact:lo.priceImpact,slippage:+_a,isLoadingRate:Ds()==="Loading"}),cr!==Status.Initialized&&Ds()!=="Loading"?jsxRuntimeExports.jsx(ChangeWalletButton,{name:"Please Connect Wallet",onConnect:qt,connected:!1,onDisconnect:ro,className:so.connectWalletButton}):jsxRuntimeExports.jsx(AnimatedButton,{content:Ds(),className:Ds()==="Connect a wallet"?`${so.swapButton} ${so.buttonSelectDisabled}`:Ds()==="Swap Tokens"&&st==="none"?`${so.swapButton} ${so.ButtonSwapActive}`:so.swapButton,disabled:Ds()!=="Swap Tokens"||st!=="none",onClick:()=>{lo.poolKey===null||xt===null||ho===null||tt(lo.poolKey,BigInt(+_a*Number(PERCENTAGE_DENOMINATOR)/100),lo.targetSqrtPrice,gr[xt].assetAddress,gr[ho].assetAddress,convertBalanceToBigint(Tt,gr[xt].decimals),convertBalanceToBigint(Co,gr[ho].decimals),zo==="from")},progress:st})]})})},WrappedSwap=()=>{const _e=useDispatch(),cr=useSelector(status$1),gr=useSelector(swap),Cr=useSelector(tickMaps),Vr=useSelector(poolsArraySortedByFees),tt=useSelector(swapTokens),nt=useSelector(swapTokensDict),st=useSelector(balanceLoading),{success:dt,inProgress:kt}=useSelector(swap),qt=useSelector(isLoadingLatestPoolsForTransaction),ro=useSelector(networkType),ht=useSelector(simulateResult),[po,no]=reactExports.useState("none"),[Nt,eo]=reactExports.useState(null),[Wt,St]=reactExports.useState(null);reactExports.useEffect(()=>{let So,Tt;return!kt&&po==="progress"&&(no(dt?"approvedWithSuccess":"approvedWithFail"),So=setTimeout(()=>{no(dt?"success":"failed")},1500),Tt=setTimeout(()=>{no("none")},3e3)),()=>{clearTimeout(So),clearTimeout(Tt)}},[dt,kt]),reactExports.useEffect(()=>{Nt!==null&&Wt!==null&&!qt&&_e(actions.setPair({tokenFrom:Nt,tokenTo:Wt}))},[qt]);const Ot=localStorage.getItem(`INVARIANT_LAST_TOKEN_FROM_${networkType}`),uo=localStorage.getItem(`INVARIANT_LAST_TOKEN_TO_${networkType}`),go=Ot===null?null:tt.findIndex(So=>So.assetAddress===Ot),bo=uo===null?null:tt.findIndex(So=>So.assetAddress===uo),oo=localStorage.getItem("HIDE_UNKNOWN_TOKENS")==="true"||localStorage.getItem("HIDE_UNKNOWN_TOKENS")===null,Ro=So=>{localStorage.setItem("HIDE_UNKNOWN_TOKENS",So?"true":"false")},[pt,lo]=reactExports.useState(void 0),[so,wo]=reactExports.useState(!1);reactExports.useEffect(()=>{if(Nt===null)return;const So=nt[Nt.toString()].coingeckoId??"";So.length?(wo(!0),getCoingeckoTokenPrice(So).then(Tt=>lo(Tt)).catch(()=>lo(getMockedTokenPrice(nt[Nt.toString()].symbol,ro))).finally(()=>wo(!1))):lo(void 0)},[Nt]);const[xt,Mt]=reactExports.useState(void 0),[ho,io]=reactExports.useState(!1);reactExports.useEffect(()=>{if(Wt===null)return;const So=nt[Wt.toString()].coingeckoId??"";So.length?(io(!0),getCoingeckoTokenPrice(So).then(Tt=>Mt(Tt)).catch(()=>Mt(getMockedTokenPrice(nt[Wt.toString()].symbol,ro))).finally(()=>io(!1))):Mt(void 0)},[Wt]);const co=localStorage.getItem("INVARIANT_SWAP_SLIPPAGE")??"1",mo=So=>{localStorage.setItem("INVARIANT_SWAP_SLIPPAGE",So)},Bo=(So,Tt)=>{if(_e(actions$3.getBalance()),So===null||Tt==null||(_e(actions$1.getAllPoolsForPairData({first:tt[So].assetAddress,second:tt[Tt].assetAddress})),Wt===null||Nt===null))return;const vo=nt[Wt.toString()].coingeckoId??"";vo.length?(io(!0),getCoingeckoTokenPrice(vo).then(xo=>Mt(xo)).catch(()=>Mt(getMockedTokenPrice(nt[Wt.toString()].symbol,ro))).finally(()=>io(!1))):Mt(void 0);const Co=nt[Nt.toString()].coingeckoId??"";Co.length?(wo(!0),getCoingeckoTokenPrice(Co).then(xo=>lo(xo)).catch(()=>lo(getMockedTokenPrice(nt[Nt.toString()].symbol,ro))).finally(()=>wo(!1))):lo(void 0)};return jsxRuntimeExports.jsx(Swap,{isFetchingNewPool:qt,onRefresh:Bo,onSwap:(So,Tt,vo,Co,xo,Po,Wo,Yn)=>{no("progress"),_e(actions.swap({poolKey:So,slippage:Number(Tt),estimatedPriceAfterSwap:vo,tokenFrom:Co,tokenTo:xo,amountIn:Po,amountOut:Wo,byAmountIn:Yn}))},onSetPair:(So,Tt)=>{eo(So),St(Tt),So!==null&&localStorage.setItem(`INVARIANT_LAST_TOKEN_FROM_${networkType}`,So.toString()),Tt!==null&&localStorage.setItem(`INVARIANT_LAST_TOKEN_TO_${networkType}`,Tt.toString()),So!==null&&Tt!==null&&So!==Tt&&_e(actions$1.getAllPoolsForPairData({first:So,second:Tt}))},onConnectWallet:openWalletSelectorModal,onDisconnectWallet:()=>{_e(actions$3.disconnect())},walletStatus:cr,tokens:tt,pools:Vr,swapData:gr,progress:po,poolTicks:{},isWaitingForNewPool:qt,tickmap:Cr,initialTokenFromIndex:go===-1?null:go,initialTokenToIndex:bo===-1?null:bo,handleAddToken:()=>{},commonTokens:commonTokensForNetworks[ro],initialHideUnknownTokensValue:oo,onHideUnknownTokensChange:Ro,tokenFromPriceData:pt,tokenToPriceData:xt,priceFromLoading:so||st,priceToLoading:ho||st,onSlippageChange:mo,initialSlippage:co,isBalanceLoading:st,simulateResult:ht})},useStyles$5=makeStyles()(()=>({container:{display:"flex",minHeight:"70vh",marginTop:"65px",justifyContent:"center",backgroundColor:"transparent"}})),SwapPage=()=>{const{classes:_e}=useStyles$5();return jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx(WrappedSwap,{})})},useStyles$4=makeStyles()(_e=>({root:{[_e.breakpoints.down("sm")]:{width:"100%"}},poolFilter:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"24px 16px",flexWrap:"wrap",[_e.breakpoints.down("md")]:{flexDirection:"column",gap:"6px"},[_e.breakpoints.down("sm")]:{width:"100%"}},poolFilterRight:{display:"flex",alignItems:"center",justifyContent:"space-between",[_e.breakpoints.down("md")]:{width:"100%"}},poolFilterList:{display:"flex",alignItems:"center",padding:"4px",borderRadius:"99px",[_e.breakpoints.down("md")]:{width:"100%",justifyContent:"space-between"}},poolSearch:{display:"flex",justifyContent:"space-between",alignItems:"center",borderRadius:"99px",[_e.breakpoints.down("md")]:{width:"100%"}},input:{height:"40px",fontSize:"14px",fontWeight:"400",lineHeight:"150%",marginRight:"8px",borderRadius:"99px",color:"#EFEFEF",minWidth:"280px",maxWidth:400,[_e.breakpoints.down("sm")]:{width:"100%",maxWidth:600,marginRight:"0px"}},filterActive:{backgroundColor:"#fff"},filterItem:{padding:"3px 20px",fontSize:"16px",font\u01AFeight:"500",cursor:"pointer",borderRadius:"99px",display:"inline-flex",alignItems:"center",justifyContent:"center",[_e.breakpoints.down("md")]:{width:"100%"}},titleBar:{display:"flex",marginBottom:20},title:{color:colors$2.oraidex.text,...typography.heading4,fontWeight:500},positionsNumber:{width:28,height:28,color:colors$2.oraidex.text,background:colors$2.oraidex.light,marginLeft:8,borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center"},searchRoot:{width:"100%"},searchWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap"},searchBar:{width:221,height:32,padding:"7px 12px",borderRadius:10,background:colors$2.oraidex.black,border:"1px solid #202946",color:colors$2.oraidex.lightGrey,...typography.body2,[_e.breakpoints.down("xs")]:{maxWidth:200}},button:{color:colors$2.oraidex.dark,...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,marginLeft:16,background:"linear-gradient(180deg, rgba(239, 132, 245, 0.8) 0%, rgba(156, 62, 189, 0.8) 100%)","&:hover":{background:"linear-gradient(180deg, #EF84F5 0%, #9C3EBD 100%)",boxShadow:"0px 0px 16px rgba(239, 132, 245, 0.35)"}},buttonSelectDisabled:{...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,cursor:"auto",marginLeft:16,background:`${colors$2.oraidex.light} !important`,"&:hover":{filter:"brightness(1.15)"}},buttonText:{WebkitPaddingBefore:"2px"},noPositionsText:{...typography.heading1,textAlign:"center",color:colors$2.oraidex.text},list:{position:"relative",flex:1},itemLink:{textDecoration:"none",cursor:"pointer","&:not(:last-child)":{display:"block",marginBottom:20,[_e.breakpoints.down("sm")]:{marginBottom:16}}},searchIcon:{width:17},loading:{width:150,height:150,margin:"auto"},placeholder:{margin:"auto"},refreshIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none",marginRight:7,"&:hover":{background:"none"},"&:disabled":{opacity:.5}},refreshIcon:{width:26,height:21,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}}})),Input=({onSearch:_e,...cr})=>{const{classes:gr}=useStyles$4();return jsxRuntimeExports.jsx("input",{className:gr.input,onChange:debounce$1(Cr=>{_e==null||_e(Cr.target.value)},500),...cr})},PositionsFilter=({setSearchValue:_e})=>{const{classes:cr}=useStyles$4();return jsxRuntimeExports.jsx(Grid,{className:cr.root,children:jsxRuntimeExports.jsx("div",{className:cr.poolFilter,children:jsxRuntimeExports.jsx("div",{className:cr.poolFilterRight,children:jsxRuntimeExports.jsx("div",{className:cr.poolSearch,children:jsxRuntimeExports.jsx(Search,{style:null,theme:"light",placeholder:"Search pools",onSearch:gr=>_e(gr)})})})})})},Search=({theme:_e,style:cr,...gr})=>{const Cr=SearchSvg;return jsxRuntimeExports.jsx(Input,{placeholder:"Search positions",style:{paddingLeft:40,backgroundImage:`url(${Cr})`,backgroundRepeat:"no-repeat",backgroundPosition:"10px center",backgroundColor:"#232521",border:"none",outline:"none",minWidth:"unset",...cr},...gr})},useStyles$3=makeStyles()(_e=>({root:{background:colors$2.oraidex.component,borderRadius:16,padding:32,flexWrap:"nowrap",border:"1px solid #232521","&:not(:last-child)":{marginBottom:16},"&:hover":{background:`${colors$2.oraidex.component}B0`},[_e.breakpoints.down("md")]:{padding:16,flexWrap:"wrap"}},icons:{marginRight:12,width:"fit-content",[_e.breakpoints.down("md")]:{marginRight:12}},tokenIcon:{width:32,borderRadius:"100%",[_e.breakpoints.down("xs")]:{width:28},"&:last-child":{position:"relative",right:"10px"}},names:{textOverflow:"ellipsis",overflow:"hidden",...typography.heading2,color:colors$2.oraidex.text,lineHeight:"40px",whiteSpace:"nowrap",fontSize:"18px",[_e.breakpoints.down("lg")]:{...typography.heading2},[_e.breakpoints.down("md")]:{lineHeight:"32px",width:"unset"},[_e.breakpoints.down("sm")]:{...typography.heading3,lineHeight:"25px"}},infoText:{...typography.body1,fontWeight:500,fontSize:16,color:"#EFEFEF",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("xs")]:{...typography.caption1}},suffixText:{...typography.body1,fontWeight:500,fontSize:16,marginLeft:4,color:"#979995",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("sm")]:{...typography.caption1,fontWeight:500}},activeInfoText:{color:"#EFEFEF",fontWeight:400,fontSize:14},greenText:{...typography.body1,color:colors$2.oraidex.green,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("xs")]:{...typography.caption1}},greyText:{...typography.body1,color:"#979995",fontSize:14,fontWeight:400,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("xs")]:{...typography.caption1}},liquidity:{background:colors$2.oraidex.light,borderRadius:11,height:36,width:170,marginRight:8,lineHeight:20,[_e.breakpoints.down("md")]:{flex:"1 1 0%"}},fee:{alignSelf:"center",background:"#494949",borderRadius:"8px",display:"flex",alignItems:"center",padding:"4px 12px",width:"fit-content",[_e.breakpoints.down("sm")]:{marginRight:0}},activeFee:{background:"#494949"},infoCenter:{flex:"1 1 0%",alignItems:"center"},minMax:{borderRadius:11,gap:4,height:40,width:"fit-content",paddingInline:10,marginRight:8,[_e.breakpoints.down("sm")]:{width:"100%",marginRight:0,marginTop:8}},value:{background:colors$2.oraidex.light,borderRadius:11,height:36,width:160,paddingInline:12,[_e.breakpoints.down("xs")]:{width:144,paddingInline:6}},mdInfo:{width:"fit-content",flexWrap:"nowrap",[_e.breakpoints.down("md")]:{flexWrap:"nowrap",marginTop:16,width:"100%"},[_e.breakpoints.down("sm")]:{flexWrap:"wrap"}},mdTop:{width:"fit-content",[_e.breakpoints.down("md")]:{width:"100%",justifyContent:"space-between"}},iconsAndNames:{width:"fit-content"},label:{marginRight:2,fontSize:14,color:colors$2.oraidex.neutralTextLight},tooltip:{background:colors$2.oraidex.componentBcg,border:`1px solid ${colors$2.oraidex.lightGrey}`,borderRadius:12,padding:10,...typography.caption4,fontSize:13,color:colors$2.white.main}})),PositionItem=({tokenXName:_e,tokenYName:cr,tokenXIcon:gr,tokenYIcon:Cr,fee:Vr,isActive:tt=!1,tokenXId:nt,poolAddress:st,currentPrice:dt})=>{const{classes:kt}=useStyles$3();useMediaQuery(theme.breakpoints.down("xs")),useMediaQuery(theme.breakpoints.up("lg"));const[qt,ro]=reactExports.useState(initialXtoY(tickerToAddress(_e),tickerToAddress(cr))),[ht,po]=reactExports.useState(void 0);reactExports.useEffect(()=>{nt?getCoingeckoTokenPriceV2(nt).then(Nt=>po(Nt)).catch(()=>po({price:0})):po(void 0)},[nt]);const no=reactExports.useMemo(()=>jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,className:classNames(kt.fee,tt?kt.activeFee:void 0),justifyContent:"center",alignItems:"center",children:jsxRuntimeExports.jsxs(Typography,{className:classNames(kt.infoText,tt?kt.activeInfoText:void 0),children:["Fee: ",Vr,"%"]})}),[Vr,kt,tt]);return jsxRuntimeExports.jsxs(Grid,{className:kt.root,container:!0,direction:"row",alignItems:"center",justifyContent:"space-between",children:[jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.mdTop,direction:"row",wrap:"nowrap",gap:2,children:[jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.iconsAndNames,alignItems:"center",wrap:"nowrap",children:[jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.icons,alignItems:"center",wrap:"nowrap",children:[jsxRuntimeExports.jsx("img",{className:kt.tokenIcon,src:qt?gr:Cr,alt:qt?_e:cr}),jsxRuntimeExports.jsx("img",{className:kt.tokenIcon,src:qt?Cr:gr,alt:qt?cr:_e})]}),jsxRuntimeExports.jsxs(Typography,{className:kt.names,children:[qt?_e:cr," / ",qt?cr:_e,jsxRuntimeExports.jsxs(Typography,{className:classNames(kt.greyText,kt.label),children:[jsxRuntimeExports.jsx("span",{children:"Market ID:"})," ",st.slice(0,9),"...",st.slice(st.length-9,st.length)," "]})]})]}),jsxRuntimeExports.jsx(Hidden,{smDown:!0,children:no})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.mdInfo,direction:"row",children:[jsxRuntimeExports.jsx(Hidden,{mdUp:!0,children:no}),jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,className:kt.minMax,justifyContent:"center",direction:"column",wrap:"nowrap",children:jsxRuntimeExports.jsxs(Typography,{className:classNames(kt.greyText,kt.label),children:["1 ",_e," \u2248 ",jsxRuntimeExports.jsxs("strong",{children:[dt.toFixed(6)," "]}),cr]})})]})]})},useStyles$2=makeStyles()(_e=>({root:{width:1122,[_e.breakpoints.down("md")]:{width:"100%"}},wrapSearch:{marginTop:"-100px",paddingBottom:32,[_e.breakpoints.down("md")]:{marginTop:"0",paddingBottom:0},[_e.breakpoints.down("sm")]:{width:"100%",justifyContent:"flex-start"}},header:{paddingBottom:16,display:"flex",alignItems:"flex-end"},titleBar:{display:"flex",marginBottom:20},title:{color:colors$2.oraidex.text,...typography.heading4,fontWeight:500},positionsNumber:{width:28,height:28,color:colors$2.oraidex.text,background:colors$2.oraidex.light,marginLeft:8,borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center"},searchRoot:{width:"100%"},searchWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap"},searchBar:{width:221,height:32,padding:"7px 12px",borderRadius:10,background:colors$2.oraidex.black,border:"1px solid #202946",color:colors$2.oraidex.lightGrey,...typography.body2,[_e.breakpoints.down("xs")]:{maxWidth:200}},button:{color:colors$2.oraidex.dark,...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,marginLeft:16,background:"linear-gradient(180deg, rgba(239, 132, 245, 0.8) 0%, rgba(156, 62, 189, 0.8) 100%)","&:hover":{background:"linear-gradient(180deg, #EF84F5 0%, #9C3EBD 100%)",boxShadow:"0px 0px 16px rgba(239, 132, 245, 0.35)"}},buttonSelectDisabled:{...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,cursor:"auto",marginLeft:16,background:`${colors$2.oraidex.light} !important`,"&:hover":{filter:"brightness(1.15)"}},buttonText:{WebkitPaddingBefore:"2px"},noPositionsText:{...typography.heading1,textAlign:"center",color:colors$2.oraidex.text},list:{position:"relative",flex:1},itemLink:{textDecoration:"none",cursor:"pointer","&:not(:last-child)":{display:"block",marginBottom:20,[_e.breakpoints.down("sm")]:{marginBottom:16}}},searchIcon:{width:17},loading:{width:150,height:150,margin:"auto"},placeholder:{margin:"auto"},refreshIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none",marginRight:7,"&:hover":{background:"none"},"&:disabled":{opacity:.5}},refreshIcon:{width:26,height:21,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}}})),PoolList=({initialPage:_e,setLastPage:cr,data:gr,loading:Cr=!1,showNoConnected:Vr=!1,noConnectedBlockerProps:tt,itemsPerPage:nt,searchValue:st,searchSetValue:dt,handleRefresh:kt})=>{const{classes:qt}=useStyles$2(),ro=useNavigate(),[ht]=reactExports.useState(_e),[po,no]=reactExports.useState(_e),Nt=Wt=>{cr(Wt),no(Wt)},eo=Wt=>{const St=Wt||1,Ot=nt||10,uo=(St-1)*Ot,go=gr.slice(uo).slice(0,nt),bo=Math.ceil(gr.length/Ot);return{page:St,totalPages:bo,data:go}};return reactExports.useEffect(()=>{no(1)},[st]),reactExports.useEffect(()=>{no(_e)},[]),reactExports.useEffect(()=>{Nt(_e)},[_e]),jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",className:qt.root,children:[jsxRuntimeExports.jsxs(Grid,{className:qt.wrapSearch,container:!0,item:!0,wrap:"nowrap",direction:"row",alignItems:"center",justifyContent:"flex-end",gap:"10px",marginBottom:"24px",children:[jsxRuntimeExports.jsx(PositionsFilter,{searchValue:st,setSearchValue:dt}),jsxRuntimeExports.jsx(Button,{disabled:Vr,onClick:Vr?()=>{}:kt,children:jsxRuntimeExports.jsx("img",{src:IconRefresh,alt:""})})]}),jsxRuntimeExports.jsx(Grid,{container:!0,direction:"column",className:qt.list,justifyContent:"flex-start",children:gr.length>0&&!Cr?eo(po).data.map((Wt,St)=>jsxRuntimeExports.jsx(Grid,{onClick:()=>{ro(`/newPosition/${Wt.tokenXName}/${Wt.tokenYName}/${Wt.fee}`)},className:qt.itemLink,children:jsxRuntimeExports.jsx(PositionItem,{...Wt},St)},Wt.address+Wt.id)):Vr?jsxRuntimeExports.jsx(NoConnected,{...tt}):Cr?jsxRuntimeExports.jsx(Grid,{container:!0,style:{flex:1},children:jsxRuntimeExports.jsx("img",{src:loader$1,className:qt.loading})}):jsxRuntimeExports.jsx(FallbackEmptyData,{})}),eo(po).totalPages>1?jsxRuntimeExports.jsx(PaginationList,{pages:eo(po).totalPages,defaultPage:ht,handleChangePage:Nt,variant:"end"}):null]})},WrappedPoolList=()=>{const _e=useSelector(address),cr=useSelector(positionsWithPoolsData),gr=useSelector(isLoadingAllPool),Cr=useSelector(lastPageSelector),Vr=useSelector(pools);useSelector(poolKeys);const tt=useSelector(status$1),nt=useNavigate(),st=useDispatch();useSigningClient();const dt=useSelector(swapTokens);reactExports.useEffect(()=>{st(actions$1.getAllPoolData())},[window.walletType,_e]);const[kt,qt]=reactExports.useState(""),ro=Nt=>{qt(Nt.toLowerCase())},ht=Nt=>{st(actions$1.setLastPoolPage(Nt))};reactExports.useEffect(()=>{cr.length===0&&ht(1),Cr>Math.ceil(cr.length/POSITIONS_PER_PAGE)&&ht(Cr-1)},[cr]);const po=()=>{st(actions$1.getAllPoolData())},no=Object.values(Vr).map(({pool:Nt,pool_key:eo},Wt)=>{let St,Ot=dt.find(bo=>bo.assetAddress==eo.token_x),uo=dt.find(bo=>bo.assetAddress==eo.token_y);if(!uo||!Ot)return{};(Ot.symbol==="USDT"||Ot.symbol==="USDC")&&(St=Ot,Ot=uo,uo=St);const go=calcPrice(Nt.current_tick_index??0,!St,Ot.decimals||0,uo.decimals||0);return{tokenXName:Ot.symbol,tokenYName:uo.symbol,tokenXIcon:Ot.logoURI,tokenYIcon:uo.logoURI,fee:+printBigint(BigInt(eo.fee_tier.fee),PERCENTAGE_SCALE-2),id:Wt,tokenXId:Ot.coingeckoId,poolAddress:poolKeyToString(eo),currentPrice:go,liquidity:Nt.liquidity,address:_e,...eo}}).filter(Nt=>Nt.tokenXName&&Nt.tokenYName&&(Nt.tokenXName.toLowerCase().includes(kt)||Nt.tokenYName.toLowerCase().includes(kt)));return jsxRuntimeExports.jsx(PoolList,{initialPage:1,setLastPage:ht,searchValue:kt,searchSetValue:ro,handleRefresh:po,onAddPositionClick:()=>{nt("/newPosition")},data:no,loading:gr,showNoConnected:tt!==Status.Initialized,noConnectedBlockerProps:{onConnect:openWalletSelectorModal,descCustomText:"No pools."},itemsPerPage:POSITIONS_PER_PAGE})},useStyles$1=makeStyles()(_e=>({container:{display:"flex",justifyContent:"center",backgroundColor:"#111",marginTop:45,paddingInline:94,minHeight:"70vh",[_e.breakpoints.down("md")]:{paddingInline:36},[_e.breakpoints.down("sm")]:{paddingInline:10},[_e.breakpoints.down("xs")]:{paddingInline:16}}})),ListPool=()=>{const{classes:_e}=useStyles$1();return jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx(WrappedPoolList,{})})},router=createBrowserRouter(createRoutesFromChildren(jsxRuntimeExports.jsxs(Route,{path:"/",element:jsxRuntimeExports.jsx(RootPage,{}),children:[jsxRuntimeExports.jsx(Route,{path:"/swap",element:jsxRuntimeExports.jsx(SwapPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/positions",element:jsxRuntimeExports.jsx(ListPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/pools",element:jsxRuntimeExports.jsx(ListPool,{})}),jsxRuntimeExports.jsx(Route,{path:"/stats",element:jsxRuntimeExports.jsx(StatsPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/newPosition/:item1?/:item2?/:item3?",element:jsxRuntimeExports.jsx(NewPositionPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/position/:address/:id",element:jsxRuntimeExports.jsx(SinglePositionPage,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/swap",replace:!0})})]}))),StyledSnackbarContent=styled$1(SnackbarContent)(({theme:_e})=>({display:"flex",flexDirection:"column",backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,maxWidth:330,width:330,padding:"7px 16px",minWidth:100,...typography.body2,boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)","& .MuiCircularProgress-colorPrimary":{color:colors$2.oraidex.textGrey},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}})),StyledContainer=styled$1("div")({display:"flex",justifyContent:"space-between",alignItems:"center",width:"auto","& div > div":{margin:0}}),StyledTitle=styled$1(Typography)({marginLeft:8,color:colors$2.oraidex.text,...typography.body2}),StyledCloseButton=styled$1("button")({backgroundColor:"transparent",border:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",height:30,width:"fit-content",cursor:"pointer",margin:0,"&:hover":{"& img":{transition:".2s all ease-in",transform:"scale(1.2)"}}}),StyledCircularProgress=styled$1(CircularProgress)({color:colors$2.oraidex.textGrey,display:"flex",alignItems:"center","& SVG":{width:13,height:13}}),LoadingSnackbar=React$3.forwardRef(({id:_e,message:cr},gr)=>{const{closeSnackbar:Cr}=useSnackbar(),Vr=reactExports.useCallback(()=>{Cr(_e)},[_e,Cr]);return jsxRuntimeExports.jsx(StyledSnackbarContent,{ref:gr,role:"alert",children:jsxRuntimeExports.jsxs(StyledContainer,{children:[jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",children:[jsxRuntimeExports.jsx(Box$1,{ml:1,children:jsxRuntimeExports.jsx(StyledCircularProgress,{size:13})}),jsxRuntimeExports.jsx(StyledTitle,{children:cr})]}),jsxRuntimeExports.jsx(StyledCloseButton,{onClick:Vr,children:jsxRuntimeExports.jsx("img",{src:icons.closeSmallIcon})})]})})}),StyledMaterialDesignContent=styled(MaterialDesignContent$1)(({theme:_e})=>({"&.notistack-MuiContent-success":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"4px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.green,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}},"&.notistack-MuiContent-error":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"4px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.Error,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}},"&.notistack-MuiContent-info":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"6px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.textGrey,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}},"&.notistack-MuiContent-warning":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"6px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.warning,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}}})),Snackbar=({maxSnack:_e,children:cr})=>{const gr=useMediaQuery(theme.breakpoints.down("xs"));return jsxRuntimeExports.jsx(SnackbarProvider,{dense:!0,maxSnack:gr?5:_e,anchorOrigin:gr?{vertical:"top",horizontal:"right"}:{vertical:"top",horizontal:"right"},Components:{success:StyledMaterialDesignContent,error:StyledMaterialDesignContent,info:StyledMaterialDesignContent,warning:StyledMaterialDesignContent,pending:LoadingSnackbar},children:cr})},store=_e=>_e[snackbarsSliceName],{snackbars}=keySelectors(store,["snackbars"]),snackbarsSelectors={snackbars},useStyles=makeStyles()(_e=>({button:{height:30,backgroundColor:"transparent",textTransform:"uppercase",borderRadius:6,border:"none",color:colors$2.oraidex.textGrey,fontSize:14,fontWeight:600,cursor:"pointer",transition:"0.2s all cubic-bezier(0.25, 0.46, 0.45, 0.94)",backfaceVisibility:"hidden",fontSmoothing:"subpixel-antialiased",padding:"0 4px","&:hover":{transform:"scale(1.15) translateY(0px)"},[_e.breakpoints.down("xs")]:{width:36,height:16,fontSize:9,lineHeight:"14px",marginTop:2,marginRight:8,paddingBottom:17,paddingRight:36}},closeButton:{backgroundColor:"transparent",border:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",height:30,"& img":{width:16,transition:".2s all ease-in",cursor:"pointer","&:hover":{transform:"scale(1.1)"}}},detailsWrapper:{display:"flex",alignItems:"center"},pendingContainer:{display:"flex",flexDirection:"column"},pendingMessage:{width:100}}));let displayed=[];const Notifier=()=>{const _e=useDispatch(),cr=useSelector(snackbarsSelectors.snackbars),{enqueueSnackbar:gr,closeSnackbar:Cr}=useSnackbar(),{classes:Vr}=useStyles(),tt=st=>{displayed=[...displayed,st]},nt=st=>{displayed=[...displayed.filter(dt=>st!==dt)]};return React$3.useEffect(()=>{cr.forEach(({key:st="",message:dt,open:kt,variant:qt,txid:ro,persist:ht=!0})=>{if(!kt){Cr(st);return}st&&displayed.includes(st)||(gr(dt,{key:st,action:()=>ro&&jsxRuntimeExports.jsxs("div",{className:Vr.detailsWrapper,children:[jsxRuntimeExports.jsx("button",{className:Vr.button,onClick:()=>{window.open(`https://scan.orai.io/txs/${ro}`,"_blank")},children:jsxRuntimeExports.jsx("span",{children:"Details"})}),jsxRuntimeExports.jsx("button",{className:Vr.closeButton,onClick:()=>Cr(st),children:jsxRuntimeExports.jsx("img",{src:icons.closeIcon})})]}),variant:qt,persist:ht,autoHideDuration:7e3,onExited:(po,no)=>{_e(actions$4.remove(no)),nt(no)},txid:ro}),tt(st))})},[cr,Cr,gr,_e,Vr]),null};function App(){return jsxRuntimeExports.jsx(Provider_default,{store:store$4,children:jsxRuntimeExports.jsx(ThemeProvider,{theme,children:jsxRuntimeExports.jsx(Snackbar,{maxSnack:99,children:jsxRuntimeExports.jsxs(SigningCosmWasmProvider,{children:[jsxRuntimeExports.jsx(Notifier,{}),jsxRuntimeExports.jsx(RouterProvider,{router})]})})})})}window.walletType="keplr",window.Keplr=window==null?void 0:window.keplr,!window.Keplr&&"parent"in window&&(window.keplr=window.Keplr=window.parent.keplr),client$1.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$3.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}))})()});export default $1(); + `,fill:Vr,opacity:nt,strokeWidth:dt,stroke:kt===void 0?"transparent":kt,style:{pointerEvents:"none"}})})};function p(){return p=Object.assign?Object.assign.bind():function(_e){for(var cr=1;cr>1;if(gr>0&&typeof cr[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=cr;const Cr=Math.max(2*gr-5,0);this._triangles=new Uint32Array(Cr*3),this._halfedges=new Int32Array(Cr*3),this._hashSize=Math.ceil(Math.sqrt(gr)),this._hullPrev=new Uint32Array(gr),this._hullNext=new Uint32Array(gr),this._hullTri=new Uint32Array(gr),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(gr),this._dists=new Float64Array(gr),this.update()}update(){const{coords:cr,_hullPrev:gr,_hullNext:Cr,_hullTri:Vr,_hullHash:tt}=this,nt=cr.length>>1;let st=1/0,dt=1/0,kt=-1/0,qt=-1/0;for(let lo=0;lokt&&(kt=so),wo>qt&&(qt=wo),this._ids[lo]=lo}const ro=(st+kt)/2,ht=(dt+qt)/2;let po=1/0,no,Nt,eo;for(let lo=0;lo0&&(Nt=lo,po=so)}let Ot=cr[2*Nt],uo=cr[2*Nt+1],go=1/0;for(let lo=0;loxt&&(lo[so++]=Mt,xt=this._dists[Mt])}this.hull=lo.subarray(0,so),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(orient(Wt,St,Ot,uo,bo,oo)){const lo=Nt,so=Ot,wo=uo;Nt=eo,Ot=bo,uo=oo,eo=lo,bo=so,oo=wo}const Ro=circumcenter(Wt,St,Ot,uo,bo,oo);this._cx=Ro.x,this._cy=Ro.y;for(let lo=0;lo0&&Math.abs(Mt-so)<=EPSILON&&Math.abs(ho-wo)<=EPSILON||(so=Mt,wo=ho,xt===no||xt===Nt||xt===eo))continue;let io=0;for(let Tt=0,vo=this._hashKey(Mt,ho);Tt0?3-gr:1+gr)/4}function dist(_e,cr,gr,Cr){const Vr=_e-gr,tt=cr-Cr;return Vr*Vr+tt*tt}function orientIfSure(_e,cr,gr,Cr,Vr,tt){const nt=(Cr-cr)*(Vr-_e),st=(gr-_e)*(tt-cr);return Math.abs(nt-st)>=33306690738754716e-32*Math.abs(nt+st)?nt-st:0}function orient(_e,cr,gr,Cr,Vr,tt){return(orientIfSure(Vr,tt,_e,cr,gr,Cr)||orientIfSure(_e,cr,gr,Cr,Vr,tt)||orientIfSure(gr,Cr,Vr,tt,_e,cr))<0}function inCircle(_e,cr,gr,Cr,Vr,tt,nt,st){const dt=_e-nt,kt=cr-st,qt=gr-nt,ro=Cr-st,ht=Vr-nt,po=tt-st,no=dt*dt+kt*kt,Nt=qt*qt+ro*ro,eo=ht*ht+po*po;return dt*(ro*eo-Nt*po)-kt*(qt*eo-Nt*ht)+no*(qt*po-ro*ht)<0}function circumradius(_e,cr,gr,Cr,Vr,tt){const nt=gr-_e,st=Cr-cr,dt=Vr-_e,kt=tt-cr,qt=nt*nt+st*st,ro=dt*dt+kt*kt,ht=.5/(nt*kt-st*dt),po=(kt*qt-st*ro)*ht,no=(nt*ro-dt*qt)*ht;return po*po+no*no}function circumcenter(_e,cr,gr,Cr,Vr,tt){const nt=gr-_e,st=Cr-cr,dt=Vr-_e,kt=tt-cr,qt=nt*nt+st*st,ro=dt*dt+kt*kt,ht=.5/(nt*kt-st*dt),po=_e+(kt*qt-st*ro)*ht,no=cr+(nt*ro-dt*qt)*ht;return{x:po,y:no}}function quicksort(_e,cr,gr,Cr){if(Cr-gr<=20)for(let Vr=gr+1;Vr<=Cr;Vr++){const tt=_e[Vr],nt=cr[tt];let st=Vr-1;for(;st>=gr&&cr[_e[st]]>nt;)_e[st+1]=_e[st--];_e[st+1]=tt}else{const Vr=gr+Cr>>1;let tt=gr+1,nt=Cr;swap$1(_e,Vr,tt),cr[_e[gr]]>cr[_e[Cr]]&&swap$1(_e,gr,Cr),cr[_e[tt]]>cr[_e[Cr]]&&swap$1(_e,tt,Cr),cr[_e[gr]]>cr[_e[tt]]&&swap$1(_e,gr,tt);const st=_e[tt],dt=cr[st];for(;;){do tt++;while(cr[_e[tt]]dt);if(nt=nt-gr?(quicksort(_e,cr,tt,Cr),quicksort(_e,cr,gr,nt-1)):(quicksort(_e,cr,gr,nt-1),quicksort(_e,cr,tt,Cr))}}function swap$1(_e,cr,gr){const Cr=_e[cr];_e[cr]=_e[gr],_e[gr]=Cr}function defaultGetX(_e){return _e[0]}function defaultGetY(_e){return _e[1]}const epsilon=1e-6;class Path{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(cr,gr){this._+=`M${this._x0=this._x1=+cr},${this._y0=this._y1=+gr}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(cr,gr){this._+=`L${this._x1=+cr},${this._y1=+gr}`}arc(cr,gr,Cr){cr=+cr,gr=+gr,Cr=+Cr;const Vr=cr+Cr,tt=gr;if(Cr<0)throw new Error("negative radius");this._x1===null?this._+=`M${Vr},${tt}`:(Math.abs(this._x1-Vr)>epsilon||Math.abs(this._y1-tt)>epsilon)&&(this._+="L"+Vr+","+tt),Cr&&(this._+=`A${Cr},${Cr},0,1,1,${cr-Cr},${gr}A${Cr},${Cr},0,1,1,${this._x1=Vr},${this._y1=tt}`)}rect(cr,gr,Cr,Vr){this._+=`M${this._x0=this._x1=+cr},${this._y0=this._y1=+gr}h${+Cr}v${+Vr}h${-Cr}Z`}value(){return this._||null}}class Polygon{constructor(){this._=[]}moveTo(cr,gr){this._.push([cr,gr])}closePath(){this._.push(this._[0].slice())}lineTo(cr,gr){this._.push([cr,gr])}value(){return this._.length?this._:null}}class Voronoi{constructor(cr,[gr,Cr,Vr,tt]=[0,0,960,500]){if(!((Vr=+Vr)>=(gr=+gr))||!((tt=+tt)>=(Cr=+Cr)))throw new Error("invalid bounds");this.delaunay=cr,this._circumcenters=new Float64Array(cr.points.length*2),this.vectors=new Float64Array(cr.points.length*2),this.xmax=Vr,this.xmin=gr,this.ymax=tt,this.ymin=Cr,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:cr,hull:gr,triangles:Cr},vectors:Vr}=this,tt=this.circumcenters=this._circumcenters.subarray(0,Cr.length/3*2);for(let po=0,no=0,Nt=Cr.length,eo,Wt;po1;)tt-=2;for(let nt=2;nt4)for(let nt=0;nt0){if(gr>=this.ymax)return null;(nt=(this.ymax-gr)/Vr)0){if(cr>=this.xmax)return null;(nt=(this.xmax-cr)/Cr)this.xmax?2:0)|(grthis.ymax?8:0)}}const tau=2*Math.PI,pow=Math.pow;function pointX(_e){return _e[0]}function pointY(_e){return _e[1]}function collinear(_e){const{triangles:cr,coords:gr}=_e;for(let Cr=0;Cr1e-10)return!1}return!0}function jitter(_e,cr,gr){return[_e+Math.sin(_e+cr)*gr,cr+Math.cos(_e-cr)*gr]}class Delaunay{static from(cr,gr=pointX,Cr=pointY,Vr){return new Delaunay("length"in cr?flatArray(cr,gr,Cr,Vr):Float64Array.from(flatIterable(cr,gr,Cr,Vr)))}constructor(cr){this._delaunator=new Delaunator(cr),this.inedges=new Int32Array(cr.length/2),this._hullIndex=new Int32Array(cr.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const cr=this._delaunator,gr=this.points;if(cr.hull&&cr.hull.length>2&&collinear(cr)){this.collinear=Int32Array.from({length:gr.length/2},(ht,po)=>po).sort((ht,po)=>gr[2*ht]-gr[2*po]||gr[2*ht+1]-gr[2*po+1]);const dt=this.collinear[0],kt=this.collinear[this.collinear.length-1],qt=[gr[2*dt],gr[2*dt+1],gr[2*kt],gr[2*kt+1]],ro=1e-8*Math.hypot(qt[3]-qt[1],qt[2]-qt[0]);for(let ht=0,po=gr.length/2;ht0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=Vr[0],this.triangles[1]=Vr[1],this.triangles[2]=Vr[1],nt[Vr[0]]=1,Vr.length===2&&(nt[Vr[1]]=0))}voronoi(cr){return new Voronoi(this,cr)}*neighbors(cr){const{inedges:gr,hull:Cr,_hullIndex:Vr,halfedges:tt,triangles:nt,collinear:st}=this;if(st){const ro=st.indexOf(cr);ro>0&&(yield st[ro-1]),ro=0&&tt!==Cr&&tt!==Vr;)Cr=tt;return tt}_step(cr,gr,Cr){const{inedges:Vr,hull:tt,_hullIndex:nt,halfedges:st,triangles:dt,points:kt}=this;if(Vr[cr]===-1||!kt.length)return(cr+1)%(kt.length>>1);let qt=cr,ro=pow(gr-kt[cr*2],2)+pow(Cr-kt[cr*2+1],2);const ht=Vr[cr];let po=ht;do{let no=dt[po];const Nt=pow(gr-kt[no*2],2)+pow(Cr-kt[no*2+1],2);if(Nt-1?Yn.filter(function(ba){return ba!==Wo}):[].concat(Yn,[Wo])})},[]),xo=function(Wo){var Yn=Wo.series,ba=Wo.getPointColor,_a=Wo.getPointBorderColor,$s=Wo.formatX,vs=Wo.formatY;return reactExports.useMemo(function(){return Yn.reduce(function(ss,Ts){return[].concat(ss,Ts.data.filter(function(qo){return qo.position.x!==null&&qo.position.y!==null}).map(function(qo,Js){var Vo={id:Ts.id+"."+Js,index:ss.length+Js,serieId:Ts.id,serieColor:Ts.color,x:qo.position.x,y:qo.position.y};return Vo.color=ba(Ts),Vo.borderColor=_a(Vo),Vo.data=re({},qo.data,{xFormatted:$s(qo.data.x),yFormatted:vs(qo.data.y)}),Vo}))},[])},[Yn,ba,_a,$s,vs])}({series:vo,getPointColor:so,getPointBorderColor:wo,formatX:oo,formatY:Ro}),Po=ye({componentId:bo,enableSlices:go,points:xo,width:dt,height:kt});return{legendData:Tt,toggleSerie:Co,lineGenerator:pe({curve:po}),areaGenerator:ve({curve:po,yScale:mo,areaBaselineValue:Nt}),getColor:pt,series:vo,xScale:co,yScale:mo,slices:Po,points:xo}},ge=function(_e){var cr=_e.areaBlendMode,gr=_e.areaOpacity,Cr=_e.color,Vr=_e.fill,tt=_e.path,nt=Zr(),st=nt.animate,dt=nt.config,kt=$r(tt),qt=useSpring({color:Cr,config:dt,immediate:!st});return jsxRuntimeExports.jsx(animated.path,{d:kt,fill:Vr||qt.color,fillOpacity:gr,strokeWidth:0,style:{mixBlendMode:cr}})};ge.propTypes={areaBlendMode:zt.isRequired,areaOpacity:N$2.number.isRequired,color:N$2.string,fill:N$2.string,path:N$2.string.isRequired};var xe=function(_e){var cr=_e.areaGenerator,gr=_e.areaOpacity,Cr=_e.areaBlendMode,Vr=_e.lines.slice(0).reverse();return jsxRuntimeExports.jsx("g",{children:Vr.map(function(tt){return jsxRuntimeExports.jsx(ge,re({path:cr(tt.data.map(function(nt){return nt.position}))},re({areaOpacity:gr,areaBlendMode:Cr},tt)),tt.id)})})};xe.propTypes={areaGenerator:N$2.func.isRequired,areaOpacity:N$2.number.isRequired,areaBlendMode:zt.isRequired,lines:N$2.arrayOf(N$2.object).isRequired};var Re=reactExports.memo(xe),Te=function(_e){var cr=_e.lineGenerator,gr=_e.points,Cr=_e.color,Vr=_e.thickness,tt=reactExports.useMemo(function(){return cr(gr)},[cr,gr]),nt=$r(tt);return jsxRuntimeExports.jsx(animated.path,{d:nt,fill:"none",strokeWidth:Vr,stroke:Cr})};Te.propTypes={points:N$2.arrayOf(N$2.shape({x:N$2.oneOfType([N$2.string,N$2.number]),y:N$2.oneOfType([N$2.string,N$2.number])})),lineGenerator:N$2.func.isRequired,color:N$2.string.isRequired,thickness:N$2.number.isRequired};var qe=reactExports.memo(Te),Me=function(_e){var cr=_e.lines,gr=_e.lineGenerator,Cr=_e.lineWidth;return cr.slice(0).reverse().map(function(Vr){var tt=Vr.id,nt=Vr.data,st=Vr.color;return jsxRuntimeExports.jsx(qe,{id:tt,points:nt.map(function(dt){return dt.position}),lineGenerator:gr,color:st,thickness:Cr},tt)})};Me.propTypes={lines:N$2.arrayOf(N$2.shape({id:N$2.oneOfType([N$2.string,N$2.number]).isRequired,color:N$2.string.isRequired,data:N$2.arrayOf(N$2.shape({data:N$2.shape({x:N$2.oneOfType([N$2.string,N$2.number,N$2.instanceOf(Date)]),y:N$2.oneOfType([N$2.string,N$2.number,N$2.instanceOf(Date)])}).isRequired,position:N$2.shape({x:N$2.number,y:N$2.number}).isRequired})).isRequired})).isRequired,lineWidth:N$2.number.isRequired,lineGenerator:N$2.func.isRequired};var Oe=reactExports.memo(Me),Se=function(_e){var cr=_e.slice,gr=_e.slices,Cr=_e.axis,Vr=_e.debug,tt=_e.tooltip,nt=_e.isCurrent,st=_e.setCurrent,dt=_e.onMouseEnter,kt=_e.onMouseMove,qt=_e.onMouseLeave,ro=_e.onClick,ht=_e.onTouchStart,po=_e.onTouchMove,no=_e.onTouchEnd,Nt=k$3(),eo=Nt.showTooltipFromEvent,Wt=Nt.hideTooltip,St=reactExports.useCallback(function(pt){eo(reactExports.createElement(tt,{slice:cr,axis:Cr}),pt,"right"),st(cr),dt&&dt(cr,pt)},[eo,tt,cr,Cr,st,dt]),Ot=reactExports.useCallback(function(pt){eo(reactExports.createElement(tt,{slice:cr,axis:Cr}),pt,"right"),kt&&kt(cr,pt)},[eo,tt,cr,Cr,kt]),uo=reactExports.useCallback(function(pt){Wt(),st(null),qt&&qt(cr,pt)},[Wt,st,qt,cr]),go=reactExports.useCallback(function(pt){ro&&ro(cr,pt)},[cr,ro]),bo=reactExports.useCallback(function(pt){eo(reactExports.createElement(tt,{slice:cr,axis:Cr}),pt,"right"),st(cr),ht&&ht(cr,pt)},[Cr,ht,st,eo,cr,tt]),oo=reactExports.useCallback(function(pt){var lo=pt.touches[0],so=document.elementFromPoint(lo.clientX,lo.clientY),wo=so==null?void 0:so.getAttribute("data-ref");if(wo){var xt=gr.find(function(Mt){return Mt.id===wo});xt&&(eo(reactExports.createElement(tt,{slice:xt,axis:Cr}),pt,"right"),st(xt))}po&&po(cr,pt)},[Cr,po,st,eo,cr,gr,tt]),Ro=reactExports.useCallback(function(pt){Wt(),st(null),no&&no(cr,pt)},[Wt,st,no,cr]);return jsxRuntimeExports.jsx("rect",{x:cr.x0,y:cr.y0,width:cr.width,height:cr.height,stroke:"red",strokeWidth:Vr?1:0,strokeOpacity:.75,fill:"red",fillOpacity:nt&&Vr?.35:0,onMouseEnter:St,onMouseMove:Ot,onMouseLeave:uo,onClick:go,onTouchStart:bo,onTouchMove:oo,onTouchEnd:Ro,"data-ref":cr.id})};Se.propTypes={slice:N$2.object.isRequired,slices:N$2.arrayOf(N$2.object).isRequired,axis:N$2.oneOf(["x","y"]).isRequired,debug:N$2.bool.isRequired,height:N$2.number.isRequired,tooltip:N$2.oneOfType([N$2.func,N$2.object]),isCurrent:N$2.bool.isRequired,setCurrent:N$2.func.isRequired,onMouseEnter:N$2.func,onMouseMove:N$2.func,onMouseLeave:N$2.func,onClick:N$2.func};var Ce=reactExports.memo(Se),we=function(_e){var cr=_e.slices,gr=_e.axis,Cr=_e.debug,Vr=_e.height,tt=_e.tooltip,nt=_e.current,st=_e.setCurrent,dt=_e.onMouseEnter,kt=_e.onMouseMove,qt=_e.onMouseLeave,ro=_e.onClick,ht=_e.onTouchStart,po=_e.onTouchMove,no=_e.onTouchEnd;return cr.map(function(Nt){return jsxRuntimeExports.jsx(Ce,{slice:Nt,slices:cr,axis:gr,debug:Cr,height:Vr,tooltip:tt,setCurrent:st,isCurrent:nt!==null&&nt.id===Nt.id,onMouseEnter:dt,onMouseMove:kt,onMouseLeave:qt,onClick:ro,onTouchStart:ht,onTouchMove:po,onTouchEnd:no},Nt.id)})};we.propTypes={slices:N$2.arrayOf(N$2.shape({id:N$2.oneOfType([N$2.number,N$2.string,N$2.instanceOf(Date)]).isRequired,x:N$2.number.isRequired,y:N$2.number.isRequired,points:N$2.arrayOf(N$2.object).isRequired})).isRequired,axis:N$2.oneOf(["x","y"]).isRequired,debug:N$2.bool.isRequired,height:N$2.number.isRequired,tooltip:N$2.oneOfType([N$2.func,N$2.object]).isRequired,current:N$2.object,setCurrent:N$2.func.isRequired,onMouseEnter:N$2.func,onMouseMove:N$2.func,onMouseLeave:N$2.func,onClick:N$2.func,onTouchStart:N$2.func,onTouchMove:N$2.func,onTouchEnd:N$2.func};var ke=reactExports.memo(we),Be=function(_e){var cr=_e.points,gr=_e.symbol,Cr=_e.size,Vr=_e.borderWidth,tt=_e.enableLabel,nt=_e.label,st=_e.labelYOffset,dt=Et(),kt=Li(nt),qt=cr.slice(0).reverse().map(function(ro){return{id:ro.id,x:ro.x,y:ro.y,datum:ro.data,fill:ro.color,stroke:ro.borderColor,label:tt?kt(ro.data):null}});return jsxRuntimeExports.jsx("g",{children:qt.map(function(ro){return jsxRuntimeExports.jsx(Ti,{x:ro.x,y:ro.y,datum:ro.datum,symbol:gr,size:Cr,color:ro.fill,borderWidth:Vr,borderColor:ro.stroke,label:ro.label,labelYOffset:st,theme:dt},ro.id)})})};Be.propTypes={points:N$2.arrayOf(N$2.object),symbol:N$2.func,size:N$2.number.isRequired,color:N$2.func.isRequired,borderWidth:N$2.number.isRequired,borderColor:N$2.func.isRequired,enableLabel:N$2.bool.isRequired,label:N$2.oneOfType([N$2.string,N$2.func]).isRequired,labelYOffset:N$2.number};var Ee=reactExports.memo(Be),Le=function(_e){var cr=_e.points,gr=_e.width,Cr=_e.height,Vr=_e.margin,tt=_e.setCurrent,nt=_e.onMouseEnter,st=_e.onMouseMove,dt=_e.onMouseLeave,kt=_e.onClick,qt=_e.onTouchStart,ro=_e.onTouchMove,ht=_e.onTouchEnd,po=_e.tooltip,no=_e.debug,Nt=_e.enableTouchCrosshair,eo=k$3(),Wt=eo.showTooltipAt,St=eo.hideTooltip,Ot=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),nt&&nt(lo,so)},[tt,Wt,po,nt,Vr]),uo=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),st&&st(lo,so)},[Wt,po,Vr.left,Vr.top,tt,st]),go=reactExports.useCallback(function(lo,so){St(),tt(null),dt&&dt(lo,so)},[St,tt,dt]),bo=reactExports.useCallback(function(lo,so){kt&&kt(lo,so)},[kt]),oo=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),qt&&qt(lo,so)},[Vr.left,Vr.top,qt,tt,Wt,po]),Ro=reactExports.useCallback(function(lo,so){Wt(reactExports.createElement(po,{point:lo}),[lo.x+Vr.left,lo.y+Vr.top],"top"),tt(lo),ro&&ro(lo,so)},[Vr.left,Vr.top,ro,tt,Wt,po]),pt=reactExports.useCallback(function(lo,so){St(),tt(null),ht&&ht(lo,so)},[ht,St,tt]);return jsxRuntimeExports.jsx(S,{nodes:cr,width:gr,height:Cr,onMouseEnter:Ot,onMouseMove:uo,onMouseLeave:go,onClick:bo,onTouchStart:oo,onTouchMove:Ro,onTouchEnd:pt,enableTouchCrosshair:Nt,debug:no})};Le.propTypes={points:N$2.arrayOf(N$2.object).isRequired,width:N$2.number.isRequired,height:N$2.number.isRequired,margin:N$2.object.isRequired,setCurrent:N$2.func.isRequired,onMouseEnter:N$2.func,onMouseMove:N$2.func,onMouseLeave:N$2.func,onClick:N$2.func,onTouchStart:N$2.func,onTouchMove:N$2.func,onTouchEnd:N$2.func,tooltip:N$2.oneOfType([N$2.func,N$2.object]).isRequired,debug:N$2.bool.isRequired};var We=reactExports.memo(Le),Ge=function(_e){var cr=_e.data,gr=_e.xScale,Cr=gr===void 0?{type:"point"}:gr,Vr=_e.xFormat,tt=_e.yScale,nt=tt===void 0?{type:"linear",min:0,max:"auto"}:tt,st=_e.yFormat,dt=_e.layers,kt=dt===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:dt,qt=_e.curve,ro=qt===void 0?"linear":qt,ht=_e.areaBaselineValue,po=ht===void 0?0:ht,no=_e.colors,Nt=no===void 0?{scheme:"nivo"}:no,eo=_e.margin,Wt=_e.width,St=_e.height,Ot=_e.axisTop,uo=_e.axisRight,go=_e.axisBottom,bo=go===void 0?{}:go,oo=_e.axisLeft,Ro=oo===void 0?{}:oo,pt=_e.enableGridX,lo=pt===void 0||pt,so=_e.enableGridY,wo=so===void 0||so,xt=_e.gridXValues,Mt=_e.gridYValues,ho=_e.lineWidth,io=ho===void 0?2:ho,co=_e.enableArea,mo=co!==void 0&&co,Bo=_e.areaOpacity,So=Bo===void 0?.2:Bo,Tt=_e.areaBlendMode,vo=Tt===void 0?"normal":Tt,Co=_e.enablePoints,xo=Co===void 0||Co,Po=_e.pointSymbol,Wo=_e.pointSize,Yn=Wo===void 0?6:Wo,ba=_e.pointColor,_a=ba===void 0?{from:"color"}:ba,$s=_e.pointBorderWidth,vs=$s===void 0?0:$s,ss=_e.pointBorderColor,Ts=ss===void 0?{theme:"background"}:ss,qo=_e.enablePointLabel,Js=qo!==void 0&&qo,Vo=_e.pointLabel,zo=Vo===void 0?"yFormatted":Vo,$n=_e.pointLabelYOffset,Tn=_e.defs,ko=Tn===void 0?[]:Tn,es=_e.fill,fs=es===void 0?[]:es,Es=_e.markers,Us=_e.legends,ms=Us===void 0?[]:Us,bs=_e.isInteractive,ks=bs===void 0||bs,Ds=_e.useMesh,Fs=Ds!==void 0&&Ds,d0=_e.debugMesh,v0=d0!==void 0&&d0,b0=_e.onMouseEnter,R0=_e.onMouseMove,D0=_e.onMouseLeave,zs=_e.onClick,n0=_e.onTouchStart,fo=_e.onTouchMove,Qo=_e.onTouchEnd,Ko=_e.tooltip,ps=Ko===void 0?te:Ko,Kn=_e.enableSlices,gs=Kn!==void 0&&Kn,H0=_e.debugSlices,j0=H0!==void 0&&H0,hs=_e.sliceTooltip,Ss=hs===void 0?se:hs,Rs=_e.enableCrosshair,e0=Rs===void 0||Rs,g0=_e.crosshairType,E0=g0===void 0?"bottom-left":g0,Vs=_e.enableTouchCrosshair,Bs=Vs!==void 0&&Vs,Gs=_e.role,A0=Gs===void 0?"img":Gs,y0=Bt(Wt,St,eo),s0=y0.margin,P0=y0.innerWidth,M0=y0.innerHeight,O0=y0.outerWidth,Sn=y0.outerHeight,T0=me({data:cr,xScale:Cr,xFormat:Vr,yScale:nt,yFormat:st,width:P0,height:M0,colors:Nt,curve:ro,areaBaselineValue:po,pointColor:_a,pointBorderColor:Ts,enableSlices:gs}),An=T0.legendData,Pn=T0.toggleSerie,Ln=T0.lineGenerator,qn=T0.areaGenerator,na=T0.series,ls=T0.xScale,Ns=T0.yScale,Qs=T0.slices,p0=T0.points,l0=Et(),S0=We$1(_a,l0),yl=We$1(Ts,l0),Vt=reactExports.useState(null),br=Vt[0],lt=Vt[1],Sl=reactExports.useState(null),w0=Sl[0],Ql=Sl[1],Gl={grid:jsxRuntimeExports.jsx(z,{theme:l0,width:P0,height:M0,xScale:lo?ls:null,yScale:wo?Ns:null,xValues:xt,yValues:Mt},"grid"),markers:jsxRuntimeExports.jsx(Pi,{markers:Es,width:P0,height:M0,xScale:ls,yScale:Ns,theme:l0},"markers"),axes:jsxRuntimeExports.jsx(X$1,{xScale:ls,yScale:Ns,width:P0,height:M0,theme:l0,top:Ot,right:uo,bottom:bo,left:Ro},"axes"),areas:null,lines:jsxRuntimeExports.jsx(Oe,{lines:na,lineGenerator:Ln,lineWidth:io},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:ms.map(function(du,Lu){return jsxRuntimeExports.jsx(X,re({},du,{containerWidth:P0,containerHeight:M0,data:du.data||An,theme:l0,toggleSerie:du.toggleSerie?Pn:void 0}),"legend."+Lu)})},uu=Vi(ko,na,fs);return mo&&(Gl.areas=jsxRuntimeExports.jsx(Re,{areaGenerator:qn,areaOpacity:So,areaBlendMode:vo,lines:na},"areas")),ks&&gs!==!1&&(Gl.slices=jsxRuntimeExports.jsx(ke,{slices:Qs,axis:gs,debug:j0,height:M0,tooltip:Ss,current:w0,setCurrent:Ql,onMouseEnter:b0,onMouseMove:R0,onMouseLeave:D0,onClick:zs,onTouchStart:n0,onTouchMove:fo,onTouchEnd:Qo},"slices")),xo&&(Gl.points=jsxRuntimeExports.jsx(Ee,{points:p0,symbol:Po,size:Yn,color:S0,borderWidth:vs,borderColor:yl,enableLabel:Js,label:zo,labelYOffset:$n},"points")),ks&&e0&&(br!==null&&(Gl.crosshair=jsxRuntimeExports.jsx(P$1,{width:P0,height:M0,x:br.x,y:br.y,type:E0},"crosshair")),w0!==null&&(Gl.crosshair=jsxRuntimeExports.jsx(P$1,{width:P0,height:M0,x:w0.x,y:w0.y,type:gs},"crosshair"))),ks&&Fs&&gs===!1&&(Gl.mesh=jsxRuntimeExports.jsx(We,{points:p0,width:P0,height:M0,margin:s0,current:br,setCurrent:lt,onMouseEnter:b0,onMouseMove:R0,onMouseLeave:D0,onClick:zs,onTouchStart:n0,onTouchMove:fo,onTouchEnd:Qo,tooltip:ps,enableTouchCrosshair:Bs,debug:v0},"mesh")),jsxRuntimeExports.jsx(Oi,{defs:uu,width:O0,height:Sn,margin:s0,role:A0,children:kt.map(function(du,Lu){return typeof du=="function"?jsxRuntimeExports.jsx(reactExports.Fragment,{children:du(re({},_e,{innerWidth:P0,innerHeight:M0,series:na,slices:Qs,points:p0,xScale:ls,yScale:Ns,lineGenerator:Ln,areaGenerator:qn,currentPoint:br,setCurrentPoint:lt,currentSlice:w0,setCurrentSlice:Ql}))},Lu):Gl[du]})})};Ge.propTypes=ue;var Pe=Gi(Ge),je=function(_e){return jsxRuntimeExports.jsx(Jt,{children:function(cr){var gr=cr.width,Cr=cr.height;return jsxRuntimeExports.jsx(Pe,re({width:gr,height:Cr},_e))}})},Fe=function(_e){var cr=reactExports.useRef(null),gr=_e.width,Cr=_e.height,Vr=_e.margin,tt=_e.pixelRatio,nt=tt===void 0?typeof window<"u"&&window.devicePixelRatio||1:tt,st=_e.data,dt=_e.xScale,kt=dt===void 0?{type:"point"}:dt,qt=_e.xFormat,ro=_e.yScale,ht=ro===void 0?{type:"linear",min:0,max:"auto"}:ro,po=_e.yFormat,no=_e.curve,Nt=no===void 0?"linear":no,eo=_e.layers,Wt=eo===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:eo,St=_e.colors,Ot=St===void 0?{scheme:"nivo"}:St,uo=_e.lineWidth,go=uo===void 0?2:uo,bo=_e.enableArea,oo=bo!==void 0&&bo,Ro=_e.areaBaselineValue,pt=Ro===void 0?0:Ro,lo=_e.areaOpacity,so=lo===void 0?.2:lo,wo=_e.enablePoints,xt=wo===void 0||wo,Mt=_e.pointSize,ho=Mt===void 0?6:Mt,io=_e.pointColor,co=io===void 0?{from:"color"}:io,mo=_e.pointBorderWidth,Bo=mo===void 0?0:mo,So=_e.pointBorderColor,Tt=So===void 0?{theme:"background"}:So,vo=_e.enableGridX,Co=vo===void 0||vo,xo=_e.gridXValues,Po=_e.enableGridY,Wo=Po===void 0||Po,Yn=_e.gridYValues,ba=_e.axisTop,_a=_e.axisRight,$s=_e.axisBottom,vs=$s===void 0?{}:$s,ss=_e.axisLeft,Ts=ss===void 0?{}:ss,qo=_e.legends,Js=qo===void 0?[]:qo,Vo=_e.isInteractive,zo=Vo===void 0||Vo,$n=_e.debugMesh,Tn=$n!==void 0&&$n,ko=_e.onMouseLeave,es=_e.onClick,fs=_e.tooltip,Es=fs===void 0?te:fs,Us=_e.canvasRef,ms=Bt(gr,Cr,Vr),bs=ms.margin,ks=ms.innerWidth,Ds=ms.innerHeight,Fs=ms.outerWidth,d0=ms.outerHeight,v0=Et(),b0=reactExports.useState(null),R0=b0[0],D0=b0[1],zs=me({data:st,xScale:kt,xFormat:qt,yScale:ht,yFormat:po,width:ks,height:Ds,colors:Ot,curve:Nt,areaBaselineValue:pt,pointColor:co,pointBorderColor:Tt}),n0=zs.lineGenerator,fo=zs.areaGenerator,Qo=zs.series,Ko=zs.xScale,ps=zs.yScale,Kn=zs.points,gs=C({points:Kn,width:ks,height:Ds,debug:Tn}),H0=gs.delaunay,j0=gs.voronoi;reactExports.useEffect(function(){Us&&(Us.current=cr.current),cr.current.width=Fs*nt,cr.current.height=d0*nt;var Bs=cr.current.getContext("2d");Bs.scale(nt,nt),Bs.fillStyle=v0.background,Bs.fillRect(0,0,Fs,d0),Bs.translate(bs.left,bs.top),Wt.forEach(function(Gs){if(typeof Gs=="function"&&Gs({ctx:Bs,innerWidth:ks,innerHeight:Ds,series:Qo,points:Kn,xScale:Ko,yScale:ps,lineWidth:go,lineGenerator:n0,areaGenerator:fo,currentPoint:R0,setCurrentPoint:D0}),Gs==="grid"&&v0.grid.line.strokeWidth>0&&(Bs.lineWidth=v0.grid.line.strokeWidth,Bs.strokeStyle=v0.grid.line.stroke,Co&&D(Bs,{width:ks,height:Ds,scale:Ko,axis:"x",values:xo}),Wo&&D(Bs,{width:ks,height:Ds,scale:ps,axis:"y",values:Yn})),Gs==="axes"&&j(Bs,{xScale:Ko,yScale:ps,width:ks,height:Ds,top:ba,right:_a,bottom:vs,left:Ts,theme:v0}),Gs==="areas"&&oo===!0&&(Bs.save(),Bs.globalAlpha=so,fo.context(Bs),Qo.forEach(function(y0){Bs.fillStyle=y0.color,Bs.beginPath(),fo(y0.data.map(function(s0){return s0.position})),Bs.fill()}),Bs.restore()),Gs==="lines"&&(n0.context(Bs),Qo.forEach(function(y0){Bs.strokeStyle=y0.color,Bs.lineWidth=go,Bs.beginPath(),n0(y0.data.map(function(s0){return s0.position})),Bs.stroke()})),Gs==="points"&&xt===!0&&ho>0&&Kn.forEach(function(y0){Bs.fillStyle=y0.color,Bs.beginPath(),Bs.arc(y0.x,y0.y,ho/2,0,2*Math.PI),Bs.fill(),Bo>0&&(Bs.strokeStyle=y0.borderColor,Bs.lineWidth=Bo,Bs.stroke())}),Gs==="mesh"&&Tn===!0&&(T(Bs,j0),R0&&O(Bs,j0,R0.index)),Gs==="legends"){var A0=Qo.map(function(y0){return{id:y0.id,label:y0.id,color:y0.color}}).reverse();Js.forEach(function(y0){H(Bs,re({},y0,{data:y0.data||A0,containerWidth:ks,containerHeight:Ds,theme:v0}))})}})},[cr,Fs,d0,Wt,v0,n0,Qo,Ko,ps,Co,xo,Wo,Yn,ba,_a,vs,Ts,Js,Kn,xt,ho,R0]);var hs=reactExports.useCallback(function(Bs){var Gs=Xi(cr.current,Bs),A0=Gs[0],y0=Gs[1];if(!Ui(bs.left,bs.top,ks,Ds,A0,y0))return null;var s0=H0.find(A0-bs.left,y0-bs.top);return Kn[s0]},[cr,bs,ks,Ds,H0]),Ss=k$3(),Rs=Ss.showTooltipFromEvent,e0=Ss.hideTooltip,g0=reactExports.useCallback(function(Bs){var Gs=hs(Bs);D0(Gs),Gs?Rs(reactExports.createElement(Es,{point:Gs}),Bs):e0()},[hs,D0,Rs,e0,Es]),E0=reactExports.useCallback(function(Bs){e0(),D0(null),R0&&ko&&ko(R0,Bs)},[e0,D0,ko]),Vs=reactExports.useCallback(function(Bs){if(es){var Gs=hs(Bs);Gs&&es(Gs,Bs)}},[hs,es]);return jsxRuntimeExports.jsx("canvas",{ref:cr,width:Fs*nt,height:d0*nt,style:{width:Fs,height:d0,cursor:zo?"auto":"normal"},onMouseEnter:zo?g0:void 0,onMouseMove:zo?g0:void 0,onMouseLeave:zo?E0:void 0,onClick:zo?Vs:void 0})};Fe.propTypes=de;var Ve=Gi(Fe),Ye=reactExports.forwardRef(function(_e,cr){return jsxRuntimeExports.jsx(Ve,re({},_e,{canvasRef:cr}))});reactExports.forwardRef(function(_e,cr){return jsxRuntimeExports.jsx(Jt,{children:function(gr){var Cr=gr.width,Vr=gr.height;return jsxRuntimeExports.jsx(Ye,re({width:Cr,height:Vr},_e,{ref:cr}))}})});const ZoomInIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M5.33333%207.33333H7.33333M7.33333%207.33333H9.33333M7.33333%207.33333V5.33333M7.33333%207.33333V9.33333M11.3333%2011.3333L14%2014M2%207.33333C2%208.74782%202.5619%2010.1044%203.5621%2011.1046C4.56229%2012.1048%205.91885%2012.6667%207.33333%2012.6667C8.74782%2012.6667%2010.1044%2012.1048%2011.1046%2011.1046C12.1048%2010.1044%2012.6667%208.74782%2012.6667%207.33333C12.6667%205.91885%2012.1048%204.56229%2011.1046%203.5621C10.1044%202.5619%208.74782%202%207.33333%202C5.91885%202%204.56229%202.5619%203.5621%203.5621C2.5619%204.56229%202%205.91885%202%207.33333Z'%20stroke='%23EFEFEF'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",ZoomOutIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M11.3333%2011.3333L14%2014M5.33333%207.33333H9.33333M2%207.33333C2%208.74782%202.5619%2010.1044%203.5621%2011.1046C4.56229%2012.1048%205.91885%2012.6667%207.33333%2012.6667C8.74782%2012.6667%2010.1044%2012.1048%2011.1046%2011.1046C12.1048%2010.1044%2012.6667%208.74782%2012.6667%207.33333C12.6667%205.91885%2012.1048%204.56229%2011.1046%203.5621C10.1044%202.5619%208.74782%202%207.33333%202C5.91885%202%204.56229%202.5619%203.5621%203.5621C2.5619%204.56229%202%205.91885%202%207.33333Z'%20stroke='%23EFEFEF'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",useStyles$q=makeStyles()(()=>({handle:{cursor:"ew-resize"}})),MaxText=({x:_e,textColor:cr})=>jsxRuntimeExports.jsx("svg",{width:"20",height:"7",viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:_e,y:6,children:jsxRuntimeExports.jsx("path",{d:"M1.20516 0.699999H2.75516L3.75516 3.84C3.84182 4.11333 3.92182 4.38667 3.99516 4.66C4.07516 4.92667 4.14516 5.19 4.20516 5.45H4.24516C4.27182 5.33667 4.30182 5.21333 4.33516 5.08C4.37516 4.94 4.41516 4.8 4.45516 4.66C4.49516 4.51333 4.53182 4.37 4.56516 4.23C4.60516 4.09 4.64516 3.96 4.68516 3.84L5.65516 0.699999H7.20516L7.70516 7H6.53516C6.48182 6.31333 6.43182 5.63 6.38516 4.95C6.34516 4.26333 6.31849 3.57667 6.30516 2.89L6.27516 1.9H6.24516C6.14516 2.29333 6.03849 2.69667 5.92516 3.11C5.81182 3.52333 5.69849 3.9 5.58516 4.24L4.70516 7H3.71516L2.81516 4.24C2.66182 3.77333 2.53182 3.34667 2.42516 2.96C2.32516 2.56667 2.23849 2.21333 2.16516 1.9H2.14516C2.13182 2.42 2.10849 2.96333 2.07516 3.53C2.04849 4.09667 2.01849 4.62 1.98516 5.1L1.87516 7H0.725156L1.20516 0.699999ZM10.2369 4.54H11.9869L11.6569 3.61C11.5635 3.33 11.4735 3.06667 11.3869 2.82C11.3069 2.57333 11.2235 2.30333 11.1369 2.01H11.1169C11.0235 2.28333 10.9335 2.55 10.8469 2.81C10.7602 3.06333 10.6669 3.33 10.5669 3.61L10.2369 4.54ZM10.5369 0.699999H11.7569L14.1469 7H12.8569L12.2969 5.45H9.94688L9.38688 7H8.11688L10.5369 0.699999ZM15.5385 0.699999L16.9285 2.99L18.3285 0.699999H19.7185L17.6685 3.8L19.8185 7H18.3785L16.8785 4.62L15.4085 7H14.0285L16.0985 3.8L14.1185 0.699999H15.5385Z",fill:cr})}),MinText=({x:_e,textColor:cr})=>jsxRuntimeExports.jsx("svg",{width:"20",height:"7",viewBox:"0 0 20 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:_e,y:6,children:jsxRuntimeExports.jsx("path",{d:"M0.601641 0.699999H2.15164L3.15164 3.84C3.23831 4.11333 3.31831 4.38667 3.39164 4.66C3.47164 4.92667 3.54164 5.19 3.60164 5.45H3.64164C3.66831 5.33667 3.69831 5.21333 3.73164 5.08C3.77164 4.94 3.81164 4.8 3.85164 4.66C3.89164 4.51333 3.92831 4.37 3.96164 4.23C4.00164 4.09 4.04164 3.96 4.08164 3.84L5.05164 0.699999H6.60164L7.10164 7H5.93164C5.87831 6.31333 5.82831 5.63 5.78164 4.95C5.74164 4.26333 5.71497 3.57667 5.70164 2.89L5.67164 1.9H5.64164C5.54164 2.29333 5.43497 2.69667 5.32164 3.11C5.20831 3.52333 5.09497 3.9 4.98164 4.24L4.10164 7H3.11164L2.21164 4.24C2.05831 3.77333 1.92831 3.34667 1.82164 2.96C1.72164 2.56667 1.63497 2.21333 1.56164 1.9H1.54164C1.52831 2.42 1.50497 2.96333 1.47164 3.53C1.44497 4.09667 1.41497 4.62 1.38164 5.1L1.27164 7H0.121641L0.601641 0.699999ZM9.39336 0.699999V7H8.17336V0.699999H9.39336ZM10.5394 0.699999H11.6394L14.0394 4.24C14.1727 4.44 14.296 4.64 14.4094 4.84C14.5227 5.03333 14.6127 5.19333 14.6794 5.32H14.6994C14.6594 4.86 14.6394 4.4 14.6394 3.94C14.6394 3.47333 14.6394 3.01 14.6394 2.55V0.699999H15.7894V7H14.6894L12.3994 3.65C12.246 3.42333 12.0994 3.18667 11.9594 2.94C11.826 2.69333 11.7227 2.49333 11.6494 2.34H11.6294C11.6627 2.83333 11.6794 3.31333 11.6794 3.78C11.686 4.24 11.6894 4.71 11.6894 5.19V7H10.5394V0.699999Z",fill:cr})}),LeftHandle=({height:_e=0,fill:cr})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:`M36 ${_e}V0`,stroke:cr,strokeWidth:"2"}),jsxRuntimeExports.jsx("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H37V20H4C1.79086 20 0 18.2091 0 16V4Z",fill:cr}),jsxRuntimeExports.jsx("path",{d:"M5 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"}),jsxRuntimeExports.jsx("path",{d:"M8 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"})]}),RightHandle=({height:_e=0,fill:cr})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:`M1 ${_e}V0`,stroke:cr,strokeWidth:"2"}),jsxRuntimeExports.jsx("path",{d:"M37 4C37 1.79086 35.2091 0 33 0H0V20H33C35.2091 20 37 18.2091 37 16V4Z",fill:cr}),jsxRuntimeExports.jsx("path",{d:"M29 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"}),jsxRuntimeExports.jsx("path",{d:"M32 5V15",stroke:colors$2.oraidex.dark,strokeOpacity:"0.5"})]}),MaxHandle=({height:_e,className:cr,x:gr,fill:Cr,textColor:Vr,isReversed:tt=!1})=>jsxRuntimeExports.jsxs("svg",{className:cr,width:"37",height:_e,viewBox:`0 0 37 ${_e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",x:gr,children:[tt?jsxRuntimeExports.jsx(LeftHandle,{height:_e,fill:Cr}):jsxRuntimeExports.jsx(RightHandle,{height:_e,fill:Cr}),jsxRuntimeExports.jsx(MaxText,{textColor:Vr,x:tt?14:5})]}),MinHandle=({height:_e,className:cr,x:gr,fill:Cr,textColor:Vr,isReversed:tt=!1})=>jsxRuntimeExports.jsxs("svg",{className:cr,width:"37",height:_e,viewBox:`0 0 37 ${_e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",x:gr,children:[tt?jsxRuntimeExports.jsx(RightHandle,{height:_e,fill:Cr}):jsxRuntimeExports.jsx(LeftHandle,{height:_e,fill:Cr}),jsxRuntimeExports.jsx(MinText,{textColor:Vr,x:tt?5:14})]}),Handle=({plotWidth:_e,height:cr,position:gr,minPosition:Cr,maxPosition:Vr,onDrop:tt,isStart:nt=!1,onStart:st,disabled:dt=!1})=>{const{classes:kt}=useStyles$q(),[qt,ro]=reactExports.useState(!1),[ht,po]=reactExports.useState(gr),[no,Nt]=reactExports.useState(0),eo=reactExports.useRef(null);reactExports.useEffect(()=>{po(gr)},[gr,qt]);const Wt=oo=>{if(st(),ro(!0),eo.current){const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.clientX-Ro.e)/Ro.a;Nt(pt-ht)}}},St=oo=>{if(st(),ro(!0),eo.current){const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.targetTouches[0].clientX-Ro.e)/Ro.a;Nt(pt-ht)}}},Ot=()=>{qt&&(ro(!1),tt(ht))},uo=oo=>{if(qt&&eo.current){oo.preventDefault(),oo.stopPropagation();const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.clientX-Ro.e)/Ro.a-no;pt>=Cr&&pt<=Vr&&po(pt)}}},go=oo=>{if(qt&&eo.current){oo.preventDefault(),oo.stopPropagation();const Ro=eo.current.getScreenCTM();if(Ro){const pt=(oo.targetTouches[0].clientX-Ro.e)/Ro.a-no;pt>=Cr&&pt<=Vr&&po(pt)}}},bo=()=>nt?ht<37:_e-ht<37;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[nt?jsxRuntimeExports.jsx(MinHandle,{height:cr,x:bo()?ht:ht-37,fill:dt?colors$2.oraidex.light:colors$2.oraidex.pink,textColor:dt?colors$2.oraidex.lightHover:colors$2.oraidex.componentBcg,isReversed:bo()}):jsxRuntimeExports.jsx(MaxHandle,{height:cr,x:bo()?ht-37:ht,fill:dt?colors$2.oraidex.light:colors$2.oraidex.pink,textColor:dt?colors$2.oraidex.lightHover:colors$2.oraidex.componentBcg,isReversed:bo()}),jsxRuntimeExports.jsx("rect",{className:dt?void 0:kt.handle,ref:eo,x:qt?0:nt&&!bo()||!nt&&bo()?ht-40:ht,y:0,width:qt?_e:42,height:cr,onMouseDown:dt?void 0:Wt,onMouseUp:dt?void 0:Ot,onMouseMove:dt?void 0:uo,onMouseLeave:dt?void 0:Ot,onTouchStart:dt?void 0:St,onTouchEnd:dt?void 0:Ot,onTouchMove:dt?void 0:go,onTouchCancel:dt?void 0:Ot,fill:"transparent"})]})},InnerBrush=({innerHeight:_e,innerWidth:cr,leftPosition:gr,rightPosition:Cr,onLeftDrop:Vr,onRightDrop:tt,plotMin:nt,plotMax:st,disabled:dt})=>{const kt=cr/(st-nt),[qt,ro]=reactExports.useState(!1),ht=typeof gr<"u"&&gr>=nt&&gr<=st?jsxRuntimeExports.jsx(Handle,{plotWidth:cr,height:_e,position:(gr-nt)*kt,minPosition:Math.max(0,-nt*kt),maxPosition:typeof Cr<"u"?(Cr-nt)*kt-.001:cr,onDrop:no=>{Vr(no/cr),(gr-nt)*kt<37&&ro(!1)},isStart:!0,onStart:()=>{ro(!0)},disabled:dt},"start"):null,po=typeof Cr<"u"&&Cr>=nt&&Cr<=st?jsxRuntimeExports.jsx(Handle,{plotWidth:cr,height:_e,position:(Cr-nt)*kt,minPosition:typeof gr<"u"?(gr-nt)*kt+.001:Math.max(0,-nt*kt),maxPosition:cr,onDrop:no=>{tt(no/cr),cr-(Cr-nt)*kt<37&&ro(!0)},onStart:()=>{ro(!1)},disabled:dt},"end"):null;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[qt?po:ht,qt?ht:po]})},Brush=(_e,cr,gr,Cr,Vr,tt,nt=!1)=>st=>jsxRuntimeExports.jsx(InnerBrush,{leftPosition:_e,rightPosition:cr,onLeftDrop:gr,onRightDrop:Cr,plotMin:Vr,plotMax:tt,disabled:nt,...st}),useStyles$p=makeStyles()(_e=>({container:{marginTop:32,height:"100%",position:"relative","& g > text":{stroke:"none",fill:"#A9B6BF!important",fontFamily:"IBM Plex Sans!important",[_e.breakpoints.down("sm")]:{fontSize:"8px!important"}}},zoomIcon:{},zoomButton:{minWidth:28,width:28,height:28,borderRadius:8,backgroundColor:"transparent",border:"1px solid",borderColor:colors$2.oraidex.border,padding:"8px 0","&:not(:last-child)":{marginBottom:4},"&:hover":{backgroundColor:"transparent",opacity:.7},[_e.breakpoints.down("sm")]:{width:40,height:40}},zoomButtonsWrapper:{position:"absolute",top:0,right:8,maxWidth:21,height:64,zIndex:10,flexDirection:"row",[_e.breakpoints.down("sm")]:{flexDirection:"row",maxWidth:92,height:40}},loadingText:{fill:colors$2.oraidex.black,...typography.heading4},errorWrapper:{margin:"auto"},errorText:{color:colors$2.white.main,...typography.heading4},reloadButton:{width:130,height:40,borderRadius:14,background:colors$2.oraidex.greenLinearGradientOpacity,color:colors$2.oraidex.dark,...typography.body1,marginTop:24,textTransform:"none","&:hover":{background:colors$2.oraidex.greenLinearGradient}},cover:{width:"calc(100% + 10px)",height:"calc(100% + 10px)",background:"#01051499",position:"absolute",zIndex:11,borderRadius:10,backdropFilter:"blur(16px)"},loader:{height:100,width:100,margin:"auto"}})),PriceRangePlot=({data:_e,leftRange:cr,rightRange:gr,midPrice:Cr,onChangeRange:Vr,style:tt,className:nt,disabled:st=!1,plotMin:dt,plotMax:kt,zoomMinus:qt,zoomPlus:ro,loading:ht,isXtoY:po,xDecimal:no,yDecimal:Nt,tickSpacing:eo,isDiscrete:Wt=!1,coverOnLoading:St=!1,hasError:Ot=!1,reloadHandler:uo})=>{const{classes:go}=useStyles$p(),bo=useMediaQuery(theme.breakpoints.down("sm")),oo=reactExports.useRef(null),Ro=reactExports.useMemo(()=>Math.max(..._e.map(co=>co.y)),[_e]),pt=reactExports.useCallback(co=>{if(oo.current===null||co.length<=1e3)return co;const mo=oo.current.offsetWidth/1e5,Bo=oo.current.offsetHeight/1e3,So=[];return co.forEach((Tt,vo)=>{(vo===0||vo===co.length-1||So.length>0&&((Tt.x-So[So.length-1].x)/(kt-dt)>=mo||Math.abs(Tt.y-So[So.length-1].y)/Ro>=Bo))&&So.push(Tt)}),So},[oo.current,dt,kt,Ro]),lo=reactExports.useMemo(()=>{if(!_e.length||st||cr.xBo.x<=cr.x);const mo=_e.filter(Bo=>Bo.xMath.max(dt,_e[0].x)&&co.unshift({x:Math.max(dt,_e[0].x),y:mo.length>0?mo[mo.length-1].y:0}),pt(co)):[]},[st,cr,_e,dt,kt,pt]),so=reactExports.useMemo(()=>{if(!_e.length)return;if(st){const Bo=_e.filter(vo=>vo.xvo.x>Math.min(kt,_e[_e.length-1].x)),Tt=_e.slice(Bo.length,_e.length-So.length);return(!Tt.length||Tt[0].x>Math.max(dt,_e[0].x))&&Tt.unshift({x:Math.max(dt,_e[0].x),y:Bo.length>0?Bo[Bo.length-1].y:0}),Tt[Tt.length-1].xkt||gr.xBo.x<=cr.x).length;let mo=_e.filter(Bo=>Bo.x>=cr.x&&Bo.x<=gr.x);if(!mo.length)mo.push({x:Math.max(cr.x,dt),y:_e[co-1].y}),mo.push({x:Math.min(gr.x,kt),y:_e[co-1].y});else{mo[0].x>cr.x&&mo.unshift({x:cr.x,y:mo[0].y}),mo[mo.length-1].xvo.xvo.x>Math.min(kt,_e[_e.length-1].x)),Tt=mo.slice(Bo.length,mo.length-So.length);(!Tt.length||Tt[0].x>Math.max(dt,mo[0].x))&&Tt.unshift({x:Math.max(dt,mo[0].x),y:Bo.length>0?Bo[Bo.length-1].y:0}),Tt[Tt.length-1].x{if(!_e.length||st||gr.x>kt)return[];let co=_e.filter(Bo=>Bo.x>=gr.x);const mo=_e.filter(Bo=>Bo.x>Math.min(kt,_e[_e.length-1].x));return co.length?(co[0].x>gr.x&&co.unshift({x:gr.x,y:co[0].y}),co=co.slice(0,co.length-mo.length),co[co.length-1].x{if(typeof Cr>"u")return null;const Bo=co/(kt-dt);return jsxRuntimeExports.jsxs("svg",{x:(Cr.x-dt)*Bo-20,y:-20,width:40,height:mo+20,children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("filter",{id:"shadow-global-price",x:"-10",y:"-9",width:"20",height:mo,children:jsxRuntimeExports.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8"})})}),jsxRuntimeExports.jsx("rect",{x:14,y:20,width:"16",height:mo,filter:"url(#shadow-global-price)",opacity:"0.3"}),jsxRuntimeExports.jsx("rect",{x:19,y:20,width:"3",height:mo,fill:colors$2.oraidex.yellow})]})},Mt=({innerWidth:co,innerHeight:mo})=>{const Bo=mo;return jsxRuntimeExports.jsx("rect",{x:0,y:Bo,width:co,height:1,fill:colors$2.oraidex.light})},ho=({innerWidth:co,innerHeight:mo})=>!ht||St?null:jsxRuntimeExports.jsxs("svg",{width:co,height:mo+5,viewBox:`0 0 ${co} ${mo+5}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",x:0,y:-5,children:[jsxRuntimeExports.jsx("rect",{x:0,y:0,width:"100%",height:"100%",fill:`${colors$2.white.main}10`}),jsxRuntimeExports.jsx("text",{x:"50%",y:"50%",dominantBaseline:"middle",textAnchor:"middle",className:go.loadingText,children:"Loading liquidity data..."})]}),io=Brush(cr.x,gr.x,co=>{const mo=nearestTickIndex(dt+co*(kt-dt),eo,po,no,Nt);Vr==null||Vr(po?Math.min(gr.index-eo,mo):Math.max(gr.index+eo,mo),gr.index)},co=>{const mo=nearestTickIndex(dt+co*(kt-dt),eo,po,no,Nt);Vr==null||Vr(cr.index,po?Math.max(cr.index+eo,mo):Math.min(cr.index-eo,mo))},dt,kt,st);return jsxRuntimeExports.jsxs(Grid,{container:!0,className:classNames(go.container,nt),style:tt,ref:oo,children:[ht&&St?jsxRuntimeExports.jsx(Grid,{container:!0,className:go.cover,children:jsxRuntimeExports.jsx("img",{src:loader$1,className:go.loader})}):null,!ht&&Ot?jsxRuntimeExports.jsx(Grid,{container:!0,className:go.cover,children:jsxRuntimeExports.jsxs(Grid,{className:go.errorWrapper,container:!0,direction:"column",alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{className:go.errorText,children:"Unable to load liquidity chart"}),jsxRuntimeExports.jsx(Button,{className:go.reloadButton,onClick:uo,children:"Reload chart"})]})}):null,jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:classNames(go.zoomButtonsWrapper,"zoomBtns"),justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Button,{className:go.zoomButton,onClick:ro,disableRipple:!0,children:jsxRuntimeExports.jsx("img",{src:ZoomInIcon,className:go.zoomIcon})}),jsxRuntimeExports.jsx(Button,{className:go.zoomButton,onClick:qt,disableRipple:!0,children:jsxRuntimeExports.jsx("img",{src:ZoomOutIcon,className:go.zoomIcon})})]}),jsxRuntimeExports.jsx(je,{data:[{id:"less than range",data:lo.length?lo:[{x:dt,y:0}]},{id:"range",data:so},{id:"greater than range",data:wo.length?wo:[{x:kt,y:0}]}],curve:Wt?po?"stepAfter":"stepBefore":"basis",margin:{top:bo?55:25,bottom:15},colors:[colors$2.oraidex.pink,colors$2.oraidex.green,colors$2.oraidex.pink],axisTop:null,axisRight:null,axisLeft:null,axisBottom:{tickSize:0,tickPadding:0,tickRotation:0,tickValues:5},xScale:{type:"linear",min:dt,max:kt},yScale:{type:"linear",min:0,max:Ro},enableGridX:!1,enableGridY:!1,enablePoints:!1,enableArea:!0,legends:[],isInteractive:!1,animate:!1,role:"application",layers:[Mt,"grid","markers","areas","lines",ho,xt,io,"axes","legends"],defs:[$t("gradient",[{offset:0,color:"inherit"},{offset:50,color:"inherit"},{offset:100,color:"inherit",opacity:0}])],fill:[{match:"*",id:"gradient"}]})]})},activeLiquidity="data:image/svg+xml,%3csvg%20width='56'%20height='43'%20viewBox='0%200%2056%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28%201C13.4525%201%2012.8268%2042.5%200%2042.5H56C43.486%2042.5%2042.5475%201%2028%201Z'%20fill='url(%23paint0_linear_6454_13876)'/%3e%3cpath%20d='M0%2042.5C12.8268%2042.5%2013.4525%201%2028%201C42.5475%201%2043.486%2042.5%2056%2042.5'%20stroke='%232EE09A'%20stroke-width='0.5'/%3e%3cline%20x1='14'%20y1='0.5'%20x2='14'%20y2='41.5'%20stroke='white'%20stroke-linecap='round'%20stroke-dasharray='4%204'/%3e%3cline%20x1='42'%20y1='0.5'%20x2='42'%20y2='41.5'%20stroke='white'%20stroke-linecap='round'%20stroke-dasharray='4%204'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6454_13876'%20x1='28'%20y1='1'%20x2='28'%20y2='42.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232EE09A'%20stop-opacity='0.5'/%3e%3cstop%20offset='1'%20stop-color='%232EE09A'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",useThumbStyles=makeStyles()(()=>({outerCircle:{background:colors$2.oraidex.greenLinearGradient,width:28,height:28,borderRadius:"100%",padding:6,boxSizing:"border-box"},innerCircle:{background:"linear-gradient(180deg, #FFFFFF 0%, #A2A2A2 100%)",width:16,height:16,borderRadius:"100%"}})),useSliderStyles=makeStyles()((_e,{disabledRange:cr,valuesLength:gr})=>({root:{width:"100%",paddingBlock:13},thumb:{width:"auto",height:"auto",boxShadow:"none !important"},rail:{background:cr>0?`linear-gradient(90deg, ${colors$2.oraidex.lightGrey} 0%, ${colors$2.oraidex.lightGrey} ${cr}%, ${colors$2.oraidex.green} ${cr+1}%, ${colors$2.oraidex.green} 100%)`:colors$2.oraidex.green,height:6,opacity:1},track:{background:colors$2.oraidex.lightGrey,height:6},markLabel:{color:colors$2.oraidex.text,...typography.body1,marginTop:10,top:26,'&[data-index="0"]':{transform:"translateX(-30%)"},[`&[data-index="${gr-1}"]`]:{transform:"translateX(-90%)"}},mark:{display:"none",[`&[data-index="${gr-1}"], &[data-index="0"]`]:{display:"block",width:14,height:14,borderRadius:"100%",transform:"translate(-6px, -6px)"},'&[data-index="0"]':{background:cr>0?colors$2.oraidex.lightGrey:colors$2.oraidex.green},[`&[data-index="${gr-1}"]`]:{background:colors$2.oraidex.green}},valueLabel:{padding:"2px 15px",width:300,height:17,position:"absolute",margin:0,top:-8,borderRadius:7,background:colors$2.oraidex.light,"& span":{display:"flex",justifyContent:"center",alignItems:"center",color:colors$2.oraidex.text,...typography.caption1,minWidth:28},"&::before":{display:"none"}},valueLabelLabel:{width:300,background:colors$2.oraidex.pink},valueLabelCircle:{width:120,background:colors$2.oraidex.pink},valueLabelOpen:{width:200,background:colors$2.oraidex.pink}}));function ThumbComponent(_e){const{classes:cr}=useThumbStyles(),{children:gr,...Cr}=_e;return jsxRuntimeExports.jsxs(SliderThumb,{...Cr,children:[gr,jsxRuntimeExports.jsx(Grid,{className:cr.outerCircle,children:jsxRuntimeExports.jsx(Grid,{className:cr.innerCircle})})]})}const ConcentrationSlider=({values:_e,valueChangeHandler:cr,valueIndex:gr,dragHandler:Cr,minimumSliderIndex:Vr})=>{const tt=100*Vr/_e.length,{classes:nt}=useSliderStyles({valuesLength:_e.length,disabledRange:tt}),st=reactExports.useCallback((qt,ro)=>{cr(ro)},[cr]),dt=reactExports.useCallback((qt,ro)=>{Cr(ro)},[Cr]),kt=_e.map((qt,ro)=>({value:ro,label:ro===0||ro===_e.length-1?`${qt.toFixed(0)}x`:void 0}));return jsxRuntimeExports.jsx(Slider,{classes:nt,onChange:dt,onChangeCommitted:st,marks:kt,min:0,max:_e.length-1,value:gr,valueLabelDisplay:"on",track:!1,slots:{thumb:ThumbComponent},valueLabelFormat:qt=>`${_e[qt].toFixed(0)}x`})},useStyles$o=makeStyles()(_e=>({wrapper:{borderRadius:10,backgroundColor:colors$2.oraidex.component,padding:"16px 24px 8px 24px",flex:"1 1 0%"},headerContainer:{marginBottom:12},header:{...typography.heading4,color:colors$2.white.main},innerWrapper:{borderRadius:8,backgroundColor:colors$2.oraidex.component,width:"100%",position:"relative",gap:4},plot:{width:"100%",height:185},subheader:{...typography.heading4,marginBottom:14,color:colors$2.white.main},inputs:{marginBottom:8,flexDirection:"row",gap:16},input:{flex:"1 1 0%",gap:12,[_e.breakpoints.down("sm")]:{"&:first-of-type":{marginRight:0,marginBottom:8}}},button:{width:"100%",flex:"1 1 0%",...typography.body2,color:colors$2.white.main,textTransform:"none",height:36,paddingInline:8,backgroundColor:colors$2.oraidex.light,borderRadius:11,[_e.breakpoints.down("sm")]:{"&:first-of-type":{marginRight:0,marginBottom:0}}},blocker:{position:"absolute",background:"red",top:0,right:0,zIndex:11,width:"49%",height:"100%",backgroundColor:"rgba(11, 12, 13, 0.8)",borderRadius:11,[_e.breakpoints.down("sm")]:{top:562,right:0,zIndex:11,width:"100%",height:555,borderRadius:9},[_e.breakpoints.down("xs")]:{top:545}},blockedInfo:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",...typography.heading4,color:colors$2.oraidex.lightHover,zIndex:99},buttons:{width:"100%",flexDirection:"row",gap:16,alignItems:"center"},sliderWrapper:{paddingTop:24,paddingInline:8,height:77,position:"relative"},warningWrapper:{position:"absolute",top:60,left:30,[_e.breakpoints.down("xs")]:{top:61}},unsafeWarning:{...typography.body2,color:colors$2.oraidex.Error,[_e.breakpoints.down("xs")]:{...typography.caption4}},questionMark:{width:14,height:14,marginLeft:5},tooltip:{background:colors$2.oraidex.componentBcg,borderRadius:12,width:300,textAlign:"justify",padding:10},tooltipText:{...typography.caption4,fontSize:13,color:colors$2.white.main},loader:{height:150,width:150,margin:"auto"},infoRow:{marginBottom:16},activeLiquidity:{color:colors$2.oraidex.text,...typography.caption2,display:"flex",flexDirection:"row",alignItems:"center",cursor:"default"},activeLiquidityIcon:{marginLeft:5,height:14,width:14,border:"1px solid #FFFFFF",color:colors$2.oraidex.text,borderRadius:"50%",fontSize:8,lineHeight:"10px",fontWeight:400,textAlign:"center",boxSizing:"border-box",paddingTop:3,cursor:"default"},liquidityTooltip:{background:colors$2.oraidex.component,boxShadow:"0px 4px 18px rgba(0, 0, 0, 0.35)",borderRadius:20,padding:16,maxWidth:376,boxSizing:"border-box",[_e.breakpoints.down("xs")]:{maxWidth:360}},liquidityTitle:{color:colors$2.oraidex.text,...typography.heading4,marginBottom:12},liquidityDesc:{color:colors$2.oraidex.text,...typography.caption2},liquidityNote:{color:colors$2.oraidex.textGrey,...typography.caption2},liquidityImg:{width:80,minWidth:80,height:60,marginLeft:16},currentPrice:{display:"inline-block",color:colors$2.oraidex.yellow,...typography.caption2,textAlign:"right"}})),RangeSelector=({data:_e,midPrice:cr,tokenASymbol:gr,tokenBSymbol:Cr,onChangeRange:Vr,blocked:tt=!1,blockerInfo:nt,ticksLoading:st,isXtoY:dt,xDecimal:kt,yDecimal:qt,tickSpacing:ro,currentPairReversed:ht,initialIsDiscreteValue:po,onDiscreteChange:no,positionOpeningMethod:Nt,hasTicksError:eo,reloadHandler:Wt,concentrationArray:St,minimumSliderIndex:Ot,concentrationIndex:uo,setConcentrationIndex:go,getTicksInsideRange:bo})=>{const{classes:oo}=useStyles$o(),[Ro,pt]=reactExports.useState(getMinTick$1(ro)),[lo,so]=reactExports.useState(getMaxTick$1(ro)),[wo,xt]=reactExports.useState(""),[Mt,ho]=reactExports.useState(""),[io,co]=reactExports.useState(""),[mo,Bo]=reactExports.useState(""),[So,Tt]=reactExports.useState(0),[vo,Co]=reactExports.useState(1),[xo,Po]=reactExports.useState(po),Wo=reactExports.useRef(!1);reactExports.useEffect(()=>(Wo.current=!0,()=>{Wo.current=!1}),[]);const Yn=()=>{const zo=vo-So,$n=So-zo/4,Tn=vo+zo/4;Tt($n),Co(Tn)},ba=()=>{const zo=vo-So,$n=So+zo/6,Tn=vo-zo/6;calcTicksAmountInRange(Math.max($n,0),Tn,ro,dt,Number(kt),Number(qt))>=4&&(Tt($n),Co(Tn))},_a=zo=>{xt(zo),co(toMaxNumericPlaces(+zo,5))},$s=zo=>{ho(zo),Bo(toMaxNumericPlaces(+zo,5))},vs=zo=>{xt(zo),co(zo)},ss=zo=>{ho(zo),Bo(zo)},Ts=(zo,$n)=>{let Tn,ko;if(Nt==="range"){const{leftInRange:es,rightInRange:fs}=bo(zo,$n,dt);Tn=es,ko=fs}else Tn=zo,ko=$n;pt(Number(Tn)),so(Number(ko)),_a(calcPrice(Number(Tn),dt,kt,qt).toString()),$s(calcPrice(Number(ko),dt,kt,qt).toString()),Vr(zo,$n)},qo=()=>{if(Nt==="range"){const zo=Math.abs(cr.x-calcPrice(Math.max(getMinTick$1(ro),Number(cr.index)-ro*15),dt,kt,qt)),$n=Math.max(Number(getMinTick$1(Number(ro))),Number(cr.index)-Number(ro)*10),Tn=Math.min(Number(getMaxTick$1(Number(ro))),Number(cr.index)+Number(ro)*10);Ts(dt?$n:Tn,dt?Tn:$n),Tt(cr.x-zo),Co(cr.x+zo)}else{go(0);const{leftRange:zo,rightRange:$n}=calculateConcentrationRange(ro,St[0],2,cr.index,dt);Ts(zo,$n),Vo(zo,$n,!0)}},Js=()=>{if(Ts(lo,Ro),So>0){const zo=1/So;Tt(1/vo),Co(zo)}else{const zo=Math.abs(cr.x-calcPrice(Math.max(getMinTick$1(ro),cr.index-ro*15),dt,kt,qt));Tt(cr.x-zo),Co(cr.x+zo)}};reactExports.useEffect(()=>{ht!==null&&Wo.current&&Js()},[ht]),reactExports.useEffect(()=>{!st&&Wo.current&&qo()},[st,cr]);const Vo=(zo,$n,Tn=!1)=>{const ko=calcPrice(zo,dt,kt,qt),es=calcPrice($n,dt,kt,qt),fs=Math.max(getMinTick$1(ro),zo-ro*15),Es=Math.min(getMaxTick$1(ro),zo+ro*15),Us=Math.min(getMaxTick$1(ro),$n+ro*15),ms=Math.max(getMinTick$1(ro),$n-ro*15);if(kovo||Tn){const bs=Math.abs(ko-calcPrice(dt?fs:Es,dt,kt,qt)),ks=Math.abs(es-calcPrice(dt?Us:ms,dt,kt,qt));let Ds;kovo?Ds=Math.max(bs,ks):ko{if(Nt==="concentration"&&Wo.current&&!st){go(0);const{leftRange:zo,rightRange:$n}=calculateConcentrationRange(ro,St[0],2,cr.index,dt);Ts(zo,$n),Vo(zo,$n,!0)}else Ts(Ro,lo)},[Nt]),reactExports.useEffect(()=>{if(Nt==="concentration"&&!st&&Wo.current){const zo=uo>St.length-1?St.length-1:uo;go(zo);const{leftRange:$n,rightRange:Tn}=calculateConcentrationRange(ro,St[zo],2,cr.index,dt);Ts($n,Tn),Vo($n,Tn,!0)}},[cr.index,St]),jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.wrapper,direction:"column",children:[jsxRuntimeExports.jsxs(Grid,{className:oo.headerContainer,container:!0,justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Typography,{className:oo.header,children:"Price range"}),jsxRuntimeExports.jsx(PlotTypeSwitch,{onSwitch:zo=>{Po(zo),no(zo)},initialValue:xo?1:0})]}),jsxRuntimeExports.jsx(Grid,{className:oo.infoRow,container:!0,justifyContent:"flex-end",children:jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",alignItems:"flex-end",children:[jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{className:oo.liquidityTitle,children:"Active liquidity"}),jsxRuntimeExports.jsx(Typography,{className:oo.liquidityDesc,style:{marginBottom:12},children:"While selecting the price range, note where active liquidity is located. Your liquidity can be inactive and, as a consequence, not generate profits."}),jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"row",wrap:"nowrap",alignItems:"center",style:{marginBottom:12},children:[jsxRuntimeExports.jsx(Typography,{className:oo.liquidityDesc,children:"The active liquidity range is represented by white, dashed lines in the liquidity chart. Active liquidity is determined by the maximum price range resulting from the statistical volume of swaps for the last 7 days."}),jsxRuntimeExports.jsx("img",{className:oo.liquidityImg,src:activeLiquidity})]}),jsxRuntimeExports.jsx(Typography,{className:oo.liquidityNote,children:"Note: active liquidity borders are always aligned to the nearest initialized ticks."})]}),placement:"bottom",classes:{tooltip:oo.liquidityTooltip},children:jsxRuntimeExports.jsxs(Typography,{className:oo.activeLiquidity,children:["Active liquidity ",jsxRuntimeExports.jsx("span",{className:oo.activeLiquidityIcon,children:"i"})]})}),jsxRuntimeExports.jsx(Grid,{children:jsxRuntimeExports.jsx(Typography,{className:oo.currentPrice,children:"Current price"})})]})}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.innerWrapper,children:[jsxRuntimeExports.jsx(PriceRangePlot,{className:oo.plot,data:_e,onChangeRange:Ts,leftRange:{index:Ro,x:calcPrice(Ro,dt,kt,qt)},rightRange:{index:lo,x:calcPrice(lo,dt,kt,qt)},midPrice:cr,plotMin:So,plotMax:vo,zoomMinus:Yn,zoomPlus:ba,loading:st,isXtoY:dt,tickSpacing:ro,xDecimal:kt,yDecimal:qt,isDiscrete:xo,disabled:Nt==="concentration",hasError:eo,reloadHandler:Wt}),jsxRuntimeExports.jsx(Typography,{className:oo.subheader,children:"Set price range"}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.inputs,children:[jsxRuntimeExports.jsx(RangeInput,{disabled:Nt==="concentration",className:oo.input,label:"Min price",tokenFromSymbol:gr,tokenToSymbol:Cr,currentValue:io,setValue:vs,decreaseValue:()=>{const zo=dt?Math.max(Number(getMinTick$1(Number(ro))),Number(Ro-Number(ro))):Math.min(Number(getMaxTick$1(Number(ro))),Number(Ro+Number(ro)));Ts(zo,lo),Vo(zo,lo)},increaseValue:()=>{const zo=dt?Math.min(Number(lo-Number(ro)),Number(Ro+Number(ro))):Math.max(Number(lo+Number(ro)),Number(Ro-Number(ro)));Ts(zo,lo),Vo(zo,lo)},onBlur:()=>{const zo=dt?Math.min(lo-ro,nearestTickIndex(+wo,ro,dt,kt,qt)):Math.max(lo+ro,nearestTickIndex(+wo,ro,dt,kt,qt));Ts(zo,lo),Vo(zo,lo)},diffLabel:"Min - Current price",percentDiff:(+wo-cr.x)/cr.x*100}),jsxRuntimeExports.jsx(RangeInput,{disabled:Nt==="concentration",className:oo.input,label:"Max price",tokenFromSymbol:gr,tokenToSymbol:Cr,currentValue:mo,setValue:ss,decreaseValue:()=>{const zo=dt?Math.max(Number(lo-Number(ro)),Number(Ro+Number(ro))):Math.min(Number(lo+Number(ro)),Number(Ro-Number(ro)));Ts(Ro,zo),Vo(Ro,zo)},increaseValue:()=>{const zo=dt?Math.min(Number(getMaxTick$1(Number(ro))),Number(lo+Number(ro))):Math.max(Number(getMinTick$1(Number(ro))),Number(lo-Number(ro)));Ts(Ro,zo),Vo(Ro,zo)},onBlur:()=>{const zo=dt?Math.max(Number(Ro+Number(ro)),Number(nearestTickIndex(+Mt,Number(ro),dt,kt,qt))):Math.min(Number(Ro-Number(ro)),Number(nearestTickIndex(+Mt,Number(ro),dt,kt,qt)));Ts(Ro,zo),Vo(Ro,zo)},diffLabel:"Max - Current price",percentDiff:(+Mt-cr.x)/cr.x*100})]}),Nt==="concentration"?jsxRuntimeExports.jsx(Grid,{container:!0,className:oo.sliderWrapper,children:jsxRuntimeExports.jsx(ConcentrationSlider,{valueIndex:uo,values:St,valueChangeHandler:zo=>{go(zo);const{leftRange:$n,rightRange:Tn}=calculateConcentrationRange(ro,St[zo],2,cr.index,dt);Ts($n,Tn),Vo($n,Tn,!0)},dragHandler:zo=>{go(zo)},minimumSliderIndex:Ot})}):jsxRuntimeExports.jsxs(Grid,{container:!0,className:oo.buttons,children:[jsxRuntimeExports.jsx(Button,{className:oo.button,onClick:qo,children:"Reset range"}),jsxRuntimeExports.jsx(Button,{className:oo.button,onClick:()=>{const zo=dt?getMinTick$1(Number(ro)):getMaxTick$1(Number(ro)),$n=dt?getMaxTick$1(Number(ro)):getMinTick$1(Number(ro));Ts(zo,$n),Vo(zo,$n)},children:"Set full range"})]})]}),tt&&jsxRuntimeExports.jsx(Grid,{className:oo.blocker,children:nt==="Loading pool info..."?jsxRuntimeExports.jsx(Grid,{container:!0,style:{height:"100%"},children:jsxRuntimeExports.jsx("img",{src:loader$1,className:oo.loader})}):jsxRuntimeExports.jsx(Typography,{className:oo.blockedInfo,children:nt})})]})},useStyles$n=makeStyles()(_e=>({wrapper:{width:952,borderRadius:"12px",border:"1px solid #232521",backgroundColor:"#1B1D19",padding:"24px",[_e.breakpoints.down("sm")]:{padding:10}},head:{borderBottom:"1px solid #232521",marginBottom:30},back:{height:24,marginBottom:18,width:"fit-content",transition:"filter 300ms","&:hover":{filter:"brightness(2)"}},backIcon:{width:22,height:24,marginRight:12,cursor:"pointer"},backText:{color:colors$2.oraidex.lightHover,WebkitPaddingBefore:"2px",...typography.body2},title:{color:colors$2.white.main,...typography.heading4,marginBottom:18,[_e.breakpoints.down("xs")]:{fontSize:18}},row:{minWidth:464,minHeight:540,position:"relative",flexDirection:"row","& .noConnectedLayer":{height:"100%"},[_e.breakpoints.down("sm")]:{flexDirection:"column",minWidth:0,"& .noConnectedInfo":{justifyContent:"flex-start",paddingTop:60}}},deposit:{marginRight:24,[_e.breakpoints.down("sm")]:{marginBottom:24,marginRight:0}},settingsIconBtn:{width:20,height:20,padding:0,margin:0,marginLeft:10,minWidth:"auto",background:"none","&:hover":{backgroundColor:"none"}},settingsIcon:{width:20,height:20,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}},options:{width:"fit-content",marginBottom:18,height:28},switch:{transition:"opacity 500ms"}})),NewPosition=({initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr,tokens:Cr,data:Vr,midPrice:tt,setMidPrice:nt,addLiquidityHandler:st,progress:dt="progress",onChangePositionTokens:kt,isCurrentPoolExisting:qt,calcAmount:ro,feeTiers:ht,ticksLoading:po,showNoConnected:no,noConnectedBlockerProps:Nt,isXtoY:eo,xDecimal:Wt,yDecimal:St,tickSpacing:Ot,isWaitingForNewPool:uo,poolIndex:go,currentPairReversed:bo,bestTiers:oo,initialIsDiscreteValue:Ro,onDiscreteChange:pt,canCreateNewPool:lo,canCreateNewPosition:so,handleAddToken:wo,commonTokens:xt,initialOpeningPositionMethod:Mt,initialHideUnknownTokensValue:ho,onHideUnknownTokensChange:io,tokenAPriceData:co,tokenBPriceData:mo,priceALoading:Bo,priceBLoading:So,hasTicksError:Tt,reloadHandler:vo,currentFeeIndex:Co,onSlippageChange:xo,initialSlippage:Po,poolKey:Wo,currentPriceSqrt:Yn,onRefresh:ba})=>{var E0;const{classes:_a}=useStyles$n(),$s=useNavigate(),[vs,ss]=reactExports.useState(Mt),[Ts,qo]=reactExports.useState(getMinTick$1(Number(Ot))),[Js,Vo]=reactExports.useState(getMaxTick$1(Number(Ot))),[zo,$n]=reactExports.useState(null),[Tn,ko]=reactExports.useState(null),[es,fs]=reactExports.useState(""),[Es,Us]=reactExports.useState(""),[ms,bs]=React$3.useState(!1),[ks,Ds]=React$3.useState(Po),[Fs,d0]=React$3.useState(null),[v0,b0]=reactExports.useState(0),[R0,D0]=reactExports.useState(0),[zs,n0]=React$3.useState(REFRESHER_INTERVAL),fo=reactExports.useMemo(()=>getConcentrationArray(Number(Ot),2,Number(tt.index)).sort((Vs,Bs)=>Vs-Bs),[Ot]),Qo=()=>zo===null||Tn===null?"Select tokens to set price range.":zo===Tn?"Token A can't be the same as token B":uo?"Loading pool info...":"",Ko={data:Array(100).fill(1).map((Vs,Bs)=>({x:Bs,y:Bs,index:Bs})),midPrice:{x:50,index:50},tokenASymbol:"ABC",tokenBSymbol:"XYZ"},ps=(Vs,Bs,Gs,A0)=>{const[y0,s0]=A0?[Tn,zo]:[zo,Tn];if(y0===null||s0===null)return"0.0";const P0=ro(Vs,Bs,Gs,Cr[s0].assetAddress);return trimLeadingZeros(printBigint(P0,Cr[y0].decimals))},Kn=(Vs,Bs,Gs)=>{const A0=Gs?getMinTick$1(Ot):getMaxTick$1(Ot),y0=Gs?getMaxTick$1(Ot):getMinTick$1(Ot);let s0,P0;return Gs?(s0=Vsy0?y0:Bs):(s0=Vs>A0?A0:Vs,P0=Bs{let Gs,A0;if(vs==="range"){const{leftInRange:y0,rightInRange:s0}=Kn(Vs,Bs,eo);Gs=y0,A0=s0}else Gs=Vs,A0=Bs;if(Gs=Vs,A0=Bs,console.log({tickSpacing:Ot,left:Vs,right:Bs}),qo(Number(Vs)),Vo(Number(Bs)),zo!==null&&(eo?A0>tt.index:A0tt.index)){const y0=Es,s0=ps(convertBalanceToBigint(y0,Number(Cr[Tn].decimals)),Number(Gs),Number(A0),!1);zo!==null&&+y0!=0&&(Us(y0),fs(s0))}},H0=Vs=>{const Bs=Number(Vs);if(nt({index:Bs,x:calcPrice(Bs,eo,Wt,St)}),zo!==null&&(eo?Js>Bs:JsBs)){const Gs=Es,A0=ps(convertBalanceToBigint(Gs,Cr[Tn].decimals),Ts,Js,!1);zo!==null&&+Gs!=0&&(Us(Gs),fs(A0))}},j0=zo===null||Tn===null?void 0:((E0=oo.find(Vs=>{const Bs=Cr[zo].assetAddress,Gs=Cr[Tn].assetAddress;return Vs.tokenX===Bs&&Vs.tokenY===Gs||Vs.tokenX===Gs&&Vs.tokenY===Bs}))==null?void 0:E0.bestTierIndex)??void 0,hs=()=>{let Vs=0;for(let Bs=0;Bs{const Vs=setTimeout(()=>{zs>0&&Wo!==""?n0(zs-1):(ba(),n0(REFRESHER_INTERVAL))},1e3);return()=>clearTimeout(Vs)},[zs,Wo]),reactExports.useEffect(()=>{if(vs==="concentration"){const Vs=hs();D0(Vs)}},[go,vs,tt.index]),reactExports.useEffect(()=>{!po&&vs==="range"&&gs(Ts,Js)},[tt.index]);const Ss=Vs=>{d0(Vs.currentTarget),blurContent(),bs(!0)},Rs=()=>{unblurContent(),bs(!1)},e0=Vs=>{Ds(Vs),xo(Vs)},g0=(Vs,Bs,Gs)=>{const A0=ht[Gs].feeValue;if(Vs!=null&&Bs!=null){const y0=Cr[Vs].symbol,s0=Cr[Bs].symbol;$s(`/newPosition/${y0}/${s0}/${A0}`,{replace:!0})}else if(Vs!=null){const y0=Cr[Vs].symbol;$s(`/newPosition/${y0}/${A0}`,{replace:!0})}else if(Bs!=null){const y0=Cr[Bs].symbol;$s(`/newPosition/${y0}/${A0}`,{replace:!0})}else Gs!=null&&$s(`/newPosition/${A0}`,{replace:!0})};return jsxRuntimeExports.jsxs(Grid,{container:!0,className:_a.wrapper,direction:"column",children:[jsxRuntimeExports.jsxs(Grid,{className:_a.head,container:!0,direction:"row",justifyContent:"space-between",alignContent:"center",wrap:"nowrap",children:[jsxRuntimeExports.jsx(Grid,{className:_a.back,container:!0,item:!0,alignItems:"center",children:jsxRuntimeExports.jsx("img",{className:_a.backIcon,src:backIcon,onClick:()=>$s(-1)})}),jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"center",children:jsxRuntimeExports.jsx(Typography,{className:_a.title,children:"Add new liquidity position"})}),jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,alignItems:"center",className:_a.options,children:jsxRuntimeExports.jsx(Button,{onClick:Ss,className:_a.settingsIconBtn,disableRipple:!0,children:jsxRuntimeExports.jsx("img",{src:settingIcon,className:_a.settingsIcon})})})]}),jsxRuntimeExports.jsx(Slippage,{open:ms,setSlippage:e0,handleClose:Rs,anchorEl:Fs,defaultSlippage:"1",initialSlippage:Po,infoText:"Slippage tolerance is a pricing difference between the price at the confirmation time and the actual price of the transaction users are willing to accept when initializing position.",headerText:"Position Transaction Settings"}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:_a.row,alignItems:"stretch",children:[no&&jsxRuntimeExports.jsx(NoConnected,{...Nt}),jsxRuntimeExports.jsx(DepositSelector,{initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr,className:_a.deposit,tokens:Cr,setPositionTokens:(Vs,Bs,Gs)=>{$n(Vs),ko(Bs),kt(Vs,Bs,Gs),g0(Vs,Bs,Gs)},onAddLiquidity:()=>{if(zo!==null&&Tn!==null){const Vs=Cr[zo].decimals,Bs=Cr[Tn].decimals;st(Ts,Js,eo?convertBalanceToBigint(es,Vs):convertBalanceToBigint(Es,Bs),eo?convertBalanceToBigint(Es,Bs):convertBalanceToBigint(es,Vs),BigInt(+ks*Number(PERCENTAGE_DENOMINATOR))/100n)}},tokenAInputState:{value:es,setValue:Vs=>{zo!==null&&(fs(Vs),Us(ps(convertBalanceToBigint(Vs,Cr[zo].decimals),Number(Ts),Number(Js),!0)))},blocked:zo!==null&&Tn!==null&&!uo&&determinePositionTokenBlock(BigInt(Yn),Math.min(Number(Ts),Number(Js)),Math.max(Number(Ts),Number(Js)),eo)===PositionTokenBlock.A,blockerInfo:"Range only for single-asset deposit.",decimalsLimit:zo!==null?Number(Cr[zo].decimals):0},tokenBInputState:{value:Es,setValue:Vs=>{Tn!==null&&(Us(Vs),fs(ps(convertBalanceToBigint(Vs,Number(Cr[Tn].decimals)),Number(Ts),Number(Js),!1)))},blocked:zo!==null&&Tn!==null&&!uo&&determinePositionTokenBlock(BigInt(Yn),Math.min(Number(Ts),Number(Js)),Math.max(Number(Ts),Number(Js)),eo)===PositionTokenBlock.B,blockerInfo:"Range only for single-asset deposit.",decimalsLimit:Tn!==null?Number(Cr[Tn].decimals):0},feeTiers:ht.map(Vs=>Vs.feeValue),progress:dt,onReverseTokens:()=>{if(zo===null||Tn===null)return;const Vs=zo;$n(Tn),ko(Vs),kt(Tn,zo,Co),g0(Tn,zo,Co)},poolIndex:go,bestTierIndex:j0,canCreateNewPool:lo,canCreateNewPosition:so,handleAddToken:wo,commonTokens:xt,initialHideUnknownTokensValue:ho,onHideUnknownTokensChange:io,priceA:co==null?void 0:co.price,priceB:mo==null?void 0:mo.price,priceALoading:Bo,priceBLoading:So,feeTierIndex:Co,concentrationArray:fo,concentrationIndex:v0,minimumSliderIndex:R0,positionOpeningMethod:vs}),qt||zo===null||Tn===null||zo===Tn||uo?jsxRuntimeExports.jsx(RangeSelector,{poolIndex:go,onChangeRange:gs,blocked:zo===null||Tn===null||zo===Tn||Vr.length===0||uo,blockerInfo:Qo(),...zo===null||Tn===null||!qt||Vr.length===0||uo?Ko:{data:Vr,midPrice:tt,tokenASymbol:Cr[zo].symbol,tokenBSymbol:Cr[Tn].symbol},ticksLoading:po,isXtoY:eo,tickSpacing:Ot,xDecimal:Wt,yDecimal:St,currentPairReversed:bo,initialIsDiscreteValue:Ro,onDiscreteChange:pt,positionOpeningMethod:vs,hasTicksError:Tt,reloadHandler:vo,concentrationArray:fo,setConcentrationIndex:b0,concentrationIndex:v0,minimumSliderIndex:R0,getTicksInsideRange:Kn}):jsxRuntimeExports.jsx(PoolInit,{onChangeRange:gs,isXtoY:eo,tickSpacing:Number(Ot),xDecimal:Wt,yDecimal:St,tokenASymbol:zo!==null&&Cr[zo]?Cr[zo].symbol:"ABC",tokenBSymbol:Tn!==null&&Cr[Tn]?Cr[Tn].symbol:"XYZ",midPrice:BigInt(tt.index),onChangeMidPrice:H0,currentPairReversed:bo})]})]})},store$2=_e=>_e[connectionSliceName],{networkType,status,blockNumber,rpcAddress,dexAddress}=keySelectors(store$2,["networkType","status","blockNumber","rpcAddress","dexAddress"]),ALL_FEE_TIERS_DATA=[{fee:1e8,tick_spacing:1},{fee:5e8,tick_spacing:10},{fee:3e9,tick_spacing:100},{fee:1e10,tick_spacing:100}],NewPositionWrapper=({initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr})=>{const Cr=useDispatch(),Vr=useSelector(swapTokens),tt=useSelector(status$1),nt=useSelector(poolsArraySortedByFees),st=useSelector(poolKeys),dt=useSelector(pools),kt=useSelector(isLoadingTicksAndTickMaps),qt=useSelector(address),{success:ro,inProgress:ht}=useSelector(initPosition),{data:po,loading:no,hasError:Nt}=useSelector(plotTicks),eo=useSelector(isLoadingLatestPoolsForTransaction),Wt=useSelector(networkType),St=useSelector(canCreateNewPool()),Ot=useSelector(canCreateNewPosition()),[uo,go]=reactExports.useState(null),[bo,oo]=reactExports.useState(""),[Ro,pt]=reactExports.useState("none"),[lo,so]=reactExports.useState(null),[wo,xt]=reactExports.useState(null),[Mt,ho]=reactExports.useState(null),io=reactExports.useRef(!1);reactExports.useEffect(()=>{if(lo!==null&&wo!==null){const ks=mo?Vr[lo].assetAddress:Vr[wo].assetAddress,Ds=mo?Vr[wo].assetAddress:Vr[lo].assetAddress;Cr(actions$1.getTicksAndTickMaps({tokenFrom:ks,tokenTo:Ds,allPools:nt}))}},[lo,wo,nt]),reactExports.useEffect(()=>{Cr(actions$1.getPoolKeys())},[tt,qt]),reactExports.useEffect(()=>(io.current=!0,()=>{io.current=!1}),[]);const co=reactExports.useRef(0n);reactExports.useEffect(()=>{pt("none")},[uo]),reactExports.useEffect(()=>{let ks,Ds;return!ht&&Ro==="progress"&&(pt(ro?"approvedWithSuccess":"approvedWithFail"),ks=setTimeout(()=>{pt(ro?"success":"failed")},1500),Ds=setTimeout(()=>{pt("none")},3e3)),()=>{clearTimeout(ks),clearTimeout(Ds)}},[ro,ht]),reactExports.useEffect(()=>{ro&&bo!==""&&lo!==null&&wo!==null&&uo!==null&&!kt&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:nt[uo].pool_key.token_x===Vr[Mt===!0?wo:lo].assetAddress,disableLoading:!0}))},[ro,bo,lo,wo,uo,kt]);const mo=reactExports.useMemo(()=>lo!==null&&wo!==null?Vr[lo].assetAddress.toString()lo!==null&&wo!==null?Vr[lo].assetAddress.toString()lo!==null&&wo!==null?Vr[lo].assetAddress.toString()ALL_FEE_TIERS_DATA[Tt]?ALL_FEE_TIERS_DATA[Tt].fee:1n,[Tt]),xo=reactExports.useMemo(()=>ALL_FEE_TIERS_DATA[Tt]?ALL_FEE_TIERS_DATA[Tt].tick_spacing:1,[Tt]),[Po,Wo]=reactExports.useState({index:0,x:1}),Yn=reactExports.useMemo(()=>bo!==""?!1:eo,[eo,bo]);reactExports.useEffect(()=>{if(lo!==null&&wo!==null){const ks=Vr[lo].assetAddress.toString(),Ds=Vr[wo].assetAddress.toString(),Fs=poolKeyToString({token_x:mo?ks:Ds,token_y:mo?Ds:ks,fee_tier:ALL_FEE_TIERS_DATA[Tt]});st[Fs]?oo(Fs):oo("");const d0=nt.findIndex(v0=>v0.pool_key.fee_tier.fee===Co&&(v0.pool_key.token_x===Vr[lo].assetAddress&&v0.pool_key.token_x===Vr[wo].assetAddress||v0.pool_key.token_y===Vr[wo].assetAddress&&v0.pool_key.token_y===Vr[lo].assetAddress));go(d0!==-1?d0:null),bo!==""&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:mo}))}},[Yn,lo,wo,Tt,uo,bo,st]),reactExports.useEffect(()=>{dt[bo]&&Wo({index:dt[bo].pool.current_tick_index,x:calcYPerXPriceBySqrtPrice(BigInt(dt[bo].pool.sqrt_price),Bo,So)**(mo?1:-1)})},[bo,mo,Bo,So,dt]),reactExports.useEffect(()=>{bo===""&&Wo({index:0,x:calcPrice(0,mo,Bo,So)})},[uo,mo,Bo,So,bo]);const ba=reactExports.useMemo(()=>no&&xo?createPlaceholderLiquidityPlot(mo,10,xo,Bo,So):po,[po,no,mo,xo,Bo,So]);reactExports.useEffect(()=>{lo!==null&&wo!==null&&uo===null&&Cr(actions$1.getPoolData(newPoolKey$1(Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString(),ALL_FEE_TIERS_DATA[Tt])))},[lo,wo,uo]);const _a=localStorage.getItem("IS_PLOT_DISCRETE")?localStorage.getItem("IS_PLOT_DISCRETE")==="true":!0,$s=ks=>{localStorage.setItem("IS_PLOT_DISCRETE",ks?"true":"false")},vs=(ks,Ds)=>{Cr(actions$4.add({message:ks,variant:Ds,persist:!1}))},ss=ks=>{localStorage.setItem("OPENING_METHOD",ks)},Ts=localStorage.getItem("HIDE_UNKNOWN_TOKENS")==="true"||localStorage.getItem("HIDE_UNKNOWN_TOKENS")===null,qo=ks=>{localStorage.setItem("HIDE_UNKNOWN_TOKENS",ks?"true":"false")},[Js,Vo]=reactExports.useState(void 0),[zo,$n]=reactExports.useState(!1);reactExports.useEffect(()=>{if(lo===null)return;const ks=Vr[lo].coingeckoId??"";ks.length?($n(!0),getCoingeckoTokenPrice(ks).then(Ds=>Vo(Ds)).catch(()=>Vo(getMockedTokenPrice(Vr[lo].symbol,Wt))).finally(()=>$n(!1))):Vo(void 0)},[lo]);const[Tn,ko]=reactExports.useState(void 0),[es,fs]=reactExports.useState(!1);reactExports.useEffect(()=>{if(wo===null)return;const ks=Vr[wo].coingeckoId??"";ks.length?(fs(!0),getCoingeckoTokenPrice(ks).then(Ds=>ko(Ds)).catch(()=>ko(getMockedTokenPrice(Vr[wo].symbol,Wt))).finally(()=>fs(!1))):ko(void 0)},[wo]);const Es=localStorage.getItem("INVARIANT_NEW_POSITION_SLIPPAGE")??"1",Us=ks=>{localStorage.setItem("INVARIANT_NEW_POSITION_SLIPPAGE",ks)},ms=(ks,Ds,Fs,d0)=>{if(lo===null||wo===null||isNaN(Ds)||isNaN(Fs))return BigInt(0);const v0=d0===(mo?Vr[lo].assetAddress:Vr[wo].assetAddress),b0=Math.min(Ds,Fs),R0=Math.max(Ds,Fs);try{if(v0){const{amount:n0,l:fo}=getLiquidityByX$1(ks,b0,R0,dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),!0);return io.current&&(co.current=fo),n0}const{amount:D0,l:zs}=getLiquidityByY$1(ks,b0,R0,dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),!0);return io.current&&(co.current=zs),D0}catch{const D0=(v0?getLiquidityByY$1:getLiquidityByX$1)(BigInt(ks),b0,R0,dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),!0);io.current&&(co.current=D0.l)}return BigInt(0)},bs=()=>{lo!==null&&wo!==null&&(Cr(actions$3.getBalances([Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString()])),Cr(actions$1.getPoolData(newPoolKey$1(Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString(),ALL_FEE_TIERS_DATA[Tt]))),bo!==""&&uo!==null&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:nt[uo].pool_key.token_x===Vr[Mt===!0?wo:lo].assetAddress,fetchTicksAndTickmap:!0})))};return jsxRuntimeExports.jsx(NewPosition,{initialTokenFrom:_e,initialTokenTo:cr,initialFee:gr,copyPoolAddressHandler:vs,tokens:Vr,data:ba,midPrice:Po,setMidPrice:Wo,onChangePositionTokens:(ks,Ds,Fs)=>{if(ks!==null&&Ds!==null&&ks!==Ds&&!(lo===ks&&wo===Ds&&Co===ALL_FEE_TIERS_DATA[Fs].fee)){const d0=nt.findIndex(v0=>v0.pool_key.fee_tier.fee===Co&&(v0.pool_key.token_x===Vr[ks].assetAddress&&v0.pool_key.token_x===Vr[Ds].assetAddress||v0.pool_key.token_y===Vr[Ds].assetAddress&&v0.pool_key.token_y===Vr[ks].assetAddress));d0!==uo&&!(lo===Ds&&wo===ks&&Co===ALL_FEE_TIERS_DATA[Fs].fee)?io.current&&(go(d0!==-1?d0:null),ho(null)):lo===Ds&&wo===ks&&Co===ALL_FEE_TIERS_DATA[Fs].fee&&io.current&&ho(Mt===null?!0:!Mt),bo.length>0&&d0!==uo&&lo!==null?Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:st[bo].token_x===Vr[lo].assetAddress.toString()})):lo===Ds&&wo===ks&&Co===ALL_FEE_TIERS_DATA[Fs].fee||Cr(actions$1.getPoolData(newPoolKey$1(Vr[ks].assetAddress.toString(),Vr[Ds].assetAddress.toString(),ALL_FEE_TIERS_DATA[Fs])))}so(ks),xt(Ds),vo(Fs)},isCurrentPoolExisting:bo!=="",calcAmount:ms,feeTiers:ALL_FEE_TIERS_DATA.map(ks=>({feeValue:+printBigint(BigInt(ks.fee),10)})),ticksLoading:no,loadingTicksAndTickMaps:kt,isXtoY:mo,xDecimal:Bo,yDecimal:So,tickSpacing:xo,isWaitingForNewPool:Yn,poolIndex:uo,currentPairReversed:Mt,bestTiers:bestTiers[Wt],initialIsDiscreteValue:_a,onDiscreteChange:$s,currentPriceSqrt:dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),canCreateNewPool:St,canCreateNewPosition:Ot,handleAddToken:()=>console.log("Add token mock function"),commonTokens:commonTokensForNetworks[Wt],initialOpeningPositionMethod:"range",onPositionOpeningMethodChange:ss,initialHideUnknownTokensValue:Ts,onHideUnknownTokensChange:qo,tokenAPriceData:Js,tokenBPriceData:Tn,priceALoading:zo,priceBLoading:es,hasTicksError:Nt,reloadHandler:()=>{bo!==""&&lo!==null&&wo!==null&&uo!==null&&Cr(actions$2.getCurrentPlotTicks({poolKey:st[bo],isXtoY:nt[uo].pool_key.token_x===Vr[Mt===!0?wo:lo].assetAddress}))},currentFeeIndex:Tt,onSlippageChange:Us,initialSlippage:Es,progress:Ro,addLiquidityHandler:(ks,Ds,Fs,d0,v0)=>{if(lo===null||wo===null)return;Ro==="none"&&pt("progress");const b0=ksks?Ds:ks;console.log({beforeHandle:bo}),Cr(actions$2.initPosition({poolKeyData:newPoolKey$1(Vr[lo].assetAddress.toString(),Vr[wo].assetAddress.toString(),ALL_FEE_TIERS_DATA[Tt]),lowerTick:b0,upperTick:R0,liquidityDelta:co.current,spotSqrtPrice:dt[bo]?BigInt(dt[bo].pool.sqrt_price):calculateSqrtPrice$1(Po.index),slippageTolerance:v0,tokenXAmount:BigInt(Fs),tokenYAmount:BigInt(d0),initPool:bo===""}))},showNoConnected:tt!==Status.Initialized,noConnectedBlockerProps:{onConnect:openWalletSelectorModal,descCustomText:"Cannot add any liquidity."},poolKey:bo,onRefresh:bs})},NewPositionPage=()=>{const{classes:_e}=useStyles$C(),{item1:cr,item2:gr,item3:Cr}=useParams();let Vr="",tt="",nt="";return Cr?(Vr=cr||"",tt=gr||"",nt=Cr):gr?(Vr=cr||"",nt=gr):cr&&(nt=cr),jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx(Grid,{item:!0,children:jsxRuntimeExports.jsx(NewPositionWrapper,{initialTokenFrom:Vr,initialTokenTo:tt,initialFee:nt})})})},store$1=_e=>_e[swapSliceName],{swap,simulateResult}=keySelectors(store$1,["swap","simulateResult"]),MarketEvents=()=>{const _e=useDispatch(),cr=useSelector(status),{tokenFrom:gr,tokenTo:Cr}=useSelector(swap),Vr=useSelector(poolsArraySortedByFees);return reactExports.useEffect(()=>{},[_e,cr]),reactExports.useEffect(()=>{gr&&Cr&&_e(actions$1.getTicksAndTickMaps({tokenFrom:gr,tokenTo:Cr,allPools:Vr}))},[gr,Cr]),null},EventHandler=()=>jsxRuntimeExports.jsx(MarketEvents,{}),useStyles$m=makeStyles()(()=>({button:{backgroundColor:"transparent",color:"#979995",height:32,...typography.body1,textTransform:"capitalize",boxShadow:"none",borderRadius:99,fontWeight:500,fontSize:16,"&:hover":{backgroundColor:"#232521",color:"#979995",fontWeight:500},textAlign:"center",width:"100%",[theme.breakpoints.down("sm")]:{fontSize:14}},active:{background:"#fff",color:"#292F23",...typography.body1,fontWeight:500,fontSize:16,"&:hover":{background:"#fff",color:"#292F23"}},disabled:{opacity:1}})),NavbarButton=({name:_e,active:cr,onClick:gr,className:Cr,disabled:Vr=!1,startIcon:tt})=>{const{classes:nt}=useStyles$m();return jsxRuntimeExports.jsx(Button,{className:classNames(Cr,nt.button,cr?nt.active:void 0),variant:"contained",classes:{disabled:nt.disabled},disabled:Vr,type:gr?"button":"submit",startIcon:tt,onClick:gr,children:_e})},useStyles$l=makeStyles()(_e=>({root:{margin:"auto",maxWidth:1312,paddingInline:94,height:70,[_e.breakpoints.down("md")]:{paddingInline:36},[_e.breakpoints.down("sm")]:{paddingInline:10},[_e.breakpoints.down("xs")]:{paddingInline:16}},logo:{minWidth:150,height:40},logoShort:{minWidth:40,height:30,marginRight:8},routers:{padding:4,borderRadius:"99px",transition:"left 300ms",width:"fit-content",backgroundColor:"#232521",[_e.breakpoints.down("sm")]:{width:"100%"}},rightMenu:{backgroundColor:"#232521",padding:4,borderRadius:"99px",transition:"all ease-in 300ms","&:hover":{}},connectedWalletIcon:{minWidth:21,height:21,marginRight:0,color:colors$2.oraidex.green,"& >circle":{boxShadow:"0px 0px 10px rgba(157, 212, 109, 0.5)"}},buttons:{justifyContent:"flex-end",flex:"1 1 0%",[_e.breakpoints.up("lg")]:{minWidth:350},[_e.breakpoints.only("md")]:{minWidth:350},[_e.breakpoints.down("lg")]:{marginLeft:0},[_e.breakpoints.down("lg")]:{justifyContent:"center"}},buttonsLgConnected:{[_e.breakpoints.up("lg")]:{minWidth:433}},link:{textDecoration:"none",minWidth:"fit-content",[_e.breakpoints.down("sm")]:{width:"100%"}},menu:{width:40,height:25,transition:"filter 300ms"},menuButton:{borderRadius:10,paddingInline:6,paddingBlock:1,height:45,transition:"background 300ms",marginLeft:8,"&:hover":{background:"transparent"},"&:hover $menu":{filter:"brightness(2)"}},leftSide:{flex:"1 1 0%"}})),Header=({landing:_e})=>{const{classes:cr}=useStyles$l(),gr=[{link:"swap",name:"Swap"},{link:"pools",name:"Pools"},{link:"positions",name:"Your Positions"}],Cr={positions:[/^newPosition\/*/,/^position\/*/]},[Vr,tt]=reactExports.useState("swap");return reactExports.useEffect(()=>{tt(_e)},[_e]),jsxRuntimeExports.jsx(Grid,{container:!0,children:jsxRuntimeExports.jsx(Grid,{container:!0,className:cr.root,direction:"row",alignItems:"center",justifyContent:"space-between",wrap:"wrap",gap:1,children:jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,className:cr.routers,wrap:"nowrap",children:gr.map(nt=>jsxRuntimeExports.jsx(Link,{to:`/${nt.link}`,className:cr.link,children:jsxRuntimeExports.jsx(NavbarButton,{name:nt.name,onClick:()=>{tt(nt.link)},active:nt.link===Vr||!!Cr[nt.link]&&Cr[nt.link].some(st=>st.test(Vr))})},`path-${nt.link}`))})})})},HeaderWrapper=()=>{const _e=useDispatch(),cr=useLocation(),{walletAddress:gr,signingClient:Cr,connectWallet:Vr}=useSigningClient();return reactExports.useEffect(()=>{(async()=>{if(window.walletType&&(gr==""&&Vr(),Cr&&gr)){SingletonOraiswapV3.load(Cr,gr),_e(actions$3.setStatus(Status.Init)),_e(actions$3.setAddress(gr)),_e(actions$3.setIsBalanceLoading(!0));const tt=await SingletonOraiswapV3.queryBalance(gr);_e(actions$3.setBalance(BigInt(tt))),_e(actions$3.setStatus(Status.Initialized));const nt=Object.values(FaucetTokenList),st=await getTokenBalances(nt,gr);_e(actions$3.addTokenBalances(st)),_e(actions$3.setIsBalanceLoading(!1))}})()},[gr]),reactExports.useEffect(()=>(window.addEventListener("keplr_keystorechange",Vr),()=>{window.removeEventListener("keplr_keystorechange",Vr)}),[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Header,{landing:cr.pathname.substring(1)})})},RootPage=()=>{const _e=useDispatch(),cr=useSelector(status),gr=useSelector(status$1),Cr=useSelector(address),Vr=useNavigate(),tt=useLocation();return reactExports.useEffect(()=>{tt.pathname==="/"&&Vr("/swap"),_e(actions$5.initOraichainConnection())},[_e]),reactExports.useEffect(()=>{cr===Status$1.Initialized&&gr===Status.Initialized&&Cr&&_e(actions$2.getPositionsList())},[cr,gr,Cr]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[cr===Status$1.Initialized&&jsxRuntimeExports.jsx(EventHandler,{}),jsxRuntimeExports.jsxs("div",{id:toBlur,children:[jsxRuntimeExports.jsx(HeaderWrapper,{}),jsxRuntimeExports.jsx(Outlet,{})]})]})},empty="/v3/assets/empty-DaHy228n.svg",useStyles$k=makeStyles()(()=>({wrapper:{width:300},image:{width:160,height:180},title:{...typography.heading2,marginBlock:24,color:colors$2.oraidex.textGrey,opacity:.7},desc:{color:colors$2.oraidex.textGrey,opacity:.7,...typography.heading4,fontWeight:400,textAlign:"center"}})),EmptyPlaceholder=({desc:_e,className:cr,style:gr})=>{const{classes:Cr}=useStyles$k();return jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",alignItems:"center",className:classNames(Cr.wrapper,cr),style:gr,children:[jsxRuntimeExports.jsx("img",{src:empty,className:Cr.image}),jsxRuntimeExports.jsx(Typography,{className:Cr.title,children:"It's empty here..."}),jsxRuntimeExports.jsx(Typography,{className:Cr.desc,children:_e})]})},useStyles$j=makeStyles()(_e=>({root:{background:colors$2.oraidex.component,width:480,borderRadius:24,padding:"20px 24px"},popover:{marginTop:"calc(50vh - 143px)",marginLeft:"calc(50vw - 241px)",[_e.breakpoints.down("xs")]:{display:"flex",marginLeft:"auto",justifyContent:"center"}},paper:{background:"transparent",boxShadow:"none"},upperRow:{height:20,marginBottom:16},title:{...typography.heading4,color:colors$2.oraidex.yellow},desc:{...typography.body2,color:colors$2.oraidex.text,marginBottom:16},close:{minWidth:0,maxHeight:20,maxWidth:16,fontSize:20,background:"none","&:hover":{background:"none !important"}},input:{backgroundColor:colors$2.oraidex.newDark,width:"100%",height:60,color:colors$2.white.main,borderRadius:20,padding:"7px 10px 6px",...typography.heading4,fontWeight:400,marginRight:16,"&::placeholder":{color:colors$2.oraidex.light,...typography.heading4,fontWeight:400},"&:focus":{outline:"none"}},closeButton:{height:44,background:colors$2.oraidex.greenLinearGradientOpacity,...typography.body1,color:colors$2.oraidex.black,textTransform:"none",borderRadius:18,marginBottom:10,"&:hover":{background:colors$2.oraidex.greenLinearGradient}},claimButton:{height:44,background:colors$2.oraidex.greenLinearGradientOpacity,...typography.body1,color:colors$2.oraidex.black,textTransform:"none",borderRadius:18,"&:hover":{background:colors$2.oraidex.greenLinearGradient}},cancelButton:{height:44,background:colors$2.oraidex.light,...typography.body1,color:colors$2.oraidex.black,textTransform:"none",borderRadius:18,marginBottom:10,"&:hover":{background:colors$2.oraidex.lightHover}}})),ClosePositionWarning=({open:_e,onCancel:cr,onClose:gr,onClaim:Cr})=>{const{classes:Vr}=useStyles$j();return jsxRuntimeExports.jsx(Popover,{classes:{paper:Vr.paper},className:Vr.popover,open:_e,anchorReference:"none",onClose:cr,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:jsxRuntimeExports.jsxs(Grid,{container:!0,className:Vr.root,direction:"column",justifyContent:"space-between",children:[jsxRuntimeExports.jsxs(Grid,{className:Vr.upperRow,container:!0,direction:"row",justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Typography,{className:Vr.title,children:"Warning!"}),jsxRuntimeExports.jsx(Button,{className:Vr.close,onClick:cr,children:"\u2715"})]}),jsxRuntimeExports.jsx(Typography,{className:Vr.desc,children:"This position is staked on our farms. If you close it before claiming rewards, you will be unable to do it after."}),jsxRuntimeExports.jsx(Button,{className:Vr.cancelButton,onClick:cr,children:"Cancel"}),jsxRuntimeExports.jsx(Button,{className:Vr.closeButton,onClick:gr,children:"Close position"}),jsxRuntimeExports.jsx(Button,{className:Vr.claimButton,onClick:Cr,children:"Claim farms rewards and close position"})]})})},SwapArrows="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.457143'%20y='31.5429'%20width='31.0857'%20height='31.0857'%20rx='15.5429'%20transform='rotate(-90%200.457143%2031.5429)'%20fill='%23494949'%20/%3e%3crect%20x='0.457143'%20y='31.5429'%20width='31.0857'%20height='31.0857'%20rx='15.5429'%20transform='rotate(-90%200.457143%2031.5429)'%20stroke='%23595B57'%20stroke-width='0.914286'%20/%3e%3cpath%20d='M20.5732%2023.3161L20.5732%208.6875M20.5732%208.6875L23.3161%2011.4304M20.5732%208.6875L17.8304%2011.4304M11.4304%208.6875L11.4304%2023.3161M11.4304%2023.3161L14.1732%2020.5732M11.4304%2023.3161L8.6875%2020.5732'%20stroke='%23F7F7F7'%20stroke-width='1.37143'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",loader="/v3/assets/loading2-DtOXnG-e.gif",useStyles$i=makeStyles()(_e=>({root:{width:"100%",flexGrow:1,display:"flex",flexDirection:"column"},iconsGrid:{display:"flex",alignItems:"center"},icon:{width:35,borderRadius:"100%",[_e.breakpoints.down("xs")]:{width:22}},icon2:{width:35,borderRadius:"100%",marginLeft:"-5px",[_e.breakpoints.down("xs")]:{width:22}},arrowIcon:{width:22,marginRight:8,marginLeft:8,[_e.breakpoints.down("xs")]:{width:15,marginRight:2,marginLeft:2}},text:{...typography.body1,color:colors$2.oraidex.text,background:"#494949",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:8,padding:"4px 8px",width:"100%"},rangeGrid:{display:"flex",flexDirection:"row",paddingRight:10},header:{display:"flex",flexDirection:"row",justifyContent:"space-between",[_e.breakpoints.down("xs")]:{flexDirection:"column"}},headerButtons:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:16,button:{flex:1},[_e.breakpoints.down("sm")]:{display:"none"}},btnMobile:{zIndex:11,display:"none",[_e.breakpoints.down("sm")]:{display:"flex",flexDirection:"column",gap:12},"&.closeButton":{marginRight:"0 !important"}},buttonTextMb:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,color:colors$2.oraidex.neutralTextLight,height:28,textDecoration:"underline",cursor:"pointer","& svg":{height:20}},feeText:{...typography.body4,marginLeft:12,[_e.breakpoints.down("xs")]:{}},closedText:{width:100,paddingRight:0},namesGrid:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",paddingLeft:8,"& #pause":{padding:" 0px 3px"},[_e.breakpoints.down("xs")]:{paddingLeft:4}},name:{...typography.heading5,color:colors$2.oraidex.text,lineHeight:"28px",[_e.breakpoints.down("xs")]:{...typography.heading4}},bottomGrid:{marginTop:24,borderRadius:24,flexGrow:1,display:"flex",flexDirection:"column",justifyContent:"space-between"},iconSmall:{width:24,height:24,marginRight:8,borderRadius:"100%"},boxInfo:{borderRadius:16,position:"relative",marginBottom:24},title:{...typography.heading4,color:colors$2.oraidex.text},titleValue:{...typography.heading3,color:colors$2.oraidex.text,fontFamily:"IBM Plex Sans"},violetButton:{background:colors$2.oraidex.greenLinearGradientOpacity,borderRadius:99,padding:"8px 16px",textTransform:"none",color:colors$2.oraidex.dark,...typography.body1,"&:hover":{background:colors$2.oraidex.greenLinearGradient,boxShadow:"0px 0px 16px rgba(46, 224, 154, 0.35)"},"&:disabled":{background:colors$2.oraidex.light,color:colors$2.oraidex.dark},[_e.breakpoints.down("xs")]:{...typography.body1,maxHeight:28,minWidth:105}},tokenGrid:{position:"relative",display:"flex",flexDirection:"row",justifyContent:"space-between",paddingTop:14,"&:not(:last-child)":{paddingTop:24}},tokenArea:{backgroundColor:colors$2.oraidex.newDark,borderRadius:8,flexDirection:"row",width:"100%",justifyContent:"space-between",padding:12,"&:not(:last-child)":{marginBottom:8}},tokenAreaUpperPart:{display:"flex",flexDirection:"row",justifyContent:"space-between"},tokenAreaLowerPart:{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingTop:16},token:{backgroundColor:colors$2.oraidex.light,border:"1px solid",borderColor:colors$2.oraidex.border,borderRadius:99,display:"flex",flexDirection:"row",alignItems:"center",padding:"8px 13px"},tokenName:{color:colors$2.white.main,...typography.heading4,fontWeight:400},tokenValue:{color:colors$2.oraidex.text,display:"flex",alignItems:"center",justifyContent:"center",...typography.heading5,fontWeight:600},tokenBalance:{color:colors$2.oraidex.neutralText,...typography.caption2},bal:{color:colors$2.oraidex.neutralTextLight},tokenUSDValue:{color:colors$2.oraidex.neutralText,...typography.caption2},closeButton:{color:colors$2.oraidex.text,background:colors$2.oraidex.light,border:"1px solid",borderColor:colors$2.oraidex.border,padding:"8px 16px",textTransform:"none",transition:"300ms",borderRadius:99,...typography.body1,"&:hover":{background:colors$2.oraidex.light,opacity:.7},[_e.breakpoints.down("md")]:{marginRight:10},[_e.breakpoints.down("sm")]:{marginRight:0},[_e.breakpoints.down("xs")]:{width:"50%",...typography.caption1,height:40}},button:{color:colors$2.oraidex.black,...typography.body1,textTransform:"none",background:colors$2.oraidex.greenLinearGradientOpacity,borderRadius:12,height:40,width:130,paddingRight:9,paddingLeft:9,letterSpacing:-.03,"&:hover":{background:colors$2.oraidex.greenLinearGradient,boxShadow:`0 0 16px ${colors$2.oraidex.pink}`},[_e.breakpoints.down("xs")]:{width:"50%",...typography.caption1}},buttonText:{WebkitPaddingBefore:"2px",[_e.breakpoints.down("xs")]:{WebkitPaddingBefore:0}},buttons:{width:" 100%",display:"flex",flexDirection:"column",flexWrap:"wrap"},iconText:{paddingRight:10,paddingBottom:3,width:19,height:19},arrowsIcon:{width:32,height:32,position:"absolute",top:"calc(50% - 8px)",left:"calc(50% - 16px)",cursor:"pointer","&:hover":{filter:"brightness(2)"}},cover:{width:"100%",height:"calc(100% - 12px)",background:`${colors$2.oraidex.black}dd`,position:"absolute",borderRadius:10,zIndex:1},loader:{height:50,width:50,margin:"auto"}})),BoxInfo=({title:_e,tokenB:cr,tokenA:gr,showBalance:Cr=!1,swapHandler:Vr,showLoader:tt=!1})=>{const{classes:nt}=useStyles$i(),st=ht=>[{value:10,decimals:ht},{value:1e4,decimals:6},{value:1e5,decimals:4},{value:1e6,decimals:3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],dt=[{value:1e3,decimals:2},{value:1e4,decimals:1},{value:1e6,decimals:2,divider:1e3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],kt={B:1e9,M:1e6},qt=Math.abs(Number(gr.value))<10**Number(-gr.decimal)?0:Number(gr.value),ro=Math.abs(Number(cr.value))<10**Number(-cr.decimal)?0:Number(cr.value);return jsxRuntimeExports.jsxs(Grid,{className:nt.boxInfo,children:[jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"space-between",children:jsxRuntimeExports.jsxs(Typography,{className:nt.title,children:[" ",_e]})}),jsxRuntimeExports.jsxs(Grid,{className:nt.tokenGrid,container:!0,direction:"column",children:[tt?jsxRuntimeExports.jsx(Grid,{container:!0,className:nt.cover,children:jsxRuntimeExports.jsx("img",{src:loader,className:nt.loader})}):null,jsxRuntimeExports.jsxs(Grid,{className:nt.tokenArea,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaUpperPart,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.token,children:[jsxRuntimeExports.jsx("img",{className:nt.iconSmall,src:gr.icon,alt:gr.name}),jsxRuntimeExports.jsx(Typography,{className:nt.tokenName,children:gr.name})]}),jsxRuntimeExports.jsxs(Typography,{className:nt.tokenValue,children:[formatNumbers(st(Number(gr.decimal)))(`${qt}`),showPrefix(qt,kt)]})]}),Cr?jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaLowerPart,children:[jsxRuntimeExports.jsxs(Typography,{className:nt.tokenBalance,children:["Balance:"," ",jsxRuntimeExports.jsxs("span",{className:nt.bal,children:[gr.balance," ",gr.name]})]}),typeof gr.usdValue<"u"&&gr.price?jsxRuntimeExports.jsxs(Typography,{className:nt.tokenUSDValue,children:["\u2248$",formatNumbers(dt)((gr.value*gr.price).toString()),showPrefix(gr.value*gr.price)]}):null]}):null]}),typeof Vr<"u"?jsxRuntimeExports.jsx("img",{src:SwapArrows,className:nt.arrowsIcon,onClick:Vr}):null,jsxRuntimeExports.jsxs(Grid,{className:nt.tokenArea,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaUpperPart,children:[jsxRuntimeExports.jsxs(Grid,{className:nt.token,children:[jsxRuntimeExports.jsx("img",{className:nt.iconSmall,src:cr.icon,alt:cr.name}),jsxRuntimeExports.jsx(Typography,{className:nt.tokenName,children:cr.name})]}),jsxRuntimeExports.jsxs(Typography,{className:nt.tokenValue,children:[formatNumbers(st(Number(cr.decimal)))(`${ro}`),showPrefix(ro,kt)]})]}),Cr?jsxRuntimeExports.jsxs(Grid,{className:nt.tokenAreaLowerPart,children:[jsxRuntimeExports.jsxs(Typography,{className:nt.tokenBalance,children:["Balance:"," ",jsxRuntimeExports.jsxs("span",{className:nt.bal,children:[cr.balance," ",cr.name]})]}),typeof cr.usdValue<"u"&&cr.price?jsxRuntimeExports.jsxs(Typography,{className:nt.tokenUSDValue,children:["\u2248$",formatNumbers(dt)((cr.value*cr.price).toString()),showPrefix(cr.value*cr.price)]}):null]}):null]})]})]})},useLabelStyles=makeStyles()(()=>({marketId:{fontFamily:"IBM Plex Sans",fontSize:12,fontWeight:400,lineHeight:"20px",letterSpacing:"-0.03px",textAlign:"left",color:`${colors$2.oraidex.neutralText} !important`,paddingRight:7,paddingTop:8},clipboardIcon:{width:15,height:13,cursor:"pointer"}}));var FileCopyOutlined={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(FileCopyOutlined,"__esModule",{value:!0});var default_1=FileCopyOutlined.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports;default_1=FileCopyOutlined.default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11zM8 21V7h6v5h5v9z"}),"FileCopyOutlined");const MarketIdLabel=({displayLength:_e,marketId:cr,copyPoolAddressHandler:gr,style:Cr})=>{const{classes:Vr}=useLabelStyles(),tt=()=>{navigator.clipboard.writeText(cr).then(()=>{gr("Market ID copied to Clipboard","success")}).catch(()=>{gr("Failed to copy Market ID to Clipboard","error")})};return jsxRuntimeExports.jsxs(Typography,{className:Vr.marketId,style:Cr,children:["Market ID: ",cr.slice(0,_e),"...",cr.slice(cr.length-_e,cr.length)," ",jsxRuntimeExports.jsx(default_1,{className:Vr.clipboardIcon,onClick:tt})]})},SinglePositionInfo=({fee:_e,onClickClaimFee:cr,closePosition:gr,tokenX:Cr,tokenY:Vr,tokenXPriceData:tt,tokenYPriceData:nt,xToY:st,swapHandler:dt,showFeesLoader:kt=!1,userHasStakes:qt=!1,poolAddress:ro,copyPoolAddressHandler:ht,navigateAdd:po})=>{const[no,Nt]=reactExports.useState(!1),{classes:eo}=useStyles$i();useNavigate();const Wt=st?{...Cr,value:Cr.claimValue}:{...Vr,value:Vr.claimValue},St=st?{...Vr,value:Vr.claimValue}:{...Cr,value:Cr.claimValue},Ot=Math.abs(Number(Wt.value))<10**Number(-Wt.decimal)&&Math.abs(Number(St.value))<10**Number(-St.decimal);return jsxRuntimeExports.jsxs(Grid,{className:eo.root,children:[jsxRuntimeExports.jsx(ClosePositionWarning,{open:no,onCancel:()=>{Nt(!1),unblurContent()},onClose:()=>{gr(),Nt(!1),unblurContent()},onClaim:()=>{gr(!0),Nt(!1),unblurContent()}}),jsxRuntimeExports.jsx(Grid,{className:eo.header,children:jsxRuntimeExports.jsxs(Grid,{className:eo.iconsGrid,children:[jsxRuntimeExports.jsx("img",{className:eo.icon,src:st?Cr.icon:Vr.icon,alt:st?Cr.name:Vr.name}),jsxRuntimeExports.jsx("img",{className:eo.icon2,src:st?Vr.icon:Cr.icon,alt:st?Vr.name:Cr.name}),jsxRuntimeExports.jsxs(Grid,{className:eo.namesGrid,children:[jsxRuntimeExports.jsx(Typography,{className:eo.name,children:st?Cr.name:Vr.name}),jsxRuntimeExports.jsx(Typography,{id:"pause",className:eo.name,children:"/"}),jsxRuntimeExports.jsx(Typography,{className:eo.name,children:st?Vr.name:Cr.name})]}),jsxRuntimeExports.jsx(Grid,{className:eo.rangeGrid,children:jsxRuntimeExports.jsxs(Typography,{className:classNames(eo.text,eo.feeText),children:["Fee: ",_e.toString(),"%"]})})]})}),jsxRuntimeExports.jsx(MarketIdLabel,{marketId:ro.toString(),displayLength:9,copyPoolAddressHandler:ht}),jsxRuntimeExports.jsxs(Grid,{className:eo.bottomGrid,children:[jsxRuntimeExports.jsx(BoxInfo,{title:"Liquidity",tokenA:st?{...Cr,value:Cr.liqValue,price:tt==null?void 0:tt.price}:{...Vr,value:Vr.liqValue,price:nt==null?void 0:nt.price},tokenB:st?{...Vr,value:Vr.liqValue,price:nt==null?void 0:nt.price}:{...Cr,value:Cr.liqValue,price:tt==null?void 0:tt.price},showBalance:!0,swapHandler:dt}),jsxRuntimeExports.jsx(BoxInfo,{title:"Unclaimed fees",tokenA:st?{...Cr,value:Cr.claimValue}:{...Vr,value:Vr.claimValue},tokenB:st?{...Vr,value:Vr.claimValue}:{...Cr,value:Cr.claimValue},onClickButton:cr,showLoader:kt})]}),jsxRuntimeExports.jsxs(Grid,{className:eo.headerButtons,children:[jsxRuntimeExports.jsx(Button,{className:eo.closeButton,variant:"contained",onClick:()=>{qt?(Nt(!0),blurContent()):gr()},children:"Close Position"}),jsxRuntimeExports.jsx(Button,{className:eo.violetButton,variant:"contained",onClick:cr,disabled:Ot,children:"Claim Fee"})]}),jsxRuntimeExports.jsxs("div",{className:eo.btnMobile,children:[jsxRuntimeExports.jsx(Button,{className:eo.closeButton,variant:"contained",onClick:()=>{qt?(Nt(!0),blurContent()):gr()},children:"Close Position"}),jsxRuntimeExports.jsx(Button,{className:eo.violetButton,variant:"contained",onClick:cr,disabled:Ot,children:"Claim Fee"}),jsxRuntimeExports.jsxs("span",{className:eo.buttonTextMb,onClick:()=>po&&po(),children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M18.5 10C18.5 10.2767 18.3901 10.5422 18.1944 10.7379C17.9987 10.9335 17.7333 11.0435 17.4565 11.0435H11.5435V16.9565C11.5435 17.2333 11.4335 17.4987 11.2379 17.6944C11.0422 17.8901 10.7767 18 10.5 18C10.2233 18 9.95784 17.8901 9.76215 17.6944C9.56646 17.4987 9.45652 17.2333 9.45652 16.9565V11.0435H3.54348C3.26673 11.0435 3.00132 10.9335 2.80563 10.7379C2.60994 10.5422 2.5 10.2767 2.5 10C2.5 9.72325 2.60994 9.45784 2.80563 9.26215C3.00132 9.06646 3.26673 8.95652 3.54348 8.95652H9.45652V3.04348C9.45652 2.76673 9.56646 2.50132 9.76215 2.30563C9.95784 2.10994 10.2233 2 10.5 2C10.7767 2 11.0422 2.10994 11.2379 2.30563C11.4335 2.50132 11.5435 2.76673 11.5435 3.04348V8.95652H17.4565C17.7333 8.95652 17.9987 9.06646 18.1944 9.26215C18.3901 9.45784 18.5 9.72325 18.5 10Z",fill:"#F7F7F7"})}),jsxRuntimeExports.jsx("p",{children:"Add Liquidity"})]})]})]})},useStyles$h=makeStyles()(_e=>({infoTypeLabel:{color:colors$2.oraidex.neutralText,...typography.body4},infoSwap:{textAlign:"right"},infoTypeSwap:{display:"flex",backgroundColor:colors$2.oraidex.newDark,borderRadius:12,padding:12,lineHeight:"20px",alignItems:"center",justifyContent:"space-between"},infoType:{borderRadius:12,textAlign:"left",marginRight:6},infoAmount:{textAlign:"right",color:colors$2.oraidex.text,...typography.heading5},infoSwapToken:{textAlign:"right",color:colors$2.oraidex.lightGrey,...typography.body4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}})),LiquidationRangeInfo=({label:_e,amount:cr,tokenX:gr,tokenY:Cr})=>{const{classes:Vr}=useStyles$h();return jsxRuntimeExports.jsx(Grid,{children:jsxRuntimeExports.jsxs(Grid,{className:Vr.infoTypeSwap,children:[jsxRuntimeExports.jsx(Grid,{className:Vr.infoType,children:jsxRuntimeExports.jsx(Typography,{component:"span",className:Vr.infoTypeLabel,children:_e})}),jsxRuntimeExports.jsxs(Grid,{className:Vr.infoSwap,children:[jsxRuntimeExports.jsxs(Typography,{component:"span",className:Vr.infoAmount,children:[formatNumbers()(cr.toString()),showPrefix(cr)]}),jsxRuntimeExports.jsxs(Typography,{component:"p",className:Vr.infoSwapToken,children:[Cr," / ",gr]})]})]})})},useStyles$g=makeStyles()(_e=>({root:{width:"100%",padding:24,paddingTop:18,borderRadius:24},headerContainer:{...typography.heading4,color:"#FFFFFF"},header:{paddingBottom:10},plotWrapper:{paddingBottom:29},minMaxInfo:{marginTop:12,display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:"15px",paddingBottom:16,[_e.breakpoints.down("xs")]:{gridTemplateColumns:"1fr",gridGap:"8px"}},currentPriceContainer:{backgroundColor:colors$2.oraidex.black,borderRadius:12,padding:12,display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},currentPriceLabel:{flex:1,color:colors$2.oraidex.neutralText,textAlign:"left","& p":{...typography.body4}},currentPriceAmonut:{textAlign:"right",borderRadius:"11px!important","& span":{color:colors$2.oraidex.text,...typography.heading5},"& p":{color:colors$2.oraidex.neutralText,...typography.body4,fontSize:12}},plot:{width:"100%",height:255,borderRadius:10,[_e.breakpoints.down("xs")]:{height:253}},infoRow:{marginBottom:16},activeLiquidity:{color:colors$2.oraidex.neutralText,...typography.body4,fontSize:12,display:"flex",flexDirection:"row",alignItems:"center",cursor:"default"},activeLiquidityIcon:{marginLeft:5,height:14,width:14,border:"1px solid",borderColor:colors$2.oraidex.neutralText,color:colors$2.oraidex.neutralText,borderRadius:"50%",fontSize:8,lineHeight:"10px",fontWeight:400,textAlign:"center",boxSizing:"border-box",paddingTop:3,cursor:"default"},liquidityTooltip:{background:colors$2.oraidex.component,boxShadow:"0px 4px 18px rgba(0, 0, 0, 0.35)",borderRadius:20,padding:16,maxWidth:376,boxSizing:"border-box",[_e.breakpoints.down("xs")]:{maxWidth:360}},liquidityTitle:{color:colors$2.oraidex.text,...typography.heading4,marginBottom:12},liquidityDesc:{color:colors$2.oraidex.text,...typography.caption2},liquidityNote:{color:colors$2.oraidex.textGrey,...typography.caption2},liquidityImg:{width:80,minWidth:80,height:60,marginLeft:16},currentPrice:{color:colors$2.oraidex.yellow,...typography.caption2,textAlign:"right"}})),SinglePositionPlot=({data:_e,leftRange:cr,rightRange:gr,midPrice:Cr,currentPrice:Vr,tokenY:tt,tokenX:nt,ticksLoading:st,tickSpacing:dt,min:kt,max:qt,xToY:ro,initialIsDiscreteValue:ht,onDiscreteChange:po,hasTicksError:no,reloadHandler:Nt})=>{const{classes:eo}=useStyles$g(),[Wt,St]=reactExports.useState(0),[Ot,uo]=reactExports.useState(1),[go,bo]=reactExports.useState(ht);reactExports.useEffect(()=>{const pt=Math.abs(cr.x-calcPrice(Math.max(spacingMultiplicityGte(Number(getMinTick$1(Number(dt))),Number(dt)),Number(cr.index)-Number(dt)*15),ro,nt.decimal,tt.decimal));St(cr.x-pt),uo(gr.x+pt)},[st,cr,gr]);const oo=()=>{const pt=Ot-Wt,lo=Wt-pt/4,so=Ot+pt/4;St(lo),uo(so)},Ro=()=>{const pt=Ot-Wt,lo=Wt+pt/6,so=Ot-pt/6;calcTicksAmountInRange(Math.max(lo,0),so,Number(dt),ro,Number(nt.decimal),Number(tt.decimal))>=4&&(St(lo),uo(so))};return jsxRuntimeExports.jsxs(Grid,{item:!0,className:eo.root,children:[jsxRuntimeExports.jsxs(Grid,{className:eo.headerContainer,container:!0,alignItems:"center",justifyContent:"space-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{className:eo.header,children:"Price range"}),jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{className:eo.liquidityTitle,children:"Active liquidity"}),jsxRuntimeExports.jsx(Typography,{className:eo.liquidityDesc,style:{marginBottom:12},children:"While selecting the price range, note where active liquidity is located. Your liquidity can be inactive and, as a consequence, not generate profits."}),jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"row",wrap:"nowrap",alignItems:"center",style:{marginBottom:12},children:[jsxRuntimeExports.jsx(Typography,{className:eo.liquidityDesc,children:"The active liquidity range is represented by white, dashed lines in the liquidity chart. Active liquidity is determined by the maximum price range resulting from the statistical volume of swaps for the last 7 days."}),jsxRuntimeExports.jsx("img",{className:eo.liquidityImg,src:activeLiquidity})]}),jsxRuntimeExports.jsx(Typography,{className:eo.liquidityNote,children:"Note: active liquidity borders are always aligned to the nearest initialized ticks."})]}),placement:"bottom",classes:{tooltip:eo.liquidityTooltip},children:jsxRuntimeExports.jsxs(Typography,{className:eo.activeLiquidity,children:["Active liquidity ",jsxRuntimeExports.jsx("span",{className:eo.activeLiquidityIcon,children:"i"})]})})]}),jsxRuntimeExports.jsx(PlotTypeSwitch,{onSwitch:pt=>{bo(pt),po(pt)},initialValue:go?1:0})]}),jsxRuntimeExports.jsx(Grid,{className:eo.plotWrapper,children:jsxRuntimeExports.jsx(PriceRangePlot,{data:_e,plotMin:Wt,plotMax:Ot,zoomMinus:oo,zoomPlus:Ro,disabled:!0,leftRange:cr,rightRange:gr,midPrice:Cr,className:eo.plot,loading:st,isXtoY:ro,tickSpacing:dt,xDecimal:nt.decimal,yDecimal:tt.decimal,isDiscrete:go,coverOnLoading:!0,hasError:no,reloadHandler:Nt})}),jsxRuntimeExports.jsxs(Grid,{className:eo.currentPriceContainer,children:[jsxRuntimeExports.jsx("div",{className:eo.currentPriceLabel,children:jsxRuntimeExports.jsx(Typography,{component:"p",children:"Current Price"})}),jsxRuntimeExports.jsx("div",{className:eo.currentPriceAmonut,children:jsxRuntimeExports.jsxs(Typography,{component:"p",children:[jsxRuntimeExports.jsx(Typography,{component:"span",children:Vr.toFixed(6)}),jsxRuntimeExports.jsx("br",{}),ro?tt.name:nt.name," / ",ro?nt.name:tt.name]})})]}),jsxRuntimeExports.jsxs(Grid,{className:eo.minMaxInfo,children:[jsxRuntimeExports.jsx(LiquidationRangeInfo,{label:"Min Price",amount:kt,tokenX:ro?nt.name:tt.name,tokenY:ro?tt.name:nt.name}),jsxRuntimeExports.jsx(LiquidationRangeInfo,{label:"Max Price",amount:qt,tokenX:ro?nt.name:tt.name,tokenY:ro?tt.name:nt.name})]})]})},useStyles$f=makeStyles()(_e=>({container:{display:"flex",flexDirection:"column",padding:"24px",gap:"32px",borderRadius:"12px",border:"1px solid #232521",background:"#1B1D19",boxShadow:"0px 4px 24px 0px rgba(0, 0, 0, 0.05)"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#F7F7F7",fontSize:"18px",fontWeight:600,lineHeight:1.5,borderBottom:"1px solid #232521",[_e.breakpoints.down("sm")]:{paddingBottom:20}},wrapperContainer:{width:1004,flexDirection:"row",[_e.breakpoints.down("sm")]:{flexDirection:"column"}},positionDetails:{width:517,marginRight:24,[_e.breakpoints.down("md")]:{width:"100%"},[_e.breakpoints.down("sm")]:{marginRight:0,marginBottom:32}},right:{width:517,[_e.breakpoints.down("md")]:{width:"100%"}},back:{height:40,marginBottom:16,width:"fit-content",transition:"filter 300ms","&:hover":{filter:"brightness(2)"}},backWrap:{flex:1},backIcon:{width:22,height:24,marginRight:12,"&:hover":{opacity:.7}},backText:{color:"rgba(169, 182, 191, 1)",WebkitPaddingBefore:"2px",...typography.body2},button:{color:colors$2.oraidex.black,...typography.body1,textTransform:"none",background:colors$2.oraidex.greenLinearGradientOpacity,borderRadius:14,height:40,width:130,marginBottom:16,paddingRight:9,paddingLeft:9,letterSpacing:-.03,"&:hover":{background:colors$2.oraidex.greenLinearGradient,boxShadow:`0 0 16px ${colors$2.oraidex.pink}`}},buttonStartIcon:{marginRight:0},buttonTextWrap:{flex:1,display:"flex",justifyContent:"flex-end",[_e.breakpoints.down("sm")]:{visibility:"hidden",height:0}},buttonText:{width:"fit-content",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-end",flexWrap:"wrap",gap:"8px",transition:"all easy-in-out 0.3s",opacity:1,p:{textDecoration:"underline"},"&:hover":{opacity:.7}}})),PositionDetails=({tokenXAddress:_e,tokenYAddress:cr,poolAddress:gr,copyPoolAddressHandler:Cr,detailsData:Vr,leftRange:tt,rightRange:nt,midPrice:st,currentPrice:dt,tokenY:kt,tokenX:qt,tokenXPriceData:ro,tokenYPriceData:ht,onClickClaimFee:po,closePosition:no,ticksLoading:Nt,tickSpacing:eo,fee:Wt,min:St,max:Ot,initialIsDiscreteValue:uo,onDiscreteChange:go,showFeesLoader:bo=!1,hasTicksError:oo,reloadHandler:Ro,userHasStakes:pt=!1})=>{const{classes:lo}=useStyles$f(),so=useNavigate(),[wo,xt]=reactExports.useState(initialXtoY(_e.toString(),cr.toString())),Mt=()=>{const ho=parseFeeToPathFee(Wt),io=addressToTicker(_e.toString()),co=addressToTicker(cr.toString());so(`/newPosition/${io}/${co}/${ho}`)};return jsxRuntimeExports.jsxs("div",{className:lo.container,children:[jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx(Link,{to:"/positions",style:{textDecoration:"none"},className:lo.backWrap,children:jsxRuntimeExports.jsx("img",{className:lo.backIcon,src:backIcon})}),jsxRuntimeExports.jsx("span",{children:"Liquidity Position Detail"}),jsxRuntimeExports.jsx("div",{className:lo.buttonTextWrap,children:jsxRuntimeExports.jsxs("span",{className:lo.buttonText,onClick:()=>Mt(),children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M18.5 10C18.5 10.2767 18.3901 10.5422 18.1944 10.7379C17.9987 10.9335 17.7333 11.0435 17.4565 11.0435H11.5435V16.9565C11.5435 17.2333 11.4335 17.4987 11.2379 17.6944C11.0422 17.8901 10.7767 18 10.5 18C10.2233 18 9.95784 17.8901 9.76215 17.6944C9.56646 17.4987 9.45652 17.2333 9.45652 16.9565V11.0435H3.54348C3.26673 11.0435 3.00132 10.9335 2.80563 10.7379C2.60994 10.5422 2.5 10.2767 2.5 10C2.5 9.72325 2.60994 9.45784 2.80563 9.26215C3.00132 9.06646 3.26673 8.95652 3.54348 8.95652H9.45652V3.04348C9.45652 2.76673 9.56646 2.50132 9.76215 2.30563C9.95784 2.10994 10.2233 2 10.5 2C10.7767 2 11.0422 2.10994 11.2379 2.30563C11.4335 2.50132 11.5435 2.76673 11.5435 3.04348V8.95652H17.4565C17.7333 8.95652 17.9987 9.06646 18.1944 9.26215C18.3901 9.45784 18.5 9.72325 18.5 10Z",fill:"#F7F7F7"})}),jsxRuntimeExports.jsx("p",{children:"Add Liquidity"})]})})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,className:lo.wrapperContainer,wrap:"nowrap",children:[jsxRuntimeExports.jsx(Grid,{className:lo.positionDetails,container:!0,item:!0,direction:"column",children:jsxRuntimeExports.jsx(SinglePositionInfo,{fee:+printBigint(Wt,PERCENTAGE_SCALE-2),onClickClaimFee:po,closePosition:no,tokenX:qt,tokenY:kt,tokenXPriceData:ro,tokenYPriceData:ht,xToY:wo,swapHandler:()=>xt(!wo),showFeesLoader:bo,userHasStakes:pt,poolAddress:gr,copyPoolAddressHandler:Cr,navigateAdd:Mt})}),jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,direction:"column",alignItems:"flex-end",className:lo.right,wrap:"nowrap",children:jsxRuntimeExports.jsx(SinglePositionPlot,{data:Vr.length?wo?Vr:Vr.map(ho=>({...ho,x:1/ho.x})).reverse():Array(100).fill(1).map((ho,io)=>({x:io,y:io,index:io})),leftRange:wo?tt:{...nt,x:1/nt.x},rightRange:wo?nt:{...tt,x:1/tt.x},midPrice:{...st,x:st.x**(wo?1:-1)},currentPrice:dt**(wo?1:-1),tokenY:kt,tokenX:qt,ticksLoading:Nt,tickSpacing:eo,min:wo?St:1/Ot,max:wo?Ot:1/St,xToY:wo,initialIsDiscreteValue:uo,onDiscreteChange:go,hasTicksError:oo,reloadHandler:Ro})})]})]})},useStyles$e=makeStyles()(()=>({placeholderText:{...typography.heading1,textAlign:"center",color:colors$2.white.main},loading:{width:150,height:150,margin:"auto"},fullHeightContainer:{height:"100%"}})),SinglePositionWrapper=({id:_e})=>{const{classes:cr}=useStyles$e(),gr=useDispatch(),Cr=useNavigate(),Vr=useSelector(poolsArraySortedByFees),tt=useSelector(networkType);useSelector(address);const nt=useSelector(singlePositionData(_e)),st=useSelector(isLoadingPositionsList),{data:dt,loading:kt,hasError:qt}=useSelector(plotTicks),ro=useSelector(tickMaps),{lowerTick:ht,upperTick:po,loading:no}=useSelector(currentPositionTicks),Nt=useSelector(status$1),[eo,Wt]=reactExports.useState(null),[St,Ot]=reactExports.useState(!0),[uo,go]=reactExports.useState(!1),bo=nt&&poolKeyToString(nt==null?void 0:nt.pool_key)||"";reactExports.useEffect(()=>{nt&&nt.tokenX&&nt.tokenY&&gr(actions$1.getTicksAndTickMaps({tokenFrom:nt.tokenX.assetAddress,tokenTo:nt.tokenY.assetAddress,allPools:Vr}))},[eo,nt==null?void 0:nt.tokenX,nt==null?void 0:nt.tokenY]),reactExports.useEffect(()=>{nt&&nt.pool_key&&eo===null&&ro[bo]!==void 0&&(Wt(!0),gr(actions$2.getCurrentPositionTicks({poolKey:nt.pool_key,lowerTickIndex:BigInt(nt.lower_tick_index),upperTickIndex:BigInt(nt.upper_tick_index)})),gr(actions$2.getCurrentPlotTicks({poolKey:nt.pool_key,isXtoY:!0})))},[nt,nt==null?void 0:nt.pool_key,ro,eo]),reactExports.useEffect(()=>{eo===!0&&!no&&Wt(!1)},[no]);const oo=reactExports.useMemo(()=>nt!=null&&nt.poolData?{index:Number(nt.poolData.pool.current_tick_index),x:calcYPerXPriceByTickIndex(nt.poolData.pool.current_tick_index,nt.tokenX.decimals,nt.tokenY.decimals)}:{index:0n,x:0},[nt]),Ro=reactExports.useMemo(()=>nt?{index:nt.lower_tick_index,x:calcPrice(nt.lower_tick_index,!0,nt.tokenX.decimals,nt.tokenY.decimals)}:{index:0n,x:0},[nt==null?void 0:nt.pool_key]),pt=reactExports.useMemo(()=>nt?{index:nt.upper_tick_index,x:calcPrice(nt.upper_tick_index,!0,nt.tokenX.decimals,nt.tokenY.decimals)}:{index:0n,x:0},[nt==null?void 0:nt.pool_key]),lo=reactExports.useMemo(()=>nt?calcYPerXPriceByTickIndex(nt.lower_tick_index,nt.tokenX.decimals,nt.tokenY.decimals):0,[nt==null?void 0:nt.lower_tick_index]),so=reactExports.useMemo(()=>nt?calcYPerXPriceByTickIndex(nt.upper_tick_index,nt.tokenX.decimals,nt.tokenY.decimals):0,[nt==null?void 0:nt.upper_tick_index]),wo=reactExports.useMemo(()=>nt!=null&&nt.poolData?calcYPerXPriceByTickIndex(nt.poolData.pool.current_tick_index,nt.tokenX.decimals,nt.tokenY.decimals):0,[nt]),[xt,Mt]=reactExports.useMemo(()=>{if(nt!=null&&nt.poolData){const Wo={liquidity:BigInt(nt.poolData.pool.liquidity),sqrt_price:BigInt(nt.poolData.pool.sqrt_price),current_tick_index:nt.poolData.pool.current_tick_index,fee_growth_global_x:BigInt(nt.poolData.pool.fee_growth_global_x),fee_growth_global_y:BigInt(nt.poolData.pool.fee_growth_global_y),fee_protocol_token_x:BigInt(nt.poolData.pool.fee_protocol_token_x),fee_protocol_token_y:BigInt(nt.poolData.pool.fee_protocol_token_y),start_timestamp:nt.poolData.pool.start_timestamp,last_timestamp:nt.poolData.pool.last_timestamp,fee_receiver:nt.poolData.pool.fee_receiver},Yn=calculateTokenAmounts(Wo,nt),ba=Yn.x,_a=Yn.y;return[+printBigint(ba,nt.tokenX.decimals),+printBigint(_a,nt.tokenY.decimals)]}return[0,0]},[nt]),[ho,io]=reactExports.useMemo(()=>{if(eo===!1&&(nt!=null&&nt.poolData)&&typeof ht<"u"&&typeof po<"u"&&nt.poolData){const Wo={liquidity:BigInt(nt.poolData.pool.liquidity),sqrt_price:BigInt(nt.poolData.pool.sqrt_price),current_tick_index:nt.poolData.pool.current_tick_index,fee_growth_global_x:BigInt(nt.poolData.pool.fee_growth_global_x),fee_growth_global_y:BigInt(nt.poolData.pool.fee_growth_global_y),fee_protocol_token_x:BigInt(nt.poolData.pool.fee_protocol_token_x),fee_protocol_token_y:BigInt(nt.poolData.pool.fee_protocol_token_y),start_timestamp:nt.poolData.pool.start_timestamp,last_timestamp:nt.poolData.pool.last_timestamp,fee_receiver:nt.poolData.pool.fee_receiver},Yn=calculateFee(Wo,nt,ht,po),ba=Yn.x,_a=Yn.y;return Ot(!1),[+printBigint(ba,nt.tokenX.decimals),+printBigint(_a,nt.tokenY.decimals)]}return[0,0]},[nt,ht,po,eo]),co=reactExports.useMemo(()=>kt&&nt?createPlaceholderLiquidityPlot(!0,10,nt.pool_key.fee_tier.tick_spacing,nt.tokenX.decimals,nt.tokenY.decimals):dt,[dt,kt,nt,nt==null?void 0:nt.tokenX,nt==null?void 0:nt.tokenY]),mo=localStorage.getItem("IS_PLOT_DISCRETE")?localStorage.getItem("IS_PLOT_DISCRETE")==="true":!0,Bo=Wo=>{localStorage.setItem("IS_PLOT_DISCRETE",Wo?"true":"false")},[So,Tt]=reactExports.useState(void 0),[vo,Co]=reactExports.useState(void 0);reactExports.useEffect(()=>{if(!nt)return;const Wo=nt.tokenX.coingeckoId??"";Wo.length?getCoingeckoTokenPrice(Wo).then(ba=>Tt(ba)).catch(()=>Tt(getMockedTokenPrice(nt.tokenX.symbol,tt))):Tt(void 0);const Yn=nt.tokenY.coingeckoId??"";Yn.length?getCoingeckoTokenPrice(Yn).then(ba=>Co(ba)).catch(()=>Co(getMockedTokenPrice(nt.tokenY.symbol,tt))):Co(void 0)},[nt]);const xo=(Wo,Yn)=>{gr(actions$4.add({message:Wo,variant:Yn,persist:!1}))};reactExports.useEffect(()=>{const Wo=setTimeout(()=>{go(!0)},1e3);return()=>{clearTimeout(Wo)}},[Nt]),reactExports.useEffect(()=>{uo&&go(!1)},[Nt]),reactExports.useEffect(()=>{Po()},[]);const Po=()=>{Ot(!0),gr(actions$2.getSinglePosition(_e)),nt&&(gr(actions$2.getCurrentPlotTicks({poolKey:nt.pool_key,isXtoY:!0,fetchTicksAndTickmap:!0})),gr(actions$3.getBalances([nt==null?void 0:nt.pool_key.token_x,nt==null?void 0:nt.pool_key.token_y])))};return nt?jsxRuntimeExports.jsx(PositionDetails,{tokenXAddress:nt.pool_key.token_x,tokenYAddress:nt.pool_key.token_y,poolAddress:nt?poolKeyToString(nt.pool_key):"",copyPoolAddressHandler:xo,detailsData:co,midPrice:oo,leftRange:Ro,rightRange:pt,currentPrice:wo,onClickClaimFee:()=>gr(actions$2.claimFee({index:_e,addressTokenX:nt==null?void 0:nt.pool_key.token_x,addressTokenY:nt==null?void 0:nt.pool_key.token_y})),closePosition:()=>gr(actions$2.closePosition({positionIndex:_e,onSuccess:()=>{Cr("/positions")},addressTokenX:nt.pool_key.token_x,addressTokenY:nt.pool_key.token_y})),ticksLoading:kt,tickSpacing:nt.pool_key.fee_tier.tick_spacing,tokenX:{name:nt.tokenX.symbol,icon:nt.tokenX.logoURI,decimal:nt.tokenX.decimals,balance:+printBigint(BigInt(nt.tokenX.balance)??0n,nt.tokenX.decimals),liqValue:xt,claimValue:ho,usdValue:typeof(So==null?void 0:So.price)>"u"?void 0:So.price*+printBigint(BigInt(nt.tokenX.balance)??0n,nt.tokenX.decimals)},tokenXPriceData:So,tokenY:{name:nt.tokenY.symbol,icon:nt.tokenY.logoURI,decimal:nt.tokenY.decimals,balance:+printBigint(BigInt(nt.tokenY.balance)??0n,nt.tokenY.decimals),liqValue:Mt,claimValue:io,usdValue:typeof(vo==null?void 0:vo.price)>"u"?void 0:vo.price*+printBigint(BigInt(nt.tokenY.balance)??0n,nt.tokenY.decimals)},tokenYPriceData:vo,fee:BigInt(nt.pool_key.fee_tier.fee),min:lo,max:so,initialIsDiscreteValue:mo,onDiscreteChange:Bo,showFeesLoader:St,hasTicksError:qt,reloadHandler:()=>{gr(actions$2.getCurrentPlotTicks({poolKey:nt.pool_key,isXtoY:!0}))}}):st&&Nt===Status.Initialized||!nt&&Nt===Status.Uninitialized&&!uo?jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"center",alignItems:"center",className:cr.fullHeightContainer,children:jsxRuntimeExports.jsx("img",{src:loader$1,className:cr.loading})}):!nt&&Nt===Status.Initialized&&uo?jsxRuntimeExports.jsx(Navigate,{to:"/positions"}):jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"center",alignItems:"center",className:cr.fullHeightContainer,children:jsxRuntimeExports.jsx(EmptyPlaceholder,{desc:"Position does not exist in your list!"})})},useStyles$d=makeStyles()(_e=>({container:{backgroundColor:"transparent",marginTop:45,paddingInline:138,minHeight:"70vh",[_e.breakpoints.down("md")]:{paddingInline:36},[_e.breakpoints.down("sm")]:{paddingInline:10},[_e.breakpoints.down("xs")]:{paddingInline:16}}})),SinglePositionPage=()=>{const{address:_e,id:cr}=useParams(),{classes:gr}=useStyles$d();return jsxRuntimeExports.jsx(Grid,{container:!0,className:gr.container,justifyContent:"center",children:jsxRuntimeExports.jsx(Grid,{item:!0,children:jsxRuntimeExports.jsx(SinglePositionWrapper,{address:_e??"",id:cr?BigInt(cr):-1n})})})},workInProgress="/v3/assets/work-in-progress-vtvs62rR.png",useStyles$c=makeStyles()(()=>({container:{display:"flex",minHeight:"70vh",marginTop:"65px",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",paddingInline:94},workInProgress:{height:231,width:799}})),StatsPage=()=>{const{classes:_e}=useStyles$c();return jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx("img",{className:_e.workInProgress,src:workInProgress,alt:"Work in progress icon"})})},useStyles$b=makeStyles()(_e=>({headerButton:{background:colors$2.oraidex.light,color:colors$2.white.main,paddingInline:12,borderRadius:10,textTransform:"none",...typography.body1,lineHeight:"22px",height:40,"&:hover":{background:colors$2.blue.deep},"&:active":{"& #downIcon":{transform:"rotateX(180deg)"}}},label:{WebkitPaddingBefore:"2px"},headerButtonConnect:{background:colors$2.oraidex.greenLinearGradientOpacity,color:colors$2.oraidex.newDark,paddingInline:12,borderRadius:10,textTransform:"none",...typography.body1,height:40,minWidth:130,[_e.breakpoints.down("xs")]:{minWidth:100,width:130},"&:hover":{boxShadow:`0 0 15px ${colors$2.oraidex.light}`,backgroundColor:colors$2.oraidex.light}},headerButtonConnected:{background:colors$2.oraidex.light,color:colors$2.white.main,paddingInline:12,borderRadius:10,textTransform:"none",...typography.body1,height:40,"&:hover":{background:colors$2.blue.deep}},headerButtonTextEllipsis:{textTransform:"none",overflow:"hidden",textOverflow:"ellipsis",color:colors$2.oraidex.neutralText,...typography.body1,whiteSpace:"nowrap"},disabled:{opacity:1},paper:{background:"transparent",boxShadow:"none"},startIcon:{marginLeft:0,marginBottom:3},endIcon:{minWidth:20,marginTop:2},innerEndIcon:{marginLeft:0,marginBottom:3}})),useStyles$a=makeStyles()(()=>({root:{background:colors$2.oraidex.component,width:170,borderRadius:20,marginTop:8,padding:8},list:{background:"transparent",borderRadius:5,marginTop:7,padding:2},listItem:{color:colors$2.oraidex.lightGrey,borderRadius:11,padding:"6px 7px",width:"100%",cursor:"pointer",display:"flex",alignItems:"center","&:hover":{color:colors$2.white.main,background:colors$2.oraidex.light},"&:first-of-type":{marginBottom:"4px"},"&:not(:first-of-type)":{margin:"4px 0"},"&:last-of-type":{}},title:{...typography.body1,margin:10},dotIcon:{width:12,marginLeft:"auto",color:colors$2.oraidex.green,display:"none"},icon:{width:20,height:20,display:"inline",float:"left",marginRight:8},name:{textTransform:"capitalize",...typography.body2,float:"left",paddingTop:"2px"},paper:{background:"transparent",boxShadow:"none"},active:{background:colors$2.oraidex.light,color:colors$2.white.main,"& $icon":{opacity:1},"& $dotIcon":{display:"block"}}})),ExitToApp=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp"),ConnectWallet=({open:_e,anchorEl:cr,handleClose:gr,callDisconect:Cr})=>{const{classes:Vr}=useStyles$a();return jsxRuntimeExports.jsx(Popover,{classes:{paper:Vr.paper},open:_e,anchorEl:cr,onClose:gr,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:jsxRuntimeExports.jsx(Grid,{className:Vr.root,container:!0,alignContent:"space-around",direction:"column",children:jsxRuntimeExports.jsxs(Grid,{item:!0,className:Vr.listItem,onClick:Cr,children:[jsxRuntimeExports.jsx(ExitToApp,{className:Vr.icon}),jsxRuntimeExports.jsx(Typography,{className:Vr.name,children:"Disconnect"})]})})})},ChangeWalletButton=({name:_e,onConnect:cr,connected:gr,startIcon:Cr,hideArrow:Vr,onDisconnect:tt,className:nt})=>{const{classes:st}=useStyles$b(),[dt,kt]=React$3.useState(null),[qt,ro]=React$3.useState(!1),ht=Nt=>{if(!gr){cr();return}kt(Nt.currentTarget),blurContent(),ro(!0)},po=()=>{unblurContent(),ro(!1)},no=()=>{tt(),unblurContent(),ro(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{id:"connect-wallet-button",className:classNames(nt,gr?st.headerButtonConnected:st.headerButtonConnect),disabled:!0,variant:"contained",classes:{disabled:st.disabled,startIcon:st.startIcon,endIcon:st.innerEndIcon},sx:{"& .MuiButton-label":st.label},onClick:ht,startIcon:Cr,endIcon:gr&&!Vr?jsxRuntimeExports.jsx(default_1$3,{className:st.endIcon}):void 0,children:jsxRuntimeExports.jsx(Typography,{className:st.headerButtonTextEllipsis,children:_e})}),jsxRuntimeExports.jsx(ConnectWallet,{open:qt,anchorEl:dt,handleClose:po,callDisconect:no})]})},useStyles$9=makeStyles()(()=>({general:{width:26,maxWidth:26,height:14,...typography.tiny2,background:"rgba(46, 224, 154, 0.8)",borderRadius:4,marginLeft:4,marginTop:1,textTransform:"none","&:hover":{background:`${colors$2.oraidex.green} !important`},[theme.breakpoints.down("sm")]:{...typography.tiny2,width:26,maxWidth:26,height:14,marginTop:1}},activeButton:{background:`${colors$2.oraidex.green} !important`},disabled:{...typography.tiny2,display:"none",width:20,maxWidth:26,height:15,color:`${colors$2.oraidex.dark} !important`,background:`${colors$2.oraidex.light} !important`,"&:hover":{background:colors$2.oraidex.light,cursor:"default"}}})),OutlinedButton=({name:_e,onClick:cr,color:gr="primary",className:Cr,disabled:Vr=!1,startIcon:tt,labelClassName:nt})=>{const{classes:st}=useStyles$9();return jsxRuntimeExports.jsx(Button,{className:classNames(st.general,!Vr&&st.activeButton,Cr),variant:"contained",color:gr,classes:{disabled:st.disabled},disabled:Vr,type:cr?"button":"submit",startIcon:tt,onClick:cr,sx:{"& .MuiButton-label":classNames(nt)},children:_e})},useStyles$8=makeStyles()((_e,{walletDisconnected:cr})=>({amountInput:{background:colors$2.oraidex.newDark,color:colors$2.oraidex.light,borderRadius:20,...typography.heading2,width:"100%",textAlign:"right",transition:"all .4s","& ::placeholder":{textAlign:"right"}},maxButton:{color:colors$2.oraidex.greenLinearGradient,...typography.body4,borderRadius:4,width:26,minWidth:26,height:14,marginLeft:4,fontSize:12,background:"none !important",outline:"none",boxShadow:"none","&:hover":{background:"none !important",opacity:.7},[_e.breakpoints.down("sm")]:{width:26,minWidth:26,height:14,marginTop:2}},maxButtonNotActive:{backgroundColor:colors$2.oraidex.light,"&:hover":{backgroundColor:colors$2.oraidex.light,cursor:"default"}},select:{marginRight:20},input:{textAlign:"right",color:colors$2.white.main,"& ::placeholder":{textAlign:"right"}},label:{top:-1,color:colors$2.oraidex.dark},balanceContainer:{display:"flex",alignItems:"center",cursor:"pointer",paddingBlock:6,flexShrink:1,marginRight:10},BalanceTypography:{color:colors$2.oraidex.neutralText,...typography.caption2,marginRight:3,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center"},bal:{color:colors$2.oraidex.text},walletBalanace:{color:colors$2.oraidex.neutralText},exchangeContainer:{padding:`10px 15px ${cr?"10px":"0"} 15px `,display:"flex"},noData:{color:colors$2.oraidex.warning,...typography.caption2,display:"flex",flexDirection:"row",cursor:"default",paddingBottom:10},noDataIcon:{marginRight:5,height:9.5,width:9.5,border:"1px solid #EFD063",color:colors$2.oraidex.warning,borderRadius:"50%",fontSize:8,lineHeight:"10px",fontWeight:400,textAlign:"center",alignSelf:"center",cursor:"default"},loading:{width:15,height:15},loadingBalance:{padding:"0 10px 0 20px",width:15,height:15},tooltip:{background:colors$2.oraidex.componentBcg,border:`1px solid ${colors$2.oraidex.lightGrey}`,borderRadius:12,padding:10,...typography.caption4,fontSize:13,color:colors$2.white.main},percentages:{flexShrink:0,width:"fit-content",justifyContent:"end",height:17},percentage:{...typography.tiny1,borderRadius:5,paddingInline:5,marginRight:3,height:16,lineHeight:"16px",display:"flex",flexShrink:0,marginTop:1},percentagePositive:{color:colors$2.oraidex.green,backgroundColor:`${colors$2.oraidex.green}40`},percentageNegative:{color:colors$2.oraidex.Error,backgroundColor:`${colors$2.oraidex.Error}40`},caption2:{...typography.caption2,color:colors$2.oraidex.neutralText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:hover":{color:colors$2.white.main}},bottom:{padding:12}})),AmountInput=({value:_e,setValue:cr,error:gr,className:Cr,decimal:Vr,placeholder:tt,style:nt,onMaxClick:st,current:dt,tokens:kt,onSelect:qt,disabled:ro,balance:ht,hideBalances:po=!1,handleAddToken:no,commonTokens:Nt,limit:eo,initialHideUnknownTokensValue:Wt,onHideUnknownTokensChange:St,tokenPrice:Ot,priceLoading:uo=!1,isBalanceLoading:go,showMaxButton:bo=!0})=>{const{classes:oo}=useStyles$8({walletDisconnected:po}),Ro=reactExports.useRef(null),pt=[{value:10,decimals:Number(Vr)},{value:100,decimals:4},{value:1e3,decimals:2},{value:1e4,decimals:1},{value:1e6,decimals:2,divider:1e3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],lo=[{value:1e3,decimals:2},{value:1e4,decimals:1},{value:1e6,decimals:2,divider:1e3},{value:1e9,decimals:2,divider:1e6},{value:1/0,decimals:2,divider:1e9}],so=ho=>{const io=/^\d*\.?\d*$/,co=`^\\d*\\.?\\d{0,${Vr}}$`,mo=new RegExp(co,"g");if(ho.target.value===""||mo.test(ho.target.value)){if(typeof eo<"u"&&+ho.target.value>eo)return;const Bo=ho.target.value,So=ho.target.selectionStart;let Tt=ho.target.value;/^\.\d*$/.test(Tt)&&(Tt=`0${Tt}`);const vo=Bo.length-Tt.length;cr(Tt),So!==null&&Tt!==Bo&&setTimeout(()=>{Ro.current&&(Ro.current.selectionStart=Math.max(So-vo,0),Ro.current.selectionEnd=Math.max(So-vo,0))},0)}else io.test(ho.target.value)?mo.test(ho.target.value)||cr(ho.target.value.slice(0,ho.target.value.length-1)):cr("")},wo=dt?dt.symbol:"",xt=Ot&&ht?Ot*+ht:0,Mt=ht?" "+formatNumbers(pt)(ht.toString()):0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",wrap:"nowrap",className:oo.exchangeContainer,children:[jsxRuntimeExports.jsx(Select,{centered:!0,tokens:kt,onSelect:qt,current:dt,className:oo.select,hideBalancesInModal:po,handleAddToken:no,commonTokens:Nt,initialHideUnknownTokensValue:Wt,onHideUnknownTokensChange:St}),jsxRuntimeExports.jsx(Input$2,{inputRef:Ro,error:!!gr,className:classNames(oo.amountInput,Cr),classes:{input:oo.input},style:nt,type:"text",value:_e,disableUnderline:!0,placeholder:tt,onChange:so})]}),!po&&jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",alignItems:"center",direction:"row",wrap:"nowrap",className:oo.bottom,children:[jsxRuntimeExports.jsxs(Grid,{className:oo.balanceContainer,onClick:st,children:[jsxRuntimeExports.jsxs(Typography,{className:oo.BalanceTypography,children:["Balance:",go?jsxRuntimeExports.jsx("img",{src:loadingAnimation,className:oo.loadingBalance}):jsxRuntimeExports.jsxs("span",{className:oo.bal,children:["\xA0",Mt]}),showPrefix(Number(ht))," ",jsxRuntimeExports.jsxs("span",{className:oo.bal,children:["\xA0",wo.slice(0,8)]}),wo.length>8?"...":""]}),bo&&jsxRuntimeExports.jsx(OutlinedButton,{name:"Max",color:"primary",onClick:st,className:oo.maxButton,labelClassName:oo.label,disabled:ro&&isNaN(Number(ht))?ro:isNaN(Number(ht))||po})]}),jsxRuntimeExports.jsx(Grid,{className:oo.percentages,container:!0,alignItems:"center",wrap:"nowrap",children:dt?uo?jsxRuntimeExports.jsx("img",{src:loadingAnimation,className:oo.loading}):Ot?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Typography,{className:oo.caption2,children:["\u2248$",formatNumbers(lo)(xt.toString())+showPrefix(xt)]})}):jsxRuntimeExports.jsx(Tooltip,{title:"Cannot fetch price of token",placement:"bottom",classes:{tooltip:oo.tooltip},children:jsxRuntimeExports.jsxs(Typography,{className:oo.noData,children:[jsxRuntimeExports.jsx("span",{className:oo.noDataIcon,children:"?"}),"No data"]})}):null})]})]})},useStyles$7=makeStyles()((_e,{open:cr})=>({wrapper:{padding:0,overflow:"hidden",transition:"max-height 300ms",maxHeight:cr?160:0,marginBottom:16},innerWrapper:{},row:{marginTop:8},label:{...typography.caption2,color:colors$2.oraidex.neutralText,lineHeight:"21px",marginRight:3},value:{...typography.caption2,lineHeight:"21px",color:colors$2.oraidex.text},loadingContainer:{width:20,justifyContent:"center",overflow:"hidden"},loading:{width:15,height:15}})),TransactionDetailsBox=({open:_e,fee:cr,exchangeRate:gr,slippage:Cr,priceImpact:Vr,isLoadingRate:tt=!1})=>{const{classes:nt}=useStyles$7({open:_e}),st=Number(printBigint(cr,PERCENTAGE_SCALE-2)),dt=Vr*100;return jsxRuntimeExports.jsx(Grid,{container:!0,className:nt.wrapper,children:jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",wrap:"nowrap",className:nt.innerWrapper,children:[jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Exchange rate:"}),tt?jsxRuntimeExports.jsx("img",{src:loadingAnimation,className:nt.loading}):jsxRuntimeExports.jsx(Typography,{className:nt.value,children:gr.val===1/0?"-":`${gr.val.toFixed(gr.decimal)} ${gr.symbol}`})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Fee:"}),jsxRuntimeExports.jsx(Typography,{className:nt.value,children:`${st}%`})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Price impact:"}),jsxRuntimeExports.jsx(Typography,{className:nt.value,children:dt<.01?"<0.01%":`${dt.toFixed(2)}%`})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"space-between",className:nt.row,children:[jsxRuntimeExports.jsx(Typography,{className:nt.label,children:"Slippage tolerance:"}),jsxRuntimeExports.jsxs(Typography,{className:nt.value,children:[Cr,"%"]})]})]})})},useStyles$6=makeStyles()(_e=>({"@keyframes slide-down":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(60%)"},"100%":{transform:"translateY(0%)"}},"@keyframes slide-up":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(-70%)"},"100%":{transform:"translateY(0%)"}},"@keyframes slide-down-xs":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(90%)"},"100%":{transform:"translateY(0%)"}},"@keyframes slide-up-xs":{"0%":{transform:"translateY(0%)"},"50%":{transform:"translateY(-110%)"},"100%":{transform:"translateY(0%)"}},swapWrapper:{display:"flex",flexDirection:"column",[_e.breakpoints.down("xs")]:{padding:"0 16px"}},header:{display:"flex",alignItems:"center",justifyContent:"space-between",width:500,position:"relative",paddingBottom:24,"& h1":{...typography.heading4,color:colors$2.white.main}},headerLeft:{flex:1,visibility:"hidden"},refreshIcon:{width:26,height:21,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}},settingsIcon:{width:20,height:20,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}},divider:{width:"100%",borderBottom:"1px solid",borderColor:colors$2.oraidex.newDark},HiddenTransactionButton:{paddingInline:0,width:"100%",background:"none !important",border:"none",minWidth:"auto",color:colors$2.oraidex.lightHover,"&:hover":{filter:"brightness(1.15)",cursor:"pointer"}},transactionDetailDisabled:{width:"100%",background:"none !important",border:"none",minWidth:"auto",color:colors$2.oraidex.lightHover},swapControls:{display:"flex",gap:8,flex:1,justifyContent:"flex-end"},refreshIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none","&:hover":{background:"none"},"&:disabled":{opacity:.5}},settingsIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none","&:hover":{background:"none"}},slippage:{position:"absolute"},root:{background:"#1B1D19",borderRadius:12,paddingInline:24,paddingBottom:22,paddingTop:16,width:500,border:"1px solid #232521",boxShadow:"0px 4px 24px 0px rgba(0, 0, 0, 0.05)"},connectWalletButton:{height:"48px !important",borderRadius:"16px !important",width:"100%",[_e.breakpoints.down("xs")]:{width:"100% !important"}},tokenComponentTextContainer:{display:"flex",justifyContent:"space-between",position:"relative"},amountInput:{position:"relative"},amountInputDown:{animation:"$slide-down 300ms linear",[_e.breakpoints.down("xs")]:{animation:"$slide-down-xs 300ms linear"}},amountInputUp:{animation:"$slide-up 300ms linear",[_e.breakpoints.down("xs")]:{animation:"$slide-up-xs 300ms linear"}},swapArrowBox:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:colors$2.oraidex.component,width:50,height:50,borderRadius:"50%",position:"absolute",zIndex:2,left:"50%",top:"0%",transform:"translateX(-50%) translateY(-40%)",cursor:"pointer",transition:"background-color 200ms",[_e.breakpoints.down("xs")]:{transform:"translateX(-50%) translateY(-14%)"}},swapImgRoot:{width:50,height:50,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:100,"&:hover":{opacity:.7}},swapArrows:{width:"100%",height:"100%",objectFit:"contain",marginBlock:13,marginInline:6,transition:".4s all"},transactionDetails:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",flexFlow:"row nowrap",marginTop:5,position:"relative",cursor:"default",filter:"brightness(0.9)"},transactionDetailsWrapper:{width:"100%",display:"flex",flexDirection:"row",margin:"16px 0 8px 0",borderRadius:"10px",alignItems:"center",justifyContent:"space-between"},transactionDetailsHeader:{...typography.heading5,whiteSpace:"nowrap",pointerEvents:"none",color:colors$2.oraidex.text,fontSize:17,[_e.breakpoints.down("xs")]:{...typography.caption2}},swapButton:{width:"100%",height:48},exchangeRoot:{marginTop:24,position:"relative",background:colors$2.oraidex.newDark,borderRadius:8},transactionTop:{marginTop:10},hideBalance:{padding:"5px 15px 5px 15px"},transactionBottom:{marginTop:10,[_e.breakpoints.down("xs")]:{marginTop:36}},transtactionData:{border:`1px solid ${colors$2.oraidex.light}`,borderRadius:"10px",padding:"5px 15px 5px 15px",color:colors$2.oraidex.lightGrey},buttonSelectDisabled:{background:`${colors$2.oraidex.greenLinearGradient} !important`,"&:hover":{filter:"brightness(1.15)",boxShadow:"0px 3px 1px -2px rgba(43, 193, 144, 0.2),0px 1px 2px 0px rgba(45, 168, 128, 0.14),0px 0px 5px 7px rgba(59, 183, 142, 0.12)"}},ButtonSwapActive:{transition:"filter 0.3s linear",background:`${colors$2.oraidex.greenLinearGradient} !important`,filter:"brightness(0.8)","&:hover":{filter:"brightness(1.15)",boxShadow:"0px 3px 1px -2px rgba(43, 193, 144, 0.2),0px 1px 2px 0px rgba(45, 168, 128, 0.14),0px 0px 5px 7px rgba(59, 183, 142, 0.12)"}},infoIcon:{width:10,height:10,marginLeft:4,marginBottom:2,filter:"brightness(0.8)",pointerEvents:"none"}})),Swap=({isFetchingNewPool:_e,walletStatus:cr,tokens:gr,pools:Cr,tickmap:Vr,onSwap:tt,onSetPair:nt,progress:st,poolTicks:dt,isWaitingForNewPool:kt,onConnectWallet:qt,onDisconnectWallet:ro,initialTokenFromIndex:ht,initialTokenToIndex:po,handleAddToken:no,commonTokens:Nt,initialHideUnknownTokensValue:eo,onHideUnknownTokensChange:Wt,tokenFromPriceData:St,tokenToPriceData:Ot,priceFromLoading:uo,priceToLoading:go,onSlippageChange:bo,initialSlippage:oo,isBalanceLoading:Ro,swapData:pt,simulateResult:lo})=>{var Ko,ps,Kn;const{classes:so}=useStyles$6();let wo;(gs=>{gs.FROM="from",gs.TO="to"})(wo||(wo={}));const[xt,Mt]=React$3.useState(null),[ho,io]=React$3.useState(null),[co,mo]=React$3.useState(null),[Bo,So]=React$3.useState(!1),[Tt,vo]=React$3.useState(""),[Co,xo]=React$3.useState(""),[Po,Wo]=React$3.useState(null),[Yn,ba]=React$3.useState(0),[_a,$s]=React$3.useState(oo),[vs,ss]=React$3.useState(!1),[Ts,qo]=React$3.useState(!1),[Js,Vo]=React$3.useState(!1),[zo,$n]=React$3.useState("from"),[Tn,ko]=React$3.useState(!1),es=reactExports.useRef(0),fs=useDispatch();reactExports.useEffect(()=>{if(gr.length&&xt===null&&ho===null){const gs=Nt.length?gr.findIndex(H0=>H0.assetAddress===Nt[0]):-1;Mt(ht!==null?ht:gs!==-1?gs:0),io(po)}},[gr]),reactExports.useEffect(()=>{nt(xt===null?null:gr[xt].assetAddress,ho===null?null:gr[ho].assetAddress)},[xt,ho,Cr.length]),reactExports.useEffect(()=>{zo==="from"&&!(Tt===""&&Co==="")&&Es()},[Tt,ho,xt,_a,Object.keys(dt).length,Object.keys(Vr).length]),reactExports.useEffect(()=>{zo==="to"&&!(Tt===""&&Co==="")&&Es()},[Co,ho,xt,_a,Object.keys(dt).length,Object.keys(Vr).length]),reactExports.useEffect(()=>{st==="none"&&!(Tt===""&&Co==="")&&Es()},[st]);const Es=()=>{ss(!0),clearTimeout(es.current);const gs=setTimeout(()=>{ms().finally(()=>{ss(!1)})},500);es.current=gs};reactExports.useEffect(()=>{if(xt!==null&&ho!==null)if(zo==="from"){const gs=Us(gr[ho]);xo(+gs==0?"":trimLeadingZeros(gs))}else{const gs=Us(gr[xt]);vo(+gs==0?"":trimLeadingZeros(gs))}},[lo]),reactExports.useEffect(()=>{ks()},[ho,xt,Cr.length]),reactExports.useEffect(()=>{const gs=Tt;vo(Co),xo(gs),$n(zo==="from"?"to":"from")},[Po]),reactExports.useEffect(()=>{ko(!1)},[xt,ho]);const Us=gs=>Number(printBigint(lo.amountOut,gs.decimals)).toFixed(Number(gs.decimals)),ms=async()=>{xt!==null&&ho!==null&&pt&&fs(zo==="from"?actions.getSimulateResult({fromToken:gr[xt].assetAddress,toToken:gr[ho].assetAddress,amount:convertBalanceToBigint(Tt,Number(gr[xt].decimals)),byAmountIn:!0}):actions.getSimulateResult({fromToken:gr[xt].assetAddress,toToken:gr[ho].assetAddress,amount:convertBalanceToBigint(Co,Number(gr[ho].decimals)),byAmountIn:!1}))},bs=(gs,H0)=>{const j0=Cr.find(hs=>gs===hs.pool_key.token_x&&H0===hs.pool_key.token_y||gs===hs.pool_key.token_y&&H0===hs.pool_key.token_x);if(!j0){const hs=gs+"-"+H0+"-0-0";if(SWAP_HOPS_CACHE[hs])return!0;{const Ss=H0+"-"+gs+"-0-0";return!!SWAP_HOPS_CACHE[Ss]}}return!!j0},ks=()=>{if(xt!==null&&ho!==null){const gs=Us(gr[ho]);xo(+gs==0?"":trimLeadingZeros(gs))}},Ds=()=>xt!==null&&ho!==null&&vs||kt?"Loading":cr!==Status.Initialized?"Connect a wallet":xt===null||ho===null?"Select a token":xt===ho?"Select different tokens":bs(gr[xt].assetAddress,gr[ho].assetAddress)?lo.poolKey===null&&(b0(SwapError.InsufficientLiquidity)||b0(SwapError.MaxTicksCrossed))?"Insufficient liquidity":convertBalanceToBigint(Tt,Number(gr[xt].decimals))>gr[xt].balance?"Insufficient balance":convertBalanceToBigint(Tt,Number(gr[xt].decimals))===0n||lo.poolKey===null&&b0(SwapError.AmountIsZero)?"Insufficient volume":"Swap Tokens":"No route found",Fs=()=>Ds()==="Swap Tokens"||Ds()==="Loading"||Ds()==="Connect a wallet",d0=gs=>{$s(gs),bo(gs)},v0=gs=>{mo(gs.currentTarget),blurContent(),qo(!0)},b0=gs=>lo.errors?lo.errors.some(H0=>H0===gs):!1,R0=()=>{unblurContent(),qo(!1)},D0=()=>{Vo(!Js)};reactExports.useEffect(()=>{let gs;return Bo&&(gs=setTimeout(()=>So(!1),500)),()=>{gs&&clearTimeout(gs)}},[Bo]);const zs=xt===null||ho===null||Tt===""||Co===""?0:+Co/+Tt,n0=xt!==null&&ho!==null&&Fs()&&(Ds()==="Loading"||zs!==0&&zs!==1/0&&!isNaN(zs))&&Tt!==""&&Co!=="",[fo,Qo]=reactExports.useState(Js&&n0);return reactExports.useEffect(()=>{Ds()!=="Loading"&&Qo(Js&&n0)},[Js,n0]),reactExports.useEffect(()=>{ms()},[_e]),jsxRuntimeExports.jsx(Grid,{container:!0,className:so.swapWrapper,alignItems:"center",children:jsxRuntimeExports.jsxs(Grid,{container:!0,className:so.root,direction:"column",children:[jsxRuntimeExports.jsxs(Grid,{container:!0,className:so.header,children:[jsxRuntimeExports.jsx("div",{className:so.headerLeft}),jsxRuntimeExports.jsx(Typography,{component:"h1",children:"Swap Tokens"}),jsxRuntimeExports.jsx(Box,{className:so.swapControls,children:jsxRuntimeExports.jsx(Button,{onClick:v0,className:so.settingsIconBtn,children:jsxRuntimeExports.jsx("img",{src:settingIcon,className:so.settingsIcon})})}),jsxRuntimeExports.jsx(Grid,{className:so.slippage,children:jsxRuntimeExports.jsx(Slippage,{open:Ts,setSlippage:d0,handleClose:R0,anchorEl:co,defaultSlippage:"1",initialSlippage:oo})})]}),jsxRuntimeExports.jsx("div",{className:so.divider}),jsxRuntimeExports.jsx(Box,{className:classNames(so.exchangeRoot,Bo?so.amountInputDown:void 0),children:jsxRuntimeExports.jsx(AmountInput,{value:Tt,balance:xt!==null?printBigint(BigInt(gr[xt].balance),gr[xt].decimals):"- -",decimal:xt!==null?gr[xt].decimals:12,className:so.amountInput,setValue:gs=>{gs.match(/^\d*\.?\d*$/)&&(vo(gs),$n("from"))},placeholder:`0.${"0".repeat(6)}`,onMaxClick:()=>{xt!==null&&($n("from"),vo(printBigint(BigInt(gr[xt].balance),gr[xt].decimals)))},tokens:gr,current:xt!==null?gr[xt]:null,onSelect:gs=>{gs===ho?(Mt(ho),io(xt)):Mt(gs)},disabled:xt===null,hideBalances:cr!==Status.Initialized,handleAddToken:no,commonTokens:Nt,limit:1e14,initialHideUnknownTokensValue:eo,onHideUnknownTokensChange:Wt,tokenPrice:St==null?void 0:St.price,priceLoading:uo,isBalanceLoading:Ro,showMaxButton:!0})}),jsxRuntimeExports.jsx(Box,{className:so.tokenComponentTextContainer,children:jsxRuntimeExports.jsx(Box,{className:so.swapArrowBox,onClick:()=>{Bo||(So(!Bo),ba(Yn+1),Wo(Po!==null?!Po:!0),setTimeout(()=>{const gs=xt;Mt(ho),io(gs)},50))},children:jsxRuntimeExports.jsx(Box,{className:so.swapImgRoot,children:jsxRuntimeExports.jsx("img",{src:SwapArrows,style:{transform:`rotate(${-Yn*180}deg)`},className:so.swapArrows})})})}),jsxRuntimeExports.jsx(Box,{className:classNames(so.exchangeRoot,so.transactionBottom,Bo?so.amountInputUp:void 0),children:jsxRuntimeExports.jsx(AmountInput,{value:Co,balance:ho!==null?printBigint(BigInt(gr[ho].balance),gr[ho].decimals):"- -",className:so.amountInput,decimal:ho!==null?gr[ho].decimals:12,setValue:gs=>{gs.match(/^\d*\.?\d*$/)&&(xo(gs),$n("to"))},placeholder:`0.${"0".repeat(6)}`,onMaxClick:()=>{xt!==null&&($n("from"),vo(printBigint(BigInt(gr[xt].balance),gr[xt].decimals)))},tokens:gr,current:ho!==null?gr[ho]:null,onSelect:gs=>{gs===xt?(io(xt),Mt(ho)):io(gs)},disabled:xt===null,hideBalances:cr!==Status.Initialized,handleAddToken:no,commonTokens:Nt,limit:1e14,initialHideUnknownTokensValue:eo,onHideUnknownTokensChange:Wt,tokenPrice:Ot==null?void 0:Ot.price,priceLoading:go,isBalanceLoading:Ro,showMaxButton:!1})}),jsxRuntimeExports.jsx(Box,{className:so.transactionDetails,children:jsxRuntimeExports.jsx("button",{onClick:xt!==null&&ho!==null&&Fs()&&Tt!==""&&Co!==""?D0:void 0,className:xt!==null&&ho!==null&&Fs()&&Tt!==""&&Co!==""?so.HiddenTransactionButton:so.transactionDetailDisabled,children:n0?jsxRuntimeExports.jsxs(Grid,{className:so.transactionDetailsWrapper,children:[jsxRuntimeExports.jsxs(Typography,{className:so.transactionDetailsHeader,children:["1"," ",(Ko=gr[Tn?ho:xt])==null?void 0:Ko.symbol," \u2248"," ",Number(Tn?1/zs:zs).toFixed(6)," ",(ps=gr[Tn?xt:ho])==null?void 0:ps.symbol]}),jsxRuntimeExports.jsx(default_1$3,{})]}):null})}),jsxRuntimeExports.jsx(TransactionDetailsBox,{open:Ds()!=="Loading"?Js&&n0:fo,fee:BigInt(((Kn=lo.poolKey)==null?void 0:Kn.fee_tier.fee)??0),exchangeRate:{val:Tn?1/zs:zs,symbol:n0?gr[Tn?xt:ho].symbol:"",decimal:n0?Number(gr[Tn?xt:ho].decimals):0},priceImpact:lo.priceImpact,slippage:+_a,isLoadingRate:Ds()==="Loading"}),cr!==Status.Initialized&&Ds()!=="Loading"?jsxRuntimeExports.jsx(ChangeWalletButton,{name:"Please Connect Wallet",onConnect:qt,connected:!1,onDisconnect:ro,className:so.connectWalletButton}):jsxRuntimeExports.jsx(AnimatedButton,{content:Ds(),className:Ds()==="Connect a wallet"?`${so.swapButton} ${so.buttonSelectDisabled}`:Ds()==="Swap Tokens"&&st==="none"?`${so.swapButton} ${so.ButtonSwapActive}`:so.swapButton,disabled:Ds()!=="Swap Tokens"||st!=="none",onClick:()=>{lo.poolKey===null||xt===null||ho===null||tt(lo.poolKey,BigInt(+_a*Number(PERCENTAGE_DENOMINATOR)/100),lo.targetSqrtPrice,gr[xt].assetAddress,gr[ho].assetAddress,convertBalanceToBigint(Tt,gr[xt].decimals),convertBalanceToBigint(Co,gr[ho].decimals),zo==="from")},progress:st})]})})},WrappedSwap=()=>{const _e=useDispatch(),cr=useSelector(status$1),gr=useSelector(swap),Cr=useSelector(tickMaps),Vr=useSelector(poolsArraySortedByFees),tt=useSelector(swapTokens),nt=useSelector(swapTokensDict),st=useSelector(balanceLoading),{success:dt,inProgress:kt}=useSelector(swap),qt=useSelector(isLoadingLatestPoolsForTransaction),ro=useSelector(networkType),ht=useSelector(simulateResult),[po,no]=reactExports.useState("none"),[Nt,eo]=reactExports.useState(null),[Wt,St]=reactExports.useState(null);reactExports.useEffect(()=>{let So,Tt;return!kt&&po==="progress"&&(no(dt?"approvedWithSuccess":"approvedWithFail"),So=setTimeout(()=>{no(dt?"success":"failed")},1500),Tt=setTimeout(()=>{no("none")},3e3)),()=>{clearTimeout(So),clearTimeout(Tt)}},[dt,kt]),reactExports.useEffect(()=>{Nt!==null&&Wt!==null&&!qt&&_e(actions.setPair({tokenFrom:Nt,tokenTo:Wt}))},[qt]);const Ot=localStorage.getItem(`INVARIANT_LAST_TOKEN_FROM_${networkType}`),uo=localStorage.getItem(`INVARIANT_LAST_TOKEN_TO_${networkType}`),go=Ot===null?null:tt.findIndex(So=>So.assetAddress===Ot),bo=uo===null?null:tt.findIndex(So=>So.assetAddress===uo),oo=localStorage.getItem("HIDE_UNKNOWN_TOKENS")==="true"||localStorage.getItem("HIDE_UNKNOWN_TOKENS")===null,Ro=So=>{localStorage.setItem("HIDE_UNKNOWN_TOKENS",So?"true":"false")},[pt,lo]=reactExports.useState(void 0),[so,wo]=reactExports.useState(!1);reactExports.useEffect(()=>{if(Nt===null)return;const So=nt[Nt.toString()].coingeckoId??"";So.length?(wo(!0),getCoingeckoTokenPrice(So).then(Tt=>lo(Tt)).catch(()=>lo(getMockedTokenPrice(nt[Nt.toString()].symbol,ro))).finally(()=>wo(!1))):lo(void 0)},[Nt]);const[xt,Mt]=reactExports.useState(void 0),[ho,io]=reactExports.useState(!1);reactExports.useEffect(()=>{if(Wt===null)return;const So=nt[Wt.toString()].coingeckoId??"";So.length?(io(!0),getCoingeckoTokenPrice(So).then(Tt=>Mt(Tt)).catch(()=>Mt(getMockedTokenPrice(nt[Wt.toString()].symbol,ro))).finally(()=>io(!1))):Mt(void 0)},[Wt]);const co=localStorage.getItem("INVARIANT_SWAP_SLIPPAGE")??"1",mo=So=>{localStorage.setItem("INVARIANT_SWAP_SLIPPAGE",So)},Bo=(So,Tt)=>{if(_e(actions$3.getBalance()),So===null||Tt==null||(_e(actions$1.getAllPoolsForPairData({first:tt[So].assetAddress,second:tt[Tt].assetAddress})),Wt===null||Nt===null))return;const vo=nt[Wt.toString()].coingeckoId??"";vo.length?(io(!0),getCoingeckoTokenPrice(vo).then(xo=>Mt(xo)).catch(()=>Mt(getMockedTokenPrice(nt[Wt.toString()].symbol,ro))).finally(()=>io(!1))):Mt(void 0);const Co=nt[Nt.toString()].coingeckoId??"";Co.length?(wo(!0),getCoingeckoTokenPrice(Co).then(xo=>lo(xo)).catch(()=>lo(getMockedTokenPrice(nt[Nt.toString()].symbol,ro))).finally(()=>wo(!1))):lo(void 0)};return jsxRuntimeExports.jsx(Swap,{isFetchingNewPool:qt,onRefresh:Bo,onSwap:(So,Tt,vo,Co,xo,Po,Wo,Yn)=>{no("progress"),_e(actions.swap({poolKey:So,slippage:Number(Tt),estimatedPriceAfterSwap:vo,tokenFrom:Co,tokenTo:xo,amountIn:Po,amountOut:Wo,byAmountIn:Yn}))},onSetPair:(So,Tt)=>{eo(So),St(Tt),So!==null&&localStorage.setItem(`INVARIANT_LAST_TOKEN_FROM_${networkType}`,So.toString()),Tt!==null&&localStorage.setItem(`INVARIANT_LAST_TOKEN_TO_${networkType}`,Tt.toString()),So!==null&&Tt!==null&&So!==Tt&&_e(actions$1.getAllPoolsForPairData({first:So,second:Tt}))},onConnectWallet:openWalletSelectorModal,onDisconnectWallet:()=>{_e(actions$3.disconnect())},walletStatus:cr,tokens:tt,pools:Vr,swapData:gr,progress:po,poolTicks:{},isWaitingForNewPool:qt,tickmap:Cr,initialTokenFromIndex:go===-1?null:go,initialTokenToIndex:bo===-1?null:bo,handleAddToken:()=>{},commonTokens:commonTokensForNetworks[ro],initialHideUnknownTokensValue:oo,onHideUnknownTokensChange:Ro,tokenFromPriceData:pt,tokenToPriceData:xt,priceFromLoading:so||st,priceToLoading:ho||st,onSlippageChange:mo,initialSlippage:co,isBalanceLoading:st,simulateResult:ht})},useStyles$5=makeStyles()(()=>({container:{display:"flex",minHeight:"70vh",marginTop:"65px",justifyContent:"center",backgroundColor:"transparent"}})),SwapPage=()=>{const{classes:_e}=useStyles$5();return jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx(WrappedSwap,{})})},useStyles$4=makeStyles()(_e=>({root:{[_e.breakpoints.down("sm")]:{width:"100%"}},poolFilter:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"24px 16px",flexWrap:"wrap",[_e.breakpoints.down("md")]:{flexDirection:"column",gap:"6px"},[_e.breakpoints.down("sm")]:{width:"100%"}},poolFilterRight:{display:"flex",alignItems:"center",justifyContent:"space-between",[_e.breakpoints.down("md")]:{width:"100%"}},poolFilterList:{display:"flex",alignItems:"center",padding:"4px",borderRadius:"99px",[_e.breakpoints.down("md")]:{width:"100%",justifyContent:"space-between"}},poolSearch:{display:"flex",justifyContent:"space-between",alignItems:"center",borderRadius:"99px",[_e.breakpoints.down("md")]:{width:"100%"}},input:{height:"40px",fontSize:"14px",fontWeight:"400",lineHeight:"150%",marginRight:"8px",borderRadius:"99px",color:"#EFEFEF",minWidth:"280px",maxWidth:400,[_e.breakpoints.down("sm")]:{width:"100%",maxWidth:600,marginRight:"0px"}},filterActive:{backgroundColor:"#fff"},filterItem:{padding:"3px 20px",fontSize:"16px",font\u01AFeight:"500",cursor:"pointer",borderRadius:"99px",display:"inline-flex",alignItems:"center",justifyContent:"center",[_e.breakpoints.down("md")]:{width:"100%"}},titleBar:{display:"flex",marginBottom:20},title:{color:colors$2.oraidex.text,...typography.heading4,fontWeight:500},positionsNumber:{width:28,height:28,color:colors$2.oraidex.text,background:colors$2.oraidex.light,marginLeft:8,borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center"},searchRoot:{width:"100%"},searchWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap"},searchBar:{width:221,height:32,padding:"7px 12px",borderRadius:10,background:colors$2.oraidex.black,border:"1px solid #202946",color:colors$2.oraidex.lightGrey,...typography.body2,[_e.breakpoints.down("xs")]:{maxWidth:200}},button:{color:colors$2.oraidex.dark,...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,marginLeft:16,background:"linear-gradient(180deg, rgba(239, 132, 245, 0.8) 0%, rgba(156, 62, 189, 0.8) 100%)","&:hover":{background:"linear-gradient(180deg, #EF84F5 0%, #9C3EBD 100%)",boxShadow:"0px 0px 16px rgba(239, 132, 245, 0.35)"}},buttonSelectDisabled:{...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,cursor:"auto",marginLeft:16,background:`${colors$2.oraidex.light} !important`,"&:hover":{filter:"brightness(1.15)"}},buttonText:{WebkitPaddingBefore:"2px"},noPositionsText:{...typography.heading1,textAlign:"center",color:colors$2.oraidex.text},list:{position:"relative",flex:1},itemLink:{textDecoration:"none",cursor:"pointer","&:not(:last-child)":{display:"block",marginBottom:20,[_e.breakpoints.down("sm")]:{marginBottom:16}}},searchIcon:{width:17},loading:{width:150,height:150,margin:"auto"},placeholder:{margin:"auto"},refreshIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none",marginRight:7,"&:hover":{background:"none"},"&:disabled":{opacity:.5}},refreshIcon:{width:26,height:21,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}}})),Input=({onSearch:_e,...cr})=>{const{classes:gr}=useStyles$4();return jsxRuntimeExports.jsx("input",{className:gr.input,onChange:debounce$1(Cr=>{_e==null||_e(Cr.target.value)},500),...cr})},PositionsFilter=({setSearchValue:_e})=>{const{classes:cr}=useStyles$4();return jsxRuntimeExports.jsx(Grid,{className:cr.root,children:jsxRuntimeExports.jsx("div",{className:cr.poolFilter,children:jsxRuntimeExports.jsx("div",{className:cr.poolFilterRight,children:jsxRuntimeExports.jsx("div",{className:cr.poolSearch,children:jsxRuntimeExports.jsx(Search,{style:null,theme:"light",placeholder:"Search pools",onSearch:gr=>_e(gr)})})})})})},Search=({theme:_e,style:cr,...gr})=>{const Cr=SearchSvg;return jsxRuntimeExports.jsx(Input,{placeholder:"Search positions",style:{paddingLeft:40,backgroundImage:`url(${Cr})`,backgroundRepeat:"no-repeat",backgroundPosition:"10px center",backgroundColor:"#232521",border:"none",outline:"none",minWidth:"unset",...cr},...gr})},useStyles$3=makeStyles()(_e=>({root:{background:colors$2.oraidex.component,borderRadius:16,padding:32,flexWrap:"nowrap",border:"1px solid #232521","&:not(:last-child)":{marginBottom:16},"&:hover":{background:`${colors$2.oraidex.component}B0`},[_e.breakpoints.down("md")]:{padding:16,flexWrap:"wrap"}},icons:{marginRight:12,width:"fit-content",[_e.breakpoints.down("md")]:{marginRight:12}},tokenIcon:{width:32,borderRadius:"100%",[_e.breakpoints.down("xs")]:{width:28},"&:last-child":{position:"relative",right:"10px"}},names:{textOverflow:"ellipsis",overflow:"hidden",...typography.heading2,color:colors$2.oraidex.text,lineHeight:"40px",whiteSpace:"nowrap",fontSize:"18px",[_e.breakpoints.down("lg")]:{...typography.heading2},[_e.breakpoints.down("md")]:{lineHeight:"32px",width:"unset"},[_e.breakpoints.down("sm")]:{...typography.heading3,lineHeight:"25px"}},infoText:{...typography.body1,fontWeight:500,fontSize:16,color:"#EFEFEF",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("xs")]:{...typography.caption1}},suffixText:{...typography.body1,fontWeight:500,fontSize:16,marginLeft:4,color:"#979995",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("sm")]:{...typography.caption1,fontWeight:500}},activeInfoText:{color:"#EFEFEF",fontWeight:400,fontSize:14},greenText:{...typography.body1,color:colors$2.oraidex.green,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("xs")]:{...typography.caption1}},greyText:{...typography.body1,color:"#979995",fontSize:14,fontWeight:400,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[_e.breakpoints.down("xs")]:{...typography.caption1}},liquidity:{background:colors$2.oraidex.light,borderRadius:11,height:36,width:170,marginRight:8,lineHeight:20,[_e.breakpoints.down("md")]:{flex:"1 1 0%"}},fee:{alignSelf:"center",background:"#494949",borderRadius:"8px",display:"flex",alignItems:"center",padding:"4px 12px",width:"fit-content",[_e.breakpoints.down("sm")]:{marginRight:0}},activeFee:{background:"#494949"},infoCenter:{flex:"1 1 0%",alignItems:"center"},minMax:{borderRadius:11,gap:4,height:40,width:"fit-content",paddingInline:10,marginRight:8,[_e.breakpoints.down("sm")]:{width:"100%",marginRight:0,marginTop:8}},value:{background:colors$2.oraidex.light,borderRadius:11,height:36,width:160,paddingInline:12,[_e.breakpoints.down("xs")]:{width:144,paddingInline:6}},mdInfo:{width:"fit-content",flexWrap:"nowrap",[_e.breakpoints.down("md")]:{flexWrap:"nowrap",marginTop:16,width:"100%"},[_e.breakpoints.down("sm")]:{flexWrap:"wrap"}},mdTop:{width:"fit-content",[_e.breakpoints.down("md")]:{width:"100%",justifyContent:"space-between"}},iconsAndNames:{width:"fit-content"},label:{marginRight:2,fontSize:14,color:colors$2.oraidex.neutralTextLight},tooltip:{background:colors$2.oraidex.componentBcg,border:`1px solid ${colors$2.oraidex.lightGrey}`,borderRadius:12,padding:10,...typography.caption4,fontSize:13,color:colors$2.white.main}})),PositionItem=({tokenXName:_e,tokenYName:cr,tokenXIcon:gr,tokenYIcon:Cr,fee:Vr,isActive:tt=!1,tokenXId:nt,poolAddress:st,currentPrice:dt})=>{const{classes:kt}=useStyles$3();useMediaQuery(theme.breakpoints.down("xs")),useMediaQuery(theme.breakpoints.up("lg"));const[qt,ro]=reactExports.useState(initialXtoY(tickerToAddress(_e),tickerToAddress(cr))),[ht,po]=reactExports.useState(void 0);reactExports.useEffect(()=>{nt?getCoingeckoTokenPriceV2(nt).then(Nt=>po(Nt)).catch(()=>po({price:0})):po(void 0)},[nt]);const no=reactExports.useMemo(()=>jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,className:classNames(kt.fee,tt?kt.activeFee:void 0),justifyContent:"center",alignItems:"center",children:jsxRuntimeExports.jsxs(Typography,{className:classNames(kt.infoText,tt?kt.activeInfoText:void 0),children:["Fee: ",Vr,"%"]})}),[Vr,kt,tt]);return jsxRuntimeExports.jsxs(Grid,{className:kt.root,container:!0,direction:"row",alignItems:"center",justifyContent:"space-between",children:[jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.mdTop,direction:"row",wrap:"nowrap",gap:2,children:[jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.iconsAndNames,alignItems:"center",wrap:"nowrap",children:[jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.icons,alignItems:"center",wrap:"nowrap",children:[jsxRuntimeExports.jsx("img",{className:kt.tokenIcon,src:qt?gr:Cr,alt:qt?_e:cr}),jsxRuntimeExports.jsx("img",{className:kt.tokenIcon,src:qt?Cr:gr,alt:qt?cr:_e})]}),jsxRuntimeExports.jsxs(Typography,{className:kt.names,children:[qt?_e:cr," / ",qt?cr:_e,jsxRuntimeExports.jsxs(Typography,{className:classNames(kt.greyText,kt.label),children:[jsxRuntimeExports.jsx("span",{children:"Market ID:"})," ",st.slice(0,9),"...",st.slice(st.length-9,st.length)," "]})]})]}),jsxRuntimeExports.jsx(Hidden,{smDown:!0,children:no})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,className:kt.mdInfo,direction:"row",children:[jsxRuntimeExports.jsx(Hidden,{mdUp:!0,children:no}),jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,className:kt.minMax,justifyContent:"center",direction:"column",wrap:"nowrap",children:jsxRuntimeExports.jsxs(Typography,{className:classNames(kt.greyText,kt.label),children:["1 ",_e," \u2248 ",jsxRuntimeExports.jsxs("strong",{children:[dt.toFixed(6)," "]}),cr]})})]})]})},useStyles$2=makeStyles()(_e=>({root:{width:1122,[_e.breakpoints.down("md")]:{width:"100%"}},wrapSearch:{marginTop:"-100px",paddingBottom:32,[_e.breakpoints.down("md")]:{marginTop:"0",paddingBottom:0},[_e.breakpoints.down("sm")]:{width:"100%",justifyContent:"flex-start"}},header:{paddingBottom:16,display:"flex",alignItems:"flex-end"},titleBar:{display:"flex",marginBottom:20},title:{color:colors$2.oraidex.text,...typography.heading4,fontWeight:500},positionsNumber:{width:28,height:28,color:colors$2.oraidex.text,background:colors$2.oraidex.light,marginLeft:8,borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center"},searchRoot:{width:"100%"},searchWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap"},searchBar:{width:221,height:32,padding:"7px 12px",borderRadius:10,background:colors$2.oraidex.black,border:"1px solid #202946",color:colors$2.oraidex.lightGrey,...typography.body2,[_e.breakpoints.down("xs")]:{maxWidth:200}},button:{color:colors$2.oraidex.dark,...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,marginLeft:16,background:"linear-gradient(180deg, rgba(239, 132, 245, 0.8) 0%, rgba(156, 62, 189, 0.8) 100%)","&:hover":{background:"linear-gradient(180deg, #EF84F5 0%, #9C3EBD 100%)",boxShadow:"0px 0px 16px rgba(239, 132, 245, 0.35)"}},buttonSelectDisabled:{...typography.body1,textTransform:"none",borderRadius:14,height:40,minWidth:130,paddingInline:0,cursor:"auto",marginLeft:16,background:`${colors$2.oraidex.light} !important`,"&:hover":{filter:"brightness(1.15)"}},buttonText:{WebkitPaddingBefore:"2px"},noPositionsText:{...typography.heading1,textAlign:"center",color:colors$2.oraidex.text},list:{position:"relative",flex:1},itemLink:{textDecoration:"none",cursor:"pointer","&:not(:last-child)":{display:"block",marginBottom:20,[_e.breakpoints.down("sm")]:{marginBottom:16}}},searchIcon:{width:17},loading:{width:150,height:150,margin:"auto"},placeholder:{margin:"auto"},refreshIconBtn:{padding:0,margin:0,minWidth:"auto",background:"none",marginRight:7,"&:hover":{background:"none"},"&:disabled":{opacity:.5}},refreshIcon:{width:26,height:21,cursor:"pointer",transition:"filter 100ms","&:hover":{filter:"brightness(1.5)"}}})),PoolList=({initialPage:_e,setLastPage:cr,data:gr,loading:Cr=!1,showNoConnected:Vr=!1,noConnectedBlockerProps:tt,itemsPerPage:nt,searchValue:st,searchSetValue:dt,handleRefresh:kt})=>{const{classes:qt}=useStyles$2(),ro=useNavigate(),[ht]=reactExports.useState(_e),[po,no]=reactExports.useState(_e),Nt=Wt=>{cr(Wt),no(Wt)},eo=Wt=>{const St=Wt||1,Ot=nt||10,uo=(St-1)*Ot,go=gr.slice(uo).slice(0,nt),bo=Math.ceil(gr.length/Ot);return{page:St,totalPages:bo,data:go}};return reactExports.useEffect(()=>{no(1)},[st]),reactExports.useEffect(()=>{no(_e)},[]),reactExports.useEffect(()=>{Nt(_e)},[_e]),jsxRuntimeExports.jsxs(Grid,{container:!0,direction:"column",className:qt.root,children:[jsxRuntimeExports.jsxs(Grid,{className:qt.wrapSearch,container:!0,item:!0,wrap:"nowrap",direction:"row",alignItems:"center",justifyContent:"flex-end",gap:"10px",marginBottom:"24px",children:[jsxRuntimeExports.jsx(PositionsFilter,{searchValue:st,setSearchValue:dt}),jsxRuntimeExports.jsx(Button,{disabled:Vr,onClick:Vr?()=>{}:kt,children:jsxRuntimeExports.jsx("img",{src:IconRefresh,alt:""})})]}),jsxRuntimeExports.jsx(Grid,{container:!0,direction:"column",className:qt.list,justifyContent:"flex-start",children:gr.length>0&&!Cr?eo(po).data.map((Wt,St)=>jsxRuntimeExports.jsx(Grid,{onClick:()=>{ro(`/newPosition/${Wt.tokenXName}/${Wt.tokenYName}/${Wt.fee}`)},className:qt.itemLink,children:jsxRuntimeExports.jsx(PositionItem,{...Wt},St)},Wt.address+Wt.id)):Vr?jsxRuntimeExports.jsx(NoConnected,{...tt}):Cr?jsxRuntimeExports.jsx(Grid,{container:!0,style:{flex:1},children:jsxRuntimeExports.jsx("img",{src:loader$1,className:qt.loading})}):jsxRuntimeExports.jsx(FallbackEmptyData,{})}),eo(po).totalPages>1?jsxRuntimeExports.jsx(PaginationList,{pages:eo(po).totalPages,defaultPage:ht,handleChangePage:Nt,variant:"end"}):null]})},WrappedPoolList=()=>{const _e=useSelector(address),cr=useSelector(positionsWithPoolsData),gr=useSelector(isLoadingAllPool),Cr=useSelector(lastPageSelector),Vr=useSelector(pools);useSelector(poolKeys);const tt=useSelector(status$1),nt=useNavigate(),st=useDispatch();useSigningClient();const dt=useSelector(swapTokens);reactExports.useEffect(()=>{st(actions$1.getAllPoolData())},[window.walletType,_e]);const[kt,qt]=reactExports.useState(""),ro=Nt=>{qt(Nt.toLowerCase())},ht=Nt=>{st(actions$1.setLastPoolPage(Nt))};reactExports.useEffect(()=>{cr.length===0&&ht(1),Cr>Math.ceil(cr.length/POSITIONS_PER_PAGE)&&ht(Cr-1)},[cr]);const po=()=>{st(actions$1.getAllPoolData())},no=Object.values(Vr).map(({pool:Nt,pool_key:eo},Wt)=>{let St,Ot=dt.find(bo=>bo.assetAddress==eo.token_x),uo=dt.find(bo=>bo.assetAddress==eo.token_y);if(!uo||!Ot)return{};(Ot.symbol==="USDT"||Ot.symbol==="USDC")&&(St=Ot,Ot=uo,uo=St);const go=calcPrice(Nt.current_tick_index??0,!St,Ot.decimals||0,uo.decimals||0);return{tokenXName:Ot.symbol,tokenYName:uo.symbol,tokenXIcon:Ot.logoURI,tokenYIcon:uo.logoURI,fee:+printBigint(BigInt(eo.fee_tier.fee),PERCENTAGE_SCALE-2),id:Wt,tokenXId:Ot.coingeckoId,poolAddress:poolKeyToString(eo),currentPrice:go,liquidity:Nt.liquidity,address:_e,...eo}}).filter(Nt=>Nt.tokenXName&&Nt.tokenYName&&(Nt.tokenXName.toLowerCase().includes(kt)||Nt.tokenYName.toLowerCase().includes(kt))).sort((Nt,eo)=>eo.liquidity-Nt.liquidity);return jsxRuntimeExports.jsx(PoolList,{initialPage:1,setLastPage:ht,searchValue:kt,searchSetValue:ro,handleRefresh:po,onAddPositionClick:()=>{nt("/newPosition")},data:no,loading:gr,showNoConnected:tt!==Status.Initialized,noConnectedBlockerProps:{onConnect:openWalletSelectorModal,descCustomText:"No pools."},itemsPerPage:POSITIONS_PER_PAGE})},useStyles$1=makeStyles()(_e=>({container:{display:"flex",justifyContent:"center",backgroundColor:"#111",marginTop:45,paddingInline:94,minHeight:"70vh",[_e.breakpoints.down("md")]:{paddingInline:36},[_e.breakpoints.down("sm")]:{paddingInline:10},[_e.breakpoints.down("xs")]:{paddingInline:16}}})),ListPool=()=>{const{classes:_e}=useStyles$1();return jsxRuntimeExports.jsx(Grid,{container:!0,className:_e.container,children:jsxRuntimeExports.jsx(WrappedPoolList,{})})},router=createBrowserRouter(createRoutesFromChildren(jsxRuntimeExports.jsxs(Route,{path:"/",element:jsxRuntimeExports.jsx(RootPage,{}),children:[jsxRuntimeExports.jsx(Route,{path:"/swap",element:jsxRuntimeExports.jsx(SwapPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/positions",element:jsxRuntimeExports.jsx(ListPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/pools",element:jsxRuntimeExports.jsx(ListPool,{})}),jsxRuntimeExports.jsx(Route,{path:"/stats",element:jsxRuntimeExports.jsx(StatsPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/newPosition/:item1?/:item2?/:item3?",element:jsxRuntimeExports.jsx(NewPositionPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/position/:address/:id",element:jsxRuntimeExports.jsx(SinglePositionPage,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/swap",replace:!0})})]}))),StyledSnackbarContent=styled$1(SnackbarContent)(({theme:_e})=>({display:"flex",flexDirection:"column",backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,maxWidth:330,width:330,padding:"7px 16px",minWidth:100,...typography.body2,boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)","& .MuiCircularProgress-colorPrimary":{color:colors$2.oraidex.textGrey},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}})),StyledContainer=styled$1("div")({display:"flex",justifyContent:"space-between",alignItems:"center",width:"auto","& div > div":{margin:0}}),StyledTitle=styled$1(Typography)({marginLeft:8,color:colors$2.oraidex.text,...typography.body2}),StyledCloseButton=styled$1("button")({backgroundColor:"transparent",border:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",height:30,width:"fit-content",cursor:"pointer",margin:0,"&:hover":{"& img":{transition:".2s all ease-in",transform:"scale(1.2)"}}}),StyledCircularProgress=styled$1(CircularProgress)({color:colors$2.oraidex.textGrey,display:"flex",alignItems:"center","& SVG":{width:13,height:13}}),LoadingSnackbar=React$3.forwardRef(({id:_e,message:cr},gr)=>{const{closeSnackbar:Cr}=useSnackbar(),Vr=reactExports.useCallback(()=>{Cr(_e)},[_e,Cr]);return jsxRuntimeExports.jsx(StyledSnackbarContent,{ref:gr,role:"alert",children:jsxRuntimeExports.jsxs(StyledContainer,{children:[jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",children:[jsxRuntimeExports.jsx(Box$1,{ml:1,children:jsxRuntimeExports.jsx(StyledCircularProgress,{size:13})}),jsxRuntimeExports.jsx(StyledTitle,{children:cr})]}),jsxRuntimeExports.jsx(StyledCloseButton,{onClick:Vr,children:jsxRuntimeExports.jsx("img",{src:icons.closeSmallIcon})})]})})}),StyledMaterialDesignContent=styled(MaterialDesignContent$1)(({theme:_e})=>({"&.notistack-MuiContent-success":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"4px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.green,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}},"&.notistack-MuiContent-error":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"4px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.Error,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}},"&.notistack-MuiContent-info":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"6px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.textGrey,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}},"&.notistack-MuiContent-warning":{backgroundColor:colors$2.oraidex.component,borderStyle:"solid",borderWidth:1,borderColor:colors$2.oraidex.component,borderRadius:10,...typography.body2,maxWidth:330,width:330,padding:"6px 16px",minWidth:100,"& > div:first-of-type":{flex:1},"& SVG":{fontSize:"16px !important",color:colors$2.oraidex.warning,marginTop:-2,[_e.breakpoints.down("xs")]:{marginTop:2}},[_e.breakpoints.down("xs")]:{maxWidth:"none",width:"auto"}}})),Snackbar=({maxSnack:_e,children:cr})=>{const gr=useMediaQuery(theme.breakpoints.down("xs"));return jsxRuntimeExports.jsx(SnackbarProvider,{dense:!0,maxSnack:gr?5:_e,anchorOrigin:gr?{vertical:"top",horizontal:"right"}:{vertical:"top",horizontal:"right"},Components:{success:StyledMaterialDesignContent,error:StyledMaterialDesignContent,info:StyledMaterialDesignContent,warning:StyledMaterialDesignContent,pending:LoadingSnackbar},children:cr})},store=_e=>_e[snackbarsSliceName],{snackbars}=keySelectors(store,["snackbars"]),snackbarsSelectors={snackbars},useStyles=makeStyles()(_e=>({button:{height:30,backgroundColor:"transparent",textTransform:"uppercase",borderRadius:6,border:"none",color:colors$2.oraidex.textGrey,fontSize:14,fontWeight:600,cursor:"pointer",transition:"0.2s all cubic-bezier(0.25, 0.46, 0.45, 0.94)",backfaceVisibility:"hidden",fontSmoothing:"subpixel-antialiased",padding:"0 4px","&:hover":{transform:"scale(1.15) translateY(0px)"},[_e.breakpoints.down("xs")]:{width:36,height:16,fontSize:9,lineHeight:"14px",marginTop:2,marginRight:8,paddingBottom:17,paddingRight:36}},closeButton:{backgroundColor:"transparent",border:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",height:30,"& img":{width:16,transition:".2s all ease-in",cursor:"pointer","&:hover":{transform:"scale(1.1)"}}},detailsWrapper:{display:"flex",alignItems:"center"},pendingContainer:{display:"flex",flexDirection:"column"},pendingMessage:{width:100}}));let displayed=[];const Notifier=()=>{const _e=useDispatch(),cr=useSelector(snackbarsSelectors.snackbars),{enqueueSnackbar:gr,closeSnackbar:Cr}=useSnackbar(),{classes:Vr}=useStyles(),tt=st=>{displayed=[...displayed,st]},nt=st=>{displayed=[...displayed.filter(dt=>st!==dt)]};return React$3.useEffect(()=>{cr.forEach(({key:st="",message:dt,open:kt,variant:qt,txid:ro,persist:ht=!0})=>{if(!kt){Cr(st);return}st&&displayed.includes(st)||(gr(dt,{key:st,action:()=>ro&&jsxRuntimeExports.jsxs("div",{className:Vr.detailsWrapper,children:[jsxRuntimeExports.jsx("button",{className:Vr.button,onClick:()=>{window.open(`https://scan.orai.io/txs/${ro}`,"_blank")},children:jsxRuntimeExports.jsx("span",{children:"Details"})}),jsxRuntimeExports.jsx("button",{className:Vr.closeButton,onClick:()=>Cr(st),children:jsxRuntimeExports.jsx("img",{src:icons.closeIcon})})]}),variant:qt,persist:ht,autoHideDuration:7e3,onExited:(po,no)=>{_e(actions$4.remove(no)),nt(no)},txid:ro}),tt(st))})},[cr,Cr,gr,_e,Vr]),null};function App(){return jsxRuntimeExports.jsx(Provider_default,{store:store$4,children:jsxRuntimeExports.jsx(ThemeProvider,{theme,children:jsxRuntimeExports.jsx(Snackbar,{maxSnack:99,children:jsxRuntimeExports.jsxs(SigningCosmWasmProvider,{children:[jsxRuntimeExports.jsx(Notifier,{}),jsxRuntimeExports.jsx(RouterProvider,{router})]})})})})}window.walletType="keplr",window.Keplr=window==null?void 0:window.keplr,!window.Keplr&&"parent"in window&&(window.keplr=window.Keplr=window.parent.keplr),client$1.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$3.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}))})()});export default $1(); diff --git a/public/v3/assets/oraiswap_v3_wasm_bg-Db5GqR1D.wasm b/public/v3/assets/oraiswap_v3_wasm_bg-DbZ7j55v.wasm similarity index 92% rename from public/v3/assets/oraiswap_v3_wasm_bg-Db5GqR1D.wasm rename to public/v3/assets/oraiswap_v3_wasm_bg-DbZ7j55v.wasm index 20d5df1214ce27ba0405f77363d8d70c6ed0f1ea..60a99dddf901de002b3e72f36d6ba01e10897c18 100644 GIT binary patch delta 3487 zcmeHJeQXrR6`%KZ_V#x7&OZCFePA2*4vg(!<3Ol=7=PRz!I%$YJ0xmCDlknfVbdf! zV`Q+9O;q*ck19>FQpSl=S|UFBM?#VkxDcpn)1WkMl&F;mC2=?#0c|RTQZ-d0R7&6M ztpT@Ir8eq++0*U&nD=Jp{ob25`|C+#bkb;KTX#GLj4?=KMHdba!*G`}>=F`K7fdNw z7o#DShO%l#W<#&n^#c?-f5zF)8Tc_ME;odQ9(M$1d)y@29+%Km$5tYDNV}AXGp1Cl zk9QBSi1Un6AIY;<)C#KACY7EVJSKUBfztyZ~4em7f*1A)aIWPMHwgflxxgPhbmR;bNe#_I`@Yi@;i@wm~zN=4-j_UJB=We1P%Q&@0 zfxE|1U2|@#ey86Ed2aiR#U6LXcx`x&65_=Hu5kh^YhS) zaKYJ>_eYp?R^~qm7o9Wtdm(eQCHz!5OdLI1pWs9ao4)`ex%L~9yq%28u^T;uCXrn` z=jlX7hPpQs`Nw#TN@VfHZL44+Ey`gZm>FQE4VEu-5JhJtgwq=`rL5XnD!0CxLnxM(wcgT(&Lu!NQshqg%T<6Y1wrKYW}@5olD(8+hKmyQ}4 z+uwqWN^-OhPD%N~4%h-DH|>PMIV7L>A%H^kMc0a#B24ni@J(t{w4;s@b* z>HNDxurHTr>Nxln$cVucFizy_Z^1R1vgITkmQ!Cl1vfaUua3ccB%U}8Px{Dd#k-Ib zAbIUss3J2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^awij@*JCl1VWoS!vDtp+H#R_Th<+SMuM&>#T z61z{+IOU^UMNAYFIW&Z}RmU5xvRz9jOPmK)#FkEo`%CTV`C#uaHB>%O#0KSpEL@>u zePjj2dPY98;aX!_6I%9~+A2s5FTb(dRR{cLu znC8H5N7a2L#~VIl^tPPY&4CHc=(A0q5qg^ly^=}M@+2|(iu`gC-R1xJkjOkIZoD_L z5vSf1leI`E)!`)GK_z%TiA8|&S`t66E~Pb?An0C$ZY1+q!Ku5hT3>a!=&fp@+nRd~ z-E?2MHqA7;2KO$|r~M4)l}U%4zR_i03qD9^*69{pEYGyzHprIA6gEPsJeb0HU}qqd jfxHYXkR|JI2k?=->+o0ft{r*g0i;*)*obV$__}`sL()nC diff --git a/public/v3/index.html b/public/v3/index.html index ff7363107..ccb72f678 100644 --- a/public/v3/index.html +++ b/public/v3/index.html @@ -31,7 +31,7 @@ display: none; } - +