@wormhole-foundation/wormhole-connect 0.3.17 → 0.3.18-beta.1-development

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/assets/{ccip-ClzeMJ_j.js → ccip-D0VzrDKe.js} +1 -1
  2. package/dist/assets/cosmos-O8tTKeuk.js +37 -0
  3. package/dist/assets/{cosmwasm-DGW772Mb.js → cosmwasm-C3cFK7BC.js} +3 -3
  4. package/dist/assets/{ens-validation.es6-QG6c_Puy.js → ens-validation.es6-gsmLKNwB.js} +1 -1
  5. package/dist/assets/{evm-naJ7fLYH.js → evm--aNcFZ6S.js} +31 -31
  6. package/dist/assets/{index-C1x31Jxk.js → index-BjIxvQFV.js} +1 -1
  7. package/dist/assets/{index-CRnaWQgW.js → index-ByeOkyS8.js} +1 -1
  8. package/dist/assets/{index-KMQj8MBB.js → index-CV4pfIw7.js} +1 -1
  9. package/dist/assets/index-ClKrV_HJ.js +2 -0
  10. package/dist/assets/index-Dqsfl0un.js +3 -0
  11. package/dist/assets/{index-IW_wClRI.js → index-NBWkKzTR.js} +1 -1
  12. package/dist/assets/{index.es-EmnxJ1lb.js → index.es-ASAVlsFm.js} +2 -2
  13. package/dist/assets/{solana-BZCNALCU.js → solana-Dn94-G2V.js} +2 -2
  14. package/dist/assets/{solanaEmbed.esm-D0yWLEo-.js → solanaEmbed.esm-rqFDr9AX.js} +1 -1
  15. package/dist/assets/{unsignedTransaction-D7VEWy8m.js → unsignedTransaction-B08fN_UW.js} +1 -1
  16. package/dist/main.js +10 -10
  17. package/dist/src/consts/wallet.d.ts.map +1 -1
  18. package/dist/src/utils/transferValidation.d.ts.map +1 -1
  19. package/dist/src/utils/wallet/evm.d.ts.map +1 -1
  20. package/lib/{algorand-CkjY5D1K.mjs → algorand-B9R5kDXf.mjs} +4 -4
  21. package/lib/{algorand-DDnN_ID4.js → algorand-BECExueP.js} +1 -1
  22. package/lib/{aptos-DB0RPcha.js → aptos-BpvpNYii.js} +2 -2
  23. package/lib/{aptos-Z3iITKq8.mjs → aptos-CgVUfeRr.mjs} +4 -4
  24. package/lib/{aptos-6cTTvSk4.mjs → aptos-Co4Dcnws.mjs} +1 -1
  25. package/lib/{aptos-D9ca5jNq.js → aptos-CzYa5HnG.js} +1 -1
  26. package/lib/{browser-AXXShtLO.mjs → browser-B79UewaZ.mjs} +2 -2
  27. package/lib/{browser-BvtYqM0e.js → browser-BnvapQOm.js} +1 -1
  28. package/lib/{ccip-B52yS2oB.mjs → ccip-CCScN0fp.mjs} +1 -1
  29. package/lib/{ccip-Dp5-rp5Q.js → ccip-DkkpA67F.js} +1 -1
  30. package/lib/{chain-D9bp2EtQ.mjs → chain-CkiAdRsF.mjs} +1 -1
  31. package/lib/{chain-CPTe1tkD.js → chain-dkt-tJ8j.js} +1 -1
  32. package/lib/cosmos-BGtn0ce4.js +37 -0
  33. package/lib/{cosmos-BSz_B76G.mjs → cosmos-CgRX0Wxh.mjs} +6 -6
  34. package/lib/{cosmwasm-CaHs2sxc.mjs → cosmwasm-CZJBnOEX.mjs} +6 -6
  35. package/lib/{cosmwasm-Cv8Wo8qx.js → cosmwasm-RnTbX7PN.js} +2 -2
  36. package/lib/{create-QAfMcr9_.js → create-BiAHw2aA.js} +1 -1
  37. package/lib/{create-BoVtddSH.mjs → create-CM-nUvHh.mjs} +1 -1
  38. package/lib/{ens-validation.es6-DfAlPWse.mjs → ens-validation.es6-2EaRqlcZ.mjs} +2 -2
  39. package/lib/{ens-validation.es6-ww_x-SMH.js → ens-validation.es6-Y7MuOU0N.js} +1 -1
  40. package/lib/{evm-DT3j3aq9.mjs → evm-C3NODduF.mjs} +6 -6
  41. package/lib/{evm-CoPf1imE.js → evm-DI8kbdHZ.js} +2 -2
  42. package/lib/{evm-BhVYgjXc.js → evm-DXOSgo1P.js} +29 -29
  43. package/lib/{evm-CBuTwR-T.mjs → evm-HVKpaILW.mjs} +1734 -1717
  44. package/lib/{index-DebiDC3v.mjs → index--a8G4lcW.mjs} +100 -90
  45. package/lib/{index-3Zvo5oFL.mjs → index-0Y0qAS5l.mjs} +4 -4
  46. package/lib/{index-C3Zck5Rw.js → index-8qn1dGJN.js} +1 -1
  47. package/lib/{index-DfM7GTS8.js → index-B4PE2HqL.js} +1 -1
  48. package/lib/{index-B0l5_Q9J.js → index-BJzrTwhK.js} +1 -1
  49. package/lib/{index-BVYQzNvU.mjs → index-BPseHNs4.mjs} +4 -4
  50. package/lib/{index-Qf6KscPe.js → index-BS73cCsm.js} +1 -1
  51. package/lib/{index-B2vcAnwF.mjs → index-Bmf0dJXk.mjs} +5 -5
  52. package/lib/{index-BGdIdofx.js → index-C2RXBAYV.js} +1 -1
  53. package/lib/{index-CZTcbGX2.mjs → index-C8vqaAeA.mjs} +4 -4
  54. package/lib/{index-BuGANYoC.mjs → index-CEYaDz-X.mjs} +1 -1
  55. package/lib/{index-pSA89lvn.js → index-CQ24ekSy.js} +1 -1
  56. package/lib/{index-CZvnNuux.js → index-CSSe0BOU.js} +1 -1
  57. package/lib/{index-Bb-fizMd.mjs → index-CSf329dI.mjs} +5 -5
  58. package/lib/{index-0QeIkLNc.mjs → index-CUpI3flq.mjs} +3 -3
  59. package/lib/{index-CKWTloVb.js → index-CYm8SRbD.js} +1 -1
  60. package/lib/{index-BH2yQPAH.js → index-C_Gyy-qu.js} +1 -1
  61. package/lib/{index-D8KRWXVM.js → index-C_nOcIfa.js} +1 -1
  62. package/lib/{index-1Eo1l_aF.mjs → index-Cf6LTh_3.mjs} +3 -3
  63. package/lib/{index-DApVqEXu.js → index-CjiTP7zj.js} +1 -1
  64. package/lib/{index-CbulvJtP.mjs → index-CjzZno1u.mjs} +72 -72
  65. package/lib/{index-GVnr7WyU.mjs → index-Cm6qfNE2.mjs} +4 -4
  66. package/lib/{index-BkJT27UH.mjs → index-CnDfWZ3N.mjs} +2 -2
  67. package/lib/{index-jbKWljQq.js → index-CrUwXkHx.js} +1 -1
  68. package/lib/{index-gQ5agivz.mjs → index-CtPlLWIc.mjs} +4 -4
  69. package/lib/{index-DvPjni-v.js → index-D2IEwdXM.js} +9 -9
  70. package/lib/{index-Vz6yRzMm.js → index-D3d590ml.js} +1 -1
  71. package/lib/{index-5hwKi82D.mjs → index-D44yXRrW.mjs} +4 -4
  72. package/lib/{index-CHReo22c.js → index-D7vEVSNu.js} +1 -1
  73. package/lib/{index-Bxy33sJ9.js → index-DD8O1gO1.js} +1 -1
  74. package/lib/{index-s1ZuI8l6.js → index-DMTxEDBY.js} +1 -1
  75. package/lib/{index-C4CEddS7.mjs → index-DRnbzgUh.mjs} +6 -6
  76. package/lib/{index-DHpMqzxK.mjs → index-D_DayKXK.mjs} +2 -2
  77. package/lib/{index-D6BOvMee.mjs → index-DabcAHr_.mjs} +4 -4
  78. package/lib/{index-2REgoevm.mjs → index-DkVqkU1n.mjs} +2 -2
  79. package/lib/{index-D7PEJvME.mjs → index-Dk_DxorB.mjs} +5 -5
  80. package/lib/{index-CCGipVdX.js → index-DnS14EZQ.js} +1 -1
  81. package/lib/{index-DAGHPE-U.mjs → index-Dsrx3yAj.mjs} +4 -4
  82. package/lib/{index-BdEy6H3x.mjs → index-Duj1DuCU.mjs} +4 -4
  83. package/lib/{index-TwqQtaM2.js → index-JwYCBrPA.js} +1 -1
  84. package/lib/{index-B6-c6P4Q.js → index-Nro7lr9I.js} +1 -1
  85. package/lib/{index-Bgifa0rO.js → index-UmTItYQP.js} +1 -1
  86. package/lib/{index-COMtOf9F.mjs → index-VNaGZYsT.mjs} +3 -3
  87. package/lib/{index-Bem-zTo9.mjs → index-jZS8RCBJ.mjs} +4 -4
  88. package/lib/index-vhST1GVD.js +1 -0
  89. package/lib/index-yVQrO-w_.js +3 -0
  90. package/lib/{index.es-DY974klV.mjs → index.es-BX3g_fEa.mjs} +4 -4
  91. package/lib/{index.es-Be-95F-D.js → index.es-DW3cpfqa.js} +2 -2
  92. package/lib/index.js +1 -1
  93. package/lib/index.mjs +1 -1
  94. package/lib/{libsodium-wrappers-Cz4RSKFI.js → libsodium-wrappers-DJv6_KfX.js} +1 -1
  95. package/lib/{libsodium-wrappers-DdBVKoIT.mjs → libsodium-wrappers-m9ZOqx0p.mjs} +1 -1
  96. package/lib/{sei-gjedWqjd.js → sei-BOeXaWS0.js} +1 -1
  97. package/lib/{sei-549wQo5R.mjs → sei-DFzWb_82.mjs} +2 -2
  98. package/lib/{solana-BpvtC9Y9.mjs → solana-BweAibG_.mjs} +6 -6
  99. package/lib/{solana-jJHTew4W.js → solana-DFmcWlKj.js} +2 -2
  100. package/lib/{solana-CLvKWwns.mjs → solana-DaSEOOB7.mjs} +3 -3
  101. package/lib/{solana-BTT9n5lW.js → solana-Dv03uKoX.js} +1 -1
  102. package/lib/{solanaEmbed.esm-Bqx3MQQh.mjs → solanaEmbed.esm-BxAUqIpC.mjs} +2 -2
  103. package/lib/{solanaEmbed.esm-D-AOxyK6.js → solanaEmbed.esm-DJ48k1vp.js} +1 -1
  104. package/lib/src/consts/wallet.d.ts.map +1 -1
  105. package/lib/src/utils/transferValidation.d.ts.map +1 -1
  106. package/lib/src/utils/wallet/evm.d.ts.map +1 -1
  107. package/lib/{sui-DYHKoyiY.js → sui-4qNYTJYI.js} +1 -1
  108. package/lib/{sui-DCCGAsfg.mjs → sui-CRlPg_-w.mjs} +1 -1
  109. package/lib/{sui-B-4YWOEj.js → sui-CU34Vo-z.js} +2 -2
  110. package/lib/{sui-DKRldaWr.mjs → sui-DR9_UAz0.mjs} +4 -4
  111. package/lib/{unsignedTransaction-Cs6URPzx.js → unsignedTransaction-oHvwquvT.js} +1 -1
  112. package/lib/{unsignedTransaction-Byv6FNac.mjs → unsignedTransaction-qG9mWtn-.mjs} +2 -2
  113. package/package.json +1 -1
  114. package/dist/assets/cosmos-mS8jzs-K.js +0 -37
  115. package/dist/assets/index-CP2t4FxN.js +0 -3
  116. package/dist/assets/index-CZxcLdx-.js +0 -2
  117. package/lib/cosmos-DQcVb2Ho.js +0 -37
  118. package/lib/index--52-Qo6j.js +0 -3
  119. package/lib/index-DzCniKbo.js +0 -1
@@ -1,4 +1,4 @@
1
- var $6=Object.defineProperty;var K6=(u,e,r)=>e in u?$6(u,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[e]=r;var s0=(u,e,r)=>(K6(u,typeof e!="symbol"?e+"":e,r),r);import{ad as V6,g as H9,o as Pu,a0 as G6,n as yt,bB as gt,bC as $9,bs as L1,r as K9,d as R,bD as V9,bE as j2,bF as Y1,bG as q6,bh as wt,bi as xt,bj as G9,bk as J6}from"../main.js";import{s as z6,h as j6,u as Z6,p as Y6}from"./index-CP2t4FxN.js";var G2=function(){return G2=Object.assign||function(e){for(var r,D=1,s=arguments.length;D<s;D++){r=arguments[D];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G2.apply(this,arguments)};var bt={exports:{}};const q9=u=>typeof u=="object"&&u!==null,J9=Symbol("skip"),or=u=>q9(u)&&!(u instanceof RegExp)&&!(u instanceof Error)&&!(u instanceof Date),Ye=(u,e,r,D=new WeakMap)=>{if(r={deep:!1,target:{},...r},D.has(u))return D.get(u);D.set(u,r.target);const{target:s}=r;delete r.target;const n=l=>l.map(d=>or(d)?Ye(d,e,r,D):d);if(Array.isArray(u))return n(u);for(const[l,d]of Object.entries(u)){const m=e(l,d,u);if(m===J9)continue;let[w,_,{shouldRecurse:N=!0}={}]=m;w!=="__proto__"&&(r.deep&&N&&or(_)&&(_=Array.isArray(_)?n(_):Ye(_,e,r,D)),s[w]=_)}return s};bt.exports=(u,e,r)=>{if(!q9(u))throw new TypeError(`Expected an object, got \`${u}\` (${typeof u})`);return Ye(u,e,r)};bt.exports.mapObjectSkip=J9;var W6=bt.exports;function X6(u){return u.toLowerCase()}var Q6=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],u8=/[^A-Z0-9]+/gi;function e8(u,e){e===void 0&&(e={});for(var r=e.splitRegexp,D=r===void 0?Q6:r,s=e.stripRegexp,n=s===void 0?u8:s,l=e.transform,d=l===void 0?X6:l,m=e.delimiter,w=m===void 0?" ":m,_=fr(fr(u,D,"$1\0$2"),n,"\0"),N=0,T=_.length;_.charAt(N)==="\0";)N++;for(;_.charAt(T-1)==="\0";)T--;return _.slice(N,T).split("\0").map(d).join(w)}function fr(u,e,r){return e instanceof RegExp?u.replace(e,r):e.reduce(function(D,s){return D.replace(s,r)},u)}function t8(u,e){return e===void 0&&(e={}),e8(u,G2({delimiter:"."},e))}function r8(u,e){return e===void 0&&(e={}),t8(u,G2({delimiter:"_"},e))}const n8=Object.freeze(Object.defineProperty({__proto__:null,snakeCase:r8},Symbol.toStringTag,{value:"Module"})),i8=V6(n8),D8=W6,{snakeCase:a8}=i8;var s8=function(u,e){return e=Object.assign({deep:!0,exclude:[],parsingOptions:{}},e),D8(u,function(r,D){return[o8(e.exclude,r)?r:a8(r,e.parsingOptions),D]},e)};function o8(u,e){return u.some(function(r){return typeof r=="string"?r===e:r.test(e)})}const R3=H9(s8);var Fr;(function(u){u.Erc20Contract="erc20-contract",u.Peggy="peggy-contract",u.PeggyOld="peggy-old-contract"})(Fr||(Fr={}));var lr;(function(u){u.Auction="chain-auction",u.Auth="chain-auth",u.Authz="chain-authz",u.Bank="chain-bank",u.Distribution="chain-distribution",u.Exchange="chain-exchange",u.Gov="chain-gov",u.Ibc="chain-ibc",u.InsuranceFund="chain-insurance",u.Mint="chain-mint",u.Oracle="chain-oracle",u.Peggy="chain-peggy",u.Staking="chain-staking",u.Wasm="chain-wasm",u.WasmX="chain-wasmx",u.Tendermint="chain-tendermint"})(lr||(lr={}));var cr;(function(u){u.Account="indexer-account",u.Auction="indexer-auction",u.Derivatives="indexer-derivatives",u.Explorer="indexer-explorer",u.InsuranceFund="indexer-insurance-fund",u.Meta="indexer-meta",u.Mito="indexer-mito",u.Dmm="dmm",u.Oracle="indexer-oracle",u.Portfolio="indexer-portfolio",u.Spot="indexer-spot",u.Transaction="indexer-transaction",u.Trading="indexer-trading",u.ChronosDerivative="indexer-chronos-derivative",u.ChronosSpot="indexer-chronos-spot",u.ChronosMarkets="indexer-chronos-markets",u.Campaign="indexer-campaign"})(cr||(cr={}));var Ar;(function(u){u.SignTransaction="sign-transaction",u.SignEthereumTransaction="sign-ethereum-transaction",u.SendTransaction="send-transaction",u.SendEthereumTransaction="send-ethereum-transaction",u.SignArbitrary="sign-arbitrary",u.GetAccounts="get-accounts",u.GetNetworkId="get-network-id",u.GetChainId="get-chain-id",u.GetEthereumTransactionReceipt="get-ethereum-transaction-receipt"})(Ar||(Ar={}));var z9={exports:{}};(function(u,e){(function(r,D){u.exports=D()})(Pu,function(){return r={418:function(s,n){(function(l,d){for(var m in d)l[m]=d[m]})(n,function(l){var d={};function m(w){if(d[w])return d[w].exports;var _=d[w]={i:w,l:!1,exports:{}};return l[w].call(_.exports,_,_.exports,m),_.l=!0,_.exports}return m.m=l,m.c=d,m.i=function(w){return w},m.d=function(w,_,N){m.o(w,_)||Object.defineProperty(w,_,{configurable:!1,enumerable:!0,get:N})},m.n=function(w){var _=w&&w.__esModule?function(){return w.default}:function(){return w};return m.d(_,"a",_),_},m.o=function(w,_){return Object.prototype.hasOwnProperty.call(w,_)},m.p="",m(m.s=1)}([function(l,d,m){Object.defineProperty(d,"__esModule",{value:!0});var w=m(3),_=function(){function N(T,y){T===void 0&&(T={}),y===void 0&&(y={splitValues:!1});var g,M=this;this.headersMap={},T&&(typeof Headers<"u"&&T instanceof Headers?w.getHeaderKeys(T).forEach(function(I){w.getHeaderValues(T,I).forEach(function(S){y.splitValues?M.append(I,w.splitHeaderValue(S)):M.append(I,S)})}):typeof(g=T)=="object"&&typeof g.headersMap=="object"&&typeof g.forEach=="function"?T.forEach(function(I,S){M.append(I,S)}):typeof Map<"u"&&T instanceof Map?T.forEach(function(I,S){M.append(S,I)}):typeof T=="string"?this.appendFromString(T):typeof T=="object"&&Object.getOwnPropertyNames(T).forEach(function(I){var S=T[I];Array.isArray(S)?S.forEach(function(b){M.append(I,b)}):M.append(I,S)}))}return N.prototype.appendFromString=function(T){for(var y=T.split(`\r
1
+ var $6=Object.defineProperty;var K6=(u,e,r)=>e in u?$6(u,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[e]=r;var s0=(u,e,r)=>(K6(u,typeof e!="symbol"?e+"":e,r),r);import{ad as V6,g as H9,o as Pu,a0 as G6,n as yt,bB as gt,bC as $9,bs as L1,r as K9,d as R,bD as V9,bE as j2,bF as Y1,bG as q6,bh as wt,bi as xt,bj as G9,bk as J6}from"../main.js";import{s as z6,h as j6,u as Z6,p as Y6}from"./index-Dqsfl0un.js";var G2=function(){return G2=Object.assign||function(e){for(var r,D=1,s=arguments.length;D<s;D++){r=arguments[D];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G2.apply(this,arguments)};var bt={exports:{}};const q9=u=>typeof u=="object"&&u!==null,J9=Symbol("skip"),or=u=>q9(u)&&!(u instanceof RegExp)&&!(u instanceof Error)&&!(u instanceof Date),Ye=(u,e,r,D=new WeakMap)=>{if(r={deep:!1,target:{},...r},D.has(u))return D.get(u);D.set(u,r.target);const{target:s}=r;delete r.target;const n=l=>l.map(d=>or(d)?Ye(d,e,r,D):d);if(Array.isArray(u))return n(u);for(const[l,d]of Object.entries(u)){const m=e(l,d,u);if(m===J9)continue;let[w,_,{shouldRecurse:N=!0}={}]=m;w!=="__proto__"&&(r.deep&&N&&or(_)&&(_=Array.isArray(_)?n(_):Ye(_,e,r,D)),s[w]=_)}return s};bt.exports=(u,e,r)=>{if(!q9(u))throw new TypeError(`Expected an object, got \`${u}\` (${typeof u})`);return Ye(u,e,r)};bt.exports.mapObjectSkip=J9;var W6=bt.exports;function X6(u){return u.toLowerCase()}var Q6=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],u8=/[^A-Z0-9]+/gi;function e8(u,e){e===void 0&&(e={});for(var r=e.splitRegexp,D=r===void 0?Q6:r,s=e.stripRegexp,n=s===void 0?u8:s,l=e.transform,d=l===void 0?X6:l,m=e.delimiter,w=m===void 0?" ":m,_=fr(fr(u,D,"$1\0$2"),n,"\0"),N=0,T=_.length;_.charAt(N)==="\0";)N++;for(;_.charAt(T-1)==="\0";)T--;return _.slice(N,T).split("\0").map(d).join(w)}function fr(u,e,r){return e instanceof RegExp?u.replace(e,r):e.reduce(function(D,s){return D.replace(s,r)},u)}function t8(u,e){return e===void 0&&(e={}),e8(u,G2({delimiter:"."},e))}function r8(u,e){return e===void 0&&(e={}),t8(u,G2({delimiter:"_"},e))}const n8=Object.freeze(Object.defineProperty({__proto__:null,snakeCase:r8},Symbol.toStringTag,{value:"Module"})),i8=V6(n8),D8=W6,{snakeCase:a8}=i8;var s8=function(u,e){return e=Object.assign({deep:!0,exclude:[],parsingOptions:{}},e),D8(u,function(r,D){return[o8(e.exclude,r)?r:a8(r,e.parsingOptions),D]},e)};function o8(u,e){return u.some(function(r){return typeof r=="string"?r===e:r.test(e)})}const R3=H9(s8);var Fr;(function(u){u.Erc20Contract="erc20-contract",u.Peggy="peggy-contract",u.PeggyOld="peggy-old-contract"})(Fr||(Fr={}));var lr;(function(u){u.Auction="chain-auction",u.Auth="chain-auth",u.Authz="chain-authz",u.Bank="chain-bank",u.Distribution="chain-distribution",u.Exchange="chain-exchange",u.Gov="chain-gov",u.Ibc="chain-ibc",u.InsuranceFund="chain-insurance",u.Mint="chain-mint",u.Oracle="chain-oracle",u.Peggy="chain-peggy",u.Staking="chain-staking",u.Wasm="chain-wasm",u.WasmX="chain-wasmx",u.Tendermint="chain-tendermint"})(lr||(lr={}));var cr;(function(u){u.Account="indexer-account",u.Auction="indexer-auction",u.Derivatives="indexer-derivatives",u.Explorer="indexer-explorer",u.InsuranceFund="indexer-insurance-fund",u.Meta="indexer-meta",u.Mito="indexer-mito",u.Dmm="dmm",u.Oracle="indexer-oracle",u.Portfolio="indexer-portfolio",u.Spot="indexer-spot",u.Transaction="indexer-transaction",u.Trading="indexer-trading",u.ChronosDerivative="indexer-chronos-derivative",u.ChronosSpot="indexer-chronos-spot",u.ChronosMarkets="indexer-chronos-markets",u.Campaign="indexer-campaign"})(cr||(cr={}));var Ar;(function(u){u.SignTransaction="sign-transaction",u.SignEthereumTransaction="sign-ethereum-transaction",u.SendTransaction="send-transaction",u.SendEthereumTransaction="send-ethereum-transaction",u.SignArbitrary="sign-arbitrary",u.GetAccounts="get-accounts",u.GetNetworkId="get-network-id",u.GetChainId="get-chain-id",u.GetEthereumTransactionReceipt="get-ethereum-transaction-receipt"})(Ar||(Ar={}));var z9={exports:{}};(function(u,e){(function(r,D){u.exports=D()})(Pu,function(){return r={418:function(s,n){(function(l,d){for(var m in d)l[m]=d[m]})(n,function(l){var d={};function m(w){if(d[w])return d[w].exports;var _=d[w]={i:w,l:!1,exports:{}};return l[w].call(_.exports,_,_.exports,m),_.l=!0,_.exports}return m.m=l,m.c=d,m.i=function(w){return w},m.d=function(w,_,N){m.o(w,_)||Object.defineProperty(w,_,{configurable:!1,enumerable:!0,get:N})},m.n=function(w){var _=w&&w.__esModule?function(){return w.default}:function(){return w};return m.d(_,"a",_),_},m.o=function(w,_){return Object.prototype.hasOwnProperty.call(w,_)},m.p="",m(m.s=1)}([function(l,d,m){Object.defineProperty(d,"__esModule",{value:!0});var w=m(3),_=function(){function N(T,y){T===void 0&&(T={}),y===void 0&&(y={splitValues:!1});var g,M=this;this.headersMap={},T&&(typeof Headers<"u"&&T instanceof Headers?w.getHeaderKeys(T).forEach(function(I){w.getHeaderValues(T,I).forEach(function(S){y.splitValues?M.append(I,w.splitHeaderValue(S)):M.append(I,S)})}):typeof(g=T)=="object"&&typeof g.headersMap=="object"&&typeof g.forEach=="function"?T.forEach(function(I,S){M.append(I,S)}):typeof Map<"u"&&T instanceof Map?T.forEach(function(I,S){M.append(S,I)}):typeof T=="string"?this.appendFromString(T):typeof T=="object"&&Object.getOwnPropertyNames(T).forEach(function(I){var S=T[I];Array.isArray(S)?S.forEach(function(b){M.append(I,b)}):M.append(I,S)}))}return N.prototype.appendFromString=function(T){for(var y=T.split(`\r
2
2
  `),g=0;g<y.length;g++){var M=y[g],I=M.indexOf(":");if(I>0){var S=M.substring(0,I).trim(),b=M.substring(I+1).trim();this.append(S,b)}}},N.prototype.delete=function(T,y){var g=w.normalizeName(T);if(y===void 0)delete this.headersMap[g];else{var M=this.headersMap[g];if(M){var I=M.indexOf(y);I>=0&&M.splice(I,1),M.length===0&&delete this.headersMap[g]}}},N.prototype.append=function(T,y){var g=this,M=w.normalizeName(T);Array.isArray(this.headersMap[M])||(this.headersMap[M]=[]),Array.isArray(y)?y.forEach(function(I){g.headersMap[M].push(w.normalizeValue(I))}):this.headersMap[M].push(w.normalizeValue(y))},N.prototype.set=function(T,y){var g=w.normalizeName(T);if(Array.isArray(y)){var M=[];y.forEach(function(I){M.push(w.normalizeValue(I))}),this.headersMap[g]=M}else this.headersMap[g]=[w.normalizeValue(y)]},N.prototype.has=function(T,y){var g=this.headersMap[w.normalizeName(T)];if(!Array.isArray(g))return!1;if(y!==void 0){var M=w.normalizeValue(y);return g.indexOf(M)>=0}return!0},N.prototype.get=function(T){var y=this.headersMap[w.normalizeName(T)];return y!==void 0?y.concat():[]},N.prototype.forEach=function(T){var y=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(g){T(g,y.headersMap[g])},this)},N.prototype.toHeaders=function(){if(typeof Headers<"u"){var T=new Headers;return this.forEach(function(y,g){g.forEach(function(M){T.append(y,M)})}),T}throw new Error("Headers class is not defined")},N}();d.BrowserHeaders=_},function(l,d,m){Object.defineProperty(d,"__esModule",{value:!0});var w=m(0);d.BrowserHeaders=w.BrowserHeaders},function(l,d,m){Object.defineProperty(d,"__esModule",{value:!0}),d.iterateHeaders=function(w,_){for(var N=w[Symbol.iterator](),T=N.next();!T.done;)_(T.value[0]),T=N.next()},d.iterateHeadersKeys=function(w,_){for(var N=w.keys(),T=N.next();!T.done;)_(T.value),T=N.next()}},function(l,d,m){Object.defineProperty(d,"__esModule",{value:!0});var w=m(2);d.normalizeName=function(_){if(typeof _!="string"&&(_=String(_)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(_))throw new TypeError("Invalid character in header field name");return _.toLowerCase()},d.normalizeValue=function(_){return typeof _!="string"&&(_=String(_)),_},d.getHeaderValues=function(_,N){var T=_;if(T instanceof Headers&&T.getAll)return T.getAll(N);var y=T.get(N);return y&&typeof y=="string"?[y]:y},d.getHeaderKeys=function(_){var N=_,T={},y=[];return N.keys?w.iterateHeadersKeys(N,function(g){T[g]||(T[g]=!0,y.push(g))}):N.forEach?N.forEach(function(g,M){T[M]||(T[M]=!0,y.push(M))}):w.iterateHeaders(N,function(g){var M=g[0];T[M]||(T[M]=!0,y.push(M))}),y},d.splitHeaderValue=function(_){var N=[];return _.split(", ").forEach(function(T){T.split(",").forEach(function(y){N.push(y)})}),N}}]))},617:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.ChunkParser=n.ChunkType=n.encodeASCII=n.decodeASCII=void 0;var d,m=l(65);function w(I){return(S=I)===9||S===10||S===13||I>=32&&I<=126;var S}function _(I){for(var S=0;S!==I.length;++S)if(!w(I[S]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(I))}function N(I){return(128&I.getUint8(0))==128}function T(I){return I.getUint32(1,!1)}function y(I,S,b){return I.byteLength-S>=b}function g(I,S,b){if(I.slice)return I.slice(S,b);var O=I.length;b!==void 0&&(O=b);for(var f=new Uint8Array(O-S),p=0,x=S;x<O;x++)f[p++]=I[x];return f}n.decodeASCII=_,n.encodeASCII=function(I){for(var S=new Uint8Array(I.length),b=0;b!==I.length;++b){var O=I.charCodeAt(b);if(!w(O))throw new Error("Metadata contains invalid ASCII");S[b]=O}return S},function(I){I[I.MESSAGE=1]="MESSAGE",I[I.TRAILERS=2]="TRAILERS"}(d=n.ChunkType||(n.ChunkType={}));var M=function(){function I(){this.buffer=null,this.position=0}return I.prototype.parse=function(S,b){if(S.length===0&&b)return[];var O,f=[];if(this.buffer==null)this.buffer=S,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=S,this.position=0;else{var p=this.buffer.byteLength-this.position,x=new Uint8Array(p+S.byteLength),j=g(this.buffer,this.position);x.set(j,0);var $=new Uint8Array(S);x.set($,p),this.buffer=x,this.position=0}for(;;){if(!y(this.buffer,this.position,5))return f;var H=g(this.buffer,this.position,this.position+5),au=new DataView(H.buffer,H.byteOffset,H.byteLength),h=T(au);if(!y(this.buffer,this.position,5+h))return f;var t=g(this.buffer,this.position+5,this.position+5+h);if(this.position+=5+h,N(au))return f.push({chunkType:d.TRAILERS,trailers:(O=t,new m.Metadata(_(O)))}),f;f.push({chunkType:d.MESSAGE,data:t})}},I}();n.ChunkParser=M},8:function(s,n){var l;Object.defineProperty(n,"__esModule",{value:!0}),n.httpStatusToCode=n.Code=void 0,function(d){d[d.OK=0]="OK",d[d.Canceled=1]="Canceled",d[d.Unknown=2]="Unknown",d[d.InvalidArgument=3]="InvalidArgument",d[d.DeadlineExceeded=4]="DeadlineExceeded",d[d.NotFound=5]="NotFound",d[d.AlreadyExists=6]="AlreadyExists",d[d.PermissionDenied=7]="PermissionDenied",d[d.ResourceExhausted=8]="ResourceExhausted",d[d.FailedPrecondition=9]="FailedPrecondition",d[d.Aborted=10]="Aborted",d[d.OutOfRange=11]="OutOfRange",d[d.Unimplemented=12]="Unimplemented",d[d.Internal=13]="Internal",d[d.Unavailable=14]="Unavailable",d[d.DataLoss=15]="DataLoss",d[d.Unauthenticated=16]="Unauthenticated"}(l=n.Code||(n.Code={})),n.httpStatusToCode=function(d){switch(d){case 0:return l.Internal;case 200:return l.OK;case 400:return l.InvalidArgument;case 401:return l.Unauthenticated;case 403:return l.PermissionDenied;case 404:return l.NotFound;case 409:return l.Aborted;case 412:return l.FailedPrecondition;case 429:return l.ResourceExhausted;case 499:return l.Canceled;case 500:return l.Unknown;case 501:return l.Unimplemented;case 503:return l.Unavailable;case 504:return l.DeadlineExceeded;default:return l.Unknown}}},934:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.client=void 0;var d=l(65),m=l(617),w=l(8),_=l(346),N=l(57),T=l(882);n.client=function(M,I){return new y(M,I)};var y=function(){function M(I,S){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new m.ChunkParser,this.methodDefinition=I,this.props=S,this.createTransport()}return M.prototype.createTransport=function(){var I=this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,S={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:I,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.props.transport?this.transport=this.props.transport(S):this.transport=N.makeDefaultTransport(S)},M.prototype.onTransportHeaders=function(I,S){if(this.props.debug&&_.debug("onHeaders",I,S),this.closed)this.props.debug&&_.debug("grpc.onHeaders received after request was closed - ignoring");else if(S!==0){this.responseHeaders=I,this.props.debug&&_.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var b=g(I);this.props.debug&&_.debug("onHeaders.gRPCStatus",b);var O=b&&b>=0?b:w.httpStatusToCode(S);this.props.debug&&_.debug("onHeaders.code",O);var f=I.get("grpc-message")||[];if(this.props.debug&&_.debug("onHeaders.gRPCMessage",f),this.rawOnHeaders(I),O!==w.Code.OK){var p=this.decodeGRPCStatus(f[0]);this.rawOnError(O,p,I)}}},M.prototype.onTransportChunk=function(I){var S=this;if(this.closed)this.props.debug&&_.debug("grpc.onChunk received after request was closed - ignoring");else{var b=[];try{b=this.parser.parse(I)}catch(O){return this.props.debug&&_.debug("onChunk.parsing error",O,O.message),void this.rawOnError(w.Code.Internal,"parsing error: "+O.message)}b.forEach(function(O){if(O.chunkType===m.ChunkType.MESSAGE){var f=S.methodDefinition.responseType.deserializeBinary(O.data);S.rawOnMessage(f)}else O.chunkType===m.ChunkType.TRAILERS&&(S.responseHeaders?(S.responseTrailers=new d.Metadata(O.trailers),S.props.debug&&_.debug("onChunk.trailers",S.responseTrailers)):(S.responseHeaders=new d.Metadata(O.trailers),S.rawOnHeaders(S.responseHeaders)))})}},M.prototype.onTransportEnd=function(){if(this.props.debug&&_.debug("grpc.onEnd"),this.closed)this.props.debug&&_.debug("grpc.onEnd received after request was closed - ignoring");else if(this.responseTrailers!==void 0){var I=g(this.responseTrailers);if(I!==null){var S=this.responseTrailers.get("grpc-message"),b=this.decodeGRPCStatus(S[0]);this.rawOnEnd(I,b,this.responseTrailers)}else this.rawOnError(w.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(this.responseHeaders===void 0)return void this.rawOnError(w.Code.Unknown,"Response closed without headers");var O=g(this.responseHeaders),f=this.responseHeaders.get("grpc-message");if(this.props.debug&&_.debug("grpc.headers only response ",O,f),O===null)return void this.rawOnEnd(w.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var p=this.decodeGRPCStatus(f[0]);this.rawOnEnd(O,p,this.responseHeaders)}},M.prototype.decodeGRPCStatus=function(I){if(!I)return"";try{return decodeURIComponent(I)}catch{return I}},M.prototype.rawOnEnd=function(I,S,b){var O=this;this.props.debug&&_.debug("rawOnEnd",I,S,b),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(f){if(!O.closed)try{f(I,S,b)}catch(p){setTimeout(function(){throw p},0)}}))},M.prototype.rawOnHeaders=function(I){this.props.debug&&_.debug("rawOnHeaders",I),this.completed||this.onHeadersCallbacks.forEach(function(S){try{S(I)}catch(b){setTimeout(function(){throw b},0)}})},M.prototype.rawOnError=function(I,S,b){var O=this;b===void 0&&(b=new d.Metadata),this.props.debug&&_.debug("rawOnError",I,S),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(f){if(!O.closed)try{f(I,S,b)}catch(p){setTimeout(function(){throw p},0)}}))},M.prototype.rawOnMessage=function(I){var S=this;this.props.debug&&_.debug("rawOnMessage",I.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(b){if(!S.closed)try{b(I)}catch(O){setTimeout(function(){throw O},0)}})},M.prototype.onHeaders=function(I){this.onHeadersCallbacks.push(I)},M.prototype.onMessage=function(I){this.onMessageCallbacks.push(I)},M.prototype.onEnd=function(I){this.onEndCallbacks.push(I)},M.prototype.start=function(I){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var S=new d.Metadata(I||{});S.set("content-type","application/grpc-web+proto"),S.set("x-grpc-web","1"),this.transport.start(S)},M.prototype.send=function(I){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var S=T.frameRequest(I);this.transport.sendMessage(S)},M.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},M.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&_.debug("request.abort aborting request"),this.transport.cancel()},M}();function g(M){var I=M.get("grpc-status")||[];if(I.length>0)try{var S=I[0];return parseInt(S,10)}catch{return null}return null}},346:function(s,n){Object.defineProperty(n,"__esModule",{value:!0}),n.debug=void 0,n.debug=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];console.debug?console.debug.apply(null,l):console.log.apply(null,l)}},607:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.grpc=void 0;var d,m=l(418),w=l(57),_=l(229),N=l(540),T=l(210),y=l(859),g=l(8),M=l(938),I=l(35),S=l(934);(d=n.grpc||(n.grpc={})).setDefaultTransport=w.setDefaultTransportFactory,d.CrossBrowserHttpTransport=y.CrossBrowserHttpTransport,d.FetchReadableStreamTransport=_.FetchReadableStreamTransport,d.XhrTransport=T.XhrTransport,d.WebsocketTransport=N.WebsocketTransport,d.Code=g.Code,d.Metadata=m.BrowserHeaders,d.client=function(b,O){return S.client(b,O)},d.invoke=M.invoke,d.unary=I.unary},938:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.invoke=void 0;var d=l(934);n.invoke=function(m,w){if(m.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var _=d.client(m,{host:w.host,transport:w.transport,debug:w.debug});return w.onHeaders&&_.onHeaders(w.onHeaders),w.onMessage&&_.onMessage(w.onMessage),w.onEnd&&_.onEnd(w.onEnd),_.start(w.metadata),_.send(w.request),_.finishSend(),{close:function(){_.close()}}}},65:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.Metadata=void 0;var d=l(418);Object.defineProperty(n,"Metadata",{enumerable:!0,get:function(){return d.BrowserHeaders}})},57:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.makeDefaultTransport=n.setDefaultTransportFactory=void 0;var d=l(859),m=function(w){return d.CrossBrowserHttpTransport({withCredentials:!1})(w)};n.setDefaultTransportFactory=function(w){m=w},n.makeDefaultTransport=function(w){return m(w)}},229:function(s,n,l){var d=this&&this.__assign||function(){return(d=Object.assign||function(N){for(var T,y=1,g=arguments.length;y<g;y++)for(var M in T=arguments[y])Object.prototype.hasOwnProperty.call(T,M)&&(N[M]=T[M]);return N}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.detectFetchSupport=n.FetchReadableStreamTransport=void 0;var m=l(65),w=l(346);n.FetchReadableStreamTransport=function(N){return function(T){return function(y,g){return y.debug&&w.debug("fetchRequest",y),new _(y,g)}(T,N)}};var _=function(){function N(T,y){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=T,this.init=y}return N.prototype.pump=function(T,y){var g=this;if(this.reader=T,this.cancelled)return this.options.debug&&w.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel().catch(function(M){g.options.debug&&w.debug("Fetch.pump.reader.cancel exception",M)});this.reader.read().then(function(M){if(M.done)return g.options.onEnd(),y;g.options.onChunk(M.value),g.pump(g.reader,y)}).catch(function(M){g.cancelled?g.options.debug&&w.debug("Fetch.catch - request cancelled"):(g.cancelled=!0,g.options.debug&&w.debug("Fetch.catch",M.message),g.options.onEnd(M))})},N.prototype.send=function(T){var y=this;fetch(this.options.url,d(d({},this.init),{headers:this.metadata.toHeaders(),method:"POST",body:T,signal:this.controller&&this.controller.signal})).then(function(g){if(y.options.debug&&w.debug("Fetch.response",g),y.options.onHeaders(new m.Metadata(g.headers),g.status),!g.body)return g;y.pump(g.body.getReader(),g)}).catch(function(g){y.cancelled?y.options.debug&&w.debug("Fetch.catch - request cancelled"):(y.cancelled=!0,y.options.debug&&w.debug("Fetch.catch",g.message),y.options.onEnd(g))})},N.prototype.sendMessage=function(T){this.send(T)},N.prototype.finishSend=function(){},N.prototype.start=function(T){this.metadata=T},N.prototype.cancel=function(){var T=this;this.cancelled?this.options.debug&&w.debug("Fetch.cancel already cancelled"):(this.cancelled=!0,this.controller?(this.options.debug&&w.debug("Fetch.cancel.controller.abort"),this.controller.abort()):this.options.debug&&w.debug("Fetch.cancel.missing abort controller"),this.reader?(this.options.debug&&w.debug("Fetch.cancel.reader.cancel"),this.reader.cancel().catch(function(y){T.options.debug&&w.debug("Fetch.cancel.reader.cancel exception",y)})):this.options.debug&&w.debug("Fetch.cancel before reader"))},N}();n.detectFetchSupport=function(){return typeof Response<"u"&&Response.prototype.hasOwnProperty("body")&&typeof Headers=="function"}},859:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.CrossBrowserHttpTransport=void 0;var d=l(229),m=l(210);n.CrossBrowserHttpTransport=function(w){if(d.detectFetchSupport()){var _={credentials:w.withCredentials?"include":"same-origin"};return d.FetchReadableStreamTransport(_)}return m.XhrTransport({withCredentials:w.withCredentials})}},210:function(s,n,l){var d,m=this&&this.__extends||(d=function(I,S){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var f in O)Object.prototype.hasOwnProperty.call(O,f)&&(b[f]=O[f])})(I,S)},function(I,S){function b(){this.constructor=I}d(I,S),I.prototype=S===null?Object.create(S):(b.prototype=S.prototype,new b)});Object.defineProperty(n,"__esModule",{value:!0}),n.stringToArrayBuffer=n.MozChunkedArrayBufferXHR=n.XHR=n.XhrTransport=void 0;var w=l(65),_=l(346),N=l(849);n.XhrTransport=function(I){return function(S){if(N.detectMozXHRSupport())return new y(S,I);if(N.detectXHROverrideMimeTypeSupport())return new T(S,I);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var T=function(){function I(S,b){this.options=S,this.init=b}return I.prototype.onProgressEvent=function(){this.options.debug&&_.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var S=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var b=M(S);this.options.onChunk(b)},I.prototype.onLoadEvent=function(){this.options.debug&&_.debug("XHR.onLoadEvent"),this.options.onEnd()},I.prototype.onStateChange=function(){this.options.debug&&_.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&this.options.onHeaders(new w.Metadata(this.xhr.getAllResponseHeaders()),this.xhr.status)},I.prototype.sendMessage=function(S){this.xhr.send(S)},I.prototype.responseCallback=function(S){this.options.onHeaders(new w.Metadata(function(b){var O={};for(var f in b){var p=b[f];b.hasOwnProperty(f)&&p!==void 0&&(O[f]=p)}return O}(S.headers)),S.statusCode)},I.prototype.finishSend=function(){},I.prototype.start=function(S){var b=this;this.metadata=S;var O=new XMLHttpRequest;this.xhr=O,O.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach(function(f,p){O.setRequestHeader(f,p.join(", "))}),O.withCredentials=!!this.init.withCredentials,O.addEventListener("readystatechange",this.onStateChange.bind(this)),O.addEventListener("progress",this.onProgressEvent.bind(this)),O.addEventListener("loadend",this.onLoadEvent.bind(this)),O.addEventListener("error",function(f){b.options.debug&&_.debug("XHR.error",f),b.options.onEnd(f.error)})},I.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},I.prototype.cancel=function(){this.options.debug&&_.debug("XHR.abort"),this.xhr.abort()},I}();n.XHR=T;var y=function(I){function S(){return I!==null&&I.apply(this,arguments)||this}return m(S,I),S.prototype.configureXhr=function(){this.options.debug&&_.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},S.prototype.onProgressEvent=function(){var b=this.xhr.response;this.options.debug&&_.debug("MozXHR.onProgressEvent: ",new Uint8Array(b)),this.options.onChunk(new Uint8Array(b))},S}(T);function g(I,S){var b=I.charCodeAt(S);if(b>=55296&&b<=56319){var O=I.charCodeAt(S+1);O>=56320&&O<=57343&&(b=65536+(b-55296<<10)+(O-56320))}return b}function M(I){for(var S=new Uint8Array(I.length),b=0,O=0;O<I.length;O++){var f=String.prototype.codePointAt?I.codePointAt(O):g(I,O);S[b++]=255&f}return S}n.MozChunkedArrayBufferXHR=y,n.stringToArrayBuffer=M},849:function(s,n){var l;function d(){if(l!==void 0)return l;if(XMLHttpRequest){l=new XMLHttpRequest;try{l.open("GET","https://localhost")}catch{}}return l}function m(w){var _=d();if(!_)return!1;try{return _.responseType=w,_.responseType===w}catch{}return!1}Object.defineProperty(n,"__esModule",{value:!0}),n.detectXHROverrideMimeTypeSupport=n.detectMozXHRSupport=n.xhrSupportsResponseType=void 0,n.xhrSupportsResponseType=m,n.detectMozXHRSupport=function(){return typeof XMLHttpRequest<"u"&&m("moz-chunked-arraybuffer")},n.detectXHROverrideMimeTypeSupport=function(){return typeof XMLHttpRequest<"u"&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},540:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.WebsocketTransport=void 0;var d,m=l(346),w=l(617);(function(N){N[N.FINISH_SEND=1]="FINISH_SEND"})(d||(d={}));var _=new Uint8Array([1]);n.WebsocketTransport=function(){return function(N){return function(T){T.debug&&m.debug("websocketRequest",T);var y,g=function(S){if(S.substr(0,8)==="https://")return"wss://"+S.substr(8);if(S.substr(0,7)==="http://")return"ws://"+S.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(T.url),M=[];function I(S){if(S===d.FINISH_SEND)y.send(_);else{var b=S,O=new Int8Array(b.byteLength+1);O.set(new Uint8Array([0])),O.set(b,1),y.send(O)}}return{sendMessage:function(S){y&&y.readyState!==y.CONNECTING?I(S):M.push(S)},finishSend:function(){y&&y.readyState!==y.CONNECTING?I(d.FINISH_SEND):M.push(d.FINISH_SEND)},start:function(S){(y=new WebSocket(g,["grpc-websockets"])).binaryType="arraybuffer",y.onopen=function(){var b;T.debug&&m.debug("websocketRequest.onopen"),y.send((b="",S.forEach(function(O,f){b+=O+": "+f.join(", ")+`\r
3
3
  `}),w.encodeASCII(b))),M.forEach(function(O){I(O)})},y.onclose=function(b){T.debug&&m.debug("websocketRequest.onclose",b),T.onEnd()},y.onerror=function(b){T.debug&&m.debug("websocketRequest.onerror",b)},y.onmessage=function(b){T.onChunk(new Uint8Array(b.data))}},cancel:function(){T.debug&&m.debug("websocket.abort"),y.close()}}}(N)}}},35:function(s,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.unary=void 0;var d=l(65),m=l(934);n.unary=function(w,_){if(w.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(w.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var N=null,T=null,y=m.client(w,{host:_.host,transport:_.transport,debug:_.debug});return y.onHeaders(function(g){N=g}),y.onMessage(function(g){T=g}),y.onEnd(function(g,M,I){_.onEnd({status:g,statusMessage:M,headers:N||new d.Metadata,message:T,trailers:I})}),y.start(_.metadata),y.send(_.request),y.finishSend(),{close:function(){y.close()}}}},882:function(s,n){Object.defineProperty(n,"__esModule",{value:!0}),n.frameRequest=void 0,n.frameRequest=function(l){var d=l.serializeBinary(),m=new ArrayBuffer(d.byteLength+5);return new DataView(m,1,4).setUint32(0,d.length,!1),new Uint8Array(m,5).set(d),new Uint8Array(m)}}},D={},function s(n){if(D[n])return D[n].exports;var l=D[n]={exports:{}};return r[n].call(l.exports,l,l.exports,s),l.exports}(607);var r,D})})(z9);var _t=z9.exports,Er;(function(u){u.Auction="auction",u.CosmosSdk="sdk",u.Staking="staking",u.Bank="bank",u.Distribution="distribution",u.Gov="gov",u.Exchange="exchange",u.Insurance="insurance",u.Ocr="ocr",u.Oracle="oracle",u.Peggy="peggy",u.TokenFactory="tokenfactory",u.Wasmx="wasmx",u.Wasm="wasm",u.AuthZ="authz"})(Er||(Er={}));var hr;(function(u){u[u.ErrTxDecode=2]="ErrTxDecode",u[u.ErrInvalidSequence=3]="ErrInvalidSequence",u[u.ErrUnauthorized=4]="ErrUnauthorized",u[u.ErrInsufficientFunds=5]="ErrInsufficientFunds",u[u.ErrUnknownRequest=6]="ErrUnknownRequest",u[u.ErrInvalidAddress=7]="ErrInvalidAddress",u[u.ErrInvalidPubKey=8]="ErrInvalidPubKey",u[u.ErrUnknownAddress=9]="ErrUnknownAddress",u[u.ErrInvalidCoins=10]="ErrInvalidCoins",u[u.ErrOutOfGas=11]="ErrOutOfGas",u[u.ErrMemoTooLarge=12]="ErrMemoTooLarge",u[u.ErrInsufficientFee=13]="ErrInsufficientFee",u[u.ErrTooManySignatures=14]="ErrTooManySignatures",u[u.ErrNoSignatures=15]="ErrNoSignatures",u[u.ErrJSONMarshal=16]="ErrJSONMarshal",u[u.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",u[u.ErrInvalidRequest=18]="ErrInvalidRequest",u[u.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",u[u.ErrMempoolIsFull=20]="ErrMempoolIsFull",u[u.ErrTxTooLarge=21]="ErrTxTooLarge",u[u.ErrKeyNotFound=22]="ErrKeyNotFound",u[u.ErrWrongPassword=23]="ErrWrongPassword",u[u.ErrorInvalidSigner=24]="ErrorInvalidSigner",u[u.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",u[u.ErrInvalidHeight=26]="ErrInvalidHeight",u[u.ErrInvalidVersion=27]="ErrInvalidVersion",u[u.ErrInvalidChainID=28]="ErrInvalidChainID",u[u.ErrInvalidType=29]="ErrInvalidType",u[u.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",u[u.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",u[u.ErrWrongSequence=32]="ErrWrongSequence",u[u.ErrPackAny=33]="ErrPackAny",u[u.ErrUnpackAny=34]="ErrUnpackAny",u[u.ErrLogic=35]="ErrLogic",u[u.ErrConflict=36]="ErrConflict",u[u.ErrNotSupported=37]="ErrNotSupported",u[u.ErrNotFound=38]="ErrNotFound",u[u.ErrIO=39]="ErrIO",u[u.ErrAppConfig=40]="ErrAppConfig",u[u.ErrInvalidGasLimit=41]="ErrInvalidGasLimit"})(hr||(hr={}));var dr;(function(u){u[u.ErrOrderInvalid=1]="ErrOrderInvalid",u[u.ErrSpotMarketNotFound=2]="ErrSpotMarketNotFound",u[u.ErrSpotMarketExists=3]="ErrSpotMarketExists",u[u.ErrBadField=4]="ErrBadField",u[u.ErrMarketInvalid=5]="ErrMarketInvalid",u[u.ErrInsufficientDeposit=6]="ErrInsufficientDeposit",u[u.ErrUnrecognizedOrderType=7]="ErrUnrecognizedOrderType",u[u.ErrInsufficientPositionQuantity=8]="ErrInsufficientPositionQuantity",u[u.ErrOrderHashInvalid=9]="ErrOrderHashInvalid",u[u.ErrBadSubaccountID=10]="ErrBadSubaccountID",u[u.ErrInvalidTicker=11]="ErrInvalidTicker",u[u.ErrInvalidBaseDenom=12]="ErrInvalidBaseDenom",u[u.ErrInvalidQuoteDenom=13]="ErrInvalidQuoteDenom",u[u.ErrInvalidOracle=14]="ErrInvalidOracle",u[u.ErrInvalidExpiry=15]="ErrInvalidExpiry",u[u.ErrInvalidPrice=16]="ErrInvalidPrice",u[u.ErrInvalidQuantity=17]="ErrInvalidQuantity",u[u.ErrUnsupportedOracleType=18]="ErrUnsupportedOracleType",u[u.ErrOrderDoesntExist=19]="ErrOrderDoesntExist",u[u.ErrOrderbookFillInvalid=20]="ErrOrderbookFillInvalid",u[u.ErrPerpetualMarketExists=21]="ErrPerpetualMarketExists",u[u.ErrExpiryFuturesMarketExists=22]="ErrExpiryFuturesMarketExists",u[u.ErrExpiryFuturesMarketExpired=23]="ErrExpiryFuturesMarketExpired",u[u.ErrNoLiquidity=24]="ErrNoLiquidity",u[u.ErrSlippageExceedsWorstPrice=25]="ErrSlippageExceedsWorstPrice",u[u.ErrInsufficientOrderMargin=26]="ErrInsufficientOrderMargin",u[u.ErrDerivativeMarketNotFound=27]="ErrDerivativeMarketNotFound",u[u.ErrPositionNotFound=28]="ErrPositionNotFound",u[u.ErrInvalidReduceOnlyPositionDirection=29]="ErrInvalidReduceOnlyPositionDirection",u[u.ErrPriceSurpassesBankruptcyPrice=30]="ErrPriceSurpassesBankruptcyPrice",u[u.ErrPositionNotLiquidable=31]="ErrPositionNotLiquidable",u[u.ErrInvalidTriggerPrice=32]="ErrInvalidTriggerPrice",u[u.ErrInvalidOracleType=33]="ErrInvalidOracleType",u[u.ErrInvalidPriceTickSize=34]="ErrInvalidPriceTickSize",u[u.ErrInvalidQuantityTickSize=35]="ErrInvalidQuantityTickSize",u[u.ErrInvalidMargin=36]="ErrInvalidMargin",u[u.ErrExceedsOrderSideCount=37]="ErrExceedsOrderSideCount",u[u.ErrMarketOrderAlreadyExists=38]="ErrMarketOrderAlreadyExists",u[u.ErrConditionalMarketOrderAlreadyExists=39]="ErrConditionalMarketOrderAlreadyExists",u[u.ErrMarketLaunchProposalAlreadyExists=40]="ErrMarketLaunchProposalAlreadyExists",u[u.ErrInvalidMarketStatus=41]="ErrInvalidMarketStatus",u[u.ErrSameDenoms=42]="ErrSameDenoms",u[u.ErrSameOracles=43]="ErrSameOracles",u[u.ErrFeeRatesRelation=44]="ErrFeeRatesRelation",u[u.ErrMarginsRelation=45]="ErrMarginsRelation",u[u.ErrExceedsMaxOracleScaleFactor=46]="ErrExceedsMaxOracleScaleFactor",u[u.ErrSpotExchangeNotEnabled=47]="ErrSpotExchangeNotEnabled",u[u.ErrDerivativesExchangeNotEnabled=48]="ErrDerivativesExchangeNotEnabled",u[u.ErrOraclePriceDeltaExceedsThreshold=49]="ErrOraclePriceDeltaExceedsThreshold",u[u.ErrInvalidHourlyInterestRate=50]="ErrInvalidHourlyInterestRate",u[u.ErrInvalidHourlyFundingRateCap=51]="ErrInvalidHourlyFundingRateCap",u[u.ErrInvalidMarketFundingParamUpdate=52]="ErrInvalidMarketFundingParamUpdate",u[u.ErrInvalidTradingRewardCampaign=53]="ErrInvalidTradingRewardCampaign",u[u.ErrInvalidFeeDiscountSchedule=54]="ErrInvalidFeeDiscountSchedule",u[u.ErrInvalidLiquidationOrder=55]="ErrInvalidLiquidationOrder",u[u.ErrTradingRewardCampaignDistributionError=56]="ErrTradingRewardCampaignDistributionError",u[u.ErrInvalidTradingRewardsPendingPointsUpdate=57]="ErrInvalidTradingRewardsPendingPointsUpdate",u[u.ErrInvalidBatchMsgUpdate=58]="ErrInvalidBatchMsgUpdate",u[u.ErrExceedsTopOfBookPrice=59]="ErrExceedsTopOfBookPrice",u[u.ErrInvalidOrderTypeForMessage=60]="ErrInvalidOrderTypeForMessage",u[u.ErrInvalidDMMSender=61]="ErrInvalidDMMSender",u[u.ErrAlreadyOptedOutOfRewards=62]="ErrAlreadyOptedOutOfRewards",u[u.ErrInvalidMarginRatio=63]="ErrInvalidMarginRatio",u[u.ErrBelowMinimalContribution=64]="ErrBelowMinimalContribution",u[u.ErrLowPositionMargin=65]="ErrLowPositionMargin",u[u.ErrInvalidTotalSupply=66]="ErrInvalidTotalSupply",u[u.ErrInvalidLpTokenBurnAmount=67]="ErrInvalidLpTokenBurnAmount",u[u.ErrUnsupportedAction=68]="ErrUnsupportedAction",u[u.ErrNegativePositionQuantity=69]="ErrNegativePositionQuantity",u[u.ErrBinaryOptionsMarketExists=70]="ErrBinaryOptionsMarketExists",u[u.ErrBinaryOptionsMarketNotFound=71]="ErrBinaryOptionsMarketNotFound",u[u.ErrInvalidSettlement=72]="ErrInvalidSettlement",u[u.ErrAccountDoesntExist=73]="ErrAccountDoesntExist",u[u.ErrSenderIsNotAnAdmin=74]="ErrSenderIsNotAnAdmin",u[u.ErrMarketAlreadyScheduledToSettle=75]="ErrMarketAlreadyScheduledToSettle",u[u.ErrGenericMarketNotFound=76]="ErrGenericMarketNotFound",u[u.ErrInvalidDenomDecimal=77]="ErrInvalidDenomDecimal",u[u.ErrInvalidState=78]="ErrInvalidState",u[u.ErrTransientOrdersUpToCancelNotSupported=79]="ErrTransientOrdersUpToCancelNotSupported",u[u.ErrInvalidTrade=80]="ErrInvalidTrade",u[u.ErrNoMarginLocked=81]="ErrNoMarginLocked",u[u.ErrInvalidAccessLevel=82]="ErrInvalidAccessLevel",u[u.ErrInvalidAddress=83]="ErrInvalidAddress",u[u.ErrInvalidArgument=84]="ErrInvalidArgument",u[u.ErrInvalidFundsDirection=85]="ErrInvalidFundsDirection",u[u.ErrNoFundsProvided=86]="ErrNoFundsProvided",u[u.ErrInvalidSignature=87]="ErrInvalidSignature",u[u.ErrNoFundsToUnlock=88]="ErrNoFundsToUnlock",u[u.ErrNoMsgsProvided=89]="ErrNoMsgsProvided",u[u.ErrNoMsgProvided=90]="ErrNoMsgProvided",u[u.ErrInvalidAmount=91]="ErrInvalidAmount",u[u.ErrFeatureDisabled=92]="ErrFeatureDisabled",u[u.ErrTooMuchOrderMargin=93]="ErrTooMuchOrderMargin",u[u.ErrBadSubaccountNonce=94]="ErrBadSubaccountNonce",u[u.ErrInsufficientFunds=95]="ErrInsufficientFunds",u[u.ErrPostOnlyMode=96]="ErrPostOnlyMode",u[u.ErrClientOrderIdAlreadyExists=97]="ErrClientOrderIdAlreadyExists",u[u.ErrInvalidCid=98]="ErrInvalidCid"})(dr||(dr={}));var pr;(function(u){u[u.ErrBidInvalid=1]="ErrBidInvalid",u[u.ErrBidRound=2]="ErrBidRound"})(pr||(pr={}));var Cr;(function(u){u[u.ErrNoAuthorizationFound=2]="ErrNoAuthorizationFound",u[u.ErrInvalidExpirationTime=3]="ErrInvalidExpirationTime",u[u.ErrUnknownAuthorizationType=4]="ErrUnknownAuthorizationType",u[u.ErrNoGrantKeyFound=5]="ErrNoGrantKeyFound",u[u.ErrAuthorizationExpired=6]="ErrAuthorizationExpired",u[u.ErrGranteeIsGranter=7]="ErrGranteeIsGranter",u[u.ErrAuthorizationNumOfSigners=9]="ErrAuthorizationNumOfSigners",u[u.ErrNegativeMaxTokens=12]="ErrNegativeMaxTokens"})(Cr||(Cr={}));var Br;(function(u){u[u.ErrInsuranceFundAlreadyExists=1]="ErrInsuranceFundAlreadyExists",u[u.ErrInsuranceFundNotFound=2]="ErrInsuranceFundNotFound",u[u.ErrRedemptionAlreadyExists=3]="ErrRedemptionAlreadyExists",u[u.ErrInvalidDepositAmount=4]="ErrInvalidDepositAmount",u[u.ErrInvalidDepositDenom=5]="ErrInvalidDepositDenom",u[u.ErrPayoutTooLarge=6]="ErrPayoutTooLarge",u[u.ErrInvalidTicker=7]="ErrInvalidTicker",u[u.ErrInvalidQuoteDenom=8]="ErrInvalidQuoteDenom",u[u.ErrInvalidOracle=9]="ErrInvalidOracle",u[u.ErrInvalidExpirationTime=10]="ErrInvalidExpirationTime",u[u.ErrInvalidMarketID=11]="ErrInvalidMarketID",u[u.ErrInvalidShareDenom=12]="ErrInvalidShareDenom"})(Br||(Br={}));var mr;(function(u){u[u.ErrStaleReport=1]="ErrStaleReport",u[u.ErrIncompleteProposal=2]="ErrIncompleteProposal",u[u.ErrRepeatedAddress=3]="ErrRepeatedAddress",u[u.ErrTooManySigners=4]="ErrTooManySigners",u[u.ErrIncorrectConfig=5]="ErrIncorrectConfig",u[u.ErrConfigDigestNotMatch=6]="ErrConfigDigestNotMatch",u[u.ErrWrongNumberOfSignatures=7]="ErrWrongNumberOfSignatures",u[u.ErrIncorrectSignature=8]="ErrIncorrectSignature",u[u.ErrNoTransmitter=9]="ErrNoTransmitter",u[u.ErrIncorrectTransmissionData=10]="ErrIncorrectTransmissionData",u[u.ErrNoTransmissionsFound=11]="ErrNoTransmissionsFound",u[u.ErrMedianValueOutOfBounds=12]="ErrMedianValueOutOfBounds",u[u.ErrIncorrectRewardPoolDenom=13]="ErrIncorrectRewardPoolDenom",u[u.ErrNoRewardPool=14]="ErrNoRewardPool",u[u.ErrInvalidPayees=15]="ErrInvalidPayees",u[u.ErrModuleAdminRestricted=16]="ErrModuleAdminRestricted",u[u.ErrFeedAlreadyExists=17]="ErrFeedAlreadyExists",u[u.ErrFeedDoesntExists=19]="ErrFeedDoesntExists",u[u.ErrAdminRestricted=20]="ErrAdminRestricted",u[u.ErrInsufficientRewardPool=21]="ErrInsufficientRewardPool",u[u.ErrPayeeAlreadySet=22]="ErrPayeeAlreadySet",u[u.ErrPayeeRestricted=23]="ErrPayeeRestricted",u[u.ErrFeedConfigNotFound=24]="ErrFeedConfigNotFound"})(mr||(mr={}));var vr;(function(u){u[u.ErrEmptyRelayerAddr=1]="ErrEmptyRelayerAddr",u[u.ErrBadRatesCount=2]="ErrBadRatesCount",u[u.ErrBadResolveTimesCount=3]="ErrBadResolveTimesCount",u[u.ErrBadRequestIDsCount=4]="ErrBadRequestIDsCount",u[u.ErrRelayerNotAuthorized=5]="ErrRelayerNotAuthorized",u[u.ErrBadPriceFeedBaseCount=6]="ErrBadPriceFeedBaseCount",u[u.ErrBadPriceFeedQuoteCount=7]="ErrBadPriceFeedQuoteCount",u[u.ErrUnsupportedOracleType=8]="ErrUnsupportedOracleType",u[u.ErrBadMessagesCount=9]="ErrBadMessagesCount",u[u.ErrBadCoinbaseMessage=10]="ErrBadCoinbaseMessage",u[u.ErrInvalidEthereumSignature=11]="ErrInvalidEthereumSignature",u[u.ErrBadCoinbaseMessageTimestamp=12]="ErrBadCoinbaseMessageTimestamp",u[u.ErrCoinbasePriceNotFound=13]="ErrCoinbasePriceNotFound",u[u.ErrBadPrice=14]="ErrBadPrice",u[u.ErrPriceTooLarge=15]="ErrPriceTooLarge",u[u.ErrInvalidBandIBCRequest=16]="ErrInvalidBandIBCRequest",u[u.ErrSample=17]="ErrSample",u[u.ErrInvalidPacketTimeout=18]="ErrInvalidPacketTimeout",u[u.ErrBadSymbolsCount=19]="ErrBadSymbolsCount",u[u.ErrBadIBCPortBind=20]="ErrBadIBCPortBind",u[u.ErrInvalidPortID=21]="ErrInvalidPortID",u[u.ErrInvalidChannelID=22]="ErrInvalidChannelID",u[u.ErrBadRequestInterval=23]="ErrBadRequestInterval",u[u.ErrInvalidBandIBCUpdateRequest=24]="ErrInvalidBandIBCUpdateRequest",u[u.ErrBandIBCRequestNotFound=25]="ErrBandIBCRequestNotFound",u[u.ErrEmptyBaseInfo=26]="ErrEmptyBaseInfo",u[u.ErrEmptyProvider=27]="ErrEmptyProvider",u[u.ErrInvalidProvider=28]="ErrInvalidProvider",u[u.ErrInvalidSymbol=29]="ErrInvalidSymbol",u[u.ErrRelayerAlreadyExists=30]="ErrRelayerAlreadyExists",u[u.ErrProviderPriceNotFound=31]="ErrProviderPriceNotFound",u[u.ErrInvalidOracleRequest=32]="ErrInvalidOracleRequest",u[u.ErrOraclePriceNotFound=33]="ErrOraclePriceNotFound"})(vr||(vr={}));var yr;(function(u){u[u.ErrInternal=1]="ErrInternal",u[u.ErrDuplicate=2]="ErrDuplicate",u[u.ErrInvalid=3]="ErrInvalid",u[u.ErrTimeout=4]="ErrTimeout",u[u.ErrUnknown=5]="ErrUnknown",u[u.ErrEmpty=6]="ErrEmpty",u[u.ErrOutdated=7]="ErrOutdated",u[u.ErrUnsupported=8]="ErrUnsupported",u[u.ErrNonContiguousEventNonce=9]="ErrNonContiguousEventNonce",u[u.ErrNoUnbatchedTxsFound=10]="ErrNoUnbatchedTxsFound",u[u.ErrResetDelegateKeys=11]="ErrResetDelegateKeys",u[u.ErrSupplyOverflow=12]="ErrSupplyOverflow",u[u.ErrInvalidEthSender=13]="ErrInvalidEthSender",u[u.ErrInvalidEthDestination=14]="ErrInvalidEthDestination"})(yr||(yr={}));var gr;(function(u){u[u.ErrDenomExists=2]="ErrDenomExists",u[u.ErrUnauthorized=3]="ErrUnauthorized",u[u.ErrInvalidDenom=4]="ErrInvalidDenom",u[u.ErrInvalidCreator=5]="ErrInvalidCreator",u[u.ErrInvalidAuthorityMetadata=6]="ErrInvalidAuthorityMetadata",u[u.ErrInvalidGenesis=7]="ErrInvalidGenesis",u[u.ErrSubdenomTooLong=8]="ErrSubdenomTooLong",u[u.ErrSubdenomTooShort=9]="ErrSubdenomTooShort",u[u.ErrSubdenomNestedTooShort=10]="ErrSubdenomNestedTooShort",u[u.ErrCreatorTooLong=11]="ErrCreatorTooLong",u[u.ErrDenomDoesNotExist=12]="ErrDenomDoesNotExist",u[u.ErrAmountNotPositive=13]="ErrAmountNotPositive"})(gr||(gr={}));var wr;(function(u){u[u.ErrInvalidGasLimit=1]="ErrInvalidGasLimit",u[u.ErrInvalidGasPrice=2]="ErrInvalidGasPrice",u[u.ErrInvalidContractAddress=3]="ErrInvalidContractAddress",u[u.ErrAlreadyRegistered=4]="ErrAlreadyRegistered",u[u.ErrDuplicateContract=5]="ErrDuplicateContract",u[u.ErrNoContractAddresses=6]="ErrNoContractAddresses",u[u.ErrInvalidCodeId=7]="ErrInvalidCodeId"})(wr||(wr={}));var xr;(function(u){u[u.ErrEmptyValidatorAddr=2]="ErrEmptyValidatorAddr",u[u.ErrNoValidatorFound=3]="ErrNoValidatorFound",u[u.ErrValidatorOwnerExists=4]="ErrValidatorOwnerExists",u[u.ErrValidatorPubKeyExists=5]="ErrValidatorPubKeyExists",u[u.ErrValidatorPubKeyTypeNotSupported=6]="ErrValidatorPubKeyTypeNotSupported",u[u.ErrValidatorJailed=7]="ErrValidatorJailed",u[u.ErrBadRemoveValidator=8]="ErrBadRemoveValidator",u[u.ErrCommissionNegative=9]="ErrCommissionNegative",u[u.ErrCommissionHuge=10]="ErrCommissionHuge",u[u.ErrCommissionGTMaxRate=11]="ErrCommissionGTMaxRate",u[u.ErrCommissionUpdateTime=12]="ErrCommissionUpdateTime",u[u.ErrCommissionChangeRateNegative=13]="ErrCommissionChangeRateNegative",u[u.ErrCommissionChangeRateGTMaxRate=14]="ErrCommissionChangeRateGTMaxRate",u[u.ErrCommissionGTMaxChangeRate=15]="ErrCommissionGTMaxChangeRate",u[u.ErrSelfDelegationBelowMinimum=16]="ErrSelfDelegationBelowMinimum",u[u.ErrMinSelfDelegationDecreased=17]="ErrMinSelfDelegationDecreased",u[u.ErrEmptyDelegatorAddr=18]="ErrEmptyDelegatorAddr",u[u.ErrNoDelegation=19]="ErrNoDelegation",u[u.ErrBadDelegatorAddr=20]="ErrBadDelegatorAddr",u[u.ErrNoDelegatorForAddress=21]="ErrNoDelegatorForAddress",u[u.ErrInsufficientShares=22]="ErrInsufficientShares",u[u.ErrDelegationValidatorEmpty=23]="ErrDelegationValidatorEmpty",u[u.ErrNotEnoughDelegationShares=24]="ErrNotEnoughDelegationShares",u[u.ErrNotMature=25]="ErrNotMature",u[u.ErrNoUnbondingDelegation=26]="ErrNoUnbondingDelegation",u[u.ErrMaxUnbondingDelegationEntries=27]="ErrMaxUnbondingDelegationEntries",u[u.ErrNoRedelegation=28]="ErrNoRedelegation",u[u.ErrSelfRedelegation=29]="ErrSelfRedelegation",u[u.ErrTinyRedelegationAmount=30]="ErrTinyRedelegationAmount",u[u.ErrBadRedelegationDst=31]="ErrBadRedelegationDst",u[u.ErrTransitiveRedelegation=32]="ErrTransitiveRedelegation",u[u.ErrMaxRedelegationEntries=33]="ErrMaxRedelegationEntries",u[u.ErrDelegatorShareExRateInvalid=34]="ErrDelegatorShareExRateInvalid",u[u.ErrBothShareMsgsGiven=35]="ErrBothShareMsgsGiven",u[u.ErrNeitherShareMsgsGiven=36]="ErrNeitherShareMsgsGiven",u[u.ErrInvalidHistoricalInfo=37]="ErrInvalidHistoricalInfo",u[u.ErrNoHistoricalInfo=38]="ErrNoHistoricalInfo",u[u.ErrEmptyValidatorPubKey=39]="ErrEmptyValidatorPubKey",u[u.ErrCommissionLTMinRate=40]="ErrCommissionLTMinRate",u[u.ErrUnbondingNotFound=41]="ErrUnbondingNotFound",u[u.ErrUnbondingOnHoldRefCountNegative=42]="ErrUnbondingOnHoldRefCountNegative"})(xr||(xr={}));var br;(function(u){u[u.ErrUnknownProposal=2]="ErrUnknownProposal",u[u.ErrInactiveProposal=3]="ErrInactiveProposal",u[u.ErrAlreadyActiveProposal=4]="ErrAlreadyActiveProposal",u[u.ErrInvalidProposalContent=5]="ErrInvalidProposalContent",u[u.ErrInvalidProposalType=6]="ErrInvalidProposalType",u[u.ErrInvalidVote=7]="ErrInvalidVote",u[u.ErrInvalidGenesis=8]="ErrInvalidGenesis",u[u.ErrNoProposalHandlerExists=9]="ErrNoProposalHandlerExists",u[u.ErrUnroutableProposalMsg=10]="ErrUnroutableProposalMsg",u[u.ErrNoProposalMsgs=11]="ErrNoProposalMsgs",u[u.ErrInvalidProposalMsg=12]="ErrInvalidProposalMsg",u[u.ErrInvalidSigner=13]="ErrInvalidSigner",u[u.ErrInvalidSignalMsg=14]="ErrInvalidSignalMsg",u[u.ErrMetadataTooLong=15]="ErrMetadataTooLong",u[u.ErrMinDepositTooSmall=16]="ErrMinDepositTooSmall",u[u.ErrProposalNotFound=17]="ErrProposalNotFound",u[u.ErrInvalidProposer=18]="ErrInvalidProposer",u[u.ErrNoDeposits=19]="ErrNoDeposits",u[u.ErrVotingPeriodEnded=20]="ErrVotingPeriodEnded",u[u.ErrInvalidProposal=21]="ErrInvalidProposal"})(br||(br={}));var _r;(function(u){u[u.ErrEmptyDelegatorAddr=2]="ErrEmptyDelegatorAddr",u[u.ErrEmptyWithdrawAddr=3]="ErrEmptyWithdrawAddr",u[u.ErrEmptyValidatorAddr=4]="ErrEmptyValidatorAddr",u[u.ErrEmptyDelegationDistInfo=5]="ErrEmptyDelegationDistInfo",u[u.ErrNoValidatorDistInfo=6]="ErrNoValidatorDistInfo",u[u.ErrNoValidatorCommission=7]="ErrNoValidatorCommission",u[u.ErrSetWithdrawAddrDisabled=8]="ErrSetWithdrawAddrDisabled",u[u.ErrBadDistribution=9]="ErrBadDistribution",u[u.ErrInvalidProposalAmount=10]="ErrInvalidProposalAmount",u[u.ErrEmptyProposalRecipient=11]="ErrEmptyProposalRecipient",u[u.ErrNoValidatorExists=12]="ErrNoValidatorExists",u[u.ErrNoDelegationExists=13]="ErrNoDelegationExists"})(_r||(_r={}));var Ir;(function(u){u[u.ErrNoInputs=2]="ErrNoInputs",u[u.ErrNoOutputs=3]="ErrNoOutputs",u[u.ErrInputOutputMismatch=4]="ErrInputOutputMismatch",u[u.ErrSendDisabled=5]="ErrSendDisabled",u[u.ErrDenomMetadataNotFound=6]="ErrDenomMetadataNotFound",u[u.ErrInvalidKey=7]="ErrInvalidKey",u[u.ErrDuplicateEntry=8]="ErrDuplicateEntry",u[u.ErrMultipleSenders=9]="ErrMultipleSenders"})(Ir||(Ir={}));var Sr;(function(u){u[u.ErrCreateFailed=2]="ErrCreateFailed",u[u.ErrAccountExists=3]="ErrAccountExists",u[u.ErrInstantiateFailed=4]="ErrInstantiateFailed",u[u.ErrExecuteFailed=5]="ErrExecuteFailed",u[u.ErrGasLimit=6]="ErrGasLimit",u[u.ErrInvalidGenesis=7]="ErrInvalidGenesis",u[u.ErrNotFound=8]="ErrNotFound",u[u.ErrQueryFailed=9]="ErrQueryFailed",u[u.ErrInvalidMsg=10]="ErrInvalidMsg",u[u.ErrMigrationFailed=11]="ErrMigrationFailed",u[u.ErrEmpty=12]="ErrEmpty",u[u.ErrLimit=13]="ErrLimit",u[u.ErrInvalid=14]="ErrInvalid",u[u.ErrDuplicate=15]="ErrDuplicate",u[u.ErrMaxIBCChannels=16]="ErrMaxIBCChannels",u[u.ErrUnsupportedForContract=17]="ErrUnsupportedForContract",u[u.ErrPinContractFailed=18]="ErrPinContractFailed",u[u.ErrUnpinContractFailed=19]="ErrUnpinContractFailed",u[u.ErrUnknownMsg=20]="ErrUnknownMsg",u[u.ErrInvalidEvent=21]="ErrInvalidEvent"})(Sr||(Sr={}));const ve=-1;_t.grpc.Code.Unavailable;var Mr;(function(u){u.Get="GET",u.Post="POST",u.Options="OPTIONS"})(Mr||(Mr={}));var F1;(function(u){u.Unspecified="unspecified",u.ChainError="chain-error",u.ExecutionError="execution-error",u.NotFoundError="not-found-error",u.ValidationError="validation-error",u.WalletError="wallet-error",u.WalletNotInstalledError="wallet-not-installed-error",u.GrpcUnaryRequest="grpc-unary-request",u.HttpRequest="http-request",u.Web3="web3"})(F1||(F1={}));const ye=u=>`${u}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,r,D)=>`${r.toUpperCase()+D}`).replace(new RegExp(/\w/),e=>e.toUpperCase());class j9 extends Error{constructor(r,D){super(r.message);s0(this,"type",F1.Unspecified);s0(this,"code",ve);s0(this,"name");s0(this,"errorClass");s0(this,"context");s0(this,"contextModule");s0(this,"contextCode");s0(this,"message","");s0(this,"stack","");s0(this,"originalMessage","");this.parseError(r),this.parseContext(D),this.parse()}parse(){}parseError(r){this.setName(this.errorClass||this.constructor.name),this.setStack(r.stack||""),this.setMessage(r.message),this.originalMessage=r.message}parseContext(r){const{contextModule:D,type:s,code:n,context:l}=r||{contextModule:"",context:"",code:ve,type:F1.Unspecified};this.context=l,this.contextModule=D,this.type=s||F1.Unspecified,this.code=n||ve}setType(r){this.type=r}setCode(r){this.code=r}setContext(r){this.context=r}setOriginalMessage(r){this.originalMessage=r}setStack(r){try{this.stack=r}catch{}}setName(r){super.name=r,this.name=r,this.errorClass=r}setMessage(r){super.message=r,this.message=r}setContextModule(r){this.contextModule=r}setContextCode(r){this.contextCode=r}toOriginalError(){const r=new Error(this.originalMessage);return r.stack=this.stack,r.name=this.name||"",r}toError(){const r=new Error(this.message);return r.stack=this.stack,r.name=this.name||"",r}toCompactError(){const r=this.name||ye(this.type),D=new Error(`${this.message} | ${JSON.stringify({originalMessage:this.originalMessage,message:this.message,errorClass:r,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`
4
4
  `).map(s=>s.trim())})}`);return D.stack=this.stack,D.name=this.name||ye(this.type),D}toJson(){return JSON.stringify({error:this.message,stack:this.stack})}toObject(){const r=this.name||ye(this.type);return{message:this.message,originalMessage:this.originalMessage,errorClass:r,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`